themelia-react-ui 2.0.0 → 2.0.2

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 (707) hide show
  1. package/CHANGELOG.md +527 -0
  2. package/README.md +47 -14
  3. package/THIRD_PARTY_NOTICES.md +13 -0
  4. package/dist/accordion-Cjb6sx0G.js +208 -0
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
  17. package/dist/auth-ax2BqjrI.js.map +1 -0
  18. package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/badge-HpFqoqSY.js +93 -0
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +3 -0
  28. package/dist/base/buttons.js +2 -3
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +50 -46
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +69 -81
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +3 -3
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +7 -7
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +20 -20
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +3 -0
  50. package/dist/base/navigation.js +7 -7
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +216 -220
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +147 -137
  59. package/dist/base/signature-pad.js.map +1 -1
  60. package/dist/base/skeleton.js +1 -1
  61. package/dist/base/spinner.js +79 -2
  62. package/dist/base/spinner.js.map +1 -0
  63. package/dist/base/structure.js +1 -1
  64. package/dist/base/table.js +1 -1
  65. package/dist/base/text-inputs.js +2 -2
  66. package/dist/base/toaster.js +46 -45
  67. package/dist/base/toaster.js.map +1 -1
  68. package/dist/base/tree.js +1 -1
  69. package/dist/base/upload-queue.js +1 -1
  70. package/dist/base/upload.js +3 -3
  71. package/dist/base/value-inputs.js +2 -2
  72. package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
  73. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  74. package/dist/blocks/admin.js +171 -169
  75. package/dist/blocks/admin.js.map +1 -1
  76. package/dist/blocks/ai.js +308 -285
  77. package/dist/blocks/ai.js.map +1 -1
  78. package/dist/blocks/analytics/usage-card.js +1 -1
  79. package/dist/blocks/analytics.js +626 -589
  80. package/dist/blocks/analytics.js.map +1 -1
  81. package/dist/blocks/collaboration.js +1 -1
  82. package/dist/blocks/commerce/receipt.js +1 -1
  83. package/dist/blocks/commerce.js +2051 -1329
  84. package/dist/blocks/commerce.js.map +1 -1
  85. package/dist/blocks/data-display.js +3 -2
  86. package/dist/blocks/onboarding.js +68 -58
  87. package/dist/blocks/onboarding.js.map +1 -1
  88. package/dist/blocks/planning.js +27 -26
  89. package/dist/blocks/planning.js.map +1 -1
  90. package/dist/blocks/timelines.js +1 -1
  91. package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
  92. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  93. package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
  94. package/dist/button-DVzspB_G.js.map +1 -0
  95. package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
  96. package/dist/buttons-DPZekJFu.js.map +1 -0
  97. package/dist/cards-BaBZR-AU.js +68 -0
  98. package/dist/cards-BaBZR-AU.js.map +1 -0
  99. package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
  100. package/dist/chart-ZOYyK2xG.js.map +1 -0
  101. package/dist/checkbox-AWIhNhmo.js +36 -0
  102. package/dist/checkbox-AWIhNhmo.js.map +1 -0
  103. package/dist/choice-inputs-CNHvARCJ.js +770 -0
  104. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  105. package/dist/code-block-DeneBJR_.js +185 -0
  106. package/dist/code-block-DeneBJR_.js.map +1 -0
  107. package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
  108. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  109. package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
  110. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
  111. package/dist/combobox-C0EQW6dr.js +875 -0
  112. package/dist/combobox-C0EQW6dr.js.map +1 -0
  113. package/dist/combobox-xCQ2RMNE.js +309 -0
  114. package/dist/combobox-xCQ2RMNE.js.map +1 -0
  115. package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
  116. package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
  117. package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
  118. package/dist/comments-BYYlTA8E.js.map +1 -0
  119. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  120. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  121. package/dist/components/base/action-menu/index.d.ts +1 -0
  122. package/dist/components/base/badge/badge.recipes.d.ts +5 -5
  123. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  124. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  125. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  126. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  127. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  128. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  129. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  130. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  131. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  132. package/dist/components/base/chart/chart.d.ts +2 -5
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  135. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  136. package/dist/components/base/combobox/index.d.ts +30 -4
  137. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  138. package/dist/components/base/display/dialog.d.ts +4 -8
  139. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  140. package/dist/components/base/forms/form-sizing.d.ts +26 -15
  141. package/dist/components/base/metadata-list/index.d.ts +12 -0
  142. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  143. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  144. package/dist/components/base/navigation/index.d.ts +1 -1
  145. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  146. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  147. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  148. package/dist/components/base/navigation/pagination.d.ts +5 -2
  149. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  150. package/dist/components/base/sheet/sheet.d.ts +4 -8
  151. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  152. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  153. package/dist/components/base/table/index.d.ts +9 -2
  154. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  155. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  156. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  157. package/dist/components/base/value-inputs/index.d.ts +5 -5
  158. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  159. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  160. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  161. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  162. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  163. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  164. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  165. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  166. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  167. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  168. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  169. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  170. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
  172. package/dist/components/blocks/commerce/index.d.ts +13 -5
  173. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  174. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  175. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  176. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  177. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  178. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  179. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  180. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  181. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  182. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  183. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  184. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  185. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  186. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  187. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  188. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  189. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  190. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  191. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  192. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  193. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  194. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  195. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  196. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  197. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  198. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  199. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  200. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  201. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  202. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  203. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  204. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  205. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  206. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  207. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  208. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  209. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  210. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  211. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  212. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  213. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  214. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  215. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  216. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  217. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  218. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  219. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  220. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  221. package/dist/components/features/combobox/types.d.ts +4 -0
  222. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  223. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  224. package/dist/components/features/kanban/kanban.d.ts +1 -1
  225. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  226. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  227. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  228. package/dist/components/features/media-library/index.d.ts +1 -1
  229. package/dist/components/features/media-library/media-library.d.ts +1 -1
  230. package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
  231. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  232. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  233. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  234. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  235. package/dist/components/features/overlays/dialog.d.ts +1 -1
  236. package/dist/components/features/overlays/index.d.ts +1 -1
  237. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  238. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  239. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  240. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  241. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  242. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  243. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  244. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  245. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  246. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  247. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  248. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  249. package/dist/components/features/products/products.types.d.ts +9 -2
  250. package/dist/components/features/resource/index.d.ts +1 -1
  251. package/dist/components/features/resource/resource.d.ts +1 -1
  252. package/dist/components/features/resource/resource.types.d.ts +34 -6
  253. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  254. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  255. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  256. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  257. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
  258. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  259. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
  260. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  261. package/dist/components/features/sync/index.d.ts +26 -3
  262. package/dist/components/features/table/data-table.d.ts +1 -1
  263. package/dist/components/features/table/table-header.d.ts +1 -1
  264. package/dist/components/features/table/table.strings.d.ts +55 -1
  265. package/dist/components/features/table/table.types.d.ts +49 -11
  266. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  267. package/dist/components/layout/page/index.d.ts +1 -1
  268. package/dist/components/layout/page/page.types.d.ts +33 -36
  269. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  270. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  271. package/dist/components/layout/settings/settings.d.ts +16 -2
  272. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  273. package/dist/components/primitives/number.d.ts +4 -2
  274. package/dist/components/primitives/value.d.ts +3 -1
  275. package/dist/components/typography/rich-text/index.d.ts +1 -1
  276. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  277. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  278. package/dist/components/typography/text-link.d.ts +8 -3
  279. package/dist/components/ui/checkbox.d.ts +4 -3
  280. package/dist/components/ui/combobox.d.ts +6 -2
  281. package/dist/components/ui/item.d.ts +8 -8
  282. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  283. package/dist/components/ui/switch.d.ts +2 -2
  284. package/dist/components/ui/tabs.d.ts +1 -1
  285. package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
  286. package/dist/containers-Mu1LMGV1.js.map +1 -0
  287. package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
  288. package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
  289. package/dist/data-display-DT_khPl_.js +971 -0
  290. package/dist/data-display-DT_khPl_.js.map +1 -0
  291. package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
  292. package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
  293. package/dist/date-picker-ay0Pha_a.js +1530 -0
  294. package/dist/date-picker-ay0Pha_a.js.map +1 -0
  295. package/dist/date-pickers-Ccw8DL2b.js +175 -0
  296. package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
  297. package/dist/display-hAc1HjpI.js +344 -0
  298. package/dist/display-hAc1HjpI.js.map +1 -0
  299. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  300. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  301. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  302. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  303. package/dist/features/activities.js +478 -542
  304. package/dist/features/activities.js.map +1 -1
  305. package/dist/features/ai-chat.js +209 -199
  306. package/dist/features/ai-chat.js.map +1 -1
  307. package/dist/features/appointment-calendar.js +683 -0
  308. package/dist/features/appointment-calendar.js.map +1 -0
  309. package/dist/features/async-preview.js +109 -107
  310. package/dist/features/async-preview.js.map +1 -1
  311. package/dist/features/combobox.js +1 -1
  312. package/dist/features/comments.js +1 -1
  313. package/dist/features/data-view.js +30 -29
  314. package/dist/features/data-view.js.map +1 -1
  315. package/dist/features/email-composer/engine.js +1 -1
  316. package/dist/features/email-composer.js +285 -283
  317. package/dist/features/email-composer.js.map +1 -1
  318. package/dist/features/event-calendar.js +282 -273
  319. package/dist/features/event-calendar.js.map +1 -1
  320. package/dist/features/filters.js +1 -1
  321. package/dist/features/global-search.js +318 -318
  322. package/dist/features/global-search.js.map +1 -1
  323. package/dist/features/kanban.js +146 -147
  324. package/dist/features/kanban.js.map +1 -1
  325. package/dist/features/map.js +269 -268
  326. package/dist/features/map.js.map +1 -1
  327. package/dist/features/media-library.js +970 -863
  328. package/dist/features/media-library.js.map +1 -1
  329. package/dist/features/mentions.js +1 -1
  330. package/dist/features/overlays.js +1 -1
  331. package/dist/features/products.js +1137 -1124
  332. package/dist/features/products.js.map +1 -1
  333. package/dist/features/questionnaire.js +206 -194
  334. package/dist/features/questionnaire.js.map +1 -1
  335. package/dist/features/resource-assignment.js +24 -21
  336. package/dist/features/resource-assignment.js.map +1 -1
  337. package/dist/features/resource.js +77 -69
  338. package/dist/features/resource.js.map +1 -1
  339. package/dist/features/rich-text-editor.js +30 -11
  340. package/dist/features/rich-text-editor.js.map +1 -1
  341. package/dist/features/schema-form.js +35 -33
  342. package/dist/features/schema-form.js.map +1 -1
  343. package/dist/features/suggestions.js +3 -3
  344. package/dist/features/sync.js +11 -5
  345. package/dist/features/sync.js.map +1 -1
  346. package/dist/features/table.js +1 -1
  347. package/dist/features/theme-tweaker.js +501 -496
  348. package/dist/features/theme-tweaker.js.map +1 -1
  349. package/dist/feedback-BYIhtitP.js +239 -0
  350. package/dist/feedback-BYIhtitP.js.map +1 -0
  351. package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
  352. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  353. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  354. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  355. package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
  356. package/dist/filters-BGfvjP4d.js.map +1 -0
  357. package/dist/focus-recipes-B653VaLq.js +12 -0
  358. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  359. package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
  360. package/dist/form-field-CwH9y77i.js.map +1 -0
  361. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
  362. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  363. package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
  364. package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
  365. package/dist/forms-numeric-B_jraJaQ.js +906 -0
  366. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  367. package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
  368. package/dist/header-CGXuhcRm.js.map +1 -0
  369. package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
  370. package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
  371. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  372. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  373. package/dist/icon-badge-DYKIwvOV.js +55 -0
  374. package/dist/icon-badge-DYKIwvOV.js.map +1 -0
  375. package/dist/index.js +7 -7
  376. package/dist/input-CZw8iU99.js +21 -0
  377. package/dist/input-CZw8iU99.js.map +1 -0
  378. package/dist/input-DQdEd0YD.js +263 -0
  379. package/dist/input-DQdEd0YD.js.map +1 -0
  380. package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
  381. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  382. package/dist/item-K5_ghvze.js +275 -0
  383. package/dist/item-K5_ghvze.js.map +1 -0
  384. package/dist/layer-recipes-CCpklYME.js +13 -0
  385. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  386. package/dist/layout/app-shell.js +1 -1
  387. package/dist/layout/auth.js +1 -1
  388. package/dist/layout/containers.js +1 -1
  389. package/dist/layout/header.js +1 -1
  390. package/dist/layout/hooks.js +1 -1
  391. package/dist/layout/navigation.js +1 -1
  392. package/dist/layout/page.js +1 -1
  393. package/dist/layout/settings.js +1 -1
  394. package/dist/layout/sidebar.js +2 -2
  395. package/dist/layout/workspace.js +1 -1
  396. package/dist/layout.js +10 -10
  397. package/dist/lib/affordance-geometry.generated.d.ts +72 -0
  398. package/dist/lib/editable-text-recipe.d.ts +4 -4
  399. package/dist/lib/field-affordance-recipes.d.ts +8 -3
  400. package/dist/lib/field-state-recipes.d.ts +9 -8
  401. package/dist/lib/focus-recipes.d.ts +24 -0
  402. package/dist/lib/interaction-recipes.d.ts +40 -0
  403. package/dist/lib/layer-recipes.d.ts +19 -0
  404. package/dist/lib/motion-recipes.d.ts +1 -0
  405. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  406. package/dist/lib/safe-image-src.d.ts +10 -0
  407. package/dist/lib/sanitize-html.d.ts +15 -3
  408. package/dist/lib/surface-recipes.d.ts +47 -7
  409. package/dist/lib/theme-mode-css.d.ts +7 -0
  410. package/dist/lib/token-merge.generated.d.ts +9 -6
  411. package/dist/lib/tone-recipes.d.ts +87 -0
  412. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  413. package/dist/lib/ui-provider/index.d.ts +2 -2
  414. package/dist/lib/ui-provider/types.d.ts +11 -2
  415. package/dist/lib/utils.js +1 -1
  416. package/dist/media-gallery-3zIVLMWH.js +203 -0
  417. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  418. package/dist/mentions-utuUvH1K.js +570 -0
  419. package/dist/mentions-utuUvH1K.js.map +1 -0
  420. package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
  421. package/dist/message-DZ_ruyUV.js.map +1 -0
  422. package/dist/metadata-list-8N16ZMW_.js +405 -0
  423. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  424. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  425. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  426. package/dist/navigation-Bnotn4AQ.js +145 -0
  427. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  428. package/dist/navigation-BzhHI3lo.js +269 -0
  429. package/dist/navigation-BzhHI3lo.js.map +1 -0
  430. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  431. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  432. package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
  433. package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
  434. package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
  435. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  436. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  437. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  438. package/dist/overlays-DNWmZrJ4.js +1001 -0
  439. package/dist/overlays-DNWmZrJ4.js.map +1 -0
  440. package/dist/page-Bgl1F560.js +224 -0
  441. package/dist/page-Bgl1F560.js.map +1 -0
  442. package/dist/page-header-commands-DOb6WsfD.js +126 -0
  443. package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
  444. package/dist/pagination-BL25hu2s.js +158 -0
  445. package/dist/pagination-BL25hu2s.js.map +1 -0
  446. package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
  447. package/dist/popover-7_m66eYW.js.map +1 -0
  448. package/dist/popover-menu-B9WWygpa.js +100 -0
  449. package/dist/popover-menu-B9WWygpa.js.map +1 -0
  450. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
  451. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  452. package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
  453. package/dist/primitives-BFK08r9M.js.map +1 -0
  454. package/dist/primitives.js +4 -4
  455. package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
  456. package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
  457. package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
  458. package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  459. package/dist/rich-text-GOUyKQ-s.js +78 -0
  460. package/dist/rich-text-GOUyKQ-s.js.map +1 -0
  461. package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
  462. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  463. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  464. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  465. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  466. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  467. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  468. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  469. package/dist/sanitize-html-DsQmI48u.js +92 -0
  470. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  471. package/dist/scroll-area-DcI-M1UT.js +48 -0
  472. package/dist/scroll-area-DcI-M1UT.js.map +1 -0
  473. package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
  474. package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
  475. package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
  476. package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
  477. package/dist/services/actions/action-adapters.d.ts +18 -0
  478. package/dist/services/actions/index.d.ts +1 -1
  479. package/dist/services/actions.js +16 -4
  480. package/dist/services/actions.js.map +1 -1
  481. package/dist/settings-ybnjVwbd.js +171 -0
  482. package/dist/settings-ybnjVwbd.js.map +1 -0
  483. package/dist/sheet-CGpB3omz.js +211 -0
  484. package/dist/sheet-CGpB3omz.js.map +1 -0
  485. package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
  486. package/dist/sidebar-A0ElHINE.js.map +1 -0
  487. package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
  488. package/dist/sidebar-CPx_7YBa.js.map +1 -0
  489. package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
  490. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  491. package/dist/smart-card-DiC5aac3.js +604 -0
  492. package/dist/smart-card-DiC5aac3.js.map +1 -0
  493. package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
  494. package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
  495. package/dist/style.css +1 -1
  496. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  497. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  498. package/dist/table-BweFy_P9.js +1530 -0
  499. package/dist/table-BweFy_P9.js.map +1 -0
  500. package/dist/table-DsfzoUia.js +175 -0
  501. package/dist/table-DsfzoUia.js.map +1 -0
  502. package/dist/tabs-CDocW5D1.js +191 -0
  503. package/dist/tabs-CDocW5D1.js.map +1 -0
  504. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  505. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  506. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  507. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  508. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  509. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  510. package/dist/theme.css +285 -228
  511. package/dist/themes/green.css +16 -12
  512. package/dist/timelines-CwM_9IhD.js +457 -0
  513. package/dist/timelines-CwM_9IhD.js.map +1 -0
  514. package/dist/tone-recipes-BPsRAvhu.js +73 -0
  515. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  516. package/dist/tooltip-yiRJUFjp.js +111 -0
  517. package/dist/tooltip-yiRJUFjp.js.map +1 -0
  518. package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
  519. package/dist/tree-WnKQzwbq.js.map +1 -0
  520. package/dist/typography/rich-text.js +1 -1
  521. package/dist/typography-UTnveOEy.js +117 -0
  522. package/dist/typography-UTnveOEy.js.map +1 -0
  523. package/dist/typography.js +2 -2
  524. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
  525. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  526. package/dist/ui-provider.js +3 -3
  527. package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
  528. package/dist/upload-CXyxmQBP.js.map +1 -0
  529. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
  530. package/dist/upload-queue-Boscubn9.js.map +1 -0
  531. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  532. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  533. package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
  534. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  535. package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
  536. package/dist/utils-BRhFDwuU.js.map +1 -0
  537. package/dist/value-inputs-DXPDjvBU.js +963 -0
  538. package/dist/value-inputs-DXPDjvBU.js.map +1 -0
  539. package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
  540. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  541. package/dist/workspace-Cdrg7k9f.js +408 -0
  542. package/dist/workspace-Cdrg7k9f.js.map +1 -0
  543. package/docs/consumer-skill/SKILL.md +21 -22
  544. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  545. package/docs/consumer-skill/examples/composition.tsx +3 -3
  546. package/docs/consumer-skill/examples/detail.tsx +59 -12
  547. package/docs/consumer-skill/examples/edit.tsx +1 -1
  548. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  549. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  550. package/docs/consumer-skill/examples/website.tsx +1 -1
  551. package/docs/consumer-skill/references/agents-md.md +33 -0
  552. package/docs/consumer-skill/references/analytics.md +1 -1
  553. package/docs/consumer-skill/references/composition.md +58 -13
  554. package/docs/consumer-skill/references/design-contract.md +12 -3
  555. package/docs/consumer-skill/references/installation.md +11 -1
  556. package/docs/consumer-skill/references/integration.md +4 -3
  557. package/docs/consumer-skill/references/public-api.json +956 -453
  558. package/docs/consumer-skill/references/review.md +32 -5
  559. package/docs/consumer-skill/references/theming.md +78 -9
  560. package/docs/consumer-skill/references/tokens.json +1 -1
  561. package/docs/consumer-skill/references/workflows.md +54 -10
  562. package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
  563. package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
  564. package/package.json +17 -5
  565. package/dist/accordion-CQXVcd7Q.js +0 -205
  566. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  567. package/dist/action-menu-BTpyPWJ2.js +0 -264
  568. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  569. package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
  570. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  571. package/dist/ai-artifact-2PQ2fItc.js +0 -1112
  572. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  573. package/dist/attachment-q69dlt5Y.js +0 -244
  574. package/dist/attachment-q69dlt5Y.js.map +0 -1
  575. package/dist/auth-M3vGMgDR.js.map +0 -1
  576. package/dist/avatar-djdaaQ_s.js.map +0 -1
  577. package/dist/badge-0tATj-tW.js +0 -92
  578. package/dist/badge-0tATj-tW.js.map +0 -1
  579. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  580. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  581. package/dist/button-BS3KDg00.js.map +0 -1
  582. package/dist/button-R9CCoH7A.js.map +0 -1
  583. package/dist/buttons-DS0ZIwJ_.js +0 -99
  584. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  585. package/dist/cards-QoJ4syG9.js +0 -66
  586. package/dist/cards-QoJ4syG9.js.map +0 -1
  587. package/dist/chart-DwYRKKc-.js.map +0 -1
  588. package/dist/checkbox-B7ygNTYp.js +0 -35
  589. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  590. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  591. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  592. package/dist/code-block-CD0B7M93.js +0 -183
  593. package/dist/code-block-CD0B7M93.js.map +0 -1
  594. package/dist/combobox-6dvVny2q.js +0 -272
  595. package/dist/combobox-6dvVny2q.js.map +0 -1
  596. package/dist/combobox-CB7039j7.js +0 -865
  597. package/dist/combobox-CB7039j7.js.map +0 -1
  598. package/dist/comments-You0Bzbr.js.map +0 -1
  599. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  600. package/dist/containers-D_L4mTVb.js.map +0 -1
  601. package/dist/data-display-3xWQUnMA.js +0 -1335
  602. package/dist/data-display-3xWQUnMA.js.map +0 -1
  603. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  604. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  605. package/dist/date-pickers-CnFCb0n2.js +0 -174
  606. package/dist/date-pickers-CnFCb0n2.js.map +0 -1
  607. package/dist/display-DrdvPwF0.js +0 -343
  608. package/dist/display-DrdvPwF0.js.map +0 -1
  609. package/dist/dropdown-menu-CURh59jb.js +0 -193
  610. package/dist/dropdown-menu-CURh59jb.js.map +0 -1
  611. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  612. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  613. package/dist/feedback-C7nR0UtT.js +0 -232
  614. package/dist/feedback-C7nR0UtT.js.map +0 -1
  615. package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
  616. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  617. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  618. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  619. package/dist/filters-Da-gNPsE.js.map +0 -1
  620. package/dist/form-field-VZRULhUK.js.map +0 -1
  621. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  622. package/dist/forms-numeric-D3CO60IF.js +0 -905
  623. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  624. package/dist/header-2ycNqGOR.js.map +0 -1
  625. package/dist/icon-badge-DKlaKXoo.js +0 -53
  626. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  627. package/dist/input-BoLm9Hks.js +0 -20
  628. package/dist/input-BoLm9Hks.js.map +0 -1
  629. package/dist/input-DhQdBnV3.js +0 -255
  630. package/dist/input-DhQdBnV3.js.map +0 -1
  631. package/dist/item-xzh8Df65.js +0 -264
  632. package/dist/item-xzh8Df65.js.map +0 -1
  633. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  634. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  635. package/dist/mentions-DwnO1hh4.js +0 -564
  636. package/dist/mentions-DwnO1hh4.js.map +0 -1
  637. package/dist/message-YfFmbXNP.js.map +0 -1
  638. package/dist/navigation-Cbp5V8gG.js +0 -264
  639. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  640. package/dist/navigation-Cs1npsPm.js +0 -300
  641. package/dist/navigation-Cs1npsPm.js.map +0 -1
  642. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  643. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  644. package/dist/overlays-DhZO7N-I.js +0 -994
  645. package/dist/overlays-DhZO7N-I.js.map +0 -1
  646. package/dist/page-C6R_8jFt.js +0 -325
  647. package/dist/page-C6R_8jFt.js.map +0 -1
  648. package/dist/page-header-hUTzcRZX.js +0 -112
  649. package/dist/page-header-hUTzcRZX.js.map +0 -1
  650. package/dist/pagination-Cm0jqa3I.js +0 -149
  651. package/dist/pagination-Cm0jqa3I.js.map +0 -1
  652. package/dist/popover-Dcv_9jxr.js.map +0 -1
  653. package/dist/popover-menu-DnRFKnHP.js +0 -99
  654. package/dist/popover-menu-DnRFKnHP.js.map +0 -1
  655. package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
  656. package/dist/primitives-BHrwQXFC.js.map +0 -1
  657. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  658. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  659. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  660. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  661. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  662. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  663. package/dist/rich-text-j-FGAeZW.js +0 -32
  664. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  665. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  666. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  667. package/dist/scroll-area-DRdr16Pt.js +0 -47
  668. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  669. package/dist/settings-DHk0L2MF.js +0 -161
  670. package/dist/settings-DHk0L2MF.js.map +0 -1
  671. package/dist/sheet-DRFNY1_D.js +0 -207
  672. package/dist/sheet-DRFNY1_D.js.map +0 -1
  673. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  674. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  675. package/dist/smart-card-Bek-TwUp.js +0 -599
  676. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  677. package/dist/spinner-CmTAbEp0.js +0 -80
  678. package/dist/spinner-CmTAbEp0.js.map +0 -1
  679. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  680. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  681. package/dist/table-D6zKeYQX.js +0 -162
  682. package/dist/table-D6zKeYQX.js.map +0 -1
  683. package/dist/table-Dn4XSrSB.js +0 -1444
  684. package/dist/table-Dn4XSrSB.js.map +0 -1
  685. package/dist/tabs-Dk8E_knt.js +0 -189
  686. package/dist/tabs-Dk8E_knt.js.map +0 -1
  687. package/dist/text-inputs-BFpku0Qd.js +0 -331
  688. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  689. package/dist/theme-scope-kStaAer0.js +0 -39
  690. package/dist/theme-scope-kStaAer0.js.map +0 -1
  691. package/dist/timelines-CxuAFIc2.js +0 -439
  692. package/dist/timelines-CxuAFIc2.js.map +0 -1
  693. package/dist/tree-BotPlyiD.js.map +0 -1
  694. package/dist/typography-CAr3dQhX.js +0 -116
  695. package/dist/typography-CAr3dQhX.js.map +0 -1
  696. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  697. package/dist/upload-B0WHW7ak.js.map +0 -1
  698. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  699. package/dist/usage-card-U0YBLTNT.js.map +0 -1
  700. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  701. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  702. package/dist/utils-Cospvlj1.js.map +0 -1
  703. package/dist/value-inputs-CjfzGMsN.js +0 -854
  704. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  705. package/dist/workspace-YoFjXi6i.js +0 -394
  706. package/dist/workspace-YoFjXi6i.js.map +0 -1
  707. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,28 +1,28 @@
1
1
  "use client";
2
2
  import { useStrings as e } from "../lib/strings.js";
3
- import { t } from "../utils-Cospvlj1.js";
4
- import { s as n } from "../typography-CAr3dQhX.js";
5
- import { t as r } from "../button-BS3KDg00.js";
6
- import { i, t as a } from "../structure-hzCW-XsV.js";
7
- import { h as o, p as s, t as c, v as l } from "../smart-card-Bek-TwUp.js";
8
- import { n as u, t as d } from "../feedback-C7nR0UtT.js";
9
- import { n as f, t as p } from "../action-menu-BTpyPWJ2.js";
10
- import { n as m, r as h, t as g } from "../overlays-DhZO7N-I.js";
3
+ import { t } from "../utils-BRhFDwuU.js";
4
+ import { n } from "../buttons-DPZekJFu.js";
5
+ import { c as r } from "../typography-UTnveOEy.js";
6
+ import { i, t as a } from "../structure-BmisBK-3.js";
7
+ import { h as o, p as s, t as c, v as l } from "../smart-card-DiC5aac3.js";
8
+ import { n as u, t as d } from "../feedback-BYIhtitP.js";
9
+ import { n as f, t as p } from "../action-menu-CllU52Mm.js";
10
+ import { n as m, r as h, t as g } from "../overlays-DNWmZrJ4.js";
11
11
  import { n as _ } from "../content-typography-CnwgMJ37.js";
12
- import { t as v } from "../accordion-CQXVcd7Q.js";
13
- import { t as y } from "../input-DhQdBnV3.js";
14
- import { t as b } from "../form-field-VZRULhUK.js";
15
- import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-BFpku0Qd.js";
16
- import { c as E } from "../choice-inputs-DrJ17tpL.js";
17
- import { t as ee } from "../scroll-area-DRdr16Pt.js";
18
- import { i as D, n as O, r as te, t as k } from "../tabs-Dk8E_knt.js";
19
- import { t as A } from "../popover-menu-DnRFKnHP.js";
20
- import { n as j, t as M } from "../rich-text-editor.recipes-CnrbmTS1.js";
21
- import { t as N } from "../rich-text-editor.strings-BpnIQgMl.js";
22
- import { a as P, c as F, i as I, l as L, n as R, o as z, r as B, s as V, t as H, u as U } from "../http-CdEIHyQf.js";
23
- import { useEffect as W, useId as G, useImperativeHandle as K, useMemo as ne, useRef as q, useState as J } from "react";
24
- import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
25
- import { Bold as re, Italic as ie, Link as ae, List as oe, ListOrdered as se, Plus as ce, Redo2 as le, Undo2 as ue, X as de } from "lucide-react";
12
+ import { t as v } from "../accordion-Cjb6sx0G.js";
13
+ import { t as y } from "../input-DQdEd0YD.js";
14
+ import { t as b } from "../form-field-CwH9y77i.js";
15
+ import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-f9Ia-aCi.js";
16
+ import { l as E } from "../choice-inputs-CNHvARCJ.js";
17
+ import { t as ee } from "../scroll-area-DcI-M1UT.js";
18
+ import { i as D, n as O, r as te, t as ne } from "../tabs-CDocW5D1.js";
19
+ import { t as k } from "../popover-menu-B9WWygpa.js";
20
+ import { n as A, t as j } from "../rich-text-editor-toolbar-DfXg0-VC.js";
21
+ import { t as M } from "../rich-text-editor.strings-CB59ekH2.js";
22
+ import { a as N, c as P, i as F, l as I, n as L, o as R, r as z, s as B, t as V, u as H } from "../http-D_6rOnzU.js";
23
+ import { useEffect as U, useId as W, useImperativeHandle as G, useMemo as re, useRef as K, useState as q } from "react";
24
+ import { Fragment as J, jsx as Y, jsxs as X } from "react/jsx-runtime";
25
+ import { Bold as ie, Italic as ae, Link as oe, List as se, ListOrdered as ce, Plus as Z, Redo2 as le, Undo2 as ue, X as de } from "lucide-react";
26
26
  import { EditorContent as fe, Node as pe, generateJSON as me, mergeAttributes as he, useEditor as ge } from "@tiptap/react";
27
27
  import _e from "@tiptap/starter-kit";
28
28
  //#region src/components/features/email-composer/partials/data-status.tsx
@@ -30,7 +30,7 @@ function Q(e) {
30
30
  return !!(e?.loading || e?.error);
31
31
  }
32
32
  function ve({ state: e, label: t, retryLabel: n, report: r }) {
33
- return e?.loading ? /* @__PURE__ */ X(u, { label: t }) : e?.error ? /* @__PURE__ */ X(d, {
33
+ return e?.loading ? /* @__PURE__ */ Y(u, { label: t }) : e?.error ? /* @__PURE__ */ Y(d, {
34
34
  variant: "inline",
35
35
  description: e.error,
36
36
  retryLabel: n,
@@ -42,7 +42,7 @@ function ve({ state: e, label: t, retryLabel: n, report: r }) {
42
42
  //#endregion
43
43
  //#region src/components/features/email-composer/use-composer.ts
44
44
  function ye(t) {
45
- let n = e(U, t.strings), r = q(null);
45
+ let n = e(H, t.strings), r = K(null);
46
46
  r.current ||= structuredClone({
47
47
  to: [],
48
48
  cc: [],
@@ -50,12 +50,12 @@ function ye(t) {
50
50
  subject: "",
51
51
  body: {
52
52
  kind: "rich",
53
- document: L
53
+ document: I
54
54
  },
55
55
  placeholderOverrides: {},
56
56
  ...t.value ?? t.defaultValue
57
57
  });
58
- let [i, a] = J(r.current), o = t.value ?? i, s = q({
58
+ let [i, a] = q(r.current), o = t.value ?? i, s = K({
59
59
  props: t,
60
60
  draft: o,
61
61
  strings: n
@@ -65,25 +65,25 @@ function ye(t) {
65
65
  draft: o,
66
66
  strings: n
67
67
  };
68
- let c = q(o);
68
+ let c = K(o);
69
69
  t.value !== void 0 && (c.current = t.value);
70
- let l = q(null), u = q(null), [d, f] = J(!1), [p, m] = J(""), [h, g] = J(""), [_, v] = J(!1), [y, b] = J([]), x = q(!0);
71
- W(() => (x.current = !0, () => {
70
+ let l = K(null), u = K(null), [d, f] = q(!1), [p, m] = q(""), [h, g] = q(""), [_, v] = q(!1), [y, b] = q([]), x = K(!0);
71
+ U(() => (x.current = !0, () => {
72
72
  x.current = !1;
73
73
  }), []);
74
- let S = ne(() => {
74
+ let S = re(() => {
75
75
  let e = Object.create(null);
76
76
  for (let r of t.placeholders?.sets ?? []) for (let t of Object.keys(r.definitions)) {
77
77
  if (Object.hasOwn(e, t)) throw Error(n.duplicateVariable(t));
78
78
  r.definitions[t] && (e[t] = r.definitions[t]);
79
79
  }
80
80
  return e;
81
- }, [t.placeholders?.sets, n]), C = ne(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = q(C);
81
+ }, [t.placeholders?.sets, n]), C = re(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = K(C);
82
82
  if (w.current = C, new Set(C.map((e) => e.id)).size !== C.length) throw Error(n.duplicateTemplate);
83
- let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), ee = q(null), D = (e = T()) => {
83
+ let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), ee = K(null), D = (e = T()) => {
84
84
  let t = s.current.props.context, n = E(e), r = s.current.strings, i = ee.current;
85
85
  if (i && i.draft === e && i.context === t && i.definitions === S && i.template === n && i.strings === r) return i.result;
86
- let a = R(e, t, S, n, r);
86
+ let a = L(e, t, S, n, r);
87
87
  return ee.current = {
88
88
  draft: e,
89
89
  context: t,
@@ -106,54 +106,54 @@ function ye(t) {
106
106
  field: "placeholders",
107
107
  message: t.dataUnavailable
108
108
  }), n;
109
- }, te = O().length > 0, k = (e = T()) => structuredClone([...O(), ...D(e).issues]), A = () => {
109
+ }, te = O().length > 0, ne = (e = T()) => structuredClone([...O(), ...D(e).issues]), k = () => {
110
110
  let e = T(), t = [...D(e).rendered?.unresolved ?? []];
111
111
  return {
112
112
  draft: structuredClone(e),
113
113
  dirty: JSON.stringify(e) !== JSON.stringify(r.current),
114
114
  busy: u.current !== null,
115
- issues: k(e),
115
+ issues: ne(e),
116
116
  unresolvedPlaceholders: t
117
117
  };
118
- }, j = (e) => {
118
+ }, A = (e) => {
119
119
  let t = e instanceof Error ? e : Error(String(e));
120
120
  x.current && m(t.message), s.current.props.onError?.(t);
121
- }, M = (e, t = "api", n = !1) => {
121
+ }, j = (e, t = "api", n = !1) => {
122
122
  if (!x.current || !n && u.current && u.current !== "action") return;
123
123
  let r = structuredClone(e(structuredClone(T())));
124
124
  s.current.props.value === void 0 && (c.current = r, a(r)), s.current.props.onChange?.(structuredClone(r)), s.current.props.onEdit?.(structuredClone(r), { source: t }), m(""), g("");
125
- }, N = q(null);
126
- async function P(e, t, n = !1) {
125
+ }, M = K(null);
126
+ async function N(e, t, n = !1) {
127
127
  if (u.current && !(n && u.current === "action") || !x.current) return;
128
128
  let r = {
129
129
  kind: e,
130
130
  settled: !1,
131
- parent: n ? N.current : null
131
+ parent: n ? M.current : null
132
132
  };
133
- N.current = r, u.current = e, f(!0), m(""), g("");
133
+ M.current = r, u.current = e, f(!0), m(""), g("");
134
134
  try {
135
135
  await t();
136
136
  } catch (e) {
137
- j(e);
137
+ A(e);
138
138
  } finally {
139
- if (r.settled = !0, N.current === r) {
139
+ if (r.settled = !0, M.current === r) {
140
140
  let e = r.parent;
141
141
  for (; e?.settled;) e = e.parent;
142
- N.current = e, u.current = e?.kind ?? null, x.current && f(e !== null);
142
+ M.current = e, u.current = e?.kind ?? null, x.current && f(e !== null);
143
143
  }
144
144
  }
145
145
  }
146
- let F = () => {
146
+ let P = () => {
147
147
  if (!l.current) throw Error(n.editorNotReady);
148
148
  if (T().body.kind === "html") throw Error(n.editableRequired);
149
149
  return l.current.synchronize(T().body), l.current;
150
150
  };
151
- function I(e, t = {}, r = !1) {
151
+ function F(e, t = {}, r = !1) {
152
152
  if (!r && u.current && u.current !== "action") return;
153
153
  let i = t.body ?? "replace";
154
154
  if (i !== "replace" && (e.body.kind === "html" || T().body.kind === "html")) throw Error(n.editableRequired);
155
- let a = i === "replace" ? e.body : F().insert(e.body, i);
156
- M((n) => ({
155
+ let a = i === "replace" ? e.body : P().insert(e.body, i);
156
+ j((n) => ({
157
157
  ...n,
158
158
  body: a,
159
159
  subject: t.subject === "preserve" ? n.subject : e.subject ?? n.subject,
@@ -161,66 +161,66 @@ function ye(t) {
161
161
  placeholderOverrides: t.overrides === "reset" ? {} : n.placeholderOverrides
162
162
  }), "template", r);
163
163
  }
164
- let z = q(null), B = q(null);
165
- B.current ||= {
166
- getState: () => z.current.getState(),
167
- update: (e) => z.current.update(e),
168
- setSubject: (e) => z.current.setSubject(e),
169
- setRecipients: (e, t) => z.current.setRecipients(e, t),
170
- setBody: (e) => z.current.setBody(e),
171
- importBody: (e) => z.current.importBody(e),
172
- setPlaceholder: (e, t) => z.current.setPlaceholder(e, t),
173
- clearPlaceholderOverride: (e) => z.current.clearPlaceholderOverride(e),
174
- insertPlaceholder: (e) => z.current.insertPlaceholder(e),
175
- applyTemplate: (e, t) => z.current.applyTemplate(e, t),
176
- insertText: (e) => z.current.insertText(e),
177
- focusBody: () => z.current.focusBody(),
178
- validate: () => z.current.validate(),
179
- prepare: () => z.current.prepare(),
180
- send: () => z.current.send(),
181
- discard: () => z.current.discard()
164
+ let R = K(null), z = K(null);
165
+ z.current ||= {
166
+ getState: () => R.current.getState(),
167
+ update: (e) => R.current.update(e),
168
+ setSubject: (e) => R.current.setSubject(e),
169
+ setRecipients: (e, t) => R.current.setRecipients(e, t),
170
+ setBody: (e) => R.current.setBody(e),
171
+ importBody: (e) => R.current.importBody(e),
172
+ setPlaceholder: (e, t) => R.current.setPlaceholder(e, t),
173
+ clearPlaceholderOverride: (e) => R.current.clearPlaceholderOverride(e),
174
+ insertPlaceholder: (e) => R.current.insertPlaceholder(e),
175
+ applyTemplate: (e, t) => R.current.applyTemplate(e, t),
176
+ insertText: (e) => R.current.insertText(e),
177
+ focusBody: () => R.current.focusBody(),
178
+ validate: () => R.current.validate(),
179
+ prepare: () => R.current.prepare(),
180
+ send: () => R.current.send(),
181
+ discard: () => R.current.discard()
182
182
  };
183
- let V = B.current, H = async () => {
183
+ let B = z.current, V = async () => {
184
184
  if (O().length) throw Error(s.current.strings.dataUnavailable);
185
185
  let e = D();
186
186
  if (e.issues.length || !e.rendered) throw Error(e.issues.map((e) => e.message).join(" "));
187
187
  return structuredClone(e.rendered.email);
188
- }, G = (e = !1) => P("send", async () => {
188
+ }, W = (e = !1) => N("send", async () => {
189
189
  let e = s.current.props;
190
190
  v(!0);
191
- let t = await H();
191
+ let t = await V();
192
192
  if (e.onBeforeSend) {
193
- let n = await e.onBeforeSend(t, V);
193
+ let n = await e.onBeforeSend(t, B);
194
194
  if (n === !1 || !x.current) return;
195
195
  t = n;
196
196
  }
197
197
  x.current && (t = structuredClone(t), await e.onSend(structuredClone(t)), x.current && (g(n.sent), e.onSent?.(t)));
198
- }, e), Y = (e = !1) => P("discard", async () => {
198
+ }, e), J = (e = !1) => N("discard", async () => {
199
199
  let e = s.current.props, t = T();
200
- await e.onDiscard?.(V), x.current && T() === t && (M(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
200
+ await e.onDiscard?.(B), x.current && T() === t && (j(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
201
201
  }, e);
202
- z.current = {
203
- getState: A,
204
- update: (e) => M(e),
205
- setSubject: (e) => M((t) => ({
202
+ R.current = {
203
+ getState: k,
204
+ update: (e) => j(e),
205
+ setSubject: (e) => j((t) => ({
206
206
  ...t,
207
207
  subject: e
208
208
  })),
209
- setRecipients: (e, t) => M((n) => ({
209
+ setRecipients: (e, t) => j((n) => ({
210
210
  ...n,
211
211
  [e]: t
212
212
  })),
213
- setBody: (e) => M((t) => ({
213
+ setBody: (e) => j((t) => ({
214
214
  ...t,
215
215
  body: e
216
216
  })),
217
- importBody: (e) => M((t) => ({
217
+ importBody: (e) => j((t) => ({
218
218
  ...t,
219
219
  body: e
220
220
  })),
221
221
  setPlaceholder: (e, t) => {
222
222
  if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
223
- M((n) => ({
223
+ j((n) => ({
224
224
  ...n,
225
225
  placeholderOverrides: {
226
226
  ...n.placeholderOverrides,
@@ -228,20 +228,20 @@ function ye(t) {
228
228
  }
229
229
  }), "placeholder");
230
230
  },
231
- clearPlaceholderOverride: (e) => M((t) => (delete t.placeholderOverrides[e], t), "placeholder"),
231
+ clearPlaceholderOverride: (e) => j((t) => (delete t.placeholderOverrides[e], t), "placeholder"),
232
232
  insertPlaceholder: (e) => {
233
233
  if (u.current && u.current !== "action") return;
234
234
  if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
235
- let t = F().insertPlaceholder(e);
236
- M((e) => ({
235
+ let t = P().insertPlaceholder(e);
236
+ j((e) => ({
237
237
  ...e,
238
238
  body: t
239
239
  }));
240
240
  },
241
241
  insertText: (e) => {
242
242
  if (u.current && u.current !== "action") return;
243
- let t = F().insertText(e);
244
- M((e) => ({
243
+ let t = P().insertText(e);
244
+ j((e) => ({
245
245
  ...e,
246
246
  body: t
247
247
  }));
@@ -251,27 +251,27 @@ function ye(t) {
251
251
  if (Q(s.current.props.templates)) throw Error(s.current.strings.templatesUnavailable);
252
252
  let r = C.find((t) => t.id === e);
253
253
  if (!r) throw Error(n.unknownTemplate(e));
254
- I(r, t);
254
+ F(r, t);
255
255
  },
256
- validate: () => k(),
257
- prepare: H,
258
- send: () => G(),
259
- discard: () => Y()
260
- }, K(t.apiRef, () => V, [V]);
261
- let X = (e) => P("action", async () => {
262
- await e.onSelect(Object.assign(Object.create(V), {
263
- send: () => G(!0),
264
- discard: () => Y(!0)
256
+ validate: () => ne(),
257
+ prepare: V,
258
+ send: () => W(),
259
+ discard: () => J()
260
+ }, G(t.apiRef, () => B, [B]);
261
+ let Y = (e) => N("action", async () => {
262
+ await e.onSelect(Object.assign(Object.create(B), {
263
+ send: () => W(!0),
264
+ discard: () => J(!0)
265
265
  }));
266
- }), Z = () => P("import", async () => {
266
+ }), X = () => N("import", async () => {
267
267
  let e = T(), t = await s.current.props.templates?.onImport?.();
268
268
  if (t && x.current) {
269
269
  if (w.current.some((e) => e.id === t.id)) throw Error(n.duplicateTemplate);
270
- b((e) => [...e, structuredClone(t)]), T() === e && I(t, {}, !0);
270
+ b((e) => [...e, structuredClone(t)]), T() === e && F(t, {}, !0);
271
271
  }
272
- }), { rendered: re, renderError: ie } = D(o);
272
+ }), { rendered: ie, renderError: ae } = D(o);
273
273
  return {
274
- api: V,
274
+ api: B,
275
275
  draft: o,
276
276
  strings: n,
277
277
  busy: d,
@@ -279,25 +279,25 @@ function ye(t) {
279
279
  error: p,
280
280
  notice: h,
281
281
  attempted: _,
282
- rendered: re,
283
- renderError: ie,
282
+ rendered: ie,
283
+ renderError: ae,
284
284
  definitions: S,
285
285
  templates: C,
286
- values: re?.email.resolvedPlaceholders ?? {},
286
+ values: ie?.email.resolvedPlaceholders ?? {},
287
287
  editorRef: l,
288
- state: A(),
289
- report: j,
290
- runAction: X,
291
- importTemplate: Z,
292
- changeBody: (e) => M((t) => ({
288
+ state: k(),
289
+ report: A,
290
+ runAction: Y,
291
+ importTemplate: X,
292
+ changeBody: (e) => j((t) => ({
293
293
  ...t,
294
294
  body: e
295
295
  }), "body"),
296
- changeSubject: (e) => M((t) => ({
296
+ changeSubject: (e) => j((t) => ({
297
297
  ...t,
298
298
  subject: e
299
299
  }), "subject"),
300
- changeRecipients: (e, t) => M((n) => ({
300
+ changeRecipients: (e, t) => j((n) => ({
301
301
  ...n,
302
302
  [e]: t
303
303
  }), "recipient")
@@ -306,19 +306,19 @@ function ye(t) {
306
306
  //#endregion
307
307
  //#region src/components/features/email-composer/partials/recipients.tsx
308
308
  function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a, change: o, remove: s, add: c, id: l, errorId: u }) {
309
- let [d, f] = J(I(e));
310
- W(() => {
311
- f(I(e));
309
+ let [d, f] = q(F(e));
310
+ U(() => {
311
+ f(F(e));
312
312
  }, [e.name, e.email]);
313
313
  let p = r.mode === "readonly", m = r.mode === "disabled" || i, h = r.mode !== "disabled" && r.allowRemove !== !1 && (!p || r.allowRemove === !0), g = () => {
314
- !p && !m && d !== I(e) && o({
314
+ !p && !m && d !== F(e) && o({
315
315
  id: e.id,
316
- ...B(d)
316
+ ...z(d)
317
317
  });
318
318
  };
319
- return /* @__PURE__ */ Z(x, {
319
+ return /* @__PURE__ */ X(x, {
320
320
  className: "min-w-0 w-full",
321
- children: [/* @__PURE__ */ X(S, {
321
+ children: [/* @__PURE__ */ Y(S, {
322
322
  id: l,
323
323
  "aria-invalid": !!u,
324
324
  "aria-describedby": u,
@@ -326,23 +326,23 @@ function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
326
326
  value: d,
327
327
  readOnly: p,
328
328
  disabled: m,
329
- title: I(e),
329
+ title: F(e),
330
330
  onChange: (e) => f(e.target.value),
331
331
  onBlur: g,
332
332
  onKeyDown: (t) => {
333
- t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(I(e)));
333
+ t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(F(e)));
334
334
  }
335
- }), (h || c) && /* @__PURE__ */ Z(w, {
335
+ }), (h || c) && /* @__PURE__ */ X(w, {
336
336
  align: "inline-end",
337
- children: [h && /* @__PURE__ */ X(T, {
337
+ children: [h && /* @__PURE__ */ Y(T, {
338
338
  type: "button",
339
339
  iconOnly: !0,
340
340
  size: "sm",
341
341
  disabled: i,
342
342
  "aria-label": a.removeRecipient(e.email),
343
343
  onClick: s,
344
- children: /* @__PURE__ */ X(de, { className: "size-icon" })
345
- }), c && /* @__PURE__ */ X(T, {
344
+ children: /* @__PURE__ */ Y(de, { className: "size-icon" })
345
+ }), c && /* @__PURE__ */ Y(T, {
346
346
  type: "button",
347
347
  iconOnly: !0,
348
348
  size: "sm",
@@ -350,38 +350,38 @@ function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
350
350
  "aria-label": a.addRecipient(t),
351
351
  title: a.addRecipient(t),
352
352
  onClick: c,
353
- children: /* @__PURE__ */ X(ce, { className: "size-icon" })
353
+ children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
354
354
  })]
355
355
  })]
356
356
  });
357
357
  }
358
358
  function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange: o, error: s, actions: c, report: l }) {
359
- let [u, d] = J(!1), [f, p] = J(""), m = G(), h = s ? `${m}-error` : void 0, g = q(null), _ = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), v = u || t.length === 0, y = Q(n), C = () => {
359
+ let [u, d] = q(!1), [f, p] = q(""), m = W(), h = s ? `${m}-error` : void 0, g = K(null), _ = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), v = u || t.length === 0, y = Q(n), C = () => {
360
360
  if (r || !_ || !v || y) return;
361
- let e = B(f);
361
+ let e = z(f);
362
362
  f.trim() && !t.some((t) => t.email.toLowerCase() === e.email.toLowerCase()) && o([...t, e]), p(""), d(!1);
363
363
  };
364
- W(() => {
364
+ U(() => {
365
365
  u && g.current?.focus();
366
366
  }, [u]);
367
367
  let E = () => {
368
368
  v && C(), d(!0), g.current?.focus();
369
369
  };
370
- return /* @__PURE__ */ X(b, {
370
+ return /* @__PURE__ */ Y(b, {
371
371
  label: i[e],
372
372
  required: e === "to",
373
373
  error: s,
374
374
  supportingTextId: h,
375
375
  htmlFor: t.length ? `${m}-0` : `${m}-new`,
376
- children: /* @__PURE__ */ Z(a, {
376
+ children: /* @__PURE__ */ X(a, {
377
377
  id: `${m}-group`,
378
378
  gap: "sm",
379
- children: [y ? /* @__PURE__ */ X(ve, {
379
+ children: [y ? /* @__PURE__ */ Y(ve, {
380
380
  state: n,
381
381
  label: i.loadingRecipients(i[e]),
382
382
  retryLabel: i.retry,
383
383
  report: l
384
- }) : /* @__PURE__ */ Z(Y, { children: [t.map((a, s) => /* @__PURE__ */ X(be, {
384
+ }) : /* @__PURE__ */ X(J, { children: [t.map((a, s) => /* @__PURE__ */ Y(be, {
385
385
  id: `${m}-${s}`,
386
386
  errorId: h,
387
387
  recipient: a,
@@ -393,9 +393,9 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
393
393
  change: (e) => o(t.map((t, n) => n === s ? e : t)),
394
394
  remove: () => o(t.filter((e, t) => t !== s)),
395
395
  add: _ && !v && s === t.length - 1 ? E : void 0
396
- }, a.id ?? s)), v && /* @__PURE__ */ Z(x, {
396
+ }, a.id ?? s)), v && /* @__PURE__ */ X(x, {
397
397
  className: "min-w-0 w-full",
398
- children: [/* @__PURE__ */ X(S, {
398
+ children: [/* @__PURE__ */ Y(S, {
399
399
  id: `${m}-new`,
400
400
  ref: g,
401
401
  autoFocus: e !== "to",
@@ -411,9 +411,9 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
411
411
  onKeyDown: (e) => {
412
412
  e.key === "Enter" && (e.preventDefault(), C()), e.key === "Escape" && (e.preventDefault(), p(""), d(!1));
413
413
  }
414
- }), _ && /* @__PURE__ */ X(w, {
414
+ }), _ && /* @__PURE__ */ Y(w, {
415
415
  align: "inline-end",
416
- children: /* @__PURE__ */ X(T, {
416
+ children: /* @__PURE__ */ Y(T, {
417
417
  type: "button",
418
418
  iconOnly: !0,
419
419
  size: "sm",
@@ -422,10 +422,10 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
422
422
  title: i.addRecipient(i[e]),
423
423
  onMouseDown: (e) => e.preventDefault(),
424
424
  onClick: E,
425
- children: /* @__PURE__ */ X(ce, { className: "size-icon" })
425
+ children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
426
426
  })
427
427
  })]
428
- })] }), c && /* @__PURE__ */ X(a, {
428
+ })] }), c && /* @__PURE__ */ Y(a, {
429
429
  direction: "horizontal",
430
430
  gap: "xs",
431
431
  justify: "end",
@@ -436,47 +436,47 @@ function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
436
436
  }
437
437
  //#endregion
438
438
  //#region src/components/features/email-composer/partials/variables.tsx
439
- function Se({ definitions: e, values: t, draft: n, api: o, strings: s, busy: c, editable: l }) {
440
- let u = G();
441
- return /* @__PURE__ */ X(i, {
439
+ function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c, editable: l }) {
440
+ let u = W();
441
+ return /* @__PURE__ */ Y(i, {
442
442
  minColumnWidth: "sm",
443
443
  gap: "md",
444
444
  children: Object.keys(e).map((i) => {
445
- let d = e[i], f = Object.hasOwn(n.placeholderOverrides, i), p = `${u}-email-variable-${i}`, m = {
445
+ let d = e[i], f = Object.hasOwn(r.placeholderOverrides, i), p = `${u}-email-variable-${i}`, m = {
446
446
  id: p,
447
447
  value: String(t[i] ?? ""),
448
448
  disabled: c,
449
449
  readOnly: !d.editable
450
- }, h = d.input === "textarea" ? /* @__PURE__ */ X(C, {
450
+ }, h = d.input === "textarea" ? /* @__PURE__ */ Y(C, {
451
451
  ...m,
452
452
  onChange: (e) => o.setPlaceholder(i, e.target.value)
453
- }) : d.input === "select" ? /* @__PURE__ */ X(E, {
453
+ }) : d.input === "select" ? /* @__PURE__ */ Y(E, {
454
454
  ...m,
455
455
  placeholder: s.choose,
456
456
  options: [...d.options ?? []],
457
457
  onValueChange: (e) => o.setPlaceholder(i, e ?? "")
458
- }) : /* @__PURE__ */ X(y, {
458
+ }) : /* @__PURE__ */ Y(y, {
459
459
  ...m,
460
460
  type: d.input === "number" ? "number" : d.input === "date" ? "date" : "text",
461
461
  onChange: (e) => o.setPlaceholder(i, d.input === "number" && e.target.value !== "" ? Number(e.target.value) : e.target.value)
462
462
  });
463
- return /* @__PURE__ */ X(b, {
463
+ return /* @__PURE__ */ Y(b, {
464
464
  label: d.group ? `${d.group} · ${d.label}` : d.label,
465
465
  htmlFor: p,
466
466
  required: d.required,
467
467
  helperText: `${f ? s.overridden : s.dynamic}${d.description ? ` · ${d.description}` : ""}`,
468
- children: /* @__PURE__ */ Z(a, {
468
+ children: /* @__PURE__ */ X(a, {
469
469
  id: `${p}-group`,
470
470
  direction: "horizontal",
471
471
  gap: "sm",
472
472
  align: "start",
473
473
  wrap: !1,
474
474
  children: [
475
- /* @__PURE__ */ X("div", {
475
+ /* @__PURE__ */ Y("div", {
476
476
  className: "min-w-0 flex-1",
477
477
  children: h
478
478
  }),
479
- /* @__PURE__ */ X(r, {
479
+ /* @__PURE__ */ Y(n, {
480
480
  type: "button",
481
481
  iconOnly: !0,
482
482
  size: "sm",
@@ -485,9 +485,9 @@ function Se({ definitions: e, values: t, draft: n, api: o, strings: s, busy: c,
485
485
  disabled: c || !l,
486
486
  "aria-label": s.insertVariable(d.label),
487
487
  onClick: () => o.insertPlaceholder(i),
488
- children: /* @__PURE__ */ X(ce, { className: "size-icon" })
488
+ children: /* @__PURE__ */ Y(Z, { className: "size-icon" })
489
489
  }),
490
- f && /* @__PURE__ */ X(r, {
490
+ f && /* @__PURE__ */ Y(n, {
491
491
  type: "button",
492
492
  size: "sm",
493
493
  buttonStyle: "ghost",
@@ -526,19 +526,19 @@ var Ce = pe.create({
526
526
  renderText: ({ node: e }) => `{{${e.attrs.key}}}`
527
527
  }), $ = [_e.configure({ link: { openOnClick: !1 } }), Ce];
528
528
  function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
529
- let u = q(i);
529
+ let u = K(i);
530
530
  u.current = i;
531
- let d = q(!1), [f, p] = J(!1), [m, g] = J(""), [v, x] = J(""), S = q({
531
+ let d = K(!1), [f, p] = q(!1), [m, g] = q(""), [v, x] = q(""), S = K({
532
532
  from: 1,
533
533
  to: 1
534
- }), C = e(N, {
534
+ }), C = e(M, {
535
535
  editorLabel: l.body,
536
536
  toolbar: l.toolbar
537
537
  }), w = ge({
538
538
  extensions: $,
539
539
  immediatelyRender: !1,
540
540
  shouldRerenderOnTransaction: !0,
541
- content: n.kind === "rich" ? n.document : F(n),
541
+ content: n.kind === "rich" ? n.document : P(n),
542
542
  editable: !r,
543
543
  editorProps: { attributes: {
544
544
  role: "textbox",
@@ -553,20 +553,20 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
553
553
  });
554
554
  }
555
555
  });
556
- W(() => {
556
+ U(() => {
557
557
  if (w) try {
558
- let e = n.kind === "rich" ? w.schema.nodeFromJSON(n.document).toJSON() : me(F(n), $);
558
+ let e = n.kind === "rich" ? w.schema.nodeFromJSON(n.document).toJSON() : me(P(n), $);
559
559
  JSON.stringify(w.getJSON()) !== JSON.stringify(e) && w.commands.setContent(e, { emitUpdate: !1 });
560
560
  } catch {}
561
- }), W(() => {
561
+ }), U(() => {
562
562
  w?.setEditable(!r && n.kind !== "html", !1);
563
563
  }, [
564
564
  w,
565
565
  r,
566
566
  n.kind
567
- ]), W(() => {
567
+ ]), U(() => {
568
568
  (r || n.kind === "html") && p(!1);
569
- }, [r, n.kind]), K(c, () => {
569
+ }, [r, n.kind]), G(c, () => {
570
570
  let e = (e) => {
571
571
  if (!w) throw Error(l.editorNotReady);
572
572
  d.current = !0;
@@ -582,7 +582,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
582
582
  return {
583
583
  synchronize: (e) => {
584
584
  if (!w) return;
585
- let t = e.kind === "rich" ? w.schema.nodeFromJSON(e.document).toJSON() : me(F(e), $);
585
+ let t = e.kind === "rich" ? w.schema.nodeFromJSON(e.document).toJSON() : me(P(e), $);
586
586
  JSON.stringify(w.getJSON()) !== JSON.stringify(t) && w.commands.setContent(t, { emitUpdate: !1 });
587
587
  },
588
588
  focus: () => {
@@ -590,10 +590,10 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
590
590
  },
591
591
  convert: (e) => ({
592
592
  kind: "rich",
593
- document: e.kind === "rich" ? e.document : me(F(e), $)
593
+ document: e.kind === "rich" ? e.document : me(P(e), $)
594
594
  }),
595
595
  insert: (t, n) => e(() => {
596
- n === "append" && w.commands.focus("end"), w.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : F(t)).run();
596
+ n === "append" && w.commands.focus("end"), w.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : P(t)).run();
597
597
  }),
598
598
  insertText: (t) => e(() => {
599
599
  t && w.chain().focus().insertContent({
@@ -612,7 +612,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
612
612
  let T = [
613
613
  {
614
614
  id: "bold",
615
- icon: re,
615
+ icon: ie,
616
616
  label: C.toolbar.bold,
617
617
  isActive: () => !!w?.isActive("bold"),
618
618
  run: () => {
@@ -621,7 +621,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
621
621
  },
622
622
  {
623
623
  id: "italic",
624
- icon: ie,
624
+ icon: ae,
625
625
  label: C.toolbar.italic,
626
626
  isActive: () => !!w?.isActive("italic"),
627
627
  run: () => {
@@ -630,7 +630,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
630
630
  },
631
631
  {
632
632
  id: "bullet",
633
- icon: oe,
633
+ icon: se,
634
634
  label: C.toolbar.bulletList,
635
635
  isActive: () => !!w?.isActive("bulletList"),
636
636
  run: () => {
@@ -639,7 +639,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
639
639
  },
640
640
  {
641
641
  id: "ordered",
642
- icon: se,
642
+ icon: ce,
643
643
  label: C.toolbar.orderedList,
644
644
  isActive: () => !!w?.isActive("orderedList"),
645
645
  run: () => {
@@ -667,11 +667,11 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
667
667
  disabled: !w?.can().redo()
668
668
  }
669
669
  ];
670
- return /* @__PURE__ */ Z(a, {
670
+ return /* @__PURE__ */ X(a, {
671
671
  gap: "none",
672
- className: t("email-composer--editor", M.frame, r && M.disabled),
672
+ className: t("email-composer--editor", A.frame, r && A.disabled),
673
673
  children: [
674
- /* @__PURE__ */ X(j, {
674
+ /* @__PURE__ */ Y(j, {
675
675
  buttons: T,
676
676
  disabled: r,
677
677
  hasEditor: !!w,
@@ -681,7 +681,7 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
681
681
  strings: C,
682
682
  extraToolbarItems: [{
683
683
  id: "link",
684
- icon: ae,
684
+ icon: oe,
685
685
  label: l.link,
686
686
  onClick: () => {
687
687
  w && (S.current = {
@@ -691,11 +691,11 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
691
691
  }
692
692
  }]
693
693
  }),
694
- /* @__PURE__ */ X(fe, {
694
+ /* @__PURE__ */ Y(fe, {
695
695
  editor: w,
696
- className: t(M.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
696
+ className: t(A.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
697
697
  }),
698
- /* @__PURE__ */ X(h, {
698
+ /* @__PURE__ */ Y(h, {
699
699
  open: f,
700
700
  onOpenChange: p,
701
701
  title: l.linkTitle,
@@ -713,17 +713,17 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
713
713
  }
714
714
  w?.commands.setTextSelection(S.current), e ? w?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : w?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
715
715
  },
716
- children: /* @__PURE__ */ Z(a, {
716
+ children: /* @__PURE__ */ X(a, {
717
717
  gap: "md",
718
- children: [/* @__PURE__ */ X(b, {
718
+ children: [/* @__PURE__ */ Y(b, {
719
719
  label: l.linkUrl,
720
- children: /* @__PURE__ */ X(y, {
720
+ children: /* @__PURE__ */ Y(y, {
721
721
  value: m,
722
722
  onChange: (e) => g(e.target.value)
723
723
  })
724
- }), v && /* @__PURE__ */ X(s, {
724
+ }), v && /* @__PURE__ */ Y(s, {
725
725
  tone: "destructive",
726
- children: /* @__PURE__ */ X(o, { children: v })
726
+ children: /* @__PURE__ */ Y(o, { children: v })
727
727
  })]
728
728
  })
729
729
  })
@@ -732,22 +732,22 @@ function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
732
732
  }
733
733
  //#endregion
734
734
  //#region src/components/features/email-composer/partials/html-preview.tsx
735
- function Te({ html: e, subject: t, strings: r }) {
736
- return /* @__PURE__ */ Z(a, {
735
+ function Te({ html: e, subject: t, strings: n }) {
736
+ return /* @__PURE__ */ X(a, {
737
737
  gap: "normal",
738
738
  className: "min-w-0",
739
- children: [/* @__PURE__ */ Z(n, {
739
+ children: [/* @__PURE__ */ X(r, {
740
740
  type: "secondary",
741
741
  children: [
742
- r.subject,
742
+ n.subject,
743
743
  ": ",
744
744
  t
745
745
  ]
746
- }), /* @__PURE__ */ X(c, {
746
+ }), /* @__PURE__ */ Y(c, {
747
747
  surface: "card",
748
748
  padding: "none",
749
- children: /* @__PURE__ */ X("iframe", {
750
- title: r.previewLabel,
749
+ children: /* @__PURE__ */ Y("iframe", {
750
+ title: n.previewLabel,
751
751
  sandbox: "",
752
752
  referrerPolicy: "no-referrer",
753
753
  className: "h-80 w-full border-0",
@@ -759,17 +759,17 @@ function Te({ html: e, subject: t, strings: r }) {
759
759
  //#endregion
760
760
  //#region src/components/features/email-composer/email-composer.tsx
761
761
  function Ee(e) {
762
- let n = ye(e), { api: i, draft: u, strings: d, busy: _, state: x } = n, [S, C] = J("editor"), [w, T] = J(e.placeholders?.showEditor ?? !1), [E, j] = J(!1), [M, N] = J(!1), [P, F] = J(!1), I = G(), L = S === "preview" || u.body.kind === "html", R = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(x) ?? !0)).map((e) => ({
762
+ let r = ye(e), { api: i, draft: u, strings: d, busy: _, state: x } = r, [S, C] = q("editor"), [w, T] = q(e.placeholders?.showEditor ?? !1), [E, A] = q(!1), [j, M] = q(!1), [N, P] = q(!1), F = W(), I = S === "preview" || u.body.kind === "html", L = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(x) ?? !0)).map((e) => ({
763
763
  id: e.id,
764
764
  label: e.label,
765
765
  icon: e.icon,
766
766
  disabled: _ || e.disabled?.(x),
767
767
  onClick: () => {
768
- n.runAction(e);
768
+ r.runAction(e);
769
769
  },
770
770
  buttonStyle: "ghost",
771
771
  tone: "secondary"
772
- })), z = /* @__PURE__ */ Z(a, {
772
+ })), R = /* @__PURE__ */ X(a, {
773
773
  direction: {
774
774
  base: "vertical",
775
775
  sm: "horizontal"
@@ -781,10 +781,10 @@ function Ee(e) {
781
781
  },
782
782
  justify: "between",
783
783
  className: "w-full",
784
- children: [/* @__PURE__ */ Z(a, {
784
+ children: [/* @__PURE__ */ X(a, {
785
785
  direction: "horizontal",
786
786
  gap: "sm",
787
- children: [e.buttons?.discard !== !1 && /* @__PURE__ */ X(r, {
787
+ children: [e.buttons?.discard !== !1 && /* @__PURE__ */ Y(n, {
788
788
  type: "button",
789
789
  tone: "secondary",
790
790
  buttonStyle: "ghost",
@@ -793,116 +793,118 @@ function Ee(e) {
793
793
  i.discard();
794
794
  },
795
795
  children: e.buttons?.discard?.label ?? d.discard
796
- }), /* @__PURE__ */ X(p, { actions: R("footer-start") })]
797
- }), /* @__PURE__ */ Z(a, {
796
+ }), /* @__PURE__ */ Y(p, { actions: L("footer-start") })]
797
+ }), /* @__PURE__ */ X(a, {
798
798
  direction: "horizontal",
799
799
  gap: "sm",
800
800
  justify: "end",
801
- children: [
802
- /* @__PURE__ */ X(p, { actions: R("footer-end") }),
803
- !!R("overflow").length && /* @__PURE__ */ X(f, {
804
- actions: R("overflow"),
805
- srText: d.more,
806
- buttonProps: { disabled: _ }
807
- }),
808
- e.buttons?.send !== !1 && /* @__PURE__ */ X(r, {
801
+ children: [/* @__PURE__ */ Y(p, { actions: L("footer-end") }), (e.buttons?.send !== !1 || !!L("overflow").length) && /* @__PURE__ */ X(a, {
802
+ direction: "horizontal",
803
+ gap: "sm",
804
+ wrap: !1,
805
+ className: "email-composer--send-commands",
806
+ children: [e.buttons?.send !== !1 && /* @__PURE__ */ Y(n, {
809
807
  type: "button",
810
808
  tone: "primary",
811
- disabled: _ || n.dataPending,
809
+ disabled: _ || r.dataPending,
812
810
  loading: _,
813
811
  strings: { loading: d.working },
814
812
  onClick: () => {
815
813
  i.send();
816
814
  },
817
815
  children: _ ? d.working : e.buttons?.send?.label ?? d.send
818
- })
819
- ]
816
+ }), !!L("overflow").length && /* @__PURE__ */ Y(f, {
817
+ actions: L("overflow"),
818
+ srText: d.more,
819
+ buttonProps: { disabled: _ }
820
+ })]
821
+ })]
820
822
  })]
821
- }), B = (e) => n.attempted ? x.issues.find((t) => t.field === e)?.message : void 0, V = /* @__PURE__ */ Z(a, {
823
+ }), z = (e) => r.attempted ? x.issues.find((t) => t.field === e)?.message : void 0, B = /* @__PURE__ */ X(a, {
822
824
  gap: "lg",
823
825
  className: "email-composer--body min-w-0",
824
826
  children: [
825
- /* @__PURE__ */ Z(a, {
827
+ /* @__PURE__ */ X(a, {
826
828
  gap: "md",
827
829
  className: "email-composer--details",
828
- children: [/* @__PURE__ */ X(a, {
830
+ children: [/* @__PURE__ */ Y(a, {
829
831
  gap: "md",
830
832
  children: [
831
833
  "to",
832
834
  "cc",
833
835
  "bcc"
834
- ].filter((t) => t === "to" || t === "cc" && (E || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (M || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ X(xe, {
836
+ ].filter((t) => t === "to" || t === "cc" && (E || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (j || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ Y(xe, {
835
837
  field: t,
836
838
  value: u[t],
837
839
  options: e.recipients?.[t],
838
840
  strings: d,
839
841
  busy: _,
840
- report: n.report,
841
- error: B(t),
842
- onChange: (e) => n.changeRecipients(t, e),
843
- actions: t === "to" ? /* @__PURE__ */ Z(Y, { children: [!E && !u.cc.length && /* @__PURE__ */ X(r, {
842
+ report: r.report,
843
+ error: z(t),
844
+ onChange: (e) => r.changeRecipients(t, e),
845
+ actions: t === "to" ? /* @__PURE__ */ X(J, { children: [!E && !u.cc.length && /* @__PURE__ */ Y(n, {
844
846
  type: "button",
845
847
  size: "sm",
846
848
  buttonStyle: "ghost",
847
849
  tone: "secondary",
848
850
  disabled: _,
849
- onClick: () => j(!0),
851
+ onClick: () => A(!0),
850
852
  children: d.cc
851
- }), !M && !u.bcc.length && /* @__PURE__ */ X(r, {
853
+ }), !j && !u.bcc.length && /* @__PURE__ */ Y(n, {
852
854
  type: "button",
853
855
  size: "sm",
854
856
  buttonStyle: "ghost",
855
857
  tone: "secondary",
856
858
  disabled: _,
857
- onClick: () => N(!0),
859
+ onClick: () => M(!0),
858
860
  children: d.bcc
859
861
  })] }) : void 0
860
862
  }, t))
861
- }), /* @__PURE__ */ X(b, {
863
+ }), /* @__PURE__ */ Y(b, {
862
864
  label: d.subject,
863
865
  required: !0,
864
- htmlFor: `${I}-subject`,
865
- error: B("subject"),
866
- supportingTextId: `${I}-subject-error`,
867
- children: /* @__PURE__ */ X(y, {
868
- id: `${I}-subject`,
866
+ htmlFor: `${F}-subject`,
867
+ error: z("subject"),
868
+ supportingTextId: `${F}-subject-error`,
869
+ children: /* @__PURE__ */ Y(y, {
870
+ id: `${F}-subject`,
869
871
  value: u.subject,
870
872
  readOnly: e.subject?.readOnly,
871
873
  disabled: _,
872
- invalid: !!B("subject"),
873
- "aria-describedby": B("subject") ? `${I}-subject-error` : void 0,
874
- onChange: (e) => n.changeSubject(e.target.value)
874
+ invalid: !!z("subject"),
875
+ "aria-describedby": z("subject") ? `${F}-subject-error` : void 0,
876
+ onChange: (e) => r.changeSubject(e.target.value)
875
877
  })
876
878
  })]
877
879
  }),
878
- /* @__PURE__ */ X(k, {
879
- value: L ? "preview" : "editor",
880
+ /* @__PURE__ */ Y(ne, {
881
+ value: I ? "preview" : "editor",
880
882
  onValueChange: (e) => {
881
883
  e && C(e);
882
884
  },
883
- children: /* @__PURE__ */ Z(c, {
885
+ children: /* @__PURE__ */ X(c, {
884
886
  surface: "flat",
885
887
  padding: "none",
886
888
  contentGap: "md",
887
889
  titleSize: "sm",
888
890
  title: d.body,
889
- headerAction: /* @__PURE__ */ Z(te, { children: [/* @__PURE__ */ X(D, {
891
+ headerAction: /* @__PURE__ */ X(te, { children: [/* @__PURE__ */ Y(D, {
890
892
  value: "editor",
891
893
  disabled: u.body.kind === "html",
892
894
  children: d.editor
893
- }), /* @__PURE__ */ X(D, {
895
+ }), /* @__PURE__ */ Y(D, {
894
896
  value: "preview",
895
897
  children: d.preview
896
898
  })] }),
897
899
  children: [
898
- (!!e.templates || !!n.templates.length || R("toolbar").length > 0) && /* @__PURE__ */ Z(a, {
900
+ (!!e.templates || !!r.templates.length || L("toolbar").length > 0) && /* @__PURE__ */ X(a, {
899
901
  direction: "horizontal",
900
902
  gap: "sm",
901
903
  align: "center",
902
904
  className: "email-composer--message-actions",
903
905
  children: [
904
- (e.templates || !!n.templates.length) && /* @__PURE__ */ X(A, {
905
- trigger: /* @__PURE__ */ X(r, {
906
+ (e.templates || !!r.templates.length) && /* @__PURE__ */ Y(k, {
907
+ trigger: /* @__PURE__ */ Y(n, {
906
908
  type: "button",
907
909
  tone: "secondary",
908
910
  buttonStyle: "outline",
@@ -910,7 +912,7 @@ function Ee(e) {
910
912
  disabled: _,
911
913
  children: d.templates
912
914
  }),
913
- items: n.templates.map((e) => ({
915
+ items: r.templates.map((e) => ({
914
916
  value: e.id,
915
917
  label: e.name,
916
918
  description: e.description ?? e.category,
@@ -920,13 +922,13 @@ function Ee(e) {
920
922
  try {
921
923
  i.applyTemplate(e.value);
922
924
  } catch (e) {
923
- n.report(e);
925
+ r.report(e);
924
926
  }
925
927
  },
926
928
  loading: e.templates?.loading,
927
929
  error: e.templates?.error,
928
930
  onRetry: e.templates?.onRetry ? () => {
929
- Promise.resolve().then(e.templates.onRetry).catch(n.report);
931
+ Promise.resolve().then(e.templates.onRetry).catch(r.report);
930
932
  } : void 0,
931
933
  onOpenChange: e.templates?.onOpenChange,
932
934
  strings: {
@@ -936,88 +938,88 @@ function Ee(e) {
936
938
  retry: d.retry
937
939
  }
938
940
  }),
939
- e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ X(r, {
941
+ e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ Y(n, {
940
942
  type: "button",
941
943
  tone: "secondary",
942
944
  buttonStyle: "ghost",
943
945
  size: "sm",
944
946
  disabled: _,
945
947
  onClick: () => {
946
- n.importTemplate();
948
+ r.importTemplate();
947
949
  },
948
950
  children: d.importTemplate
949
951
  }),
950
- /* @__PURE__ */ X(p, {
952
+ /* @__PURE__ */ Y(p, {
951
953
  size: "sm",
952
- actions: R("toolbar")
954
+ actions: L("toolbar")
953
955
  })
954
956
  ]
955
957
  }),
956
- /* @__PURE__ */ X(O, {
958
+ /* @__PURE__ */ Y(O, {
957
959
  value: "editor",
958
960
  keepMounted: !0,
959
- children: /* @__PURE__ */ X(we, {
961
+ children: /* @__PURE__ */ Y(we, {
960
962
  body: u.body,
961
- disabled: _ || L,
962
- onChange: n.changeBody,
963
- adapterRef: n.editorRef,
963
+ disabled: _ || I,
964
+ onChange: r.changeBody,
965
+ adapterRef: r.editorRef,
964
966
  strings: d
965
967
  })
966
968
  }),
967
- /* @__PURE__ */ X(O, {
969
+ /* @__PURE__ */ Y(O, {
968
970
  value: "preview",
969
- children: n.rendered && /* @__PURE__ */ X(Te, {
970
- html: n.rendered.email.html,
971
- subject: n.rendered.email.subject,
971
+ children: r.rendered && /* @__PURE__ */ Y(Te, {
972
+ html: r.rendered.email.html,
973
+ subject: r.rendered.email.subject,
972
974
  strings: d
973
975
  })
974
976
  })
975
977
  ]
976
978
  })
977
979
  }),
978
- (!!Object.keys(n.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ X(v, {
980
+ (!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ Y(v, {
979
981
  value: w ? ["variables"] : [],
980
982
  onValueChange: (e) => T(e.includes("variables")),
981
983
  items: [{
982
984
  value: "variables",
983
985
  title: d.variables,
984
986
  description: d.variablesDescription,
985
- content: Q(e.placeholders) ? /* @__PURE__ */ X(ve, {
987
+ content: Q(e.placeholders) ? /* @__PURE__ */ Y(ve, {
986
988
  state: e.placeholders,
987
989
  label: d.loadingVariables,
988
990
  retryLabel: d.retry,
989
- report: n.report
990
- }) : /* @__PURE__ */ X(Se, {
991
- definitions: n.definitions,
992
- values: n.values,
991
+ report: r.report
992
+ }) : /* @__PURE__ */ Y(Se, {
993
+ definitions: r.definitions,
994
+ values: r.values,
993
995
  draft: u,
994
996
  api: i,
995
997
  strings: d,
996
998
  busy: _,
997
- editable: !L
999
+ editable: !I
998
1000
  })
999
1001
  }]
1000
1002
  }),
1001
- u.body.kind === "html" && /* @__PURE__ */ X(r, {
1003
+ u.body.kind === "html" && /* @__PURE__ */ Y(n, {
1002
1004
  type: "button",
1003
1005
  tone: "secondary",
1004
1006
  buttonStyle: "outline",
1005
1007
  disabled: _,
1006
- onClick: () => F(!0),
1008
+ onClick: () => P(!0),
1007
1009
  children: d.convert
1008
1010
  }),
1009
- (n.error || !n.dataPending && n.renderError) && /* @__PURE__ */ Z(s, {
1011
+ (r.error || !r.dataPending && r.renderError) && /* @__PURE__ */ X(s, {
1010
1012
  tone: "destructive",
1011
- children: [/* @__PURE__ */ X(l, { children: d.errorTitle }), /* @__PURE__ */ X(o, { children: n.error || n.renderError })]
1013
+ children: [/* @__PURE__ */ Y(l, { children: d.errorTitle }), /* @__PURE__ */ Y(o, { children: r.error || r.renderError })]
1012
1014
  }),
1013
- n.notice && /* @__PURE__ */ X(s, {
1015
+ r.notice && /* @__PURE__ */ Y(s, {
1014
1016
  tone: "success",
1015
1017
  role: "status",
1016
- children: /* @__PURE__ */ X(o, { children: n.notice })
1018
+ children: /* @__PURE__ */ Y(o, { children: r.notice })
1017
1019
  }),
1018
1020
  e.children?.(i)
1019
1021
  ]
1020
- }), H = e.title ?? d.title, U = e.onClose ? /* @__PURE__ */ X(r, {
1022
+ }), V = e.title ?? d.title, H = e.onClose ? /* @__PURE__ */ Y(n, {
1021
1023
  type: "button",
1022
1024
  iconOnly: !0,
1023
1025
  tone: "secondary",
@@ -1026,12 +1028,12 @@ function Ee(e) {
1026
1028
  disabled: _,
1027
1029
  "aria-label": d.close,
1028
1030
  onClick: e.onClose,
1029
- children: /* @__PURE__ */ X(de, { className: "size-icon" })
1030
- }) : void 0, W, K = t("email-composer--component min-w-0", e.className);
1031
+ children: /* @__PURE__ */ Y(de, { className: "size-icon" })
1032
+ }) : void 0, U, G = t("email-composer--component min-w-0", e.className);
1031
1033
  if (e.position === "dialog" || e.position === "sheet") {
1032
1034
  let t = {
1033
1035
  open: !0,
1034
- title: H,
1036
+ title: V,
1035
1037
  description: e.description,
1036
1038
  onOpenChange: (t) => {
1037
1039
  !t && !_ && e.onClose?.();
@@ -1043,42 +1045,42 @@ function Ee(e) {
1043
1045
  showCancel: !1,
1044
1046
  showConfirm: !1,
1045
1047
  showCloseButton: !!e.onClose && !_,
1046
- footer: z,
1047
- className: K
1048
+ footer: R,
1049
+ className: G
1048
1050
  };
1049
- W = e.position === "dialog" ? /* @__PURE__ */ X(h, {
1051
+ U = e.position === "dialog" ? /* @__PURE__ */ Y(h, {
1050
1052
  ...t,
1051
1053
  size: "3xl",
1052
1054
  showCloseButton: !!e.onClose && !_,
1053
- children: V
1054
- }) : /* @__PURE__ */ X(m, {
1055
+ children: B
1056
+ }) : /* @__PURE__ */ Y(m, {
1055
1057
  ...t,
1056
1058
  width: "3xl",
1057
- children: V
1059
+ children: B
1058
1060
  });
1059
1061
  } else {
1060
- let t = /* @__PURE__ */ X(c, {
1061
- className: K,
1062
+ let t = /* @__PURE__ */ Y(c, {
1063
+ className: G,
1062
1064
  surface: "card",
1063
- title: H,
1065
+ title: V,
1064
1066
  description: e.description,
1065
- headerAction: U,
1066
- headerClassName: e.position === "floating" && U ? "flex-nowrap [&>.card--header-start]:basis-0 [&>.card--header-end]:shrink-0" : void 0,
1067
- footerSlot: z,
1068
- children: V
1067
+ headerAction: H,
1068
+ headerClassName: e.position === "floating" && H ? "flex-nowrap [&>.card--header-start]:basis-0 [&>.card--header-end]:shrink-0" : void 0,
1069
+ footerSlot: R,
1070
+ children: B
1069
1071
  });
1070
- W = e.position === "floating" ? /* @__PURE__ */ X("div", {
1072
+ U = e.position === "floating" ? /* @__PURE__ */ Y("div", {
1071
1073
  className: "fixed bottom-space-md end-space-md z-40 w-[min(42rem,calc(100vw-2rem))]",
1072
- children: /* @__PURE__ */ X(ee, {
1074
+ children: /* @__PURE__ */ Y(ee, {
1073
1075
  className: "max-h-[calc(100dvh-2rem)]",
1074
1076
  viewportClassName: "max-h-[calc(100dvh-2rem)]",
1075
1077
  children: t
1076
1078
  })
1077
1079
  }) : t;
1078
1080
  }
1079
- return /* @__PURE__ */ Z(Y, { children: [W, /* @__PURE__ */ X(g, {
1080
- open: P,
1081
- onOpenChange: F,
1081
+ return /* @__PURE__ */ X(J, { children: [U, /* @__PURE__ */ Y(g, {
1082
+ open: N,
1083
+ onOpenChange: P,
1082
1084
  title: d.convertTitle,
1083
1085
  description: d.convertDescription,
1084
1086
  strings: {
@@ -1087,11 +1089,11 @@ function Ee(e) {
1087
1089
  close: d.closeConversion
1088
1090
  },
1089
1091
  onConfirm: () => {
1090
- !_ && n.editorRef.current && (i.setBody(n.editorRef.current.convert(u.body)), C("editor"));
1092
+ !_ && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), C("editor"));
1091
1093
  }
1092
1094
  })] });
1093
1095
  }
1094
1096
  //#endregion
1095
- export { Ee as EmailComposer, F as bodyHtml, H as createHttpSender, U as defaultEmailComposerStrings, B as parseRecipient, I as recipientLabel, P as renderEmail, z as resolveValues, V as validate };
1097
+ export { Ee as EmailComposer, P as bodyHtml, V as createHttpSender, H as defaultEmailComposerStrings, z as parseRecipient, F as recipientLabel, N as renderEmail, R as resolveValues, B as validate };
1096
1098
 
1097
1099
  //# sourceMappingURL=email-composer.js.map