@cccsaurora/clue-ui 1.0.1 → 1.0.2
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-WIj7BfD5.js → ActionForm-BtTv0s4P.js} +13 -13
- package/AnnotationDetails-D5tBIeEw.js +160 -0
- package/{AnnotationPreview-DWRDhxUB.js → AnnotationPreview-CZr_CcZC.js} +2 -2
- package/ClueEnrichContext-DH9lqjwH.js +401 -0
- package/api/lookup/enrich.d.ts +3 -3
- package/components/AnnotationDetailPopover.js +7 -7
- package/components/AnnotationDetails.js +21 -155
- package/components/AnnotationEntry.js +26 -31
- package/components/AnnotationPreview.js +2 -2
- package/components/EnrichedCard.js +8 -8
- package/components/EnrichedChip.js +1 -1
- package/components/EnrichedTypography.js +1 -1
- package/components/actions/ActionForm.js +3 -3
- package/components/actions/ResultModal.js +1 -1
- package/components/display/graph/elements/NodeCard.js +2 -2
- package/components/display/graph/index.js +1 -1
- package/components/display/json/index.js +2 -2
- package/components/enrichment/EnrichPopover.js +5 -5
- package/components/fetchers/Fetcher.js +1 -1
- package/components/group/Entry.js +7 -7
- package/components/group/GroupControl.js +9 -9
- package/database/index.js +1 -1
- package/hooks/ClueActionContext.d.ts +1 -1
- package/hooks/ClueActionContext.js +3 -3
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +4 -4
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +3 -3
- package/hooks/selectors.js +2 -2
- package/hooks/useAnnotations.js +23 -27
- package/hooks/useClue.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useClueTypeConfig.d.ts +2 -1
- package/hooks/useClueTypeConfig.js +2 -2
- package/hooks/useMyLocalStorage.js +28 -28
- package/icons/Action.js +7 -7
- package/icons/Assessment.js +13 -13
- package/icons/Context.js +7 -7
- package/icons/Opinion.js +12 -12
- package/{index-HuYhutsd.js → index-BUcHmehh.js} +1 -1
- package/{index-WvFmjbxF.js → index-Bo-v5IAc.js} +4764 -4744
- package/{index-4YFAh_sa.js → index-CnaCBNrd.js} +1 -1
- package/main.d.ts +0 -1
- package/main.js +53 -63
- package/package.json +1 -1
- package/text/Frequency.js +19 -19
- package/{useClueTypeConfig-BQ33EiyB.js → useClueTypeConfig-CneP98N_.js} +10 -23
- package/utils/classificationParser.d.ts +8 -8
- package/utils/classificationParser.js +63 -76
- package/utils/utils.js +2 -2
- package/{utils-C_RX5uMP.js → utils-CD0rFIFU.js} +11 -11
- package/ClueEnrichContext-CbJVBm4w.js +0 -397
- package/isUndefined-DiNCDKoz.js +0 -10
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { Popover as r } from "@mui/material";
|
|
3
3
|
import v, { useRef as c, useState as g, useEffect as R } from "react";
|
|
4
|
-
import k from "
|
|
5
|
-
const
|
|
6
|
-
var f,
|
|
4
|
+
import { A as k } from "../AnnotationDetails-D5tBIeEw.js";
|
|
5
|
+
const S = v.memo(({ anchorEl: t, enrichRequest: u, open: o, onClose: l, ...e }) => {
|
|
6
|
+
var f, s, m;
|
|
7
7
|
const a = c(), [x, n] = g(!1);
|
|
8
8
|
return R(() => {
|
|
9
9
|
o || n(!1);
|
|
@@ -27,14 +27,14 @@ const w = v.memo(({ anchorEl: t, enrichRequest: u, open: o, onClose: l, ...e })
|
|
|
27
27
|
overflowY: "auto",
|
|
28
28
|
maxWidth: "500px",
|
|
29
29
|
width: "100%",
|
|
30
|
-
zIndex: ((
|
|
30
|
+
zIndex: ((m = (s = t == null ? void 0 : t.computedStyleMap) == null ? void 0 : s.call(t).get("z-index")) == null ? void 0 : m.toString()) || 2
|
|
31
31
|
}
|
|
32
32
|
]
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
onClick: (i) => {
|
|
36
|
-
var
|
|
37
|
-
i.preventDefault(), i.stopPropagation(), (
|
|
36
|
+
var p;
|
|
37
|
+
i.preventDefault(), i.stopPropagation(), (p = e.onClick) == null || p.call(e, i);
|
|
38
38
|
},
|
|
39
39
|
children: /* @__PURE__ */ d(
|
|
40
40
|
k,
|
|
@@ -51,5 +51,5 @@ const w = v.memo(({ anchorEl: t, enrichRequest: u, open: o, onClose: l, ...e })
|
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
S as default
|
|
55
55
|
};
|
|
@@ -1,157 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
const ii = ({ enrichRequest: o, setReady: d, updatePosition: p }) => {
|
|
22
|
-
const v = M(), { t: c } = P(F, (a) => a.i18next), [r, I] = W("all"), y = H((a) => a.enrich), [t, C] = K(
|
|
23
|
-
o == null ? void 0 : o.type,
|
|
24
|
-
o == null ? void 0 : o.value,
|
|
25
|
-
o == null ? void 0 : o.classification,
|
|
26
|
-
{ skipEnrichment: !0 }
|
|
27
|
-
), m = L(o == null ? void 0 : o.value), B = k(
|
|
28
|
-
() => ["all", ...q((t ?? []).map((a) => a.type))],
|
|
29
|
-
[t]
|
|
30
|
-
), b = k(() => R(t ?? [], "type"), [t]), h = G(async () => {
|
|
31
|
-
await y(o.type, o.value, {
|
|
32
|
-
classification: o.classification,
|
|
33
|
-
timeout: 15,
|
|
34
|
-
force: !0
|
|
35
|
-
});
|
|
36
|
-
}, [o, y]);
|
|
37
|
-
return J(() => {
|
|
38
|
-
d && (d(o && !w(t)), p == null || p());
|
|
39
|
-
}, [t, o, d, p]), o && !w(t) && /* @__PURE__ */ n(l, { direction: "column", sx: { p: 1, width: "100%" }, spacing: 1, children: [
|
|
40
|
-
/* @__PURE__ */ n(l, { spacing: 1, children: [
|
|
41
|
-
/* @__PURE__ */ n(l, { direction: "row", spacing: 1, children: [
|
|
42
|
-
/* @__PURE__ */ n(l, { children: [
|
|
43
|
-
/* @__PURE__ */ n(l, { direction: "row", spacing: 1, children: [
|
|
44
|
-
/* @__PURE__ */ i(s, { variant: "body1", fontWeight: "bold", children: "Clue" }),
|
|
45
|
-
o.classification && /* @__PURE__ */ i(Y, { size: "small", classification: o.classification })
|
|
46
|
-
] }),
|
|
47
|
-
/* @__PURE__ */ n(s, { variant: "caption", color: "text.secondary", children: [
|
|
48
|
-
o.type.toLocaleUpperCase(),
|
|
49
|
-
" ",
|
|
50
|
-
c("enrichment")
|
|
51
|
-
] })
|
|
52
|
-
] }),
|
|
53
|
-
/* @__PURE__ */ i("div", { style: { flex: 1 } }),
|
|
54
|
-
/* @__PURE__ */ i(x, { title: c("refresh"), children: /* @__PURE__ */ i(z, { sx: { alignSelf: "center", m: -1 }, children: /* @__PURE__ */ i(A, { onClick: () => h(), disabled: C, children: C ? /* @__PURE__ */ i(N, { variant: "indeterminate", size: 20 }) : /* @__PURE__ */ i(g, { icon: "ic:baseline-replay", fontSize: "small" }) }) }) }),
|
|
55
|
-
/* @__PURE__ */ i(x, { title: c("clipboard"), children: /* @__PURE__ */ i(
|
|
56
|
-
A,
|
|
57
|
-
{
|
|
58
|
-
sx: { alignSelf: "center", m: -1 },
|
|
59
|
-
onClick: () => {
|
|
60
|
-
navigator.clipboard.writeText(o.value), U(
|
|
61
|
-
new CustomEvent(O, {
|
|
62
|
-
detail: {
|
|
63
|
-
message: `${o.value} ${c("clipboard.success")}`,
|
|
64
|
-
level: "success"
|
|
65
|
-
}
|
|
66
|
-
})
|
|
67
|
-
);
|
|
68
|
-
},
|
|
69
|
-
children: /* @__PURE__ */ i(g, { icon: "ic:outline-assignment", fontSize: "small" })
|
|
70
|
-
}
|
|
71
|
-
) }),
|
|
72
|
-
/* @__PURE__ */ i(Z, { selector: o }),
|
|
73
|
-
/* @__PURE__ */ i(Q, { selectors: [o] })
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ n(l, { direction: "row", spacing: 0.5, children: [
|
|
76
|
-
B.map((a, e) => /* @__PURE__ */ i(
|
|
77
|
-
S,
|
|
78
|
-
{
|
|
79
|
-
size: "small",
|
|
80
|
-
variant: a === r ? "filled" : "outlined",
|
|
81
|
-
icon: T[a] && /* @__PURE__ */ i(E, { icon: T[a] }),
|
|
82
|
-
label: /* @__PURE__ */ n(s, { variant: "caption", textTransform: "capitalize", children: [
|
|
83
|
-
a,
|
|
84
|
-
":",
|
|
85
|
-
" ",
|
|
86
|
-
a === "all" ? t.length : t.filter((f) => f.type === a).length
|
|
87
|
-
] }),
|
|
88
|
-
onClick: () => I(a)
|
|
89
|
-
},
|
|
90
|
-
e
|
|
91
|
-
)),
|
|
92
|
-
(m == null ? void 0 : m.length) > 0 && /* @__PURE__ */ i(
|
|
93
|
-
x,
|
|
94
|
-
{
|
|
95
|
-
title: /* @__PURE__ */ i("div", { onClick: (a) => a.stopPropagation(), children: m.map((a, e) => /* @__PURE__ */ n("div", { children: [
|
|
96
|
-
/* @__PURE__ */ i("span", { style: { textTransform: "capitalize" }, children: a.source.replace(/-/g, " ") }),
|
|
97
|
-
":",
|
|
98
|
-
" ",
|
|
99
|
-
a.message
|
|
100
|
-
] }, e)) }),
|
|
101
|
-
children: /* @__PURE__ */ i(
|
|
102
|
-
S,
|
|
103
|
-
{
|
|
104
|
-
size: "small",
|
|
105
|
-
variant: "outlined",
|
|
106
|
-
icon: /* @__PURE__ */ i(E, { icon: "material-symbols:timer-outline", color: v.palette.error.main }),
|
|
107
|
-
label: /* @__PURE__ */ n(s, { variant: "caption", textTransform: "capitalize", children: [
|
|
108
|
-
c("annotation.failed"),
|
|
109
|
-
": ",
|
|
110
|
-
m.length
|
|
111
|
-
] }),
|
|
112
|
-
onClick: h
|
|
113
|
-
}
|
|
114
|
-
)
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
] })
|
|
118
|
-
] }),
|
|
119
|
-
/* @__PURE__ */ i(z, {}),
|
|
120
|
-
Object.keys(b).filter((a) => !r || r === "all" || a === r).map((a, e) => /* @__PURE__ */ n(
|
|
121
|
-
$,
|
|
122
|
-
{
|
|
123
|
-
defaultExpanded: !0,
|
|
124
|
-
sx: {
|
|
125
|
-
marginTop: `${v.spacing(1)} !important`,
|
|
126
|
-
marginBottom: "0 !important",
|
|
127
|
-
"&:before": { height: 0 }
|
|
128
|
-
},
|
|
129
|
-
children: [
|
|
130
|
-
r === "all" && /* @__PURE__ */ i(
|
|
131
|
-
j,
|
|
132
|
-
{
|
|
133
|
-
expandIcon: /* @__PURE__ */ i(g, { icon: "ic:baseline-arrow-drop-down" }),
|
|
134
|
-
sx: {
|
|
135
|
-
minHeight: "initial !important",
|
|
136
|
-
mt: 0.5,
|
|
137
|
-
mb: 0,
|
|
138
|
-
px: 1,
|
|
139
|
-
"& .MuiAccordionSummary-content": { my: 0.5, mx: 0 },
|
|
140
|
-
"& .MuiAccordionSummary-content.Mui-expanded": { my: 0.5, mx: 0 }
|
|
141
|
-
},
|
|
142
|
-
children: /* @__PURE__ */ i(s, { variant: "body1", textTransform: "capitalize", children: a }, a)
|
|
143
|
-
}
|
|
144
|
-
),
|
|
145
|
-
/* @__PURE__ */ n(_, { sx: { px: 1 }, children: [
|
|
146
|
-
r === "all" && /* @__PURE__ */ i(u, { orientation: "horizontal", sx: { mb: 1 } }),
|
|
147
|
-
/* @__PURE__ */ i(l, { spacing: 1, divider: /* @__PURE__ */ i(u, { orientation: "horizontal", flexItem: !0 }), children: b[a].map((f, D) => /* @__PURE__ */ i(X, { annotation: f }, D)) })
|
|
148
|
-
] })
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
e
|
|
152
|
-
))
|
|
153
|
-
] });
|
|
154
|
-
}, Ei = V(ii);
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "../iconify-BBckr5AQ.js";
|
|
3
|
+
import "@mui/material";
|
|
4
|
+
import "./display/icons/Iconified.js";
|
|
5
|
+
import "../data/event.js";
|
|
6
|
+
import "../hooks/ClueComponentContext.js";
|
|
7
|
+
import "../hooks/selectors.js";
|
|
8
|
+
import "../hooks/useAnnotations.js";
|
|
9
|
+
import "../hooks/useErrors.js";
|
|
10
|
+
import "../icons/iconMap.js";
|
|
11
|
+
import "../utils/window.js";
|
|
12
|
+
import "../groupBy-BheQYl6f.js";
|
|
13
|
+
import { A as n } from "../AnnotationDetails-D5tBIeEw.js";
|
|
14
|
+
import "../ClueEnrichContext-DH9lqjwH.js";
|
|
15
|
+
import "react";
|
|
16
|
+
import "../index-E7g8cRyW.js";
|
|
17
|
+
import "./actions/ExecutePopover.js";
|
|
18
|
+
import "./AnnotationEntry.js";
|
|
19
|
+
import "./ClassificationChip.js";
|
|
20
|
+
import "./enrichment/EnrichPopover.js";
|
|
155
21
|
export {
|
|
156
|
-
|
|
22
|
+
n as default
|
|
157
23
|
};
|
|
@@ -1,56 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as e, jsx as i, Fragment as l } from "react/jsx-runtime";
|
|
2
2
|
import { I as o } from "../iconify-BBckr5AQ.js";
|
|
3
|
-
import { Stack as
|
|
4
|
-
import
|
|
5
|
-
import { t as m } from "../utils-
|
|
3
|
+
import { Stack as t, Typography as c, Chip as s, IconButton as a } from "@mui/material";
|
|
4
|
+
import n from "./display/icons/Iconified.js";
|
|
5
|
+
import { t as m } from "../utils-CD0rFIFU.js";
|
|
6
6
|
import { memo as p } from "react";
|
|
7
7
|
import d from "./AnnotationBody.js";
|
|
8
8
|
import f from "./ClassificationChip.js";
|
|
9
|
-
const y = ({ annotation: r }) => /* @__PURE__ */
|
|
10
|
-
/* @__PURE__ */
|
|
11
|
-
r.analytic_icon && /* @__PURE__ */
|
|
9
|
+
const y = ({ annotation: r }) => /* @__PURE__ */ e(t, { direction: "column", spacing: 1, children: [
|
|
10
|
+
/* @__PURE__ */ e(t, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
11
|
+
r.analytic_icon && /* @__PURE__ */ i(
|
|
12
12
|
o,
|
|
13
13
|
{
|
|
14
14
|
style: { alignSelf: "center", filter: "drop-shadow(0px 0px 1px rgb(0 0 0 / 0.4))" },
|
|
15
15
|
icon: r.analytic_icon
|
|
16
16
|
}
|
|
17
17
|
),
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
r.quantity > 1 && /* @__PURE__ */
|
|
18
|
+
/* @__PURE__ */ i(c, { variant: "body1", sx: { textTransform: "capitalize", maxWidth: "275px" }, children: r.analytic ?? r.author }),
|
|
19
|
+
r.quantity > 1 && /* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", children: [
|
|
20
20
|
"(x",
|
|
21
21
|
r.quantity,
|
|
22
22
|
")"
|
|
23
23
|
] }),
|
|
24
|
-
/* @__PURE__ */
|
|
25
|
-
r.version && /* @__PURE__ */
|
|
26
|
-
|
|
27
|
-
r.version.replace(/^v/, "")
|
|
28
|
-
] }) }),
|
|
29
|
-
r.link && /* @__PURE__ */ e(
|
|
30
|
-
n,
|
|
24
|
+
/* @__PURE__ */ i("div", { style: { flex: 1 } }),
|
|
25
|
+
r.version && /* @__PURE__ */ i(
|
|
26
|
+
s,
|
|
31
27
|
{
|
|
32
|
-
component: "a",
|
|
33
|
-
href: r.link,
|
|
34
|
-
onClick: () => window.open(r.link, "_blank", "noreferrer"),
|
|
35
|
-
target: "_blank",
|
|
36
|
-
rel: "noreferrer",
|
|
37
28
|
size: "small",
|
|
38
|
-
|
|
29
|
+
label: /* @__PURE__ */ e(l, { children: [
|
|
30
|
+
"v",
|
|
31
|
+
r.version.replace(/^v/, "")
|
|
32
|
+
] })
|
|
39
33
|
}
|
|
40
34
|
),
|
|
41
|
-
r.
|
|
35
|
+
r.link && /* @__PURE__ */ i(a, { component: "a", href: r.link, target: "_blank", rel: "noreferrer", size: "small", children: /* @__PURE__ */ i(n, { icon: "ic:baseline-open-in-new", fontSize: "small" }) }),
|
|
36
|
+
r.classification && /* @__PURE__ */ i(f, { size: "small", classification: r.classification })
|
|
42
37
|
] }),
|
|
43
|
-
/* @__PURE__ */
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
-
/* @__PURE__ */
|
|
48
|
-
!!r.latency && /* @__PURE__ */
|
|
38
|
+
/* @__PURE__ */ i(d, { annotation: r }),
|
|
39
|
+
/* @__PURE__ */ i(c, { variant: "caption", color: "text.secondary", children: r.summary }),
|
|
40
|
+
/* @__PURE__ */ e(t, { direction: "row", children: [
|
|
41
|
+
/* @__PURE__ */ i(c, { variant: "caption", color: "text.secondary", fontSize: "10px", children: m(r.timestamp) }),
|
|
42
|
+
/* @__PURE__ */ i("div", { style: { flex: 1 } }),
|
|
43
|
+
!!r.latency && /* @__PURE__ */ e(c, { variant: "caption", color: "text.secondary", fontSize: "10px", children: [
|
|
49
44
|
Math.round(r.latency),
|
|
50
45
|
"ms"
|
|
51
46
|
] })
|
|
52
47
|
] })
|
|
53
|
-
] }),
|
|
48
|
+
] }), w = p(y);
|
|
54
49
|
export {
|
|
55
|
-
|
|
50
|
+
w as default
|
|
56
51
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-BBckr5AQ.js";
|
|
3
3
|
import "@mui/material";
|
|
4
|
-
import { A as d } from "../AnnotationPreview-
|
|
4
|
+
import { A as d } from "../AnnotationPreview-CZr_CcZC.js";
|
|
5
5
|
import "../hooks/useAnnotations.js";
|
|
6
|
-
import "../utils-
|
|
6
|
+
import "../utils-CD0rFIFU.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../index-E7g8cRyW.js";
|
|
9
9
|
export {
|
|
@@ -10,10 +10,10 @@ import L from "../icons/Context.js";
|
|
|
10
10
|
import Q from "../icons/Opinion.js";
|
|
11
11
|
import { ICON_MAP as T } from "../icons/iconMap.js";
|
|
12
12
|
import R from "../text/Frequency.js";
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import Z from "
|
|
16
|
-
import
|
|
13
|
+
import { u as U } from "../ClueEnrichContext-DH9lqjwH.js";
|
|
14
|
+
import { memo as V, useState as X, useMemo as z, useCallback as Y } from "react";
|
|
15
|
+
import { u as Z } from "../index-E7g8cRyW.js";
|
|
16
|
+
import _ from "./AnnotationEntry.js";
|
|
17
17
|
const P = ({
|
|
18
18
|
type: o,
|
|
19
19
|
value: r,
|
|
@@ -23,10 +23,10 @@ const P = ({
|
|
|
23
23
|
hideLoading: y = !1,
|
|
24
24
|
...e
|
|
25
25
|
}) => {
|
|
26
|
-
const p = q(), { t: E } =
|
|
26
|
+
const p = q(), { t: E } = Z(H, (i) => i.i18next), u = b((i) => i.defaultClassification), x = b((i) => i.enrich), [S, A] = X("all"), l = z(
|
|
27
27
|
() => f ?? u,
|
|
28
28
|
[f, u]
|
|
29
|
-
), [n, k] = N(o, r, l), c = J(r), v = z(() => ["all", ...
|
|
29
|
+
), [n, k] = N(o, r, l), c = J(r), v = z(() => ["all", ...U(n.map((i) => i.type))], [n]), w = Y(() => x(o, r, {
|
|
30
30
|
classification: l,
|
|
31
31
|
timeout: 15,
|
|
32
32
|
force: !0
|
|
@@ -138,13 +138,13 @@ const P = ({
|
|
|
138
138
|
] }),
|
|
139
139
|
/* @__PURE__ */ t(s, { container: !0, spacing: 1, alignItems: "stretch", children: n.map((i, d) => (
|
|
140
140
|
// eslint-disable-next-line react/no-array-index-key
|
|
141
|
-
/* @__PURE__ */ t(s, { item: !0, xs: 6, minWidth: "300px", children: /* @__PURE__ */ t(G, { sx: { border: `thin solid ${p.palette.divider}`, p: 1, height: "100%" }, children: /* @__PURE__ */ t(
|
|
141
|
+
/* @__PURE__ */ t(s, { item: !0, xs: 6, minWidth: "300px", children: /* @__PURE__ */ t(G, { sx: { border: `thin solid ${p.palette.divider}`, p: 1, height: "100%" }, children: /* @__PURE__ */ t(_, { annotation: i }) }) }, d)
|
|
142
142
|
)) })
|
|
143
143
|
] })
|
|
144
144
|
]
|
|
145
145
|
}
|
|
146
146
|
);
|
|
147
|
-
}, hi =
|
|
147
|
+
}, hi = V(P);
|
|
148
148
|
export {
|
|
149
149
|
hi as default
|
|
150
150
|
};
|
|
@@ -3,7 +3,7 @@ import { Chip as B, Tooltip as G, Box as $, Stack as H, CircularProgress as J }
|
|
|
3
3
|
import K from "./display/icons/Iconified.js";
|
|
4
4
|
import { ClueComponentContext as L } from "../hooks/ClueComponentContext.js";
|
|
5
5
|
import { ClueGroupContext as N } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as E } from "../AnnotationPreview-
|
|
6
|
+
import { C as E } from "../AnnotationPreview-CZr_CcZC.js";
|
|
7
7
|
import { useClueEnrichSelector as Q } from "../hooks/selectors.js";
|
|
8
8
|
import U from "../hooks/useAnnotations.js";
|
|
9
9
|
import V from "../icons/Action.js";
|
|
@@ -3,7 +3,7 @@ import { useTheme as K, Stack as L, CircularProgress as N, Tooltip as Q, IconBut
|
|
|
3
3
|
import V from "./display/icons/Iconified.js";
|
|
4
4
|
import { ClueComponentContext as W } from "../hooks/ClueComponentContext.js";
|
|
5
5
|
import { ClueGroupContext as X } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as S } from "../AnnotationPreview-
|
|
6
|
+
import { C as S } from "../AnnotationPreview-CZr_CcZC.js";
|
|
7
7
|
import { useClueEnrichSelector as Y } from "../hooks/selectors.js";
|
|
8
8
|
import Z from "../hooks/useAnnotations.js";
|
|
9
9
|
import F from "../icons/Action.js";
|
|
@@ -3,14 +3,14 @@ import "@jsonforms/material-renderers";
|
|
|
3
3
|
import "@jsonforms/react";
|
|
4
4
|
import "@mui/material";
|
|
5
5
|
import "../display/icons/Iconified.js";
|
|
6
|
-
import "../../index-
|
|
6
|
+
import "../../index-CnaCBNrd.js";
|
|
7
7
|
import "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { A } from "../../ActionForm-
|
|
8
|
+
import { A } from "../../ActionForm-BtTv0s4P.js";
|
|
9
|
+
import "../../utils-CD0rFIFU.js";
|
|
9
10
|
import "react";
|
|
10
11
|
import "../../index-E7g8cRyW.js";
|
|
11
12
|
import "../ErrorBoundary.js";
|
|
12
13
|
import "./form/schemaAdapter.js";
|
|
13
|
-
import "../../utils-C_RX5uMP.js";
|
|
14
14
|
export {
|
|
15
15
|
A as default
|
|
16
16
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as o, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import { I as p } from "../../iconify-BBckr5AQ.js";
|
|
3
3
|
import { Modal as d, Paper as s, Stack as e, Typography as r, Divider as f, Button as m } from "@mui/material";
|
|
4
|
-
import { J as h } from "../../index-
|
|
4
|
+
import { J as h } from "../../index-CnaCBNrd.js";
|
|
5
5
|
import x from "../display/markdown/index.js";
|
|
6
6
|
import { ClueComponentContext as y } from "../../hooks/ClueComponentContext.js";
|
|
7
7
|
import { memo as u } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r, Fragment as b } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as m, Typography as u, Card as v, CardContent as k, Divider as d, Collapse as w } from "@mui/material";
|
|
3
|
-
import { a as y, f as S } from "../../../../utils-
|
|
3
|
+
import { a as y, f as S } from "../../../../utils-CD0rFIFU.js";
|
|
4
4
|
import { cssImportant as f } from "../../../../utils/graph.js";
|
|
5
5
|
import { b as A, c as h, t as I, a as L } from "../../../../_baseGet-Dgf6_xCm.js";
|
|
6
6
|
import { c as F, g as O, b as N } from "../../../../_baseClone-BlMmRXeX.js";
|
|
@@ -9,7 +9,7 @@ import { b as D } from "../../../../_baseSlice-M5RKzt1A.js";
|
|
|
9
9
|
import { b as M, s as G, o as T } from "../../../../_baseFlatten-CN7vDNEQ.js";
|
|
10
10
|
import { useState as g, useEffect as z, useCallback as B, Fragment as P } from "react";
|
|
11
11
|
import J from "../../icons/Iconified.js";
|
|
12
|
-
import { J as K } from "../../../../index-
|
|
12
|
+
import { J as K } from "../../../../index-CnaCBNrd.js";
|
|
13
13
|
import R from "../../markdown/index.js";
|
|
14
14
|
import $ from "../ExpandMoreButton.js";
|
|
15
15
|
import x from "./NodeTag.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as i, jsxs as l, Fragment as ye } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as m, useRef as ee, useState as u, useEffect as z, useCallback as f, createElement as ke } from "react";
|
|
3
3
|
import { useTheme as we, lighten as te, darken as oe, Stack as x, Card as R, Typography as Ce, alpha as ne, Autocomplete as ze, TextField as he, FormControl as Se, InputLabel as Ee, Select as Ie, MenuItem as Ne, IconButton as Oe, Collapse as Me } from "@mui/material";
|
|
4
|
-
import { p as Pe } from "../../../index-
|
|
4
|
+
import { p as Pe } from "../../../index-CnaCBNrd.js";
|
|
5
5
|
import { z as Fe, i as M, s as p, t as Re, p as ie } from "../../../index-p5_wX7q1.js";
|
|
6
6
|
import Te from "../../../hooks/useComparator.js";
|
|
7
7
|
import { useMyLocalStorageItem as T } from "../../../hooks/useMyLocalStorage.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import { J as l } from "../../../index-
|
|
4
|
-
import "../../../utils-
|
|
3
|
+
import { J as l } from "../../../index-CnaCBNrd.js";
|
|
4
|
+
import "../../../utils-CD0rFIFU.js";
|
|
5
5
|
import "../../../hooks/ClueComponentContext.js";
|
|
6
6
|
import "../../../hooks/useMyLocalStorage.js";
|
|
7
7
|
import "../../../utils/constants.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as y, Fragment as C, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme as k, Tooltip as S, IconButton as E, CircularProgress as d, Button as z, Popover as I, Paper as j, Stack as c, Box as P, Typography as B, Divider as O } from "@mui/material";
|
|
3
3
|
import { useClueComponentSelector as T, useClueEnrichSelector as p } from "../../hooks/selectors.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c as w } from "../../ActionForm-BtTv0s4P.js";
|
|
5
|
+
import { useState as m, useRef as M, useCallback as D, useEffect as F } from "react";
|
|
5
6
|
import g from "../display/icons/Iconified.js";
|
|
6
|
-
import { c as F } from "../../ActionForm-WIj7BfD5.js";
|
|
7
7
|
const J = ({ show: t = !1, size: b = "small", selector: n }) => {
|
|
8
|
-
const { t: s } = T((i) => i.i18next), h = k(), l = p((i) => i.availableSources), u = p((i) => i.enrich), [x, o] = m(t), [r, f] = m(!1), a =
|
|
8
|
+
const { t: s } = T((i) => i.i18next), h = k(), l = p((i) => i.availableSources), u = p((i) => i.enrich), [x, o] = m(t), [r, f] = m(!1), a = M(null), v = D(
|
|
9
9
|
async (i) => {
|
|
10
10
|
f(!0);
|
|
11
11
|
try {
|
|
@@ -23,7 +23,7 @@ const J = ({ show: t = !1, size: b = "small", selector: n }) => {
|
|
|
23
23
|
},
|
|
24
24
|
[u, n.classification, n.type, n.value]
|
|
25
25
|
);
|
|
26
|
-
return
|
|
26
|
+
return F(() => {
|
|
27
27
|
o(t);
|
|
28
28
|
}, [t]), /* @__PURE__ */ y(C, { children: [
|
|
29
29
|
b === "small" ? /* @__PURE__ */ e(S, { ref: a, title: s("enrich"), children: /* @__PURE__ */ e("span", { style: { alignSelf: "center" }, children: /* @__PURE__ */ e(
|
|
@@ -67,7 +67,7 @@ const J = ({ show: t = !1, size: b = "small", selector: n }) => {
|
|
|
67
67
|
"&:hover": { backgroundColor: h.palette.background.default }
|
|
68
68
|
},
|
|
69
69
|
onClick: () => v(i),
|
|
70
|
-
children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(c, { direction: "row", spacing: 1, alignItems: "center", children: /* @__PURE__ */ e(B, { variant: "body1", children: i.split("-").map(
|
|
70
|
+
children: /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(c, { direction: "row", spacing: 1, alignItems: "center", children: /* @__PURE__ */ e(B, { variant: "body1", children: i.split("-").map(w).join(" ") }) }) })
|
|
71
71
|
},
|
|
72
72
|
i
|
|
73
73
|
)) }) })
|
|
@@ -3,7 +3,7 @@ import { I } from "../../iconify-BBckr5AQ.js";
|
|
|
3
3
|
import { useTheme as J, Skeleton as A, Chip as N, Tooltip as z, Paper as O, Stack as x, Box as D, IconButton as E } from "@mui/material";
|
|
4
4
|
import { F } from "../../FlexOne-BXWFOd1T.js";
|
|
5
5
|
import w from "../display/icons/Iconified.js";
|
|
6
|
-
import { J as G } from "../../index-
|
|
6
|
+
import { J as G } from "../../index-CnaCBNrd.js";
|
|
7
7
|
import { ClueComponentContext as H } from "../../hooks/ClueComponentContext.js";
|
|
8
8
|
import { useClueFetcherSelector as g } from "../../hooks/selectors.js";
|
|
9
9
|
import L, { useState as s, useEffect as V, memo as W } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ClueGroupContext as s } from "../../hooks/ClueGroupContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { i as u } from "../../utils-CD0rFIFU.js";
|
|
3
|
+
import { memo as i, useEffect as a } from "react";
|
|
4
|
+
import { u as n } from "../../index-E7g8cRyW.js";
|
|
5
5
|
const p = ({ children: e, entry: t, selected: m = !1 }) => {
|
|
6
|
-
const r =
|
|
7
|
-
return
|
|
8
|
-
r == null || r((o) => [...o.filter((f) => !
|
|
6
|
+
const r = n(s, (o) => o == null ? void 0 : o.setValues);
|
|
7
|
+
return a(() => {
|
|
8
|
+
r == null || r((o) => [...o.filter((f) => !u(f, t)), ...m ? [t] : []]);
|
|
9
9
|
}, [t, m, r]), e;
|
|
10
|
-
}, G =
|
|
10
|
+
}, G = i(p);
|
|
11
11
|
export {
|
|
12
12
|
G as default
|
|
13
13
|
};
|
|
@@ -6,19 +6,19 @@ import { SNACKBAR_EVENT_ID as w } from "../../data/event.js";
|
|
|
6
6
|
import { ClueGroupContext as j } from "../../hooks/ClueGroupContext.js";
|
|
7
7
|
import { useClueComponentSelector as A, useClueEnrichSelector as u } from "../../hooks/selectors.js";
|
|
8
8
|
import { safeDispatchEvent as B } from "../../utils/window.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import D from "
|
|
12
|
-
import
|
|
9
|
+
import { c as F } from "../../ActionForm-BtTv0s4P.js";
|
|
10
|
+
import { useState as d, useMemo as O, useCallback as T } from "react";
|
|
11
|
+
import { u as D } from "../../index-E7g8cRyW.js";
|
|
12
|
+
import G from "../actions/ExecutePopover.js";
|
|
13
13
|
const U = () => {
|
|
14
|
-
const { t: n } = A((e) => e.i18next), { type: t, values: o, classification: a } =
|
|
14
|
+
const { t: n } = A((e) => e.i18next), { type: t, values: o, classification: a } = D(j, (e) => ({
|
|
15
15
|
type: e == null ? void 0 : e.type,
|
|
16
16
|
values: e == null ? void 0 : e.values,
|
|
17
17
|
classification: e == null ? void 0 : e.classification
|
|
18
|
-
})), f = u((e) => e.availableSources), c = u((e) => e.bulkEnrich), [i, p] = d(!1), [s, h] = d([]), C =
|
|
18
|
+
})), f = u((e) => e.availableSources), c = u((e) => e.bulkEnrich), [i, p] = d(!1), [s, h] = d([]), C = O(
|
|
19
19
|
() => (o ?? []).map((e) => ({ value: e, type: t, classification: a })),
|
|
20
20
|
[a, t, o]
|
|
21
|
-
), g =
|
|
21
|
+
), g = T(async () => {
|
|
22
22
|
if (!i)
|
|
23
23
|
try {
|
|
24
24
|
p(!0), await c(
|
|
@@ -69,7 +69,7 @@ const U = () => {
|
|
|
69
69
|
value: s,
|
|
70
70
|
onChange: (e, l) => h(l),
|
|
71
71
|
disableCloseOnSelect: !0,
|
|
72
|
-
getOptionLabel: (e) => e.split(/[_-]/).map((l) =>
|
|
72
|
+
getOptionLabel: (e) => e.split(/[_-]/).map((l) => F(l)).join(" ")
|
|
73
73
|
}
|
|
74
74
|
),
|
|
75
75
|
/* @__PURE__ */ r(
|
|
@@ -84,7 +84,7 @@ const U = () => {
|
|
|
84
84
|
children: n("enrich")
|
|
85
85
|
}
|
|
86
86
|
),
|
|
87
|
-
/* @__PURE__ */ r(
|
|
87
|
+
/* @__PURE__ */ r(G, { selectors: C, size: "medium", multiples: !0 })
|
|
88
88
|
] }) });
|
|
89
89
|
};
|
|
90
90
|
export {
|
package/database/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { ActionDefinitionsResponse, ActionResult } from "../types/action";
|
|
3
3
|
import { Selector } from "../types/lookup";
|
|
4
|
-
import {
|
|
4
|
+
import { WithActionData } from "../types/WithActionData";
|
|
5
5
|
import { FC, PropsWithChildren } from 'react';
|
|
6
6
|
|
|
7
7
|
export interface ClueActionContextType {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../useClueTypeConfig-
|
|
5
|
-
import { a as A, C as d } from "../ActionForm-
|
|
3
|
+
import "../index-Bo-v5IAc.js";
|
|
4
|
+
import "../useClueTypeConfig-CneP98N_.js";
|
|
5
|
+
import { a as A, C as d } from "../ActionForm-BtTv0s4P.js";
|
|
6
6
|
import "../components/actions/ResultModal.js";
|
|
7
7
|
import "../components/display/icons/Iconified.js";
|
|
8
8
|
import "../components/ErrorBoundary.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-BBckr5AQ.js";
|
|
3
|
-
import "../useClueTypeConfig-
|
|
3
|
+
import "../useClueTypeConfig-CneP98N_.js";
|
|
4
4
|
import "../utils/loggerUtil.js";
|
|
5
|
+
import { C as l, a as s } from "../ClueEnrichContext-DH9lqjwH.js";
|
|
6
|
+
import "../debounce-DryYcbJ4.js";
|
|
7
|
+
import "../groupBy-BheQYl6f.js";
|
|
5
8
|
import "react";
|
|
6
9
|
import "../index-E7g8cRyW.js";
|
|
7
10
|
import "./ClueDatabaseContext.js";
|
|
8
11
|
import "./useClueConfig.js";
|
|
9
|
-
import { C as l, a as s } from "../ClueEnrichContext-CbJVBm4w.js";
|
|
10
|
-
import "../groupBy-BheQYl6f.js";
|
|
11
|
-
import "../debounce-DryYcbJ4.js";
|
|
12
12
|
export {
|
|
13
13
|
l as ClueEnrichContext,
|
|
14
14
|
s as ClueEnrichProvider
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as $ } from "react/jsx-runtime";
|
|
2
|
-
import { a as R } from "../useClueTypeConfig-
|
|
2
|
+
import { a as R } from "../useClueTypeConfig-CneP98N_.js";
|
|
3
3
|
import { useState as m, useRef as j, useCallback as F, useEffect as d, useMemo as H } from "react";
|
|
4
4
|
import { c as J } from "../index-E7g8cRyW.js";
|
|
5
5
|
import K from "./useClue.js";
|