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