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.
@@ -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
- /** Save a backup blob to disk via the File System Access API, else a download. */
43
- declare function saveToDisk(blob: Blob, filename: string): Promise<void>;
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-I243KZMZ.js';
1
+ import { connectFlow, shareFlow, joinFlow } from './chunk-QVXZLZ6R.js';
2
2
  import './chunk-TEIAFKFS.js';
3
- import './chunk-SRKUHFRG.js';
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
  }