siyuan 0.7.8 → 0.8.0

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,15 @@
1
1
  # Changelog
2
2
 
3
- ## 0.7.8
3
+ ## 0.8.0 2023-08-15
4
+
5
+ * [Add plugin event bus `open-siyuan-url-plugin` and `open-siyuan-url-block`](https://github.com/siyuan-note/siyuan/pull/8927)
6
+
7
+ ## 0.7.9 2023-08-01
8
+
9
+ * [Add parameter dialog to the "confirm" callback](https://github.com/siyuan-note/siyuan/issues/8851)
10
+ * [Add protyle to the Protyle class](https://github.com/siyuan-note/petal/issues/12)
11
+
12
+ ## 0.7.8 2023-07-18
4
13
 
5
14
  * [Add `input-search` event bus to plugins](https://github.com/siyuan-note/siyuan/issues/8725)
6
15
 
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.8",
5
+ "version": "0.8.0",
6
6
  "repository": "https://github.com/siyuan-note/petal"
7
7
  }
package/siyuan.d.ts CHANGED
@@ -2,8 +2,8 @@ type TEventBus = "ws-main" |
2
2
  "click-blockicon" | "click-editorcontent" | "click-pdf" | "click-editortitleicon" |
3
3
  "open-noneditableblock" |
4
4
  "open-menu-blockref" | "open-menu-fileannotationref" | "open-menu-tag" | "open-menu-link" | "open-menu-image" |
5
- "open-menu-av" | "open-menu-content" |
6
- "open-menu-breadcrumbmore" |
5
+ "open-menu-av" | "open-menu-content" | "open-menu-breadcrumbmore" |
6
+ "open-siyuan-url-plugin" | "open-siyuan-url-block" |
7
7
  "input-search" |
8
8
  "loaded-protyle"
9
9
 
@@ -211,7 +211,7 @@ export function getBackend(): "windows" | "linux" | "darwin" | "docker" | "andro
211
211
 
212
212
  export function adaptHotkey(hotkey: string): string;
213
213
 
214
- 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;
215
215
 
216
216
  /**
217
217
  * @param timeout - ms. 0: manual close;-1: always show; 6000: default
@@ -319,6 +319,9 @@ export abstract class Plugin {
319
319
  }
320
320
 
321
321
  export class Protyle {
322
+
323
+ public protyle: any;
324
+
322
325
  constructor(app: App, element: HTMLElement, options?: IProtyleOption)
323
326
 
324
327
  isUploading(): boolean