selfstore 1.8.17 → 1.8.18
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/advanced.d.ts +7 -7
- package/dist/advanced.js +1 -1
- package/dist/backups.d.ts +4 -4
- package/dist/{chunk-3BPGPSPX.js → chunk-RBIQRTZR.js} +13 -3
- package/dist/chunk-RBIQRTZR.js.map +1 -0
- package/dist/{connect-BaWYvB1w.d.ts → connect-BTVzRJY8.d.ts} +3 -3
- package/dist/{drive-BUPsPaIu.d.ts → drive-CY_Vsj7V.d.ts} +1 -1
- package/dist/flows.d.ts +5 -5
- package/dist/households.d.ts +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/{local-Dt1hYNG4.d.ts → local-Dh6eGiK9.d.ts} +2 -2
- package/dist/{manager-CaMd6T1T.d.ts → manager-DhoIbJyg.d.ts} +1 -1
- package/dist/{s3-CCE6lc_U.d.ts → s3-0qqIyphl.d.ts} +1 -1
- package/dist/{store-CCe8b5Eg.d.ts → store-Cs6QIzzG.d.ts} +7 -0
- package/dist/widgets.d.ts +5 -5
- package/dist/widgets.js +13 -5
- package/dist/widgets.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3BPGPSPX.js.map +0 -1
package/dist/flows.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { b as ConnectKind, S as StoreLike, C as ConnectTargets } from './connect-
|
|
2
|
-
export { c as ConnectFlow, a as ConnectFlowOptions, d as ConnectFlowOutcome, e as ConnectResolution, f as ConnectSnapshot, g as ConnectStep, h as Connector, F as FlowHost, R as ResumeOffer, i as connectFlow } from './connect-
|
|
3
|
-
import { S as StoreError, k as ReplicaState, B as BackupTarget } from './store-
|
|
1
|
+
import { b as ConnectKind, S as StoreLike, C as ConnectTargets } from './connect-BTVzRJY8.js';
|
|
2
|
+
export { c as ConnectFlow, a as ConnectFlowOptions, d as ConnectFlowOutcome, e as ConnectResolution, f as ConnectSnapshot, g as ConnectStep, h as Connector, F as FlowHost, R as ResumeOffer, i as connectFlow } from './connect-BTVzRJY8.js';
|
|
3
|
+
import { S as StoreError, k as ReplicaState, B as BackupTarget } from './store-Cs6QIzzG.js';
|
|
4
4
|
import { F as FlowStore } from './machine-ALMkT3mk.js';
|
|
5
5
|
export { w as withDeadline } from './machine-ALMkT3mk.js';
|
|
6
|
-
import { W as WebdavConfig, S as S3Config } from './s3-
|
|
6
|
+
import { W as WebdavConfig, S as S3Config } from './s3-0qqIyphl.js';
|
|
7
7
|
import './cache-ilsK3Tki.js';
|
|
8
|
-
import './drive-
|
|
8
|
+
import './drive-CY_Vsj7V.js';
|
|
9
9
|
import './sync.js';
|
|
10
10
|
|
|
11
11
|
/** The one replica this flow manages, as its id on the engine. */
|
package/dist/households.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { o as Snapshot, E as EncodeOptions, H as Header, f as PasswordPolicy, B as BackupTarget, r as StatusDescriptor, S as StoreError, c as LocalStoreState, L as LocalStore } from './store-
|
|
2
|
-
export { d as Mode, e as PasswordCheck, g as PasswordRequirement, l as SelfstoreError, m as SelfstoreErrorCode, n as Severity, p as SnapshotFile, q as StatusAction, t as StorageState, T as TargetKind, x as checkPasswordPolicy, C as errorLabelKey, G as isSelfstoreError } from './store-
|
|
1
|
+
import { o as Snapshot, E as EncodeOptions, H as Header, f as PasswordPolicy, B as BackupTarget, r as StatusDescriptor, S as StoreError, c as LocalStoreState, L as LocalStore } from './store-Cs6QIzzG.js';
|
|
2
|
+
export { d as Mode, e as PasswordCheck, g as PasswordRequirement, l as SelfstoreError, m as SelfstoreErrorCode, n as Severity, p as SnapshotFile, q as StatusAction, t as StorageState, T as TargetKind, x as checkPasswordPolicy, C as errorLabelKey, G as isSelfstoreError } from './store-Cs6QIzzG.js';
|
|
3
3
|
import { L as LocalCache, K as KV } from './cache-ilsK3Tki.js';
|
|
4
4
|
import { SyncConfig } from './sync.js';
|
|
5
|
-
import { R as ResumeOffer, C as ConnectTargets } from './connect-
|
|
6
|
-
import { f as BackupsManager } from './manager-
|
|
7
|
-
import { a as DriveAuth } from './drive-
|
|
8
|
-
import { W as WebdavConfig, S as S3Config } from './s3-
|
|
9
|
-
export { f as changePassword, g as gisDriveAuth, p as pickFromDisk, s as saveToDisk } from './local-
|
|
5
|
+
import { R as ResumeOffer, C as ConnectTargets } from './connect-BTVzRJY8.js';
|
|
6
|
+
import { f as BackupsManager } from './manager-DhoIbJyg.js';
|
|
7
|
+
import { a as DriveAuth } from './drive-CY_Vsj7V.js';
|
|
8
|
+
import { W as WebdavConfig, S as S3Config } from './s3-0qqIyphl.js';
|
|
9
|
+
export { f as changePassword, g as gisDriveAuth, p as pickFromDisk, s as saveToDisk } from './local-Dh6eGiK9.js';
|
|
10
10
|
import './machine-ALMkT3mk.js';
|
|
11
11
|
|
|
12
12
|
declare const BACKUP_EXTENSION = ".zip";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { indexedDbCache, memoryCache, gisDriveAuth, isLockableCache, createLocalStore } from './chunk-
|
|
2
|
-
export { gisDriveAuth } from './chunk-
|
|
1
|
+
import { indexedDbCache, memoryCache, gisDriveAuth, isLockableCache, createLocalStore } from './chunk-RBIQRTZR.js';
|
|
2
|
+
export { gisDriveAuth } from './chunk-RBIQRTZR.js';
|
|
3
3
|
import './chunk-SKWHKM25.js';
|
|
4
4
|
import { saveToDisk } from './chunk-DCEXWSM6.js';
|
|
5
5
|
export { pickFromDisk, saveToDisk } from './chunk-DCEXWSM6.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as Snapshot, E as EncodeOptions, H as Header } from './store-
|
|
2
|
-
import { a as DriveAuth } from './drive-
|
|
1
|
+
import { o as Snapshot, E as EncodeOptions, H as Header } from './store-Cs6QIzzG.js';
|
|
2
|
+
import { a as DriveAuth } from './drive-CY_Vsj7V.js';
|
|
3
3
|
|
|
4
4
|
/** Serialize a snapshot to a portable backup blob (compressed; encrypted if a password is given). */
|
|
5
5
|
declare function exportSnapshot(snapshot: Snapshot, opts: EncodeOptions): Promise<Blob>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { K as KV } from './cache-ilsK3Tki.js';
|
|
2
|
-
import { B as BackupTarget, L as LocalStore } from './store-
|
|
2
|
+
import { B as BackupTarget, L as LocalStore } from './store-Cs6QIzzG.js';
|
|
3
3
|
import { F as FlowStore } from './machine-ALMkT3mk.js';
|
|
4
4
|
|
|
5
5
|
/** What the destination reports about a listed file (one cheap metadata call). */
|
|
@@ -229,6 +229,13 @@ interface StatusInput {
|
|
|
229
229
|
locked: boolean;
|
|
230
230
|
/** Degraded file mode has changes awaiting a manual download. */
|
|
231
231
|
pendingDownload: boolean;
|
|
232
|
+
/** A portable copy was written at some point, and whether anything has been
|
|
233
|
+
* entered since. Without a durable destination, this is the difference
|
|
234
|
+
* between "never saved anywhere" and "saved this morning". */
|
|
235
|
+
copy?: {
|
|
236
|
+
at: number | null;
|
|
237
|
+
stale: boolean;
|
|
238
|
+
};
|
|
232
239
|
}
|
|
233
240
|
/** Map the store's raw flags to a single, ranked status; the most important wins. */
|
|
234
241
|
declare function deriveStatus(input: StatusInput): StatusDescriptor;
|
package/dist/widgets.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as StoreLike, F as FlowHost, C as ConnectTargets, a as ConnectFlowOptions, b as ConnectKind, c as ConnectFlow } from './connect-
|
|
1
|
+
import { S as StoreLike, F as FlowHost, C as ConnectTargets, a as ConnectFlowOptions, b as ConnectKind, c as ConnectFlow } from './connect-BTVzRJY8.js';
|
|
2
2
|
import { ShareEngine, ShareLevel, ShareFlow, JoinEngine, JoinFlow, ReplicaFlow } from './flows.js';
|
|
3
|
-
import { f as BackupsManager } from './manager-
|
|
4
|
-
import './store-
|
|
3
|
+
import { f as BackupsManager } from './manager-DhoIbJyg.js';
|
|
4
|
+
import './store-Cs6QIzzG.js';
|
|
5
5
|
import './cache-ilsK3Tki.js';
|
|
6
6
|
import './sync.js';
|
|
7
|
-
import './drive-
|
|
8
|
-
import './s3-
|
|
7
|
+
import './drive-CY_Vsj7V.js';
|
|
8
|
+
import './s3-0qqIyphl.js';
|
|
9
9
|
import './machine-ALMkT3mk.js';
|
|
10
10
|
|
|
11
11
|
/** Flat key -> string map; widgets merge a partial override over EN defaults. */
|
package/dist/widgets.js
CHANGED
|
@@ -2087,6 +2087,8 @@ var EN5 = {
|
|
|
2087
2087
|
"status.justNow": "just now",
|
|
2088
2088
|
"status.ephemeral": "Nothing is saved",
|
|
2089
2089
|
"status.cacheOnly": "Never saved anywhere yet",
|
|
2090
|
+
"status.copy": "Last copy written {when}. Nothing has changed since.",
|
|
2091
|
+
"status.copyStale": "Last copy written {when}. What you typed since is not in it.",
|
|
2090
2092
|
"status.saving": "Saving...",
|
|
2091
2093
|
"status.saved": "Saved to {label}, at every change",
|
|
2092
2094
|
"status.needsAttention": "Reconnect to continue",
|
|
@@ -2103,6 +2105,8 @@ var FR5 = {
|
|
|
2103
2105
|
"status.justNow": "a l'instant",
|
|
2104
2106
|
"status.ephemeral": "Rien n'est enregistr\xE9",
|
|
2105
2107
|
"status.cacheOnly": "Vos donn\xE9es n'ont jamais \xE9t\xE9 enregistr\xE9es ailleurs",
|
|
2108
|
+
"status.copy": "Derni\xE8re copie \xE9crite {when}. Rien n'a chang\xE9 depuis.",
|
|
2109
|
+
"status.copyStale": "Derni\xE8re copie \xE9crite {when}. Vos saisies depuis n'y sont pas.",
|
|
2106
2110
|
"status.saving": "Enregistrement...",
|
|
2107
2111
|
"status.saved": "Enregistr\xE9 dans {label}, \xE0 chaque changement",
|
|
2108
2112
|
"status.needsAttention": "Acc\xE8s \xE0 retrouver",
|
|
@@ -2152,16 +2156,20 @@ var SelfstoreStatusElement = class extends FlowWidget {
|
|
|
2152
2156
|
const { status, targetKind, label } = host.engine.state;
|
|
2153
2157
|
const sansLieu = (cle) => {
|
|
2154
2158
|
const jumelle = `${cle}.placeless`;
|
|
2155
|
-
const copie = this.t(jumelle);
|
|
2156
|
-
return copie === jumelle ? this.t(cle) : copie;
|
|
2159
|
+
const copie = this.t(jumelle, vars);
|
|
2160
|
+
return copie === jumelle ? this.t(cle, vars) : copie;
|
|
2157
2161
|
};
|
|
2158
2162
|
const selonLeType = (cle) => {
|
|
2159
2163
|
const jumelle = `${cle}.${targetKind}`;
|
|
2160
|
-
const copie = this.t(jumelle,
|
|
2164
|
+
const copie = this.t(jumelle, vars);
|
|
2161
2165
|
return copie === jumelle ? null : copie;
|
|
2162
2166
|
};
|
|
2163
|
-
const { lastSavedAt } = host.engine.state;
|
|
2164
|
-
const
|
|
2167
|
+
const { lastSavedAt, lastCopyAt } = host.engine.state;
|
|
2168
|
+
const vars = {
|
|
2169
|
+
label: label ?? "",
|
|
2170
|
+
when: lastCopyAt ? this.since(lastCopyAt, this.t("status.justNow")) : ""
|
|
2171
|
+
};
|
|
2172
|
+
const text = selonLeType(status.labelKey) ?? (label ? this.t(status.labelKey, vars) : sansLieu(status.labelKey));
|
|
2165
2173
|
const dot = h("span", {
|
|
2166
2174
|
part: `status-dot sev-${status.severity}`,
|
|
2167
2175
|
"aria-hidden": "true"
|