@viswa-test/test-citation 0.0.229 → 0.0.230

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 (670) hide show
  1. package/README.md +284 -45
  2. package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
  3. package/dist/cjs/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  4. package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  5. package/dist/cjs/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  6. package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  7. package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  8. package/dist/cjs/features/GptWebCitation/GptWebCitation.js +1 -1
  9. package/dist/cjs/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  10. package/dist/cjs/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  11. package/dist/cjs/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  12. package/dist/cjs/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  13. package/dist/cjs/features/GptWebCitation/types.js +2 -0
  14. package/dist/cjs/features/GptWebCitation/types.js.map +1 -0
  15. package/dist/cjs/features/GptWebCitation/utils/citationData.utils.js +1 -1
  16. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  17. package/dist/cjs/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  18. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  19. package/dist/cjs/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  20. package/dist/cjs/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  44. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  45. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  48. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  49. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  51. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  52. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  53. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  54. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  55. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  56. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  61. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  62. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  63. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  64. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  67. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  68. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  69. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  70. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  76. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  77. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  118. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  119. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  120. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  121. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  131. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  132. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  133. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  134. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  135. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  137. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  138. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  139. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  140. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  141. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  142. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  143. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  144. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  145. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  146. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  147. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  148. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  149. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  150. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  151. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  152. package/dist/cjs/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  153. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  154. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  155. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  156. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  157. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  158. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  159. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  160. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  161. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  162. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  163. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  164. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  165. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  166. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  167. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  168. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  169. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  170. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  171. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  172. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  173. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  174. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  175. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  176. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  177. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  178. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  179. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  180. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  181. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  182. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  183. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  184. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  185. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  186. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  187. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  188. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  189. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  190. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +2 -0
  191. package/dist/cjs/features/RequirementAI/icons/CDIcon.js.map +1 -0
  192. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  193. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  194. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  195. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  196. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js +2 -0
  197. package/dist/cjs/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  198. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  199. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  200. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  201. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  202. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  203. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  204. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  205. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  206. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  207. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  208. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  209. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  210. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  211. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  212. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  213. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  214. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  215. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  216. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  217. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  218. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  219. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  220. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  221. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  222. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  223. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  224. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  225. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  226. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  227. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  228. package/dist/cjs/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  229. package/dist/cjs/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  230. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  231. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  232. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  233. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  234. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  235. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  236. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  237. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  238. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  239. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  240. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  241. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  242. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  243. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  244. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  245. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  246. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  247. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  248. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  249. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  250. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  251. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  252. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  253. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  254. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  255. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  256. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  257. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  258. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  259. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  260. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  261. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  262. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  263. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  264. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  265. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  266. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  267. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  268. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  269. package/dist/cjs/index.js +1 -1
  270. package/dist/cjs/service/redlineService.js +2 -0
  271. package/dist/cjs/service/redlineService.js.map +1 -0
  272. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  273. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  274. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  275. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  276. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  277. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  278. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  279. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  280. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  281. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  282. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  283. package/dist/features/GptWebCitation/types.js +2 -0
  284. package/dist/features/GptWebCitation/types.js.map +1 -0
  285. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  286. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  287. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  288. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  289. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  290. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  291. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  292. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  293. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  294. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  295. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  296. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  297. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  298. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  299. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  300. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  301. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  302. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  303. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  304. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  305. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  306. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  307. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  308. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  309. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  310. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  311. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  312. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  313. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  314. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  315. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  316. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  317. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  318. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  319. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  320. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  321. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  322. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  323. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  324. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  325. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  326. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  327. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  328. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  329. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  330. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  331. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  332. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  333. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  334. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  335. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  336. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  337. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  338. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  339. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  340. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  341. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  342. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  343. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  344. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  345. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  346. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  347. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  348. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  349. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  350. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  351. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  352. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  353. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  354. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  355. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  356. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  357. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  358. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  359. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  360. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  361. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  362. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  363. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  364. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  365. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  366. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  367. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  368. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  369. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  370. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  371. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  372. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  373. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  374. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  375. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  376. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  377. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  378. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  379. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  380. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  381. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  382. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  383. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  384. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  385. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  386. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  387. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  388. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  389. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  390. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  391. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  392. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  393. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  394. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  395. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  396. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  397. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  398. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  399. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  400. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  401. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  402. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  403. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  404. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  405. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  406. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  407. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  408. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  409. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  410. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  411. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  412. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  413. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  414. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  415. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  416. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  417. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  418. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  419. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  420. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  421. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  422. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  423. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  424. package/dist/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  425. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  426. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  427. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  428. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  429. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  430. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  431. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  432. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  433. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  434. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  435. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  436. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  437. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  438. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  439. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  440. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  441. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  442. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  443. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  444. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  445. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  446. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  447. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  448. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  449. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  450. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  451. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  452. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  453. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  454. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  455. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  456. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  457. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  458. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  459. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  460. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  461. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  462. package/dist/features/RequirementAI/icons/CDIcon.js +2 -0
  463. package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
  464. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  465. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  466. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  467. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  468. package/dist/features/RequirementAI/icons/Illustration.svg.js +2 -0
  469. package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  470. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  471. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  472. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  473. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  474. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  475. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  476. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  477. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  478. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  479. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  480. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  481. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  482. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  483. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  484. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  485. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  486. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  487. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  488. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  489. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  490. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  491. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  492. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  493. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  494. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  495. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  496. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  497. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  498. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  499. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  500. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  501. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  502. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  503. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  504. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  505. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  506. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  507. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  508. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  509. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  510. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  511. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  512. package/dist/features/UserStoryImport/components/Header.js +1 -1
  513. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  514. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  515. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  516. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  517. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  518. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  519. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  520. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  521. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  522. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  523. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  524. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  525. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  526. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  527. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  528. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  529. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  530. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  531. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  532. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  533. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  534. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  535. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  536. package/dist/features/UserStoryImport/index.js +1 -1
  537. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  538. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  539. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  540. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  541. package/dist/index.js +1 -1
  542. package/dist/service/redlineService.js +2 -0
  543. package/dist/service/redlineService.js.map +1 -0
  544. package/dist/types/src/Background.d.ts +7 -0
  545. package/dist/types/src/Background.d.ts.map +1 -0
  546. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  547. package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
  548. package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
  549. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  550. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  551. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  552. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  553. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  554. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  555. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
  556. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  557. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  558. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  559. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  560. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  561. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  562. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  563. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
  564. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  565. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
  566. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  567. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
  568. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
  569. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
  570. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
  571. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  572. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  573. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
  574. package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
  575. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  576. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
  577. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
  578. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  579. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  580. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  581. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  582. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
  583. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
  584. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
  585. package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
  586. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
  587. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  588. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  589. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  590. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  591. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  592. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  593. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  594. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  595. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  596. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  597. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  598. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  599. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +25 -0
  600. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  601. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  602. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  603. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +25 -0
  604. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  605. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  606. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  607. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
  608. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  609. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
  610. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
  611. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
  612. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
  613. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
  614. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  615. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
  616. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  617. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  618. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  619. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +17 -3
  620. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  621. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +35 -2
  622. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  623. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  624. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
  625. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
  626. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
  627. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
  628. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
  629. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  630. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
  631. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
  632. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
  633. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  634. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
  635. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  636. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
  637. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  638. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  639. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  640. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -0
  641. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  642. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  643. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  644. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
  645. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
  646. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
  647. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  648. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
  649. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  650. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  651. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  652. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
  653. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  654. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
  655. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  656. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
  657. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  658. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  659. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  660. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  661. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  662. package/dist/types/src/index.d.ts +3 -2
  663. package/dist/types/src/index.d.ts.map +1 -1
  664. package/dist/types/src/service/redlineService.d.ts +33 -0
  665. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  666. package/package.json +10 -7
  667. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  668. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  669. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  670. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),i=require("react"),r=require("@lexical/react/LexicalComposer"),n=require("@lexical/react/LexicalHistoryPlugin"),o=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),a=require("@lexical/list"),u=require("@lexical/react/LexicalListPlugin"),s=require("@lexical/react/LexicalLinkPlugin"),c=require("@lexical/link"),d=require("@lexical/rich-text"),g=require("@lexical/react/LexicalTablePlugin"),x=require("@lexical/table"),f=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var p=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),m=require("./components/EditorContainer/EditorContainer.js"),C=require("./components/EditorToolbar/EditorToolbar.js"),v=require("./plugins/LayoutPlugin.js"),h=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var q=require("./components/Context/ContextMenu.js"),j=require("@lexical/mark"),y=require("./plugins/CommentPlugin/HTMLNode.js"),T=require("./constants/editorConfig.js"),b=require("./plugins/InitialHtml.js"),N=require("./plugins/InsertNode.js"),L=require("./plugins/DeleteNode.js"),S=require("@lexical/react/LexicalComposerContext");function _(e){console.log(e)}function P(){var e=S.useLexicalComposerContext()[0];return i.useEffect(function(){var t=function(e){for(var t=e;t;){if("delete"===t.getType())return!0;t=t.getParent()}return!1};return e.registerCommand(f.KEY_DOWN_COMMAND,function(e){if("Backspace"!==e.key&&"Delete"!==e.key)return!1;var i=f.$getSelection();if(!f.$isRangeSelection(i))return!1;if(i.getNodes().some(function(e){return t(e)}))return e.preventDefault(),!0;if(i.isCollapsed()){var r=i.anchor.getNode();if(t(r))return e.preventDefault(),!0;if("Backspace"===e.key){var n=r.getPreviousSibling();if(0===i.anchor.offset&&"delete"===(null==n?void 0:n.getType()))return e.preventDefault(),!0}if("Delete"===e.key){var o=r.getNextSibling(),l=r.getTextContent().length;if(i.anchor.offset===l&&"delete"===(null==o?void 0:o.getType()))return e.preventDefault(),!0}}return!1},f.COMMAND_PRIORITY_CRITICAL)},[e]),null}exports.default=function(S){var I,R,E,k=S.minHeight,D=S.height,B=S.placeholder,M=S.onFocus,O=S.onBlur,H=S.onChange,A=S.onToolbarButtonClick,w=S.toolbarConfig,$=void 0===w?T.DEFAULT_TOOLBAR_CONFIG:w,F=S.editorRef,W=S.editorState,Y=S.initialString,V=S.customToolbar,G=S.plugins;S.nodes,S.dynamicHeight,S.artifactContext,S.commentsPanelState;var K=S.mode,Q=S.doNotShowBorderInViewMode,U=i.useRef(null),X={namespace:"MyEditor",theme:h.default,onError:_,nodes:[f.TextNode,a.ListNode,a.ListItemNode,c.LinkNode,d.QuoteNode,d.HeadingNode,x.TableNode,x.TableRowNode,x.TableCellNode,j.MarkNode,y.default,N.InsertNode,L.DeleteNode],editorState:W},z=i.useState(null),J=z[0],Z=z[1],ee=i.useState(!1),te=ee[0],ie=ee[1],re=p.useRequirementAI().customStyles,ne=function(e){var t;null===(t=F.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&t.getNodes().forEach(function(t){f.$isTextNode(t)&&t.setStyle("color: ".concat(e))})})};return document.getElementById("lexical_editor_wrapper"),t.jsxs(t.Fragment,{children:[(null===(I=null==re?void 0:re.textEditorStyles)||void 0===I?void 0:I.themeStyles)&&t.jsx("style",{children:null===(R=null==re?void 0:re.textEditorStyles)||void 0===R?void 0:R.themeStyles}),t.jsxs("div",e.__assign({ref:U,className:"w-full lexical_editor_wrapper ".concat(Q&&"readOnly"===K?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:function(e){var t;e.preventDefault(),null===(t=F.current)||void 0===t||t.update(function(){var t=f.$getSelection();f.$isRangeSelection(t)&&!t.isCollapsed()?(ie(!0),Z({x:e.clientX,y:e.clientY})):(ie(!1),Z(null))})},style:e.__assign({minHeight:k,height:D},null===(E=null==re?void 0:re.textEditorStyles)||void 0===E?void 0:E.textArea)},{children:[t.jsxs(r.LexicalComposer,e.__assign({initialConfig:X},{children:[" ","edit"===K&&t.jsx(P,{}),"edit"===K&&t.jsx(C.default,{onToolbarButtonClick:A,editorWrapperRef:U,toolbarConfig:$,customToolbar:V,editorRef:F}),t.jsx(m.default,{placeholder:B}),t.jsx(l.TabIndentationPlugin,{}),t.jsx(n.HistoryPlugin,{}),t.jsx(u.ListPlugin,{}),t.jsx(s.LinkPlugin,{}),t.jsx(g.TablePlugin,{}),t.jsx(v.LayoutPlugin,{onFocus:M,onBlur:O,editorRef:F}),t.jsx(o.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:function(e,t,i){H&&H(e,t,i)}}),Y&&t.jsx(b.InitialHtml,{initialValue:Y.value,initialFormat:Y.type,mode:K}),G&&G]})),J&&te&&"edit"===K&&t.jsx(q.default,{position:J,options:[{label:"Change Color to Red",action:function(){return ne("red")}},{label:"Change Color to Blue",action:function(){return ne("blue")}}],onClose:function(){Z(null)}})]}))]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),i=require("@lexical/react/LexicalComposer"),n=require("@lexical/react/LexicalHistoryPlugin"),r=require("@lexical/react/LexicalOnChangePlugin"),l=require("@lexical/react/LexicalTabIndentationPlugin"),o=require("@lexical/list"),a=require("@lexical/react/LexicalListPlugin"),u=require("@lexical/react/LexicalLinkPlugin"),s=require("@lexical/link"),d=require("@lexical/rich-text"),c=require("@lexical/react/LexicalTablePlugin"),g=require("@lexical/table"),p=require("lexical");require("./components/EditorToolbar/components/ToolbarButton/ToolbarButton.css.js");var x=require("../../RequirementAIWrapper/RequirementAIWrapper.js"),f=require("./components/EditorContainer/EditorContainer.js"),m=require("./components/EditorToolbar/EditorToolbar.js"),h=require("./plugins/LayoutPlugin.js"),C=require("./theme/theme.js");require("./theme/theme.css.js"),require("./Editor.css.js");var N=require("./components/Context/ContextMenu.js"),q=require("@lexical/mark"),j=require("./plugins/CommentPlugin/HTMLNode.js"),v=require("./constants/editorConfig.js"),T=require("./plugins/InitialHtml.js"),S=require("./plugins/InsertNode.js"),y=require("./plugins/DeleteNode.js"),b=require("./plugins/HighlightNode.js"),P=require("@lexical/react/LexicalComposerContext"),L=require("./plugins/UpdateNode.js"),I=require("./plugins/ManualNode.js"),E=require("./plugins/PreservedNode.js"),R=require("./plugins/InvisibleNode.js");function _(e){console.log(e)}function B({onEditBlocked:e}){const[i]=P.useLexicalComposerContext();return t.useEffect(()=>{const t=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 n(e){let t=e.getParent();for(;t;){if(t instanceof L.UpdateNode||t instanceof I.ManualNode)return t.getId();t=t.getParent()}return null}return i.registerCommand(p.KEY_DOWN_COMMAND,i=>{const r=p.$getSelection();if(!p.$isRangeSelection(r))return!1;const l=r.getNodes().find(e=>!!t(e));if(l)return i.preventDefault(),null==e||e(n(l)||""),!0;if(r.isCollapsed()){const l=r.anchor.getNode(),o=t(l);if(o){const t=o?n(o):"";return null==e||e(t||""),i.preventDefault(),!0}if("Backspace"===i.key){const t=l.getPreviousSibling(),o=t&&(["delete","insert","preserved"].includes(t.getType())||["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())?t:null;if(0===r.anchor.offset&&o)return null==e||e(n(o)||""),i.preventDefault(),!0}else if("Delete"===i.key){const t=l.getNextSibling(),o=t&&(["delete","insert","preserved"].includes(t.getType())||["update","manual"].includes(t.getType())&&t.getStatus()&&"pending"===t.getStatus())?t:null,a=l.getTextContent().length;if(r.anchor.offset===a&&o)return null==e||e(n(o)||""),i.preventDefault(),!0}}return!1},p.COMMAND_PRIORITY_CRITICAL)},[i]),null}exports.default=function({minHeight:P,height:M,placeholder:k,onFocus:H,onBlur:D,onChange:O,onToolbarButtonClick:A,toolbarConfig:w=v.DEFAULT_TOOLBAR_CONFIG,editorRef:$,editorState:F,initialString:U,customToolbar:W,plugins:Y,nodes:V,dynamicHeight:G,artifactContext:K,commentsPanelState:Q,mode:X,doNotShowBorderInViewMode:z,onEditBlocked:J}){var Z,ee,te;const ie=t.useRef(null),ne={namespace:"MyEditor",theme:C.default,onError:_,nodes:[p.TextNode,o.ListNode,o.ListItemNode,s.LinkNode,d.QuoteNode,d.HeadingNode,g.TableNode,g.TableRowNode,g.TableCellNode,q.MarkNode,j.default,S.InsertNode,y.DeleteNode,L.UpdateNode,E.PreservedNode,I.ManualNode,R.InvisibleNode,b.HighlightSpanNode,b.HighlightButtonNode],editorState:F},[re,le]=t.useState(null),[oe,ae]=t.useState(!1),{customStyles:ue}=x.useRequirementAI(),se=e=>{var t;null===(t=$.current)||void 0===t||t.update(()=>{const t=p.$getSelection();p.$isRangeSelection(t)&&t.getNodes().forEach(t=>{p.$isTextNode(t)&&t.setStyle(`color: ${e}`)})})};return document.getElementById("lexical_editor_wrapper"),e.jsxs(e.Fragment,{children:[(null===(Z=null==ue?void 0:ue.textEditorStyles)||void 0===Z?void 0:Z.themeStyles)&&e.jsx("style",{children:null===(ee=null==ue?void 0:ue.textEditorStyles)||void 0===ee?void 0:ee.themeStyles}),e.jsxs("div",{ref:ie,className:"w-full lexical_editor_wrapper "+(z&&"readOnly"===X?"":"lexical_editor_wrapper_box"),id:"lexical_editor_wrapper",onContextMenu:e=>{var t;e.preventDefault(),null===(t=$.current)||void 0===t||t.update(()=>{const t=p.$getSelection();p.$isRangeSelection(t)&&!t.isCollapsed()?(ae(!0),le({x:e.clientX,y:e.clientY})):(ae(!1),le(null))})},style:{minHeight:P,height:M,...null===(te=null==ue?void 0:ue.textEditorStyles)||void 0===te?void 0:te.textArea},children:[e.jsxs(i.LexicalComposer,{initialConfig:ne,children:[" ","edit"===X&&e.jsx(B,{onEditBlocked:J}),"edit"===X&&e.jsx(m.default,{onToolbarButtonClick:A,editorWrapperRef:ie,toolbarConfig:w,customToolbar:W,editorRef:$}),e.jsx(f.default,{placeholder:k}),e.jsx(l.TabIndentationPlugin,{}),e.jsx(n.HistoryPlugin,{}),e.jsx(a.ListPlugin,{}),e.jsx(u.LinkPlugin,{}),e.jsx(c.TablePlugin,{}),e.jsx(h.LayoutPlugin,{onFocus:H,onBlur:D,editorRef:$}),e.jsx(r.OnChangePlugin,{ignoreSelectionChange:!0,ignoreHistoryMergeTagChange:!0,onChange:(e,t,i)=>{O&&O(e,t,i)}}),U&&e.jsx(T.InitialHtml,{initialValue:U.value,initialFormat:U.type,mode:X}),Y&&Y]}),re&&oe&&"edit"===X&&e.jsx(N.default,{position:re,options:[{label:"Change Color to Red",action:()=>se("red")},{label:"Change Color to Blue",action:()=>se("blue")}],onClose:()=>{le(null)}})]})]})};
2
2
  //# sourceMappingURL=Editor.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),n=require("react/jsx-runtime"),r=require("react");exports.default=function(t){var o=t.options;t.position;var i=t.onClose;return r.useEffect(function(){var e=function(){return i()};return document.addEventListener("click",e),function(){return document.removeEventListener("click",e)}},[i]),n.jsx("div",e.__assign({style:{position:"absolute",top:0,left:0,backgroundColor:"white",border:"1px solid #ccc",borderRadius:"4px",boxShadow:"0px 2px 5px rgba(0,0,0,0.2)",zIndex:1e3}},{children:o.map(function(r,t){return n.jsx("button",e.__assign({style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:function(){r.action(),i()}},{children:r.label}),t)})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react");exports.default=({options:t,position:r,onClose:n})=>(o.useEffect(()=>{const e=()=>n();return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[n]),e.jsx("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((o,t)=>e.jsx("button",{style:{display:"block",padding:"8px 12px",background:"none",border:"none",textAlign:"left",width:"100%",cursor:"pointer"},onClick:()=>{o.action(),n()},children:o.label},t))}));
2
2
  //# sourceMappingURL=ContextMenu.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime"),i=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),t=require("@lexical/react/LexicalRichTextPlugin"),a=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=function(c){var n=c.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_container"},{children:r.jsx(t.RichTextPlugin,{contentEditable:r.jsx(i.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:n?function(){return r.jsx(a.default,{placeholder:n})}:null,ErrorBoundary:l.LexicalErrorBoundary})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("@lexical/react/LexicalContentEditable"),l=require("@lexical/react/LexicalErrorBoundary"),i=require("@lexical/react/LexicalRichTextPlugin"),t=require("../EditorPlaceholder/EditorPlaceholder.js");require("./EditorContainer.css.js");exports.default=({placeholder:a})=>e.jsx("div",{className:"lexical_editor_container",children:e.jsx(i.RichTextPlugin,{contentEditable:e.jsx(r.ContentEditable,{className:"lexical_editor_content",id:"lexical_editor_content"}),placeholder:a?()=>e.jsx(t.default,{placeholder:a}):null,ErrorBoundary:l.LexicalErrorBoundary})});
2
2
  //# sourceMappingURL=EditorContainer.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=function(s){var i=s.placeholder;return r.jsx("div",e.__assign({className:"lexical_editor_placeholder"},{children:i}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./EditorPlaceholder.css.js");exports.default=({placeholder:r})=>e.jsx("div",{className:"lexical_editor_placeholder",children:r});
2
2
  //# sourceMappingURL=EditorPlaceholder.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),o=require("react"),r=require("lexical"),i=require("@lexical/selection"),n=require("@lexical/rich-text"),a=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),u=require("@lexical/link"),c=require("@lexical/code"),d=require("./components/ToolbarButton/ToolbarButton.js"),g=require("./components/ToolbarDivider/ToolbarDivider.js"),f=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),v=require("../../utils/getSelectedNode.js"),C=require("../Icons/Icon.js"),T=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(S){var _;S.editorWrapperRef;var m=S.onToolbarButtonClick,x=S.toolbarConfig,N=S.customToolbar;S.editorRef;var R=l.useLexicalComposerContext()[0],$=o.useState(p.ACTIVE_FORMATS),y=$[0],b=$[1],q=o.useState("15px");q[0];var A=q[1],h=o.useState("Arial");h[0];var M=h[1],O=o.useState("");O[0];var I=O[1],j=o.useState(!1),k=j[0],L=j[1],E=o.useState("paragraph"),D=E[0],F=E[1],B=o.useState(null);B[0];var P=B[1],U=o.useState("");U[0];var K=U[1],G=o.useState(!1),V=G[0],W=G[1],z=o.useState(!1),H=z[0],Y=z[1],w=o.useRef(null),Q=T.useRequirementAI().customStyles,X=o.useCallback(function(){var t,o=r.$getSelection();if(r.$isRangeSelection(o)){var l=o.anchor.getNode(),d="root"===l.getKey()?l:l.getTopLevelElementOrThrow(),g=d.getKey();if(null!==R.getElementByKey(g))if(P(g),a.$isListNode(d)){var f=s.$getNearestNodeOfType(l,a.ListNode),C=f?f.getTag():d.getTag();F(C)}else{C=n.$isHeadingNode(d)?d.getTag():d.getType();F(C),c.$isCodeNode(d)&&K(d.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(function(t){o.hasFormat(t)?b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!0,r))}):b(function(o){var r;return e.__assign(e.__assign({},o),((r={})[t]=!1,r))})});var T=v.getSelectedNode(o),S=T.getParent();u.$isLinkNode(S)||u.$isLinkNode(T)?L(!0):L(!1),A(i.$getSelectionStyleValueForProperty(o,"font-size","15px")),M(i.$getSelectionStyleValueForProperty(o,"font-family","Arial"));var _=null===(t=o.anchor.getNode().getParent())||void 0===t?void 0:t.getFormatType();I(_)}},[R]);o.useEffect(function(){return s.mergeRegister(R.registerUpdateListener(function(e){e.editorState.read(function(){X()})}),R.registerCommand(r.CAN_UNDO_COMMAND,function(e){return W(e),!1},r.COMMAND_PRIORITY_CRITICAL),R.registerCommand(r.CAN_REDO_COMMAND,function(e){return Y(e),!1},r.COMMAND_PRIORITY_CRITICAL))},[R,X]);var J=o.useCallback(function(e,t){R.dispatchCommand(r.FORMAT_TEXT_COMMAND,t)},[R]);o.useCallback(function(e,t){["left","center","right","justify"].includes(t)&&R.dispatchCommand(r.FORMAT_ELEMENT_COMMAND,t)},[R]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-size"]=t,e))})},[R]);return o.useCallback(function(e,t){var o;"h1"!==t&&"h2"!==t&&"h3"!==t||D!==(o=t)&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createHeadingNode(o)})}),"paragraph"===t&&"paragraph"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return r.$createParagraphNode()})}),"quote"===t&&"quote"!==D&&R.update(function(){var e=r.$getSelection();r.$isRangeSelection(e)&&i.$setBlocksType(e,function(){return n.$createQuoteNode()})})},[R,D]),o.useCallback(function(e,t){R.update(function(){var e,o=r.$getSelection();r.$isRangeSelection(o)&&i.$patchStyleText(o,((e={})["font-family"]=t,e))})},[R]),o.useCallback(function(){k?R.dispatchCommand(u.TOGGLE_LINK_COMMAND,null):R.dispatchCommand(u.TOGGLE_LINK_COMMAND,"https://")},[R,k]),t.jsxs("div",e.__assign({className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:w,style:e.__assign({},null===(_=null==Q?void 0:Q.textEditorStyles)||void 0===_?void 0:_.tooltextArea)},{children:[(null==x?void 0:x.undoRedo.display)&&t.jsx(f.UndoRedo,{canUndo:V,canRedo:H}),(null==x?void 0:x.inline.display)&&t.jsxs(t.Fragment,{children:[x.inline.options.map(function(e){var o;return t.jsx(d.default,{toolbarItem:e,active:y[e],onClick:J,icon:t.jsx(C.Icon,{icon:e,iconColors:null===(o=null==Q?void 0:Q.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:m},e)}),t.jsx(g.ToolbarDivider,{})]}),N&&N]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),o=require("lexical"),a=require("@lexical/selection"),r=require("@lexical/rich-text"),i=require("@lexical/list"),l=require("@lexical/react/LexicalComposerContext"),s=require("@lexical/utils"),n=require("@lexical/link"),c=require("@lexical/code"),u=require("./components/ToolbarButton/ToolbarButton.js"),d=require("./components/ToolbarDivider/ToolbarDivider.js"),g=require("./components/UndoRedo/UndoRedo.js");require("./EditorToolbar.css.js");var p=require("../../constants/objects.js"),C=require("../../utils/getSelectedNode.js"),T=require("../Icons/Icon.js"),S=require("../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({editorWrapperRef:m,onToolbarButtonClick:x,toolbarConfig:N,customToolbar:R,editorRef:$})=>{var y;const[f]=l.useLexicalComposerContext(),[A,_]=t.useState(p.ACTIVE_FORMATS),[b,h]=t.useState("15px"),[q,v]=t.useState("Arial"),[M,O]=t.useState(""),[I,j]=t.useState(!1),[k,L]=t.useState("paragraph"),[E,D]=t.useState(null),[F,B]=t.useState(""),[P,U]=t.useState(!1),[K,G]=t.useState(!1),V=t.useRef(null),{customStyles:W}=S.useRequirementAI(),z=t.useCallback(()=>{var e;const t=o.$getSelection();if(o.$isRangeSelection(t)){const o=t.anchor.getNode(),l="root"===o.getKey()?o:o.getTopLevelElementOrThrow(),u=l.getKey();if(null!==f.getElementByKey(u))if(D(u),i.$isListNode(l)){const e=s.$getNearestNodeOfType(o,i.ListNode),t=e?e.getTag():l.getTag();L(t)}else{const e=r.$isHeadingNode(l)?l.getTag():l.getType();L(e),c.$isCodeNode(l)&&B(l.getLanguage()||c.getDefaultCodeLanguage())}Object.keys(p.ACTIVE_FORMATS).forEach(e=>{t.hasFormat(e)?_(t=>({...t,[e]:!0})):_(t=>({...t,[e]:!1}))});const d=C.getSelectedNode(t),g=d.getParent();n.$isLinkNode(g)||n.$isLinkNode(d)?j(!0):j(!1),h(a.$getSelectionStyleValueForProperty(t,"font-size","15px")),v(a.$getSelectionStyleValueForProperty(t,"font-family","Arial"));const T=null===(e=t.anchor.getNode().getParent())||void 0===e?void 0:e.getFormatType();O(T)}},[f]);t.useEffect(()=>s.mergeRegister(f.registerUpdateListener(({editorState:e})=>{e.read(()=>{z()})}),f.registerCommand(o.CAN_UNDO_COMMAND,e=>(U(e),!1),o.COMMAND_PRIORITY_CRITICAL),f.registerCommand(o.CAN_REDO_COMMAND,e=>(G(e),!1),o.COMMAND_PRIORITY_CRITICAL)),[f,z]);const H=t.useCallback((e,t)=>{f.dispatchCommand(o.FORMAT_TEXT_COMMAND,t)},[f]);t.useCallback((e,t)=>{["left","center","right","justify"].includes(t)&&f.dispatchCommand(o.FORMAT_ELEMENT_COMMAND,t)},[f]),t.useCallback((e,t)=>{f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-size":t})})},[f]);return t.useCallback((e,t)=>{var i;"h1"!==t&&"h2"!==t&&"h3"!==t||k!==(i=t)&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>r.$createHeadingNode(i))}),"paragraph"===t&&"paragraph"!==k&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>o.$createParagraphNode())}),"quote"===t&&"quote"!==k&&f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$setBlocksType(e,()=>r.$createQuoteNode())})},[f,k]),t.useCallback((e,t)=>{f.update(()=>{const e=o.$getSelection();o.$isRangeSelection(e)&&a.$patchStyleText(e,{"font-family":t})})},[f]),t.useCallback(()=>{I?f.dispatchCommand(n.TOGGLE_LINK_COMMAND,null):f.dispatchCommand(n.TOGGLE_LINK_COMMAND,"https://")},[f,I]),e.jsxs("div",{className:"lexical_editor_toolbar",id:"lexical_editor_toolbar",ref:V,style:{...null===(y=null==W?void 0:W.textEditorStyles)||void 0===y?void 0:y.tooltextArea},children:[(null==N?void 0:N.undoRedo.display)&&e.jsx(g.UndoRedo,{canUndo:P,canRedo:K}),(null==N?void 0:N.inline.display)&&e.jsxs(e.Fragment,{children:[N.inline.options.map(t=>{var o;return e.jsx(u.default,{toolbarItem:t,active:A[t],onClick:H,icon:e.jsx(T.Icon,{icon:t,iconColors:null===(o=null==W?void 0:W.textEditorStyles)||void 0===o?void 0:o.toolIconColors}),onToolbarButtonClick:x},t)}),e.jsx(d.ToolbarDivider,{})]}),R&&R]})};
2
2
  //# sourceMappingURL=EditorToolbar.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),o=require("react");require("./ToolbarButton.css.js");var r=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=function(i){var n,l,u,s,a=i.toolbarItem,d=i.active,c=i.onClick,v=i.icon,_=i.disabled,b=i.onToolbarButtonClick,x=r.useRequirementAI().customStyles,q=o.useState(!1),f=q[0],m=q[1],p=d?null===(n=null==x?void 0:x.textEditorStyles)||void 0===n?void 0:n.activeToolButton:null===(l=null==x?void 0:x.textEditorStyles)||void 0===l?void 0:l.toolbarButton,y=null===(u=null==x?void 0:x.textEditorStyles)||void 0===u?void 0:u.toolbarButtonHover,B=null===(s=null==x?void 0:x.textEditorStyles)||void 0===s?void 0:s.toolbarButtonDisabled,S=t.__assign(t.__assign(t.__assign({},p),f&&!_?y:{}),_?B:{});return e.jsx("button",t.__assign({className:"lexical_editor_toolbar_button ".concat(d?"lexical_editor_toolbar_button__active":""),onClick:function(t){return function(t,e){c(t,e),b&&b()}(t,a)},disabled:_,style:S,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:v}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("react");require("./ToolbarButton.css.js");var o=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.default=({toolbarItem:l,active:r,onClick:i,icon:u,disabled:n,onToolbarButtonClick:a})=>{var s,d,v,c;const{customStyles:b}=o.useRequirementAI(),[x,_]=e.useState(!1),m=r?null===(s=null==b?void 0:b.textEditorStyles)||void 0===s?void 0:s.activeToolButton:null===(d=null==b?void 0:b.textEditorStyles)||void 0===d?void 0:d.toolbarButton,p=null===(v=null==b?void 0:b.textEditorStyles)||void 0===v?void 0:v.toolbarButtonHover,q=null===(c=null==b?void 0:b.textEditorStyles)||void 0===c?void 0:c.toolbarButtonDisabled,y={...m,...x&&!n?p:{},...n?q:{}};return t.jsx("button",{className:"lexical_editor_toolbar_button "+(r?"lexical_editor_toolbar_button__active":""),onClick:t=>((t,e)=>{i(t,e),a&&a()})(t,l),disabled:n,style:y,onMouseEnter:()=>_(!0),onMouseLeave:()=>_(!1),children:u})};
2
2
  //# sourceMappingURL=ToolbarButton.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=function(){return e.jsx("div",{className:"lexical-editor_toolbar_divider"})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");require("./ToolbarDivider.css.js");exports.ToolbarDivider=()=>e.jsx("div",{className:"lexical-editor_toolbar_divider"});
2
2
  //# sourceMappingURL=ToolbarDivider.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),i=require("lucide-react"),l=require("../ToolbarButton/ToolbarButton.js"),n=require("../ToolbarDivider/ToolbarDivider.js"),t=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.UndoRedo=function(d){var u,s,a,c,v=d.canUndo,x=d.canRedo,m=d.onToolbarButtonClick,C=e.useLexicalComposerContext()[0],j=t.useRequirementAI().customStyles;return o.jsxs(o.Fragment,{children:[o.jsx(l.default,{icon:o.jsx(i.Undo2,{color:null===(s=null===(u=null==j?void 0:j.textEditorStyles)||void 0===u?void 0:u.toolIconColors)||void 0===s?void 0:s.undoIcon,className:"w-4 h-4"}),disabled:!v,onClick:function(){null==m||m(),C.dispatchCommand(r.UNDO_COMMAND,void 0)}}),o.jsx(l.default,{icon:o.jsx(i.Redo2,{color:null===(c=null===(a=null==j?void 0:j.textEditorStyles)||void 0===a?void 0:a.toolIconColors)||void 0===c?void 0:c.redoIcon,className:"w-4 h-4"}),disabled:!x,onClick:function(){null==m||m(),C.dispatchCommand(r.REDO_COMMAND,void 0)}}),o.jsx(n.ToolbarDivider,{})]})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react/jsx-runtime"),e=require("@lexical/react/LexicalComposerContext"),r=require("lexical"),l=require("lucide-react"),i=require("../ToolbarButton/ToolbarButton.js"),t=require("../ToolbarDivider/ToolbarDivider.js"),d=require("../../../../../../RequirementAIWrapper/RequirementAIWrapper.js");exports.UndoRedo=({canUndo:n,canRedo:s,onToolbarButtonClick:a})=>{var u,c,v,x;const[m]=e.useLexicalComposerContext(),{customStyles:C}=d.useRequirementAI();return o.jsxs(o.Fragment,{children:[o.jsx(i.default,{icon:o.jsx(l.Undo2,{color:null===(c=null===(u=null==C?void 0:C.textEditorStyles)||void 0===u?void 0:u.toolIconColors)||void 0===c?void 0:c.undoIcon,className:"w-4 h-4"}),disabled:!n,onClick:()=>{null==a||a(),m.dispatchCommand(r.UNDO_COMMAND,void 0)}}),o.jsx(i.default,{icon:o.jsx(l.Redo2,{color:null===(x=null===(v=null==C?void 0:C.textEditorStyles)||void 0===v?void 0:v.toolIconColors)||void 0===x?void 0:x.redoIcon,className:"w-4 h-4"}),disabled:!s,onClick:()=>{null==a||a(),m.dispatchCommand(r.REDO_COMMAND,void 0)}}),o.jsx(t.ToolbarDivider,{})]})};
2
2
  //# sourceMappingURL=UndoRedo.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("tslib"),e=require("react/jsx-runtime"),t=require("react").memo(function(t){var i=t.icon,n=t.iconColors,r=t.width,h=void 0===r?18:r,o=t.height,w=void 0===o?18:o,l=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})})),x=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]})),g=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})})),d=e.jsxs("svg",s.__assign({fill:"#000000",width:h,height:w,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]})),C=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})})),c=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==n?void 0:n.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})),a=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})})),L=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})})),v=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})})),M=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})})),j=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})})),p=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})})),_=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})})),u=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})})),B=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})})),k=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})})),H=e.jsxs("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[e.jsx("g",s.__assign({clipPath:"url(#clip0_37_1104)"},{children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})})),e.jsx("defs",{children:e.jsx("clipPath",s.__assign({id:"clip0_37_1104"},{children:e.jsx("rect",{width:"16",height:"16",fill:"white"})}))})]})),f=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})})),m=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==n?void 0:n.codeIcon)||"#2B2E31"})})),E=e.jsx("svg",s.__assign({fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})})),y=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),Z=e.jsx("svg",s.__assign({width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})),V=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})})),b=e.jsx("svg",s.__assign({width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})}));switch(i){case"link":return l;case"list-ordered":return g;case"list-unordered":return d;case"edit-link":return C;case"bold":return c;case"italic":return a;case"strikethrough":return L;case"underline":return v;case"center":return M;case"left":return j;case"right":return p;case"justify":return _;case"arrow-up":return u;case"arrow-down":return B;case"confirm":return k;case"remove":return H;case"cancel":return f;case"code":return m;case"quote":return E;case"undo":return y;case"redo":return Z;case"superscript":return V;case"subscript":return b;case"table":return x;default:return null}});t.displayName="Icon",exports.Icon=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime");const t=require("react").memo(({icon:t,iconColors:s,width:i=18,height:r=18})=>{const h=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.17867 11.9825L11.6744 4.48681M12.1888 8.67557L14.0259 6.8384C15.3247 5.53965 15.3247 3.43397 14.0259 2.13522C12.7272 0.836477 10.6215 0.836477 9.32277 2.13522L7.48559 3.9724M8.51441 12.3499L6.67723 14.1871C5.37849 15.4858 3.2728 15.4858 1.97406 14.1871C0.675314 12.8884 0.675314 10.7827 1.97406 9.48393L3.81124 7.64675",stroke:"#2B2E31"})}),n=e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"2",y:"2",width:"12",height:"12",stroke:"#2B2E31",fill:"none"}),e.jsx("line",{x1:"2",y1:"6",x2:"14",y2:"6",stroke:"#2B2E31"}),e.jsx("line",{x1:"2",y1:"10",x2:"14",y2:"10",stroke:"#2B2E31"}),e.jsx("line",{x1:"6",y1:"2",x2:"6",y2:"14",stroke:"#2B2E31"}),e.jsx("line",{x1:"10",y1:"2",x2:"10",y2:"14",stroke:"#2B2E31"})]}),o=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5.99998 4H15M5.99998 12H15M5.99998 8H15M2.99998 5.5V2H2.5L1.5 3M2.99998 5.5H1.5M2.99998 5.5H4.5M4.49998 13H1.5C1.5 13 1.77682 12.2232 2.5 11.5C3.22318 10.7768 4 9.5 3 9C2 8.5 1 10 1 10",stroke:"#2B2E31"})}),w=e.jsxs("svg",{fill:"#000000",width:i,height:r,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("rect",{x:"5.94",y:"6.42",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"11.71",width:"18.06",height:"1.75"}),e.jsx("rect",{x:"5.94",y:"16.99",width:"18.06",height:"1.75"}),e.jsx("circle",{cx:"1.85",cy:"7.29",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"12.58",r:"1.52"}),e.jsx("circle",{cx:"1.85",cy:"17.87",r:"1.52"})]}),l=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M8 2H4C2.89543 2 2 2.89543 2 4V12C2 13.1046 2.89543 14 4 14H12C13.1046 14 14 13.1046 14 12V8M5.5 10.5L7 9M15 1L8 8",stroke:"#2B2E31"})}),x=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4 8L7 8C9.20914 8 11 7.20914 11 5C11 2.79086 9.5 2 8 2L5 2C4.44772 2 4 2.44772 4 3L4 7.98578L7 7.98578C11 8 12.5 8.77664 12.5 10.9858C12.5 13.1949 10.7091 14 8.5 14L5 14C4.44772 14 4 13.5523 4 13L4 8Z",stroke:(null==s?void 0:s.boldIcon)||"#2B2E31",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),C=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M9 3L7 13M9 3H7M9 3L11 3M7 13H9M7 13H5",stroke:"#2B2E31",strokeLinejoin:"round"})}),d=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5 4.34494C11.2142 3.61887 10.6861 2.98052 9.95116 2.5606C7.58847 1.21067 4.56562 2.39989 4.56767 5.04366C4.56925 7.07499 6.39082 7.42492 8.15689 8.00308M4.5 11.6549C4.78581 12.381 5.31389 13.0193 6.04884 13.4392C8.40908 14.7878 11.4296 13.6036 11.4323 10.9625C11.4327 10.6022 11.3549 10.2836 11.2157 10M8.15689 8.00308H13.5M8.15689 8.00308H2.5",stroke:"#2B2E31",strokeLinejoin:"round"})}),g=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4 2V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V2M4 14H12",stroke:"#2B2E31",strokeLinejoin:"round"})}),c=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1 4H15M2.5 12H13.5M4 8H12",stroke:"#2B2E31"})}),L=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1 4H15M1 12H7.39999M1 8H15",stroke:"#2B2E31"})}),M=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1 4H15M8.60001 12H15M1 8H15",stroke:"#2B2E31"})}),v=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1 4H15M1 12H15M1 8H15",stroke:"#2B2E31"})}),j=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2 11L8.25223 5L14 11",stroke:"#2B2E31"})}),p=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M14 5L7.74778 11L2 5",stroke:"#2B2E31"})}),a=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M1.5 7L6.5 12L15 4",stroke:"#2B2E31"})}),u=e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("g",{clipPath:"url(#clip0_37_1104)",children:e.jsx("path",{d:"M12.1887 8.67557L14.0259 6.83839C15.3246 5.53965 15.3246 3.43397 14.0259 2.13522C12.7271 0.836475 10.6215 0.836475 9.32271 2.13522L7.48553 3.9724M8.51435 12.3499L6.67717 14.1871C5.37843 15.4858 3.27274 15.4858 1.974 14.1871C0.675254 12.8884 0.675254 10.7827 1.974 9.48393L3.81118 7.64675M10.4999 12.5V15M5.49994 0.790009V2.9724M0.973999 5.5H3.474M12.5259 10.5L15.0259 10.5",stroke:"#2B2E31"})}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_37_1104",children:e.jsx("rect",{width:"16",height:"16",fill:"white"})})})]}),B=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M2.5 13L8.25 7.75M14 2.5L8.25 7.75M8.25 7.75L2.5 2.5M8.25 7.75L14 13",stroke:"#2B2E31"})}),k=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4.5 11.913L1 7.56367L4.5 3.56522M11.5 11.913L15 7.56367L11.5 3.56522M10 2L6 14",stroke:(null==s?void 0:s.codeIcon)||"#2B2E31"})}),H=e.jsx("svg",{fill:"#000000",width:"800px",height:"800px",viewBox:"0 0 56 56",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M 16.5860 52.2461 C 17.7579 52.2461 18.5548 51.6367 19.9610 50.3711 L 28.0704 43.1758 L 43.0938 43.1758 C 50.0783 43.1758 53.8280 39.3086 53.8280 32.4414 L 53.8280 14.4883 C 53.8280 7.6211 50.0783 3.7539 43.0938 3.7539 L 12.9064 3.7539 C 5.9454 3.7539 2.1720 7.5976 2.1720 14.4883 L 2.1720 32.4414 C 2.1720 39.3320 5.9454 43.1758 12.9064 43.1758 L 14.0313 43.1758 L 14.0313 49.2695 C 14.0313 51.0742 14.9688 52.2461 16.5860 52.2461 Z M 17.5469 47.9570 L 17.5469 41.1602 C 17.5469 39.8945 17.0782 39.4023 15.7891 39.4023 L 12.9298 39.4023 C 8.1720 39.4023 5.9454 36.9883 5.9454 32.4180 L 5.9454 14.4883 C 5.9454 9.9180 8.1720 7.5273 12.9298 7.5273 L 43.0938 7.5273 C 47.8280 7.5273 50.0548 9.9180 50.0548 14.4883 L 50.0548 32.4180 C 50.0548 36.9883 47.8280 39.4023 43.0938 39.4023 L 27.9064 39.4023 C 26.6173 39.4023 25.9376 39.5898 25.0469 40.5039 Z M 17.2423 22.3633 C 17.2423 24.9414 18.8360 26.9336 21.4142 26.9336 C 22.3516 26.9336 23.2891 26.7695 23.8751 26.0430 L 24.0626 26.0430 C 23.2188 27.8945 21.5079 29.0898 20.0313 29.4649 C 19.1876 29.6992 18.9298 30.0742 18.9298 30.6133 C 18.9298 31.1992 19.3985 31.6445 20.0548 31.6445 C 22.3516 31.6445 26.9220 28.9258 26.9220 23.2071 C 26.9220 20.1367 24.9298 17.7695 22.0001 17.7695 C 19.2813 17.7695 17.2423 19.6680 17.2423 22.3633 Z M 29.4298 22.3633 C 29.4298 24.9414 31.0235 26.9336 33.6016 26.9336 C 34.5391 26.9336 35.4766 26.7695 36.0626 26.0430 L 36.2501 26.0430 C 35.4064 27.8945 33.6954 29.0898 32.2188 29.4649 C 31.3751 29.6992 31.1173 30.0742 31.1173 30.6133 C 31.1173 31.1992 31.5860 31.6445 32.2423 31.6445 C 34.5391 31.6445 39.1329 28.9258 39.1329 23.2071 C 39.1329 20.1367 37.1173 17.7695 34.1876 17.7695 C 31.4688 17.7695 29.4298 19.6680 29.4298 22.3633 Z"})}),f=e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M4 7H15C17.7614 7 20 9.23857 20 12C20 14.7614 17.7614 17 15 17H8.00001M4 7L7 4M4 7L7 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),m=e.jsx("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M20 7H9.00001C6.23858 7 4 9.23857 4 12C4 14.7614 6.23858 17 9 17H16M20 7L17 4M20 7L17 10",stroke:"#1C274C",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),E=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M5 8L9 12M5 8L1 12M5 8L1 4M5 8L9 4M14.5 5.15056H11.5C11.5 5.15056 12 4.15057 13 3.65057C14 3.15057 14.2938 1.79744 13 1.15057C11.7062 0.503693 11 2.15057 11 2.15057",stroke:"#2B2E31"})}),y=e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{d:"M11.5 13.1506L11.0528 12.927L10.691 13.6506H11.5V13.1506ZM12.7764 11.2034C12.19 11.4965 11.7617 11.9293 11.4846 12.2757C11.3446 12.4507 11.2392 12.6086 11.1679 12.7245C11.1322 12.7825 11.1048 12.8304 11.0856 12.8651C11.0761 12.8824 11.0686 12.8965 11.0631 12.9069C11.0603 12.9122 11.0581 12.9165 11.0564 12.9198C11.0556 12.9215 11.0548 12.9229 11.0542 12.9241C11.0539 12.9247 11.0536 12.9252 11.0534 12.9257C11.0533 12.926 11.0532 12.9262 11.0531 12.9264C11.053 12.9265 11.0529 12.9266 11.0529 12.9267C11.0529 12.9268 11.0528 12.927 11.5 13.1506C11.9472 13.3742 11.9471 13.3743 11.9471 13.3744C11.9471 13.3745 11.947 13.3746 11.947 13.3747C11.9469 13.3748 11.9468 13.3749 11.9468 13.375C11.9467 13.3753 11.9466 13.3754 11.9465 13.3756C11.9464 13.3758 11.9464 13.3758 11.9465 13.3755C11.9468 13.3751 11.9475 13.3737 11.9486 13.3715C11.951 13.367 11.9552 13.3591 11.9612 13.3482C11.9733 13.3262 11.9928 13.2921 12.0196 13.2486C12.0733 13.1613 12.1554 13.0379 12.2654 12.9004C12.4883 12.6218 12.81 12.3046 13.2236 12.0978L12.7764 11.2034ZM11.5 13.6506H14.5V12.6506H11.5V13.6506ZM13.2236 12.0978C13.8609 11.7791 14.307 11.1716 14.3587 10.4937C14.413 9.78149 14.0258 9.10443 13.2236 8.70335L12.7764 9.59778C13.268 9.84358 13.3807 10.1665 13.3616 10.4176C13.3399 10.703 13.1391 11.022 12.7764 11.2034L13.2236 12.0978ZM13.2236 8.70335C12.7995 8.49129 12.3898 8.45443 12.0179 8.54949C11.658 8.64148 11.3741 8.84627 11.1652 9.05054C10.9556 9.25558 10.8016 9.47946 10.7016 9.64642C10.6509 9.73116 10.6121 9.8044 10.5855 9.85784C10.5721 9.88463 10.5617 9.90664 10.5542 9.92288C10.5504 9.931 10.5474 9.9377 10.5451 9.94284C10.544 9.94541 10.543 9.94759 10.5423 9.94938C10.5419 9.95027 10.5415 9.95106 10.5412 9.95175C10.5411 9.95209 10.5409 9.95241 10.5408 9.9527C10.5408 9.95285 10.5407 9.95305 10.5406 9.95312C10.5406 9.95332 10.5405 9.9535 11 10.1506C11.4595 10.3476 11.4595 10.3478 11.4594 10.348C11.4594 10.348 11.4593 10.3482 11.4592 10.3483C11.4592 10.3485 11.4591 10.3486 11.459 10.3488C11.4589 10.3491 11.4588 10.3493 11.4588 10.3494C11.4587 10.3496 11.4588 10.3494 11.459 10.3489C11.4595 10.3478 11.4606 10.3454 11.4623 10.3416C11.4658 10.334 11.4718 10.3213 11.4803 10.3043C11.4973 10.2702 11.5238 10.2198 11.5595 10.1603C11.6323 10.0387 11.7358 9.89126 11.8645 9.76544C11.9939 9.63885 12.1291 9.55321 12.2655 9.51834C12.3899 9.48655 12.5536 9.4864 12.7764 9.59778L13.2236 8.70335ZM4.64645 8.35355L8.64645 12.3536L9.35355 11.6464L5.35355 7.64645L4.64645 8.35355ZM1.35355 12.3536L5.35355 8.35355L4.64645 7.64645L0.646447 11.6464L1.35355 12.3536ZM5.35355 7.64645L1.35355 3.64645L0.646447 4.35355L4.64645 8.35355L5.35355 7.64645ZM5.35355 8.35355L9.35355 4.35355L8.64645 3.64645L4.64645 7.64645L5.35355 8.35355Z",fill:"#2B2E31"})});switch(t){case"link":return h;case"list-ordered":return o;case"list-unordered":return w;case"edit-link":return l;case"bold":return x;case"italic":return C;case"strikethrough":return d;case"underline":return g;case"center":return c;case"left":return L;case"right":return M;case"justify":return v;case"arrow-up":return j;case"arrow-down":return p;case"confirm":return a;case"remove":return u;case"cancel":return B;case"code":return k;case"quote":return H;case"undo":return f;case"redo":return m;case"superscript":return E;case"subscript":return y;case"table":return n;default:return null}});t.displayName="Icon",exports.Icon=t;
2
2
  //# sourceMappingURL=Icon.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var l,e=["bold","code"],a=[{label:"8px",value:"8px"},{label:"9px",value:"9px"},{label:"10px",value:"10px"},{label:"11px",value:"11px"},{label:"12px",value:"12px"},{label:"15px",value:"15px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"28px",value:"28px"},{label:"32px",value:"32px"},{label:"36px",value:"36px"},{label:"40px",value:"40px"},{label:"48px",value:"48px"},{label:"56px",value:"56px"},{label:"64px",value:"64px"},{label:"72px",value:"72px"},{label:"80px",value:"80px"},{label:"96px",value:"96px"}],p=[{label:"Arial",value:"Arial"},{label:"Verdana",value:"Verdana"},{label:"Courier New",value:"Courier New"},{label:"Georgia",value:"Georgia"},{label:"Impact",value:"Impact"}],x=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}],u=[{label:"Normal",value:"paragraph"},{label:"Quote",value:"quote"},{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"}];exports.BLOCK_TYPE=void 0,(l=exports.BLOCK_TYPE||(exports.BLOCK_TYPE={})).code="Code Block",l.h1="Heading 1",l.h2="Heading 2",l.h3="Heading 3",l.h4="Heading 4",l.h5="Heading 5",l.h6="Heading 6",l.paragraph="Normal",l.quote="Quote";var i={inline:{display:!0,options:e},type:{display:!0,options:u},fontSize:{display:!0,options:a},undoRedo:{display:!0},fontFamily:{display:!0,options:p},align:{display:!0,options:x},list:{display:!0},link:{display:!0},table:{display:!0}};exports.DEFAULT_BLOCK_TYPE_OPTIONS=u,exports.DEFAULT_FONT_FAMILY_OPTIONS=p,exports.DEFAULT_FONT_SIZE_OPTIONS=a,exports.DEFAULT_INLINE_CONFIG=e,exports.DEFAULT_TEXT_ALIGN_OPTIONS=x,exports.DEFAULT_TOOLBAR_CONFIG=i;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const l=["bold","code"],e=[{label:"8px",value:"8px"},{label:"9px",value:"9px"},{label:"10px",value:"10px"},{label:"11px",value:"11px"},{label:"12px",value:"12px"},{label:"15px",value:"15px"},{label:"14px",value:"14px"},{label:"16px",value:"16px"},{label:"18px",value:"18px"},{label:"20px",value:"20px"},{label:"24px",value:"24px"},{label:"28px",value:"28px"},{label:"32px",value:"32px"},{label:"36px",value:"36px"},{label:"40px",value:"40px"},{label:"48px",value:"48px"},{label:"56px",value:"56px"},{label:"64px",value:"64px"},{label:"72px",value:"72px"},{label:"80px",value:"80px"},{label:"96px",value:"96px"}],a=[{label:"Arial",value:"Arial"},{label:"Verdana",value:"Verdana"},{label:"Courier New",value:"Courier New"},{label:"Georgia",value:"Georgia"},{label:"Impact",value:"Impact"}],p=[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"},{label:"Justify",value:"justify"}],x=[{label:"Normal",value:"paragraph"},{label:"Quote",value:"quote"},{label:"Heading 1",value:"h1"},{label:"Heading 2",value:"h2"},{label:"Heading 3",value:"h3"}];var u;exports.BLOCK_TYPE=void 0,(u=exports.BLOCK_TYPE||(exports.BLOCK_TYPE={})).code="Code Block",u.h1="Heading 1",u.h2="Heading 2",u.h3="Heading 3",u.h4="Heading 4",u.h5="Heading 5",u.h6="Heading 6",u.paragraph="Normal",u.quote="Quote";const o={inline:{display:!0,options:l},type:{display:!0,options:x},fontSize:{display:!0,options:e},undoRedo:{display:!0},fontFamily:{display:!0,options:a},align:{display:!0,options:p},list:{display:!0},link:{display:!0},table:{display:!0}};exports.DEFAULT_BLOCK_TYPE_OPTIONS=x,exports.DEFAULT_FONT_FAMILY_OPTIONS=a,exports.DEFAULT_FONT_SIZE_OPTIONS=e,exports.DEFAULT_INLINE_CONFIG=l,exports.DEFAULT_TEXT_ALIGN_OPTIONS=p,exports.DEFAULT_TOOLBAR_CONFIG=o;
2
2
  //# sourceMappingURL=editorConfig.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("tslib"),e=require("react/jsx-runtime"),n=function(n){function r(t,e){var r=n.call(this,e)||this;return r.__htmlContent=t,r}return t.__extends(r,n),r.getType=function(){return"html"},r.prototype.decorate=function(){return e.jsx("div",{dangerouslySetInnerHTML:{__html:this.__htmlContent}})},r.clone=function(t){return new r(t.__htmlContent,t.__key)},r.prototype.createDOM=function(){var t=document.createElement("div");return t.innerHTML=this.__htmlContent,t},r.prototype.updateDOM=function(t,e){return t.__htmlContent!==this.__htmlContent&&(e.innerHTML=this.__htmlContent),!1},r.prototype.exportJSON=function(){return{type:"html",version:1,htmlContent:this.__htmlContent}},r.importJSON=function(t){return new r(t.htmlContent)},r}(require("lexical").DecoratorNode);exports.default=n;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("lexical");class n extends e.DecoratorNode{static getType(){return"html"}decorate(){return t.jsx("div",{dangerouslySetInnerHTML:{__html:this.__htmlContent}})}static clone(t){return new n(t.__htmlContent,t.__key)}constructor(t,e){super(e),this.__htmlContent=t}createDOM(){const t=document.createElement("div");return t.innerHTML=this.__htmlContent,t}updateDOM(t,e){return t.__htmlContent!==this.__htmlContent&&(e.innerHTML=this.__htmlContent),!1}exportJSON(){return{type:"html",version:1,htmlContent:this.__htmlContent}}static importJSON(t){const{htmlContent:e}=t;return new n(e)}}exports.default=n;
2
2
  //# sourceMappingURL=HTMLNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"delete"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",e.contentEditable="false",e},n.prototype.exportDOM=function(){var e=document.createElement("del");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__delete-node",{element:e}},n.prototype.updateDOM=function(){return!1},n.importDOM=function(){return{del:function(){return{conversion:r,priority:1}}}},n.importJSON=function(e){return new n(e.reviewId)},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"delete",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n.prototype.canBeEmpty=function(){return!1},n.prototype.canInsertTextBefore=function(){return!1},n.prototype.canInsertTextAfter=function(){return!1},n.prototype.canMergeWith=function(){return!1},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.DeleteNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.ElementNode{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}}exports.DeleteNode=t;
2
2
  //# sourceMappingURL=DeleteNode.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class i extends t.ElementNode{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.ElementNode{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"))}}exports.HighlightButtonNode=e,exports.HighlightSpanNode=i;
2
+ //# sourceMappingURL=HighlightNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HighlightNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@lexical/react/LexicalComposerContext"),r=require("@lexical/html"),o=require("lexical");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(require("showdown"));exports.InitialHtml=function(a){var n=a.initialValue,l=a.initialFormat,u=a.mode,c=t.useLexicalComposerContext()[0];return e.useEffect(function(){if(n){if(l&&"html"!==l){var e=new i.default.Converter;n=e.makeHtml(n)}c.update(function(){var e=o.$getRoot();e.clear();var t=(new DOMParser).parseFromString(n||"","text/html");r.$generateNodesFromDOM(c,t).forEach(function(t){try{o.$isParagraphNode(t)&&t.setFormat("justify"),e.append(t)}catch(e){console.error("Error appending node to root: ",e)}})})}},[n,c]),e.useEffect(function(){c.setEditable("edit"===u)},[c,u]),null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@lexical/react/LexicalComposerContext"),r=require("@lexical/html"),o=require("lexical");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(require("showdown"));exports.InitialHtml=({initialValue:a,initialFormat:l,mode:n})=>{const[s]=t.useLexicalComposerContext();return e.useEffect(()=>{if(a){if(l&&"html"!==l){var e=new i.default.Converter;a=e.makeHtml(a)}s.update(()=>{const e=o.$getRoot();e.clear();const t=(new DOMParser).parseFromString(a||"","text/html");r.$generateNodesFromDOM(s,t).forEach(t=>{try{o.$isParagraphNode(t)&&t.setFormat("justify"),e.append(t)}catch(e){console.error("Error appending node to root: ",e)}})})}},[a,s]),e.useEffect(()=>{s.setEditable("edit"===n)},[s,n]),null};
2
2
  //# sourceMappingURL=InitialHtml.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=function(t){function n(e,r){void 0===e&&(e=crypto.randomUUID());var n=t.call(this,r)||this;return n.__reviewId=e,n}return e.__extends(n,t),n.getType=function(){return"insert"},n.clone=function(e){return new n(e.__reviewId,e.__key)},n.prototype.createDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",e},n.prototype.exportDOM=function(){var e=document.createElement("ins");return e.setAttribute("data-review-id",this.__reviewId),e.className="PlaygroundEditorTheme__insert-node",{element:e}},n.prototype.updateDOM=function(e,t,r){return e.__reviewId!==this.__reviewId},n.importDOM=function(){return{ins:function(){return{conversion:r,priority:1}}}},n.importJSON=function(e){var t=new n(e.reviewId);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t},n.prototype.exportJSON=function(){return e.__assign(e.__assign({},t.prototype.exportJSON.call(this)),{type:"insert",version:1,reviewId:this.__reviewId})},n.prototype.isInline=function(){return!0},n}(require("lexical").ElementNode);function r(e){var r=e.getAttribute("data-review-id")||crypto.randomUUID();return{node:new t(r)}}exports.InsertNode=t;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.ElementNode{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}}exports.InsertNode=t;
2
2
  //# sourceMappingURL=InsertNode.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class t extends e.DecoratorNode{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)}exports.$createInvisibleNode=i,exports.InvisibleNode=t;
2
+ //# sourceMappingURL=InvisibleNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvisibleNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@lexical/react/LexicalComposerContext"),t=require("lexical"),u=require("@lexical/utils");exports.LayoutPlugin=function(i){var o=i.onFocus,n=i.onBlur,c=i.editorRef,l=r.useLexicalComposerContext()[0];return e.useLayoutEffect(function(){c&&(c.current=l),o&&u.mergeRegister(l.registerCommand(t.FOCUS_COMMAND,function(e,r){return o(e,r),!1},t.COMMAND_PRIORITY_CRITICAL)),n&&u.mergeRegister(l.registerCommand(t.BLUR_COMMAND,function(e,r){return n(e,r),!1},t.COMMAND_PRIORITY_CRITICAL))},[l]),null};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),r=require("@lexical/react/LexicalComposerContext"),t=require("lexical"),o=require("@lexical/utils");exports.LayoutPlugin=({onFocus:i,onBlur:u,editorRef:s})=>{const[l]=r.useLexicalComposerContext();return e.useLayoutEffect(()=>{s&&(s.current=l),i&&o.mergeRegister(l.registerCommand(t.FOCUS_COMMAND,(e,r)=>(i(e,r),!1),t.COMMAND_PRIORITY_CRITICAL)),u&&o.mergeRegister(l.registerCommand(t.BLUR_COMMAND,(e,r)=>(u(e,r),!1),t.COMMAND_PRIORITY_CRITICAL))},[l]),null};
2
2
  //# sourceMappingURL=LayoutPlugin.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class e extends t.ElementNode{static getType(){return"manual"}static clone(t){return new e(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),e="",s){super(s),this.__id=t,this.__status=e}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("manual");return t.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,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.id=this.__id),t.__status!==this.__status&&(this.__status?e.dataset.status=this.__status:delete e.dataset.status,e.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{manual:()=>({conversion:s,priority:1})}}static importJSON(t){var s;return new e(t.id,null!==(s=t.status)&&void 0!==s?s:"")}exportJSON(){return{...super.exportJSON(),type:"manual",version:1,id:this.__id,status:this.__status}}isInline(){return!0}}function s(t){var s;return{node:new e(t.id||crypto.randomUUID(),null!==(s=t.dataset.status)&&void 0!==s?s:"")}}exports.ManualNode=e;
2
+ //# sourceMappingURL=ManualNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ManualNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("lexical");class r extends e.ElementNode{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}}exports.PreservedNode=r;
2
+ //# sourceMappingURL=PreservedNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreservedNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lexical");class e extends t.ElementNode{static getType(){return"update"}static clone(t){return new e(t.__id,t.__status,t.__key)}constructor(t=crypto.randomUUID(),e="",s){super(s),this.__id=t,this.__status=e}getId(){return this.getLatest().__id}getStatus(){return this.getLatest().__status}setStatus(t){this.getWritable().__status=t}createDOM(){const t=document.createElement("upt");return t.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,{element:t}}updateDOM(t,e){return t.__id!==this.__id&&(e.id=this.__id),t.__status!==this.__status&&(this.__status?e.dataset.status=this.__status:delete e.dataset.status,e.contentEditable="pending"===this.__status?"false":"true"),!1}static importDOM(){return{upt:()=>({conversion:s,priority:1})}}static importJSON(t){var s;return new e(t.id,null!==(s=t.status)&&void 0!==s?s:"")}exportJSON(){return{...super.exportJSON(),type:"update",version:1,id:this.__id,status:this.__status}}isInline(){return!0}}function s(t){var s;return{node:new e(t.id||crypto.randomUUID(),null!==(s=t.dataset.status)&&void 0!==s?s:"")}}exports.UpdateNode=e;
2
+ //# sourceMappingURL=UpdateNode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UpdateNode.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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)}';!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)}(),exports.default=e;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});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{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{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)}(),exports.default=e;
2
2
  //# sourceMappingURL=theme.css.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),require("./theme.css.js");exports.default={characterLimit:"PlaygroundEditorTheme__characterLimit",code:"PlaygroundEditorTheme__code",codeHighlight:{atrule:"PlaygroundEditorTheme__tokenAttr",attr:"PlaygroundEditorTheme__tokenAttr",boolean:"PlaygroundEditorTheme__tokenProperty",builtin:"PlaygroundEditorTheme__tokenSelector",cdata:"PlaygroundEditorTheme__tokenComment",char:"PlaygroundEditorTheme__tokenSelector",class:"PlaygroundEditorTheme__tokenFunction","class-name":"PlaygroundEditorTheme__tokenFunction",comment:"PlaygroundEditorTheme__tokenComment",constant:"PlaygroundEditorTheme__tokenProperty",deleted:"PlaygroundEditorTheme__tokenProperty",doctype:"PlaygroundEditorTheme__tokenComment",entity:"PlaygroundEditorTheme__tokenOperator",function:"PlaygroundEditorTheme__tokenFunction",important:"PlaygroundEditorTheme__tokenVariable",inserted:"PlaygroundEditorTheme__tokenSelector",keyword:"PlaygroundEditorTheme__tokenAttr",namespace:"PlaygroundEditorTheme__tokenVariable",number:"PlaygroundEditorTheme__tokenProperty",operator:"PlaygroundEditorTheme__tokenOperator",prolog:"PlaygroundEditorTheme__tokenComment",property:"PlaygroundEditorTheme__tokenProperty",punctuation:"PlaygroundEditorTheme__tokenPunctuation",regex:"PlaygroundEditorTheme__tokenVariable",selector:"PlaygroundEditorTheme__tokenSelector",string:"PlaygroundEditorTheme__tokenSelector",symbol:"PlaygroundEditorTheme__tokenProperty",tag:"PlaygroundEditorTheme__tokenProperty",url:"PlaygroundEditorTheme__tokenOperator",variable:"PlaygroundEditorTheme__tokenVariable"},embedBlock:{base:"PlaygroundEditorTheme__embedBlock",focus:"PlaygroundEditorTheme__embedBlockFocus"},hashtag:"PlaygroundEditorTheme__hashtag",heading:{h1:"PlaygroundEditorTheme__h1",h2:"PlaygroundEditorTheme__h2",h3:"PlaygroundEditorTheme__h3",h4:"PlaygroundEditorTheme__h4",h5:"PlaygroundEditorTheme__h5",h6:"PlaygroundEditorTheme__h6"},image:"editor-image",link:"PlaygroundEditorTheme__link",list:{listitem:"PlaygroundEditorTheme__listItem",listitemChecked:"PlaygroundEditorTheme__listItemChecked",listitemUnchecked:"PlaygroundEditorTheme__listItemUnchecked",nested:{listitem:"PlaygroundEditorTheme__nestedListItem"},olDepth:["PlaygroundEditorTheme__ol1","PlaygroundEditorTheme__ol2","PlaygroundEditorTheme__ol3","PlaygroundEditorTheme__ol4","PlaygroundEditorTheme__ol5"],ul:"PlaygroundEditorTheme__ul"},ltr:"PlaygroundEditorTheme__ltr",mark:"PlaygroundEditorTheme__mark",markOverlap:"PlaygroundEditorTheme__markOverlap",paragraph:"PlaygroundEditorTheme__paragraph",quote:"PlaygroundEditorTheme__quote",rtl:"PlaygroundEditorTheme__rtl",table:"PlaygroundEditorTheme__table",tableCell:"PlaygroundEditorTheme__tableCell",tableCellHeader:"PlaygroundEditorTheme__tableCellHeader",text:{bold:"PlaygroundEditorTheme__textBold",code:"PlaygroundEditorTheme__textCode",italic:"PlaygroundEditorTheme__textItalic",strikethrough:"PlaygroundEditorTheme__textStrikethrough",subscript:"PlaygroundEditorTheme__textSubscript",superscript:"PlaygroundEditorTheme__textSuperscript",underline:"PlaygroundEditorTheme__textUnderline",underlineStrikethrough:"PlaygroundEditorTheme__textUnderlineStrikethrough"},deleteNode:"PlaygroundEditorTheme__delete-node",insertNode:"PlaygroundEditorTheme__insert-node",highlightButton:"PlaygroundEditorTheme__highlight-button"};
2
2
  //# sourceMappingURL=theme.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@lexical/selection");exports.getSelectedNode=function(o){var t=o.anchor,r=o.focus,c=o.anchor.getNode(),d=o.focus.getNode();return c===d?c:o.isBackward()?e.$isAtNodeEnd(r)?c:d:e.$isAtNodeEnd(t)?c:d};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@lexical/selection");exports.getSelectedNode=function(o){const t=o.anchor,r=o.focus,c=o.anchor.getNode(),s=o.focus.getNode();return c===s?c:o.isBackward()?e.$isAtNodeEnd(r)?c:s:e.$isAtNodeEnd(t)?c:s};
2
2
  //# sourceMappingURL=getSelectedNode.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),r=require("react"),n=require("./Editor/constants/editorConfig.js"),o=require("./Editor/Editor.js"),a=require("../../store/ref.context.js"),i=require("@lexical/html"),u=require("turndown"),c=require("turndown-plugin-gfm");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=new(l(u).default)({headingStyle:"atx",codeBlockStyle:"fenced"});d.keep(["ins","del","mark"]),d.keep(function(e){var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),d.addRule("md-table-passthrough",{filter:function(e){return"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table")},replacement:function(e,t){return t.textContent||""}}),d.use(c.tables);exports.default=function(u){var c=u.type,l=u.value,s=u.handleUpdateState,f=u.onBlur,h=u.placeholder,g=u.minHeight,p=u.height,m=u.mode,v=u.doNotShowBorderInViewMode,E=r.useRef(null),A=r.useState({type:c,value:l}),b=A[0],y=A[1],w=r.useState(0),x=w[0],S=w[1],q=a.useRefStore(),_=q.contentRef;q.setContentRef;r.useEffect(function(){y(function(t){return e.__assign(e.__assign({},t),{value:l})})},[l]);return r.useEffect(function(){var e=function(){_&&_.current&&S(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[_]),t.jsx(t.Fragment,{children:t.jsx(o.default,{minHeight:g,height:p,placeholder:h||"Enter some text...",onChange:function(e,t){e.read(function(){var e=i.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");function n(e){return Array.from(e.childNodes).map(function(e){if(e.nodeType===Node.TEXT_NODE)return e.textContent||"";if(e.nodeType===Node.ELEMENT_NODE){var t=e,r=t.tagName.toLowerCase(),o=n(t);if("strong"===r||"b"===r)return o.startsWith("<strong>")&&o.endsWith("</strong>")?o:"<strong>".concat(o,"</strong>");if("em"===r||"i"===r)return o.startsWith("<em>")&&o.endsWith("</em>")?o:"<em>".concat(o,"</em>");if("code"===r)return"<code>".concat(o,"</code>");if("u"===r)return"<u>".concat(o,"</u>");if("s"===r)return"<s>".concat(o,"</s>");if("a"===r){var a=t.getAttribute("href")||"";return'<a href="'.concat(a,'">').concat(o,"</a>")}return o}return""}).join("")}r.querySelectorAll("span").forEach(function(e){var t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(function(e){var t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(function(e){var t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))}),r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e){e.innerHTML=n(e)});var o=[];r.querySelectorAll("ins[data-review-id], del[data-review-id]").forEach(function(e,t){o.push(e.outerHTML);var n=r.createElement("span");n.textContent="%%REVIEW_".concat(t,"%%"),e.replaceWith(n)});var a=[];r.querySelectorAll("table").forEach(function(e,t){a.push(e.outerHTML);var n=r.createElement("p");n.textContent="%%TABLE_".concat(t,"%%"),e.replaceWith(n)});var u=d.turndown(r.body.innerHTML);o.forEach(function(e,t){u=u.replace("%%REVIEW\\_".concat(t,"%%"),e)}),a.forEach(function(e,t){u=u.replace("%%TABLE\\_".concat(t,"%%"),"\n\n".concat(e,"\n\n"))}),function(e,t){s(e,t)}("prompt",u=u.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"))})},toolbarConfig:n.DEFAULT_TOOLBAR_CONFIG,editorRef:E,mode:m,initialString:{type:b.type,value:b.value},dynamicHeight:x,onBlur:f,doNotShowBorderInViewMode:v||!1})})};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("./Editor/constants/editorConfig.js"),n=require("./Editor/Editor.js"),o=require("../../store/ref.context.js"),a=require("@lexical/html"),l=require("turndown"),i=require("turndown-plugin-gfm"),u=require("../UnsavedChangesPopup/UnsavedChangesPopup.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const s=new(c(l).default)({headingStyle:"atx",codeBlockStyle:"fenced"});s.keep(["ins","del","mark"]),s.keep(e=>{var t,r;return"A"===e.nodeName&&null!==(r=null===(t=e.getAttribute("href"))||void 0===t?void 0:t.includes("ai_reasoning$"))&&void 0!==r&&r}),s.keep(e=>"SPAN"===e.nodeName&&e.hasAttribute("highlight-id")),s.addRule("md-table-passthrough",{filter:e=>"PRE"===e.nodeName&&"true"===e.getAttribute("data-md-table"),replacement:(e,t)=>t.textContent||""}),s.use(i.tables);const d=e=>(e||"").replace(/\r\n/g,"\n").trim(),h=t.forwardRef(({type:l,value:i,handleUpdateState:c,onBlur:h,placeholder:p,minHeight:f,height:g,mode:E,doNotShowBorderInViewMode:m,onEditBlocked:v,onSaveUnsavedChanges:S,onDiscardUnsavedChanges:A,isSavingUnsavedChanges:y=!1},$)=>{const b=t.useRef(null),[w,x]=t.useState({type:l,value:i}),[q,C]=t.useState(0),[N,R]=t.useState(!1),B=t.useRef(i),T=t.useRef(i),L=t.useRef(Boolean(i)),{contentRef:_,setContentRef:j}=o.useRefStore();t.useEffect(()=>{x(e=>({...e,value:i})),B.current=i,T.current=i,L.current=Boolean(i),R(!1)},[i]),t.useImperativeHandle($,()=>({requestClose:()=>!("edit"===E&&d(B.current)!==d(T.current))||(R(!0),!1)}),[E]);return t.useEffect(()=>{const e=()=>{_&&_.current&&C(_.current.clientHeight-60)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[_]),e.jsxs("div",{style:{position:"relative",width:"100%",height:g,minHeight:f},children:[N&&e.jsx(u.UnsavedChangesPopup,{isSaving:y,onSave:async()=>{await(null==S?void 0:S()),B.current=T.current,R(!1)},onDiscard:()=>{T.current=B.current,null==A||A(),R(!1)}}),e.jsx(n.default,{minHeight:f,height:g,placeholder:p||"Enter some text...",onChange:(e,t)=>{e.read(()=>{const e=a.$generateHtmlFromNodes(t,null),r=(new DOMParser).parseFromString(e,"text/html");r.querySelectorAll("span").forEach(e=>{const t=e.getAttribute("style")||"";t.includes("background-color")&&t.includes("rgb(219, 234, 254)")&&e.setAttribute("data-review","insert"),t.includes("text-decoration")&&t.includes("line-through")&&e.setAttribute("data-review","delete")}),r.querySelectorAll("strong code").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll("code strong").forEach(e=>{const t=e.parentElement;t&&t.replaceChild(document.createTextNode(e.textContent||""),e)}),r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const n=["upt","manual","ins","del","preserved"];function o(e,t){const r=e.cloneNode(!0),a=new Map;r.querySelectorAll(n.join(",")).forEach(e=>{if(e===r)return;const n=`%%NESTED${a.size}%%`;a.set(n,o(e,t)),e.replaceWith(n)});let l=t.turndown(r.innerHTML);a.forEach((e,t)=>{l=l.replace(t,e)});const i=Array.from(e.attributes).map(e=>`${e.name}="${e.value}"`).join(" "),u=e.tagName.toLowerCase();return i?`<${u} ${i}>${l}</${u}>`:`<${u}>${l}</${u}>`}r.querySelectorAll('a[href*="ai_reasoning$"]').forEach(e=>{const t=e.getAttribute("href")||"";e.setAttribute("href",t.replace(/^https?:\/\//,""))});const l=[];r.querySelectorAll("invisible").forEach((e,t)=>{l.push(e.outerHTML),e.replaceWith(r.createTextNode(`%%INVISIBLE_${t}%%`))});const i=[];r.querySelectorAll("upt, manual").forEach((e,t)=>{i.push(o(e,s)),e.replaceWith(r.createTextNode(`%%REVIEW_${t}%%`))});const u=[];r.querySelectorAll("table").forEach((e,t)=>{u.push(e.outerHTML);const n=r.createElement("p");n.textContent=`%%TABLE_${t}%%`,e.replaceWith(n)});let d=s.turndown(r.body.innerHTML);l.forEach((e,t)=>{d=d.replace(`%%INVISIBLE\\_${t}%%`,` ${e} `)}),i.forEach((e,t)=>{d=d.replace(`%%REVIEW\\_${t}%%`,` ${e} `)}),u.forEach((e,t)=>{d=d.replace(`%%TABLE\\_${t}%%`,`\n\n${e}\n\n`)}),d=d.replace(/\*{4}([^*]+)\*{4}/g,"**$1**"),L.current&&(B.current=d,L.current=!1),T.current=d,((e,t)=>{c(e,t)})("prompt",d)})},toolbarConfig:r.DEFAULT_TOOLBAR_CONFIG,editorRef:b,mode:E,initialString:{type:w.type,value:w.value},dynamicHeight:q,onBlur:h,doNotShowBorderInViewMode:m||!1,onEditBlocked:v})]})});h.displayName="RichTextEditor",exports.default=h;
2
2
  //# sourceMappingURL=RichTextEditor.js.map
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("./UnsavedChangesPopup.module.css.js");const a=({isSaving:a=!1,onSave:l,onDiscard:t})=>e.jsx("div",{className:s.default.overlay,onClick:e=>e.stopPropagation(),role:"presentation",children:e.jsxs("div",{className:s.default.dialog,role:"dialog","aria-modal":"true","aria-labelledby":"unsaved-changes-title",children:[e.jsx("h3",{id:"unsaved-changes-title",className:s.default.title,children:"Unsaved changes"}),e.jsx("p",{className:s.default.message,children:"We see, you have unsaved changes, click on Yes to save your changes, else click on No."}),e.jsxs("div",{className:s.default.actions,children:[e.jsx("button",{type:"button",className:s.default.noButton,onClick:t,disabled:a,children:"No"}),e.jsx("button",{type:"button",className:s.default.yesButton,onClick:l,disabled:a,children:a?"Saving...":"Yes"})]})]})});exports.UnsavedChangesPopup=a,exports.default=a;
2
+ //# sourceMappingURL=UnsavedChangesPopup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnsavedChangesPopup.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".UnsavedChangesPopup-module_overlay__hSGb2{align-items:flex-start;background:#0f172a47;display:flex;inset:0;justify-content:center;padding:24px 16px 16px;position:absolute;z-index:20}.UnsavedChangesPopup-module_dialog__TIloc{background:#fff;border:1px solid #e5e7eb;border-radius:8px;box-shadow:0 18px 45px #0f172a2e;cursor:default;padding:20px;width:min(420px,100%)}.UnsavedChangesPopup-module_title__fWQ1u{color:#111827;font-size:18px;font-weight:600;line-height:26px;margin:0}.UnsavedChangesPopup-module_message__KWuvt{color:#4b5563;font-size:14px;line-height:20px;margin:8px 0 0}.UnsavedChangesPopup-module_actions__4C-2B{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.UnsavedChangesPopup-module_noButton__fP-Fy,.UnsavedChangesPopup-module_yesButton__2IG5l{border-radius:6px;cursor:pointer;font-size:14px;font-weight:600;min-width:72px;padding:8px 14px}.UnsavedChangesPopup-module_noButton__fP-Fy{background:#fff;border:1px solid #d1d5db;color:#374151}.UnsavedChangesPopup-module_yesButton__2IG5l{background:#5b3df5;border:1px solid #5b3df5;color:#fff}.UnsavedChangesPopup-module_noButton__fP-Fy:disabled,.UnsavedChangesPopup-module_yesButton__2IG5l:disabled{cursor:not-allowed;opacity:.6}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={overlay:"UnsavedChangesPopup-module_overlay__hSGb2",dialog:"UnsavedChangesPopup-module_dialog__TIloc",title:"UnsavedChangesPopup-module_title__fWQ1u",message:"UnsavedChangesPopup-module_message__KWuvt",actions:"UnsavedChangesPopup-module_actions__4C-2B",noButton:"UnsavedChangesPopup-module_noButton__fP-Fy",yesButton:"UnsavedChangesPopup-module_yesButton__2IG5l"};
2
+ //# sourceMappingURL=UnsavedChangesPopup.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"UnsavedChangesPopup.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),i=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("@mui/material"),r=require("../../utils/userStoryAttachedContext.utils.js"),l=require("./AttachedContext.module.css.js"),o=function(e){return["mp4","mov","webm","mkv"].includes(e)?t.jsx(s.Video,{size:24}):["mp3","wav","ogg","m4a","aac"].includes(e)?t.jsx(s.Headphones,{size:24}):["png","jpg","jpeg","svg","webp","gif"].includes(e)?t.jsx(s.ImageIcon,{size:24}):["pdf","docx","doc","txt","rtf","pages"].includes(e)?t.jsx(s.FileText,{size:24}):t.jsx(s.FileCode,{size:24})},c=function(t,s){var a=i.useRequirementAI().apiCachingConfig,r=a.queryClient,l=a.useGetSignedUrlQuery,o=a.useGetSignedUrlMutation,c=a.getProjectFileUrl,d=null==c?void 0:c(t.path),u=["getSignedUrl",d],m=l(d,u).data,g=o(d),f=g.mutate,h=g.isPending;n.useEffect(function(){d?r.getQueryData(u)||m||f({gsUtilPath:d}):null==s||s("Please provide valid gsUtilPath.")},[d]);return{handleRedirect:function(n){return e.__awaiter(void 0,void 0,void 0,function(){var i,a,l,o,c,g,p;return e.__generator(this,function(e){switch(e.label){case 0:null==n||n.stopPropagation(),e.label=1;case 1:return e.trys.push([1,4,,5]),(i=m||r.getQueryData(u))?"json"!==t.extension.toLowerCase()?(window.open(i,"_blank"),[2]):[4,fetch(i)]:(!h&&d&&f({gsUtilPath:d}),[2]);case 2:if(!(a=e.sent()).ok)throw new Error("Failed to fetch artifact JSON");return[4,a.json()];case 3:return l=e.sent(),o=l.id,c=l.modeName,o&&c?(g="".concat(window.location.origin,"/artifact/").concat(o,"/mode/").concat(c),window.open(g,"_blank"),[3,5]):(window.open(i,"_blank"),[2]);case 4:return p=e.sent(),console.error("Redirect failed:",p),m?window.open(m,"_blank"):null==s||s("Failed to open the selected file."),[3,5];case 5:return[2]}})})},isPending:h,signedUrl:m}},d=function(i){var o=i.item,d=i.isLast,u=i.getIconByExtension,m=i.customStyles,g=n.useState(!1),f=g[0],h=g[1],p=n.useState(""),v=p[0],x=p[1],_=c(o,function(e){x(e),h(!0)}),j=_.handleRedirect,y=_.isPending,w=_.signedUrl;return t.jsxs("div",e.__assign({className:"".concat(l.default.contextItem," ").concat(d?l.default.lastItem:""),style:null==m?void 0:m.contextItem},{children:[t.jsx("div",e.__assign({className:l.default.itemIconWrapper,style:null==m?void 0:m.iconWrapper},{children:r.GetFileIcon(o.extension,o.title.toUpperCase())||u(o.extension)})),t.jsxs("div",e.__assign({className:l.default.itemContent,style:null==m?void 0:m.itemContent},{children:[t.jsx("h3",e.__assign({className:l.default.itemTitle,style:null==m?void 0:m.title},{children:o.title})),t.jsx("p",e.__assign({className:l.default.itemMeta,style:null==m?void 0:m.metadata},{children:o.metadata}))]})),t.jsx("div",e.__assign({onClick:j,className:"".concat(l.default.actionButton," ").concat(w?l.default.actionButtonReady:""),style:null==m?void 0:m.actionButton},{children:y?t.jsx(s.Loader2,{size:24,className:"animate-spin"}):t.jsx(s.ExternalLink,{size:24})})),t.jsx(a.Snackbar,e.__assign({open:f,autoHideDuration:3e3,onClose:function(){return h(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:t.jsxs(a.Alert,e.__assign({onClose:function(){return h(!1)},severity:"error",sx:{width:"100%"}},{children:[t.jsx(a.AlertTitle,{children:"Error"}),v]}))}))]}))},u=function(i){var r=i.item,o=n.useState(!1),d=o[0],u=o[1],m=n.useState(""),g=m[0],f=m[1],h=c(r,function(e){f(e),u(!0)}),p=h.handleRedirect,v=h.isPending;return t.jsxs(t.Fragment,{children:[t.jsxs("span",e.__assign({className:l.default.sourceChip,onClick:p},{children:[t.jsx("span",e.__assign({className:l.default.sourceChipLabel},{children:r.title})),v?t.jsx(s.Loader2,{size:12,className:"animate-spin"}):t.jsx(s.Eye,{size:12})]})),t.jsx(a.Snackbar,e.__assign({open:d,autoHideDuration:3e3,onClose:function(){return u(!1)},anchorOrigin:{vertical:"bottom",horizontal:"right"}},{children:t.jsxs(a.Alert,e.__assign({onClose:function(){return u(!1)},severity:"error",sx:{width:"100%"}},{children:[t.jsx(a.AlertTitle,{children:"Error"}),g]}))}))]})},m=function(s){var i=s.flattenedData,a=n.useState(!1),r=a[0],o=a[1],c=r?i:i.slice(0,2);return t.jsxs("div",e.__assign({className:l.default.sourcesContainer},{children:[t.jsx("span",e.__assign({className:l.default.sourcesLabel},{children:"Sources :"})),t.jsxs("div",e.__assign({className:l.default.sourcesFilesContainer},{children:[c.map(function(e){return t.jsx(u,{item:e},e.id)}),!r&&i.length>2&&t.jsxs("span",e.__assign({className:l.default.moreChip,onClick:function(){return o(!0)}},{children:["+",i.length-2]})),r&&i.length>2&&t.jsx("span",e.__assign({className:l.default.moreChip,onClick:function(){return o(!1)}},{children:"View Less"}))]}))]}))};exports.default=function(a){var c=a.customStyles,u=a.variant,g=void 0===u?"dropdown":u,f=n.useState(!1),h=f[0],p=f[1],v=n.useRef(null),x=i.useRequirementAI().persistedDataFiles;n.useEffect(function(){var e=function(e){v.current&&!v.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[]);var _=n.useMemo(function(){var e=[];return x?(Object.entries(x).forEach(function(t){var n=t[0],s=t[1];Array.isArray(s)&&s.forEach(function(t){var s,i=t.filesFromProject;if(i){var a,l=i.name,o=(null===(s=i.type)||void 0===s?void 0:s.toLowerCase())||"",c=(a=i.uploadTime)?new Date(a).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"";e.push({id:i.url,category:n,title:l,extension:o,metadata:"".concat(c,"").concat(r.getDisplayFileType(o,l)),path:i.url,uploadTime:i.uploadTime})}})}),e):e},[x]);return"inline"===g?0===_.length?null:t.jsx(m,{flattenedData:_}):t.jsx("div",e.__assign({className:l.default.wrapper,style:null==c?void 0:c.wrapperComponent},{children:t.jsxs("div",e.__assign({className:l.default.dropdownContainer,style:null==c?void 0:c.dropdownContainer,ref:v},{children:[t.jsxs("button",e.__assign({onClick:function(e){e.stopPropagation(),p(!h)},className:l.default.triggerButton,style:null==c?void 0:c.triggerButton},{children:[t.jsx(s.BookOpen,{size:18,className:l.default.triggerIcon,style:null==c?void 0:c.triggerIcon}),t.jsxs("span",e.__assign({className:l.default.triggerLabel,style:null==c?void 0:c.triggerLabel},{children:["Attached Context(",_.length,")"]})),h?t.jsx(s.ChevronUp,{size:18}):t.jsx(s.ChevronDown,{size:18})]})),h&&t.jsxs("div",e.__assign({className:l.default.dropdownPanel,style:null==c?void 0:c.dropdownPanel},{children:[t.jsx("div",e.__assign({className:l.default.dropdownList,style:null==c?void 0:c.dropdownList},{children:_.length>0?_.map(function(e,n){return t.jsx(d,{item:e,isLast:n===_.length-1,getIconByExtension:o,customStyles:null==c?void 0:c.contextItem},e.id)}):t.jsx("div",e.__assign({className:l.default.emptyState},{children:"No attachments found"}))})),_.length>4&&t.jsx("div",{className:l.default.fadeGradient,style:null==c?void 0:c.fadeGradient})]}))]}))}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("lucide-react"),s=require("../RequirementAIWrapper/RequirementAIWrapper.js"),i=require("@mui/material"),a=require("../../utils/userStoryAttachedContext.utils.js"),l=require("./AttachedContext.module.css.js");const r=t=>["mp4","mov","webm","mkv"].includes(t)?e.jsx(n.Video,{size:24}):["mp3","wav","ogg","m4a","aac"].includes(t)?e.jsx(n.Headphones,{size:24}):["png","jpg","jpeg","svg","webp","gif"].includes(t)?e.jsx(n.ImageIcon,{size:24}):["pdf","docx","doc","txt","rtf","pages"].includes(t)?e.jsx(n.FileText,{size:24}):e.jsx(n.FileCode,{size:24}),o=(e,n)=>{const{queryClient:i,useGetSignedUrlQuery:a,useGetSignedUrlMutation:l,getProjectFileUrl:r}=s.useRequirementAI().apiCachingConfig,o=null==r?void 0:r(e.path),d=["getSignedUrl",o],{data:c}=a(o,d),{mutate:u,isPending:m}=l(o);t.useEffect(()=>{if(!o)return void(null==n||n("Please provide valid gsUtilPath."));i.getQueryData(d)||c||u({gsUtilPath:o})},[o]);return{handleRedirect:async t=>{null==t||t.stopPropagation();try{const t=c||i.getQueryData(d);if(!t)return void(!m&&o&&u({gsUtilPath:o}));if("json"!==e.extension.toLowerCase())return void window.open(t,"_blank");const n=await fetch(t);if(!n.ok)throw new Error("Failed to fetch artifact JSON");const{id:s,modeName:a}=await n.json();if(!s||!a)return void window.open(t,"_blank");const l=`${window.location.origin}/artifact/${s}/mode/${a}`;window.open(l,"_blank")}catch(e){console.error("Redirect failed:",e),c?window.open(c,"_blank"):null==n||n("Failed to open the selected file.")}},isPending:m,signedUrl:c}},d=({item:s,isLast:r,getIconByExtension:d,customStyles:c})=>{const[u,m]=t.useState(!1),[p,h]=t.useState(""),{handleRedirect:x,isPending:g,signedUrl:f}=o(s,e=>{h(e),m(!0)});return e.jsxs("div",{className:`${l.default.contextItem} ${r?l.default.lastItem:""}`,style:null==c?void 0:c.contextItem,children:[e.jsx("div",{className:l.default.itemIconWrapper,style:null==c?void 0:c.iconWrapper,children:a.GetFileIcon(s.extension,s.title.toUpperCase())||d(s.extension)}),e.jsxs("div",{className:l.default.itemContent,style:null==c?void 0:c.itemContent,children:[e.jsx("h3",{className:l.default.itemTitle,style:null==c?void 0:c.title,children:s.title}),e.jsx("p",{className:l.default.itemMeta,style:null==c?void 0:c.metadata,children:s.metadata})]}),e.jsx("div",{onClick:x,className:`${l.default.actionButton} ${f?l.default.actionButtonReady:""}`,style:null==c?void 0:c.actionButton,children:g?e.jsx(n.Loader2,{size:24,className:"animate-spin"}):e.jsx(n.ExternalLink,{size:24})}),e.jsx(i.Snackbar,{open:u,autoHideDuration:3e3,onClose:()=>m(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsxs(i.Alert,{onClose:()=>m(!1),severity:"error",sx:{width:"100%"},children:[e.jsx(i.AlertTitle,{children:"Error"}),p]})})]})},c=({item:s})=>{const[a,r]=t.useState(!1),[d,c]=t.useState(""),{handleRedirect:u,isPending:m}=o(s,e=>{c(e),r(!0)});return e.jsxs(e.Fragment,{children:[e.jsxs("span",{className:l.default.sourceChip,onClick:u,children:[e.jsx("span",{className:l.default.sourceChipLabel,children:s.title}),m?e.jsx(n.Loader2,{size:12,className:"animate-spin"}):e.jsx(n.Eye,{size:12})]}),e.jsx(i.Snackbar,{open:a,autoHideDuration:3e3,onClose:()=>r(!1),anchorOrigin:{vertical:"bottom",horizontal:"right"},children:e.jsxs(i.Alert,{onClose:()=>r(!1),severity:"error",sx:{width:"100%"},children:[e.jsx(i.AlertTitle,{children:"Error"}),d]})})]})},u=({flattenedData:n})=>{const[s,i]=t.useState(!1),a=s?n:n.slice(0,2);return e.jsxs("div",{className:l.default.sourcesContainer,children:[e.jsx("span",{className:l.default.sourcesLabel,children:"Sources :"}),e.jsxs("div",{className:l.default.sourcesFilesContainer,children:[a.map(t=>e.jsx(c,{item:t},t.id)),!s&&n.length>2&&e.jsxs("span",{className:l.default.moreChip,onClick:()=>i(!0),children:["+",n.length-2]}),s&&n.length>2&&e.jsx("span",{className:l.default.moreChip,onClick:()=>i(!1),children:"View Less"})]})]})};exports.default=({customStyles:i,variant:o="dropdown"})=>{const[c,m]=t.useState(!1),p=t.useRef(null),{persistedDataFiles:h}=s.useRequirementAI();t.useEffect(()=>{const e=e=>{p.current&&!p.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);const x=t.useMemo(()=>{const e=[];return h?(Object.entries(h).forEach(([t,n])=>{Array.isArray(n)&&n.forEach(n=>{var s;const i=n.filesFromProject;if(!i)return;const l=i.name,r=(null===(s=i.type)||void 0===s?void 0:s.toLowerCase())||"",o=(d=i.uploadTime)?new Date(d).toLocaleDateString("en-GB",{day:"numeric",month:"short",year:"numeric"}):"";var d;e.push({id:i.url,category:t,title:l,extension:r,metadata:`${o}${a.getDisplayFileType(r,l)}`,path:i.url,uploadTime:i.uploadTime})})}),e):e},[h]);return"inline"===o?0===x.length?null:e.jsx(u,{flattenedData:x}):e.jsx("div",{className:l.default.wrapper,style:null==i?void 0:i.wrapperComponent,children:e.jsxs("div",{className:l.default.dropdownContainer,style:null==i?void 0:i.dropdownContainer,ref:p,children:[e.jsxs("button",{onClick:e=>{e.stopPropagation(),m(!c)},className:l.default.triggerButton,style:null==i?void 0:i.triggerButton,children:[e.jsx(n.BookOpen,{size:18,className:l.default.triggerIcon,style:null==i?void 0:i.triggerIcon}),e.jsxs("span",{className:l.default.triggerLabel,style:null==i?void 0:i.triggerLabel,children:["Attached Context(",x.length,")"]}),c?e.jsx(n.ChevronUp,{size:18}):e.jsx(n.ChevronDown,{size:18})]}),c&&e.jsxs("div",{className:l.default.dropdownPanel,style:null==i?void 0:i.dropdownPanel,children:[e.jsx("div",{className:l.default.dropdownList,style:null==i?void 0:i.dropdownList,children:x.length>0?x.map((t,n)=>e.jsx(d,{item:t,isLast:n===x.length-1,getIconByExtension:r,customStyles:null==i?void 0:i.contextItem},t.id)):e.jsx("div",{className:l.default.emptyState,children:"No attachments found"})}),x.length>4&&e.jsx("div",{className:l.default.fadeGradient,style:null==i?void 0:i.fadeGradient})]})]})})};
2
2
  //# sourceMappingURL=AttachedContext.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".AttachedContext-module_wrapper__KHDIP{display:flex;flex-direction:column}.AttachedContext-module_dropdownContainer__TPFtZ{display:inline-block;position:relative;text-align:left}.AttachedContext-module_triggerButton__ZXDWZ{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 1px 2px 0 #0000000d;color:#374151;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:background-color .2s,border-color .2s}.AttachedContext-module_triggerButton__ZXDWZ:hover{background-color:#f9fafb}.AttachedContext-module_triggerIcon__cdeba{color:#4b5563}.AttachedContext-module_triggerLabel__7HM4O{font-weight:500}.AttachedContext-module_dropdownPanel__r-NRo{animation:AttachedContext-module_slideIn__ah8dZ .2s ease-out;background-color:#fff;border:1px solid #f3f4f6;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;left:0;margin-top:.5rem;overflow:hidden;position:absolute;width:420px;z-index:50}.AttachedContext-module_dropdownList__E-mKF{max-height:300px;overflow-y:auto;padding-bottom:.5rem;padding-top:.5rem}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar{width:6px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-track{background:#0000}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:10px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb:hover{background:#d1d5db}.AttachedContext-module_fadeGradient__ncpfP{background:linear-gradient(0deg,#f9fafb80,#0000);height:1rem;pointer-events:none}.AttachedContext-module_emptyState__WCYKW{color:#9ca3af;font-size:.875rem;padding:2rem;text-align:center}.AttachedContext-module_contextItem__I0Q9u{align-items:flex-start;border-bottom:1px solid #0000;border-radius:8px;display:flex;gap:1rem;margin-left:.5rem;margin-right:.5rem;padding:1rem;transition:background-color .15s}.AttachedContext-module_contextItem__I0Q9u:not(.AttachedContext-module_lastItem__fWT-n){border-bottom-color:#f3f4f6}.AttachedContext-module_contextItem__I0Q9u:hover{background-color:#f9fafb}.AttachedContext-module_itemIconWrapper__FjAJj{background-color:#f5f3ff;border-radius:8px;color:#8b5cf6;flex-shrink:0;margin-top:.25rem;padding:.5rem}.AttachedContext-module_itemContent__jwJwp{flex:1;min-width:0}.AttachedContext-module_itemTitle__e2hAN{color:#111827;font-size:.9375rem;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;transition:color .15s;white-space:nowrap}.AttachedContext-module_contextItem__I0Q9u:hover .AttachedContext-module_itemTitle__e2hAN{color:#7c3aed}.AttachedContext-module_itemMeta__Hw9Ct{color:#6b7280;font-size:.875rem;margin-bottom:0;margin-top:.125rem}.AttachedContext-module_actionButton__oQioa{align-self:center;background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;flex-shrink:0;line-height:0;padding:.5rem;transition:color .15s,background-color .15s}.AttachedContext-module_actionButton__oQioa:hover{background-color:#fff;color:#7c3aed}.AttachedContext-module_actionButtonReady__TbrP-{color:#6b7280}.AttachedContext-module_sourcesContainer__AP6PI{align-items:flex-start;display:flex;gap:8px;min-width:0;width:100%}.AttachedContext-module_sourcesFilesContainer__-Mnhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.AttachedContext-module_sourcesLabel__VN-9Q{color:#374151;flex-shrink:0;font-size:14px;font-weight:600;line-height:20px}.AttachedContext-module_sourceChip__QsVPO{align-items:center;background:#eef2ff;border-radius:10px;color:#6366f1;cursor:pointer;display:inline-flex;flex-shrink:1;font-size:13px;font-weight:500;gap:6px;line-height:18px;min-width:0;padding:6px 12px;transition:background-color .15s ease,transform .15s ease}.AttachedContext-module_sourceChip__QsVPO:hover{background:#e0e7ff}.AttachedContext-module_sourceChipLabel__f29Qv{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AttachedContext-module_moreChip__ieXRs{align-items:center;background:#eef2ff;border-radius:10px;color:#6366f1;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;justify-content:center;line-height:18px;padding:6px 12px;transition:background-color .15s ease}.AttachedContext-module_moreChip__ieXRs:hover{background:#e0e7ff}@keyframes AttachedContext-module_slideIn__ah8dZ{0%{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={wrapper:"AttachedContext-module_wrapper__KHDIP",dropdownContainer:"AttachedContext-module_dropdownContainer__TPFtZ",triggerButton:"AttachedContext-module_triggerButton__ZXDWZ",triggerIcon:"AttachedContext-module_triggerIcon__cdeba",triggerLabel:"AttachedContext-module_triggerLabel__7HM4O",dropdownPanel:"AttachedContext-module_dropdownPanel__r-NRo",slideIn:"AttachedContext-module_slideIn__ah8dZ",dropdownList:"AttachedContext-module_dropdownList__E-mKF",fadeGradient:"AttachedContext-module_fadeGradient__ncpfP",emptyState:"AttachedContext-module_emptyState__WCYKW",contextItem:"AttachedContext-module_contextItem__I0Q9u",lastItem:"AttachedContext-module_lastItem__fWT-n",itemIconWrapper:"AttachedContext-module_itemIconWrapper__FjAJj",itemContent:"AttachedContext-module_itemContent__jwJwp",itemTitle:"AttachedContext-module_itemTitle__e2hAN",itemMeta:"AttachedContext-module_itemMeta__Hw9Ct",actionButton:"AttachedContext-module_actionButton__oQioa",actionButtonReady:"AttachedContext-module_actionButtonReady__TbrP-",sourcesContainer:"AttachedContext-module_sourcesContainer__AP6PI",sourcesFilesContainer:"AttachedContext-module_sourcesFilesContainer__-Mnhn",sourcesLabel:"AttachedContext-module_sourcesLabel__VN-9Q",sourceChip:"AttachedContext-module_sourceChip__QsVPO",sourceChipLabel:"AttachedContext-module_sourceChipLabel__f29Qv",moreChip:"AttachedContext-module_moreChip__ieXRs"};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const t=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;t&&e.setAttribute("nonce",t),e.appendChild(document.createTextNode(".AttachedContext-module_wrapper__KHDIP{display:flex;flex-direction:column}.AttachedContext-module_dropdownContainer__TPFtZ{display:inline-block;position:relative;text-align:left}.AttachedContext-module_triggerButton__ZXDWZ{align-items:center;background-color:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 1px 2px 0 #0000000d;color:#374151;cursor:pointer;display:flex;gap:.5rem;padding:.5rem 1rem;transition:background-color .2s,border-color .2s}.AttachedContext-module_triggerButton__ZXDWZ:hover{background-color:#f9fafb}.AttachedContext-module_triggerIcon__cdeba{color:#4b5563}.AttachedContext-module_triggerLabel__7HM4O{font-weight:500}.AttachedContext-module_dropdownPanel__r-NRo{animation:AttachedContext-module_slideIn__ah8dZ .2s ease-out;background-color:#fff;border:1px solid #f3f4f6;border-radius:12px;box-shadow:0 20px 25px -5px #0000001a,0 8px 10px -6px #0000001a;left:0;margin-top:.5rem;overflow:hidden;position:absolute;width:420px;z-index:50}.AttachedContext-module_dropdownList__E-mKF{max-height:300px;overflow-y:auto;padding-bottom:.5rem;padding-top:.5rem}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar{width:6px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-track{background:#0000}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:10px}.AttachedContext-module_dropdownList__E-mKF::-webkit-scrollbar-thumb:hover{background:#d1d5db}.AttachedContext-module_fadeGradient__ncpfP{background:linear-gradient(0deg,#f9fafb80,#0000);height:1rem;pointer-events:none}.AttachedContext-module_emptyState__WCYKW{color:#9ca3af;font-size:.875rem;padding:2rem;text-align:center}.AttachedContext-module_contextItem__I0Q9u{align-items:flex-start;border-bottom:1px solid #0000;border-radius:8px;display:flex;gap:1rem;margin-left:.5rem;margin-right:.5rem;padding:1rem;transition:background-color .15s}.AttachedContext-module_contextItem__I0Q9u:not(.AttachedContext-module_lastItem__fWT-n){border-bottom-color:#f3f4f6}.AttachedContext-module_contextItem__I0Q9u:hover{background-color:#f9fafb}.AttachedContext-module_itemIconWrapper__FjAJj{background-color:#f5f3ff;border-radius:8px;color:#8b5cf6;flex-shrink:0;margin-top:.25rem;padding:.5rem}.AttachedContext-module_itemContent__jwJwp{flex:1;min-width:0}.AttachedContext-module_itemTitle__e2hAN{color:#111827;font-size:.9375rem;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;transition:color .15s;white-space:nowrap}.AttachedContext-module_contextItem__I0Q9u:hover .AttachedContext-module_itemTitle__e2hAN{color:#7c3aed}.AttachedContext-module_itemMeta__Hw9Ct{color:#6b7280;font-size:.875rem;margin-bottom:0;margin-top:.125rem}.AttachedContext-module_actionButton__oQioa{align-self:center;background:none;border:none;border-radius:4px;color:#9ca3af;cursor:pointer;flex-shrink:0;line-height:0;padding:.5rem;transition:color .15s,background-color .15s}.AttachedContext-module_actionButton__oQioa:hover{background-color:#fff;color:#7c3aed}.AttachedContext-module_actionButtonReady__TbrP-{color:#6b7280}.AttachedContext-module_sourcesContainer__AP6PI{align-items:center;display:flex;gap:8px;min-width:0;width:100%}.AttachedContext-module_sourcesFilesContainer__-Mnhn{align-items:center;display:flex;flex-wrap:wrap;gap:8px;min-width:0}.AttachedContext-module_sourcesLabel__VN-9Q{color:#374151;flex-shrink:0;font-size:14px;font-weight:600;line-height:20px}.AttachedContext-module_sourceChip__QsVPO{align-items:center;background:#eef2ff;border-radius:10px;color:#6366f1;cursor:pointer;display:inline-flex;flex-shrink:1;font-size:13px;font-weight:500;gap:6px;line-height:18px;min-width:0;padding:6px 12px;transition:background-color .15s ease,transform .15s ease}.AttachedContext-module_sourceChip__QsVPO:hover{background:#e0e7ff}.AttachedContext-module_sourceChipLabel__f29Qv{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.AttachedContext-module_moreChip__ieXRs{align-items:center;border:1px solid #c8d0db;border-radius:10px;cursor:pointer;display:inline-flex;flex-shrink:0;font-size:13px;font-weight:600;justify-content:center;line-height:18px;padding:6px 12px;transition:background-color .15s ease}.AttachedContext-module_moreChip__ieXRs:hover{background:#e0e7ff}@keyframes AttachedContext-module_slideIn__ah8dZ{0%{opacity:0;transform:translateY(-10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={wrapper:"AttachedContext-module_wrapper__KHDIP",dropdownContainer:"AttachedContext-module_dropdownContainer__TPFtZ",triggerButton:"AttachedContext-module_triggerButton__ZXDWZ",triggerIcon:"AttachedContext-module_triggerIcon__cdeba",triggerLabel:"AttachedContext-module_triggerLabel__7HM4O",dropdownPanel:"AttachedContext-module_dropdownPanel__r-NRo",slideIn:"AttachedContext-module_slideIn__ah8dZ",dropdownList:"AttachedContext-module_dropdownList__E-mKF",fadeGradient:"AttachedContext-module_fadeGradient__ncpfP",emptyState:"AttachedContext-module_emptyState__WCYKW",contextItem:"AttachedContext-module_contextItem__I0Q9u",lastItem:"AttachedContext-module_lastItem__fWT-n",itemIconWrapper:"AttachedContext-module_itemIconWrapper__FjAJj",itemContent:"AttachedContext-module_itemContent__jwJwp",itemTitle:"AttachedContext-module_itemTitle__e2hAN",itemMeta:"AttachedContext-module_itemMeta__Hw9Ct",actionButton:"AttachedContext-module_actionButton__oQioa",actionButtonReady:"AttachedContext-module_actionButtonReady__TbrP-",sourcesContainer:"AttachedContext-module_sourcesContainer__AP6PI",sourcesFilesContainer:"AttachedContext-module_sourcesFilesContainer__-Mnhn",sourcesLabel:"AttachedContext-module_sourcesLabel__VN-9Q",sourceChip:"AttachedContext-module_sourceChip__QsVPO",sourceChipLabel:"AttachedContext-module_sourceChipLabel__f29Qv",moreChip:"AttachedContext-module_moreChip__ieXRs"};
2
2
  //# sourceMappingURL=AttachedContext.module.css.js.map