@cccsaurora/clue-ui 1.3.0-dev.361 → 1.3.0-dev.390
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-BGVd1hea.js → ActionForm-CqKcnDWC.js} +9 -9
- package/{AnnotationDetails-D4f9aw7S.js → AnnotationDetails-BlPd3T8k.js} +3 -3
- package/{AnnotationPreview-LLor6159.js → AnnotationPreview-Bl447SKT.js} +2 -2
- package/{ClueEnrichContext-DKZ2iqmV.js → ClueEnrichContext-B3YrTCaJ.js} +10 -8
- package/{_MapCache-DWYVyFVH.js → _MapCache-kuEY_iOH.js} +2 -4
- package/_Set-BrSMTlHn.js +6 -0
- package/{_Uint8Array-BgBspS6l.js → _Uint8Array-OPpgYQj7.js} +8 -13
- package/_arrayIncludes-BNqL-9ZP.js +31 -0
- package/_arrayPush-CBkQqaE_.js +10 -0
- package/{_baseAssignValue-Dltt6-s5.js → _baseAssignValue-CNUVPOBW.js} +2 -11
- package/{_baseClone-BUfES2sT.js → _baseClone-9FaRd1R2.js} +10 -6
- package/{_baseExtremum-kob8QXyt.js → _baseExtremum-wOGT4Dgw.js} +1 -1
- package/{_baseFlatten-D3wtzJ86.js → _baseFlatten-Co6QHDlG.js} +6 -6
- package/{_baseGet-DKnGz1D3.js → _baseGet-Cmp6FztG.js} +4 -3
- package/{isObjectLike-OAgjjZye.js → _baseGetTag-Hj-0NTYF.js} +0 -4
- package/{_baseIsEqual-CTfFNmaR.js → _baseIsEqual-1CpU47TZ.js} +8 -5
- package/{_baseIteratee-C004Z9XE.js → _baseIteratee-BN7Vbe5g.js} +6 -6
- package/_baseRest-BZ_hQ9PC.js +8 -0
- package/_baseUniq-BnvS3JHL.js +63 -0
- package/{_setToArray-CGeR30xg.js → _cacheHas-_aF2y2Xv.js} +2 -10
- package/{_createAggregator-BDMdCE6g.js → _createAggregator-BUZrP_is.js} +4 -4
- package/_defineProperty-DolZLKmv.js +12 -0
- package/{_getPrototype-uU2uJIbq.js → _getPrototype-Bb4gm-5m.js} +1 -1
- package/{_getTag-DuA1kj2A.js → _getTag-CML_cXiN.js} +10 -31
- package/{_isIterateeCall-CEvg7Bo6.js → _isIterateeCall-B1IFEqVv.js} +3 -3
- package/_setToArray-CqyqC8ib.js +10 -0
- package/{cloneDeep-C_PzHHQ0.js → cloneDeep-l3UkXG5M.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +4 -4
- package/components/AnnotationEntry.js +1 -1
- package/components/AnnotationPreview.js +2 -2
- package/components/EnrichedCard.js +2 -2
- 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 +3 -3
- package/components/actions/ExecutePopover.js +1 -1
- package/components/actions/ResultModal.js +1 -1
- package/components/actions/form/schemaAdapter.js +2 -2
- package/components/actions/formats/index.d.ts +2 -0
- package/components/actions/formats/index.js +30 -14
- package/components/display/graph/elements/NodeCard.js +5 -5
- package/components/display/graph/index.js +2 -2
- package/components/display/graph/visualizations/Leaf.js +2 -1
- package/components/display/graph/visualizations/cloud/index.js +2 -2
- package/components/display/graph/visualizations/tree/index.js +5 -5
- package/components/display/json/index.js +2 -2
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +21 -10
- package/components/fetchers/FetcherResultView.d.ts +7 -0
- package/components/fetchers/FetcherResultView.js +41 -0
- package/components/fetchers/PreviewModal.d.ts +6 -1
- package/components/fetchers/PreviewModal.js +5 -2
- package/components/group/Entry.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/{countBy-Bkq0mSO-.js → countBy-Bqcp3VCs.js} +2 -2
- package/database/index.js +2 -2
- package/database/replication.js +2 -2
- package/en/translation.json +1 -0
- package/fr/translation.json +1 -0
- package/{get-DlGeJ2uz.js → get-CdMThM8x.js} +1 -1
- package/{groupBy-CXx1vslF.js → groupBy-BVV07EGQ.js} +2 -2
- package/hooks/ClueActionContext.js +2 -2
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +8 -7
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.d.ts +2 -1
- package/hooks/ClueProvider.js +5 -4
- package/hooks/ClueUIPluginContext.d.ts +21 -0
- package/hooks/ClueUIPluginContext.js +57 -0
- 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 +54 -6
- package/hooks/useComparator.js +1 -1
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +3 -3
- package/icons/Assessment.js +5 -5
- package/icons/Context.js +2 -2
- package/icons/Opinion.js +4 -4
- package/{index-C28rIsy3.js → index-CAvu7vwt.js} +1 -1
- package/{index-IPF68v-l.js → index-DUEubgWN.js} +1 -1
- package/{index-VDwFWSqU.js → index-Dj1N4IQP.js} +3 -3
- package/{index-CmQM2DaO.js → index-DpJxD74E.js} +1 -1
- package/isArguments-CuYlEuhP.js +27 -0
- package/isArray-RJPfgWqI.js +4 -0
- package/isEmpty-BE656RUK.js +30 -0
- package/isObjectLike-CeENW9FN.js +6 -0
- package/{isSymbol-Xd2FsJyp.js → isSymbol-D_H4HPZQ.js} +2 -1
- package/main.d.ts +4 -2
- package/main.js +9 -7
- package/{maxBy-a49mqwW9.js → maxBy-BjjQmX5t.js} +2 -2
- package/package.json +16 -2
- package/plugins/ClueUIPlugin.d.ts +40 -0
- package/plugins/ClueUIPlugin.js +442 -0
- package/plugins/file/index.d.ts +15 -0
- package/plugins/file/index.js +22 -0
- package/plugins/graph/index.d.ts +17 -0
- package/plugins/graph/index.js +25 -0
- package/plugins/image/index.d.ts +12 -0
- package/plugins/image/index.js +26 -0
- package/plugins/json/index.d.ts +17 -0
- package/plugins/json/index.js +25 -0
- package/plugins/markdown/index.d.ts +17 -0
- package/plugins/markdown/index.js +25 -0
- package/plugins/registry.d.ts +13 -0
- package/plugins/registry.js +21 -0
- package/plugins/store.d.ts +40 -0
- package/plugins/store.js +6 -0
- package/plugins/test/index.d.ts +17 -0
- package/plugins/test/index.js +25 -0
- package/{replication-DvYQDhM_.js → replication--gLEZw8a.js} +1 -1
- package/{sessionStorage-Dbmo2Exe.js → sessionStorage-B68y-wnE.js} +2 -2
- package/{sortBy-Tf6pz1tg.js → sortBy-B8JVsLQY.js} +10 -11
- package/store-DMdRx9g0.js +2156 -0
- package/{sumBy-DZSVfXDE.js → sumBy-D-HCzM2i.js} +1 -1
- package/text/Frequency.js +1 -1
- package/{toFinite-Bc55msYj.js → toFinite-meZTg4Su.js} +1 -1
- package/{toNumber-DPxy1FBy.js → toNumber-B5JaA1vX.js} +1 -1
- package/uniq-CahZPAwp.js +7 -0
- package/utils/chain.js +12 -12
- package/utils/sessionStorage.js +1 -1
- package/utils/utils.js +3 -3
- package/{utils-BN7Z0YiP.js → utils-CEySTPtg.js} +7 -5
- package/_baseUniq-BqxNeJD9.js +0 -115
- package/useClueTypeConfig-CnMg5Ny8.js +0 -59
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as baseIteratee } from "./_baseIteratee-
|
|
1
|
+
import { b as baseIteratee } from "./_baseIteratee-BN7Vbe5g.js";
|
|
2
2
|
import { b as baseSum } from "./_baseSum-D0WC1dN0.js";
|
|
3
3
|
function sumBy(array, iteratee) {
|
|
4
4
|
return array && array.length ? baseSum(array, baseIteratee(iteratee)) : 0;
|
package/text/Frequency.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
3
|
import { i as isNil } from "../isNil-CIubwp4T.js";
|
|
4
|
-
import { s as sumBy } from "../sumBy-
|
|
4
|
+
import { s as sumBy } from "../sumBy-D-HCzM2i.js";
|
|
5
5
|
import { useMemo } from "react";
|
|
6
6
|
const FrequencyText = ({
|
|
7
7
|
annotations,
|
package/uniq-CahZPAwp.js
ADDED
package/utils/chain.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { c as countBy } from "../countBy-
|
|
2
|
-
import { k as keys, a as arrayFilter } from "../_Uint8Array-
|
|
3
|
-
import { b as baseEach, a as baseForOwn } from "../_createAggregator-
|
|
4
|
-
import { b as baseIteratee } from "../_baseIteratee-
|
|
5
|
-
import { i as isArray } from "../
|
|
6
|
-
import { g as groupBy } from "../groupBy-
|
|
7
|
-
import { a as arrayMap } from "../_baseGet-
|
|
8
|
-
import { b as baseMap, a as baseOrderBy, s as sortBy } from "../sortBy-
|
|
9
|
-
import { b as baseAssignValue } from "../_baseAssignValue-
|
|
10
|
-
import { m as maxBy } from "../maxBy-
|
|
11
|
-
import { g as getTag } from "../_getTag-
|
|
12
|
-
import { m as mapToArray } from "../_baseIsEqual-
|
|
1
|
+
import { c as countBy } from "../countBy-Bqcp3VCs.js";
|
|
2
|
+
import { k as keys, a as arrayFilter } from "../_Uint8Array-OPpgYQj7.js";
|
|
3
|
+
import { b as baseEach, a as baseForOwn } from "../_createAggregator-BUZrP_is.js";
|
|
4
|
+
import { b as baseIteratee } from "../_baseIteratee-BN7Vbe5g.js";
|
|
5
|
+
import { i as isArray } from "../isArray-RJPfgWqI.js";
|
|
6
|
+
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
7
|
+
import { a as arrayMap } from "../_baseGet-Cmp6FztG.js";
|
|
8
|
+
import { b as baseMap, a as baseOrderBy, s as sortBy } from "../sortBy-B8JVsLQY.js";
|
|
9
|
+
import { b as baseAssignValue } from "../_baseAssignValue-CNUVPOBW.js";
|
|
10
|
+
import { m as maxBy } from "../maxBy-BjjQmX5t.js";
|
|
11
|
+
import { g as getTag } from "../_getTag-CML_cXiN.js";
|
|
12
|
+
import { m as mapToArray } from "../_baseIsEqual-1CpU47TZ.js";
|
|
13
13
|
function baseToPairs(object, props) {
|
|
14
14
|
return arrayMap(props, function(key) {
|
|
15
15
|
return [key, object[key]];
|
package/utils/sessionStorage.js
CHANGED
package/utils/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c, d, f, r, s, t } from "../utils-
|
|
1
|
+
import { c, d, f, r, s, t } from "../utils-CEySTPtg.js";
|
|
2
2
|
import "./time.js";
|
|
3
|
-
import "../
|
|
4
|
-
import "../
|
|
3
|
+
import "../isArray-RJPfgWqI.js";
|
|
4
|
+
import "../isEmpty-BE656RUK.js";
|
|
5
5
|
import "../isNil-CIubwp4T.js";
|
|
6
6
|
export {
|
|
7
7
|
c as computeStatusId,
|
|
@@ -2,12 +2,14 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import { dayjs } from "./utils/time.js";
|
|
5
|
-
import { i as isArray } from "./
|
|
6
|
-
import {
|
|
7
|
-
import { b as baseIsEqual } from "./_baseIsEqual-
|
|
5
|
+
import { i as isArray } from "./isArray-RJPfgWqI.js";
|
|
6
|
+
import { i as isEmpty } from "./isEmpty-BE656RUK.js";
|
|
7
|
+
import { b as baseIsEqual } from "./_baseIsEqual-1CpU47TZ.js";
|
|
8
8
|
import { i as isNil } from "./isNil-CIubwp4T.js";
|
|
9
|
-
import {
|
|
10
|
-
import { g as getPrototype } from "./_getPrototype-
|
|
9
|
+
import { b as baseGetTag } from "./_baseGetTag-Hj-0NTYF.js";
|
|
10
|
+
import { g as getPrototype } from "./_getPrototype-Bb4gm-5m.js";
|
|
11
|
+
import { i as isObjectLike } from "./isObjectLike-CeENW9FN.js";
|
|
12
|
+
import { b as baseUniq } from "./_baseUniq-BnvS3JHL.js";
|
|
11
13
|
function isBuffer(obj) {
|
|
12
14
|
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
13
15
|
}
|
package/_baseUniq-BqxNeJD9.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { c as isArrayLike, d as isBuffer, h as isTypedArray, i as isArguments, g as getTag, f as isPrototype, b as baseKeys, S as Set } from "./_getTag-DuA1kj2A.js";
|
|
2
|
-
import { i as isArray } from "./_MapCache-DWYVyFVH.js";
|
|
3
|
-
import { s as setToArray, S as SetCache, c as cacheHas } from "./_setToArray-CGeR30xg.js";
|
|
4
|
-
function noop() {
|
|
5
|
-
}
|
|
6
|
-
function baseFindIndex(array, predicate, fromIndex, fromRight) {
|
|
7
|
-
var length = array.length, index = fromIndex + -1;
|
|
8
|
-
while (++index < length) {
|
|
9
|
-
if (predicate(array[index], index, array)) {
|
|
10
|
-
return index;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return -1;
|
|
14
|
-
}
|
|
15
|
-
function baseIsNaN(value) {
|
|
16
|
-
return value !== value;
|
|
17
|
-
}
|
|
18
|
-
function strictIndexOf(array, value, fromIndex) {
|
|
19
|
-
var index = fromIndex - 1, length = array.length;
|
|
20
|
-
while (++index < length) {
|
|
21
|
-
if (array[index] === value) {
|
|
22
|
-
return index;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return -1;
|
|
26
|
-
}
|
|
27
|
-
function baseIndexOf(array, value, fromIndex) {
|
|
28
|
-
return value === value ? strictIndexOf(array, value, fromIndex) : baseFindIndex(array, baseIsNaN, fromIndex);
|
|
29
|
-
}
|
|
30
|
-
function arrayIncludes(array, value) {
|
|
31
|
-
var length = array == null ? 0 : array.length;
|
|
32
|
-
return !!length && baseIndexOf(array, value, 0) > -1;
|
|
33
|
-
}
|
|
34
|
-
function arrayIncludesWith(array, value, comparator) {
|
|
35
|
-
var index = -1, length = array == null ? 0 : array.length;
|
|
36
|
-
while (++index < length) {
|
|
37
|
-
if (comparator(value, array[index])) {
|
|
38
|
-
return true;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return false;
|
|
42
|
-
}
|
|
43
|
-
var mapTag = "[object Map]", setTag = "[object Set]";
|
|
44
|
-
var objectProto = Object.prototype;
|
|
45
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
46
|
-
function isEmpty(value) {
|
|
47
|
-
if (value == null) {
|
|
48
|
-
return true;
|
|
49
|
-
}
|
|
50
|
-
if (isArrayLike(value) && (isArray(value) || typeof value == "string" || typeof value.splice == "function" || isBuffer(value) || isTypedArray(value) || isArguments(value))) {
|
|
51
|
-
return !value.length;
|
|
52
|
-
}
|
|
53
|
-
var tag = getTag(value);
|
|
54
|
-
if (tag == mapTag || tag == setTag) {
|
|
55
|
-
return !value.size;
|
|
56
|
-
}
|
|
57
|
-
if (isPrototype(value)) {
|
|
58
|
-
return !baseKeys(value).length;
|
|
59
|
-
}
|
|
60
|
-
for (var key in value) {
|
|
61
|
-
if (hasOwnProperty.call(value, key)) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return true;
|
|
66
|
-
}
|
|
67
|
-
var INFINITY = 1 / 0;
|
|
68
|
-
var createSet = !(Set && 1 / setToArray(new Set([, -0]))[1] == INFINITY) ? noop : function(values) {
|
|
69
|
-
return new Set(values);
|
|
70
|
-
};
|
|
71
|
-
var LARGE_ARRAY_SIZE = 200;
|
|
72
|
-
function baseUniq(array, iteratee, comparator) {
|
|
73
|
-
var index = -1, includes = arrayIncludes, length = array.length, isCommon = true, result = [], seen = result;
|
|
74
|
-
if (comparator) {
|
|
75
|
-
isCommon = false;
|
|
76
|
-
includes = arrayIncludesWith;
|
|
77
|
-
} else if (length >= LARGE_ARRAY_SIZE) {
|
|
78
|
-
var set = iteratee ? null : createSet(array);
|
|
79
|
-
if (set) {
|
|
80
|
-
return setToArray(set);
|
|
81
|
-
}
|
|
82
|
-
isCommon = false;
|
|
83
|
-
includes = cacheHas;
|
|
84
|
-
seen = new SetCache();
|
|
85
|
-
} else {
|
|
86
|
-
seen = iteratee ? [] : result;
|
|
87
|
-
}
|
|
88
|
-
outer:
|
|
89
|
-
while (++index < length) {
|
|
90
|
-
var value = array[index], computed = iteratee ? iteratee(value) : value;
|
|
91
|
-
value = comparator || value !== 0 ? value : 0;
|
|
92
|
-
if (isCommon && computed === computed) {
|
|
93
|
-
var seenIndex = seen.length;
|
|
94
|
-
while (seenIndex--) {
|
|
95
|
-
if (seen[seenIndex] === computed) {
|
|
96
|
-
continue outer;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (iteratee) {
|
|
100
|
-
seen.push(computed);
|
|
101
|
-
}
|
|
102
|
-
result.push(value);
|
|
103
|
-
} else if (!includes(seen, computed, comparator)) {
|
|
104
|
-
if (seen !== result) {
|
|
105
|
-
seen.push(computed);
|
|
106
|
-
}
|
|
107
|
-
result.push(value);
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return result;
|
|
111
|
-
}
|
|
112
|
-
export {
|
|
113
|
-
baseUniq as b,
|
|
114
|
-
isEmpty as i
|
|
115
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { g as get, b as get$1 } from "./index-CmQM2DaO.js";
|
|
2
|
-
import { clueDebugLogger } from "./utils/loggerUtil.js";
|
|
3
|
-
import { b as baseUniq, i as isEmpty } from "./_baseUniq-BqxNeJD9.js";
|
|
4
|
-
import { useState, useEffect } from "react";
|
|
5
|
-
function uniq(array) {
|
|
6
|
-
return array && array.length ? baseUniq(array) : [];
|
|
7
|
-
}
|
|
8
|
-
const useClueTypeConfig = (ready, baseURL, debugLogging, getToken, onNetworkCall) => {
|
|
9
|
-
const [availableSources, setAvailableSources] = useState([]);
|
|
10
|
-
const [typesDetection, setTypesDetection] = useState({});
|
|
11
|
-
const [supportedTypes, setSupportedTypes] = useState([]);
|
|
12
|
-
useEffect(() => {
|
|
13
|
-
if (!ready) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
if ((availableSources == null ? void 0 : availableSources.length) > 0 && !isEmpty(typesDetection)) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
const headers = {};
|
|
20
|
-
const token = getToken == null ? void 0 : getToken();
|
|
21
|
-
if (token) {
|
|
22
|
-
headers.Authorization = `Bearer ${token}`;
|
|
23
|
-
}
|
|
24
|
-
(async () => {
|
|
25
|
-
let requestConfig = { baseURL, headers };
|
|
26
|
-
if (onNetworkCall) {
|
|
27
|
-
requestConfig = onNetworkCall(requestConfig);
|
|
28
|
-
}
|
|
29
|
-
clueDebugLogger("Executing types and type detection lookup", debugLogging);
|
|
30
|
-
const [_typesPerSource, _typesDetections] = await Promise.all([
|
|
31
|
-
get(requestConfig),
|
|
32
|
-
get$1(requestConfig)
|
|
33
|
-
]);
|
|
34
|
-
if (_typesPerSource) {
|
|
35
|
-
setAvailableSources(Object.keys(_typesPerSource));
|
|
36
|
-
setSupportedTypes(uniq(Object.values(_typesPerSource).flat()));
|
|
37
|
-
}
|
|
38
|
-
if (_typesDetections) {
|
|
39
|
-
setTypesDetection(
|
|
40
|
-
Object.entries(_typesDetections).reduce((acc, [key, regex]) => {
|
|
41
|
-
if (regex !== null) {
|
|
42
|
-
acc[key] = new RegExp(regex);
|
|
43
|
-
}
|
|
44
|
-
return acc;
|
|
45
|
-
}, {})
|
|
46
|
-
);
|
|
47
|
-
}
|
|
48
|
-
})();
|
|
49
|
-
}, [baseURL, ready]);
|
|
50
|
-
return {
|
|
51
|
-
availableSources,
|
|
52
|
-
typesDetection,
|
|
53
|
-
supportedTypes
|
|
54
|
-
};
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
useClueTypeConfig as a,
|
|
58
|
-
uniq as u
|
|
59
|
-
};
|