@cccsaurora/clue-ui 1.2.0-dev.241 → 1.2.0-dev.249
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-C0aE9HUv.js +5941 -0
- package/{AnnotationDetails-BEHFNNv3.js → AnnotationDetails-CEou0vCc.js} +3 -3
- package/{AnnotationPreview-MO5UsP5l.js → AnnotationPreview-CLMVD6Ec.js} +3 -3
- package/{ClueEnrichContext-DoOHQeVr.js → ClueEnrichContext-BkD9ZwM9.js} +3 -3
- package/{_Uint8Array-BYE8bXpl.js → _Uint8Array-DdG4KLKn.js} +1 -1
- package/{_baseClone-BZWIR6v5.js → _baseClone-BpWiBnMp.js} +1 -1
- package/{_baseExtremum-CvA2lsVF.js → _baseExtremum-BY663UjY.js} +1 -1
- package/{_baseFlatten-hXNFmTLV.js → _baseFlatten-B69cDsaV.js} +1 -1
- package/{_baseIsEqual-CIc2ClfN.js → _baseIsEqual-B4IufFlL.js} +1 -1
- package/{_baseIteratee-B7fb_3hC.js → _baseIteratee-7AQvAy1o.js} +2 -2
- package/{_createAggregator-WsSxBVpS.js → _createAggregator-CwGPThny.js} +2 -2
- package/{cloneDeep-CASxfDJM.js → cloneDeep-DmUylbkM.js} +1 -1
- package/components/AnnotationDetailPopover.js +1 -1
- package/components/AnnotationDetails.js +4 -4
- package/components/AnnotationEntry.js +1 -1
- package/components/AnnotationPreview.js +3 -3
- package/components/EnrichedCard.js +4 -4
- package/components/EnrichedChip.js +5 -5
- package/components/EnrichedTypography.js +5 -5
- package/components/RetryFailedEnrichments.js +2 -2
- package/components/SourcePicker.js +3 -3
- package/components/actions/ActionForm.js +4 -4
- package/components/actions/ExecutePopover.js +2 -2
- package/components/actions/ResultModal.js +2 -2
- package/components/actions/form/schemaAdapter.js +1 -1
- package/components/actions/formats/FileResult.js +1 -1
- package/components/actions/formats/index.js +1 -1
- package/components/display/graph/elements/NodeCard.js +4 -4
- package/components/display/graph/index.js +4 -4
- package/components/display/graph/visualizations/cloud/index.js +3 -3
- package/components/display/graph/visualizations/tree/BundleLine.js +1 -1
- package/components/display/graph/visualizations/tree/index.js +2 -2
- package/components/display/json/index.js +3 -3
- package/components/enrichment/EnrichPopover.js +1 -2
- package/components/fetchers/Fetcher.js +5 -5
- package/components/fetchers/StatusChip.js +1 -1
- package/components/group/Entry.js +4 -4
- package/components/group/Group.js +2 -2
- package/components/group/GroupControl.js +2 -3
- package/components/stats/QueryStatus.js +1 -1
- package/{countBy-BM48i7TV.js → countBy-DqlU5OwT.js} +1 -1
- package/database/index.js +1 -1
- package/fr/translation.json +1 -1
- package/{groupBy-mXHt-nYT.js → groupBy-ChDRT7uy.js} +1 -1
- package/hooks/ClueActionContext.d.ts +5 -0
- package/hooks/ClueActionContext.js +3 -4
- package/hooks/ClueComponentContext.js +1 -1
- package/hooks/ClueDatabaseContext.js +1 -1
- package/hooks/ClueEnrichContext.js +3 -3
- package/hooks/ClueFetcherContext.js +1 -1
- package/hooks/ClueGroupContext.js +2 -2
- package/hooks/CluePopupContext.js +3 -3
- package/hooks/ClueProvider.js +3 -3
- package/hooks/selectors.js +9 -21
- package/hooks/useActionResult.js +2 -2
- package/hooks/useAnnotations.js +2 -2
- package/hooks/useClue.js +2 -2
- package/hooks/useClueActions.js +2 -2
- package/hooks/useErrors.js +1 -1
- package/hooks/useFetcherResult.js +1 -1
- package/icons/Action.js +4 -4
- package/icons/Assessment.js +6 -6
- package/icons/Context.js +3 -3
- package/icons/Opinion.js +6 -6
- package/{index-BDVjGvMI.js → index-AMfoEg_6.js} +49 -49
- package/{index-C3lkTD69.js → index-B6C2a_Lg.js} +1 -1
- package/{index-CC12Ux-9.js → index-C12gPw2W.js} +15818 -15774
- package/{index-BbPn6-Mw.js → index-DCKkHTvx.js} +39 -39
- package/{index-Bmoj6JY8.js → index-UkW8Sur3.js} +2 -2
- package/main.js +9 -10
- package/package.json +2 -2
- package/{sortBy-B0zptFuY.js → sortBy-C7mGPI_D.js} +4 -4
- package/{sumBy-ByJNa2hf.js → sumBy-CGALjmwQ.js} +1 -1
- package/text/Frequency.js +1 -1
- package/types/RunningActionData.d.ts +2 -0
- package/utils/chain.js +7 -7
- package/utils/time.js +4 -4
- package/utils/utils.js +1 -1
- package/{utils-CW9CNV1h.js → utils-71DpzFrA.js} +1 -1
- package/ActionForm-U5a2mLUv.js +0 -557
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { b as baseAssignValue } from "./_baseAssignValue-CGTuELqU.js";
|
|
2
|
-
import { c as createAggregator } from "./_createAggregator-
|
|
2
|
+
import { c as createAggregator } from "./_createAggregator-CwGPThny.js";
|
|
3
3
|
var objectProto = Object.prototype;
|
|
4
4
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
5
5
|
var groupBy = createAggregator(function(result, value, key) {
|
|
@@ -43,6 +43,11 @@ export interface ClueActionContextType {
|
|
|
43
43
|
* @returns The action result
|
|
44
44
|
*/
|
|
45
45
|
onComplete?: (result: WithActionData<ActionResult>) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback for when the action is cancelled
|
|
48
|
+
* @returns void
|
|
49
|
+
*/
|
|
50
|
+
onCancel?: () => void;
|
|
46
51
|
/**
|
|
47
52
|
* how long should the action have to respond?
|
|
48
53
|
*/
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "@mui/material";
|
|
3
|
-
import "../
|
|
3
|
+
import { g, C } from "../ActionForm-C0aE9HUv.js";
|
|
4
4
|
import "../useClueTypeConfig-D2tf4-NM.js";
|
|
5
|
-
import { a, C } from "../ActionForm-U5a2mLUv.js";
|
|
6
5
|
import "../components/display/icons/Iconified.js";
|
|
7
6
|
import "../components/ErrorBoundary.js";
|
|
8
7
|
import "../data/event.js";
|
|
9
8
|
import "../utils/time.js";
|
|
10
9
|
import "../utils/window.js";
|
|
11
10
|
import "react";
|
|
12
|
-
import "../index-
|
|
11
|
+
import "../index-AMfoEg_6.js";
|
|
13
12
|
import "./ClueComponentContext.js";
|
|
14
13
|
import "./useClue.js";
|
|
15
14
|
import "../isNil-CIubwp4T.js";
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
g as ClueActionContext,
|
|
18
17
|
C as ClueActionProvider
|
|
19
18
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
|
-
import { c as createContext } from "../index-
|
|
4
|
+
import { c as createContext } from "../index-AMfoEg_6.js";
|
|
5
5
|
const ClueComponentContext = createContext(null);
|
|
6
6
|
const ClueComponentI18nProvider = ({
|
|
7
7
|
children,
|
|
@@ -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-C12gPw2W.js";
|
|
3
3
|
import { createContext, useState, useEffect } from "react";
|
|
4
4
|
const ClueDatabaseContext = createContext(null);
|
|
5
5
|
const ClueDatabaseProvider = ({
|
|
@@ -2,11 +2,11 @@ import "react/jsx-runtime";
|
|
|
2
2
|
import "../iconify-CXMreGTg.js";
|
|
3
3
|
import "../useClueTypeConfig-D2tf4-NM.js";
|
|
4
4
|
import "../utils/loggerUtil.js";
|
|
5
|
-
import { C, a } from "../ClueEnrichContext-
|
|
5
|
+
import { C, a } from "../ClueEnrichContext-BkD9ZwM9.js";
|
|
6
6
|
import "../debounce-bV0h5FC5.js";
|
|
7
|
-
import "../groupBy-
|
|
7
|
+
import "../groupBy-ChDRT7uy.js";
|
|
8
8
|
import "react";
|
|
9
|
-
import "../index-
|
|
9
|
+
import "../index-AMfoEg_6.js";
|
|
10
10
|
import "./ClueDatabaseContext.js";
|
|
11
11
|
import "./useClueConfig.js";
|
|
12
12
|
export {
|
|
@@ -3,7 +3,7 @@ import { a as api } from "../useClueTypeConfig-D2tf4-NM.js";
|
|
|
3
3
|
import { SNACKBAR_EVENT_ID } from "../data/event.js";
|
|
4
4
|
import { safeDispatchEvent } from "../utils/window.js";
|
|
5
5
|
import { useState, useRef, useMemo, useCallback, useEffect } from "react";
|
|
6
|
-
import { c as createContext } from "../index-
|
|
6
|
+
import { c as createContext } from "../index-AMfoEg_6.js";
|
|
7
7
|
import useClue from "./useClue.js";
|
|
8
8
|
import useClueConfig from "./useClueConfig.js";
|
|
9
9
|
const ClueFetcherContext = createContext(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useMemo } from "react";
|
|
3
|
-
import { c as createContext } from "../index-
|
|
4
|
-
import { useClueEnrichSelector } from "
|
|
3
|
+
import { c as createContext } from "../index-AMfoEg_6.js";
|
|
4
|
+
import { b as useClueEnrichSelector } from "../ActionForm-C0aE9HUv.js";
|
|
5
5
|
const ClueGroupContext = createContext(null);
|
|
6
6
|
const ClueGroupProvider = ({ children, type, classification }) => {
|
|
7
7
|
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
|
@@ -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-CLMVD6Ec.js";
|
|
4
4
|
import "../data/event.js";
|
|
5
5
|
import "../utils/window.js";
|
|
6
|
-
import "../AnnotationDetails-
|
|
6
|
+
import "../AnnotationDetails-CEou0vCc.js";
|
|
7
7
|
import "react";
|
|
8
|
-
import "../index-
|
|
8
|
+
import "../index-AMfoEg_6.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-C0aE9HUv.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-BkD9ZwM9.js";
|
|
7
7
|
import { ClueFetcherProvider } from "./ClueFetcherContext.js";
|
|
8
|
-
import { a as CluePopupProvider } from "../AnnotationPreview-
|
|
8
|
+
import { a as CluePopupProvider } from "../AnnotationPreview-CLMVD6Ec.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,23 +1,11 @@
|
|
|
1
|
-
import { a
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
const useClueFetcherSelector = (selector) => {
|
|
7
|
-
return useContextSelector(ClueFetcherContext, selector);
|
|
8
|
-
};
|
|
9
|
-
const useClueActionsSelector = (selector) => {
|
|
10
|
-
return useContextSelector(ClueActionContext, selector);
|
|
11
|
-
};
|
|
12
|
-
const useClueEnrichSelector = (selector) => {
|
|
13
|
-
return useContextSelector(ClueEnrichContext, selector);
|
|
14
|
-
};
|
|
15
|
-
const useClueComponentSelector = (selector) => {
|
|
16
|
-
return useContextSelector(ClueComponentContext, selector);
|
|
17
|
-
};
|
|
1
|
+
import { a, d, b, c } from "../ActionForm-C0aE9HUv.js";
|
|
2
|
+
import "./ClueComponentContext.js";
|
|
3
|
+
import "../ClueEnrichContext-BkD9ZwM9.js";
|
|
4
|
+
import "./ClueFetcherContext.js";
|
|
5
|
+
import "../index-AMfoEg_6.js";
|
|
18
6
|
export {
|
|
19
|
-
useClueActionsSelector,
|
|
20
|
-
useClueComponentSelector,
|
|
21
|
-
useClueEnrichSelector,
|
|
22
|
-
useClueFetcherSelector
|
|
7
|
+
a as useClueActionsSelector,
|
|
8
|
+
d as useClueComponentSelector,
|
|
9
|
+
b as useClueEnrichSelector,
|
|
10
|
+
c as useClueFetcherSelector
|
|
23
11
|
};
|
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-BkD9ZwM9.js";
|
|
2
2
|
import { useContext, useMemo, useState, useEffect } from "react";
|
|
3
3
|
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
4
|
-
import { useClueEnrichSelector } from "
|
|
4
|
+
import { b as useClueEnrichSelector } from "../ActionForm-C0aE9HUv.js";
|
|
5
5
|
const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
|
|
6
6
|
const database = useContext(ClueDatabaseContext);
|
|
7
7
|
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
package/hooks/useClue.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useContext } from "../index-
|
|
2
|
-
import { C as ClueEnrichContext } from "../ClueEnrichContext-
|
|
1
|
+
import { a as useContext } from "../index-AMfoEg_6.js";
|
|
2
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-BkD9ZwM9.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 { useClueEnrichSelector } from "
|
|
3
|
+
import { b as useClueEnrichSelector } from "../ActionForm-C0aE9HUv.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-C0aE9HUv.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,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-
|
|
7
|
-
import { g as groupBy } from "../groupBy-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-CLMVD6Ec.js";
|
|
6
|
+
import { u as useClueActions } from "../ActionForm-C0aE9HUv.js";
|
|
7
|
+
import { g as groupBy } from "../groupBy-ChDRT7uy.js";
|
|
8
8
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
9
|
-
import { u as useContextSelector } from "../index-
|
|
9
|
+
import { u as useContextSelector } from "../index-AMfoEg_6.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
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
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-
|
|
6
|
-
import { g as groupBy } from "../groupBy-
|
|
5
|
+
import { C as CluePopupContext } from "../AnnotationPreview-CLMVD6Ec.js";
|
|
6
|
+
import { g as groupBy } from "../groupBy-ChDRT7uy.js";
|
|
7
7
|
import { l as last } from "../last-CUCl67Im.js";
|
|
8
|
-
import { m as maxBy, s as sortBy } from "../sortBy-
|
|
9
|
-
import { s as sumBy } from "../sumBy-
|
|
8
|
+
import { m as maxBy, s as sortBy } from "../sortBy-C7mGPI_D.js";
|
|
9
|
+
import { s as sumBy } from "../sumBy-CGALjmwQ.js";
|
|
10
10
|
import { memo, useRef, useState, useMemo, useEffect } from "react";
|
|
11
|
-
import { u as useContextSelector } from "../index-
|
|
11
|
+
import { u as useContextSelector } from "../index-AMfoEg_6.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-
|
|
8
|
-
import { g as groupBy } from "../groupBy-
|
|
7
|
+
import { C as CluePopupContext } from "../AnnotationPreview-CLMVD6Ec.js";
|
|
8
|
+
import { g as groupBy } from "../groupBy-ChDRT7uy.js";
|
|
9
9
|
import { memo, useRef, useMemo, useEffect } from "react";
|
|
10
|
-
import { u as useContextSelector } from "../index-
|
|
10
|
+
import { u as useContextSelector } from "../index-AMfoEg_6.js";
|
|
11
11
|
const ContextIcon = ({
|
|
12
12
|
annotations,
|
|
13
13
|
value,
|
package/icons/Opinion.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsxs,
|
|
1
|
+
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-CLMVD6Ec.js";
|
|
6
6
|
import chain from "../utils/chain.js";
|
|
7
|
-
import { g as groupBy } from "../groupBy-
|
|
8
|
-
import { s as sortBy } from "../sortBy-
|
|
9
|
-
import { s as sumBy } from "../sumBy-
|
|
7
|
+
import { g as groupBy } from "../groupBy-ChDRT7uy.js";
|
|
8
|
+
import { s as sortBy } from "../sortBy-C7mGPI_D.js";
|
|
9
|
+
import { s as sumBy } from "../sumBy-CGALjmwQ.js";
|
|
10
10
|
import { memo, useRef, useMemo, useCallback, useEffect } from "react";
|
|
11
|
-
import { u as useContextSelector } from "../index-
|
|
11
|
+
import { u as useContextSelector } from "../index-AMfoEg_6.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 { createContext as createContext$1, useRef, useState, useEffect, useLayoutEffect,
|
|
1
|
+
import { createContext as createContext$1, useRef, useState, createElement, useEffect, useLayoutEffect, useContext as useContext$1, useReducer } from "react";
|
|
2
2
|
var scheduler = { exports: {} };
|
|
3
3
|
var scheduler_production = {};
|
|
4
4
|
/**
|
|
@@ -14,7 +14,7 @@ var hasRequiredScheduler_production;
|
|
|
14
14
|
function requireScheduler_production() {
|
|
15
15
|
if (hasRequiredScheduler_production) return scheduler_production;
|
|
16
16
|
hasRequiredScheduler_production = 1;
|
|
17
|
-
(function(exports) {
|
|
17
|
+
(function(exports$1) {
|
|
18
18
|
function push(heap, node) {
|
|
19
19
|
var index = heap.length;
|
|
20
20
|
heap.push(node);
|
|
@@ -48,15 +48,15 @@ function requireScheduler_production() {
|
|
|
48
48
|
var diff = a.sortIndex - b.sortIndex;
|
|
49
49
|
return 0 !== diff ? diff : a.id - b.id;
|
|
50
50
|
}
|
|
51
|
-
exports.unstable_now = void 0;
|
|
51
|
+
exports$1.unstable_now = void 0;
|
|
52
52
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
53
53
|
var localPerformance = performance;
|
|
54
|
-
exports.unstable_now = function() {
|
|
54
|
+
exports$1.unstable_now = function() {
|
|
55
55
|
return localPerformance.now();
|
|
56
56
|
};
|
|
57
57
|
} else {
|
|
58
58
|
var localDate = Date, initialTime = localDate.now();
|
|
59
|
-
exports.unstable_now = function() {
|
|
59
|
+
exports$1.unstable_now = function() {
|
|
60
60
|
return localDate.now() - initialTime;
|
|
61
61
|
};
|
|
62
62
|
}
|
|
@@ -83,12 +83,12 @@ function requireScheduler_production() {
|
|
|
83
83
|
}
|
|
84
84
|
var isMessageLoopRunning = false, taskTimeoutID = -1, frameInterval = 5, startTime = -1;
|
|
85
85
|
function shouldYieldToHost() {
|
|
86
|
-
return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
|
|
86
|
+
return needsPaint ? true : exports$1.unstable_now() - startTime < frameInterval ? false : true;
|
|
87
87
|
}
|
|
88
88
|
function performWorkUntilDeadline() {
|
|
89
89
|
needsPaint = false;
|
|
90
90
|
if (isMessageLoopRunning) {
|
|
91
|
-
var currentTime = exports.unstable_now();
|
|
91
|
+
var currentTime = exports$1.unstable_now();
|
|
92
92
|
startTime = currentTime;
|
|
93
93
|
var hasMoreWork = true;
|
|
94
94
|
try {
|
|
@@ -108,7 +108,7 @@ function requireScheduler_production() {
|
|
|
108
108
|
var continuationCallback = callback(
|
|
109
109
|
currentTask.expirationTime <= currentTime
|
|
110
110
|
);
|
|
111
|
-
currentTime = exports.unstable_now();
|
|
111
|
+
currentTime = exports$1.unstable_now();
|
|
112
112
|
if ("function" === typeof continuationCallback) {
|
|
113
113
|
currentTask.callback = continuationCallback;
|
|
114
114
|
advanceTimers(currentTime);
|
|
@@ -158,27 +158,27 @@ function requireScheduler_production() {
|
|
|
158
158
|
};
|
|
159
159
|
function requestHostTimeout(callback, ms) {
|
|
160
160
|
taskTimeoutID = localSetTimeout(function() {
|
|
161
|
-
callback(exports.unstable_now());
|
|
161
|
+
callback(exports$1.unstable_now());
|
|
162
162
|
}, ms);
|
|
163
163
|
}
|
|
164
|
-
exports.unstable_IdlePriority = 5;
|
|
165
|
-
exports.unstable_ImmediatePriority = 1;
|
|
166
|
-
exports.unstable_LowPriority = 4;
|
|
167
|
-
exports.unstable_NormalPriority = 3;
|
|
168
|
-
exports.unstable_Profiling = null;
|
|
169
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
170
|
-
exports.unstable_cancelCallback = function(task) {
|
|
164
|
+
exports$1.unstable_IdlePriority = 5;
|
|
165
|
+
exports$1.unstable_ImmediatePriority = 1;
|
|
166
|
+
exports$1.unstable_LowPriority = 4;
|
|
167
|
+
exports$1.unstable_NormalPriority = 3;
|
|
168
|
+
exports$1.unstable_Profiling = null;
|
|
169
|
+
exports$1.unstable_UserBlockingPriority = 2;
|
|
170
|
+
exports$1.unstable_cancelCallback = function(task) {
|
|
171
171
|
task.callback = null;
|
|
172
172
|
};
|
|
173
|
-
exports.unstable_forceFrameRate = function(fps) {
|
|
173
|
+
exports$1.unstable_forceFrameRate = function(fps) {
|
|
174
174
|
0 > fps || 125 < fps ? console.error(
|
|
175
175
|
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
176
176
|
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
177
177
|
};
|
|
178
|
-
exports.unstable_getCurrentPriorityLevel = function() {
|
|
178
|
+
exports$1.unstable_getCurrentPriorityLevel = function() {
|
|
179
179
|
return currentPriorityLevel;
|
|
180
180
|
};
|
|
181
|
-
exports.unstable_next = function(eventHandler) {
|
|
181
|
+
exports$1.unstable_next = function(eventHandler) {
|
|
182
182
|
switch (currentPriorityLevel) {
|
|
183
183
|
case 1:
|
|
184
184
|
case 2:
|
|
@@ -196,10 +196,10 @@ function requireScheduler_production() {
|
|
|
196
196
|
currentPriorityLevel = previousPriorityLevel;
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
|
-
exports.unstable_requestPaint = function() {
|
|
199
|
+
exports$1.unstable_requestPaint = function() {
|
|
200
200
|
needsPaint = true;
|
|
201
201
|
};
|
|
202
|
-
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
202
|
+
exports$1.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
203
203
|
switch (priorityLevel) {
|
|
204
204
|
case 1:
|
|
205
205
|
case 2:
|
|
@@ -218,8 +218,8 @@ function requireScheduler_production() {
|
|
|
218
218
|
currentPriorityLevel = previousPriorityLevel;
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
|
-
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
222
|
-
var currentTime = exports.unstable_now();
|
|
221
|
+
exports$1.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
222
|
+
var currentTime = exports$1.unstable_now();
|
|
223
223
|
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
224
224
|
switch (priorityLevel) {
|
|
225
225
|
case 1:
|
|
@@ -249,8 +249,8 @@ function requireScheduler_production() {
|
|
|
249
249
|
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
250
250
|
return priorityLevel;
|
|
251
251
|
};
|
|
252
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
253
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
252
|
+
exports$1.unstable_shouldYield = shouldYieldToHost;
|
|
253
|
+
exports$1.unstable_wrapCallback = function(callback) {
|
|
254
254
|
var parentPriorityLevel = currentPriorityLevel;
|
|
255
255
|
return function() {
|
|
256
256
|
var previousPriorityLevel = currentPriorityLevel;
|
|
@@ -279,12 +279,12 @@ var hasRequiredScheduler_development;
|
|
|
279
279
|
function requireScheduler_development() {
|
|
280
280
|
if (hasRequiredScheduler_development) return scheduler_development;
|
|
281
281
|
hasRequiredScheduler_development = 1;
|
|
282
|
-
(function(exports) {
|
|
282
|
+
(function(exports$1) {
|
|
283
283
|
"production" !== process.env.NODE_ENV && function() {
|
|
284
284
|
function performWorkUntilDeadline() {
|
|
285
285
|
needsPaint = false;
|
|
286
286
|
if (isMessageLoopRunning) {
|
|
287
|
-
var currentTime = exports.unstable_now();
|
|
287
|
+
var currentTime = exports$1.unstable_now();
|
|
288
288
|
startTime = currentTime;
|
|
289
289
|
var hasMoreWork = true;
|
|
290
290
|
try {
|
|
@@ -304,7 +304,7 @@ function requireScheduler_development() {
|
|
|
304
304
|
var continuationCallback = callback(
|
|
305
305
|
currentTask.expirationTime <= currentTime
|
|
306
306
|
);
|
|
307
|
-
currentTime = exports.unstable_now();
|
|
307
|
+
currentTime = exports$1.unstable_now();
|
|
308
308
|
if ("function" === typeof continuationCallback) {
|
|
309
309
|
currentTask.callback = continuationCallback;
|
|
310
310
|
advanceTimers(currentTime);
|
|
@@ -394,23 +394,23 @@ function requireScheduler_development() {
|
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
396
|
function shouldYieldToHost() {
|
|
397
|
-
return needsPaint ? true : exports.unstable_now() - startTime < frameInterval ? false : true;
|
|
397
|
+
return needsPaint ? true : exports$1.unstable_now() - startTime < frameInterval ? false : true;
|
|
398
398
|
}
|
|
399
399
|
function requestHostTimeout(callback, ms) {
|
|
400
400
|
taskTimeoutID = localSetTimeout(function() {
|
|
401
|
-
callback(exports.unstable_now());
|
|
401
|
+
callback(exports$1.unstable_now());
|
|
402
402
|
}, ms);
|
|
403
403
|
}
|
|
404
404
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
405
|
-
exports.unstable_now = void 0;
|
|
405
|
+
exports$1.unstable_now = void 0;
|
|
406
406
|
if ("object" === typeof performance && "function" === typeof performance.now) {
|
|
407
407
|
var localPerformance = performance;
|
|
408
|
-
exports.unstable_now = function() {
|
|
408
|
+
exports$1.unstable_now = function() {
|
|
409
409
|
return localPerformance.now();
|
|
410
410
|
};
|
|
411
411
|
} else {
|
|
412
412
|
var localDate = Date, initialTime = localDate.now();
|
|
413
|
-
exports.unstable_now = function() {
|
|
413
|
+
exports$1.unstable_now = function() {
|
|
414
414
|
return localDate.now() - initialTime;
|
|
415
415
|
};
|
|
416
416
|
}
|
|
@@ -429,24 +429,24 @@ function requireScheduler_development() {
|
|
|
429
429
|
schedulePerformWorkUntilDeadline = function() {
|
|
430
430
|
localSetTimeout(performWorkUntilDeadline, 0);
|
|
431
431
|
};
|
|
432
|
-
exports.unstable_IdlePriority = 5;
|
|
433
|
-
exports.unstable_ImmediatePriority = 1;
|
|
434
|
-
exports.unstable_LowPriority = 4;
|
|
435
|
-
exports.unstable_NormalPriority = 3;
|
|
436
|
-
exports.unstable_Profiling = null;
|
|
437
|
-
exports.unstable_UserBlockingPriority = 2;
|
|
438
|
-
exports.unstable_cancelCallback = function(task) {
|
|
432
|
+
exports$1.unstable_IdlePriority = 5;
|
|
433
|
+
exports$1.unstable_ImmediatePriority = 1;
|
|
434
|
+
exports$1.unstable_LowPriority = 4;
|
|
435
|
+
exports$1.unstable_NormalPriority = 3;
|
|
436
|
+
exports$1.unstable_Profiling = null;
|
|
437
|
+
exports$1.unstable_UserBlockingPriority = 2;
|
|
438
|
+
exports$1.unstable_cancelCallback = function(task) {
|
|
439
439
|
task.callback = null;
|
|
440
440
|
};
|
|
441
|
-
exports.unstable_forceFrameRate = function(fps) {
|
|
441
|
+
exports$1.unstable_forceFrameRate = function(fps) {
|
|
442
442
|
0 > fps || 125 < fps ? console.error(
|
|
443
443
|
"forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
|
|
444
444
|
) : frameInterval = 0 < fps ? Math.floor(1e3 / fps) : 5;
|
|
445
445
|
};
|
|
446
|
-
exports.unstable_getCurrentPriorityLevel = function() {
|
|
446
|
+
exports$1.unstable_getCurrentPriorityLevel = function() {
|
|
447
447
|
return currentPriorityLevel;
|
|
448
448
|
};
|
|
449
|
-
exports.unstable_next = function(eventHandler) {
|
|
449
|
+
exports$1.unstable_next = function(eventHandler) {
|
|
450
450
|
switch (currentPriorityLevel) {
|
|
451
451
|
case 1:
|
|
452
452
|
case 2:
|
|
@@ -464,10 +464,10 @@ function requireScheduler_development() {
|
|
|
464
464
|
currentPriorityLevel = previousPriorityLevel;
|
|
465
465
|
}
|
|
466
466
|
};
|
|
467
|
-
exports.unstable_requestPaint = function() {
|
|
467
|
+
exports$1.unstable_requestPaint = function() {
|
|
468
468
|
needsPaint = true;
|
|
469
469
|
};
|
|
470
|
-
exports.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
470
|
+
exports$1.unstable_runWithPriority = function(priorityLevel, eventHandler) {
|
|
471
471
|
switch (priorityLevel) {
|
|
472
472
|
case 1:
|
|
473
473
|
case 2:
|
|
@@ -486,8 +486,8 @@ function requireScheduler_development() {
|
|
|
486
486
|
currentPriorityLevel = previousPriorityLevel;
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
|
-
exports.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
490
|
-
var currentTime = exports.unstable_now();
|
|
489
|
+
exports$1.unstable_scheduleCallback = function(priorityLevel, callback, options) {
|
|
490
|
+
var currentTime = exports$1.unstable_now();
|
|
491
491
|
"object" === typeof options && null !== options ? (options = options.delay, options = "number" === typeof options && 0 < options ? currentTime + options : currentTime) : options = currentTime;
|
|
492
492
|
switch (priorityLevel) {
|
|
493
493
|
case 1:
|
|
@@ -517,8 +517,8 @@ function requireScheduler_development() {
|
|
|
517
517
|
options > currentTime ? (priorityLevel.sortIndex = options, push(timerQueue, priorityLevel), null === peek(taskQueue) && priorityLevel === peek(timerQueue) && (isHostTimeoutScheduled ? (localClearTimeout(taskTimeoutID), taskTimeoutID = -1) : isHostTimeoutScheduled = true, requestHostTimeout(handleTimeout, options - currentTime))) : (priorityLevel.sortIndex = timeout, push(taskQueue, priorityLevel), isHostCallbackScheduled || isPerformingWork || (isHostCallbackScheduled = true, isMessageLoopRunning || (isMessageLoopRunning = true, schedulePerformWorkUntilDeadline())));
|
|
518
518
|
return priorityLevel;
|
|
519
519
|
};
|
|
520
|
-
exports.unstable_shouldYield = shouldYieldToHost;
|
|
521
|
-
exports.unstable_wrapCallback = function(callback) {
|
|
520
|
+
exports$1.unstable_shouldYield = shouldYieldToHost;
|
|
521
|
+
exports$1.unstable_wrapCallback = function(callback) {
|
|
522
522
|
var parentPriorityLevel = currentPriorityLevel;
|
|
523
523
|
return function() {
|
|
524
524
|
var previousPriorityLevel = currentPriorityLevel;
|
|
@@ -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,
|
|
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, p as prepareQuery, o as findUndefinedPath, q as deepEqual, r as fillPrimaryKey, s as hasPremiumFlag, u as RXDB_VERSION, v as hashStringToNumber, w as deepFreeze } from "./index-C12gPw2W.js";
|
|
2
2
|
var ERROR_MESSAGES = {
|
|
3
3
|
// util.js / config
|
|
4
4
|
UT1: "given name is no string or empty",
|