selfstore 1.8.7 → 1.8.9

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/llms.txt CHANGED
@@ -40,7 +40,13 @@ collaborative editing (use a CRDT library), or Node-side storage.
40
40
  - 'selfstore/widgets' - the journeys as drop-in web components:
41
41
  defineSelfstoreWidgets() registers <selfstore-connect>, <selfstore-gate>,
42
42
  <selfstore-share>, <selfstore-join>, <selfstore-status>,
43
- <selfstore-backups>, <selfstore-destination>. Framework-free
43
+ <selfstore-backups>, <selfstore-destination>, <selfstore-storage>.
44
+ START WITH <selfstore-storage>: assign .store and the whole journey is wired -
45
+ it shows the gate while there is no home and the destination panel once there
46
+ is, taking destinations (store.destinations()), the resume card
47
+ (store.resumeOffer()) and the account (store.account) from the store itself;
48
+ targets / manager / confirmAction / deferrable / recommended pass through to
49
+ the composed widgets. Framework-free
44
50
  custom elements over the flows; theme via
45
51
  --selfstore-* CSS custom properties and ::part() selectors; reword/localize
46
52
  via the `labels` property (partial map over EN defaults); listen to
@@ -146,6 +152,11 @@ user closed picker/consent; 'manual' = no File System Access, offer
146
152
  downloadBackup()):
147
153
 
148
154
  await store.connectDrive(gisDriveAuth({ clientId }), { password? });
155
+ // simpler: selfstore('app', { drive: { clientId } }) builds that session for
156
+ // you (one per app, token kept across a reload, account remembered as the
157
+ // hint), restores a connected backup at start-up, and then answers
158
+ // store.account (who holds it) and store.resumeOffer() (the "reopen my
159
+ // backup" card for connectFlow's options.resume) with no call going out.
149
160
  await store.connectFile({ password? }); // Chromium FSA
150
161
  await store.connectWebdav({ url, username, password }, { password? });
151
162
  await store.connectTarget(anyBackupTarget, { password? }); // your own
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "selfstore",
3
- "version": "1.8.7",
3
+ "version": "1.8.9",
4
4
  "description": "Local-first storage for browser apps: an IndexedDB working copy, portable encrypted ZIP backups (AES-256-GCM over Argon2id), durable homes (disk, Google Drive, WebDAV) and a serverless multi-device merge.",
5
5
  "type": "module",
6
6
  "license": "MIT",