@e-llm-studio/requirement-ai 0.0.238 → 0.0.240
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/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
- package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.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/FileCitationRender.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.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/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
- package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.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/HighlightButtonComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/service/redlineService.js +2 -0
- package/dist/cjs/service/redlineService.js.map +1 -0
- package/dist/cjs/utils/tagHelper.js +2 -0
- package/dist/cjs/utils/tagHelper.js.map +1 -0
- package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
- package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
- package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
- package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
- package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
- package/dist/features/RequirementAI/components/cra/PartialRequirementContent.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/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
- package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
- package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
- package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
- package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
- package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.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/HighlightButtonComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
- package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
- package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
- package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
- package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
- package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
- package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
- package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
- package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
- package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
- package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
- package/dist/features/RequirementAI/shared/Accordian.js +1 -1
- package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
- package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
- package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
- package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
- package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
- package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
- package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
- package/dist/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
- package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/features/UserStoryImport/components/Header.js +1 -1
- package/dist/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/index.js +1 -1
- package/dist/service/redlineService.js +2 -0
- package/dist/service/redlineService.js.map +1 -0
- package/dist/types/src/App.d.ts.map +1 -1
- package/dist/types/src/RedlineEditorTest.d.ts +3 -0
- package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
- package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +40 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +26 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +9 -4
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +45 -11
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts +7 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +15 -3
- 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 +9 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -0
- 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/InlineManualComponent.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +3 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -13
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts +33 -0
- package/dist/types/src/service/redlineService.d.ts.map +1 -0
- package/dist/types/src/utils/tagHelper.d.ts +5 -0
- package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
- package/dist/utils/tagHelper.js +2 -0
- package/dist/utils/tagHelper.js.map +1 -0
- package/package.json +17 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:
|
|
1
|
+
import{jsx as t,Fragment as i}from"react/jsx-runtime";import n from"../../../../CitationRenderer/CitationRenderer.js";import o from"./icons/FileCodeIcon.js";import e from"./ReadFileCitationContent.js";const r=({title:r,citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p})=>{const d=(null==s?void 0:s.readFileCitationIcon)||t(o,{className:"inline align-super mb-1 ml-1",style:{width:"12px",height:"12px"}});return t(n,{inLineCitation:!0,citationTitle:r+"",citationId:`readfile-${a.citation_number}`,citationIcon:t(i,{}),citationComponent:t(e,{citation:a,customStyles:l,customColors:c,customIcons:s,editorConfig:m,fileCallback:p}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{fontSize:"13px",margin:"0px",padding:"0px 4px",color:"#3b82f6",cursor:"pointer",verticalAlign:"baseline",whiteSpace:"normal",wordBreak:"break-all",display:"inline-flex",alignItems:"unset",background:"transparent",border:"none",...null==l?void 0:l.pill},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content"}}})};export{r as default};
|
|
2
2
|
//# sourceMappingURL=ReadFileCitationRenderer.js.map
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";const
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";const o=({className:o,style:s})=>e("svg",{className:o,style:s,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[t("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),t("polyline",{points:"15 3 21 3 21 9"}),t("line",{x1:"10",y1:"14",x2:"21",y2:"3"})]});export{o as default};
|
|
2
2
|
//# sourceMappingURL=ExternalLinkIcon.js.map
|
package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e}from"react/jsx-runtime";const
|
|
1
|
+
import{jsxs as t,jsx as e}from"react/jsx-runtime";const o=({className:o,style:s})=>t("svg",{className:o,style:s,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",xmlns:"http://www.w3.org/2000/svg",children:[e("path",{d:"M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"}),e("polyline",{points:"14 2 14 8 20 8"}),e("path",{d:"m10 13-2 2 2 2"}),e("path",{d:"m14 17 2-2-2-2"})]});export{o as default};
|
|
2
2
|
//# sourceMappingURL=FileCodeIcon.js.map
|
package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import o from"../../../../CitationRenderer/CitationRenderer.js";import e from"./StormeeContent.js";const i=()=>t("div",{className:"mb-3",children:t("img",{width:18,src:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",alt:"stormee citation"})}),n=n=>{var a,c,s,r,m;const d=(null===(a=n.customIcons)||void 0===a?void 0:a.stormeeCitationIcon)||t(i,{}),l=(null===(c=n.customIcons)||void 0===c?void 0:c.stormeeBrainstormIcon)||"https://storymod-assests.pages.dev/brainstorm-cropped.gif";return t(o,{inLineCitation:!0,citationTitle:n.title,citationId:`stormee-citation-${n.citation.citation_number}`,citationComponent:"audio_transcript"===n.citation.customMetadata.type&&t(e,{segments:n.citation.customMetadata.segments,gsUtilPath:n.citation.customMetadata.gs_util_url,contentName:n.citation.customMetadata.content_name||"",content:n.citation.customMetadata.content||"",highlighted_content:n.citation.customMetadata.highlighted_content||"",keywords:n.citation.customMetadata.keywords||[],relevanceScore:null===(s=n.citation.customMetadata)||void 0===s?void 0:s.relevance_score,brainStormIcon:l,customStyles:n.customStyles}),chevronDownComponent:d,chevronUpComponent:d,styles:{pillButton:{margin:"0px",padding:"0px",color:"#526eff",cursor:"pointer",fontSize:"14px",verticalAlign:"middle",whiteSpace:"nowrap",display:"inline-flex",alignItems:"center",background:"white",border:"none",...null===(r=n.customStyles)||void 0===r?void 0:r.pill},citationTitle:{marginRight:"4px"},citationContent:{width:"100%",background:"transparent",minHeight:"10px",height:"fit-content",...null===(m=n.customStyles)||void 0===m?void 0:m.content}}})};export{i as StormeeCitationIcon,n as default};
|
|
2
2
|
//# sourceMappingURL=StormeeCitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import l,{memo as i,useState as n,useCallback as a,useEffect as s}from"react";import r from"./StormeeContent.module.css.js";import o from"./components/ProblemStatementCard.js";import{renderCitationAIConfidenceDisplay as d}from"../../../shared/CitationAIConfidenceDisplay.js";import{CircularProgress as c}from"@mui/material";import m from"../audio-citation/searchwaveform.js";import{formatTime as u}from"../audio-citation/SearchWaveFromWrapper.js";import{useRequirementAI as p}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import{AudioPlayProvider as h}from"../audio-citation/store/autoplay.wavefrom.js";const v=i(({brainStormIcon:i="https://storymod-assests.pages.dev/brainstorm-cropped.gif",themeColor:v,segments:y,gsUtilPath:g,contentName:f,content:N,keywords:S,relevanceScore:T,highlighted_content:C,customStyles:x})=>{var I,k,w,P;const[R,U]=n(0),[j,A]=n(0),{queryClient:b,useGetSignedUrlQuery:E,useGetSignedUrlMutation:W,useExtractAudioPeaksMutation:_,useExtractAudioPeaksQuery:L,useGetVideoSignedUrlQuery:M,useGetVideoSignedUrlMutation:Q}=p().apiCachingConfig,D=["getSignedUrl",g],G=["extractAudioPeaks",g],{data:q}=E(g,D),{data:V}=L(g,G),{mutate:z,isPending:H}=W(g),{mutate:O,isPending:F}=_(g),B=a(e=>{U(e)},[]);s(()=>{g&&(b.getQueryData(D)||null==z||z({gsUtilPath:g}),b.getQueryData(G)||null==O||O({gsUtilPath:g}))},[g]);const J=(e,i,n)=>{if("string"==typeof e)return t("img",{loading:"lazy",alt:"brain_storm_icon",src:e,className:i,style:n});if(l.isValidElement(e)){const t=e,i={...n,...t.props.style};return l.cloneElement(t,{style:i})}return t("span",{style:n,children:e})};return e("div",{className:r.container,style:null==x?void 0:x.container,children:[e("div",{className:r.header,style:null==x?void 0:x.header,children:[e("div",{className:r.headerLeft,style:null==x?void 0:x.headerLeft,children:[J(i,r.headerIcon,null!==(I=null==x?void 0:x.bsIcon)&&void 0!==I?I:null==x?void 0:x.headerIcon),t("h2",{className:r.headerTitle,style:null==x?void 0:x.headerTitle,children:"Stormee.ai"})]}),d(T,!0,null==x?void 0:x.confidenceDisplay)]}),e("div",{className:r.contentRow,style:null==x?void 0:x.contentRow,children:[e("div",{className:r.leftColumn,style:null==x?void 0:x.leftColumn,children:[H||F?e("div",{className:r.loader,style:null==x?void 0:x.loader,children:[t(c,{size:48,thickness:4}),t("span",{className:r.loaderText,style:null==x?void 0:x.loaderText,children:"Loading audio peaks..."})]}):q&&V&&t(h,{children:t(m,{colorCode:v,audio_file_name:q,matchedSegments:y,peaks:null!==(k=V.peaks)&&void 0!==k?k:[],duration:null!==(w=V.duration)&&void 0!==w?w:0,chevronIndex:j,setChevronIndex:A,onTimeUpdate:B,currentAudioTime:R,showOnlyMatched:!0,customStyles:null==x?void 0:x.waveform})}),e("div",{className:r.transcriptCard,style:null==x?void 0:x.transcriptCard,children:[e("div",{className:r.transcriptHeader,style:null==x?void 0:x.transcriptHeader,children:[J(i,r.transcriptIcon,null!==(P=null==x?void 0:x.bsIcon)&&void 0!==P?P:null==x?void 0:x.transcriptIcon),t("div",{className:r.transcriptTitle,style:null==x?void 0:x.transcriptTitle,children:"STORMEE'S TRANSCRIPT"})]}),t("div",{className:r.segmentList,style:null==x?void 0:x.segmentList,children:y.map((l,i)=>t("div",{className:r.segment,style:null==x?void 0:x.segment,children:e("div",{className:r.segmentRow,style:null==x?void 0:x.segmentRow,children:[t("span",{className:r.timestamp,style:null==x?void 0:x.timestamp,children:u(l.start_time)}),t("div",{className:r.segmentTextWrapper,style:null==x?void 0:x.segmentTextWrapper,children:t("p",{className:r.segmentText,style:null==x?void 0:x.segmentText,children:l.text})})]})},i))})]})]}),t(o,{title:f,content:N,highlight:null!=C?C:"",keyTakeaway:S,brainStormIcon:i,customStyles:x})]})]})});export{v as default};
|
|
2
2
|
//# sourceMappingURL=StormeeContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as
|
|
1
|
+
import{jsx as t,jsxs as e}from"react/jsx-runtime";import n from"react";import s from"./GradientButton.module.css.js";const o=({brainStormIcon:o="https://storymod-assests.pages.dev/brainstorm-cropped.gif",customStyles:l})=>t("button",{className:s.button,style:null==l?void 0:l.gradientButton,children:e("span",{className:s.content,style:null==l?void 0:l.gradientContent,children:[(()=>{if("string"==typeof o)return t("img",{loading:"lazy",src:o,className:s.icon,alt:"Brainstorm icon",style:null==l?void 0:l.bsIcon});if(n.isValidElement(o)){const t=o;return n.cloneElement(t,{style:{...null==l?void 0:l.bsIcon,...t.props.style}})}return t("span",{style:null==l?void 0:l.bsIcon,children:o})})(),t("span",{className:s.label,style:null==l?void 0:l.gradientButtonLabel,children:"Extracted from Key Takeaways"})]})});export{o as default};
|
|
2
2
|
//# sourceMappingURL=GradientButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as l}from"react/jsx-runtime";import a from"react-markdown";import t from"./GradientButton.js";import r from"./ProblemStatementCard.module.css.js";const n=({title:n,content:o,highlight:s,keyTakeaway:i,className:c,brainStormIcon:m,customStyles:d})=>(console.log("content:::",o),e("div",{className:`${r.card} ${null!=c?c:""}`,style:null==d?void 0:d.problemCard,children:[e("div",{className:r.header,style:null==d?void 0:d.problemHeader,children:[l(t,{customStyles:d,brainStormIcon:m}),l("div",{className:r.titleWrapper,style:null==d?void 0:d.problemTitleWrapper,children:l("h2",{className:r.title,style:null==d?void 0:d.problemTitle,children:n})})]}),l("div",{className:r.contentWrapper,style:null==d?void 0:d.contentWrapper,children:l("p",{className:r.content,style:null==d?void 0:d.problemContent,children:l(a,{className:r.markdown,children:o.replace(/\\n/g,"\n")})})}),l("div",{className:r.takeawayContainer,style:null==d?void 0:d.takeawayContainer,children:i.map((e,a)=>l("span",{className:`${r.takeaway} \n ${0===a?r.firstTakeaway:""}`,style:null==d?void 0:d.takeawayPill,children:e},`${a}-${e}`))})]}));export{n as default};
|
|
2
2
|
//# sourceMappingURL=ProblemStatementCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";const e=({height:e=16,width:o=16})=>t("svg",{width:o,height:e,viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:t("path",{d:"M3 0.5H2.9C2.05992 0.5 1.63988 0.5 1.31901 0.66349C1.03677 0.8073 0.8073 1.03677 0.66349 1.31901C0.5 1.63988 0.5 2.05992 0.5 2.9V3M3 9.5H2.9C2.05992 9.5 1.63988 9.5 1.31901 9.33651C1.03677 9.1927 0.8073 8.96323 0.66349 8.68099C0.5 8.36012 0.5 7.94008 0.5 7.1V7M9.5 3V2.9C9.5 2.05992 9.5 1.63988 9.33651 1.31901C9.1927 1.03677 8.96323 0.8073 8.68099 0.66349C8.36012 0.5 7.94008 0.5 7.1 0.5H7M9.5 7V7.1C9.5 7.94008 9.5 8.36012 9.33651 8.68099C9.1927 8.96323 8.96323 9.1927 8.68099 9.33651C8.36012 9.5 7.94008 9.5 7.1 9.5H7",stroke:"#141414","stroke-linecap":"round","stroke-linejoin":"round"})});export{e as default};
|
|
2
2
|
//# sourceMappingURL=FullScreenIcon.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Dialog as s}from"@mui/material";import o from"./ImagePreviewDialog.module.css.js";const i=({open:i,handleClose:a,CloseIcon:c,src:r,styles:n})=>e(s,{maxWidth:"lg",onClose:a,open:i,children:l("div",{className:o.container,style:null==n?void 0:n.container,children:[l("div",{className:o.header,style:null==n?void 0:n.header,children:[e("h1",{className:o.title,style:null==n?void 0:n.title,children:"Image Preview"}),e("div",{className:o.closeIconWrapper,style:null==n?void 0:n.closeIconWrapper,onClick:a,children:e(c,{className:o.closeIcon,style:null==n?void 0:n.closeIcon})})]}),e("img",{src:r,alt:"Preview",className:o.image,style:null==n?void 0:n.image})]})});export{i as default};
|
|
2
2
|
//# sourceMappingURL=ImagePreviewDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import r from"./WebCitationIcon.js";import t from"./Webcitation.module.css.js";const n=({label:n,url:l,customStyles:i,customIcons:s})=>{const a=(null==s?void 0:s.webCitationIcon)||e(r,{});return o("a",{className:t.link,style:null==i?void 0:i.headerLink,target:"_blank",rel:"noopener noreferrer",href:l,children:[n,a]})};export{n as default};
|
|
2
2
|
//# sourceMappingURL=WebCitation.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as C,jsxs as i}from"react/jsx-runtime";const
|
|
1
|
+
import{jsx as C,jsxs as i}from"react/jsx-runtime";const l=()=>C("div",{children:i("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[i("g",{clipPath:"url(#clip0_3025_73390)",children:[C("path",{d:"M13.82 14.0039H9.66C9.56 13.3439 9.5 12.6839 9.5 12.0039C9.5 11.3239 9.56 10.6539 9.66 10.0039H14.34C14.43 10.6539 14.5 11.3239 14.5 12.0039C14.5 12.5039 14.46 13.0039 14.4 13.4639C15 12.9639 15.72 12.5739 16.5 12.3239V12.0039C16.5 11.3239 16.44 10.6639 16.36 10.0039H19.74C19.9 10.6439 20 11.3139 20 12.0039V12.1839C20.7 12.3539 21.35 12.6339 21.95 13.0039C22 12.6839 22 12.3439 22 12.0039C22 6.50391 17.5 2.00391 12 2.00391C6.47 2.00391 2 6.50391 2 12.0039C2 17.5039 6.5 22.0039 12 22.0039C12.34 22.0039 12.68 22.0039 13 21.9539C12.59 21.2939 12.29 20.5539 12.13 19.7539C12.09 19.8239 12.05 19.8939 12 19.9639C11.17 18.7639 10.5 17.4339 10.09 16.0039H12.5C12.81 15.2539 13.26 14.5839 13.82 14.0039ZM18.92 8.00391H15.97C15.6565 6.76552 15.1931 5.57001 14.59 4.44391C16.43 5.07391 17.96 6.34391 18.92 8.00391ZM12 4.03391C12.83 5.23391 13.5 6.57391 13.91 8.00391H10.09C10.5 6.57391 11.17 5.23391 12 4.03391ZM4.26 14.0039C4.1 13.3639 4 12.6939 4 12.0039C4 11.3139 4.1 10.6439 4.26 10.0039H7.64C7.56 10.6639 7.5 11.3239 7.5 12.0039C7.5 12.6839 7.56 13.3439 7.64 14.0039H4.26ZM5.08 16.0039H8C8.35 17.2539 8.8 18.4539 9.4 19.5639C7.57827 18.9362 6.04429 17.6721 5.08 16.0039ZM8 8.00391H5.08C6.03864 6.33094 7.57466 5.06515 9.4 4.44391C8.8 5.55391 8.35 6.75391 8 8.00391Z",fill:"#5C75F4"}),C("path",{d:"M16.01 14.9539C14.8502 14.9539 13.91 15.8941 13.91 17.0539C13.9121 18.1852 14.8099 19.1115 15.9405 19.1489L14.61 21.9539H16.01L17.9074 17.9539C18.0416 17.6709 18.1026 17.365 18.11 17.0539C18.11 15.8941 17.1698 14.9539 16.01 14.9539ZM21.61 14.9539C20.4502 14.9539 19.51 15.8941 19.51 17.0539C19.5121 18.1852 20.4099 19.1115 21.5405 19.1489L20.21 21.9539H21.61L23.5074 17.9539C23.6416 17.6709 23.7026 17.365 23.71 17.0539C23.71 15.8941 22.7698 14.9539 21.61 14.9539Z",fill:"#5C75F4"})]}),C("defs",{children:C("clipPath",{id:"clip0_3025_73390",children:C("rect",{width:"24",height:"24",fill:"white"})})})]})});export{l as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationIcon.js.map
|
package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",
|
|
1
|
+
import{jsx as t,jsxs as o}from"react/jsx-runtime";import e from"./WebCitationIcon.js";import n from"./WebCitation.js";import i from"../../../../CitationRenderer/CitationRenderer.js";const r=({label:r,url:l,customStyles:s,customIcons:a})=>{const c=(null==a?void 0:a.webCitationIcon)||t(e,{});return t(i,{inLineCitation:!0,citationTitle:r,chevronDownComponent:c,chevronUpComponent:c,citationComponent:o("div",{className:"p-4 border rounded-lg bg-white mt-2",style:null==s?void 0:s.content,children:[t("p",{className:"text-sm text-gray-600 mb-2",style:null==s?void 0:s.footerText,children:"Source Link:"}),t(n,{label:r,url:l,customStyles:s,customIcons:a})]}),styles:{pillButton:{margin:"0px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px",...null==s?void 0:s.pill}}})};export{r as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationRenderer.js.map
|
package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{CircularProgress as i}from"@mui/material";import{SquareArrowOutUpRight as o}from"lucide-react";import{useState as t,useEffect as r}from"react";import s from"./WebCitationWithImageContent.module.css.js";import{useRequirementAI as n}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./ImagePreviewDialog.js";import d from"./FullScreenIcon.js";const c=c=>{var m,u,v,g,h,y,p,f,S,k,L,I,N,P,C;const{queryClient:U,useGetSignedUrlQuery:b,useGetSignedUrlMutation:F}=n().apiCachingConfig,W=["getSignedUrl",c.gsUtilPath],{data:j}=b(c.gsUtilPath,W),{mutate:w,isPending:x}=F(c.gsUtilPath),[D,q]=t(!1),R=(null===(m=c.customIcons)||void 0===m?void 0:m.FullScreenIcon)||e(d,{});return r(()=>{if(!c.gsUtilPath)return void console.error("error","Error","Please provide valid gsUtilPath.");U.getQueryData(W)||x||w({gsUtilPath:c.gsUtilPath})},[c.gsUtilPath,U,W,w,x]),l("div",{className:s.container,style:null===(u=c.customStyles)||void 0===u?void 0:u.content,children:[e("div",{className:s.header,style:null===(v=c.customStyles)||void 0===v?void 0:v.header,children:e("div",{className:s.headerLeft,style:null===(g=c.customStyles)||void 0===g?void 0:g.headerLeft,children:e("a",{className:s.headerLink,style:null===(h=c.customStyles)||void 0===h?void 0:h.headerLink,target:"_blank",rel:"noopener noreferrer",href:c.url,children:c.label})})}),x?l("div",{className:s.loadingContainer,style:null===(y=c.customStyles)||void 0===y?void 0:y.loadingContainer,children:[e(i,{size:48,thickness:4,sx:{color:"#4F85FF","& .MuiCircularProgress-circle":{strokeLinecap:"round"}}}),e("span",{className:s.loadingLabel,style:null===(p=c.customStyles)||void 0===p?void 0:p.loadingLabel,children:"Loading Image..."})]}):j&&l("div",{className:s.imageWrapper,style:null===(f=c.customStyles)||void 0===f?void 0:f.imageWrapper,children:[e("img",{src:j,alt:"images",className:s.image,style:null===(S=c.customStyles)||void 0===S?void 0:S.image,onError:e=>{e.target.src="path/to/fallback-image.png",console.error("Failed to load image from signed URL")}}),e("div",{className:s.fullscreenButton,style:null===(k=c.customStyles)||void 0===k?void 0:k.fullscreenButton,onClick:()=>q(!0),children:R}),e(a,{open:D,handleClose:()=>q(!1),src:j,CloseIcon:null==c?void 0:c.PreviewDialogCloseIcon,styles:null===(L=c.customStyles)||void 0===L?void 0:L.previewDialog})]}),e("div",{className:s.footer,style:null===(I=c.customStyles)||void 0===I?void 0:I.footer,children:l("div",{className:s.footerInner,style:null===(N=c.customStyles)||void 0===N?void 0:N.footerText,children:[e("span",{children:"Open link in new tab to read in detail"}),l("a",{className:s.visitLink,style:null===(P=c.customStyles)||void 0===P?void 0:P.footerLink,href:c.url,target:"_blank",rel:"noopener noreferrer",children:[e("span",{children:"Visit Link"}),e(o,{className:s.visitLinkIcon,style:null===(C=c.customStyles)||void 0===C?void 0:C.visitLinkIcon})]})]})})]})};export{c as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import o from"./WebCitationWithImageContent.js";import i from"./WebCitationIcon.js";import n from"../../../../CitationRenderer/CitationRenderer.js";const e=({title:e,citation:a,customStyles:r,customIcons:l})=>{var c,s,d,u;const p=(null==l?void 0:l.webCitationIcon)||t(i,{});return t(n,{inLineCitation:!0,citationTitle:e,citationId:`web-citation-${a.citation_number}`,chevronDownComponent:p,chevronUpComponent:p,citationComponent:t(o,{gsUtilPath:(null===(c=a.customMetadata)||void 0===c?void 0:c.screenshot_url)||(null===(s=a.customMetadata)||void 0===s?void 0:s.gs_util_url)||"",relevanceScore:null===(d=a.customMetadata)||void 0===d?void 0:d.relevance_score,url:(null===(u=a.customMetadata)||void 0===u?void 0:u.link)||"",label:e,PreviewDialogCloseIcon:()=>t("span",{children:"X"}),customStyles:r,customIcons:l}),styles:{pillButton:{margin:"0px 10px",padding:"0px 4px",fontSize:"14px",color:"#2546F0",cursor:"pointer",verticalAlign:"middle",display:"inline-flex",alignItems:"center",background:"#E9ECFD",border:"1px solid #D4DBFF",borderRadius:"2px",gap:"4px",...null==r?void 0:r.pill},citationContent:{width:"100%",background:"transparent",marginTop:"10px",...null==r?void 0:r.content}}})};export{e as default};
|
|
2
2
|
//# sourceMappingURL=WebCitationWithImageRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useState as l,useEffect as n}from"react";import{Pencil as o,Save as r,X as a}from"lucide-react";import{preprocessUserStoryForEdit as d,formatMarkdown as s,postprocessUserStoryAfterEdit as u}from"../../utils/user-story.utils.js";import v from"../userstory-with-citation/UserStoryWithCitation.js";import c from"./PartialRequirementContent.module.css.js";import{Tooltip as m}from"@mui/material";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";import y from"../RichTextEditor/RichTextEditor.js";const C=({loadingPartialRequirements:C,localUserStory:h,setLocalUserStory:S,onCraFlowDiffAgentAction:R,disableEditing:g,isCraflow:q=!0,onCraAccept:f,onCraReject:P,CDNeededInChip:w})=>{var B,N,b,D,A,j,k,E,U,x,W,I,T,z,F,L,H,M;const[V,G]=l(!1),[J,K]=l(""),{customStyles:O,segmentComponentConfig:Q}=p();n(()=>{g&&G(!1)},[g]),n(()=>{var e;K(null===(e=null==h?void 0:h[0])||void 0===e?void 0:e.value)},[h]);if(C)return e("div",{className:c.skeletonWrapper,style:null===(B=null==O?void 0:O.PartialRequirementContentStyles)||void 0===B?void 0:B.skeletonWrapper,children:[1,2,3,4,5].map(t=>{var i;return e("div",{className:c.skeletonLine,style:null===(i=null==O?void 0:O.PartialRequirementContentStyles)||void 0===i?void 0:i.skeletonLine},t)})});const X=!J||""===J.trim();return t("div",{className:c.wrapper,style:null===(N=null==O?void 0:O.PartialRequirementContentStyles)||void 0===N?void 0:N.wrapper,children:[e("div",{className:c.actionBar,style:null===(b=null==O?void 0:O.PartialRequirementContentStyles)||void 0===b?void 0:b.actionBar,children:V?t(i,{children:[t("span",{className:c.editingBadge,style:null===(k=null==O?void 0:O.PartialRequirementContentStyles)||void 0===k?void 0:k.editingBadge,children:[e("span",{className:c.editingDot,style:null===(E=null==O?void 0:O.PartialRequirementContentStyles)||void 0===E?void 0:E.editingDot}),"Editing"]}),e("div",{className:c.btnDivider,style:null===(U=null==O?void 0:O.PartialRequirementContentStyles)||void 0===U?void 0:U.btnDivider}),e(m,{title:X?"This field cannot be empty":"Save changes",slotProps:{tooltip:{sx:{...null===(x=null==O?void 0:O.PartialRequirementContentStyles)||void 0===x?void 0:x.headerTooltip}}},children:e("span",{children:e("button",{className:c.saveBtn,style:{...null===(W=null==O?void 0:O.PartialRequirementContentStyles)||void 0===W?void 0:W.actionBtn,...null===(I=null==O?void 0:O.PartialRequirementContentStyles)||void 0===I?void 0:I.saveBtn,opacity:X?.5:1,cursor:X?"not-allowed":"pointer"},onClick:()=>{X||(S(e=>{const t={...e[0],value:u(J)};return null==R||R("accept",[t]),[t]}),G(!1))},disabled:X,children:e(r,{size:16})})})}),e("button",{className:c.cancelBtn,style:{...null===(T=null==O?void 0:O.PartialRequirementContentStyles)||void 0===T?void 0:T.actionBtn,...null===(z=null==O?void 0:O.PartialRequirementContentStyles)||void 0===z?void 0:z.cancelBtn},onClick:()=>{var e;K(null===(e=null==h?void 0:h[0])||void 0===e?void 0:e.value),G(!1)},title:"Discard changes","aria-label":"Discard changes",children:e(a,{size:16})})]}):e(m,{title:g?"Editing is disabled":"Edit",slotProps:{tooltip:{sx:{...null===(D=null==O?void 0:O.PartialRequirementContentStyles)||void 0===D?void 0:D.headerTooltip}}},children:e("span",{children:e("button",{className:c.editBtn,style:{...null===(A=null==O?void 0:O.PartialRequirementContentStyles)||void 0===A?void 0:A.actionBtn,...null===(j=null==O?void 0:O.PartialRequirementContentStyles)||void 0===j?void 0:j.editBtn,opacity:g?.5:1,cursor:g?"not-allowed":"pointer"},onClick:()=>{g||G(!0)},disabled:g,"aria-label":"Edit requirement",children:e(o,{size:16})})})})}),e("div",V?{className:c.editorContainer,style:null===(F=null==O?void 0:O.PartialRequirementContentStyles)||void 0===F?void 0:F.editorContainer,children:e(y,{minHeight:"100%",height:"100%",type:"string",value:d(s((null===(L=null==h?void 0:h[0])||void 0===L?void 0:L.value)||"")||""),handleUpdateState:(e,t)=>{K(t)},doNotShowBorderInViewMode:!1,mode:"edit"})}:{className:c.viewContainer,style:null===(H=null==O?void 0:O.PartialRequirementContentStyles)||void 0===H?void 0:H.viewContainer,children:e(v,{message:s((null===(M=null==h?void 0:h[0])||void 0===M?void 0:M.value)||""),craFlowConfig:{isCraflow:!0,craUserStory:h,setCraUserStory:S,onCraFlowDiffAgentAction:R,displayActionButtons:!V},isCraflow:q,onCraAccept:f,onCraReject:P,customStyles:null==O?void 0:O.UserStoryWithCitationCustomStyles,CDNeededInChip:w})})]})};export{C as PartialRequirementContent,C as default};
|
|
2
2
|
//# sourceMappingURL=PartialRequirementContent.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as i,Fragment as
|
|
1
|
+
import{jsx as e,jsxs as i,Fragment as o}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronUp as n,ChevronDown as r,Check as t,SquareArrowOutUpRight as a,Loader2 as s}from"lucide-react";import d from"./CustomChatCrRedirection.module.css.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import u from"../../icons/CognitiveDecision.js";import{Tooltip as p}from"@mui/material";function m({isDefaultOpen:m,processItemId:v,isCompleted:g,mode:h,msg:y,type:f,id:C,aiReason:x,text:b,headerText:D,decisionStrength:N,statusUi:T,panelRef:I,onHandleSend:S,onRedirectClick:k,gapType:R,isGenerating:j=!1,customStyles:B,customIcons:W,cognitiveDecisionHeaders:P}){const[H,$]=l(m),A=(null==W?void 0:W.highConfidence)||e(u,{}),O=()=>{"cra"===h?null==S||S(`Discuss ambiguities on ${b}`,C):null==S||S(`Deep Dive into ${R} ${D}: ${b}`,C)};return i("div",{className:[d.outerWrapper,j?d.outerWrapperDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionOuterWrapper,...j?null==B?void 0:B.redirectionOuterWrapperDisabled:{}},children:[i("div",{className:[d.card,j?d.cardDisabled:d.cardInteractive].join(" "),style:{...null==B?void 0:B.redirectionCard,...j?null==B?void 0:B.redirectionCardDisabled:null==B?void 0:B.redirectionCardInteractive},children:[i("div",{className:d.leftSide,style:null==B?void 0:B.redirectionLeftSide,children:[e(p,{title:D+" "+b,placement:"top",slotProps:{tooltip:{sx:{...null==B?void 0:B.headerTooltip}}},children:i("span",{className:d.textBlock,style:null==B?void 0:B.redirectionTextBlock,children:[D&&i("span",{className:d.headerText,style:null==B?void 0:B.redirectionHeaderText,children:[D,b?" ":""]}),b]})}),i("span",{onClick:e=>{e.stopPropagation(),j||$(!H)},className:[d.reasoningToggle,j?d.reasoningToggleDisabled:d.reasoningToggleActive].join(" "),style:{...null==B?void 0:B.reasoningToggle,...j?null==B?void 0:B.reasoningToggleDisabled:null==B?void 0:B.reasoningToggleActive},children:[A,e(H?n:r,{className:d.chevronIcon,style:null==B?void 0:B.chevronIcon})]})]}),g?e("div",{className:d.completeTickWrapper,style:null==B?void 0:B.completeTickWrapper,children:e(t,{color:(null==B?void 0:B.checkColor)||"green"})}):i(o,{children:["risk-gap"===h&&i("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:[e("button",{disabled:j,className:[d.fixButton,j?d.fixButtonDisabled:""].join(" "),style:{...null==B?void 0:B.redirectionFixButton,...j?null==B?void 0:B.fixButtonDisabled:{}},onClick:e=>{e.stopPropagation(),j||O()},children:"Fix"}),e(a,{onClick:j?void 0:()=>{j||null==k||k({type:f,id:C,aiReason:x,msg:y,meta:{headerText:D,decisionStrength:N,text:b}})},size:18,className:[j?d.redirectIconDisabled:d.redirectIcon].join(" "),style:{...j?null==B?void 0:B.redirectIconDisabled:null==B?void 0:B.redirectIcon}})]}),"cra"===h&&!m&&e("div",{className:d.rightSide,style:null==B?void 0:B.redirectionRightSide,children:v===C?e("div",{className:d.loaderWrapper,style:null==B?void 0:B.loaderWrapper,children:e(s,{size:16,className:d.loaderIcon,color:"grey",style:{animation:"spin 1s linear infinite",...null==B?void 0:B.loaderIcon}})}):e("button",{className:[d.clarifyButton].join(" "),style:{color:j?"grey":"",...null==B?void 0:B.redirectionClarifyButton},disabled:j,onClick:e=>{e.stopPropagation(),O()},children:"Clarify"})})]})]}),H&&e(c,{label:"cra"===h?"Clarify":"Select this option",aiReason:{id:"1",reason:(null==x?void 0:x.Reasoning)||"",gap:(null==x?void 0:x.Gap)||"",relevance_score:Number(null==x?void 0:x.Confidence_score),explanation:(null==x?void 0:x.explanation)||""},onSelectProceed:O,customStyles:null==B?void 0:B.aiReasoningStyles,customIcons:W,cognitiveDecisionHeaders:P})]})}export{m as CustomChatCrRedirection};
|
|
2
2
|
//# sourceMappingURL=CustomChatCrRedirection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as o,useMemo as r,useEffect as i,Children as n,isValidElement as a}from"react";import{capitalize as l}from"lodash";import{GapFilterContentWrapper as d}from"./GapFilterContentWrapper.js";import{GapFilterItem as c}from"./GapFilterItem.js";import{CustomChatCrRedirection as s}from"./CustomChatCrRedirection.js";import{SirenIcon as g,WarningIcon as u,SupportIcon as p}from"./gapFilterSvgs.js";import m from"./GapFilterBlock.module.css.js";import"react-markdown";import"rehype-raw";import"../RequirementAIWrapper/RequirementAIWrapper.js";const C=["critical","recommendation","warning"];function b(e){return(null==e?void 0:e.trim())?e.includes("%")?e:e.replace(/([0-9]+(?:\.[0-9]+)?)/g,"$1%"):""}function f(e){return n.toArray(e).filter(e=>a(e)).filter(e=>{var t;return"gapfilteritem"===e.type||"crredirection"===e.type||"function"==typeof e.type&&"crredirection"===e.type.name||(null===(t=e.key)||void 0===t?void 0:t.includes("crredirection"))}).map(e=>{var t,o;const{children:r,...i}=e.props,n={};Object.keys(i).forEach(e=>{e.startsWith("data-")||(n[e]=i[e])});const a=function(e){const t={};return Object.keys(e).forEach(o=>{o.startsWith("data-")&&(t[o.replace(/^data-/,"")]=e[o])}),t}(i),l=i["decision-strength"],d=i["data-is-completed"];return{text:r,headerText:i.headertext,tags:i.tags,dataAttrs:a,decisionStrength:l,attrs:n,type:"gapfilteritem"===e.type?"gapfilteritem":"crredirection",score:i.score,isCompleted:d,pendingCount:i.pendingcount,question:i.question,components:i.components,showFix:null!==(t=i.showfix)&&void 0!==t&&t,showRedirect:null!==(o=i.showredirect)&&void 0!==o&&o}})}const y={critical:{labelColor:"text-gray-900",badgeBg:"bg-[#FEE4E2]",badgeText:"text-[#B42318]",iconColor:"text-[#D92D20]"},warning:{labelColor:"text-gray-900",badgeBg:"bg-[#FEF0C7]",badgeText:"text-[#B54708]",iconColor:"text-[#DC6803]"},recommendation:{labelColor:"text-gray-900",badgeBg:"bg-[#D1FADF]",badgeText:"text-[#027A48]",iconColor:"text-[#039855]"}},h=({isDefaultOpen:n,processItemId:a,mode:h,node:v,children:x,type:S,supportedmodes:k="","decision-strength":I="",pendingdata:R="",isGeneratingGap:A=!1,selectedGapItemId:F="",onItemSelect:B,onHandleSend:T,onModeAction:w,msg:G,panelRef:D,getAccordionState:N,setAccordionState:j,registerGapFilterBlockCount:E,getShowGapReviewButtonType:W,customStyles:$,customIcons:H,cognitiveDecisionHeaders:O,onRedirectClick:U})=>{const q=S,z=b(I),[L,M]=o(()=>{var e;const t=null!==(e=null==N?void 0:N(q))&&void 0!==e?e:"";return"true"!==n||t?t:q}),_=e=>{M(e),null==j||j(q,e)},J=f(x),K=r(()=>J.reduce((e,t)=>{var o,r,i;const n=null!==(o=t.tags)&&void 0!==o?o:"Uncategorized",a=null!==(i=null===(r=t.dataAttrs)||void 0===r?void 0:r.categoryid)&&void 0!==i?i:"1";let l=e.find(e=>e.categoryName===n);return l||(l={categoryName:n,categoryId:a,type:t.type,items:[]},e.push(l)),l.items.push(t),e},[]),[J]),P={critical:{labelColor:"#d92d20",badgeBackgroundColor:"#fee4e2",badgeTextColor:"#b42318",icon:e(g,{}),label:"risk-gap"===h?"Critical":"Must Clarify",decisionStrength:"< 70%"},warning:{labelColor:"#dc6803",badgeBackgroundColor:"#fef0c7",badgeTextColor:"#b54708",icon:e(u,{}),label:"risk-gap"===h?"Warning":"Should Clarify",decisionStrength:"70–90%"},recommendation:{labelColor:"#039855",badgeBackgroundColor:"#d1fadf",badgeTextColor:"#027a48",icon:e(p,{}),label:"risk-gap"===h?"Just a Suggestion":"Nice to Clarify",decisionStrength:"> 90%"},default:{labelColor:"#4b5563",badgeBackgroundColor:"#f3f4f6",badgeTextColor:"#4b5563",icon:e(p,{}),label:"",decisionStrength:""}},Q=r(()=>{return e=q,C.includes(e)?{labelColor:P[q].labelColor,badgeBackgroundColor:P[q].badgeBackgroundColor,badgeTextColor:P[q].badgeTextColor,label:P[q].label,decisionStrength:z||P[q].decisionStrength}:{labelColor:P.default.labelColor,badgeBackgroundColor:P.default.badgeBackgroundColor,badgeTextColor:P.default.badgeTextColor,label:l(q),decisionStrength:z||""};var e},[q,z]);i(()=>{null==E||E(q,J.length)},[q,J.length,E]);const V=(e,t,o={})=>{if(A)return;const r=`${K[e].categoryId}-${t}`;null==B||B(r);const i={...K[e].items[t].dataAttrs,...o};null==w||w(k,i)};return W&&W(),e(d,{mode:h,type:q,config:Q,count:J.length,handleReviewClick:()=>{J.length>0&&_(q)},openAccordion:L,onAccordionChange:e=>{_(L===e?"":e)},shouldShowReviewButton:!1,pendingData:R,customStyles:$,children:K.map((o,r)=>t("div",{className:m.categoryGroup,style:null==$?void 0:$.categoryGroup,children:["gapfilteritem"===o.type&&"Uncategorized"!==o.categoryName&&e("p",{className:m.categoryLabel,style:null==$?void 0:$.categoryLabel,children:o.categoryName}),o.items.map((t,i)=>{var n,l,d,g;const u=t.attrs||{},p=null===(n=t.dataAttrs)||void 0===n?void 0:n["cognitive-reasoning"],C=u.id||(null===(l=t.dataAttrs)||void 0===l?void 0:l.id)||"",b="I"===C[0]?"UI_REF":"CHAT_REF",f=null===(d=null==G?void 0:G.contextAwareAgentReasoning)||void 0===d?void 0:d[p],v=t.isCompleted,x="true"===u.isDefaultOpen||"true"===u.isdefaultopen;return"gapfilteritem"===t.type?e("div",{className:[m.gapFilterItemWrapper,"Uncategorized"!==o.categoryName?m.gapFilterItemWrapperIndented:""].join(" "),style:null==$?void 0:$.blockContainer,children:e(c,{isDefaultOpen:x,isCompleted:v,mode:h,index:i,isSelected:F===`${o.categoryId}-${i}`,onClick:()=>V(r,i),onFixClick:()=>V(r,i,{triggerFrom:"fix"}),onRedirect:()=>V(r,i,{triggerFrom:"redirect"}),item:t,isGenerating:A,aiReason:f,panelRef:null!=D?D:{current:null},id:p,customStyles:$,customIcons:H,cognitiveDecisionHeaders:O})},i):e("div",{className:m.crRedirectionGroup,style:null==$?void 0:$.crRedirectionGroup,children:e("div",{className:m.crRedirectionInner,style:null==$?void 0:$.crRedirectionInner,children:e(s,{isDefaultOpen:x,processItemId:a,isCompleted:v,mode:h,msg:G,type:b,text:t.text,headerText:t.headerText,decisionStrength:t.decisionStrength,id:C,gapType:q,onHandleSend:T,isGenerating:A,aiReason:f,onRedirectClick:U,statusUi:null!==(g=y[q])&&void 0!==g?g:y.recommendation,panelRef:null!=D?D:{current:null},customStyles:$,customIcons:H,cognitiveDecisionHeaders:O})})},i)})]},`${o.categoryName}-${r}`))})};export{h as GapFilterBlock,b as normalizeDecisionStrength};
|
|
2
2
|
//# sourceMappingURL=GapFilterBlock.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as
|
|
1
|
+
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{Accordion as r,AccordionItem as i,AccordionTrigger as l,AccordionContent as o}from"../../shared/Accordian.js";import{Sparkles as t}from"lucide-react";import c from"./GapFilterContentWrapper.module.css.js";const a=({mode:a,type:d,config:s,count:g,openAccordion:u,children:m,shouldShowReviewButton:h=!1,onAccordionChange:v,handleReviewClick:p,pendingData:y,customStyles:C})=>{const N=()=>{switch(d){case"critical":return null==C?void 0:C.triggerLabelCritical;case"warning":return null==C?void 0:C.triggerLabelWarning;case"recommendation":return null==C?void 0:C.triggerLabelRecommendation;default:return{}}};return e(r,{type:"single",collapsible:!0,className:c.accordion,value:u,onValueChange:e=>v(e),style:null==C?void 0:C.accordion,children:n(i,{value:d,className:c.accordionItem,style:null==C?void 0:C.accordionItem,children:[e(l,{chevronPosition:"end",className:c.accordionTrigger,hideChevron:h,style:null==C?void 0:C.accordionTrigger,children:n("div",{className:c.triggerInner,style:null==C?void 0:C.triggerInner,children:[n("div",{className:c.triggerLeft,style:null==C?void 0:C.triggerLeft,children:[n("p",{className:c.triggerLabel,style:{color:s.labelColor,...N()},children:[s.label,n("span",{className:c.triggerLabelCount,style:N(),children:["(",g,")"]})]}),y.length>0&&n("span",{className:c.triggerPending,style:null==C?void 0:C.triggerPending,children:["(",y,")"]})]}),"risk-gap"===a&&e("div",{className:c.triggerRight,style:null==C?void 0:C.triggerRight,children:n("p",{className:c.decisionStrengthBadge,style:{backgroundColor:s.badgeBackgroundColor,color:s.badgeTextColor,...(()=>{switch(d){case"critical":return null==C?void 0:C.decisionStrengthBadgeCritical;case"warning":return null==C?void 0:C.decisionStrengthBadgeWarning;case"recommendation":return null==C?void 0:C.decisionStrengthBadgeRecommendation;default:return{}}})()},children:[e(t,{className:c.decisionStrengthIcon,style:null==C?void 0:C.decisionStrengthIcon}),s.decisionStrength]})})]})}),e(o,{className:c.accordionContent,style:null==C?void 0:C.accordionContent,children:e("div",{className:c.accordionContentInner,style:null==C?void 0:C.accordionContentInner,children:m})})]})})};export{a as GapFilterContentWrapper};
|
|
2
2
|
//# sourceMappingURL=GapFilterContentWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as
|
|
1
|
+
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{SquareArrowOutUpRight as i,ChevronUp as t,ChevronDown as l}from"lucide-react";import{useState as n,useMemo as s}from"react";import{Tooltip as a}from"@mui/material";import c from"./GapFilterItem.module.css.js";import r from"../ai-reasoning/AiReasoningCitationContent.js";import d from"../../icons/CognitiveDecision.js";const m=e=>e>90?{borderColor:"#22c55e",backgroundColor:"#f0fdf4",color:"#16a34a",className:c.scoreBadgeHigh}:e>=70&&e<=90?{borderColor:"#eab308",backgroundColor:"#fefce8",color:"#a16207",className:c.scoreBadgeMedium}:{borderColor:"#ef4444",backgroundColor:"#fef2f2",color:"#dc2626",className:c.scoreBadgeLow},u=({isDefaultOpen:u,isCompleted:p,mode:v,index:g,isSelected:f,onClick:h,item:x,onFixClick:N,onRedirect:C,aiReason:R,panelRef:y,id:T,isGenerating:b=!1,customStyles:S,customIcons:w,cognitiveDecisionHeaders:B})=>{const[k,I]=n(u),D=(null==w?void 0:w.highConfidence)||e(d,{});s(()=>x.components?x.components.split("||"):[],[x.components]);const j=s(()=>x.score&&isNaN(parseInt(x.score))?0:x.score?parseInt(x.score):0,[x.score]),H=m(j);return e("div",{className:c.outerWrapper,onClick:h,style:null==S?void 0:S.itemOuterWrapper,children:o("div",{className:c.innerCard,style:null==S?void 0:S.itemInnerCard,children:[o("div",{className:c.contentBlock,style:null==S?void 0:S.contentBlock,children:[o("div",{className:c.topRow,style:null==S?void 0:S.itemTopRow,children:[e("div",{className:[c.questionText,f?c.questionTextSelected:c.questionTextDefault].join(" "),style:{...null==S?void 0:S.itemQuestionText,...f?null==S?void 0:S.itemQuestionTextSelected:null==S?void 0:S.itemQuestionTextDefault},children:e(a,{title:x.question||"",placement:"top",children:e("span",{className:c.questionSpan,style:null==S?void 0:S.itemQuestionSpan})})}),o("div",{className:c.actionsRow,style:null==S?void 0:S.itemActionsRow,children:[j>0&&e("div",{className:[c.scoreBadge,H.className].join(" "),style:{...null==S?void 0:S.itemScoreBadge,...j>90?null==S?void 0:S.itemScoreBadgeHigh:{},...j>=70&&j<=90?null==S?void 0:S.itemScoreBadgeMedium:{},...j<70?null==S?void 0:S.itemScoreBadgeLow:{}},children:`${j}%`}),x.showFix&&e("button",{className:c.fixButton,onClick:e=>{e.stopPropagation(),N()},style:null==S?void 0:S.itemFixButton,children:"Fix"}),x.showRedirect&&e(i,{color:"#3b82f6",size:14,className:c.redirectIcon,onClick:e=>{e.stopPropagation(),C()},style:null==S?void 0:S.itemRedirectIcon})]})]}),o("div",{className:[c.bottomRow,f?c.bottomRowSelected:c.bottomRowDefault].join(" "),style:f?{...null==S?void 0:S.itemBottomRow,...null==S?void 0:S.bottomRowSelected}:{...null==S?void 0:S.itemBottomRow,...null==S?void 0:S.bottomRowDefault},children:[o("span",{className:c.gapTextSpan,style:null==S?void 0:S.itemGapText,children:[(null==x?void 0:x.headerText)?e("span",{className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText,children:x.headerText}):o("span",{className:c.gapHeaderText,style:null==S?void 0:S.itemGapHeaderText,children:["Gap ",g+1,"."]})," ",x.text]}),T&&o("span",{onClick:e=>{e.stopPropagation(),b||I(!k)},className:[c.reasoningToggle,b?c.reasoningToggleDisabled:c.reasoningToggleActive].join(" "),style:null==S?void 0:S.itemReasoningToggle,children:[D,e(k?t:l,{className:c.chevronIcon,style:null==S?void 0:S.chevronIcon})]})]})]}),k&&e(r,{label:"cra"===v?"Clarify":"Select this option",aiReason:{id:"1",reason:R.Reasoning||"",gap:R.Gap||"",relevance_score:Number(R.Confidence_score),explanation:R.explanation||""},onSelectProceed:N,customStyles:null==S?void 0:S.aiReasoningStyles,customIcons:w,cognitiveDecisionHeaders:B})]})})};export{u as GapFilterItem,m as getScoreColorStyles};
|
|
2
2
|
//# sourceMappingURL=GapFilterItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as C,jsxs as i}from"react/jsx-runtime";const
|
|
1
|
+
import{jsx as C,jsxs as i}from"react/jsx-runtime";const h=({width:i=12,height:h=12})=>C("div",{children:C("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:h,viewBox:"0 0 12 12",fill:"none",children:C("path",{d:"M2.57129 9.58112H3.87643C4.0466 9.58112 4.21573 9.60137 4.38069 9.64187L5.75973 9.97698C6.05896 10.0499 6.37068 10.057 6.67302 9.99825L8.19778 9.7016C8.60056 9.62314 8.97108 9.43027 9.26146 9.1478L10.3402 8.0984C10.6483 7.79922 10.6483 7.31376 10.3402 7.01408C10.0629 6.74426 9.62365 6.71389 9.30985 6.9427L8.05259 7.85997C7.87253 7.99159 7.65344 8.06246 7.42811 8.06246H6.21404L6.98682 8.06243C7.42239 8.06243 7.77522 7.71921 7.77522 7.2955V7.14212C7.77522 6.79029 7.52907 6.48352 7.17833 6.39848L5.98559 6.10842C5.79148 6.06134 5.59269 6.03754 5.39286 6.03754C4.91045 6.03754 4.03724 6.43695 4.03724 6.43695L2.57129 7.04999M0.571289 6.83754L0.571289 9.73754C0.571289 10.0176 0.571289 10.1576 0.625786 10.2645C0.673722 10.3586 0.750213 10.4351 0.844294 10.483C0.951249 10.5375 1.09126 10.5375 1.37129 10.5375H1.77129C2.05131 10.5375 2.19133 10.5375 2.29828 10.483C2.39237 10.4351 2.46886 10.3586 2.51679 10.2645C2.57129 10.1576 2.57129 10.0176 2.57129 9.73754V6.83754C2.57129 6.55752 2.57129 6.41751 2.51679 6.31055C2.46886 6.21647 2.39237 6.13998 2.29828 6.09204C2.19133 6.03755 2.05132 6.03754 1.77129 6.03754H1.37129C1.09126 6.03754 0.95125 6.03754 0.844294 6.09204C0.750213 6.13998 0.673723 6.21647 0.625786 6.31055C0.571289 6.4175 0.571289 6.55752 0.571289 6.83754ZM8.16697 1.33367C7.86857 0.709244 7.18058 0.378438 6.51151 0.697732C5.84243 1.01703 5.55739 1.77424 5.83752 2.43896C6.01064 2.84977 6.50666 3.64755 6.86033 4.19706C6.99101 4.4001 7.05635 4.50162 7.15179 4.56101C7.23364 4.61195 7.33612 4.63941 7.43248 4.63622C7.54483 4.63251 7.65217 4.57726 7.86686 4.46676C8.44791 4.1677 9.27636 3.72482 9.6317 3.45561C10.2067 3.02 10.3491 2.21933 9.91862 1.61067C9.48816 1.002 8.73762 0.942105 8.16697 1.33367Z",stroke:"#15803D","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})})}),t=({width:h=12,height:t=12})=>C("div",{children:i("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:t,viewBox:"0 0 12 12",fill:"none",children:[C("g",{"clip-path":"url(#clip0_1100_58099)",children:C("path",{d:"M1.7278 9.80469C1.7278 10.0417 1.91932 10.2333 2.15638 10.2333H9.84388C10.0809 10.2333 10.2724 10.0417 10.2724 9.80469V6.68415C10.2724 4.32433 8.35995 2.41183 6.00013 2.41183C3.64031 2.41183 1.7278 4.32433 1.7278 6.68415V9.80469ZM2.69209 6.68415C2.69209 4.85737 4.17334 3.37612 6.00013 3.37612C7.82691 3.37612 9.30816 4.85737 9.30816 6.68415V9.26897H4.5537V6.97879C4.5537 6.90513 4.49343 6.84487 4.41977 6.84487H3.83048C3.75682 6.84487 3.69655 6.90513 3.69655 6.97879V9.26897H2.69209V6.68415ZM2.04789 3.30246L2.57825 2.7721C2.61977 2.73058 2.61977 2.66228 2.57825 2.62076L1.66888 1.71138C1.64874 1.69144 1.62155 1.68026 1.59321 1.68026C1.56487 1.68026 1.53767 1.69144 1.51754 1.71138L0.98718 2.24174C0.96724 2.26188 0.956055 2.28907 0.956055 2.31741C0.956055 2.34575 0.96724 2.37294 0.98718 2.39308L1.89655 3.30246C1.93807 3.34397 2.00504 3.34397 2.04789 3.30246ZM11.0158 2.24174L10.4854 1.71138C10.4653 1.69144 10.4381 1.68026 10.4097 1.68026C10.3814 1.68026 10.3542 1.69144 10.3341 1.71138L9.42468 2.62076C9.40474 2.6409 9.39355 2.66809 9.39355 2.69643C9.39355 2.72477 9.40474 2.75196 9.42468 2.7721L9.95504 3.30246C9.99656 3.34397 10.0649 3.34397 10.1064 3.30246L11.0158 2.39308C11.0573 2.35022 11.0573 2.28326 11.0158 2.24174ZM10.2858 11.0904H1.71441C1.47736 11.0904 1.28584 11.2819 1.28584 11.519V11.8404C1.28584 11.8993 1.33405 11.9475 1.39298 11.9475H10.6073C10.6662 11.9475 10.7144 11.8993 10.7144 11.8404V11.519C10.7144 11.2819 10.5229 11.0904 10.2858 11.0904ZM5.62513 1.55469H6.37513C6.43405 1.55469 6.48227 1.50647 6.48227 1.44754V0.16183C6.48227 0.102902 6.43405 0.0546875 6.37513 0.0546875H5.62513C5.5662 0.0546875 5.51798 0.102902 5.51798 0.16183V1.44754C5.51798 1.50647 5.5662 1.55469 5.62513 1.55469Z",fill:"#B91C1C"})}),C("defs",{children:C("clipPath",{id:"clip0_1100_58099",children:C("rect",{width:"12",height:"12",fill:"white"})})})]})}),e=({width:h=12,height:t=12})=>i("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:t,viewBox:"0 0 12 12",fill:"none",children:[C("g",{"clip-path":"url(#clip0_1100_58115)",children:C("path",{d:"M5.99988 4.49816V6.49816M5.99988 8.49816H6.00488M5.30754 1.94402L1.19509 9.04733C0.966991 9.44133 0.85294 9.63833 0.869797 9.80001C0.884499 9.94103 0.958384 10.0692 1.07306 10.1526C1.20454 10.2482 1.43217 10.2482 1.88744 10.2482H10.1123C10.5676 10.2482 10.7952 10.2482 10.9267 10.1526C11.0414 10.0692 11.1153 9.94103 11.13 9.80001C11.1468 9.63833 11.0328 9.44133 10.8047 9.04733L6.69222 1.94402C6.46493 1.55144 6.35129 1.35515 6.20303 1.28922C6.0737 1.23172 5.92606 1.23172 5.79673 1.28922C5.64846 1.35515 5.53482 1.55144 5.30754 1.94402Z",stroke:"#A16207","stroke-width":"1.14286","stroke-linecap":"round","stroke-linejoin":"round"})}),C("defs",{children:C("clipPath",{id:"clip0_1100_58115",children:C("rect",{width:"12",height:"12",fill:"white"})})})]});export{t as SirenIcon,h as SupportIcon,e as WarningIcon};
|
|
2
2
|
//# sourceMappingURL=gapFilterSvgs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{useState as t,useEffect as o,useMemo as n}from"react";import i from"@mui/material/Dialog";import s from"@mui/material/DialogTitle";import a from"@mui/material/DialogContent";import c from"@mui/material/DialogActions";import m from"@mui/material/IconButton";import r from"@mui/material/Radio";import{X as d,Info as u}from"lucide-react";import p from"./deleteSegmentDialog.module.css.js";const y=[{key:"this-segment",label:"This segment"},{key:"all-occurrences",label:"All occurrences of this segment"}],h=({open:h,onHide:v,onDelete:f,customDeleteStyles:b,customDeleteIcons:N})=>{const[g,k]=t(null),[D,C]=t(!1),x=(null==N?void 0:N.closeIcon)||e(d,{size:20}),B=(null==N?void 0:N.infoIcon)||e(u,{className:p.infoIcon});o(()=>{h&&(k(null),C(!1))},[h]);const T=n(()=>y.map(e=>({...e,label:"all-occurrences"===e.key?`${e.label}`:e.label})),[]),$=!g||D;return l(i,{open:h,onClose:v,maxWidth:!1,PaperProps:{className:p.paper,style:null==b?void 0:b.paper},children:[l(s,{className:p.title,style:null==b?void 0:b.title,children:[e("span",{className:p.titleText,style:null==b?void 0:b.titleText,children:"Delete Segment"}),e(m,{"aria-label":"close",onClick:v,className:p.closeButton,style:null==b?void 0:b.closeButton,children:x})]}),l(a,{className:p.content,style:null==b?void 0:b.content,children:[e("p",{className:p.subtitle,style:null==b?void 0:b.subtitle,children:"Choose what you'd like to delete."}),e("div",{className:p.optionsContainer,style:null==b?void 0:b.optionsContainer,children:T.map(t=>{const o=g===t.key;return l("label",{htmlFor:`delete-segment-${t.key}`,className:`${p.optionLabel} ${o?p.optionSelected:""}`,style:{...null==b?void 0:b.optionLabel,...o?null==b?void 0:b.optionSelected:{}},children:[e(r,{inputProps:{id:`delete-segment-${t.key}`},name:"delete-segment-scope",value:t.key,checked:o,onChange:()=>k(t.key),className:p.radio}),e("span",{className:p.optionText,style:null==b?void 0:b.optionText,children:t.label})]},t.key)})}),l("div",{className:p.infoRow,style:null==b?void 0:b.infoRow,children:[B,e("span",{className:p.infoText,style:null==b?void 0:b.infoText,children:"This action permanently deletes the selected segment(s) and cannot be undone."})]})]}),l(c,{className:p.actions,style:null==b?void 0:b.actions,children:[e("button",{onClick:v,disabled:D,className:p.cancelButton,style:null==b?void 0:b.cancelButton,children:"Cancel"}),l("button",{onClick:async()=>{if(g){C(!0);try{await f(g),v()}finally{C(!1)}}},disabled:$,className:`${p.deleteButton} ${$?p.deleteButtonDisabled:""}`,style:{...null==b?void 0:b.deleteButton,...$?null==b?void 0:b.deleteButtonDisabled:{}},children:[D&&e("span",{className:p.spinner}),"Delete segment"]})]})]})};export{h as default};
|
|
2
2
|
//# sourceMappingURL=DeleteSegmentsDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as l,useEffect as o}from"react";import n from"@mui/material/Dialog";import i from"@mui/material/DialogTitle";import s from"@mui/material/DialogContent";import a from"@mui/material/DialogActions";import r from"@mui/material/IconButton";import{X as m}from"lucide-react";import c from"./deleteSegmentDialog.module.css.js";import u from"./segment.module.css.js";const d=({open:d,onHide:p,onConfirm:h,customStyles:y,customIcons:g})=>{const[f,v]=l(!1),N=(null==g?void 0:g.closeIcon)||e(m,{size:20});o(()=>{d&&v(!1)},[d]);return t(n,{open:d,onClose:p,maxWidth:!1,PaperProps:{className:c.paper,style:null==y?void 0:y.paper},children:[t(i,{className:c.title,style:null==y?void 0:y.title,children:[e("span",{className:c.titleText,style:null==y?void 0:y.titleText,children:"Rename this segment everywhere?"}),e(r,{"aria-label":"close",onClick:p,className:c.closeButton,style:null==y?void 0:y.closeButton,children:N})]}),e(s,{className:c.content,style:null==y?void 0:y.content,children:t("p",{className:c.subtitle,style:{marginBottom:"24px",color:"#475569",...null==y?void 0:y.subtitle},children:["Renaming this segment will update its name across all ",e("strong",{children:"occurrences"})," where it is used. Do you want to continue?"]})}),t(a,{className:c.actions,style:null==y?void 0:y.actions,children:[e("button",{onClick:p,disabled:f,className:c.cancelButton,style:null==y?void 0:y.cancelButton,children:"Cancel"}),t("button",{onClick:async()=>{v(!0);try{await h(),p()}catch(e){console.error("Failed to rename segment:",e)}finally{v(!1)}},disabled:f,className:u.renameButton,style:{...null==y?void 0:y.renameButton},children:[f&&e("span",{className:c.spinner}),"Rename segment"]})]})]})};export{d as default};
|
|
2
2
|
//# sourceMappingURL=EditSegmentDialog.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as
|
|
1
|
+
import{jsxs as e,jsx as l}from"react/jsx-runtime";import a from"./segment.module.css.js";import{X as m}from"lucide-react";const t=({label:t,segmentExampleComponent:n,customStyles:s,handleCancelExample:r})=>e("div",{className:`${a.exampleWrapper}`,style:{...null==s?void 0:s.exampleWrapper},children:[l("div",{className:`${a.exampleHeaderText} ${a.uppercase}`,style:{...null==s?void 0:s.exampleHeaderText},children:`{${t}}`}),e("div",{className:`${a.exampleContainer}`,style:{...null==s?void 0:s.exampleContainer},children:[e("div",{className:`${a.exampleHeader}`,style:{...null==s?void 0:s.exampleHeader},children:[l("p",{className:`${a.exampleHeaderText}`,style:{...null==s?void 0:s.exampleHeaderText},children:"Example: "}),l("button",{className:`${a.cancelButton}`,onClick:r,style:{...null==s?void 0:s.cancelButton},children:l(m,{size:16})})]}),null!=n?n:l("p",{className:`${a.exampleHeaderText}`,style:{...null==s?void 0:s.exampleHeaderText},children:"No example available..."})]})]});export{t as default};
|
|
2
2
|
//# sourceMappingURL=ExampleComponentWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import l,{useContext as o,useMemo as i}from"react";import{Pencil as a,Check as s,X as r,ArrowUpRight as d,Trash2 as c}from"lucide-react";import{cn as m}from"../../../UserStoryImport/lib/cn.js";import p from"./segment.module.css.js";import u from"./deleteSegmentDialog.module.css.js";import g from"./ExampleComponentWrapper.js";import y from"../ai-reasoning/AiReasoningCitationContent.js";import h from"./SegmentLoader.js";import"./segment-common.css.js";import{MarkdownStateContext as v}from"../../store/markdown-context.js";import f from"@mui/material/Dialog";import C from"@mui/material/IconButton";import S from"./DeleteSegmentsDialog.js";import x from"@mui/material/Tooltip";import b from"./EditSegmentDialog.js";const I=({id:I="Segment",label:E,children:w,segmentUUID:D,decisionStrength:N=80,aiReason:k,customStyles:j,customIcons:B,aiReasoningCitationCustomStyles:$,segmentExampleComponent:z,handleViewGlossary:L,isUpdatedSegment:W,onOpen:A,onDelete:R,onEdit:U,customDeleteStyles:M,customDeleteIcons:T,enabledSegmentActions:G})=>{var V,F;const{citationsMetadata:H,updateCitationsMetadata:K}=o(v),[O,q]=l.useState(!1),[J,P]=l.useState(!1),[Q,X]=l.useState(!1),[Y,Z]=l.useState(""),[_,ee]=l.useState(!1),{prefix:te,inner:ne}=i(()=>(e=>{const t=e.match(/^(.*?)\s*\{([^}]+)\}\s*$/);return!t||t.length<3?{prefix:"",inner:e}:{prefix:t[1].trim(),inner:t[2].trim()}})(null!=E?E:""),[E]);l.useEffect(()=>{Q||Z(ne)},[Q,ne]);const le=async()=>{if(U){const e=Y.toLowerCase();await U(e)}X(!1),ee(!1)},oe=()=>X(!1),ie=(null==T?void 0:T.editIcon)||e(a,{size:14}),ae=(null==T?void 0:T.checkIcon)||e(s,{size:16,color:"#16A34A"}),se=(null==T?void 0:T.crossIcon)||e(r,{size:16,color:"#DC2626"}),re=i(()=>H.get(D),[H,D]),de=i(()=>(null==re?void 0:re.open)||!1,[re]),ce=i(()=>re&&"loading"===re.state,[re]),me=async()=>{const e=!de;if(q(!1),console.log("citation metadata::",e,k),e&&!(null==k?void 0:k.reason)){K(D,t=>{if(t){const e={...t};return e.state="loading",e}return{open:e,state:"loading"}});try{console.log("citation metadata:: onopen"),await(null==A?void 0:A())}finally{K(D,t=>{if(t){const n={...t};return n.state="ready",n.open=e,n}return{open:e,state:"ready"}})}}else console.log("citation metadata:: else block"),K(D,t=>{if(t){const n={...t};return n.open=e,n}return{open:e,state:ce?"loading":"ready"}})};return t("div",{className:`segment-wrapper-${I} ${p.segmentWrapper}`,style:{...null==j?void 0:j.segmentWrapper,display:"inline-flex",verticalAlign:"middle"},children:[t("div",{className:`segment-${I}-container segmentContainer ${W?"updatedSegmentContainer":""}`,style:{...null==j?void 0:j.container},children:[e("span",{className:`segment-${I} segmentLabel ${W?"updatedSegmentLabel":""}`,style:{...null==j?void 0:j.label},children:W?w:E}),e("button",{className:`${p.segmentExplanationButtonContainer}`,style:{...null==j?void 0:j.buttonContainer},onClick:me,children:e(d,{className:m(W&&p.updatedChevronIcon,p.cheveronIcon),style:{...null==j?void 0:j.cheveronIcon}})})]}),de&&e(f,{open:!0,onClose:me,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",maxWidth:"xl",container:document.getElementById("#root"),children:t("div",{style:{minWidth:"50vw",paddingLeft:16,paddingRight:16,paddingTop:24,paddingBottom:24},children:[t("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:16},children:[t("div",Q?{style:{display:"flex",alignItems:"center",gap:"8px"},children:[te&&e("span",{className:"segmentLabel",style:{fontSize:18,fontWeight:600,...null==j?void 0:j.label},children:te}),t("div",{className:p.editInputWrapper,style:null==j?void 0:j.editInputWrapper,children:[e("input",{value:Y,onChange:e=>Z(e.target.value),className:p.editInput,style:{...null==j?void 0:j.editInput,color:(null===(V=null==j?void 0:j.label)||void 0===V?void 0:V.color)?String(j.label.color):"#3B82F6",textTransform:"uppercase"},autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&le(),"Escape"===e.key&&oe()}}),e(C,{onClick:()=>{Y!==ne?(K(D,e=>e?{...e,open:!1}:{open:!1,state:ce?"loading":"ready"}),ee(!0)):X(!1)},size:"small",style:null==j?void 0:j.editCheckIcon,children:ae}),e(C,{onClick:oe,size:"small",style:null==j?void 0:j.editCrossIcon,children:se})]})]}:{style:{display:"flex",alignItems:"center",gap:"12px"},children:[e("span",{className:"segmentLabel",style:{fontSize:18,fontWeight:600,...null==j?void 0:j.label},children:null!=E?E:"SEGMENT NAME"}),(null==G?void 0:G.includes("edit"))&&e(x,{title:"Edit segment",placement:"top",arrow:!0,children:e("button",{onClick:()=>X(!0),className:p.headerEditButton,style:null==j?void 0:j.editIconButton,children:ie})})]}),t("div",{style:{display:"flex",alignItems:"center",gap:"6px",flexShrink:0,...null==j?void 0:j.headerActionsContainer},children:[(null==G?void 0:G.includes("delete"))&&e(x,{title:"Delete segment",placement:"top",arrow:!0,children:t("button",{onClick:()=>{q(!1),P(!0),K(D,e=>{if(e){const t={...e};return t.open=!1,t}return{open:!1,state:ce?"loading":"ready"}})},className:u.headerDeleteButton,children:[e(c,{size:14}),"Delete"]})}),e(C,{"aria-label":"close",onClick:me,sx:e=>({padding:"4px",color:e.palette.grey[500]}),children:e(r,{size:20})})]})]}),ce?e(h,{customStyles:null==j?void 0:j.loadingSkeleton}):t(n,{children:[O&&!W&&e("div",{style:{marginBottom:16},children:e(g,{label:null!=E?E:"",segmentExampleComponent:z,customStyles:{...null==j?void 0:j.segmentExample,exampleContainer:{...null===(F=null==j?void 0:j.segmentExample)||void 0===F?void 0:F.exampleContainer,width:"100%"}},handleCancelExample:()=>{q(!1)}})}),W&&e("div",{style:{marginBottom:16},children:e("div",{className:`segment-${I}-container segmentContainer updatedSegmentContainer`,style:{...null==j?void 0:j.container},children:e("span",{className:`segment-${I} segmentLabel updatedSegmentLabel`,style:{...null==j?void 0:j.label},children:w})})}),e("div",{children:e(y,{aiReason:k,customStyles:{...$,aiReasoningContent:{...null==$?void 0:$.aiReasoningContent,headerBar:{width:"auto"}},aiReasoningAccordion:{header:{width:"auto"}}},customIcons:B,isSegmentExplanation:!0,handleViewGlossary:L?()=>{K(D,e=>{if(e){const t={...e};return t.open=!1,t}return{open:!1,state:ce?"loading":"ready"}}),null==L||L(I)}:void 0,handleViewExample:z?()=>{q(!0)}:void 0,isUpdatedSegment:W})})]})]})}),e(S,{open:J,onHide:()=>{P(!1)},customDeleteStyles:M,customDeleteIcons:T,onDelete:async e=>{await(null==R?void 0:R(e))}}),e(b,{open:_,onHide:()=>{ee(!1),X(!1)},customStyles:M,customIcons:T,onConfirm:le})]})};export{I as default};
|
|
2
2
|
//# sourceMappingURL=Segment.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as l,jsxs as e}from"react/jsx-runtime";import s from"./segment.module.css.js";const i=({customStyles:i})=>l("div",{className:s.loaderWrapper,style:null==i?void 0:i.wrapper,children:e("div",{className:s.loaderContainer,style:null==i?void 0:i.container,children:[e("div",{className:s.loaderHeader,style:null==i?void 0:i.header,children:[l("div",{className:`${s.skeleton} ${s.title}`,style:null==i?void 0:i.titleSkeleton}),l("div",{className:`${s.skeleton} ${s.icon}`,style:null==i?void 0:i.iconSkeleton})]}),l("div",{className:`${s.skeleton} ${s.lineFull}`,style:null==i?void 0:i.lineFull}),l("div",{className:`${s.skeleton} ${s.line90}`,style:null==i?void 0:i.line90}),l("div",{className:`${s.skeleton} ${s.line75}`,style:null==i?void 0:i.line75}),l("div",{className:`${s.skeleton} ${s.line60}`,style:null==i?void 0:i.line60})]})});export{i as default};
|
|
2
2
|
//# sourceMappingURL=SegmentLoader.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import n from"./Segment.js";import t from"dompurify";const o=({id:o,children:l,props:i,segmentComponentConfig:d,customStyles:s,customIcons:a,extractText:u,isUpdatedSegment:r=!1,blockId:v,customDeleteStyles:m,customDeleteIcons:g})=>{var c,p,S,h,I,C,y,D,b,f,x,_,E,U,W,k,A,F,L;const w=(null==i?void 0:i.id)||"Segment",R=(null==i?void 0:i.decisionstrength)||"80",{segmentDataList:j,getSegmentExampleComponent:B,handleViewGlossary:G,upadatedSegmentDataList:O,handleFetchUpdatedSegmentDetails:T,handleFetchSegmentDetails:V,handleDeleteSegment:z,handleEditSegment:H,enabledSegmentActions:M}=d||{},q=r?null==O?void 0:O.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==w?void 0:w.split("-"))||void 0===n?void 0:n[0])}):null==j?void 0:j.find(e=>{var n;return String(e.segment_id)===String(null===(n=null==w?void 0:w.split("-"))||void 0===n?void 0:n[0])}),J={id:w,reason:null!==(c=null==q?void 0:q.reason)&&void 0!==c?c:"",gap:null!==(p=null==q?void 0:q.gap)&&void 0!==p?p:"",explanation:null!==(S=null==q?void 0:q.explanation)&&void 0!==S?S:"",relevance_score:null!==(h=null==q?void 0:q.relevance_score)&&void 0!==h?h:0,isOpen:!1};let K;const N=u(l),P=i["data-table"];let Q="";if(P&&!r)try{Q=decodeURIComponent(atob(P))}catch(e){console.error("Failed to decode data-table for segment",w,e)}const X=t.sanitize(Q),Y=()=>e("div",{dangerouslySetInnerHTML:{__html:X}});return q||!V||r||null==V||V(w),w&&q&&B&&!r&&(K=P?e(Y,{}):B(w,N,q.segment_type)),e(n,{id:w,segmentUUID:o,label:null!==(I=null==q?void 0:q.label)&&void 0!==I?I:null==q?void 0:q.segment_name,decisionStrength:R,aiReason:J,customIcons:a,aiReasoningCitationCustomStyles:s,segmentExampleComponent:K,handleViewGlossary:G,customStyles:{segmentWrapper:null===(C=null==s?void 0:s.segment)||void 0===C?void 0:C.segmentWrapper,container:null===(y=null==s?void 0:s.segment)||void 0===y?void 0:y.container,label:null===(D=null==s?void 0:s.segment)||void 0===D?void 0:D.label,decisionStrength:null===(b=null==s?void 0:s.segment)||void 0===b?void 0:b.decisionStrength,buttonContainer:null===(f=null==s?void 0:s.segment)||void 0===f?void 0:f.buttonContainer,cheveronIcon:null===(x=null==s?void 0:s.segment)||void 0===x?void 0:x.cheveronIcon,segmentExample:null===(_=null==s?void 0:s.segment)||void 0===_?void 0:_.segmentExample,loadingSkeleton:null===(E=null==s?void 0:s.segment)||void 0===E?void 0:E.SegmentLoadingSkeletonStyles,editInputWrapper:null===(U=null==s?void 0:s.segment)||void 0===U?void 0:U.editInputWrapper,editInput:null===(W=null==s?void 0:s.segment)||void 0===W?void 0:W.editInput,editCheckIcon:null===(k=null==s?void 0:s.segment)||void 0===k?void 0:k.editCheckIcon,editCrossIcon:null===(A=null==s?void 0:s.segment)||void 0===A?void 0:A.editCrossIcon,headerActionsContainer:null===(F=null==s?void 0:s.segment)||void 0===F?void 0:F.headerActionsContainer,editIconButton:null===(L=null==s?void 0:s.segment)||void 0===L?void 0:L.editIconButton},isUpdatedSegment:r,onOpen:async()=>{!q&&r&&(console.log("citation metadata:: handleFetchUpdatedSegmentDetails"),await(null==T?void 0:T(w)))},onDelete:e=>{if(console.log("SegmentWrapper: onDelete",e,{...q,segment_uuid:w},v),q)return null==z?void 0:z(e,{...q,segment_uuid:w},v)},onEdit:e=>{if(console.log("SegmentWrapper: onEdit",q,e),q&&H)return null==H?void 0:H(q,e)},customDeleteStyles:m,customDeleteIcons:g,enabledSegmentActions:M,children:l},w)};export{o as default};
|
|
2
2
|
//# sourceMappingURL=SegmentWrapper.js.map
|