siyuan 0.9.3 → 0.9.5
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 +9 -1
- package/package.json +1 -1
- package/siyuan.d.ts +10 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.9.
|
|
3
|
+
## 0.9.6 2024-03
|
|
4
|
+
|
|
5
|
+
## 0.9.5 2024-03-05
|
|
6
|
+
|
|
7
|
+
* [Update `Dialog`](https://github.com/siyuan-note/petal/issues/24)
|
|
8
|
+
|
|
9
|
+
## 0.9.4 2024-02-20
|
|
10
|
+
|
|
11
|
+
* [Add plugin event bus `click-flashcard-action`](https://github.com/siyuan-note/siyuan/issues/10318)
|
|
4
12
|
|
|
5
13
|
## 0.9.3 2024-01-30
|
|
6
14
|
|
package/package.json
CHANGED
package/siyuan.d.ts
CHANGED
|
@@ -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,
|
|
@@ -609,16 +613,21 @@ export class EventBus {
|
|
|
609
613
|
export class Dialog {
|
|
610
614
|
|
|
611
615
|
element: HTMLElement;
|
|
616
|
+
editors: { [key: string]: Protyle };
|
|
617
|
+
data: any;
|
|
612
618
|
|
|
613
619
|
constructor(options: {
|
|
620
|
+
positionId?: string,
|
|
614
621
|
title?: string,
|
|
615
622
|
transparent?: boolean,
|
|
616
623
|
content: string,
|
|
617
|
-
width?: string
|
|
624
|
+
width?: string,
|
|
618
625
|
height?: string,
|
|
619
626
|
destroyCallback?: (options?: IObject) => void,
|
|
620
627
|
disableClose?: boolean,
|
|
628
|
+
hideCloseIcon?: boolean,
|
|
621
629
|
disableAnimation?: boolean,
|
|
630
|
+
resizeCallback?: (type: string) => void
|
|
622
631
|
});
|
|
623
632
|
|
|
624
633
|
destroy(options?: IObject): void;
|