tauri-plugin-z9 0.1.9 → 0.1.10

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.
@@ -1,5 +1,5 @@
1
1
  //#region guest-js/index.d.ts
2
- export declare function minimizeApp(): Promise<undefined | string>;
2
+ export declare function minimizeApp(): Promise<void>;
3
3
  export type Insets = {
4
4
  top: number;
5
5
  bottom: number;
@@ -7,5 +7,5 @@ export type Insets = {
7
7
  right: number;
8
8
  };
9
9
  export declare function getInsets(): Promise<Insets>;
10
- export declare function setLightSystemBar(light: boolean): Promise<void>;
10
+ export declare function setNightMode(night: boolean): Promise<void>;
11
11
  //#endregion
package/dist-js/index.mjs CHANGED
@@ -1,13 +1,13 @@
1
1
  import { invoke } from "@tauri-apps/api/core";
2
2
  //#region guest-js/index.ts
3
3
  async function minimizeApp() {
4
- return await invoke("plugin:z9|minimize_app");
4
+ await invoke("plugin:z9|minimize_app");
5
5
  }
6
6
  async function getInsets() {
7
7
  return await invoke("plugin:z9|get_insets");
8
8
  }
9
- async function setLightSystemBar(light) {
10
- await invoke("plugin:z9|set_light_system_bar", { light });
9
+ async function setNightMode(night) {
10
+ await invoke("plugin:z9|set_night_mode", { night });
11
11
  }
12
12
  //#endregion
13
- export { getInsets, minimizeApp, setLightSystemBar };
13
+ export { getInsets, minimizeApp, setNightMode };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-z9",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "author": "tinysrc",
5
5
  "description": "",
6
6
  "type": "module",