siyuan 1.1.9 → 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,10 @@
1
1
  # Changelog
2
2
 
3
- ## v1.2.0 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)
4
8
 
5
9
  ## v1.1.9 2026-03-31
6
10
 
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.1.9",
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
@@ -371,7 +373,7 @@ export function exitSiYuan(): void
371
373
 
372
374
  export function getAllEditor(): Protyle[]
373
375
 
374
- export function getAllTabs(): Tab[]
376
+ export function getAllTabs(type?: TTab | string): Tab[]
375
377
 
376
378
  export function getAllModels(): {
377
379
  editor: [],