@viswa-test/test-citation 0.0.229 → 0.0.231
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/README.md +284 -45
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
- package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
- package/dist/cjs/features/GptWebCitation/types.js +2 -0
- package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
- package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
- package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
- package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.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/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.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/constants/editorConfig.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.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 +2 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/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/LayoutPlugin.js +1 -1
- 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/Editor/theme/theme.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/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/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/UserStoryCard.module.css.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/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/audio-citation/utils/word-segment-util.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 +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
- 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/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/segment/segment-common.css.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 +2 -0
- package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
- package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
- package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
- 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/UserStoryApprovalContext.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/UserStoryApprovalScreen.module.css.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-approval-screen/components/ContentSegment/ContentSegment.module.css.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 +2 -0
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
- 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/useDiffEditReviewMode.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 +2 -0
- package/dist/cjs/features/RequirementAI/icons/CDIcon.js.map +1 -0
- 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/Illustration.svg.js +2 -0
- package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
- 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/shared/useMarkdownSearch.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/css.utils.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/json-helper.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.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/components/usePanelResize.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.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/index.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/cn.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/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
- package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
- package/dist/features/GptWebCitation/types.js +2 -0
- package/dist/features/GptWebCitation/types.js.map +1 -0
- package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
- package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
- package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
- package/dist/features/IngestionStatus/IngestionStatusComponent.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/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.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 +2 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/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/LayoutPlugin.js +1 -1
- 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/Editor/theme/theme.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
- package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
- 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/UserStoryCard.module.css.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/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/appmod-citation/types.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/audio-citation/utils/word-segment-util.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 +2 -0
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
- 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/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/segment/segment-common.css.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
- package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
- 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/UserStoryApprovalContext.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.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-approval-screen/components/ContentSegment/ContentSegment.module.css.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 +2 -0
- package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
- 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/useDiffEditReviewMode.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 +2 -0
- package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
- 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/Illustration.svg.js +2 -0
- package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
- 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/shared/useMarkdownSearch.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/css.utils.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/json-helper.js +1 -1
- package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
- package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.context.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/components/usePanelResize.js +1 -1
- package/dist/features/UserStoryImport/hooks/useFilteredItems.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/index.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/cn.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/Background.d.ts +7 -0
- package/dist/types/src/Background.d.ts.map +1 -0
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
- package/dist/types/src/CommonConstants/CommonConstants.d.ts +1365 -0
- package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
- package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
- package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
- 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/constants/deviationData.d.ts +887 -0
- package/dist/types/src/constants/deviationData.d.ts.map +1 -0
- package/dist/types/src/constants/treeData.d.ts +732 -0
- package/dist/types/src/constants/treeData.d.ts.map +1 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
- package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
- package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
- package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
- package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
- package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
- package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
- package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
- package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
- 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/HighlightNode.d.ts +44 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +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 +25 -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 +25 -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/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
- package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts +8 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +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 +17 -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 +35 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
- package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
- package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
- package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
- package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -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 +2 -1
- package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
- package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
- package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
- package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
- package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
- package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
- package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +3 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/service/redlineService.d.ts +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 +9 -6
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
- package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{useRequirementAI as l}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{Bookmark as s}from"lucide-react";import{useState as n}from"react";import{replaceLearnedTagsWithInfo as r}from"./ReplaceLearnedTags.js";import a from"./StreamingScreenSidebar.module.css.js";import{extractAllAiReasoningIds as o,stripAiReasoningAnchors as d}from"../../utils/helpers.js";import c from"../ai-reasoning/AiReasoningCitation.js";const m=({customStyles:i})=>t("div",{className:a.skeleton,style:i,children:[e("div",{className:a.skeletonLineSmall,style:null==i?void 0:i.skeletonLine}),e("div",{className:a.skeletonLineLarge,style:null==i?void 0:i.skeletonLine})]}),u=({isSidebarExpanded:u,selectedStreamingStoryIndex:p,setSelectedStreamingStoryIndex:v,streamingUserStories:y,isStreamingScreen:h,artifactTitleIds:g})=>{var S,f;const{customStyles:N,aiReasoning:I}=l(),k=null===(S=null==N?void 0:N.userStoryScreenStyles)||void 0===S?void 0:S.streamingSidebar,[b,C]=n({}),R=null===(f=y||[])||void 0===f?void 0:f.map((e,t)=>({artifactTitleId:g[t]||"",artifactId:e.artifactId,title:e.title,description:(null==e?void 0:e.description)||""})),j=(e,t)=>{const i=b[e],l=d(t);return i?l:l.length>116?l.slice(0,116)+"...":l};return e("div",{className:`${a.container} ${u?a.expanded:a.collapsed}`,style:null==k?void 0:k.container,children:t("div",{className:a.sidebar,style:null==k?void 0:k.sidebarInner,children:[e("div",{className:a.header,style:null==k?void 0:k.header,children:e("h2",{className:a.title,style:null==k?void 0:k.title,children:"User stories"})}),e("div",{className:a.storiesContainer,style:null==k?void 0:k.storiesContainer,children:R.length>0?e(i,{children:R.map((i,l)=>{const n=o(i.description).map(e=>I.find(t=>t.id.toString()===e)).filter(Boolean);return e("div",{onClick:()=>{v(l)},className:`${a.storyItem} ${l===R.length-1?a.borderBottom:""} ${p===l?a.activeStory:""}`,style:{...null==k?void 0:k.storyItem,...p===l?null==k?void 0:k.activeStory:{}},children:t("div",{className:a.storyContent,style:null==k?void 0:k.storyContent,children:[t("div",{className:a.storyHeader,style:null==k?void 0:k.storyHeader,children:[e("span",{className:a.iconGroup,children:e(s,{className:a.bookmarkIcon,style:null==k?void 0:k.bookmarkIcon})}),h&&e("span",{className:a.badge,style:null==k?void 0:k.badge,children:"Generating..."})]}),t("span",{className:a.storyTitle,style:null==k?void 0:k.storyTitle,children:[t("span",{children:[l+1,"."]}),r(i.title)]}),t("span",{className:a.description,style:null==k?void 0:k.description,children:[j(i.artifactId,i.description),i.description.length>116&&e("button",{onClick:e=>{var t;e.stopPropagation(),t=i.artifactId,C(e=>({...e,[t]:!e[t]}))},className:a.moreButton,style:null==k?void 0:k.moreButton,children:b[i.artifactId]?"less":"more"}),n.length>0&&e("span",{className:a.aiReasoningContainer,onClick:e=>e.stopPropagation(),"data-sidebar-citation-streaming":"true",children:n.map(t=>e(c,{aiReason:t,isSourceHasHighlight:!1},null==t?void 0:t.id))})]})]})},i.artifactId)})}):e(m,{customStyles:null==k?void 0:k.skeleton})})]})})};export{u as default};
|
|
2
2
|
//# sourceMappingURL=StreamingScreenSidebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import{useState as i,useEffect as r}from"react";import{PencilIcon as n,ChevronDown as s}from"lucide-react";import{useRequirementAI as l}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{formatMarkdown as a,indentMarkdown as c}from"../../utils/helpers.js";import d from"../RichTextEditor/RichTextEditor.js";import u from"../userstory-with-citation/UserStoryWithCitation.js";import m from"../../shared/AtomicButton.js";import p from"./SubfeatureBlock.module.css.js";const v=({parentArtifactId:v,artifactId:h,title:y,content:f,isEditingModeOn:g,setIsEditingModeOn:S,isCitationLoadingDisplay:I=!1})=>{var N,B;const{userStory:C,setUserStory:b,customStyles:j,customIcons:W,segmentComponentConfig:k}=l(),x=null===(N=null==j?void 0:j.userStoryScreenStyles)||void 0===N?void 0:N.subFeatureBlock,A=null===(B=null==j?void 0:j.userStoryScreenStyles)||void 0===B?void 0:B.userStoryContentStyles,[w,E]=i(!0),[R,T]=i(!1),[F,M]=i(C);r(()=>{M(C)},[C]);return t("div",{className:p.container,style:null==x?void 0:x.container,children:[t("button",{onClick:()=>{E(t=>!t)},className:p.toggleButton,style:null==x?void 0:x.toggleButton,children:[e("h1",{className:p.title,style:null==x?void 0:x.title,children:y}),t("div",{className:p.subFeatureToolbar,style:null==x?void 0:x.subFeatureToolbar,children:[w&&e("div",{className:p.actionBar,style:null==x?void 0:x.actionBar,children:R?t("div",{className:p.editingActions,children:[e(m,{type:"outline",children:"Cancel",onClick:t=>{t.stopPropagation(),T(!1),S(!1)}}),e(m,{type:"fill",children:"Save",onClick:t=>{t.stopPropagation(),b(F),T(!1),S(!1)}})]}):!g&&e("div",{className:p.viewActions,children:e("button",{className:p.editButton,style:null==x?void 0:x.editButton,onClick:t=>{t.stopPropagation(),T(!0),S(!0)},children:e(n,{size:16})})})}),e(s,{className:`${p.chevron} ${w?p.chevronOpen:""}`,style:null==x?void 0:x.chevron})]})]}),w&&e(o,{children:e("div",R?{className:p.editorWrapper,style:null==x?void 0:x.editorWrapper,children:e(d,{minHeight:"100%",height:"100%",type:"string",value:a(f)||"",handleUpdateState:(t,e)=>{const o=c(e);M(t=>{const e=[...t],i=e.findIndex(t=>t.artifactId===v);if(-1===i)return e;const r=e[i].sub_features;if(r){const t=r.findIndex(t=>t.artifactId===h);-1!==t&&(e[i]={...e[i],sub_features:r.map((e,i)=>i===t?{...e,value:o}:e)})}return e})},doNotShowBorderInViewMode:!1,onBlur:()=>{},mode:"edit"})}:{className:p.contentWrapper,style:null==x?void 0:x.contentWrapper,children:e(u,{message:f,isCitationLoadingDisplay:I,customStyles:{...A},customIcons:{...null==W?void 0:W.userStoryIcons}})})})]},h)};export{v as default};
|
|
2
2
|
//# sourceMappingURL=SubfeatureBlock.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as l}from"react/jsx-runtime";import{createContext as n,useState as i,useRef as r,useEffect as o,useContext as s}from"react";import{PanelGroup as a,Panel as d,PanelResizeHandle as c}from"react-resizable-panels";import{PencilIcon as u,ChevronDown as S}from"lucide-react";import{formatMarkdown as v,indentMarkdown as m}from"../../utils/helpers.js";import y from"./SubfeatureBlock.js";import g from"./UserStoryScreen.module.css.js";import{useRequirementAI as p}from"../RequirementAIWrapper/RequirementAIWrapper.js";const h=n(null),b=()=>{const e=s(h);if(!e)throw new Error("UserStoryScreen must be used inside its provider");return e},N=({AtomicButton:l})=>{var n,i;const{selectedStreamingStoryIndex:r,isCitationLoadingNotStarted:o,classNames:s,scenario:a}=b(),{userStory:d,customStyles:c}=p(),u=null==c?void 0:c.userStoryScreenStyles;return(null==d?void 0:d.length)?t("div",{className:`${g.header} ${null!==(n=null==s?void 0:s.header)&&void 0!==n?n:""}`,style:null==u?void 0:u.header,children:[t("div",{className:g.headerLeftContainer,children:[e("span",{className:g.headerTitle,style:null==u?void 0:u.headerTitle,children:null===(i=d[r])||void 0===i?void 0:i.title}),"streaming"===a&&t("span",{className:g.headerSubtitle,style:null==u?void 0:u.headerSubtitle,children:[e("span",{className:g.streamingText,style:null==u?void 0:u.streamingText,children:o?"Generating Requirement Doc":"Hang tight! We're loading the citations."})," • Review & edit blocks as we build"]})]}),e(f,{AtomicButton:l})]}):e(I,{classNames:s})},f=({AtomicButton:l})=>{const{isEditing:n,isEditingModeOn:i,setIsEditing:r,setIsEditingModeOn:o,userStoryCopy:s}=b(),{userStory:a,setUserStory:d,customStyles:c}=p(),S=null==c?void 0:c.userStoryScreenStyles;return(null==a?void 0:a.length)?n?t("div",{className:g.actions,style:null==S?void 0:S.actions,children:[e(l,{type:"outline",onClick:()=>{r(!1),o(!1)},style:null==S?void 0:S.cancelAtomicButton,children:"Cancel"}),e(l,{type:"fill",onClick:()=>{d(s),r(!1),o(!1)},style:null==S?void 0:S.saveAtomicButton,children:"Save"})]}):i?null:e("div",{className:g.editToggleWrapper,children:e("button",{className:g.editToggleBtn,style:null==S?void 0:S.editToggleBtn,onClick:()=>{r(!0),o(!0)},children:e(u,{size:16})})}):null},I=({classNames:l})=>{var n;return t("div",{className:`${g.header} ${null!==(n=null==l?void 0:l.header)&&void 0!==n?n:""}`,children:[e("div",{className:g.skeletonTitle}),e("div",{className:g.skeletonSubtitle})]})},C=()=>{var l;const{customStyles:n}=p(),i=null===(l=null==n?void 0:n.userStoryScreenStyles)||void 0===l?void 0:l.accordionSkeleton;return t("div",{className:g.accordionSkeleton,style:null==i?void 0:i.wrapper,children:[e("div",{className:g.skeletonLine,style:null==i?void 0:i.line}),e("div",{className:g.skeletonBox,style:null==i?void 0:i.box})]})},B=()=>{var l;const{customStyles:n}=p(),i=null===(l=null==n?void 0:n.userStoryScreenStyles)||void 0===l?void 0:l.subFeatureSkeleton;return t("div",{className:g.subFeatureSkeleton,style:null==i?void 0:i.wrapper,children:[e("div",{className:g.skeletonLine,style:null==i?void 0:i.line}),e("div",{className:g.skeletonLine,style:null==i?void 0:i.line}),e("div",{className:g.skeletonLine,style:null==i?void 0:i.line})]})},x=Object.assign(({scenario:t,isCitationLoadingNotStarted:l,children:n,classNames:s,artifactTitleIds:d})=>{var c,u,S,v,m;const{userStory:y,customStyles:b}=p(),[N,f]=i(0),[I,C]=i(!0),[B,x]=i(!1),[E,T]=i(!1),[k,L]=i(!1),[R,A]=i(!1),[$,w]=i(y),z=r(null),O=r(null);return o(()=>{w(y)},[y]),o(()=>{x(!0);const e=setTimeout(()=>x(!1),2e3);return()=>clearTimeout(e)},[null===(u=null===(c=null==y?void 0:y[N])||void 0===c?void 0:c.sub_features)||void 0===u?void 0:u.length]),o(()=>{const e=O.current;if(!e)return;const t=()=>{T(e.scrollHeight-e.scrollTop-e.clientHeight<20)};return e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)},[null==y?void 0:y[N]]),e(h.Provider,{value:{scenario:t,isCitationLoadingNotStarted:l,selectedStreamingStoryIndex:N,setSelectedStreamingStoryIndex:f,isSidebarExpanded:I,setIsSidebarExpanded:C,sidebarPanelRef:z,isEditing:k,setIsEditing:L,isEditingModeOn:R,setIsEditingModeOn:A,userStoryCopy:$,setUserStoryCopy:w,scrollContainerRef:O,isAtBottom:E,isScrollBtnBouncing:B,scrollToBottom:()=>{O.current&&O.current.scrollTo({top:O.current.scrollHeight,behavior:"smooth"})},classNames:s,artifactTitleIds:d},children:e("div",{className:`${g.container} ${null!==(S=null==s?void 0:s.container)&&void 0!==S?S:""}`,style:{...null===(v=null==b?void 0:b.userStoryScreenStyles)||void 0===v?void 0:v.wrapperContainer},children:e(a,{direction:"horizontal",className:g.panelGroup,style:null===(m=null==b?void 0:b.userStoryScreenStyles)||void 0===m?void 0:m.panelGroup,children:n})})})},{Sidebar:({Component:t})=>{var l;const{selectedStreamingStoryIndex:n,setSelectedStreamingStoryIndex:i,isSidebarExpanded:r,setIsSidebarExpanded:o,sidebarPanelRef:s,scenario:a,artifactTitleIds:c}=b(),{userStory:u,customStyles:S}=p();return e(d,{ref:s,defaultSize:25,minSize:15,collapsible:!0,collapsedSize:0,onCollapse:()=>o(!1),onExpand:()=>o(!0),id:"streaming-sidebar",order:1,className:g.sidebarPanel,style:null===(l=null==S?void 0:S.userStoryScreenStyles)||void 0===l?void 0:l.sidebarPanel,children:e(t,{streamingUserStories:u,selectedStreamingStoryIndex:n,setSelectedStreamingStoryIndex:i,isSidebarExpanded:r,isStreamingScreen:"streaming"===a,artifactTitleIds:c})})},SidebarToggle:({OpenIcon:t,CloseIcon:l})=>{const{isSidebarExpanded:n,setIsSidebarExpanded:i,sidebarPanelRef:r}=b(),{customStyles:o}=p(),s=null==o?void 0:o.userStoryScreenStyles;return e(c,{className:g.resizeHandle,style:null==s?void 0:s.resizeHandle,children:e("button",{className:g.sidebarToggleBtn,onClick:e=>{var t,l;e.stopPropagation(),n?null===(t=r.current)||void 0===t||t.collapse():null===(l=r.current)||void 0===l||l.expand()},style:null==s?void 0:s.sidebarToggleBtn,children:e(n?l:t,{})})})},Content:({children:l,AtomicButton:n})=>{var i;const{scrollContainerRef:r,classNames:o}=b(),{customStyles:s}=p(),a=null==s?void 0:s.userStoryScreenStyles;return e(d,{minSize:0,id:"streaming-content",order:2,className:g.contentPanel,style:null==a?void 0:a.contentPanel,children:t("div",{ref:r,className:`${g.scrollContainer} ${null!==(i=null==o?void 0:o.scrollContainer)&&void 0!==i?i:""}`,style:null==a?void 0:a.scrollContainer,children:[e(N,{AtomicButton:n}),l]})})},Body:({children:t})=>{const{userStory:n,setUserStory:i}=p();return(null==n?void 0:n.length)?e(l,{children:t}):null},Story:({Component:t})=>{var l,n,i;const{selectedStreamingStoryIndex:r,isEditing:o,scenario:s}=b(),{userStory:a,customStyles:d,customIcons:c,segmentComponentConfig:u}=p(),S=null==d?void 0:d.userStoryScreenStyles,v=null==S?void 0:S.userStoryContentStyles;return o?null:e("div",{className:g.storyWrapper,style:null==S?void 0:S.storyWrapper,children:e(t,{message:null===(l=a[r])||void 0===l?void 0:l.value,aiReasoningsForBlock:(null===(n=a[r])||void 0===n?void 0:n.aiReasoning)||[],isCitationLoadingDisplay:"streaming"===s,customStyles:{...v},customIcons:{...null==c?void 0:c.userStoryIcons},artifactId:null===(i=a[r])||void 0===i?void 0:i.artifactId,segmentComponentConfig:u})})},Editor:({Component:t,onBlur:l})=>{var n;const{selectedStreamingStoryIndex:i,isEditing:r,setUserStoryCopy:o}=b(),{userStory:s,customStyles:a}=p(),d=null==a?void 0:a.textEditorStyles;if(!r)return null;return e("div",{className:g.editorWrapper,style:null==d?void 0:d.wrapper,children:e(t,{minHeight:"100%",height:"100%",type:"string",value:v(null===(n=s[i])||void 0===n?void 0:n.value)||"",handleUpdateState:(e,t)=>{var l;const n=m(t),r=null===(l=s[i])||void 0===l?void 0:l.storyNumber;o(e=>{const t=[...e],l=t.findIndex(e=>e.storyNumber===r);return-1===l||(t[l]={...t[l],value:n}),t})},doNotShowBorderInViewMode:!1,onBlur:l,mode:"edit",customStyles:d})})},SubFeatures:()=>{var n;const{selectedStreamingStoryIndex:i,isEditingModeOn:r,setIsEditingModeOn:o,scenario:s,isCitationLoadingNotStarted:a}=b(),{userStory:d}=p(),c=(null===(n=null==d?void 0:d[i])||void 0===n?void 0:n.sub_features)||[];return 0===c.length&&"streaming"===s?e(C,{}):t(l,{children:[c.map(t=>e(y,{parentArtifactId:null==d?void 0:d[i].artifactId,artifactId:t.artifactId,title:t.title,content:t.value,aiReasoning:t.aiReasoning||[],isEditingModeOn:r,setIsEditingModeOn:o,isCitationLoadingDisplay:"streaming"===s},t.artifactId)),"streaming"===s&&a&&e("div",{className:g.subFeatureSkeletonWrapper,children:e(B,{})})]})},ScrollButton:()=>{const{isAtBottom:t,isSidebarExpanded:l,scrollToBottom:n,isScrollBtnBouncing:i}=b(),{userStory:r,customStyles:o}=p(),s=null==o?void 0:o.userStoryScreenStyles;return!(null==r?void 0:r.length)||t?null:e("div",{className:`${g.scrollBtnWrapper} ${l?g.scrollExpanded:g.scrollCollapsed}`,style:null==s?void 0:s.scrollBtnWrapper,children:e("button",{onClick:n,className:`${g.scrollBtn} ${i?g.bounce:""}`,style:null==s?void 0:s.scrollBtn,"aria-label":"Scroll to bottom",children:e(S,{size:20})})})}});export{x as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryScreen.js.map
|
package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{createContext as r,useContext as e}from"react";
|
|
1
|
+
import{createContext as r,useContext as e}from"react";const o=r(null),t=()=>{const r=e(o);if(!r)throw new Error("useUserStoryApprovalScreen must be used within a UserStoryApprovalScreen component");return r};export{o as UserStoryApprovalScreenContext,t as useUserStoryApprovalScreen};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalContext.js.map
|
package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as o}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as l,useMemo as a,useEffect as d}from"react";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as u,getFirstUnapprovedStoryId as p,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as S}from"../../hooks/useApprovalStatus.js";import{ContentSegment as m}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as b}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as A}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as E,useUserStoryApprovalScreen as w}from"./UserStoryApprovalContext.js";import{BigEnoughPanel as N}from"../story-screen/BigEnoughPanel.js";import T from"../../icons/BigEnoughIcon.js";var U={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},x={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},F=Object.assign(function(r){var f,m=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,b=r.callbacks,A=void 0===b?{}:b,I=r.labels,C=void 0===I?{}:I,w=r.isDisabled,N=void 0!==w&&w,T=r.children,F=r.classNames,B=r.selectedArtifactId,k=s(),j=k.userStory,D=k.customStyles,_=e(e({},U),y),P=e(e({},x),C),R=n([]),W=R[0],M=R[1],V=n(""),q=V[0],z=V[1],O=n(""),L=O[0],H=O[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=l(function(e,o,t,r){A.onShowNotification?A.onShowNotification(e,o,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(o,": ").concat(t))},[A]),ee=l(function(e){A.onScrollToElement?A.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[A]),oe=a(function(){var e=W.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[W,q]),te=W[oe];d(function(){Z.current=te},[te]),d(function(){var e;if(null==j?void 0:j.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===j.length&&X(!1),j.length>0&&!q&&z(B||j[0].artifactId);var o=c(v(j));M(o)}},[j,B]),d(function(){B&&B!==q&&z(B)},[B,q]),d(function(){if(te){var e=u(te,"");H(e)}},[null==te?void 0:te.artifactId]);var re=l(function(e,t){M(function(r){var n=o([],r,!0);if("APPROVED"===t.approval_status&&"APPROVED"!==r[e].approval_status){var i=p(r,t.artifactId);i&&z(i)}return n[e]=t,n})},[]),ne=l(function(e){var o=Z.current;if(o){var t=u(o,e);"NA"!==t&&(H(""),setTimeout(function(){H(t)},0))}},[]);S({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:oe,callbacks:A,labels:P,onSaveUserStory:re});var ie=e({height:_.containerHeight},_.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),le={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:q,setSelectedStoryArtifactId:z,selectedUserStoryIndex:oe,selectedUserStoryForApproval:te,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:m,config:_,labels:P,callbacks:A,isDisabled:N,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return t(E.Provider,e({value:le},{children:t("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==D?void 0:D.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:T}))}))},{Sidebar:function(e){var o=e.Component,r=e.config,n=e.className,i=w(),l=i.isSidebarExpanded,a=i.selectedStoryArtifactId,d=i.setSelectedStoryArtifactId,s=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return o?t(o,{isSidebarExpanded:l,selectedStoryArtifactId:a,setSelectedStoryArtifactId:d,userStoryForApproval:s,isEditingAnUserStorySegment:c,artifactTitleIds:v}):t(A,{config:r,className:n})},SidebarToggle:function(o){var r=o.OpenIcon,n=o.CloseIcon,i=o.className,l=void 0===i?"":i,a=w(),d=a.isSidebarExpanded,s=a.setIsSidebarExpanded,c=r||I,v=n||C;return t("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(l)},{children:t("button",e({onClick:function(){return s(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":d?"Collapse sidebar":"Expand sidebar",type:"button"},{children:t(d?v:c,{})}))}))},Content:function(o){var i,a,d,c,v,u,p,S,m,A,I,C,E,U,x,F,B,k,j,D,_,P,R,W,M,V,q,z,O,L,H,G=o.children,Y=o.ButtonComponent,J=o.hideApproveAll,K=void 0!==J&&J,Q=o.pageTitle,X=void 0===Q?"Review Generated Requirements":Q,Z=o.pageDescription,$=void 0===Z?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":Z,ee=w(),oe=ee.selectedUserStoryForApproval,te=ee.selectedUserStoryIndex,re=ee.artifactTitleIds,ne=ee.labels,ie=ee.config,le=ee.isDisabled,ae=ee.isEditingSegment,de=ee.handleSaveUserStory,se=ee.setCurrentContentId,ce=ee.showNotification,ve=s(),ue=ve.customStyles,pe=ve.customIcons,fe=n(!1),Se=fe[0],me=fe[1],he=l(function(){if(oe)if(ae)ce("warn","Warning!",ne.unsavedChangesWarning,3e3);else{var e=f(oe);de(te,e),se("")}},[oe,te,ae,ne,de,se,ce]);if(!oe)return null;var ge=re[te]||"",ye="APPROVED"===oe.approval_status,be=null!=(null==oe?void 0:oe.big_enough)&&!Number.isNaN(oe.big_enough)&&!!(null==oe?void 0:oe.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==ue?void 0:ue.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":X,"data-lsc-ui-page-description":$},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(d=null==ue?void 0:ue.approvalScreen)||void 0===d?void 0:d.body)||void 0===c?void 0:c.contentSegment)||void 0===v?void 0:v.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(p=null===(u=null==ue?void 0:ue.approvalScreen)||void 0===u?void 0:u.content)||void 0===p?void 0:p.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(A=null===(m=null===(S=null==ue?void 0:ue.approvalScreen)||void 0===S?void 0:S.body)||void 0===m?void 0:m.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t(b,{size:16,color:(null===(E=null===(C=null===(I=null==ue?void 0:ue.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===E?void 0:E.bookMarkColor)||"#8C8C8C"}),t("h2",e({className:g.headerArtifactId,style:e({},null===(F=null===(x=null===(U=null==ue?void 0:ue.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:ge}))]})),t("p",e({className:g.headerTitle,style:e({},null===(j=null===(k=null===(B=null==ue?void 0:ue.approvalScreen)||void 0===B?void 0:B.body)||void 0===k?void 0:k.contentSegment)||void 0===j?void 0:j.headerTitle)},{children:null==oe?void 0:oe.title}))]})),r("div",e({className:null==g?void 0:g.containerStyle,style:null===(_=null===(D=null==ue?void 0:ue.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.containerStyle},{children:[be&&t("button",e({className:g.developerEffortButton,style:null===(R=null===(P=null==ue?void 0:ue.approvalScreen)||void 0===P?void 0:P.BigEnoughStyles)||void 0===R?void 0:R.buttonStyle,onClick:function(){return me(!Se)}},{children:t(T,{color:null===(M=null===(W=null==ue?void 0:ue.approvalScreen)||void 0===W?void 0:W.BigEnoughStyles)||void 0===M?void 0:M.iconColor,size:null===(q=null===(V=null==ue?void 0:ue.approvalScreen)||void 0===V?void 0:V.BigEnoughStyles)||void 0===q?void 0:q.iconSize})})),!K&&ie.showApproveAllButton&&t("div",e({className:g.headerRight},{children:ye?t(h,{status:"APPROVED",label:ne.approved}):Y?t(Y,e({type:"fill",onClick:he,isDisable:le,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:ne.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[t(y,{size:16,color:"white"}),t("span",{children:ne.approveAll})]}))})):r("button",e({onClick:he,disabled:le,className:g.approveAllButtonDefault,style:e({},null===(O=null===(z=null==ue?void 0:ue.approvalScreen)||void 0===z?void 0:z.content)||void 0===O?void 0:O.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:ne.approveAll})]}))}))]}))]})),Se&&be&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:null==pe?void 0:pe.userStoryIcons,customStyles:null===(L=null==ue?void 0:ue.approvalScreen)||void 0===L?void 0:L.aiReasoningCitaionStyles,currentUserStory:oe,panelStyles:null===(H=null==ue?void 0:ue.approvalScreen)||void 0===H?void 0:H.BigEnoughStyles,showPanel:Se})})),G]}))},Body:function(o){var n,i,a,d=o.children,c=o.EditorComponent,v=o.ViewerComponent,u=w(),p=u.selectedUserStoryForApproval,f=u.selectedUserStoryIndex,S=u.artifactTitleIds,h=u.handleSaveUserStory,y=s().customStyles,b=l(function(e){h(f,e)},[f,h]),A=l(function(o,t){var r;if(p){var n=e(e({},p),{sub_features:null===(r=p.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===o?t:e})});h(f,n)}},[p,f,h]),I=l(function(o){var t;if(p){var r=e(e({},p),{sub_features:null===(t=p.sub_features)||void 0===t?void 0:t.filter(function(e,t){return t!==o})});h(f,r)}},[p,f,h]);if(!p)return null;var C=S[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[t(m,{userStoryForApproval:p,artifactTitleId:C,onSaveMainStoryContent:b,EditorComponent:c,ViewerComponent:v}),null===(a=p.sub_features)||void 0===a?void 0:a.map(function(e,o){return t(m,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),d]}))}});export{F as default};
|
|
1
|
+
import{jsx as e,jsxs as o,Fragment as t}from"react/jsx-runtime";import{useState as l,useRef as n,useCallback as r,useMemo as i,useEffect as a}from"react";import s from"showdown";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as u}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as v,getFirstUnapprovedStoryId as p,approveAllSegments as m}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as h}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as y}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as f}from"../../icons/CheckIcon.js";import{BookmarkIcon as b}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as I}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{ExternalLink as C,Download as A,Share2 as w,Copy as E,SidebarOpenIcon as N,SidebarCloseIcon as U}from"lucide-react";import{UserStoryApprovalScreenContext as x,useUserStoryApprovalScreen as T}from"./UserStoryApprovalContext.js";import{BigEnoughPanel as k}from"../story-screen/BigEnoughPanel.js";import B from"../../icons/BigEnoughIcon.js";import{Menu as D,MenuItem as F}from"@mui/material";import{formatMarkdown as j}from"../../utils/helpers.js";import{replaceTitleSection as P}from"../../utils/user-story.utils.js";const M={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},_={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},R=Object.assign(({artifactTitleIds:o,config:t={},callbacks:s={},labels:m={},isDisabled:S=!1,children:y,classNames:f,selectedArtifactId:b})=>{var I;const{userStory:C,customStyles:A}=d(),w={...M,...t},E={..._,...m},[N,U]=l([]),[T,k]=l(""),[B,D]=l(""),[F,j]=l(!1),[P,R]=l(!0),z=n(void 0),W=r((e,o,t,l)=>{s.onShowNotification?s.onShowNotification(e,o,t,l):console.log(`[${e.toUpperCase()}] ${o}: ${t}`)},[s]),$=r(e=>{s.onScrollToElement?s.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[s]),L=i(()=>{const e=N.findIndex(e=>e.artifactId===T);return e>=0?e:0},[N,T]),O=N[L];a(()=>{z.current=O},[O]),a(()=>{var e;if(!(null==C?void 0:C.length))return;null===(e=s.onInitialize)||void 0===e||e.call(s),1===C.length&&R(!1),C.length>0&&!T&&k(b||C[0].artifactId);const o=c(u(C));U(o)},[C,b]),a(()=>{b&&b!==T&&k(b)},[b,T]),a(()=>{if(!O)return;const e=v(O,"");D(e)},[null==O?void 0:O.artifactId]);const V=r((e,o)=>{U(t=>{const l=[...t];if("APPROVED"===o.approval_status&&"APPROVED"!==t[e].approval_status){const e=p(t,o.artifactId);e&&k(e)}return l[e]=o,l})},[]),q=r(e=>{const o=z.current;if(!o)return;const t=v(o,e);"NA"!==t&&(D(""),setTimeout(()=>{D(t)},0))},[]);h({userStoryForApproval:N,selectedUserStoryForApproval:O,userStoryIndex:L,callbacks:s,labels:E,onSaveUserStory:V});const H={height:w.containerHeight,...w.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}},G={userStoryForApproval:N,setUserStoryForApproval:U,selectedStoryArtifactId:T,setSelectedStoryArtifactId:k,selectedUserStoryIndex:L,selectedUserStoryForApproval:O,currentContentId:B,setCurrentContentId:D,isEditingSegment:F,setIsEditingSegment:j,isSidebarExpanded:P,setIsSidebarExpanded:R,artifactTitleIds:o,config:w,labels:E,callbacks:s,isDisabled:S,handleSaveUserStory:V,handleUpdateContentId:q,showNotification:W,scrollToElement:$};return e(x.Provider,{value:G,children:e("div",{className:`${g.container} ${(null==f?void 0:f.container)||""}`,style:{...H,...null===(I=null==A?void 0:A.approvalScreen)||void 0===I?void 0:I.wrapperContainer},children:y})})},{Sidebar:({Component:o,config:t,className:l})=>{const{isSidebarExpanded:n,selectedStoryArtifactId:r,setSelectedStoryArtifactId:i,userStoryForApproval:a,isEditingSegment:s,artifactTitleIds:d}=T();return o?e(o,{isSidebarExpanded:n,selectedStoryArtifactId:r,setSelectedStoryArtifactId:i,userStoryForApproval:a,isEditingAnUserStorySegment:s,artifactTitleIds:d}):e(I,{config:t,className:l})},SidebarToggle:({OpenIcon:o,CloseIcon:t,className:l=""})=>{const{isSidebarExpanded:n,setIsSidebarExpanded:r}=T(),i=o||N,a=t||U;return e("div",{className:`${g.sidebarToggleWrapper} ${l}`,children:e("button",{onClick:()=>r(e=>!e),className:g.sidebarToggleBtn,"aria-label":n?"Collapse sidebar":"Expand sidebar",type:"button",children:e(n?a:i,{})})})},Content:({children:i,ButtonComponent:a,hideApproveAll:c=!1,pageTitle:u="Review Generated Requirements",showShareIcon:v=!1,handleDownloadUserStory:p,handleOpenSendDialog:h,pageDescription:S="This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements."})=>{var I,N,U,x,M,_,R,z,W,$,L,O,V,q,H,G,Y,J,K,Q,X,Z,ee,oe,te,le,ne,re,ie,ae,se;const{selectedUserStoryForApproval:de,selectedUserStoryIndex:ce,artifactTitleIds:ue,labels:ve,config:pe,isDisabled:me,isEditingSegment:he,handleSaveUserStory:Se,setCurrentContentId:ye,showNotification:ge}=T(),{userStory:fe,setUserStory:be}=d(),Ie=fe[0],[Ce,Ae]=l(null),we=()=>{Ae(null)},Ee=n(null),[Ne,Ue]=l(!1),{customStyles:xe,customIcons:Te}=d(),ke=null==xe?void 0:xe.userStoryCardStyles,[Be,De]=l(!1),Fe=r(()=>{if(!de)return;if(he)return void ge("warn","Warning!",ve.unsavedChangesWarning,3e3);const e=m(de);Se(ce,e),ye("")},[de,ce,he,ve,Se,ye,ge]);if(!de)return null;const je=ue[ce]||"",Pe="APPROVED"===de.approval_status,Me=null!=(null==de?void 0:de.big_enough)&&!Number.isNaN(de.big_enough)&&!!(null==de?void 0:de.big_enough_decision_factors);return o("div",{className:g.content,style:{...null===(N=null===(I=null==xe?void 0:xe.approvalScreen)||void 0===I?void 0:I.content)||void 0===N?void 0:N.content},"data-lsc-ui-page-title":u,"data-lsc-ui-page-description":S,children:[o("div",{className:g.header,style:{...null===(M=null===(x=null===(U=null==xe?void 0:xe.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===M?void 0:M.header},children:[o("div",{className:g.headerLeft,style:{...null===(R=null===(_=null==xe?void 0:xe.approvalScreen)||void 0===_?void 0:_.content)||void 0===R?void 0:R.headerLeft},children:[o("div",{className:g.headerMeta,style:{...null===($=null===(W=null===(z=null==xe?void 0:xe.approvalScreen)||void 0===z?void 0:z.body)||void 0===W?void 0:W.contentSegment)||void 0===$?void 0:$.headerMeta},children:[e(b,{size:16,color:(null===(V=null===(O=null===(L=null==xe?void 0:xe.approvalScreen)||void 0===L?void 0:L.body)||void 0===O?void 0:O.contentSegment)||void 0===V?void 0:V.bookMarkColor)||"#8C8C8C"}),e("h2",{className:g.headerArtifactId,style:{...null===(G=null===(H=null===(q=null==xe?void 0:xe.approvalScreen)||void 0===q?void 0:q.body)||void 0===H?void 0:H.contentSegment)||void 0===G?void 0:G.headerArtifactId},children:je})]}),e("p",{className:g.headerTitle,style:{...null===(K=null===(J=null===(Y=null==xe?void 0:xe.approvalScreen)||void 0===Y?void 0:Y.body)||void 0===J?void 0:J.contentSegment)||void 0===K?void 0:K.headerTitle},children:null==de?void 0:de.title})]}),o("div",{className:null==g?void 0:g.containerStyle,style:null===(X=null===(Q=null==xe?void 0:xe.approvalScreen)||void 0===Q?void 0:Q.BigEnoughStyles)||void 0===X?void 0:X.containerStyle,children:[Me&&e("button",{className:g.developerEffortButton,style:null===(ee=null===(Z=null==xe?void 0:xe.approvalScreen)||void 0===Z?void 0:Z.BigEnoughStyles)||void 0===ee?void 0:ee.buttonStyle,onClick:()=>De(!Be),children:e(B,{color:null===(te=null===(oe=null==xe?void 0:xe.approvalScreen)||void 0===oe?void 0:oe.BigEnoughStyles)||void 0===te?void 0:te.iconColor,size:null===(ne=null===(le=null==xe?void 0:xe.approvalScreen)||void 0===le?void 0:le.BigEnoughStyles)||void 0===ne?void 0:ne.iconSize})}),v&&o(t,{children:[e("button",{className:g.iconButton,style:null==ke?void 0:ke.iconButton,onClick:e=>{Ae(e.currentTarget)},children:e(C,{size:16})}),o(D,{id:"user-story-share-menu",anchorEl:Ce,open:!!Ce,onClose:()=>Ae(null),style:null==ke?void 0:ke.userStoryShareMenu,children:[e(F,{style:null==ke?void 0:ke.userStoryMenuItem,onClick:async()=>{Ue(!0),p&&(await Promise.all([p("pdf"),p("doc")]),Ue(!1))},children:o("div",{ref:Ee,className:g.menuItemContent,style:null==ke?void 0:ke.menuItemContent,children:[e(A,{size:16,color:null==ke?void 0:ke.menuIconColor}),e("p",{style:null==ke?void 0:ke.menuLabel,children:"Download"})]})}),e(F,{style:null==ke?void 0:ke.userStoryMenuItem,onClick:async()=>{let e=Ie;e={...Ie,value:`${P(null==Ie?void 0:Ie.value,Ie.title)} \n${Ie.value}`},null==h||h(!0,[e],Ie.artifactId),we()},children:o("div",{style:null==ke?void 0:ke.menuItemContent,className:g.menuItemContentPadded,children:[e(w,{size:16,color:null==ke?void 0:ke.menuIconColor}),e("p",{style:null==ke?void 0:ke.menuLabel,children:"Send"})]})}),e(F,{style:null==ke?void 0:ke.userStoryMenuItem,onClick:async()=>{const e=(new s.Converter).makeHtml(j(Ie.value)||Ie.value),o=function(e){const o=(new s.Converter).makeHtml(e),t=document.createElement("div");return t.innerHTML=o,t.textContent||t.innerText||""}(j(Ie.value)||Ie.value),t=new ClipboardItem({"text/plain":new Blob([o],{type:"text/plain"}),"text/html":new Blob([e],{type:"text/html"})});try{await navigator.clipboard.write([t]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{we()}},children:o("div",{style:null==ke?void 0:ke.menuItemContent,className:g.menuItemContentPadded,children:[e(E,{size:16,color:null==ke?void 0:ke.menuIconColor}),e("p",{style:null==ke?void 0:ke.menuLabel,children:"Copy"})]})})]})]}),!c&&pe.showApproveAllButton&&e("div",{className:g.headerRight,children:Pe?e(y,{status:"APPROVED",label:ve.approved}):a?e(a,{type:"fill",onClick:Fe,isDisable:me,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:ve.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."},children:o("div",{className:g.approveAllContent,children:[e(f,{size:16,color:"white"}),e("span",{children:ve.approveAll})]})}):o("button",{onClick:Fe,disabled:me,className:g.approveAllButtonDefault,style:{...null===(ie=null===(re=null==xe?void 0:xe.approvalScreen)||void 0===re?void 0:re.content)||void 0===ie?void 0:ie.approveAllButtonDefault},children:[e(f,{size:16,color:"white"}),e("span",{children:ve.approveAll})]})})]})]}),Be&&Me&&e("div",{className:g.bigEnoughWrapper,children:e(k,{customIcons:null==Te?void 0:Te.userStoryIcons,customStyles:null===(ae=null==xe?void 0:xe.approvalScreen)||void 0===ae?void 0:ae.aiReasoningCitaionStyles,currentUserStory:de,panelStyles:null===(se=null==xe?void 0:xe.approvalScreen)||void 0===se?void 0:se.BigEnoughStyles,showPanel:Be})}),i]})},Body:({children:t,EditorComponent:l,ViewerComponent:n,handleDownloadUserStory:i,handleOpenSendDialog:a,showShareIcon:s=!1})=>{var c,u,v;const{selectedUserStoryForApproval:p,selectedUserStoryIndex:m,artifactTitleIds:h,handleSaveUserStory:y}=T(),{customStyles:f}=d(),b=r(e=>{y(m,e)},[m,y]),I=r((e,o)=>{var t;if(!p)return;const l={...p,sub_features:null===(t=p.sub_features)||void 0===t?void 0:t.map((t,l)=>l===e?o:t)};y(m,l)},[p,m,y]),C=r(e=>{var o;if(!p)return;const t={...p,sub_features:null===(o=p.sub_features)||void 0===o?void 0:o.filter((o,t)=>t!==e)};y(m,t)},[p,m,y]);if(!p)return null;const A=h[m]||"";return o("div",{className:g.body,style:{...null===(u=null===(c=null==f?void 0:f.approvalScreen)||void 0===c?void 0:c.body)||void 0===u?void 0:u.container},children:[e(S,{userStoryForApproval:p,artifactTitleId:A,onSaveMainStoryContent:b,EditorComponent:l,ViewerComponent:n}),null===(v=p.sub_features)||void 0===v?void 0:v.map((o,t)=>e(S,{userStoryForApproval:o,artifactTitleId:`${A} - ${String.fromCharCode(65+t)}`,isSubFeature:!0,subFeatureIndex:t,onSaveSubFeature:I,onDeleteSubFeature:C,EditorComponent:l,ViewerComponent:n,handleDownloadUserStory:i,handleOpenSendDialog:a,showShareIcon:s},o.artifactId)),t]})}});export{R as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",developerEffortButton:"UserStoryApprovalScreen-module_developerEffortButton__9EfUX",containerStyle:"UserStoryApprovalScreen-module_containerStyle__PS6Gn",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_developerEffortButton__9EfUX{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.UserStoryApprovalScreen-module_containerStyle__PS6Gn{align-items:center;display:flex;gap:3px}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",developerEffortButton:"UserStoryApprovalScreen-module_developerEffortButton__9EfUX",containerStyle:"UserStoryApprovalScreen-module_containerStyle__PS6Gn",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ",iconButton:"UserStoryApprovalScreen-module_iconButton__PGTVl",menuItemContent:"UserStoryApprovalScreen-module_menuItemContent__SCM6V",menuItemContentPadded:"UserStoryApprovalScreen-module_menuItemContentPadded__3UjuU"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_developerEffortButton__9EfUX{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.UserStoryApprovalScreen-module_containerStyle__PS6Gn{align-items:center;display:flex;gap:3px}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}.UserStoryApprovalScreen-module_iconButton__PGTVl{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.UserStoryApprovalScreen-module_menuItemContent__SCM6V{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.UserStoryApprovalScreen-module_menuItemContentPadded__3UjuU{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as e,jsx as r}from"react/jsx-runtime";import l from"./ApprovalBadge.module.css.js";import{CheckIcon as o}from"../../../../icons/CheckIcon.js";import{useRequirementAI as s}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const a=({status:a,label:m="Approved",size:t="medium",className:i})=>{var n,p;const{customStyles:d}=s();if("APPROVED"!==a)return null;const c="small"===t?l.small:l.medium;return e("div",{className:`${l.badge} ${c} ${i||""}`,style:{...null===(p=null===(n=null==d?void 0:d.approvalScreen)||void 0===n?void 0:n.content)||void 0===p?void 0:p.approvalBadge},children:[r(o,{size:"small"===t?14:16}),r("span",{children:m})]})};export{a as ApprovalBadge,a as default};
|
|
2
2
|
//# sourceMappingURL=ApprovalBadge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as i}from"react/jsx-runtime";import{useMemo as t,useCallback as o}from"react";import r from"../../../../icons/MenuUnfoldIcon.js";import{ApprovalSidebarItem as a}from"../ApprovalSidebarItem/ApprovalSidebarItem.js";import l from"./ApprovalSidebar.module.css.js";import{useUserStoryApprovalScreen as d}from"../../UserStoryApprovalContext.js";import{useRequirementAI as n}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const s={descriptionCharLimit:116,sidebarTitle:"Generated User Stories",TooltipComponent:void 0,InfoIconComponent:void 0,HeaderIconComponent:void 0},c=({config:c={},className:p=""})=>{var v,m,u,f,I,S,h,b,y,g,A,N;const{customIcons:T,customStyles:x}=n(),{isSidebarExpanded:C,selectedStoryArtifactId:j,setSelectedStoryArtifactId:E,userStoryForApproval:L,isEditingSegment:w,artifactTitleIds:P,showNotification:R,labels:U}=d(),W=t(()=>({...s,...c}),[c]),{sidebarTitle:q,HeaderIconComponent:B}=W,H=t(()=>L.map((e,i)=>({artifactTitleId:P&&P[i]||"",artifactId:e.artifactId,title:e.title,description:e.description||"",approvalStatus:e.approval_status||"NOT_APPROVED",index:i})),[L,P]),O=o(e=>{E(e)},[E]),_=o(()=>{R("warn","Warning!","Please save the latest changes to proceed with the other segment.",3e3)},[R]),k=[l.container,C?l.containerExpanded:l.containerCollapsed,p].filter(Boolean).join(" "),z=B||r;return e("div",{className:k,style:{...null===(m=null===(v=null==x?void 0:x.approvalScreen)||void 0===v?void 0:v.sidebar)||void 0===m?void 0:m.container},children:i("div",{className:l.inner,style:{...null===(f=null===(u=null==x?void 0:x.approvalScreen)||void 0===u?void 0:u.sidebar)||void 0===f?void 0:f.innerContainer},children:[i("div",{className:l.header,style:{...null===(S=null===(I=null==x?void 0:x.approvalScreen)||void 0===I?void 0:I.sidebar)||void 0===S?void 0:S.header},children:[e("div",{className:l.headerIcon,style:{...null===(b=null===(h=null==x?void 0:x.approvalScreen)||void 0===h?void 0:h.sidebar)||void 0===b?void 0:b.headerIcon},children:e(z,{size:20})}),e("h2",{className:l.headerTitle,style:{...null===(g=null===(y=null==x?void 0:x.approvalScreen)||void 0===y?void 0:y.sidebar)||void 0===g?void 0:g.headerTitle},children:q})]}),e("div",{className:l.storyList,style:{...null===(N=null===(A=null==x?void 0:x.approvalScreen)||void 0===A?void 0:A.sidebar)||void 0===N?void 0:N.storyList},role:"listbox",children:H.map((i,t)=>e(a,{artifactTitleId:i.artifactTitleId,artifactId:i.artifactId,title:i.title,description:i.description,approvalStatus:i.approvalStatus,index:i.index,isLast:t===H.length-1,isSelected:j===i.artifactId,isEditingSegment:w,onSelect:O,onNavigationBlocked:_,sidebarConfig:W},i.artifactId))})]})})};export{c as ApprovalSidebar,c as default};
|
|
2
2
|
//# sourceMappingURL=ApprovalSidebar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as i,jsxs as o}from"react/jsx-runtime";import{useState as e,useCallback as l}from"react";import{BookmarkIcon as n}from"../../../../icons/BookmarkIcon.js";import{ApprovalStatusBadge as d}from"../ApprovalStatusBadge/ApprovalStatusBadge.js";import{replaceLearnedTagsWithInfo as a}from"../../../../utils/learned-tag.utils.js";import r from"./ApprovalSidebarItem.module.css.js";import{useRequirementAI as t}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import s from"../../../../icons/RelevanceScoreIcon.js";import{stripAiReasoningAnchors as v,extractAllAiReasoningIds as c}from"../../../../utils/helpers.js";import p from"../../../ai-reasoning/AiReasoningCitation.js";const u=({artifactTitleId:u,artifactId:m,title:S,description:b,approvalStatus:I,index:f,isLast:g,isSelected:h,isEditingSegment:C,onSelect:N,onNavigationBlocked:y,sidebarConfig:R,className:j=""})=>{var B,k,A,w,x,L,q,z,G,H,P,T,W,E,F,M,$,D,J,K,O,Q,U,V,X,Y,Z,_,ii,oi,ei,li,ni,di;const[ai,ri]=e(!1),{customStyles:ti,getAvgScoreForStory:si,aiReasoning:vi}=t(),ci=si(m),{descriptionCharLimit:pi,TooltipComponent:ui,InfoIconComponent:mi}=R,Si=l(()=>{C?null==y||y():N(m)},[m,C,N,y]),bi=l(i=>{i.stopPropagation(),ri(i=>!i)},[]),Ii=v(b),fi=ai?Ii:Ii.length>pi?Ii.slice(0,pi):Ii,gi=Ii.length>pi,hi=[r.item,g?r.itemLast:"",h?r.itemSelected:"",j].filter(Boolean).join(" "),Ci=c(b).map(i=>vi.find(o=>o.id.toString()===i)).filter(Boolean);return i("div",{className:hi,style:{...null===(A=null===(k=null===(B=null==ti?void 0:ti.approvalScreen)||void 0===B?void 0:B.sidebar)||void 0===k?void 0:k.sidebarItem)||void 0===A?void 0:A.container},onClick:Si,role:"option","aria-selected":h,children:o("div",{className:r.itemContent,style:{...null===(L=null===(x=null===(w=null==ti?void 0:ti.approvalScreen)||void 0===w?void 0:w.sidebar)||void 0===x?void 0:x.sidebarItem)||void 0===L?void 0:L.itemContent},children:[o("div",{className:r.topRow,style:{...null===(G=null===(z=null===(q=null==ti?void 0:ti.approvalScreen)||void 0===q?void 0:q.sidebar)||void 0===z?void 0:z.sidebarItem)||void 0===G?void 0:G.topRow},children:[o("span",{className:r.artifactIdGroup,style:{...null===(T=null===(P=null===(H=null==ti?void 0:ti.approvalScreen)||void 0===H?void 0:H.sidebar)||void 0===P?void 0:P.sidebarItem)||void 0===T?void 0:T.artifactIdGroup},children:[i(n,{size:20,color:(null===(F=null===(E=null===(W=null==ti?void 0:ti.approvalScreen)||void 0===W?void 0:W.sidebar)||void 0===E?void 0:E.sidebarItem)||void 0===F?void 0:F.bookMarkColor)||"#8C8C8C"}),i("span",{children:u})]}),o("div",{className:r.scoreBadgeContainer,children:[ci>0&&o("span",{className:r.confidenceScore,style:null===(D=null===($=null===(M=null==ti?void 0:ti.approvalScreen)||void 0===M?void 0:M.sidebar)||void 0===$?void 0:$.sidebarItem)||void 0===D?void 0:D.confidenceScore,children:[i(s,{size:14,color:(null===(Q=null===(O=null===(K=null===(J=null==ti?void 0:ti.approvalScreen)||void 0===J?void 0:J.sidebar)||void 0===K?void 0:K.sidebarItem)||void 0===O?void 0:O.confidenceScoreIcon)||void 0===Q?void 0:Q.color)||"#166534"}),ci,"%"]}),i(d,{status:I})]})]}),o("span",{className:r.titleRow,style:{...null===(X=null===(V=null===(U=null==ti?void 0:ti.approvalScreen)||void 0===U?void 0:U.sidebar)||void 0===V?void 0:V.sidebarItem)||void 0===X?void 0:X.titleRow},children:[i("span",{className:r.titleIndex,style:{...null===(_=null===(Z=null===(Y=null==ti?void 0:ti.approvalScreen)||void 0===Y?void 0:Y.sidebar)||void 0===Z?void 0:Z.sidebarItem)||void 0===_?void 0:_.titleIndex},children:`${f+1}.`}),i("span",{children:a(S,ui,mi)})]}),b&&o("span",{className:r.description,style:{...null===(ei=null===(oi=null===(ii=null==ti?void 0:ti.approvalScreen)||void 0===ii?void 0:ii.sidebar)||void 0===oi?void 0:oi.sidebarItem)||void 0===ei?void 0:ei.description},children:[fi,gi&&i("button",{onClick:bi,className:r.moreButton,style:{...null===(di=null===(ni=null===(li=null==ti?void 0:ti.approvalScreen)||void 0===li?void 0:li.sidebar)||void 0===ni?void 0:ni.sidebarItem)||void 0===di?void 0:di.moreButton},"aria-label":ai?"Show less":"Show more",children:ai?"less":"more"}),Ci.length>0&&i("span",{className:r.aiReasoningContainer,onClick:i=>i.stopPropagation(),children:null==Ci?void 0:Ci.map(o=>i(p,{aiReason:o,isSourceHasHighlight:!1},null==o?void 0:o.id))})]})]})})};export{u as ApprovalSidebarItem,u as default};
|
|
2
2
|
//# sourceMappingURL=ApprovalSidebarItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import o from"./ApprovalStatusBadge.module.css.js";import{useRequirementAI as r}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const d={approved:"Approved",inProgress:"In Progress",notApproved:"Not Approved"},a=({status:a,labels:l={},className:s=""})=>{var i,p,v,n,t,u,c,m,g,b,A,P;const S={...d,...l},{customStyles:I}=r();switch(a){case"APPROVED":return e("span",{className:`${o.badgeApproved} ${s}`,style:{...null===(n=null===(v=null===(p=null===(i=null==I?void 0:I.approvalScreen)||void 0===i?void 0:i.sidebar)||void 0===p?void 0:p.sidebarItem)||void 0===v?void 0:v.approvalStatusBadge)||void 0===n?void 0:n.badgeApproved},children:S.approved});case"IN_PROGRESS":return e("span",{className:`${o.badgeInProgress} ${s}`,style:{...null===(m=null===(c=null===(u=null===(t=null==I?void 0:I.approvalScreen)||void 0===t?void 0:t.sidebar)||void 0===u?void 0:u.sidebarItem)||void 0===c?void 0:c.approvalStatusBadge)||void 0===m?void 0:m.badgeInProgress},children:S.inProgress});case"NOT_APPROVED":return e("span",{className:`${o.badgeNotApproved} ${s}`,style:{...null===(P=null===(A=null===(b=null===(g=null==I?void 0:I.approvalScreen)||void 0===g?void 0:g.sidebar)||void 0===b?void 0:b.sidebarItem)||void 0===A?void 0:A.approvalStatusBadge)||void 0===P?void 0:P.badgeNotApproved},children:S.notApproved});default:return null}};export{a as ApprovalStatusBadge,a as default};
|
|
2
2
|
//# sourceMappingURL=ApprovalStatusBadge.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as o,jsx as n}from"react/jsx-runtime";import{useState as e,useRef as l,useCallback as t,useEffect as i}from"react";import d from"./ContentBlock.module.css.js";import{CheckIcon as v}from"../../../../icons/CheckIcon.js";import{PencilIcon as c}from"../../../../icons/PencilIcon.js";import{TrashIcon as r}from"../../../../icons/TrashIcon.js";import{useUserStoryApprovalScreen as u}from"../../UserStoryApprovalContext.js";import{useRequirementAI as a}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const s=({segment:s,segmentIndex:p,isSubFeature:m=!1,onSaveContent:S,onApproveContent:y,onDeleteContent:g,EditorComponent:b,ViewerComponent:B})=>{var h,k,C,I,x,f,N,A,T,w,D,j,E,M,W,z,R,V,F,U,q,H,$,_,L,P,G,J,K,O,Q,X,Y,Z,oo,no,eo,lo,to,io,vo,co,ro,uo,ao,so,po,mo,So,yo,go,bo,Bo,ho,ko,Co,Io,xo,fo,No,Ao,To,wo,Do,jo,Eo,Mo,Wo,zo,Ro,Vo,Fo,Uo,qo,Ho,$o,_o,Lo,Po,Go;const{currentContentId:Jo,handleUpdateContentId:Ko,isDisabled:Oo,isEditingSegment:Qo,setIsEditingSegment:Xo,config:Yo,labels:Zo,showNotification:on}=u(),{customStyles:nn,customIcons:en}=a(),[ln,tn]=e(!1),dn=l(s.content),vn=l(null),[cn,rn]=e(0),un=s.contentId===Jo,an=t(()=>{if(!vn.current)return;const o=vn.current;o.style.scrollMarginTop="90px",o.scrollIntoView({behavior:"smooth",block:"start"})},[]),sn=t(()=>{if(!vn.current)return;const o=vn.current;o.style.scrollMarginBottom="90px",o.scrollIntoView({behavior:"smooth",block:"end"})},[]);i(()=>{if(!un||!vn.current||ln)return;const o=setTimeout(()=>{sn()},200);return()=>clearTimeout(o)},[Jo,un,ln,sn]),i(()=>{if(0===cn)return;const o=setTimeout(()=>{an()},150);return()=>clearTimeout(o)},[cn,an]),i(()=>{dn.current=s.content},[s.content]);const pn=t(()=>{dn.current=s.content,tn(!0),Xo(!0),rn(o=>o+1)},[s.content,Xo]),mn=t(()=>{dn.current=s.content,tn(!1),Xo(!1)},[s.content,Xo]),Sn=t((o,n)=>{dn.current=n},[]),yn=t(()=>{const o=dn.current;(null==o?void 0:o.trim())?(tn(!1),Xo(!1),S(p,o)):on("warn","Warning!",Zo.emptyContentWarning,3e3)},[p,S,Xo,on,Zo.emptyContentWarning]),gn=t(()=>{y(p),Ko(s.contentId)},[p,s.contentId,y,Ko]),bn=t(()=>{null==g||g(p)},[p,g]),Bn=[d.container,un?d.containerActive:d.containerDefault].join(" "),hn=null===(C=null===(k=null===(h=null==nn?void 0:nn.approvalScreen)||void 0===h?void 0:h.body)||void 0===k?void 0:k.contentSegment)||void 0===C?void 0:C.contentBlock,kn=un?(null==hn?void 0:hn.currentSegementContainer)||{boxShadow:"0px 4px 14.3px 0px rgba(151, 71, 255, 0.3), 0px -4px 34.7px 0px rgba(51, 210, 255, 0.05)"}:(null==hn?void 0:hn.containerDefault)||{};return o("div",{className:Bn,style:kn,ref:vn,children:[s.isApproved&&o("div",{className:d.approvedBadge,style:{...null===(N=null===(f=null===(x=null===(I=null==nn?void 0:nn.approvalScreen)||void 0===I?void 0:I.body)||void 0===x?void 0:x.contentSegment)||void 0===f?void 0:f.contentBlock)||void 0===N?void 0:N.approvedBadge},children:[n("span",{children:Zo.approved}),n(v,{size:16,color:null===(D=null===(w=null===(T=null===(A=null==nn?void 0:nn.approvalScreen)||void 0===A?void 0:A.body)||void 0===T?void 0:T.contentSegment)||void 0===w?void 0:w.contentBlock)||void 0===D?void 0:D.checkIconColor})]}),n("div",{className:d.contentArea,style:{...null===(W=null===(M=null===(E=null===(j=null==nn?void 0:nn.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===M?void 0:M.contentBlock)||void 0===W?void 0:W.contentArea},children:ln&&b?n(b,{minHeight:"100%",height:"100%",type:"string",value:s.content||"",handleUpdateState:Sn,doNotShowBorderInViewMode:!1,mode:"edit"}):B?n(B,{message:s.content||"",scenario:"approving",customStyles:{...null===(z=null==nn?void 0:nn.userStoryScreenStyles)||void 0===z?void 0:z.userStoryContentStyles},customIcons:{...null==en?void 0:en.userStoryIcons}}):n("div",{className:d.contentFallback,dangerouslySetInnerHTML:{__html:s.content||""}})}),ln?o("div",{className:d.editActionsContainer,style:{...null===(Do=null===(wo=null===(To=null===(Ao=null==nn?void 0:nn.approvalScreen)||void 0===Ao?void 0:Ao.body)||void 0===To?void 0:To.contentSegment)||void 0===wo?void 0:wo.contentBlock)||void 0===Do?void 0:Do.editActionsContainer},children:[n("button",{onClick:mn,className:d.outlineButton,style:{...null===(Wo=null===(Mo=null===(Eo=null===(jo=null==nn?void 0:nn.approvalScreen)||void 0===jo?void 0:jo.body)||void 0===Eo?void 0:Eo.contentSegment)||void 0===Mo?void 0:Mo.contentBlock)||void 0===Wo?void 0:Wo.outlineButton,...null===(Fo=null===(Vo=null===(Ro=null===(zo=null==nn?void 0:nn.approvalScreen)||void 0===zo?void 0:zo.body)||void 0===Ro?void 0:Ro.contentSegment)||void 0===Vo?void 0:Vo.contentBlock)||void 0===Fo?void 0:Fo.cancelButton},children:Zo.cancel}),n("button",{onClick:yn,className:d.outlineButton,style:{...null===($o=null===(Ho=null===(qo=null===(Uo=null==nn?void 0:nn.approvalScreen)||void 0===Uo?void 0:Uo.body)||void 0===qo?void 0:qo.contentSegment)||void 0===Ho?void 0:Ho.contentBlock)||void 0===$o?void 0:$o.outlineButton,...null===(Go=null===(Po=null===(Lo=null===(_o=null==nn?void 0:nn.approvalScreen)||void 0===_o?void 0:_o.body)||void 0===Lo?void 0:Lo.contentSegment)||void 0===Po?void 0:Po.contentBlock)||void 0===Go?void 0:Go.saveButton},children:Zo.save})]}):n("div",{className:d.actionsContainer,style:{...null===(U=null===(F=null===(V=null===(R=null==nn?void 0:nn.approvalScreen)||void 0===R?void 0:R.body)||void 0===V?void 0:V.contentSegment)||void 0===F?void 0:F.contentBlock)||void 0===U?void 0:U.actionsContainer},children:o("div",{className:d.actionsRow,style:{...null===(_=null===($=null===(H=null===(q=null==nn?void 0:nn.approvalScreen)||void 0===q?void 0:q.body)||void 0===H?void 0:H.contentSegment)||void 0===$?void 0:$.contentBlock)||void 0===_?void 0:_.actionsRow},children:[!Qo&&Yo.allowEditing&&o("button",{onClick:pn,className:d.actionButton,style:{...null===(J=null===(G=null===(P=null===(L=null==nn?void 0:nn.approvalScreen)||void 0===L?void 0:L.body)||void 0===P?void 0:P.contentSegment)||void 0===G?void 0:G.contentBlock)||void 0===J?void 0:J.actionButton},children:[n("span",{className:d.actionText,style:{...null===(X=null===(Q=null===(O=null===(K=null==nn?void 0:nn.approvalScreen)||void 0===K?void 0:K.body)||void 0===O?void 0:O.contentSegment)||void 0===Q?void 0:Q.contentBlock)||void 0===X?void 0:X.actionText},children:Zo.correctMe}),n(c,{size:16,color:(null===(no=null===(oo=null===(Z=null===(Y=null==nn?void 0:nn.approvalScreen)||void 0===Y?void 0:Y.body)||void 0===Z?void 0:Z.contentSegment)||void 0===oo?void 0:oo.contentBlock)||void 0===no?void 0:no.pencilIcon)||"#5928ED"})]}),!s.isApproved&&o("button",{disabled:Oo,onClick:gn,style:{...null===(io=null===(to=null===(lo=null===(eo=null==nn?void 0:nn.approvalScreen)||void 0===eo?void 0:eo.body)||void 0===lo?void 0:lo.contentSegment)||void 0===to?void 0:to.contentBlock)||void 0===io?void 0:io.approveButton},className:`${d.actionButton} ${Oo?d.actionDisabled:""}`,children:[n("span",{className:(null==hn?void 0:hn.approveText)?"":Oo?d.actionTextDisabled:d.actionText,style:{...null==hn?void 0:hn.approveText},children:Zo.approve}),n("span",{style:{...null===(uo=null===(ro=null===(co=null===(vo=null==nn?void 0:nn.approvalScreen)||void 0===vo?void 0:vo.body)||void 0===co?void 0:co.contentSegment)||void 0===ro?void 0:ro.contentBlock)||void 0===uo?void 0:uo.approveIconStyle},children:n(v,{size:16,color:Oo?(null===(mo=null===(po=null===(so=null===(ao=null==nn?void 0:nn.approvalScreen)||void 0===ao?void 0:ao.body)||void 0===so?void 0:so.contentSegment)||void 0===po?void 0:po.contentBlock)||void 0===mo?void 0:mo.disableApproveIconColor)||"#9CA3AF":(null===(bo=null===(go=null===(yo=null===(So=null==nn?void 0:nn.approvalScreen)||void 0===So?void 0:So.body)||void 0===yo?void 0:yo.contentSegment)||void 0===go?void 0:go.contentBlock)||void 0===bo?void 0:bo.approveIconColor)||"#5928ED"})})]}),m&&Yo.allowDeletion&&o("button",{onClick:bn,className:d.deleteButton,style:{...null===(Co=null===(ko=null===(ho=null===(Bo=null==nn?void 0:nn.approvalScreen)||void 0===Bo?void 0:Bo.body)||void 0===ho?void 0:ho.contentSegment)||void 0===ko?void 0:ko.contentBlock)||void 0===Co?void 0:Co.deleteButton},children:[n("span",{children:Zo.delete}),n(r,{size:16,color:(null===(No=null===(fo=null===(xo=null===(Io=null==nn?void 0:nn.approvalScreen)||void 0===Io?void 0:Io.body)||void 0===xo?void 0:xo.contentSegment)||void 0===fo?void 0:fo.contentBlock)||void 0===No?void 0:No.deleteIconColor)||"#ed3f28"})]})]})})]})};export{s as ContentBlock,s as default};
|
|
2
2
|
//# sourceMappingURL=ContentBlock.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as e,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as l,useRef as t,useCallback as i}from"react";import{ContentBlock as r}from"../ContentBlock/ContentBlock.js";import d from"./ContentSegment.module.css.js";import{ChevronUpIcon as a}from"../../../../icons/ChevronUpIcon.js";import{BookmarkIcon as u}from"../../../../icons/BookmarkIcon.js";import{ChevronDownIcon as v}from"../../../../icons/ChevronDownIcon.js";import{useRequirementAI as c}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as s}from"../../../story-screen/BigEnoughPanel.js";import{Menu as m,MenuItem as p}from"@mui/material";import{ExternalLink as y,Download as h,Share2 as S,Copy as C}from"lucide-react";import I from"showdown";import{formatMarkdown as f}from"../../../../utils/helpers.js";const g=({userStoryForApproval:g,artifactTitleId:b,isSubFeature:w=!1,subFeatureIndex:N,onSaveSubFeature:k,onDeleteSubFeature:j,onSaveMainStoryContent:x,EditorComponent:A,ViewerComponent:B,handleDownloadUserStory:M,handleOpenSendDialog:T,showShareIcon:F=!1})=>{var _,z,D,E,L,P,U,W,H,R,q,V,O,G,J,K,Q,X,Y,Z,$,ee,ne,oe,le,te,ie,re,de;const[ae,ue]=l(!0),{customStyles:ve,customIcons:ce}=c(),se=null==ve?void 0:ve.userStoryCardStyles,[me,pe]=l(null),[ye,he]=l(!1),Se=t(null),Ce=i(()=>{ue(e=>!e)},[]),Ie=i(e=>{if(void 0===N)return;const n={...g,value:g.value.map((n,o)=>o===e?{...n,isApproved:!0}:n)};null==k||k(N,n)},[g,N,k]),fe=i((e,n)=>{if(void 0===N)return;const o={...g,value:g.value.map((o,l)=>l===e?{...o,content:n}:o)};null==k||k(N,o)},[g,N,k]),ge=i(e=>{if(void 0===N)return;const n={...g,value:g.value.filter((n,o)=>o!==e)};0!==n.value.length?null==k||k(N,n):null==j||j(N)},[g,N,k,j]),be=i((e,n)=>{var o;if(w)return;const l=null===(o=g.value[e])||void 0===o?void 0:o.contentId;if(!l)return;const t={...g,value:g.value.map(e=>e.contentId===l?{...e,content:n}:e)};null==x||x(t)},[g,w,x]),we=i(e=>{var n;if(w)return;const o=null===(n=g.value[e])||void 0===n?void 0:n.contentId;if(!o)return;const l={...g,value:g.value.map(e=>e.contentId===o?{...e,isApproved:!0}:e)};null==x||x(l)},[g,w,x]),Ne=()=>{pe(null)},ke=e=>{var n;const o=e.value.map(e=>e.content).join("");return{...e,value:o,sub_features:null===(n=e.sub_features)||void 0===n?void 0:n.map(ke)}},je=null!=(null==g?void 0:g.big_enough)&&!Number.isNaN(g.big_enough)&&!!(null==g?void 0:g.big_enough_decision_factors);return e("div",{className:d.container,style:{...null===(D=null===(z=null===(_=null==ve?void 0:ve.approvalScreen)||void 0===_?void 0:_.body)||void 0===z?void 0:z.contentSegment)||void 0===D?void 0:D.container},children:[w&&e("button",{onClick:Ce,className:d.header,style:{...null===(P=null===(L=null===(E=null==ve?void 0:ve.approvalScreen)||void 0===E?void 0:E.body)||void 0===L?void 0:L.contentSegment)||void 0===P?void 0:P.header},children:[e("div",{className:d.headerContent,style:{...null===(H=null===(W=null===(U=null==ve?void 0:ve.approvalScreen)||void 0===U?void 0:U.body)||void 0===W?void 0:W.contentSegment)||void 0===H?void 0:H.headerContent},children:[e("div",{className:d.headerMeta,style:{...null===(V=null===(q=null===(R=null==ve?void 0:ve.approvalScreen)||void 0===R?void 0:R.body)||void 0===q?void 0:q.contentSegment)||void 0===V?void 0:V.headerMeta},children:[n(u,{size:16,color:(null===(J=null===(G=null===(O=null==ve?void 0:ve.approvalScreen)||void 0===O?void 0:O.body)||void 0===G?void 0:G.contentSegment)||void 0===J?void 0:J.bookMarkColor)||"#8C8C8C"}),n("h2",{className:d.headerArtifactId,style:{...null===(X=null===(Q=null===(K=null==ve?void 0:ve.approvalScreen)||void 0===K?void 0:K.body)||void 0===Q?void 0:Q.contentSegment)||void 0===X?void 0:X.headerArtifactId},children:b})]}),n("p",{className:d.headerTitle,style:{...null===($=null===(Z=null===(Y=null==ve?void 0:ve.approvalScreen)||void 0===Y?void 0:Y.body)||void 0===Z?void 0:Z.contentSegment)||void 0===$?void 0:$.headerTitle},children:null==g?void 0:g.title})]}),e("div",{className:d.headerToggle,style:{...null===(oe=null===(ne=null===(ee=null==ve?void 0:ve.approvalScreen)||void 0===ee?void 0:ee.body)||void 0===ne?void 0:ne.contentSegment)||void 0===oe?void 0:oe.headerToggle},children:[je&&n(s,{customIcons:null==ce?void 0:ce.userStoryIcons,customStyles:null===(le=null==ve?void 0:ve.approvalScreen)||void 0===le?void 0:le.aiReasoningCitaionStyles,currentUserStory:g,panelStyles:null===(te=null==ve?void 0:ve.approvalScreen)||void 0===te?void 0:te.BigEnoughStyles}),F&&e(o,{children:[n("button",{className:d.iconButton,style:null==se?void 0:se.iconButton,onClick:e=>{pe(e.currentTarget)},children:n(y,{size:16})}),e(m,{id:"user-story-share-menu",anchorEl:me,open:!!me,onClose:()=>pe(null),style:null==se?void 0:se.userStoryShareMenu,children:[n(p,{style:null==se?void 0:se.userStoryMenuItem,onClick:async()=>{he(!0),M&&(await Promise.all([M("pdf"),M("doc")]),he(!1))},children:e("div",{ref:Se,className:d.menuItemContent,style:null==se?void 0:se.menuItemContent,children:[n(h,{size:16,color:null==se?void 0:se.menuIconColor}),n("p",{style:null==se?void 0:se.menuLabel,children:"Download"})]})}),n(p,{style:null==se?void 0:se.userStoryMenuItem,onClick:async()=>{const e=ke(g);null==T||T(!0,[e],g.artifactId),Ne()},children:e("div",{style:null==se?void 0:se.menuItemContent,className:d.menuItemContentPadded,children:[n(S,{size:16,color:null==se?void 0:se.menuIconColor}),n("p",{style:null==se?void 0:se.menuLabel,children:"Send"})]})}),n(p,{style:null==se?void 0:se.userStoryMenuItem,onClick:async()=>{const e=new I.Converter,n=g.value.map(e=>e.content).join(""),o=e.makeHtml(f(n)||n),l=(e=>{const n=(new I.Converter).makeHtml(e),o=document.createElement("div");return o.innerHTML=n,o.textContent||o.innerText||""})(f(n)||n),t=new ClipboardItem({"text/plain":new Blob([l],{type:"text/plain"}),"text/html":new Blob([o],{type:"text/html"})});try{await navigator.clipboard.write([t]),console.log("Copied User Story")}catch(e){console.error("Failed to copy user story:",e)}finally{Ne()}},children:e("div",{style:null==se?void 0:se.menuItemContent,className:d.menuItemContentPadded,children:[n(C,{size:16,color:null==se?void 0:se.menuIconColor}),n("p",{style:null==se?void 0:se.menuLabel,children:"Copy"})]})})]})]}),n(ae?a:v,{size:16})]})]}),ae&&n("div",{className:d.contentWrapper,style:{...null===(de=null===(re=null===(ie=null==ve?void 0:ve.approvalScreen)||void 0===ie?void 0:ie.body)||void 0===re?void 0:re.contentSegment)||void 0===de?void 0:de.contentWrapper},children:Array.isArray(null==g?void 0:g.value)&&g.value.map((e,o)=>n(r,{segment:e,segmentIndex:o,isSubFeature:w,onSaveContent:w?fe:be,onApproveContent:w?Ie:we,onDeleteContent:w?ge:void 0,EditorComponent:A,ViewerComponent:B},e.contentId))})]})};export{g as ContentSegment,g as default};
|
|
2
2
|
//# sourceMappingURL=ContentSegment.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem;position:relative}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={container:"ContentSegment-module_container__pZD9O",header:"ContentSegment-module_header__zzh-M",headerContent:"ContentSegment-module_headerContent__o77O4",headerMeta:"ContentSegment-module_headerMeta__Iv4Wf",headerArtifactId:"ContentSegment-module_headerArtifactId__Gr4B2",headerTitle:"ContentSegment-module_headerTitle__U7nsT",headerToggle:"ContentSegment-module_headerToggle__45got",contentWrapper:"ContentSegment-module_contentWrapper__eIUig",iconButton:"ContentSegment-module_iconButton__0F6ls",menuItemContent:"ContentSegment-module_menuItemContent__39-so",menuItemContentPadded:"ContentSegment-module_menuItemContentPadded__CP7YL"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".ContentSegment-module_container__pZD9O{display:flex;flex-direction:column;font-family:Inter,sans-serif}.ContentSegment-module_header__zzh-M{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-left:none;border-right:none;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;justify-content:space-between;padding:1rem 2rem;position:relative}.ContentSegment-module_headerContent__o77O4{display:flex;flex-direction:column;gap:.5rem}.ContentSegment-module_headerMeta__Iv4Wf{align-items:center;color:#8c8c8c;display:flex;flex-direction:row;gap:8px}.ContentSegment-module_headerArtifactId__Gr4B2{color:#6932e2;font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.ContentSegment-module_headerTitle__U7nsT{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.ContentSegment-module_headerToggle__45got{align-items:center;display:flex;justify-content:center}.ContentSegment-module_contentWrapper__eIUig{display:flex;flex-direction:column;gap:16px;padding:16px 32px}.ContentSegment-module_iconButton__0F6ls{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;display:flex;justify-content:center;margin-left:.5rem;padding:.4rem .8rem}.ContentSegment-module_menuItemContent__39-so{align-items:center;display:flex;flex-direction:row;gap:.5rem;margin-left:.25rem}.ContentSegment-module_menuItemContentPadded__CP7YL{align-items:center;display:flex;flex-direction:row;gap:.5rem;padding-left:.25rem}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=ContentSegment.module.css.js.map
|