@e-llm-studio/requirement-ai 0.0.238 → 0.0.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (486) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  30. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  137. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  138. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  139. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  140. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  142. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  143. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  153. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  154. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  155. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  156. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  157. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  158. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  159. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  160. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  161. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  162. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  163. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  164. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  165. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  166. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  167. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  168. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  169. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  170. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  171. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  172. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  175. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  176. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  177. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  178. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  179. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  214. package/dist/cjs/index.js +1 -1
  215. package/dist/cjs/service/redlineService.js +2 -0
  216. package/dist/cjs/service/redlineService.js.map +1 -0
  217. package/dist/cjs/utils/tagHelper.js +2 -0
  218. package/dist/cjs/utils/tagHelper.js.map +1 -0
  219. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  220. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  226. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  227. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  228. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  229. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  247. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  248. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  249. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  250. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  251. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js +2 -0
  259. package/dist/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.js.map +1 -0
  260. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  262. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  263. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  264. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  265. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  266. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  267. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  268. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  272. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  274. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  275. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  276. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  323. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  324. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  325. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  326. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  329. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  331. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/DeleteSegmentsDialog.js +1 -1
  333. package/dist/features/RequirementAI/components/segment/EditSegmentDialog.js +1 -1
  334. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  335. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  336. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  337. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  339. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  340. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  341. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  342. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  343. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  350. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  351. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  352. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  353. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  354. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  355. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  356. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  357. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  358. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  359. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  360. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  361. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  362. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  363. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  367. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  371. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  372. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  373. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  374. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  375. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  376. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  377. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  378. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  379. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  380. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  381. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  382. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  383. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  384. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  385. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  386. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  387. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  389. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  390. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  391. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  393. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  394. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  396. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  397. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  399. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  400. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  401. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  402. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  404. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  405. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  406. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  407. package/dist/features/UserStoryImport/components/Header.js +1 -1
  408. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  410. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  411. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  412. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  413. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  414. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  415. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  416. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  419. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  420. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  421. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  422. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  423. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  426. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  429. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  430. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  431. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  432. package/dist/index.js +1 -1
  433. package/dist/service/redlineService.js +2 -0
  434. package/dist/service/redlineService.js.map +1 -0
  435. package/dist/types/src/App.d.ts.map +1 -1
  436. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  437. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  438. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  439. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +40 -1
  440. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  441. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  442. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  443. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  444. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  445. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  446. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  447. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  448. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  449. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  450. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +26 -0
  451. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  452. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  453. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  454. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +26 -0
  455. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  456. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +1 -0
  457. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  458. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +9 -4
  459. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  460. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +45 -11
  461. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  462. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts +7 -0
  463. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/EditBlockPopup.d.ts.map +1 -0
  464. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  465. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  466. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +15 -3
  467. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  468. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +9 -2
  469. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  470. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +4 -0
  471. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  472. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +11 -0
  473. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  474. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +3 -1
  475. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  476. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -13
  477. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  478. package/dist/types/src/index.d.ts +2 -0
  479. package/dist/types/src/index.d.ts.map +1 -1
  480. package/dist/types/src/service/redlineService.d.ts +33 -0
  481. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  482. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  483. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  484. package/dist/utils/tagHelper.js +2 -0
  485. package/dist/utils/tagHelper.js.map +1 -0
  486. package/package.json +17 -1
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useEffect as n}from"react";import c from"./CustomPopover.module.css.js";import{createPortal as s}from"react-dom";const l=({anchorEl:l,open:i,onClose:a,children:d,customStyles:m={},backdropContainerId:p})=>{const u=r(null),b=r(a);n(()=>{const e=u.current;if(!e||!i)return;let t=!0;const o=new ResizeObserver(e=>{var o;t?t=!1:null===(o=b.current)||void 0===o||o.call(b)});return o.observe(e),()=>{o.disconnect()}},[i]);const f=document.getElementById(String(p));if(!i||!l)return null;const g=l.getBoundingClientRect();return e(t,{children:[f?s(o("div",{ref:u,onClick:a,className:c["containerized-backdrop"],style:Object.assign({},m.backdrop)}),f):o("div",{ref:u,onClick:a,className:c.backdrop,style:Object.assign({},m.backdrop)}),o("div",Object.assign({className:c.popup,style:Object.assign({top:g.bottom+15,left:g.left-700},m.popup)},{children:d}))]})};export{l as default};
1
+ import{jsxs as e,Fragment as o,jsx as r}from"react/jsx-runtime";import{useRef as t,useEffect as n}from"react";import c from"./CustomPopover.module.css.js";import{createPortal as l}from"react-dom";const s=({anchorEl:s,open:i,onClose:a,children:d,customStyles:m={},backdropContainerId:p})=>{const u=t(null),f=t(a);n(()=>{const e=u.current;if(!e||!i)return;let o=!0;const r=new ResizeObserver(e=>{var r;o?o=!1:null===(r=f.current)||void 0===r||r.call(f)});return r.observe(e),()=>{r.disconnect()}},[i]);const b=document.getElementById(String(p));if(!i||!s)return null;const v=s.getBoundingClientRect();return e(o,{children:[b?l(r("div",{ref:u,onClick:a,className:c["containerized-backdrop"],style:{...m.backdrop}}),b):r("div",{ref:u,onClick:a,className:c.backdrop,style:{...m.backdrop}}),r("div",{className:c.popup,style:{top:v.bottom+15,left:v.left,...m.popup},children:d})]})};export{s as default};
2
2
  //# sourceMappingURL=CustomPopover.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as i,jsx as e}from"react/jsx-runtime";import{createContext as o,useContext as s,useState as n,useCallback as l,useMemo as t}from"react";import{Menu as a,CheckCircle2 as d,SidebarOpenIcon as r,SidebarCloseIcon as c}from"lucide-react";import u from"./components/StoryNode/StoryNode.js";import{useRequirementAI as g}from"../RequirementAIWrapper/RequirementAIWrapper.js";import v from"./GapRiskSidebar.module.css.js";const b=o(null),p=()=>{const i=s(b);if(!i)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return i},m=i=>({title:i.title,artifactTitleID:i.artifactTitleID,id:i.id,display_items:i.gap_items||i.risk_items||{critical:[],warning:[],recommendation:[]},sub_feature:(i.sub_feature||[]).map(m)});const S=({styles:o,CheckCircleIcon:s,iconColor:n,iconSize:l})=>{const t=s||d;return i("div",Object.assign({className:v.noGapsContainer,style:null==o?void 0:o.container},{children:[e("p",Object.assign({className:v.noGapsText,style:null==o?void 0:o.text},{children:"No Gaps Found"})),e(t,{className:v.noGapsIcon,style:Object.assign({color:n,width:l,height:l},null==o?void 0:o.icon)})]}))},y=Object.assign(({storyDetails:i,type:o,isSidebarExpanded:s,onToggleSidebar:a,defaultExpanded:d=!0,onClickStoryNodeCallback:r,isProcessingGapItems:c,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:p,customStyles:m,customIcons:S,sidebarWidth:y,headerTitle:h,onSelectStory:j,children:O})=>{var I,C;const k=function(){try{return g()}catch(i){return null}}(),[N,G]=n(d),f=void 0!==s,x=f?s:N,R=l(i=>{const e="function"==typeof i?i(x):i;f?null==a||a(e):G(e)},[f,x,a]),T=t(()=>{var i,e,o,s,n,l,t,a,d,r,c,u,g;return Object.assign(Object.assign(Object.assign({},null===(i=null==k?void 0:k.customStyles)||void 0===i?void 0:i.gapSidebar),m),{gapRiskSidebar:Object.assign(Object.assign({},null===(o=null===(e=null==k?void 0:k.customStyles)||void 0===e?void 0:e.gapSidebar)||void 0===o?void 0:o.gapRiskSidebar),null==m?void 0:m.gapRiskSidebar),noGapsFound:Object.assign(Object.assign({},null===(n=null===(s=null==k?void 0:k.customStyles)||void 0===s?void 0:s.gapSidebar)||void 0===n?void 0:n.noGapsFound),null==m?void 0:m.noGapsFound),storyNode:Object.assign(Object.assign({},null===(t=null===(l=null==k?void 0:k.customStyles)||void 0===l?void 0:l.gapSidebar)||void 0===t?void 0:t.storyNode),null==m?void 0:m.storyNode),riskSidebarCategorySection:Object.assign(Object.assign({},null===(d=null===(a=null==k?void 0:k.customStyles)||void 0===a?void 0:a.gapSidebar)||void 0===d?void 0:d.riskSidebarCategorySection),null==m?void 0:m.riskSidebarCategorySection),riskCategorySection:Object.assign(Object.assign({},null===(c=null===(r=null==k?void 0:k.customStyles)||void 0===r?void 0:r.gapSidebar)||void 0===c?void 0:c.riskCategorySection),null==m?void 0:m.riskCategorySection),gapItem:Object.assign(Object.assign({},null===(g=null===(u=null==k?void 0:k.customStyles)||void 0===u?void 0:u.gapSidebar)||void 0===g?void 0:g.gapItem),null==m?void 0:m.gapItem)})},[null===(I=null==k?void 0:k.customStyles)||void 0===I?void 0:I.gapSidebar,m]),W=t(()=>{var i,e,o,s,n,l;return{icons:Object.assign(Object.assign({},null===(e=null===(i=null==k?void 0:k.customIcons)||void 0===i?void 0:i.gapSidebarIcons)||void 0===e?void 0:e.icons),null==S?void 0:S.icons),iconSizes:Object.assign(Object.assign({},null===(s=null===(o=null==k?void 0:k.customIcons)||void 0===o?void 0:o.gapSidebarIcons)||void 0===s?void 0:s.iconSizes),null==S?void 0:S.iconSizes),iconColors:Object.assign(Object.assign({},null===(l=null===(n=null==k?void 0:k.customIcons)||void 0===n?void 0:n.gapSidebarIcons)||void 0===l?void 0:l.iconColors),null==S?void 0:S.iconColors)}},[null===(C=null==k?void 0:k.customIcons)||void 0===C?void 0:C.gapSidebarIcons,S]),E={isSidebarExpanded:x,setIsSidebarExpanded:R,storyDetails:i,type:o,isProcessingGapItems:c,onClickStoryNodeCallback:r,onClickAiReasoning:u,handleFixRisk:v,handleHighlightGapContent:p,mergedStyles:T,mergedIcons:W,sidebarWidth:y,headerTitle:h,onSelectStory:j};return e(b.Provider,Object.assign({value:E},{children:O}))},{Panel:({className:o="",style:s})=>{var n,l,d,r;const{isSidebarExpanded:c,storyDetails:g,type:b,isProcessingGapItems:S,onClickStoryNodeCallback:y,onClickAiReasoning:h,handleFixRisk:j,handleHighlightGapContent:O,mergedStyles:I,mergedIcons:C,sidebarWidth:k=320,headerTitle:N="Generated User Stories",onSelectStory:G}=p(),f=I.gapRiskSidebar,x=(null===(n=C.icons)||void 0===n?void 0:n.menuIcon)||a,R=t(()=>g.map(m),[g]),T="number"==typeof k?`${k}px`:k;return e("div",Object.assign({className:`${v.sidebarContainer} ${c?v.sidebarExpanded:v.sidebarCollapsed} ${o}`,style:Object.assign(Object.assign(Object.assign(Object.assign({},c?{width:T,minWidth:T}:{}),null==f?void 0:f.container),c?{}:null==f?void 0:f.containerCollapsed),s)},{children:i("div",Object.assign({className:v.sidebarInnerWrapper,style:Object.assign({minWidth:T},null==f?void 0:f.innerWrapper)},{children:[i("div",Object.assign({className:v.header,style:null==f?void 0:f.header},{children:[e(x,{className:v.headerMenuIcon,style:Object.assign({color:null===(l=C.iconColors)||void 0===l?void 0:l.menuIcon,width:null===(d=C.iconSizes)||void 0===d?void 0:d.menuIcon,height:null===(r=C.iconSizes)||void 0===r?void 0:r.menuIcon},null==f?void 0:f.headerMenuIcon)}),e("h2",Object.assign({className:v.headerTitle,style:null==f?void 0:f.headerTitle},{children:N}))]})),e("div",Object.assign({className:v.storyList,style:null==f?void 0:f.storyList},{children:R.map(i=>e("div",Object.assign({className:v.storyItemWrapper,style:null==f?void 0:f.storyItemWrapper},{children:e(u,{story:i,onClickStoryNodeCallback:y,type:b,isProcessingGapItems:S,onClickAiReasoning:h,handleFixRisk:j,handleHighlightGapContent:O,customStyles:I,customIcons:C,onSelectStory:G})}),i.artifactTitleID))}))]}))}))},Toggle:({OpenIcon:i,CloseIcon:o,className:s=""})=>{const{isSidebarExpanded:n,setIsSidebarExpanded:l}=p(),t=i||r,a=o||c;return e("div",Object.assign({className:`${v.sidebarToggleWrapper} ${s}`},{children:e("button",Object.assign({onClick:()=>l(i=>!i),className:v.sidebarToggleBtn,"aria-label":n?"Collapse sidebar":"Expand sidebar",type:"button"},{children:e(n?a:t,{})}))}))}});export{S as NoGapsFound,y as default,p as useGapRiskSidebar};
1
+ import{jsxs as i,jsx as e}from"react/jsx-runtime";import{createContext as o,useContext as l,useState as n,useCallback as d,useMemo as s}from"react";import{Menu as t,CheckCircle2 as a,SidebarOpenIcon as r,SidebarCloseIcon as c}from"lucide-react";import u from"./components/StoryNode/StoryNode.js";import{useRequirementAI as v}from"../RequirementAIWrapper/RequirementAIWrapper.js";import p from"./GapRiskSidebar.module.css.js";const m=o(null),S=()=>{const i=l(m);if(!i)throw new Error("GapRiskSidebar compound components must be used within <GapRiskSidebar.Root>");return i},y=i=>({title:i.title,artifactTitleID:i.artifactTitleID,id:i.id,display_items:i.gap_items||i.risk_items||{critical:[],warning:[],recommendation:[]},sub_feature:(i.sub_feature||[]).map(y)});const g=({styles:o,CheckCircleIcon:l,iconColor:n,iconSize:d})=>{const s=l||a;return i("div",{className:p.noGapsContainer,style:null==o?void 0:o.container,children:[e("p",{className:p.noGapsText,style:null==o?void 0:o.text,children:"No Gaps Found"}),e(s,{className:p.noGapsIcon,style:{color:n,width:d,height:d,...null==o?void 0:o.icon}})]})},h=Object.assign(({storyDetails:i,type:o,isSidebarExpanded:l,onToggleSidebar:t,defaultExpanded:a=!0,onClickStoryNodeCallback:r,isProcessingGapItems:c,onClickAiReasoning:u,handleFixRisk:p,handleHighlightGapContent:S,customStyles:y,customIcons:g,sidebarWidth:h,headerTitle:b,onSelectStory:I,children:C})=>{var k,N;const G=function(){try{return v()}catch(i){return null}}(),[f,x]=n(a),R=void 0!==l,T=R?l:f,W=d(i=>{const e="function"==typeof i?i(T):i;R?null==t||t(e):x(e)},[R,T,t]),E=s(()=>{var i,e,o,l,n,d,s,t,a,r,c,u,v;return{...null===(i=null==G?void 0:G.customStyles)||void 0===i?void 0:i.gapSidebar,...y,gapRiskSidebar:{...null===(o=null===(e=null==G?void 0:G.customStyles)||void 0===e?void 0:e.gapSidebar)||void 0===o?void 0:o.gapRiskSidebar,...null==y?void 0:y.gapRiskSidebar},noGapsFound:{...null===(n=null===(l=null==G?void 0:G.customStyles)||void 0===l?void 0:l.gapSidebar)||void 0===n?void 0:n.noGapsFound,...null==y?void 0:y.noGapsFound},storyNode:{...null===(s=null===(d=null==G?void 0:G.customStyles)||void 0===d?void 0:d.gapSidebar)||void 0===s?void 0:s.storyNode,...null==y?void 0:y.storyNode},riskSidebarCategorySection:{...null===(a=null===(t=null==G?void 0:G.customStyles)||void 0===t?void 0:t.gapSidebar)||void 0===a?void 0:a.riskSidebarCategorySection,...null==y?void 0:y.riskSidebarCategorySection},riskCategorySection:{...null===(c=null===(r=null==G?void 0:G.customStyles)||void 0===r?void 0:r.gapSidebar)||void 0===c?void 0:c.riskCategorySection,...null==y?void 0:y.riskCategorySection},gapItem:{...null===(v=null===(u=null==G?void 0:G.customStyles)||void 0===u?void 0:u.gapSidebar)||void 0===v?void 0:v.gapItem,...null==y?void 0:y.gapItem}}},[null===(k=null==G?void 0:G.customStyles)||void 0===k?void 0:k.gapSidebar,y]),F=s(()=>{var i,e,o,l,n,d;return{icons:{...null===(e=null===(i=null==G?void 0:G.customIcons)||void 0===i?void 0:i.gapSidebarIcons)||void 0===e?void 0:e.icons,...null==g?void 0:g.icons},iconSizes:{...null===(l=null===(o=null==G?void 0:G.customIcons)||void 0===o?void 0:o.gapSidebarIcons)||void 0===l?void 0:l.iconSizes,...null==g?void 0:g.iconSizes},iconColors:{...null===(d=null===(n=null==G?void 0:G.customIcons)||void 0===n?void 0:n.gapSidebarIcons)||void 0===d?void 0:d.iconColors,...null==g?void 0:g.iconColors}}},[null===(N=null==G?void 0:G.customIcons)||void 0===N?void 0:N.gapSidebarIcons,g]),w={isSidebarExpanded:T,setIsSidebarExpanded:W,storyDetails:i,type:o,isProcessingGapItems:c,onClickStoryNodeCallback:r,onClickAiReasoning:u,handleFixRisk:p,handleHighlightGapContent:S,mergedStyles:E,mergedIcons:F,sidebarWidth:h,headerTitle:b,onSelectStory:I};return e(m.Provider,{value:w,children:C})},{Panel:({className:o="",style:l})=>{var n,d,a,r;const{isSidebarExpanded:c,storyDetails:v,type:m,isProcessingGapItems:g,onClickStoryNodeCallback:h,onClickAiReasoning:b,handleFixRisk:I,handleHighlightGapContent:C,mergedStyles:k,mergedIcons:N,sidebarWidth:G=320,headerTitle:f="Generated User Stories",onSelectStory:x}=S(),R=k.gapRiskSidebar,T=(null===(n=N.icons)||void 0===n?void 0:n.menuIcon)||t,W=s(()=>v.map(y),[v]),E="number"==typeof G?`${G}px`:G;return e("div",{className:`${p.sidebarContainer} ${c?p.sidebarExpanded:p.sidebarCollapsed} ${o}`,style:{...c?{width:E,minWidth:E}:{},...null==R?void 0:R.container,...c?{}:null==R?void 0:R.containerCollapsed,...l},children:i("div",{className:p.sidebarInnerWrapper,style:{minWidth:E,...null==R?void 0:R.innerWrapper},children:[i("div",{className:p.header,style:null==R?void 0:R.header,children:[e(T,{className:p.headerMenuIcon,style:{color:null===(d=N.iconColors)||void 0===d?void 0:d.menuIcon,width:null===(a=N.iconSizes)||void 0===a?void 0:a.menuIcon,height:null===(r=N.iconSizes)||void 0===r?void 0:r.menuIcon,...null==R?void 0:R.headerMenuIcon}}),e("h2",{className:p.headerTitle,style:null==R?void 0:R.headerTitle,children:f})]}),e("div",{className:p.storyList,style:null==R?void 0:R.storyList,children:W.map(i=>e("div",{className:p.storyItemWrapper,style:null==R?void 0:R.storyItemWrapper,children:e(u,{story:i,onClickStoryNodeCallback:h,type:m,isProcessingGapItems:g,onClickAiReasoning:b,handleFixRisk:I,handleHighlightGapContent:C,customStyles:k,customIcons:N,onSelectStory:x})},i.artifactTitleID))})]})})},Toggle:({OpenIcon:i,CloseIcon:o,className:l=""})=>{const{isSidebarExpanded:n,setIsSidebarExpanded:d}=S(),s=i||r,t=o||c;return e("div",{className:`${p.sidebarToggleWrapper} ${l}`,children:e("button",{onClick:()=>d(i=>!i),className:p.sidebarToggleBtn,"aria-label":n?"Collapse sidebar":"Expand sidebar",type:"button",children:e(n?t:s,{})})})}});export{g as NoGapsFound,h as default,S as useGapRiskSidebar};
2
2
  //# sourceMappingURL=GapRiskSidebar.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as n,jsxs as o}from"react/jsx-runtime";import{useState as i,useEffect as e,useMemo as l}from"react";import{Tooltip as s}from"@mui/material";import t from"../../../../icons/AiReasoningIcon.js";import{Check as c,Loader as a,ExternalLink as r,ChevronUp as d,ChevronDown as v}from"lucide-react";import u from"../../../ai-reasoning/AiReasoningCitationContent.js";import g from"./GapItem.module.css.js";import{useRequirementAI as m}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const h=({item:h,index:y,title:S,isProcessingGapItems:I,type:p,onClickAiReasoning:x,handleFixRisk:C,handleHighlightGapContent:b,customStyles:k,customIcons:j})=>{var R,O,N,f,w,L,z,A,B,T,_,$,H,M,D,G,P,q,F,W,E,U,J,K,Q;const[V,X]=i(!1),[Y,Z]=i(!1),[nn,on]=i(!1),en=function(){try{return m()}catch(n){return null}}(),ln=null==k?void 0:k.gapItem,sn="gap_id"in h?h.gap_id:h.risk_id,tn="gap_name"in h?h.gap_name:h.risk_name;e(()=>{"completed"===(null==h?void 0:h.status)&&X(!1)},[null==h?void 0:h.status]),e(()=>{I||X(!1)},[I]);const cn=l(()=>({id:sn,reason:h.reason||"",relevance_score:Number(h.decision_strength.replace("%","")),gap:h.gap||"",explanation:h.explanation||""}),[h]),an=(null===(R=null==j?void 0:j.icons)||void 0===R?void 0:R.checkIcon)||c,rn=(null===(O=null==j?void 0:j.icons)||void 0===O?void 0:O.loaderIcon)||a,dn=(null===(N=null==j?void 0:j.icons)||void 0===N?void 0:N.externalLinkIcon)||r,vn=(null===(f=null==j?void 0:j.icons)||void 0===f?void 0:f.aiReasoningIcon)||t,un=(null===(w=null==j?void 0:j.icons)||void 0===w?void 0:w.chevronUpIcon)||d,gn=(null===(L=null==j?void 0:j.icons)||void 0===L?void 0:L.chevronDownIcon)||v,mn=(null==ln?void 0:ln.fixButtonText)||"Fix";return n(s,Object.assign({title:tn,arrow:!1!==(null==ln?void 0:ln.tooltipArrow)},{children:o("div",Object.assign({className:`${g.container} ${nn?g.containerHovered:""}`,style:Object.assign(Object.assign({},null==ln?void 0:ln.container),nn?null==ln?void 0:ln.containerHover:{}),onMouseEnter:()=>on(!0),onMouseLeave:()=>on(!1)},{children:[o("div",Object.assign({className:g.topRow,style:null==ln?void 0:ln.topRow},{children:[o("div",Object.assign({className:g.contentArea,style:null==ln?void 0:ln.contentArea},{children:[o("p",Object.assign({className:g.itemText},{children:[o("span",Object.assign({className:g.idText,style:null==ln?void 0:ln.idText},{children:[p,"-",sn]})),n("span",Object.assign({className:g.nameText,style:null==ln?void 0:ln.nameText},{children:tn}))]})),o("span",Object.assign({onClick:()=>{null==x||x(),Z(!Y)},className:g.aiReasoningToggle,style:null==ln?void 0:ln.aiReasoningToggle},{children:[n(vn,{}),Y?n(un,{className:g.chevronIcon,style:Object.assign({color:null===(z=null==j?void 0:j.iconColors)||void 0===z?void 0:z.chevronIcon,width:null===(A=null==j?void 0:j.iconSizes)||void 0===A?void 0:A.chevronIcon,height:null===(B=null==j?void 0:j.iconSizes)||void 0===B?void 0:B.chevronIcon},null==ln?void 0:ln.aiReasoningChevron)}):n(gn,{className:g.chevronIcon,style:Object.assign({color:null===(T=null==j?void 0:j.iconColors)||void 0===T?void 0:T.chevronIcon,width:null===(_=null==j?void 0:j.iconSizes)||void 0===_?void 0:_.chevronIcon,height:null===($=null==j?void 0:j.iconSizes)||void 0===$?void 0:$.chevronIcon},null==ln?void 0:ln.aiReasoningChevron)})]}))]})),o("div",Object.assign({className:g.actionsContainer,style:null==ln?void 0:ln.actionsContainer},{children:[V?n(rn,{className:g.loaderIcon,style:Object.assign({color:null===(H=null==j?void 0:j.iconColors)||void 0===H?void 0:H.loaderIcon,width:null===(M=null==j?void 0:j.iconSizes)||void 0===M?void 0:M.loaderIcon,height:null===(D=null==j?void 0:j.iconSizes)||void 0===D?void 0:D.loaderIcon},null==ln?void 0:ln.loaderIcon)}):"in-progress"===h.status?n("button",Object.assign({onClick:()=>C(h),disabled:I,className:`${g.fixButton} ${I?g.fixButtonDisabled:""}`,style:Object.assign(Object.assign({},null==ln?void 0:ln.fixButton),I?null==ln?void 0:ln.fixButtonDisabled:{})},{children:mn})):n(an,{className:g.checkIcon,style:Object.assign({color:null===(G=null==j?void 0:j.iconColors)||void 0===G?void 0:G.checkIcon,width:null===(P=null==j?void 0:j.iconSizes)||void 0===P?void 0:P.checkIcon,height:null===(q=null==j?void 0:j.iconSizes)||void 0===q?void 0:q.checkIcon},null==ln?void 0:ln.checkIcon)}),n("button",Object.assign({className:g.externalLinkButton,onClick:()=>b(h),style:null==ln?void 0:ln.externalLinkButton},{children:n(dn,{className:`${g.externalLinkIcon} ${nn?g.externalLinkIconHovered:""}`,style:{color:nn?(null===(F=null==j?void 0:j.iconColors)||void 0===F?void 0:F.externalLinkIconHover)||(null===(W=null==j?void 0:j.iconColors)||void 0===W?void 0:W.externalLinkIcon):null===(E=null==j?void 0:j.iconColors)||void 0===E?void 0:E.externalLinkIcon,width:null===(U=null==j?void 0:j.iconSizes)||void 0===U?void 0:U.externalLinkIcon,height:null===(J=null==j?void 0:j.iconSizes)||void 0===J?void 0:J.externalLinkIcon}})}))]}))]})),Y&&n("div",Object.assign({className:g.aiReasoningContent,style:null==ln?void 0:ln.aiReasoningContent},{children:n(u,{aiReason:cn,scenario:"riskSideBar",customStyles:(null===(Q=null===(K=null==en?void 0:en.customStyles)||void 0===K?void 0:K.userStoryScreenStyles)||void 0===Q?void 0:Q.userStoryContentStyles)?{aiReasoningPill:en.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningPill,aiReasoningMarkdown:en.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningMarkdown,aiReasoningAccordion:en.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningAccordion,aiReasoningContent:en.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningContent}:void 0})}))]}))}))};export{h as default};
1
+ import{jsx as o,jsxs as n}from"react/jsx-runtime";import{useState as i,useEffect as l,useMemo as e}from"react";import{Tooltip as t}from"@mui/material";import s from"../../../../icons/AiReasoningIcon.js";import{Check as c,Loader as r,ExternalLink as d,ChevronUp as a,ChevronDown as v}from"lucide-react";import u from"../../../ai-reasoning/AiReasoningCitationContent.js";import m from"./GapItem.module.css.js";import{useRequirementAI as h}from"../../../RequirementAIWrapper/RequirementAIWrapper.js";const y=({item:y,index:S,title:g,isProcessingGapItems:I,type:p,onClickAiReasoning:x,handleFixRisk:C,handleHighlightGapContent:k,customStyles:R,customIcons:N})=>{var f,w,L,z,A,B,T,_,b,$,j,H,M,D,G,P,q,F,W,E,U,J,K,O,Q;const[V,X]=i(!1),[Y,Z]=i(!1),[oo,no]=i(!1),io=function(){try{return h()}catch(o){return null}}(),lo=null==R?void 0:R.gapItem,eo="gap_id"in y?y.gap_id:y.risk_id,to="gap_name"in y?y.gap_name:y.risk_name;l(()=>{"completed"===(null==y?void 0:y.status)&&X(!1)},[null==y?void 0:y.status]),l(()=>{I||X(!1)},[I]);const so=e(()=>({id:eo,reason:y.reason||"",relevance_score:Number(y.decision_strength.replace("%","")),gap:y.gap||"",explanation:y.explanation||""}),[y]),co=(null===(f=null==N?void 0:N.icons)||void 0===f?void 0:f.checkIcon)||c,ro=(null===(w=null==N?void 0:N.icons)||void 0===w?void 0:w.loaderIcon)||r,ao=(null===(L=null==N?void 0:N.icons)||void 0===L?void 0:L.externalLinkIcon)||d,vo=(null===(z=null==N?void 0:N.icons)||void 0===z?void 0:z.aiReasoningIcon)||s,uo=(null===(A=null==N?void 0:N.icons)||void 0===A?void 0:A.chevronUpIcon)||a,mo=(null===(B=null==N?void 0:N.icons)||void 0===B?void 0:B.chevronDownIcon)||v,ho=(null==lo?void 0:lo.fixButtonText)||"Fix";return o(t,{title:to,arrow:!1!==(null==lo?void 0:lo.tooltipArrow),children:n("div",{className:`${m.container} ${oo?m.containerHovered:""}`,style:{...null==lo?void 0:lo.container,...oo?null==lo?void 0:lo.containerHover:{}},onMouseEnter:()=>no(!0),onMouseLeave:()=>no(!1),children:[n("div",{className:m.topRow,style:null==lo?void 0:lo.topRow,children:[n("div",{className:m.contentArea,style:null==lo?void 0:lo.contentArea,children:[n("p",{className:m.itemText,children:[n("span",{className:m.idText,style:null==lo?void 0:lo.idText,children:[p,"-",eo]}),o("span",{className:m.nameText,style:null==lo?void 0:lo.nameText,children:to})]}),n("span",{onClick:()=>{null==x||x(),Z(!Y)},className:m.aiReasoningToggle,style:null==lo?void 0:lo.aiReasoningToggle,children:[o(vo,{}),Y?o(uo,{className:m.chevronIcon,style:{color:null===(T=null==N?void 0:N.iconColors)||void 0===T?void 0:T.chevronIcon,width:null===(_=null==N?void 0:N.iconSizes)||void 0===_?void 0:_.chevronIcon,height:null===(b=null==N?void 0:N.iconSizes)||void 0===b?void 0:b.chevronIcon,...null==lo?void 0:lo.aiReasoningChevron}}):o(mo,{className:m.chevronIcon,style:{color:null===($=null==N?void 0:N.iconColors)||void 0===$?void 0:$.chevronIcon,width:null===(j=null==N?void 0:N.iconSizes)||void 0===j?void 0:j.chevronIcon,height:null===(H=null==N?void 0:N.iconSizes)||void 0===H?void 0:H.chevronIcon,...null==lo?void 0:lo.aiReasoningChevron}})]})]}),n("div",{className:m.actionsContainer,style:null==lo?void 0:lo.actionsContainer,children:[V?o(ro,{className:m.loaderIcon,style:{color:null===(M=null==N?void 0:N.iconColors)||void 0===M?void 0:M.loaderIcon,width:null===(D=null==N?void 0:N.iconSizes)||void 0===D?void 0:D.loaderIcon,height:null===(G=null==N?void 0:N.iconSizes)||void 0===G?void 0:G.loaderIcon,...null==lo?void 0:lo.loaderIcon}}):"in-progress"===y.status?o("button",{onClick:()=>C(y),disabled:I,className:`${m.fixButton} ${I?m.fixButtonDisabled:""}`,style:{...null==lo?void 0:lo.fixButton,...I?null==lo?void 0:lo.fixButtonDisabled:{}},children:ho}):o(co,{className:m.checkIcon,style:{color:null===(P=null==N?void 0:N.iconColors)||void 0===P?void 0:P.checkIcon,width:null===(q=null==N?void 0:N.iconSizes)||void 0===q?void 0:q.checkIcon,height:null===(F=null==N?void 0:N.iconSizes)||void 0===F?void 0:F.checkIcon,...null==lo?void 0:lo.checkIcon}}),o("button",{className:m.externalLinkButton,onClick:()=>k(y),style:null==lo?void 0:lo.externalLinkButton,children:o(ao,{className:`${m.externalLinkIcon} ${oo?m.externalLinkIconHovered:""}`,style:{color:oo?(null===(W=null==N?void 0:N.iconColors)||void 0===W?void 0:W.externalLinkIconHover)||(null===(E=null==N?void 0:N.iconColors)||void 0===E?void 0:E.externalLinkIcon):null===(U=null==N?void 0:N.iconColors)||void 0===U?void 0:U.externalLinkIcon,width:null===(J=null==N?void 0:N.iconSizes)||void 0===J?void 0:J.externalLinkIcon,height:null===(K=null==N?void 0:N.iconSizes)||void 0===K?void 0:K.externalLinkIcon}})})]})]}),Y&&o("div",{className:m.aiReasoningContent,style:null==lo?void 0:lo.aiReasoningContent,children:o(u,{aiReason:so,scenario:"riskSideBar",customStyles:(null===(Q=null===(O=null==io?void 0:io.customStyles)||void 0===O?void 0:O.userStoryScreenStyles)||void 0===Q?void 0:Q.userStoryContentStyles)?{aiReasoningPill:io.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningPill,aiReasoningMarkdown:io.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningMarkdown,aiReasoningAccordion:io.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningAccordion,aiReasoningContent:io.customStyles.userStoryScreenStyles.userStoryContentStyles.aiReasoningContent}:void 0})})]})})};export{y as default};
2
2
  //# sourceMappingURL=GapItem.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as t}from"react";import{ChevronUp as i}from"lucide-react";import o from"../GapItem/GapItem.js";import s from"./RiskCategorySection.module.css.js";const l=({title:l,items:a,badgeColorClass:c,defaultOpen:d=!1,type:r,isProcessingGapItems:u,onClickAiReasoning:g,handleFixRisk:v,handleHighlightGapContent:m,customStyles:h,customIcons:p})=>{var b,j,O,y;const[B,C]=t(d),[I,f]=t(!1),N=null==h?void 0:h.riskCategorySection,S=(null===(b=null==p?void 0:p.icons)||void 0===b?void 0:b.chevronUpIcon)||i;if(0===a.length)return null;const $={Critical:null==N?void 0:N.criticalBadge,Warning:null==N?void 0:N.warningBadge,Suggestion:null==N?void 0:N.suggestionBadge}[l],k={critical:s.statusBadgeCritical,warning:s.statusBadgeWarning,suggestion:s.statusBadgeSuggestion}[c]||"";return e("div",Object.assign({className:s.container,style:null==N?void 0:N.container},{children:[e("button",Object.assign({onClick:()=>C(!B),className:`${s.headerButton} ${B?s.headerButtonOpen:""}`,style:Object.assign(Object.assign(Object.assign({},null==N?void 0:N.headerButton),I?null==N?void 0:N.headerButtonHover:{}),B?null==N?void 0:N.headerButtonOpen:{}),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1)},{children:[e("div",Object.assign({className:s.badgeGroup},{children:[n("span",Object.assign({className:`${s.statusBadge} ${k}`,style:Object.assign(Object.assign({},null==N?void 0:N.statusBadge),$)},{children:l})),e("span",Object.assign({className:s.countBadge,style:null==N?void 0:N.countBadge},{children:["(",a.length,")"]}))]})),n(S,{className:`${s.chevronIcon} ${B?"":s.chevronRotated}`,style:Object.assign({color:null===(j=null==p?void 0:p.iconColors)||void 0===j?void 0:j.chevronIcon,width:null===(O=null==p?void 0:p.iconSizes)||void 0===O?void 0:O.chevronIcon,height:null===(y=null==p?void 0:p.iconSizes)||void 0===y?void 0:y.chevronIcon},null==N?void 0:N.chevronIcon)})]})),n("div",Object.assign({className:`${s.contentArea} ${B?"":s.contentHidden}`,style:null==N?void 0:N.contentArea},{children:a.length>0?a.map((e,t)=>n(o,{item:e,index:t,title:l,type:r,isProcessingGapItems:u,onClickAiReasoning:g,handleFixRisk:v,handleHighlightGapContent:m,customStyles:h,customIcons:p},t)):n("p",Object.assign({className:s.emptyText,style:null==N?void 0:N.emptyText},{children:"No items found."}))}))]}))};export{l as default};
1
+ import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useState as o}from"react";import{ChevronUp as t}from"lucide-react";import i from"../GapItem/GapItem.js";import l from"./RiskCategorySection.module.css.js";const s=({title:s,items:a,badgeColorClass:c,defaultOpen:d=!1,type:r,isProcessingGapItems:u,onClickAiReasoning:g,handleFixRisk:v,handleHighlightGapContent:m,customStyles:h,customIcons:p})=>{var y,B,C,I;const[f,N]=o(d),[S,$]=o(!1),k=null==h?void 0:h.riskCategorySection,x=(null===(y=null==p?void 0:p.icons)||void 0===y?void 0:y.chevronUpIcon)||t;if(0===a.length)return null;const G={Critical:null==k?void 0:k.criticalBadge,Warning:null==k?void 0:k.warningBadge,Suggestion:null==k?void 0:k.suggestionBadge}[s],R={critical:l.statusBadgeCritical,warning:l.statusBadgeWarning,suggestion:l.statusBadgeSuggestion}[c]||"";return e("div",{className:l.container,style:null==k?void 0:k.container,children:[e("button",{onClick:()=>N(!f),className:`${l.headerButton} ${f?l.headerButtonOpen:""}`,style:{...null==k?void 0:k.headerButton,...S?null==k?void 0:k.headerButtonHover:{},...f?null==k?void 0:k.headerButtonOpen:{}},onMouseEnter:()=>$(!0),onMouseLeave:()=>$(!1),children:[e("div",{className:l.badgeGroup,children:[n("span",{className:`${l.statusBadge} ${R}`,style:{...null==k?void 0:k.statusBadge,...G},children:s}),e("span",{className:l.countBadge,style:null==k?void 0:k.countBadge,children:["(",a.length,")"]})]}),n(x,{className:`${l.chevronIcon} ${f?"":l.chevronRotated}`,style:{color:null===(B=null==p?void 0:p.iconColors)||void 0===B?void 0:B.chevronIcon,width:null===(C=null==p?void 0:p.iconSizes)||void 0===C?void 0:C.chevronIcon,height:null===(I=null==p?void 0:p.iconSizes)||void 0===I?void 0:I.chevronIcon,...null==k?void 0:k.chevronIcon}})]}),n("div",{className:`${l.contentArea} ${f?"":l.contentHidden}`,style:null==k?void 0:k.contentArea,children:a.length>0?a.map((e,o)=>n(i,{item:e,index:o,title:s,type:r,isProcessingGapItems:u,onClickAiReasoning:g,handleFixRisk:v,handleHighlightGapContent:m,customStyles:h,customIcons:p},o)):n("p",{className:l.emptyText,style:null==k?void 0:k.emptyText,children:"No items found."})})]})};export{s as default};
2
2
  //# sourceMappingURL=RiskCategorySection.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as i,jsx as e}from"react/jsx-runtime";import t from"./RiskSidebarCategorySection.module.css.js";const n=({title:n,length:s,badgeColorClass:l,customStyles:a})=>{const g=null==a?void 0:a.riskSidebarCategorySection,o={Critical:null==g?void 0:g.criticalBadge,Warning:null==g?void 0:g.warningBadge,JAS:null==g?void 0:g.suggestionBadge,Suggestion:null==g?void 0:g.suggestionBadge}[n],r={critical:t.critical,warning:t.warning,suggestion:t.suggestion}[l]||"";return i("div",Object.assign({className:`${t.badge} ${r}`,style:Object.assign(Object.assign({},null==g?void 0:g.badge),o)},{children:[e("span",Object.assign({style:null==g?void 0:g.countText},{children:s})),e("span",Object.assign({style:null==g?void 0:g.titleText},{children:n}))]}))};export{n as default};
1
+ import{jsxs as i,jsx as e}from"react/jsx-runtime";import l from"./RiskSidebarCategorySection.module.css.js";const t=({title:t,length:n,badgeColorClass:o,customStyles:s})=>{const a=null==s?void 0:s.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}[t],g={critical:l.critical,warning:l.warning,suggestion:l.suggestion}[o]||"";return i("div",{className:`${l.badge} ${g}`,style:{...null==a?void 0:a.badge,...r},children:[e("span",{style:null==a?void 0:a.countText,children:n}),e("span",{style:null==a?void 0:a.titleText,children:t})]})};export{t as default};
2
2
  //# sourceMappingURL=RiskSidebarCategorySection.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as i,jsx as n,Fragment as o}from"react/jsx-runtime";import{useState as e,useMemo as l}from"react";import{Bookmark as t,ChevronDown as s,ChevronRight as a,Info as d}from"lucide-react";import{Tooltip as c}from"@mui/material";import{v4 as r}from"uuid";import u from"../RiskSidebarCategorySection/RiskSidebarCategorySection.js";import v from"../RiskCategorySection/RiskCategorySection.js";import m from"./StoryNode.module.css.js";const g=i=>{var n,o,e,l,t,s,a;let d=(null===(o=null===(n=i.display_items)||void 0===n?void 0:n.critical)||void 0===o?void 0:o.length)||0,c=(null===(l=null===(e=i.display_items)||void 0===e?void 0:e.warning)||void 0===l?void 0:l.length)||0,r=(null===(s=null===(t=i.display_items)||void 0===t?void 0:t.recommendation)||void 0===s?void 0:s.length)||0;if((null===(a=i.sub_feature)||void 0===a?void 0:a.length)>0)for(const n of i.sub_feature){const i=g(n);d+=i.critical,c+=i.warning,r+=i.recommendation}return{critical:d,warning:c,recommendation:r}};function h(i,o,e,l){const t=[],s=/<learned>(.*?)<\/learned>/g;let a,u=0,v=0;const g=o||d;for(;null!==(a=s.exec(i));){const[o,d]=a,h=a.index;h>u&&t.push(n("span",{children:i.slice(u,h)},"text-pre-"+v++)),t.push(n(c,Object.assign({title:d,placement:"top"},{children:n(g,{size:l||16,className:m.infoIcon,style:{color:e,width:l,height:l}})}),`tooltip-${r()}`)),u=s.lastIndex}return u<(null==i?void 0:i.length)&&t.push(n("span",{children:i.slice(u)},"text-post-"+v++)),t}const p=({story:d,depth:r=0,onClickStoryNodeCallback:y,type:C,isProcessingGapItems:b,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:S,customStyles:k,customIcons:j,onSelectStory:O,rootArtifactId:N=d.id})=>{var w,R,_,x,G,z,A,F,W,H,P,L,$,B,D,M,T,E,J,q,K,Q,U,V;const[X,Y]=e(0===r),[Z,ii]=e(!1),ni=null==k?void 0:k.storyNode,oi=(null===(w=null==j?void 0:j.icons)||void 0===w?void 0:w.bookmarkIcon)||t,ei=(null===(R=null==j?void 0:j.icons)||void 0===R?void 0:R.chevronDownIcon)||s,li=(null===(_=null==j?void 0:j.icons)||void 0===_?void 0:_.chevronRightIcon)||a,ti=l(()=>d.display_items.critical.length>0?"Critical":d.display_items.warning.length>0?"Warning":d.display_items.recommendation.length>0?"Suggestion":null,[d.display_items,C]),si=l(()=>g(d),[d]),ai=0===((null===(G=null===(x=d.display_items)||void 0===x?void 0:x.critical)||void 0===G?void 0:G.length)||0)+((null===(A=null===(z=d.display_items)||void 0===z?void 0:z.warning)||void 0===A?void 0:A.length)||0)+((null===(W=null===(F=d.display_items)||void 0===F?void 0:F.recommendation)||void 0===W?void 0:W.length)||0);return i("div",Object.assign({className:`${m.container} ${r>0?m.nestedContainer:""}`,style:Object.assign(Object.assign({},null==ni?void 0:ni.container),r>0?null==ni?void 0:ni.nestedContainer:{})},{children:[i("div",Object.assign({onClick:()=>{Y(!X),null==y||y(),null==O||O(N)},className:m.headerRow,style:Object.assign(Object.assign({},null==ni?void 0:ni.headerRow),Z?null==ni?void 0:ni.headerRowHover:{}),onMouseEnter:()=>ii(!0),onMouseLeave:()=>ii(!1)},{children:[n("div",Object.assign({className:m.chevronWrapper,style:null==ni?void 0:ni.chevronWrapper},{children:X?n(ei,{className:m.chevronIcon,style:{color:null===(H=null==j?void 0:j.iconColors)||void 0===H?void 0:H.chevronIcon,width:null===(P=null==j?void 0:j.iconSizes)||void 0===P?void 0:P.chevronIcon,height:null===(L=null==j?void 0:j.iconSizes)||void 0===L?void 0:L.chevronIcon}}):n(li,{className:m.chevronIcon,style:{color:null===($=null==j?void 0:j.iconColors)||void 0===$?void 0:$.chevronIcon,width:null===(B=null==j?void 0:j.iconSizes)||void 0===B?void 0:B.chevronIcon,height:null===(D=null==j?void 0:j.iconSizes)||void 0===D?void 0:D.chevronIcon}})})),i("div",Object.assign({className:m.headerContent,style:null==ni?void 0:ni.headerContent},{children:[i("div",Object.assign({className:m.artifactIdRow,style:null==ni?void 0:ni.artifactIdRow},{children:[n(oi,{className:m.bookmarkIcon,style:{color:null===(M=null==j?void 0:j.iconColors)||void 0===M?void 0:M.bookmarkIcon,width:null===(T=null==j?void 0:j.iconSizes)||void 0===T?void 0:T.bookmarkIcon,height:null===(E=null==j?void 0:j.iconSizes)||void 0===E?void 0:E.bookmarkIcon}}),n("span",Object.assign({style:null==ni?void 0:ni.artifactIdText},{children:d.artifactTitleID}))]})),n(c,Object.assign({title:h(d.title,null===(J=null==j?void 0:j.icons)||void 0===J?void 0:J.infoIcon,null===(q=null==j?void 0:j.iconColors)||void 0===q?void 0:q.infoIcon,null===(K=null==j?void 0:j.iconSizes)||void 0===K?void 0:K.infoIcon),arrow:!0},{children:n("h3",Object.assign({className:m.title,style:Object.assign(Object.assign({},null==ni?void 0:ni.title),Z?null==ni?void 0:ni.titleHover:{})},{children:h(d.title,null===(Q=null==j?void 0:j.icons)||void 0===Q?void 0:Q.infoIcon,null===(U=null==j?void 0:j.iconColors)||void 0===U?void 0:U.infoIcon,null===(V=null==j?void 0:j.iconSizes)||void 0===V?void 0:V.infoIcon)}))})),!X&&n("div",Object.assign({className:m.collapsedSummary,style:null==ni?void 0:ni.collapsedSummary},{children:(0===r||si.critical+si.warning+si.recommendation>0)&&i(o,{children:[n("span",Object.assign({className:m.summaryLabel,style:null==ni?void 0:ni.summaryLabel},{children:"Gap"===C?"Gaps : ":"Risks : "})),i("div",Object.assign({className:m.summaryBadgesContainer,style:null==ni?void 0:ni.summaryBadgesContainer},{children:[si.critical>0&&n(u,{title:"Critical",length:si.critical,badgeColorClass:"critical",customStyles:k}),si.warning>0&&n(u,{title:"Warning",length:si.warning,badgeColorClass:"warning",customStyles:k}),si.recommendation>0&&n(u,{title:"JAS",length:si.recommendation,badgeColorClass:"suggestion",customStyles:k})]}))]})}))]}))]})),X&&i("div",Object.assign({className:m.expandedContent,style:null==ni?void 0:ni.expandedContent},{children:[n("div",Object.assign({className:m.expandedInnerPadding,style:null==ni?void 0:ni.expandedInnerPadding},{children:ai?r>0&&n("span",Object.assign({className:m.summaryLabel,style:null==ni?void 0:ni.summaryLabel},{children:"Gaps: No Gaps Found"})):i("div",Object.assign({className:m.itemsContainer,style:null==ni?void 0:ni.itemsContainer},{children:[n(v,{title:"Critical",items:d.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ti,type:C,isProcessingGapItems:b,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:S,customStyles:k,customIcons:j}),n(v,{title:"Warning",items:d.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ti,type:C,isProcessingGapItems:b,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:S,customStyles:k,customIcons:j}),n(v,{title:"Suggestion",items:d.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ti,type:C,isProcessingGapItems:b,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:S,customStyles:k,customIcons:j})]}))})),d.sub_feature&&d.sub_feature.length>0&&n("div",Object.assign({className:m.subFeaturesWrapper,style:null==ni?void 0:ni.subFeaturesWrapper},{children:d.sub_feature.map((i,o)=>n(p,{story:i,depth:r+1,onClickStoryNodeCallback:y,type:C,isProcessingGapItems:b,onClickAiReasoning:I,handleFixRisk:f,handleHighlightGapContent:S,customStyles:k,customIcons:j,onSelectStory:O,rootArtifactId:N},o))}))]}))]}))};export{p as default,h as replaceLearnedTagsWithInfo};
1
+ import{jsxs as i,jsx as o,Fragment as l}from"react/jsx-runtime";import{useState as n,useMemo as e}from"react";import{Bookmark as t,ChevronDown as s,ChevronRight as a,Info as d}from"lucide-react";import{Tooltip as c}from"@mui/material";import{v4 as r}from"uuid";import u from"../RiskSidebarCategorySection/RiskSidebarCategorySection.js";import v from"../RiskCategorySection/RiskCategorySection.js";import m from"./StoryNode.module.css.js";const h=i=>{var o,l,n,e,t,s,a;let d=(null===(l=null===(o=i.display_items)||void 0===o?void 0:o.critical)||void 0===l?void 0:l.length)||0,c=(null===(e=null===(n=i.display_items)||void 0===n?void 0:n.warning)||void 0===e?void 0:e.length)||0,r=(null===(s=null===(t=i.display_items)||void 0===t?void 0:t.recommendation)||void 0===s?void 0:s.length)||0;if((null===(a=i.sub_feature)||void 0===a?void 0:a.length)>0)for(const o of i.sub_feature){const i=h(o);d+=i.critical,c+=i.warning,r+=i.recommendation}return{critical:d,warning:c,recommendation:r}};function g(i,l,n,e){const t=[],s=/<learned>(.*?)<\/learned>/g;let a,u=0,v=0;const h=l||d;for(;null!==(a=s.exec(i));){const[l,d]=a,g=a.index;g>u&&t.push(o("span",{children:i.slice(u,g)},"text-pre-"+v++)),t.push(o(c,{title:d,placement:"top",children:o(h,{size:e||16,className:m.infoIcon,style:{color:n,width:e,height:e}})},`tooltip-${r()}`)),u=s.lastIndex}return u<(null==i?void 0:i.length)&&t.push(o("span",{children:i.slice(u)},"text-post-"+v++)),t}const p=({story:d,depth:r=0,onClickStoryNodeCallback:y,type:C,isProcessingGapItems:I,onClickAiReasoning:f,handleFixRisk:S,handleHighlightGapContent:k,customStyles:b,customIcons:N,onSelectStory:w,rootArtifactId:R=d.id})=>{var _,x,G,z,A,F,W,H,P,L,j,O,$,B,D,M,T,E,J,q,K,Q,U,V;const[X,Y]=n(0===r),[Z,ii]=n(!1),oi=null==b?void 0:b.storyNode,li=(null===(_=null==N?void 0:N.icons)||void 0===_?void 0:_.bookmarkIcon)||t,ni=(null===(x=null==N?void 0:N.icons)||void 0===x?void 0:x.chevronDownIcon)||s,ei=(null===(G=null==N?void 0:N.icons)||void 0===G?void 0:G.chevronRightIcon)||a,ti=e(()=>d.display_items.critical.length>0?"Critical":d.display_items.warning.length>0?"Warning":d.display_items.recommendation.length>0?"Suggestion":null,[d.display_items,C]),si=e(()=>h(d),[d]),ai=0===((null===(A=null===(z=d.display_items)||void 0===z?void 0:z.critical)||void 0===A?void 0:A.length)||0)+((null===(W=null===(F=d.display_items)||void 0===F?void 0:F.warning)||void 0===W?void 0:W.length)||0)+((null===(P=null===(H=d.display_items)||void 0===H?void 0:H.recommendation)||void 0===P?void 0:P.length)||0);return i("div",{className:`${m.container} ${r>0?m.nestedContainer:""}`,style:{...null==oi?void 0:oi.container,...r>0?null==oi?void 0:oi.nestedContainer:{}},children:[i("div",{onClick:()=>{Y(!X),null==y||y(),null==w||w(R)},className:m.headerRow,style:{...null==oi?void 0:oi.headerRow,...Z?null==oi?void 0:oi.headerRowHover:{}},onMouseEnter:()=>ii(!0),onMouseLeave:()=>ii(!1),children:[o("div",{className:m.chevronWrapper,style:null==oi?void 0:oi.chevronWrapper,children:X?o(ni,{className:m.chevronIcon,style:{color:null===(L=null==N?void 0:N.iconColors)||void 0===L?void 0:L.chevronIcon,width:null===(j=null==N?void 0:N.iconSizes)||void 0===j?void 0:j.chevronIcon,height:null===(O=null==N?void 0:N.iconSizes)||void 0===O?void 0:O.chevronIcon}}):o(ei,{className:m.chevronIcon,style:{color:null===($=null==N?void 0:N.iconColors)||void 0===$?void 0:$.chevronIcon,width:null===(B=null==N?void 0:N.iconSizes)||void 0===B?void 0:B.chevronIcon,height:null===(D=null==N?void 0:N.iconSizes)||void 0===D?void 0:D.chevronIcon}})}),i("div",{className:m.headerContent,style:null==oi?void 0:oi.headerContent,children:[i("div",{className:m.artifactIdRow,style:null==oi?void 0:oi.artifactIdRow,children:[o(li,{className:m.bookmarkIcon,style:{color:null===(M=null==N?void 0:N.iconColors)||void 0===M?void 0:M.bookmarkIcon,width:null===(T=null==N?void 0:N.iconSizes)||void 0===T?void 0:T.bookmarkIcon,height:null===(E=null==N?void 0:N.iconSizes)||void 0===E?void 0:E.bookmarkIcon}}),o("span",{style:null==oi?void 0:oi.artifactIdText,children:d.artifactTitleID})]}),o(c,{title:g(d.title,null===(J=null==N?void 0:N.icons)||void 0===J?void 0:J.infoIcon,null===(q=null==N?void 0:N.iconColors)||void 0===q?void 0:q.infoIcon,null===(K=null==N?void 0:N.iconSizes)||void 0===K?void 0:K.infoIcon),arrow:!0,children:o("h3",{className:m.title,style:{...null==oi?void 0:oi.title,...Z?null==oi?void 0:oi.titleHover:{}},children:g(d.title,null===(Q=null==N?void 0:N.icons)||void 0===Q?void 0:Q.infoIcon,null===(U=null==N?void 0:N.iconColors)||void 0===U?void 0:U.infoIcon,null===(V=null==N?void 0:N.iconSizes)||void 0===V?void 0:V.infoIcon)})}),!X&&o("div",{className:m.collapsedSummary,style:null==oi?void 0:oi.collapsedSummary,children:(0===r||si.critical+si.warning+si.recommendation>0)&&i(l,{children:[o("span",{className:m.summaryLabel,style:null==oi?void 0:oi.summaryLabel,children:"Gap"===C?"Gaps : ":"Risks : "}),i("div",{className:m.summaryBadgesContainer,style:null==oi?void 0:oi.summaryBadgesContainer,children:[si.critical>0&&o(u,{title:"Critical",length:si.critical,badgeColorClass:"critical",customStyles:b}),si.warning>0&&o(u,{title:"Warning",length:si.warning,badgeColorClass:"warning",customStyles:b}),si.recommendation>0&&o(u,{title:"JAS",length:si.recommendation,badgeColorClass:"suggestion",customStyles:b})]})]})})]})]}),X&&i("div",{className:m.expandedContent,style:null==oi?void 0:oi.expandedContent,children:[o("div",{className:m.expandedInnerPadding,style:null==oi?void 0:oi.expandedInnerPadding,children:ai?r>0&&o("span",{className:m.summaryLabel,style:null==oi?void 0:oi.summaryLabel,children:"Gaps: No Gaps Found"}):i("div",{className:m.itemsContainer,style:null==oi?void 0:oi.itemsContainer,children:[o(v,{title:"Critical",items:d.display_items.critical,badgeColorClass:"critical",defaultOpen:"Critical"===ti,type:C,isProcessingGapItems:I,onClickAiReasoning:f,handleFixRisk:S,handleHighlightGapContent:k,customStyles:b,customIcons:N}),o(v,{title:"Warning",items:d.display_items.warning,badgeColorClass:"warning",defaultOpen:"Warning"===ti,type:C,isProcessingGapItems:I,onClickAiReasoning:f,handleFixRisk:S,handleHighlightGapContent:k,customStyles:b,customIcons:N}),o(v,{title:"Suggestion",items:d.display_items.recommendation,badgeColorClass:"suggestion",defaultOpen:"Suggestion"===ti,type:C,isProcessingGapItems:I,onClickAiReasoning:f,handleFixRisk:S,handleHighlightGapContent:k,customStyles:b,customIcons:N})]})}),d.sub_feature&&d.sub_feature.length>0&&o("div",{className:m.subFeaturesWrapper,style:null==oi?void 0:oi.subFeaturesWrapper,children:d.sub_feature.map((i,l)=>o(p,{story:i,depth:r+1,onClickStoryNodeCallback:y,type:C,isProcessingGapItems:I,onClickAiReasoning:f,handleFixRisk:S,handleHighlightGapContent:k,customStyles:b,customIcons:N,onSelectStory:w,rootArtifactId:R},l))})]})]})};export{p as default,g as replaceLearnedTagsWithInfo};
2
2
  //# sourceMappingURL=StoryNode.js.map
@@ -1,2 +1,2 @@
1
- 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=(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:n,subId:r}=(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===n),o=t[c];if(!o)return;const g=o.sub_feature.findIndex(t=>t.id===r),d="null"===r.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:n,subId:r})})(i,t,s)})}),i},e=(t,s)=>Object.assign(Object.assign({},t),{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))},sub_feature:t.sub_feature.map(t=>e(t,s))}),a=(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))}});export{s as buildStoryWithGap,a as updateGapInRawData,e as updateGapStory};
1
+ const t=(e,a)=>{var i;return{title:e.title,artifactTitleID:a,gap_items:{critical:[],warning:[],recommendation:[]},id:e.artifactId,sub_feature:(null!==(i=e.sub_features)&&void 0!==i?i:[]).map((e,i)=>{const s=`${a}-${String.fromCharCode(65+i)}`;return t(e,s)})}},e=(e,a,i)=>{const s=e.map((e,a)=>t(e,i[a]));return Object.keys(a.gap_items).forEach(t=>{a.gap_items[t].forEach(e=>{((t,e,a)=>{var i;const{isArtifactLevel:s,storyId:r,subId:n}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const e=t.indexOf("/");return-1===e?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,e),subId:t.substring(e+1)}})(a.user_story_id);if(s)return void(t.length>0?t[0].gap_items[e].push({...a}):console.warn("[buildStoryWithGap] No stories available for artifact-level gap:",a.user_story_id));const o=t.findIndex(t=>t.id===r),d=t[o];if(!d)return;const u=d.sub_feature.findIndex(t=>t.id===n),c="null"===n.toLowerCase()?d:null===(i=d.sub_feature)||void 0===i?void 0:i[u];c?c.gap_items[e].push({...a}):console.warn("[buildStoryWithGap] Target story/sub-feature not found:",{storyId:r,subId:n})})(s,t,e)})}),s},a=(t,e)=>({...t,gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),warning:t.gap_items.warning.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t})},sub_feature:t.sub_feature.map(t=>a(t,e))}),i=(t,e)=>({gap_items:{critical:t.gap_items.critical.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),warning:t.gap_items.warning.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t}),recommendation:t.gap_items.recommendation.map(t=>t.gap_id===e?{...t,status:"completed"}:{...t})}});export{e as buildStoryWithGap,i as updateGapInRawData,a as updateGapStory};
2
2
  //# sourceMappingURL=buildStoryWithGap.js.map
@@ -1,2 +1,2 @@
1
- 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=(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},i=(s,t)=>Object.assign(Object.assign({},s),{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))},sub_feature:s.sub_feature.map(s=>i(s,t))}),e=(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))}});export{t as buildStoryWithRisk,e as updateRiskInRawData,i as updateStory};
1
+ const t=(i,s)=>{var r;return{title:i.title,artifactTitleID:s,risk_items:{critical:[],warning:[],recommendation:[]},id:i.artifactId,sub_feature:(null!==(r=i.sub_features)&&void 0!==r?r:[]).map((i,r)=>{const e=`${s}-${String.fromCharCode(65+r)}`;return t(i,e)})}},i=(i,s,r)=>{const e=i.map((i,s)=>t(i,r[s]));return Object.keys(s.risk_items).forEach(t=>{s.risk_items[t].forEach(i=>{((t,i,s)=>{var r;const{isArtifactLevel:e,storyId:a,subId:n}=(t=>{if(t.startsWith("N/A"))return{isArtifactLevel:!0,storyId:"",subId:""};const i=t.indexOf("/");return-1===i?{isArtifactLevel:!1,storyId:t,subId:"null"}:{isArtifactLevel:!1,storyId:t.substring(0,i),subId:t.substring(i+1)}})(s.user_story_id);if(e)return void(t.length>0?t[0].risk_items[i].push({...s}):console.warn("[buildStoryWithRisk] No stories available for artifact-level risk:",s.user_story_id));const o=t.findIndex(t=>t.id===a),d=t[o];if(!d)return;const u=d.sub_feature.findIndex(t=>t.id===n),c="null"===n.toLowerCase()?d:null===(r=d.sub_feature)||void 0===r?void 0:r[u];c?c.risk_items[i].push({...s}):console.warn("[buildStoryWithRisk] Target story/sub-feature not found:",{storyId:a,subId:n})})(e,t,i)})}),e},s=(t,i)=>({...t,risk_items:{critical:t.risk_items.critical.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),warning:t.risk_items.warning.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),recommendation:t.risk_items.recommendation.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t})},sub_feature:t.sub_feature.map(t=>s(t,i))}),r=(t,i)=>({risk_items:{critical:t.risk_items.critical.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),warning:t.risk_items.warning.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t}),recommendation:t.risk_items.recommendation.map(t=>t.risk_id===i?{...t,status:"completed"}:{...t})}});export{i as buildStoryWithRisk,r as updateRiskInRawData,s as updateStory};
2
2
  //# sourceMappingURL=buildStoryWithRisk.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{Tooltip as t}from"@mui/material";import o from"./RecommendationBlock.module.css.js";const n=({label:n,customStyles:i})=>e("span",Object.assign({className:o.recommendationBlockContainer,style:null==i?void 0:i.container},{children:e(t,Object.assign({title:n},{children:e("span",{children:"RECOMMENDATION"})}))}));export{n as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{Tooltip as o}from"@mui/material";import t from"./RecommendationBlock.module.css.js";const l=({label:l,customStyles:m})=>e("span",{className:t.recommendationBlockContainer,style:null==m?void 0:m.container,children:e(o,{title:l,children:e("span",{children:"RECOMMENDATION"})})});export{l as default};
2
2
  //# sourceMappingURL=RecommendationBlock.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{createContext as e,useState as n,useMemo as i,useCallback as o,useContext as r}from"react";import{RefProvider as s}from"../../store/ref.context.js";var a;!function(t){t.WAITING="waiting",t.IN_PROGRESS="in_progress",t.GENERATED="generated",t.FAILED="failed",t.GENERATE="generate",t.APPROVED="approved"}(a||(a={}));const c=e(null),g=({children:e,userStory:r,setUserStory:a,aiReasoning:g,setAiReasoning:u,citations:f,setCitations:d,apiCachingConfig:l,customStyles:C,customIcons:h,searchQueryList:m,searchQueryReasoningIdList:p,citationConfig:S,chatHistory:y,chatCitationConfigs:I,gptCitationConfigs:R,diffEditConfig:A,aiReasoningAccordionOpenStates:v,persistedDataFiles:E,inlineUpdateComponentConfig:x,segmentComponentConfig:N,sectionStatusConfig:D,customSectionConfig:L})=>{const[O,_]=n(0),b=i(()=>{if(0===r.length||0===g.length)return Array(r.length).fill(0);const t=Array.from({length:r.length},()=>[]);return g.forEach(e=>{const n=Number(e.relevance_score);if(isNaN(n)||n<=0)return;const i=`ai_reasoning$${e.id}`,o=r.findIndex(t=>{var e;return t.value.includes(i)||(null===(e=t.sub_features)||void 0===e?void 0:e.some(t=>t.value.includes(i)))});-1!==o&&t[o].push(n)}),t.map(t=>0===t.length?0:Math.round(t.reduce((t,e)=>t+e,0)/t.length))},[r,g]),w=o(t=>{var e;const n=r.findIndex(e=>e.artifactId===t);return-1===n?0:null!==(e=b[n])&&void 0!==e?e:0},[r,b]);return t(c.Provider,Object.assign({value:{chatHistory:y,userStory:r,setUserStory:a,aiReasoning:g,setAiReasoning:u,citations:f,setCitations:d,apiCachingConfig:l,customStyles:C,customIcons:h,searchQueryList:m,searchQueryReasoningIdList:p,citationConfig:S,getAvgScoreForStory:w,chatCitationConfigs:I,gptCitationConfigs:R,diffEditConfig:A,aiReasoningAccordionOpenStates:v,persistedDataFiles:E,currentHighlightIndex:O,setCurrentHighlightIndex:_,inlineUpdateComponentConfig:x,segmentComponentConfig:N,sectionStatusConfig:D,customSectionConfig:L}},{children:t(s,{children:e})}))},u=()=>{const t=r(c);if(!t)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return t};export{a as SectionStatus,g as default,u as useRequirementAI};
1
+ import{jsx as e}from"react/jsx-runtime";import{createContext as n,useState as t,useMemo as i,useCallback as o,useContext as r}from"react";import{RefProvider as s}from"../../store/ref.context.js";var a;!function(e){e.WAITING="waiting",e.IN_PROGRESS="in_progress",e.GENERATED="generated",e.FAILED="failed",e.GENERATE="generate",e.APPROVED="approved"}(a||(a={}));const c=n(null),g=({children:n,userStory:r,setUserStory:a,aiReasoning:g,setAiReasoning:u,citations:d,setCitations:l,apiCachingConfig:f,customStyles:C,customIcons:m,searchQueryList:h,searchQueryReasoningIdList:p,citationConfig:R,chatHistory:I,chatCitationConfigs:S,gptCitationConfigs:y,diffEditConfig:E,aiReasoningAccordionOpenStates:A,persistedDataFiles:v,inlineUpdateComponentConfig:D,segmentComponentConfig:x,onEditBlocked:N,inlineManualComponentConfig:P,redlineConfig:L,sectionStatusConfig:_,customSectionConfig:w,updateRedlineDataParent:F})=>{const[G,H]=t(0),[O,Q]=t(""),U=i(()=>{if(0===r.length||0===g.length)return Array(r.length).fill(0);const e=Array.from({length:r.length},()=>[]);return g.forEach(n=>{const t=Number(n.relevance_score);if(isNaN(t)||t<=0)return;const i=`ai_reasoning$${n.id}`,o=r.findIndex(e=>{var n;return e.value.includes(i)||(null===(n=e.sub_features)||void 0===n?void 0:n.some(e=>e.value.includes(i)))});-1!==o&&e[o].push(t)}),e.map(e=>0===e.length?0:Math.round(e.reduce((e,n)=>e+n,0)/e.length))},[r,g]),b=o(e=>{var n;const t=r.findIndex(n=>n.artifactId===e);return-1===t?0:null!==(n=U[t])&&void 0!==n?n:0},[r,U]);return e(c.Provider,{value:{chatHistory:I,userStory:r,setUserStory:a,aiReasoning:g,setAiReasoning:u,citations:d,setCitations:l,apiCachingConfig:f,customStyles:C,customIcons:m,searchQueryList:h,searchQueryReasoningIdList:p,citationConfig:R,getAvgScoreForStory:b,chatCitationConfigs:S,gptCitationConfigs:y,diffEditConfig:E,aiReasoningAccordionOpenStates:A,persistedDataFiles:v,currentHighlightIndex:G,setCurrentHighlightIndex:H,inlineUpdateComponentConfig:D,segmentComponentConfig:x,onEditBlocked:N,inlineManualComponentConfig:P,redlineConfig:L,redlineDcoumentId:O,setRedlineDocumentId:Q,sectionStatusConfig:_,customSectionConfig:w,updateRedlineDataParent:F},children:e(s,{children:n})})},u=()=>{const e=r(c);if(!e)throw new Error("useRequirementAI must be used within RequirementAIWrapper");return e};export{a as SectionStatus,g as default,u as useRequirementAI};
2
2
  //# sourceMappingURL=RequirementAIWrapper.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useState as i,useEffect as l}from"react";import{LexicalComposer as n}from"@lexical/react/LexicalComposer";import{HistoryPlugin as a}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as m}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as c}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as s,ListItemNode as p}from"@lexical/list";import{ListPlugin as u}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as d}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as f}from"@lexical/link";import{QuoteNode as g,HeadingNode as x}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as C,TableRowNode as y,TableCellNode as v}from"@lexical/table";import{KEY_DOWN_COMMAND as b,$getSelection as j,$isRangeSelection as T,COMMAND_PRIORITY_CRITICAL as S,TextNode as E,$isTextNode as L}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as k}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import B from"./components/EditorContainer/EditorContainer.js";import P from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as N}from"./plugins/LayoutPlugin.js";import _ from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import D from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import w from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as I}from"./constants/editorConfig.js";import{InitialHtml as R}from"./plugins/InitialHtml.js";import{InsertNode as M}from"./plugins/InsertNode.js";import{DeleteNode as O}from"./plugins/DeleteNode.js";import{HighlightSpanNode as A,HighlightButtonNode as F}from"./plugins/HighlightNode.js";import{useLexicalComposerContext as W}from"@lexical/react/LexicalComposerContext";function q(e){console.log(e)}function V(){const[e]=W();return l(()=>{const t=e=>{let t=e;for(;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(b,e=>{if("Backspace"!==e.key&&"Delete"!==e.key)return!1;const o=j();if(!T(o))return!1;if(o.getNodes().some(e=>t(e)))return e.preventDefault(),!0;if(o.isCollapsed()){const r=o.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){const t=r.getPreviousSibling();if(0===o.anchor.offset&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}if("Delete"===e.key){const t=r.getNextSibling(),i=r.getTextContent().length;if(o.anchor.offset===i&&"delete"===(null==t?void 0:t.getType()))return e.preventDefault(),!0}}return!1},S)},[e]),null}function X({minHeight:l,height:b,placeholder:S,onFocus:W,onBlur:X,onChange:Y,onToolbarButtonClick:$,toolbarConfig:z=I,editorRef:G,editorState:J,initialString:K,customToolbar:Q,plugins:U,nodes:Z,dynamicHeight:ee,artifactContext:te,commentsPanelState:oe,mode:re,doNotShowBorderInViewMode:ie}){var le,ne,ae;const me=r(null),ce={namespace:"MyEditor",theme:_,onError:q,nodes:[E,s,p,f,g,x,C,y,v,H,w,M,O,A,F],editorState:J},[se,pe]=i(null),[ue,de]=i(!1),{customStyles:fe}=k(),ge=e=>{var t;null===(t=G.current)||void 0===t||t.update(()=>{const t=j();T(t)&&t.getNodes().forEach(t=>{L(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e(t,{children:[(null===(le=null==fe?void 0:fe.textEditorStyles)||void 0===le?void 0:le.themeStyles)&&o("style",{children:null===(ne=null==fe?void 0:fe.textEditorStyles)||void 0===ne?void 0:ne.themeStyles}),e("div",Object.assign({ref:me,className:"w-full lexical_editor_wrapper "+(ie&&"readOnly"===re?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=G.current)||void 0===t||t.update(()=>{const t=j();T(t)&&!t.isCollapsed()?(de(!0),pe({x:e.clientX,y:e.clientY})):(de(!1),pe(null))})},style:Object.assign({minHeight:l,height:b},null===(ae=null==fe?void 0:fe.textEditorStyles)||void 0===ae?void 0:ae.textArea)},{children:[e(n,Object.assign({initialConfig:ce},{children:[" ","edit"===re&&o(V,{}),"edit"===re&&o(P,{onToolbarButtonClick:$,editorWrapperRef:me,toolbarConfig:z,customToolbar:Q,editorRef:G}),o(B,{placeholder:S}),o(c,{}),o(a,{}),o(u,{}),o(d,{}),o(h,{}),o(N,{onFocus:W,onBlur:X,editorRef:G}),o(m,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,o)=>{Y&&Y(e,t,o)}}),K&&o(R,{initialValue:K.value,initialFormat:K.type,mode:re}),U&&U]})),se&&ue&&"edit"===re&&o(D,{position:se,options:[{label:"Change Color to Red",action:()=>ge("red")},{label:"Change Color to Blue",action:()=>ge("blue")}],onClose:()=>{pe(null)}})]}))]})}export{X as default};
1
+ import{jsxs as e,Fragment as t,jsx as o}from"react/jsx-runtime";import{useRef as r,useState as i,useEffect as n}from"react";import{LexicalComposer as l}from"@lexical/react/LexicalComposer";import{HistoryPlugin as a}from"@lexical/react/LexicalHistoryPlugin";import{OnChangePlugin as s}from"@lexical/react/LexicalOnChangePlugin";import{TabIndentationPlugin as u}from"@lexical/react/LexicalTabIndentationPlugin";import{ListNode as m,ListItemNode as c}from"@lexical/list";import{ListPlugin as d}from"@lexical/react/LexicalListPlugin";import{LinkPlugin as p}from"@lexical/react/LexicalLinkPlugin";import{LinkNode as f}from"@lexical/link";import{QuoteNode as g,HeadingNode as x}from"@lexical/rich-text";import{TablePlugin as h}from"@lexical/react/LexicalTablePlugin";import{TableNode as C,TableRowNode as v,TableCellNode as y}from"@lexical/table";import{KEY_DOWN_COMMAND as S,$getSelection as b,$isRangeSelection as j,COMMAND_PRIORITY_CRITICAL as T,TextNode as E,$isTextNode as N}from"lexical";import"./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js";import{useRequirementAI as B}from"../../RequirementAIWrapper/RequirementAIWrapper.js";import P from"./components/EditorContainer/EditorContainer.js";import L from"./components/EditorToolbar/EditorToolbar.js";import{LayoutPlugin as k}from"./plugins/LayoutPlugin.js";import I from"./theme/theme.js";import"./theme/theme.css.js";import"./Editor.css.js";import _ from"./components/Context/ContextMenu.js";import{MarkNode as H}from"@lexical/mark";import w from"./plugins/CommentPlugin/HTMLNode.js";import{DEFAULT_TOOLBAR_CONFIG as D}from"./constants/editorConfig.js";import{InitialHtml as M}from"./plugins/InitialHtml.js";import{InsertNode as R}from"./plugins/InsertNode.js";import{DeleteNode as A}from"./plugins/DeleteNode.js";import{HighlightSpanNode as F,HighlightButtonNode as W}from"./plugins/HighlightNode.js";import{useLexicalComposerContext as q}from"@lexical/react/LexicalComposerContext";import{UpdateNode as O}from"./plugins/UpdateNode.js";import{ManualNode as V}from"./plugins/ManualNode.js";import{PreservedNode as U}from"./plugins/PreservedNode.js";import{InvisibleNode as X}from"./plugins/InvisibleNode.js";function Y(e){console.log(e)}function $({onEditBlocked:e}){const[t]=q();return n(()=>{const o=e=>{let t=e;for(;t;){if(["preserved","insert","delete"].includes(t.getType()))return t;if(["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())return t;t=t.getParent()}return!1};function r(e){let t=e;for(;t;){if((t instanceof O||t instanceof V)&&"pending"===t.getStatus())return t.getId();t=t.getParent()}return null}return t.registerCommand(S,t=>{const i=b();if(!j(i))return!1;const n=i.getNodes().find(e=>!!o(e));if(n)return t.preventDefault(),null==e||e(r(n)||""),!0;if(i.isCollapsed()){const n=i.anchor.getNode(),l=o(n);if(l){const o=l?r(l):"";return null==e||e(o||""),t.preventDefault(),!0}if("Backspace"===t.key){const o=n.getPreviousSibling(),l=o&&(["delete","insert","preserved"].includes(o.getType())||["update","manual"].includes(o.getType())&&o.getStatus()&&"pending"===o.getStatus())?o:null;if(0===i.anchor.offset&&l)return null==e||e(r(l)||""),t.preventDefault(),!0}else if("Delete"===t.key){const o=n.getNextSibling(),l=o&&(["delete","insert","preserved"].includes(o.getType())||["update","manual"].includes(o.getType())&&o.getStatus()&&"pending"===o.getStatus())?o:null,a=n.getTextContent().length;if(i.anchor.offset===a&&l)return null==e||e(r(l)||""),t.preventDefault(),!0}}return!1},T)},[t]),null}function z({minHeight:n,height:S,placeholder:T,onFocus:q,onBlur:z,onChange:G,onToolbarButtonClick:J,toolbarConfig:K=D,editorRef:Q,editorState:Z,initialString:ee,customToolbar:te,plugins:oe,nodes:re,dynamicHeight:ie,artifactContext:ne,commentsPanelState:le,mode:ae,doNotShowBorderInViewMode:se,onEditBlocked:ue}){var me,ce,de;const pe=r(null),fe={namespace:"MyEditor",theme:I,onError:Y,nodes:[E,m,c,f,g,x,C,v,y,H,w,R,A,O,U,V,X,F,W],editorState:Z},[ge,xe]=i(null),[he,Ce]=i(!1),{customStyles:ve}=B(),ye=e=>{var t;null===(t=Q.current)||void 0===t||t.update(()=>{const t=b();j(t)&&t.getNodes().forEach(t=>{N(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e(t,{children:[(null===(me=null==ve?void 0:ve.textEditorStyles)||void 0===me?void 0:me.themeStyles)&&o("style",{children:null===(ce=null==ve?void 0:ve.textEditorStyles)||void 0===ce?void 0:ce.themeStyles}),e("div",{ref:pe,className:"w-full lexical_editor_wrapper "+(se&&"readOnly"===ae?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=Q.current)||void 0===t||t.update(()=>{const t=b();j(t)&&!t.isCollapsed()?(Ce(!0),xe({x:e.clientX,y:e.clientY})):(Ce(!1),xe(null))})},style:{minHeight:n,height:S,...null===(de=null==ve?void 0:ve.textEditorStyles)||void 0===de?void 0:de.textArea},children:[e(l,{initialConfig:fe,children:[" ","edit"===ae&&o($,{onEditBlocked:ue}),"edit"===ae&&o(L,{onToolbarButtonClick:J,editorWrapperRef:pe,toolbarConfig:K,customToolbar:te,editorRef:Q}),o(P,{placeholder:T}),o(u,{}),o(a,{}),o(d,{}),o(p,{}),o(h,{}),o(k,{onFocus:q,onBlur:z,editorRef:Q}),o(s,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,o)=>{G&&G(e,t,o)}}),ee&&o(M,{initialValue:ee.value,initialFormat:ee.type,mode:ae}),oe&&oe]}),ge&&he&&"edit"===ae&&o(_,{position:ge,options:[{label:"Change Color to Red",action:()=>ye("red")},{label:"Change Color to Blue",action:()=>ye("blue")}],onClose:()=>{xe(null)}})]})]})}export{z as default};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as o}from"react/jsx-runtime";import{useEffect as e}from"react";const t=({options:t,position:n,onClose:r})=>(e(()=>{const o=()=>r();return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[r]),o("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:t.map((e,t)=>o("button",Object.assign({style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{e.action(),r()}},{children:e.label}),t))})));export{t as default};
1
+ import{jsx as o}from"react/jsx-runtime";import{useEffect as e}from"react";const t=({options:t,position:n,onClose:r})=>(e(()=>{const o=()=>r();return document.addEventListener("click",o),()=>document.removeEventListener("click",o)},[r]),o("div",{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:t.map((e,t)=>o("button",{style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{e.action(),r()},children:e.label},t))}));export{t as default};
2
2
  //# sourceMappingURL=ContextMenu.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import{ContentEditable as r}from"@lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as l}from"@lexical/react/LexicalErrorBoundary";import{RichTextPlugin as o}from"@lexical/react/LexicalRichTextPlugin";import t from"../EditorPlaceholder/EditorPlaceholder.js";import"./EditorContainer.css.js";const i=({placeholder:i})=>e("div",Object.assign({className:"lexical_editor_container"},{children:e(o,{contentEditable:e(r,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:i?()=>e(t,{placeholder:i}):null,ErrorBoundary:l})}));export{i as default};
1
+ import{jsx as e}from"react/jsx-runtime";import{ContentEditable as r}from"@lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as l}from"@lexical/react/LexicalErrorBoundary";import{RichTextPlugin as o}from"@lexical/react/LexicalRichTextPlugin";import t from"../EditorPlaceholder/EditorPlaceholder.js";import"./EditorContainer.css.js";const i=({placeholder:i})=>e("div",{className:"lexical_editor_container",children:e(o,{contentEditable:e(r,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:i?()=>e(t,{placeholder:i}):null,ErrorBoundary:l})});export{i as default};
2
2
  //# sourceMappingURL=EditorContainer.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e}from"react/jsx-runtime";import"./EditorPlaceholder.css.js";const r=({placeholder:r})=>e("div",Object.assign({className:"lexical_editor_placeholder"},{children:r}));export{r as default};
1
+ import{jsx as e}from"react/jsx-runtime";import"./EditorPlaceholder.css.js";const r=({placeholder:r})=>e("div",{className:"lexical_editor_placeholder",children:r});export{r as default};
2
2
  //# sourceMappingURL=EditorPlaceholder.js.map
@@ -1,2 +1,2 @@
1
- import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import{useState as r,useRef as i,useCallback as a,useEffect as n}from"react";import{$getSelection as l,$isRangeSelection as s,CAN_UNDO_COMMAND as c,COMMAND_PRIORITY_CRITICAL as m,CAN_REDO_COMMAND as d,FORMAT_TEXT_COMMAND as p,FORMAT_ELEMENT_COMMAND as u,$createParagraphNode as f}from"lexical";import{$getSelectionStyleValueForProperty as g,$patchStyleText as b,$setBlocksType as h}from"@lexical/selection";import{$isHeadingNode as x,$createHeadingNode as v,$createQuoteNode as j}from"@lexical/rich-text";import{$isListNode as y,ListNode as T}from"@lexical/list";import{useLexicalComposerContext as C}from"@lexical/react/LexicalComposerContext";import{$getNearestNodeOfType as O,mergeRegister as R}from"@lexical/utils";import{$isLinkNode as E,TOGGLE_LINK_COMMAND as I}from"@lexical/link";import{$isCodeNode as k,getDefaultCodeLanguage as A}from"@lexical/code";import B from"./components/ToolbarButton/ToolbarButton.js";import{ToolbarDivider as S}from"./components/ToolbarDivider/ToolbarDivider.js";import{UndoRedo as q}from"./components/UndoRedo/UndoRedo.js";import"./EditorToolbar.css.js";import{ACTIVE_FORMATS as L}from"../../constants/objects.js";import{getSelectedNode as N}from"../../utils/getSelectedNode.js";import{Icon as U}from"../Icons/Icon.js";import{useRequirementAI as _}from"../../../../RequirementAIWrapper/RequirementAIWrapper.js";const K=({editorWrapperRef:K,onToolbarButtonClick:W,toolbarConfig:z,customToolbar:D,editorRef:F})=>{var P;const[w]=C(),[G,H]=r(L),[J,M]=r("15px"),[Q,V]=r("Arial"),[X,Y]=r(""),[Z,$]=r(!1),[oo,to]=r("paragraph"),[eo,ro]=r(null),[io,ao]=r(""),[no,lo]=r(!1),[so,co]=r(!1),mo=i(null),{customStyles:po}=_(),uo=a(()=>{var o;const t=l();if(s(t)){const e=t.anchor.getNode(),r="root"===e.getKey()?e:e.getTopLevelElementOrThrow(),i=r.getKey();if(null!==w.getElementByKey(i))if(ro(i),y(r)){const o=O(e,T),t=o?o.getTag():r.getTag();to(t)}else{const o=x(r)?r.getTag():r.getType();to(o),k(r)&&ao(r.getLanguage()||A())}Object.keys(L).forEach(o=>{t.hasFormat(o)?H(t=>Object.assign(Object.assign({},t),{[o]:!0})):H(t=>Object.assign(Object.assign({},t),{[o]:!1}))});const a=N(t),n=a.getParent();E(n)||E(a)?$(!0):$(!1),M(g(t,"font-size","15px")),V(g(t,"font-family","Arial"));const l=null===(o=t.anchor.getNode().getParent())||void 0===o?void 0:o.getFormatType();Y(l)}},[w]);n(()=>R(w.registerUpdateListener(({editorState:o})=>{o.read(()=>{uo()})}),w.registerCommand(c,o=>(lo(o),!1),m),w.registerCommand(d,o=>(co(o),!1),m)),[w,uo]);const fo=a((o,t)=>{w.dispatchCommand(p,t)},[w]);a((o,t)=>{["left","center","right","justify"].includes(t)&&w.dispatchCommand(u,t)},[w]),a((o,t)=>{w.update(()=>{const o=l();s(o)&&b(o,{"font-size":t})})},[w]);return a((o,t)=>{var e;"h1"!==t&&"h2"!==t&&"h3"!==t||oo!==(e=t)&&w.update(()=>{const o=l();s(o)&&h(o,()=>v(e))}),"paragraph"===t&&"paragraph"!==oo&&w.update(()=>{const o=l();s(o)&&h(o,()=>f())}),"quote"===t&&"quote"!==oo&&w.update(()=>{const o=l();s(o)&&h(o,()=>j())})},[w,oo]),a((o,t)=>{w.update(()=>{const o=l();s(o)&&b(o,{"font-family":t})})},[w]),a(()=>{Z?w.dispatchCommand(I,null):w.dispatchCommand(I,"https://")},[w,Z]),o("div",Object.assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:mo,style:Object.assign({},null===(P=null==po?void 0:po.textEditorStyles)||void 0===P?void 0:P.tooltextArea)},{children:[(null==z?void 0:z.undoRedo.display)&&t(q,{canUndo:no,canRedo:so}),(null==z?void 0:z.inline.display)&&o(e,{children:[z.inline.options.map(o=>{var e;return t(B,{toolbarItem:o,active:G[o],onClick:fo,icon:t(U,{icon:o,iconColors:null===(e=null==po?void 0:po.textEditorStyles)||void 0===e?void 0:e.toolIconColors}),onToolbarButtonClick:W},o)}),t(S,{})]}),D&&D]}))};export{K as default};
1
+ import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import{useState as r,useRef as i,useCallback as l,useEffect as a}from"react";import{$getSelection as n,$isRangeSelection as s,CAN_UNDO_COMMAND as c,COMMAND_PRIORITY_CRITICAL as m,CAN_REDO_COMMAND as d,FORMAT_TEXT_COMMAND as p,FORMAT_ELEMENT_COMMAND as u,$createParagraphNode as f}from"lexical";import{$getSelectionStyleValueForProperty as g,$patchStyleText as h,$setBlocksType as x}from"@lexical/selection";import{$isHeadingNode as v,$createHeadingNode as y,$createQuoteNode as T}from"@lexical/rich-text";import{$isListNode as b,ListNode as C}from"@lexical/list";import{useLexicalComposerContext as j}from"@lexical/react/LexicalComposerContext";import{$getNearestNodeOfType as R,mergeRegister as E}from"@lexical/utils";import{$isLinkNode as I,TOGGLE_LINK_COMMAND as k}from"@lexical/link";import{$isCodeNode as A,getDefaultCodeLanguage as B}from"@lexical/code";import S from"./components/ToolbarButton/ToolbarButton.js";import{ToolbarDivider as q}from"./components/ToolbarDivider/ToolbarDivider.js";import{UndoRedo as L}from"./components/UndoRedo/UndoRedo.js";import"./EditorToolbar.css.js";import{ACTIVE_FORMATS as N}from"../../constants/objects.js";import{getSelectedNode as U}from"../../utils/getSelectedNode.js";import{Icon as _}from"../Icons/Icon.js";import{useRequirementAI as K}from"../../../../RequirementAIWrapper/RequirementAIWrapper.js";const W=({editorWrapperRef:W,onToolbarButtonClick:z,toolbarConfig:D,customToolbar:F,editorRef:O})=>{var P;const[w]=j(),[G,H]=r(N),[J,M]=r("15px"),[Q,V]=r("Arial"),[X,Y]=r(""),[Z,$]=r(!1),[oo,to]=r("paragraph"),[eo,ro]=r(null),[io,lo]=r(""),[ao,no]=r(!1),[so,co]=r(!1),mo=i(null),{customStyles:po}=K(),uo=l(()=>{var o;const t=n();if(s(t)){const e=t.anchor.getNode(),r="root"===e.getKey()?e:e.getTopLevelElementOrThrow(),i=r.getKey();if(null!==w.getElementByKey(i))if(ro(i),b(r)){const o=R(e,C),t=o?o.getTag():r.getTag();to(t)}else{const o=v(r)?r.getTag():r.getType();to(o),A(r)&&lo(r.getLanguage()||B())}Object.keys(N).forEach(o=>{t.hasFormat(o)?H(t=>({...t,[o]:!0})):H(t=>({...t,[o]:!1}))});const l=U(t),a=l.getParent();I(a)||I(l)?$(!0):$(!1),M(g(t,"font-size","15px")),V(g(t,"font-family","Arial"));const n=null===(o=t.anchor.getNode().getParent())||void 0===o?void 0:o.getFormatType();Y(n)}},[w]);a(()=>E(w.registerUpdateListener(({editorState:o})=>{o.read(()=>{uo()})}),w.registerCommand(c,o=>(no(o),!1),m),w.registerCommand(d,o=>(co(o),!1),m)),[w,uo]);const fo=l((o,t)=>{w.dispatchCommand(p,t)},[w]);l((o,t)=>{["left","center","right","justify"].includes(t)&&w.dispatchCommand(u,t)},[w]),l((o,t)=>{w.update(()=>{const o=n();s(o)&&h(o,{"font-size":t})})},[w]);return l((o,t)=>{var e;"h1"!==t&&"h2"!==t&&"h3"!==t||oo!==(e=t)&&w.update(()=>{const o=n();s(o)&&x(o,()=>y(e))}),"paragraph"===t&&"paragraph"!==oo&&w.update(()=>{const o=n();s(o)&&x(o,()=>f())}),"quote"===t&&"quote"!==oo&&w.update(()=>{const o=n();s(o)&&x(o,()=>T())})},[w,oo]),l((o,t)=>{w.update(()=>{const o=n();s(o)&&h(o,{"font-family":t})})},[w]),l(()=>{Z?w.dispatchCommand(k,null):w.dispatchCommand(k,"https://")},[w,Z]),o("div",{className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:mo,style:{...null===(P=null==po?void 0:po.textEditorStyles)||void 0===P?void 0:P.tooltextArea},children:[(null==D?void 0:D.undoRedo.display)&&t(L,{canUndo:ao,canRedo:so}),(null==D?void 0:D.inline.display)&&o(e,{children:[D.inline.options.map(o=>{var e;return t(S,{toolbarItem:o,active:G[o],onClick:fo,icon:t(_,{icon:o,iconColors:null===(e=null==po?void 0:po.textEditorStyles)||void 0===e?void 0:e.toolIconColors}),onToolbarButtonClick:z},o)}),t(q,{})]}),F&&F]})};export{W as default};
2
2
  //# sourceMappingURL=EditorToolbar.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{useState as o}from"react";import"./ToolbarButton.css.js";import{useRequirementAI as e}from"../../../../../../RequirementAIWrapper/RequirementAIWrapper.js";const l=({toolbarItem:l,active:i,onClick:r,icon:n,disabled:a,onToolbarButtonClick:s})=>{var d,u,c,b;const{customStyles:v}=e(),[m,p]=o(!1),x=i?null===(d=null==v?void 0:v.textEditorStyles)||void 0===d?void 0:d.activeToolButton:null===(u=null==v?void 0:v.textEditorStyles)||void 0===u?void 0:u.toolbarButton,_=null===(c=null==v?void 0:v.textEditorStyles)||void 0===c?void 0:c.toolbarButtonHover,j=null===(b=null==v?void 0:v.textEditorStyles)||void 0===b?void 0:b.toolbarButtonDisabled,y=Object.assign(Object.assign(Object.assign({},x),m&&!a?_:{}),a?j:{});return t("button",Object.assign({className:"lexical_editor_toolbar_button "+(i?"lexical_editor_toolbar_button__active":""),onClick:t=>((t,o)=>{r(t,o),s&&s()})(t,l),disabled:a,style:y,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1)},{children:n}))};export{l as default};
1
+ import{jsx as o}from"react/jsx-runtime";import{useState as t}from"react";import"./ToolbarButton.css.js";import{useRequirementAI as l}from"../../../../../../RequirementAIWrapper/RequirementAIWrapper.js";const e=({toolbarItem:e,active:i,onClick:r,icon:n,disabled:a,onToolbarButtonClick:d})=>{var u,s,v,c;const{customStyles:b}=l(),[m,p]=t(!1),x=i?null===(u=null==b?void 0:b.textEditorStyles)||void 0===u?void 0:u.activeToolButton:null===(s=null==b?void 0:b.textEditorStyles)||void 0===s?void 0:s.toolbarButton,_=null===(v=null==b?void 0:b.textEditorStyles)||void 0===v?void 0:v.toolbarButtonHover,y=null===(c=null==b?void 0:b.textEditorStyles)||void 0===c?void 0:c.toolbarButtonDisabled,B={...x,...m&&!a?_:{},...a?y:{}};return o("button",{className:"lexical_editor_toolbar_button "+(i?"lexical_editor_toolbar_button__active":""),onClick:o=>((o,t)=>{r(o,t),d&&d()})(o,e),disabled:a,style:B,onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),children:n})};export{e as default};
2
2
  //# sourceMappingURL=ToolbarButton.js.map
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t}from"react/jsx-runtime";import{memo as i}from"react";const s=i(({icon:i,iconColors:s,width:n=18,height:r=18})=>{const h=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),w=t("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),o=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),l=t("svg",Object.assign({fill:"#000000",width:n,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),g=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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==s?void 0:s.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),C=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),d=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),L=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),a=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),M=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),v=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),x=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),p=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),u=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),B=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),k=t("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e("g",Object.assign({clipPath:"url(#clip0_37_1104)"},{children:e("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("defs",{children:e("clipPath",Object.assign({id:"clip0_37_1104"},{children:e("rect",{width:"16",height:"16",fill:"white"})}))})]})),H=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),f=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==s?void 0:s.codeIcon)||"#2B2E31"})})),j=e("svg",Object.assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),m=e("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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("svg",Object.assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),O=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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"})})),E=e("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e("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 h;case"list-ordered":return o;case"list-unordered":return l;case"edit-link":return g;case"bold":return c;case"italic":return C;case"strikethrough":return d;case"underline":return L;case"center":return a;case"left":return M;case"right":return v;case"justify":return x;case"arrow-up":return p;case"arrow-down":return u;case"confirm":return B;case"remove":return k;case"cancel":return H;case"code":return f;case"quote":return j;case"undo":return m;case"redo":return b;case"superscript":return O;case"subscript":return E;case"table":return w;default:return null}});s.displayName="Icon";export{s as Icon};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{memo as i}from"react";const r=i(({icon:i,iconColors:r,width:h=18,height:n=18})=>{const w=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),o=t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]}),s=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),l=t("svg",{fill:"#000000",width:h,height:n,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[e("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]}),C=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),d=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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==r?void 0:r.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),g=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})}),c=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),L=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})}),v=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})}),x=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})}),p=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})}),a=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})}),u=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})}),B=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})}),k=t("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e("g",{clipPath:"url(#clip0_37_1104)",children:e("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("defs",{children:e("clipPath",{id:"clip0_37_1104",children:e("rect",{width:"16",height:"16",fill:"white"})})})]}),H=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),f=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==r?void 0:r.codeIcon)||"#2B2E31"})}),m=e("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),E=e("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),y=e("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),Z=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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"})}),V=e("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("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 w;case"list-ordered":return s;case"list-unordered":return l;case"edit-link":return C;case"bold":return d;case"italic":return g;case"strikethrough":return c;case"underline":return L;case"center":return M;case"left":return v;case"right":return x;case"justify":return p;case"arrow-up":return a;case"arrow-down":return u;case"confirm":return B;case"remove":return k;case"cancel":return H;case"code":return f;case"quote":return m;case"undo":return E;case"redo":return y;case"superscript":return Z;case"subscript":return V;case"table":return o;default:return null}});r.displayName="Icon";export{r as Icon};
2
2
  //# sourceMappingURL=Icon.js.map
@@ -1,2 +1,2 @@
1
- import{ElementNode as e}from"lexical";class t extends e{static getType(){return"delete"}static clone(e){return new t(e.__reviewId,e.__key)}constructor(e=crypto.randomUUID(),t){super(t),this.__reviewId=e}createDOM(){const e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e}exportDOM(){const e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",{element:e}}updateDOM(){return!1}static importDOM(){return{del:()=>({conversion:r,priority:1})}}static importJSON(e){return new t(e.reviewId)}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"delete",version:1,reviewId:this.__reviewId})}isInline(){return!0}canBeEmpty(){return!1}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){const r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}export{t as DeleteNode};
1
+ import{ElementNode as e}from"lexical";class t extends e{static getType(){return"delete"}static clone(e){return new t(e.__key)}constructor(e){super(e)}createDOM(){const e=document.createElement("del");return e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e}exportDOM(){return{element:document.createElement("del")}}updateDOM(){return!1}static importDOM(){return{del:()=>({conversion:r,priority:1})}}static importJSON(e){return new t}exportJSON(){return{...super.exportJSON(),type:"delete",version:1}}isInline(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){return{node:new t}}export{t as DeleteNode};
2
2
  //# sourceMappingURL=DeleteNode.js.map
@@ -1,2 +1,2 @@
1
- import{ElementNode as t}from"lexical";class i extends t{static getType(){return"highlight-span"}static clone(t){return new i(t.__highlightId,t.__highlightColor,t.__key)}constructor(t,i=null,h){super(h),this.__highlightId=t,this.__highlightColor=i}createDOM(){return this.createHighlightElement()}exportDOM(){return{element:this.createHighlightElement()}}createHighlightElement(){const t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t}updateDOM(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1}static importDOM(){return{span:t=>t.hasAttribute("highlight-id")?{conversion:h,priority:1}:null}}static importJSON(t){const h=new i(t.highlightId,t.highlightColor);return h.setFormat(t.format),h.setIndent(t.indent),h.setDirection(t.direction),h}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor})}isInline(){return!0}}function h(t){return{node:new i(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}class e extends t{static getType(){return"highlight-button"}static clone(t){return new e(t.__highlightId,t.__highlightType,t.__key)}constructor(t=null,i=null,h){super(h),this.__highlightId=t,this.__highlightType=i}createDOM(t){const i=this.createHighlightButtonElement(),h=t.theme.highlightButton;return"string"==typeof h&&(i.className=h),i.contentEditable="false",i}exportDOM(){return{element:this.createHighlightButtonElement()}}createHighlightButtonElement(){const t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t}updateDOM(){return!1}static importDOM(){return{button:t=>"highlight"!==t.getAttribute("action")?null:{conversion:g,priority:1}}}static importJSON(t){const i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType})}isInline(){return!0}}function g(t){return{node:new e(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}export{e as HighlightButtonNode,i as HighlightSpanNode};
1
+ import{ElementNode as t}from"lexical";class i extends t{static getType(){return"highlight-span"}static clone(t){return new i(t.__highlightId,t.__highlightColor,t.__key)}constructor(t,i=null,h){super(h),this.__highlightId=t,this.__highlightColor=i}createDOM(){return this.createHighlightElement()}exportDOM(){return{element:this.createHighlightElement()}}createHighlightElement(){const t=document.createElement("span");return t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightColor&&t.setAttribute("highlight-color",this.__highlightColor),t}updateDOM(t,i){return t.__highlightId!==this.__highlightId&&i.setAttribute("highlight-id",this.__highlightId),t.__highlightColor!==this.__highlightColor&&(null===this.__highlightColor?i.removeAttribute("highlight-color"):i.setAttribute("highlight-color",this.__highlightColor)),!1}static importDOM(){return{span:t=>t.hasAttribute("highlight-id")?{conversion:h,priority:1}:null}}static importJSON(t){const h=new i(t.highlightId,t.highlightColor);return h.setFormat(t.format),h.setIndent(t.indent),h.setDirection(t.direction),h}exportJSON(){return{...super.exportJSON(),type:"highlight-span",version:1,highlightId:this.__highlightId,highlightColor:this.__highlightColor}}isInline(){return!0}}function h(t){return{node:new i(t.getAttribute("highlight-id")||"",t.getAttribute("highlight-color"))}}class e extends t{static getType(){return"highlight-button"}static clone(t){return new e(t.__highlightId,t.__highlightType,t.__key)}constructor(t=null,i=null,h){super(h),this.__highlightId=t,this.__highlightType=i}createDOM(t){const i=this.createHighlightButtonElement(),h=t.theme.highlightButton;return"string"==typeof h&&(i.className=h),i.contentEditable="false",i}exportDOM(){return{element:this.createHighlightButtonElement()}}createHighlightButtonElement(){const t=document.createElement("button");return t.setAttribute("action","highlight"),null!==this.__highlightId&&t.setAttribute("highlight-id",this.__highlightId),null!==this.__highlightType&&t.setAttribute("highlight-type",this.__highlightType),t}updateDOM(){return!1}static importDOM(){return{button:t=>"highlight"!==t.getAttribute("action")?null:{conversion:g,priority:1}}}static importJSON(t){const i=new e(t.highlightId,t.highlightType);return i.setFormat(t.format),i.setIndent(t.indent),i.setDirection(t.direction),i}exportJSON(){return{...super.exportJSON(),type:"highlight-button",version:1,highlightId:this.__highlightId,highlightType:this.__highlightType}}isInline(){return!0}}function g(t){return{node:new e(t.getAttribute("highlight-id"),t.getAttribute("highlight-type"))}}export{e as HighlightButtonNode,i as HighlightSpanNode};
2
2
  //# sourceMappingURL=HighlightNode.js.map
@@ -1,2 +1,2 @@
1
- import{useEffect as t}from"react";import{useLexicalComposerContext as r}from"@lexical/react/LexicalComposerContext";import{$generateNodesFromDOM as o}from"@lexical/html";import{$getRoot as e,$isParagraphNode as a}from"lexical";import i from"showdown";const m=({initialValue:m,initialFormat:l,mode:n})=>{const[c]=r();return t(()=>{if(m){if(l&&"html"!==l){var t=new i.Converter;m=t.makeHtml(m)}c.update(()=>{const t=e();t.clear();const r=(new DOMParser).parseFromString(m||"","text/html");o(c,r).forEach(r=>{try{a(r)&&r.setFormat("justify"),t.append(r)}catch(t){console.error("Error appending node to root: ",t)}})})}},[m,c]),t(()=>{c.setEditable("edit"===n)},[c,n]),null};export{m as InitialHtml};
1
+ import{useEffect as r}from"react";import{useLexicalComposerContext as t}from"@lexical/react/LexicalComposerContext";import{$generateNodesFromDOM as e}from"@lexical/html";import{$getRoot as o,$isParagraphNode as a}from"lexical";import i from"showdown";import{escapeTagIds as l,splitTagAcrossParagraphs as m}from"../../../../../../utils/tagHelper.js";const n=({initialValue:n,initialFormat:p,mode:c})=>{const[s]=t();return r(()=>{if(n){if(n=(()=>{let r=l(n,["manual","upt"]);return["del","ins","preserved","manual","upt"].forEach(t=>{r=m(r,t)}),r})(),p&&"html"!==p){var r=new i.Converter;n=r.makeHtml(n)}s.update(()=>{const r=o();r.clear();const t=(new DOMParser).parseFromString(n||"","text/html");e(s,t).forEach(t=>{try{a(t)&&t.setFormat("justify"),r.append(t)}catch(r){console.error("Error appending node to root: ",r)}})})}},[n,s]),r(()=>{s.setEditable("edit"===c)},[s,c]),null};export{n as InitialHtml};
2
2
  //# sourceMappingURL=InitialHtml.js.map
@@ -1,2 +1,2 @@
1
- import{ElementNode as e}from"lexical";class t extends e{static getType(){return"insert"}static clone(e){return new t(e.__reviewId,e.__key)}constructor(e=crypto.randomUUID(),t){super(t),this.__reviewId=e}createDOM(){const e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",e}exportDOM(){const e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",{element:e}}updateDOM(e,t,r){return e.__reviewId!==this.__reviewId}static importDOM(){return{ins:()=>({conversion:r,priority:1})}}static importJSON(e){const r=new t(e.reviewId);return r.setFormat(e.format),r.setIndent(e.indent),r.setDirection(e.direction),r}exportJSON(){return Object.assign(Object.assign({},super.exportJSON()),{type:"insert",version:1,reviewId:this.__reviewId})}isInline(){return!0}}function r(e){const r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}export{t as InsertNode};
1
+ import{ElementNode as e}from"lexical";class t extends e{static getType(){return"insert"}static clone(e){return new t(e.__key)}constructor(e){super(e)}createDOM(){const e=document.createElement("ins");return e.className="PlaygroundEditorTheme__insert-node",e.contentEditable="false",e}exportDOM(){return{element:document.createElement("ins")}}updateDOM(e,t,r){return!1}static importDOM(){return{ins:()=>({conversion:r,priority:1})}}static importJSON(e){return new t}exportJSON(){return{...super.exportJSON(),type:"insert",version:1}}isInline(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function r(e){return{node:new t}}export{t as InsertNode};
2
2
  //# sourceMappingURL=InsertNode.js.map
@@ -0,0 +1,2 @@
1
+ import{DecoratorNode as e}from"lexical";class t extends e{static getType(){return"invisible"}static clone(e){return new t(e.__id,e.__key)}constructor(e,t){super(t),this.__id=e}createDOM(e){const t=document.createElement("span");return t.style.display="none",t.dataset.lexicalInvisible="true",t.dataset.invisibleId=this.__id,t}updateDOM(){return!1}exportJSON(){return{...super.exportJSON(),type:"invisible",version:1,id:this.__id}}static importJSON(e){return i(e.id)}exportDOM(){const e=document.createElement("invisible");return e.setAttribute("id",this.__id),{element:e}}static importDOM(){return{invisible:e=>({conversion:()=>{var t;return{node:i(null!==(t=e.getAttribute("id"))&&void 0!==t?t:"")}},priority:1})}}isInline(){return!0}isKeyboardSelectable(){return!1}remove(e){return this}decorate(){return null}getId(){return this.getLatest().__id}setId(e){this.getWritable().__id=e}toMarkup(){return`<invisible id="${this.__id}"></invisible>`}}function i(e){return new t(e)}export{i as $createInvisibleNode,t as InvisibleNode};
2
+ //# sourceMappingURL=InvisibleNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvisibleNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{ElementNode as t}from"lexical";class s extends t{static getType(){return"manual"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("manual");return t.dataset.id=this.__id,t.className=`PlaygroundEditorTheme__manual-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("manual");return t.id=this.__id,t.dataset.status=this.__status,{element:t}}updateDOM(t,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id,status:this.__status}}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}}function e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as ManualNode};
2
+ //# sourceMappingURL=ManualNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManualNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{ElementNode as e}from"lexical";class r extends e{static getType(){return"preserved"}static clone(e){return new r(e.__key)}constructor(e){super(e)}createDOM(){const e=document.createElement("preserved");return e.className="PlaygroundEditorTheme__preserved-node",e.contentEditable="false",e}exportDOM(){return{element:document.createElement("preserved")}}updateDOM(){return!1}static importDOM(){return{preserved:()=>({conversion:t,priority:1})}}static importJSON(e){return new r}exportJSON(){return{...super.exportJSON(),type:"preserved",version:1}}isInline(){return!0}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canMergeWith(){return!1}}function t(e){return{node:new r}}export{r as PreservedNode};
2
+ //# sourceMappingURL=PreservedNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreservedNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{ElementNode as t}from"lexical";class s extends t{static getType(){return"update"}static clone(t){return new s(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),s="",e){super(e),this.__id=t,this.__status=s}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("upt");return t.dataset.id=this.__id,t.className=`PlaygroundEditorTheme__update-node-${this.__status}`,this.__status&&(t.dataset.status=this.__status),t.contentEditable="pending"===this.__status?"false":"true",t}exportDOM(){const t=document.createElement("upt");return t.id=this.__id,t.dataset.status=this.__status,{element:t}}updateDOM(t,s){return t.__id!==this.__id&&(s.dataset.id=this.__id),t.__status!==this.__status&&(this.__status?s.dataset.status=this.__status:delete s.dataset.status,s.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:e,priority:1})}}static importJSON(t){var e;return new s(t.id,null!==(e=t.status)&&void 0!==e?e:"")}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id,status:this.__status}}canInsertTextBefore(){return"pending"!==this.__status}canInsertTextAfter(){return"pending"!==this.__status}}function e(t){var e;return{node:new s(t.id||crypto.randomUUID(),null!==(e=t.dataset.status)&&void 0!==e?e:"")}}export{s as UpdateNode};
2
+ //# sourceMappingURL=UpdateNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__delete-node{text-decoration:var(--delete-node-text-decoration,line-through);text-decoration-color:var(--delete-node-decoration-color,#dc2626);text-decoration-thickness:var(--delete-node-decoration-thickness,2px)}.PlaygroundEditorTheme__insert-node{background-color:var(--insert-node-bg,#dbeafe);border-radius:var(--insert-node-border-radius,2px);color:var(--insert-node-color,#1e3a8a);padding:var(--insert-node-padding,1px 2px);text-decoration:var(--insert-node-text-decoration,none)}.PlaygroundEditorTheme__highlight-button{display:none}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
1
+ var e='.PlaygroundEditorTheme__ltr{text-align:left}.PlaygroundEditorTheme__rtl{text-align:right}.PlaygroundEditorTheme__paragraph{font-family:Inter,sans-serif;line-height:28px;margin:0 0 8px;position:relative}.PlaygroundEditorTheme__paragraph:last-child{margin-bottom:0}.PlaygroundEditorTheme__quote{border-left:4px solid #ced0d4;color:#65676b;font-size:15px;margin:0 0 10px 20px;padding-left:16px}.PlaygroundEditorTheme__h1{font-family:Inter,sans-serif;font-size:24px;margin:12px 0 4px;padding:0}.PlaygroundEditorTheme__h2{font-size:20px}.PlaygroundEditorTheme__h2,.PlaygroundEditorTheme__h3{font-family:Inter,sans-serif;margin:10px 0 0;padding:0}.PlaygroundEditorTheme__h3{font-size:18px;text-transform:uppercase}.PlaygroundEditorTheme__textBold{font-family:Inter,sans-serif;font-weight:700}.PlaygroundEditorTheme__textItalic{font-style:italic}.PlaygroundEditorTheme__textUnderline{text-decoration:underline}.PlaygroundEditorTheme__textStrikethrough{text-decoration:line-through}.PlaygroundEditorTheme__textUnderlineStrikethrough{text-decoration:underline line-through}.PlaygroundEditorTheme__textSubscript{font-size:.8em;vertical-align:sub!important}.PlaygroundEditorTheme__textSuperscript{font-size:.8em;vertical-align:super}.PlaygroundEditorTheme__textCode{background-color:#f0f2f5;font-family:Menlo,Consolas,Monaco,monospace;font-size:94%;padding:1px .25rem}.PlaygroundEditorTheme__hashtag{background-color:#5890ff26;border-bottom:1px solid #5890ff4d}.PlaygroundEditorTheme__link{color:#216fdb;text-decoration:none}.PlaygroundEditorTheme__link:hover{text-decoration:underline}.PlaygroundEditorTheme__code{background-color:#f0f2f5;display:block;font-family:Menlo,Consolas,Monaco,monospace;font-size:13px;line-height:1.53;margin:8px 0;overflow-x:auto;padding:8px 8px 8px 52px;position:relative;tab-size:2}.PlaygroundEditorTheme__code:before{background-color:#eee;border-right:1px solid #ccc;color:#777;content:attr(data-gutter);left:0;min-width:25px;padding:8px;position:absolute;text-align:right;top:0;white-space:pre-wrap}.PlaygroundEditorTheme__code:after{color:#00000080;content:attr(data-highlight-language);font-size:10px;padding:3px;position:absolute;right:3px;text-transform:uppercase;top:0}.PlaygroundEditorTheme__table{border-collapse:collapse;border-spacing:0;max-width:100%;overflow-y:scroll;table-layout:fixed;width:100%}.PlaygroundEditorTheme__tableCell{border:1px solid #000;min-width:75px;padding:6px 8px;text-align:start;vertical-align:top}.PlaygroundEditorTheme__tableCellHeader{background-color:#f2f3f5;text-align:start}.PlaygroundEditorTheme__characterLimit{background-color:#fbb!important;display:inline}.PlaygroundEditorTheme__ul{list-style-type:disc}.PlaygroundEditorTheme__ol1,.PlaygroundEditorTheme__ul{list-style-position:outside;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol1{list-style-type:decimal}.PlaygroundEditorTheme__ol2{list-style-position:outside;list-style-type:upper-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol3{list-style-position:outside;list-style-type:lower-alpha;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol4{list-style-position:outside;list-style-type:upper-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__ol5{list-style-position:outside;list-style-type:lower-roman;margin:0 0 0 24px;padding:0}.PlaygroundEditorTheme__listItem{display:list-item;margin:8px 24px 8px 8px;padding:0 8px}.PlaygroundEditorTheme__nestedListItem{list-style-type:inherit;margin-left:16px}ol .PlaygroundEditorTheme__nestedListItem{list-style-type:none}.PlaygroundEditorTheme__listItemChecked,.PlaygroundEditorTheme__listItemUnchecked{list-style-type:none;margin-left:8px;margin-right:8px;outline:none;padding-left:24px;padding-right:24px;position:relative}.PlaygroundEditorTheme__listItemChecked{text-decoration:line-through}.PlaygroundEditorTheme__listItemChecked:before,.PlaygroundEditorTheme__listItemUnchecked:before{background-size:cover;content:"";cursor:pointer;display:block;height:16px;left:0;position:absolute;top:2px;width:16px}.PlaygroundEditorTheme__listItemChecked[dir=rtl]:before,.PlaygroundEditorTheme__listItemUnchecked[dir=rtl]:before{left:auto;right:0}.PlaygroundEditorTheme__listItemChecked:focus:before,.PlaygroundEditorTheme__listItemUnchecked:focus:before{border-radius:2px;box-shadow:0 0 0 2px #a6cdfe}.PlaygroundEditorTheme__tokenComment{color:#708090}.PlaygroundEditorTheme__tokenPunctuation{color:#999}.PlaygroundEditorTheme__tokenProperty{color:#905}.PlaygroundEditorTheme__tokenSelector{color:#690}.PlaygroundEditorTheme__tokenOperator{color:#9a6e3a}.PlaygroundEditorTheme__tokenAttr{color:#07a}.PlaygroundEditorTheme__tokenVariable{color:#e90}.PlaygroundEditorTheme__tokenFunction{color:#dd4a68}.PlaygroundEditorTheme__mark{background:#ffd40024;border-bottom:2px solid #ffd4004d;padding-bottom:2px}.PlaygroundEditorTheme__markOverlap{background:#ffd4004d;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__mark.selected{background:#ffd40080;border-bottom:2px solid #ffd400}.PlaygroundEditorTheme__markOverlap.selected{background:#ffd400b3;border-bottom:2px solid #ffd400b3}.PlaygroundEditorTheme__embedBlock{user-select:none}.PlaygroundEditorTheme__embedBlockFocus{outline:2px solid #3c84f4}.PlaygroundEditorTheme__highlight-button{display:none}.PlaygroundEditorTheme__insert-node{background-color:#8cbeff;text-decoration:none}.PlaygroundEditorTheme__delete-node{background-color:#fff;text-decoration:line-through;text-decoration-color:#dc2626}[class^=PlaygroundEditorTheme__update-node]>.PlaygroundEditorTheme__insert-node{background-color:#f3e8ff}.PlaygroundEditorTheme__manual-node-accepted,[class^=PlaygroundEditorTheme__manual-node]>.PlaygroundEditorTheme__insert-node{background-color:#8cbeff}.PlaygroundEditorTheme__manual-node-rejected{background-color:#fff;text-decoration:underline;text-decoration-color:red}.PlaygroundEditorTheme__update-node-accepted{background-color:#f3e8ff;-webkit-box-decoration-break:clone;box-decoration-break:clone;display:inline}';!function(){if("undefined"==typeof document)return;const o=document.createElement("style");o.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&o.setAttribute("nonce",t),o.appendChild(document.createTextNode(e));const r=document.head||document.getElementsByTagName("head")[0]||document.documentElement;r&&r.appendChild(o)}();export{e as default};
2
2
  //# sourceMappingURL=theme.css.js.map