@cccsaurora/clue-ui 1.2.2 → 1.2.3-patch.269
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-DlOXqMUx.js → ActionForm-Ch0DGVGr.js} +216 -214
- package/{AnnotationDetails-Bk-p0F6h.js → AnnotationDetails-C8E_Xvaf.js} +1 -1
- package/{AnnotationPreview-jzZvkCxJ.js → AnnotationPreview-CLCms-Fm.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +2 -2
- package/components/AnnotationPreview.js +1 -1
- package/components/EnrichedCard.js +1 -1
- 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 +1 -1
- package/components/actions/ExecutePopover.js +1 -1
- package/components/actions/ResultModal.js +1 -1
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +61 -59
- 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/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +2 -2
- package/hooks/selectors.js +1 -1
- package/hooks/useActionResult.d.ts +1 -0
- package/hooks/useActionResult.js +1 -1
- package/hooks/useAnnotations.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.d.ts +1 -0
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +2 -2
- package/icons/Assessment.js +1 -1
- package/icons/Context.js +1 -1
- package/icons/Opinion.js +1 -1
- package/main.js +3 -3
- package/package.json +1 -1
- package/types/WithActionData.d.ts +2 -1
|
@@ -4,7 +4,7 @@ import { useTheme as M, Stack as l, Typography as s, Tooltip as x, Box as A, Ico
|
|
|
4
4
|
import g from "./components/display/icons/Iconified.js";
|
|
5
5
|
import { SNACKBAR_EVENT_ID as O } from "./data/event.js";
|
|
6
6
|
import { ClueComponentContext as F } from "./hooks/ClueComponentContext.js";
|
|
7
|
-
import { b as H } from "./ActionForm-
|
|
7
|
+
import { b as H } from "./ActionForm-Ch0DGVGr.js";
|
|
8
8
|
import K from "./hooks/useAnnotations.js";
|
|
9
9
|
import L from "./hooks/useErrors.js";
|
|
10
10
|
import { ICON_MAP as T } from "./icons/iconMap.js";
|
|
@@ -8,7 +8,7 @@ import { useState as v, useRef as Y, useCallback as x, useEffect as Z, useMemo a
|
|
|
8
8
|
import { c as B, u as G } from "./index-Dj5C04IX.js";
|
|
9
9
|
import { SHOW_EVENT_ID as g, HIDE_EVENT_ID as D } from "./data/event.js";
|
|
10
10
|
import { safeDispatchEvent as A, safeAddEventListener as S } from "./utils/window.js";
|
|
11
|
-
import { i as J } from "./AnnotationDetails-
|
|
11
|
+
import { i as J } from "./AnnotationDetails-C8E_Xvaf.js";
|
|
12
12
|
const b = B(null), rt = ({ children: c }) => {
|
|
13
13
|
const [l, e] = v(null), [p, i] = v(null), [r, d] = v(null), [u, m] = v(null), [f, t] = v({}), a = Y(null), P = x((s, o, z, N) => {
|
|
14
14
|
A(
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { A as k } from "../AnnotationDetails-
|
|
4
|
+
import { A as k } from "../AnnotationDetails-C8E_Xvaf.js";
|
|
5
5
|
const S = v.memo(({ anchorEl: t, enrichRequest: u, open: o, onClose: l, ...e }) => {
|
|
6
6
|
var f, s, m;
|
|
7
7
|
const a = c(), [x, n] = g(!1);
|
|
@@ -4,13 +4,13 @@ import "@mui/material";
|
|
|
4
4
|
import "./display/icons/Iconified.js";
|
|
5
5
|
import "../data/event.js";
|
|
6
6
|
import "../hooks/ClueComponentContext.js";
|
|
7
|
-
import "../ActionForm-
|
|
7
|
+
import "../ActionForm-Ch0DGVGr.js";
|
|
8
8
|
import "../hooks/useAnnotations.js";
|
|
9
9
|
import "../hooks/useErrors.js";
|
|
10
10
|
import "../icons/iconMap.js";
|
|
11
11
|
import "../utils/window.js";
|
|
12
12
|
import "../groupBy-br8xmD2R.js";
|
|
13
|
-
import { A as n } from "../AnnotationDetails-
|
|
13
|
+
import { A as n } from "../AnnotationDetails-C8E_Xvaf.js";
|
|
14
14
|
import "../useClueTypeConfig-Ct9Ygter.js";
|
|
15
15
|
import "react";
|
|
16
16
|
import "../index-Dj5C04IX.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
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-CLCms-Fm.js";
|
|
5
5
|
import "../hooks/useAnnotations.js";
|
|
6
6
|
import "../utils-DmwSUrum.js";
|
|
7
7
|
import "react";
|
|
@@ -2,7 +2,7 @@ import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as C } from "../iconify-BBckr5AQ.js";
|
|
3
3
|
import { useTheme as F, Card as M, CardHeader as O, Stack as W, CircularProgress as B, Divider as D, CardContent as G, Grid as c, Chip as g, Typography as b, Tooltip as H, Box as N } from "@mui/material";
|
|
4
4
|
import { ClueComponentContext as R } from "../hooks/ClueComponentContext.js";
|
|
5
|
-
import { b as v } from "../ActionForm-
|
|
5
|
+
import { b as v } from "../ActionForm-Ch0DGVGr.js";
|
|
6
6
|
import _ from "../hooks/useAnnotations.js";
|
|
7
7
|
import $ from "../hooks/useErrors.js";
|
|
8
8
|
import J from "../icons/Assessment.js";
|
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
import { b as Q } from "../ActionForm-
|
|
6
|
+
import { C as E } from "../AnnotationPreview-CLCms-Fm.js";
|
|
7
|
+
import { b as Q } from "../ActionForm-Ch0DGVGr.js";
|
|
8
8
|
import U from "../hooks/useAnnotations.js";
|
|
9
9
|
import V from "../icons/Action.js";
|
|
10
10
|
import v from "../icons/Assessment.js";
|
|
@@ -3,8 +3,8 @@ import { useTheme as K, Stack as L, CircularProgress as Q, Tooltip as U, IconBut
|
|
|
3
3
|
import W from "./display/icons/Iconified.js";
|
|
4
4
|
import { ClueComponentContext as X } from "../hooks/ClueComponentContext.js";
|
|
5
5
|
import { ClueGroupContext as Y } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as j } from "../AnnotationPreview-
|
|
7
|
-
import { b as Z } from "../ActionForm-
|
|
6
|
+
import { C as j } from "../AnnotationPreview-CLCms-Fm.js";
|
|
7
|
+
import { b as Z } from "../ActionForm-Ch0DGVGr.js";
|
|
8
8
|
import F from "../hooks/useAnnotations.js";
|
|
9
9
|
import _ from "../icons/Action.js";
|
|
10
10
|
import z from "../icons/Assessment.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Button as o } from "@mui/material";
|
|
3
3
|
import { ClueComponentContext as i } from "../hooks/ClueComponentContext.js";
|
|
4
|
-
import { b as c } from "../ActionForm-
|
|
4
|
+
import { b as c } from "../ActionForm-Ch0DGVGr.js";
|
|
5
5
|
import { u as m } from "../index-Dj5C04IX.js";
|
|
6
6
|
const p = () => {
|
|
7
7
|
const t = c((e) => e.enrichFailedEnrichments), { t: r } = m(i, (e) => e.i18next);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, Fragment as k, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { Button as v, Popover as w, TextField as z, Divider as _, Stack as F, FormControlLabel as d, Checkbox as m } from "@mui/material";
|
|
3
|
-
import { d as E, b as a } from "../ActionForm-
|
|
3
|
+
import { d as E, b as a } from "../ActionForm-Ch0DGVGr.js";
|
|
4
4
|
import { memo as P, useState as g, useEffect as T } from "react";
|
|
5
5
|
const L = () => {
|
|
6
6
|
const { t: r } = E((e) => e.i18next), o = a((e) => e.availableSources), t = a((e) => e.sources), c = a((e) => e.setSources), [s, i] = g(null), [h, x] = g(), f = (e) => {
|
|
@@ -5,7 +5,7 @@ import "@mui/material";
|
|
|
5
5
|
import "../display/icons/Iconified.js";
|
|
6
6
|
import "../../index-BK-zfYhR.js";
|
|
7
7
|
import "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { A } from "../../ActionForm-
|
|
8
|
+
import { A } from "../../ActionForm-Ch0DGVGr.js";
|
|
9
9
|
import "../../utils-DmwSUrum.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "../../index-Dj5C04IX.js";
|
|
@@ -3,7 +3,7 @@ import { I as O } from "../../iconify-BBckr5AQ.js";
|
|
|
3
3
|
import { useTheme as w, Tooltip as S, IconButton as z, CircularProgress as E, Button as D, Popover as M, Paper as B, Stack as l, Typography as I, Box as T, Divider as F } from "@mui/material";
|
|
4
4
|
import h from "../display/icons/Iconified.js";
|
|
5
5
|
import { ClueComponentContext as R } from "../../hooks/ClueComponentContext.js";
|
|
6
|
-
import { a } from "../../ActionForm-
|
|
6
|
+
import { a } from "../../ActionForm-Ch0DGVGr.js";
|
|
7
7
|
import W from "../../hooks/useClueConfig.js";
|
|
8
8
|
import { isAccessible as q } from "../../utils/classificationParser.js";
|
|
9
9
|
import { useState as G, useRef as H, useMemo as J, useEffect as P } from "react";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../iconify-BBckr5AQ.js";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "../../hooks/ClueComponentContext.js";
|
|
5
|
-
import { R as s } from "../../ActionForm-
|
|
5
|
+
import { R as s } from "../../ActionForm-Ch0DGVGr.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../index-Dj5C04IX.js";
|
|
8
8
|
import "../ClassificationChip.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
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 f, 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
|
-
import { d as T, b as p, e as w } from "../../ActionForm-
|
|
3
|
+
import { d as T, b as p, e as w } from "../../ActionForm-Ch0DGVGr.js";
|
|
4
4
|
import { useState as m, useRef as M, useCallback as D, useEffect as F } from "react";
|
|
5
5
|
import g from "../display/icons/Iconified.js";
|
|
6
6
|
const H = ({ show: t = !1, size: b = "small", selector: n }) => {
|
|
@@ -1,60 +1,62 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as t, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { I as H } from "../../iconify-BBckr5AQ.js";
|
|
3
|
-
import { useTheme as V, Skeleton as I, Chip as q, Tooltip as J, Stack as
|
|
3
|
+
import { useTheme as V, Skeleton as I, Chip as q, Tooltip as J, Stack as f, Typography as K, LinearProgress as Q, Paper as U, Box as X, IconButton as Y } from "@mui/material";
|
|
4
4
|
import { F as L } from "../../FlexOne-BXWFOd1T.js";
|
|
5
5
|
import S from "../display/icons/Iconified.js";
|
|
6
6
|
import { J as Z } from "../../index-BK-zfYhR.js";
|
|
7
7
|
import { ClueComponentContext as $ } from "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { c as
|
|
8
|
+
import { c as s } from "../../ActionForm-Ch0DGVGr.js";
|
|
9
9
|
import p, { useState as b, useRef as k, useMemo as P, useEffect as N, memo as ee } from "react";
|
|
10
|
-
import { u as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
10
|
+
import { u as te } from "../../index-Dj5C04IX.js";
|
|
11
|
+
import re from "../display/graph/index.js";
|
|
12
|
+
import ie from "../display/markdown/index.js";
|
|
13
|
+
import ne from "./PreviewModal.js";
|
|
14
14
|
import oe from "./StatusChip.js";
|
|
15
15
|
const ae = p.memo(
|
|
16
16
|
({
|
|
17
|
-
type:
|
|
17
|
+
type: h,
|
|
18
18
|
value: x,
|
|
19
19
|
classification: g,
|
|
20
20
|
fetcherId: a,
|
|
21
21
|
slotProps: {
|
|
22
|
-
paper:
|
|
22
|
+
paper: n = {},
|
|
23
23
|
preview: O = {},
|
|
24
24
|
stack: o = {},
|
|
25
25
|
image: W = {},
|
|
26
26
|
chip: v = {},
|
|
27
|
-
skeleton:
|
|
27
|
+
skeleton: i = {}
|
|
28
28
|
} = {}
|
|
29
29
|
}) => {
|
|
30
30
|
var z, M, T, j;
|
|
31
|
-
const d = V(), w =
|
|
31
|
+
const d = V(), w = s((r) => r.fetchers), F = s((r) => r.fetchSelector), R = s((r) => r.getFetcherStatus), D = s((r) => r.fetchCompleted), { t: m } = te($, (r) => r == null ? void 0 : r.i18next), [e, c] = b(null), [E, A] = b(!0), [G, _] = b(!1), y = k(null), C = P(() => e == null ? void 0 : e.task_id, [e == null ? void 0 : e.task_id]);
|
|
32
32
|
if (N(() => {
|
|
33
33
|
if ((e == null ? void 0 : e.outcome) !== "pending" || !C) return;
|
|
34
|
-
let
|
|
34
|
+
let r = !1;
|
|
35
35
|
const B = async () => {
|
|
36
|
-
const
|
|
37
|
-
if (!
|
|
38
|
-
|
|
39
|
-
else if (
|
|
40
|
-
|
|
36
|
+
const u = await R(a, C);
|
|
37
|
+
if (!u)
|
|
38
|
+
c({ outcome: "failure", done: !0, error: "Missing result", link: "" });
|
|
39
|
+
else if (u.outcome === "success" || u.outcome === "failure")
|
|
40
|
+
c({ ...u, done: !0 });
|
|
41
41
|
else {
|
|
42
|
-
if (
|
|
43
|
-
|
|
42
|
+
if (r) return;
|
|
43
|
+
c({ ...u }), y.current = setTimeout(B, 2e3);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
return B(), () => {
|
|
47
|
-
|
|
47
|
+
r = !0, y.current && clearTimeout(y.current);
|
|
48
48
|
};
|
|
49
49
|
}, [a, R, e == null ? void 0 : e.outcome, C]), N(() => {
|
|
50
50
|
(async () => {
|
|
51
51
|
try {
|
|
52
|
-
A(!0),
|
|
52
|
+
A(!0), c(await F(a, { type: h, value: x, classification: g }));
|
|
53
|
+
} catch {
|
|
54
|
+
c({ outcome: "failure", done: !0, error: m("fetcher.error.unexpected") });
|
|
53
55
|
} finally {
|
|
54
56
|
A(!1);
|
|
55
57
|
}
|
|
56
58
|
})();
|
|
57
|
-
}, [g, F, a,
|
|
59
|
+
}, [g, F, a, m, h, x]), D)
|
|
58
60
|
if (a)
|
|
59
61
|
if (a.includes(".")) {
|
|
60
62
|
if (!(a in w))
|
|
@@ -65,29 +67,29 @@ const ae = p.memo(
|
|
|
65
67
|
else return console.warn("Missing fetcher Id. Component will not render."), null;
|
|
66
68
|
else
|
|
67
69
|
return null;
|
|
68
|
-
return E ? ((z = w[a]) == null ? void 0 : z.format) === "status" ? /* @__PURE__ */
|
|
70
|
+
return E ? ((z = w[a]) == null ? void 0 : z.format) === "status" ? /* @__PURE__ */ t(
|
|
69
71
|
I,
|
|
70
72
|
{
|
|
71
73
|
variant: "rounded",
|
|
72
74
|
height: "32px",
|
|
73
75
|
width: "150px",
|
|
74
|
-
...
|
|
76
|
+
...i,
|
|
75
77
|
sx: [
|
|
76
78
|
{ borderRadius: "16px" },
|
|
77
|
-
...Array.isArray(
|
|
79
|
+
...Array.isArray(i == null ? void 0 : i.sx) ? i == null ? void 0 : i.sx : [i == null ? void 0 : i.sx]
|
|
78
80
|
]
|
|
79
81
|
}
|
|
80
|
-
) : /* @__PURE__ */
|
|
82
|
+
) : /* @__PURE__ */ t(I, { variant: "rounded", height: "325px", width: "300px", ...i }) : e ? e.outcome === "failure" && w[a].format === "status" ? /* @__PURE__ */ t(
|
|
81
83
|
q,
|
|
82
84
|
{
|
|
83
|
-
icon: /* @__PURE__ */
|
|
84
|
-
label:
|
|
85
|
+
icon: /* @__PURE__ */ t(J, { title: e.error, children: /* @__PURE__ */ t(H, { icon: "mdi:information-outline", fontSize: "1.25rem" }) }),
|
|
86
|
+
label: m("error"),
|
|
85
87
|
color: "error",
|
|
86
88
|
...v
|
|
87
89
|
}
|
|
88
|
-
) : e.outcome === "pending" ? /* @__PURE__ */
|
|
89
|
-
((M = e.data) == null ? void 0 : M.summary) && /* @__PURE__ */
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
) : e.outcome === "pending" ? /* @__PURE__ */ l(f, { flex: 1, sx: { pt: 2, alignItems: "center" }, spacing: 1, children: [
|
|
91
|
+
((M = e.data) == null ? void 0 : M.summary) && /* @__PURE__ */ t(K, { variant: "caption", children: e.data.summary }),
|
|
92
|
+
/* @__PURE__ */ t(
|
|
91
93
|
Q,
|
|
92
94
|
{
|
|
93
95
|
variant: (T = e.data) != null && T.progress ? "determinate" : "indeterminate",
|
|
@@ -95,10 +97,10 @@ const ae = p.memo(
|
|
|
95
97
|
sx: { maxWidth: 500, width: "100%", borderRadius: d.shape.borderRadius }
|
|
96
98
|
}
|
|
97
99
|
)
|
|
98
|
-
] }) :
|
|
100
|
+
] }) : e.format === "status" ? /* @__PURE__ */ t(oe, { data: e.data, ...v }) : /* @__PURE__ */ t(
|
|
99
101
|
U,
|
|
100
102
|
{
|
|
101
|
-
...
|
|
103
|
+
...n,
|
|
102
104
|
sx: [
|
|
103
105
|
{
|
|
104
106
|
p: 1,
|
|
@@ -107,10 +109,10 @@ const ae = p.memo(
|
|
|
107
109
|
width: "100%",
|
|
108
110
|
minWidth: "300px"
|
|
109
111
|
},
|
|
110
|
-
...Array.isArray(
|
|
112
|
+
...Array.isArray(n == null ? void 0 : n.sx) ? n == null ? void 0 : n.sx : [n == null ? void 0 : n.sx]
|
|
111
113
|
],
|
|
112
|
-
children: /* @__PURE__ */
|
|
113
|
-
|
|
114
|
+
children: /* @__PURE__ */ l(
|
|
115
|
+
f,
|
|
114
116
|
{
|
|
115
117
|
sx: {
|
|
116
118
|
"& > img": {
|
|
@@ -124,14 +126,14 @@ const ae = p.memo(
|
|
|
124
126
|
}
|
|
125
127
|
},
|
|
126
128
|
children: [
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
/* @__PURE__ */
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
129
|
+
e.outcome === "failure" && /* @__PURE__ */ t("code", { style: { color: d.palette.error.main }, children: /* @__PURE__ */ t("pre", { style: { marginTop: 0, marginBottom: 0 }, children: e.error }) }),
|
|
130
|
+
e.format === "markdown" && /* @__PURE__ */ t(ie, { md: e.data }),
|
|
131
|
+
e.format === "image" && /* @__PURE__ */ t("img", { src: e.data.image, alt: e.data.alt, ...W, onClick: () => _(!0) }),
|
|
132
|
+
e.format === "json" && /* @__PURE__ */ t(X, { sx: { ".react-json-view": { backgroundColor: "transparent !important" } }, children: /* @__PURE__ */ t(Z, { data: e.data }) }),
|
|
133
|
+
e.format === "graph" && /* @__PURE__ */ t(re, { graph: e.data, sx: { minHeight: "600px" } }),
|
|
134
|
+
/* @__PURE__ */ t(L, {}),
|
|
135
|
+
/* @__PURE__ */ l(
|
|
136
|
+
f,
|
|
135
137
|
{
|
|
136
138
|
direction: "row",
|
|
137
139
|
spacing: 1,
|
|
@@ -145,41 +147,41 @@ const ae = p.memo(
|
|
|
145
147
|
...Array.isArray(o == null ? void 0 : o.sx) ? o == null ? void 0 : o.sx : [o == null ? void 0 : o.sx]
|
|
146
148
|
],
|
|
147
149
|
children: [
|
|
148
|
-
/* @__PURE__ */
|
|
149
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ t(S, { icon: "ic:baseline-landscape", color: "primary", fontSize: "small" }),
|
|
151
|
+
/* @__PURE__ */ t(
|
|
150
152
|
J,
|
|
151
153
|
{
|
|
152
|
-
title: /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
154
|
+
title: /* @__PURE__ */ l(f, { spacing: 0.5, children: [
|
|
155
|
+
/* @__PURE__ */ l("span", { children: [
|
|
156
|
+
m("type"),
|
|
155
157
|
": ",
|
|
156
|
-
|
|
158
|
+
h
|
|
157
159
|
] }),
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
|
|
160
|
+
/* @__PURE__ */ l("span", { children: [
|
|
161
|
+
m("value"),
|
|
160
162
|
": ",
|
|
161
163
|
x
|
|
162
164
|
] }),
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
+
/* @__PURE__ */ l("span", { children: [
|
|
166
|
+
m("classification"),
|
|
165
167
|
": ",
|
|
166
168
|
g ?? "N/A"
|
|
167
169
|
] })
|
|
168
170
|
] }),
|
|
169
|
-
children: /* @__PURE__ */
|
|
171
|
+
children: /* @__PURE__ */ t(S, { icon: "ic:outline-info", fontSize: "small" })
|
|
170
172
|
}
|
|
171
173
|
),
|
|
172
|
-
/* @__PURE__ */
|
|
173
|
-
|
|
174
|
+
/* @__PURE__ */ t(L, {}),
|
|
175
|
+
e.link && /* @__PURE__ */ t(Y, { size: "small", component: "a", href: e.link, children: /* @__PURE__ */ t(S, { icon: "ic:baseline-open-in-new", fontSize: "small" }) })
|
|
174
176
|
]
|
|
175
177
|
}
|
|
176
178
|
),
|
|
177
|
-
/* @__PURE__ */
|
|
179
|
+
/* @__PURE__ */ t(ne, { ...O, open: G, result: e, onClose: () => _(!1) })
|
|
178
180
|
]
|
|
179
181
|
}
|
|
180
182
|
)
|
|
181
183
|
}
|
|
182
|
-
);
|
|
184
|
+
) : null;
|
|
183
185
|
}
|
|
184
186
|
), be = ee(ae);
|
|
185
187
|
export {
|
|
@@ -4,7 +4,7 @@ import { F as _ } from "../../FlexOne-BXWFOd1T.js";
|
|
|
4
4
|
import k from "../display/icons/Iconified.js";
|
|
5
5
|
import { SNACKBAR_EVENT_ID as w } from "../../data/event.js";
|
|
6
6
|
import { ClueGroupContext as j } from "../../hooks/ClueGroupContext.js";
|
|
7
|
-
import { d as A, b as m, e as B } from "../../ActionForm-
|
|
7
|
+
import { d as A, b as m, e as B } from "../../ActionForm-Ch0DGVGr.js";
|
|
8
8
|
import { safeDispatchEvent as F } from "../../utils/window.js";
|
|
9
9
|
import { useState as d, useMemo as O, useCallback as T } from "react";
|
|
10
10
|
import { u as D } from "../../index-Dj5C04IX.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as e } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as b, Typography as r } from "@mui/material";
|
|
3
3
|
import { ClueDatabaseContext as C } from "../../hooks/ClueDatabaseContext.js";
|
|
4
|
-
import { d as y, b as g } from "../../ActionForm-
|
|
4
|
+
import { d as y, b as g } from "../../ActionForm-Ch0DGVGr.js";
|
|
5
5
|
import { useContext as x, useState as u, useEffect as h } from "react";
|
|
6
6
|
const P = () => {
|
|
7
7
|
const { t: o } = y((t) => t.i18next), s = x(C), c = g((t) => t.ready), [i, m] = u(0), [a, d] = u(0), [l, f] = u(0);
|
package/en/translation.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"drawer.mail.trash": "Trash",
|
|
52
52
|
"enrich": "Enrich",
|
|
53
53
|
"error": "Error",
|
|
54
|
+
"fetcher.error.unexpected": "An unexpected error occurred",
|
|
54
55
|
"graph.no.dataset": "No dataset has been selected!",
|
|
55
56
|
"graph.node.input.label": "Enter a node ID, and press [ctrl + enter] to select it. [ctrl + space] will open an autocomplete menu.",
|
|
56
57
|
"graph.show.more": "show more",
|
package/fr/translation.json
CHANGED
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"drawer.mail.trash": "Poubelle",
|
|
52
52
|
"enrich": "Enrichir",
|
|
53
53
|
"error": "Erreur",
|
|
54
|
+
"fetcher.error.unexpected": "Une erreur inattendue s'est produite",
|
|
54
55
|
"graph.no.dataset": "Aucun jeu de données n'a été sélectionné!",
|
|
55
56
|
"graph.node.input.label": "Entrez un ID de nœud et appuyez sur [ctrl + entrée] pour le sélectionner. [ctrl + espace] ouvrira un menu d'auto-complétion.",
|
|
56
57
|
"graph.show.more": "Afficher plus",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import { g as A, C as d } from "../ActionForm-
|
|
3
|
+
import { g as A, C as d } from "../ActionForm-Ch0DGVGr.js";
|
|
4
4
|
import "../useClueTypeConfig-Ct9Ygter.js";
|
|
5
5
|
import "../components/display/icons/Iconified.js";
|
|
6
6
|
import "../components/ErrorBoundary.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { useState as n, useMemo as c } from "react";
|
|
3
3
|
import { c as m } from "../index-Dj5C04IX.js";
|
|
4
|
-
import { b as f } from "../ActionForm-
|
|
4
|
+
import { b as f } from "../ActionForm-Ch0DGVGr.js";
|
|
5
5
|
const C = m(null), G = ({ children: s, type: o, classification: t }) => {
|
|
6
6
|
const e = f((i) => i.defaultClassification), [r, u] = n([]), a = c(
|
|
7
7
|
() => ({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../components/AnnotationDetailPopover.js";
|
|
3
|
-
import { C as a, a as P } from "../AnnotationPreview-
|
|
3
|
+
import { C as a, a as P } from "../AnnotationPreview-CLCms-Fm.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-C8E_Xvaf.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../index-Dj5C04IX.js";
|
|
9
9
|
export {
|
package/hooks/ClueProvider.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { C as i } from "../ActionForm-
|
|
2
|
+
import { C as i } from "../ActionForm-Ch0DGVGr.js";
|
|
3
3
|
import { ClueComponentProvider as m } from "./ClueComponentContext.js";
|
|
4
4
|
import { ClueConfigProvider as n } from "./ClueConfigProvider.js";
|
|
5
5
|
import { ClueDatabaseProvider as t } from "./ClueDatabaseContext.js";
|
|
6
6
|
import { a as d } from "../ClueEnrichContext-KqRuuWNS.js";
|
|
7
7
|
import { ClueFetcherProvider as l } from "./ClueFetcherContext.js";
|
|
8
|
-
import { a as c } from "../AnnotationPreview-
|
|
8
|
+
import { a as c } from "../AnnotationPreview-CLCms-Fm.js";
|
|
9
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 }) }) }) }) }) }) });
|
|
10
10
|
export {
|
|
11
11
|
p as ClueProvider
|
package/hooks/selectors.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as l, d as u, b as i, c as m } from "../ActionForm-
|
|
1
|
+
import { a as l, d as u, b as i, c as m } from "../ActionForm-Ch0DGVGr.js";
|
|
2
2
|
import "./ClueComponentContext.js";
|
|
3
3
|
import "../ClueEnrichContext-KqRuuWNS.js";
|
|
4
4
|
import "./ClueFetcherContext.js";
|
package/hooks/useActionResult.js
CHANGED
package/hooks/useAnnotations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { u as p } from "../ClueEnrichContext-KqRuuWNS.js";
|
|
2
2
|
import { useContext as q, useMemo as d, useState as h, useEffect as u } from "react";
|
|
3
3
|
import { ClueDatabaseContext as A } from "./ClueDatabaseContext.js";
|
|
4
|
-
import { b as i } from "../ActionForm-
|
|
4
|
+
import { b as i } from "../ActionForm-Ch0DGVGr.js";
|
|
5
5
|
const D = (n, o, l, { skipEnrichment: a } = { skipEnrichment: !1 }) => {
|
|
6
6
|
const s = q(A), f = i((t) => t.defaultClassification), m = i((t) => t.ready), g = i((t) => t.availableSources), b = i((t) => t.queueEnrich), e = d(
|
|
7
7
|
() => l ?? f,
|
package/hooks/useClueActions.js
CHANGED
package/hooks/useErrors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useContext as a, useState as i, useEffect as l } from "react";
|
|
2
2
|
import { ClueDatabaseContext as f } from "./ClueDatabaseContext.js";
|
|
3
|
-
import { b as m } from "../ActionForm-
|
|
3
|
+
import { b as m } from "../ActionForm-Ch0DGVGr.js";
|
|
4
4
|
const C = (r) => {
|
|
5
5
|
const e = a(f), o = m((s) => s.ready), [n, u] = i([]);
|
|
6
6
|
return l(() => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState as S, useRef as T, useMemo as d, useEffect as g } from "react";
|
|
2
|
-
import { u as _ } from "../ActionForm-
|
|
2
|
+
import { u as _ } from "../ActionForm-Ch0DGVGr.js";
|
|
3
3
|
const y = (o, p = 2e3) => {
|
|
4
4
|
const [e, n] = S(o), f = T(null), { getActionStatus: I } = _(), m = d(() => o == null ? void 0 : o.task_id, [o == null ? void 0 : o.task_id]), R = d(() => o == null ? void 0 : o.actionId, [o == null ? void 0 : o.actionId]);
|
|
5
5
|
return g(() => {
|
package/icons/Action.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx as e, jsxs as z } from "react/jsx-runtime";
|
|
|
2
2
|
import { I } from "../iconify-BBckr5AQ.js";
|
|
3
3
|
import { useTheme as j, Stack as i, Divider as l, Typography as C } from "@mui/material";
|
|
4
4
|
import R from "../components/CountBadge.js";
|
|
5
|
-
import { C as v } from "../AnnotationPreview-
|
|
6
|
-
import { u as B } from "../ActionForm-
|
|
5
|
+
import { C as v } from "../AnnotationPreview-CLCms-Fm.js";
|
|
6
|
+
import { u as B } from "../ActionForm-Ch0DGVGr.js";
|
|
7
7
|
import { g as D } from "../groupBy-br8xmD2R.js";
|
|
8
8
|
import { memo as L, useRef as A, useMemo as s, useEffect as O } from "react";
|
|
9
9
|
import { u as M } from "../index-Dj5C04IX.js";
|
package/icons/Assessment.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as b, Fragment as k, jsx as s } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as l } from "../iconify-BBckr5AQ.js";
|
|
3
3
|
import { useTheme as j, Stack as y, Chip as I, Divider as q, Grid as C, Tooltip as A } from "@mui/material";
|
|
4
4
|
import z from "../components/CountBadge.js";
|
|
5
|
-
import { C as w } from "../AnnotationPreview-
|
|
5
|
+
import { C as w } from "../AnnotationPreview-CLCms-Fm.js";
|
|
6
6
|
import { g as O } from "../groupBy-br8xmD2R.js";
|
|
7
7
|
import { l as P } from "../last-7CdUxN0r.js";
|
|
8
8
|
import { m as L } from "../maxBy-Bc0dYHcO.js";
|
package/icons/Context.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Stack as u, Divider as z } from "@mui/material";
|
|
|
4
4
|
import v from "../components/AnnotationEntry.js";
|
|
5
5
|
import E from "../components/CountBadge.js";
|
|
6
6
|
import M from "../components/display/icons/Iconified.js";
|
|
7
|
-
import { C as x } from "../AnnotationPreview-
|
|
7
|
+
import { C as x } from "../AnnotationPreview-CLCms-Fm.js";
|
|
8
8
|
import { g as O } from "../groupBy-br8xmD2R.js";
|
|
9
9
|
import { memo as j, useRef as k, useMemo as h, useEffect as B } from "react";
|
|
10
10
|
import { u as g } from "../index-Dj5C04IX.js";
|
package/icons/Opinion.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as x, Fragment as R, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as u } from "../iconify-BBckr5AQ.js";
|
|
3
3
|
import { useTheme as S, Stack as b, Chip as y, Divider as j, Grid as I } from "@mui/material";
|
|
4
4
|
import q from "../components/CountBadge.js";
|
|
5
|
-
import { C as v } from "../AnnotationPreview-
|
|
5
|
+
import { C as v } from "../AnnotationPreview-CLCms-Fm.js";
|
|
6
6
|
import { g as B } from "../groupBy-br8xmD2R.js";
|
|
7
7
|
import { s as E } from "../sortBy-DY2JBf9n.js";
|
|
8
8
|
import { s as M } from "../sumBy-DuMASLPd.js";
|
package/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as t, u as r, a, b as f, c as u } from "./ActionForm-
|
|
1
|
+
import { A as t, u as r, a, b as f, c as u } from "./ActionForm-Ch0DGVGr.js";
|
|
2
2
|
import { default as n } from "./components/AnnotationDetailPopover.js";
|
|
3
|
-
import { A as l } from "./AnnotationDetails-
|
|
3
|
+
import { A as l } from "./AnnotationDetails-C8E_Xvaf.js";
|
|
4
4
|
import { default as m } from "./components/AnnotationEntry.js";
|
|
5
|
-
import { A as d, C as i } from "./AnnotationPreview-
|
|
5
|
+
import { A as d, C as i } from "./AnnotationPreview-CLCms-Fm.js";
|
|
6
6
|
import { default as A } from "./components/CountBadge.js";
|
|
7
7
|
import { default as E } from "./components/EnrichedCard.js";
|
|
8
8
|
import { default as b } from "./components/EnrichedChip.js";
|