@viswa-test/test-citation 0.0.376 → 0.0.378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/cjs/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/cjs/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.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/ManualNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.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/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/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/tableBoundaryRedlines.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
- 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/Popups/DeviationSummary.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- 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/components/InlineUpdatedComponent.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/hooks/useStreamContentHandler.js +1 -1
- 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/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +1 -1
- package/dist/cjs/utils/tagHelper.js +1 -1
- package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/features/CognitiveCompare/CognitivePopup.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/components/GuidelinePanel.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/components/WebGptPanel.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/hooks/memoizedMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useSideBySide.js +1 -1
- package/dist/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +1 -1
- package/dist/features/PdfViewer/PdfContainer.js +1 -1
- package/dist/features/PdfViewer/PdfStyle.js +1 -1
- package/dist/features/PdfViewer/PdfToolbar.js +1 -1
- package/dist/features/PdfViewer/PdfViewer.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.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/ManualNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.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/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/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/tableBoundaryRedlines.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.js.map +1 -0
- 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/Popups/DeviationSummary.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/HistoryMenu.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/SocketManager.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.module.css.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- 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/components/InlineUpdatedComponent.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/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/utils/exponential-retry.js +2 -0
- package/dist/features/RequirementAI/utils/exponential-retry.js.map +1 -0
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +1 -1
- package/dist/types/src/CitationAccordionTest.d.ts +1 -0
- package/dist/types/src/CitationAccordionTest.d.ts.map +1 -0
- package/dist/types/src/MockDeviationSummary.d.ts +1 -0
- package/dist/types/src/MockDeviationSummary.d.ts.map +1 -0
- package/dist/types/src/RedlineEditorTest.d.ts.map +1 -1
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +12 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/components/GuidelinePanel.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/components/WebGptPanel.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +11312 -433
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts +33 -0
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/new-guidelines.mockData.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts +14 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts +2 -1
- package/dist/types/src/features/CognitiveCompare/hooks/memoizedMarkdown.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useSideBySide.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts +1 -0
- package/dist/types/src/features/CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +2 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/types.d.ts +11 -0
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +2 -0
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts +2 -4
- package/dist/types/src/features/PdfViewer/PdfContainer.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfStyle.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +2 -18
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +39 -29
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.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/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/ProtectTableCellBoundaries.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ProtectTableCellBoundaries.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +2 -0
- 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/plugins/reviewBoundaryLexical.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/reviewBoundaryLexical.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/manualEditSerialization.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/normalizeRedlineMarkdown.d.ts +2 -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 +29 -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/preserveMarkdownEmphasis.test.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownEmphasis.test.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveMarkdownLineBreaks.d.ts +7 -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/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/preserveReviewBoundaryWhitespace.test.d.ts +9 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/preserveReviewBoundaryWhitespace.test.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/tableBoundaryRedlines.d.ts +5 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.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/Avatar/Avatar.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/Avatar.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts +17 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts +23 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts +3 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Avatar/avatarUtils.d.ts.map +1 -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 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts +84 -5439
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/userstory.mock.data.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +2 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +20 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts +7 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEvent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/CwsEventProvider.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts +15 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/SocketManager.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/cws/useCwsEvent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts +3 -2
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/file-citation/FileCitationRender.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/common/onDemandCitationButton.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts +3 -2
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/components/segment/Segment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/segment/SegmentWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +2 -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/components/InlineUpdatedComponent.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.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/hooks/useStreamContentHandler.d.ts +1 -1
- package/dist/types/src/features/RequirementAI/hooks/useStreamContentHandler.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/types/segment.type.d.ts.map +1 -1
- 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/features/RequirementAI/utils/helpers.d.ts +2 -0
- package/dist/types/src/features/RequirementAI/utils/helpers.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.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/tagHelper.js +1 -1
- package/package.json +1 -1
- package/dist/assests/icons/InfoAlert.js +0 -2
- package/dist/assests/icons/InfoAlert.js.map +0 -1
- package/dist/cjs/assests/icons/InfoAlert.js +0 -2
- package/dist/cjs/assests/icons/InfoAlert.js.map +0 -1
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/cjs/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
- package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
- package/dist/cjs/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js +0 -2
- package/dist/cjs/features/ReviewPanel/ReviewPanel.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/PageCheck.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/helper.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/helper.js.map +0 -1
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
- package/dist/cjs/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js +0 -2
- package/dist/features/ParentCitationComponent/ParentCitationComponent.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/BoundaryCard.js +0 -2
- package/dist/features/PdfViewer/nyc-components/BoundaryCard.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/CardWrapper.js +0 -2
- package/dist/features/PdfViewer/nyc-components/CardWrapper.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js +0 -2
- package/dist/features/PdfViewer/nyc-components/CognitiveIcon.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/LabelCheck.js +0 -2
- package/dist/features/PdfViewer/nyc-components/LabelCheck.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js +0 -2
- package/dist/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/infoAlert.js +0 -2
- package/dist/features/PdfViewer/nyc-components/infoAlert.js.map +0 -1
- package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js +0 -2
- package/dist/features/PdfViewer/nyc-components/reviewStepAdapters.js.map +0 -1
- package/dist/features/ReviewPanel/ReviewPanel.js +0 -2
- package/dist/features/ReviewPanel/ReviewPanel.js.map +0 -1
- package/dist/features/SegmentReviewComponents/BoundaryCard.js +0 -2
- package/dist/features/SegmentReviewComponents/BoundaryCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CardWrapper.js +0 -2
- package/dist/features/SegmentReviewComponents/CardWrapper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js +0 -2
- package/dist/features/SegmentReviewComponents/ChartBreakoutCircle.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveIcon.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveIntegrity.js.map +0 -1
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js +0 -2
- package/dist/features/SegmentReviewComponents/CognitiveScoreBadge.js.map +0 -1
- package/dist/features/SegmentReviewComponents/LabelCheck.js +0 -2
- package/dist/features/SegmentReviewComponents/LabelCheck.js.map +0 -1
- package/dist/features/SegmentReviewComponents/PageCheck.js +0 -2
- package/dist/features/SegmentReviewComponents/PageCheck.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSuccessCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js +0 -2
- package/dist/features/SegmentReviewComponents/RevertSummaryNotice.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js +0 -2
- package/dist/features/SegmentReviewComponents/ReviewedBoundaryActions.js.map +0 -1
- package/dist/features/SegmentReviewComponents/ReviewedCard.js +0 -2
- package/dist/features/SegmentReviewComponents/ReviewedCard.js.map +0 -1
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js +0 -2
- package/dist/features/SegmentReviewComponents/SegmentReviewPdfWrapper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/helper.js +0 -2
- package/dist/features/SegmentReviewComponents/helper.js.map +0 -1
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js +0 -2
- package/dist/features/SegmentReviewComponents/reviewStepAdapters.js.map +0 -1
- package/dist/types/src/RedlineApprovalCardTest.d.ts +0 -1
- package/dist/types/src/RedlineApprovalCardTest.d.ts.map +0 -1
- package/dist/types/src/RedlineEditorTest2.d.ts +0 -3
- package/dist/types/src/RedlineEditorTest2.d.ts.map +0 -1
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts +0 -3
- package/dist/types/src/assests/icons/ChartSplitIcon.d.ts.map +0 -1
- package/dist/types/src/assests/icons/InfoAlert.d.ts +0 -3
- package/dist/types/src/assests/icons/InfoAlert.d.ts.map +0 -1
- package/dist/types/src/commonConstants.d.ts +0 -31103
- package/dist/types/src/commonConstants.d.ts.map +0 -1
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts +0 -2
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.test.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts +0 -128
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponent.d.ts.map +0 -1
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts +0 -13
- package/dist/types/src/features/ParentCitationComponent/ParentCitationComponentTest.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts +0 -59
- package/dist/types/src/features/PdfViewer/nyc-components/BoundaryCard.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts +0 -19
- package/dist/types/src/features/PdfViewer/nyc-components/CardWrapper.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts +0 -3
- package/dist/types/src/features/PdfViewer/nyc-components/CognitiveIcon.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts +0 -77
- package/dist/types/src/features/PdfViewer/nyc-components/LabelCheck.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts +0 -47
- package/dist/types/src/features/PdfViewer/nyc-components/SegmentReviewPdfWrapper.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts +0 -15
- package/dist/types/src/features/PdfViewer/nyc-components/index.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts +0 -3
- package/dist/types/src/features/PdfViewer/nyc-components/infoAlert.d.ts.map +0 -1
- package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts +0 -36
- package/dist/types/src/features/PdfViewer/nyc-components/reviewStepAdapters.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -83
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts +0 -26
- package/dist/types/src/features/SegmentReviewComponents/CardWrapper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts +0 -3
- package/dist/types/src/features/SegmentReviewComponents/ChartBreakoutCircle.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts +0 -3
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIcon.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts +0 -33
- package/dist/types/src/features/SegmentReviewComponents/CognitiveIntegrity.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts +0 -7
- package/dist/types/src/features/SegmentReviewComponents/CognitiveScoreBadge.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts +0 -87
- package/dist/types/src/features/SegmentReviewComponents/LabelCheck.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts +0 -51
- package/dist/types/src/features/SegmentReviewComponents/PageCheck.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts +0 -37
- package/dist/types/src/features/SegmentReviewComponents/RevertCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts +0 -9
- package/dist/types/src/features/SegmentReviewComponents/RevertSuccessCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts +0 -7
- package/dist/types/src/features/SegmentReviewComponents/RevertSummaryNotice.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts +0 -17
- package/dist/types/src/features/SegmentReviewComponents/ReviewedBoundaryActions.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts +0 -33
- package/dist/types/src/features/SegmentReviewComponents/ReviewedCard.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts +0 -123
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewPdfWrapper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts +0 -13
- package/dist/types/src/features/SegmentReviewComponents/SegmentReviewRedirectionTest.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts +0 -53
- package/dist/types/src/features/SegmentReviewComponents/helper.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts +0 -2
- package/dist/types/src/features/SegmentReviewComponents/helper.test.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts +0 -23
- package/dist/types/src/features/SegmentReviewComponents/index.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts +0 -242
- package/dist/types/src/features/SegmentReviewComponents/reviewStepAdapters.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts +0 -2
- package/dist/types/src/features/SegmentReviewComponents/segmentReviewEdgeCases.test.d.ts.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),o=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),l=require("./GptWebCitationImageCitation.js"),a=require("./GptWebCitationSkeleton.js"),s=require("./types.js"),r=require("./utils/citationData.utils.js"),u=require("./utils/styleOverrides.utils.js"),d=require("./utils/fixedHeight.utils.js"),g=require("./GptWebCitation.module.css.js"),c=require("../../assests/svg/NeuralNetworkIcon.js"),v=function(t){var o=t.variant,l=t.disabled,a=t.onClick,s=t.title,r=t.style;return i.jsx("button",e.__assign({type:"button",className:g.default.webCitationButton,onClick:a,disabled:l,title:s,style:r},{children:"gpt"===o?i.jsxs(i.Fragment,{children:[i.jsx(c.default,{className:g.default.webCitationButtonIcon}),"View GPT Citation"]}):i.jsxs(i.Fragment,{children:[i.jsx(n.Globe,{size:24,className:g.default.webCitationButtonIcon}),"View Web Citation"]})}))};exports.default=function(c){var p,C,b,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),o=require("../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js"),l=require("./GptWebCitationImageCitation.js"),a=require("./GptWebCitationSkeleton.js"),s=require("./types.js"),r=require("./utils/citationData.utils.js"),u=require("./utils/styleOverrides.utils.js"),d=require("./utils/fixedHeight.utils.js"),g=require("./GptWebCitation.module.css.js"),c=require("../../assests/svg/NeuralNetworkIcon.js"),v=function(t){var o=t.variant,l=t.disabled,a=t.onClick,s=t.title,r=t.style;return i.jsx("button",e.__assign({type:"button",className:g.default.webCitationButton,onClick:a,disabled:l,title:s,style:r},{children:"gpt"===o?i.jsxs(i.Fragment,{children:[i.jsx(c.default,{className:g.default.webCitationButtonIcon}),"View GPT Citation"]}):i.jsxs(i.Fragment,{children:[i.jsx(n.Globe,{size:24,className:g.default.webCitationButtonIcon}),"View Web Citation"]})}))};exports.default=function(c){var p,_,C,b,w=c.gptCitation,f=c.defaultCitationUrl,m=c.citationType,x=c.webCitationData,h=c.topic,y=c.sourceLabel,k=c.relevanceScore,j=c.learnedFrom,F=c.webCitationStatus,S=c.onGenerateWebCitation,H=c.showWebCitation,I=c.onToggleCitationView,B=c.showExpandImageButton,L=void 0===B||B,W=c.onFullscreenChange,T=c.showGptMaximizeButton,N=c.iconsConfig,V=c.isFixedHeight,M=void 0!==V&&V,q=c.useParentHeight,E=void 0!==q&&q,G=c.styles,P=t.useMemo(function(){return function(i){var t,n,o,l,a,s,r,d,g,c,v;return{container:null==i?void 0:i.container,gptWrapper:e.__assign(e.__assign({},null===(t=null==i?void 0:i.gptCitation)||void 0===t?void 0:t.wrapper),null==i?void 0:i.gptCitationWrapper),gptFooterAction:e.__assign(e.__assign({},null===(n=null==i?void 0:i.gptCitation)||void 0===n?void 0:n.footerAction),null==i?void 0:i.footerAction),gptToggleButton:e.__assign(e.__assign({},null===(o=null==i?void 0:i.gptCitation)||void 0===o?void 0:o.toggleButton),null==i?void 0:i.webCitationButton),webPanel:e.__assign(e.__assign({},null==i?void 0:i.container),null===(l=null==i?void 0:i.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==i?void 0:i.webCitation)||void 0===a?void 0:a.header,webContent:null===(s=null==i?void 0:i.webCitation)||void 0===s?void 0:s.content,webFooter:null===(r=null==i?void 0:i.webCitation)||void 0===r?void 0:r.footer,webToggleButton:e.__assign(e.__assign({},null===(d=null==i?void 0:i.webCitation)||void 0===d?void 0:d.toggleButton),null==i?void 0:i.webCitationButton),webLearnedFrom:null===(g=null==i?void 0:i.webCitation)||void 0===g?void 0:g.learnedFrom,webImage:null===(c=null==i?void 0:i.webCitation)||void 0===c?void 0:c.image,webSkeleton:null===(v=null==i?void 0:i.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:u.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"image"),webSkeletonVisitLink:u.resolveWebCitationVisitLinkStyles(null==i?void 0:i.webCitation,"skeleton")}}(G)},[G]),z=s.allowsGptCitationView(m),U=s.allowsWebCitationView(m),A=s.showsCitationViewToggle(m),D=M||E,O=t.useMemo(function(){return M?d.resolveFixedHeightLayout(w.bodyHeight,A):null},[M,w.bodyHeight,A]),R=t.useMemo(function(){return O?d.getFixedPanelStyle(O.panelHeight):void 0},[O]),J=t.useMemo(function(){return E?d.getParentHeightPanelStyle():void 0},[E]),K=null!=J?J:R,Q=t.useMemo(function(){var e,i;return{MaximizeIcon:null!==(e=null==N?void 0:N.MaximizeIcon)&&void 0!==e?e:null===(i=w.iconsConfig)||void 0===i?void 0:i.MaximizeIcon,ExternalLinkIcon:null==N?void 0:N.ExternalLinkIcon}},[N,null===(p=w.iconsConfig)||void 0===p?void 0:p.MaximizeIcon]),X=t.useMemo(function(){var i=E?{bodyHeight:d.getParentHeightGptBodyHeight(A)}:M&&O?{bodyHeight:O.gptBodyHeight}:{};return e.__assign(e.__assign(e.__assign(e.__assign({},w),i),{disableMaximize:void 0!==T?!T:w.disableMaximize}),A||m===s.CitationType.WEB?{DocumentTitle:void 0,previewCallback:void 0}:{})},[w,T,A,m,E,M,O]),Y=t.useState(m!==s.CitationType.GPT),Z=Y[0],$=Y[1],ee=m!==s.CitationType.GPT&&(m===s.CitationType.WEB||(null!=H?H:Z)),ie=void 0!==H,te=t.useMemo(function(){return x?r.mapCitationDataToDisplay(x):null},[x]),ne=null!==(_=null!=h?h:null==te?void 0:te.topic)&&void 0!==_?_:"Web Citation",oe=null!==(C=null!=k?k:null==te?void 0:te.relevanceScore)&&void 0!==C?C:0,le=null!=j?j:null==te?void 0:te.learnedFrom,ae=r.resolveSkeletonVisitUrl(null==te?void 0:te.highlightedUrl,null!==(b=null==te?void 0:te.citationUrl)&&void 0!==b?b:f),se=r.getWebCitationImageUrl(x),re=t.useMemo(function(){return function(e,i,t){return t?"success":e||(i?"error":"pending")}(F,x,se)},[F,x,se]),ue=t.useCallback(function(){I?I():ie||$(!1)},[I,ie]),de=t.useCallback(function(){I?I():ie||$(!0),se||"success"===re||null==S||S()},[I,ie,se,re,S]),ge=null!=y?y:"Source: Web Citation > ".concat(ne),ce=function(t){var n=!!X.DocumentTitle,l=[g.default.gptCitationWrapper,n?g.default.gptCitationWrapperWithSource:"",D?g.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return i.jsxs("div",e.__assign({className:l,style:e.__assign(e.__assign({},P.gptWrapper),K)},{children:[i.jsx(o.default,e.__assign({},X,{splitterCustomStyle:!0,onFullscreenChange:W})),t&&(n?i.jsx("div",e.__assign({className:g.default.gptCitationFooterAction,style:P.gptFooterAction},{children:t})):i.jsx("div",e.__assign({className:[g.default.gptCitationToggleFooter,D?g.default.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:P.gptFooterAction},{children:t})))]}))};return z&&!ee?i.jsx("div",e.__assign({className:g.default.overlay,style:e.__assign(e.__assign({},P.container),J)},{children:ce(A?i.jsx(v,{variant:"web",onClick:de,title:"View web-based citation for this source.",style:P.gptToggleButton}):void 0)})):U?i.jsxs("div",e.__assign({className:[g.default.panel,D?g.default.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},P.webPanel),K)},{children:[i.jsxs("div",e.__assign({className:g.default.panelHeader,style:P.webHeader},{children:[i.jsx("span",e.__assign({className:g.default.panelSource},{children:ge})),i.jsx("div",e.__assign({className:g.default.panelHeaderActions},{children:oe>0&&i.jsxs("div",e.__assign({className:g.default.confidenceBadge,title:"Decision strength"},{children:[i.jsx(n.Sparkles,{size:14}),oe,"%"]}))}))]})),i.jsx("div",e.__assign({className:[g.default.panelContent,g.default.panelContentExpanded,D?g.default.panelContentFixedHeight:""].filter(Boolean).join(" "),style:e.__assign(e.__assign({},P.webContent),D?d.getFixedWebContentStyle():void 0)},{children:"pending"===re?i.jsx(a.default,{status:"pending",citationUrl:ae,ExternalLinkIcon:Q.ExternalLinkIcon,styles:P.webSkeleton,visitLinkStyles:P.webSkeletonVisitLink,isFixedHeight:D}):"success"===re&&se?i.jsx(l.default,{citationImage:se,citationUrl:ae,showExpandImageButton:L,iconsConfig:Q,styles:P.webImage,visitLinkStyles:P.webImageVisitLink,skeletonStyles:P.webSkeleton,skeletonVisitLinkStyles:P.webSkeletonVisitLink,isFixedHeight:D,onFullscreenChange:W}):i.jsx(a.default,{status:"error",citationUrl:ae,ExternalLinkIcon:Q.ExternalLinkIcon,styles:P.webSkeleton,visitLinkStyles:P.webSkeletonVisitLink,isFixedHeight:D})})),i.jsxs("div",e.__assign({className:g.default.panelFooter,style:P.webFooter},{children:[A?i.jsx(v,{variant:"gpt",onClick:ue,style:P.webToggleButton}):null,le&&i.jsxs("span",e.__assign({className:g.default.learnedFrom,style:P.webLearnedFrom},{children:["Learned From ",le]}))]}))]})):i.jsx("div",e.__assign({className:g.default.overlay,style:e.__assign(e.__assign({},P.container),J)},{children:ce()}))};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),l=require("./GptWebCitationImageFullScreenView.js"),a=require("./GptWebCitationSkeleton.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),i=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),l=require("./GptWebCitationImageFullScreenView.js"),a=require("./GptWebCitationSkeleton.js"),r=require("./utils/citationData.utils.js"),s=require("./GptWebCitation.module.css.js");exports.default=function(o){var u,d,c=o.citationImage,f=o.citationUrl,g=o.skeletonVisitUrl,v=o.showExpandImageButton,x=void 0===v||v,m=o.iconsConfig,p=o.styles,j=o.visitLinkStyles,C=o.skeletonStyles,h=o.skeletonVisitLinkStyles,k=o.isFixedHeight,_=void 0!==k&&k,y=o.onFullscreenChange,b=null!==(u=null==m?void 0:m.MaximizeIcon)&&void 0!==u?u:n.Maximize2,w=null!==(d=null==m?void 0:m.ExternalLinkIcon)&&void 0!==d?d:n.ExternalLink,I=t.useState(!1),L=I[0],S=I[1],E=t.useState("loading"),N=E[0],q=E[1],B=t.useRef(!1);t.useEffect(function(){var e=!0;B.current&&(B.current=!1,null==y||y(!1)),q("loading"),S(!1);var i=new Image;return i.onload=function(){e&&q("loaded")},i.onerror=function(){e&&q("error")},i.src=c,function(){e=!1,i.onload=null,i.onerror=null}},[c,y]),t.useEffect(function(){return function(){B.current&&(B.current=!1,null==y||y(!1))}},[y]);var F="loaded"===N,H=r.sanitizeExternalUrl(f);return i.jsxs("div",e.__assign({className:[s.default.imageCitationWrapper,_?s.default.imageCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:null==p?void 0:p.wrapper},{children:[i.jsx("div",e.__assign({className:[s.default.imageCitationCenter,_?s.default.imageCitationCenterFixedHeight:""].filter(Boolean).join(" "),style:null==p?void 0:p.center},{children:F?i.jsxs("div",e.__assign({className:[s.default.imageCitationViewport,_?s.default.imageCitationViewportFixedHeight:""].filter(Boolean).join(" "),style:null==p?void 0:p.viewport},{children:[i.jsx("div",e.__assign({className:[s.default.imageCitationScrollContainer,_?s.default.imageCitationScrollContainerFixedHeight:""].filter(Boolean).join(" "),style:null==p?void 0:p.scrollContainer},{children:i.jsx("img",{src:c,alt:"Web citation snapshot",className:[s.default.citationImage,_?s.default.citationImageContained:""].filter(Boolean).join(" "),style:null==p?void 0:p.image})})),x&&i.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),B.current=!0,null==y||y(!0),S(!0)},className:s.default.expandImageButton,style:null==p?void 0:p.expandButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:i.jsx(b,{size:16,strokeWidth:2})}))]})):i.jsx(a.default,{status:"error"===N?"error":"pending",citationUrl:null!=g?g:f,ExternalLinkIcon:null==m?void 0:m.ExternalLinkIcon,styles:C,visitLinkStyles:h,isFixedHeight:_})})),H&&F&&i.jsxs("div",e.__assign({className:s.default.visitLinkRow,style:null==j?void 0:j.row},{children:[i.jsx("span",e.__assign({className:s.default.visitLinkHint,style:null==j?void 0:j.hint},{children:"Open link in new tab to read in detail"})),i.jsxs("a",e.__assign({href:H,target:"_blank",rel:"noreferrer",className:s.default.visitLink,style:null==j?void 0:j.link},{children:["Visit Link",i.jsx(w,{size:16})]}))]})),L&&F&&i.jsx(l.default,{src:c,onClose:function(){B.current=!1,null==y||y(!1),S(!1)},styles:null==p?void 0:p.fullScreen})]}))};
|
|
2
2
|
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="520px",t="3.25rem";exports.getFixedPanelStyle=function(e){return{height:e,minHeight:e,maxHeight:e,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},exports.getFixedWebContentStyle=function(){return{flex:1,minHeight:0,maxHeight:"none",overflow:"hidden",display:"flex",flexDirection:"column"}},exports.resolveFixedHeightLayout=function(n
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e="520px",t="3.25rem";exports.getFixedPanelStyle=function(e){return{height:e,minHeight:e,maxHeight:e,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},exports.getFixedWebContentStyle=function(){return{flex:1,minHeight:0,maxHeight:"none",overflow:"hidden",display:"flex",flexDirection:"column"}},exports.getParentHeightGptBodyHeight=function(e){return void 0===e&&(e=!0),e?"calc(100% - ".concat(t,")"):"100%"},exports.getParentHeightPanelStyle=function(){return{height:"100%",minHeight:0,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},exports.resolveFixedHeightLayout=function(i,n){if(void 0===n&&(n=!0),!n){var o=null!=i?i:e;return{contentHeight:o,gptBodyHeight:o,panelHeight:o}}if(i)return{contentHeight:i,gptBodyHeight:i,panelHeight:"calc(".concat(i," + ").concat(t,")")};var r="calc(".concat(e," - ").concat(t,")");return{contentHeight:r,gptBodyHeight:r,panelHeight:e}};
|
|
2
2
|
//# sourceMappingURL=fixedHeight.utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),s=require("@react-pdf-viewer/core"),i=require("./PdfStyle.js"),n="https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js";exports.default=function(t){var l=t.pdfUrl,o=t.plugins,a=t.onLoad,d=t.customStyles,u=t.onPageChange,p=t.defaultScale;return r.jsx("div",e.__assign({style:e.__assign(e.__assign({},i.pdfStyles.pdfConatiner),null==d?void 0:d.pdfContainer)},{children:r.jsx(s.Worker,e.__assign({workerUrl:n},{children:r.jsx(s.Viewer,{fileUrl:l,defaultScale:p,plugins:o,onDocumentLoad:a,onPageChange:u})}))}))},exports.pdfWorker=n;
|
|
2
2
|
//# sourceMappingURL=PdfContainer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.pdfStyles={pdfViewer:{borderRadius:"12px",padding:"16px",width:"100%",height:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden"},card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",width:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden"},header:{display:"flex",
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.pdfStyles={pdfViewer:{borderRadius:"12px",padding:"16px",width:"100%",height:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden"},card:{border:"2px solid #E5E7EB",backgroundColor:"#FFFFFF",borderRadius:"12px",width:"100%",minWidth:0,boxSizing:"border-box",overflow:"hidden"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",width:"100%",minWidth:0,boxSizing:"border-box"},title:{fontSize:"14px",fontWeight:600,color:"#60A3F8",fontFamily:'Roboto, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif'},toolbar:{display:"flex",alignItems:"center",gap:"8px",position:"relative"},button:{border:"1px solid #DFE5EC",borderRadius:"6px",padding:"4px 8px",fontSize:"12px",cursor:"pointer",backgroundColor:"#FFFFFF"},buttonDisabled:{opacity:.4,cursor:"not-allowed"},counter:{fontSize:"13px",color:"#64748B",margin:"0 6px"},viewerWrapper:{height:"30rem",overflow:"auto",display:"flex",justifyContent:"center",alignItems:"center",border:"1px solid #DEE4EB",borderRadius:"8px"},emptyState:{fontSize:"14px",color:"#EF4444"},pdfConatiner:{height:"100%",overflow:"auto",display:"flex",justifyContent:"center",alignItems:"center"}};
|
|
2
2
|
//# sourceMappingURL=PdfStyle.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),i=require("react"),t=require("./PdfStyle.js"),s=require("../../assests/svg/PdfViewerIcons.js"),o=require("@mui/material"),r=require("lucide-react");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=l(i);exports.default=function(i){i.highlightIndex;var l=i.totalHighlights,d=i.controls,c=i.currentPosition,p=i.pdfName,g=i.onClose,x=i.pdfUrl,u=i.viewerRef,h=i.customStyles,f=i.customClasses,_=i.customIcons,v=i.headerAction,y=i.isZoomEnabled,m=void 0===y||y,j=i.showHighlightsAction,b=void 0===j||j,w=i.showFullScreenAction,S=void 0===w||w,k=i.currentSegment,I=i.segmentTooltipText,F=void 0===I?"Details of current segment":I,C=i.currentPage,D=i.totalPages,W=i.onPageNavigate,E=d.ZoomInButton,B=d.ZoomOutButton,P=d.ZoomPopover,T=d.goToPrevious,z=d.goToNext,A=a.default.useState(String(C)),L=A[0],q=A[1];a.default.useEffect(function(){q(String(C))},[C]);var N={padding:"4px",borderRadius:"6px",background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease",flexShrink:0},R=function(e){return String(e).padStart(2,"0")};return n.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({marginBottom:"12px",background:"#FAFAFA",borderBottom:"1px solid #F3F4F6",borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},t.pdfStyles.header),null==h?void 0:h.header),{display:"flex",flexDirection:"column",alignItems:"stretch",gap:"12px"})},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:0}},{children:[n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0,overflow:"hidden"}},{children:[n.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},{borderRadius:"21px",border:"6px solid #E8F3FF",background:"#D5E8FF",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",boxSizing:"content-box"}),null==h?void 0:h.pdfIconWrapper),{flexShrink:0})},{children:(null==_?void 0:_.pdfIcon)||n.jsx(s.DefaultPdfIcon,{})})),n.jsx(o.Tooltip,e.__assign({title:p||"",arrow:!0,placement:"top"},{children:n.jsx("div",e.__assign({style:{flex:1,minWidth:0,overflow:"hidden"}},{children:n.jsx("span",e.__assign({style:e.__assign({display:"block",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500,cursor:"default"},null==h?void 0:h.pdfName),className:null==f?void 0:f.pdfName},{children:p}))}))}))]})),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:b?"16px":"2px",color:"#4B5563",flexShrink:0,whiteSpace:"nowrap",minWidth:"fit-content"}},{children:[D>0&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px",color:"#475467",flexShrink:0,whiteSpace:"nowrap"}},{children:[n.jsx("input",{"aria-label":"Current page",inputMode:"numeric",pattern:"[0-9]*",value:L,onChange:function(e){var n=e.target.value.replace(/\D/g,"");q(n)},onBlur:function(){var e=Number(L);if(!Number.isInteger(e)||e<1)q(String(C));else{var n=D?Math.min(e,D):e;W(n),q(String(n))}},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur(),"Escape"===e.key&&(q(String(C)),e.currentTarget.blur())},style:{width:"40px",height:"28px",border:"1px solid #E5E7EB",borderRadius:"4px",background:"#FFFFFF",color:"#111827",fontSize:"14px",fontWeight:500,textAlign:"center",outline:"none",boxSizing:"border-box"}}),n.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#111827"}},{children:"/"})),n.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:500,color:"#111827"}},{children:String(D)}))]})),m&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsx(B,{}),n.jsx("div",e.__assign({style:{fontSize:"14px",fontWeight:500,width:"56px",textAlign:"center"}},{children:n.jsx(P,{})})),n.jsx(E,{})]})),!!l&&b&&n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n.jsxs("span",e.__assign({style:{fontSize:"14px",color:"#475467",fontWeight:500,lineHeight:1}},{children:[c," of ",l]})),n.jsx("button",e.__assign({style:{background:"none",border:"none",cursor:c<=1?"not-allowed":"pointer",padding:"2px 4px",color:c<=1?"#D0D5DD":"#475467",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,height:"20px",width:"20px"},onClick:T,disabled:c<=1},{children:n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},{children:n.jsx("path",{d:"M2 8L6 4L10 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))})),n.jsx("button",e.__assign({style:{background:"none",border:"none",cursor:c===l?"not-allowed":"pointer",padding:"2px 4px",color:c===l?"#D0D5DD":"#475467",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,height:"20px",width:"20px"},onClick:z,disabled:c===l},{children:n.jsx("svg",e.__assign({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},{children:n.jsx("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))}))]})),n.jsx("div",{style:{width:"1px",height:"20px",background:"#D1D5DB",margin:"0 4px",flexShrink:0}}),n.jsxs("div",e.__assign({style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,whiteSpace:"nowrap"}},{children:[!1!==S&&((null==v?void 0:v.icon)&&(null==v?void 0:v.onClick)?n.jsx(o.Tooltip,e.__assign({title:(null==v?void 0:v.tooltip)||"",arrow:!0,placement:"top"},{children:n.jsx("div",e.__assign({onClick:v.onClick,style:e.__assign({display:"flex",alignItems:"center",cursor:"pointer"},N)},{children:v.icon}))})):n.jsx("button",e.__assign({onClick:function(){var e=null==u?void 0:u.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(function(e){console.error("Error attempting to enable fullscreen: ".concat(e.message))}))},style:N,title:"Full Screen"},{children:(null==_?void 0:_.fullScreenIcon)||n.jsx(s.DefaultFullScreenIcon,{})}))),x&&n.jsx("a",e.__assign({href:x,target:"_blank",rel:"noopener noreferrer",style:N,title:"Open in new tab"},{children:(null==_?void 0:_.downloadIcon)||n.jsx(s.DefaultDownloadIcon,{})})),g&&n.jsx("button",e.__assign({onClick:g,style:N,title:"Close"},{children:(null==_?void 0:_.closeIcon)||n.jsx(s.DefaultCloseIcon,{})}))]}))]}))]})),k&&n.jsxs("div",e.__assign({style:{background:"#EEF2FF",border:"1px solid #A5B4FC",borderRadius:"8px",color:"#4F46E5",display:"flex",alignItems:"center",gap:"12px",minWidth:0,padding:"10px 16px",fontSize:"12px",fontWeight:500,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},{children:[n.jsx(o.Tooltip,e.__assign({title:F,arrow:!0,placement:"top"},{children:n.jsx(r.Info,{size:16,color:"#4F46E5",strokeWidth:2,style:{flexShrink:0}})})),n.jsxs("span",e.__assign({style:{overflow:"hidden",textOverflow:"ellipsis"}},{children:["Viewing ",k.title," • Pages ",R(k.start_page),"-",R(k.end_page)]}))]}))]}))};
|
|
2
2
|
//# sourceMappingURL=PdfToolbar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("@react-pdf-viewer/core"),o=require("./PdfContainer.js"),n=require("./PdfToolbar.js"),r=require("./PdfStyle.js"),a=require("./usePdfHighlight.js");require("@react-pdf-viewer/zoom/lib/styles/index.css"),require("@react-pdf-viewer/page-navigation/lib/styles/index.css"),require("@react-pdf-viewer/core/lib/styles/index.css"),require("@react-pdf-viewer/search/lib/styles/index.css");var s=require("react"),l=require("../ScannedDocCitation/ScannedDocCitation.js"),u=function(e){switch(e){case"ActualSize":return i.SpecialZoomLevel.ActualSize;case"PageFit":return i.SpecialZoomLevel.PageFit;case"PageWidth":return i.SpecialZoomLevel.PageWidth;default:return null!=e?e:i.SpecialZoomLevel.PageWidth}};exports.default=function(c){var d,g=c.pdfUrl,f=c.highlightText,h=c.highlightPages,v=c.highlightCordinatePages,p=c.highlightColor,m=void 0===p?"yellow":p,x=c.activeHighlightColor,S=void 0===x?"#f7dc51":x,_=c.jumpToPageValue,P=void 0===_?0:_,T=c.pdfName,C=c.onClose,w=c.customStyles,y=c.customClasses,b=c.customIcons,A=c.useCoordinates,q=c.fallbackPages,j=c.activeCitationIndex,H=c.onActiveCitationChange,I=c.headerAction,F=c.isZoomEnabled,Z=void 0===F||F,L=c.showHighlightsAction,N=void 0===L||L,z=c.defaultScale,R=void 0===z?i.SpecialZoomLevel.ActualSize:z,D=c.useRange,E=void 0!==D&&D,M=c.rangeOfPages,V=void 0===M?null:M,W=c.showFullScreenAction,O=void 0===W||W,B=c.segments,U=void 0===B?[{title:"Document 2",start_page:52,end_page:52,page_count:1}]:B,k=c.segmentTooltipText,J=s.useRef(null),K=s.useState(0),G=K[0],Q=K[1],X=s.useState(0),Y=X[0],$=X[1],ee=s.useMemo(function(){if(A)return new Set(v.map(function(e){return e.pageIndex}));var e=new Set;return Object.values(h).forEach(function(t){t>0&&e.add(t-1)}),e},[v,h,A]),te=(d=f)&&0!==d.length?d.filter(function(e){return!d.some(function(t){return t!==e&&t.includes(e)})}):d,ie=a.PdfHighlightControls(te,A?{}:h,J,ee,A,A?v:[],m,S),oe=ie.highlightIndex,ne=ie.cursorIndex,re=ie.setCursorIndex,ae=ie.orderedKeys,se=ie.totalHighlights,le=ie.getValidPosition,ue=ie.tryJump,ce=ie.jumpToPage,de=ie.zoomTo,ge=ie.plugins,fe=ie.controls,he=ie.hideNonTargetHighlights,ve=ie.deduplicateHighlights,pe=le(ne),me=s.useMemo(function(){var e=G+1;return U.find(function(t){return e>=t.start_page&&e<=t.end_page})},[G,U]);s.useEffect(function(){void 0!==j&&j!==ne&&re(j)},[j]);var xe=e.__assign(e.__assign({},fe),{goToNext:function(){ne>=se-1||(fe.goToNext(),H&&H(ne+1))},goToPrevious:function(){ne<=0||(fe.goToPrevious(),H&&H(ne-1))}});if(!g)return t.jsx(l.default,{pages:q,activeCitationIndex:j,onActiveCitationChange:H,headerAction:I});return t.jsxs("div",e.__assign({ref:J,className:(null==y?void 0:y.pdfViewerWrapper)||"",style:e.__assign(e.__assign(e.__assign({height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column"},r.pdfStyles.pdfViewer),{display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA"}),null==w?void 0:w.pdfViewer)},{children:[t.jsx(n.default,{highlightIndex:oe,totalHighlights:se,controls:xe,currentPosition:pe,pdfName:T,onClose:C,pdfUrl:g,viewerRef:J,customStyles:w,customClasses:y,customIcons:b,headerAction:I,isZoomEnabled:Z,showHighlightsAction:N,showFullScreenAction:O,currentSegment:me,segmentTooltipText:k,currentPage:G+1,totalPages:Y,onPageNavigate:function(e){var t=Math.min(Math.max(e,1),Y||e);Q(t-1),ce(t-1)}}),t.jsx(o.default,{defaultScale:u(R),pdfUrl:g,plugins:ge,customStyles:w,onLoad:function(t){$(t.doc.numPages);var o=!A&&!E&&P<=0;if(de(i.SpecialZoomLevel.ActualSize),P>0&&!E){var n=P-1,r=ae[n],a=h[r],s=v[n];re(n),console.log(s,"cordinateTargetHighlight"),A&&s.pageIndex>0&&ce(s.pageIndex),a>0&&(setTimeout(function(){he(ee),ve(a-1)},1e3),A||ce(a-1))}else if(E&&V&&2===V.length){e.__awaiter(void 0,void 0,void 0,function(){var t,i,o,n,r;return e.__generator(this,function(e){switch(e.label){case 0:t=V[0],i=V[1],o=t,e.label=1;case 1:return o<=i?(ce(n=o-1),[4,new Promise(function(e){return setTimeout(e,1e3)})]):[3,4];case 2:if(e.sent(),he(ee),(r=ve(n))&&r>0)return[3,4];e.label=3;case 3:return o++,[3,1];case 4:return[2]}})})}else if(!A&&h){var l=ae.find(function(e){return h[e]>0});if(void 0!==l){var u=h[l]-1;ce(u),setTimeout(function(){he(ee),ve(u)},1e3)}}requestAnimationFrame(function(){o&&ue(),!A&&P>0&&!E&&function(){if(J.current){var e=P-1,t=ae[e],i=h[t],o=i>0?i-1:0,n={};ae.forEach(function(e,t){var i=h[e];i>0&&(n[i]||(n[i]=[]),n[i].push(t))});var r=(n[i]||[]).indexOf(e),a=0,s=function(){var e,t;if(!(++a>40)){var i=null===(e=J.current)||void 0===e?void 0:e.querySelector(".rpv-core__inner-pages");if(i){var n=null===(t=J.current)||void 0===t?void 0:t.querySelector('[data-testid="core__page-layer-'.concat(o,'"]'));if(n){var l=i.getBoundingClientRect(),u=n.getBoundingClientRect();if(u.top<l.bottom&&u.bottom>l.top){var c=n.querySelectorAll(".rpv-search__highlight")[r];if(c){var d=c.getBoundingClientRect(),g=i.scrollTop+(d.top-l.top)-i.clientHeight/2+d.height/2;i.scrollTo({top:g,behavior:"smooth"})}else setTimeout(s,100)}else setTimeout(s,100)}else setTimeout(s,100)}else setTimeout(s,100)}};setTimeout(s,500)}}()})},onPageChange:function(e){var t=e.currentPage;Q(t),ee.has(t)?(ve(t),he(ee)):he(ee)}})]}))};
|
|
2
2
|
//# sourceMappingURL=PdfViewer.js.map
|
package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("../../store/ref.context.js");require("../UserStoryCard/cws/CwsEvent.js");var i,o=require("../UserStoryCard/cws/CwsEventProvider.js"),r=require("react-hot-toast");exports.SectionStatus=void 0,(i=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",i.IN_PROGRESS="in_progress",i.GENERATED="generated",i.FAILED="failed",i.GENERATE="generate",i.APPROVED="approved";const s=t.createContext(null),a="user-story-lib";exports.ToasterId=a,exports.default=({children:i,userStory:u,setUserStory:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("../../store/ref.context.js");require("../UserStoryCard/cws/CwsEvent.js");var i,o=require("../UserStoryCard/cws/CwsEventProvider.js"),r=require("react-hot-toast");exports.SectionStatus=void 0,(i=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",i.IN_PROGRESS="in_progress",i.GENERATED="generated",i.FAILED="failed",i.GENERATE="generate",i.APPROVED="approved";const s=t.createContext(null),a="user-story-lib";exports.ToasterId=a,exports.default=({children:i,userStory:u,setUserStory:d,aiReasoning:l,setAiReasoning:c,citations:g,setCitations:C,apiCachingConfig:f,customStyles:h,customIcons:p,searchQueryList:S,searchQueryReasoningIdList:m,citationConfig:v,chatHistory:I,chatCitationConfigs:R,gptCitationConfigs:x,diffEditConfig:y,aiReasoningAccordionOpenStates:E,persistedDataFiles:A,inlineUpdateComponentConfig:D,segmentComponentConfig:b,onEditBlocked:j,inlineManualComponentConfig:w,redlineConfig:P,sectionStatusConfig:q,customSectionConfig:T,updateRedlineDataParent:U,redlineCollaborativeConfig:F,onFetchOnDemandCitation:N})=>{const[O,_]=t.useState(0),[k,L]=t.useState(""),M=t.useMemo(()=>{if(0===u.length||0===l.length)return Array(u.length).fill(0);const e=Array.from({length:u.length},()=>[]);return l.forEach(t=>{const n=Number(t.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${t.id}`,o=u.findIndex(e=>{var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(e=>e.value.includes(i)))});-1!==o&&e[o].push(n)}),e.map(e=>0===e.length?0:Math.round(e.reduce((e,t)=>e+t,0)/e.length))},[u,l]),G=t.useCallback(e=>{var t;const n=u.findIndex(t=>t.artifactId===e);return-1===n?0:null!==(t=M[n])&&void 0!==t?t:0},[u,M]),[H,Q]=t.useState(null);return e.jsxs(s.Provider,{value:{chatHistory:I,userStory:u,setUserStory:d,aiReasoning:l,setAiReasoning:c,citations:g,setCitations:C,apiCachingConfig:f,customStyles:h,customIcons:p,searchQueryList:S,searchQueryReasoningIdList:m,citationConfig:v,getAvgScoreForStory:G,chatCitationConfigs:R,gptCitationConfigs:x,diffEditConfig:y,aiReasoningAccordionOpenStates:E,persistedDataFiles:A,currentHighlightIndex:O,setCurrentHighlightIndex:_,inlineUpdateComponentConfig:D,segmentComponentConfig:b,onEditBlocked:j,inlineManualComponentConfig:w,redlineConfig:P,redlineDcoumentId:k,setRedlineDocumentId:L,sectionStatusConfig:q,customSectionConfig:T,updateRedlineDataParent:U,redlineCollaborativeConfig:F,selectedSectionToEdit:H,setSelectedSectionToEdit:Q,onFetchOnDemandCitation:N},children:[e.jsx(r.Toaster,{position:"top-right",toasterId:a}),(null==F?void 0:F.initiateCollaborativeFlow)?e.jsx(o.default,{applicationId:null==F?void 0:F.modeId,baseUrl:null==F?void 0:F.cwsBaseUrl,authToken:null==F?void 0:F.authToken,children:e.jsx(n.RefProvider,{children:i})}):e.jsx(n.RefProvider,{children:i})]})},exports.useRequirementAI=()=>{const e=t.useContext(s);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateTags.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/html"),a=require("lexical"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@lexical/react/LexicalComposerContext"),t=require("@lexical/html"),a=require("lexical"),i=require("showdown"),o=require("../../../../../../utils/tagHelper.js"),s=require("../utils/normalizeRedlineMarkdown.js"),n=require("../utils/preserveMarkdownEmphasis.js"),l=require("../utils/preserveReviewBoundaryWhitespace.js"),u=require("../constants/updateTags.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=d(i);exports.InitialHtml=({initialValue:i,initialFormat:d,mode:m})=>{const[p]=r.useLexicalComposerContext();return e.useEffect(()=>{if(i){if(i=(()=>{let e=o.normalizeLegacyCommentRedlinesForEditor(i);return e=o.normalizeCommentAnchorsForEditor(e),e=o.escapeTagIds(e,["manual","upt"]),["del","ins","preserved","manual","upt"].forEach(r=>{e=o.splitTagAcrossParagraphs(e,r)}),e})(),d&&"html"!==d){const e=new c.default.Converter({tables:!0,simpleLineBreaks:!0});i=e.makeHtml(n.normalizeCombinedEmphasisForRendering(n.normalizeReviewBoundaryEmphasisForRendering(s.normalizeRedlineMarkdown(i))))}p.update(()=>{const e=a.$getRoot();e.clear();const r=(new DOMParser).parseFromString(i||"","text/html"),o=l.collectReviewBoundaryWhitespace(r);t.$generateNodesFromDOM(p,r).forEach(r=>{try{a.$isParagraphNode(r)&&r.setFormat("justify"),e.append(r)}catch(e){console.error("Error appending node to root: ",e)}}),l.restoreReviewBoundaryWhitespace(o)},{tag:u.INITIAL_CONTENT_UPDATE_TAG})}},[i,p]),e.useEffect(()=>{p.setEditable("edit"===m)},[p,m]),null};
|
|
2
2
|
//# sourceMappingURL=InitialHtml.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class e extends t.ElementNode{static getType(){return"manual"}static clone(t){return new e(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),e="",s){super(s),this.__id=t,this.__status=e}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("manual");return t.dataset.id=this.__id,t.className=`PlaygroundEditorTheme__manual-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("manual");return t.id=this.__id,t.dataset.status=this.__status,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?e.dataset.status=this.__status:delete e.dataset.status,e.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:s,priority:1})}}static importJSON(t){var s;return new e(t.id,null!==(s=t.status)&&void 0!==s?s:"")}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id,status:this.__status}}isInline(){return!0}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}canMergeWith(){return!1}}function s(t){var s;return{node:new e(t.id||crypto.randomUUID(),null!==(s=t.dataset.status)&&void 0!==s?s:"")}}exports.ManualNode=e;
|
|
2
2
|
//# sourceMappingURL=ManualNode.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@lexical/react/LexicalComposerContext"),o=require("lexical"),r=require("@lexical/table");const n=(e,t,r)=>{var n;let l=e.getNode();if(!(o.$isTextNode(l)?e.offset===("start"===r?0:l.getTextContentSize()):!!o.$isElementNode(l)&&e.offset===("start"===r?0:l.getChildrenSize())))return!1;for(;l&&!l.is(t);){if("start"===r?l.getPreviousSibling():l.getNextSibling())return!1;l=l.getParent()}return null!==(n=null==l?void 0:l.is(t))&&void 0!==n&&n};exports.ProtectTableCellBoundaries=()=>{const[l]=t.useLexicalComposerContext();return e.useEffect(()=>{const e=()=>{const e=o.$getSelection();if(!o.$isRangeSelection(e)||e.isCollapsed())return!1;const t=r.$getTableCellNodeFromLexicalNode(e.anchor.getNode()),n=r.$getTableCellNodeFromLexicalNode(e.focus.getNode());return!(!t||!n||t.is(n))&&(e.anchor.set(e.focus.key,e.focus.offset,e.focus.type),!0)},t=l.registerCommand(o.KEY_DOWN_COMMAND,e=>{const t=o.$getSelection();if(!o.$isRangeSelection(t))return!1;const l=r.$getTableCellNodeFromLexicalNode(t.anchor.getNode()),s=r.$getTableCellNodeFromLexicalNode(t.focus.getNode());return!(!l||!s)&&(l.is(s)?!!t.isCollapsed()&&(("Backspace"===e.key&&n(t.anchor,l,"start")||!("Delete"!==e.key||!n(t.anchor,l,"end")))&&(e.preventDefault(),!0)):"Backspace"===e.key||"Delete"===e.key?(e.preventDefault(),!0):(1!==e.key.length||e.metaKey||e.ctrlKey||e.altKey||t.anchor.set(t.focus.key,t.focus.offset,t.focus.type),!1))},o.COMMAND_PRIORITY_CRITICAL),s=l.registerCommand(o.PASTE_COMMAND,()=>(e(),!1),o.COMMAND_PRIORITY_CRITICAL),i=l.registerCommand(o.CONTROLLED_TEXT_INSERTION_COMMAND,()=>(e(),!1),o.COMMAND_PRIORITY_CRITICAL),c=e=>{const t=e.target;if(!(t instanceof Element))return;const n=t.closest("td, th");n&&l.update(()=>{const e=o.$getNearestNodeFromDOMNode(n);if(!r.$isTableCellNode(e))return;const t=o.$getSelection();if(!o.$isRangeSelection(t)||!t.isCollapsed())return;const s=r.$getTableCellNodeFromLexicalNode(t.anchor.getNode());if(s&&!s.is(e)){const t=l.getElementByKey(s.getKey());!!t&&!!(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)?e.selectStart():e.selectEnd()}})},a=l.registerRootListener((e,t)=>{null==t||t.removeEventListener("pointerup",c),null==e||e.addEventListener("pointerup",c)});return()=>{t(),s(),i(),a()}},[l]),null};
|
|
2
|
+
//# sourceMappingURL=ProtectTableCellBoundaries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtectTableCellBoundaries.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class e extends t.ElementNode{static getType(){return"update"}static clone(t){return new e(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),e="",s){super(s),this.__id=t,this.__status=e}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("upt");return t.dataset.id=this.__id,t.className=`PlaygroundEditorTheme__update-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("upt");return t.id=this.__id,t.dataset.status=this.__status,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?e.dataset.status=this.__status:delete e.dataset.status,e.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:s,priority:1})}}static importJSON(t){var s;return new e(t.id,null!==(s=t.status)&&void 0!==s?s:"")}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id,status:this.__status}}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}}function s(t){var s;return{node:new e(t.id||crypto.randomUUID(),null!==(s=t.dataset.status)&&void 0!==s?s:"")}}exports.UpdateNode=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class e extends t.ElementNode{static getType(){return"update"}static clone(t){return new e(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),e="",s){super(s),this.__id=t,this.__status=e}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("upt");return t.dataset.id=this.__id,t.className=`PlaygroundEditorTheme__update-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("upt");return t.id=this.__id,t.dataset.status=this.__status,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?e.dataset.status=this.__status:delete e.dataset.status,e.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:s,priority:1})}}static importJSON(t){var s;return new e(t.id,null!==(s=t.status)&&void 0!==s?s:"")}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id,status:this.__status}}isInline(){return!0}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}canMergeWith(){return!1}}function s(t){var s;return{node:new e(t.id||crypto.randomUUID(),null!==(s=t.dataset.status)&&void 0!==s?s:"")}}exports.UpdateNode=e;
|
|
2
2
|
//# sourceMappingURL=UpdateNode.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var r=e(require("turndown"));const t=/<table\b[^>]*>[\s\S]*?<\/table\s*>/gi,n=/<invisible\b[^>]*\bid\s*=\s*(["'])(.*?)\1[^>]*>\s*<\/invisible\s*>/gi,l=/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,a=e=>{const t=Array.from(e.rows);if(!t.length)return"";const n=(()=>{const e=new r.default({headingStyle:"atx",codeBlockStyle:"fenced"}),t=["invisible","manual","upt","ins","del","preserved","deleted","changed"];return e.keep(e=>t.includes(e.nodeName.toLowerCase())),e.addRule("table-cell-line-break",{filter:"br",replacement:()=>"<br>"}),e})(),l=t.map(e=>Array.from(e.cells)),a=Math.max(...l.map(e=>e.length)),i=e=>Array.from({length:a},(r,t)=>((e,r)=>{if(!e)return"";const t=[],n=e.cloneNode(!0);n.querySelectorAll("invisible").forEach(e=>{const r=`MANUALEDITINVISIBLE${t.length}TOKEN`;t.push(e.outerHTML),e.replaceWith(r)});let l=r.turndown(n.innerHTML).trim().replace(/\n{2,}/g,"<br><br>").replace(/\n/g,"<br>");return t.forEach((e,r)=>{l=l.replace(`MANUALEDITINVISIBLE${r}TOKEN`,e)}),l.split(/(<[^>]+>)/g).map(e=>e.startsWith("<")?e:e.replace(/(^|[^\\])\|/g,"$1\\|")).join("")})(e[t],n)),o=e=>`| ${e.join(" | ")} |`,s=l[0];return`\n\n${[o(i(s)),o(Array.from({length:a},(e,r)=>(e=>{const r=((null==e?void 0:e.getAttribute("align"))||(null==e?void 0:e.style.textAlign)||"").toLowerCase();return"center"===r?":---:":"right"===r?"---:":"left"===r?":---":"---"})(s[r]))),...l.slice(1).map(e=>o(i(e)))].join("\n")}\n\n`},i=e=>e&&/<table\b/i.test(e)?e.replace(t,e=>{const r=(new DOMParser).parseFromString(e,"text/html").querySelector("table");return r?a(r):e}):e||"";exports.convertHtmlTablesToMarkdownPipes=i,exports.restoreInvisibleTagsForEditor=e=>(e||"").replace(l,'<invisible id="$1"></invisible>'),exports.serializeUpdateManualPayload=e=>i(e).replace(n,(e,r,t)=>`\x3c!-- ${t} --\x3e`);
|
|
2
|
+
//# sourceMappingURL=manualEditSerialization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manualEditSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,t=new RegExp(String.raw`<updated\b(${e})>([\s\S]*?)<\/updated\s*>`,"gi"),n=new RegExp(String.raw`<upt\b(${e})>([\s\S]*?)<\/upt\s*>`,"gi"),r=new RegExp(String.raw`<(deleted|changed)\b(${e})>([\s\S]*?)<\/\1\s*>`,"gi"),i=e=>{const t=e.trim();if(!t.includes("|"))return null;const n=[];let r="";for(let e=0;e<t.length;e+=1){const i=t[e],s=e>0&&"\\"===t[e-1];"|"!==i||s?r+=i:(n.push(r.trim()),r="")}return n.push(r.trim()),t.startsWith("|")&&n.shift(),t.endsWith("|")&&n.pop(),n},s=e=>!!(null==e?void 0:e.length)&&e.every(e=>/^:?-{3,}:?$/.test(e)),d=e=>`| ${e.join(" | ")} |`,l=e=>e.replace(n,(e,t,n)=>{if(!(e=>{const t=e.split("\n");return t.some((e,n)=>{var r;return n>0&&s(i(e))&&!!(null===(r=i(t[n-1]))||void 0===r?void 0:r.length)})})(n))return e;return`<updated${t}>${n.replace(/<del\b([^>]*)>/gi,"<deleted$1>").replace(/<\/del\s*>/gi,"</deleted>").replace(/<ins\b([^>]*)>/gi,"<changed$1>").replace(/<\/ins\s*>/gi,"</changed>")}</updated>`});exports.normalizeRedlineMarkdown=n=>{if(!n)return"";let a=l(n).replace(t,(e,t,n)=>{if(!n.includes("|"))return e;if(!/\bid\s*=\s*["']ai_reasoning\$/i.test(t))return n;const r=/\bdata-main\b/i.test(t)?"":" data-main",i=((e,t)=>{const n=t.match(/\bid\s*=\s*["']([^"']+)["']/i);if(!n)return e;const r=encodeURIComponent(n[1]);return e.replace(/<(deleted|changed)\b([^>]*)>/gi,(e,t,n)=>/\bdata-upt-id\s*=/i.test(n)?e:`<${t}${n} data-upt-id="${r}">`)})(n,t);return`<upt${t}${r}></upt>\n\n${i}`});return a=(t=>{const n=new RegExp(String.raw`(<deleted\b${e}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(<changed\b${e}>[^|]*?<\/changed\s*>)\s*\|`,"gi"),d=t.replace(n,(e,t,n)=>{var r;return`${(null!==(r=t.replace(/<\/deleted\s*>$/i,"").trimEnd().split("\n").at(-1))&&void 0!==r?r:"").trimEnd().endsWith("|")?t:t.replace(/<\/deleted\s*>$/i," |</deleted>")}\n${n}`}),l=new RegExp(String.raw`(<deleted\b${e}>(?:(?!<\/deleted\s*>)[\s\S])*?\|(?:(?!<\/deleted\s*>)[\s\S])*?<\/deleted\s*>)\s*(?=<changed\b${e}>)`,"gi"),a=d.replace(l,"$1\n\n");return a.replace(r,(e,t,n,r,d)=>{if(!r.includes("|"))return e;const l=a.slice(0,d),c=/(?:^|\n)[ \t]*$/.test(l);return r.split("\n").map((e,r)=>{if(!e)return e;let d=e;d.includes("|")&&!/^\s*\|/.test(d)&&(r>0||c)&&(d=`| ${d}`);const l=i(d);return s(l)?d:d.split(/(\|)/).map(e=>"|"!==e&&e.trim()?`<${t}${n}>${e}</${t}>`:e).join("")}).join("\n")})})(a),a=a.replace(/([([])\s+(?=<(?:deleted|changed)>)/gi,"$1"),(e=>{const t=e.split("\n");for(let e=1;e<t.length;e+=1){const n=i(t[e]);if(!s(n))continue;const r=i(t[e-1]);if(!(null==r?void 0:r.length))continue;for(;r.length>n.length;){const e=r.findIndex(e=>""===e);if(-1===e)break;r.splice(e,1)}const l=Math.max(r.length,n.length);let a=e+1,c=0;for(;a<t.length&&""!==t[a].trim();){const e=i(t[a]);if(!e)break;for(;e.length>l;){const t=e.findIndex(e=>""===e);if(-1===t)break;e.splice(t,1)}t[a]=d(e),c=Math.max(c,e.length),a+=1}const o=Math.max(r.length,n.length,c);for(;r.length<o;)r.push("");for(;n.length<o;)n.push("---");t[e-1]=d(r),t[e]=d(n)}return t.join("\n")})(a)};
|
|
2
|
+
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeRedlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},n=e=>/[\p{L}\p{N}]/u.test(e),t=t=>{var r,o,s;const l=[],a=[];let c="",d=!1,i=0;for(let p=0;p<t.length;p+=1){const g=t[p];if(d){c?g!==c||e(t,p)||(c=""):'"'===g||"'"===g?c=g:">"===g&&(d=!1);continue}if(!i&&"<"===g&&/[A-Za-z/!?]/.test(null!==(r=t[p+1])&&void 0!==r?r:"")){d=!0;continue}if("`"===g&&!e(t,p)){let e=1;for(;"`"===t[p+e];)e+=1;i?i===e&&(i=0):i=e,p+=e-1;continue}if(i||"*"!==g&&"_"!==g)continue;if(e(t,p))continue;let h=1;for(;t[p+h]===g;)h+=1;const x=null!==(o=t[p-1])&&void 0!==o?o:"",u=null!==(s=t[p+h])&&void 0!==s?s:"",m="_"===g&&n(x)&&n(u),I=""!==u&&!/\s/.test(u)&&!m;let f=0,k=h;if(""!==x&&!/\s/.test(x)&&!m){let e=a.at(-1);for(;e&&e.marker===g&&k>=e.markerLength;)l.push({...e,closeIndex:p+f}),f+=e.markerLength,k-=e.markerLength,a.pop(),e=a.at(-1)}I&&k>0&&k<=3&&a.push({openIndex:p+f,marker:g,markerLength:k}),p+=h-1}return l.sort((e,n)=>e.openIndex-n.openIndex)},r=e=>{const n=[];let t="",r=0;return e.split("\n").forEach(e=>{const o=e.match(/^\s*(`{3,}|~{3,})/);if(o){const n=o[1][0];return t?t===n&&(t=""):t=n,void(r+=e.length+1)}if(!t){let t=0;e.split(/(`+[^`]*`+)/g).forEach((e,o)=>{o%2==0&&Array.from(e.matchAll(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g)).forEach(e=>{var o;const s=r+t+(null!==(o=e.index)&&void 0!==o?o:0);n.push({openIndex:s,closeIndex:s+e[0].length-3,leadingSpace:e[1],content:e[2],trailingSpace:e[3]})}),t+=e.length})}r+=e.length+1}),n},o=/(<(manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/\2\s*>)/gi;exports.collectMarkdownEmphasisRanges=t,exports.markdownWithoutEmphasisMarkers=e=>t(e).flatMap(e=>[{index:e.openIndex,length:e.markerLength},{index:e.closeIndex,length:e.markerLength}]).sort((e,n)=>n.index-e.index).reduce((e,n)=>e.slice(0,n.index)+e.slice(n.index+n.length),e),exports.normalizeCombinedEmphasisForRendering=e=>{let n="";return e.split("\n").map(e=>{const t=e.match(/^\s*(`{3,}|~{3,})/);if(t){const r=t[1][0];return n?n===r&&(n=""):n=r,e}return n?e:e.split(/(`+[^`]*`+)/g).map((e,n)=>n%2==1?e:e.replace(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g,(e,n,t,r)=>`${n}***${t}***${r}`)).join("")}).join("\n")},exports.normalizeReviewBoundaryEmphasisForRendering=e=>e.replace(/(<(?:manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>)(<del\b(?:[^>"']|"[^"]*"|'[^']*')*>)(\*{1,3}|_{1,3})([\s\S]*?)(<\/del\s*>)([ \t]*)(<ins\b(?:[^>"']|"[^"]*"|'[^']*')*>)\3([\s\S]*?)(<\/ins\s*>)(<\/(?:manual|upt)\s*>)([^\n]*?)\3/g,(e,n,t,r,o,s,l,a,c,d,i,p)=>`${r}${n}${t}${o}${s}${l}${a}${c}${d}${i}${p}${r}`),exports.preserveEmphasisMarkersFromSource=(e,n)=>{n=((e,n)=>{const t=r(e),o=r(n);if(!t.length||!o.length)return n;const s=[];if(t.length===o.length)o.forEach((e,n)=>{s.push({sourceIndex:n,generatedIndex:n})});else{let e=0;o.forEach((n,r)=>{const o=t.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==o&&(s.push({sourceIndex:o,generatedIndex:r}),e=o+1)})}let l=n;return s.sort((e,n)=>o[n.generatedIndex].openIndex-o[e.generatedIndex].openIndex).forEach(({sourceIndex:e,generatedIndex:n})=>{const r=t[e],s=o[n],a=`***${r.leadingSpace}${s.content}${r.trailingSpace}***`;l=l.slice(0,s.openIndex)+a+l.slice(s.closeIndex+3)}),l})(e,n),n=((e,n)=>{const r=t(e).filter(n=>/<(?:manual|upt)\b/i.test(e.slice(n.openIndex+n.markerLength,n.closeIndex)));let s=n;return r.sort((e,n)=>n.openIndex-e.openIndex).forEach(n=>{const t=n.marker.repeat(n.markerLength),r="*".repeat(n.markerLength),l=e.slice(n.openIndex+n.markerLength,n.closeIndex),a=l.split(new RegExp(o.source,"gi")).filter((e,n)=>e&&(n%3==0||n%3==1)).map(e=>/^<(?:manual|upt)\b/i.test(e)?e:`${r}${e}${r}`).join(""),c=`${t}${l}${t}`;a&&s.includes(a)&&(s=s.replace(a,c))}),s})(e,n);const s=t(e),l=t(n),a=(e,n)=>e.slice(n.openIndex+n.markerLength,n.closeIndex).replace(/\r\n/g,"\n"),c=s.map(n=>a(e,n)),d=l.map(e=>a(n,e)),i=[],p=(e,n)=>s[e].markerLength===l[n].markerLength&&c[e]===d[n],g=Array.from({length:c.length+1},()=>Array(d.length+1).fill(0));for(let e=c.length-1;e>=0;e-=1)for(let n=d.length-1;n>=0;n-=1)g[e][n]=p(e,n)?g[e+1][n+1]+1:Math.max(g[e+1][n],g[e][n+1]);let h=0,x=0;for(;h<c.length&&x<d.length;)p(h,x)?(i.push({sourceIndex:h,generatedIndex:x}),h+=1,x+=1):g[h+1][x]>=g[h][x+1]?h+=1:x+=1;if(s.length===l.length){const e=new Set(i.map(e=>e.generatedIndex));for(let n=0;n<l.length;n+=1)e.has(n)||s[n].markerLength!==l[n].markerLength||i.push({sourceIndex:n,generatedIndex:n})}let u=n;return i.sort((e,n)=>n.generatedIndex-e.generatedIndex),i.forEach(({sourceIndex:e,generatedIndex:n})=>{const t=s[e],r=l[n],o=t.marker.repeat(t.markerLength);u=u.slice(0,r.closeIndex)+o+u.slice(r.closeIndex+r.markerLength),u=u.slice(0,r.openIndex)+o+u.slice(r.openIndex+r.markerLength)}),u};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownEmphasis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownEmphasis.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=/<br\s*\/?>|\r\n|\r|\n/gi,t=e=>e.replace(/<[^>]*>/g," ").replace(/[*_`~]+/g,"").replace(/ |\u00a0/gi," ").replace(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&").replace(/\s+/g," ").trim().toLocaleLowerCase(),r=r=>{const l=Array.from(r.matchAll(new RegExp(e.source,"gi")));return l.map((e,i)=>{var n,g,s,c;const h=null!==(n=e.index)&&void 0!==n?n:0,o=i>0?(null!==(g=l[i-1].index)&&void 0!==g?g:0)+l[i-1][0].length:0,a=null!==(c=null===(s=l[i+1])||void 0===s?void 0:s.index)&&void 0!==c?c:r.length;return{raw:e[0],left:t(r.slice(o,h).slice(-100)),right:t(r.slice(h+e[0].length,a).slice(0,100))}})};exports.preserveLineBreaksFromSource=(t,l)=>{if(!t||!l)return l;const i=r(t),n=r(l);if(!i.length||!n.length)return l;if(i.length===n.length){let t=0;return l.replace(e,()=>i[t++].raw)}let g=0,s=0;return l.replace(e,e=>{const t=n[s++],r=i.findIndex((e,r)=>r>=g&&((e,t)=>{const r=Boolean(e.left&&t.left&&(e.left.endsWith(t.left)||t.left.endsWith(e.left))),l=Boolean(e.right&&t.right&&(e.right.startsWith(t.right)||t.right.startsWith(e.right)));if(r||l)return!0;const i=e.left&&e.left.length>=50&&t.left&&t.left.length>=50,n=e.right&&e.right.length>=50&&t.right&&t.right.length>=50;if(i){const r=e.left.slice(-30),l=t.left.slice(-30);if(r.split("").filter((e,t)=>l[t]===e).length>=15)return!0}if(n){const r=e.right.slice(0,30),l=t.right.slice(0,30);if(r.split("").filter((e,t)=>l[t]===e).length>=15)return!0}return!1})(e,t));return-1===r?e:(g=r+1,i[r].raw)})};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownLineBreaks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownLineBreaks.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>{const n=[];let t="";return e.forEach((e,r)=>{const o=e.match(/^\s*(`{3,}|~{3,})/);if(o){const e=o[1][0];return void(t?t===e&&(t=""):t=e)}if(t)return;const s=e.match(/^(\s*)([*+-])([ \t]+)(.*)$/);s&&n.push({lineIndex:r,indent:s[1],marker:s[2],spacing:s[3],content:s[4]})}),n};exports.preserveListFormattingFromSource=(n,t)=>{if(!n||!t)return t;const r=n.split("\n"),o=t.split("\n"),s=e(r),c=e(o);if(!s.length||!c.length)return t;const i=[];if(s.length===c.length)c.forEach((e,n)=>{i.push({sourceIndex:n,generatedIndex:n})});else{let e=0;c.forEach((n,t)=>{const r=s.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==r&&(i.push({sourceIndex:r,generatedIndex:t}),e=r+1)})}return i.forEach(({sourceIndex:e,generatedIndex:n})=>{const t=s[e],r=c[n];o[r.lineIndex]=`${t.indent}${t.marker}${t.spacing}`+r.content}),o.join("\n")};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownListFormatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownListFormatting.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical"),t=require("../plugins/ManualNode.js"),o=require("../plugins/UpdateNode.js");const n=(e,t)=>`${e.toLowerCase()}:${t}`;exports.collectReviewBoundaryWhitespace=e=>{const t=new Map;return e.querySelectorAll("manual[id], upt[id]").forEach(e=>{var o,r,i,a,l,s;const d=e.getAttribute("id");if(!d)return;const u=null===(r=null===(o=e.previousSibling)||void 0===o?void 0:o.textContent)||void 0===r?void 0:r.match(/[ \t]+$/),c=null!==(i=null==u?void 0:u[0])&&void 0!==i?i:"",p=null===(l=null===(a=e.nextSibling)||void 0===a?void 0:a.textContent)||void 0===l?void 0:l.match(/^[ \t]+/),f=null!==(s=null==p?void 0:p[0])&&void 0!==s?s:"";t.set(n(e.tagName,d),{before:c,after:f})}),t},exports.restoreReviewBoundaryWhitespace=r=>{[...e.$nodesOfType(t.ManualNode).map(e=>({tag:"manual",node:e})),...e.$nodesOfType(o.UpdateNode).map(e=>({tag:"upt",node:e}))].forEach(({tag:t,node:o})=>{const i=o.getId(),a=r.get(n(t,i));if(!a)return;const l=o.getPreviousSibling();if(e.$isTextNode(l)){const e=l.getTextContent();l.setTextContent(`${e.replace(/[ \t]*$/,"")}${a.before}`)}else a.before&&o.insertBefore(e.$createTextNode(a.before));const s=o.getNextSibling();if(e.$isTextNode(s)){const e=s.getTextContent();s.setTextContent(`${a.after}${e.replace(/^[ \t]*/,"")}`)}else a.after&&o.insertAfter(e.$createTextNode(a.after))})};
|
|
2
|
+
//# sourceMappingURL=preserveReviewBoundaryWhitespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveReviewBoundaryWhitespace.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=e=>{const n=[],t=[],r=/\r\n|\n|\r|\\r\\n|\\n|\\r/g;let l,s=0;for(;null!==(l=r.exec(e));)n.push(e.slice(s,l.index)),t.push(l[0]),s=l.index+l[0].length;return n.push(e.slice(s)),{lines:n,separators:t}},n=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},t=e=>e.flatMap((e,t)=>{const r=(e=>{let t=e.trim();if(!t.includes("|"))return 0;t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&!n(t,t.length-1)&&(t=t.slice(0,-1));const r=[];let l="";for(let e=0;e<t.length;e+=1)"|"!==t[e]||n(t,e)?l+=t[e]:(r.push(l.trim()),l="");return r.push(l.trim()),r.length>=2&&r.every(e=>/^:?-{3,}:?$/.test(e))?r.length:0})(e);return r?[{lineIndex:t,columnCount:r,raw:e}]:[]});exports.preserveTableDelimiterRowsFromSource=(n,r)=>{if(!n||!r)return r;const l=e(n),s=e(r),u=t(l.lines),i=t(s.lines);if(!u.length||!i.length)return r;let o=0;return i.forEach((e,n)=>{let t=u.findIndex((n,t)=>t>=o&&n.columnCount===e.columnCount);if(t<0){const r=u[n];if(!r||r.columnCount!==e.columnCount)return;t=n}s.lines[e.lineIndex]=u[t].raw,o=t+1}),(({lines:e,separators:n})=>e.map((e,t)=>{var r;return`${e}${null!==(r=n[t])&&void 0!==r?r:""}`}).join(""))(s)};
|
|
2
|
+
//# sourceMappingURL=preserveTableDelimiters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveTableDelimiters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e=String.raw`(?:[^>"']|"[^"]*"|'[^']*')*`,n=String.raw`(<manual\b${e}>)([\s\S]*?)<\/manual\s*>`,t="__LEXICAL_TABLE_BOUNDARY_PART_",r=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=(e,n)=>{let t=0;for(let r=n-1;r>=0&&"\\"===e[r];r-=1)t+=1;return t%2==1},l=(e,n)=>{const t=[];let r="",l=0,o=!1,i="";for(let a=0;a<e.length;a+=1){const d=e[a];o?(r+=d,i?d!==i||s(e,a)||(i=""):'"'===d||"'"===d?i=d:">"===d&&(o=!1)):"<"!==d?"|"!==d||s(e,a)?r+=d:(l<n?(t.push(r),r=""):r+="\\|",l+=1):(o=!0,r+=d)}return t.push(r),{parts:t,pipeCount:l}},o=e=>l(e,0).pipeCount,i=e=>{var n;return null!==(n=e.toLocaleLowerCase().match(/[\p{L}\p{N}]+/gu))&&void 0!==n?n:[]},a=(e,n,t)=>{if(e.length===t)return e;const r=Array(t).fill("");if(1===e.length){let s=0,l=-1;return n.forEach((n,t)=>{const r=((e,n)=>{const t=i(e).join(" "),r=i(n).join(" ");if(!t||!r)return 0;if(r.includes(t))return 4*t.length;if(t.includes(r))return 4*r.length;const s=new Set(i(n));return i(e).reduce((e,n)=>e+(s.has(n)?n.length:0),0)})(e[0],n);r>l&&(s=t,l=r)}),r[Math.min(s,t-1)]=e[0],r}return e.slice(0,t).forEach((e,n)=>{r[n]=e}),r},d=(e,n,r)=>`${e}${t}${n}_OF_${r}`,u=n=>{const t=n.match(new RegExp(String.raw`^(\s*)(<del\b${e}>)([\s\S]*?)<\/del\s*>(\s*)(<ins\b${e}>)([\s\S]*?)<\/ins\s*>(\s*)$`,"i"));if(t)return{prefix:t[1],deletedOpen:t[2],deletedBody:t[3],between:t[4],insertedOpen:t[5],insertedBody:t[6],suffix:t[7]};const r=n.match(new RegExp(String.raw`^(\s*)(<(del|ins)\b${e}>)([\s\S]*?)<\/\3\s*>(\s*)$`,"i"));return r?"del"===r[3].toLowerCase()?{prefix:r[1],deletedOpen:r[2],deletedBody:r[4],between:"",suffix:r[5]}:{prefix:r[1],between:"",insertedOpen:r[2],insertedBody:r[4],suffix:r[5]}:null},c=e=>{const n=e.trim();if(!n.includes("|"))return 0;let t=n;t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&!s(t,t.length-1)&&(t=t.slice(0,-1));const r=l(t,Number.MAX_SAFE_INTEGER).parts.map(e=>e.trim());return r.length>0&&r.every(e=>/^:?-{3,}:?$/.test(e))?r.length:0},p=(e,t)=>{const r=Array.from(e.matchAll(new RegExp(n,"gi")));if(!r.length)return{normalized:e,plans:[]};let s=e;r.forEach(e=>{s=s.replace(e[0],"")});let i=Math.max(0,t-o(s));const c=[];return{normalized:e.replace(new RegExp(n,"gi"),(e,n,t)=>{const r=null!==(p=null===(s=n.match(/\bid\s*=\s*(?:"([^"]*)"|'([^']*)')/i))||void 0===s?void 0:s.slice(1).find(Boolean))&&void 0!==p?p:"";var s,p;const f=(e=>{var n,t;const r=u(e);return r?Math.max(o(null!==(n=r.deletedBody)&&void 0!==n?n:""),o(null!==(t=r.insertedBody)&&void 0!==t?t:"")):o(e)})(t);if(!r||!f)return e;const m=Math.min(i,f);i-=m;const h=((e,n,t,r)=>{var s,o;const i=r+1,c=u(n);let p;if(c){const e=l(null!==(s=c.deletedBody)&&void 0!==s?s:"",r).parts,n=l(null!==(o=c.insertedBody)&&void 0!==o?o:"",r).parts,t=a(e,n,i),d=a(n,e,i);p=Array.from({length:i},(e,n)=>{const r=t[n],s=d[n],l=c.deletedOpen&&r?`${c.deletedOpen}${r}</del>`:"",o=c.insertedOpen&&s?`${c.insertedOpen}${s}</ins>`:"";return`${c.prefix}${l}${c.between}${o}${c.suffix}`})}else p=l(n,r).parts;const f=p.map((n,r)=>{return n?`${s=e,l=d(t,r,i),s.replace(/(\bid\s*=\s*)(?:"[^"]*"|'[^']*')/i,(e,n)=>`${n}"${l}"`)}${n}</manual>`:"";var s,l});return{normalized:f.join("|"),slots:f.map(Boolean)}})(n,t,r,m);return h.slots.some(Boolean)?(c.push({sourceBlock:e,manualId:r,fragmentSlots:h.slots}),h.normalized):e}),plans:c}},f=e=>{const n=e.split("\n"),t=(e=>{const n=new Map;for(let t=1;t<e.length;t+=1){if(!c(e[t])||!e[t-1].includes("|"))continue;const r=o(e[t]);n.set(t-1,r),n.set(t,r);let s=t+1;for(;s<e.length&&e[s].trim()&&e[s].includes("|");)n.set(s,r),s+=1;t=s-1}return n})(n),r=[];return t.forEach((e,t)=>{const s=p(n[t],e);n[t]=s.normalized,r.push(...s.plans)}),{normalized:n.join("\n"),plans:r}};exports.normalizeTableBoundaryManualRedlines=e=>e?f(e).normalized:"",exports.preserveTableBoundaryManualRedlinesFromSource=(n,s)=>{if(!n||!s)return s;const{plans:l}=f(n);let o=s;return l.forEach(({sourceBlock:n,manualId:t,fragmentSlots:s})=>{const l=s.length,i=s.map((n,s)=>{if(!n)return"";const o=r(d(t,s,l));return String.raw`<manual\b(?=${e}\bid\s*=\s*(?:"${o}"|'${o}'))${e}>[\s\S]*?<\/manual\s*>`}),a=String.raw`(?:\s| |<br\s*\/?>)*\\?\|(?:\s| |<br\s*\/?>)*`;o=o.replace(new RegExp(i.join(a),"i"),()=>n)}),o.replace(new RegExp(`${r(t)}\\d+_OF_\\d+`,"g"),"")};
|
|
2
|
+
//# sourceMappingURL=tableBoundaryRedlines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableBoundaryRedlines.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./Editor/constants/editorConfig.js"),n=require("./Editor/Editor.js"),a=require("../../store/ref.context.js"),o=require("@lexical/html"),l=require("turndown"),s=require("turndown-plugin-gfm"),i=require("../UnsavedChangesPopup/UnsavedChangesPopup.js"),c=require("../../../../utils/tagHelper.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const d=new(u(l).default)({headingStyle:"atx",codeBlockStyle:"fenced"}),p=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");d.keep(["ins","del","mark"]),d.addRule("ai-reasoning-link-passthrough",{filter:e=>{var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r},replacement:(e,t)=>{const r=t,n=r.getAttribute("href")||"",a=r.textContent||"";return`<a href="${o=n,p(o).replace(/"/g,""")}">${p(a)}</a>`;var o}}),d.keep(e=>"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")),d.addRule("md-table-passthrough",{filter:e=>"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table"),replacement:(e,t)=>t.textContent||""}),d.use(s.tables);const h=e=>(e||"").replace(/\r\n/g,"\n").trim(),g=t.forwardRef(({type:l,value:s,handleUpdateState:u,onBlur:p,placeholder:g,minHeight:f,height:m,mode:E,doNotShowBorderInViewMode:v,onEditBlocked:S,onSaveUnsavedChanges:A,onDiscardUnsavedChanges:$,isSavingUnsavedChanges:y=!1},b)=>{const w=t.useRef(null),[x,C]=t.useState({type:l,value:s}),[q,N]=t.useState(0),[R,T]=t.useState(!1),_=t.useRef(s),B=t.useRef(s),j=t.useRef(Boolean(s)),{contentRef:I,setContentRef:L}=a.useRefStore();t.useEffect(()=>{C(e=>({...e,value:s})),_.current=s,B.current=s,j.current=Boolean(s),T(!1)},[s]),t.useImperativeHandle(b,()=>({requestClose:()=>!("edit"===E&&h(_.current)!==h(B.current))||(T(!0),!1)}),[E]);return t.useEffect(()=>{const e=()=>{I&&I.current&&N(I.current.clientHeight-60)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[I]),e.jsxs("div",{style:{position:"relative",width:"100%",height:m,minHeight:f},children:[R&&e.jsx(i.UnsavedChangesPopup,{isSaving:y,onSave:async()=>{await(null==A?void 0:A()),_.current=B.current,T(!1)},onDiscard:()=>{B.current=_.current,null==$||$(),T(!1)}}),e.jsx(n.default,{minHeight:f,height:m,placeholder:g||"Enter some text...",onChange:(e,t)=>{e.read(()=>{const e=o.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");r.querySelectorAll("span").forEach(e=>{const t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,"")),e.removeAttribute("class"),e.textContent=e.textContent||""})(e)});const n=["upt","manual","ins","del","preserved"];function a(e,t){const r=e.cloneNode(!0),o=new Map;r.querySelectorAll(n.join(",")).forEach(e=>{if(e===r)return;const n=`%%NESTED${o.size}%%`;o.set(n,a(e,t)),e.replaceWith(n)});let l=t.turndown(r.innerHTML);o.forEach((e,t)=>{l=l.replace(t,e)});const s=Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),i=e.tagName.toLowerCase();return s?`<${i} ${s}>${l}</${i}>`:`<${i}>${l}</${i}>`}r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const l=[];r.querySelectorAll("invisible").forEach((e,t)=>{l.push(e.outerHTML),e.replaceWith(r.createTextNode(`%%INVISIBLE_${t}%%`))});const s=[];["manual","upt"].forEach(e=>{r.querySelectorAll(e).forEach((e,t)=>{s.push(a(e,d)),e.replaceWith(r.createTextNode(`%%REVIEW_${s.length-1}%%`))})});const i=[];r.querySelectorAll("table").forEach((e,t)=>{i.push(e.outerHTML);const n=r.createElement("p");n.textContent=`%%TABLE_${t}%%`,e.replaceWith(n)});let p=d.turndown(r.body.innerHTML);for(let e=s.length-1;e>=0;e--)p=p.replace(`%%REVIEW\\_${e}%%`,` ${s[e]} `);l.forEach((e,t)=>{p=p.replace(new RegExp(`%%INVISIBLE\\\\*_${t}%%`,"g"),` ${e} `)}),i.forEach((e,t)=>{p=p.replace(`%%TABLE\\_${t}%%`,`\n\n${e}\n\n`)}),p=p.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"),p=p.replace(/\s+class="PlaygroundEditorTheme__[^"]*"/g,""),p=p.replace(/<span\s+style="white-space:\s*pre-wrap;?">([\s\S]*?)<\/span>/g,"$1"),p=p.replace(/\s+style="white-space:\s*pre-wrap;?"/g,""),p=p.replace(/<b>\s*<strong>([\s\S]*?)<\/strong>\s*<\/b>/g,"<strong>$1</strong>");["upt","manual","del","ins","preserved"].forEach(e=>{p=c.mergeTagAcrossParagraphs(p,e)}),p=c.unescapeTagIds(p,["manual","upt"]),j.current&&(_.current=p,j.current=!1),B.current=p,((e,t)=>{u(e,t)})("prompt",p)})},toolbarConfig:r.DEFAULT_TOOLBAR_CONFIG,editorRef:w,mode:E,initialString:{type:x.type,value:x.value},dynamicHeight:q,onBlur:p,doNotShowBorderInViewMode:v||!1,onEditBlocked:S})]})});g.displayName="RichTextEditor",exports.default=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./Editor/constants/editorConfig.js"),n=require("./Editor/Editor.js"),l=require("../../store/ref.context.js"),o=require("@lexical/html"),i=require("turndown"),s=require("turndown-plugin-gfm"),a=require("../UnsavedChangesPopup/UnsavedChangesPopup.js"),c=require("../../../../utils/tagHelper.js"),u=require("./Editor/constants/updateTags.js"),d=require("./Editor/utils/preserveMarkdownEmphasis.js"),p=require("./Editor/utils/preserveTableDelimiters.js"),h=require("./Editor/utils/preserveMarkdownLineBreaks.js"),g=require("./Editor/utils/preserveMarkdownListFormatting.js");function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const m=new(f(i).default)({headingStyle:"atx",codeBlockStyle:"fenced",emDelimiter:"*"}),v=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");m.keep(["ins","del","mark"]),m.keep(e=>["DELETED","CHANGED"].includes(e.nodeName)),m.addRule("ai-reasoning-link-passthrough",{filter:e=>{var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r},replacement:(e,t)=>{const r=t,n=r.getAttribute("href")||"",l=r.textContent||"";return`<a href="${o=n,v(o).replace(/"/g,""")}">${v(l)}</a>`;var o}}),m.keep(e=>"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")),m.addRule("md-table-passthrough",{filter:e=>"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table"),replacement:(e,t)=>t.textContent||""}),m.use(s.tables),m.addRule("stable-table-cell",{filter:["th","td"],replacement:(e,t)=>{var r,n;const l=t,o=0===Array.from(null!==(n=null===(r=l.parentElement)||void 0===r?void 0:r.children)&&void 0!==n?n:[]).indexOf(l);let i=e.trim().replace(/\n{2,}/g,"<br><br>").replace(/\n/g,"<br>");return/^(?:<br>)+$/.test(i)&&(i=""),i=b(i),o?i?`| ${i} |`:"| |":i?` ${i} |`:" |"}});const E=(e,t)=>{let r=0;for(let n=t-1;n>=0&&"\\"===e[n];n-=1)r+=1;return r%2==1},b=e=>e.split(/(<[^>]+>)/g).map(e=>{if(e.startsWith("<"))return e;let t="";for(let r=0;r<e.length;r+=1){const n=e[r];t+="|"!==n||E(e,r)?n:"\\|"}return t}).join("");m.addRule("stable-line-break",{filter:"br",replacement:()=>"<br>"});const x=e=>{var t,r;const n=null!==(r=null===(t=e.match(/^\s*/))||void 0===t?void 0:t[0])&&void 0!==r?r:"";let l=e.slice(n.length).trimEnd();const o=l.startsWith("|"),i=l.endsWith("|")&&!E(l,l.length-1);o&&(l=l.slice(1)),i&&(l=l.slice(0,-1));const s=[];let a="",c=!1,u="";for(let e=0;e<l.length;e+=1){const t=l[e];c?(a+=t,u?t!==u||E(l,e)||(u=""):'"'===t||"'"===t?u=t:">"===t&&(c=!1)):"<"===t?(c=!0,a+=t):"|"!==t||E(l,e)?a+=t:(s.push(a),a="")}return s.push(a),s.length<2?null:{indent:n,leadingPipe:o,trailingPipe:i,rawCells:s,cells:s.map(e=>e.trim())}},w=e=>!!e&&e.cells.every(e=>/^:?-{3,}:?$/.test(e)),A=e=>{const t=[];for(let r=1;r<e.length;r+=1){const n=x(e[r]),l=x(e[r-1]);if(!w(n)||!l)continue;const o=[{lineIndex:r-1,row:l},{lineIndex:r,row:n}];for(r+=1;r<e.length;){const t=x(e[r]);if(!t||w(t))break;o.push({lineIndex:r,row:t}),r+=1}t.push(o),r-=1}return t},$=e=>e.trim().replace(/(?:[ \t\u00a0]| )*<br\s*\/?>(?:[ \t\u00a0]| )*/gi,"<br>"),S=e=>e.replace(/<[^>]*>/g," ").replace(/[*_`~]+/g,"").replace(/ |\u00a0/gi," ").replace(/\s+/g," ").trim().toLocaleLowerCase(),y=(e,t)=>{const r=/(?:[ \t\u00a0]| )*<br\s*\/?>(?:[ \t\u00a0]| )*/gi,n=Array.from(e.matchAll(r)),l=n.map((t,r)=>{var l,o,i,s,a;return{raw:t[0],left:S(e.slice(null!==(o=null===(l=n[r-1])||void 0===l?void 0:l.index)&&void 0!==o?o:0,t.index).slice(-80)),right:S(e.slice((null!==(i=t.index)&&void 0!==i?i:0)+t[0].length,null!==(a=null===(s=n[r+1])||void 0===s?void 0:s.index)&&void 0!==a?a:e.length).slice(0,80)),used:!1}}),o=Array.from(t.matchAll(r));let i=0;return t.replace(r,(r,n)=>{var s,a,c,u;const d=o.findIndex(e=>e.index===n),p=d>0?(null!==(s=o[d-1].index)&&void 0!==s?s:0)+o[d-1][0].length:0,h=null!==(c=null===(a=o[d+1])||void 0===a?void 0:a.index)&&void 0!==c?c:t.length,g=S(t.slice(p,n).slice(-80)),f=S(t.slice(n+r.length,h).slice(0,80)),m=l.findIndex((e,t)=>t>=i&&!e.used&&(e.left&&g.endsWith(e.left)||g&&e.left.endsWith(g)||e.right&&f.startsWith(e.right)||f&&e.right.startsWith(f))),v=l[m];if(v)return v.used=!0,i=m+1,v.raw;for(;null===(u=l[i])||void 0===u?void 0:u.used;)i+=1;const E=l[i];return E?(E.used=!0,i+=1,E.raw):(r=>{var n,l;const o=t.slice(0,r),i=o.lastIndexOf("<manual"),s=o.lastIndexOf("</manual"),a=o.lastIndexOf("<ins"),c=o.lastIndexOf("</ins");if(i<=s||a<=c)return!1;const u=null!==(l=null===(n=o.slice(i).match(/^<manual\b[^>]*>/i))||void 0===n?void 0:n[0])&&void 0!==l?l:"",d=N(u);return Boolean(d&&!e.includes(d))})(n)?r:""})},C=new RegExp(String.raw`<(manual|upt)\b((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/\1\s*>`,"gi"),N=e=>{var t,r;return null!==(r=null===(t=e.match(/\bid\s*=\s*(?:"([^"]*)"|'([^']*)')/i))||void 0===t?void 0:t.slice(1).find(Boolean))&&void 0!==r?r:""},T=e=>d.markdownWithoutEmphasisMarkers(e).replace(/<(\/)?(del|ins|preserved)\b[^>]*>/gi,(e,t,r)=>` ZXQ${t?"CLOSE":"OPEN"}${String(r).toUpperCase()}QXZ `).replace(/<br\s*\/?>/gi,"\n").replace(/<[^>]*>/g,"").replace(/ |\u00a0/gi," ").replace(/>/gi,">").replace(/</gi,"<").replace(/"/gi,'"').replace(/'|'/gi,"'").replace(/&/gi,"&").replace(/\s+/g," ").trim(),q=(e,t)=>{const r=((e,t)=>{if(e.cells.length===t.cells.length)return t.cells;const r=e.cells.filter(Boolean),n=t.cells.filter(Boolean);if(r.length!==n.length)return null;let l=0;return e.cells.map(e=>{if(!e)return"";const t=n[l];return l+=1,t})})(e,t);if(!r)return null;const n=r.map((r,n)=>{var l,o,i,s,a,c,u,d,p;const h=e.rawCells[n],g=null!==(o=null===(l=h.match(/^\s*/))||void 0===l?void 0:l[0])&&void 0!==o?o:"",f=null!==(s=null===(i=h.match(/\s*$/))||void 0===i?void 0:i[0])&&void 0!==s?s:"";if(!h.trim()){if(!r)return h;const e=null!==(a=t.rawCells[n])&&void 0!==a?a:r;return`${null!==(u=null===(c=e.match(/^\s*/))||void 0===c?void 0:c[0])&&void 0!==u?u:""}${r}${null!==(p=null===(d=e.match(/\s*$/))||void 0===d?void 0:d[0])&&void 0!==p?p:""}`}const m=e.cells[n];if($(m)===$(r))return h;return`${g}${y(m,r)}${f}`});return`${e.indent}${e.leadingPipe?"|":""}${n.join("|")}${e.trailingPipe?"|":""}`},R=e=>(e||"").replace(/\r\n/g,"\n").trim(),B=t.forwardRef(({type:i,value:s,handleUpdateState:f,onBlur:v,placeholder:E,minHeight:b,height:x,mode:$,doNotShowBorderInViewMode:S,onEditBlocked:y,onSaveUnsavedChanges:B,onDiscardUnsavedChanges:I,isSavingUnsavedChanges:L=!1},j)=>{const k=t.useRef(null),[O,P]=t.useState({type:i,value:s}),[D,M]=t.useState(0),[W,_]=t.useState(!1),F=t.useRef(s),H=t.useRef(s),X=t.useRef(Boolean(s)),{contentRef:Q,setContentRef:U}=l.useRefStore();t.useEffect(()=>{P(e=>({...e,value:s})),F.current=s,H.current=s,X.current=Boolean(s),_(!1)},[s]),t.useImperativeHandle(j,()=>({requestClose:()=>!("edit"===$&&R(F.current)!==R(H.current))||(_(!0),!1)}),[$]);return t.useEffect(()=>{const e=()=>{Q&&Q.current&&M(Q.current.clientHeight-60)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[Q]),e.jsxs("div",{style:{position:"relative",width:"100%",height:x,minHeight:b},children:[W&&e.jsx(a.UnsavedChangesPopup,{isSaving:L,onSave:async()=>{await(null==B?void 0:B()),F.current=H.current,_(!1)},onDiscard:()=>{H.current=F.current,null==I||I(),_(!1)}}),e.jsx(n.default,{minHeight:b,height:x,placeholder:E||"Enter some text...",onChange:(e,t,r)=>{e.read(()=>{const e=o.$generateHtmlFromNodes(t,null),n=(new DOMParser).parseFromString(e,"text/html");n.querySelectorAll("span").forEach(e=>{const t=e.getAttribute("style")||"";t.includes("background-color")&&(t.includes("rgb(219, 234, 254)")||t.includes("rgb(213, 232, 255)")||t.toLowerCase().includes("#d5e8ff"))&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),n.querySelectorAll("span[data-review]").forEach(e=>{const t="delete"===e.getAttribute("data-review")?"deleted":"changed",r=n.createElement(t);r.append(...Array.from(e.childNodes)),e.replaceWith(r)}),n.querySelectorAll("strong code").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),n.querySelectorAll("code strong").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),n.querySelectorAll("code").forEach(e=>{e.textContent=e.textContent||""}),n.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,"")),e.removeAttribute("class"),e.textContent=e.textContent||""})(e)});const l=["upt","manual","ins","del","preserved"];function i(e,t,r=Boolean(e.closest("td, th"))){const n=e.cloneNode(!0),o=new Map;n.querySelectorAll(l.join(",")).forEach(e=>{if(e===n)return;const l=`%%NESTED${o.size}%%`;o.set(l,i(e,t,r)),e.replaceWith(l)});const s=[];r&&n.querySelectorAll("br").forEach(e=>{const t=`ZXQTABLEBREAKTOKEN${s.length}QXZ`;s.push("<br>"),e.replaceWith(document.createTextNode(t))});let a=t.turndown(n.innerHTML);s.forEach((e,t)=>{a=a.replace(`ZXQTABLEBREAKTOKEN${t}QXZ`,e)}),o.forEach((e,t)=>{a=a.replace(t,e)});const c=Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),u=e.tagName.toLowerCase();return c?`<${u} ${c}>${a}</${u}>`:`<${u}>${a}</${u}>`}n.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const s=[];n.querySelectorAll("invisible").forEach((e,t)=>{const r=`ZXQINVISIBLETOKEN${t}QXZ`;s.push({html:e.outerHTML,placeholder:r}),e.replaceWith(n.createTextNode(r))});const a=[];["manual","upt"].forEach(e=>{n.querySelectorAll(e).forEach(e=>{const t=`ZXQREVIEWTOKEN${a.length}QXZ`;a.push({html:i(e,m),placeholder:t}),e.replaceWith(n.createTextNode(t))})});const v=[];n.querySelectorAll("p").forEach(e=>{if(e.closest("td, th"))return;if(!(""===e.textContent&&Array.from(e.childNodes).every(e=>"BR"===e.nodeName||e.nodeType===Node.TEXT_NODE&&""===e.textContent)))return;const t=`%%BLANKLINE${v.length}%%`;v.push(t),e.textContent=t}),n.querySelectorAll("table > colgroup").forEach(e=>{e.remove()});let E=m.turndown(n.body.innerHTML);v.forEach(e=>{E=E.replace(new RegExp(`\\n*${e}\\n*`,"g"),"\n\n")});for(let e=a.length-1;e>=0;e--){const{html:t,placeholder:r}=a[e];E=E.replace(r,t)}s.forEach(({html:e,placeholder:t})=>{E=E.replace(t,e)}),E=E.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"),E=E.replace(/\s+class="PlaygroundEditorTheme__[^"]*"/g,""),E=E.replace(/<span\s+style="white-space:\s*pre-wrap;?">([\s\S]*?)<\/span>/g,"$1"),E=E.replace(/\s+style="white-space:\s*pre-wrap;?"/g,""),E=E.replace(/<b>\s*<strong>([\s\S]*?)<\/strong>\s*<\/b>/g,"<strong>$1</strong>"),E=E.replace(/<code([^>]*)>\s*<span[^>]*>([\s\S]*?)<\/span>\s*<\/code>/g,"<code$1>$2</code>");if(["upt","manual","del","ins","preserved"].forEach(e=>{E=c.mergeTagAcrossParagraphs(E,e)}),E=c.unescapeTagIds(E,["manual","upt"]),E=((e,t)=>{const r=Array.from(e.matchAll(new RegExp(C.source,"gi")));let n=t;return r.forEach(e=>{const[,t,r,l]=e,o=N(r);if(!o)return;const i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(String.raw`<${t}\b(?=(?:[^>"']|"[^"]*"|'[^']*')*\bid\s*=\s*(?:"${i}"|'${i}'))((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/${t}\s*>`,"i");n=n.replace(s,(t,r,n)=>T(l)===T(n)?e[0]:t)}),n})(F.current,E),F.current.includes("--\x3e")&&(E=E.replace(/-->/gi,"--\x3e")),E=c.preserveLegacyCommentRedlinesFromSource(F.current,E),E=c.preserveDocumentAnchorsFromSource(F.current,E),E=d.preserveEmphasisMarkersFromSource(F.current,E),E=((e,t)=>{const r=e.split("\n"),n=p.preserveTableDelimiterRowsFromSource(e,t).split("\n"),l=A(r);return A(n).forEach((e,t)=>{const o=l[t];if(!o)return;const i=o.length===e.length?e.length:Math.min(2,o.length,e.length);e.slice(0,i).forEach(({lineIndex:e,row:t},l)=>{const i=o[l];if(w(i.row)&&w(t))return void(n[e]=r[i.lineIndex]);const s=q(i.row,t);null!==s&&(n[e]=s)})}),n.join("\n")})(F.current,E),E=c.preserveInvisibleAnchorBeforeTablePipe(F.current,E),E=g.preserveListFormattingFromSource(F.current,E),E=h.preserveLineBreaksFromSource(F.current,E),r.has(u.INITIAL_CONTENT_UPDATE_TAG))return H.current=F.current,void(X.current=!1);X.current&&(F.current=E,X.current=!1),H.current=E,((e,t)=>{f(e,t)})("prompt",E)})},toolbarConfig:r.DEFAULT_TOOLBAR_CONFIG,editorRef:k,mode:$,initialString:{type:O.type,value:O.value},dynamicHeight:D,onBlur:v,doNotShowBorderInViewMode:S||!1,onEditBlocked:y})]})});B.displayName="RichTextEditor",exports.default=B;
|
|
2
2
|
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=".avatar{align-items:center;border-radius:50%;box-sizing:border-box;color:#475467;display:flex;flex-shrink:0;font-family:Inter;font-weight:600;justify-content:center;line-height:1;position:relative;user-select:none}.avatar--bordered{border:2px solid #fff}.online-dot{background:#22c55e;border:2px solid #fff;border-radius:50%;bottom:-1px;position:absolute;right:-1px}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=Avatar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./Avatar.css.js");var a=require("./avatarUtils.js");exports.default=function({name:t,online:r=!1,size:s=56,bordered:i=!1}){return e.jsxs("div",{className:"avatar "+(i?"avatar--bordered":""),style:{width:s,height:s,background:a.getAvatarColor(t),fontSize:Math.max(12,.38*s)},children:[a.getInitials(t),r&&e.jsx("span",{className:"online-dot",style:{width:Math.max(8,.28*s),height:Math.max(8,.28*s)}})]})};
|
|
2
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=".avatar-group{align-items:center;cursor:pointer;display:inline-flex;gap:6px;position:relative;user-select:none}.avatar-stack{align-items:center;display:flex}.avatar-wrapper{margin-left:-10px;position:relative}.avatar-wrapper:first-child{margin-left:0}.avatar-more{align-items:center;background:#f2f4f7;border:2px solid #fff;border-radius:50%;box-sizing:border-box;color:#667085;display:flex;font-size:11px;font-weight:600;height:32px;justify-content:center;line-height:1;user-select:none;width:32px}.avatar-chevron{color:#667085;cursor:pointer;height:16px;transition:transform .2s ease;width:16px}.avatar-chevron.open{transform:rotate(180deg)}.avatar-group-container{display:inline-block;position:relative}.collaborators-popup-wrapper{left:-100px;position:absolute;z-index:1000}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=CollaboratorsGroup.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsGroup.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react");require("./CollaboratorsGroup.css.js");var s=require("./Avatar.js"),a=require("./CollaboratorsPopup.js"),t=require("lucide-react");exports.default=function({users:n,owner:o,activeUsers:i,previousUsers:c=[],maxVisible:l=3}){const u=n.slice(0,l),d=n.length-u.length,[v,p]=r.useState(!1),m=r.useRef(null);return r.useEffect(()=>{function e(e){m.current&&!m.current.contains(e.target)&&p(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e.jsxs("div",{className:"avatar-group-container",ref:m,children:[e.jsxs("div",{className:"avatar-group",onClick:()=>p(e=>!e),children:[e.jsxs("div",{className:"avatar-stack",children:[u.map((r,a)=>e.jsx("div",{className:"avatar-wrapper",style:{zIndex:a+1},children:e.jsx(s.default,{name:r.name,online:r.online,size:32,bordered:!0})},r.id)),d>0&&e.jsx("div",{className:"avatar-wrapper",style:{zIndex:u.length+1},children:e.jsxs("div",{className:"avatar-more",children:["+",d]})})]}),e.jsx(t.ChevronDown,{className:"avatar-chevron "+(v?"open":"")})]}),v&&e.jsx("div",{className:"collaborators-popup-wrapper",children:e.jsx(a.default,{owner:o,activeUsers:i,previousUsers:c})})]})};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsGroup.js.map
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=".collaborators-popover{background:#fff;border-radius:12px;box-shadow:0 10px 30px #0000001f,0 2px 8px #0000000f;font-family:Inter,sans-serif;max-height:400px;overflow-y:auto;padding:12px;width:280px}.owner-section,.user-row{align-items:center;display:flex}.user-row+.user-row{margin-top:10px}.user-info{margin-left:12px;min-width:0}.user-name{align-items:center;color:#344054;display:flex;font-size:14px;font-weight:600;gap:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.you{color:#667085;font-weight:400}.user-subtitle{color:#667085;font-size:13px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.divider{background:#eaecf0;height:1px;margin:12px 0}.section-title{color:#98a2b3;font-size:12px;font-weight:600;letter-spacing:.04em;margin-bottom:10px;text-transform:uppercase}.section-title.previous{margin-top:18px}.faded{opacity:.45}.user-text{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}";!function(){if("undefined"==typeof document)return;const t=document.createElement("style");t.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&t.setAttribute("nonce",o),t.appendChild(document.createTextNode(e));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(t)}(),exports.default=e;
|
|
2
|
+
//# sourceMappingURL=CollaboratorsPopup.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsPopup.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./CollaboratorsPopup.css.js");var s=require("./Avatar.js"),i=require("@mui/material");function r({user:r}){return e.jsxs("div",{className:"user-row "+(r.faded?"faded":""),children:[e.jsx(s.default,{name:r.name,online:r.online,size:40}),e.jsxs("div",{className:"user-info",children:[e.jsxs("div",{className:"user-name",children:[e.jsx(i.Tooltip,{title:r.name,children:e.jsx("span",{className:"user-text",children:r.name})}),!!r.isUser&&e.jsx("span",{className:"you",children:"(You)"})]}),e.jsx("div",{className:"user-subtitle",children:e.jsx(i.Tooltip,{title:r.subtitle,children:e.jsx("span",{className:"user-text",children:r.subtitle})})})]})]})}exports.default=function({owner:a,activeUsers:l,previousUsers:n=[]}){return e.jsxs("div",{className:"collaborators-popover",children:[a&&e.jsxs("div",{className:"owner-section",children:[e.jsx(s.default,{name:a.name,online:a.online,size:40}),e.jsxs("div",{className:"user-info",children:[e.jsxs("div",{className:"user-name",children:[e.jsx(i.Tooltip,{title:a.name,children:e.jsx("span",{className:"user-text",children:a.name})}),!!a.isUser&&e.jsx("span",{className:"you",children:"(You)"})]}),e.jsx("div",{className:"user-subtitle",children:"Owner"})]})]}),(l.length>0||n.length>0)&&e.jsx("div",{className:"divider"}),l.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section-title",children:"On this document"}),l.map(s=>e.jsx(r,{user:s},s.id))]}),n.length>0&&e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"section-title previous",children:"Previously active"}),n.map(s=>e.jsx(r,{user:{...s,faded:!0}},s.id))]})]})};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsPopup.js.map
|
package/dist/cjs/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=["#FFF3B0","#D9F7E5","#EEE3FF","#DDEBFF","#FFE2E2","#FFE9CC","#DFF5FF","#FDE2F3"];exports.getAvatarColor=function(e){let r=0;for(let t=0;t<e.length;t++)r=e.charCodeAt(t)+((r<<5)-r);return t[Math.abs(r)%t.length]},exports.getInitials=function(t){return t.trim().split(/\s+/).slice(0,2).map(t=>{var e;return null===(e=t[0])||void 0===e?void 0:e.toUpperCase()}).join("")};
|
|
2
|
+
//# sourceMappingURL=avatarUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatarUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|