@cccsaurora/clue-ui 1.0.1-dev.58 → 1.0.1-dev.65
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-c5hLIfQ-.js → ActionForm-D4ryHO0M.js} +6 -6
- package/AnnotationDetails-C_P001d3.js +175 -0
- package/{AnnotationPreview-BvNpZOP0.js → AnnotationPreview-BOpYuxD1.js} +2 -2
- package/{ClueEnrichContext-m-4vn9rz.js → ClueEnrichContext-DmhtfJg_.js} +6 -6
- package/api/lookup/enrich.d.ts +3 -3
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +21 -170
- package/components/AnnotationEntry.js +1 -1
- package/components/AnnotationPreview.js +2 -2
- package/components/EnrichedCard.js +1 -1
- package/components/EnrichedChip.js +1 -1
- package/components/EnrichedTypography.js +1 -1
- package/components/actions/ActionForm.js +3 -3
- package/components/actions/ResultModal.js +1 -1
- package/components/display/graph/elements/NodeCard.js +2 -2
- package/components/display/graph/index.js +1 -1
- package/components/display/json/index.js +2 -2
- package/components/enrichment/EnrichPopover.js +1 -1
- package/components/fetchers/Fetcher.js +1 -1
- package/components/group/Entry.js +1 -1
- package/components/group/GroupControl.js +1 -1
- package/database/index.js +1 -1
- package/hooks/ClueActionContext.d.ts +1 -1
- package/hooks/ClueActionContext.js +3 -3
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +4 -4
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/CluePopupContext.js +2 -2
- package/hooks/ClueProvider.js +3 -3
- package/hooks/selectors.js +2 -2
- package/hooks/useClue.js +1 -1
- package/hooks/useClueActions.js +1 -1
- package/hooks/useClueTypeConfig.d.ts +2 -1
- package/hooks/useClueTypeConfig.js +2 -2
- package/hooks/useMyLocalStorage.js +2 -2
- package/icons/Action.js +3 -3
- package/icons/Assessment.js +5 -5
- package/icons/Context.js +2 -2
- package/icons/Opinion.js +4 -4
- package/{index-C9lySIVX.js → index-BHPT3qoB.js} +1 -1
- package/{index-BDrtH5ec.js → index-BMxyILVD.js} +1 -1
- package/{index-Dn2NHyXg.js → index-Dz1kF2MU.js} +2 -2
- package/main.d.ts +0 -1
- package/main.js +52 -62
- package/package.json +1 -1
- package/text/Frequency.js +5 -5
- package/{useClueTypeConfig-D4zcy8Gr.js → useClueTypeConfig-CH-nGq6a.js} +13 -13
- package/utils/utils.js +2 -2
- package/isUndefined-CE8h73dH.js +0 -10
- package/{utils-CxIhC2xH.js → utils-Dr4wbKBZ.js} +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosRequestConfig } from 'axios';
|
|
2
2
|
import { ActionDefinitionsResponse, ActionResult } from "../types/action";
|
|
3
3
|
import { Selector } from "../types/lookup";
|
|
4
|
-
import {
|
|
4
|
+
import { WithActionData } from "../types/WithActionData";
|
|
5
5
|
import { FC, PropsWithChildren } from 'react';
|
|
6
6
|
|
|
7
7
|
export interface ClueActionContextType {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import "../index-
|
|
4
|
-
import "../useClueTypeConfig-
|
|
5
|
-
import { a, C } from "../ActionForm-
|
|
3
|
+
import "../index-Dz1kF2MU.js";
|
|
4
|
+
import "../useClueTypeConfig-CH-nGq6a.js";
|
|
5
|
+
import { a, C } from "../ActionForm-D4ryHO0M.js";
|
|
6
6
|
import "../components/actions/ResultModal.js";
|
|
7
7
|
import "../components/display/icons/Iconified.js";
|
|
8
8
|
import "../components/ErrorBoundary.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { b as buildDatabase } from "../index-
|
|
2
|
+
import { b as buildDatabase } from "../index-Dz1kF2MU.js";
|
|
3
3
|
import { createContext, useState, useEffect } from "react";
|
|
4
4
|
const ClueDatabaseContext = createContext(null);
|
|
5
5
|
const ClueDatabaseProvider = ({
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../iconify-CXMreGTg.js";
|
|
3
|
-
import "../useClueTypeConfig-
|
|
3
|
+
import "../useClueTypeConfig-CH-nGq6a.js";
|
|
4
4
|
import "../utils/loggerUtil.js";
|
|
5
|
+
import { C, a } from "../ClueEnrichContext-DmhtfJg_.js";
|
|
6
|
+
import "../debounce-bV0h5FC5.js";
|
|
7
|
+
import "../groupBy-DC2oOuBN.js";
|
|
5
8
|
import "react";
|
|
6
9
|
import "../index-BDVjGvMI.js";
|
|
7
10
|
import "./ClueDatabaseContext.js";
|
|
8
11
|
import "./useClueConfig.js";
|
|
9
|
-
import { C, a } from "../ClueEnrichContext-m-4vn9rz.js";
|
|
10
|
-
import "../groupBy-DC2oOuBN.js";
|
|
11
|
-
import "../debounce-bV0h5FC5.js";
|
|
12
12
|
export {
|
|
13
13
|
C as ClueEnrichContext,
|
|
14
14
|
a as ClueEnrichProvider
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { a as api } from "../useClueTypeConfig-
|
|
2
|
+
import { a as api } from "../useClueTypeConfig-CH-nGq6a.js";
|
|
3
3
|
import { useState, useRef, useCallback, useEffect, useMemo } from "react";
|
|
4
4
|
import { c as createContext } from "../index-BDVjGvMI.js";
|
|
5
5
|
import useClue from "./useClue.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "../components/AnnotationDetailPopover.js";
|
|
3
|
-
import { C, a } from "../AnnotationPreview-
|
|
3
|
+
import { C, a } from "../AnnotationPreview-BOpYuxD1.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
+
import "../AnnotationDetails-C_P001d3.js";
|
|
6
7
|
import "react";
|
|
7
8
|
import "../index-BDVjGvMI.js";
|
|
8
|
-
import "../isUndefined-CE8h73dH.js";
|
|
9
9
|
export {
|
|
10
10
|
C as CluePopupContext,
|
|
11
11
|
a as CluePopupProvider
|
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-D4ryHO0M.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-DmhtfJg_.js";
|
|
7
7
|
import { ClueFetcherProvider } from "./ClueFetcherContext.js";
|
|
8
|
-
import { a as CluePopupProvider } from "../AnnotationPreview-
|
|
8
|
+
import { a as CluePopupProvider } from "../AnnotationPreview-BOpYuxD1.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,7 +1,7 @@
|
|
|
1
1
|
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
2
|
-
import { a as ClueActionContext } from "../ActionForm-
|
|
2
|
+
import { a as ClueActionContext } from "../ActionForm-D4ryHO0M.js";
|
|
3
3
|
import { ClueComponentContext } from "./ClueComponentContext.js";
|
|
4
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
4
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-DmhtfJg_.js";
|
|
5
5
|
import { ClueFetcherContext } from "./ClueFetcherContext.js";
|
|
6
6
|
const useClueFetcherSelector = (selector) => {
|
|
7
7
|
return useContextSelector(ClueFetcherContext, selector);
|
package/hooks/useClue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as useContext } from "../index-BDVjGvMI.js";
|
|
2
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
2
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-DmhtfJg_.js";
|
|
3
3
|
const useClue = () => {
|
|
4
4
|
return useContext(ClueEnrichContext);
|
|
5
5
|
};
|
package/hooks/useClueActions.js
CHANGED
|
@@ -9,9 +9,10 @@ import { AxiosRequestConfig } from 'axios';
|
|
|
9
9
|
* @param onNetworkCall Callback to configure Axios requests.
|
|
10
10
|
* @returns An object containing the available sources and the types detection.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
declare const useClueTypeConfig: (ready: boolean, baseURL: string, debugLogging: boolean, getToken?: () => string, onNetworkCall?: (config: AxiosRequestConfig) => AxiosRequestConfig) => {
|
|
13
13
|
availableSources: Array<string>;
|
|
14
14
|
typesDetection: {
|
|
15
15
|
[type: string]: RegExp;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
+
export default useClueTypeConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback, useMemo, useState, useEffect, createContext, useContext } from "react";
|
|
2
|
-
import { i as
|
|
2
|
+
import { i as isNil } from "../isNil-CIubwp4T.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import { MY_LOCAL_STORAGE_PREFIX } from "../utils/constants.js";
|
|
5
5
|
function useLocalStorage(prefix) {
|
|
@@ -50,7 +50,7 @@ function useLocalStorageItem(key, initialValue, prefix) {
|
|
|
50
50
|
value,
|
|
51
51
|
(newValue, save = true) => {
|
|
52
52
|
if (save) {
|
|
53
|
-
if (!
|
|
53
|
+
if (!isNil(newValue)) {
|
|
54
54
|
set(key, newValue);
|
|
55
55
|
} else {
|
|
56
56
|
remove(key);
|
package/icons/Action.js
CHANGED
|
@@ -2,11 +2,11 @@ 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-BOpYuxD1.js";
|
|
6
|
+
import { u as useClueActions } from "../ActionForm-D4ryHO0M.js";
|
|
7
|
+
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
7
8
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
8
9
|
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
9
|
-
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
10
10
|
const ResultDetails = ({ result }) => {
|
|
11
11
|
return /* @__PURE__ */ jsxs(Stack, { p: 1, children: [
|
|
12
12
|
/* @__PURE__ */ jsx(Typography, { variant: "body1", children: result.action.name }),
|
package/icons/Assessment.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsxs, jsx, Fragment } 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-
|
|
6
|
-
import { memo, useRef, useState, useMemo, useEffect } from "react";
|
|
7
|
-
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-BOpYuxD1.js";
|
|
8
6
|
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
9
|
-
import { s as sumBy } from "../sumBy-MYkDPHZL.js";
|
|
10
|
-
import { m as maxBy, s as sortBy } from "../sortBy-B-UKp4GT.js";
|
|
11
7
|
import { l as last } from "../last-CUCl67Im.js";
|
|
8
|
+
import { m as maxBy, s as sortBy } from "../sortBy-B-UKp4GT.js";
|
|
9
|
+
import { s as sumBy } from "../sumBy-MYkDPHZL.js";
|
|
10
|
+
import { memo, useRef, useState, useMemo, useEffect } from "react";
|
|
11
|
+
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
12
12
|
const AssessmentIcon = ({ annotations, value, counters = true, disableTooltip = false, ubiquitous = false, ...otherProps }) => {
|
|
13
13
|
const theme = useTheme();
|
|
14
14
|
const showInfo = useContextSelector(CluePopupContext, (state) => state.showInfo);
|
package/icons/Context.js
CHANGED
|
@@ -4,10 +4,10 @@ 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-BOpYuxD1.js";
|
|
8
|
+
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
8
9
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
9
10
|
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
10
|
-
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
11
11
|
const ContextIcon = ({
|
|
12
12
|
annotations,
|
|
13
13
|
value,
|
package/icons/Opinion.js
CHANGED
|
@@ -2,13 +2,13 @@ import { jsxs, jsx, Fragment } 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-BOpYuxD1.js";
|
|
6
6
|
import chain from "../utils/chain.js";
|
|
7
|
-
import { memo, useRef, useMemo, useCallback, useEffect } from "react";
|
|
8
|
-
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
9
7
|
import { g as groupBy } from "../groupBy-DC2oOuBN.js";
|
|
10
|
-
import { s as sumBy } from "../sumBy-MYkDPHZL.js";
|
|
11
8
|
import { s as sortBy } from "../sortBy-B-UKp4GT.js";
|
|
9
|
+
import { s as sumBy } from "../sumBy-MYkDPHZL.js";
|
|
10
|
+
import { memo, useRef, useMemo, useCallback, useEffect } from "react";
|
|
11
|
+
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
12
12
|
const OpinionIcon = ({ annotations, value, counters = true, disableTooltip = false, ubiquitous = false, ...otherProps }) => {
|
|
13
13
|
const theme = useTheme();
|
|
14
14
|
const showInfo = useContextSelector(CluePopupContext, (state) => state.showInfo);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NON_PREMIUM_COLLECTION_LIMIT, R as RxDatabaseBase, a as RxCollectionBase, c as createRxDocumentConstructor, d as basePrototype, n as newRxError, i as isMaybeReadonlyArray, g as getSchemaByObjectPath, f as flattenObject, e as getProperty, t as trimDots, h as appendToArray, j as getPrimaryFieldOfPrimaryKey, k as newRxTypeError, l as getPreviousVersions, m as isFolderPath, o as findUndefinedPath, p as deepEqual, q as prepareQuery, r as fillPrimaryKey, s as hasPremiumFlag, u as RXDB_VERSION, v as hashStringToNumber, w as deepFreeze } from "./index-
|
|
1
|
+
import { N as NON_PREMIUM_COLLECTION_LIMIT, R as RxDatabaseBase, a as RxCollectionBase, c as createRxDocumentConstructor, d as basePrototype, n as newRxError, i as isMaybeReadonlyArray, g as getSchemaByObjectPath, f as flattenObject, e as getProperty, t as trimDots, h as appendToArray, j as getPrimaryFieldOfPrimaryKey, k as newRxTypeError, l as getPreviousVersions, m as isFolderPath, o as findUndefinedPath, p as deepEqual, q as prepareQuery, r as fillPrimaryKey, s as hasPremiumFlag, u as RXDB_VERSION, v as hashStringToNumber, w as deepFreeze } from "./index-Dz1kF2MU.js";
|
|
2
2
|
var ERROR_MESSAGES = {
|
|
3
3
|
// util.js / config
|
|
4
4
|
UT1: "given name is no string or empty",
|
|
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { ClickAwayListener, TextField, InputAdornment, Popper, Paper, MenuList, MenuItem, ListItemText, useTheme, Stack, Skeleton } from "@mui/material";
|
|
6
6
|
import { useRef, useState, useEffect, useMemo, lazy } from "react";
|
|
7
|
-
import { r as removeEmpty, s as searchObject, f as flatten } from "./utils-
|
|
7
|
+
import { r as removeEmpty, s as searchObject, f as flatten } from "./utils-Dr4wbKBZ.js";
|
|
8
8
|
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
9
9
|
import { useMyLocalStorageItem } from "./hooks/useMyLocalStorage.js";
|
|
10
10
|
import { StorageKey } from "./utils/constants.js";
|
|
@@ -17583,7 +17583,7 @@ const buildDatabase = async (_config = {}) => {
|
|
|
17583
17583
|
addRxPlugin(RxDBUpdatePlugin);
|
|
17584
17584
|
/* v8 ignore next 10 -- @preserve */
|
|
17585
17585
|
if (config2.devMode) {
|
|
17586
|
-
await import("./index-
|
|
17586
|
+
await import("./index-BHPT3qoB.js").then((module) => {
|
|
17587
17587
|
addRxPlugin(module.RxDBDevModePlugin);
|
|
17588
17588
|
if (config2.testing) {
|
|
17589
17589
|
module.disableWarnings();
|
|
@@ -17591,7 +17591,7 @@ const buildDatabase = async (_config = {}) => {
|
|
|
17591
17591
|
});
|
|
17592
17592
|
}
|
|
17593
17593
|
const database = await createRxDatabase({
|
|
17594
|
-
name: "
|
|
17594
|
+
name: "clue",
|
|
17595
17595
|
/* v8 ignore next 7 -- @preserve */
|
|
17596
17596
|
storage: config2.storageType === "memory" ? wrappedValidateAjvStorage({ storage: getRxStorageMemory() }) : wrappedKeyCompressionStorage({
|
|
17597
17597
|
storage: wrappedValidateAjvStorage({
|
package/main.d.ts
CHANGED
|
@@ -37,6 +37,5 @@ import { default as OpinionIcon } from './icons/Opinion';
|
|
|
37
37
|
import { default as FrequencyText } from './text/Frequency';
|
|
38
38
|
|
|
39
39
|
export { ActionForm, AnnotationDetailPopover, AnnotationDetails, AnnotationEntry, AnnotationPreview, AssessmentIcon, buildDatabase, ClueComponentContext, ClueDatabaseContext, ClueEnrichContext, CluePopupContext, ClueProvider, ContextIcon, CountBadge, EnrichedCard, EnrichedChip, EnrichedTypography, Entry, Fetcher, FrequencyText, Group, GroupControl, OpinionIcon, SNACKBAR_EVENT_ID, SourcePicker, StatusChip, useClue, useClueActions, useClueActionsSelector, useClueEnrichSelector, useClueFetcherSelector };
|
|
40
|
-
export { ClueComponentContext as BorealisComponentContext, ClueDatabaseContext as BorealisDatabaseContext, ClueEnrichContext as BorealisEnrichContext, CluePopupContext as BorealisPopupContext, ClueProvider as BorealisProvider, useClue as useBorealis, useClueActions as useBorealisActions, useClueActionsSelector as useBorealisActionsSelector, useClueEnrichSelector as useBorealisEnrichSelector, useClueFetcherSelector as useBorealisFetcherSelector };
|
|
41
40
|
export type { ActionDefinition, ActionDefinitionsResponse, ActionResult, Annotation, BulkEnrichRequest, BulkEnrichResponses, ClueConfigContextProps, ClueDatabase, ClueDatabaseCollections, ClueDatabaseContextProps, ClueResponse, EnrichedCardProps, EnrichedTypographyProps, Enrichment, EnrichmentProps, EnrichResponse, EnrichResponses, FailedRequest, FetcherDefinition, FetcherDefinitionsResponse, FetcherResult, RunningActionData, Selector, SelectorCollection, SelectorCollectionMethods, SelectorDocMethods, SelectorDocType, SelectorDocument, SnackbarEvents, StatusCollection, StatusCollectionMethods, StatusDocMethods, StatusDocType, StatusDocument, TypesDetectionResponse, TypesResponse, WithExtra };
|
|
42
41
|
export type { ClueConfigContextProps as BorealisConfigContextProps, ClueDatabase as BorealisDatabase, ClueDatabaseCollections as BorealisDatabaseCollections, ClueDatabaseContextProps as BorealisDatabaseContextProps, ClueResponse as BorealisResponse };
|
package/main.js
CHANGED
|
@@ -1,70 +1,60 @@
|
|
|
1
|
-
import { A, u
|
|
1
|
+
import { A, u } from "./ActionForm-D4ryHO0M.js";
|
|
2
2
|
import { default as default2 } from "./components/AnnotationDetailPopover.js";
|
|
3
|
-
import {
|
|
4
|
-
import { default as
|
|
5
|
-
import { A as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
3
|
+
import { A as A2 } from "./AnnotationDetails-C_P001d3.js";
|
|
4
|
+
import { default as default3 } from "./components/AnnotationEntry.js";
|
|
5
|
+
import { A as A3, C } from "./AnnotationPreview-BOpYuxD1.js";
|
|
6
|
+
import { default as default4 } from "./components/CountBadge.js";
|
|
7
|
+
import { default as default5 } from "./components/EnrichedCard.js";
|
|
8
|
+
import { default as default6 } from "./components/EnrichedChip.js";
|
|
9
|
+
import { default as default7 } from "./components/EnrichedTypography.js";
|
|
10
|
+
import { default as default8 } from "./components/fetchers/Fetcher.js";
|
|
11
|
+
import { default as default9 } from "./components/fetchers/StatusChip.js";
|
|
12
|
+
import { default as default10 } from "./components/group/Entry.js";
|
|
13
|
+
import { default as default11 } from "./components/group/Group.js";
|
|
14
|
+
import { default as default12 } from "./components/group/GroupControl.js";
|
|
15
|
+
import { default as default13 } from "./components/SourcePicker.js";
|
|
16
16
|
import { SNACKBAR_EVENT_ID } from "./data/event.js";
|
|
17
|
-
import { b } from "./index-
|
|
18
|
-
import { ClueComponentContext
|
|
19
|
-
import { ClueDatabaseContext
|
|
20
|
-
import { C as
|
|
21
|
-
import { ClueProvider
|
|
22
|
-
import { useClueActionsSelector, useClueEnrichSelector, useClueFetcherSelector
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
17
|
+
import { b } from "./index-Dz1kF2MU.js";
|
|
18
|
+
import { ClueComponentContext } from "./hooks/ClueComponentContext.js";
|
|
19
|
+
import { ClueDatabaseContext } from "./hooks/ClueDatabaseContext.js";
|
|
20
|
+
import { C as C2 } from "./ClueEnrichContext-DmhtfJg_.js";
|
|
21
|
+
import { ClueProvider } from "./hooks/ClueProvider.js";
|
|
22
|
+
import { useClueActionsSelector, useClueEnrichSelector, useClueFetcherSelector } from "./hooks/selectors.js";
|
|
23
|
+
import { default as default14 } from "./hooks/useClue.js";
|
|
24
|
+
import { default as default15 } from "./icons/Assessment.js";
|
|
25
|
+
import { default as default16 } from "./icons/Context.js";
|
|
26
|
+
import { default as default17 } from "./icons/Opinion.js";
|
|
27
|
+
import { default as default18 } from "./text/Frequency.js";
|
|
28
28
|
export {
|
|
29
29
|
A as ActionForm,
|
|
30
30
|
default2 as AnnotationDetailPopover,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
ClueComponentContext
|
|
36
|
-
ClueDatabaseContext
|
|
37
|
-
|
|
38
|
-
C as
|
|
39
|
-
ClueProvider
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
default9 as Fetcher,
|
|
52
|
-
default20 as FrequencyText,
|
|
53
|
-
default12 as Group,
|
|
54
|
-
default13 as GroupControl,
|
|
55
|
-
default19 as OpinionIcon,
|
|
31
|
+
A2 as AnnotationDetails,
|
|
32
|
+
default3 as AnnotationEntry,
|
|
33
|
+
A3 as AnnotationPreview,
|
|
34
|
+
default15 as AssessmentIcon,
|
|
35
|
+
ClueComponentContext,
|
|
36
|
+
ClueDatabaseContext,
|
|
37
|
+
C2 as ClueEnrichContext,
|
|
38
|
+
C as CluePopupContext,
|
|
39
|
+
ClueProvider,
|
|
40
|
+
default16 as ContextIcon,
|
|
41
|
+
default4 as CountBadge,
|
|
42
|
+
default5 as EnrichedCard,
|
|
43
|
+
default6 as EnrichedChip,
|
|
44
|
+
default7 as EnrichedTypography,
|
|
45
|
+
default10 as Entry,
|
|
46
|
+
default8 as Fetcher,
|
|
47
|
+
default18 as FrequencyText,
|
|
48
|
+
default11 as Group,
|
|
49
|
+
default12 as GroupControl,
|
|
50
|
+
default17 as OpinionIcon,
|
|
56
51
|
SNACKBAR_EVENT_ID,
|
|
57
|
-
|
|
58
|
-
|
|
52
|
+
default13 as SourcePicker,
|
|
53
|
+
default9 as StatusChip,
|
|
59
54
|
b as buildDatabase,
|
|
60
|
-
|
|
61
|
-
u as
|
|
62
|
-
useClueActionsSelector
|
|
63
|
-
useClueEnrichSelector
|
|
64
|
-
useClueFetcherSelector
|
|
65
|
-
default16 as useClue,
|
|
66
|
-
u2 as useClueActions,
|
|
67
|
-
useClueActionsSelector2 as useClueActionsSelector,
|
|
68
|
-
useClueEnrichSelector2 as useClueEnrichSelector,
|
|
69
|
-
useClueFetcherSelector2 as useClueFetcherSelector
|
|
55
|
+
default14 as useClue,
|
|
56
|
+
u as useClueActions,
|
|
57
|
+
useClueActionsSelector,
|
|
58
|
+
useClueEnrichSelector,
|
|
59
|
+
useClueFetcherSelector
|
|
70
60
|
};
|
package/package.json
CHANGED
package/text/Frequency.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Typography } from "@mui/material";
|
|
3
|
-
import {
|
|
3
|
+
import { i as isNil } from "../isNil-CIubwp4T.js";
|
|
4
4
|
import { s as sumBy } from "../sumBy-MYkDPHZL.js";
|
|
5
|
-
import {
|
|
5
|
+
import { useMemo } from "react";
|
|
6
6
|
const FrequencyText = ({
|
|
7
7
|
annotations,
|
|
8
8
|
value,
|
|
@@ -17,7 +17,7 @@ const FrequencyText = ({
|
|
|
17
17
|
[frequencyAnnotations]
|
|
18
18
|
);
|
|
19
19
|
const color = useMemo(() => {
|
|
20
|
-
if (
|
|
20
|
+
if (isNil(frequency)) {
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
23
23
|
if (frequency < 1) {
|
|
@@ -31,7 +31,7 @@ const FrequencyText = ({
|
|
|
31
31
|
}
|
|
32
32
|
return null;
|
|
33
33
|
}, [frequency]);
|
|
34
|
-
if (
|
|
34
|
+
if (isNil(frequency)) {
|
|
35
35
|
return /* @__PURE__ */ jsx(Typography, { ...otherProps, color, children: value });
|
|
36
36
|
}
|
|
37
37
|
return /* @__PURE__ */ jsx(
|
|
@@ -39,7 +39,7 @@ const FrequencyText = ({
|
|
|
39
39
|
{
|
|
40
40
|
...otherProps,
|
|
41
41
|
color: color ?? otherProps.color,
|
|
42
|
-
sx: { fontWeight: !
|
|
42
|
+
sx: { fontWeight: !isNil(frequency) && frequency < 10 ? "bold" : "inherit" },
|
|
43
43
|
children: value
|
|
44
44
|
}
|
|
45
45
|
);
|
|
@@ -6,15 +6,15 @@ import { MY_LOCAL_STORAGE_PREFIX, StorageKey } from "./utils/constants.js";
|
|
|
6
6
|
import { g as getDefaultExportFromCjs } from "./_commonjsHelpers-CUmg6egw.js";
|
|
7
7
|
import { getAxiosCache, setAxiosCache } from "./utils/sessionStorage.js";
|
|
8
8
|
import { clueDebugLogger } from "./utils/loggerUtil.js";
|
|
9
|
-
import { useState, useEffect } from "react";
|
|
10
9
|
import { i as isEmpty } from "./isEmpty-BQkZubqU.js";
|
|
11
|
-
|
|
10
|
+
import { useState, useEffect } from "react";
|
|
11
|
+
const uri$c = () => {
|
|
12
12
|
return joinUri(uri(), "actions");
|
|
13
|
-
}
|
|
14
|
-
|
|
13
|
+
};
|
|
14
|
+
const get$7 = (config) => {
|
|
15
15
|
return hget(uri$c(), null, config);
|
|
16
|
-
}
|
|
17
|
-
|
|
16
|
+
};
|
|
17
|
+
const post$3 = (actionId, selectors, params, options = { timeout: null }, config) => {
|
|
18
18
|
const searchParams = [];
|
|
19
19
|
if (!isNil(options.timeout)) {
|
|
20
20
|
searchParams.push(`max_timeout=${options.timeout}`);
|
|
@@ -38,7 +38,7 @@ function post$3(actionId, selectors, params, options = { timeout: null }, config
|
|
|
38
38
|
payload,
|
|
39
39
|
config
|
|
40
40
|
);
|
|
41
|
-
}
|
|
41
|
+
};
|
|
42
42
|
const actions = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
43
|
__proto__: null,
|
|
44
44
|
get: get$7,
|
|
@@ -99,10 +99,10 @@ const fetchers = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProp
|
|
|
99
99
|
post: post$1,
|
|
100
100
|
uri: uri$8
|
|
101
101
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
102
|
-
|
|
102
|
+
const uri$7 = () => {
|
|
103
103
|
return joinUri(uri$4(), "enrich");
|
|
104
|
-
}
|
|
105
|
-
|
|
104
|
+
};
|
|
105
|
+
const post = (bulkData, sources = [], options = { timeout: null, includeRaw: false, noCache: false }, config) => {
|
|
106
106
|
const searchParams = [];
|
|
107
107
|
if ((sources == null ? void 0 : sources.length) > 0) {
|
|
108
108
|
searchParams.push(`sources=${sources.join()}`);
|
|
@@ -124,7 +124,7 @@ function post(bulkData, sources = [], options = { timeout: null, includeRaw: fal
|
|
|
124
124
|
bulkData,
|
|
125
125
|
config
|
|
126
126
|
);
|
|
127
|
-
}
|
|
127
|
+
};
|
|
128
128
|
const enrich = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
129
129
|
__proto__: null,
|
|
130
130
|
post,
|
|
@@ -3132,7 +3132,7 @@ const hget = (_uri, searchParams, config = {}) => {
|
|
|
3132
3132
|
const hpost = (_uri, body, config = {}) => {
|
|
3133
3133
|
return hfetch(_uri, "post", body, void 0, config);
|
|
3134
3134
|
};
|
|
3135
|
-
|
|
3135
|
+
const useClueTypeConfig = (ready, baseURL, debugLogging, getToken, onNetworkCall) => {
|
|
3136
3136
|
const [availableSources, setAvailableSources] = useState([]);
|
|
3137
3137
|
const [typesDetection, setTypesDetection] = useState({});
|
|
3138
3138
|
useEffect(() => {
|
|
@@ -3176,7 +3176,7 @@ function useClueTypeConfig(ready, baseURL, debugLogging, getToken, onNetworkCall
|
|
|
3176
3176
|
availableSources,
|
|
3177
3177
|
typesDetection
|
|
3178
3178
|
};
|
|
3179
|
-
}
|
|
3179
|
+
};
|
|
3180
3180
|
export {
|
|
3181
3181
|
api as a,
|
|
3182
3182
|
post as p,
|
package/utils/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { d, b, r, s, t } from "../utils-
|
|
2
|
-
import "../isEmpty-BQkZubqU.js";
|
|
1
|
+
import { d, b, r, s, t } from "../utils-Dr4wbKBZ.js";
|
|
3
2
|
import "../_Map-kgDsDYxq.js";
|
|
3
|
+
import "../isEmpty-BQkZubqU.js";
|
|
4
4
|
import "../isNil-CIubwp4T.js";
|
|
5
5
|
export {
|
|
6
6
|
d as delay,
|
package/isUndefined-CE8h73dH.js
DELETED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
-
import { i as isEmpty } from "./isEmpty-BQkZubqU.js";
|
|
5
4
|
import { i as isArray$1 } from "./_Map-kgDsDYxq.js";
|
|
5
|
+
import { i as isEmpty } from "./isEmpty-BQkZubqU.js";
|
|
6
|
+
import { b as baseIsEqual } from "./_baseIsEqual-B5xLoweL.js";
|
|
6
7
|
import { i as isNil } from "./isNil-CIubwp4T.js";
|
|
7
8
|
import { i as isObjectLike, b as baseGetTag } from "./isObjectLike-OAgjjZye.js";
|
|
8
9
|
import { g as getPrototype } from "./_getPrototype-D1LAdQKO.js";
|
|
9
10
|
import { b as baseUniq } from "./_baseUniq-CpupKWcL.js";
|
|
10
|
-
import { b as baseIsEqual } from "./_baseIsEqual-B5xLoweL.js";
|
|
11
11
|
function isBuffer(obj) {
|
|
12
12
|
return obj && obj.constructor && typeof obj.constructor.isBuffer === "function" && obj.constructor.isBuffer(obj);
|
|
13
13
|
}
|