@cccsaurora/clue-ui 1.5.0-dev.477 → 1.5.0-dev.484
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-DIAUGhSr.js → ActionForm-BMIAp7pf.js} +3 -3
- package/{AnnotationDetails-DmrYK0Qc.js → AnnotationDetails-Dmk8kpl3.js} +1 -1
- package/{AnnotationPreview-DAswA7fu.js → AnnotationPreview-CIya3ByE.js} +1 -1
- package/{ClueEnrichContext-B76X-cLH.js → ClueEnrichContext-BqzlMW0c.js} +5 -20
- 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/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/database/errors.d.ts +11 -0
- package/database/errors.js +18 -0
- package/database/index.js +2 -2
- package/database/replication.js +3 -2
- package/database/types.d.ts +22 -0
- package/hooks/ClueActionContext.js +2 -2
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +3 -2
- package/hooks/ClueEnrichContextType.d.ts +1 -1
- 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.d.ts +2 -0
- package/hooks/useClueTypeConfig.js +9 -13
- 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-8lXdRRpV.js → index-CdqmWKik.js} +2 -2
- package/{index-DT_sunCV.js → index-CgvdVEs-.js} +1 -1
- package/{index-CPetQxOc.js → index-Dd7KdsT8.js} +113 -89
- package/main.d.ts +5 -4
- package/main.js +7 -5
- package/package.json +1 -1
- package/{replication-DDxxY_CX.js → replication-Ck5s0Yg-.js} +115 -43
- package/types/lookup.d.ts +10 -1
- package/utils/typeDetection.d.ts +7 -0
- package/utils/typeDetection.js +13 -0
|
@@ -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-Ck5s0Yg-.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";
|
|
@@ -9656,7 +9656,7 @@ const buildDatabase = async (_config = {}) => {
|
|
|
9656
9656
|
addRxPlugin(RxDBStatePlugin);
|
|
9657
9657
|
/* v8 ignore next 10 -- @preserve */
|
|
9658
9658
|
if (config.devMode) {
|
|
9659
|
-
await import("./index-
|
|
9659
|
+
await import("./index-CgvdVEs-.js").then((module) => {
|
|
9660
9660
|
addRxPlugin(module.RxDBDevModePlugin);
|
|
9661
9661
|
if (config.testing) {
|
|
9662
9662
|
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-Ck5s0Yg-.js";
|
|
2
2
|
var ERROR_MESSAGES = {
|
|
3
3
|
// util.js / config
|
|
4
4
|
UT1: "given name is no string or empty",
|
|
@@ -5,26 +5,26 @@ import { MY_LOCAL_STORAGE_PREFIX, StorageKey } from "./utils/constants.js";
|
|
|
5
5
|
import { i as isNil } from "./isNil-CIubwp4T.js";
|
|
6
6
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
|
|
7
7
|
import { g as getAxiosCache, s as setAxiosCache } from "./sessionStorage-B68y-wnE.js";
|
|
8
|
-
const get$
|
|
8
|
+
const get$b = (actionId, taskId, options = { timeout: null }, config) => {
|
|
9
9
|
const searchParams = [];
|
|
10
10
|
if (!isNil(options.timeout)) {
|
|
11
11
|
searchParams.push(`max_timeout=${options.timeout}`);
|
|
12
12
|
}
|
|
13
13
|
return hget(
|
|
14
|
-
joinUri(uri$
|
|
14
|
+
joinUri(uri$g(), `${actionId.replace(".", "/")}/status/${taskId}`),
|
|
15
15
|
searchParams.length > 0 ? new URLSearchParams(searchParams.join("&")) : null,
|
|
16
16
|
config
|
|
17
17
|
);
|
|
18
18
|
};
|
|
19
19
|
const status$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
20
|
__proto__: null,
|
|
21
|
-
get: get$
|
|
21
|
+
get: get$b
|
|
22
22
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
23
|
-
const uri$
|
|
23
|
+
const uri$g = () => {
|
|
24
24
|
return joinUri(uri(), "actions");
|
|
25
25
|
};
|
|
26
|
-
const get$
|
|
27
|
-
return hget(uri$
|
|
26
|
+
const get$a = (config) => {
|
|
27
|
+
return hget(uri$g(), null, config);
|
|
28
28
|
};
|
|
29
29
|
const post$4 = (actionId, selectors, params, context, options = { timeout: null }, config) => {
|
|
30
30
|
const searchParams = [];
|
|
@@ -44,7 +44,7 @@ const post$4 = (actionId, selectors, params, context, options = { timeout: null
|
|
|
44
44
|
payload.context = context ?? null;
|
|
45
45
|
return hpost(
|
|
46
46
|
joinUri(
|
|
47
|
-
joinUri(uri$
|
|
47
|
+
joinUri(uri$g(), "execute"),
|
|
48
48
|
actionId.replace(".", "/"),
|
|
49
49
|
searchParams.length > 0 ? new URLSearchParams(searchParams.join("&")) : null
|
|
50
50
|
),
|
|
@@ -54,83 +54,83 @@ const post$4 = (actionId, selectors, params, context, options = { timeout: null
|
|
|
54
54
|
};
|
|
55
55
|
const actions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
56
56
|
__proto__: null,
|
|
57
|
-
get: get$
|
|
57
|
+
get: get$a,
|
|
58
58
|
post: post$4,
|
|
59
59
|
status: status$1,
|
|
60
|
-
uri: uri$
|
|
60
|
+
uri: uri$g
|
|
61
61
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
62
|
-
const uri$
|
|
63
|
-
return joinUri(uri$
|
|
62
|
+
const uri$f = (searchParams) => {
|
|
63
|
+
return joinUri(uri$e(), "login", searchParams);
|
|
64
64
|
};
|
|
65
65
|
const post$3 = (body) => {
|
|
66
|
-
return hpost(uri$
|
|
66
|
+
return hpost(uri$f(), body);
|
|
67
67
|
};
|
|
68
|
-
const get$
|
|
68
|
+
const get$9 = (search) => {
|
|
69
69
|
const nonce = localStorage.getItem(`${MY_LOCAL_STORAGE_PREFIX}.${StorageKey.LOGIN_NONCE}`);
|
|
70
70
|
if (nonce) {
|
|
71
71
|
search.set("nonce", JSON.parse(nonce));
|
|
72
72
|
localStorage.removeItem(`${MY_LOCAL_STORAGE_PREFIX}.${StorageKey.LOGIN_NONCE}`);
|
|
73
73
|
}
|
|
74
|
-
return hget(uri$
|
|
74
|
+
return hget(uri$f(), search);
|
|
75
75
|
};
|
|
76
76
|
const login = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
77
77
|
__proto__: null,
|
|
78
|
-
get: get$
|
|
78
|
+
get: get$9,
|
|
79
79
|
post: post$3,
|
|
80
|
-
uri: uri$
|
|
80
|
+
uri: uri$f
|
|
81
81
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
82
|
-
const uri$
|
|
82
|
+
const uri$e = () => {
|
|
83
83
|
return joinUri(uri(), "auth");
|
|
84
84
|
};
|
|
85
85
|
const auth = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
86
|
__proto__: null,
|
|
87
87
|
login,
|
|
88
|
-
uri: uri$
|
|
88
|
+
uri: uri$e
|
|
89
89
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
90
|
-
const uri$
|
|
90
|
+
const uri$d = () => {
|
|
91
91
|
return joinUri(uri(), "configs");
|
|
92
92
|
};
|
|
93
|
-
const get$
|
|
94
|
-
return hget(uri$
|
|
93
|
+
const get$8 = (config) => {
|
|
94
|
+
return hget(uri$d(), null, config);
|
|
95
95
|
};
|
|
96
96
|
const configs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
97
97
|
__proto__: null,
|
|
98
|
-
get: get$
|
|
99
|
-
uri: uri$
|
|
98
|
+
get: get$8,
|
|
99
|
+
uri: uri$d
|
|
100
100
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
101
|
-
const get$
|
|
101
|
+
const get$7 = (fetcherId, taskId, options = { timeout: null }, config) => {
|
|
102
102
|
const searchParams = [];
|
|
103
103
|
if (!isNil(options.timeout)) {
|
|
104
104
|
searchParams.push(`max_timeout=${options.timeout}`);
|
|
105
105
|
}
|
|
106
106
|
return hget(
|
|
107
|
-
joinUri(uri$
|
|
107
|
+
joinUri(uri$g(), `${fetcherId.replace(".", "/")}/status/${taskId}`),
|
|
108
108
|
searchParams.length > 0 ? new URLSearchParams(searchParams.join("&")) : null,
|
|
109
109
|
config
|
|
110
110
|
);
|
|
111
111
|
};
|
|
112
112
|
const status = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
113
113
|
__proto__: null,
|
|
114
|
-
get: get$
|
|
114
|
+
get: get$7
|
|
115
115
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
116
|
-
const uri$
|
|
116
|
+
const uri$c = () => {
|
|
117
117
|
return joinUri(uri(), "fetchers");
|
|
118
118
|
};
|
|
119
|
-
const get$
|
|
120
|
-
return hget(uri$
|
|
119
|
+
const get$6 = (config) => {
|
|
120
|
+
return hget(uri$c(), null, config);
|
|
121
121
|
};
|
|
122
122
|
const post$2 = (fetcherId, selector, config) => {
|
|
123
|
-
return hpost(joinAllUri(uri$
|
|
123
|
+
return hpost(joinAllUri(uri$c(), fetcherId.replace(".", "/")), selector, config);
|
|
124
124
|
};
|
|
125
125
|
const fetchers = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
126
126
|
__proto__: null,
|
|
127
|
-
get: get$
|
|
127
|
+
get: get$6,
|
|
128
128
|
post: post$2,
|
|
129
129
|
status,
|
|
130
|
-
uri: uri$
|
|
130
|
+
uri: uri$c
|
|
131
131
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
132
|
-
const uri$
|
|
133
|
-
return joinUri(uri$
|
|
132
|
+
const uri$b = () => {
|
|
133
|
+
return joinUri(uri$8(), "enrich");
|
|
134
134
|
};
|
|
135
135
|
const post$1 = (bulkData, sources = [], options = { timeout: null, includeRaw: false, noCache: false }, config) => {
|
|
136
136
|
const searchParams = [];
|
|
@@ -150,7 +150,7 @@ const post$1 = (bulkData, sources = [], options = { timeout: null, includeRaw: f
|
|
|
150
150
|
searchParams.push("no_cache=true");
|
|
151
151
|
}
|
|
152
152
|
return hpost(
|
|
153
|
-
joinUri(uri$
|
|
153
|
+
joinUri(uri$b(), "", searchParams.length > 0 ? new URLSearchParams(searchParams.join("&")) : null),
|
|
154
154
|
bulkData,
|
|
155
155
|
config
|
|
156
156
|
);
|
|
@@ -158,75 +158,75 @@ const post$1 = (bulkData, sources = [], options = { timeout: null, includeRaw: f
|
|
|
158
158
|
const enrich = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
159
159
|
__proto__: null,
|
|
160
160
|
post: post$1,
|
|
161
|
-
uri: uri$
|
|
161
|
+
uri: uri$b
|
|
162
162
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
163
|
-
const uri$
|
|
164
|
-
return joinUri(uri$
|
|
163
|
+
const uri$a = () => {
|
|
164
|
+
return joinUri(uri$8(), "types");
|
|
165
165
|
};
|
|
166
|
-
const get$
|
|
167
|
-
return hget(uri$
|
|
166
|
+
const get$5 = (config) => {
|
|
167
|
+
return hget(uri$a(), null, config);
|
|
168
168
|
};
|
|
169
169
|
const types = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
170
170
|
__proto__: null,
|
|
171
|
-
get: get$
|
|
172
|
-
uri: uri$
|
|
171
|
+
get: get$5,
|
|
172
|
+
uri: uri$a
|
|
173
173
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
174
|
-
const uri$
|
|
175
|
-
return joinUri(uri$
|
|
174
|
+
const uri$9 = () => {
|
|
175
|
+
return joinUri(uri$8(), "types_detection");
|
|
176
176
|
};
|
|
177
|
-
const get$
|
|
178
|
-
return hget(uri$
|
|
177
|
+
const get$4 = (config) => {
|
|
178
|
+
return hget(uri$9(), null, config);
|
|
179
179
|
};
|
|
180
|
-
const types_detection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
180
|
+
const types_detection$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
181
181
|
__proto__: null,
|
|
182
|
-
get: get$
|
|
183
|
-
uri: uri$
|
|
182
|
+
get: get$4,
|
|
183
|
+
uri: uri$9
|
|
184
184
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
185
|
-
const uri$
|
|
185
|
+
const uri$8 = () => {
|
|
186
186
|
return joinUri(uri(), "lookup");
|
|
187
187
|
};
|
|
188
188
|
const lookup = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
189
189
|
__proto__: null,
|
|
190
190
|
enrich,
|
|
191
191
|
types,
|
|
192
|
-
types_detection,
|
|
193
|
-
uri: uri$
|
|
192
|
+
types_detection: types_detection$1,
|
|
193
|
+
uri: uri$8
|
|
194
194
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
195
|
-
const uri$
|
|
196
|
-
return joinUri(uri$
|
|
195
|
+
const uri$7 = (filter2) => {
|
|
196
|
+
return joinUri(uri$5(), filter2 ? "/docs?filter=" + filter2 : "/docs");
|
|
197
197
|
};
|
|
198
|
-
const get$
|
|
199
|
-
return hget(uri$
|
|
198
|
+
const get$3 = (filter2, config) => {
|
|
199
|
+
return hget(uri$7(filter2), null, config);
|
|
200
200
|
};
|
|
201
201
|
const all_documentation = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
202
202
|
__proto__: null,
|
|
203
|
-
get: get$
|
|
204
|
-
uri: uri$
|
|
203
|
+
get: get$3,
|
|
204
|
+
uri: uri$7
|
|
205
205
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
206
|
-
const uri$
|
|
207
|
-
return joinAllUri(uri$
|
|
206
|
+
const uri$6 = (file) => {
|
|
207
|
+
return joinAllUri(uri$5(), "docs", file);
|
|
208
208
|
};
|
|
209
|
-
const get$
|
|
210
|
-
return hget(uri$
|
|
209
|
+
const get$2 = (file, config) => {
|
|
210
|
+
return hget(uri$6(file), null, config);
|
|
211
211
|
};
|
|
212
212
|
const documentation = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
213
213
|
__proto__: null,
|
|
214
|
-
get: get$
|
|
215
|
-
uri: uri$
|
|
214
|
+
get: get$2,
|
|
215
|
+
uri: uri$6
|
|
216
216
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
217
|
-
const uri$
|
|
217
|
+
const uri$5 = () => {
|
|
218
218
|
return joinUri(uri(), "static");
|
|
219
219
|
};
|
|
220
220
|
const _static = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
221
221
|
__proto__: null,
|
|
222
222
|
all_documentation,
|
|
223
223
|
documentation,
|
|
224
|
-
uri: uri$
|
|
224
|
+
uri: uri$5
|
|
225
225
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
226
|
-
const uri$
|
|
226
|
+
const uri$4 = () => {
|
|
227
227
|
return joinUri(uri(), "sync");
|
|
228
228
|
};
|
|
229
|
-
const get = (collection, id, timestamp, omitDeleted, config) => {
|
|
229
|
+
const get$1 = (collection, id, timestamp, omitDeleted, config) => {
|
|
230
230
|
const params = new URLSearchParams();
|
|
231
231
|
params.set("limit", "250");
|
|
232
232
|
if (!isNil(id)) {
|
|
@@ -238,15 +238,40 @@ const get = (collection, id, timestamp, omitDeleted, config) => {
|
|
|
238
238
|
if (!isNil(omitDeleted) && omitDeleted) {
|
|
239
239
|
params.set("omit_deleted", "true");
|
|
240
240
|
}
|
|
241
|
-
return hget(joinAllUri(uri$
|
|
241
|
+
return hget(joinAllUri(uri$4(), collection), params, config);
|
|
242
242
|
};
|
|
243
243
|
const post = (collection, payload, config) => {
|
|
244
|
-
return hpost(joinAllUri(uri$
|
|
244
|
+
return hpost(joinAllUri(uri$4(), collection), payload, config);
|
|
245
245
|
};
|
|
246
246
|
const sync = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
247
247
|
__proto__: null,
|
|
248
|
-
get,
|
|
248
|
+
get: get$1,
|
|
249
249
|
post,
|
|
250
|
+
uri: uri$4
|
|
251
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
252
|
+
const uri$3 = () => joinUri(uri$2(), "types_detection");
|
|
253
|
+
const get = (config) => {
|
|
254
|
+
return hget(uri$3(), null, config);
|
|
255
|
+
};
|
|
256
|
+
const types_detection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
257
|
+
__proto__: null,
|
|
258
|
+
get,
|
|
259
|
+
uri: uri$3
|
|
260
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
261
|
+
const uri$2 = () => {
|
|
262
|
+
return joinUri(uri$1(), "lookup");
|
|
263
|
+
};
|
|
264
|
+
const index = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
265
|
+
__proto__: null,
|
|
266
|
+
types_detection,
|
|
267
|
+
uri: uri$2
|
|
268
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
269
|
+
const uri$1 = () => {
|
|
270
|
+
return "/api/v2";
|
|
271
|
+
};
|
|
272
|
+
const v2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
273
|
+
__proto__: null,
|
|
274
|
+
lookup: index,
|
|
250
275
|
uri: uri$1
|
|
251
276
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
252
277
|
function bind(fn, thisArg) {
|
|
@@ -1469,10 +1494,10 @@ function toFormData$1(obj, formData, options) {
|
|
|
1469
1494
|
value = stringifyWithDepthLimit(value, 1);
|
|
1470
1495
|
} else if (utils$1.isArray(value) && isFlatArray(value) || (utils$1.isFileList(value) || utils$1.endsWith(key, "[]")) && (arr = utils$1.toArray(value))) {
|
|
1471
1496
|
key = removeBrackets(key);
|
|
1472
|
-
arr.forEach(function each(el,
|
|
1497
|
+
arr.forEach(function each(el, index2) {
|
|
1473
1498
|
!(utils$1.isUndefined(el) || el === null) && formData.append(
|
|
1474
1499
|
// eslint-disable-next-line no-nested-ternary
|
|
1475
|
-
indexes === true ? renderKey([key],
|
|
1500
|
+
indexes === true ? renderKey([key], index2, dots) : indexes === null ? key : key + "[]",
|
|
1476
1501
|
convertValue(el)
|
|
1477
1502
|
);
|
|
1478
1503
|
});
|
|
@@ -1754,10 +1779,10 @@ function toURLEncodedForm(data, options) {
|
|
|
1754
1779
|
});
|
|
1755
1780
|
}
|
|
1756
1781
|
const MAX_DEPTH = DEFAULT_FORM_DATA_MAX_DEPTH;
|
|
1757
|
-
function throwIfDepthExceeded(
|
|
1758
|
-
if (
|
|
1782
|
+
function throwIfDepthExceeded(index2) {
|
|
1783
|
+
if (index2 > MAX_DEPTH) {
|
|
1759
1784
|
throw new AxiosError$1(
|
|
1760
|
-
"FormData field is too deeply nested (" +
|
|
1785
|
+
"FormData field is too deeply nested (" + index2 + " levels). Max depth: " + MAX_DEPTH,
|
|
1761
1786
|
AxiosError$1.ERR_FORM_DATA_DEPTH_EXCEEDED
|
|
1762
1787
|
);
|
|
1763
1788
|
}
|
|
@@ -1785,12 +1810,12 @@ function arrayToObject(arr) {
|
|
|
1785
1810
|
return obj;
|
|
1786
1811
|
}
|
|
1787
1812
|
function formDataToJSON(formData) {
|
|
1788
|
-
function buildPath(path, value, target,
|
|
1789
|
-
throwIfDepthExceeded(
|
|
1790
|
-
let name = path[
|
|
1813
|
+
function buildPath(path, value, target, index2) {
|
|
1814
|
+
throwIfDepthExceeded(index2);
|
|
1815
|
+
let name = path[index2++];
|
|
1791
1816
|
if (name === "__proto__") return true;
|
|
1792
1817
|
const isNumericKey = Number.isFinite(+name);
|
|
1793
|
-
const isLast =
|
|
1818
|
+
const isLast = index2 >= path.length;
|
|
1794
1819
|
name = !name && utils$1.isArray(target) ? target.length : name;
|
|
1795
1820
|
if (isLast) {
|
|
1796
1821
|
if (utils$1.hasOwnProp(target, name)) {
|
|
@@ -1803,7 +1828,7 @@ function formDataToJSON(formData) {
|
|
|
1803
1828
|
if (!utils$1.hasOwnProp(target, name) || !utils$1.isObject(target[name])) {
|
|
1804
1829
|
target[name] = [];
|
|
1805
1830
|
}
|
|
1806
|
-
const result = buildPath(path, value, target[name],
|
|
1831
|
+
const result = buildPath(path, value, target[name], index2);
|
|
1807
1832
|
if (result && utils$1.isArray(target[name])) {
|
|
1808
1833
|
target[name] = arrayToObject(target[name]);
|
|
1809
1834
|
}
|
|
@@ -3728,9 +3753,9 @@ let CancelToken$1 = class CancelToken {
|
|
|
3728
3753
|
if (!this._listeners) {
|
|
3729
3754
|
return;
|
|
3730
3755
|
}
|
|
3731
|
-
const
|
|
3732
|
-
if (
|
|
3733
|
-
this._listeners.splice(
|
|
3756
|
+
const index2 = this._listeners.indexOf(listener);
|
|
3757
|
+
if (index2 !== -1) {
|
|
3758
|
+
this._listeners.splice(index2, 1);
|
|
3734
3759
|
}
|
|
3735
3760
|
}
|
|
3736
3761
|
toAbortSignal() {
|
|
@@ -4301,13 +4326,14 @@ const api = {
|
|
|
4301
4326
|
actions,
|
|
4302
4327
|
fetchers,
|
|
4303
4328
|
sync,
|
|
4304
|
-
_static
|
|
4329
|
+
_static,
|
|
4330
|
+
v2
|
|
4305
4331
|
};
|
|
4306
4332
|
const uri = () => {
|
|
4307
4333
|
return "/api/v1";
|
|
4308
4334
|
};
|
|
4309
4335
|
const format = (_uri, baseURL) => {
|
|
4310
|
-
const path = _uri.startsWith(
|
|
4336
|
+
const path = _uri.startsWith("/api") ? _uri : `${uri()}/${_uri.replace(/\/$/, "")}`.replace("//", "/");
|
|
4311
4337
|
return baseURL ? baseURL + path : path;
|
|
4312
4338
|
};
|
|
4313
4339
|
const joinParams = (_uri, searchParams) => {
|
|
@@ -4384,9 +4410,7 @@ const hpost = (_uri, body, config = {}) => {
|
|
|
4384
4410
|
};
|
|
4385
4411
|
export {
|
|
4386
4412
|
api as a,
|
|
4387
|
-
get$3 as b,
|
|
4388
|
-
get$4 as g,
|
|
4389
4413
|
joinAllUri as j,
|
|
4390
4414
|
post$1 as p,
|
|
4391
|
-
uri$
|
|
4415
|
+
uri$4 as u
|
|
4392
4416
|
};
|
package/main.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ClueDatabase, ClueDatabaseCollections, SelectorCollection, SelectorCollectionMethods, SelectorDocMethods, SelectorDocType, SelectorDocument, StatusCollection, StatusCollectionMethods, StatusDocMethods, StatusDocType, StatusDocument } from "./database/types";
|
|
1
|
+
import { ClueDatabase, ClueDatabaseCollections, DatabaseConfig, SelectorCollection, SelectorCollectionMethods, SelectorDocMethods, SelectorDocType, SelectorDocument, StatusCollection, StatusCollectionMethods, StatusDocMethods, StatusDocType, StatusDocument } from "./database/types";
|
|
2
2
|
import { ActionDefinition, ActionDefinitionsResponse, ActionResult } from "./types/action";
|
|
3
3
|
import { default as EnrichmentProps } from "./types/EnrichmentProps";
|
|
4
4
|
import { FetcherDefinition, FetcherDefinitionsResponse, FetcherResult } from "./types/fetcher";
|
|
5
|
-
import { Annotation, BulkEnrichRequest, BulkEnrichResponses, Enrichment, EnrichResponse, EnrichResponses, FailedRequest, Selector, TypesDetectionResponse, TypesResponse, WithExtra } from "./types/lookup";
|
|
5
|
+
import { Annotation, BulkEnrichRequest, BulkEnrichResponses, Enrichment, EnrichResponse, EnrichResponses, FailedRequest, Selector, SupportedType, TypesDetectionResponse, TypesDetectionV2Response, TypesResponse, WithExtra } from "./types/lookup";
|
|
6
6
|
import { ClueResponse } from "./types/network";
|
|
7
7
|
import { default as RunningActionData } from "./types/RunningActionData";
|
|
8
8
|
import { default as ActionForm } from './components/actions/ActionForm';
|
|
@@ -22,6 +22,7 @@ import { default as GroupControl } from './components/group/GroupControl';
|
|
|
22
22
|
import { default as SourcePicker } from './components/SourcePicker';
|
|
23
23
|
import { SNACKBAR_EVENT_ID, SnackbarEvents } from './data/event';
|
|
24
24
|
import { default as buildDatabase } from './database';
|
|
25
|
+
import { ClueReplicationError } from './database/errors';
|
|
25
26
|
import { ClueComponentContext } from './hooks/ClueComponentContext';
|
|
26
27
|
import { ClueConfigContextProps, ClueConfigContext } from './hooks/ClueConfigProvider';
|
|
27
28
|
import { ClueDatabaseContext, ClueDatabaseContextProps } from './hooks/ClueDatabaseContext';
|
|
@@ -39,6 +40,6 @@ import { default as ClueUIPlugin } from './plugins/ClueUIPlugin';
|
|
|
39
40
|
import { ClueUIPluginDefinition } from './plugins/registry';
|
|
40
41
|
import { default as FrequencyText } from './text/Frequency';
|
|
41
42
|
|
|
42
|
-
export { ActionForm, AnnotationDetailPopover, AnnotationDetails, AnnotationEntry, AnnotationPreview, AssessmentIcon, buildDatabase, ClueComponentContext, ClueConfigContext, ClueDatabaseContext, ClueEnrichContext, CluePopupContext, ClueProvider, ClueUIPlugin, ContextIcon, CountBadge, EnrichedCard, EnrichedChip, EnrichedTypography, Entry, Fetcher, FrequencyText, Group, GroupControl, OpinionIcon, SNACKBAR_EVENT_ID, SourcePicker, StatusChip, useClue, useClueActions, useClueActionsSelector, useClueConfig, useClueEnrichSelector, useClueFetcherSelector };
|
|
43
|
-
export type { ActionDefinition, ActionDefinitionsResponse, ActionResult, Annotation, BulkEnrichRequest, BulkEnrichResponses, ClueConfigContextProps, ClueDatabase, ClueDatabaseCollections, ClueDatabaseContextProps, ClueResponse, ClueUIPluginDefinition, EnrichedCardProps, EnrichedTypographyProps, Enrichment, EnrichmentProps, EnrichResponse, EnrichResponses, FailedRequest, FetcherDefinition, FetcherDefinitionsResponse, FetcherResult, RunningActionData, Selector, SelectorCollection, SelectorCollectionMethods, SelectorDocMethods, SelectorDocType, SelectorDocument, SnackbarEvents, StatusCollection, StatusCollectionMethods, StatusDocMethods, StatusDocType, StatusDocument, TypesDetectionResponse, TypesResponse, WithExtra };
|
|
43
|
+
export { ActionForm, AnnotationDetailPopover, AnnotationDetails, AnnotationEntry, AnnotationPreview, AssessmentIcon, buildDatabase, ClueComponentContext, ClueConfigContext, ClueDatabaseContext, ClueEnrichContext, CluePopupContext, ClueProvider, ClueReplicationError, ClueUIPlugin, ContextIcon, CountBadge, EnrichedCard, EnrichedChip, EnrichedTypography, Entry, Fetcher, FrequencyText, Group, GroupControl, OpinionIcon, SNACKBAR_EVENT_ID, SourcePicker, StatusChip, useClue, useClueActions, useClueActionsSelector, useClueConfig, useClueEnrichSelector, useClueFetcherSelector };
|
|
44
|
+
export type { ActionDefinition, ActionDefinitionsResponse, ActionResult, Annotation, BulkEnrichRequest, BulkEnrichResponses, ClueConfigContextProps, ClueDatabase, ClueDatabaseCollections, ClueDatabaseContextProps, ClueResponse, ClueUIPluginDefinition, DatabaseConfig, EnrichedCardProps, EnrichedTypographyProps, Enrichment, EnrichmentProps, EnrichResponse, EnrichResponses, FailedRequest, FetcherDefinition, FetcherDefinitionsResponse, FetcherResult, RunningActionData, Selector, SelectorCollection, SelectorCollectionMethods, SelectorDocMethods, SelectorDocType, SelectorDocument, SnackbarEvents, StatusCollection, StatusCollectionMethods, StatusDocMethods, StatusDocType, StatusDocument, SupportedType, TypesDetectionResponse, TypesDetectionV2Response, TypesResponse, WithExtra };
|
|
44
45
|
export type { ClueConfigContextProps as BorealisConfigContextProps, ClueDatabase as BorealisDatabase, ClueDatabaseCollections as BorealisDatabaseCollections, ClueDatabaseContextProps as BorealisDatabaseContextProps, ClueResponse as BorealisResponse };
|
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-BMIAp7pf.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-Dmk8kpl3.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-CIya3ByE.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,11 +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-CdqmWKik.js";
|
|
18
|
+
import { ClueReplicationError } from "./database/errors.js";
|
|
18
19
|
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
19
20
|
import { ClueConfigContext } from "./hooks/ClueConfigProvider.js";
|
|
20
21
|
import { ClueDatabaseContext } from "./hooks/ClueDatabaseContext.js";
|
|
21
|
-
import { C as C2 } from "./ClueEnrichContext-
|
|
22
|
+
import { C as C2 } from "./ClueEnrichContext-BqzlMW0c.js";
|
|
22
23
|
import { ClueProvider } from "./hooks/ClueProvider.js";
|
|
23
24
|
import { default as default14 } from "./hooks/useClue.js";
|
|
24
25
|
import { default as default15 } from "./hooks/useClueConfig.js";
|
|
@@ -40,6 +41,7 @@ export {
|
|
|
40
41
|
C2 as ClueEnrichContext,
|
|
41
42
|
C as CluePopupContext,
|
|
42
43
|
ClueProvider,
|
|
44
|
+
ClueReplicationError,
|
|
43
45
|
default19 as ClueUIPlugin,
|
|
44
46
|
default17 as ContextIcon,
|
|
45
47
|
default4 as CountBadge,
|