@cccsaurora/clue-ui 1.3.0-dev.315 → 1.3.0-dev.327
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-BvrXSMos.js → ActionForm-ZdEo5xJp.js} +1 -1
- package/{AnnotationDetails-BIjjX5GE.js → AnnotationDetails-B0jvSEkB.js} +1 -1
- package/{AnnotationPreview-D00sB1EO.js → AnnotationPreview-vg8GqHP3.js} +1 -1
- package/{ClueEnrichContext-CZkS1jpb.js → ClueEnrichContext-C722Tns5.js} +17 -9
- 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 +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 +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 +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/hooks/ClueActionContext.js +1 -1
- package/hooks/ClueEnrichContext.js +1 -1
- package/hooks/ClueEnrichContextType.d.ts +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 +5 -5
- package/hooks/useClue.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useErrors.js +1 -1
- 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 +4 -4
- package/package.json +1 -1
- package/types/config.d.ts +1 -0
|
@@ -16,7 +16,7 @@ import { u as useContextSelector, c as createContext, a as useContext } from "./
|
|
|
16
16
|
import ErrorBoundary from "./components/ErrorBoundary.js";
|
|
17
17
|
import { adaptSchema } from "./components/actions/form/schemaAdapter.js";
|
|
18
18
|
import { I as Icon } from "./iconify-CXMreGTg.js";
|
|
19
|
-
import { C as ClueEnrichContext } from "./ClueEnrichContext-
|
|
19
|
+
import { C as ClueEnrichContext } from "./ClueEnrichContext-C722Tns5.js";
|
|
20
20
|
import { ClueFetcherContext } from "./hooks/ClueFetcherContext.js";
|
|
21
21
|
import ClassificationChip from "./components/ClassificationChip.js";
|
|
22
22
|
import Result from "./components/actions/formats/index.js";
|
|
@@ -4,7 +4,7 @@ import { useTheme, Stack, Typography, Tooltip, Box, IconButton, CircularProgress
|
|
|
4
4
|
import Iconified from "./components/display/icons/Iconified.js";
|
|
5
5
|
import { SNACKBAR_EVENT_ID } from "./data/event.js";
|
|
6
6
|
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
7
|
-
import { b as useClueEnrichSelector } from "./ActionForm-
|
|
7
|
+
import { b as useClueEnrichSelector } from "./ActionForm-ZdEo5xJp.js";
|
|
8
8
|
import useAnnotations from "./hooks/useAnnotations.js";
|
|
9
9
|
import useErrors from "./hooks/useErrors.js";
|
|
10
10
|
import { ICON_MAP } from "./icons/iconMap.js";
|
|
@@ -8,7 +8,7 @@ import { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
|
8
8
|
import { c as createContext, u as useContextSelector } from "./index-AMfoEg_6.js";
|
|
9
9
|
import { SHOW_EVENT_ID, HIDE_EVENT_ID } from "./data/event.js";
|
|
10
10
|
import { safeDispatchEvent, safeAddEventListener } from "./utils/window.js";
|
|
11
|
-
import { i as isNull } from "./AnnotationDetails-
|
|
11
|
+
import { i as isNull } from "./AnnotationDetails-B0jvSEkB.js";
|
|
12
12
|
const CluePopupContext = createContext(null);
|
|
13
13
|
const CluePopupProvider = ({ children }) => {
|
|
14
14
|
const [popupType, setPopupType] = useState(null);
|
|
@@ -282,6 +282,7 @@ const ClueEnrichProvider = ({
|
|
|
282
282
|
);
|
|
283
283
|
const bulkEnrich = useCallback(
|
|
284
284
|
async (bulkRequest, _options) => {
|
|
285
|
+
var _a2, _b2;
|
|
285
286
|
const _sources = (pickSources == null ? void 0 : pickSources(sources, availableSources, bulkRequest)) ?? sources;
|
|
286
287
|
const options = {
|
|
287
288
|
timeout: defaultTimeout,
|
|
@@ -303,20 +304,22 @@ const ClueEnrichProvider = ({
|
|
|
303
304
|
const statuses = [];
|
|
304
305
|
for (const selector of bulkRequest) {
|
|
305
306
|
const query = { type: selector.type, value: selector.value, classification: options.classification };
|
|
306
|
-
let statusRecord = await database.status.findOne({
|
|
307
|
+
let statusRecord = await ((_a2 = database.status) == null ? void 0 : _a2.findOne({
|
|
307
308
|
selector: query
|
|
308
309
|
}).incrementalPatch({
|
|
309
310
|
status: "in-progress"
|
|
310
|
-
});
|
|
311
|
+
}));
|
|
311
312
|
if (!statusRecord) {
|
|
312
|
-
statusRecord = await database.status.insert({
|
|
313
|
+
statusRecord = await ((_b2 = database.status) == null ? void 0 : _b2.insert({
|
|
313
314
|
id: v4(),
|
|
314
315
|
...query,
|
|
315
316
|
status: "in-progress",
|
|
316
317
|
sources: options.sources
|
|
317
|
-
});
|
|
318
|
+
}));
|
|
319
|
+
}
|
|
320
|
+
if (statusRecord) {
|
|
321
|
+
statuses.push(statusRecord.toMutableJSON());
|
|
318
322
|
}
|
|
319
|
-
statuses.push(statusRecord.toMutableJSON());
|
|
320
323
|
}
|
|
321
324
|
try {
|
|
322
325
|
const result = await post(bulkRequest, options.sources, options, requestConfig);
|
|
@@ -468,22 +471,27 @@ const ClueEnrichProvider = ({
|
|
|
468
471
|
}, [enabled, isReady, database, debugLogging, enrichQueued, (_d = database == null ? void 0 : database.status) == null ? void 0 : _d.closed]);
|
|
469
472
|
const queueEnrich = useCallback(
|
|
470
473
|
async (type, value2, classification) => {
|
|
474
|
+
var _a2, _b2;
|
|
471
475
|
if (!type) {
|
|
472
476
|
throw new Error("Type cannot be null");
|
|
473
477
|
}
|
|
474
478
|
if (!value2) {
|
|
475
479
|
throw new Error("Value cannot be null");
|
|
476
480
|
}
|
|
481
|
+
if (!database.status || database.status.closed) {
|
|
482
|
+
console.warn("status collection is closed");
|
|
483
|
+
return;
|
|
484
|
+
}
|
|
477
485
|
const query = { type, value: value2, classification: classification ?? defaultClassification };
|
|
478
|
-
let statusRecord = await database.status.findOne({
|
|
486
|
+
let statusRecord = await ((_a2 = database.status) == null ? void 0 : _a2.findOne({
|
|
479
487
|
selector: query
|
|
480
|
-
}).exec();
|
|
488
|
+
}).exec());
|
|
481
489
|
if (!statusRecord) {
|
|
482
|
-
statusRecord = await database.status.queueInsert({
|
|
490
|
+
statusRecord = await ((_b2 = database.status) == null ? void 0 : _b2.queueInsert({
|
|
483
491
|
id: v4(),
|
|
484
492
|
...query,
|
|
485
493
|
status: "pending"
|
|
486
|
-
});
|
|
494
|
+
}));
|
|
487
495
|
}
|
|
488
496
|
return statusRecord;
|
|
489
497
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Popover } from "@mui/material";
|
|
3
3
|
import React__default, { useRef, useState, useEffect } from "react";
|
|
4
|
-
import { A as AnnotationDetails } from "../AnnotationDetails-
|
|
4
|
+
import { A as AnnotationDetails } from "../AnnotationDetails-B0jvSEkB.js";
|
|
5
5
|
const AnnotationDetailPopover = React__default.memo(({ anchorEl, enrichRequest, open, onClose, ...otherProps }) => {
|
|
6
6
|
var _a, _b, _c;
|
|
7
7
|
const actionRef = useRef();
|
|
@@ -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-ZdEo5xJp.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-xqz-n0Vd.js";
|
|
13
|
-
import { A } from "../AnnotationDetails-
|
|
13
|
+
import { A } from "../AnnotationDetails-B0jvSEkB.js";
|
|
14
14
|
import "../useClueTypeConfig-DnF4rLsl.js";
|
|
15
15
|
import "react";
|
|
16
16
|
import "../index-AMfoEg_6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-CXMreGTg.js";
|
|
3
3
|
import "@mui/material";
|
|
4
|
-
import { A } from "../AnnotationPreview-
|
|
4
|
+
import { A } from "../AnnotationPreview-vg8GqHP3.js";
|
|
5
5
|
import "../hooks/useAnnotations.js";
|
|
6
6
|
import "../utils-HmNPuoDB.js";
|
|
7
7
|
import "react";
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-CXMreGTg.js";
|
|
3
3
|
import { useTheme, Card, CardHeader, Stack, CircularProgress, Divider, CardContent, Grid, Chip, Typography, Tooltip, Box } from "@mui/material";
|
|
4
4
|
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
5
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
5
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
6
6
|
import useAnnotations from "../hooks/useAnnotations.js";
|
|
7
7
|
import useErrors from "../hooks/useErrors.js";
|
|
8
8
|
import AssessmentIcon from "../icons/Assessment.js";
|
|
@@ -3,8 +3,8 @@ import { Chip, Tooltip, Box, Stack, CircularProgress } from "@mui/material";
|
|
|
3
3
|
import Iconified from "./display/icons/Iconified.js";
|
|
4
4
|
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
5
5
|
import { ClueGroupContext } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
7
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
6
|
+
import { C as CluePopupContext } from "../AnnotationPreview-vg8GqHP3.js";
|
|
7
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
8
8
|
import useAnnotations from "../hooks/useAnnotations.js";
|
|
9
9
|
import ActionIcon from "../icons/Action.js";
|
|
10
10
|
import AssessmentIcon from "../icons/Assessment.js";
|
|
@@ -83,7 +83,7 @@ const EnrichedChip = React__default.memo(
|
|
|
83
83
|
ref: anchorRef,
|
|
84
84
|
variant: otherProps.variant || "outlined",
|
|
85
85
|
sx: {
|
|
86
|
-
height: otherProps.size
|
|
86
|
+
height: otherProps.size === "medium" ? "40px" : "unset",
|
|
87
87
|
"& .MuiChip-label": { overflow: "visible" },
|
|
88
88
|
...otherProps.sx ?? {}
|
|
89
89
|
},
|
|
@@ -3,8 +3,8 @@ import { useTheme, Stack, CircularProgress, Tooltip, IconButton } from "@mui/mat
|
|
|
3
3
|
import Iconified from "./display/icons/Iconified.js";
|
|
4
4
|
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
5
5
|
import { ClueGroupContext } from "../hooks/ClueGroupContext.js";
|
|
6
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
7
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
6
|
+
import { C as CluePopupContext } from "../AnnotationPreview-vg8GqHP3.js";
|
|
7
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
8
8
|
import useAnnotations from "../hooks/useAnnotations.js";
|
|
9
9
|
import ActionIcon from "../icons/Action.js";
|
|
10
10
|
import AssessmentIcon from "../icons/Assessment.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "@mui/material";
|
|
3
3
|
import { ClueComponentContext } from "../hooks/ClueComponentContext.js";
|
|
4
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
5
5
|
import { u as useContextSelector } from "../index-AMfoEg_6.js";
|
|
6
6
|
const RetryFailedEnrichments = () => {
|
|
7
7
|
const enrichFailedEnrichments = useClueEnrichSelector((ctx) => ctx.enrichFailedEnrichments);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Button, Popover, TextField, Divider, Stack, FormControlLabel, Checkbox } from "@mui/material";
|
|
3
|
-
import { d as useClueComponentSelector, b as useClueEnrichSelector } from "../ActionForm-
|
|
3
|
+
import { d as useClueComponentSelector, b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
4
4
|
import { memo, useState, useEffect } from "react";
|
|
5
5
|
const SourcePicker = () => {
|
|
6
6
|
const { t } = useClueComponentSelector((ctx) => ctx.i18next);
|
|
@@ -5,7 +5,7 @@ import "@mui/material";
|
|
|
5
5
|
import "../display/icons/Iconified.js";
|
|
6
6
|
import "../../index-CWMtU1OQ.js";
|
|
7
7
|
import "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { A } from "../../ActionForm-
|
|
8
|
+
import { A } from "../../ActionForm-ZdEo5xJp.js";
|
|
9
9
|
import "../../utils-HmNPuoDB.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "../../index-AMfoEg_6.js";
|
|
@@ -3,7 +3,7 @@ import { I as Icon } from "../../iconify-CXMreGTg.js";
|
|
|
3
3
|
import { useTheme, Tooltip, IconButton, CircularProgress, Button, Popover, Paper, Stack, Typography, Box, Divider } from "@mui/material";
|
|
4
4
|
import Iconified from "../display/icons/Iconified.js";
|
|
5
5
|
import { ClueComponentContext } from "../../hooks/ClueComponentContext.js";
|
|
6
|
-
import { a as useClueActionsSelector } from "../../ActionForm-
|
|
6
|
+
import { a as useClueActionsSelector } from "../../ActionForm-ZdEo5xJp.js";
|
|
7
7
|
import useClueConfig from "../../hooks/useClueConfig.js";
|
|
8
8
|
import { isAccessible } from "../../utils/classificationParser.js";
|
|
9
9
|
import { useState, useRef, useMemo, useEffect } from "react";
|
|
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../../iconify-CXMreGTg.js";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "../../hooks/ClueComponentContext.js";
|
|
5
|
-
import { R } from "../../ActionForm-
|
|
5
|
+
import { R } from "../../ActionForm-ZdEo5xJp.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../index-AMfoEg_6.js";
|
|
8
8
|
import "../ClassificationChip.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme, Tooltip, IconButton, CircularProgress, Button, Popover, Paper, Stack, Box, Typography, Divider } from "@mui/material";
|
|
3
|
-
import { d as useClueComponentSelector, b as useClueEnrichSelector, e as capitalize } from "../../ActionForm-
|
|
3
|
+
import { d as useClueComponentSelector, b as useClueEnrichSelector, e as capitalize } from "../../ActionForm-ZdEo5xJp.js";
|
|
4
4
|
import { useState, useRef, useCallback, useEffect } from "react";
|
|
5
5
|
import Iconified from "../display/icons/Iconified.js";
|
|
6
6
|
const EnrichPopover = ({ show = false, size = "small", selector }) => {
|
|
@@ -5,7 +5,7 @@ import { F as FlexOne } from "../../FlexOne-BSYAhhtG.js";
|
|
|
5
5
|
import Iconified from "../display/icons/Iconified.js";
|
|
6
6
|
import { J as JSONViewer } from "../../index-CWMtU1OQ.js";
|
|
7
7
|
import { ClueComponentContext } from "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { c as useClueFetcherSelector } from "../../ActionForm-
|
|
8
|
+
import { c as useClueFetcherSelector } from "../../ActionForm-ZdEo5xJp.js";
|
|
9
9
|
import React__default, { useState, useRef, useMemo, useEffect, memo } from "react";
|
|
10
10
|
import { u as useContextSelector } from "../../index-AMfoEg_6.js";
|
|
11
11
|
import Graph from "../display/graph/index.js";
|
|
@@ -4,7 +4,7 @@ import { F as FlexOne } from "../../FlexOne-BSYAhhtG.js";
|
|
|
4
4
|
import Iconified from "../display/icons/Iconified.js";
|
|
5
5
|
import { SNACKBAR_EVENT_ID } from "../../data/event.js";
|
|
6
6
|
import { ClueGroupContext } from "../../hooks/ClueGroupContext.js";
|
|
7
|
-
import { d as useClueComponentSelector, b as useClueEnrichSelector, e as capitalize } from "../../ActionForm-
|
|
7
|
+
import { d as useClueComponentSelector, b as useClueEnrichSelector, e as capitalize } from "../../ActionForm-ZdEo5xJp.js";
|
|
8
8
|
import { safeDispatchEvent } from "../../utils/window.js";
|
|
9
9
|
import { useState, useMemo, useCallback } from "react";
|
|
10
10
|
import { u as useContextSelector } from "../../index-AMfoEg_6.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Stack, Typography } from "@mui/material";
|
|
3
3
|
import { ClueDatabaseContext } from "../../hooks/ClueDatabaseContext.js";
|
|
4
|
-
import { d as useClueComponentSelector, b as useClueEnrichSelector } from "../../ActionForm-
|
|
4
|
+
import { d as useClueComponentSelector, b as useClueEnrichSelector } from "../../ActionForm-ZdEo5xJp.js";
|
|
5
5
|
import { useContext, useState, useEffect } from "react";
|
|
6
6
|
const QueryStatus = () => {
|
|
7
7
|
const { t } = useClueComponentSelector((ctx) => ctx.i18next);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import { g, C } from "../ActionForm-
|
|
3
|
+
import { g, C } from "../ActionForm-ZdEo5xJp.js";
|
|
4
4
|
import "../index-BfslcSud.js";
|
|
5
5
|
import "../components/display/icons/Iconified.js";
|
|
6
6
|
import "../components/ErrorBoundary.js";
|
|
@@ -3,7 +3,7 @@ import "../iconify-CXMreGTg.js";
|
|
|
3
3
|
import "../index-BfslcSud.js";
|
|
4
4
|
import "../database/globals.js";
|
|
5
5
|
import "../utils/loggerUtil.js";
|
|
6
|
-
import { C, a } from "../ClueEnrichContext-
|
|
6
|
+
import { C, a } from "../ClueEnrichContext-C722Tns5.js";
|
|
7
7
|
import "../sessionStorage-Dbmo2Exe.js";
|
|
8
8
|
import "../groupBy-xqz-n0Vd.js";
|
|
9
9
|
import "../useClueTypeConfig-DnF4rLsl.js";
|
|
@@ -78,7 +78,7 @@ export interface ClueEnrichContextType {
|
|
|
78
78
|
* @param classification An optional indicator-specific classification
|
|
79
79
|
* @returns a list of enrichment results for the given type and value
|
|
80
80
|
*/
|
|
81
|
-
queueEnrich: (type: string, value: string, classification?: string) => Promise<StatusDocument>;
|
|
81
|
+
queueEnrich: (type: string, value: string, classification?: string) => Promise<StatusDocument | null>;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
84
|
* A set of regexes applications can use for detecting the clue type of a given string
|
|
@@ -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-AMfoEg_6.js";
|
|
4
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.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-vg8GqHP3.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-B0jvSEkB.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../index-AMfoEg_6.js";
|
|
9
9
|
export {
|
package/hooks/ClueProvider.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { C as ClueActionProvider } from "../ActionForm-
|
|
2
|
+
import { C as ClueActionProvider } from "../ActionForm-ZdEo5xJp.js";
|
|
3
3
|
import { ClueComponentProvider } from "./ClueComponentContext.js";
|
|
4
4
|
import { ClueConfigProvider } from "./ClueConfigProvider.js";
|
|
5
5
|
import { ClueDatabaseProvider } from "./ClueDatabaseContext.js";
|
|
6
|
-
import { a as ClueEnrichProvider } from "../ClueEnrichContext-
|
|
6
|
+
import { a as ClueEnrichProvider } from "../ClueEnrichContext-C722Tns5.js";
|
|
7
7
|
import { ClueFetcherProvider } from "./ClueFetcherContext.js";
|
|
8
|
-
import { a as CluePopupProvider } from "../AnnotationPreview-
|
|
8
|
+
import { a as CluePopupProvider } from "../AnnotationPreview-vg8GqHP3.js";
|
|
9
9
|
const ClueProvider = ({ children, ...props }) => {
|
|
10
10
|
return /* @__PURE__ */ jsx(ClueComponentProvider, { ...props, children: /* @__PURE__ */ jsx(ClueConfigProvider, { config: props.config, children: /* @__PURE__ */ jsx(ClueDatabaseProvider, { ...props, children: /* @__PURE__ */ jsx(ClueEnrichProvider, { ...props, children: /* @__PURE__ */ jsx(ClueFetcherProvider, { ...props, children: /* @__PURE__ */ jsx(ClueActionProvider, { ...props, children: /* @__PURE__ */ jsx(CluePopupProvider, { children }) }) }) }) }) }) });
|
|
11
11
|
};
|
package/hooks/selectors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a, d, b, c } from "../ActionForm-
|
|
1
|
+
import { a, d, b, c } from "../ActionForm-ZdEo5xJp.js";
|
|
2
2
|
import "./ClueComponentContext.js";
|
|
3
|
-
import "../ClueEnrichContext-
|
|
3
|
+
import "../ClueEnrichContext-C722Tns5.js";
|
|
4
4
|
import "./ClueFetcherContext.js";
|
|
5
5
|
import "../index-AMfoEg_6.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-C722Tns5.js";
|
|
2
2
|
import { useContext, useMemo, useState, useEffect } from "react";
|
|
3
3
|
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
4
|
-
import { b as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.js";
|
|
5
5
|
const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
const database = useContext(ClueDatabaseContext);
|
|
@@ -24,7 +24,7 @@ const useAnnotations = (type, value, _classification, { skipEnrichment } = { ski
|
|
|
24
24
|
if (!ready || !(database == null ? void 0 : database.status)) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
|
-
if (database
|
|
27
|
+
if (database.status.closed) {
|
|
28
28
|
console.warn("Status collection is closed");
|
|
29
29
|
return;
|
|
30
30
|
}
|
|
@@ -34,11 +34,11 @@ const useAnnotations = (type, value, _classification, { skipEnrichment } = { ski
|
|
|
34
34
|
};
|
|
35
35
|
}, [classification, database, ready, type, value]);
|
|
36
36
|
useEffect(() => {
|
|
37
|
-
if (skipEnrichment || availableSources.length < 1 || !ready) {
|
|
37
|
+
if (skipEnrichment || availableSources.length < 1 || !ready || !(database == null ? void 0 : database.status) || database.status.closed) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
40
40
|
queueEnrich(type, value, classification);
|
|
41
|
-
}, [availableSources.length, classification, queueEnrich, ready, skipEnrichment, type, value]);
|
|
41
|
+
}, [availableSources.length, classification, database == null ? void 0 : database.status, queueEnrich, ready, skipEnrichment, type, value]);
|
|
42
42
|
useEffect(() => {
|
|
43
43
|
if (!ready || !(database == null ? void 0 : database.selectors) || database.selectors.closed) {
|
|
44
44
|
return;
|
package/hooks/useClue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useContext } from "../index-AMfoEg_6.js";
|
|
2
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
2
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-C722Tns5.js";
|
|
3
3
|
const useClue = () => {
|
|
4
4
|
return useContext(ClueEnrichContext);
|
|
5
5
|
};
|
package/hooks/useClueActions.js
CHANGED
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 { b as useClueEnrichSelector } from "../ActionForm-
|
|
3
|
+
import { b as useClueEnrichSelector } from "../ActionForm-ZdEo5xJp.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 { u as useClueActions } from "../ActionForm-
|
|
2
|
+
import { u as useClueActions } from "../ActionForm-ZdEo5xJp.js";
|
|
3
3
|
const useActionResult = (resultWithData, interval = 2e3) => {
|
|
4
4
|
const [result, setResult] = useState(resultWithData);
|
|
5
5
|
const timeoutRef = useRef(null);
|
package/icons/Action.js
CHANGED
|
@@ -2,8 +2,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-CXMreGTg.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 { u as useClueActions } from "../ActionForm-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-vg8GqHP3.js";
|
|
6
|
+
import { u as useClueActions } from "../ActionForm-ZdEo5xJp.js";
|
|
7
7
|
import { g as groupBy } from "../groupBy-xqz-n0Vd.js";
|
|
8
8
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
9
9
|
import { u as useContextSelector } from "../index-AMfoEg_6.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-CXMreGTg.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-vg8GqHP3.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-xqz-n0Vd.js";
|
|
7
7
|
import { l as last } from "../last-CUCl67Im.js";
|
|
8
8
|
import { m as maxBy } from "../maxBy-IKHzFrCS.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-vg8GqHP3.js";
|
|
8
8
|
import { g as groupBy } from "../groupBy-xqz-n0Vd.js";
|
|
9
9
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
10
10
|
import { u as useContextSelector } from "../index-AMfoEg_6.js";
|
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-CXMreGTg.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-vg8GqHP3.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-xqz-n0Vd.js";
|
|
7
7
|
import { s as sortBy } from "../sortBy-DfSj8IoJ.js";
|
|
8
8
|
import { s as sumBy } from "../sumBy-D-hb_NY-.js";
|
package/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A, u, a, b, c } from "./ActionForm-
|
|
1
|
+
import { A, u, a, b, c } from "./ActionForm-ZdEo5xJp.js";
|
|
2
2
|
import { default as default2 } from "./components/AnnotationDetailPopover.js";
|
|
3
|
-
import { A as A2 } from "./AnnotationDetails-
|
|
3
|
+
import { A as A2 } from "./AnnotationDetails-B0jvSEkB.js";
|
|
4
4
|
import { default as default3 } from "./components/AnnotationEntry.js";
|
|
5
|
-
import { A as A3, C } from "./AnnotationPreview-
|
|
5
|
+
import { A as A3, C } from "./AnnotationPreview-vg8GqHP3.js";
|
|
6
6
|
import { default as default4 } from "./components/CountBadge.js";
|
|
7
7
|
import { default as default5 } from "./components/EnrichedCard.js";
|
|
8
8
|
import { default as default6 } from "./components/EnrichedChip.js";
|
|
@@ -18,7 +18,7 @@ import { b as b2 } from "./index-BXnMCI65.js";
|
|
|
18
18
|
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
19
19
|
import { ClueConfigContext } from "./hooks/ClueConfigProvider.js";
|
|
20
20
|
import { ClueDatabaseContext } from "./hooks/ClueDatabaseContext.js";
|
|
21
|
-
import { C as C2 } from "./ClueEnrichContext-
|
|
21
|
+
import { C as C2 } from "./ClueEnrichContext-C722Tns5.js";
|
|
22
22
|
import { ClueProvider } from "./hooks/ClueProvider.js";
|
|
23
23
|
import { default as default14 } from "./hooks/useClue.js";
|
|
24
24
|
import { default as default15 } from "./hooks/useClueConfig.js";
|
package/package.json
CHANGED