siyuan 0.7.7 → 0.7.9

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,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.9 2023-08-01
4
+
5
+ * [Add parameter dialog to the "confirm" callback](https://github.com/siyuan-note/siyuan/issues/8851)
6
+ * [Add protyle to the Protyle class](https://github.com/siyuan-note/petal/issues/12)
7
+
8
+ ## 0.7.8 2023-07-18
9
+
10
+ * [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725)
11
+
3
12
  ## v0.7.7
4
13
 
5
14
  * [Add `open-menu-breadcrumbmore` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8666)
package/package.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "name": "siyuan",
3
3
  "contributors": ["zuoez02", "Vanessa"],
4
4
  "types": "siyuan.d.ts",
5
- "version": "0.7.7",
5
+ "version": "0.7.9",
6
6
  "repository": "https://github.com/siyuan-note/petal"
7
7
  }
package/siyuan.d.ts CHANGED
@@ -4,6 +4,7 @@ type TEventBus = "ws-main" |
4
4
  "open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |
5
5
  "open-menu-av" | "open-menu-content" |
6
6
  "open-menu-breadcrumbmore" |
7
+ "input-search" |
7
8
  "loaded-protyle"
8
9
 
9
10
  type TCardType = "doc" | "notebook" | "all"
@@ -210,7 +211,7 @@ export function getBackend(): "windows" | "linux" | "darwin" | "docker" | "andro
210
211
 
211
212
  export function adaptHotkey(hotkey: string): string;
212
213
 
213
- export function confirm(title: string, text: string, confirmCallback?: () => void, cancelCallback?: () => void): void;
214
+ export function confirm(title: string, text: string, confirmCallback?: (dialog: Dialog) => void, cancelCallback?: (dialog: Dialog) => void): void;
214
215
 
215
216
  /**
216
217
  * @param timeout - ms. 0: manual close;-1: always show; 6000: default
@@ -318,6 +319,9 @@ export abstract class Plugin {
318
319
  }
319
320
 
320
321
  export class Protyle {
322
+
323
+ public protyle: any;
324
+
321
325
  constructor(app: App, element: HTMLElement, options?: IProtyleOption)
322
326
 
323
327
  isUploading(): boolean