From 4fc8ef7afc62af4f595e28ea0d46455c4f79b673 Mon Sep 17 00:00:00 2001 From: frostime Date: Tue, 15 Aug 2023 10:38:13 +0800 Subject: [PATCH] update to v0.1.12 --- CHANGELOG.md | 9 +++++++++ package.json | 4 ++-- plugin.json | 2 +- src/index.ts | 12 ++++++++++++ 4 files changed, 24 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19a59a1..47d5ed1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## 0.1.12 2023-08-01 + +* Upgrade siyuan to 0.7.9 + +## 0.1.11 + +* [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725) + + ## 0.1.10 * [Add `bind this` example for eventBus in plugins](https://github.com/siyuan-note/siyuan/issues/8668) diff --git a/package.json b/package.json index 829bbb5..9d1e0e5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "plugin-sample-vite-svelte", - "version": "0.1.10", + "version": "0.1.12", "type": "module", "description": "", "repository": "", @@ -22,7 +22,7 @@ "minimist": "^1.2.8", "rollup-plugin-livereload": "^2.0.5", "sass": "^1.62.1", - "siyuan": "0.7.7", + "siyuan": "0.7.9", "svelte": "^3.57.0", "ts-node": "^10.9.1", "typescript": "^5.0.4", diff --git a/plugin.json b/plugin.json index 0cb1325..5def5dc 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "plugin-sample-vite-svelte", "author": "frostime", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", - "version": "0.1.8", + "version": "0.1.12", "minAppVersion": "2.9.0", "backends": ["all"], "frontends": ["all"], diff --git a/src/index.ts b/src/index.ts index 661f792..ed17f48 100644 --- a/src/index.ts +++ b/src/index.ts @@ -524,6 +524,18 @@ export default class PluginSample extends Plugin { click: () => { this.eventBus.off("open-menu-breadcrumbmore", this.eventBusLog); } + }, { + icon: "iconSelect", + label: "On input-search", + click: () => { + this.eventBus.on("input-search", this.eventBusLog); + } + }, { + icon: "iconClose", + label: "Off input-search", + click: () => { + this.eventBus.off("input-search", this.eventBusLog); + } }] }); menu.addSeparator();