@cccsaurora/clue-ui 1.3.0-dev.361 → 1.3.0-dev.403

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.
Files changed (133) hide show
  1. package/{ActionForm-BGVd1hea.js → ActionForm-CqKcnDWC.js} +9 -9
  2. package/{AnnotationDetails-D4f9aw7S.js → AnnotationDetails-BlPd3T8k.js} +3 -3
  3. package/{AnnotationPreview-LLor6159.js → AnnotationPreview-Bl447SKT.js} +2 -2
  4. package/{ClueEnrichContext-DKZ2iqmV.js → ClueEnrichContext-B3YrTCaJ.js} +10 -8
  5. package/{_MapCache-DWYVyFVH.js → _MapCache-kuEY_iOH.js} +2 -4
  6. package/_Set-BrSMTlHn.js +6 -0
  7. package/{_Uint8Array-BgBspS6l.js → _Uint8Array-OPpgYQj7.js} +8 -13
  8. package/_arrayIncludes-BNqL-9ZP.js +31 -0
  9. package/_arrayPush-CBkQqaE_.js +10 -0
  10. package/{_baseAssignValue-Dltt6-s5.js → _baseAssignValue-CNUVPOBW.js} +2 -11
  11. package/{_baseClone-BUfES2sT.js → _baseClone-9FaRd1R2.js} +10 -6
  12. package/{_baseExtremum-kob8QXyt.js → _baseExtremum-wOGT4Dgw.js} +1 -1
  13. package/{_baseFlatten-D3wtzJ86.js → _baseFlatten-Co6QHDlG.js} +6 -6
  14. package/{_baseGet-DKnGz1D3.js → _baseGet-Cmp6FztG.js} +4 -3
  15. package/{isObjectLike-OAgjjZye.js → _baseGetTag-Hj-0NTYF.js} +0 -4
  16. package/{_baseIsEqual-CTfFNmaR.js → _baseIsEqual-1CpU47TZ.js} +8 -5
  17. package/{_baseIteratee-C004Z9XE.js → _baseIteratee-BN7Vbe5g.js} +6 -6
  18. package/_baseRest-BZ_hQ9PC.js +8 -0
  19. package/_baseUniq-BnvS3JHL.js +63 -0
  20. package/{_setToArray-CGeR30xg.js → _cacheHas-_aF2y2Xv.js} +2 -10
  21. package/{_createAggregator-BDMdCE6g.js → _createAggregator-BUZrP_is.js} +4 -4
  22. package/_defineProperty-DolZLKmv.js +12 -0
  23. package/{_getPrototype-uU2uJIbq.js → _getPrototype-Bb4gm-5m.js} +1 -1
  24. package/{_getTag-DuA1kj2A.js → _getTag-CML_cXiN.js} +10 -31
  25. package/{_isIterateeCall-CEvg7Bo6.js → _isIterateeCall-B1IFEqVv.js} +3 -3
  26. package/_setToArray-CqyqC8ib.js +10 -0
  27. package/{cloneDeep-C_PzHHQ0.js → cloneDeep-l3UkXG5M.js} +1 -1
  28. package/components/AnnotationDetailPopover.js +1 -1
  29. package/components/AnnotationDetails.js +4 -4
  30. package/components/AnnotationEntry.js +1 -1
  31. package/components/AnnotationPreview.js +2 -2
  32. package/components/EnrichedCard.js +2 -2
  33. package/components/EnrichedChip.js +2 -2
  34. package/components/EnrichedTypography.js +2 -2
  35. package/components/RetryFailedEnrichments.js +1 -1
  36. package/components/SourcePicker.js +1 -1
  37. package/components/actions/ActionForm.js +3 -3
  38. package/components/actions/ExecutePopover.js +1 -1
  39. package/components/actions/ResultModal.js +1 -1
  40. package/components/actions/form/schemaAdapter.js +2 -2
  41. package/components/actions/formats/index.d.ts +2 -0
  42. package/components/actions/formats/index.js +30 -14
  43. package/components/display/graph/elements/NodeCard.js +5 -5
  44. package/components/display/graph/index.js +2 -2
  45. package/components/display/graph/visualizations/Leaf.js +2 -1
  46. package/components/display/graph/visualizations/cloud/index.js +2 -2
  47. package/components/display/graph/visualizations/tree/index.js +5 -5
  48. package/components/display/json/index.js +2 -2
  49. package/components/enrichment/EnrichPopover.js +1 -1
  50. package/components/fetchers/Fetcher.js +21 -10
  51. package/components/fetchers/FetcherResultView.d.ts +7 -0
  52. package/components/fetchers/FetcherResultView.js +41 -0
  53. package/components/fetchers/PreviewModal.d.ts +6 -1
  54. package/components/fetchers/PreviewModal.js +5 -2
  55. package/components/group/Entry.js +1 -1
  56. package/components/group/GroupControl.js +1 -1
  57. package/components/stats/QueryStatus.js +1 -1
  58. package/{countBy-Bkq0mSO-.js → countBy-Bqcp3VCs.js} +2 -2
  59. package/database/index.js +2 -2
  60. package/database/replication.js +2 -2
  61. package/en/translation.json +1 -0
  62. package/fr/translation.json +1 -0
  63. package/{get-DlGeJ2uz.js → get-CdMThM8x.js} +1 -1
  64. package/{groupBy-CXx1vslF.js → groupBy-BVV07EGQ.js} +2 -2
  65. package/hooks/ClueActionContext.js +2 -2
  66. package/hooks/ClueDatabaseContext.js +1 -1
  67. package/hooks/ClueEnrichContext.js +8 -7
  68. package/hooks/ClueFetcherContext.js +1 -1
  69. package/hooks/ClueGroupContext.js +1 -1
  70. package/hooks/CluePopupContext.js +2 -2
  71. package/hooks/ClueProvider.d.ts +2 -1
  72. package/hooks/ClueProvider.js +5 -4
  73. package/hooks/ClueUIPluginContext.d.ts +21 -0
  74. package/hooks/ClueUIPluginContext.js +57 -0
  75. package/hooks/selectors.js +2 -2
  76. package/hooks/useActionResult.js +1 -1
  77. package/hooks/useAnnotations.js +2 -2
  78. package/hooks/useClue.js +1 -1
  79. package/hooks/useClueActions.js +1 -1
  80. package/hooks/useClueTypeConfig.js +54 -6
  81. package/hooks/useComparator.js +1 -1
  82. package/hooks/useErrors.js +1 -1
  83. package/hooks/useFetcherResult.js +1 -1
  84. package/icons/Action.js +3 -3
  85. package/icons/Assessment.js +5 -5
  86. package/icons/Context.js +2 -2
  87. package/icons/Opinion.js +4 -4
  88. package/{index-C28rIsy3.js → index-CAvu7vwt.js} +1 -1
  89. package/{index-IPF68v-l.js → index-DUEubgWN.js} +1 -1
  90. package/{index-VDwFWSqU.js → index-Dj1N4IQP.js} +3 -3
  91. package/{index-CmQM2DaO.js → index-DpJxD74E.js} +1 -1
  92. package/isArguments-CuYlEuhP.js +27 -0
  93. package/isArray-RJPfgWqI.js +4 -0
  94. package/isEmpty-BE656RUK.js +30 -0
  95. package/isObjectLike-CeENW9FN.js +6 -0
  96. package/{isSymbol-Xd2FsJyp.js → isSymbol-D_H4HPZQ.js} +2 -1
  97. package/main.d.ts +4 -2
  98. package/main.js +9 -7
  99. package/{maxBy-a49mqwW9.js → maxBy-BjjQmX5t.js} +2 -2
  100. package/package.json +16 -2
  101. package/plugins/ClueUIPlugin.d.ts +40 -0
  102. package/plugins/ClueUIPlugin.js +442 -0
  103. package/plugins/file/index.d.ts +15 -0
  104. package/plugins/file/index.js +22 -0
  105. package/plugins/graph/index.d.ts +17 -0
  106. package/plugins/graph/index.js +25 -0
  107. package/plugins/image/index.d.ts +12 -0
  108. package/plugins/image/index.js +26 -0
  109. package/plugins/json/index.d.ts +17 -0
  110. package/plugins/json/index.js +25 -0
  111. package/plugins/markdown/index.d.ts +17 -0
  112. package/plugins/markdown/index.js +25 -0
  113. package/plugins/registry.d.ts +13 -0
  114. package/plugins/registry.js +21 -0
  115. package/plugins/store.d.ts +40 -0
  116. package/plugins/store.js +6 -0
  117. package/plugins/test/index.d.ts +17 -0
  118. package/plugins/test/index.js +25 -0
  119. package/{replication-DvYQDhM_.js → replication--gLEZw8a.js} +1 -1
  120. package/{sessionStorage-Dbmo2Exe.js → sessionStorage-B68y-wnE.js} +2 -2
  121. package/{sortBy-Tf6pz1tg.js → sortBy-B8JVsLQY.js} +10 -11
  122. package/store-DMdRx9g0.js +2156 -0
  123. package/{sumBy-DZSVfXDE.js → sumBy-D-HCzM2i.js} +1 -1
  124. package/text/Frequency.js +1 -1
  125. package/{toFinite-Bc55msYj.js → toFinite-meZTg4Su.js} +1 -1
  126. package/{toNumber-DPxy1FBy.js → toNumber-B5JaA1vX.js} +1 -1
  127. package/uniq-CahZPAwp.js +7 -0
  128. package/utils/chain.js +12 -12
  129. package/utils/sessionStorage.js +1 -1
  130. package/utils/utils.js +3 -3
  131. package/{utils-BN7Z0YiP.js → utils-CEySTPtg.js} +7 -5
  132. package/_baseUniq-BqxNeJD9.js +0 -115
  133. package/useClueTypeConfig-CnMg5Ny8.js +0 -59
@@ -1,4 +1,4 @@
1
- import { b as baseIteratee } from "./_baseIteratee-C004Z9XE.js";
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-DZSVfXDE.js";
4
+ import { s as sumBy } from "../sumBy-D-HCzM2i.js";
5
5
  import { useMemo } from "react";
6
6
  const FrequencyText = ({
7
7
  annotations,
@@ -1,4 +1,4 @@
1
- import { t as toNumber } from "./toNumber-DPxy1FBy.js";
1
+ import { t as toNumber } from "./toNumber-B5JaA1vX.js";
2
2
  var INFINITY = 1 / 0, MAX_INTEGER = 17976931348623157e292;
3
3
  function toFinite(value) {
4
4
  if (!value) {
@@ -1,5 +1,5 @@
1
1
  import { i as isObject } from "./isObject-FTY-5JQX.js";
2
- import { i as isSymbol } from "./isSymbol-Xd2FsJyp.js";
2
+ import { i as isSymbol } from "./isSymbol-D_H4HPZQ.js";
3
3
  var reWhitespace = /\s/;
4
4
  function trimmedEndIndex(string) {
5
5
  var index = string.length;
@@ -0,0 +1,7 @@
1
+ import { b as baseUniq } from "./_baseUniq-BnvS3JHL.js";
2
+ function uniq(array) {
3
+ return array && array.length ? baseUniq(array) : [];
4
+ }
5
+ export {
6
+ uniq as u
7
+ };
package/utils/chain.js CHANGED
@@ -1,15 +1,15 @@
1
- import { c as countBy } from "../countBy-Bkq0mSO-.js";
2
- import { k as keys, a as arrayFilter } from "../_Uint8Array-BgBspS6l.js";
3
- import { b as baseEach, a as baseForOwn } from "../_createAggregator-BDMdCE6g.js";
4
- import { b as baseIteratee } from "../_baseIteratee-C004Z9XE.js";
5
- import { i as isArray } from "../_MapCache-DWYVyFVH.js";
6
- import { g as groupBy } from "../groupBy-CXx1vslF.js";
7
- import { a as arrayMap } from "../_baseGet-DKnGz1D3.js";
8
- import { b as baseMap, a as baseOrderBy, s as sortBy } from "../sortBy-Tf6pz1tg.js";
9
- import { b as baseAssignValue } from "../_baseAssignValue-Dltt6-s5.js";
10
- import { m as maxBy } from "../maxBy-a49mqwW9.js";
11
- import { g as getTag } from "../_getTag-DuA1kj2A.js";
12
- import { m as mapToArray } from "../_baseIsEqual-CTfFNmaR.js";
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]];
@@ -1,5 +1,5 @@
1
1
  import "./constants.js";
2
- import { b, g, a, r, s, c } from "../sessionStorage-Dbmo2Exe.js";
2
+ import { b, g, a, r, s, c } from "../sessionStorage-B68y-wnE.js";
3
3
  export {
4
4
  b as buildName,
5
5
  g as getAxiosCache,
package/utils/utils.js CHANGED
@@ -1,7 +1,7 @@
1
- import { c, d, f, r, s, t } from "../utils-BN7Z0YiP.js";
1
+ import { c, d, f, r, s, t } from "../utils-CEySTPtg.js";
2
2
  import "./time.js";
3
- import "../_MapCache-DWYVyFVH.js";
4
- import "../_baseUniq-BqxNeJD9.js";
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 "./_MapCache-DWYVyFVH.js";
6
- import { b as baseUniq, i as isEmpty } from "./_baseUniq-BqxNeJD9.js";
7
- import { b as baseIsEqual } from "./_baseIsEqual-CTfFNmaR.js";
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 { i as isObjectLike, b as baseGetTag } from "./isObjectLike-OAgjjZye.js";
10
- import { g as getPrototype } from "./_getPrototype-uU2uJIbq.js";
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
  }
@@ -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
- };