Skip to content

Commit

Permalink
🎨 misc: add public open method
Browse files Browse the repository at this point in the history
  • Loading branch information
frostime committed Jun 5, 2024
1 parent fe90f4b commit 9b1bcc1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sy-docs-flow",
"version": "0.10.1",
"version": "0.10.0",
"type": "module",
"description": "",
"repository": "",
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "sy-docs-flow",
"author": "frostime",
"url": "https://github.com/frostime/sy-docs-flow",
"version": "0.10.1",
"version": "0.10.0",
"minAppVersion": "3.0.12",
"backends": ["all"],
"frontends": ["desktop", "desktop-window", "browser-desktop", "browser-mobile"],
Expand Down
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,15 @@ export default class DocsFlowPlugin extends Plugin {
});
}

open(type: TRuleType, input: any, config?: any) {
let rule = RuleFactory(type, input);
if (rule === null) return;
if (config) {
rule.mergeConfig(config);
}
this.tabHub.open(rule);
}

eventCustomIds(event: CustomEvent<CustomEventDetail<BlockId[]>>) {
console.groupCollapsed("DocsFlowPlugin Eventbus");
console.log("CustomEvent[IdList] detail:");
Expand Down

0 comments on commit 9b1bcc1

Please sign in to comment.