@cccsaurora/clue-ui 1.3.0-dev.338 → 1.3.0-dev.344

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 (65) hide show
  1. package/{ActionForm-irs9q3xm.js → ActionForm-bztRjYJE.js} +6 -6
  2. package/{AnnotationDetails-TaLlFe0h.js → AnnotationDetails-DXTY4rxn.js} +2 -2
  3. package/{AnnotationPreview-CC_9H0lC.js → AnnotationPreview-BLO29hn_.js} +2 -2
  4. package/{ClueEnrichContext-NZpr831K.js → ClueEnrichContext-fItpTzAE.js} +2 -2
  5. package/ClueUIPlugin-0udQl--U.js +452 -0
  6. package/{_baseFlatten-D3wtzJ86.js → _baseFlatten-B3PW43Vk.js} +1 -1
  7. package/_baseRest-Ca0ktDG8.js +8 -0
  8. package/{_baseUniq-BqxNeJD9.js → _baseUniq-Bx6CWGDV.js} +1 -0
  9. package/components/AnnotationDetailPopover.js +1 -1
  10. package/components/AnnotationDetails.js +3 -3
  11. package/components/AnnotationEntry.js +1 -1
  12. package/components/AnnotationPreview.js +2 -2
  13. package/components/EnrichedCard.js +2 -2
  14. package/components/EnrichedChip.js +2 -2
  15. package/components/EnrichedTypography.js +2 -2
  16. package/components/RetryFailedEnrichments.js +1 -1
  17. package/components/SourcePicker.js +1 -1
  18. package/components/actions/ActionForm.js +3 -3
  19. package/components/actions/ExecutePopover.js +1 -1
  20. package/components/actions/ResultModal.js +1 -1
  21. package/components/actions/formats/index.js +13 -12
  22. package/components/display/graph/elements/NodeCard.js +3 -3
  23. package/components/display/graph/index.js +1 -1
  24. package/components/display/json/index.js +2 -2
  25. package/components/enrichment/EnrichPopover.js +1 -1
  26. package/components/fetchers/Fetcher.js +10 -9
  27. package/components/fetchers/FetcherResultView.d.ts +4 -0
  28. package/components/fetchers/FetcherResultView.js +27 -0
  29. package/components/group/Entry.js +1 -1
  30. package/components/group/GroupControl.js +1 -1
  31. package/components/stats/QueryStatus.js +1 -1
  32. package/en/translation.json +1 -0
  33. package/fr/translation.json +1 -0
  34. package/hooks/ClueActionContext.js +1 -1
  35. package/hooks/ClueEnrichContext.js +3 -3
  36. package/hooks/ClueGroupContext.js +1 -1
  37. package/hooks/CluePopupContext.js +2 -2
  38. package/hooks/ClueProvider.d.ts +2 -1
  39. package/hooks/ClueProvider.js +56 -4
  40. package/hooks/selectors.js +2 -2
  41. package/hooks/useActionResult.js +1 -1
  42. package/hooks/useAnnotations.js +2 -2
  43. package/hooks/useClue.js +1 -1
  44. package/hooks/useClueActions.js +1 -1
  45. package/hooks/useClueTypeConfig.js +2 -2
  46. package/hooks/useErrors.js +1 -1
  47. package/hooks/useFetcherResult.js +1 -1
  48. package/icons/Action.js +2 -2
  49. package/icons/Assessment.js +2 -2
  50. package/icons/Context.js +1 -1
  51. package/icons/Opinion.js +2 -2
  52. package/{index-CIj4pr7O.js → index-BF4c1XBg.js} +1 -1
  53. package/index-BJm74d7l.js +25 -0
  54. package/index-BdAUKhOk.js +25 -0
  55. package/index-DP0SQqVY.js +25 -0
  56. package/index-DXpcBpjs.js +34 -0
  57. package/index-Kt3RwkVk.js +22 -0
  58. package/main.js +4 -4
  59. package/package.json +2 -1
  60. package/{sortBy-Tf6pz1tg.js → sortBy-Bjn6Gl0J.js} +2 -4
  61. package/store-Dslbt6yE.js +2108 -0
  62. package/{useClueTypeConfig-CnMg5Ny8.js → useClueTypeConfig-D2OeF2ug.js} +1 -1
  63. package/utils/chain.js +1 -1
  64. package/utils/utils.js +2 -2
  65. package/{utils-Du3XxQAT.js → utils-Dp6a9Q5X.js} +1 -1
@@ -0,0 +1,25 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { jsx } from "react/jsx-runtime";
5
+ import Graph from "./components/display/graph/index.js";
6
+ import { C as ClueUIPlugin } from "./ClueUIPlugin-0udQl--U.js";
7
+ class GraphPlugin extends ClueUIPlugin {
8
+ constructor() {
9
+ super(...arguments);
10
+ __publicField(this, "name", "GraphPlugin");
11
+ __publicField(this, "format", "graph");
12
+ __publicField(this, "version", "1.0.0");
13
+ __publicField(this, "author", "Mrs. White");
14
+ __publicField(this, "description", "Renders an interactive tree visualization.");
15
+ }
16
+ actionResult({ result }) {
17
+ return /* @__PURE__ */ jsx(Graph, { graph: result.output, sx: { minHeight: "600px" } });
18
+ }
19
+ fetcherResult({ result }) {
20
+ return /* @__PURE__ */ jsx(Graph, { graph: result.data, sx: { minHeight: "600px" } });
21
+ }
22
+ }
23
+ export {
24
+ GraphPlugin as default
25
+ };
@@ -0,0 +1,34 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { C as ClueUIPlugin } from "./ClueUIPlugin-0udQl--U.js";
6
+ class ImagePlugin extends ClueUIPlugin {
7
+ constructor() {
8
+ super(...arguments);
9
+ __publicField(this, "name", "ImagePlugin");
10
+ __publicField(this, "format", "image");
11
+ __publicField(this, "version", "1.0.0");
12
+ __publicField(this, "author", "Mr. Green");
13
+ __publicField(this, "description", "Renders images.");
14
+ }
15
+ actionResult(props) {
16
+ const { result, setShowPreview, ...additionalProps } = props;
17
+ return /* @__PURE__ */ jsx(
18
+ "img",
19
+ {
20
+ src: result.output.image,
21
+ alt: result.output.alt,
22
+ ...additionalProps,
23
+ onClick: () => setShowPreview == null ? void 0 : setShowPreview(true)
24
+ }
25
+ );
26
+ }
27
+ fetcherResult(props) {
28
+ const { result, setShowPreview, ...additionalProps } = props;
29
+ return /* @__PURE__ */ jsx("img", { src: result.data.image, alt: result.data.alt, ...additionalProps, onClick: () => setShowPreview == null ? void 0 : setShowPreview(true) });
30
+ }
31
+ }
32
+ export {
33
+ ImagePlugin as default
34
+ };
@@ -0,0 +1,22 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
+ import { jsx } from "react/jsx-runtime";
5
+ import FileResult from "./components/actions/formats/FileResult.js";
6
+ import { C as ClueUIPlugin } from "./ClueUIPlugin-0udQl--U.js";
7
+ class FilePlugin extends ClueUIPlugin {
8
+ constructor() {
9
+ super(...arguments);
10
+ __publicField(this, "name", "FilePlugin");
11
+ __publicField(this, "format", "file");
12
+ __publicField(this, "version", "1.0.0");
13
+ __publicField(this, "author", "Miss Scarlett");
14
+ __publicField(this, "description", "Render a file action result with metadata, hash statistics, and download support.");
15
+ }
16
+ actionResult({ result }) {
17
+ return /* @__PURE__ */ jsx(FileResult, { result });
18
+ }
19
+ }
20
+ export {
21
+ FilePlugin as default
22
+ };
package/main.js CHANGED
@@ -1,8 +1,8 @@
1
- import { A, b, d, f, g } from "./ActionForm-irs9q3xm.js";
1
+ import { A, b, d, f, g } from "./ActionForm-bztRjYJE.js";
2
2
  import { default as default2 } from "./components/AnnotationDetailPopover.js";
3
- import { A as A2 } from "./AnnotationDetails-TaLlFe0h.js";
3
+ import { A as A2 } from "./AnnotationDetails-DXTY4rxn.js";
4
4
  import { default as default3 } from "./components/AnnotationEntry.js";
5
- import { A as A3, C } from "./AnnotationPreview-CC_9H0lC.js";
5
+ import { A as A3, C } from "./AnnotationPreview-BLO29hn_.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";
@@ -18,7 +18,7 @@ import { b as b2 } from "./index-CoosLLQl.js";
18
18
  import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
19
19
  import { ClueConfigContext } from "./hooks/ClueConfigProvider.js";
20
20
  import { ClueDatabaseContext } from "./hooks/ClueDatabaseContext.js";
21
- import { C as C2 } from "./ClueEnrichContext-NZpr831K.js";
21
+ import { C as C2 } from "./ClueEnrichContext-fItpTzAE.js";
22
22
  import { ClueProvider } from "./hooks/ClueProvider.js";
23
23
  import { default as default14 } from "./hooks/useClue.js";
24
24
  import { default as default15 } from "./hooks/useClueConfig.js";
package/package.json CHANGED
@@ -26,6 +26,7 @@
26
26
  "lodash-es": "^4.17.23",
27
27
  "react-i18next": "^13.5.0",
28
28
  "react-markdown": "10.1.0",
29
+ "react-pluggable": "^0.4.3",
29
30
  "react-syntax-highlighter": "^15.6.1",
30
31
  "rehype-raw": "7.0.0",
31
32
  "remark-gfm": "4.0.1",
@@ -66,7 +67,7 @@
66
67
  },
67
68
  "type": "module",
68
69
  "types": "main.d.ts",
69
- "version": "1.3.0-dev.338",
70
+ "version": "1.3.0-dev.344",
70
71
  "exports": {
71
72
  ".": "./main.js",
72
73
  "./index.css": "./index.css",
@@ -1,4 +1,4 @@
1
- import { s as setToString, o as overRest, b as baseFlatten } from "./_baseFlatten-D3wtzJ86.js";
1
+ import { b as baseFlatten } from "./_baseFlatten-B3PW43Vk.js";
2
2
  import { a as arrayMap, b as baseGet } from "./_baseGet-DKnGz1D3.js";
3
3
  import { b as baseIteratee } from "./_baseIteratee-C004Z9XE.js";
4
4
  import { b as baseEach } from "./_createAggregator-BDMdCE6g.js";
@@ -6,10 +6,8 @@ import { c as isArrayLike, a as baseUnary } from "./_getTag-DuA1kj2A.js";
6
6
  import { i as isSymbol } from "./isSymbol-Xd2FsJyp.js";
7
7
  import { i as identity } from "./identity-CPGTqrE4.js";
8
8
  import { i as isArray } from "./_MapCache-DWYVyFVH.js";
9
+ import { b as baseRest } from "./_baseRest-Ca0ktDG8.js";
9
10
  import { i as isIterateeCall } from "./_isIterateeCall-CEvg7Bo6.js";
10
- function baseRest(func, start) {
11
- return setToString(overRest(func, start, identity), func + "");
12
- }
13
11
  function baseMap(collection, iteratee) {
14
12
  var index = -1, result = isArrayLike(collection) ? Array(collection.length) : [];
15
13
  baseEach(collection, function(value, key, collection2) {