selfstore 1.5.0 → 1.6.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 +6 -3
- package/dist/advanced.d.ts +1 -1
- package/dist/advanced.js +3 -3
- package/dist/{chunk-SRKUHFRG.js → chunk-GJRHMI2O.js} +7 -5
- package/dist/chunk-GJRHMI2O.js.map +1 -0
- package/dist/{chunk-FL66ACWR.js → chunk-KSV2F3ZN.js} +3 -3
- package/dist/{chunk-FL66ACWR.js.map → chunk-KSV2F3ZN.js.map} +1 -1
- package/dist/{chunk-I243KZMZ.js → chunk-QVXZLZ6R.js} +3 -3
- package/dist/{chunk-I243KZMZ.js.map → chunk-QVXZLZ6R.js.map} +1 -1
- package/dist/{chunk-UWVAKBU4.js → chunk-RI4C6PRJ.js} +6 -5
- package/dist/chunk-RI4C6PRJ.js.map +1 -0
- package/dist/flows.js +2 -2
- package/dist/index.d.ts +9 -5
- package/dist/index.js +9 -8
- package/dist/index.js.map +1 -1
- package/dist/local-6PLQC34M.js +7 -0
- package/dist/{local-KIP25T7I.js.map → local-6PLQC34M.js.map} +1 -1
- package/dist/{local-6OALceUy.d.ts → local-C9mTIwSf.d.ts} +9 -2
- package/dist/widgets.js +5 -2
- package/dist/widgets.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-SRKUHFRG.js.map +0 -1
- package/dist/chunk-UWVAKBU4.js.map +0 -1
- package/dist/local-KIP25T7I.js +0 -7
|
@@ -39,8 +39,15 @@ declare function gisDriveAuth(opts: {
|
|
|
39
39
|
* Local-disk helpers: the DOM edge of selfstore, kept out of the core so the
|
|
40
40
|
* core stays environment-agnostic and testable.
|
|
41
41
|
*/
|
|
42
|
-
/**
|
|
43
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Save a backup blob to disk via the File System Access API, else a download.
|
|
44
|
+
*
|
|
45
|
+
* Resolves TRUE when bytes were handed to the browser, FALSE when the user
|
|
46
|
+
* closed the save dialog. Callers must branch on it: a host that records "last
|
|
47
|
+
* backup: today" after a cancelled dialog tells the user they are safe when no
|
|
48
|
+
* file exists, and that lie only surfaces the day they need the file.
|
|
49
|
+
*/
|
|
50
|
+
declare function saveToDisk(blob: Blob, filename: string): Promise<boolean>;
|
|
44
51
|
/** Prompt the user to pick a backup file from disk. Resolves null if cancelled. */
|
|
45
52
|
declare function pickFromDisk(): Promise<File | null>;
|
|
46
53
|
|
package/dist/widgets.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { connectFlow, shareFlow, joinFlow } from './chunk-
|
|
1
|
+
import { connectFlow, shareFlow, joinFlow } from './chunk-QVXZLZ6R.js';
|
|
2
2
|
import './chunk-TEIAFKFS.js';
|
|
3
|
-
import './chunk-
|
|
3
|
+
import './chunk-GJRHMI2O.js';
|
|
4
4
|
import './chunk-43BJDRPT.js';
|
|
5
5
|
import './chunk-KHER6MWR.js';
|
|
6
6
|
import './chunk-QBCU7OOP.js';
|
|
@@ -505,6 +505,7 @@ var SelfstoreConnectElement = class extends FlowWidget {
|
|
|
505
505
|
return this.#store;
|
|
506
506
|
}
|
|
507
507
|
set store(v) {
|
|
508
|
+
if (v === this.#store) return;
|
|
508
509
|
this.#store = v;
|
|
509
510
|
this.wire();
|
|
510
511
|
}
|
|
@@ -1704,6 +1705,7 @@ var SelfstoreStatusElement = class extends FlowWidget {
|
|
|
1704
1705
|
return this.#store;
|
|
1705
1706
|
}
|
|
1706
1707
|
set store(v) {
|
|
1708
|
+
if (v === this.#store) return;
|
|
1707
1709
|
this.#store = v;
|
|
1708
1710
|
this.wire();
|
|
1709
1711
|
}
|
|
@@ -2993,6 +2995,7 @@ var SelfstoreGateElement = class extends FlowWidget {
|
|
|
2993
2995
|
return this.#store;
|
|
2994
2996
|
}
|
|
2995
2997
|
set store(v) {
|
|
2998
|
+
if (v === this.#store) return;
|
|
2996
2999
|
this.#store = v;
|
|
2997
3000
|
this.wire();
|
|
2998
3001
|
}
|