@cccsaurora/clue-ui 1.0.4 → 1.1.0-dev.100

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 (201) hide show
  1. package/ActionForm-ByeOzpc4.js +555 -0
  2. package/AnnotationDetails-DknbKDyl.js +175 -0
  3. package/AnnotationPreview-CQwKs8se.js +188 -0
  4. package/ClueEnrichContext-6NJfXpUB.js +536 -0
  5. package/FlexOne-BSYAhhtG.js +9 -0
  6. package/_Map-kgDsDYxq.js +64 -0
  7. package/_MapCache-DabaaWfq.js +161 -0
  8. package/_Uint8Array-BlVVH1tp.js +129 -0
  9. package/_baseAssignValue-CNbcU6Nb.js +25 -0
  10. package/_baseClone-D3a8Pa4T.js +284 -0
  11. package/_baseExtremum-B1o1zHjR.js +33 -0
  12. package/_baseFlatten-D4huXoEI.js +92 -0
  13. package/_baseGet-BSK_nnoz.js +109 -0
  14. package/_baseIsEqual-B5xLoweL.js +238 -0
  15. package/_baseIteratee-p6Nj07-n.js +126 -0
  16. package/_baseSlice-GAv_YFTT.js +20 -0
  17. package/_baseSum-D0WC1dN0.js +13 -0
  18. package/_baseUniq-CpupKWcL.js +89 -0
  19. package/_commonjsHelpers-DWwsNxpa.js +8 -0
  20. package/_createAggregator-BpVy5xMi.js +63 -0
  21. package/_getPrototype-D1LAdQKO.js +5 -0
  22. package/_getTag-D3ToyefI.js +126 -0
  23. package/api/lookup/index.d.ts +1 -1
  24. package/api/lookup/types.d.ts +2 -2
  25. package/api/lookup/types_detection.d.ts +2 -2
  26. package/cloneDeep-CjP5k9zW.js +8 -0
  27. package/components/AnnotationBody.js +49 -34
  28. package/components/AnnotationDetailPopover.js +36 -30
  29. package/components/AnnotationDetails.js +6 -6
  30. package/components/AnnotationEntry.js +50 -47
  31. package/components/AnnotationPreview.js +5 -5
  32. package/components/ClassificationChip.d.ts +2 -1
  33. package/components/ClassificationChip.js +44 -23
  34. package/components/CountBadge.js +31 -26
  35. package/components/EnrichedCard.js +110 -92
  36. package/components/EnrichedChip.js +130 -111
  37. package/components/EnrichedTypography.d.ts +1 -1
  38. package/components/EnrichedTypography.js +133 -112
  39. package/components/ErrorBoundary.js +28 -24
  40. package/components/RetryFailedEnrichments.js +10 -9
  41. package/components/SourcePicker.js +57 -49
  42. package/components/actions/ActionForm.js +4 -4
  43. package/components/actions/ExecutePopover.js +64 -50
  44. package/components/actions/ResultModal.js +12 -41
  45. package/components/actions/form/schemaAdapter.js +40 -20
  46. package/components/display/graph/ExpandMoreButton.js +10 -10
  47. package/components/display/graph/elements/NodeCard.js +114 -76
  48. package/components/display/graph/elements/NodeTag.js +15 -13
  49. package/components/display/graph/index.js +267 -210
  50. package/components/display/graph/visualizations/Leaf.js +88 -69
  51. package/components/display/graph/visualizations/cloud/index.js +98 -81
  52. package/components/display/graph/visualizations/icons/BaseIcon.js +26 -21
  53. package/components/display/graph/visualizations/icons/BugIcon.js +12 -12
  54. package/components/display/graph/visualizations/icons/HostIcon.js +12 -12
  55. package/components/display/graph/visualizations/icons/NetworkIcon.js +12 -12
  56. package/components/display/graph/visualizations/icons/ProcessIcon.js +12 -12
  57. package/components/display/graph/visualizations/icons/TargetIcon.js +13 -13
  58. package/components/display/graph/visualizations/icons/index.js +14 -13
  59. package/components/display/graph/visualizations/panels/NodePanel.js +10 -8
  60. package/components/display/graph/visualizations/tree/BundleLine.js +108 -81
  61. package/components/display/graph/visualizations/tree/Triangle.js +13 -13
  62. package/components/display/graph/visualizations/tree/index.js +407 -305
  63. package/components/display/icons/Iconified.js +27 -12
  64. package/components/display/json/index.js +4 -4
  65. package/components/display/markdown/index.js +8696 -5668
  66. package/components/enrichment/EnrichPopover.js +55 -47
  67. package/components/fetchers/Fetcher.js +123 -95
  68. package/components/fetchers/PreviewModal.js +20 -17
  69. package/components/fetchers/StatusChip.js +21 -18
  70. package/components/group/Entry.js +13 -11
  71. package/components/group/Group.js +13 -10
  72. package/components/group/GroupControl.js +78 -66
  73. package/components/stats/QueryStatus.js +44 -31
  74. package/countBy-C69WslUA.js +14 -0
  75. package/data/event.js +6 -4
  76. package/database/index.js +2 -2
  77. package/debounce-bV0h5FC5.js +92 -0
  78. package/en/translation.json +39 -59
  79. package/fr/translation.json +37 -56
  80. package/get-D3C3lEU3.js +8 -0
  81. package/groupBy-DC2oOuBN.js +14 -0
  82. package/hooks/ClueActionContext.d.ts +26 -0
  83. package/hooks/ClueActionContext.js +8 -7
  84. package/hooks/ClueComponentContext.js +29 -23
  85. package/hooks/ClueConfigProvider.js +14 -12
  86. package/hooks/ClueDatabaseContext.js +19 -13
  87. package/hooks/ClueEnrichContext.js +8 -8
  88. package/hooks/ClueEnrichProps.d.ts +3 -1
  89. package/hooks/ClueFetcherContext.js +74 -46
  90. package/hooks/ClueGroupContext.js +17 -14
  91. package/hooks/CluePopupContext.js +5 -5
  92. package/hooks/ClueProvider.js +12 -10
  93. package/hooks/selectors.d.ts +4 -5
  94. package/hooks/selectors.js +21 -11
  95. package/hooks/useActionResult.d.ts +14 -0
  96. package/hooks/useActionResult.js +5 -0
  97. package/hooks/useAnnotations.js +45 -29
  98. package/hooks/useClue.js +6 -4
  99. package/hooks/useClueActions.d.ts +1 -1
  100. package/hooks/useClueActions.js +3 -3
  101. package/hooks/useClueConfig.d.ts +2 -1
  102. package/hooks/useClueConfig.js +6 -6
  103. package/hooks/useClueTypeConfig.js +3 -3
  104. package/hooks/useComparator.js +722 -435
  105. package/hooks/useErrors.js +22 -18
  106. package/hooks/useMyHighlights.js +66 -36
  107. package/hooks/useMyLocalStorage.d.ts +4 -3
  108. package/hooks/useMyLocalStorage.js +66 -46
  109. package/iconify-CXMreGTg.js +1782 -0
  110. package/icons/Action.js +66 -49
  111. package/icons/Assessment.js +84 -68
  112. package/icons/Context.js +78 -61
  113. package/icons/Opinion.js +77 -65
  114. package/icons/iconMap.js +2 -2
  115. package/identity-CPGTqrE4.js +6 -0
  116. package/index-BDVjGvMI.js +696 -0
  117. package/index-BbPn6-Mw.js +15750 -0
  118. package/index-Bi21Wb23.js +465 -0
  119. package/index-C3lkTD69.js +1172 -0
  120. package/index-CC12Ux-9.js +17654 -0
  121. package/isEmpty-BQkZubqU.js +29 -0
  122. package/isNil-CIubwp4T.js +6 -0
  123. package/isObject-FTY-5JQX.js +7 -0
  124. package/isObjectLike-OAgjjZye.js +48 -0
  125. package/isSymbol-Xd2FsJyp.js +8 -0
  126. package/last-CUCl67Im.js +7 -0
  127. package/main.js +62 -62
  128. package/package.json +3 -3
  129. package/sortBy-B-UKp4GT.js +100 -0
  130. package/sumBy-MYkDPHZL.js +8 -0
  131. package/text/Frequency.js +42 -23
  132. package/toFinite-Bc55msYj.js +16 -0
  133. package/toNumber-DPxy1FBy.js +39 -0
  134. package/types/RunningActionData.d.ts +4 -3
  135. package/types/action.d.ts +10 -1
  136. package/useClueTypeConfig-XvGvIw2S.js +3201 -0
  137. package/utils/chain.js +91 -64
  138. package/utils/classificationParser.js +519 -256
  139. package/utils/constants.js +35 -10
  140. package/utils/graph.js +72 -45
  141. package/utils/hashUtil.js +7 -7
  142. package/utils/line.js +131 -81
  143. package/utils/loggerUtil.d.ts +1 -1
  144. package/utils/loggerUtil.js +6 -4
  145. package/utils/sessionStorage.js +41 -29
  146. package/utils/time.d.ts +3 -0
  147. package/utils/time.js +536 -0
  148. package/utils/utils.js +10 -9
  149. package/utils/window.js +21 -10
  150. package/utils-7OtvGnmf.js +200 -0
  151. package/ActionForm-Sw7D-KOE.js +0 -340
  152. package/AnnotationDetails-BoX61_IF.js +0 -160
  153. package/AnnotationPreview-dYinoSA9.js +0 -140
  154. package/ClueEnrichContext-CvCIPOMC.js +0 -412
  155. package/FlexOne-BXWFOd1T.js +0 -6
  156. package/_Map-DXNg_Z-q.js +0 -54
  157. package/_MapCache-Cu25RRDU.js +0 -129
  158. package/_Uint8Array-DlJCtTvG.js +0 -102
  159. package/_baseAssignValue-CUmzp727.js +0 -20
  160. package/_baseClone-BlMmRXeX.js +0 -208
  161. package/_baseExtremum-P_0akmCi.js +0 -27
  162. package/_baseFlatten-CN7vDNEQ.js +0 -72
  163. package/_baseGet-Dgf6_xCm.js +0 -80
  164. package/_baseIsEqual-Cpjtfb3Q.js +0 -173
  165. package/_baseIteratee-CP1bocOX.js +0 -95
  166. package/_baseSlice-M5RKzt1A.js +0 -10
  167. package/_baseSum-wEbgNeUs.js +0 -10
  168. package/_baseUniq-tMFmk80M.js +0 -61
  169. package/_commonjsHelpers-C6fGbg64.js +0 -6
  170. package/_createAggregator-B4Cav8ZM.js +0 -53
  171. package/_getPrototype-CHAFQYL_.js +0 -5
  172. package/_getTag-BV_UoLYG.js +0 -90
  173. package/cloneDeep-BPVpFBzJ.js +0 -8
  174. package/components/display/markdown/DynamicTabs.d.ts +0 -8
  175. package/components/display/markdown/DynamicTabs.js +0 -21
  176. package/components/display/markdown/markdownPlugins/tabs.d.ts +0 -3
  177. package/components/display/markdown/markdownPlugins/tabs.js +0 -4
  178. package/countBy-DOutsa_w.js +0 -8
  179. package/debounce-DryYcbJ4.js +0 -56
  180. package/get-Bow1vKwx.js +0 -8
  181. package/groupBy-BheQYl6f.js +0 -8
  182. package/iconify-BBckr5AQ.js +0 -1263
  183. package/identity-ByMq8VxU.js +0 -6
  184. package/index-CnaCBNrd.js +0 -358
  185. package/index-E7g8cRyW.js +0 -568
  186. package/index-V7wwd05F.js +0 -975
  187. package/index-p5_wX7q1.js +0 -11729
  188. package/index-pQg5VUAZ.js +0 -12734
  189. package/isEmpty-g47Qir2A.js +0 -21
  190. package/isNil-CjWwlQS3.js +0 -6
  191. package/isObject-B53jY8Qg.js +0 -7
  192. package/isObjectLike-BatpeCIi.js +0 -29
  193. package/isSymbol-C3_SC0Qp.js +0 -8
  194. package/last-7CdUxN0r.js +0 -7
  195. package/sortBy-ITdmD17L.js +0 -79
  196. package/sumBy-DxJUU2E8.js +0 -8
  197. package/tabs-CgADNA57.js +0 -195
  198. package/toFinite-BMy6GObD.js +0 -14
  199. package/toNumber-YVhnnJv4.js +0 -31
  200. package/useClueTypeConfig-CneP98N_.js +0 -2260
  201. package/utils-CD0rFIFU.js +0 -2704
@@ -1,12 +1,14 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { C as i } from "../ActionForm-Sw7D-KOE.js";
3
- import { ClueComponentProvider as m } from "./ClueComponentContext.js";
4
- import { ClueConfigProvider as n } from "./ClueConfigProvider.js";
5
- import { ClueDatabaseProvider as t } from "./ClueDatabaseContext.js";
6
- import { a as d } from "../ClueEnrichContext-CvCIPOMC.js";
7
- import { ClueFetcherProvider as l } from "./ClueFetcherContext.js";
8
- import { a as c } from "../AnnotationPreview-dYinoSA9.js";
9
- const p = ({ children: o, ...e }) => /* @__PURE__ */ r(m, { ...e, children: /* @__PURE__ */ r(n, { config: e.config, children: /* @__PURE__ */ r(t, { ...e, children: /* @__PURE__ */ r(d, { ...e, children: /* @__PURE__ */ r(l, { ...e, children: /* @__PURE__ */ r(i, { ...e, children: /* @__PURE__ */ r(c, { children: o }) }) }) }) }) }) });
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { C as ClueActionProvider } from "../ActionForm-ByeOzpc4.js";
3
+ import { ClueComponentProvider } from "./ClueComponentContext.js";
4
+ import { ClueConfigProvider } from "./ClueConfigProvider.js";
5
+ import { ClueDatabaseProvider } from "./ClueDatabaseContext.js";
6
+ import { a as ClueEnrichProvider } from "../ClueEnrichContext-6NJfXpUB.js";
7
+ import { ClueFetcherProvider } from "./ClueFetcherContext.js";
8
+ import { a as CluePopupProvider } from "../AnnotationPreview-CQwKs8se.js";
9
+ const ClueProvider = ({ children, ...props }) => {
10
+ return /* @__PURE__ */ jsx(ClueComponentProvider, { ...props, children: /* @__PURE__ */ jsx(ClueConfigProvider, { config: props.config, children: /* @__PURE__ */ jsx(ClueDatabaseProvider, { ...props, children: /* @__PURE__ */ jsx(ClueEnrichProvider, { ...props, children: /* @__PURE__ */ jsx(ClueFetcherProvider, { ...props, children: /* @__PURE__ */ jsx(ClueActionProvider, { ...props, children: /* @__PURE__ */ jsx(CluePopupProvider, { children }) }) }) }) }) }) });
11
+ };
10
12
  export {
11
- p as ClueProvider
13
+ ClueProvider
12
14
  };
@@ -1,10 +1,9 @@
1
- import { ClueActionContextType } from './ClueActionContext';
2
- import { ClueComponentContextType } from './ClueComponentContext';
3
- import { ClueEnrichContextType } from './ClueEnrichContextType';
4
- import { ClueFetcherContextType } from './ClueFetcherContext';
1
+ import { ClueActionContextType } from "../hooks/ClueActionContext";
2
+ import { ClueComponentContextType } from "../hooks/ClueComponentContext";
3
+ import { ClueEnrichContextType } from "../hooks/ClueEnrichContextType";
4
+ import { ClueFetcherContextType } from "../hooks/ClueFetcherContext";
5
5
 
6
6
  export declare const useClueFetcherSelector: <Selected>(selector: (value: ClueFetcherContextType) => Selected) => Selected;
7
7
  export declare const useClueActionsSelector: <Selected>(selector: (value: ClueActionContextType) => Selected) => Selected;
8
8
  export declare const useClueEnrichSelector: <Selected>(selector: (value: ClueEnrichContextType) => Selected) => Selected;
9
9
  export declare const useClueComponentSelector: <Selected>(selector: (value: ClueComponentContextType) => Selected) => Selected;
10
- export default useClueEnrichSelector;
@@ -1,13 +1,23 @@
1
- import { u as t } from "../index-E7g8cRyW.js";
2
- import { a as o } from "../ActionForm-Sw7D-KOE.js";
3
- import { ClueComponentContext as r } from "./ClueComponentContext.js";
4
- import { C as n } from "../ClueEnrichContext-CvCIPOMC.js";
5
- import { ClueFetcherContext as u } from "./ClueFetcherContext.js";
6
- const i = (e) => t(u, e), p = (e) => t(o, e), a = (e) => t(n, e), f = (e) => t(r, e);
1
+ import { a as ClueActionContext } from "../ActionForm-ByeOzpc4.js";
2
+ import { ClueComponentContext } from "./ClueComponentContext.js";
3
+ import { C as ClueEnrichContext } from "../ClueEnrichContext-6NJfXpUB.js";
4
+ import { ClueFetcherContext } from "./ClueFetcherContext.js";
5
+ import { u as useContextSelector } from "../index-BDVjGvMI.js";
6
+ const useClueFetcherSelector = (selector) => {
7
+ return useContextSelector(ClueFetcherContext, selector);
8
+ };
9
+ const useClueActionsSelector = (selector) => {
10
+ return useContextSelector(ClueActionContext, selector);
11
+ };
12
+ const useClueEnrichSelector = (selector) => {
13
+ return useContextSelector(ClueEnrichContext, selector);
14
+ };
15
+ const useClueComponentSelector = (selector) => {
16
+ return useContextSelector(ClueComponentContext, selector);
17
+ };
7
18
  export {
8
- a as default,
9
- p as useClueActionsSelector,
10
- f as useClueComponentSelector,
11
- a as useClueEnrichSelector,
12
- i as useClueFetcherSelector
19
+ useClueActionsSelector,
20
+ useClueComponentSelector,
21
+ useClueEnrichSelector,
22
+ useClueFetcherSelector
13
23
  };
@@ -0,0 +1,14 @@
1
+ import { ActionResult } from "../types/action";
2
+ import { WithActionData } from "../types/WithActionData";
3
+
4
+ export declare const useActionResult: (resultWithData: WithActionData<ActionResult>, interval?: number) => {
5
+ outcome: "success" | "failure" | "pending";
6
+ summary?: string;
7
+ output?: any;
8
+ format?: string;
9
+ link?: string;
10
+ done?: boolean;
11
+ task_id?: string;
12
+ actionId: string;
13
+ action: import("../types/action").ActionDefinition;
14
+ };
@@ -0,0 +1,5 @@
1
+ import "react";
2
+ import { b } from "../ActionForm-ByeOzpc4.js";
3
+ export {
4
+ b as useActionResult
5
+ };
@@ -1,49 +1,65 @@
1
- import { b as p } from "../ClueEnrichContext-CvCIPOMC.js";
2
- import { useContext as q, useMemo as g, useState as h, useEffect as a } from "react";
3
- import { ClueDatabaseContext as A } from "./ClueDatabaseContext.js";
4
- import { useClueEnrichSelector as c } from "./selectors.js";
5
- const D = (e, s, u, { skipEnrichment: f } = { skipEnrichment: !1 }) => {
6
- const n = q(A), l = c((t) => t.defaultClassification), b = c((t) => t.ready), m = c((t) => t.availableSources), d = c((t) => t.queueEnrich), o = g(
7
- () => u ?? l,
8
- [u, l]
9
- ), [C, $] = h(!1), [S, x] = h([]), r = g(
10
- () => b && !!e && !!s && !!o,
11
- [o, b, e, s]
1
+ import { b as uniqBy } from "../ClueEnrichContext-6NJfXpUB.js";
2
+ import { useContext, useMemo, useState, useEffect } from "react";
3
+ import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
4
+ import { useClueEnrichSelector } from "./selectors.js";
5
+ const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
6
+ const database = useContext(ClueDatabaseContext);
7
+ const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
8
+ const enrichReady = useClueEnrichSelector((ctx) => ctx.ready);
9
+ const availableSources = useClueEnrichSelector((ctx) => ctx.availableSources);
10
+ const queueEnrich = useClueEnrichSelector((state) => state.queueEnrich);
11
+ const classification = useMemo(
12
+ () => _classification ?? defaultClassification,
13
+ [_classification, defaultClassification]
12
14
  );
13
- return a(() => {
14
- if (!r || !(n != null && n.status))
15
+ const [loading, setLoading] = useState(false);
16
+ const [annotations, setAnnotations] = useState([]);
17
+ const ready = useMemo(
18
+ () => enrichReady && !!type && !!value && !!classification,
19
+ [classification, enrichReady, type, value]
20
+ );
21
+ useEffect(() => {
22
+ if (!ready || !(database == null ? void 0 : database.status)) {
15
23
  return;
16
- const t = n.status.count({ selector: { type: e, value: s, classification: o, status: "in-progress" } }).$.subscribe((i) => $(i > 0));
24
+ }
25
+ const observable = database.status.count({ selector: { type, value, classification, status: "in-progress" } }).$.subscribe((_count) => setLoading(_count > 0));
17
26
  return () => {
18
- t == null || t.unsubscribe();
27
+ observable == null ? void 0 : observable.unsubscribe();
19
28
  };
20
- }, [o, n, r, e, s]), a(() => {
21
- f || m.length < 1 || !r || d(e, s, o);
22
- }, [m.length, o, d, r, f, e, s]), a(() => {
23
- if (!r)
29
+ }, [classification, database, ready, type, value]);
30
+ useEffect(() => {
31
+ if (skipEnrichment || availableSources.length < 1 || !ready) {
32
+ return;
33
+ }
34
+ queueEnrich(type, value, classification);
35
+ }, [availableSources.length, classification, queueEnrich, ready, skipEnrichment, type, value]);
36
+ useEffect(() => {
37
+ if (!ready) {
24
38
  return;
25
- const t = n.selectors.find({
39
+ }
40
+ const observable = database.selectors.find({
26
41
  selector: {
27
42
  // Use regex instead of exact value for case-insensitivity
28
- value: { $regex: `^${s}$`, $options: "i" }
43
+ value: { $regex: `^${value}$`, $options: "i" }
29
44
  }
30
45
  }).$.subscribe(
31
- (i) => x(
32
- p(
33
- i.flatMap((E) => E.getAnnotations()),
46
+ (result) => setAnnotations(
47
+ uniqBy(
48
+ result.flatMap((entry) => entry.getAnnotations()),
34
49
  JSON.stringify
35
50
  )
36
51
  )
37
52
  );
38
53
  return () => {
39
54
  try {
40
- t.unsubscribe();
41
- } catch (i) {
42
- console.warn(i);
55
+ observable.unsubscribe();
56
+ } catch (e) {
57
+ console.warn(e);
43
58
  }
44
59
  };
45
- }, [n, r, s]), [S, C];
60
+ }, [database, ready, value]);
61
+ return [annotations, loading];
46
62
  };
47
63
  export {
48
- D as default
64
+ useAnnotations as default
49
65
  };
package/hooks/useClue.js CHANGED
@@ -1,6 +1,8 @@
1
- import { a as t } from "../index-E7g8cRyW.js";
2
- import { C as e } from "../ClueEnrichContext-CvCIPOMC.js";
3
- const s = () => t(e);
1
+ import { a as useContext } from "../index-BDVjGvMI.js";
2
+ import { C as ClueEnrichContext } from "../ClueEnrichContext-6NJfXpUB.js";
3
+ const useClue = () => {
4
+ return useContext(ClueEnrichContext);
5
+ };
4
6
  export {
5
- s as default
7
+ useClue as default
6
8
  };
@@ -1,4 +1,4 @@
1
- import { ClueActionContextType } from './ClueActionContext';
1
+ import { ClueActionContextType } from "../hooks/ClueActionContext";
2
2
 
3
3
  declare const useClueActions: () => ClueActionContextType;
4
4
  export default useClueActions;
@@ -1,5 +1,5 @@
1
- import "../index-E7g8cRyW.js";
2
- import { u as a } from "../ActionForm-Sw7D-KOE.js";
1
+ import { u } from "../ActionForm-ByeOzpc4.js";
2
+ import "../index-BDVjGvMI.js";
3
3
  export {
4
- a as default
4
+ u as default
5
5
  };
@@ -1 +1,2 @@
1
- export default function useClueConfig(): import("../hooks/ClueConfigProvider").ClueConfigContextType;
1
+ declare const useClueConfig: () => import("../hooks/ClueConfigProvider").ClueConfigContextType;
2
+ export default useClueConfig;
@@ -1,8 +1,8 @@
1
- import { ClueConfigContext as o } from "./ClueConfigProvider.js";
2
- import { useContext as t } from "react";
3
- function r() {
4
- return t(o);
5
- }
1
+ import { ClueConfigContext } from "./ClueConfigProvider.js";
2
+ import { useContext } from "react";
3
+ const useClueConfig = () => {
4
+ return useContext(ClueConfigContext);
5
+ };
6
6
  export {
7
- r as default
7
+ useClueConfig as default
8
8
  };
@@ -1,7 +1,7 @@
1
- import { u as i } from "../useClueTypeConfig-CneP98N_.js";
1
+ import { u } from "../useClueTypeConfig-XvGvIw2S.js";
2
2
  import "../utils/loggerUtil.js";
3
- import "../isEmpty-g47Qir2A.js";
3
+ import "../isEmpty-BQkZubqU.js";
4
4
  import "react";
5
5
  export {
6
- i as default
6
+ u as default
7
7
  };