themelia-react-ui 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +527 -0
- package/README.md +47 -14
- package/THIRD_PARTY_NOTICES.md +13 -0
- package/dist/accordion-Cjb6sx0G.js +208 -0
- package/dist/accordion-Cjb6sx0G.js.map +1 -0
- package/dist/action-menu-CllU52Mm.js +280 -0
- package/dist/action-menu-CllU52Mm.js.map +1 -0
- package/dist/affordance-geometry.generated-tF36bREk.js +140 -0
- package/dist/affordance-geometry.generated-tF36bREk.js.map +1 -0
- package/dist/ai-artifact-DvTwDVyL.js +1148 -0
- package/dist/ai-artifact-DvTwDVyL.js.map +1 -0
- package/dist/{app-shell-BE_j8-AT.js → app-shell-C4FhvCqF.js} +5 -5
- package/dist/{app-shell-BE_j8-AT.js.map → app-shell-C4FhvCqF.js.map} +1 -1
- package/dist/attachment-BxDfL2mw.js +246 -0
- package/dist/attachment-BxDfL2mw.js.map +1 -0
- package/dist/{auth-M3vGMgDR.js → auth-ax2BqjrI.js} +241 -235
- package/dist/auth-ax2BqjrI.js.map +1 -0
- package/dist/{avatar-djdaaQ_s.js → avatar-DAPlDvhJ.js} +67 -66
- package/dist/avatar-DAPlDvhJ.js.map +1 -0
- package/dist/badge-HpFqoqSY.js +93 -0
- package/dist/badge-HpFqoqSY.js.map +1 -0
- 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 +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +50 -46
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +69 -81
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- 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 +7 -7
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +20 -20
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- 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 +216 -220
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +147 -137
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +79 -2
- package/dist/base/spinner.js.map +1 -0
- 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 +46 -45
- package/dist/base/toaster.js.map +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 +2 -2
- package/dist/batch-action-bar-DnUJ21NQ.js +105 -0
- package/dist/batch-action-bar-DnUJ21NQ.js.map +1 -0
- package/dist/blocks/admin.js +171 -169
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +308 -285
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +626 -589
- 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 +2051 -1329
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +68 -58
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +27 -26
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-C-oqs1sQ.js +129 -0
- package/dist/breadcrumbs-C-oqs1sQ.js.map +1 -0
- package/dist/{button-R9CCoH7A.js → button-DVzspB_G.js} +15 -14
- package/dist/button-DVzspB_G.js.map +1 -0
- package/dist/{button-BS3KDg00.js → buttons-DPZekJFu.js} +208 -216
- package/dist/buttons-DPZekJFu.js.map +1 -0
- package/dist/cards-BaBZR-AU.js +68 -0
- package/dist/cards-BaBZR-AU.js.map +1 -0
- package/dist/{chart-DwYRKKc-.js → chart-ZOYyK2xG.js} +58 -55
- package/dist/chart-ZOYyK2xG.js.map +1 -0
- package/dist/checkbox-AWIhNhmo.js +36 -0
- package/dist/checkbox-AWIhNhmo.js.map +1 -0
- package/dist/choice-inputs-CNHvARCJ.js +770 -0
- package/dist/choice-inputs-CNHvARCJ.js.map +1 -0
- package/dist/code-block-DeneBJR_.js +185 -0
- package/dist/code-block-DeneBJR_.js.map +1 -0
- package/dist/{collapsible-oMUGM4tr.js → collapsible-C-_l4hpy.js} +4 -4
- package/dist/{collapsible-oMUGM4tr.js.map → collapsible-C-_l4hpy.js.map} +1 -1
- package/dist/{collection-content-Ys-OZOkY.js → collection-content-By56pLog.js} +3 -3
- package/dist/{collection-content-Ys-OZOkY.js.map → collection-content-By56pLog.js.map} +1 -1
- package/dist/combobox-C0EQW6dr.js +875 -0
- package/dist/combobox-C0EQW6dr.js.map +1 -0
- package/dist/combobox-xCQ2RMNE.js +309 -0
- package/dist/combobox-xCQ2RMNE.js.map +1 -0
- package/dist/{command-kPMPjIxJ.js → command-C25VMRII.js} +7 -7
- package/dist/{command-kPMPjIxJ.js.map → command-C25VMRII.js.map} +1 -1
- package/dist/{comments-You0Bzbr.js → comments-BYYlTA8E.js} +390 -379
- package/dist/comments-BYYlTA8E.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +21 -4
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/badge/badge.recipes.d.ts +5 -5
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +1 -1
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/loader-button.d.ts +2 -1
- package/dist/components/base/cards/card.recipes.d.ts +2 -3
- package/dist/components/base/cards/partials/smart-card-skeleton.d.ts +3 -13
- package/dist/components/base/cards/smart-card.types.d.ts +11 -4
- package/dist/components/base/chart/chart.d.ts +2 -5
- package/dist/components/base/choice-inputs/checkbox.d.ts +2 -2
- package/dist/components/base/choice-inputs/choice-types.d.ts +18 -6
- package/dist/components/base/combobox/combobox.strings.d.ts +7 -0
- package/dist/components/base/combobox/index.d.ts +30 -4
- package/dist/components/base/display/alert-dialog.d.ts +6 -5
- package/dist/components/base/display/dialog.d.ts +4 -8
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +26 -15
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +26 -3
- package/dist/components/base/navigation/pagination.d.ts +5 -2
- package/dist/components/base/popover/popover.recipes.d.ts +15 -1
- package/dist/components/base/sheet/sheet.d.ts +4 -8
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/table/index.d.ts +9 -2
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +25 -3
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +36 -12
- package/dist/components/blocks/ai/ai-shimmer/ai-shimmer.d.ts +1 -1
- package/dist/components/blocks/ai/ai-shimmer/types.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +2 -1
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +45 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +12 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +16 -8
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-marker.d.ts +6 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +5 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +220 -0
- package/dist/components/features/appointment-calendar/appointment-calendar.utils.d.ts +41 -0
- package/dist/components/features/appointment-calendar/index.d.ts +3 -0
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +32 -0
- package/dist/components/features/appointment-calendar/partials/appointment-month.d.ts +13 -0
- package/dist/components/features/combobox/combobox.strings.d.ts +15 -1
- package/dist/components/features/combobox/types.d.ts +4 -0
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.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 +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +3 -3
- package/dist/components/features/overlays/overlays.types.d.ts +20 -0
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/products.types.d.ts +9 -2
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +7 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +54 -1
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +55 -1
- package/dist/components/features/table/table.types.d.ts +49 -11
- package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +33 -36
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/number.d.ts +4 -2
- package/dist/components/primitives/value.d.ts +3 -1
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/text-link.d.ts +8 -3
- package/dist/components/ui/checkbox.d.ts +4 -3
- package/dist/components/ui/combobox.d.ts +6 -2
- package/dist/components/ui/item.d.ts +8 -8
- package/dist/components/ui/overlay.recipes.d.ts +0 -9
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/tabs.d.ts +1 -1
- package/dist/{containers-D_L4mTVb.js → containers-Mu1LMGV1.js} +36 -35
- package/dist/containers-Mu1LMGV1.js.map +1 -0
- package/dist/{copyable-DDjTeW_j.js → copyable-ClBuk_UK.js} +6 -6
- package/dist/{copyable-DDjTeW_j.js.map → copyable-ClBuk_UK.js.map} +1 -1
- package/dist/data-display-DT_khPl_.js +971 -0
- package/dist/data-display-DT_khPl_.js.map +1 -0
- package/dist/{date-uf3z37Nm.js → date-DCrsDTZc.js} +5 -5
- package/dist/{date-uf3z37Nm.js.map → date-DCrsDTZc.js.map} +1 -1
- package/dist/date-picker-ay0Pha_a.js +1530 -0
- package/dist/date-picker-ay0Pha_a.js.map +1 -0
- package/dist/date-pickers-Ccw8DL2b.js +175 -0
- package/dist/date-pickers-Ccw8DL2b.js.map +1 -0
- package/dist/display-hAc1HjpI.js +344 -0
- package/dist/display-hAc1HjpI.js.map +1 -0
- package/dist/dropdown-menu-Cl4X7L5S.js +193 -0
- package/dist/dropdown-menu-Cl4X7L5S.js.map +1 -0
- package/dist/editable-text-recipe-Cn61kEcv.js +10 -0
- package/dist/editable-text-recipe-Cn61kEcv.js.map +1 -0
- package/dist/features/activities.js +478 -542
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +209 -199
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +683 -0
- package/dist/features/appointment-calendar.js.map +1 -0
- package/dist/features/async-preview.js +109 -107
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +30 -29
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +285 -283
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +282 -273
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +318 -318
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +146 -147
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -268
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +970 -863
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1137 -1124
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +206 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +24 -21
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +35 -33
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +11 -5
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +501 -496
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-BYIhtitP.js +239 -0
- package/dist/feedback-BYIhtitP.js.map +1 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js +41 -0
- package/dist/field-affordance-recipes-DZhnIL_Y.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-Da-gNPsE.js → filters-BGfvjP4d.js} +483 -472
- package/dist/filters-BGfvjP4d.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-VZRULhUK.js → form-field-CwH9y77i.js} +6 -5
- package/dist/form-field-CwH9y77i.js.map +1 -0
- package/dist/{form-sizing-uWP4lzVh.js → form-sizing-BdP_Mf5p.js} +45 -46
- package/dist/form-sizing-BdP_Mf5p.js.map +1 -0
- package/dist/{forms-DDeEnXSY.js → forms-B9G_xwzi.js} +22 -22
- package/dist/{forms-DDeEnXSY.js.map → forms-B9G_xwzi.js.map} +1 -1
- package/dist/forms-numeric-B_jraJaQ.js +906 -0
- package/dist/forms-numeric-B_jraJaQ.js.map +1 -0
- package/dist/{header-2ycNqGOR.js → header-CGXuhcRm.js} +164 -161
- package/dist/header-CGXuhcRm.js.map +1 -0
- package/dist/{hooks-DQ5SPwZw.js → hooks-Dkz0K2WT.js} +2 -2
- package/dist/{hooks-DQ5SPwZw.js.map → hooks-Dkz0K2WT.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-DYKIwvOV.js +55 -0
- package/dist/icon-badge-DYKIwvOV.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-CZw8iU99.js +21 -0
- package/dist/input-CZw8iU99.js.map +1 -0
- package/dist/input-DQdEd0YD.js +263 -0
- package/dist/input-DQdEd0YD.js.map +1 -0
- package/dist/interaction-recipes-XR9ZpVYL.js +25 -0
- package/dist/interaction-recipes-XR9ZpVYL.js.map +1 -0
- package/dist/item-K5_ghvze.js +275 -0
- package/dist/item-K5_ghvze.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.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 +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +72 -0
- package/dist/lib/editable-text-recipe.d.ts +4 -4
- package/dist/lib/field-affordance-recipes.d.ts +8 -3
- package/dist/lib/field-state-recipes.d.ts +9 -8
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/interaction-recipes.d.ts +40 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +1 -0
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +47 -7
- package/dist/lib/theme-mode-css.d.ts +7 -0
- package/dist/lib/token-merge.generated.d.ts +9 -6
- package/dist/lib/tone-recipes.d.ts +87 -0
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/types.d.ts +11 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-3zIVLMWH.js +203 -0
- package/dist/media-gallery-3zIVLMWH.js.map +1 -0
- package/dist/mentions-utuUvH1K.js +570 -0
- package/dist/mentions-utuUvH1K.js.map +1 -0
- package/dist/{message-YfFmbXNP.js → message-DZ_ruyUV.js} +7 -6
- package/dist/message-DZ_ruyUV.js.map +1 -0
- package/dist/metadata-list-8N16ZMW_.js +405 -0
- package/dist/metadata-list-8N16ZMW_.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-Bnotn4AQ.js +145 -0
- package/dist/navigation-Bnotn4AQ.js.map +1 -0
- package/dist/navigation-BzhHI3lo.js +269 -0
- package/dist/navigation-BzhHI3lo.js.map +1 -0
- package/dist/{navigation-row-recipes-DlU-4QYO.js → navigation-row-recipes-BFLCk_Aq.js} +2 -2
- package/dist/{navigation-row-recipes-DlU-4QYO.js.map → navigation-row-recipes-BFLCk_Aq.js.map} +1 -1
- package/dist/{number-CKRBYmZK.js → number-DbV1Dija.js} +36 -34
- package/dist/{number-CKRBYmZK.js.map → number-DbV1Dija.js.map} +1 -1
- package/dist/overflow-tab-bar-CWY7Nogn.js +282 -0
- package/dist/overflow-tab-bar-CWY7Nogn.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-DNWmZrJ4.js +1001 -0
- package/dist/overlays-DNWmZrJ4.js.map +1 -0
- package/dist/page-Bgl1F560.js +224 -0
- package/dist/page-Bgl1F560.js.map +1 -0
- package/dist/page-header-commands-DOb6WsfD.js +126 -0
- package/dist/page-header-commands-DOb6WsfD.js.map +1 -0
- package/dist/pagination-BL25hu2s.js +158 -0
- package/dist/pagination-BL25hu2s.js.map +1 -0
- package/dist/{popover-Dcv_9jxr.js → popover-7_m66eYW.js} +11 -10
- package/dist/popover-7_m66eYW.js.map +1 -0
- package/dist/popover-menu-B9WWygpa.js +100 -0
- package/dist/popover-menu-B9WWygpa.js.map +1 -0
- package/dist/{popover.recipes-wmbvL8Ah.js → popover.recipes-D3j8R8Yp.js} +18 -11
- package/dist/popover.recipes-D3j8R8Yp.js.map +1 -0
- package/dist/{primitives-BHrwQXFC.js → primitives-BFK08r9M.js} +45 -44
- package/dist/primitives-BFK08r9M.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-Br9WTFya.js → progress-B1VnCT0K.js} +9 -9
- package/dist/{progress-Br9WTFya.js.map → progress-B1VnCT0K.js.map} +1 -1
- package/dist/{receipt-CV89q1fs.js → receipt-BVSOH3Xo.js} +9 -6
- package/dist/{receipt-CV89q1fs.js.map → receipt-BVSOH3Xo.js.map} +1 -1
- package/dist/rich-text-GOUyKQ-s.js +78 -0
- package/dist/rich-text-GOUyKQ-s.js.map +1 -0
- package/dist/rich-text-editor-cRLC-eBK.js +1196 -0
- package/dist/rich-text-editor-cRLC-eBK.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js +94 -0
- package/dist/rich-text-editor-toolbar-DfXg0-VC.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-DcI-M1UT.js +48 -0
- package/dist/scroll-area-DcI-M1UT.js.map +1 -0
- package/dist/{separator-Do5GWDYi.js → separator-BDV-Y648.js} +3 -3
- package/dist/{separator-Do5GWDYi.js.map → separator-BDV-Y648.js.map} +1 -1
- package/dist/{separator-BMEvwnSX.js → separator-Bom7NsGO.js} +2 -2
- package/dist/{separator-BMEvwnSX.js.map → separator-Bom7NsGO.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +18 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +16 -4
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-ybnjVwbd.js +171 -0
- package/dist/settings-ybnjVwbd.js.map +1 -0
- package/dist/sheet-CGpB3omz.js +211 -0
- package/dist/sheet-CGpB3omz.js.map +1 -0
- package/dist/{sidebar-Cb8WzOvE.js → sidebar-A0ElHINE.js} +17 -16
- package/dist/sidebar-A0ElHINE.js.map +1 -0
- package/dist/{sidebar-Crc9M9JV.js → sidebar-CPx_7YBa.js} +205 -203
- package/dist/sidebar-CPx_7YBa.js.map +1 -0
- package/dist/{skeleton-DVMXr15h.js → skeleton-Byjnt7qr.js} +9 -9
- package/dist/{skeleton-DVMXr15h.js.map → skeleton-Byjnt7qr.js.map} +1 -1
- package/dist/smart-card-DiC5aac3.js +604 -0
- package/dist/smart-card-DiC5aac3.js.map +1 -0
- package/dist/{structure-hzCW-XsV.js → structure-BmisBK-3.js} +2 -2
- package/dist/{structure-hzCW-XsV.js.map → structure-BmisBK-3.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-BweFy_P9.js +1530 -0
- package/dist/table-BweFy_P9.js.map +1 -0
- package/dist/table-DsfzoUia.js +175 -0
- package/dist/table-DsfzoUia.js.map +1 -0
- package/dist/tabs-CDocW5D1.js +191 -0
- package/dist/tabs-CDocW5D1.js.map +1 -0
- package/dist/text-inputs-f9Ia-aCi.js +353 -0
- package/dist/text-inputs-f9Ia-aCi.js.map +1 -0
- package/dist/theme-mode-css-BB-_RYab.js +14 -0
- package/dist/theme-mode-css-BB-_RYab.js.map +1 -0
- package/dist/theme-scope-BJ6eE2xt.js +50 -0
- package/dist/theme-scope-BJ6eE2xt.js.map +1 -0
- package/dist/theme.css +285 -228
- package/dist/themes/green.css +16 -12
- package/dist/timelines-CwM_9IhD.js +457 -0
- package/dist/timelines-CwM_9IhD.js.map +1 -0
- package/dist/tone-recipes-BPsRAvhu.js +73 -0
- package/dist/tone-recipes-BPsRAvhu.js.map +1 -0
- package/dist/tooltip-yiRJUFjp.js +111 -0
- package/dist/tooltip-yiRJUFjp.js.map +1 -0
- package/dist/{tree-BotPlyiD.js → tree-WnKQzwbq.js} +69 -67
- package/dist/tree-WnKQzwbq.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-UTnveOEy.js +117 -0
- package/dist/typography-UTnveOEy.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-D2_TeLqw.js → ui-provider-C_U0Xma4.js} +13 -5
- package/dist/ui-provider-C_U0Xma4.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-B0WHW7ak.js → upload-CXyxmQBP.js} +210 -209
- package/dist/upload-CXyxmQBP.js.map +1 -0
- package/dist/{upload-queue-BHZ_wBfd.js → upload-queue-Boscubn9.js} +111 -111
- package/dist/upload-queue-Boscubn9.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-U0YBLTNT.js → usage-card-BhO5eqkX.js} +45 -29
- package/dist/usage-card-BhO5eqkX.js.map +1 -0
- package/dist/{utils-Cospvlj1.js → utils-BRhFDwuU.js} +114 -67
- package/dist/utils-BRhFDwuU.js.map +1 -0
- package/dist/value-inputs-DXPDjvBU.js +963 -0
- package/dist/value-inputs-DXPDjvBU.js.map +1 -0
- package/dist/{value-typography-Deb3yQZg.js → value-typography-BP8OG6h5.js} +2 -2
- package/dist/{value-typography-Deb3yQZg.js.map → value-typography-BP8OG6h5.js.map} +1 -1
- package/dist/workspace-Cdrg7k9f.js +408 -0
- package/dist/workspace-Cdrg7k9f.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +21 -22
- package/docs/consumer-skill/examples/app-layout.tsx +1 -1
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -12
- package/docs/consumer-skill/examples/edit.tsx +1 -1
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +1 -1
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +58 -13
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/installation.md +11 -1
- package/docs/consumer-skill/references/integration.md +4 -3
- package/docs/consumer-skill/references/public-api.json +956 -453
- package/docs/consumer-skill/references/review.md +32 -5
- package/docs/consumer-skill/references/theming.md +78 -9
- package/docs/consumer-skill/references/tokens.json +1 -1
- package/docs/consumer-skill/references/workflows.md +54 -10
- package/docs/consumer-skill/scripts/composition-policy.mjs +42 -11
- package/docs/consumer-skill/scripts/surface-policy.mjs +150 -5
- package/package.json +17 -5
- package/dist/accordion-CQXVcd7Q.js +0 -205
- package/dist/accordion-CQXVcd7Q.js.map +0 -1
- package/dist/action-menu-BTpyPWJ2.js +0 -264
- package/dist/action-menu-BTpyPWJ2.js.map +0 -1
- package/dist/affordance-geometry.generated-CCIXb2A1.js +0 -68
- package/dist/affordance-geometry.generated-CCIXb2A1.js.map +0 -1
- package/dist/ai-artifact-2PQ2fItc.js +0 -1112
- package/dist/ai-artifact-2PQ2fItc.js.map +0 -1
- package/dist/attachment-q69dlt5Y.js +0 -244
- package/dist/attachment-q69dlt5Y.js.map +0 -1
- package/dist/auth-M3vGMgDR.js.map +0 -1
- package/dist/avatar-djdaaQ_s.js.map +0 -1
- package/dist/badge-0tATj-tW.js +0 -92
- package/dist/badge-0tATj-tW.js.map +0 -1
- package/dist/breadcrumbs-BG_FfMK4.js +0 -128
- package/dist/breadcrumbs-BG_FfMK4.js.map +0 -1
- package/dist/button-BS3KDg00.js.map +0 -1
- package/dist/button-R9CCoH7A.js.map +0 -1
- package/dist/buttons-DS0ZIwJ_.js +0 -99
- package/dist/buttons-DS0ZIwJ_.js.map +0 -1
- package/dist/cards-QoJ4syG9.js +0 -66
- package/dist/cards-QoJ4syG9.js.map +0 -1
- package/dist/chart-DwYRKKc-.js.map +0 -1
- package/dist/checkbox-B7ygNTYp.js +0 -35
- package/dist/checkbox-B7ygNTYp.js.map +0 -1
- package/dist/choice-inputs-DrJ17tpL.js +0 -752
- package/dist/choice-inputs-DrJ17tpL.js.map +0 -1
- package/dist/code-block-CD0B7M93.js +0 -183
- package/dist/code-block-CD0B7M93.js.map +0 -1
- package/dist/combobox-6dvVny2q.js +0 -272
- package/dist/combobox-6dvVny2q.js.map +0 -1
- package/dist/combobox-CB7039j7.js +0 -865
- package/dist/combobox-CB7039j7.js.map +0 -1
- package/dist/comments-You0Bzbr.js.map +0 -1
- package/dist/components/layout/page/partials/page-header-commands.d.ts +0 -13
- package/dist/containers-D_L4mTVb.js.map +0 -1
- package/dist/data-display-3xWQUnMA.js +0 -1335
- package/dist/data-display-3xWQUnMA.js.map +0 -1
- package/dist/date-picker-DrDFj8Lo.js +0 -1527
- package/dist/date-picker-DrDFj8Lo.js.map +0 -1
- package/dist/date-pickers-CnFCb0n2.js +0 -174
- package/dist/date-pickers-CnFCb0n2.js.map +0 -1
- package/dist/display-DrdvPwF0.js +0 -343
- package/dist/display-DrdvPwF0.js.map +0 -1
- package/dist/dropdown-menu-CURh59jb.js +0 -193
- package/dist/dropdown-menu-CURh59jb.js.map +0 -1
- package/dist/editable-text-recipe-Bkm6wKHp.js +0 -10
- package/dist/editable-text-recipe-Bkm6wKHp.js.map +0 -1
- package/dist/feedback-C7nR0UtT.js +0 -232
- package/dist/feedback-C7nR0UtT.js.map +0 -1
- package/dist/field-affordance-recipes-CkOCdE2y.js +0 -46
- package/dist/field-affordance-recipes-CkOCdE2y.js.map +0 -1
- package/dist/field-state-recipes-C-MFBX_8.js +0 -11
- package/dist/field-state-recipes-C-MFBX_8.js.map +0 -1
- package/dist/filters-Da-gNPsE.js.map +0 -1
- package/dist/form-field-VZRULhUK.js.map +0 -1
- package/dist/form-sizing-uWP4lzVh.js.map +0 -1
- package/dist/forms-numeric-D3CO60IF.js +0 -905
- package/dist/forms-numeric-D3CO60IF.js.map +0 -1
- package/dist/header-2ycNqGOR.js.map +0 -1
- package/dist/icon-badge-DKlaKXoo.js +0 -53
- package/dist/icon-badge-DKlaKXoo.js.map +0 -1
- package/dist/input-BoLm9Hks.js +0 -20
- package/dist/input-BoLm9Hks.js.map +0 -1
- package/dist/input-DhQdBnV3.js +0 -255
- package/dist/input-DhQdBnV3.js.map +0 -1
- package/dist/item-xzh8Df65.js +0 -264
- package/dist/item-xzh8Df65.js.map +0 -1
- package/dist/media-gallery-DQUQ0m3O.js +0 -201
- package/dist/media-gallery-DQUQ0m3O.js.map +0 -1
- package/dist/mentions-DwnO1hh4.js +0 -564
- package/dist/mentions-DwnO1hh4.js.map +0 -1
- package/dist/message-YfFmbXNP.js.map +0 -1
- package/dist/navigation-Cbp5V8gG.js +0 -264
- package/dist/navigation-Cbp5V8gG.js.map +0 -1
- package/dist/navigation-Cs1npsPm.js +0 -300
- package/dist/navigation-Cs1npsPm.js.map +0 -1
- package/dist/overlay.recipes-CNO2S9V6.js +0 -34
- package/dist/overlay.recipes-CNO2S9V6.js.map +0 -1
- package/dist/overlays-DhZO7N-I.js +0 -994
- package/dist/overlays-DhZO7N-I.js.map +0 -1
- package/dist/page-C6R_8jFt.js +0 -325
- package/dist/page-C6R_8jFt.js.map +0 -1
- package/dist/page-header-hUTzcRZX.js +0 -112
- package/dist/page-header-hUTzcRZX.js.map +0 -1
- package/dist/pagination-Cm0jqa3I.js +0 -149
- package/dist/pagination-Cm0jqa3I.js.map +0 -1
- package/dist/popover-Dcv_9jxr.js.map +0 -1
- package/dist/popover-menu-DnRFKnHP.js +0 -99
- package/dist/popover-menu-DnRFKnHP.js.map +0 -1
- package/dist/popover.recipes-wmbvL8Ah.js.map +0 -1
- package/dist/primitives-BHrwQXFC.js.map +0 -1
- package/dist/rich-text-editor-CF8QYt5p.js +0 -574
- package/dist/rich-text-editor-CF8QYt5p.js.map +0 -1
- package/dist/rich-text-editor.recipes-CnrbmTS1.js +0 -81
- package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/rich-text-j-FGAeZW.js +0 -32
- package/dist/rich-text-j-FGAeZW.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-DRdr16Pt.js +0 -47
- package/dist/scroll-area-DRdr16Pt.js.map +0 -1
- package/dist/settings-DHk0L2MF.js +0 -161
- package/dist/settings-DHk0L2MF.js.map +0 -1
- package/dist/sheet-DRFNY1_D.js +0 -207
- package/dist/sheet-DRFNY1_D.js.map +0 -1
- package/dist/sidebar-Cb8WzOvE.js.map +0 -1
- package/dist/sidebar-Crc9M9JV.js.map +0 -1
- package/dist/smart-card-Bek-TwUp.js +0 -599
- package/dist/smart-card-Bek-TwUp.js.map +0 -1
- package/dist/spinner-CmTAbEp0.js +0 -80
- package/dist/spinner-CmTAbEp0.js.map +0 -1
- package/dist/surface-recipes-DOdoBXGm.js +0 -28
- package/dist/surface-recipes-DOdoBXGm.js.map +0 -1
- package/dist/table-D6zKeYQX.js +0 -162
- package/dist/table-D6zKeYQX.js.map +0 -1
- package/dist/table-Dn4XSrSB.js +0 -1444
- package/dist/table-Dn4XSrSB.js.map +0 -1
- package/dist/tabs-Dk8E_knt.js +0 -189
- package/dist/tabs-Dk8E_knt.js.map +0 -1
- package/dist/text-inputs-BFpku0Qd.js +0 -331
- package/dist/text-inputs-BFpku0Qd.js.map +0 -1
- package/dist/theme-scope-kStaAer0.js +0 -39
- package/dist/theme-scope-kStaAer0.js.map +0 -1
- package/dist/timelines-CxuAFIc2.js +0 -439
- package/dist/timelines-CxuAFIc2.js.map +0 -1
- package/dist/tree-BotPlyiD.js.map +0 -1
- package/dist/typography-CAr3dQhX.js +0 -116
- package/dist/typography-CAr3dQhX.js.map +0 -1
- package/dist/ui-provider-D2_TeLqw.js.map +0 -1
- package/dist/upload-B0WHW7ak.js.map +0 -1
- package/dist/upload-queue-BHZ_wBfd.js.map +0 -1
- package/dist/usage-card-U0YBLTNT.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-Cospvlj1.js.map +0 -1
- package/dist/value-inputs-CjfzGMsN.js +0 -854
- package/dist/value-inputs-CjfzGMsN.js.map +0 -1
- package/dist/workspace-YoFjXi6i.js +0 -394
- package/dist/workspace-YoFjXi6i.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,176 +1,179 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { o as e } from "../ui-provider-
|
|
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-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { r as
|
|
8
|
-
import { n as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
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-BYYlTA8E.js";
|
|
15
|
+
import { o as b } from "../mentions-utuUvH1K.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";
|
|
17
20
|
//#region src/components/features/activities/activities.config.ts
|
|
18
|
-
var
|
|
19
|
-
icon:
|
|
21
|
+
var fe = {
|
|
22
|
+
icon: I,
|
|
20
23
|
tone: "neutral"
|
|
21
|
-
},
|
|
24
|
+
}, pe = {
|
|
22
25
|
created: {
|
|
23
|
-
icon:
|
|
26
|
+
icon: ne,
|
|
24
27
|
tone: "success",
|
|
25
28
|
label: "Created"
|
|
26
29
|
},
|
|
27
30
|
updated: {
|
|
28
|
-
icon:
|
|
31
|
+
icon: K,
|
|
29
32
|
tone: "neutral",
|
|
30
33
|
label: "Updated"
|
|
31
34
|
},
|
|
32
35
|
edited: {
|
|
33
|
-
icon:
|
|
36
|
+
icon: L,
|
|
34
37
|
tone: "neutral",
|
|
35
38
|
label: "Edited"
|
|
36
39
|
},
|
|
37
40
|
deleted: {
|
|
38
|
-
icon:
|
|
41
|
+
icon: X,
|
|
39
42
|
tone: "destructive",
|
|
40
43
|
label: "Deleted"
|
|
41
44
|
},
|
|
42
45
|
cancelled: {
|
|
43
|
-
icon:
|
|
46
|
+
icon: N,
|
|
44
47
|
tone: "destructive",
|
|
45
48
|
label: "Cancelled"
|
|
46
49
|
},
|
|
47
50
|
restored: {
|
|
48
|
-
icon:
|
|
51
|
+
icon: J,
|
|
49
52
|
tone: "success",
|
|
50
53
|
label: "Restored"
|
|
51
54
|
},
|
|
52
55
|
status_changed: {
|
|
53
|
-
icon:
|
|
56
|
+
icon: M,
|
|
54
57
|
tone: "neutral",
|
|
55
58
|
label: "Status changed"
|
|
56
59
|
},
|
|
57
60
|
status_transition: {
|
|
58
|
-
icon:
|
|
61
|
+
icon: M,
|
|
59
62
|
tone: "neutral",
|
|
60
63
|
label: "Status changed"
|
|
61
64
|
},
|
|
62
65
|
status_override: {
|
|
63
|
-
icon:
|
|
66
|
+
icon: M,
|
|
64
67
|
tone: "warning",
|
|
65
68
|
label: "Status overridden"
|
|
66
69
|
},
|
|
67
70
|
assigned: {
|
|
68
|
-
icon:
|
|
71
|
+
icon: ae,
|
|
69
72
|
tone: "neutral",
|
|
70
73
|
label: "Assigned"
|
|
71
74
|
},
|
|
72
75
|
unassigned: {
|
|
73
|
-
icon:
|
|
76
|
+
icon: ie,
|
|
74
77
|
tone: "neutral",
|
|
75
78
|
label: "Unassigned"
|
|
76
79
|
},
|
|
77
80
|
mail_sent: {
|
|
78
|
-
icon:
|
|
81
|
+
icon: V,
|
|
79
82
|
tone: "neutral",
|
|
80
83
|
label: "Email sent"
|
|
81
84
|
},
|
|
82
85
|
mail_delivered: {
|
|
83
|
-
icon:
|
|
86
|
+
icon: H,
|
|
84
87
|
tone: "success",
|
|
85
88
|
label: "Email delivered"
|
|
86
89
|
},
|
|
87
90
|
mail_opened: {
|
|
88
|
-
icon:
|
|
91
|
+
icon: U,
|
|
89
92
|
tone: "neutral",
|
|
90
93
|
label: "Email opened"
|
|
91
94
|
},
|
|
92
95
|
mail_clicked: {
|
|
93
|
-
icon:
|
|
96
|
+
icon: U,
|
|
94
97
|
tone: "neutral",
|
|
95
98
|
label: "Email clicked"
|
|
96
99
|
},
|
|
97
100
|
mail_bounced: {
|
|
98
|
-
icon:
|
|
101
|
+
icon: W,
|
|
99
102
|
tone: "destructive",
|
|
100
103
|
label: "Email bounced"
|
|
101
104
|
},
|
|
102
105
|
mail_failed: {
|
|
103
|
-
icon:
|
|
106
|
+
icon: W,
|
|
104
107
|
tone: "destructive",
|
|
105
108
|
label: "Email failed"
|
|
106
109
|
},
|
|
107
110
|
comment_created: {
|
|
108
|
-
icon:
|
|
111
|
+
icon: G,
|
|
109
112
|
tone: "neutral",
|
|
110
113
|
label: "Comment posted"
|
|
111
114
|
},
|
|
112
115
|
comment_deleted: {
|
|
113
|
-
icon:
|
|
116
|
+
icon: G,
|
|
114
117
|
tone: "destructive",
|
|
115
118
|
label: "Comment deleted"
|
|
116
119
|
},
|
|
117
120
|
paid: {
|
|
118
|
-
icon:
|
|
121
|
+
icon: P,
|
|
119
122
|
tone: "success",
|
|
120
123
|
label: "Paid"
|
|
121
124
|
},
|
|
122
125
|
refunded: {
|
|
123
|
-
icon:
|
|
126
|
+
icon: M,
|
|
124
127
|
tone: "warning",
|
|
125
128
|
label: "Refunded"
|
|
126
129
|
},
|
|
127
130
|
confirmed: {
|
|
128
|
-
icon:
|
|
131
|
+
icon: re,
|
|
129
132
|
tone: "success",
|
|
130
133
|
label: "Confirmed"
|
|
131
134
|
},
|
|
132
135
|
favorited: {
|
|
133
|
-
icon:
|
|
136
|
+
icon: z,
|
|
134
137
|
tone: "neutral",
|
|
135
138
|
label: "Favorited"
|
|
136
139
|
},
|
|
137
140
|
ordered: {
|
|
138
|
-
icon:
|
|
141
|
+
icon: q,
|
|
139
142
|
tone: "neutral",
|
|
140
143
|
label: "Order placed"
|
|
141
144
|
},
|
|
142
145
|
published: {
|
|
143
|
-
icon:
|
|
146
|
+
icon: Y,
|
|
144
147
|
tone: "success",
|
|
145
148
|
label: "Published"
|
|
146
149
|
},
|
|
147
150
|
flagged: {
|
|
148
|
-
icon:
|
|
151
|
+
icon: R,
|
|
149
152
|
tone: "warning",
|
|
150
153
|
label: "Flagged"
|
|
151
154
|
},
|
|
152
155
|
linked: {
|
|
153
|
-
icon:
|
|
156
|
+
icon: B,
|
|
154
157
|
tone: "neutral",
|
|
155
158
|
label: "Linked"
|
|
156
159
|
},
|
|
157
160
|
failed: {
|
|
158
|
-
icon:
|
|
161
|
+
icon: j,
|
|
159
162
|
tone: "destructive",
|
|
160
163
|
label: "Failed"
|
|
161
164
|
},
|
|
162
165
|
health_check_failed: {
|
|
163
|
-
icon:
|
|
166
|
+
icon: j,
|
|
164
167
|
tone: "destructive",
|
|
165
168
|
label: "Health check failed"
|
|
166
169
|
}
|
|
167
170
|
};
|
|
168
|
-
function
|
|
169
|
-
return t[e] ??
|
|
171
|
+
function me(e, t) {
|
|
172
|
+
return t[e] ?? fe;
|
|
170
173
|
}
|
|
171
174
|
//#endregion
|
|
172
175
|
//#region src/components/features/activities/activities.strings.ts
|
|
173
|
-
var
|
|
176
|
+
var he = {
|
|
174
177
|
title: "Activity",
|
|
175
178
|
empty: "No activity yet.",
|
|
176
179
|
loading: "Loading activity…",
|
|
@@ -191,7 +194,7 @@ var se = {
|
|
|
191
194
|
},
|
|
192
195
|
events: {}
|
|
193
196
|
};
|
|
194
|
-
function
|
|
197
|
+
function ge(e, t) {
|
|
195
198
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
196
199
|
let r = t[n];
|
|
197
200
|
return r === void 0 ? e : String(r);
|
|
@@ -199,24 +202,24 @@ function ce(e, t) {
|
|
|
199
202
|
}
|
|
200
203
|
//#endregion
|
|
201
204
|
//#region src/components/features/activities/hooks/use-activity-feed.ts
|
|
202
|
-
function
|
|
205
|
+
function _e(e, t, n) {
|
|
203
206
|
if (!e) return t.undated;
|
|
204
207
|
let r = new Date(e);
|
|
205
|
-
if (!
|
|
206
|
-
if (
|
|
207
|
-
if (
|
|
208
|
+
if (!le(r)) return t.undated;
|
|
209
|
+
if (ce(r)) return t.today;
|
|
210
|
+
if (ue(r)) return t.yesterday;
|
|
208
211
|
try {
|
|
209
212
|
return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(r);
|
|
210
213
|
} catch {
|
|
211
214
|
try {
|
|
212
|
-
return
|
|
215
|
+
return oe(r, "PP", n ? { locale: n } : void 0);
|
|
213
216
|
} catch {
|
|
214
217
|
return e;
|
|
215
218
|
}
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
|
-
function
|
|
219
|
-
let [l, u] =
|
|
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(() => {
|
|
220
223
|
let t = /* @__PURE__ */ new Map();
|
|
221
224
|
return e.map((e) => {
|
|
222
225
|
let n = [
|
|
@@ -230,12 +233,12 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
230
233
|
key: `${n}:${r}`
|
|
231
234
|
};
|
|
232
235
|
});
|
|
233
|
-
}, [e]), p =
|
|
236
|
+
}, [e]), p = w(() => {
|
|
234
237
|
if (!t) return f.length > 0 ? [{
|
|
235
238
|
label: "",
|
|
236
239
|
items: f
|
|
237
240
|
}] : [];
|
|
238
|
-
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) :
|
|
241
|
+
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : _e(e, s, o);
|
|
239
242
|
for (let t of f) {
|
|
240
243
|
let a = i(t.activity.createdAt ?? null);
|
|
241
244
|
a === n ? r.push(t) : (r.length > 0 && e.push({
|
|
@@ -253,11 +256,11 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
253
256
|
o,
|
|
254
257
|
s,
|
|
255
258
|
c
|
|
256
|
-
]), m =
|
|
259
|
+
]), m = w(() => {
|
|
257
260
|
let e = new Set(r ?? []);
|
|
258
261
|
for (let t of f) t.activity.defaultExpanded === !0 && e.add(t.activity.id);
|
|
259
262
|
return e;
|
|
260
|
-
}, [f, r]), h =
|
|
263
|
+
}, [f, r]), h = w(() => new Set(i ?? []), [i]), g = S((e, t) => {
|
|
261
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);
|
|
262
265
|
t ? i.add(e) : i.delete(e);
|
|
263
266
|
let o = Array.from(i);
|
|
@@ -273,15 +276,15 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
273
276
|
d,
|
|
274
277
|
f,
|
|
275
278
|
a
|
|
276
|
-
]),
|
|
279
|
+
]), _ = S((e) => d ? h.has(e) : l[e] ?? (m.has(e) || n), [
|
|
277
280
|
h,
|
|
278
281
|
m,
|
|
279
282
|
n,
|
|
280
283
|
l,
|
|
281
284
|
d
|
|
282
|
-
]),
|
|
283
|
-
|
|
284
|
-
}, [
|
|
285
|
+
]), v = S((e) => {
|
|
286
|
+
g(e, !_(e));
|
|
287
|
+
}, [_, g]), y = S(() => {
|
|
285
288
|
let e = {};
|
|
286
289
|
for (let t of f) e[t.activity.id] = !0;
|
|
287
290
|
d || u(e), a?.(f.map((e) => e.activity.id));
|
|
@@ -289,7 +292,7 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
289
292
|
d,
|
|
290
293
|
f,
|
|
291
294
|
a
|
|
292
|
-
]),
|
|
295
|
+
]), b = S(() => {
|
|
293
296
|
let e = {};
|
|
294
297
|
for (let t of f) e[t.activity.id] = !1;
|
|
295
298
|
d || u(e), a?.([]);
|
|
@@ -301,27 +304,27 @@ function ue({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
301
304
|
return {
|
|
302
305
|
groups: p,
|
|
303
306
|
total: f.length,
|
|
304
|
-
isExpanded:
|
|
305
|
-
toggleExpanded:
|
|
306
|
-
setExpanded:
|
|
307
|
-
expandAll:
|
|
308
|
-
collapseAll:
|
|
307
|
+
isExpanded: _,
|
|
308
|
+
toggleExpanded: v,
|
|
309
|
+
setExpanded: g,
|
|
310
|
+
expandAll: y,
|
|
311
|
+
collapseAll: b
|
|
309
312
|
};
|
|
310
313
|
}
|
|
311
314
|
//#endregion
|
|
312
315
|
//#region src/components/features/activities/hooks/use-activity-resources.ts
|
|
313
|
-
function
|
|
314
|
-
let [n, r] =
|
|
315
|
-
|
|
316
|
+
function ye({ resources: e, onResourcesChange: t } = {}) {
|
|
317
|
+
let [n, r] = E(() => e ?? {}), i = T(e);
|
|
318
|
+
C(() => {
|
|
316
319
|
e !== i.current && (i.current = e, r(e ?? {}));
|
|
317
320
|
}, [e]);
|
|
318
|
-
let a =
|
|
319
|
-
|
|
321
|
+
let a = T(t);
|
|
322
|
+
C(() => {
|
|
320
323
|
a.current = t;
|
|
321
324
|
}, [t]);
|
|
322
|
-
let o =
|
|
325
|
+
let o = S((e) => {
|
|
323
326
|
a.current?.(e);
|
|
324
|
-
}, []), s =
|
|
327
|
+
}, []), s = S((e, t) => {
|
|
325
328
|
r((n) => {
|
|
326
329
|
let r = {
|
|
327
330
|
...n,
|
|
@@ -329,7 +332,7 @@ function de({ resources: e, onResourcesChange: t } = {}) {
|
|
|
329
332
|
};
|
|
330
333
|
return o(r), r;
|
|
331
334
|
});
|
|
332
|
-
}, [o]), c =
|
|
335
|
+
}, [o]), c = S((e, t) => {
|
|
333
336
|
r((n) => {
|
|
334
337
|
let r = n[e];
|
|
335
338
|
if (!r) return n;
|
|
@@ -342,21 +345,21 @@ function de({ resources: e, onResourcesChange: t } = {}) {
|
|
|
342
345
|
};
|
|
343
346
|
return o(i), i;
|
|
344
347
|
});
|
|
345
|
-
}, [o]), l =
|
|
348
|
+
}, [o]), l = S((e) => {
|
|
346
349
|
r((t) => {
|
|
347
350
|
if (!(e in t)) return t;
|
|
348
351
|
let n = { ...t };
|
|
349
352
|
return delete n[e], o(n), n;
|
|
350
353
|
});
|
|
351
|
-
}, [o]), u =
|
|
354
|
+
}, [o]), u = S((e) => {
|
|
352
355
|
r(e), o(e);
|
|
353
|
-
}, [o]), d =
|
|
356
|
+
}, [o]), d = S(() => {
|
|
354
357
|
let e = i.current ?? {};
|
|
355
358
|
r(e), o(e);
|
|
356
359
|
}, [o]);
|
|
357
360
|
return {
|
|
358
361
|
registry: n,
|
|
359
|
-
get:
|
|
362
|
+
get: S((e) => {
|
|
360
363
|
let t = typeof e == "string" ? e : e.key;
|
|
361
364
|
return n[t];
|
|
362
365
|
}, [n]),
|
|
@@ -369,11 +372,11 @@ function de({ resources: e, onResourcesChange: t } = {}) {
|
|
|
369
372
|
}
|
|
370
373
|
//#endregion
|
|
371
374
|
//#region src/components/features/activities/partials/activity-actions-menu.tsx
|
|
372
|
-
function
|
|
375
|
+
function be(e) {
|
|
373
376
|
if (e === "destructive") return "destructive";
|
|
374
377
|
if (e === "primary" || e === "secondary") return e;
|
|
375
378
|
}
|
|
376
|
-
function
|
|
379
|
+
function xe({ activity: e, actions: t, onAction: n, label: r }) {
|
|
377
380
|
if (t.length === 0) return null;
|
|
378
381
|
let i = t.map((t) => ({
|
|
379
382
|
id: t.id,
|
|
@@ -381,82 +384,84 @@ function pe({ activity: e, actions: t, onAction: n, label: r }) {
|
|
|
381
384
|
label: t.label,
|
|
382
385
|
href: t.href,
|
|
383
386
|
disabled: t.disabled,
|
|
384
|
-
|
|
387
|
+
tone: be(t.tone),
|
|
385
388
|
onClick: () => {
|
|
386
389
|
t.onClick?.(e), n?.(t.id, e);
|
|
387
390
|
}
|
|
388
391
|
}));
|
|
389
|
-
return /* @__PURE__ */
|
|
392
|
+
return /* @__PURE__ */ O(f, {
|
|
390
393
|
actions: i,
|
|
391
394
|
srText: r,
|
|
392
395
|
align: "end",
|
|
393
396
|
density: "table",
|
|
394
397
|
closeOnSelect: !0,
|
|
395
|
-
labelVisibility: "hidden",
|
|
396
398
|
buttonProps: {
|
|
397
399
|
size: "sm",
|
|
398
|
-
|
|
399
|
-
className: "activity-actions-menu--component size-action-sm text-muted-foreground"
|
|
400
|
+
className: "activity-actions-menu--component"
|
|
400
401
|
}
|
|
401
402
|
});
|
|
402
403
|
}
|
|
403
404
|
//#endregion
|
|
404
405
|
//#region src/components/features/activities/partials/activity-changes.tsx
|
|
405
|
-
function
|
|
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__ */
|
|
408
|
+
return !t && !n ? /* @__PURE__ */ O(i, {
|
|
409
|
+
type: "inherit",
|
|
408
410
|
tag: "span",
|
|
409
411
|
children: e.description
|
|
410
|
-
}) : /* @__PURE__ */
|
|
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__ */
|
|
417
|
+
!!t && /* @__PURE__ */ O(i, {
|
|
418
|
+
type: "inherit",
|
|
415
419
|
tag: "span",
|
|
416
420
|
size: "inherit",
|
|
417
|
-
className:
|
|
421
|
+
className: u.removed,
|
|
418
422
|
children: e.old
|
|
419
423
|
}),
|
|
420
|
-
t && n && /* @__PURE__ */
|
|
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__ */
|
|
430
|
+
!!n && /* @__PURE__ */ O(i, {
|
|
431
|
+
type: "inherit",
|
|
427
432
|
tag: "span",
|
|
428
433
|
size: "inherit",
|
|
429
|
-
className:
|
|
434
|
+
className: u.added,
|
|
430
435
|
children: e.new
|
|
431
436
|
})
|
|
432
437
|
]
|
|
433
438
|
});
|
|
434
439
|
}
|
|
435
|
-
function
|
|
436
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
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__ */
|
|
443
|
+
children: /* @__PURE__ */ O(c, {
|
|
439
444
|
gap: "sm",
|
|
440
|
-
children: e.map((e) => /* @__PURE__ */
|
|
445
|
+
children: e.map((e) => /* @__PURE__ */ k("div", {
|
|
441
446
|
className: "flex items-baseline gap-space-md",
|
|
442
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
456
|
-
return e === "" ? null : /* @__PURE__ */
|
|
460
|
+
function we({ label: e, first: t, className: r }) {
|
|
461
|
+
return e === "" ? null : /* @__PURE__ */ O(c, {
|
|
457
462
|
gap: "none",
|
|
458
|
-
className: n("activity-date-label--component", !t && "mt-space-md",
|
|
459
|
-
children: /* @__PURE__ */
|
|
463
|
+
className: n("activity-date-label--component", !t && "mt-space-md", r),
|
|
464
|
+
children: /* @__PURE__ */ O(i, {
|
|
460
465
|
size: "xs",
|
|
461
466
|
type: "secondary",
|
|
462
467
|
weight: "medium",
|
|
@@ -466,11 +471,11 @@ function ge({ label: e, first: t, className: i }) {
|
|
|
466
471
|
}
|
|
467
472
|
//#endregion
|
|
468
473
|
//#region src/components/features/activities/partials/activity-empty-state.tsx
|
|
469
|
-
function
|
|
470
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
478
|
+
media: /* @__PURE__ */ O(A, {
|
|
474
479
|
className: "size-icon",
|
|
475
480
|
"aria-hidden": "true"
|
|
476
481
|
}),
|
|
@@ -481,64 +486,29 @@ function _e({ title: e, hint: t, className: r }) {
|
|
|
481
486
|
}
|
|
482
487
|
//#endregion
|
|
483
488
|
//#region src/components/features/activities/partials/tone-tokens.ts
|
|
484
|
-
var
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
warning:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
chipFg: "text-warning-accent"
|
|
508
|
-
},
|
|
509
|
-
destructive: {
|
|
510
|
-
bg: "bg-destructive/10",
|
|
511
|
-
fg: "text-destructive",
|
|
512
|
-
dot: "bg-destructive",
|
|
513
|
-
line: "bg-destructive/30",
|
|
514
|
-
chipBg: "bg-destructive/10",
|
|
515
|
-
chipFg: "text-destructive"
|
|
516
|
-
},
|
|
517
|
-
info: {
|
|
518
|
-
bg: "bg-info/10",
|
|
519
|
-
fg: "text-info",
|
|
520
|
-
dot: "bg-info",
|
|
521
|
-
line: "bg-info/30",
|
|
522
|
-
chipBg: "bg-info/10",
|
|
523
|
-
chipFg: "text-info"
|
|
524
|
-
},
|
|
525
|
-
neutral: {
|
|
526
|
-
bg: "bg-muted",
|
|
527
|
-
fg: "text-muted-foreground",
|
|
528
|
-
dot: "bg-muted-foreground/60",
|
|
529
|
-
line: "bg-border",
|
|
530
|
-
chipBg: "bg-muted",
|
|
531
|
-
chipFg: "text-muted-foreground"
|
|
532
|
-
},
|
|
533
|
-
secondary: {
|
|
534
|
-
bg: "bg-muted",
|
|
535
|
-
fg: "text-muted-foreground",
|
|
536
|
-
dot: "bg-muted-foreground/60",
|
|
537
|
-
line: "bg-border",
|
|
538
|
-
chipBg: "bg-muted",
|
|
539
|
-
chipFg: "text-muted-foreground"
|
|
540
|
-
}
|
|
541
|
-
}, ye = {
|
|
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 = {
|
|
497
|
+
bg: "bg-muted",
|
|
498
|
+
fg: "text-muted-foreground",
|
|
499
|
+
dot: "bg-muted-foreground",
|
|
500
|
+
line: "bg-border",
|
|
501
|
+
chipBg: "bg-muted",
|
|
502
|
+
chipFg: "text-muted-foreground"
|
|
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 = {
|
|
542
512
|
primary: "primary",
|
|
543
513
|
success: "success",
|
|
544
514
|
warning: "warning",
|
|
@@ -549,32 +519,33 @@ var ve = {
|
|
|
549
519
|
};
|
|
550
520
|
//#endregion
|
|
551
521
|
//#region src/components/features/activities/partials/activity-resource-tag.tsx
|
|
552
|
-
function
|
|
553
|
-
let s =
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */
|
|
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",
|
|
556
527
|
tag: "span",
|
|
557
528
|
weight: "medium",
|
|
558
529
|
lineHeight: "none",
|
|
559
|
-
className:
|
|
530
|
+
className: c.chipFg,
|
|
560
531
|
children: u
|
|
561
532
|
}),
|
|
562
|
-
!!t?.tags && t.tags.length > 0 && /* @__PURE__ */
|
|
533
|
+
!!t?.tags && t.tags.length > 0 && /* @__PURE__ */ O(i, {
|
|
563
534
|
tag: "span",
|
|
564
535
|
size: "xs",
|
|
565
536
|
type: "secondary",
|
|
566
537
|
className: "border-l border-border pl-space-sm",
|
|
567
538
|
children: t.tags.join(" · ")
|
|
568
539
|
}),
|
|
569
|
-
!!t?.badge && /* @__PURE__ */
|
|
540
|
+
!!t?.badge && /* @__PURE__ */ O(h, {
|
|
570
541
|
inline: !0,
|
|
571
542
|
size: "sm",
|
|
572
|
-
tone:
|
|
543
|
+
tone: Oe[t.badge.tone ?? "neutral"],
|
|
573
544
|
className: "ml-space-2xs",
|
|
574
545
|
children: t.badge.label
|
|
575
546
|
})
|
|
576
|
-
] })
|
|
577
|
-
return d ? /* @__PURE__ */
|
|
547
|
+
] });
|
|
548
|
+
return d ? /* @__PURE__ */ O(r, {
|
|
578
549
|
type: "button",
|
|
579
550
|
tone: "secondary",
|
|
580
551
|
buttonStyle: "ghost",
|
|
@@ -582,56 +553,60 @@ function be({ resource: e, config: t, fallbackText: i, onClick: o }) {
|
|
|
582
553
|
onClick: (e) => {
|
|
583
554
|
e.stopPropagation(), o?.();
|
|
584
555
|
},
|
|
585
|
-
className: n("activity-resource-tag--component gap-space-xs align-baseline",
|
|
556
|
+
className: n("activity-resource-tag--component gap-space-xs align-baseline", c.chipBg),
|
|
586
557
|
title: t?.note,
|
|
587
558
|
children: f
|
|
588
|
-
}) : /* @__PURE__ */
|
|
589
|
-
|
|
559
|
+
}) : /* @__PURE__ */ O(h, {
|
|
560
|
+
inline: !0,
|
|
561
|
+
size: "sm",
|
|
562
|
+
tone: s === "primary" ? "neutral" : Oe[s],
|
|
563
|
+
className: "activity-resource-tag--component",
|
|
590
564
|
title: t?.note,
|
|
591
565
|
children: f
|
|
592
566
|
});
|
|
593
567
|
}
|
|
594
568
|
//#endregion
|
|
595
569
|
//#region src/components/features/activities/partials/activity-headline.tsx
|
|
596
|
-
function
|
|
597
|
-
let
|
|
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 ?? {
|
|
598
572
|
id: e,
|
|
599
573
|
name: t
|
|
600
574
|
};
|
|
601
|
-
return n ? /* @__PURE__ */
|
|
575
|
+
return n ? /* @__PURE__ */ O(o, {
|
|
602
576
|
href: n,
|
|
603
577
|
size: "inherit",
|
|
604
|
-
|
|
578
|
+
weight: "semibold",
|
|
605
579
|
onClick: (e) => {
|
|
606
|
-
|
|
580
|
+
u && (e.preventDefault(), e.stopPropagation(), u(f, s));
|
|
607
581
|
},
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
}) : l ? /* @__PURE__ */ S(a, {
|
|
582
|
+
children: d
|
|
583
|
+
}) : u ? /* @__PURE__ */ O(r, {
|
|
611
584
|
type: "button",
|
|
612
585
|
tone: "secondary",
|
|
613
586
|
buttonStyle: "ghost",
|
|
614
587
|
size: "sm",
|
|
615
588
|
onClick: (e) => {
|
|
616
|
-
e.stopPropagation(),
|
|
589
|
+
e.stopPropagation(), u(f, s);
|
|
617
590
|
},
|
|
618
|
-
className:
|
|
619
|
-
children: /* @__PURE__ */
|
|
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",
|
|
620
594
|
tag: "span",
|
|
621
595
|
weight: "semibold",
|
|
622
|
-
children:
|
|
596
|
+
children: d
|
|
623
597
|
})
|
|
624
|
-
}) : /* @__PURE__ */
|
|
598
|
+
}) : /* @__PURE__ */ O(i, {
|
|
599
|
+
type: "inherit",
|
|
625
600
|
tag: "span",
|
|
626
601
|
weight: "semibold",
|
|
627
|
-
children:
|
|
602
|
+
children: d
|
|
628
603
|
});
|
|
629
604
|
}
|
|
630
|
-
function
|
|
605
|
+
function je(e, t) {
|
|
631
606
|
return e.map((e, n) => {
|
|
632
|
-
let
|
|
607
|
+
let r = `seg-${n}-${e.type}`;
|
|
633
608
|
switch (e.type) {
|
|
634
|
-
case "actor": return /* @__PURE__ */
|
|
609
|
+
case "actor": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(Ae, {
|
|
635
610
|
actorId: e.actorId,
|
|
636
611
|
text: e.text,
|
|
637
612
|
href: e.href,
|
|
@@ -639,234 +614,192 @@ function Se(e, t) {
|
|
|
639
614
|
youLabel: t.youLabel,
|
|
640
615
|
currentUserId: t.currentUserId,
|
|
641
616
|
onActorClick: t.onActorClick
|
|
642
|
-
}), " "] },
|
|
617
|
+
}), " "] }, r);
|
|
643
618
|
case "field":
|
|
644
|
-
case "value": return /* @__PURE__ */
|
|
619
|
+
case "value": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(i, {
|
|
620
|
+
type: "inherit",
|
|
645
621
|
tag: "span",
|
|
646
622
|
weight: "semibold",
|
|
647
623
|
children: e.text
|
|
648
|
-
}), " "] },
|
|
649
|
-
case "status": return /* @__PURE__ */
|
|
624
|
+
}), " "] }, r);
|
|
625
|
+
case "status": return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(h, {
|
|
650
626
|
inline: !0,
|
|
651
627
|
size: "sm",
|
|
652
|
-
tone:
|
|
628
|
+
tone: Oe[e.tone ?? "neutral"],
|
|
653
629
|
children: e.text
|
|
654
|
-
}), " "] },
|
|
630
|
+
}), " "] }, r);
|
|
655
631
|
case "resource": {
|
|
656
632
|
let n = t.getResourceConfig?.(e.resource);
|
|
657
|
-
return /* @__PURE__ */
|
|
633
|
+
return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(ke, {
|
|
658
634
|
resource: e.resource,
|
|
659
635
|
config: n,
|
|
660
636
|
fallbackText: e.text,
|
|
661
637
|
onClick: t.onResourceClick ? () => t.onResourceClick?.(e.resource, n, t.activity) : void 0
|
|
662
|
-
}), " "] },
|
|
638
|
+
}), " "] }, r);
|
|
663
639
|
}
|
|
664
|
-
default: return /* @__PURE__ */
|
|
640
|
+
default: return /* @__PURE__ */ k(x, { children: [/* @__PURE__ */ O(i, {
|
|
641
|
+
type: "inherit",
|
|
665
642
|
tag: "span",
|
|
666
643
|
children: e.text
|
|
667
|
-
}), " "] },
|
|
644
|
+
}), " "] }, r);
|
|
668
645
|
}
|
|
669
646
|
});
|
|
670
647
|
}
|
|
671
|
-
function
|
|
672
|
-
let { activity: t } = e, n = t.headline ?? t.event,
|
|
673
|
-
if (!
|
|
648
|
+
function Me(e) {
|
|
649
|
+
let { activity: t } = e, n = t.headline ?? t.event, r = t.actor?.name;
|
|
650
|
+
if (!r || !n.includes(r)) return /* @__PURE__ */ O(i, {
|
|
651
|
+
type: "inherit",
|
|
674
652
|
tag: "span",
|
|
675
653
|
children: n
|
|
676
654
|
});
|
|
677
|
-
let [a, ...o] = n.split(
|
|
678
|
-
return /* @__PURE__ */
|
|
679
|
-
!!a && /* @__PURE__ */
|
|
655
|
+
let [a, ...o] = n.split(r);
|
|
656
|
+
return /* @__PURE__ */ k(D, { children: [
|
|
657
|
+
!!a && /* @__PURE__ */ O(i, {
|
|
658
|
+
type: "inherit",
|
|
680
659
|
tag: "span",
|
|
681
660
|
children: a
|
|
682
661
|
}),
|
|
683
|
-
/* @__PURE__ */
|
|
662
|
+
/* @__PURE__ */ O(Ae, {
|
|
684
663
|
actorId: t.actor?.id,
|
|
685
|
-
text:
|
|
664
|
+
text: r,
|
|
686
665
|
href: t.actor?.href,
|
|
687
666
|
activity: t,
|
|
688
667
|
youLabel: e.youLabel,
|
|
689
668
|
currentUserId: e.currentUserId,
|
|
690
669
|
onActorClick: e.onActorClick
|
|
691
670
|
}),
|
|
692
|
-
o.length > 0 && /* @__PURE__ */
|
|
671
|
+
o.length > 0 && /* @__PURE__ */ O(i, {
|
|
672
|
+
type: "inherit",
|
|
693
673
|
tag: "span",
|
|
694
|
-
children: o.join(
|
|
674
|
+
children: o.join(r)
|
|
695
675
|
})
|
|
696
676
|
] });
|
|
697
677
|
}
|
|
698
|
-
function
|
|
678
|
+
function Ne(e) {
|
|
699
679
|
let t = e.activity.segments;
|
|
700
|
-
return t && t.length > 0 ? /* @__PURE__ */
|
|
680
|
+
return t && t.length > 0 ? /* @__PURE__ */ O("span", {
|
|
701
681
|
className: "activity-headline--component leading-snug [&>span]:leading-snug",
|
|
702
|
-
children:
|
|
703
|
-
}) : /* @__PURE__ */
|
|
682
|
+
children: je(t, e)
|
|
683
|
+
}) : /* @__PURE__ */ O("span", {
|
|
704
684
|
className: "activity-headline--component leading-snug",
|
|
705
|
-
children:
|
|
685
|
+
children: Me(e)
|
|
706
686
|
});
|
|
707
687
|
}
|
|
708
688
|
//#endregion
|
|
709
689
|
//#region src/components/features/activities/partials/activity-marker.tsx
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
className: n(
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
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", {
|
|
736
718
|
"aria-hidden": !0,
|
|
737
|
-
className: n("
|
|
719
|
+
className: n("w-px flex-1", o.line)
|
|
738
720
|
})]
|
|
739
721
|
});
|
|
740
722
|
}
|
|
741
723
|
//#endregion
|
|
742
724
|
//#region src/components/features/activities/partials/activity-row.tsx
|
|
743
|
-
function
|
|
744
|
-
|
|
745
|
-
return /* @__PURE__ */ C(s, {
|
|
746
|
-
direction: "horizontal",
|
|
747
|
-
align: "center",
|
|
748
|
-
wrap: !0,
|
|
749
|
-
gap: "sm",
|
|
750
|
-
className: "activity-row--metadata-preview mt-space-xs min-w-0 gap-y-space-2xs",
|
|
751
|
-
children: [n.map((e, t) => /* @__PURE__ */ C(h, { children: [/* @__PURE__ */ C(r, {
|
|
752
|
-
tag: "span",
|
|
753
|
-
type: "secondary",
|
|
754
|
-
className: "inline-flex min-w-0 items-baseline gap-space-xs leading-snug",
|
|
755
|
-
children: [/* @__PURE__ */ C(r, {
|
|
756
|
-
tag: "span",
|
|
757
|
-
size: "xs",
|
|
758
|
-
type: "discrete",
|
|
759
|
-
className: "shrink-0",
|
|
760
|
-
children: [
|
|
761
|
-
e.label,
|
|
762
|
-
":",
|
|
763
|
-
" "
|
|
764
|
-
]
|
|
765
|
-
}), /* @__PURE__ */ S(r, {
|
|
766
|
-
tag: "span",
|
|
767
|
-
size: "inherit",
|
|
768
|
-
className: "min-w-0 truncate",
|
|
769
|
-
children: e.value
|
|
770
|
-
})]
|
|
771
|
-
}), t < n.length - 1 && /* @__PURE__ */ S(r, {
|
|
772
|
-
tag: "span",
|
|
773
|
-
size: "xs",
|
|
774
|
-
type: "discrete",
|
|
775
|
-
className: "leading-snug",
|
|
776
|
-
"aria-hidden": "true",
|
|
777
|
-
children: " · "
|
|
778
|
-
})] }, e.label)), i > 0 && /* @__PURE__ */ C(r, {
|
|
779
|
-
tag: "span",
|
|
780
|
-
size: "xs",
|
|
781
|
-
type: "discrete",
|
|
782
|
-
className: "leading-snug",
|
|
783
|
-
children: [
|
|
784
|
-
"+",
|
|
785
|
-
i,
|
|
786
|
-
" ",
|
|
787
|
-
t
|
|
788
|
-
]
|
|
789
|
-
})]
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
function De({ metadata: e }) {
|
|
793
|
-
return /* @__PURE__ */ S(o, {
|
|
725
|
+
function Ie({ metadata: e }) {
|
|
726
|
+
return /* @__PURE__ */ O(s, {
|
|
794
727
|
columns: {
|
|
795
728
|
base: 1,
|
|
796
729
|
sm: 2
|
|
797
730
|
},
|
|
798
731
|
gap: "md",
|
|
799
732
|
className: "activity-row--metadata",
|
|
800
|
-
children: e.map((e) => /* @__PURE__ */
|
|
733
|
+
children: e.map((e) => /* @__PURE__ */ k(c, {
|
|
801
734
|
gap: "dense",
|
|
802
735
|
className: "min-w-0",
|
|
803
|
-
children: [/* @__PURE__ */
|
|
736
|
+
children: [/* @__PURE__ */ O(i, {
|
|
804
737
|
tag: "div",
|
|
805
738
|
size: "xs",
|
|
806
739
|
type: "discrete",
|
|
807
740
|
weight: "medium",
|
|
808
|
-
|
|
741
|
+
lineHeight: "snug",
|
|
809
742
|
children: e.label
|
|
810
|
-
}), /* @__PURE__ */
|
|
743
|
+
}), /* @__PURE__ */ O(i, {
|
|
744
|
+
type: "inherit",
|
|
811
745
|
tag: "div",
|
|
812
|
-
|
|
746
|
+
lineHeight: "snug",
|
|
747
|
+
className: "min-w-0 break-words",
|
|
813
748
|
children: e.value
|
|
814
749
|
})]
|
|
815
750
|
}, e.label))
|
|
816
751
|
});
|
|
817
752
|
}
|
|
818
|
-
function
|
|
819
|
-
let { activity: t, density:
|
|
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, {
|
|
820
755
|
activity: t,
|
|
821
|
-
currentUserId:
|
|
822
|
-
youLabel:
|
|
823
|
-
onActorClick:
|
|
824
|
-
onResourceClick:
|
|
756
|
+
currentUserId: C,
|
|
757
|
+
youLabel: y,
|
|
758
|
+
onActorClick: E,
|
|
759
|
+
onResourceClick: D,
|
|
825
760
|
getResourceConfig: j
|
|
826
|
-
}),
|
|
827
|
-
icon:
|
|
828
|
-
tone:
|
|
829
|
-
density:
|
|
830
|
-
last:
|
|
831
|
-
className:
|
|
832
|
-
}),
|
|
833
|
-
return /* @__PURE__ */
|
|
834
|
-
className: n("activity-row--component relative flex",
|
|
835
|
-
onClick:
|
|
836
|
-
role:
|
|
837
|
-
tabIndex:
|
|
838
|
-
onKeyDown:
|
|
839
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(),
|
|
761
|
+
}), se = N ?? /* @__PURE__ */ O(Fe, {
|
|
762
|
+
icon: B,
|
|
763
|
+
tone: l,
|
|
764
|
+
density: a,
|
|
765
|
+
last: u,
|
|
766
|
+
className: L
|
|
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));
|
|
840
775
|
} : void 0,
|
|
841
|
-
children: [
|
|
842
|
-
className: n("activity-row--content min-w-0 flex-1",
|
|
776
|
+
children: [se, /* @__PURE__ */ k("div", {
|
|
777
|
+
className: n("activity-row--content min-w-0 flex-1", fe, R),
|
|
843
778
|
children: [
|
|
844
|
-
/* @__PURE__ */
|
|
779
|
+
/* @__PURE__ */ k(c, {
|
|
845
780
|
gap: "dense",
|
|
846
|
-
children: [/* @__PURE__ */
|
|
781
|
+
children: [/* @__PURE__ */ k("div", {
|
|
847
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]",
|
|
848
|
-
children: [/* @__PURE__ */
|
|
783
|
+
children: [/* @__PURE__ */ O(c, {
|
|
849
784
|
gap: "dense",
|
|
850
785
|
className: "min-w-0",
|
|
851
|
-
children:
|
|
786
|
+
children: /* @__PURE__ */ k("div", {
|
|
852
787
|
className: "activity-row--headline flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-xs",
|
|
853
|
-
children: [/* @__PURE__ */
|
|
788
|
+
children: [/* @__PURE__ */ O(i, {
|
|
789
|
+
type: "inherit",
|
|
854
790
|
tag: "span",
|
|
855
791
|
size: "inherit",
|
|
856
792
|
lineHeight: "snug",
|
|
857
793
|
className: "min-w-0 break-words [overflow-wrap:anywhere]",
|
|
858
|
-
children:
|
|
859
|
-
}), !!
|
|
794
|
+
children: oe
|
|
795
|
+
}), !!v && /* @__PURE__ */ O(h, {
|
|
860
796
|
inline: !0,
|
|
861
797
|
size: "sm",
|
|
862
798
|
tone: "secondary",
|
|
863
|
-
children:
|
|
799
|
+
children: v
|
|
864
800
|
})]
|
|
865
|
-
})
|
|
866
|
-
|
|
867
|
-
moreLabel: x
|
|
868
|
-
})]
|
|
869
|
-
}), /* @__PURE__ */ C(s, {
|
|
801
|
+
})
|
|
802
|
+
}), /* @__PURE__ */ k(c, {
|
|
870
803
|
direction: "horizontal",
|
|
871
804
|
gap: "xs",
|
|
872
805
|
justify: {
|
|
@@ -876,14 +809,15 @@ function Oe(e) {
|
|
|
876
809
|
wrap: !1,
|
|
877
810
|
className: "activity-row--trailing w-full shrink-0 justify-self-start sm:w-auto sm:justify-self-end",
|
|
878
811
|
children: [
|
|
879
|
-
!!
|
|
812
|
+
!!g && /* @__PURE__ */ O(i, {
|
|
880
813
|
size: "xs",
|
|
881
814
|
type: "secondary",
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
815
|
+
lineHeight: "snug",
|
|
816
|
+
className: "whitespace-nowrap tabular-nums",
|
|
817
|
+
title: _ ?? void 0,
|
|
818
|
+
children: g
|
|
885
819
|
}),
|
|
886
|
-
q &&
|
|
820
|
+
q && K && J && /* @__PURE__ */ O(r, {
|
|
887
821
|
type: "button",
|
|
888
822
|
size: "sm",
|
|
889
823
|
iconOnly: !0,
|
|
@@ -891,48 +825,73 @@ function Oe(e) {
|
|
|
891
825
|
buttonStyle: "ghost",
|
|
892
826
|
className: "size-action-sm text-muted-foreground",
|
|
893
827
|
onClick: (e) => {
|
|
894
|
-
e.stopPropagation(),
|
|
828
|
+
e.stopPropagation(), f(!d);
|
|
895
829
|
},
|
|
896
|
-
title:
|
|
897
|
-
"aria-label":
|
|
898
|
-
"aria-expanded":
|
|
899
|
-
children:
|
|
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" })
|
|
900
834
|
}),
|
|
901
|
-
q &&
|
|
835
|
+
q && ae.length > 0 && /* @__PURE__ */ O(xe, {
|
|
902
836
|
activity: t,
|
|
903
|
-
actions:
|
|
837
|
+
actions: ae,
|
|
904
838
|
onAction: A,
|
|
905
|
-
label:
|
|
839
|
+
label: S
|
|
906
840
|
})
|
|
907
841
|
]
|
|
908
842
|
})]
|
|
909
|
-
}), !!
|
|
843
|
+
}), !!re && ne && /* @__PURE__ */ O(i, {
|
|
910
844
|
tag: "div",
|
|
911
845
|
type: "secondary",
|
|
912
|
-
|
|
846
|
+
lineHeight: "relaxed",
|
|
847
|
+
className: "max-w-3xl",
|
|
913
848
|
children: t.description
|
|
914
849
|
})]
|
|
915
850
|
}),
|
|
916
|
-
|
|
851
|
+
X && W && t.resources && /* @__PURE__ */ O(c, {
|
|
917
852
|
direction: "horizontal",
|
|
918
853
|
gap: "xs",
|
|
919
854
|
className: "mt-space-sm",
|
|
920
855
|
children: t.resources.map((e) => {
|
|
921
856
|
let n = j?.(e);
|
|
922
|
-
return /* @__PURE__ */
|
|
857
|
+
return /* @__PURE__ */ O(ke, {
|
|
923
858
|
resource: e,
|
|
924
859
|
config: n,
|
|
925
|
-
onClick:
|
|
860
|
+
onClick: D ? () => D(e, n, t) : void 0
|
|
926
861
|
}, e.key);
|
|
927
862
|
})
|
|
928
863
|
}),
|
|
929
|
-
|
|
864
|
+
Y && /* @__PURE__ */ O("div", {
|
|
865
|
+
className: "mt-space-sm",
|
|
866
|
+
children: /* @__PURE__ */ O("div", {
|
|
867
|
+
className: n("activity-row--details", z),
|
|
868
|
+
children: /* @__PURE__ */ k(c, {
|
|
869
|
+
gap: "md",
|
|
870
|
+
children: [
|
|
871
|
+
U && /* @__PURE__ */ O(Ie, { metadata: H }),
|
|
872
|
+
V && t.changes && /* @__PURE__ */ O(Ce, {
|
|
873
|
+
changes: t.changes,
|
|
874
|
+
className: "border-0 bg-transparent p-0"
|
|
875
|
+
}),
|
|
876
|
+
te && /* @__PURE__ */ O("div", {
|
|
877
|
+
className: "activity-row--details-body",
|
|
878
|
+
children: t.details
|
|
879
|
+
}),
|
|
880
|
+
G && /* @__PURE__ */ O("div", {
|
|
881
|
+
className: "activity-row--details-custom",
|
|
882
|
+
children: P
|
|
883
|
+
})
|
|
884
|
+
]
|
|
885
|
+
})
|
|
886
|
+
})
|
|
887
|
+
}),
|
|
888
|
+
X && ie.length > 0 && /* @__PURE__ */ O(c, {
|
|
930
889
|
direction: "horizontal",
|
|
931
890
|
gap: "xs",
|
|
932
891
|
className: "activity-row--inline-actions mt-space-sm",
|
|
933
|
-
children:
|
|
892
|
+
children: ie.map((e) => {
|
|
934
893
|
let n = e.icon;
|
|
935
|
-
return /* @__PURE__ */
|
|
894
|
+
return /* @__PURE__ */ O(r, {
|
|
936
895
|
type: "button",
|
|
937
896
|
size: "sm",
|
|
938
897
|
tone: e.tone === "destructive" ? "destructive" : "secondary",
|
|
@@ -946,30 +905,6 @@ function Oe(e) {
|
|
|
946
905
|
children: e.label
|
|
947
906
|
}, e.id);
|
|
948
907
|
})
|
|
949
|
-
}),
|
|
950
|
-
Y && /* @__PURE__ */ S("div", {
|
|
951
|
-
className: "mt-space-sm",
|
|
952
|
-
children: /* @__PURE__ */ S("div", {
|
|
953
|
-
className: n("activity-row--details", ne),
|
|
954
|
-
children: /* @__PURE__ */ C(s, {
|
|
955
|
-
gap: "md",
|
|
956
|
-
children: [
|
|
957
|
-
V && /* @__PURE__ */ S(De, { metadata: B }),
|
|
958
|
-
z && t.changes && /* @__PURE__ */ S(he, {
|
|
959
|
-
changes: t.changes,
|
|
960
|
-
className: "border-0 bg-transparent p-0"
|
|
961
|
-
}),
|
|
962
|
-
U && /* @__PURE__ */ S("div", {
|
|
963
|
-
className: "activity-row--details-body",
|
|
964
|
-
children: t.details
|
|
965
|
-
}),
|
|
966
|
-
W && /* @__PURE__ */ S("div", {
|
|
967
|
-
className: "activity-row--details-custom",
|
|
968
|
-
children: P
|
|
969
|
-
})
|
|
970
|
-
]
|
|
971
|
-
})
|
|
972
|
-
})
|
|
973
908
|
})
|
|
974
909
|
]
|
|
975
910
|
})]
|
|
@@ -977,153 +912,153 @@ function Oe(e) {
|
|
|
977
912
|
}
|
|
978
913
|
//#endregion
|
|
979
914
|
//#region src/components/features/activities/activities-feed.tsx
|
|
980
|
-
function
|
|
915
|
+
function Re(e, t) {
|
|
981
916
|
try {
|
|
982
917
|
let n = new Date(e);
|
|
983
|
-
return
|
|
918
|
+
return le(n) ? oe(n, "PP p", t ? { locale: t } : void 0) : e;
|
|
984
919
|
} catch {
|
|
985
920
|
return e;
|
|
986
921
|
}
|
|
987
922
|
}
|
|
988
|
-
function
|
|
923
|
+
function Q(e, t) {
|
|
989
924
|
return typeof e == "function" ? e(t) : e;
|
|
990
925
|
}
|
|
991
|
-
function
|
|
926
|
+
function ze(e, t) {
|
|
992
927
|
return e.toneOverride ?? t;
|
|
993
928
|
}
|
|
994
|
-
function
|
|
995
|
-
let { activities: a = [], density: o = "default", itemSpacing:
|
|
996
|
-
...
|
|
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,
|
|
997
932
|
..._
|
|
998
|
-
}), [_]),
|
|
999
|
-
resources:
|
|
1000
|
-
onResourcesChange:
|
|
1001
|
-
}),
|
|
933
|
+
}), [_]), B = ye({
|
|
934
|
+
resources: I,
|
|
935
|
+
onResourcesChange: L
|
|
936
|
+
}), V = e(), H = S ?? V.locale, U = ve({
|
|
1002
937
|
activities: a,
|
|
1003
938
|
groupByDate: l,
|
|
1004
939
|
expandedByDefault: u,
|
|
1005
940
|
defaultExpandedIds: f,
|
|
1006
941
|
expandedIds: p,
|
|
1007
942
|
onExpandedIdsChange: m,
|
|
1008
|
-
locale:
|
|
1009
|
-
strings:
|
|
1010
|
-
formatDateGroupLabel:
|
|
1011
|
-
}),
|
|
1012
|
-
if (g) return /* @__PURE__ */
|
|
1013
|
-
className: n("activities-feed--component", "px-space-md py-space-xl",
|
|
1014
|
-
children:
|
|
943
|
+
locale: H,
|
|
944
|
+
strings: R,
|
|
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, {
|
|
1015
950
|
type: "secondary",
|
|
1016
951
|
align: "center",
|
|
1017
|
-
children:
|
|
952
|
+
children: R.loading
|
|
1018
953
|
})
|
|
1019
954
|
});
|
|
1020
|
-
if (a.length === 0) return /* @__PURE__ */
|
|
1021
|
-
className: n("activities-feed--component", "px-space-md py-space-md",
|
|
1022
|
-
children:
|
|
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 })
|
|
1023
958
|
});
|
|
1024
|
-
let
|
|
1025
|
-
return /* @__PURE__ */
|
|
959
|
+
let G = U.groups.reduce((e, t) => e + t.items.length, 0), K = 0;
|
|
960
|
+
return /* @__PURE__ */ k(c, {
|
|
1026
961
|
gap: "xl",
|
|
1027
|
-
className: n("activities-feed--component",
|
|
962
|
+
className: n("activities-feed--component", x),
|
|
1028
963
|
children: [
|
|
1029
|
-
!!
|
|
1030
|
-
/* @__PURE__ */
|
|
964
|
+
!!y?.header && /* @__PURE__ */ O("div", { children: y.header }),
|
|
965
|
+
/* @__PURE__ */ O("div", {
|
|
1031
966
|
className: "flex flex-col",
|
|
1032
|
-
children:
|
|
967
|
+
children: U.groups.map((e, t) => {
|
|
1033
968
|
let r = t === 0;
|
|
1034
|
-
return /* @__PURE__ */
|
|
969
|
+
return /* @__PURE__ */ k("div", {
|
|
1035
970
|
className: n(r ? "" : "mt-1"),
|
|
1036
|
-
children: [
|
|
971
|
+
children: [y?.renderDateLabel ? y.renderDateLabel(e.label, r) : /* @__PURE__ */ O(we, {
|
|
1037
972
|
label: e.label,
|
|
1038
973
|
first: r
|
|
1039
|
-
}), /* @__PURE__ */
|
|
974
|
+
}), /* @__PURE__ */ O("div", {
|
|
1040
975
|
className: n("flex flex-col", !!e.label && "mt-space-md"),
|
|
1041
976
|
children: e.items.map((e, t) => {
|
|
1042
|
-
let n = e.activity, r = t === 0, i = ++
|
|
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 = {
|
|
1043
978
|
density: o,
|
|
1044
979
|
isLast: i,
|
|
1045
980
|
isFirstInGroup: r,
|
|
1046
981
|
activity: n,
|
|
1047
982
|
eventConfig: a,
|
|
1048
|
-
tone:
|
|
983
|
+
tone: c,
|
|
1049
984
|
relativeTime: l,
|
|
1050
985
|
absoluteTime: u,
|
|
1051
986
|
sourceLabel: p,
|
|
1052
|
-
expanded:
|
|
1053
|
-
itemSpacing:
|
|
1054
|
-
setExpanded: (e) =>
|
|
1055
|
-
toggleExpanded: () =>
|
|
1056
|
-
}, _ =
|
|
1057
|
-
if (v !== void 0) return /* @__PURE__ */
|
|
1058
|
-
let
|
|
1059
|
-
return /* @__PURE__ */
|
|
987
|
+
expanded: U.isExpanded(n.id),
|
|
988
|
+
itemSpacing: s,
|
|
989
|
+
setExpanded: (e) => U.setExpanded(n.id, e),
|
|
990
|
+
toggleExpanded: () => U.toggleExpanded(n.id)
|
|
991
|
+
}, _ = y?.renderDetails?.(n, g), v = y?.renderRow?.(n, g);
|
|
992
|
+
if (v !== void 0) return /* @__PURE__ */ O("div", { children: v }, e.key);
|
|
993
|
+
let x = y?.renderHeadline?.(n, g), S = y?.renderMarker?.(n, g);
|
|
994
|
+
return /* @__PURE__ */ O(Le, {
|
|
1060
995
|
activity: n,
|
|
1061
996
|
density: o,
|
|
1062
|
-
itemSpacing:
|
|
997
|
+
itemSpacing: s,
|
|
1063
998
|
eventConfig: a,
|
|
1064
|
-
tone:
|
|
999
|
+
tone: c,
|
|
1065
1000
|
last: i,
|
|
1066
1001
|
expanded: g.expanded,
|
|
1067
1002
|
onExpandedChange: (e) => {
|
|
1068
|
-
|
|
1003
|
+
U.setExpanded(n.id, e), ee?.(n, e);
|
|
1069
1004
|
},
|
|
1070
1005
|
detailsCollapsible: n.collapsible ?? d,
|
|
1071
1006
|
relativeTime: l,
|
|
1072
1007
|
absoluteTime: u,
|
|
1073
1008
|
sourceLabel: p,
|
|
1074
|
-
youLabel:
|
|
1075
|
-
showChangesLabel:
|
|
1076
|
-
hideChangesLabel:
|
|
1077
|
-
moreLabel:
|
|
1078
|
-
actionsLabel:
|
|
1009
|
+
youLabel: R.you,
|
|
1010
|
+
showChangesLabel: R.showChanges,
|
|
1011
|
+
hideChangesLabel: R.hideChanges,
|
|
1012
|
+
moreLabel: R.moreLabel,
|
|
1013
|
+
actionsLabel: R.actionsLabel,
|
|
1079
1014
|
currentUserId: h,
|
|
1080
1015
|
actions: m,
|
|
1081
|
-
onActivityClick:
|
|
1082
|
-
onActorClick:
|
|
1083
|
-
onResourceClick:
|
|
1084
|
-
onAction:
|
|
1085
|
-
getResourceConfig: (e) =>
|
|
1086
|
-
headlineOverride:
|
|
1087
|
-
markerOverride:
|
|
1016
|
+
onActivityClick: M,
|
|
1017
|
+
onActorClick: N,
|
|
1018
|
+
onResourceClick: P,
|
|
1019
|
+
onAction: F,
|
|
1020
|
+
getResourceConfig: (e) => B.get(e),
|
|
1021
|
+
headlineOverride: x,
|
|
1022
|
+
markerOverride: S,
|
|
1088
1023
|
customDetails: _,
|
|
1089
|
-
rowClassName:
|
|
1090
|
-
markerClassName:
|
|
1091
|
-
contentClassName:
|
|
1092
|
-
detailsClassName:
|
|
1024
|
+
rowClassName: Q(b?.row, n),
|
|
1025
|
+
markerClassName: Q(b?.marker, n),
|
|
1026
|
+
contentClassName: Q(b?.content, n),
|
|
1027
|
+
detailsClassName: Q(b?.details, n)
|
|
1093
1028
|
}, e.key);
|
|
1094
1029
|
})
|
|
1095
1030
|
})]
|
|
1096
1031
|
}, `${e.label}-${t}`);
|
|
1097
1032
|
})
|
|
1098
1033
|
}),
|
|
1099
|
-
!!
|
|
1034
|
+
!!y?.footer && /* @__PURE__ */ O("div", { children: y.footer })
|
|
1100
1035
|
]
|
|
1101
1036
|
});
|
|
1102
1037
|
}
|
|
1103
|
-
|
|
1038
|
+
Be.displayName = "ActivityFeed";
|
|
1104
1039
|
//#endregion
|
|
1105
1040
|
//#region src/components/features/activities/activity-log.tsx
|
|
1106
|
-
function
|
|
1041
|
+
function Ve(e, t) {
|
|
1107
1042
|
let n = [...e];
|
|
1108
1043
|
return n.sort((e, n) => {
|
|
1109
1044
|
let r = e.timestamp ? new Date(e.timestamp).getTime() : 0, i = n.timestamp ? new Date(n.timestamp).getTime() : 0;
|
|
1110
1045
|
return t === "asc" ? r - i : i - r;
|
|
1111
1046
|
}), n;
|
|
1112
1047
|
}
|
|
1113
|
-
function
|
|
1048
|
+
function He(e) {
|
|
1114
1049
|
return e ?? "secondary";
|
|
1115
1050
|
}
|
|
1116
|
-
function
|
|
1051
|
+
function Ue(e) {
|
|
1117
1052
|
if (e) return typeof e == "string" ? { name: e } : e;
|
|
1118
1053
|
}
|
|
1119
|
-
function
|
|
1054
|
+
function We(e) {
|
|
1120
1055
|
return e != null && e !== !1;
|
|
1121
1056
|
}
|
|
1122
1057
|
function $(e, t) {
|
|
1123
1058
|
if (e && t && t.kind !== "comment") return typeof e == "function" ? e(t) : e;
|
|
1124
1059
|
}
|
|
1125
|
-
function
|
|
1126
|
-
let n =
|
|
1060
|
+
function Ge(e, t) {
|
|
1061
|
+
let n = Ue(e.actor), r = e.descriptionHtml ? /* @__PURE__ */ O(b, {
|
|
1127
1062
|
html: e.descriptionHtml,
|
|
1128
1063
|
mentions: e.mentions,
|
|
1129
1064
|
resources: t
|
|
@@ -1136,7 +1071,7 @@ function Le(e, t) {
|
|
|
1136
1071
|
createdAt: e.timestamp,
|
|
1137
1072
|
timestamp: void 0,
|
|
1138
1073
|
iconOverride: e.icon,
|
|
1139
|
-
toneOverride:
|
|
1074
|
+
toneOverride: He(e.tone),
|
|
1140
1075
|
headline: typeof e.headline == "string" ? e.headline : void 0,
|
|
1141
1076
|
description: r,
|
|
1142
1077
|
metadata: e.metadata,
|
|
@@ -1155,7 +1090,7 @@ function Le(e, t) {
|
|
|
1155
1090
|
type: "text",
|
|
1156
1091
|
text: e.action
|
|
1157
1092
|
}] : [],
|
|
1158
|
-
...
|
|
1093
|
+
...We(e.target) ? [{
|
|
1159
1094
|
type: "value",
|
|
1160
1095
|
text: String(e.target)
|
|
1161
1096
|
}] : [],
|
|
@@ -1166,65 +1101,65 @@ function Le(e, t) {
|
|
|
1166
1101
|
] : void 0
|
|
1167
1102
|
};
|
|
1168
1103
|
}
|
|
1169
|
-
function
|
|
1170
|
-
let { entries: a, order: o = "desc", itemSpacing:
|
|
1171
|
-
let t =
|
|
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;
|
|
1172
1107
|
if (t) return t(e);
|
|
1173
|
-
let n =
|
|
1174
|
-
if (!
|
|
1175
|
-
let r =
|
|
1176
|
-
return
|
|
1108
|
+
let n = de(e);
|
|
1109
|
+
if (!le(n)) return e;
|
|
1110
|
+
let r = H.locale;
|
|
1111
|
+
return se(n, {
|
|
1177
1112
|
addSuffix: !0,
|
|
1178
1113
|
...r ? { locale: r } : {}
|
|
1179
1114
|
});
|
|
1180
1115
|
}, [
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
]),
|
|
1185
|
-
onSubmit:
|
|
1186
|
-
onAfterMutate:
|
|
1187
|
-
onError:
|
|
1188
|
-
}),
|
|
1116
|
+
H.formatRelativeTime,
|
|
1117
|
+
H.locale,
|
|
1118
|
+
z
|
|
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" ? {
|
|
1189
1124
|
id: e.id,
|
|
1190
1125
|
event: "comment",
|
|
1191
1126
|
source: "comment",
|
|
1192
1127
|
createdAt: e.timestamp,
|
|
1193
1128
|
data: e
|
|
1194
|
-
} :
|
|
1195
|
-
row: (e) => $(
|
|
1196
|
-
marker: (e) => $(
|
|
1197
|
-
content: (e) => $(
|
|
1198
|
-
details: (e) => $(
|
|
1199
|
-
}), [
|
|
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", {
|
|
1200
1135
|
className: "activity-log--composer",
|
|
1201
|
-
children: /* @__PURE__ */
|
|
1202
|
-
context:
|
|
1136
|
+
children: /* @__PURE__ */ O(_, {
|
|
1137
|
+
context: P.context,
|
|
1203
1138
|
canComment: !0,
|
|
1204
|
-
submitting:
|
|
1205
|
-
errors:
|
|
1206
|
-
resetKey:
|
|
1207
|
-
onSubmit:
|
|
1139
|
+
submitting: W.isSubmitting,
|
|
1140
|
+
errors: W.formErrors,
|
|
1141
|
+
resetKey: W.resetKey,
|
|
1142
|
+
onSubmit: W.submit,
|
|
1208
1143
|
resources: l,
|
|
1209
1144
|
onResourceSearch: u,
|
|
1210
|
-
strings:
|
|
1211
|
-
placeholder:
|
|
1212
|
-
autoFocus:
|
|
1213
|
-
inlineSubmit:
|
|
1145
|
+
strings: g,
|
|
1146
|
+
placeholder: P.placeholder,
|
|
1147
|
+
autoFocus: P.autoFocus,
|
|
1148
|
+
inlineSubmit: P.inlineSubmit ?? !1
|
|
1214
1149
|
})
|
|
1215
|
-
}) : null, q =
|
|
1216
|
-
activities:
|
|
1150
|
+
}) : null, q = P?.position ?? "top", J = /* @__PURE__ */ O(Be, {
|
|
1151
|
+
activities: K,
|
|
1217
1152
|
density: "rich",
|
|
1218
|
-
itemSpacing:
|
|
1153
|
+
itemSpacing: s,
|
|
1219
1154
|
groupByDate: !0,
|
|
1220
1155
|
resources: {},
|
|
1221
|
-
strings:
|
|
1222
|
-
detailsCollapsible:
|
|
1223
|
-
defaultExpandedIds:
|
|
1224
|
-
expandedIds:
|
|
1225
|
-
onExpandedIdsChange:
|
|
1226
|
-
formatRelativeTime:
|
|
1227
|
-
getSourceLabel: (e) =>
|
|
1156
|
+
strings: b,
|
|
1157
|
+
detailsCollapsible: T,
|
|
1158
|
+
defaultExpandedIds: E,
|
|
1159
|
+
expandedIds: D,
|
|
1160
|
+
onExpandedIdsChange: A,
|
|
1161
|
+
formatRelativeTime: U,
|
|
1162
|
+
getSourceLabel: (e) => V.sources[e] ?? e,
|
|
1228
1163
|
actionsForActivity: (e) => {
|
|
1229
1164
|
let t = e.data;
|
|
1230
1165
|
if (!t || t.kind === "comment") return [];
|
|
@@ -1240,68 +1175,68 @@ function Re(i) {
|
|
|
1240
1175
|
onClick: () => e.onSelect?.(n)
|
|
1241
1176
|
}));
|
|
1242
1177
|
},
|
|
1243
|
-
rowClassNames:
|
|
1178
|
+
rowClassNames: ne,
|
|
1244
1179
|
onAction: (e, t) => {
|
|
1245
1180
|
let n = t.data;
|
|
1246
|
-
n && n.kind !== "comment" &&
|
|
1181
|
+
n && n.kind !== "comment" && M?.(e, n);
|
|
1247
1182
|
},
|
|
1248
1183
|
onActivityExpandedChange: (e, t) => {
|
|
1249
1184
|
let n = e.data;
|
|
1250
|
-
n && n.kind !== "comment" &&
|
|
1185
|
+
n && n.kind !== "comment" && j?.(n, t);
|
|
1251
1186
|
},
|
|
1252
1187
|
slots: {
|
|
1253
|
-
header: q === "top" ?
|
|
1254
|
-
footer: q === "bottom" ?
|
|
1188
|
+
header: q === "top" ? re : void 0,
|
|
1189
|
+
footer: q === "bottom" ? re : void 0,
|
|
1255
1190
|
renderRow: (e, t) => {
|
|
1256
1191
|
let r = e.data;
|
|
1257
1192
|
if (!r) return;
|
|
1258
|
-
let i =
|
|
1193
|
+
let i = x?.[r.kind];
|
|
1259
1194
|
if (i) return i(r, {
|
|
1260
1195
|
resources: l,
|
|
1261
1196
|
accessors: {
|
|
1262
|
-
getMediaUrl:
|
|
1263
|
-
getMediaName:
|
|
1264
|
-
getStatusLabel:
|
|
1265
|
-
formatRelativeTime:
|
|
1197
|
+
getMediaUrl: I,
|
|
1198
|
+
getMediaName: L,
|
|
1199
|
+
getStatusLabel: R,
|
|
1200
|
+
formatRelativeTime: U
|
|
1266
1201
|
},
|
|
1267
|
-
strings:
|
|
1202
|
+
strings: g
|
|
1268
1203
|
});
|
|
1269
1204
|
if (r.kind !== "comment") return;
|
|
1270
1205
|
let a = r;
|
|
1271
|
-
return /* @__PURE__ */
|
|
1206
|
+
return /* @__PURE__ */ k(c, {
|
|
1272
1207
|
direction: "horizontal",
|
|
1273
1208
|
gap: "md",
|
|
1274
1209
|
align: "stretch",
|
|
1275
1210
|
wrap: !1,
|
|
1276
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")),
|
|
1277
1212
|
"data-event-id": a.id,
|
|
1278
|
-
children: [/* @__PURE__ */
|
|
1279
|
-
icon:
|
|
1213
|
+
children: [/* @__PURE__ */ O(Fe, {
|
|
1214
|
+
icon: te,
|
|
1280
1215
|
tone: "neutral",
|
|
1281
1216
|
density: t.density,
|
|
1282
1217
|
last: t.isLast
|
|
1283
|
-
}), /* @__PURE__ */
|
|
1218
|
+
}), /* @__PURE__ */ O("div", {
|
|
1284
1219
|
className: "activity-log--comment min-w-0 flex-1",
|
|
1285
|
-
children: /* @__PURE__ */
|
|
1220
|
+
children: /* @__PURE__ */ O(v, {
|
|
1286
1221
|
comment: a.comment,
|
|
1287
|
-
canModerate:
|
|
1288
|
-
onDelete:
|
|
1289
|
-
onPinToggle:
|
|
1290
|
-
onReact:
|
|
1291
|
-
onReply:
|
|
1292
|
-
strings:
|
|
1222
|
+
canModerate: d,
|
|
1223
|
+
onDelete: f,
|
|
1224
|
+
onPinToggle: h,
|
|
1225
|
+
onReact: p,
|
|
1226
|
+
onReply: m,
|
|
1227
|
+
strings: g,
|
|
1293
1228
|
resources: l,
|
|
1294
|
-
getMediaUrl:
|
|
1295
|
-
getMediaName:
|
|
1296
|
-
getStatusLabel:
|
|
1297
|
-
formatRelativeTime:
|
|
1229
|
+
getMediaUrl: I,
|
|
1230
|
+
getMediaName: L,
|
|
1231
|
+
getStatusLabel: R,
|
|
1232
|
+
formatRelativeTime: U
|
|
1298
1233
|
})
|
|
1299
1234
|
})]
|
|
1300
1235
|
});
|
|
1301
1236
|
},
|
|
1302
1237
|
renderDetails: (e, t) => {
|
|
1303
1238
|
let n = e.data;
|
|
1304
|
-
return !n || n.kind === "comment" ? null :
|
|
1239
|
+
return !n || n.kind === "comment" ? null : C?.(n, {
|
|
1305
1240
|
expanded: t.expanded,
|
|
1306
1241
|
setExpanded: t.setExpanded,
|
|
1307
1242
|
relativeTime: t.relativeTime,
|
|
@@ -1310,35 +1245,36 @@ function Re(i) {
|
|
|
1310
1245
|
});
|
|
1311
1246
|
}
|
|
1312
1247
|
},
|
|
1313
|
-
className: n("activity-log--component",
|
|
1248
|
+
className: n("activity-log--component", N?.list, F && B)
|
|
1314
1249
|
});
|
|
1315
|
-
if (
|
|
1316
|
-
let
|
|
1317
|
-
return /* @__PURE__ */
|
|
1318
|
-
render: /* @__PURE__ */
|
|
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", {}),
|
|
1319
1254
|
gap: "lg",
|
|
1320
1255
|
"data-component": "activity-log",
|
|
1321
1256
|
"data-slot": "activity-log",
|
|
1322
|
-
className: n("activity-log--component",
|
|
1323
|
-
"aria-label":
|
|
1324
|
-
children: [!!
|
|
1257
|
+
className: n("activity-log--component", B),
|
|
1258
|
+
"aria-label": X,
|
|
1259
|
+
children: [!!Y && /* @__PURE__ */ O(i, {
|
|
1260
|
+
type: "inherit",
|
|
1325
1261
|
weight: "semibold",
|
|
1326
|
-
children:
|
|
1327
|
-
}),
|
|
1262
|
+
children: Y
|
|
1263
|
+
}), J]
|
|
1328
1264
|
});
|
|
1329
1265
|
}
|
|
1330
|
-
|
|
1266
|
+
Ke.displayName = "ActivityLog";
|
|
1331
1267
|
//#endregion
|
|
1332
1268
|
//#region src/components/features/activities/activity-event-adapter.ts
|
|
1333
|
-
function
|
|
1269
|
+
function qe(e) {
|
|
1334
1270
|
if (typeof e == "object" && e && "kind" in e) {
|
|
1335
1271
|
let t = e.kind;
|
|
1336
1272
|
if (typeof t == "string") return t;
|
|
1337
1273
|
}
|
|
1338
1274
|
return "event";
|
|
1339
1275
|
}
|
|
1340
|
-
function
|
|
1341
|
-
let n = t.kind?.(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);
|
|
1342
1278
|
return n === "comment" && a ? {
|
|
1343
1279
|
id: r,
|
|
1344
1280
|
kind: "comment",
|
|
@@ -1365,10 +1301,10 @@ function Be(e, t) {
|
|
|
1365
1301
|
data: t.data?.(e) ?? e
|
|
1366
1302
|
};
|
|
1367
1303
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return (t) =>
|
|
1304
|
+
function Ye(e) {
|
|
1305
|
+
return (t) => Je(t, e);
|
|
1370
1306
|
}
|
|
1371
1307
|
//#endregion
|
|
1372
|
-
export {
|
|
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 };
|
|
1373
1309
|
|
|
1374
1310
|
//# sourceMappingURL=activities.js.map
|