themelia-ui 3.0.0 → 3.2.0

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 (746) hide show
  1. package/.agents/skills/themelia-ui/SKILL.md +60 -33
  2. package/.agents/skills/themelia-ui/manifest.json +23 -0
  3. package/.agents/skills/themelia-ui/references/api-compatibility.md +5 -4
  4. package/.agents/skills/themelia-ui/references/blocks.md +123 -0
  5. package/.agents/skills/themelia-ui/references/composition-ladder.md +8 -8
  6. package/.agents/skills/themelia-ui/references/composition.md +100 -19
  7. package/.agents/skills/themelia-ui/references/forms.md +23 -3
  8. package/.agents/skills/themelia-ui/references/framework-wiring.md +41 -13
  9. package/.agents/skills/themelia-ui/references/i18n.md +4 -2
  10. package/.agents/skills/themelia-ui/references/imports.md +104 -104
  11. package/.agents/skills/themelia-ui/references/installation.md +60 -31
  12. package/.agents/skills/themelia-ui/references/migration.md +156 -5
  13. package/.agents/skills/themelia-ui/references/provider-and-scoping.md +37 -25
  14. package/.agents/skills/themelia-ui/references/reference-workflows.md +43 -0
  15. package/.agents/skills/themelia-ui/references/structure-and-spacing.md +147 -0
  16. package/.agents/skills/themelia-ui/references/theming.md +174 -131
  17. package/.agents/skills/themelia-ui/references/troubleshooting.md +88 -30
  18. package/.agents/skills/themelia-ui/references/verification.md +60 -5
  19. package/CHANGELOG.md +212 -0
  20. package/README.md +48 -60
  21. package/dist/accordion-CHuzMmWL.js +143 -0
  22. package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
  23. package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Cg2HhuBe.js} +1 -1
  24. package/dist/avatar-Dc_BNYfB.js +93 -0
  25. package/dist/badge-VlJVZjdm.js +45 -0
  26. package/dist/base/accordion.js +1 -1
  27. package/dist/base/action-menu.js +1 -1
  28. package/dist/base/alert-dialog.js +1 -1
  29. package/dist/base/aspect-ratio.js +3 -1
  30. package/dist/base/avatar.js +1 -1
  31. package/dist/base/badge.js +2 -2
  32. package/dist/base/batch-action-bar.js +1 -1
  33. package/dist/base/buttons.js +1 -1
  34. package/dist/base/cards.js +1 -1
  35. package/dist/base/carousel.js +6 -4
  36. package/dist/base/chart.js +1 -1
  37. package/dist/base/choice-inputs.js +1 -1
  38. package/dist/base/combobox.js +1 -1
  39. package/dist/base/command.js +1 -1
  40. package/dist/base/context-menu.js +22 -21
  41. package/dist/base/copyable.js +1 -1
  42. package/dist/base/date-pickers.js +1 -1
  43. package/dist/base/dialog.js +1 -1
  44. package/dist/base/display.js +1 -1
  45. package/dist/base/dropdown-menu.js +1 -1
  46. package/dist/base/feedback.js +1 -1
  47. package/dist/base/forms-numeric.js +1 -1
  48. package/dist/base/forms.js +1 -1
  49. package/dist/base/hover-card.js +26 -23
  50. package/dist/base/input-group.js +1 -1
  51. package/dist/base/item.js +1 -1
  52. package/dist/base/label.js +1 -1
  53. package/dist/base/menubar.js +20 -14
  54. package/dist/base/navigation-menu.js +47 -38
  55. package/dist/base/navigation.js +1 -1
  56. package/dist/base/otp-input.js +36 -30
  57. package/dist/base/overlay.js +1 -1
  58. package/dist/base/popover-menu.js +1 -1
  59. package/dist/base/popover.js +1 -1
  60. package/dist/base/qr-code.js +51 -47
  61. package/dist/base/repeaters.js +1 -1
  62. package/dist/base/resizable.js +2 -0
  63. package/dist/base/sheet.js +1 -1
  64. package/dist/base/sidebar.js +1 -1
  65. package/dist/base/skeleton.js +1 -1
  66. package/dist/base/spinner.js +1 -1
  67. package/dist/base/structure.js +1 -1
  68. package/dist/base/table.js +1 -1
  69. package/dist/base/text-inputs.js +1 -1
  70. package/dist/base/timeline.js +1 -1
  71. package/dist/base/toaster.js +1 -1
  72. package/dist/base/toggle.js +21 -15
  73. package/dist/base/toolbar.js +1 -1
  74. package/dist/base/tooltip.js +1 -1
  75. package/dist/base/typography.js +2 -2
  76. package/dist/base/upload.js +1 -1
  77. package/dist/base/value-inputs.js +1 -1
  78. package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
  79. package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
  80. package/dist/blocks/admin/commerce.js +2493 -0
  81. package/dist/{patterns → blocks}/analytics.js +312 -303
  82. package/dist/{patterns → blocks}/onboarding.js +27 -23
  83. package/dist/{patterns → blocks}/timelines.js +1 -1
  84. package/dist/buttons-BX2JfL5X.js +173 -0
  85. package/dist/cards-Ddhz43Bz.js +279 -0
  86. package/dist/chart-BkK3Xm10.js +201 -0
  87. package/dist/choice-inputs-NwRxvmZN.js +694 -0
  88. package/dist/combobox-519ubijc.js +292 -0
  89. package/dist/command-JjApYFds.js +156 -0
  90. package/dist/comments-CCQ2QRaU.js +1443 -0
  91. package/dist/components/base/action-menu/action-menu.d.ts +1 -1
  92. package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
  93. package/dist/components/base/avatar/avatar.d.ts +5 -2
  94. package/dist/components/base/badge/badge.d.ts +10 -10
  95. package/dist/components/base/badge/badge.variants.d.ts +1 -2
  96. package/dist/components/base/badge/index.d.ts +1 -2
  97. package/dist/components/base/buttons/button.d.ts +9 -8
  98. package/dist/components/base/buttons/button.types.d.ts +2 -2
  99. package/dist/components/base/buttons/index.d.ts +1 -1
  100. package/dist/components/base/buttons/text-button.d.ts +1 -1
  101. package/dist/components/base/cards/card-actions.d.ts +1 -1
  102. package/dist/components/base/cards/card.d.ts +3 -1
  103. package/dist/components/base/cards/partials/card-header.d.ts +2 -1
  104. package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
  105. package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
  106. package/dist/components/base/command/command.d.ts +5 -2
  107. package/dist/components/base/display/icon-badge.d.ts +5 -3
  108. package/dist/components/base/display/index.d.ts +1 -1
  109. package/dist/components/base/display/metadata-list.d.ts +6 -6
  110. package/dist/components/base/display/metadata-value.d.ts +1 -1
  111. package/dist/components/base/display/separator.d.ts +2 -2
  112. package/dist/components/base/feedback/alert.d.ts +3 -2
  113. package/dist/components/base/feedback/empty.d.ts +5 -4
  114. package/dist/components/base/feedback/progress-circle.d.ts +2 -2
  115. package/dist/components/base/feedback/progress.d.ts +3 -1
  116. package/dist/components/base/forms/form-field.d.ts +2 -2
  117. package/dist/components/base/input-group/input-group.d.ts +8 -10
  118. package/dist/components/base/item/item.d.ts +2 -2
  119. package/dist/components/base/overlay/index.d.ts +1 -1
  120. package/dist/components/base/overlay/overlay.types.d.ts +7 -5
  121. package/dist/components/base/qr-code/qr-code.d.ts +4 -4
  122. package/dist/components/base/sheet/sheet.d.ts +1 -1
  123. package/dist/components/base/sidebar/sidebar.d.ts +9 -13
  124. package/dist/components/base/spinner/spinner.d.ts +2 -2
  125. package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
  126. package/dist/components/base/structure/bleed.d.ts +4 -2
  127. package/dist/components/base/structure/grid.d.ts +10 -4
  128. package/dist/components/base/structure/index.d.ts +1 -1
  129. package/dist/components/base/structure/split.d.ts +4 -3
  130. package/dist/components/base/structure/stack.d.ts +5 -5
  131. package/dist/components/base/structure/structure.maps.d.ts +2 -1
  132. package/dist/components/base/structure/structure.types.d.ts +10 -4
  133. package/dist/components/base/toggle/toggle.d.ts +2 -2
  134. package/dist/components/base/toolbar/toolbar.d.ts +3 -3
  135. package/dist/components/base/typography/index.d.ts +2 -0
  136. package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
  137. package/dist/components/base/typography/text/index.d.ts +1 -0
  138. package/dist/components/base/typography/text/text.d.ts +15 -8
  139. package/dist/components/base/typography/text/text.variants.d.ts +41 -0
  140. package/dist/components/base/value-inputs/color-input.d.ts +1 -7
  141. package/dist/components/base/value-inputs/slider.d.ts +2 -7
  142. package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
  143. package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
  144. package/dist/components/features/actions/action-adapters.d.ts +3 -3
  145. package/dist/components/features/actions/actions.types.d.ts +3 -5
  146. package/dist/components/features/actions/index.d.ts +1 -1
  147. package/dist/components/features/activities/activities-feed.d.ts +1 -1
  148. package/dist/components/features/activities/activities.types.d.ts +4 -4
  149. package/dist/components/features/activities/activity-parts.d.ts +3 -3
  150. package/dist/components/features/activities/activity-row.d.ts +4 -4
  151. package/dist/components/features/activities/index.d.ts +1 -1
  152. package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
  153. package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
  154. package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
  155. package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
  156. package/dist/components/features/combobox/fetching-combobox.d.ts +2 -1
  157. package/dist/components/features/combobox/resource-combobox.d.ts +3 -0
  158. package/dist/components/features/combobox/use-suggestions.d.ts +7 -0
  159. package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
  160. package/dist/components/features/media-library/index.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
  162. package/dist/components/features/media-library/media-library-views.d.ts +4 -3
  163. package/dist/components/features/media-library/media-library.d.ts +1 -1
  164. package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
  165. package/dist/components/features/media-library/media-library.types.d.ts +11 -9
  166. package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
  167. package/dist/components/features/media-library/use-media-library.d.ts +1 -4
  168. package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
  169. package/dist/components/features/overlays/index.d.ts +1 -1
  170. package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
  171. package/dist/components/features/overlays/overlays.types.d.ts +8 -7
  172. package/dist/components/features/rich-text-editor/index.d.ts +0 -1
  173. package/dist/components/features/table/data-table-body.d.ts +1 -1
  174. package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
  175. package/dist/components/features/table/data-table-header.d.ts +1 -1
  176. package/dist/components/features/table/data-table-size.d.ts +1 -1
  177. package/dist/components/features/table/data-table.d.ts +1 -1
  178. package/dist/components/features/table/index.d.ts +1 -1
  179. package/dist/components/features/table/table-helpers.d.ts +9 -3
  180. package/dist/components/features/table/table.strings.d.ts +11 -0
  181. package/dist/components/features/table/table.types.d.ts +60 -2
  182. package/dist/components/features/theme-tweaker/index.d.ts +1 -1
  183. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
  184. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
  185. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
  186. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  187. package/dist/components/layout/auth/auth.d.ts +1 -1
  188. package/dist/components/layout/auth/auth.types.d.ts +1 -1
  189. package/dist/components/primitives/value.d.ts +3 -1
  190. package/dist/containers-B8d8U9GS.js +2 -0
  191. package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
  192. package/dist/core.css +2 -2
  193. package/dist/css/access.css +2 -1
  194. package/dist/css/accordion.css +2 -1
  195. package/dist/css/action-menu.css +2 -1
  196. package/dist/css/activities.css +2 -1
  197. package/dist/css/ai-chat.css +2 -1
  198. package/dist/css/analytics.css +2 -1
  199. package/dist/css/app-shell.css +2 -1
  200. package/dist/css/aspect-ratio.css +2 -1
  201. package/dist/css/async-preview.css +2 -1
  202. package/dist/css/auth.css +2 -1
  203. package/dist/css/avatar.css +2 -1
  204. package/dist/css/badge.css +2 -1
  205. package/dist/css/batch-action-bar.css +2 -1
  206. package/dist/css/buttons.css +2 -1
  207. package/dist/css/cards.css +2 -1
  208. package/dist/css/carousel.css +2 -1
  209. package/dist/css/chart.css +2 -1
  210. package/dist/css/choice-inputs.css +2 -1
  211. package/dist/css/combobox.css +2 -1
  212. package/dist/css/combobox2.css +2 -1
  213. package/dist/css/command.css +2 -1
  214. package/dist/css/comments.css +2 -1
  215. package/dist/css/commerce.css +2 -1
  216. package/dist/css/containers.css +2 -1
  217. package/dist/css/copyable.css +2 -1
  218. package/dist/css/data-view.css +2 -1
  219. package/dist/css/date-pickers.css +2 -1
  220. package/dist/css/display.css +2 -1
  221. package/dist/css/dropdown-menu.css +2 -1
  222. package/dist/css/event-calendar.css +2 -1
  223. package/dist/css/feedback.css +2 -1
  224. package/dist/css/filters.css +2 -1
  225. package/dist/css/forms-numeric.css +2 -1
  226. package/dist/css/forms.css +2 -1
  227. package/dist/css/global-search.css +2 -1
  228. package/dist/css/header.css +2 -1
  229. package/dist/css/hover-card.css +2 -1
  230. package/dist/css/input-group.css +2 -1
  231. package/dist/css/item.css +2 -1
  232. package/dist/css/kanban.css +2 -1
  233. package/dist/css/label.css +2 -1
  234. package/dist/css/map.css +2 -1
  235. package/dist/css/media-library.css +2 -1
  236. package/dist/css/mentions.css +2 -1
  237. package/dist/css/menubar.css +2 -1
  238. package/dist/css/navigation-menu.css +2 -1
  239. package/dist/css/navigation.css +2 -1
  240. package/dist/css/navigation2.css +2 -1
  241. package/dist/css/onboarding.css +2 -1
  242. package/dist/css/otp-input.css +2 -1
  243. package/dist/css/overlay.css +2 -1
  244. package/dist/css/overlays.css +2 -1
  245. package/dist/css/page.css +2 -1
  246. package/dist/css/popover-menu.css +2 -1
  247. package/dist/css/popover.css +2 -1
  248. package/dist/css/primitives.css +2 -1
  249. package/dist/css/products.css +2 -1
  250. package/dist/css/qr-code.css +2 -1
  251. package/dist/css/repeaters.css +2 -1
  252. package/dist/css/resizable.css +2 -1
  253. package/dist/css/resource-assignment.css +2 -1
  254. package/dist/css/resource.css +2 -1
  255. package/dist/css/rich-text-editor.css +2 -1
  256. package/dist/css/schema-form.css +2 -1
  257. package/dist/css/sidebar.css +2 -1
  258. package/dist/css/sidebar2.css +2 -1
  259. package/dist/css/skeleton.css +2 -1
  260. package/dist/css/spinner.css +2 -1
  261. package/dist/css/structure.css +2 -1
  262. package/dist/css/sync.css +2 -1
  263. package/dist/css/table.css +2 -1
  264. package/dist/css/table2.css +2 -1
  265. package/dist/css/text-inputs.css +2 -1
  266. package/dist/css/theme-tweaker.css +2 -1
  267. package/dist/css/timeline.css +2 -1
  268. package/dist/css/timelines.css +2 -1
  269. package/dist/css/toaster.css +2 -1
  270. package/dist/css/toggle.css +2 -1
  271. package/dist/css/toolbar.css +2 -1
  272. package/dist/css/tooltip.css +2 -1
  273. package/dist/css/typography.css +2 -1
  274. package/dist/css/upload.css +2 -1
  275. package/dist/css/value-inputs.css +2 -1
  276. package/dist/css/workspace.css +2 -1
  277. package/dist/css-graph.json +1027 -0
  278. package/dist/date-pickers-BwCwKIVM.js +685 -0
  279. package/dist/{dialog-CtFCuTUF.js → dialog-CAnwRNrm.js} +1 -1
  280. package/dist/display-a7AoX_u7.js +664 -0
  281. package/dist/dropdown-menu-Br8kvjrF.js +235 -0
  282. package/dist/empty.js +0 -0
  283. package/dist/features/actions.js +6 -6
  284. package/dist/features/activities.js +219 -216
  285. package/dist/features/ai-chat.js +593 -565
  286. package/dist/features/async-preview.js +105 -286
  287. package/dist/features/combobox.js +328 -314
  288. package/dist/features/comments.js +1 -1
  289. package/dist/features/data-view.js +56 -55
  290. package/dist/features/event-calendar.js +189 -185
  291. package/dist/features/filters.js +1 -1
  292. package/dist/features/global-search.js +259 -260
  293. package/dist/features/kanban.js +39 -37
  294. package/dist/features/map.js +357 -354
  295. package/dist/features/media-library.js +931 -931
  296. package/dist/features/mentions.js +1 -1
  297. package/dist/features/overlays.js +1 -1
  298. package/dist/features/products.js +950 -942
  299. package/dist/features/resource-assignment.js +39 -37
  300. package/dist/features/resource.js +70 -71
  301. package/dist/features/rich-text-editor.js +2 -2
  302. package/dist/features/schema-form.js +342 -338
  303. package/dist/features/sync.js +14 -12
  304. package/dist/features/table.js +1 -1
  305. package/dist/features/theme-tweaker.js +1002 -962
  306. package/dist/feedback-D4qVsKlD.js +430 -0
  307. package/dist/{filters-DOLKRSmb.js → filters-BhsTkWpZ.js} +386 -383
  308. package/dist/forms-C0WeNPFF.js +250 -0
  309. package/dist/forms-numeric-IwQ1ltNf.js +582 -0
  310. package/dist/hooks/use-native-dialog.d.ts +1 -1
  311. package/dist/index.js +2 -2
  312. package/dist/input-group-HS_Z0Ei_.js +119 -0
  313. package/dist/item-M2pmpWXh.js +150 -0
  314. package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
  315. package/dist/layout/app-shell.js +4 -2
  316. package/dist/layout/auth.js +102 -100
  317. package/dist/layout/header.js +190 -180
  318. package/dist/layout/navigation.js +1 -1
  319. package/dist/layout/page.js +18 -16
  320. package/dist/layout/settings.js +2 -2
  321. package/dist/layout/sidebar.js +50 -46
  322. package/dist/layout/workspace.js +71 -69
  323. package/dist/lib/action-presentation.d.ts +3 -3
  324. package/dist/lib/component-vocabulary.d.ts +2 -2
  325. package/dist/lib/css-length.d.ts +2 -0
  326. package/dist/lib/responsive.d.ts +1 -1
  327. package/dist/lib/theming/index.d.ts +1 -0
  328. package/dist/lib/theming/recipes.d.ts +2 -2
  329. package/dist/lib/theming/themes/dense.d.ts +3 -0
  330. package/dist/lib/theming/themes/editorial.d.ts +3 -0
  331. package/dist/lib/theming/themes/index.d.ts +8 -0
  332. package/dist/lib/theming/themes/pair.d.ts +7 -0
  333. package/dist/lib/theming/themes/sharp.d.ts +3 -0
  334. package/dist/lib/theming/themes/soft.d.ts +3 -0
  335. package/dist/lib/theming/themes/types.d.ts +12 -0
  336. package/dist/lib/ui-provider/index.d.ts +1 -1
  337. package/dist/lib/ui-provider/scope.d.ts +5 -8
  338. package/dist/lib/ui-provider/tokens.d.ts +11 -3
  339. package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
  340. package/dist/lib/ui-provider/types.d.ts +17 -19
  341. package/dist/lib/ui-provider/ui-scope.d.ts +1 -1
  342. package/dist/{mentions-BbsEHlcH.js → mentions-BOxbigwp.js} +113 -111
  343. package/dist/navigation-Bgu7Vc0M.js +622 -0
  344. package/dist/navigation-DiYACqpE.js +216 -0
  345. package/dist/overlay-BuQOl8aP.js +356 -0
  346. package/dist/{overlays-DvVoS3td.js → overlays-1sULyytH.js} +77 -75
  347. package/dist/popover-CA7SP_iz.js +127 -0
  348. package/dist/popover-menu-QXgQeWeG.js +192 -0
  349. package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
  350. package/dist/primitives.js +1 -1
  351. package/dist/profiles/admin.json +6 -36
  352. package/dist/profiles/general.json +6 -96
  353. package/dist/repeaters-CeH20dvr.js +445 -0
  354. package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
  355. package/dist/{sheet-CKcmRbJ9.js → sheet-CJ1-OAla.js} +3 -3
  356. package/dist/sidebar-D8uGqxio.js +421 -0
  357. package/dist/skeleton-BTKNKTdj.js +173 -0
  358. package/dist/spinner-Tc1QCnxM.js +30 -0
  359. package/dist/{structure-D0WGQAP3.js → structure-CynEZ-OY.js} +15 -23
  360. package/dist/style.css +1 -1
  361. package/dist/styles/TOKENS.md +116 -275
  362. package/dist/styles/animation.css +114 -0
  363. package/dist/styles/base.css +7 -6
  364. package/dist/styles/fields.css +45 -63
  365. package/dist/styles/focus.css +12 -0
  366. package/dist/styles/forced-colors.css +11 -10
  367. package/dist/styles/index.css +23 -30
  368. package/dist/styles/map.css +45 -34
  369. package/dist/styles/mentions.css +14 -52
  370. package/dist/styles/overlays.css +7 -7
  371. package/dist/styles/tailwind.css +76 -127
  372. package/dist/styles/targets.css +3 -3
  373. package/dist/styles/theme/colour.css +86 -0
  374. package/dist/styles/theme/density.css +31 -0
  375. package/dist/styles/theme/elevation.css +9 -0
  376. package/dist/styles/theme/layout.css +18 -0
  377. package/dist/styles/theme/motion.css +18 -0
  378. package/dist/styles/theme/shape.css +12 -0
  379. package/dist/styles/theme/size.css +10 -0
  380. package/dist/styles/theme/spacing.css +11 -0
  381. package/dist/styles/theme/typography.css +20 -0
  382. package/dist/styles/tone.css +61 -0
  383. package/dist/table-B7dtIFUx.js +1262 -0
  384. package/dist/table-Ds_eO9av.js +191 -0
  385. package/dist/tailwind.css +76 -127
  386. package/dist/text-inputs-BboE77nZ.js +395 -0
  387. package/dist/theming-C5ygF5uf.js +292 -0
  388. package/dist/theming.js +2 -2
  389. package/dist/{timeline-BdaGRyj-.js → timeline-BR_jNgvz.js} +57 -49
  390. package/dist/{timelines-BB7550mz.js → timelines-DXG1BfIN.js} +69 -67
  391. package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
  392. package/dist/tokens.json +1027 -636
  393. package/dist/toolbar-DBK-c4yy.js +74 -0
  394. package/dist/tooltip-BPYP-jUm.js +76 -0
  395. package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
  396. package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
  397. package/dist/ui-provider.js +1 -1
  398. package/dist/upload-CYuoJykZ.js +968 -0
  399. package/dist/use-async-preview-BFwf9ElY.js +188 -0
  400. package/dist/value-inputs-ng8aVJJZ.js +728 -0
  401. package/docs/README.md +13 -3
  402. package/docs/build/browser-composition-fixture.ts +28 -0
  403. package/docs/build/recipes.md +11484 -10723
  404. package/docs/generated/component-index.json +9809 -9169
  405. package/docs/generated/components/INDEX.md +5 -5
  406. package/docs/generated/components/base--accordion.md +51 -2
  407. package/docs/generated/components/base--action-menu.md +14 -15
  408. package/docs/generated/components/base--alert-dialog.md +3 -4
  409. package/docs/generated/components/base--aspect-ratio.md +3 -4
  410. package/docs/generated/components/base--avatar.md +7 -7
  411. package/docs/generated/components/base--badge.md +159 -27
  412. package/docs/generated/components/base--batch-action-bar.md +6 -7
  413. package/docs/generated/components/base--buttons.md +151 -47
  414. package/docs/generated/components/base--cards.md +107 -14
  415. package/docs/generated/components/base--carousel.md +1 -2
  416. package/docs/generated/components/base--chart.md +44 -8
  417. package/docs/generated/components/base--choice-inputs.md +10 -11
  418. package/docs/generated/components/base--combobox.md +3 -4
  419. package/docs/generated/components/base--command.md +6 -6
  420. package/docs/generated/components/base--context-menu.md +1 -2
  421. package/docs/generated/components/base--copyable.md +6 -7
  422. package/docs/generated/components/base--date-pickers.md +6 -7
  423. package/docs/generated/components/base--dialog.md +6 -7
  424. package/docs/generated/components/base--direction.md +1 -1
  425. package/docs/generated/components/base--display.md +234 -54
  426. package/docs/generated/components/base--dropdown-menu.md +6 -7
  427. package/docs/generated/components/base--feedback.md +71 -18
  428. package/docs/generated/components/base--forms-numeric.md +6 -7
  429. package/docs/generated/components/base--forms.md +84 -14
  430. package/docs/generated/components/base--hover-card.md +3 -4
  431. package/docs/generated/components/base--input-group.md +27 -30
  432. package/docs/generated/components/base--item.md +8 -9
  433. package/docs/generated/components/base--label.md +2 -3
  434. package/docs/generated/components/base--menubar.md +2 -4
  435. package/docs/generated/components/base--navigation-menu.md +2 -3
  436. package/docs/generated/components/base--navigation.md +2 -3
  437. package/docs/generated/components/base--otp-input.md +3 -4
  438. package/docs/generated/components/base--overlay.md +56 -47
  439. package/docs/generated/components/base--popover-menu.md +7 -8
  440. package/docs/generated/components/base--popover.md +9 -10
  441. package/docs/generated/components/base--qr-code.md +7 -8
  442. package/docs/generated/components/base--repeaters.md +6 -7
  443. package/docs/generated/components/base--resizable.md +2 -3
  444. package/docs/generated/components/base--sheet.md +12 -13
  445. package/docs/generated/components/base--sidebar.md +9 -11
  446. package/docs/generated/components/base--skeleton.md +6 -7
  447. package/docs/generated/components/base--slot.md +1 -1
  448. package/docs/generated/components/base--spinner.md +5 -7
  449. package/docs/generated/components/base--structure.md +320 -70
  450. package/docs/generated/components/base--table.md +61 -3
  451. package/docs/generated/components/base--text-inputs.md +17 -18
  452. package/docs/generated/components/base--timeline.md +45 -4
  453. package/docs/generated/components/base--toaster.md +43 -12
  454. package/docs/generated/components/base--toggle.md +11 -12
  455. package/docs/generated/components/base--toolbar.md +7 -8
  456. package/docs/generated/components/base--tooltip.md +5 -6
  457. package/docs/generated/components/base--typography.md +317 -32
  458. package/docs/generated/components/base--upload.md +8 -9
  459. package/docs/generated/components/base--value-inputs.md +9 -38
  460. package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +15 -6
  461. package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
  462. package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +57 -14
  463. package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
  464. package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
  465. package/docs/generated/components/features--actions.md +8 -18
  466. package/docs/generated/components/features--activities.md +31 -32
  467. package/docs/generated/components/features--ai-chat.md +15 -15
  468. package/docs/generated/components/features--async-preview.md +5 -6
  469. package/docs/generated/components/features--combobox.md +71 -5
  470. package/docs/generated/components/features--comments.md +0 -1
  471. package/docs/generated/components/features--data-view.md +63 -8
  472. package/docs/generated/components/features--event-calendar.md +1 -2
  473. package/docs/generated/components/features--filters.md +11 -2
  474. package/docs/generated/components/features--global-search.md +1 -2
  475. package/docs/generated/components/features--kanban.md +1 -2
  476. package/docs/generated/components/features--map.md +1 -2
  477. package/docs/generated/components/features--media-library.md +105 -38
  478. package/docs/generated/components/features--mentions.md +7 -7
  479. package/docs/generated/components/features--overlays.md +75 -22
  480. package/docs/generated/components/features--products.md +10 -11
  481. package/docs/generated/components/features--resource-assignment.md +2 -3
  482. package/docs/generated/components/features--resource.md +3 -4
  483. package/docs/generated/components/features--rich-text-editor.md +42 -13
  484. package/docs/generated/components/features--schema-form.md +1 -2
  485. package/docs/generated/components/features--sync.md +2 -3
  486. package/docs/generated/components/features--table.md +162 -12
  487. package/docs/generated/components/features--theme-tweaker.md +30 -15
  488. package/docs/generated/components/forms.md +2 -2
  489. package/docs/generated/components/layout--app-shell.md +41 -11
  490. package/docs/generated/components/layout--auth.md +8 -9
  491. package/docs/generated/components/layout--containers.md +40 -1
  492. package/docs/generated/components/layout--header.md +2 -3
  493. package/docs/generated/components/layout--navigation.md +0 -1
  494. package/docs/generated/components/layout--page.md +33 -5
  495. package/docs/generated/components/layout--settings.md +0 -1
  496. package/docs/generated/components/layout--sidebar.md +47 -7
  497. package/docs/generated/components/layout--workspace.md +3 -4
  498. package/docs/generated/components/primitives.md +128 -17
  499. package/docs/generated/components/theming.md +147 -4
  500. package/docs/generated/components/ui-provider.md +96 -78
  501. package/docs/generated/composition-ladder.md +8 -8
  502. package/docs/generated/consumer-contract.json +5736 -0
  503. package/docs/generated/imports.md +104 -104
  504. package/docs/generated/migration-broad-imports.json +267 -90
  505. package/docs/generated/migration-broad-imports.md +266 -101
  506. package/docs/generated/migration-codemod.json +365 -70
  507. package/docs/generated/migration.md +665 -95
  508. package/docs/generated/profiles.md +27 -27
  509. package/docs/generated/public-api.md +104 -102
  510. package/docs/generated/recipes.json +755 -810
  511. package/docs/generated/workflows/communications-overview/analytics/communications-reference.tsx +19 -0
  512. package/docs/generated/workflows/index.json +691 -0
  513. package/docs/generated/workflows/media-picking/media-library/media-picking-reference.tsx +63 -0
  514. package/docs/generated/workflows/media-picking/media-library/reference-data.ts +3 -0
  515. package/docs/generated/workflows/multi-section-form/form-workflow/multi-section-reference.tsx +46 -0
  516. package/docs/generated/workflows/nested-action-flow/action-overlays/nested-action-reference.tsx +39 -0
  517. package/docs/generated/workflows/record-detail/page-layout/record-detail-reference.tsx +24 -0
  518. package/docs/generated/workflows/resource-index/data-view/resource-index-reference.tsx +51 -0
  519. package/docs/generated/workflows/scoped-resource-selection/combobox/scoped-resource-reference.tsx +50 -0
  520. package/docs/generated/workflows/website-content-editor/media-library/reference-data.ts +3 -0
  521. package/docs/generated/workflows/website-content-editor/rich-text-editor/website-content-reference.tsx +33 -0
  522. package/docs/generated/workflows/workspace-navigation/app-shell/workspace-navigation-reference.tsx +26 -0
  523. package/docs/learn/api-compatibility.md +5 -4
  524. package/docs/learn/blocks.md +123 -0
  525. package/docs/learn/composition.md +100 -19
  526. package/docs/learn/forms.md +23 -3
  527. package/docs/learn/framework-wiring.md +41 -13
  528. package/docs/learn/i18n.md +4 -2
  529. package/docs/learn/installation.md +60 -31
  530. package/docs/learn/migration.md +156 -5
  531. package/docs/learn/provider-and-scoping.md +37 -25
  532. package/docs/learn/reference-workflows.md +43 -0
  533. package/docs/learn/structure-and-spacing.md +147 -0
  534. package/docs/learn/theming.md +174 -131
  535. package/docs/learn/troubleshooting.md +88 -30
  536. package/docs/learn/verification.md +60 -5
  537. package/package.json +42 -473
  538. package/scripts/consumer/codemod.mjs +50 -32
  539. package/scripts/consumer/contract-reader.mjs +42 -0
  540. package/scripts/consumer/css-scan.mjs +51 -0
  541. package/scripts/consumer/diagnose.mjs +136 -0
  542. package/scripts/consumer/find-component.mjs +30 -17
  543. package/scripts/consumer/install-skill.mjs +93 -11
  544. package/src/styles/TOKENS.md +116 -275
  545. package/dist/accordion-6YPJ9XRO.js +0 -135
  546. package/dist/admin/patterns/access.css +0 -15
  547. package/dist/admin/patterns/commerce.css +0 -29
  548. package/dist/admin/patterns/commerce.js +0 -2493
  549. package/dist/avatar-CS7zow2q.js +0 -85
  550. package/dist/badge-CxOuTfVr.js +0 -63
  551. package/dist/base/accordion.css +0 -3
  552. package/dist/base/action-menu.css +0 -6
  553. package/dist/base/alert-dialog.css +0 -4
  554. package/dist/base/aspect-ratio.css +0 -2
  555. package/dist/base/avatar.css +0 -4
  556. package/dist/base/badge.css +0 -2
  557. package/dist/base/batch-action-bar.css +0 -5
  558. package/dist/base/buttons.css +0 -4
  559. package/dist/base/cards.css +0 -13
  560. package/dist/base/carousel.css +0 -5
  561. package/dist/base/chart.css +0 -2
  562. package/dist/base/choice-inputs.css +0 -10
  563. package/dist/base/combobox.css +0 -3
  564. package/dist/base/command.css +0 -9
  565. package/dist/base/context-menu.css +0 -2
  566. package/dist/base/copyable.css +0 -6
  567. package/dist/base/date-pickers.css +0 -11
  568. package/dist/base/dialog.css +0 -4
  569. package/dist/base/display.css +0 -8
  570. package/dist/base/dropdown-menu.css +0 -2
  571. package/dist/base/feedback.css +0 -5
  572. package/dist/base/forms-numeric.css +0 -12
  573. package/dist/base/forms.css +0 -14
  574. package/dist/base/hover-card.css +0 -2
  575. package/dist/base/input-group.css +0 -6
  576. package/dist/base/item.css +0 -9
  577. package/dist/base/label.css +0 -3
  578. package/dist/base/menubar.css +0 -2
  579. package/dist/base/navigation-menu.css +0 -2
  580. package/dist/base/navigation.css +0 -12
  581. package/dist/base/otp-input.css +0 -9
  582. package/dist/base/overlay.css +0 -4
  583. package/dist/base/popover-menu.css +0 -11
  584. package/dist/base/popover.css +0 -3
  585. package/dist/base/qr-code.css +0 -2
  586. package/dist/base/repeaters.css +0 -18
  587. package/dist/base/resizable.css +0 -2
  588. package/dist/base/sheet.css +0 -4
  589. package/dist/base/sidebar.css +0 -12
  590. package/dist/base/skeleton.css +0 -9
  591. package/dist/base/spinner.css +0 -2
  592. package/dist/base/structure.css +0 -2
  593. package/dist/base/table.css +0 -3
  594. package/dist/base/text-inputs.css +0 -2
  595. package/dist/base/timeline.css +0 -9
  596. package/dist/base/toaster.css +0 -2
  597. package/dist/base/toggle.css +0 -2
  598. package/dist/base/toolbar.css +0 -5
  599. package/dist/base/tooltip.css +0 -2
  600. package/dist/base/typography.css +0 -2
  601. package/dist/base/upload.css +0 -10
  602. package/dist/base/value-inputs.css +0 -14
  603. package/dist/buttons-CqXKWty3.js +0 -179
  604. package/dist/cards-C6Ulbkw7.js +0 -271
  605. package/dist/chart-nomhJ87z.js +0 -193
  606. package/dist/choice-inputs-OUDn0kQw.js +0 -680
  607. package/dist/combobox-C8oP92bT.js +0 -266
  608. package/dist/command-Bp3B6pUu.js +0 -143
  609. package/dist/comments-CAnDlyXO.js +0 -1438
  610. package/dist/components/admin/patterns/index.d.ts +0 -2
  611. package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
  612. package/dist/components/patterns/index.d.ts +0 -3
  613. package/dist/css/styles.css +0 -1
  614. package/dist/date-pickers-DOwIT-Nk.js +0 -661
  615. package/dist/display-B3Q17h5z.js +0 -645
  616. package/dist/dropdown-menu-TyNLCLML.js +0 -223
  617. package/dist/features/actions.css +0 -11
  618. package/dist/features/activities.css +0 -25
  619. package/dist/features/ai-chat.css +0 -14
  620. package/dist/features/async-preview.css +0 -10
  621. package/dist/features/combobox.css +0 -12
  622. package/dist/features/comments.css +0 -24
  623. package/dist/features/data-view.css +0 -31
  624. package/dist/features/event-calendar.css +0 -17
  625. package/dist/features/filters.css +0 -24
  626. package/dist/features/global-search.css +0 -19
  627. package/dist/features/kanban.css +0 -7
  628. package/dist/features/map.css +0 -15
  629. package/dist/features/media-library.css +0 -27
  630. package/dist/features/mentions.css +0 -17
  631. package/dist/features/overlays.css +0 -11
  632. package/dist/features/products.css +0 -29
  633. package/dist/features/resource-assignment.css +0 -14
  634. package/dist/features/resource.css +0 -15
  635. package/dist/features/rich-text-editor.css +0 -8
  636. package/dist/features/schema-form.css +0 -22
  637. package/dist/features/sync.css +0 -11
  638. package/dist/features/table.css +0 -20
  639. package/dist/features/theme-tweaker.css +0 -27
  640. package/dist/feedback-DRerHGuV.js +0 -469
  641. package/dist/forms-CPrGGif_.js +0 -242
  642. package/dist/forms-numeric-CPVsL7Vf.js +0 -569
  643. package/dist/index.css +0 -3
  644. package/dist/input-group-BYe0rhoB.js +0 -126
  645. package/dist/item-B3yQ26as.js +0 -146
  646. package/dist/layout/app-shell.css +0 -13
  647. package/dist/layout/auth.css +0 -14
  648. package/dist/layout/containers.css +0 -2
  649. package/dist/layout/header.css +0 -20
  650. package/dist/layout/navigation.css +0 -11
  651. package/dist/layout/page.css +0 -15
  652. package/dist/layout/settings.css +0 -16
  653. package/dist/layout/sidebar.css +0 -16
  654. package/dist/layout/workspace.css +0 -15
  655. package/dist/navigation-CsqTA16F.js +0 -614
  656. package/dist/navigation-DzxzPuwg.js +0 -202
  657. package/dist/overlay-WQOsLd69.js +0 -345
  658. package/dist/patterns/analytics.css +0 -15
  659. package/dist/patterns/onboarding.css +0 -11
  660. package/dist/patterns/timelines.css +0 -11
  661. package/dist/popover-DriLnIFc.js +0 -123
  662. package/dist/popover-menu-C2UCMAe7.js +0 -189
  663. package/dist/primitives.css +0 -3
  664. package/dist/repeaters-DuP1N0nw.js +0 -438
  665. package/dist/rich-text-editor-BQXFe9oN.js +0 -595
  666. package/dist/sidebar-D0N6ckJL.js +0 -412
  667. package/dist/skeleton-DGR9df28.js +0 -172
  668. package/dist/spinner-CUAVFecI.js +0 -52
  669. package/dist/styles/FACTORS.md +0 -36
  670. package/dist/styles/SCOPES.md +0 -86
  671. package/dist/styles/themes/default.css +0 -164
  672. package/dist/styles/theming/animation.css +0 -143
  673. package/dist/styles/theming/colors.css +0 -97
  674. package/dist/styles/theming/feedback.css +0 -17
  675. package/dist/styles/theming/field.css +0 -21
  676. package/dist/styles/theming/focus.css +0 -88
  677. package/dist/styles/theming/layers.css +0 -13
  678. package/dist/styles/theming/layout.css +0 -21
  679. package/dist/styles/theming/motion.css +0 -42
  680. package/dist/styles/theming/overlay.css +0 -52
  681. package/dist/styles/theming/sizing.css +0 -118
  682. package/dist/styles/theming/text.css +0 -30
  683. package/dist/styles/theming/typography.css +0 -26
  684. package/dist/styles/tokens/components.css +0 -22
  685. package/dist/styles/tokens/foundation.css +0 -80
  686. package/dist/styles/tokens/layout.css +0 -19
  687. package/dist/styles/tokens/palette.css +0 -88
  688. package/dist/styles/tokens/primitives.css +0 -18
  689. package/dist/styles/tokens/states.css +0 -77
  690. package/dist/table-BC4qqsUb.js +0 -180
  691. package/dist/table-BHDpjajL.js +0 -982
  692. package/dist/text-inputs-DF_lD7pA.js +0 -385
  693. package/dist/theming-D6KRU7hO.js +0 -104
  694. package/dist/toolbar-DWRywF0R.js +0 -68
  695. package/dist/tooltip-t1VQQ2tZ.js +0 -73
  696. package/dist/upload-B38YZeFJ.js +0 -938
  697. package/dist/value-inputs-Q4ymjXlV.js +0 -716
  698. package/src/styles/FACTORS.md +0 -36
  699. package/src/styles/SCOPES.md +0 -86
  700. /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
  701. /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
  702. /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
  703. /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
  704. /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
  705. /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
  706. /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
  707. /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
  708. /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
  709. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
  710. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
  711. /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
  712. /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
  713. /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
  714. /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
  715. /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
  716. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
  717. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
  718. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
  719. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
  720. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
  721. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
  722. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
  723. /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
  724. /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
  725. /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
  726. /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
  727. /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
  728. /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
  729. /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
  730. /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
  731. /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
  732. /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
  733. /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
  734. /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
  735. /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
  736. /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
  737. /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
  738. /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
  739. /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
  740. /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
  741. /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
  742. /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
  743. /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
  744. /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
  745. /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
  746. /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
@@ -1,33 +1,35 @@
1
1
  "use client";
2
- import { t as e } from "../cx--CBrhWH0.js";
3
- import { i as t, o as n, r } from "../typography-BkxEiwQ1.js";
4
- import { p as i } from "../feedback-DRerHGuV.js";
5
- import { c as a } from "../buttons-CqXKWty3.js";
6
- import { n as o } from "../copyable-H1TUEY-H.js";
7
- import { u as s } from "../display-B3Q17h5z.js";
8
- import { B as c, H as l, w as u, x as d } from "../primitives-D0bdDozz.js";
9
- import { t as f } from "../badge-CxOuTfVr.js";
10
- import { y as p } from "../upload-B38YZeFJ.js";
11
- import { t as m } from "../strings-Co9_qArR.js";
12
- import { c as h } from "../text-inputs-DF_lD7pA.js";
13
- import { AlertCircleIcon as g, ArchiveIcon as _, ArrowDownIcon as v, ArrowUpIcon as y, AudioLinesIcon as b, BotIcon as x, BrainIcon as S, CheckIcon as C, ChevronDownIcon as w, CircleDotIcon as T, CircleIcon as E, CopyIcon as D, DownloadIcon as O, ExternalLinkIcon as k, FileCodeIcon as A, FileTextIcon as j, GlobeIcon as ee, ImageIcon as te, Loader2Icon as M, MinusCircleIcon as ne, PaperclipIcon as re, RotateCcwIcon as ie, ShieldCheckIcon as ae, SparklesIcon as oe, SquareIcon as se, UserIcon as ce, VideoIcon as le, WrenchIcon as ue, XCircleIcon as de, XIcon as N } from "lucide-react";
14
- import { useCallback as P, useEffect as F, useMemo as fe, useRef as I, useState as L } from "react";
15
- import { Fragment as R, jsx as z, jsxs as B } from "react/jsx-runtime";
2
+ import "#core.css";
3
+ import { a as e, c as t, i as n, s as r } from "../typography-DmeR05Er.js";
4
+ import { t as i } from "../cx--CBrhWH0.js";
5
+ import { c as a } from "../buttons-BX2JfL5X.js";
6
+ import { t as o } from "../strings-Co9_qArR.js";
7
+ import { B as s, H as c, w as l, x as u } from "../primitives-BskKlf35.js";
8
+ import { t as d } from "../badge-VlJVZjdm.js";
9
+ import { p as f } from "../feedback-D4qVsKlD.js";
10
+ import { u as p } from "../display-a7AoX_u7.js";
11
+ import { c as m } from "../text-inputs-BboE77nZ.js";
12
+ import { n as h } from "../copyable-D9Okb1w6.js";
13
+ import { y as g } from "../upload-CYuoJykZ.js";
14
+ import { AlertCircleIcon as _, ArchiveIcon as v, ArrowDownIcon as y, ArrowUpIcon as b, AudioLinesIcon as x, BotIcon as S, BrainIcon as C, CheckIcon as w, ChevronDownIcon as T, CircleDotIcon as E, CircleIcon as D, CopyIcon as O, DownloadIcon as k, ExternalLinkIcon as A, FileCodeIcon as j, FileTextIcon as M, GlobeIcon as ee, ImageIcon as te, Loader2Icon as N, MinusCircleIcon as ne, PaperclipIcon as re, RotateCcwIcon as ie, ShieldCheckIcon as ae, SparklesIcon as P, SquareIcon as oe, UserIcon as se, VideoIcon as ce, WrenchIcon as le, XCircleIcon as ue, XIcon as F } from "lucide-react";
15
+ import { useCallback as I, useEffect as L, useMemo as de, useRef as R, useState as z } from "react";
16
+ import { Fragment as B, jsx as V, jsxs as H } from "react/jsx-runtime";
17
+ import "#css/ai-chat.css";
16
18
  //#region src/components/features/ai-chat/ai-chat.strings.ts
17
- var V = {
19
+ var U = {
18
20
  copyAria: "Copy message",
19
21
  copied: "Copied",
20
22
  regenerateAria: "Regenerate response"
21
- }, H = {
23
+ }, fe = {
22
24
  thinking: "Thinking…",
23
25
  thoughtFor: "Thought for {{duration}}",
24
26
  thoughtDone: "Reasoning complete",
25
27
  expandAria: "Expand reasoning",
26
28
  collapseAria: "Collapse reasoning"
27
- }, U = {
29
+ }, pe = {
28
30
  title: "Reasoning",
29
31
  streamingHint: "Working through the steps…"
30
- }, pe = {
32
+ }, me = {
31
33
  pending: "Queued",
32
34
  running: "Running",
33
35
  success: "Success",
@@ -37,7 +39,7 @@ var V = {
37
39
  args: "Arguments",
38
40
  result: "Result",
39
41
  durationLabel: "Took"
40
- }, me = {
42
+ }, he = {
41
43
  statusLabels: {
42
44
  queued: "Queued",
43
45
  running: "Running",
@@ -48,37 +50,37 @@ var V = {
48
50
  },
49
51
  collapseSubtasks: "Collapse subtasks",
50
52
  expandSubtasks: "Expand subtasks"
51
- }, he = { statusLabels: {
53
+ }, ge = { statusLabels: {
52
54
  idle: "Idle",
53
55
  thinking: "Thinking",
54
56
  working: "Working",
55
57
  done: "Done",
56
58
  error: "Error",
57
59
  offline: "Offline"
58
- } }, ge = {
60
+ } }, _e = {
59
61
  approve: "Approve",
60
62
  reject: "Reject",
61
63
  pending: "Awaiting your approval",
62
64
  approved: "Approved",
63
65
  rejected: "Rejected",
64
66
  detailsLabel: "Details"
65
- }, _e = {
67
+ }, ve = {
66
68
  copy: "Copy",
67
69
  copied: "Copied",
68
70
  copyAria: "Copy code",
69
71
  defaultLanguageLabel: "Code"
70
- }, ve = {
72
+ }, ye = {
71
73
  openAria: "Open artifact",
72
74
  copy: "Copy",
73
75
  copied: "Copied",
74
76
  copyAria: "Copy artifact",
75
77
  downloadAria: "Download artifact"
76
- }, ye = {
78
+ }, be = {
77
79
  title: "{{count}} sources",
78
80
  expand: "Show all sources",
79
81
  collapse: "Hide sources",
80
82
  visit: "Visit source"
81
- }, be = {
83
+ }, xe = {
82
84
  removeAria: "Remove attachment",
83
85
  openAria: "Open attachment",
84
86
  uploadProgressAria: "Upload progress"
@@ -98,7 +100,7 @@ var V = {
98
100
  cancelAria: "Remove from the queue",
99
101
  queuedLabel: "Queued",
100
102
  runningLabel: "Running"
101
- }, q = { header: "Try" }, J = { pending: "Thinking…" }, xe = {
103
+ }, q = { header: "Try" }, J = { pending: "Thinking…" }, Se = {
102
104
  prompt: W,
103
105
  conversation: G,
104
106
  queue: K,
@@ -108,11 +110,9 @@ var V = {
108
110
  emptyDescription: "Ask a question, share context, or attach a file to get going."
109
111
  }, Y = {
110
112
  grow: "ai-chat__grow___Y8DWx",
111
- numeric: "ai-chat__numeric___DJfdz",
112
113
  preWrap: "ai-chat__preWrap___IOxPO",
113
114
  copiedIcon: "ai-chat__copiedIcon____4uce",
114
115
  shimmer: "ai-chat__shimmer___98Nfp",
115
- shimmerSweep: "ai-chat__shimmer-sweep___whyHC",
116
116
  turn: "ai-chat__turn___pu7B6",
117
117
  avatar: "ai-chat__avatar___uJgyI",
118
118
  turnBody: "ai-chat__turnBody___4sCxS",
@@ -147,8 +147,8 @@ var V = {
147
147
  toolDetail: "ai-chat__toolDetail____Km_8",
148
148
  pre: "ai-chat__pre___LT2fm",
149
149
  taskRow: "ai-chat__taskRow___oC6YU",
150
- taskToggle: "ai-chat__taskToggle___nqH5E",
151
150
  taskToggleSpacer: "ai-chat__taskToggleSpacer___odHEt",
151
+ taskToggle: "ai-chat__taskToggle___nqH5E",
152
152
  taskIcon: "ai-chat__taskIcon___bNu7w",
153
153
  taskTitleRow: "ai-chat__taskTitleRow___V70b4",
154
154
  taskTitle: "ai-chat__taskTitle___JccHi",
@@ -227,206 +227,217 @@ var V = {
227
227
  composerBarEnd: "ai-chat__composerBarEnd___4qddD",
228
228
  stopGlyph: "ai-chat__stopGlyph___vCnz2",
229
229
  composerHint: "ai-chat__composerHint___55m4n"
230
- }, Se = 1500;
231
- function Ce({ code: t, language: n, filename: r, showLineNumbers: i = !1, highlightLines: s, hideHeader: l = !1, maxHeight: u, headerActions: d, onCopy: f, className: p, strings: m }) {
232
- let h = {
233
- ..._e,
230
+ }, Ce = 1500, we = t({
231
+ size: "xs",
232
+ lineHeight: "relaxed",
233
+ mono: !0
234
+ });
235
+ function Te({ code: e, language: t, filename: n, showLineNumbers: o = !1, highlightLines: c, hideHeader: l = !1, maxHeight: u, headerActions: d, onCopy: f, className: p, strings: m }) {
236
+ let g = {
237
+ ...ve,
234
238
  ...m
235
- }, { copied: g, copy: _ } = o({
236
- confirmMs: Se,
239
+ }, { copied: _, copy: v } = h({
240
+ confirmMs: Ce,
237
241
  onCopy: f
238
- }), v = fe(() => t.split("\n"), [t]), y = fe(() => new Set(s ?? []), [s]);
239
- return /* @__PURE__ */ B("div", {
240
- className: e("ai-code-block--component", Y.code, p),
241
- children: [!l && /* @__PURE__ */ B("div", {
242
+ }), y = de(() => e.split("\n"), [e]), b = de(() => new Set(c ?? []), [c]);
243
+ return /* @__PURE__ */ H("div", {
244
+ className: i("ai-code-block--component", Y.code, p),
245
+ children: [!l && /* @__PURE__ */ H("div", {
242
246
  className: Y.codeHeader,
243
247
  children: [
244
- /* @__PURE__ */ z(c, {
248
+ n ? /* @__PURE__ */ V(s, {
245
249
  size: "xs",
246
- "data-caps": !r || void 0,
250
+ truncate: !0,
247
251
  className: Y.codeLabel,
248
- children: r || n || h.defaultLanguageLabel
252
+ children: n
253
+ }) : /* @__PURE__ */ V(r, {
254
+ tag: "span",
255
+ size: "xs",
256
+ caps: !0,
257
+ truncate: !0,
258
+ className: Y.codeLabel,
259
+ children: t || g.defaultLanguageLabel
249
260
  }),
250
- !!r && !!n && /* @__PURE__ */ z(c, {
261
+ !!n && !!t && /* @__PURE__ */ V(s, {
251
262
  size: "xs",
252
263
  type: "secondary",
253
264
  className: Y.codeLanguage,
254
- children: n
265
+ children: t
255
266
  }),
256
- /* @__PURE__ */ B("div", {
267
+ /* @__PURE__ */ H("div", {
257
268
  className: Y.codeActions,
258
- children: [d, /* @__PURE__ */ z(a, {
269
+ children: [d, /* @__PURE__ */ V(a, {
259
270
  type: "button",
260
271
  tone: "neutral",
261
- buttonStyle: "ghost",
272
+ appearance: "ghost",
262
273
  iconOnly: !0,
263
- "aria-label": h.copyAria,
264
- onClick: () => void _(t),
265
- children: g ? /* @__PURE__ */ z(C, { className: Y.copiedIcon }) : /* @__PURE__ */ z(D, {})
274
+ "aria-label": g.copyAria,
275
+ onClick: () => void v(e),
276
+ children: _ ? /* @__PURE__ */ V(w, { className: Y.copiedIcon }) : /* @__PURE__ */ V(O, {})
266
277
  })]
267
278
  })
268
279
  ]
269
- }), /* @__PURE__ */ z("div", {
280
+ }), /* @__PURE__ */ V("div", {
270
281
  tabIndex: 0,
271
282
  style: u === void 0 ? void 0 : { maxHeight: typeof u == "number" ? `${u}px` : u },
272
283
  className: Y.codeScroll,
273
- children: i ? /* @__PURE__ */ z("pre", {
274
- className: Y.codeNumbered,
275
- children: v.map((e, t) => {
284
+ children: o ? /* @__PURE__ */ V("pre", {
285
+ className: i(Y.codeNumbered, we),
286
+ children: y.map((e, t) => {
276
287
  let n = t + 1;
277
- return /* @__PURE__ */ B("span", {
278
- "data-highlight": y.has(n) || void 0,
279
- children: [/* @__PURE__ */ z("span", {
288
+ return /* @__PURE__ */ H("span", {
289
+ "data-highlight": b.has(n) || void 0,
290
+ children: [/* @__PURE__ */ V("span", {
280
291
  "aria-hidden": !0,
281
292
  className: Y.codeGutter,
282
293
  children: n
283
- }), /* @__PURE__ */ z("span", {
294
+ }), /* @__PURE__ */ V("span", {
284
295
  className: Y.codeLine,
285
296
  children: e || " "
286
297
  })]
287
298
  }, t);
288
299
  })
289
- }) : /* @__PURE__ */ z("pre", {
290
- className: Y.codePlain,
291
- children: /* @__PURE__ */ z("code", { children: t })
300
+ }) : /* @__PURE__ */ V("pre", {
301
+ className: i(Y.codePlain, we),
302
+ children: /* @__PURE__ */ V("code", { children: e })
292
303
  })
293
304
  })]
294
305
  });
295
306
  }
296
- function we({ title: t, subtitle: r, icon: i = j, copyText: c, children: l, collapsed: u = !1, onOpen: d, actions: f, onDownload: p, className: m, strings: h }) {
307
+ function Ee({ title: e, subtitle: t, icon: n = M, copyText: o, children: s, collapsed: c = !1, onOpen: l, actions: u, onDownload: d, className: f, strings: m }) {
297
308
  let g = {
298
- ...ve,
299
- ...h
300
- }, { copied: _, copy: v } = o({ confirmMs: Se });
301
- return /* @__PURE__ */ B("div", {
302
- className: e("ai-artifact--component", Y.artifact, m),
303
- children: [/* @__PURE__ */ B("div", {
309
+ ...ye,
310
+ ...m
311
+ }, { copied: _, copy: v } = h({ confirmMs: Ce });
312
+ return /* @__PURE__ */ H("div", {
313
+ className: i("ai-artifact--component", Y.artifact, f),
314
+ children: [/* @__PURE__ */ H("div", {
304
315
  className: Y.artifactHeader,
305
316
  children: [
306
- /* @__PURE__ */ z(s, {
307
- icon: i,
317
+ /* @__PURE__ */ V(p, {
318
+ icon: n,
308
319
  tone: "neutral",
309
320
  shape: "rounded"
310
321
  }),
311
- /* @__PURE__ */ B("div", {
322
+ /* @__PURE__ */ H("div", {
312
323
  className: Y.artifactText,
313
- children: [/* @__PURE__ */ z(n, {
324
+ children: [/* @__PURE__ */ V(r, {
314
325
  weight: "semibold",
315
326
  truncate: !0,
316
- children: t
317
- }), !!r && /* @__PURE__ */ z(n, {
327
+ children: e
328
+ }), !!t && /* @__PURE__ */ V(r, {
318
329
  size: "xs",
319
330
  type: "secondary",
320
331
  truncate: !0,
321
- children: r
332
+ children: t
322
333
  })]
323
334
  }),
324
- /* @__PURE__ */ B("div", {
335
+ /* @__PURE__ */ H("div", {
325
336
  className: Y.artifactActions,
326
337
  children: [
327
- f?.map((e) => {
338
+ u?.map((e) => {
328
339
  let t = e.icon;
329
- return /* @__PURE__ */ B(a, {
340
+ return /* @__PURE__ */ H(a, {
330
341
  type: "button",
331
342
  tone: "neutral",
332
- buttonStyle: "ghost",
343
+ appearance: "ghost",
333
344
  onClick: e.onSelect,
334
- children: [!!t && /* @__PURE__ */ z(t, {}), e.label]
345
+ children: [!!t && /* @__PURE__ */ V(t, {}), e.label]
335
346
  }, e.id);
336
347
  }),
337
- !!c && /* @__PURE__ */ z(a, {
348
+ !!o && /* @__PURE__ */ V(a, {
338
349
  type: "button",
339
350
  tone: "neutral",
340
- buttonStyle: "ghost",
351
+ appearance: "ghost",
341
352
  iconOnly: !0,
342
353
  "aria-label": g.copyAria,
343
- onClick: () => void v(c),
344
- children: _ ? /* @__PURE__ */ z(C, { className: Y.copiedIcon }) : /* @__PURE__ */ z(D, {})
354
+ onClick: () => void v(o),
355
+ children: _ ? /* @__PURE__ */ V(w, { className: Y.copiedIcon }) : /* @__PURE__ */ V(O, {})
345
356
  }),
346
- !!p && /* @__PURE__ */ z(a, {
357
+ !!d && /* @__PURE__ */ V(a, {
347
358
  type: "button",
348
359
  tone: "neutral",
349
- buttonStyle: "ghost",
360
+ appearance: "ghost",
350
361
  iconOnly: !0,
351
362
  "aria-label": g.downloadAria,
352
- onClick: p,
353
- children: /* @__PURE__ */ z(O, {})
363
+ onClick: d,
364
+ children: /* @__PURE__ */ V(k, {})
354
365
  }),
355
- !!d && /* @__PURE__ */ z(a, {
366
+ !!l && /* @__PURE__ */ V(a, {
356
367
  type: "button",
357
368
  tone: "neutral",
358
- buttonStyle: "ghost",
369
+ appearance: "ghost",
359
370
  iconOnly: !0,
360
371
  "aria-label": g.openAria,
361
- onClick: d,
362
- children: /* @__PURE__ */ z(k, {})
372
+ onClick: l,
373
+ children: /* @__PURE__ */ V(A, {})
363
374
  })
364
375
  ]
365
376
  })
366
377
  ]
367
- }), !u && !!l && /* @__PURE__ */ z("div", {
378
+ }), !c && !!s && /* @__PURE__ */ V("div", {
368
379
  className: Y.artifactBody,
369
- children: l
380
+ children: s
370
381
  })]
371
382
  });
372
383
  }
373
- function Te({ src: e }) {
374
- let t = /* @__PURE__ */ z(ee, {
384
+ function De({ src: e }) {
385
+ let t = /* @__PURE__ */ V(ee, {
375
386
  "aria-hidden": !0,
376
387
  className: Y.sourceGlobe
377
388
  });
378
- return e ? /* @__PURE__ */ z(p, {
389
+ return e ? /* @__PURE__ */ V(g, {
379
390
  src: e,
380
391
  fallback: t,
381
392
  className: Y.sourceImage
382
393
  }) : t;
383
394
  }
384
- function Ee({ sources: e, onSelect: t }) {
385
- return /* @__PURE__ */ z("span", {
395
+ function Oe({ sources: e, onSelect: t }) {
396
+ return /* @__PURE__ */ V("span", {
386
397
  "aria-hidden": !0,
387
398
  className: Y.sourceStack,
388
399
  children: e.map((e, n) => {
389
- let r = /* @__PURE__ */ z("span", {
400
+ let r = /* @__PURE__ */ V("span", {
390
401
  title: typeof e.title == "string" ? e.title : void 0,
391
402
  className: Y.sourceFace,
392
- children: /* @__PURE__ */ z(Te, { src: e.faviconUrl })
403
+ children: /* @__PURE__ */ V(De, { src: e.faviconUrl })
393
404
  });
394
- return t ? /* @__PURE__ */ z("button", {
405
+ return t ? /* @__PURE__ */ V("button", {
395
406
  type: "button",
396
407
  onClick: () => t(e, n),
397
408
  className: Y.sourceFaceButton,
398
409
  children: r
399
- }, e.id) : /* @__PURE__ */ z("span", { children: r }, e.id);
410
+ }, e.id) : /* @__PURE__ */ V("span", { children: r }, e.id);
400
411
  })
401
412
  });
402
413
  }
403
- function De({ source: e, index: t, onSelect: i, visitLabel: a }) {
404
- let o = /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(u, {
414
+ function ke({ source: e, index: t, onSelect: i, visitLabel: a }) {
415
+ let o = /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(l, {
405
416
  value: t,
406
417
  size: "xs",
407
418
  weight: "semibold",
408
419
  type: "secondary",
409
420
  className: Y.sourceIndex
410
- }), /* @__PURE__ */ B("span", {
421
+ }), /* @__PURE__ */ H("span", {
411
422
  className: Y.sourceText,
412
423
  children: [
413
- /* @__PURE__ */ B(n, {
424
+ /* @__PURE__ */ H(r, {
414
425
  tag: "span",
415
426
  weight: "medium",
416
427
  truncate: !0,
417
- children: [e.title, !!e.url && /* @__PURE__ */ z(k, {
428
+ children: [e.title, !!e.url && /* @__PURE__ */ V(A, {
418
429
  "aria-hidden": !0,
419
430
  className: Y.sourceExternal
420
431
  })]
421
432
  }),
422
- !!e.publisher && /* @__PURE__ */ z(n, {
433
+ !!e.publisher && /* @__PURE__ */ V(r, {
423
434
  tag: "span",
424
435
  size: "xs",
425
436
  type: "secondary",
426
437
  truncate: !0,
427
438
  children: e.publisher
428
439
  }),
429
- !!e.snippet && /* @__PURE__ */ z(n, {
440
+ !!e.snippet && /* @__PURE__ */ V(r, {
430
441
  tag: "span",
431
442
  size: "xs",
432
443
  type: "secondary",
@@ -435,49 +446,51 @@ function De({ source: e, index: t, onSelect: i, visitLabel: a }) {
435
446
  })
436
447
  ]
437
448
  })] });
438
- return /* @__PURE__ */ z("li", { children: i ? /* @__PURE__ */ z("button", {
449
+ return /* @__PURE__ */ V("li", { children: i ? /* @__PURE__ */ V("button", {
439
450
  type: "button",
440
451
  onClick: i,
441
452
  className: Y.sourceRow,
442
453
  children: o
443
- }) : e.url ? /* @__PURE__ */ z(r, {
454
+ }) : e.url ? /* @__PURE__ */ V(n, {
444
455
  href: e.url,
445
456
  target: "_blank",
446
457
  rel: "noopener noreferrer",
447
458
  "aria-label": a,
448
459
  className: Y.sourceRow,
449
460
  children: o
450
- }) : /* @__PURE__ */ z("div", {
461
+ }) : /* @__PURE__ */ V("div", {
451
462
  className: Y.sourceRow,
452
463
  children: o
453
464
  }) });
454
465
  }
455
- function Oe({ sources: t, variant: r = "list", maxAvatars: i = 5, expanded: a, defaultExpanded: o = !1, onExpandedChange: s, onSelect: c, className: d, strings: f }) {
456
- let p = {
457
- ...ye,
458
- ...f
459
- }, [m, h] = L(o), g = a ?? m, _ = (e) => {
460
- a === void 0 && h(e), s?.(e);
461
- }, v = p.title.replace(/\{\{\s*count\s*\}\}/g, String(t.length));
462
- if (r === "avatars") {
463
- let r = t.slice(0, i), a = t.length - r.length;
464
- return /* @__PURE__ */ B("div", {
465
- className: e("ai-sources--component", Y.sourceStrip, d),
466
+ function Ae({ sources: e, variant: t = "list", maxAvatars: n = 5, expanded: a, defaultExpanded: o = !1, onExpandedChange: s, onSelect: c, className: u, strings: d }) {
467
+ let f = {
468
+ ...be,
469
+ ...d
470
+ }, [p, m] = z(o), h = a ?? p, g = (e) => {
471
+ a === void 0 && m(e), s?.(e);
472
+ }, _ = f.title.replace(/\{\{\s*count\s*\}\}/g, String(e.length));
473
+ if (t === "avatars") {
474
+ let t = e.slice(0, n), a = e.length - t.length;
475
+ return /* @__PURE__ */ H("div", {
476
+ className: i("ai-sources--component", Y.sourceStrip, u),
466
477
  children: [
467
- /* @__PURE__ */ z(Ee, {
468
- sources: r,
478
+ /* @__PURE__ */ V(Oe, {
479
+ sources: t,
469
480
  onSelect: c
470
481
  }),
471
- /* @__PURE__ */ z(n, {
482
+ /* @__PURE__ */ V(r, {
472
483
  tag: "span",
473
484
  size: "xs",
474
485
  type: "secondary",
475
- children: v
486
+ children: _
476
487
  }),
477
- a > 0 && /* @__PURE__ */ B(l, {
488
+ a > 0 && /* @__PURE__ */ H(r, {
489
+ tag: "span",
478
490
  size: "xs",
479
- className: Y.numeric,
480
- children: ["+", /* @__PURE__ */ z(u, {
491
+ type: "secondary",
492
+ numeric: !0,
493
+ children: ["+", /* @__PURE__ */ V(l, {
481
494
  value: a,
482
495
  size: "xs",
483
496
  type: "secondary"
@@ -486,208 +499,215 @@ function Oe({ sources: t, variant: r = "list", maxAvatars: i = 5, expanded: a, d
486
499
  ]
487
500
  });
488
501
  }
489
- return /* @__PURE__ */ B("div", {
490
- className: e("ai-sources--component", Y.sources, d),
491
- children: [/* @__PURE__ */ B("button", {
502
+ return /* @__PURE__ */ H("div", {
503
+ className: i("ai-sources--component", Y.sources, u),
504
+ children: [/* @__PURE__ */ H("button", {
492
505
  type: "button",
493
- "aria-expanded": g,
494
- "aria-label": g ? p.collapse : p.expand,
495
- onClick: () => _(!g),
506
+ "aria-expanded": h,
507
+ "aria-label": h ? f.collapse : f.expand,
508
+ onClick: () => g(!h),
496
509
  className: Y.disclosureTrigger,
497
510
  children: [
498
- /* @__PURE__ */ z(Ee, { sources: t.slice(0, 4) }),
499
- /* @__PURE__ */ z(n, {
511
+ /* @__PURE__ */ V(Oe, { sources: e.slice(0, 4) }),
512
+ /* @__PURE__ */ V(r, {
500
513
  tag: "span",
501
514
  weight: "medium",
502
515
  className: Y.grow,
503
- children: v
516
+ children: _
504
517
  }),
505
- /* @__PURE__ */ z(w, {
518
+ /* @__PURE__ */ V(T, {
506
519
  "aria-hidden": !0,
507
- "data-expanded": g || void 0,
520
+ "data-expanded": h || void 0,
508
521
  className: Y.disclosureChevron
509
522
  })
510
523
  ]
511
- }), g && /* @__PURE__ */ z("ol", {
524
+ }), h && /* @__PURE__ */ V("ol", {
512
525
  className: Y.sourceList,
513
- children: t.map((e, t) => /* @__PURE__ */ z(De, {
526
+ children: e.map((e, t) => /* @__PURE__ */ V(ke, {
514
527
  source: e,
515
528
  index: t + 1,
516
- visitLabel: p.visit,
529
+ visitLabel: f.visit,
517
530
  onSelect: c ? () => c(e, t) : void 0
518
531
  }, e.id))
519
532
  })]
520
533
  });
521
534
  }
522
- var ke = {
535
+ var je = {
523
536
  image: te,
524
- document: j,
525
- audio: b,
526
- video: le,
527
- code: A,
528
- archive: _,
529
- generic: j
537
+ document: M,
538
+ audio: x,
539
+ video: ce,
540
+ code: j,
541
+ archive: v,
542
+ generic: M
530
543
  };
531
- function Ae({ name: t, meta: r, kind: i = "generic", icon: o, thumbnailUrl: s, progress: c, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
532
- let h = {
533
- ...be,
534
- ...m
535
- }, _ = o ?? ke[i], v = !u && typeof c == "number" && c >= 0 && c < 1, y = Math.round((c ?? 0) * 100), b = /* @__PURE__ */ B(R, { children: [s ? /* @__PURE__ */ z("span", {
544
+ function Me({ name: e, meta: t, kind: n = "generic", icon: o, thumbnailUrl: s, progress: c, errored: l = !1, onOpen: u, onRemove: d, className: f, strings: p }) {
545
+ let m = {
546
+ ...xe,
547
+ ...p
548
+ }, h = o ?? je[n], g = !l && typeof c == "number" && c >= 0 && c < 1, v = Math.round((c ?? 0) * 100), y = /* @__PURE__ */ H(B, { children: [s ? /* @__PURE__ */ V("span", {
536
549
  "aria-hidden": !0,
537
550
  style: { backgroundImage: `url(${s})` },
538
551
  className: Y.attachmentThumb
539
- }) : /* @__PURE__ */ z("span", {
552
+ }) : /* @__PURE__ */ V("span", {
540
553
  "aria-hidden": !0,
541
- "data-errored": u || void 0,
554
+ "data-errored": l || void 0,
542
555
  className: Y.attachmentIcon,
543
- children: z(u ? g : _, {})
544
- }), /* @__PURE__ */ B("span", {
556
+ children: V(l ? _ : h, {})
557
+ }), /* @__PURE__ */ H("span", {
545
558
  className: Y.attachmentText,
546
559
  children: [
547
- /* @__PURE__ */ z(n, {
560
+ /* @__PURE__ */ V(r, {
548
561
  tag: "span",
549
562
  weight: "medium",
550
563
  truncate: !0,
551
- children: t
564
+ children: e
552
565
  }),
553
- !!r && /* @__PURE__ */ z(l, {
566
+ !!t && /* @__PURE__ */ V(r, {
567
+ tag: "span",
554
568
  size: "xs",
569
+ type: "secondary",
570
+ numeric: !0,
555
571
  truncate: !0,
556
- className: Y.numeric,
557
- children: r
572
+ children: t
558
573
  }),
559
- v && /* @__PURE__ */ z("span", {
574
+ g && /* @__PURE__ */ V("span", {
560
575
  role: "progressbar",
561
- "aria-label": h.uploadProgressAria,
576
+ "aria-label": m.uploadProgressAria,
562
577
  "aria-valuemin": 0,
563
578
  "aria-valuemax": 100,
564
- "aria-valuenow": y,
579
+ "aria-valuenow": v,
565
580
  className: Y.attachmentTrack,
566
- children: /* @__PURE__ */ z("span", {
567
- style: { "--ai-progress": `${y}%` },
581
+ children: /* @__PURE__ */ V("span", {
582
+ style: { "--_ai-progress": `${v}%` },
568
583
  className: Y.attachmentBar
569
584
  })
570
585
  })
571
586
  ]
572
587
  })] });
573
- return /* @__PURE__ */ B("div", {
574
- "data-errored": u || void 0,
575
- className: e("ai-attachment--component", Y.attachment, p),
576
- children: [d ? /* @__PURE__ */ z("button", {
588
+ return /* @__PURE__ */ H("div", {
589
+ "data-errored": l || void 0,
590
+ className: i("ai-attachment--component", Y.attachment, f),
591
+ children: [u ? /* @__PURE__ */ V("button", {
577
592
  type: "button",
578
- "aria-label": h.openAria,
579
- onClick: d,
593
+ "aria-label": m.openAria,
594
+ onClick: u,
580
595
  className: Y.attachmentOpen,
581
- children: b
582
- }) : /* @__PURE__ */ z("span", {
596
+ children: y
597
+ }) : /* @__PURE__ */ V("span", {
583
598
  className: Y.attachmentOpen,
584
- children: b
585
- }), !!f && /* @__PURE__ */ z(a, {
599
+ children: y
600
+ }), !!d && /* @__PURE__ */ V(a, {
586
601
  type: "button",
587
602
  tone: "neutral",
588
- buttonStyle: "ghost",
603
+ appearance: "ghost",
589
604
  iconOnly: !0,
590
- "aria-label": h.removeAria,
591
- onClick: f,
605
+ "aria-label": m.removeAria,
606
+ onClick: d,
592
607
  className: Y.dismiss,
593
- children: /* @__PURE__ */ z(N, {})
608
+ children: /* @__PURE__ */ V(F, {})
594
609
  })]
595
610
  });
596
611
  }
597
612
  //#endregion
598
613
  //#region src/components/features/ai-chat/ai-message-surfaces.tsx
599
- var je = 1500;
600
- function X({ children: t = "Thinking…", paused: r = !1, duration: i, className: a }) {
601
- if (r) return /* @__PURE__ */ z(n, {
614
+ var Ne = 1500;
615
+ function X({ children: e = "Thinking…", paused: t = !1, duration: n, size: a, className: o }) {
616
+ if (t) return /* @__PURE__ */ V(r, {
602
617
  tag: "span",
618
+ size: a,
603
619
  type: "secondary",
604
620
  weight: "medium",
605
- className: a,
606
- children: t
621
+ className: o,
622
+ children: e
607
623
  });
608
- let o = i === void 0 ? {} : { "--ai-shimmer-duration": `${i}s` };
609
- return /* @__PURE__ */ z(n, {
624
+ let s = n === void 0 ? {} : { "--_ai-shimmer-duration": `${n}s` };
625
+ return /* @__PURE__ */ V(r, {
610
626
  tag: "span",
627
+ size: a,
611
628
  type: "inherit",
612
629
  weight: "medium",
613
630
  role: "status",
614
631
  "aria-live": "polite",
615
- style: o,
616
- className: e("ai-shimmer--component", Y.shimmer, a),
617
- children: t
632
+ style: s,
633
+ className: i("ai-shimmer--component", Y.shimmer, o),
634
+ children: e
618
635
  });
619
636
  }
620
- var Me = {
621
- assistant: x,
622
- user: ce,
623
- system: x
637
+ var Pe = {
638
+ assistant: S,
639
+ user: se,
640
+ system: S
624
641
  };
625
- function Ne({ role: t = "assistant", avatar: r, avatarLabel: i, authorName: s, timestamp: c, children: u, plainText: d, loading: f = !1, onCopy: p, onRegenerate: m, className: h, strings: g }) {
626
- let _ = {
627
- ...V,
628
- ...g
629
- }, { copied: v, copy: y } = o({
630
- confirmMs: je,
631
- onCopy: p
632
- }), b = Me[t], x = d ?? (typeof u == "string" ? u : ""), S = p !== void 0 || !!x, C = t === "assistant" && (S || !!m);
633
- return /* @__PURE__ */ B("div", {
634
- "data-role": t,
635
- className: e("ai-message-bubble--component", Y.turn, h),
636
- children: [r ?? /* @__PURE__ */ z("span", {
637
- "aria-label": i,
638
- "data-role": t,
642
+ function Fe({ role: e = "assistant", avatar: t, avatarLabel: n, authorName: o, timestamp: s, children: c, plainText: l, loading: u = !1, onCopy: d, onRegenerate: f, className: p, strings: m }) {
643
+ let g = {
644
+ ...U,
645
+ ...m
646
+ }, { copied: _, copy: v } = h({
647
+ confirmMs: Ne,
648
+ onCopy: d
649
+ }), y = Pe[e], b = l ?? (typeof c == "string" ? c : ""), x = d !== void 0 || !!b, S = e === "assistant" && (x || !!f);
650
+ return /* @__PURE__ */ H("div", {
651
+ "data-role": e,
652
+ className: i("ai-message-bubble--component", Y.turn, p),
653
+ children: [t ?? /* @__PURE__ */ V("span", {
654
+ "aria-label": n,
655
+ "data-role": e,
656
+ "data-tone": e === "assistant" ? "primary" : void 0,
639
657
  className: Y.avatar,
640
- children: /* @__PURE__ */ z(b, { "aria-hidden": !0 })
641
- }), /* @__PURE__ */ B("div", {
658
+ children: /* @__PURE__ */ V(y, { "aria-hidden": !0 })
659
+ }), /* @__PURE__ */ H("div", {
642
660
  className: Y.turnBody,
643
661
  children: [
644
- (!!s || !!c) && /* @__PURE__ */ B("div", {
662
+ (!!o || !!s) && /* @__PURE__ */ H("div", {
645
663
  className: Y.turnMeta,
646
- children: [!!s && /* @__PURE__ */ z(n, {
664
+ children: [!!o && /* @__PURE__ */ V(r, {
647
665
  tag: "span",
648
666
  weight: "medium",
649
- children: s
650
- }), !!c && /* @__PURE__ */ z(l, {
667
+ children: o
668
+ }), !!s && /* @__PURE__ */ V(r, {
669
+ tag: "span",
651
670
  size: "xs",
652
- className: Y.numeric,
653
- children: c
671
+ type: "secondary",
672
+ numeric: !0,
673
+ children: s
654
674
  })]
655
675
  }),
656
- /* @__PURE__ */ z("div", {
657
- "data-role": t,
658
- "data-loading": f || void 0,
676
+ /* @__PURE__ */ V("div", {
677
+ "data-role": e,
678
+ "data-loading": u || void 0,
659
679
  className: Y.bubble,
660
- children: typeof u == "string" || typeof u == "number" ? /* @__PURE__ */ z(n, {
680
+ children: typeof c == "string" || typeof c == "number" ? /* @__PURE__ */ V(r, {
661
681
  type: "inherit",
662
682
  lineHeight: "relaxed",
663
- children: u
664
- }) : u
683
+ children: c
684
+ }) : c
665
685
  }),
666
- C && /* @__PURE__ */ B("div", {
686
+ S && /* @__PURE__ */ H("div", {
667
687
  className: Y.turnActions,
668
688
  children: [
669
- S && /* @__PURE__ */ z(a, {
689
+ x && /* @__PURE__ */ V(a, {
670
690
  type: "button",
671
691
  tone: "neutral",
672
- buttonStyle: "ghost",
692
+ appearance: "ghost",
673
693
  iconOnly: !0,
674
- "aria-label": _.copyAria,
675
- onClick: () => void y(x),
676
- children: /* @__PURE__ */ z(D, {})
694
+ "aria-label": g.copyAria,
695
+ onClick: () => void v(b),
696
+ children: /* @__PURE__ */ V(O, {})
677
697
  }),
678
- v && /* @__PURE__ */ z(n, {
698
+ _ && /* @__PURE__ */ V(r, {
679
699
  size: "xs",
680
700
  type: "success",
681
- children: _.copied
701
+ children: g.copied
682
702
  }),
683
- !!m && /* @__PURE__ */ z(a, {
703
+ !!f && /* @__PURE__ */ V(a, {
684
704
  type: "button",
685
705
  tone: "neutral",
686
- buttonStyle: "ghost",
706
+ appearance: "ghost",
687
707
  iconOnly: !0,
688
- "aria-label": _.regenerateAria,
689
- onClick: m,
690
- children: /* @__PURE__ */ z(ie, {})
708
+ "aria-label": g.regenerateAria,
709
+ onClick: f,
710
+ children: /* @__PURE__ */ V(ie, {})
691
711
  })
692
712
  ]
693
713
  })
@@ -695,113 +715,114 @@ function Ne({ role: t = "assistant", avatar: r, avatarLabel: i, authorName: s, t
695
715
  })]
696
716
  });
697
717
  }
698
- function Pe(e, t) {
718
+ function Ie(e, t) {
699
719
  let n = e.split(/\{\{\s*duration\s*\}\}/);
700
- return n.length === 1 ? e : /* @__PURE__ */ B(R, { children: [
720
+ return n.length === 1 ? e : /* @__PURE__ */ H(B, { children: [
701
721
  n[0],
702
- /* @__PURE__ */ z(d, {
722
+ /* @__PURE__ */ V(u, {
703
723
  value: t,
704
724
  maxParts: 1
705
725
  }),
706
726
  n.slice(1).join("{{duration}}")
707
727
  ] });
708
728
  }
709
- function Fe({ children: t, streaming: r = !1, durationSeconds: i, expandWhileStreaming: a = !0, defaultExpanded: o = !1, expanded: s, onExpandedChange: c, className: l, strings: u }) {
729
+ function Le({ children: e, streaming: t = !1, durationSeconds: n, expandWhileStreaming: a = !0, defaultExpanded: o = !1, expanded: s, onExpandedChange: c, className: l, strings: u }) {
710
730
  let d = {
711
- ...H,
731
+ ...fe,
712
732
  ...u
713
- }, [f, p] = L(() => o || r && a), m = s ?? f, h = (e) => {
733
+ }, [f, p] = z(() => o || t && a), m = s ?? f, h = (e) => {
714
734
  s === void 0 && p(e), c?.(e);
715
- }, [g, _] = L(r);
716
- g !== r && (_(r), a && s === void 0 && (r ? p(!0) : o || p(!1)));
717
- let v = r ? /* @__PURE__ */ z(X, {
735
+ }, [g, _] = z(t);
736
+ g !== t && (_(t), a && s === void 0 && (t ? p(!0) : o || p(!1)));
737
+ let v = t ? /* @__PURE__ */ V(X, {
718
738
  className: Y.grow,
719
739
  children: d.thinking
720
- }) : /* @__PURE__ */ z(n, {
740
+ }) : /* @__PURE__ */ V(r, {
721
741
  tag: "span",
722
742
  weight: "medium",
723
743
  className: Y.grow,
724
- children: i === void 0 ? d.thoughtDone : Pe(d.thoughtFor, i)
744
+ children: n === void 0 ? d.thoughtDone : Ie(d.thoughtFor, n)
725
745
  });
726
- return /* @__PURE__ */ B("div", {
727
- className: e("ai-reasoning--component", Y.disclosure, l),
728
- children: [/* @__PURE__ */ B("button", {
746
+ return /* @__PURE__ */ H("div", {
747
+ className: i("ai-reasoning--component", Y.disclosure, l),
748
+ children: [/* @__PURE__ */ H("button", {
729
749
  type: "button",
730
750
  "aria-expanded": m,
731
751
  "aria-label": m ? d.collapseAria : d.expandAria,
732
752
  onClick: () => h(!m),
733
753
  className: Y.disclosureTrigger,
734
754
  children: [
735
- /* @__PURE__ */ z(S, {
755
+ /* @__PURE__ */ V(C, {
736
756
  "aria-hidden": !0,
737
757
  className: Y.disclosureIcon
738
758
  }),
739
759
  v,
740
- /* @__PURE__ */ z(w, {
760
+ /* @__PURE__ */ V(T, {
741
761
  "aria-hidden": !0,
742
762
  "data-expanded": m || void 0,
743
763
  className: Y.disclosureChevron
744
764
  })
745
765
  ]
746
- }), m && /* @__PURE__ */ z("div", {
766
+ }), m && /* @__PURE__ */ V("div", {
747
767
  className: Y.disclosureBody,
748
- children: typeof t == "string" ? /* @__PURE__ */ z(n, {
768
+ children: typeof e == "string" ? /* @__PURE__ */ V(r, {
749
769
  type: "secondary",
750
770
  lineHeight: "relaxed",
751
771
  className: Y.preWrap,
752
- children: t
753
- }) : /* @__PURE__ */ z("div", {
772
+ children: e
773
+ }) : /* @__PURE__ */ V("div", {
754
774
  className: Y.preWrap,
755
- children: t
775
+ children: e
756
776
  })
757
777
  })]
758
778
  });
759
779
  }
760
- var Ie = {
761
- pending: E,
762
- active: M,
763
- completed: C,
764
- failed: g
780
+ var Re = {
781
+ pending: D,
782
+ active: N,
783
+ completed: w,
784
+ failed: _
765
785
  };
766
- function Le({ steps: r, hideHeader: i = !1, streaming: a = !1, className: o, strings: s }) {
786
+ function ze({ steps: t, hideHeader: n = !1, streaming: a = !1, className: o, strings: s }) {
767
787
  let c = {
768
- ...U,
788
+ ...pe,
769
789
  ...s
770
790
  };
771
- return /* @__PURE__ */ B("div", {
772
- className: e("ai-chain-of-thought--component", Y.chain, o),
773
- children: [!i && /* @__PURE__ */ B("div", {
791
+ return /* @__PURE__ */ H("div", {
792
+ className: i("ai-chain-of-thought--component", Y.chain, o),
793
+ children: [!n && /* @__PURE__ */ H("div", {
774
794
  className: Y.chainHeader,
775
- children: [/* @__PURE__ */ z(t, { children: c.title }), a && /* @__PURE__ */ z(X, {
795
+ children: [/* @__PURE__ */ V(e, { children: c.title }), a && /* @__PURE__ */ V(X, {
796
+ size: "xs",
776
797
  className: Y.chainHint,
777
798
  children: c.streamingHint
778
799
  })]
779
- }), /* @__PURE__ */ z("ol", {
800
+ }), /* @__PURE__ */ V("ol", {
780
801
  className: Y.chainSteps,
781
- children: r.map((e) => {
782
- let t = e.status ?? "pending", r = e.icon ?? Ie[t];
783
- return /* @__PURE__ */ B("li", {
802
+ children: t.map((e) => {
803
+ let t = e.status ?? "pending", n = e.icon ?? Re[t];
804
+ return /* @__PURE__ */ H("li", {
784
805
  "data-status": t,
785
806
  className: Y.chainStep,
786
- children: [/* @__PURE__ */ z("span", {
807
+ children: [/* @__PURE__ */ V("span", {
787
808
  "aria-hidden": !0,
788
809
  "data-status": t,
789
810
  className: Y.chainMarker,
790
- children: /* @__PURE__ */ z(r, { "data-spin": t === "active" || void 0 })
791
- }), /* @__PURE__ */ B("div", {
811
+ children: /* @__PURE__ */ V(n, { "data-spin": t === "active" || void 0 })
812
+ }), /* @__PURE__ */ H("div", {
792
813
  className: Y.chainStepBody,
793
814
  children: [
794
- /* @__PURE__ */ z(n, {
815
+ /* @__PURE__ */ V(r, {
795
816
  weight: t === "active" ? "semibold" : "medium",
796
817
  type: t === "pending" ? "secondary" : "main",
797
818
  children: e.title
798
819
  }),
799
- !!e.description && /* @__PURE__ */ z(n, {
820
+ !!e.description && /* @__PURE__ */ V(r, {
800
821
  size: "xs",
801
822
  type: "secondary",
802
823
  children: e.description
803
824
  }),
804
- !!e.body && /* @__PURE__ */ z("div", {
825
+ !!e.body && /* @__PURE__ */ V("div", {
805
826
  className: Y.chainStepExtra,
806
827
  children: e.body
807
828
  })
@@ -814,31 +835,31 @@ function Le({ steps: r, hideHeader: i = !1, streaming: a = !1, className: o, str
814
835
  }
815
836
  //#endregion
816
837
  //#region src/components/features/ai-chat/ai-work-surfaces.tsx
817
- var Re = {
838
+ var Be = {
818
839
  pending: {
819
840
  tone: "neutral",
820
- icon: T
841
+ icon: E
821
842
  },
822
843
  running: {
823
844
  tone: "primary",
824
- icon: M
845
+ icon: N
825
846
  },
826
847
  success: {
827
848
  tone: "success",
828
- icon: C
849
+ icon: w
829
850
  },
830
851
  error: {
831
852
  tone: "destructive",
832
- icon: g
853
+ icon: _
833
854
  }
834
855
  };
835
- function ze({ label: e, ms: t }) {
836
- return /* @__PURE__ */ B("span", {
856
+ function Ve({ label: e, ms: t }) {
857
+ return /* @__PURE__ */ H("span", {
837
858
  className: Y.toolDuration,
838
- children: [/* @__PURE__ */ z(l, {
859
+ children: [/* @__PURE__ */ V(c, {
839
860
  size: "xs",
840
861
  children: e
841
- }), /* @__PURE__ */ z(d, {
862
+ }), /* @__PURE__ */ V(u, {
842
863
  value: t,
843
864
  from: "milliseconds",
844
865
  maxParts: 1,
@@ -848,104 +869,109 @@ function ze({ label: e, ms: t }) {
848
869
  })]
849
870
  });
850
871
  }
851
- function Z({ label: e, tone: n, children: r }) {
852
- return /* @__PURE__ */ B("div", {
872
+ function Z({ label: n, tone: r, children: a }) {
873
+ return /* @__PURE__ */ H("div", {
853
874
  className: Y.toolDetail,
854
- children: [/* @__PURE__ */ z(t, { children: e }), /* @__PURE__ */ z("pre", {
875
+ children: [/* @__PURE__ */ V(e, { children: n }), /* @__PURE__ */ V("pre", {
855
876
  tabIndex: 0,
856
- "data-tone": n,
857
- className: Y.pre,
858
- children: r
877
+ "data-tone": r,
878
+ className: i(Y.pre, t({
879
+ size: "xs",
880
+ lineHeight: "relaxed",
881
+ mono: !0
882
+ })),
883
+ children: a
859
884
  })]
860
885
  });
861
886
  }
862
- function Be({ name: t, status: n, icon: r = ue, args: i, result: a, error: o, durationMs: s, expanded: l, defaultExpanded: u = !1, onExpandedChange: d, className: p, strings: m }) {
887
+ function He({ name: e, status: t, icon: n = le, args: r, result: a, error: o, durationMs: c, expanded: l, defaultExpanded: u = !1, onExpandedChange: f, className: p, strings: m }) {
863
888
  let h = {
864
- ...pe,
889
+ ...me,
865
890
  ...m
866
- }, [g, _] = L(u), v = l ?? g, y = (e) => {
867
- l === void 0 && _(e), d?.(e);
891
+ }, [g, _] = z(u), v = l ?? g, y = (e) => {
892
+ l === void 0 && _(e), f?.(e);
868
893
  }, b = {
869
894
  pending: h.pending,
870
895
  running: h.running,
871
896
  success: h.success,
872
897
  error: h.error
873
- }, x = Re[n].icon, S = r, C = !!(i || a || o), T = /* @__PURE__ */ B(R, { children: [
874
- /* @__PURE__ */ z(S, {
898
+ }, x = Be[t].icon, S = n, C = !!(r || a || o), w = /* @__PURE__ */ H(B, { children: [
899
+ /* @__PURE__ */ V(S, {
875
900
  "aria-hidden": !0,
876
901
  className: Y.disclosureIcon
877
902
  }),
878
- /* @__PURE__ */ z(c, {
903
+ /* @__PURE__ */ V(s, {
904
+ truncate: !0,
879
905
  className: Y.toolName,
880
- children: t
906
+ children: e
881
907
  }),
882
- /* @__PURE__ */ B("span", {
908
+ /* @__PURE__ */ H("span", {
883
909
  className: Y.toolMeta,
884
- children: [/* @__PURE__ */ B(f, {
885
- tone: Re[n].tone,
886
- children: [/* @__PURE__ */ z(x, {
910
+ children: [/* @__PURE__ */ H(d, {
911
+ tone: Be[t].tone,
912
+ children: [/* @__PURE__ */ V(x, {
887
913
  "aria-hidden": !0,
888
- "data-spin": n === "running" || void 0
889
- }), b[n]]
890
- }), !!s && /* @__PURE__ */ z(ze, {
914
+ "data-spin": t === "running" || void 0
915
+ }), b[t]]
916
+ }), !!c && /* @__PURE__ */ V(Ve, {
891
917
  label: h.durationLabel,
892
- ms: s
918
+ ms: c
893
919
  })]
894
920
  }),
895
- C && /* @__PURE__ */ z(w, {
921
+ C && /* @__PURE__ */ V(T, {
896
922
  "aria-hidden": !0,
897
923
  "data-expanded": v || void 0,
898
924
  className: Y.disclosureChevron
899
925
  })
900
926
  ] });
901
- return /* @__PURE__ */ B("div", {
902
- "data-status": n,
903
- className: e("ai-tool-call--component", Y.tool, p),
904
- children: [C ? /* @__PURE__ */ z("button", {
927
+ return /* @__PURE__ */ H("div", {
928
+ "data-status": t,
929
+ className: i("ai-tool-call--component", Y.tool, p),
930
+ children: [C ? /* @__PURE__ */ V("button", {
905
931
  type: "button",
906
932
  "aria-expanded": v,
907
933
  "aria-label": v ? h.collapse : h.expand,
908
934
  onClick: () => y(!v),
909
935
  className: Y.toolHeader,
910
- children: T
911
- }) : /* @__PURE__ */ z("div", {
936
+ children: w
937
+ }) : /* @__PURE__ */ V("div", {
912
938
  className: Y.toolHeader,
913
- children: T
914
- }), v && C && /* @__PURE__ */ B("div", {
939
+ children: w
940
+ }), v && C && /* @__PURE__ */ H("div", {
915
941
  className: Y.toolBody,
916
- children: [!!i && /* @__PURE__ */ z(Z, {
942
+ children: [!!r && /* @__PURE__ */ V(Z, {
917
943
  label: h.args,
918
- children: i
919
- }), n === "error" && o ? /* @__PURE__ */ z(Z, {
944
+ children: r
945
+ }), t === "error" && o ? /* @__PURE__ */ V(Z, {
920
946
  label: h.error,
921
947
  tone: "destructive",
922
948
  children: o
923
- }) : !!a && /* @__PURE__ */ z(Z, {
949
+ }) : !!a && /* @__PURE__ */ V(Z, {
924
950
  label: h.result,
925
951
  children: a
926
952
  })]
927
953
  })]
928
954
  });
929
955
  }
930
- var Ve = {
956
+ var Ue = {
931
957
  queued: {
932
- icon: E,
958
+ icon: D,
933
959
  tone: "neutral"
934
960
  },
935
961
  running: {
936
- icon: M,
962
+ icon: N,
937
963
  tone: "primary"
938
964
  },
939
965
  completed: {
940
- icon: C,
966
+ icon: w,
941
967
  tone: "success"
942
968
  },
943
969
  failed: {
944
- icon: g,
970
+ icon: _,
945
971
  tone: "destructive"
946
972
  },
947
973
  cancelled: {
948
- icon: de,
974
+ icon: ue,
949
975
  tone: "neutral"
950
976
  },
951
977
  skipped: {
@@ -953,78 +979,81 @@ var Ve = {
953
979
  tone: "neutral"
954
980
  }
955
981
  };
956
- function He({ item: e, depth: t, density: r, indent: i, copy: o }) {
957
- let s = e.status ?? "queued", c = e.icon ?? Ve[s].icon, u = !!e.children?.length, [d, p] = L(r === "expanded" || t === 0);
958
- return /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ B("div", {
982
+ function We({ item: e, depth: t, defaultExpanded: n, indent: i, copy: o }) {
983
+ let s = e.status ?? "queued", c = e.icon ?? Ue[s].icon, l = !!e.children?.length, [u, f] = z(n || t === 0);
984
+ return /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ H("div", {
959
985
  "data-nested": t > 0 || void 0,
960
- style: { "--ai-task-depth": t * i },
986
+ style: { "--_ai-task-depth": t * i },
961
987
  className: Y.taskRow,
962
- children: [/* @__PURE__ */ B("div", {
988
+ children: [/* @__PURE__ */ H("div", {
963
989
  className: Y.taskTitleRow,
964
990
  children: [
965
- u ? /* @__PURE__ */ z(a, {
991
+ l ? /* @__PURE__ */ V(a, {
966
992
  type: "button",
967
993
  tone: "neutral",
968
- buttonStyle: "ghost",
994
+ appearance: "ghost",
969
995
  iconOnly: !0,
970
- "aria-expanded": d,
971
- "aria-label": d ? o.collapseSubtasks : o.expandSubtasks,
972
- onClick: () => p((e) => !e),
996
+ "aria-expanded": u,
997
+ "aria-label": u ? o.collapseSubtasks : o.expandSubtasks,
998
+ onClick: () => f((e) => !e),
973
999
  className: Y.taskToggle,
974
- children: /* @__PURE__ */ z(w, { "data-expanded": d || void 0 })
975
- }) : /* @__PURE__ */ z("span", {
1000
+ children: /* @__PURE__ */ V(T, { "data-expanded": u || void 0 })
1001
+ }) : /* @__PURE__ */ V("span", {
976
1002
  "aria-hidden": !0,
977
1003
  className: Y.taskToggleSpacer
978
1004
  }),
979
- /* @__PURE__ */ z(c, {
1005
+ /* @__PURE__ */ V(c, {
980
1006
  "aria-hidden": !0,
981
1007
  "data-status": s,
982
1008
  "data-spin": s === "running" || void 0,
983
1009
  className: Y.taskIcon
984
1010
  }),
985
- /* @__PURE__ */ z(n, {
1011
+ /* @__PURE__ */ V(r, {
986
1012
  weight: s === "running" ? "semibold" : "medium",
987
1013
  type: s === "queued" || s === "cancelled" ? "secondary" : "main",
1014
+ truncate: !0,
988
1015
  "data-status": s,
989
1016
  className: Y.taskTitle,
990
1017
  children: e.title
991
1018
  }),
992
- /* @__PURE__ */ z(f, {
993
- tone: Ve[s].tone,
1019
+ /* @__PURE__ */ V(d, {
1020
+ tone: Ue[s].tone,
994
1021
  children: o.statusLabels[s]
995
1022
  }),
996
- !!e.rightSlot && /* @__PURE__ */ z(l, {
1023
+ !!e.rightSlot && /* @__PURE__ */ V(r, {
1024
+ tag: "span",
997
1025
  size: "xs",
998
- className: Y.numeric,
1026
+ type: "secondary",
1027
+ numeric: !0,
999
1028
  children: e.rightSlot
1000
1029
  })
1001
1030
  ]
1002
- }), !!e.body && /* @__PURE__ */ z("div", {
1031
+ }), !!e.body && /* @__PURE__ */ V("div", {
1003
1032
  className: Y.taskExtra,
1004
1033
  children: e.body
1005
1034
  })]
1006
- }), u && d && e.children?.map((e) => /* @__PURE__ */ z(He, {
1035
+ }), l && u && e.children?.map((e) => /* @__PURE__ */ V(We, {
1007
1036
  item: e,
1008
1037
  depth: t + 1,
1009
- density: r,
1038
+ defaultExpanded: n,
1010
1039
  indent: i,
1011
1040
  copy: o
1012
1041
  }, e.id))] });
1013
1042
  }
1014
- function Ue({ task: t, density: n = "compact", indent: r = 1.125, className: i, strings: a }) {
1015
- let o = m(me, a);
1016
- return /* @__PURE__ */ z("div", {
1017
- className: e("ai-task--component", Y.task, i),
1018
- children: /* @__PURE__ */ z(He, {
1019
- item: t,
1043
+ function Ge({ task: e, defaultExpanded: t = !1, indent: n = 1.125, className: r, strings: a }) {
1044
+ let s = o(he, a);
1045
+ return /* @__PURE__ */ V("div", {
1046
+ className: i("ai-task--component", Y.task, r),
1047
+ children: /* @__PURE__ */ V(We, {
1048
+ item: e,
1020
1049
  depth: 0,
1021
- density: n,
1022
- indent: r,
1023
- copy: o
1050
+ defaultExpanded: t,
1051
+ indent: n,
1052
+ copy: s
1024
1053
  })
1025
1054
  });
1026
1055
  }
1027
- var We = {
1056
+ var Ke = {
1028
1057
  idle: "neutral",
1029
1058
  thinking: "primary",
1030
1059
  working: "primary",
@@ -1032,35 +1061,35 @@ var We = {
1032
1061
  error: "destructive",
1033
1062
  offline: "neutral"
1034
1063
  };
1035
- function Ge({ name: t, icon: r, avatar: i, subtitle: a, tone: o = "primary", status: s, variant: c = "inline", trailing: l, className: u, strings: d }) {
1036
- let p = m(he, d), h = r ?? x, g = i ?? /* @__PURE__ */ z("span", {
1064
+ function qe({ name: e, icon: t, avatar: n, subtitle: a, tone: s = "primary", status: c, variant: l = "inline", trailing: u, className: f, strings: p }) {
1065
+ let m = o(ge, p), h = t ?? S, g = n ?? /* @__PURE__ */ V("span", {
1037
1066
  "aria-hidden": !0,
1038
- "data-tone": o,
1039
- "data-variant": c,
1067
+ "data-tone": s,
1068
+ "data-variant": l,
1040
1069
  className: Y.avatar,
1041
- children: /* @__PURE__ */ z(h, {})
1042
- }), _ = !!s && /* @__PURE__ */ z(f, {
1043
- tone: We[s],
1070
+ children: /* @__PURE__ */ V(h, {})
1071
+ }), _ = !!c && /* @__PURE__ */ V(d, {
1072
+ tone: Ke[c],
1044
1073
  dot: !0,
1045
- pulse: s === "thinking" || s === "working",
1046
- children: p.statusLabels[s]
1074
+ pulse: c === "thinking" || c === "working",
1075
+ children: m.statusLabels[c]
1047
1076
  });
1048
- return /* @__PURE__ */ B("div", {
1049
- "data-variant": c,
1050
- className: e("ai-agent--component", Y.agent, u),
1077
+ return /* @__PURE__ */ H("div", {
1078
+ "data-variant": l,
1079
+ className: i("ai-agent--component", Y.agent, f),
1051
1080
  children: [
1052
1081
  g,
1053
- /* @__PURE__ */ B("div", {
1082
+ /* @__PURE__ */ H("div", {
1054
1083
  className: Y.agentText,
1055
- children: [/* @__PURE__ */ B("div", {
1084
+ children: [/* @__PURE__ */ H("div", {
1056
1085
  className: Y.agentNameRow,
1057
- children: [/* @__PURE__ */ z(n, {
1086
+ children: [/* @__PURE__ */ V(r, {
1058
1087
  tag: "span",
1059
- weight: c === "card" ? "semibold" : "medium",
1088
+ weight: l === "card" ? "semibold" : "medium",
1060
1089
  truncate: !0,
1061
- children: t
1062
- }), c === "card" && _]
1063
- }), !!a && /* @__PURE__ */ z(n, {
1090
+ children: e
1091
+ }), l === "card" && _]
1092
+ }), !!a && /* @__PURE__ */ V(r, {
1064
1093
  tag: "span",
1065
1094
  size: "xs",
1066
1095
  type: "secondary",
@@ -1068,96 +1097,96 @@ function Ge({ name: t, icon: r, avatar: i, subtitle: a, tone: o = "primary", sta
1068
1097
  children: a
1069
1098
  })]
1070
1099
  }),
1071
- c === "inline" && _,
1072
- !!l && /* @__PURE__ */ z("div", {
1100
+ l === "inline" && _,
1101
+ !!u && /* @__PURE__ */ V("div", {
1073
1102
  className: Y.agentTrailing,
1074
- children: l
1103
+ children: u
1075
1104
  })
1076
1105
  ]
1077
1106
  });
1078
1107
  }
1079
- function Q({ title: t, description: r, icon: i = ae, tone: o = "neutral", status: c = "pending", onApprove: l, onReject: u, approveLabel: d, rejectLabel: f, details: p, className: m, strings: h }) {
1108
+ function Je({ title: e, description: t, icon: n = ae, tone: o = "neutral", status: s = "pending", onApprove: c, onReject: l, approveLabel: u, rejectLabel: d, details: f, className: m, strings: h }) {
1080
1109
  let g = {
1081
- ...ge,
1110
+ ..._e,
1082
1111
  ...h
1083
1112
  };
1084
- return /* @__PURE__ */ B("div", {
1113
+ return /* @__PURE__ */ H("div", {
1085
1114
  role: "region",
1086
1115
  "aria-live": "polite",
1087
1116
  "data-tone": o,
1088
- className: e("ai-confirmation--component", Y.confirmation, m),
1089
- children: [/* @__PURE__ */ B("div", {
1117
+ className: i("ai-confirmation--component", Y.confirmation, m),
1118
+ children: [/* @__PURE__ */ H("div", {
1090
1119
  className: Y.confirmationHeader,
1091
- children: [/* @__PURE__ */ z(s, {
1092
- icon: i,
1120
+ children: [/* @__PURE__ */ V(p, {
1121
+ icon: n,
1093
1122
  tone: o,
1094
1123
  shape: "rounded"
1095
- }), /* @__PURE__ */ B("div", {
1124
+ }), /* @__PURE__ */ H("div", {
1096
1125
  className: Y.confirmationText,
1097
1126
  children: [
1098
- /* @__PURE__ */ z(n, {
1127
+ /* @__PURE__ */ V(r, {
1099
1128
  weight: "medium",
1100
- children: t
1129
+ children: e
1101
1130
  }),
1102
- !!r && /* @__PURE__ */ z(n, {
1131
+ !!t && /* @__PURE__ */ V(r, {
1103
1132
  type: "secondary",
1104
- children: r
1133
+ children: t
1105
1134
  }),
1106
- !!p && /* @__PURE__ */ z("div", {
1135
+ !!f && /* @__PURE__ */ V("div", {
1107
1136
  role: "group",
1108
1137
  "aria-label": g.detailsLabel,
1109
1138
  className: Y.confirmationDetails,
1110
- children: p
1139
+ children: f
1111
1140
  })
1112
1141
  ]
1113
1142
  })]
1114
- }), /* @__PURE__ */ z("div", {
1143
+ }), /* @__PURE__ */ V("div", {
1115
1144
  className: Y.confirmationFooter,
1116
- children: c === "pending" ? /* @__PURE__ */ B(R, { children: [/* @__PURE__ */ z(n, {
1145
+ children: s === "pending" ? /* @__PURE__ */ H(B, { children: [/* @__PURE__ */ V(r, {
1117
1146
  size: "xs",
1118
1147
  type: "secondary",
1119
1148
  children: g.pending
1120
- }), /* @__PURE__ */ B("div", {
1149
+ }), /* @__PURE__ */ H("div", {
1121
1150
  className: Y.confirmationActions,
1122
- children: [/* @__PURE__ */ B(a, {
1151
+ children: [/* @__PURE__ */ H(a, {
1123
1152
  type: "button",
1124
1153
  tone: "neutral",
1125
- buttonStyle: "ghost",
1126
- onClick: u,
1127
- children: [/* @__PURE__ */ z(N, {}), f ?? g.reject]
1128
- }), /* @__PURE__ */ B(a, {
1154
+ appearance: "ghost",
1155
+ onClick: l,
1156
+ children: [/* @__PURE__ */ V(F, {}), d ?? g.reject]
1157
+ }), /* @__PURE__ */ H(a, {
1129
1158
  type: "button",
1130
1159
  tone: o === "destructive" ? "destructive" : "primary",
1131
- onClick: l,
1132
- children: [/* @__PURE__ */ z(C, {}), d ?? g.approve]
1160
+ onClick: c,
1161
+ children: [/* @__PURE__ */ V(w, {}), u ?? g.approve]
1133
1162
  })]
1134
- })] }) : c === "approved" ? /* @__PURE__ */ B(n, {
1163
+ })] }) : s === "approved" ? /* @__PURE__ */ H(r, {
1135
1164
  size: "xs",
1136
1165
  type: "success",
1137
1166
  weight: "medium",
1138
1167
  className: Y.outcome,
1139
- children: [/* @__PURE__ */ z(C, { "aria-hidden": !0 }), g.approved]
1140
- }) : /* @__PURE__ */ B(n, {
1168
+ children: [/* @__PURE__ */ V(w, { "aria-hidden": !0 }), g.approved]
1169
+ }) : /* @__PURE__ */ H(r, {
1141
1170
  size: "xs",
1142
1171
  type: "secondary",
1143
1172
  weight: "medium",
1144
1173
  className: Y.outcome,
1145
- children: [/* @__PURE__ */ z(N, { "aria-hidden": !0 }), g.rejected]
1174
+ children: [/* @__PURE__ */ V(F, { "aria-hidden": !0 }), g.rejected]
1146
1175
  })
1147
1176
  })]
1148
1177
  });
1149
1178
  }
1150
1179
  //#endregion
1151
1180
  //#region src/components/features/ai-chat/use-ai-chat-scroll.ts
1152
- function Ke({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
1153
- let r = I(null), i = I(null), [a, o] = L(!0), s = P((e = "smooth") => {
1181
+ function Ye({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}) {
1182
+ let r = R(null), i = R(null), [a, o] = z(!0), s = I((e = "smooth") => {
1154
1183
  let t = r.current;
1155
1184
  t && t.scrollTo({
1156
1185
  top: t.scrollHeight,
1157
1186
  behavior: e
1158
1187
  });
1159
1188
  }, []);
1160
- F(() => {
1189
+ L(() => {
1161
1190
  let t = r.current;
1162
1191
  if (!t) return;
1163
1192
  let n = () => {
@@ -1166,10 +1195,10 @@ function Ke({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}
1166
1195
  };
1167
1196
  return n(), t.addEventListener("scroll", n, { passive: !0 }), () => t.removeEventListener("scroll", n);
1168
1197
  }, [e]);
1169
- let c = I(a);
1170
- return F(() => {
1198
+ let c = R(a);
1199
+ return L(() => {
1171
1200
  c.current = a;
1172
- }, [a]), F(() => {
1201
+ }, [a]), L(() => {
1173
1202
  if (n || !c.current) return;
1174
1203
  let e = requestAnimationFrame(() => s("auto"));
1175
1204
  return () => cancelAnimationFrame(e);
@@ -1186,10 +1215,10 @@ function Ke({ threshold: e = 80, dependency: t, disableAutoScroll: n = !1 } = {}
1186
1215
  }
1187
1216
  //#endregion
1188
1217
  //#region src/components/features/ai-chat/ai-chat-parts.tsx
1189
- function $({ attachments: t, onRemove: n, onOpen: r, className: i }) {
1190
- return t.length === 0 ? null : /* @__PURE__ */ z("div", {
1191
- className: e("ai-chat-attachments-strip--component", Y.strip, i),
1192
- children: t.map((e) => /* @__PURE__ */ z(Ae, {
1218
+ function Q({ attachments: e, onRemove: t, onOpen: n, className: r }) {
1219
+ return e.length === 0 ? null : /* @__PURE__ */ V("div", {
1220
+ className: i("ai-chat-attachments-strip--component", Y.strip, r),
1221
+ children: e.map((e) => /* @__PURE__ */ V(Me, {
1193
1222
  name: e.name,
1194
1223
  meta: e.meta,
1195
1224
  kind: e.kind,
@@ -1197,30 +1226,30 @@ function $({ attachments: t, onRemove: n, onOpen: r, className: i }) {
1197
1226
  thumbnailUrl: e.thumbnailUrl,
1198
1227
  progress: e.progress,
1199
1228
  errored: e.errored,
1200
- onOpen: r ? () => r(e) : void 0,
1201
- onRemove: n ? () => n(e.id) : void 0
1229
+ onOpen: n ? () => n(e) : void 0,
1230
+ onRemove: t ? () => t(e.id) : void 0
1202
1231
  }, e.id))
1203
1232
  });
1204
1233
  }
1205
- function qe(e) {
1206
- return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(qe).join("") : "";
1234
+ function Xe(e) {
1235
+ return typeof e == "string" || typeof e == "number" ? String(e) : Array.isArray(e) ? e.map(Xe).join("") : "";
1207
1236
  }
1208
- function Je({ part: e, onAttachmentOpen: t }) {
1237
+ function Ze({ part: e, onAttachmentOpen: t }) {
1209
1238
  switch (e.type) {
1210
- case "text": return /* @__PURE__ */ z(n, {
1239
+ case "text": return /* @__PURE__ */ V(r, {
1211
1240
  lineHeight: "relaxed",
1212
1241
  children: e.content
1213
1242
  });
1214
- case "reasoning": return /* @__PURE__ */ z(Fe, {
1243
+ case "reasoning": return /* @__PURE__ */ V(Le, {
1215
1244
  streaming: e.streaming,
1216
1245
  durationSeconds: e.durationSeconds,
1217
1246
  children: e.content
1218
1247
  });
1219
- case "chain-of-thought": return /* @__PURE__ */ z(Le, {
1248
+ case "chain-of-thought": return /* @__PURE__ */ V(ze, {
1220
1249
  steps: e.steps,
1221
1250
  streaming: e.streaming
1222
1251
  });
1223
- case "tool": return /* @__PURE__ */ z(Be, {
1252
+ case "tool": return /* @__PURE__ */ V(He, {
1224
1253
  name: e.name,
1225
1254
  status: e.status,
1226
1255
  icon: e.icon,
@@ -1230,24 +1259,24 @@ function Je({ part: e, onAttachmentOpen: t }) {
1230
1259
  durationMs: e.durationMs,
1231
1260
  defaultExpanded: e.defaultExpanded
1232
1261
  });
1233
- case "code": return /* @__PURE__ */ z(Ce, {
1262
+ case "code": return /* @__PURE__ */ V(Te, {
1234
1263
  code: e.code,
1235
1264
  language: e.language,
1236
1265
  filename: e.filename,
1237
1266
  showLineNumbers: e.showLineNumbers,
1238
1267
  highlightLines: e.highlightLines
1239
1268
  });
1240
- case "attachments": return /* @__PURE__ */ z($, {
1269
+ case "attachments": return /* @__PURE__ */ V(Q, {
1241
1270
  attachments: e.items,
1242
1271
  onOpen: t ? (e) => t(e.id) : void 0
1243
1272
  });
1244
- case "sources": return /* @__PURE__ */ z(Oe, {
1273
+ case "sources": return /* @__PURE__ */ V(Ae, {
1245
1274
  sources: e.items,
1246
1275
  variant: e.variant,
1247
1276
  defaultExpanded: e.defaultExpanded
1248
1277
  });
1249
- case "task": return /* @__PURE__ */ z(Ue, { task: e.task });
1250
- case "artifact": return /* @__PURE__ */ z(we, {
1278
+ case "task": return /* @__PURE__ */ V(Ge, { task: e.task });
1279
+ case "artifact": return /* @__PURE__ */ V(Ee, {
1251
1280
  title: e.title,
1252
1281
  subtitle: e.subtitle,
1253
1282
  icon: e.icon,
@@ -1257,7 +1286,7 @@ function Je({ part: e, onAttachmentOpen: t }) {
1257
1286
  onDownload: e.onDownload,
1258
1287
  children: e.body
1259
1288
  });
1260
- case "confirmation": return /* @__PURE__ */ z(Q, {
1289
+ case "confirmation": return /* @__PURE__ */ V(Je, {
1261
1290
  title: e.title,
1262
1291
  description: e.description,
1263
1292
  tone: e.tone,
@@ -1266,134 +1295,133 @@ function Je({ part: e, onAttachmentOpen: t }) {
1266
1295
  onApprove: e.onApprove,
1267
1296
  onReject: e.onReject
1268
1297
  });
1269
- case "custom": return /* @__PURE__ */ z(R, { children: e.render() });
1298
+ case "custom": return /* @__PURE__ */ V(B, { children: e.render() });
1270
1299
  }
1271
1300
  }
1272
- function Ye({ message: t, onCopy: n, onRegenerate: r, onAttachmentOpen: i, className: a, strings: o }) {
1301
+ function $({ message: e, onCopy: t, onRegenerate: n, onAttachmentOpen: r, className: a, strings: o }) {
1273
1302
  let s = {
1274
1303
  ...J,
1275
1304
  ...o
1276
- }, c = t.parts.findIndex((e) => e.type === "text"), l = c;
1277
- for (; l >= 0 && t.parts[l + 1]?.type === "text";) l += 1;
1278
- let u = c < 0 ? [] : t.parts.slice(0, c), d = c < 0 ? [] : t.parts.slice(c, l + 1), f = c < 0 ? [...t.parts] : t.parts.slice(l + 1), p = d.map((e) => e.type === "text" ? e.plain ?? qe(e.content) : "").filter(Boolean).join("\n") || void 0, m = t.pending ? /* @__PURE__ */ z(X, { children: s.pending }) : d.length === 0 ? null : /* @__PURE__ */ z("div", {
1305
+ }, c = e.parts.findIndex((e) => e.type === "text"), l = c;
1306
+ for (; l >= 0 && e.parts[l + 1]?.type === "text";) l += 1;
1307
+ let u = c < 0 ? [] : e.parts.slice(0, c), d = c < 0 ? [] : e.parts.slice(c, l + 1), f = c < 0 ? [...e.parts] : e.parts.slice(l + 1), p = d.map((e) => e.type === "text" ? e.plain ?? Xe(e.content) : "").filter(Boolean).join("\n") || void 0, m = e.pending ? /* @__PURE__ */ V(X, { children: s.pending }) : d.length === 0 ? null : /* @__PURE__ */ V("div", {
1279
1308
  className: Y.bubbleParts,
1280
- children: d.map((e, t) => /* @__PURE__ */ z("div", {
1309
+ children: d.map((e, t) => /* @__PURE__ */ V("div", {
1281
1310
  className: Y.preWrap,
1282
1311
  children: e.type === "text" ? e.content : null
1283
1312
  }, t))
1284
1313
  });
1285
- return /* @__PURE__ */ B("div", {
1286
- "data-role": t.role,
1287
- className: e("ai-chat-message--component", Y.message, a),
1314
+ return /* @__PURE__ */ H("div", {
1315
+ "data-role": e.role,
1316
+ className: i("ai-chat-message--component", Y.message, a),
1288
1317
  children: [
1289
- u.length > 0 && /* @__PURE__ */ z("div", {
1318
+ u.length > 0 && /* @__PURE__ */ V("div", {
1290
1319
  className: Y.messageBelow,
1291
- children: u.map((e, t) => /* @__PURE__ */ z(Je, {
1320
+ children: u.map((e, t) => /* @__PURE__ */ V(Ze, {
1292
1321
  part: e,
1293
- onAttachmentOpen: i
1322
+ onAttachmentOpen: r
1294
1323
  }, t))
1295
1324
  }),
1296
- (m !== null || t.pending) && /* @__PURE__ */ z(Ne, {
1297
- role: t.role,
1298
- avatar: t.avatar,
1299
- authorName: t.authorName,
1300
- timestamp: t.timestamp,
1325
+ (m !== null || e.pending) && /* @__PURE__ */ V(Fe, {
1326
+ role: e.role,
1327
+ avatar: e.avatar,
1328
+ authorName: e.authorName,
1329
+ timestamp: e.timestamp,
1301
1330
  plainText: p,
1302
- loading: t.loading,
1303
- onCopy: p ? n ?? (() => void 0) : void 0,
1304
- onRegenerate: t.pending ? void 0 : r,
1331
+ loading: e.loading,
1332
+ onCopy: p ? t ?? (() => void 0) : void 0,
1333
+ onRegenerate: e.pending ? void 0 : n,
1305
1334
  children: m
1306
1335
  }),
1307
- f.length > 0 && /* @__PURE__ */ z("div", {
1336
+ f.length > 0 && /* @__PURE__ */ V("div", {
1308
1337
  className: Y.messageBelow,
1309
- children: f.map((e, t) => /* @__PURE__ */ z(Je, {
1338
+ children: f.map((e, t) => /* @__PURE__ */ V(Ze, {
1310
1339
  part: e,
1311
- onAttachmentOpen: i
1340
+ onAttachmentOpen: r
1312
1341
  }, t))
1313
1342
  }),
1314
- !!t.trailing && /* @__PURE__ */ z("div", {
1343
+ !!e.trailing && /* @__PURE__ */ V("div", {
1315
1344
  className: Y.messageBelow,
1316
- children: t.trailing
1345
+ children: e.trailing
1317
1346
  })
1318
1347
  ]
1319
1348
  });
1320
1349
  }
1321
- function Xe({ messages: t, renderMessage: r, intro: i, footer: o, empty: s, disableAutoScroll: c, className: l, strings: u }) {
1350
+ function Qe({ messages: e, renderMessage: t, intro: n, footer: o, empty: s, disableAutoScroll: c, className: l, strings: u }) {
1322
1351
  let d = {
1323
1352
  ...G,
1324
1353
  ...u
1325
- }, { containerRef: f, endRef: p, isAtBottom: m, scrollToBottom: h } = Ke({
1326
- dependency: t.length,
1354
+ }, { containerRef: f, endRef: p, isAtBottom: m, scrollToBottom: h } = Ye({
1355
+ dependency: e.length,
1327
1356
  disableAutoScroll: c
1328
- }), g = t.length === 0 && !i;
1329
- return /* @__PURE__ */ B("div", {
1330
- className: e("ai-chat-conversation--component", Y.conversation, l),
1331
- children: [/* @__PURE__ */ B("div", {
1357
+ }), g = e.length === 0 && !n;
1358
+ return /* @__PURE__ */ H("div", {
1359
+ className: i("ai-chat-conversation--component", Y.conversation, l),
1360
+ children: [/* @__PURE__ */ H("div", {
1332
1361
  ref: f,
1333
1362
  tabIndex: 0,
1334
1363
  "aria-label": d.transcriptAria,
1335
1364
  className: Y.transcript,
1336
1365
  children: [
1337
- !!i && /* @__PURE__ */ z("div", {
1366
+ !!n && /* @__PURE__ */ V("div", {
1338
1367
  className: Y.transcriptIntro,
1339
- children: i
1368
+ children: n
1340
1369
  }),
1341
- g ? s ?? /* @__PURE__ */ z(n, {
1370
+ g ? s ?? /* @__PURE__ */ V(r, {
1342
1371
  type: "secondary",
1343
1372
  children: d.empty
1344
- }) : /* @__PURE__ */ z("ol", {
1373
+ }) : /* @__PURE__ */ V("ol", {
1345
1374
  className: Y.messages,
1346
- children: t.map((e, n) => /* @__PURE__ */ z("li", { children: r(e, {
1347
- index: n,
1348
- isLast: n === t.length - 1
1349
- }) }, e.id))
1375
+ children: e.map((n, r) => /* @__PURE__ */ V("li", { children: t(n, {
1376
+ index: r,
1377
+ isLast: r === e.length - 1
1378
+ }) }, n.id))
1350
1379
  }),
1351
- !!o && /* @__PURE__ */ z("div", {
1380
+ !!o && /* @__PURE__ */ V("div", {
1352
1381
  className: Y.transcriptFooter,
1353
1382
  children: o
1354
1383
  }),
1355
- /* @__PURE__ */ z("div", {
1384
+ /* @__PURE__ */ V("div", {
1356
1385
  ref: p,
1357
1386
  "aria-hidden": !0,
1358
1387
  className: Y.sentinel
1359
1388
  })
1360
1389
  ]
1361
- }), !m && /* @__PURE__ */ z("div", {
1390
+ }), !m && /* @__PURE__ */ V("div", {
1362
1391
  className: Y.jump,
1363
- children: /* @__PURE__ */ B(a, {
1392
+ children: /* @__PURE__ */ H(a, {
1364
1393
  type: "button",
1365
1394
  tone: "neutral",
1366
- buttonStyle: "outline",
1395
+ appearance: "outline",
1367
1396
  "aria-label": d.scrollToBottomAria,
1368
1397
  onClick: () => h("smooth"),
1369
- children: [/* @__PURE__ */ z(v, {}), d.scrollToBottom]
1398
+ children: [/* @__PURE__ */ V(y, {}), d.scrollToBottom]
1370
1399
  })
1371
1400
  })]
1372
1401
  });
1373
1402
  }
1374
- function Ze({ title: t, description: n, icon: r = /* @__PURE__ */ z(oe, {}), below: a, className: o }) {
1375
- return /* @__PURE__ */ B("div", {
1376
- className: e("ai-chat-empty-state--component", Y.emptyState, o),
1377
- children: [/* @__PURE__ */ z(i, {
1378
- media: r,
1403
+ function $e({ title: e, description: t, icon: n = /* @__PURE__ */ V(P, {}), below: r, className: a }) {
1404
+ return /* @__PURE__ */ H("div", {
1405
+ className: i("ai-chat-empty-state--component", Y.emptyState, a),
1406
+ children: [/* @__PURE__ */ V(f, {
1407
+ media: n,
1379
1408
  mediaVariant: "icon-soft",
1380
- title: t,
1381
- description: n ?? !1,
1382
- padding: "md"
1383
- }), !!a && /* @__PURE__ */ z("div", {
1409
+ title: e,
1410
+ description: t ?? !1
1411
+ }), !!r && /* @__PURE__ */ V("div", {
1384
1412
  className: Y.emptyBelow,
1385
- children: a
1413
+ children: r
1386
1414
  })]
1387
1415
  });
1388
1416
  }
1389
- function Qe({ items: t, hideHeader: r = !1, onCancel: i, className: o, strings: s }) {
1417
+ function et({ items: e, hideHeader: t = !1, onCancel: n, className: o, strings: s }) {
1390
1418
  let c = {
1391
1419
  ...K,
1392
1420
  ...s
1393
1421
  };
1394
- return t.length === 0 ? null : /* @__PURE__ */ B("div", {
1395
- className: e("ai-chat-queue--component", Y.queue, o),
1396
- children: [!r && /* @__PURE__ */ B(n, {
1422
+ return e.length === 0 ? null : /* @__PURE__ */ H("div", {
1423
+ className: i("ai-chat-queue--component", Y.queue, o),
1424
+ children: [!t && /* @__PURE__ */ H(r, {
1397
1425
  tag: "div",
1398
1426
  size: "xs",
1399
1427
  type: "secondary",
@@ -1401,38 +1429,38 @@ function Qe({ items: t, hideHeader: r = !1, onCancel: i, className: o, strings:
1401
1429
  children: [
1402
1430
  c.header,
1403
1431
  " · ",
1404
- t.length
1432
+ e.length
1405
1433
  ]
1406
- }), /* @__PURE__ */ z("ul", {
1434
+ }), /* @__PURE__ */ V("ul", {
1407
1435
  className: Y.queueList,
1408
- children: t.map((e) => {
1436
+ children: e.map((e) => {
1409
1437
  let t = (e.status ?? "queued") === "running";
1410
- return /* @__PURE__ */ B("li", {
1438
+ return /* @__PURE__ */ H("li", {
1411
1439
  className: Y.queueRow,
1412
1440
  children: [
1413
- /* @__PURE__ */ z(n, {
1441
+ /* @__PURE__ */ V(r, {
1414
1442
  truncate: !0,
1415
1443
  className: Y.grow,
1416
1444
  children: e.label
1417
1445
  }),
1418
- /* @__PURE__ */ z(f, {
1446
+ /* @__PURE__ */ V(d, {
1419
1447
  tone: t ? "primary" : "neutral",
1420
1448
  dot: !0,
1421
1449
  pulse: t,
1422
1450
  pending: !t,
1423
1451
  children: t ? c.runningLabel : c.queuedLabel
1424
1452
  }),
1425
- (!!e.onCancel || !!i) && /* @__PURE__ */ z(a, {
1453
+ (!!e.onCancel || !!n) && /* @__PURE__ */ V(a, {
1426
1454
  type: "button",
1427
1455
  tone: "neutral",
1428
- buttonStyle: "ghost",
1456
+ appearance: "ghost",
1429
1457
  iconOnly: !0,
1430
1458
  "aria-label": c.cancelAria,
1431
1459
  onClick: () => {
1432
- e.onCancel?.(), i?.(e.id);
1460
+ e.onCancel?.(), n?.(e.id);
1433
1461
  },
1434
1462
  className: Y.dismiss,
1435
- children: /* @__PURE__ */ z(N, {})
1463
+ children: /* @__PURE__ */ V(F, {})
1436
1464
  })
1437
1465
  ]
1438
1466
  }, e.id);
@@ -1440,25 +1468,25 @@ function Qe({ items: t, hideHeader: r = !1, onCancel: i, className: o, strings:
1440
1468
  })]
1441
1469
  });
1442
1470
  }
1443
- function $e({ suggestions: r, onPick: i, hideHeader: a = !1, className: o, strings: s }) {
1471
+ function tt({ suggestions: t, onPick: n, hideHeader: a = !1, className: o, strings: s }) {
1444
1472
  let c = {
1445
1473
  ...q,
1446
1474
  ...s
1447
1475
  };
1448
- return r.length === 0 ? null : /* @__PURE__ */ B("div", {
1449
- className: e("ai-chat-suggestions-row--component", Y.suggestions, o),
1450
- children: [!a && /* @__PURE__ */ B("span", {
1476
+ return t.length === 0 ? null : /* @__PURE__ */ H("div", {
1477
+ className: i("ai-chat-suggestions-row--component", Y.suggestions, o),
1478
+ children: [!a && /* @__PURE__ */ H("span", {
1451
1479
  className: Y.suggestionsHeader,
1452
- children: [/* @__PURE__ */ z(oe, { "aria-hidden": !0 }), /* @__PURE__ */ z(t, { children: c.header })]
1453
- }), /* @__PURE__ */ z("div", {
1480
+ children: [/* @__PURE__ */ V(P, { "aria-hidden": !0 }), /* @__PURE__ */ V(e, { children: c.header })]
1481
+ }), /* @__PURE__ */ V("div", {
1454
1482
  className: Y.suggestionsScroll,
1455
- children: r.map((e) => {
1483
+ children: t.map((e) => {
1456
1484
  let t = e.icon;
1457
- return /* @__PURE__ */ B("button", {
1485
+ return /* @__PURE__ */ H("button", {
1458
1486
  type: "button",
1459
- onClick: () => i?.(e),
1487
+ onClick: () => n?.(e),
1460
1488
  className: Y.suggestion,
1461
- children: [!!t && /* @__PURE__ */ z(t, { "aria-hidden": !0 }), /* @__PURE__ */ z(n, {
1489
+ children: [!!t && /* @__PURE__ */ V(t, { "aria-hidden": !0 }), /* @__PURE__ */ V(r, {
1462
1490
  tag: "span",
1463
1491
  weight: "medium",
1464
1492
  children: e.label
@@ -1468,86 +1496,86 @@ function $e({ suggestions: r, onPick: i, hideHeader: a = !1, className: o, strin
1468
1496
  })]
1469
1497
  });
1470
1498
  }
1471
- function et({ value: t, onValueChange: r, onSubmit: i, onStop: o, streaming: s = !1, disabled: c = !1, attachments: l = [], onRemoveAttachment: u, onAttach: d, showAttach: f, leadingActions: p, trailingActions: m, hideHint: g = !1, minRows: _ = 1, maxRows: v = 8, autoFocus: b = !1, submitKeyLabel: x = "↩", className: S, strings: C }) {
1499
+ function nt({ value: e, onValueChange: t, onSubmit: n, onStop: o, streaming: s = !1, disabled: c = !1, attachments: l = [], onRemoveAttachment: u, onAttach: d, showAttach: f, leadingActions: p, trailingActions: h, hideHint: g = !1, minRows: _ = 1, maxRows: v = 8, autoFocus: y = !1, submitKeyLabel: x = "↩", className: S, strings: C }) {
1472
1500
  let w = {
1473
1501
  ...W,
1474
1502
  ...C
1475
- }, T = I(null), E = !!i && !s && !c && (t.trim().length > 0 || l.length > 0), D = P(() => {
1476
- E && i?.({
1477
- text: t,
1503
+ }, T = R(null), E = !!n && !s && !c && (e.trim().length > 0 || l.length > 0), D = I(() => {
1504
+ E && n?.({
1505
+ text: e,
1478
1506
  attachments: l
1479
1507
  });
1480
1508
  }, [
1481
1509
  l,
1482
1510
  E,
1483
- i,
1484
- t
1485
- ]), O = P((e) => {
1486
- e.key !== "Enter" || e.shiftKey || e.nativeEvent.isComposing || !i || (e.preventDefault(), D());
1487
- }, [i, D]), k = w.hint.replace(/\{\{\s*submitKey\s*\}\}/g, x).replace(/\{\{\s*newlineKey\s*\}\}/g, "⇧↩");
1488
- return /* @__PURE__ */ B("div", {
1511
+ n,
1512
+ e
1513
+ ]), O = I((e) => {
1514
+ e.key !== "Enter" || e.shiftKey || e.nativeEvent.isComposing || !n || (e.preventDefault(), D());
1515
+ }, [n, D]), k = w.hint.replace(/\{\{\s*submitKey\s*\}\}/g, x).replace(/\{\{\s*newlineKey\s*\}\}/g, "⇧↩");
1516
+ return /* @__PURE__ */ H("div", {
1489
1517
  "data-disabled": c || void 0,
1490
- className: e("ai-chat-prompt-input--component", Y.composer, S),
1518
+ className: i("ai-chat-prompt-input--component", Y.composer, S),
1491
1519
  children: [
1492
- l.length > 0 && /* @__PURE__ */ z("div", {
1520
+ l.length > 0 && /* @__PURE__ */ V("div", {
1493
1521
  className: Y.composerAttachments,
1494
- children: /* @__PURE__ */ z($, {
1522
+ children: /* @__PURE__ */ V(Q, {
1495
1523
  attachments: l,
1496
1524
  onRemove: u
1497
1525
  })
1498
1526
  }),
1499
- /* @__PURE__ */ z(h, {
1527
+ /* @__PURE__ */ V(m, {
1500
1528
  ref: T,
1501
- value: t,
1529
+ value: e,
1502
1530
  placeholder: w.placeholder,
1503
1531
  minRows: _,
1504
1532
  maxRows: v,
1505
- autoFocus: b,
1533
+ autoFocus: y,
1506
1534
  disabled: c,
1507
- onChange: (e) => r(e.target.value),
1535
+ onChange: (e) => t(e.target.value),
1508
1536
  onKeyDown: O,
1509
1537
  className: Y.composerField
1510
1538
  }),
1511
- /* @__PURE__ */ B("div", {
1539
+ /* @__PURE__ */ H("div", {
1512
1540
  className: Y.composerBar,
1513
1541
  children: [
1514
1542
  p,
1515
- (f ?? !!d) && /* @__PURE__ */ z(a, {
1543
+ (f ?? !!d) && /* @__PURE__ */ V(a, {
1516
1544
  type: "button",
1517
1545
  tone: "neutral",
1518
- buttonStyle: "ghost",
1546
+ appearance: "ghost",
1519
1547
  iconOnly: !0,
1520
1548
  "aria-label": w.attachAria,
1521
1549
  disabled: c || !d,
1522
1550
  onClick: d,
1523
- children: /* @__PURE__ */ z(re, {})
1551
+ children: /* @__PURE__ */ V(re, {})
1524
1552
  }),
1525
- /* @__PURE__ */ B("div", {
1553
+ /* @__PURE__ */ H("div", {
1526
1554
  className: Y.composerBarEnd,
1527
1555
  children: [
1528
- !g && /* @__PURE__ */ z(n, {
1556
+ !g && /* @__PURE__ */ V(r, {
1529
1557
  size: "xs",
1530
1558
  type: "secondary",
1531
1559
  truncate: !0,
1532
1560
  className: Y.composerHint,
1533
1561
  children: k
1534
1562
  }),
1535
- m,
1536
- s ? /* @__PURE__ */ z(a, {
1563
+ h,
1564
+ s ? /* @__PURE__ */ V(a, {
1537
1565
  type: "button",
1538
1566
  tone: "neutral",
1539
1567
  iconOnly: !0,
1540
1568
  "aria-label": w.stopAria,
1541
1569
  disabled: c || !o,
1542
1570
  onClick: o,
1543
- children: /* @__PURE__ */ z(se, { className: Y.stopGlyph })
1544
- }) : /* @__PURE__ */ z(a, {
1571
+ children: /* @__PURE__ */ V(oe, { className: Y.stopGlyph })
1572
+ }) : /* @__PURE__ */ V(a, {
1545
1573
  type: "button",
1546
1574
  iconOnly: !0,
1547
1575
  "aria-label": w.submitAria,
1548
1576
  disabled: !E,
1549
1577
  onClick: D,
1550
- children: /* @__PURE__ */ z(y, {})
1578
+ children: /* @__PURE__ */ V(b, {})
1551
1579
  })
1552
1580
  ]
1553
1581
  })
@@ -1558,11 +1586,11 @@ function et({ value: t, onValueChange: r, onSubmit: i, onStop: o, streaming: s =
1558
1586
  }
1559
1587
  //#endregion
1560
1588
  //#region src/components/features/ai-chat/ai-chat.tsx
1561
- function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop: a, streaming: o = !1, disabled: s = !1, attachments: c = [], onRemoveAttachment: l, onAttach: u, showAttach: d, agent: f, headerActions: p, queue: m = [], onCancelQueueItem: h, suggestions: g = [], onPickSuggestion: _, onMessageCopy: v, onMessageRegenerate: y, onAttachmentOpen: b, disableAutoScroll: x, slots: S, strings: C, className: w }) {
1589
+ function rt({ messages: e, inputValue: t, onInputChange: n, onSubmit: r, onStop: a, streaming: o = !1, disabled: s = !1, attachments: c = [], onRemoveAttachment: l, onAttach: u, showAttach: d, agent: f, headerActions: p, queue: m = [], onCancelQueueItem: h, suggestions: g = [], onPickSuggestion: _, onMessageCopy: v, onMessageRegenerate: y, onAttachmentOpen: b, disableAutoScroll: x, slots: S, strings: C, className: w }) {
1562
1590
  let T = {
1563
- ...xe,
1591
+ ...Se,
1564
1592
  ...C
1565
- }, E = P((e, t) => S?.renderMessage ? S.renderMessage(e, t) : /* @__PURE__ */ z(Ye, {
1593
+ }, E = I((e, t) => S?.renderMessage ? S.renderMessage(e, t) : /* @__PURE__ */ V($, {
1566
1594
  message: e,
1567
1595
  strings: T.message,
1568
1596
  onCopy: v ? () => v(e) : void 0,
@@ -1574,9 +1602,9 @@ function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop:
1574
1602
  v,
1575
1603
  y,
1576
1604
  S
1577
- ]), D = S?.header ?? (f ? /* @__PURE__ */ B("div", {
1605
+ ]), D = S?.header ?? (f ? /* @__PURE__ */ H("div", {
1578
1606
  className: Y.header,
1579
- children: [/* @__PURE__ */ z(Ge, {
1607
+ children: [/* @__PURE__ */ V(qe, {
1580
1608
  name: f.name,
1581
1609
  icon: f.icon,
1582
1610
  avatar: f.avatar,
@@ -1584,25 +1612,25 @@ function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop:
1584
1612
  tone: f.tone,
1585
1613
  status: f.status,
1586
1614
  variant: "inline"
1587
- }), !!p && /* @__PURE__ */ z("div", {
1615
+ }), !!p && /* @__PURE__ */ V("div", {
1588
1616
  className: Y.headerActions,
1589
1617
  children: p
1590
1618
  })]
1591
- }) : null), O = S?.empty ?? (t.length === 0 ? /* @__PURE__ */ z(Ze, {
1619
+ }) : null), O = S?.empty ?? (e.length === 0 ? /* @__PURE__ */ V($e, {
1592
1620
  title: T.emptyTitle,
1593
1621
  description: T.emptyDescription
1594
- }) : null), k = S?.queue ?? (m.length > 0 ? /* @__PURE__ */ z(Qe, {
1622
+ }) : null), k = S?.queue ?? (m.length > 0 ? /* @__PURE__ */ V(et, {
1595
1623
  items: m,
1596
1624
  onCancel: h,
1597
1625
  strings: T.queue
1598
- }) : null), A = S?.suggestions ?? (g.length > 0 ? /* @__PURE__ */ z($e, {
1626
+ }) : null), A = S?.suggestions ?? (g.length > 0 ? /* @__PURE__ */ V(tt, {
1599
1627
  suggestions: g,
1600
1628
  onPick: _,
1601
1629
  strings: T.suggestions
1602
- }) : null), j = S?.input ?? /* @__PURE__ */ z(et, {
1603
- value: n,
1604
- onValueChange: r,
1605
- onSubmit: i,
1630
+ }) : null), j = S?.input ?? /* @__PURE__ */ V(nt, {
1631
+ value: t,
1632
+ onValueChange: n,
1633
+ onSubmit: r,
1606
1634
  onStop: a,
1607
1635
  streaming: o,
1608
1636
  disabled: s,
@@ -1612,12 +1640,12 @@ function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop:
1612
1640
  showAttach: d,
1613
1641
  strings: T.prompt
1614
1642
  });
1615
- return /* @__PURE__ */ B("div", {
1616
- className: e("ai-chat--component", Y.chat, w),
1643
+ return /* @__PURE__ */ H("div", {
1644
+ className: i("ai-chat--component", Y.chat, w),
1617
1645
  children: [
1618
1646
  D,
1619
- /* @__PURE__ */ z(Xe, {
1620
- messages: t,
1647
+ /* @__PURE__ */ V(Qe, {
1648
+ messages: e,
1621
1649
  renderMessage: E,
1622
1650
  intro: S?.intro,
1623
1651
  footer: S?.belowMessages,
@@ -1625,7 +1653,7 @@ function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop:
1625
1653
  disableAutoScroll: x,
1626
1654
  strings: T.conversation
1627
1655
  }),
1628
- (!!k || !!A || !!j) && /* @__PURE__ */ B("div", {
1656
+ (!!k || !!A || !!j) && /* @__PURE__ */ H("div", {
1629
1657
  className: Y.footer,
1630
1658
  children: [
1631
1659
  k,
@@ -1637,4 +1665,4 @@ function tt({ messages: t, inputValue: n, onInputChange: r, onSubmit: i, onStop:
1637
1665
  });
1638
1666
  }
1639
1667
  //#endregion
1640
- export { Ge as AiAgent, we as AiArtifact, Ae as AiAttachment, Le as AiChainOfThought, tt as AiChat, $ as AiChatAttachmentsStrip, Xe as AiChatConversation, Ze as AiChatEmptyState, Ye as AiChatMessage, et as AiChatPromptInput, Qe as AiChatQueue, $e as AiChatSuggestionsRow, Ce as AiCodeBlock, Q as AiConfirmation, Ne as AiMessageBubble, Fe as AiReasoning, X as AiShimmer, Oe as AiSources, Ue as AiTask, Be as AiToolCall, he as defaultAiAgentStrings, ve as defaultAiArtifactStrings, be as defaultAiAttachmentStrings, U as defaultAiChainOfThoughtStrings, G as defaultAiChatConversationStrings, J as defaultAiChatMessageStrings, W as defaultAiChatPromptInputStrings, K as defaultAiChatQueueStrings, xe as defaultAiChatStrings, q as defaultAiChatSuggestionsStrings, _e as defaultAiCodeBlockStrings, ge as defaultAiConfirmationStrings, V as defaultAiMessageBubbleStrings, H as defaultAiReasoningStrings, ye as defaultAiSourcesStrings, me as defaultAiTaskStrings, pe as defaultAiToolCallStrings, Ke as useAiChatScroll };
1668
+ export { qe as AiAgent, Ee as AiArtifact, Me as AiAttachment, ze as AiChainOfThought, rt as AiChat, Q as AiChatAttachmentsStrip, Qe as AiChatConversation, $e as AiChatEmptyState, $ as AiChatMessage, nt as AiChatPromptInput, et as AiChatQueue, tt as AiChatSuggestionsRow, Te as AiCodeBlock, Je as AiConfirmation, Fe as AiMessageBubble, Le as AiReasoning, X as AiShimmer, Ae as AiSources, Ge as AiTask, He as AiToolCall, ge as defaultAiAgentStrings, ye as defaultAiArtifactStrings, xe as defaultAiAttachmentStrings, pe as defaultAiChainOfThoughtStrings, G as defaultAiChatConversationStrings, J as defaultAiChatMessageStrings, W as defaultAiChatPromptInputStrings, K as defaultAiChatQueueStrings, Se as defaultAiChatStrings, q as defaultAiChatSuggestionsStrings, ve as defaultAiCodeBlockStrings, _e as defaultAiConfirmationStrings, U as defaultAiMessageBubbleStrings, fe as defaultAiReasoningStrings, be as defaultAiSourcesStrings, he as defaultAiTaskStrings, me as defaultAiToolCallStrings, Ye as useAiChatScroll };