@cccsaurora/clue-ui 1.3.0-dev.339 → 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.
- package/{ActionForm-irs9q3xm.js → ActionForm-bztRjYJE.js} +6 -6
- package/{AnnotationDetails-TaLlFe0h.js → AnnotationDetails-DXTY4rxn.js} +2 -2
- package/{AnnotationPreview-CC_9H0lC.js → AnnotationPreview-BLO29hn_.js} +2 -2
- package/{ClueEnrichContext-NZpr831K.js → ClueEnrichContext-fItpTzAE.js} +2 -2
- package/ClueUIPlugin-0udQl--U.js +452 -0
- package/{_baseFlatten-D3wtzJ86.js → _baseFlatten-B3PW43Vk.js} +1 -1
- package/_baseRest-Ca0ktDG8.js +8 -0
- package/{_baseUniq-BqxNeJD9.js → _baseUniq-Bx6CWGDV.js} +1 -0
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +3 -3
- 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/formats/index.js +13 -12
- package/components/display/graph/elements/NodeCard.js +3 -3
- package/components/display/graph/index.js +1 -1
- package/components/display/json/index.js +2 -2
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +10 -9
- package/components/fetchers/FetcherResultView.d.ts +4 -0
- package/components/fetchers/FetcherResultView.js +27 -0
- package/components/group/Entry.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/en/translation.json +1 -0
- package/fr/translation.json +1 -0
- package/hooks/ClueActionContext.js +1 -1
- package/hooks/ClueEnrichContext.js +3 -3
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.d.ts +2 -1
- package/hooks/ClueProvider.js +56 -4
- 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 +2 -2
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +2 -2
- package/icons/Assessment.js +2 -2
- package/icons/Context.js +1 -1
- package/icons/Opinion.js +2 -2
- package/{index-CIj4pr7O.js → index-BF4c1XBg.js} +1 -1
- package/index-BJm74d7l.js +25 -0
- package/index-BdAUKhOk.js +25 -0
- package/index-DP0SQqVY.js +25 -0
- package/index-DXpcBpjs.js +34 -0
- package/index-Kt3RwkVk.js +22 -0
- package/main.js +4 -4
- package/package.json +2 -1
- package/{sortBy-Tf6pz1tg.js → sortBy-Bjn6Gl0J.js} +2 -4
- package/store-Dslbt6yE.js +2108 -0
- package/{useClueTypeConfig-CnMg5Ny8.js → useClueTypeConfig-D2OeF2ug.js} +1 -1
- package/utils/chain.js +1 -1
- package/utils/utils.js +2 -2
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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 {
|
|
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) {
|