@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.
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/common/TableWrapper.js +2 -0
- package/dist/cjs/features/RequirementAI/components/common/TableWrapper.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js +2 -0
- package/dist/cjs/features/RequirementAI/utils/exponential-retry.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +1 -1
- package/dist/cjs/utils/helperFunctions.js +2 -0
- package/dist/cjs/utils/helperFunctions.js.map +1 -0
- package/dist/cjs/utils/tagHelper.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/common/TableWrapper.js +2 -0
- package/dist/features/RequirementAI/components/common/TableWrapper.js.map +1 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js +2 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.js.map +1 -0
- package/dist/features/RequirementAI/utils/exponential-retry.js +2 -0
- package/dist/features/RequirementAI/utils/exponential-retry.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +1 -1
- package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +34 -2
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +5 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/codeBlockSerialization.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditEdgeCases.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts +16 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableSerialization.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/markdownTableStructure.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts +58 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEscapes.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +14 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownListFormatting.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBlocks.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts +86 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveTableDelimiters.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/randomEditSerialization.audit.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/reviewNodeSerialization.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/serializationPreservation.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableMarkdownReviewRoundTrip.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingFix.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingIssue.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingSample.fixture.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableNumberingValidation.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/href.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/index.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts +30 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/onDemandCitations/payload.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +3006 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +26 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/common/TableWrapper.d.ts +13 -0
- package/dist/types/src/features/RequirementAI/components/common/TableWrapper.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/utils/inlineMarkdown.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +52 -0
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +4 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/menuAction.type.d.ts +32 -0
- package/dist/types/src/features/RequirementAI/types/menuAction.type.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/utils/exponential-retry.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts +64 -1
- package/dist/types/src/service/redlineService.d.ts.map +1 -1
- package/dist/types/src/utils/helperFunctions.d.ts +3 -0
- package/dist/types/src/utils/helperFunctions.d.ts.map +1 -1
- package/dist/types/src/utils/tagHelper.d.ts +9 -0
- package/dist/types/src/utils/tagHelper.d.ts.map +1 -1
- package/dist/utils/helperFunctions.js +2 -0
- package/dist/utils/helperFunctions.js.map +1 -0
- package/dist/utils/tagHelper.js +1 -1
- package/package.json +2 -2
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +0 -2
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +0 -2
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +0 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +0 -2
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js.map +0 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +0 -2
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map +0 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +0 -2
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js.map +0 -1
- package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +0 -2
- 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,
|
|
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,
|
|
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 @@
|
|
|
1
|
+
{"version":3,"file":"helperFunctions.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/utils/tagHelper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function e(e,n,i=!1){const
|
|
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(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/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.
|
|
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",
|
package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js
DELETED
|
@@ -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
|
package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map
DELETED
|
@@ -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
|
package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js.map
DELETED
|
@@ -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":""}
|