siyuan 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -1
- package/package.json +1 -1
- package/siyuan.d.ts +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.9.
|
|
3
|
+
## 0.9.5 2024-03
|
|
4
4
|
|
|
5
|
+
## 0.9.4 2024-02-20
|
|
6
|
+
|
|
7
|
+
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318)
|
|
8
|
+
|
|
9
|
+
## 0.9.3 2024-01-30
|
|
10
|
+
|
|
11
|
+
* [Improve Global.Lute type](https://github.com/siyuan-note/petal/issues/23)
|
|
5
12
|
|
|
6
13
|
## 0.9.2 2024-01-09
|
|
7
14
|
|
package/package.json
CHANGED
package/siyuan.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./types";
|
|
2
2
|
|
|
3
|
-
import {IProtyle, Lute, Protyle, Toolbar, IProtyleOption} from "./types/protyle";
|
|
3
|
+
import {IProtyle, Lute, Protyle, Toolbar, IProtyleOption, TProtyleAction} from "./types/protyle";
|
|
4
4
|
import {IMenuBaseDetail} from "./types/events";
|
|
5
5
|
import {IGetDocInfo, IGetTreeStat} from "./types/response";
|
|
6
6
|
|
|
@@ -65,7 +65,7 @@ export type TAVCol =
|
|
|
65
65
|
| "phone"
|
|
66
66
|
|
|
67
67
|
export interface Global {
|
|
68
|
-
Lute: Lute;
|
|
68
|
+
Lute: typeof Lute;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
interface IKeymapItem {
|
|
@@ -102,6 +102,10 @@ export interface IKeymap {
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export interface IEventBusMap {
|
|
105
|
+
"click-flashcard-action": {
|
|
106
|
+
card: ICard,
|
|
107
|
+
type: string, // 1 - 重来;2 - 困难;3 - 良好;4 - 简单;-1 - 显示答案;-2 - 上一个 ;-3 - 跳过
|
|
108
|
+
};
|
|
105
109
|
"click-blockicon": {
|
|
106
110
|
menu: EventMenu,
|
|
107
111
|
protyle: IProtyle,
|
|
@@ -414,7 +418,7 @@ export function openTab(options: {
|
|
|
414
418
|
app: App,
|
|
415
419
|
doc?: {
|
|
416
420
|
id: string, // 块 id
|
|
417
|
-
action?:
|
|
421
|
+
action?: TProtyleAction[],
|
|
418
422
|
zoomIn?: boolean, // 是否缩放
|
|
419
423
|
};
|
|
420
424
|
pdf?: {
|