siyuan 0.9.4 → 0.9.6

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 CHANGED
@@ -1,6 +1,14 @@
1
1
  # Changelog
2
2
 
3
- ## 0.9.5 2024-03
3
+ ## 0.9.7 2024-03
4
+
5
+ ## 0.9.6 2024-03-19
6
+
7
+ * [Add method `getInstance` to IProtyle](https://github.com/siyuan-note/petal/pull/25)
8
+
9
+ ## 0.9.5 2024-03-05
10
+
11
+ * [Update `Dialog`](https://github.com/siyuan-note/petal/issues/24)
4
12
 
5
13
  ## 0.9.4 2024-02-20
6
14
 
package/package.json CHANGED
@@ -12,6 +12,6 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "0.9.4",
15
+ "version": "0.9.6",
16
16
  "repository": "https://github.com/siyuan-note/petal"
17
17
  }
package/siyuan.d.ts CHANGED
@@ -613,16 +613,21 @@ export class EventBus {
613
613
  export class Dialog {
614
614
 
615
615
  element: HTMLElement;
616
+ editors: { [key: string]: Protyle };
617
+ data: any;
616
618
 
617
619
  constructor(options: {
620
+ positionId?: string,
618
621
  title?: string,
619
622
  transparent?: boolean,
620
623
  content: string,
621
- width?: string
624
+ width?: string,
622
625
  height?: string,
623
626
  destroyCallback?: (options?: IObject) => void,
624
627
  disableClose?: boolean,
628
+ hideCloseIcon?: boolean,
625
629
  disableAnimation?: boolean,
630
+ resizeCallback?: (type: string) => void
626
631
  });
627
632
 
628
633
  destroy(options?: IObject): void;
@@ -70,6 +70,7 @@ export interface IProtyleOption {
70
70
 
71
71
  // REF: https://github.com/siyuan-note/siyuan/blob/dev/app/src/types/protyle.d.ts
72
72
  export interface IProtyle {
73
+ getInstance: () => Protyle;
73
74
  app: App;
74
75
  transactionTime: number;
75
76
  id: string;