diff --git a/CHANGELOG.md b/CHANGELOG.md index c5116c8..ce36ec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,24 @@ # Changelog -## 0.3.2 2024-01 +## 0.3.5 2024-03 + +## 0.3.4 2024-02-20 + +* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318) + +## 0.3.3 2024-01-24 + +* Update dock icon class + +## 0.3.2 2024-01-09 + +* [Add plugin `protyleOptions`](https://github.com/siyuan-note/siyuan/issues/10090) +* [Add plugin api `uninstall`](https://github.com/siyuan-note/siyuan/issues/10063) +* [Add plugin method `updateCards`](https://github.com/siyuan-note/siyuan/issues/10065) +* [Add plugin function `lockScreen`](https://github.com/siyuan-note/siyuan/issues/10063) +* [Add plugin event bus `lock-screen`](https://github.com/siyuan-note/siyuan/pull/9967) +* [Add plugin event bus `open-menu-inbox`](https://github.com/siyuan-note/siyuan/pull/9967) + ## 0.3.1 2023-12-06 diff --git a/package.json b/package.json index 20aed08..24108a9 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "minimist": "^1.2.8", "rollup-plugin-livereload": "^2.0.5", "sass": "^1.63.3", - "siyuan": "0.9.2", + "siyuan": "0.9.4", "svelte": "^3.59.1", "ts-node": "^10.9.1", "typescript": "^5.1.3", diff --git a/plugin.json b/plugin.json index c9be70d..b810268 100644 --- a/plugin.json +++ b/plugin.json @@ -2,8 +2,8 @@ "name": "plugin-sample-vite-svelte", "author": "frostime", "url": "https://github.com/siyuan-note/plugin-sample-vite-svelte", - "version": "0.3.2", - "minAppVersion": "2.12.1", + "version": "0.3.4", + "minAppVersion": "3.0.0", "backends": [ "windows", "linux", diff --git a/src/index.ts b/src/index.ts index 1ec1fab..ce1c09b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -120,6 +120,7 @@ export default class PluginSample extends Plugin { size: { width: 200, height: 0 }, icon: "iconSaving", title: "Custom Dock", + hotkey: "⌥⌘W", }, data: { text: "This is my custom dock" @@ -592,6 +593,18 @@ export default class PluginSample extends Plugin { click: () => { this.eventBus.off("click-editortitleicon", this.eventBusLog); } + }, { + icon: "iconSelect", + label: "On click-flashcard-action", + click: () => { + this.eventBus.on("click-flashcard-action", this.eventBusLog); + } + }, { + icon: "iconClose", + label: "Off click-flashcard-action", + click: () => { + this.eventBus.off("click-flashcard-action", this.eventBusLog); + } }, { icon: "iconSelect", label: "On open-noneditableblock",