@e-llm-studio/requirement-ai 0.0.359 → 0.0.361

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 (206) hide show
  1. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
  4. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
  5. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +2 -0
  10. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +1 -0
  11. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +2 -0
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +1 -0
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +2 -0
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +1 -0
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +2 -0
  30. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +1 -0
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +2 -0
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +1 -0
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +2 -0
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +1 -0
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/common/TableWrapper.js +2 -0
  40. package/dist/cjs/features/RequirementAI/components/common/TableWrapper.js.map +1 -0
  41. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/utils/exponential-retry.js +2 -0
  46. package/dist/cjs/features/RequirementAI/utils/exponential-retry.js.map +1 -0
  47. package/dist/cjs/index.js +1 -1
  48. package/dist/cjs/service/redlineService.js +1 -1
  49. package/dist/cjs/utils/helperFunctions.js +2 -0
  50. package/dist/cjs/utils/helperFunctions.js.map +1 -0
  51. package/dist/cjs/utils/tagHelper.js +1 -1
  52. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  53. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  54. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
  55. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
  56. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  57. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  58. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
  59. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
  60. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +2 -0
  61. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +1 -0
  62. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +2 -0
  63. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +1 -0
  64. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
  65. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
  66. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
  67. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
  68. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +2 -0
  69. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +1 -0
  70. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
  71. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
  72. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
  73. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
  74. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +2 -0
  75. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +1 -0
  76. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
  77. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
  78. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
  79. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
  80. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +2 -0
  81. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +1 -0
  82. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  83. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  84. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  85. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +2 -0
  86. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +1 -0
  87. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +2 -0
  88. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +1 -0
  89. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  90. package/dist/features/RequirementAI/components/common/TableWrapper.js +2 -0
  91. package/dist/features/RequirementAI/components/common/TableWrapper.js.map +1 -0
  92. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  93. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  94. package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
  95. package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
  96. package/dist/features/RequirementAI/utils/exponential-retry.js +2 -0
  97. package/dist/features/RequirementAI/utils/exponential-retry.js.map +1 -0
  98. package/dist/index.js +1 -1
  99. package/dist/service/redlineService.js +1 -1
  100. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
  101. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +34 -2
  102. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  103. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  104. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts +2 -0
  105. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts.map +1 -0
  106. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  107. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +3 -1
  108. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  109. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +2 -0
  110. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
  111. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +5 -1
  112. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
  113. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts +5 -0
  114. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts.map +1 -0
  115. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts +2 -0
  116. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts.map +1 -0
  117. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts +16 -0
  118. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts.map +1 -0
  119. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts +2 -0
  120. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts.map +1 -0
  121. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +8 -0
  122. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
  123. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts +58 -0
  124. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts.map +1 -0
  125. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts +14 -0
  126. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts.map +1 -0
  127. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +14 -0
  128. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts.map +1 -0
  129. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts +3 -0
  130. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts.map +1 -0
  131. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts +4 -0
  132. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts.map +1 -0
  133. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts +86 -0
  134. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts.map +1 -0
  135. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts +7 -0
  136. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts.map +1 -0
  137. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts +2 -0
  138. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts.map +1 -0
  139. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts +15 -0
  140. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts.map +1 -0
  141. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts +2 -0
  142. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts.map +1 -0
  143. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts +2 -0
  144. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts.map +1 -0
  145. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts +2 -0
  146. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts.map +1 -0
  147. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts +2 -0
  148. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts.map +1 -0
  149. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts +2 -0
  150. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts.map +1 -0
  151. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts +2 -0
  152. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts.map +1 -0
  153. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  154. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +3 -0
  155. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
  156. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -0
  157. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  158. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts +13 -0
  159. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts.map +1 -0
  160. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts +3 -0
  161. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts.map +1 -0
  162. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts +30 -0
  163. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts.map +1 -0
  164. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +3006 -0
  165. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -0
  166. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
  167. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +26 -2
  168. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  169. package/dist/types/src/features/RequirementAI/components/common/TableWrapper.d.ts +13 -0
  170. package/dist/types/src/features/RequirementAI/components/common/TableWrapper.d.ts.map +1 -0
  171. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -1
  172. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  173. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts +9 -0
  174. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts.map +1 -0
  175. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +52 -0
  176. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  177. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +4 -0
  178. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  179. package/dist/types/src/features/RequirementAI/types/menuAction.type.d.ts +32 -0
  180. package/dist/types/src/features/RequirementAI/types/menuAction.type.d.ts.map +1 -0
  181. package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts +12 -0
  182. package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts.map +1 -0
  183. package/dist/types/src/index.d.ts +3 -2
  184. package/dist/types/src/index.d.ts.map +1 -1
  185. package/dist/types/src/service/redlineService.d.ts +64 -1
  186. package/dist/types/src/service/redlineService.d.ts.map +1 -1
  187. package/dist/types/src/utils/helperFunctions.d.ts +3 -0
  188. package/dist/types/src/utils/helperFunctions.d.ts.map +1 -1
  189. package/dist/types/src/utils/tagHelper.d.ts +9 -0
  190. package/dist/types/src/utils/tagHelper.d.ts.map +1 -1
  191. package/dist/utils/helperFunctions.js +2 -0
  192. package/dist/utils/helperFunctions.js.map +1 -0
  193. package/dist/utils/tagHelper.js +1 -1
  194. package/package.json +2 -2
  195. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +0 -2
  196. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +0 -1
  197. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +0 -2
  198. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +0 -1
  199. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +0 -2
  200. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js.map +0 -1
  201. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +0 -2
  202. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +0 -1
  203. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +0 -2
  204. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +0 -1
  205. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +0 -2
  206. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"redlineService.d.ts","sourceRoot":"","sources":["../../../../src/service/redlineService.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,YAAmB;IAChD,YAAY,EAAE,GAAG,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACtB,iBAeA,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,GAAG,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACtB,SAAS,MAAM,iBAiCf,CAAC;AAEF,eAAO,MAAM,qBAAqB,YAAmB;IACjD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,cAAc,YAAmB;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA8Bf,CAAC;AAEF,eAAO,MAAM,2BAA2B,YAAmB;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,EAAE,MAAM,CAAC;CAC3B,SAAS,MAAM,iBA+Bf,CAAC"}
1
+ {"version":3,"file":"redlineService.d.ts","sourceRoot":"","sources":["../../../../src/service/redlineService.ts"],"names":[],"mappings":"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"}
@@ -3,4 +3,7 @@ export declare function transformToArrayOfArrays(data: Record<string, any>[]): a
3
3
  export declare function mapColumnsToValues(columns: string[], valuesArray: string[][]): {
4
4
  [k: string]: string;
5
5
  }[];
6
+ export declare const TABLE_MARKER = "data-menu-table";
7
+ export declare const BLOCK_SELECTOR = "[data-block-id^=\"user-story-card-wrapper-\"]";
8
+ export declare const serializeTable: (el: HTMLElement) => string;
6
9
  //# sourceMappingURL=helperFunctions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helperFunctions.d.ts","sourceRoot":"","sources":["../../../../src/utils/helperFunctions.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,cAAe,MAAM,WAqBjD,CAAA;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,CAO7E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,CASxG"}
1
+ {"version":3,"file":"helperFunctions.d.ts","sourceRoot":"","sources":["../../../../src/utils/helperFunctions.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,cAAe,MAAM,WAqBjD,CAAA;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,GAAG,EAAE,EAAE,CAO7E;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,EAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,CASxG;AACD,eAAO,MAAM,YAAY,oBAAoB,CAAC;AAC9C,eAAO,MAAM,cAAc,kDAAgD,CAAC;AAE5E,eAAO,MAAM,cAAc,OAAQ,WAAW,WAI7C,CAAC"}
@@ -1,5 +1,14 @@
1
1
  export declare function splitTagAcrossParagraphs(text: string, tag: string, setMain?: boolean): string;
2
2
  export declare function escapeTagIds(markdown: string, tags: string[]): string;
3
3
  export declare function unescapeTagIds(markdown: string, tags: string[]): string;
4
+ /** Convert standalone backend UUID comments into DOM-safe editor anchors. */
5
+ export declare function normalizeCommentAnchorsForEditor(source: string): string;
6
+ /** Restore exact source comments/invisible tags and their preceding blank lines. */
7
+ export declare function preserveDocumentAnchorsFromSource(source: string, draft: string): string;
8
+ /** Make legacy comment/redline anchors valid HTML before DOM parsing. */
9
+ export declare function normalizeLegacyCommentRedlinesForEditor(source: string): string;
10
+ /** Rebuild the exact legacy comment/tag shell after Lexical serialization. */
11
+ export declare function preserveLegacyCommentRedlinesFromSource(source: string, draft: string): string;
12
+ export declare function preserveInvisibleAnchorBeforeTablePipe(source: string, draft: string): string;
4
13
  export declare function mergeTagAcrossParagraphs(text: string, tag: string): string;
5
14
  //# sourceMappingURL=tagHelper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tagHelper.d.ts","sourceRoot":"","sources":["../../../../src/utils/tagHelper.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ,UA0CnF;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAerE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAiBvE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAgH1E"}
1
+ {"version":3,"file":"tagHelper.d.ts","sourceRoot":"","sources":["../../../../src/utils/tagHelper.ts"],"names":[],"mappings":"AAAA,wBAAgB,wBAAwB,CAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,UAAQ,UA8CnF;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAerE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAiBvE;AA8BD,6EAA6E;AAC7E,wBAAgB,gCAAgC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAMvE;AAQD,oFAAoF;AACpF,wBAAgB,iCAAiC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CA0CvF;AAED,yEAAyE;AACzE,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAwB9E;AAED,8EAA8E;AAC9E,wBAAgB,uCAAuC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAoE7F;AAED,wBAAgB,sCAAsC,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAmC5F;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAgH1E"}
@@ -0,0 +1,2 @@
1
+ const e="data-menu-table",t='[data-block-id^="user-story-card-wrapper-"]',r=t=>{const r=t.cloneNode(!0);return r.removeAttribute(e),r.outerHTML};export{t as BLOCK_SELECTOR,e as TABLE_MARKER,r as serializeTable};
2
+ //# sourceMappingURL=helperFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helperFunctions.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- function e(e,n,i=!1){const l=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|(\\s*\\n\\s*)`,"gi");let s="",c=!1,t=!1;return e.replace(l,(e,l,$,a)=>l?(c=!0,s=l,i&&!t?(t=!0,l.replace(/^<([^\s>]+)/,"<$1 data-main")):l):$?(c=!1,s="",t=!1,$):a&&c?`</${n}>${a}${s}`:e)}function n(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(l,(e,n,i,l,s)=>`<${n}${i}id="${l.replace(/</g,"@").replace(/>/g,"#")}"${s}>`)}function i(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),l=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(l,(e,n,i,l,s)=>`<${n}${i}id="${l.replace(/@/g,"<").replace(/#/g,">")}"${s}>`)}function l(e,n){var i,l,s,c;const t=["del","ins","preserved"].includes(n),$=["manual","upt"].includes(n),a=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|(${t?"</?(?:manual|upt)\\b[^>]*>":"$^"})`,"gi");let r,o="",p=0,d="",u="",g="",f="";for(;null!==(r=a.exec(e));){const n=e.slice(p,r.index),[,v,x,b]=r;if(g)if(f+=n,b)o+=g+f+b,d="",u="",g="",f="";else if(v){const e=$&&null!==(l=null===(i=v.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===i?void 0:i[1])&&void 0!==l?l:"";/^\s*$/.test(f)&&($&&e===u||t)?(o+=f,f="",g=""):(o+=g+f+v,d=v,u=e,g="",f="")}else x&&(o+=g+f,g=x,f="");else d?(o+=n,b?o+=b:x?g=x:v&&(o+=v)):(o+=n,b?o+=b:v?(d=v,u=$&&null!==(c=null===(s=v.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===s?void 0:s[1])&&void 0!==c?c:"",o+=v):x&&(o+=x));p=a.lastIndex}const v=e.slice(p);return o+=g?g+f+v:v,o}export{n as escapeTagIds,l as mergeTagAcrossParagraphs,e as splitTagAcrossParagraphs,i as unescapeTagIds};
1
+ function e(e,n,i=!1){const s=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|([ \\t]*\\n(?:[ \\t]*\\n)+[ \\t]*)`,"gi");let l="",t=!1,r=!1;return e.replace(s,(e,s,a,d)=>s?(t=!0,l=s,i&&!r?(r=!0,s.replace(/^<([^\s>]+)/,"<$1 data-main")):s):a?(t=!1,l="",r=!1,a):d&&t?`</${n}>${d}${l}`:e)}function n(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(s,(e,n,i,s,l)=>`<${n}${i}id="${s.replace(/</g,"@").replace(/>/g,"#")}"${l}>`)}function i(e,n){const i=n.map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(`<(${i})\\b([^>]*?)\\bid="([^"]*)"([^>]*)>`,"gi");return e.replace(s,(e,n,i,s,l)=>`<${n}${i}id="${s.replace(/@/g,"<").replace(/#/g,">")}"${l}>`)}const s=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=String.raw`<invisible\b(?=[^>]*\bid\s*=\s*(?:"([^"]*)"|'([^']*)'))[^>]*>(?:\s*<\/invisible\s*>)?`,t=String.raw`[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`,r=String.raw`<!--\s*(${t})\s*-->`,a=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,d="legacy-comment-anchor:",c=new RegExp(String.raw`(<!--[ \t]*([0-9a-f-]+)[ \t]*)(<manual\b${a}>)([ \t]*)(<del\b${a}>)([ \t]*-->)([\s\S]*?)<\/del\s*>([ \t]*)(<ins\b${a}>)([ \t]*-->)([\s\S]*?)<\/ins\s*>([ \t]*)<\/manual\s*>`,"gi");function $(e){return e?e.replace(new RegExp(r,"gi"),(e,n)=>`<invisible id="${n}"></invisible>`):""}function o(e,n){if(!e||!n)return n;const i=[],t=(n,s,l)=>{const t=new RegExp(`((?:[ \\t]*\\n){2,}[ \\t]*)?(${n})([ \\t]*)`,"gi");e.replace(t,(e,n,t,...r)=>{var a;const d=r.slice(0,s),c=l(d),$=null!==(a=r[s])&&void 0!==a?a:"";return c&&i.push({id:c,raw:`${t}${$}`,leadingBlankRun:n}),e})};t(l,2,([e,n])=>null!=e?e:n),t(r,1,([e])=>e);let a=n;return i.slice().reverse().forEach(({id:e,raw:n,leadingBlankRun:i})=>{const l=s(e),t=`(?:<invisible\\b(?=[^>]*\\bid\\s*=\\s*(?:"${l}"|'${l}'))[^>]*>(?:\\s*<\\/invisible\\s*>)?|\x3c!--\\s*${l}\\s*--\x3e)[ \\t]*`;a=a.replace(new RegExp(`((?:[ \\t]*\\n)+[ \\t]*)?${t}`,"i"),(e,s)=>{var l;return`${null!==(l=null!=i?i:s)&&void 0!==l?l:""}${n}`})}),a}function u(e){return e?e.replace(c,(e,n,i,s,l,t,r,a,c,$,o,u,p)=>`<invisible id="${d}${i}"></invisible> ${s}${l}${t}${a}</del>${c}${$}${u}</ins>${p}</manual>`):""}function p(e,n){if(!e||!n)return n;const i=[];e.replace(c,(e,n,s,l,t,r,a,d,c,$,o,u)=>{const p=e.indexOf(d),g=e.indexOf(u,p+d.length);var b,f,v;return i.push({anchorId:s,manualId:(b=l,null!==(v=null===(f=b.match(/\bid\s*=\s*(?:"([^"]*)"|'([^']*)')/i))||void 0===f?void 0:f.slice(1).find(Boolean))&&void 0!==v?v:""),beforeDeletedBody:`${n}${l}${t}${r}${a}`,betweenBodies:e.slice(p+d.length,g),afterInsertedBody:e.slice(g+u.length),deletedBody:d,insertedBody:u}),e});let l=n;return i.forEach(e=>{const n=s(`${d}${e.anchorId}`),i=s(e.manualId),t=new RegExp(String.raw`<invisible\b(?=[^>]*\bid\s*=\s*(?:"${n}"|'${n}'))[^>]*>(?:\s*<\/invisible\s*>)?\s*<manual\b(?=${a}\bid\s*=\s*(?:"${i}"|'${i}'))${a}>\s*<del\b${a}>([\s\S]*?)<\/del\s*>\s*<ins\b${a}>([\s\S]*?)<\/ins\s*>\s*<\/manual\s*>`,"i"),r=e=>e.replace(/&gt;/gi,">").replace(/&lt;/gi,"<").replace(/&quot;/gi,'"').replace(/&#39;|&apos;/gi,"'").replace(/&amp;/gi,"&");l=l.replace(t,(n,i,s)=>{const l=r(i)===r(e.deletedBody)?e.deletedBody:i,t=r(s)===r(e.insertedBody)?e.insertedBody:s;return`${e.beforeDeletedBody}${l}${e.betweenBodies}${t}`+e.afterInsertedBody})}),l}function g(e,n){if(!e||!n)return n;const i=new RegExp(`^([ \\t]*)(${l})([ \\t]*)(?=\\|)`,"gim"),t=[];e.replace(i,(e,n,i,s,l)=>{const r=null!=s?s:l;return void 0!==r&&t.push({id:r,prefix:e}),e});let r=n;return t.forEach(({id:e,prefix:n})=>{const i=s(e),l=new RegExp(`^[ \\t]*\\|[ \\t]*<invisible\\b(?=[^>]*\\bid\\s*=\\s*(?:"${i}"|'${i}'))[^>]*>(?:\\s*<\\/invisible\\s*>)?[ \\t]*(?=\\|)`,"im");r=r.replace(l,n)}),r}function b(e,n){var i,s,l,t;const r=["del","ins","preserved"].includes(n),a=["manual","upt"].includes(n),d=new RegExp(`(<${n}(?:\\s[^>]*)?>)|(</${n}>)|(${r?"</?(?:manual|upt)\\b[^>]*>":"$^"})`,"gi");let c,$="",o=0,u="",p="",g="",b="";for(;null!==(c=d.exec(e));){const n=e.slice(o,c.index),[,f,v,w]=c;if(g)if(b+=n,w)$+=g+b+w,u="",p="",g="",b="";else if(f){const e=a&&null!==(s=null===(i=f.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===i?void 0:i[1])&&void 0!==s?s:"";/^\s*$/.test(b)&&(a&&e===p||r)?($+=b,b="",g=""):($+=g+b+f,u=f,p=e,g="",b="")}else v&&($+=g+b,g=v,b="");else u?($+=n,w?$+=w:v?g=v:f&&($+=f)):($+=n,w?$+=w:f?(u=f,p=a&&null!==(t=null===(l=f.match(/\bid\s*=\s*["']?([^"'\s>]+)["']?/i))||void 0===l?void 0:l[1])&&void 0!==t?t:"",$+=f):v&&($+=v));o=d.lastIndex}const f=e.slice(o);return $+=g?g+b+f:f,$}export{n as escapeTagIds,b as mergeTagAcrossParagraphs,$ as normalizeCommentAnchorsForEditor,u as normalizeLegacyCommentRedlinesForEditor,o as preserveDocumentAnchorsFromSource,g as preserveInvisibleAnchorBeforeTablePipe,p as preserveLegacyCommentRedlinesFromSource,e as splitTagAcrossParagraphs,i as unescapeTagIds};
2
2
  //# sourceMappingURL=tagHelper.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/requirement-ai",
3
- "version": "0.0.359",
3
+ "version": "0.0.361",
4
4
  "author": "Saptyadeep Bhattacharjee",
5
5
  "description": "",
6
6
  "license": "MIT",
@@ -670,7 +670,7 @@
670
670
  "dist"
671
671
  ],
672
672
  "scripts": {
673
- "start": "craco start",
673
+ "start": "PORT=3008 craco start",
674
674
  "build": "rollup -c",
675
675
  "tsupBuild": "tsup src/index.ts",
676
676
  "test": "craco test",
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("lucide-react"),i=require("react"),a=require("./pdfCitationUtils.js"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),o=require("./pdfCitation.module.css.js"),l=require("./CitationPdfViewer.js");exports.default=function({citation:n,isCitationLoading:d=!1,renderMode:s,pdfViewHeaderAction:u,citationId:c}){var g,f,h,p,m;const{queryClient:v,useGetSignedUrlQuery:x,useGetSignedUrlMutation:w}=r.useRequirementAI().apiCachingConfig,[C,U]=i.useState(!1),V=null==n?void 0:n.customMetadata,_=null!==(g=null==V?void 0:V.value)&&void 0!==g?g:[],j=null!==(f=null==V?void 0:V.artifact_url)&&void 0!==f?f:"",q=null!==(h=null==V?void 0:V.artifact_title)&&void 0!==h?h:"",y=null!==(p=null==V?void 0:V.artifact_format)&&void 0!==p?p:"pdf",P=_.flatMap(e=>e.highlighted_text.map(e=>e.text)),A="docx"===y,S=["getSignedUrl",j],{data:I}=x(j,S),{mutate:M,isPending:N}=w(j),H=null!=I?I:"",D=!!j&&N&&!H;return j||console.warn("Artifact preview details not found in header message or message data",j),i.useEffect(()=>{if(!j)return void U(!0);const e=v.getQueryData(S);e||N||M({gsUtilPath:j}),e&&U(!1)},[j,v,S,N,M]),i.useEffect(()=>{H&&U(!1)},[H]),null!==(m=(()=>{try{const i=a.mapToHighlightAreas(_),r=i.length>0;if(D||d)return e.jsx("div",{className:o.default.loaderContainer,children:e.jsx(t.Loader2,{className:o.default.loaderIcon,size:28})});const n=_.some(e=>!!e.gs_url),g=_.some(e=>null!==e.page_no&&void 0!==e.page_no),f=_.some(e=>Array.isArray(e.highlighted_coordinates)&&e.highlighted_coordinates.length>0),h=i.length>0;return!(n||g||f||h)&&console.warn("No valid coordinates or gs_url found for this citation.",{hasValidGsUrl:n,hasValidPageNo:g,hasHighlightedCoords:f,hasCoordinatesPages:h,pages:_,artifactUrl:j}),(r||!g||C)&&(C||!r)?(console.warn("Error in loading PDF or no valid highlight coordinates found. Rendering fallback viewer without highlights.",{artifactUrl:j,hasValidCoordinates:r,coordinatesPages:i,pages:_}),e.jsx(l.default,{artifactUrl:j,pdfUrl:"",pdfName:q,pages:_,coordinatesPages:[],pdfViewHeaderAction:u,renderMode:null!=s?s:"fallback",isDocx:A,hasValidCoordinates:!1,customStyles:a.citationViewerStyles,highlightText:P,citationId:c})):e.jsx(l.default,{artifactUrl:j,pdfUrl:H,pdfName:q,pages:_,coordinatesPages:i,pdfViewHeaderAction:u,renderMode:null!=s?s:"default",isDocx:A,hasValidCoordinates:r,jumpToPageValue:1,customStyles:a.citationViewerStyles,highlightText:P,citationId:c})}catch(e){return console.warn("Error rendering citation",e),null}})())&&void 0!==m?m:null};
2
- //# sourceMappingURL=CitationPdfRendererWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationPdfRendererWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("lucide-react"),t=require("@e-llm-studio/citation"),a=require("./pdfCitationUtils.js");const o={pdfViewer:{height:"50%",maxHeight:"50%",display:"flex",flexDirection:"column",backgroundColor:"#FAFAFA",border:"1px solid #e5e7eb",borderRadius:"8px",overflow:"hidden"},pdfContainer:{flex:1,overflowY:"auto",padding:"8px"},header:{borderBottom:"1px solid #e5e7eb"}},l={pdfViewerWrapper:"shadow-sm"},r=()=>e.jsx("div",{className:"h-full flex items-center justify-center",children:e.jsx(i.Loader2,{className:"animate-spin text-purple-500",size:28})});exports.default=({artifactUrl:i,pdfUrl:s,pdfName:n,pages:d,coordinatesPages:c,activeCitationIndex:u,onActiveCitationChange:h,pdfViewHeaderAction:f,isLoading:p,hasValidCoordinates:g,renderMode:x="default",useCoordinates:m=!0,jumpToPageValue:C,customStyles:b,customClasses:v,isDocx:j=!1,highlightText:k,citationId:P})=>{if(p)return e.jsx(r,{});const w=j||"fallback"===x?"":s,A="fallback"===x||!1===g?[]:c,V="fallback"!==x&&m,N=a.stringToNumber(P),y=f?{icon:f.icon,tooltip:f.tooltip,onClick:()=>{f.onClick({artifactUrl:i,artifactId:i,fileName:null!=n?n:"",pages:d,currentCitationIndex:null!=N?N:0})}}:void 0;return e.jsx(t.PdfViewer,{pdfUrl:w,pdfName:n,fallbackPages:d,highlightCordinatePages:A,highlightText:null!=k?k:[],highlightPages:{},useCoordinates:V,activeCitationIndex:u,headerAction:y,onActiveCitationChange:h,highlightColor:"oklch(0.78 0.16 95 / 0.35)",activeHighlightColor:"oklch(0.75 0.17 95 / 0.45)",jumpToPageValue:C,customStyles:null!=b?b:o,customClasses:null!=v?v:l})};
2
- //# sourceMappingURL=CitationPdfViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationPdfViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.citationViewerStyles={pdfViewer:{height:"550px",maxHeight:"550px",display:"flex",flexDirection:"column",backgroundColor:"#FAFAFA",border:"1px solid #e5e7eb",borderRadius:"8px",overflow:"hidden"},pdfContainer:{flex:1,overflowY:"auto",padding:"8px"},header:{borderBottom:"1px solid #e5e7eb"}},exports.mapToHighlightAreas=(e=[])=>Array.isArray(e)?null==e?void 0:e.flatMap(e=>{var r,i;const o=null==e?void 0:e.page_no;return!(null===(r=null==e?void 0:e.highlighted_coordinates)||void 0===r?void 0:r.length)&&o?[{pageNumber:o,pageIndex:o-1}]:o&&(null===(i=null==e?void 0:e.highlighted_coordinates)||void 0===i?void 0:i.length)?e.highlighted_coordinates.map(e=>({pageIndex:o-1,pageNumber:o,left:100*e.xmin,top:100*e.ymin,width:100*(e.xmax-e.xmin),height:100*(e.ymax-e.ymin)})):[]}):[],exports.stringToNumber=function(e,r=0){if("number"==typeof e)return Number.isFinite(e)?e:r;if(!e||"string"!=typeof e||!e.trim())return r;let i="";try{i=e.trim().replace(/[^\d.-]/g,"").replace(/(?!^)-/g,"")}catch(e){return console.error("Regex processing failed",e),r}const o=Number(i);return Number.isFinite(o)?o:r};
2
- //# sourceMappingURL=pdfCitationUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pdfCitationUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Loader2 as i}from"lucide-react";import{useState as t,useEffect as a}from"react";import{mapToHighlightAreas as o,citationViewerStyles as r}from"./pdfCitationUtils.js";import{useRequirementAI as n}from"../RequirementAIWrapper/RequirementAIWrapper.js";import l from"./pdfCitation.module.css.js";import d from"./CitationPdfViewer.js";function s({citation:s,isCitationLoading:c=!1,renderMode:u,pdfViewHeaderAction:g,citationId:f}){var h,m,p,v,C;const{queryClient:U,useGetSignedUrlQuery:w,useGetSignedUrlMutation:P}=n().apiCachingConfig,[V,_]=t(!1),x=null==s?void 0:s.customMetadata,y=null!==(h=null==x?void 0:x.value)&&void 0!==h?h:[],A=null!==(m=null==x?void 0:x.artifact_url)&&void 0!==m?m:"",j=null!==(p=null==x?void 0:x.artifact_title)&&void 0!==p?p:"",I=null!==(v=null==x?void 0:x.artifact_format)&&void 0!==v?v:"pdf",M=y.flatMap(e=>e.highlighted_text.map(e=>e.text)),N="docx"===I,S=["getSignedUrl",A],{data:D}=w(A,S),{mutate:H,isPending:q}=P(A),G=null!=D?D:"",R=!!A&&q&&!G;A||console.warn("Artifact preview details not found in header message or message data",A);return a(()=>{if(!A)return void _(!0);const e=U.getQueryData(S);e||q||H({gsUtilPath:A}),e&&_(!1)},[A,U,S,q,H]),a(()=>{G&&_(!1)},[G]),null!==(C=(()=>{try{const t=o(y),a=t.length>0;if(R||c)return e("div",{className:l.loaderContainer,children:e(i,{className:l.loaderIcon,size:28})});const n=y.some(e=>!!e.gs_url),s=y.some(e=>null!==e.page_no&&void 0!==e.page_no),h=y.some(e=>Array.isArray(e.highlighted_coordinates)&&e.highlighted_coordinates.length>0),m=t.length>0;return!(n||s||h||m)&&console.warn("No valid coordinates or gs_url found for this citation.",{hasValidGsUrl:n,hasValidPageNo:s,hasHighlightedCoords:h,hasCoordinatesPages:m,pages:y,artifactUrl:A}),(a||!s||V)&&(V||!a)?(console.warn("Error in loading PDF or no valid highlight coordinates found. Rendering fallback viewer without highlights.",{artifactUrl:A,hasValidCoordinates:a,coordinatesPages:t,pages:y}),e(d,{artifactUrl:A,pdfUrl:"",pdfName:j,pages:y,coordinatesPages:[],pdfViewHeaderAction:g,renderMode:null!=u?u:"fallback",isDocx:N,hasValidCoordinates:!1,customStyles:r,highlightText:M,citationId:f})):e(d,{artifactUrl:A,pdfUrl:G,pdfName:j,pages:y,coordinatesPages:t,pdfViewHeaderAction:g,renderMode:null!=u?u:"default",isDocx:N,hasValidCoordinates:a,jumpToPageValue:1,customStyles:r,highlightText:M,citationId:f})}catch(e){return console.warn("Error rendering citation",e),null}})())&&void 0!==C?C:null}export{s as default};
2
- //# sourceMappingURL=CitationPdfRendererWrapper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationPdfRendererWrapper.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Loader2 as i}from"lucide-react";import{PdfViewer as t}from"@e-llm-studio/citation";import{stringToNumber as o}from"./pdfCitationUtils.js";const a={pdfViewer:{height:"50%",maxHeight:"50%",display:"flex",flexDirection:"column",backgroundColor:"#FAFAFA",border:"1px solid #e5e7eb",borderRadius:"8px",overflow:"hidden"},pdfContainer:{flex:1,overflowY:"auto",padding:"8px"},header:{borderBottom:"1px solid #e5e7eb"}},l={pdfViewerWrapper:"shadow-sm"},r=()=>e("div",{className:"h-full flex items-center justify-center",children:e(i,{className:"animate-spin text-purple-500",size:28})}),n=({artifactUrl:i,pdfUrl:n,pdfName:s,pages:d,coordinatesPages:c,activeCitationIndex:f,onActiveCitationChange:h,pdfViewHeaderAction:p,isLoading:u,hasValidCoordinates:g,renderMode:m="default",useCoordinates:C=!0,jumpToPageValue:x,customStyles:b,customClasses:k,isDocx:v=!1,highlightText:A,citationId:w})=>{if(u)return e(r,{});const P=v||"fallback"===m?"":n,V="fallback"===m||!1===g?[]:c,j="fallback"!==m&&C,I=o(w),N=p?{icon:p.icon,tooltip:p.tooltip,onClick:()=>{p.onClick({artifactUrl:i,artifactId:i,fileName:null!=s?s:"",pages:d,currentCitationIndex:null!=I?I:0})}}:void 0;return e(t,{pdfUrl:P,pdfName:s,fallbackPages:d,highlightCordinatePages:V,highlightText:null!=A?A:[],highlightPages:{},useCoordinates:j,activeCitationIndex:f,headerAction:N,onActiveCitationChange:h,highlightColor:"oklch(0.78 0.16 95 / 0.35)",activeHighlightColor:"oklch(0.75 0.17 95 / 0.45)",jumpToPageValue:x,customStyles:null!=b?b:a,customClasses:null!=k?k:l})};export{n as default};
2
- //# sourceMappingURL=CitationPdfViewer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CitationPdfViewer.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- const e=(e=[])=>Array.isArray(e)?null==e?void 0:e.flatMap(e=>{var i,r;const o=null==e?void 0:e.page_no;return!(null===(i=null==e?void 0:e.highlighted_coordinates)||void 0===i?void 0:i.length)&&o?[{pageNumber:o,pageIndex:o-1}]:o&&(null===(r=null==e?void 0:e.highlighted_coordinates)||void 0===r?void 0:r.length)?e.highlighted_coordinates.map(e=>({pageIndex:o-1,pageNumber:o,left:100*e.xmin,top:100*e.ymin,width:100*(e.xmax-e.xmin),height:100*(e.ymax-e.ymin)})):[]}):[],i={pdfViewer:{height:"550px",maxHeight:"550px",display:"flex",flexDirection:"column",backgroundColor:"#FAFAFA",border:"1px solid #e5e7eb",borderRadius:"8px",overflow:"hidden"},pdfContainer:{flex:1,overflowY:"auto",padding:"8px"},header:{borderBottom:"1px solid #e5e7eb"}};function r(e,i=0){if("number"==typeof e)return Number.isFinite(e)?e:i;if(!e||"string"!=typeof e||!e.trim())return i;let r="";try{r=e.trim().replace(/[^\d.-]/g,"").replace(/(?!^)-/g,"")}catch(e){return console.error("Regex processing failed",e),i}const o=Number(r);return Number.isFinite(o)?o:i}export{i as citationViewerStyles,e as mapToHighlightAreas,r as stringToNumber};
2
- //# sourceMappingURL=pdfCitationUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pdfCitationUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}