siyuan 1.1.4 → 1.1.5
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 +5 -1
- package/package.json +1 -1
- package/siyuan.d.ts +17 -8
- package/types/constants.ts +1 -1
- package/types/index.d.ts +5 -1
- package/types/protyle.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v1.1.5
|
|
3
|
+
## v1.1.5 2025-09-09
|
|
4
|
+
|
|
5
|
+
* [Adjust imports to separate type and general](https://github.com/siyuan-note/petal/pull/41)
|
|
6
|
+
* [Supplement missing attributes](https://github.com/siyuan-note/petal/issues/40)
|
|
7
|
+
* [Add plugin function `expandDocTree`](https://github.com/siyuan-note/siyuan/issues/15639)
|
|
4
8
|
|
|
5
9
|
## v1.1.4 2025-09-02
|
|
6
10
|
|
package/package.json
CHANGED
package/siyuan.d.ts
CHANGED
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type {
|
|
2
2
|
IGetDocInfo,
|
|
3
3
|
IGetTreeStat,
|
|
4
4
|
IMenuBaseDetail,
|
|
5
|
-
Config,
|
|
6
|
-
Custom,
|
|
7
|
-
Dock,
|
|
8
5
|
IMenu,
|
|
9
6
|
IObject,
|
|
10
7
|
IPosition,
|
|
11
8
|
ISiyuan,
|
|
12
9
|
IWebSocketData,
|
|
13
10
|
IProtyle,
|
|
11
|
+
IProtyleOptions,
|
|
12
|
+
TProtyleAction,
|
|
13
|
+
IMenuItem,
|
|
14
|
+
IRefDefs,
|
|
15
|
+
} from "./types";
|
|
16
|
+
import {
|
|
17
|
+
Config,
|
|
18
|
+
Custom,
|
|
14
19
|
Lute,
|
|
15
20
|
Protyle,
|
|
16
21
|
Toolbar,
|
|
17
|
-
IProtyleOptions,
|
|
18
|
-
TProtyleAction,
|
|
19
22
|
subMenu,
|
|
20
23
|
App,
|
|
21
24
|
Files,
|
|
22
|
-
Tab,
|
|
23
|
-
|
|
25
|
+
Tab,
|
|
26
|
+
Model,
|
|
27
|
+
MobileCustom,
|
|
24
28
|
} from "./types";
|
|
25
29
|
|
|
26
30
|
export * from "./types";
|
|
@@ -296,6 +300,11 @@ export function getActiveTab(wndActive?: boolean): Tab;
|
|
|
296
300
|
*/
|
|
297
301
|
export function getActiveEditor(wndActive?: boolean): Protyle;
|
|
298
302
|
|
|
303
|
+
export function expandDocTree(options: {
|
|
304
|
+
id: string,
|
|
305
|
+
isSetCurrent?: boolean
|
|
306
|
+
}): void;
|
|
307
|
+
|
|
299
308
|
export function openMobileFileById(app: App, id: string, action?: TProtyleAction[]): void;
|
|
300
309
|
|
|
301
310
|
export function openTab(options: {
|
package/types/constants.ts
CHANGED
package/types/index.d.ts
CHANGED
|
@@ -211,7 +211,7 @@ export interface ISiyuan {
|
|
|
211
211
|
}[]
|
|
212
212
|
},
|
|
213
213
|
dragElement?: HTMLElement,
|
|
214
|
-
currentDragOverTabHeadersElement?: HTMLElement
|
|
214
|
+
currentDragOverTabHeadersElement?: HTMLElement
|
|
215
215
|
layout?: {
|
|
216
216
|
layout?: Layout,
|
|
217
217
|
centerLayout?: Layout,
|
|
@@ -240,6 +240,10 @@ export interface ISiyuan {
|
|
|
240
240
|
blockPanels: BlockPanel[],
|
|
241
241
|
dialogs: Dialog[],
|
|
242
242
|
viewer?: Viewer
|
|
243
|
+
/**
|
|
244
|
+
* 是否在发布服务下访问
|
|
245
|
+
*/
|
|
246
|
+
isPublish?: boolean;
|
|
243
247
|
}
|
|
244
248
|
|
|
245
249
|
export interface IMenu {
|
package/types/protyle.d.ts
CHANGED