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