@cccsaurora/clue-ui 1.5.0-dev.487 → 1.6.0-dev.524.1
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-DxbV_aLe.js → ActionForm-C1D2_1Pg.js} +6 -6
- package/{AnnotationDetails-EDZRnwin.js → AnnotationDetails-C683Hvym.js} +1 -1
- package/{AnnotationPreview-DfLcrcuH.js → AnnotationPreview-Bm9e2UgC.js} +1 -1
- package/{ClueEnrichContext-DUxJFS3j.js → ClueEnrichContext-DmERFjhQ.js} +3 -3
- package/components/AnnotationDetailPopover.js +3 -3
- package/components/AnnotationDetails.js +2 -2
- package/components/AnnotationPreview.js +1 -1
- package/components/EnrichedCard.js +1 -1
- package/components/EnrichedChip.js +3 -3
- package/components/EnrichedTypography.js +2 -2
- package/components/RetryFailedEnrichments.js +1 -1
- package/components/SourcePicker.js +1 -1
- package/components/actions/ActionForm.js +2 -2
- package/components/actions/ExecutePopover.js +1 -1
- package/components/actions/ResultModal.js +1 -1
- package/components/actions/formats/index.js +1 -1
- package/components/display/graph/elements/NodeCard.js +1 -1
- package/components/display/graph/index.js +2 -2
- package/components/display/graph/visualizations/cloud/index.js +3 -2
- package/components/display/graph/visualizations/icons/TargetIcon.js +0 -1
- package/components/display/graph/visualizations/tree/BundleLine.js +2 -1
- package/components/display/graph/visualizations/tree/index.js +1 -1
- package/components/display/json/index.js +1 -1
- package/components/display/markdown/index.js +87 -27
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +1 -1
- package/components/fetchers/FetcherResultView.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/{index-CVUD9o3t.js → d3-CwtkB99t.js} +15024 -10621
- package/database/index.js +2 -2
- package/database/replication.js +2 -2
- package/hooks/ClueActionContext.js +2 -2
- package/hooks/ClueDatabaseContext.d.ts +1 -1
- package/hooks/ClueDatabaseContext.js +5 -1
- package/hooks/ClueEnrichContext.js +2 -2
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +3 -3
- 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 +1 -1
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/hooks/useMyHighlights.js +1 -1
- package/icons/Action.js +2 -2
- package/icons/Assessment.js +1 -1
- package/icons/Context.js +3 -3
- package/icons/Opinion.js +2 -2
- package/{index-DcMufc6R.js → index-Bx5giDpY.js} +730 -250
- package/{index-CARYR0Hw.js → index-D1tw5sJ1.js} +94 -27
- package/{index-DUEubgWN.js → index-D4JJWbGh.js} +2 -2
- package/{index-C8VMJ2QX.js → index-DzbOfIT_.js} +9 -7
- package/index.css +2 -11
- package/main.js +5 -5
- package/package.json +30 -40
- package/plugins/json/index.js +1 -1
- package/{replication-DzmbOO2P.js → replication-Bxa4yXXZ.js} +134 -50
- package/utils/time.js +8 -8
package/database/index.js
CHANGED
package/database/replication.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import { C, a } from "../ActionForm-
|
|
4
|
-
import "../index-
|
|
3
|
+
import { C, a } from "../ActionForm-C1D2_1Pg.js";
|
|
4
|
+
import "../index-Bx5giDpY.js";
|
|
5
5
|
import "../components/display/icons/Iconified.js";
|
|
6
6
|
import "../components/ErrorBoundary.js";
|
|
7
7
|
import "../data/event.js";
|
|
@@ -25,7 +25,7 @@ export interface ClueDatabaseContextProps {
|
|
|
25
25
|
/**
|
|
26
26
|
* The Clue Database instance used for data operations and queries. Optional.
|
|
27
27
|
*/
|
|
28
|
-
database?: ClueDatabase;
|
|
28
|
+
database?: ClueDatabase | null;
|
|
29
29
|
/**
|
|
30
30
|
* Configuration settings for the database connection and behavior.
|
|
31
31
|
* Optional - may be undefined if using default database configuration.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { b as buildDatabase } from "../index-
|
|
2
|
+
import { b as buildDatabase } from "../index-D1tw5sJ1.js";
|
|
3
3
|
import { createContext, useState, useRef, useEffect } from "react";
|
|
4
4
|
const ClueDatabaseContext = createContext(null);
|
|
5
5
|
const ClueDatabaseProvider = ({
|
|
@@ -27,6 +27,10 @@ const ClueDatabaseProvider = ({
|
|
|
27
27
|
if (!cancelled) {
|
|
28
28
|
setDatabase(_db);
|
|
29
29
|
}
|
|
30
|
+
}).catch((error) => {
|
|
31
|
+
if (!cancelled) {
|
|
32
|
+
console.warn("Error initializing database:", error);
|
|
33
|
+
}
|
|
30
34
|
});
|
|
31
35
|
return () => {
|
|
32
36
|
cancelled = true;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-CYJTToEF.js";
|
|
3
|
-
import "../index-
|
|
3
|
+
import "../index-Bx5giDpY.js";
|
|
4
4
|
import "../database/globals.js";
|
|
5
5
|
import "../utils/loggerUtil.js";
|
|
6
6
|
import "../utils/typeDetection.js";
|
|
7
7
|
import "../utils-CEySTPtg.js";
|
|
8
|
-
import { C, a } from "../ClueEnrichContext-
|
|
8
|
+
import { C, a } from "../ClueEnrichContext-DmERFjhQ.js";
|
|
9
9
|
import "../sessionStorage-B68y-wnE.js";
|
|
10
10
|
import "../groupBy-BVV07EGQ.js";
|
|
11
11
|
import "../uniq-CahZPAwp.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as api } from "../index-
|
|
2
|
+
import { a as api } from "../index-Bx5giDpY.js";
|
|
3
3
|
import { SNACKBAR_EVENT_ID } from "../data/event.js";
|
|
4
4
|
import { safeDispatchEvent } from "../utils/window.js";
|
|
5
5
|
import { useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo } from "react";
|
|
3
3
|
import { c as createContext } from "../index-_gpzM2Px.js";
|
|
4
|
-
import { f as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { f as useClueEnrichSelector } from "../ActionForm-C1D2_1Pg.js";
|
|
5
5
|
const ClueGroupContext = createContext(null);
|
|
6
6
|
const ClueGroupProvider = ({ children, type, classification }) => {
|
|
7
7
|
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../components/AnnotationDetailPopover.js";
|
|
3
|
-
import { C, a } from "../AnnotationPreview-
|
|
3
|
+
import { C, a } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-C683Hvym.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../index-_gpzM2Px.js";
|
|
9
9
|
export {
|
package/hooks/ClueProvider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ClueUIPluginProvider } from "./ClueUIPluginContext.js";
|
|
3
|
-
import { a as ClueActionProvider } from "../ActionForm-
|
|
3
|
+
import { a as ClueActionProvider } from "../ActionForm-C1D2_1Pg.js";
|
|
4
4
|
import { ClueComponentProvider } from "./ClueComponentContext.js";
|
|
5
5
|
import { ClueConfigProvider } from "./ClueConfigProvider.js";
|
|
6
6
|
import { ClueDatabaseProvider } from "./ClueDatabaseContext.js";
|
|
7
|
-
import { a as ClueEnrichProvider } from "../ClueEnrichContext-
|
|
7
|
+
import { a as ClueEnrichProvider } from "../ClueEnrichContext-DmERFjhQ.js";
|
|
8
8
|
import { ClueFetcherProvider } from "./ClueFetcherContext.js";
|
|
9
|
-
import { a as CluePopupProvider } from "../AnnotationPreview-
|
|
9
|
+
import { a as CluePopupProvider } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
10
10
|
const ClueProvider = ({ children, ...props }) => {
|
|
11
11
|
return /* @__PURE__ */ jsx(ClueComponentProvider, { ...props, children: /* @__PURE__ */ jsx(ClueConfigProvider, { config: props.config, children: /* @__PURE__ */ jsx(ClueDatabaseProvider, { ...props, children: /* @__PURE__ */ jsx(ClueUIPluginProvider, { ...props, children: /* @__PURE__ */ jsx(ClueEnrichProvider, { ...props, children: /* @__PURE__ */ jsx(ClueFetcherProvider, { ...props, children: /* @__PURE__ */ jsx(ClueActionProvider, { ...props, children: /* @__PURE__ */ jsx(CluePopupProvider, { children }) }) }) }) }) }) }) });
|
|
12
12
|
};
|
package/hooks/selectors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d, e, f, g } from "../ActionForm-
|
|
1
|
+
import { d, e, f, g } from "../ActionForm-C1D2_1Pg.js";
|
|
2
2
|
import "./ClueComponentContext.js";
|
|
3
|
-
import "../ClueEnrichContext-
|
|
3
|
+
import "../ClueEnrichContext-DmERFjhQ.js";
|
|
4
4
|
import "./ClueFetcherContext.js";
|
|
5
5
|
import "../index-_gpzM2Px.js";
|
|
6
6
|
export {
|
package/hooks/useActionResult.js
CHANGED
package/hooks/useAnnotations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as uniqBy } from "../ClueEnrichContext-
|
|
1
|
+
import { u as uniqBy } from "../ClueEnrichContext-DmERFjhQ.js";
|
|
2
2
|
import { useContext, useMemo, useState, useEffect } from "react";
|
|
3
3
|
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
4
|
-
import { f as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { f as useClueEnrichSelector } from "../ActionForm-C1D2_1Pg.js";
|
|
5
5
|
const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
const database = useContext(ClueDatabaseContext);
|
package/hooks/useClue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as useContext } from "../index-_gpzM2Px.js";
|
|
2
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
2
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-DmERFjhQ.js";
|
|
3
3
|
const useClue = () => {
|
|
4
4
|
return useContext(ClueEnrichContext);
|
|
5
5
|
};
|
package/hooks/useClueActions.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as api } from "../index-
|
|
1
|
+
import { a as api } from "../index-Bx5giDpY.js";
|
|
2
2
|
import { clueDebugLogger } from "../utils/loggerUtil.js";
|
|
3
3
|
import { compileTypeDetectors } from "../utils/typeDetection.js";
|
|
4
4
|
import { i as isEmpty } from "../isEmpty-BE656RUK.js";
|
package/hooks/useErrors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext, useState, useEffect } from "react";
|
|
2
2
|
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
3
|
-
import { f as useClueEnrichSelector } from "../ActionForm-
|
|
3
|
+
import { f as useClueEnrichSelector } from "../ActionForm-C1D2_1Pg.js";
|
|
4
4
|
const useErrors = (value) => {
|
|
5
5
|
const database = useContext(ClueDatabaseContext);
|
|
6
6
|
const ready = useClueEnrichSelector((ctx) => ctx.ready);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useMemo, useEffect } from "react";
|
|
2
|
-
import { b as useClueActions } from "../ActionForm-
|
|
2
|
+
import { b as useClueActions } from "../ActionForm-C1D2_1Pg.js";
|
|
3
3
|
const useActionResult = (resultWithData, interval = 2e3) => {
|
|
4
4
|
const [result, setResult] = useState(resultWithData);
|
|
5
5
|
const timeoutRef = useRef(null);
|
package/hooks/useMyHighlights.js
CHANGED
|
@@ -32,7 +32,7 @@ const useMyHighlights = (graph, onNodeSelectionChanged) => {
|
|
|
32
32
|
if (isSelected) {
|
|
33
33
|
newHighlightedNodes = new Set(event.ctrlKey ? [...highlightedNodes, nodeId] : [nodeId]);
|
|
34
34
|
} else {
|
|
35
|
-
newHighlightedNodes = event.ctrlKey ?
|
|
35
|
+
newHighlightedNodes = event.ctrlKey ? new Set(highlightedNodes) : /* @__PURE__ */ new Set();
|
|
36
36
|
newHighlightedNodes.delete(nodeId);
|
|
37
37
|
}
|
|
38
38
|
setHighlightedNodes(newHighlightedNodes);
|
package/icons/Action.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-CYJTToEF.js";
|
|
3
3
|
import { useTheme, Stack, Divider, Typography } from "@mui/material";
|
|
4
4
|
import CountBadge from "../components/CountBadge.js";
|
|
5
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
6
|
-
import { b as useClueActions } from "../ActionForm-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
6
|
+
import { b as useClueActions } from "../ActionForm-C1D2_1Pg.js";
|
|
7
7
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
8
8
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
9
9
|
import { a as useContextSelector } from "../index-_gpzM2Px.js";
|
package/icons/Assessment.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-CYJTToEF.js";
|
|
3
3
|
import { useTheme, Stack, Chip, Divider, Grid, Tooltip } from "@mui/material";
|
|
4
4
|
import CountBadge from "../components/CountBadge.js";
|
|
5
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
7
7
|
import { l as last } from "../last-CUCl67Im.js";
|
|
8
8
|
import { m as maxBy } from "../maxBy-BjjQmX5t.js";
|
package/icons/Context.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Stack, Divider } from "@mui/material";
|
|
|
4
4
|
import AnnotationEntry from "../components/AnnotationEntry.js";
|
|
5
5
|
import CountBadge from "../components/CountBadge.js";
|
|
6
6
|
import Iconified from "../components/display/icons/Iconified.js";
|
|
7
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
7
|
+
import { C as CluePopupContext } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
8
8
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
9
9
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
10
10
|
import { a as useContextSelector } from "../index-_gpzM2Px.js";
|
|
@@ -62,7 +62,7 @@ const ContextIcon = ({
|
|
|
62
62
|
{
|
|
63
63
|
icon,
|
|
64
64
|
fontSize: otherProps.fontSize ?? "1.25em",
|
|
65
|
-
style: { filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))", ...otherProps.style
|
|
65
|
+
style: { filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))", ...otherProps.style },
|
|
66
66
|
...otherProps
|
|
67
67
|
}
|
|
68
68
|
)
|
|
@@ -75,7 +75,7 @@ const ContextIcon = ({
|
|
|
75
75
|
const additionalSize = contextAnnotations.length - additionalIcons.length;
|
|
76
76
|
if (additionalSize > 0 && showExtraIcon) {
|
|
77
77
|
icons.push(
|
|
78
|
-
/* @__PURE__ */ jsx(CountBadge, { disabled: !counters, count: additionalSize, children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-newspaper", style: { zIndex: 2, ...otherProps.style
|
|
78
|
+
/* @__PURE__ */ jsx(CountBadge, { disabled: !counters, count: additionalSize, children: /* @__PURE__ */ jsx(Iconified, { icon: "ic:baseline-newspaper", style: { zIndex: 2, ...otherProps.style } }) }, "extra")
|
|
79
79
|
);
|
|
80
80
|
}
|
|
81
81
|
return /* @__PURE__ */ jsx(Stack, { direction: "row", spacing: 1, children: icons });
|
package/icons/Opinion.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-CYJTToEF.js";
|
|
3
3
|
import { useTheme, Stack, Chip, Divider, Grid } from "@mui/material";
|
|
4
4
|
import CountBadge from "../components/CountBadge.js";
|
|
5
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-Bm9e2UgC.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
7
7
|
import { s as sortBy } from "../sortBy-B8JVsLQY.js";
|
|
8
8
|
import { s as sumBy } from "../sumBy-D-HCzM2i.js";
|
|
@@ -110,7 +110,7 @@ const OpinionIcon = ({ annotations, value, counters = true, disableTooltip = fal
|
|
|
110
110
|
}[sortedOpinions[0][0]],
|
|
111
111
|
style: {
|
|
112
112
|
zIndex: 2,
|
|
113
|
-
...otherProps.style
|
|
113
|
+
...otherProps.style
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
) })
|