themelia-react-ui 2.0.0 → 2.0.1

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 (625) hide show
  1. package/CHANGELOG.md +351 -0
  2. package/README.md +26 -13
  3. package/dist/{accordion-CQXVcd7Q.js → accordion-B6a3vVgA.js} +84 -82
  4. package/dist/accordion-B6a3vVgA.js.map +1 -0
  5. package/dist/action-menu-TzCoSlwL.js +280 -0
  6. package/dist/action-menu-TzCoSlwL.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-CCIXb2A1.js → affordance-geometry.generated-B5iu-Mkr.js} +3 -2
  8. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
  9. package/dist/{ai-artifact-2PQ2fItc.js → ai-artifact-BMJdv-6q.js} +379 -376
  10. package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
  11. package/dist/{app-shell-BE_j8-AT.js → app-shell-ZK5RWdo6.js} +4 -4
  12. package/dist/{app-shell-BE_j8-AT.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
  13. package/dist/attachment-BtfhGm8i.js +245 -0
  14. package/dist/attachment-BtfhGm8i.js.map +1 -0
  15. package/dist/{auth-M3vGMgDR.js → auth-CYxKfo69.js} +237 -235
  16. package/dist/auth-CYxKfo69.js.map +1 -0
  17. package/dist/{avatar-djdaaQ_s.js → avatar-BBnEJIx8.js} +66 -65
  18. package/dist/avatar-BBnEJIx8.js.map +1 -0
  19. package/dist/badge-MrKVNzW9.js +93 -0
  20. package/dist/badge-MrKVNzW9.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +3 -0
  27. package/dist/base/buttons.js +2 -3
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +13 -13
  30. package/dist/base/carousel.js.map +1 -1
  31. package/dist/base/cascader.js +103 -115
  32. package/dist/base/cascader.js.map +1 -1
  33. package/dist/base/chart.js +1 -1
  34. package/dist/base/choice-inputs.js +3 -3
  35. package/dist/base/code-block.js +1 -1
  36. package/dist/base/combobox.js +1 -1
  37. package/dist/base/command.js +1 -1
  38. package/dist/base/copyable.js +1 -1
  39. package/dist/base/date-pickers.js +2 -2
  40. package/dist/base/display.js +7 -7
  41. package/dist/base/feedback.js +3 -3
  42. package/dist/base/forms-numeric.js +1 -1
  43. package/dist/base/forms.js +2 -2
  44. package/dist/base/inline-edit.js +17 -17
  45. package/dist/base/inline-edit.js.map +1 -1
  46. package/dist/base/item.js +1 -1
  47. package/dist/base/media-gallery.js +1 -1
  48. package/dist/base/metadata-list.js +3 -0
  49. package/dist/base/navigation.js +7 -7
  50. package/dist/base/popover-menu.js +1 -1
  51. package/dist/base/popover.js +1 -1
  52. package/dist/base/qr-code.js +1 -1
  53. package/dist/base/repeaters.js +171 -170
  54. package/dist/base/repeaters.js.map +1 -1
  55. package/dist/base/sheet.js +1 -1
  56. package/dist/base/sidebar.js +1 -1
  57. package/dist/base/signature-pad.js +147 -137
  58. package/dist/base/signature-pad.js.map +1 -1
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +1 -1
  61. package/dist/base/structure.js +1 -1
  62. package/dist/base/table.js +1 -1
  63. package/dist/base/text-inputs.js +2 -2
  64. package/dist/base/toaster.js +2 -2
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +2 -2
  69. package/dist/batch-action-bar-BZGDG-Si.js +104 -0
  70. package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
  71. package/dist/blocks/admin.js +173 -171
  72. package/dist/blocks/admin.js.map +1 -1
  73. package/dist/blocks/ai.js +266 -263
  74. package/dist/blocks/ai.js.map +1 -1
  75. package/dist/blocks/analytics/usage-card.js +1 -1
  76. package/dist/blocks/analytics.js +440 -438
  77. package/dist/blocks/analytics.js.map +1 -1
  78. package/dist/blocks/collaboration.js +1 -1
  79. package/dist/blocks/commerce/receipt.js +1 -1
  80. package/dist/blocks/commerce.js +1945 -1266
  81. package/dist/blocks/commerce.js.map +1 -1
  82. package/dist/blocks/data-display.js +3 -2
  83. package/dist/blocks/onboarding.js +50 -49
  84. package/dist/blocks/onboarding.js.map +1 -1
  85. package/dist/blocks/planning.js +25 -25
  86. package/dist/blocks/planning.js.map +1 -1
  87. package/dist/blocks/timelines.js +1 -1
  88. package/dist/breadcrumbs-D5t7I023.js +129 -0
  89. package/dist/breadcrumbs-D5t7I023.js.map +1 -0
  90. package/dist/{button-R9CCoH7A.js → button-QYwiyhD2.js} +15 -14
  91. package/dist/button-QYwiyhD2.js.map +1 -0
  92. package/dist/{button-BS3KDg00.js → buttons-SbIcm1HJ.js} +200 -213
  93. package/dist/buttons-SbIcm1HJ.js.map +1 -0
  94. package/dist/{cards-QoJ4syG9.js → cards-CiiHpKYd.js} +8 -8
  95. package/dist/cards-CiiHpKYd.js.map +1 -0
  96. package/dist/{chart-DwYRKKc-.js → chart-QfrARkXl.js} +5 -5
  97. package/dist/{chart-DwYRKKc-.js.map → chart-QfrARkXl.js.map} +1 -1
  98. package/dist/checkbox-DhB6K0bK.js +36 -0
  99. package/dist/checkbox-DhB6K0bK.js.map +1 -0
  100. package/dist/choice-inputs-t6w3ATNz.js +766 -0
  101. package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
  102. package/dist/code-block-Dgbu-CU3.js +185 -0
  103. package/dist/code-block-Dgbu-CU3.js.map +1 -0
  104. package/dist/{collapsible-oMUGM4tr.js → collapsible-D8AEGU1-.js} +4 -4
  105. package/dist/{collapsible-oMUGM4tr.js.map → collapsible-D8AEGU1-.js.map} +1 -1
  106. package/dist/{collection-content-Ys-OZOkY.js → collection-content-uK16Grv0.js} +3 -3
  107. package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-uK16Grv0.js.map} +1 -1
  108. package/dist/{combobox-6dvVny2q.js → combobox-2Ic8N9bL.js} +74 -68
  109. package/dist/combobox-2Ic8N9bL.js.map +1 -0
  110. package/dist/{combobox-CB7039j7.js → combobox-DLl0bfiq.js} +307 -305
  111. package/dist/combobox-DLl0bfiq.js.map +1 -0
  112. package/dist/{command-kPMPjIxJ.js → command-kNR20o7x.js} +7 -7
  113. package/dist/{command-kPMPjIxJ.js.map → command-kNR20o7x.js.map} +1 -1
  114. package/dist/{comments-You0Bzbr.js → comments-BpDuCUUu.js} +341 -339
  115. package/dist/comments-BpDuCUUu.js.map +1 -0
  116. package/dist/components/base/action-menu/action-menu.d.ts +21 -4
  117. package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
  118. package/dist/components/base/action-menu/index.d.ts +1 -0
  119. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  120. package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
  121. package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
  122. package/dist/components/base/batch-action-bar/index.d.ts +8 -0
  123. package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
  124. package/dist/components/base/buttons/button.recipes.d.ts +2 -2
  125. package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
  126. package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
  127. package/dist/components/base/display/alert-dialog.d.ts +6 -5
  128. package/dist/components/base/display/dialog.d.ts +4 -8
  129. package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
  130. package/dist/components/base/forms/form-sizing.d.ts +15 -12
  131. package/dist/components/base/metadata-list/index.d.ts +12 -0
  132. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
  133. package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
  134. package/dist/components/base/navigation/index.d.ts +1 -1
  135. package/dist/components/base/navigation/page-header/index.d.ts +1 -0
  136. package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
  137. package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
  138. package/dist/components/base/sheet/sheet.d.ts +4 -8
  139. package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
  140. package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
  141. package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
  142. package/dist/components/base/upload/upload.recipes.d.ts +25 -3
  143. package/dist/components/base/value-inputs/index.d.ts +5 -5
  144. package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
  145. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  146. package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
  147. package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
  148. package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
  149. package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
  150. package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
  151. package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
  152. package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
  153. package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
  154. package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
  155. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
  156. package/dist/components/blocks/commerce/index.d.ts +13 -5
  157. package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
  158. package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
  159. package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
  160. package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
  161. package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
  162. package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
  163. package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
  164. package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
  165. package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
  166. package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
  167. package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
  168. package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
  169. package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
  170. package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
  171. package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
  172. package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
  173. package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
  174. package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
  175. package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
  176. package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
  177. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
  178. package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
  179. package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
  180. package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
  181. package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
  182. package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
  183. package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
  184. package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
  185. package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
  186. package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
  187. package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
  188. package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
  189. package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
  190. package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
  191. package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
  192. package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
  193. package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
  194. package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
  195. package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
  196. package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
  197. package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
  198. package/dist/components/features/kanban/kanban.d.ts +1 -1
  199. package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
  200. package/dist/components/features/kanban/kanban.types.d.ts +2 -2
  201. package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
  202. package/dist/components/features/media-library/index.d.ts +1 -1
  203. package/dist/components/features/media-library/media-library.d.ts +1 -1
  204. package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
  205. package/dist/components/features/media-library/media-library.types.d.ts +74 -1
  206. package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
  207. package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
  208. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  209. package/dist/components/features/overlays/dialog.d.ts +1 -1
  210. package/dist/components/features/overlays/index.d.ts +1 -1
  211. package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
  212. package/dist/components/features/overlays/overlays.types.d.ts +20 -0
  213. package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
  214. package/dist/components/features/products/components/product-details-card.d.ts +5 -0
  215. package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
  216. package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
  217. package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
  218. package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
  219. package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
  220. package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
  221. package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
  222. package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
  223. package/dist/components/features/products/products.types.d.ts +9 -2
  224. package/dist/components/features/resource/index.d.ts +1 -1
  225. package/dist/components/features/resource/resource.d.ts +1 -1
  226. package/dist/components/features/resource/resource.types.d.ts +34 -6
  227. package/dist/components/features/rich-text-editor/index.d.ts +2 -1
  228. package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
  229. package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
  230. package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
  231. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
  232. package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
  233. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
  234. package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
  235. package/dist/components/features/sync/index.d.ts +26 -3
  236. package/dist/components/features/table/data-table.d.ts +1 -1
  237. package/dist/components/features/table/table.types.d.ts +32 -7
  238. package/dist/components/layout/page/index.d.ts +1 -1
  239. package/dist/components/layout/page/page.types.d.ts +33 -36
  240. package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
  241. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  242. package/dist/components/layout/settings/settings.d.ts +16 -2
  243. package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
  244. package/dist/components/typography/rich-text/index.d.ts +1 -1
  245. package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
  246. package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
  247. package/dist/components/typography/text-link.d.ts +4 -3
  248. package/dist/components/ui/checkbox.d.ts +4 -3
  249. package/dist/components/ui/overlay.recipes.d.ts +0 -9
  250. package/dist/components/ui/switch.d.ts +2 -2
  251. package/dist/{containers-D_L4mTVb.js → containers-DmWiJa2I.js} +36 -35
  252. package/dist/containers-DmWiJa2I.js.map +1 -0
  253. package/dist/{copyable-DDjTeW_j.js → copyable-B3Gwgdqc.js} +6 -6
  254. package/dist/{copyable-DDjTeW_j.js.map → copyable-B3Gwgdqc.js.map} +1 -1
  255. package/dist/data-display-DafIvCl5.js +960 -0
  256. package/dist/data-display-DafIvCl5.js.map +1 -0
  257. package/dist/{date-uf3z37Nm.js → date-BgK3bTdo.js} +5 -5
  258. package/dist/{date-uf3z37Nm.js.map → date-BgK3bTdo.js.map} +1 -1
  259. package/dist/date-picker-CF-DtUpF.js +1529 -0
  260. package/dist/date-picker-CF-DtUpF.js.map +1 -0
  261. package/dist/{date-pickers-CnFCb0n2.js → date-pickers-BmzxJl5l.js} +19 -19
  262. package/dist/{date-pickers-CnFCb0n2.js.map → date-pickers-BmzxJl5l.js.map} +1 -1
  263. package/dist/{display-DrdvPwF0.js → display-DsQTVzMz.js} +88 -87
  264. package/dist/display-DsQTVzMz.js.map +1 -0
  265. package/dist/{dropdown-menu-CURh59jb.js → dropdown-menu-E2qmdC7o.js} +7 -7
  266. package/dist/{dropdown-menu-CURh59jb.js.map → dropdown-menu-E2qmdC7o.js.map} +1 -1
  267. package/dist/features/activities.js +414 -501
  268. package/dist/features/activities.js.map +1 -1
  269. package/dist/features/ai-chat.js +170 -169
  270. package/dist/features/ai-chat.js.map +1 -1
  271. package/dist/features/async-preview.js +8 -8
  272. package/dist/features/async-preview.js.map +1 -1
  273. package/dist/features/combobox.js +1 -1
  274. package/dist/features/comments.js +1 -1
  275. package/dist/features/data-view.js +139 -138
  276. package/dist/features/data-view.js.map +1 -1
  277. package/dist/features/email-composer/engine.js +1 -1
  278. package/dist/features/email-composer.js +73 -71
  279. package/dist/features/email-composer.js.map +1 -1
  280. package/dist/features/event-calendar.js +278 -275
  281. package/dist/features/event-calendar.js.map +1 -1
  282. package/dist/features/filters.js +1 -1
  283. package/dist/features/global-search.js +307 -310
  284. package/dist/features/global-search.js.map +1 -1
  285. package/dist/features/kanban.js +95 -97
  286. package/dist/features/kanban.js.map +1 -1
  287. package/dist/features/map.js +56 -57
  288. package/dist/features/map.js.map +1 -1
  289. package/dist/features/media-library.js +918 -825
  290. package/dist/features/media-library.js.map +1 -1
  291. package/dist/features/mentions.js +1 -1
  292. package/dist/features/overlays.js +1 -1
  293. package/dist/features/products.js +1115 -1122
  294. package/dist/features/products.js.map +1 -1
  295. package/dist/features/questionnaire.js +202 -194
  296. package/dist/features/questionnaire.js.map +1 -1
  297. package/dist/features/resource-assignment.js +25 -25
  298. package/dist/features/resource-assignment.js.map +1 -1
  299. package/dist/features/resource.js +77 -69
  300. package/dist/features/resource.js.map +1 -1
  301. package/dist/features/rich-text-editor.js +30 -11
  302. package/dist/features/rich-text-editor.js.map +1 -1
  303. package/dist/features/schema-form.js +33 -33
  304. package/dist/features/schema-form.js.map +1 -1
  305. package/dist/features/suggestions.js +3 -3
  306. package/dist/features/sync.js +3 -3
  307. package/dist/features/table.js +1 -1
  308. package/dist/features/theme-tweaker.js +397 -396
  309. package/dist/features/theme-tweaker.js.map +1 -1
  310. package/dist/{feedback-C7nR0UtT.js → feedback-qNuMBtRH.js} +84 -83
  311. package/dist/feedback-qNuMBtRH.js.map +1 -0
  312. package/dist/{field-affordance-recipes-CkOCdE2y.js → field-affordance-recipes-qQeIf4lG.js} +8 -6
  313. package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
  314. package/dist/field-state-recipes-BVA2CWHo.js +12 -0
  315. package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
  316. package/dist/{filters-Da-gNPsE.js → filters-BkHH53uv.js} +565 -563
  317. package/dist/filters-BkHH53uv.js.map +1 -0
  318. package/dist/focus-recipes-B653VaLq.js +12 -0
  319. package/dist/focus-recipes-B653VaLq.js.map +1 -0
  320. package/dist/{form-field-VZRULhUK.js → form-field-DUt4UxSV.js} +4 -4
  321. package/dist/{form-field-VZRULhUK.js.map → form-field-DUt4UxSV.js.map} +1 -1
  322. package/dist/{form-sizing-uWP4lzVh.js → form-sizing-By94KzXE.js} +19 -15
  323. package/dist/form-sizing-By94KzXE.js.map +1 -0
  324. package/dist/{forms-DDeEnXSY.js → forms-Bzha-Y3B.js} +22 -22
  325. package/dist/{forms-DDeEnXSY.js.map → forms-Bzha-Y3B.js.map} +1 -1
  326. package/dist/{forms-numeric-D3CO60IF.js → forms-numeric-C0bvjRPZ.js} +265 -264
  327. package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
  328. package/dist/{header-2ycNqGOR.js → header-BOefOKd1.js} +47 -51
  329. package/dist/header-BOefOKd1.js.map +1 -0
  330. package/dist/{hooks-DQ5SPwZw.js → hooks-9k_TtmKh.js} +2 -2
  331. package/dist/{hooks-DQ5SPwZw.js.map → hooks-9k_TtmKh.js.map} +1 -1
  332. package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
  333. package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
  334. package/dist/icon-badge-CAuKupo9.js +55 -0
  335. package/dist/icon-badge-CAuKupo9.js.map +1 -0
  336. package/dist/index.js +7 -7
  337. package/dist/input-DWhBBBww.js +262 -0
  338. package/dist/input-DWhBBBww.js.map +1 -0
  339. package/dist/{input-BoLm9Hks.js → input-Ddi_LSYv.js} +3 -3
  340. package/dist/{input-BoLm9Hks.js.map → input-Ddi_LSYv.js.map} +1 -1
  341. package/dist/interaction-recipes-CHr0dJUs.js +24 -0
  342. package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
  343. package/dist/{item-xzh8Df65.js → item-DEmDiTlD.js} +98 -97
  344. package/dist/item-DEmDiTlD.js.map +1 -0
  345. package/dist/layer-recipes-CCpklYME.js +13 -0
  346. package/dist/layer-recipes-CCpklYME.js.map +1 -0
  347. package/dist/layout/app-shell.js +1 -1
  348. package/dist/layout/auth.js +1 -1
  349. package/dist/layout/containers.js +1 -1
  350. package/dist/layout/header.js +1 -1
  351. package/dist/layout/hooks.js +1 -1
  352. package/dist/layout/navigation.js +1 -1
  353. package/dist/layout/page.js +1 -1
  354. package/dist/layout/settings.js +1 -1
  355. package/dist/layout/sidebar.js +2 -2
  356. package/dist/layout/workspace.js +1 -1
  357. package/dist/layout.js +10 -10
  358. package/dist/lib/affordance-geometry.generated.d.ts +1 -0
  359. package/dist/lib/field-affordance-recipes.d.ts +6 -1
  360. package/dist/lib/field-state-recipes.d.ts +9 -8
  361. package/dist/lib/focus-recipes.d.ts +24 -0
  362. package/dist/lib/interaction-recipes.d.ts +35 -0
  363. package/dist/lib/layer-recipes.d.ts +19 -0
  364. package/dist/lib/motion-recipes.d.ts +1 -0
  365. package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
  366. package/dist/lib/safe-image-src.d.ts +10 -0
  367. package/dist/lib/sanitize-html.d.ts +15 -3
  368. package/dist/lib/surface-recipes.d.ts +47 -7
  369. package/dist/lib/token-merge.generated.d.ts +9 -6
  370. package/dist/lib/tone-recipes.d.ts +79 -0
  371. package/dist/lib/ui-provider/hooks.d.ts +2 -1
  372. package/dist/lib/ui-provider/index.d.ts +2 -2
  373. package/dist/lib/ui-provider/types.d.ts +9 -0
  374. package/dist/lib/utils.js +1 -1
  375. package/dist/media-gallery-DcTtAaeC.js +203 -0
  376. package/dist/media-gallery-DcTtAaeC.js.map +1 -0
  377. package/dist/mentions-D-uyCh01.js +568 -0
  378. package/dist/mentions-D-uyCh01.js.map +1 -0
  379. package/dist/{message-YfFmbXNP.js → message-CdHgIWKf.js} +5 -5
  380. package/dist/{message-YfFmbXNP.js.map → message-CdHgIWKf.js.map} +1 -1
  381. package/dist/metadata-list-X5rYAKSB.js +394 -0
  382. package/dist/metadata-list-X5rYAKSB.js.map +1 -0
  383. package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
  384. package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
  385. package/dist/navigation-D3KwXmaq.js +145 -0
  386. package/dist/navigation-D3KwXmaq.js.map +1 -0
  387. package/dist/navigation-HJf5zxlH.js +268 -0
  388. package/dist/navigation-HJf5zxlH.js.map +1 -0
  389. package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BVowojQw.js} +2 -2
  390. package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
  391. package/dist/{number-CKRBYmZK.js → number-DMhe-Vsk.js} +5 -5
  392. package/dist/{number-CKRBYmZK.js.map → number-DMhe-Vsk.js.map} +1 -1
  393. package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
  394. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
  395. package/dist/overlay.recipes-8GHqmlb4.js +6 -0
  396. package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
  397. package/dist/overlays-I0axtYA6.js +999 -0
  398. package/dist/overlays-I0axtYA6.js.map +1 -0
  399. package/dist/page-B5dTH9gE.js +224 -0
  400. package/dist/page-B5dTH9gE.js.map +1 -0
  401. package/dist/page-header-commands-DjzFEq3E.js +126 -0
  402. package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
  403. package/dist/{pagination-Cm0jqa3I.js → pagination-3bPA_a6K.js} +15 -15
  404. package/dist/{pagination-Cm0jqa3I.js.map → pagination-3bPA_a6K.js.map} +1 -1
  405. package/dist/{popover-Dcv_9jxr.js → popover-Di55PyAI.js} +8 -8
  406. package/dist/popover-Di55PyAI.js.map +1 -0
  407. package/dist/{popover-menu-DnRFKnHP.js → popover-menu-B71Tn2Qz.js} +6 -6
  408. package/dist/{popover-menu-DnRFKnHP.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
  409. package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-Bdyhj2db.js} +2 -2
  410. package/dist/{popover.recipes-wmbvL8Ah.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
  411. package/dist/{primitives-BHrwQXFC.js → primitives-B-CkiEMU.js} +5 -5
  412. package/dist/{primitives-BHrwQXFC.js.map → primitives-B-CkiEMU.js.map} +1 -1
  413. package/dist/primitives.js +4 -4
  414. package/dist/{progress-Br9WTFya.js → progress-rnS8-uAW.js} +9 -9
  415. package/dist/{progress-Br9WTFya.js.map → progress-rnS8-uAW.js.map} +1 -1
  416. package/dist/{receipt-CV89q1fs.js → receipt-D0oswZ0p.js} +6 -6
  417. package/dist/{receipt-CV89q1fs.js.map → receipt-D0oswZ0p.js.map} +1 -1
  418. package/dist/rich-text-DvGulsNJ.js +78 -0
  419. package/dist/rich-text-DvGulsNJ.js.map +1 -0
  420. package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
  421. package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
  422. package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
  423. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
  424. package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
  425. package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
  426. package/dist/safe-image-src-C6kQSMBZ.js +17 -0
  427. package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
  428. package/dist/sanitize-html-DsQmI48u.js +92 -0
  429. package/dist/sanitize-html-DsQmI48u.js.map +1 -0
  430. package/dist/scroll-area-Bt_vXY2b.js +48 -0
  431. package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
  432. package/dist/{separator-Do5GWDYi.js → separator-C8DlRGwF.js} +3 -3
  433. package/dist/{separator-Do5GWDYi.js.map → separator-C8DlRGwF.js.map} +1 -1
  434. package/dist/{separator-BMEvwnSX.js → separator-CYHnjsAb.js} +2 -2
  435. package/dist/{separator-BMEvwnSX.js.map → separator-CYHnjsAb.js.map} +1 -1
  436. package/dist/services/actions/action-adapters.d.ts +18 -0
  437. package/dist/services/actions/index.d.ts +1 -1
  438. package/dist/services/actions.js +16 -4
  439. package/dist/services/actions.js.map +1 -1
  440. package/dist/settings-CQW3b-Cu.js +170 -0
  441. package/dist/settings-CQW3b-Cu.js.map +1 -0
  442. package/dist/sheet-4SEvVYzA.js +210 -0
  443. package/dist/sheet-4SEvVYzA.js.map +1 -0
  444. package/dist/{sidebar-Crc9M9JV.js → sidebar-C7WWR29L.js} +180 -179
  445. package/dist/sidebar-C7WWR29L.js.map +1 -0
  446. package/dist/{sidebar-Cb8WzOvE.js → sidebar-d7Dg80ln.js} +16 -16
  447. package/dist/sidebar-d7Dg80ln.js.map +1 -0
  448. package/dist/{skeleton-DVMXr15h.js → skeleton-Cz890JZF.js} +9 -9
  449. package/dist/{skeleton-DVMXr15h.js.map → skeleton-Cz890JZF.js.map} +1 -1
  450. package/dist/smart-card-lFKxn5Hu.js +595 -0
  451. package/dist/smart-card-lFKxn5Hu.js.map +1 -0
  452. package/dist/{spinner-CmTAbEp0.js → spinner-fa3h1Aif.js} +7 -7
  453. package/dist/{spinner-CmTAbEp0.js.map → spinner-fa3h1Aif.js.map} +1 -1
  454. package/dist/{structure-hzCW-XsV.js → structure-DC2dygdA.js} +2 -2
  455. package/dist/{structure-hzCW-XsV.js.map → structure-DC2dygdA.js.map} +1 -1
  456. package/dist/style.css +1 -1
  457. package/dist/surface-recipes-BKRVW8Os.js +43 -0
  458. package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
  459. package/dist/{table-D6zKeYQX.js → table-CIKyLUsy.js} +59 -58
  460. package/dist/table-CIKyLUsy.js.map +1 -0
  461. package/dist/table-CrcLN9Io.js +1458 -0
  462. package/dist/table-CrcLN9Io.js.map +1 -0
  463. package/dist/{tabs-Dk8E_knt.js → tabs-DwBJfjxX.js} +58 -57
  464. package/dist/tabs-DwBJfjxX.js.map +1 -0
  465. package/dist/{text-inputs-BFpku0Qd.js → text-inputs-aaK9wcDT.js} +74 -79
  466. package/dist/text-inputs-aaK9wcDT.js.map +1 -0
  467. package/dist/theme.css +3 -3
  468. package/dist/{timelines-CxuAFIc2.js → timelines-C_SBwHNP.js} +153 -150
  469. package/dist/timelines-C_SBwHNP.js.map +1 -0
  470. package/dist/tone-recipes-CPoExcTE.js +70 -0
  471. package/dist/tone-recipes-CPoExcTE.js.map +1 -0
  472. package/dist/tooltip-CsfgrfS7.js +111 -0
  473. package/dist/tooltip-CsfgrfS7.js.map +1 -0
  474. package/dist/{tree-BotPlyiD.js → tree-BiKhg8AY.js} +68 -66
  475. package/dist/tree-BiKhg8AY.js.map +1 -0
  476. package/dist/typography/rich-text.js +1 -1
  477. package/dist/typography-DTRkE9zL.js +117 -0
  478. package/dist/typography-DTRkE9zL.js.map +1 -0
  479. package/dist/typography.js +1 -1
  480. package/dist/{ui-provider-D2_TeLqw.js → ui-provider-1D_NSYzO.js} +11 -3
  481. package/dist/ui-provider-1D_NSYzO.js.map +1 -0
  482. package/dist/ui-provider.js +3 -3
  483. package/dist/{upload-B0WHW7ak.js → upload-BO8-CLN6.js} +209 -209
  484. package/dist/upload-BO8-CLN6.js.map +1 -0
  485. package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-EOC8g1gf.js} +109 -111
  486. package/dist/upload-queue-EOC8g1gf.js.map +1 -0
  487. package/dist/upload.recipes-BbxTqrCT.js +61 -0
  488. package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
  489. package/dist/{usage-card-U0YBLTNT.js → usage-card-obRaBskq.js} +46 -46
  490. package/dist/{usage-card-U0YBLTNT.js.map → usage-card-obRaBskq.js.map} +1 -1
  491. package/dist/{utils-Cospvlj1.js → utils-l5LpDw2z.js} +56 -24
  492. package/dist/utils-l5LpDw2z.js.map +1 -0
  493. package/dist/value-inputs-TAYMX111.js +947 -0
  494. package/dist/value-inputs-TAYMX111.js.map +1 -0
  495. package/dist/{value-typography-Deb3yQZg.js → value-typography-b8wpz1eX.js} +2 -2
  496. package/dist/{value-typography-Deb3yQZg.js.map → value-typography-b8wpz1eX.js.map} +1 -1
  497. package/dist/workspace-DH0v0KcB.js +407 -0
  498. package/dist/workspace-DH0v0KcB.js.map +1 -0
  499. package/docs/consumer-skill/SKILL.md +19 -20
  500. package/docs/consumer-skill/examples/app-layout.tsx +1 -1
  501. package/docs/consumer-skill/examples/composition.tsx +3 -3
  502. package/docs/consumer-skill/examples/detail.tsx +59 -12
  503. package/docs/consumer-skill/examples/edit.tsx +1 -1
  504. package/docs/consumer-skill/examples/receipt.tsx +2 -2
  505. package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
  506. package/docs/consumer-skill/examples/website.tsx +1 -1
  507. package/docs/consumer-skill/references/agents-md.md +33 -0
  508. package/docs/consumer-skill/references/analytics.md +1 -1
  509. package/docs/consumer-skill/references/composition.md +51 -8
  510. package/docs/consumer-skill/references/design-contract.md +12 -3
  511. package/docs/consumer-skill/references/installation.md +11 -1
  512. package/docs/consumer-skill/references/public-api.json +847 -447
  513. package/docs/consumer-skill/references/review.md +25 -5
  514. package/docs/consumer-skill/references/theming.md +8 -4
  515. package/docs/consumer-skill/references/tokens.json +1 -1
  516. package/docs/consumer-skill/references/workflows.md +29 -10
  517. package/docs/consumer-skill/scripts/composition-policy.mjs +41 -11
  518. package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
  519. package/package.json +10 -2
  520. package/dist/accordion-CQXVcd7Q.js.map +0 -1
  521. package/dist/action-menu-BTpyPWJ2.js +0 -264
  522. package/dist/action-menu-BTpyPWJ2.js.map +0 -1
  523. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
  524. package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
  525. package/dist/attachment-q69dlt5Y.js +0 -244
  526. package/dist/attachment-q69dlt5Y.js.map +0 -1
  527. package/dist/auth-M3vGMgDR.js.map +0 -1
  528. package/dist/avatar-djdaaQ_s.js.map +0 -1
  529. package/dist/badge-0tATj-tW.js +0 -92
  530. package/dist/badge-0tATj-tW.js.map +0 -1
  531. package/dist/breadcrumbs-BG_FfMK4.js +0 -128
  532. package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
  533. package/dist/button-BS3KDg00.js.map +0 -1
  534. package/dist/button-R9CCoH7A.js.map +0 -1
  535. package/dist/buttons-DS0ZIwJ_.js +0 -99
  536. package/dist/buttons-DS0ZIwJ_.js.map +0 -1
  537. package/dist/cards-QoJ4syG9.js.map +0 -1
  538. package/dist/checkbox-B7ygNTYp.js +0 -35
  539. package/dist/checkbox-B7ygNTYp.js.map +0 -1
  540. package/dist/choice-inputs-DrJ17tpL.js +0 -752
  541. package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
  542. package/dist/code-block-CD0B7M93.js +0 -183
  543. package/dist/code-block-CD0B7M93.js.map +0 -1
  544. package/dist/combobox-6dvVny2q.js.map +0 -1
  545. package/dist/combobox-CB7039j7.js.map +0 -1
  546. package/dist/comments-You0Bzbr.js.map +0 -1
  547. package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
  548. package/dist/containers-D_L4mTVb.js.map +0 -1
  549. package/dist/data-display-3xWQUnMA.js +0 -1335
  550. package/dist/data-display-3xWQUnMA.js.map +0 -1
  551. package/dist/date-picker-DrDFj8Lo.js +0 -1527
  552. package/dist/date-picker-DrDFj8Lo.js.map +0 -1
  553. package/dist/display-DrdvPwF0.js.map +0 -1
  554. package/dist/feedback-C7nR0UtT.js.map +0 -1
  555. package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
  556. package/dist/field-state-recipes-C-MFBX_8.js +0 -11
  557. package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
  558. package/dist/filters-Da-gNPsE.js.map +0 -1
  559. package/dist/form-sizing-uWP4lzVh.js.map +0 -1
  560. package/dist/forms-numeric-D3CO60IF.js.map +0 -1
  561. package/dist/header-2ycNqGOR.js.map +0 -1
  562. package/dist/icon-badge-DKlaKXoo.js +0 -53
  563. package/dist/icon-badge-DKlaKXoo.js.map +0 -1
  564. package/dist/input-DhQdBnV3.js +0 -255
  565. package/dist/input-DhQdBnV3.js.map +0 -1
  566. package/dist/item-xzh8Df65.js.map +0 -1
  567. package/dist/media-gallery-DQUQ0m3O.js +0 -201
  568. package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
  569. package/dist/mentions-DwnO1hh4.js +0 -564
  570. package/dist/mentions-DwnO1hh4.js.map +0 -1
  571. package/dist/navigation-Cbp5V8gG.js +0 -264
  572. package/dist/navigation-Cbp5V8gG.js.map +0 -1
  573. package/dist/navigation-Cs1npsPm.js +0 -300
  574. package/dist/navigation-Cs1npsPm.js.map +0 -1
  575. package/dist/overlay.recipes-CNO2S9V6.js +0 -34
  576. package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
  577. package/dist/overlays-DhZO7N-I.js +0 -994
  578. package/dist/overlays-DhZO7N-I.js.map +0 -1
  579. package/dist/page-C6R_8jFt.js +0 -325
  580. package/dist/page-C6R_8jFt.js.map +0 -1
  581. package/dist/page-header-hUTzcRZX.js +0 -112
  582. package/dist/page-header-hUTzcRZX.js.map +0 -1
  583. package/dist/popover-Dcv_9jxr.js.map +0 -1
  584. package/dist/rich-text-editor-CF8QYt5p.js +0 -574
  585. package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
  586. package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
  587. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
  588. package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
  589. package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
  590. package/dist/rich-text-j-FGAeZW.js +0 -32
  591. package/dist/rich-text-j-FGAeZW.js.map +0 -1
  592. package/dist/sanitize-html-BG9FGe-j.js +0 -64
  593. package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
  594. package/dist/scroll-area-DRdr16Pt.js +0 -47
  595. package/dist/scroll-area-DRdr16Pt.js.map +0 -1
  596. package/dist/settings-DHk0L2MF.js +0 -161
  597. package/dist/settings-DHk0L2MF.js.map +0 -1
  598. package/dist/sheet-DRFNY1_D.js +0 -207
  599. package/dist/sheet-DRFNY1_D.js.map +0 -1
  600. package/dist/sidebar-Cb8WzOvE.js.map +0 -1
  601. package/dist/sidebar-Crc9M9JV.js.map +0 -1
  602. package/dist/smart-card-Bek-TwUp.js +0 -599
  603. package/dist/smart-card-Bek-TwUp.js.map +0 -1
  604. package/dist/surface-recipes-DOdoBXGm.js +0 -28
  605. package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
  606. package/dist/table-D6zKeYQX.js.map +0 -1
  607. package/dist/table-Dn4XSrSB.js +0 -1444
  608. package/dist/table-Dn4XSrSB.js.map +0 -1
  609. package/dist/tabs-Dk8E_knt.js.map +0 -1
  610. package/dist/text-inputs-BFpku0Qd.js.map +0 -1
  611. package/dist/timelines-CxuAFIc2.js.map +0 -1
  612. package/dist/tree-BotPlyiD.js.map +0 -1
  613. package/dist/typography-CAr3dQhX.js +0 -116
  614. package/dist/typography-CAr3dQhX.js.map +0 -1
  615. package/dist/ui-provider-D2_TeLqw.js.map +0 -1
  616. package/dist/upload-B0WHW7ak.js.map +0 -1
  617. package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
  618. package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
  619. package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
  620. package/dist/utils-Cospvlj1.js.map +0 -1
  621. package/dist/value-inputs-CjfzGMsN.js +0 -854
  622. package/dist/value-inputs-CjfzGMsN.js.map +0 -1
  623. package/dist/workspace-YoFjXi6i.js +0 -394
  624. package/dist/workspace-YoFjXi6i.js.map +0 -1
  625. /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
@@ -1,29 +1,31 @@
1
1
  "use client";
2
- import { a as e, o as t } from "./ui-provider-D2_TeLqw.js";
2
+ import { a as e, o as t } from "./ui-provider-1D_NSYzO.js";
3
3
  import { interpolateString as n, useStrings as r } from "./lib/strings.js";
4
- import { t as i } from "./utils-Cospvlj1.js";
5
- import { t as a } from "./buttons-DS0ZIwJ_.js";
6
- import { a as o, s, t as c } from "./typography-CAr3dQhX.js";
7
- import { a as l, c as u, o as d, s as f, t as p } from "./button-BS3KDg00.js";
8
- import { t as m } from "./structure-hzCW-XsV.js";
9
- import { t as h } from "./row-recipes-DL8n7t_b.js";
10
- import { i as g, t as _ } from "./overlays-DhZO7N-I.js";
11
- import { t as v } from "./sanitize-html-BG9FGe-j.js";
12
- import { t as y } from "./content-typography-CnwgMJ37.js";
13
- import { t as b } from "./rich-text-j-FGAeZW.js";
14
- import { g as x, i as S } from "./primitives-BHrwQXFC.js";
15
- import { n as C, t as w } from "./number-CKRBYmZK.js";
16
- import { i as ee } from "./date-uf3z37Nm.js";
17
- import { i as T, n as E, s as D } from "./avatar-djdaaQ_s.js";
18
- import { t as O } from "./badge-0tATj-tW.js";
19
- import { t as k } from "./field-affordance-recipes-CkOCdE2y.js";
20
- import { c as te, o as ne } from "./popover-Dcv_9jxr.js";
21
- import { l as re } from "./data-display-3xWQUnMA.js";
22
- import { t as ie } from "./rich-text-editor-CF8QYt5p.js";
23
- import { l as A, n as ae, o as j, r as oe, t as se } from "./mentions-DwnO1hh4.js";
24
- import { Fragment as M, createElement as ce, forwardRef as N, memo as P, useCallback as F, useEffect as I, useImperativeHandle as L, useMemo as R, useRef as z, useState as B } from "react";
25
- import { Fragment as V, jsx as H, jsxs as U } from "react/jsx-runtime";
26
- import { AtSign as le, CornerDownRight as ue, File as W, FileText as de, Image as G, Loader2 as fe, MessageCircle as K, Paperclip as pe, Pencil as q, Pin as J, Smile as me, Trash2 as he, X as Y } from "lucide-react";
4
+ import { t as i } from "./utils-l5LpDw2z.js";
5
+ import { n as a, t as o } from "./buttons-SbIcm1HJ.js";
6
+ import { a as s, s as c, t as l } from "./typography-DTRkE9zL.js";
7
+ import { i as u, n as d, r as f, t as p } from "./tooltip-CsfgrfS7.js";
8
+ import { t as m } from "./structure-DC2dygdA.js";
9
+ import { r as h } from "./tone-recipes-CPoExcTE.js";
10
+ import { t as g } from "./row-recipes-DL8n7t_b.js";
11
+ import { i as _, t as v } from "./overlays-I0axtYA6.js";
12
+ import { t as y } from "./interaction-recipes-CHr0dJUs.js";
13
+ import { t as b } from "./sanitize-html-DsQmI48u.js";
14
+ import { t as x } from "./content-typography-CnwgMJ37.js";
15
+ import { t as S } from "./rich-text-DvGulsNJ.js";
16
+ import { g as C, i as w } from "./primitives-B-CkiEMU.js";
17
+ import { n as ee, t as T } from "./number-DMhe-Vsk.js";
18
+ import { i as E } from "./date-BgK3bTdo.js";
19
+ import { i as D, n as O, s as te } from "./avatar-BBnEJIx8.js";
20
+ import { t as k } from "./badge-MrKVNzW9.js";
21
+ import { n as A } from "./field-affordance-recipes-qQeIf4lG.js";
22
+ import { c as ne, o as re } from "./popover-Di55PyAI.js";
23
+ import { s as j } from "./data-display-DafIvCl5.js";
24
+ import { t as ie } from "./rich-text-editor-sMU_Scqm.js";
25
+ import { l as M, n as ae, o as oe, r as N, t as se } from "./mentions-D-uyCh01.js";
26
+ import { Fragment as P, createElement as F, forwardRef as I, memo as L, useCallback as R, useEffect as z, useImperativeHandle as ce, useMemo as B, useRef as V, useState as H } from "react";
27
+ import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
28
+ import { AtSign as le, CornerDownRight as ue, File as K, FileText as de, Image as q, Loader2 as fe, MessageCircle as J, Paperclip as pe, Pencil as me, Pin as he, Smile as ge, Trash2 as _e, X as Y } from "lucide-react";
27
29
  //#region src/components/features/comments/comments.strings.ts
28
30
  var X = {
29
31
  title: "Comments",
@@ -73,12 +75,12 @@ var X = {
73
75
  };
74
76
  //#endregion
75
77
  //#region src/components/features/comments/comments-provider.tsx
76
- function ge(e) {
78
+ function Z(e) {
77
79
  return r(X, e);
78
80
  }
79
- function _e(e) {
81
+ function ve(e) {
80
82
  let n = t();
81
- return R(() => ({
83
+ return B(() => ({
82
84
  getMediaUrl: e?.getMediaUrl,
83
85
  getMediaName: e?.getMediaName,
84
86
  getStatusLabel: e?.getStatusLabel,
@@ -87,16 +89,16 @@ function _e(e) {
87
89
  }
88
90
  //#endregion
89
91
  //#region src/components/features/comments/hooks/use-comments.ts
90
- function ve(e = {}) {
91
- let { onSubmit: t, onUpdate: n, onDelete: r, onAfterMutate: i, onError: a } = e, [o, s] = B({ kind: "idle" }), [c, l] = B(!1), u = z(!1), [d, f] = B({}), [p, m] = B(0), h = F((e) => {
92
+ function Q(e = {}) {
93
+ let { onSubmit: t, onUpdate: n, onDelete: r, onAfterMutate: i, onError: a } = e, [o, s] = H({ kind: "idle" }), [c, l] = H(!1), u = V(!1), [d, f] = H({}), [p, m] = H(0), h = R((e) => {
92
94
  u.current = e, l(e);
93
- }, []), g = F(() => {
95
+ }, []), g = R(() => {
94
96
  m((e) => e + 1), s({ kind: "idle" }), f({}), h(!1);
95
- }, [h]), _ = R(() => ({
97
+ }, [h]), _ = B(() => ({
96
98
  setErrors: f,
97
99
  reset: g,
98
100
  setSubmitting: h
99
- }), [g, h]), v = F((e) => {
101
+ }), [g, h]), v = R((e) => {
100
102
  try {
101
103
  a?.(e);
102
104
  } catch {}
@@ -106,23 +108,23 @@ function ve(e = {}) {
106
108
  isSubmitting: c,
107
109
  formErrors: d,
108
110
  resetKey: p,
109
- startReply: F((e) => {
111
+ startReply: R((e) => {
110
112
  e.id && (f({}), s({
111
113
  kind: "replying",
112
114
  commentId: e.id,
113
115
  authorName: e.user?.name
114
116
  }));
115
117
  }, []),
116
- startEdit: F((e) => {
118
+ startEdit: R((e) => {
117
119
  e.id && (f({}), s({
118
120
  kind: "editing",
119
121
  comment: e
120
122
  }));
121
123
  }, []),
122
- cancelComposerMode: F(() => {
124
+ cancelComposerMode: R(() => {
123
125
  g();
124
126
  }, [g]),
125
- submit: F(async (e) => {
127
+ submit: R(async (e) => {
126
128
  if (o.kind === "editing" && o.comment.id) {
127
129
  if (!n || u.current) return;
128
130
  let t = {
@@ -161,7 +163,7 @@ function ve(e = {}) {
161
163
  v,
162
164
  h
163
165
  ]),
164
- deleteComment: F(async (e) => {
166
+ deleteComment: R(async (e) => {
165
167
  if (r && e) try {
166
168
  await r(e), i?.("delete", { commentId: e });
167
169
  } catch (e) {
@@ -179,48 +181,48 @@ function ve(e = {}) {
179
181
  //#endregion
180
182
  //#region src/components/features/comments/partials/comment-attachment-chip.tsx
181
183
  function ye(e) {
182
- return e.mimeType?.startsWith("image/") ? G : e.mimeType === "application/pdf" || e.mimeType?.startsWith("text/") ? de : e.mimeType ? W : pe;
184
+ return e.mimeType?.startsWith("image/") ? q : e.mimeType === "application/pdf" || e.mimeType?.startsWith("text/") ? de : e.mimeType ? K : pe;
183
185
  }
184
- var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: o, accessors: l, strings: u, compact: d = !1, className: f }) => {
185
- let p = r(X, u), m = l?.getMediaUrl?.(e) ?? e.url, g = l?.getMediaName?.(e) ?? e.name ?? p.attachmentFallback, _ = ye(e), v = e.status === "uploading", y = e.status === "failed", b = v ? /* @__PURE__ */ U(x, {
186
+ var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: a, accessors: s, strings: u, compact: d = !1, className: f }) => {
187
+ let p = r(X, u), m = s?.getMediaUrl?.(e) ?? e.url, _ = s?.getMediaName?.(e) ?? e.name ?? p.attachmentFallback, v = ye(e), b = e.status === "uploading", x = e.status === "failed", S = b ? /* @__PURE__ */ G(C, {
186
188
  size: "xs",
187
189
  className: "shrink-0",
188
- children: [p.attachmentUploadingLabel, typeof e.progress == "number" ? /* @__PURE__ */ U(V, { children: [" ", /* @__PURE__ */ H(C, {
190
+ children: [p.attachmentUploadingLabel, typeof e.progress == "number" ? /* @__PURE__ */ G(U, { children: [" ", /* @__PURE__ */ W(ee, {
189
191
  value: Math.round(e.progress),
190
192
  scaled: !0,
191
193
  size: "xs",
192
194
  align: "left",
193
195
  type: "secondary"
194
196
  })] }) : null]
195
- }) : y ? /* @__PURE__ */ H(x, {
197
+ }) : x ? /* @__PURE__ */ W(C, {
196
198
  size: "xs",
197
199
  className: "shrink-0",
198
200
  children: e.error ?? p.attachmentFailedLabel
199
- }) : typeof e.size == "number" ? /* @__PURE__ */ H(S, {
201
+ }) : typeof e.size == "number" ? /* @__PURE__ */ W(w, {
200
202
  value: e.size,
201
203
  size: "xs",
202
204
  className: "shrink-0"
203
- }) : null, w = i("comment-attachment-chip--component", "relative inline-flex min-w-0 max-w-[20rem] items-center gap-space-sm rounded-radius", "ring-1 ring-inset transition-colors", d ? "px-control-xs" : "px-control-sm", h.compact, y ? "bg-destructive/[0.04] ring-destructive/30 hover:bg-destructive/[0.08]" : "bg-foreground/[0.03] ring-border/60 hover:bg-foreground/[0.06]", f), ee = v ? /* @__PURE__ */ H(fe, {
205
+ }) : null, T = i("comment-attachment-chip--component", "relative inline-flex min-w-0 max-w-[20rem] items-center gap-space-sm rounded-radius", "ring-1 ring-inset transition-colors", d ? "px-control-xs" : "px-control-sm", g.compact, x ? `${h.destructive.tint} ${h.destructive.halo}` : `bg-muted ring-border/60 ${y.rowHover}`, f), E = b ? /* @__PURE__ */ W(fe, {
204
206
  className: i("shrink-0 animate-spin text-muted-foreground", "size-icon-md"),
205
207
  "aria-hidden": !0
206
- }) : /* @__PURE__ */ H(_, {
207
- className: i("shrink-0", "size-icon-md", y ? "text-destructive" : "text-muted-foreground"),
208
+ }) : /* @__PURE__ */ W(v, {
209
+ className: i("shrink-0", "size-icon-md", x ? "text-destructive" : "text-muted-foreground"),
208
210
  "aria-hidden": !0
209
- }), T = /* @__PURE__ */ U("span", {
211
+ }), D = /* @__PURE__ */ G("span", {
210
212
  className: "inline-flex min-w-0 items-baseline gap-space-sm",
211
- children: [/* @__PURE__ */ H(s, {
213
+ children: [/* @__PURE__ */ W(c, {
212
214
  tag: "span",
213
215
  size: "xs",
214
216
  weight: "medium",
215
- className: i("truncate", y && "text-destructive"),
216
- children: g
217
- }), b]
217
+ className: i("truncate", x && "text-destructive"),
218
+ children: _
219
+ }), S]
218
220
  });
219
- return /* @__PURE__ */ U("div", {
220
- className: w,
221
+ return /* @__PURE__ */ G("div", {
222
+ className: T,
221
223
  children: [
222
- ee,
223
- m && !v && !y ? /* @__PURE__ */ H(c, {
224
+ E,
225
+ m && !b && !x ? /* @__PURE__ */ W(l, {
224
226
  href: m,
225
227
  size: "inherit",
226
228
  underline: !1,
@@ -228,21 +230,21 @@ var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: o, accessors:
228
230
  rel: "noreferrer noopener",
229
231
  className: "inline-flex min-w-0 flex-1 items-baseline gap-space-sm hover:underline",
230
232
  "aria-label": p.attachmentDownloadLabel,
231
- children: T
232
- }) : T,
233
- v && typeof e.progress == "number" && /* @__PURE__ */ H("div", {
234
- className: "bg-primary/15 absolute bottom-0 left-2 right-2 h-px overflow-hidden rounded-full",
235
- children: /* @__PURE__ */ H("div", {
233
+ children: D
234
+ }) : D,
235
+ b && typeof e.progress == "number" && /* @__PURE__ */ W("div", {
236
+ className: i(h.primary.line, "absolute bottom-0 left-2 right-2 h-px overflow-hidden rounded-full"),
237
+ children: /* @__PURE__ */ W("div", {
236
238
  className: "bg-primary h-full transition-[width]",
237
239
  style: { width: `${Math.min(100, Math.max(0, e.progress))}%` }
238
240
  })
239
241
  }),
240
- y && o && /* @__PURE__ */ H(a, {
242
+ x && a && /* @__PURE__ */ W(o, {
241
243
  type: "button",
242
244
  size: "sm",
243
- onClick: () => o(e.id),
245
+ onClick: () => a(e.id),
244
246
  className: "shrink-0 text-destructive decoration-destructive/30 hover:decoration-destructive/60",
245
- children: /* @__PURE__ */ H(s, {
247
+ children: /* @__PURE__ */ W(c, {
246
248
  tag: "span",
247
249
  size: "xs",
248
250
  weight: "medium",
@@ -250,14 +252,14 @@ var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: o, accessors:
250
252
  children: p.attachmentRetryLabel
251
253
  })
252
254
  }),
253
- t && n && /* @__PURE__ */ H("button", {
255
+ t && n && /* @__PURE__ */ W("button", {
254
256
  type: "button",
255
257
  onClick: () => n(e.id),
256
- className: i(k.target, k.focus, k.toggle),
258
+ className: i(A.target, A.focus, A.toggle),
257
259
  "aria-label": p.attachmentRemoveLabel,
258
260
  title: p.attachmentRemoveLabel,
259
- children: /* @__PURE__ */ H(Y, {
260
- className: k.icon,
261
+ children: /* @__PURE__ */ W(Y, {
262
+ className: A.icon,
261
263
  "aria-hidden": "true"
262
264
  })
263
265
  })
@@ -269,19 +271,19 @@ var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: o, accessors:
269
271
  attachmentFailedLabel: X.attachmentFailedLabel
270
272
  };
271
273
  function Se(e = {}) {
272
- let { onUpload: t, maxSize: n, maxFiles: i, disabled: a, initialAttachments: o, onValueChange: s, onError: c, strings: l } = e, u = r(xe, l), [d, f] = B(() => o ? [...o] : []), p = z(/* @__PURE__ */ new Map()), m = z(/* @__PURE__ */ new Map()), h = z(d), g = F((e) => {
274
+ let { onUpload: t, maxSize: n, maxFiles: i, disabled: a, initialAttachments: o, onValueChange: s, onError: c, strings: l } = e, u = r(xe, l), [d, f] = H(() => o ? [...o] : []), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), h = V(d), g = R((e) => {
273
275
  let t = [...e];
274
276
  h.current = t, f(t);
275
- }, []), _ = z(s);
277
+ }, []), _ = V(s);
276
278
  _.current = s;
277
- let v = F((e, t) => {
279
+ let v = R((e, t) => {
278
280
  g(h.current.map((n) => n.id === e ? {
279
281
  ...n,
280
282
  ...t
281
283
  } : n));
282
- }, [g]), y = F((e) => {
284
+ }, [g]), y = R((e) => {
283
285
  g(e);
284
- }, [g]), b = F((e, n) => {
286
+ }, [g]), b = R((e, n) => {
285
287
  if (!t || !m.current.has(e)) return;
286
288
  let r = new AbortController();
287
289
  p.current.set(e, { controller: r }), v(e, {
@@ -315,7 +317,7 @@ function Se(e = {}) {
315
317
  t,
316
318
  u.attachmentFailedLabel,
317
319
  v
318
- ]), x = F((e) => {
320
+ ]), x = R((e) => {
319
321
  if (a || !t) return;
320
322
  let r = Array.from(e);
321
323
  if (r.length === 0) return;
@@ -354,19 +356,19 @@ function Se(e = {}) {
354
356
  t,
355
357
  u.attachmentTooLargeError,
356
358
  u.attachmentTooManyError
357
- ]), S = F((e) => {
359
+ ]), S = R((e) => {
358
360
  let t = p.current.get(e);
359
361
  t && (t.controller.abort(), p.current.delete(e)), m.current.delete(e), g(h.current.filter((t) => t.id !== e));
360
- }, [g]), C = F((e) => {
362
+ }, [g]), C = R((e) => {
361
363
  let t = m.current.get(e);
362
364
  t && b(e, t);
363
- }, [b]), w = F(() => {
365
+ }, [b]), w = R(() => {
364
366
  for (let e of p.current.values()) e.controller.abort();
365
367
  p.current.clear(), m.current.clear(), g([]);
366
368
  }, [g]);
367
- return I(() => {
369
+ return z(() => {
368
370
  _.current?.(d);
369
- }, [d]), I(() => {
371
+ }, [d]), z(() => {
370
372
  let e = p.current, t = m.current;
371
373
  return () => {
372
374
  for (let t of e.values()) t.controller.abort();
@@ -374,8 +376,8 @@ function Se(e = {}) {
374
376
  };
375
377
  }, []), {
376
378
  attachments: d,
377
- uploadedAttachments: R(() => d.filter((e) => e.status === "uploaded" || !e.status), [d]),
378
- isUploading: R(() => d.some((e) => e.status === "uploading"), [d]),
379
+ uploadedAttachments: B(() => d.filter((e) => e.status === "uploaded" || !e.status), [d]),
380
+ isUploading: B(() => d.some((e) => e.status === "uploading"), [d]),
379
381
  addFiles: x,
380
382
  removeAttachment: S,
381
383
  retryAttachment: C,
@@ -388,8 +390,8 @@ function Se(e = {}) {
388
390
  function Ce(e) {
389
391
  return !e || typeof e != "string" ? !1 : e.replace(/<[^>]*>/g, "").trim().length > 0;
390
392
  }
391
- var Z = N(function({ context: e, canComment: t = !0, submitting: n = !1, errors: r, resetKey: i = 0, onSubmit: a, onCancel: o, editingComment: c, replyingTo: l, strings: u, resources: d, onResourceSearch: f, attachments: h, maxAttachments: g, allowAttachments: _, initialValues: v, autoFocus: y = !1, inlineSubmit: b = !0, placeholder: x }, S) {
392
- let C = ge(u), w = d, ee = f, T = _ ?? !0, E = h?.maxFiles ?? g ?? 5, D = R(() => ({
393
+ var $ = I(function({ context: e, canComment: t = !0, submitting: n = !1, errors: r, resetKey: i = 0, onSubmit: o, onCancel: s, editingComment: l, replyingTo: u, strings: d, resources: f, onResourceSearch: p, attachments: h, maxAttachments: g, allowAttachments: _, initialValues: v, autoFocus: y = !1, inlineSubmit: b = !0, placeholder: x }, S) {
394
+ let C = Z(d), w = f, ee = p, T = _ ?? !0, E = h?.maxFiles ?? g ?? 5, D = B(() => ({
393
395
  ...h,
394
396
  maxFiles: E,
395
397
  disabled: h?.disabled === !0 || !T
@@ -397,81 +399,81 @@ var Z = N(function({ context: e, canComment: t = !0, submitting: n = !1, errors:
397
399
  T,
398
400
  h,
399
401
  E
400
- ]), O = z(null), [k, re] = B(() => v?.content ?? c?.content ?? ""), [j, M] = B(null), [ce, N] = B(null), P = A({
402
+ ]), O = V(null), [te, k] = H(() => v?.content ?? l?.content ?? ""), [A, j] = H(null), [oe, P] = H(null), F = M({
401
403
  resources: w,
402
404
  onResourceSearch: ee,
403
405
  editorRef: O,
404
- initialMentions: v?.references ?? c?.references
405
- }), F = Se({
406
+ initialMentions: v?.references ?? l?.references
407
+ }), I = Se({
406
408
  ...D,
407
409
  initialAttachments: v?.attachments ?? void 0,
408
410
  strings: C,
409
- onError: N
410
- }), V = () => {
411
- F.reset(), N(null), o?.();
411
+ onError: P
412
+ }), L = () => {
413
+ I.reset(), P(null), s?.();
412
414
  };
413
- L(S, () => ({
415
+ ce(S, () => ({
414
416
  focus: () => O.current?.focus(),
415
417
  clear: () => {
416
- O.current?.clear(), P.reset(), F.reset(), M(null), N(null);
418
+ O.current?.clear(), F.reset(), I.reset(), j(null), P(null);
417
419
  },
418
420
  setBody: (e) => {
419
421
  O.current?.setHTML(e);
420
422
  }
421
- }), [F, P]), I(() => {
422
- O.current?.setHTML(v?.content ?? ""), P.setMentions(v?.references ?? []), F.reset(), F.setAttachments(v?.attachments ?? []), M(null), N(null);
423
+ }), [I, F]), z(() => {
424
+ O.current?.setHTML(v?.content ?? ""), F.setMentions(v?.references ?? []), I.reset(), I.setAttachments(v?.attachments ?? []), j(null), P(null);
423
425
  }, [
424
426
  e.id,
425
427
  e.type,
426
428
  i
427
- ]), I(() => {
428
- if (!c) return;
429
- O.current?.setHTML(c.content ?? ""), P.setMentions(c.references ?? []);
430
- let e = (c.attachments ?? []).filter((e) => !!e);
431
- F.reset(), F.setAttachments(e), N(null);
432
- }, [c?.id]), I(() => {
433
- r?.content && M(r.content);
429
+ ]), z(() => {
430
+ if (!l) return;
431
+ O.current?.setHTML(l.content ?? ""), F.setMentions(l.references ?? []);
432
+ let e = (l.attachments ?? []).filter((e) => !!e);
433
+ I.reset(), I.setAttachments(e), P(null);
434
+ }, [l?.id]), z(() => {
435
+ r?.content && j(r.content);
434
436
  }, [r]);
435
- let ue = (t) => {
436
- if (t?.preventDefault(), n || F.isUploading) return;
437
- let r = O.current?.getHTML() ?? k;
437
+ let R = (t) => {
438
+ if (t?.preventDefault(), n || I.isUploading) return;
439
+ let r = O.current?.getHTML() ?? te;
438
440
  if (!Ce(r)) {
439
- M(C.invalidContent);
441
+ j(C.invalidContent);
440
442
  return;
441
443
  }
442
- M(null), a({
444
+ j(null), o({
443
445
  content: r,
444
446
  commentableId: e.id,
445
447
  commentableType: e.type,
446
448
  moduleKey: e.moduleKey,
447
449
  contentType: "html",
448
- references: P.mentions,
449
- attachments: F.uploadedAttachments,
450
- replyToId: l?.commentId ?? v?.replyToId,
451
- editingId: c?.id
450
+ references: F.mentions,
451
+ attachments: I.uploadedAttachments,
452
+ replyToId: u?.commentId ?? v?.replyToId,
453
+ editingId: l?.id
452
454
  });
453
- }, W = z(null), de = () => W.current?.click(), G = (e) => {
454
- e?.length && (N(null), F.addFiles(e));
455
- }, K = F.attachments.length > 0, q = !!c, J = !q && !!l, me = n ? C.composerSubmitting : q ? C.composerSave : C.composerSubmit, he = q ? /* @__PURE__ */ H(we, {
455
+ }, U = V(null), ue = () => U.current?.click(), K = (e) => {
456
+ e?.length && (P(null), I.addFiles(e));
457
+ }, de = I.attachments.length > 0, q = !!l, J = !q && !!u, me = n ? C.composerSubmitting : q ? C.composerSave : C.composerSubmit, he = q ? /* @__PURE__ */ W(we, {
456
458
  label: C.composerEditingEyebrow,
457
459
  closeLabel: C.composerCancel,
458
- onClose: o ? V : void 0
459
- }) : J ? /* @__PURE__ */ H(we, {
460
- label: Q(C.composerReplyingEyebrow, l.authorName),
460
+ onClose: s ? L : void 0
461
+ }) : J ? /* @__PURE__ */ W(we, {
462
+ label: Te(C.composerReplyingEyebrow, u.authorName),
461
463
  closeLabel: C.composerCancel,
462
- onClose: o ? V : void 0
463
- }) : null, Y = R(() => {
464
+ onClose: s ? L : void 0
465
+ }) : null, ge = B(() => {
464
466
  let e = [];
465
467
  return w && Object.keys(w).length > 0 && e.push({
466
468
  id: "reference",
467
469
  icon: le,
468
470
  label: C.composerReferenceLabel,
469
- onClick: () => P.setPickerOpen(!0)
471
+ onClick: () => F.setPickerOpen(!0)
470
472
  }), D?.onUpload && !D.disabled && e.push({
471
473
  id: "attachment",
472
474
  icon: pe,
473
475
  label: C.composerAttachmentLabel,
474
- onClick: de
476
+ onClick: ue
475
477
  }), e;
476
478
  }, [
477
479
  w,
@@ -481,77 +483,77 @@ var Z = N(function({ context: e, canComment: t = !0, submitting: n = !1, errors:
481
483
  C.composerAttachmentLabel
482
484
  ]);
483
485
  if (!t) return null;
484
- let X = /* @__PURE__ */ H(p, {
486
+ let _e = /* @__PURE__ */ W(a, {
485
487
  tone: "primary",
486
488
  type: "button",
487
- onClick: () => ue(),
488
- disabled: n || F.isUploading,
489
+ onClick: () => R(),
490
+ disabled: n || I.isUploading,
489
491
  icon: n ? fe : void 0,
490
492
  children: me
491
- }), _e = q || J || o ? /* @__PURE__ */ H(p, {
493
+ }), Y = q || J || s ? /* @__PURE__ */ W(a, {
492
494
  type: "button",
493
495
  tone: "secondary",
494
496
  buttonStyle: "ghost",
495
- onClick: V,
497
+ onClick: L,
496
498
  disabled: n,
497
499
  children: C.composerCancel
498
- }) : null, ve = K ? /* @__PURE__ */ H(m, {
500
+ }) : null, X = de ? /* @__PURE__ */ W(m, {
499
501
  direction: "horizontal",
500
502
  wrap: !0,
501
503
  align: "center",
502
504
  gap: "sm",
503
- children: F.attachments.map((e) => /* @__PURE__ */ H(be, {
505
+ children: I.attachments.map((e) => /* @__PURE__ */ W(be, {
504
506
  attachment: e,
505
507
  editable: !0,
506
508
  onRemove: (e) => {
507
- N(null), F.removeAttachment(e);
509
+ P(null), I.removeAttachment(e);
508
510
  },
509
511
  onRetry: (e) => {
510
- N(null), F.retryAttachment(e);
512
+ P(null), I.retryAttachment(e);
511
513
  },
512
- strings: u
514
+ strings: d
513
515
  }, e.id))
514
- }) : null, ye = K ? ve : null, xe = b !== !1 && !q && !J ? X : null, Z = b === !1 || q || J;
515
- return /* @__PURE__ */ U(m, {
516
- render: /* @__PURE__ */ H("form", {}),
516
+ }) : null, ve = de ? X : null, Q = b !== !1 && !q && !J ? _e : null, ye = b === !1 || q || J;
517
+ return /* @__PURE__ */ G(m, {
518
+ render: /* @__PURE__ */ W("form", {}),
517
519
  gap: "md",
518
- onSubmit: ue,
520
+ onSubmit: R,
519
521
  className: "comment-composer--component",
520
522
  children: [
521
523
  he,
522
- /* @__PURE__ */ H("input", {
523
- ref: W,
524
+ /* @__PURE__ */ W("input", {
525
+ ref: U,
524
526
  type: "file",
525
527
  multiple: !0,
526
528
  hidden: !0,
527
529
  accept: D?.accept,
528
530
  onChange: (e) => {
529
- G(e.target.files), e.target.value = "";
531
+ K(e.target.files), e.target.value = "";
530
532
  }
531
533
  }),
532
- !P.triggerActive && /* @__PURE__ */ U(ne, {
533
- open: P.pickerOpen,
534
- onOpenChange: P.setPickerOpen,
535
- children: [/* @__PURE__ */ H(te, { render: /* @__PURE__ */ H(p, {
534
+ !F.triggerActive && /* @__PURE__ */ G(re, {
535
+ open: F.pickerOpen,
536
+ onOpenChange: F.setPickerOpen,
537
+ children: [/* @__PURE__ */ W(ne, { render: /* @__PURE__ */ W(a, {
536
538
  type: "button",
537
539
  tone: "secondary",
538
540
  buttonStyle: "ghost",
539
541
  className: "sr-only",
540
542
  tabIndex: -1,
541
543
  children: C.composerReferenceLabel
542
- }) }), /* @__PURE__ */ H(oe, {
543
- open: P.pickerOpen,
544
- activeKind: P.activeKind,
544
+ }) }), /* @__PURE__ */ W(N, {
545
+ open: F.pickerOpen,
546
+ activeKind: F.activeKind,
545
547
  setActiveKind: (e) => {
546
- P.setActiveKind(e), P.setManualKindOverride(!0);
548
+ F.setActiveKind(e), F.setManualKindOverride(!0);
547
549
  },
548
- kinds: P.kinds,
550
+ kinds: F.kinds,
549
551
  resources: w,
550
- query: P.query,
551
- setQuery: P.setQuery,
552
- suggestions: P.suggestions,
553
- loading: P.isLoading,
554
- onSelect: P.pickSuggestion,
552
+ query: F.query,
553
+ setQuery: F.setQuery,
554
+ suggestions: F.suggestions,
555
+ loading: F.isLoading,
556
+ onSelect: F.pickSuggestion,
555
557
  strings: {
556
558
  title: C.composerReferenceMenuTitle,
557
559
  searchPlaceholder: C.composerReferenceSearchPlaceholder,
@@ -560,40 +562,40 @@ var Z = N(function({ context: e, canComment: t = !0, submitting: n = !1, errors:
560
562
  }
561
563
  })]
562
564
  }),
563
- /* @__PURE__ */ U("div", {
565
+ /* @__PURE__ */ G("div", {
564
566
  className: "comment-composer--editor relative",
565
- children: [/* @__PURE__ */ H(ie, {
567
+ children: [/* @__PURE__ */ W(ie, {
566
568
  ref: O,
567
- value: k,
569
+ value: te,
568
570
  onValueChange: (e) => {
569
- re(e);
570
- let t = se(e), n = P.mentions;
571
+ k(e);
572
+ let t = se(e), n = F.mentions;
571
573
  if (n.map((e) => e.id).join("|") !== t.map((e) => e.id).join("|")) {
572
574
  let e = new Map(n.map((e) => [e.id, e])), r = t.map((t) => e.get(t.id) ?? t);
573
- P.setMentions(r);
575
+ F.setMentions(r);
574
576
  }
575
577
  },
576
578
  placeholder: x ?? C.composerPlaceholder,
577
579
  strings: { editorLabel: x ?? C.composerPlaceholder },
578
580
  minHeight: "3rem",
579
581
  autoFocus: y || q || J,
580
- extraToolbarItems: Y,
581
- toolbarTrailing: xe,
582
- footerSlot: ye,
583
- onCaretChange: P.handleCaretChange
584
- }), /* @__PURE__ */ H(ae, {
585
- open: P.triggerActive && P.pickerOpen,
586
- activeKind: P.activeKind,
582
+ extraToolbarItems: ge,
583
+ toolbarTrailing: Q,
584
+ footerSlot: ve,
585
+ onCaretChange: F.handleCaretChange
586
+ }), /* @__PURE__ */ W(ae, {
587
+ open: F.triggerActive && F.pickerOpen,
588
+ activeKind: F.activeKind,
587
589
  setActiveKind: (e) => {
588
- P.setActiveKind(e), P.setManualKindOverride(!0);
590
+ F.setActiveKind(e), F.setManualKindOverride(!0);
589
591
  },
590
- kinds: P.kinds,
592
+ kinds: F.kinds,
591
593
  resources: w,
592
- query: P.query,
593
- suggestions: P.suggestions,
594
- suggestionsByKind: P.suggestionsByKind,
595
- loading: P.isLoading,
596
- onSelect: P.pickSuggestion,
594
+ query: F.query,
595
+ suggestions: F.suggestions,
596
+ suggestionsByKind: F.suggestionsByKind,
597
+ loading: F.isLoading,
598
+ onSelect: F.pickSuggestion,
597
599
  strings: {
598
600
  title: C.composerReferenceMenuTitle,
599
601
  empty: C.composerReferenceEmpty,
@@ -601,55 +603,55 @@ var Z = N(function({ context: e, canComment: t = !0, submitting: n = !1, errors:
601
603
  }
602
604
  })]
603
605
  }),
604
- ce && /* @__PURE__ */ H(s, {
606
+ oe && /* @__PURE__ */ W(c, {
605
607
  role: "alert",
606
608
  size: "xs",
607
609
  type: "error",
608
610
  className: "comment-composer--attachment-error",
609
- children: ce
611
+ children: oe
610
612
  }),
611
- j && /* @__PURE__ */ H(s, {
613
+ A && /* @__PURE__ */ W(c, {
612
614
  size: "xs",
613
615
  type: "error",
614
- children: j
616
+ children: A
615
617
  }),
616
- Z && /* @__PURE__ */ U(m, {
618
+ ye && /* @__PURE__ */ G(m, {
617
619
  direction: "horizontal",
618
620
  align: "center",
619
621
  justify: "end",
620
622
  gap: "md",
621
623
  className: "comment-composer--footer-actions",
622
- children: [_e, X]
624
+ children: [Y, _e]
623
625
  })
624
626
  ]
625
627
  });
626
628
  });
627
629
  function we({ label: e, closeLabel: t, onClose: n }) {
628
- return /* @__PURE__ */ U("div", {
629
- className: i("comment-composer--eyebrow bg-muted/40 ring-border/60 flex min-w-0 items-center justify-between gap-space-sm rounded-radius px-row-x ring-1 ring-inset", h.compact),
630
- children: [/* @__PURE__ */ H(o, { children: e }), n ? /* @__PURE__ */ H("button", {
630
+ return /* @__PURE__ */ G("div", {
631
+ className: i("comment-composer--eyebrow bg-muted/30 ring-border/60 flex min-w-0 items-center justify-between gap-space-sm rounded-radius px-row-x ring-1 ring-inset", g.compact),
632
+ children: [/* @__PURE__ */ W(s, { children: e }), n ? /* @__PURE__ */ W("button", {
631
633
  type: "button",
632
634
  onClick: n,
633
- className: i(k.target, k.focus, k.toggle),
635
+ className: i(A.target, A.focus, A.toggle),
634
636
  "aria-label": t,
635
- children: /* @__PURE__ */ H(Y, {
636
- className: k.icon,
637
+ children: /* @__PURE__ */ W(Y, {
638
+ className: A.icon,
637
639
  "aria-hidden": "true"
638
640
  })
639
641
  }) : null]
640
642
  });
641
643
  }
642
- function Q(e, t) {
644
+ function Te(e, t) {
643
645
  return n(e, { name: t }, { missing: "empty" });
644
646
  }
645
647
  //#endregion
646
648
  //#region src/components/features/comments/partials/comment-empty.tsx
647
- var $ = ({ strings: e, icon: t, className: n }) => {
648
- let r = ge(e);
649
- return /* @__PURE__ */ H(re, {
649
+ var Ee = ({ strings: e, icon: t, className: n }) => {
650
+ let r = Z(e);
651
+ return /* @__PURE__ */ W(j, {
650
652
  title: r.empty,
651
653
  description: r.emptyHint || !1,
652
- media: t ?? /* @__PURE__ */ H(K, {
654
+ media: t ?? /* @__PURE__ */ W(J, {
653
655
  className: "size-icon",
654
656
  "aria-hidden": "true"
655
657
  }),
@@ -660,18 +662,18 @@ var $ = ({ strings: e, icon: t, className: n }) => {
660
662
  };
661
663
  //#endregion
662
664
  //#region src/components/features/comments/partials/comment-content.tsx
663
- function Te(e) {
665
+ function De(e) {
664
666
  let { comment: t, resources: n, renderReference: r, sanitizer: i } = e, a = t.contentType ?? t.content_type ?? "text";
665
667
  if (a === "rich") {
666
- let e = Ee(t.content);
667
- return e ? /* @__PURE__ */ H("div", {
668
+ let e = Oe(t.content);
669
+ return e ? /* @__PURE__ */ W("div", {
668
670
  className: "comment-content--component",
669
671
  children: e
670
672
  }) : null;
671
673
  }
672
- if (a === "html") return /* @__PURE__ */ H("div", {
674
+ if (a === "html") return /* @__PURE__ */ W("div", {
673
675
  className: "comment-content--component",
674
- children: /* @__PURE__ */ H(j, {
676
+ children: /* @__PURE__ */ W(oe, {
675
677
  html: t.content ?? "",
676
678
  mentions: t.references,
677
679
  resources: n,
@@ -679,48 +681,48 @@ function Te(e) {
679
681
  sanitizer: i
680
682
  })
681
683
  });
682
- let o = ke(t.content ?? "");
683
- return /* @__PURE__ */ H(s, {
684
+ let o = je(t.content ?? "");
685
+ return /* @__PURE__ */ W(c, {
684
686
  className: "comment-content--component whitespace-pre-line",
685
687
  children: o
686
688
  });
687
689
  }
688
- function Ee(e) {
690
+ function Oe(e) {
689
691
  if (!e) return null;
690
692
  try {
691
693
  let t = JSON.parse(e);
692
- return !t || !Array.isArray(t.blocks) || t.blocks.length === 0 ? null : /* @__PURE__ */ H(s, {
694
+ return !t || !Array.isArray(t.blocks) || t.blocks.length === 0 ? null : /* @__PURE__ */ W(c, {
693
695
  tag: "div",
694
- className: y,
695
- children: t.blocks.map((e, t) => /* @__PURE__ */ H(M, { children: De(e) }, e.id ?? `${e.type}-${t}`))
696
+ className: x,
697
+ children: t.blocks.map((e, t) => /* @__PURE__ */ W(P, { children: ke(e) }, e.id ?? `${e.type}-${t}`))
696
698
  });
697
699
  } catch {
698
- let t = ke(e);
699
- return /* @__PURE__ */ H(s, {
700
+ let t = je(e);
701
+ return /* @__PURE__ */ W(c, {
700
702
  className: "whitespace-pre-line",
701
703
  children: t
702
704
  });
703
705
  }
704
706
  }
705
- function De(e) {
707
+ function ke(e) {
706
708
  let t = e.data ?? {};
707
709
  switch (e.type) {
708
710
  case "paragraph": {
709
711
  let e = String(t.text ?? "").trim();
710
712
  if (!e) return null;
711
- let n = v(e);
712
- return n ? /* @__PURE__ */ H("p", { dangerouslySetInnerHTML: { __html: n } }) : null;
713
+ let n = b(e);
714
+ return n ? /* @__PURE__ */ W("p", { dangerouslySetInnerHTML: { __html: n } }) : null;
713
715
  }
714
716
  case "header": {
715
- let e = Oe(String(t.text ?? "")), n = Number(t.level ?? 3);
716
- return e ? ce(`h${Math.min(Math.max(n, 1), 6)}`, null, e) : null;
717
+ let e = Ae(String(t.text ?? "")), n = Number(t.level ?? 3);
718
+ return e ? F(`h${Math.min(Math.max(n, 1), 6)}`, null, e) : null;
717
719
  }
718
720
  case "list": {
719
- let e = (Array.isArray(t.items) ? t.items : []).map((e) => Oe(String(e ?? ""))).filter((e) => e.length > 0);
720
- return e.length === 0 ? null : t.style === "ordered" ? /* @__PURE__ */ H("ol", { children: e.map((e, t) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(s, {
721
+ let e = (Array.isArray(t.items) ? t.items : []).map((e) => Ae(String(e ?? ""))).filter((e) => e.length > 0);
722
+ return e.length === 0 ? null : t.style === "ordered" ? /* @__PURE__ */ W("ol", { children: e.map((e, t) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(c, {
721
723
  tag: "span",
722
724
  children: e
723
- }) }, `${e}-${t}`)) }) : /* @__PURE__ */ H("ul", { children: e.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(s, {
725
+ }) }, `${e}-${t}`)) }) : /* @__PURE__ */ W("ul", { children: e.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(c, {
724
726
  tag: "span",
725
727
  children: e
726
728
  }) }, e)) });
@@ -728,16 +730,16 @@ function De(e) {
728
730
  case "quote": {
729
731
  let e = String(t.text ?? "").trim();
730
732
  if (!e) return null;
731
- let n = Oe(String(t.caption ?? ""));
732
- return /* @__PURE__ */ U("blockquote", {
733
+ let n = Ae(String(t.caption ?? ""));
734
+ return /* @__PURE__ */ G("blockquote", {
733
735
  className: "italic",
734
- children: [/* @__PURE__ */ H(b, {
736
+ children: [/* @__PURE__ */ W(S, {
735
737
  tag: "div",
736
738
  html: e,
737
739
  type: "secondary"
738
- }), n.length > 0 && /* @__PURE__ */ H("cite", {
740
+ }), n.length > 0 && /* @__PURE__ */ W("cite", {
739
741
  className: "mt-1 block not-italic",
740
- children: /* @__PURE__ */ U(s, {
742
+ children: /* @__PURE__ */ G(c, {
741
743
  tag: "span",
742
744
  size: "xs",
743
745
  type: "secondary",
@@ -747,23 +749,23 @@ function De(e) {
747
749
  })]
748
750
  });
749
751
  }
750
- case "delimiter": return /* @__PURE__ */ H("hr", {
752
+ case "delimiter": return /* @__PURE__ */ W("hr", {
751
753
  className: "border-dashed",
752
754
  "aria-hidden": "true"
753
755
  });
754
756
  default: {
755
- let e = Oe(String(t.text ?? ""));
756
- return e ? /* @__PURE__ */ H("p", {
757
+ let e = Ae(String(t.text ?? ""));
758
+ return e ? /* @__PURE__ */ W("p", {
757
759
  className: "whitespace-pre-line",
758
760
  children: e
759
761
  }) : null;
760
762
  }
761
763
  }
762
764
  }
763
- function Oe(e) {
765
+ function Ae(e) {
764
766
  return e.replace(/<[^>]*>/g, "").trim();
765
767
  }
766
- function ke(e) {
768
+ function je(e) {
767
769
  if (typeof e != "string") return "";
768
770
  let t = e.trim();
769
771
  if (t === "") return "";
@@ -776,148 +778,148 @@ function ke(e) {
776
778
  }
777
779
  //#endregion
778
780
  //#region src/components/features/comments/partials/comment-item.tsx
779
- var Ae = "?", je = (e) => e?.url, Me = (e) => e?.name, Ne = (e) => e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " "), Pe = P(function({ comment: e, canModerate: t, onDelete: r, onAttachmentRemove: a, onEdit: o, onPinToggle: c, onReact: h, onReply: v, allowReactions: y, allowReplies: b, sanitizer: x, strings: S, getMediaUrl: C, getMediaName: te, getStatusLabel: ne, formatRelativeTime: re, resources: ie, renderAttachment: A, renderReference: ae }) {
780
- let j = ge(S), oe = y ?? !0, se = b ?? !0, M = _e({
781
+ var Me = "?", Ne = (e) => e?.url, Pe = (e) => e?.name, Fe = (e) => e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " "), Ie = L(function({ comment: e, canModerate: t, onDelete: r, onAttachmentRemove: o, onEdit: s, onPinToggle: l, onReact: h, onReply: g, allowReactions: y, allowReplies: b, sanitizer: x, strings: S, getMediaUrl: C, getMediaName: w, getStatusLabel: ee, formatRelativeTime: ne, resources: re, renderAttachment: j, renderReference: ie }) {
782
+ let M = Z(S), ae = y ?? !0, oe = b ?? !0, N = ve({
781
783
  getMediaUrl: C,
782
- getMediaName: te,
783
- getStatusLabel: ne,
784
- formatRelativeTime: re
785
- }), ce = M.getMediaUrl ?? je, N = M.getMediaName ?? Me, P = M.getStatusLabel ?? Ne, I = M.formatRelativeTime, L = e.user?.name ?? j.fallbackAuthor, z = e.user?.avatar ?? void 0, V = R(() => {
786
- if (!L) return Ae;
784
+ getMediaName: w,
785
+ getStatusLabel: ee,
786
+ formatRelativeTime: ne
787
+ }), se = N.getMediaUrl ?? Ne, P = N.getMediaName ?? Pe, F = N.getStatusLabel ?? Fe, I = N.formatRelativeTime, L = e.user?.name ?? M.fallbackAuthor, z = e.user?.avatar ?? void 0, ce = B(() => {
788
+ if (!L) return Me;
787
789
  let e = L.trim();
788
- return e === "" ? Ae : e.charAt(0).toUpperCase();
789
- }, [L]), le = R(() => Array.isArray(e.tagsArray) ? e.tagsArray.filter((e) => typeof e == "string") : e.tagsArray && typeof e.tagsArray == "object" ? Object.values(e.tagsArray).filter((e) => typeof e == "string") : [], [e.tagsArray]), W = R(() => (e.attachments ?? []).filter((e) => !!e && typeof e == "object"), [e.attachments]), de = oe ? e.reactions ?? [] : [], G = e.isPinned === !0, fe = e.isEdited === !0, K = e.status && e.status !== "active", pe = K && e.status ? P(e.status) : null, Y = e.canDelete === !0 || t === !0, ve = e.canEdit === !0 || t === !0, ye = !!se && !!v && !!e.id, xe = !!oe && !!h && !!e.id, Se = !!c && !!t, Ce = !!ve && !!o && !!e.id, Z = !!Y && !!r && !!e.id, we = ye || xe || Se || Ce || Z, Q = g(), [$, Ee] = B(null), De = F((e) => {
790
- Ee(e), Q.show();
791
- }, [Q]), Oe = W.length > 0;
792
- return /* @__PURE__ */ U("article", {
793
- className: i("comment-item--component group relative overflow-hidden rounded-radius border transition-colors", "border-border/60 bg-card hover:bg-muted/30 p-surface"),
790
+ return e === "" ? Me : e.charAt(0).toUpperCase();
791
+ }, [L]), V = B(() => Array.isArray(e.tagsArray) ? e.tagsArray.filter((e) => typeof e == "string") : e.tagsArray && typeof e.tagsArray == "object" ? Object.values(e.tagsArray).filter((e) => typeof e == "string") : [], [e.tagsArray]), U = B(() => (e.attachments ?? []).filter((e) => !!e && typeof e == "object"), [e.attachments]), le = ae ? e.reactions ?? [] : [], K = e.isPinned === !0, de = e.isEdited === !0, q = e.status && e.status !== "active", fe = q && e.status ? F(e.status) : null, J = e.canDelete === !0 || t === !0, pe = e.canEdit === !0 || t === !0, Y = !!oe && !!g && !!e.id, Q = !!ae && !!h && !!e.id, ye = !!l && !!t, xe = !!pe && !!s && !!e.id, Se = !!J && !!r && !!e.id, Ce = Y || Q || ye || xe || Se, $ = _(), [we, Te] = H(null), Ee = R((e) => {
792
+ Te(e), $.show();
793
+ }, [$]), Oe = U.length > 0;
794
+ return /* @__PURE__ */ G("article", {
795
+ className: i("comment-item--component group relative overflow-hidden rounded-radius border transition-colors", "border-border/60 bg-card px-surface pt-surface", Ce ? "pb-surface-xs" : "pb-surface"),
794
796
  "data-comment-id": e.id,
795
- children: [/* @__PURE__ */ U(m, {
797
+ children: [/* @__PURE__ */ G(m, {
796
798
  direction: "horizontal",
797
799
  align: "start",
798
800
  gap: "lg",
799
801
  className: "min-w-0",
800
- children: [/* @__PURE__ */ U(E, {
802
+ children: [/* @__PURE__ */ G(O, {
801
803
  className: "mt-0.5 size-avatar shrink-0",
802
- children: [!!z && /* @__PURE__ */ H(D, {
804
+ children: [!!z && /* @__PURE__ */ W(te, {
803
805
  src: z,
804
806
  alt: L
805
- }), /* @__PURE__ */ H(T, {
807
+ }), /* @__PURE__ */ W(D, {
806
808
  className: "bg-muted text-muted-foreground text-xs font-medium",
807
- children: V
809
+ children: ce
808
810
  })]
809
- }), /* @__PURE__ */ U("div", {
811
+ }), /* @__PURE__ */ G("div", {
810
812
  className: "comment-item--body min-w-0 flex-1",
811
813
  children: [
812
- /* @__PURE__ */ U(m, {
814
+ /* @__PURE__ */ G(m, {
813
815
  direction: "horizontal",
814
816
  align: "baseline",
815
817
  gap: "md",
816
818
  className: "min-w-0",
817
819
  children: [
818
- /* @__PURE__ */ H(s, {
820
+ /* @__PURE__ */ W(c, {
819
821
  tag: "span",
820
822
  weight: "semibold",
821
823
  className: "truncate",
822
824
  children: L
823
825
  }),
824
- !!G && /* @__PURE__ */ H(f, {
826
+ !!K && /* @__PURE__ */ W(f, {
825
827
  delayDuration: 0,
826
- children: /* @__PURE__ */ U(l, { children: [/* @__PURE__ */ H(u, {
827
- render: /* @__PURE__ */ H("span", { className: "inline-flex shrink-0 self-center" }),
828
- children: /* @__PURE__ */ H(J, {
828
+ children: /* @__PURE__ */ G(p, { children: [/* @__PURE__ */ W(u, {
829
+ render: /* @__PURE__ */ W("span", { className: "inline-flex shrink-0 self-center" }),
830
+ children: /* @__PURE__ */ W(he, {
829
831
  className: "text-muted-foreground size-icon-sm",
830
832
  "aria-hidden": !0
831
833
  })
832
- }), /* @__PURE__ */ H(d, {
834
+ }), /* @__PURE__ */ W(d, {
833
835
  side: "top",
834
836
  className: "text-xs",
835
- children: j.pinned
837
+ children: M.pinned
836
838
  })] })
837
839
  }),
838
- /* @__PURE__ */ H(ee, {
840
+ /* @__PURE__ */ W(E, {
839
841
  value: e.createdAt,
840
842
  formatRelativeTime: I,
841
843
  size: "xs",
842
844
  className: "shrink-0 tabular-nums"
843
845
  }),
844
- !!fe && /* @__PURE__ */ H(s, {
846
+ !!de && /* @__PURE__ */ W(c, {
845
847
  tag: "span",
846
848
  size: "xs",
847
849
  type: "secondary",
848
850
  className: "shrink-0",
849
- children: j.edited
851
+ children: M.edited
850
852
  }),
851
- !!K && !!pe && /* @__PURE__ */ H(O, {
853
+ !!q && !!fe && /* @__PURE__ */ W(k, {
852
854
  size: "sm",
853
855
  tone: "secondary",
854
856
  className: "self-center",
855
- children: pe
857
+ children: fe
856
858
  })
857
859
  ]
858
860
  }),
859
- /* @__PURE__ */ H("div", {
861
+ /* @__PURE__ */ W("div", {
860
862
  className: "mt-1 leading-relaxed",
861
- children: /* @__PURE__ */ H(Te, {
863
+ children: /* @__PURE__ */ W(De, {
862
864
  comment: e,
863
- resources: ie,
864
- renderReference: ae,
865
+ resources: re,
866
+ renderReference: ie,
865
867
  sanitizer: x
866
868
  })
867
869
  }),
868
- le.length > 0 && /* @__PURE__ */ H("div", {
870
+ V.length > 0 && /* @__PURE__ */ W("div", {
869
871
  className: "mt-space-md flex flex-wrap gap-space-sm",
870
- children: le.map((e) => /* @__PURE__ */ H(O, {
872
+ children: V.map((e) => /* @__PURE__ */ W(k, {
871
873
  size: "sm",
872
874
  tone: "secondary",
873
875
  children: e
874
876
  }, e))
875
877
  }),
876
- Oe && /* @__PURE__ */ H("div", {
878
+ Oe && /* @__PURE__ */ W("div", {
877
879
  className: "mt-space-md flex flex-wrap gap-space-sm",
878
- children: W.map((e) => {
879
- if (A) return /* @__PURE__ */ H("div", { children: A(e) }, e.id ?? e.name);
880
- let t = !!a && !!e.id && Y;
881
- return /* @__PURE__ */ H(be, {
880
+ children: U.map((e) => {
881
+ if (j) return /* @__PURE__ */ W("div", { children: j(e) }, e.id ?? e.name);
882
+ let t = !!o && !!e.id && J;
883
+ return /* @__PURE__ */ W(be, {
882
884
  attachment: e,
883
885
  editable: t,
884
- onRemove: t ? () => De(e.id) : void 0,
886
+ onRemove: t ? () => Ee(e.id) : void 0,
885
887
  accessors: {
886
- getMediaUrl: ce,
887
- getMediaName: N
888
+ getMediaUrl: se,
889
+ getMediaName: P
888
890
  },
889
891
  strings: S
890
892
  }, e.id ?? e.name);
891
893
  })
892
894
  }),
893
- de.length > 0 && /* @__PURE__ */ H(m, {
895
+ le.length > 0 && /* @__PURE__ */ W(m, {
894
896
  direction: "horizontal",
895
897
  wrap: !0,
896
898
  align: "center",
897
899
  gap: "xs",
898
900
  className: "mt-space-md",
899
- children: de.map((t) => /* @__PURE__ */ H("button", {
901
+ children: le.map((t) => /* @__PURE__ */ W("button", {
900
902
  type: "button",
901
- "aria-label": n(j.reactionLabel ?? X.reactionLabel, {
903
+ "aria-label": n(M.reactionLabel ?? X.reactionLabel, {
902
904
  emoji: t.emoji,
903
905
  count: t.count
904
906
  }),
905
907
  "aria-pressed": t.mine ?? !1,
906
908
  onClick: () => h && e.id ? h(e.id, t.emoji) : void 0,
907
909
  title: t.users?.join(", "),
908
- className: i(k.inline, k.focus),
909
- children: /* @__PURE__ */ U(O, {
910
+ className: i(A.inline, A.focus),
911
+ children: /* @__PURE__ */ G(k, {
910
912
  size: "sm",
911
913
  tone: t.mine ? "info" : "secondary",
912
914
  className: "cursor-pointer transition-colors hover:opacity-90",
913
- children: [/* @__PURE__ */ H(s, {
915
+ children: [/* @__PURE__ */ W(c, {
914
916
  tag: "span",
915
917
  size: "inherit",
916
918
  lineHeight: "none",
917
919
  className: "text-inherit",
918
920
  "aria-hidden": !0,
919
921
  children: t.emoji
920
- }), /* @__PURE__ */ H(w, {
922
+ }), /* @__PURE__ */ W(T, {
921
923
  value: t.count,
922
924
  size: "inherit",
923
925
  align: "left",
@@ -926,86 +928,86 @@ var Ae = "?", je = (e) => e?.url, Me = (e) => e?.name, Ne = (e) => e.charAt(0).t
926
928
  })
927
929
  }, t.emoji))
928
930
  }),
929
- we && /* @__PURE__ */ U("div", {
930
- className: i("comment-item--actions relative mt-space-md ms-auto w-fit max-w-full flex-wrap opacity-100 transition-opacity", "group-hover:opacity-100 focus-within:opacity-100", "inline-flex items-center gap-space-2xs"),
931
+ Ce && /* @__PURE__ */ G("div", {
932
+ className: i("comment-item--actions relative mt-space-xs ms-auto w-fit max-w-full flex-wrap opacity-100 transition-opacity", "group-hover:opacity-100 focus-within:opacity-100", "inline-flex items-center gap-space-2xs"),
931
933
  children: [
932
- ye && /* @__PURE__ */ H(p, {
934
+ Y && /* @__PURE__ */ W(a, {
933
935
  type: "button",
934
936
  size: "sm",
935
937
  iconOnly: !0,
936
938
  tone: "secondary",
937
939
  buttonStyle: "ghost",
938
- onClick: () => e.id && v(e.id),
939
- title: j.replyLabel,
940
- "aria-label": j.replyLabel,
941
- children: /* @__PURE__ */ H(ue, { className: "size-icon-md" })
940
+ onClick: () => e.id && g(e.id),
941
+ title: M.replyLabel,
942
+ "aria-label": M.replyLabel,
943
+ children: /* @__PURE__ */ W(ue, { className: "size-icon-md" })
942
944
  }),
943
- xe && /* @__PURE__ */ H(p, {
945
+ Q && /* @__PURE__ */ W(a, {
944
946
  type: "button",
945
947
  size: "sm",
946
948
  iconOnly: !0,
947
949
  tone: "secondary",
948
950
  buttonStyle: "ghost",
949
951
  onClick: () => e.id && h(e.id, "👍"),
950
- title: j.addReactionLabel,
951
- "aria-label": j.addReactionLabel,
952
- children: /* @__PURE__ */ H(me, { className: "size-icon-md" })
952
+ title: M.addReactionLabel,
953
+ "aria-label": M.addReactionLabel,
954
+ children: /* @__PURE__ */ W(ge, { className: "size-icon-md" })
953
955
  }),
954
- Se && /* @__PURE__ */ H(p, {
956
+ ye && /* @__PURE__ */ W(a, {
955
957
  type: "button",
956
958
  size: "sm",
957
959
  iconOnly: !0,
958
960
  tone: "secondary",
959
961
  buttonStyle: "ghost",
960
- onClick: () => c(e),
961
- title: G ? j.unpinLabel : j.pinLabel,
962
- "aria-label": G ? j.unpinLabel : j.pinLabel,
963
- children: /* @__PURE__ */ H(J, { className: i("size-icon-md", G && "text-foreground") })
962
+ onClick: () => l(e),
963
+ title: K ? M.unpinLabel : M.pinLabel,
964
+ "aria-label": K ? M.unpinLabel : M.pinLabel,
965
+ children: /* @__PURE__ */ W(he, { className: i("size-icon-md", K && "text-foreground") })
964
966
  }),
965
- Ce && /* @__PURE__ */ H(p, {
967
+ xe && /* @__PURE__ */ W(a, {
966
968
  type: "button",
967
969
  size: "sm",
968
970
  iconOnly: !0,
969
971
  tone: "secondary",
970
972
  buttonStyle: "ghost",
971
- title: j.editLabel,
972
- "aria-label": j.editLabel,
973
- onClick: () => o(e),
974
- children: /* @__PURE__ */ H(q, { className: "size-icon-md" })
973
+ title: M.editLabel,
974
+ "aria-label": M.editLabel,
975
+ onClick: () => s(e),
976
+ children: /* @__PURE__ */ W(me, { className: "size-icon-md" })
975
977
  }),
976
- Z && /* @__PURE__ */ H(p, {
978
+ Se && /* @__PURE__ */ W(a, {
977
979
  type: "button",
978
980
  size: "sm",
979
981
  iconOnly: !0,
980
982
  tone: "secondary",
981
983
  buttonStyle: "ghost",
982
- className: "hover:bg-destructive/10 hover:text-destructive",
984
+ className: "hover:text-destructive",
983
985
  onClick: () => r(e.id),
984
- title: j.deleteLabel,
985
- "aria-label": j.deleteLabel,
986
- children: /* @__PURE__ */ H(he, { className: "size-icon-md" })
986
+ title: M.deleteLabel,
987
+ "aria-label": M.deleteLabel,
988
+ children: /* @__PURE__ */ W(_e, { className: "size-icon-md" })
987
989
  })
988
990
  ]
989
991
  })
990
992
  ]
991
993
  })]
992
- }), !!a && /* @__PURE__ */ H(_, {
993
- ...Q.overlayProps,
994
+ }), !!o && /* @__PURE__ */ W(v, {
995
+ ...$.overlayProps,
994
996
  destructive: !0,
995
- title: j.confirmRemoveAttachmentTitle,
996
- description: j.confirmRemoveAttachmentDescription,
997
- strings: { confirm: j.attachmentRemoveLabel },
997
+ title: M.confirmRemoveAttachmentTitle,
998
+ description: M.confirmRemoveAttachmentDescription,
999
+ strings: { confirm: M.attachmentRemoveLabel },
998
1000
  onConfirm: () => {
999
- $ && e.id && a(e.id, $);
1001
+ we && e.id && o(e.id, we);
1000
1002
  }
1001
1003
  })]
1002
1004
  });
1003
- }), Fe = function({ comments: e, canModerate: t, onDelete: n, onAttachmentRemove: r, onEdit: i, onPinToggle: a, onReact: o, onReply: s, allowReactions: c, allowReplies: l, sanitizer: u, strings: d, getMediaUrl: f, getMediaName: p, getStatusLabel: h, formatRelativeTime: g, resources: _, renderItem: v, renderAttachment: y, renderReference: b, emptySlot: x }) {
1004
- return e.length ? /* @__PURE__ */ H(m, {
1005
+ }), Le = function({ comments: e, canModerate: t, onDelete: n, onAttachmentRemove: r, onEdit: i, onPinToggle: a, onReact: o, onReply: s, allowReactions: c, allowReplies: l, sanitizer: u, strings: d, getMediaUrl: f, getMediaName: p, getStatusLabel: h, formatRelativeTime: g, resources: _, renderItem: v, renderAttachment: y, renderReference: b, emptySlot: x }) {
1006
+ return e.length ? /* @__PURE__ */ W(m, {
1005
1007
  gap: "sm",
1006
1008
  className: "comment-timeline--component",
1007
1009
  children: e.map((e, m) => {
1008
- let x = /* @__PURE__ */ H(Pe, {
1010
+ let x = /* @__PURE__ */ W(Ie, {
1009
1011
  comment: e,
1010
1012
  canModerate: t,
1011
1013
  onDelete: n,
@@ -1026,27 +1028,27 @@ var Ae = "?", je = (e) => e?.url, Me = (e) => e?.name, Ne = (e) => e.charAt(0).t
1026
1028
  renderAttachment: y,
1027
1029
  renderReference: b
1028
1030
  });
1029
- return v ? /* @__PURE__ */ H("div", { children: v({
1031
+ return v ? /* @__PURE__ */ W("div", { children: v({
1030
1032
  comment: e,
1031
1033
  canModerate: t ?? !1,
1032
1034
  onDelete: n,
1033
1035
  onAttachmentRemove: r,
1034
1036
  onEdit: i,
1035
1037
  defaultItem: x
1036
- }) }, e.id ?? `comment-${m}`) : /* @__PURE__ */ H("div", { children: x }, e.id ?? `comment-${m}`);
1038
+ }) }, e.id ?? `comment-${m}`) : /* @__PURE__ */ W("div", { children: x }, e.id ?? `comment-${m}`);
1037
1039
  })
1038
- }) : /* @__PURE__ */ H(V, { children: x ?? /* @__PURE__ */ H($, { strings: d }) });
1040
+ }) : /* @__PURE__ */ W(U, { children: x ?? /* @__PURE__ */ W(Ee, { strings: d }) });
1039
1041
  };
1040
1042
  //#endregion
1041
1043
  //#region src/components/features/comments/comments.tsx
1042
- function Ie(t) {
1043
- let n = e(), r = t.composerPosition ?? n.composerPosition ?? "top", a = t.maxAttachments ?? 5, o = t.allowAttachments ?? !0, c = t.allowReactions ?? !0, l = t.allowReplies ?? !0, u = t.canComment ?? !1, d = t.canModerate ?? !1, f = t.onPinToggle, p = t.resources, h = t.attachments, v = ge(t.strings), y = t.title === void 0 ? v.title : t.title, b = t.confirmDelete ?? !0, x = g(), [S, C] = B(null), w = ve({
1044
+ function Re(t) {
1045
+ let n = e(), r = t.composerPosition ?? n.composerPosition ?? "top", a = t.maxAttachments ?? 5, o = t.allowAttachments ?? !0, s = t.allowReactions ?? !0, l = t.allowReplies ?? !0, u = t.canComment ?? !1, d = t.canModerate ?? !1, f = t.onPinToggle, p = t.resources, h = t.attachments, g = Z(t.strings), y = t.title === void 0 ? g.title : t.title, b = t.confirmDelete ?? !0, x = _(), [S, C] = H(null), w = Q({
1044
1046
  onSubmit: t.onSubmit,
1045
1047
  onUpdate: t.onUpdate,
1046
1048
  onDelete: t.onDelete,
1047
1049
  onAfterMutate: t.onAfterMutate,
1048
1050
  onError: t.onError
1049
- }), ee = F((e) => {
1051
+ }), ee = R((e) => {
1050
1052
  if (!b) {
1051
1053
  w.deleteComment(e);
1052
1054
  return;
@@ -1056,24 +1058,24 @@ function Ie(t) {
1056
1058
  b,
1057
1059
  w,
1058
1060
  x
1059
- ]), T = w.startReply, E = t.comments, D = t.onReply, O = F((e) => {
1061
+ ]), T = w.startReply, E = t.comments, D = t.onReply, O = R((e) => {
1060
1062
  let t = E.find((t) => t.id === e);
1061
1063
  t && T(t), D?.(e);
1062
1064
  }, [
1063
1065
  E,
1064
1066
  D,
1065
1067
  T
1066
- ]), k = w.composerMode.kind === "editing" ? w.composerMode.comment : void 0, te = w.composerMode.kind === "replying" ? {
1068
+ ]), te = w.composerMode.kind === "editing" ? w.composerMode.comment : void 0, k = w.composerMode.kind === "replying" ? {
1067
1069
  commentId: w.composerMode.commentId,
1068
1070
  authorName: w.composerMode.authorName
1069
- } : void 0, ne = t.composerSlot ?? (u ? /* @__PURE__ */ H(Z, {
1071
+ } : void 0, A = t.composerSlot ?? (u ? /* @__PURE__ */ W($, {
1070
1072
  context: t.context,
1071
1073
  canComment: u,
1072
1074
  submitting: w.isSubmitting,
1073
1075
  errors: w.formErrors,
1074
1076
  resetKey: w.resetKey,
1075
- editingComment: k,
1076
- replyingTo: te,
1077
+ editingComment: te,
1078
+ replyingTo: k,
1077
1079
  onCancel: w.composerMode.kind === "idle" ? void 0 : w.cancelComposerMode,
1078
1080
  onSubmit: w.submit,
1079
1081
  strings: t.strings,
@@ -1082,7 +1084,7 @@ function Ie(t) {
1082
1084
  attachments: h,
1083
1085
  maxAttachments: a,
1084
1086
  allowAttachments: o
1085
- }) : null), re = /* @__PURE__ */ H(Fe, {
1087
+ }) : null), ne = /* @__PURE__ */ W(Le, {
1086
1088
  comments: t.comments,
1087
1089
  canModerate: d,
1088
1090
  onDelete: t.onDelete ? ee : void 0,
@@ -1091,7 +1093,7 @@ function Ie(t) {
1091
1093
  onPinToggle: f,
1092
1094
  onReact: t.onReact,
1093
1095
  onReply: u && l ? O : void 0,
1094
- allowReactions: c,
1096
+ allowReactions: s,
1095
1097
  allowReplies: l,
1096
1098
  sanitizer: t.sanitizer,
1097
1099
  strings: t.strings,
@@ -1103,46 +1105,46 @@ function Ie(t) {
1103
1105
  renderItem: t.renderItem,
1104
1106
  renderAttachment: t.renderAttachment,
1105
1107
  renderReference: t.renderReference,
1106
- emptySlot: t.emptySlot ?? /* @__PURE__ */ H($, { strings: t.strings })
1107
- }), ie = ne ? /* @__PURE__ */ H("div", { children: ne }) : null, A = /* @__PURE__ */ U(m, {
1108
+ emptySlot: t.emptySlot ?? /* @__PURE__ */ W(Ee, { strings: t.strings })
1109
+ }), re = A ? /* @__PURE__ */ W("div", { children: A }) : null, j = /* @__PURE__ */ G(m, {
1108
1110
  gap: "xl",
1109
1111
  className: "comments--body",
1110
1112
  children: [
1111
1113
  t.headerSlot,
1112
- r === "top" && ie,
1113
- re,
1114
- r === "bottom" && ie,
1114
+ r === "top" && re,
1115
+ ne,
1116
+ r === "bottom" && re,
1115
1117
  t.footerSlot
1116
1118
  ]
1117
1119
  });
1118
- if (t.bare) return A;
1119
- let ae = typeof y == "string" ? y : void 0;
1120
- return /* @__PURE__ */ U(m, {
1121
- render: /* @__PURE__ */ H("section", {}),
1120
+ if (t.bare) return j;
1121
+ let ie = typeof y == "string" ? y : void 0;
1122
+ return /* @__PURE__ */ G(m, {
1123
+ render: /* @__PURE__ */ W("section", {}),
1122
1124
  gap: "lg",
1123
1125
  "data-component": "comments",
1124
1126
  "data-slot": "comments",
1125
1127
  className: i("comments--component", t.className),
1126
- "aria-label": ae,
1128
+ "aria-label": ie,
1127
1129
  children: [
1128
- !(y === !1 || !y && !v.subtitle) && /* @__PURE__ */ U(m, {
1130
+ !(y === !1 || !y && !g.subtitle) && /* @__PURE__ */ G(m, {
1129
1131
  gap: "normal",
1130
1132
  className: "comments--header",
1131
- children: [!!y && /* @__PURE__ */ H(s, {
1133
+ children: [!!y && /* @__PURE__ */ W(c, {
1132
1134
  weight: "semibold",
1133
1135
  children: y
1134
- }), !!v.subtitle && /* @__PURE__ */ H(s, {
1136
+ }), !!g.subtitle && /* @__PURE__ */ W(c, {
1135
1137
  type: "secondary",
1136
- children: v.subtitle
1138
+ children: g.subtitle
1137
1139
  })]
1138
1140
  }),
1139
- A,
1140
- !!(b && t.onDelete) && /* @__PURE__ */ H(_, {
1141
+ j,
1142
+ !!(b && t.onDelete) && /* @__PURE__ */ W(v, {
1141
1143
  ...x.overlayProps,
1142
1144
  destructive: !0,
1143
- title: v.confirmDeleteTitle,
1144
- description: v.confirmDeleteDescription,
1145
- strings: { confirm: v.confirmDeleteLabel },
1145
+ title: g.confirmDeleteTitle,
1146
+ description: g.confirmDeleteDescription,
1147
+ strings: { confirm: g.confirmDeleteLabel },
1146
1148
  onAsyncConfirm: async () => {
1147
1149
  S && await w.deleteComment(S);
1148
1150
  },
@@ -1152,6 +1154,6 @@ function Ie(t) {
1152
1154
  });
1153
1155
  }
1154
1156
  //#endregion
1155
- export { $ as a, Se as c, _e as d, ge as f, Te as i, be as l, Fe as n, Z as o, X as p, Pe as r, Q as s, Ie as t, ve as u };
1157
+ export { Ee as a, Se as c, ve as d, Z as f, De as i, be as l, Le as n, $ as o, X as p, Ie as r, Te as s, Re as t, Q as u };
1156
1158
 
1157
- //# sourceMappingURL=comments-You0Bzbr.js.map
1159
+ //# sourceMappingURL=comments-BpDuCUUu.js.map