siyuan 1.0.9 → 1.1.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 +8 -1
- package/package.json +1 -1
- package/siyuan.d.ts +7 -2
- package/types/index.d.ts +3 -1
- package/types/protyle.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## v1.1.
|
|
3
|
+
## v1.1.1 2025-03
|
|
4
|
+
|
|
5
|
+
## v1.1.0 2025-03-04
|
|
6
|
+
|
|
7
|
+
* [Support floating window `Open in New Tab`](https://github.com/siyuan-note/siyuan/issues/11801)
|
|
8
|
+
* [Add `data-id` attribute to the buttons](https://github.com/siyuan-note/siyuan/pull/14182)
|
|
9
|
+
* [Upgrade to Graphviz v3.11.0](https://github.com/siyuan-note/siyuan/issues/13852)
|
|
10
|
+
* [Add parameter `nodeElement` to `protyleSlash.callback`](https://github.com/siyuan-note/siyuan/issues/14036)
|
|
4
11
|
|
|
5
12
|
## v1.0.9 2025-02-11
|
|
6
13
|
|
package/package.json
CHANGED
package/siyuan.d.ts
CHANGED
|
@@ -276,6 +276,7 @@ export function openTab(options: {
|
|
|
276
276
|
position?: "right" | "bottom";
|
|
277
277
|
keepCursor?: boolean; // 是否跳转到新 tab 上
|
|
278
278
|
removeCurrentTab?: boolean; // 在当前页签打开时需移除原有页签
|
|
279
|
+
openNewTab?: boolean // 使用新页签打开
|
|
279
280
|
afterOpen?: () => void; // 打开后回调
|
|
280
281
|
}): Promise<Tab>
|
|
281
282
|
|
|
@@ -326,7 +327,7 @@ export abstract class Plugin {
|
|
|
326
327
|
filter: string[],
|
|
327
328
|
html: string,
|
|
328
329
|
id: string,
|
|
329
|
-
callback(protyle: Protyle): void,
|
|
330
|
+
callback(protyle: Protyle, nodeElement: HTMLElement): void,
|
|
330
331
|
}[];
|
|
331
332
|
protyleOptions: IProtyleOptions;
|
|
332
333
|
|
|
@@ -495,7 +496,11 @@ export class Menu {
|
|
|
495
496
|
|
|
496
497
|
addItem(option: IMenu): HTMLElement;
|
|
497
498
|
|
|
498
|
-
addSeparator(
|
|
499
|
+
addSeparator(options?: {
|
|
500
|
+
index?: number,
|
|
501
|
+
id?: string,
|
|
502
|
+
ignore?: boolean
|
|
503
|
+
}): HTMLElement;
|
|
499
504
|
|
|
500
505
|
open(options: IPosition): void;
|
|
501
506
|
|
package/types/index.d.ts
CHANGED
|
@@ -420,7 +420,7 @@ export declare class subMenu {
|
|
|
420
420
|
|
|
421
421
|
constructor();
|
|
422
422
|
|
|
423
|
-
addSeparator(index?: number): void;
|
|
423
|
+
addSeparator(index?: number, id?: string): void;
|
|
424
424
|
|
|
425
425
|
addItem(menu: IMenu): void;
|
|
426
426
|
}
|
|
@@ -432,7 +432,9 @@ export declare class App {
|
|
|
432
432
|
|
|
433
433
|
export declare class Menus {
|
|
434
434
|
menu: Menu;
|
|
435
|
+
|
|
435
436
|
constructor(app: App);
|
|
437
|
+
|
|
436
438
|
private getDir;
|
|
437
439
|
private unselect;
|
|
438
440
|
}
|
package/types/protyle.d.ts
CHANGED
|
@@ -174,9 +174,9 @@ export interface IProtyle {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
declare class Viz {
|
|
177
|
-
|
|
177
|
+
public static instance(): Promise<Viz>;
|
|
178
178
|
|
|
179
|
-
renderSVGElement: (code: string) =>
|
|
179
|
+
renderSVGElement: (code: string) => SVGElement;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
declare class Viewer {
|