@cccsaurora/clue-ui 1.2.0 → 1.2.1-patch.258
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-pWyIi01Z.js → ActionForm-DlOXqMUx.js} +4 -4
- package/{AnnotationDetails-11P7yhyx.js → AnnotationDetails-Bk-p0F6h.js} +3 -3
- package/{AnnotationPreview-BGqlBBcp.js → AnnotationPreview-jzZvkCxJ.js} +2 -2
- package/{ClueEnrichContext-DDZf646J.js → ClueEnrichContext-KqRuuWNS.js} +4 -4
- package/{_Uint8Array-TJBs9NS2.js → _Uint8Array-BQNOM9Rr.js} +1 -1
- package/{_baseClone-DajKHDCs.js → _baseClone-BnT-6pyM.js} +3 -3
- package/_baseExtremum-Ca2EHgy2.js +16 -0
- package/{_baseFlatten-C8CjmqQ-.js → _baseFlatten-Bfr_Molw.js} +2 -2
- package/{_baseIsEqual-C08cUUpA.js → _baseIsEqual-VgvaAFZG.js} +5 -5
- package/{_baseIteratee-DGZdhdqr.js → _baseIteratee-Dbfsw5z8.js} +3 -3
- package/{_baseUniq-CGlHphLr.js → _baseUniq-BJcj69PL.js} +1 -1
- package/{_createAggregator-BvcoTZto.js → _createAggregator-k3TuAnxT.js} +3 -3
- package/{_getPrototype-Dm06JiGv.js → _getPrototype-Cr1Mk7BC.js} +1 -1
- package/{_getTag-Cfxlub3L.js → _getTag-CK2Sffaq.js} +2 -2
- package/_isIterateeCall-DkJP7Rbx.js +13 -0
- package/{cloneDeep-wjl3XmFj.js → cloneDeep-CF8TtLHr.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +4 -4
- 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/form/schemaAdapter.js +1 -1
- package/components/actions/formats/index.js +1 -1
- package/components/display/graph/elements/NodeCard.js +4 -4
- package/components/display/graph/index.js +1 -1
- package/components/display/graph/visualizations/cloud/index.js +2 -2
- package/components/display/graph/visualizations/tree/index.js +5 -4
- package/components/display/json/index.js +2 -2
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +2 -2
- package/components/group/Entry.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/{countBy-pIyxNZhO.js → countBy-CdYegFSu.js} +1 -1
- package/{groupBy-yNrpdipq.js → groupBy-br8xmD2R.js} +1 -1
- package/hooks/ClueActionContext.js +2 -2
- package/hooks/ClueEnrichContext.js +3 -3
- 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 +2 -2
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +3 -3
- package/icons/Assessment.js +20 -19
- package/icons/Context.js +2 -2
- package/icons/Opinion.js +46 -52
- package/{index-D_ZywK71.js → index-BK-zfYhR.js} +1 -1
- package/main.js +4 -4
- package/maxBy-Bc0dYHcO.js +8 -0
- package/package.json +1 -1
- package/sortBy-DY2JBf9n.js +75 -0
- package/{sumBy-Do6Ff4Bw.js → sumBy-DuMASLPd.js} +1 -1
- package/text/Frequency.js +1 -1
- package/{useClueTypeConfig-77zd_zdF.js → useClueTypeConfig-Ct9Ygter.js} +1 -1
- package/utils/chain.js +15 -14
- package/utils/utils.js +2 -2
- package/{utils-D5hPDE7N.js → utils-DmwSUrum.js} +3 -3
- package/_baseExtremum-DhV10dXG.js +0 -27
- package/sortBy-0BpKRt8p.js +0 -79
|
@@ -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-jzZvkCxJ.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-Bk-p0F6h.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-DlOXqMUx.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
|
-
import { a as d } from "../ClueEnrichContext-
|
|
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-jzZvkCxJ.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,6 +1,6 @@
|
|
|
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-DlOXqMUx.js";
|
|
2
2
|
import "./ClueComponentContext.js";
|
|
3
|
-
import "../ClueEnrichContext-
|
|
3
|
+
import "../ClueEnrichContext-KqRuuWNS.js";
|
|
4
4
|
import "./ClueFetcherContext.js";
|
|
5
5
|
import "../index-Dj5C04IX.js";
|
|
6
6
|
export {
|
package/hooks/useActionResult.js
CHANGED
package/hooks/useAnnotations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as p } from "../ClueEnrichContext-
|
|
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-DlOXqMUx.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/useClue.js
CHANGED
package/hooks/useClueActions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as i } from "../useClueTypeConfig-
|
|
1
|
+
import { b as i } from "../useClueTypeConfig-Ct9Ygter.js";
|
|
2
2
|
import "../utils/loggerUtil.js";
|
|
3
|
-
import "../_baseUniq-
|
|
3
|
+
import "../_baseUniq-BJcj69PL.js";
|
|
4
4
|
import "react";
|
|
5
5
|
export {
|
|
6
6
|
i as default
|
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-DlOXqMUx.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-DlOXqMUx.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,9 +2,9 @@ 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-
|
|
7
|
-
import { g as D } from "../groupBy-
|
|
5
|
+
import { C as v } from "../AnnotationPreview-jzZvkCxJ.js";
|
|
6
|
+
import { u as B } from "../ActionForm-DlOXqMUx.js";
|
|
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";
|
|
10
10
|
const k = ({ result: o }) => /* @__PURE__ */ z(i, { p: 1, children: [
|
package/icons/Assessment.js
CHANGED
|
@@ -2,40 +2,41 @@ 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-
|
|
6
|
-
import { g as O } from "../groupBy-
|
|
5
|
+
import { C as w } from "../AnnotationPreview-jzZvkCxJ.js";
|
|
6
|
+
import { g as O } from "../groupBy-br8xmD2R.js";
|
|
7
7
|
import { l as P } from "../last-7CdUxN0r.js";
|
|
8
|
-
import { m as L
|
|
9
|
-
import { s as
|
|
8
|
+
import { m as L } from "../maxBy-Bc0dYHcO.js";
|
|
9
|
+
import { s as R } from "../sortBy-DY2JBf9n.js";
|
|
10
|
+
import { s as W } from "../sumBy-DuMASLPd.js";
|
|
10
11
|
import { memo as D, useRef as E, useState as F, useMemo as d, useEffect as G } from "react";
|
|
11
12
|
import { u as S } from "../index-Dj5C04IX.js";
|
|
12
13
|
const H = ({ annotations: u, value: i, counters: f = !0, disableTooltip: r = !1, ubiquitous: h = !1, ...v }) => {
|
|
13
|
-
const
|
|
14
|
+
const t = j(), g = S(w, (e) => e.showInfo), x = S(w, (e) => e.closeInfo), c = E(), [$, B] = F(!1), o = d(
|
|
14
15
|
() => u.filter((e) => (e == null ? void 0 : e.type) === "assessment" && (e == null ? void 0 : e.ubiquitous) === h),
|
|
15
16
|
[u, h]
|
|
16
17
|
), m = d(
|
|
17
|
-
() => Object.entries(O(
|
|
18
|
+
() => Object.entries(O(o, "value")).map(([e, p]) => [
|
|
18
19
|
e,
|
|
19
20
|
W(p, "quantity")
|
|
20
21
|
]),
|
|
21
|
-
[
|
|
22
|
+
[o]
|
|
22
23
|
), n = d(() => L(m, P), [m]);
|
|
23
24
|
if (G(() => {
|
|
24
25
|
r && B(!1);
|
|
25
|
-
}, [r]), (
|
|
26
|
+
}, [r]), (o == null ? void 0 : o.length) < 1)
|
|
26
27
|
return null;
|
|
27
28
|
const M = {
|
|
28
29
|
tooltip: {
|
|
29
30
|
sx: {
|
|
30
31
|
maxWidth: "500px",
|
|
31
|
-
backgroundColor:
|
|
32
|
-
border: `thin solid ${
|
|
32
|
+
backgroundColor: t.palette.background.paper,
|
|
33
|
+
border: `thin solid ${t.palette.divider}`,
|
|
33
34
|
p: 1,
|
|
34
|
-
boxShadow:
|
|
35
|
+
boxShadow: t.shadows[2]
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
}, a = /* @__PURE__ */ b(y, { spacing: 1, onClick: (e) => e.stopPropagation(), children: [
|
|
38
|
-
|
|
39
|
+
o.length > 1 && /* @__PURE__ */ b(k, { children: [
|
|
39
40
|
/* @__PURE__ */ s(y, { direction: "row", children: m.map(([e, p]) => /* @__PURE__ */ s(
|
|
40
41
|
I,
|
|
41
42
|
{
|
|
@@ -58,13 +59,13 @@ const H = ({ annotations: u, value: i, counters: f = !0, disableTooltip: r = !1,
|
|
|
58
59
|
C,
|
|
59
60
|
{
|
|
60
61
|
sx: {
|
|
61
|
-
mt:
|
|
62
|
-
ml: `${
|
|
62
|
+
mt: o.length < 2 && `${t.spacing(-0.5)} !important`,
|
|
63
|
+
ml: `${t.spacing(-0.5)} !important`
|
|
63
64
|
},
|
|
64
65
|
container: !0,
|
|
65
66
|
spacing: 0.5,
|
|
66
67
|
maxWidth: "500px",
|
|
67
|
-
children: R(
|
|
68
|
+
children: R(o, "value").map((e) => /* @__PURE__ */ s(C, { item: !0, children: /* @__PURE__ */ s(
|
|
68
69
|
I,
|
|
69
70
|
{
|
|
70
71
|
size: "small",
|
|
@@ -89,7 +90,7 @@ const H = ({ annotations: u, value: i, counters: f = !0, disableTooltip: r = !1,
|
|
|
89
90
|
style: { display: "flex" },
|
|
90
91
|
onMouseOver: r ? void 0 : () => g("assessment", c.current, i, { content: a }),
|
|
91
92
|
onMouseLeave: r ? void 0 : () => x("assessment", i),
|
|
92
|
-
children: /* @__PURE__ */ s(z, { disabled: !f, color: "error", count: n[1], children: /* @__PURE__ */ s(l, { fontSize: "1.5em", ...v, icon: "healthicons:hazardous", color:
|
|
93
|
+
children: /* @__PURE__ */ s(z, { disabled: !f, color: "error", count: n[1], children: /* @__PURE__ */ s(l, { fontSize: "1.5em", ...v, icon: "healthicons:hazardous", color: t.palette.error.main }) })
|
|
93
94
|
}
|
|
94
95
|
) : /* @__PURE__ */ s(
|
|
95
96
|
"span",
|
|
@@ -98,10 +99,10 @@ const H = ({ annotations: u, value: i, counters: f = !0, disableTooltip: r = !1,
|
|
|
98
99
|
style: { display: "flex" },
|
|
99
100
|
onMouseOver: r ? void 0 : () => g("assessment", c.current, i, { content: a }),
|
|
100
101
|
onMouseLeave: r ? void 0 : () => x("assessment", i),
|
|
101
|
-
children: /* @__PURE__ */ s(A, { disableInteractive: !0, componentsProps: M, open: $, title: a, children: /* @__PURE__ */ s(z, { disabled: !f, count: n[1], children: /* @__PURE__ */ s(l, { fontSize: "1.5em", ...v, icon: "fluent-mdl2:ribbon-solid", color:
|
|
102
|
+
children: /* @__PURE__ */ s(A, { disableInteractive: !0, componentsProps: M, open: $, title: a, children: /* @__PURE__ */ s(z, { disabled: !f, count: n[1], children: /* @__PURE__ */ s(l, { fontSize: "1.5em", ...v, icon: "fluent-mdl2:ribbon-solid", color: t.palette.success.main }) }) })
|
|
102
103
|
}
|
|
103
104
|
);
|
|
104
|
-
},
|
|
105
|
+
}, se = D(H);
|
|
105
106
|
export {
|
|
106
|
-
|
|
107
|
+
se as default
|
|
107
108
|
};
|
package/icons/Context.js
CHANGED
|
@@ -4,8 +4,8 @@ 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-
|
|
8
|
-
import { g as O } from "../groupBy-
|
|
7
|
+
import { C as x } from "../AnnotationPreview-jzZvkCxJ.js";
|
|
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";
|
|
11
11
|
const R = ({
|
package/icons/Opinion.js
CHANGED
|
@@ -1,43 +1,37 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
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
|
-
import { useTheme as
|
|
4
|
-
import
|
|
5
|
-
import { C as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { s as M } from "../
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const i = B(), w = I(b, (e) => e.showInfo), h = I(b, (e) => e.closeInfo), g = D(), s = a(
|
|
3
|
+
import { useTheme as S, Stack as b, Chip as y, Divider as j, Grid as I } from "@mui/material";
|
|
4
|
+
import q from "../components/CountBadge.js";
|
|
5
|
+
import { C as v } from "../AnnotationPreview-jzZvkCxJ.js";
|
|
6
|
+
import { g as B } from "../groupBy-br8xmD2R.js";
|
|
7
|
+
import { s as E } from "../sortBy-DY2JBf9n.js";
|
|
8
|
+
import { s as M } from "../sumBy-DuMASLPd.js";
|
|
9
|
+
import { memo as D, useRef as F, useMemo as a, useCallback as G, useEffect as K } from "react";
|
|
10
|
+
import { u as C } from "../index-Dj5C04IX.js";
|
|
11
|
+
const w = { malicious: 3, suspicious: 2, obscure: 1, benign: 0 }, L = ({ annotations: m, value: l, counters: z = !0, disableTooltip: n = !1, ubiquitous: p = !1, ...f }) => {
|
|
12
|
+
const s = S(), $ = C(v, (e) => e.showInfo), g = C(v, (e) => e.closeInfo), h = F(), i = a(
|
|
14
13
|
() => m.filter((e) => e.type === "opinion" && e.ubiquitous === p),
|
|
15
14
|
[m, p]
|
|
16
|
-
),
|
|
17
|
-
() =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
S(t, "quantity")
|
|
21
|
-
])
|
|
22
|
-
).sortBy(([e, t]) => t).reverse().value(),
|
|
23
|
-
[s]
|
|
24
|
-
), n = E(
|
|
15
|
+
), t = a(
|
|
16
|
+
() => Object.entries(B(i, "value")).map(([e, o]) => [e, M(o, "quantity")]).sort(([e, o], [k, d]) => d !== o ? d - o : (w[k] ?? -1) - (w[e] ?? -1)),
|
|
17
|
+
[i]
|
|
18
|
+
), c = G(
|
|
25
19
|
(e) => e === "benign" ? "mdi:shield-check" : e === "suspicious" ? "mdi:warning-outline" : e === "obscure" ? "bi:eye-slash-fill" : "mdi:warning-decagram",
|
|
26
20
|
[]
|
|
27
21
|
);
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
() => /* @__PURE__ */
|
|
33
|
-
|
|
34
|
-
/* @__PURE__ */ r(
|
|
35
|
-
|
|
22
|
+
K(() => {
|
|
23
|
+
n && g("opinion", l);
|
|
24
|
+
}, [n]);
|
|
25
|
+
const O = a(
|
|
26
|
+
() => /* @__PURE__ */ x(b, { spacing: 1, onClick: (e) => e.stopPropagation(), children: [
|
|
27
|
+
i.length > 1 && /* @__PURE__ */ x(R, { children: [
|
|
28
|
+
/* @__PURE__ */ r(b, { direction: "row", spacing: 1, children: t.map(([e, o]) => /* @__PURE__ */ r(
|
|
29
|
+
y,
|
|
36
30
|
{
|
|
37
31
|
size: "small",
|
|
38
32
|
variant: "outlined",
|
|
39
|
-
label: `${e}: ${
|
|
40
|
-
icon: /* @__PURE__ */ r(u, { icon:
|
|
33
|
+
label: `${e}: ${o}`,
|
|
34
|
+
icon: /* @__PURE__ */ r(u, { icon: c(e) }),
|
|
41
35
|
sx: { textTransform: "capitalize" },
|
|
42
36
|
color: {
|
|
43
37
|
benign: "success",
|
|
@@ -48,25 +42,25 @@ const G = ({ annotations: m, value: l, counters: C = !0, disableTooltip: c = !1,
|
|
|
48
42
|
},
|
|
49
43
|
e
|
|
50
44
|
)) }),
|
|
51
|
-
/* @__PURE__ */ r(
|
|
45
|
+
/* @__PURE__ */ r(j, { orientation: "horizontal", flexItem: !0 })
|
|
52
46
|
] }),
|
|
53
47
|
/* @__PURE__ */ r(
|
|
54
|
-
|
|
48
|
+
I,
|
|
55
49
|
{
|
|
56
50
|
sx: {
|
|
57
|
-
mt:
|
|
58
|
-
ml: `${
|
|
51
|
+
mt: i.length < 2 && `${s.spacing(-0.5)} !important`,
|
|
52
|
+
ml: `${s.spacing(-0.5)} !important`
|
|
59
53
|
},
|
|
60
54
|
container: !0,
|
|
61
55
|
spacing: 0.5,
|
|
62
56
|
maxWidth: "500px",
|
|
63
|
-
children:
|
|
64
|
-
|
|
57
|
+
children: E(i, "value").map((e) => /* @__PURE__ */ r(I, { item: !0, children: /* @__PURE__ */ r(
|
|
58
|
+
y,
|
|
65
59
|
{
|
|
66
60
|
size: "small",
|
|
67
61
|
variant: "outlined",
|
|
68
62
|
label: (e.analytic ?? e.author) + (e.quantity > 1 ? ` (x${e.quantity})` : ""),
|
|
69
|
-
icon: /* @__PURE__ */ r(u, { icon:
|
|
63
|
+
icon: /* @__PURE__ */ r(u, { icon: c(e.value) }),
|
|
70
64
|
color: {
|
|
71
65
|
benign: "success",
|
|
72
66
|
suspicious: "warning",
|
|
@@ -78,27 +72,27 @@ const G = ({ annotations: m, value: l, counters: C = !0, disableTooltip: c = !1,
|
|
|
78
72
|
}
|
|
79
73
|
)
|
|
80
74
|
] }),
|
|
81
|
-
[
|
|
75
|
+
[c, i, t, s]
|
|
82
76
|
);
|
|
83
|
-
return (
|
|
77
|
+
return (i == null ? void 0 : i.length) < 1 ? null : /* @__PURE__ */ r(
|
|
84
78
|
"span",
|
|
85
79
|
{
|
|
86
|
-
ref:
|
|
80
|
+
ref: h,
|
|
87
81
|
style: { display: "flex" },
|
|
88
|
-
onMouseOver:
|
|
89
|
-
onMouseLeave:
|
|
90
|
-
children: /* @__PURE__ */ r(
|
|
82
|
+
onMouseOver: n ? void 0 : () => $("opinion", h.current, l, { content: O }),
|
|
83
|
+
onMouseLeave: n ? void 0 : () => g("opinion", l),
|
|
84
|
+
children: /* @__PURE__ */ r(q, { disabled: !z, count: t[0][1], children: /* @__PURE__ */ r(
|
|
91
85
|
u,
|
|
92
86
|
{
|
|
93
87
|
fontSize: "1.25em",
|
|
94
88
|
...f,
|
|
95
|
-
icon:
|
|
89
|
+
icon: c(t[0][0]),
|
|
96
90
|
color: {
|
|
97
|
-
benign:
|
|
98
|
-
suspicious:
|
|
99
|
-
obscure:
|
|
100
|
-
malicious:
|
|
101
|
-
}[
|
|
91
|
+
benign: s.palette.success.light,
|
|
92
|
+
suspicious: s.palette.warning.light,
|
|
93
|
+
obscure: s.palette.error.light,
|
|
94
|
+
malicious: s.palette.error.light
|
|
95
|
+
}[t[0][0]],
|
|
102
96
|
style: {
|
|
103
97
|
zIndex: 2,
|
|
104
98
|
...f.style ?? {}
|
|
@@ -107,7 +101,7 @@ const G = ({ annotations: m, value: l, counters: C = !0, disableTooltip: c = !1,
|
|
|
107
101
|
) })
|
|
108
102
|
}
|
|
109
103
|
);
|
|
110
|
-
},
|
|
104
|
+
}, X = D(L);
|
|
111
105
|
export {
|
|
112
|
-
|
|
106
|
+
X as default
|
|
113
107
|
};
|
|
@@ -4,7 +4,7 @@ var _ = (t, e, n) => Z(t, typeof e != "symbol" ? e + "" : e, n);
|
|
|
4
4
|
import { jsx as f, jsxs as N } from "react/jsx-runtime";
|
|
5
5
|
import { ClickAwayListener as $, TextField as P, InputAdornment as D, Popper as ee, Paper as te, MenuList as ne, MenuItem as se, ListItemText as re, useTheme as ie, Stack as ae, Skeleton as ue } from "@mui/material";
|
|
6
6
|
import { useRef as I, useState as O, useEffect as z, useMemo as T, lazy as oe } from "react";
|
|
7
|
-
import { r as ce, s as he, f as fe } from "./utils-
|
|
7
|
+
import { r as ce, s as he, f as fe } from "./utils-DmwSUrum.js";
|
|
8
8
|
import { ClueComponentContext as L } from "./hooks/ClueComponentContext.js";
|
|
9
9
|
import { useMyLocalStorageItem as j } from "./hooks/useMyLocalStorage.js";
|
|
10
10
|
import { StorageKey as J } from "./utils/constants.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-DlOXqMUx.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-Bk-p0F6h.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-jzZvkCxJ.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";
|
|
@@ -18,7 +18,7 @@ import { b as R } from "./index-BHAe_V9n.js";
|
|
|
18
18
|
import { ClueComponentContext as j } from "./hooks/ClueComponentContext.js";
|
|
19
19
|
import { ClueConfigContext as H } from "./hooks/ClueConfigProvider.js";
|
|
20
20
|
import { ClueDatabaseContext as L } from "./hooks/ClueDatabaseContext.js";
|
|
21
|
-
import { C as Q } from "./ClueEnrichContext-
|
|
21
|
+
import { C as Q } from "./ClueEnrichContext-KqRuuWNS.js";
|
|
22
22
|
import { ClueProvider as W } from "./hooks/ClueProvider.js";
|
|
23
23
|
import { default as Y } from "./hooks/useClue.js";
|
|
24
24
|
import { default as $ } from "./hooks/useClueConfig.js";
|
package/package.json
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { s, o as A, b as B } from "./_baseFlatten-Bfr_Molw.js";
|
|
2
|
+
import { a as g, b as C } from "./_baseGet-DSZygzyq.js";
|
|
3
|
+
import { b as M } from "./_baseIteratee-Dbfsw5z8.js";
|
|
4
|
+
import { b as k } from "./_createAggregator-k3TuAnxT.js";
|
|
5
|
+
import { i as w, b as L } from "./_getTag-CK2Sffaq.js";
|
|
6
|
+
import { i as o } from "./isSymbol-C3_SC0Qp.js";
|
|
7
|
+
import { i as d } from "./identity-ByMq8VxU.js";
|
|
8
|
+
import { i as x } from "./_MapCache-BiTi0iqu.js";
|
|
9
|
+
import { i as b } from "./_isIterateeCall-DkJP7Rbx.js";
|
|
10
|
+
function y(r, n) {
|
|
11
|
+
return s(A(r, n, d), r + "");
|
|
12
|
+
}
|
|
13
|
+
function E(r, n) {
|
|
14
|
+
var u = -1, f = w(r) ? Array(r.length) : [];
|
|
15
|
+
return k(r, function(t, i, a) {
|
|
16
|
+
f[++u] = n(t, i, a);
|
|
17
|
+
}), f;
|
|
18
|
+
}
|
|
19
|
+
function F(r, n) {
|
|
20
|
+
var u = r.length;
|
|
21
|
+
for (r.sort(n); u--; )
|
|
22
|
+
r[u] = r[u].value;
|
|
23
|
+
return r;
|
|
24
|
+
}
|
|
25
|
+
function G(r, n) {
|
|
26
|
+
if (r !== n) {
|
|
27
|
+
var u = r !== void 0, f = r === null, t = r === r, i = o(r), a = n !== void 0, c = n === null, m = n === n, p = o(n);
|
|
28
|
+
if (!c && !p && !i && r > n || i && a && m && !c && !p || f && a && m || !u && m || !t)
|
|
29
|
+
return 1;
|
|
30
|
+
if (!f && !i && !p && r < n || p && u && t && !f && !i || c && u && t || !a && t || !m)
|
|
31
|
+
return -1;
|
|
32
|
+
}
|
|
33
|
+
return 0;
|
|
34
|
+
}
|
|
35
|
+
function O(r, n, u) {
|
|
36
|
+
for (var f = -1, t = r.criteria, i = n.criteria, a = t.length, c = u.length; ++f < a; ) {
|
|
37
|
+
var m = G(t[f], i[f]);
|
|
38
|
+
if (m) {
|
|
39
|
+
if (f >= c)
|
|
40
|
+
return m;
|
|
41
|
+
var p = u[f];
|
|
42
|
+
return m * (p == "desc" ? -1 : 1);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return r.index - n.index;
|
|
46
|
+
}
|
|
47
|
+
function T(r, n, u) {
|
|
48
|
+
n.length ? n = g(n, function(i) {
|
|
49
|
+
return x(i) ? function(a) {
|
|
50
|
+
return C(a, i.length === 1 ? i[0] : i);
|
|
51
|
+
} : i;
|
|
52
|
+
}) : n = [d];
|
|
53
|
+
var f = -1;
|
|
54
|
+
n = g(n, L(M));
|
|
55
|
+
var t = E(r, function(i, a, c) {
|
|
56
|
+
var m = g(n, function(p) {
|
|
57
|
+
return p(i);
|
|
58
|
+
});
|
|
59
|
+
return { criteria: m, index: ++f, value: i };
|
|
60
|
+
});
|
|
61
|
+
return F(t, function(i, a) {
|
|
62
|
+
return O(i, a, u);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
var V = y(function(r, n) {
|
|
66
|
+
if (r == null)
|
|
67
|
+
return [];
|
|
68
|
+
var u = n.length;
|
|
69
|
+
return u > 1 && b(r, n[0], n[1]) ? n = [] : u > 2 && b(n[0], n[1], n[2]) && (n = [n[0]]), T(r, B(n), []);
|
|
70
|
+
});
|
|
71
|
+
export {
|
|
72
|
+
T as a,
|
|
73
|
+
E as b,
|
|
74
|
+
V as s
|
|
75
|
+
};
|
package/text/Frequency.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c } from "react/jsx-runtime";
|
|
2
2
|
import { Typography as s } from "@mui/material";
|
|
3
3
|
import { i as t } from "../isNil-CjWwlQS3.js";
|
|
4
|
-
import { s as m } from "../sumBy-
|
|
4
|
+
import { s as m } from "../sumBy-DuMASLPd.js";
|
|
5
5
|
import { useMemo as i } from "react";
|
|
6
6
|
const q = ({
|
|
7
7
|
annotations: l,
|
|
@@ -6,7 +6,7 @@ import { MY_LOCAL_STORAGE_PREFIX as Ne, StorageKey as O } from "./utils/constant
|
|
|
6
6
|
import { g as cn } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
7
7
|
import { getAxiosCache as un, setAxiosCache as ln } from "./utils/sessionStorage.js";
|
|
8
8
|
import { clueDebugLogger as fn } from "./utils/loggerUtil.js";
|
|
9
|
-
import { b as dn, i as pn } from "./_baseUniq-
|
|
9
|
+
import { b as dn, i as pn } from "./_baseUniq-BJcj69PL.js";
|
|
10
10
|
import { useState as Se, useEffect as hn } from "react";
|
|
11
11
|
function mn(e) {
|
|
12
12
|
return e && e.length ? dn(e) : [];
|
package/utils/chain.js
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { c as m } from "../countBy-
|
|
2
|
-
import { k as p, b as c } from "../_Uint8Array-
|
|
3
|
-
import { b as l, a as v } from "../_createAggregator-
|
|
4
|
-
import { b as s } from "../_baseIteratee-
|
|
1
|
+
import { c as m } from "../countBy-CdYegFSu.js";
|
|
2
|
+
import { k as p, b as c } from "../_Uint8Array-BQNOM9Rr.js";
|
|
3
|
+
import { b as l, a as v } from "../_createAggregator-k3TuAnxT.js";
|
|
4
|
+
import { b as s } from "../_baseIteratee-Dbfsw5z8.js";
|
|
5
5
|
import { i as o } from "../_MapCache-BiTi0iqu.js";
|
|
6
|
-
import { g as b } from "../groupBy-
|
|
6
|
+
import { g as b } from "../groupBy-br8xmD2R.js";
|
|
7
7
|
import { a as e } from "../_baseGet-DSZygzyq.js";
|
|
8
|
-
import { b as y, a as g,
|
|
9
|
-
import { b as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
8
|
+
import { b as y, a as g, s as T } from "../sortBy-DY2JBf9n.js";
|
|
9
|
+
import { b as B } from "../_baseAssignValue-CNMLQZco.js";
|
|
10
|
+
import { m as h } from "../maxBy-Bc0dYHcO.js";
|
|
11
|
+
import { g as A } from "../_getTag-CK2Sffaq.js";
|
|
12
|
+
import { m as P } from "../_baseIsEqual-VgvaAFZG.js";
|
|
12
13
|
function F(n, r) {
|
|
13
14
|
return e(r, function(a) {
|
|
14
15
|
return [a, n[a]];
|
|
@@ -45,7 +46,7 @@ function z(n, r) {
|
|
|
45
46
|
function I(n, r) {
|
|
46
47
|
var a = {};
|
|
47
48
|
return r = s(r), v(n, function(t, u, i) {
|
|
48
|
-
|
|
49
|
+
B(a, u, r(t, u, i));
|
|
49
50
|
}), a;
|
|
50
51
|
}
|
|
51
52
|
function R(n, r, a, t) {
|
|
@@ -61,12 +62,12 @@ const q = {
|
|
|
61
62
|
toPairs: f,
|
|
62
63
|
orderBy: R,
|
|
63
64
|
groupBy: b,
|
|
64
|
-
sortBy:
|
|
65
|
+
sortBy: T,
|
|
65
66
|
countBy: m,
|
|
66
67
|
entries: f,
|
|
67
|
-
maxBy:
|
|
68
|
+
maxBy: h,
|
|
68
69
|
reverse: k
|
|
69
|
-
},
|
|
70
|
+
}, Y = (n) => {
|
|
70
71
|
let r = n;
|
|
71
72
|
const a = {
|
|
72
73
|
...I(q, (t) => (...u) => (r = t(r, ...u), a)),
|
|
@@ -75,5 +76,5 @@ const q = {
|
|
|
75
76
|
return a;
|
|
76
77
|
};
|
|
77
78
|
export {
|
|
78
|
-
|
|
79
|
+
Y as default
|
|
79
80
|
};
|
package/utils/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { d as a, b as i, r as p, s as c, t as h } from "../utils-
|
|
1
|
+
import { d as a, b as i, r as p, s as c, t as h } from "../utils-DmwSUrum.js";
|
|
2
2
|
import "./time.js";
|
|
3
3
|
import "../_MapCache-BiTi0iqu.js";
|
|
4
|
-
import "../_baseUniq-
|
|
4
|
+
import "../_baseUniq-BJcj69PL.js";
|
|
5
5
|
import "../isNil-CjWwlQS3.js";
|
|
6
6
|
export {
|
|
7
7
|
a as delay,
|
|
@@ -3,11 +3,11 @@ var _ = (t, e, r) => e in t ? P(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var p = (t, e, r) => _(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
4
|
import { dayjs as d } from "./utils/time.js";
|
|
5
5
|
import { i as h } from "./_MapCache-BiTi0iqu.js";
|
|
6
|
-
import { b as g, i as K } from "./_baseUniq-
|
|
7
|
-
import { b as N } from "./_baseIsEqual-
|
|
6
|
+
import { b as g, i as K } from "./_baseUniq-BJcj69PL.js";
|
|
7
|
+
import { b as N } from "./_baseIsEqual-VgvaAFZG.js";
|
|
8
8
|
import { i as T } from "./isNil-CjWwlQS3.js";
|
|
9
9
|
import { i as q, b as B } from "./isObjectLike-BatpeCIi.js";
|
|
10
|
-
import { g as C } from "./_getPrototype-
|
|
10
|
+
import { g as C } from "./_getPrototype-Cr1Mk7BC.js";
|
|
11
11
|
function w(t) {
|
|
12
12
|
return t && t.constructor && typeof t.constructor.isBuffer == "function" && t.constructor.isBuffer(t);
|
|
13
13
|
}
|