@pstdio/ui 0.0.3 → 0.0.4

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 (737) hide show
  1. package/dist/EquationComponent-DeDYHvqY.js +62 -0
  2. package/dist/EquationComponent-DeDYHvqY.js.map +1 -0
  3. package/dist/chat-ui.js +347 -0
  4. package/dist/chat-ui.js.map +1 -0
  5. package/dist/components/button.stories.d.ts +18 -0
  6. package/dist/components/chat-ui/components/ai-conversation.d.ts +1161 -0
  7. package/dist/components/chat-ui/index.d.ts +10 -0
  8. package/dist/components/chat-ui/utils/get-icon.d.ts +34 -0
  9. package/{storybook-static → dist}/components/column-file-browser.d.ts +1 -2
  10. package/dist/components/column-file-browser.stories.d.ts +15 -0
  11. package/dist/components/data-table/build-columns.d.ts +3 -0
  12. package/dist/components/data-table/data-table.d.ts +2 -0
  13. package/{storybook-static/components → dist/components/data-table}/data-table.stories.d.ts +1 -1
  14. package/dist/components/data-table/helpers.d.ts +10 -0
  15. package/dist/components/data-table/index.d.ts +3 -0
  16. package/dist/components/data-table/pagination-footer.d.ts +5 -0
  17. package/dist/components/data-table/selection-toolbar.d.ts +9 -0
  18. package/{storybook-static/components/data-table.d.ts → dist/components/data-table/types.d.ts} +6 -4
  19. package/{storybook-static → dist}/components/file-selector.d.ts +1 -2
  20. package/{storybook-static/components/style-guide.stories.d.ts → dist/components/file-selector.stories.d.ts} +6 -3
  21. package/{storybook-static → dist}/components/info-card.d.ts +1 -2
  22. package/dist/components/info-card.stories.d.ts +41 -0
  23. package/{storybook-static → dist}/components/menu-item.d.ts +1 -1
  24. package/dist/components/menu-item.stories.d.ts +72 -0
  25. package/dist/components/number-input.d.ts +8 -0
  26. package/{storybook-static → dist}/components/param-editor.stories.d.ts +1 -0
  27. package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.d.ts +1 -0
  28. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -0
  29. package/dist/components/session-indicator.d.ts +14 -0
  30. package/dist/components/session-indicator.stories.d.ts +11 -0
  31. package/dist/components/slider.stories.d.ts +15 -0
  32. package/dist/components/style-guide.stories.d.ts +28 -0
  33. package/dist/components/ticket-board.d.ts +33 -0
  34. package/dist/components/ticket-board.stories.d.ts +5 -0
  35. package/dist/components/ticket-card.d.ts +24 -0
  36. package/dist/components/ticket-card.stories.d.ts +17 -0
  37. package/dist/components/toaster.d.ts +3 -0
  38. package/{storybook-static → dist}/index.d.ts +5 -3
  39. package/dist/index.js +435 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/rich-message-CiA3ripk.js +1401 -0
  42. package/dist/rich-message-CiA3ripk.js.map +1 -0
  43. package/dist/rich-text.js +485 -0
  44. package/dist/rich-text.js.map +1 -0
  45. package/dist/style.css +1 -0
  46. package/{storybook-static → dist}/theme/primitives/colors.d.ts +6 -0
  47. package/dist/theme-9E0MRtZk.js +1985 -0
  48. package/dist/theme-9E0MRtZk.js.map +1 -0
  49. package/{src/theme/index.ts → dist/theme.js} +5 -2
  50. package/dist/theme.js.map +1 -0
  51. package/dist/tooltip-Gm7PLwZG.js +51 -0
  52. package/dist/tooltip-Gm7PLwZG.js.map +1 -0
  53. package/{storybook-static/theme/applyThemePreference.d.ts → dist/utils/apply-theme-preference.d.ts} +1 -1
  54. package/{storybook-static/theme → dist/utils}/theme-preference.d.ts +3 -3
  55. package/package.json +4 -1
  56. package/.storybook/main.ts +0 -28
  57. package/.storybook/preview.tsx +0 -28
  58. package/.storybook/vitest.setup.ts +0 -6
  59. package/src/components/alert.tsx +0 -27
  60. package/src/components/breadcrumb.stories.tsx +0 -40
  61. package/src/components/breadcrumb.tsx +0 -67
  62. package/src/components/button.stories.tsx +0 -151
  63. package/src/components/chat-ui/agent-types.ts +0 -231
  64. package/src/components/chat-ui/components/ai-conversation.stories.tsx +0 -49
  65. package/src/components/chat-ui/components/ai-conversation.tsx +0 -68
  66. package/src/components/chat-ui/components/ai-message.stories.tsx +0 -60
  67. package/src/components/chat-ui/components/ai-message.tsx +0 -103
  68. package/src/components/chat-ui/components/ai-response.stories.tsx +0 -48
  69. package/src/components/chat-ui/components/ai-response.tsx +0 -19
  70. package/src/components/chat-ui/components/approval-prompt.tsx +0 -51
  71. package/src/components/chat-ui/components/attachment-list.stories.tsx +0 -24
  72. package/src/components/chat-ui/components/attachment-list.tsx +0 -76
  73. package/src/components/chat-ui/components/auto-scroll.tsx +0 -42
  74. package/src/components/chat-ui/components/chat-input.stories.tsx +0 -114
  75. package/src/components/chat-ui/components/chat-input.tsx +0 -142
  76. package/src/components/chat-ui/components/chat-panel.stories.tsx +0 -396
  77. package/src/components/chat-ui/components/chat-panel.tsx +0 -97
  78. package/src/components/chat-ui/components/message-parts-renderer.stories.tsx +0 -59
  79. package/src/components/chat-ui/components/message-parts-renderer.tsx +0 -133
  80. package/src/components/chat-ui/components/message-types.ts +0 -40
  81. package/src/components/chat-ui/components/model-swap-separator.stories.tsx +0 -27
  82. package/src/components/chat-ui/components/model-swap-separator.tsx +0 -20
  83. package/src/components/chat-ui/components/send-button.tsx +0 -56
  84. package/src/components/chat-ui/components/timeline.tsx +0 -414
  85. package/src/components/chat-ui/components/tool-invocation-timeline.stories.tsx +0 -32
  86. package/src/components/chat-ui/components/tool-invocation-timeline.tsx +0 -16
  87. package/src/components/chat-ui/index.ts +0 -15
  88. package/src/components/chat-ui/mocks/full-conversation-normalized.json +0 -3557
  89. package/src/components/chat-ui/tool-rendering/build-timeline.ts +0 -127
  90. package/src/components/chat-ui/tool-rendering/default-renderers.ts +0 -420
  91. package/src/components/chat-ui/tool-rendering/index.ts +0 -3
  92. package/src/components/chat-ui/tool-rendering/types.ts +0 -19
  93. package/src/components/chat-ui/utils/diff.ts +0 -228
  94. package/src/components/chat-ui/utils/editor-state.ts +0 -5
  95. package/src/components/chat-ui/utils/get-icon.ts +0 -81
  96. package/src/components/code-editor.tsx +0 -147
  97. package/src/components/column-file-browser.stories.tsx +0 -217
  98. package/src/components/column-file-browser.tsx +0 -380
  99. package/src/components/content-placeholder.tsx +0 -21
  100. package/src/components/data-table/build-columns.tsx +0 -78
  101. package/src/components/data-table/data-table.css +0 -51
  102. package/src/components/data-table/data-table.stories.tsx +0 -209
  103. package/src/components/data-table/data-table.tsx +0 -232
  104. package/src/components/data-table/helpers.tsx +0 -69
  105. package/src/components/data-table/index.ts +0 -3
  106. package/src/components/data-table/pagination-footer.tsx +0 -58
  107. package/src/components/data-table/selection-toolbar.tsx +0 -26
  108. package/src/components/data-table/types.ts +0 -21
  109. package/src/components/delete-confirmation-modal.stories.tsx +0 -46
  110. package/src/components/delete-confirmation-modal.tsx +0 -56
  111. package/src/components/diff-bubble.stories.tsx +0 -70
  112. package/src/components/diff-bubble.tsx +0 -70
  113. package/src/components/diff-card.tsx +0 -139
  114. package/src/components/diff-drawer.stories.tsx +0 -106
  115. package/src/components/diff-drawer.tsx +0 -59
  116. package/src/components/diff-editor.tsx +0 -55
  117. package/src/components/drawer-inline.stories.tsx +0 -124
  118. package/src/components/drawer-inline.tsx +0 -90
  119. package/src/components/empty-state.stories.tsx +0 -65
  120. package/src/components/empty-state.tsx +0 -28
  121. package/src/components/error-boundary.tsx +0 -80
  122. package/src/components/file-selector.stories.tsx +0 -166
  123. package/src/components/file-selector.tsx +0 -192
  124. package/src/components/file-tree-helpers.ts +0 -28
  125. package/src/components/horizontal-menu-stack.tsx +0 -15
  126. package/src/components/info-card.stories.tsx +0 -120
  127. package/src/components/info-card.tsx +0 -60
  128. package/src/components/item-section.stories.tsx +0 -57
  129. package/src/components/item-section.tsx +0 -57
  130. package/src/components/layout.stories.tsx +0 -341
  131. package/src/components/layout.tsx +0 -67
  132. package/src/components/menu-item.stories.tsx +0 -162
  133. package/src/components/menu-item.tsx +0 -207
  134. package/src/components/number-input.tsx +0 -21
  135. package/src/components/open-source-notices-screen.stories.tsx +0 -69
  136. package/src/components/open-source-notices-screen.tsx +0 -154
  137. package/src/components/panel-menu.stories.tsx +0 -44
  138. package/src/components/panel-menu.tsx +0 -27
  139. package/src/components/param-editor-color-input.tsx +0 -98
  140. package/src/components/param-editor-date-input.tsx +0 -106
  141. package/src/components/param-editor-horizontal-text-input.tsx +0 -130
  142. package/src/components/param-editor-horizontal.stories.tsx +0 -545
  143. package/src/components/param-editor-horizontal.tsx +0 -137
  144. package/src/components/param-editor-input-group.tsx +0 -145
  145. package/src/components/param-editor-number-input.tsx +0 -145
  146. package/src/components/param-editor-selection-input.tsx +0 -181
  147. package/src/components/param-editor-text-input.tsx +0 -113
  148. package/src/components/param-editor.stories.tsx +0 -986
  149. package/src/components/param-editor.tsx +0 -142
  150. package/src/components/param-editor.types.ts +0 -95
  151. package/src/components/properties.stories.tsx +0 -108
  152. package/src/components/properties.tsx +0 -73
  153. package/src/components/pstdio-logo.tsx +0 -26
  154. package/src/components/resource-badge.stories.tsx +0 -26
  155. package/src/components/resource-badge.tsx +0 -173
  156. package/src/components/rich-text/collaborative-markdown-editor/awareness-cursors.tsx +0 -45
  157. package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.tsx +0 -230
  158. package/src/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.tsx +0 -131
  159. package/src/components/rich-text/index.ts +0 -14
  160. package/src/components/rich-text/markdown-editor/markdown-editor.stories.tsx +0 -147
  161. package/src/components/rich-text/markdown-editor/markdown-editor.tsx +0 -112
  162. package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
  163. package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
  164. package/src/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.ts +0 -2
  165. package/src/components/rich-text/prompt-input/commands.ts +0 -44
  166. package/src/components/rich-text/prompt-input/events.ts +0 -21
  167. package/src/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.tsx +0 -8
  168. package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.ts +0 -49
  169. package/src/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.ts +0 -30
  170. package/src/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.tsx +0 -127
  171. package/src/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.tsx +0 -32
  172. package/src/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.tsx +0 -30
  173. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.ts +0 -15
  174. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.tsx +0 -88
  175. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.tsx +0 -90
  176. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.tsx +0 -50
  177. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.ts +0 -3
  178. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.tsx +0 -50
  179. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.ts +0 -45
  180. package/src/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.ts +0 -20
  181. package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.tsx +0 -50
  182. package/src/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.tsx +0 -107
  183. package/src/components/rich-text/prompt-input/plugins/keyboard-shortcuts.ts +0 -13
  184. package/src/components/rich-text/prompt-input/prompt-input.stories.tsx +0 -87
  185. package/src/components/rich-text/prompt-input/prompt-input.tsx +0 -106
  186. package/src/components/rich-text/prompt-input/theme/prompt-input-theme.css +0 -3
  187. package/src/components/rich-text/prompt-input/theme/prompt-input-theme.ts +0 -11
  188. package/src/components/rich-text/prompt-input/utils.ts +0 -158
  189. package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.tsx +0 -100
  190. package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.ts +0 -32
  191. package/src/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.ts +0 -2
  192. package/src/components/rich-text/rich-message/rich-message.stories.tsx +0 -146
  193. package/src/components/rich-text/rich-message/rich-message.tsx +0 -118
  194. package/src/components/rich-text/shared/components/content-editable.tsx +0 -28
  195. package/src/components/rich-text/shared/components/default-rich-text-components.tsx +0 -99
  196. package/src/components/rich-text/shared/editor-config.ts +0 -38
  197. package/src/components/rich-text/shared/nodes/DataTableNode.stories.tsx +0 -52
  198. package/src/components/rich-text/shared/nodes/DataTableNode.tsx +0 -73
  199. package/src/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.tsx +0 -22
  200. package/src/components/rich-text/shared/plugins/CodePlugin/CodeNode.tsx +0 -57
  201. package/src/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.tsx +0 -46
  202. package/src/components/rich-text/shared/plugins/EquationPlugin/EquationNode.tsx +0 -161
  203. package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.css +0 -16
  204. package/src/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.tsx +0 -45
  205. package/src/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.tsx +0 -40
  206. package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.css +0 -26
  207. package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.tsx +0 -414
  208. package/src/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.ts +0 -1
  209. package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.ts +0 -52
  210. package/src/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.ts +0 -16
  211. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.css +0 -163
  212. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.tsx +0 -355
  213. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.tsx +0 -6
  214. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.ts +0 -17
  215. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.ts +0 -39
  216. package/src/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.ts +0 -23
  217. package/src/components/rich-text/shared/plugins/StateUpdatePlugin.tsx +0 -21
  218. package/src/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.tsx +0 -224
  219. package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.css +0 -3
  220. package/src/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.tsx +0 -315
  221. package/src/components/rich-text/shared/plugins/ToggleEditablePlugin.tsx +0 -12
  222. package/src/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.tsx +0 -20
  223. package/src/components/rich-text/shared/transformers/markdown-transformers.ts +0 -123
  224. package/src/components/rich-text/shared/types/rich-text-components.ts +0 -17
  225. package/src/components/rich-text/theme/report-theme.tsx +0 -81
  226. package/src/components/rich-text/theme/rich-text-theme.css +0 -773
  227. package/src/components/rich-text/theme/rich-text-theme.tsx +0 -81
  228. package/src/components/rich-text/types.ts +0 -9
  229. package/src/components/rich-text/utils/inferResourceType.ts +0 -17
  230. package/src/components/rich-text/utils/markdown.ts +0 -12
  231. package/src/components/rich-text/utils/mediaType.ts +0 -31
  232. package/src/components/session-indicator.stories.tsx +0 -46
  233. package/src/components/session-indicator.tsx +0 -40
  234. package/src/components/slider.stories.tsx +0 -38
  235. package/src/components/slider.tsx +0 -20
  236. package/src/components/style-guide-data.ts +0 -374
  237. package/src/components/style-guide.stories.tsx +0 -212
  238. package/src/components/style-guide.tsx +0 -305
  239. package/src/components/ticket-board.stories.tsx +0 -109
  240. package/src/components/ticket-board.tsx +0 -167
  241. package/src/components/ticket-card.stories.tsx +0 -133
  242. package/src/components/ticket-card.tsx +0 -126
  243. package/src/components/toaster.stories.tsx +0 -79
  244. package/src/components/toaster.tsx +0 -26
  245. package/src/components/tooltip.tsx +0 -43
  246. package/src/index.ts +0 -16
  247. package/src/theme/global.ts +0 -49
  248. package/src/theme/primitives/colors.ts +0 -209
  249. package/src/theme/primitives/fonts.ts +0 -33
  250. package/src/theme/primitives/sizes.ts +0 -49
  251. package/src/theme/recipes/alert.ts +0 -12
  252. package/src/theme/recipes/button.ts +0 -124
  253. package/src/theme/recipes/dialog.ts +0 -11
  254. package/src/theme/recipes/divider.ts +0 -7
  255. package/src/theme/recipes/drawer.ts +0 -16
  256. package/src/theme/recipes/editable.ts +0 -42
  257. package/src/theme/recipes/form.ts +0 -11
  258. package/src/theme/recipes/input.ts +0 -25
  259. package/src/theme/recipes/menu.ts +0 -40
  260. package/src/theme/recipes/popover.ts +0 -46
  261. package/src/theme/recipes/progress-circle.ts +0 -22
  262. package/src/theme/recipes/skeleton.ts +0 -8
  263. package/src/theme/recipes/textarea.ts +0 -29
  264. package/src/theme/recipes/tooltip.ts +0 -15
  265. package/src/theme/theme.ts +0 -70
  266. package/src/theme/tokens/borders.ts +0 -38
  267. package/src/theme/tokens/colors.ts +0 -488
  268. package/src/theme/tokens/layer-styles.ts +0 -15
  269. package/src/theme/tokens/shadows.ts +0 -47
  270. package/src/theme/tokens/text.ts +0 -236
  271. package/src/utils/apply-theme-preference.ts +0 -17
  272. package/src/utils/formats.ts +0 -27
  273. package/src/utils/get-file-type-icon.ts +0 -52
  274. package/src/utils/theme-preference.tsx +0 -60
  275. package/src/vite-env.d.ts +0 -6
  276. package/storybook-static/assets/CodeBlockPlugin-C3OWpvP8.js +0 -281
  277. package/storybook-static/assets/CodeBlockPlugin-e2vWgtYm.css +0 -1
  278. package/storybook-static/assets/DataTableNode.stories-DLgTftOI.js +0 -33
  279. package/storybook-static/assets/EquationComponent-CUFxwyNf.js +0 -1
  280. package/storybook-static/assets/EquationComponent-DWZwfaVI.css +0 -1
  281. package/storybook-static/assets/FloatingTextFormatToolbarPlugin-B6jc8xvg.js +0 -1
  282. package/storybook-static/assets/FloatingTextFormatToolbarPlugin-D2l3--Te.css +0 -1
  283. package/storybook-static/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  284. package/storybook-static/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  285. package/storybook-static/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  286. package/storybook-static/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  287. package/storybook-static/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  288. package/storybook-static/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  289. package/storybook-static/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  290. package/storybook-static/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  291. package/storybook-static/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  292. package/storybook-static/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  293. package/storybook-static/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  294. package/storybook-static/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  295. package/storybook-static/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  296. package/storybook-static/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  297. package/storybook-static/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  298. package/storybook-static/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  299. package/storybook-static/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  300. package/storybook-static/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  301. package/storybook-static/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  302. package/storybook-static/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  303. package/storybook-static/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  304. package/storybook-static/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  305. package/storybook-static/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  306. package/storybook-static/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  307. package/storybook-static/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  308. package/storybook-static/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  309. package/storybook-static/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  310. package/storybook-static/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  311. package/storybook-static/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  312. package/storybook-static/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  313. package/storybook-static/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  314. package/storybook-static/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  315. package/storybook-static/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  316. package/storybook-static/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  317. package/storybook-static/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  318. package/storybook-static/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  319. package/storybook-static/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  320. package/storybook-static/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  321. package/storybook-static/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  322. package/storybook-static/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  323. package/storybook-static/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  324. package/storybook-static/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  325. package/storybook-static/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  326. package/storybook-static/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  327. package/storybook-static/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  328. package/storybook-static/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  329. package/storybook-static/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  330. package/storybook-static/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  331. package/storybook-static/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  332. package/storybook-static/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  333. package/storybook-static/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  334. package/storybook-static/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  335. package/storybook-static/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  336. package/storybook-static/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  337. package/storybook-static/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  338. package/storybook-static/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  339. package/storybook-static/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  340. package/storybook-static/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  341. package/storybook-static/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  342. package/storybook-static/assets/LexicalHistoryPlugin.prod-BQAibkDj.js +0 -1
  343. package/storybook-static/assets/TreeViewPlugin-CyVKCrKJ.js +0 -24
  344. package/storybook-static/assets/ai-conversation-DcjS--ee.js +0 -1
  345. package/storybook-static/assets/ai-conversation.stories-COjWuS8V.js +0 -3
  346. package/storybook-static/assets/ai-message-DLdAGhWH.js +0 -1
  347. package/storybook-static/assets/ai-message.stories-CRTyreKL.js +0 -3
  348. package/storybook-static/assets/ai-response-ySM6s0iN.js +0 -1
  349. package/storybook-static/assets/ai-response.stories-DVBYlrGf.js +0 -11
  350. package/storybook-static/assets/attachment-list-1p1601I5.js +0 -1
  351. package/storybook-static/assets/attachment-list.stories-Cydlsnio.js +0 -7
  352. package/storybook-static/assets/badge-CtgJasjB.js +0 -1
  353. package/storybook-static/assets/breadcrumb.stories-SAjB-iqH.js +0 -5
  354. package/storybook-static/assets/button-C7it2n8t.js +0 -1
  355. package/storybook-static/assets/button.stories-BMVbbb4y.js +0 -72
  356. package/storybook-static/assets/chat-input-B-915nCM.js +0 -1
  357. package/storybook-static/assets/chat-input.stories-DrxvpT9p.js +0 -32
  358. package/storybook-static/assets/chat-panel.stories-D0L6eIte.js +0 -96
  359. package/storybook-static/assets/chevron-down-BYCAGyCV.js +0 -1
  360. package/storybook-static/assets/chevron-right-owK1wZnx.js +0 -1
  361. package/storybook-static/assets/collaborative-markdown-editor-Bj0GvTvv.js +0 -41
  362. package/storybook-static/assets/collaborative-markdown-editor.stories-B_MUIC5s.js +0 -11
  363. package/storybook-static/assets/collapsible-DBDG7h1r.js +0 -1
  364. package/storybook-static/assets/collapsible-content-B1Uq3jUM.js +0 -1
  365. package/storybook-static/assets/column-file-browser.stories-DPMQnHCw.js +0 -54
  366. package/storybook-static/assets/compiler-runtime-BXE7OOXE.js +0 -1
  367. package/storybook-static/assets/computed-style-C0hzrq9-.js +0 -1
  368. package/storybook-static/assets/create-recipe-context-BU56IzEo.js +0 -1
  369. package/storybook-static/assets/create-slot-recipe-context-DAhDE6G_.js +0 -1
  370. package/storybook-static/assets/create-split-props-u5h9OPvL.js +0 -1
  371. package/storybook-static/assets/createLucideIcon-CcBBUKX8.js +0 -1
  372. package/storybook-static/assets/data-table-vuIeWXui.css +0 -1
  373. package/storybook-static/assets/data-table.stories-Cs-q7dpj.js +0 -19
  374. package/storybook-static/assets/delete-confirmation-modal.stories-C8vDKFRD.js +0 -14
  375. package/storybook-static/assets/diff-bubble-_zZypMRt.js +0 -1
  376. package/storybook-static/assets/diff-bubble.stories-DfonanIk.js +0 -39
  377. package/storybook-static/assets/diff-drawer.stories-CGDWiKD8.js +0 -38
  378. package/storybook-static/assets/diff-editor-DV9BXqbn.js +0 -11
  379. package/storybook-static/assets/dismissable-layer-Cc5dFRd8.js +0 -1
  380. package/storybook-static/assets/drawer-inline.stories-B3Tp7vjL.js +0 -88
  381. package/storybook-static/assets/empty-state-BXkyq69k.js +0 -1
  382. package/storybook-static/assets/empty-state.stories-6eYYBOWR.js +0 -29
  383. package/storybook-static/assets/factory-BR3bc_RM.js +0 -1
  384. package/storybook-static/assets/factory-DAJZwK4o.js +0 -1
  385. package/storybook-static/assets/file-selector.stories-PKIGBUd5.js +0 -31
  386. package/storybook-static/assets/file-text-D5m8MJlG.js +0 -1
  387. package/storybook-static/assets/flex-DAJL4AFZ.js +0 -1
  388. package/storybook-static/assets/folder-C5dba_Co.js +0 -1
  389. package/storybook-static/assets/form-D_Xln9tK.js +0 -1
  390. package/storybook-static/assets/full-conversation-normalized-LUbl1coD.js +0 -1
  391. package/storybook-static/assets/grid-7OIKBlfh.js +0 -1
  392. package/storybook-static/assets/h-stack-DWHd8f97.js +0 -1
  393. package/storybook-static/assets/horizontal-menu-stack-Cph6x7ui.js +0 -1
  394. package/storybook-static/assets/icon-C8FN9JqD.js +0 -1
  395. package/storybook-static/assets/icon-button-DHiUe7rR.js +0 -1
  396. package/storybook-static/assets/icons-WRA1cA-W.js +0 -1
  397. package/storybook-static/assets/iframe-2XPD_vrQ.css +0 -1
  398. package/storybook-static/assets/iframe-B8FSoBNY.js +0 -1075
  399. package/storybook-static/assets/index-B0y2_lLF.js +0 -1
  400. package/storybook-static/assets/index-CXwl6T4k.js +0 -1
  401. package/storybook-static/assets/index-DaXC_qY_.js +0 -1
  402. package/storybook-static/assets/index-DpB4ozcR.js +0 -1
  403. package/storybook-static/assets/index-cFwdnc0b.js +0 -1
  404. package/storybook-static/assets/info-DlgY5-DW.js +0 -1
  405. package/storybook-static/assets/info-card.stories-Cry0Qfrn.js +0 -55
  406. package/storybook-static/assets/input-ZSs5cSFQ.js +0 -1
  407. package/storybook-static/assets/inter-cyrillic-400-normal-HOLc17fK.woff +0 -0
  408. package/storybook-static/assets/inter-cyrillic-400-normal-obahsSVq.woff2 +0 -0
  409. package/storybook-static/assets/inter-cyrillic-500-normal-BasfLYem.woff2 +0 -0
  410. package/storybook-static/assets/inter-cyrillic-500-normal-CxZf_p3X.woff +0 -0
  411. package/storybook-static/assets/inter-cyrillic-ext-400-normal-BQZuk6qB.woff2 +0 -0
  412. package/storybook-static/assets/inter-cyrillic-ext-400-normal-DQukG94-.woff +0 -0
  413. package/storybook-static/assets/inter-cyrillic-ext-500-normal-B0yAr1jD.woff2 +0 -0
  414. package/storybook-static/assets/inter-cyrillic-ext-500-normal-BmqWE9Dz.woff +0 -0
  415. package/storybook-static/assets/inter-greek-400-normal-B4URO6DV.woff2 +0 -0
  416. package/storybook-static/assets/inter-greek-400-normal-q2sYcFCs.woff +0 -0
  417. package/storybook-static/assets/inter-greek-500-normal-BIZE56-Y.woff2 +0 -0
  418. package/storybook-static/assets/inter-greek-500-normal-Xzm54t5V.woff +0 -0
  419. package/storybook-static/assets/inter-greek-ext-400-normal-DGGRlc-M.woff2 +0 -0
  420. package/storybook-static/assets/inter-greek-ext-400-normal-KugGGMne.woff +0 -0
  421. package/storybook-static/assets/inter-greek-ext-500-normal-2j5mBUwD.woff +0 -0
  422. package/storybook-static/assets/inter-greek-ext-500-normal-C4iEst2y.woff2 +0 -0
  423. package/storybook-static/assets/inter-latin-400-normal-C38fXH4l.woff2 +0 -0
  424. package/storybook-static/assets/inter-latin-400-normal-CyCys3Eg.woff +0 -0
  425. package/storybook-static/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  426. package/storybook-static/assets/inter-latin-500-normal-Cerq10X2.woff2 +0 -0
  427. package/storybook-static/assets/inter-latin-ext-400-normal-77YHD8bZ.woff +0 -0
  428. package/storybook-static/assets/inter-latin-ext-400-normal-C1nco2VV.woff2 +0 -0
  429. package/storybook-static/assets/inter-latin-ext-500-normal-BxGbmqWO.woff +0 -0
  430. package/storybook-static/assets/inter-latin-ext-500-normal-CV4jyFjo.woff2 +0 -0
  431. package/storybook-static/assets/inter-vietnamese-400-normal-Bbgyi5SW.woff +0 -0
  432. package/storybook-static/assets/inter-vietnamese-400-normal-DMkecbls.woff2 +0 -0
  433. package/storybook-static/assets/inter-vietnamese-500-normal-DOriooB6.woff2 +0 -0
  434. package/storybook-static/assets/inter-vietnamese-500-normal-mJboJaSs.woff +0 -0
  435. package/storybook-static/assets/item-section-AoQrVPNJ.js +0 -1
  436. package/storybook-static/assets/item-section.stories-kYTPHRsx.js +0 -24
  437. package/storybook-static/assets/layout.stories-DhSjwzU1.js +0 -3
  438. package/storybook-static/assets/link-DE5grRtm.js +0 -1
  439. package/storybook-static/assets/markdown-BLUemkxK.js +0 -1
  440. package/storybook-static/assets/markdown-editor-Y4eMsgVb.js +0 -1
  441. package/storybook-static/assets/markdown-editor.stories-DIWw-hRP.js +0 -115
  442. package/storybook-static/assets/menu-item-CrqDaj9K.js +0 -1
  443. package/storybook-static/assets/menu-item.stories-D9Isjjrf.js +0 -68
  444. package/storybook-static/assets/message-parts-renderer.stories-CewRvbm7.js +0 -5
  445. package/storybook-static/assets/message-types-CEyA7Qm7.js +0 -60
  446. package/storybook-static/assets/model-swap-separator.stories-DrQW2NWQ.js +0 -9
  447. package/storybook-static/assets/mutation-observer-CAfGweIM.js +0 -1
  448. package/storybook-static/assets/normalize-props-D7NI5JRu.js +0 -1
  449. package/storybook-static/assets/number-C92MPsRM.js +0 -1
  450. package/storybook-static/assets/number-input-D1aC-9ls.js +0 -7
  451. package/storybook-static/assets/onest-cyrillic-400-normal-BxvCLB5P.woff +0 -0
  452. package/storybook-static/assets/onest-cyrillic-400-normal-DH8vlB-A.woff2 +0 -0
  453. package/storybook-static/assets/onest-cyrillic-500-normal-CyY1vN0Q.woff +0 -0
  454. package/storybook-static/assets/onest-cyrillic-500-normal-DHyr8B2c.woff2 +0 -0
  455. package/storybook-static/assets/onest-cyrillic-700-normal-CwpXuTGk.woff2 +0 -0
  456. package/storybook-static/assets/onest-cyrillic-700-normal-DOtXtm0s.woff +0 -0
  457. package/storybook-static/assets/onest-latin-400-normal-BAzPRZHg.woff +0 -0
  458. package/storybook-static/assets/onest-latin-400-normal-bladozIj.woff2 +0 -0
  459. package/storybook-static/assets/onest-latin-500-normal-oFTiz6Nq.woff +0 -0
  460. package/storybook-static/assets/onest-latin-500-normal-qHiQtL66.woff2 +0 -0
  461. package/storybook-static/assets/onest-latin-700-normal-Bd6qVL4Q.woff2 +0 -0
  462. package/storybook-static/assets/onest-latin-700-normal-XTvQgpoh.woff +0 -0
  463. package/storybook-static/assets/onest-latin-ext-400-normal--mQR5RlC.woff2 +0 -0
  464. package/storybook-static/assets/onest-latin-ext-400-normal-BbXTNVXw.woff +0 -0
  465. package/storybook-static/assets/onest-latin-ext-500-normal-BlXa29q8.woff2 +0 -0
  466. package/storybook-static/assets/onest-latin-ext-500-normal-CoujUMv_.woff +0 -0
  467. package/storybook-static/assets/onest-latin-ext-700-normal-C-Tcltod.woff2 +0 -0
  468. package/storybook-static/assets/onest-latin-ext-700-normal-CSGWRWNE.woff +0 -0
  469. package/storybook-static/assets/open-source-notices-screen.stories-BpdJxDZC.js +0 -21
  470. package/storybook-static/assets/overflow-CkG1DOya.js +0 -1
  471. package/storybook-static/assets/panel-menu-CqLSrdTB.js +0 -1
  472. package/storybook-static/assets/panel-menu.stories-CxdWaWjq.js +0 -14
  473. package/storybook-static/assets/param-editor-horizontal.stories-C1o-VOjG.js +0 -561
  474. package/storybook-static/assets/param-editor-selection-input-2pJE1_W1.js +0 -1
  475. package/storybook-static/assets/param-editor.stories-0ae3y4Vu.js +0 -921
  476. package/storybook-static/assets/playfair-display-cyrillic-400-normal-CjW2EstV.woff2 +0 -0
  477. package/storybook-static/assets/playfair-display-cyrillic-400-normal-ZiRag6zj.woff +0 -0
  478. package/storybook-static/assets/playfair-display-cyrillic-600-normal-DbWAkkgN.woff +0 -0
  479. package/storybook-static/assets/playfair-display-cyrillic-600-normal-oLY6jnZ7.woff2 +0 -0
  480. package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dk1mTcxf.woff +0 -0
  481. package/storybook-static/assets/playfair-display-cyrillic-700-normal-Dw3uKy19.woff2 +0 -0
  482. package/storybook-static/assets/playfair-display-latin-400-normal-CFtfchNt.woff2 +0 -0
  483. package/storybook-static/assets/playfair-display-latin-400-normal-DHYHbkg3.woff +0 -0
  484. package/storybook-static/assets/playfair-display-latin-600-normal-CZLGqjJe.woff2 +0 -0
  485. package/storybook-static/assets/playfair-display-latin-600-normal-CxxueQ0Z.woff +0 -0
  486. package/storybook-static/assets/playfair-display-latin-700-normal-Bc_1Q1cG.woff +0 -0
  487. package/storybook-static/assets/playfair-display-latin-700-normal-CuDiGg7c.woff2 +0 -0
  488. package/storybook-static/assets/playfair-display-latin-ext-400-normal-BxlSGspa.woff2 +0 -0
  489. package/storybook-static/assets/playfair-display-latin-ext-400-normal-qdZwdvNS.woff +0 -0
  490. package/storybook-static/assets/playfair-display-latin-ext-600-normal-BumBfC1v.woff +0 -0
  491. package/storybook-static/assets/playfair-display-latin-ext-600-normal-CEjQclLc.woff2 +0 -0
  492. package/storybook-static/assets/playfair-display-latin-ext-700-normal-C58ejOkc.woff2 +0 -0
  493. package/storybook-static/assets/playfair-display-latin-ext-700-normal-D5HUU8GT.woff +0 -0
  494. package/storybook-static/assets/playfair-display-vietnamese-400-normal-BV2APVTb.woff2 +0 -0
  495. package/storybook-static/assets/playfair-display-vietnamese-400-normal-BbvUAu4N.woff +0 -0
  496. package/storybook-static/assets/playfair-display-vietnamese-600-normal-BPJkAZPN.woff +0 -0
  497. package/storybook-static/assets/playfair-display-vietnamese-600-normal-ICsRR-qJ.woff2 +0 -0
  498. package/storybook-static/assets/playfair-display-vietnamese-700-normal-CaKJSIny.woff2 +0 -0
  499. package/storybook-static/assets/playfair-display-vietnamese-700-normal-Cr1rw0mr.woff +0 -0
  500. package/storybook-static/assets/portal-CZHfPTRw.js +0 -1
  501. package/storybook-static/assets/preload-helper-PPVm8Dsz.js +0 -1
  502. package/storybook-static/assets/prompt-input-BLCttowi.js +0 -14
  503. package/storybook-static/assets/prompt-input-BVbz9joI.css +0 -1
  504. package/storybook-static/assets/prompt-input.stories-J8-AMVXy.js +0 -9
  505. package/storybook-static/assets/properties.stories-Bs7ivKgb.js +0 -59
  506. package/storybook-static/assets/react-18-KY0R7ltw.js +0 -9
  507. package/storybook-static/assets/render-strategy-BebqUNCa.js +0 -1
  508. package/storybook-static/assets/resource-badge-Bw5UoU4J.js +0 -1
  509. package/storybook-static/assets/resource-badge.stories-DtSh-RX9.js +0 -9
  510. package/storybook-static/assets/rich-message-BIkzo1SM.js +0 -1
  511. package/storybook-static/assets/rich-message.stories-C9Wc4d3O.js +0 -115
  512. package/storybook-static/assets/rich-text-theme-Bkhh9rAZ.js +0 -14
  513. package/storybook-static/assets/rich-text-theme-K2MBoCbx.css +0 -1
  514. package/storybook-static/assets/separator-CQkMOHNm.js +0 -1
  515. package/storybook-static/assets/settings-DUgg22A7.js +0 -1
  516. package/storybook-static/assets/simple-grid-DIKjhnVI.js +0 -1
  517. package/storybook-static/assets/spinner-ZYH_gvW-.js +0 -1
  518. package/storybook-static/assets/stack-CN4X31TA.js +0 -1
  519. package/storybook-static/assets/star-CvcHIXRa.js +0 -1
  520. package/storybook-static/assets/style-guide.stories-BUvEhZov.js +0 -6
  521. package/storybook-static/assets/tabbable-DHAf8oAu.js +0 -1
  522. package/storybook-static/assets/table-BKNSzs2r.js +0 -1
  523. package/storybook-static/assets/textarea-rqmaWSc5.js +0 -1
  524. package/storybook-static/assets/toaster-d9nN0H7K.js +0 -1
  525. package/storybook-static/assets/toaster.stories-BRVCYyaM.js +0 -52
  526. package/storybook-static/assets/tool-invocation-timeline-B-cS0W6M.js +0 -59
  527. package/storybook-static/assets/tool-invocation-timeline.stories-DXO59O73.js +0 -5
  528. package/storybook-static/assets/tooltip-C_a-XGZ8.js +0 -1
  529. package/storybook-static/assets/tooltip-DZxUoouw.js +0 -1
  530. package/storybook-static/assets/trash-2-BO05slEk.js +0 -1
  531. package/storybook-static/assets/typeahead-CuY9WxfQ.js +0 -1
  532. package/storybook-static/assets/use-field-context-DoxKQlMm.js +0 -1
  533. package/storybook-static/assets/use-presence-context-DK2PGZth.js +0 -1
  534. package/storybook-static/assets/v-stack-Btoq6OB_.js +0 -1
  535. package/storybook-static/assets/x-D42ziktz.js +0 -1
  536. package/storybook-static/components/chat-ui/mocks/full-conversation-normalized.json.d.ts +0 -3560
  537. package/storybook-static/components/rich-text/utils/inferResourceType.d.ts +0 -1
  538. package/storybook-static/favicon-wrapper.svg +0 -46
  539. package/storybook-static/favicon.svg +0 -1
  540. package/storybook-static/iframe.html +0 -705
  541. package/storybook-static/index.html +0 -150
  542. package/storybook-static/index.json +0 -1
  543. package/storybook-static/nunito-sans-bold-italic.woff2 +0 -0
  544. package/storybook-static/nunito-sans-bold.woff2 +0 -0
  545. package/storybook-static/nunito-sans-italic.woff2 +0 -0
  546. package/storybook-static/nunito-sans-regular.woff2 +0 -0
  547. package/storybook-static/project.json +0 -1
  548. package/storybook-static/sb-addons/storybook-core-server-presets-0/common-manager-bundle.js +0 -628
  549. package/storybook-static/sb-addons/themes-1/manager-bundle.js +0 -3
  550. package/storybook-static/sb-addons/vitest-2/manager-bundle.js +0 -3
  551. package/storybook-static/sb-common-assets/favicon-wrapper.svg +0 -46
  552. package/storybook-static/sb-common-assets/favicon.svg +0 -1
  553. package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
  554. package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
  555. package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
  556. package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
  557. package/storybook-static/sb-manager/globals-runtime.js +0 -77956
  558. package/storybook-static/sb-manager/globals.js +0 -24
  559. package/storybook-static/sb-manager/manager-stores.js +0 -23
  560. package/storybook-static/sb-manager/runtime.js +0 -20422
  561. package/storybook-static/theme/types.d.ts +0 -1
  562. package/storybook-static/vite-inject-mocker-entry.js +0 -2
  563. package/tsconfig.json +0 -29
  564. package/vite.config.ts +0 -85
  565. package/vitest.shims.d.ts +0 -1
  566. /package/{storybook-static → dist}/components/alert.d.ts +0 -0
  567. /package/{storybook-static → dist}/components/breadcrumb.d.ts +0 -0
  568. /package/{storybook-static → dist}/components/breadcrumb.stories.d.ts +0 -0
  569. /package/{storybook-static → dist}/components/chat-ui/agent-types.d.ts +0 -0
  570. /package/{storybook-static → dist}/components/chat-ui/components/ai-conversation.stories.d.ts +0 -0
  571. /package/{storybook-static → dist}/components/chat-ui/components/ai-message.d.ts +0 -0
  572. /package/{storybook-static → dist}/components/chat-ui/components/ai-message.stories.d.ts +0 -0
  573. /package/{storybook-static → dist}/components/chat-ui/components/ai-response.d.ts +0 -0
  574. /package/{storybook-static → dist}/components/chat-ui/components/ai-response.stories.d.ts +0 -0
  575. /package/{storybook-static → dist}/components/chat-ui/components/approval-prompt.d.ts +0 -0
  576. /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.d.ts +0 -0
  577. /package/{storybook-static → dist}/components/chat-ui/components/attachment-list.stories.d.ts +0 -0
  578. /package/{storybook-static → dist}/components/chat-ui/components/auto-scroll.d.ts +0 -0
  579. /package/{storybook-static → dist}/components/chat-ui/components/chat-input.d.ts +0 -0
  580. /package/{storybook-static → dist}/components/chat-ui/components/chat-input.stories.d.ts +0 -0
  581. /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.d.ts +0 -0
  582. /package/{storybook-static → dist}/components/chat-ui/components/chat-panel.stories.d.ts +0 -0
  583. /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.d.ts +0 -0
  584. /package/{storybook-static → dist}/components/chat-ui/components/message-parts-renderer.stories.d.ts +0 -0
  585. /package/{storybook-static → dist}/components/chat-ui/components/message-types.d.ts +0 -0
  586. /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.d.ts +0 -0
  587. /package/{storybook-static → dist}/components/chat-ui/components/model-swap-separator.stories.d.ts +0 -0
  588. /package/{storybook-static → dist}/components/chat-ui/components/send-button.d.ts +0 -0
  589. /package/{storybook-static → dist}/components/chat-ui/components/timeline.d.ts +0 -0
  590. /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.d.ts +0 -0
  591. /package/{storybook-static → dist}/components/chat-ui/components/tool-invocation-timeline.stories.d.ts +0 -0
  592. /package/{storybook-static → dist}/components/chat-ui/tool-rendering/build-timeline.d.ts +0 -0
  593. /package/{storybook-static → dist}/components/chat-ui/tool-rendering/default-renderers.d.ts +0 -0
  594. /package/{storybook-static → dist}/components/chat-ui/tool-rendering/index.d.ts +0 -0
  595. /package/{storybook-static → dist}/components/chat-ui/tool-rendering/types.d.ts +0 -0
  596. /package/{storybook-static → dist}/components/chat-ui/utils/diff.d.ts +0 -0
  597. /package/{storybook-static → dist}/components/chat-ui/utils/editor-state.d.ts +0 -0
  598. /package/{storybook-static → dist}/components/code-editor.d.ts +0 -0
  599. /package/{storybook-static → dist}/components/content-placeholder.d.ts +0 -0
  600. /package/{storybook-static → dist}/components/delete-confirmation-modal.d.ts +0 -0
  601. /package/{storybook-static → dist}/components/delete-confirmation-modal.stories.d.ts +0 -0
  602. /package/{storybook-static → dist}/components/diff-bubble.d.ts +0 -0
  603. /package/{storybook-static → dist}/components/diff-bubble.stories.d.ts +0 -0
  604. /package/{storybook-static → dist}/components/diff-card.d.ts +0 -0
  605. /package/{storybook-static → dist}/components/diff-drawer.d.ts +0 -0
  606. /package/{storybook-static → dist}/components/diff-drawer.stories.d.ts +0 -0
  607. /package/{storybook-static → dist}/components/diff-editor.d.ts +0 -0
  608. /package/{storybook-static → dist}/components/drawer-inline.d.ts +0 -0
  609. /package/{storybook-static → dist}/components/drawer-inline.stories.d.ts +0 -0
  610. /package/{storybook-static → dist}/components/empty-state.d.ts +0 -0
  611. /package/{storybook-static → dist}/components/empty-state.stories.d.ts +0 -0
  612. /package/{storybook-static → dist}/components/error-boundary.d.ts +0 -0
  613. /package/{storybook-static → dist}/components/file-tree-helpers.d.ts +0 -0
  614. /package/{storybook-static → dist}/components/horizontal-menu-stack.d.ts +0 -0
  615. /package/{storybook-static → dist}/components/item-section.d.ts +0 -0
  616. /package/{storybook-static → dist}/components/item-section.stories.d.ts +0 -0
  617. /package/{storybook-static → dist}/components/layout.d.ts +0 -0
  618. /package/{storybook-static → dist}/components/layout.stories.d.ts +0 -0
  619. /package/{storybook-static → dist}/components/open-source-notices-screen.d.ts +0 -0
  620. /package/{storybook-static → dist}/components/open-source-notices-screen.stories.d.ts +0 -0
  621. /package/{storybook-static → dist}/components/panel-menu.d.ts +0 -0
  622. /package/{storybook-static → dist}/components/panel-menu.stories.d.ts +0 -0
  623. /package/{storybook-static → dist}/components/param-editor-color-input.d.ts +0 -0
  624. /package/{storybook-static → dist}/components/param-editor-date-input.d.ts +0 -0
  625. /package/{storybook-static → dist}/components/param-editor-horizontal-text-input.d.ts +0 -0
  626. /package/{storybook-static → dist}/components/param-editor-horizontal.d.ts +0 -0
  627. /package/{storybook-static → dist}/components/param-editor-horizontal.stories.d.ts +0 -0
  628. /package/{storybook-static → dist}/components/param-editor-input-group.d.ts +0 -0
  629. /package/{storybook-static → dist}/components/param-editor-number-input.d.ts +0 -0
  630. /package/{storybook-static → dist}/components/param-editor-selection-input.d.ts +0 -0
  631. /package/{storybook-static → dist}/components/param-editor-text-input.d.ts +0 -0
  632. /package/{storybook-static → dist}/components/param-editor.d.ts +0 -0
  633. /package/{storybook-static → dist}/components/param-editor.types.d.ts +0 -0
  634. /package/{storybook-static → dist}/components/properties.d.ts +0 -0
  635. /package/{storybook-static → dist}/components/properties.stories.d.ts +0 -0
  636. /package/{storybook-static/components/schub-logo.d.ts → dist/components/pstdio-logo.d.ts} +0 -0
  637. /package/{storybook-static → dist}/components/resource-badge.d.ts +0 -0
  638. /package/{storybook-static → dist}/components/resource-badge.stories.d.ts +0 -0
  639. /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/awareness-cursors.d.ts +0 -0
  640. /package/{storybook-static → dist}/components/rich-text/collaborative-markdown-editor/collaborative-markdown-editor.stories.d.ts +0 -0
  641. /package/{storybook-static → dist}/components/rich-text/index.d.ts +0 -0
  642. /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.d.ts +0 -0
  643. /package/{storybook-static → dist}/components/rich-text/markdown-editor/markdown-editor.stories.d.ts +0 -0
  644. /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
  645. /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
  646. /package/{storybook-static → dist}/components/rich-text/markdown-editor/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
  647. /package/{storybook-static → dist}/components/rich-text/prompt-input/commands.d.ts +0 -0
  648. /package/{storybook-static → dist}/components/rich-text/prompt-input/events.d.ts +0 -0
  649. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/CommentPlugin.d.ts +0 -0
  650. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentCommands.d.ts +0 -0
  651. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/hooks/useCommentSchema.d.ts +0 -0
  652. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/CommentPlugin/nodes/CommentNode/CommentNode.d.ts +0 -0
  653. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ImperativeAPIPlugin.d.ts +0 -0
  654. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/KeyboardShortcutPlugin.d.ts +0 -0
  655. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuOption.d.ts +0 -0
  656. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +0 -0
  657. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenu.d.ts +0 -0
  658. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/components/ReferenceMenu/ReferenceMenuItem.d.ts +0 -0
  659. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/constants.d.ts +0 -0
  660. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +0 -0
  661. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/checkForTriggers.d.ts +0 -0
  662. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/utils/getSortedMenuOptions.d.ts +0 -0
  663. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +0 -0
  664. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/ReferencePlugin/nodes/ReferenceNode/ReferenceNode.d.ts +0 -0
  665. /package/{storybook-static → dist}/components/rich-text/prompt-input/plugins/keyboard-shortcuts.d.ts +0 -0
  666. /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.d.ts +0 -0
  667. /package/{storybook-static → dist}/components/rich-text/prompt-input/prompt-input.stories.d.ts +0 -0
  668. /package/{storybook-static → dist}/components/rich-text/prompt-input/theme/prompt-input-theme.d.ts +0 -0
  669. /package/{storybook-static → dist}/components/rich-text/prompt-input/utils.d.ts +0 -0
  670. /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkNode.d.ts +0 -0
  671. /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/ReferenceLinkTransformer.d.ts +0 -0
  672. /package/{storybook-static → dist}/components/rich-text/rich-message/plugins/ReferenceLinkPlugin/index.d.ts +0 -0
  673. /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.d.ts +0 -0
  674. /package/{storybook-static → dist}/components/rich-text/rich-message/rich-message.stories.d.ts +0 -0
  675. /package/{storybook-static → dist}/components/rich-text/shared/components/content-editable.d.ts +0 -0
  676. /package/{storybook-static → dist}/components/rich-text/shared/components/default-rich-text-components.d.ts +0 -0
  677. /package/{storybook-static → dist}/components/rich-text/shared/editor-config.d.ts +0 -0
  678. /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.d.ts +0 -0
  679. /package/{storybook-static → dist}/components/rich-text/shared/nodes/DataTableNode.stories.d.ts +0 -0
  680. /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeBlockPlugin.d.ts +0 -0
  681. /package/{storybook-static → dist}/components/rich-text/shared/plugins/CodePlugin/CodeNode.d.ts +0 -0
  682. /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationComponent.d.ts +0 -0
  683. /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationNode.d.ts +0 -0
  684. /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/EquationPlugin.d.ts +0 -0
  685. /package/{storybook-static → dist}/components/rich-text/shared/plugins/EquationPlugin/KatexRenderer.d.ts +0 -0
  686. /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/FloatingTextFormatToolbarPlugin.d.ts +0 -0
  687. /package/{storybook-static → dist}/components/rich-text/shared/plugins/FloatingTextFormatToolbarPlugin/index.d.ts +0 -0
  688. /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/HorizontalRuleNode.d.ts +0 -0
  689. /package/{storybook-static → dist}/components/rich-text/shared/plugins/HorizontalRulePlugin/horizontalRule.d.ts +0 -0
  690. /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkEditorPlugin.d.ts +0 -0
  691. /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/LinkPlugin.d.ts +0 -0
  692. /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/getSelectedNode.d.ts +0 -0
  693. /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/setFloatingElemPos.d.ts +0 -0
  694. /package/{storybook-static → dist}/components/rich-text/shared/plugins/LinkEditorPlugin/utils/url.d.ts +0 -0
  695. /package/{storybook-static → dist}/components/rich-text/shared/plugins/StateUpdatePlugin.d.ts +0 -0
  696. /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableActionMenuPlugin/TableActionMenuPlugin.d.ts +0 -0
  697. /package/{storybook-static → dist}/components/rich-text/shared/plugins/TableCellResizerPlugin/TableCellResizerPlugin.d.ts +0 -0
  698. /package/{storybook-static → dist}/components/rich-text/shared/plugins/ToggleEditablePlugin.d.ts +0 -0
  699. /package/{storybook-static → dist}/components/rich-text/shared/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +0 -0
  700. /package/{storybook-static → dist}/components/rich-text/shared/transformers/markdown-transformers.d.ts +0 -0
  701. /package/{storybook-static → dist}/components/rich-text/shared/types/rich-text-components.d.ts +0 -0
  702. /package/{storybook-static → dist}/components/rich-text/theme/report-theme.d.ts +0 -0
  703. /package/{storybook-static → dist}/components/rich-text/theme/rich-text-theme.d.ts +0 -0
  704. /package/{storybook-static → dist}/components/rich-text/types.d.ts +0 -0
  705. /package/{storybook-static → dist}/components/rich-text/utils/markdown.d.ts +0 -0
  706. /package/{storybook-static → dist}/components/rich-text/utils/mediaType.d.ts +0 -0
  707. /package/{storybook-static → dist}/components/slider.d.ts +0 -0
  708. /package/{storybook-static → dist}/components/style-guide-data.d.ts +0 -0
  709. /package/{storybook-static → dist}/components/style-guide.d.ts +0 -0
  710. /package/{storybook-static → dist}/components/toaster.stories.d.ts +0 -0
  711. /package/{storybook-static → dist}/components/tooltip.d.ts +0 -0
  712. /package/{storybook-static → dist}/theme/global.d.ts +0 -0
  713. /package/{storybook-static → dist}/theme/index.d.ts +0 -0
  714. /package/{storybook-static → dist}/theme/primitives/fonts.d.ts +0 -0
  715. /package/{storybook-static → dist}/theme/primitives/sizes.d.ts +0 -0
  716. /package/{storybook-static → dist}/theme/recipes/alert.d.ts +0 -0
  717. /package/{storybook-static → dist}/theme/recipes/button.d.ts +0 -0
  718. /package/{storybook-static → dist}/theme/recipes/dialog.d.ts +0 -0
  719. /package/{storybook-static → dist}/theme/recipes/divider.d.ts +0 -0
  720. /package/{storybook-static → dist}/theme/recipes/drawer.d.ts +0 -0
  721. /package/{storybook-static → dist}/theme/recipes/editable.d.ts +0 -0
  722. /package/{storybook-static → dist}/theme/recipes/form.d.ts +0 -0
  723. /package/{storybook-static → dist}/theme/recipes/input.d.ts +0 -0
  724. /package/{storybook-static → dist}/theme/recipes/menu.d.ts +0 -0
  725. /package/{storybook-static → dist}/theme/recipes/popover.d.ts +0 -0
  726. /package/{storybook-static → dist}/theme/recipes/progress-circle.d.ts +0 -0
  727. /package/{storybook-static → dist}/theme/recipes/skeleton.d.ts +0 -0
  728. /package/{storybook-static → dist}/theme/recipes/textarea.d.ts +0 -0
  729. /package/{storybook-static → dist}/theme/recipes/tooltip.d.ts +0 -0
  730. /package/{storybook-static → dist}/theme/theme.d.ts +0 -0
  731. /package/{storybook-static → dist}/theme/tokens/borders.d.ts +0 -0
  732. /package/{storybook-static → dist}/theme/tokens/colors.d.ts +0 -0
  733. /package/{storybook-static → dist}/theme/tokens/layer-styles.d.ts +0 -0
  734. /package/{storybook-static → dist}/theme/tokens/shadows.d.ts +0 -0
  735. /package/{storybook-static → dist}/theme/tokens/text.d.ts +0 -0
  736. /package/{storybook-static → dist}/utils/formats.d.ts +0 -0
  737. /package/{storybook-static → dist}/utils/get-file-type-icon.d.ts +0 -0
@@ -1,72 +0,0 @@
1
- import{j as a}from"./iframe-B8FSoBNY.js";import{B as t}from"./button-C7it2n8t.js";import{H as l}from"./h-stack-DWHd8f97.js";import{I as r}from"./icon-button-DHiUe7rR.js";import{I as n}from"./icon-C8FN9JqD.js";import{c as p}from"./createLucideIcon-CcBBUKX8.js";import{S as m}from"./settings-DUgg22A7.js";import{T as b}from"./trash-2-BO05slEk.js";import{S as d}from"./stack-CN4X31TA.js";import{T as c}from"./index-cFwdnc0b.js";import{S as g}from"./simple-grid-DIKjhnVI.js";import{B as x}from"./index-B0y2_lLF.js";import"./preload-helper-PPVm8Dsz.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./grid-7OIKBlfh.js";const S=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],u=p("download",S);const h=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],v=p("plus",h),z=[{label:"Primary",description:"Brand action style using accent tokens.",variant:"primary"},{label:"Solid",description:"Primary calls to action.",variant:"solid"},{label:"Surface",description:"Secondary surfaces with borders.",variant:"surface"},{label:"Outline",description:"Neutral outlines for quiet actions.",variant:"outline"},{label:"Ghost",description:"Low emphasis actions in dense UI.",variant:"ghost"},{label:"Subtle",description:"Low-contrast background actions.",variant:"subtle"},{label:"Plain",description:"Inline link-style actions.",variant:"plain"}],j=[{label:"Small",helper:"Dense toolbars and tables.",size:"sm"},{label:"Medium",helper:"Default buttons across the app.",size:"md"},{label:"Large",helper:"Primary CTAs in dialogs.",size:"lg"},{label:"2XL",helper:"Hero CTAs on landing surfaces.",size:"2xl"}],A={title:"Components/Button",component:t,decorators:[e=>a.jsx(x,{padding:"sm",background:"bg",children:a.jsx(e,{})})]},o={render:()=>a.jsx(g,{columns:{base:1,lg:2},gap:"md",children:z.map(e=>a.jsx(x,{borderWidth:"1px",borderColor:"border.muted",borderRadius:"md",background:"bg",padding:"md",children:a.jsxs(d,{gap:"sm",children:[a.jsxs(d,{gap:"xs",children:[a.jsx(c,{textStyle:"label/L/medium",children:e.label}),a.jsx(c,{textStyle:"label/XS",color:"fg.muted",children:e.description})]}),a.jsxs(l,{gap:"sm",flexWrap:"wrap",children:[a.jsx(t,{variant:e.variant,children:"Run action"}),a.jsx(t,{variant:e.variant,loading:!0,children:"Loading"}),a.jsx(t,{variant:e.variant,disabled:!0,children:"Disabled"})]})]})},e.label))})},i={render:()=>a.jsx(d,{gap:"lg",children:j.map(e=>a.jsxs(l,{alignItems:"center",justifyContent:"space-between",flexWrap:"wrap",gap:"md",padding:"md",borderWidth:"1px",borderColor:"border.muted",borderRadius:"md",background:"bg",children:[a.jsxs(d,{gap:"xs",minWidth:"12rem",children:[a.jsx(c,{textStyle:"label/L/medium",children:e.label}),a.jsx(c,{textStyle:"label/XS",color:"fg.muted",children:e.helper})]}),a.jsxs(l,{gap:"sm",flexWrap:"wrap",children:[a.jsx(t,{size:e.size,variant:"solid",children:"Create new"}),a.jsx(t,{size:e.size,variant:"outline",children:"Secondary"}),a.jsxs(t,{size:e.size,variant:"ghost",children:[a.jsx(n,{as:u,boxSize:"16px"}),"Export"]}),a.jsx(r,{size:e.size,variant:"ghost","aria-label":"Settings",children:a.jsx(n,{as:m,boxSize:"16px"})}),a.jsx(r,{size:e.size,variant:"outline","aria-label":"Delete",children:a.jsx(n,{as:b,boxSize:"16px"})})]})]},e.label))})},s={render:()=>a.jsxs(l,{gap:"sm",flexWrap:"wrap",padding:"md",borderWidth:"1px",borderColor:"border.muted",borderRadius:"md",children:[a.jsx(r,{variant:"solid","aria-label":"Add",children:a.jsx(n,{as:v,boxSize:"icon-sm"})}),a.jsx(r,{variant:"surface","aria-label":"Settings",children:a.jsx(n,{as:m,boxSize:"16px"})}),a.jsx(r,{variant:"outline","aria-label":"Download",children:a.jsx(n,{as:u,boxSize:"16px"})}),a.jsx(r,{variant:"ghost","aria-label":"Delete",children:a.jsx(n,{as:b,boxSize:"16px"})})]})};o.parameters={...o.parameters,docs:{...o.parameters?.docs,source:{originalSource:`{
2
- render: () => <SimpleGrid columns={{
3
- base: 1,
4
- lg: 2
5
- }} gap="md">
6
- {buttonVariants.map(variant => <Box key={variant.label} borderWidth="1px" borderColor="border.muted" borderRadius="md" background="bg" padding="md">
7
- <Stack gap="sm">
8
- <Stack gap="xs">
9
- <Text textStyle="label/L/medium">{variant.label}</Text>
10
- <Text textStyle="label/XS" color="fg.muted">
11
- {variant.description}
12
- </Text>
13
- </Stack>
14
-
15
- <HStack gap="sm" flexWrap="wrap">
16
- <Button variant={variant.variant as ButtonProps["variant"]}>Run action</Button>
17
- <Button variant={variant.variant as ButtonProps["variant"]} loading>
18
- Loading
19
- </Button>
20
- <Button variant={variant.variant as ButtonProps["variant"]} disabled>
21
- Disabled
22
- </Button>
23
- </HStack>
24
- </Stack>
25
- </Box>)}
26
- </SimpleGrid>
27
- }`,...o.parameters?.docs?.source}}};i.parameters={...i.parameters,docs:{...i.parameters?.docs,source:{originalSource:`{
28
- render: () => <Stack gap="lg">
29
- {buttonSizes.map(size => <HStack key={size.label} alignItems="center" justifyContent="space-between" flexWrap="wrap" gap="md" padding="md" borderWidth="1px" borderColor="border.muted" borderRadius="md" background="bg">
30
- <Stack gap="xs" minWidth="12rem">
31
- <Text textStyle="label/L/medium">{size.label}</Text>
32
- <Text textStyle="label/XS" color="fg.muted">
33
- {size.helper}
34
- </Text>
35
- </Stack>
36
-
37
- <HStack gap="sm" flexWrap="wrap">
38
- <Button size={size.size} variant="solid">
39
- Create new
40
- </Button>
41
- <Button size={size.size} variant="outline">
42
- Secondary
43
- </Button>
44
- <Button size={size.size} variant="ghost">
45
- <Icon as={Download} boxSize="16px" />
46
- Export
47
- </Button>
48
- <IconButton size={size.size} variant="ghost" aria-label="Settings">
49
- <Icon as={Settings} boxSize="16px" />
50
- </IconButton>
51
- <IconButton size={size.size} variant="outline" aria-label="Delete">
52
- <Icon as={Trash2} boxSize="16px" />
53
- </IconButton>
54
- </HStack>
55
- </HStack>)}
56
- </Stack>
57
- }`,...i.parameters?.docs?.source}}};s.parameters={...s.parameters,docs:{...s.parameters?.docs,source:{originalSource:`{
58
- render: () => <HStack gap="sm" flexWrap="wrap" padding="md" borderWidth="1px" borderColor="border.muted" borderRadius="md">
59
- <IconButton variant="solid" aria-label="Add">
60
- <Icon as={Plus} boxSize="icon-sm" />
61
- </IconButton>
62
- <IconButton variant="surface" aria-label="Settings">
63
- <Icon as={Settings} boxSize="16px" />
64
- </IconButton>
65
- <IconButton variant="outline" aria-label="Download">
66
- <Icon as={Download} boxSize="16px" />
67
- </IconButton>
68
- <IconButton variant="ghost" aria-label="Delete">
69
- <Icon as={Trash2} boxSize="16px" />
70
- </IconButton>
71
- </HStack>
72
- }`,...s.parameters?.docs?.source}}};const E=["Variants","Sizes","IconOnly"];export{s as IconOnly,i as Sizes,o as Variants,E as __namedExportsOrder,A as default};
@@ -1 +0,0 @@
1
- import{j as r,r as E}from"./iframe-B8FSoBNY.js";import{c as ne}from"./compiler-runtime-BXE7OOXE.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./markdown-editor-Y4eMsgVb.js";import{K as ce,a as ee,P as de}from"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";import"./CodeBlockPlugin-C3OWpvP8.js";import{I as me}from"./icon-button-DHiUe7rR.js";import{c as ie}from"./createLucideIcon-CcBBUKX8.js";import{P as ue}from"./portal-CZHfPTRw.js";import{T as pe,a as fe,b as he,c as ge}from"./tooltip-C_a-XGZ8.js";import{T as be}from"./index-cFwdnc0b.js";import{S as xe}from"./resource-badge-Bw5UoU4J.js";import{H as ye}from"./h-stack-DWHd8f97.js";import{F as Se}from"./flex-DAJL4AFZ.js";import{B as Te}from"./index-B0y2_lLF.js";const _e=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],ve=ie("arrow-up",_e);const je=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Ce=ie("square",je),ae=d=>{const e=ne.c(22);let t,l,a,s;e[0]!==d?({title:s,shortcut:a,canInterrupt:t,...l}=d,e[0]=d,e[1]=t,e[2]=l,e[3]=a,e[4]=s):(t=e[1],l=e[2],a=e[3],s=e[4]);const p=l["aria-label"]??s;let f;e[5]!==t?(f=t?r.jsx(Ce,{size:16,strokeWidth:2,fill:"currentColor"}):r.jsx(ve,{size:16,strokeWidth:2}),e[5]=t,e[6]=f):f=e[6];const y=f;let n;e[7]!==p||e[8]!==y||e[9]!==l||e[10]!==s?(n=r.jsx(me,{size:"sm",variant:"solid",borderRadius:"full",colorPalette:"primary","aria-label":p,title:s,...l,children:y}),e[7]=p,e[8]=y,e[9]=l,e[10]=s,e[11]=n):n=e[11];const m=n;if(s){let h;e[12]!==a||e[13]!==s?(h=a?r.jsxs(r.Fragment,{children:[s," ",r.jsx(ce,{fontSize:"xs",children:a})]}):s,e[12]=a,e[13]=s,e[14]=h):h=e[14];const g=h;let c;e[15]!==m?(c=r.jsx(pe,{asChild:!0,children:m}),e[15]=m,e[16]=c):c=e[16];let o;e[17]!==g?(o=r.jsx(ue,{children:r.jsx(fe,{children:r.jsx(he,{children:g})})}),e[17]=g,e[18]=o):o=e[18];let u;return e[19]!==c||e[20]!==o?(u=r.jsxs(ge,{closeDelay:50,openDelay:100,children:[c,o]}),e[19]=c,e[20]=o,e[21]=u):u=e[21],u}return m};ae.__docgenInfo={description:"",methods:[],displayName:"SendButton",props:{shortcut:{required:!1,tsType:{name:"string"},description:""},title:{required:!1,tsType:{name:"string"},description:""},canInterrupt:{required:!0,tsType:{name:"boolean"},description:""}},composes:["IconButtonProps"]};const qe=d=>{const e=ne.c(60),{defaultState:t,onSubmit:l,onInterrupt:a,streaming:s,attachedResources:p,onClearAttachments:f,isDisabled:y,onChange:n,placeholder:m,attachmentList:h,actions:g}=d,c=l===void 0?we:l,o=s===void 0?!1:s;let u;e[0]!==p?(u=p===void 0?[]:p,e[0]=p,e[1]=u):u=e[1];const M=u,b=y===void 0?!1:y,[W,te]=E.useState(!1),[H,re]=E.useState(t),[$,oe]=E.useState(0);let R;e[2]!==t?(R=()=>ee(t),e[2]=t,e[3]=R):R=e[3];const[S,U]=E.useState(R),se=E.useRef(null);let k,B;e[4]!==t||e[5]!==n?(k=()=>{const i=ee(t);re(t),oe(Ie),U(i),n?.(i)},B=[t,n],e[4]=t,e[5]=n,e[6]=k,e[7]=B):(k=e[6],B=e[7]),E.useEffect(k,B);let N;e[8]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{te(!0);const i=se.current?.querySelector('[contenteditable="true"]');i instanceof HTMLElement&&i.focus()},e[8]=N):N=e[8];const le=N;let P;e[9]!==t||e[10]!==n?(P=()=>{re(t),oe(Ee);const i=ee(t);U(i),n?.(i)},e[9]=t,e[10]=n,e[11]=P):P=e[11];const V=P;let z;e[12]!==M||e[13]!==b||e[14]!==f||e[15]!==a||e[16]!==c||e[17]!==V||e[18]!==o||e[19]!==S?(z=()=>{if(b)return;if(o){a?.();return}const i=S.trim();i&&(c(i,M),V(),f?.())},e[12]=M,e[13]=b,e[14]=f,e[15]=a,e[16]=c,e[17]=V,e[18]=o,e[19]=S,e[20]=z):z=e[20];const T=z,x=o&&!!a;let A;e[21]!==m?(A=m?r.jsx(be,{textStyle:"label/M/regular",color:"fg.subtle",pointerEvents:"none",position:"absolute",top:"0",children:m}):void 0,e[21]=m,e[22]=A):A=e[22];const X=A,Y=W?"blue.border":"border.muted",G=W?"mid":"low",J=W?"blue.border":"border";let _;e[23]!==J?(_={borderColor:J,boxShadow:"mid"},e[23]=J,e[24]=_):_=e[24];let D;e[25]===Symbol.for("react.memo_cache_sentinel")?(D={borderColor:"blue.border",boxShadow:"mid"},e[25]=D):D=e[25];let L;e[26]===Symbol.for("react.memo_cache_sentinel")?(L=()=>te(!1),e[26]=L):L=e[26];const O=!b;let v;e[27]!==n?(v=i=>{U(i),n?.(i)},e[27]=n,e[28]=v):v=e[28];let j;e[29]!==$||e[30]!==H||e[31]!==T||e[32]!==X||e[33]!==O||e[34]!==v?(j=r.jsx(de,{defaultState:H,isEditable:O,placeholder:X,onChange:v,onSubmit:T},$),e[29]=$,e[30]=H,e[31]=T,e[32]=X,e[33]=O,e[34]=v,e[35]=j):j=e[35];let F;e[36]===Symbol.for("react.memo_cache_sentinel")?(F=r.jsx(xe,{}),e[36]=F):F=e[36];const Q=x?"Stop Response":"Message Sending",Z=o?void 0:"Enter";let C;e[37]!==x||e[38]!==b||e[39]!==o||e[40]!==S?(C=o&&!x||!o&&!S.trim()||b,e[37]=x,e[38]=b,e[39]=o,e[40]=S,e[41]=C):C=e[41];let q;e[42]!==x||e[43]!==T||e[44]!==Q||e[45]!==Z||e[46]!==C?(q=r.jsx(ae,{canInterrupt:x,title:Q,shortcut:Z,onClick:T,disabled:C}),e[42]=x,e[43]=T,e[44]=Q,e[45]=Z,e[46]=C,e[47]=q):q=e[47];let w;e[48]!==g||e[49]!==q?(w=r.jsxs(ye,{gap:"1",mt:"md",children:[g,F,q]}),e[48]=g,e[49]=q,e[50]=w):w=e[50];let I;e[51]!==h||e[52]!==j||e[53]!==w?(I=r.jsxs(Se,{direction:"column",color:"fg",children:[h,j,w]}),e[51]=h,e[52]=j,e[53]=w,e[54]=I):I=e[54];let K;return e[55]!==Y||e[56]!==G||e[57]!==_||e[58]!==I?(K=r.jsx(Te,{ref:se,width:"100%",paddingX:"lg",paddingY:"md",bg:"bg",borderRadius:"md",borderWidth:"1px",borderStyle:"solid",borderColor:Y,boxShadow:G,transition:"box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out",_hover:_,_focusWithin:D,onClick:le,onBlur:L,children:I}),e[55]=Y,e[56]=G,e[57]=_,e[58]=I,e[59]=K):K=e[59],K};qe.__docgenInfo={description:"",methods:[],displayName:"ChatInput",props:{defaultState:{required:!0,tsType:{name:"string"},description:""},placeholder:{required:!1,tsType:{name:"string"},description:""},onSubmit:{required:!1,tsType:{name:"signature",type:"function",raw:"(text: string, attachments: string[]) => void",signature:{arguments:[{type:{name:"string"},name:"text"},{type:{name:"Array",elements:[{name:"string"}],raw:"string[]"},name:"attachments"}],return:{name:"void"}}},description:""},onInterrupt:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},streaming:{required:!1,tsType:{name:"boolean"},description:""},attachedResources:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},onClearAttachments:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},isDisabled:{required:!1,tsType:{name:"boolean"},description:""},onChange:{required:!1,tsType:{name:"signature",type:"function",raw:"(text: string) => void",signature:{arguments:[{type:{name:"string"},name:"text"}],return:{name:"void"}}},description:""},attachmentList:{required:!1,tsType:{name:"ReactNode"},description:""},actions:{required:!1,tsType:{name:"ReactNode"},description:""}}};function we(){}function Ie(d){return d+1}function Ee(d){return d+1}export{qe as C};
@@ -1,32 +0,0 @@
1
- import{j as u,r as $}from"./iframe-B8FSoBNY.js";import{c as y}from"./compiler-runtime-BXE7OOXE.js";import{A as w}from"./attachment-list-1p1601I5.js";import{C as f}from"./chat-input-B-915nCM.js";import"./preload-helper-PPVm8Dsz.js";import"./resource-badge-Bw5UoU4J.js";import"./createLucideIcon-CcBBUKX8.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./normalize-props-D7NI5JRu.js";import"./factory-BR3bc_RM.js";import"./tooltip-C_a-XGZ8.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./computed-style-C0hzrq9-.js";import"./overflow-CkG1DOya.js";import"./index-cFwdnc0b.js";import"./icon-button-DHiUe7rR.js";import"./button-C7it2n8t.js";import"./spinner-ZYH_gvW-.js";import"./index-CXwl6T4k.js";import"./x-D42ziktz.js";import"./stack-CN4X31TA.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./flex-DAJL4AFZ.js";import"./CodeBlockPlugin-C3OWpvP8.js";import"./index-B0y2_lLF.js";import"./textarea-rqmaWSc5.js";import"./use-field-context-DoxKQlMm.js";import"./table-BKNSzs2r.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./markdown-editor-Y4eMsgVb.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";import"./h-stack-DWHd8f97.js";const xt={title:"Chat UI/Chat Input",component:f,parameters:{layout:"centered",actions:{argTypesRegex:"^on(?!Change)[A-Z].*"}}},g=JSON.stringify({root:{children:[{children:[{detail:0,format:0,mode:"normal",style:"",text:"",type:"text",version:1}],direction:"ltr",format:"",indent:0,type:"paragraph",version:1}],direction:"ltr",format:"",indent:0,type:"root",version:1}},null,2),p={args:{defaultState:g,placeholder:"Ask me something...",onSubmit:(e,t)=>{console.log("Submitted text:",e),t.length>0&&console.log("Submitted attachments:",t),alert(`Submitted: ${e}${t.length>0?` with ${t.length} attachments`:""}`)}}};function C(e){const t=y.c(16);let o,a,r;t[0]!==e?({attachedResources:r,onClearAttachments:o,...a}=e,t[0]=e,t[1]=o,t[2]=a,t[3]=r):(o=t[1],a=t[2],r=t[3]);let i;t[4]!==r?(i=r===void 0?[]:r,t[4]=r,t[5]=i):i=t[5];const x=i,[n,S]=$.useState(x);let m;t[6]===Symbol.for("react.memo_cache_sentinel")?(m=b=>{S(A=>A.filter(R=>R!==b))},t[6]=m):m=t[6];let c;t[7]!==n?(c=u.jsx(w,{attachments:n,onSelect:v,onRemove:m}),t[7]=n,t[8]=c):c=t[8];const d=c;let s;t[9]!==o?(s=()=>{S([]),o?.()},t[9]=o,t[10]=s):s=t[10];let l;return t[11]!==n||t[12]!==d||t[13]!==a||t[14]!==s?(l=u.jsx(f,{...a,attachedResources:n,attachmentList:d,onClearAttachments:s}),t[11]=n,t[12]=d,t[13]=a,t[14]=s,t[15]=l):l=t[15],l}function v(e){return console.log("Selected:",e)}const h={render:e=>{const t={...e??{},defaultState:e?.defaultState??g,attachedResources:e?.attachedResources??[]};return u.jsx(C,{...t})},args:{defaultState:g,placeholder:"Summarize the attached files...",attachedResources:["workspace/customer-data.csv","workspace/analysis-report.md"],onSubmit:(e,t)=>{console.log("Submitted text:",e),console.log("Submitted attachments:",t),alert(`Submitted: ${e}${t.length>0?` with ${t.length} attachments`:""}`)}}};p.parameters={...p.parameters,docs:{...p.parameters?.docs,source:{originalSource:`{
2
- args: {
3
- defaultState: initialState,
4
- placeholder: "Ask me something...",
5
- onSubmit: (text: string, attachments: string[]) => {
6
- console.log("Submitted text:", text);
7
- if (attachments.length > 0) {
8
- console.log("Submitted attachments:", attachments);
9
- }
10
- alert(\`Submitted: \${text}\${attachments.length > 0 ? \` with \${attachments.length} attachments\` : ""}\`);
11
- }
12
- }
13
- }`,...p.parameters?.docs?.source}}};h.parameters={...h.parameters,docs:{...h.parameters?.docs,source:{originalSource:`{
14
- render: args => {
15
- const rendererArgs: ChatInputProps = {
16
- ...(args ?? {}),
17
- defaultState: args?.defaultState ?? initialState,
18
- attachedResources: args?.attachedResources ?? []
19
- };
20
- return <WithAttachmentsRenderer {...rendererArgs} />;
21
- },
22
- args: {
23
- defaultState: initialState,
24
- placeholder: "Summarize the attached files...",
25
- attachedResources: ["workspace/customer-data.csv", "workspace/analysis-report.md"],
26
- onSubmit: (text: string, attachments: string[]) => {
27
- console.log("Submitted text:", text);
28
- console.log("Submitted attachments:", attachments);
29
- alert(\`Submitted: \${text}\${attachments.length > 0 ? \` with \${attachments.length} attachments\` : ""}\`);
30
- }
31
- }
32
- }`,...h.parameters?.docs?.source}}};const bt=["Default","WithAttachments"];export{p as Default,h as WithAttachments,bt as __namedExportsOrder,xt as default};
@@ -1,96 +0,0 @@
1
- import{r as P,j as n}from"./iframe-B8FSoBNY.js";import{c as V}from"./compiler-runtime-BXE7OOXE.js";import{r as ne}from"./full-conversation-normalized-LUbl1coD.js";import{E as ae}from"./empty-state-BXkyq69k.js";import"./collaborative-markdown-editor-Bj0GvTvv.js";import"./markdown-editor-Y4eMsgVb.js";import{g as se}from"./prompt-input-BLCttowi.js";import"./rich-message-BIkzo1SM.js";import"./CodeBlockPlugin-C3OWpvP8.js";import{u as ie,C as L}from"./ai-conversation-DcjS--ee.js";import{C as Y}from"./ai-message-DLdAGhWH.js";import{C as oe}from"./chat-input-B-915nCM.js";import{m as ue,g as le,M as me}from"./message-types-CEyA7Qm7.js";import{S as pe}from"./stack-CN4X31TA.js";import{c as ce}from"./createLucideIcon-CcBBUKX8.js";import{F as Q}from"./flex-DAJL4AFZ.js";import{B as D}from"./index-B0y2_lLF.js";import{H as te}from"./h-stack-DWHd8f97.js";import{T as de}from"./index-cFwdnc0b.js";import{B as U}from"./button-C7it2n8t.js";import"./preload-helper-PPVm8Dsz.js";import"./v-stack-Btoq6OB_.js";import"./create-slot-recipe-context-DAhDE6G_.js";import"./factory-DAJZwK4o.js";import"./create-recipe-context-BU56IzEo.js";import"./rich-text-theme-Bkhh9rAZ.js";import"./index-DaXC_qY_.js";import"./index-DpB4ozcR.js";import"./FloatingTextFormatToolbarPlugin-B6jc8xvg.js";import"./resource-badge-Bw5UoU4J.js";import"./file-text-D5m8MJlG.js";import"./tooltip-DZxUoouw.js";import"./portal-CZHfPTRw.js";import"./normalize-props-D7NI5JRu.js";import"./factory-BR3bc_RM.js";import"./tooltip-C_a-XGZ8.js";import"./use-presence-context-DK2PGZth.js";import"./create-split-props-u5h9OPvL.js";import"./computed-style-C0hzrq9-.js";import"./overflow-CkG1DOya.js";import"./icon-button-DHiUe7rR.js";import"./x-D42ziktz.js";import"./LexicalHistoryPlugin.prod-BQAibkDj.js";import"./TreeViewPlugin-CyVKCrKJ.js";import"./markdown-BLUemkxK.js";import"./textarea-rqmaWSc5.js";import"./use-field-context-DoxKQlMm.js";import"./table-BKNSzs2r.js";import"./ai-response-ySM6s0iN.js";import"./tool-invocation-timeline-B-cS0W6M.js";import"./trash-2-BO05slEk.js";import"./index-CXwl6T4k.js";import"./spinner-ZYH_gvW-.js";import"./mutation-observer-CAfGweIM.js";import"./link-DE5grRtm.js";import"./diff-bubble-_zZypMRt.js";import"./diff-editor-DV9BXqbn.js";const ge=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],ye=ce("message-circle",ge),fe=(t="")=>JSON.stringify(se(t)),ve=t=>{const{previousUserMessageCount:e,userMessageCount:r}=t;return e===0?!1:r>e};function he(t){const e=V.c(4),{userMessageCount:r}=t,{scrollToBottom:o}=ie(),a=P.useRef(r);let s,i;return e[0]!==o||e[1]!==r?(s=()=>{ve({previousUserMessageCount:a.current,userMessageCount:r})&&o(),a.current=r},i=[r,o],e[0]=o,e[1]=r,e[2]=s,e[3]=i):(s=e[2],i=e[3]),P.useEffect(s,i),null}const ke=fe(),Z=t=>{const e=V.c(43),{messages:r,streaming:o,emptyStateTitle:a,emptyStateDescription:s,chatInputPlaceholder:i,onSubmitMessage:l,actions:d,repoMenu:R,attachedResources:C,onClearAttachments:m,attachmentList:T,approvalPrompt:I}=t,p=o===void 0?!1:o;let b,c,g,w,y,f,v,h,k,x;if(e[0]!==s||e[1]!==a||e[2]!==r||e[3]!==p){const E=ue(r),F=E.length>0,N=E.reduce(xe,0);g=Q,f="relative",v="column",h="full",k="full",x="hidden",c=L.Root,y=n.jsx(he,{userMessageCount:N}),b=L.Viewport,w=F?n.jsx(pe,{gap:"sm",children:E.map(B=>{const K=le(B.role);return n.jsx(Y.Root,{from:K,children:n.jsx(Y.Content,{from:K,children:n.jsx(me,{message:B,streaming:p})})},B.id)})}):n.jsx(ae,{icon:n.jsx(ye,{size:48,strokeWidth:1.5}),title:a,description:s}),e[0]=s,e[1]=a,e[2]=r,e[3]=p,e[4]=b,e[5]=c,e[6]=g,e[7]=w,e[8]=y,e[9]=f,e[10]=v,e[11]=h,e[12]=k,e[13]=x}else b=e[4],c=e[5],g=e[6],w=e[7],y=e[8],f=e[9],v=e[10],h=e[11],k=e[12],x=e[13];let q;e[14]!==b||e[15]!==w?(q=n.jsx(b,{children:w}),e[14]=b,e[15]=w,e[16]=q):q=e[16];let j;e[17]===Symbol.for("react.memo_cache_sentinel")?(j=n.jsx(L.ScrollToBottom,{"aria-label":"Scroll to latest message"}),e[17]=j):j=e[17];let u;e[18]!==c||e[19]!==y||e[20]!==q?(u=n.jsxs(c,{children:[y,q,j]}),e[18]=c,e[19]=y,e[20]=q,e[21]=u):u=e[21];let S;e[22]!==d||e[23]!==C||e[24]!==T||e[25]!==i||e[26]!==m||e[27]!==l||e[28]!==p?(S=n.jsx(D,{px:"sm",children:n.jsx(oe,{placeholder:i,defaultState:ke,streaming:p,onSubmit:l,actions:d,attachedResources:C,onClearAttachments:m,attachmentList:T})}),e[22]=d,e[23]=C,e[24]=T,e[25]=i,e[26]=m,e[27]=l,e[28]=p,e[29]=S):S=e[29];let M;e[30]!==R?(M=n.jsx(Q,{p:"2xs",justifyContent:"flex-end",children:R}),e[30]=R,e[31]=M):M=e[31];let A;return e[32]!==g||e[33]!==I||e[34]!==u||e[35]!==S||e[36]!==M||e[37]!==f||e[38]!==v||e[39]!==h||e[40]!==k||e[41]!==x?(A=n.jsxs(g,{position:f,direction:v,w:h,h:k,overflow:x,children:[u,I,S,M]}),e[32]=g,e[33]=I,e[34]=u,e[35]=S,e[36]=M,e[37]=f,e[38]=v,e[39]=h,e[40]=k,e[41]=x,e[42]=A):A=e[42],A};Z.__docgenInfo={description:"",methods:[],displayName:"ChatPanel",props:{messages:{required:!0,tsType:{name:"Array",elements:[{name:"signature",type:"object",raw:`{
2
- id: string;
3
- role: SessionMessageRole;
4
- parts: SessionMessagePart[];
5
- index?: number;
6
- createdAt?: number;
7
- modelId?: string;
8
- providerId?: string;
9
- tokens?: {
10
- input?: number;
11
- output?: number;
12
- reasoning?: number;
13
- cache?: { read?: number; write?: number };
14
- };
15
- }`,signature:{properties:[{key:"id",value:{name:"string",required:!0}},{key:"role",value:{name:"union",raw:'"user" | "assistant" | "tool" | "system" | "developer"',elements:[{name:"literal",value:'"user"'},{name:"literal",value:'"assistant"'},{name:"literal",value:'"tool"'},{name:"literal",value:'"system"'},{name:"literal",value:'"developer"'}],required:!0}},{key:"parts",value:{name:"Array",elements:[{name:"union",raw:`| TextPart
16
- | ReasoningPart
17
- | ToolPart
18
- | StepStartPart
19
- | StepFinishPart
20
- | PatchPart
21
- | FilePart
22
- | LoadingPart
23
- | ErrorPart
24
- | TokenUsagePart`,elements:[{name:"signature",type:"object",raw:'{ type: "text"; text: string }',signature:{properties:[{key:"type",value:{name:"literal",value:'"text"',required:!0}},{key:"text",value:{name:"string",required:!0}}]}},{name:"signature",type:"object",raw:'{ type: "reasoning"; text: string }',signature:{properties:[{key:"type",value:{name:"literal",value:'"reasoning"',required:!0}},{key:"text",value:{name:"string",required:!0}}]}},{name:"signature",type:"object",raw:`{
25
- type: "tool";
26
- tool: string;
27
- callId?: string;
28
- actionType?: ToolPartActionType;
29
- status?: ToolPartStatus;
30
- state?: {
31
- status?: string;
32
- input?: unknown;
33
- output?: unknown;
34
- errorText?: string;
35
- metadata?: unknown;
36
- };
37
- }`,signature:{properties:[{key:"type",value:{name:"literal",value:'"tool"',required:!0}},{key:"tool",value:{name:"string",required:!0}},{key:"callId",value:{name:"string",required:!1}},{key:"actionType",value:{name:"union",raw:'"read" | "write" | "execute" | "network" | "other"',elements:[{name:"literal",value:'"read"'},{name:"literal",value:'"write"'},{name:"literal",value:'"execute"'},{name:"literal",value:'"network"'},{name:"literal",value:'"other"'}],required:!1}},{key:"status",value:{name:"union",raw:'"pending" | "running" | "completed" | "failed" | "denied"',elements:[{name:"literal",value:'"pending"'},{name:"literal",value:'"running"'},{name:"literal",value:'"completed"'},{name:"literal",value:'"failed"'},{name:"literal",value:'"denied"'}],required:!1}},{key:"state",value:{name:"signature",type:"object",raw:`{
38
- status?: string;
39
- input?: unknown;
40
- output?: unknown;
41
- errorText?: string;
42
- metadata?: unknown;
43
- }`,signature:{properties:[{key:"status",value:{name:"string",required:!1}},{key:"input",value:{name:"unknown",required:!1}},{key:"output",value:{name:"unknown",required:!1}},{key:"errorText",value:{name:"string",required:!1}},{key:"metadata",value:{name:"unknown",required:!1}}]},required:!1}}]}},{name:"signature",type:"object",raw:'{ type: "step-start"; snapshot?: string }',signature:{properties:[{key:"type",value:{name:"literal",value:'"step-start"',required:!0}},{key:"snapshot",value:{name:"string",required:!1}}]}},{name:"signature",type:"object",raw:`{
44
- type: "step-finish";
45
- reason?: string;
46
- snapshot?: string;
47
- cost?: number;
48
- tokens?: unknown;
49
- }`,signature:{properties:[{key:"type",value:{name:"literal",value:'"step-finish"',required:!0}},{key:"reason",value:{name:"string",required:!1}},{key:"snapshot",value:{name:"string",required:!1}},{key:"cost",value:{name:"number",required:!1}},{key:"tokens",value:{name:"unknown",required:!1}}]}},{name:"signature",type:"object",raw:'{ type: "patch"; hash?: string; files?: unknown }',signature:{properties:[{key:"type",value:{name:"literal",value:'"patch"',required:!0}},{key:"hash",value:{name:"string",required:!1}},{key:"files",value:{name:"unknown",required:!1}}]}},{name:"signature",type:"object",raw:'{ type: "file"; mediaType?: string; filename?: string; url: string }',signature:{properties:[{key:"type",value:{name:"literal",value:'"file"',required:!0}},{key:"mediaType",value:{name:"string",required:!1}},{key:"filename",value:{name:"string",required:!1}},{key:"url",value:{name:"string",required:!0}}]}},{name:"signature",type:"object",raw:'{ type: "loading" }',signature:{properties:[{key:"type",value:{name:"literal",value:'"loading"',required:!0}}]}},{name:"signature",type:"object",raw:'{ type: "error"; errorType: "timeout" | "crash" | "permission" | "other" }',signature:{properties:[{key:"type",value:{name:"literal",value:'"error"',required:!0}},{key:"errorType",value:{name:"union",raw:'"timeout" | "crash" | "permission" | "other"',elements:[{name:"literal",value:'"timeout"'},{name:"literal",value:'"crash"'},{name:"literal",value:'"permission"'},{name:"literal",value:'"other"'}],required:!0}}]}},{name:"signature",type:"object",raw:`{
50
- type: "token_usage";
51
- inputTokens: number;
52
- outputTokens: number;
53
- cacheReadTokens?: number;
54
- cacheWriteTokens?: number;
55
- }`,signature:{properties:[{key:"type",value:{name:"literal",value:'"token_usage"',required:!0}},{key:"inputTokens",value:{name:"number",required:!0}},{key:"outputTokens",value:{name:"number",required:!0}},{key:"cacheReadTokens",value:{name:"number",required:!1}},{key:"cacheWriteTokens",value:{name:"number",required:!1}}]}}]}],raw:"SessionMessagePart[]",required:!0}},{key:"index",value:{name:"number",required:!1}},{key:"createdAt",value:{name:"number",required:!1}},{key:"modelId",value:{name:"string",required:!1}},{key:"providerId",value:{name:"string",required:!1}},{key:"tokens",value:{name:"signature",type:"object",raw:`{
56
- input?: number;
57
- output?: number;
58
- reasoning?: number;
59
- cache?: { read?: number; write?: number };
60
- }`,signature:{properties:[{key:"input",value:{name:"number",required:!1}},{key:"output",value:{name:"number",required:!1}},{key:"reasoning",value:{name:"number",required:!1}},{key:"cache",value:{name:"signature",type:"object",raw:"{ read?: number; write?: number }",signature:{properties:[{key:"read",value:{name:"number",required:!1}},{key:"write",value:{name:"number",required:!1}}]},required:!1}}]},required:!1}}]}}],raw:"SessionMessage[]"},description:""},streaming:{required:!1,tsType:{name:"boolean"},description:""},emptyStateTitle:{required:!0,tsType:{name:"string"},description:""},emptyStateDescription:{required:!0,tsType:{name:"string"},description:""},chatInputPlaceholder:{required:!0,tsType:{name:"string"},description:""},onSubmitMessage:{required:!1,tsType:{name:"signature",type:"function",raw:"(text: string, attachments: string[]) => void",signature:{arguments:[{type:{name:"string"},name:"text"},{type:{name:"Array",elements:[{name:"string"}],raw:"string[]"},name:"attachments"}],return:{name:"void"}}},description:""},actions:{required:!1,tsType:{name:"ReactNode"},description:""},repoMenu:{required:!1,tsType:{name:"ReactNode"},description:""},attachedResources:{required:!1,tsType:{name:"Array",elements:[{name:"string"}],raw:"string[]"},description:""},onClearAttachments:{required:!1,tsType:{name:"signature",type:"function",raw:"() => void",signature:{arguments:[],return:{name:"void"}}},description:""},attachmentList:{required:!1,tsType:{name:"ReactNode"},description:""},approvalPrompt:{required:!1,tsType:{name:"ReactNode"},description:""}}};function xe(t,e){return t+(e.role==="user"?1:0)}const re=ne,At={title:"Chat UI/Chat Panel",component:Z,parameters:{layout:"padded",actions:{argTypesRegex:"^on[A-Z].*"}}},G={w:"960px",maxW:"100%",h:"680px",bg:"bg",borderWidth:"1px",borderColor:"border",borderRadius:"lg",p:"md"},Se=n.jsxs(te,{gap:"2",children:[n.jsx(U,{size:"xs",variant:"subtle",children:"Opencode"}),n.jsx(U,{size:"xs",variant:"subtle",children:"GPT-5.3 Codex"})]}),Te=n.jsxs(te,{gap:"2",children:[n.jsx(de,{textStyle:"label/S/medium",color:"fg.muted",children:"mono"}),n.jsx(U,{size:"xs",variant:"ghost",children:"main"})]}),be=re.slice(-18),X=10,qe=60,Me=t=>{if(!t)return[];const e=[];for(let r=0;r<t.length;r+=X)e.push(t.slice(r,r+X));return e},W=t=>t.type==="text",H=(t,e,r,o)=>t.map(a=>{if(a.id!==e)return a;const s=a.parts[r];if(!s||!W(s))return a;const i=[...a.parts];return i[r]={...s,text:o},{...a,parts:i}}),we=t=>{for(let e=t.length-1;e>=0;e-=1){const r=t[e];if(r.role!=="assistant")continue;const o=r.parts.findIndex(l=>W(l)&&l.text.trim().length>0);if(o===-1)continue;const a=r.parts[o];if(!a||!W(a))continue;const s=a.text;return{seededMessages:H(t,r.id,o,""),messageId:r.id,partIndex:o,sourceText:s}}return null},z=t=>{t.current!==null&&(clearInterval(t.current),t.current=null)},ee=t=>{const{timerRef:e,sourceText:r,onStart:o,onChunk:a,onComplete:s}=t;z(e);const i=Me(r);if(i.length===0){s();return}let l="",d=0;o(),e.current=setInterval(()=>{l+=i[d]??"",a(l),d+=1,d>=i.length&&(z(e),s())},qe)},je=(t,e)=>e.length===0?`Mock response: I received "${t}" and generated a draft answer.`:`Mock response: I received "${t}" with ${e.length} attachment(s): ${e.join(", ")}.`;function J(t){const e=V.c(20),{messages:r,streaming:o,onSubmitMessage:a,emptyStateTitle:s,emptyStateDescription:i,chatInputPlaceholder:l,actions:d,repoMenu:R}=t;let C;e[0]!==r?(C=r===void 0?[]:r,e[0]=r,e[1]=C):C=e[1];const m=C,T=o===void 0?!1:o,[I,p]=P.useState(m),[b,c]=P.useState(T),[g,w]=P.useState(m.length+1),y=P.useRef(null);let f,v;e[2]!==m||e[3]!==T?(f=()=>{if(z(y),w(m.length+1),!T){p(m),c(!1);return}const u=we(m);if(!u){p(m),c(T);return}p(u.seededMessages),ee({timerRef:y,sourceText:u.sourceText,onStart:()=>c(!0),onChunk:S=>{p(M=>H(M,u.messageId,u.partIndex,S))},onComplete:()=>c(!1)})},v=[m,T],e[2]=m,e[3]=T,e[4]=f,e[5]=v):(f=e[4],v=e[5]),P.useEffect(f,v);let h,k;e[6]===Symbol.for("react.memo_cache_sentinel")?(h=()=>()=>{z(y)},k=[],e[6]=h,e[7]=k):(h=e[6],k=e[7]),P.useEffect(h,k);let x;e[8]!==g||e[9]!==a?(x=(u,S)=>{a?.(u,S);const M={id:`message-${g}`,role:"user",parts:[{type:"text",text:u}]},A=je(u,S),E=`message-${g+1}`,F={id:E,role:"assistant",parts:[{type:"text",text:""}]};w(Ce),p(N=>[...N,M,F]),ee({timerRef:y,sourceText:A,onStart:()=>c(!0),onChunk:N=>{p(B=>H(B,E,0,N))},onComplete:()=>c(!1)})},e[8]=g,e[9]=a,e[10]=x):x=e[10];const q=x;let j;return e[11]!==d||e[12]!==l||e[13]!==i||e[14]!==s||e[15]!==q||e[16]!==I||e[17]!==R||e[18]!==b?(j=n.jsx(Z,{messages:I,streaming:b,emptyStateTitle:s,emptyStateDescription:i,chatInputPlaceholder:l,onSubmitMessage:q,actions:d,repoMenu:R}),e[11]=d,e[12]=l,e[13]=i,e[14]=s,e[15]=q,e[16]=I,e[17]=R,e[18]=b,e[19]=j):j=e[19],j}function Ce(t){return t+2}const _={render:t=>n.jsx(D,{...G,children:n.jsx(J,{...t})}),args:{messages:[],streaming:!1,emptyStateTitle:"No active conversations",emptyStateDescription:"Start a conversation to see messages here.",chatInputPlaceholder:"Type a message...",actions:Se,repoMenu:Te,onSubmitMessage:(t,e)=>{console.log("Submitted",{text:t,attachments:e})}}},$={render:t=>n.jsx(D,{...G,children:n.jsx(J,{...t})}),args:{..._.args,messages:re}},O={render:t=>n.jsx(D,{...G,children:n.jsx(J,{...t})}),args:{..._.args,messages:be,streaming:!0}};_.parameters={..._.parameters,docs:{..._.parameters?.docs,source:{originalSource:`{
61
- render: args => <Box {...panelContainerStyles}>
62
- <MockChatPanelRenderer {...args} />
63
- </Box>,
64
- args: {
65
- messages: [],
66
- streaming: false,
67
- emptyStateTitle: "No active conversations",
68
- emptyStateDescription: "Start a conversation to see messages here.",
69
- chatInputPlaceholder: "Type a message...",
70
- actions: defaultActions,
71
- repoMenu: defaultRepoMenu,
72
- onSubmitMessage: (text: string, attachments: string[]) => {
73
- console.log("Submitted", {
74
- text,
75
- attachments
76
- });
77
- }
78
- }
79
- }`,..._.parameters?.docs?.source}}};$.parameters={...$.parameters,docs:{...$.parameters?.docs,source:{originalSource:`{
80
- render: args => <Box {...panelContainerStyles}>
81
- <MockChatPanelRenderer {...args} />
82
- </Box>,
83
- args: {
84
- ...Empty.args,
85
- messages: conversationMessages
86
- }
87
- }`,...$.parameters?.docs?.source}}};O.parameters={...O.parameters,docs:{...O.parameters?.docs,source:{originalSource:`{
88
- render: args => <Box {...panelContainerStyles}>
89
- <MockChatPanelRenderer {...args} />
90
- </Box>,
91
- args: {
92
- ...Empty.args,
93
- messages: streamingMessages,
94
- streaming: true
95
- }
96
- }`,...O.parameters?.docs?.source}}};const Et=["Empty","Conversation","Streaming"];export{$ as Conversation,_ as Empty,O as Streaming,Et as __namedExportsOrder,At as default};
@@ -1 +0,0 @@
1
- import{c as o}from"./createLucideIcon-CcBBUKX8.js";const n=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],e=o("chevron-down",n);export{e as C};
@@ -1 +0,0 @@
1
- import{c as o}from"./createLucideIcon-CcBBUKX8.js";const t=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],e=o("chevron-right",t);export{e as C};