@e-llm-studio/requirement-ai 0.0.224 → 0.0.225
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/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
- package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +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/UserStoryCard.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/ai-reasoning/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/ai-reasoning/pdfCitationUtils.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +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/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/UserStoryApprovalContext.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/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/components/HighlightButtonComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/cjs/features/RequirementAI/icons/CDIcon.js +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/shared/useMarkdownSearch.js +1 -1
- package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/cjs/features/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.context.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/cjs/features/UserStoryImport/index.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
- package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/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/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
- package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +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/UserStoryCard.module.css.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
- package/dist/features/RequirementAI/components/ai-reasoning/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/ai-reasoning/pdfCitationUtils.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
- package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
- package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
- package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
- package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +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/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/UserStoryApprovalContext.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/components/HighlightButtonComponent.js +1 -1
- package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
- package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
- package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
- package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
- package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
- package/dist/features/RequirementAI/icons/CDIcon.js +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/shared/useMarkdownSearch.js +1 -1
- package/dist/features/RequirementAI/store/markdown-context.js +1 -1
- package/dist/features/RequirementAI/store/ref.context.js +1 -1
- package/dist/features/RequirementAI/utils/css.utils.js +1 -1
- package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
- package/dist/features/RequirementAI/utils/helpers.js +1 -1
- package/dist/features/RequirementAI/utils/json-helper.js +1 -1
- package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
- package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
- package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
- package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
- package/dist/features/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.context.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
- package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
- package/dist/features/UserStoryImport/components/BackNav.js +1 -1
- package/dist/features/UserStoryImport/components/Badge.js +1 -1
- package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
- package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
- package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
- package/dist/features/UserStoryImport/components/Footer.js +1 -1
- package/dist/features/UserStoryImport/components/Header.js +1 -1
- package/dist/features/UserStoryImport/components/NavRow.js +1 -1
- package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
- package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
- package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
- package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
- package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
- package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
- package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
- package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
- package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
- package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
- package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
- package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
- package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
- package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
- package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
- package/dist/features/UserStoryImport/index.js +1 -1
- package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
- package/dist/features/UserStoryImport/lib/cn.js +1 -1
- package/dist/features/UserStoryImport/lib/dialog.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -2
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react"),n=require("./CitationRenderer.module.css.js");const i=new Map;exports.collapseAllCitations=()=>{i.clear()},exports.collapseCitationsByIds=t=>{t.forEach(t=>i.delete(t))},exports.default=({inLineCitation:a,citationTitle:o,citationId:s,citationIcon:l,chevronUpComponent:r,chevronDownComponent:c,additionalCallbackForPillButton:p,citationComponent:d,styles:u={},isOpen:j,onToggle:C,defaultExpanded:x=!1})=>{const g=void 0!==j,h=s||o,[m,f]=e.useState(()=>h&&i.has(h)?i.get(h):x),v=g?j:m;return t.jsxs(t.Fragment,{children:[t.jsxs("span",Object.assign({onClick:t=>(t=>{t.preventDefault(),t.stopPropagation(),p&&p(),C?C():g||f(t=>{const e=!t;return h&&i.set(h,e),e})})(t),className:n.default.pillButton,style:u.pillButton},{children:[l,t.jsx("span",Object.assign({style:u.citationTitle},{children:o})),a&&(v?r:c)]})),a&&v&&t.jsx("div",Object.assign({className:n.default.citationWrapper,style:u.citationWrapper},{children:t.jsx("div",Object.assign({className:n.default.citationContent,style:u.citationContent,onClick:t=>t.stopPropagation()},{children:d}))}))]})};
|
|
2
2
|
//# sourceMappingURL=CitationRenderer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./CustomPopover.module.css.js"),s=require("react-dom");exports.default=({anchorEl:n,open:c,onClose:o,children:l,customStyles:a={},backdropContainerId:u})=>{const i=t.useRef(null),d=t.useRef(o);t.useEffect(()=>{const e=i.current;if(!e||!c)return;let t=!0;const r=new ResizeObserver(e=>{var r;t?t=!1:null===(r=d.current)||void 0===r||r.call(d)});return r.observe(e),()=>{r.disconnect()}},[c]);const p=document.getElementById(String(u));if(!c||!n)return null;const f=n.getBoundingClientRect();return e.jsxs(e.Fragment,{children:[p?s.createPortal(e.jsx("div",{ref:i,onClick:o,className:r.default["containerized-backdrop"],style:Object.assign({},a.backdrop)}),p):e.jsx("div",{ref:i,onClick:o,className:r.default.backdrop,style:Object.assign({},a.backdrop)}),e.jsx("div",Object.assign({className:r.default.popup,style:Object.assign({top:f.bottom+15,left:f.left-700},a.popup)},{children:l}))]})};
|
|
2
2
|
//# sourceMappingURL=CustomPopover.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),s=require("lucide-react"),n=require("./components/StoryNode/StoryNode.js"),o=require("../RequirementAIWrapper/RequirementAIWrapper.js"),t=require("./GapRiskSidebar.module.css.js");const l=i.createContext(null),a=()=>{const e=i.useContext(l);if(!e)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return e},d=e=>({title:e.title,artifactTitleID:e.artifactTitleID,id:e.id,display_items:e.gap_items||e.risk_items||{critical:[],warning:[],recommendation:[]},sub_feature:(e.sub_feature||[]).map(d)});const r=Object.assign(({storyDetails:s,type:n,isSidebarExpanded:t,onToggleSidebar:a,defaultExpanded:d=!0,onClickStoryNodeCallback:r,isProcessingGapItems:c,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:g,customStyles:b,customIcons:p,sidebarWidth:S,headerTitle:m,onSelectStory:j,children:y})=>{var h,O;const C=function(){try{return o.useRequirementAI()}catch(e){return null}}(),[I,x]=i.useState(d),k=void 0!==t,f=k?t:I,N=i.useCallback(e=>{const i="function"==typeof e?e(f):e;k?null==a||a(i):x(i)},[k,f,a]),G=i.useMemo(()=>{var e,i,s,n,o,t,l,a,d,r,c,u,v;return Object.assign(Object.assign(Object.assign({},null===(e=null==C?void 0:C.customStyles)||void 0===e?void 0:e.gapSidebar),b),{gapRiskSidebar:Object.assign(Object.assign({},null===(s=null===(i=null==C?void 0:C.customStyles)||void 0===i?void 0:i.gapSidebar)||void 0===s?void 0:s.gapRiskSidebar),null==b?void 0:b.gapRiskSidebar),noGapsFound:Object.assign(Object.assign({},null===(o=null===(n=null==C?void 0:C.customStyles)||void 0===n?void 0:n.gapSidebar)||void 0===o?void 0:o.noGapsFound),null==b?void 0:b.noGapsFound),storyNode:Object.assign(Object.assign({},null===(l=null===(t=null==C?void 0:C.customStyles)||void 0===t?void 0:t.gapSidebar)||void 0===l?void 0:l.storyNode),null==b?void 0:b.storyNode),riskSidebarCategorySection:Object.assign(Object.assign({},null===(d=null===(a=null==C?void 0:C.customStyles)||void 0===a?void 0:a.gapSidebar)||void 0===d?void 0:d.riskSidebarCategorySection),null==b?void 0:b.riskSidebarCategorySection),riskCategorySection:Object.assign(Object.assign({},null===(c=null===(r=null==C?void 0:C.customStyles)||void 0===r?void 0:r.gapSidebar)||void 0===c?void 0:c.riskCategorySection),null==b?void 0:b.riskCategorySection),gapItem:Object.assign(Object.assign({},null===(v=null===(u=null==C?void 0:C.customStyles)||void 0===u?void 0:u.gapSidebar)||void 0===v?void 0:v.gapItem),null==b?void 0:b.gapItem)})},[null===(h=null==C?void 0:C.customStyles)||void 0===h?void 0:h.gapSidebar,b]),R=i.useMemo(()=>{var e,i,s,n,o,t;return{icons:Object.assign(Object.assign({},null===(i=null===(e=null==C?void 0:C.customIcons)||void 0===e?void 0:e.gapSidebarIcons)||void 0===i?void 0:i.icons),null==p?void 0:p.icons),iconSizes:Object.assign(Object.assign({},null===(n=null===(s=null==C?void 0:C.customIcons)||void 0===s?void 0:s.gapSidebarIcons)||void 0===n?void 0:n.iconSizes),null==p?void 0:p.iconSizes),iconColors:Object.assign(Object.assign({},null===(t=null===(o=null==C?void 0:C.customIcons)||void 0===o?void 0:o.gapSidebarIcons)||void 0===t?void 0:t.iconColors),null==p?void 0:p.iconColors)}},[null===(O=null==C?void 0:C.customIcons)||void 0===O?void 0:O.gapSidebarIcons,p]),T={isSidebarExpanded:f,setIsSidebarExpanded:N,storyDetails:s,type:n,isProcessingGapItems:c,onClickStoryNodeCallback:r,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:g,mergedStyles:G,mergedIcons:R,sidebarWidth:S,headerTitle:m,onSelectStory:j};return e.jsx(l.Provider,Object.assign({value:T},{children:y}))},{Panel:({className:o="",style:l})=>{var r,c,u,v;const{isSidebarExpanded:g,storyDetails:b,type:p,isProcessingGapItems:S,onClickStoryNodeCallback:m,onClickAiReasoning:j,handleFixRisk:y,handleHighlightGapContent:h,mergedStyles:O,mergedIcons:C,sidebarWidth:I=320,headerTitle:x="Generated User Stories",onSelectStory:k}=a(),f=O.gapRiskSidebar,N=(null===(r=C.icons)||void 0===r?void 0:r.menuIcon)||s.Menu,G=i.useMemo(()=>b.map(d),[b]),R="number"==typeof I?`${I}px`:I;return e.jsx("div",Object.assign({className:`${t.default.sidebarContainer} ${g?t.default.sidebarExpanded:t.default.sidebarCollapsed} ${o}`,style:Object.assign(Object.assign(Object.assign(Object.assign({},g?{width:R,minWidth:R}:{}),null==f?void 0:f.container),g?{}:null==f?void 0:f.containerCollapsed),l)},{children:e.jsxs("div",Object.assign({className:t.default.sidebarInnerWrapper,style:Object.assign({minWidth:R},null==f?void 0:f.innerWrapper)},{children:[e.jsxs("div",Object.assign({className:t.default.header,style:null==f?void 0:f.header},{children:[e.jsx(N,{className:t.default.headerMenuIcon,style:Object.assign({color:null===(c=C.iconColors)||void 0===c?void 0:c.menuIcon,width:null===(u=C.iconSizes)||void 0===u?void 0:u.menuIcon,height:null===(v=C.iconSizes)||void 0===v?void 0:v.menuIcon},null==f?void 0:f.headerMenuIcon)}),e.jsx("h2",Object.assign({className:t.default.headerTitle,style:null==f?void 0:f.headerTitle},{children:x}))]})),e.jsx("div",Object.assign({className:t.default.storyList,style:null==f?void 0:f.storyList},{children:G.map(i=>e.jsx("div",Object.assign({className:t.default.storyItemWrapper,style:null==f?void 0:f.storyItemWrapper},{children:e.jsx(n.default,{story:i,onClickStoryNodeCallback:m,type:p,isProcessingGapItems:S,onClickAiReasoning:j,handleFixRisk:y,handleHighlightGapContent:h,customStyles:O,customIcons:C,onSelectStory:k})}),i.artifactTitleID))}))]}))}))},Toggle:({OpenIcon:i,CloseIcon:n,className:o=""})=>{const{isSidebarExpanded:l,setIsSidebarExpanded:d}=a(),r=i||s.SidebarOpenIcon,c=n||s.SidebarCloseIcon;return e.jsx("div",Object.assign({className:`${t.default.sidebarToggleWrapper} ${o}`},{children:e.jsx("button",Object.assign({onClick:()=>d(e=>!e),className:t.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?e.jsx(c,{}):e.jsx(r,{})}))}))}});exports.NoGapsFound=({styles:i,CheckCircleIcon:n,iconColor:o,iconSize:l})=>{const a=n||s.CheckCircle2;return e.jsxs("div",Object.assign({className:t.default.noGapsContainer,style:null==i?void 0:i.container},{children:[e.jsx("p",Object.assign({className:t.default.noGapsText,style:null==i?void 0:i.text},{children:"No Gaps Found"})),e.jsx(a,{className:t.default.noGapsIcon,style:Object.assign({color:o,width:l,height:l},null==i?void 0:i.icon)})]}))},exports.default=r,exports.useGapRiskSidebar=a;
|
|
2
2
|
//# sourceMappingURL=GapRiskSidebar.js.map
|
package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react"),o=require("@mui/material"),i=require("../../../../icons/AiReasoningIcon.js"),l=require("lucide-react"),s=require("../../../ai-reasoning/AiReasoningCitationContent.js"),t=require("./GapItem.module.css.js"),a=require("../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({item:c,index:d,title:r,isProcessingGapItems:u,type:v,onClickAiReasoning:g,handleFixRisk:h,handleHighlightGapContent:x,customStyles:S,customIcons:j})=>{var y,m,I,f,p,C,k,b,R,O,N,w,L,q,A,z,_,T,B,M,$,H,D,E,P;const[G,F]=n.useState(!1),[U,W]=n.useState(!1),[J,K]=n.useState(!1),Q=function(){try{return a.useRequirementAI()}catch(e){return null}}(),V=null==S?void 0:S.gapItem,X="gap_id"in c?c.gap_id:c.risk_id,Y="gap_name"in c?c.gap_name:c.risk_name;n.useEffect(()=>{"completed"===(null==c?void 0:c.status)&&F(!1)},[null==c?void 0:c.status]),n.useEffect(()=>{u||F(!1)},[u]);const Z=n.useMemo(()=>({id:X,reason:c.reason||"",relevance_score:Number(c.decision_strength.replace("%","")),gap:c.gap||"",explanation:c.explanation||""}),[c]),ee=(null===(y=null==j?void 0:j.icons)||void 0===y?void 0:y.checkIcon)||l.Check,ne=(null===(m=null==j?void 0:j.icons)||void 0===m?void 0:m.loaderIcon)||l.Loader,oe=(null===(I=null==j?void 0:j.icons)||void 0===I?void 0:I.externalLinkIcon)||l.ExternalLink,ie=(null===(f=null==j?void 0:j.icons)||void 0===f?void 0:f.aiReasoningIcon)||i.default,le=(null===(p=null==j?void 0:j.icons)||void 0===p?void 0:p.chevronUpIcon)||l.ChevronUp,se=(null===(C=null==j?void 0:j.icons)||void 0===C?void 0:C.chevronDownIcon)||l.ChevronDown,te=(null==V?void 0:V.fixButtonText)||"Fix";return e.jsx(o.Tooltip,Object.assign({title:Y,arrow:!1!==(null==V?void 0:V.tooltipArrow)},{children:e.jsxs("div",Object.assign({className:`${t.default.container} ${J?t.default.containerHovered:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.container),J?null==V?void 0:V.containerHover:{}),onMouseEnter:()=>K(!0),onMouseLeave:()=>K(!1)},{children:[e.jsxs("div",Object.assign({className:t.default.topRow,style:null==V?void 0:V.topRow},{children:[e.jsxs("div",Object.assign({className:t.default.contentArea,style:null==V?void 0:V.contentArea},{children:[e.jsxs("p",Object.assign({className:t.default.itemText},{children:[e.jsxs("span",Object.assign({className:t.default.idText,style:null==V?void 0:V.idText},{children:[v,"-",X]})),e.jsx("span",Object.assign({className:t.default.nameText,style:null==V?void 0:V.nameText},{children:Y}))]})),e.jsxs("span",Object.assign({onClick:()=>{null==g||g(),W(!U)},className:t.default.aiReasoningToggle,style:null==V?void 0:V.aiReasoningToggle},{children:[e.jsx(ie,{}),U?e.jsx(le,{className:t.default.chevronIcon,style:Object.assign({color:null===(k=null==j?void 0:j.iconColors)||void 0===k?void 0:k.chevronIcon,width:null===(b=null==j?void 0:j.iconSizes)||void 0===b?void 0:b.chevronIcon,height:null===(R=null==j?void 0:j.iconSizes)||void 0===R?void 0:R.chevronIcon},null==V?void 0:V.aiReasoningChevron)}):e.jsx(se,{className:t.default.chevronIcon,style:Object.assign({color:null===(O=null==j?void 0:j.iconColors)||void 0===O?void 0:O.chevronIcon,width:null===(N=null==j?void 0:j.iconSizes)||void 0===N?void 0:N.chevronIcon,height:null===(w=null==j?void 0:j.iconSizes)||void 0===w?void 0:w.chevronIcon},null==V?void 0:V.aiReasoningChevron)})]}))]})),e.jsxs("div",Object.assign({className:t.default.actionsContainer,style:null==V?void 0:V.actionsContainer},{children:[G?e.jsx(ne,{className:t.default.loaderIcon,style:Object.assign({color:null===(L=null==j?void 0:j.iconColors)||void 0===L?void 0:L.loaderIcon,width:null===(q=null==j?void 0:j.iconSizes)||void 0===q?void 0:q.loaderIcon,height:null===(A=null==j?void 0:j.iconSizes)||void 0===A?void 0:A.loaderIcon},null==V?void 0:V.loaderIcon)}):"in-progress"===c.status?e.jsx("button",Object.assign({onClick:()=>h(c),disabled:u,className:`${t.default.fixButton} ${u?t.default.fixButtonDisabled:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.fixButton),u?null==V?void 0:V.fixButtonDisabled:{})},{children:te})):e.jsx(ee,{className:t.default.checkIcon,style:Object.assign({color:null===(z=null==j?void 0:j.iconColors)||void 0===z?void 0:z.checkIcon,width:null===(_=null==j?void 0:j.iconSizes)||void 0===_?void 0:_.checkIcon,height:null===(T=null==j?void 0:j.iconSizes)||void 0===T?void 0:T.checkIcon},null==V?void 0:V.checkIcon)}),e.jsx("button",Object.assign({className:t.default.externalLinkButton,onClick:()=>x(c),style:null==V?void 0:V.externalLinkButton},{children:e.jsx(oe,{className:`${t.default.externalLinkIcon} ${J?t.default.externalLinkIconHovered:""}`,style:{color:J?(null===(B=null==j?void 0:j.iconColors)||void 0===B?void 0:B.externalLinkIconHover)||(null===(M=null==j?void 0:j.iconColors)||void 0===M?void 0:M.externalLinkIcon):null===($=null==j?void 0:j.iconColors)||void 0===$?void 0:$.externalLinkIcon,width:null===(H=null==j?void 0:j.iconSizes)||void 0===H?void 0:H.externalLinkIcon,height:null===(D=null==j?void 0:j.iconSizes)||void 0===D?void 0:D.externalLinkIcon}})}))]}))]})),U&&e.jsx("div",Object.assign({className:t.default.aiReasoningContent,style:null==V?void 0:V.aiReasoningContent},{children:e.jsx(s.default,{aiReason:Z,scenario:"riskSideBar",customStyles:(null===(P=null===(E=null==Q?void 0:Q.customStyles)||void 0===E?void 0:E.userStoryScreenStyles)||void 0===P?void 0:P.userStoryContentStyles)?{aiReasoningPill:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningPill,aiReasoningMarkdown:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningMarkdown,aiReasoningAccordion:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningAccordion,aiReasoningContent:Q.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningContent}:void 0})}))]}))}))};
|
|
2
2
|
//# sourceMappingURL=GapItem.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),s=require("../GapItem/GapItem.js"),i=require("./RiskCategorySection.module.css.js");exports.default=({title:l,items:a,badgeColorClass:o,defaultOpen:d=!1,type:c,isProcessingGapItems:u,onClickAiReasoning:r,handleFixRisk:g,handleHighlightGapContent:v,customStyles:h,customIcons:j})=>{var m,p,f,b;const[x,O]=t.useState(d),[y,B]=t.useState(!1),C=null==h?void 0:h.riskCategorySection,I=(null===(m=null==j?void 0:j.icons)||void 0===m?void 0:m.chevronUpIcon)||n.ChevronUp;if(0===a.length)return null;const S={Critical:null==C?void 0:C.criticalBadge,Warning:null==C?void 0:C.warningBadge,Suggestion:null==C?void 0:C.suggestionBadge}[l],N={critical:i.default.statusBadgeCritical,warning:i.default.statusBadgeWarning,suggestion:i.default.statusBadgeSuggestion}[o]||"";return e.jsxs("div",Object.assign({className:i.default.container,style:null==C?void 0:C.container},{children:[e.jsxs("button",Object.assign({onClick:()=>O(!x),className:`${i.default.headerButton} ${x?i.default.headerButtonOpen:""}`,style:Object.assign(Object.assign(Object.assign({},null==C?void 0:C.headerButton),y?null==C?void 0:C.headerButtonHover:{}),x?null==C?void 0:C.headerButtonOpen:{}),onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)},{children:[e.jsxs("div",Object.assign({className:i.default.badgeGroup},{children:[e.jsx("span",Object.assign({className:`${i.default.statusBadge} ${N}`,style:Object.assign(Object.assign({},null==C?void 0:C.statusBadge),S)},{children:l})),e.jsxs("span",Object.assign({className:i.default.countBadge,style:null==C?void 0:C.countBadge},{children:["(",a.length,")"]}))]})),e.jsx(I,{className:`${i.default.chevronIcon} ${x?"":i.default.chevronRotated}`,style:Object.assign({color:null===(p=null==j?void 0:j.iconColors)||void 0===p?void 0:p.chevronIcon,width:null===(f=null==j?void 0:j.iconSizes)||void 0===f?void 0:f.chevronIcon,height:null===(b=null==j?void 0:j.iconSizes)||void 0===b?void 0:b.chevronIcon},null==C?void 0:C.chevronIcon)})]})),e.jsx("div",Object.assign({className:`${i.default.contentArea} ${x?"":i.default.contentHidden}`,style:null==C?void 0:C.contentArea},{children:a.length>0?a.map((t,n)=>e.jsx(s.default,{item:t,index:n,title:l,type:c,isProcessingGapItems:u,onClickAiReasoning:r,handleFixRisk:g,handleHighlightGapContent:v,customStyles:h,customIcons:j},n)):e.jsx("p",Object.assign({className:i.default.emptyText,style:null==C?void 0:C.emptyText},{children:"No items found."}))}))]}))};
|
|
2
2
|
//# sourceMappingURL=RiskCategorySection.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("./RiskSidebarCategorySection.module.css.js");exports.default=({title:s,length:t,badgeColorClass:l,customStyles:n})=>{const a=null==n?void 0:n.riskSidebarCategorySection,r={Critical:null==a?void 0:a.criticalBadge,Warning:null==a?void 0:a.warningBadge,JAS:null==a?void 0:a.suggestionBadge,Suggestion:null==a?void 0:a.suggestionBadge}[s],d={critical:i.default.critical,warning:i.default.warning,suggestion:i.default.suggestion}[l]||"";return e.jsxs("div",Object.assign({className:`${i.default.badge} ${d}`,style:Object.assign(Object.assign({},null==a?void 0:a.badge),r)},{children:[e.jsx("span",Object.assign({style:null==a?void 0:a.countText},{children:t})),e.jsx("span",Object.assign({style:null==a?void 0:a.titleText},{children:s}))]}))};
|
|
2
2
|
//# sourceMappingURL=RiskSidebarCategorySection.js.map
|
package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("react"),n=require("lucide-react"),l=require("@mui/material"),o=require("uuid"),s=require("../RiskSidebarCategorySection/RiskSidebarCategorySection.js"),t=require("../RiskCategorySection/RiskCategorySection.js"),a=require("./StoryNode.module.css.js");const d=e=>{var i,n,l,o,s,t,a;let c=(null===(n=null===(i=e.display_items)||void 0===i?void 0:i.critical)||void 0===n?void 0:n.length)||0,r=(null===(o=null===(l=e.display_items)||void 0===l?void 0:l.warning)||void 0===o?void 0:o.length)||0,u=(null===(t=null===(s=e.display_items)||void 0===s?void 0:s.recommendation)||void 0===t?void 0:t.length)||0;if((null===(a=e.sub_feature)||void 0===a?void 0:a.length)>0)for(const i of e.sub_feature){const e=d(i);c+=e.critical,r+=e.warning,u+=e.recommendation}return{critical:c,warning:r,recommendation:u}};function c(i,s,t,d){const c=[],r=/<learned>(.*?)<\/learned>/g;let u,v=0,g=0;const m=s||n.Info;for(;null!==(u=r.exec(i));){const[n,s]=u,h=u.index;h>v&&c.push(e.jsx("span",{children:i.slice(v,h)},"text-pre-"+g++)),c.push(e.jsx(l.Tooltip,Object.assign({title:s,placement:"top"},{children:e.jsx(m,{size:d||16,className:a.default.infoIcon,style:{color:t,width:d,height:d}})}),`tooltip-${o.v4()}`)),v=r.lastIndex}return v<(null==i?void 0:i.length)&&c.push(e.jsx("span",{children:i.slice(v)},"text-post-"+g++)),c}const r=({story:o,depth:u=0,onClickStoryNodeCallback:v,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f,onSelectStory:C,rootArtifactId:b=o.id})=>{var x,I,S,k,O,w,N,R,_,G,z,F,W,q,A,P,H,L,M,T,B,D,$,E;const[J,K]=i.useState(0===u),[Q,U]=i.useState(!1),V=null==j?void 0:j.storyNode,X=(null===(x=null==f?void 0:f.icons)||void 0===x?void 0:x.bookmarkIcon)||n.Bookmark,Y=(null===(I=null==f?void 0:f.icons)||void 0===I?void 0:I.chevronDownIcon)||n.ChevronDown,Z=(null===(S=null==f?void 0:f.icons)||void 0===S?void 0:S.chevronRightIcon)||n.ChevronRight,ee=i.useMemo(()=>o.display_items.critical.length>0?"Critical":o.display_items.warning.length>0?"Warning":o.display_items.recommendation.length>0?"Suggestion":null,[o.display_items,g]),ie=i.useMemo(()=>d(o),[o]),ne=0===((null===(O=null===(k=o.display_items)||void 0===k?void 0:k.critical)||void 0===O?void 0:O.length)||0)+((null===(N=null===(w=o.display_items)||void 0===w?void 0:w.warning)||void 0===N?void 0:N.length)||0)+((null===(_=null===(R=o.display_items)||void 0===R?void 0:R.recommendation)||void 0===_?void 0:_.length)||0);return e.jsxs("div",Object.assign({className:`${a.default.container} ${u>0?a.default.nestedContainer:""}`,style:Object.assign(Object.assign({},null==V?void 0:V.container),u>0?null==V?void 0:V.nestedContainer:{})},{children:[e.jsxs("div",Object.assign({onClick:()=>{K(!J),null==v||v(),null==C||C(b)},className:a.default.headerRow,style:Object.assign(Object.assign({},null==V?void 0:V.headerRow),Q?null==V?void 0:V.headerRowHover:{}),onMouseEnter:()=>U(!0),onMouseLeave:()=>U(!1)},{children:[e.jsx("div",Object.assign({className:a.default.chevronWrapper,style:null==V?void 0:V.chevronWrapper},{children:J?e.jsx(Y,{className:a.default.chevronIcon,style:{color:null===(G=null==f?void 0:f.iconColors)||void 0===G?void 0:G.chevronIcon,width:null===(z=null==f?void 0:f.iconSizes)||void 0===z?void 0:z.chevronIcon,height:null===(F=null==f?void 0:f.iconSizes)||void 0===F?void 0:F.chevronIcon}}):e.jsx(Z,{className:a.default.chevronIcon,style:{color:null===(W=null==f?void 0:f.iconColors)||void 0===W?void 0:W.chevronIcon,width:null===(q=null==f?void 0:f.iconSizes)||void 0===q?void 0:q.chevronIcon,height:null===(A=null==f?void 0:f.iconSizes)||void 0===A?void 0:A.chevronIcon}})})),e.jsxs("div",Object.assign({className:a.default.headerContent,style:null==V?void 0:V.headerContent},{children:[e.jsxs("div",Object.assign({className:a.default.artifactIdRow,style:null==V?void 0:V.artifactIdRow},{children:[e.jsx(X,{className:a.default.bookmarkIcon,style:{color:null===(P=null==f?void 0:f.iconColors)||void 0===P?void 0:P.bookmarkIcon,width:null===(H=null==f?void 0:f.iconSizes)||void 0===H?void 0:H.bookmarkIcon,height:null===(L=null==f?void 0:f.iconSizes)||void 0===L?void 0:L.bookmarkIcon}}),e.jsx("span",Object.assign({style:null==V?void 0:V.artifactIdText},{children:o.artifactTitleID}))]})),e.jsx(l.Tooltip,Object.assign({title:c(o.title,null===(M=null==f?void 0:f.icons)||void 0===M?void 0:M.infoIcon,null===(T=null==f?void 0:f.iconColors)||void 0===T?void 0:T.infoIcon,null===(B=null==f?void 0:f.iconSizes)||void 0===B?void 0:B.infoIcon),arrow:!0},{children:e.jsx("h3",Object.assign({className:a.default.title,style:Object.assign(Object.assign({},null==V?void 0:V.title),Q?null==V?void 0:V.titleHover:{})},{children:c(o.title,null===(D=null==f?void 0:f.icons)||void 0===D?void 0:D.infoIcon,null===($=null==f?void 0:f.iconColors)||void 0===$?void 0:$.infoIcon,null===(E=null==f?void 0:f.iconSizes)||void 0===E?void 0:E.infoIcon)}))})),!J&&e.jsx("div",Object.assign({className:a.default.collapsedSummary,style:null==V?void 0:V.collapsedSummary},{children:(0===u||ie.critical+ie.warning+ie.recommendation>0)&&e.jsxs(e.Fragment,{children:[e.jsx("span",Object.assign({className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel},{children:"Gap"===g?"Gaps : ":"Risks : "})),e.jsxs("div",Object.assign({className:a.default.summaryBadgesContainer,style:null==V?void 0:V.summaryBadgesContainer},{children:[ie.critical>0&&e.jsx(s.default,{title:"Critical",length:ie.critical,badgeColorClass:"critical",customStyles:j}),ie.warning>0&&e.jsx(s.default,{title:"Warning",length:ie.warning,badgeColorClass:"warning",customStyles:j}),ie.recommendation>0&&e.jsx(s.default,{title:"JAS",length:ie.recommendation,badgeColorClass:"suggestion",customStyles:j})]}))]})}))]}))]})),J&&e.jsxs("div",Object.assign({className:a.default.expandedContent,style:null==V?void 0:V.expandedContent},{children:[e.jsx("div",Object.assign({className:a.default.expandedInnerPadding,style:null==V?void 0:V.expandedInnerPadding},{children:ne?u>0&&e.jsx("span",Object.assign({className:a.default.summaryLabel,style:null==V?void 0:V.summaryLabel},{children:"Gaps: No Gaps Found"})):e.jsxs("div",Object.assign({className:a.default.itemsContainer,style:null==V?void 0:V.itemsContainer},{children:[e.jsx(t.default,{title:"Critical",items:o.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f}),e.jsx(t.default,{title:"Warning",items:o.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f}),e.jsx(t.default,{title:"Suggestion",items:o.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ee,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f})]}))})),o.sub_feature&&o.sub_feature.length>0&&e.jsx("div",Object.assign({className:a.default.subFeaturesWrapper,style:null==V?void 0:V.subFeaturesWrapper},{children:o.sub_feature.map((i,n)=>e.jsx(r,{story:i,depth:u+1,onClickStoryNodeCallback:v,type:g,isProcessingGapItems:m,onClickAiReasoning:h,handleFixRisk:p,handleHighlightGapContent:y,customStyles:j,customIcons:f,onSelectStory:C,rootArtifactId:b},n))}))]}))]}))};exports.default=r,exports.replaceLearnedTagsWithInfo=c;
|
|
2
2
|
//# sourceMappingURL=StoryNode.js.map
|
package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const t=(s,e)=>{var a;return{title:s.title,artifactTitleID:e,gap_items:{critical:[],warning:[],recommendation:[]},id:s.artifactId,sub_feature:(null!==(a=s.sub_features)&&void 0!==a?a:[]).map((s,a)=>{const i=`${e}-${String.fromCharCode(65+a)}`;return t(s,i)})}},s=(t,e)=>Object.assign(Object.assign({},t),{gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),warning:t.gap_items.warning.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===e?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t))},sub_feature:t.sub_feature.map(t=>s(t,e))});exports.buildStoryWithGap=(s,e,a)=>{const i=s.map((s,e)=>t(s,a[e]));return Object.keys(e.gap_items).forEach(t=>{e.gap_items[t].forEach(s=>{((t,s,e)=>{var a;const{isArtifactLevel:i,storyId:r,subId:n}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const s=t.indexOf("/");return-1===s?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,s),subId:t.substring(s+1)}})(e.user_story_id);if(i)return void(t.length>0?t[0].gap_items[s].push(Object.assign({},e)):console.warn("[buildStoryWithGap] No stories available for artifact-level gap:",e.user_story_id));const c=t.findIndex(t=>t.id===r),o=t[c];if(!o)return;const g=o.sub_feature.findIndex(t=>t.id===n),d="null"===n.toLowerCase()?o:null===(a=o.sub_feature)||void 0===a?void 0:a[g];d?d.gap_items[s].push(Object.assign({},e)):console.warn("[buildStoryWithGap] Target story/sub-feature not found:",{storyId:r,subId:n})})(i,t,s)})}),i},exports.updateGapInRawData=(t,s)=>({gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),warning:t.gap_items.warning.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t)),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===s?Object.assign(Object.assign({},t),{status:"completed"}):Object.assign({},t))}}),exports.updateGapStory=s;
|
|
2
2
|
//# sourceMappingURL=buildStoryWithGap.js.map
|
package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const s=(t,i)=>{var e;return{title:t.title,artifactTitleID:i,risk_items:{critical:[],warning:[],recommendation:[]},id:t.artifactId,sub_feature:(null!==(e=t.sub_features)&&void 0!==e?e:[]).map((t,e)=>{const r=`${i}-${String.fromCharCode(65+e)}`;return s(t,r)})}},t=(s,i)=>Object.assign(Object.assign({},s),{risk_items:{critical:s.risk_items.critical.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),warning:s.risk_items.warning.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),recommendation:s.risk_items.recommendation.map(s=>s.risk_id===i?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s))},sub_feature:s.sub_feature.map(s=>t(s,i))});exports.buildStoryWithRisk=(t,i,e)=>{const r=t.map((t,i)=>s(t,e[i]));return Object.keys(i.risk_items).forEach(s=>{i.risk_items[s].forEach(t=>{((s,t,i)=>{var e;const{isArtifactLevel:r,storyId:a,subId:n}=(s=>{if(s.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const t=s.indexOf("/");return-1===t?{isArtifactLevel:!1,storyId:s,subId:"null"}:{isArtifactLevel:!1,storyId:s.substring(0,t),subId:s.substring(t+1)}})(i.user_story_id);if(r)return void(s.length>0?s[0].risk_items[t].push(Object.assign({},i)):console.warn("[buildStoryWithRisk] No stories available for artifact-level risk:",i.user_story_id));const c=s.findIndex(s=>s.id===a),o=s[c];if(!o)return;const d=o.sub_feature.findIndex(s=>s.id===n),u="null"===n.toLowerCase()?o:null===(e=o.sub_feature)||void 0===e?void 0:e[d];u?u.risk_items[t].push(Object.assign({},i)):console.warn("[buildStoryWithRisk] Target story/sub-feature not found:",{storyId:a,subId:n})})(r,s,t)})}),r},exports.updateRiskInRawData=(s,t)=>({risk_items:{critical:s.risk_items.critical.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),warning:s.risk_items.warning.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s)),recommendation:s.risk_items.recommendation.map(s=>s.risk_id===t?Object.assign(Object.assign({},s),{status:"completed"}):Object.assign({},s))}}),exports.updateStory=t;
|
|
2
2
|
//# sourceMappingURL=buildStoryWithRisk.js.map
|
package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("@mui/material"),t=require("./RecommendationBlock.module.css.js");exports.default=({label:r,customStyles:i})=>e.jsx("span",Object.assign({className:t.default.recommendationBlockContainer,style:null==i?void 0:i.container},{children:e.jsx(s.Tooltip,Object.assign({title:r},{children:e.jsx("span",{children:"RECOMMENDATION"})}))}));
|
|
2
2
|
//# sourceMappingURL=RecommendationBlock.js.map
|
package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react/jsx-runtime"),n=require("react"),i=require("../../store/ref.context.js");exports.SectionStatus=void 0,(e=exports.SectionStatus||(exports.SectionStatus={})).WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate",e.APPROVED="approved";const o=n.createContext(null);exports.default=({children:e,userStory:s,setUserStory:r,aiReasoning:a,setAiReasoning:c,citations:u,setCitations:g,apiCachingConfig:d,customStyles:l,customIcons:f,searchQueryList:C,searchQueryReasoningIdList:h,citationConfig:p,chatHistory:S,chatCitationConfigs:m,gptCitationConfigs:R,diffEditConfig:v,aiReasoningAccordionOpenStates:x,persistedDataFiles:y,inlineUpdateComponentConfig:I,segmentComponentConfig:A,sectionStatusConfig:E,customSectionConfig:N})=>{const[_,b]=n.useState(0),j=n.useMemo(()=>{if(0===s.length||0===a.length)return Array(s.length).fill(0);const e=Array.from({length:s.length},()=>[]);return a.forEach(t=>{const n=Number(t.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${t.id}`,o=s.findIndex(e=>{var t;return e.value.includes(i)||(null===(t=e.sub_features)||void 0===t?void 0:t.some(e=>e.value.includes(i)))});-1!==o&&e[o].push(n)}),e.map(e=>0===e.length?0:Math.round(e.reduce((e,t)=>e+t,0)/e.length))},[s,a]),q=n.useCallback(e=>{var t;const n=s.findIndex(t=>t.artifactId===e);return-1===n?0:null!==(t=j[n])&&void 0!==t?t:0},[s,j]);return t.jsx(o.Provider,Object.assign({value:{chatHistory:S,userStory:s,setUserStory:r,aiReasoning:a,setAiReasoning:c,citations:u,setCitations:g,apiCachingConfig:d,customStyles:l,customIcons:f,searchQueryList:C,searchQueryReasoningIdList:h,citationConfig:p,getAvgScoreForStory:q,chatCitationConfigs:m,gptCitationConfigs:R,diffEditConfig:v,aiReasoningAccordionOpenStates:x,persistedDataFiles:y,currentHighlightIndex:_,setCurrentHighlightIndex:b,inlineUpdateComponentConfig:I,segmentComponentConfig:A,sectionStatusConfig:E,customSectionConfig:N}},{children:t.jsx(i.RefProvider,{children:e})}))},exports.useRequirementAI=()=>{const e=n.useContext(o);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};
|
|
2
2
|
//# sourceMappingURL=RequirementAIWrapper.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("@lexical/react/LexicalComposer"),r=require("@lexical/react/LexicalHistoryPlugin"),o=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),n=require("@lexical/list"),a=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),u=require("@lexical/link"),c=require("@lexical/rich-text"),d=require("@lexical/react/LexicalTablePlugin"),g=require("@lexical/table"),x=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("./components/EditorContainer/EditorContainer.js"),m=require("./components/EditorToolbar/EditorToolbar.js"),h=require("./plugins/LayoutPlugin.js"),C=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var j=require("./components/Context/ContextMenu.js"),q=require("@lexical/mark"),b=require("./plugins/CommentPlugin/HTMLNode.js"),N=require("./constants/editorConfig.js"),v=require("./plugins/InitialHtml.js"),y=require("./plugins/InsertNode.js"),T=require("./plugins/DeleteNode.js"),S=require("./plugins/HighlightNode.js"),L=require("@lexical/react/LexicalComposerContext");function P(e){console.log(e)}function I(){const[e]=L.useLexicalComposerContext();return t.useEffect(()=>{const t=e=>{let t=e;for(;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(x.KEY_DOWN_COMMAND,e=>{if("Backspace"!==e.key&&"Delete"!==e.key)return!1;const i=x.$getSelection();if(!x.$isRangeSelection(i))return!1;if(i.getNodes().some(e=>t(e)))return e.preventDefault(),!0;if(i.isCollapsed()){const r=i.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){const t=r.getPreviousSibling();if(0===i.anchor.offset&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}if("Delete"===e.key){const t=r.getNextSibling(),o=r.getTextContent().length;if(i.anchor.offset===o&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}}return!1},x.COMMAND_PRIORITY_CRITICAL)},[e]),null}exports.default=function({minHeight:L,height:R,placeholder:_,onFocus:E,onBlur:k,onChange:O,onToolbarButtonClick:B,toolbarConfig:D=N.DEFAULT_TOOLBAR_CONFIG,editorRef:H,editorState:M,initialString:A,customToolbar:w,plugins:$,nodes:F,dynamicHeight:W,artifactContext:Y,commentsPanelState:V,mode:G,doNotShowBorderInViewMode:K}){var Q,U,X;const z=t.useRef(null),J={namespace:"MyEditor",theme:C.default,onError:P,nodes:[x.TextNode,n.ListNode,n.ListItemNode,u.LinkNode,c.QuoteNode,c.HeadingNode,g.TableNode,g.TableRowNode,g.TableCellNode,q.MarkNode,b.default,y.InsertNode,T.DeleteNode,S.HighlightSpanNode,S.HighlightButtonNode],editorState:M},[Z,ee]=t.useState(null),[te,ie]=t.useState(!1),{customStyles:re}=p.useRequirementAI(),oe=e=>{var t;null===(t=H.current)||void 0===t||t.update(()=>{const t=x.$getSelection();x.$isRangeSelection(t)&&t.getNodes().forEach(t=>{x.$isTextNode(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e.jsxs(e.Fragment,{children:[(null===(Q=null==re?void 0:re.textEditorStyles)||void 0===Q?void 0:Q.themeStyles)&&e.jsx("style",{children:null===(U=null==re?void 0:re.textEditorStyles)||void 0===U?void 0:U.themeStyles}),e.jsxs("div",Object.assign({ref:z,className:"w-full lexical_editor_wrapper "+(K&&"readOnly"===G?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=H.current)||void 0===t||t.update(()=>{const t=x.$getSelection();x.$isRangeSelection(t)&&!t.isCollapsed()?(ie(!0),ee({x:e.clientX,y:e.clientY})):(ie(!1),ee(null))})},style:Object.assign({minHeight:L,height:R},null===(X=null==re?void 0:re.textEditorStyles)||void 0===X?void 0:X.textArea)},{children:[e.jsxs(i.LexicalComposer,Object.assign({initialConfig:J},{children:[" ","edit"===G&&e.jsx(I,{}),"edit"===G&&e.jsx(m.default,{onToolbarButtonClick:B,editorWrapperRef:z,toolbarConfig:D,customToolbar:w,editorRef:H}),e.jsx(f.default,{placeholder:_}),e.jsx(l.TabIndentationPlugin,{}),e.jsx(r.HistoryPlugin,{}),e.jsx(a.ListPlugin,{}),e.jsx(s.LinkPlugin,{}),e.jsx(d.TablePlugin,{}),e.jsx(h.LayoutPlugin,{onFocus:E,onBlur:k,editorRef:H}),e.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,i)=>{O&&O(e,t,i)}}),A&&e.jsx(v.InitialHtml,{initialValue:A.value,initialFormat:A.type,mode:G}),$&&$]})),Z&&te&&"edit"===G&&e.jsx(j.default,{position:Z,options:[{label:"Change Color to Red",action:()=>oe("red")},{label:"Change Color to Blue",action:()=>oe("blue")}],onClose:()=>{ee(null)}})]}))]})};
|
|
2
2
|
//# sourceMappingURL=Editor.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react");exports.default=({options:o,position:r,onClose:n})=>(t.useEffect(()=>{const e=()=>n();return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),e.jsx("div",Object.assign({style:{position:"absolute",top:0,left:0,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",zIndex:1e3}},{children:o.map((t,o)=>e.jsx("button",Object.assign({style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{t.action(),n()}},{children:t.label}),o))})));
|
|
2
2
|
//# sourceMappingURL=ContextMenu.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),i=require("@lexical/react/LexicalRichTextPlugin"),t=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=({placeholder:a})=>e.jsx("div",Object.assign({className:"lexical_editor_container"},{children:e.jsx(i.RichTextPlugin,{contentEditable:e.jsx(r.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:a?()=>e.jsx(t.default,{placeholder:a}):null,ErrorBoundary:l.LexicalErrorBoundary})}));
|
|
2
2
|
//# sourceMappingURL=EditorContainer.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=({placeholder:r})=>e.jsx("div",Object.assign({className:"lexical_editor_placeholder"},{children:r}));
|
|
2
2
|
//# sourceMappingURL=EditorPlaceholder.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),o=require("lexical"),a=require("@lexical/selection"),i=require("@lexical/rich-text"),r=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),n=require("@lexical/link"),c=require("@lexical/code"),u=require("./components/ToolbarButton/ToolbarButton.js"),d=require("./components/ToolbarDivider/ToolbarDivider.js"),g=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),C=require("../../utils/getSelectedNode.js"),T=require("../Icons/Icon.js"),S=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({editorWrapperRef:m,onToolbarButtonClick:x,toolbarConfig:N,customToolbar:b,editorRef:R})=>{var O;const[$]=l.useLexicalComposerContext(),[y,j]=t.useState(p.ACTIVE_FORMATS),[f,A]=t.useState("15px"),[_,h]=t.useState("Arial"),[q,v]=t.useState(""),[M,I]=t.useState(!1),[k,L]=t.useState("paragraph"),[E,D]=t.useState(null),[F,B]=t.useState(""),[P,U]=t.useState(!1),[K,G]=t.useState(!1),V=t.useRef(null),{customStyles:W}=S.useRequirementAI(),z=t.useCallback(()=>{var e;const t=o.$getSelection();if(o.$isRangeSelection(t)){const o=t.anchor.getNode(),l="root"===o.getKey()?o:o.getTopLevelElementOrThrow(),u=l.getKey();if(null!==$.getElementByKey(u))if(D(u),r.$isListNode(l)){const e=s.$getNearestNodeOfType(o,r.ListNode),t=e?e.getTag():l.getTag();L(t)}else{const e=i.$isHeadingNode(l)?l.getTag():l.getType();L(e),c.$isCodeNode(l)&&B(l.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(e=>{t.hasFormat(e)?j(t=>Object.assign(Object.assign({},t),{[e]:!0})):j(t=>Object.assign(Object.assign({},t),{[e]:!1}))});const d=C.getSelectedNode(t),g=d.getParent();n.$isLinkNode(g)||n.$isLinkNode(d)?I(!0):I(!1),A(a.$getSelectionStyleValueForProperty(t,"font-size","15px")),h(a.$getSelectionStyleValueForProperty(t,"font-family","Arial"));const T=null===(e=t.anchor.getNode().getParent())||void 0===e?void 0:e.getFormatType();v(T)}},[$]);t.useEffect(()=>s.mergeRegister($.registerUpdateListener(({editorState:e})=>{e.read(()=>{z()})}),$.registerCommand(o.CAN_UNDO_COMMAND,e=>(U(e),!1),o.COMMAND_PRIORITY_CRITICAL),$.registerCommand(o.CAN_REDO_COMMAND,e=>(G(e),!1),o.COMMAND_PRIORITY_CRITICAL)),[$,z]);const H=t.useCallback((e,t)=>{$.dispatchCommand(o.FORMAT_TEXT_COMMAND,t)},[$]);t.useCallback((e,t)=>{["left","center","right","justify"].includes(t)&&$.dispatchCommand(o.FORMAT_ELEMENT_COMMAND,t)},[$]),t.useCallback((e,t)=>{$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-size":t})})},[$]);return t.useCallback((e,t)=>{var r;"h1"!==t&&"h2"!==t&&"h3"!==t||k!==(r=t)&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>i.$createHeadingNode(r))}),"paragraph"===t&&"paragraph"!==k&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>o.$createParagraphNode())}),"quote"===t&&"quote"!==k&&$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>i.$createQuoteNode())})},[$,k]),t.useCallback((e,t)=>{$.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-family":t})})},[$]),t.useCallback(()=>{M?$.dispatchCommand(n.TOGGLE_LINK_COMMAND,null):$.dispatchCommand(n.TOGGLE_LINK_COMMAND,"https://")},[$,M]),e.jsxs("div",Object.assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:V,style:Object.assign({},null===(O=null==W?void 0:W.textEditorStyles)||void 0===O?void 0:O.tooltextArea)},{children:[(null==N?void 0:N.undoRedo.display)&&e.jsx(g.UndoRedo,{canUndo:P,canRedo:K}),(null==N?void 0:N.inline.display)&&e.jsxs(e.Fragment,{children:[N.inline.options.map(t=>{var o;return e.jsx(u.default,{toolbarItem:t,active:y[t],onClick:H,icon:e.jsx(T.Icon,{icon:t,iconColors:null===(o=null==W?void 0:W.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:x},t)}),e.jsx(d.ToolbarDivider,{})]}),b&&b]}))};
|
|
2
2
|
//# sourceMappingURL=EditorToolbar.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react");require("./ToolbarButton.css.js");var o=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({toolbarItem:l,active:i,onClick:r,icon:n,disabled:s,onToolbarButtonClick:u})=>{var a,d,c,v;const{customStyles:b}=o.useRequirementAI(),[x,_]=e.useState(!1),j=i?null===(a=null==b?void 0:b.textEditorStyles)||void 0===a?void 0:a.activeToolButton:null===(d=null==b?void 0:b.textEditorStyles)||void 0===d?void 0:d.toolbarButton,m=null===(c=null==b?void 0:b.textEditorStyles)||void 0===c?void 0:c.toolbarButtonHover,p=null===(v=null==b?void 0:b.textEditorStyles)||void 0===v?void 0:v.toolbarButtonDisabled,q=Object.assign(Object.assign(Object.assign({},j),x&&!s?m:{}),s?p:{});return t.jsx("button",Object.assign({className:"lexical_editor_toolbar_button "+(i?"lexical_editor_toolbar_button__active":""),onClick:t=>((t,e)=>{r(t,e),u&&u()})(t,l),disabled:s,style:q,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1)},{children:n}))};
|
|
2
2
|
//# sourceMappingURL=ToolbarButton.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=()=>e.jsx("div",{className:"lexical-editor_toolbar_divider"});
|
|
2
2
|
//# sourceMappingURL=ToolbarDivider.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),l=require("lucide-react"),i=require("../ToolbarButton/ToolbarButton.js"),t=require("../ToolbarDivider/ToolbarDivider.js"),d=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.UndoRedo=({canUndo:n,canRedo:s,onToolbarButtonClick:a})=>{var u,c,v,x;const[m]=e.useLexicalComposerContext(),{customStyles:C}=d.useRequirementAI();return o.jsxs(o.Fragment,{children:[o.jsx(i.default,{icon:o.jsx(l.Undo2,{color:null===(c=null===(u=null==C?void 0:C.textEditorStyles)||void 0===u?void 0:u.toolIconColors)||void 0===c?void 0:c.undoIcon,className:"w-4 h-4"}),disabled:!n,onClick:()=>{null==a||a(),m.dispatchCommand(r.UNDO_COMMAND,void 0)}}),o.jsx(i.default,{icon:o.jsx(l.Redo2,{color:null===(x=null===(v=null==C?void 0:C.textEditorStyles)||void 0===v?void 0:v.toolIconColors)||void 0===x?void 0:x.redoIcon,className:"w-4 h-4"}),disabled:!s,onClick:()=>{null==a||a(),m.dispatchCommand(r.REDO_COMMAND,void 0)}}),o.jsx(t.ToolbarDivider,{})]})};
|
|
2
2
|
//# sourceMappingURL=UndoRedo.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),t=require("react").memo(function(t){var i=t.icon,n=t.iconColors,r=t.width,h=void 0===r?18:r,o=t.height,w=void 0===o?18:o,l=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})})),x=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),g=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})})),d=e.jsxs("svg",s.__assign({fill:"#000000",width:h,height:w,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),C=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})})),c=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==n?void 0:n.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),a=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),L=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})})),v=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),M=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),j=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),p=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),_=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),u=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),B=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),k=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),H=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",s.__assign({clipPath:"url(#clip0_37_1104)"},{children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})})),e.jsx("defs",{children:e.jsx("clipPath",s.__assign({id:"clip0_37_1104"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]})),f=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})})),m=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==n?void 0:n.codeIcon)||"#2B2E31"})})),E=e.jsx("svg",s.__assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})})),y=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),Z=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),V=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})})),b=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})}));switch(i){case"link":return l;case"list-ordered":return g;case"list-unordered":return d;case"edit-link":return C;case"bold":return c;case"italic":return a;case"strikethrough":return L;case"underline":return v;case"center":return M;case"left":return j;case"right":return p;case"justify":return _;case"arrow-up":return u;case"arrow-down":return B;case"confirm":return k;case"remove":return H;case"cancel":return f;case"code":return m;case"quote":return E;case"undo":return y;case"redo":return Z;case"superscript":return V;case"subscript":return b;case"table":return x;default:return null}});t.displayName="Icon",exports.Icon=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");const s=require("react").memo(({icon:s,iconColors:t,width:i=18,height:n=18})=>{const r=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})})),h=e.jsxs("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),o=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})})),w=e.jsxs("svg",Object.assign({fill:"#000000",width:i,height:n,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),l=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})})),x=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==t?void 0:t.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),g=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),c=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})})),C=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),d=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),j=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),L=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),a=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),M=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),v=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),p=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),u=e.jsxs("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",Object.assign({clipPath:"url(#clip0_37_1104)"},{children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})})),e.jsx("defs",{children:e.jsx("clipPath",Object.assign({id:"clip0_37_1104"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]})),B=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})})),k=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==t?void 0:t.codeIcon)||"#2B2E31"})})),H=e.jsx("svg",Object.assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})})),f=e.jsx("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),b=e.jsx("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),m=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})})),O=e.jsx("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})}));switch(s){case"link":return r;case"list-ordered":return o;case"list-unordered":return w;case"edit-link":return l;case"bold":return x;case"italic":return g;case"strikethrough":return c;case"underline":return C;case"center":return d;case"left":return j;case"right":return L;case"justify":return a;case"arrow-up":return M;case"arrow-down":return v;case"confirm":return p;case"remove":return u;case"cancel":return B;case"code":return k;case"quote":return H;case"undo":return f;case"redo":return b;case"superscript":return m;case"subscript":return O;case"table":return h;default:return null}});s.displayName="Icon",exports.Icon=s;
|
|
2
2
|
//# sourceMappingURL=Icon.js.map
|
package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const l=["bold","code"],e=[{label:"8px",value:"8px"},{label:"9px",value:"9px"},{label:"10px",value:"10px"},{label:"11px",value:"11px"},{label:"12px",value:"12px"},{label:"15px",value:"15px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"28px",value:"28px"},{label:"32px",value:"32px"},{label:"36px",value:"36px"},{label:"40px",value:"40px"},{label:"48px",value:"48px"},{label:"56px",value:"56px"},{label:"64px",value:"64px"},{label:"72px",value:"72px"},{label:"80px",value:"80px"},{label:"96px",value:"96px"}],a=[{label:"Arial",value:"Arial"},{label:"Verdana",value:"Verdana"},{label:"Courier New",value:"Courier New"},{label:"Georgia",value:"Georgia"},{label:"Impact",value:"Impact"}],p=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}],x=[{label:"Normal",value:"paragraph"},{label:"Quote",value:"quote"},{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"}];var u;exports.BLOCK_TYPE=void 0,(u=exports.BLOCK_TYPE||(exports.BLOCK_TYPE={})).code="Code Block",u.h1="Heading 1",u.h2="Heading 2",u.h3="Heading 3",u.h4="Heading 4",u.h5="Heading 5",u.h6="Heading 6",u.paragraph="Normal",u.quote="Quote";const o={inline:{display:!0,options:l},type:{display:!0,options:x},fontSize:{display:!0,options:e},undoRedo:{display:!0},fontFamily:{display:!0,options:a},align:{display:!0,options:p},list:{display:!0},link:{display:!0},table:{display:!0}};exports.DEFAULT_BLOCK_TYPE_OPTIONS=x,exports.DEFAULT_FONT_FAMILY_OPTIONS=a,exports.DEFAULT_FONT_SIZE_OPTIONS=e,exports.DEFAULT_INLINE_CONFIG=l,exports.DEFAULT_TEXT_ALIGN_OPTIONS=p,exports.DEFAULT_TOOLBAR_CONFIG=o;
|
|
2
2
|
//# sourceMappingURL=editorConfig.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("lexical");class n extends e.DecoratorNode{static getType(){return"html"}decorate(){return t.jsx("div",{dangerouslySetInnerHTML:{__html:this.__htmlContent}})}static clone(t){return new n(t.__htmlContent,t.__key)}constructor(t,e){super(e),this.__htmlContent=t}createDOM(){const t=document.createElement("div");return t.innerHTML=this.__htmlContent,t}updateDOM(t,e){return t.__htmlContent!==this.__htmlContent&&(e.innerHTML=this.__htmlContent),!1}exportJSON(){return{type:"html",version:1,htmlContent:this.__htmlContent}}static importJSON(t){const{htmlContent:e}=t;return new n(e)}}exports.default=n;
|
|
2
2
|
//# sourceMappingURL=HTMLNode.js.map
|