@e-llm-studio/citation 0.0.200 → 0.0.201
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/README.md +157 -28
- package/dist/assests/svg/PdfViewerIcons.js +1 -1
- package/dist/assests/svg/SparkleIcon.js +2 -0
- package/dist/assests/svg/SparkleIcon.js.map +1 -0
- package/dist/cjs/assests/svg/PdfViewerIcons.js +1 -1
- package/dist/cjs/assests/svg/SparkleIcon.js +2 -0
- package/dist/cjs/assests/svg/SparkleIcon.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CitationAnchor.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CitationRenderer.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CognitivePopup.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/CompareContext.js +2 -0
- package/dist/cjs/features/CognitiveCompare/CompareContext.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/LoaderComponent.js +2 -0
- package/dist/cjs/features/CognitiveCompare/LoaderComponent.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js +2 -0
- package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/OverlayComponent.js +2 -0
- package/dist/cjs/features/CognitiveCompare/OverlayComponent.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js +2 -0
- package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +2 -0
- package/dist/cjs/features/CognitiveCompare/components/connectedLines.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +2 -0
- package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/features/CognitiveCompare/CitationAnchor.js +2 -0
- package/dist/features/CognitiveCompare/CitationAnchor.js.map +1 -0
- package/dist/features/CognitiveCompare/CitationRenderer.js +2 -0
- package/dist/features/CognitiveCompare/CitationRenderer.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitiveCompare.js +2 -0
- package/dist/features/CognitiveCompare/CognitiveCompare.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitiveCompareConfig.js +2 -0
- package/dist/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +2 -0
- package/dist/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +2 -0
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -0
- package/dist/features/CognitiveCompare/CognitivePopup.js +2 -0
- package/dist/features/CognitiveCompare/CognitivePopup.js.map +1 -0
- package/dist/features/CognitiveCompare/CompareContext.js +2 -0
- package/dist/features/CognitiveCompare/CompareContext.js.map +1 -0
- package/dist/features/CognitiveCompare/LoaderComponent.js +2 -0
- package/dist/features/CognitiveCompare/LoaderComponent.js.map +1 -0
- package/dist/features/CognitiveCompare/MoreFunctionsPopup.js +2 -0
- package/dist/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -0
- package/dist/features/CognitiveCompare/OverlayComponent.js +2 -0
- package/dist/features/CognitiveCompare/OverlayComponent.js.map +1 -0
- package/dist/features/CognitiveCompare/ResizableSplitPane.js +2 -0
- package/dist/features/CognitiveCompare/ResizableSplitPane.js.map +1 -0
- package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js +2 -0
- package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -0
- package/dist/features/CognitiveCompare/components/CompareHeader.js +2 -0
- package/dist/features/CognitiveCompare/components/CompareHeader.js.map +1 -0
- package/dist/features/CognitiveCompare/components/LHSSectionRow.js +2 -0
- package/dist/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -0
- package/dist/features/CognitiveCompare/components/RHSSectionRow.js +2 -0
- package/dist/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -0
- package/dist/features/CognitiveCompare/components/ScrollLockToggle.js +2 -0
- package/dist/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -0
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +2 -0
- package/dist/features/CognitiveCompare/components/SectionAccordion.js.map +1 -0
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +2 -0
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -0
- package/dist/features/CognitiveCompare/components/SvgConnectors.js +2 -0
- package/dist/features/CognitiveCompare/components/SvgConnectors.js.map +1 -0
- package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js +2 -0
- package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -0
- package/dist/features/CognitiveCompare/components/connectedLines.js +2 -0
- package/dist/features/CognitiveCompare/components/connectedLines.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +2 -0
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useAccordionState.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useCompareData.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useComparePopups.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useResizeHandler.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useSectionRefs.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -0
- package/dist/features/CognitiveCompare/hooks/useStyles.js +2 -0
- package/dist/features/CognitiveCompare/hooks/useStyles.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/types/src/CognitiveCompareTest.d.ts +3 -0
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -0
- package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
- package/dist/types/src/assests/svg/PdfViewerIcons.d.ts +1 -0
- package/dist/types/src/assests/svg/PdfViewerIcons.d.ts.map +1 -1
- package/dist/types/src/assests/svg/SparkleIcon.d.ts +3 -0
- package/dist/types/src/assests/svg/SparkleIcon.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +27 -0
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +11 -0
- package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +6 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts +64 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts +11 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +282 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +63 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts +7 -0
- package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +67 -0
- package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts +3 -0
- package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts +17 -0
- package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts +5 -0
- package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts +9 -0
- package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +3 -0
- package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts +12 -0
- package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts +9 -0
- package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts +9 -0
- package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts +11 -0
- package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts +17 -0
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts +13 -0
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts +36 -0
- package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +8 -0
- package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts +8 -0
- package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +13 -0
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts +32 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +13 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +24 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts +22 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +32 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +27 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts +5 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts +19 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +35 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +15 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/package.json +9 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { SectionBlock } from "./CognitiveCompareTypes";
|
|
2
|
+
export declare const safeStringify: (val: unknown) => string;
|
|
3
|
+
export declare const hasValue: (val: unknown) => boolean;
|
|
4
|
+
export declare const getSideData: (node: any, sideIndex: "0" | "1", indexMap: Record<string, string>) => {
|
|
5
|
+
title: string;
|
|
6
|
+
content: string;
|
|
7
|
+
change_history: string;
|
|
8
|
+
attributes: any;
|
|
9
|
+
subsections: any;
|
|
10
|
+
};
|
|
11
|
+
export declare const getRationale: (node: any) => {
|
|
12
|
+
cognitiveData: {
|
|
13
|
+
decisioning: never[];
|
|
14
|
+
gap: never[];
|
|
15
|
+
relevance_score: number;
|
|
16
|
+
isMissingRationale: boolean;
|
|
17
|
+
citations: never[];
|
|
18
|
+
};
|
|
19
|
+
score: number;
|
|
20
|
+
relation: string;
|
|
21
|
+
} | {
|
|
22
|
+
cognitiveData: {
|
|
23
|
+
decisioning: any;
|
|
24
|
+
gap: any;
|
|
25
|
+
relevance_score: number;
|
|
26
|
+
citations: any;
|
|
27
|
+
isMissingRationale?: undefined;
|
|
28
|
+
};
|
|
29
|
+
score: number;
|
|
30
|
+
relation: string;
|
|
31
|
+
};
|
|
32
|
+
export declare const formatRelationToLabel: (relation: string) => string;
|
|
33
|
+
type ColorPalette = {
|
|
34
|
+
bg: string;
|
|
35
|
+
border: string;
|
|
36
|
+
badgeBg: string;
|
|
37
|
+
badgeBorder: string;
|
|
38
|
+
badgeText: string;
|
|
39
|
+
highlightBg: string;
|
|
40
|
+
};
|
|
41
|
+
export declare function generateColorPalette(hex: string): ColorPalette;
|
|
42
|
+
export declare function debounce<T extends (...args: any[]) => any>(func: T, delay: number): (...args: Parameters<T>) => void;
|
|
43
|
+
export declare const checkPathMatchesIdx: (pathStr: string, idx: number) => boolean;
|
|
44
|
+
export declare const areMarkdownPropsEqual: (prevProps: any, nextProps: any) => boolean;
|
|
45
|
+
export declare const DEVIATION_BADGE_SEPARATOR = "::";
|
|
46
|
+
export declare const isMissingStr: (str: string | undefined | null) => boolean;
|
|
47
|
+
export declare const hasMeaningfulRedlineTags: (content: unknown) => boolean;
|
|
48
|
+
export declare const stripRedlineTags: (content: unknown) => string;
|
|
49
|
+
export declare const extractDeviationScore: (evaluationResult: any, fallbackLabel?: any) => any;
|
|
50
|
+
export declare const getBentArrowPath: (x1: number, y1: number, x2: number, y2: number, radius?: number) => string;
|
|
51
|
+
export declare const smoothScrollTo: (element: HTMLElement, targetPosition: number, duration?: number, onComplete?: () => void, onProgress?: () => void) => void;
|
|
52
|
+
export declare const escapeRegExp: (string: string) => string;
|
|
53
|
+
export declare const getFirstDeviationColor: (evaluationResult: any) => string;
|
|
54
|
+
export declare const getFirstDeviationOutputValue: (evaluationResult: any) => string | null;
|
|
55
|
+
export declare const mixHexColors: (hex1: string, hex2: string) => string;
|
|
56
|
+
export declare const recursivelyFindSubSectionIdxById: (node: any, path: string, targetId: string) => string | null;
|
|
57
|
+
export declare const findKeyPathByNodeId: (sections: SectionBlock[], nodeId: string) => string | null;
|
|
58
|
+
export declare const resetClauseHighlight: (element: HTMLElement) => void;
|
|
59
|
+
export declare const highlightClause: (element: HTMLElement) => void;
|
|
60
|
+
export declare const scrollAndHighlightClause: (element: HTMLElement, scrollContainer: HTMLElement) => void;
|
|
61
|
+
export declare const waitForElementVisible: (element: HTMLElement, onVisible: () => void) => void;
|
|
62
|
+
export {};
|
|
63
|
+
//# sourceMappingURL=CognitiveComparehelpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitiveComparehelpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompar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AM,gBAAgB,YAAa,OAAO,KAAG,MAGnD,CAAC;AAEF,eAAO,MAAM,qBAAqB,qBAAsB,GAAG,kBAAkB,GAAG,QAO/E,CAAC;AAEF,eAAO,MAAM,gBAAgB,OACvB,MAAM,MACN,MAAM,MACN,MAAM,MACN,MAAM,WACF,MAAM,KACb,MAyBF,CAAC;AAEF,eAAO,MAAM,cAAc,YAChB,WAAW,kBACJ,MAAM,aACZ,MAAM,eACH,MAAM,IAAI,eACV,MAAM,IAAI,SAgCxB,CAAC;AAEF,eAAO,MAAM,YAAY,WAAY,MAAM,WAQ1C,CAAC;AAWF,eAAO,MAAM,sBAAsB,qBAAsB,GAAG,KAAG,MAmC9D,CAAC;AAEF,eAAO,MAAM,4BAA4B,qBAAsB,GAAG,KAAG,MAAM,GAAG,IA4B7E,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,MAAM,QAAQ,MAAM,KAAG,MA8BzD,CAAC;AAIF,eAAO,MAAM,gCAAgC,SACrC,GAAG,QACH,MAAM,YACF,MAAM,KACf,MAAM,GAAG,IAcX,CAAC;AAEF,eAAO,MAAM,mBAAmB,aACpB,YAAY,EAAE,UAChB,MAAM,KACb,MAAM,GAAG,IAUX,CAAC;AAIF,eAAO,MAAM,oBAAoB,YAAa,WAAW,SAkBxD,CAAC;AAEF,eAAO,MAAM,eAAe,YAAa,WAAW,SAiBnD,CAAC;AAEF,eAAO,MAAM,wBAAwB,YAC1B,WAAW,mBACH,WAAW,SAiC7B,CAAC;AAGF,eAAO,MAAM,qBAAqB,YACvB,WAAW,aACT,MAAM,IAAI,SAkBtB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { CognitivePopupConfig, CognitivePopupProps } from "./CognitiveCompareTypes";
|
|
3
|
+
declare const CognitivePopup: React.FC<CognitivePopupProps & {
|
|
4
|
+
popupConfig?: CognitivePopupConfig;
|
|
5
|
+
}>;
|
|
6
|
+
export default CognitivePopup;
|
|
7
|
+
//# sourceMappingURL=CognitivePopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitivePopup.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitivePopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAuC,MAAM,OAAO,CAAC;AAO5D,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAWjC,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAC5B,mBAAmB,GAAG;IAAE,WAAW,CAAC,EAAE,oBAAoB,CAAA;CAAE,CA0f7D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IDisplayConfig, SectionBlock, StyleVariant } from "./CognitiveCompareTypes";
|
|
3
|
+
export type UnifiedNumbering = {
|
|
4
|
+
leftNums: Map<string, number>;
|
|
5
|
+
rightNums: Map<string, string>;
|
|
6
|
+
};
|
|
7
|
+
export type CompareContextValue = {
|
|
8
|
+
maintainRelativeOrder: boolean;
|
|
9
|
+
showDeviationBadges: boolean;
|
|
10
|
+
isProposingFix?: boolean;
|
|
11
|
+
proposingFixNodeId?: string;
|
|
12
|
+
isRedlineFlow?: boolean;
|
|
13
|
+
isSideBySide: boolean;
|
|
14
|
+
activeSideBySideSection: number | string | null;
|
|
15
|
+
scrollSyncLocked: boolean;
|
|
16
|
+
toggleScrollSyncLocked: (e?: React.MouseEvent) => void;
|
|
17
|
+
summaryPopupAnchorEl: HTMLElement | null;
|
|
18
|
+
connectedSections: Set<number | string>;
|
|
19
|
+
proposedSections: SectionBlock[];
|
|
20
|
+
existingSections: SectionBlock[];
|
|
21
|
+
deviationNumberRegistry: Record<string, number>;
|
|
22
|
+
treeData: Record<string, any> | null | undefined;
|
|
23
|
+
displayConfig: IDisplayConfig;
|
|
24
|
+
resolvedMarkdownStyles: Record<string, any>;
|
|
25
|
+
unifiedNumbering: UnifiedNumbering;
|
|
26
|
+
expandedSections: Record<string, boolean>;
|
|
27
|
+
expandedSubSections: Record<string, boolean>;
|
|
28
|
+
setExpandedSubSections: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
29
|
+
getSectionCompareStyle: (idx: number, side?: "left" | "right") => StyleVariant | null;
|
|
30
|
+
getSubSectionCompareStyle: (path: string) => StyleVariant | null;
|
|
31
|
+
getBadgeRef: (side: "left" | "right", id: string) => React.RefObject<HTMLDivElement>;
|
|
32
|
+
getSectionRowRef: (idx: string | number) => React.RefObject<HTMLDivElement>;
|
|
33
|
+
getSubSectionRef: (side: "left" | "right", path: string) => React.RefObject<HTMLDivElement>;
|
|
34
|
+
sectionLeftRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
35
|
+
sectionRightRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
36
|
+
sectionRowRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
37
|
+
sectionRightRowRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
38
|
+
subSectionLeftRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
39
|
+
subSectionRightRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
40
|
+
lhsBadgeRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
41
|
+
rhsBadgeRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
42
|
+
openMoreFunctionsPopup: (e: React.MouseEvent, baseSec: SectionBlock, isOrphan: boolean, refSec: SectionBlock, id: string | number, style?: StyleVariant | null) => void;
|
|
43
|
+
handleOpenSummaryPopup: (e: React.MouseEvent, actionId: string, isOrphan: boolean, summary: any, displayImpact?: boolean) => void;
|
|
44
|
+
openSummaryPopup: (e: React.MouseEvent, actionId: string, isOrphan: boolean, summary: any) => void;
|
|
45
|
+
handleCloseSummaryPopup: () => void;
|
|
46
|
+
toggleSection: (idx: number, columnKey: "left" | "right") => void;
|
|
47
|
+
handleSubSectionToggle: (keyPath: string) => void;
|
|
48
|
+
renderSubSectionAccordion: (args: {
|
|
49
|
+
section: SectionBlock;
|
|
50
|
+
keyPath: string;
|
|
51
|
+
depth: number;
|
|
52
|
+
columnKey: "left" | "right";
|
|
53
|
+
parentNodeId: string;
|
|
54
|
+
sectionOffset?: number;
|
|
55
|
+
}) => React.ReactNode;
|
|
56
|
+
resetSideBySide: () => void;
|
|
57
|
+
setConnectedSections: React.Dispatch<React.SetStateAction<Set<number | string>>>;
|
|
58
|
+
setConnectedLines: React.Dispatch<React.SetStateAction<any[]>>;
|
|
59
|
+
cachedConnectedPositions: React.MutableRefObject<any[]>;
|
|
60
|
+
showDeviationNavigation: Record<string, any>;
|
|
61
|
+
showOpenNodeRef: React.MutableRefObject<string | undefined>;
|
|
62
|
+
deviationNodeIdToView?: string | undefined;
|
|
63
|
+
deviationTargetParentId?: string | null;
|
|
64
|
+
};
|
|
65
|
+
export declare const CompareContextProvider: React.Provider<CompareContextValue | null>;
|
|
66
|
+
export declare const useCompareContext: () => CompareContextValue;
|
|
67
|
+
//# sourceMappingURL=CompareContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareContext.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CompareContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC9B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAA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Aa,CAAC,EAAE,MAAM,CAAC;KACxB,KAAK,KAAK,CAAC,SAAS,CAAC;IACtB,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;IACjF,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC/D,wBAAwB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,EAAE,CAAC,CAAC;IACxD,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC7C,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC,CAAC;AAIF,eAAO,MAAM,sBAAsB,4CAA0B,CAAC;AAE9D,eAAO,MAAM,iBAAiB,2BAM7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoaderComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/LoaderComponent.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,kBAAkB,+CA8DvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type MoreFunctionsPopupProps = {
|
|
3
|
+
open: boolean;
|
|
4
|
+
anchorEl: HTMLElement | null;
|
|
5
|
+
sectionTitle: string;
|
|
6
|
+
referenceSectionTitle: string;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
onOpenCognitiveCompare: () => void;
|
|
9
|
+
onOpenSideBySide: () => void;
|
|
10
|
+
onConnect: () => void;
|
|
11
|
+
isConnected?: boolean;
|
|
12
|
+
isOrphan: boolean;
|
|
13
|
+
maintainRelativeOrder?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const MoreFunctionsPopup: React.FC<MoreFunctionsPopupProps>;
|
|
16
|
+
export default MoreFunctionsPopup;
|
|
17
|
+
//# sourceMappingURL=MoreFunctionsPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MoreFunctionsPopup.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/MoreFunctionsPopup.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,KAAK,uBAAuB,GAAG;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,qBAAqB,EAAE,MAAM,CAAC;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACnC,CAAC;AAoCF,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA8LzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverlayComponent.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/OverlayComponent.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,aAAa;;6CAwFlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
interface ResizableSplitPaneProps {
|
|
3
|
+
leftComponent?: ReactNode;
|
|
4
|
+
rightComponent?: ReactNode;
|
|
5
|
+
isFullscreen?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const ResizableSplitPane: React.FC<ResizableSplitPaneProps>;
|
|
8
|
+
export default ResizableSplitPane;
|
|
9
|
+
//# sourceMappingURL=ResizableSplitPane.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResizableSplitPane.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/ResizableSplitPane.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,SAAS,EAIV,MAAM,OAAO,CAAC;AAEf,UAAU,uBAAuB;IAC/B,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,cAAc,CAAC,EAAE,SAAS,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,QAAA,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAiIzD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CognitiveSummaryPopupProps } from "../CognitiveCompareTypes";
|
|
2
|
+
export default function CognitiveSummaryPopup({ open, anchorEl, containerEl, clipTopEl, scrollContainerEl, onClose, summary, markdownStyles, isLoading, displayImpact, isScrollLocked, }: CognitiveSummaryPopupProps): import("react/jsx-runtime").JSX.Element | null;
|
|
3
|
+
//# sourceMappingURL=CognitiveSummaryPopup.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CognitiveSummaryPopup.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/CognitiveSummaryPopup.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAoBtE,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,EAC5C,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,OAAO,EACP,OAAO,EACP,cAAc,EACd,SAAS,EACT,aAAa,EACb,cAAc,GACf,EAAE,0BAA0B,kDAka5B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDisplayConfig } from "../CognitiveCompareTypes";
|
|
2
|
+
type CompareHeaderProps = {
|
|
3
|
+
componentHeaderText: string;
|
|
4
|
+
displayConfig: IDisplayConfig;
|
|
5
|
+
maintainRelativeOrder: boolean | undefined;
|
|
6
|
+
onToggleView: (isDefaultView: boolean) => void;
|
|
7
|
+
onCollapseAll: () => void;
|
|
8
|
+
showCollapseAll: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const CompareHeader: ({ componentHeaderText, displayConfig, maintainRelativeOrder, onToggleView, onCollapseAll, showCollapseAll, }: CompareHeaderProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
|
+
export default CompareHeader;
|
|
12
|
+
//# sourceMappingURL=CompareHeader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompareHeader.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/CompareHeader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,KAAK,kBAAkB,GAAG;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,cAAc,CAAC;IAC9B,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,CAAC,aAAa,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,aAAa,iHAOhB,kBAAkB,mDA6IpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
type LHSSectionRowProps = {
|
|
4
|
+
section: SectionBlock;
|
|
5
|
+
idx: number;
|
|
6
|
+
};
|
|
7
|
+
declare const LHSSectionRow: React.MemoExoticComponent<({ section, idx, }: LHSSectionRowProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
8
|
+
export default LHSSectionRow;
|
|
9
|
+
//# sourceMappingURL=LHSSectionRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LHSSectionRow.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/LHSSectionRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAQtE,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,QAAA,MAAM,aAAa,gDAId,kBAAkB,oDAuMtB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
type RHSSectionRowProps = {
|
|
4
|
+
section: SectionBlock;
|
|
5
|
+
idx: number;
|
|
6
|
+
};
|
|
7
|
+
declare const RHSSectionRow: React.MemoExoticComponent<({ section, idx, }: RHSSectionRowProps) => import("react/jsx-runtime").JSX.Element>;
|
|
8
|
+
export default RHSSectionRow;
|
|
9
|
+
//# sourceMappingURL=RHSSectionRow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RHSSectionRow.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/RHSSectionRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,EAAE,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAQtE,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,QAAA,MAAM,aAAa,gDAId,kBAAkB,6CA2OtB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type ScrollLockToggleProps = {
|
|
3
|
+
locked: boolean;
|
|
4
|
+
onToggle: (e: React.MouseEvent) => void;
|
|
5
|
+
color?: string;
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
size?: number;
|
|
8
|
+
};
|
|
9
|
+
declare const ScrollLockToggle: ({ locked, onToggle, color, borderColor, size, }: ScrollLockToggleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ScrollLockToggle;
|
|
11
|
+
//# sourceMappingURL=ScrollLockToggle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScrollLockToggle.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/ScrollLockToggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,KAAK,IAAI,CAAC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAOF,QAAA,MAAM,gBAAgB,oDAMnB,qBAAqB,4CAkCvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
import { DeviationNavigationEntry } from "../hooks/useDeviationNavigation";
|
|
4
|
+
type SectionAccordionProps = {
|
|
5
|
+
section: SectionBlock;
|
|
6
|
+
idx: number;
|
|
7
|
+
columnKey: "left" | "right";
|
|
8
|
+
colRef: React.RefObject<HTMLDivElement>;
|
|
9
|
+
mb?: number;
|
|
10
|
+
parentNodeId?: string;
|
|
11
|
+
isExpanded: boolean;
|
|
12
|
+
onToggle: () => void;
|
|
13
|
+
navigation: DeviationNavigationEntry | null;
|
|
14
|
+
};
|
|
15
|
+
declare const SectionAccordion: ({ section, idx, columnKey, colRef, mb, isExpanded, onToggle, navigation, parentNodeId, }: SectionAccordionProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default SectionAccordion;
|
|
17
|
+
//# sourceMappingURL=SectionAccordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAuBjD,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AA0C3E,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,gBAAgB,6FAUnB,qBAAqB,4CAwqBvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
interface SubSectionAccordionProps {
|
|
4
|
+
section: SectionBlock;
|
|
5
|
+
keyPath: string;
|
|
6
|
+
depth?: number;
|
|
7
|
+
columnKey?: "left" | "right";
|
|
8
|
+
parentNodeId?: string;
|
|
9
|
+
sectionOffset?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const SubSectionAccordion: React.FC<SubSectionAccordionProps>;
|
|
12
|
+
export default SubSectionAccordion;
|
|
13
|
+
//# sourceMappingURL=SubSectionAccordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubSectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SubSectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAwB1D,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAE1F,UAAU,wBAAwB;IAChC,OAAO,EAAE,YAAY,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,QAAA,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA6f1D,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SectionBlock, SectionPopupState, StyleVariant } from "../CognitiveCompareTypes";
|
|
3
|
+
type SvgConnectorsProps = {
|
|
4
|
+
svgContainerRef: React.MutableRefObject<SVGSVGElement | null>;
|
|
5
|
+
svgDimensions: {
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
};
|
|
9
|
+
isResizing: boolean;
|
|
10
|
+
overallConnector: {
|
|
11
|
+
x1: number;
|
|
12
|
+
x2: number;
|
|
13
|
+
y: number;
|
|
14
|
+
} | null;
|
|
15
|
+
rootDeviationStyle: {
|
|
16
|
+
badgeBorder: string;
|
|
17
|
+
};
|
|
18
|
+
lines: Record<string, any>[];
|
|
19
|
+
isSideBySide: boolean;
|
|
20
|
+
activeSideBySideSection: number | string | null;
|
|
21
|
+
isArrowVisible: boolean;
|
|
22
|
+
maintainRelativeOrder: boolean | undefined;
|
|
23
|
+
proposedSections: SectionBlock[];
|
|
24
|
+
existingSections: SectionBlock[];
|
|
25
|
+
cognitivePopup: SectionPopupState;
|
|
26
|
+
activeBadgeId: string | null;
|
|
27
|
+
closeCognitivePopup: () => void;
|
|
28
|
+
setActiveBadgeId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
29
|
+
openCognitivePopupFromState: (nextPopup: SectionPopupState) => void;
|
|
30
|
+
buildSectionPopupState: (anchorEl: HTMLElement | null, baseSec: SectionBlock | null, refSec: SectionBlock | null, sectionIdx: number | string, isOrphan?: boolean, style?: StyleVariant | null, rootNode?: boolean) => SectionPopupState;
|
|
31
|
+
connectedLines: Record<string, any>[];
|
|
32
|
+
pathRefs: React.MutableRefObject<Record<string, SVGPathElement | null>>;
|
|
33
|
+
};
|
|
34
|
+
export default function SvgConnectors({ svgContainerRef, svgDimensions, isResizing, overallConnector, rootDeviationStyle, lines, isSideBySide, activeSideBySideSection, isArrowVisible, maintainRelativeOrder, proposedSections, existingSections, cognitivePopup, activeBadgeId, closeCognitivePopup, setActiveBadgeId, openCognitivePopupFromState, buildSectionPopupState, connectedLines, pathRefs, }: SvgConnectorsProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=SvgConnectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SvgConnectors.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveC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M,EAAE,YAAY,GAAG,IAAI,EAC3B,UAAU,EAAE,MAAM,GAAG,MAAM,EAC3B,QAAQ,CAAC,EAAE,OAAO,EAClB,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAC3B,QAAQ,CAAC,EAAE,OAAO,KACf,iBAAiB,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,IAAI,CAAC,CAAC,CAAC;CACzE,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,eAAe,EACf,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,EACL,YAAY,EACZ,uBAAuB,EACvB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,2BAA2B,EAC3B,sBAAsB,EACtB,cAAc,EACd,QAAQ,GACT,EAAE,kBAAkB,2CAkNpB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface ThreeDotsLoaderProps {
|
|
2
|
+
size?: number;
|
|
3
|
+
color?: string;
|
|
4
|
+
gap?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const ThreeDotsLoader: ({ size, color, gap, }: ThreeDotsLoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ThreeDotsLoader;
|
|
8
|
+
//# sourceMappingURL=ThreeDotsLoader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ThreeDotsLoader.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/ThreeDotsLoader.tsx"],"names":[],"mappings":"AAEA,UAAU,oBAAoB;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,QAAA,MAAM,eAAe,0BAIlB,oBAAoB,4CA4BtB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const ConnectedLinesComp: ({ connectedLines, pathRefs, maintainRelativeOrder, }: {
|
|
3
|
+
connectedLines: Record<string, any>[];
|
|
4
|
+
pathRefs: React.MutableRefObject<Record<string, any>>;
|
|
5
|
+
maintainRelativeOrder?: boolean | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ConnectedLinesComp;
|
|
8
|
+
//# sourceMappingURL=connectedLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectedLines.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/connectedLines.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,QAAA,MAAM,kBAAkB;oBAKN,OAAO,MAAM,EAAE,GAAG,CAAC,EAAE;cAC3B,MAAM,gBAAgB,CAAC,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC;;6CA6GtD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const MemoizedMarkdown: React.MemoExoticComponent<({ content, overlayContent, sxStyles, deviationBadges, highlights, maintainRelativeOrder, highlightBg, suppressHighlightBg, collisionKey }: {
|
|
3
|
+
content: string;
|
|
4
|
+
overlayContent?: string | undefined;
|
|
5
|
+
sxStyles: any;
|
|
6
|
+
deviationBadges?: any[] | undefined;
|
|
7
|
+
highlights?: string[] | undefined;
|
|
8
|
+
maintainRelativeOrder?: boolean | undefined;
|
|
9
|
+
highlightBg: string;
|
|
10
|
+
suppressHighlightBg?: boolean | undefined;
|
|
11
|
+
collisionKey?: string | number | undefined;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
13
|
+
//# sourceMappingURL=memoizedMarkdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memoizedMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/memoizedMarkdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoE,MAAM,OAAO,CAAC;AAezF,eAAO,MAAM,gBAAgB;aAWlB,MAAM;;cAEL,GAAG;;;;iBAIA,MAAM;;;8CA4kBpB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
type AccordionStateParams = {
|
|
4
|
+
maintainRelativeOrder: boolean;
|
|
5
|
+
proposedSections: SectionBlock[];
|
|
6
|
+
existingSections: SectionBlock[];
|
|
7
|
+
activeSideBySideSection: number | string | null;
|
|
8
|
+
connectedSections: Set<number | string>;
|
|
9
|
+
resetSideBySide: () => void;
|
|
10
|
+
setConnectedSections: React.Dispatch<React.SetStateAction<Set<number | string>>>;
|
|
11
|
+
setConnectedLines: React.Dispatch<React.SetStateAction<Record<string, any>[]>>;
|
|
12
|
+
cachedConnectedPositions: React.MutableRefObject<any[]>;
|
|
13
|
+
svgContainerRef: React.MutableRefObject<SVGSVGElement | null>;
|
|
14
|
+
isAnimatingRef: React.MutableRefObject<boolean>;
|
|
15
|
+
animationTimerRef: React.MutableRefObject<ReturnType<typeof setTimeout> | null>;
|
|
16
|
+
calculateLinesRef: React.MutableRefObject<() => void>;
|
|
17
|
+
sectionLeftRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
18
|
+
sectionRightRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
19
|
+
subSectionLeftRefs: React.MutableRefObject<Record<string, React.RefObject<HTMLDivElement>>>;
|
|
20
|
+
subSectionRightRefs: React.MutableRefObject<Record<string, React.RefObject<HTMLDivElement>>>;
|
|
21
|
+
};
|
|
22
|
+
export declare const useAccordionState: ({ maintainRelativeOrder, proposedSections, existingSections, activeSideBySideSection, connectedSections, resetSideBySide, setConnectedSections, setConnectedLines, cachedConnectedPositions, svgContainerRef, isAnimatingRef, animationTimerRef, calculateLinesRef, sectionLeftRefs, sectionRightRefs, subSectionLeftRefs, subSectionRightRefs, }: AccordionStateParams) => {
|
|
23
|
+
expandedSections: Record<string, boolean>;
|
|
24
|
+
setExpandedSections: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
25
|
+
expandedSubSections: Record<string, boolean>;
|
|
26
|
+
setExpandedSubSections: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
|
|
27
|
+
handleSubSectionToggle: (keyPath: string) => void;
|
|
28
|
+
toggleSection: (idx: number, columnKey: "left" | "right") => void;
|
|
29
|
+
forceExpandCrossWiredSections: (actionId: string | number | null) => void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=useAccordionState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAccordionState.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useAccordionState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGxD,KAAK,oBAAoB,GAAG;IAC1B,qBAAqB,EAAE,OAAO,CAAC;IAC/B,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,uBAAuB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChD,iBAAiB,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IACxC,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,oBAAoB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC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,GAAG,MAAM,GAAG,IAAI;CAuJpF,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SectionBlock, ProposedRuleData, RuleData, ComparisonConfig } from "../CognitiveCompareTypes";
|
|
2
|
+
export declare const useCognitiveTreeData: (treeData: Record<string, any> | undefined, maintainRelativeOrder: boolean, deviationData: Record<string, any> | null, resolvedComparisonConfig: ComparisonConfig, enableDeviationSchemaBackwardCompatibility?: boolean) => {
|
|
3
|
+
activeProposed: ProposedRuleData;
|
|
4
|
+
activeVariants: never[] | RuleData[];
|
|
5
|
+
existingRule: RuleData;
|
|
6
|
+
proposedSections: SectionBlock[];
|
|
7
|
+
existingSections: SectionBlock[];
|
|
8
|
+
visibleFields: import("../CognitiveCompareTypes").FieldConfigItem[];
|
|
9
|
+
parentDeviationRecord: Record<string, SectionBlock[]>;
|
|
10
|
+
deviationNumberRegistry: Record<string, number>;
|
|
11
|
+
parseError: string | null;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=useCompareData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompareData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAItG,eAAO,MAAM,oBAAoB,aACrB,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,yBAClB,OAAO,iBACf,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,4BACf,gBAAgB,+CACE,OAAO;;;;;;;;;;CAsepD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const useCompareLayout: (initialMaintainOrder: boolean, scrollContainerRef: React.RefObject<HTMLDivElement>, lhsBadgeRefs: any, rhsBadgeRefs: any, proposedSections: any[], existingSections: any[]) => {
|
|
2
|
+
maintainRelativeOrder: boolean;
|
|
3
|
+
setMaintainRelativeOrder: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
4
|
+
isToggling: boolean;
|
|
5
|
+
setIsToggling: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
6
|
+
isSideBySide: boolean;
|
|
7
|
+
setIsSideBySide: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
8
|
+
isSideBySideLoading: boolean;
|
|
9
|
+
setIsSideBySideLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
10
|
+
isArrowVisible: boolean;
|
|
11
|
+
setIsArrowVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
12
|
+
expandedSections: Record<string, boolean>;
|
|
13
|
+
setExpandedSections: import("react").Dispatch<import("react").SetStateAction<Record<string, boolean>>>;
|
|
14
|
+
expandedSubSections: Record<string, boolean>;
|
|
15
|
+
setExpandedSubSections: import("react").Dispatch<import("react").SetStateAction<Record<string, boolean>>>;
|
|
16
|
+
activeSideBySideSection: string | number | null;
|
|
17
|
+
setActiveSideBySideSection: import("react").Dispatch<import("react").SetStateAction<string | number | null>>;
|
|
18
|
+
showDeviationNavigation: Record<string, any>;
|
|
19
|
+
scrollLock: import("react").MutableRefObject<boolean>;
|
|
20
|
+
isSideBySideRef: import("react").MutableRefObject<boolean>;
|
|
21
|
+
activeSideBySideSectionRef: import("react").MutableRefObject<string | number | null>;
|
|
22
|
+
activeSideBySideRightSectionRef: import("react").MutableRefObject<string | number | null>;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=useCompareLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionPopupState, PopupPosition, SummaryPopupState } from "../CognitiveCompareTypes";
|
|
3
|
+
export declare const useComparePopups: (scrollContainerRef: React.RefObject<HTMLDivElement>) => {
|
|
4
|
+
cognitivePopup: SectionPopupState;
|
|
5
|
+
setCognitivePopup: React.Dispatch<React.SetStateAction<SectionPopupState>>;
|
|
6
|
+
moreFunctions: SectionPopupState;
|
|
7
|
+
setMoreFunctions: React.Dispatch<React.SetStateAction<SectionPopupState>>;
|
|
8
|
+
summaryPopup: SummaryPopupState;
|
|
9
|
+
setSummaryPopup: React.Dispatch<React.SetStateAction<SummaryPopupState>>;
|
|
10
|
+
closeSummaryPopup: () => void;
|
|
11
|
+
position: PopupPosition | null;
|
|
12
|
+
setPosition: React.Dispatch<React.SetStateAction<PopupPosition | null>>;
|
|
13
|
+
activeBadgeId: string | null;
|
|
14
|
+
setActiveBadgeId: React.Dispatch<React.SetStateAction<string | null>>;
|
|
15
|
+
popupRef: React.RefObject<HTMLDivElement>;
|
|
16
|
+
closeCognitivePopup: () => void;
|
|
17
|
+
closeMoreFunctionsPopup: () => void;
|
|
18
|
+
recalcPosition: () => void;
|
|
19
|
+
handleOpenCognitiveCompare: () => void;
|
|
20
|
+
openCognitivePopupFromState: (nextPopup: SectionPopupState) => void;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=useComparePopups.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useComparePopups.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useComparePopups.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG/F,eAAO,MAAM,gBAAgB,uBAAwB,MAAM,SAAS,CAAC,cAAc,CAAC;;;;;;;;;;;;;;;;;6CA2GlE,iBAAiB;CAuClC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SectionBlock } from "../CognitiveCompareTypes";
|
|
3
|
+
export type DeviationNavigationEntry = {
|
|
4
|
+
showAbove: boolean;
|
|
5
|
+
showAboveRef: React.RefObject<HTMLDivElement> | null;
|
|
6
|
+
showBelow: boolean;
|
|
7
|
+
showBelowRef: React.RefObject<HTMLDivElement> | null;
|
|
8
|
+
firstDeviationRef: React.RefObject<HTMLDivElement> | null;
|
|
9
|
+
firstDeviationPosition: "above" | "below" | "inside" | null;
|
|
10
|
+
columnKey: "left" | "right";
|
|
11
|
+
};
|
|
12
|
+
type UseDeviationNavigationParams = {
|
|
13
|
+
proposedSections: SectionBlock[];
|
|
14
|
+
existingSections: SectionBlock[];
|
|
15
|
+
parentDeviationRecord: Record<string, SectionBlock[]>;
|
|
16
|
+
expandedSections: Record<string, boolean>;
|
|
17
|
+
maintainRelativeOrder: boolean;
|
|
18
|
+
scrollContainerRef: React.RefObject<HTMLDivElement>;
|
|
19
|
+
leftContainerRef: React.RefObject<HTMLDivElement>;
|
|
20
|
+
rightContainerRef: React.RefObject<HTMLDivElement>;
|
|
21
|
+
lhsBadgeRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
22
|
+
rhsBadgeRefs: React.MutableRefObject<Record<string | number, React.RefObject<HTMLDivElement>>>;
|
|
23
|
+
};
|
|
24
|
+
export declare const useDeviationNavigation: ({ proposedSections, existingSections, parentDeviationRecord, expandedSections, maintainRelativeOrder, scrollContainerRef, leftContainerRef, rightContainerRef, lhsBadgeRefs, rhsBadgeRefs, }: UseDeviationNavigationParams) => {
|
|
25
|
+
showDeviationNavigation: Record<string, DeviationNavigationEntry>;
|
|
26
|
+
showOpenNodeRef: React.MutableRefObject<string | undefined>;
|
|
27
|
+
adjustScrollForPopup: (anchorEl: HTMLElement | null, onComplete: () => void, options?: {
|
|
28
|
+
skipScroll?: boolean;
|
|
29
|
+
}) => void;
|
|
30
|
+
};
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=useDeviationNavigation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDeviationNavigation.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useDeviationNavigation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,MAAM,wBAAwB,GAAG;IACrC,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IACrD,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IACrD,iBAAiB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC;IAC1D,sBAAsB,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC;IAC5D,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B,CAAC;AAEF,KAAK,4BAA4B,GAAG;IAClC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,YAAY,EAAE,CAAC,CAAC;IACtD,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,kBAAkB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACpD,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CA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