siyuan 1.1.8 → 1.2.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,14 @@
1
1
  # Changelog
2
2
 
3
- ## v1.1.9 2026
3
+ ## v1.2.1
4
+
5
+ ## v1.2.0 2026-04-14
6
+
7
+ * [Add `type` parameter to `getAllTabs` plugin](https://github.com/siyuan-note/siyuan/issues/17354)
8
+
9
+ ## v1.1.9 2026-03-31
10
+
11
+ * [Add `alwaysOnTop` parameter to `openWindow` plugin](https://github.com/siyuan-note/siyuan/issues/16080)
4
12
 
5
13
  ## v1.1.8 2026-03-11
6
14
 
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.1.8",
15
+ "version": "1.2.0",
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/siyuan-note/petal.git"
package/siyuan.d.ts CHANGED
@@ -36,6 +36,8 @@ declare global {
36
36
 
37
37
  export type TDock = "file" | "outline" | "inbox" | "bookmark" | "tag" | "graph" | "globalGraph" | "backlink"
38
38
 
39
+ export type TTab = "Outline" | "Graph" | "Backlink" | "Asset" | "Editor" | "Search" | "siyuan-card"
40
+
39
41
  export type TCardType = "doc" | "notebook" | "all"
40
42
 
41
43
  export type TEventBus = keyof IEventBusMap
@@ -303,6 +305,7 @@ export function openWindow(options: {
303
305
  height?: number,
304
306
  width?: number,
305
307
  tab?: Tab,
308
+ alwaysOnTop?: boolean,
306
309
  doc?: {
307
310
  id: string; // 块 id
308
311
  },
@@ -370,7 +373,7 @@ export function exitSiYuan(): void
370
373
 
371
374
  export function getAllEditor(): Protyle[]
372
375
 
373
- export function getAllTabs(): Tab[]
376
+ export function getAllTabs(type?: TTab | string): Tab[]
374
377
 
375
378
  export function getAllModels(): {
376
379
  editor: [],
@@ -16,7 +16,7 @@ export declare const getLocalStorage: (cb: () => void) => void;
16
16
  export declare const setStorageVal: (key: string, val: any, cb?: () => void) => void;
17
17
 
18
18
  /**
19
- * @param {string} [options.timeoutType="defalut"] 仅在桌面端有效,"default" 表示使用默认的超时机制,"never" 表示通知将一直显示,直到用户手动关闭它。
19
+ * @param {string} [options.timeoutType="defalut"] 仅在 Windows 和 Linux 有效,"default" 表示使用默认的超时机制,"never" 表示通知将一直显示,直到用户手动关闭它。
20
20
  * @returns 通知 id
21
21
  */
22
22
  export declare const sendNotification: (options: {