@cccsaurora/clue-ui 1.6.0-dev.517.1 → 1.6.0-dev.524.1
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/{ActionForm-Sj0KtEYj.js → ActionForm-C1D2_1Pg.js} +3 -3
- package/{AnnotationDetails-B1NQ-B4f.js → AnnotationDetails-C683Hvym.js} +1 -1
- package/{AnnotationPreview-Cw3JUL8k.js → AnnotationPreview-Bm9e2UgC.js} +1 -1
- package/{ClueEnrichContext-Dpv_xiDv.js → ClueEnrichContext-DmERFjhQ.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +2 -2
- package/components/AnnotationPreview.js +1 -1
- package/components/EnrichedCard.js +1 -1
- package/components/EnrichedChip.js +2 -2
- package/components/EnrichedTypography.js +2 -2
- package/components/RetryFailedEnrichments.js +1 -1
- package/components/SourcePicker.js +1 -1
- package/components/actions/ActionForm.js +1 -1
- package/components/actions/ExecutePopover.js +1 -1
- package/components/actions/ResultModal.js +1 -1
- package/components/display/graph/index.js +1 -1
- package/components/display/graph/visualizations/cloud/index.js +2 -2
- package/components/display/graph/visualizations/tree/BundleLine.js +1 -1
- package/components/display/markdown/index.js +87 -27
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/{index-CVUD9o3t.js → d3-CwtkB99t.js} +15024 -10621
- package/database/index.js +2 -2
- package/database/replication.js +2 -2
- package/hooks/ClueActionContext.js +2 -2
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +2 -2
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +3 -3
- package/hooks/selectors.js +2 -2
- package/hooks/useActionResult.js +1 -1
- package/hooks/useAnnotations.js +2 -2
- package/hooks/useClue.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useClueTypeConfig.js +1 -1
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +2 -2
- package/icons/Assessment.js +1 -1
- package/icons/Context.js +1 -1
- package/icons/Opinion.js +1 -1
- package/{index-29cEmZLo.js → index-Bx5giDpY.js} +727 -247
- package/{index-DieKGFn1.js → index-D1tw5sJ1.js} +20 -9
- package/{index-BCzfYx7I.js → index-DzbOfIT_.js} +9 -7
- package/main.js +5 -5
- package/package.json +12 -12
- package/{replication-DwPGDesg.js → replication-Bxa4yXXZ.js} +111 -42
- package/utils/time.js +8 -8
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { d as debounce } from "./sessionStorage-B68y-wnE.js";
|
|
2
2
|
import { i as isObject } from "./isObject-FTY-5JQX.js";
|
|
3
|
-
import { aq as identity, aL as operate, W as createOperatorSubscriber, ax as isFunction, U as computeValue, b0 as truthy, H as assert, a4 as ensureArray, at as isArray, T as compare, V as createExpressionOperator, c as $eq$1, f as $gt$1, h as $gte$1, k as $lt$1, m as $lte$1, p as $ne$1, M as MingoError, ay as isFunction$1, X as createQueryOperator, $ as $all$1, al as getSchemaByObjectPath, aK as objectPathMonad, y as INDEX_MIN, I as INDEX_MAX, a5 as ensureNotFalsy, ag as getFromMapOrCreate, ai as getPrimaryFieldOfPrimaryKey, aS as requestIdleCallbackIfAvailable, B as BehaviorSubject, aG as mergeMap, aa as firstValueFrom, a8 as filter, ab as flatClone$1, a0 as createRxQuery, _ as _getDefaultQuery, aP as queryCollection, aH as newRxError, af as getDefaultRevision, aJ as now, aN as prepareQuery, aM as overwritable, az as isMaybeReadonlyArray, ac as flatCloneDocWithMeta, S as Subject, a_ as toArray, K as categorizeBulkWriteRows, aO as pushAtSortPosition, ak as getQueryMatcher, am as getSortComparator, P as PROMISE_RESOLVE_TRUE, z as PROMISE_RESOLVE_VOID, R as RXDB_VERSION, a6 as ensureRxStorageInstanceParamsAreCorrect, aQ as randomToken, a1 as deepEqual, aT as requestIdlePromiseNoQueue, a as $and$1, b as $elemMatch, d as $eq$2, e as $exists, g as $gt$2, i as $gte$2, j as $in, l as $lt$2, n as $lte$2, o as $mod, q as $ne$2, r as $nin, s as $nor, t as $not$1, u as $or$1, v as $regex, w as $size, x as $type, ar as initOptions, C as Context, Q as Query, b2 as walk, aU as resolve$1, au as isDate, aB as isObject$1, aD as isRegExp, O as cloneDeep, an as has, as as intersection, b1 as unique, aA as isNumber, aC as isOperator, av as isEqual, L as clone$1, aW as runQueryUpdateFunction, ae as getChangedDocumentsSince, aV as runPluginHooks, aX as setProperty, aF as merge, aY as shareReplay, A as RXJS_SHARE_REPLAY_DEFAULTS, aE as map, G as appendToArray, aj as getProperty, aZ as startWith, a3 as distinctUntilChanged, F as addRxPlugin, Y as createRxDatabase, aR as replicateSelectorCollection } from "./replication-
|
|
3
|
+
import { aq as identity, aL as operate, W as createOperatorSubscriber, ax as isFunction, U as computeValue, b0 as truthy, H as assert, a4 as ensureArray, at as isArray, T as compare, V as createExpressionOperator, c as $eq$1, f as $gt$1, h as $gte$1, k as $lt$1, m as $lte$1, p as $ne$1, M as MingoError, ay as isFunction$1, X as createQueryOperator, $ as $all$1, al as getSchemaByObjectPath, aK as objectPathMonad, y as INDEX_MIN, I as INDEX_MAX, a5 as ensureNotFalsy, ag as getFromMapOrCreate, ai as getPrimaryFieldOfPrimaryKey, aS as requestIdleCallbackIfAvailable, B as BehaviorSubject, aG as mergeMap, aa as firstValueFrom, a8 as filter, ab as flatClone$1, a0 as createRxQuery, _ as _getDefaultQuery, aP as queryCollection, aH as newRxError, af as getDefaultRevision, aJ as now, aN as prepareQuery, aM as overwritable, az as isMaybeReadonlyArray, ac as flatCloneDocWithMeta, S as Subject, a_ as toArray, K as categorizeBulkWriteRows, aO as pushAtSortPosition, ak as getQueryMatcher, am as getSortComparator, P as PROMISE_RESOLVE_TRUE, z as PROMISE_RESOLVE_VOID, R as RXDB_VERSION, a6 as ensureRxStorageInstanceParamsAreCorrect, aQ as randomToken, a1 as deepEqual, aT as requestIdlePromiseNoQueue, a as $and$1, b as $elemMatch, d as $eq$2, e as $exists, g as $gt$2, i as $gte$2, j as $in, l as $lt$2, n as $lte$2, o as $mod, q as $ne$2, r as $nin, s as $nor, t as $not$1, u as $or$1, v as $regex, w as $size, x as $type, ar as initOptions, C as Context, Q as Query, b2 as walk, aU as resolve$1, au as isDate, aB as isObject$1, aD as isRegExp, O as cloneDeep, an as has, as as intersection, b1 as unique, aA as isNumber, aC as isOperator, av as isEqual, L as clone$1, aW as runQueryUpdateFunction, ae as getChangedDocumentsSince, aV as runPluginHooks, aX as setProperty, aF as merge, aY as shareReplay, A as RXJS_SHARE_REPLAY_DEFAULTS, aE as map, G as appendToArray, aj as getProperty, aZ as startWith, a3 as distinctUntilChanged, F as addRxPlugin, Y as createRxDatabase, aR as replicateSelectorCollection } from "./replication-Bxa4yXXZ.js";
|
|
4
4
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
|
|
5
5
|
import { REPLICATE } from "./utils/constants.js";
|
|
6
6
|
import { REPLICATORS } from "./database/globals.js";
|
|
@@ -1628,9 +1628,9 @@ function wrappedValidateStorageFactory(getValidator2, validatorKey) {
|
|
|
1628
1628
|
status: 422,
|
|
1629
1629
|
isError: true,
|
|
1630
1630
|
documentId,
|
|
1631
|
-
writeRow: row,
|
|
1632
1631
|
validationErrors,
|
|
1633
|
-
schema: instance.schema
|
|
1632
|
+
schema: instance.schema,
|
|
1633
|
+
writeRow: row
|
|
1634
1634
|
});
|
|
1635
1635
|
} else {
|
|
1636
1636
|
continueWrites.push(row);
|
|
@@ -1792,8 +1792,8 @@ var dumpRxCollection = async function() {
|
|
|
1792
1792
|
docs: []
|
|
1793
1793
|
};
|
|
1794
1794
|
var query = createRxQuery("find", _getDefaultQuery(), this);
|
|
1795
|
-
return queryCollection(query).then((
|
|
1796
|
-
json.docs = docs.map((docData) => {
|
|
1795
|
+
return queryCollection(query).then((result) => {
|
|
1796
|
+
json.docs = result.docs.map((docData) => {
|
|
1797
1797
|
docData = flatClone$1(docData);
|
|
1798
1798
|
delete docData._rev;
|
|
1799
1799
|
delete docData._attachments;
|
|
@@ -2323,6 +2323,7 @@ var RxStorageInstanceLocalstorage = /* @__PURE__ */ (function() {
|
|
|
2323
2323
|
this.docsKey = "RxDB-ls-doc-" + this.databaseName + "--" + this.collectionName + "--" + this.schema.version;
|
|
2324
2324
|
this.changestreamStorageKey = "RxDB-ls-changes-" + this.databaseName + "--" + this.collectionName + "--" + this.schema.version;
|
|
2325
2325
|
this.indexesKey = "RxDB-ls-idx-" + this.databaseName + "--" + this.collectionName + "--" + this.schema.version;
|
|
2326
|
+
this.attachmentsKey = "RxDB-ls-attachment-" + this.databaseName + "--" + this.collectionName + "--" + this.schema.version;
|
|
2326
2327
|
this.changeStreamSub = getStorageEventStream().subscribe((ev) => {
|
|
2327
2328
|
if (ev.key !== this.changestreamStorageKey || !ev.newValue || ev.fromStorageEvent && ev.databaseInstanceToken === this.databaseInstanceToken) {
|
|
2328
2329
|
return;
|
|
@@ -2415,6 +2416,15 @@ var RxStorageInstanceLocalstorage = /* @__PURE__ */ (function() {
|
|
|
2415
2416
|
var index = Object.values(this.internals.indexes);
|
|
2416
2417
|
this.setIndex(index[i].index, indexValue);
|
|
2417
2418
|
});
|
|
2419
|
+
categorized.attachmentsAdd.forEach((attachment) => {
|
|
2420
|
+
this.localStorage.setItem(this.attachmentsKey + "-" + attachment.documentId + "||" + attachment.attachmentId, attachment.attachmentData.data);
|
|
2421
|
+
});
|
|
2422
|
+
categorized.attachmentsUpdate.forEach((attachment) => {
|
|
2423
|
+
this.localStorage.setItem(this.attachmentsKey + "-" + attachment.documentId + "||" + attachment.attachmentId, attachment.attachmentData.data);
|
|
2424
|
+
});
|
|
2425
|
+
categorized.attachmentsRemove.forEach((attachment) => {
|
|
2426
|
+
this.localStorage.removeItem(this.attachmentsKey + "-" + attachment.documentId + "||" + attachment.attachmentId);
|
|
2427
|
+
});
|
|
2418
2428
|
if (categorized.eventBulk.events.length > 0) {
|
|
2419
2429
|
var lastState = ensureNotFalsy(categorized.newestRow).document;
|
|
2420
2430
|
categorized.eventBulk.checkpoint = {
|
|
@@ -2448,7 +2458,7 @@ var RxStorageInstanceLocalstorage = /* @__PURE__ */ (function() {
|
|
|
2448
2458
|
});
|
|
2449
2459
|
return ret;
|
|
2450
2460
|
};
|
|
2451
|
-
_proto.query =
|
|
2461
|
+
_proto.query = function query(preparedQuery) {
|
|
2452
2462
|
var queryPlan = preparedQuery.queryPlan;
|
|
2453
2463
|
var query2 = preparedQuery.query;
|
|
2454
2464
|
var skip = query2.skip ? query2.skip : 0;
|
|
@@ -2544,8 +2554,9 @@ var RxStorageInstanceLocalstorage = /* @__PURE__ */ (function() {
|
|
|
2544
2554
|
});
|
|
2545
2555
|
return PROMISE_RESOLVE_TRUE;
|
|
2546
2556
|
};
|
|
2547
|
-
_proto.getAttachmentData = function getAttachmentData(
|
|
2548
|
-
|
|
2557
|
+
_proto.getAttachmentData = async function getAttachmentData(documentId, attachmentId) {
|
|
2558
|
+
var data = this.localStorage.getItem(this.attachmentsKey + "-" + documentId + "||" + attachmentId);
|
|
2559
|
+
return ensureNotFalsy(data);
|
|
2549
2560
|
};
|
|
2550
2561
|
_proto.remove = function remove() {
|
|
2551
2562
|
ensureNotRemoved$1(this);
|
|
@@ -9712,7 +9723,7 @@ const buildDatabase = async (_config = {}) => {
|
|
|
9712
9723
|
addRxPlugin(RxDBStatePlugin);
|
|
9713
9724
|
/* v8 ignore next 10 -- @preserve */
|
|
9714
9725
|
if (config.devMode) {
|
|
9715
|
-
await import("./index-
|
|
9726
|
+
await import("./index-DzbOfIT_.js").then((module) => {
|
|
9716
9727
|
addRxPlugin(module.RxDBDevModePlugin);
|
|
9717
9728
|
if (config.testing) {
|
|
9718
9729
|
module.disableWarnings();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NON_PREMIUM_COLLECTION_LIMIT, E as RxDatabaseBase, D as RxCollectionBase, Z as createRxDocumentConstructor, J as basePrototype, aH as newRxError, az as isMaybeReadonlyArray, al as getSchemaByObjectPath, ad as flattenObject, aj as getProperty, a$ as trimDots, G as appendToArray, ai as getPrimaryFieldOfPrimaryKey, aI as newRxTypeError, ah as getPreviousVersions, aw as isFolderPath, aN as prepareQuery, a9 as findUndefinedPath, a1 as deepEqual, a7 as fillPrimaryKey, ao as hasPremiumFlag, R as RXDB_VERSION, ap as hashStringToNumber, a2 as deepFreeze } from "./replication-
|
|
1
|
+
import { N as NON_PREMIUM_COLLECTION_LIMIT, E as RxDatabaseBase, D as RxCollectionBase, Z as createRxDocumentConstructor, J as basePrototype, aH as newRxError, az as isMaybeReadonlyArray, al as getSchemaByObjectPath, ad as flattenObject, aj as getProperty, a$ as trimDots, G as appendToArray, ai as getPrimaryFieldOfPrimaryKey, aI as newRxTypeError, ah as getPreviousVersions, aw as isFolderPath, aN as prepareQuery, a9 as findUndefinedPath, a1 as deepEqual, a7 as fillPrimaryKey, ao as hasPremiumFlag, R as RXDB_VERSION, ap as hashStringToNumber, a2 as deepFreeze } from "./replication-Bxa4yXXZ.js";
|
|
2
2
|
var ERROR_MESSAGES = {
|
|
3
3
|
// util.js / config
|
|
4
4
|
UT1: "given name is no string or empty",
|
|
@@ -35,7 +35,7 @@ var ERROR_MESSAGES = {
|
|
|
35
35
|
QU15: "For count queries it is not allowed to use skip or limit",
|
|
36
36
|
QU16: "$regex queries must be defined by a string, not an RegExp instance. This is because RegExp objects cannot be JSON stringified and also they are mutable which would be dangerous",
|
|
37
37
|
QU17: "Chained queries cannot be used on findByIds() RxQuery instances",
|
|
38
|
-
QU18: "Malformed query result data. This likely happens because you create a OPFS-storage RxDatabase inside of a worker but did not set the usesRxDatabaseInWorker setting. https://rxdb.info/rx-storage-opfs.html#setting-usesrxdatabaseinworker-when-a-rxdatabase-is-also-used-inside-of-the-worker ",
|
|
38
|
+
QU18: "Malformed query result data. This likely happens because you create a OPFS-storage RxDatabase inside of a worker but did not set the usesRxDatabaseInWorker setting. https://rxdb.info/rx-storage-opfs.html?console=opfs#setting-usesrxdatabaseinworker-when-a-rxdatabase-is-also-used-inside-of-the-worker ",
|
|
39
39
|
QU19: "Queries must not contain fields or properties with the value `undefined`: https://github.com/pubkey/rxdb/issues/6792#issuecomment-2624555824 ",
|
|
40
40
|
// mquery.js
|
|
41
41
|
MQ1: "path must be a string or object",
|
|
@@ -52,7 +52,7 @@ var ERROR_MESSAGES = {
|
|
|
52
52
|
DB3: "RxDatabase.addCollections(): collection already exists. use myDatabase[collectionName] to get it",
|
|
53
53
|
DB4: "RxDatabase.addCollections(): schema is missing",
|
|
54
54
|
DB5: "RxDatabase.addCollections(): collection-name not allowed",
|
|
55
|
-
DB6: "RxDatabase.addCollections(): another instance created this collection with a different schema. Read
|
|
55
|
+
DB6: "RxDatabase.addCollections(): another instance created this collection with a different schema. Read thishttps://rxdb.info/rx-schema.html?console=qa#faq ",
|
|
56
56
|
// removed in 13.0.0 (now part of the encryption plugin) DB7: 'RxDatabase.addCollections(): schema encrypted but no password given',
|
|
57
57
|
DB8: 'createRxDatabase(): A RxDatabase with the same name and adapter already exists.\nMake sure to use this combination of storage+databaseName only once\nIf you have the duplicate database on purpose to simulate multi-tab behavior in unit tests, set "ignoreDuplicate: true".\nAs alternative you can set "closeDuplicates: true" like if this happens in your react projects with hot reload that reloads the code without reloading the process.',
|
|
58
58
|
DB9: "ignoreDuplicate is only allowed in dev-mode and must never be used in production",
|
|
@@ -86,7 +86,7 @@ var ERROR_MESSAGES = {
|
|
|
86
86
|
COL21: "The RxCollection is closed or removed already, either from this JavaScript realm or from another, like a browser tab",
|
|
87
87
|
CONFLICT: "Document update conflict. When changing a document you must work on the previous revision",
|
|
88
88
|
COL22: ".bulkInsert() and .bulkUpsert() cannot be run with multiple documents that have the same primary key",
|
|
89
|
-
COL23: "In the open-source version of RxDB, the amount of collections that can exist in parallel is limited to " + NON_PREMIUM_COLLECTION_LIMIT + ". If you already purchased the premium access, you can remove this limit: https://rxdb.info/rx-collection.html#faq",
|
|
89
|
+
COL23: "In the open-source version of RxDB, the amount of collections that can exist in parallel is limited to " + NON_PREMIUM_COLLECTION_LIMIT + ". If you already purchased the premium access, you can remove this limit: https://rxdb.info/rx-collection.html?console=limit#faq",
|
|
90
90
|
// rx-document.js
|
|
91
91
|
DOC1: "RxDocument.get$ cannot get observable of in-array fields because order cannot be guessed",
|
|
92
92
|
DOC2: "cannot observe primary path",
|
|
@@ -172,7 +172,7 @@ var ERROR_MESSAGES = {
|
|
|
172
172
|
SC14: "SchemaCheck: primary is always unique, do not declare it as index",
|
|
173
173
|
SC15: "SchemaCheck: primary cannot be encrypted",
|
|
174
174
|
SC16: "SchemaCheck: primary must have type: string",
|
|
175
|
-
SC17: "SchemaCheck: top-level fieldname is not allowed",
|
|
175
|
+
SC17: "SchemaCheck: top-level fieldname is not allowed. See https://rxdb.info/rx-schema.html?console=toplevel#non-allowed-properties ",
|
|
176
176
|
SC18: "SchemaCheck: indexes must be an array",
|
|
177
177
|
SC19: "SchemaCheck: indexes must contain strings or arrays of strings",
|
|
178
178
|
SC20: "SchemaCheck: indexes.array must contain strings",
|
|
@@ -225,6 +225,8 @@ var ERROR_MESSAGES = {
|
|
|
225
225
|
SQL3: "The trial version of the SQLite storage is limited to running 110 operations",
|
|
226
226
|
// plugins/storage-remote
|
|
227
227
|
RM1: "Cannot communicate with a remote that was build on a different RxDB version. Did you forget to rebuild your workers when updating RxDB?",
|
|
228
|
+
// plugins/replication-mongodb
|
|
229
|
+
MG1: "If _id is used as primaryKey, all documents in the MongoDB instance must have a string-value as _id, not an ObjectId or number",
|
|
228
230
|
/**
|
|
229
231
|
* Should never be thrown, use this for
|
|
230
232
|
* null checks etc. so you do not have to increase the
|
|
@@ -914,7 +916,7 @@ function containsDateInstance(obj) {
|
|
|
914
916
|
return false;
|
|
915
917
|
}
|
|
916
918
|
for (var key in obj) {
|
|
917
|
-
if (
|
|
919
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
918
920
|
if (obj[key] instanceof Date) {
|
|
919
921
|
return true;
|
|
920
922
|
}
|
|
@@ -995,7 +997,7 @@ var links = [{
|
|
|
995
997
|
url: "https://rxdb.info/nodejs-database.html"
|
|
996
998
|
}];
|
|
997
999
|
async function addDevModeTrackingIframe() {
|
|
998
|
-
if (iframeShown || typeof window === "undefined" || typeof location === "undefined") {
|
|
1000
|
+
if (iframeShown || typeof window === "undefined" || typeof location === "undefined" || typeof document === "undefined") {
|
|
999
1001
|
return;
|
|
1000
1002
|
}
|
|
1001
1003
|
if (await hasPremiumFlag()) {
|
package/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A, b, d, f, g } from "./ActionForm-
|
|
1
|
+
import { A, b, d, f, g } from "./ActionForm-C1D2_1Pg.js";
|
|
2
2
|
import { default as default2 } from "./components/AnnotationDetailPopover.js";
|
|
3
|
-
import { A as A2 } from "./AnnotationDetails-
|
|
3
|
+
import { A as A2 } from "./AnnotationDetails-C683Hvym.js";
|
|
4
4
|
import { default as default3 } from "./components/AnnotationEntry.js";
|
|
5
|
-
import { A as A3, C } from "./AnnotationPreview-
|
|
5
|
+
import { A as A3, C } from "./AnnotationPreview-Bm9e2UgC.js";
|
|
6
6
|
import { default as default4 } from "./components/CountBadge.js";
|
|
7
7
|
import { default as default5 } from "./components/EnrichedCard.js";
|
|
8
8
|
import { default as default6 } from "./components/EnrichedChip.js";
|
|
@@ -14,12 +14,12 @@ import { default as default11 } from "./components/group/Group.js";
|
|
|
14
14
|
import { default as default12 } from "./components/group/GroupControl.js";
|
|
15
15
|
import { default as default13 } from "./components/SourcePicker.js";
|
|
16
16
|
import { SNACKBAR_EVENT_ID } from "./data/event.js";
|
|
17
|
-
import { b as b2 } from "./index-
|
|
17
|
+
import { b as b2 } from "./index-D1tw5sJ1.js";
|
|
18
18
|
import { ClueReplicationError } from "./database/errors.js";
|
|
19
19
|
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
20
20
|
import { ClueConfigContext } from "./hooks/ClueConfigProvider.js";
|
|
21
21
|
import { ClueDatabaseContext } from "./hooks/ClueDatabaseContext.js";
|
|
22
|
-
import { C as C2 } from "./ClueEnrichContext-
|
|
22
|
+
import { C as C2 } from "./ClueEnrichContext-DmERFjhQ.js";
|
|
23
23
|
import { ClueProvider } from "./hooks/ClueProvider.js";
|
|
24
24
|
import { default as default14 } from "./hooks/useClue.js";
|
|
25
25
|
import { default as default15 } from "./hooks/useClueConfig.js";
|
package/package.json
CHANGED
|
@@ -12,28 +12,28 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jsonforms/core": "^3.
|
|
16
|
-
"@jsonforms/material-renderers": "^3.
|
|
17
|
-
"@jsonforms/react": "^3.
|
|
18
|
-
"@microlink/react-json-view": "^1.
|
|
19
|
-
"@testing-library/user-event": "^14.6.
|
|
15
|
+
"@jsonforms/core": "^3.8.0",
|
|
16
|
+
"@jsonforms/material-renderers": "^3.8.0",
|
|
17
|
+
"@jsonforms/react": "^3.8.0",
|
|
18
|
+
"@microlink/react-json-view": "^1.31.50",
|
|
19
|
+
"@testing-library/user-event": "^14.6.10",
|
|
20
20
|
"ajv": "^8.20.0",
|
|
21
|
-
"d3": "^7.9.
|
|
22
|
-
"dayjs": "^1.11.
|
|
23
|
-
"fuse.js": "^7.
|
|
21
|
+
"d3": "^7.9.2",
|
|
22
|
+
"dayjs": "^1.11.23",
|
|
23
|
+
"fuse.js": "^7.5.0",
|
|
24
24
|
"i18next": "^23.16.8",
|
|
25
25
|
"i18next-browser-languagedetector": "^7.2.2",
|
|
26
26
|
"lodash-es": "^4.18.1",
|
|
27
27
|
"react-i18next": "^13.5.0",
|
|
28
28
|
"react-markdown": "10.1.0",
|
|
29
29
|
"react-pluggable": "^0.4.3",
|
|
30
|
-
"react-syntax-highlighter": "^15.6.
|
|
30
|
+
"react-syntax-highlighter": "^15.6.6",
|
|
31
31
|
"rehype-raw": "7.0.0",
|
|
32
32
|
"rehype-sanitize": "^6.0.0",
|
|
33
33
|
"remark-gfm": "4.0.1",
|
|
34
|
-
"rxdb": "^16.
|
|
34
|
+
"rxdb": "^16.21.1",
|
|
35
35
|
"rxjs": "^7.8.2",
|
|
36
|
-
"scheduler": "^0.
|
|
36
|
+
"scheduler": "^0.28.0",
|
|
37
37
|
"tinycolor2": "^1.6.0",
|
|
38
38
|
"unified": "^11.0.5",
|
|
39
39
|
"use-context-selector": "^2.0.0"
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"type": "module",
|
|
60
60
|
"types": "main.d.ts",
|
|
61
|
-
"version": "1.6.0-dev.
|
|
61
|
+
"version": "1.6.0-dev.524.1",
|
|
62
62
|
"exports": {
|
|
63
63
|
".": "./main.js",
|
|
64
64
|
"./index.css": "./index.css",
|
|
@@ -9,7 +9,7 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
|
|
|
9
9
|
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
10
|
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
11
11
|
var _hashFn, _keyMap, _unpack, _options, _root, _local, _operators, _iteratees, _yieldedValues, _getNext, _a, _source, _predicate, _projection, _options2, _operators2, _result, _buffer, _compiled, _options3, _condition;
|
|
12
|
-
import { a as api, j as joinAllUri, u as uri } from "./index-
|
|
12
|
+
import { a as api, j as joinAllUri, u as uri } from "./index-Bx5giDpY.js";
|
|
13
13
|
import { ClueReplicationError } from "./database/errors.js";
|
|
14
14
|
import { REPLICATORS } from "./database/globals.js";
|
|
15
15
|
import { l as last$1 } from "./last-CUCl67Im.js";
|
|
@@ -827,7 +827,7 @@ function errorToPlainJson(err) {
|
|
|
827
827
|
return ret;
|
|
828
828
|
}
|
|
829
829
|
var _lastNow = 0;
|
|
830
|
-
function now$
|
|
830
|
+
function now$2() {
|
|
831
831
|
var ret = Date.now();
|
|
832
832
|
ret = ret + 0.01;
|
|
833
833
|
if (ret <= _lastNow) {
|
|
@@ -850,7 +850,7 @@ var RXJS_SHARE_REPLAY_DEFAULTS = {
|
|
|
850
850
|
bufferSize: 1,
|
|
851
851
|
refCount: true
|
|
852
852
|
};
|
|
853
|
-
var RXDB_VERSION = "16.
|
|
853
|
+
var RXDB_VERSION = "16.21.1";
|
|
854
854
|
var RXDB_UTILS_GLOBAL = {};
|
|
855
855
|
var PREMIUM_FLAG_HASH = "6da4936d1425ff3a5c44c02342c6daf791d266be3ae8479b8ec59e261df41b93";
|
|
856
856
|
var NON_PREMIUM_COLLECTION_LIMIT = 16;
|
|
@@ -5166,7 +5166,7 @@ async function writeSingle(instance, writeRow, context) {
|
|
|
5166
5166
|
}
|
|
5167
5167
|
}
|
|
5168
5168
|
function stackCheckpoints(checkpoints) {
|
|
5169
|
-
return Object.assign({}, ...checkpoints);
|
|
5169
|
+
return Object.assign({}, ...checkpoints.filter((x) => !!x));
|
|
5170
5170
|
}
|
|
5171
5171
|
function throwIfIsStorageWriteError(collection, documentId, writeData, error) {
|
|
5172
5172
|
if (error) {
|
|
@@ -5433,7 +5433,7 @@ function getWrappedStorageInstance(database, storageInstance, rxJsonSchema) {
|
|
|
5433
5433
|
async bulkWrite(rows, context) {
|
|
5434
5434
|
var databaseToken = database.token;
|
|
5435
5435
|
var toStorageWriteRows = new Array(rows.length);
|
|
5436
|
-
var time = now$
|
|
5436
|
+
var time = now$2();
|
|
5437
5437
|
for (var index = 0; index < rows.length; index++) {
|
|
5438
5438
|
var writeRow = rows[index];
|
|
5439
5439
|
var document2 = flatCloneDocWithMeta(writeRow.document);
|
|
@@ -6701,7 +6701,7 @@ var defaultCacheReplacementPolicyMonad = (tryToKeepMax, unExecutedLifetime) => (
|
|
|
6701
6701
|
if (queryCache._map.size < tryToKeepMax) {
|
|
6702
6702
|
return;
|
|
6703
6703
|
}
|
|
6704
|
-
var minUnExecutedLifetime = now$
|
|
6704
|
+
var minUnExecutedLifetime = now$2() - unExecutedLifetime;
|
|
6705
6705
|
var maybeUncache = [];
|
|
6706
6706
|
var queriesInCache = Array.from(queryCache._map.values());
|
|
6707
6707
|
for (var rxQuery of queriesInCache) {
|
|
@@ -6884,7 +6884,7 @@ function createWeakRefFallback(obj) {
|
|
|
6884
6884
|
}
|
|
6885
6885
|
var RxQuerySingleResult = /* @__PURE__ */ (function() {
|
|
6886
6886
|
function RxQuerySingleResult2(query, docsDataFromStorageInstance, count) {
|
|
6887
|
-
this.time = now$
|
|
6887
|
+
this.time = now$2();
|
|
6888
6888
|
this.query = query;
|
|
6889
6889
|
this.count = count;
|
|
6890
6890
|
this.documents = mapDocumentsDataToCacheDocs(this.query.collection._docCache, docsDataFromStorageInstance);
|
|
@@ -6947,7 +6947,7 @@ var RxQueryBase = /* @__PURE__ */ (function() {
|
|
|
6947
6947
|
function RxQueryBase2(op, mangoQuery, collection, other = {}) {
|
|
6948
6948
|
this.id = newQueryID();
|
|
6949
6949
|
this._execOverDatabaseCount = 0;
|
|
6950
|
-
this._creationTime = now$
|
|
6950
|
+
this._creationTime = now$2();
|
|
6951
6951
|
this._lastEnsureEqual = 0;
|
|
6952
6952
|
this.uncached = false;
|
|
6953
6953
|
this.refCount$ = new BehaviorSubject(null);
|
|
@@ -6984,14 +6984,17 @@ var RxQueryBase = /* @__PURE__ */ (function() {
|
|
|
6984
6984
|
this._execOverDatabaseCount = this._execOverDatabaseCount + 1;
|
|
6985
6985
|
if (this.op === "count") {
|
|
6986
6986
|
var preparedQuery = this.getPreparedQuery();
|
|
6987
|
-
var
|
|
6988
|
-
if (
|
|
6987
|
+
var countResult = await this.collection.storageInstance.count(preparedQuery);
|
|
6988
|
+
if (countResult.mode === "slow" && !this.collection.database.allowSlowCount) {
|
|
6989
6989
|
throw newRxError("QU14", {
|
|
6990
6990
|
collection: this.collection,
|
|
6991
6991
|
queryObj: this.mangoQuery
|
|
6992
6992
|
});
|
|
6993
6993
|
} else {
|
|
6994
|
-
return
|
|
6994
|
+
return {
|
|
6995
|
+
result: countResult.count,
|
|
6996
|
+
counter: this.collection._changeEventBuffer.getCounter()
|
|
6997
|
+
};
|
|
6995
6998
|
}
|
|
6996
6999
|
}
|
|
6997
7000
|
if (this.op === "findByIds") {
|
|
@@ -7016,12 +7019,16 @@ var RxQueryBase = /* @__PURE__ */ (function() {
|
|
|
7016
7019
|
ret.set(doc.primary, doc);
|
|
7017
7020
|
});
|
|
7018
7021
|
}
|
|
7019
|
-
return
|
|
7022
|
+
return {
|
|
7023
|
+
result: ret,
|
|
7024
|
+
counter: this.collection._changeEventBuffer.getCounter()
|
|
7025
|
+
};
|
|
7020
7026
|
}
|
|
7021
|
-
var
|
|
7022
|
-
return
|
|
7023
|
-
|
|
7024
|
-
|
|
7027
|
+
var result = await queryCollection(this);
|
|
7028
|
+
return {
|
|
7029
|
+
result: result.docs,
|
|
7030
|
+
counter: result.counter
|
|
7031
|
+
};
|
|
7025
7032
|
};
|
|
7026
7033
|
_proto.exec = async function exec(throwIfMissing) {
|
|
7027
7034
|
if (throwIfMissing && this.op !== "findOne") {
|
|
@@ -7217,14 +7224,11 @@ async function _ensureEqual(rxQuery) {
|
|
|
7217
7224
|
if (rxQuery.collection.awaitBeforeReads.size > 0) {
|
|
7218
7225
|
await Promise.all(Array.from(rxQuery.collection.awaitBeforeReads).map((fn) => fn()));
|
|
7219
7226
|
}
|
|
7220
|
-
if (rxQuery.collection.database.closed || _isResultsInSync(rxQuery)) {
|
|
7221
|
-
return false;
|
|
7222
|
-
}
|
|
7223
7227
|
rxQuery._ensureEqualQueue = rxQuery._ensureEqualQueue.then(() => __ensureEqual(rxQuery));
|
|
7224
7228
|
return rxQuery._ensureEqualQueue;
|
|
7225
7229
|
}
|
|
7226
7230
|
function __ensureEqual(rxQuery) {
|
|
7227
|
-
rxQuery._lastEnsureEqual = now$
|
|
7231
|
+
rxQuery._lastEnsureEqual = now$2();
|
|
7228
7232
|
if (
|
|
7229
7233
|
// db is closed
|
|
7230
7234
|
rxQuery.collection.database.closed || // nothing happened since last run
|
|
@@ -7273,8 +7277,9 @@ function __ensureEqual(rxQuery) {
|
|
|
7273
7277
|
}
|
|
7274
7278
|
}
|
|
7275
7279
|
if (mustReExec) {
|
|
7276
|
-
return rxQuery._execOverDatabase().then((
|
|
7277
|
-
|
|
7280
|
+
return rxQuery._execOverDatabase().then((result) => {
|
|
7281
|
+
var newResultData = result.result;
|
|
7282
|
+
rxQuery._latestChangeEvent = result.counter;
|
|
7278
7283
|
if (typeof newResultData === "number") {
|
|
7279
7284
|
if (!rxQuery._result || newResultData !== rxQuery._result.count) {
|
|
7280
7285
|
ret = true;
|
|
@@ -7330,7 +7335,10 @@ async function queryCollection(rxQuery) {
|
|
|
7330
7335
|
var queryResult = await collection.storageInstance.query(preparedQuery);
|
|
7331
7336
|
docs = queryResult.documents;
|
|
7332
7337
|
}
|
|
7333
|
-
return
|
|
7338
|
+
return {
|
|
7339
|
+
docs,
|
|
7340
|
+
counter: collection._changeEventBuffer.getCounter()
|
|
7341
|
+
};
|
|
7334
7342
|
}
|
|
7335
7343
|
function isFindOneByIdQuery(primaryPath, query) {
|
|
7336
7344
|
if (!query.skip && query.selector && Object.keys(query.selector).length === 1 && query.selector[primaryPath]) {
|
|
@@ -7640,7 +7648,7 @@ async function removeCollectionStorages(storage, databaseInternalStorage, databa
|
|
|
7640
7648
|
var writeRows = relevantCollectionMetaDocs.map((doc) => {
|
|
7641
7649
|
var writeDoc = flatCloneDocWithMeta(doc);
|
|
7642
7650
|
writeDoc._deleted = true;
|
|
7643
|
-
writeDoc._meta.lwt = now$
|
|
7651
|
+
writeDoc._meta.lwt = now$2();
|
|
7644
7652
|
writeDoc._rev = createRevision(databaseInstanceToken, doc);
|
|
7645
7653
|
return {
|
|
7646
7654
|
previous: doc,
|
|
@@ -8624,7 +8632,7 @@ function _tryIdleCall(idleQueue) {
|
|
|
8624
8632
|
}, 0);
|
|
8625
8633
|
}, 0);
|
|
8626
8634
|
}
|
|
8627
|
-
class ObliviousSet {
|
|
8635
|
+
let ObliviousSet$1 = class ObliviousSet {
|
|
8628
8636
|
constructor(ttl) {
|
|
8629
8637
|
__publicField(this, "ttl");
|
|
8630
8638
|
__publicField(this, "map", /* @__PURE__ */ new Map());
|
|
@@ -8639,21 +8647,21 @@ class ObliviousSet {
|
|
|
8639
8647
|
return this.map.has(value);
|
|
8640
8648
|
}
|
|
8641
8649
|
add(value) {
|
|
8642
|
-
this.map.set(value, now());
|
|
8650
|
+
this.map.set(value, now$1());
|
|
8643
8651
|
if (!this._to) {
|
|
8644
8652
|
this._to = true;
|
|
8645
8653
|
setTimeout(() => {
|
|
8646
8654
|
this._to = false;
|
|
8647
|
-
removeTooOldValues(this);
|
|
8655
|
+
removeTooOldValues$1(this);
|
|
8648
8656
|
}, 0);
|
|
8649
8657
|
}
|
|
8650
8658
|
}
|
|
8651
8659
|
clear() {
|
|
8652
8660
|
this.map.clear();
|
|
8653
8661
|
}
|
|
8654
|
-
}
|
|
8655
|
-
function removeTooOldValues(obliviousSet) {
|
|
8656
|
-
const olderThen = now() - obliviousSet.ttl;
|
|
8662
|
+
};
|
|
8663
|
+
function removeTooOldValues$1(obliviousSet) {
|
|
8664
|
+
const olderThen = now$1() - obliviousSet.ttl;
|
|
8657
8665
|
const iterator2 = obliviousSet.map[Symbol.iterator]();
|
|
8658
8666
|
while (true) {
|
|
8659
8667
|
const next = iterator2.next().value;
|
|
@@ -8669,7 +8677,7 @@ function removeTooOldValues(obliviousSet) {
|
|
|
8669
8677
|
}
|
|
8670
8678
|
}
|
|
8671
8679
|
}
|
|
8672
|
-
function now() {
|
|
8680
|
+
function now$1() {
|
|
8673
8681
|
return Date.now();
|
|
8674
8682
|
}
|
|
8675
8683
|
var USED_DATABASE_NAMES = /* @__PURE__ */ new Set();
|
|
@@ -8690,7 +8698,7 @@ var RxDatabaseBase = /* @__PURE__ */ (function() {
|
|
|
8690
8698
|
this.observable$ = this.eventBulks$.pipe(mergeMap((changeEventBulk) => rxChangeEventBulkToRxChangeEvents(changeEventBulk)));
|
|
8691
8699
|
this.storageToken = PROMISE_RESOLVE_FALSE;
|
|
8692
8700
|
this.storageTokenDocument = PROMISE_RESOLVE_FALSE;
|
|
8693
|
-
this.emittedEventBulkIds = new ObliviousSet(60 * 1e3);
|
|
8701
|
+
this.emittedEventBulkIds = new ObliviousSet$1(60 * 1e3);
|
|
8694
8702
|
this.name = name;
|
|
8695
8703
|
this.token = token;
|
|
8696
8704
|
this.storage = storage;
|
|
@@ -9133,7 +9141,7 @@ async function setCheckpoint(state, direction, checkpoint) {
|
|
|
9133
9141
|
if (previousCheckpointDoc) {
|
|
9134
9142
|
newDoc.checkpointData = stackCheckpoints([previousCheckpointDoc.checkpointData, newDoc.checkpointData]);
|
|
9135
9143
|
}
|
|
9136
|
-
newDoc._meta.lwt = now$
|
|
9144
|
+
newDoc._meta.lwt = now$2();
|
|
9137
9145
|
newDoc._rev = createRevision(await state.checkpointKey, previousCheckpointDoc);
|
|
9138
9146
|
if (state.events.canceled.getValue()) {
|
|
9139
9147
|
return;
|
|
@@ -9289,7 +9297,7 @@ async function getMetaWriteRow(state, newMasterDocState, previous, isResolvedCon
|
|
|
9289
9297
|
if (isResolvedConflict) {
|
|
9290
9298
|
newMeta.isResolvedConflict = isResolvedConflict;
|
|
9291
9299
|
}
|
|
9292
|
-
newMeta._meta.lwt = now$
|
|
9300
|
+
newMeta._meta.lwt = now$2();
|
|
9293
9301
|
newMeta.id = getComposedPrimaryKeyOfDocumentData(state.input.metaInstance.schema, newMeta);
|
|
9294
9302
|
newMeta._rev = createRevision(await state.checkpointKey, previous);
|
|
9295
9303
|
var ret = {
|
|
@@ -9451,7 +9459,7 @@ async function startReplicationDownstream(state) {
|
|
|
9451
9459
|
_rev: getDefaultRevision()
|
|
9452
9460
|
} : {
|
|
9453
9461
|
_meta: {
|
|
9454
|
-
lwt: now$
|
|
9462
|
+
lwt: now$2()
|
|
9455
9463
|
},
|
|
9456
9464
|
_rev: getDefaultRevision(),
|
|
9457
9465
|
_attachments: state.hasAttachments && masterState._attachments ? masterState._attachments : {}
|
|
@@ -9534,7 +9542,7 @@ async function resolveConflictError(state, input, forkState) {
|
|
|
9534
9542
|
_rev: getDefaultRevision(),
|
|
9535
9543
|
_attachments: flatClone(forkState._attachments)
|
|
9536
9544
|
});
|
|
9537
|
-
resolvedDoc._meta.lwt = now$
|
|
9545
|
+
resolvedDoc._meta.lwt = now$2();
|
|
9538
9546
|
resolvedDoc._rev = createRevision(await state.checkpointKey, forkState);
|
|
9539
9547
|
return resolvedDoc;
|
|
9540
9548
|
}
|
|
@@ -9644,7 +9652,7 @@ async function startReplicationUpstream(state) {
|
|
|
9644
9652
|
state.events.active.up.next(true);
|
|
9645
9653
|
state.streamQueue.up = state.streamQueue.up.then(async () => {
|
|
9646
9654
|
var docs = [];
|
|
9647
|
-
var checkpoint
|
|
9655
|
+
var checkpoint;
|
|
9648
9656
|
while (openTasks.length > 0) {
|
|
9649
9657
|
var taskWithTime = ensureNotFalsy(openTasks.shift());
|
|
9650
9658
|
if (taskWithTime.time < initialSyncStartTime) {
|
|
@@ -9985,6 +9993,63 @@ var NativeMethod = {
|
|
|
9985
9993
|
averageResponseTime: averageResponseTime$3,
|
|
9986
9994
|
microSeconds: microSeconds$3
|
|
9987
9995
|
};
|
|
9996
|
+
class ObliviousSet2 {
|
|
9997
|
+
constructor(ttl) {
|
|
9998
|
+
__publicField(this, "ttl");
|
|
9999
|
+
__publicField(this, "map", /* @__PURE__ */ new Map());
|
|
10000
|
+
/**
|
|
10001
|
+
* Creating calls to setTimeout() is expensive,
|
|
10002
|
+
* so we only do that if there is not timeout already open.
|
|
10003
|
+
*/
|
|
10004
|
+
__publicField(this, "_to", false);
|
|
10005
|
+
this.ttl = ttl;
|
|
10006
|
+
}
|
|
10007
|
+
has(value) {
|
|
10008
|
+
const valueTime = this.map.get(value);
|
|
10009
|
+
if (typeof valueTime === "undefined") {
|
|
10010
|
+
return false;
|
|
10011
|
+
}
|
|
10012
|
+
if (valueTime < now() - this.ttl) {
|
|
10013
|
+
this.map.delete(value);
|
|
10014
|
+
return false;
|
|
10015
|
+
}
|
|
10016
|
+
return true;
|
|
10017
|
+
}
|
|
10018
|
+
add(value) {
|
|
10019
|
+
this.map.delete(value);
|
|
10020
|
+
this.map.set(value, now());
|
|
10021
|
+
if (!this._to) {
|
|
10022
|
+
this._to = true;
|
|
10023
|
+
setTimeout(() => {
|
|
10024
|
+
this._to = false;
|
|
10025
|
+
removeTooOldValues(this);
|
|
10026
|
+
}, 0);
|
|
10027
|
+
}
|
|
10028
|
+
}
|
|
10029
|
+
clear() {
|
|
10030
|
+
this.map.clear();
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
function removeTooOldValues(obliviousSet) {
|
|
10034
|
+
const olderThen = now() - obliviousSet.ttl;
|
|
10035
|
+
const iterator2 = obliviousSet.map[Symbol.iterator]();
|
|
10036
|
+
while (true) {
|
|
10037
|
+
const next = iterator2.next().value;
|
|
10038
|
+
if (!next) {
|
|
10039
|
+
break;
|
|
10040
|
+
}
|
|
10041
|
+
const value = next[0];
|
|
10042
|
+
const time = next[1];
|
|
10043
|
+
if (time < olderThen) {
|
|
10044
|
+
obliviousSet.map.delete(value);
|
|
10045
|
+
} else {
|
|
10046
|
+
break;
|
|
10047
|
+
}
|
|
10048
|
+
}
|
|
10049
|
+
}
|
|
10050
|
+
function now() {
|
|
10051
|
+
return Date.now();
|
|
10052
|
+
}
|
|
9988
10053
|
function fillOptionsWithDefaults$1() {
|
|
9989
10054
|
var originalOptions = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
9990
10055
|
var options = JSON.parse(JSON.stringify(originalOptions));
|
|
@@ -10167,7 +10232,7 @@ function create$2(channelName, options) {
|
|
|
10167
10232
|
* contains all messages that have been emitted before
|
|
10168
10233
|
* @type {ObliviousSet}
|
|
10169
10234
|
*/
|
|
10170
|
-
eMIs: new
|
|
10235
|
+
eMIs: new ObliviousSet2(options.idb.ttl * 2),
|
|
10171
10236
|
// ensures we do not read messages in parallel
|
|
10172
10237
|
writeBlockPromise: PROMISE_RESOLVED_VOID,
|
|
10173
10238
|
messagesCallback: null,
|
|
@@ -10312,7 +10377,7 @@ function create$1(channelName, options) {
|
|
|
10312
10377
|
throw new Error("BroadcastChannel: localstorage cannot be used");
|
|
10313
10378
|
}
|
|
10314
10379
|
var uuid = randomToken();
|
|
10315
|
-
var eMIs = new
|
|
10380
|
+
var eMIs = new ObliviousSet2(options.localstorage.removeTimeout);
|
|
10316
10381
|
var state = {
|
|
10317
10382
|
channelName,
|
|
10318
10383
|
uuid,
|
|
@@ -10757,7 +10822,7 @@ LeaderElectionWebLock.prototype = {
|
|
|
10757
10822
|
_this3._wKMC.res = res;
|
|
10758
10823
|
_this3._wKMC.rej = rej;
|
|
10759
10824
|
});
|
|
10760
|
-
this._wLMP = new Promise(function(res) {
|
|
10825
|
+
this._wLMP = new Promise(function(res, reject) {
|
|
10761
10826
|
navigator.locks.request(_this3.lN, {
|
|
10762
10827
|
signal: _this3._wKMC.c.signal
|
|
10763
10828
|
}, function() {
|
|
@@ -10765,7 +10830,11 @@ LeaderElectionWebLock.prototype = {
|
|
|
10765
10830
|
beLeader(_this3);
|
|
10766
10831
|
res();
|
|
10767
10832
|
return returnPromise;
|
|
10768
|
-
})["catch"](function() {
|
|
10833
|
+
})["catch"](function(err) {
|
|
10834
|
+
if (_this3._wKMC.rej) {
|
|
10835
|
+
_this3._wKMC.rej(err);
|
|
10836
|
+
}
|
|
10837
|
+
reject(err);
|
|
10769
10838
|
});
|
|
10770
10839
|
});
|
|
10771
10840
|
}
|
|
@@ -11792,7 +11861,7 @@ export {
|
|
|
11792
11861
|
mergeMap as aG,
|
|
11793
11862
|
newRxError as aH,
|
|
11794
11863
|
newRxTypeError as aI,
|
|
11795
|
-
now$
|
|
11864
|
+
now$2 as aJ,
|
|
11796
11865
|
objectPathMonad as aK,
|
|
11797
11866
|
operate as aL,
|
|
11798
11867
|
overwritable as aM,
|