themelia-react-ui 2.0.5 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +76 -0
- package/MIGRATION.md +119 -0
- package/README.md +13 -6
- package/dist/{accordion-B9MHG0cT.js → accordion-0tQUZ20r.js} +7 -7
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-Dr8K-ghE.js → action-menu-C0gjzLyE.js} +7 -7
- package/dist/{action-menu-Dr8K-ghE.js.map → action-menu-C0gjzLyE.js.map} +1 -1
- package/dist/{ai-artifact-C58tQcBy.js → ai-artifact-CGGpQryR.js} +172 -157
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/{app-shell-B_IuNWOo.js → app-shell-EHuuRDGy.js} +5 -5
- package/dist/{app-shell-B_IuNWOo.js.map → app-shell-EHuuRDGy.js.map} +1 -1
- package/dist/{attachment-Dg_69lPS.js → attachment-BCpA4e7i.js} +8 -8
- package/dist/{attachment-Dg_69lPS.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-DTkkshS8.js → auth-B0girIk_.js} +15 -15
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-CeZaFmNH.js → avatar-B9Jnp-T-.js} +3 -3
- package/dist/{avatar-CeZaFmNH.js.map → avatar-B9Jnp-T-.js.map} +1 -1
- package/dist/{badge-xIiV_E7f.js → badge-wWauMgAt.js} +3 -3
- package/dist/{badge-xIiV_E7f.js.map → badge-wWauMgAt.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +8 -8
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +6 -6
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +195 -188
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +5 -5
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-Cb8cuvyy.js → batch-action-bar-BoqWIIpV.js} +5 -5
- package/dist/{batch-action-bar-Cb8cuvyy.js.map → batch-action-bar-BoqWIIpV.js.map} +1 -1
- package/dist/blocks/admin.js +17 -17
- package/dist/blocks/ai.js +227 -221
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +424 -449
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +225 -220
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +5 -5
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-J-K2kl4c.js → breadcrumbs-Bp9Ke7kd.js} +4 -4
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-S2Cubiiz.js → button-ChBovTx0.js} +2 -2
- package/dist/{button-S2Cubiiz.js.map → button-ChBovTx0.js.map} +1 -1
- package/dist/{buttons-BedGfygC.js → buttons-DeW0bQeK.js} +6 -6
- package/dist/{buttons-BedGfygC.js.map → buttons-DeW0bQeK.js.map} +1 -1
- package/dist/{cards-rNX1M4Xn.js → cards-CNXnmvV5.js} +8 -8
- package/dist/{cards-rNX1M4Xn.js.map → cards-CNXnmvV5.js.map} +1 -1
- package/dist/{cascader-B1MiqkBq.js → cascader-CrAl9zD5.js} +15 -15
- package/dist/{cascader-B1MiqkBq.js.map → cascader-CrAl9zD5.js.map} +1 -1
- package/dist/{chart-Darg_0Kv.js → chart-I7ROnsl8.js} +5 -5
- package/dist/{chart-Darg_0Kv.js.map → chart-I7ROnsl8.js.map} +1 -1
- package/dist/{checkbox-fflqmODR.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-fflqmODR.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/{choice-inputs-zUgBZfE4.js → choice-inputs-DHGtx0QV.js} +122 -110
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-BzmM9Eig.js → code-block-BSJyq9e-.js} +7 -7
- package/dist/{code-block-BzmM9Eig.js.map → code-block-BSJyq9e-.js.map} +1 -1
- package/dist/{collapsible-BkAI_XD4.js → collapsible-BzJ91LUG.js} +3 -3
- package/dist/{collapsible-BkAI_XD4.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-gDh1v6O4.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-gDh1v6O4.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/{combobox-BEx0vJgF.js → combobox-Bcvu5J8O.js} +11 -10
- package/dist/{combobox-BEx0vJgF.js.map → combobox-Bcvu5J8O.js.map} +1 -1
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-CrlPIL6m.js → command-9e52NPgK.js} +6 -6
- package/dist/{command-CrlPIL6m.js.map → command-9e52NPgK.js.map} +1 -1
- package/dist/{comments-Dmpp0YIc.js → comments-BsgErEqd.js} +33 -28
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/choice-inputs/choice-types.d.ts +4 -0
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sidebar/sidebar.d.ts +2 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +18 -11
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +4 -2
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/utils/filter-utils.d.ts +5 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +6 -0
- package/dist/components/features/media-library/media-library.types.d.ts +36 -8
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/products.types.d.ts +2 -2
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +2 -0
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +17 -1
- package/dist/components/layout/header/header.types.d.ts +3 -2
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/settings/settings.d.ts +1 -1
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +3 -1
- package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -0
- package/dist/components/layout/sidebar/sidebar.types.d.ts +2 -0
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/{containers-CIxwbZt5.js → containers-CSdc32h9.js} +2 -2
- package/dist/{containers-CIxwbZt5.js.map → containers-CSdc32h9.js.map} +1 -1
- package/dist/{copyable-DIznBqiT.js → copyable-3fdHfMR3.js} +4 -4
- package/dist/{copyable-DIznBqiT.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-BdgCAw8T.js → data-display-Cmj-xZYl.js} +16 -15
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Cq8ioE4o.js → date-Br0FicVv.js} +4 -4
- package/dist/{date-Cq8ioE4o.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-KsZLw9Ov.js → display-CT_N2a3w.js} +7 -7
- package/dist/{display-KsZLw9Ov.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/{dropdown-menu-CLs8Lihj.js → dropdown-menu-C08iIugv.js} +6 -6
- package/dist/{dropdown-menu-CLs8Lihj.js.map → dropdown-menu-C08iIugv.js.map} +1 -1
- package/dist/features/activities.js +283 -270
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +40 -27
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +126 -126
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +9 -9
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +10 -10
- package/dist/features/email-composer.js +24 -19
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +129 -125
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +16 -20
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +18 -28
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +331 -314
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1044 -866
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +978 -964
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +159 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +74 -71
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +400 -399
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DWcNcOjh.js → field-affordance-recipes-D6H7tVJi.js} +2 -2
- package/dist/{field-affordance-recipes-DWcNcOjh.js.map → field-affordance-recipes-D6H7tVJi.js.map} +1 -1
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/{filters-DzgSJpMK.js → filters-Dl80yYtN.js} +763 -605
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-Bs2qFUeE.js → form-sizing-CgcrUbLU.js} +2 -2
- package/dist/{form-sizing-Bs2qFUeE.js.map → form-sizing-CgcrUbLU.js.map} +1 -1
- package/dist/{forms-C0RGnJTe.js → forms-B3W8CH7-.js} +8 -8
- package/dist/{forms-C0RGnJTe.js.map → forms-B3W8CH7-.js.map} +1 -1
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-DMMxG__r.js → header-ZIIsRKxP.js} +113 -113
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-DB6CJ4MR.js → hooks-BitHSh-Y.js} +3 -3
- package/dist/{hooks-DB6CJ4MR.js.map → hooks-BitHSh-Y.js.map} +1 -1
- package/dist/{icon-badge-DZF-YjQp.js → icon-badge-npxF1SLX.js} +2 -2
- package/dist/{icon-badge-DZF-YjQp.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/{input-CvyDQlY7.js → input-7KAc7XQL.js} +6 -6
- package/dist/{input-CvyDQlY7.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/{input-DMBwAZmr.js → input-DIREVYHs.js} +3 -3
- package/dist/{input-DMBwAZmr.js.map → input-DIREVYHs.js.map} +1 -1
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/{item-DjCcM18E.js → item-FfWnaYST.js} +99 -98
- package/dist/item-FfWnaYST.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +11 -11
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +6 -6
- package/dist/lib/utils.js +1 -1
- package/dist/{media-gallery-C-vChPmE.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-C-vChPmE.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-0_4nWuI-.js → mentions-qOnedSt4.js} +236 -167
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-C3MkU-Om.js → metadata-list-XkqZ_UXH.js} +11 -11
- package/dist/{metadata-list-C3MkU-Om.js.map → metadata-list-XkqZ_UXH.js.map} +1 -1
- package/dist/{navigation-DaRjthVk.js → navigation-BgtPJAhi.js} +119 -119
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/{navigation-C90-oQFq.js → navigation-Bt-v7rWP.js} +52 -46
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-CRU3kGuk.js → number-CYqBcrSj.js} +78 -86
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/{overflow-tab-bar-IVFVQFV6.js → overflow-tab-bar-BQCA2Zn2.js} +7 -7
- package/dist/{overflow-tab-bar-IVFVQFV6.js.map → overflow-tab-bar-BQCA2Zn2.js.map} +1 -1
- package/dist/{overlays-BSgCtM2v.js → overlays-CC8zI3Du.js} +264 -260
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/{page-DUUKDAjo.js → page-BoQ1VaFJ.js} +13 -13
- package/dist/{page-DUUKDAjo.js.map → page-BoQ1VaFJ.js.map} +1 -1
- package/dist/{page-header-commands-7P3sfE9u.js → page-header-commands-DIKspJfx.js} +4 -4
- package/dist/{page-header-commands-7P3sfE9u.js.map → page-header-commands-DIKspJfx.js.map} +1 -1
- package/dist/{pagination-CgCjElfu.js → pagination-Br8TdV9A.js} +4 -4
- package/dist/{pagination-CgCjElfu.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/{popover-B85RenIl.js → popover-k8TdUcAt.js} +10 -10
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-DlnQ2zlR.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-DlnQ2zlR.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-DdiEp0rd.js → popover.recipes-DJ0AkUan.js} +2 -2
- package/dist/{popover.recipes-DdiEp0rd.js.map → popover.recipes-DJ0AkUan.js.map} +1 -1
- package/dist/{portal-recipes-BpsV_iRw.js → portal-recipes-DyUXqUtD.js} +2 -2
- package/dist/{portal-recipes-BpsV_iRw.js.map → portal-recipes-DyUXqUtD.js.map} +1 -1
- package/dist/{primitives-ByWgGUgt.js → primitives-BkkQjYl7.js} +22 -17
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BJhQP9WX.js → progress-DZFXXzPs.js} +4 -4
- package/dist/{progress-BJhQP9WX.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-tOc7B3hw.js → receipt-C7LhOg7Q.js} +6 -6
- package/dist/{receipt-tOc7B3hw.js.map → receipt-C7LhOg7Q.js.map} +1 -1
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/rich-text-editor-CAurDwT5.js +1273 -0
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-laT3tpBT.js → rich-text-editor-toolbar-DbXig7Jk.js} +36 -35
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-B0dB2cBi.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-B0dB2cBi.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-Bb17I4pu.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-Bb17I4pu.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-Ct_WSWTJ.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-Ct_WSWTJ.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/{sheet-BGPERY55.js → sheet-C4DHsgLk.js} +6 -6
- package/dist/{sheet-BGPERY55.js.map → sheet-C4DHsgLk.js.map} +1 -1
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/{sidebar-f9gRWXIR.js → sidebar-CmD6a-HK.js} +16 -13
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/{skeleton-BapcJd9C.js → skeleton-DDgdhmu9.js} +5 -5
- package/dist/{skeleton-BapcJd9C.js.map → skeleton-DDgdhmu9.js.map} +1 -1
- package/dist/{smart-card-CW0hjetE.js → smart-card-B6vLxqa_.js} +8 -8
- package/dist/{smart-card-CW0hjetE.js.map → smart-card-B6vLxqa_.js.map} +1 -1
- package/dist/{structure-DuxKl954.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-DuxKl954.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-CFOWY9pQ.js → table-CBonSdTp.js} +534 -486
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-B4TE7iOV.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/{tabs-e7ko9S2o.js → tabs-C4Kr_hCr.js} +50 -49
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-B1culiSK.js → text-inputs-jdkS3ReG.js} +9 -9
- package/dist/{text-inputs-B1culiSK.js.map → text-inputs-jdkS3ReG.js.map} +1 -1
- package/dist/{timelines-D3Sl9ueq.js → timelines-CoPwdJP0.js} +10 -10
- package/dist/{timelines-D3Sl9ueq.js.map → timelines-CoPwdJP0.js.map} +1 -1
- package/dist/{tooltip-8wz5S_Zr.js → tooltip-31NwIpTo.js} +4 -4
- package/dist/{tooltip-8wz5S_Zr.js.map → tooltip-31NwIpTo.js.map} +1 -1
- package/dist/{tree-CzUJHnFs.js → tree-CeYVzdFE.js} +6 -6
- package/dist/{tree-CzUJHnFs.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-BQnine1k.js → typography-C7-YMW1S.js} +2 -2
- package/dist/{typography-BQnine1k.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/{upload-BOW6U2tI.js → upload-Hdm5gObf.js} +303 -291
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-qUXn1ykN.js → upload-queue-D0sYPuqo.js} +8 -8
- package/dist/{upload-queue-qUXn1ykN.js.map → upload-queue-D0sYPuqo.js.map} +1 -1
- package/dist/{usage-card-BeSLY0i0.js → usage-card-9s8hLDfn.js} +9 -9
- package/dist/{usage-card-BeSLY0i0.js.map → usage-card-9s8hLDfn.js.map} +1 -1
- package/dist/{utils-B6kKb8jB.js → utils-DhuoqFy4.js} +31 -37
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/{value-inputs-skdVB2zh.js → value-inputs-D3aPgq9H.js} +15 -15
- package/dist/{value-inputs-skdVB2zh.js.map → value-inputs-D3aPgq9H.js.map} +1 -1
- package/dist/{value-typography-uAmWUAL1.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-DHeHv0qw.js → workspace-CC8Vchiu.js} +12 -12
- package/dist/{workspace-DHeHv0qw.js.map → workspace-CC8Vchiu.js.map} +1 -1
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/references/agents-md.md +19 -19
- package/docs/consumer-skill/references/analytics.md +15 -0
- package/docs/consumer-skill/references/component-contracts.json +14724 -13057
- package/docs/consumer-skill/references/composition.md +21 -4
- package/docs/consumer-skill/references/design-contract.md +1 -0
- package/docs/consumer-skill/references/installation.md +51 -8
- package/docs/consumer-skill/references/integration.md +24 -1
- package/docs/consumer-skill/references/public-api.json +172 -34
- package/docs/consumer-skill/references/review.md +51 -11
- package/docs/consumer-skill/references/rhf-workflows.md +72 -0
- package/docs/consumer-skill/references/theming.md +7 -2
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +144 -30
- package/docs/consumer-skill/scripts/setup-skills.mjs +46 -9
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-B9MHG0cT.js.map +0 -1
- package/dist/ai-artifact-C58tQcBy.js.map +0 -1
- package/dist/auth-DTkkshS8.js.map +0 -1
- package/dist/breadcrumbs-J-K2kl4c.js.map +0 -1
- package/dist/choice-inputs-zUgBZfE4.js.map +0 -1
- package/dist/combobox-BwzoXFSG.js +0 -884
- package/dist/combobox-BwzoXFSG.js.map +0 -1
- package/dist/comments-Dmpp0YIc.js.map +0 -1
- package/dist/data-display-BdgCAw8T.js.map +0 -1
- package/dist/date-picker-RlIzKom_.js +0 -1551
- package/dist/date-picker-RlIzKom_.js.map +0 -1
- package/dist/date-pickers-DY-CpXS1.js +0 -179
- package/dist/date-pickers-DY-CpXS1.js.map +0 -1
- package/dist/feedback-Dm4izqFn.js +0 -240
- package/dist/feedback-Dm4izqFn.js.map +0 -1
- package/dist/filters-DzgSJpMK.js.map +0 -1
- package/dist/form-field-BriWAXyg.js +0 -63
- package/dist/form-field-BriWAXyg.js.map +0 -1
- package/dist/forms-numeric-DIhghX1Q.js +0 -910
- package/dist/forms-numeric-DIhghX1Q.js.map +0 -1
- package/dist/header-DMMxG__r.js.map +0 -1
- package/dist/item-DjCcM18E.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-0_4nWuI-.js.map +0 -1
- package/dist/message-g8p7eVtN.js +0 -128
- package/dist/message-g8p7eVtN.js.map +0 -1
- package/dist/navigation-C90-oQFq.js.map +0 -1
- package/dist/navigation-DaRjthVk.js.map +0 -1
- package/dist/number-CRU3kGuk.js.map +0 -1
- package/dist/overlays-BSgCtM2v.js.map +0 -1
- package/dist/popover-B85RenIl.js.map +0 -1
- package/dist/primitives-ByWgGUgt.js.map +0 -1
- package/dist/rich-text-Dth5E882.js +0 -78
- package/dist/rich-text-Dth5E882.js.map +0 -1
- package/dist/rich-text-editor-C1fOjBTd.js +0 -1195
- package/dist/rich-text-editor-C1fOjBTd.js.map +0 -1
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-Bar5wiSo.js +0 -167
- package/dist/settings-Bar5wiSo.js.map +0 -1
- package/dist/sidebar-D-JYMMbY.js +0 -686
- package/dist/sidebar-D-JYMMbY.js.map +0 -1
- package/dist/sidebar-f9gRWXIR.js.map +0 -1
- package/dist/table-B4TE7iOV.js.map +0 -1
- package/dist/table-CFOWY9pQ.js.map +0 -1
- package/dist/tabs-e7ko9S2o.js.map +0 -1
- package/dist/upload-BOW6U2tI.js.map +0 -1
- package/dist/utils-B6kKb8jB.js.map +0 -1
- package/dist/value-typography-uAmWUAL1.js.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { u as e } from "../ui-provider-C-74NVLc.js";
|
|
3
3
|
import { useStrings as t } from "../lib/strings.js";
|
|
4
|
-
import { t as n } from "../utils-
|
|
5
|
-
import { n as r } from "../buttons-
|
|
6
|
-
import { c as i, i as a, t as o } from "../typography-
|
|
7
|
-
import { r as s, t as c } from "../structure-
|
|
4
|
+
import { t as n } from "../utils-DhuoqFy4.js";
|
|
5
|
+
import { n as r } from "../buttons-DeW0bQeK.js";
|
|
6
|
+
import { c as i, i as a, t as o } from "../typography-C7-YMW1S.js";
|
|
7
|
+
import { r as s, t as c } from "../structure-DZJ2wbAU.js";
|
|
8
8
|
import { i as l, n as u, t as d } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
-
import { n as f } from "../action-menu-
|
|
10
|
-
import { t as p } from "../interaction-recipes-
|
|
11
|
-
import { t as m } from "../icon-badge-
|
|
12
|
-
import { t as h } from "../badge-
|
|
13
|
-
import { s as g } from "../data-display-
|
|
14
|
-
import { o as _, r as v, u as y } from "../comments-
|
|
15
|
-
import {
|
|
9
|
+
import { n as f } from "../action-menu-C0gjzLyE.js";
|
|
10
|
+
import { t as p } from "../interaction-recipes-4wZ2tvfb.js";
|
|
11
|
+
import { t as m } from "../icon-badge-npxF1SLX.js";
|
|
12
|
+
import { t as h } from "../badge-wWauMgAt.js";
|
|
13
|
+
import { s as g } from "../data-display-Cmj-xZYl.js";
|
|
14
|
+
import { o as _, r as v, u as y } from "../comments-BsgErEqd.js";
|
|
15
|
+
import { s as b } from "../mentions-qOnedSt4.js";
|
|
16
16
|
import { Fragment as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
17
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 ee, ChevronRight as te, CircleDot as F, FileEdit as I, Flag as L, Heart as
|
|
19
|
-
import { format as Z, formatDistanceToNow as oe, isToday as se, isValid as
|
|
18
|
+
import { Activity as A, AlertTriangle as j, ArrowLeftRight as M, Ban as N, Check as P, ChevronDown as ee, ChevronRight as te, CircleDot as F, FileEdit as I, Flag as L, Heart as ne, LinkIcon as R, Mail as z, MailCheck as B, MailOpen as V, MailX as H, MessageCircle as U, MessageSquare as W, Pencil as G, Plus as K, ShieldCheck as q, ShoppingBag as J, Sparkles as Y, Star as X, Trash2 as re, UserMinus as ie, UserPlus as ae } from "lucide-react";
|
|
19
|
+
import { format as Z, formatDistanceToNow as oe, isToday as se, isValid as Q, isYesterday as ce, parseISO as le } from "date-fns";
|
|
20
20
|
//#region src/components/features/activities/activities.config.ts
|
|
21
|
-
var
|
|
21
|
+
var $ = {
|
|
22
22
|
icon: F,
|
|
23
23
|
tone: "neutral"
|
|
24
|
-
},
|
|
24
|
+
}, ue = {
|
|
25
25
|
created: {
|
|
26
|
-
icon:
|
|
26
|
+
icon: K,
|
|
27
27
|
tone: "success",
|
|
28
28
|
label: "Created"
|
|
29
29
|
},
|
|
30
30
|
updated: {
|
|
31
|
-
icon:
|
|
31
|
+
icon: G,
|
|
32
32
|
tone: "neutral",
|
|
33
33
|
label: "Updated"
|
|
34
34
|
},
|
|
@@ -48,7 +48,7 @@ var de = {
|
|
|
48
48
|
label: "Cancelled"
|
|
49
49
|
},
|
|
50
50
|
restored: {
|
|
51
|
-
icon:
|
|
51
|
+
icon: Y,
|
|
52
52
|
tone: "success",
|
|
53
53
|
label: "Restored"
|
|
54
54
|
},
|
|
@@ -78,42 +78,42 @@ var de = {
|
|
|
78
78
|
label: "Unassigned"
|
|
79
79
|
},
|
|
80
80
|
mail_sent: {
|
|
81
|
-
icon:
|
|
81
|
+
icon: z,
|
|
82
82
|
tone: "neutral",
|
|
83
83
|
label: "Email sent"
|
|
84
84
|
},
|
|
85
85
|
mail_delivered: {
|
|
86
|
-
icon:
|
|
86
|
+
icon: B,
|
|
87
87
|
tone: "success",
|
|
88
88
|
label: "Email delivered"
|
|
89
89
|
},
|
|
90
90
|
mail_opened: {
|
|
91
|
-
icon:
|
|
91
|
+
icon: V,
|
|
92
92
|
tone: "neutral",
|
|
93
93
|
label: "Email opened"
|
|
94
94
|
},
|
|
95
95
|
mail_clicked: {
|
|
96
|
-
icon:
|
|
96
|
+
icon: V,
|
|
97
97
|
tone: "neutral",
|
|
98
98
|
label: "Email clicked"
|
|
99
99
|
},
|
|
100
100
|
mail_bounced: {
|
|
101
|
-
icon:
|
|
101
|
+
icon: H,
|
|
102
102
|
tone: "destructive",
|
|
103
103
|
label: "Email bounced"
|
|
104
104
|
},
|
|
105
105
|
mail_failed: {
|
|
106
|
-
icon:
|
|
106
|
+
icon: H,
|
|
107
107
|
tone: "destructive",
|
|
108
108
|
label: "Email failed"
|
|
109
109
|
},
|
|
110
110
|
comment_created: {
|
|
111
|
-
icon:
|
|
111
|
+
icon: W,
|
|
112
112
|
tone: "neutral",
|
|
113
113
|
label: "Comment posted"
|
|
114
114
|
},
|
|
115
115
|
comment_deleted: {
|
|
116
|
-
icon:
|
|
116
|
+
icon: W,
|
|
117
117
|
tone: "destructive",
|
|
118
118
|
label: "Comment deleted"
|
|
119
119
|
},
|
|
@@ -128,17 +128,17 @@ var de = {
|
|
|
128
128
|
label: "Refunded"
|
|
129
129
|
},
|
|
130
130
|
confirmed: {
|
|
131
|
-
icon:
|
|
131
|
+
icon: q,
|
|
132
132
|
tone: "success",
|
|
133
133
|
label: "Confirmed"
|
|
134
134
|
},
|
|
135
135
|
favorited: {
|
|
136
|
-
icon:
|
|
136
|
+
icon: ne,
|
|
137
137
|
tone: "neutral",
|
|
138
138
|
label: "Favorited"
|
|
139
139
|
},
|
|
140
140
|
ordered: {
|
|
141
|
-
icon:
|
|
141
|
+
icon: J,
|
|
142
142
|
tone: "neutral",
|
|
143
143
|
label: "Order placed"
|
|
144
144
|
},
|
|
@@ -153,7 +153,7 @@ var de = {
|
|
|
153
153
|
label: "Flagged"
|
|
154
154
|
},
|
|
155
155
|
linked: {
|
|
156
|
-
icon:
|
|
156
|
+
icon: R,
|
|
157
157
|
tone: "neutral",
|
|
158
158
|
label: "Linked"
|
|
159
159
|
},
|
|
@@ -168,12 +168,12 @@ var de = {
|
|
|
168
168
|
label: "Health check failed"
|
|
169
169
|
}
|
|
170
170
|
};
|
|
171
|
-
function
|
|
172
|
-
return t[e] ??
|
|
171
|
+
function de(e, t) {
|
|
172
|
+
return t[e] ?? $;
|
|
173
173
|
}
|
|
174
174
|
//#endregion
|
|
175
175
|
//#region src/components/features/activities/activities.strings.ts
|
|
176
|
-
var
|
|
176
|
+
var fe = {
|
|
177
177
|
title: "Activity",
|
|
178
178
|
empty: "No activity yet.",
|
|
179
179
|
loading: "Loading activity…",
|
|
@@ -194,7 +194,7 @@ var pe = {
|
|
|
194
194
|
},
|
|
195
195
|
events: {}
|
|
196
196
|
};
|
|
197
|
-
function
|
|
197
|
+
function pe(e, t) {
|
|
198
198
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
199
199
|
let r = t[n];
|
|
200
200
|
return r === void 0 ? e : String(r);
|
|
@@ -202,12 +202,12 @@ function me(e, t) {
|
|
|
202
202
|
}
|
|
203
203
|
//#endregion
|
|
204
204
|
//#region src/components/features/activities/hooks/use-activity-feed.ts
|
|
205
|
-
function
|
|
205
|
+
function me(e, t, n) {
|
|
206
206
|
if (!e) return t.undated;
|
|
207
207
|
let r = new Date(e);
|
|
208
|
-
if (!
|
|
208
|
+
if (!Q(r)) return t.undated;
|
|
209
209
|
if (se(r)) return t.today;
|
|
210
|
-
if (
|
|
210
|
+
if (ce(r)) return t.yesterday;
|
|
211
211
|
try {
|
|
212
212
|
return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(r);
|
|
213
213
|
} catch {
|
|
@@ -218,7 +218,7 @@ function he(e, t, n) {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function he({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, defaultExpandedIds: r, expandedIds: i, onExpandedIdsChange: a, locale: o, strings: s, formatDateGroupLabel: c }) {
|
|
222
222
|
let [l, u] = E({}), d = i !== void 0, f = w(() => {
|
|
223
223
|
let t = /* @__PURE__ */ new Map();
|
|
224
224
|
return e.map((e) => {
|
|
@@ -238,7 +238,7 @@ function ge({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
238
238
|
label: "",
|
|
239
239
|
items: f
|
|
240
240
|
}] : [];
|
|
241
|
-
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) :
|
|
241
|
+
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : me(e, s, o);
|
|
242
242
|
for (let t of f) {
|
|
243
243
|
let a = i(t.activity.createdAt ?? null);
|
|
244
244
|
a === n ? r.push(t) : (r.length > 0 && e.push({
|
|
@@ -313,70 +313,68 @@ function ge({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
313
313
|
}
|
|
314
314
|
//#endregion
|
|
315
315
|
//#region src/components/features/activities/hooks/use-activity-resources.ts
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
316
|
+
var ge = Object.freeze({});
|
|
317
|
+
function _e(e, t) {
|
|
318
|
+
return e === t || e.label === t.label && e.href === t.href && e.icon === t.icon && e.tone === t.tone && e.note === t.note && e.badge?.label === t.badge?.label && e.badge?.tone === t.badge?.tone && e.tags?.length === t.tags?.length && (e.tags?.every((e, n) => e === t.tags?.[n]) ?? !0);
|
|
319
|
+
}
|
|
320
|
+
function ve(e, t) {
|
|
321
|
+
if (e === t) return !0;
|
|
322
|
+
let n = Object.keys(e);
|
|
323
|
+
return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) && _e(e[n], t[n]));
|
|
324
|
+
}
|
|
325
|
+
function ye({ resources: e, onResourcesChange: t } = {}) {
|
|
326
|
+
let n = e ?? ge, [r, i] = E(n), a = T(n), o = T(r), s = T(t);
|
|
322
327
|
C(() => {
|
|
323
|
-
|
|
328
|
+
s.current = t;
|
|
324
329
|
}, [t]);
|
|
325
|
-
let
|
|
326
|
-
|
|
327
|
-
}, [])
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
}, [o]), c = S((e, t) => {
|
|
336
|
-
r((n) => {
|
|
337
|
-
let r = n[e];
|
|
338
|
-
if (!r) return n;
|
|
339
|
-
let i = {
|
|
340
|
-
...n,
|
|
341
|
-
[e]: {
|
|
342
|
-
...r,
|
|
343
|
-
...t
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
return o(i), i;
|
|
330
|
+
let c = S((e, t = !0) => {
|
|
331
|
+
o.current = e, i(e), t && s.current?.(e);
|
|
332
|
+
}, []);
|
|
333
|
+
C(() => {
|
|
334
|
+
ve(a.current, n) || (a.current = n, c(n, !1));
|
|
335
|
+
}, [c, n]);
|
|
336
|
+
let l = S((e, t) => {
|
|
337
|
+
c({
|
|
338
|
+
...o.current,
|
|
339
|
+
[e]: t
|
|
347
340
|
});
|
|
348
|
-
}, [
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
341
|
+
}, [c]), u = S((e, t) => {
|
|
342
|
+
let n = o.current;
|
|
343
|
+
Object.hasOwn(n, e) && c({
|
|
344
|
+
...n,
|
|
345
|
+
[e]: {
|
|
346
|
+
...n[e],
|
|
347
|
+
...t
|
|
348
|
+
}
|
|
353
349
|
});
|
|
354
|
-
}, [
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
let
|
|
358
|
-
|
|
359
|
-
}, [
|
|
350
|
+
}, [c]), d = S((e) => {
|
|
351
|
+
let t = o.current;
|
|
352
|
+
if (!Object.hasOwn(t, e)) return;
|
|
353
|
+
let n = { ...t };
|
|
354
|
+
delete n[e], c(n);
|
|
355
|
+
}, [c]), f = S((e) => c(e), [c]), p = S(() => {
|
|
356
|
+
c(a.current);
|
|
357
|
+
}, [c]);
|
|
360
358
|
return {
|
|
361
|
-
registry:
|
|
359
|
+
registry: r,
|
|
362
360
|
get: S((e) => {
|
|
363
361
|
let t = typeof e == "string" ? e : e.key;
|
|
364
|
-
return
|
|
365
|
-
}, [
|
|
366
|
-
register:
|
|
367
|
-
update:
|
|
368
|
-
remove:
|
|
369
|
-
setAll:
|
|
370
|
-
reset:
|
|
362
|
+
return Object.hasOwn(r, t) ? r[t] : void 0;
|
|
363
|
+
}, [r]),
|
|
364
|
+
register: l,
|
|
365
|
+
update: u,
|
|
366
|
+
remove: d,
|
|
367
|
+
setAll: f,
|
|
368
|
+
reset: p
|
|
371
369
|
};
|
|
372
370
|
}
|
|
373
371
|
//#endregion
|
|
374
372
|
//#region src/components/features/activities/partials/activity-actions-menu.tsx
|
|
375
|
-
function
|
|
373
|
+
function be(e) {
|
|
376
374
|
if (e === "destructive") return "destructive";
|
|
377
375
|
if (e === "primary" || e === "secondary") return e;
|
|
378
376
|
}
|
|
379
|
-
function
|
|
377
|
+
function xe({ activity: e, actions: t, onAction: n, label: r }) {
|
|
380
378
|
if (t.length === 0) return null;
|
|
381
379
|
let i = t.map((t) => ({
|
|
382
380
|
id: t.id,
|
|
@@ -384,7 +382,7 @@ function ye({ activity: e, actions: t, onAction: n, label: r }) {
|
|
|
384
382
|
label: t.label,
|
|
385
383
|
href: t.href,
|
|
386
384
|
disabled: t.disabled,
|
|
387
|
-
tone:
|
|
385
|
+
tone: be(t.tone),
|
|
388
386
|
onClick: () => {
|
|
389
387
|
t.onClick?.(e), n?.(t.id, e);
|
|
390
388
|
}
|
|
@@ -402,7 +400,7 @@ function ye({ activity: e, actions: t, onAction: n, label: r }) {
|
|
|
402
400
|
}
|
|
403
401
|
//#endregion
|
|
404
402
|
//#region src/components/features/activities/partials/activity-changes.tsx
|
|
405
|
-
function
|
|
403
|
+
function Se({ change: e }) {
|
|
406
404
|
let t = e.old !== null && e.old !== void 0, n = e.new !== null && e.new !== void 0;
|
|
407
405
|
return !t && !n ? /* @__PURE__ */ O(i, {
|
|
408
406
|
type: "inherit",
|
|
@@ -436,7 +434,7 @@ function be({ change: e }) {
|
|
|
436
434
|
]
|
|
437
435
|
});
|
|
438
436
|
}
|
|
439
|
-
function
|
|
437
|
+
function Ce({ changes: e, className: t }) {
|
|
440
438
|
return e.length === 0 ? null : /* @__PURE__ */ O("div", {
|
|
441
439
|
className: n("activity-changes--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", t),
|
|
442
440
|
children: /* @__PURE__ */ O(c, {
|
|
@@ -449,14 +447,14 @@ function xe({ changes: e, className: t }) {
|
|
|
449
447
|
weight: "medium",
|
|
450
448
|
className: "shrink-0",
|
|
451
449
|
children: e.label
|
|
452
|
-
}), /* @__PURE__ */ O(
|
|
450
|
+
}), /* @__PURE__ */ O(Se, { change: e })]
|
|
453
451
|
}, `${e.key}-${e.label}`))
|
|
454
452
|
})
|
|
455
453
|
});
|
|
456
454
|
}
|
|
457
455
|
//#endregion
|
|
458
456
|
//#region src/components/features/activities/partials/activity-date-label.tsx
|
|
459
|
-
function
|
|
457
|
+
function we({ label: e, first: t, className: r }) {
|
|
460
458
|
return e === "" ? null : /* @__PURE__ */ O(c, {
|
|
461
459
|
gap: "none",
|
|
462
460
|
className: n("activity-date-label--component", !t && "mt-space-md", r),
|
|
@@ -470,7 +468,7 @@ function Se({ label: e, first: t, className: r }) {
|
|
|
470
468
|
}
|
|
471
469
|
//#endregion
|
|
472
470
|
//#region src/components/features/activities/partials/activity-empty-state.tsx
|
|
473
|
-
function
|
|
471
|
+
function Te({ title: e, hint: t, className: r }) {
|
|
474
472
|
return /* @__PURE__ */ O(g, {
|
|
475
473
|
title: e,
|
|
476
474
|
description: t ?? !1,
|
|
@@ -485,29 +483,29 @@ function Ce({ title: e, hint: t, className: r }) {
|
|
|
485
483
|
}
|
|
486
484
|
//#endregion
|
|
487
485
|
//#region src/components/features/activities/partials/tone-tokens.ts
|
|
488
|
-
var
|
|
486
|
+
var Ee = (e) => ({
|
|
489
487
|
bg: l[e].tint,
|
|
490
488
|
fg: l[e].ink,
|
|
491
489
|
dot: l[e].solid,
|
|
492
490
|
line: l[e].line,
|
|
493
491
|
chipBg: l[e].tint,
|
|
494
492
|
chipFg: l[e].ink
|
|
495
|
-
}),
|
|
493
|
+
}), De = {
|
|
496
494
|
bg: "bg-muted",
|
|
497
495
|
fg: "text-muted-foreground",
|
|
498
496
|
dot: "bg-muted-foreground",
|
|
499
497
|
line: "bg-border",
|
|
500
498
|
chipBg: "bg-muted",
|
|
501
499
|
chipFg: "text-muted-foreground"
|
|
502
|
-
},
|
|
503
|
-
primary:
|
|
504
|
-
success:
|
|
505
|
-
warning:
|
|
506
|
-
destructive:
|
|
507
|
-
info:
|
|
508
|
-
neutral:
|
|
509
|
-
secondary:
|
|
510
|
-
},
|
|
500
|
+
}, Oe = {
|
|
501
|
+
primary: Ee("primary"),
|
|
502
|
+
success: Ee("success"),
|
|
503
|
+
warning: Ee("warning"),
|
|
504
|
+
destructive: Ee("destructive"),
|
|
505
|
+
info: Ee("info"),
|
|
506
|
+
neutral: De,
|
|
507
|
+
secondary: De
|
|
508
|
+
}, ke = {
|
|
511
509
|
primary: "primary",
|
|
512
510
|
success: "success",
|
|
513
511
|
warning: "warning",
|
|
@@ -518,8 +516,8 @@ var $ = (e) => ({
|
|
|
518
516
|
};
|
|
519
517
|
//#endregion
|
|
520
518
|
//#region src/components/features/activities/partials/activity-resource-tag.tsx
|
|
521
|
-
function
|
|
522
|
-
let s = t?.tone ?? "neutral", c =
|
|
519
|
+
function Ae({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
520
|
+
let s = t?.tone ?? "neutral", c = Oe[s], l = t?.icon ?? F, u = t?.label ?? a ?? e.label ?? e.key, d = typeof o == "function", f = /* @__PURE__ */ k(D, { children: [
|
|
523
521
|
/* @__PURE__ */ O(l, { className: n("size-icon-sm shrink-0", c.fg) }),
|
|
524
522
|
/* @__PURE__ */ O(i, {
|
|
525
523
|
type: "inherit",
|
|
@@ -539,7 +537,7 @@ function De({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
|
539
537
|
!!t?.badge && /* @__PURE__ */ O(h, {
|
|
540
538
|
inline: !0,
|
|
541
539
|
size: "sm",
|
|
542
|
-
tone:
|
|
540
|
+
tone: ke[t.badge.tone ?? "neutral"],
|
|
543
541
|
className: "ml-space-2xs",
|
|
544
542
|
children: t.badge.label
|
|
545
543
|
})
|
|
@@ -558,7 +556,7 @@ function De({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
|
558
556
|
}) : /* @__PURE__ */ O(h, {
|
|
559
557
|
inline: !0,
|
|
560
558
|
size: "sm",
|
|
561
|
-
tone: s === "primary" ? "neutral" :
|
|
559
|
+
tone: s === "primary" ? "neutral" : ke[s],
|
|
562
560
|
className: "activity-resource-tag--component",
|
|
563
561
|
title: t?.note,
|
|
564
562
|
children: f
|
|
@@ -566,7 +564,7 @@ function De({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
|
566
564
|
}
|
|
567
565
|
//#endregion
|
|
568
566
|
//#region src/components/features/activities/partials/activity-headline.tsx
|
|
569
|
-
function
|
|
567
|
+
function je({ actorId: e, text: t, href: n, activity: s, youLabel: c, currentUserId: l, onActorClick: u }) {
|
|
570
568
|
let d = l !== void 0 && e !== void 0 && l === e ? c : t, f = s.actor ?? {
|
|
571
569
|
id: e,
|
|
572
570
|
name: t
|
|
@@ -601,11 +599,11 @@ function Oe({ actorId: e, text: t, href: n, activity: s, youLabel: c, currentUse
|
|
|
601
599
|
children: d
|
|
602
600
|
});
|
|
603
601
|
}
|
|
604
|
-
function
|
|
602
|
+
function Me(e, t) {
|
|
605
603
|
return e.map((e, n) => {
|
|
606
604
|
let r = `seg-${n}-${e.type}`;
|
|
607
605
|
switch (e.type) {
|
|
608
|
-
case "actor": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(
|
|
606
|
+
case "actor": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(je, {
|
|
609
607
|
actorId: e.actorId,
|
|
610
608
|
text: e.text,
|
|
611
609
|
href: e.href,
|
|
@@ -619,17 +617,17 @@ function ke(e, t) {
|
|
|
619
617
|
type: "inherit",
|
|
620
618
|
tag: "span",
|
|
621
619
|
weight: "semibold",
|
|
622
|
-
children: e.text
|
|
620
|
+
children: e.content ?? e.text
|
|
623
621
|
}), " "] }, r);
|
|
624
622
|
case "status": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(h, {
|
|
625
623
|
inline: !0,
|
|
626
624
|
size: "sm",
|
|
627
|
-
tone:
|
|
628
|
-
children: e.text
|
|
625
|
+
tone: ke[e.tone ?? "neutral"],
|
|
626
|
+
children: e.content ?? e.text
|
|
629
627
|
}), " "] }, r);
|
|
630
628
|
case "resource": {
|
|
631
629
|
let n = t.getResourceConfig?.(e.resource);
|
|
632
|
-
return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(
|
|
630
|
+
return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(Ae, {
|
|
633
631
|
resource: e.resource,
|
|
634
632
|
config: n,
|
|
635
633
|
fallbackText: e.text,
|
|
@@ -639,12 +637,12 @@ function ke(e, t) {
|
|
|
639
637
|
default: return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(i, {
|
|
640
638
|
type: "inherit",
|
|
641
639
|
tag: "span",
|
|
642
|
-
children: e.text
|
|
640
|
+
children: e.content ?? e.text
|
|
643
641
|
}), " "] }, r);
|
|
644
642
|
}
|
|
645
643
|
});
|
|
646
644
|
}
|
|
647
|
-
function
|
|
645
|
+
function Ne(e) {
|
|
648
646
|
let { activity: t } = e, n = t.headline ?? t.event, r = t.actor?.name;
|
|
649
647
|
if (!r || !n.includes(r)) return /* @__PURE__ */ O(i, {
|
|
650
648
|
type: "inherit",
|
|
@@ -658,7 +656,7 @@ function Ae(e) {
|
|
|
658
656
|
tag: "span",
|
|
659
657
|
children: a
|
|
660
658
|
}),
|
|
661
|
-
/* @__PURE__ */ O(
|
|
659
|
+
/* @__PURE__ */ O(je, {
|
|
662
660
|
actorId: t.actor?.id,
|
|
663
661
|
text: r,
|
|
664
662
|
href: t.actor?.href,
|
|
@@ -674,20 +672,20 @@ function Ae(e) {
|
|
|
674
672
|
})
|
|
675
673
|
] });
|
|
676
674
|
}
|
|
677
|
-
function
|
|
675
|
+
function Pe(e) {
|
|
678
676
|
let t = e.activity.segments;
|
|
679
677
|
return t && t.length > 0 ? /* @__PURE__ */ O("span", {
|
|
680
678
|
className: "activity-headline--component leading-snug [&>span]:leading-snug",
|
|
681
|
-
children:
|
|
679
|
+
children: Me(t, e)
|
|
682
680
|
}) : /* @__PURE__ */ O("span", {
|
|
683
681
|
className: "activity-headline--component leading-snug",
|
|
684
|
-
children:
|
|
682
|
+
children: Ne(e)
|
|
685
683
|
});
|
|
686
684
|
}
|
|
687
685
|
//#endregion
|
|
688
686
|
//#region src/components/features/activities/partials/activity-marker.tsx
|
|
689
|
-
function
|
|
690
|
-
let o =
|
|
687
|
+
function Fe({ icon: e, tone: t, density: r, last: i, className: a }) {
|
|
688
|
+
let o = Oe[t], s = Oe.neutral, c = r === "compact" ? /* @__PURE__ */ O("span", {
|
|
691
689
|
"aria-hidden": !0,
|
|
692
690
|
className: n(d.marker, o.dot)
|
|
693
691
|
}) : r === "rich" ? /* @__PURE__ */ O(m, {
|
|
@@ -712,7 +710,7 @@ function Me({ icon: e, tone: t, density: r, last: i, className: a }) {
|
|
|
712
710
|
}
|
|
713
711
|
//#endregion
|
|
714
712
|
//#region src/components/features/activities/partials/activity-row.tsx
|
|
715
|
-
function
|
|
713
|
+
function Ie({ metadata: e }) {
|
|
716
714
|
return /* @__PURE__ */ O(s, {
|
|
717
715
|
columns: {
|
|
718
716
|
base: 1,
|
|
@@ -740,48 +738,48 @@ function Ne({ metadata: e }) {
|
|
|
740
738
|
}, e.label))
|
|
741
739
|
});
|
|
742
740
|
}
|
|
743
|
-
function
|
|
741
|
+
function Le(e) {
|
|
744
742
|
return e != null && e !== !1;
|
|
745
743
|
}
|
|
746
|
-
function
|
|
744
|
+
function Re({ activity: e, density: t, detailsCollapsible: n, customDetails: r, actions: i }) {
|
|
747
745
|
if (t !== "rich") return {
|
|
748
746
|
disclosure: !1,
|
|
749
747
|
menu: !1
|
|
750
748
|
};
|
|
751
749
|
let a = (e.changes?.length ?? 0) > 0, o = (e.metadata?.length ?? 0) > 0;
|
|
752
750
|
return {
|
|
753
|
-
disclosure: (o || a ||
|
|
751
|
+
disclosure: (o || a || Le(e.details) || Le(r)) && (n ?? (o || a)),
|
|
754
752
|
menu: i.some((e) => e.presentation !== "inline")
|
|
755
753
|
};
|
|
756
754
|
}
|
|
757
|
-
var
|
|
758
|
-
function
|
|
759
|
-
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: F, markerClassName: I, contentClassName: L, detailsClassName:
|
|
755
|
+
var ze = "activity-row--trailing-slot size-action-sm shrink-0";
|
|
756
|
+
function Be(e) {
|
|
757
|
+
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: F, markerClassName: I, contentClassName: L, detailsClassName: ne, reserveDisclosure: R = !1, reserveMenu: z = !1 } = 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, G = t.details !== void 0 && t.details !== null && t.details !== !1, K = P != null && P !== !1, q = U || V || G || K, J = t.description !== void 0 && t.description !== null && t.description !== "", Y = a !== "compact", X = a === "rich", re = m ?? (U || V), ie = X && q && (!re || d), ae = X && (!(q && re) || d), Z = w.filter((e) => e.presentation === "inline"), oe = w.filter((e) => e.presentation !== "inline"), se = Re({
|
|
760
758
|
activity: t,
|
|
761
759
|
density: a,
|
|
762
760
|
detailsCollapsible: m,
|
|
763
761
|
customDetails: P,
|
|
764
762
|
actions: w
|
|
765
|
-
}), ce = M ?? /* @__PURE__ */ O(
|
|
763
|
+
}), Q = t.sourceContent ?? v, ce = M ?? /* @__PURE__ */ O(Pe, {
|
|
766
764
|
activity: t,
|
|
767
765
|
currentUserId: C,
|
|
768
766
|
youLabel: y,
|
|
769
767
|
onActorClick: E,
|
|
770
768
|
onResourceClick: D,
|
|
771
769
|
getResourceConfig: j
|
|
772
|
-
}), le = N ?? /* @__PURE__ */ O(
|
|
773
|
-
icon:
|
|
770
|
+
}), le = N ?? /* @__PURE__ */ O(Fe, {
|
|
771
|
+
icon: B,
|
|
774
772
|
tone: l,
|
|
775
773
|
density: a,
|
|
776
774
|
last: u,
|
|
777
775
|
className: I
|
|
778
|
-
}),
|
|
776
|
+
}), $ = typeof T == "function", ue = V || W || oe.length > 0 || Z.length > 0 || typeof E == "function" || typeof D == "function", de = $ && !ue, fe = a === "rich" ? "gap-space-md py-space-xs" : a === "compact" ? "gap-space-sm py-space-2xs" : "gap-space-md py-space-2xs", pe = u ? "" : o === "compact" ? "pb-space-sm" : o === "relaxed" ? "pb-space-xl" : "pb-space-md";
|
|
779
777
|
return /* @__PURE__ */ k("div", {
|
|
780
|
-
className: n("activity-row--component relative flex", fe,
|
|
781
|
-
onClick:
|
|
782
|
-
role:
|
|
783
|
-
tabIndex:
|
|
784
|
-
onKeyDown:
|
|
778
|
+
className: n("activity-row--component relative flex", fe, $ && `cursor-pointer rounded-radius ${p.rowHover}`, F),
|
|
779
|
+
onClick: $ ? () => T?.(t) : void 0,
|
|
780
|
+
role: de ? "button" : void 0,
|
|
781
|
+
tabIndex: de ? 0 : void 0,
|
|
782
|
+
onKeyDown: de ? (e) => {
|
|
785
783
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), T?.(t));
|
|
786
784
|
} : void 0,
|
|
787
785
|
children: [le, /* @__PURE__ */ k("div", {
|
|
@@ -803,11 +801,11 @@ function Le(e) {
|
|
|
803
801
|
lineHeight: "snug",
|
|
804
802
|
className: "min-w-0 break-words [overflow-wrap:anywhere]",
|
|
805
803
|
children: ce
|
|
806
|
-
}),
|
|
804
|
+
}), Q != null && Q !== "" && typeof Q != "boolean" && /* @__PURE__ */ O(h, {
|
|
807
805
|
inline: !0,
|
|
808
806
|
size: "sm",
|
|
809
807
|
tone: "secondary",
|
|
810
|
-
children:
|
|
808
|
+
children: Q
|
|
811
809
|
})]
|
|
812
810
|
})
|
|
813
811
|
}), /* @__PURE__ */ k(c, {
|
|
@@ -842,22 +840,22 @@ function Le(e) {
|
|
|
842
840
|
"aria-label": d ? x : b,
|
|
843
841
|
"aria-expanded": d,
|
|
844
842
|
children: O(d ? ee : te, { className: "size-icon-sm" })
|
|
845
|
-
}) :
|
|
843
|
+
}) : R && X ? /* @__PURE__ */ O("span", {
|
|
846
844
|
"aria-hidden": "true",
|
|
847
|
-
className:
|
|
845
|
+
className: ze
|
|
848
846
|
}) : null,
|
|
849
|
-
se.menu ? /* @__PURE__ */ O(
|
|
847
|
+
se.menu ? /* @__PURE__ */ O(xe, {
|
|
850
848
|
activity: t,
|
|
851
849
|
actions: oe,
|
|
852
850
|
onAction: A,
|
|
853
851
|
label: S
|
|
854
|
-
}) :
|
|
852
|
+
}) : z && X ? /* @__PURE__ */ O("span", {
|
|
855
853
|
"aria-hidden": "true",
|
|
856
|
-
className:
|
|
854
|
+
className: ze
|
|
857
855
|
}) : null
|
|
858
856
|
]
|
|
859
857
|
})]
|
|
860
|
-
}), !!
|
|
858
|
+
}), !!Y && J && /* @__PURE__ */ O(i, {
|
|
861
859
|
tag: "div",
|
|
862
860
|
type: "secondary",
|
|
863
861
|
lineHeight: "relaxed",
|
|
@@ -865,13 +863,13 @@ function Le(e) {
|
|
|
865
863
|
children: t.description
|
|
866
864
|
})]
|
|
867
865
|
}),
|
|
868
|
-
ae &&
|
|
866
|
+
ae && W && t.resources && /* @__PURE__ */ O(c, {
|
|
869
867
|
direction: "horizontal",
|
|
870
868
|
gap: "xs",
|
|
871
869
|
className: "mt-space-sm",
|
|
872
870
|
children: t.resources.map((e) => {
|
|
873
871
|
let n = j?.(e);
|
|
874
|
-
return /* @__PURE__ */ O(
|
|
872
|
+
return /* @__PURE__ */ O(Ae, {
|
|
875
873
|
resource: e,
|
|
876
874
|
config: n,
|
|
877
875
|
onClick: D ? () => D(e, n, t) : void 0
|
|
@@ -881,20 +879,20 @@ function Le(e) {
|
|
|
881
879
|
ie && /* @__PURE__ */ O("div", {
|
|
882
880
|
className: "mt-space-sm",
|
|
883
881
|
children: /* @__PURE__ */ O("div", {
|
|
884
|
-
className: n("activity-row--details",
|
|
882
|
+
className: n("activity-row--details", ne),
|
|
885
883
|
children: /* @__PURE__ */ k(c, {
|
|
886
884
|
gap: "md",
|
|
887
885
|
children: [
|
|
888
|
-
|
|
889
|
-
|
|
886
|
+
U && /* @__PURE__ */ O(Ie, { metadata: H }),
|
|
887
|
+
V && t.changes && /* @__PURE__ */ O(Ce, {
|
|
890
888
|
changes: t.changes,
|
|
891
889
|
className: "border-0 bg-transparent p-0"
|
|
892
890
|
}),
|
|
893
|
-
|
|
891
|
+
G && /* @__PURE__ */ O("div", {
|
|
894
892
|
className: "activity-row--details-body",
|
|
895
893
|
children: t.details
|
|
896
894
|
}),
|
|
897
|
-
|
|
895
|
+
K && /* @__PURE__ */ O("div", {
|
|
898
896
|
className: "activity-row--details-custom",
|
|
899
897
|
children: P
|
|
900
898
|
})
|
|
@@ -929,54 +927,53 @@ function Le(e) {
|
|
|
929
927
|
}
|
|
930
928
|
//#endregion
|
|
931
929
|
//#region src/components/features/activities/activities-feed.tsx
|
|
932
|
-
function
|
|
930
|
+
function Ve(e, t) {
|
|
933
931
|
try {
|
|
934
932
|
let n = new Date(e);
|
|
935
|
-
return
|
|
933
|
+
return Q(n) ? Z(n, "PP p", t ? { locale: t } : void 0) : e;
|
|
936
934
|
} catch {
|
|
937
935
|
return e;
|
|
938
936
|
}
|
|
939
937
|
}
|
|
940
|
-
function
|
|
938
|
+
function He(e, t) {
|
|
941
939
|
return typeof e == "function" ? e(t) : e;
|
|
942
940
|
}
|
|
943
|
-
function
|
|
941
|
+
function Ue(e, t) {
|
|
944
942
|
return e.toneOverride ?? t;
|
|
945
943
|
}
|
|
946
|
-
function
|
|
947
|
-
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: ee, onActivityExpandedChange: te, resources: F, onResourcesChange: I } = r, L = t(
|
|
948
|
-
...
|
|
944
|
+
function We(r) {
|
|
945
|
+
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: ee, onActivityExpandedChange: te, resources: F, onResourcesChange: I } = r, L = t(fe, v), ne = w(() => ({
|
|
946
|
+
...ue,
|
|
949
947
|
..._
|
|
950
|
-
}), [_]),
|
|
948
|
+
}), [_]), R = ye({
|
|
951
949
|
resources: F,
|
|
952
950
|
onResourcesChange: I
|
|
953
|
-
}),
|
|
951
|
+
}), z = e(), B = S ?? z.locale, V = he({
|
|
954
952
|
activities: a,
|
|
955
953
|
groupByDate: l,
|
|
956
954
|
expandedByDefault: u,
|
|
957
955
|
defaultExpandedIds: f,
|
|
958
956
|
expandedIds: p,
|
|
959
957
|
onExpandedIdsChange: m,
|
|
960
|
-
locale:
|
|
958
|
+
locale: B,
|
|
961
959
|
strings: L,
|
|
962
960
|
formatDateGroupLabel: E
|
|
963
|
-
}),
|
|
964
|
-
|
|
965
|
-
className:
|
|
961
|
+
}), H = C ?? z.formatRelativeTime ?? ((e) => e), U = T ?? ((e) => Ve(e, B)), W = null;
|
|
962
|
+
g ? W = /* @__PURE__ */ O("div", {
|
|
963
|
+
className: "px-space-md py-space-xl",
|
|
966
964
|
children: y?.loading ?? /* @__PURE__ */ O(i, {
|
|
967
965
|
type: "secondary",
|
|
968
966
|
align: "center",
|
|
969
967
|
children: L.loading
|
|
970
968
|
})
|
|
971
|
-
})
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
let G = H.groups.reduce((e, t) => e + t.items.length, 0), K = 0, q = H.groups.map((e) => ({
|
|
969
|
+
}) : a.length === 0 && (W = /* @__PURE__ */ O("div", {
|
|
970
|
+
className: "px-space-md py-space-md",
|
|
971
|
+
children: y?.empty ?? /* @__PURE__ */ O(Te, { title: L.empty })
|
|
972
|
+
}));
|
|
973
|
+
let G = W === null ? V.groups : [], K = G.reduce((e, t) => e + t.items.length, 0), q = 0, J = G.map((e) => ({
|
|
977
974
|
group: e,
|
|
978
975
|
rows: e.items.map((e, t) => {
|
|
979
|
-
let n = e.activity, r = t === 0, i = ++
|
|
976
|
+
let n = e.activity, r = t === 0, i = ++q === K, a = de(n.event, ne), c = Ue(n, a.tone), l = n.timestamp ?? (n.createdAt ? H(n.createdAt) : null), u = n.createdAt ? U(n.createdAt) : null, f = n.source ? A?.(n.source) ?? L.sources[n.source] ?? a.sourceLabel ?? null : a.sourceLabel ?? null, p = f && f.trim().length > 0 ? f : null, m = j?.(n) ?? [], h = {
|
|
980
977
|
density: o,
|
|
981
978
|
isLast: i,
|
|
982
979
|
isFirstInGroup: r,
|
|
@@ -986,10 +983,10 @@ function Ve(r) {
|
|
|
986
983
|
relativeTime: l,
|
|
987
984
|
absoluteTime: u,
|
|
988
985
|
sourceLabel: p,
|
|
989
|
-
expanded:
|
|
986
|
+
expanded: V.isExpanded(n.id),
|
|
990
987
|
itemSpacing: s,
|
|
991
|
-
setExpanded: (e) =>
|
|
992
|
-
toggleExpanded: () =>
|
|
988
|
+
setExpanded: (e) => V.setExpanded(n.id, e),
|
|
989
|
+
toggleExpanded: () => V.toggleExpanded(n.id)
|
|
993
990
|
}, g = y?.renderDetails?.(n, h), _ = y?.renderRow?.(n, h), v = n.collapsible ?? d;
|
|
994
991
|
return {
|
|
995
992
|
keyed: e,
|
|
@@ -1005,7 +1002,7 @@ function Ve(r) {
|
|
|
1005
1002
|
customDetails: g,
|
|
1006
1003
|
customRow: _,
|
|
1007
1004
|
rowDetailsCollapsible: v,
|
|
1008
|
-
trailing: _ === void 0 ?
|
|
1005
|
+
trailing: _ === void 0 ? Re({
|
|
1009
1006
|
activity: n,
|
|
1010
1007
|
density: o,
|
|
1011
1008
|
detailsCollapsible: v,
|
|
@@ -1017,19 +1014,19 @@ function Ve(r) {
|
|
|
1017
1014
|
}
|
|
1018
1015
|
};
|
|
1019
1016
|
})
|
|
1020
|
-
})),
|
|
1017
|
+
})), Y = J.some(({ rows: e }) => e.some((e) => e.trailing.disclosure)), X = J.some(({ rows: e }) => e.some((e) => e.trailing.menu));
|
|
1021
1018
|
return /* @__PURE__ */ k(c, {
|
|
1022
1019
|
gap: "xl",
|
|
1023
1020
|
className: n("activities-feed--component", x),
|
|
1024
1021
|
children: [
|
|
1025
1022
|
!!y?.header && /* @__PURE__ */ O("div", { children: y.header }),
|
|
1026
|
-
/* @__PURE__ */ O("div", {
|
|
1023
|
+
W ?? /* @__PURE__ */ O("div", {
|
|
1027
1024
|
className: "flex flex-col",
|
|
1028
|
-
children:
|
|
1025
|
+
children: J.map(({ group: e, rows: t }, r) => {
|
|
1029
1026
|
let i = r === 0;
|
|
1030
1027
|
return /* @__PURE__ */ k("div", {
|
|
1031
1028
|
className: n(i ? "" : "mt-1"),
|
|
1032
|
-
children: [y?.renderDateLabel ? y.renderDateLabel(e.label, i) : /* @__PURE__ */ O(
|
|
1029
|
+
children: [y?.renderDateLabel ? y.renderDateLabel(e.label, i) : /* @__PURE__ */ O(we, {
|
|
1033
1030
|
label: e.label,
|
|
1034
1031
|
first: i
|
|
1035
1032
|
}), /* @__PURE__ */ O("div", {
|
|
@@ -1038,7 +1035,7 @@ function Ve(r) {
|
|
|
1038
1035
|
let { keyed: t, activity: n, ctx: r } = e;
|
|
1039
1036
|
if (e.customRow !== void 0) return /* @__PURE__ */ O("div", { children: e.customRow }, t.key);
|
|
1040
1037
|
let i = y?.renderHeadline?.(n, r), a = y?.renderMarker?.(n, r);
|
|
1041
|
-
return /* @__PURE__ */ O(
|
|
1038
|
+
return /* @__PURE__ */ O(Be, {
|
|
1042
1039
|
activity: n,
|
|
1043
1040
|
density: o,
|
|
1044
1041
|
itemSpacing: s,
|
|
@@ -1047,7 +1044,7 @@ function Ve(r) {
|
|
|
1047
1044
|
last: e.isLast,
|
|
1048
1045
|
expanded: r.expanded,
|
|
1049
1046
|
onExpandedChange: (e) => {
|
|
1050
|
-
|
|
1047
|
+
V.setExpanded(n.id, e), te?.(n, e);
|
|
1051
1048
|
},
|
|
1052
1049
|
detailsCollapsible: e.rowDetailsCollapsible,
|
|
1053
1050
|
relativeTime: e.relativeTime,
|
|
@@ -1064,16 +1061,16 @@ function Ve(r) {
|
|
|
1064
1061
|
onActorClick: N,
|
|
1065
1062
|
onResourceClick: P,
|
|
1066
1063
|
onAction: ee,
|
|
1067
|
-
getResourceConfig: (e) =>
|
|
1064
|
+
getResourceConfig: (e) => R.get(e),
|
|
1068
1065
|
headlineOverride: i,
|
|
1069
1066
|
markerOverride: a,
|
|
1070
1067
|
customDetails: e.customDetails,
|
|
1071
|
-
rowClassName:
|
|
1072
|
-
markerClassName:
|
|
1073
|
-
contentClassName:
|
|
1074
|
-
detailsClassName:
|
|
1075
|
-
reserveDisclosure:
|
|
1076
|
-
reserveMenu:
|
|
1068
|
+
rowClassName: He(b?.row, n),
|
|
1069
|
+
markerClassName: He(b?.marker, n),
|
|
1070
|
+
contentClassName: He(b?.content, n),
|
|
1071
|
+
detailsClassName: He(b?.details, n),
|
|
1072
|
+
reserveDisclosure: Y,
|
|
1073
|
+
reserveMenu: X
|
|
1077
1074
|
}, t.key);
|
|
1078
1075
|
})
|
|
1079
1076
|
})]
|
|
@@ -1084,30 +1081,60 @@ function Ve(r) {
|
|
|
1084
1081
|
]
|
|
1085
1082
|
});
|
|
1086
1083
|
}
|
|
1087
|
-
|
|
1084
|
+
We.displayName = "ActivityFeed";
|
|
1088
1085
|
//#endregion
|
|
1089
1086
|
//#region src/components/features/activities/activity-log.tsx
|
|
1090
|
-
function
|
|
1087
|
+
function Ge(e, t) {
|
|
1091
1088
|
let n = [...e];
|
|
1092
1089
|
return n.sort((e, n) => {
|
|
1093
1090
|
let r = e.timestamp ? new Date(e.timestamp).getTime() : 0, i = n.timestamp ? new Date(n.timestamp).getTime() : 0;
|
|
1094
1091
|
return t === "asc" ? r - i : i - r;
|
|
1095
1092
|
}), n;
|
|
1096
1093
|
}
|
|
1097
|
-
function
|
|
1094
|
+
function Ke(e) {
|
|
1098
1095
|
return e ?? "secondary";
|
|
1099
1096
|
}
|
|
1100
|
-
function
|
|
1097
|
+
function qe(e) {
|
|
1101
1098
|
if (e) return typeof e == "string" ? { name: e } : e;
|
|
1102
1099
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return e != null && e
|
|
1100
|
+
function Je(e) {
|
|
1101
|
+
return e != null && typeof e != "boolean";
|
|
1105
1102
|
}
|
|
1106
|
-
function
|
|
1103
|
+
function Ye(e) {
|
|
1104
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? { text: String(e) } : {
|
|
1105
|
+
text: "",
|
|
1106
|
+
content: e
|
|
1107
|
+
};
|
|
1108
|
+
}
|
|
1109
|
+
function Xe(e, t) {
|
|
1107
1110
|
if (e && t && t.kind !== "comment") return typeof e == "function" ? e(t) : e;
|
|
1108
1111
|
}
|
|
1109
|
-
function
|
|
1110
|
-
let n =
|
|
1112
|
+
function Ze(e, t) {
|
|
1113
|
+
let n = qe(e.actor), r = Je(e.status), i = r ? e.status : e.target, a = Je(i), o = [];
|
|
1114
|
+
if (e.action || a || !Je(e.headline)) {
|
|
1115
|
+
if (n && o.push({
|
|
1116
|
+
type: "actor",
|
|
1117
|
+
text: n.name,
|
|
1118
|
+
actorId: n.id
|
|
1119
|
+
}), e.action && o.push({
|
|
1120
|
+
type: "text",
|
|
1121
|
+
text: e.action
|
|
1122
|
+
}), a) {
|
|
1123
|
+
let t = Ye(i);
|
|
1124
|
+
o.push(r ? {
|
|
1125
|
+
type: "status",
|
|
1126
|
+
...t,
|
|
1127
|
+
tone: e.tone
|
|
1128
|
+
} : {
|
|
1129
|
+
type: "value",
|
|
1130
|
+
...t
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1133
|
+
} else typeof e.headline != "string" && o.push({
|
|
1134
|
+
type: "text",
|
|
1135
|
+
...Ye(e.headline)
|
|
1136
|
+
});
|
|
1137
|
+
let s = e.descriptionHtml ? /* @__PURE__ */ O(b, {
|
|
1111
1138
|
html: e.descriptionHtml,
|
|
1112
1139
|
mentions: e.mentions,
|
|
1113
1140
|
resources: t
|
|
@@ -1116,79 +1143,62 @@ function qe(e, t) {
|
|
|
1116
1143
|
id: e.id,
|
|
1117
1144
|
event: e.event ?? e.kind,
|
|
1118
1145
|
source: typeof e.label == "string" ? e.label : void 0,
|
|
1146
|
+
sourceContent: typeof e.label == "string" ? void 0 : e.label,
|
|
1119
1147
|
actor: n,
|
|
1120
1148
|
createdAt: e.timestamp,
|
|
1121
1149
|
timestamp: void 0,
|
|
1122
1150
|
iconOverride: e.icon,
|
|
1123
|
-
toneOverride:
|
|
1151
|
+
toneOverride: Ke(e.tone),
|
|
1124
1152
|
headline: typeof e.headline == "string" ? e.headline : void 0,
|
|
1125
|
-
description:
|
|
1153
|
+
description: s,
|
|
1126
1154
|
metadata: e.metadata,
|
|
1127
1155
|
changes: e.changes,
|
|
1128
1156
|
details: e.details,
|
|
1129
1157
|
collapsible: e.collapsible,
|
|
1130
1158
|
defaultExpanded: e.defaultExpanded,
|
|
1131
1159
|
data: e,
|
|
1132
|
-
segments:
|
|
1133
|
-
...n ? [{
|
|
1134
|
-
type: "actor",
|
|
1135
|
-
text: n.name,
|
|
1136
|
-
actorId: n.id
|
|
1137
|
-
}] : [],
|
|
1138
|
-
...e.action ? [{
|
|
1139
|
-
type: "text",
|
|
1140
|
-
text: e.action
|
|
1141
|
-
}] : [],
|
|
1142
|
-
...Ge(e.target) ? [{
|
|
1143
|
-
type: "value",
|
|
1144
|
-
text: String(e.target)
|
|
1145
|
-
}] : [],
|
|
1146
|
-
...!n && !e.action && !e.target && e.headline ? [{
|
|
1147
|
-
type: "text",
|
|
1148
|
-
text: String(e.headline)
|
|
1149
|
-
}] : []
|
|
1150
|
-
] : void 0
|
|
1160
|
+
segments: o
|
|
1151
1161
|
};
|
|
1152
1162
|
}
|
|
1153
|
-
function
|
|
1154
|
-
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: ee = !1, title: te, getMediaUrl: F, getMediaName: I, getStatusLabel: L, formatRelativeTime:
|
|
1155
|
-
let t =
|
|
1163
|
+
function Qe(r) {
|
|
1164
|
+
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: ee = !1, title: te, getMediaUrl: F, getMediaName: I, getStatusLabel: L, formatRelativeTime: ne, className: R } = r, z = t(fe, b), B = e(), V = S((e) => {
|
|
1165
|
+
let t = ne ?? B.formatRelativeTime;
|
|
1156
1166
|
if (t) return t(e);
|
|
1157
|
-
let n =
|
|
1158
|
-
if (!
|
|
1159
|
-
let r =
|
|
1167
|
+
let n = le(e);
|
|
1168
|
+
if (!Q(n)) return e;
|
|
1169
|
+
let r = B.locale;
|
|
1160
1170
|
return oe(n, {
|
|
1161
1171
|
addSuffix: !0,
|
|
1162
1172
|
...r ? { locale: r } : {}
|
|
1163
1173
|
});
|
|
1164
1174
|
}, [
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
]),
|
|
1175
|
+
B.formatRelativeTime,
|
|
1176
|
+
B.locale,
|
|
1177
|
+
ne
|
|
1178
|
+
]), H = y({
|
|
1169
1179
|
onSubmit: P?.onSubmit,
|
|
1170
1180
|
onAfterMutate: P?.onAfterMutate,
|
|
1171
1181
|
onError: P?.onError
|
|
1172
|
-
}),
|
|
1182
|
+
}), W = w(() => Ge(a, o), [a, o]), G = w(() => W.map((e) => e.kind === "comment" ? {
|
|
1173
1183
|
id: e.id,
|
|
1174
1184
|
event: "comment",
|
|
1175
1185
|
source: "comment",
|
|
1176
1186
|
createdAt: e.timestamp,
|
|
1177
1187
|
data: e
|
|
1178
|
-
} :
|
|
1179
|
-
row: (e) =>
|
|
1180
|
-
marker: (e) =>
|
|
1181
|
-
content: (e) =>
|
|
1182
|
-
details: (e) =>
|
|
1183
|
-
}), [N]),
|
|
1188
|
+
} : Ze(e, l)), [l, W]), K = w(() => ({
|
|
1189
|
+
row: (e) => Xe(N?.eventRow, e.data),
|
|
1190
|
+
marker: (e) => Xe(N?.eventMarker, e.data),
|
|
1191
|
+
content: (e) => Xe(N?.eventContent, e.data),
|
|
1192
|
+
details: (e) => Xe(N?.eventDetails, e.data)
|
|
1193
|
+
}), [N]), q = P?.enabled ? /* @__PURE__ */ O("div", {
|
|
1184
1194
|
className: "activity-log--composer",
|
|
1185
1195
|
children: /* @__PURE__ */ O(_, {
|
|
1186
1196
|
context: P.context,
|
|
1187
1197
|
canComment: !0,
|
|
1188
|
-
submitting:
|
|
1189
|
-
errors:
|
|
1190
|
-
resetKey:
|
|
1191
|
-
onSubmit:
|
|
1198
|
+
submitting: H.isSubmitting,
|
|
1199
|
+
errors: H.formErrors,
|
|
1200
|
+
resetKey: H.resetKey,
|
|
1201
|
+
onSubmit: H.submit,
|
|
1192
1202
|
resources: l,
|
|
1193
1203
|
onResourceSearch: u,
|
|
1194
1204
|
strings: g,
|
|
@@ -1196,8 +1206,8 @@ function Je(r) {
|
|
|
1196
1206
|
autoFocus: P.autoFocus,
|
|
1197
1207
|
inlineSubmit: P.inlineSubmit ?? !1
|
|
1198
1208
|
})
|
|
1199
|
-
}) : null,
|
|
1200
|
-
activities:
|
|
1209
|
+
}) : null, J = P?.position ?? "top", Y = /* @__PURE__ */ O(We, {
|
|
1210
|
+
activities: G,
|
|
1201
1211
|
density: "rich",
|
|
1202
1212
|
itemSpacing: s,
|
|
1203
1213
|
groupByDate: !0,
|
|
@@ -1207,8 +1217,8 @@ function Je(r) {
|
|
|
1207
1217
|
defaultExpandedIds: E,
|
|
1208
1218
|
expandedIds: D,
|
|
1209
1219
|
onExpandedIdsChange: A,
|
|
1210
|
-
formatRelativeTime:
|
|
1211
|
-
getSourceLabel: (e) =>
|
|
1220
|
+
formatRelativeTime: V,
|
|
1221
|
+
getSourceLabel: (e) => z.sources[e] ?? e,
|
|
1212
1222
|
actionsForActivity: (e) => {
|
|
1213
1223
|
let t = e.data;
|
|
1214
1224
|
if (!t || t.kind === "comment") return [];
|
|
@@ -1224,7 +1234,7 @@ function Je(r) {
|
|
|
1224
1234
|
onClick: () => e.onSelect?.(n)
|
|
1225
1235
|
}));
|
|
1226
1236
|
},
|
|
1227
|
-
rowClassNames:
|
|
1237
|
+
rowClassNames: K,
|
|
1228
1238
|
onAction: (e, t) => {
|
|
1229
1239
|
let n = t.data;
|
|
1230
1240
|
n && n.kind !== "comment" && M?.(e, n);
|
|
@@ -1234,8 +1244,8 @@ function Je(r) {
|
|
|
1234
1244
|
n && n.kind !== "comment" && j?.(n, t);
|
|
1235
1245
|
},
|
|
1236
1246
|
slots: {
|
|
1237
|
-
header:
|
|
1238
|
-
footer:
|
|
1247
|
+
header: J === "top" ? q : void 0,
|
|
1248
|
+
footer: J === "bottom" ? q : void 0,
|
|
1239
1249
|
renderRow: (e, t) => {
|
|
1240
1250
|
let r = e.data;
|
|
1241
1251
|
if (!r) return;
|
|
@@ -1246,7 +1256,7 @@ function Je(r) {
|
|
|
1246
1256
|
getMediaUrl: F,
|
|
1247
1257
|
getMediaName: I,
|
|
1248
1258
|
getStatusLabel: L,
|
|
1249
|
-
formatRelativeTime:
|
|
1259
|
+
formatRelativeTime: V
|
|
1250
1260
|
},
|
|
1251
1261
|
strings: g
|
|
1252
1262
|
});
|
|
@@ -1259,8 +1269,8 @@ function Je(r) {
|
|
|
1259
1269
|
wrap: !1,
|
|
1260
1270
|
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")),
|
|
1261
1271
|
"data-event-id": a.id,
|
|
1262
|
-
children: [/* @__PURE__ */ O(
|
|
1263
|
-
icon:
|
|
1272
|
+
children: [/* @__PURE__ */ O(Fe, {
|
|
1273
|
+
icon: U,
|
|
1264
1274
|
tone: "neutral",
|
|
1265
1275
|
density: t.density,
|
|
1266
1276
|
last: t.isLast
|
|
@@ -1278,7 +1288,7 @@ function Je(r) {
|
|
|
1278
1288
|
getMediaUrl: F,
|
|
1279
1289
|
getMediaName: I,
|
|
1280
1290
|
getStatusLabel: L,
|
|
1281
|
-
formatRelativeTime:
|
|
1291
|
+
formatRelativeTime: V
|
|
1282
1292
|
})
|
|
1283
1293
|
})]
|
|
1284
1294
|
});
|
|
@@ -1294,49 +1304,52 @@ function Je(r) {
|
|
|
1294
1304
|
});
|
|
1295
1305
|
}
|
|
1296
1306
|
},
|
|
1297
|
-
className: n("activity-log--component", N?.list, ee &&
|
|
1307
|
+
className: n("activity-log--component", N?.list, ee && R)
|
|
1298
1308
|
});
|
|
1299
|
-
if (ee) return
|
|
1300
|
-
let X = te ??
|
|
1309
|
+
if (ee) return Y;
|
|
1310
|
+
let X = te ?? z.title, re = typeof X == "string" ? X : void 0;
|
|
1301
1311
|
return /* @__PURE__ */ k(c, {
|
|
1302
1312
|
render: /* @__PURE__ */ O("section", {}),
|
|
1303
1313
|
gap: "lg",
|
|
1304
1314
|
"data-component": "activity-log",
|
|
1305
1315
|
"data-slot": "activity-log",
|
|
1306
|
-
className: n("activity-log--component",
|
|
1316
|
+
className: n("activity-log--component", R),
|
|
1307
1317
|
"aria-label": re,
|
|
1308
1318
|
children: [!!X && /* @__PURE__ */ O(i, {
|
|
1309
1319
|
type: "inherit",
|
|
1310
1320
|
weight: "semibold",
|
|
1311
1321
|
children: X
|
|
1312
|
-
}),
|
|
1322
|
+
}), Y]
|
|
1313
1323
|
});
|
|
1314
1324
|
}
|
|
1315
|
-
|
|
1325
|
+
Qe.displayName = "ActivityLog";
|
|
1316
1326
|
//#endregion
|
|
1317
1327
|
//#region src/components/features/activities/activity-event-adapter.ts
|
|
1318
|
-
function
|
|
1328
|
+
function $e(e) {
|
|
1319
1329
|
if (typeof e == "object" && e && "kind" in e) {
|
|
1320
1330
|
let t = e.kind;
|
|
1321
1331
|
if (typeof t == "string") return t;
|
|
1322
1332
|
}
|
|
1323
1333
|
return "event";
|
|
1324
1334
|
}
|
|
1325
|
-
function
|
|
1326
|
-
let n = t.kind?.(e) ??
|
|
1327
|
-
|
|
1335
|
+
function et(e, t) {
|
|
1336
|
+
let n = t.kind?.(e) ?? $e(e), r = t.id(e), i = t.timestamp(e), a = t.comment?.(e);
|
|
1337
|
+
if (n === "comment" && a) return {
|
|
1328
1338
|
id: r,
|
|
1329
1339
|
kind: "comment",
|
|
1330
1340
|
timestamp: i,
|
|
1331
1341
|
comment: a
|
|
1332
|
-
}
|
|
1342
|
+
};
|
|
1343
|
+
let o = t.target?.(e), s = o == null ? t.status?.(e) : void 0;
|
|
1344
|
+
return {
|
|
1333
1345
|
id: r,
|
|
1334
1346
|
kind: typeof n == "string" ? n : "event",
|
|
1335
1347
|
timestamp: i,
|
|
1336
1348
|
event: t.event?.(e),
|
|
1337
1349
|
actor: t.actor?.(e),
|
|
1338
1350
|
action: t.action?.(e),
|
|
1339
|
-
target:
|
|
1351
|
+
target: o ?? s,
|
|
1352
|
+
...s == null ? {} : { status: s },
|
|
1340
1353
|
label: t.source?.(e),
|
|
1341
1354
|
headline: t.title?.(e),
|
|
1342
1355
|
description: t.description?.(e),
|
|
@@ -1350,10 +1363,10 @@ function Xe(e, t) {
|
|
|
1350
1363
|
data: t.data?.(e) ?? e
|
|
1351
1364
|
};
|
|
1352
1365
|
}
|
|
1353
|
-
function
|
|
1354
|
-
return (t) =>
|
|
1366
|
+
function tt(e) {
|
|
1367
|
+
return (t) => et(t, e);
|
|
1355
1368
|
}
|
|
1356
1369
|
//#endregion
|
|
1357
|
-
export {
|
|
1370
|
+
export { xe as ActivityActionsMenu, Ce as ActivityChanges, we as ActivityDateLabel, Te as ActivityEmptyState, We as ActivityFeed, Pe as ActivityHeadline, Qe as ActivityLog, Fe as ActivityMarker, Ae as ActivityResourceTag, Be as ActivityRow, tt as createActivityEventAdapter, fe as defaultActivitiesStrings, ue as defaultActivityEventConfig, $ as defaultEventConfig, pe as interpolateActivityString, de as resolveEventConfig, et as toActivityLogEntry, he as useActivityFeed, ye as useActivityResources };
|
|
1358
1371
|
|
|
1359
1372
|
//# sourceMappingURL=activities.js.map
|