Skip to content

Commit 4fc8ef7

Browse files
committed
update to v0.1.12
1 parent 014f906 commit 4fc8ef7

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.1.12 2023-08-01
2+
3+
* Upgrade siyuan to 0.7.9
4+
5+
## 0.1.11
6+
7+
* [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725)
8+
9+
110
## 0.1.10
211

312
* [Add `bind this` example for eventBus in plugins](https://github.com/siyuan-note/siyuan/issues/8668)

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plugin-sample-vite-svelte",
3-
"version": "0.1.10",
3+
"version": "0.1.12",
44
"type": "module",
55
"description": "",
66
"repository": "",
@@ -22,7 +22,7 @@
2222
"minimist": "^1.2.8",
2323
"rollup-plugin-livereload": "^2.0.5",
2424
"sass": "^1.62.1",
25-
"siyuan": "0.7.7",
25+
"siyuan": "0.7.9",
2626
"svelte": "^3.57.0",
2727
"ts-node": "^10.9.1",
2828
"typescript": "^5.0.4",

plugin.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "plugin-sample-vite-svelte",
33
"author": "frostime",
44
"url": "https://github.com/siyuan-note/plugin-sample-vite-svelte",
5-
"version": "0.1.8",
5+
"version": "0.1.12",
66
"minAppVersion": "2.9.0",
77
"backends": ["all"],
88
"frontends": ["all"],

src/index.ts

+12
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,18 @@ export default class PluginSample extends Plugin {
524524
click: () => {
525525
this.eventBus.off("open-menu-breadcrumbmore", this.eventBusLog);
526526
}
527+
}, {
528+
icon: "iconSelect",
529+
label: "On input-search",
530+
click: () => {
531+
this.eventBus.on("input-search", this.eventBusLog);
532+
}
533+
}, {
534+
icon: "iconClose",
535+
label: "Off input-search",
536+
click: () => {
537+
this.eventBus.off("input-search", this.eventBusLog);
538+
}
527539
}]
528540
});
529541
menu.addSeparator();

0 commit comments

Comments
 (0)