@cccsaurora/clue-ui 1.5.0-dev.449 → 1.5.0-dev.456
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-CbLz66Rk.js → ActionForm-CvFkw9hc.js} +1 -1
- package/{AnnotationDetails-CdNvyJl7.js → AnnotationDetails-B31ACXCI.js} +1 -1
- package/{AnnotationPreview-C6a3qRFG.js → AnnotationPreview-EVqrlmNm.js} +1 -1
- package/{ClueEnrichContext-0eVIgvZp.js → ClueEnrichContext-C7sNEECP.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +2 -2
- package/components/AnnotationPreview.js +1 -1
- package/components/ClassificationChip.js +4 -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/actions/formats/index.js +1 -1
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +1 -1
- package/components/fetchers/FetcherResultView.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/components/stats/QueryStatus.js +1 -1
- package/hooks/ClueActionContext.js +1 -1
- package/hooks/ClueDatabaseContext.d.ts +4 -0
- package/hooks/ClueDatabaseContext.js +5 -4
- package/hooks/ClueEnrichContext.js +1 -1
- package/hooks/ClueGroupContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +3 -3
- package/hooks/ClueUIPluginContext.d.ts +4 -0
- package/hooks/ClueUIPluginContext.js +4 -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/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 +22 -22
- package/plugins/store.d.ts +1 -1
- package/plugins/store.js +1 -1
- package/{store-9Bv4xoVU.js → store-DHP48fQB.js} +2 -2
|
@@ -16,7 +16,7 @@ import { a as useContextSelector, c as createContext, u 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-DJxl6dC-.js";
|
|
19
|
-
import { C as ClueEnrichContext } from "./ClueEnrichContext-
|
|
19
|
+
import { C as ClueEnrichContext } from "./ClueEnrichContext-C7sNEECP.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 { f as useClueEnrichSelector } from "./ActionForm-
|
|
7
|
+
import { f as useClueEnrichSelector } from "./ActionForm-CvFkw9hc.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, a as useContextSelector } from "./index-_gpzM2Px.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-B31ACXCI.js";
|
|
12
12
|
const CluePopupContext = createContext(null);
|
|
13
13
|
const CluePopupProvider = ({ children }) => {
|
|
14
14
|
const [popupType, setPopupType] = useState(null);
|
|
@@ -133,7 +133,7 @@ const ClueEnrichProvider = ({
|
|
|
133
133
|
requestConfig = onNetworkCall(requestConfig);
|
|
134
134
|
}
|
|
135
135
|
api.configs.get(requestConfig).then(clueConfig.setConfig);
|
|
136
|
-
}, [baseURL, onNetworkCall, skipConfigCall, isReady]);
|
|
136
|
+
}, [baseURL, onNetworkCall, skipConfigCall, enabled, isReady]);
|
|
137
137
|
const [selectorsSynced, setSelectorsSynced] = useState(() => {
|
|
138
138
|
var _a2;
|
|
139
139
|
return !!((_a2 = database == null ? void 0 : database.selectors) == null ? void 0 : _a2.synced);
|
|
@@ -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-B31ACXCI.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-CvFkw9hc.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-BVV07EGQ.js";
|
|
13
|
-
import { A } from "../AnnotationDetails-
|
|
13
|
+
import { A } from "../AnnotationDetails-B31ACXCI.js";
|
|
14
14
|
import "../uniq-CahZPAwp.js";
|
|
15
15
|
import "react";
|
|
16
16
|
import "../index-_gpzM2Px.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-DJxl6dC-.js";
|
|
3
3
|
import "@mui/material";
|
|
4
|
-
import { A } from "../AnnotationPreview-
|
|
4
|
+
import { A } from "../AnnotationPreview-EVqrlmNm.js";
|
|
5
5
|
import "../hooks/useAnnotations.js";
|
|
6
6
|
import "../utils-CEySTPtg.js";
|
|
7
7
|
import "react";
|
|
@@ -22,6 +22,9 @@ const ClassificationChip = React__default.memo(
|
|
|
22
22
|
}, [classification, config.c12nDef, parts]);
|
|
23
23
|
const chipProps = useMemo(() => {
|
|
24
24
|
var _a2, _b2, _c;
|
|
25
|
+
if (!parts) {
|
|
26
|
+
return { color: "default" };
|
|
27
|
+
}
|
|
25
28
|
const definedColor = (_c = (_b2 = config.c12nDef) == null ? void 0 : _b2.levels_styles_map[(_a2 = config.c12nDef) == null ? void 0 : _a2.levels_map[parts.lvlIdx]]) == null ? void 0 : _c.color;
|
|
26
29
|
if (THEME_TYPES.includes(definedColor)) {
|
|
27
30
|
return { color: definedColor };
|
|
@@ -30,7 +33,7 @@ const ClassificationChip = React__default.memo(
|
|
|
30
33
|
return { sx: { color: definedColor } };
|
|
31
34
|
}
|
|
32
35
|
return { color: "default" };
|
|
33
|
-
}, [(_a = config.c12nDef) == null ? void 0 : _a.levels_map, (_b = config.c12nDef) == null ? void 0 : _b.levels_styles_map, parts
|
|
36
|
+
}, [(_a = config.c12nDef) == null ? void 0 : _a.levels_map, (_b = config.c12nDef) == null ? void 0 : _b.levels_styles_map, parts]);
|
|
34
37
|
return /* @__PURE__ */ jsx(Tooltip, { title: classification, children: /* @__PURE__ */ jsx(
|
|
35
38
|
Chip,
|
|
36
39
|
{
|
|
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-DJxl6dC-.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 { f as useClueEnrichSelector } from "../ActionForm-
|
|
5
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.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 { f as useClueEnrichSelector } from "../ActionForm-
|
|
6
|
+
import { C as CluePopupContext } from "../AnnotationPreview-EVqrlmNm.js";
|
|
7
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.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";
|
|
@@ -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 { f as useClueEnrichSelector } from "../ActionForm-
|
|
6
|
+
import { C as CluePopupContext } from "../AnnotationPreview-EVqrlmNm.js";
|
|
7
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.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 { f as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.js";
|
|
5
5
|
import { a as useContextSelector } from "../index-_gpzM2Px.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 { e as useClueComponentSelector, f as useClueEnrichSelector } from "../ActionForm-
|
|
3
|
+
import { e as useClueComponentSelector, f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.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-DUEubgWN.js";
|
|
7
7
|
import "../../hooks/ClueComponentContext.js";
|
|
8
|
-
import { A } from "../../ActionForm-
|
|
8
|
+
import { A } from "../../ActionForm-CvFkw9hc.js";
|
|
9
9
|
import "../../utils-CEySTPtg.js";
|
|
10
10
|
import "react";
|
|
11
11
|
import "../../index-_gpzM2Px.js";
|
|
@@ -3,7 +3,7 @@ import { I as Icon } from "../../iconify-DJxl6dC-.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 { d as useClueActionsSelector } from "../../ActionForm-
|
|
6
|
+
import { d as useClueActionsSelector } from "../../ActionForm-CvFkw9hc.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-DJxl6dC-.js";
|
|
3
3
|
import "@mui/material";
|
|
4
4
|
import "../../hooks/ClueComponentContext.js";
|
|
5
|
-
import { R } from "../../ActionForm-
|
|
5
|
+
import { R } from "../../ActionForm-CvFkw9hc.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "../../index-_gpzM2Px.js";
|
|
8
8
|
import "../ClassificationChip.js";
|
|
@@ -3,7 +3,7 @@ import { Stack } from "@mui/material";
|
|
|
3
3
|
import { J as JSONViewer } from "../../../index-DUEubgWN.js";
|
|
4
4
|
import Markdown from "../../display/markdown/index.js";
|
|
5
5
|
import ErrorBoundary from "../../ErrorBoundary.js";
|
|
6
|
-
import { u as usePluginStore, c as clueUIPluginStore } from "../../../store-
|
|
6
|
+
import { u as usePluginStore, c as clueUIPluginStore } from "../../../store-DHP48fQB.js";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
const Result = ({
|
|
9
9
|
pluginName,
|
|
@@ -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 { e as useClueComponentSelector, f as useClueEnrichSelector, c as capitalize } from "../../ActionForm-
|
|
3
|
+
import { e as useClueComponentSelector, f as useClueEnrichSelector, c as capitalize } from "../../ActionForm-CvFkw9hc.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 }) => {
|
|
@@ -4,7 +4,7 @@ import { useTheme, Skeleton, Chip, Tooltip, Stack, Typography, LinearProgress, P
|
|
|
4
4
|
import { F as FlexOne } from "../../FlexOne-BSYAhhtG.js";
|
|
5
5
|
import Iconified from "../display/icons/Iconified.js";
|
|
6
6
|
import { ClueComponentContext } from "../../hooks/ClueComponentContext.js";
|
|
7
|
-
import { g as useClueFetcherSelector } from "../../ActionForm-
|
|
7
|
+
import { g as useClueFetcherSelector } from "../../ActionForm-CvFkw9hc.js";
|
|
8
8
|
import React__default, { useState, useRef, useMemo, useEffect, memo } from "react";
|
|
9
9
|
import { a as useContextSelector } from "../../index-_gpzM2Px.js";
|
|
10
10
|
import { FetcherResultView } from "./FetcherResultView.js";
|
|
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Stack } from "@mui/material";
|
|
3
3
|
import { J as JSONViewer } from "../../index-DUEubgWN.js";
|
|
4
4
|
import Markdown from "../display/markdown/index.js";
|
|
5
|
-
import { u as usePluginStore, c as clueUIPluginStore } from "../../store-
|
|
5
|
+
import { u as usePluginStore, c as clueUIPluginStore } from "../../store-DHP48fQB.js";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import ErrorBoundary from "../ErrorBoundary.js";
|
|
8
8
|
const FetcherResultView = ({
|
|
@@ -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 { e as useClueComponentSelector, f as useClueEnrichSelector, c as capitalize } from "../../ActionForm-
|
|
7
|
+
import { e as useClueComponentSelector, f as useClueEnrichSelector, c as capitalize } from "../../ActionForm-CvFkw9hc.js";
|
|
8
8
|
import { safeDispatchEvent } from "../../utils/window.js";
|
|
9
9
|
import { useState, useMemo, useCallback } from "react";
|
|
10
10
|
import { a as useContextSelector } from "../../index-_gpzM2Px.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 { e as useClueComponentSelector, f as useClueEnrichSelector } from "../../ActionForm-
|
|
4
|
+
import { e as useClueComponentSelector, f as useClueEnrichSelector } from "../../ActionForm-CvFkw9hc.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 { C, a } from "../ActionForm-
|
|
3
|
+
import { C, a } from "../ActionForm-CvFkw9hc.js";
|
|
4
4
|
import "../index-DpJxD74E.js";
|
|
5
5
|
import "../components/display/icons/Iconified.js";
|
|
6
6
|
import "../components/ErrorBoundary.js";
|
|
@@ -37,6 +37,10 @@ export interface ClueDatabaseContextProps {
|
|
|
37
37
|
* @returns An access token valid for use with the clue API.
|
|
38
38
|
*/
|
|
39
39
|
getToken?: () => string;
|
|
40
|
+
/**
|
|
41
|
+
* The base URL that refers to the clue API. leaving this empty will forward requests to the current origin.
|
|
42
|
+
*/
|
|
43
|
+
baseURL?: string;
|
|
40
44
|
}
|
|
41
45
|
export type ClueDatabaseContextType = ClueDatabase;
|
|
42
46
|
export declare const ClueDatabaseContext: import('react').Context<ClueDatabase>;
|
|
@@ -6,7 +6,8 @@ const ClueDatabaseProvider = ({
|
|
|
6
6
|
children,
|
|
7
7
|
database: _database,
|
|
8
8
|
databaseConfig,
|
|
9
|
-
getToken
|
|
9
|
+
getToken,
|
|
10
|
+
baseURL
|
|
10
11
|
}) => {
|
|
11
12
|
const [database, setDatabase] = useState();
|
|
12
13
|
const getTokenRef = useRef(getToken);
|
|
@@ -20,9 +21,9 @@ const ClueDatabaseProvider = ({
|
|
|
20
21
|
}, [_database]);
|
|
21
22
|
useEffect(() => {
|
|
22
23
|
let cancelled = false;
|
|
23
|
-
if (
|
|
24
|
+
if (_database === void 0) {
|
|
24
25
|
console.warn("It is heavily suggested to initialize the database outside of the React component tree.");
|
|
25
|
-
buildDatabase({ ...databaseConfig, getToken: getTokenRef.current }).then((_db) => {
|
|
26
|
+
buildDatabase({ baseURL, ...databaseConfig, getToken: getTokenRef.current }).then((_db) => {
|
|
26
27
|
if (!cancelled) {
|
|
27
28
|
setDatabase(_db);
|
|
28
29
|
}
|
|
@@ -31,7 +32,7 @@ const ClueDatabaseProvider = ({
|
|
|
31
32
|
cancelled = true;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
}, [_database, databaseConfig]);
|
|
35
|
+
}, [_database, baseURL, databaseConfig]);
|
|
35
36
|
return /* @__PURE__ */ jsx(ClueDatabaseContext.Provider, { value: database, children });
|
|
36
37
|
};
|
|
37
38
|
export {
|
|
@@ -4,7 +4,7 @@ import "../index-DpJxD74E.js";
|
|
|
4
4
|
import "../database/globals.js";
|
|
5
5
|
import "../utils/loggerUtil.js";
|
|
6
6
|
import "../utils-CEySTPtg.js";
|
|
7
|
-
import { C, a } from "../ClueEnrichContext-
|
|
7
|
+
import { C, a } from "../ClueEnrichContext-C7sNEECP.js";
|
|
8
8
|
import "../sessionStorage-B68y-wnE.js";
|
|
9
9
|
import "../groupBy-BVV07EGQ.js";
|
|
10
10
|
import "../uniq-CahZPAwp.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo } from "react";
|
|
3
3
|
import { c as createContext } from "../index-_gpzM2Px.js";
|
|
4
|
-
import { f as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.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-EVqrlmNm.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-B31ACXCI.js";
|
|
7
7
|
import "react";
|
|
8
8
|
import "../index-_gpzM2Px.js";
|
|
9
9
|
export {
|
package/hooks/ClueProvider.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { ClueUIPluginProvider } from "./ClueUIPluginContext.js";
|
|
3
|
-
import { a as ClueActionProvider } from "../ActionForm-
|
|
3
|
+
import { a as ClueActionProvider } from "../ActionForm-CvFkw9hc.js";
|
|
4
4
|
import { ClueComponentProvider } from "./ClueComponentContext.js";
|
|
5
5
|
import { ClueConfigProvider } from "./ClueConfigProvider.js";
|
|
6
6
|
import { ClueDatabaseProvider } from "./ClueDatabaseContext.js";
|
|
7
|
-
import { a as ClueEnrichProvider } from "../ClueEnrichContext-
|
|
7
|
+
import { a as ClueEnrichProvider } from "../ClueEnrichContext-C7sNEECP.js";
|
|
8
8
|
import { ClueFetcherProvider } from "./ClueFetcherContext.js";
|
|
9
|
-
import { a as CluePopupProvider } from "../AnnotationPreview-
|
|
9
|
+
import { a as CluePopupProvider } from "../AnnotationPreview-EVqrlmNm.js";
|
|
10
10
|
const ClueProvider = ({ children, ...props }) => {
|
|
11
11
|
return /* @__PURE__ */ jsx(ClueComponentProvider, { ...props, children: /* @__PURE__ */ jsx(ClueConfigProvider, { config: props.config, children: /* @__PURE__ */ jsx(ClueDatabaseProvider, { ...props, children: /* @__PURE__ */ jsx(ClueUIPluginProvider, { ...props, children: /* @__PURE__ */ jsx(ClueEnrichProvider, { ...props, children: /* @__PURE__ */ jsx(ClueFetcherProvider, { ...props, children: /* @__PURE__ */ jsx(ClueActionProvider, { ...props, children: /* @__PURE__ */ jsx(CluePopupProvider, { children }) }) }) }) }) }) }) });
|
|
12
12
|
};
|
|
@@ -17,6 +17,10 @@ export type ClueUIPluginProviderProps = {
|
|
|
17
17
|
* If true, do not load any plugins from the ClueUIPluginsRegistry, only load plugins passed in via props
|
|
18
18
|
*/
|
|
19
19
|
excludeBuiltInPlugins?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* If true, don't print the author information of loaded plugins
|
|
22
|
+
*/
|
|
23
|
+
silent?: boolean;
|
|
20
24
|
};
|
|
21
25
|
export type ClueUIPluginContextType = {
|
|
22
26
|
clueUIPluginStore: ClueUIPluginStore;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import ClueUIPluginsRegistry from "../plugins/registry.js";
|
|
3
|
-
import { c as clueUIPluginStore, P as PluginProvider } from "../store-
|
|
3
|
+
import { c as clueUIPluginStore, P as PluginProvider } from "../store-DHP48fQB.js";
|
|
4
4
|
import { createContext, useState, useEffect } from "react";
|
|
5
5
|
const ClueUIPluginContext = createContext(null);
|
|
6
6
|
const ClueUIPluginProvider = ({
|
|
7
7
|
plugins,
|
|
8
8
|
excludePlugins,
|
|
9
9
|
excludeBuiltInPlugins,
|
|
10
|
+
silent,
|
|
10
11
|
children
|
|
11
12
|
}) => {
|
|
12
13
|
const [pluginStore, setPluginStore] = useState(() => clueUIPluginStore.pluginStore);
|
|
@@ -17,7 +18,7 @@ const ClueUIPluginProvider = ({
|
|
|
17
18
|
const pluginModule = await pluginDef.loadPlugin();
|
|
18
19
|
if (abortController.signal.aborted) return;
|
|
19
20
|
const plugin = new pluginModule.default();
|
|
20
|
-
clueUIPluginStore.install(plugin);
|
|
21
|
+
clueUIPluginStore.install(plugin, silent);
|
|
21
22
|
} catch (err) {
|
|
22
23
|
if (abortController.signal.aborted) return;
|
|
23
24
|
console.error(`[ClueUIPluginProvider] Failed to load plugin: ${pluginDef.name ?? pluginDef.id}`, err);
|
|
@@ -50,7 +51,7 @@ const ClueUIPluginProvider = ({
|
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
return () => abortController.abort();
|
|
53
|
-
}, [excludeBuiltInPlugins, excludePlugins, plugins]);
|
|
54
|
+
}, [excludeBuiltInPlugins, excludePlugins, plugins, silent]);
|
|
54
55
|
return /* @__PURE__ */ jsx(ClueUIPluginContext.Provider, { value: { clueUIPluginStore }, children: /* @__PURE__ */ jsx(PluginProvider, { pluginStore, children }) });
|
|
55
56
|
};
|
|
56
57
|
export {
|
package/hooks/selectors.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d, e, f, g } from "../ActionForm-
|
|
1
|
+
import { d, e, f, g } from "../ActionForm-CvFkw9hc.js";
|
|
2
2
|
import "./ClueComponentContext.js";
|
|
3
|
-
import "../ClueEnrichContext-
|
|
3
|
+
import "../ClueEnrichContext-C7sNEECP.js";
|
|
4
4
|
import "./ClueFetcherContext.js";
|
|
5
5
|
import "../index-_gpzM2Px.js";
|
|
6
6
|
export {
|
package/hooks/useActionResult.js
CHANGED
package/hooks/useAnnotations.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as uniqBy } from "../ClueEnrichContext-
|
|
1
|
+
import { u as uniqBy } from "../ClueEnrichContext-C7sNEECP.js";
|
|
2
2
|
import { useContext, useMemo, useState, useEffect } from "react";
|
|
3
3
|
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
4
|
-
import { f as useClueEnrichSelector } from "../ActionForm-
|
|
4
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.js";
|
|
5
5
|
const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
|
|
6
6
|
var _a;
|
|
7
7
|
const database = useContext(ClueDatabaseContext);
|
package/hooks/useClue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as useContext } from "../index-_gpzM2Px.js";
|
|
2
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
2
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-C7sNEECP.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 { f as useClueEnrichSelector } from "../ActionForm-
|
|
3
|
+
import { f as useClueEnrichSelector } from "../ActionForm-CvFkw9hc.js";
|
|
4
4
|
const useErrors = (value) => {
|
|
5
5
|
const database = useContext(ClueDatabaseContext);
|
|
6
6
|
const ready = useClueEnrichSelector((ctx) => ctx.ready);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useRef, useMemo, useEffect } from "react";
|
|
2
|
-
import { b as useClueActions } from "../ActionForm-
|
|
2
|
+
import { b as useClueActions } from "../ActionForm-CvFkw9hc.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-DJxl6dC-.js";
|
|
3
3
|
import { useTheme, Stack, Divider, Typography } from "@mui/material";
|
|
4
4
|
import CountBadge from "../components/CountBadge.js";
|
|
5
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
6
|
-
import { b as useClueActions } from "../ActionForm-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-EVqrlmNm.js";
|
|
6
|
+
import { b as useClueActions } from "../ActionForm-CvFkw9hc.js";
|
|
7
7
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
8
8
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
9
9
|
import { a as useContextSelector } from "../index-_gpzM2Px.js";
|
package/icons/Assessment.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { I as Icon } from "../iconify-DJxl6dC-.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-EVqrlmNm.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
7
7
|
import { l as last } from "../last-CUCl67Im.js";
|
|
8
8
|
import { m as maxBy } from "../maxBy-BjjQmX5t.js";
|
package/icons/Context.js
CHANGED
|
@@ -4,7 +4,7 @@ import { Stack, Divider } from "@mui/material";
|
|
|
4
4
|
import AnnotationEntry from "../components/AnnotationEntry.js";
|
|
5
5
|
import CountBadge from "../components/CountBadge.js";
|
|
6
6
|
import Iconified from "../components/display/icons/Iconified.js";
|
|
7
|
-
import { C as CluePopupContext } from "../AnnotationPreview-
|
|
7
|
+
import { C as CluePopupContext } from "../AnnotationPreview-EVqrlmNm.js";
|
|
8
8
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
9
9
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
10
10
|
import { a as useContextSelector } from "../index-_gpzM2Px.js";
|
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-DJxl6dC-.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-EVqrlmNm.js";
|
|
6
6
|
import { g as groupBy } from "../groupBy-BVV07EGQ.js";
|
|
7
7
|
import { s as sortBy } from "../sortBy-B8JVsLQY.js";
|
|
8
8
|
import { s as sumBy } from "../sumBy-D-HCzM2i.js";
|
package/main.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A, b, d, f, g } from "./ActionForm-
|
|
1
|
+
import { A, b, d, f, g } from "./ActionForm-CvFkw9hc.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-B31ACXCI.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-EVqrlmNm.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-IKI1G5v-.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-C7sNEECP.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
|
@@ -67,60 +67,60 @@
|
|
|
67
67
|
},
|
|
68
68
|
"type": "module",
|
|
69
69
|
"types": "main.d.ts",
|
|
70
|
-
"version": "1.5.0-dev.
|
|
70
|
+
"version": "1.5.0-dev.456",
|
|
71
71
|
"exports": {
|
|
72
72
|
".": "./main.js",
|
|
73
73
|
"./index.css": "./index.css",
|
|
74
74
|
"./en/*.json": "./en/*.json",
|
|
75
75
|
"./fr/*.json": "./fr/*.json",
|
|
76
|
-
"./icons/*": "./icons/*.js",
|
|
77
76
|
"./plugins/*": "./plugins/*.js",
|
|
78
|
-
"./
|
|
77
|
+
"./database/*": "./database/*.js",
|
|
78
|
+
"./database": "./database/index.js",
|
|
79
79
|
"./hooks/*": "./hooks/*.js",
|
|
80
|
+
"./data/*": "./data/*.js",
|
|
81
|
+
"./text/*": "./text/*.js",
|
|
80
82
|
"./utils/*": "./utils/*.js",
|
|
81
83
|
"./utils/*.json": "./utils/*.json",
|
|
82
|
-
"./
|
|
84
|
+
"./icons/*": "./icons/*.js",
|
|
83
85
|
"./types/*": "./types/*.js",
|
|
84
|
-
"./database/*": "./database/*.js",
|
|
85
|
-
"./database": "./database/index.js",
|
|
86
86
|
"./components/*": "./components/*.js",
|
|
87
|
-
"./plugins/graph/*": "./plugins/graph/*.js",
|
|
88
|
-
"./plugins/graph": "./plugins/graph/index.js",
|
|
89
|
-
"./plugins/file/*": "./plugins/file/*.js",
|
|
90
|
-
"./plugins/file": "./plugins/file/index.js",
|
|
91
87
|
"./plugins/image/*": "./plugins/image/*.js",
|
|
92
88
|
"./plugins/image": "./plugins/image/index.js",
|
|
89
|
+
"./plugins/file/*": "./plugins/file/*.js",
|
|
90
|
+
"./plugins/file": "./plugins/file/index.js",
|
|
93
91
|
"./plugins/markdown/*.md": "./plugins/markdown/*.md.js",
|
|
94
92
|
"./plugins/markdown": "./plugins/markdown/index.js",
|
|
95
93
|
"./plugins/json/*": "./plugins/json/*.js",
|
|
96
94
|
"./plugins/json": "./plugins/json/index.js",
|
|
95
|
+
"./plugins/graph/*": "./plugins/graph/*.js",
|
|
96
|
+
"./plugins/graph": "./plugins/graph/index.js",
|
|
97
97
|
"./plugins/test/*": "./plugins/test/*.js",
|
|
98
98
|
"./plugins/test": "./plugins/test/index.js",
|
|
99
99
|
"./plugins/graph/example/*": "./plugins/graph/example/*.js",
|
|
100
|
+
"./components/stats/*": "./components/stats/*.js",
|
|
100
101
|
"./components/enrichment/*": "./components/enrichment/*.js",
|
|
101
|
-
"./components/fetchers/*": "./components/fetchers/*.js",
|
|
102
|
-
"./components/actions/*": "./components/actions/*.js",
|
|
103
102
|
"./components/group/*": "./components/group/*.js",
|
|
104
|
-
"./components/stats/*": "./components/stats/*.js",
|
|
105
103
|
"./components/display/*": "./components/display/*.js",
|
|
106
|
-
"./components/
|
|
107
|
-
"./components/actions
|
|
108
|
-
"./components/actions/formats": "./components/actions/formats/index.js",
|
|
109
|
-
"./components/display/icons/*": "./components/display/icons/*.js",
|
|
110
|
-
"./components/display/graph/*": "./components/display/graph/*.js",
|
|
111
|
-
"./components/display/graph": "./components/display/graph/index.js",
|
|
104
|
+
"./components/fetchers/*": "./components/fetchers/*.js",
|
|
105
|
+
"./components/actions/*": "./components/actions/*.js",
|
|
112
106
|
"./components/display/markdown/*.md": "./components/display/markdown/*.md.js",
|
|
113
107
|
"./components/display/markdown": "./components/display/markdown/index.js",
|
|
108
|
+
"./components/display/icons/*": "./components/display/icons/*.js",
|
|
114
109
|
"./components/display/json/*": "./components/display/json/*.js",
|
|
115
110
|
"./components/display/json": "./components/display/json/index.js",
|
|
116
|
-
"./components/display/graph
|
|
111
|
+
"./components/display/graph/*": "./components/display/graph/*.js",
|
|
112
|
+
"./components/display/graph": "./components/display/graph/index.js",
|
|
117
113
|
"./components/display/graph/elements/*": "./components/display/graph/elements/*.js",
|
|
114
|
+
"./components/display/graph/visualizations/*": "./components/display/graph/visualizations/*.js",
|
|
115
|
+
"./components/display/graph/visualizations/panels/*": "./components/display/graph/visualizations/panels/*.js",
|
|
118
116
|
"./components/display/graph/visualizations/icons/*": "./components/display/graph/visualizations/icons/*.js",
|
|
119
117
|
"./components/display/graph/visualizations/icons": "./components/display/graph/visualizations/icons/index.js",
|
|
120
|
-
"./components/display/graph/visualizations/panels/*": "./components/display/graph/visualizations/panels/*.js",
|
|
121
118
|
"./components/display/graph/visualizations/cloud/*": "./components/display/graph/visualizations/cloud/*.js",
|
|
122
119
|
"./components/display/graph/visualizations/cloud": "./components/display/graph/visualizations/cloud/index.js",
|
|
123
120
|
"./components/display/graph/visualizations/tree/*": "./components/display/graph/visualizations/tree/*.js",
|
|
124
|
-
"./components/display/graph/visualizations/tree": "./components/display/graph/visualizations/tree/index.js"
|
|
121
|
+
"./components/display/graph/visualizations/tree": "./components/display/graph/visualizations/tree/index.js",
|
|
122
|
+
"./components/actions/formats/*": "./components/actions/formats/*.js",
|
|
123
|
+
"./components/actions/formats": "./components/actions/formats/index.js",
|
|
124
|
+
"./components/actions/form/*": "./components/actions/form/*.js"
|
|
125
125
|
}
|
|
126
126
|
}
|
package/plugins/store.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class ClueUIPluginStore {
|
|
|
15
15
|
actionPlugins: string[];
|
|
16
16
|
fetcherPlugins: string[];
|
|
17
17
|
reset(): void;
|
|
18
|
-
install(plugin: ClueUIPlugin): void;
|
|
18
|
+
install(plugin: ClueUIPlugin, silent?: boolean): void;
|
|
19
19
|
/**
|
|
20
20
|
* Get plugins based on the given criteria.
|
|
21
21
|
*
|
package/plugins/store.js
CHANGED
|
@@ -2060,11 +2060,11 @@ class ClueUIPluginStore {
|
|
|
2060
2060
|
this.actionPlugins = [];
|
|
2061
2061
|
this.fetcherPlugins = [];
|
|
2062
2062
|
}
|
|
2063
|
-
install(plugin) {
|
|
2063
|
+
install(plugin, silent = false) {
|
|
2064
2064
|
if (this.plugins.includes(plugin.name)) {
|
|
2065
2065
|
return;
|
|
2066
2066
|
}
|
|
2067
|
-
{
|
|
2067
|
+
if (!silent) {
|
|
2068
2068
|
console.log(`Installing plugin ${plugin.getPluginName()} by ${plugin.author}`);
|
|
2069
2069
|
}
|
|
2070
2070
|
this.pluginStore.install(plugin);
|