siyuan 1.0.6 → 1.0.7

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,9 @@
1
1
  # Changelog
2
2
 
3
- ## v1.0.7 2024-11
3
+ ## v1.0.7 2024-12-10
4
+
5
+ * [Support HarmonyOS NEXT system](https://github.com/siyuan-note/siyuan/issues/13184)
6
+ * [Add `disable`, `enable` method to Protyle](https://github.com/siyuan-note/siyuan/issues/13391)
4
7
 
5
8
  ## v1.0.6 2024-11-19
6
9
 
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.7",
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
 
@@ -398,7 +398,7 @@ export abstract class Plugin {
398
398
 
399
399
  updateCards(options: ICardData): Promise<ICardData> | ICardData;
400
400
 
401
- updateProtyleToolbar(toolbar: Array<string | IMenuItem>) : Array<string | IMenuItem>;
401
+ updateProtyleToolbar(toolbar: Array<string | IMenuItem>): Array<string | IMenuItem>;
402
402
  }
403
403
 
404
404
  export class Setting {
package/types/config.d.ts CHANGED
@@ -1542,9 +1542,10 @@ export namespace Config {
1542
1542
  * - `docker`: Docker container
1543
1543
  * - `android`: Android device
1544
1544
  * - `ios`: iOS device
1545
+ * - `harmony`: HarmonyOS device
1545
1546
  * - `std`: Desktop Electron environment
1546
1547
  */
1547
- export type TSystemContainer = "docker" | "android" | "ios" | "std";
1548
+ export type TSystemContainer = "docker" | "android" | "ios" | "harmony" | "std";
1548
1549
 
1549
1550
  /**
1550
1551
  * SiYuan Network proxy configuration
@@ -602,4 +602,8 @@ 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
605
609
  }