@viswa-test/test-citation 0.0.377 → 0.0.378

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 (532) hide show
  1. package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
  2. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  4. package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  8. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  9. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  10. package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  11. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  12. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  13. package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  14. package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  15. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  16. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  17. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  18. package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
  19. package/dist/cjs/features/PdfViewer/PdfStyle.js +1 -1
  20. package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
  21. package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js.map +1 -0
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  33. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  34. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
  35. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
  36. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
  37. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
  38. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
  39. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
  40. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
  41. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
  42. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
  43. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
  44. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js +2 -0
  45. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
  46. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  48. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  49. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  50. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  51. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  52. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  53. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  54. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  55. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  56. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  57. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  58. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  59. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  60. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  61. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
  88. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
  89. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  90. package/dist/cjs/features/RequirementAI/utils/exponential-retry.js +2 -0
  91. package/dist/cjs/features/RequirementAI/utils/exponential-retry.js.map +1 -0
  92. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  93. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  94. package/dist/cjs/index.js +1 -1
  95. package/dist/cjs/service/redlineService.js +1 -1
  96. package/dist/cjs/utils/tagHelper.js +1 -1
  97. package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
  98. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  99. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  100. package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
  101. package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
  102. package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
  103. package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
  104. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  105. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  106. package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
  107. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  108. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  109. package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
  110. package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
  111. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  112. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  113. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
  114. package/dist/features/PdfViewer/PdfContainer.js +1 -1
  115. package/dist/features/PdfViewer/PdfStyle.js +1 -1
  116. package/dist/features/PdfViewer/PdfToolbar.js +1 -1
  117. package/dist/features/PdfViewer/PdfViewer.js +1 -1
  118. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  119. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
  120. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
  121. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  122. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  123. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
  124. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
  125. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  126. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
  127. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js.map +1 -0
  128. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  129. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  130. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
  131. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
  132. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
  133. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
  134. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
  135. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
  136. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
  137. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
  138. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
  139. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
  140. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js +2 -0
  141. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
  142. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  143. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
  144. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
  145. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
  146. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
  147. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
  148. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
  149. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
  150. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
  151. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
  152. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
  153. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
  154. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
  155. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
  156. package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
  157. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  158. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  159. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  160. package/dist/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
  161. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
  162. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  163. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  164. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  165. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
  166. package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
  167. package/dist/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
  168. package/dist/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
  169. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  170. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  171. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  172. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
  173. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  174. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  175. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  176. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  177. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  178. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  179. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  180. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  181. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  182. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  183. package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
  184. package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
  185. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  186. package/dist/features/RequirementAI/utils/exponential-retry.js +2 -0
  187. package/dist/features/RequirementAI/utils/exponential-retry.js.map +1 -0
  188. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  189. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  190. package/dist/index.js +1 -1
  191. package/dist/service/redlineService.js +1 -1
  192. package/dist/types/src/CitationAccordionTest.d.ts +1 -0
  193. package/dist/types/src/CitationAccordionTest.d.ts.map +1 -0
  194. package/dist/types/src/MockDeviationSummary.d.ts +1 -0
  195. package/dist/types/src/MockDeviationSummary.d.ts.map +1 -0
  196. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
  197. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  198. package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
  199. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
  200. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  201. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +1 -1
  202. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  203. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +12 -0
  204. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  205. package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -1
  206. package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -1
  207. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +11312 -433
  208. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
  209. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts +33 -0
  210. package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts.map +1 -0
  211. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +14 -1
  212. package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
  213. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  214. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  215. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +2 -1
  216. package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
  217. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -1
  218. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  219. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +1 -0
  220. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  221. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  222. package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
  223. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +1 -0
  224. package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
  225. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  226. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +2 -1
  227. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  228. package/dist/types/src/features/GptWebCitation/types.d.ts +11 -0
  229. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  230. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +2 -0
  231. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -1
  232. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +2 -4
  233. package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +1 -1
  234. package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +1 -1
  235. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts +1 -4
  236. package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
  237. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +2 -19
  238. package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
  239. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
  240. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  241. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts +2 -0
  242. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts.map +1 -0
  243. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  244. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +2 -0
  245. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
  246. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.d.ts +3 -0
  247. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.d.ts.map +1 -0
  248. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +2 -0
  249. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
  250. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/reviewBoundaryLexical.test.d.ts +2 -0
  251. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/reviewBoundaryLexical.test.d.ts.map +1 -0
  252. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts +7 -0
  253. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts.map +1 -0
  254. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +2 -0
  255. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
  256. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts +29 -0
  257. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts.map +1 -0
  258. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.test.d.ts +2 -0
  259. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.test.d.ts.map +1 -0
  260. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +7 -0
  261. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts.map +1 -0
  262. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts +3 -0
  263. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts.map +1 -0
  264. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts +86 -0
  265. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts.map +1 -0
  266. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.test.d.ts +9 -0
  267. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.test.d.ts.map +1 -0
  268. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts +7 -0
  269. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts.map +1 -0
  270. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.d.ts +5 -0
  271. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.d.ts.map +1 -0
  272. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  273. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts +10 -0
  274. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts.map +1 -0
  275. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts +17 -0
  276. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts.map +1 -0
  277. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts +23 -0
  278. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts.map +1 -0
  279. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts +3 -0
  280. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts.map +1 -0
  281. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
  282. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -1
  283. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  284. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +84 -5439
  285. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -1
  286. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -1
  287. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  288. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +1 -1
  289. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
  290. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +2 -2
  291. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  292. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +20 -2
  293. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  294. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts +7 -2
  295. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts.map +1 -1
  296. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.d.ts.map +1 -1
  297. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts +15 -1
  298. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts.map +1 -1
  299. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts +2 -1
  300. package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts.map +1 -1
  301. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +3 -2
  302. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  303. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
  304. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +1 -0
  305. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
  306. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +1 -0
  307. package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -1
  308. package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
  309. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts +12 -0
  310. package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts.map +1 -0
  311. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +3 -2
  312. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
  313. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
  314. package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
  315. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +3 -1
  316. package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
  317. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +2 -1
  318. package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
  319. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +1 -0
  320. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -1
  321. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +2 -0
  322. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  323. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -1
  324. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  325. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  326. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  327. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts +9 -0
  328. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts.map +1 -0
  329. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts +1 -1
  330. package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
  331. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
  332. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  333. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +7 -0
  334. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  335. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -1
  336. package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
  337. package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts +12 -0
  338. package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts.map +1 -0
  339. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts +2 -0
  340. package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -1
  341. package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
  342. package/dist/types/src/index.d.ts +0 -4
  343. package/dist/types/src/index.d.ts.map +1 -1
  344. package/dist/types/src/service/redlineService.d.ts.map +1 -1
  345. package/dist/types/src/utils/tagHelper.d.ts +9 -0
  346. package/dist/types/src/utils/tagHelper.d.ts.map +1 -1
  347. package/dist/utils/tagHelper.js +1 -1
  348. package/package.json +1 -1
  349. package/dist/assests/icons/InfoAlert.js +0 -2
  350. package/dist/assests/icons/InfoAlert.js.map +0 -1
  351. package/dist/cjs/assests/icons/InfoAlert.js +0 -2
  352. package/dist/cjs/assests/icons/InfoAlert.js.map +0 -1
  353. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  354. package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  355. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  356. package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  357. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  358. package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  359. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  360. package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  361. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  362. package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  363. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  364. package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  365. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  366. package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  367. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  368. package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  369. package/dist/cjs/features/PdfViewer/rotationManager.js +0 -2
  370. package/dist/cjs/features/PdfViewer/rotationManager.js.map +0 -1
  371. package/dist/cjs/features/ReviewPanel/ReviewPanel.js +0 -2
  372. package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +0 -1
  373. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +0 -2
  374. package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
  375. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +0 -2
  376. package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
  377. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
  378. package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
  379. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
  380. package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
  381. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
  382. package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
  383. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
  384. package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
  385. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +0 -2
  386. package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
  387. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +0 -2
  388. package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +0 -1
  389. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +0 -2
  390. package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +0 -1
  391. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
  392. package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
  393. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
  394. package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
  395. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
  396. package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
  397. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +0 -2
  398. package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
  399. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
  400. package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
  401. package/dist/cjs/features/SegmentReviewComponents/helper.js +0 -2
  402. package/dist/cjs/features/SegmentReviewComponents/helper.js.map +0 -1
  403. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
  404. package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
  405. package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
  406. package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
  407. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
  408. package/dist/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
  409. package/dist/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
  410. package/dist/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
  411. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
  412. package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
  413. package/dist/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
  414. package/dist/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
  415. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
  416. package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
  417. package/dist/features/PdfViewer/nyc-components/infoAlert.js +0 -2
  418. package/dist/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
  419. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
  420. package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
  421. package/dist/features/PdfViewer/rotationManager.js +0 -2
  422. package/dist/features/PdfViewer/rotationManager.js.map +0 -1
  423. package/dist/features/ReviewPanel/ReviewPanel.js +0 -2
  424. package/dist/features/ReviewPanel/ReviewPanel.js.map +0 -1
  425. package/dist/features/SegmentReviewComponents/BoundaryCard.js +0 -2
  426. package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
  427. package/dist/features/SegmentReviewComponents/CardWrapper.js +0 -2
  428. package/dist/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
  429. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
  430. package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
  431. package/dist/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
  432. package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
  433. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
  434. package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
  435. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
  436. package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
  437. package/dist/features/SegmentReviewComponents/LabelCheck.js +0 -2
  438. package/dist/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
  439. package/dist/features/SegmentReviewComponents/PageCheck.js +0 -2
  440. package/dist/features/SegmentReviewComponents/PageCheck.js.map +0 -1
  441. package/dist/features/SegmentReviewComponents/RevertCard.js +0 -2
  442. package/dist/features/SegmentReviewComponents/RevertCard.js.map +0 -1
  443. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
  444. package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
  445. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
  446. package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
  447. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
  448. package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
  449. package/dist/features/SegmentReviewComponents/ReviewedCard.js +0 -2
  450. package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
  451. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
  452. package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
  453. package/dist/features/SegmentReviewComponents/helper.js +0 -2
  454. package/dist/features/SegmentReviewComponents/helper.js.map +0 -1
  455. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
  456. package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
  457. package/dist/types/src/RedlineApprovalCardTest.d.ts +0 -1
  458. package/dist/types/src/RedlineApprovalCardTest.d.ts.map +0 -1
  459. package/dist/types/src/RedlineEditorTest2.d.ts +0 -3
  460. package/dist/types/src/RedlineEditorTest2.d.ts.map +0 -1
  461. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
  462. package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
  463. package/dist/types/src/assests/icons/InfoAlert.d.ts +0 -3
  464. package/dist/types/src/assests/icons/InfoAlert.d.ts.map +0 -1
  465. package/dist/types/src/commonConstants.d.ts +0 -31103
  466. package/dist/types/src/commonConstants.d.ts.map +0 -1
  467. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts +0 -2
  468. package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts.map +0 -1
  469. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -128
  470. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
  471. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -13
  472. package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
  473. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts +0 -41
  474. package/dist/types/src/features/PdfViewer/coordinateTransformer.d.ts.map +0 -1
  475. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts +0 -59
  476. package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts.map +0 -1
  477. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts +0 -19
  478. package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts.map +0 -1
  479. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts +0 -3
  480. package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts.map +0 -1
  481. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts +0 -77
  482. package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts.map +0 -1
  483. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts +0 -47
  484. package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts.map +0 -1
  485. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts +0 -15
  486. package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts.map +0 -1
  487. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts +0 -3
  488. package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts.map +0 -1
  489. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts +0 -36
  490. package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts.map +0 -1
  491. package/dist/types/src/features/PdfViewer/rotationManager.d.ts +0 -23
  492. package/dist/types/src/features/PdfViewer/rotationManager.d.ts.map +0 -1
  493. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -85
  494. package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +0 -1
  495. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +0 -26
  496. package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +0 -1
  497. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
  498. package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
  499. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +0 -3
  500. package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +0 -1
  501. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +0 -33
  502. package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +0 -1
  503. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +0 -7
  504. package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +0 -1
  505. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +0 -87
  506. package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +0 -1
  507. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -51
  508. package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +0 -1
  509. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
  510. package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
  511. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
  512. package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
  513. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
  514. package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
  515. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +0 -17
  516. package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +0 -1
  517. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +0 -33
  518. package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +0 -1
  519. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +0 -124
  520. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +0 -1
  521. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +0 -13
  522. package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +0 -1
  523. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +0 -53
  524. package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +0 -1
  525. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts +0 -2
  526. package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts.map +0 -1
  527. package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -23
  528. package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +0 -1
  529. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +0 -242
  530. package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +0 -1
  531. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts +0 -2
  532. package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
@@ -1,2 +1,2 @@
1
- import{jsx as e,Fragment as n,jsxs as i}from"react/jsx-runtime";import o,{createContext as t,useRef as l,useState as r,useCallback as d,useMemo as a,useEffect as s,useContext as c}from"react";import u from"react-markdown";import p from"rehype-raw";import g from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as h}from"../../shared/useMarkdownSearch.js";import{Info as v}from"lucide-react";import{Tooltip as m}from"@mui/material";import C from"dompurify";import f from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import w from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as I}from"../RequirementAIWrapper/RequirementAIWrapper.js";import S from"../../icons/CognitiveDecision.js";import b from"../../icons/BrainRed.js";import R,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as $}from"../ai-reasoning/AiReasoningCitation.js";import x from"../../icons/RelevanceScoreIcon.js";import N from"../RecommendationBlock/RecommendationBlock.js";import k from"../UserStoryCard/AttachedContext.js";import A from"../ai-reasoning/AiReasoningCitationContent.js";import j from"./components/InlineUpdatedComponent.js";import U from"../segment/SegmentWrapper.js";import{MarkdownContextProvider as E}from"../../store/markdown-context.js";import L from"./components/InlineManualComponent.js";import M from"./components/HighlightButtonComponent.js";import{escapeTagIds as T,splitTagAcrossParagraphs as P}from"../../../../utils/tagHelper.js";const D=t(!1),_=t({expandedInfo:null,setExpanded:()=>{},reasonToRow:{current:new Map}}),H=t({rowId:""}),F=({aiReason:n,isHighConfidence:o,customStyle:t,customIcons:l})=>{var r;const{expandedInfo:d,setExpanded:a,reasonToRow:s}=c(_),{rowId:u}=c(H),p=String(n.id);u&&s.current.set(p,u);const h=(null===(r=null==d?void 0:d.aiReason)||void 0===r?void 0:r.id)===n.id,v=o?(null==l?void 0:l.highConfidence)||e(S,{}):(null==l?void 0:l.lowConfidence)||e(b,{});return i("button",{className:g.aiReasoningButton,style:t,onClick:e=>{e.stopPropagation(),e.preventDefault(),a(h?null:u,h?null:n)},children:[v,e("i",h?{className:`pi pi-angle-up ${o?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence}`}:{className:`pi pi-angle-down ${o?g.aiReasoningIconHighConfidence:g.aiReasoningIconLowConfidence}`})]})},B=({children:n,node:o,customStyles:t,customIcons:r})=>{var d,a;const s=l(Math.random().toString(36).slice(2)).current,{expandedInfo:u}=c(_),p=(null==u?void 0:u.rowId)===s,h=Array.isArray(null==o?void 0:o.children)?o.children.filter(e=>"element"===e.type).length:1,v=null!==(a=null===(d=null==o?void 0:o.properties)||void 0===d?void 0:d.style)&&void 0!==a?a:void 0;return i(H.Provider,{value:{rowId:s},children:[e("tr",{style:v?{cssText:v}:void 0,children:n}),p&&(null==u?void 0:u.aiReason)&&e("tr",{style:{width:"100%"},children:e("td",{colSpan:h||1,className:g.tableExpandedCell,children:e("div",{className:g.tableExpandedCellInner,children:e("div",{className:g.tableExpandedCellContent,children:e(A,{aiReason:u.aiReason,customIcons:r,customStyles:{aiReasoningContent:null==t?void 0:t.aiReasoningContent,aiReasoningAccordion:null==t?void 0:t.aiReasoningAccordion,aiReasoningMarkdown:null==t?void 0:t.aiReasoningMarkdown,aiReasoningPill:null==t?void 0:t.aiReasoningPill,webCitation:null==t?void 0:t.webCitation,stormeeCitation:null==t?void 0:t.stormeeCitation,waveformCitation:null==t?void 0:t.waveformCitation,imageCitation:null==t?void 0:t.imageCitation,fileCitation:null==t?void 0:t.fileCitation,appModCitation:null==t?void 0:t.appModCitation,rcaCitation:null==t?void 0:t.rcaCitation,readFileCitation:null==t?void 0:t.readFileCitation,loadingCitations:null==t?void 0:t.loadingCitations,chatCitation:null==t?void 0:t.chatCitation}})})})})})]})};const W=["del","ins"];function O(e){return function(e,n,i){const o=n.join("|");return e.replace(new RegExp(`<(${o})>([\\s\\S]*?)<\\/\\1>`,"gi"),(e,n,o)=>`<${n}>${i(o)}</${n}>`)}(e,W,e=>e.split(/(<[^>]+>)/g).map(e=>!e||/^<[^>]+>$/.test(e)?e:function(e){if(!e)return e;const n=[];return e.replace(/`([^`\n]+)`/g,(e,i)=>`@@CODE_SPAN_${n.push(i)-1}@@`).replace(/\*\*([\s\S]+?)\*\*/g,"<strong>$1</strong>").replace(/__([\s\S]+?)__/g,"<strong>$1</strong>").replace(/@@CODE_SPAN_(\d+)@@/g,(e,i)=>{var o;return`<code>${t=null!==(o=n[Number(i)])&&void 0!==o?o:"",t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}</code>`;var t})}(e)).join(""))}const V=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function q(e,n){const i=[],t=new Set(n.map(e=>e.toLowerCase())),l=e=>{var n,r;try{if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return e;if(Array.isArray(e))return e.map(e=>l(e)).flat().filter(e=>null!=e);if(!o.isValidElement(e))return e;const d="string"==typeof e.type?e.type.toLowerCase():"";if(t.has(d))return i.push(e),null;if(V.has(d))return e;const a=null===(r=o.Children.map(null===(n=e.props)||void 0===n?void 0:n.children,l))||void 0===r?void 0:r.flat().filter(e=>null!=e);return a&&0!==a.length?o.cloneElement(e,void 0,a):null}catch(n){return console.error("splitNestedDiffNodes failed while processing node:",n),e}};try{return{cleanedChildren:l(e),extractedNodes:i}}catch(n){return console.error("splitNestedDiffNodes failed:",n),{cleanedChildren:e,extractedNodes:[]}}}const z=({message:t,noMarkdownContent:S,useMarkdown:b=!0,isParent:A,scenario:H,showUserStoryDiff:W=!1,aiReasoningsForBlock:V,isCitationLoadingDisplay:z=!1,className:G,highConfidenceIcon:Q,lowConfidenceIcon:J,customStyles:K,customIcons:X,contextVariant:Y,aiReasoningDiffView:Z,userStoryCitations:ee,artifactId:ne,isCraflow:ie,onCraAccept:oe,onCraReject:te,craFlowConfig:le,isDisplayHighlightControl:re=!1,showConfidenceScore:de=!0,CDNeededInChip:ae,blockId:se,showWaitingIconInChip:ce})=>{var ue;console.log("userstorywithcitation blockid ",se);const pe=l(null),{userStory:ge,inlineUpdateComponentConfig:he,getAvgScoreForStory:ve,setUserStory:me,aiReasoning:Ce,setAiReasoning:fe,customIcons:ye,searchQueryList:we,searchQueryReasoningIdList:Ie,currentHighlightIndex:Se,segmentComponentConfig:be,inlineManualComponentConfig:Re,diffEditConfig:$e}=I(),xe=null!=X?X:null==ye?void 0:ye.userStoryIcons;null==K||K.searchHighlight;const{search:Ne,clear:ke}=h(pe),[Ae,je]=r("1"),[Ue,Ee]=r(null),Le=l(new Map),[Me,Te]=r(new Set),Pe=d((e,n)=>{Ee(e&&n?{rowId:e,aiReason:n}:null)},[]),De=ne?ve(ne):0,[_e,He]=r([]),Fe=d(e=>{Te(n=>{const i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i})},[]),Be=e=>null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(Be).join(""):o.isValidElement(e)?Be(e.props.children):"",We=e=>{let n=e;return n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,(e,n)=>`<deleted>${n.replace(/ai_reasoning\$(\d+)/g,(e,n)=>`ai_reasoning$${n}-legacy`)}</deleted>`),n=n.replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,(e,n,i)=>`\n\n<generatedCode${n} data-raw="${btoa(encodeURIComponent(i.trim()))}"></generatedCode>\n\n`),n=n.replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2"),n=n.replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,(e,n,i,o,t)=>{const l=o.match(/<table[\s\S]*?<\/table>/i);if(l){return`<segment${i} data-table="${btoa(encodeURIComponent(l[0]))}"></segment>`}return e}),n=n.replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,(e,n,i)=>{if(/<table[\s>]/i.test(i)){return`<updatedsegment${n} data-raw="${btoa(encodeURIComponent(i))}"></updatedsegment>`}return e}),n=n.replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,(e,i,o,t)=>{const l=n.substring(0,t),r=l.lastIndexOf("\n"),d=/^\s+[-*]\s/.test(l.substring(r+1))||/^\s+\d+\.\s/.test(l.substring(r+1)),a=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(r+1));if(d||a){let e=o;return e=e.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n"),e=e.replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n"),e=e.replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),e=e.replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),`<updated${i}>${e}</updated>`}return e}),n=function(e){const n=/<updated[^>]*>[\s\S]*?<\/updated>/gi,i=[];let o;const t=new RegExp(n.source,n.flags);for(;null!==(o=t.exec(e));){const e=o[0],n=e.match(/<deleted>([\s\S]*?)<\/deleted>/i),t=e.match(/<changed>([\s\S]*?)<\/changed>/i),l=e=>(e.match(/^\s*\d+\.\s/gm)||[]).length;i.push({index:o.index,endIndex:o.index+o[0].length,deletedItemCount:l((null==n?void 0:n[1])||""),changedItemCount:l((null==t?void 0:t[1])||"")})}if(0===i.length)return e;let l=e;for(let e=i.length-1;e>=0;e--){const n=i[e],o=n.changedItemCount-n.deletedItemCount;if(0===o)continue;const t=l.substring(0,n.index).split("\n").reverse();let r=!1;for(const e of t){const n=e.trim();if(""!==n){/^\d+\.\s/.test(n)&&(r=!0);break}}if(!r)continue;const d=n.endIndex,a=e+1<i.length?i[e+1].index:l.length;let s=l.substring(d,a);s=s.replace(/^(\s*)(\d+)\.\s/gm,(e,n,i)=>`${n}${parseInt(i,10)+o}. `),l=l.substring(0,d)+s+l.substring(a)}return l}(n),n=function(e){let n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,(e,n)=>{const i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),`<deleted>${i}</deleted>`});return n=n.replace(/<changed>([\s\S]*?)<\/changed>/gi,(e,n)=>{const i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),`<changed>${i}</changed>`}),n}(n),n=O(n),n},Oe=a(()=>t?We(t):t,[t]);s(()=>{He(V||Ce)},[V,Ce]);const Ve=a(()=>({span:({node:n,children:i,...o})=>{var t,l,r,d,a;const s=null!==(l=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t["highlight-id"])&&void 0!==l?l:null==o?void 0:o["highlight-id"],c="string"==typeof s&&Me.has(s),u=null!==(d=null===(r=null==n?void 0:n.properties)||void 0===r?void 0:r["highlight-color"])&&void 0!==d?d:null==o?void 0:o["highlight-color"];return e("span",{style:{...null!==(a=null==K?void 0:K.span)&&void 0!==a?a:{},...c?{backgroundColor:u||"#fef08a"}:{}},children:i})},button:({node:i,children:o,...t})=>{var l,r,d,a,s,c;const u=null!==(r=null===(l=null==i?void 0:i.properties)||void 0===l?void 0:l.action)&&void 0!==r?r:null==t?void 0:t.action,p=null!==(a=null===(d=null==i?void 0:i.properties)||void 0===d?void 0:d["highlight-id"])&&void 0!==a?a:null==t?void 0:t["highlight-id"],g=null!==(c=null===(s=null==i?void 0:i.properties)||void 0===s?void 0:s["highlight-type"])&&void 0!==c?c:null==t?void 0:t["highlight-type"];return"highlight"===u?e(M,{highlightId:p,handleHighlightSpan:Fe,icon:"web"===g?null==xe?void 0:xe.webCitationIcon:"doc"===g?null==xe?void 0:xe.fileCitationIcon:e(n,{}),customStyles:"web"===g?null==K?void 0:K.webButton:"doc"===g?null==K?void 0:K.docButton:{}}):null},upt:({node:i,children:o,...t})=>{var l,r;const d=null==t?void 0:t.id,a=d?null===(r=null===(l=d.split("$"))||void 0===l?void 0:l[1])||void 0===r?void 0:r.replaceAll("@","<").replaceAll("#",">"):null,s=Ce.find(e=>e.id.toString()===a);if(!s)return o||e(n,{});const c="data-main"in t,u=t["data-status"];return e(n,{children:e(j,{aiReason:s,customStyles:null==K?void 0:K.inlineUpdatedComponent,handleClickCognitiveDecision:null==he?void 0:he.handleClickCognitiveDecision,handleClickUpdatedPill:null==he?void 0:he.handleClickUpdatedPill,handleClickOutputValue:null==he?void 0:he.handleClickOutputValue,customIcons:null==he?void 0:he.customIcons,CDNeededInChip:ae,showWaitingIconInChip:ce,showChip:c,status:u,children:o||e(n,{})})})},del:({node:o,children:t,...l})=>{var r;const{cleanedChildren:d,extractedNodes:a}=q(t,["ins"]);return i(n,{children:[e("span",{className:g.deleted,style:null!==(r=null==K?void 0:K.deleted)&&void 0!==r?r:{},...l,onClick:()=>{l.onclick&&l.onclick()},children:d}),a]})},ins:({children:o,...t})=>{var l;const{cleanedChildren:r,extractedNodes:d}=q(o,["del"]);return i(n,{children:[e("span",{className:g.inserted,style:null!==(l=null==K?void 0:K.inserted)&&void 0!==l?l:{},...t,onClick:()=>{t.onclick&&t.onclick()},children:r}),d]})},preserved:({children:n,...i})=>e("span",{className:g.preserved,style:null==K?void 0:K.preserved,...i,children:n}),manual:({children:i,...o})=>{var t;const l=null===(t=null==o?void 0:o.id)||void 0===t?void 0:t.replaceAll("@","<").replaceAll("#",">"),r=Ce.find(e=>e.id.toString()===l),d=o["data-status"];return r?e(L,{aiReason:r,handleClick:null==Re?void 0:Re.handleClick,status:d,children:i}):i||e(n,{})},invisible:({children:i,...o})=>e(n,{}),h1:({node:n,...i})=>e("h1",{className:g.heading1,style:null==K?void 0:K.heading1,children:i.children}),h2:({node:n,...i})=>e("h2",{className:g.heading2,style:null==K?void 0:K.heading2,children:i.children}),h3:({node:n,...i})=>e("h3",{className:g.heading3,style:null==K?void 0:K.heading3,children:i.children}),b:({node:n,...i})=>e("b",{className:g.bold,style:null==K?void 0:K.bold,children:null==i?void 0:i.children}),p:({node:n,...i})=>e("p",{...i,className:g.paragraph,style:null==K?void 0:K.paragraph,children:i.children}),updated:({node:n,...i})=>e(f,{...i,showUserStoryDiff:W,currentUpdatedTagId:Ae,setCurrentUpdatedTagId:je,userStory:ge,setUserStory:me,setAiReasoning:fe,node:n,isCraflow:ie,onCraAccept:oe,onCraReject:te,diffEditConfig:$e,customStyles:null==K?void 0:K.updatedContent,craFlowConfig:le}),ol:({node:n,...i})=>{var o,t,l;const r=null!==(l=null!==(t=null===(o=null==n?void 0:n.properties)||void 0===o?void 0:o.start)&&void 0!==t?t:null==i?void 0:i.start)&&void 0!==l?l:void 0;return e("ol",{className:g.orderedList,style:null==K?void 0:K.olist,...r?{start:Number(r)}:{},children:null==i?void 0:i.children})},ul:({node:n,...i})=>e("ul",{className:g.unorderedList,style:null==K?void 0:K.ulist,children:null==i?void 0:i.children}),table:({children:n})=>e("div",{className:g.tableWrapper,children:e("table",{className:g.table,style:null==K?void 0:K.table,children:n})}),tr:({node:n,children:i})=>e(B,{node:n,children:i,customStyles:K}),td:({node:n,children:i})=>{var o;const{style:t,...l}=null!==(o=null==n?void 0:n.properties)&&void 0!==o?o:{};return e(D.Provider,{value:!0,children:e("td",{...l,style:t?{cssText:t}:void 0,children:i})})},th:({node:n,children:i})=>{var o;const{style:t,...l}=null!==(o=null==n?void 0:n.properties)&&void 0!==o?o:{};return e(D.Provider,{value:!0,children:e("th",{...l,style:t?{cssText:t}:void 0,children:i})})},recommendation:({node:n,...i})=>{var o;const t=`The AI has selected this content based on: ${(null===(o=null==i?void 0:i.children)||void 0===o?void 0:o[0])||""}`;return e(N,{...i,customStyles:null==K?void 0:K.recommendationBlock,label:t})},a:({inline:n,children:i,node:o,...t})=>{var l,r,d;const a=c(D)||"true"==(null==t?void 0:t.table),s=`${null==t?void 0:t.href}`,u=null===(l=s.split("$"))||void 0===l?void 0:l[0],p=null===(r=s.split("$"))||void 0===r?void 0:r[1];if("ai_reasoning"===u){const n=(null!==(d=W?Z:Ce)&&void 0!==d?d:[]).find(e=>e.id.toString()===decodeURIComponent(p)),o=Ie.includes(p);if(n){if(a)return e(F,{aiReason:n,customStyle:null==K?void 0:K.tableAiReasoning,customIcons:xe,isHighConfidence:n.relevance_score>=$});const t=Be(i),l="source"!==t.trim().toLowerCase();return e(R,{aiReason:n,isSourceHasHighlight:o,inlineLabel:t,isInlineCitation:l,customIcons:xe,customStyles:{aiReasoningContent:null==K?void 0:K.aiReasoningContent,aiReasoningAccordion:null==K?void 0:K.aiReasoningAccordion,aiReasoningMarkdown:null==K?void 0:K.aiReasoningMarkdown,aiReasoningPill:null==K?void 0:K.aiReasoningPill,webCitation:null==K?void 0:K.webCitation,stormeeCitation:null==K?void 0:K.stormeeCitation,waveformCitation:null==K?void 0:K.waveformCitation,imageCitation:null==K?void 0:K.imageCitation,fileCitation:null==K?void 0:K.fileCitation,appModCitation:null==K?void 0:K.appModCitation,rcaCitation:null==K?void 0:K.rcaCitation,readFileCitation:null==K?void 0:K.readFileCitation,loadingCitations:null==K?void 0:K.loadingCitations,chatCitation:null==K?void 0:K.chatCitation,bigEnoughCitation:null==K?void 0:K.bigEnoughCitation}})}}return null},code:({inline:n,children:i,className:o,node:t,...l})=>/language-(\w+)/.exec(o||"")||(null==o?void 0:o.includes("language-"))?e("div",{children:e("code",{className:g.blockCode,style:null==K?void 0:K.code,children:i})}):e("code",{className:g.inlineCode,style:null==K?void 0:K.code,children:i}),learned:({children:n})=>e(m,{title:n,placement:"top",children:e(v,{size:16,className:g.learned})}),generatedcode:({node:n,...i})=>{const o=(null==i?void 0:i.language)||"python",t=(e=>{let n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{const i=e=>{var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n})(i);return e(y,{title:"Generated Code",code:t,language:o,customStyles:{pill:null==K?void 0:K.generatedCodePill,content:null==K?void 0:K.generatedCodeContent}})},updatedsegment:({node:n,children:i,...o})=>{var t,l,r,d;const a=`${null===(t=n.position)||void 0===t?void 0:t.start.line}-${null===(l=n.position)||void 0===l?void 0:l.start.column}-${null===(r=n.position)||void 0===r?void 0:r.end.line}-${null===(d=n.position)||void 0===d?void 0:d.end.column}`,s=(e=>{if(!e["data-raw"])return null;try{return decodeURIComponent(atob(e["data-raw"]))}catch(e){return console.error("Error decoding segment raw content:",e),null}})(o),c=e("div",s?{dangerouslySetInnerHTML:{__html:C.sanitize(s)}}:{children:i});return e(U,{id:a,node:n,children:c,props:o,segmentComponentConfig:be,customStyles:K,customIcons:X,extractText:Be,isUpdatedSegment:!0})},segment:({node:n,children:i,...o})=>{var t,l,r,d;const a=`${null===(t=n.position)||void 0===t?void 0:t.start.line}-${null===(l=n.position)||void 0===l?void 0:l.start.column}-${null===(r=n.position)||void 0===r?void 0:r.end.line}-${null===(d=n.position)||void 0===d?void 0:d.end.column}`;return e(U,{id:a,node:n,children:i,props:o,segmentComponentConfig:be,customStyles:K,customIcons:X,extractText:Be,blockId:se})}}),[_e,le,Ce,ee,Ae,W,t,X,we,Ie,K,be,Me,Fe,se]),qe=a(()=>{let e=T(Oe,["manual","upt"]);return["del","ins","preserved","manual","upt"].forEach(n=>{e=P(e,n,"upt"===n)}),e},[Oe]);return s(()=>{if(!pe.current)return;if(!we.length)return void ke();let e;if(0===Ie.length||re)requestAnimationFrame(()=>{Ne([we[Se].replace(/\*/g,"")])});else{const n=pe.current,i=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{i.disconnect(),requestAnimationFrame(()=>{Ne([we[Se].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return()=>{clearTimeout(e)}},[we,Ie,Se,re]),e(_.Provider,{value:{expandedInfo:Ue,setExpanded:Pe,reasonToRow:Le},children:i("div",{ref:pe,className:`${g.container} ${"approving"!==H?g.wrapper:""} ${G||""}`,style:null==K?void 0:K.container,children:[b?e(E,{children:e(u,{components:Ve,rehypePlugins:[p],children:qe})}):S,De>0&&de&&e("div",{className:g.confidenceScoreContainer,style:null==K?void 0:K.confidenceScoreContainer,children:i("span",{className:g.confidenceScore,style:null==K?void 0:K.confidenceScore,children:[e(x,{size:14,color:(null==K?void 0:K.confidenceScoreIconColor)||"#166534"}),De,"%"]})}),z&&e("div",{className:g.citationLoader,style:null==K?void 0:K.citationLoaderContainer,children:e(w,{customStyles:{container:null==K?void 0:K.citationLoadingContainer,icon:null==K?void 0:K.citationLoadingIcon,text:null==K?void 0:K.citationLoadingText}})}),A&&e("div",{style:{...null===(ue=null==K?void 0:K.attachedContext)||void 0===ue?void 0:ue.wrapper},className:"flex mt-5",children:e(k,{customStyles:null==K?void 0:K.attachedContext,variant:Y})})]})})};export{z as default,q as splitNestedDiffNodes};
1
+ import{jsx as e,Fragment as n,jsxs as i}from"react/jsx-runtime";import t,{createContext as o,useRef as l,useState as r,useCallback as d,useMemo as a,useEffect as s,useContext as c}from"react";import u from"react-markdown";import p from"rehype-raw";import h from"./UserStoryWithCitation.module.css.js";import{useMarkdownSearch as g}from"../../shared/useMarkdownSearch.js";import{Info as m}from"lucide-react";import{Tooltip as v}from"@mui/material";import f from"dompurify";import C from"../../shared/UpdatedAnimationContent.js";import y from"../../shared/GeneratedCodeCitation.js";import w from"../../shared/CitationLoadingIndicator.js";import{useRequirementAI as b}from"../RequirementAIWrapper/RequirementAIWrapper.js";import I from"../../icons/CognitiveDecision.js";import S from"../../icons/BrainRed.js";import R,{SHOW_CONFIDENCE_SCORE_THRESHOLD_IN_AI_REASONING as $}from"../ai-reasoning/AiReasoningCitation.js";import x from"../../icons/RelevanceScoreIcon.js";import k from"../RecommendationBlock/RecommendationBlock.js";import N from"../UserStoryCard/AttachedContext.js";import A from"../ai-reasoning/AiReasoningCitationContent.js";import j from"./components/InlineUpdatedComponent.js";import L from"../segment/SegmentWrapper.js";import{MarkdownContextProvider as U}from"../../store/markdown-context.js";import E from"./components/InlineManualComponent.js";import{convertInlineMarkdownToHtml as M}from"./utils/inlineMarkdown.js";import T from"./components/HighlightButtonComponent.js";import{escapeTagIds as P,splitTagAcrossParagraphs as D}from"../../../../utils/tagHelper.js";import{normalizeRedlineMarkdown as H}from"../RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js";const W=o(!1),B=o({expandedInfo:null,setExpanded:()=>{},reasonToRow:{current:new Map}}),F=o({rowId:""}),V=({aiReason:n,isHighConfidence:t,customStyle:o,customIcons:l})=>{var r;const{expandedInfo:d,setExpanded:a,reasonToRow:s}=c(B),{rowId:u}=c(F),p=String(n.id);u&&s.current.set(p,u);const g=(null===(r=null==d?void 0:d.aiReason)||void 0===r?void 0:r.id)===n.id,m=t?(null==l?void 0:l.highConfidence)||e(I,{}):(null==l?void 0:l.lowConfidence)||e(S,{});return i("button",{className:h.aiReasoningButton,style:o,onClick:e=>{e.stopPropagation(),e.preventDefault(),a(g?null:u,g?null:n)},children:[m,e("i",g?{className:`pi pi-angle-up ${t?h.aiReasoningIconHighConfidence:h.aiReasoningIconLowConfidence}`}:{className:`pi pi-angle-down ${t?h.aiReasoningIconHighConfidence:h.aiReasoningIconLowConfidence}`})]})},z=({children:n,node:t,customStyles:o,customIcons:r})=>{var d,a;const s=l(Math.random().toString(36).slice(2)).current,{expandedInfo:u}=c(B),p=(null==u?void 0:u.rowId)===s,g=Array.isArray(null==t?void 0:t.children)?t.children.filter(e=>"element"===e.type).length:1,m=null!==(a=null===(d=null==t?void 0:t.properties)||void 0===d?void 0:d.style)&&void 0!==a?a:void 0;return i(F.Provider,{value:{rowId:s},children:[e("tr",{style:m?{cssText:m}:void 0,children:n}),p&&(null==u?void 0:u.aiReason)&&e("tr",{style:{width:"100%"},children:e("td",{colSpan:g||1,className:h.tableExpandedCell,children:e("div",{className:h.tableExpandedCellInner,children:e("div",{className:h.tableExpandedCellContent,children:e(A,{aiReason:u.aiReason,customIcons:r,customStyles:{aiReasoningContent:null==o?void 0:o.aiReasoningContent,aiReasoningAccordion:null==o?void 0:o.aiReasoningAccordion,aiReasoningMarkdown:null==o?void 0:o.aiReasoningMarkdown,aiReasoningPill:null==o?void 0:o.aiReasoningPill,webCitation:null==o?void 0:o.webCitation,stormeeCitation:null==o?void 0:o.stormeeCitation,waveformCitation:null==o?void 0:o.waveformCitation,imageCitation:null==o?void 0:o.imageCitation,fileCitation:null==o?void 0:o.fileCitation,appModCitation:null==o?void 0:o.appModCitation,rcaCitation:null==o?void 0:o.rcaCitation,readFileCitation:null==o?void 0:o.readFileCitation,loadingCitations:null==o?void 0:o.loadingCitations,chatCitation:null==o?void 0:o.chatCitation}})})})})})]})};const O=["del","ins"];function _(e){return function(e,n,i){const t=n.join("|");return e.replace(new RegExp(`<(${t})>([\\s\\S]*?)<\\/\\1>`,"gi"),(e,n,t)=>`<${n}>${i(t)}</${n}>`)}(e,O,e=>e.split(/(<[^>]+>)/g).map(e=>!e||/^<[^>]+>$/.test(e)?e:M(e)).join(""))}function q(e){let n=e.trim();n.startsWith("|")&&(n=n.slice(1)),n.endsWith("|")&&(n=n.slice(0,-1));const i=[];let t="",o=!1;for(const e of n)o?(t+=e,o=!1):"\\"!==e?"|"!==e?t+=e:(i.push(t.trim()),t=""):(t+=e,o=!0);return i.push(t.trim()),i}function G(e){return e.trim().includes("|")&&q(e).length>1}function Q(e){const n=q(e);return n.length>1&&n.every(e=>/^:?-{3,}:?$/.test(e.replace(/\s+/g,"")))}function J(e){if(!e)return;const n=e.replace(/\s+/g,"");return n.startsWith(":")&&n.endsWith(":")?"center":n.endsWith(":")?"right":"left"}function K(e,n){return Array.from({length:n},(n,i)=>{var t;return null!==(t=e[i])&&void 0!==t?t:""})}function X(e,n,i){return`<${e}${function(e){return e?` align="${e}"`:""}(i)}>${M(n)}</${e}>`}function Y(e,n,i){const t=Math.max(e.length,n.length,...i.map(e=>e.length)),o=K(e,t),l=K(n,t).map(J);return`\n\n<table>${`<thead><tr>${o.map((e,n)=>X("th",e,l[n])).join("")}</tr></thead>`}${i.length?`<tbody>${i.map(e=>`<tr>${K(e,t).map((e,n)=>X("td",e,l[n])).join("")}</tr>`).join("")}</tbody>`:""}</table>\n\n`}const Z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]);function ee(e,n){const i=[],o=new Set(n.map(e=>e.toLowerCase())),l=e=>{var n,r;try{if(null==e||"boolean"==typeof e)return null;if("string"==typeof e||"number"==typeof e)return e;if(Array.isArray(e))return e.map(e=>l(e)).flat().filter(e=>null!=e);if(!t.isValidElement(e))return e;const d="string"==typeof e.type?e.type.toLowerCase():"";if(o.has(d))return i.push(e),null;if(Z.has(d))return e;const a=null===(r=t.Children.map(null===(n=e.props)||void 0===n?void 0:n.children,l))||void 0===r?void 0:r.flat().filter(e=>null!=e);return a&&0!==a.length?t.cloneElement(e,void 0,a):null}catch(n){return console.error("splitNestedDiffNodes failed while processing node:",n),e}};try{return{cleanedChildren:l(e),extractedNodes:i}}catch(n){return console.error("splitNestedDiffNodes failed:",n),{cleanedChildren:e,extractedNodes:[]}}}const ne=({message:o,noMarkdownContent:I,useMarkdown:S=!0,isParent:A,scenario:M,showUserStoryDiff:F=!1,aiReasoningsForBlock:O,isCitationLoadingDisplay:J=!1,className:K,highConfidenceIcon:X,lowConfidenceIcon:Z,customStyles:ne,customIcons:ie,contextVariant:te,aiReasoningDiffView:oe,userStoryCitations:le,artifactId:re,isCraflow:de,onCraAccept:ae,onCraReject:se,craFlowConfig:ce,isDisplayHighlightControl:ue=!1,showConfidenceScore:pe=!0,CDNeededInChip:he,blockId:ge,storyId:me,showWaitingIconInChip:ve})=>{var fe;console.log("userstorywithcitation blockid ",ge);const Ce=l(null),{userStory:ye,inlineUpdateComponentConfig:we,getAvgScoreForStory:be,setUserStory:Ie,aiReasoning:Se,setAiReasoning:Re,customIcons:$e,searchQueryList:xe,searchQueryReasoningIdList:ke,currentHighlightIndex:Ne,segmentComponentConfig:Ae,inlineManualComponentConfig:je,diffEditConfig:Le,customSectionConfig:Ue}=b(),Ee=null!=ie?ie:null==$e?void 0:$e.userStoryIcons;null==ne||ne.searchHighlight;const{search:Me,clear:Te}=g(Ce),[Pe,De]=r("1"),[He,We]=r(null),Be=l(new Map),[Fe,Ve]=r(new Set),ze=d((e,n)=>{We(e&&n?{rowId:e,aiReason:n}:null)},[]),Oe=re?be(re):0,[_e,qe]=r([]),Ge=d(e=>{Ve(n=>{const i=new Set(n);return i.has(e)?i.delete(e):i.add(e),i})},[]),Qe=d((e,n)=>{var i,t,o,l,r,d;const a=n["data-upt-id"];if("string"!=typeof a)return;let s=a;try{s=decodeURIComponent(a)}catch(e){}const c=null===(t=null===(i=s.split("$"))||void 0===i?void 0:i[1])||void 0===t?void 0:t.replaceAll("@","<").replaceAll("#",">"),u=Se.find(e=>e.id.toString()===c);if(!u)return;e.preventDefault(),e.stopPropagation();const p=null!==(r=Array.from(null!==(l=null===(o=Ce.current)||void 0===o?void 0:o.querySelectorAll("[data-ai-reason-id]"))&&void 0!==l?l:[]).find(e=>e.dataset.aiReasonId===u.id.toString()))&&void 0!==r?r:e.currentTarget;null===(d=null==we?void 0:we.handleClickUpdatedPill)||void 0===d||d.call(we,p,u)},[Se,null==we?void 0:we.handleClickUpdatedPill]),Je=e=>null==e?"":"string"==typeof e?e:"number"==typeof e?String(e):Array.isArray(e)?e.map(Je).join(""):t.isValidElement(e)?Je(e.props.children):"",Ke=e=>{let n=function(e){const n=e.split("\n"),i=[];let t=!1;for(let e=0;e<n.length;e++){const o=n[e];if(/^\s*(```|~~~)/.test(o)){t=!t,i.push(o);continue}const l=n[e+1];if(!t&&void 0!==l&&G(o)&&Q(l)){const t=q(o),r=q(l),d=[];for(e+=2;e<n.length&&G(n[e])&&!Q(n[e]);)d.push(q(n[e])),e++;e--,i.push(Y(t,r,d));continue}i.push(o)}return i.join("\n")}(H(function(e){return e.replace(/\\r\\n|\\n|\\r/g,"\n")}(e)));return n=n.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,(e,n)=>`<deleted>${n.replace(/ai_reasoning\$(\d+)/g,(e,n)=>`ai_reasoning$${n}-legacy`)}</deleted>`),n=n.replace(/<generatedCode([^>]*)>([\s\S]*?)<\/generatedCode>/gi,(e,n,i)=>`\n\n<generatedCode${n} data-raw="${btoa(encodeURIComponent(i.trim()))}"></generatedCode>\n\n`),n=n.replace(/^(\s*[-*]|\s*\d+\.)\s*\n?\s*(<updated\b)/gm,"$1 $2"),n=n.replace(/(<segment\b([^>]*)>)([\s\S]*?)(<\/segment>)/gi,(e,n,i,t,o)=>{const l=t.match(/<table[\s\S]*?<\/table>/i);if(l){return`<segment${i} data-table="${btoa(encodeURIComponent(l[0]))}"></segment>`}return e}),n=n.replace(/<updatedsegment([^>]*)>([\s\S]*?)<\/updatedsegment>/gi,(e,n,i)=>{if(/<table[\s>]/i.test(i)){return`<updatedsegment${n} data-raw="${btoa(encodeURIComponent(i))}"></updatedsegment>`}return e}),n=n.replace(/<updated([^>]*)>([\s\S]*?)<\/updated>/gi,(e,i,t,o)=>{const l=n.substring(0,o),r=l.lastIndexOf("\n"),d=/^\s+[-*]\s/.test(l.substring(r+1))||/^\s+\d+\.\s/.test(l.substring(r+1)),a=/^\s*(\d+\.|\s*[-*])\s+$/.test(l.substring(r+1));if(d||a){let e=t;return e=e.replace(/(<deleted>)\s*\n?\s*[-*]\s+/gi,"$1\n"),e=e.replace(/(<changed>)\s*\n?\s*[-*]\s+/gi,"$1\n"),e=e.replace(/(<deleted>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),e=e.replace(/(<changed>)\s*\n?\s*\d+\.\s+/gi,"$1\n"),`<updated${i}>${e}</updated>`}return e}),n=function(e){const n=/<updated[^>]*>[\s\S]*?<\/updated>/gi,i=[];let t;const o=new RegExp(n.source,n.flags);for(;null!==(t=o.exec(e));){const e=t[0],n=e.match(/<deleted>([\s\S]*?)<\/deleted>/i),o=e.match(/<changed>([\s\S]*?)<\/changed>/i),l=e=>(e.match(/^\s*\d+\.\s/gm)||[]).length;i.push({index:t.index,endIndex:t.index+t[0].length,deletedItemCount:l((null==n?void 0:n[1])||""),changedItemCount:l((null==o?void 0:o[1])||"")})}if(0===i.length)return e;let l=e;for(let e=i.length-1;e>=0;e--){const n=i[e],t=n.changedItemCount-n.deletedItemCount;if(0===t)continue;const o=l.substring(0,n.index).split("\n").reverse();let r=!1;for(const e of o){const n=e.trim();if(""!==n){/^\d+\.\s/.test(n)&&(r=!0);break}}if(!r)continue;const d=n.endIndex,a=e+1<i.length?i[e+1].index:l.length;let s=l.substring(d,a);s=s.replace(/^(\s*)(\d+)\.\s/gm,(e,n,i)=>`${n}${parseInt(i,10)+t}. `),l=l.substring(0,d)+s+l.substring(a)}return l}(n),n=function(e){let n=e.replace(/<deleted>([\s\S]*?)<\/deleted>/gi,(e,n)=>{const i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <deleted>",{hadChange:i!==n}),`<deleted>${i}</deleted>`});return n=n.replace(/<changed>([\s\S]*?)<\/changed>/gi,(e,n)=>{const i=n.replace(/\n{2,}/g,"\n");return console.log("[normalizeCustomTags] collapseNewlines in <changed>",{hadChange:i!==n,preview:n.substring(0,120)}),`<changed>${i}</changed>`}),n}(n),n=_(n),n},Xe=a(()=>o?Ke(o):o,[o]);s(()=>{qe(O||Se)},[O,Se]);const Ye=a(()=>{const o=Boolean(null==Ue?void 0:Ue.negateList),l=(e,n)=>{let i=0;return t.Children.map(e,e=>{if(!t.isValidElement(e))return e;const o=n(i);return i+=1,t.cloneElement(e,{"data-list-marker":o})})};return{span:({node:n,children:i,...t})=>{var o,l,r,d,a;const s=null!==(l=null===(o=null==n?void 0:n.properties)||void 0===o?void 0:o["highlight-id"])&&void 0!==l?l:null==t?void 0:t["highlight-id"],c="string"==typeof s&&Fe.has(s),u=null!==(d=null===(r=null==n?void 0:n.properties)||void 0===r?void 0:r["highlight-color"])&&void 0!==d?d:null==t?void 0:t["highlight-color"];return e("span",{style:{...null!==(a=null==ne?void 0:ne.span)&&void 0!==a?a:{},...c?{backgroundColor:u||"#fef08a"}:{}},children:i})},button:({node:i,children:t,...o})=>{var l,r,d,a,s,c;const u=null!==(r=null===(l=null==i?void 0:i.properties)||void 0===l?void 0:l.action)&&void 0!==r?r:null==o?void 0:o.action,p=null!==(a=null===(d=null==i?void 0:i.properties)||void 0===d?void 0:d["highlight-id"])&&void 0!==a?a:null==o?void 0:o["highlight-id"],h=null!==(c=null===(s=null==i?void 0:i.properties)||void 0===s?void 0:s["highlight-type"])&&void 0!==c?c:null==o?void 0:o["highlight-type"];return"highlight"===u?e(T,{highlightId:p,handleHighlightSpan:Ge,icon:"web"===h?null==Ee?void 0:Ee.webCitationIcon:"doc"===h?null==Ee?void 0:Ee.fileCitationIcon:e(n,{}),customStyles:"web"===h?null==ne?void 0:ne.webButton:"doc"===h?null==ne?void 0:ne.docButton:{}}):null},upt:({node:i,children:t,...o})=>{var l,r;const d=null==o?void 0:o.id,a=d?null===(r=null===(l=d.split("$"))||void 0===l?void 0:l[1])||void 0===r?void 0:r.replaceAll("@","<").replaceAll("#",">"):null,s=Se.find(e=>e.id.toString()===a);if(!s)return t||e(n,{});const c="data-main"in o,u=o["data-status"];return e(n,{children:e(j,{aiReason:s,customStyles:null==ne?void 0:ne.inlineUpdatedComponent,handleClickCognitiveDecision:null==we?void 0:we.handleClickCognitiveDecision,handleClickUpdatedPill:null==we?void 0:we.handleClickUpdatedPill,handleClickOutputValue:null==we?void 0:we.handleClickOutputValue,customIcons:null==we?void 0:we.customIcons,CDNeededInChip:he,showWaitingIconInChip:ve,showChip:c,status:u,containerRef:Ce,children:t||e(n,{})})})},del:({node:t,children:o,...l})=>{var r;const{cleanedChildren:d,extractedNodes:a}=ee(o,["ins"]);return i(n,{children:[e("span",{className:h.deleted,style:null!==(r=null==ne?void 0:ne.deleted)&&void 0!==r?r:{},...l,onClick:()=>{l.onclick&&l.onclick()},children:d}),a]})},ins:({children:t,...o})=>{var l;const{cleanedChildren:r,extractedNodes:d}=ee(t,["del"]);return console.log("LOG: Printing ins props",o),i(n,{children:[e("span",{className:h.inserted,style:null!==(l=null==ne?void 0:ne.inserted)&&void 0!==l?l:{},...o,onClick:()=>{o.onclick&&o.onclick()},children:r}),d]})},deleted:({children:n,...i})=>e("span",{style:{textDecorationLine:"line-through",textDecorationColor:"#dc2626",cursor:"pointer"},...i,onClick:e=>Qe(e,i),children:n}),changed:({children:n,...i})=>e("span",{style:{backgroundColor:"#f3e8ff",color:"#1e3a8a",padding:"1px 2px",borderRadius:"2px",cursor:"pointer"},...i,onClick:e=>Qe(e,i),children:n}),preserved:({children:n,...i})=>e("span",{className:h.preserved,style:null==ne?void 0:ne.preserved,...i,children:n}),manual:({children:i,...t})=>{var o;const l=null===(o=null==t?void 0:t.id)||void 0===o?void 0:o.replaceAll("@","<").replaceAll("#",">"),r=Se.find(e=>e.id.toString()===l),d=t["data-status"];return r?e(E,{aiReason:r,handleClick:null==je?void 0:je.handleClick,status:d,children:i}):i||e(n,{})},invisible:({children:i,...t})=>e(n,{}),h1:({node:n,...i})=>e("h1",{className:h.heading1,style:null==ne?void 0:ne.heading1,children:i.children}),h2:({node:n,...i})=>e("h2",{className:h.heading2,style:null==ne?void 0:ne.heading2,children:i.children}),h3:({node:n,...i})=>e("h3",{className:h.heading3,style:null==ne?void 0:ne.heading3,children:i.children}),b:({node:n,...i})=>e("b",{className:h.bold,style:null==ne?void 0:ne.bold,children:null==i?void 0:i.children}),p:({node:n,...i})=>e("p",{...i,className:h.paragraph,style:null==ne?void 0:ne.paragraph,children:i.children}),updated:({node:n,...i})=>e(C,{...i,showUserStoryDiff:F,currentUpdatedTagId:Pe,setCurrentUpdatedTagId:De,userStory:ye,setUserStory:Ie,setAiReasoning:Re,node:n,isCraflow:de,onCraAccept:ae,onCraReject:se,diffEditConfig:Le,customStyles:null==ne?void 0:ne.updatedContent,craFlowConfig:ce}),ol:({node:n,...i})=>{var t,r,d;const a=null!==(d=null!==(r=null===(t=null==n?void 0:n.properties)||void 0===t?void 0:t.start)&&void 0!==r?r:null==i?void 0:i.start)&&void 0!==d?d:void 0,s=Number(null!=a?a:1);return o?e("div",{role:"list",className:h.negatedOrderedList,style:null==ne?void 0:ne.olist,children:l(i.children,e=>`${s+e}.`)}):e("ol",{className:h.orderedList,style:null==ne?void 0:ne.olist,...a?{start:Number(a)}:{},children:null==i?void 0:i.children})},ul:({node:n,...i})=>o?e("div",{role:"list",className:h.negatedUnorderedList,style:null==ne?void 0:ne.ulist,children:l(i.children,()=>"•")}):e("ul",{className:h.unorderedList,style:null==ne?void 0:ne.ulist,children:null==i?void 0:i.children}),li:({node:n,...t})=>{if(o){const e=t["data-list-marker"],{children:n,"data-list-marker":o,...l}=t;return i("div",{...l,role:"listitem",className:`${h.paragraph} ${h.negatedListItem}`,style:null==ne?void 0:ne.paragraph,children:[e&&i("span",{className:h.negatedListMarker,children:[e," "]}),n]})}return e("li",{children:null==t?void 0:t.children})},table:({children:n})=>e("div",{className:h.tableWrapper,children:e("table",{className:h.table,style:null==ne?void 0:ne.table,children:n})}),tr:({node:n,children:i})=>e(z,{node:n,children:i,customStyles:ne}),td:({node:n,children:i})=>{var t;const{style:o,...l}=null!==(t=null==n?void 0:n.properties)&&void 0!==t?t:{};return e(W.Provider,{value:!0,children:e("td",{...l,style:o?{cssText:o}:void 0,children:i})})},th:({node:n,children:i})=>{var t;const{style:o,...l}=null!==(t=null==n?void 0:n.properties)&&void 0!==t?t:{};return e(W.Provider,{value:!0,children:e("th",{...l,style:o?{cssText:o}:void 0,children:i})})},recommendation:({node:n,...i})=>{var t;const o=`The AI has selected this content based on: ${(null===(t=null==i?void 0:i.children)||void 0===t?void 0:t[0])||""}`;return e(k,{...i,customStyles:null==ne?void 0:ne.recommendationBlock,label:o})},a:({inline:n,children:i,node:t,...o})=>{var l;const r=c(W)||"true"===(null==o?void 0:o.table),d=`${null==o?void 0:o.href}`,[a,s]=d.split("$"),u=null==s?void 0:s.split("?")[0];if("ai_reasoning"===a){const n=(null!==(l=F?oe:Se)&&void 0!==l?l:[]).find(e=>e.id.toString()===decodeURIComponent(u)),t=ke.includes(u);if(n){if(r)return e(V,{aiReason:n,customStyle:null==ne?void 0:ne.tableAiReasoning,customIcons:Ee,isHighConfidence:n.relevance_score>=$});const o=Je(i),l="source"!==o.trim().toLowerCase();return e(R,{aiReason:n,isSourceHasHighlight:t,inlineLabel:o,isInlineCitation:l,customIcons:Ee,customStyles:{aiReasoningContent:null==ne?void 0:ne.aiReasoningContent,aiReasoningAccordion:null==ne?void 0:ne.aiReasoningAccordion,aiReasoningMarkdown:null==ne?void 0:ne.aiReasoningMarkdown,aiReasoningPill:null==ne?void 0:ne.aiReasoningPill,webCitation:null==ne?void 0:ne.webCitation,stormeeCitation:null==ne?void 0:ne.stormeeCitation,waveformCitation:null==ne?void 0:ne.waveformCitation,imageCitation:null==ne?void 0:ne.imageCitation,fileCitation:null==ne?void 0:ne.fileCitation,appModCitation:null==ne?void 0:ne.appModCitation,rcaCitation:null==ne?void 0:ne.rcaCitation,readFileCitation:null==ne?void 0:ne.readFileCitation,loadingCitations:null==ne?void 0:ne.loadingCitations,chatCitation:null==ne?void 0:ne.chatCitation,bigEnoughCitation:null==ne?void 0:ne.bigEnoughCitation}})}}return null},code:({inline:n,children:i,className:t,node:o,...l})=>/language-(\w+)/.exec(t||"")||(null==t?void 0:t.includes("language-"))?e("div",{children:e("code",{className:h.blockCode,style:null==ne?void 0:ne.code,children:i})}):e("code",{className:h.inlineCode,style:null==ne?void 0:ne.code,children:i}),learned:({children:n})=>e(v,{title:n,placement:"top",children:e(m,{size:16,className:h.learned})}),generatedcode:({node:n,...i})=>{const t=(null==i?void 0:i.language)||"python",o=(e=>{let n="";try{if(e["data-raw"])n=decodeURIComponent(atob(e["data-raw"]));else{const i=e=>{var n;return"string"==typeof e?e:Array.isArray(e)?e.map(i).join(""):(null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.children)?i(e.props.children):""};n=i(e.children)}}catch(i){console.error("Error decoding generated code:",i),n=String(e.children)}return n})(i);return e(y,{title:"Generated Code",code:o,language:t,customStyles:{pill:null==ne?void 0:ne.generatedCodePill,content:null==ne?void 0:ne.generatedCodeContent}})},updatedsegment:({node:n,children:i,...t})=>{var o,l,r,d;const a=`${null===(o=n.position)||void 0===o?void 0:o.start.line}-${null===(l=n.position)||void 0===l?void 0:l.start.column}-${null===(r=n.position)||void 0===r?void 0:r.end.line}-${null===(d=n.position)||void 0===d?void 0:d.end.column}`,s=(e=>{if(!e["data-raw"])return null;try{return decodeURIComponent(atob(e["data-raw"]))}catch(e){return console.error("Error decoding segment raw content:",e),null}})(t),c=e("div",s?{dangerouslySetInnerHTML:{__html:f.sanitize(s)}}:{children:i});return e(L,{id:a,node:n,children:c,props:t,segmentComponentConfig:Ae,customStyles:ne,customIcons:ie,extractText:Je,isUpdatedSegment:!0})},segment:({node:n,children:i,...t})=>{var o,l,r,d;const a=`${null===(o=n.position)||void 0===o?void 0:o.start.line}-${null===(l=n.position)||void 0===l?void 0:l.start.column}-${null===(r=n.position)||void 0===r?void 0:r.end.line}-${null===(d=n.position)||void 0===d?void 0:d.end.column}`;return e(L,{id:a,node:n,children:i,props:t,segmentComponentConfig:Ae,customStyles:ne,customIcons:ie,extractText:Je,blockId:ge,storyId:me})}}},[_e,ce,Se,le,Pe,F,o,ie,xe,ke,ne,Ae,Fe,Ge,Qe,ge,me,null==Ue?void 0:Ue.negateList]),Ze=a(()=>{let e=P(Xe,["manual","upt"]);return["del","ins","preserved","manual","upt"].forEach(n=>{e=D(e,n,"upt"===n)}),e},[Xe]);return s(()=>{if(!Ce.current)return;if(!xe.length)return void Te();let e;if(0===ke.length||ue)requestAnimationFrame(()=>{Me([xe[Ne].replace(/\*/g,"")])});else{const n=Ce.current,i=new MutationObserver(()=>{clearTimeout(e),e=setTimeout(()=>{i.disconnect(),requestAnimationFrame(()=>{Me([xe[Ne].replace(/\*/g,"")])})},50)});i.observe(n,{childList:!0,subtree:!0})}return()=>{clearTimeout(e)}},[xe,ke,Ne,ue]),e(B.Provider,{value:{expandedInfo:He,setExpanded:ze,reasonToRow:Be},children:i("div",{ref:Ce,className:`${h.container} ${"approving"!==M?h.wrapper:""} ${K||""}`,style:null==ne?void 0:ne.container,children:[S?e(U,{children:e(u,{components:Ye,rehypePlugins:[p],children:Ze})}):I,Oe>0&&pe&&e("div",{className:h.confidenceScoreContainer,style:null==ne?void 0:ne.confidenceScoreContainer,children:i("span",{className:h.confidenceScore,style:null==ne?void 0:ne.confidenceScore,children:[e(x,{size:14,color:(null==ne?void 0:ne.confidenceScoreIconColor)||"#166534"}),Oe,"%"]})}),J&&e("div",{className:h.citationLoader,style:null==ne?void 0:ne.citationLoaderContainer,children:e(w,{customStyles:{container:null==ne?void 0:ne.citationLoadingContainer,icon:null==ne?void 0:ne.citationLoadingIcon,text:null==ne?void 0:ne.citationLoadingText}})}),A&&e("div",{style:{...null===(fe=null==ne?void 0:ne.attachedContext)||void 0===fe?void 0:fe.wrapper},className:"flex mt-5",children:e(N,{customStyles:null==ne?void 0:ne.attachedContext,variant:te})})]})})};export{ne as default,ee as splitNestedDiffNodes};
2
2
  //# sourceMappingURL=UserStoryWithCitation.js.map
@@ -1,2 +1,2 @@
1
- var e={container:"UserStoryWithCitation-module_container__YRdbR",wrapper:"UserStoryWithCitation-module_wrapper__wbnqg",heading1:"UserStoryWithCitation-module_heading1__KsWUO",heading2:"UserStoryWithCitation-module_heading2__GHshw",heading3:"UserStoryWithCitation-module_heading3__Jm9Xb",bold:"UserStoryWithCitation-module_bold__HenfX",paragraph:"UserStoryWithCitation-module_paragraph__a1-pc",orderedList:"UserStoryWithCitation-module_orderedList__E5PQa",unorderedList:"UserStoryWithCitation-module_unorderedList__SFvpc",inlineCode:"UserStoryWithCitation-module_inlineCode__5014y",blockCode:"UserStoryWithCitation-module_blockCode__pmHG5",learned:"UserStoryWithCitation-module_learned__0US6d",linkText:"UserStoryWithCitation-module_linkText__5kBNv",tableWrapper:"UserStoryWithCitation-module_tableWrapper__r94Fx",table:"UserStoryWithCitation-module_table__tEyKd",scrollContainer:"UserStoryWithCitation-module_scrollContainer__S-BtW",citationLoader:"UserStoryWithCitation-module_citationLoader__Op7Sm",aiReasoningButton:"UserStoryWithCitation-module_aiReasoningButton__-tprH",aiReasoningIconHighConfidence:"UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6",aiReasoningIconLowConfidence:"UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz",confidenceScoreContainer:"UserStoryWithCitation-module_confidenceScoreContainer__zOE-E",confidenceScore:"UserStoryWithCitation-module_confidenceScore__lhT4p",inserted:"UserStoryWithCitation-module_inserted__66gBL",deleted:"UserStoryWithCitation-module_deleted__mzR4t",preserved:"UserStoryWithCitation-module_preserved__ND8uC"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{box-sizing:border-box;position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow:visible;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#d633840d;border-radius:.3rem;box-sizing:border-box;color:#d63384;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{box-sizing:border-box;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border-collapse:collapse;box-sizing:border-box;margin:20px 0;table-layout:fixed;width:100%}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px}.UserStoryWithCitation-module_aiReasoningButton__-tprH{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;gap:2px;padding:2px 4px;vertical-align:middle}.UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6{color:#4b5563;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz{color:#cf4343;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_confidenceScoreContainer__zOE-E{position:absolute;right:12px;top:12px;z-index:10}.UserStoryWithCitation-module_confidenceScore__lhT4p{align-items:center;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:9999px;box-shadow:0 1px 2px #0000000d;color:#166534;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:700;gap:4px;padding:4px 8px}.UserStoryWithCitation-module_orderedList__E5PQa{counter-reset:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa>li{counter-increment:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:childItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:childItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:grandchildItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:grandchildItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) "." counter(grandchildItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_inserted__66gBL{background-color:#8cbeff}.UserStoryWithCitation-module_deleted__mzR4t{background-color:#fff;text-decoration:line-through;text-decoration-color:#dc2626}.UserStoryWithCitation-module_preserved__ND8uC{background-color:#fff;text-decoration:underline;text-decoration-color:#d3d3d3}[class*=_upt-]>[class*=_inserted_]{background-color:#f3e8ff}[class^=_manual-]>[class^=_inserted_]{background-color:#8cbeff}'));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
1
+ var t={container:"UserStoryWithCitation-module_container__YRdbR",wrapper:"UserStoryWithCitation-module_wrapper__wbnqg",heading1:"UserStoryWithCitation-module_heading1__KsWUO",heading2:"UserStoryWithCitation-module_heading2__GHshw",heading3:"UserStoryWithCitation-module_heading3__Jm9Xb",bold:"UserStoryWithCitation-module_bold__HenfX",paragraph:"UserStoryWithCitation-module_paragraph__a1-pc",orderedList:"UserStoryWithCitation-module_orderedList__E5PQa",unorderedList:"UserStoryWithCitation-module_unorderedList__SFvpc",inlineCode:"UserStoryWithCitation-module_inlineCode__5014y",blockCode:"UserStoryWithCitation-module_blockCode__pmHG5",learned:"UserStoryWithCitation-module_learned__0US6d",linkText:"UserStoryWithCitation-module_linkText__5kBNv",tableWrapper:"UserStoryWithCitation-module_tableWrapper__r94Fx",table:"UserStoryWithCitation-module_table__tEyKd",scrollContainer:"UserStoryWithCitation-module_scrollContainer__S-BtW",citationLoader:"UserStoryWithCitation-module_citationLoader__Op7Sm",aiReasoningButton:"UserStoryWithCitation-module_aiReasoningButton__-tprH",aiReasoningIconHighConfidence:"UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6",aiReasoningIconLowConfidence:"UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz",confidenceScoreContainer:"UserStoryWithCitation-module_confidenceScoreContainer__zOE-E",confidenceScore:"UserStoryWithCitation-module_confidenceScore__lhT4p",inserted:"UserStoryWithCitation-module_inserted__66gBL",deleted:"UserStoryWithCitation-module_deleted__mzR4t",preserved:"UserStoryWithCitation-module_preserved__ND8uC",negatedOrderedList:"UserStoryWithCitation-module_negatedOrderedList__RZDGe",negatedUnorderedList:"UserStoryWithCitation-module_negatedUnorderedList__ZTOPu",negatedListItem:"UserStoryWithCitation-module_negatedListItem__pcJY9",negatedListMarker:"UserStoryWithCitation-module_negatedListMarker__yWtUn"};!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const e=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode('.UserStoryWithCitation-module_container__YRdbR{box-sizing:border-box;position:relative;width:100%}.UserStoryWithCitation-module_wrapper__wbnqg{border:1px solid #d5d5d5;border-radius:16px;padding:20px}.UserStoryWithCitation-module_heading1__KsWUO{color:#000;font-family:Inter,sans-serif;font-size:1.5rem;margin:.75rem 0 .25rem;padding:0}.UserStoryWithCitation-module_heading2__GHshw{color:#000;font-family:Inter,sans-serif;font-size:1.25rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_heading3__Jm9Xb{color:#000;font-family:Inter,sans-serif;font-size:1.125rem;margin:10px 0 0;padding:0}.UserStoryWithCitation-module_bold__HenfX{font-family:Inter,sans-serif;font-weight:700}.UserStoryWithCitation-module_paragraph__a1-pc{word-wrap:break-word;display:block;flex-wrap:wrap;font-family:Inter,sans-serif;font-size:1rem;line-height:1.75rem;margin:0;max-width:100%;overflow:hidden;overflow:visible;overflow-wrap:break-word;text-align:justify;white-space:normal;word-break:break-word}.UserStoryWithCitation-module_orderedList__E5PQa{font-family:Inter,sans-serif;list-style-type:decimal;margin-left:1rem}.UserStoryWithCitation-module_unorderedList__SFvpc{font-family:Inter,sans-serif;list-style-type:disc;margin-left:1rem}.UserStoryWithCitation-module_inlineCode__5014y{background-color:#f0f2f5;border-radius:.3rem;box-sizing:border-box;color:#323232;font-family:Source Code Pro,monospace;font-size:.95em;overflow-wrap:break-word;padding:.2rem .5rem;white-space:pre-wrap;width:100%;word-break:break-word}.UserStoryWithCitation-module_blockCode__pmHG5{color:#d63384;display:block;overflow:hidden;white-space:pre-wrap;word-break:break-words}.UserStoryWithCitation-module_learned__0US6d{color:#3b82f6;cursor:pointer;display:inline-block;margin-left:.25rem;margin-right:.25rem}.UserStoryWithCitation-module_linkText__5kBNv:hover{color:#1d4ed8}.UserStoryWithCitation-module_tableWrapper__r94Fx{-webkit-overflow-scrolling:touch;box-sizing:border-box;margin:16px 0;max-width:100%;overflow-x:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd{border:1px solid #d1d5db;border-collapse:collapse;box-sizing:border-box;font-family:Inter,sans-serif;font-size:.95rem;line-height:1.45rem;margin:0;min-width:100%;table-layout:auto;width:100%}.UserStoryWithCitation-module_table__tEyKd td,.UserStoryWithCitation-module_table__tEyKd th{border:1px solid #d1d5db;color:#111827;overflow-wrap:break-word;padding:8px 10px;vertical-align:top;white-space:normal;word-break:normal}.UserStoryWithCitation-module_table__tEyKd th{background:#f3f4f6;font-weight:700;white-space:nowrap}.UserStoryWithCitation-module_table__tEyKd td[align=center],.UserStoryWithCitation-module_table__tEyKd th[align=center]{text-align:center}.UserStoryWithCitation-module_table__tEyKd td[align=right],.UserStoryWithCitation-module_table__tEyKd th[align=right]{text-align:right}.UserStoryWithCitation-module_table__tEyKd tr:nth-child(2n) td{background:#fafafa}.UserStoryWithCitation-module_table__tEyKd p{margin:0}.UserStoryWithCitation-module_scrollContainer__S-BtW{overflow:hidden}.UserStoryWithCitation-module_citationLoader__Op7Sm{bottom:0;left:0;margin-top:12px}.UserStoryWithCitation-module_aiReasoningButton__-tprH{align-items:center;background:#0000;border:none;cursor:pointer;display:inline-flex;gap:2px;padding:2px 4px;vertical-align:middle}.UserStoryWithCitation-module_aiReasoningIconHighConfidence__FmXx6{color:#4b5563;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_aiReasoningIconLowConfidence__TfkJz{color:#cf4343;font-size:12px;transform:translateY(5px)}.UserStoryWithCitation-module_confidenceScoreContainer__zOE-E{position:absolute;right:12px;top:12px;z-index:10}.UserStoryWithCitation-module_confidenceScore__lhT4p{align-items:center;background-color:#f0fdf4;border:1px solid #bbf7d0;border-radius:9999px;box-shadow:0 1px 2px #0000000d;color:#166534;display:inline-flex;font-family:Inter,sans-serif;font-size:12px;font-weight:700;gap:4px;padding:4px 8px}.UserStoryWithCitation-module_orderedList__E5PQa{counter-reset:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa>li{counter-increment:parentItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:childItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:childItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc{counter-reset:grandchildItem;list-style-type:none!important}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li{align-items:baseline;counter-increment:grandchildItem}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li:before{content:counter(parentItem) "." counter(childItem) "." counter(grandchildItem) " ";flex-shrink:0;margin-right:4px}.UserStoryWithCitation-module_orderedList__E5PQa li>.UserStoryWithCitation-module_unorderedList__SFvpc li>.UserStoryWithCitation-module_unorderedList__SFvpc>li>.UserStoryWithCitation-module_paragraph__a1-pc{display:inline}.UserStoryWithCitation-module_inserted__66gBL{background-color:#8cbeff}.UserStoryWithCitation-module_deleted__mzR4t{background-color:#fff;text-decoration:line-through;text-decoration-color:#dc2626}.UserStoryWithCitation-module_preserved__ND8uC{background-color:#fff;text-decoration:underline;text-decoration-color:#d3d3d3}[class*=_upt-]>[class*=_inserted_]{background-color:#f3e8ff}[class^=_manual-]>[class^=_inserted_]{background-color:#8cbeff}.UserStoryWithCitation-module_negatedOrderedList__RZDGe,.UserStoryWithCitation-module_negatedUnorderedList__ZTOPu{margin:0;padding:0}.UserStoryWithCitation-module_negatedListItem__pcJY9{display:block;margin:0;padding:0}.UserStoryWithCitation-module_negatedListMarker__yWtUn{display:inline;font:inherit}.UserStoryWithCitation-module_negatedListItem__pcJY9>p:first-of-type{display:inline;margin:0}.UserStoryWithCitation-module_negatedListItem__pcJY9>.UserStoryWithCitation-module_negatedListMarker__yWtUn+span{display:inline!important;margin:0!important;width:auto!important}.UserStoryWithCitation-module_negatedListItem__pcJY9>.UserStoryWithCitation-module_negatedListMarker__yWtUn+span>span:not([class*=_hoverActions_]){display:inline!important;width:auto!important}'));const i=document.head||document.getElementsByTagName("head")[0]||document.documentElement;i&&i.appendChild(t)}();export{t as default};
2
2
  //# sourceMappingURL=UserStoryWithCitation.module.css.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Divider as o,CircularProgress as i}from"@mui/material";import{hexToOpacity as t}from"../../../utils/css.utils.js";import r from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as s,Undo2 as c,Hourglass as u,ChevronDown as v}from"lucide-react";import{useRef as p,useState as m,useCallback as g,useLayoutEffect as h}from"react";const f=({aiReason:f,children:C,customStyles:y,handleClickCognitiveDecision:w,handleClickUpdatedPill:b,handleClickOutputValue:N,customIcons:k,CDNeededInChip:I=!0,showWaitingIconInChip:D=!1,showChip:P,status:S})=>{var _,W,$,z,j,x,A,L,R,T,E,M,O,U,B,F,H,q,V;const G=p(null),J=p(null),[K,Q]=m(null),X=g(()=>{var e;const l=J.current,n=(null===(e=G.current)||void 0===e?void 0:e.offsetParent)||(null==l?void 0:l.offsetParent);if(!(l&&n instanceof HTMLElement))return;const o=l.getBoundingClientRect(),i=n.getBoundingClientRect(),t=o.top-i.top+o.height/2;Q(e=>null!==e&&Math.abs(e-t)<.5?e:t)},[]);h(()=>{X()}),h(()=>{var e,l;if("undefined"==typeof window)return;const n=window.requestAnimationFrame(X);window.addEventListener("resize",X);const o="undefined"!=typeof ResizeObserver?new ResizeObserver(X):null;J.current&&(null==o||o.observe(J.current));const i=(null===(e=G.current)||void 0===e?void 0:e.offsetParent)||(null===(l=J.current)||void 0===l?void 0:l.offsetParent);return i instanceof HTMLElement&&(null==o||o.observe(i)),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",X),null==o||o.disconnect()}},[X]);const Y="pending"!==S?"#303030":null===($=null===(W=null===(_=f.redlining_details)||void 0===_?void 0:_.evaluation_outputs)||void 0===W?void 0:W.metadata)||void 0===$?void 0:$.label_color,Z={color:Y||"#000000",background:t(Y||"#000000",25),border:`1px solid ${t(Y||"#000000",75)}`},ee=Y||"#000000",le=t(Y||"#000000",25),ne={background:t(Y||"#000000",75),...null==y?void 0:y.dividerStyle};let oe=null;"accepted"===S?oe=null!==(z=null==k?void 0:k.accepted)&&void 0!==z?z:e(a,{color:"#16A34A"}):"rejected"===S?oe=null!==(j=null==k?void 0:k.rejected)&&void 0!==j?j:e(s,{color:"#DC2626"}):"reverted"===S&&(oe=null!==(x=null==k?void 0:k.reverted)&&void 0!==x?x:e(c,{color:"#475569"}));const ie=null===K?{}:{"--inline-update-anchor-top":`${K}px`},te=null===K?"":` ${r.anchorAligned}`;return l("span",{className:r.inlineUpdatedWrapper,children:[P&&l(n,{children:[oe&&e("span",{className:`${r.resolvedStatus}${te}`,style:{...ie,...null==y?void 0:y.resolvedIcon},children:oe}),e("span",{ref:G,id:f.id.toString(),onClick:e=>{e.stopPropagation(),null==b||b(e.currentTarget,f)},className:`${r.pillWrapper}${te}`,style:{...ie,...null==y?void 0:y.pillStyleWrapper},children:l("span",{className:r.pillComponent,style:{...Z,...null===(A=null==y?void 0:y.pillComponent)||void 0===A?void 0:A.commonStyle},children:[e("span",{children:(null===(T=null===(R=null===(L=f.redlining_details)||void 0===L?void 0:L.evaluation_outputs)||void 0===R?void 0:R.metadata)||void 0===T?void 0:T.label_text)||""}),e(o,{className:r.dividerStyle,style:ne}),D&&"pending"===S&&l(n,{children:[e("span",{className:r.waitingIconWrapper,style:{color:Y},title:"Waiting",children:e(u,{size:16})}),e(o,{className:r.dividerStyle,style:ne})]}),e("span",{className:r["output-container"],onClick:e=>{N&&(e.stopPropagation(),null==N||N(e.currentTarget,f))},children:f.resolving?e(i,{size:(null===(E=null==y?void 0:y.loader)||void 0===E?void 0:E.size)||18,"aria-label":"Loading…",sx:{color:(null===(M=null==y?void 0:y.loader)||void 0===M?void 0:M.color)||Y}}):"pending"!==S?oe:null===(U=null===(O=null==f?void 0:f.redlining_details)||void 0===O?void 0:O.evaluation_outputs)||void 0===U?void 0:U.output_value}),I&&l(n,{children:[e(o,{className:r.dividerStyle,style:ne}),e("span",{onClick:e=>{e.stopPropagation(),null==w||w(e.currentTarget,f)},className:r.cognitiveDecisionWrapper,style:null===(B=null==y?void 0:y.cognitiveDecisionIcon)||void 0===B?void 0:B.wrapper,children:e(d,{color:(null===(F=null==y?void 0:y.cognitiveDecisionIcon)||void 0===F?void 0:F.color)||ee,backgroundColor:(null===(H=null==y?void 0:y.cognitiveDecisionIcon)||void 0===H?void 0:H.backgroundColor)||le})}),e("span",{className:r.chevronWrapper,style:null===(q=null==y?void 0:y.Chevron)||void 0===q?void 0:q.wrapper,children:e(v,{color:(null===(V=null==y?void 0:y.Chevron)||void 0===V?void 0:V.color)||Y})})]})]})})]}),e("span",{ref:J,className:r[`upt-${S}`],onClick:e=>{e.preventDefault(),e.stopPropagation(),G.current&&(null==b||b(G.current,f))},children:C})]})};export{f as default};
1
+ import{jsx as e,jsxs as l,Fragment as n}from"react/jsx-runtime";import{Divider as o,CircularProgress as i}from"@mui/material";import{hexToOpacity as t}from"../../../utils/css.utils.js";import r from"./InlineUpdatedComponent.module.css.js";import d from"../../../icons/CognitiveDecision.js";import{Check as a,X as s,Undo2 as c,Hourglass as u,ChevronDown as v}from"lucide-react";import{useRef as p,useState as m,useCallback as g,useLayoutEffect as f}from"react";const h=({aiReason:h,children:C,customStyles:y,handleClickCognitiveDecision:w,handleClickUpdatedPill:b,handleClickOutputValue:N,customIcons:S,CDNeededInChip:k=!0,showWaitingIconInChip:I=!1,showChip:D,status:P,containerRef:_})=>{var W,$,z,A,R,j,x,L,T,E,M,O,U,q,B,F,H,V,G;const J=p(null),K=p(null),[Q,X]=m(null),Y=g(()=>{var e;const l=K.current,n=(null===(e=J.current)||void 0===e?void 0:e.offsetParent)||(null==l?void 0:l.offsetParent);if(!(l&&n instanceof HTMLElement))return;const o=l.getBoundingClientRect(),i=n.getBoundingClientRect(),t=o.top-i.top+o.height/2;X(e=>null!==e&&Math.abs(e-t)<.5?e:t)},[]);f(()=>{Y()}),f(()=>{var e,l;if("undefined"==typeof window)return;const n=window.requestAnimationFrame(Y);window.addEventListener("resize",Y);const o="undefined"!=typeof ResizeObserver?new ResizeObserver(Y):null;K.current&&(null==o||o.observe(K.current));const i=(null===(e=J.current)||void 0===e?void 0:e.offsetParent)||(null===(l=K.current)||void 0===l?void 0:l.offsetParent);return i instanceof HTMLElement&&(null==o||o.observe(i)),()=>{window.cancelAnimationFrame(n),window.removeEventListener("resize",Y),null==o||o.disconnect()}},[Y]);const Z="pending"!==P?"#303030":null===(z=null===($=null===(W=h.redlining_details)||void 0===W?void 0:W.evaluation_outputs)||void 0===$?void 0:$.metadata)||void 0===z?void 0:z.label_color,ee={color:Z||"#000000",background:t(Z||"#000000",25),border:`1px solid ${t(Z||"#000000",75)}`},le=Z||"#000000",ne=t(Z||"#000000",25),oe={background:t(Z||"#000000",75),...null==y?void 0:y.dividerStyle};let ie=null;"accepted"===P?ie=null!==(A=null==S?void 0:S.accepted)&&void 0!==A?A:e(a,{color:"#16A34A"}):"rejected"===P?ie=null!==(R=null==S?void 0:S.rejected)&&void 0!==R?R:e(s,{color:"#DC2626"}):"reverted"===P&&(ie=null!==(j=null==S?void 0:S.reverted)&&void 0!==j?j:e(c,{color:"#475569"}));const te=null===Q?{}:{"--inline-update-anchor-top":`${Q}px`},re=null===Q?"":` ${r.anchorAligned}`;return l("span",{className:r.inlineUpdatedWrapper,children:[D&&l(n,{children:[ie&&e("span",{className:`${r.resolvedStatus}${re}`,style:{...te,...null==y?void 0:y.resolvedIcon},children:ie}),e("span",{ref:J,id:h.id.toString(),"data-ai-reason-id":h.id.toString(),onClick:e=>{e.stopPropagation(),null==b||b(e.currentTarget,h)},className:`${r.pillWrapper}${re}`,style:{...te,...null==y?void 0:y.pillStyleWrapper},children:l("span",{className:r.pillComponent,style:{...ee,...null===(x=null==y?void 0:y.pillComponent)||void 0===x?void 0:x.commonStyle},children:[e("span",{children:(null===(E=null===(T=null===(L=h.redlining_details)||void 0===L?void 0:L.evaluation_outputs)||void 0===T?void 0:T.metadata)||void 0===E?void 0:E.label_text)||""}),e(o,{className:r.dividerStyle,style:oe}),I&&"pending"===P&&l(n,{children:[e("span",{className:r.waitingIconWrapper,style:{color:Z},title:"Waiting",children:e(u,{size:16})}),e(o,{className:r.dividerStyle,style:oe})]}),e("span",{className:r["output-container"],onClick:e=>{N&&(e.stopPropagation(),null==N||N(e.currentTarget,h))},children:h.resolving?e(i,{size:(null===(M=null==y?void 0:y.loader)||void 0===M?void 0:M.size)||18,"aria-label":"Loading…",sx:{color:(null===(O=null==y?void 0:y.loader)||void 0===O?void 0:O.color)||Z}}):"pending"!==P?ie:null===(q=null===(U=null==h?void 0:h.redlining_details)||void 0===U?void 0:U.evaluation_outputs)||void 0===q?void 0:q.output_value}),k&&l(n,{children:[e(o,{className:r.dividerStyle,style:oe}),e("span",{onClick:e=>{e.stopPropagation(),null==w||w(e.currentTarget,h)},className:r.cognitiveDecisionWrapper,style:null===(B=null==y?void 0:y.cognitiveDecisionIcon)||void 0===B?void 0:B.wrapper,children:e(d,{color:(null===(F=null==y?void 0:y.cognitiveDecisionIcon)||void 0===F?void 0:F.color)||le,backgroundColor:(null===(H=null==y?void 0:y.cognitiveDecisionIcon)||void 0===H?void 0:H.backgroundColor)||ne})}),e("span",{className:r.chevronWrapper,style:null===(V=null==y?void 0:y.Chevron)||void 0===V?void 0:V.wrapper,children:e(v,{color:(null===(G=null==y?void 0:y.Chevron)||void 0===G?void 0:G.color)||Z})})]})]})})]}),e("span",{ref:K,className:r[`upt-${P}`],onClick:e=>{var l,n,o;e.preventDefault(),e.stopPropagation();const i=h.id.toString(),t=null!==(l=J.current)&&void 0!==l?l:Array.from(null!==(o=null===(n=_.current)||void 0===n?void 0:n.querySelectorAll("[data-ai-reason-id]"))&&void 0!==o?o:[]).find(e=>e.dataset.aiReasonId===i);t&&(null==b||b(t,h))},children:C})]})};export{h as default};
2
2
  //# sourceMappingURL=InlineUpdatedComponent.js.map
@@ -0,0 +1,2 @@
1
+ const e=(e,r,t)=>e.replace(r,(e,r,g,n)=>`${r}${t(g)}${n}`),r=r=>{if(!r)return r;const t=[],g=e=>`ZXQINLINEPROTECTED${t.push(e)-1}QXZ`;let n=r.replace(/(`+)([^\n]*?)\1/g,(e,r,t)=>{return g(`<code>${n=t,n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}</code>`);var n});return n=n.replace(/\\\*/g,()=>g("*")),n=e(n,/\*{3}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*{3}/g,e=>`<strong><em>${e}</em></strong>`),n=e(n,/_{3}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)_{3}/g,e=>`<strong><em>${e}</em></strong>`),n=e(n,/\*{2}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*{2}/g,e=>`<strong>${e}</strong>`),n=e(n,/_{2}([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)_{2}/g,e=>`<strong>${e}</strong>`),n=e(n,/\*([ \t]*)(\S(?:[\s\S]*?\S)?)([ \t]*)\*/g,e=>`<em>${e}</em>`),n.replace(/ZXQINLINEPROTECTED(\d+)QXZ/g,(e,r)=>{var g;return null!==(g=t[Number(r)])&&void 0!==g?g:""})};export{r as convertInlineMarkdownToHtml};
2
+ //# sourceMappingURL=inlineMarkdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import{useRef as e}from"react";import{processAIReasoningFromBlocks as i}from"../utils/proccess-stream.utils.js";function t({setUserStory:t,setAiReasoning:o,setUserStoryCitations:n,onStreamingCompleted:r,isGraphQLCallInProgress:s,knowledgeBase:a,projectAnalyserSummary:u,dataSourceFiles:l,aiReasoning:c,setRedisValue:d,fetchCitationByBlock:p}){const _=e(new Set),m=e(new Set),g=e(null),b=e(null),v=e({gap_items_prompt:"",risk_items_prompt:""}),f=e(new Set);async function h(e,i,t){var a,u;let l="",c="";try{const r=await p(e,t,i);o(e=>{var i;const t=[...e];return null===(i=r.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),l=(null===(a=r.response)||void 0===a?void 0:a.gap_items_prompt)||"",c=(null===(u=r.response)||void 0===u?void 0:u.risk_items_prompt)||"",(l||c)&&(v.current={gap_items_prompt:l,risk_items_prompt:c}),n(e=>{var i,t,o,n,s,a,u,l,c,d,p,_,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=r.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(o=e.audio_citations)&&void 0!==o?o:[],...null!==(n=r.response.audio_citations)&&void 0!==n?n:[]],file_citations:[...null!==(s=e.file_citations)&&void 0!==s?s:[],...null!==(a=r.response.file_citations)&&void 0!==a?a:[]],image_citations:[...null!==(u=e.image_citations)&&void 0!==u?u:[],...null!==(l=r.response.image_citations)&&void 0!==l?l:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=r.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(p=e.web_citations)&&void 0!==p?p:[],...null!==(_=r.response.web_citations)&&void 0!==_?_:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=r.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(m.current.add(i),m.current.size===_.current.size&&!s.current){const e=l||v.current.gap_items_prompt,i=c||v.current.risk_items_prompt;await r(e,i),_.current.clear(),m.current.clear(),g.current=null,b.current=null,v.current={gap_items_prompt:"",risk_items_prompt:""},f.current.clear()}}}return{processStreamContent:function(e,r,s){try{const p=JSON.stringify(e);if(b.current===p)return;b.current=p;let m=[],v=[];e=e.map(e=>{var t;const o=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(f.current.has(o))return null;f.current.add(o);let{outputText:s,reasonings:a,gpt_citation:u,processedDescription:l}=i(e.value,e.blockNumber,e.storyNumber,e.description);n(e=>{var i;return u.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...u)),{...e}}),m.push(...a),v.push([...a]);let c=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return _.current.has(c)||(h({...e,value:s,description:l},a,r),_.current.add(c)),{...e,value:s,description:l}}).filter(Boolean),m.forEach(e=>{o(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:o,storyNumber:n,description:r,blockNumber:p,big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h},N)=>{t(t=>{var y,k,S,B,R,$,w,C;const O=t.findIndex(e=>e.storyNumber===n);if("intro"===i)-1===O?t.push({artifactId:`STORY-${n}-${p}`,title:e,value:o,description:r,storyNumber:n,sub_features:[],section:i,blockNumber:p,aiReasoning:v[N],big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h}):(t[O].value+=o,t[O].aiReasoning=t[O].aiReasoning||[],null===(k=null===(y=t[O])||void 0===y?void 0:y.aiReasoning)||void 0===k||k.push(...v[N]),t[O].big_enough=_,t[O].big_enough_decision_factors=m,t[O].gapValue=b,t[O].confidenceScore=f,t[O].metadata=h);else{t[O].sub_features||(t[O].sub_features=[]);const r=(null===(B=null===(S=t[O])||void 0===S?void 0:S.sub_features)||void 0===B?void 0:B.findIndex(e=>e.blockNumber===p))||-1;if(-1===r)null===($=null===(R=t[O])||void 0===R?void 0:R.sub_features)||void 0===$||$.push({artifactId:`STORY-${n}-${p}`,title:e,value:o,storyNumber:n,blockNumber:p,section:i,aiReasoning:v[N],big_enough:_,big_enough_decision_factors:m,gapValue:b,confidenceScore:f,metadata:h});else{let e=null===(C=null===(w=null==t?void 0:t[O])||void 0===w?void 0:w.sub_features)||void 0===C?void 0:C[r];e.value=(e.value||"")+o,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...v[N]),e.big_enough=_,e.big_enough_decision_factors=m,e.gapValue=b,e.confidenceScore=f,e.metadata=h}}const E=JSON.stringify(t);return g.current!==E&&(d({key:`streaming-redis-key-${s}`,value:{mmvf_list:t,knowledgeBase:a,projectAnalyserSummary:u,dataSources_files:l,ai_reasonings:c}}),g.current=E),[...t]})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{t as useStreamContentHandler};
1
+ import{useState as e,useRef as i,useEffect as t}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function n({setUserStory:n,setAiReasoning:r,setUserStoryCitations:s,onStreamingCompleted:a,isGraphQLCallInProgress:l,knowledgeBase:u,projectAnalyserSummary:c,dataSourceFiles:d,aiReasoning:p,setRedisValue:_,fetchCitationByBlock:m}){const[g,f]=e({finalGap:"",finalRisk:"",status:"in-progress"}),b=i(new Set),v=i(new Set),h=i(null),k=i(null),y=i({gap_items_prompt:"",risk_items_prompt:""}),N=i(new Set);return t(()=>{"complete"!==g.status||l||(a(g.finalGap,g.finalRisk),b.current.clear(),v.current.clear(),h.current=null,k.current=null,y.current={gap_items_prompt:"",risk_items_prompt:""},N.current.clear(),f({finalGap:"",finalRisk:"",status:"in-progress"}))},[g,l]),{processStreamContent:function(e,i,t){try{const a=JSON.stringify(e);if(k.current===a)return;k.current=a;let l=[],g=[];e=e.map(e=>{var t;const n=`${(e={...e,subBlockNumber:null!==(t=e.subBlockNumber)&&void 0!==t?t:"1"}).storyNumber}-${e.blockNumber}-${e.subBlockNumber}`;if(N.current.has(n))return null;N.current.add(n);let{outputText:a,reasonings:u,gpt_citation:c,processedDescription:d}=o(e.value,e.blockNumber,e.storyNumber,e.description);s(e=>{var i;return c.length>0&&((null==e?void 0:e.gpt_citations)||(e.gpt_citations=[]),null===(i=e.gpt_citations)||void 0===i||i.push(...c)),{...e}}),l.push(...u),g.push([...u]);const p=u.filter(e=>e.on_demand).flatMap(e=>[...e.reason.matchAll(/<a[^>]*href="([^"]+)\?type=on_demand"/g),...e.gap.matchAll(/<a[^>]*href="([^"]+)\?type=on_demand"/g)].map(e=>{const[i,t]=e[1].split("$");return"book_citation_doc"!==i&&"book_citation_pdf"!==i&&"document_citation"!==i?null:{citation_number:t,customMetadata:{type:"document_citation"===i?"book_citation_pdf":i,file_name:"",fileType:"",gcs_upload_url:""}}}).filter(Boolean));p.length&&s(e=>{var i;return{...e,file_citations:[...null!==(i=e.file_citations)&&void 0!==i?i:[],...p]}});let _=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}<SUB_BLOCK>${e.subBlockNumber}`;return b.current.has(_)||(!async function(e,i,t){var o,n;let a="",l="";try{const u=await m(e,t,i);r(e=>{var i;const t=[...e];return null===(i=u.response.ai_reasonings)||void 0===i||i.forEach(e=>{const i=t.findIndex(i=>i.id===e.id);-1!==i&&e.gap.length>0&&e.reason.length>0&&(t[i]={...e})}),t}),a=(null===(o=u.response)||void 0===o?void 0:o.gap_items_prompt)||"",l=(null===(n=u.response)||void 0===n?void 0:n.risk_items_prompt)||"",(a||l)&&(y.current={gap_items_prompt:a,risk_items_prompt:l}),s(e=>{var i,t,o,n,r,s,a,l,c,d,p,_,m,g;return{...e,appmod_citations:[...null!==(i=e.appmod_citations)&&void 0!==i?i:[],...null!==(t=u.response.appmod_citations)&&void 0!==t?t:[]],audio_citations:[...null!==(o=e.audio_citations)&&void 0!==o?o:[],...null!==(n=u.response.audio_citations)&&void 0!==n?n:[]],file_citations:[...null!==(r=e.file_citations)&&void 0!==r?r:[],...null!==(s=u.response.file_citations)&&void 0!==s?s:[]],image_citations:[...null!==(a=e.image_citations)&&void 0!==a?a:[],...null!==(l=u.response.image_citations)&&void 0!==l?l:[]],rca_citations:[...null!==(c=e.rca_citations)&&void 0!==c?c:[],...null!==(d=u.response.rca_citations)&&void 0!==d?d:[]],web_citations:[...null!==(p=e.web_citations)&&void 0!==p?p:[],...null!==(_=u.response.web_citations)&&void 0!==_?_:[]],readfile_citations:[...null!==(m=e.readfile_citations)&&void 0!==m?m:[],...null!==(g=u.response.readfile_citations)&&void 0!==g?g:[]]}})}catch(i){console.error("[liblogs] processCitationsByBlock error — story:%s block:%s",e.storyNumber,e.blockNumber,i)}finally{let i=`<STORY_NUMBER>${e.storyNumber}<BLOCK_NUMBER>${e.blockNumber}`;if(v.current.add(i),v.current.size===b.current.size){const e=a||y.current.gap_items_prompt,i=l||y.current.risk_items_prompt;f({finalGap:e,finalRisk:i,status:"complete"})}}}({...e,value:a,description:d},u,i),b.current.add(_)),{...e,value:a,description:d}}).filter(Boolean),l.forEach(e=>{r(i=>(i.find(i=>i.id===e.id)||i.push(e),[...i]))}),e.length>0&&e.map(({title:e,section:i,value:o,storyNumber:r,description:s,blockNumber:a,big_enough:l,big_enough_decision_factors:m,gapValue:f,confidenceScore:b,metadata:v},k)=>{n(n=>{var y,N,S,R,B,$,C,w;const O=n.findIndex(e=>e.storyNumber===r);if("intro"===i)-1===O?n.push({artifactId:`STORY-${r}-${a}`,title:e,value:o,description:s,storyNumber:r,sub_features:[],section:i,blockNumber:a,aiReasoning:g[k],big_enough:l,big_enough_decision_factors:m,gapValue:f,confidenceScore:b,metadata:v}):(n[O].value+=o,n[O].aiReasoning=n[O].aiReasoning||[],null===(N=null===(y=n[O])||void 0===y?void 0:y.aiReasoning)||void 0===N||N.push(...g[k]),n[O].big_enough=l,n[O].big_enough_decision_factors=m,n[O].gapValue=f,n[O].confidenceScore=b,n[O].metadata=v);else{n[O].sub_features||(n[O].sub_features=[]);const t=(null===(R=null===(S=n[O])||void 0===S?void 0:S.sub_features)||void 0===R?void 0:R.findIndex(e=>e.blockNumber===a))||-1;if(-1===t)null===($=null===(B=n[O])||void 0===B?void 0:B.sub_features)||void 0===$||$.push({artifactId:`STORY-${r}-${a}`,title:e,value:o,storyNumber:r,blockNumber:a,section:i,aiReasoning:g[k],big_enough:l,big_enough_decision_factors:m,gapValue:f,confidenceScore:b,metadata:v});else{let e=null===(w=null===(C=null==n?void 0:n[O])||void 0===C?void 0:C.sub_features)||void 0===w?void 0:w[t];e.value=(e.value||"")+o,e.aiReasoning=e.aiReasoning||[],e.aiReasoning.push(...g[k]),e.big_enough=l,e.big_enough_decision_factors=m,e.gapValue=f,e.confidenceScore=b,e.metadata=v}}const E=JSON.stringify(n);return h.current!==E&&(_({key:`streaming-redis-key-${t}`,value:{mmvf_list:n,knowledgeBase:u,projectAnalyserSummary:c,dataSources_files:d,ai_reasonings:p}}),h.current=E),[...n]})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{n as useStreamContentHandler};
2
2
  //# sourceMappingURL=useStreamContentHandler.js.map
@@ -0,0 +1,2 @@
1
+ import t from"react-hot-toast";const r=(t,r)=>new Promise((o,e)=>{if(null==r?void 0:r.aborted)return void e(new DOMException("Operation aborted","AbortError"));const a=setTimeout(o,t);null==r||r.addEventListener("abort",()=>{clearTimeout(a),e(new DOMException("Operation aborted","AbortError"))},{once:!0})});async function o(o,e={}){const{maxAttempts:a=5,initialDelayMs:n=500,maxDelayMs:i=3e4,backoffFactor:l=2,jitter:s=!0,signal:c,shouldRetry:m=()=>!0,onRetry:f}=e;if(a<1)throw new Error("maxAttempts must be at least 1");let u;for(let e=1;e<=a;e++){null==c||c.throwIfAborted();try{return await o(e)}catch(o){u=o;if(e===a||!m(o,e))throw o;const d=Math.min(n*l**(e-1),i),h=s?Math.floor(Math.random()*d):d;t.error(`Request failed. Retrying attempt ${e} of ${a}.`),null==f||f(o,e,h),await r(h,c)}}throw u}export{o as retryWithExponentialBackoff};
2
+ //# sourceMappingURL=exponential-retry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exponential-retry.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- function e(e){try{return e}catch(e){console.error("Error in formatMarkdown",e)}}function r(e){return e.includes("Acceptance Criteria")?e=null==(e=null==(e=null==(e=null==e?void 0:e.replace(/\\n/g,"\n"))?void 0:e.replace(/(\*\*.+?\*\*)\s*:/g,"\n$1:\n"))?void 0:e.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(e,r)=>{const n=r.split(".");return`${" ".repeat(n.length-1)}${r}.`}))?void 0:e.replace(/([^\n])\n(?![\n\*#])/g,"$1<br>\n"):e}const n=e=>{if(!e)return"";e=(e=(e=(e=(e=e.replace(/%&&%[\s\S]*?%&&%/g,"")).replace(/<!--[\s\S]*?-->/g,"")).replace(/<crredirection[^>]*>[\s\S]*?<\/crredirection>/gi,"")).replace(/<answerExample[^>]*>[\s\S]*?<\/answerExample>/gi,"")).replace(/<a\s+data-cognitive-reasoning[^>]*>[\s\S]*?<\/a>/gi,"");return["b","strong","i","em","u","ol","ul","li","p","div","span","h1","h2","h3","h4","h5","h6","highlight","br","hr"].forEach(r=>{const n=new RegExp(`</?${r}[^>]*>`,"gi");e=e.replace(n,"")}),e=(e=(e=(e=(e=e.replace("ð","")).replace(/\*\*/g,"")).replace(/\n/g," ")).replace(/\s+/g," ")).trim()},a=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return Array.from(r.querySelectorAll('a[href^="ai_reasoning$"]')).map(e=>e.getAttribute("href").replace("ai_reasoning$",""))},t=e=>{const r=(new DOMParser).parseFromString(e,"text/html");return r.querySelectorAll('a[href^="ai_reasoning$"]').forEach(e=>{e.remove()}),r.body.innerHTML.trim()};export{a as extractAllAiReasoningIds,e as formatMarkdown,r as indentMarkdown,t as stripAiReasoningAnchors,n as stripHtmlAndMetadata};
1
+ function r(r){try{return r}catch(r){console.error("Error in formatMarkdown",r)}}function e(r){return r.includes("Acceptance Criteria")?r=null==(r=null==(r=null==(r=null==r?void 0:r.replace(/\\n/g,"\n"))?void 0:r.replace(/(\*\*.+?\*\*)\s*:/g,"\n$1:\n"))?void 0:r.replace(/(?<!\d)(\d+(?:\.\d+)+)\./g,(r,e)=>{const n=e.split(".");return`${" ".repeat(n.length-1)}${e}.`}))?void 0:r.replace(/([^\n])\n(?![\n\*#])/g,"$1<br>\n"):r}const n=r=>{if(!r)return"";r=(r=(r=(r=(r=r.replace(/%&&%[\s\S]*?%&&%/g,"")).replace(/<!--[\s\S]*?-->/g,"")).replace(/<crredirection[^>]*>[\s\S]*?<\/crredirection>/gi,"")).replace(/<answerExample[^>]*>[\s\S]*?<\/answerExample>/gi,"")).replace(/<a\s+data-cognitive-reasoning[^>]*>[\s\S]*?<\/a>/gi,"");return["b","strong","i","em","u","ol","ul","li","p","div","span","h1","h2","h3","h4","h5","h6","highlight","br","hr"].forEach(e=>{const n=new RegExp(`</?${e}[^>]*>`,"gi");r=r.replace(n,"")}),r=(r=(r=(r=(r=r.replace("ð","")).replace(/\*\*/g,"")).replace(/\n/g," ")).replace(/\s+/g," ")).trim()},t=r=>{const e=(new DOMParser).parseFromString(r,"text/html");return Array.from(e.querySelectorAll('a[href^="ai_reasoning$"]')).map(r=>r.getAttribute("href").replace("ai_reasoning$",""))},a=r=>{const e=(new DOMParser).parseFromString(r,"text/html");return e.querySelectorAll('a[href^="ai_reasoning$"]').forEach(r=>{r.remove()}),e.body.innerHTML.trim()},i=(r="",e)=>{const n=r.split("?")[1]||"";if(!n)return"";try{return new URLSearchParams(n).get(e)||""}catch(r){return console.error("Failed to parse citation href query params",r),""}},o=["rulebook_citation","il_rulebook_citation","rulebook_chunk"];export{t as extractAllAiReasoningIds,r as formatMarkdown,i as getHrefQueryParam,o as guidelineCitationTypes,e as indentMarkdown,a as stripAiReasoningAnchors,n as stripHtmlAndMetadata};
2
2
  //# sourceMappingURL=helpers.js.map
@@ -1,2 +1,2 @@
1
- const e=e=>{const t=[];try{const n="<BLOCK_STREAM_START>",r="<BLOCK_STREAM_END>";let i=0;for(;;){const o=e.indexOf(n,i);if(-1===o)break;const s=e.indexOf(r,o+n.length);if(-1===s)break;const c=e.slice(o+n.length,s).trim();t.push(JSON.parse(c)),i=s+r.length}}catch(e){console.error("Error in extracting blocks from stream",e)}finally{return t}};function t(e,t,i,o){const s=[];let c="";const a=[];let l="";console.log("RAW INPUT",JSON.stringify(e),JSON.stringify(o));try{const u=e=>e.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\\"|")>([\s\S]*?)<\/a>/g,(e,o,c,l,u,f)=>{var d,h,g,p,_;const b=`${l}<BLOCK_NUMBER>${t}<STORY_NUMBER>${i}`,$=function(e){const t=new Map,n="<gpt_citation ",r="</gpt_citation>";let i=0;for(;;){const o=e.indexOf(n,i);if(-1===o)break;const s=e.indexOf(">",o);if(-1===s)break;const c=e.indexOf(r,s);if(-1===c)break;const a=e.slice(o,c+r.length),l=e.slice(o,s+1),u=l.indexOf("id=");if(-1!==u){let e=u+3;"\\"===l[e]&&e++,'"'!==l[e]&&"'"!==l[e]||e++;let n="";for(;e<l.length&&/\d/.test(l[e]);)n+=l[e++];n&&t.set(n,a)}i=c+r.length}return t}(f);console.log("RAW INPUT",$);const m=f.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),v=f.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),O=f.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/);let T=(null===(d=null==m?void 0:m[2])||void 0===d?void 0:d.trim())||"",S=(null===(h=null==v?void 0:v[2])||void 0===h?void 0:h.trim())||"";T=n(T,b),S=n(S,b),$.forEach((e,t)=>{const n=`${b}<GPT_CITATION_ID>${t}`;a.push(r(e,n))}),s.push({id:b,reason:T,reasonSource:(null===(g=null==m?void 0:m[1])||void 0===g?void 0:g.trim())||"",gap:S,gapSource:(null===(p=null==v?void 0:v[1])||void 0===p?void 0:p.trim())||"",relevance_score:Number(null===(_=null==O?void 0:O[1])||void 0===_?void 0:_.trim())||0});return`<a ${o?'table="true"':""} href=${c}ai_reasoning$${b}${u}>Source</a>`});c=u(e),o&&(l=u(o))}catch(t){console.error("Error in extracting AI Reasoning from this block:",e)}finally{return{outputText:c,reasonings:s,gpt_citation:a,processedDescription:l}}}function n(e,t){if(!e)return e;let n="",r=0;for(;;){const i=e.indexOf("<gpt_citation_here ",r);if(-1===i){n+=e.slice(r);break}n+=e.slice(r,i);const o=e.indexOf(">",i);if(-1===o){n+=e.slice(i);break}const s=e.slice(i,o+1),c=s.indexOf("id=");let a="";if(-1!==c){let e=c+3;for("\\"===s[e]&&e++,'"'!==s[e]&&"'"!==s[e]||e++;e<s.length&&/\d/.test(s[e]);)a+=s[e++]}if(a){n+=`<a href="gpt_citation$${`${t}<GPT_CITATION_ID>${a}`}">Source</a>`}r=o+1}return n}function r(e,t){const n=t=>{const n=new RegExp(`<${t}>([\\s\\S]*?)<\\/${t}>`,"gi"),r=[];let i;for(;null!==(i=n.exec(e));)r.push(i[1].trim());return r},r=n("domain"),i=n("paraphrase");return{citation_number:t,customMetadata:{type:"gpt_citation",data_sources:n("data_sources"),training_data_title:r,paraphrase:i}}}const i=(e,t,n)=>{let r=e.includes("<h1><b>Title</b></h1>\n\n")?e:n?`<h1><b>Title</b></h1>\n\n${n} \n${e}`:e;return r=r.includes("<h1><b>Requirement Type</b></h1>\n\n")?r:t?`<h1><b>Requirement Type</b></h1>\n\n${t} \n${r}`:r,r};function o(e){try{const t=/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i,n=e.match(t);if(n)return n[1].trim()}catch(e){}return null}export{e as extractBlockStreams,o as extractDescription,r as parseGptCitation,t as processAIReasoningFromBlocks,i as processUserStoryValue,n as replaceGptCitation};
1
+ const e=e=>{const n=[];try{const t="<BLOCK_STREAM_START>",i="<BLOCK_STREAM_END>";let o=0;for(;;){const r=e.indexOf(t,o);if(-1===r)break;const s=e.indexOf(i,r+t.length);if(-1===s)break;const c=e.slice(r+t.length,s).trim();n.push(JSON.parse(c)),o=s+i.length}}catch(e){console.error("Error in extracting blocks from stream",e)}finally{return n}},n=e=>e.replace(/<onDemandCitation\s+type=(?:\\"|")([^"]+)(?:\\"|")\s+citationNo=(?:\\"|")(\d+)(?:\\"|")\s*(?:\/>|><\/onDemandCitation>)/g,(e,n,t)=>`<a href="${n}$${t}?type=on_demand">Source</a>`);function t(e,t,r,s){const c=[];let a="";const l=[];let u="";console.log("RAW INPUT",JSON.stringify(e),JSON.stringify(s));try{const d=e=>e.replace(/<a\s+(?:(table="true")\s+)?href=(\\"|")ai_reasoning\$(\d+)(\?[^\\"]*)?(\\"|")>([\s\S]*?)<\/a>/g,(e,s,a,u,d,f,h)=>{var p,g,_,m,$;const b=`${u}<BLOCK_NUMBER>${t}<STORY_NUMBER>${r}`,v=!!d&&d.includes("type=on_demand"),O=function(e){const n=new Map,t="<gpt_citation ",i="</gpt_citation>";let o=0;for(;;){const r=e.indexOf(t,o);if(-1===r)break;const s=e.indexOf(">",r);if(-1===s)break;const c=e.indexOf(i,s);if(-1===c)break;const a=e.slice(r,c+i.length),l=e.slice(r,s+1),u=l.indexOf("id=");if(-1!==u){let e=u+3;"\\"===l[e]&&e++,'"'!==l[e]&&"'"!==l[e]||e++;let t="";for(;e<l.length&&/\d/.test(l[e]);)t+=l[e++];t&&n.set(t,a)}o=c+i.length}return n}(h);console.log("RAW INPUT",O);const S=h.match(/<reason(?:\s+source="([^"]*)")?>([\s\S]*?)<\/reason>/),T=h.match(/<gap(?:\s+source="([^"]*)")?>([\s\S]*?)<\/gap>/),x=h.match(/<relevance_score>([\s\S]*?)<\/relevance_score>/);let y=(null===(p=null==S?void 0:S[2])||void 0===p?void 0:p.trim())||"",N=(null===(g=null==T?void 0:T[2])||void 0===g?void 0:g.trim())||"";y=n(y),N=n(N),y=i(y,b),N=i(N,b),O.forEach((e,n)=>{const t=`${b}<GPT_CITATION_ID>${n}`;l.push(o(e,t))}),c.push({id:b,reason:y,reasonSource:(null===(_=null==S?void 0:S[1])||void 0===_?void 0:_.trim())||"",gap:N,gapSource:(null===(m=null==T?void 0:T[1])||void 0===m?void 0:m.trim())||"",relevance_score:Number(null===($=null==x?void 0:x[1])||void 0===$?void 0:$.trim())||0,on_demand:v});return`<a ${s?'table="true"':""} href=${a}ai_reasoning$${b}${d||""}${f}>Source</a>`});a=d(e),s&&(u=d(s))}catch(n){console.error("Error in extracting AI Reasoning from this block:",e)}finally{return{outputText:a,reasonings:c,gpt_citation:l,processedDescription:u}}}function i(e,n){if(!e)return e;let t="",i=0;for(;;){const o=e.indexOf("<gpt_citation_here ",i);if(-1===o){t+=e.slice(i);break}t+=e.slice(i,o);const r=e.indexOf(">",o);if(-1===r){t+=e.slice(o);break}const s=e.slice(o,r+1),c=s.indexOf("id=");let a="";if(-1!==c){let e=c+3;for("\\"===s[e]&&e++,'"'!==s[e]&&"'"!==s[e]||e++;e<s.length&&/\d/.test(s[e]);)a+=s[e++]}if(a){t+=`<a href="gpt_citation$${`${n}<GPT_CITATION_ID>${a}`}">Source</a>`}i=r+1}return t}function o(e,n){const t=n=>{const t=new RegExp(`<${n}>([\\s\\S]*?)<\\/${n}>`,"gi"),i=[];let o;for(;null!==(o=t.exec(e));)i.push(o[1].trim());return i},i=t("domain"),o=t("paraphrase");return{citation_number:n,customMetadata:{type:"gpt_citation",data_sources:t("data_sources"),training_data_title:i,paraphrase:o}}}const r=(e,n,t)=>{let i=e.includes("<h1><b>Title</b></h1>\n\n")?e:t?`<h1><b>Title</b></h1>\n\n${t} \n${e}`:e;return i=i.includes("<h1><b>Requirement Type</b></h1>\n\n")?i:n?`<h1><b>Requirement Type</b></h1>\n\n${n} \n${i}`:i,i};function s(e){try{const n=/<h2>\s*(?:<b>)?Description(?:<\/b>)?\s*<\/h2>\s*([\s\S]*?)(?=\s*<h2>|$)/i,t=e.match(n);if(t)return t[1].trim()}catch(e){}return null}export{e as extractBlockStreams,s as extractDescription,o as parseGptCitation,t as processAIReasoningFromBlocks,r as processUserStoryValue,i as replaceGptCitation};
2
2
  //# sourceMappingURL=proccess-stream.utils.js.map
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{createBoundaryCardOptions,isBoundaryReviewAction}from"./features/SegmentReviewComponents/BoundaryCard.js";import"tslib";import"react/jsx-runtime";import"react";import"@mui/material/Box";import"@mui/material/Popper";import"@mui/material/SvgIcon";export{default as CognitiveIntegrity}from"./features/SegmentReviewComponents/CognitiveIntegrity.js";export{createLabelCheckOptions,isLabelReviewAction}from"./features/SegmentReviewComponents/LabelCheck.js";export{default as PageCheck,isPageCheckAction}from"./features/SegmentReviewComponents/PageCheck.js";export{extractSegmentReviewData}from"./features/SegmentReviewComponents/reviewStepAdapters.js";export{default as RevertCard}from"./features/SegmentReviewComponents/RevertCard.js";export{default as RevertSuccessCard}from"./features/SegmentReviewComponents/RevertSuccessCard.js";export{SegmentPdfSpecialZoomLevel,default as SegmentReviewPdfWrapper}from"./features/SegmentReviewComponents/SegmentReviewPdfWrapper.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{ReviewPanel}from"./features/ReviewPanel/ReviewPanel.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as SPBAnalysisPanel}from"./features/SPBAnalysisPanel/Spbanalysispanel.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
1
+ export{default as CodeCitation}from"./features/CodeCitation/CodeCitation.js";export{default as ProjectAccordian}from"./features/ProjectAccordion/ProjectAccordion.js";export{default as BookCitation}from"./features/BookCitation/BookCitation.js";export{default as Bookemon}from"./features/Bookemon/Bookemon.js";export{PdfEditorCitation as PdfCitation}from"./features/PdfEditorCitation/PdfEditorCitation.js";export{default as CitationRenderer}from"./features/CitationRenderer/CitationRenderer.js";export{default as MarkdownRenderer}from"./features/CitationRenderer/MarkdownRenderer.js";export{DiagnosticSeverity}from"./features/CodeCitation/_components/CodeEditor.js";export{default as PaginatedTable}from"./features/PaginatedTable/PaginatedTable.js";export{default as InternalgptReasoningComponent,default as NonWebReasoningComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptReasoningComponent.js";export{default as ChatCitation}from"./features/ChatCitation/ChatCitationRenderer.js";export{default as CognitiveDecisioningCard}from"./features/CognitiveDecisioning/CognitiveDecisioningWrapper.js";export{default as PdfViewer}from"./features/PdfViewer/PdfViewer.js";export{default as FaqCitation}from"./features/CognitiveDecisioning/FaqCitation/FaqCitation.js";export{default as ImageCitationContent}from"./features/RequirementAiCitations/ImageCitation/ImageCitationContent.js";export{default as VideoCitationContent}from"./features/RequirementAiCitations/VideoCitation/VideoCitationContent.js";export{default as FileCitationContent}from"./features/RequirementAiCitations/FileCitation/FileCitationContent.js";export{default as WebCitationWithImageContent}from"./features/RequirementAiCitations/WebCitation/WebCitationWithImageContent.js";export{default as MarkdownWithImageCitation}from"./features/MarkdownWithImageCitation/MarkdownWithImageCitation.js";export{default as AiReasoningCitation}from"./features/RequirementAiCitations/AiReasoning/AiReasoningCitation.js";export{default as TableCitationContent}from"./features/TableCitation/TableCitationContent.js";export{default as CitationsViewer}from"./features/CitationViewer/CitationsViewer.js";export{default as ExcelCitation}from"./features/ExcelCitation/ExcelCitations.js";export{default as ScannedDocCitation}from"./features/ScannedDocCitation/ScannedDocCitation.js";export{default as ChatDrawer}from"./features/ChatDrawer/ChatDrawer.js";export{FILE_INGESTION_STATUS,SUMMARY_EXPAND_HEIGHT_NUDGE,TRUNCATE_THRESHOLD}from"./features/ChatDrawer/constants/ChatDrawer.js";export{default as SplitterCitationsComponent}from"./features/SplitterCitations/SplitterCitationsComponent.js";export{SourcesBQCitation,findSourceCitation,parseSourcesBQHref}from"./features/DualCitation/SourceBQDataCompnent.js";export{default as CognitiveCompare}from"./features/CognitiveCompare/CognitiveCompare.js";export{default as CognitiveInternalgptCoreComponent}from"./features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";export{default as TextualGuideLinesComponent}from"./features/TextualGuidelines/TextualGuideLinesComponent.js";export{default as RuleBookCitationWrapper}from"./features/RulebookCitations/RuleBookCitationWrapper.js";export{IngestionStatusChip,IngestionStatusComponent}from"./features/IngestionStatus/IngestionStatusComponent.js";export{ManageReminders}from"./features/ManageRemainders/ManageReminders.js";export{default as PromptemonBlockViewer}from"./features/PromptemonBlockViewer/PromptemonBlockViewer.js";export{default as PromptemonViewer}from"./features/PromptemonViewer/PromptemonViewer.js";export{default as SPBAnalysisPanel}from"./features/SPBAnalysisPanel/Spbanalysispanel.js";export{default as GptWebCitation}from"./features/GptWebCitation/GptWebCitation.js";export{useOnDemandCitationFetch}from"./hooks/useOnDemandCitationFetch.js";export{default as InstantLearningCitationWrapper}from"./features/InstantLearningCitation/InstantLearningCitationComponent.js";export{default as BPACitationRenderer}from"./features/BPACitationRenderer/BPACitationRenderer.js";export{extractLearnedFromUrl,extractRelevanceScoreFromContent,extractTopicFromContent,getWebCitationImageUrl,mapCitationDataToDisplay,resolveSkeletonVisitUrl,sanitizeExternalUrl}from"./features/GptWebCitation/utils/citationData.utils.js";export{CitationType,allowsGptCitationView,allowsWebCitationView,showsCitationViewToggle}from"./features/GptWebCitation/types.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import e from"axios";const n=async n=>{try{console.log("[getRedlineDocumentId] Request:",n);const{data:o}=await e.get(`${n.baseApiUrl}/book-finder-mode/get_comparison/${n.comparisonId}`);return console.log("[getRedlineDocumentId] Response:",o),o}catch(e){console.log("[getRedlineDocumentId] Error:",e)}return null},o=async(n,o)=>{try{console.log("[createRedlineDocument] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/create`,{user_name:n.userName,user_email:n.userEmail,redline_config_id:n.redlineConfigId,changelog_config_id:n.changelogConfigId,artifact_id:n.artifactId,input_data:n.inputData,document_metadata:{comparison_id:n.comparisonId}},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[createRedlineDocument] Response:",t),t}catch(e){console.log("[createRedlineDocument] Error:",e)}return null},t=async(n,o)=>{try{console.log("[updateRedlineDocument] Request:",n);const{data:t}=await e.put(`${n.baseApiUrl}/redlining/update-manual`,{document_id:n.documentId,segment_id:n.sectionId,user_name:n.userName,user_email:n.userEmail,new_plain_content:n.updatedContent,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[updateRedlineDocument] Response:",t),t}catch(e){console.log("[updateRedlineDocument] Error:",e)}return null},i=async(n,o)=>{try{console.log("[resolveRedline] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/resolve`,{document_id:n.documentId,user_name:n.userName,user_email:n.userEmail,redline_id:n.redlineId,action:n.action,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[resolveRedline] Response:",t),t}catch(e){console.log("[resolveRedline] Error:",e)}return null},r=async(n,o)=>{try{console.log("[fetchRedlineDocumentSection] Request:",n);const{data:t}=await e.get(`${n.baseApiUrl}/redlining/segment/${n.documentId}/${n.sectionId}?redline_config_id=${n.redlineConfigId}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[fetchRedlineDocumentSection] Response:",t),t}catch(e){console.log("[fetchRedlineDocumentSection] Error:",e)}return null};export{o as createRedlineDocument,r as fetchRedlineDocumentSection,n as getRedlineDocumentId,i as resolveRedline,t as updateRedlineDocument};
1
+ import e from"axios";const n=async n=>{try{console.log("[getRedlineDocumentId] Request:",n);const o=await e.get(`${n.baseApiUrl}/book-finder-mode/get_comparison/${n.comparisonId}`);if(200===o.status)return console.log("[getRedlineDocumentId] Response:",o.data),o.data;500===o.status&&console.error("[getRedlineDocumentId] Server error:",o.data)}catch(e){throw console.log("[getRedlineDocumentId] Error:",e),e}},o=async(n,o)=>{try{console.log("[createRedlineDocument] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/create`,{user_name:n.userName,user_email:n.userEmail,redline_config_id:n.redlineConfigId,changelog_config_id:n.changelogConfigId,artifact_id:n.artifactId,input_data:n.inputData,document_metadata:{comparison_id:n.comparisonId}},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[createRedlineDocument] Response:",t),t}catch(e){console.log("[createRedlineDocument] Error:",e)}return null},t=async(n,o)=>{try{console.log("[updateRedlineDocument] Request:",n);const{data:t}=await e.put(`${n.baseApiUrl}/redlining/update-manual`,{document_id:n.documentId,segment_id:n.sectionId,user_name:n.userName,user_email:n.userEmail,new_plain_content:n.updatedContent,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[updateRedlineDocument] Response:",t),t}catch(e){console.log("[updateRedlineDocument] Error:",e)}return null},r=async(n,o)=>{try{console.log("[resolveRedline] Request:",n);const{data:t}=await e.post(`${n.baseApiUrl}/redlining/resolve`,{document_id:n.documentId,user_name:n.userName,user_email:n.userEmail,redline_id:n.redlineId,action:n.action,redline_config_id:n.redlineConfigId},{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[resolveRedline] Response:",t),t}catch(e){console.log("[resolveRedline] Error:",e)}return null},i=async(n,o)=>{if(!(n.documentId&&"string"==typeof n.documentId&&n.documentId.trim()&&n.sectionId&&"string"==typeof n.sectionId&&n.sectionId.trim()&&n.baseApiUrl&&"string"==typeof n.baseApiUrl&&n.baseApiUrl.trim()&&n.redlineConfigId&&"string"==typeof n.redlineConfigId&&n.redlineConfigId.trim()))return console.error("[fetchRedlineDocumentSection] Invalid or missing payload parameters"),null;try{console.log("[fetchRedlineDocumentSection] Request:",n);const{data:t}=await e.get(`${n.baseApiUrl}/redlining/segment/${n.documentId}/${n.sectionId}?redline_config_id=${n.redlineConfigId}`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${o}`}});return console.log("[fetchRedlineDocumentSection] Response:",t),t}catch(e){console.log("[fetchRedlineDocumentSection] Error:",e)}return null};export{o as createRedlineDocument,i as fetchRedlineDocumentSection,n as getRedlineDocumentId,r as resolveRedline,t as updateRedlineDocument};
2
2
  //# sourceMappingURL=redlineService.js.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=CitationAccordionTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CitationAccordionTest.d.ts","sourceRoot":"","sources":["../../../src/CitationAccordionTest.tsx"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=MockDeviationSummary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MockDeviationSummary.d.ts","sourceRoot":"","sources":["../../../src/MockDeviationSummary.tsx"],"names":[],"mappings":""}
@@ -1 +1 @@
1
- {"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AA6BA,iBAAS,iBAAiB,4CAo3BzB;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"RedlineEditorTest.d.ts","sourceRoot":"","sources":["../../../src/RedlineEditorTest.tsx"],"names":[],"mappings":"AA6BA,iBAAS,iBAAiB,4CAinBzB;AAED,eAAe,iBAAiB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+CAutFtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"RequirementAiTest.d.ts","sourceRoot":"","sources":["../../../src/RequirementAiTest.tsx"],"names":[],"mappings":"AA8BA,OAAO,EAA2B,cAAc,EAAE,aAAa,EAAE,MAAM,+EAA+E,CAAC;AAUvJ,QAAA,MAAM,iBAAiB,+CAwtFtB,CAAC;AAiVF,eAAO,MAAM,iBAAiB,EAAE,cAAc,EAoH7C,CAAC;AAGF,eAAO,MAAM,gBAAgB,EAAE,aAAa,EAoV3C,CAAC;AAGF,eAAO,MAAM,mBAAmB,YACrB,cAAc,EAAE,GAAG,aAAa,EAAE;;;;;CA0B5C,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAcf,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE;QACV,qBAAqB,CAAC,EAAE,aAAa,CAAC;QACtC,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;QACrC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CACxD;AAucD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwNjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"CitationAnchor.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CitationAnchor.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,EACV,aAAa,EAKhB,MAAM,OAAO,CAAC;AAcf,UAAU,mBAAmB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,GAAG,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACrC,oBAAoB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvC,WAAW,CAAC,EAAE;QACV,qBAAqB,CAAC,EAAE,aAAa,CAAC;QACtC,KAAK,CAAC,EAAE,aAAa,CAAC;QACtB,cAAc,CAAC,EAAE,aAAa,CAAC;QAC/B,iBAAiB,CAAC,EAAE,aAAa,CAAC;QAClC,UAAU,CAAC,EAAE,aAAa,CAAC;QAC3B,QAAQ,CAAC,EAAE,aAAa,CAAC;QACzB,SAAS,CAAC,EAAE,aAAa,CAAC;QAC1B,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,mBAAmB,CAAC,EAAE,aAAa,CAAC;QACpC,eAAe,CAAC,EAAE,aAAa,CAAC;QAChC,oBAAoB,CAAC,EAAE,aAAa,CAAC;QACrC,eAAe,CAAC,EAAE,aAAa,CAAC;KACnC,CAAC;IACF,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,kBAAkB,CAAC,EAAE,CAAC,YAAY,EAAE,OAAO,KAAK,IAAI,CAAC;CACxD;AAgeD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAgOjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { CognitiveCompareProps } from "./CognitiveCompareTypes";
2
2
  import { SHARED_MARKDOWN_STYLES } from "./CognitiveCompareConfig";
3
- declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, gptWebCitationConfig }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
3
+ declare const CognitiveCompare: ({ componentHeaderText, treeData, comparisonConfig, leftColumnTitleText, rightColumnTitleText, markdownStyles, resetTrigger, displayConfig, onMaintainRelativeOrderChange, popupConfig, deviationData, deviationNodeIdToView, resetDeviationNodeId, isProposingFix, proposingFixNodeId, isRedlineFlow, badgeStyleOverride, guidelinesData, isGuidelineMode: isGuidelineModeFromParent, gptWebCitationConfig }: CognitiveCompareProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export { SHARED_MARKDOWN_STYLES };
5
5
  export default CognitiveCompare;
6
6
  //# sourceMappingURL=CognitiveCompare.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AA6BlC,QAAA,MAAM,gBAAgB,qWA6BnB,qBAAqB,4CAy7FvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"CognitiveCompare.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompare.tsx"],"names":[],"mappings":"AA4CA,OAAO,EAEL,qBAAqB,EAOtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAGL,sBAAsB,EACvB,MAAM,0BAA0B,CAAC;AAgClC,QAAA,MAAM,gBAAgB,iZA8BnB,qBAAqB,4CAg/FvB,CAAC;AAEF,OAAO,EAAE,sBAAsB,EAAE,CAAC;AAClC,eAAe,gBAAgB,CAAC"}
@@ -102,7 +102,7 @@ export interface GptWebCitationConfig {
102
102
  headers?: Record<string, string>;
103
103
  }
104
104
  export interface CognitiveCompareProps {
105
- guidelinesData?: Record<string, any> | null;
105
+ guidelinesData?: string | Record<string, any> | null;
106
106
  gptWebCitationConfig?: GptWebCitationConfig;
107
107
  isGuidelineMode?: boolean;
108
108
  componentHeaderText?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAA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AAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
1
+ {"version":3,"file":"CognitiveCompareTypes.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveCompareTypes.ts"],"names":[],"mappings":";AAEA,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,0BAA0B,EAAE;QAC1B,OAAO,EAAE;YACP,aAAa,EAAE,MAAM,CAAC;YACtB,eAAe,EAAE,MAAM,CAAC;SACzB,CAAC;QACF,MAAM,EAAE;YACN,CAAC,GAAG,EAAE,MAAM,GACV,uBAAuB,GACvB;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;aAAE,CAAC;SAC1D,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACxC,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACzC,qBAAqB,CAAC,EAAE;QACtB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC/B,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC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CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,CAAA;AAGD,MAAM,MAAM,cAAc,GAAG;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,GAAG,EAAE,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC;AAEJ,MAAM,MAAM,SAAS,CAAC,GAAG,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI,MAAM,CAC3E,GAAG,EACH,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAChC,CAAC"}
@@ -63,6 +63,18 @@ export declare const DEVIATION_BADGE_SEPARATOR = "::";
63
63
  export declare const isMissingStr: (str: string | undefined | null) => boolean;
64
64
  export declare const hasMeaningfulRedlineTags: (content: unknown) => boolean;
65
65
  export declare const stripRedlineTags: (content: unknown) => string;
66
+ export type TextMatchRange = {
67
+ start: number;
68
+ end: number;
69
+ };
70
+ export declare const findTextMatchRange: (content: string, highlight: string, ignorePunctuation?: boolean) => TextMatchRange | null;
71
+ /**
72
+ * Redline highlights can span prose plus one or more Markdown tables. A small
73
+ * structural difference in any later row should not prevent the deviation
74
+ * badge from receiving an inline anchor. Prefer the complete range, then fall
75
+ * back to the first meaningful line that is actually present in the content.
76
+ */
77
+ export declare const findRedlineTextAnchorRange: (content: string, highlight: string) => TextMatchRange | null;
66
78
  export declare const getLhsDeviationDisplayIndexes: (sections: SectionBlock[], leftDocId: string | undefined, deviationNumberRegistry: Record<string, number>) => Map<string, number>;
67
79
  export declare const extractDeviationScore: (evaluationResult: any, fallbackLabel?: any) => any;
68
80
  export declare const getBentArrowPath: (x1: number, y1: number, x2: number, y2: number, radius?: number) => string;
@@ -1 +1 @@
1
- {"version":3,"file":"CognitiveComparehelpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveComparehelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAGjC,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAM5C,CAAC;AAGF,eAAO,MAAM,QAAQ,QAAS,OAAO,KAAG,OAKvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,MAAM,WAYhD,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAO3B,YAAY;sBACH,YAAY,EAAE;cACtB,IAAI,MAAM,EAAE,MAAM,CAAC;;;+BA0B9B,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAC3B,YAAY,oBACH,YAAY,EAAE,YASjC,CAAC;AAGF,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC,CAAC;AAEF,eAAO,MAAM,2BAA2B,SAChC,GAAG,aACE,GAAG,GAAG,GAAG,YACV,OAAO,MAAM,EAAE,MAAM,CAAC,mBAChB,OAAO,MAAM,EAAE,GAAG,CAAC,KAClC,mBAAmB,EAwCrB,CAAC;AAEF,eAAO,MAAM,WAAW,SAChB,GAAG,aACE,GAAG,GAAG,GAAG,YACV,OAAO,MAAM,EAAE,MAAM,CAAC,mBAChB,OAAO,MAAM,EAAE,GAAG,CAAC;;;;;;;;CAqBpC,CAAC;AAGF,eAAO,MAAM,YAAY,SAAU,GAAG;;;;;;;;;;;;;;;;;;;;CA2BrC,CAAC;AAGF,eAAO,MAAM,qBAAqB,aAAc,MAAM,KAAG,MAOxD,CAAC;AAqDF,KAAK,YAA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,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;AAGF,eAAO,MAAM,aAAa,cACb,WAAW,OACjB,MAAM,YACD,MAAM,IAAI,SAuBrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,WAAW,sBAErB,QAAQ,IAAI,CAmBb,CAAC"}
1
+ {"version":3,"file":"CognitiveComparehelpers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CognitiveCompare/CognitiveComparehelpers.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEb,MAAM,yBAAyB,CAAC;AAIjC,eAAO,MAAM,aAAa,QAAS,OAAO,KAAG,MAM5C,CAAC;AAGF,eAAO,MAAM,QAAQ,QAAS,OAAO,KAAG,OAKvC,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,MAAM,WAYhD,CAAC;AAEF,eAAO,MAAM,yBAAyB;aAO3B,YAAY;sBACH,YAAY,EAAE;cACtB,IAAI,MAAM,EAAE,MAAM,CAAC;;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,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;AAGF,eAAO,MAAM,aAAa,cACb,WAAW,OACjB,MAAM,YACD,MAAM,IAAI,SAuBrB,CAAC;AAEF,eAAO,MAAM,iBAAiB,cACf,WAAW,sBAErB,QAAQ,IAAI,CAmBb,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"GuidelinePanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,cAAc,2EAA4E,GAAG,4CA4DlG,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"GuidelinePanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,cAAc,2EAA4E,GAAG,4CA+ClG,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"WebGptPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/WebGptPanel.tsx"],"names":[],"mappings":"AAsDA,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAC7C;AAED,QAAA,MAAM,WAAW,2DAA4D,gBAAgB,4CA2H5F,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"WebGptPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/components/WebGptPanel.tsx"],"names":[],"mappings":"AAuCA,UAAU,gBAAgB;IACxB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,iBAAiB,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;IACrC,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC;CAC7C;AAED,QAAA,MAAM,WAAW,2DAA4D,gBAAgB,4CAmJ5F,CAAC;AAEF,eAAe,WAAW,CAAC"}