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:
parent
99438441cb
commit
3667f4a3fb
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue