@tauri-apps/plugin-window-state 2.0.0-beta.2 → 2.0.0-beta.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.
- package/dist-js/index.cjs +7 -0
- package/dist-js/index.d.ts +5 -1
- package/dist-js/index.js +7 -1
- package/package.json +2 -2
package/dist-js/index.cjs
CHANGED
|
@@ -34,7 +34,14 @@ async function restoreState(label, flags) {
|
|
|
34
34
|
async function restoreStateCurrent(flags) {
|
|
35
35
|
return restoreState(window.getCurrent().label, flags);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* Get the name of the file used to store window state.
|
|
39
|
+
*/
|
|
40
|
+
async function filename() {
|
|
41
|
+
return core.invoke("plugin:window-state|filename");
|
|
42
|
+
}
|
|
37
43
|
|
|
44
|
+
exports.filename = filename;
|
|
38
45
|
exports.restoreState = restoreState;
|
|
39
46
|
exports.restoreStateCurrent = restoreStateCurrent;
|
|
40
47
|
exports.saveWindowState = saveWindowState;
|
package/dist-js/index.d.ts
CHANGED
|
@@ -20,4 +20,8 @@ declare function restoreState(label: WindowLabel, flags: StateFlags): Promise<vo
|
|
|
20
20
|
* Restore the state for the current window from disk.
|
|
21
21
|
*/
|
|
22
22
|
declare function restoreStateCurrent(flags: StateFlags): Promise<void>;
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Get the name of the file used to store window state.
|
|
25
|
+
*/
|
|
26
|
+
declare function filename(): Promise<string>;
|
|
27
|
+
export { restoreState, restoreStateCurrent, saveWindowState, filename };
|
package/dist-js/index.js
CHANGED
|
@@ -32,5 +32,11 @@ async function restoreState(label, flags) {
|
|
|
32
32
|
async function restoreStateCurrent(flags) {
|
|
33
33
|
return restoreState(getCurrent().label, flags);
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Get the name of the file used to store window state.
|
|
37
|
+
*/
|
|
38
|
+
async function filename() {
|
|
39
|
+
return invoke("plugin:window-state|filename");
|
|
40
|
+
}
|
|
35
41
|
|
|
36
|
-
export { StateFlags, restoreState, restoreStateCurrent, saveWindowState };
|
|
42
|
+
export { StateFlags, filename, restoreState, restoreStateCurrent, saveWindowState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tauri-apps/plugin-window-state",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.3",
|
|
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-beta.
|
|
24
|
+
"@tauri-apps/api": "2.0.0-beta.8"
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "rollup -c"
|