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