siyuan 0.8.8 → 0.8.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,7 +1,11 @@
1
1
  # Changelog
2
2
 
3
- ## 0.8.9 2023-11
3
+ ## 0.9.0 2023-12
4
4
 
5
+ ## 0.8.9 2023-11-28
6
+
7
+ * [Add plugin method `openMobileFileById`](https://github.com/siyuan-note/siyuan/issues/9738)
8
+ * [Update openTab return value](https://github.com/siyuan-note/petal/pull/20/files)
5
9
 
6
10
  ## 0.8.8 2023-10-31
7
11
 
package/package.json CHANGED
@@ -12,6 +12,6 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "0.8.8",
15
+ "version": "0.8.9",
16
16
  "repository": "https://github.com/siyuan-note/petal"
17
17
  }
package/siyuan.d.ts CHANGED
@@ -418,6 +418,8 @@ export function openWindow(options: {
418
418
  },
419
419
  }): void;
420
420
 
421
+ export function openMobileFileById(app: App, id: string, action: string[]): void;
422
+
421
423
  export function openTab(options: {
422
424
  app: App,
423
425
  doc?: {
@@ -449,7 +451,7 @@ export function openTab(options: {
449
451
  keepCursor?: boolean; // 是否跳转到新 tab 上
450
452
  removeCurrentTab?: boolean; // 在当前页签打开时需移除原有页签
451
453
  afterOpen?: () => void; // 打开后回调
452
- }): ITab
454
+ }): Promise<ITab>
453
455
 
454
456
  export function getFrontend(): "desktop" | "desktop-window" | "mobile" | "browser-desktop" | "browser-mobile";
455
457