themelia-react-ui 2.0.1 → 2.0.3

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 (490) hide show
  1. package/CHANGELOG.md +317 -131
  2. package/README.md +25 -9
  3. package/THIRD_PARTY_NOTICES.md +7 -0
  4. package/dist/{accordion-B6a3vVgA.js → accordion-Cjb6sx0G.js} +14 -13
  5. package/dist/accordion-Cjb6sx0G.js.map +1 -0
  6. package/dist/action-menu-CllU52Mm.js +280 -0
  7. package/dist/action-menu-CllU52Mm.js.map +1 -0
  8. package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
  9. package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
  10. package/dist/ai-artifact-DvTwDVyL.js +1148 -0
  11. package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
  12. package/dist/{app-shell-ZK5RWdo6.js → app-shell-C4FhvCqF.js} +5 -5
  13. package/dist/{app-shell-ZK5RWdo6.js.map → app-shell-C4FhvCqF.js.map} +1 -1
  14. package/dist/attachment-BxDfL2mw.js +246 -0
  15. package/dist/attachment-BxDfL2mw.js.map +1 -0
  16. package/dist/{auth-CYxKfo69.js → auth-BGua8ouh.js} +58 -54
  17. package/dist/auth-BGua8ouh.js.map +1 -0
  18. package/dist/{avatar-BBnEJIx8.js → avatar-DAPlDvhJ.js} +7 -7
  19. package/dist/avatar-DAPlDvhJ.js.map +1 -0
  20. package/dist/{badge-MrKVNzW9.js → badge-HpFqoqSY.js} +40 -40
  21. package/dist/badge-HpFqoqSY.js.map +1 -0
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +40 -36
  31. package/dist/base/carousel.js.map +1 -1
  32. package/dist/base/cascader.js +92 -92
  33. package/dist/base/cascader.js.map +1 -1
  34. package/dist/base/chart.js +1 -1
  35. package/dist/base/choice-inputs.js +2 -2
  36. package/dist/base/code-block.js +1 -1
  37. package/dist/base/combobox.js +2 -2
  38. package/dist/base/command.js +1 -1
  39. package/dist/base/copyable.js +1 -1
  40. package/dist/base/date-pickers.js +2 -2
  41. package/dist/base/display.js +6 -6
  42. package/dist/base/feedback.js +3 -3
  43. package/dist/base/forms-numeric.js +1 -1
  44. package/dist/base/forms.js +2 -2
  45. package/dist/base/inline-edit.js +14 -14
  46. package/dist/base/inline-edit.js.map +1 -1
  47. package/dist/base/item.js +1 -1
  48. package/dist/base/media-gallery.js +1 -1
  49. package/dist/base/metadata-list.js +1 -1
  50. package/dist/base/navigation.js +6 -6
  51. package/dist/base/popover-menu.js +1 -1
  52. package/dist/base/popover.js +1 -1
  53. package/dist/base/qr-code.js +1 -1
  54. package/dist/base/repeaters.js +171 -176
  55. package/dist/base/repeaters.js.map +1 -1
  56. package/dist/base/sheet.js +1 -1
  57. package/dist/base/sidebar.js +1 -1
  58. package/dist/base/signature-pad.js +6 -6
  59. package/dist/base/skeleton.js +1 -1
  60. package/dist/base/spinner.js +79 -2
  61. package/dist/base/spinner.js.map +1 -0
  62. package/dist/base/structure.js +1 -1
  63. package/dist/base/table.js +1 -1
  64. package/dist/base/text-inputs.js +2 -2
  65. package/dist/base/toaster.js +46 -45
  66. package/dist/base/toaster.js.map +1 -1
  67. package/dist/base/tree.js +1 -1
  68. package/dist/base/upload-queue.js +1 -1
  69. package/dist/base/upload.js +3 -3
  70. package/dist/base/value-inputs.js +1 -1
  71. package/dist/{batch-action-bar-BZGDG-Si.js → batch-action-bar-DnUJ21NQ.js} +6 -5
  72. package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
  73. package/dist/blocks/admin.js +42 -42
  74. package/dist/blocks/admin.js.map +1 -1
  75. package/dist/blocks/ai.js +260 -240
  76. package/dist/blocks/ai.js.map +1 -1
  77. package/dist/blocks/analytics/usage-card.js +1 -1
  78. package/dist/blocks/analytics.js +620 -585
  79. package/dist/blocks/analytics.js.map +1 -1
  80. package/dist/blocks/collaboration.js +1 -1
  81. package/dist/blocks/commerce/receipt.js +1 -1
  82. package/dist/blocks/commerce.js +1152 -1109
  83. package/dist/blocks/commerce.js.map +1 -1
  84. package/dist/blocks/data-display.js +2 -2
  85. package/dist/blocks/onboarding.js +48 -39
  86. package/dist/blocks/onboarding.js.map +1 -1
  87. package/dist/blocks/planning.js +13 -12
  88. package/dist/blocks/planning.js.map +1 -1
  89. package/dist/blocks/timelines.js +1 -1
  90. package/dist/{breadcrumbs-D5t7I023.js → breadcrumbs-C-oqs1sQ.js} +5 -5
  91. package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
  92. package/dist/{button-QYwiyhD2.js → button-DVzspB_G.js} +2 -2
  93. package/dist/{button-QYwiyhD2.js.map → button-DVzspB_G.js.map} +1 -1
  94. package/dist/{buttons-SbIcm1HJ.js → buttons-DPZekJFu.js} +20 -15
  95. package/dist/buttons-DPZekJFu.js.map +1 -0
  96. package/dist/cards-BaBZR-AU.js +68 -0
  97. package/dist/cards-BaBZR-AU.js.map +1 -0
  98. package/dist/{chart-QfrARkXl.js → chart-ZOYyK2xG.js} +58 -55
  99. package/dist/chart-ZOYyK2xG.js.map +1 -0
  100. package/dist/{checkbox-DhB6K0bK.js → checkbox-AWIhNhmo.js} +2 -2
  101. package/dist/{checkbox-DhB6K0bK.js.map → checkbox-AWIhNhmo.js.map} +1 -1
  102. package/dist/{choice-inputs-t6w3ATNz.js → choice-inputs-CNHvARCJ.js} +49 -45
  103. package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
  104. package/dist/{code-block-Dgbu-CU3.js → code-block-DeneBJR_.js} +8 -8
  105. package/dist/code-block-DeneBJR_.js.map +1 -0
  106. package/dist/{collapsible-D8AEGU1-.js → collapsible-C-_l4hpy.js} +3 -3
  107. package/dist/{collapsible-D8AEGU1-.js.map → collapsible-C-_l4hpy.js.map} +1 -1
  108. package/dist/{collection-content-uK16Grv0.js → collection-content-By56pLog.js} +3 -3
  109. package/dist/{collection-content-uK16Grv0.js.map → collection-content-By56pLog.js.map} +1 -1
  110. package/dist/combobox-DaHESuiL.js +355 -0
  111. package/dist/combobox-DaHESuiL.js.map +1 -0
  112. package/dist/{combobox-DLl0bfiq.js → combobox-Dxo2fAYQ.js} +289 -279
  113. package/dist/combobox-Dxo2fAYQ.js.map +1 -0
  114. package/dist/{command-kNR20o7x.js → command-C25VMRII.js} +7 -7
  115. package/dist/{command-kNR20o7x.js.map → command-C25VMRII.js.map} +1 -1
  116. package/dist/{comments-BpDuCUUu.js → comments-DD0DUPwJ.js} +114 -105
  117. package/dist/comments-DD0DUPwJ.js.map +1 -0
  118. package/dist/components/base/badge/badge.recipes.d.ts +1 -1
  119. package/dist/components/base/buttons/loader-button.d.ts +2 -1
  120. package/dist/components/base/cards/card.recipes.d.ts +2 -3
  121. package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
  122. package/dist/components/base/cards/smart-card.types.d.ts +11 -4
  123. package/dist/components/base/chart/chart.d.ts +2 -5
  124. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  125. package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
  126. package/dist/components/base/combobox/index.d.ts +30 -4
  127. package/dist/components/base/forms/form-sizing.d.ts +11 -3
  128. package/dist/components/base/navigation/pagination.d.ts +5 -2
  129. package/dist/components/base/popover/popover.recipes.d.ts +15 -1
  130. package/dist/components/base/table/index.d.ts +9 -2
  131. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  132. package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
  133. package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
  134. package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +3 -1
  135. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
  136. package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
  137. package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
  138. package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
  139. package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
  140. package/dist/components/features/appointment-calendar/index.d.ts +3 -0
  141. package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
  142. package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
  143. package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
  144. package/dist/components/features/combobox/types.d.ts +4 -0
  145. package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
  146. package/dist/components/features/rich-text-editor/index.d.ts +1 -1
  147. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +6 -0
  148. package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +9 -1
  149. package/dist/components/features/table/table-header.d.ts +1 -1
  150. package/dist/components/features/table/table.strings.d.ts +55 -1
  151. package/dist/components/features/table/table.types.d.ts +17 -4
  152. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
  153. package/dist/components/primitives/number.d.ts +4 -2
  154. package/dist/components/primitives/value.d.ts +3 -1
  155. package/dist/components/typography/text-link.d.ts +4 -0
  156. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  157. package/dist/components/ui/combobox.d.ts +16 -7
  158. package/dist/components/ui/dialog.d.ts +1 -1
  159. package/dist/components/ui/item.d.ts +8 -8
  160. package/dist/components/ui/popover.d.ts +1 -1
  161. package/dist/components/ui/sheet.d.ts +1 -1
  162. package/dist/components/ui/tabs.d.ts +1 -1
  163. package/dist/{containers-DmWiJa2I.js → containers-Mu1LMGV1.js} +2 -2
  164. package/dist/{containers-DmWiJa2I.js.map → containers-Mu1LMGV1.js.map} +1 -1
  165. package/dist/{copyable-B3Gwgdqc.js → copyable-ClBuk_UK.js} +4 -4
  166. package/dist/{copyable-B3Gwgdqc.js.map → copyable-ClBuk_UK.js.map} +1 -1
  167. package/dist/{data-display-DafIvCl5.js → data-display-DT_khPl_.js} +98 -87
  168. package/dist/data-display-DT_khPl_.js.map +1 -0
  169. package/dist/{date-BgK3bTdo.js → date-DCrsDTZc.js} +5 -5
  170. package/dist/{date-BgK3bTdo.js.map → date-DCrsDTZc.js.map} +1 -1
  171. package/dist/{date-picker-CF-DtUpF.js → date-picker-B2K3ucWn.js} +594 -593
  172. package/dist/date-picker-B2K3ucWn.js.map +1 -0
  173. package/dist/date-pickers-Ds8gLaoP.js +175 -0
  174. package/dist/date-pickers-Ds8gLaoP.js.map +1 -0
  175. package/dist/{display-DsQTVzMz.js → display-hAc1HjpI.js} +49 -49
  176. package/dist/display-hAc1HjpI.js.map +1 -0
  177. package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
  178. package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
  179. package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
  180. package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
  181. package/dist/features/activities.js +398 -375
  182. package/dist/features/activities.js.map +1 -1
  183. package/dist/features/ai-chat.js +188 -179
  184. package/dist/features/ai-chat.js.map +1 -1
  185. package/dist/features/appointment-calendar.js +683 -0
  186. package/dist/features/appointment-calendar.js.map +1 -0
  187. package/dist/features/async-preview.js +109 -107
  188. package/dist/features/async-preview.js.map +1 -1
  189. package/dist/features/combobox.js +1 -1
  190. package/dist/features/comments.js +1 -1
  191. package/dist/features/data-view.js +137 -137
  192. package/dist/features/data-view.js.map +1 -1
  193. package/dist/features/email-composer.js +255 -255
  194. package/dist/features/email-composer.js.map +1 -1
  195. package/dist/features/event-calendar.js +254 -248
  196. package/dist/features/event-calendar.js.map +1 -1
  197. package/dist/features/filters.js +1 -1
  198. package/dist/features/global-search.js +35 -32
  199. package/dist/features/global-search.js.map +1 -1
  200. package/dist/features/kanban.js +118 -117
  201. package/dist/features/kanban.js.map +1 -1
  202. package/dist/features/map.js +233 -231
  203. package/dist/features/map.js.map +1 -1
  204. package/dist/features/media-library.js +789 -775
  205. package/dist/features/media-library.js.map +1 -1
  206. package/dist/features/mentions.js +1 -1
  207. package/dist/features/overlays.js +1 -1
  208. package/dist/features/products.js +922 -902
  209. package/dist/features/products.js.map +1 -1
  210. package/dist/features/questionnaire.js +28 -24
  211. package/dist/features/questionnaire.js.map +1 -1
  212. package/dist/features/resource-assignment.js +18 -15
  213. package/dist/features/resource-assignment.js.map +1 -1
  214. package/dist/features/resource.js +12 -12
  215. package/dist/features/resource.js.map +1 -1
  216. package/dist/features/rich-text-editor.js +2 -2
  217. package/dist/features/schema-form.js +15 -13
  218. package/dist/features/schema-form.js.map +1 -1
  219. package/dist/features/suggestions.js +3 -3
  220. package/dist/features/sync.js +11 -5
  221. package/dist/features/sync.js.map +1 -1
  222. package/dist/features/table.js +1 -1
  223. package/dist/features/theme-tweaker.js +493 -489
  224. package/dist/features/theme-tweaker.js.map +1 -1
  225. package/dist/feedback-BYIhtitP.js +239 -0
  226. package/dist/feedback-BYIhtitP.js.map +1 -0
  227. package/dist/{field-affordance-recipes-qQeIf4lG.js → field-affordance-recipes-DZhnIL_Y.js} +11 -18
  228. package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
  229. package/dist/{filters-BkHH53uv.js → filters-DJVAveHA.js} +589 -580
  230. package/dist/filters-DJVAveHA.js.map +1 -0
  231. package/dist/{form-field-DUt4UxSV.js → form-field-CwH9y77i.js} +6 -5
  232. package/dist/form-field-CwH9y77i.js.map +1 -0
  233. package/dist/{form-sizing-By94KzXE.js → form-sizing-BdP_Mf5p.js} +39 -44
  234. package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
  235. package/dist/{forms-Bzha-Y3B.js → forms-B9G_xwzi.js} +8 -8
  236. package/dist/{forms-Bzha-Y3B.js.map → forms-B9G_xwzi.js.map} +1 -1
  237. package/dist/{forms-numeric-C0bvjRPZ.js → forms-numeric-B_jraJaQ.js} +309 -309
  238. package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
  239. package/dist/{header-BOefOKd1.js → header-BSfIEWbI.js} +160 -153
  240. package/dist/header-BSfIEWbI.js.map +1 -0
  241. package/dist/{hooks-9k_TtmKh.js → hooks-ClH9thn4.js} +2 -2
  242. package/dist/{hooks-9k_TtmKh.js.map → hooks-ClH9thn4.js.map} +1 -1
  243. package/dist/{icon-badge-CAuKupo9.js → icon-badge-DYKIwvOV.js} +4 -4
  244. package/dist/{icon-badge-CAuKupo9.js.map → icon-badge-DYKIwvOV.js.map} +1 -1
  245. package/dist/index.js +3 -3
  246. package/dist/input-CZw8iU99.js +21 -0
  247. package/dist/input-CZw8iU99.js.map +1 -0
  248. package/dist/input-DQdEd0YD.js +263 -0
  249. package/dist/input-DQdEd0YD.js.map +1 -0
  250. package/dist/{interaction-recipes-CHr0dJUs.js → interaction-recipes-XR9ZpVYL.js} +2 -1
  251. package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
  252. package/dist/item-K5_ghvze.js +275 -0
  253. package/dist/item-K5_ghvze.js.map +1 -0
  254. package/dist/layout/app-shell.js +1 -1
  255. package/dist/layout/auth.js +1 -1
  256. package/dist/layout/containers.js +1 -1
  257. package/dist/layout/header.js +1 -1
  258. package/dist/layout/hooks.js +1 -1
  259. package/dist/layout/navigation.js +1 -1
  260. package/dist/layout/page.js +1 -1
  261. package/dist/layout/settings.js +1 -1
  262. package/dist/layout/sidebar.js +2 -2
  263. package/dist/layout/workspace.js +1 -1
  264. package/dist/layout.js +10 -10
  265. package/dist/lib/affordance-geometry.generated.d.ts +71 -0
  266. package/dist/lib/editable-text-recipe.d.ts +4 -4
  267. package/dist/lib/field-affordance-recipes.d.ts +2 -2
  268. package/dist/lib/interaction-recipes.d.ts +5 -0
  269. package/dist/lib/theme-mode-css.d.ts +7 -0
  270. package/dist/lib/tone-recipes.d.ts +8 -0
  271. package/dist/lib/ui-provider/types.d.ts +2 -2
  272. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  273. package/dist/lib/utils.js +1 -1
  274. package/dist/{media-gallery-DcTtAaeC.js → media-gallery-3zIVLMWH.js} +8 -8
  275. package/dist/media-gallery-3zIVLMWH.js.map +1 -0
  276. package/dist/{mentions-D-uyCh01.js → mentions-CGlEJ15c.js} +144 -142
  277. package/dist/mentions-CGlEJ15c.js.map +1 -0
  278. package/dist/{message-CdHgIWKf.js → message-DZ_ruyUV.js} +6 -5
  279. package/dist/message-DZ_ruyUV.js.map +1 -0
  280. package/dist/{metadata-list-X5rYAKSB.js → metadata-list-8N16ZMW_.js} +130 -119
  281. package/dist/metadata-list-8N16ZMW_.js.map +1 -0
  282. package/dist/{navigation-D3KwXmaq.js → navigation-Bnotn4AQ.js} +19 -19
  283. package/dist/navigation-Bnotn4AQ.js.map +1 -0
  284. package/dist/{navigation-HJf5zxlH.js → navigation-BzhHI3lo.js} +36 -35
  285. package/dist/navigation-BzhHI3lo.js.map +1 -0
  286. package/dist/{navigation-row-recipes-BVowojQw.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
  287. package/dist/{navigation-row-recipes-BVowojQw.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
  288. package/dist/{number-DMhe-Vsk.js → number-DbV1Dija.js} +36 -34
  289. package/dist/{number-DMhe-Vsk.js.map → number-DbV1Dija.js.map} +1 -1
  290. package/dist/{overflow-tab-bar-sQHXLlwQ.js → overflow-tab-bar-CWY7Nogn.js} +105 -103
  291. package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
  292. package/dist/{overlays-I0axtYA6.js → overlays-tMkF-VAN.js} +282 -278
  293. package/dist/overlays-tMkF-VAN.js.map +1 -0
  294. package/dist/{page-B5dTH9gE.js → page-CL9YeH_V.js} +8 -8
  295. package/dist/{page-B5dTH9gE.js.map → page-CL9YeH_V.js.map} +1 -1
  296. package/dist/{page-header-commands-DjzFEq3E.js → page-header-commands-DOb6WsfD.js} +5 -5
  297. package/dist/{page-header-commands-DjzFEq3E.js.map → page-header-commands-DOb6WsfD.js.map} +1 -1
  298. package/dist/pagination-BL25hu2s.js +158 -0
  299. package/dist/pagination-BL25hu2s.js.map +1 -0
  300. package/dist/{popover-Di55PyAI.js → popover-gnTOhbFM.js} +69 -66
  301. package/dist/popover-gnTOhbFM.js.map +1 -0
  302. package/dist/popover-menu-Cn9rUkdc.js +100 -0
  303. package/dist/popover-menu-Cn9rUkdc.js.map +1 -0
  304. package/dist/{popover.recipes-Bdyhj2db.js → popover.recipes-D3j8R8Yp.js} +17 -10
  305. package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
  306. package/dist/{primitives-B-CkiEMU.js → primitives-BFK08r9M.js} +45 -44
  307. package/dist/primitives-BFK08r9M.js.map +1 -0
  308. package/dist/primitives.js +4 -4
  309. package/dist/{progress-rnS8-uAW.js → progress-B1VnCT0K.js} +5 -5
  310. package/dist/{progress-rnS8-uAW.js.map → progress-B1VnCT0K.js.map} +1 -1
  311. package/dist/{receipt-D0oswZ0p.js → receipt-BVSOH3Xo.js} +9 -6
  312. package/dist/{receipt-D0oswZ0p.js.map → receipt-BVSOH3Xo.js.map} +1 -1
  313. package/dist/{rich-text-DvGulsNJ.js → rich-text-GOUyKQ-s.js} +3 -3
  314. package/dist/{rich-text-DvGulsNJ.js.map → rich-text-GOUyKQ-s.js.map} +1 -1
  315. package/dist/{rich-text-editor-sMU_Scqm.js → rich-text-editor-cRLC-eBK.js} +418 -426
  316. package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
  317. package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
  318. package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
  319. package/dist/{scroll-area-Bt_vXY2b.js → scroll-area-DcI-M1UT.js} +2 -2
  320. package/dist/{scroll-area-Bt_vXY2b.js.map → scroll-area-DcI-M1UT.js.map} +1 -1
  321. package/dist/{separator-C8DlRGwF.js → separator-BDV-Y648.js} +3 -3
  322. package/dist/{separator-C8DlRGwF.js.map → separator-BDV-Y648.js.map} +1 -1
  323. package/dist/{separator-CYHnjsAb.js → separator-Bom7NsGO.js} +2 -2
  324. package/dist/{separator-CYHnjsAb.js.map → separator-Bom7NsGO.js.map} +1 -1
  325. package/dist/services/actions.js +1 -1
  326. package/dist/{settings-CQW3b-Cu.js → settings-ybnjVwbd.js} +20 -19
  327. package/dist/settings-ybnjVwbd.js.map +1 -0
  328. package/dist/{sheet-4SEvVYzA.js → sheet-ijlsjq-n.js} +76 -73
  329. package/dist/sheet-ijlsjq-n.js.map +1 -0
  330. package/dist/{sidebar-C7WWR29L.js → sidebar-Db6gkh3U.js} +183 -182
  331. package/dist/sidebar-Db6gkh3U.js.map +1 -0
  332. package/dist/{sidebar-d7Dg80ln.js → sidebar-DkTO4VTO.js} +14 -13
  333. package/dist/{sidebar-d7Dg80ln.js.map → sidebar-DkTO4VTO.js.map} +1 -1
  334. package/dist/{skeleton-Cz890JZF.js → skeleton-Byjnt7qr.js} +3 -3
  335. package/dist/{skeleton-Cz890JZF.js.map → skeleton-Byjnt7qr.js.map} +1 -1
  336. package/dist/smart-card-DiC5aac3.js +604 -0
  337. package/dist/smart-card-DiC5aac3.js.map +1 -0
  338. package/dist/{structure-DC2dygdA.js → structure-BmisBK-3.js} +2 -2
  339. package/dist/{structure-DC2dygdA.js.map → structure-BmisBK-3.js.map} +1 -1
  340. package/dist/style.css +1 -1
  341. package/dist/table-BweFy_P9.js +1530 -0
  342. package/dist/table-BweFy_P9.js.map +1 -0
  343. package/dist/{table-CIKyLUsy.js → table-DsfzoUia.js} +75 -63
  344. package/dist/table-DsfzoUia.js.map +1 -0
  345. package/dist/{tabs-DwBJfjxX.js → tabs-CDocW5D1.js} +14 -13
  346. package/dist/tabs-CDocW5D1.js.map +1 -0
  347. package/dist/text-inputs-f9Ia-aCi.js +353 -0
  348. package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
  349. package/dist/theme-mode-css-BB-_RYab.js +14 -0
  350. package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
  351. package/dist/theme-scope-BJ6eE2xt.js +50 -0
  352. package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
  353. package/dist/theme.css +285 -228
  354. package/dist/themes/green.css +16 -12
  355. package/dist/timelines-CwM_9IhD.js +457 -0
  356. package/dist/timelines-CwM_9IhD.js.map +1 -0
  357. package/dist/{tone-recipes-CPoExcTE.js → tone-recipes-BPsRAvhu.js} +5 -2
  358. package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
  359. package/dist/{tooltip-CsfgrfS7.js → tooltip-yiRJUFjp.js} +4 -4
  360. package/dist/{tooltip-CsfgrfS7.js.map → tooltip-yiRJUFjp.js.map} +1 -1
  361. package/dist/{tree-BiKhg8AY.js → tree-WnKQzwbq.js} +9 -9
  362. package/dist/{tree-BiKhg8AY.js.map → tree-WnKQzwbq.js.map} +1 -1
  363. package/dist/typography/rich-text.js +1 -1
  364. package/dist/{typography-DTRkE9zL.js → typography-UTnveOEy.js} +6 -6
  365. package/dist/typography-UTnveOEy.js.map +1 -0
  366. package/dist/typography.js +2 -2
  367. package/dist/{ui-provider-1D_NSYzO.js → ui-provider-C_U0Xma4.js} +3 -3
  368. package/dist/ui-provider-C_U0Xma4.js.map +1 -0
  369. package/dist/ui-provider.js +2 -2
  370. package/dist/{upload-BO8-CLN6.js → upload-CXyxmQBP.js} +13 -12
  371. package/dist/upload-CXyxmQBP.js.map +1 -0
  372. package/dist/{upload-queue-EOC8g1gf.js → upload-queue-Boscubn9.js} +11 -9
  373. package/dist/upload-queue-Boscubn9.js.map +1 -0
  374. package/dist/{usage-card-obRaBskq.js → usage-card-BhO5eqkX.js} +53 -37
  375. package/dist/usage-card-BhO5eqkX.js.map +1 -0
  376. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  377. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  378. package/dist/{utils-l5LpDw2z.js → utils-BRhFDwuU.js} +59 -44
  379. package/dist/utils-BRhFDwuU.js.map +1 -0
  380. package/dist/{value-inputs-TAYMX111.js → value-inputs-TaX4OjNk.js} +268 -252
  381. package/dist/value-inputs-TaX4OjNk.js.map +1 -0
  382. package/dist/{value-typography-b8wpz1eX.js → value-typography-BP8OG6h5.js} +2 -2
  383. package/dist/{value-typography-b8wpz1eX.js.map → value-typography-BP8OG6h5.js.map} +1 -1
  384. package/dist/{workspace-DH0v0KcB.js → workspace-B-OEm3Kf.js} +34 -33
  385. package/dist/workspace-B-OEm3Kf.js.map +1 -0
  386. package/docs/consumer-skill/SKILL.md +3 -3
  387. package/docs/consumer-skill/references/agents-md.md +1 -1
  388. package/docs/consumer-skill/references/composition.md +8 -6
  389. package/docs/consumer-skill/references/installation.md +6 -0
  390. package/docs/consumer-skill/references/integration.md +4 -3
  391. package/docs/consumer-skill/references/public-api.json +105 -2
  392. package/docs/consumer-skill/references/review.md +7 -0
  393. package/docs/consumer-skill/references/theming.md +71 -6
  394. package/docs/consumer-skill/references/tokens.json +1 -1
  395. package/docs/consumer-skill/references/workflows.md +26 -0
  396. package/docs/consumer-skill/scripts/composition-policy.mjs +3 -2
  397. package/docs/consumer-skill/scripts/surface-policy.mjs +11 -0
  398. package/package.json +8 -4
  399. package/dist/accordion-B6a3vVgA.js.map +0 -1
  400. package/dist/action-menu-TzCoSlwL.js +0 -280
  401. package/dist/action-menu-TzCoSlwL.js.map +0 -1
  402. package/dist/affordance-geometry.generated-B5iu-Mkr.js +0 -69
  403. package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +0 -1
  404. package/dist/ai-artifact-BMJdv-6q.js +0 -1115
  405. package/dist/ai-artifact-BMJdv-6q.js.map +0 -1
  406. package/dist/attachment-BtfhGm8i.js +0 -245
  407. package/dist/attachment-BtfhGm8i.js.map +0 -1
  408. package/dist/auth-CYxKfo69.js.map +0 -1
  409. package/dist/avatar-BBnEJIx8.js.map +0 -1
  410. package/dist/badge-MrKVNzW9.js.map +0 -1
  411. package/dist/batch-action-bar-BZGDG-Si.js.map +0 -1
  412. package/dist/breadcrumbs-D5t7I023.js.map +0 -1
  413. package/dist/buttons-SbIcm1HJ.js.map +0 -1
  414. package/dist/cards-CiiHpKYd.js +0 -66
  415. package/dist/cards-CiiHpKYd.js.map +0 -1
  416. package/dist/chart-QfrARkXl.js.map +0 -1
  417. package/dist/choice-inputs-t6w3ATNz.js.map +0 -1
  418. package/dist/code-block-Dgbu-CU3.js.map +0 -1
  419. package/dist/combobox-2Ic8N9bL.js +0 -278
  420. package/dist/combobox-2Ic8N9bL.js.map +0 -1
  421. package/dist/combobox-DLl0bfiq.js.map +0 -1
  422. package/dist/comments-BpDuCUUu.js.map +0 -1
  423. package/dist/data-display-DafIvCl5.js.map +0 -1
  424. package/dist/date-picker-CF-DtUpF.js.map +0 -1
  425. package/dist/date-pickers-BmzxJl5l.js +0 -174
  426. package/dist/date-pickers-BmzxJl5l.js.map +0 -1
  427. package/dist/display-DsQTVzMz.js.map +0 -1
  428. package/dist/dropdown-menu-E2qmdC7o.js +0 -193
  429. package/dist/dropdown-menu-E2qmdC7o.js.map +0 -1
  430. package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
  431. package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
  432. package/dist/feedback-qNuMBtRH.js +0 -233
  433. package/dist/feedback-qNuMBtRH.js.map +0 -1
  434. package/dist/field-affordance-recipes-qQeIf4lG.js.map +0 -1
  435. package/dist/filters-BkHH53uv.js.map +0 -1
  436. package/dist/form-field-DUt4UxSV.js.map +0 -1
  437. package/dist/form-sizing-By94KzXE.js.map +0 -1
  438. package/dist/forms-numeric-C0bvjRPZ.js.map +0 -1
  439. package/dist/header-BOefOKd1.js.map +0 -1
  440. package/dist/input-DWhBBBww.js +0 -262
  441. package/dist/input-DWhBBBww.js.map +0 -1
  442. package/dist/input-Ddi_LSYv.js +0 -20
  443. package/dist/input-Ddi_LSYv.js.map +0 -1
  444. package/dist/interaction-recipes-CHr0dJUs.js.map +0 -1
  445. package/dist/item-DEmDiTlD.js +0 -265
  446. package/dist/item-DEmDiTlD.js.map +0 -1
  447. package/dist/media-gallery-DcTtAaeC.js.map +0 -1
  448. package/dist/mentions-D-uyCh01.js.map +0 -1
  449. package/dist/message-CdHgIWKf.js.map +0 -1
  450. package/dist/metadata-list-X5rYAKSB.js.map +0 -1
  451. package/dist/navigation-D3KwXmaq.js.map +0 -1
  452. package/dist/navigation-HJf5zxlH.js.map +0 -1
  453. package/dist/overflow-tab-bar-sQHXLlwQ.js.map +0 -1
  454. package/dist/overlays-I0axtYA6.js.map +0 -1
  455. package/dist/pagination-3bPA_a6K.js +0 -149
  456. package/dist/pagination-3bPA_a6K.js.map +0 -1
  457. package/dist/popover-Di55PyAI.js.map +0 -1
  458. package/dist/popover-menu-B71Tn2Qz.js +0 -99
  459. package/dist/popover-menu-B71Tn2Qz.js.map +0 -1
  460. package/dist/popover.recipes-Bdyhj2db.js.map +0 -1
  461. package/dist/primitives-B-CkiEMU.js.map +0 -1
  462. package/dist/rich-text-editor-sMU_Scqm.js.map +0 -1
  463. package/dist/rich-text-editor.recipes-CadiF_Uu.js +0 -88
  464. package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +0 -1
  465. package/dist/settings-CQW3b-Cu.js.map +0 -1
  466. package/dist/sheet-4SEvVYzA.js.map +0 -1
  467. package/dist/sidebar-C7WWR29L.js.map +0 -1
  468. package/dist/smart-card-lFKxn5Hu.js +0 -595
  469. package/dist/smart-card-lFKxn5Hu.js.map +0 -1
  470. package/dist/spinner-fa3h1Aif.js +0 -80
  471. package/dist/spinner-fa3h1Aif.js.map +0 -1
  472. package/dist/table-CIKyLUsy.js.map +0 -1
  473. package/dist/table-CrcLN9Io.js +0 -1458
  474. package/dist/table-CrcLN9Io.js.map +0 -1
  475. package/dist/tabs-DwBJfjxX.js.map +0 -1
  476. package/dist/text-inputs-aaK9wcDT.js +0 -326
  477. package/dist/text-inputs-aaK9wcDT.js.map +0 -1
  478. package/dist/theme-scope-kStaAer0.js +0 -39
  479. package/dist/theme-scope-kStaAer0.js.map +0 -1
  480. package/dist/timelines-C_SBwHNP.js +0 -442
  481. package/dist/timelines-C_SBwHNP.js.map +0 -1
  482. package/dist/tone-recipes-CPoExcTE.js.map +0 -1
  483. package/dist/typography-DTRkE9zL.js.map +0 -1
  484. package/dist/ui-provider-1D_NSYzO.js.map +0 -1
  485. package/dist/upload-BO8-CLN6.js.map +0 -1
  486. package/dist/upload-queue-EOC8g1gf.js.map +0 -1
  487. package/dist/usage-card-obRaBskq.js.map +0 -1
  488. package/dist/utils-l5LpDw2z.js.map +0 -1
  489. package/dist/value-inputs-TAYMX111.js.map +0 -1
  490. package/dist/workspace-DH0v0KcB.js.map +0 -1
@@ -1,138 +1,139 @@
1
1
  "use client";
2
- import { o as e } from "../ui-provider-1D_NSYzO.js";
2
+ import { o as e } from "../ui-provider-C_U0Xma4.js";
3
3
  import { useStrings as t } from "../lib/strings.js";
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";
4
+ import { t as n } from "../utils-BRhFDwuU.js";
5
+ import { n as r } from "../buttons-DPZekJFu.js";
6
+ import { c as i, i as a, t as o } from "../typography-UTnveOEy.js";
7
+ import { r as s, t as c } from "../structure-BmisBK-3.js";
8
+ import { i as l, n as u, t as d } from "../tone-recipes-BPsRAvhu.js";
9
+ import { n as f } from "../action-menu-CllU52Mm.js";
10
+ import { t as p } from "../interaction-recipes-XR9ZpVYL.js";
11
+ import { t as m } from "../icon-badge-DYKIwvOV.js";
12
+ import { t as h } from "../badge-HpFqoqSY.js";
13
+ import { s as g } from "../data-display-DT_khPl_.js";
14
+ import { o as _, r as v, u as y } from "../comments-DD0DUPwJ.js";
15
+ import { o as b } from "../mentions-CGlEJ15c.js";
16
+ import { Fragment as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
17
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
18
+ import { Activity as A, AlertTriangle as j, ArrowLeftRight as M, Ban as N, Check as P, ChevronDown as F, ChevronRight as ee, CircleDot as I, FileEdit as L, Flag as R, Heart as z, LinkIcon as B, Mail as V, MailCheck as H, MailOpen as U, MailX as W, MessageCircle as te, MessageSquare as G, Pencil as K, Plus as ne, ShieldCheck as re, ShoppingBag as q, Sparkles as J, Star as Y, Trash2 as X, UserMinus as ie, UserPlus as ae } from "lucide-react";
19
+ import { format as oe, formatDistanceToNow as se, isToday as ce, isValid as le, isYesterday as ue, parseISO as de } from "date-fns";
19
20
  //#region src/components/features/activities/activities.config.ts
20
- var ce = {
21
- icon: N,
21
+ var fe = {
22
+ icon: I,
22
23
  tone: "neutral"
23
- }, Q = {
24
+ }, pe = {
24
25
  created: {
25
- icon: G,
26
+ icon: ne,
26
27
  tone: "success",
27
28
  label: "Created"
28
29
  },
29
30
  updated: {
30
- icon: W,
31
+ icon: K,
31
32
  tone: "neutral",
32
33
  label: "Updated"
33
34
  },
34
35
  edited: {
35
- icon: P,
36
+ icon: L,
36
37
  tone: "neutral",
37
38
  label: "Edited"
38
39
  },
39
40
  deleted: {
40
- icon: J,
41
+ icon: X,
41
42
  tone: "destructive",
42
43
  label: "Deleted"
43
44
  },
44
45
  cancelled: {
45
- icon: A,
46
+ icon: N,
46
47
  tone: "destructive",
47
48
  label: "Cancelled"
48
49
  },
49
50
  restored: {
50
- icon: te,
51
+ icon: J,
51
52
  tone: "success",
52
53
  label: "Restored"
53
54
  },
54
55
  status_changed: {
55
- icon: k,
56
+ icon: M,
56
57
  tone: "neutral",
57
58
  label: "Status changed"
58
59
  },
59
60
  status_transition: {
60
- icon: k,
61
+ icon: M,
61
62
  tone: "neutral",
62
63
  label: "Status changed"
63
64
  },
64
65
  status_override: {
65
- icon: k,
66
+ icon: M,
66
67
  tone: "warning",
67
68
  label: "Status overridden"
68
69
  },
69
70
  assigned: {
70
- icon: X,
71
+ icon: ae,
71
72
  tone: "neutral",
72
73
  label: "Assigned"
73
74
  },
74
75
  unassigned: {
75
- icon: Y,
76
+ icon: ie,
76
77
  tone: "neutral",
77
78
  label: "Unassigned"
78
79
  },
79
80
  mail_sent: {
80
- icon: R,
81
+ icon: V,
81
82
  tone: "neutral",
82
83
  label: "Email sent"
83
84
  },
84
85
  mail_delivered: {
85
- icon: z,
86
+ icon: H,
86
87
  tone: "success",
87
88
  label: "Email delivered"
88
89
  },
89
90
  mail_opened: {
90
- icon: B,
91
+ icon: U,
91
92
  tone: "neutral",
92
93
  label: "Email opened"
93
94
  },
94
95
  mail_clicked: {
95
- icon: B,
96
+ icon: U,
96
97
  tone: "neutral",
97
98
  label: "Email clicked"
98
99
  },
99
100
  mail_bounced: {
100
- icon: V,
101
+ icon: W,
101
102
  tone: "destructive",
102
103
  label: "Email bounced"
103
104
  },
104
105
  mail_failed: {
105
- icon: V,
106
+ icon: W,
106
107
  tone: "destructive",
107
108
  label: "Email failed"
108
109
  },
109
110
  comment_created: {
110
- icon: U,
111
+ icon: G,
111
112
  tone: "neutral",
112
113
  label: "Comment posted"
113
114
  },
114
115
  comment_deleted: {
115
- icon: U,
116
+ icon: G,
116
117
  tone: "destructive",
117
118
  label: "Comment deleted"
118
119
  },
119
120
  paid: {
120
- icon: j,
121
+ icon: P,
121
122
  tone: "success",
122
123
  label: "Paid"
123
124
  },
124
125
  refunded: {
125
- icon: k,
126
+ icon: M,
126
127
  tone: "warning",
127
128
  label: "Refunded"
128
129
  },
129
130
  confirmed: {
130
- icon: K,
131
+ icon: re,
131
132
  tone: "success",
132
133
  label: "Confirmed"
133
134
  },
134
135
  favorited: {
135
- icon: I,
136
+ icon: z,
136
137
  tone: "neutral",
137
138
  label: "Favorited"
138
139
  },
@@ -142,37 +143,37 @@ var ce = {
142
143
  label: "Order placed"
143
144
  },
144
145
  published: {
145
- icon: ne,
146
+ icon: Y,
146
147
  tone: "success",
147
148
  label: "Published"
148
149
  },
149
150
  flagged: {
150
- icon: F,
151
+ icon: R,
151
152
  tone: "warning",
152
153
  label: "Flagged"
153
154
  },
154
155
  linked: {
155
- icon: L,
156
+ icon: B,
156
157
  tone: "neutral",
157
158
  label: "Linked"
158
159
  },
159
160
  failed: {
160
- icon: O,
161
+ icon: j,
161
162
  tone: "destructive",
162
163
  label: "Failed"
163
164
  },
164
165
  health_check_failed: {
165
- icon: O,
166
+ icon: j,
166
167
  tone: "destructive",
167
168
  label: "Health check failed"
168
169
  }
169
170
  };
170
- function le(e, t) {
171
- return t[e] ?? ce;
171
+ function me(e, t) {
172
+ return t[e] ?? fe;
172
173
  }
173
174
  //#endregion
174
175
  //#region src/components/features/activities/activities.strings.ts
175
- var ue = {
176
+ var he = {
176
177
  title: "Activity",
177
178
  empty: "No activity yet.",
178
179
  loading: "Loading activity…",
@@ -193,7 +194,7 @@ var ue = {
193
194
  },
194
195
  events: {}
195
196
  };
196
- function de(e, t) {
197
+ function ge(e, t) {
197
198
  return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
198
199
  let r = t[n];
199
200
  return r === void 0 ? e : String(r);
@@ -201,24 +202,24 @@ function de(e, t) {
201
202
  }
202
203
  //#endregion
203
204
  //#region src/components/features/activities/hooks/use-activity-feed.ts
204
- function fe(e, t, n) {
205
+ function _e(e, t, n) {
205
206
  if (!e) return t.undated;
206
207
  let r = new Date(e);
207
- if (!ae(r)) return t.undated;
208
- if (ie(r)) return t.today;
209
- if (oe(r)) return t.yesterday;
208
+ if (!le(r)) return t.undated;
209
+ if (ce(r)) return t.today;
210
+ if (ue(r)) return t.yesterday;
210
211
  try {
211
212
  return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(r);
212
213
  } catch {
213
214
  try {
214
- return Z(r, "PP", n ? { locale: n } : void 0);
215
+ return oe(r, "PP", n ? { locale: n } : void 0);
215
216
  } catch {
216
217
  return e;
217
218
  }
218
219
  }
219
220
  }
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(() => {
221
+ function ve({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, defaultExpandedIds: r, expandedIds: i, onExpandedIdsChange: a, locale: o, strings: s, formatDateGroupLabel: c }) {
222
+ let [l, u] = E({}), d = i !== void 0, f = w(() => {
222
223
  let t = /* @__PURE__ */ new Map();
223
224
  return e.map((e) => {
224
225
  let n = [
@@ -232,12 +233,12 @@ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
232
233
  key: `${n}:${r}`
233
234
  };
234
235
  });
235
- }, [e]), p = x(() => {
236
+ }, [e]), p = w(() => {
236
237
  if (!t) return f.length > 0 ? [{
237
238
  label: "",
238
239
  items: f
239
240
  }] : [];
240
- let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : fe(e, s, o);
241
+ let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : _e(e, s, o);
241
242
  for (let t of f) {
242
243
  let a = i(t.activity.createdAt ?? null);
243
244
  a === n ? r.push(t) : (r.length > 0 && e.push({
@@ -255,11 +256,11 @@ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
255
256
  o,
256
257
  s,
257
258
  c
258
- ]), m = x(() => {
259
+ ]), m = w(() => {
259
260
  let e = new Set(r ?? []);
260
261
  for (let t of f) t.activity.defaultExpanded === !0 && e.add(t.activity.id);
261
262
  return e;
262
- }, [f, r]), h = x(() => new Set(i ?? []), [i]), g = y((e, t) => {
263
+ }, [f, r]), h = w(() => new Set(i ?? []), [i]), g = S((e, t) => {
263
264
  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);
264
265
  t ? i.add(e) : i.delete(e);
265
266
  let o = Array.from(i);
@@ -275,15 +276,15 @@ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
275
276
  d,
276
277
  f,
277
278
  a
278
- ]), _ = y((e) => d ? h.has(e) : l[e] ?? (m.has(e) || n), [
279
+ ]), _ = S((e) => d ? h.has(e) : l[e] ?? (m.has(e) || n), [
279
280
  h,
280
281
  m,
281
282
  n,
282
283
  l,
283
284
  d
284
- ]), v = y((e) => {
285
+ ]), v = S((e) => {
285
286
  g(e, !_(e));
286
- }, [_, g]), b = y(() => {
287
+ }, [_, g]), y = S(() => {
287
288
  let e = {};
288
289
  for (let t of f) e[t.activity.id] = !0;
289
290
  d || u(e), a?.(f.map((e) => e.activity.id));
@@ -291,7 +292,7 @@ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
291
292
  d,
292
293
  f,
293
294
  a
294
- ]), S = y(() => {
295
+ ]), b = S(() => {
295
296
  let e = {};
296
297
  for (let t of f) e[t.activity.id] = !1;
297
298
  d || u(e), a?.([]);
@@ -306,24 +307,24 @@ function pe({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
306
307
  isExpanded: _,
307
308
  toggleExpanded: v,
308
309
  setExpanded: g,
309
- expandAll: b,
310
- collapseAll: S
310
+ expandAll: y,
311
+ collapseAll: b
311
312
  };
312
313
  }
313
314
  //#endregion
314
315
  //#region src/components/features/activities/hooks/use-activity-resources.ts
315
- function me({ resources: e, onResourcesChange: t } = {}) {
316
- let [n, r] = C(() => e ?? {}), i = S(e);
317
- b(() => {
316
+ function ye({ resources: e, onResourcesChange: t } = {}) {
317
+ let [n, r] = E(() => e ?? {}), i = T(e);
318
+ C(() => {
318
319
  e !== i.current && (i.current = e, r(e ?? {}));
319
320
  }, [e]);
320
- let a = S(t);
321
- b(() => {
321
+ let a = T(t);
322
+ C(() => {
322
323
  a.current = t;
323
324
  }, [t]);
324
- let o = y((e) => {
325
+ let o = S((e) => {
325
326
  a.current?.(e);
326
- }, []), s = y((e, t) => {
327
+ }, []), s = S((e, t) => {
327
328
  r((n) => {
328
329
  let r = {
329
330
  ...n,
@@ -331,7 +332,7 @@ function me({ resources: e, onResourcesChange: t } = {}) {
331
332
  };
332
333
  return o(r), r;
333
334
  });
334
- }, [o]), c = y((e, t) => {
335
+ }, [o]), c = S((e, t) => {
335
336
  r((n) => {
336
337
  let r = n[e];
337
338
  if (!r) return n;
@@ -344,21 +345,21 @@ function me({ resources: e, onResourcesChange: t } = {}) {
344
345
  };
345
346
  return o(i), i;
346
347
  });
347
- }, [o]), l = y((e) => {
348
+ }, [o]), l = S((e) => {
348
349
  r((t) => {
349
350
  if (!(e in t)) return t;
350
351
  let n = { ...t };
351
352
  return delete n[e], o(n), n;
352
353
  });
353
- }, [o]), u = y((e) => {
354
+ }, [o]), u = S((e) => {
354
355
  r(e), o(e);
355
- }, [o]), d = y(() => {
356
+ }, [o]), d = S(() => {
356
357
  let e = i.current ?? {};
357
358
  r(e), o(e);
358
359
  }, [o]);
359
360
  return {
360
361
  registry: n,
361
- get: y((e) => {
362
+ get: S((e) => {
362
363
  let t = typeof e == "string" ? e : e.key;
363
364
  return n[t];
364
365
  }, [n]),
@@ -371,11 +372,11 @@ function me({ resources: e, onResourcesChange: t } = {}) {
371
372
  }
372
373
  //#endregion
373
374
  //#region src/components/features/activities/partials/activity-actions-menu.tsx
374
- function he(e) {
375
+ function be(e) {
375
376
  if (e === "destructive") return "destructive";
376
377
  if (e === "primary" || e === "secondary") return e;
377
378
  }
378
- function ge({ activity: e, actions: t, onAction: n, label: r }) {
379
+ function xe({ activity: e, actions: t, onAction: n, label: r }) {
379
380
  if (t.length === 0) return null;
380
381
  let i = t.map((t) => ({
381
382
  id: t.id,
@@ -383,12 +384,12 @@ function ge({ activity: e, actions: t, onAction: n, label: r }) {
383
384
  label: t.label,
384
385
  href: t.href,
385
386
  disabled: t.disabled,
386
- tone: he(t.tone),
387
+ tone: be(t.tone),
387
388
  onClick: () => {
388
389
  t.onClick?.(e), n?.(t.id, e);
389
390
  }
390
391
  }));
391
- return /* @__PURE__ */ T(u, {
392
+ return /* @__PURE__ */ O(f, {
392
393
  actions: i,
393
394
  srText: r,
394
395
  align: "end",
@@ -402,61 +403,65 @@ function ge({ activity: e, actions: t, onAction: n, label: r }) {
402
403
  }
403
404
  //#endregion
404
405
  //#region src/components/features/activities/partials/activity-changes.tsx
405
- function _e({ change: e }) {
406
+ function Se({ change: e }) {
406
407
  let t = e.old !== null && e.old !== void 0, n = e.new !== null && e.new !== void 0;
407
- return !t && !n ? /* @__PURE__ */ T(i, {
408
+ return !t && !n ? /* @__PURE__ */ O(i, {
409
+ type: "inherit",
408
410
  tag: "span",
409
411
  children: e.description
410
- }) : /* @__PURE__ */ E(i, {
412
+ }) : /* @__PURE__ */ k(i, {
413
+ type: "inherit",
411
414
  tag: "span",
412
415
  className: "inline-flex flex-wrap items-baseline gap-space-xs",
413
416
  children: [
414
- !!t && /* @__PURE__ */ T(i, {
417
+ !!t && /* @__PURE__ */ O(i, {
418
+ type: "inherit",
415
419
  tag: "span",
416
420
  size: "inherit",
417
- className: l.removed,
421
+ className: u.removed,
418
422
  children: e.old
419
423
  }),
420
- t && n && /* @__PURE__ */ T(i, {
424
+ t && n && /* @__PURE__ */ O(i, {
421
425
  tag: "span",
422
426
  size: "inherit",
423
427
  type: "secondary",
424
428
  children: "→"
425
429
  }),
426
- !!n && /* @__PURE__ */ T(i, {
430
+ !!n && /* @__PURE__ */ O(i, {
431
+ type: "inherit",
427
432
  tag: "span",
428
433
  size: "inherit",
429
- className: l.added,
434
+ className: u.added,
430
435
  children: e.new
431
436
  })
432
437
  ]
433
438
  });
434
439
  }
435
- function ve({ changes: e, className: t }) {
436
- return e.length === 0 ? null : /* @__PURE__ */ T("div", {
440
+ function Ce({ changes: e, className: t }) {
441
+ return e.length === 0 ? null : /* @__PURE__ */ O("div", {
437
442
  className: n("activity-changes--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", t),
438
- children: /* @__PURE__ */ T(s, {
443
+ children: /* @__PURE__ */ O(c, {
439
444
  gap: "sm",
440
- children: e.map((e) => /* @__PURE__ */ E("div", {
445
+ children: e.map((e) => /* @__PURE__ */ k("div", {
441
446
  className: "flex items-baseline gap-space-md",
442
- children: [/* @__PURE__ */ T(i, {
447
+ children: [/* @__PURE__ */ O(i, {
443
448
  size: "xs",
444
449
  type: "secondary",
445
450
  weight: "medium",
446
451
  className: "shrink-0",
447
452
  children: e.label
448
- }), /* @__PURE__ */ T(_e, { change: e })]
453
+ }), /* @__PURE__ */ O(Se, { change: e })]
449
454
  }, `${e.key}-${e.label}`))
450
455
  })
451
456
  });
452
457
  }
453
458
  //#endregion
454
459
  //#region src/components/features/activities/partials/activity-date-label.tsx
455
- function ye({ label: e, first: t, className: r }) {
456
- return e === "" ? null : /* @__PURE__ */ T(s, {
460
+ function we({ label: e, first: t, className: r }) {
461
+ return e === "" ? null : /* @__PURE__ */ O(c, {
457
462
  gap: "none",
458
463
  className: n("activity-date-label--component", !t && "mt-space-md", r),
459
- children: /* @__PURE__ */ T(i, {
464
+ children: /* @__PURE__ */ O(i, {
460
465
  size: "xs",
461
466
  type: "secondary",
462
467
  weight: "medium",
@@ -466,11 +471,11 @@ function ye({ label: e, first: t, className: r }) {
466
471
  }
467
472
  //#endregion
468
473
  //#region src/components/features/activities/partials/activity-empty-state.tsx
469
- function be({ title: e, hint: t, className: r }) {
470
- return /* @__PURE__ */ T(p, {
474
+ function Te({ title: e, hint: t, className: r }) {
475
+ return /* @__PURE__ */ O(g, {
471
476
  title: e,
472
477
  description: t ?? !1,
473
- media: /* @__PURE__ */ T(D, {
478
+ media: /* @__PURE__ */ O(A, {
474
479
  className: "size-icon",
475
480
  "aria-hidden": "true"
476
481
  }),
@@ -481,29 +486,29 @@ function be({ title: e, hint: t, className: r }) {
481
486
  }
482
487
  //#endregion
483
488
  //#region src/components/features/activities/partials/tone-tokens.ts
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 = {
489
+ var Z = (e) => ({
490
+ bg: l[e].tint,
491
+ fg: l[e].ink,
492
+ dot: l[e].solid,
493
+ line: l[e].line,
494
+ chipBg: l[e].tint,
495
+ chipFg: l[e].ink
496
+ }), Ee = {
492
497
  bg: "bg-muted",
493
498
  fg: "text-muted-foreground",
494
499
  dot: "bg-muted-foreground",
495
500
  line: "bg-border",
496
501
  chipBg: "bg-muted",
497
502
  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 = {
503
+ }, De = {
504
+ primary: Z("primary"),
505
+ success: Z("success"),
506
+ warning: Z("warning"),
507
+ destructive: Z("destructive"),
508
+ info: Z("info"),
509
+ neutral: Ee,
510
+ secondary: Ee
511
+ }, Oe = {
507
512
  primary: "primary",
508
513
  success: "success",
509
514
  warning: "warning",
@@ -514,32 +519,33 @@ var $ = (e) => ({
514
519
  };
515
520
  //#endregion
516
521
  //#region src/components/features/activities/partials/activity-resource-tag.tsx
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, {
522
+ function ke({ resource: e, config: t, fallbackText: a, onClick: o }) {
523
+ let s = t?.tone ?? "neutral", c = De[s], l = t?.icon ?? I, u = t?.label ?? a ?? e.label ?? e.key, d = typeof o == "function", f = /* @__PURE__ */ k(D, { children: [
524
+ /* @__PURE__ */ O(l, { className: n("size-icon-sm shrink-0", c.fg) }),
525
+ /* @__PURE__ */ O(i, {
526
+ type: "inherit",
521
527
  tag: "span",
522
528
  weight: "medium",
523
529
  lineHeight: "none",
524
- className: s.chipFg,
525
- children: l
530
+ className: c.chipFg,
531
+ children: u
526
532
  }),
527
- !!t?.tags && t.tags.length > 0 && /* @__PURE__ */ T(i, {
533
+ !!t?.tags && t.tags.length > 0 && /* @__PURE__ */ O(i, {
528
534
  tag: "span",
529
535
  size: "xs",
530
536
  type: "secondary",
531
537
  className: "border-l border-border pl-space-sm",
532
538
  children: t.tags.join(" · ")
533
539
  }),
534
- !!t?.badge && /* @__PURE__ */ T(f, {
540
+ !!t?.badge && /* @__PURE__ */ O(h, {
535
541
  inline: !0,
536
542
  size: "sm",
537
- tone: Ce[t.badge.tone ?? "neutral"],
543
+ tone: Oe[t.badge.tone ?? "neutral"],
538
544
  className: "ml-space-2xs",
539
545
  children: t.badge.label
540
546
  })
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, {
547
+ ] });
548
+ return d ? /* @__PURE__ */ O(r, {
543
549
  type: "button",
544
550
  tone: "secondary",
545
551
  buttonStyle: "ghost",
@@ -547,56 +553,60 @@ function we({ resource: e, config: t, fallbackText: a, onClick: o }) {
547
553
  onClick: (e) => {
548
554
  e.stopPropagation(), o?.();
549
555
  },
550
- className: n("activity-resource-tag--component gap-space-xs align-baseline", s.chipBg),
556
+ className: n("activity-resource-tag--component gap-space-xs align-baseline", c.chipBg),
551
557
  title: t?.note,
552
- children: d
553
- }) : /* @__PURE__ */ T("span", {
554
- className: n("activity-resource-tag--component", p),
558
+ children: f
559
+ }) : /* @__PURE__ */ O(h, {
560
+ inline: !0,
561
+ size: "sm",
562
+ tone: s === "primary" ? "neutral" : Oe[s],
563
+ className: "activity-resource-tag--component",
555
564
  title: t?.note,
556
- children: d
565
+ children: f
557
566
  });
558
567
  }
559
568
  //#endregion
560
569
  //#region src/components/features/activities/partials/activity-headline.tsx
561
- function Te({ actorId: e, text: t, href: n, activity: o, youLabel: s, currentUserId: c, onActorClick: l }) {
562
- let u = c !== void 0 && e !== void 0 && c === e ? s : t, d = o.actor ?? {
570
+ function Ae({ actorId: e, text: t, href: n, activity: s, youLabel: c, currentUserId: l, onActorClick: u }) {
571
+ let d = l !== void 0 && e !== void 0 && l === e ? c : t, f = s.actor ?? {
563
572
  id: e,
564
573
  name: t
565
574
  };
566
- return n ? /* @__PURE__ */ T(a, {
575
+ return n ? /* @__PURE__ */ O(o, {
567
576
  href: n,
568
577
  size: "inherit",
569
- underline: !1,
578
+ weight: "semibold",
570
579
  onClick: (e) => {
571
- l && (e.preventDefault(), e.stopPropagation(), l(d, o));
580
+ u && (e.preventDefault(), e.stopPropagation(), u(f, s));
572
581
  },
573
- className: "font-semibold text-foreground underline-offset-2 hover:underline",
574
- children: u
575
- }) : l ? /* @__PURE__ */ T(r, {
582
+ children: d
583
+ }) : u ? /* @__PURE__ */ O(r, {
576
584
  type: "button",
577
585
  tone: "secondary",
578
586
  buttonStyle: "ghost",
579
587
  size: "sm",
580
588
  onClick: (e) => {
581
- e.stopPropagation(), l(d, o);
589
+ e.stopPropagation(), u(f, s);
582
590
  },
583
- className: "h-auto min-h-0 rounded-inner px-0 py-0 text-foreground underline-offset-2 hover:underline",
584
- children: /* @__PURE__ */ T(i, {
591
+ className: `h-auto min-h-0 rounded-inner px-0 py-0 text-foreground ${a} hover:decoration-transparent`,
592
+ children: /* @__PURE__ */ O(i, {
593
+ type: "inherit",
585
594
  tag: "span",
586
595
  weight: "semibold",
587
- children: u
596
+ children: d
588
597
  })
589
- }) : /* @__PURE__ */ T(i, {
598
+ }) : /* @__PURE__ */ O(i, {
599
+ type: "inherit",
590
600
  tag: "span",
591
601
  weight: "semibold",
592
- children: u
602
+ children: d
593
603
  });
594
604
  }
595
- function Ee(e, t) {
605
+ function je(e, t) {
596
606
  return e.map((e, n) => {
597
607
  let r = `seg-${n}-${e.type}`;
598
608
  switch (e.type) {
599
- case "actor": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(Te, {
609
+ case "actor": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(Ae, {
600
610
  actorId: e.actorId,
601
611
  text: e.text,
602
612
  href: e.href,
@@ -606,46 +616,50 @@ function Ee(e, t) {
606
616
  onActorClick: t.onActorClick
607
617
  }), " "] }, r);
608
618
  case "field":
609
- case "value": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(i, {
619
+ case "value": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(i, {
620
+ type: "inherit",
610
621
  tag: "span",
611
622
  weight: "semibold",
612
623
  children: e.text
613
624
  }), " "] }, r);
614
- case "status": return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(f, {
625
+ case "status": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(h, {
615
626
  inline: !0,
616
627
  size: "sm",
617
- tone: Ce[e.tone ?? "neutral"],
628
+ tone: Oe[e.tone ?? "neutral"],
618
629
  children: e.text
619
630
  }), " "] }, r);
620
631
  case "resource": {
621
632
  let n = t.getResourceConfig?.(e.resource);
622
- return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(we, {
633
+ return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(ke, {
623
634
  resource: e.resource,
624
635
  config: n,
625
636
  fallbackText: e.text,
626
637
  onClick: t.onResourceClick ? () => t.onResourceClick?.(e.resource, n, t.activity) : void 0
627
638
  }), " "] }, r);
628
639
  }
629
- default: return /* @__PURE__ */ E(v, { children: [/* @__PURE__ */ T(i, {
640
+ default: return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(i, {
641
+ type: "inherit",
630
642
  tag: "span",
631
643
  children: e.text
632
644
  }), " "] }, r);
633
645
  }
634
646
  });
635
647
  }
636
- function De(e) {
648
+ function Me(e) {
637
649
  let { activity: t } = e, n = t.headline ?? t.event, r = t.actor?.name;
638
- if (!r || !n.includes(r)) return /* @__PURE__ */ T(i, {
650
+ if (!r || !n.includes(r)) return /* @__PURE__ */ O(i, {
651
+ type: "inherit",
639
652
  tag: "span",
640
653
  children: n
641
654
  });
642
655
  let [a, ...o] = n.split(r);
643
- return /* @__PURE__ */ E(w, { children: [
644
- !!a && /* @__PURE__ */ T(i, {
656
+ return /* @__PURE__ */ k(D, { children: [
657
+ !!a && /* @__PURE__ */ O(i, {
658
+ type: "inherit",
645
659
  tag: "span",
646
660
  children: a
647
661
  }),
648
- /* @__PURE__ */ T(Te, {
662
+ /* @__PURE__ */ O(Ae, {
649
663
  actorId: t.actor?.id,
650
664
  text: r,
651
665
  href: t.actor?.href,
@@ -654,132 +668,138 @@ function De(e) {
654
668
  currentUserId: e.currentUserId,
655
669
  onActorClick: e.onActorClick
656
670
  }),
657
- o.length > 0 && /* @__PURE__ */ T(i, {
671
+ o.length > 0 && /* @__PURE__ */ O(i, {
672
+ type: "inherit",
658
673
  tag: "span",
659
674
  children: o.join(r)
660
675
  })
661
676
  ] });
662
677
  }
663
- function Oe(e) {
678
+ function Ne(e) {
664
679
  let t = e.activity.segments;
665
- return t && t.length > 0 ? /* @__PURE__ */ T("span", {
680
+ return t && t.length > 0 ? /* @__PURE__ */ O("span", {
666
681
  className: "activity-headline--component leading-snug [&>span]:leading-snug",
667
- children: Ee(t, e)
668
- }) : /* @__PURE__ */ T("span", {
682
+ children: je(t, e)
683
+ }) : /* @__PURE__ */ O("span", {
669
684
  className: "activity-headline--component leading-snug",
670
- children: De(e)
685
+ children: Me(e)
671
686
  });
672
687
  }
673
688
  //#endregion
674
689
  //#region src/components/features/activities/partials/activity-marker.tsx
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", {
678
- className: n("activity-marker--component flex flex-col items-center", a),
679
- children: [/* @__PURE__ */ T("span", {
680
- "aria-hidden": !0,
681
- className: n("mt-1.5 size-2 shrink-0 rounded-full", o.dot)
682
- }), !i && /* @__PURE__ */ T("span", {
683
- "aria-hidden": !0,
684
- className: n("mt-1 w-px flex-1", o.line)
685
- })]
686
- }) : r === "rich" ? /* @__PURE__ */ E("div", {
687
- className: n("activity-marker--component flex flex-col items-center", a),
688
- children: [/* @__PURE__ */ T("span", {
689
- className: n("flex size-7 shrink-0 items-center justify-center rounded-full ring-1 ring-border/60", o.bg, o.fg),
690
- children: /* @__PURE__ */ T(e, { className: "size-icon-md" })
691
- }), !i && /* @__PURE__ */ T("span", {
692
- "aria-hidden": !0,
693
- className: n("mt-1 w-px flex-1", o.line)
694
- })]
695
- }) : /* @__PURE__ */ E("div", {
696
- className: n("activity-marker--component flex flex-col items-center", a),
697
- children: [/* @__PURE__ */ T("span", {
698
- className: n("flex size-icon-lg shrink-0 items-center justify-center rounded-full", o.bg, o.fg),
699
- children: /* @__PURE__ */ T(e, { className: "size-icon-sm" })
700
- }), !i && /* @__PURE__ */ T("span", {
690
+ var Pe = {
691
+ primary: "primary",
692
+ success: "success",
693
+ warning: "warning",
694
+ destructive: "destructive",
695
+ info: "info",
696
+ neutral: "neutral",
697
+ secondary: "neutral"
698
+ };
699
+ function Fe({ icon: e, tone: t, density: r, last: i, className: a }) {
700
+ let o = De[t], s = r === "compact" ? /* @__PURE__ */ O("span", {
701
+ "aria-hidden": !0,
702
+ className: n(d.marker, o.dot)
703
+ }) : r === "rich" ? /* @__PURE__ */ O(m, {
704
+ icon: e,
705
+ size: "sm",
706
+ tone: Pe[t],
707
+ bordered: !0
708
+ }) : /* @__PURE__ */ O("span", {
709
+ className: n("flex size-icon-lg shrink-0 items-center justify-center rounded-full", o.bg, o.fg),
710
+ children: /* @__PURE__ */ O(e, { className: "size-icon-sm" })
711
+ });
712
+ return /* @__PURE__ */ k("div", {
713
+ className: n("activity-marker--component flex flex-col items-center gap-space-xs", a),
714
+ children: [/* @__PURE__ */ O("span", {
715
+ className: "activity-marker--glyph flex min-h-icon-lg shrink-0 items-center justify-center",
716
+ children: s
717
+ }), !i && /* @__PURE__ */ O("span", {
701
718
  "aria-hidden": !0,
702
- className: n("mt-1 w-px flex-1", o.line)
719
+ className: n("w-px flex-1", o.line)
703
720
  })]
704
721
  });
705
722
  }
706
723
  //#endregion
707
724
  //#region src/components/features/activities/partials/activity-row.tsx
708
- function Ae({ metadata: e }) {
709
- return /* @__PURE__ */ T(o, {
725
+ function Ie({ metadata: e }) {
726
+ return /* @__PURE__ */ O(s, {
710
727
  columns: {
711
728
  base: 1,
712
729
  sm: 2
713
730
  },
714
731
  gap: "md",
715
732
  className: "activity-row--metadata",
716
- children: e.map((e) => /* @__PURE__ */ E(s, {
733
+ children: e.map((e) => /* @__PURE__ */ k(c, {
717
734
  gap: "dense",
718
735
  className: "min-w-0",
719
- children: [/* @__PURE__ */ T(i, {
736
+ children: [/* @__PURE__ */ O(i, {
720
737
  tag: "div",
721
738
  size: "xs",
722
739
  type: "discrete",
723
740
  weight: "medium",
724
- className: "leading-snug",
741
+ lineHeight: "snug",
725
742
  children: e.label
726
- }), /* @__PURE__ */ T(i, {
743
+ }), /* @__PURE__ */ O(i, {
744
+ type: "inherit",
727
745
  tag: "div",
728
- className: "min-w-0 break-words leading-snug",
746
+ lineHeight: "snug",
747
+ className: "min-w-0 break-words",
729
748
  children: e.value
730
749
  })]
731
750
  }, e.label))
732
751
  });
733
752
  }
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, {
753
+ function Le(e) {
754
+ let { activity: t, density: a, itemSpacing: o, eventConfig: s, tone: l, last: u, expanded: d, onExpandedChange: f, detailsCollapsible: m, relativeTime: g, absoluteTime: _, sourceLabel: v, youLabel: y, showChangesLabel: b, hideChangesLabel: x, actionsLabel: S, currentUserId: C, actions: w, onActivityClick: T, onActorClick: E, onResourceClick: D, onAction: A, getResourceConfig: j, headlineOverride: M, markerOverride: N, customDetails: P, rowClassName: I, markerClassName: L, contentClassName: R, detailsClassName: z } = e, B = t.iconOverride ?? s.icon, V = (t.changes?.length ?? 0) > 0, H = t.metadata ?? [], U = H.length > 0, W = (t.resources?.length ?? 0) > 0, te = t.details !== void 0 && t.details !== null && t.details !== !1, G = P != null && P !== !1, K = U || V || te || G, ne = t.description !== void 0 && t.description !== null && t.description !== "", re = a !== "compact", q = a === "rich", J = m ?? (U || V), Y = q && K && (!J || d), X = q && (!(K && J) || d), ie = w.filter((e) => e.presentation === "inline"), ae = w.filter((e) => e.presentation !== "inline"), oe = M ?? /* @__PURE__ */ O(Ne, {
736
755
  activity: t,
737
756
  currentUserId: C,
738
757
  youLabel: y,
739
- onActorClick: O,
740
- onResourceClick: k,
758
+ onActorClick: E,
759
+ onResourceClick: D,
741
760
  getResourceConfig: j
742
- }), oe = P ?? /* @__PURE__ */ T(ke, {
761
+ }), se = N ?? /* @__PURE__ */ O(Fe, {
743
762
  icon: B,
744
763
  tone: l,
745
764
  density: a,
746
765
  last: u,
747
766
  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) => {
755
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), D?.(t));
767
+ }), ce = typeof T == "function", le = V || W || ae.length > 0 || ie.length > 0 || typeof E == "function" || typeof D == "function", ue = ce && !le, de = a === "rich" ? "gap-space-md py-space-xs" : a === "compact" ? "gap-space-sm py-space-2xs" : "gap-space-md py-space-2xs", fe = u ? "" : o === "compact" ? "pb-space-sm" : o === "relaxed" ? "pb-space-xl" : "pb-space-md";
768
+ return /* @__PURE__ */ k("div", {
769
+ className: n("activity-row--component relative flex", de, ce && `cursor-pointer rounded-inner ${p.rowHover}`, I),
770
+ onClick: ce ? () => T?.(t) : void 0,
771
+ role: ue ? "button" : void 0,
772
+ tabIndex: ue ? 0 : void 0,
773
+ onKeyDown: ue ? (e) => {
774
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), T?.(t));
756
775
  } : void 0,
757
- children: [oe, /* @__PURE__ */ E("div", {
758
- className: n("activity-row--content min-w-0 flex-1", ue, R),
776
+ children: [se, /* @__PURE__ */ k("div", {
777
+ className: n("activity-row--content min-w-0 flex-1", fe, R),
759
778
  children: [
760
- /* @__PURE__ */ E(s, {
779
+ /* @__PURE__ */ k(c, {
761
780
  gap: "dense",
762
- children: [/* @__PURE__ */ E("div", {
781
+ children: [/* @__PURE__ */ k("div", {
763
782
  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]",
764
- children: [/* @__PURE__ */ T(s, {
783
+ children: [/* @__PURE__ */ O(c, {
765
784
  gap: "dense",
766
785
  className: "min-w-0",
767
- children: /* @__PURE__ */ E("div", {
786
+ children: /* @__PURE__ */ k("div", {
768
787
  className: "activity-row--headline flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-xs",
769
- children: [/* @__PURE__ */ T(i, {
788
+ children: [/* @__PURE__ */ O(i, {
789
+ type: "inherit",
770
790
  tag: "span",
771
791
  size: "inherit",
772
792
  lineHeight: "snug",
773
793
  className: "min-w-0 break-words [overflow-wrap:anywhere]",
774
- children: ae
775
- }), !!v && /* @__PURE__ */ T(f, {
794
+ children: oe
795
+ }), !!v && /* @__PURE__ */ O(h, {
776
796
  inline: !0,
777
797
  size: "sm",
778
798
  tone: "secondary",
779
799
  children: v
780
800
  })]
781
801
  })
782
- }), /* @__PURE__ */ E(s, {
802
+ }), /* @__PURE__ */ k(c, {
783
803
  direction: "horizontal",
784
804
  gap: "xs",
785
805
  justify: {
@@ -789,14 +809,15 @@ function je(e) {
789
809
  wrap: !1,
790
810
  className: "activity-row--trailing w-full shrink-0 justify-self-start sm:w-auto sm:justify-self-end",
791
811
  children: [
792
- !!g && /* @__PURE__ */ T(i, {
812
+ !!g && /* @__PURE__ */ O(i, {
793
813
  size: "xs",
794
814
  type: "secondary",
795
- className: "whitespace-nowrap tabular-nums leading-snug",
815
+ lineHeight: "snug",
816
+ className: "whitespace-nowrap tabular-nums",
796
817
  title: _ ?? void 0,
797
818
  children: g
798
819
  }),
799
- J && q && Y && /* @__PURE__ */ T(r, {
820
+ q && K && J && /* @__PURE__ */ O(r, {
800
821
  type: "button",
801
822
  size: "sm",
802
823
  iconOnly: !0,
@@ -804,72 +825,73 @@ function je(e) {
804
825
  buttonStyle: "ghost",
805
826
  className: "size-action-sm text-muted-foreground",
806
827
  onClick: (e) => {
807
- e.stopPropagation(), m(!p);
828
+ e.stopPropagation(), f(!d);
808
829
  },
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" })
830
+ title: d ? x : b,
831
+ "aria-label": d ? x : b,
832
+ "aria-expanded": d,
833
+ children: O(d ? F : ee, { className: "size-icon-sm" })
813
834
  }),
814
- J && ie.length > 0 && /* @__PURE__ */ T(ge, {
835
+ q && ae.length > 0 && /* @__PURE__ */ O(xe, {
815
836
  activity: t,
816
- actions: ie,
837
+ actions: ae,
817
838
  onAction: A,
818
839
  label: S
819
840
  })
820
841
  ]
821
842
  })]
822
- }), !!ne && te && /* @__PURE__ */ T(i, {
843
+ }), !!re && ne && /* @__PURE__ */ O(i, {
823
844
  tag: "div",
824
845
  type: "secondary",
825
- className: "max-w-3xl leading-relaxed",
846
+ lineHeight: "relaxed",
847
+ className: "max-w-3xl",
826
848
  children: t.description
827
849
  })]
828
850
  }),
829
- Z && W && t.resources && /* @__PURE__ */ T(s, {
851
+ X && W && t.resources && /* @__PURE__ */ O(c, {
830
852
  direction: "horizontal",
831
853
  gap: "xs",
832
854
  className: "mt-space-sm",
833
855
  children: t.resources.map((e) => {
834
856
  let n = j?.(e);
835
- return /* @__PURE__ */ T(we, {
857
+ return /* @__PURE__ */ O(ke, {
836
858
  resource: e,
837
859
  config: n,
838
- onClick: k ? () => k(e, n, t) : void 0
860
+ onClick: D ? () => D(e, n, t) : void 0
839
861
  }, e.key);
840
862
  })
841
863
  }),
842
- X && /* @__PURE__ */ T("div", {
864
+ Y && /* @__PURE__ */ O("div", {
843
865
  className: "mt-space-sm",
844
- children: /* @__PURE__ */ T("div", {
866
+ children: /* @__PURE__ */ O("div", {
845
867
  className: n("activity-row--details", z),
846
- children: /* @__PURE__ */ E(s, {
868
+ children: /* @__PURE__ */ k(c, {
847
869
  gap: "md",
848
870
  children: [
849
- U && /* @__PURE__ */ T(Ae, { metadata: H }),
850
- V && t.changes && /* @__PURE__ */ T(ve, {
871
+ U && /* @__PURE__ */ O(Ie, { metadata: H }),
872
+ V && t.changes && /* @__PURE__ */ O(Ce, {
851
873
  changes: t.changes,
852
874
  className: "border-0 bg-transparent p-0"
853
875
  }),
854
- G && /* @__PURE__ */ T("div", {
876
+ te && /* @__PURE__ */ O("div", {
855
877
  className: "activity-row--details-body",
856
878
  children: t.details
857
879
  }),
858
- K && /* @__PURE__ */ T("div", {
880
+ G && /* @__PURE__ */ O("div", {
859
881
  className: "activity-row--details-custom",
860
- children: F
882
+ children: P
861
883
  })
862
884
  ]
863
885
  })
864
886
  })
865
887
  }),
866
- Z && re.length > 0 && /* @__PURE__ */ T(s, {
888
+ X && ie.length > 0 && /* @__PURE__ */ O(c, {
867
889
  direction: "horizontal",
868
890
  gap: "xs",
869
891
  className: "activity-row--inline-actions mt-space-sm",
870
- children: re.map((e) => {
892
+ children: ie.map((e) => {
871
893
  let n = e.icon;
872
- return /* @__PURE__ */ T(r, {
894
+ return /* @__PURE__ */ O(r, {
873
895
  type: "button",
874
896
  size: "sm",
875
897
  tone: e.tone === "destructive" ? "destructive" : "secondary",
@@ -890,28 +912,28 @@ function je(e) {
890
912
  }
891
913
  //#endregion
892
914
  //#region src/components/features/activities/activities-feed.tsx
893
- function Me(e, t) {
915
+ function Re(e, t) {
894
916
  try {
895
917
  let n = new Date(e);
896
- return ae(n) ? Z(n, "PP p", t ? { locale: t } : void 0) : e;
918
+ return le(n) ? oe(n, "PP p", t ? { locale: t } : void 0) : e;
897
919
  } catch {
898
920
  return e;
899
921
  }
900
922
  }
901
- function Ne(e, t) {
923
+ function Q(e, t) {
902
924
  return typeof e == "function" ? e(t) : e;
903
925
  }
904
- function Pe(e, t) {
926
+ function ze(e, t) {
905
927
  return e.toneOverride ?? t;
906
928
  }
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,
929
+ function Be(r) {
930
+ let { activities: a = [], density: o = "default", itemSpacing: s = "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: x, locale: S, formatRelativeTime: C, formatAbsoluteTime: T, formatDateGroupLabel: E, getEventLabel: D, getSourceLabel: A, actionsForActivity: j, onActivityClick: M, onActorClick: N, onResourceClick: P, onAction: F, onActivityExpandedChange: ee, resources: I, onResourcesChange: L } = r, R = t(he, v), z = w(() => ({
931
+ ...pe,
910
932
  ..._
911
- }), [_]), B = me({
933
+ }), [_]), B = ye({
912
934
  resources: I,
913
935
  onResourcesChange: L
914
- }), V = e(), H = C ?? V.locale, U = pe({
936
+ }), V = e(), H = S ?? V.locale, U = ve({
915
937
  activities: a,
916
938
  groupByDate: l,
917
939
  expandedByDefault: u,
@@ -920,65 +942,65 @@ function Fe(r) {
920
942
  onExpandedIdsChange: m,
921
943
  locale: H,
922
944
  strings: R,
923
- formatDateGroupLabel: O
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, {
945
+ formatDateGroupLabel: E
946
+ }), W = C ?? V.formatRelativeTime ?? ((e) => e), te = T ?? ((e) => Re(e, H));
947
+ if (g) return /* @__PURE__ */ O("div", {
948
+ className: n("activities-feed--component", "px-space-md py-space-xl", x),
949
+ children: y?.loading ?? /* @__PURE__ */ O(i, {
928
950
  type: "secondary",
929
951
  align: "center",
930
952
  children: R.loading
931
953
  })
932
954
  });
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 })
955
+ if (a.length === 0) return /* @__PURE__ */ O("div", {
956
+ className: n("activities-feed--component", "px-space-md py-space-md", x),
957
+ children: y?.empty ?? /* @__PURE__ */ O(Te, { title: R.empty })
936
958
  });
937
- let K = U.groups.reduce((e, t) => e + t.items.length, 0), q = 0;
938
- return /* @__PURE__ */ E(s, {
959
+ let G = U.groups.reduce((e, t) => e + t.items.length, 0), K = 0;
960
+ return /* @__PURE__ */ k(c, {
939
961
  gap: "xl",
940
- className: n("activities-feed--component", S),
962
+ className: n("activities-feed--component", x),
941
963
  children: [
942
- !!y?.header && /* @__PURE__ */ T("div", { children: y.header }),
943
- /* @__PURE__ */ T("div", {
964
+ !!y?.header && /* @__PURE__ */ O("div", { children: y.header }),
965
+ /* @__PURE__ */ O("div", {
944
966
  className: "flex flex-col",
945
967
  children: U.groups.map((e, t) => {
946
968
  let r = t === 0;
947
- return /* @__PURE__ */ E("div", {
969
+ return /* @__PURE__ */ k("div", {
948
970
  className: n(r ? "" : "mt-1"),
949
- children: [y?.renderDateLabel ? y.renderDateLabel(e.label, r) : /* @__PURE__ */ T(ye, {
971
+ children: [y?.renderDateLabel ? y.renderDateLabel(e.label, r) : /* @__PURE__ */ O(we, {
950
972
  label: e.label,
951
973
  first: r
952
- }), /* @__PURE__ */ T("div", {
974
+ }), /* @__PURE__ */ O("div", {
953
975
  className: n("flex flex-col", !!e.label && "mt-space-md"),
954
976
  children: e.items.map((e, t) => {
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 = {
977
+ let n = e.activity, r = t === 0, i = ++K === G, a = me(n.event, z), c = ze(n, a.tone), l = n.timestamp ?? (n.createdAt ? W(n.createdAt) : null), u = n.createdAt ? te(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 = {
956
978
  density: o,
957
979
  isLast: i,
958
980
  isFirstInGroup: r,
959
981
  activity: n,
960
982
  eventConfig: a,
961
- tone: s,
983
+ tone: c,
962
984
  relativeTime: l,
963
985
  absoluteTime: u,
964
986
  sourceLabel: p,
965
987
  expanded: U.isExpanded(n.id),
966
- itemSpacing: c,
988
+ itemSpacing: s,
967
989
  setExpanded: (e) => U.setExpanded(n.id, e),
968
990
  toggleExpanded: () => U.toggleExpanded(n.id)
969
991
  }, _ = y?.renderDetails?.(n, g), v = y?.renderRow?.(n, g);
970
- if (v !== void 0) return /* @__PURE__ */ T("div", { children: v }, e.key);
992
+ if (v !== void 0) return /* @__PURE__ */ O("div", { children: v }, e.key);
971
993
  let x = y?.renderHeadline?.(n, g), S = y?.renderMarker?.(n, g);
972
- return /* @__PURE__ */ T(je, {
994
+ return /* @__PURE__ */ O(Le, {
973
995
  activity: n,
974
996
  density: o,
975
- itemSpacing: c,
997
+ itemSpacing: s,
976
998
  eventConfig: a,
977
- tone: s,
999
+ tone: c,
978
1000
  last: i,
979
1001
  expanded: g.expanded,
980
1002
  onExpandedChange: (e) => {
981
- U.setExpanded(n.id, e), F?.(n, e);
1003
+ U.setExpanded(n.id, e), ee?.(n, e);
982
1004
  },
983
1005
  detailsCollapsible: n.collapsible ?? d,
984
1006
  relativeTime: l,
@@ -991,52 +1013,52 @@ function Fe(r) {
991
1013
  actionsLabel: R.actionsLabel,
992
1014
  currentUserId: h,
993
1015
  actions: m,
994
- onActivityClick: ee,
995
- onActorClick: M,
996
- onResourceClick: N,
997
- onAction: P,
1016
+ onActivityClick: M,
1017
+ onActorClick: N,
1018
+ onResourceClick: P,
1019
+ onAction: F,
998
1020
  getResourceConfig: (e) => B.get(e),
999
1021
  headlineOverride: x,
1000
1022
  markerOverride: S,
1001
1023
  customDetails: _,
1002
- rowClassName: Ne(b?.row, n),
1003
- markerClassName: Ne(b?.marker, n),
1004
- contentClassName: Ne(b?.content, n),
1005
- detailsClassName: Ne(b?.details, n)
1024
+ rowClassName: Q(b?.row, n),
1025
+ markerClassName: Q(b?.marker, n),
1026
+ contentClassName: Q(b?.content, n),
1027
+ detailsClassName: Q(b?.details, n)
1006
1028
  }, e.key);
1007
1029
  })
1008
1030
  })]
1009
1031
  }, `${e.label}-${t}`);
1010
1032
  })
1011
1033
  }),
1012
- !!y?.footer && /* @__PURE__ */ T("div", { children: y.footer })
1034
+ !!y?.footer && /* @__PURE__ */ O("div", { children: y.footer })
1013
1035
  ]
1014
1036
  });
1015
1037
  }
1016
- Fe.displayName = "ActivityFeed";
1038
+ Be.displayName = "ActivityFeed";
1017
1039
  //#endregion
1018
1040
  //#region src/components/features/activities/activity-log.tsx
1019
- function Ie(e, t) {
1041
+ function Ve(e, t) {
1020
1042
  let n = [...e];
1021
1043
  return n.sort((e, n) => {
1022
1044
  let r = e.timestamp ? new Date(e.timestamp).getTime() : 0, i = n.timestamp ? new Date(n.timestamp).getTime() : 0;
1023
1045
  return t === "asc" ? r - i : i - r;
1024
1046
  }), n;
1025
1047
  }
1026
- function Le(e) {
1048
+ function He(e) {
1027
1049
  return e ?? "secondary";
1028
1050
  }
1029
- function Re(e) {
1051
+ function Ue(e) {
1030
1052
  if (e) return typeof e == "string" ? { name: e } : e;
1031
1053
  }
1032
- function ze(e) {
1054
+ function We(e) {
1033
1055
  return e != null && e !== !1;
1034
1056
  }
1035
- function Be(e, t) {
1057
+ function $(e, t) {
1036
1058
  if (e && t && t.kind !== "comment") return typeof e == "function" ? e(t) : e;
1037
1059
  }
1038
- function Ve(e, t) {
1039
- let n = Re(e.actor), r = e.descriptionHtml ? /* @__PURE__ */ T(_, {
1060
+ function Ge(e, t) {
1061
+ let n = Ue(e.actor), r = e.descriptionHtml ? /* @__PURE__ */ O(b, {
1040
1062
  html: e.descriptionHtml,
1041
1063
  mentions: e.mentions,
1042
1064
  resources: t
@@ -1049,7 +1071,7 @@ function Ve(e, t) {
1049
1071
  createdAt: e.timestamp,
1050
1072
  timestamp: void 0,
1051
1073
  iconOverride: e.icon,
1052
- toneOverride: Le(e.tone),
1074
+ toneOverride: He(e.tone),
1053
1075
  headline: typeof e.headline == "string" ? e.headline : void 0,
1054
1076
  description: r,
1055
1077
  metadata: e.metadata,
@@ -1068,7 +1090,7 @@ function Ve(e, t) {
1068
1090
  type: "text",
1069
1091
  text: e.action
1070
1092
  }] : [],
1071
- ...ze(e.target) ? [{
1093
+ ...We(e.target) ? [{
1072
1094
  type: "value",
1073
1095
  text: String(e.target)
1074
1096
  }] : [],
@@ -1079,64 +1101,64 @@ function Ve(e, t) {
1079
1101
  ] : void 0
1080
1102
  };
1081
1103
  }
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;
1104
+ function Ke(r) {
1105
+ let { entries: a, order: o = "desc", itemSpacing: s = "relaxed", resources: l, onResourceSearch: u, canModerate: d, onCommentDelete: f, onCommentReact: p, onCommentReply: m, onCommentPinToggle: h, strings: g, activityStrings: b, renderers: x, renderEventDetails: C, eventDetailsCollapsible: T = !0, defaultExpandedIds: E, expandedIds: D, onExpandedIdsChange: A, onEventExpandedChange: j, onEventAction: M, classNames: N, composer: P, bare: F = !1, title: ee, getMediaUrl: I, getMediaName: L, getStatusLabel: R, formatRelativeTime: z, className: B } = r, V = t(he, b), H = e(), U = S((e) => {
1106
+ let t = z ?? H.formatRelativeTime;
1085
1107
  if (t) return t(e);
1086
- let n = se(e);
1087
- if (!ae(n)) return e;
1088
- let r = U.locale;
1089
- return re(n, {
1108
+ let n = de(e);
1109
+ if (!le(n)) return e;
1110
+ let r = H.locale;
1111
+ return se(n, {
1090
1112
  addSuffix: !0,
1091
1113
  ...r ? { locale: r } : {}
1092
1114
  });
1093
1115
  }, [
1094
- U.formatRelativeTime,
1095
- U.locale,
1116
+ H.formatRelativeTime,
1117
+ H.locale,
1096
1118
  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" ? {
1119
+ ]), W = y({
1120
+ onSubmit: P?.onSubmit,
1121
+ onAfterMutate: P?.onAfterMutate,
1122
+ onError: P?.onError
1123
+ }), G = w(() => Ve(a, o), [a, o]), K = w(() => G.map((e) => e.kind === "comment" ? {
1102
1124
  id: e.id,
1103
1125
  event: "comment",
1104
1126
  source: "comment",
1105
1127
  createdAt: e.timestamp,
1106
1128
  data: e
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", {
1129
+ } : Ge(e, l)), [l, G]), ne = w(() => ({
1130
+ row: (e) => $(N?.eventRow, e.data),
1131
+ marker: (e) => $(N?.eventMarker, e.data),
1132
+ content: (e) => $(N?.eventContent, e.data),
1133
+ details: (e) => $(N?.eventDetails, e.data)
1134
+ }), [N]), re = P?.enabled ? /* @__PURE__ */ O("div", {
1113
1135
  className: "activity-log--composer",
1114
- children: /* @__PURE__ */ T(m, {
1115
- context: N.context,
1136
+ children: /* @__PURE__ */ O(_, {
1137
+ context: P.context,
1116
1138
  canComment: !0,
1117
- submitting: G.isSubmitting,
1118
- errors: G.formErrors,
1119
- resetKey: G.resetKey,
1120
- onSubmit: G.submit,
1139
+ submitting: W.isSubmitting,
1140
+ errors: W.formErrors,
1141
+ resetKey: W.resetKey,
1142
+ onSubmit: W.submit,
1121
1143
  resources: l,
1122
1144
  onResourceSearch: u,
1123
- strings: b,
1124
- placeholder: N.placeholder,
1125
- autoFocus: N.autoFocus,
1126
- inlineSubmit: N.inlineSubmit ?? !1
1145
+ strings: g,
1146
+ placeholder: P.placeholder,
1147
+ autoFocus: P.autoFocus,
1148
+ inlineSubmit: P.inlineSubmit ?? !1
1127
1149
  })
1128
- }) : null, J = N?.position ?? "top", Y = /* @__PURE__ */ T(Fe, {
1129
- activities: q,
1150
+ }) : null, q = P?.position ?? "top", J = /* @__PURE__ */ O(Be, {
1151
+ activities: K,
1130
1152
  density: "rich",
1131
- itemSpacing: c,
1153
+ itemSpacing: s,
1132
1154
  groupByDate: !0,
1133
1155
  resources: {},
1134
- strings: S,
1135
- detailsCollapsible: D,
1136
- defaultExpandedIds: O,
1137
- expandedIds: k,
1156
+ strings: b,
1157
+ detailsCollapsible: T,
1158
+ defaultExpandedIds: E,
1159
+ expandedIds: D,
1138
1160
  onExpandedIdsChange: A,
1139
- formatRelativeTime: W,
1161
+ formatRelativeTime: U,
1140
1162
  getSourceLabel: (e) => V.sources[e] ?? e,
1141
1163
  actionsForActivity: (e) => {
1142
1164
  let t = e.data;
@@ -1153,68 +1175,68 @@ function He(r) {
1153
1175
  onClick: () => e.onSelect?.(n)
1154
1176
  }));
1155
1177
  },
1156
- rowClassNames: te,
1178
+ rowClassNames: ne,
1157
1179
  onAction: (e, t) => {
1158
1180
  let n = t.data;
1159
- n && n.kind !== "comment" && ee?.(e, n);
1181
+ n && n.kind !== "comment" && M?.(e, n);
1160
1182
  },
1161
1183
  onActivityExpandedChange: (e, t) => {
1162
1184
  let n = e.data;
1163
1185
  n && n.kind !== "comment" && j?.(n, t);
1164
1186
  },
1165
1187
  slots: {
1166
- header: J === "top" ? ne : void 0,
1167
- footer: J === "bottom" ? ne : void 0,
1188
+ header: q === "top" ? re : void 0,
1189
+ footer: q === "bottom" ? re : void 0,
1168
1190
  renderRow: (e, t) => {
1169
1191
  let r = e.data;
1170
1192
  if (!r) return;
1171
- let i = C?.[r.kind];
1193
+ let i = x?.[r.kind];
1172
1194
  if (i) return i(r, {
1173
1195
  resources: l,
1174
1196
  accessors: {
1175
1197
  getMediaUrl: I,
1176
1198
  getMediaName: L,
1177
1199
  getStatusLabel: R,
1178
- formatRelativeTime: W
1200
+ formatRelativeTime: U
1179
1201
  },
1180
- strings: b
1202
+ strings: g
1181
1203
  });
1182
1204
  if (r.kind !== "comment") return;
1183
1205
  let a = r;
1184
- return /* @__PURE__ */ E(s, {
1206
+ return /* @__PURE__ */ k(c, {
1185
1207
  direction: "horizontal",
1186
1208
  gap: "md",
1187
1209
  align: "stretch",
1188
1210
  wrap: !1,
1189
1211
  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")),
1190
1212
  "data-event-id": a.id,
1191
- children: [/* @__PURE__ */ T(ke, {
1192
- icon: H,
1213
+ children: [/* @__PURE__ */ O(Fe, {
1214
+ icon: te,
1193
1215
  tone: "neutral",
1194
1216
  density: t.density,
1195
1217
  last: t.isLast
1196
- }), /* @__PURE__ */ T("div", {
1218
+ }), /* @__PURE__ */ O("div", {
1197
1219
  className: "activity-log--comment min-w-0 flex-1",
1198
- children: /* @__PURE__ */ T(h, {
1220
+ children: /* @__PURE__ */ O(v, {
1199
1221
  comment: a.comment,
1200
1222
  canModerate: d,
1201
1223
  onDelete: f,
1202
- onPinToggle: v,
1224
+ onPinToggle: h,
1203
1225
  onReact: p,
1204
- onReply: _,
1205
- strings: b,
1226
+ onReply: m,
1227
+ strings: g,
1206
1228
  resources: l,
1207
1229
  getMediaUrl: I,
1208
1230
  getMediaName: L,
1209
1231
  getStatusLabel: R,
1210
- formatRelativeTime: W
1232
+ formatRelativeTime: U
1211
1233
  })
1212
1234
  })]
1213
1235
  });
1214
1236
  },
1215
1237
  renderDetails: (e, t) => {
1216
1238
  let n = e.data;
1217
- return !n || n.kind === "comment" ? null : w?.(n, {
1239
+ return !n || n.kind === "comment" ? null : C?.(n, {
1218
1240
  expanded: t.expanded,
1219
1241
  setExpanded: t.setExpanded,
1220
1242
  relativeTime: t.relativeTime,
@@ -1223,35 +1245,36 @@ function He(r) {
1223
1245
  });
1224
1246
  }
1225
1247
  },
1226
- className: n("activity-log--component", M?.list, P && B)
1248
+ className: n("activity-log--component", N?.list, F && B)
1227
1249
  });
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", {}),
1250
+ if (F) return J;
1251
+ let Y = ee ?? V.title, X = typeof Y == "string" ? Y : void 0;
1252
+ return /* @__PURE__ */ k(c, {
1253
+ render: /* @__PURE__ */ O("section", {}),
1232
1254
  gap: "lg",
1233
1255
  "data-component": "activity-log",
1234
1256
  "data-slot": "activity-log",
1235
1257
  className: n("activity-log--component", B),
1236
- "aria-label": Z,
1237
- children: [!!X && /* @__PURE__ */ T(i, {
1258
+ "aria-label": X,
1259
+ children: [!!Y && /* @__PURE__ */ O(i, {
1260
+ type: "inherit",
1238
1261
  weight: "semibold",
1239
- children: X
1240
- }), Y]
1262
+ children: Y
1263
+ }), J]
1241
1264
  });
1242
1265
  }
1243
- He.displayName = "ActivityLog";
1266
+ Ke.displayName = "ActivityLog";
1244
1267
  //#endregion
1245
1268
  //#region src/components/features/activities/activity-event-adapter.ts
1246
- function Ue(e) {
1269
+ function qe(e) {
1247
1270
  if (typeof e == "object" && e && "kind" in e) {
1248
1271
  let t = e.kind;
1249
1272
  if (typeof t == "string") return t;
1250
1273
  }
1251
1274
  return "event";
1252
1275
  }
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);
1276
+ function Je(e, t) {
1277
+ let n = t.kind?.(e) ?? qe(e), r = t.id(e), i = t.timestamp(e), a = t.comment?.(e);
1255
1278
  return n === "comment" && a ? {
1256
1279
  id: r,
1257
1280
  kind: "comment",
@@ -1278,10 +1301,10 @@ function We(e, t) {
1278
1301
  data: t.data?.(e) ?? e
1279
1302
  };
1280
1303
  }
1281
- function Ge(e) {
1282
- return (t) => We(t, e);
1304
+ function Ye(e) {
1305
+ return (t) => Je(t, e);
1283
1306
  }
1284
1307
  //#endregion
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 };
1308
+ export { xe as ActivityActionsMenu, Ce as ActivityChanges, we as ActivityDateLabel, Te as ActivityEmptyState, Be as ActivityFeed, Ne as ActivityHeadline, Ke as ActivityLog, Fe as ActivityMarker, ke as ActivityResourceTag, Le as ActivityRow, Ye as createActivityEventAdapter, he as defaultActivitiesStrings, pe as defaultActivityEventConfig, fe as defaultEventConfig, ge as interpolateActivityString, me as resolveEventConfig, Je as toActivityLogEntry, ve as useActivityFeed, ye as useActivityResources };
1286
1309
 
1287
1310
  //# sourceMappingURL=activities.js.map