@viswa-test/test-citation 0.0.377 → 0.0.378
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/useCompareLayout.d.ts +1 -0
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.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 +1 -4
- package/dist/types/src/features/PdfViewer/PdfToolbar.d.ts.map +1 -1
- package/dist/types/src/features/PdfViewer/PdfViewer.d.ts +2 -19
- 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/PdfViewer/rotationManager.js +0 -2
- package/dist/cjs/features/PdfViewer/rotationManager.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/PdfViewer/rotationManager.js +0 -2
- package/dist/features/PdfViewer/rotationManager.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/coordinateTransformer.d.ts +0 -41
- package/dist/types/src/features/PdfViewer/coordinateTransformer.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/PdfViewer/rotationManager.d.ts +0 -23
- package/dist/types/src/features/PdfViewer/rotationManager.d.ts.map +0 -1
- package/dist/types/src/features/SegmentReviewComponents/BoundaryCard.d.ts +0 -85
- 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 -124
- 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
|
-
import{__assign as i}from"tslib";import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import{useMemo as o,useState as l,useCallback as a}from"react";import{Sparkles as r,Globe as s}from"lucide-react";import d from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import u from"./GptWebCitationImageCitation.js";import c from"./GptWebCitationSkeleton.js";import{allowsGptCitationView as v,allowsWebCitationView as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsx as t,jsxs as e,Fragment as n}from"react/jsx-runtime";import{useMemo as o,useState as l,useCallback as a}from"react";import{Sparkles as r,Globe as s}from"lucide-react";import d from"../CognitiveInternalgptReasoning/CognitiveInternalgptCoreComponent.js";import u from"./GptWebCitationImageCitation.js";import c from"./GptWebCitationSkeleton.js";import{allowsGptCitationView as v,allowsWebCitationView as g,showsCitationViewToggle as p,CitationType as m}from"./types.js";import{mapCitationDataToDisplay as b,resolveSkeletonVisitUrl as C,getWebCitationImageUrl as w}from"./utils/citationData.utils.js";import{resolveWebCitationVisitLinkStyles as h}from"./utils/styleOverrides.utils.js";import{resolveFixedHeightLayout as f,getFixedPanelStyle as k,getParentHeightPanelStyle as y,getParentHeightGptBodyHeight as x,getFixedWebContentStyle as F}from"./utils/fixedHeight.utils.js";import I from"./GptWebCitation.module.css.js";import B from"../../assests/svg/NeuralNetworkIcon.js";var S=function(o){var l=o.variant,a=o.disabled,r=o.onClick,d=o.title,u=o.style;return t("button",i({type:"button",className:I.webCitationButton,onClick:r,disabled:a,title:d,style:u},{children:e(n,"gpt"===l?{children:[t(B,{className:I.webCitationButtonIcon}),"View GPT Citation"]}:{children:[t(s,{size:24,className:I.webCitationButtonIcon}),"View Web Citation"]})}))},H=function(n){var s,B,H,L,N=n.gptCitation,W=n.defaultCitationUrl,j=n.citationType,T=n.webCitationData,E=n.topic,V=n.sourceLabel,z=n.relevanceScore,G=n.learnedFrom,A=n.webCitationStatus,M=n.onGenerateWebCitation,P=n.showWebCitation,U=n.onToggleCitationView,D=n.showExpandImageButton,O=void 0===D||D,R=n.onFullscreenChange,q=n.showGptMaximizeButton,J=n.iconsConfig,K=n.isFixedHeight,Q=void 0!==K&&K,X=n.useParentHeight,Y=void 0!==X&&X,Z=n.styles,$=o(function(){return function(t){var e,n,o,l,a,r,s,d,u,c,v;return{container:null==t?void 0:t.container,gptWrapper:i(i({},null===(e=null==t?void 0:t.gptCitation)||void 0===e?void 0:e.wrapper),null==t?void 0:t.gptCitationWrapper),gptFooterAction:i(i({},null===(n=null==t?void 0:t.gptCitation)||void 0===n?void 0:n.footerAction),null==t?void 0:t.footerAction),gptToggleButton:i(i({},null===(o=null==t?void 0:t.gptCitation)||void 0===o?void 0:o.toggleButton),null==t?void 0:t.webCitationButton),webPanel:i(i({},null==t?void 0:t.container),null===(l=null==t?void 0:t.webCitation)||void 0===l?void 0:l.panel),webHeader:null===(a=null==t?void 0:t.webCitation)||void 0===a?void 0:a.header,webContent:null===(r=null==t?void 0:t.webCitation)||void 0===r?void 0:r.content,webFooter:null===(s=null==t?void 0:t.webCitation)||void 0===s?void 0:s.footer,webToggleButton:i(i({},null===(d=null==t?void 0:t.webCitation)||void 0===d?void 0:d.toggleButton),null==t?void 0:t.webCitationButton),webLearnedFrom:null===(u=null==t?void 0:t.webCitation)||void 0===u?void 0:u.learnedFrom,webImage:null===(c=null==t?void 0:t.webCitation)||void 0===c?void 0:c.image,webSkeleton:null===(v=null==t?void 0:t.webCitation)||void 0===v?void 0:v.skeleton,webImageVisitLink:h(null==t?void 0:t.webCitation,"image"),webSkeletonVisitLink:h(null==t?void 0:t.webCitation,"skeleton")}}(Z)},[Z]),_=v(j),ii=g(j),ti=p(j),ei=Q||Y,ni=o(function(){return Q?f(N.bodyHeight,ti):null},[Q,N.bodyHeight,ti]),oi=o(function(){return ni?k(ni.panelHeight):void 0},[ni]),li=o(function(){return Y?y():void 0},[Y]),ai=null!=li?li:oi,ri=o(function(){var i,t;return{MaximizeIcon:null!==(i=null==J?void 0:J.MaximizeIcon)&&void 0!==i?i:null===(t=N.iconsConfig)||void 0===t?void 0:t.MaximizeIcon,ExternalLinkIcon:null==J?void 0:J.ExternalLinkIcon}},[J,null===(s=N.iconsConfig)||void 0===s?void 0:s.MaximizeIcon]),si=o(function(){var t=Y?{bodyHeight:x(ti)}:Q&&ni?{bodyHeight:ni.gptBodyHeight}:{};return i(i(i(i({},N),t),{disableMaximize:void 0!==q?!q:N.disableMaximize}),ti||j===m.WEB?{DocumentTitle:void 0,previewCallback:void 0}:{})},[N,q,ti,j,Y,Q,ni]),di=l(j!==m.GPT),ui=di[0],ci=di[1],vi=j!==m.GPT&&(j===m.WEB||(null!=P?P:ui)),gi=void 0!==P,pi=o(function(){return T?b(T):null},[T]),mi=null!==(B=null!=E?E:null==pi?void 0:pi.topic)&&void 0!==B?B:"Web Citation",bi=null!==(H=null!=z?z:null==pi?void 0:pi.relevanceScore)&&void 0!==H?H:0,Ci=null!=G?G:null==pi?void 0:pi.learnedFrom,wi=C(null==pi?void 0:pi.highlightedUrl,null!==(L=null==pi?void 0:pi.citationUrl)&&void 0!==L?L:W),hi=w(T),fi=o(function(){return function(i,t,e){return e?"success":i||(t?"error":"pending")}(A,T,hi)},[A,T,hi]),ki=a(function(){U?U():gi||ci(!1)},[U,gi]),yi=a(function(){U?U():gi||ci(!0),hi||"success"===fi||null==M||M()},[U,gi,hi,fi,M]),xi=null!=V?V:"Source: Web Citation > ".concat(mi),Fi=function(n){var o=!!si.DocumentTitle,l=[I.gptCitationWrapper,o?I.gptCitationWrapperWithSource:"",ei?I.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" ");return e("div",i({className:l,style:i(i({},$.gptWrapper),ai)},{children:[t(d,i({},si,{splitterCustomStyle:!0,onFullscreenChange:R})),n&&t("div",i(o?{className:I.gptCitationFooterAction,style:$.gptFooterAction}:{className:[I.gptCitationToggleFooter,ei?I.gptCitationToggleFooterFixedHeight:""].filter(Boolean).join(" "),style:$.gptFooterAction},{children:n}))]}))};return _&&!vi?t("div",i({className:I.overlay,style:i(i({},$.container),li)},{children:Fi(ti?t(S,{variant:"web",onClick:yi,title:"View web-based citation for this source.",style:$.gptToggleButton}):void 0)})):ii?e("div",i({className:[I.panel,ei?I.gptCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:i(i({},$.webPanel),ai)},{children:[e("div",i({className:I.panelHeader,style:$.webHeader},{children:[t("span",i({className:I.panelSource},{children:xi})),t("div",i({className:I.panelHeaderActions},{children:bi>0&&e("div",i({className:I.confidenceBadge,title:"Decision strength"},{children:[t(r,{size:14}),bi,"%"]}))}))]})),t("div",i({className:[I.panelContent,I.panelContentExpanded,ei?I.panelContentFixedHeight:""].filter(Boolean).join(" "),style:i(i({},$.webContent),ei?F():void 0)},{children:"pending"===fi?t(c,{status:"pending",citationUrl:wi,ExternalLinkIcon:ri.ExternalLinkIcon,styles:$.webSkeleton,visitLinkStyles:$.webSkeletonVisitLink,isFixedHeight:ei}):"success"===fi&&hi?t(u,{citationImage:hi,citationUrl:wi,showExpandImageButton:O,iconsConfig:ri,styles:$.webImage,visitLinkStyles:$.webImageVisitLink,skeletonStyles:$.webSkeleton,skeletonVisitLinkStyles:$.webSkeletonVisitLink,isFixedHeight:ei,onFullscreenChange:R}):t(c,{status:"error",citationUrl:wi,ExternalLinkIcon:ri.ExternalLinkIcon,styles:$.webSkeleton,visitLinkStyles:$.webSkeletonVisitLink,isFixedHeight:ei})})),e("div",i({className:I.panelFooter,style:$.webFooter},{children:[ti?t(S,{variant:"gpt",onClick:ki,style:$.webToggleButton}):null,Ci&&e("span",i({className:I.learnedFrom,style:$.webLearnedFrom},{children:["Learned From ",Ci]}))]}))]})):t("div",i({className:I.overlay,style:i(i({},$.container),li)},{children:Fi()}))};export{H as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as i}from"tslib";import{jsxs as e,jsx as
|
|
1
|
+
import{__assign as i}from"tslib";import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as l,useEffect as o}from"react";import{Maximize2 as r,ExternalLink as a}from"lucide-react";import s from"./GptWebCitationImageFullScreenView.js";import c from"./GptWebCitationSkeleton.js";import{sanitizeExternalUrl as d}from"./utils/citationData.utils.js";import u from"./GptWebCitation.module.css.js";var m=function(m){var v,g,p=m.citationImage,f=m.citationUrl,C=m.skeletonVisitUrl,h=m.showExpandImageButton,k=void 0===h||h,y=m.iconsConfig,x=m.styles,w=m.visitLinkStyles,I=m.skeletonStyles,b=m.skeletonVisitLinkStyles,j=m.isFixedHeight,L=void 0!==j&&j,N=m.onFullscreenChange,S=null!==(v=null==y?void 0:y.MaximizeIcon)&&void 0!==v?v:r,B=null!==(g=null==y?void 0:y.ExternalLinkIcon)&&void 0!==g?g:a,F=t(!1),H=F[0],V=F[1],W=t("loading"),E=W[0],z=W[1],G=l(!1);o(function(){var i=!0;G.current&&(G.current=!1,null==N||N(!1)),z("loading"),V(!1);var e=new Image;return e.onload=function(){i&&z("loaded")},e.onerror=function(){i&&z("error")},e.src=p,function(){i=!1,e.onload=null,e.onerror=null}},[p,N]),o(function(){return function(){G.current&&(G.current=!1,null==N||N(!1))}},[N]);var U="loaded"===E,D=d(f);return e("div",i({className:[u.imageCitationWrapper,L?u.imageCitationWrapperFixedHeight:""].filter(Boolean).join(" "),style:null==x?void 0:x.wrapper},{children:[n("div",i({className:[u.imageCitationCenter,L?u.imageCitationCenterFixedHeight:""].filter(Boolean).join(" "),style:null==x?void 0:x.center},{children:U?e("div",i({className:[u.imageCitationViewport,L?u.imageCitationViewportFixedHeight:""].filter(Boolean).join(" "),style:null==x?void 0:x.viewport},{children:[n("div",i({className:[u.imageCitationScrollContainer,L?u.imageCitationScrollContainerFixedHeight:""].filter(Boolean).join(" "),style:null==x?void 0:x.scrollContainer},{children:n("img",{src:p,alt:"Web citation snapshot",className:[u.citationImage,L?u.citationImageContained:""].filter(Boolean).join(" "),style:null==x?void 0:x.image})})),k&&n("button",i({type:"button",onClick:function(i){i.stopPropagation(),G.current=!0,null==N||N(!0),V(!0)},className:u.expandImageButton,style:null==x?void 0:x.expandButton,"aria-label":"View citation image in full screen",title:"Expand image"},{children:n(S,{size:16,strokeWidth:2})}))]})):n(c,{status:"error"===E?"error":"pending",citationUrl:null!=C?C:f,ExternalLinkIcon:null==y?void 0:y.ExternalLinkIcon,styles:I,visitLinkStyles:b,isFixedHeight:L})})),D&&U&&e("div",i({className:u.visitLinkRow,style:null==w?void 0:w.row},{children:[n("span",i({className:u.visitLinkHint,style:null==w?void 0:w.hint},{children:"Open link in new tab to read in detail"})),e("a",i({href:D,target:"_blank",rel:"noreferrer",className:u.visitLink,style:null==w?void 0:w.link},{children:["Visit Link",n(B,{size:16})]}))]})),H&&U&&n(s,{src:p,onClose:function(){G.current=!1,null==N||N(!1),V(!1)},styles:null==x?void 0:x.fullScreen})]}))};export{m as default};
|
|
2
2
|
//# sourceMappingURL=GptWebCitationImageCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e="520px",
|
|
1
|
+
var e="520px",n="3.25rem",t=function(t,i){if(void 0===i&&(i=!0),!i){var o=null!=t?t:e;return{contentHeight:o,gptBodyHeight:o,panelHeight:o}}if(t)return{contentHeight:t,gptBodyHeight:t,panelHeight:"calc(".concat(t," + ").concat(n,")")};var c="calc(".concat(e," - ").concat(n,")");return{contentHeight:c,gptBodyHeight:c,panelHeight:e}},i=function(e){return{height:e,minHeight:e,maxHeight:e,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},o=function(){return{height:"100%",minHeight:0,width:"100%",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box"}},c=function(e){return void 0===e&&(e=!0),e?"calc(100% - ".concat(n,")"):"100%"},r=function(){return{flex:1,minHeight:0,maxHeight:"none",overflow:"hidden",display:"flex",flexDirection:"column"}};export{i as getFixedPanelStyle,r as getFixedWebContentStyle,c as getParentHeightGptBodyHeight,o as getParentHeightPanelStyle,t as resolveFixedHeightLayout};
|
|
2
2
|
//# sourceMappingURL=fixedHeight.utils.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as
|
|
1
|
+
import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{Worker as o,Viewer as t}from"@react-pdf-viewer/core";import{pdfStyles as n}from"./PdfStyle.js";var i="https://unpkg.com/pdfjs-dist@3.11.174/build/pdf.worker.min.js",l=function(l){var a=l.pdfUrl,d=l.plugins,f=l.onLoad,p=l.customStyles,m=l.onPageChange,s=l.defaultScale;return e("div",r({style:r(r({},n.pdfConatiner),null==p?void 0:p.pdfContainer)},{children:e(o,r({workerUrl:i},{children:e(t,{fileUrl:a,defaultScale:s,plugins:d,onDocumentLoad:f,onPageChange:m})}))}))};export{l as default,i as pdfWorker};
|
|
2
2
|
//# sourceMappingURL=PdfContainer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={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
|
+
var e={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"}};export{e as pdfStyles};
|
|
2
2
|
//# sourceMappingURL=PdfStyle.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import
|
|
1
|
+
import{__assign as e}from"tslib";import{jsxs as t,jsx as n}from"react/jsx-runtime";import i from"react";import{pdfStyles as o}from"./PdfStyle.js";import{DefaultPdfIcon as r,DefaultFullScreenIcon as l,DefaultDownloadIcon as d,DefaultCloseIcon as a}from"../../assests/svg/PdfViewerIcons.js";import{Tooltip as s}from"@mui/material";import{Info as c}from"lucide-react";var p=function(p){p.highlightIndex;var h=p.totalHighlights,u=p.controls,g=p.currentPosition,f=p.pdfName,x=p.onClose,m=p.pdfUrl,v=p.viewerRef,y=p.customStyles,b=p.customClasses,w=p.customIcons,k=p.headerAction,S=p.isZoomEnabled,F=void 0===S||S,I=p.showHighlightsAction,C=void 0===I||I,D=p.showFullScreenAction,W=void 0===D||D,E=p.currentSegment,B=p.segmentTooltipText,j=void 0===B?"Details of current segment":B,z=p.currentPage,A=p.totalPages,L=p.onPageNavigate,P=u.ZoomInButton,N=u.ZoomOutButton,R=u.ZoomPopover,T=u.goToPrevious,H=u.goToNext,O=i.useState(String(z)),M=O[0],Z=O[1];i.useEffect(function(){Z(String(z))},[z]);var _={padding:"4px",borderRadius:"6px",background:"transparent",border:"none",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"all 0.2s ease",flexShrink:0},V=function(e){return String(e).padStart(2,"0")};return t("div",e({style:e(e(e({marginBottom:"12px",background:"#FAFAFA",borderBottom:"1px solid #F3F4F6",borderTopLeftRadius:"12px",borderTopRightRadius:"12px"},o.header),null==y?void 0:y.header),{display:"flex",flexDirection:"column",alignItems:"stretch",gap:"12px"})},{children:[t("div",e({style:{display:"flex",alignItems:"center",justifyContent:"space-between",minWidth:0}},{children:[t("div",e({style:{display:"flex",alignItems:"center",gap:"12px",flex:1,minWidth:0,overflow:"hidden"}},{children:[n("div",e({style:e(e(e({},{borderRadius:"21px",border:"6px solid #E8F3FF",background:"#D5E8FF",display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",boxSizing:"content-box"}),null==y?void 0:y.pdfIconWrapper),{flexShrink:0})},{children:(null==w?void 0:w.pdfIcon)||n(r,{})})),n(s,e({title:f||"",arrow:!0,placement:"top"},{children:n("div",e({style:{flex:1,minWidth:0,overflow:"hidden"}},{children:n("span",e({style:e({display:"block",width:"100%",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",fontWeight:500,cursor:"default"},null==y?void 0:y.pdfName),className:null==b?void 0:b.pdfName},{children:f}))}))}))]})),t("div",e({style:{display:"flex",alignItems:"center",gap:C?"16px":"2px",color:"#4B5563",flexShrink:0,whiteSpace:"nowrap",minWidth:"fit-content"}},{children:[A>0&&t("div",e({style:{display:"flex",alignItems:"center",gap:"4px",color:"#475467",flexShrink:0,whiteSpace:"nowrap"}},{children:[n("input",{"aria-label":"Current page",inputMode:"numeric",pattern:"[0-9]*",value:M,onChange:function(e){var t=e.target.value.replace(/\D/g,"");Z(t)},onBlur:function(){var e=Number(M);if(!Number.isInteger(e)||e<1)Z(String(z));else{var t=A?Math.min(e,A):e;L(t),Z(String(t))}},onKeyDown:function(e){"Enter"===e.key&&e.currentTarget.blur(),"Escape"===e.key&&(Z(String(z)),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("span",e({style:{fontSize:"14px",fontWeight:500,color:"#111827"}},{children:"/"})),n("span",e({style:{fontSize:"14px",fontWeight:500,color:"#111827"}},{children:String(A)}))]})),F&&t("div",e({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[n(N,{}),n("div",e({style:{fontSize:"14px",fontWeight:500,width:"56px",textAlign:"center"}},{children:n(R,{})})),n(P,{})]})),!!h&&C&&t("div",e({style:{display:"flex",alignItems:"center",gap:"4px"}},{children:[t("span",e({style:{fontSize:"14px",color:"#475467",fontWeight:500,lineHeight:1}},{children:[g," of ",h]})),n("button",e({style:{background:"none",border:"none",cursor:g<=1?"not-allowed":"pointer",padding:"2px 4px",color:g<=1?"#D0D5DD":"#475467",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,height:"20px",width:"20px"},onClick:T,disabled:g<=1},{children:n("svg",e({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},{children:n("path",{d:"M2 8L6 4L10 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))})),n("button",e({style:{background:"none",border:"none",cursor:g===h?"not-allowed":"pointer",padding:"2px 4px",color:g===h?"#D0D5DD":"#475467",display:"flex",alignItems:"center",justifyContent:"center",lineHeight:1,height:"20px",width:"20px"},onClick:H,disabled:g===h},{children:n("svg",e({width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},{children:n("path",{d:"M2 4L6 8L10 4",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}))}))]})),n("div",{style:{width:"1px",height:"20px",background:"#D1D5DB",margin:"0 4px",flexShrink:0}}),t("div",e({style:{display:"flex",alignItems:"center",gap:"8px",flexShrink:0,whiteSpace:"nowrap"}},{children:[!1!==W&&((null==k?void 0:k.icon)&&(null==k?void 0:k.onClick)?n(s,e({title:(null==k?void 0:k.tooltip)||"",arrow:!0,placement:"top"},{children:n("div",e({onClick:k.onClick,style:e({display:"flex",alignItems:"center",cursor:"pointer"},_)},{children:k.icon}))})):n("button",e({onClick:function(){var e=null==v?void 0:v.current;e&&(document.fullscreenElement?document.exitFullscreen():e.requestFullscreen().catch(function(e){console.error("Error attempting to enable fullscreen: ".concat(e.message))}))},style:_,title:"Full Screen"},{children:(null==w?void 0:w.fullScreenIcon)||n(l,{})}))),m&&n("a",e({href:m,target:"_blank",rel:"noopener noreferrer",style:_,title:"Open in new tab"},{children:(null==w?void 0:w.downloadIcon)||n(d,{})})),x&&n("button",e({onClick:x,style:_,title:"Close"},{children:(null==w?void 0:w.closeIcon)||n(a,{})}))]}))]}))]})),E&&t("div",e({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(s,e({title:j,arrow:!0,placement:"top"},{children:n(c,{size:16,color:"#4F46E5",strokeWidth:2,style:{flexShrink:0}})})),t("span",e({style:{overflow:"hidden",textOverflow:"ellipsis"}},{children:["Viewing ",E.title," • Pages ",V(E.start_page),"-",V(E.end_page)]}))]}))]}))};export{p as default};
|
|
2
2
|
//# sourceMappingURL=PdfToolbar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__awaiter as t,__generator as
|
|
1
|
+
import{__assign as e,__awaiter as t,__generator as i}from"tslib";import{jsx as o,jsxs as n}from"react/jsx-runtime";import{SpecialZoomLevel as r}from"@react-pdf-viewer/core";import a from"./PdfContainer.js";import l from"./PdfToolbar.js";import{pdfStyles as s}from"./PdfStyle.js";import{PdfHighlightControls as c}from"./usePdfHighlight.js";import"@react-pdf-viewer/zoom/lib/styles/index.css";import"@react-pdf-viewer/page-navigation/lib/styles/index.css";import"@react-pdf-viewer/core/lib/styles/index.css";import"@react-pdf-viewer/search/lib/styles/index.css";import{useRef as u,useState as d,useMemo as g,useEffect as f}from"react";import h from"../ScannedDocCitation/ScannedDocCitation.js";var m=function(e){switch(e){case"ActualSize":return r.ActualSize;case"PageFit":return r.PageFit;case"PageWidth":return r.PageWidth;default:return null!=e?e:r.PageWidth}},v=function(v){var p,x=v.pdfUrl,P=v.highlightText,T=v.highlightPages,C=v.highlightCordinatePages,w=v.highlightColor,S=void 0===w?"yellow":w,y=v.activeHighlightColor,A=void 0===y?"#f7dc51":y,b=v.jumpToPageValue,H=void 0===b?0:b,I=v.pdfName,_=v.onClose,j=v.customStyles,F=v.customClasses,N=v.customIcons,z=v.useCoordinates,D=v.fallbackPages,R=v.activeCitationIndex,V=v.onActiveCitationChange,W=v.headerAction,q=v.isZoomEnabled,E=void 0===q||q,B=v.showHighlightsAction,O=void 0===B||B,U=v.defaultScale,k=void 0===U?r.ActualSize:U,M=v.useRange,Z=void 0!==M&&M,J=v.rangeOfPages,K=void 0===J?null:J,L=v.showFullScreenAction,G=void 0===L||L,Q=v.segments,X=void 0===Q?[{title:"Document 2",start_page:52,end_page:52,page_count:1}]:Q,Y=v.segmentTooltipText,$=u(null),ee=d(0),te=ee[0],ie=ee[1],oe=d(0),ne=oe[0],re=oe[1],ae=g(function(){if(z)return new Set(C.map(function(e){return e.pageIndex}));var e=new Set;return Object.values(T).forEach(function(t){t>0&&e.add(t-1)}),e},[C,T,z]),le=(p=P)&&0!==p.length?p.filter(function(e){return!p.some(function(t){return t!==e&&t.includes(e)})}):p,se=c(le,z?{}:T,$,ae,z,z?C:[],S,A),ce=se.highlightIndex,ue=se.cursorIndex,de=se.setCursorIndex,ge=se.orderedKeys,fe=se.totalHighlights,he=se.getValidPosition,me=se.tryJump,ve=se.jumpToPage,pe=se.zoomTo,xe=se.plugins,Pe=se.controls,Te=se.hideNonTargetHighlights,Ce=se.deduplicateHighlights,we=he(ue),Se=g(function(){var e=te+1;return X.find(function(t){return e>=t.start_page&&e<=t.end_page})},[te,X]);f(function(){void 0!==R&&R!==ue&&de(R)},[R]);var ye=e(e({},Pe),{goToNext:function(){ue>=fe-1||(Pe.goToNext(),V&&V(ue+1))},goToPrevious:function(){ue<=0||(Pe.goToPrevious(),V&&V(ue-1))}});if(!x)return o(h,{pages:D,activeCitationIndex:R,onActiveCitationChange:V,headerAction:W});return n("div",e({ref:$,className:(null==F?void 0:F.pdfViewerWrapper)||"",style:e(e(e({height:"100%",minHeight:0,minWidth:0,overflow:"hidden",display:"flex",flexDirection:"column"},s.pdfViewer),{display:"flex",flexDirection:"column",height:"100%",width:"100%",backgroundColor:"#FAFAFA"}),null==j?void 0:j.pdfViewer)},{children:[o(l,{highlightIndex:ce,totalHighlights:fe,controls:ye,currentPosition:we,pdfName:I,onClose:_,pdfUrl:x,viewerRef:$,customStyles:j,customClasses:F,customIcons:N,headerAction:W,isZoomEnabled:E,showHighlightsAction:O,showFullScreenAction:G,currentSegment:Se,segmentTooltipText:Y,currentPage:te+1,totalPages:ne,onPageNavigate:function(e){var t=Math.min(Math.max(e,1),ne||e);ie(t-1),ve(t-1)}}),o(a,{defaultScale:m(k),pdfUrl:x,plugins:xe,customStyles:j,onLoad:function(e){re(e.doc.numPages);var o=!z&&!Z&&H<=0;if(pe(r.ActualSize),H>0&&!Z){var n=H-1,a=ge[n],l=T[a],s=C[n];de(n),console.log(s,"cordinateTargetHighlight"),z&&s.pageIndex>0&&ve(s.pageIndex),l>0&&(setTimeout(function(){Te(ae),Ce(l-1)},1e3),z||ve(l-1))}else if(Z&&K&&2===K.length){t(void 0,void 0,void 0,function(){var e,t,o,n,r;return i(this,function(i){switch(i.label){case 0:e=K[0],t=K[1],o=e,i.label=1;case 1:return o<=t?(ve(n=o-1),[4,new Promise(function(e){return setTimeout(e,1e3)})]):[3,4];case 2:if(i.sent(),Te(ae),(r=Ce(n))&&r>0)return[3,4];i.label=3;case 3:return o++,[3,1];case 4:return[2]}})})}else if(!z&&T){var c=ge.find(function(e){return T[e]>0});if(void 0!==c){var u=T[c]-1;ve(u),setTimeout(function(){Te(ae),Ce(u)},1e3)}}requestAnimationFrame(function(){o&&me(),!z&&H>0&&!Z&&function(){if($.current){var e=H-1,t=ge[e],i=T[t],o=i>0?i-1:0,n={};ge.forEach(function(e,t){var i=T[e];i>0&&(n[i]||(n[i]=[]),n[i].push(t))});var r=(n[i]||[]).indexOf(e),a=0,l=function(){var e,t;if(!(++a>40)){var i=null===(e=$.current)||void 0===e?void 0:e.querySelector(".rpv-core__inner-pages");if(i){var n=null===(t=$.current)||void 0===t?void 0:t.querySelector('[data-testid="core__page-layer-'.concat(o,'"]'));if(n){var s=i.getBoundingClientRect(),c=n.getBoundingClientRect();if(c.top<s.bottom&&c.bottom>s.top){var u=n.querySelectorAll(".rpv-search__highlight")[r];if(u){var d=u.getBoundingClientRect(),g=i.scrollTop+(d.top-s.top)-i.clientHeight/2+d.height/2;i.scrollTo({top:g,behavior:"smooth"})}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}else setTimeout(l,100)}};setTimeout(l,500)}}()})},onPageChange:function(e){var t=e.currentPage;ie(t),ae.has(t)?(Ce(t),Te(ae)):Te(ae)}})]}))};export{v as default};
|
|
2
2
|
//# sourceMappingURL=PdfViewer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{createContext as n,useState as i,useMemo as o,useCallback as r,useContext as a}from"react";import{RefProvider as s}from"../../store/ref.context.js";import"../UserStoryCard/cws/CwsEvent.js";import l from"../UserStoryCard/cws/CwsEventProvider.js";import{Toaster as d}from"react-hot-toast";var c;!function(e){e.WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate",e.APPROVED="approved"}(c||(c={}));const u=n(null),g="user-story-lib",C=({children:n,userStory:a,setUserStory:c,aiReasoning:C,setAiReasoning:f,citations:m,setCitations:h,apiCachingConfig:p,customStyles:v,customIcons:S,searchQueryList:I,searchQueryReasoningIdList:E,citationConfig:y,chatHistory:R,chatCitationConfigs:A,gptCitationConfigs:D,diffEditConfig:w,aiReasoningAccordionOpenStates:b,persistedDataFiles:U,inlineUpdateComponentConfig:x,segmentComponentConfig:F,onEditBlocked:N,inlineManualComponentConfig:P,redlineConfig:T,sectionStatusConfig:O,customSectionConfig:L,updateRedlineDataParent:_,redlineCollaborativeConfig:j,onFetchOnDemandCitation:k})=>{const[G,H]=i(0),[Q,B]=i(""),M=o(()=>{if(0===a.length||0===C.length)return Array(a.length).fill(0);const e=Array.from({length:a.length},()=>[]);return C.forEach(t=>{const n=Number(t.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${t.id}`,o=a.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))},[a,C]),q=r(e=>{var t;const n=a.findIndex(t=>t.artifactId===e);return-1===n?0:null!==(t=M[n])&&void 0!==t?t:0},[a,M]),[W,$]=i(null);return e(u.Provider,{value:{chatHistory:R,userStory:a,setUserStory:c,aiReasoning:C,setAiReasoning:f,citations:m,setCitations:h,apiCachingConfig:p,customStyles:v,customIcons:S,searchQueryList:I,searchQueryReasoningIdList:E,citationConfig:y,getAvgScoreForStory:q,chatCitationConfigs:A,gptCitationConfigs:D,diffEditConfig:w,aiReasoningAccordionOpenStates:b,persistedDataFiles:U,currentHighlightIndex:G,setCurrentHighlightIndex:H,inlineUpdateComponentConfig:x,segmentComponentConfig:F,onEditBlocked:N,inlineManualComponentConfig:P,redlineConfig:T,redlineDcoumentId:Q,setRedlineDocumentId:B,sectionStatusConfig:O,customSectionConfig:L,updateRedlineDataParent:_,redlineCollaborativeConfig:j,selectedSectionToEdit:W,setSelectedSectionToEdit:$,onFetchOnDemandCitation:k},children:[t(d,{position:"top-right",toasterId:g}),(null==j?void 0:j.initiateCollaborativeFlow)?t(l,{applicationId:null==j?void 0:j.modeId,baseUrl:null==j?void 0:j.cwsBaseUrl,authToken:null==j?void 0:j.authToken,children:t(s,{children:n})}):t(s,{children:n})]})},f=()=>{const e=a(u);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};export{c as SectionStatus,g as ToasterId,C as default,f as useRequirementAI};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/updateTags.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateTags.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{useEffect as r}from"react";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";import{$generateNodesFromDOM as e}from"@lexical/html";import{$getRoot as o,$isParagraphNode as a}from"lexical";import i from"showdown";import{escapeTagIds as l,splitTagAcrossParagraphs as
|
|
1
|
+
import{useEffect as r}from"react";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";import{$generateNodesFromDOM as e}from"@lexical/html";import{$getRoot as o,$isParagraphNode as a}from"lexical";import i from"showdown";import{normalizeLegacyCommentRedlinesForEditor as m,normalizeCommentAnchorsForEditor as s,escapeTagIds as l,splitTagAcrossParagraphs as n}from"../../../../../../utils/tagHelper.js";import{normalizeRedlineMarkdown as p}from"../utils/normalizeRedlineMarkdown.js";import{normalizeCombinedEmphasisForRendering as c,normalizeReviewBoundaryEmphasisForRendering as u}from"../utils/preserveMarkdownEmphasis.js";import{collectReviewBoundaryWhitespace as d,restoreReviewBoundaryWhitespace as f}from"../utils/preserveReviewBoundaryWhitespace.js";import{INITIAL_CONTENT_UPDATE_TAG as h}from"../constants/updateTags.js";const w=({initialValue:w,initialFormat:x,mode:j})=>{const[g]=t();return r(()=>{if(w){if(w=(()=>{let r=m(w);return r=s(r),r=l(r,["manual","upt"]),["del","ins","preserved","manual","upt"].forEach(t=>{r=n(r,t)}),r})(),x&&"html"!==x){const r=new i.Converter({tables:!0,simpleLineBreaks:!0});w=r.makeHtml(c(u(p(w))))}g.update(()=>{const r=o();r.clear();const t=(new DOMParser).parseFromString(w||"","text/html"),i=d(t);e(g,t).forEach(t=>{try{a(t)&&t.setFormat("justify"),r.append(t)}catch(r){console.error("Error appending node to root: ",r)}}),f(i)},{tag:h})}},[w,g]),r(()=>{g.setEditable("edit"===j)},[g,j]),null};export{w as InitialHtml};
|
|
2
2
|
//# sourceMappingURL=InitialHtml.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ElementNode as t}from"lexical";class s extends t{static getType(){return"manual"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}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,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id,status:this.__status}}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}}function e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as ManualNode};
|
|
1
|
+
import{ElementNode as t}from"lexical";class s extends t{static getType(){return"manual"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}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,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}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 e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as ManualNode};
|
|
2
2
|
//# sourceMappingURL=ManualNode.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{useEffect as e}from"react";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";import{KEY_DOWN_COMMAND as o,$getSelection as r,$isRangeSelection as n,COMMAND_PRIORITY_CRITICAL as s,PASTE_COMMAND as i,CONTROLLED_TEXT_INSERTION_COMMAND as c,$isTextNode as a,$isElementNode as l,$getNearestNodeFromDOMNode as f}from"lexical";import{$getTableCellNodeFromLexicalNode as u,$isTableCellNode as d}from"@lexical/table";const g=(e,t,o)=>{var r;let n=e.getNode();if(!(a(n)?e.offset===("start"===o?0:n.getTextContentSize()):!!l(n)&&e.offset===("start"===o?0:n.getChildrenSize())))return!1;for(;n&&!n.is(t);){if("start"===o?n.getPreviousSibling():n.getNextSibling())return!1;n=n.getParent()}return null!==(r=null==n?void 0:n.is(t))&&void 0!==r&&r},m=()=>{const[a]=t();return e(()=>{const e=()=>{const e=r();if(!n(e)||e.isCollapsed())return!1;const t=u(e.anchor.getNode()),o=u(e.focus.getNode());return!(!t||!o||t.is(o))&&(e.anchor.set(e.focus.key,e.focus.offset,e.focus.type),!0)},t=a.registerCommand(o,e=>{const t=r();if(!n(t))return!1;const o=u(t.anchor.getNode()),s=u(t.focus.getNode());return!(!o||!s)&&(o.is(s)?!!t.isCollapsed()&&(("Backspace"===e.key&&g(t.anchor,o,"start")||!("Delete"!==e.key||!g(t.anchor,o,"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))},s),l=a.registerCommand(i,()=>(e(),!1),s),m=a.registerCommand(c,()=>(e(),!1),s),p=e=>{const t=e.target;if(!(t instanceof Element))return;const o=t.closest("td, th");o&&a.update(()=>{const e=f(o);if(!d(e))return;const t=r();if(!n(t)||!t.isCollapsed())return;const s=u(t.anchor.getNode());if(s&&!s.is(e)){const t=a.getElementByKey(s.getKey());!!t&&!!(t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)?e.selectStart():e.selectEnd()}})},y=a.registerRootListener((e,t)=>{null==t||t.removeEventListener("pointerup",p),null==e||e.addEventListener("pointerup",p)});return()=>{t(),l(),m(),y()}},[a]),null};export{m as ProtectTableCellBoundaries};
|
|
2
|
+
//# sourceMappingURL=ProtectTableCellBoundaries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProtectTableCellBoundaries.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{ElementNode as t}from"lexical";class s extends t{static getType(){return"update"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}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,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}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 e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as UpdateNode};
|
|
1
|
+
import{ElementNode as t}from"lexical";class s extends t{static getType(){return"update"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}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,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}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 e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as UpdateNode};
|
|
2
2
|
//# sourceMappingURL=UpdateNode.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"turndown";const r=/<table\b[^>]*>[\s\S]*?<\/table\s*>/gi,t=/<invisible\b[^>]*\bid\s*=\s*(["'])(.*?)\1[^>]*>\s*<\/invisible\s*>/gi,n=/<!--\s*([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})\s*-->/gi,l=r=>{const t=Array.from(r.rows);if(!t.length)return"";const n=(()=>{const r=new e({headingStyle:"atx",codeBlockStyle:"fenced"}),t=["invisible","manual","upt","ins","del","preserved","deleted","changed"];return r.keep(e=>t.includes(e.nodeName.toLowerCase())),r.addRule("table-cell-line-break",{filter:"br",replacement:()=>"<br>"}),r})(),l=t.map(e=>Array.from(e.cells)),i=Math.max(...l.map(e=>e.length)),a=e=>Array.from({length:i},(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(a(s)),o(Array.from({length:i},(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(a(e)))].join("\n")}\n\n`},i=e=>e&&/<table\b/i.test(e)?e.replace(r,e=>{const r=(new DOMParser).parseFromString(e,"text/html").querySelector("table");return r?l(r):e}):e||"",a=e=>i(e).replace(t,(e,r,t)=>`\x3c!-- ${t} --\x3e`),o=e=>(e||"").replace(n,'<invisible id="$1"></invisible>');export{i as convertHtmlTablesToMarkdownPipes,o as restoreInvisibleTagsForEditor,a as serializeUpdateManualPayload};
|
|
2
|
+
//# sourceMappingURL=manualEditSerialization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manualEditSerialization.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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>`}),a=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 g=Math.max(r.length,n.length,c);for(;r.length<g;)r.push("");for(;n.length<g;)n.push("---");t[e-1]=d(r),t[e]=d(n)}return t.join("\n")})(a)};export{a as normalizeRedlineMarkdown};
|
|
2
|
+
//# sourceMappingURL=normalizeRedlineMarkdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeRedlineMarkdown.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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,l,o;const a=[],s=[];let c="",d=!1,i=0;for(let g=0;g<t.length;g+=1){const h=t[g];if(d){c?h!==c||e(t,g)||(c=""):'"'===h||"'"===h?c=h:">"===h&&(d=!1);continue}if(!i&&"<"===h&&/[A-Za-z/!?]/.test(null!==(r=t[g+1])&&void 0!==r?r:"")){d=!0;continue}if("`"===h&&!e(t,g)){let e=1;for(;"`"===t[g+e];)e+=1;i?i===e&&(i=0):i=e,g+=e-1;continue}if(i||"*"!==h&&"_"!==h)continue;if(e(t,g))continue;let p=1;for(;t[g+p]===h;)p+=1;const x=null!==(l=t[g-1])&&void 0!==l?l:"",u=null!==(o=t[g+p])&&void 0!==o?o:"",I="_"===h&&n(x)&&n(u),m=""!==u&&!/\s/.test(u)&&!I;let f=0,$=p;if(""!==x&&!/\s/.test(x)&&!I){let e=s.at(-1);for(;e&&e.marker===h&&$>=e.markerLength;)a.push({...e,closeIndex:g+f}),f+=e.markerLength,$-=e.markerLength,s.pop(),e=s.at(-1)}m&&$>0&&$<=3&&s.push({openIndex:g+f,marker:h,markerLength:$}),g+=p-1}return a.sort((e,n)=>e.openIndex-n.openIndex)},r=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")},l=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,l,o,a,s,c,d,i,g)=>`${r}${n}${t}${l}${o}${a}${s}${c}${d}${i}${g}${r}`),o=e=>{const n=[];let t="",r=0;return e.split("\n").forEach(e=>{const l=e.match(/^\s*(`{3,}|~{3,})/);if(l){const n=l[1][0];return t?t===n&&(t=""):t=n,void(r+=e.length+1)}if(!t){let t=0;e.split(/(`+[^`]*`+)/g).forEach((e,l)=>{l%2==0&&Array.from(e.matchAll(/\*{3}([ \t]*)(\S(?:.*?\S)?)([ \t]*)\*{3}/g)).forEach(e=>{var l;const o=r+t+(null!==(l=e.index)&&void 0!==l?l:0);n.push({openIndex:o,closeIndex:o+e[0].length-3,leadingSpace:e[1],content:e[2],trailingSpace:e[3]})}),t+=e.length})}r+=e.length+1}),n},a=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),s=/(<(manual|upt)\b(?:[^>"']|"[^"]*"|'[^']*')*>[\s\S]*?<\/\2\s*>)/gi,c=(e,n)=>{n=((e,n)=>{const t=o(e),r=o(n);if(!t.length||!r.length)return n;const l=[];if(t.length===r.length)r.forEach((e,n)=>{l.push({sourceIndex:n,generatedIndex:n})});else{let e=0;r.forEach((n,r)=>{const o=t.findIndex((t,r)=>r>=e&&t.content===n.content);-1!==o&&(l.push({sourceIndex:o,generatedIndex:r}),e=o+1)})}let a=n;return l.sort((e,n)=>r[n.generatedIndex].openIndex-r[e.generatedIndex].openIndex).forEach(({sourceIndex:e,generatedIndex:n})=>{const l=t[e],o=r[n],s=`***${l.leadingSpace}${o.content}${l.trailingSpace}***`;a=a.slice(0,o.openIndex)+s+a.slice(o.closeIndex+3)}),a})(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 l=n;return r.sort((e,n)=>n.openIndex-e.openIndex).forEach(n=>{const t=n.marker.repeat(n.markerLength),r="*".repeat(n.markerLength),o=e.slice(n.openIndex+n.markerLength,n.closeIndex),a=o.split(new RegExp(s.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}${o}${t}`;a&&l.includes(a)&&(l=l.replace(a,c))}),l})(e,n);const r=t(e),l=t(n),a=(e,n)=>e.slice(n.openIndex+n.markerLength,n.closeIndex).replace(/\r\n/g,"\n"),c=r.map(n=>a(e,n)),d=l.map(e=>a(n,e)),i=[],g=(e,n)=>r[e].markerLength===l[n].markerLength&&c[e]===d[n],h=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)h[e][n]=g(e,n)?h[e+1][n+1]+1:Math.max(h[e+1][n],h[e][n+1]);let p=0,x=0;for(;p<c.length&&x<d.length;)g(p,x)?(i.push({sourceIndex:p,generatedIndex:x}),p+=1,x+=1):h[p+1][x]>=h[p][x+1]?p+=1:x+=1;if(r.length===l.length){const e=new Set(i.map(e=>e.generatedIndex));for(let n=0;n<l.length;n+=1)e.has(n)||r[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=r[e],o=l[n],a=t.marker.repeat(t.markerLength);u=u.slice(0,o.closeIndex)+a+u.slice(o.closeIndex+o.markerLength),u=u.slice(0,o.openIndex)+a+u.slice(o.openIndex+o.markerLength)}),u};export{t as collectMarkdownEmphasisRanges,a as markdownWithoutEmphasisMarkers,r as normalizeCombinedEmphasisForRendering,l as normalizeReviewBoundaryEmphasisForRendering,c as preserveEmphasisMarkersFromSource};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownEmphasis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownEmphasis.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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(),l=l=>{const r=Array.from(l.matchAll(new RegExp(e.source,"gi")));return r.map((e,i)=>{var n,g,c,h;const s=null!==(n=e.index)&&void 0!==n?n:0,a=i>0?(null!==(g=r[i-1].index)&&void 0!==g?g:0)+r[i-1][0].length:0,o=null!==(h=null===(c=r[i+1])||void 0===c?void 0:c.index)&&void 0!==h?h:l.length;return{raw:e[0],left:t(l.slice(a,s).slice(-100)),right:t(l.slice(s+e[0].length,o).slice(0,100))}})},r=(t,r)=>{if(!t||!r)return r;const i=l(t),n=l(r);if(!i.length||!n.length)return r;if(i.length===n.length){let t=0;return r.replace(e,()=>i[t++].raw)}let g=0,c=0;return r.replace(e,e=>{const t=n[c++],l=i.findIndex((e,l)=>l>=g&&((e,t)=>{const l=Boolean(e.left&&t.left&&(e.left.endsWith(t.left)||t.left.endsWith(e.left))),r=Boolean(e.right&&t.right&&(e.right.startsWith(t.right)||t.right.startsWith(e.right)));if(l||r)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 l=e.left.slice(-30),r=t.left.slice(-30);if(l.split("").filter((e,t)=>r[t]===e).length>=15)return!0}if(n){const l=e.right.slice(0,30),r=t.right.slice(0,30);if(l.split("").filter((e,t)=>r[t]===e).length>=15)return!0}return!1})(e,t));return-1===l?e:(g=l+1,i[l].raw)})};export{r as preserveLineBreaksFromSource};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownLineBreaks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownLineBreaks.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const n=n=>{const e=[];let t="";return n.forEach((n,r)=>{const c=n.match(/^\s*(`{3,}|~{3,})/);if(c){const n=c[1][0];return void(t?t===n&&(t=""):t=n)}if(t)return;const o=n.match(/^(\s*)([*+-])([ \t]+)(.*)$/);o&&e.push({lineIndex:r,indent:o[1],marker:o[2],spacing:o[3],content:o[4]})}),e},e=(e,t)=>{if(!e||!t)return t;const r=e.split("\n"),c=t.split("\n"),o=n(r),s=n(c);if(!o.length||!s.length)return t;const d=[];if(o.length===s.length)s.forEach((n,e)=>{d.push({sourceIndex:e,generatedIndex:e})});else{let n=0;s.forEach((e,t)=>{const r=o.findIndex((t,r)=>r>=n&&t.content===e.content);-1!==r&&(d.push({sourceIndex:r,generatedIndex:t}),n=r+1)})}return d.forEach(({sourceIndex:n,generatedIndex:e})=>{const t=o[n],r=s[e];c[r.lineIndex]=`${t.indent}${t.marker}${t.spacing}`+r.content}),c.join("\n")};export{e as preserveListFormattingFromSource};
|
|
2
|
+
//# sourceMappingURL=preserveMarkdownListFormatting.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveMarkdownListFormatting.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{$nodesOfType as t,$isTextNode as e,$createTextNode as o}from"lexical";import{ManualNode as n}from"../plugins/ManualNode.js";import{UpdateNode as i}from"../plugins/UpdateNode.js";const r=(t,e)=>`${t.toLowerCase()}:${e}`,l=t=>{const e=new Map;return t.querySelectorAll("manual[id], upt[id]").forEach(t=>{var o,n,i,l,a,s;const d=t.getAttribute("id");if(!d)return;const u=null===(n=null===(o=t.previousSibling)||void 0===o?void 0:o.textContent)||void 0===n?void 0:n.match(/[ \t]+$/),f=null!==(i=null==u?void 0:u[0])&&void 0!==i?i:"",c=null===(a=null===(l=t.nextSibling)||void 0===l?void 0:l.textContent)||void 0===a?void 0:a.match(/^[ \t]+/),g=null!==(s=null==c?void 0:c[0])&&void 0!==s?s:"";e.set(r(t.tagName,d),{before:f,after:g})}),e},a=l=>{[...t(n).map(t=>({tag:"manual",node:t})),...t(i).map(t=>({tag:"upt",node:t}))].forEach(({tag:t,node:n})=>{const i=n.getId(),a=l.get(r(t,i));if(!a)return;const s=n.getPreviousSibling();if(e(s)){const t=s.getTextContent();s.setTextContent(`${t.replace(/[ \t]*$/,"")}${a.before}`)}else a.before&&n.insertBefore(o(a.before));const d=n.getNextSibling();if(e(d)){const t=d.getTextContent();d.setTextContent(`${a.after}${t.replace(/^[ \t]*/,"")}`)}else a.after&&n.insertAfter(o(a.after))})};export{l as collectReviewBoundaryWhitespace,a as restoreReviewBoundaryWhitespace};
|
|
2
|
+
//# sourceMappingURL=preserveReviewBoundaryWhitespace.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveReviewBoundaryWhitespace.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const n=n=>{const e=[],t=[],r=/\r\n|\n|\r|\\r\\n|\\n|\\r/g;let l,s=0;for(;null!==(l=r.exec(n));)e.push(n.slice(s,l.index)),t.push(l[0]),s=l.index+l[0].length;return e.push(n.slice(s)),{lines:e,separators:t}},e=(n,e)=>{let t=0;for(let r=e-1;r>=0&&"\\"===n[r];r-=1)t+=1;return t%2==1},t=n=>n.flatMap((n,t)=>{const r=(n=>{let t=n.trim();if(!t.includes("|"))return 0;t.startsWith("|")&&(t=t.slice(1)),t.endsWith("|")&&!e(t,t.length-1)&&(t=t.slice(0,-1));const r=[];let l="";for(let n=0;n<t.length;n+=1)"|"!==t[n]||e(t,n)?l+=t[n]:(r.push(l.trim()),l="");return r.push(l.trim()),r.length>=2&&r.every(n=>/^:?-{3,}:?$/.test(n))?r.length:0})(n);return r?[{lineIndex:t,columnCount:r,raw:n}]:[]}),r=(e,r)=>{if(!e||!r)return r;const l=n(e),s=n(r),u=t(l.lines),i=t(s.lines);if(!u.length||!i.length)return r;let o=0;return i.forEach((n,e)=>{let t=u.findIndex((e,t)=>t>=o&&e.columnCount===n.columnCount);if(t<0){const r=u[e];if(!r||r.columnCount!==n.columnCount)return;t=e}s.lines[n.lineIndex]=u[t].raw,o=t+1}),(({lines:n,separators:e})=>n.map((n,t)=>{var r;return`${n}${null!==(r=e[t])&&void 0!==r?r:""}`}).join(""))(s)};export{r as preserveTableDelimiterRowsFromSource};
|
|
2
|
+
//# sourceMappingURL=preserveTableDelimiters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preserveTableDelimiters.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/tableBoundaryRedlines.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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}},m=e=>e?f(e).normalized:"",h=(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"),"")};export{m as normalizeTableBoundaryManualRedlines,h as preserveTableBoundaryManualRedlinesFromSource};
|
|
2
|
+
//# sourceMappingURL=tableBoundaryRedlines.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tableBoundaryRedlines.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as o,useEffect as a,useImperativeHandle as l}from"react";import{DEFAULT_TOOLBAR_CONFIG as i}from"./Editor/constants/editorConfig.js";import c from"./Editor/Editor.js";import{useRefStore as s}from"../../store/ref.context.js";import{$generateHtmlFromNodes as u}from"@lexical/html";import d from"turndown";import{tables as p}from"turndown-plugin-gfm";import{UnsavedChangesPopup as h}from"../UnsavedChangesPopup/UnsavedChangesPopup.js";import{mergeTagAcrossParagraphs as g,unescapeTagIds as m}from"../../../../utils/tagHelper.js";const f=new d({headingStyle:"atx",codeBlockStyle:"fenced"}),E=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");f.keep(["ins","del","mark"]),f.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")||"",o=r.textContent||"";return`<a href="${a=n,E(a).replace(/"/g,""")}">${E(o)}</a>`;var a}}),f.keep(e=>"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")),f.addRule("md-table-passthrough",{filter:e=>"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table"),replacement:(e,t)=>t.textContent||""}),f.use(p);const v=e=>(e||"").replace(/\r\n/g,"\n").trim(),$=r(({type:r,value:d,handleUpdateState:p,onBlur:E,placeholder:$,minHeight:A,height:S,mode:w,doNotShowBorderInViewMode:y,onEditBlocked:b,onSaveUnsavedChanges:x,onDiscardUnsavedChanges:C,isSavingUnsavedChanges:N=!1},B)=>{const T=n(null),[q,L]=o({type:r,value:d}),[_,H]=o(0),[I,R]=o(!1),j=n(d),k=n(d),M=n(Boolean(d)),{contentRef:P,setContentRef:U}=s();a(()=>{L(e=>({...e,value:d})),j.current=d,k.current=d,M.current=Boolean(d),R(!1)},[d]),l(B,()=>({requestClose:()=>!("edit"===w&&v(j.current)!==v(k.current))||(R(!0),!1)}),[w]);return a(()=>{const e=()=>{P&&P.current&&H(P.current.clientHeight-60)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[P]),e("div",{style:{position:"relative",width:"100%",height:S,minHeight:A},children:[I&&t(h,{isSaving:N,onSave:async()=>{await(null==x?void 0:x()),j.current=k.current,R(!1)},onDiscard:()=>{k.current=j.current,null==C||C(),R(!1)}}),t(c,{minHeight:A,height:S,placeholder:$||"Enter some text...",onChange:(e,t)=>{e.read(()=>{const e=u(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 o(e,t){const r=e.cloneNode(!0),a=new Map;r.querySelectorAll(n.join(",")).forEach(e=>{if(e===r)return;const n=`%%NESTED${a.size}%%`;a.set(n,o(e,t)),e.replaceWith(n)});let l=t.turndown(r.innerHTML);a.forEach((e,t)=>{l=l.replace(t,e)});const i=Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),c=e.tagName.toLowerCase();return i?`<${c} ${i}>${l}</${c}>`:`<${c}>${l}</${c}>`}r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const a=[];r.querySelectorAll("invisible").forEach((e,t)=>{a.push(e.outerHTML),e.replaceWith(r.createTextNode(`%%INVISIBLE_${t}%%`))});const l=[];["manual","upt"].forEach(e=>{r.querySelectorAll(e).forEach((e,t)=>{l.push(o(e,f)),e.replaceWith(r.createTextNode(`%%REVIEW_${l.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 c=f.turndown(r.body.innerHTML);for(let e=l.length-1;e>=0;e--)c=c.replace(`%%REVIEW\\_${e}%%`,` ${l[e]} `);a.forEach((e,t)=>{c=c.replace(new RegExp(`%%INVISIBLE\\\\*_${t}%%`,"g"),` ${e} `)}),i.forEach((e,t)=>{c=c.replace(`%%TABLE\\_${t}%%`,`\n\n${e}\n\n`)}),c=c.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"),c=c.replace(/\s+class="PlaygroundEditorTheme__[^"]*"/g,""),c=c.replace(/<span\s+style="white-space:\s*pre-wrap;?">([\s\S]*?)<\/span>/g,"$1"),c=c.replace(/\s+style="white-space:\s*pre-wrap;?"/g,""),c=c.replace(/<b>\s*<strong>([\s\S]*?)<\/strong>\s*<\/b>/g,"<strong>$1</strong>");["upt","manual","del","ins","preserved"].forEach(e=>{c=g(c,e)}),c=m(c,["manual","upt"]),M.current&&(j.current=c,M.current=!1),k.current=c,((e,t)=>{p(e,t)})("prompt",c)})},toolbarConfig:i,editorRef:T,mode:w,initialString:{type:q.type,value:q.value},dynamicHeight:_,onBlur:E,doNotShowBorderInViewMode:y||!1,onEditBlocked:b})]})});$.displayName="RichTextEditor";export{$ as default};
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as l,useEffect as o,useImperativeHandle as i}from"react";import{DEFAULT_TOOLBAR_CONFIG as a}from"./Editor/constants/editorConfig.js";import s from"./Editor/Editor.js";import{useRefStore as c}from"../../store/ref.context.js";import{$generateHtmlFromNodes as d}from"@lexical/html";import u from"turndown";import{tables as p}from"turndown-plugin-gfm";import{UnsavedChangesPopup as h}from"../UnsavedChangesPopup/UnsavedChangesPopup.js";import{mergeTagAcrossParagraphs as g,unescapeTagIds as m,preserveLegacyCommentRedlinesFromSource as f,preserveDocumentAnchorsFromSource as v,preserveInvisibleAnchorBeforeTablePipe as E}from"../../../../utils/tagHelper.js";import{INITIAL_CONTENT_UPDATE_TAG as b}from"./Editor/constants/updateTags.js";import{preserveEmphasisMarkersFromSource as x,markdownWithoutEmphasisMarkers as $}from"./Editor/utils/preserveMarkdownEmphasis.js";import{preserveTableDelimiterRowsFromSource as w}from"./Editor/utils/preserveTableDelimiters.js";import{preserveLineBreaksFromSource as A}from"./Editor/utils/preserveMarkdownLineBreaks.js";import{preserveListFormattingFromSource as y}from"./Editor/utils/preserveMarkdownListFormatting.js";const S=new u({headingStyle:"atx",codeBlockStyle:"fenced",emDelimiter:"*"}),C=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");S.keep(["ins","del","mark"]),S.keep(e=>["DELETED","CHANGED"].includes(e.nodeName)),S.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,C(o).replace(/"/g,""")}">${C(l)}</a>`;var o}}),S.keep(e=>"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")),S.addRule("md-table-passthrough",{filter:e=>"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table"),replacement:(e,t)=>t.textContent||""}),S.use(p),S.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=T(i),o?i?`| ${i} |`:"| |":i?` ${i} |`:" |"}});const N=(e,t)=>{let r=0;for(let n=t-1;n>=0&&"\\"===e[n];n-=1)r+=1;return r%2==1},T=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||N(e,r)?n:"\\|"}return t}).join("");S.addRule("stable-line-break",{filter:"br",replacement:()=>"<br>"});const B=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("|")&&!N(l,l.length-1);o&&(l=l.slice(1)),i&&(l=l.slice(0,-1));const a=[];let s="",c=!1,d="";for(let e=0;e<l.length;e+=1){const t=l[e];c?(s+=t,d?t!==d||N(l,e)||(d=""):'"'===t||"'"===t?d=t:">"===t&&(c=!1)):"<"===t?(c=!0,s+=t):"|"!==t||N(l,e)?s+=t:(a.push(s),s="")}return a.push(s),a.length<2?null:{indent:n,leadingPipe:o,trailingPipe:i,rawCells:a,cells:a.map(e=>e.trim())}},I=e=>!!e&&e.cells.every(e=>/^:?-{3,}:?$/.test(e)),L=e=>{const t=[];for(let r=1;r<e.length;r+=1){const n=B(e[r]),l=B(e[r-1]);if(!I(n)||!l)continue;const o=[{lineIndex:r-1,row:l},{lineIndex:r,row:n}];for(r+=1;r<e.length;){const t=B(e[r]);if(!t||I(t))break;o.push({lineIndex:r,row:t}),r+=1}t.push(o),r-=1}return t},R=e=>e.trim().replace(/(?:[ \t\u00a0]| )*<br\s*\/?>(?:[ \t\u00a0]| )*/gi,"<br>"),j=e=>e.replace(/<[^>]*>/g," ").replace(/[*_`~]+/g,"").replace(/ |\u00a0/gi," ").replace(/\s+/g," ").trim().toLocaleLowerCase(),q=(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,a,s;return{raw:t[0],left:j(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:j(e.slice((null!==(i=t.index)&&void 0!==i?i:0)+t[0].length,null!==(s=null===(a=n[r+1])||void 0===a?void 0:a.index)&&void 0!==s?s:e.length).slice(0,80)),used:!1}}),o=Array.from(t.matchAll(r));let i=0;return t.replace(r,(r,n)=>{var a,s,c,d;const u=o.findIndex(e=>e.index===n),p=u>0?(null!==(a=o[u-1].index)&&void 0!==a?a:0)+o[u-1][0].length:0,h=null!==(c=null===(s=o[u+1])||void 0===s?void 0:s.index)&&void 0!==c?c:t.length,g=j(t.slice(p,n).slice(-80)),m=j(t.slice(n+r.length,h).slice(0,80)),f=l.findIndex((e,t)=>t>=i&&!e.used&&(e.left&&g.endsWith(e.left)||g&&e.left.endsWith(g)||e.right&&m.startsWith(e.right)||m&&e.right.startsWith(m))),v=l[f];if(v)return v.used=!0,i=f+1,v.raw;for(;null===(d=l[i])||void 0===d?void 0:d.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"),a=o.lastIndexOf("</manual"),s=o.lastIndexOf("<ins"),c=o.lastIndexOf("</ins");if(i<=a||s<=c)return!1;const d=null!==(l=null===(n=o.slice(i).match(/^<manual\b[^>]*>/i))||void 0===n?void 0:n[0])&&void 0!==l?l:"",u=O(d);return Boolean(u&&!e.includes(u))})(n)?r:""})},k=new RegExp(String.raw`<(manual|upt)\b((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/\1\s*>`,"gi"),O=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:""},W=e=>$(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(),M=(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,a,s,c,d,u,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:"",m=null!==(a=null===(i=h.match(/\s*$/))||void 0===i?void 0:i[0])&&void 0!==a?a:"";if(!h.trim()){if(!r)return h;const e=null!==(s=t.rawCells[n])&&void 0!==s?s:r;return`${null!==(d=null===(c=e.match(/^\s*/))||void 0===c?void 0:c[0])&&void 0!==d?d:""}${r}${null!==(p=null===(u=e.match(/\s*$/))||void 0===u?void 0:u[0])&&void 0!==p?p:""}`}const f=e.cells[n];if(R(f)===R(r))return h;return`${g}${q(f,r)}${m}`});return`${e.indent}${e.leadingPipe?"|":""}${n.join("|")}${e.trailingPipe?"|":""}`},P=e=>(e||"").replace(/\r\n/g,"\n").trim(),X=r(({type:r,value:u,handleUpdateState:p,onBlur:$,placeholder:C,minHeight:N,height:T,mode:B,doNotShowBorderInViewMode:R,onEditBlocked:j,onSaveUnsavedChanges:q,onDiscardUnsavedChanges:X,isSavingUnsavedChanges:D=!1},H)=>{const Q=n(null),[Z,K]=l({type:r,value:u}),[U,_]=l(0),[V,z]=l(!1),F=n(u),G=n(u),J=n(Boolean(u)),{contentRef:Y,setContentRef:ee}=c();o(()=>{K(e=>({...e,value:u})),F.current=u,G.current=u,J.current=Boolean(u),z(!1)},[u]),i(H,()=>({requestClose:()=>!("edit"===B&&P(F.current)!==P(G.current))||(z(!0),!1)}),[B]);return o(()=>{const e=()=>{Y&&Y.current&&_(Y.current.clientHeight-60)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[Y]),e("div",{style:{position:"relative",width:"100%",height:T,minHeight:N},children:[V&&t(h,{isSaving:D,onSave:async()=>{await(null==q?void 0:q()),F.current=G.current,z(!1)},onDiscard:()=>{G.current=F.current,null==X||X(),z(!1)}}),t(s,{minHeight:N,height:T,placeholder:C||"Enter some text...",onChange:(e,t,r)=>{e.read(()=>{const e=d(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 o(e,t,r=Boolean(e.closest("td, th"))){const n=e.cloneNode(!0),i=new Map;n.querySelectorAll(l.join(",")).forEach(e=>{if(e===n)return;const l=`%%NESTED${i.size}%%`;i.set(l,o(e,t,r)),e.replaceWith(l)});const a=[];r&&n.querySelectorAll("br").forEach(e=>{const t=`ZXQTABLEBREAKTOKEN${a.length}QXZ`;a.push("<br>"),e.replaceWith(document.createTextNode(t))});let s=t.turndown(n.innerHTML);a.forEach((e,t)=>{s=s.replace(`ZXQTABLEBREAKTOKEN${t}QXZ`,e)}),i.forEach((e,t)=>{s=s.replace(t,e)});const c=Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),d=e.tagName.toLowerCase();return c?`<${d} ${c}>${s}</${d}>`:`<${d}>${s}</${d}>`}n.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const i=[];n.querySelectorAll("invisible").forEach((e,t)=>{const r=`ZXQINVISIBLETOKEN${t}QXZ`;i.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:o(e,S),placeholder:t}),e.replaceWith(n.createTextNode(t))})});const s=[];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${s.length}%%`;s.push(t),e.textContent=t}),n.querySelectorAll("table > colgroup").forEach(e=>{e.remove()});let c=S.turndown(n.body.innerHTML);s.forEach(e=>{c=c.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];c=c.replace(r,t)}i.forEach(({html:e,placeholder:t})=>{c=c.replace(t,e)}),c=c.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"),c=c.replace(/\s+class="PlaygroundEditorTheme__[^"]*"/g,""),c=c.replace(/<span\s+style="white-space:\s*pre-wrap;?">([\s\S]*?)<\/span>/g,"$1"),c=c.replace(/\s+style="white-space:\s*pre-wrap;?"/g,""),c=c.replace(/<b>\s*<strong>([\s\S]*?)<\/strong>\s*<\/b>/g,"<strong>$1</strong>"),c=c.replace(/<code([^>]*)>\s*<span[^>]*>([\s\S]*?)<\/span>\s*<\/code>/g,"<code$1>$2</code>");if(["upt","manual","del","ins","preserved"].forEach(e=>{c=g(c,e)}),c=m(c,["manual","upt"]),c=((e,t)=>{const r=Array.from(e.matchAll(new RegExp(k.source,"gi")));let n=t;return r.forEach(e=>{const[,t,r,l]=e,o=O(r);if(!o)return;const i=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(String.raw`<${t}\b(?=(?:[^>"']|"[^"]*"|'[^']*')*\bid\s*=\s*(?:"${i}"|'${i}'))((?:[^>"']|"[^"]*"|'[^']*')*)>([\s\S]*?)<\/${t}\s*>`,"i");n=n.replace(a,(t,r,n)=>W(l)===W(n)?e[0]:t)}),n})(F.current,c),F.current.includes("--\x3e")&&(c=c.replace(/-->/gi,"--\x3e")),c=f(F.current,c),c=v(F.current,c),c=x(F.current,c),c=((e,t)=>{const r=e.split("\n"),n=w(e,t).split("\n"),l=L(r);return L(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(I(i.row)&&I(t))return void(n[e]=r[i.lineIndex]);const a=M(i.row,t);null!==a&&(n[e]=a)})}),n.join("\n")})(F.current,c),c=E(F.current,c),c=y(F.current,c),c=A(F.current,c),r.has(b))return G.current=F.current,void(J.current=!1);J.current&&(F.current=c,J.current=!1),G.current=c,((e,t)=>{p(e,t)})("prompt",c)})},toolbarConfig:a,editorRef:Q,mode:B,initialString:{type:Z.type,value:Z.value},dynamicHeight:U,onBlur:$,doNotShowBorderInViewMode:R||!1,onEditBlocked:j})]})});X.displayName="RichTextEditor";export{X as default};
|
|
2
2
|
//# sourceMappingURL=RichTextEditor.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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 n=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;n&&t.setAttribute("nonce",n),t.appendChild(document.createTextNode(e));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(t)}();export{e as default};
|
|
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
|
+
import{jsxs as a,jsx as t}from"react/jsx-runtime";import"./Avatar.css.js";import{getAvatarColor as e,getInitials as r}from"./avatarUtils.js";function i({name:i,online:s=!1,size:o=56,bordered:n=!1}){return a("div",{className:"avatar "+(n?"avatar--bordered":""),style:{width:o,height:o,background:e(i),fontSize:Math.max(12,.38*o)},children:[r(i),s&&t("span",{className:"online-dot",style:{width:Math.max(8,.28*o),height:Math.max(8,.28*o)}})]})}export{i as default};
|
|
2
|
+
//# sourceMappingURL=Avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Avatar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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 a=document.head||document.getElementsByTagName("head")[0]||document.documentElement;a&&a.appendChild(t)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsGroup.css.js.map
|
package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsGroup.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsGroup.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as o}from"react";import"./CollaboratorsGroup.css.js";import t from"./Avatar.js";import n from"./CollaboratorsPopup.js";import{ChevronDown as i}from"lucide-react";function c({users:c,owner:l,activeUsers:m,previousUsers:d=[],maxVisible:p=3}){const v=c.slice(0,p),u=c.length-v.length,[h,f]=a(!1),N=s(null);return o(()=>{function e(e){N.current&&!N.current.contains(e.target)&&f(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),e("div",{className:"avatar-group-container",ref:N,children:[e("div",{className:"avatar-group",onClick:()=>f(e=>!e),children:[e("div",{className:"avatar-stack",children:[v.map((e,a)=>r("div",{className:"avatar-wrapper",style:{zIndex:a+1},children:r(t,{name:e.name,online:e.online,size:32,bordered:!0})},e.id)),u>0&&r("div",{className:"avatar-wrapper",style:{zIndex:v.length+1},children:e("div",{className:"avatar-more",children:["+",u]})})]}),r(i,{className:"avatar-chevron "+(h?"open":"")})]}),h&&r("div",{className:"collaborators-popup-wrapper",children:r(n,{owner:l,activeUsers:m,previousUsers:d})})]})}export{c as default};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsGroup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsGroup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
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)}();export{e as default};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsPopup.css.js.map
|
package/dist/features/RequirementAI/components/UserStoryCard/Avatar/CollaboratorsPopup.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsPopup.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{jsxs as e,jsx as s,Fragment as i}from"react/jsx-runtime";import"./CollaboratorsPopup.css.js";import a from"./Avatar.js";import{Tooltip as r}from"@mui/material";function n({user:i}){return e("div",{className:"user-row "+(i.faded?"faded":""),children:[s(a,{name:i.name,online:i.online,size:40}),e("div",{className:"user-info",children:[e("div",{className:"user-name",children:[s(r,{title:i.name,children:s("span",{className:"user-text",children:i.name})}),!!i.isUser&&s("span",{className:"you",children:"(You)"})]}),s("div",{className:"user-subtitle",children:s(r,{title:i.subtitle,children:s("span",{className:"user-text",children:i.subtitle})})})]})]})}function l({owner:l,activeUsers:t,previousUsers:c=[]}){return e("div",{className:"collaborators-popover",children:[l&&e("div",{className:"owner-section",children:[s(a,{name:l.name,online:l.online,size:40}),e("div",{className:"user-info",children:[e("div",{className:"user-name",children:[s(r,{title:l.name,children:s("span",{className:"user-text",children:l.name})}),!!l.isUser&&s("span",{className:"you",children:"(You)"})]}),s("div",{className:"user-subtitle",children:"Owner"})]})]}),(t.length>0||c.length>0)&&s("div",{className:"divider"}),t.length>0&&e(i,{children:[s("div",{className:"section-title",children:"On this document"}),t.map(e=>s(n,{user:e},e.id))]}),c.length>0&&e(i,{children:[s("div",{className:"section-title previous",children:"Previously active"}),c.map(e=>s(n,{user:{...e,faded:!0}},e.id))]})]})}export{l as default};
|
|
2
|
+
//# sourceMappingURL=CollaboratorsPopup.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollaboratorsPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const F=["#FFF3B0","#D9F7E5","#EEE3FF","#DDEBFF","#FFE2E2","#FFE9CC","#DFF5FF","#FDE2F3"];function t(F){return F.trim().split(/\s+/).slice(0,2).map(F=>{var t;return null===(t=F[0])||void 0===t?void 0:t.toUpperCase()}).join("")}function e(t){let e=0;for(let F=0;F<t.length;F++)e=t.charCodeAt(F)+((e<<5)-e);return F[Math.abs(e)%F.length]}export{e as getAvatarColor,t as getInitials};
|
|
2
|
+
//# sourceMappingURL=avatarUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatarUtils.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|