siyuan 0.7.9 → 0.8.1

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,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.8.2 2023-08
4
+
5
+ ## 0.8.1 2023-08-21
6
+
7
+ * [Plugin API add getOpenedTab method](https://github.com/siyuan-note/siyuan/issues/9002)
8
+ * [Plugin API custom.fn => custom.id in openTab](https://github.com/siyuan-note/siyuan/issues/8944)
9
+
10
+ ## 0.8.0 2023-08-15
11
+
12
+ * [Add plugin event bus `open-siyuan-url-plugin` and `open-siyuan-url-block`](https://github.com/siyuan-note/siyuan/pull/8927)
13
+
3
14
  ## 0.7.9 2023-08-01
4
15
 
5
16
  * [Add parameter dialog to the "confirm" callback](https://github.com/siyuan-note/siyuan/issues/8851)
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.9",
5
+ "version": "0.8.1",
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
 
@@ -197,7 +197,7 @@ export function openTab(options: {
197
197
  title: string,
198
198
  icon: string,
199
199
  data?: any
200
- fn?: () => IModel,
200
+ id: string,
201
201
  }
202
202
  position?: "right" | "bottom",
203
203
  keepCursor?: boolean // 是否跳转到新 tab 上
@@ -282,6 +282,8 @@ export abstract class Plugin {
282
282
 
283
283
  addIcons(svg: string): void;
284
284
 
285
+ getOpenedTab(): { [key: string]: IModel[] } ;
286
+
285
287
  /**
286
288
  * Must be executed before the synchronous function.
287
289
  */