@tauri-apps/plugin-window-state 2.0.0-alpha.4 → 2.0.0-beta.0

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
@@ -18,7 +18,7 @@ Install the Core plugin by adding the following to your `Cargo.toml` file:
18
18
 
19
19
  ```toml
20
20
  [dependencies]
21
- tauri-plugin-window-state = "2.0.0-alpha"
21
+ tauri-plugin-window-state = "2.0.0-beta"
22
22
  # alternatively with Git:
23
23
  tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" }
24
24
  ```
package/dist-js/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var primitives = require('@tauri-apps/api/primitives');
3
+ var core = require('@tauri-apps/api/core');
4
4
  var window = require('@tauri-apps/api/window');
5
5
 
6
6
  // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
@@ -20,13 +20,13 @@ exports.StateFlags = void 0;
20
20
  * Save the state of all open windows to disk.
21
21
  */
22
22
  async function saveWindowState(flags) {
23
- return primitives.invoke("plugin:window-state|save_window_state", { flags });
23
+ return core.invoke("plugin:window-state|save_window_state", { flags });
24
24
  }
25
25
  /**
26
26
  * Restore the state for the specified window from disk.
27
27
  */
28
28
  async function restoreState(label, flags) {
29
- return primitives.invoke("plugin:window-state|restore_state", { label, flags });
29
+ return core.invoke("plugin:window-state|restore_state", { label, flags });
30
30
  }
31
31
  /**
32
32
  * Restore the state for the current window from disk.
package/dist-js/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { invoke } from '@tauri-apps/api/primitives';
1
+ import { invoke } from '@tauri-apps/api/core';
2
2
  import { getCurrent } from '@tauri-apps/api/window';
3
3
 
4
4
  // Copyright 2019-2023 Tauri Programme within The Commons Conservancy
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-window-state",
3
- "version": "2.0.0-alpha.4",
3
+ "version": "2.0.0-beta.0",
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": [
@@ -21,7 +21,7 @@
21
21
  "LICENSE"
22
22
  ],
23
23
  "dependencies": {
24
- "@tauri-apps/api": "2.0.0-alpha.12"
24
+ "@tauri-apps/api": "2.0.0-beta.0"
25
25
  },
26
26
  "scripts": {
27
27
  "build": "rollup -c"