@e-llm-studio/citation 0.0.199 → 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.
Files changed (218) hide show
  1. package/README.md +157 -28
  2. package/dist/assests/svg/PdfViewerIcons.js +1 -1
  3. package/dist/assests/svg/SparkleIcon.js +2 -0
  4. package/dist/assests/svg/SparkleIcon.js.map +1 -0
  5. package/dist/cjs/assests/svg/PdfViewerIcons.js +1 -1
  6. package/dist/cjs/assests/svg/SparkleIcon.js +2 -0
  7. package/dist/cjs/assests/svg/SparkleIcon.js.map +1 -0
  8. package/dist/cjs/features/ChatDrawer/ChatDrawer.js +1 -1
  9. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +2 -0
  10. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js.map +1 -0
  11. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js +2 -0
  12. package/dist/cjs/features/CognitiveCompare/CitationRenderer.js.map +1 -0
  13. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +2 -0
  14. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js.map +1 -0
  15. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js +2 -0
  16. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -0
  17. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js +2 -0
  18. package/dist/cjs/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -0
  19. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +2 -0
  20. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -0
  21. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +2 -0
  22. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js.map +1 -0
  23. package/dist/cjs/features/CognitiveCompare/CompareContext.js +2 -0
  24. package/dist/cjs/features/CognitiveCompare/CompareContext.js.map +1 -0
  25. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js +2 -0
  26. package/dist/cjs/features/CognitiveCompare/LoaderComponent.js.map +1 -0
  27. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js +2 -0
  28. package/dist/cjs/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -0
  29. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js +2 -0
  30. package/dist/cjs/features/CognitiveCompare/OverlayComponent.js.map +1 -0
  31. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js +2 -0
  32. package/dist/cjs/features/CognitiveCompare/ResizableSplitPane.js.map +1 -0
  33. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js +2 -0
  34. package/dist/cjs/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -0
  35. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js +2 -0
  36. package/dist/cjs/features/CognitiveCompare/components/CompareHeader.js.map +1 -0
  37. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js +2 -0
  38. package/dist/cjs/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -0
  39. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js +2 -0
  40. package/dist/cjs/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -0
  41. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js +2 -0
  42. package/dist/cjs/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -0
  43. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +2 -0
  44. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js.map +1 -0
  45. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +2 -0
  46. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -0
  47. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +2 -0
  48. package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js.map +1 -0
  49. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js +2 -0
  50. package/dist/cjs/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -0
  51. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js +2 -0
  52. package/dist/cjs/features/CognitiveCompare/components/connectedLines.js.map +1 -0
  53. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +2 -0
  54. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -0
  55. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js +2 -0
  56. package/dist/cjs/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -0
  57. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +2 -0
  58. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js.map +1 -0
  59. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js +2 -0
  60. package/dist/cjs/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -0
  61. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js +2 -0
  62. package/dist/cjs/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -0
  63. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +2 -0
  64. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -0
  65. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js +2 -0
  66. package/dist/cjs/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -0
  67. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js +2 -0
  68. package/dist/cjs/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -0
  69. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +2 -0
  70. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -0
  71. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js +2 -0
  72. package/dist/cjs/features/CognitiveCompare/hooks/useStyles.js.map +1 -0
  73. package/dist/cjs/index.js +1 -1
  74. package/dist/features/ChatDrawer/ChatDrawer.js +1 -1
  75. package/dist/features/CognitiveCompare/CitationAnchor.js +2 -0
  76. package/dist/features/CognitiveCompare/CitationAnchor.js.map +1 -0
  77. package/dist/features/CognitiveCompare/CitationRenderer.js +2 -0
  78. package/dist/features/CognitiveCompare/CitationRenderer.js.map +1 -0
  79. package/dist/features/CognitiveCompare/CognitiveCompare.js +2 -0
  80. package/dist/features/CognitiveCompare/CognitiveCompare.js.map +1 -0
  81. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js +2 -0
  82. package/dist/features/CognitiveCompare/CognitiveCompareConfig.js.map +1 -0
  83. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js +2 -0
  84. package/dist/features/CognitiveCompare/CognitiveCompareConstants.js.map +1 -0
  85. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +2 -0
  86. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js.map +1 -0
  87. package/dist/features/CognitiveCompare/CognitivePopup.js +2 -0
  88. package/dist/features/CognitiveCompare/CognitivePopup.js.map +1 -0
  89. package/dist/features/CognitiveCompare/CompareContext.js +2 -0
  90. package/dist/features/CognitiveCompare/CompareContext.js.map +1 -0
  91. package/dist/features/CognitiveCompare/LoaderComponent.js +2 -0
  92. package/dist/features/CognitiveCompare/LoaderComponent.js.map +1 -0
  93. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js +2 -0
  94. package/dist/features/CognitiveCompare/MoreFunctionsPopup.js.map +1 -0
  95. package/dist/features/CognitiveCompare/OverlayComponent.js +2 -0
  96. package/dist/features/CognitiveCompare/OverlayComponent.js.map +1 -0
  97. package/dist/features/CognitiveCompare/ResizableSplitPane.js +2 -0
  98. package/dist/features/CognitiveCompare/ResizableSplitPane.js.map +1 -0
  99. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js +2 -0
  100. package/dist/features/CognitiveCompare/components/CognitiveSummaryPopup.js.map +1 -0
  101. package/dist/features/CognitiveCompare/components/CompareHeader.js +2 -0
  102. package/dist/features/CognitiveCompare/components/CompareHeader.js.map +1 -0
  103. package/dist/features/CognitiveCompare/components/LHSSectionRow.js +2 -0
  104. package/dist/features/CognitiveCompare/components/LHSSectionRow.js.map +1 -0
  105. package/dist/features/CognitiveCompare/components/RHSSectionRow.js +2 -0
  106. package/dist/features/CognitiveCompare/components/RHSSectionRow.js.map +1 -0
  107. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js +2 -0
  108. package/dist/features/CognitiveCompare/components/ScrollLockToggle.js.map +1 -0
  109. package/dist/features/CognitiveCompare/components/SectionAccordion.js +2 -0
  110. package/dist/features/CognitiveCompare/components/SectionAccordion.js.map +1 -0
  111. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +2 -0
  112. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js.map +1 -0
  113. package/dist/features/CognitiveCompare/components/SvgConnectors.js +2 -0
  114. package/dist/features/CognitiveCompare/components/SvgConnectors.js.map +1 -0
  115. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js +2 -0
  116. package/dist/features/CognitiveCompare/components/ThreeDotsLoader.js.map +1 -0
  117. package/dist/features/CognitiveCompare/components/connectedLines.js +2 -0
  118. package/dist/features/CognitiveCompare/components/connectedLines.js.map +1 -0
  119. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +2 -0
  120. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js.map +1 -0
  121. package/dist/features/CognitiveCompare/hooks/useAccordionState.js +2 -0
  122. package/dist/features/CognitiveCompare/hooks/useAccordionState.js.map +1 -0
  123. package/dist/features/CognitiveCompare/hooks/useCompareData.js +2 -0
  124. package/dist/features/CognitiveCompare/hooks/useCompareData.js.map +1 -0
  125. package/dist/features/CognitiveCompare/hooks/useComparePopups.js +2 -0
  126. package/dist/features/CognitiveCompare/hooks/useComparePopups.js.map +1 -0
  127. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js +2 -0
  128. package/dist/features/CognitiveCompare/hooks/useDeviationNavigation.js.map +1 -0
  129. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +2 -0
  130. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js.map +1 -0
  131. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js +2 -0
  132. package/dist/features/CognitiveCompare/hooks/useResizeHandler.js.map +1 -0
  133. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js +2 -0
  134. package/dist/features/CognitiveCompare/hooks/useSectionRefs.js.map +1 -0
  135. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +2 -0
  136. package/dist/features/CognitiveCompare/hooks/useSideBySide.js.map +1 -0
  137. package/dist/features/CognitiveCompare/hooks/useStyles.js +2 -0
  138. package/dist/features/CognitiveCompare/hooks/useStyles.js.map +1 -0
  139. package/dist/index.js +1 -1
  140. package/dist/types/src/CognitiveCompareTest.d.ts +3 -0
  141. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -0
  142. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
  143. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts +1 -0
  144. package/dist/types/src/assests/svg/PdfViewerIcons.d.ts.map +1 -1
  145. package/dist/types/src/assests/svg/SparkleIcon.d.ts +3 -0
  146. package/dist/types/src/assests/svg/SparkleIcon.d.ts.map +1 -0
  147. package/dist/types/src/features/ChatDrawer/ChatDrawer.d.ts.map +1 -1
  148. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts +27 -0
  149. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -0
  150. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts +11 -0
  151. package/dist/types/src/features/CognitiveCompare/CitationRenderer.d.ts.map +1 -0
  152. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +6 -0
  153. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -0
  154. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts +64 -0
  155. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConfig.d.ts.map +1 -0
  156. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts +11 -0
  157. package/dist/types/src/features/CognitiveCompare/CognitiveCompareConstants.d.ts.map +1 -0
  158. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +282 -0
  159. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -0
  160. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +63 -0
  161. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -0
  162. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts +7 -0
  163. package/dist/types/src/features/CognitiveCompare/CognitivePopup.d.ts.map +1 -0
  164. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts +67 -0
  165. package/dist/types/src/features/CognitiveCompare/CompareContext.d.ts.map +1 -0
  166. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts +3 -0
  167. package/dist/types/src/features/CognitiveCompare/LoaderComponent.d.ts.map +1 -0
  168. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts +17 -0
  169. package/dist/types/src/features/CognitiveCompare/MoreFunctionsPopup.d.ts.map +1 -0
  170. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts +5 -0
  171. package/dist/types/src/features/CognitiveCompare/OverlayComponent.d.ts.map +1 -0
  172. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts +9 -0
  173. package/dist/types/src/features/CognitiveCompare/ResizableSplitPane.d.ts.map +1 -0
  174. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts +3 -0
  175. package/dist/types/src/features/CognitiveCompare/components/CognitiveSummaryPopup.d.ts.map +1 -0
  176. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts +12 -0
  177. package/dist/types/src/features/CognitiveCompare/components/CompareHeader.d.ts.map +1 -0
  178. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts +9 -0
  179. package/dist/types/src/features/CognitiveCompare/components/LHSSectionRow.d.ts.map +1 -0
  180. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts +9 -0
  181. package/dist/types/src/features/CognitiveCompare/components/RHSSectionRow.d.ts.map +1 -0
  182. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts +11 -0
  183. package/dist/types/src/features/CognitiveCompare/components/ScrollLockToggle.d.ts.map +1 -0
  184. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts +17 -0
  185. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -0
  186. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts +13 -0
  187. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -0
  188. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts +36 -0
  189. package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -0
  190. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts +8 -0
  191. package/dist/types/src/features/CognitiveCompare/components/ThreeDotsLoader.d.ts.map +1 -0
  192. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts +8 -0
  193. package/dist/types/src/features/CognitiveCompare/components/connectedLines.d.ts.map +1 -0
  194. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +13 -0
  195. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -0
  196. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts +32 -0
  197. package/dist/types/src/features/CognitiveCompare/hooks/useAccordionState.d.ts.map +1 -0
  198. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +13 -0
  199. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -0
  200. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +24 -0
  201. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -0
  202. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts +22 -0
  203. package/dist/types/src/features/CognitiveCompare/hooks/useComparePopups.d.ts.map +1 -0
  204. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts +32 -0
  205. package/dist/types/src/features/CognitiveCompare/hooks/useDeviationNavigation.d.ts.map +1 -0
  206. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts +27 -0
  207. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -0
  208. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts +5 -0
  209. package/dist/types/src/features/CognitiveCompare/hooks/useResizeHandler.d.ts.map +1 -0
  210. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts +19 -0
  211. package/dist/types/src/features/CognitiveCompare/hooks/useSectionRefs.d.ts.map +1 -0
  212. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts +35 -0
  213. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -0
  214. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts +15 -0
  215. package/dist/types/src/features/CognitiveCompare/hooks/useStyles.d.ts.map +1 -0
  216. package/dist/types/src/index.d.ts +1 -0
  217. package/dist/types/src/index.d.ts.map +1 -1
  218. package/package.json +9 -1
@@ -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/CognitiveCompare/components/SvgConnectors.tsx"],"names":[],"mappings":";AAOA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAgBlC,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAC9D,aAAa,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;Q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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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AM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAC5F,mBAAmB,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;CAC9F,CAAC;AAEF,eAAO,MAAM,iBAAiB,sVAkB3B,oBAAoB;;;;;sCA4EoB,MAAM;yBAUnB,MAAM,aAAa,MAAM,GAAG,OAAO;8CArDF,MAAM,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,wBAA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ChB,MAAM,IAAI,YACZ;QAAE,UAAU,CAAC,EAAE,OAAO,CAAA;KAAE;CA2ErC,CAAC"}
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export declare const useLinesCalculator: ({ containerRef, leftContainerRef, rightContainerRef, svgContainerRef, pathRefs, leftHeaderRef, rightHeaderRef, proposedSections, existingSections, visibleFields, leftRefs, rightRefs, sectionLeftRefs, sectionRightRefs, subSectionLeftRefs, subSectionRightRefs, lhsBadgeRefs, rhsBadgeRefs, sectionRowRefs, expandedSections, expandedSubSections, connectedSections, isSideBySide, activeSideBySideSection, maintainRelativeOrder, cognitiveMap, getSectionCompareStyle, getSubSectionCompareStyle, getDeviationStyleByKey, isArrowVisible, isAnimatingRef, isSideBySideRef, sideBySideCacheRef, sideBySideLineRef, activeSideBySideSectionRef, activeSideBySideRightSectionRef, connectedLines: providedConnectedLines, setConnectedLines: providedSetConnectedLines, cachedConnectedPositions: providedCachedConnectedPositions, calculateLinesRef, resizeTimerRef, scrollLock, scrollSyncLocked, handleResizeRef, activeProposed, existingRule, analysisData, pendingScrollTargetRef, pendingScrollCallbackRef, resolvedComparisonConfig, getFieldData }: any) => {
3
+ lines: Record<string, any>[];
4
+ setLines: import("react").Dispatch<import("react").SetStateAction<Record<string, any>[]>>;
5
+ overallConnector: {
6
+ x1: number;
7
+ x2: number;
8
+ y: number;
9
+ } | null;
10
+ setOverallConnector: import("react").Dispatch<import("react").SetStateAction<{
11
+ x1: number;
12
+ x2: number;
13
+ y: number;
14
+ } | null>>;
15
+ connectedLines: any;
16
+ setConnectedLines: any;
17
+ svgDimensions: {
18
+ width: number;
19
+ height: number;
20
+ };
21
+ cachedConnectedPositions: any;
22
+ calculateLines: () => void;
23
+ calculateLinesRef: any;
24
+ calculateLinesDebounced: () => void;
25
+ handleColumnScroll: (e: any) => void;
26
+ };
27
+ //# sourceMappingURL=useLinesCalculator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useLinesCalculator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,kBAAkB,ogCA0C5B,GAAG;;;;YAG6D,MAAM;YAAM,MAAM;WAAK,MAAM;;;YAA7B,MAAM;YAAM,MAAM;WAAK,MAAM;;;;;eAIhC,MAAM;gBAAU,MAAM;;;;;;4BA6vBrC,GAAG;CAmPnD,CAAA"}
@@ -0,0 +1,5 @@
1
+ export declare const useResizeHandler: ({ timerRef, ruleComponentRef, scrollContainerRef, containerRef, maintainRelativeOrder, proposedSections, existingSections, isSideBySideRef, activeSideBySideSectionRef, activeSideBySideRightSectionRef, sectionRowRefs, sectionRightRowRefs, sectionLeftRefs, sectionRightRefs, subSectionLeftRefs, subSectionRightRefs, lhsBadgeRefs, rhsBadgeRefs, leftContainerRef, rightContainerRef, calculateLinesRef, handleResizeRef: externalHandleResizeRef, setIsResizing, setIsArrowVisible, sideBySideCacheRef, cachedConnectedPositions }: any) => {
2
+ handleResize: () => void;
3
+ handleResizeRef: any;
4
+ };
5
+ //# sourceMappingURL=useResizeHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useResizeHandler.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useResizeHandler.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,6gBA2B1B,GAAG;;;CA6NL,CAAA"}
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { DivRefMap } from "../CognitiveCompareTypes";
3
+ export declare const useSectionRefs: (visibleFieldKeys: string[], sectionCount: number) => {
4
+ leftRefs: React.MutableRefObject<DivRefMap<string>>;
5
+ rightRefs: React.MutableRefObject<DivRefMap<string>>;
6
+ sectionLeftRefs: React.MutableRefObject<DivRefMap<string | number>>;
7
+ sectionRightRefs: React.MutableRefObject<DivRefMap<string | number>>;
8
+ lhsBadgeRefs: React.MutableRefObject<DivRefMap<string | number>>;
9
+ rhsBadgeRefs: React.MutableRefObject<DivRefMap<string | number>>;
10
+ sectionRightRowRefs: React.MutableRefObject<DivRefMap<string | number>>;
11
+ subSectionLeftRefs: React.MutableRefObject<DivRefMap<string>>;
12
+ subSectionRightRefs: React.MutableRefObject<DivRefMap<string>>;
13
+ sectionRowRefs: React.MutableRefObject<DivRefMap<string | number>>;
14
+ getFieldRef: (side: "left" | "right", key: string) => React.RefObject<HTMLDivElement>;
15
+ getSectionRowRef: (idx: string | number) => React.RefObject<HTMLDivElement>;
16
+ getSubSectionRef: (side: "left" | "right", keyPath: string) => React.RefObject<HTMLDivElement>;
17
+ getBadgeRef: (side: "left" | "right", key: string | number) => React.RefObject<HTMLDivElement>;
18
+ };
19
+ //# sourceMappingURL=useSectionRefs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSectionRefs.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useSectionRefs.ts"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAMrD,eAAO,MAAM,cAAc,qBACP,MAAM,EAAE,gBACZ,MAAM;;;;;;;;;;;wBAcX,MAAM,GAAG,OAAO,OAAO,MAAM;4BAkC9B,MAAM,GAAG,MAAM;6BAKd,MAAM,GAAG,OAAO,WAAW,MAAM;wBAYjC,MAAM,GAAG,OAAO,OAAO,MAAM,GAAG,MAAM;CAuBhD,CAAC"}
@@ -0,0 +1,35 @@
1
+ /// <reference types="react" />
2
+ export declare const useSideBySide: ({ maintainRelativeOrder, proposedSections, existingSections, leftContainerRef, rightContainerRef, scrollContainerRef, sectionLeftRefs, sectionRightRefs, subSectionLeftRefs, subSectionRightRefs, lhsBadgeRefs, rhsBadgeRefs, sectionRowRefs, sectionRightRowRefs, rhsTopSpacerRef, rhsBottomSpacerRef, lhsTopSpacerRef, lhsBottomSpacerRef, calculateLinesRef, setConnectedSections, setConnectedLines, cachedConnectedPositions, closeMoreFunctionsPopup, setErrorToast, moreFunctions, closeSummaryPopup, }: any) => {
3
+ isSideBySide: boolean;
4
+ setIsSideBySide: import("react").Dispatch<import("react").SetStateAction<boolean>>;
5
+ isArrowVisible: boolean;
6
+ setIsArrowVisible: import("react").Dispatch<import("react").SetStateAction<boolean>>;
7
+ isResizing: boolean;
8
+ setIsResizing: import("react").Dispatch<import("react").SetStateAction<boolean>>;
9
+ isSideBySideLoading: boolean;
10
+ setIsSideBySideLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
11
+ activeSideBySideSection: string | number | null;
12
+ setActiveSideBySideSection: import("react").Dispatch<import("react").SetStateAction<string | number | null>>;
13
+ scrollLock: import("react").MutableRefObject<boolean>;
14
+ sideBySideCacheRef: import("react").MutableRefObject<{
15
+ badgeScreenY: number;
16
+ initialScrollTop: number;
17
+ leftTop: number;
18
+ leftBottom: number;
19
+ cTop: number;
20
+ } | null>;
21
+ isSideBySideRef: import("react").MutableRefObject<boolean>;
22
+ activeSideBySideSectionRef: import("react").MutableRefObject<string | number | null>;
23
+ activeSideBySideRightSectionRef: import("react").MutableRefObject<string | number | null>;
24
+ sideBySideLineRef: import("react").MutableRefObject<SVGLineElement | null>;
25
+ highlightedClauseRefs: import("react").MutableRefObject<Set<HTMLElement>>;
26
+ clearClauseHighlight: () => void;
27
+ applyAlignmentPadding: (isSub: boolean, idx: any, activeRightIdx: any) => void;
28
+ resetSideBySide: () => void;
29
+ activateSideBySide: (idx: number | string, isOrphan: boolean, options?: {
30
+ toggleIfSame?: boolean | undefined;
31
+ onReady?: (() => void) | undefined;
32
+ sourceSide?: "left" | "right" | undefined;
33
+ } | undefined) => void;
34
+ };
35
+ //# sourceMappingURL=useSideBySide.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSideBySide.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useSideBySide.tsx"],"names":[],"mappings":";AAGA,eAAO,MAAM,aAAa,mfAavB,GAAG;;;;;;;;;;;;;sBASgD,MAAM;0BAAoB,MAAM;iBAAW,MAAM;oBAAc,MAAM;cAAQ,MAAM;;;;;;;;mCAe/F,OAAO,OAAO,GAAG,kBAAkB,GAAG;;8BA2I/D,MAAM,GAAG,MAAM,YACV,OAAO;;yBACmC,IAAI;;;CAiOnE,CAAA"}
@@ -0,0 +1,15 @@
1
+ import { SectionBlock, StyleVariant } from "../CognitiveCompareTypes";
2
+ export declare const useStyleHelpers: ({ proposedSections, existingSections, maintainRelativeOrder, cognitiveMap, deviationData, treeData, resolvedComparisonConfig }: {
3
+ proposedSections: SectionBlock[];
4
+ existingSections: SectionBlock[];
5
+ maintainRelativeOrder: boolean;
6
+ cognitiveMap: any;
7
+ deviationData: any;
8
+ treeData: any;
9
+ resolvedComparisonConfig: any;
10
+ }) => {
11
+ getSectionCompareStyle: (idx: number, side?: "left" | "right") => StyleVariant | null;
12
+ getSubSectionCompareStyle: (keyPath: string) => StyleVariant | null;
13
+ getDeviationStyleByKey: (nodeId: string, deviationKey: string) => StyleVariant | null;
14
+ };
15
+ //# sourceMappingURL=useStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useStyles.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useStyles.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEtE,eAAO,MAAM,eAAe;sBAAuJ,YAAY,EAAE;sBAAoB,YAAY,EAAE;2BAAyB,OAAO;kBAAgB,GAAG;mBAAiB,GAAG;cAAY,GAAG;8BAA4B,GAAG;;kCAE9U,MAAM,SAAQ,MAAM,GAAG,OAAO,KAAY,YAAY,GAAG,IAAI;yCA0DrD,MAAM,KAAG,YAAY,GAAG,IAAI;qCA0D7B,MAAM,gBAAgB,MAAM,KAAG,YAAY,GAAG,IAAI;CA0ClE,CAAA"}
@@ -26,6 +26,7 @@ export { default as ChatDrawer } from "./features/ChatDrawer/ChatDrawer";
26
26
  export type { ChatDrawerProps } from "./features/ChatDrawer/types/ChatDrawer.types";
27
27
  export { FILE_INGESTION_STATUS, SUMMARY_EXPAND_HEIGHT_NUDGE, TRUNCATE_THRESHOLD } from "./features/ChatDrawer/constants/ChatDrawer";
28
28
  export { default as SplitterCitationsComponent } from './features/SplitterCitations/SplitterCitationsComponent';
29
+ export { default as CognitiveCompare } from "./features/CognitiveCompare/CognitiveCompare";
29
30
  export { default as CognitiveInternalgptCoreComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent";
30
31
  export { default as InternalgptReasoningComponent } from "./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent";
31
32
  export { default as TextualGuideLinesComponent } from "./features/TextualGuidelines/TextualGuideLinesComponent";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACnE,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,gDAAgD,CAAC;AAClG,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAC3F,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iFAAiF,CAAC;AACtI,OAAO,EAAE,OAAO,IA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json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/citation",
3
- "version": "0.0.199",
3
+ "version": "0.0.201",
4
4
  "author": "Devesh Patel",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -132,6 +132,11 @@
132
132
  "require": "./dist/cjs/features/SplitterCitations/SplitterCitationsComponent.js",
133
133
  "types": "./dist/types/src/features/SplitterCitations/SplitterCitationsComponent.d.ts"
134
134
  },
135
+ "./CognitiveCompare": {
136
+ "import": "./dist/features/CognitiveCompare/CognitiveCompare.js",
137
+ "require": "./dist/cjs/features/CognitiveCompare/CognitiveCompare.js",
138
+ "types": "./dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts"
139
+ },
135
140
  "./TextualGuideLinesComponent": {
136
141
  "import": "./dist/features/TextualGuidelines/TextualGuideLinesComponent.js",
137
142
  "require": "./dist/cjs/features/TextualGuidelines/TextualGuideLinesComponent.js",
@@ -224,6 +229,9 @@
224
229
  "react-reader": "^2.0.13",
225
230
  "react-router-dom": "5.2.0",
226
231
  "react-scripts": ">=5.0.1",
232
+ "rehype-raw": ">=7.0.0",
233
+ "remark-breaks": ">=4.0.0",
234
+ "remark-gfm": "^3.0.1",
227
235
  "rollup": "2.79.2",
228
236
  "rollup-plugin-babel": "4.4.0",
229
237
  "rollup-plugin-peer-deps-external": "2.2.4",