siyuan 1.0.6 → 1.0.8

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,17 @@
1
1
  # Changelog
2
2
 
3
- ## v1.0.7 2024-11
3
+ ## v1.0.9 2025-01
4
+
5
+ ## v1.0.8 2024-12-24
6
+
7
+ * [Add plugin function `getAllModels`](https://github.com/siyuan-note/siyuan/issues/13579)
8
+ * [Add `renderAVAttribute` method to Protyle](https://github.com/siyuan-note/siyuan/pull/13547)
9
+ * [Remove Sentry reporting diagnostic data](https://github.com/siyuan-note/siyuan/issues/13522)
10
+
11
+ ## v1.0.7 2024-12-10
12
+
13
+ * [Support HarmonyOS NEXT system](https://github.com/siyuan-note/siyuan/issues/13184)
14
+ * [Add `disable`, `enable` method to Protyle](https://github.com/siyuan-note/siyuan/issues/13391)
4
15
 
5
16
  ## v1.0.6 2024-11-19
6
17
 
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "README.md",
13
13
  "siyuan.d.ts"
14
14
  ],
15
- "version": "1.0.6",
15
+ "version": "1.0.8",
16
16
  "repository": {
17
17
  "type": "git",
18
18
  "url": "git+https://github.com/siyuan-note/petal.git"
package/siyuan.d.ts CHANGED
@@ -281,7 +281,7 @@ export function openTab(options: {
281
281
 
282
282
  export function getFrontend(): "desktop" | "desktop-window" | "mobile" | "browser-desktop" | "browser-mobile";
283
283
 
284
- export function getBackend(): "windows" | "linux" | "darwin" | "docker" | "android" | "ios";
284
+ export function getBackend(): "windows" | "linux" | "darwin" | "docker" | "android" | "ios" | "harmony";
285
285
 
286
286
  export function lockScreen(app: App): void
287
287
 
@@ -289,6 +289,20 @@ export function exitSiYuan(): void
289
289
 
290
290
  export function getAllEditor(): Protyle[]
291
291
 
292
+ export function getAllModels(): {
293
+ editor: [],
294
+ graph: [],
295
+ asset: [],
296
+ outline: [],
297
+ backlink: [],
298
+ search: [],
299
+ inbox: [],
300
+ files: [],
301
+ bookmark: [],
302
+ tag: [],
303
+ custom: [],
304
+ }
305
+
292
306
  export function getModelByDockType(type: TDock | string): Model | any;
293
307
 
294
308
  /**
@@ -398,7 +412,7 @@ export abstract class Plugin {
398
412
 
399
413
  updateCards(options: ICardData): Promise<ICardData> | ICardData;
400
414
 
401
- updateProtyleToolbar(toolbar: Array<string | IMenuItem>) : Array<string | IMenuItem>;
415
+ updateProtyleToolbar(toolbar: Array<string | IMenuItem>): Array<string | IMenuItem>;
402
416
  }
403
417
 
404
418
  export class Setting {
package/types/config.d.ts CHANGED
@@ -1527,10 +1527,6 @@ export namespace Config {
1527
1527
  * Operating system platform name
1528
1528
  */
1529
1529
  osPlatform: string;
1530
- /**
1531
- * Whether to upload error logs
1532
- */
1533
- uploadErrLog: boolean;
1534
1530
  /**
1535
1531
  * The absolute path of the workspace directory
1536
1532
  */
@@ -1542,9 +1538,10 @@ export namespace Config {
1542
1538
  * - `docker`: Docker container
1543
1539
  * - `android`: Android device
1544
1540
  * - `ios`: iOS device
1541
+ * - `harmony`: HarmonyOS device
1545
1542
  * - `std`: Desktop Electron environment
1546
1543
  */
1547
- export type TSystemContainer = "docker" | "android" | "ios" | "std";
1544
+ export type TSystemContainer = "docker" | "android" | "ios" | "harmony" | "std";
1548
1545
 
1549
1546
  /**
1550
1547
  * SiYuan Network proxy configuration
@@ -602,4 +602,10 @@ export class Protyle {
602
602
  * @param {boolean} [toStart=true]
603
603
  */
604
604
  public focusBlock(element: Element, toStart?: boolean): false | Range
605
+
606
+ public disable(): void
607
+
608
+ public enable(): void
609
+
610
+ public renderAVAttribute(element: HTMLElement, id: string, cb?: (element: HTMLElement) => void): void
605
611
  }