3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

tags: expose findTagByName() as a public function

This commit is contained in:
Dragory 2020-09-15 01:55:32 +03:00
parent 99438441cb
commit 3667f4a3fb
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -18,6 +18,7 @@ import { convertDelayStringToMS } from "../../utils";
import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin"; import { TimeAndDatePlugin } from "../TimeAndDate/TimeAndDatePlugin";
import { mapToPublicFn } from "../../pluginUtils"; import { mapToPublicFn } from "../../pluginUtils";
import { renderTagBody } from "./util/renderTagBody"; import { renderTagBody } from "./util/renderTagBody";
import { findTagByName } from "./util/findTagByName";
const defaultOptions: PluginOptions<TagsPluginType> = { const defaultOptions: PluginOptions<TagsPluginType> = {
config: { config: {
@ -67,6 +68,7 @@ export const TagsPlugin = zeppelinPlugin<TagsPluginType>()("tags", {
public: { public: {
renderTagBody: mapToPublicFn(renderTagBody), renderTagBody: mapToPublicFn(renderTagBody),
findTagByName: mapToPublicFn(findTagByName),
}, },
onLoad(pluginData) { onLoad(pluginData) {