@tauri-apps/plugin-window-state 2.3.0 → 2.4.1

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/README.md CHANGED
@@ -33,21 +33,12 @@ tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-works
33
33
 
34
34
  You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
35
35
 
36
- > Note: Since most JavaScript package managers are unable to install packages from git monorepos we provide read-only mirrors of each plugin. This makes installation option 2 more ergonomic to use.
37
-
38
36
  ```sh
39
37
  pnpm add @tauri-apps/plugin-window-state
40
38
  # or
41
39
  npm add @tauri-apps/plugin-window-state
42
40
  # or
43
41
  yarn add @tauri-apps/plugin-window-state
44
-
45
- # alternatively with Git:
46
- pnpm add https://github.com/tauri-apps/tauri-plugin-window-state#v2
47
- # or
48
- npm add https://github.com/tauri-apps/tauri-plugin-window-state#v2
49
- # or
50
- yarn add https://github.com/tauri-apps/tauri-plugin-window-state#v2
51
42
  ```
52
43
 
53
44
  ## Usage
@@ -11,15 +11,15 @@ export declare enum StateFlags {
11
11
  /**
12
12
  * Save the state of all open windows to disk.
13
13
  */
14
- declare function saveWindowState(flags: StateFlags): Promise<void>;
14
+ declare function saveWindowState(flags?: StateFlags): Promise<void>;
15
15
  /**
16
16
  * Restore the state for the specified window from disk.
17
17
  */
18
- declare function restoreState(label: WindowLabel, flags: StateFlags): Promise<void>;
18
+ declare function restoreState(label: WindowLabel, flags?: StateFlags): Promise<void>;
19
19
  /**
20
20
  * Restore the state for the current window from disk.
21
21
  */
22
- declare function restoreStateCurrent(flags: StateFlags): Promise<void>;
22
+ declare function restoreStateCurrent(flags?: StateFlags): Promise<void>;
23
23
  /**
24
24
  * Get the name of the file used to store window state.
25
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-window-state",
3
- "version": "2.3.0",
3
+ "version": "2.4.1",
4
4
  "description": "Save window positions and sizes and restore them when the app is reopened.",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "authors": [
@@ -25,6 +25,6 @@
25
25
  "LICENSE"
26
26
  ],
27
27
  "dependencies": {
28
- "@tauri-apps/api": "^2.6.0"
28
+ "@tauri-apps/api": "^2.8.0"
29
29
  }
30
30
  }