themelia-react-ui 2.0.5 → 2.0.6

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 (489) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/MIGRATION.md +119 -0
  3. package/README.md +13 -6
  4. package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
  5. package/dist/accordion-0tQUZ20r.js.map +1 -0
  6. package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
  7. package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
  8. package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
  9. package/dist/ai-artifact-CGGpQryR.js.map +1 -0
  10. package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
  11. package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
  12. package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
  13. package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
  14. package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
  15. package/dist/auth-B0girIk_.js.map +1 -0
  16. package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
  17. package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
  18. package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
  19. package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
  20. package/dist/base/accordion.js +1 -1
  21. package/dist/base/action-menu.js +1 -1
  22. package/dist/base/attachment.js +1 -1
  23. package/dist/base/avatar.js +1 -1
  24. package/dist/base/badge.js +1 -1
  25. package/dist/base/batch-action-bar.js +1 -1
  26. package/dist/base/buttons.js +1 -1
  27. package/dist/base/cards.js +2 -2
  28. package/dist/base/carousel.js +3 -3
  29. package/dist/base/cascader.js +1 -1
  30. package/dist/base/chart.js +1 -1
  31. package/dist/base/choice-inputs.js +2 -2
  32. package/dist/base/code-block.js +1 -1
  33. package/dist/base/combobox.js +1 -1
  34. package/dist/base/command.js +1 -1
  35. package/dist/base/copyable.js +1 -1
  36. package/dist/base/date-pickers.js +2 -2
  37. package/dist/base/display.js +6 -6
  38. package/dist/base/feedback.js +4 -4
  39. package/dist/base/forms-numeric.js +1 -1
  40. package/dist/base/forms.js +2 -2
  41. package/dist/base/inline-edit.js +8 -8
  42. package/dist/base/item.js +1 -1
  43. package/dist/base/media-gallery.js +1 -1
  44. package/dist/base/metadata-list.js +1 -1
  45. package/dist/base/navigation.js +6 -6
  46. package/dist/base/popover-menu.js +1 -1
  47. package/dist/base/popover.js +1 -1
  48. package/dist/base/qr-code.js +1 -1
  49. package/dist/base/repeaters.js +195 -188
  50. package/dist/base/repeaters.js.map +1 -1
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +2 -2
  53. package/dist/base/signature-pad.js +7 -7
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +5 -5
  56. package/dist/base/spinner.js.map +1 -1
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +1 -1
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
  66. package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
  67. package/dist/blocks/admin.js +17 -17
  68. package/dist/blocks/ai.js +227 -221
  69. package/dist/blocks/ai.js.map +1 -1
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +424 -449
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +225 -220
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
  82. package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
  83. package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
  84. package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
  85. package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
  86. package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
  87. package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
  88. package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
  89. package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
  90. package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
  91. package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
  92. package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
  93. package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
  94. package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
  95. package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
  96. package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
  97. package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
  98. package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
  99. package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
  100. package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
  101. package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
  102. package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
  103. package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
  104. package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
  105. package/dist/combobox-C2JiSQPc.js +915 -0
  106. package/dist/combobox-C2JiSQPc.js.map +1 -0
  107. package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
  108. package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
  109. package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
  110. package/dist/comments-BsgErEqd.js.map +1 -0
  111. package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
  112. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
  113. package/dist/components/base/combobox/combobox-field.d.ts +2 -2
  114. package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
  115. package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
  116. package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
  117. package/dist/components/base/feedback/state-display.d.ts +5 -1
  118. package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
  119. package/dist/components/base/forms/form-field.d.ts +7 -2
  120. package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
  121. package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
  122. package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
  123. package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
  124. package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
  125. package/dist/components/base/navigation/language-switcher.d.ts +12 -4
  126. package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
  127. package/dist/components/base/sidebar/sidebar.d.ts +2 -0
  128. package/dist/components/base/upload/avatar-upload.d.ts +2 -1
  129. package/dist/components/base/upload/image-upload.d.ts +2 -1
  130. package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
  131. package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
  132. package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
  133. package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
  134. package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
  135. package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
  136. package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
  137. package/dist/components/blocks/analytics/types.d.ts +2 -2
  138. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  139. package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
  140. package/dist/components/features/activities/activities.types.d.ts +18 -11
  141. package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
  142. package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
  143. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
  144. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
  145. package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
  146. package/dist/components/features/combobox/combobox.d.ts +2 -2
  147. package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
  148. package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
  149. package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
  150. package/dist/components/features/combobox/types.d.ts +37 -8
  151. package/dist/components/features/email-composer/types.d.ts +3 -1
  152. package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
  153. package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
  154. package/dist/components/features/filters/filters.types.d.ts +3 -3
  155. package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
  156. package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
  157. package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
  158. package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
  159. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  160. package/dist/components/features/media-library/media-library.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  162. package/dist/components/features/media-library/media-library.types.d.ts +36 -8
  163. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  164. package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
  165. package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
  166. package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
  167. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
  168. package/dist/components/features/products/products.types.d.ts +2 -2
  169. package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
  170. package/dist/components/features/resource/resource.d.ts +1 -1
  171. package/dist/components/features/resource/resource.types.d.ts +2 -0
  172. package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
  173. package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
  174. package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
  175. package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
  176. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  177. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
  178. package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
  179. package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
  180. package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
  181. package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
  182. package/dist/components/features/table/data-table.d.ts +1 -1
  183. package/dist/components/features/table/index.d.ts +1 -0
  184. package/dist/components/features/table/table-body.d.ts +1 -1
  185. package/dist/components/features/table/table-helpers.d.ts +6 -3
  186. package/dist/components/features/table/table.strings.d.ts +3 -0
  187. package/dist/components/features/table/table.types.d.ts +17 -1
  188. package/dist/components/layout/header/header.types.d.ts +3 -2
  189. package/dist/components/layout/layout.types.d.ts +5 -3
  190. package/dist/components/layout/navigation/side-nav.d.ts +3 -2
  191. package/dist/components/layout/normalize-layout-path.d.ts +1 -0
  192. package/dist/components/layout/settings/settings.d.ts +1 -1
  193. package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
  194. package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
  195. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
  196. package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
  197. package/dist/components/primitives/link.d.ts +3 -2
  198. package/dist/components/primitives/money.d.ts +1 -1
  199. package/dist/components/primitives/number.d.ts +1 -1
  200. package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
  201. package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
  202. package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
  203. package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
  204. package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
  205. package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
  206. package/dist/data-display-Cmj-xZYl.js.map +1 -0
  207. package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
  208. package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
  209. package/dist/date-picker-CyQlFYsP.js +1617 -0
  210. package/dist/date-picker-CyQlFYsP.js.map +1 -0
  211. package/dist/date-pickers-tj2MXmXd.js +185 -0
  212. package/dist/date-pickers-tj2MXmXd.js.map +1 -0
  213. package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
  214. package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
  215. package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
  216. package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
  217. package/dist/features/activities.js +283 -270
  218. package/dist/features/activities.js.map +1 -1
  219. package/dist/features/ai-chat.js +40 -27
  220. package/dist/features/ai-chat.js.map +1 -1
  221. package/dist/features/appointment-calendar.js +126 -126
  222. package/dist/features/appointment-calendar.js.map +1 -1
  223. package/dist/features/async-preview.js +9 -9
  224. package/dist/features/combobox.js +1 -1
  225. package/dist/features/comments.js +1 -1
  226. package/dist/features/data-view.js +10 -10
  227. package/dist/features/email-composer.js +24 -19
  228. package/dist/features/email-composer.js.map +1 -1
  229. package/dist/features/event-calendar.js +129 -125
  230. package/dist/features/event-calendar.js.map +1 -1
  231. package/dist/features/filters.js +2 -2
  232. package/dist/features/global-search.js +16 -20
  233. package/dist/features/global-search.js.map +1 -1
  234. package/dist/features/kanban.js +18 -28
  235. package/dist/features/kanban.js.map +1 -1
  236. package/dist/features/map/style.css +15 -0
  237. package/dist/features/map.js +331 -314
  238. package/dist/features/map.js.map +1 -1
  239. package/dist/features/media-library.js +1044 -866
  240. package/dist/features/media-library.js.map +1 -1
  241. package/dist/features/mentions.js +2 -2
  242. package/dist/features/overlays.js +1 -1
  243. package/dist/features/products.js +978 -964
  244. package/dist/features/products.js.map +1 -1
  245. package/dist/features/questionnaire.js +159 -152
  246. package/dist/features/questionnaire.js.map +1 -1
  247. package/dist/features/resource-assignment.js +8 -8
  248. package/dist/features/resource.js +74 -71
  249. package/dist/features/resource.js.map +1 -1
  250. package/dist/features/rich-text-editor.js +28 -19
  251. package/dist/features/rich-text-editor.js.map +1 -1
  252. package/dist/features/schema-form.js +297 -256
  253. package/dist/features/schema-form.js.map +1 -1
  254. package/dist/features/suggestions.js +57 -50
  255. package/dist/features/suggestions.js.map +1 -1
  256. package/dist/features/sync.js +3 -3
  257. package/dist/features/table.js +1 -1
  258. package/dist/features/theme-tweaker.js +400 -399
  259. package/dist/features/theme-tweaker.js.map +1 -1
  260. package/dist/feedback-Dzo1xtAU.js +246 -0
  261. package/dist/feedback-Dzo1xtAU.js.map +1 -0
  262. package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
  263. package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
  264. package/dist/field-control-attributes-B6i335wr.js +18 -0
  265. package/dist/field-control-attributes-B6i335wr.js.map +1 -0
  266. package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
  267. package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
  268. package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
  269. package/dist/filters-Dl80yYtN.js.map +1 -0
  270. package/dist/form-field-CAPdwdnZ.js +74 -0
  271. package/dist/form-field-CAPdwdnZ.js.map +1 -0
  272. package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
  273. package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
  274. package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
  275. package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
  276. package/dist/forms-numeric-CwjQJe-O.js +991 -0
  277. package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
  278. package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
  279. package/dist/header-ZIIsRKxP.js.map +1 -0
  280. package/dist/hooks/use-files.d.ts +2 -0
  281. package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
  282. package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
  283. package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
  284. package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
  285. package/dist/index.js +1 -1
  286. package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
  287. package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
  288. package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
  289. package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
  290. package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
  291. package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
  292. package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
  293. package/dist/item-FfWnaYST.js.map +1 -0
  294. package/dist/layout/app-shell.js +1 -1
  295. package/dist/layout/auth.js +1 -1
  296. package/dist/layout/containers.js +1 -1
  297. package/dist/layout/header.js +1 -1
  298. package/dist/layout/hooks.js +1 -1
  299. package/dist/layout/navigation.js +1 -1
  300. package/dist/layout/page.js +1 -1
  301. package/dist/layout/settings.js +1 -1
  302. package/dist/layout/sidebar.js +2 -2
  303. package/dist/layout/workspace.js +1 -1
  304. package/dist/layout.js +11 -11
  305. package/dist/layout.types-E_GAApzO.js +30 -0
  306. package/dist/layout.types-E_GAApzO.js.map +1 -0
  307. package/dist/lib/field-control-attributes.d.ts +11 -0
  308. package/dist/lib/field-state-recipes.d.ts +2 -0
  309. package/dist/lib/format.d.ts +1 -0
  310. package/dist/lib/surface-recipes.d.ts +1 -1
  311. package/dist/lib/token-merge.generated.d.ts +6 -6
  312. package/dist/lib/utils.js +1 -1
  313. package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
  314. package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
  315. package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
  316. package/dist/mentions-qOnedSt4.js.map +1 -0
  317. package/dist/message-BJHnn43M.js +135 -0
  318. package/dist/message-BJHnn43M.js.map +1 -0
  319. package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
  320. package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
  321. package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
  322. package/dist/navigation-BgtPJAhi.js.map +1 -0
  323. package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
  324. package/dist/navigation-Bt-v7rWP.js.map +1 -0
  325. package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
  326. package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
  327. package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
  328. package/dist/number-CYqBcrSj.js.map +1 -0
  329. package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
  330. package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
  331. package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
  332. package/dist/overlays-CC8zI3Du.js.map +1 -0
  333. package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
  334. package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
  335. package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
  336. package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
  337. package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
  338. package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
  339. package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
  340. package/dist/popover-k8TdUcAt.js.map +1 -0
  341. package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
  342. package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
  343. package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
  344. package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
  345. package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
  346. package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
  347. package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
  348. package/dist/primitives-BkkQjYl7.js.map +1 -0
  349. package/dist/primitives.js +4 -4
  350. package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
  351. package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
  352. package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
  353. package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
  354. package/dist/rich-text-BnTzZjIo.js +45 -0
  355. package/dist/rich-text-BnTzZjIo.js.map +1 -0
  356. package/dist/rich-text-editor-CAurDwT5.js +1273 -0
  357. package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
  358. package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
  359. package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
  360. package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
  361. package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
  362. package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
  363. package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
  364. package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
  365. package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
  366. package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
  367. package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
  368. package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
  369. package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
  370. package/dist/services/actions.js +1 -1
  371. package/dist/settings-DZPHgpx4.js +155 -0
  372. package/dist/settings-DZPHgpx4.js.map +1 -0
  373. package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
  374. package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
  375. package/dist/sidebar-C8BnDwTH.js +709 -0
  376. package/dist/sidebar-C8BnDwTH.js.map +1 -0
  377. package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
  378. package/dist/sidebar-CmD6a-HK.js.map +1 -0
  379. package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
  380. package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
  381. package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
  382. package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
  383. package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
  384. package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
  385. package/dist/style.css +1 -1
  386. package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
  387. package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
  388. package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
  389. package/dist/table-CBonSdTp.js.map +1 -0
  390. package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
  391. package/dist/table-CXSPHH25.js.map +1 -0
  392. package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
  393. package/dist/tabs-C4Kr_hCr.js.map +1 -0
  394. package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
  395. package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
  396. package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
  397. package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
  398. package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
  399. package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
  400. package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
  401. package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
  402. package/dist/typography/rich-text.js +1 -1
  403. package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
  404. package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
  405. package/dist/typography.js +1 -1
  406. package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
  407. package/dist/upload-Hdm5gObf.js.map +1 -0
  408. package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
  409. package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
  410. package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
  411. package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
  412. package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
  413. package/dist/utils-DhuoqFy4.js.map +1 -0
  414. package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
  415. package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
  416. package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
  417. package/dist/value-typography-uSzzG9Gf.js.map +1 -0
  418. package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
  419. package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
  420. package/docs/consumer-skill/examples/edit.tsx +3 -3
  421. package/docs/consumer-skill/references/agents-md.md +19 -19
  422. package/docs/consumer-skill/references/analytics.md +15 -0
  423. package/docs/consumer-skill/references/component-contracts.json +14724 -13057
  424. package/docs/consumer-skill/references/composition.md +21 -4
  425. package/docs/consumer-skill/references/design-contract.md +1 -0
  426. package/docs/consumer-skill/references/installation.md +51 -8
  427. package/docs/consumer-skill/references/integration.md +24 -1
  428. package/docs/consumer-skill/references/public-api.json +172 -34
  429. package/docs/consumer-skill/references/review.md +51 -11
  430. package/docs/consumer-skill/references/rhf-workflows.md +72 -0
  431. package/docs/consumer-skill/references/theming.md +7 -2
  432. package/docs/consumer-skill/references/tokens.json +1 -1
  433. package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
  434. package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
  435. package/package.json +4 -2
  436. package/templates/admin-shell-template.tsx +1 -2
  437. package/templates/customers-template.tsx +18 -16
  438. package/dist/accordion-B9MHG0cT.js.map +0 -1
  439. package/dist/ai-artifact-C58tQcBy.js.map +0 -1
  440. package/dist/auth-DTkkshS8.js.map +0 -1
  441. package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
  442. package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
  443. package/dist/combobox-BwzoXFSG.js +0 -884
  444. package/dist/combobox-BwzoXFSG.js.map +0 -1
  445. package/dist/comments-Dmpp0YIc.js.map +0 -1
  446. package/dist/data-display-BdgCAw8T.js.map +0 -1
  447. package/dist/date-picker-RlIzKom_.js +0 -1551
  448. package/dist/date-picker-RlIzKom_.js.map +0 -1
  449. package/dist/date-pickers-DY-CpXS1.js +0 -179
  450. package/dist/date-pickers-DY-CpXS1.js.map +0 -1
  451. package/dist/feedback-Dm4izqFn.js +0 -240
  452. package/dist/feedback-Dm4izqFn.js.map +0 -1
  453. package/dist/filters-DzgSJpMK.js.map +0 -1
  454. package/dist/form-field-BriWAXyg.js +0 -63
  455. package/dist/form-field-BriWAXyg.js.map +0 -1
  456. package/dist/forms-numeric-DIhghX1Q.js +0 -910
  457. package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
  458. package/dist/header-DMMxG__r.js.map +0 -1
  459. package/dist/item-DjCcM18E.js.map +0 -1
  460. package/dist/layout.types-Cn7aUzJp.js +0 -20
  461. package/dist/layout.types-Cn7aUzJp.js.map +0 -1
  462. package/dist/mentions-0_4nWuI-.js.map +0 -1
  463. package/dist/message-g8p7eVtN.js +0 -128
  464. package/dist/message-g8p7eVtN.js.map +0 -1
  465. package/dist/navigation-C90-oQFq.js.map +0 -1
  466. package/dist/navigation-DaRjthVk.js.map +0 -1
  467. package/dist/number-CRU3kGuk.js.map +0 -1
  468. package/dist/overlays-BSgCtM2v.js.map +0 -1
  469. package/dist/popover-B85RenIl.js.map +0 -1
  470. package/dist/primitives-ByWgGUgt.js.map +0 -1
  471. package/dist/rich-text-Dth5E882.js +0 -78
  472. package/dist/rich-text-Dth5E882.js.map +0 -1
  473. package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
  474. package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
  475. package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
  476. package/dist/safe-image-src-C6kQSMBZ.js +0 -17
  477. package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
  478. package/dist/sanitize-html-DsQmI48u.js.map +0 -1
  479. package/dist/settings-Bar5wiSo.js +0 -167
  480. package/dist/settings-Bar5wiSo.js.map +0 -1
  481. package/dist/sidebar-D-JYMMbY.js +0 -686
  482. package/dist/sidebar-D-JYMMbY.js.map +0 -1
  483. package/dist/sidebar-f9gRWXIR.js.map +0 -1
  484. package/dist/table-B4TE7iOV.js.map +0 -1
  485. package/dist/table-CFOWY9pQ.js.map +0 -1
  486. package/dist/tabs-e7ko9S2o.js.map +0 -1
  487. package/dist/upload-BOW6U2tI.js.map +0 -1
  488. package/dist/utils-B6kKb8jB.js.map +0 -1
  489. package/dist/value-typography-uAmWUAL1.js.map +0 -1
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import { mergeStrings as e, useStrings as t } from "./lib/strings.js";
3
- import { t as n } from "./utils-B6kKb8jB.js";
4
- import { n as r } from "./buttons-BedGfygC.js";
5
- import { c as i, o as a, t as o } from "./typography-BQnine1k.js";
3
+ import { t as n } from "./utils-DhuoqFy4.js";
4
+ import { n as r } from "./buttons-DeW0bQeK.js";
5
+ import { c as i, o as a, t as o } from "./typography-C7-YMW1S.js";
6
6
  import { t as s } from "./focus-recipes-B653VaLq.js";
7
- import { t as c } from "./structure-DuxKl954.js";
7
+ import { t as c } from "./structure-DZJ2wbAU.js";
8
8
  import { i as l } from "./tone-recipes-BPsRAvhu.js";
9
- import { t as u } from "./smart-card-CW0hjetE.js";
9
+ import { t as u } from "./smart-card-B6vLxqa_.js";
10
10
  import { n as d } from "./composition.recipes-COdiFhxB.js";
11
- import { t as f } from "./interaction-recipes-XR9ZpVYL.js";
12
- import { g as p, m, r as h } from "./primitives-ByWgGUgt.js";
13
- import { t as g } from "./number-CRU3kGuk.js";
14
- import { t as _ } from "./icon-badge-DZF-YjQp.js";
15
- import { t as v } from "./badge-xIiV_E7f.js";
16
- import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-Dg_69lPS.js";
17
- import { t as D } from "./message-g8p7eVtN.js";
18
- import { t as O } from "./code-block-BzmM9Eig.js";
19
- import { useEffect as k, useRef as A, useState as j } from "react";
11
+ import { t as f } from "./interaction-recipes-4wZ2tvfb.js";
12
+ import { g as p, m, r as h } from "./primitives-BkkQjYl7.js";
13
+ import { t as g } from "./number-CYqBcrSj.js";
14
+ import { t as _ } from "./icon-badge-npxF1SLX.js";
15
+ import { t as v } from "./badge-wWauMgAt.js";
16
+ import { a as y, c as b, i as x, n as S, o as C, r as w, s as T, t as E } from "./attachment-BCpA4e7i.js";
17
+ import { t as ee } from "./message-BJHnn43M.js";
18
+ import { t as D } from "./code-block-BSJyq9e-.js";
19
+ import { useEffect as O, useId as k, useRef as A, useState as j } from "react";
20
20
  import { Fragment as M, jsx as N, jsxs as P } from "react/jsx-runtime";
21
- import { AlertCircle as F, Bot as I, Brain as ee, Check as L, ChevronDown as R, ChevronRight as z, Circle as te, Copy as ne, Download as re, ExternalLink as ie, FileText as ae, Globe as oe, Loader2 as B, MinusCircle as se, RotateCcw as ce, User as le, X as V, XCircle as ue } from "lucide-react";
21
+ import { AlertCircle as F, Bot as I, Brain as te, Check as L, ChevronDown as R, ChevronRight as z, Circle as ne, Copy as re, Download as ie, ExternalLink as ae, FileText as oe, Globe as se, Loader2 as B, MinusCircle as ce, RotateCcw as le, User as ue, X as V, XCircle as de } from "lucide-react";
22
22
  //#region src/components/blocks/ai/use-copy-feedback.ts
23
23
  function H(e, t) {
24
24
  let [n, r] = j(!1), [i, a] = j(!1), o = A(!1), s = A(0), c = A(void 0);
25
- return k(() => (o.current = !0, r(!1), a(!1), () => {
25
+ return O(() => (o.current = !0, r(!1), a(!1), () => {
26
26
  o.current = !1, s.current += 1, clearTimeout(c.current);
27
27
  }), [t]), {
28
28
  copied: n,
@@ -52,12 +52,12 @@ var U = {
52
52
  //#region src/components/blocks/ai/ai-message-bubble/ai-message-bubble.tsx
53
53
  function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, timestamp: c, children: l, plainText: u, loading: d = !1, onCopy: f, onRegenerate: p, onCopyError: m, className: h, strings: g }) {
54
54
  let v = t(U, g), y = u ?? (typeof l == "string" ? l : ""), { copied: b, failed: x, copy: S } = H(m, y), C = a ?? /* @__PURE__ */ N(_, {
55
- icon: e === "user" ? le : I,
55
+ icon: e === "user" ? ue : I,
56
56
  tone: "neutral",
57
57
  size: "sm",
58
58
  "aria-label": o
59
59
  }), w = (f !== void 0 || u || p) && e === "assistant";
60
- return /* @__PURE__ */ N(D, {
60
+ return /* @__PURE__ */ N(ee, {
61
61
  align: e === "user" ? "end" : "start",
62
62
  tone: e === "user" ? "primary" : e === "system" ? "muted" : "surface",
63
63
  avatar: C,
@@ -78,7 +78,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
78
78
  onClick: async () => {
79
79
  y && await S(y) && f?.();
80
80
  },
81
- children: /* @__PURE__ */ N(ne, {
81
+ children: /* @__PURE__ */ N(re, {
82
82
  "aria-hidden": "true",
83
83
  className: "size-icon-md"
84
84
  })
@@ -96,7 +96,7 @@ function W({ role: e = "assistant", avatar: a, avatarLabel: o, authorName: s, ti
96
96
  iconOnly: !0,
97
97
  "aria-label": v.regenerateAria,
98
98
  onClick: p,
99
- children: /* @__PURE__ */ N(ce, {
99
+ children: /* @__PURE__ */ N(le, {
100
100
  "aria-hidden": "true",
101
101
  className: "size-icon-md"
102
102
  })
@@ -125,7 +125,7 @@ var G = {
125
125
  result: "Result",
126
126
  durationLabel: "Took",
127
127
  elapsedLabel: "Elapsed"
128
- }, de = {
128
+ }, fe = {
129
129
  pending: { tone: "secondary" },
130
130
  running: {
131
131
  tone: "info",
@@ -134,7 +134,7 @@ var G = {
134
134
  success: { tone: "success" },
135
135
  error: { tone: "destructive" }
136
136
  };
137
- function fe({ label: e, ms: t }) {
137
+ function pe({ label: e, ms: t }) {
138
138
  return /* @__PURE__ */ P("span", {
139
139
  className: "inline-flex shrink-0 items-baseline gap-space-xs",
140
140
  children: [/* @__PURE__ */ N(p, {
@@ -152,14 +152,14 @@ function fe({ label: e, ms: t }) {
152
152
  });
153
153
  }
154
154
  function K({ name: e, status: i, icon: a, args: o, result: s, error: d, durationMs: p, expanded: h, defaultExpanded: g = !1, onExpandedChange: y, className: b, strings: x }) {
155
- let S = t(G, x), [C, w] = j(g), T = h ?? C, E = (e) => {
156
- h === void 0 && w(e), y?.(e);
155
+ let S = t(G, x), C = k(), [w, T] = j(g), E = h ?? w, ee = (e) => {
156
+ h === void 0 && T(e), y?.(e);
157
157
  }, D = {
158
158
  pending: S.pending,
159
159
  running: S.running,
160
160
  success: S.success,
161
161
  error: S.error
162
- }, O = de[i], k = !!(o || s || d), A = i === "success" || i === "error";
162
+ }, O = fe[i], A = !!(o || s || d), F = i === "success" || i === "error";
163
163
  return /* @__PURE__ */ P(u, {
164
164
  surface: "card",
165
165
  padding: "none",
@@ -169,10 +169,11 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
169
169
  tone: "secondary",
170
170
  buttonStyle: "ghost",
171
171
  size: "md",
172
- onClick: () => k && E(!T),
173
- className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", k ? `cursor-pointer ${f.rowHover}` : "cursor-default"),
174
- "aria-expanded": k ? T : void 0,
175
- "aria-label": k ? T ? S.collapse : S.expand : void 0,
172
+ onClick: () => A && ee(!E),
173
+ className: n("ai-tool-call--trigger h-auto min-h-0 w-full flex-wrap justify-start gap-space-md whitespace-normal rounded-none px-space-lg py-space-md text-left @md/card:flex-nowrap", A ? `cursor-pointer ${f.rowHover}` : "cursor-default"),
174
+ "aria-expanded": A ? E : void 0,
175
+ "aria-controls": A ? C : void 0,
176
+ "aria-description": A ? E ? x?.collapse : x?.expand : void 0,
176
177
  children: [
177
178
  !!a && /* @__PURE__ */ N(_, {
178
179
  icon: a,
@@ -195,20 +196,22 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
195
196
  dot: O.live,
196
197
  pulse: O.live,
197
198
  children: D[i]
198
- }), !!p && /* @__PURE__ */ N(fe, {
199
- label: A ? S.durationLabel : S.elapsedLabel ?? G.elapsedLabel ?? S.durationLabel,
199
+ }), !!p && /* @__PURE__ */ N(pe, {
200
+ label: F ? S.durationLabel : S.elapsedLabel ?? G.elapsedLabel ?? S.durationLabel,
200
201
  ms: p
201
202
  })]
202
203
  }),
203
- k ? N(T ? R : z, { className: "size-icon-md shrink-0 text-muted-foreground" }) : /* @__PURE__ */ N("span", {
204
+ A ? N(E ? R : z, { className: "size-icon-md shrink-0 text-muted-foreground" }) : /* @__PURE__ */ N("span", {
204
205
  "aria-hidden": "true",
205
206
  className: "ai-tool-call--affordance hidden size-icon-md shrink-0 @md/card:block"
206
207
  })
207
208
  ]
208
- }), !!T && k && /* @__PURE__ */ P(c, {
209
+ }), A && /* @__PURE__ */ N(c, {
210
+ id: C,
211
+ hidden: !E,
209
212
  gap: "md",
210
- className: "ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md",
211
- children: [!!o && /* @__PURE__ */ N(q, {
213
+ className: n("ai-tool-call--details border-t border-border/60 bg-muted/30 px-space-lg py-space-md", !E && "hidden"),
214
+ children: E && /* @__PURE__ */ P(M, { children: [!!o && /* @__PURE__ */ N(q, {
212
215
  label: S.args,
213
216
  children: o
214
217
  }), i === "error" && d ? /* @__PURE__ */ N(q, {
@@ -218,7 +221,7 @@ function K({ name: e, status: i, icon: a, args: o, result: s, error: d, duration
218
221
  }) : !!s && /* @__PURE__ */ N(q, {
219
222
  label: S.result,
220
223
  children: s
221
- })]
224
+ })] })
222
225
  })]
223
226
  });
224
227
  }
@@ -261,7 +264,7 @@ function J({ children: e = "Thinking…", paused: t = !1, duration: r = 2.4, siz
261
264
  J.displayName = "AiShimmer";
262
265
  //#endregion
263
266
  //#region src/components/blocks/ai/ai-code-block/types.ts
264
- var pe = {
267
+ var me = {
265
268
  copy: "Copy",
266
269
  copied: "Copied",
267
270
  copyError: "Could not copy. Please try again.",
@@ -270,9 +273,9 @@ var pe = {
270
273
  };
271
274
  //#endregion
272
275
  //#region src/components/blocks/ai/ai-code-block/ai-code-block.tsx
273
- function me({ strings: e, className: r, onCopy: i, ...a }) {
274
- let o = t(pe, e);
275
- return /* @__PURE__ */ N(O, {
276
+ function he({ strings: e, className: r, onCopy: i, ...a }) {
277
+ let o = t(me, e);
278
+ return /* @__PURE__ */ N(D, {
276
279
  ...a,
277
280
  className: n("ai-code-block--component", r),
278
281
  onCopy: i ? () => i() : void 0,
@@ -284,7 +287,7 @@ function me({ strings: e, className: r, onCopy: i, ...a }) {
284
287
  }
285
288
  });
286
289
  }
287
- me.displayName = "AiCodeBlock";
290
+ he.displayName = "AiCodeBlock";
288
291
  //#endregion
289
292
  //#region src/components/blocks/ai/ai-attachment/types.ts
290
293
  var Y = {
@@ -295,7 +298,7 @@ var Y = {
295
298
  };
296
299
  //#endregion
297
300
  //#region src/components/blocks/ai/ai-attachment/ai-attachment.tsx
298
- function he({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
301
+ function ge({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, progress: l, errored: u = !1, onOpen: d, onRemove: f, className: p, strings: m }) {
299
302
  let h = t(Y, m), g = !u && typeof l == "number" && l >= 0 && l < 1;
300
303
  return /* @__PURE__ */ P(E, {
301
304
  name: e,
@@ -356,17 +359,17 @@ function he({ name: e, meta: a, kind: o = "generic", icon: s, thumbnailUrl: c, p
356
359
  ]
357
360
  });
358
361
  }
359
- he.displayName = "AiAttachment";
362
+ ge.displayName = "AiAttachment";
360
363
  //#endregion
361
364
  //#region src/components/blocks/ai/ai-agent/types.ts
362
- var ge = { statusLabels: {
365
+ var _e = { statusLabels: {
363
366
  idle: "Idle",
364
367
  thinking: "Thinking",
365
368
  working: "Working",
366
369
  done: "Done",
367
370
  error: "Error",
368
371
  offline: "Offline"
369
- } }, _e = {
372
+ } }, ve = {
370
373
  idle: "secondary",
371
374
  thinking: "info",
372
375
  working: "info",
@@ -374,13 +377,13 @@ var ge = { statusLabels: {
374
377
  error: "destructive",
375
378
  offline: "secondary"
376
379
  };
377
- function ve({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
378
- let h = t(ge, m), g = a ?? /* @__PURE__ */ N(_, {
380
+ function ye({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", status: l, variant: d = "inline", trailing: f, className: p, strings: m }) {
381
+ let h = t(_e, m), g = a ?? /* @__PURE__ */ N(_, {
379
382
  icon: r ?? I,
380
383
  tone: s,
381
384
  size: d === "card" ? "md" : "sm"
382
385
  }), y = l === "thinking" || l === "working", b = !!l && /* @__PURE__ */ N(v, {
383
- tone: _e[l],
386
+ tone: ve[l],
384
387
  dot: !0,
385
388
  pulse: y,
386
389
  children: h.statusLabels[l]
@@ -451,16 +454,16 @@ function ve({ name: e, icon: r, avatar: a, subtitle: o, tone: s = "primary", sta
451
454
  ]
452
455
  });
453
456
  }
454
- ve.displayName = "AiAgent";
457
+ ye.displayName = "AiAgent";
455
458
  //#endregion
456
459
  //#region src/components/blocks/ai/ai-confirmation/types.ts
457
- var ye = {
460
+ var be = {
458
461
  approve: "Approve",
459
462
  reject: "Reject",
460
463
  pending: "Awaiting your approval",
461
464
  approved: "Approved",
462
465
  rejected: "Rejected"
463
- }, be = {
466
+ }, xe = {
464
467
  neutral: { icon: "neutral" },
465
468
  destructive: {
466
469
  ring: `${l.destructive.edge} ${l.destructive.wash}`,
@@ -479,8 +482,8 @@ var ye = {
479
482
  icon: "primary"
480
483
  }
481
484
  };
482
- function xe({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: f, onReject: p, approveLabel: m, rejectLabel: h, details: g, className: v, strings: y }) {
483
- let b = t(ye, y), x = o, S = be[s];
485
+ function Se({ title: e, description: a, icon: o, tone: s = "neutral", status: l = "pending", onApprove: f, onReject: p, approveLabel: m, rejectLabel: h, details: g, className: v, strings: y }) {
486
+ let b = t(be, y), x = o, S = xe[s];
484
487
  return /* @__PURE__ */ N(u, {
485
488
  role: "region",
486
489
  "aria-live": "polite",
@@ -562,10 +565,10 @@ function xe({ title: e, description: a, icon: o, tone: s = "neutral", status: l
562
565
  })
563
566
  });
564
567
  }
565
- xe.displayName = "AiConfirmation";
568
+ Se.displayName = "AiConfirmation";
566
569
  //#endregion
567
570
  //#region src/components/blocks/ai/ai-sources/types.ts
568
- var Se = {
571
+ var Ce = {
569
572
  title: "{{count}} sources",
570
573
  expand: "Show all sources",
571
574
  collapse: "Hide sources",
@@ -573,26 +576,24 @@ var Se = {
573
576
  };
574
577
  //#endregion
575
578
  //#region src/components/blocks/ai/ai-sources/ai-sources.tsx
576
- function Ce(e, t) {
579
+ function we(e, t) {
577
580
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
578
581
  let r = t[n];
579
582
  return r === void 0 ? e : String(r);
580
583
  });
581
584
  }
582
- function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
583
- let g = e(Se, h), [_, v] = j(l), y = s ?? _, b = (e) => {
584
- s === void 0 && v(e), d?.(e);
585
- }, x = Ce(g.title, { count: t.length });
586
- if (a === "avatars") return /* @__PURE__ */ N(Te, {
585
+ function Te({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, defaultExpanded: l = !1, onExpandedChange: d, onSelect: p, className: m, strings: h }) {
586
+ let g = e(Ce, h), _ = k(), v = k(), [y, b] = j(l), x = s ?? y, S = (e) => {
587
+ s === void 0 && b(e), d?.(e);
588
+ }, C = we(g.title, { count: t.length });
589
+ return a === "avatars" ? /* @__PURE__ */ N(Ee, {
587
590
  sources: t,
588
591
  max: o,
589
- title: x,
592
+ title: C,
590
593
  visitLabel: g.visit,
591
594
  onSelect: p,
592
595
  className: n("ai-sources--component", m)
593
- });
594
- let S = y ? t : t.slice(0, 0);
595
- return /* @__PURE__ */ P(u, {
596
+ }) : /* @__PURE__ */ P(u, {
596
597
  surface: "card",
597
598
  padding: "none",
598
599
  className: n("ai-sources--component", m),
@@ -601,27 +602,33 @@ function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
601
602
  tone: "secondary",
602
603
  buttonStyle: "ghost",
603
604
  size: "md",
604
- onClick: () => b(!y),
605
- "aria-expanded": y,
606
- "aria-label": y ? g.collapse : g.expand,
605
+ onClick: () => S(!x),
606
+ "aria-expanded": x,
607
+ "aria-controls": v,
608
+ "aria-labelledby": _,
609
+ "aria-description": x ? h?.collapse : h?.expand,
607
610
  className: n("ai-sources--trigger h-auto min-h-0 w-full justify-start gap-space-md px-surface-xs py-row-y text-left", `rounded-radius ${f.rowHover}`),
608
611
  children: [
609
- /* @__PURE__ */ N(Ee, { sources: t.slice(0, 4) }),
612
+ /* @__PURE__ */ N(De, { sources: t.slice(0, 4) }),
610
613
  /* @__PURE__ */ N(i, {
614
+ id: _,
615
+ tag: "span",
611
616
  type: "inherit",
612
617
  weight: "medium",
613
618
  className: "flex-1",
614
- children: x
619
+ children: C
615
620
  }),
616
- N(y ? R : z, { className: "size-icon-md text-muted-foreground" })
621
+ N(x ? R : z, { className: "size-icon-md text-muted-foreground" })
617
622
  ]
618
- }), y && /* @__PURE__ */ N("div", {
623
+ }), /* @__PURE__ */ N("div", {
624
+ id: v,
625
+ hidden: !x,
619
626
  className: "ai-sources--list border-t border-border/60 px-surface-xs py-row-y",
620
- children: /* @__PURE__ */ N(c, {
627
+ children: x && /* @__PURE__ */ N(c, {
621
628
  render: /* @__PURE__ */ N("ol", {}),
622
629
  gap: "2xs",
623
630
  className: "m-0 list-none p-0 font-sans",
624
- children: S.map((e, t) => /* @__PURE__ */ N(Oe, {
631
+ children: t.map((e, t) => /* @__PURE__ */ N(ke, {
625
632
  source: e,
626
633
  index: t + 1,
627
634
  onSelect: p ? () => p(e, t) : void 0,
@@ -631,12 +638,12 @@ function we({ sources: t, variant: a = "list", maxAvatars: o = 5, expanded: s, d
631
638
  })]
632
639
  });
633
640
  }
634
- we.displayName = "AiSources";
635
- function Te({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
641
+ Te.displayName = "AiSources";
642
+ function Ee({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, className: s }) {
636
643
  let c = e.slice(0, t), l = e.length - c.length;
637
644
  return /* @__PURE__ */ P("div", {
638
645
  className: n("inline-flex items-center gap-space-md", s),
639
- children: [/* @__PURE__ */ N(Ee, {
646
+ children: [/* @__PURE__ */ N(De, {
640
647
  sources: c,
641
648
  onSelect: o,
642
649
  visitLabel: a,
@@ -648,7 +655,7 @@ function Te({ sources: e, max: t, title: r, visitLabel: a, onSelect: o, classNam
648
655
  })]
649
656
  });
650
657
  }
651
- function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
658
+ function De({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
652
659
  return /* @__PURE__ */ P("div", {
653
660
  className: n("flex items-center", t ? "gap-space-2xs" : "-space-x-space-sm"),
654
661
  children: [e.map((e, n) => {
@@ -656,7 +663,7 @@ function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
656
663
  "aria-hidden": !0,
657
664
  title: typeof e.title == "string" ? e.title : void 0,
658
665
  className: "inline-flex size-icon-lg items-center justify-center overflow-hidden rounded-full border border-card bg-muted text-muted-foreground ring-1 ring-border/60",
659
- children: /* @__PURE__ */ N(De, { src: e.faviconUrl })
666
+ children: /* @__PURE__ */ N(Oe, { src: e.faviconUrl })
660
667
  }, e.id);
661
668
  return t ? /* @__PURE__ */ N("button", {
662
669
  type: "button",
@@ -680,19 +687,19 @@ function Ee({ sources: e, onSelect: t, visitLabel: r, overflow: i = 0 }) {
680
687
  })]
681
688
  });
682
689
  }
683
- function De({ src: e }) {
690
+ function Oe({ src: e }) {
684
691
  let [t, n] = j(!1);
685
- return k(() => {
692
+ return O(() => {
686
693
  n(!1);
687
- }, [e]), !e || t ? /* @__PURE__ */ N(oe, { className: "size-icon-sm" }) : /* @__PURE__ */ N("img", {
694
+ }, [e]), !e || t ? /* @__PURE__ */ N(se, { className: "size-icon-sm" }) : /* @__PURE__ */ N("img", {
688
695
  src: e,
689
696
  alt: "",
690
697
  className: "size-full object-cover",
691
698
  onError: () => n(!0)
692
699
  });
693
700
  }
694
- function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
695
- let l = !!(e.url || r), u = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-radius px-row-x py-row-y-sm text-left text-foreground", l && `${f.rowHover} focus-visible:outline-none ${s.edge}`), d = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
701
+ function ke({ source: e, index: t, onSelect: r, visitLabel: a }) {
702
+ let l = k(), u = !!(e.url || r), d = n(f.nativeButtonReset, "group flex w-full items-start gap-space-lg rounded-radius px-row-x py-row-y-sm text-left text-foreground", u && `${f.rowHover} focus-visible:outline-none ${s.edge}`), p = /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ N(_, {
696
703
  tone: "neutral",
697
704
  size: "sm",
698
705
  "aria-hidden": !1,
@@ -709,10 +716,11 @@ function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
709
716
  className: "min-w-0 flex-1",
710
717
  children: [
711
718
  /* @__PURE__ */ P(i, {
719
+ id: l,
712
720
  type: "inherit",
713
721
  weight: "medium",
714
722
  className: "truncate",
715
- children: [e.title, !!e.url && /* @__PURE__ */ N(ie, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
723
+ children: [e.title, !!e.url && /* @__PURE__ */ N(ae, { className: "ml-1 inline size-icon-sm text-muted-foreground align-baseline" })]
716
724
  }),
717
725
  !!e.publisher && /* @__PURE__ */ N(i, {
718
726
  size: "xs",
@@ -734,23 +742,25 @@ function Oe({ source: e, index: t, onSelect: r, visitLabel: a }) {
734
742
  rel: "noopener noreferrer",
735
743
  size: "inherit",
736
744
  underline: !1,
737
- className: u,
738
- "aria-label": a,
739
- children: d
745
+ className: d,
746
+ "aria-labelledby": l,
747
+ "aria-description": a,
748
+ children: p
740
749
  }) : r ? /* @__PURE__ */ N("button", {
741
750
  type: "button",
742
751
  onClick: r,
743
- className: n(u, "h-auto justify-start whitespace-normal"),
744
- "aria-label": e.url ? a : void 0,
745
- children: d
752
+ className: n(d, "h-auto justify-start whitespace-normal"),
753
+ "aria-labelledby": l,
754
+ "aria-description": e.url ? a : void 0,
755
+ children: p
746
756
  }) : /* @__PURE__ */ N("span", {
747
- className: u,
748
- children: d
757
+ className: d,
758
+ children: p
749
759
  }) });
750
760
  }
751
761
  //#endregion
752
762
  //#region src/components/blocks/ai/ai-reasoning/types.ts
753
- var ke = {
763
+ var Ae = {
754
764
  thinking: "Thinking…",
755
765
  thoughtFor: "Thought for {{duration}}",
756
766
  thoughtDone: "Reasoning complete",
@@ -759,7 +769,7 @@ var ke = {
759
769
  };
760
770
  //#endregion
761
771
  //#region src/components/blocks/ai/ai-reasoning/ai-reasoning.tsx
762
- function Ae(e, t) {
772
+ function je(e, t) {
763
773
  let n = e.split(/\{\{\s*duration\s*\}\}/);
764
774
  return n.length === 1 ? e : /* @__PURE__ */ P(M, { children: [
765
775
  n[0],
@@ -771,26 +781,23 @@ function Ae(e, t) {
771
781
  n.slice(1).join("{{duration}}")
772
782
  ] });
773
783
  }
774
- function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
775
- let m = t(ke, p), [h, g] = j(c), _ = l ?? h, v = (e) => {
776
- l === void 0 && g(e), u?.(e);
784
+ function Me({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStreaming: s = !0, defaultExpanded: c = !1, expanded: l, onExpandedChange: u, className: d, strings: p }) {
785
+ let m = t(Ae, p), h = k(), g = k(), [_, v] = j(c), y = l ?? _, b = (e) => {
786
+ l === void 0 && v(e), u?.(e);
777
787
  };
778
- k(() => {
779
- a && s && !_ && v(!0), !a && s && _ && !c && l === void 0 && v(!1);
788
+ O(() => {
789
+ a && s && !y && b(!0), !a && s && y && !c && l === void 0 && b(!1);
780
790
  }, [a]);
781
- let y = a ? /* @__PURE__ */ N(J, {
782
- className: "flex-1",
783
- children: m.thinking
784
- }) : o === void 0 ? /* @__PURE__ */ N(i, {
791
+ let x = a ? /* @__PURE__ */ N(J, { children: m.thinking }) : o === void 0 ? /* @__PURE__ */ N(i, {
792
+ tag: "span",
785
793
  type: "inherit",
786
794
  weight: "medium",
787
- className: "flex-1",
788
795
  children: m.thoughtDone
789
796
  }) : /* @__PURE__ */ N(i, {
797
+ tag: "span",
790
798
  type: "inherit",
791
799
  weight: "medium",
792
- className: "flex-1",
793
- children: Ae(m.thoughtFor, o)
800
+ children: je(m.thoughtFor, o)
794
801
  });
795
802
  return /* @__PURE__ */ P("div", {
796
803
  className: n("ai-reasoning--component", "overflow-hidden rounded-radius border border-border/60 bg-muted/30", d),
@@ -799,18 +806,26 @@ function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
799
806
  tone: "secondary",
800
807
  buttonStyle: "ghost",
801
808
  size: "md",
802
- onClick: () => v(!_),
803
- "aria-expanded": _,
804
- "aria-label": _ ? m.collapseAria : m.expandAria,
809
+ onClick: () => b(!y),
810
+ "aria-expanded": y,
811
+ "aria-controls": g,
812
+ "aria-labelledby": h,
813
+ "aria-description": y ? p?.collapseAria : p?.expandAria,
805
814
  className: n("ai-reasoning--trigger h-auto min-h-0 w-full justify-start gap-space-md rounded-none px-surface-xs py-row-y text-left", f.rowHover),
806
815
  children: [
807
- /* @__PURE__ */ N(ee, { className: "size-icon-md text-muted-foreground" }),
808
- y,
809
- N(_ ? R : z, { className: "size-icon-md text-muted-foreground" })
816
+ /* @__PURE__ */ N(te, { className: "size-icon-md text-muted-foreground" }),
817
+ /* @__PURE__ */ N("span", {
818
+ id: h,
819
+ className: "flex-1",
820
+ children: x
821
+ }),
822
+ N(y ? R : z, { className: "size-icon-md text-muted-foreground" })
810
823
  ]
811
- }), _ && /* @__PURE__ */ N("div", {
824
+ }), /* @__PURE__ */ N("div", {
825
+ id: g,
826
+ hidden: !y,
812
827
  className: "ai-reasoning--body border-t border-border/60 p-surface-xs",
813
- children: typeof e == "string" ? /* @__PURE__ */ N(i, {
828
+ children: y && (typeof e == "string" ? /* @__PURE__ */ N(i, {
814
829
  type: "secondary",
815
830
  lineHeight: "relaxed",
816
831
  className: "whitespace-pre-wrap",
@@ -818,19 +833,19 @@ function X({ children: e, streaming: a = !1, durationSeconds: o, expandWhileStre
818
833
  }) : /* @__PURE__ */ N("div", {
819
834
  className: "whitespace-pre-wrap",
820
835
  children: e
821
- })
836
+ }))
822
837
  })]
823
838
  });
824
839
  }
825
- X.displayName = "AiReasoning";
840
+ Me.displayName = "AiReasoning";
826
841
  //#endregion
827
842
  //#region src/components/blocks/ai/ai-chain-of-thought/types.ts
828
- var je = {
843
+ var Ne = {
829
844
  title: "Reasoning",
830
845
  streamingHint: "Working through the steps…"
831
- }, Me = {
846
+ }, Pe = {
832
847
  pending: {
833
- icon: te,
848
+ icon: ne,
834
849
  tone: "neutral"
835
850
  },
836
851
  active: {
@@ -849,8 +864,8 @@ var je = {
849
864
  solid: !0
850
865
  }
851
866
  };
852
- function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
853
- let d = t(je, l);
867
+ function Fe({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, strings: l }) {
868
+ let d = t(Ne, l);
854
869
  return /* @__PURE__ */ N(u, {
855
870
  surface: "card",
856
871
  className: n("ai-chain-of-thought--component", s),
@@ -871,7 +886,7 @@ function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
871
886
  }), /* @__PURE__ */ N("ol", {
872
887
  className: "ai-chain-of-thought--body m-0 list-none p-0 font-sans",
873
888
  children: e.map((t, r) => {
874
- let a = t.status ?? "pending", o = Me[a], s = t.icon ?? o.icon, l = r === e.length - 1;
889
+ let a = t.status ?? "pending", o = Pe[a], s = t.icon ?? o.icon, l = r === e.length - 1;
875
890
  return /* @__PURE__ */ P("li", {
876
891
  className: "ai-chain-of-thought--step flex gap-space-lg",
877
892
  children: [/* @__PURE__ */ P("span", {
@@ -908,10 +923,10 @@ function Ne({ steps: e, hideHeader: r = !1, streaming: o = !1, className: s, str
908
923
  })
909
924
  });
910
925
  }
911
- Ne.displayName = "AiChainOfThought";
926
+ Fe.displayName = "AiChainOfThought";
912
927
  //#endregion
913
928
  //#region src/components/blocks/ai/ai-task/types.ts
914
- var Pe = {
929
+ var Ie = {
915
930
  statusLabels: {
916
931
  queued: "Queued",
917
932
  running: "Running",
@@ -922,9 +937,9 @@ var Pe = {
922
937
  },
923
938
  collapseSubtasks: "Collapse subtasks",
924
939
  expandSubtasks: "Expand subtasks"
925
- }, Fe = {
940
+ }, Le = {
926
941
  queued: {
927
- icon: te,
942
+ icon: ne,
928
943
  cls: "text-muted-foreground"
929
944
  },
930
945
  running: {
@@ -941,14 +956,14 @@ var Pe = {
941
956
  cls: "text-destructive"
942
957
  },
943
958
  cancelled: {
944
- icon: ue,
959
+ icon: de,
945
960
  cls: "text-muted-foreground"
946
961
  },
947
962
  skipped: {
948
- icon: se,
963
+ icon: ce,
949
964
  cls: "text-muted-foreground"
950
965
  }
951
- }, Ie = {
966
+ }, Re = {
952
967
  queued: "secondary",
953
968
  running: "info",
954
969
  completed: "success",
@@ -956,18 +971,18 @@ var Pe = {
956
971
  cancelled: "secondary",
957
972
  skipped: "secondary"
958
973
  };
959
- function Le({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
960
- let s = t(Pe, o), c = {
961
- status: Q(e, (e) => Z(e.status ?? "queued")),
962
- slot: Q(e, (e) => e.rightSlot != null && e.rightSlot !== !1)
974
+ function ze({ task: e, density: r = "compact", indent: i = 18, className: a, strings: o }) {
975
+ let s = t(Ie, o), c = {
976
+ status: Z(e, (e) => X(e.status ?? "queued")),
977
+ slot: Z(e, (e) => e.rightSlot != null && e.rightSlot !== !1)
963
978
  };
964
979
  return /* @__PURE__ */ N(u, {
965
980
  surface: "card",
966
981
  padding: "none",
967
982
  className: n("ai-task--component", a),
968
983
  children: /* @__PURE__ */ N("div", {
969
- className: n("ai-task--rows grid gap-x-space-md", Re[Number(c.status) + Number(c.slot)]),
970
- children: /* @__PURE__ */ N(ze, {
984
+ className: n("ai-task--rows grid gap-x-space-md", Be[Number(c.status) + Number(c.slot)]),
985
+ children: /* @__PURE__ */ N(Ve, {
971
986
  item: e,
972
987
  depth: 0,
973
988
  density: r,
@@ -978,20 +993,20 @@ function Le({ task: e, density: r = "compact", indent: i = 18, className: a, str
978
993
  })
979
994
  });
980
995
  }
981
- function Z(e) {
996
+ function X(e) {
982
997
  return e !== "completed";
983
998
  }
984
- function Q(e, t) {
985
- return t(e) || !!e.children?.some((e) => Q(e, t));
999
+ function Z(e, t) {
1000
+ return t(e) || !!e.children?.some((e) => Z(e, t));
986
1001
  }
987
- var Re = [
1002
+ var Be = [
988
1003
  "grid-cols-1",
989
1004
  "grid-cols-[minmax(0,1fr)_auto]",
990
1005
  "grid-cols-[minmax(0,1fr)_auto_auto]"
991
1006
  ];
992
- Le.displayName = "AiTask";
993
- function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }) {
994
- let l = e.status ?? "queued", u = Fe[l], d = e.icon ?? u.icon, f = !!e.children?.length, [p, m] = j(a === "expanded" || t === 0), h = l === "queued" || l === "cancelled" || l === "skipped";
1007
+ ze.displayName = "AiTask";
1008
+ function Ve({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }) {
1009
+ let l = e.status ?? "queued", u = Le[l], d = e.icon ?? u.icon, f = !!e.children?.length, [p, m] = j(a === "expanded" || t === 0), h = l === "queued" || l === "cancelled" || l === "skipped";
995
1010
  return /* @__PURE__ */ P(M, { children: [/* @__PURE__ */ P("div", {
996
1011
  className: n("ai-task--row col-span-full grid grid-cols-subgrid items-start px-row-x py-row-y", t > 0 && "border-t border-border/60"),
997
1012
  children: [
@@ -1037,15 +1052,15 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
1037
1052
  }),
1038
1053
  s.status && /* @__PURE__ */ N("span", {
1039
1054
  className: "ai-task--status flex min-h-action-sm items-center justify-end",
1040
- children: Z(l) ? /* @__PURE__ */ N(v, {
1041
- tone: Ie[l],
1055
+ children: X(l) ? /* @__PURE__ */ N(v, {
1056
+ tone: Re[l],
1042
1057
  children: c.statusLabels[l]
1043
1058
  }) : /* @__PURE__ */ N("span", {
1044
1059
  className: "sr-only",
1045
1060
  children: c.statusLabels[l]
1046
1061
  })
1047
1062
  }),
1048
- !s.status && !Z(l) && /* @__PURE__ */ N("span", {
1063
+ !s.status && !X(l) && /* @__PURE__ */ N("span", {
1049
1064
  className: "sr-only",
1050
1065
  children: c.statusLabels[l]
1051
1066
  }),
@@ -1056,7 +1071,7 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
1056
1071
  ]
1057
1072
  }), f && p && /* @__PURE__ */ N("div", {
1058
1073
  className: "ai-task--children col-span-full grid grid-cols-subgrid",
1059
- children: e.children.map((e) => /* @__PURE__ */ N(ze, {
1074
+ children: e.children.map((e) => /* @__PURE__ */ N(Ve, {
1060
1075
  item: e,
1061
1076
  depth: t + 1,
1062
1077
  density: a,
@@ -1068,7 +1083,7 @@ function ze({ item: e, depth: t, density: a, indent: o, columns: s, strings: c }
1068
1083
  }
1069
1084
  //#endregion
1070
1085
  //#region src/components/blocks/ai/ai-artifact/types.ts
1071
- var $ = {
1086
+ var Q = {
1072
1087
  openAria: "Open artifact",
1073
1088
  copy: "Copy",
1074
1089
  copied: "Copied",
@@ -1079,8 +1094,8 @@ var $ = {
1079
1094
  };
1080
1095
  //#endregion
1081
1096
  //#region src/components/blocks/ai/ai-artifact/ai-artifact.tsx
1082
- function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: g, strings: v }) {
1083
- let y = t($, v), b = o ?? ae, { copied: x, failed: S, copy: C } = H(h, s);
1097
+ function $({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapsed: d = !1, onOpen: f, actions: p, onDownload: m, onCopyError: h, className: g, strings: v }) {
1098
+ let y = t(Q, v), b = o ?? oe, { copied: x, failed: S, copy: C } = H(h, s);
1084
1099
  return /* @__PURE__ */ P(u, {
1085
1100
  surface: "card",
1086
1101
  padding: "none",
@@ -1136,7 +1151,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1136
1151
  onClick: async () => {
1137
1152
  s && await C(s);
1138
1153
  },
1139
- children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(ne, { className: "size-icon-md" })
1154
+ children: x ? /* @__PURE__ */ N(L, { className: "size-icon-md text-success" }) : /* @__PURE__ */ N(re, { className: "size-icon-md" })
1140
1155
  }),
1141
1156
  !!m && /* @__PURE__ */ N(r, {
1142
1157
  type: "button",
@@ -1146,7 +1161,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1146
1161
  iconOnly: !0,
1147
1162
  "aria-label": y.downloadAria,
1148
1163
  onClick: m,
1149
- children: /* @__PURE__ */ N(re, { className: "size-icon-md" })
1164
+ children: /* @__PURE__ */ N(ie, { className: "size-icon-md" })
1150
1165
  }),
1151
1166
  !!f && /* @__PURE__ */ N(r, {
1152
1167
  type: "button",
@@ -1156,7 +1171,7 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1156
1171
  iconOnly: !0,
1157
1172
  "aria-label": y.openAria,
1158
1173
  onClick: f,
1159
- children: /* @__PURE__ */ N(ie, { className: "size-icon-md" })
1174
+ children: /* @__PURE__ */ N(ae, { className: "size-icon-md" })
1160
1175
  })
1161
1176
  ]
1162
1177
  })]
@@ -1172,14 +1187,14 @@ function Be({ title: e, subtitle: a, icon: o, copyText: s, children: l, collapse
1172
1187
  role: "alert",
1173
1188
  size: "xs",
1174
1189
  type: "error",
1175
- children: y.copyError ?? $.copyError
1190
+ children: y.copyError ?? Q.copyError
1176
1191
  })
1177
1192
  })
1178
1193
  ]
1179
1194
  });
1180
1195
  }
1181
- Be.displayName = "AiArtifact";
1196
+ $.displayName = "AiArtifact";
1182
1197
  //#endregion
1183
- export { U as C, W as S, me as _, Ne as a, K as b, ke as c, xe as d, ye as f, Y as g, he as h, Pe as i, we as l, ge as m, $ as n, je as o, ve as p, Le as r, X as s, Be as t, Se as u, pe as v, G as x, J as y };
1198
+ export { U as C, W as S, he as _, Fe as a, K as b, Ae as c, Se as d, be as f, Y as g, ge as h, Ie as i, Te as l, _e as m, Q as n, Ne as o, ye as p, ze as r, Me as s, $ as t, Ce as u, me as v, G as x, J as y };
1184
1199
 
1185
- //# sourceMappingURL=ai-artifact-C58tQcBy.js.map
1200
+ //# sourceMappingURL=ai-artifact-CGGpQryR.js.map