@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
- import{__assign as r}from"tslib";import{jsx as e}from"react/jsx-runtime";import{useUSPContext as o}from"../UserStoryPicker.context.js";function t(t){var s=t.className,i=t.style,a=t.children,n=["usp-nav-row",o().classNames.navRow,s].filter(Boolean).join(" ");return e("div",r({className:n,style:i},{children:a}))}export{t as NavRow};
1
+ import{jsx as e}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";function o({className:o,style:s,children:t}){const{classNames:n}=r(),a=["usp-nav-row",n.navRow,o].filter(Boolean).join(" ");return e("div",{className:a,style:s,children:t})}export{o as NavRow};
2
2
  //# sourceMappingURL=NavRow.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as e,__generator as t,__assign as o}from"tslib";import{jsxs as r,Fragment as n,jsx as i}from"react/jsx-runtime";import{useState as s,useCallback as c}from"react";import{useUSPContext as l}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as a}from"./UserStoryImportDialog.js";function d(d){var u=this,p=d.label,h=void 0===p?"Proceed":p,f=d.disableWhenNoSelection,m=void 0===f||f,v=d.className,y=d.style,b=l(),g=b.selectedStory,w=b.classNames,k=b.onProceed,C=b.adapter,S=b.hidePopUp,_=b.dispatch,x=C.sendNotification,N=C.sendEvent,P=C.onProceedComplete,j=m&&!g,U=s(!1),B=U[0],E=U[1],I=s(!1),L=I[0],O=I[1],W=c(function(e,t){null==x||x(e,t)},[x]),T=c(function(o){return e(u,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return(null==g?void 0:g.artifact_id)?(E(!0),[4,null==P?void 0:P({selectedStory:g,importChoice:o})]):(W("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return e.sent(),W("You selected userStory ".concat(null==g?void 0:g.storyId,": ").concat(null==g?void 0:g.title),"info"),null==N||N({}),j||k(g),[2]}})})},[g,j,W,P,N,k]),Y=c(function(){return e(u,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return j?[2]:(_({type:"SELECT_STORY",payload:g.user_story_id}),(null==g?void 0:g.multi_user_story)&&!S?(O(!0),[2]):[4,T("all")]);case 1:return e.sent(),[2]}})})},[g,j,S,T,_]),D=c(function(e){O(e)},[]),M=c(function(o){return e(u,void 0,void 0,function(){return t(this,function(e){switch(e.label){case 0:return O(!1),[4,T(o)];case 1:return e.sent(),[2]}})})},[T]),R=["usp-proceed",j&&"usp-proceed--disabled",w.proceedButton,v].filter(Boolean).join(" ");return r(n,{children:[i("button",o({type:"button",className:R,style:y,onClick:Y,disabled:j||B},{children:B?r(n,{children:[r("svg",o({className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13"},{children:[i("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),i("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):h})),i(a,{open:L,onOpenChange:D,onConfirm:M})]})}export{d as ProceedButton};
1
+ import{jsxs as e,Fragment as o,jsx as t}from"react/jsx-runtime";import{useState as r,useCallback as s}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as n}from"./UserStoryImportDialog.js";function l({label:l="Proceed",disableWhenNoSelection:a=!0,className:c,style:d}){const{selectedStory:p,classNames:u,onProceed:y,adapter:m,hidePopUp:h,dispatch:f}=i(),{sendNotification:g,sendEvent:v,onProceedComplete:w}=m,b=a&&!p,[k,C]=r(!1),[S,_]=r(!1),x=s((e,o)=>{null==g||g(e,o)},[g]),N=s(async e=>{(null==p?void 0:p.artifact_id)?(C(!0),await(null==w?void 0:w({selectedStory:p,importChoice:e})),x(`You selected userStory ${null==p?void 0:p.storyId}: ${null==p?void 0:p.title}`,"info"),null==v||v({}),b||y(p)):x("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")},[p,b,x,w,v,y]),P=s(async()=>{b||(f({type:"SELECT_STORY",payload:p.user_story_id}),!(null==p?void 0:p.multi_user_story)||h?await N("all"):_(!0))},[p,b,h,N,f]),j=s(e=>{_(e)},[]),U=s(async e=>{_(!1),await N(e)},[N]),B=["usp-proceed",b&&"usp-proceed--disabled",u.proceedButton,c].filter(Boolean).join(" ");return e(o,{children:[t("button",{type:"button",className:B,style:d,onClick:P,disabled:b||k,children:k?e(o,{children:[e("svg",{className:"usp-card__proceed-btn-spinner",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",width:"13",height:"13",children:[t("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),t("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),"Loading..."]}):l}),t(n,{open:S,onOpenChange:j,onConfirm:U})]})}export{l as ProceedButton};
2
2
  //# sourceMappingURL=ProceedButton.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,Fragment as n,jsxs as o}from"react/jsx-runtime";import{useState as t,useCallback as a}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";function c(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function l(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})}))}function s(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function d(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(r){return e}}function p(p){var u,m,h=p.project,f=p.className,v=p.style,y=p.headerStyle,w=p.titleStyle,_=p.descriptionStyle,j=p.metaStyle,k=i(),g=k.dispatch,S=k.classNames,L=k.renderProps,N=k.onProjectSelect,B=k.onViewMoreDescription,C=t(!1),x=C[0],b=C[1],P=a(function(e){e.stopPropagation(),b(function(e){return!e})},[]),A=x?h.description:(null!==(m=null===(u=h.description)||void 0===u?void 0:u.length)&&void 0!==m?m:0)>100?h.description.slice(0,100):h.description,D=h.description.length>100,I=a(function(){g({type:"SELECT_PROJECT",payload:h.id}),null==N||N(h)},[g,h,N]);a(function(e){e.stopPropagation(),null==B||B(h)},[B,h]);var M=["usp-card usp-card--project",S.card,f].filter(Boolean).join(" ");return L.renderProjectCard?r(n,{children:L.renderProjectCard(h)}):o("div",e({className:M,style:v,onClick:I,role:"button",tabIndex:0},{children:[o("div",e({className:["usp-card__header",S.cardHeader].filter(Boolean).join(" "),style:y},{children:[r("span",e({className:"usp-card__icon"},{children:L.renderFolderIcon?L.renderFolderIcon():r(c,{})})),r("span",e({className:["usp-card__title",S.cardTitle].filter(Boolean).join(" "),style:w},{children:h.name})),o("span",e({className:["usp-card__artifact-count",S.cardArtifactCount].filter(Boolean).join(" ")},{children:[r(s,{}),h.artifactCount," Artifacts"]}))]})),void 0!==h.summary&&o("div",e({className:["usp-card__summary-label",S.cardSummaryLabel].filter(Boolean).join(" ")},{children:[L.renderSparkleIcon?L.renderSparkleIcon():r(l,{}),"Summary"]})),r("div",e({className:["usp-card-userstory-description",!h.description&&"usp-card__description--empty",S.cardDescription].filter(Boolean).join(" "),style:_},{children:h.description?o(n,{children:[A,D&&r("button",e({onClick:P,className:["usp-card-moreButton",S.cardViewMore].filter(Boolean).join(" "),"aria-label":x?"Show less":"Show more"},{children:x?"less":"..."}))]}):r("span",e({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),r("div",e({className:"usp-card__meta",style:j},{children:o("span",e({className:["usp-card__date",S.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",d(h.lastUpdated)]}))}))]}))}export{p as ProjectCard};
1
+ import{jsx as e,Fragment as r,jsxs as o}from"react/jsx-runtime";import{useState as n,useCallback as t}from"react";import{useUSPContext as a}from"../UserStoryPicker.context.js";function i(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})})}function l(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})})}function c(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})})}function s(e){try{return new Date(e).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(r){return e}}function d({project:d,className:p,style:u,headerStyle:m,titleStyle:h,descriptionStyle:f,metaStyle:v}){var y,w;const{dispatch:_,classNames:j,renderProps:k,onProjectSelect:g,onViewMoreDescription:S}=a(),[L,N]=n(!1),B=t(e=>{e.stopPropagation(),N(e=>!e)},[]),C=L?d.description:(null!==(w=null===(y=d.description)||void 0===y?void 0:y.length)&&void 0!==w?w:0)>100?d.description.slice(0,100):d.description,x=d.description.length>100,P=t(()=>{_({type:"SELECT_PROJECT",payload:d.id}),null==g||g(d)},[_,d,g]);t(e=>{e.stopPropagation(),null==S||S(d)},[S,d]);const b=["usp-card usp-card--project",j.card,p].filter(Boolean).join(" ");return k.renderProjectCard?e(r,{children:k.renderProjectCard(d)}):o("div",{className:b,style:u,onClick:P,role:"button",tabIndex:0,children:[o("div",{className:["usp-card__header",j.cardHeader].filter(Boolean).join(" "),style:m,children:[e("span",{className:"usp-card__icon",children:k.renderFolderIcon?k.renderFolderIcon():e(i,{})}),e("span",{className:["usp-card__title",j.cardTitle].filter(Boolean).join(" "),style:h,children:d.name}),o("span",{className:["usp-card__artifact-count",j.cardArtifactCount].filter(Boolean).join(" "),children:[e(c,{}),d.artifactCount," Artifacts"]})]}),void 0!==d.summary&&o("div",{className:["usp-card__summary-label",j.cardSummaryLabel].filter(Boolean).join(" "),children:[k.renderSparkleIcon?k.renderSparkleIcon():e(l,{}),"Summary"]}),e("div",{className:["usp-card-userstory-description",!d.description&&"usp-card__description--empty",j.cardDescription].filter(Boolean).join(" "),style:f,children:d.description?o(r,{children:[C,x&&e("button",{onClick:B,className:["usp-card-moreButton",j.cardViewMore].filter(Boolean).join(" "),"aria-label":L?"Show less":"Show more",children:L?"less":"..."})]}):e("span",{className:"usp-card__description--placeholder",children:"No Description available"})}),e("div",{className:"usp-card__meta",style:v,children:o("span",{className:["usp-card__date",j.cardDate].filter(Boolean).join(" "),children:["Last Updated: ",s(d.lastUpdated)]})})]})}export{d as ProjectCard};
2
2
  //# sourceMappingURL=ProjectCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as o,jsx as t}from"react/jsx-runtime";import{cn as r}from"../lib/cn.js";import n from"../lib/CustomTooltip.js";function s(n){var s=n.visualLeftWidth,l=n.isResizing,c=n.isLeftPanelCollapsed,p=n.onResizeStart,u=n.onToggle;return o("div",e({className:r("absolute top-0 bottom-0 z-10 group",!c&&"cursor-col-resize"),style:{left:c?0:"".concat(s,"%"),width:c?0:9,marginLeft:c?0:-4,pointerEvents:"auto"},onMouseDown:c?void 0:p},{children:[t("div",{className:r("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",c&&"opacity-0 pointer-events-none",l?"w-[2px] bg-focus-border":"w-px bg-editor-widget-border group-hover:w-[2px] group-hover:bg-sash-hover-border")}),!c&&!l&&t("div",e({className:r("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","pointer-events-none","opacity-0 group-hover:opacity-60 transition-opacity duration-200")},{children:t(i,{className:"h-4 w-4 text-description-foreground"})})),t(a,{isCollapsed:c,onToggle:u,className:"absolute transition-all duration-200",style:{left:c?2:"50%",top:6,transform:c?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]}))}function a(o){var s=o.isCollapsed,a=o.onToggle,i=o.className,p=o.style;return t(n,e({content:s?"Open Sidebar":"Close Sidebar"},{children:t("button",e({type:"button",onClick:function(e){e.stopPropagation(),a()},onMouseDown:function(e){return e.stopPropagation()},className:r("fm-resize-toggle",s?"fm-resize-toggle--collapsed":"fm-resize-toggle--open",i),"aria-label":s?"Expand panel":"Collapse panel",style:p},{children:t(s?c:l,{className:"h-3.5 w-3.5 text-primary-foreground"})}))}))}function i(r){var n=r.className;return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:n},{children:[t("line",{x1:"9",y1:"5",x2:"9",y2:"19"}),t("line",{x1:"15",y1:"5",x2:"15",y2:"19"})]}))}function l(o){var r=o.className;return t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r},{children:t("path",{d:"M15 18l-6-6 6-6"})}))}function c(o){var r=o.className;return t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:r},{children:t("path",{d:"M9 18l6-6-6-6"})}))}export{s as ResizeHandle};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{cn as t}from"../lib/cn.js";import r from"../lib/CustomTooltip.js";function n({visualLeftWidth:r,isResizing:n,isLeftPanelCollapsed:a,onResizeStart:i,onToggle:p}){return e("div",{className:t("absolute top-0 bottom-0 z-10 group",!a&&"cursor-col-resize"),style:{left:a?0:`${r}%`,width:a?0:9,marginLeft:a?0:-4,pointerEvents:"auto"},onMouseDown:a?void 0:i,children:[o("div",{className:t("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",a&&"opacity-0 pointer-events-none",n?"w-[2px] bg-focus-border":"w-px bg-editor-widget-border group-hover:w-[2px] group-hover:bg-sash-hover-border")}),!a&&!n&&o("div",{className:t("absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2","pointer-events-none","opacity-0 group-hover:opacity-60 transition-opacity duration-200"),children:o(l,{className:"h-4 w-4 text-description-foreground"})}),o(s,{isCollapsed:a,onToggle:p,className:"absolute transition-all duration-200",style:{left:a?2:"50%",top:6,transform:a?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]})}function s({isCollapsed:e,onToggle:n,className:s,style:l}){return o(r,{content:e?"Open Sidebar":"Close Sidebar",children:o("button",{type:"button",onClick:e=>{e.stopPropagation(),n()},onMouseDown:e=>e.stopPropagation(),className:t("fm-resize-toggle",e?"fm-resize-toggle--collapsed":"fm-resize-toggle--open",s),"aria-label":e?"Expand panel":"Collapse panel",style:l,children:o(e?i:a,{className:"h-3.5 w-3.5 text-primary-foreground"})})})}function l({className:t}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:t,children:[o("line",{x1:"9",y1:"5",x2:"9",y2:"19"}),o("line",{x1:"15",y1:"5",x2:"15",y2:"19"})]})}function a({className:e}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:o("path",{d:"M15 18l-6-6 6-6"})})}function i({className:e}){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",className:e,children:o("path",{d:"M9 18l6-6-6-6"})})}export{n as ResizeHandle};
2
2
  //# sourceMappingURL=ResizeHandle.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{useState as n,useRef as t,useCallback as s,useEffect as l}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";function u(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m18 15-6-6-6 6"})}))}function c(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m6 9 6 6 6-6"})}))}var a=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];function p(p){var d,m,v=p.options,f=void 0===v?a:v,y=p.className,h=p.style;p.labelStyle;var w=p.selectStyle,g=i(),_=g.state,b=g.dispatch,k=g.classNames,R=g.renderProps,x=g.onScopeRepoChange,N=n(!1),S=N[0],j=N[1],C=t(null),L=s(function(e){b({type:"SET_SCOPE_REPO",payload:e}),null==x||x(e),j(!1)},[b,x]);if(l(function(){function e(e){C.current&&!C.current.contains(e.target)&&j(!1)}return S&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[S]),R.renderScopeDropdown)return R.renderScopeDropdown(_.scopeRepo,L,f);var B=null!==(m=null===(d=f.find(function(e){return e.value===_.scopeRepo}))||void 0===d?void 0:d.label)&&void 0!==m?m:f[0].label,E=["usp-user-story-scope",k.scopeDropdown,y].filter(Boolean).join(" ");return o("div",e({ref:C,className:[E,S&&"open"].filter(Boolean).join(" "),style:h},{children:[o("button",e({type:"button",className:"usp-user-story-scope__trigger",style:w,onClick:function(){return j(function(e){return!e})}},{children:[r("span",e({className:"usp-user-story-scope__trigger-label"},{children:B})),r("span",e({className:"usp-user-story-scope__chevron"},{children:r(S?u:c,{})}))," "]})),S&&r("ul",e({className:"usp-user-story-scope__menu",role:"listbox"},{children:f.map(function(o){return r("li",e({role:"option","aria-selected":_.scopeRepo===o.value,className:["usp-user-story-scope__option",_.scopeRepo===o.value&&"active"].filter(Boolean).join(" "),onClick:function(){return L(o.value)}},{children:o.label}),o.value)})}))]}))}export{p as ScopeDropdown};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useState as r,useRef as n,useCallback as t,useEffect as s}from"react";import{useUSPContext as l}from"../UserStoryPicker.context.js";function i(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o("path",{d:"m18 15-6-6-6 6"})})}function c(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:o("path",{d:"m6 9 6 6 6-6"})})}const a=[{value:"currentRepository",label:"Current Repository"},{value:"allRepository",label:"All Repositories"}];function p({options:p=a,className:u,style:d,labelStyle:m,selectStyle:v}){var y,h;const{state:f,dispatch:w,classNames:g,renderProps:_,onScopeRepoChange:k}=l(),[b,R]=r(!1),x=n(null),N=t(e=>{w({type:"SET_SCOPE_REPO",payload:e}),null==k||k(e),R(!1)},[w,k]);if(s(()=>{function e(e){x.current&&!x.current.contains(e.target)&&R(!1)}return b&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[b]),_.renderScopeDropdown)return _.renderScopeDropdown(f.scopeRepo,N,p);const S=null!==(h=null===(y=p.find(e=>e.value===f.scopeRepo))||void 0===y?void 0:y.label)&&void 0!==h?h:p[0].label,j=["usp-user-story-scope",g.scopeDropdown,u].filter(Boolean).join(" ");return e("div",{ref:x,className:[j,b&&"open"].filter(Boolean).join(" "),style:d,children:[e("button",{type:"button",className:"usp-user-story-scope__trigger",style:v,onClick:()=>R(e=>!e),children:[o("span",{className:"usp-user-story-scope__trigger-label",children:S}),o("span",{className:"usp-user-story-scope__chevron",children:o(b?i:c,{})})," "]}),b&&o("ul",{className:"usp-user-story-scope__menu",role:"listbox",children:p.map(e=>o("li",{role:"option","aria-selected":f.scopeRepo===e.value,className:["usp-user-story-scope__option",f.scopeRepo===e.value&&"active"].filter(Boolean).join(" "),onClick:()=>N(e.value),children:e.label},e.value))})]})}export{p as ScopeDropdown};
2
2
  //# sourceMappingURL=ScopeDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useCallback as a}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";import{adaptLabel as n}from"../lib/adaptLabel.js";function s(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("circle",{cx:"11",cy:"11",r:"8"}),t("path",{d:"m21 21-4.3-4.3"})]}))}function c(c){var i=c.placeholder,l=void 0===i?"Search...":i,p=c.className,d=c.style,h=c.inputStyle,u=c.iconStyle,m=c.scope,y=void 0===m?"main":m,S=o(),f=S.state,v=S.dispatch,x=S.classNames,_=S.renderProps,b=S.onSearch;l=n(l,f.typeBy);var j=a(function(e){var r=e.target.value;"sidebar"===y?v({type:"SET_SIDEBAR_SEARCH",payload:r}):(v({type:"SET_SEARCH",payload:r}),null==b||b(r))},[v,b,y]),g="sidebar"===y?f.sidebarSearchQuery:f.searchQuery,k=["usp-search__input",x.searchInput,p].filter(Boolean).join(" "),w=["usp-search__icon",x.searchIcon].filter(Boolean).join(" ");return r("div",e({className:"usp-search",style:d},{children:[t("span",e({className:w,style:u},{children:_.renderSearchIcon?_.renderSearchIcon():t(s,{})})),t("input",{type:"text",className:k,style:h,placeholder:l,value:g,onChange:j})]}))}export{c as SearchInput};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useCallback as t}from"react";import{useUSPContext as a}from"../UserStoryPicker.context.js";import{adaptLabel as o}from"../lib/adaptLabel.js";function s(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[r("circle",{cx:"11",cy:"11",r:"8"}),r("path",{d:"m21 21-4.3-4.3"})]})}function n({placeholder:n="Search...",className:c,style:l,inputStyle:i,iconStyle:p,scope:h="main"}){const{state:d,dispatch:u,classNames:m,renderProps:y,onSearch:S}=a();n=o(n,d.typeBy);const f=t(e=>{const r=e.target.value;"sidebar"===h?u({type:"SET_SIDEBAR_SEARCH",payload:r}):(u({type:"SET_SEARCH",payload:r}),null==S||S(r))},[u,S,h]),x="sidebar"===h?d.sidebarSearchQuery:d.searchQuery,_=["usp-search__input",m.searchInput,c].filter(Boolean).join(" "),j=["usp-search__icon",m.searchIcon].filter(Boolean).join(" ");return e("div",{className:"usp-search",style:l,children:[r("span",{className:j,style:p,children:y.renderSearchIcon?y.renderSearchIcon():r(s,{})}),r("input",{type:"text",className:_,style:i,placeholder:n,value:x,onChange:f})]})}export{n as SearchInput};
2
2
  //# sourceMappingURL=SearchInput.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as n,jsx as o}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as r}from"./UserStoryScopeDropdown.js";import{adaptLabel as i}from"../lib/adaptLabel.js";function s(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("path",{d:"m12 19-7-7 7-7"}),o("path",{d:"M19 12H5"})]}))}function l(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function c(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function a(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("circle",{cx:"12",cy:"12",r:"10"}),o("polyline",{points:"12 6 12 12 16 14"})]}))}function u(u){var d=u.label,p=u.icon,h=u.className,f=u.style,m=u.iconStyle,w=u.labelStyle,k=u.showBackButton,g=u.onBack,v=t(),y=v.classNames,x=v.state;d=i(d,x.typeBy);var L="recent"===x.viewMode,j=["usp-section-heading",y.sectionHeading,h].filter(Boolean).join(" "),B=function(e){if("string"==typeof e)switch(e){case"bookmark":return o(l,{});case"folder":return o(c,{});case"recent":return o(a,{});default:return null}return null!=e?e:null}(p);return n("div",e({className:j,style:f},{children:[n("div",e({className:["usp-section-heading__left",y.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[k&&o("button",e({type:"button",className:"usp-section-heading__back",onClick:g},{children:o(s,{})})),B&&o("span",e({className:["usp-section-heading__icon",y.sectionHeadingLeft].filter(Boolean).join(" "),style:m},{children:B})),o("span",e({style:w},{children:d}))]})),L&&o(r,{})]}))}export{u as SectionHeading};
1
+ import{jsxs as e,jsx as n}from"react/jsx-runtime";import{useUSPContext as o}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as t}from"./UserStoryScopeDropdown.js";import{adaptLabel as r}from"../lib/adaptLabel.js";function i(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("path",{d:"m12 19-7-7 7-7"}),n("path",{d:"M19 12H5"})]})}function s(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})})}function l(){return n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})})}function c(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[n("circle",{cx:"12",cy:"12",r:"10"}),n("polyline",{points:"12 6 12 12 16 14"})]})}function a({label:a,icon:u,className:d,style:p,iconStyle:h,labelStyle:f,showBackButton:w,onBack:k}){const{classNames:m,state:g}=o();a=r(a,g.typeBy);const v="recent"===g.viewMode,y=["usp-section-heading",m.sectionHeading,d].filter(Boolean).join(" "),x=function(e){if("string"==typeof e)switch(e){case"bookmark":return n(s,{});case"folder":return n(l,{});case"recent":return n(c,{});default:return null}return null!=e?e:null}(u);return e("div",{className:y,style:p,children:[e("div",{className:["usp-section-heading__left",m.sectionHeadingLeft].filter(Boolean).join(" "),children:[w&&n("button",{type:"button",className:"usp-section-heading__back",onClick:k,children:n(i,{})}),x&&n("span",{className:["usp-section-heading__icon",m.sectionHeadingLeft].filter(Boolean).join(" "),style:h,children:x}),n("span",{style:f,children:a})]}),v&&n(t,{})]})}export{a as SectionHeading};
2
2
  //# sourceMappingURL=SectionHeading.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useCallback as r}from"react";import{useUSPContext as t}from"../UserStoryPicker.context.js";function s(s){var i=s.label,l=void 0===i?"Show more":i,n=s.className,a=s.style,c=t(),m=c.state,u=c.dispatch,f=c.classNames,h=c.hasMoreStories,d=c.hasMoreProjects,p=c.loadMoreStories,j=c.loadMoreProjects,S=c.isLoadingStories,M=c.isLoadingProjects,b=c.visibleStories,v=c.visibleProjects,P=c.filteredStories,g=c.filteredProjects,w=c.onShowMore,y="projects"===m.viewMode,x=y?M:S,N=y?d:h,k=y?v:b,L=(y?g:P).length>k.length,O=L||N,B=r(function(){u({type:"SHOW_MORE"}),L||(y?j():p()),null==w||w()},[u,L,y,j,p,w]);if(0===k.length)return null;if(x||!O)return null;var C=["usp-show-more",f.showMore,n].filter(Boolean).join(" ");return o("button",e({type:"button",className:C,style:a,onClick:B},{children:l}))}export{s as ShowMore};
1
+ import{jsx as e}from"react/jsx-runtime";import{useCallback as o}from"react";import{useUSPContext as t}from"../UserStoryPicker.context.js";function r({label:r="Show more",className:s,style:i}){const{state:l,dispatch:n,classNames:c,hasMoreStories:a,hasMoreProjects:m,loadMoreStories:h,loadMoreProjects:u,isLoadingStories:d,isLoadingProjects:f,visibleStories:j,visibleProjects:p,filteredStories:S,filteredProjects:M,onShowMore:P}=t(),b="projects"===l.viewMode,g=b?f:d,w=b?m:a,y=b?p:j,v=(b?M:S).length>y.length,x=v||w,N=o(()=>{n({type:"SHOW_MORE"}),v||(b?u():h()),null==P||P()},[n,v,b,u,h,P]);if(0===y.length)return null;if(g||!x)return null;const k=["usp-show-more",c.showMore,s].filter(Boolean).join(" ");return e("button",{type:"button",className:k,style:i,onClick:N,children:r})}export{r as ShowMore};
2
2
  //# sourceMappingURL=ShowMore.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as i}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";function n(n){var o=n.className,r=n.style,s=n.children,a=n.visualLeftWidth,l=n.isLeftPanelClosing,c=n.isResizing,d=n.isLeftPanelCollapsed,f=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!c&&"transition-[width,opacity] duration-150 ease-in-out",(d||l)&&"opacity-0 pointer-events-none",t().classNames.sidebar,o].filter(Boolean).join(" ");return i("nav",e({className:f,style:e(e({},r),{width:"".concat(a,"%"),flexShrink:0,willChange:"width",minWidth:d?0:"10px"})},{children:s}))}export{n as Sidebar};
1
+ import{jsx as e}from"react/jsx-runtime";import{useUSPContext as i}from"../UserStoryPicker.context.js";function t({className:t,style:n,children:o,visualLeftWidth:s,isLeftPanelClosing:r,isResizing:a,isLeftPanelCollapsed:l}){const{classNames:c}=i(),d=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!a&&"transition-[width,opacity] duration-150 ease-in-out",(l||r)&&"opacity-0 pointer-events-none",c.sidebar,t].filter(Boolean).join(" ");return e("nav",{className:d,style:{...n,width:`${s}%`,flexShrink:0,willChange:"width",minWidth:l?0:"10px"},children:o})}export{t as Sidebar};
2
2
  //# sourceMappingURL=Sidebar.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as s,jsxs as t}from"react/jsx-runtime";import{useCallback as r}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";function i(){return s("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:s("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}function a(a){var n=a.className,l=a.style,c=a.itemStyle,d=o(),p=d.favoriteStories,u=d.hasMoreFavoriteStories,m=d.loadMoreFavoriteStories,h=d.isLoadingFavoriteStories,v=d.state,b=d.dispatch,y=d.classNames,f=d.onStorySelect,k=p,N=r(function(e){b({type:"SELECT_STORY",payload:e.user_story_id}),null==f||f(e)},[b,f]),j=["usp-sidebar-project-list",n].filter(Boolean).join(" ");return h&&0===k.length?s("div",e({className:j,style:l},{children:["55%","70%","45%"].map(function(r,o){return t("div",e({className:"usp-sidebar-skeleton-row"},{children:[s("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:r}})]}),o)})})):h||0!==k.length?t("div",e({className:j,style:l},{children:[k.map(function(r){var o=v.selectedStoryId===r.user_story_id,a=["usp-sidebar-project",o&&"usp-sidebar-project--active",o&&y.sidebarProjectActive,y.sidebarProject].filter(Boolean).join(" ");return t("button",e({type:"button",className:a,style:c,onClick:function(){return N(r)}},{children:[s("span",e({className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart"},{children:s(i,{})})),t("span",e({className:"usp-sidebar-project__name"},{children:[r.storyId,": ",r.title]}))]}),"".concat(r.projectId,":").concat(r.storyId))}),h&&t("div",e({className:"usp-sidebar-skeleton-row"},{children:[s("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),s("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:"60%"}})]})),!h&&u&&s("button",e({type:"button",className:["usp-show-more",y.showMore].filter(Boolean).join(" "),onClick:m},{children:"Show more"}))]})):s("div",e({className:"usp-sidebar-favorites__empty"},{children:"No favorites yet"}))}export{a as SidebarFavoritesList};
1
+ import{jsx as e,jsxs as s}from"react/jsx-runtime";import{useCallback as t}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";function r(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})})}function i({className:i,style:a,itemStyle:l}){const{favoriteStories:n,hasMoreFavoriteStories:c,loadMoreFavoriteStories:d,isLoadingFavoriteStories:p,state:u,dispatch:m,classNames:h,onStorySelect:v}=o(),y=n,b=t(e=>{m({type:"SELECT_STORY",payload:e.user_story_id}),null==v||v(e)},[m,v]),k=["usp-sidebar-project-list",i].filter(Boolean).join(" ");return p&&0===y.length?e("div",{className:k,style:a,children:["55%","70%","45%"].map((t,o)=>s("div",{className:"usp-sidebar-skeleton-row",children:[e("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),e("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:t}})]},o))}):p||0!==y.length?s("div",{className:k,style:a,children:[y.map(t=>{const o=u.selectedStoryId===t.user_story_id,i=["usp-sidebar-project",o&&"usp-sidebar-project--active",o&&h.sidebarProjectActive,h.sidebarProject].filter(Boolean).join(" ");return s("button",{type:"button",className:i,style:l,onClick:()=>b(t),children:[e("span",{className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart",children:e(r,{})}),s("span",{className:"usp-sidebar-project__name",children:[t.storyId,": ",t.title]})]},`${t.projectId}:${t.storyId}`)}),p&&s("div",{className:"usp-sidebar-skeleton-row",children:[e("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),e("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:"60%"}})]}),!p&&c&&e("button",{type:"button",className:["usp-show-more",h.showMore].filter(Boolean).join(" "),onClick:d,children:"Show more"})]}):e("div",{className:"usp-sidebar-favorites__empty",children:"No favorites yet"})}export{i as SidebarFavoritesList};
2
2
  //# sourceMappingURL=SidebarFavoritesList.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,jsxs as t}from"react/jsx-runtime";import{useMemo as o,useCallback as n}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";var s=["55%","70%","45%","65%","50%"];function a(o){var n=o.width;return t("div",e({className:"usp-sidebar-skeleton-row"},{children:[r("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),r("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:n}})]}))}function c(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function d(d){var l=d.className,u=d.style,p=d.itemStyle,m=i(),h=m.sidebarProjects,b=m.hasMoreSidebarProjects,f=m.loadMoreSidebarProjects,j=m.isLoadingSidebarProjects,v=m.state,w=m.dispatch,k=m.classNames,y=m.renderProps,P=m.onProjectSelect,S=o(function(){if(!v.sidebarSearchQuery)return h;var e=v.sidebarSearchQuery.toLowerCase();return h.filter(function(r){return r.name.toLowerCase().includes(e)})},[h,v.sidebarSearchQuery]),N=n(function(e){w({type:"SELECT_PROJECT",payload:e.id}),null==P||P(e)},[w,P]),C=["usp-sidebar-project-list",l].filter(Boolean).join(" ");return j&&0===S.length?r("div",e({className:C,style:u},{children:s.map(function(e,t){return r(a,{width:e},t)})})):t("div",e({className:C,style:u},{children:[S.map(function(o){var n=v.selectedProjectId===o.id;if(y.renderSidebarProject)return r("div",e({onClick:function(){return N(o)}},{children:y.renderSidebarProject(o,n)}),o.id);var i=["usp-sidebar-project",n&&"usp-sidebar-project--active",n&&k.sidebarProjectActive,k.sidebarProject].filter(Boolean).join(" ");return t("button",e({type:"button",className:i,style:p,onClick:function(){return N(o)}},{children:[r("span",e({className:"usp-sidebar-project__icon"},{children:y.renderFolderIcon?y.renderFolderIcon():r(c,{})})),r("span",e({className:"usp-sidebar-project__name"},{children:o.name}))]}),o.id)}),j&&s.map(function(e,t){return r(a,{width:e},"skel-".concat(t))}),!j&&b&&r("button",e({type:"button",className:["usp-show-more",k.showMore].filter(Boolean).join(" "),onClick:f},{children:"Show more"}))]}))}export{d as SidebarProjectList};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useMemo as s,useCallback as t}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";const i=["55%","70%","45%","65%","50%"];function n({width:s}){return r("div",{className:"usp-sidebar-skeleton-row",children:[e("div",{className:"usp-skeleton usp-skeleton--sidebar-icon"}),e("div",{className:"usp-skeleton usp-skeleton--sidebar-name",style:{width:s}})]})}function a(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})})}function c({className:c,style:d,itemStyle:l}){const{sidebarProjects:p,hasMoreSidebarProjects:u,loadMoreSidebarProjects:m,isLoadingSidebarProjects:h,state:b,dispatch:j,classNames:w,renderProps:k,onProjectSelect:y}=o(),f=s(()=>{if(!b.sidebarSearchQuery)return p;const e=b.sidebarSearchQuery.toLowerCase();return p.filter(r=>r.name.toLowerCase().includes(e))},[p,b.sidebarSearchQuery]),P=t(e=>{j({type:"SELECT_PROJECT",payload:e.id}),null==y||y(e)},[j,y]),S=["usp-sidebar-project-list",c].filter(Boolean).join(" ");return h&&0===f.length?e("div",{className:S,style:d,children:i.map((r,s)=>e(n,{width:r},s))}):r("div",{className:S,style:d,children:[f.map(s=>{const t=b.selectedProjectId===s.id;if(k.renderSidebarProject)return e("div",{onClick:()=>P(s),children:k.renderSidebarProject(s,t)},s.id);const o=["usp-sidebar-project",t&&"usp-sidebar-project--active",t&&w.sidebarProjectActive,w.sidebarProject].filter(Boolean).join(" ");return r("button",{type:"button",className:o,style:l,onClick:()=>P(s),children:[e("span",{className:"usp-sidebar-project__icon",children:k.renderFolderIcon?k.renderFolderIcon():e(a,{})}),e("span",{className:"usp-sidebar-project__name",children:s.name})]},s.id)}),h&&i.map((r,s)=>e(n,{width:r},`skel-${s}`)),!h&&u&&e("button",{type:"button",className:["usp-show-more",w.showMore].filter(Boolean).join(" "),onClick:m,children:"Show more"})]})}export{c as SidebarProjectList};
2
2
  //# sourceMappingURL=SidebarProjectList.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o,jsxs as t}from"react/jsx-runtime";import n,{useCallback as i}from"react";import{useUSPContext as r}from"../UserStoryPicker.context.js";function s(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"m6 9 6 6 6-6"})}))}function l(){return t("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[o("circle",{cx:"12",cy:"12",r:"10"}),o("polyline",{points:"12 6 12 12 16 14"})]}))}function a(){return o("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:o("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function c(c){var d=c.label,p=c.sectionId,u=c.collapsible,v=void 0!==u&&u,h=c.defaultCollapsed,_=void 0!==h&&h,y=c.icon,f=c.className,S=c.style,w=c.headerStyle,m=c.contentStyle,E=c.children,C=c.clearProject,I=c.viewMode,T=c.navItem,b=c.sectionsToCollapse,L=r(),N=L.state,k=L.dispatch,j=L.classNames,O=L.renderProps,g=L.onViewChange,x=null!=p?p:d;n.useEffect(function(){_&&!N.collapsedSections.has("__init_".concat(x))&&(k({type:"TOGGLE_SECTION",payload:x}),k({type:"TOGGLE_SECTION",payload:"__init_".concat(x)}))},[]);var G=i(function(){return I?(null==b||b.forEach(function(e){N.collapsedSections.has(e)||k({type:"TOGGLE_SECTION",payload:e})}),void("favorites"===I?(k({type:"SHOW_FAVORITES_IN_SPLIT"}),null==g||g("favorites")):(k({type:"SET_VIEW",payload:I}),null==g||g(I)))):C?(null==b||b.forEach(function(e){N.collapsedSections.has(e)||k({type:"TOGGLE_SECTION",payload:e})}),k({type:"SHOW_RECENT_IN_SPLIT"}),void("project-detail"!==N.viewMode&&(k({type:"SET_VIEW",payload:"project-detail"}),null==g||g("project-detail")))):void(v&&k({type:"TOGGLE_SECTION",payload:x}))},[I,C,b,v,k,x,N.collapsedSections,N.viewMode,g]),W=N.collapsedSections.has(x),M=I&&N.viewMode===I||C&&"project-detail"===N.viewMode&&!N.selectedProjectId,P=["usp-sidebar-section",(C||T||I)&&"usp-sidebar-section--nav",M&&"usp-sidebar-section--active",W&&"usp-sidebar-section--collapsed",W&&j.sidebarSectionCollapsed,j.sidebarSection,f].filter(Boolean).join(" "),B=["usp-sidebar-section__header",j.sidebarSectionHeader].filter(Boolean).join(" "),V=null!=y?y:d.toLowerCase().includes("recent")?o(l,{}):o(a,{});return t("div",e({className:P,style:S},{children:[t("button",e({type:"button",className:B,style:w,onClick:G},{children:[o("span",e({className:"usp-sidebar-section__icon"},{children:V})),d,v&&o("span",e({className:"usp-sidebar-section__chevron"},{children:O.renderChevronIcon?O.renderChevronIcon():o(s,{})}))]})),!W&&E&&o("div",e({className:"usp-sidebar-section__content",style:m},{children:E}))]}))}export{c as SidebarSection};
1
+ import{jsx as e,jsxs as o}from"react/jsx-runtime";import t,{useCallback as n}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";function r(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"m6 9 6 6 6-6"})})}function i(){return o("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e("circle",{cx:"12",cy:"12",r:"10"}),e("polyline",{points:"12 6 12 12 16 14"})]})}function l(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})})}function a({label:a,sectionId:c,collapsible:d=!1,defaultCollapsed:p=!1,icon:u,className:h,style:v,headerStyle:_,contentStyle:y,children:S,clearProject:w,viewMode:E,navItem:f,sectionsToCollapse:m}){const{state:C,dispatch:I,classNames:T,renderProps:b,onViewChange:L}=s(),N=null!=c?c:a;t.useEffect(()=>{p&&!C.collapsedSections.has(`__init_${N}`)&&(I({type:"TOGGLE_SECTION",payload:N}),I({type:"TOGGLE_SECTION",payload:`__init_${N}`}))},[]);const k=n(()=>E?(null==m||m.forEach(e=>{C.collapsedSections.has(e)||I({type:"TOGGLE_SECTION",payload:e})}),void("favorites"===E?(I({type:"SHOW_FAVORITES_IN_SPLIT"}),null==L||L("favorites")):(I({type:"SET_VIEW",payload:E}),null==L||L(E)))):w?(null==m||m.forEach(e=>{C.collapsedSections.has(e)||I({type:"TOGGLE_SECTION",payload:e})}),I({type:"SHOW_RECENT_IN_SPLIT"}),void("project-detail"!==C.viewMode&&(I({type:"SET_VIEW",payload:"project-detail"}),null==L||L("project-detail")))):void(d&&I({type:"TOGGLE_SECTION",payload:N})),[E,w,m,d,I,N,C.collapsedSections,C.viewMode,L]),j=C.collapsedSections.has(N),O=E&&C.viewMode===E||w&&"project-detail"===C.viewMode&&!C.selectedProjectId,g=["usp-sidebar-section",(w||f||E)&&"usp-sidebar-section--nav",O&&"usp-sidebar-section--active",j&&"usp-sidebar-section--collapsed",j&&T.sidebarSectionCollapsed,T.sidebarSection,h].filter(Boolean).join(" "),x=["usp-sidebar-section__header",T.sidebarSectionHeader].filter(Boolean).join(" "),G=null!=u?u:a.toLowerCase().includes("recent")?e(i,{}):e(l,{});return o("div",{className:g,style:v,children:[o("button",{type:"button",className:x,style:_,onClick:k,children:[e("span",{className:"usp-sidebar-section__icon",children:G}),a,d&&e("span",{className:"usp-sidebar-section__chevron",children:b.renderChevronIcon?b.renderChevronIcon():e(r,{})})]}),!j&&S&&e("div",{className:"usp-sidebar-section__content",style:y,children:S})]})}export{a as SidebarSection};
2
2
  //# sourceMappingURL=SidebarSection.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,Fragment as t,jsxs as l}from"react/jsx-runtime";import{useCallback as o}from"react";import{useUSPContext as a}from"../UserStoryPicker.context.js";var s=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"a-z",label:"A-Z"},{value:"z-a",label:"Z-A"}];function n(n){var i=n.options,c=void 0===i?s:i,u=n.className,p=n.style,d=n.labelStyle,m=n.selectStyle,v=a(),y=v.state,f=v.dispatch,b=v.classNames,S=v.renderProps,h=v.onSortChange,N=o(function(e){f({type:"SET_SORT",payload:e}),null==h||h(e)},[f,h]);if(S.renderSortDropdown)return r(t,{children:S.renderSortDropdown(y.sortBy,N,c)});var w=["usp-sort",b.sortDropdown,u].filter(Boolean).join(" ");return l("div",e({className:w,style:p},{children:[r("span",e({className:"usp-sort__label",style:d},{children:"Sort by:"})),r("select",e({className:"usp-sort__select",style:m,value:y.sortBy,onChange:function(e){return N(e.target.value)}},{children:c.map(function(t){return r("option",e({value:t.value},{children:t.label}),t.value)})}))]}))}export{n as SortDropdown};
1
+ import{jsx as e,Fragment as t,jsxs as l}from"react/jsx-runtime";import{useCallback as r}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";const o=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"a-z",label:"A-Z"},{value:"z-a",label:"Z-A"}];function a({options:a=o,className:n,style:c,labelStyle:i,selectStyle:p}){const{state:u,dispatch:d,classNames:m,renderProps:y,onSortChange:v}=s(),S=r(e=>{d({type:"SET_SORT",payload:e}),null==v||v(e)},[d,v]);if(y.renderSortDropdown)return e(t,{children:y.renderSortDropdown(u.sortBy,S,a)});const b=["usp-sort",m.sortDropdown,n].filter(Boolean).join(" ");return l("div",{className:b,style:c,children:[e("span",{className:"usp-sort__label",style:i,children:"Sort by:"}),e("select",{className:"usp-sort__select",style:p,value:u.sortBy,onChange:e=>S(e.target.value),children:a.map(t=>e("option",{value:t.value,children:t.label},t.value))})]})}export{a as SortDropdown};
2
2
  //# sourceMappingURL=SortDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t}from"react/jsx-runtime";import{useState as r,useRef as o,useCallback as n}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";function c(c){var u=c.className,i=c.style,m=c.children,a=s().classNames,l=r(!1),d=l[0];l[1];var p=r(260),v=p[0],y=p[1],f=o(!1),b=o(0),h=o(260);n(function(e){f.current=!0,b.current=e.clientX,h.current=v,document.body.style.cursor="col-resize",document.body.style.userSelect="none";var t=function(e){if(f.current){var t=e.clientX-b.current,r=Math.min(480,Math.max(160,h.current+t));y(r)}},r=function(){f.current=!1,document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)},[v]);var x=["usp-split-layout",d&&"usp-split-layout--sidebar-collapsed",a.splitLayout,u].filter(Boolean).join(" ");return t("div",e({className:x,style:e(e({},i),{"--usp-sidebar-width":"".concat(v,"px")})},{children:m}))}export{c as SplitLayout};
1
+ import{jsx as e}from"react/jsx-runtime";import{useState as t,useRef as r,useCallback as o}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";function s({className:s,style:c,children:u}){const{classNames:m}=n(),[i,l]=t(!1),[d,a]=t(260),p=r(!1),y=r(0),v=r(260);o(e=>{p.current=!0,y.current=e.clientX,v.current=d,document.body.style.cursor="col-resize",document.body.style.userSelect="none";const t=e=>{if(!p.current)return;const t=e.clientX-y.current,r=Math.min(480,Math.max(160,v.current+t));a(r)},r=()=>{p.current=!1,document.body.style.cursor="",document.body.style.userSelect="",document.removeEventListener("mousemove",t),document.removeEventListener("mouseup",r)};document.addEventListener("mousemove",t),document.addEventListener("mouseup",r)},[d]);const b=["usp-split-layout",i&&"usp-split-layout--sidebar-collapsed",m.splitLayout,s].filter(Boolean).join(" ");return e("div",{className:b,style:{...c,"--usp-sidebar-width":`${d}px`},children:u})}export{s as SplitLayout};
2
2
  //# sourceMappingURL=SplitLayout.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";function e(e){var s=e.className,i=e.style,l=e.children,a=["usp-toolbar",t().classNames.toolbar,s].filter(Boolean).join(" ");return o("div",r({className:a,style:i},{children:l}))}export{e as Toolbar};
1
+ import{jsx as r}from"react/jsx-runtime";import{useUSPContext as e}from"../UserStoryPicker.context.js";function o({className:o,style:t,children:s}){const{classNames:l}=e(),a=["usp-toolbar",l.toolbar,o].filter(Boolean).join(" ");return r("div",{className:a,style:t,children:s})}export{o as Toolbar};
2
2
  //# sourceMappingURL=Toolbar.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as r,jsx as n}from"react/jsx-runtime";import{useState as t,useRef as o,useCallback as l,useEffect as s}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";function u(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n("path",{d:"m18 15-6-6-6 6"})}))}function a(){return n("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:n("path",{d:"m6 9 6 6 6-6"})}))}var c=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"},{value:"Widget Maker",label:"Widget Maker"}];function p(p){var d,m,y=p.options,f=p.className,v=p.style;p.labelStyle;var h=p.selectStyle,g=i(),k=g.state,w=g.dispatch,b=g.classNames,_=g.renderProps,T=g.onTypeChange,B=g.featureFlagWidgetMaker,N=null!=y?y:B?c.filter(function(e){return"Widget Maker"!==e.value}):c,j=t(!1),x=j[0],C=j[1],E=o(null),L=l(function(e){w({type:"SET_TYPE",payload:e}),null==T||T(e),C(!1)},[w,T]);if(s(function(){function e(e){E.current&&!E.current.contains(e.target)&&C(!1)}return x&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[x]),_.renderTypeDropdown)return _.renderTypeDropdown(k.typeBy,L,N);var S=null!==(m=null===(d=N.find(function(e){return e.value===k.typeBy}))||void 0===d?void 0:d.label)&&void 0!==m?m:N[0].label,W=["usp-user-story-scope",b.scopeDropdown,f].filter(Boolean).join(" ");return r("div",e({ref:E,className:[W,x&&"open"].filter(Boolean).join(" "),style:v},{children:[r("button",e({type:"button",className:"usp-user-story-scope__trigger",style:h,onClick:function(){return C(function(e){return!e})}},{children:[n("span",e({className:"usp-user-story-scope__trigger-label"},{children:S})),n("span",e({className:"usp-user-story-scope__chevron"},{children:n(x?u:a,{})}))," "]})),x&&n("ul",e({className:"usp-user-story-scope__menu"},{children:N.map(function(r){return n("li",e({className:["usp-user-story-scope__option",k.typeBy===r.value&&"active"].filter(Boolean).join(" "),onClick:function(){return L(r.value)}},{children:r.label}),r.value)})}))]}))}export{p as TypeDropdown};
1
+ import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as o,useRef as t,useCallback as n,useEffect as l}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";function a(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r("path",{d:"m18 15-6-6-6 6"})})}function i(){return r("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:r("path",{d:"m6 9 6 6 6-6"})})}const c=[{value:"All Types",label:"All Types"},{value:"ECG Technical User Story",label:"ECG Technical User Story"},{value:"Widget Maker",label:"Widget Maker"}];function u({options:u,className:p,style:d,labelStyle:y,selectStyle:m}){var v,h;const{state:f,dispatch:g,classNames:k,renderProps:w,onTypeChange:_,featureFlagWidgetMaker:b}=s(),T=null!=u?u:b?c.filter(e=>"Widget Maker"!==e.value):c,[B,N]=o(!1),j=t(null),x=n(e=>{g({type:"SET_TYPE",payload:e}),null==_||_(e),N(!1)},[g,_]);if(l(()=>{function e(e){j.current&&!j.current.contains(e.target)&&N(!1)}return B&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[B]),w.renderTypeDropdown)return w.renderTypeDropdown(f.typeBy,x,T);const C=null!==(h=null===(v=T.find(e=>e.value===f.typeBy))||void 0===v?void 0:v.label)&&void 0!==h?h:T[0].label,E=["usp-user-story-scope",k.scopeDropdown,p].filter(Boolean).join(" ");return e("div",{ref:j,className:[E,B&&"open"].filter(Boolean).join(" "),style:d,children:[e("button",{type:"button",className:"usp-user-story-scope__trigger",style:m,onClick:()=>N(e=>!e),children:[r("span",{className:"usp-user-story-scope__trigger-label",children:C}),r("span",{className:"usp-user-story-scope__chevron",children:r(B?a:i,{})})," "]}),B&&r("ul",{className:"usp-user-story-scope__menu",children:T.map(e=>r("li",{className:["usp-user-story-scope__option",f.typeBy===e.value&&"active"].filter(Boolean).join(" "),onClick:()=>x(e.value),children:e.label},e.value))})]})}export{u as TypeDropdown};
2
2
  //# sourceMappingURL=TypeDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as e,__generator as t,__assign as n}from"tslib";import{jsx as r,Fragment as o,jsxs as i}from"react/jsx-runtime";import{useState as a,useCallback as s,useEffect as l}from"react";import{useUSPContext as c}from"../UserStoryPicker.context.js";import{Badge as d}from"./Badge.js";import{CardProceedButton as u}from"./CardProceedButton.js";import p from"../lib/CustomTooltip.js";import m from"../../RequirementAI/components/ai-reasoning/AiReasoningCitation.js";import f from"../../RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js";import{extractAllAiReasoningIds as v,stripAiReasoningAnchors as h}from"../../RequirementAI/utils/helpers.js";function y(e){var t=e.filled;return r("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:t?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})}))}function g(){return r("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})}))}function _(){return r("svg",n({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})}))}function S(e){try{var t=e.split(" "),n=t[0],r=t[1],o=void 0===r?"00:00:00":r,i=n.split("/"),a=i[0],s=i[1],l=i[2];if(!a||!s||!l)return e;var c=Number(l)+2e3,d="".concat(c,"-").concat(s,"-").concat(a,"T").concat(o),u=new Date(d);return isNaN(u.getTime())?e:u.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(t){return e}}function w(w){var k,N,C,j=this,b=w.story,A=w.className,B=w.style,x=w.headerStyle,I=w.titleStyle,R=w.descriptionStyle,L=w.metaStyle,M=c(),U=M.state,P=M.dispatch,T=M.classNames,F=M.renderProps,D=M.onStorySelect,G=M.onFavoriteToggle,Q=M.adapter,W=M.disableTooltip,q=M.tooltipClassName,E=M.mediaCacheHooks,V=M.showCitations,H=M.featureFlagWidgetMaker,O=U.selectedStoryId===b.user_story_id,z=a(!1),Z=z[0],Y=z[1],J=a(null!==(k=b.isFavorite)&&void 0!==k&&k),K=J[0],X=J[1],$=a(!1),ee=$[0],te=$[1],ne=a(!1),re=ne[0],oe=ne[1],ie=a(null),ae=ie[0],se=ie[1],le=Q.fetchFinalUserStory,ce=s(function(n){return e(j,void 0,void 0,function(){var e,r,o,i;return t(this,function(t){switch(t.label){case 0:if(!le||!n)return[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,le(n)];case 2:return e=t.sent(),r=null!==(i=null===(o=null==e?void 0:e.artifactData)||void 0===o?void 0:o.citationsSnapshot)&&void 0!==i?i:null,se(r),[3,4];case 3:return t.sent(),se(null),[3,4];case 4:return[2]}})})},[le]);l(function(){V&&b.artifact_id&&ce(b.artifact_id)},[b.artifact_id,ce]);var de=s(function(e){e.stopPropagation(),oe(function(e){return!e})},[]),ue=re?b.description:(null!==(C=null===(N=b.description)||void 0===N?void 0:N.length)&&void 0!==C?C:0)>100?b.description.slice(0,100):b.description,pe=b.description.length>100;l(function(){var e;X(null!==(e=b.isFavorite)&&void 0!==e&&e)},[b.isFavorite]),l(function(){if(ee){var e=window.setTimeout(function(){te(!1)},600);return function(){return window.clearTimeout(e)}}},[ee]);var me=s(function(){P({type:"SELECT_STORY",payload:O?null:b.user_story_id}),O||null==D||D(b)},[P,O,b,D]),fe=s(function(n){return e(j,void 0,void 0,function(){var e,r;return t(this,function(t){switch(t.label){case 0:return n.stopPropagation(),X(e=!K),e&&te(!0),null==G||G(b,e),r={user_story_title_id:b.storyId,user_story_id:b.user_story_id,is_favorite:e},[4,Q.markFavorite(r)];case 1:return t.sent()||(X(!e),e&&te(!1),null==G||G(b,!e)),[2]}})})},[K,b,G,Q]),ve=["usp-card usp-card--story",Z&&"usp-card--hovered",ee&&"usp-card--favorite-bounce",T.card,A].filter(Boolean).join(" "),he=v(b.description||"").map(function(e){var t;return null===(t=null==b?void 0:b.ai_reasonings_snaphost)||void 0===t?void 0:t.find(function(t){return t.id.toString()===e})}).filter(function(e){return void 0!==e});return F.renderStoryCard?r(o,{children:F.renderStoryCard(b,{isSelected:O})}):i("div",n({className:ve,style:B,onClick:me,onMouseEnter:function(){return Y(!0)},onMouseLeave:function(){return Y(!1)},role:"option","aria-selected":O},{children:[i("div",n({className:["usp-card__header",T.cardHeader].filter(Boolean).join(" "),style:x},{children:[r("span",n({className:"usp-card__icon"},{children:F.renderBookmarkIcon?F.renderBookmarkIcon():r(g,{})})),""!==b.storyId&&i("span",n({className:["usp-card__id",T.cardId].filter(Boolean).join(" ")},{children:[b.storyId,":"]})),r(p,n({content:b.title,placement:"top",disabled:W,contentClassName:q},{children:r("span",n({className:["usp-card__title",T.cardTitle].filter(Boolean).join(" "),style:I},{children:b.title}))})),b.isNew&&r(d,{type:"new"}),!H&&"Widget Maker"===b.user_stories_type&&r("span",n({className:"usp-card__mode-chip"},{children:"Widget"})),r("div",n({className:"usp-card__actions"},{children:r(p,n({content:K?"Remove from Shortlist":"Add to Shortlist",placement:"top",disabled:W,contentClassName:q},{children:i("button",n({type:"button",className:["usp-card__heart",K&&"usp-card__heart--active",ee&&"usp-card__heart--burst"].filter(Boolean).join(" "),onClick:fe,"aria-label":K?"Remove from Shortlist":"Add to Shortlist","aria-pressed":K},{children:[r(y,{filled:K}),i("span",n({className:"usp-card__heart-burst","aria-hidden":"true"},{children:[r("span",{}),r("span",{}),r("span",{}),r("span",{}),r("span",{}),r("span",{}),r("span",{}),r("span",{})]}))]}))}))}))]})),i("div",n({className:["usp-card__project-name",T.cardProjectName].filter(Boolean).join(" ")},{children:[F.renderFolderIcon?F.renderFolderIcon():r(_,{}),b.projectName]})),r("div",n({className:["usp-card-userstory-description",!b.description&&"usp-card__description--empty",T.cardDescription].filter(Boolean).join(" "),style:R},{children:b.description?i(o,{children:[r("span",{dangerouslySetInnerHTML:{__html:h(ue)}}),pe&&r("button",n({onClick:de,className:["usp-card-moreButton",T.cardViewMore].filter(Boolean).join(" "),"aria-label":re?"Show less":"Show more"},{children:re?"less":"more"})),V&&(null==he?void 0:he.length)>0&&r("span",n({className:"mt-1 inline flex-row flex-wrap gap-1 relative w-full",onClick:function(e){return e.stopPropagation()},"data-citation":"true"},{children:null==he?void 0:he.map(function(e){var t,o,i,a,s,l;return r(f,n({searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:null!=ae?ae:{},apiCachingConfig:{queryClient:function(){var e;return null!==(e=null==E?void 0:E.queryClient)&&void 0!==e?e:function(){}},useGetSignedUrlQuery:null!==(t=null==E?void 0:E.useGetSignedUrlQuery)&&void 0!==t?t:function(){},useGetSignedUrlMutation:null!==(o=null==E?void 0:E.useGetSignedUrlMutation)&&void 0!==o?o:function(){},useExtractAudioPeaksMutation:null!==(i=null==E?void 0:E.useExtractAudioPeaksMutation)&&void 0!==i?i:function(){},useExtractAudioPeaksQuery:null!==(a=null==E?void 0:E.useExtractAudioPeaksQuery)&&void 0!==a?a:function(){},useGetVideoSignedUrlMutation:null!==(s=null==E?void 0:E.useGetVideoSignedUrlMutation)&&void 0!==s?s:function(){},useGetVideoSignedUrlQuery:null!==(l=null==E?void 0:E.useGetVideoSignedUrlQuery)&&void 0!==l?l:function(){}},setUserStory:function(){},setAiReasoning:function(){},setCitations:function(){},aiReasoningAccordionOpenStates:{isBottomComponentCollapsed:!0,gapAlwaysOpen:!1,gapDefaultOpen:!1,isBottomComponentDefaultOpen:!0,reasoningAlwaysOpen:!0}},{children:r(m,{aiReason:e,isSourceHasHighlight:!1,customStyles:{aiReasoningPill:{background:"transparent",fontSize:"13px"}}})}))})}))]}):r("span",n({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),r("div",n({className:"usp-card__meta",style:L},{children:i("span",n({className:["usp-card__date",T.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",S(b.lastUpdated)]}))})),r(u,{story:b})]}))}export{w as UserStoryCard};
1
+ import{jsx as e,Fragment as t,jsxs as r}from"react/jsx-runtime";import{useState as o,useCallback as i,useEffect as n}from"react";import{useUSPContext as a}from"../UserStoryPicker.context.js";import{Badge as s}from"./Badge.js";import{CardProceedButton as l}from"./CardProceedButton.js";import d from"../lib/CustomTooltip.js";import c from"../../RequirementAI/components/ai-reasoning/AiReasoningCitation.js";import u from"../../RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js";import{extractAllAiReasoningIds as p,stripAiReasoningAnchors as m}from"../../RequirementAI/utils/helpers.js";function h({filled:t}){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:t?"currentColor":"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"})})}function v(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z"})})}function y(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z"})})}function g(e){try{const[t,r="00:00:00"]=e.split(" "),[o,i,n]=t.split("/");if(!o||!i||!n)return e;const a=`${Number(n)+2e3}-${i}-${o}T${r}`,s=new Date(a);return isNaN(s.getTime())?e:s.toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch(t){return e}}function _({story:_,className:f,style:S,headerStyle:w,titleStyle:k,descriptionStyle:N,metaStyle:C}){var j,A,B;const{state:x,dispatch:I,classNames:b,renderProps:R,onStorySelect:L,onFavoriteToggle:M,adapter:U,disableTooltip:P,tooltipClassName:T,mediaCacheHooks:F,showCitations:D,featureFlagWidgetMaker:G}=a(),Q=x.selectedStoryId===_.user_story_id,[W,q]=o(!1),[E,V]=o(null!==(j=_.isFavorite)&&void 0!==j&&j),[H,O]=o(!1),[$,z]=o(!1),[Z,Y]=o(null),J=U.fetchFinalUserStory,K=i(async e=>{var t,r;if(J&&e)try{const o=await J(e),i=null!==(r=null===(t=null==o?void 0:o.artifactData)||void 0===t?void 0:t.citationsSnapshot)&&void 0!==r?r:null;Y(i)}catch(e){Y(null)}},[J]);n(()=>{D&&_.artifact_id&&K(_.artifact_id)},[_.artifact_id,K]);const X=i(e=>{e.stopPropagation(),z(e=>!e)},[]),ee=$?_.description:(null!==(B=null===(A=_.description)||void 0===A?void 0:A.length)&&void 0!==B?B:0)>100?_.description.slice(0,100):_.description,te=_.description.length>100;n(()=>{var e;V(null!==(e=_.isFavorite)&&void 0!==e&&e)},[_.isFavorite]),n(()=>{if(!H)return;const e=window.setTimeout(()=>{O(!1)},600);return()=>window.clearTimeout(e)},[H]);const re=i(()=>{I({type:"SELECT_STORY",payload:Q?null:_.user_story_id}),Q||null==L||L(_)},[I,Q,_,L]),oe=i(async e=>{e.stopPropagation();const t=!E;V(t),t&&O(!0),null==M||M(_,t);const r={user_story_title_id:_.storyId,user_story_id:_.user_story_id,is_favorite:t};await U.markFavorite(r)||(V(!t),t&&O(!1),null==M||M(_,!t))},[E,_,M,U]),ie=["usp-card usp-card--story",W&&"usp-card--hovered",H&&"usp-card--favorite-bounce",b.card,f].filter(Boolean).join(" "),ne=p(_.description||"").map(e=>{var t;return null===(t=null==_?void 0:_.ai_reasonings_snaphost)||void 0===t?void 0:t.find(t=>t.id.toString()===e)}).filter(e=>void 0!==e);return R.renderStoryCard?e(t,{children:R.renderStoryCard(_,{isSelected:Q})}):r("div",{className:ie,style:S,onClick:re,onMouseEnter:()=>q(!0),onMouseLeave:()=>q(!1),role:"option","aria-selected":Q,children:[r("div",{className:["usp-card__header",b.cardHeader].filter(Boolean).join(" "),style:w,children:[e("span",{className:"usp-card__icon",children:R.renderBookmarkIcon?R.renderBookmarkIcon():e(v,{})}),""!==_.storyId&&r("span",{className:["usp-card__id",b.cardId].filter(Boolean).join(" "),children:[_.storyId,":"]}),e(d,{content:_.title,placement:"top",disabled:P,contentClassName:T,children:e("span",{className:["usp-card__title",b.cardTitle].filter(Boolean).join(" "),style:k,children:_.title})}),_.isNew&&e(s,{type:"new"}),!G&&"Widget Maker"===_.user_stories_type&&e("span",{className:"usp-card__mode-chip",children:"Widget"}),e("div",{className:"usp-card__actions",children:e(d,{content:E?"Remove from Shortlist":"Add to Shortlist",placement:"top",disabled:P,contentClassName:T,children:r("button",{type:"button",className:["usp-card__heart",E&&"usp-card__heart--active",H&&"usp-card__heart--burst"].filter(Boolean).join(" "),onClick:oe,"aria-label":E?"Remove from Shortlist":"Add to Shortlist","aria-pressed":E,children:[e(h,{filled:E}),r("span",{className:"usp-card__heart-burst","aria-hidden":"true",children:[e("span",{}),e("span",{}),e("span",{}),e("span",{}),e("span",{}),e("span",{}),e("span",{}),e("span",{})]})]})})})]}),r("div",{className:["usp-card__project-name",b.cardProjectName].filter(Boolean).join(" "),children:[R.renderFolderIcon?R.renderFolderIcon():e(y,{}),_.projectName]}),e("div",{className:["usp-card-userstory-description",!_.description&&"usp-card__description--empty",b.cardDescription].filter(Boolean).join(" "),style:N,children:_.description?r(t,{children:[e("span",{dangerouslySetInnerHTML:{__html:m(ee)}}),te&&e("button",{onClick:X,className:["usp-card-moreButton",b.cardViewMore].filter(Boolean).join(" "),"aria-label":$?"Show less":"Show more",children:$?"less":"more"}),D&&(null==ne?void 0:ne.length)>0&&e("span",{className:"mt-1 inline flex-row flex-wrap gap-1 relative w-full",onClick:e=>e.stopPropagation(),"data-citation":"true",children:null==ne?void 0:ne.map(t=>{var r,o,i,n,a,s;return e(u,{searchQueryList:[""],searchQueryReasoningIdList:[],userStory:[],aiReasoning:[],citations:null!=Z?Z:{},apiCachingConfig:{queryClient:()=>{var e;return null!==(e=null==F?void 0:F.queryClient)&&void 0!==e?e:()=>{}},useGetSignedUrlQuery:null!==(r=null==F?void 0:F.useGetSignedUrlQuery)&&void 0!==r?r:()=>{},useGetSignedUrlMutation:null!==(o=null==F?void 0:F.useGetSignedUrlMutation)&&void 0!==o?o:()=>{},useExtractAudioPeaksMutation:null!==(i=null==F?void 0:F.useExtractAudioPeaksMutation)&&void 0!==i?i:()=>{},useExtractAudioPeaksQuery:null!==(n=null==F?void 0:F.useExtractAudioPeaksQuery)&&void 0!==n?n:()=>{},useGetVideoSignedUrlMutation:null!==(a=null==F?void 0:F.useGetVideoSignedUrlMutation)&&void 0!==a?a:()=>{},useGetVideoSignedUrlQuery:null!==(s=null==F?void 0:F.useGetVideoSignedUrlQuery)&&void 0!==s?s:()=>{}},setUserStory:()=>{},setAiReasoning:()=>{},setCitations:()=>{},aiReasoningAccordionOpenStates:{isBottomComponentCollapsed:!0,gapAlwaysOpen:!1,gapDefaultOpen:!1,isBottomComponentDefaultOpen:!0,reasoningAlwaysOpen:!0},children:e(c,{aiReason:t,isSourceHasHighlight:!1,customStyles:{aiReasoningPill:{background:"transparent",fontSize:"13px"}}})})})})]}):e("span",{className:"usp-card__description--placeholder",children:"No Description available"})}),e("div",{className:"usp-card__meta",style:C,children:r("span",{className:["usp-card__date",b.cardDate].filter(Boolean).join(" "),children:["Last Updated: ",g(_.lastUpdated)]})}),e(l,{story:_})]})}export{_ as UserStoryCard};
2
2
  //# sourceMappingURL=UserStoryCard.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as o,useEffect as n,useMemo as d}from"react";import{Dialog as i,DialogContent as a,DialogHeader as s,DialogTitle as l,DialogDescription as c,DialogFooter as u}from"../lib/dialog.js";import{Check as b}from"lucide-react";import{cn as m}from"../lib/cn.js";var f=[{value:"all",title:"Import entire artifact with all user stories",description:"Keeps the artifact as is and includes all user stories for full context.",recommended:!0},{value:"selected",title:"Import selected user story as a copy",description:"Creates a copy as a new artifact with just the selected user story."}],g=function(g){var p=g.open,x=g.onOpenChange,h=g.onConfirm,k=g.defaultChoice,v=void 0===k?"all":k,y=o(v),w=y[0],N=y[1];n(function(){p&&N(v)},[p,v]);var C=d(function(){return f},[]);return t(i,e({open:p,onOpenChange:x},{children:r(a,e({className:"sm:max-w-xl bg-editor-widget-background border border-editor-widget-border text-editor-foreground",overlayClassName:"bg-black/35 backdrop-blur-sm"},{children:[r(s,e({className:"space-y-2 text-center"},{children:[t(l,e({className:"text-lg font-semibold text-editor-foreground"},{children:"This user story belongs to an artifact with multiple user stories"})),t(c,e({className:"text-sm text-description-foreground"},{children:"Choose how you would like to proceed"}))]})),t("div",e({role:"radiogroup",className:"space-y-3"},{children:C.map(function(o){var n=w===o.value;return t("button",e({type:"button",role:"radio","aria-checked":n,onClick:function(){return N(o.value)},className:m("w-full rounded-lg border px-4 py-3 text-left transition-colors focus:outline-none focus:ring-2 focus:ring-button-background/40",n?"border-button-background bg-button-background/10":"border-editor-widget-border bg-editor-background/40 hover:border-button-background/60")},{children:r("div",e({className:"flex items-start gap-4"},{children:[r("div",e({className:"flex-1 space-y-1"},{children:[o.recommended?t("span",e({className:"inline-flex items-center rounded-full border border-button-background/40 bg-button-background/10 px-2 py-0.5 text-[10px] font-semibold text-button-background"},{children:"Recommended"})):null,t("div",e({className:"text-sm font-semibold text-editor-foreground"},{children:o.title})),t("div",e({className:"text-xs text-description-foreground"},{children:o.description}))]})),t("div",e({className:m("mt-0.5 flex h-5 w-5 items-center justify-center rounded-full border",n?"border-button-background bg-button-background text-button-foreground":"border-editor-widget-border text-transparent")},{children:t(b,{className:"h-3.5 w-3.5"})}))]}))}),o.value)})})),r(u,e({className:"flex-row justify-end gap-3 sm:justify-end"},{children:[t("button",e({type:"button",onClick:function(){return x(!1)},className:"min-w-[120px] rounded-lg border border-editor-widget-border bg-transparent px-4 py-2 text-sm font-medium text-editor-foreground transition-colors hover:border-button-background/70"},{children:"Cancel"})),t("button",e({type:"button",onClick:function(){return h(w)},className:"min-w-[120px] rounded-lg bg-button-background px-4 py-2 text-sm font-semibold text-button-foreground transition-colors hover:bg-button-hover-background"},{children:"Continue"}))]}))]}))}))};export{g as UserStoryImportDialog};
1
+ import{jsx as e,jsxs as t}from"react/jsx-runtime";import{useState as r,useEffect as o,useMemo as n}from"react";import{Dialog as d,DialogContent as i,DialogHeader as s,DialogTitle as a,DialogDescription as l,DialogFooter as c}from"../lib/dialog.js";import{Check as u}from"lucide-react";import{cn as b}from"../lib/cn.js";const m=[{value:"all",title:"Import entire artifact with all user stories",description:"Keeps the artifact as is and includes all user stories for full context.",recommended:!0},{value:"selected",title:"Import selected user story as a copy",description:"Creates a copy as a new artifact with just the selected user story."}],g=({open:g,onOpenChange:p,onConfirm:f,defaultChoice:x="all"})=>{const[h,k]=r(x);o(()=>{g&&k(x)},[g,x]);const y=n(()=>m,[]);return e(d,{open:g,onOpenChange:p,children:t(i,{className:"sm:max-w-xl bg-editor-widget-background border border-editor-widget-border text-editor-foreground",overlayClassName:"bg-black/35 backdrop-blur-sm",children:[t(s,{className:"space-y-2 text-center",children:[e(a,{className:"text-lg font-semibold text-editor-foreground",children:"This user story belongs to an artifact with multiple user stories"}),e(l,{className:"text-sm text-description-foreground",children:"Choose how you would like to proceed"})]}),e("div",{role:"radiogroup",className:"space-y-3",children:y.map(r=>{const o=h===r.value;return e("button",{type:"button",role:"radio","aria-checked":o,onClick:()=>k(r.value),className:b("w-full rounded-lg border px-4 py-3 text-left transition-colors focus:outline-none focus:ring-2 focus:ring-button-background/40",o?"border-button-background bg-button-background/10":"border-editor-widget-border bg-editor-background/40 hover:border-button-background/60"),children:t("div",{className:"flex items-start gap-4",children:[t("div",{className:"flex-1 space-y-1",children:[r.recommended?e("span",{className:"inline-flex items-center rounded-full border border-button-background/40 bg-button-background/10 px-2 py-0.5 text-[10px] font-semibold text-button-background",children:"Recommended"}):null,e("div",{className:"text-sm font-semibold text-editor-foreground",children:r.title}),e("div",{className:"text-xs text-description-foreground",children:r.description})]}),e("div",{className:b("mt-0.5 flex h-5 w-5 items-center justify-center rounded-full border",o?"border-button-background bg-button-background text-button-foreground":"border-editor-widget-border text-transparent"),children:e(u,{className:"h-3.5 w-3.5"})})]})},r.value)})}),t(c,{className:"flex-row justify-end gap-3 sm:justify-end",children:[e("button",{type:"button",onClick:()=>p(!1),className:"min-w-[120px] rounded-lg border border-editor-widget-border bg-transparent px-4 py-2 text-sm font-medium text-editor-foreground transition-colors hover:border-button-background/70",children:"Cancel"}),e("button",{type:"button",onClick:()=>f(h),className:"min-w-[120px] rounded-lg bg-button-background px-4 py-2 text-sm font-semibold text-button-foreground transition-colors hover:bg-button-hover-background",children:"Continue"})]})]})})};export{g as UserStoryImportDialog};
2
2
  //# sourceMappingURL=UserStoryImportDialog.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,Fragment as o,jsxs as n}from"react/jsx-runtime";import{useState as t,useRef as s,useCallback as l,useEffect as i}from"react";import{useUSPContext as u}from"../UserStoryPicker.context.js";var c=[{value:"all",label:"All User Stories"},{value:"owned",label:"Created by Me"},{value:"shared",label:"Shared to Me"}];function a(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m18 15-6-6-6 6"})}))}function d(){return r("svg",e({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:r("path",{d:"m6 9 6 6 6-6"})}))}function p(p){var m,v,f=p.options,h=void 0===f?c:f,w=p.className,y=p.style,g=p.selectStyle,S=u(),b=S.scopedUserStories,k=S.toggleScopedUserStories,_=S.classNames,x=S.renderProps,N=S.isLoadingStories,j=t(!1),L=j[0],U=j[1],B=s(null),C=l(function(e){k(e),U(!1)},[k]);if(i(function(){function e(e){B.current&&!B.current.contains(e.target)&&U(!1)}return L&&document.addEventListener("mousedown",e),function(){return document.removeEventListener("mousedown",e)}},[L]),x.renderUserStoryScopeDropdown)return r(o,{children:x.renderUserStoryScopeDropdown(b,C,h)});var D=null!==(v=null===(m=h.find(function(e){return e.value===b}))||void 0===m?void 0:m.label)&&void 0!==v?v:h[0].label,E=["usp-user-story-scope",_.userStoryScopeDropdown,w].filter(Boolean).join(" ");return n("div",e({ref:B,className:[E,L&&"open"].filter(Boolean).join(" "),style:y},{children:[n("button",e({type:"button",className:"usp-user-story-scope__trigger",style:g,disabled:N,onClick:function(){return U(function(e){return!e})}},{children:[r("span",e({className:"usp-user-story-scope__trigger-label"},{children:D})),r("span",e({className:"usp-user-story-scope__chevron"},{children:r(L?a:d,{})}))]})),L&&r("ul",e({className:"usp-user-story-scope__menu",role:"listbox"},{children:h.map(function(o){return r("li",e({role:"option","aria-selected":b===o.value,className:["usp-user-story-scope__option",b===o.value&&"active"].filter(Boolean).join(" "),onClick:function(){return C(o.value)}},{children:o.label}),o.value)})}))]}))}export{p as UserStoryScopeDropdown};
1
+ import{jsx as e,Fragment as r,jsxs as o}from"react/jsx-runtime";import{useState as s,useRef as t,useCallback as n,useEffect as l}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";const a=[{value:"all",label:"All User Stories"},{value:"owned",label:"Created by Me"},{value:"shared",label:"Shared to Me"}];function c(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"m18 15-6-6-6 6"})})}function u(){return e("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e("path",{d:"m6 9 6 6 6-6"})})}function d({options:d=a,className:p,style:m,selectStyle:v}){var h,w;const{scopedUserStories:y,toggleScopedUserStories:f,classNames:g,renderProps:S,isLoadingStories:b}=i(),[k,_]=s(!1),x=t(null),N=n(e=>{f(e),_(!1)},[f]);if(l(()=>{function e(e){x.current&&!x.current.contains(e.target)&&_(!1)}return k&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[k]),S.renderUserStoryScopeDropdown)return e(r,{children:S.renderUserStoryScopeDropdown(y,N,d)});const j=null!==(w=null===(h=d.find(e=>e.value===y))||void 0===h?void 0:h.label)&&void 0!==w?w:d[0].label,L=["usp-user-story-scope",g.userStoryScopeDropdown,p].filter(Boolean).join(" ");return o("div",{ref:x,className:[L,k&&"open"].filter(Boolean).join(" "),style:m,children:[o("button",{type:"button",className:"usp-user-story-scope__trigger",style:v,disabled:b,onClick:()=>_(e=>!e),children:[e("span",{className:"usp-user-story-scope__trigger-label",children:j}),e("span",{className:"usp-user-story-scope__chevron",children:e(k?c:u,{})})]}),k&&e("ul",{className:"usp-user-story-scope__menu",role:"listbox",children:d.map(r=>e("li",{role:"option","aria-selected":y===r.value,className:["usp-user-story-scope__option",y===r.value&&"active"].filter(Boolean).join(" "),onClick:()=>N(r.value),children:r.label},r.value))})]})}export{d as UserStoryScopeDropdown};
2
2
  //# sourceMappingURL=UserStoryScopeDropdown.js.map
@@ -1,2 +1,2 @@
1
- import{useState as e,useRef as t,useEffect as n}from"react";var r=function(){var r=e(!1),o=r[0],u=r[1],i=e(25),s=i[0],c=i[1],a=e(!1),d=a[0],m=a[1],l=e(!1),f=l[0],v=l[1],L=t(!1),p=t(25),w=d||f?0:s;n(function(){var e=function(e){if(L.current){var t=document.querySelector(".panels-container");if(t){var n=t.getBoundingClientRect(),r=(e.clientX-n.left)/n.width*100;(r=Math.min(50,r))>15&&(r=Math.max(15,r)),r<15&&(r=0),Math.abs(r-50)<2&&(r=50),c(r),r>=15&&(p.current=r)}}},t=function(){L.current&&(L.current=!1,u(!1),0===s||s<15?(v(!0),setTimeout(function(){m(!0),v(!1),c(15)},300)):m(!1))};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),function(){document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[s]);return{leftPanelWidth:s,isLeftPanelCollapsed:d,isLeftPanelClosing:f,isResizing:o,visualLeftWidth:w,setIsLeftPanelCollapsed:m,setIsLeftPanelClosing:v,handleResizeStart:function(e){e.preventDefault(),document.body.style.userSelect="none";var t=function(e){if(d){var t=p.current||25;m(!1),v(!1),c(t)}L.current=!0,u(!0)},n=function(){document.body.style.userSelect="",window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},toggleSidebar:function(){if(d){var e=p.current||25;m(!1),v(!1),c(e)}else p.current=s,v(!0),setTimeout(function(){m(!0),v(!1)},300)},closeSidebar:function(){d||(L.current=!1,u(!1),p.current=s||p.current,v(!0),setTimeout(function(){m(!0),v(!1)},300))}}};export{r as usePanelResize};
1
+ import{useState as e,useRef as t,useEffect as n}from"react";const r=()=>{const[r,o]=e(!1),[s,u]=e(25),[i,c]=e(!1),[d,m]=e(!1),l=t(!1),a=t(25),v=i||d?0:s;n(()=>{const e=e=>{if(!l.current)return;const t=document.querySelector(".panels-container");if(!t)return;const n=t.getBoundingClientRect();let r=(e.clientX-n.left)/n.width*100;r=Math.min(50,r),r>15&&(r=Math.max(15,r)),r<15&&(r=0),Math.abs(r-50)<2&&(r=50),u(r),r>=15&&(a.current=r)},t=()=>{l.current&&(l.current=!1,o(!1),0===s||s<15?(m(!0),setTimeout(()=>{c(!0),m(!1),u(15)},300)):c(!1))};return document.addEventListener("mousemove",e),document.addEventListener("mouseup",t),()=>{document.removeEventListener("mousemove",e),document.removeEventListener("mouseup",t)}},[s]);return{leftPanelWidth:s,isLeftPanelCollapsed:i,isLeftPanelClosing:d,isResizing:r,visualLeftWidth:v,setIsLeftPanelCollapsed:c,setIsLeftPanelClosing:m,handleResizeStart:e=>{e.preventDefault(),document.body.style.userSelect="none";const t=e=>{if(i){const e=a.current||25;c(!1),m(!1),u(e)}l.current=!0,o(!0)},n=()=>{document.body.style.userSelect="",window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)},toggleSidebar:()=>{if(i){const e=a.current||25;c(!1),m(!1),u(e)}else a.current=s,m(!0),setTimeout(()=>{c(!0),m(!1)},300)},closeSidebar:()=>{i||(l.current=!1,o(!1),a.current=s||a.current,m(!0),setTimeout(()=>{c(!0),m(!1)},300))}}};export{r as usePanelResize};
2
2
  //# sourceMappingURL=usePanelResize.js.map
@@ -1,2 +1,2 @@
1
- import{useMemo as r}from"react";function e(e,i,t,o,n){void 0===o&&(o=[]),void 0===n&&(n=[]);var s=Array.isArray(e)?e:[],u=Array.isArray(i)?i:[],l=Array.isArray(o)?o:[],c=Array.isArray(n)?n:[],v=r(function(){return"favorites"===t.viewMode?c.filter(function(r){return r.isFavorite}):t.selectedProjectId?l:s},[s,l,c,t.selectedProjectId,t.viewMode]),a=r(function(){return u},[u]),f=r(function(){return v.slice(0,t.visibleCount)},[v,t.visibleCount]),d=r(function(){return a.slice(0,t.visibleCount)},[a,t.visibleCount]),b=v.length>t.visibleCount,y=a.length>t.visibleCount;return{filteredStories:v,filteredProjects:a,visibleStories:f,visibleProjects:d,hasMoreStories:b,hasMoreProjects:y}}export{e as useFilteredItems};
1
+ import{useMemo as e}from"react";function r(r,i,t,s=[],o=[]){const l=Array.isArray(r)?r:[],a=Array.isArray(i)?i:[],c=Array.isArray(s)?s:[],n=Array.isArray(o)?o:[],v=e(()=>"favorites"===t.viewMode?n.filter(e=>e.isFavorite):t.selectedProjectId?c:l,[l,c,n,t.selectedProjectId,t.viewMode]),b=e(()=>a,[a]),d=e(()=>v.slice(0,t.visibleCount),[v,t.visibleCount]),u=e(()=>b.slice(0,t.visibleCount),[b,t.visibleCount]),y=v.length>t.visibleCount,A=b.length>t.visibleCount;return{filteredStories:v,filteredProjects:b,visibleStories:d,visibleProjects:u,hasMoreStories:y,hasMoreProjects:A}}export{r as useFilteredItems};
2
2
  //# sourceMappingURL=useFilteredItems.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t,__spreadArray as n}from"tslib";import{useRef as r,useState as e,useEffect as i,useCallback as o,useMemo as a}from"react";function u(t){return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:t&&Array.isArray(t.items)?t.items:[]}function s(t){return u(t).map(function(t){var n,r,e=(null===(n=t.files)||void 0===n?void 0:n.length)>0?t.files.reduce(function(t,n){return new Date(n.timestamp)>new Date(t)?n.timestamp:t},t.files[0].timestamp):t.timestamp;return{id:t._id,name:t.name,description:""!==t.description&&null!==t.description&&void 0!==t.description&&!1!==t.description?t.description:"No Description Available",artifactCount:null!==(r=t.artifactCount)&&void 0!==r?r:0,lastUpdated:e}})}function c(t,n){var r=u(t);return 0===r.length?[]:r.map(function(t){var n,r,e,i,o,a,u,s,c;return{storyId:t.ticket_id,title:t.title,description:null!==(n=t.description)&&void 0!==n?n:"",projectName:null!==(r=t.project_name)&&void 0!==r?r:"PROJECT",projectId:null!==(e=t.project_id)&&void 0!==e?e:"",lastUpdated:null!==(i=t.updated_at)&&void 0!==i?i:"",gs_util_url:null!==(o=t.gs_util_url)&&void 0!==o?o:"",artifact_id:null!==(a=t.artifact_id)&&void 0!==a?a:"",user_story_id:null!==(u=t.user_story_id)&&void 0!==u?u:"",isFavorite:Boolean(t.is_favorite),isNew:null!==(s=t.is_new)&&void 0!==s&&s,multi_user_story:Boolean(t.multi_user_story),user_stories_type:null!==(c=t.user_stories_type)&&void 0!==c?c:"",ai_reasonings_snaphost:t.ai_reasonings_snapshot&&t.ai_reasonings_snapshot.length>0?t.ai_reasonings_snapshot:[]}})}function l(t){return[t.user_story_id,t.storyId].filter(Boolean)}function f(t,n){for(var r=0,e=l(t);r<e.length;r++){var i=e[r];if(Object.prototype.hasOwnProperty.call(n,i))return n[i]}}function d(n,r){return n.length&&r&&0!==Object.keys(r).length?n.map(function(n){return void 0!==f(n,r)?t(t({},n),{isFavorite:f(n,r)}):n}):n}function v(u,v,p,m,_,h,y,g,j,S,b){void 0===_&&(_="newest"),void 0===h&&(h="All Types"),void 0===y&&(y="allRepository"),void 0===g&&(g=""),void 0===j&&(j=""),void 0===S&&(S=null),void 0===b&&(b=!1);var A=r(p);A.current=p;var P=r(m);P.current=m;var F=e(1),M=F[0],w=F[1],O=e(1),T=O[0],I=O[1],C=e(1),x=C[0],U=C[1],B=e(1),L=B[0],N=B[1],R=e(1),k=R[0],D=R[1],E=e(g),q=E[0],z=E[1],J=e(j),G=J[0],H=J[1],K=e("all"),Q=K[0],V=K[1],W=e([]),X=W[0],Y=W[1],Z=e([]),$=Z[0],tt=Z[1],nt=e(!1),rt=nt[0],et=nt[1],it=e(!1),ot=it[0],at=it[1],ut=e([]),st=ut[0],ct=ut[1],lt=e(!1),ft=lt[0],dt=lt[1],vt=e([]),pt=vt[0],mt=vt[1],_t=e(!1),ht=_t[0],yt=_t[1],gt=e([]),jt=gt[0],St=gt[1],bt=e(!1),At=bt[0],Pt=bt[1],Ft=e({}),Mt=Ft[0],wt=Ft[1],Ot=e(!1),Tt=Ot[0],It=Ot[1],Ct=e(!1),xt=Ct[0],Ut=Ct[1],Bt=e(!1),Lt=Bt[0],Nt=Bt[1],Rt=e(!1),kt=Rt[0],Dt=Rt[1],Et=e(!1),qt=Et[0],zt=Et[1],Jt=e(0),Gt=Jt[0],Ht=Jt[1],Kt=Boolean(u),Qt=function(t){switch(t){case"newest":default:return"date-desc";case"oldest":return"date-asc";case"a-z":return"name-asc";case"z-a":return"name-desc"}}(_);i(function(){var t=setTimeout(function(){return z(g)},700);return function(){return clearTimeout(t)}},[g]),i(function(){var t=setTimeout(function(){return H(j)},700);return function(){return clearTimeout(t)}},[j]),i(function(){w(1),Y([]),et(!1)},[u,_,q]),i(function(){I(1),tt([]),at(!1)},[u,h,y,q,Q]),i(function(){U(1),ct([]),dt(!1)},[u,G]),i(function(){N(1),mt([]),yt(!1)},[S,u,h,y,q,Q]),i(function(){D(1),St([]),Pt(!1)},[u]),i(function(){if(Kt){var r=!1;It(!0);var e=t({user_email:u,page:M,limit:6,sortOrder:Qt,modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},q?{nameContains:q}:{});return A.current(e).then(function(t){var e;if(!r){var i=s(t);Y(function(t){return 1===M?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;et("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||It(!1)}),function(){r=!0}}},[Kt,u,M,Qt,q]),i(function(){if(Kt){var r=!1;Nt(!0);var e=t({user_email:u,page:x,limit:10,sortOrder:"date-desc",modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0},G?{nameContains:G}:{});return A.current(e).then(function(t){var e;if(!r){var i=s(t);ct(function(t){return 1===x?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;dt("boolean"==typeof o?o:i.length>=10)}}).catch(function(){}).finally(function(){r||Nt(!1)}),function(){r=!0}}},[Kt,u,x,G]),i(function(){if(Kt){var r=!1;Ut(!0);var e=t({email:u,page:T,limit:6,scope:Q,user_stories_type:"All Types"===h?"":h,repository_url:"allRepository"===y?"":v,paginate:!0,project_id_search:"",sortOrder:"date-desc",is_ai_snapshot:b},q?{search:q}:{});return P.current(e).then(function(t){var e;if(!r){var i=d(c(null==t?void 0:t.artifacts),Mt);tt(function(t){return 1===T?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;at("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||Ut(!1)}),function(){r=!0}}},[Kt,u,T,h,y,q,Q]),i(function(){if(Kt&&S){var r=!1;Dt(!0);var e=t({email:u,page:L,limit:6,paginate:!0,project_id_search:S,scope:Q,sortOrder:"date-desc",is_ai_snapshot:b},q?{search:q}:{});return P.current(e).then(function(t){var e;if(!r){var i=d(c(null==t?void 0:t.artifacts),Mt);mt(function(t){return 1===L?i:n(n([],t,!0),i,!0)});var o=null===(e=null==t?void 0:t.pagination)||void 0===e?void 0:e.has_next;yt("boolean"==typeof o?o:i.length>=6)}}).catch(function(){}).finally(function(){r||Dt(!1)}),function(){r=!0}}},[Kt,u,S,L,q,Q]),i(function(){if(Kt){var t=!1;zt(!0);var r={email:u,page:k,limit:10,paginate:!0,project_id_search:"",favorite_only:!0};return P.current(r).then(function(r){var e;if(!t){var i=d(c(null==r?void 0:r.artifacts),Mt);St(function(t){return 1===k?i:n(n([],t,!0),i,!0)});var o=null===(e=null==r?void 0:r.pagination)||void 0===e?void 0:e.has_next;Pt("boolean"==typeof o?o:i.length>=10)}}).catch(function(){}).finally(function(){t||zt(!1)}),function(){t=!0}}},[Kt,u,k,Gt]),i(function(){Mt&&0!==Object.keys(Mt).length&&St(function(t){return d(t,Mt)})},[Mt]);var Vt=o(function(){return w(function(t){return t+1})},[]),Wt=o(function(){return I(function(t){return t+1})},[]),Xt=o(function(){return N(function(t){return t+1})},[]),Yt=o(function(){return U(function(t){return t+1})},[]),Zt=o(function(){return D(function(t){return t+1})},[]),$t=o(function(t){return V(t)},[]),tn=o(function(r,e){var i=l(r);wt(function(n){var r=t({},n);return i.forEach(function(t){r[t]=e}),r}),tt(function(o){return o.some(function(t){return l(t).some(function(t){return i.includes(t)})})?o.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n}):e?n(n([],o,!0),[t(t({},r),{isFavorite:e})],!1):o}),mt(function(n){return n.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n})}),St(function(o){var a=o.some(function(t){return l(t).some(function(t){return i.includes(t)})});return e?a?o.map(function(n){return l(n).some(function(t){return i.includes(t)})?t(t({},n),{isFavorite:e}):n}):n(n([],o,!0),[t(t({},r),{isFavorite:e})],!1):o.filter(function(t){return!l(t).some(function(t){return i.includes(t)})})}),D(1),Ht(function(t){return t+1})},[]),nn=a(function(){var r=new Map;return n(n(n([],jt,!0),$,!0),pt,!0).forEach(function(n){if(n){var e=f(n,Mt);if(void 0!==e?e:Boolean(n.isFavorite)){var i=n.user_story_id||n.storyId;i&&!r.has(i)&&r.set(i,t(t({},n),{isFavorite:!0}))}}}),Array.from(r.values())},[jt,$,pt,Mt]);return{projects:X,userStories:$,hasMoreProjects:rt,hasMoreStories:ot,loadMoreProjects:Vt,loadMoreStories:Wt,isLoadingProjects:Tt,isLoadingStories:xt,projectStories:pt,hasMoreProjectStories:ht,loadMoreProjectStories:Xt,scopedUserStories:Q,toggleScopedUserStories:$t,isLoadingProjectStories:kt,sidebarProjects:st,hasMoreSidebarProjects:ft,loadMoreSidebarProjects:Yt,isLoadingSidebarProjects:Lt,favoriteStories:nn,hasMoreFavoriteStories:At,loadMoreFavoriteStories:Zt,isLoadingFavoriteStories:qt,updateFavorite:tn}}export{v as useUSPData};
1
+ import{useRef as e,useState as t,useEffect as r,useCallback as o,useMemo as i}from"react";function n(e){return Array.isArray(e)?e:e&&Array.isArray(e.data)?e.data:e&&Array.isArray(e.items)?e.items:[]}function s(e){return n(e).map(e=>{var t,r;const o=(null===(t=e.files)||void 0===t?void 0:t.length)>0?e.files.reduce((e,t)=>new Date(t.timestamp)>new Date(e)?t.timestamp:e,e.files[0].timestamp):e.timestamp;return{id:e._id,name:e.name,description:""!==e.description&&null!==e.description&&void 0!==e.description&&!1!==e.description?e.description:"No Description Available",artifactCount:null!==(r=e.artifactCount)&&void 0!==r?r:0,lastUpdated:o}})}function a(e,t){const r=n(e);return 0===r.length?[]:r.map(e=>{var t,r,o,i,n,s,a,l,c;return{storyId:e.ticket_id,title:e.title,description:null!==(t=e.description)&&void 0!==t?t:"",projectName:null!==(r=e.project_name)&&void 0!==r?r:"PROJECT",projectId:null!==(o=e.project_id)&&void 0!==o?o:"",lastUpdated:null!==(i=e.updated_at)&&void 0!==i?i:"",gs_util_url:null!==(n=e.gs_util_url)&&void 0!==n?n:"",artifact_id:null!==(s=e.artifact_id)&&void 0!==s?s:"",user_story_id:null!==(a=e.user_story_id)&&void 0!==a?a:"",isFavorite:Boolean(e.is_favorite),isNew:null!==(l=e.is_new)&&void 0!==l&&l,multi_user_story:Boolean(e.multi_user_story),user_stories_type:null!==(c=e.user_stories_type)&&void 0!==c?c:"",ai_reasonings_snaphost:e.ai_reasonings_snapshot&&e.ai_reasonings_snapshot.length>0?e.ai_reasonings_snapshot:[]}})}function l(e){return[e.user_story_id,e.storyId].filter(Boolean)}function c(e,t){const r=l(e);for(const e of r)if(Object.prototype.hasOwnProperty.call(t,e))return t[e]}function u(e,t){return e.length&&t&&0!==Object.keys(t).length?e.map(e=>void 0!==c(e,t)?{...e,isFavorite:c(e,t)}:e):e}function d(n,d,p,m,v="newest",_="All Types",f="allRepository",h="",y="",g=null,j=!1){const S=e(p);S.current=p;const b=e(m);b.current=m;const[A,P]=t(1),[F,M]=t(1),[w,O]=t(1),[T,I]=t(1),[C,x]=t(1),[U,B]=t(h),[L,N]=t(y),[R,k]=t("all"),[D,E]=t([]),[q,z]=t([]),[J,G]=t(!1),[H,K]=t(!1),[Q,V]=t([]),[W,X]=t(!1),[Y,Z]=t([]),[$,ee]=t(!1),[te,re]=t([]),[oe,ie]=t(!1),[ne,se]=t({}),[ae,le]=t(!1),[ce,ue]=t(!1),[de,pe]=t(!1),[me,ve]=t(!1),[_e,fe]=t(!1),[he,ye]=t(0),ge=Boolean(n),je=function(e){switch(e){case"newest":default:return"date-desc";case"oldest":return"date-asc";case"a-z":return"name-asc";case"z-a":return"name-desc"}}(v);r(()=>{const e=setTimeout(()=>B(h),700);return()=>clearTimeout(e)},[h]),r(()=>{const e=setTimeout(()=>N(y),700);return()=>clearTimeout(e)},[y]),r(()=>{P(1),E([]),G(!1)},[n,v,U]),r(()=>{M(1),z([]),K(!1)},[n,_,f,U,R]),r(()=>{O(1),V([]),X(!1)},[n,L]),r(()=>{I(1),Z([]),ee(!1)},[g,n,_,f,U,R]),r(()=>{x(1),re([]),ie(!1)},[n]),r(()=>{if(!ge)return;let e=!1;le(!0);const t={user_email:n,page:A,limit:6,sortOrder:je,modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0,...U?{nameContains:U}:{}};return S.current(t).then(t=>{var r;if(e)return;const o=s(t);E(e=>1===A?o:[...e,...o]);const i=null===(r=null==t?void 0:t.pagination)||void 0===r?void 0:r.has_next;G("boolean"==typeof i?i:o.length>=6)}).catch(()=>{}).finally(()=>{e||le(!1)}),()=>{e=!0}},[ge,n,A,je,U]),r(()=>{if(!ge)return;let e=!1;pe(!0);const t={user_email:n,page:w,limit:10,sortOrder:"date-desc",modeName:"Requirement AI",artifactCaption:"User Story Artifact",subProject:!1,countTotalItems:!0,...L?{nameContains:L}:{}};return S.current(t).then(t=>{var r;if(e)return;const o=s(t);V(e=>1===w?o:[...e,...o]);const i=null===(r=null==t?void 0:t.pagination)||void 0===r?void 0:r.has_next;X("boolean"==typeof i?i:o.length>=10)}).catch(()=>{}).finally(()=>{e||pe(!1)}),()=>{e=!0}},[ge,n,w,L]),r(()=>{if(!ge)return;let e=!1;ue(!0);const t={email:n,page:F,limit:6,scope:R,user_stories_type:"All Types"===_?"":_,repository_url:"allRepository"===f?"":d,paginate:!0,project_id_search:"",sortOrder:"date-desc",is_ai_snapshot:j,...U?{search:U}:{}};return b.current(t).then(t=>{var r;if(e)return;const o=u(a(null==t?void 0:t.artifacts),ne);z(e=>1===F?o:[...e,...o]);const i=null===(r=null==t?void 0:t.pagination)||void 0===r?void 0:r.has_next;K("boolean"==typeof i?i:o.length>=6)}).catch(()=>{}).finally(()=>{e||ue(!1)}),()=>{e=!0}},[ge,n,F,_,f,U,R]),r(()=>{if(!ge||!g)return;let e=!1;ve(!0);const t={email:n,page:T,limit:6,paginate:!0,project_id_search:g,scope:R,sortOrder:"date-desc",is_ai_snapshot:j,...U?{search:U}:{}};return b.current(t).then(t=>{var r;if(e)return;const o=u(a(null==t?void 0:t.artifacts),ne);Z(e=>1===T?o:[...e,...o]);const i=null===(r=null==t?void 0:t.pagination)||void 0===r?void 0:r.has_next;ee("boolean"==typeof i?i:o.length>=6)}).catch(()=>{}).finally(()=>{e||ve(!1)}),()=>{e=!0}},[ge,n,g,T,U,R]),r(()=>{if(!ge)return;let e=!1;fe(!0);const t={email:n,page:C,limit:10,paginate:!0,project_id_search:"",favorite_only:!0};return b.current(t).then(t=>{var r;if(e)return;const o=u(a(null==t?void 0:t.artifacts),ne);re(e=>1===C?o:[...e,...o]);const i=null===(r=null==t?void 0:t.pagination)||void 0===r?void 0:r.has_next;ie("boolean"==typeof i?i:o.length>=10)}).catch(()=>{}).finally(()=>{e||fe(!1)}),()=>{e=!0}},[ge,n,C,he]),r(()=>{ne&&0!==Object.keys(ne).length&&re(e=>u(e,ne))},[ne]);const Se=o(()=>P(e=>e+1),[]),be=o(()=>M(e=>e+1),[]),Ae=o(()=>I(e=>e+1),[]),Pe=o(()=>O(e=>e+1),[]),Fe=o(()=>x(e=>e+1),[]),Me=o(e=>k(e),[]),we=o((e,t)=>{const r=l(e);se(e=>{const o={...e};return r.forEach(e=>{o[e]=t}),o}),z(o=>o.some(e=>l(e).some(e=>r.includes(e)))?o.map(e=>l(e).some(e=>r.includes(e))?{...e,isFavorite:t}:e):t?[...o,{...e,isFavorite:t}]:o),Z(e=>e.map(e=>l(e).some(e=>r.includes(e))?{...e,isFavorite:t}:e)),re(o=>{const i=o.some(e=>l(e).some(e=>r.includes(e)));return t?i?o.map(e=>l(e).some(e=>r.includes(e))?{...e,isFavorite:t}:e):[...o,{...e,isFavorite:t}]:o.filter(e=>!l(e).some(e=>r.includes(e)))}),x(1),ye(e=>e+1)},[]),Oe=i(()=>{const e=new Map;return[...te,...q,...Y].forEach(t=>{if(!t)return;const r=c(t,ne);if(!(void 0!==r?r:Boolean(t.isFavorite)))return;const o=t.user_story_id||t.storyId;o&&!e.has(o)&&e.set(o,{...t,isFavorite:!0})}),Array.from(e.values())},[te,q,Y,ne]);return{projects:D,userStories:q,hasMoreProjects:J,hasMoreStories:H,loadMoreProjects:Se,loadMoreStories:be,isLoadingProjects:ae,isLoadingStories:ce,projectStories:Y,hasMoreProjectStories:$,loadMoreProjectStories:Ae,scopedUserStories:R,toggleScopedUserStories:Me,isLoadingProjectStories:me,sidebarProjects:Q,hasMoreSidebarProjects:W,loadMoreSidebarProjects:Pe,isLoadingSidebarProjects:de,favoriteStories:Oe,hasMoreFavoriteStories:oe,loadMoreFavoriteStories:Fe,isLoadingFavoriteStories:_e,updateFavorite:we}}export{d as useUSPData};
2
2
  //# sourceMappingURL=useUSPData.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{useReducer as r}from"react";function a(e,r,a,t,o){return void 0===e&&(e="recent"),void 0===r&&(r="newest"),void 0===a&&(a="All Types"),void 0===t&&(t="allRepository"),void 0===o&&(o=6),{viewMode:e,searchQuery:"",sidebarSearchQuery:"",selectedStoryId:null,selectedProjectId:null,sortBy:r,typeBy:a,scopeRepo:t,visibleCount:o,pageSize:o,collapsedSections:new Set}}function t(r,t){switch(t.type){case"SET_VIEW":return e(e({},r),{viewMode:t.payload,searchQuery:"",sidebarSearchQuery:""});case"SET_SEARCH":return e(e({},r),{searchQuery:t.payload});case"SET_SIDEBAR_SEARCH":return e(e({},r),{sidebarSearchQuery:t.payload});case"SELECT_STORY":return e(e({},r),{selectedStoryId:t.payload});case"SELECT_PROJECT":return e(e({},r),{selectedProjectId:t.payload,viewMode:t.payload?"project-detail":"projects",searchQuery:"",sidebarSearchQuery:"",visibleCount:r.pageSize});case"SHOW_RECENT_IN_SPLIT":return e(e({},r),{selectedProjectId:null,searchQuery:""});case"SHOW_FAVORITES_IN_SPLIT":return e(e({},r),{viewMode:"favorites",selectedProjectId:null,searchQuery:"",sidebarSearchQuery:""});case"SET_SORT":return e(e({},r),{sortBy:t.payload});case"SET_TYPE":return e(e({},r),{typeBy:t.payload});case"SET_SCOPE_REPO":return e(e({},r),{scopeRepo:t.payload});case"SHOW_MORE":return e(e({},r),{visibleCount:r.visibleCount+r.pageSize});case"TOGGLE_SECTION":var o=new Set(r.collapsedSections);return o.has(t.payload)?o.delete(t.payload):o.add(t.payload),e(e({},r),{collapsedSections:o});case"RESET":return a();default:return r}}function o(e,o,s,c,d){return r(t,void 0,function(){return a(e,o,s,c,d)})}export{o as useUserStoryPickerState};
1
+ import{useReducer as e}from"react";function r(e="recent",r="newest",a="All Types",t="allRepository",s=6){return{viewMode:e,searchQuery:"",sidebarSearchQuery:"",selectedStoryId:null,selectedProjectId:null,sortBy:r,typeBy:a,scopeRepo:t,visibleCount:s,pageSize:s,collapsedSections:new Set}}function a(e,a){switch(a.type){case"SET_VIEW":return{...e,viewMode:a.payload,searchQuery:"",sidebarSearchQuery:""};case"SET_SEARCH":return{...e,searchQuery:a.payload};case"SET_SIDEBAR_SEARCH":return{...e,sidebarSearchQuery:a.payload};case"SELECT_STORY":return{...e,selectedStoryId:a.payload};case"SELECT_PROJECT":return{...e,selectedProjectId:a.payload,viewMode:a.payload?"project-detail":"projects",searchQuery:"",sidebarSearchQuery:"",visibleCount:e.pageSize};case"SHOW_RECENT_IN_SPLIT":return{...e,selectedProjectId:null,searchQuery:""};case"SHOW_FAVORITES_IN_SPLIT":return{...e,viewMode:"favorites",selectedProjectId:null,searchQuery:"",sidebarSearchQuery:""};case"SET_SORT":return{...e,sortBy:a.payload};case"SET_TYPE":return{...e,typeBy:a.payload};case"SET_SCOPE_REPO":return{...e,scopeRepo:a.payload};case"SHOW_MORE":return{...e,visibleCount:e.visibleCount+e.pageSize};case"TOGGLE_SECTION":{const r=new Set(e.collapsedSections);return r.has(a.payload)?r.delete(a.payload):r.add(a.payload),{...e,collapsedSections:r}}case"RESET":return r();default:return e}}function t(t,s,c,o,l){return e(a,void 0,()=>r(t,s,c,o,l))}export{t as useUserStoryPickerState};
2
2
  //# sourceMappingURL=useUserStoryPickerState.js.map
@@ -1,2 +1,2 @@
1
- import{UserStoryPickerRoot as o}from"./UserStoryPicker.js";import{Header as r}from"./components/Header.js";import{Toolbar as e}from"./components/Toolbar.js";import{SearchInput as t}from"./components/SearchInput.js";import{BrowseProjectsButton as s}from"./components/BrowseProjectsButton.js";import{SectionHeading as m}from"./components/SectionHeading.js";import{CardGrid as n}from"./components/CardGrid.js";import{UserStoryCard as p}from"./components/UserStoryCard.js";import{ProjectCard as i}from"./components/ProjectCard.js";import{Badge as c}from"./components/Badge.js";import{BackNav as a}from"./components/BackNav.js";import{SortDropdown as j}from"./components/SortDropdown.js";import{ShowMore as S}from"./components/ShowMore.js";import{ProceedButton as d}from"./components/ProceedButton.js";import{Footer as f}from"./components/Footer.js";import{SplitLayout as l}from"./components/SplitLayout.js";import{Sidebar as P}from"./components/Sidebar.js";import{SidebarSection as y}from"./components/SidebarSection.js";import{SidebarProjectList as u}from"./components/SidebarProjectList.js";import{SidebarFavoritesList as w}from"./components/SidebarFavoritesList.js";import{ContentArea as D}from"./components/ContentArea.js";import{NavRow as U}from"./components/NavRow.js";import{UserStoryImportDialog as h}from"./components/UserStoryImportDialog.js";export{UserStoryImportDialog}from"./components/UserStoryImportDialog.js";import{ResizeHandle as b}from"./components/ResizeHandle.js";export{ResizeHandle}from"./components/ResizeHandle.js";import{ScopeDropdown as g}from"./components/ScopeDropdown.js";import{TypeDropdown as C}from"./components/TypeDropdown.js";import{UserStoryScopeDropdown as B}from"./components/UserStoryScopeDropdown.js";export{useUSPContext}from"./UserStoryPicker.context.js";export{useUSPData}from"./hooks/useUSPData.js";export{usePanelResize}from"./components/usePanelResize.js";export{darkTheme,lightTheme,themeToStyle,uspColorPalette,uspVSCodeLightTheme,vscodeTheme}from"./UserStoryPicker.theme.js";var x=Object.assign(o,{Header:r,Toolbar:e,SearchInput:t,BrowseProjectsButton:s,SectionHeading:m,CardGrid:n,UserStoryCard:p,ProjectCard:i,Badge:c,BackNav:a,SortDropdown:j,ScopeDropdown:g,TypeDropdown:C,UserStoryScopeDropdown:B,ShowMore:S,ProceedButton:d,Footer:f,SplitLayout:l,Sidebar:P,SidebarSection:y,SidebarProjectList:u,SidebarFavoritesList:w,ContentArea:D,NavRow:U,UserStoryImportDialog:h,ResizeHandle:b});export{x as UserStoryPicker};
1
+ import{UserStoryPickerRoot as o}from"./UserStoryPicker.js";import{Header as r}from"./components/Header.js";import{Toolbar as e}from"./components/Toolbar.js";import{SearchInput as t}from"./components/SearchInput.js";import{BrowseProjectsButton as s}from"./components/BrowseProjectsButton.js";import{SectionHeading as m}from"./components/SectionHeading.js";import{CardGrid as n}from"./components/CardGrid.js";import{UserStoryCard as p}from"./components/UserStoryCard.js";import{ProjectCard as i}from"./components/ProjectCard.js";import{Badge as c}from"./components/Badge.js";import{BackNav as a}from"./components/BackNav.js";import{SortDropdown as j}from"./components/SortDropdown.js";import{ShowMore as S}from"./components/ShowMore.js";import{ProceedButton as d}from"./components/ProceedButton.js";import{Footer as f}from"./components/Footer.js";import{SplitLayout as l}from"./components/SplitLayout.js";import{Sidebar as P}from"./components/Sidebar.js";import{SidebarSection as y}from"./components/SidebarSection.js";import{SidebarProjectList as u}from"./components/SidebarProjectList.js";import{SidebarFavoritesList as w}from"./components/SidebarFavoritesList.js";import{ContentArea as D}from"./components/ContentArea.js";import{NavRow as U}from"./components/NavRow.js";import{UserStoryImportDialog as h}from"./components/UserStoryImportDialog.js";export{UserStoryImportDialog}from"./components/UserStoryImportDialog.js";import{ResizeHandle as b}from"./components/ResizeHandle.js";export{ResizeHandle}from"./components/ResizeHandle.js";import{ScopeDropdown as g}from"./components/ScopeDropdown.js";import{TypeDropdown as C}from"./components/TypeDropdown.js";import{UserStoryScopeDropdown as B}from"./components/UserStoryScopeDropdown.js";export{useUSPContext}from"./UserStoryPicker.context.js";export{useUSPData}from"./hooks/useUSPData.js";export{usePanelResize}from"./components/usePanelResize.js";export{darkTheme,lightTheme,themeToStyle,uspColorPalette,uspVSCodeLightTheme,vscodeTheme}from"./UserStoryPicker.theme.js";const x=Object.assign(o,{Header:r,Toolbar:e,SearchInput:t,BrowseProjectsButton:s,SectionHeading:m,CardGrid:n,UserStoryCard:p,ProjectCard:i,Badge:c,BackNav:a,SortDropdown:j,ScopeDropdown:g,TypeDropdown:C,UserStoryScopeDropdown:B,ShowMore:S,ProceedButton:d,Footer:f,SplitLayout:l,Sidebar:P,SidebarSection:y,SidebarProjectList:u,SidebarFavoritesList:w,ContentArea:D,NavRow:U,UserStoryImportDialog:h,ResizeHandle:b});export{x as UserStoryPicker};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"tslib";import{jsxs as o,jsx as e}from"react/jsx-runtime";import{Tooltip as a,TooltipTrigger as l,TooltipContent as r}from"./Tooltip.js";import{cn as i}from"./cn.js";var n=function(n){var s=n.content,d=n.children,m=n.contentClassName,p=n.placement,f=void 0===p?"top":p,u=n.withArrow,c=void 0!==u&&u,h=n.delayDuration,x=void 0===h?100:h,g=n.disabled;if(void 0!==g&&g)return d;return o(a,t({delayDuration:x},{children:[e(l,t({asChild:!0},{children:d})),o(r,t({side:f,className:i("relative bg-tooltip-background text-tooltip-foreground p-2 px-3 w-auto max-w-[90vw] sm:max-w-lg z-50",m)},{children:[c&&e("svg",t({width:8,height:8,viewBox:"0 0 8 8",className:i("absolute fill-menu-background",{top:"bottom-0 left-1/2 -translate-x-1/2 translate-y-full",bottom:"top-0 left-1/2 -translate-x-1/2 -translate-y-full rotate-180",left:"right-0 top-1/2 -translate-y-1/2 translate-x-full -rotate-90",right:"left-0 top-1/2 -translate-y-1/2 -translate-x-full rotate-90"}[f])},{children:e("polygon",{points:"0,0 8,0 4,8"})})),s]}))]}))};export{n as default};
1
+ import{jsxs as t,jsx as e}from"react/jsx-runtime";import{Tooltip as l,TooltipTrigger as a,TooltipContent as o}from"./Tooltip.js";import{cn as r}from"./cn.js";const n=({content:n,children:i,contentClassName:s,placement:m="top",withArrow:p=!1,delayDuration:c=100,disabled:d=!1})=>{if(d)return i;const u={top:"bottom-0 left-1/2 -translate-x-1/2 translate-y-full",bottom:"top-0 left-1/2 -translate-x-1/2 -translate-y-full rotate-180",left:"right-0 top-1/2 -translate-y-1/2 translate-x-full -rotate-90",right:"left-0 top-1/2 -translate-y-1/2 -translate-x-full rotate-90"};return t(l,{delayDuration:c,children:[e(a,{asChild:!0,children:i}),t(o,{side:m,className:r("relative bg-tooltip-background text-tooltip-foreground p-2 px-3 w-auto max-w-[90vw] sm:max-w-lg z-50",s),children:[p&&e("svg",{width:8,height:8,viewBox:"0 0 8 8",className:r("absolute fill-menu-background",u[m]),children:e("polygon",{points:"0,0 8,0 4,8"})}),n]})]})};export{n as default};
2
2
  //# sourceMappingURL=CustomTooltip.js.map