@cccsaurora/clue-ui 0.15.0 → 1.0.0-dev.48
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 +436 -0
- package/AnnotationPreview-BvNpZOP0.js +188 -0
- package/ClueEnrichContext-m-4vn9rz.js +518 -0
- package/FlexOne-BSYAhhtG.js +9 -0
- package/_Map-kgDsDYxq.js +64 -0
- package/_MapCache-DabaaWfq.js +161 -0
- package/_Uint8Array-BlVVH1tp.js +129 -0
- package/_baseAssignValue-CNbcU6Nb.js +25 -0
- package/_baseClone-D3a8Pa4T.js +284 -0
- package/_baseExtremum-B1o1zHjR.js +33 -0
- package/_baseFlatten-D4huXoEI.js +92 -0
- package/_baseGet-BSK_nnoz.js +109 -0
- package/_baseIsEqual-B5xLoweL.js +238 -0
- package/_baseIteratee-p6Nj07-n.js +126 -0
- package/_baseSlice-GAv_YFTT.js +20 -0
- package/_baseSum-D0WC1dN0.js +13 -0
- package/_baseUniq-CpupKWcL.js +89 -0
- package/_commonjsHelpers-CUmg6egw.js +6 -0
- package/_createAggregator-BpVy5xMi.js +63 -0
- package/_getPrototype-D1LAdQKO.js +5 -0
- package/_getTag-D3ToyefI.js +126 -0
- package/api/lookup/enrich.d.ts +10 -0
- package/api/lookup/index.d.ts +5 -0
- package/api/lookup/types.d.ts +5 -0
- package/api/lookup/types_detection.d.ts +5 -0
- package/cloneDeep-CjP5k9zW.js +8 -0
- package/components/AnnotationBody.d.ts +6 -0
- package/components/AnnotationBody.js +56 -0
- package/components/AnnotationDetailPopover.d.ts +14 -0
- package/components/AnnotationDetailPopover.js +61 -0
- package/components/AnnotationDetails.d.ts +8 -0
- package/components/AnnotationDetails.js +172 -0
- package/components/AnnotationEntry.d.ts +6 -0
- package/components/AnnotationEntry.js +59 -0
- package/components/AnnotationPreview.d.ts +14 -0
- package/components/AnnotationPreview.js +11 -0
- package/components/ClassificationChip.d.ts +11 -0
- package/components/ClassificationChip.js +52 -0
- package/components/CountBadge.d.ts +8 -0
- package/components/CountBadge.js +34 -0
- package/components/EnrichedCard.d.ts +14 -0
- package/components/EnrichedCard.js +162 -0
- package/components/EnrichedChip.d.ts +9 -0
- package/components/EnrichedChip.js +176 -0
- package/components/EnrichedTypography.d.ts +16 -0
- package/components/EnrichedTypography.js +178 -0
- package/components/ErrorBoundary.d.ts +15 -0
- package/components/ErrorBoundary.js +36 -0
- package/components/RetryFailedEnrichments.d.ts +2 -0
- package/components/RetryFailedEnrichments.js +13 -0
- package/components/SourcePicker.d.ts +2 -0
- package/components/SourcePicker.js +98 -0
- package/components/actions/ActionForm.d.ts +6 -0
- package/components/actions/ActionForm.js +16 -0
- package/components/actions/ExecutePopover.d.ts +10 -0
- package/components/actions/ExecutePopover.js +93 -0
- package/components/actions/ResultModal.d.ts +9 -0
- package/components/actions/ResultModal.js +46 -0
- package/components/actions/form/schemaAdapter.d.ts +3 -0
- package/components/actions/form/schemaAdapter.js +47 -0
- package/components/display/graph/ExpandMoreButton.d.ts +7 -0
- package/components/display/graph/ExpandMoreButton.js +18 -0
- package/components/display/graph/elements/NodeCard.d.ts +10 -0
- package/components/display/graph/elements/NodeCard.js +146 -0
- package/components/display/graph/elements/NodeTag.d.ts +9 -0
- package/components/display/graph/elements/NodeTag.js +17 -0
- package/components/display/graph/index.d.ts +9 -0
- package/components/display/graph/index.js +438 -0
- package/components/display/graph/visualizations/Leaf.d.ts +25 -0
- package/components/display/graph/visualizations/Leaf.js +125 -0
- package/components/display/graph/visualizations/cloud/index.d.ts +24 -0
- package/components/display/graph/visualizations/cloud/index.js +141 -0
- package/components/display/graph/visualizations/icons/BaseIcon.d.ts +12 -0
- package/components/display/graph/visualizations/icons/BaseIcon.js +37 -0
- package/components/display/graph/visualizations/icons/BugIcon.d.ts +5 -0
- package/components/display/graph/visualizations/icons/BugIcon.js +18 -0
- package/components/display/graph/visualizations/icons/HostIcon.d.ts +5 -0
- package/components/display/graph/visualizations/icons/HostIcon.js +24 -0
- package/components/display/graph/visualizations/icons/NetworkIcon.d.ts +5 -0
- package/components/display/graph/visualizations/icons/NetworkIcon.js +24 -0
- package/components/display/graph/visualizations/icons/ProcessIcon.d.ts +5 -0
- package/components/display/graph/visualizations/icons/ProcessIcon.js +18 -0
- package/components/display/graph/visualizations/icons/TargetIcon.d.ts +5 -0
- package/components/display/graph/visualizations/icons/TargetIcon.js +19 -0
- package/components/display/graph/visualizations/icons/index.d.ts +2 -0
- package/components/display/graph/visualizations/icons/index.js +16 -0
- package/components/display/graph/visualizations/panels/NodePanel.d.ts +8 -0
- package/components/display/graph/visualizations/panels/NodePanel.js +12 -0
- package/components/display/graph/visualizations/tree/BundleLine.d.ts +29 -0
- package/components/display/graph/visualizations/tree/BundleLine.js +121 -0
- package/components/display/graph/visualizations/tree/Triangle.d.ts +9 -0
- package/components/display/graph/visualizations/tree/Triangle.js +26 -0
- package/components/display/graph/visualizations/tree/index.d.ts +36 -0
- package/components/display/graph/visualizations/tree/index.js +485 -0
- package/components/display/graph/visualizations/tree/types.d.ts +11 -0
- package/components/display/graph/visualizations/tree/types.js +1 -0
- package/components/display/icons/Iconified.d.ts +9 -0
- package/components/display/icons/Iconified.js +29 -0
- package/components/display/json/index.d.ts +14 -0
- package/components/display/json/index.js +12 -0
- package/components/display/markdown/DynamicTabs.d.ts +8 -0
- package/components/display/markdown/DynamicTabs.js +26 -0
- package/components/display/markdown/index.d.ts +9 -0
- package/components/display/markdown/index.js +13389 -0
- package/components/display/markdown/markdownPlugins/tabs.d.ts +3 -0
- package/components/display/markdown/markdownPlugins/tabs.js +4 -0
- package/components/enrichment/EnrichPopover.d.ts +10 -0
- package/components/enrichment/EnrichPopover.js +88 -0
- package/components/fetchers/Fetcher.d.ts +17 -0
- package/components/fetchers/Fetcher.js +188 -0
- package/components/fetchers/PreviewModal.d.ts +8 -0
- package/components/fetchers/PreviewModal.js +22 -0
- package/components/fetchers/StatusChip.d.ts +8 -0
- package/components/fetchers/StatusChip.js +30 -0
- package/components/group/Entry.d.ts +8 -0
- package/components/group/Entry.js +15 -0
- package/components/group/Group.d.ts +12 -0
- package/components/group/Group.js +15 -0
- package/components/group/GroupControl.d.ts +4 -0
- package/components/group/GroupControl.js +103 -0
- package/components/stats/QueryStatus.d.ts +4 -0
- package/components/stats/QueryStatus.js +61 -0
- package/countBy-C69WslUA.js +14 -0
- package/data/event.d.ts +12 -0
- package/data/event.js +8 -0
- package/database/index.d.ts +4 -0
- package/database/index.js +4 -0
- package/database/selector.schema.json.d.ts +119 -0
- package/database/status.schema.json.d.ts +38 -0
- package/database/types.d.ts +64 -0
- package/debounce-bV0h5FC5.js +92 -0
- package/en/translation.json +135 -0
- package/fr/translation.json +134 -0
- package/get-D3C3lEU3.js +8 -0
- package/groupBy-DC2oOuBN.js +14 -0
- package/hooks/ClueActionContext.d.ts +86 -0
- package/hooks/ClueActionContext.js +18 -0
- package/hooks/ClueComponentContext.d.ts +10 -0
- package/hooks/ClueComponentContext.js +40 -0
- package/hooks/ClueConfigProvider.d.ts +12 -0
- package/hooks/ClueConfigProvider.js +23 -0
- package/hooks/ClueDatabaseContext.d.ts +10 -0
- package/hooks/ClueDatabaseContext.js +23 -0
- package/hooks/ClueEnrichContext.d.ts +6 -0
- package/hooks/ClueEnrichContext.js +15 -0
- package/hooks/ClueEnrichContextType.d.ts +113 -0
- package/hooks/ClueEnrichProps.d.ts +81 -0
- package/hooks/ClueFetcherContext.d.ts +35 -0
- package/hooks/ClueFetcherContext.js +88 -0
- package/hooks/ClueGroupContext.d.ts +14 -0
- package/hooks/ClueGroupContext.js +23 -0
- package/hooks/CluePopupContext.d.ts +24 -0
- package/hooks/CluePopupContext.js +12 -0
- package/hooks/ClueProvider.d.ts +9 -0
- package/hooks/ClueProvider.js +14 -0
- package/hooks/selectors.d.ts +10 -0
- package/hooks/selectors.js +24 -0
- package/hooks/useAnnotations.d.ts +24 -0
- package/hooks/useAnnotations.js +69 -0
- package/hooks/useClue.d.ts +4 -0
- package/hooks/useClue.js +8 -0
- package/hooks/useClueActions.d.ts +4 -0
- package/hooks/useClueActions.js +5 -0
- package/hooks/useClueConfig.d.ts +1 -0
- package/hooks/useClueConfig.js +8 -0
- package/hooks/useClueTypeConfig.d.ts +17 -0
- package/hooks/useClueTypeConfig.js +7 -0
- package/hooks/useComparator.d.ts +16 -0
- package/hooks/useComparator.js +1060 -0
- package/hooks/useErrors.d.ts +17 -0
- package/hooks/useErrors.js +35 -0
- package/hooks/useMyHighlights.d.ts +11 -0
- package/hooks/useMyHighlights.js +74 -0
- package/hooks/useMyLocalStorage.d.ts +16 -0
- package/hooks/useMyLocalStorage.js +80 -0
- package/iconify-CXMreGTg.js +1782 -0
- package/icons/Action.d.ts +9 -0
- package/icons/Action.js +90 -0
- package/icons/Assessment.d.ts +11 -0
- package/icons/Assessment.js +123 -0
- package/icons/Context.d.ts +12 -0
- package/icons/Context.js +83 -0
- package/icons/Opinion.d.ts +11 -0
- package/icons/Opinion.js +125 -0
- package/icons/iconMap.d.ts +7 -0
- package/icons/iconMap.js +10 -0
- package/identity-CPGTqrE4.js +6 -0
- package/index-BDVjGvMI.js +696 -0
- package/index-BDrtH5ec.js +465 -0
- package/index-BbPn6-Mw.js +15750 -0
- package/index-C9lySIVX.js +1172 -0
- package/index-Dn2NHyXg.js +17654 -0
- package/index.css +21 -0
- package/isEmpty-BQkZubqU.js +29 -0
- package/isNil-CIubwp4T.js +6 -0
- package/isObject-FTY-5JQX.js +7 -0
- package/isObjectLike-OAgjjZye.js +48 -0
- package/isSymbol-Xd2FsJyp.js +8 -0
- package/isUndefined-CE8h73dH.js +10 -0
- package/last-CUCl67Im.js +7 -0
- package/main.d.ts +42 -0
- package/main.js +70 -0
- package/package.json +39 -143
- package/public/manifest.json +16 -0
- package/public/robots.txt +3 -0
- package/public/svg/dark/clue-h.svg +52 -0
- package/public/svg/dark/clue-icon1-simple.svg +33 -0
- package/public/svg/dark/clue-icon1.svg +44 -0
- package/public/svg/dark/clue-icon2-simple.svg +26 -0
- package/public/svg/dark/clue-icon2.svg +37 -0
- package/public/svg/dark/clue-name.svg +14 -0
- package/public/svg/dark/clue-v.svg +52 -0
- package/public/svg/light/clue-h.svg +60 -0
- package/public/svg/light/clue-icon1-simple.svg +37 -0
- package/public/svg/light/clue-icon1.svg +48 -0
- package/public/svg/light/clue-icon2-simple.svg +30 -0
- package/public/svg/light/clue-icon2.svg +41 -0
- package/public/svg/light/clue-name.svg +14 -0
- package/public/svg/light/clue-v.svg +60 -0
- package/sortBy-B-UKp4GT.js +100 -0
- package/sumBy-MYkDPHZL.js +8 -0
- package/tabs-xGuUGsJd.js +254 -0
- package/text/Frequency.d.ts +9 -0
- package/text/Frequency.js +49 -0
- package/toFinite-Bc55msYj.js +16 -0
- package/toNumber-DPxy1FBy.js +39 -0
- package/types/EnrichmentProps.d.ts +73 -0
- package/types/RunningActionData.d.ts +15 -0
- package/types/WithActionData.d.ts +9 -0
- package/types/action.d.ts +25 -0
- package/types/config.d.ts +16 -0
- package/types/fetcher.d.ts +60 -0
- package/types/graph.d.ts +101 -0
- package/types/lookup.d.ts +62 -0
- package/types/network.d.ts +9 -0
- package/useClueTypeConfig-D4zcy8Gr.js +3184 -0
- package/utils/chain.d.ts +14 -0
- package/utils/chain.js +106 -0
- package/utils/classificationParser.d.ts +195 -0
- package/utils/classificationParser.js +553 -0
- package/utils/constants.d.ts +27 -0
- package/utils/constants.js +37 -0
- package/utils/graph.d.ts +13 -0
- package/utils/graph.js +79 -0
- package/utils/hashUtil.d.ts +6 -0
- package/utils/hashUtil.js +11 -0
- package/utils/line.d.ts +28 -0
- package/utils/line.js +136 -0
- package/utils/loggerUtil.d.ts +6 -0
- package/utils/loggerUtil.js +8 -0
- package/utils/sessionStorage.d.ts +9 -0
- package/utils/sessionStorage.js +51 -0
- package/utils/utils.d.ts +13 -0
- package/utils/utils.js +11 -0
- package/utils/window.d.ts +3 -0
- package/utils/window.js +24 -0
- package/utils-CxIhC2xH.js +4182 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ClueActionContextType } from './ClueActionContext';
|
|
2
|
+
import { ClueComponentContextType } from './ClueComponentContext';
|
|
3
|
+
import { ClueEnrichContextType } from './ClueEnrichContextType';
|
|
4
|
+
import { ClueFetcherContextType } from './ClueFetcherContext';
|
|
5
|
+
|
|
6
|
+
export declare const useClueFetcherSelector: <Selected>(selector: (value: ClueFetcherContextType) => Selected) => Selected;
|
|
7
|
+
export declare const useClueActionsSelector: <Selected>(selector: (value: ClueActionContextType) => Selected) => Selected;
|
|
8
|
+
export declare const useClueEnrichSelector: <Selected>(selector: (value: ClueEnrichContextType) => Selected) => Selected;
|
|
9
|
+
export declare const useClueComponentSelector: <Selected>(selector: (value: ClueComponentContextType) => Selected) => Selected;
|
|
10
|
+
export default useClueEnrichSelector;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { u as useContextSelector } from "../index-BDVjGvMI.js";
|
|
2
|
+
import { a as ClueActionContext } from "../ActionForm-c5hLIfQ-.js";
|
|
3
|
+
import { ClueComponentContext } from "./ClueComponentContext.js";
|
|
4
|
+
import { C as ClueEnrichContext } from "../ClueEnrichContext-m-4vn9rz.js";
|
|
5
|
+
import { ClueFetcherContext } from "./ClueFetcherContext.js";
|
|
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
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
useClueEnrichSelector as default,
|
|
20
|
+
useClueActionsSelector,
|
|
21
|
+
useClueComponentSelector,
|
|
22
|
+
useClueEnrichSelector,
|
|
23
|
+
useClueFetcherSelector
|
|
24
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Annotation, WithExtra } from "../types/lookup";
|
|
2
|
+
|
|
3
|
+
interface AnnotationOptions {
|
|
4
|
+
skipEnrichment?: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Custom hook to manage and retrieve annotations for a specific type, value, and classification.
|
|
8
|
+
*
|
|
9
|
+
* This hook interacts with the Clue database to:
|
|
10
|
+
* 1. Track the loading state of annotations.
|
|
11
|
+
* 2. Automatically queue enrichment tasks if required.
|
|
12
|
+
* 3. Retrieve and update annotations in real-time using RxDB observables.
|
|
13
|
+
*
|
|
14
|
+
* @param type - The type of the annotation (e.g., entity type).
|
|
15
|
+
* @param value - The value to search for annotations.
|
|
16
|
+
* @param classification - The classification of the annotation.
|
|
17
|
+
* @param options - Additional options:
|
|
18
|
+
* - skipEnrichment: If true, skips the enrichment process.
|
|
19
|
+
* @returns A tuple containing:
|
|
20
|
+
* - An array of annotations with extra metadata.
|
|
21
|
+
* - A boolean indicating the loading state.
|
|
22
|
+
*/
|
|
23
|
+
declare const useAnnotations: (type: string, value: string, _classification?: string, { skipEnrichment }?: AnnotationOptions) => [WithExtra<Annotation>[], boolean];
|
|
24
|
+
export default useAnnotations;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { b as baseIteratee } from "../_baseIteratee-p6Nj07-n.js";
|
|
2
|
+
import { b as baseUniq } from "../_baseUniq-CpupKWcL.js";
|
|
3
|
+
import { useContext, useMemo, useState, useEffect } from "react";
|
|
4
|
+
import { ClueDatabaseContext } from "./ClueDatabaseContext.js";
|
|
5
|
+
import { useClueEnrichSelector } from "./selectors.js";
|
|
6
|
+
function uniqBy(array, iteratee) {
|
|
7
|
+
return array && array.length ? baseUniq(array, baseIteratee(iteratee)) : [];
|
|
8
|
+
}
|
|
9
|
+
const useAnnotations = (type, value, _classification, { skipEnrichment } = { skipEnrichment: false }) => {
|
|
10
|
+
const database = useContext(ClueDatabaseContext);
|
|
11
|
+
const defaultClassification = useClueEnrichSelector((ctx) => ctx.defaultClassification);
|
|
12
|
+
const enrichReady = useClueEnrichSelector((ctx) => ctx.ready);
|
|
13
|
+
const availableSources = useClueEnrichSelector((ctx) => ctx.availableSources);
|
|
14
|
+
const queueEnrich = useClueEnrichSelector((state) => state.queueEnrich);
|
|
15
|
+
const classification = useMemo(
|
|
16
|
+
() => _classification ?? defaultClassification,
|
|
17
|
+
[_classification, defaultClassification]
|
|
18
|
+
);
|
|
19
|
+
const [loading, setLoading] = useState(false);
|
|
20
|
+
const [annotations, setAnnotations] = useState([]);
|
|
21
|
+
const ready = useMemo(
|
|
22
|
+
() => enrichReady && !!type && !!value && !!classification,
|
|
23
|
+
[classification, enrichReady, type, value]
|
|
24
|
+
);
|
|
25
|
+
useEffect(() => {
|
|
26
|
+
if (!ready || !(database == null ? void 0 : database.status)) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const observable = database.status.count({ selector: { type, value, classification, status: "in-progress" } }).$.subscribe((_count) => setLoading(_count > 0));
|
|
30
|
+
return () => {
|
|
31
|
+
observable == null ? void 0 : observable.unsubscribe();
|
|
32
|
+
};
|
|
33
|
+
}, [classification, database, ready, type, value]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
if (skipEnrichment || availableSources.length < 1 || !ready) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
queueEnrich(type, value, classification);
|
|
39
|
+
}, [availableSources.length, classification, queueEnrich, ready, skipEnrichment, type, value]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
if (!ready) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const observable = database.selectors.find({
|
|
45
|
+
selector: {
|
|
46
|
+
// Use regex instead of exact value for case-insensitivity
|
|
47
|
+
value: { $regex: `^${value}$`, $options: "i" }
|
|
48
|
+
}
|
|
49
|
+
}).$.subscribe(
|
|
50
|
+
(result) => setAnnotations(
|
|
51
|
+
uniqBy(
|
|
52
|
+
result.flatMap((entry) => entry.getAnnotations()),
|
|
53
|
+
JSON.stringify
|
|
54
|
+
)
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
return () => {
|
|
58
|
+
try {
|
|
59
|
+
observable.unsubscribe();
|
|
60
|
+
} catch (e) {
|
|
61
|
+
console.warn(e);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}, [database, ready, value]);
|
|
65
|
+
return [annotations, loading];
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
useAnnotations as default
|
|
69
|
+
};
|
package/hooks/useClue.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function useClueConfig(): import("../hooks/ClueConfigProvider").ClueConfigContextType;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AxiosRequestConfig } from 'axios';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Hook to populate and provide the types detection and the available sources.
|
|
5
|
+
* @param ready Flag to signify if clue is ready to populate the types and sources.
|
|
6
|
+
* @param baseURL The base URL of the clue enrichment API.
|
|
7
|
+
* @param debugLogging Flag to toggle debug logging.
|
|
8
|
+
* @param getToken Callback to fetch the Bearer token.
|
|
9
|
+
* @param onNetworkCall Callback to configure Axios requests.
|
|
10
|
+
* @returns An object containing the available sources and the types detection.
|
|
11
|
+
*/
|
|
12
|
+
export default function useClueTypeConfig(ready: boolean, baseURL: string, debugLogging: boolean, getToken?: () => string, onNetworkCall?: (config: AxiosRequestConfig) => AxiosRequestConfig): {
|
|
13
|
+
availableSources: Array<string>;
|
|
14
|
+
typesDetection: {
|
|
15
|
+
[type: string]: RegExp;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BaseComparator, EdgeStyler, NodeStyler } from "../types/graph";
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
3
|
+
|
|
4
|
+
declare const useComparator: () => {
|
|
5
|
+
runComparators: (comparators: (NodeStyler | EdgeStyler)[], nodeOrSource: {
|
|
6
|
+
[index: string]: any;
|
|
7
|
+
}, target?: {
|
|
8
|
+
[index: string]: any;
|
|
9
|
+
}) => CSSProperties;
|
|
10
|
+
runComparator: (comparator: BaseComparator | NodeStyler | EdgeStyler, nodeOrSource: {
|
|
11
|
+
[index: string]: any;
|
|
12
|
+
}, target?: {
|
|
13
|
+
[index: string]: any;
|
|
14
|
+
}) => CSSProperties | boolean;
|
|
15
|
+
};
|
|
16
|
+
export default useComparator;
|