@e-llm-studio/requirement-ai 0.0.224 → 0.0.225

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (438) hide show
  1. package/dist/cjs/features/CitationRenderer/CitationRenderer.js +1 -1
  2. package/dist/cjs/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  3. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  4. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  5. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  6. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  7. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  8. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  9. package/dist/cjs/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  10. package/dist/cjs/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  11. package/dist/cjs/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  12. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  13. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  14. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  15. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  16. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  17. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  18. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  19. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  20. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  21. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  22. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  23. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  24. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  25. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  26. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  27. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  28. package/dist/cjs/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  29. package/dist/cjs/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  30. package/dist/cjs/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  31. package/dist/cjs/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  32. package/dist/cjs/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  33. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  34. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  35. package/dist/cjs/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  36. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  37. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  38. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  39. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  40. package/dist/cjs/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  41. package/dist/cjs/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  42. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  43. package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  44. package/dist/cjs/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  45. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  46. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  47. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  48. package/dist/cjs/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  49. package/dist/cjs/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  50. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  51. package/dist/cjs/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  52. package/dist/cjs/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  53. package/dist/cjs/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  54. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  55. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  56. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  57. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  58. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  59. package/dist/cjs/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  60. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  61. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  62. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  63. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  64. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  65. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  66. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  67. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  68. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  69. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  70. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  71. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  72. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  73. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  74. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  75. package/dist/cjs/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  76. package/dist/cjs/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  77. package/dist/cjs/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  78. package/dist/cjs/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  79. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  80. package/dist/cjs/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  81. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  82. package/dist/cjs/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  83. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  84. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  85. package/dist/cjs/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  86. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  87. package/dist/cjs/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  88. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  89. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  90. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  91. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  92. package/dist/cjs/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  93. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  94. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  95. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  96. package/dist/cjs/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  97. package/dist/cjs/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  98. package/dist/cjs/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  99. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  100. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  101. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  102. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  103. package/dist/cjs/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  104. package/dist/cjs/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  105. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  106. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  107. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  108. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  109. package/dist/cjs/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  110. package/dist/cjs/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  111. package/dist/cjs/features/RequirementAI/components/segment/Segment.js +1 -1
  112. package/dist/cjs/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  113. package/dist/cjs/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  114. package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  115. package/dist/cjs/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  116. package/dist/cjs/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  117. package/dist/cjs/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  118. package/dist/cjs/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  119. package/dist/cjs/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  120. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  121. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  122. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  123. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  124. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  125. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  126. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  127. package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  128. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  129. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  130. package/dist/cjs/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  131. package/dist/cjs/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  132. package/dist/cjs/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  133. package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  134. package/dist/cjs/features/RequirementAI/icons/AiGapIcon.js +1 -1
  135. package/dist/cjs/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  136. package/dist/cjs/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  137. package/dist/cjs/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  138. package/dist/cjs/features/RequirementAI/icons/BrainRed.js +1 -1
  139. package/dist/cjs/features/RequirementAI/icons/CDIcon.js +1 -1
  140. package/dist/cjs/features/RequirementAI/icons/CheckIcon.js +1 -1
  141. package/dist/cjs/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  142. package/dist/cjs/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  143. package/dist/cjs/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  144. package/dist/cjs/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  145. package/dist/cjs/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  146. package/dist/cjs/features/RequirementAI/icons/PencilIcon.js +1 -1
  147. package/dist/cjs/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  148. package/dist/cjs/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  149. package/dist/cjs/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  150. package/dist/cjs/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  151. package/dist/cjs/features/RequirementAI/icons/TrashIcon.js +1 -1
  152. package/dist/cjs/features/RequirementAI/shared/Accordian.js +1 -1
  153. package/dist/cjs/features/RequirementAI/shared/AtomicButton.js +1 -1
  154. package/dist/cjs/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  155. package/dist/cjs/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  156. package/dist/cjs/features/RequirementAI/shared/CodeViewer.js +1 -1
  157. package/dist/cjs/features/RequirementAI/shared/ExpandableOl.js +1 -1
  158. package/dist/cjs/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  159. package/dist/cjs/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  160. package/dist/cjs/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  161. package/dist/cjs/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  162. package/dist/cjs/features/RequirementAI/store/markdown-context.js +1 -1
  163. package/dist/cjs/features/RequirementAI/store/ref.context.js +1 -1
  164. package/dist/cjs/features/RequirementAI/utils/css.utils.js +1 -1
  165. package/dist/cjs/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  166. package/dist/cjs/features/RequirementAI/utils/helpers.js +1 -1
  167. package/dist/cjs/features/RequirementAI/utils/json-helper.js +1 -1
  168. package/dist/cjs/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  169. package/dist/cjs/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  170. package/dist/cjs/features/RequirementAI/utils/user-story.utils.js +1 -1
  171. package/dist/cjs/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  172. package/dist/cjs/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  173. package/dist/cjs/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  174. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  175. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  176. package/dist/cjs/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  177. package/dist/cjs/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  178. package/dist/cjs/features/UserStoryImport/UserStoryPicker.js +1 -1
  179. package/dist/cjs/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  180. package/dist/cjs/features/UserStoryImport/components/BackNav.js +1 -1
  181. package/dist/cjs/features/UserStoryImport/components/Badge.js +1 -1
  182. package/dist/cjs/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  183. package/dist/cjs/features/UserStoryImport/components/CardGrid.js +1 -1
  184. package/dist/cjs/features/UserStoryImport/components/CardProceedButton.js +1 -1
  185. package/dist/cjs/features/UserStoryImport/components/ContentArea.js +1 -1
  186. package/dist/cjs/features/UserStoryImport/components/Footer.js +1 -1
  187. package/dist/cjs/features/UserStoryImport/components/Header.js +1 -1
  188. package/dist/cjs/features/UserStoryImport/components/NavRow.js +1 -1
  189. package/dist/cjs/features/UserStoryImport/components/ProceedButton.js +1 -1
  190. package/dist/cjs/features/UserStoryImport/components/ProjectCard.js +1 -1
  191. package/dist/cjs/features/UserStoryImport/components/ResizeHandle.js +1 -1
  192. package/dist/cjs/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  193. package/dist/cjs/features/UserStoryImport/components/SearchInput.js +1 -1
  194. package/dist/cjs/features/UserStoryImport/components/SectionHeading.js +1 -1
  195. package/dist/cjs/features/UserStoryImport/components/ShowMore.js +1 -1
  196. package/dist/cjs/features/UserStoryImport/components/Sidebar.js +1 -1
  197. package/dist/cjs/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  198. package/dist/cjs/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  199. package/dist/cjs/features/UserStoryImport/components/SidebarSection.js +1 -1
  200. package/dist/cjs/features/UserStoryImport/components/SortDropdown.js +1 -1
  201. package/dist/cjs/features/UserStoryImport/components/SplitLayout.js +1 -1
  202. package/dist/cjs/features/UserStoryImport/components/Toolbar.js +1 -1
  203. package/dist/cjs/features/UserStoryImport/components/TypeDropdown.js +1 -1
  204. package/dist/cjs/features/UserStoryImport/components/UserStoryCard.js +1 -1
  205. package/dist/cjs/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  206. package/dist/cjs/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  207. package/dist/cjs/features/UserStoryImport/components/usePanelResize.js +1 -1
  208. package/dist/cjs/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  209. package/dist/cjs/features/UserStoryImport/hooks/useUSPData.js +1 -1
  210. package/dist/cjs/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  211. package/dist/cjs/features/UserStoryImport/index.js +1 -1
  212. package/dist/cjs/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  213. package/dist/cjs/features/UserStoryImport/lib/Tooltip.js +1 -1
  214. package/dist/cjs/features/UserStoryImport/lib/cn.js +1 -1
  215. package/dist/cjs/features/UserStoryImport/lib/dialog.js +1 -1
  216. package/dist/cjs/index.js +1 -1
  217. package/dist/features/CitationRenderer/CitationRenderer.js +1 -1
  218. package/dist/features/RequirementAI/components/CustomPopover/CustomPopover.js +1 -1
  219. package/dist/features/RequirementAI/components/GapRiskSidebar/GapRiskSidebar.js +1 -1
  220. package/dist/features/RequirementAI/components/GapRiskSidebar/components/GapItem/GapItem.js +1 -1
  221. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskCategorySection/RiskCategorySection.js +1 -1
  222. package/dist/features/RequirementAI/components/GapRiskSidebar/components/RiskSidebarCategorySection/RiskSidebarCategorySection.js +1 -1
  223. package/dist/features/RequirementAI/components/GapRiskSidebar/components/StoryNode/StoryNode.js +1 -1
  224. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithGap.js +1 -1
  225. package/dist/features/RequirementAI/components/GapRiskSidebar/utils/buildStoryWithRisk.js +1 -1
  226. package/dist/features/RequirementAI/components/RecommendationBlock/RecommendationBlock.js +1 -1
  227. package/dist/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.js +1 -1
  228. package/dist/features/RequirementAI/components/RichTextEditor/Editor/Editor.js +1 -1
  229. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Context/ContextMenu.js +1 -1
  230. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorContainer/EditorContainer.js +1 -1
  231. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorPlaceholder/EditorPlaceholder.js +1 -1
  232. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/EditorToolbar.js +1 -1
  233. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarButton/ToolbarButton.js +1 -1
  234. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/ToolbarDivider/ToolbarDivider.js +1 -1
  235. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/EditorToolbar/components/UndoRedo/UndoRedo.js +1 -1
  236. package/dist/features/RequirementAI/components/RichTextEditor/Editor/components/Icons/Icon.js +1 -1
  237. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/editorConfig.js +1 -1
  238. package/dist/features/RequirementAI/components/RichTextEditor/Editor/constants/objects.js +1 -1
  239. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/CommentPlugin/HTMLNode.js +1 -1
  240. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/DeleteNode.js +1 -1
  241. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/HighlightNode.js +1 -1
  242. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InitialHtml.js +1 -1
  243. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/InsertNode.js +1 -1
  244. package/dist/features/RequirementAI/components/RichTextEditor/Editor/plugins/LayoutPlugin.js +1 -1
  245. package/dist/features/RequirementAI/components/RichTextEditor/Editor/theme/theme.js +1 -1
  246. package/dist/features/RequirementAI/components/RichTextEditor/Editor/utils/getSelectedNode.js +1 -1
  247. package/dist/features/RequirementAI/components/RichTextEditor/RichTextEditor.js +1 -1
  248. package/dist/features/RequirementAI/components/UnsavedChangesPopup/UnsavedChangesPopup.js +1 -1
  249. package/dist/features/RequirementAI/components/UserStoryCard/AttachedContext.js +1 -1
  250. package/dist/features/RequirementAI/components/UserStoryCard/ClinicalTrialSection.js +1 -1
  251. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CitationAnchor.js +1 -1
  252. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/CognitiveComponent.js +1 -1
  253. package/dist/features/RequirementAI/components/UserStoryCard/CognitiveComponents/ResizableSplitPane.js +1 -1
  254. package/dist/features/RequirementAI/components/UserStoryCard/Popups/DeviationSummary.js +1 -1
  255. package/dist/features/RequirementAI/components/UserStoryCard/Popups/IterateComponent.js +1 -1
  256. package/dist/features/RequirementAI/components/UserStoryCard/Popups/PopupDefaults.js +1 -1
  257. package/dist/features/RequirementAI/components/UserStoryCard/Popups/RedlineStatusCard.js +1 -1
  258. package/dist/features/RequirementAI/components/UserStoryCard/Popups/ToneToggle.js +1 -1
  259. package/dist/features/RequirementAI/components/UserStoryCard/TitleEditor/TitleEditor.js +1 -1
  260. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
  261. package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.module.css.js +1 -1
  262. package/dist/features/RequirementAI/components/UserStoryCard/icons/PdfViewerIcons.js +1 -1
  263. package/dist/features/RequirementAI/components/ai-reasoning/AIReasonAccordion.js +1 -1
  264. package/dist/features/RequirementAI/components/ai-reasoning/AiReasonMarkdownWrapper.js +1 -1
  265. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitation.js +1 -1
  266. package/dist/features/RequirementAI/components/ai-reasoning/AiReasoningCitationContent.js +1 -1
  267. package/dist/features/RequirementAI/components/ai-reasoning/BigEnoughComponent.js +1 -1
  268. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfRendererWrapper.js +1 -1
  269. package/dist/features/RequirementAI/components/ai-reasoning/CitationPdfViewer.js +1 -1
  270. package/dist/features/RequirementAI/components/ai-reasoning/ScannedCitationRenderer.js +1 -1
  271. package/dist/features/RequirementAI/components/ai-reasoning/pdfCitationUtils.js +1 -1
  272. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationContent.js +1 -1
  273. package/dist/features/RequirementAI/components/citations/appmod-citation/AppmodCitationRenderer.js +1 -1
  274. package/dist/features/RequirementAI/components/citations/appmod-citation/components/CodeLinkHandler.js +1 -1
  275. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/AppmodIcon.js +1 -1
  276. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/ChatBubbleIcon.js +1 -1
  277. package/dist/features/RequirementAI/components/citations/appmod-citation/icons/SparkleIcon.js +1 -1
  278. package/dist/features/RequirementAI/components/citations/appmod-citation/types.js +1 -1
  279. package/dist/features/RequirementAI/components/citations/audio-citation/SearchWaveFromWrapper.js +1 -1
  280. package/dist/features/RequirementAI/components/citations/audio-citation/WaveformCitationRenderer.js +1 -1
  281. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioCitationIcon.js +1 -1
  282. package/dist/features/RequirementAI/components/citations/audio-citation/components/AudioTimeLineSlider.js +1 -1
  283. package/dist/features/RequirementAI/components/citations/audio-citation/components/SegmentByWordsViral.js +1 -1
  284. package/dist/features/RequirementAI/components/citations/audio-citation/components/videoPlayer.js +1 -1
  285. package/dist/features/RequirementAI/components/citations/audio-citation/icons/AudioLinesIcon.js +1 -1
  286. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MaximizeIcon.js +1 -1
  287. package/dist/features/RequirementAI/components/citations/audio-citation/icons/MinimizeIcon.js +1 -1
  288. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PauseIcon.js +1 -1
  289. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlayIcon.js +1 -1
  290. package/dist/features/RequirementAI/components/citations/audio-citation/icons/PlaybackSpeedIcon.js +1 -1
  291. package/dist/features/RequirementAI/components/citations/audio-citation/icons/VideoIcon.js +1 -1
  292. package/dist/features/RequirementAI/components/citations/audio-citation/searchwaveform.js +1 -1
  293. package/dist/features/RequirementAI/components/citations/audio-citation/store/autoplay.wavefrom.js +1 -1
  294. package/dist/features/RequirementAI/components/citations/audio-citation/utils/word-segment-util.js +1 -1
  295. package/dist/features/RequirementAI/components/citations/big-enough/BigEnoughCitationRenderer.js +1 -1
  296. package/dist/features/RequirementAI/components/citations/chat-citation/ChatCitationRenderer.js +1 -1
  297. package/dist/features/RequirementAI/components/citations/file-citation/DocumentCitationIcon.js +1 -1
  298. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationContent.js +1 -1
  299. package/dist/features/RequirementAI/components/citations/file-citation/FileCitationRender.js +1 -1
  300. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebCitationRenderer.js +1 -1
  301. package/dist/features/RequirementAI/components/citations/gpt-web-citation/GptWebcitationPanel.js +1 -1
  302. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationContent.js +1 -1
  303. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationIcon.js +1 -1
  304. package/dist/features/RequirementAI/components/citations/image-citation/ImageCitationRenderer.js +1 -1
  305. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationContent.js +1 -1
  306. package/dist/features/RequirementAI/components/citations/rca-citation/RCACitationRenderer.js +1 -1
  307. package/dist/features/RequirementAI/components/citations/readfile-citation/CustomFileIcon.js +1 -1
  308. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationContent.js +1 -1
  309. package/dist/features/RequirementAI/components/citations/readfile-citation/ReadFileCitationRenderer.js +1 -1
  310. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/ExternalLinkIcon.js +1 -1
  311. package/dist/features/RequirementAI/components/citations/readfile-citation/icons/FileCodeIcon.js +1 -1
  312. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeCitationRenderer.js +1 -1
  313. package/dist/features/RequirementAI/components/citations/stormee-citation/StormeeContent.js +1 -1
  314. package/dist/features/RequirementAI/components/citations/stormee-citation/components/GradientButton.js +1 -1
  315. package/dist/features/RequirementAI/components/citations/stormee-citation/components/ProblemStatementCard.js +1 -1
  316. package/dist/features/RequirementAI/components/citations/web-citation/FullScreenIcon.js +1 -1
  317. package/dist/features/RequirementAI/components/citations/web-citation/ImagePreviewDialog.js +1 -1
  318. package/dist/features/RequirementAI/components/citations/web-citation/WebCitation.js +1 -1
  319. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationIcon.js +1 -1
  320. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationRenderer.js +1 -1
  321. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageContent.js +1 -1
  322. package/dist/features/RequirementAI/components/citations/web-citation/WebCitationWithImageRenderer.js +1 -1
  323. package/dist/features/RequirementAI/components/cra/PartialRequirementContent.js +1 -1
  324. package/dist/features/RequirementAI/components/lsc-reason-gap/CustomChatCrRedirection.js +1 -1
  325. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterBlock.js +1 -1
  326. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterContentWrapper.js +1 -1
  327. package/dist/features/RequirementAI/components/lsc-reason-gap/GapFilterItem.js +1 -1
  328. package/dist/features/RequirementAI/components/lsc-reason-gap/gapFilterSvgs.js +1 -1
  329. package/dist/features/RequirementAI/components/segment/ExampleComponentWrapper.js +1 -1
  330. package/dist/features/RequirementAI/components/segment/Segment.js +1 -1
  331. package/dist/features/RequirementAI/components/segment/SegmentLoader.js +1 -1
  332. package/dist/features/RequirementAI/components/segment/SegmentWrapper.js +1 -1
  333. package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
  334. package/dist/features/RequirementAI/components/story-screen/CompletionPanel.js +1 -1
  335. package/dist/features/RequirementAI/components/story-screen/ReplaceLearnedTags.js +1 -1
  336. package/dist/features/RequirementAI/components/story-screen/StreamingScreenSidebar.js +1 -1
  337. package/dist/features/RequirementAI/components/story-screen/SubfeatureBlock.js +1 -1
  338. package/dist/features/RequirementAI/components/story-screen/UserStoryScreen.js +1 -1
  339. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalContext.js +1 -1
  340. package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
  341. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalBadge/ApprovalBadge.js +1 -1
  342. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebar/ApprovalSidebar.js +1 -1
  343. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalSidebarItem/ApprovalSidebarItem.js +1 -1
  344. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ApprovalStatusBadge/ApprovalStatusBadge.js +1 -1
  345. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentBlock/ContentBlock.js +1 -1
  346. package/dist/features/RequirementAI/components/userstory-approval-screen/components/ContentSegment/ContentSegment.js +1 -1
  347. package/dist/features/RequirementAI/components/userstory-with-citation/UserStoryWithCitation.js +1 -1
  348. package/dist/features/RequirementAI/components/userstory-with-citation/components/HighlightButtonComponent.js +1 -1
  349. package/dist/features/RequirementAI/components/userstory-with-citation/components/InlineUpdatedComponent.js +1 -1
  350. package/dist/features/RequirementAI/hooks/useApprovalStatus.js +1 -1
  351. package/dist/features/RequirementAI/hooks/useDiffEditReviewMode.js +1 -1
  352. package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
  353. package/dist/features/RequirementAI/icons/AiGapIcon.js +1 -1
  354. package/dist/features/RequirementAI/icons/AiReasoningIcon.js +1 -1
  355. package/dist/features/RequirementAI/icons/BigEnoughIcon.js +1 -1
  356. package/dist/features/RequirementAI/icons/BookmarkIcon.js +1 -1
  357. package/dist/features/RequirementAI/icons/BrainRed.js +1 -1
  358. package/dist/features/RequirementAI/icons/CDIcon.js +1 -1
  359. package/dist/features/RequirementAI/icons/CheckIcon.js +1 -1
  360. package/dist/features/RequirementAI/icons/ChevronDownIcon.js +1 -1
  361. package/dist/features/RequirementAI/icons/ChevronUpIcon.js +1 -1
  362. package/dist/features/RequirementAI/icons/CognitiveDecision.js +1 -1
  363. package/dist/features/RequirementAI/icons/MeetingHighlightsIcon.js +1 -1
  364. package/dist/features/RequirementAI/icons/MenuUnfoldIcon.js +1 -1
  365. package/dist/features/RequirementAI/icons/PencilIcon.js +1 -1
  366. package/dist/features/RequirementAI/icons/ReasoningBulbIcon.js +1 -1
  367. package/dist/features/RequirementAI/icons/RelevanceScoreIcon.js +1 -1
  368. package/dist/features/RequirementAI/icons/SidebarCloseIcon.js +1 -1
  369. package/dist/features/RequirementAI/icons/SidebarOpenIcon.js +1 -1
  370. package/dist/features/RequirementAI/icons/TrashIcon.js +1 -1
  371. package/dist/features/RequirementAI/shared/Accordian.js +1 -1
  372. package/dist/features/RequirementAI/shared/AtomicButton.js +1 -1
  373. package/dist/features/RequirementAI/shared/CitationAIConfidenceDisplay.js +1 -1
  374. package/dist/features/RequirementAI/shared/CitationLoadingIndicator.js +1 -1
  375. package/dist/features/RequirementAI/shared/CodeViewer.js +1 -1
  376. package/dist/features/RequirementAI/shared/ExpandableOl.js +1 -1
  377. package/dist/features/RequirementAI/shared/GeneratedCodeCitation.js +1 -1
  378. package/dist/features/RequirementAI/shared/ReqAiCitationRenderer.js +1 -1
  379. package/dist/features/RequirementAI/shared/UpdatedAnimationContent.js +1 -1
  380. package/dist/features/RequirementAI/shared/useMarkdownSearch.js +1 -1
  381. package/dist/features/RequirementAI/store/markdown-context.js +1 -1
  382. package/dist/features/RequirementAI/store/ref.context.js +1 -1
  383. package/dist/features/RequirementAI/utils/css.utils.js +1 -1
  384. package/dist/features/RequirementAI/utils/diff-edit.utils.js +1 -1
  385. package/dist/features/RequirementAI/utils/helpers.js +1 -1
  386. package/dist/features/RequirementAI/utils/json-helper.js +1 -1
  387. package/dist/features/RequirementAI/utils/learned-tag.utils.js +1 -1
  388. package/dist/features/RequirementAI/utils/proccess-stream.utils.js +1 -1
  389. package/dist/features/RequirementAI/utils/user-story.utils.js +1 -1
  390. package/dist/features/RequirementAI/utils/userStoryAttachedContext.utils.js +1 -1
  391. package/dist/features/RequirementAI/utils/userstory-approval-transform.utils.js +1 -1
  392. package/dist/features/RequirementAI/utils/userstory-approval.utils.js +1 -1
  393. package/dist/features/RequirementAiCitations/AiReasoning/components/AIConfidenceDisplay.js +1 -1
  394. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/DocumentCitationIcon.js +1 -1
  395. package/dist/features/RequirementAiCitations/AiReasoning/components/icons/RelevanceScoreIcon.js +1 -1
  396. package/dist/features/UserStoryImport/UserStoryPicker.context.js +1 -1
  397. package/dist/features/UserStoryImport/UserStoryPicker.js +1 -1
  398. package/dist/features/UserStoryImport/UserStoryPicker.theme.js +1 -1
  399. package/dist/features/UserStoryImport/components/BackNav.js +1 -1
  400. package/dist/features/UserStoryImport/components/Badge.js +1 -1
  401. package/dist/features/UserStoryImport/components/BrowseProjectsButton.js +1 -1
  402. package/dist/features/UserStoryImport/components/CardGrid.js +1 -1
  403. package/dist/features/UserStoryImport/components/CardProceedButton.js +1 -1
  404. package/dist/features/UserStoryImport/components/ContentArea.js +1 -1
  405. package/dist/features/UserStoryImport/components/Footer.js +1 -1
  406. package/dist/features/UserStoryImport/components/Header.js +1 -1
  407. package/dist/features/UserStoryImport/components/NavRow.js +1 -1
  408. package/dist/features/UserStoryImport/components/ProceedButton.js +1 -1
  409. package/dist/features/UserStoryImport/components/ProjectCard.js +1 -1
  410. package/dist/features/UserStoryImport/components/ResizeHandle.js +1 -1
  411. package/dist/features/UserStoryImport/components/ScopeDropdown.js +1 -1
  412. package/dist/features/UserStoryImport/components/SearchInput.js +1 -1
  413. package/dist/features/UserStoryImport/components/SectionHeading.js +1 -1
  414. package/dist/features/UserStoryImport/components/ShowMore.js +1 -1
  415. package/dist/features/UserStoryImport/components/Sidebar.js +1 -1
  416. package/dist/features/UserStoryImport/components/SidebarFavoritesList.js +1 -1
  417. package/dist/features/UserStoryImport/components/SidebarProjectList.js +1 -1
  418. package/dist/features/UserStoryImport/components/SidebarSection.js +1 -1
  419. package/dist/features/UserStoryImport/components/SortDropdown.js +1 -1
  420. package/dist/features/UserStoryImport/components/SplitLayout.js +1 -1
  421. package/dist/features/UserStoryImport/components/Toolbar.js +1 -1
  422. package/dist/features/UserStoryImport/components/TypeDropdown.js +1 -1
  423. package/dist/features/UserStoryImport/components/UserStoryCard.js +1 -1
  424. package/dist/features/UserStoryImport/components/UserStoryImportDialog.js +1 -1
  425. package/dist/features/UserStoryImport/components/UserStoryScopeDropdown.js +1 -1
  426. package/dist/features/UserStoryImport/components/usePanelResize.js +1 -1
  427. package/dist/features/UserStoryImport/hooks/useFilteredItems.js +1 -1
  428. package/dist/features/UserStoryImport/hooks/useUSPData.js +1 -1
  429. package/dist/features/UserStoryImport/hooks/useUserStoryPickerState.js +1 -1
  430. package/dist/features/UserStoryImport/index.js +1 -1
  431. package/dist/features/UserStoryImport/lib/CustomTooltip.js +1 -1
  432. package/dist/features/UserStoryImport/lib/Tooltip.js +1 -1
  433. package/dist/features/UserStoryImport/lib/cn.js +1 -1
  434. package/dist/features/UserStoryImport/lib/dialog.js +1 -1
  435. package/dist/index.js +1 -1
  436. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts +11 -2
  437. package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
  438. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- import{jsx as s}from"react/jsx-runtime";import{FileCode as e,FileText as t,Clapperboard as a,Image as r,AudioLines as i}from"lucide-react";import o from"../icons/MeetingHighlightsIcon.js";var c={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},n=["js","jsx","ts","tsx","py","java","kt","kts","scala","go","rs","c","h","cpp","cc","cxx","hpp","hh","cs","fs","vb","swift","m","mm","rb","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","clj","cljs","groovy","gvy","sh","bash","zsh","fish","ps1","sql","asm","s","f","f90","f95","nim","zig","ml","mli","hs","lhs","ada","adb","ads","v","sv","vhd","vhdl","sol","tf","tfvars"],l=function(l,m){if(n.includes(l))return s(e,{size:24,className:"h-5 w-5 text-emerald-600"});switch(null==l?void 0:l.toLowerCase()){case"mp3":case"wav":case"audio":return s(i,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return s(r,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return s(a,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return s(t,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return s(t,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return s(t,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==m?void 0:m.startsWith("ST_"))return s("img",{src:c.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==m?void 0:m.startsWith("MH_"))return s(o,{});break;default:return s(t,{className:"h-5 w-5 text-yellow-600",size:24})}},m=function(s,e){if("json"===(null==s?void 0:s.toLowerCase())){if(null==e?void 0:e.startsWith("ST_"))return"Stormee";if(null==e?void 0:e.startsWith("MH_"))return"Meeting Highlights"}return s};export{l as GetFileIcon,c as assetList,m as getDisplayFileType};
1
+ import{jsx as s}from"react/jsx-runtime";import{FileCode as e,FileText as t,Clapperboard as a,Image as r,AudioLines as i}from"lucide-react";import o from"../icons/MeetingHighlightsIcon.js";const c={thinkingBulbIcon:"https://storymod-assests.pages.dev/ThinkingBulbIcon.gif",brainStormIcon:"https://storymod-assests.pages.dev/brainstorm.gif",brainStormCropped:"https://storymod-assests.pages.dev/brainstorm-cropped.gif",stormeeCitationIcon:"https://storymod-assests.pages.dev/stormee_citation_icon.svg",rcaCitationIcon:"https://storymod-assests.pages.dev/appmod-icon.svg"},n=["js","jsx","ts","tsx","py","java","kt","kts","scala","go","rs","c","h","cpp","cc","cxx","hpp","hh","cs","fs","vb","swift","m","mm","rb","php","pl","pm","r","jl","lua","dart","ex","exs","erl","hrl","clj","cljs","groovy","gvy","sh","bash","zsh","fish","ps1","sql","asm","s","f","f90","f95","nim","zig","ml","mli","hs","lhs","ada","adb","ads","v","sv","vhd","vhdl","sol","tf","tfvars"],l=(l,m)=>{if(n.includes(l))return s(e,{size:24,className:"h-5 w-5 text-emerald-600"});switch(null==l?void 0:l.toLowerCase()){case"mp3":case"wav":case"audio":return s(i,{className:"h-5 w-5 text-indigo-600",size:24});case"png":case"jpg":case"jpeg":case"image":case"heic":case"heif":return s(r,{className:"h-5 w-5 text-purple-500",size:24});case"mp4":case"avi":case"mov":case"video":return s(a,{className:"h-5 w-5 text-rose-500",size:24});case"pdf":return s(t,{className:"h-5 w-5 text-red-500",size:24});case"doc":case"docx":return s(t,{className:"h-5 w-5 text-blue-600",size:24});case"txt":return s(t,{className:"h-5 w-5 text-gray-600",size:24});case"json":if(null==m?void 0:m.startsWith("ST_"))return s("img",{src:c.stormeeCitationIcon,style:{mixBlendMode:"multiply"},className:"w-7 h-7"});if(null==m?void 0:m.startsWith("MH_"))return s(o,{});break;default:return s(t,{className:"h-5 w-5 text-yellow-600",size:24})}},m=(s,e)=>{if("json"===(null==s?void 0:s.toLowerCase())){if(null==e?void 0:e.startsWith("ST_"))return"Stormee";if(null==e?void 0:e.startsWith("MH_"))return"Meeting Highlights"}return s};export{l as GetFileIcon,c as assetList,m as getDisplayFileType};
2
2
  //# sourceMappingURL=userStoryAttachedContext.utils.js.map
@@ -1,2 +1,2 @@
1
- import{v4 as e}from"uuid";var n=function(e){if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(function(e){return e.trim()})},t=function(t){var i=function(t,o){var u=n(t.value).map(function(n){return{contentId:e(),content:n,isApproved:!1}}),r={artifactId:t.artifactId,title:t.title,value:u,description:t.description,approval_status:o?void 0:"NOT_APPROVED",big_enough:null==t?void 0:t.big_enough,big_enough_decision_factors:null==t?void 0:t.big_enough_decision_factors,metadata:null==t?void 0:t.metadata,gapValue:null==t?void 0:t.gapValue,confidenceScore:null==t?void 0:t.confidenceScore,storyNumber:t.storyNumber,blockNumber:t.blockNumber,aiReasoning:null==t?void 0:t.aiReasoning,section:null==t?void 0:t.section};return t.sub_features&&t.sub_features.length>0&&(r.sub_features=t.sub_features.map(function(e){return i(e,!0)})),r};return t.map(function(e){return i(e,!1)})},i=function(e){var n=function(e){var t,i=Array.isArray(e.value)?e.value.map(function(e){return e.content}).join("\n\n"):e.value,o={artifactId:e.artifactId,title:e.title,description:e.description,value:i,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(t=e.sub_features)||void 0===t?void 0:t.length)&&(o.sub_features=e.sub_features.map(n)),o};return e.map(n)},o=function(e){return structuredClone(e)};export{o as cloneUserStories,t as createUserStoriesForApproval,n as splitByHeaders,i as transformApprovalToUserStory};
1
+ import{v4 as e}from"uuid";const o=e=>{if(!e)return[];return e.split(/(?=<h1>[A-Z]\.\s+.*?<\/h1>)/g).filter(Boolean).map(e=>e.trim())},t=t=>{const n=(t,i)=>{const a=o(t.value).map(o=>({contentId:e(),content:o,isApproved:!1})),u={artifactId:t.artifactId,title:t.title,value:a,description:t.description,approval_status:i?void 0:"NOT_APPROVED",big_enough:null==t?void 0:t.big_enough,big_enough_decision_factors:null==t?void 0:t.big_enough_decision_factors,metadata:null==t?void 0:t.metadata,gapValue:null==t?void 0:t.gapValue,confidenceScore:null==t?void 0:t.confidenceScore,storyNumber:t.storyNumber,blockNumber:t.blockNumber,aiReasoning:null==t?void 0:t.aiReasoning,section:null==t?void 0:t.section};return t.sub_features&&t.sub_features.length>0&&(u.sub_features=t.sub_features.map(e=>n(e,!0))),u};return t.map(e=>n(e,!1))},n=e=>{const o=e=>{var t;const n=Array.isArray(e.value)?e.value.map(e=>e.content).join("\n\n"):e.value,i={artifactId:e.artifactId,title:e.title,description:e.description,value:n,big_enough:e.big_enough,big_enough_decision_factors:e.big_enough_decision_factors,metadata:null==e?void 0:e.metadata,gapValue:null==e?void 0:e.gapValue,confidenceScore:null==e?void 0:e.confidenceScore,storyNumber:e.storyNumber,blockNumber:e.blockNumber,aiReasoning:null==e?void 0:e.aiReasoning,section:null==e?void 0:e.section};return(null===(t=e.sub_features)||void 0===t?void 0:t.length)&&(i.sub_features=e.sub_features.map(o)),i};return e.map(o)},i=e=>structuredClone(e);export{i as cloneUserStories,t as createUserStoriesForApproval,o as splitByHeaders,n as transformApprovalToUserStory};
2
2
  //# sourceMappingURL=userstory-approval-transform.utils.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";var t=function(r,e){for(var u=0,n=r.value;u<n.length;u++){var a=n[u];if(!1===a.isApproved&&a.contentId!==e)return a.contentId}if(r.sub_features&&r.sub_features.length>0)for(var f=0,s=r.sub_features;f<s.length;f++){var o=s[f],i=t(o,e);if("NA"!==i)return i}return"NA"},e=function(r){var t=0,e=0,u=function(r){for(var n=0,a=(null==r?void 0:r.value)||[];n<a.length;n++){if(a[n].isApproved?t++:e++,t>0&&e>0)return}if(null==r?void 0:r.sub_features)for(var f=0,s=r.sub_features;f<s.length;f++){var o=s[f];if(u(o),t>0&&e>0)return}};return u(r),t>0&&e>0?"IN_PROGRESS":t>0&&0===e?"APPROVED":"NOT_APPROVED"},u=function(r){return r.every(function(r){return"APPROVED"===r.approval_status})},n=function(t){var e=r(r({},t),{value:t.value.map(function(t){return r(r({},t),{isApproved:!0})}),approval_status:"APPROVED"});return t.sub_features&&t.sub_features.length>0&&(e.sub_features=t.sub_features.map(function(r){return n(r)})),e},a=function(r,t){for(var e=0,u=r;e<u.length;e++){var n=u[e];if("APPROVED"!==n.approval_status&&n.artifactId!==t)return n.artifactId}return null};export{n as approveAllSegments,u as areAllUserStoriesApproved,e as getApprovalStatus,t as getFirstNonApprovedSegmentId,a as getFirstUnapprovedStoryId};
1
+ const t=(e,s)=>{for(const t of e.value)if(!1===t.isApproved&&t.contentId!==s)return t.contentId;if(e.sub_features&&e.sub_features.length>0)for(const r of e.sub_features){const e=t(r,s);if("NA"!==e)return e}return"NA"},e=t=>{let e=0,s=0;const r=t=>{for(const r of(null==t?void 0:t.value)||[])if(r.isApproved?e++:s++,e>0&&s>0)return;if(null==t?void 0:t.sub_features)for(const u of t.sub_features)if(r(u),e>0&&s>0)return};return r(t),e>0&&s>0?"IN_PROGRESS":e>0&&0===s?"APPROVED":"NOT_APPROVED"},s=t=>t.every(t=>"APPROVED"===t.approval_status),r=t=>{const e=Object.assign(Object.assign({},t),{value:t.value.map(t=>Object.assign(Object.assign({},t),{isApproved:!0})),approval_status:"APPROVED"});return t.sub_features&&t.sub_features.length>0&&(e.sub_features=t.sub_features.map(t=>r(t))),e},u=(t,e)=>{for(const s of t)if("APPROVED"!==s.approval_status&&s.artifactId!==e)return s.artifactId;return null};export{r as approveAllSegments,s as areAllUserStoriesApproved,e as getApprovalStatus,t as getFirstNonApprovedSegmentId,u as getFirstUnapprovedStoryId};
2
2
  //# sourceMappingURL=userstory-approval.utils.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as o}from"tslib";import{jsxs as e,jsx as l}from"react/jsx-runtime";import n from"./AIConfidenceDisplay.module.css.js";import i from"./icons/RelevanceScoreIcon.js";var r=function(r,c){var s;return"number"!=typeof r||isNaN(r)?null:e("div",o({className:n.container,style:null==c?void 0:c.container},{children:[l(i,{size:20,color:null===(s=null==c?void 0:c.icon)||void 0===s?void 0:s.color}),e("span",o({className:n.label,style:null==c?void 0:c.label},{children:["AI Relevance: ",r,"%"]}))]}))};export{r as renderAIConfidenceDisplay};
1
+ import{jsxs as e,jsx as l}from"react/jsx-runtime";import o from"./AIConfidenceDisplay.module.css.js";import n from"./icons/RelevanceScoreIcon.js";const i=(i,s)=>{var c;return"number"!=typeof i||isNaN(i)?null:e("div",Object.assign({className:o.container,style:null==s?void 0:s.container},{children:[l(n,{size:20,color:null===(c=null==s?void 0:s.icon)||void 0===c?void 0:c.color}),e("span",Object.assign({className:o.label,style:null==s?void 0:s.label},{children:["AI Relevance: ",i,"%"]}))]}))};export{i as renderAIConfidenceDisplay};
2
2
  //# sourceMappingURL=AIConfidenceDisplay.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as C}from"tslib";import{jsx as l,jsxs as t}from"react/jsx-runtime";var i=function(i){return l("div",C({className:"mb-2"},{children:t("svg",C({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[l("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),l("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),l("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),l("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),l("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]}))}))};export{i as default};
1
+ import{jsx as C,jsxs as l}from"react/jsx-runtime";const t=t=>C("div",Object.assign({className:"mb-2"},{children:l("svg",Object.assign({width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[C("path",{d:"M20 19C20 19.7957 19.6839 20.5587 19.1213 21.1213C18.5587 21.6839 17.7956 22 17 22H7C6.20435 22 5.44129 21.6839 4.87868 21.1213C4.31607 20.5587 4 19.7957 4 19V5C4 4.20435 4.31607 3.44129 4.87868 2.87868C5.44129 2.31607 6.20435 2 7 2V4C6.73478 4 6.48043 4.10536 6.29289 4.29289C6.10536 4.48043 6 4.73478 6 5V19C6 19.2652 6.10536 19.5196 6.29289 19.7071C6.48043 19.8946 6.73478 20 7 20H17C17.2652 20 17.5196 19.8946 17.7071 19.7071C17.8946 19.5196 18 19.2652 18 19H20Z",fill:"#5C75F4"}),C("path",{d:"M7 2V4L14.4726 4V2L7 2Z",fill:"#5C75F4"}),C("path",{d:"M18 19H20V13H18V19Z",fill:"#5C75F4"}),C("path",{d:"M15.2209 5.47302C14.2942 5.47302 13.543 6.22424 13.543 7.15091C13.5446 8.05479 14.262 8.79491 15.1653 8.82483L14.1023 11.066H15.2209L16.7369 7.87C16.8441 7.6439 16.8928 7.39945 16.8988 7.15091C16.8988 6.22424 16.1476 5.47302 15.2209 5.47302ZM19.6953 5.47302C18.7686 5.47302 18.0174 6.22424 18.0174 7.15091C18.019 8.05479 18.7363 8.79491 19.6397 8.82483L18.5767 11.066H19.6953L21.2112 7.87C21.3185 7.6439 21.3672 7.39945 21.3731 7.15091C21.3731 6.22424 20.6219 5.47302 19.6953 5.47302Z",fill:"#5C75F4"}),C("path",{d:"M8.7984 15.5988H14.8447C15.0103 15.5988 15.1692 15.6646 15.2863 15.7817C15.4034 15.8988 15.4692 16.0577 15.4692 16.2233C15.4692 16.389 15.4034 16.5478 15.2863 16.665C15.1692 16.7821 15.0103 16.8479 14.8447 16.8479H8.7984C8.63275 16.8479 8.47389 16.7821 8.35676 16.665C8.23963 16.5478 8.17383 16.389 8.17383 16.2233C8.17383 16.0577 8.23963 15.8988 8.35676 15.7817C8.47389 15.6646 8.63275 15.5988 8.7984 15.5988ZM8.7984 13.1005H14.8447C15.0103 13.1005 15.1692 13.1663 15.2863 13.2834C15.4034 13.4005 15.4692 13.5594 15.4692 13.725C15.4692 13.8907 15.4034 14.0496 15.2863 14.1667C15.1692 14.2838 15.0103 14.3496 14.8447 14.3496H8.7984C8.63275 14.3496 8.47389 14.2838 8.35676 14.1667C8.23963 14.0496 8.17383 13.8907 8.17383 13.725C8.17383 13.5594 8.23963 13.4005 8.35676 13.2834C8.47389 13.1663 8.63275 13.1005 8.7984 13.1005ZM8.7984 10.3672L11.962 10.3672C12.1276 10.3672 12.2865 10.433 12.4036 10.5501C12.5208 10.6673 12.5866 10.8261 12.5866 10.9918C12.5866 11.1574 12.5208 11.3163 12.4036 11.4334C12.2865 11.5505 12.1276 11.6163 11.962 11.6163H8.7984C8.63275 11.6163 8.47389 11.5505 8.35676 11.4334C8.23963 11.3163 8.17383 11.1574 8.17383 10.9918C8.17383 10.8261 8.23963 10.6673 8.35676 10.5501C8.47389 10.433 8.63275 10.3672 8.7984 10.3672Z",fill:"#5C75F4"})]}))}));export{t as default};
2
2
  //# sourceMappingURL=DocumentCitationIcon.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as r}from"tslib";import{jsxs as C,jsx as t}from"react/jsx-runtime";var i=function(i){var o=i.size,l=i.color,e=void 0===l?"currentColor":l;return C("svg",r({width:o||15,height:o||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:e}),t("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:e})]}))};export{i as default};
1
+ import{jsxs as C,jsx as t}from"react/jsx-runtime";const e=({size:e,color:i="currentColor"})=>C("svg",Object.assign({width:e||15,height:e||15,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},{children:[t("path",{d:"M9.2482 4.85862C9.18364 4.54279 8.73237 4.54279 8.66782 4.85862C8.27178 6.79626 6.75753 8.31052 4.81988 8.70656C4.50405 8.77111 4.50405 9.22238 4.81988 9.28693C6.75753 9.68297 8.27178 11.1972 8.66782 13.1349C8.73237 13.4507 9.18364 13.4507 9.2482 13.1349C9.64424 11.1972 11.1585 9.68297 13.0961 9.28693C13.412 9.22238 13.412 8.77111 13.0961 8.70656C11.1585 8.31052 9.64424 6.79626 9.2482 4.85862Z",fill:i}),t("path",{d:"M3.87303 1.72074C3.86876 1.69986 3.83892 1.69986 3.83465 1.72074C3.6131 2.80472 2.76598 3.65183 1.682 3.87339C1.66112 3.87766 1.66112 3.9075 1.682 3.91177C2.76598 4.13332 3.6131 4.98044 3.83465 6.06441C3.83892 6.0853 3.86876 6.0853 3.87303 6.06441C4.09459 4.98044 4.9417 4.13332 6.02568 3.91177C6.04656 3.9075 6.04656 3.87766 6.02568 3.87339C4.9417 3.65183 4.09459 2.80472 3.87303 1.72074Z",fill:i})]}));export{e as default};
2
2
  //# sourceMappingURL=RelevanceScoreIcon.js.map
@@ -1,2 +1,2 @@
1
- import{createContext as r,useContext as o}from"react";var e=r(null);function t(){var r=o(e);if(!r)throw new Error("UserStoryPicker compound components must be used within <UserStoryPicker>");return r}export{e as USPContext,t as useUSPContext};
1
+ import{createContext as r,useContext as o}from"react";const t=r(null);function e(){const r=o(t);if(!r)throw new Error("UserStoryPicker compound components must be used within <UserStoryPicker>");return r}export{t as USPContext,e as useUSPContext};
2
2
  //# sourceMappingURL=UserStoryPicker.context.js.map
@@ -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 c}from"./hooks/useUserStoryPickerState.js";import{useFilteredItems as d}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 j}from"./lib/cn.js";const u={},p={};function P({userEmail:P,adapter:h,defaultView:m="recent",defaultSort:g="newest",defaultType:v="All Types",defaultRepo:f="allRepository",gitUrl:M="",pageSize:b=4,theme:y,classNames:w=u,renderProps:F=p,onProceed:U,onStorySelect:k,onProjectSelect:I,onSearch:C,onViewChange:T,onSortChange:L,onShowMore:N,onViewMoreDescription:V,onFavoriteToggle:x,hidePopUp:H=!1,disableTooltip:O=!1,tooltipClassName:B,children:D,mediaCacheHooks:E,showCitations:R=!1,featureFlagWidgetMaker:Q=!0}){var W,_;const[z,A]=c(m,g,v,f,b);o(()=>{null==T||T(z.viewMode)},[z.viewMode,T]);const{projects:q,userStories:G,hasMoreProjects:J,hasMoreStories:K,loadMoreProjects:X,loadMoreStories:Y,isLoadingProjects:Z,isLoadingStories:$,projectStories:ee,hasMoreProjectStories:oe,loadMoreProjectStories:re,isLoadingProjectStories:te,sidebarProjects:se,hasMoreSidebarProjects:ie,loadMoreSidebarProjects:ae,scopedUserStories:ce,toggleScopedUserStories:de,isLoadingSidebarProjects:le,favoriteStories:ne,hasMoreFavoriteStories:Se,loadMoreFavoriteStories:je,isLoadingFavoriteStories:ue,updateFavorite:pe}=l(P,M,h.fetchProjects,h.fetchUserStories,z.sortBy,z.typeBy,z.scopeRepo,z.searchQuery,z.sidebarSearchQuery,z.selectedProjectId,R),Pe=z.selectedProjectId?oe:K,he=z.selectedProjectId?re:Y,me=z.selectedProjectId?te:$,ge=r(()=>{var e;return null!==(e=q.find(e=>e.id===z.selectedProjectId))&&void 0!==e?e:null},[q,z.selectedProjectId]),ve=r(()=>ge?ee.map(e=>Object.assign(Object.assign({},e),{projectName:ge.name})):ee,[ee,ge]),fe=r(()=>{var e;return null!==(e=(z.selectedProjectId?ve:G).find(e=>e.user_story_id===z.selectedStoryId))&&void 0!==e?e:null},[z.selectedProjectId,ve,G,z.selectedStoryId]),{filteredStories:Me,filteredProjects:be,visibleStories:ye,visibleProjects:we}=d(G,q,z,ve,ne),Fe="favorites"===z.viewMode?(null!==(W=null==Me?void 0:Me.length)&&void 0!==W?W:0)>(null!==(_=null==ye?void 0:ye.length)&&void 0!==_?_:0):Pe,Ue=t((e,o)=>{pe(e,o),null==x||x(e,o)},[pe,x]),ke=r(()=>({adapter:h,state:z,dispatch:A,userStories:G,projects:q,filteredStories:Me,filteredProjects:be,visibleStories:ye,visibleProjects:we,hasMoreStories:Fe,hasMoreProjects:J,selectedStory:fe,selectedProject:ge,classNames:w,renderProps:F,mediaCacheHooks:E,showCitations:R,featureFlagWidgetMaker:Q,loadMoreProjects:X,loadMoreStories:he,isLoadingProjects:Z,isLoadingStories:me,scopedUserStories:ce,toggleScopedUserStories:de,sidebarProjects:se,hasMoreSidebarProjects:ie,loadMoreSidebarProjects:ae,isLoadingSidebarProjects:le,favoriteStories:ne,hasMoreFavoriteStories:Se,loadMoreFavoriteStories:je,isLoadingFavoriteStories:ue,onProceed:U,onStorySelect:k,onProjectSelect:I,onSearch:C,onViewChange:T,onSortChange:L,onShowMore:N,onViewMoreDescription:V,onFavoriteToggle:Ue,hidePopUp:H,disableTooltip:O,tooltipClassName:B}),[h,z,A,G,q,Me,be,ye,we,Pe,Fe,J,fe,ge,w,F,X,he,Z,me,se,ie,ae,le,ne,Se,je,ce,de,ue,U,E,R,Q,k,I,C,T,L,N,V,Ue,H,O,B]),[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,Object.assign({value:ke},{children:e("div",Object.assign({className:j(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:D}))}))})}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 Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"--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 t}from"react/jsx-runtime";import{useCallback as o}from"react";import{useUSPContext as r}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as n}from"./UserStoryScopeDropdown.js";function a(){return e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:[t("path",{d:"m12 19-7-7 7-7"}),t("path",{d:"M19 12H5"})]}))}function s(){return t("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},{children:t("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({label:l,className:c,style:i,labelStyle:d,children:p}){var v;const{state:u,dispatch:j,classNames:w,renderProps:m,selectedProject:h,onViewChange:b}=r(),k="project-detail"===u.viewMode,y="project-detail"===u.viewMode&&!u.selectedProjectId,_="favorites"===u.viewMode,g=o(()=>_?(j({type:"SHOW_RECENT_IN_SPLIT"}),j({type:"SET_VIEW",payload:"project-detail"}),void(null==b||b("project-detail"))):y?(j({type:"SELECT_PROJECT",payload:null}),void(null==b||b("projects"))):void("project-detail"===u.viewMode?(j({type:"SELECT_PROJECT",payload:null}),null==b||b("projects")):"projects"===u.viewMode&&(j({type:"SET_VIEW",payload:"recent"}),null==b||b("recent"))),[_,y,u.viewMode,j,b]),S=null!==(v=null!=l?l:_?"View Shortlisted Story":void 0)&&void 0!==v?v:y?"Recent User Stories":"project-detail"===u.viewMode&&h?h.name:"Projects",f=["usp-back-nav",w.backNav,c].filter(Boolean).join(" ");return e("div",Object.assign({className:f,style:i},{children:[e("div",Object.assign({className:"usp-back-nav__left"},{children:[t("button",Object.assign({type:"button",className:"usp-back-nav__arrow",onClick:g},{children:m.renderBackIcon?m.renderBackIcon():t(a,{})})),"project-detail"===u.viewMode&&!y&&t("span",Object.assign({className:"usp-back-nav__icon"},{children:m.renderFolderIcon?m.renderFolderIcon():t(s,{})})),t("span",Object.assign({className:"usp-back-nav__label",style:d},{children:S}))]})),k&&t(n,{})]}))}export{l 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:s,label:a,className:o,style:c}){const{classNames:l,renderProps:u}=r();if(u.renderBadge)return e(n,{children:u.renderBadge(t,s)});const d=["usp-badge","new"===t&&"usp-badge--new","count"===t&&"usp-badge--count","new"===t&&l.badgeNew,"count"===t&&l.badgeCount,l.badge,o].filter(Boolean).join(" "),i=null!=a?a:"new"===t?"New":`${null!=s?s:0} Artifacts`;return e("span",Object.assign({className:d,style:c},{children:i}))}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 s(){return t("svg",Object.assign({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 n(){return e("svg",Object.assign({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 c({label:c="Browse Projects",activeLabel:a="Browse All Projects",className:i,style:l}){const{state:p,dispatch:w,classNames:d,onViewChange:u}=r(),b="projects"===p.viewMode||"project-detail"===p.viewMode,h=o(()=>{b?(w({type:"SET_VIEW",payload:"recent"}),null==u||u("recent")):(w({type:"SET_VIEW",payload:"projects"}),null==u||u("projects"))},[b,w,u]),m=["usp-browse-btn",b&&"usp-browse-btn--active",d.browseToggle,i].filter(Boolean).join(" ");return e("button",Object.assign({type:"button",className:m,style:l,onClick:h},{children:[t("span",Object.assign({className:"usp-browse-btn__icon"},{children:t(s,{})})),b?a:c,b&&t("span",Object.assign({className:"usp-browse-btn__close"},{children:t(n,{})}))]}))}export{c 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 a}from"./UserStoryCard.js";import{ProjectCard as r}from"./ProjectCard.js";function i(){return s("div",Object.assign({className:"usp-skeleton-card"},{children:[s("div",Object.assign({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",Object.assign({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 l({className:l,style:o,children:n}){const{state:c,visibleStories:d,visibleProjects:p,classNames:m,renderProps:u,isLoadingStories:k,isLoadingProjects:v}=t(),j="projects"===c.viewMode,N=j?v:k,g=j?p:d,y=0===g.length,h=["usp-card-grid",y&&!N&&"usp-card-grid--empty",m.cardGrid,l].filter(Boolean).join(" ");return"function"==typeof n?e("div",Object.assign({className:h,style:o},{children:n(g,c.viewMode)})):n?e("div",Object.assign({className:h,style:o},{children:n})):N&&y?e("div",Object.assign({className:h,style:o},{children:Array.from({length:4}).map((s,t)=>e(i,{},t))})):y?e("div",Object.assign({className:h,style:o},{children:e("div",Object.assign({className:"usp-card-grid__empty-state"},{children:u.renderEmptyState?u.renderEmptyState(c.viewMode):`No ${j?"projects":"user stories"} found`}))})):s("div",Object.assign({className:h,style:o},{children:[" ",j?p.map(s=>e(r,{project:s},s.id)):d.map(s=>e(a,{story:s},s.user_story_id)),N&&Array.from({length:4}).map((s,t)=>e(i,{},`skel-${t}`))]}))}export{l 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{__awaiter as o}from"tslib";import{jsxs as e,Fragment as t,jsx as r}from"react/jsx-runtime";import{useState as i,useCallback as n}from"react";import{useUSPContext as s}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as d}from"./UserStoryImportDialog.js";function c({story:c}){const{adapter:l,onProceed:a,hidePopUp:p,dispatch:u,classNames:h,renderProps:m}=s(),{sendNotification:y,sendEvent:f,onProceedComplete:v}=l,[g,P]=i(!1),[C,_]=i(!1),b=n((o,e)=>{null==y||y(o,e)},[y]),k=n(e=>o(this,void 0,void 0,function*(){(null==c?void 0:c.artifact_id)?(P(!0),yield null==v?void 0:v({selectedStory:c,importChoice:e}),b(`You selected userStory ${null==c?void 0:c.storyId}: ${null==c?void 0:c.title}`,"info"),null==f||f({}),a(c)):b("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")}),[c,b,v,f,a]),j=n(e=>o(this,void 0,void 0,function*(){e.stopPropagation(),u({type:"SELECT_STORY",payload:c.user_story_id}),!c.multi_user_story||p?yield k("all"):_(!0)}),[c,u,p,k]),w=n(e=>o(this,void 0,void 0,function*(){_(!1),yield k(e)}),[k]),x=n(o=>{_(o)},[]);return e(t,{children:[m.renderCardProceedButton?m.renderCardProceedButton(c,j,g):r("button",Object.assign({type:"button",className:["usp-card__proceed-btn",h.cardProceedButton].filter(Boolean).join(" "),onClick:j,disabled:g},{children:g?e(t,{children:[e("svg",Object.assign({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:[r("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),r("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):"Proceed"})),r(d,{open:C,onOpenChange:x,onConfirm:w})]})}export{c 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:s,children:n}){const{classNames:o}=t(),c=["usp-content-area",o.contentArea,r].filter(Boolean).join(" ");return e("div",Object.assign({className:c,style:s},{children:n}))}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 t({className:t,style:o,children:s}){const{classNames:c}=r(),i=["usp-footer",c.footer,t].filter(Boolean).join(" ");return e("div",Object.assign({className:i,style:o},{children:s}))}export{t 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 s}from"../UserStoryPicker.context.js";import{adaptLabel as l}from"../lib/adaptLabel.js";function i({title:i,subtitle:a,className:r,style:o,titleStyle:n,subtitleStyle:c,children:d}){const{classNames:m,state:h}=s();i=l(i,h.typeBy),a=a?l(a,h.typeBy):a;const p=["usp-header",m.header,r].filter(Boolean).join(" "),y=["usp-header__title",m.headerTitle].filter(Boolean).join(" "),u=["usp-header__subtitle",m.headerSubtitle].filter(Boolean).join(" ");return e("div",Object.assign({className:p,style:o},{children:[t("h1",Object.assign({className:y,style:n},{children:i})),a&&t("p",Object.assign({className:u,style:c},{children:a})),d]}))}export{i 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 s({className:s,style:t,children:o}){const{classNames:n}=r(),a=["usp-nav-row",n.navRow,s].filter(Boolean).join(" ");return e("div",Object.assign({className:a,style:t},{children:o}))}export{s 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{__awaiter as e}from"tslib";import{jsxs as o,Fragment as t,jsx as r}from"react/jsx-runtime";import{useState as i,useCallback as s}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";import{UserStoryImportDialog as l}from"./UserStoryImportDialog.js";function d({label:d="Proceed",disableWhenNoSelection:c=!0,className:a,style:p}){const{selectedStory:u,classNames:h,onProceed:m,adapter:y,hidePopUp:f,dispatch:v}=n(),{sendNotification:b,sendEvent:g,onProceedComplete:k}=y,C=c&&!u,[S,_]=i(!1),[j,w]=i(!1),x=s((e,o)=>{null==b||b(e,o)},[b]),N=s(o=>e(this,void 0,void 0,function*(){(null==u?void 0:u.artifact_id)?(_(!0),yield null==k?void 0:k({selectedStory:u,importChoice:o}),x(`You selected userStory ${null==u?void 0:u.storyId}: ${null==u?void 0:u.title}`,"info"),null==g||g({}),C||m(u)):x("Unable to fetch user story snapshot: missing artifact Id. Please reselect the story or try again.","error")}),[u,C,x,k,g,m]),P=s(()=>e(this,void 0,void 0,function*(){C||(v({type:"SELECT_STORY",payload:u.user_story_id}),!(null==u?void 0:u.multi_user_story)||f?yield N("all"):w(!0))}),[u,C,f,N,v]),O=s(e=>{w(e)},[]),U=s(o=>e(this,void 0,void 0,function*(){w(!1),yield N(o)}),[N]),B=["usp-proceed",C&&"usp-proceed--disabled",h.proceedButton,a].filter(Boolean).join(" ");return o(t,{children:[r("button",Object.assign({type:"button",className:B,style:p,onClick:P,disabled:C||S},{children:S?o(t,{children:[o("svg",Object.assign({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:[r("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeOpacity:"0.3",strokeWidth:"3"}),r("path",{d:"M12 2a10 10 0 0 1 10 10",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round"})]})),"Loading..."]}):d})),r(l,{open:j,onOpenChange:O,onConfirm:U})]})}export{d 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 n}from"react/jsx-runtime";import{useState as t,useCallback as a}from"react";import{useUSPContext as o}from"../UserStoryPicker.context.js";function s(){return e("svg",Object.assign({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 i(){return e("svg",Object.assign({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",Object.assign({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 l(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:j,metaStyle:g}){var f,v;const{dispatch:y,classNames:b,renderProps:w,onProjectSelect:_,onViewMoreDescription:k}=o(),[O,S]=t(!1),L=a(e=>{e.stopPropagation(),S(e=>!e)},[]),N=O?d.description:(null!==(v=null===(f=d.description)||void 0===f?void 0:f.length)&&void 0!==v?v:0)>100?d.description.slice(0,100):d.description,B=d.description.length>100,C=a(()=>{y({type:"SELECT_PROJECT",payload:d.id}),null==_||_(d)},[y,d,_]);a(e=>{e.stopPropagation(),null==k||k(d)},[k,d]);const x=["usp-card usp-card--project",b.card,p].filter(Boolean).join(" ");return w.renderProjectCard?e(r,{children:w.renderProjectCard(d)}):n("div",Object.assign({className:x,style:u,onClick:C,role:"button",tabIndex:0},{children:[n("div",Object.assign({className:["usp-card__header",b.cardHeader].filter(Boolean).join(" "),style:m},{children:[e("span",Object.assign({className:"usp-card__icon"},{children:w.renderFolderIcon?w.renderFolderIcon():e(s,{})})),e("span",Object.assign({className:["usp-card__title",b.cardTitle].filter(Boolean).join(" "),style:h},{children:d.name})),n("span",Object.assign({className:["usp-card__artifact-count",b.cardArtifactCount].filter(Boolean).join(" ")},{children:[e(c,{}),d.artifactCount," Artifacts"]}))]})),void 0!==d.summary&&n("div",Object.assign({className:["usp-card__summary-label",b.cardSummaryLabel].filter(Boolean).join(" ")},{children:[w.renderSparkleIcon?w.renderSparkleIcon():e(i,{}),"Summary"]})),e("div",Object.assign({className:["usp-card-userstory-description",!d.description&&"usp-card__description--empty",b.cardDescription].filter(Boolean).join(" "),style:j},{children:d.description?n(r,{children:[N,B&&e("button",Object.assign({onClick:L,className:["usp-card-moreButton",b.cardViewMore].filter(Boolean).join(" "),"aria-label":O?"Show less":"Show more"},{children:O?"less":"..."}))]}):e("span",Object.assign({className:"usp-card__description--placeholder"},{children:"No Description available"}))})),e("div",Object.assign({className:"usp-card__meta",style:g},{children:n("span",Object.assign({className:["usp-card__date",b.cardDate].filter(Boolean).join(" ")},{children:["Last Updated: ",l(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 s from"../lib/CustomTooltip.js";function n({visualLeftWidth:s,isResizing:n,isLeftPanelCollapsed:i,onResizeStart:l,onToggle:c}){return e("div",Object.assign({className:t("absolute top-0 bottom-0 z-10 group",!i&&"cursor-col-resize"),style:{left:i?0:`${s}%`,width:i?0:9,marginLeft:i?0:-4,pointerEvents:"auto"},onMouseDown:i?void 0:l},{children:[o("div",{className:t("absolute left-1/2 top-0 bottom-0 -translate-x-1/2","transition-all duration-150",i&&"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")}),!i&&!n&&o("div",Object.assign({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(a,{className:"h-4 w-4 text-description-foreground"})})),o(r,{isCollapsed:i,onToggle:c,className:"absolute transition-all duration-200",style:{left:i?2:"50%",top:6,transform:i?"translateY(0)":"translate(-100%, 0)",zIndex:20}})]}))}function r({isCollapsed:e,onToggle:n,className:r,style:a}){return o(s,Object.assign({content:e?"Open Sidebar":"Close Sidebar"},{children:o("button",Object.assign({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",r),"aria-label":e?"Expand panel":"Collapse panel",style:a},{children:o(e?l:i,{className:"h-3.5 w-3.5 text-primary-foreground"})}))}))}function a({className:t}){return e("svg",Object.assign({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 i({className:e}){return o("svg",Object.assign({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 l({className:e}){return o("svg",Object.assign({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 s,useRef as r,useCallback as n,useEffect as t}from"react";import{useUSPContext as l}from"../UserStoryPicker.context.js";function i(){return o("svg",Object.assign({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",Object.assign({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 g,b;const{state:y,dispatch:h,classNames:f,renderProps:j,onScopeRepoChange:w}=l(),[_,k]=s(!1),O=r(null),R=n(e=>{h({type:"SET_SCOPE_REPO",payload:e}),null==w||w(e),k(!1)},[h,w]);if(t(()=>{function e(e){O.current&&!O.current.contains(e.target)&&k(!1)}return _&&document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[_]),j.renderScopeDropdown)return j.renderScopeDropdown(y.scopeRepo,R,p);const x=null!==(b=null===(g=p.find(e=>e.value===y.scopeRepo))||void 0===g?void 0:g.label)&&void 0!==b?b:p[0].label,N=["usp-user-story-scope",f.scopeDropdown,u].filter(Boolean).join(" ");return e("div",Object.assign({ref:O,className:[N,_&&"open"].filter(Boolean).join(" "),style:d},{children:[e("button",Object.assign({type:"button",className:"usp-user-story-scope__trigger",style:v,onClick:()=>k(e=>!e)},{children:[o("span",Object.assign({className:"usp-user-story-scope__trigger-label"},{children:x})),o("span",Object.assign({className:"usp-user-story-scope__chevron"},{children:o(_?i:c,{})}))," "]})),_&&o("ul",Object.assign({className:"usp-user-story-scope__menu",role:"listbox"},{children:p.map(e=>o("li",Object.assign({role:"option","aria-selected":y.scopeRepo===e.value,className:["usp-user-story-scope__option",y.scopeRepo===e.value&&"active"].filter(Boolean).join(" "),onClick:()=>R(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 s}from"../UserStoryPicker.context.js";import{adaptLabel as a}from"../lib/adaptLabel.js";function n(){return e("svg",Object.assign({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 o({placeholder:o="Search...",className:c,style:i,inputStyle:l,iconStyle:p,scope:h="main"}){const{state:d,dispatch:u,classNames:m,renderProps:y,onSearch:S}=s();o=a(o,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]),j="sidebar"===h?d.sidebarSearchQuery:d.searchQuery,b=["usp-search__input",m.searchInput,c].filter(Boolean).join(" "),g=["usp-search__icon",m.searchIcon].filter(Boolean).join(" ");return e("div",Object.assign({className:"usp-search",style:i},{children:[r("span",Object.assign({className:g,style:p},{children:y.renderSearchIcon?y.renderSearchIcon():r(n,{})})),r("input",{type:"text",className:b,style:l,placeholder:o,value:j,onChange:f})]}))}export{o 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 t}from"../UserStoryPicker.context.js";import{UserStoryScopeDropdown as o}from"./UserStoryScopeDropdown.js";import{adaptLabel as r}from"../lib/adaptLabel.js";function s(){return e("svg",Object.assign({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 i(){return n("svg",Object.assign({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 c(){return n("svg",Object.assign({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 a(){return e("svg",Object.assign({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 l({label:l,icon:u,className:d,style:p,iconStyle:g,labelStyle:h,showBackButton:f,onBack:w}){const{classNames:k,state:m}=t();l=r(l,m.typeBy);const j="recent"===m.viewMode,b=["usp-section-heading",k.sectionHeading,d].filter(Boolean).join(" "),v=function(e){if("string"==typeof e)switch(e){case"bookmark":return n(i,{});case"folder":return n(c,{});case"recent":return n(a,{});default:return null}return null!=e?e:null}(u);return e("div",Object.assign({className:b,style:p},{children:[e("div",Object.assign({className:["usp-section-heading__left",k.sectionHeadingLeft].filter(Boolean).join(" ")},{children:[f&&n("button",Object.assign({type:"button",className:"usp-section-heading__back",onClick:w},{children:n(s,{})})),v&&n("span",Object.assign({className:["usp-section-heading__icon",k.sectionHeadingLeft].filter(Boolean).join(" "),style:g},{children:v})),n("span",Object.assign({style:h},{children:l}))]})),j&&n(o,{})]}))}export{l 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:j,isLoadingProjects:d,visibleStories:f,visibleProjects:p,filteredStories:S,filteredProjects:M,onShowMore:b}=t(),g="projects"===l.viewMode,P=g?d:j,w=g?m:a,y=g?p:f,v=(g?M:S).length>y.length,x=v||w,N=o(()=>{n({type:"SHOW_MORE"}),v||(g?u():h()),null==b||b()},[n,v,g,u,h,b]);if(0===y.length)return null;if(P||!x)return null;const O=["usp-show-more",c.showMore,s].filter(Boolean).join(" ");return e("button",Object.assign({type:"button",className:O,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:s,children:n,visualLeftWidth:o,isLeftPanelClosing:a,isResizing:r,isLeftPanelCollapsed:l}){const{classNames:c}=i(),d=["usp-sidebar","flex flex-col flex-shrink-0 bg-editor-background min-h-0 overflow-y-auto",!r&&"transition-[width,opacity] duration-150 ease-in-out",(l||a)&&"opacity-0 pointer-events-none",c.sidebar,t].filter(Boolean).join(" ");return e("nav",Object.assign({className:d,style:Object.assign(Object.assign({},s),{width:`${o}%`,flexShrink:0,willChange:"width",minWidth:l?0:"10px"})},{children:n}))}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",Object.assign({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:n}){const{favoriteStories:c,hasMoreFavoriteStories:l,loadMoreFavoriteStories:d,isLoadingFavoriteStories:p,state:u,dispatch:m,classNames:b,onStorySelect:j}=o(),h=c,v=t(e=>{m({type:"SELECT_STORY",payload:e.user_story_id}),null==j||j(e)},[m,j]),y=["usp-sidebar-project-list",i].filter(Boolean).join(" ");return p&&0===h.length?e("div",Object.assign({className:y,style:a},{children:["55%","70%","45%"].map((t,o)=>s("div",Object.assign({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!==h.length?s("div",Object.assign({className:y,style:a},{children:[h.map(t=>{const o=u.selectedStoryId===t.user_story_id,i=["usp-sidebar-project",o&&"usp-sidebar-project--active",o&&b.sidebarProjectActive,b.sidebarProject].filter(Boolean).join(" ");return s("button",Object.assign({type:"button",className:i,style:n,onClick:()=>v(t)},{children:[e("span",Object.assign({className:"usp-sidebar-project__icon usp-sidebar-project__icon--heart"},{children:e(r,{})})),s("span",Object.assign({className:"usp-sidebar-project__name"},{children:[t.storyId,": ",t.title]}))]}),`${t.projectId}:${t.storyId}`)}),p&&s("div",Object.assign({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&&l&&e("button",Object.assign({type:"button",className:["usp-show-more",b.showMore].filter(Boolean).join(" "),onClick:d},{children:"Show more"}))]})):e("div",Object.assign({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",Object.assign({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",Object.assign({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:b,isLoadingSidebarProjects:j,state:m,dispatch:h,classNames:w,renderProps:g,onProjectSelect:k}=o(),y=s(()=>{if(!m.sidebarSearchQuery)return p;const e=m.sidebarSearchQuery.toLowerCase();return p.filter(r=>r.name.toLowerCase().includes(e))},[p,m.sidebarSearchQuery]),f=t(e=>{h({type:"SELECT_PROJECT",payload:e.id}),null==k||k(e)},[h,k]),P=["usp-sidebar-project-list",c].filter(Boolean).join(" ");return j&&0===y.length?e("div",Object.assign({className:P,style:d},{children:i.map((r,s)=>e(n,{width:r},s))})):r("div",Object.assign({className:P,style:d},{children:[y.map(s=>{const t=m.selectedProjectId===s.id;if(g.renderSidebarProject)return e("div",Object.assign({onClick:()=>f(s)},{children:g.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",Object.assign({type:"button",className:o,style:l,onClick:()=>f(s)},{children:[e("span",Object.assign({className:"usp-sidebar-project__icon"},{children:g.renderFolderIcon?g.renderFolderIcon():e(a,{})})),e("span",Object.assign({className:"usp-sidebar-project__name"},{children:s.name}))]}),s.id)}),j&&i.map((r,s)=>e(n,{width:r},`skel-${s}`)),!j&&u&&e("button",Object.assign({type:"button",className:["usp-show-more",w.showMore].filter(Boolean).join(" "),onClick:b},{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 s}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";function i(){return e("svg",Object.assign({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 r(){return o("svg",Object.assign({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 a(){return e("svg",Object.assign({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({label:l,sectionId:c,collapsible:d=!1,defaultCollapsed:p=!1,icon:u,className:h,style:v,headerStyle:_,contentStyle:y,children:b,clearProject:S,viewMode:w,navItem:j,sectionsToCollapse:O}){const{state:E,dispatch:f,classNames:m,renderProps:g,onViewChange:C}=n(),I=null!=c?c:l;t.useEffect(()=>{p&&!E.collapsedSections.has(`__init_${I}`)&&(f({type:"TOGGLE_SECTION",payload:I}),f({type:"TOGGLE_SECTION",payload:`__init_${I}`}))},[]);const T=s(()=>w?(null==O||O.forEach(e=>{E.collapsedSections.has(e)||f({type:"TOGGLE_SECTION",payload:e})}),void("favorites"===w?(f({type:"SHOW_FAVORITES_IN_SPLIT"}),null==C||C("favorites")):(f({type:"SET_VIEW",payload:w}),null==C||C(w)))):S?(null==O||O.forEach(e=>{E.collapsedSections.has(e)||f({type:"TOGGLE_SECTION",payload:e})}),f({type:"SHOW_RECENT_IN_SPLIT"}),void("project-detail"!==E.viewMode&&(f({type:"SET_VIEW",payload:"project-detail"}),null==C||C("project-detail")))):void(d&&f({type:"TOGGLE_SECTION",payload:I})),[w,S,O,d,f,I,E.collapsedSections,E.viewMode,C]),L=E.collapsedSections.has(I),N=w&&E.viewMode===w||S&&"project-detail"===E.viewMode&&!E.selectedProjectId,k=["usp-sidebar-section",(S||j||w)&&"usp-sidebar-section--nav",N&&"usp-sidebar-section--active",L&&"usp-sidebar-section--collapsed",L&&m.sidebarSectionCollapsed,m.sidebarSection,h].filter(Boolean).join(" "),x=["usp-sidebar-section__header",m.sidebarSectionHeader].filter(Boolean).join(" "),G=null!=u?u:l.toLowerCase().includes("recent")?e(r,{}):e(a,{});return o("div",Object.assign({className:k,style:v},{children:[o("button",Object.assign({type:"button",className:x,style:_,onClick:T},{children:[e("span",Object.assign({className:"usp-sidebar-section__icon"},{children:G})),l,d&&e("span",Object.assign({className:"usp-sidebar-section__chevron"},{children:g.renderChevronIcon?g.renderChevronIcon():e(i,{})}))]})),!L&&b&&e("div",Object.assign({className:"usp-sidebar-section__content",style:y},{children:b}))]}))}export{l 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 s}from"react/jsx-runtime";import{useCallback as l}from"react";import{useUSPContext as r}from"../UserStoryPicker.context.js";const a=[{value:"newest",label:"Newest First"},{value:"oldest",label:"Oldest First"},{value:"a-z",label:"A-Z"},{value:"z-a",label:"Z-A"}];function o({options:o=a,className:n,style:c,labelStyle:i,selectStyle:p}){const{state:u,dispatch:d,classNames:m,renderProps:b,onSortChange:y}=r(),v=l(e=>{d({type:"SET_SORT",payload:e}),null==y||y(e)},[d,y]);if(b.renderSortDropdown)return e(t,{children:b.renderSortDropdown(u.sortBy,v,o)});const S=["usp-sort",m.sortDropdown,n].filter(Boolean).join(" ");return s("div",Object.assign({className:S,style:c},{children:[e("span",Object.assign({className:"usp-sort__label",style:i},{children:"Sort by:"})),e("select",Object.assign({className:"usp-sort__select",style:p,value:u.sortBy,onChange:e=>v(e.target.value)},{children:o.map(t=>e("option",Object.assign({value:t.value},{children:t.label}),t.value))}))]}))}export{o 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 s}from"react";import{useUSPContext as n}from"../UserStoryPicker.context.js";function o({className:o,style:c,children:u}){const{classNames:i}=n(),[m,l]=t(!1),[a,d]=t(260),p=r(!1),y=r(0),b=r(260);s(e=>{p.current=!0,y.current=e.clientX,b.current=a,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,b.current+t));d(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)},[a]);const v=["usp-split-layout",m&&"usp-split-layout--sidebar-collapsed",i.splitLayout,o].filter(Boolean).join(" ");return e("div",Object.assign({className:v,style:Object.assign(Object.assign({},c),{"--usp-sidebar-width":`${a}px`})},{children:u}))}export{o 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 e}from"react/jsx-runtime";import{useUSPContext as r}from"../UserStoryPicker.context.js";function t({className:t,style:o,children:s}){const{classNames:a}=r(),c=["usp-toolbar",a.toolbar,t].filter(Boolean).join(" ");return e("div",Object.assign({className:c,style:o},{children:s}))}export{t as Toolbar};
2
2
  //# sourceMappingURL=Toolbar.js.map