@viswa-test/test-citation 0.0.229 → 0.0.231

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 (684) 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/cjs/utils/tagHelper.js +2 -0
  273. package/dist/cjs/utils/tagHelper.js.map +1 -0
  274. package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
  275. package/dist/features/CognitiveCompare/CognitiveComparehelpers.js +1 -1
  276. package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
  277. package/dist/features/CognitiveCompare/components/SubSectionAccordion.js +1 -1
  278. package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
  279. package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
  280. package/dist/features/GptWebCitation/GptWebCitation.js +1 -1
  281. package/dist/features/GptWebCitation/GptWebCitation.module.css.js +1 -1
  282. package/dist/features/GptWebCitation/GptWebCitationImageCitation.js +1 -1
  283. package/dist/features/GptWebCitation/GptWebCitationImageFullScreenView.js +1 -1
  284. package/dist/features/GptWebCitation/GptWebCitationSkeleton.js +1 -1
  285. package/dist/features/GptWebCitation/types.js +2 -0
  286. package/dist/features/GptWebCitation/types.js.map +1 -0
  287. package/dist/features/GptWebCitation/utils/citationData.utils.js +1 -1
  288. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js +2 -0
  289. package/dist/features/GptWebCitation/utils/fixedHeight.utils.js.map +1 -0
  290. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js +2 -0
  291. package/dist/features/GptWebCitation/utils/styleOverrides.utils.js.map +1 -0
  292. package/dist/features/IngestionStatus/IngestionStatusComponent.js +1 -1
  293. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  294. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  295. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  296. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  297. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  298. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  299. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  300. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  301. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  302. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  303. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  304. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  305. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  306. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  307. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  308. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  309. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  310. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  311. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  312. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  313. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  314. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  315. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  316. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +2 -0
  317. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js.map +1 -0
  318. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  319. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  320. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js +2 -0
  321. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.js.map +1 -0
  322. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  323. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js +2 -0
  324. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.js.map +1 -0
  325. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js +2 -0
  326. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.js.map +1 -0
  327. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js +2 -0
  328. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.js.map +1 -0
  329. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.css.js +1 -1
  330. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  331. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  332. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  333. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +2 -0
  334. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js.map +1 -0
  335. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js +2 -0
  336. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.module.css.js.map +1 -0
  337. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  338. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.module.css.js +1 -1
  339. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +2 -0
  340. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js.map +1 -0
  341. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js +2 -0
  342. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.module.css.js.map +1 -0
  343. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  344. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  345. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  346. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  347. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  348. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js +2 -0
  349. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.js.map +1 -0
  350. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  351. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  352. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  353. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  354. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  355. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  356. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  357. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  358. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  359. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  360. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  361. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  362. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  363. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  364. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  365. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  366. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  367. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  368. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  369. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  370. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  371. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  372. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  373. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  374. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  375. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  376. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  377. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  378. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  379. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  380. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  381. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  382. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  383. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  384. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  385. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  386. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  387. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  388. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  389. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  390. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  391. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +2 -0
  392. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js.map +1 -0
  393. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +2 -0
  394. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js.map +1 -0
  395. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  396. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  397. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  398. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  399. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  400. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  401. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  402. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  403. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  404. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  405. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  406. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  407. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  408. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  409. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  410. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  411. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  412. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  413. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  414. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  415. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  416. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  417. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  418. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  419. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  420. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  421. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  422. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  423. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  424. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  425. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  426. package/dist/features/RequirementAI/components/segment/segment-common.css.js +1 -1
  427. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  428. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +2 -0
  429. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js.map +1 -0
  430. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js +2 -0
  431. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.module.css.js.map +1 -0
  432. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  433. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  434. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  435. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  436. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  437. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  438. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
  439. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  440. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  441. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  442. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  443. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  444. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  445. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.module.css.js +1 -1
  446. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  447. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.module.css.js +1 -1
  448. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +2 -0
  449. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js.map +1 -0
  450. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js +2 -0
  451. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.js.map +1 -0
  452. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js +2 -0
  453. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.module.css.js.map +1 -0
  454. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  455. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.module.css.js +1 -1
  456. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  457. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  458. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  459. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  460. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  461. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  462. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  463. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  464. package/dist/features/RequirementAI/icons/CDIcon.js +2 -0
  465. package/dist/features/RequirementAI/icons/CDIcon.js.map +1 -0
  466. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  467. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  468. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  469. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  470. package/dist/features/RequirementAI/icons/Illustration.svg.js +2 -0
  471. package/dist/features/RequirementAI/icons/Illustration.svg.js.map +1 -0
  472. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  473. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  474. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  475. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  476. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  477. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  478. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  479. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  480. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  481. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  482. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  483. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  484. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  485. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  486. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  487. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  488. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  489. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  490. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  491. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  492. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  493. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  494. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  495. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  496. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  497. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  498. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  499. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  500. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  501. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  502. package/dist/features/RulebookCitations/RuleBookCitationApi.js +1 -1
  503. package/dist/features/RulebookCitations/RuleBookCitationWrapper.js +1 -1
  504. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  505. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  506. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  507. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  508. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  509. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  510. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  511. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  512. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  513. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  514. package/dist/features/UserStoryImport/components/Header.js +1 -1
  515. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  516. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  517. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  518. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  519. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  520. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  521. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  522. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  523. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  524. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  525. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  526. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  527. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  528. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  529. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  530. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  531. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  532. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  533. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  534. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  535. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  536. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  537. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  538. package/dist/features/UserStoryImport/index.js +1 -1
  539. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  540. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  541. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  542. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  543. package/dist/index.js +1 -1
  544. package/dist/service/redlineService.js +2 -0
  545. package/dist/service/redlineService.js.map +1 -0
  546. package/dist/types/src/Background.d.ts +7 -0
  547. package/dist/types/src/Background.d.ts.map +1 -0
  548. package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
  549. package/dist/types/src/CommonConstants/CommonConstants.d.ts +1365 -0
  550. package/dist/types/src/CommonConstants/CommonConstants.d.ts.map +1 -1
  551. package/dist/types/src/DeviationSummaryTest.d.ts +2 -0
  552. package/dist/types/src/DeviationSummaryTest.d.ts.map +1 -0
  553. package/dist/types/src/RedlineEditorTest.d.ts +3 -0
  554. package/dist/types/src/RedlineEditorTest.d.ts.map +1 -0
  555. package/dist/types/src/RequirementAiTest.d.ts.map +1 -1
  556. package/dist/types/src/constants/deviationData.d.ts +887 -0
  557. package/dist/types/src/constants/deviationData.d.ts.map +1 -0
  558. package/dist/types/src/constants/treeData.d.ts +732 -0
  559. package/dist/types/src/constants/treeData.d.ts.map +1 -0
  560. package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
  561. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +5 -0
  562. package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
  563. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts +9 -1
  564. package/dist/types/src/features/CognitiveCompare/CognitiveComparehelpers.d.ts.map +1 -1
  565. package/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
  566. package/dist/types/src/features/CognitiveCompare/components/SubSectionAccordion.d.ts.map +1 -1
  567. package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
  568. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
  569. package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
  570. package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
  571. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts +10 -0
  572. package/dist/types/src/features/GptWebCitation/GptWebCitation.d.ts.map +1 -1
  573. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts +9 -1
  574. package/dist/types/src/features/GptWebCitation/GptWebCitationImageCitation.d.ts.map +1 -1
  575. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts +3 -1
  576. package/dist/types/src/features/GptWebCitation/GptWebCitationImageFullScreenView.d.ts.map +1 -1
  577. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts +12 -1
  578. package/dist/types/src/features/GptWebCitation/GptWebCitationSkeleton.d.ts.map +1 -1
  579. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts +1 -1
  580. package/dist/types/src/features/GptWebCitation/GptWebCitationTest.d.ts.map +1 -1
  581. package/dist/types/src/features/GptWebCitation/WebCitationSampleResponse.d.ts.map +1 -1
  582. package/dist/types/src/features/GptWebCitation/types.d.ts +313 -20
  583. package/dist/types/src/features/GptWebCitation/types.d.ts.map +1 -1
  584. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts +2 -0
  585. package/dist/types/src/features/GptWebCitation/utils/citationData.utils.d.ts.map +1 -1
  586. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts +10 -0
  587. package/dist/types/src/features/GptWebCitation/utils/fixedHeight.utils.d.ts.map +1 -0
  588. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts +6 -0
  589. package/dist/types/src/features/GptWebCitation/utils/styleOverrides.utils.d.ts.map +1 -0
  590. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts +2 -0
  591. package/dist/types/src/features/IngestionStatus/IngestionStatusComponent.d.ts.map +1 -1
  592. package/dist/types/src/features/IngestionStatus/IngestionStatusComponentTest.d.ts.map +1 -1
  593. package/dist/types/src/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.d.ts.map +1 -1
  594. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +156 -3
  595. package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
  596. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts +2 -1
  597. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/Editor.d.ts.map +1 -1
  598. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts +1 -4
  599. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.d.ts.map +1 -1
  600. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts +44 -0
  601. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.d.ts.map +1 -0
  602. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.d.ts.map +1 -1
  603. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts +4 -3
  604. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.d.ts.map +1 -1
  605. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts +35 -0
  606. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/InvisibleNode.d.ts.map +1 -0
  607. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts +25 -0
  608. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/ManualNode.d.ts.map +1 -0
  609. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts +23 -0
  610. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/PreservedNode.d.ts.map +1 -0
  611. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts +25 -0
  612. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/plugins/UpdateNode.d.ts.map +1 -0
  613. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/PlaygroundEditorTheme.d.ts.map +1 -1
  614. package/dist/types/src/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.d.ts.map +1 -1
  615. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts +9 -1
  616. package/dist/types/src/features/RequirementAI/components/RichTextEditor/RichTextEditor.d.ts.map +1 -1
  617. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts +8 -0
  618. package/dist/types/src/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.d.ts.map +1 -0
  619. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts +29 -0
  620. package/dist/types/src/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.d.ts.map +1 -0
  621. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts +8 -3
  622. package/dist/types/src/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.d.ts.map +1 -1
  623. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts +8 -0
  624. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/BlockedPopup.d.ts.map +1 -0
  625. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts +44 -4
  626. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.d.ts.map +1 -1
  627. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts +25 -0
  628. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/ManualEditPopup.d.ts.map +1 -0
  629. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts +17 -3
  630. package/dist/types/src/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.d.ts.map +1 -1
  631. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +35 -2
  632. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  633. package/dist/types/src/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.d.ts.map +1 -1
  634. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts +12 -0
  635. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.d.ts.map +1 -0
  636. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts +6 -0
  637. package/dist/types/src/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.d.ts.map +1 -0
  638. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts +1 -0
  639. package/dist/types/src/features/RequirementAI/components/cra/PartialRequirementContent.d.ts.map +1 -1
  640. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts +15 -0
  641. package/dist/types/src/features/RequirementAI/components/story-screen/CompletionPanel.d.ts.map +1 -0
  642. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts +7 -1
  643. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.d.ts.map +1 -1
  644. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts +4 -1
  645. package/dist/types/src/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.d.ts.map +1 -1
  646. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts +14 -1
  647. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.d.ts.map +1 -1
  648. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts +11 -0
  649. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.d.ts.map +1 -0
  650. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts +10 -0
  651. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineManualComponent.d.ts.map +1 -0
  652. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts +2 -1
  653. package/dist/types/src/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.d.ts.map +1 -1
  654. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts +4 -1
  655. package/dist/types/src/features/RequirementAI/icons/CDIcon.d.ts.map +1 -1
  656. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts +17 -2
  657. package/dist/types/src/features/RequirementAI/interfaces/citation.interface.d.ts.map +1 -1
  658. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts +10 -0
  659. package/dist/types/src/features/RequirementAI/interfaces/userstory.interface.d.ts.map +1 -1
  660. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts +4 -1
  661. package/dist/types/src/features/RequirementAI/shared/UpdatedAnimationContent.d.ts.map +1 -1
  662. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts +22 -12
  663. package/dist/types/src/features/RequirementAI/types/aiReasoning.type.d.ts.map +1 -1
  664. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts +20 -0
  665. package/dist/types/src/features/RequirementAI/types/citation.type.d.ts.map +1 -1
  666. package/dist/types/src/features/RequirementAI/utils/userStoryAttachedContext.utils.d.ts.map +1 -1
  667. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts +2 -2
  668. package/dist/types/src/features/RulebookCitations/RuleBookCitationApi.d.ts.map +1 -1
  669. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts +1 -0
  670. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapper.d.ts.map +1 -1
  671. package/dist/types/src/features/RulebookCitations/RuleBookCitationWrapperTest.d.ts.map +1 -1
  672. package/dist/types/src/index.d.ts +3 -2
  673. package/dist/types/src/index.d.ts.map +1 -1
  674. package/dist/types/src/service/redlineService.d.ts +33 -0
  675. package/dist/types/src/service/redlineService.d.ts.map +1 -0
  676. package/dist/types/src/utils/tagHelper.d.ts +5 -0
  677. package/dist/types/src/utils/tagHelper.d.ts.map +1 -0
  678. package/dist/utils/tagHelper.js +2 -0
  679. package/dist/utils/tagHelper.js.map +1 -0
  680. package/package.json +9 -6
  681. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  682. package/dist/cjs/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
  683. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js +0 -2
  684. package/dist/features/GptWebCitation/GptWebCitationMarkdown.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as o}from"react/jsx-runtime";import{useEffect as r,useMemo as t,useCallback as i,useState as s,useRef as a}from"react";import{USPContext as n}from"./UserStoryPicker.context.js";import{useUserStoryPickerState as d}from"./hooks/useUserStoryPickerState.js";import{useFilteredItems as c}from"./hooks/useFilteredItems.js";import{useUSPData as l}from"./hooks/useUSPData.js";import{themeToStyle as u}from"./UserStoryPicker.theme.js";import{TooltipProvider as S}from"./lib/Tooltip.js";import"./user-story-picker.css.js";import{cn as p}from"./lib/cn.js";var v={},j={};function f(f){var P,m,h=f.userEmail,g=f.adapter,M=f.defaultView,b=void 0===M?"recent":M,y=f.defaultSort,w=void 0===y?"newest":y,F=f.defaultType,U=void 0===F?"All Types":F,k=f.defaultRepo,I=void 0===k?"allRepository":k,C=f.gitUrl,T=void 0===C?"":C,L=f.pageSize,N=void 0===L?4:L,V=f.theme,x=f.classNames,H=void 0===x?v:x,B=f.renderProps,D=void 0===B?j:B,E=f.onProceed,R=f.onStorySelect,Q=f.onProjectSelect,W=f.onSearch,_=f.onViewChange,z=f.onSortChange,A=f.onShowMore,q=f.onViewMoreDescription,G=f.onFavoriteToggle,J=f.hidePopUp,K=void 0!==J&&J,O=f.disableTooltip,X=void 0!==O&&O,Y=f.tooltipClassName,Z=f.children,$=f.mediaCacheHooks,ee=f.showCitations,oe=void 0!==ee&&ee,re=f.featureFlagWidgetMaker,te=void 0===re||re,ie=d(b,w,U,I,N),se=ie[0],ae=ie[1];r(function(){null==_||_(se.viewMode)},[se.viewMode,_]);var ne=l(h,T,g.fetchProjects,g.fetchUserStories,se.sortBy,se.typeBy,se.scopeRepo,se.searchQuery,se.sidebarSearchQuery,se.selectedProjectId,oe),de=ne.projects,ce=ne.userStories,le=ne.hasMoreProjects,ue=ne.hasMoreStories,Se=ne.loadMoreProjects,pe=ne.loadMoreStories,ve=ne.isLoadingProjects,je=ne.isLoadingStories,fe=ne.projectStories,Pe=ne.hasMoreProjectStories,me=ne.loadMoreProjectStories,he=ne.isLoadingProjectStories,ge=ne.sidebarProjects,Me=ne.hasMoreSidebarProjects,be=ne.loadMoreSidebarProjects,ye=ne.scopedUserStories,we=ne.toggleScopedUserStories,Fe=ne.isLoadingSidebarProjects,Ue=ne.favoriteStories,ke=ne.hasMoreFavoriteStories,Ie=ne.loadMoreFavoriteStories,Ce=ne.isLoadingFavoriteStories,Te=ne.updateFavorite,Le=se.selectedProjectId?Pe:ue,Ne=se.selectedProjectId?me:pe,Ve=se.selectedProjectId?he:je,xe=t(function(){var e;return null!==(e=de.find(function(e){return e.id===se.selectedProjectId}))&&void 0!==e?e:null},[de,se.selectedProjectId]),He=t(function(){return xe?fe.map(function(o){return e(e({},o),{projectName:xe.name})}):fe},[fe,xe]),Be=t(function(){var e;return null!==(e=(se.selectedProjectId?He:ce).find(function(e){return e.user_story_id===se.selectedStoryId}))&&void 0!==e?e:null},[se.selectedProjectId,He,ce,se.selectedStoryId]),De=c(ce,de,se,He,Ue),Ee=De.filteredStories,Re=De.filteredProjects,Qe=De.visibleStories,We=De.visibleProjects,_e="favorites"===se.viewMode?(null!==(P=null==Ee?void 0:Ee.length)&&void 0!==P?P:0)>(null!==(m=null==Qe?void 0:Qe.length)&&void 0!==m?m:0):Le,ze=i(function(e,o){Te(e,o),null==G||G(e,o)},[Te,G]),Ae=t(function(){return{adapter:g,state:se,dispatch:ae,userStories:ce,projects:de,filteredStories:Ee,filteredProjects:Re,visibleStories:Qe,visibleProjects:We,hasMoreStories:_e,hasMoreProjects:le,selectedStory:Be,selectedProject:xe,classNames:H,renderProps:D,mediaCacheHooks:$,showCitations:oe,featureFlagWidgetMaker:te,loadMoreProjects:Se,loadMoreStories:Ne,isLoadingProjects:ve,isLoadingStories:Ve,scopedUserStories:ye,toggleScopedUserStories:we,sidebarProjects:ge,hasMoreSidebarProjects:Me,loadMoreSidebarProjects:be,isLoadingSidebarProjects:Fe,favoriteStories:Ue,hasMoreFavoriteStories:ke,loadMoreFavoriteStories:Ie,isLoadingFavoriteStories:Ce,onProceed:E,onStorySelect:R,onProjectSelect:Q,onSearch:W,onViewChange:_,onSortChange:z,onShowMore:A,onViewMoreDescription:q,onFavoriteToggle:ze,hidePopUp:K,disableTooltip:X,tooltipClassName:Y}},[g,se,ae,ce,de,Ee,Re,Qe,We,Le,_e,le,Be,xe,H,D,Se,Ne,ve,Ve,ge,Me,be,Fe,Ue,ke,Ie,ye,we,Ce,E,$,oe,te,R,Q,W,_,z,A,q,ze,K,X,Y]),qe=s(!1),Ge=qe[0],Je=qe[1],Ke=a(null);r(function(){if(g.onHostEvent){var e=g.onHostEvent("cw-project-glow",function(){Je(!0),Ke.current&&clearTimeout(Ke.current),Ke.current=setTimeout(function(){Je(!1)},3e3)});return function(){Ke.current&&(clearTimeout(Ke.current),Ke.current=null),e&&e()}}},[g]);var Oe=["usp-root",H.root].filter(Boolean).join(" "),Xe=V?u(V):void 0;return o(S,{children:o(n.Provider,e({value:Ae},{children:o("div",e({className:p(Oe,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",Ge?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Xe},{children:Z}))}))})}export{f as UserStoryPickerRoot};
1
+ import{jsx as e}from"react/jsx-runtime";import{useEffect as o,useMemo as r,useCallback as t,useState as s,useRef as i}from"react";import{USPContext as a}from"./UserStoryPicker.context.js";import{useUserStoryPickerState as d}from"./hooks/useUserStoryPickerState.js";import{useFilteredItems as c}from"./hooks/useFilteredItems.js";import{useUSPData as l}from"./hooks/useUSPData.js";import{themeToStyle as n}from"./UserStoryPicker.theme.js";import{TooltipProvider as S}from"./lib/Tooltip.js";import"./user-story-picker.css.js";import{cn as u}from"./lib/cn.js";const p={},j={};function P({userEmail:P,adapter:h,defaultView:m="recent",defaultSort:v="newest",defaultType:f="All Types",defaultRepo:g="allRepository",gitUrl:M="",pageSize:b=4,theme:y,classNames:w=p,renderProps:F=j,onProceed:U,onStorySelect:k,onProjectSelect:I,onSearch:C,onViewChange:T,onSortChange:L,onShowMore:N,onViewMoreDescription:V,onFavoriteToggle:x,hidePopUp:H=!1,disableTooltip:B=!1,tooltipClassName:D,children:E,mediaCacheHooks:R,showCitations:Q=!1,featureFlagWidgetMaker:W=!0}){var _,z;const[A,q]=d(m,v,f,g,b);o(()=>{null==T||T(A.viewMode)},[A.viewMode,T]);const{projects:G,userStories:J,hasMoreProjects:K,hasMoreStories:O,loadMoreProjects:X,loadMoreStories:Y,isLoadingProjects:Z,isLoadingStories:$,projectStories:ee,hasMoreProjectStories:oe,loadMoreProjectStories:re,isLoadingProjectStories:te,sidebarProjects:se,hasMoreSidebarProjects:ie,loadMoreSidebarProjects:ae,scopedUserStories:de,toggleScopedUserStories:ce,isLoadingSidebarProjects:le,favoriteStories:ne,hasMoreFavoriteStories:Se,loadMoreFavoriteStories:ue,isLoadingFavoriteStories:pe,updateFavorite:je}=l(P,M,h.fetchProjects,h.fetchUserStories,A.sortBy,A.typeBy,A.scopeRepo,A.searchQuery,A.sidebarSearchQuery,A.selectedProjectId,Q),Pe=A.selectedProjectId?oe:O,he=A.selectedProjectId?re:Y,me=A.selectedProjectId?te:$,ve=r(()=>{var e;return null!==(e=G.find(e=>e.id===A.selectedProjectId))&&void 0!==e?e:null},[G,A.selectedProjectId]),fe=r(()=>ve?ee.map(e=>({...e,projectName:ve.name})):ee,[ee,ve]),ge=r(()=>{var e;return null!==(e=(A.selectedProjectId?fe:J).find(e=>e.user_story_id===A.selectedStoryId))&&void 0!==e?e:null},[A.selectedProjectId,fe,J,A.selectedStoryId]),{filteredStories:Me,filteredProjects:be,visibleStories:ye,visibleProjects:we}=c(J,G,A,fe,ne),Fe="favorites"===A.viewMode?(null!==(_=null==Me?void 0:Me.length)&&void 0!==_?_:0)>(null!==(z=null==ye?void 0:ye.length)&&void 0!==z?z:0):Pe,Ue=t((e,o)=>{je(e,o),null==x||x(e,o)},[je,x]),ke=r(()=>({adapter:h,state:A,dispatch:q,userStories:J,projects:G,filteredStories:Me,filteredProjects:be,visibleStories:ye,visibleProjects:we,hasMoreStories:Fe,hasMoreProjects:K,selectedStory:ge,selectedProject:ve,classNames:w,renderProps:F,mediaCacheHooks:R,showCitations:Q,featureFlagWidgetMaker:W,loadMoreProjects:X,loadMoreStories:he,isLoadingProjects:Z,isLoadingStories:me,scopedUserStories:de,toggleScopedUserStories:ce,sidebarProjects:se,hasMoreSidebarProjects:ie,loadMoreSidebarProjects:ae,isLoadingSidebarProjects:le,favoriteStories:ne,hasMoreFavoriteStories:Se,loadMoreFavoriteStories:ue,isLoadingFavoriteStories:pe,onProceed:U,onStorySelect:k,onProjectSelect:I,onSearch:C,onViewChange:T,onSortChange:L,onShowMore:N,onViewMoreDescription:V,onFavoriteToggle:Ue,hidePopUp:H,disableTooltip:B,tooltipClassName:D}),[h,A,q,J,G,Me,be,ye,we,Pe,Fe,K,ge,ve,w,F,X,he,Z,me,se,ie,ae,le,ne,Se,ue,de,ce,pe,U,R,Q,W,k,I,C,T,L,N,V,Ue,H,B,D]),[Ie,Ce]=s(!1),Te=i(null);o(()=>{if(!h.onHostEvent)return;const e=h.onHostEvent("cw-project-glow",()=>{Ce(!0),Te.current&&clearTimeout(Te.current),Te.current=setTimeout(()=>{Ce(!1)},3e3)});return()=>{Te.current&&(clearTimeout(Te.current),Te.current=null),e&&e()}},[h]);const Le=["usp-root",w.root].filter(Boolean).join(" "),Ne=y?n(y):void 0;return e(S,{children:e(a.Provider,{value:ke,children:e("div",{className:u(Le,"rounded-lg flex-1 min-h-0 overflow-auto border-2 pt-2",Ie?"border-primary animate ease-in-out duration-500 mb-4":"transition-colors duration-500 border-transparent shadow-none"),style:Ne,children:E})})})}export{P as UserStoryPickerRoot};
2
2
  //# sourceMappingURL=UserStoryPicker.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";var e={blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",cyan400:"#22d3ee",cyan500:"#06b6d4",green400:"#4ade80",green500:"#22c55e",red400:"#f87171",red500:"#ef4444",amber400:"#fbbf24",amber500:"#f59e0b",purple400:"#c084fc",purple500:"#a855f7",purple600:"#9333ea",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",neutral700:"#404040",neutral750:"#333333",neutral800:"#262626",neutral850:"#1f1f1f",neutral900:"#171717",neutral950:"#0a0a0a",white:"#ffffff",offWhite:"#f8f8f8",vscodeBlue:"#007fd4",vscodeDarkBg:"#1e1e1e",vscodeDarkCard:"#252526",vscodeDarkBorder:"#3c3c3c",vscodeDarkInput:"#3c3c3c",vscodeDarkMuted:"#858585"},o={colors:{background:"var(--vscode-editor-background, #1e1e1e)",foreground:"var(--vscode-editor-foreground, #cccccc)",border:"var(--vscode-panel-border, #3c3c3c)",cardBackground:"var(--vscode-editorWidget-background, #252526)",cardHoverBorder:"var(--vscode-focusBorder, #007fd4)",accent:"var(--vscode-focusBorder, #007fd4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #858585)",link:"var(--vscode-textLink-foreground, #3794ff)",inputBackground:"var(--vscode-input-background, #3c3c3c)",inputBorder:"var(--vscode-input-border, #3c3c3c)",inputForeground:"var(--vscode-input-foreground, #cccccc)",primaryBackground:"var(--vscode-button-background, #0e639c)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #1177bb)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #094771)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #2a2d2e)"}},d={colors:{background:"var(--vscode-editor-background, #ffffff)",foreground:"var(--vscode-editor-foreground, #1f1f1f)",border:"var(--vscode-panel-border, #e5e5e5)",cardBackground:"var(--vscode-editorWidget-background, #f8f8f8)",cardHoverBorder:"var(--vscode-focusBorder, #0078d4)",accent:"var(--vscode-focusBorder, #0078d4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #717171)",link:"var(--vscode-textLink-foreground, #006ab1)",inputBackground:"var(--vscode-input-background, #ffffff)",inputBorder:"var(--vscode-input-border, #cecece)",inputForeground:"var(--vscode-input-foreground, #1f1f1f)",primaryBackground:"var(--vscode-button-background, #0078d4)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #106ebe)",badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #0060c0)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #f0f0f0)",skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}},a={colors:{background:e.neutral900,foreground:e.gray200,border:e.neutral700,cardBackground:e.neutral850,cardHoverBorder:e.blue500,accent:e.blue500,accentForeground:e.white,muted:e.gray500,link:e.blue400,inputBackground:e.neutral800,inputBorder:e.neutral700,inputForeground:e.gray200,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue700,sidebarActiveForeground:e.white,sidebarHoverBackground:e.neutral800}},u={colors:{background:e.white,foreground:e.gray900,border:e.gray200,cardBackground:e.gray50,cardHoverBorder:e.blue500,accent:e.blue600,accentForeground:e.white,muted:e.gray500,link:e.blue600,inputBackground:e.white,inputBorder:e.gray300,inputForeground:e.gray900,primaryBackground:e.blue600,primaryForeground:e.white,primaryHoverBackground:e.blue700,badgeBackground:e.blue600,badgeForeground:e.white,sidebarActiveBackground:e.blue600,sidebarActiveForeground:e.white,sidebarHoverBackground:e.gray100,skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}};function c(e){var o=e.colors,d=e.radius,a=e.radiusLg,u=e.transition,c=e.fontSize,n=e.fontFamily;return r(r(r(r(r(r(r({"--usp-bg":o.background,"--usp-fg":o.foreground,"--usp-border":o.border,"--usp-card-bg":o.cardBackground,"--usp-card-hover-border":o.cardHoverBorder,"--usp-accent":o.accent,"--usp-primary-fg":o.accentForeground,"--usp-muted":o.muted,"--usp-link-fg":o.link,"--usp-input-bg":o.inputBackground,"--usp-input-border":o.inputBorder,"--usp-input-fg":o.inputForeground,"--usp-primary-bg":o.primaryBackground,"--usp-primary-hover-bg":o.primaryHoverBackground,"--usp-badge-bg":o.badgeBackground,"--usp-badge-fg":o.badgeForeground,"--usp-sidebar-active-bg":o.sidebarActiveBackground,"--usp-sidebar-active-fg":o.sidebarActiveForeground,"--usp-sidebar-hover-bg":o.sidebarHoverBackground},o.skeletonShimmerRgb&&{"--usp-skeleton-shimmer-rgb":o.skeletonShimmerRgb}),o.skeletonShimmerOpacity&&{"--usp-skeleton-shimmer-opacity":o.skeletonShimmerOpacity}),d&&{"--usp-radius":d}),a&&{"--usp-radius-lg":a}),u&&{"--usp-transition":u}),c&&{fontSize:c}),n&&{fontFamily:n})}export{a as darkTheme,u as lightTheme,c as themeToStyle,e as uspColorPalette,d as uspVSCodeLightTheme,o as vscodeTheme};
1
+ const r={blue400:"#60a5fa",blue500:"#3b82f6",blue600:"#2563eb",blue700:"#1d4ed8",cyan400:"#22d3ee",cyan500:"#06b6d4",green400:"#4ade80",green500:"#22c55e",red400:"#f87171",red500:"#ef4444",amber400:"#fbbf24",amber500:"#f59e0b",purple400:"#c084fc",purple500:"#a855f7",purple600:"#9333ea",gray50:"#f9fafb",gray100:"#f3f4f6",gray200:"#e5e7eb",gray300:"#d1d5db",gray400:"#9ca3af",gray500:"#6b7280",gray600:"#4b5563",gray700:"#374151",gray800:"#1f2937",gray900:"#111827",neutral700:"#404040",neutral750:"#333333",neutral800:"#262626",neutral850:"#1f1f1f",neutral900:"#171717",neutral950:"#0a0a0a",white:"#ffffff",offWhite:"#f8f8f8",vscodeBlue:"#007fd4",vscodeDarkBg:"#1e1e1e",vscodeDarkCard:"#252526",vscodeDarkBorder:"#3c3c3c",vscodeDarkInput:"#3c3c3c",vscodeDarkMuted:"#858585"},e={colors:{background:"var(--vscode-editor-background, #1e1e1e)",foreground:"var(--vscode-editor-foreground, #cccccc)",border:"var(--vscode-panel-border, #3c3c3c)",cardBackground:"var(--vscode-editorWidget-background, #252526)",cardHoverBorder:"var(--vscode-focusBorder, #007fd4)",accent:"var(--vscode-focusBorder, #007fd4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #858585)",link:"var(--vscode-textLink-foreground, #3794ff)",inputBackground:"var(--vscode-input-background, #3c3c3c)",inputBorder:"var(--vscode-input-border, #3c3c3c)",inputForeground:"var(--vscode-input-foreground, #cccccc)",primaryBackground:"var(--vscode-button-background, #0e639c)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #1177bb)",badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #094771)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #2a2d2e)"}},o={colors:{background:"var(--vscode-editor-background, #ffffff)",foreground:"var(--vscode-editor-foreground, #1f1f1f)",border:"var(--vscode-panel-border, #e5e5e5)",cardBackground:"var(--vscode-editorWidget-background, #f8f8f8)",cardHoverBorder:"var(--vscode-focusBorder, #0078d4)",accent:"var(--vscode-focusBorder, #0078d4)",accentForeground:"var(--vscode-button-foreground, #ffffff)",muted:"var(--vscode-descriptionForeground, #717171)",link:"var(--vscode-textLink-foreground, #006ab1)",inputBackground:"var(--vscode-input-background, #ffffff)",inputBorder:"var(--vscode-input-border, #cecece)",inputForeground:"var(--vscode-input-foreground, #1f1f1f)",primaryBackground:"var(--vscode-button-background, #0078d4)",primaryForeground:"var(--vscode-button-foreground, #ffffff)",primaryHoverBackground:"var(--vscode-button-hoverBackground, #106ebe)",badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:"var(--vscode-list-activeSelectionBackground, #0060c0)",sidebarActiveForeground:"var(--vscode-list-activeSelectionForeground, #ffffff)",sidebarHoverBackground:"var(--vscode-list-hoverBackground, #f0f0f0)",skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}},d={colors:{background:r.neutral900,foreground:r.gray200,border:r.neutral700,cardBackground:r.neutral850,cardHoverBorder:r.blue500,accent:r.blue500,accentForeground:r.white,muted:r.gray500,link:r.blue400,inputBackground:r.neutral800,inputBorder:r.neutral700,inputForeground:r.gray200,primaryBackground:r.blue600,primaryForeground:r.white,primaryHoverBackground:r.blue700,badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:r.blue700,sidebarActiveForeground:r.white,sidebarHoverBackground:r.neutral800}},a={colors:{background:r.white,foreground:r.gray900,border:r.gray200,cardBackground:r.gray50,cardHoverBorder:r.blue500,accent:r.blue600,accentForeground:r.white,muted:r.gray500,link:r.blue600,inputBackground:r.white,inputBorder:r.gray300,inputForeground:r.gray900,primaryBackground:r.blue600,primaryForeground:r.white,primaryHoverBackground:r.blue700,badgeBackground:r.blue600,badgeForeground:r.white,sidebarActiveBackground:r.blue600,sidebarActiveForeground:r.white,sidebarHoverBackground:r.gray100,skeletonShimmerRgb:"0, 0, 0",skeletonShimmerOpacity:"0.06"}};function c(r){const{colors:e,radius:o,radiusLg:d,transition:a,fontSize:c,fontFamily:u}=r;return{"--usp-bg":e.background,"--usp-fg":e.foreground,"--usp-border":e.border,"--usp-card-bg":e.cardBackground,"--usp-card-hover-border":e.cardHoverBorder,"--usp-accent":e.accent,"--usp-primary-fg":e.accentForeground,"--usp-muted":e.muted,"--usp-link-fg":e.link,"--usp-input-bg":e.inputBackground,"--usp-input-border":e.inputBorder,"--usp-input-fg":e.inputForeground,"--usp-primary-bg":e.primaryBackground,"--usp-primary-hover-bg":e.primaryHoverBackground,"--usp-badge-bg":e.badgeBackground,"--usp-badge-fg":e.badgeForeground,"--usp-sidebar-active-bg":e.sidebarActiveBackground,"--usp-sidebar-active-fg":e.sidebarActiveForeground,"--usp-sidebar-hover-bg":e.sidebarHoverBackground,...e.skeletonShimmerRgb&&{"--usp-skeleton-shimmer-rgb":e.skeletonShimmerRgb},...e.skeletonShimmerOpacity&&{"--usp-skeleton-shimmer-opacity":e.skeletonShimmerOpacity},...o&&{"--usp-radius":o},...d&&{"--usp-radius-lg":d},...a&&{"--usp-transition":a},...c&&{fontSize:c},...u&&{fontFamily:u}}}export{d as darkTheme,a as lightTheme,c as themeToStyle,r as uspColorPalette,o as uspVSCodeLightTheme,e as vscodeTheme};
2
2
  //# sourceMappingURL=UserStoryPicker.theme.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{useCallback as t}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as l}from"./UserStoryScopeDropdown.js";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:[r("path",{d:"m12 19-7-7 7-7"}),r("path",{d:"M19 12H5"})]}))}function i(){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 c(c){var s,d=c.label,p=c.className,v=c.style,u=c.labelStyle;c.children;var m=n(),w=m.state,h=m.dispatch,j=m.classNames,k=m.renderProps,y=m.selectedProject,_=m.onViewChange,f="project-detail"===w.viewMode,S="project-detail"===w.viewMode&&!w.selectedProjectId,b="favorites"===w.viewMode,E=t(function(){return b?(h({type:"SHOW_RECENT_IN_SPLIT"}),h({type:"SET_VIEW",payload:"project-detail"}),void(null==_||_("project-detail"))):S?(h({type:"SELECT_PROJECT",payload:null}),void(null==_||_("projects"))):void("project-detail"===w.viewMode?(h({type:"SELECT_PROJECT",payload:null}),null==_||_("projects")):"projects"===w.viewMode&&(h({type:"SET_VIEW",payload:"recent"}),null==_||_("recent")))},[b,S,w.viewMode,h,_]),M=null!==(s=null!=d?d:b?"View Shortlisted Story":void 0)&&void 0!==s?s:S?"Recent User Stories":"project-detail"===w.viewMode&&y?y.name:"Projects",N=["usp-back-nav",j.backNav,p].filter(Boolean).join(" ");return o("div",e({className:N,style:v},{children:[o("div",e({className:"usp-back-nav__left"},{children:[r("button",e({type:"button",className:"usp-back-nav__arrow",onClick:E},{children:k.renderBackIcon?k.renderBackIcon():r(a,{})})),"project-detail"===w.viewMode&&!S&&r("span",e({className:"usp-back-nav__icon"},{children:k.renderFolderIcon?k.renderFolderIcon():r(i,{})})),r("span",e({className:"usp-back-nav__label",style:u},{children:M}))]})),f&&r(l,{})]}))}export{c as BackNav};
1
+ import{jsxs as e,jsx as o}from"react/jsx-runtime";import{useCallback as r}from"react";import{useUSPContext as t}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as n}from"./UserStoryScopeDropdown.js";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:[o("path",{d:"m12 19-7-7 7-7"}),o("path",{d:"M19 12H5"})]})}function a(){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:"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({label:c,className:i,style:s,labelStyle:d,children:p}){var v;const{state:u,dispatch:w,classNames:m,renderProps:h,selectedProject:j,onViewChange:k}=t(),y="project-detail"===u.viewMode,_="project-detail"===u.viewMode&&!u.selectedProjectId,S="favorites"===u.viewMode,f=r(()=>S?(w({type:"SHOW_RECENT_IN_SPLIT"}),w({type:"SET_VIEW",payload:"project-detail"}),void(null==k||k("project-detail"))):_?(w({type:"SELECT_PROJECT",payload:null}),void(null==k||k("projects"))):void("project-detail"===u.viewMode?(w({type:"SELECT_PROJECT",payload:null}),null==k||k("projects")):"projects"===u.viewMode&&(w({type:"SET_VIEW",payload:"recent"}),null==k||k("recent"))),[S,_,u.viewMode,w,k]),E=null!==(v=null!=c?c:S?"View Shortlisted Story":void 0)&&void 0!==v?v:_?"Recent User Stories":"project-detail"===u.viewMode&&j?j.name:"Projects",b=["usp-back-nav",m.backNav,i].filter(Boolean).join(" ");return e("div",{className:b,style:s,children:[e("div",{className:"usp-back-nav__left",children:[o("button",{type:"button",className:"usp-back-nav__arrow",onClick:f,children:h.renderBackIcon?h.renderBackIcon():o(l,{})}),"project-detail"===u.viewMode&&!_&&o("span",{className:"usp-back-nav__icon",children:h.renderFolderIcon?h.renderFolderIcon():o(a,{})}),o("span",{className:"usp-back-nav__label",style:d,children:E})]}),y&&o(n,{})]})}export{c as BackNav};
2
2
  //# sourceMappingURL=BackNav.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r,Fragment as n}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";function a(a){var o=a.type,s=a.value,l=a.label,c=a.className,u=a.style,d=t(),i=d.classNames,m=d.renderProps;if(m.renderBadge)return r(n,{children:m.renderBadge(o,s)});var p=["usp-badge","new"===o&&"usp-badge--new","count"===o&&"usp-badge--count","new"===o&&i.badgeNew,"count"===o&&i.badgeCount,i.badge,c].filter(Boolean).join(" "),b=null!=l?l:"new"===o?"New":"".concat(null!=s?s:0," Artifacts");return r("span",e({className:p,style:u},{children:b}))}export{a as Badge};
1
+ import{jsx as e,Fragment as n}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";function t({type:t,value:a,label:s,className:o,style:l}){const{classNames:c,renderProps:u}=r();if(u.renderBadge)return e(n,{children:u.renderBadge(t,a)});const d=["usp-badge","new"===t&&"usp-badge--new","count"===t&&"usp-badge--count","new"===t&&c.badgeNew,"count"===t&&c.badgeCount,c.badge,o].filter(Boolean).join(" ");return e("span",{className:d,style:l,children:null!=s?s:"new"===t?"New":`${null!=a?a:0} Artifacts`})}export{t as Badge};
2
2
  //# sourceMappingURL=Badge.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{useCallback as r}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";function s(){return t("svg",e({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},{children:t("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"})}))}function i(){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:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"m15 9-6 6"}),t("path",{d:"m9 9 6 6"})]}))}function l(l){var a=l.label,c=void 0===a?"Browse Projects":a,p=l.activeLabel,d=void 0===p?"Browse All Projects":p,u=l.className,w=l.style,m=n(),h=m.state,b=m.dispatch,v=m.classNames,f=m.onViewChange,j="projects"===h.viewMode||"project-detail"===h.viewMode,g=r(function(){j?(b({type:"SET_VIEW",payload:"recent"}),null==f||f("recent")):(b({type:"SET_VIEW",payload:"projects"}),null==f||f("projects"))},[j,b,f]),k=["usp-browse-btn",j&&"usp-browse-btn--active",v.browseToggle,u].filter(Boolean).join(" ");return o("button",e({type:"button",className:k,style:w,onClick:g},{children:[t("span",e({className:"usp-browse-btn__icon"},{children:t(s,{})})),j?d:c,j&&t("span",e({className:"usp-browse-btn__close"},{children:t(i,{})}))]}))}export{l as BrowseProjectsButton};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useCallback as o}from"react";import{useUSPContext as r}from"../UserStoryPicker.context.js";function n(){return t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:t("path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2"})})}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:[t("circle",{cx:"12",cy:"12",r:"10"}),t("path",{d:"m15 9-6 6"}),t("path",{d:"m9 9 6 6"})]})}function l({label:l="Browse Projects",activeLabel:c="Browse All Projects",className:a,style:i}){const{state:p,dispatch:w,classNames:d,onViewChange:u}=r(),h="projects"===p.viewMode||"project-detail"===p.viewMode,m=o(()=>{h?(w({type:"SET_VIEW",payload:"recent"}),null==u||u("recent")):(w({type:"SET_VIEW",payload:"projects"}),null==u||u("projects"))},[h,w,u]),b=["usp-browse-btn",h&&"usp-browse-btn--active",d.browseToggle,a].filter(Boolean).join(" ");return e("button",{type:"button",className:b,style:i,onClick:m,children:[t("span",{className:"usp-browse-btn__icon",children:t(n,{})}),h?c:l,h&&t("span",{className:"usp-browse-btn__close",children:t(s,{})})]})}export{l as BrowseProjectsButton};
2
2
  //# sourceMappingURL=BrowseProjectsButton.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{useUSPContext as r}from"../UserStoryPicker.context.js";import{UserStoryCard as o}from"./UserStoryCard.js";import{ProjectCard as l}from"./ProjectCard.js";function a(){return t("div",e({className:"usp-skeleton-card"},{children:[t("div",e({className:"usp-skeleton-card__header"},{children:[s("div",{className:"usp-skeleton usp-skeleton--bookmark"}),s("div",{className:"usp-skeleton usp-skeleton--id"}),s("div",{className:"usp-skeleton usp-skeleton--title"}),s("div",{className:"usp-skeleton usp-skeleton--radio"})]})),t("div",e({className:"usp-skeleton-card__project"},{children:[s("div",{className:"usp-skeleton usp-skeleton--folder"}),s("div",{className:"usp-skeleton usp-skeleton--project-name"})]})),s("div",{className:"usp-skeleton usp-skeleton--desc-line"}),s("div",{className:"usp-skeleton usp-skeleton--desc-line usp-skeleton--desc-line-short"}),s("div",{className:"usp-skeleton usp-skeleton--date"})]}))}function i(i){var n=i.className,c=i.style,d=i.children,p=r(),m=p.state,u=p.visibleStories,k=p.visibleProjects,v=p.classNames,N=p.renderProps,f=p.isLoadingStories,y=p.isLoadingProjects,h="projects"===m.viewMode,j=h?y:f,g=h?k:u,_=0===g.length,S=["usp-card-grid",_&&!j&&"usp-card-grid--empty",v.cardGrid,n].filter(Boolean).join(" ");return"function"==typeof d?s("div",e({className:S,style:c},{children:d(g,m.viewMode)})):d?s("div",e({className:S,style:c},{children:d})):j&&_?s("div",e({className:S,style:c},{children:Array.from({length:4}).map(function(e,t){return s(a,{},t)})})):_?s("div",e({className:S,style:c},{children:s("div",e({className:"usp-card-grid__empty-state"},{children:N.renderEmptyState?N.renderEmptyState(m.viewMode):"No ".concat(h?"projects":"user stories"," found")}))})):t("div",e({className:S,style:c},{children:[" ",h?k.map(function(e){return s(l,{project:e},e.id)}):u.map(function(e){return s(o,{story:e},e.user_story_id)}),j&&Array.from({length:4}).map(function(e,t){return s(a,{},"skel-".concat(t))})]}))}export{i as CardGrid};
1
+ import{jsx as e,jsxs as s}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";import{UserStoryCard as r}from"./UserStoryCard.js";import{ProjectCard as l}from"./ProjectCard.js";function o(){return s("div",{className:"usp-skeleton-card",children:[s("div",{className:"usp-skeleton-card__header",children:[e("div",{className:"usp-skeleton usp-skeleton--bookmark"}),e("div",{className:"usp-skeleton usp-skeleton--id"}),e("div",{className:"usp-skeleton usp-skeleton--title"}),e("div",{className:"usp-skeleton usp-skeleton--radio"})]}),s("div",{className:"usp-skeleton-card__project",children:[e("div",{className:"usp-skeleton usp-skeleton--folder"}),e("div",{className:"usp-skeleton usp-skeleton--project-name"})]}),e("div",{className:"usp-skeleton usp-skeleton--desc-line"}),e("div",{className:"usp-skeleton usp-skeleton--desc-line usp-skeleton--desc-line-short"}),e("div",{className:"usp-skeleton usp-skeleton--date"})]})}function a({className:a,style:i,children:d}){const{state:n,visibleStories:c,visibleProjects:p,classNames:m,renderProps:u,isLoadingStories:k,isLoadingProjects:v}=t(),N="projects"===n.viewMode,y=N?v:k,h=N?p:c,f=0===h.length,j=["usp-card-grid",f&&!y&&"usp-card-grid--empty",m.cardGrid,a].filter(Boolean).join(" ");return"function"==typeof d?e("div",{className:j,style:i,children:d(h,n.viewMode)}):d?e("div",{className:j,style:i,children:d}):y&&f?e("div",{className:j,style:i,children:Array.from({length:4}).map((s,t)=>e(o,{},t))}):f?e("div",{className:j,style:i,children:e("div",{className:"usp-card-grid__empty-state",children:u.renderEmptyState?u.renderEmptyState(n.viewMode):`No ${N?"projects":"user stories"} found`})}):s("div",{className:j,style:i,children:[" ",N?p.map(s=>e(l,{project:s},s.id)):c.map(s=>e(r,{story:s},s.user_story_id)),y&&Array.from({length:4}).map((s,t)=>e(o,{},`skel-${t}`))]})}export{a as CardGrid};
2
2
  //# sourceMappingURL=CardGrid.js.map
@@ -1,2 +1,2 @@
1
- import{__awaiter as t,__generator as r,__assign as e}from"tslib";import{jsxs as o,Fragment as n,jsx as i}from"react/jsx-runtime";import{useState as c,useCallback as s}from"react";import{useUSPContext as a}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as d}from"./UserStoryImportDialog.js";function l(l){var u=this,p=l.story,f=a(),h=f.adapter,m=f.onProceed,y=f.hidePopUp,v=f.dispatch,P=f.classNames,b=f.renderProps,g=h.sendNotification,C=h.sendEvent,_=h.onProceedComplete,w=c(!1),k=w[0],x=w[1],S=c(!1),B=S[0],j=S[1],N=s(function(t,r){null==g||g(t,r)},[g]),U=s(function(e){return t(u,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return(null==p?void 0:p.artifact_id)?(x(!0),[4,null==_?void 0:_({selectedStory:p,importChoice:e})]):(N("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error"),[2]);case 1:return t.sent(),N("You selected userStory ".concat(null==p?void 0:p.storyId,": ").concat(null==p?void 0:p.title),"info"),null==C||C({}),m(p),[2]}})})},[p,N,_,C,m]),E=s(function(e){return t(u,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return e.stopPropagation(),v({type:"SELECT_STORY",payload:p.user_story_id}),p.multi_user_story&&!y?(j(!0),[2]):[4,U("all")];case 1:return t.sent(),[2]}})})},[p,v,y,U]),I=s(function(e){return t(u,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return j(!1),[4,U(e)];case 1:return t.sent(),[2]}})})},[U]),L=s(function(t){j(t)},[]);return o(n,{children:[b.renderCardProceedButton?b.renderCardProceedButton(p,E,k):i("button",e({type:"button",className:["usp-card__proceed-btn",P.cardProceedButton].filter(Boolean).join(" "),onClick:E,disabled:k},{children:k?o(n,{children:[o("svg",e({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..."]}):"Proceed"})),i(d,{open:B,onOpenChange:L,onConfirm:I})]})}export{l as CardProceedButton};
1
+ import{jsxs as e,Fragment as r,jsx as o}from"react/jsx-runtime";import{useState as t,useCallback as n}from"react";import{useUSPContext as i}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as s}from"./UserStoryImportDialog.js";function a({story:a}){const{adapter:c,onProceed:d,hidePopUp:l,dispatch:p,classNames:u,renderProps:m}=i(),{sendNotification:y,sendEvent:h,onProceedComplete:f}=c,[P,g]=t(!1),[C,_]=t(!1),w=n((e,r)=>{null==y||y(e,r)},[y]),k=n(async e=>{(null==a?void 0:a.artifact_id)?(g(!0),await(null==f?void 0:f({selectedStory:a,importChoice:e})),w(`You selected userStory ${null==a?void 0:a.storyId}: ${null==a?void 0:a.title}`,"info"),null==h||h({}),d(a)):w("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")},[a,w,f,h,d]),v=n(async e=>{e.stopPropagation(),p({type:"SELECT_STORY",payload:a.user_story_id}),!a.multi_user_story||l?await k("all"):_(!0)},[a,p,l,k]),b=n(async e=>{_(!1),await k(e)},[k]),x=n(e=>{_(e)},[]);return e(r,{children:[m.renderCardProceedButton?m.renderCardProceedButton(a,v,P):o("button",{type:"button",className:["usp-card__proceed-btn",u.cardProceedButton].filter(Boolean).join(" "),onClick:v,disabled:P,children:P?e(r,{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:[o("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),o("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]}),"Loading..."]}):"Proceed"}),o(s,{open:C,onOpenChange:x,onConfirm:b})]})}export{a as CardProceedButton};
2
2
  //# sourceMappingURL=CardProceedButton.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsx as r}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";function o(o){var s=o.className,n=o.style,a=o.children,i=["usp-content-area",t().classNames.contentArea,s].filter(Boolean).join(" ");return r("div",e({className:i,style:n},{children:a}))}export{o as ContentArea};
1
+ import{jsx as e}from"react/jsx-runtime";import{useUSPContext as t}from"../UserStoryPicker.context.js";function r({className:r,style:n,children:o}){const{classNames:s}=t(),c=["usp-content-area",s.contentArea,r].filter(Boolean).join(" ");return e("div",{className:c,style:n,children:o})}export{r as ContentArea};
2
2
  //# sourceMappingURL=ContentArea.js.map
@@ -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,l=t.children,m=["usp-footer",o().classNames.footer,s].filter(Boolean).join(" ");return e("div",r({className:m,style:i},{children:l}))}export{t as Footer};
1
+ import{jsx as e}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";function o({className:o,style:t,children:s}){const{classNames:c}=r(),i=["usp-footer",c.footer,o].filter(Boolean).join(" ");return e("div",{className:i,style:t,children:s})}export{o as Footer};
2
2
  //# sourceMappingURL=Footer.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"tslib";import{jsxs as t,jsx as l}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";import{adaptLabel as i}from"../lib/adaptLabel.js";function s(s){var a=s.title,o=s.subtitle,n=s.className,m=s.style,c=s.titleStyle,d=s.subtitleStyle,p=s.children,h=r(),y=h.classNames,u=h.state;a=i(a,u.typeBy),o=o?i(o,u.typeBy):o;var f=["usp-header",y.header,n].filter(Boolean).join(" "),b=["usp-header__title",y.headerTitle].filter(Boolean).join(" "),j=["usp-header__subtitle",y.headerSubtitle].filter(Boolean).join(" ");return t("div",e({className:f,style:m},{children:[l("h1",e({className:b,style:c},{children:a})),o&&l("p",e({className:j,style:d},{children:o})),p]}))}export{s as Header};
1
+ import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useUSPContext as l}from"../UserStoryPicker.context.js";import{adaptLabel as s}from"../lib/adaptLabel.js";function r({title:r,subtitle:i,className:a,style:o,titleStyle:n,subtitleStyle:c,children:d}){const{classNames:m,state:h}=l();r=s(r,h.typeBy),i=i?s(i,h.typeBy):i;const p=["usp-header",m.header,a].filter(Boolean).join(" "),y=["usp-header__title",m.headerTitle].filter(Boolean).join(" "),u=["usp-header__subtitle",m.headerSubtitle].filter(Boolean).join(" ");return e("div",{className:p,style:o,children:[t("h1",{className:y,style:n,children:r}),i&&t("p",{className:u,style:c,children:i}),d]})}export{r as Header};
2
2
  //# sourceMappingURL=Header.js.map
@@ -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