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,176 +1,178 @@
1
1
  "use client";
2
- import { o as e } from "../ui-provider-D2_TeLqw.js";
2
+ import { o as e } from "../ui-provider-1D_NSYzO.js";
3
3
  import { useStrings as t } from "../lib/strings.js";
4
- import { t as n } from "../utils-Cospvlj1.js";
5
- import { s as r, t as i } from "../typography-CAr3dQhX.js";
6
- import { t as a } from "../button-BS3KDg00.js";
7
- import { r as o, t as s } from "../structure-hzCW-XsV.js";
8
- import { n as c } from "../action-menu-BTpyPWJ2.js";
9
- import { t as l } from "../badge-0tATj-tW.js";
10
- import { l as u } from "../data-display-3xWQUnMA.js";
11
- import { o as d, r as f, u as p } from "../comments-You0Bzbr.js";
12
- import { o as m } from "../mentions-DwnO1hh4.js";
13
- import { Fragment as h, useCallback as g, useEffect as _, useMemo as v, useRef as y, useState as b } from "react";
14
- import { Fragment as x, jsx as S, jsxs as C } from "react/jsx-runtime";
15
- import { Activity as w, AlertTriangle as T, ArrowLeftRight as E, Ban as D, Check as O, ChevronDown as ee, ChevronRight as te, CircleDot as k, FileEdit as A, Flag as j, Heart as M, LinkIcon as N, Mail as P, MailCheck as F, MailOpen as I, MailX as L, MessageCircle as ne, MessageSquare as R, Pencil as z, Plus as B, ShieldCheck as V, ShoppingBag as H, Sparkles as U, Star as W, Trash2 as G, UserMinus as re, UserPlus as K } from "lucide-react";
16
- import { format as q, formatDistanceToNow as J, isToday as Y, isValid as X, isYesterday as Z, parseISO as ie } from "date-fns";
4
+ import { t as n } from "../utils-l5LpDw2z.js";
5
+ import { n as r } from "../buttons-SbIcm1HJ.js";
6
+ import { s as i, t as a } from "../typography-DTRkE9zL.js";
7
+ import { r as o, t as s } from "../structure-DC2dygdA.js";
8
+ import { r as c, t as l } from "../tone-recipes-CPoExcTE.js";
9
+ import { n as u } from "../action-menu-TzCoSlwL.js";
10
+ import { t as d } from "../interaction-recipes-CHr0dJUs.js";
11
+ import { t as f } from "../badge-MrKVNzW9.js";
12
+ import { s as p } from "../data-display-DafIvCl5.js";
13
+ import { o as m, r as h, u as g } from "../comments-BpDuCUUu.js";
14
+ import { o as _ } from "../mentions-D-uyCh01.js";
15
+ import { Fragment as v, useCallback as y, useEffect as b, useMemo as x, useRef as S, useState as C } from "react";
16
+ import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
17
+ import { Activity as D, AlertTriangle as O, ArrowLeftRight as k, Ban as A, Check as j, ChevronDown as ee, ChevronRight as M, CircleDot as N, FileEdit as P, Flag as F, Heart as I, LinkIcon as L, Mail as R, MailCheck as z, MailOpen as B, MailX as V, MessageCircle as H, MessageSquare as U, Pencil as W, Plus as G, ShieldCheck as K, ShoppingBag as q, Sparkles as te, Star as ne, Trash2 as J, UserMinus as Y, UserPlus as X } from "lucide-react";
18
+ import { format as Z, formatDistanceToNow as re, isToday as ie, isValid as ae, isYesterday as oe, parseISO as se } from "date-fns";
17
19
  //#region src/components/features/activities/activities.config.ts
18
- var ae = {
19
- icon: k,
20
+ var ce = {
21
+ icon: N,
20
22
  tone: "neutral"
21
- }, oe = {
23
+ }, Q = {
22
24
  created: {
23
- icon: B,
25
+ icon: G,
24
26
  tone: "success",
25
27
  label: "Created"
26
28
  },
27
29
  updated: {
28
- icon: z,
30
+ icon: W,
29
31
  tone: "neutral",
30
32
  label: "Updated"
31
33
  },
32
34
  edited: {
33
- icon: A,
35
+ icon: P,
34
36
  tone: "neutral",
35
37
  label: "Edited"
36
38
  },
37
39
  deleted: {
38
- icon: G,
40
+ icon: J,
39
41
  tone: "destructive",
40
42
  label: "Deleted"
41
43
  },
42
44
  cancelled: {
43
- icon: D,
45
+ icon: A,
44
46
  tone: "destructive",
45
47
  label: "Cancelled"
46
48
  },
47
49
  restored: {
48
- icon: U,
50
+ icon: te,
49
51
  tone: "success",
50
52
  label: "Restored"
51
53
  },
52
54
  status_changed: {
53
- icon: E,
55
+ icon: k,
54
56
  tone: "neutral",
55
57
  label: "Status changed"
56
58
  },
57
59
  status_transition: {
58
- icon: E,
60
+ icon: k,
59
61
  tone: "neutral",
60
62
  label: "Status changed"
61
63
  },
62
64
  status_override: {
63
- icon: E,
65
+ icon: k,
64
66
  tone: "warning",
65
67
  label: "Status overridden"
66
68
  },
67
69
  assigned: {
68
- icon: K,
70
+ icon: X,
69
71
  tone: "neutral",
70
72
  label: "Assigned"
71
73
  },
72
74
  unassigned: {
73
- icon: re,
75
+ icon: Y,
74
76
  tone: "neutral",
75
77
  label: "Unassigned"
76
78
  },
77
79
  mail_sent: {
78
- icon: P,
80
+ icon: R,
79
81
  tone: "neutral",
80
82
  label: "Email sent"
81
83
  },
82
84
  mail_delivered: {
83
- icon: F,
85
+ icon: z,
84
86
  tone: "success",
85
87
  label: "Email delivered"
86
88
  },
87
89
  mail_opened: {
88
- icon: I,
90
+ icon: B,
89
91
  tone: "neutral",
90
92
  label: "Email opened"
91
93
  },
92
94
  mail_clicked: {
93
- icon: I,
95
+ icon: B,
94
96
  tone: "neutral",
95
97
  label: "Email clicked"
96
98
  },
97
99
  mail_bounced: {
98
- icon: L,
100
+ icon: V,
99
101
  tone: "destructive",
100
102
  label: "Email bounced"
101
103
  },
102
104
  mail_failed: {
103
- icon: L,
105
+ icon: V,
104
106
  tone: "destructive",
105
107
  label: "Email failed"
106
108
  },
107
109
  comment_created: {
108
- icon: R,
110
+ icon: U,
109
111
  tone: "neutral",
110
112
  label: "Comment posted"
111
113
  },
112
114
  comment_deleted: {
113
- icon: R,
115
+ icon: U,
114
116
  tone: "destructive",
115
117
  label: "Comment deleted"
116
118
  },
117
119
  paid: {
118
- icon: O,
120
+ icon: j,
119
121
  tone: "success",
120
122
  label: "Paid"
121
123
  },
122
124
  refunded: {
123
- icon: E,
125
+ icon: k,
124
126
  tone: "warning",
125
127
  label: "Refunded"
126
128
  },
127
129
  confirmed: {
128
- icon: V,
130
+ icon: K,
129
131
  tone: "success",
130
132
  label: "Confirmed"
131
133
  },
132
134
  favorited: {
133
- icon: M,
135
+ icon: I,
134
136
  tone: "neutral",
135
137
  label: "Favorited"
136
138
  },
137
139
  ordered: {
138
- icon: H,
140
+ icon: q,
139
141
  tone: "neutral",
140
142
  label: "Order placed"
141
143
  },
142
144
  published: {
143
- icon: W,
145
+ icon: ne,
144
146
  tone: "success",
145
147
  label: "Published"
146
148
  },
147
149
  flagged: {
148
- icon: j,
150
+ icon: F,
149
151
  tone: "warning",
150
152
  label: "Flagged"
151
153
  },
152
154
  linked: {
153
- icon: N,
155
+ icon: L,
154
156
  tone: "neutral",
155
157
  label: "Linked"
156
158
  },
157
159
  failed: {
158
- icon: T,
160
+ icon: O,
159
161
  tone: "destructive",
160
162
  label: "Failed"
161
163
  },
162
164
  health_check_failed: {
163
- icon: T,
165
+ icon: O,
164
166
  tone: "destructive",
165
167
  label: "Health check failed"
166
168
  }
167
169
  };
168
- function Q(e, t) {
169
- return t[e] ?? ae;
170
+ function le(e, t) {
171
+ return t[e] ?? ce;
170
172
  }
171
173
  //#endregion
172
174
  //#region src/components/features/activities/activities.strings.ts
173
- var se = {
175
+ var ue = {
174
176
  title: "Activity",
175
177
  empty: "No activity yet.",
176
178
  loading: "Loading activity…",
@@ -191,7 +193,7 @@ var se = {
191
193
  },
192
194
  events: {}
193
195
  };
194
- function ce(e, t) {
196
+ function de(e, t) {
195
197
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
196
198
  let r = t[n];
197
199
  return r === void 0 ? e : String(r);
@@ -199,24 +201,24 @@ function ce(e, t) {
199
201
  }
200
202
  //#endregion
201
203
  //#region src/components/features/activities/hooks/use-activity-feed.ts
202
- function le(e, t, n) {
204
+ function fe(e, t, n) {
203
205
  if (!e) return t.undated;
204
206
  let r = new Date(e);
205
- if (!X(r)) return t.undated;
206
- if (Y(r)) return t.today;
207
- if (Z(r)) return t.yesterday;
207
+ if (!ae(r)) return t.undated;
208
+ if (ie(r)) return t.today;
209
+ if (oe(r)) return t.yesterday;
208
210
  try {
209
211
  return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(r);
210
212
  } catch {
211
213
  try {
212
- return q(r, "PP", n ? { locale: n } : void 0);
214
+ return Z(r, "PP", n ? { locale: n } : void 0);
213
215
  } catch {
214
216
  return e;
215
217
  }
216
218
  }
217
219
  }
218
- function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, defaultExpandedIds: r, expandedIds: i, onExpandedIdsChange: a, locale: o, strings: s, formatDateGroupLabel: c }) {
219
- let [l, u] = b({}), d = i !== void 0, f = v(() => {
220
+ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, defaultExpandedIds: r, expandedIds: i, onExpandedIdsChange: a, locale: o, strings: s, formatDateGroupLabel: c }) {
221
+ let [l, u] = C({}), d = i !== void 0, f = x(() => {
220
222
  let t = /* @__PURE__ */ new Map();
221
223
  return e.map((e) => {
222
224
  let n = [
@@ -230,12 +232,12 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
230
232
  key: `${n}:${r}`
231
233
  };
232
234
  });
233
- }, [e]), p = v(() => {
235
+ }, [e]), p = x(() => {
234
236
  if (!t) return f.length > 0 ? [{
235
237
  label: "",
236
238
  items: f
237
239
  }] : [];
238
- let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : le(e, s, o);
240
+ let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : fe(e, s, o);
239
241
  for (let t of f) {
240
242
  let a = i(t.activity.createdAt ?? null);
241
243
  a === n ? r.push(t) : (r.length > 0 && e.push({
@@ -253,11 +255,11 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
253
255
  o,
254
256
  s,
255
257
  c
256
- ]), m = v(() => {
258
+ ]), m = x(() => {
257
259
  let e = new Set(r ?? []);
258
260
  for (let t of f) t.activity.defaultExpanded === !0 && e.add(t.activity.id);
259
261
  return e;
260
- }, [f, r]), h = v(() => new Set(i ?? []), [i]), _ = g((e, t) => {
262
+ }, [f, r]), h = x(() => new Set(i ?? []), [i]), g = y((e, t) => {
261
263
  let r = d ? Array.from(h) : f.filter((e) => l[e.activity.id] ?? (m.has(e.activity.id) || n)).map((e) => e.activity.id), i = new Set(r);
262
264
  t ? i.add(e) : i.delete(e);
263
265
  let o = Array.from(i);
@@ -273,15 +275,15 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
273
275
  d,
274
276
  f,
275
277
  a
276
- ]), y = g((e) => d ? h.has(e) : l[e] ?? (m.has(e) || n), [
278
+ ]), _ = y((e) => d ? h.has(e) : l[e] ?? (m.has(e) || n), [
277
279
  h,
278
280
  m,
279
281
  n,
280
282
  l,
281
283
  d
282
- ]), x = g((e) => {
283
- _(e, !y(e));
284
- }, [y, _]), S = g(() => {
284
+ ]), v = y((e) => {
285
+ g(e, !_(e));
286
+ }, [_, g]), b = y(() => {
285
287
  let e = {};
286
288
  for (let t of f) e[t.activity.id] = !0;
287
289
  d || u(e), a?.(f.map((e) => e.activity.id));
@@ -289,7 +291,7 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
289
291
  d,
290
292
  f,
291
293
  a
292
- ]), C = g(() => {
294
+ ]), S = y(() => {
293
295
  let e = {};
294
296
  for (let t of f) e[t.activity.id] = !1;
295
297
  d || u(e), a?.([]);
@@ -301,27 +303,27 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
301
303
  return {
302
304
  groups: p,
303
305
  total: f.length,
304
- isExpanded: y,
305
- toggleExpanded: x,
306
- setExpanded: _,
307
- expandAll: S,
308
- collapseAll: C
306
+ isExpanded: _,
307
+ toggleExpanded: v,
308
+ setExpanded: g,
309
+ expandAll: b,
310
+ collapseAll: S
309
311
  };
310
312
  }
311
313
  //#endregion
312
314
  //#region src/components/features/activities/hooks/use-activity-resources.ts
313
- function de({ resources: e, onResourcesChange: t } = {}) {
314
- let [n, r] = b(() => e ?? {}), i = y(e);
315
- _(() => {
315
+ function me({ resources: e, onResourcesChange: t } = {}) {
316
+ let [n, r] = C(() => e ?? {}), i = S(e);
317
+ b(() => {
316
318
  e !== i.current && (i.current = e, r(e ?? {}));
317
319
  }, [e]);
318
- let a = y(t);
319
- _(() => {
320
+ let a = S(t);
321
+ b(() => {
320
322
  a.current = t;
321
323
  }, [t]);
322
- let o = g((e) => {
324
+ let o = y((e) => {
323
325
  a.current?.(e);
324
- }, []), s = g((e, t) => {
326
+ }, []), s = y((e, t) => {
325
327
  r((n) => {
326
328
  let r = {
327
329
  ...n,
@@ -329,7 +331,7 @@ function de({ resources: e, onResourcesChange: t } = {}) {
329
331
  };
330
332
  return o(r), r;
331
333
  });
332
- }, [o]), c = g((e, t) => {
334
+ }, [o]), c = y((e, t) => {
333
335
  r((n) => {
334
336
  let r = n[e];
335
337
  if (!r) return n;
@@ -342,21 +344,21 @@ function de({ resources: e, onResourcesChange: t } = {}) {
342
344
  };
343
345
  return o(i), i;
344
346
  });
345
- }, [o]), l = g((e) => {
347
+ }, [o]), l = y((e) => {
346
348
  r((t) => {
347
349
  if (!(e in t)) return t;
348
350
  let n = { ...t };
349
351
  return delete n[e], o(n), n;
350
352
  });
351
- }, [o]), u = g((e) => {
353
+ }, [o]), u = y((e) => {
352
354
  r(e), o(e);
353
- }, [o]), d = g(() => {
355
+ }, [o]), d = y(() => {
354
356
  let e = i.current ?? {};
355
357
  r(e), o(e);
356
358
  }, [o]);
357
359
  return {
358
360
  registry: n,
359
- get: g((e) => {
361
+ get: y((e) => {
360
362
  let t = typeof e == "string" ? e : e.key;
361
363
  return n[t];
362
364
  }, [n]),
@@ -369,11 +371,11 @@ function de({ resources: e, onResourcesChange: t } = {}) {
369
371
  }
370
372
  //#endregion
371
373
  //#region src/components/features/activities/partials/activity-actions-menu.tsx
372
- function fe(e) {
374
+ function he(e) {
373
375
  if (e === "destructive") return "destructive";
374
376
  if (e === "primary" || e === "secondary") return e;
375
377
  }
376
- function pe({ activity: e, actions: t, onAction: n, label: r }) {
378
+ function ge({ activity: e, actions: t, onAction: n, label: r }) {
377
379
  if (t.length === 0) return null;
378
380
  let i = t.map((t) => ({
379
381
  id: t.id,
@@ -381,82 +383,80 @@ function pe({ activity: e, actions: t, onAction: n, label: r }) {
381
383
  label: t.label,
382
384
  href: t.href,
383
385
  disabled: t.disabled,
384
- variant: fe(t.tone),
386
+ tone: he(t.tone),
385
387
  onClick: () => {
386
388
  t.onClick?.(e), n?.(t.id, e);
387
389
  }
388
390
  }));
389
- return /* @__PURE__ */ S(c, {
391
+ return /* @__PURE__ */ T(u, {
390
392
  actions: i,
391
393
  srText: r,
392
394
  align: "end",
393
395
  density: "table",
394
396
  closeOnSelect: !0,
395
- labelVisibility: "hidden",
396
397
  buttonProps: {
397
398
  size: "sm",
398
- iconOnly: !0,
399
- className: "activity-actions-menu--component size-action-sm text-muted-foreground"
399
+ className: "activity-actions-menu--component"
400
400
  }
401
401
  });
402
402
  }
403
403
  //#endregion
404
404
  //#region src/components/features/activities/partials/activity-changes.tsx
405
- function me({ change: e }) {
405
+ function _e({ change: e }) {
406
406
  let t = e.old !== null && e.old !== void 0, n = e.new !== null && e.new !== void 0;
407
- return !t && !n ? /* @__PURE__ */ S(r, {
407
+ return !t && !n ? /* @__PURE__ */ T(i, {
408
408
  tag: "span",
409
409
  children: e.description
410
- }) : /* @__PURE__ */ C(r, {
410
+ }) : /* @__PURE__ */ E(i, {
411
411
  tag: "span",
412
412
  className: "inline-flex flex-wrap items-baseline gap-space-xs",
413
413
  children: [
414
- !!t && /* @__PURE__ */ S(r, {
414
+ !!t && /* @__PURE__ */ T(i, {
415
415
  tag: "span",
416
416
  size: "inherit",
417
- className: "rounded bg-destructive/10 text-destructive line-through px-1 py-px",
417
+ className: l.removed,
418
418
  children: e.old
419
419
  }),
420
- t && n && /* @__PURE__ */ S(r, {
420
+ t && n && /* @__PURE__ */ T(i, {
421
421
  tag: "span",
422
422
  size: "inherit",
423
423
  type: "secondary",
424
424
  children: "→"
425
425
  }),
426
- !!n && /* @__PURE__ */ S(r, {
426
+ !!n && /* @__PURE__ */ T(i, {
427
427
  tag: "span",
428
428
  size: "inherit",
429
- className: "rounded bg-success/15 text-success px-1 py-px",
429
+ className: l.added,
430
430
  children: e.new
431
431
  })
432
432
  ]
433
433
  });
434
434
  }
435
- function he({ changes: e, className: t }) {
436
- return e.length === 0 ? null : /* @__PURE__ */ S("div", {
435
+ function ve({ changes: e, className: t }) {
436
+ return e.length === 0 ? null : /* @__PURE__ */ T("div", {
437
437
  className: n("activity-changes--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", t),
438
- children: /* @__PURE__ */ S(s, {
438
+ children: /* @__PURE__ */ T(s, {
439
439
  gap: "sm",
440
- children: e.map((e) => /* @__PURE__ */ C("div", {
440
+ children: e.map((e) => /* @__PURE__ */ E("div", {
441
441
  className: "flex items-baseline gap-space-md",
442
- children: [/* @__PURE__ */ S(r, {
442
+ children: [/* @__PURE__ */ T(i, {
443
443
  size: "xs",
444
444
  type: "secondary",
445
445
  weight: "medium",
446
446
  className: "shrink-0",
447
447
  children: e.label
448
- }), /* @__PURE__ */ S(me, { change: e })]
448
+ }), /* @__PURE__ */ T(_e, { change: e })]
449
449
  }, `${e.key}-${e.label}`))
450
450
  })
451
451
  });
452
452
  }
453
453
  //#endregion
454
454
  //#region src/components/features/activities/partials/activity-date-label.tsx
455
- function ge({ label: e, first: t, className: i }) {
456
- return e === "" ? null : /* @__PURE__ */ S(s, {
455
+ function ye({ label: e, first: t, className: r }) {
456
+ return e === "" ? null : /* @__PURE__ */ T(s, {
457
457
  gap: "none",
458
- className: n("activity-date-label--component", !t && "mt-space-md", i),
459
- children: /* @__PURE__ */ S(r, {
458
+ className: n("activity-date-label--component", !t && "mt-space-md", r),
459
+ children: /* @__PURE__ */ T(i, {
460
460
  size: "xs",
461
461
  type: "secondary",
462
462
  weight: "medium",
@@ -466,11 +466,11 @@ function ge({ label: e, first: t, className: i }) {
466
466
  }
467
467
  //#endregion
468
468
  //#region src/components/features/activities/partials/activity-empty-state.tsx
469
- function _e({ title: e, hint: t, className: r }) {
470
- return /* @__PURE__ */ S(u, {
469
+ function be({ title: e, hint: t, className: r }) {
470
+ return /* @__PURE__ */ T(p, {
471
471
  title: e,
472
472
  description: t ?? !1,
473
- media: /* @__PURE__ */ S(w, {
473
+ media: /* @__PURE__ */ T(D, {
474
474
  className: "size-icon",
475
475
  "aria-hidden": "true"
476
476
  }),
@@ -481,64 +481,29 @@ function _e({ title: e, hint: t, className: r }) {
481
481
  }
482
482
  //#endregion
483
483
  //#region src/components/features/activities/partials/tone-tokens.ts
484
- var ve = {
485
- primary: {
486
- bg: "bg-primary/10",
487
- fg: "text-primary-accent",
488
- dot: "bg-primary",
489
- line: "bg-primary/30",
490
- chipBg: "bg-primary/5",
491
- chipFg: "text-primary-accent"
492
- },
493
- success: {
494
- bg: "bg-success/10",
495
- fg: "text-success",
496
- dot: "bg-success",
497
- line: "bg-success/30",
498
- chipBg: "bg-success/10",
499
- chipFg: "text-success"
500
- },
501
- warning: {
502
- bg: "bg-warning/10",
503
- fg: "text-warning-accent",
504
- dot: "bg-warning",
505
- line: "bg-warning/30",
506
- chipBg: "bg-warning/10",
507
- chipFg: "text-warning-accent"
508
- },
509
- destructive: {
510
- bg: "bg-destructive/10",
511
- fg: "text-destructive",
512
- dot: "bg-destructive",
513
- line: "bg-destructive/30",
514
- chipBg: "bg-destructive/10",
515
- chipFg: "text-destructive"
516
- },
517
- info: {
518
- bg: "bg-info/10",
519
- fg: "text-info",
520
- dot: "bg-info",
521
- line: "bg-info/30",
522
- chipBg: "bg-info/10",
523
- chipFg: "text-info"
524
- },
525
- neutral: {
526
- bg: "bg-muted",
527
- fg: "text-muted-foreground",
528
- dot: "bg-muted-foreground/60",
529
- line: "bg-border",
530
- chipBg: "bg-muted",
531
- chipFg: "text-muted-foreground"
532
- },
533
- secondary: {
534
- bg: "bg-muted",
535
- fg: "text-muted-foreground",
536
- dot: "bg-muted-foreground/60",
537
- line: "bg-border",
538
- chipBg: "bg-muted",
539
- chipFg: "text-muted-foreground"
540
- }
541
- }, ye = {
484
+ var $ = (e) => ({
485
+ bg: c[e].tint,
486
+ fg: c[e].ink,
487
+ dot: c[e].solid,
488
+ line: c[e].line,
489
+ chipBg: c[e].tint,
490
+ chipFg: c[e].ink
491
+ }), xe = {
492
+ bg: "bg-muted",
493
+ fg: "text-muted-foreground",
494
+ dot: "bg-muted-foreground",
495
+ line: "bg-border",
496
+ chipBg: "bg-muted",
497
+ chipFg: "text-muted-foreground"
498
+ }, Se = {
499
+ primary: $("primary"),
500
+ success: $("success"),
501
+ warning: $("warning"),
502
+ destructive: $("destructive"),
503
+ info: $("info"),
504
+ neutral: xe,
505
+ secondary: xe
506
+ }, Ce = {
542
507
  primary: "primary",
543
508
  success: "success",
544
509
  warning: "warning",
@@ -549,32 +514,32 @@ var ve = {
549
514
  };
550
515
  //#endregion
551
516
  //#region src/components/features/activities/partials/activity-resource-tag.tsx
552
- function be({ resource: e, config: t, fallbackText: i, onClick: o }) {
553
- let s = ve[t?.tone ?? "neutral"], c = t?.icon ?? k, u = t?.label ?? i ?? e.label ?? e.key, d = typeof o == "function", f = /* @__PURE__ */ C(x, { children: [
554
- /* @__PURE__ */ S(c, { className: n("size-icon-sm shrink-0", s.fg) }),
555
- /* @__PURE__ */ S(r, {
517
+ function we({ resource: e, config: t, fallbackText: a, onClick: o }) {
518
+ let s = Se[t?.tone ?? "neutral"], c = t?.icon ?? N, l = t?.label ?? a ?? e.label ?? e.key, u = typeof o == "function", d = /* @__PURE__ */ E(w, { children: [
519
+ /* @__PURE__ */ T(c, { className: n("size-icon-sm shrink-0", s.fg) }),
520
+ /* @__PURE__ */ T(i, {
556
521
  tag: "span",
557
522
  weight: "medium",
558
523
  lineHeight: "none",
559
524
  className: s.chipFg,
560
- children: u
525
+ children: l
561
526
  }),
562
- !!t?.tags && t.tags.length > 0 && /* @__PURE__ */ S(r, {
527
+ !!t?.tags && t.tags.length > 0 && /* @__PURE__ */ T(i, {
563
528
  tag: "span",
564
529
  size: "xs",
565
530
  type: "secondary",
566
531
  className: "border-l border-border pl-space-sm",
567
532
  children: t.tags.join(" · ")
568
533
  }),
569
- !!t?.badge && /* @__PURE__ */ S(l, {
534
+ !!t?.badge && /* @__PURE__ */ T(f, {
570
535
  inline: !0,
571
536
  size: "sm",
572
- tone: ye[t.badge.tone ?? "neutral"],
537
+ tone: Ce[t.badge.tone ?? "neutral"],
573
538
  className: "ml-space-2xs",
574
539
  children: t.badge.label
575
540
  })
576
- ] }), p = n("inline-flex items-center gap-space-xs rounded-full px-space-sm py-px align-baseline", "border border-border/50 shadow-none", s.chipBg, d && "cursor-pointer transition-colors hover:bg-foreground/5 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring");
577
- return d ? /* @__PURE__ */ S(a, {
541
+ ] }), p = n("inline-flex items-center gap-space-xs rounded-full px-space-sm py-px align-baseline", "border border-border shadow-none", s.chipBg, u && "cursor-pointer transition-colors");
542
+ return u ? /* @__PURE__ */ T(r, {
578
543
  type: "button",
579
544
  tone: "secondary",
580
545
  buttonStyle: "ghost",
@@ -584,21 +549,21 @@ function be({ resource: e, config: t, fallbackText: i, onClick: o }) {
584
549
  },
585
550
  className: n("activity-resource-tag--component gap-space-xs align-baseline", s.chipBg),
586
551
  title: t?.note,
587
- children: f
588
- }) : /* @__PURE__ */ S("span", {
552
+ children: d
553
+ }) : /* @__PURE__ */ T("span", {
589
554
  className: n("activity-resource-tag--component", p),
590
555
  title: t?.note,
591
- children: f
556
+ children: d
592
557
  });
593
558
  }
594
559
  //#endregion
595
560
  //#region src/components/features/activities/partials/activity-headline.tsx
596
- function xe({ actorId: e, text: t, href: n, activity: o, youLabel: s, currentUserId: c, onActorClick: l }) {
561
+ function Te({ actorId: e, text: t, href: n, activity: o, youLabel: s, currentUserId: c, onActorClick: l }) {
597
562
  let u = c !== void 0 && e !== void 0 && c === e ? s : t, d = o.actor ?? {
598
563
  id: e,
599
564
  name: t
600
565
  };
601
- return n ? /* @__PURE__ */ S(i, {
566
+ return n ? /* @__PURE__ */ T(a, {
602
567
  href: n,
603
568
  size: "inherit",
604
569
  underline: !1,
@@ -607,7 +572,7 @@ function xe({ actorId: e, text: t, href: n, activity: o, youLabel: s, currentUse
607
572
  },
608
573
  className: "font-semibold text-foreground underline-offset-2 hover:underline",
609
574
  children: u
610
- }) : l ? /* @__PURE__ */ S(a, {
575
+ }) : l ? /* @__PURE__ */ T(r, {
611
576
  type: "button",
612
577
  tone: "secondary",
613
578
  buttonStyle: "ghost",
@@ -616,22 +581,22 @@ function xe({ actorId: e, text: t, href: n, activity: o, youLabel: s, currentUse
616
581
  e.stopPropagation(), l(d, o);
617
582
  },
618
583
  className: "h-auto min-h-0 rounded-inner px-0 py-0 text-foreground underline-offset-2 hover:underline",
619
- children: /* @__PURE__ */ S(r, {
584
+ children: /* @__PURE__ */ T(i, {
620
585
  tag: "span",
621
586
  weight: "semibold",
622
587
  children: u
623
588
  })
624
- }) : /* @__PURE__ */ S(r, {
589
+ }) : /* @__PURE__ */ T(i, {
625
590
  tag: "span",
626
591
  weight: "semibold",
627
592
  children: u
628
593
  });
629
594
  }
630
- function Se(e, t) {
595
+ function Ee(e, t) {
631
596
  return e.map((e, n) => {
632
- let i = `seg-${n}-${e.type}`;
597
+ let r = `seg-${n}-${e.type}`;
633
598
  switch (e.type) {
634
- case "actor": return /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(xe, {
599
+ case "actor": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(Te, {
635
600
  actorId: e.actorId,
636
601
  text: e.text,
637
602
  href: e.href,
@@ -639,100 +604,100 @@ function Se(e, t) {
639
604
  youLabel: t.youLabel,
640
605
  currentUserId: t.currentUserId,
641
606
  onActorClick: t.onActorClick
642
- }), " "] }, i);
607
+ }), " "] }, r);
643
608
  case "field":
644
- case "value": return /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(r, {
609
+ case "value": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(i, {
645
610
  tag: "span",
646
611
  weight: "semibold",
647
612
  children: e.text
648
- }), " "] }, i);
649
- case "status": return /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(l, {
613
+ }), " "] }, r);
614
+ case "status": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(f, {
650
615
  inline: !0,
651
616
  size: "sm",
652
- tone: ye[e.tone ?? "neutral"],
617
+ tone: Ce[e.tone ?? "neutral"],
653
618
  children: e.text
654
- }), " "] }, i);
619
+ }), " "] }, r);
655
620
  case "resource": {
656
621
  let n = t.getResourceConfig?.(e.resource);
657
- return /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(be, {
622
+ return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(we, {
658
623
  resource: e.resource,
659
624
  config: n,
660
625
  fallbackText: e.text,
661
626
  onClick: t.onResourceClick ? () => t.onResourceClick?.(e.resource, n, t.activity) : void 0
662
- }), " "] }, i);
627
+ }), " "] }, r);
663
628
  }
664
- default: return /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ S(r, {
629
+ default: return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(i, {
665
630
  tag: "span",
666
631
  children: e.text
667
- }), " "] }, i);
632
+ }), " "] }, r);
668
633
  }
669
634
  });
670
635
  }
671
- function Ce(e) {
672
- let { activity: t } = e, n = t.headline ?? t.event, i = t.actor?.name;
673
- if (!i || !n.includes(i)) return /* @__PURE__ */ S(r, {
636
+ function De(e) {
637
+ let { activity: t } = e, n = t.headline ?? t.event, r = t.actor?.name;
638
+ if (!r || !n.includes(r)) return /* @__PURE__ */ T(i, {
674
639
  tag: "span",
675
640
  children: n
676
641
  });
677
- let [a, ...o] = n.split(i);
678
- return /* @__PURE__ */ C(x, { children: [
679
- !!a && /* @__PURE__ */ S(r, {
642
+ let [a, ...o] = n.split(r);
643
+ return /* @__PURE__ */ E(w, { children: [
644
+ !!a && /* @__PURE__ */ T(i, {
680
645
  tag: "span",
681
646
  children: a
682
647
  }),
683
- /* @__PURE__ */ S(xe, {
648
+ /* @__PURE__ */ T(Te, {
684
649
  actorId: t.actor?.id,
685
- text: i,
650
+ text: r,
686
651
  href: t.actor?.href,
687
652
  activity: t,
688
653
  youLabel: e.youLabel,
689
654
  currentUserId: e.currentUserId,
690
655
  onActorClick: e.onActorClick
691
656
  }),
692
- o.length > 0 && /* @__PURE__ */ S(r, {
657
+ o.length > 0 && /* @__PURE__ */ T(i, {
693
658
  tag: "span",
694
- children: o.join(i)
659
+ children: o.join(r)
695
660
  })
696
661
  ] });
697
662
  }
698
- function we(e) {
663
+ function Oe(e) {
699
664
  let t = e.activity.segments;
700
- return t && t.length > 0 ? /* @__PURE__ */ S("span", {
665
+ return t && t.length > 0 ? /* @__PURE__ */ T("span", {
701
666
  className: "activity-headline--component leading-snug [&>span]:leading-snug",
702
- children: Se(t, e)
703
- }) : /* @__PURE__ */ S("span", {
667
+ children: Ee(t, e)
668
+ }) : /* @__PURE__ */ T("span", {
704
669
  className: "activity-headline--component leading-snug",
705
- children: Ce(e)
670
+ children: De(e)
706
671
  });
707
672
  }
708
673
  //#endregion
709
674
  //#region src/components/features/activities/partials/activity-marker.tsx
710
- function Te({ icon: e, tone: t, density: r, last: i, className: a }) {
711
- let o = ve[t];
712
- return r === "compact" ? /* @__PURE__ */ C("div", {
675
+ function ke({ icon: e, tone: t, density: r, last: i, className: a }) {
676
+ let o = Se[t];
677
+ return r === "compact" ? /* @__PURE__ */ E("div", {
713
678
  className: n("activity-marker--component flex flex-col items-center", a),
714
- children: [/* @__PURE__ */ S("span", {
679
+ children: [/* @__PURE__ */ T("span", {
715
680
  "aria-hidden": !0,
716
681
  className: n("mt-1.5 size-2 shrink-0 rounded-full", o.dot)
717
- }), !i && /* @__PURE__ */ S("span", {
682
+ }), !i && /* @__PURE__ */ T("span", {
718
683
  "aria-hidden": !0,
719
684
  className: n("mt-1 w-px flex-1", o.line)
720
685
  })]
721
- }) : r === "rich" ? /* @__PURE__ */ C("div", {
686
+ }) : r === "rich" ? /* @__PURE__ */ E("div", {
722
687
  className: n("activity-marker--component flex flex-col items-center", a),
723
- children: [/* @__PURE__ */ S("span", {
688
+ children: [/* @__PURE__ */ T("span", {
724
689
  className: n("flex size-7 shrink-0 items-center justify-center rounded-full ring-1 ring-border/60", o.bg, o.fg),
725
- children: /* @__PURE__ */ S(e, { className: "size-icon-md" })
726
- }), !i && /* @__PURE__ */ S("span", {
690
+ children: /* @__PURE__ */ T(e, { className: "size-icon-md" })
691
+ }), !i && /* @__PURE__ */ T("span", {
727
692
  "aria-hidden": !0,
728
693
  className: n("mt-1 w-px flex-1", o.line)
729
694
  })]
730
- }) : /* @__PURE__ */ C("div", {
695
+ }) : /* @__PURE__ */ E("div", {
731
696
  className: n("activity-marker--component flex flex-col items-center", a),
732
- children: [/* @__PURE__ */ S("span", {
697
+ children: [/* @__PURE__ */ T("span", {
733
698
  className: n("flex size-icon-lg shrink-0 items-center justify-center rounded-full", o.bg, o.fg),
734
- children: /* @__PURE__ */ S(e, { className: "size-icon-sm" })
735
- }), !i && /* @__PURE__ */ S("span", {
699
+ children: /* @__PURE__ */ T(e, { className: "size-icon-sm" })
700
+ }), !i && /* @__PURE__ */ T("span", {
736
701
  "aria-hidden": !0,
737
702
  className: n("mt-1 w-px flex-1", o.line)
738
703
  })]
@@ -740,74 +705,25 @@ function Te({ icon: e, tone: t, density: r, last: i, className: a }) {
740
705
  }
741
706
  //#endregion
742
707
  //#region src/components/features/activities/partials/activity-row.tsx
743
- function Ee({ metadata: e, moreLabel: t }) {
744
- let n = e.slice(0, 3), i = e.length - n.length;
745
- return /* @__PURE__ */ C(s, {
746
- direction: "horizontal",
747
- align: "center",
748
- wrap: !0,
749
- gap: "sm",
750
- className: "activity-row--metadata-preview mt-space-xs min-w-0 gap-y-space-2xs",
751
- children: [n.map((e, t) => /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ C(r, {
752
- tag: "span",
753
- type: "secondary",
754
- className: "inline-flex min-w-0 items-baseline gap-space-xs leading-snug",
755
- children: [/* @__PURE__ */ C(r, {
756
- tag: "span",
757
- size: "xs",
758
- type: "discrete",
759
- className: "shrink-0",
760
- children: [
761
- e.label,
762
- ":",
763
- " "
764
- ]
765
- }), /* @__PURE__ */ S(r, {
766
- tag: "span",
767
- size: "inherit",
768
- className: "min-w-0 truncate",
769
- children: e.value
770
- })]
771
- }), t < n.length - 1 && /* @__PURE__ */ S(r, {
772
- tag: "span",
773
- size: "xs",
774
- type: "discrete",
775
- className: "leading-snug",
776
- "aria-hidden": "true",
777
- children: " · "
778
- })] }, e.label)), i > 0 && /* @__PURE__ */ C(r, {
779
- tag: "span",
780
- size: "xs",
781
- type: "discrete",
782
- className: "leading-snug",
783
- children: [
784
- "+",
785
- i,
786
- " ",
787
- t
788
- ]
789
- })]
790
- });
791
- }
792
- function De({ metadata: e }) {
793
- return /* @__PURE__ */ S(o, {
708
+ function Ae({ metadata: e }) {
709
+ return /* @__PURE__ */ T(o, {
794
710
  columns: {
795
711
  base: 1,
796
712
  sm: 2
797
713
  },
798
714
  gap: "md",
799
715
  className: "activity-row--metadata",
800
- children: e.map((e) => /* @__PURE__ */ C(s, {
716
+ children: e.map((e) => /* @__PURE__ */ E(s, {
801
717
  gap: "dense",
802
718
  className: "min-w-0",
803
- children: [/* @__PURE__ */ S(r, {
719
+ children: [/* @__PURE__ */ T(i, {
804
720
  tag: "div",
805
721
  size: "xs",
806
722
  type: "discrete",
807
723
  weight: "medium",
808
724
  className: "leading-snug",
809
725
  children: e.label
810
- }), /* @__PURE__ */ S(r, {
726
+ }), /* @__PURE__ */ T(i, {
811
727
  tag: "div",
812
728
  className: "min-w-0 break-words leading-snug",
813
729
  children: e.value
@@ -815,58 +731,55 @@ function De({ metadata: e }) {
815
731
  }, e.label))
816
732
  });
817
733
  }
818
- function Oe(e) {
819
- let { activity: t, density: i, itemSpacing: o, eventConfig: c, tone: u, last: d, expanded: f, onExpandedChange: p, detailsCollapsible: m, relativeTime: h, absoluteTime: g, sourceLabel: _, youLabel: v, showChangesLabel: y, hideChangesLabel: b, moreLabel: x, actionsLabel: w, currentUserId: T, actions: E, onActivityClick: D, onActorClick: O, onResourceClick: k, onAction: A, getResourceConfig: j, headlineOverride: M, markerOverride: N, customDetails: P, rowClassName: F, markerClassName: I, contentClassName: L, detailsClassName: ne } = e, R = t.iconOverride ?? c.icon, z = (t.changes?.length ?? 0) > 0, B = t.metadata ?? [], V = B.length > 0, H = (t.resources?.length ?? 0) > 0, U = t.details !== void 0 && t.details !== null && t.details !== !1, W = P != null && P !== !1, G = V || z || U || W, re = t.description !== void 0 && t.description !== null && t.description !== "", K = i !== "compact", q = i === "rich", J = m ?? (V || z), Y = q && G && (!J || f), X = q && V && J && !f, Z = E.filter((e) => e.presentation === "inline"), ie = E.filter((e) => e.presentation !== "inline"), ae = M ?? /* @__PURE__ */ S(we, {
734
+ function je(e) {
735
+ let { activity: t, density: a, itemSpacing: o, eventConfig: c, tone: l, last: u, expanded: p, onExpandedChange: m, detailsCollapsible: h, relativeTime: g, absoluteTime: _, sourceLabel: v, youLabel: y, showChangesLabel: b, hideChangesLabel: x, actionsLabel: S, currentUserId: C, actions: w, onActivityClick: D, onActorClick: O, onResourceClick: k, onAction: A, getResourceConfig: j, headlineOverride: N, markerOverride: P, customDetails: F, rowClassName: I, markerClassName: L, contentClassName: R, detailsClassName: z } = e, B = t.iconOverride ?? c.icon, V = (t.changes?.length ?? 0) > 0, H = t.metadata ?? [], U = H.length > 0, W = (t.resources?.length ?? 0) > 0, G = t.details !== void 0 && t.details !== null && t.details !== !1, K = F != null && F !== !1, q = U || V || G || K, te = t.description !== void 0 && t.description !== null && t.description !== "", ne = a !== "compact", J = a === "rich", Y = h ?? (U || V), X = J && q && (!Y || p), Z = J && (!(q && Y) || p), re = w.filter((e) => e.presentation === "inline"), ie = w.filter((e) => e.presentation !== "inline"), ae = N ?? /* @__PURE__ */ T(Oe, {
820
736
  activity: t,
821
- currentUserId: T,
822
- youLabel: v,
737
+ currentUserId: C,
738
+ youLabel: y,
823
739
  onActorClick: O,
824
740
  onResourceClick: k,
825
741
  getResourceConfig: j
826
- }), oe = N ?? /* @__PURE__ */ S(Te, {
827
- icon: R,
828
- tone: u,
829
- density: i,
830
- last: d,
831
- className: I
832
- }), Q = typeof D == "function", se = z || H || ie.length > 0 || Z.length > 0 || typeof O == "function" || typeof k == "function", ce = Q && !se, le = i === "rich" ? "gap-space-md py-space-xs" : i === "compact" ? "gap-space-sm py-space-2xs" : "gap-space-md py-space-2xs", ue = d ? "" : o === "compact" ? "pb-space-sm" : o === "relaxed" ? "pb-space-xl" : "pb-space-md";
833
- return /* @__PURE__ */ C("div", {
834
- className: n("activity-row--component relative flex", le, Q && "cursor-pointer rounded-radius hover:bg-muted/40", F),
835
- onClick: Q ? () => D?.(t) : void 0,
836
- role: ce ? "button" : void 0,
837
- tabIndex: ce ? 0 : void 0,
838
- onKeyDown: ce ? (e) => {
742
+ }), oe = P ?? /* @__PURE__ */ T(ke, {
743
+ icon: B,
744
+ tone: l,
745
+ density: a,
746
+ last: u,
747
+ className: L
748
+ }), se = typeof D == "function", ce = V || W || ie.length > 0 || re.length > 0 || typeof O == "function" || typeof k == "function", Q = se && !ce, le = a === "rich" ? "gap-space-md py-space-xs" : a === "compact" ? "gap-space-sm py-space-2xs" : "gap-space-md py-space-2xs", ue = u ? "" : o === "compact" ? "pb-space-sm" : o === "relaxed" ? "pb-space-xl" : "pb-space-md";
749
+ return /* @__PURE__ */ E("div", {
750
+ className: n("activity-row--component relative flex", le, se && `cursor-pointer rounded-inner ${d.rowHover}`, I),
751
+ onClick: se ? () => D?.(t) : void 0,
752
+ role: Q ? "button" : void 0,
753
+ tabIndex: Q ? 0 : void 0,
754
+ onKeyDown: Q ? (e) => {
839
755
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), D?.(t));
840
756
  } : void 0,
841
- children: [oe, /* @__PURE__ */ C("div", {
842
- className: n("activity-row--content min-w-0 flex-1", ue, L),
757
+ children: [oe, /* @__PURE__ */ E("div", {
758
+ className: n("activity-row--content min-w-0 flex-1", ue, R),
843
759
  children: [
844
- /* @__PURE__ */ C(s, {
760
+ /* @__PURE__ */ E(s, {
845
761
  gap: "dense",
846
- children: [/* @__PURE__ */ C("div", {
762
+ children: [/* @__PURE__ */ E("div", {
847
763
  className: "activity-row--summary grid min-w-0 grid-cols-1 items-start gap-x-space-lg gap-y-space-sm sm:grid-cols-[minmax(0,1fr)_max-content]",
848
- children: [/* @__PURE__ */ C(s, {
764
+ children: [/* @__PURE__ */ T(s, {
849
765
  gap: "dense",
850
766
  className: "min-w-0",
851
- children: [/* @__PURE__ */ C("div", {
767
+ children: /* @__PURE__ */ E("div", {
852
768
  className: "activity-row--headline flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-xs",
853
- children: [/* @__PURE__ */ S(r, {
769
+ children: [/* @__PURE__ */ T(i, {
854
770
  tag: "span",
855
771
  size: "inherit",
856
772
  lineHeight: "snug",
857
773
  className: "min-w-0 break-words [overflow-wrap:anywhere]",
858
774
  children: ae
859
- }), !!_ && /* @__PURE__ */ S(l, {
775
+ }), !!v && /* @__PURE__ */ T(f, {
860
776
  inline: !0,
861
777
  size: "sm",
862
778
  tone: "secondary",
863
- children: _
779
+ children: v
864
780
  })]
865
- }), X && /* @__PURE__ */ S(Ee, {
866
- metadata: B,
867
- moreLabel: x
868
- })]
869
- }), /* @__PURE__ */ C(s, {
781
+ })
782
+ }), /* @__PURE__ */ E(s, {
870
783
  direction: "horizontal",
871
784
  gap: "xs",
872
785
  justify: {
@@ -876,14 +789,14 @@ function Oe(e) {
876
789
  wrap: !1,
877
790
  className: "activity-row--trailing w-full shrink-0 justify-self-start sm:w-auto sm:justify-self-end",
878
791
  children: [
879
- !!h && /* @__PURE__ */ S(r, {
792
+ !!g && /* @__PURE__ */ T(i, {
880
793
  size: "xs",
881
794
  type: "secondary",
882
795
  className: "whitespace-nowrap tabular-nums leading-snug",
883
- title: g ?? void 0,
884
- children: h
796
+ title: _ ?? void 0,
797
+ children: g
885
798
  }),
886
- q && G && J && /* @__PURE__ */ S(a, {
799
+ J && q && Y && /* @__PURE__ */ T(r, {
887
800
  type: "button",
888
801
  size: "sm",
889
802
  iconOnly: !0,
@@ -891,48 +804,72 @@ function Oe(e) {
891
804
  buttonStyle: "ghost",
892
805
  className: "size-action-sm text-muted-foreground",
893
806
  onClick: (e) => {
894
- e.stopPropagation(), p(!f);
807
+ e.stopPropagation(), m(!p);
895
808
  },
896
- title: f ? b : y,
897
- "aria-label": f ? b : y,
898
- "aria-expanded": f,
899
- children: S(f ? ee : te, { className: "size-icon-sm" })
809
+ title: p ? x : b,
810
+ "aria-label": p ? x : b,
811
+ "aria-expanded": p,
812
+ children: T(p ? ee : M, { className: "size-icon-sm" })
900
813
  }),
901
- q && ie.length > 0 && /* @__PURE__ */ S(pe, {
814
+ J && ie.length > 0 && /* @__PURE__ */ T(ge, {
902
815
  activity: t,
903
816
  actions: ie,
904
817
  onAction: A,
905
- label: w
818
+ label: S
906
819
  })
907
820
  ]
908
821
  })]
909
- }), !!K && re && /* @__PURE__ */ S(r, {
822
+ }), !!ne && te && /* @__PURE__ */ T(i, {
910
823
  tag: "div",
911
824
  type: "secondary",
912
825
  className: "max-w-3xl leading-relaxed",
913
826
  children: t.description
914
827
  })]
915
828
  }),
916
- !!q && H && t.resources && /* @__PURE__ */ S(s, {
829
+ Z && W && t.resources && /* @__PURE__ */ T(s, {
917
830
  direction: "horizontal",
918
831
  gap: "xs",
919
832
  className: "mt-space-sm",
920
833
  children: t.resources.map((e) => {
921
834
  let n = j?.(e);
922
- return /* @__PURE__ */ S(be, {
835
+ return /* @__PURE__ */ T(we, {
923
836
  resource: e,
924
837
  config: n,
925
838
  onClick: k ? () => k(e, n, t) : void 0
926
839
  }, e.key);
927
840
  })
928
841
  }),
929
- q && Z.length > 0 && /* @__PURE__ */ S(s, {
842
+ X && /* @__PURE__ */ T("div", {
843
+ className: "mt-space-sm",
844
+ children: /* @__PURE__ */ T("div", {
845
+ className: n("activity-row--details", z),
846
+ children: /* @__PURE__ */ E(s, {
847
+ gap: "md",
848
+ children: [
849
+ U && /* @__PURE__ */ T(Ae, { metadata: H }),
850
+ V && t.changes && /* @__PURE__ */ T(ve, {
851
+ changes: t.changes,
852
+ className: "border-0 bg-transparent p-0"
853
+ }),
854
+ G && /* @__PURE__ */ T("div", {
855
+ className: "activity-row--details-body",
856
+ children: t.details
857
+ }),
858
+ K && /* @__PURE__ */ T("div", {
859
+ className: "activity-row--details-custom",
860
+ children: F
861
+ })
862
+ ]
863
+ })
864
+ })
865
+ }),
866
+ Z && re.length > 0 && /* @__PURE__ */ T(s, {
930
867
  direction: "horizontal",
931
868
  gap: "xs",
932
869
  className: "activity-row--inline-actions mt-space-sm",
933
- children: Z.map((e) => {
870
+ children: re.map((e) => {
934
871
  let n = e.icon;
935
- return /* @__PURE__ */ S(a, {
872
+ return /* @__PURE__ */ T(r, {
936
873
  type: "button",
937
874
  size: "sm",
938
875
  tone: e.tone === "destructive" ? "destructive" : "secondary",
@@ -946,30 +883,6 @@ function Oe(e) {
946
883
  children: e.label
947
884
  }, e.id);
948
885
  })
949
- }),
950
- Y && /* @__PURE__ */ S("div", {
951
- className: "mt-space-sm",
952
- children: /* @__PURE__ */ S("div", {
953
- className: n("activity-row--details", ne),
954
- children: /* @__PURE__ */ C(s, {
955
- gap: "md",
956
- children: [
957
- V && /* @__PURE__ */ S(De, { metadata: B }),
958
- z && t.changes && /* @__PURE__ */ S(he, {
959
- changes: t.changes,
960
- className: "border-0 bg-transparent p-0"
961
- }),
962
- U && /* @__PURE__ */ S("div", {
963
- className: "activity-row--details-body",
964
- children: t.details
965
- }),
966
- W && /* @__PURE__ */ S("div", {
967
- className: "activity-row--details-custom",
968
- children: P
969
- })
970
- ]
971
- })
972
- })
973
886
  })
974
887
  ]
975
888
  })]
@@ -977,69 +890,69 @@ function Oe(e) {
977
890
  }
978
891
  //#endregion
979
892
  //#region src/components/features/activities/activities-feed.tsx
980
- function ke(e, t) {
893
+ function Me(e, t) {
981
894
  try {
982
895
  let n = new Date(e);
983
- return X(n) ? q(n, "PP p", t ? { locale: t } : void 0) : e;
896
+ return ae(n) ? Z(n, "PP p", t ? { locale: t } : void 0) : e;
984
897
  } catch {
985
898
  return e;
986
899
  }
987
900
  }
988
- function Ae(e, t) {
901
+ function Ne(e, t) {
989
902
  return typeof e == "function" ? e(t) : e;
990
903
  }
991
- function je(e, t) {
904
+ function Pe(e, t) {
992
905
  return e.toneOverride ?? t;
993
906
  }
994
- function Me(i) {
995
- let { activities: a = [], density: o = "default", itemSpacing: c = "relaxed", groupByDate: l = !0, expandedByDefault: u = !1, detailsCollapsible: d, defaultExpandedIds: f, expandedIds: p, onExpandedIdsChange: m, currentUserId: h, loading: g = !1, eventConfig: _, strings: y, slots: b, rowClassNames: x, className: w, locale: T, formatRelativeTime: E, formatAbsoluteTime: D, formatDateGroupLabel: O, getEventLabel: ee, getSourceLabel: te, actionsForActivity: k, onActivityClick: A, onActorClick: j, onResourceClick: M, onAction: N, onActivityExpandedChange: P, resources: F, onResourcesChange: I } = i, L = t(se, y), ne = v(() => ({
996
- ...oe,
907
+ function Fe(r) {
908
+ let { activities: a = [], density: o = "default", itemSpacing: c = "relaxed", groupByDate: l = !0, expandedByDefault: u = !1, detailsCollapsible: d, defaultExpandedIds: f, expandedIds: p, onExpandedIdsChange: m, currentUserId: h, loading: g = !1, eventConfig: _, strings: v, slots: y, rowClassNames: b, className: S, locale: C, formatRelativeTime: w, formatAbsoluteTime: D, formatDateGroupLabel: O, getEventLabel: k, getSourceLabel: A, actionsForActivity: j, onActivityClick: ee, onActorClick: M, onResourceClick: N, onAction: P, onActivityExpandedChange: F, resources: I, onResourcesChange: L } = r, R = t(ue, v), z = x(() => ({
909
+ ...Q,
997
910
  ..._
998
- }), [_]), R = de({
999
- resources: F,
1000
- onResourcesChange: I
1001
- }), z = e(), B = T ?? z.locale, V = ue({
911
+ }), [_]), B = me({
912
+ resources: I,
913
+ onResourcesChange: L
914
+ }), V = e(), H = C ?? V.locale, U = pe({
1002
915
  activities: a,
1003
916
  groupByDate: l,
1004
917
  expandedByDefault: u,
1005
918
  defaultExpandedIds: f,
1006
919
  expandedIds: p,
1007
920
  onExpandedIdsChange: m,
1008
- locale: B,
1009
- strings: L,
921
+ locale: H,
922
+ strings: R,
1010
923
  formatDateGroupLabel: O
1011
- }), H = E ?? z.formatRelativeTime ?? ((e) => e), U = D ?? ((e) => ke(e, B));
1012
- if (g) return /* @__PURE__ */ S("div", {
1013
- className: n("activities-feed--component", "px-space-md py-space-xl", w),
1014
- children: b?.loading ?? /* @__PURE__ */ S(r, {
924
+ }), W = w ?? V.formatRelativeTime ?? ((e) => e), G = D ?? ((e) => Me(e, H));
925
+ if (g) return /* @__PURE__ */ T("div", {
926
+ className: n("activities-feed--component", "px-space-md py-space-xl", S),
927
+ children: y?.loading ?? /* @__PURE__ */ T(i, {
1015
928
  type: "secondary",
1016
929
  align: "center",
1017
- children: L.loading
930
+ children: R.loading
1018
931
  })
1019
932
  });
1020
- if (a.length === 0) return /* @__PURE__ */ S("div", {
1021
- className: n("activities-feed--component", "px-space-md py-space-md", w),
1022
- children: b?.empty ?? /* @__PURE__ */ S(_e, { title: L.empty })
933
+ if (a.length === 0) return /* @__PURE__ */ T("div", {
934
+ className: n("activities-feed--component", "px-space-md py-space-md", S),
935
+ children: y?.empty ?? /* @__PURE__ */ T(be, { title: R.empty })
1023
936
  });
1024
- let W = V.groups.reduce((e, t) => e + t.items.length, 0), G = 0;
1025
- return /* @__PURE__ */ C(s, {
937
+ let K = U.groups.reduce((e, t) => e + t.items.length, 0), q = 0;
938
+ return /* @__PURE__ */ E(s, {
1026
939
  gap: "xl",
1027
- className: n("activities-feed--component", w),
940
+ className: n("activities-feed--component", S),
1028
941
  children: [
1029
- !!b?.header && /* @__PURE__ */ S("div", { children: b.header }),
1030
- /* @__PURE__ */ S("div", {
942
+ !!y?.header && /* @__PURE__ */ T("div", { children: y.header }),
943
+ /* @__PURE__ */ T("div", {
1031
944
  className: "flex flex-col",
1032
- children: V.groups.map((e, t) => {
945
+ children: U.groups.map((e, t) => {
1033
946
  let r = t === 0;
1034
- return /* @__PURE__ */ C("div", {
947
+ return /* @__PURE__ */ E("div", {
1035
948
  className: n(r ? "" : "mt-1"),
1036
- children: [b?.renderDateLabel ? b.renderDateLabel(e.label, r) : /* @__PURE__ */ S(ge, {
949
+ children: [y?.renderDateLabel ? y.renderDateLabel(e.label, r) : /* @__PURE__ */ T(ye, {
1037
950
  label: e.label,
1038
951
  first: r
1039
- }), /* @__PURE__ */ S("div", {
952
+ }), /* @__PURE__ */ T("div", {
1040
953
  className: n("flex flex-col", !!e.label && "mt-space-md"),
1041
954
  children: e.items.map((e, t) => {
1042
- let n = e.activity, r = t === 0, i = ++G === W, a = Q(n.event, ne), s = je(n, a.tone), l = n.timestamp ?? (n.createdAt ? H(n.createdAt) : null), u = n.createdAt ? U(n.createdAt) : null, f = n.source ? te?.(n.source) ?? L.sources[n.source] ?? a.sourceLabel ?? null : a.sourceLabel ?? null, p = f && f.trim().length > 0 ? f : null, m = k?.(n) ?? [], g = {
955
+ let n = e.activity, r = t === 0, i = ++q === K, a = le(n.event, z), s = Pe(n, a.tone), l = n.timestamp ?? (n.createdAt ? W(n.createdAt) : null), u = n.createdAt ? G(n.createdAt) : null, f = n.source ? A?.(n.source) ?? R.sources[n.source] ?? a.sourceLabel ?? null : a.sourceLabel ?? null, p = f && f.trim().length > 0 ? f : null, m = j?.(n) ?? [], g = {
1043
956
  density: o,
1044
957
  isLast: i,
1045
958
  isFirstInGroup: r,
@@ -1049,14 +962,14 @@ function Me(i) {
1049
962
  relativeTime: l,
1050
963
  absoluteTime: u,
1051
964
  sourceLabel: p,
1052
- expanded: V.isExpanded(n.id),
965
+ expanded: U.isExpanded(n.id),
1053
966
  itemSpacing: c,
1054
- setExpanded: (e) => V.setExpanded(n.id, e),
1055
- toggleExpanded: () => V.toggleExpanded(n.id)
1056
- }, _ = b?.renderDetails?.(n, g), v = b?.renderRow?.(n, g);
1057
- if (v !== void 0) return /* @__PURE__ */ S("div", { children: v }, e.key);
1058
- let y = b?.renderHeadline?.(n, g), C = b?.renderMarker?.(n, g);
1059
- return /* @__PURE__ */ S(Oe, {
967
+ setExpanded: (e) => U.setExpanded(n.id, e),
968
+ toggleExpanded: () => U.toggleExpanded(n.id)
969
+ }, _ = y?.renderDetails?.(n, g), v = y?.renderRow?.(n, g);
970
+ if (v !== void 0) return /* @__PURE__ */ T("div", { children: v }, e.key);
971
+ let x = y?.renderHeadline?.(n, g), S = y?.renderMarker?.(n, g);
972
+ return /* @__PURE__ */ T(je, {
1060
973
  activity: n,
1061
974
  density: o,
1062
975
  itemSpacing: c,
@@ -1065,65 +978,65 @@ function Me(i) {
1065
978
  last: i,
1066
979
  expanded: g.expanded,
1067
980
  onExpandedChange: (e) => {
1068
- V.setExpanded(n.id, e), P?.(n, e);
981
+ U.setExpanded(n.id, e), F?.(n, e);
1069
982
  },
1070
983
  detailsCollapsible: n.collapsible ?? d,
1071
984
  relativeTime: l,
1072
985
  absoluteTime: u,
1073
986
  sourceLabel: p,
1074
- youLabel: L.you,
1075
- showChangesLabel: L.showChanges,
1076
- hideChangesLabel: L.hideChanges,
1077
- moreLabel: L.moreLabel,
1078
- actionsLabel: L.actionsLabel,
987
+ youLabel: R.you,
988
+ showChangesLabel: R.showChanges,
989
+ hideChangesLabel: R.hideChanges,
990
+ moreLabel: R.moreLabel,
991
+ actionsLabel: R.actionsLabel,
1079
992
  currentUserId: h,
1080
993
  actions: m,
1081
- onActivityClick: A,
1082
- onActorClick: j,
1083
- onResourceClick: M,
1084
- onAction: N,
1085
- getResourceConfig: (e) => R.get(e),
1086
- headlineOverride: y,
1087
- markerOverride: C,
994
+ onActivityClick: ee,
995
+ onActorClick: M,
996
+ onResourceClick: N,
997
+ onAction: P,
998
+ getResourceConfig: (e) => B.get(e),
999
+ headlineOverride: x,
1000
+ markerOverride: S,
1088
1001
  customDetails: _,
1089
- rowClassName: Ae(x?.row, n),
1090
- markerClassName: Ae(x?.marker, n),
1091
- contentClassName: Ae(x?.content, n),
1092
- detailsClassName: Ae(x?.details, n)
1002
+ rowClassName: Ne(b?.row, n),
1003
+ markerClassName: Ne(b?.marker, n),
1004
+ contentClassName: Ne(b?.content, n),
1005
+ detailsClassName: Ne(b?.details, n)
1093
1006
  }, e.key);
1094
1007
  })
1095
1008
  })]
1096
1009
  }, `${e.label}-${t}`);
1097
1010
  })
1098
1011
  }),
1099
- !!b?.footer && /* @__PURE__ */ S("div", { children: b.footer })
1012
+ !!y?.footer && /* @__PURE__ */ T("div", { children: y.footer })
1100
1013
  ]
1101
1014
  });
1102
1015
  }
1103
- Me.displayName = "ActivityFeed";
1016
+ Fe.displayName = "ActivityFeed";
1104
1017
  //#endregion
1105
1018
  //#region src/components/features/activities/activity-log.tsx
1106
- function Ne(e, t) {
1019
+ function Ie(e, t) {
1107
1020
  let n = [...e];
1108
1021
  return n.sort((e, n) => {
1109
1022
  let r = e.timestamp ? new Date(e.timestamp).getTime() : 0, i = n.timestamp ? new Date(n.timestamp).getTime() : 0;
1110
1023
  return t === "asc" ? r - i : i - r;
1111
1024
  }), n;
1112
1025
  }
1113
- function Pe(e) {
1026
+ function Le(e) {
1114
1027
  return e ?? "secondary";
1115
1028
  }
1116
- function Fe(e) {
1029
+ function Re(e) {
1117
1030
  if (e) return typeof e == "string" ? { name: e } : e;
1118
1031
  }
1119
- function Ie(e) {
1032
+ function ze(e) {
1120
1033
  return e != null && e !== !1;
1121
1034
  }
1122
- function $(e, t) {
1035
+ function Be(e, t) {
1123
1036
  if (e && t && t.kind !== "comment") return typeof e == "function" ? e(t) : e;
1124
1037
  }
1125
- function Le(e, t) {
1126
- let n = Fe(e.actor), r = e.descriptionHtml ? /* @__PURE__ */ S(m, {
1038
+ function Ve(e, t) {
1039
+ let n = Re(e.actor), r = e.descriptionHtml ? /* @__PURE__ */ T(_, {
1127
1040
  html: e.descriptionHtml,
1128
1041
  mentions: e.mentions,
1129
1042
  resources: t
@@ -1136,7 +1049,7 @@ function Le(e, t) {
1136
1049
  createdAt: e.timestamp,
1137
1050
  timestamp: void 0,
1138
1051
  iconOverride: e.icon,
1139
- toneOverride: Pe(e.tone),
1052
+ toneOverride: Le(e.tone),
1140
1053
  headline: typeof e.headline == "string" ? e.headline : void 0,
1141
1054
  description: r,
1142
1055
  metadata: e.metadata,
@@ -1155,7 +1068,7 @@ function Le(e, t) {
1155
1068
  type: "text",
1156
1069
  text: e.action
1157
1070
  }] : [],
1158
- ...Ie(e.target) ? [{
1071
+ ...ze(e.target) ? [{
1159
1072
  type: "value",
1160
1073
  text: String(e.target)
1161
1074
  }] : [],
@@ -1166,65 +1079,65 @@ function Le(e, t) {
1166
1079
  ] : void 0
1167
1080
  };
1168
1081
  }
1169
- function Re(i) {
1170
- let { entries: a, order: o = "desc", itemSpacing: c = "relaxed", resources: l, onResourceSearch: u, canModerate: m, onCommentDelete: h, onCommentReact: _, onCommentReply: y, onCommentPinToggle: b, strings: x, activityStrings: w, renderers: T, renderEventDetails: E, eventDetailsCollapsible: D = !0, defaultExpandedIds: O, expandedIds: ee, onExpandedIdsChange: te, onEventExpandedChange: k, onEventAction: A, classNames: j, composer: M, bare: N = !1, title: P, getMediaUrl: F, getMediaName: I, getStatusLabel: L, formatRelativeTime: R, className: z } = i, B = t(se, w), V = e(), H = g((e) => {
1171
- let t = R ?? V.formatRelativeTime;
1082
+ function He(r) {
1083
+ let { entries: a, order: o = "desc", itemSpacing: c = "relaxed", resources: l, onResourceSearch: u, canModerate: d, onCommentDelete: f, onCommentReact: p, onCommentReply: _, onCommentPinToggle: v, strings: b, activityStrings: S, renderers: C, renderEventDetails: w, eventDetailsCollapsible: D = !0, defaultExpandedIds: O, expandedIds: k, onExpandedIdsChange: A, onEventExpandedChange: j, onEventAction: ee, classNames: M, composer: N, bare: P = !1, title: F, getMediaUrl: I, getMediaName: L, getStatusLabel: R, formatRelativeTime: z, className: B } = r, V = t(ue, S), U = e(), W = y((e) => {
1084
+ let t = z ?? U.formatRelativeTime;
1172
1085
  if (t) return t(e);
1173
- let n = ie(e);
1174
- if (!X(n)) return e;
1175
- let r = V.locale;
1176
- return J(n, {
1086
+ let n = se(e);
1087
+ if (!ae(n)) return e;
1088
+ let r = U.locale;
1089
+ return re(n, {
1177
1090
  addSuffix: !0,
1178
1091
  ...r ? { locale: r } : {}
1179
1092
  });
1180
1093
  }, [
1181
- V.formatRelativeTime,
1182
- V.locale,
1183
- R
1184
- ]), U = p({
1185
- onSubmit: M?.onSubmit,
1186
- onAfterMutate: M?.onAfterMutate,
1187
- onError: M?.onError
1188
- }), W = v(() => Ne(a, o), [a, o]), G = v(() => W.map((e) => e.kind === "comment" ? {
1094
+ U.formatRelativeTime,
1095
+ U.locale,
1096
+ z
1097
+ ]), G = g({
1098
+ onSubmit: N?.onSubmit,
1099
+ onAfterMutate: N?.onAfterMutate,
1100
+ onError: N?.onError
1101
+ }), K = x(() => Ie(a, o), [a, o]), q = x(() => K.map((e) => e.kind === "comment" ? {
1189
1102
  id: e.id,
1190
1103
  event: "comment",
1191
1104
  source: "comment",
1192
1105
  createdAt: e.timestamp,
1193
1106
  data: e
1194
- } : Le(e, l)), [l, W]), re = v(() => ({
1195
- row: (e) => $(j?.eventRow, e.data),
1196
- marker: (e) => $(j?.eventMarker, e.data),
1197
- content: (e) => $(j?.eventContent, e.data),
1198
- details: (e) => $(j?.eventDetails, e.data)
1199
- }), [j]), K = M?.enabled ? /* @__PURE__ */ S("div", {
1107
+ } : Ve(e, l)), [l, K]), te = x(() => ({
1108
+ row: (e) => Be(M?.eventRow, e.data),
1109
+ marker: (e) => Be(M?.eventMarker, e.data),
1110
+ content: (e) => Be(M?.eventContent, e.data),
1111
+ details: (e) => Be(M?.eventDetails, e.data)
1112
+ }), [M]), ne = N?.enabled ? /* @__PURE__ */ T("div", {
1200
1113
  className: "activity-log--composer",
1201
- children: /* @__PURE__ */ S(d, {
1202
- context: M.context,
1114
+ children: /* @__PURE__ */ T(m, {
1115
+ context: N.context,
1203
1116
  canComment: !0,
1204
- submitting: U.isSubmitting,
1205
- errors: U.formErrors,
1206
- resetKey: U.resetKey,
1207
- onSubmit: U.submit,
1117
+ submitting: G.isSubmitting,
1118
+ errors: G.formErrors,
1119
+ resetKey: G.resetKey,
1120
+ onSubmit: G.submit,
1208
1121
  resources: l,
1209
1122
  onResourceSearch: u,
1210
- strings: x,
1211
- placeholder: M.placeholder,
1212
- autoFocus: M.autoFocus,
1213
- inlineSubmit: M.inlineSubmit ?? !1
1123
+ strings: b,
1124
+ placeholder: N.placeholder,
1125
+ autoFocus: N.autoFocus,
1126
+ inlineSubmit: N.inlineSubmit ?? !1
1214
1127
  })
1215
- }) : null, q = M?.position ?? "top", Y = /* @__PURE__ */ S(Me, {
1216
- activities: G,
1128
+ }) : null, J = N?.position ?? "top", Y = /* @__PURE__ */ T(Fe, {
1129
+ activities: q,
1217
1130
  density: "rich",
1218
1131
  itemSpacing: c,
1219
1132
  groupByDate: !0,
1220
1133
  resources: {},
1221
- strings: w,
1134
+ strings: S,
1222
1135
  detailsCollapsible: D,
1223
1136
  defaultExpandedIds: O,
1224
- expandedIds: ee,
1225
- onExpandedIdsChange: te,
1226
- formatRelativeTime: H,
1227
- getSourceLabel: (e) => B.sources[e] ?? e,
1137
+ expandedIds: k,
1138
+ onExpandedIdsChange: A,
1139
+ formatRelativeTime: W,
1140
+ getSourceLabel: (e) => V.sources[e] ?? e,
1228
1141
  actionsForActivity: (e) => {
1229
1142
  let t = e.data;
1230
1143
  if (!t || t.kind === "comment") return [];
@@ -1240,68 +1153,68 @@ function Re(i) {
1240
1153
  onClick: () => e.onSelect?.(n)
1241
1154
  }));
1242
1155
  },
1243
- rowClassNames: re,
1156
+ rowClassNames: te,
1244
1157
  onAction: (e, t) => {
1245
1158
  let n = t.data;
1246
- n && n.kind !== "comment" && A?.(e, n);
1159
+ n && n.kind !== "comment" && ee?.(e, n);
1247
1160
  },
1248
1161
  onActivityExpandedChange: (e, t) => {
1249
1162
  let n = e.data;
1250
- n && n.kind !== "comment" && k?.(n, t);
1163
+ n && n.kind !== "comment" && j?.(n, t);
1251
1164
  },
1252
1165
  slots: {
1253
- header: q === "top" ? K : void 0,
1254
- footer: q === "bottom" ? K : void 0,
1166
+ header: J === "top" ? ne : void 0,
1167
+ footer: J === "bottom" ? ne : void 0,
1255
1168
  renderRow: (e, t) => {
1256
1169
  let r = e.data;
1257
1170
  if (!r) return;
1258
- let i = T?.[r.kind];
1171
+ let i = C?.[r.kind];
1259
1172
  if (i) return i(r, {
1260
1173
  resources: l,
1261
1174
  accessors: {
1262
- getMediaUrl: F,
1263
- getMediaName: I,
1264
- getStatusLabel: L,
1265
- formatRelativeTime: H
1175
+ getMediaUrl: I,
1176
+ getMediaName: L,
1177
+ getStatusLabel: R,
1178
+ formatRelativeTime: W
1266
1179
  },
1267
- strings: x
1180
+ strings: b
1268
1181
  });
1269
1182
  if (r.kind !== "comment") return;
1270
1183
  let a = r;
1271
- return /* @__PURE__ */ C(s, {
1184
+ return /* @__PURE__ */ E(s, {
1272
1185
  direction: "horizontal",
1273
1186
  gap: "md",
1274
1187
  align: "stretch",
1275
1188
  wrap: !1,
1276
1189
  className: n("activity-log--comment-row relative py-space-xs", !t.isLast && (t.itemSpacing === "compact" ? "pb-space-sm" : t.itemSpacing === "relaxed" ? "pb-space-xl" : "pb-space-md")),
1277
1190
  "data-event-id": a.id,
1278
- children: [/* @__PURE__ */ S(Te, {
1279
- icon: ne,
1191
+ children: [/* @__PURE__ */ T(ke, {
1192
+ icon: H,
1280
1193
  tone: "neutral",
1281
1194
  density: t.density,
1282
1195
  last: t.isLast
1283
- }), /* @__PURE__ */ S("div", {
1196
+ }), /* @__PURE__ */ T("div", {
1284
1197
  className: "activity-log--comment min-w-0 flex-1",
1285
- children: /* @__PURE__ */ S(f, {
1198
+ children: /* @__PURE__ */ T(h, {
1286
1199
  comment: a.comment,
1287
- canModerate: m,
1288
- onDelete: h,
1289
- onPinToggle: b,
1290
- onReact: _,
1291
- onReply: y,
1292
- strings: x,
1200
+ canModerate: d,
1201
+ onDelete: f,
1202
+ onPinToggle: v,
1203
+ onReact: p,
1204
+ onReply: _,
1205
+ strings: b,
1293
1206
  resources: l,
1294
- getMediaUrl: F,
1295
- getMediaName: I,
1296
- getStatusLabel: L,
1297
- formatRelativeTime: H
1207
+ getMediaUrl: I,
1208
+ getMediaName: L,
1209
+ getStatusLabel: R,
1210
+ formatRelativeTime: W
1298
1211
  })
1299
1212
  })]
1300
1213
  });
1301
1214
  },
1302
1215
  renderDetails: (e, t) => {
1303
1216
  let n = e.data;
1304
- return !n || n.kind === "comment" ? null : E?.(n, {
1217
+ return !n || n.kind === "comment" ? null : w?.(n, {
1305
1218
  expanded: t.expanded,
1306
1219
  setExpanded: t.setExpanded,
1307
1220
  relativeTime: t.relativeTime,
@@ -1310,35 +1223,35 @@ function Re(i) {
1310
1223
  });
1311
1224
  }
1312
1225
  },
1313
- className: n("activity-log--component", j?.list, N && z)
1226
+ className: n("activity-log--component", M?.list, P && B)
1314
1227
  });
1315
- if (N) return Y;
1316
- let Z = P ?? B.title, ae = typeof Z == "string" ? Z : void 0;
1317
- return /* @__PURE__ */ C(s, {
1318
- render: /* @__PURE__ */ S("section", {}),
1228
+ if (P) return Y;
1229
+ let X = F ?? V.title, Z = typeof X == "string" ? X : void 0;
1230
+ return /* @__PURE__ */ E(s, {
1231
+ render: /* @__PURE__ */ T("section", {}),
1319
1232
  gap: "lg",
1320
1233
  "data-component": "activity-log",
1321
1234
  "data-slot": "activity-log",
1322
- className: n("activity-log--component", z),
1323
- "aria-label": ae,
1324
- children: [!!Z && /* @__PURE__ */ S(r, {
1235
+ className: n("activity-log--component", B),
1236
+ "aria-label": Z,
1237
+ children: [!!X && /* @__PURE__ */ T(i, {
1325
1238
  weight: "semibold",
1326
- children: Z
1239
+ children: X
1327
1240
  }), Y]
1328
1241
  });
1329
1242
  }
1330
- Re.displayName = "ActivityLog";
1243
+ He.displayName = "ActivityLog";
1331
1244
  //#endregion
1332
1245
  //#region src/components/features/activities/activity-event-adapter.ts
1333
- function ze(e) {
1246
+ function Ue(e) {
1334
1247
  if (typeof e == "object" && e && "kind" in e) {
1335
1248
  let t = e.kind;
1336
1249
  if (typeof t == "string") return t;
1337
1250
  }
1338
1251
  return "event";
1339
1252
  }
1340
- function Be(e, t) {
1341
- let n = t.kind?.(e) ?? ze(e), r = t.id(e), i = t.timestamp(e), a = t.comment?.(e);
1253
+ function We(e, t) {
1254
+ let n = t.kind?.(e) ?? Ue(e), r = t.id(e), i = t.timestamp(e), a = t.comment?.(e);
1342
1255
  return n === "comment" && a ? {
1343
1256
  id: r,
1344
1257
  kind: "comment",
@@ -1365,10 +1278,10 @@ function Be(e, t) {
1365
1278
  data: t.data?.(e) ?? e
1366
1279
  };
1367
1280
  }
1368
- function Ve(e) {
1369
- return (t) => Be(t, e);
1281
+ function Ge(e) {
1282
+ return (t) => We(t, e);
1370
1283
  }
1371
1284
  //#endregion
1372
- export { pe as ActivityActionsMenu, he as ActivityChanges, ge as ActivityDateLabel, _e as ActivityEmptyState, Me as ActivityFeed, we as ActivityHeadline, Re as ActivityLog, Te as ActivityMarker, be as ActivityResourceTag, Oe as ActivityRow, Ve as createActivityEventAdapter, se as defaultActivitiesStrings, oe as defaultActivityEventConfig, ae as defaultEventConfig, ce as interpolateActivityString, Q as resolveEventConfig, Be as toActivityLogEntry, ue as useActivityFeed, de as useActivityResources };
1285
+ export { ge as ActivityActionsMenu, ve as ActivityChanges, ye as ActivityDateLabel, be as ActivityEmptyState, Fe as ActivityFeed, Oe as ActivityHeadline, He as ActivityLog, ke as ActivityMarker, we as ActivityResourceTag, je as ActivityRow, Ge as createActivityEventAdapter, ue as defaultActivitiesStrings, Q as defaultActivityEventConfig, ce as defaultEventConfig, de as interpolateActivityString, le as resolveEventConfig, We as toActivityLogEntry, pe as useActivityFeed, me as useActivityResources };
1373
1286
 
1374
1287
  //# sourceMappingURL=activities.js.map