tauri-plugin-z9 0.1.2 → 0.1.3

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,3 +1,17 @@
1
1
  //#region guest-js/index.d.ts
2
+ export type Insets = {
3
+ top: number;
4
+ bottom: number;
5
+ left: number;
6
+ right: number;
7
+ };
8
+ export type InsetsResult = {
9
+ statusBars?: Insets;
10
+ navigationBars?: Insets;
11
+ displayCutout?: Insets;
12
+ ime?: Insets;
13
+ systemGestures?: Insets;
14
+ };
2
15
  export declare function minimizeApp(): Promise<undefined | string>;
16
+ export declare function insets(): Promise<InsetsResult>;
3
17
  //#endregion
package/dist-js/index.mjs CHANGED
@@ -3,5 +3,8 @@ 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 insets() {
7
+ return await invoke("plugin:z9|insets");
8
+ }
6
9
  //#endregion
7
- export { minimizeApp };
10
+ export { insets, minimizeApp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tauri-plugin-z9",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "author": "tinysrc",
5
5
  "description": "",
6
6
  "type": "module",