@mdbase-dev/sdk 0.1.0-beta.218 → 0.1.0-beta.221
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/app-host/installation-sign-in.js +4 -1
- package/dist/app-host/installation-sign-in.js.map +1 -1
- package/dist/application/asset-pins.json +4 -4
- package/dist/application/readiness.js +26 -3
- package/dist/application/readiness.js.map +1 -1
- package/dist/application/worker.js +6 -5
- package/dist/browser/mdbase-sdk.js +26 -9
- package/dist/browser/mdbase-sdk.min.js +3 -3
- package/dist/collection-quota-copy.generated.d.ts +1 -1
- package/dist/collection-quota-copy.generated.js +1 -1
- package/dist/collection-quota-copy.generated.js.map +1 -1
- package/dist/describe-error.js +1 -1
- package/dist/describe-error.js.map +1 -1
- package/dist/native/provenance.json +5 -5
- package/dist/native/runtime.wasm +0 -0
- package/package.json +1 -1
|
@@ -9228,7 +9228,7 @@ var MdbaseSDK = (() => {
|
|
|
9228
9228
|
var init_collection_quota_copy_generated = __esm({
|
|
9229
9229
|
"src/collection-quota-copy.generated.ts"() {
|
|
9230
9230
|
"use strict";
|
|
9231
|
-
ACCOUNT_COLLECTION_QUOTA_MESSAGE = "Your account has reached its synced collection limit. Open an existing collection, delete one you own if Delete is available, or
|
|
9231
|
+
ACCOUNT_COLLECTION_QUOTA_MESSAGE = "Your account has reached its synced collection limit. Open an existing collection, delete one you own if Delete is available, or, if you're on the Free plan, upgrade to Plus from your mdbase account page.";
|
|
9232
9232
|
}
|
|
9233
9233
|
});
|
|
9234
9234
|
|
|
@@ -9668,7 +9668,7 @@ var MdbaseSDK = (() => {
|
|
|
9668
9668
|
collection_invalid: ["Your collection needs repair", "Something in this collection isn't valid. Contact support if this keeps happening.", "contact_support", "error"],
|
|
9669
9669
|
unavailable: UNAVAILABLE,
|
|
9670
9670
|
rate_limited: ["Too many requests", "Wait a moment, then try again.", "retry", "warning", true],
|
|
9671
|
-
quota_exceeded: ["Out of storage", "
|
|
9671
|
+
quota_exceeded: ["Out of storage", "Storage for this collection is full. Free up space to keep saving. If it's your collection and you're on the Free plan, you can upgrade to Plus from your mdbase account page.", "free_space", "error"],
|
|
9672
9672
|
account_collection_quota_exceeded: ["Synced collection limit reached", ACCOUNT_COLLECTION_QUOTA_MESSAGE, "free_space", "error", false, "Manage collections"],
|
|
9673
9673
|
too_large: ["That's too large", "This item is larger than mdbase allows.", "none", "warning"],
|
|
9674
9674
|
outcome_unknown: ["Not sure that worked", "The connection dropped before mdbase confirmed it. Check whether it went through before trying again.", "resolve_outcome", "warning"],
|
|
@@ -27468,7 +27468,8 @@ ${end.comment}` : end.comment;
|
|
|
27468
27468
|
const nativeSelection = native ? this.parseNativeSelection(v.native_selection, r.requestId) : void 0;
|
|
27469
27469
|
if (native && (picked || addedCollectionIds.length !== 0 || v.approved_create_collections !== false || v.timer_consent === true)) throw fail3("response");
|
|
27470
27470
|
if (v.timer_consent === true && !collectionSelection) throw fail3("response");
|
|
27471
|
-
const
|
|
27471
|
+
const timerScope = collectionSelection ? [.../* @__PURE__ */ new Set([...addedCollectionIds, collectionSelection.selectedCollectionId])] : addedCollectionIds;
|
|
27472
|
+
const reminder = timerConsent(v, r.requestId, timerScope, confirmation2.portalConfirmed === true, collectionSelection?.selectedCollectionId);
|
|
27472
27473
|
await this.save({ ...s, collectionIds, privateDeviceCollectionIds: privateDeviceCollectionIds.length ? privateDeviceCollectionIds : void 0, nativeSelection, ...nativeSelection || !collectionSelection && addedPrivateIds.length > 0 ? { collectionSelection: void 0 } : collectionSelection ? { collectionSelection } : {}, ...reminder ? { timerConsent: reminder } : {}, createCollections: s.createCollections || v.approved_create_collections, consentRequest: { ...r, ...confirmation2, challenge, completed: true, addedCollectionIds, approvedCreateCollections: v.approved_create_collections } });
|
|
27473
27474
|
check3();
|
|
27474
27475
|
return this.collectionConsentView();
|
|
@@ -47459,13 +47460,29 @@ ${end.comment}` : end.comment;
|
|
|
47459
47460
|
const pending = Promise.resolve().then(async () => {
|
|
47460
47461
|
if (!this.current()) return this.getSnapshot();
|
|
47461
47462
|
await this.advisory;
|
|
47462
|
-
|
|
47463
|
+
const retrying = [];
|
|
47464
|
+
const step = async (facet3, run2) => {
|
|
47465
|
+
try {
|
|
47466
|
+
await run2();
|
|
47467
|
+
} catch (error5) {
|
|
47468
|
+
let checking = false;
|
|
47469
|
+
try {
|
|
47470
|
+
checking = facet3.getSnapshot().checking === true;
|
|
47471
|
+
} catch {
|
|
47472
|
+
}
|
|
47473
|
+
if (!checking || !this.current()) throw error5;
|
|
47474
|
+
retrying.push(error5);
|
|
47475
|
+
}
|
|
47476
|
+
};
|
|
47477
|
+
const native = this.native;
|
|
47478
|
+
if (native) await step(native, () => native.start());
|
|
47463
47479
|
for (const name3 of GATING) {
|
|
47464
47480
|
const source = this.sources[name3];
|
|
47465
47481
|
if (!this.current()) break;
|
|
47466
|
-
if (source) await source.refresh();
|
|
47482
|
+
if (source) await step(source, () => source.refresh());
|
|
47467
47483
|
}
|
|
47468
47484
|
await this.reassessAfterSetup();
|
|
47485
|
+
if (retrying.length) throw retrying[0];
|
|
47469
47486
|
return this.getSnapshot();
|
|
47470
47487
|
}).finally(() => {
|
|
47471
47488
|
if (this.pending !== pending) return;
|
|
@@ -50362,12 +50379,12 @@ ${end.comment}` : end.comment;
|
|
|
50362
50379
|
// src/application/asset-pins.json
|
|
50363
50380
|
var asset_pins_default = {
|
|
50364
50381
|
runtime: {
|
|
50365
|
-
sha256: "
|
|
50366
|
-
bytes:
|
|
50367
|
-
maxBytes:
|
|
50382
|
+
sha256: "f94d02e8a231e466ac39ab97680dd4dae6736735fd84851e3a7d3172b97dd13b",
|
|
50383
|
+
bytes: 3911324,
|
|
50384
|
+
maxBytes: 3911324,
|
|
50368
50385
|
source: {
|
|
50369
50386
|
repository: "mdbase-dev/mdbase-connect",
|
|
50370
|
-
commit: "
|
|
50387
|
+
commit: "092fc02d0d59dff497a4192d8f1cdaa7b8699981"
|
|
50371
50388
|
}
|
|
50372
50389
|
},
|
|
50373
50390
|
sqlite: {
|