selfstore 1.8.29 → 1.8.31

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.
Files changed (34) hide show
  1. package/dist/advanced.d.ts +11 -10
  2. package/dist/advanced.js +2 -2
  3. package/dist/backups.d.ts +8 -7
  4. package/dist/{cache-ilsK3Tki.d.ts → cache-BEv-Har2.d.ts} +2 -1
  5. package/dist/{chunk-A6OQP7DR.js → chunk-HRYIQSTH.js} +3 -3
  6. package/dist/{chunk-A6OQP7DR.js.map → chunk-HRYIQSTH.js.map} +1 -1
  7. package/dist/{chunk-2TIRUEXR.js → chunk-HVHQLPP6.js} +13 -5
  8. package/dist/chunk-HVHQLPP6.js.map +1 -0
  9. package/dist/{chunk-OCWNUAXV.js → chunk-TB3CKC6Z.js} +35 -9
  10. package/dist/chunk-TB3CKC6Z.js.map +1 -0
  11. package/dist/{connect-DoB_DN__.d.ts → connect-CDazV36v.d.ts} +7 -6
  12. package/dist/{drive--mndByvF.d.ts → drive-CwlKlowN.d.ts} +4 -3
  13. package/dist/flows.d.ts +10 -9
  14. package/dist/flows.js +2 -2
  15. package/dist/groups.d.ts +5 -3
  16. package/dist/households.d.ts +4 -3
  17. package/dist/index.d.ts +20 -13
  18. package/dist/index.js +27 -8
  19. package/dist/index.js.map +1 -1
  20. package/dist/{local-ClXq1N2M.d.ts → local-DytMg5GC.d.ts} +4 -3
  21. package/dist/{machine-ALMkT3mk.d.ts → machine-Dhbx3Eut.d.ts} +2 -1
  22. package/dist/{manager-yCM0M0FL.d.ts → manager-CnlIs-hY.d.ts} +5 -4
  23. package/dist/passkey.d.ts +2 -1
  24. package/dist/proof.d.ts +10 -9
  25. package/dist/{s3-dG1SCnV1.d.ts → s3-Bexn9kzT.d.ts} +4 -3
  26. package/dist/{simple-GdtB5IrG.d.ts → simple-cLzoTGhN.d.ts} +8 -7
  27. package/dist/{store-CKGrIFQU.d.ts → store-DSPbCCtM.d.ts} +7 -2
  28. package/dist/sync.d.ts +2 -1
  29. package/dist/widgets.d.ts +10 -8
  30. package/dist/widgets.js +6 -2
  31. package/dist/widgets.js.map +1 -1
  32. package/package.json +5 -4
  33. package/dist/chunk-2TIRUEXR.js.map +0 -1
  34. package/dist/chunk-OCWNUAXV.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { a as Snapshot, b as PasswordPolicy, c as SnapshotFile, B as BackupTarget, d as StatusDescriptor, S as StoreError, e as LocalStoreState, L as LocalStore } from './store-CKGrIFQU.js';
2
- import { L as LocalCache, K as KV } from './cache-ilsK3Tki.js';
1
+ import { a as Snapshot, b as PasswordPolicy, c as SnapshotFile, B as BackupTarget, d as StatusDescriptor, S as StoreError, e as LocalStoreState, L as LocalStore } from './store-DSPbCCtM.js';
2
+ import { L as LocalCache, K as KV } from './cache-BEv-Har2.js';
3
3
  import { SyncConfig } from './sync.js';
4
- import { R as ResumeOffer, C as ConnectTargets } from './connect-DoB_DN__.js';
5
- import { f as BackupsManager } from './manager-yCM0M0FL.js';
6
- import { a as DriveAuth } from './drive--mndByvF.js';
7
- import { W as WebdavConfig, S as S3Config } from './s3-dG1SCnV1.js';
4
+ import { R as ResumeOffer, C as ConnectTargets } from './connect-CDazV36v.js';
5
+ import { f as BackupsManager } from './manager-CnlIs-hY.js';
6
+ import { a as DriveAuth } from './drive-CwlKlowN.js';
7
+ import { W as WebdavConfig, S as S3Config } from './s3-Bexn9kzT.js';
8
8
 
9
9
  /** What a file body may be handed in as. */
10
10
  type FileBytes = Uint8Array | ArrayBuffer | Blob;
@@ -264,4 +264,5 @@ interface SimpleStore<S extends Record<string, SimpleRecord> = Record<string, Si
264
264
  */
265
265
  declare function selfstore<S extends Record<string, SimpleRecord> = Record<string, SimpleRecord>>(app: string, options?: SimpleOptions): Promise<SimpleStore<S>>;
266
266
 
267
- export { type CacheUnlock as C, type FileBytes as F, type PutFileInput as P, type SimpleRecord as S, type ConnectOutcome as a, type SimpleOptions as b, type SimpleStore as c, selfstore as s };
267
+ export { selfstore as s };
268
+ export type { CacheUnlock as C, FileBytes as F, PutFileInput as P, SimpleRecord as S, ConnectOutcome as a, SimpleOptions as b, SimpleStore as c };
@@ -1,4 +1,4 @@
1
- import { G as GroupIdentity, S as SignedManifest, L as LocalCache } from './cache-ilsK3Tki.js';
1
+ import { G as GroupIdentity, S as SignedManifest, L as LocalCache } from './cache-BEv-Har2.js';
2
2
  import { CollectionChanges, Conflict, SyncConfig } from './sync.js';
3
3
 
4
4
  /** A binary attachment (image, PDF, any bytes). */
@@ -236,6 +236,10 @@ interface StatusInput {
236
236
  at: number | null;
237
237
  stale: boolean;
238
238
  };
239
+ /** A durable destination is attached, but the last edit has not reached it
240
+ * (a transient failure, retried on its own): until it does, that edit lives
241
+ * in this browser alone. */
242
+ unsent?: boolean;
239
243
  }
240
244
  /** Map the store's raw flags to a single, ranked status; the most important wins. */
241
245
  declare function deriveStatus(input: StatusInput): StatusDescriptor;
@@ -627,4 +631,5 @@ interface LocalStore {
627
631
  }
628
632
  declare function createLocalStore(opts: LocalStoreOptions): LocalStore;
629
633
 
630
- export { AuthExpiredError as A, type BackupTarget as B, errorLabelKey as C, isAuthExpired as D, type EncodeOptions as E, isReservedStoreMode as F, isSelfstoreError as G, type Header as H, type KdfParams as K, type LocalStore as L, type MirrorState as M, type PeerSource as P, RESERVED_COLLECTION_PREFIX as R, type StoreError as S, type TargetKind as T, type Snapshot as a, type PasswordPolicy as b, type SnapshotFile as c, type StatusDescriptor as d, type LocalStoreState as e, type BuiltinTargetKind as f, type LocalStoreOptions as g, type Mode as h, type PasswordCheck as i, type PasswordRequirement as j, type PeerState as k, RESERVED_STORE_MODES as l, type RecipientStanza as m, type ReplicaState as n, SelfstoreError as o, type SelfstoreErrorCode as p, type Severity as q, type StatusAction as r, type StatusInput as s, type StorageState as t, type StoreGroupConfig as u, type SyncJournalEntry as v, type SyncSource as w, checkPasswordPolicy as x, createLocalStore as y, deriveStatus as z };
634
+ export { AuthExpiredError as A, errorLabelKey as C, isAuthExpired as D, isReservedStoreMode as F, isSelfstoreError as G, RESERVED_COLLECTION_PREFIX as R, RESERVED_STORE_MODES as l, SelfstoreError as o, checkPasswordPolicy as x, createLocalStore as y, deriveStatus as z };
635
+ export type { BackupTarget as B, EncodeOptions as E, Header as H, KdfParams as K, LocalStore as L, MirrorState as M, PeerSource as P, StoreError as S, TargetKind as T, Snapshot as a, PasswordPolicy as b, SnapshotFile as c, StatusDescriptor as d, LocalStoreState as e, BuiltinTargetKind as f, LocalStoreOptions as g, Mode as h, PasswordCheck as i, PasswordRequirement as j, PeerState as k, RecipientStanza as m, ReplicaState as n, SelfstoreErrorCode as p, Severity as q, StatusAction as r, StatusInput as s, StorageState as t, StoreGroupConfig as u, SyncJournalEntry as v, SyncSource as w };
package/dist/sync.d.ts CHANGED
@@ -105,4 +105,5 @@ interface CollectionChanges {
105
105
  * result means the states are equivalent. Feeds the sync journal. */
106
106
  declare function changes(before: Record<string, unknown[]>, after: Record<string, unknown[]>, config: SyncConfig): Record<string, CollectionChanges>;
107
107
 
108
- export { type ColMeta, type CollectionChanges, type Conflict, type Hlc, type Id, type MergeResult, type MergeStrategy, type ReplicaState, type SyncConfig, type SyncMeta, changes, createMeta, createNode, detectConflicts, merge, stamp };
108
+ export { changes, createMeta, createNode, detectConflicts, merge, stamp };
109
+ export type { ColMeta, CollectionChanges, Conflict, Hlc, Id, MergeResult, MergeStrategy, ReplicaState, SyncConfig, SyncMeta };
package/dist/widgets.d.ts CHANGED
@@ -1,12 +1,13 @@
1
- import { S as StoreLike, F as FlowHost, C as ConnectTargets, a as ConnectFlowOptions, b as ConnectKind, c as ConnectFlow } from './connect-DoB_DN__.js';
1
+ import { S as StoreLike } from './connect-CDazV36v.js';
2
+ import { FlowHost, ConnectTargets, ConnectFlowOptions, ConnectKind, ConnectFlow } from './flows.js';
2
3
  import { ShareEngine, ShareLevel, ShareFlow, JoinEngine, JoinFlow, ReplicaFlow } from './flows.js';
3
- import { f as BackupsManager } from './manager-yCM0M0FL.js';
4
- import './store-CKGrIFQU.js';
5
- import './cache-ilsK3Tki.js';
4
+ import { BackupsManager } from './backups.js';
5
+ import './store-DSPbCCtM.js';
6
+ import './cache-BEv-Har2.js';
6
7
  import './sync.js';
7
- import './drive--mndByvF.js';
8
- import './s3-dG1SCnV1.js';
9
- import './machine-ALMkT3mk.js';
8
+ import './drive-CwlKlowN.js';
9
+ import './s3-Bexn9kzT.js';
10
+ import './machine-Dhbx3Eut.js';
10
11
 
11
12
  /** Flat key -> string map; widgets merge a partial override over EN defaults. */
12
13
  type WidgetLabels = Record<string, string>;
@@ -878,4 +879,5 @@ declare function defineAccount(prefix?: string): void;
878
879
  * above when size matters. */
879
880
  declare function defineSelfstoreWidgets(prefix?: string): void;
880
881
 
881
- export { type BackupsAction, type DestinationAction, FlowWidget, SelfstoreAccountElement, SelfstoreBackupsElement, SelfstoreConnectElement, SelfstoreDestinationElement, SelfstoreGateElement, SelfstoreJoinElement, SelfstoreShareElement, SelfstoreStatusElement, SelfstoreStorageElement, type ShareAction, type WebdavPreset, type WidgetLabels, defaultIcons, defineAccount, defineBackups, defineConnect, defineDestination, defineGate, defineJoin, defineSelfstoreWidgets, defineShare, defineStatus, defineStorage };
882
+ export { FlowWidget, SelfstoreAccountElement, SelfstoreBackupsElement, SelfstoreConnectElement, SelfstoreDestinationElement, SelfstoreGateElement, SelfstoreJoinElement, SelfstoreShareElement, SelfstoreStatusElement, SelfstoreStorageElement, defaultIcons, defineAccount, defineBackups, defineConnect, defineDestination, defineGate, defineJoin, defineSelfstoreWidgets, defineShare, defineStatus, defineStorage };
883
+ export type { BackupsAction, DestinationAction, ShareAction, WebdavPreset, WidgetLabels };
package/dist/widgets.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { saveToDisk, datedName } from './chunk-Q3NO477P.js';
2
- import { connectFlow, shareFlow, joinFlow } from './chunk-A6OQP7DR.js';
2
+ import { connectFlow, shareFlow, joinFlow } from './chunk-HRYIQSTH.js';
3
3
  import './chunk-JDDWWQEB.js';
4
- import { isOpenSupported } from './chunk-2TIRUEXR.js';
4
+ import { isOpenSupported } from './chunk-HVHQLPP6.js';
5
5
  import './chunk-2BNTCXQN.js';
6
6
  import './chunk-25U6AKIX.js';
7
7
  import './chunk-LF3CC2P3.js';
@@ -2116,6 +2116,8 @@ var EN5 = {
2116
2116
  "status.locked": "Locked",
2117
2117
  "status.pendingDownload": "Changes to download",
2118
2118
  "status.saved.placeless": "Saved",
2119
+ "status.unsent": "Not yet saved to {label}, will retry",
2120
+ "status.unsent.placeless": "Not yet saved, will retry",
2119
2121
  "status.action.choose-destination": "Choose a destination",
2120
2122
  "status.action.download": "Download",
2121
2123
  "status.action.reconnect": "Reconnect",
@@ -2134,6 +2136,8 @@ var FR5 = {
2134
2136
  "status.locked": "Sauvegarde verrouill\xE9e",
2135
2137
  "status.pendingDownload": "Modifications \xE0 exporter",
2136
2138
  "status.saved.placeless": "Sauvegarde \xE0 jour",
2139
+ "status.unsent": "Pas encore enregistr\xE9 dans {label}, nouvel essai \xE0 venir",
2140
+ "status.unsent.placeless": "Pas encore enregistr\xE9, nouvel essai \xE0 venir",
2137
2141
  "status.action.choose-destination": "Choisir une sauvegarde",
2138
2142
  "status.action.download": "Exporter",
2139
2143
  "status.action.reconnect": "Retrouver l'acc\xE8s",