themelia-react-ui 2.0.6 → 3.0.0
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 +250 -0
- package/MIGRATION.md +746 -7
- package/README.md +27 -23
- package/dist/{accordion-0tQUZ20r.js → accordion-DNVqwEIC.js} +36 -36
- package/dist/accordion-DNVqwEIC.js.map +1 -0
- package/dist/action-menu-D5343RwT.js +286 -0
- package/dist/action-menu-D5343RwT.js.map +1 -0
- package/dist/ai-artifact-otrz9ZwS.js +1214 -0
- package/dist/ai-artifact-otrz9ZwS.js.map +1 -0
- package/dist/anchored-positioning-1U_eBFNx.js +9 -0
- package/dist/anchored-positioning-1U_eBFNx.js.map +1 -0
- package/dist/app-shell-CPN30Nb1.js +372 -0
- package/dist/app-shell-CPN30Nb1.js.map +1 -0
- package/dist/{attachment-BCpA4e7i.js → attachment-D2-fpfmv.js} +15 -15
- package/dist/{attachment-BCpA4e7i.js.map → attachment-D2-fpfmv.js.map} +1 -1
- package/dist/{auth-B0girIk_.js → auth-g_oUTDDC.js} +234 -241
- package/dist/auth-g_oUTDDC.js.map +1 -0
- package/dist/{avatar-B9Jnp-T-.js → avatar-Ca3Ihrq4.js} +4 -4
- package/dist/{avatar-B9Jnp-T-.js.map → avatar-Ca3Ihrq4.js.map} +1 -1
- package/dist/{badge-wWauMgAt.js → badge-oGiXblW7.js} +8 -9
- package/dist/badge-oGiXblW7.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 +1 -1
- package/dist/base/buttons.js +2 -2
- package/dist/base/cards.js +3 -3
- package/dist/base/carousel.js +11 -11
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +1 -1
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +7 -7
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +2 -2
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +13 -13
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +203 -2
- package/dist/base/media-gallery.js.map +1 -0
- package/dist/base/metadata-list.js +1 -1
- 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 +32 -22
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +91 -88
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +14 -14
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -12
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +3 -3
- package/dist/base/toaster.js +2 -2
- package/dist/base/tree.js +2 -2
- package/dist/base/upload-queue.js +303 -2
- package/dist/base/upload-queue.js.map +1 -0
- package/dist/base/upload.js +3 -4
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-BoqWIIpV.js → batch-action-bar-D6MZQNnC.js} +10 -10
- package/dist/{batch-action-bar-BoqWIIpV.js.map → batch-action-bar-D6MZQNnC.js.map} +1 -1
- package/dist/blocks/admin.js +242 -228
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +395 -357
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/charts.js +1022 -0
- package/dist/blocks/analytics/charts.js.map +1 -0
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +171 -1365
- 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 +1487 -1358
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -3
- package/dist/blocks/onboarding.js +91 -82
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +25 -25
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +2 -2
- package/dist/{breadcrumbs-Bp9Ke7kd.js → breadcrumbs-CQ9JSlez.js} +52 -45
- package/dist/breadcrumbs-CQ9JSlez.js.map +1 -0
- package/dist/{button-ChBovTx0.js → button-rd6FiHfQ.js} +12 -8
- package/dist/button-rd6FiHfQ.js.map +1 -0
- package/dist/{buttons-DeW0bQeK.js → buttons-pZVgPTZn.js} +230 -246
- package/dist/buttons-pZVgPTZn.js.map +1 -0
- package/dist/{cards-CNXnmvV5.js → cards-CgWyqvgZ.js} +25 -22
- package/dist/{cards-CNXnmvV5.js.map → cards-CgWyqvgZ.js.map} +1 -1
- package/dist/cascader-Cf05pwaq.js +444 -0
- package/dist/cascader-Cf05pwaq.js.map +1 -0
- package/dist/{chart-I7ROnsl8.js → chart-CygRCyIZ.js} +5 -5
- package/dist/{chart-I7ROnsl8.js.map → chart-CygRCyIZ.js.map} +1 -1
- package/dist/{checkbox-MoyHIAPs.js → checkbox-Dy5_XBMZ.js} +4 -4
- package/dist/{checkbox-MoyHIAPs.js.map → checkbox-Dy5_XBMZ.js.map} +1 -1
- package/dist/{choice-inputs-DHGtx0QV.js → choice-inputs-oJEsrb5Y.js} +113 -114
- package/dist/choice-inputs-oJEsrb5Y.js.map +1 -0
- package/dist/{code-block-BSJyq9e-.js → code-block-BrLD7mCi.js} +44 -60
- package/dist/code-block-BrLD7mCi.js.map +1 -0
- package/dist/collapsible-CRCCg_bO.js +80 -0
- package/dist/collapsible-CRCCg_bO.js.map +1 -0
- package/dist/{collection-content-CSnwtOTH.js → collection-content-D7SoDlYd.js} +3 -3
- package/dist/{collection-content-CSnwtOTH.js.map → collection-content-D7SoDlYd.js.map} +1 -1
- package/dist/combobox-Dl6f6kHz.js +362 -0
- package/dist/combobox-Dl6f6kHz.js.map +1 -0
- package/dist/combobox-DrDXtSSt.js +929 -0
- package/dist/combobox-DrDXtSSt.js.map +1 -0
- package/dist/command-CjZ2VzKC.js +432 -0
- package/dist/command-CjZ2VzKC.js.map +1 -0
- package/dist/comments-C2MZyRmh.js +1214 -0
- package/dist/comments-C2MZyRmh.js.map +1 -0
- package/dist/components/base/accordion/accordion.d.ts +11 -3
- package/dist/components/base/action-menu/action-menu.d.ts +11 -3
- package/dist/components/base/buttons/button.d.ts +2 -2
- package/dist/components/base/buttons/index.d.ts +1 -1
- package/dist/components/base/buttons/loader-button.d.ts +6 -15
- package/dist/components/base/cards/index.d.ts +1 -1
- package/dist/components/base/cards/partials/card-body-context.d.ts +6 -0
- package/dist/components/base/cards/smart-card.d.ts +0 -2
- package/dist/components/base/cards/smart-card.types.d.ts +12 -10
- package/dist/components/base/cascader/cascader.d.ts +8 -2
- package/dist/components/base/cascader/cascader.types.d.ts +24 -2
- package/dist/components/base/cascader/index.d.ts +1 -1
- package/dist/components/base/choice-inputs/switch.d.ts +1 -1
- package/dist/components/base/code-block/use-code-copy.d.ts +2 -6
- package/dist/components/base/command/command.d.ts +1 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +1 -3
- package/dist/components/base/display/dialog.d.ts +3 -9
- package/dist/components/base/display/index.d.ts +2 -3
- package/dist/components/base/display/separator.d.ts +1 -1
- package/dist/components/base/feedback/alert.d.ts +2 -1
- package/dist/components/base/feedback/empty.d.ts +10 -2
- package/dist/components/base/forms/workflow.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +9 -17
- package/dist/components/base/forms-numeric/index.d.ts +3 -3
- package/dist/components/base/item/item.types.d.ts +6 -2
- package/dist/components/base/metadata-list/index.d.ts +1 -3
- package/dist/components/base/metadata-list/metadata-list.d.ts +4 -1
- package/dist/components/base/navigation/index.d.ts +2 -2
- package/dist/components/base/navigation/language-switcher.d.ts +7 -6
- package/dist/components/base/navigation/navigation-tabs.d.ts +8 -1
- package/dist/components/base/navigation/page-header/index.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header.d.ts +13 -17
- package/dist/components/base/navigation/pagination.d.ts +5 -5
- package/dist/components/base/popover/popover.recipes.d.ts +0 -1
- package/dist/components/base/qr-code/qr-code.d.ts +4 -0
- package/dist/components/base/repeaters/index.d.ts +1 -1
- package/dist/components/base/repeaters/key-value-editor.d.ts +4 -0
- package/dist/components/base/sheet/sheet.d.ts +6 -15
- package/dist/components/base/sidebar/index.d.ts +1 -6
- package/dist/components/base/sidebar/sidebar.d.ts +38 -10
- package/dist/components/base/skeleton/skeleton.d.ts +1 -1
- package/dist/components/base/structure/structure.types.d.ts +11 -2
- package/dist/components/base/text-inputs/index.d.ts +1 -1
- package/dist/components/base/tree/index.d.ts +1 -0
- package/dist/components/base/tree/tree.d.ts +2 -2
- package/dist/components/base/tree/tree.types.d.ts +7 -1
- package/dist/components/base/upload/file-upload.validation.d.ts +37 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -0
- package/dist/components/base/upload/index.d.ts +3 -9
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -0
- package/dist/components/base/value-inputs/slider.d.ts +5 -2
- package/dist/components/blocks/admin/action-surfaces/index.d.ts +17 -4
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +9 -3
- package/dist/components/blocks/admin/index.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/ai-artifact.d.ts +1 -1
- package/dist/components/blocks/ai/ai-artifact/types.d.ts +9 -4
- package/dist/components/blocks/ai/ai-chain-of-thought/ai-chain-of-thought.d.ts +1 -1
- package/dist/components/blocks/ai/ai-chain-of-thought/types.d.ts +11 -1
- package/dist/components/blocks/ai/ai-citation/ai-citation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-confirmation/ai-confirmation.d.ts +1 -1
- package/dist/components/blocks/ai/ai-confirmation/types.d.ts +21 -5
- package/dist/components/blocks/ai/ai-feedback/types.d.ts +7 -2
- package/dist/components/blocks/ai/ai-inline-citation/types.d.ts +9 -3
- package/dist/components/blocks/ai/ai-package-info/ai-package-info.d.ts +1 -1
- package/dist/components/blocks/ai/ai-package-info/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai-sources/ai-sources.d.ts +1 -1
- package/dist/components/blocks/ai/ai-sources/types.d.ts +8 -2
- package/dist/components/blocks/ai/ai-task/ai-task.d.ts +1 -1
- package/dist/components/blocks/ai/ai-task/types.d.ts +10 -1
- package/dist/components/blocks/ai/ai-tool-call/ai-tool-call.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +6 -0
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/activity-heatmap/types.d.ts +1 -1
- package/dist/components/blocks/analytics/analytics.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/atoms/metric-trend-chip.d.ts +11 -1
- package/dist/components/blocks/analytics/chart-card/chart-card.d.ts +7 -5
- package/dist/components/blocks/analytics/charts/index.d.ts +27 -0
- package/dist/components/blocks/analytics/index.d.ts +17 -24
- package/dist/components/blocks/analytics/metric/metric.d.ts +5 -5
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +2 -2
- package/dist/components/blocks/analytics/types.d.ts +12 -3
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +5 -16
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +2 -2
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +6 -4
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +0 -2
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +9 -11
- package/dist/components/blocks/commerce/coupon-input/coupon-input.d.ts +1 -1
- package/dist/components/blocks/commerce/coupon-input/types.d.ts +7 -3
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +0 -2
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +4 -6
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +2 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-balance.d.ts +18 -0
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-compact.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.d.ts +0 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-dark.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-full.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.d.ts +1 -1
- package/dist/components/blocks/commerce/giftcard-card/types.d.ts +16 -5
- package/dist/components/blocks/commerce/index.d.ts +8 -8
- package/dist/components/blocks/commerce/inventory-level/inventory-level.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/inventory-level/types.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +0 -5
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +6 -3
- package/dist/components/blocks/commerce/loyalty-points/loyalty-points.d.ts +1 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +11 -5
- package/dist/components/blocks/commerce/order-status/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +8 -8
- package/dist/components/blocks/commerce/order-timeline/order-timeline.d.ts +1 -1
- package/dist/components/blocks/commerce/order-timeline/types.d.ts +3 -1
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +0 -8
- package/dist/components/blocks/commerce/payment-method/types.d.ts +0 -2
- package/dist/components/blocks/commerce/receipt/index.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/receipt-items.d.ts +1 -1
- package/dist/components/blocks/commerce/receipt/types.d.ts +10 -0
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +0 -2
- package/dist/components/blocks/commerce/refund-status/types.d.ts +0 -2
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +7 -0
- package/dist/components/blocks/commerce/shared/code-entry.d.ts +39 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/subscription-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/subscription-summary/types.d.ts +10 -1
- package/dist/components/blocks/commerce/upcoming-booking/index.d.ts +2 -1
- package/dist/components/blocks/commerce/upcoming-booking/types.d.ts +8 -0
- package/dist/components/blocks/commerce/upcoming-booking/upcoming-booking.d.ts +2 -2
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -5
- package/dist/components/blocks/commerce/voucher-entry/types.d.ts +6 -3
- package/dist/components/blocks/commerce/voucher-entry/voucher-entry.d.ts +1 -1
- package/dist/components/blocks/content-block-hooks.d.ts +22 -0
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +5 -1
- package/dist/components/blocks/data-display/dense-info-card/helpers.d.ts +3 -1
- package/dist/components/blocks/data-display/dense-info-card/index.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-classification.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-dashboard.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-financial.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-project.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/partials/dense-info-score.d.ts +1 -1
- package/dist/components/blocks/data-display/dense-info-card/types.d.ts +12 -5
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +6 -0
- package/dist/components/blocks/data-display/index.d.ts +0 -1
- package/dist/components/blocks/data-display/relationship-card-frame.d.ts +1 -1
- package/dist/components/blocks/onboarding/checklist/checklist.types.d.ts +5 -3
- package/dist/components/blocks/planning/task-card.types.d.ts +7 -3
- package/dist/components/blocks/timelines/changelog/types.d.ts +2 -2
- package/dist/components/blocks/timelines/index.d.ts +2 -2
- package/dist/components/blocks/timelines/milestones/types.d.ts +2 -2
- package/dist/components/blocks/timelines/shared/timeline.d.ts +6 -0
- package/dist/components/blocks/timelines/steps-card/index.d.ts +2 -1
- package/dist/components/blocks/timelines/steps-card/steps-card.d.ts +2 -2
- package/dist/components/blocks/timelines/steps-card/types.d.ts +13 -1
- package/dist/components/features/activities/activities.strings.d.ts +5 -3
- package/dist/components/features/activities/activities.types.d.ts +28 -11
- package/dist/components/features/activities/hooks/use-activity-feed.d.ts +6 -0
- package/dist/components/features/activities/index.d.ts +1 -1
- package/dist/components/features/activities/partials/activity-headline.d.ts +5 -0
- package/dist/components/features/activities/partials/activity-row.d.ts +12 -13
- package/dist/components/features/activities/partials/row-layers.d.ts +7 -0
- package/dist/components/features/activities/relative-time.d.ts +18 -0
- package/dist/components/features/ai-chat/ai-chat.d.ts +6 -2
- package/dist/components/features/ai-chat/ai-chat.strings.d.ts +41 -2
- package/dist/components/features/ai-chat/ai-chat.types.d.ts +6 -0
- package/dist/components/features/ai-chat/partials/ai-chat-attachments-strip.d.ts +5 -1
- package/dist/components/features/ai-chat/partials/ai-chat-prompt-input.d.ts +2 -2
- package/dist/components/features/ai-chat/partials/ai-chat-queue.d.ts +3 -1
- package/dist/components/features/ai-chat/partials/ai-chat-suggestions-row.d.ts +6 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +19 -5
- package/dist/components/features/appointment-calendar/index.d.ts +1 -1
- package/dist/components/features/appointment-calendar/partials/appointment-agenda.d.ts +18 -10
- package/dist/components/features/async-preview/async-preview.d.ts +2 -2
- package/dist/components/features/async-preview/async-preview.types.d.ts +30 -1
- package/dist/components/features/async-preview/preview-trigger-cell.d.ts +7 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +12 -3
- package/dist/components/features/combobox/components/error-message.d.ts +3 -1
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -2
- package/dist/components/features/combobox/index.d.ts +1 -1
- package/dist/components/features/combobox/types.d.ts +47 -45
- package/dist/components/features/comments/comments.strings.d.ts +6 -5
- package/dist/components/features/comments/comments.types.d.ts +40 -26
- package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -1
- package/dist/components/features/comments/hooks/use-comments.d.ts +8 -1
- package/dist/components/features/data-view/data-view.strings.d.ts +9 -2
- package/dist/components/features/data-view/data-view.types.d.ts +15 -2
- package/dist/components/features/email-composer/email-html.d.ts +5 -0
- package/dist/components/features/email-composer/http.d.ts +2 -0
- package/dist/components/features/email-composer/strings.d.ts +17 -2
- package/dist/components/features/email-composer/types.d.ts +17 -2
- package/dist/components/features/email-composer/use-composer.d.ts +2 -78
- package/dist/components/features/event-calendar/event-calendar-day-cell.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-event-badge.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-header.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar-legend.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.d.ts +1 -1
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +126 -21
- package/dist/components/features/filters/facets/range-facet.d.ts +13 -8
- package/dist/components/features/filters/filter-context.d.ts +9 -0
- package/dist/components/features/filters/filters.strings.d.ts +36 -3
- package/dist/components/features/filters/filters.types.d.ts +72 -5
- package/dist/components/features/filters/hooks/use-filter-draft.d.ts +1 -0
- package/dist/components/features/filters/index.d.ts +2 -2
- package/dist/components/features/filters/operator-options.d.ts +25 -2
- package/dist/components/features/filters/partials/active-filter-item.d.ts +0 -13
- package/dist/components/features/filters/partials/async-options-status.d.ts +32 -0
- package/dist/components/features/filters/partials/filter-draft-footer.d.ts +11 -0
- package/dist/components/features/filters/partials/filter-operator-select.d.ts +4 -2
- package/dist/components/features/filters/partials/filter-pill.d.ts +5 -1
- package/dist/components/features/filters/partials/filter-tabs.d.ts +2 -1
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +1 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +29 -4
- package/dist/components/features/global-search/global-search-dialog.d.ts +7 -1
- package/dist/components/features/global-search/global-search.d.ts +7 -1
- package/dist/components/features/global-search/global-search.strings.d.ts +19 -3
- package/dist/components/features/global-search/global-search.types.d.ts +30 -6
- package/dist/components/features/global-search/index.d.ts +1 -1
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +6 -1
- package/dist/components/features/global-search/partials/global-search-input.d.ts +2 -0
- package/dist/components/features/kanban/index.d.ts +2 -2
- package/dist/components/features/kanban/kanban-context.d.ts +4 -0
- package/dist/components/features/kanban/kanban-keyboard.d.ts +7 -2
- package/dist/components/features/kanban/kanban.d.ts +10 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +11 -2
- package/dist/components/features/kanban/kanban.types.d.ts +26 -0
- package/dist/components/features/map/map.d.ts +4 -0
- package/dist/components/features/map/place-autocomplete.d.ts +10 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +3 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +33 -3
- package/dist/components/features/media-library/media-library.types.d.ts +47 -2
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/mentions/hooks/use-mentions-search.d.ts +7 -0
- package/dist/components/features/mentions/index.d.ts +1 -1
- package/dist/components/features/mentions/mentions.strings.d.ts +10 -2
- package/dist/components/features/mentions/partials/mention-chip.d.ts +1 -0
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-picker.d.ts +8 -1
- package/dist/components/features/mentions/partials/mention-search-error.d.ts +6 -0
- package/dist/components/features/mentions/utils/index.d.ts +0 -1
- 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/drawer.d.ts +1 -1
- package/dist/components/features/overlays/index.d.ts +2 -2
- package/dist/components/features/overlays/overlays.strings.d.ts +2 -1
- package/dist/components/features/overlays/overlays.types.d.ts +27 -10
- package/dist/components/features/products/components/index.d.ts +0 -10
- package/dist/components/features/products/components/product-contract-overview.d.ts +1 -1
- package/dist/components/features/products/components/product-details-card.d.ts +1 -1
- package/dist/components/features/products/components/product-operations-card.d.ts +1 -1
- package/dist/components/features/products/components/product-option-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-options-summary.d.ts +1 -1
- package/dist/components/features/products/components/product-policies-card.d.ts +1 -1
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +1 -1
- package/dist/components/features/products/components/product-readiness-card.d.ts +1 -1
- package/dist/components/features/products/components/product-structure-card.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-table.d.ts +1 -1
- package/dist/components/features/products/partials/product-surface.d.ts +15 -0
- package/dist/components/features/products/products.strings.d.ts +8 -0
- package/dist/components/features/products/products.types.d.ts +25 -7
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +6 -4
- package/dist/components/features/resource/index.d.ts +2 -3
- package/dist/components/features/resource/resource.d.ts +2 -10
- package/dist/components/features/resource/resource.types.d.ts +7 -149
- package/dist/components/features/resource-assignment/partials/assignment-surface.d.ts +15 -0
- package/dist/components/features/resource-assignment/resource-assignment.strings.d.ts +6 -1
- package/dist/components/features/resource-assignment/resource-assignment.types.d.ts +6 -0
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +5 -7
- package/dist/components/features/rich-text-editor/partials/html-helpers.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +6 -2
- package/dist/components/features/rich-text-editor/partials/index.d.ts +2 -3
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-tiptap.d.ts +0 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +2 -3
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +13 -1
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -0
- package/dist/components/features/schema-form/schema-form.d.ts +1 -1
- package/dist/components/features/schema-form/schema-form.types.d.ts +13 -5
- package/dist/components/features/suggestions/suggestions.strings.d.ts +14 -0
- package/dist/components/features/suggestions/suggestions.types.d.ts +12 -4
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/filter-bar.d.ts +1 -1
- package/dist/components/features/table/pagination.d.ts +1 -1
- package/dist/components/features/table/partials/cell-value.d.ts +1 -1
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-header.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +31 -9
- package/dist/components/features/table/table-region.recipes.d.ts +11 -0
- package/dist/components/features/table/table-toolbar.d.ts +1 -1
- package/dist/components/features/table/table.strings.d.ts +1 -0
- package/dist/components/features/table/table.types.d.ts +74 -48
- package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +4 -0
- package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +10 -7
- package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +17 -0
- package/dist/components/layout/app-shell/app-shell.types.d.ts +46 -49
- package/dist/components/layout/app-shell/index.d.ts +2 -2
- package/dist/components/layout/app-shell/shell-regions.d.ts +9 -0
- package/dist/components/layout/app-shell/shell-skip-link.d.ts +9 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/auth/auth-shell.d.ts +1 -1
- package/dist/components/layout/auth/auth.types.d.ts +0 -5
- package/dist/components/layout/containers/inline-gutter-context.d.ts +7 -0
- package/dist/components/layout/containers/main-landmark-context.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +16 -6
- package/dist/components/layout/header/partials/header-global-search-trigger.d.ts +1 -1
- package/dist/components/layout/header/partials/header-notifications.d.ts +1 -1
- package/dist/components/layout/header/partials/header-search.d.ts +1 -1
- package/dist/components/layout/hooks/use-command-shortcut.d.ts +10 -1
- package/dist/components/layout/layout.types.d.ts +2 -2
- package/dist/components/layout/navigation/breadcrumb-progress/breadcrumb-progress.d.ts +1 -1
- package/dist/components/layout/navigation/breadcrumb-progress/types.d.ts +9 -0
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +8 -1
- package/dist/components/layout/page/index.d.ts +2 -3
- package/dist/components/layout/page/page.strings.d.ts +12 -0
- package/dist/components/layout/page/page.types.d.ts +7 -110
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/index.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +3 -5
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation-footer.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +1 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +15 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +10 -12
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +4 -0
- package/dist/components/layout/workspace/workspace.strings.d.ts +2 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +13 -7
- package/dist/components/primitives/date.d.ts +22 -3
- package/dist/components/primitives/file-size.d.ts +8 -2
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +3 -1
- package/dist/components/primitives/link.d.ts +8 -1
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +2 -1
- package/dist/components/typography/heading.d.ts +9 -3
- package/dist/components/typography/index.d.ts +1 -1
- package/dist/components/typography/text-link.d.ts +10 -3
- package/dist/components/ui/badge.d.ts +2 -4
- package/dist/components/ui/breadcrumb.d.ts +2 -3
- package/dist/components/ui/button.d.ts +8 -2
- package/dist/components/ui/collapsible.d.ts +1 -4
- package/dist/components/ui/command.d.ts +20 -18
- package/dist/components/ui/dialog.d.ts +3 -9
- package/dist/components/ui/empty.d.ts +2 -2
- package/dist/components/ui/input-group.d.ts +3 -3
- package/dist/components/ui/item.d.ts +3 -3
- package/dist/components/ui/popover.d.ts +3 -7
- package/dist/components/ui/sheet.d.ts +4 -12
- package/dist/components/ui/sidebar-state.d.ts +6 -1
- package/dist/components/ui/sidebar.d.ts +7 -4
- package/dist/components/ui/tabs.d.ts +2 -2
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/tooltip.d.ts +1 -3
- package/dist/{containers-CSdc32h9.js → containers-BdfLTP4w.js} +37 -32
- package/dist/containers-BdfLTP4w.js.map +1 -0
- package/dist/content-block-hooks-Z3iKjqd1.js +17 -0
- package/dist/content-block-hooks-Z3iKjqd1.js.map +1 -0
- package/dist/{copyable-3fdHfMR3.js → copyable-Bmr14W0d.js} +6 -6
- package/dist/{copyable-3fdHfMR3.js.map → copyable-Bmr14W0d.js.map} +1 -1
- package/dist/{data-display-Cmj-xZYl.js → data-display-CWe9SOYh.js} +264 -251
- package/dist/data-display-CWe9SOYh.js.map +1 -0
- package/dist/date-3qsCE1ID.js +209 -0
- package/dist/date-3qsCE1ID.js.map +1 -0
- package/dist/{date-picker-CyQlFYsP.js → date-picker-D1keJQIG.js} +129 -129
- package/dist/date-picker-D1keJQIG.js.map +1 -0
- package/dist/date-pickers-D8aJoeHc.js +185 -0
- package/dist/date-pickers-D8aJoeHc.js.map +1 -0
- package/dist/disclosure-panel-B0HFNZ9x.js.map +1 -1
- package/dist/{display-CT_N2a3w.js → display-VlmP1I0i.js} +23 -46
- package/dist/display-VlmP1I0i.js.map +1 -0
- package/dist/{dropdown-menu-C08iIugv.js → dropdown-menu-B8hjvbkS.js} +9 -9
- package/dist/{dropdown-menu-C08iIugv.js.map → dropdown-menu-B8hjvbkS.js.map} +1 -1
- package/dist/dropzone-CHBNK3de.js +116 -0
- package/dist/dropzone-CHBNK3de.js.map +1 -0
- package/dist/features/activities.js +682 -628
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +258 -226
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +436 -340
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +351 -265
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +2 -2
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +212 -151
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +344 -315
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +504 -355
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +250 -206
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +269 -189
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +385 -371
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1571 -1199
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +2 -2
- package/dist/features/products.js +1780 -1691
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +165 -152
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +223 -191
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +55 -220
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +3 -3
- package/dist/features/schema-form.js +280 -228
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +48 -39
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/table.js +2 -2
- package/dist/features/theme-tweaker.js +723 -633
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-DmqmXKLn.js +254 -0
- package/dist/feedback-DmqmXKLn.js.map +1 -0
- package/dist/{field-affordance-recipes-D6H7tVJi.js → field-affordance-recipes-DfbMadot.js} +13 -9
- package/dist/field-affordance-recipes-DfbMadot.js.map +1 -0
- package/dist/{field-state-recipes-7sza8QbC.js → field-state-recipes-EtCxpEy3.js} +6 -2
- package/dist/field-state-recipes-EtCxpEy3.js.map +1 -0
- package/dist/filters-BviMRMLS.js +2692 -0
- package/dist/filters-BviMRMLS.js.map +1 -0
- package/dist/{focus-recipes-B653VaLq.js → focus-recipes-DSkiUvUp.js} +3 -3
- package/dist/focus-recipes-DSkiUvUp.js.map +1 -0
- package/dist/{form-field-CAPdwdnZ.js → form-field-BdfCwSoQ.js} +5 -5
- package/dist/{form-field-CAPdwdnZ.js.map → form-field-BdfCwSoQ.js.map} +1 -1
- package/dist/{form-sizing-CgcrUbLU.js → form-sizing-DE_dZw32.js} +3 -3
- package/dist/{form-sizing-CgcrUbLU.js.map → form-sizing-DE_dZw32.js.map} +1 -1
- package/dist/{forms-B3W8CH7-.js → forms-B8DzJnBN.js} +35 -35
- package/dist/forms-B8DzJnBN.js.map +1 -0
- package/dist/forms-numeric-DOBswjKj.js +992 -0
- package/dist/forms-numeric-DOBswjKj.js.map +1 -0
- package/dist/{header-ZIIsRKxP.js → header-Cq3G0ZRP.js} +100 -95
- package/dist/header-Cq3G0ZRP.js.map +1 -0
- package/dist/{hooks-BitHSh-Y.js → hooks-DHfeSMAO.js} +34 -14
- package/dist/hooks-DHfeSMAO.js.map +1 -0
- package/dist/{http-D_6rOnzU.js → http-Cu-GPpss.js} +61 -35
- package/dist/http-Cu-GPpss.js.map +1 -0
- package/dist/{icon-badge-npxF1SLX.js → icon-badge-B0Kq7wom.js} +3 -3
- package/dist/{icon-badge-npxF1SLX.js.map → icon-badge-B0Kq7wom.js.map} +1 -1
- package/dist/index.js +6 -6
- package/dist/inline-gutter-context-CSqmrMFZ.js +11 -0
- package/dist/inline-gutter-context-CSqmrMFZ.js.map +1 -0
- package/dist/{input-DIREVYHs.js → input-2YrgTUrz.js} +3 -3
- package/dist/{input-DIREVYHs.js.map → input-2YrgTUrz.js.map} +1 -1
- package/dist/{input-7KAc7XQL.js → input-DfJyrjoR.js} +6 -6
- package/dist/{input-7KAc7XQL.js.map → input-DfJyrjoR.js.map} +1 -1
- package/dist/{interaction-recipes-4wZ2tvfb.js → interaction-recipes-DmuS1ase.js} +2 -2
- package/dist/{interaction-recipes-4wZ2tvfb.js.map → interaction-recipes-DmuS1ase.js.map} +1 -1
- package/dist/item-GJ9mvCcg.js +279 -0
- package/dist/item-GJ9mvCcg.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 +2 -2
- package/dist/layout/settings.js +2 -2
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/{layout.types-E_GAApzO.js → layout.types-DbtnyAtd.js} +11 -8
- package/dist/layout.types-DbtnyAtd.js.map +1 -0
- package/dist/lib/anchored-positioning.d.ts +11 -0
- package/dist/lib/field-affordance-recipes.d.ts +10 -0
- package/dist/lib/field-state-recipes.d.ts +6 -0
- package/dist/lib/focus-recipes.d.ts +7 -0
- package/dist/lib/format.d.ts +25 -0
- package/dist/lib/money-format.d.ts +6 -0
- package/dist/lib/motion-recipes.d.ts +6 -0
- package/dist/lib/surface-recipes.d.ts +32 -2
- package/dist/lib/theme-scope.d.ts +17 -1
- package/dist/lib/token-merge.generated.d.ts +13 -19
- package/dist/lib/ui-provider/index.d.ts +1 -1
- package/dist/lib/ui-provider/types.d.ts +5 -0
- package/dist/lib/use-controllable-state.d.ts +16 -0
- package/dist/lib/use-copy-feedback.d.ts +15 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib/variant-props.d.ts +9 -0
- package/dist/main-landmark-context-BAsyqp2I.js +11 -0
- package/dist/main-landmark-context-BAsyqp2I.js.map +1 -0
- package/dist/mentions-zz0ewNIq.js +670 -0
- package/dist/mentions-zz0ewNIq.js.map +1 -0
- package/dist/{message-BJHnn43M.js → message-BiiVrRrm.js} +10 -7
- package/dist/{message-BJHnn43M.js.map → message-BiiVrRrm.js.map} +1 -1
- package/dist/{metadata-list-XkqZ_UXH.js → metadata-list-G85roWjS.js} +13 -12
- package/dist/metadata-list-G85roWjS.js.map +1 -0
- package/dist/{motion-recipes-DitYv6P2.js → motion-recipes-CUc_aHuG.js} +7 -4
- package/dist/motion-recipes-CUc_aHuG.js.map +1 -0
- package/dist/navigation-C0Be5C3i.js +304 -0
- package/dist/navigation-C0Be5C3i.js.map +1 -0
- package/dist/{navigation-Bt-v7rWP.js → navigation-CmqaQR_G.js} +99 -103
- package/dist/navigation-CmqaQR_G.js.map +1 -0
- package/dist/number-NFWKIoiK.js +340 -0
- package/dist/number-NFWKIoiK.js.map +1 -0
- package/dist/{overflow-tab-bar-BQCA2Zn2.js → overflow-tab-bar-DV7HE_3t.js} +8 -8
- package/dist/{overflow-tab-bar-BQCA2Zn2.js.map → overflow-tab-bar-DV7HE_3t.js.map} +1 -1
- package/dist/overlays-D-gAIfPF.js +1018 -0
- package/dist/overlays-D-gAIfPF.js.map +1 -0
- package/dist/page-D4pQhgSq.js +216 -0
- package/dist/page-D4pQhgSq.js.map +1 -0
- package/dist/{page-header-commands-DIKspJfx.js → page-header-commands-elelNOfd.js} +29 -29
- package/dist/{page-header-commands-DIKspJfx.js.map → page-header-commands-elelNOfd.js.map} +1 -1
- package/dist/{pagination-Br8TdV9A.js → pagination-BuSWw1US.js} +22 -23
- package/dist/pagination-BuSWw1US.js.map +1 -0
- package/dist/{popover-k8TdUcAt.js → popover-BpMxbqEK.js} +73 -69
- package/dist/popover-BpMxbqEK.js.map +1 -0
- package/dist/{popover-menu-yn-o0kyA.js → popover-menu-CO-_iiuz.js} +7 -7
- package/dist/{popover-menu-yn-o0kyA.js.map → popover-menu-CO-_iiuz.js.map} +1 -1
- package/dist/{popover.recipes-DJ0AkUan.js → popover.recipes-BqkdvlZn.js} +3 -4
- package/dist/{popover.recipes-DJ0AkUan.js.map → popover.recipes-BqkdvlZn.js.map} +1 -1
- package/dist/{portal-recipes-DyUXqUtD.js → portal-recipes-BPeS4rGB.js} +2 -2
- package/dist/{portal-recipes-DyUXqUtD.js.map → portal-recipes-BPeS4rGB.js.map} +1 -1
- package/dist/primitives-BlC1lXBr.js +447 -0
- package/dist/primitives-BlC1lXBr.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-DZFXXzPs.js → progress-RARK8AjB.js} +5 -5
- package/dist/{progress-DZFXXzPs.js.map → progress-RARK8AjB.js.map} +1 -1
- package/dist/receipt-CUf2Vegp.js +114 -0
- package/dist/receipt-CUf2Vegp.js.map +1 -0
- package/dist/{rich-text-BnTzZjIo.js → rich-text-Cypm9__d.js} +7 -8
- package/dist/{rich-text-BnTzZjIo.js.map → rich-text-Cypm9__d.js.map} +1 -1
- package/dist/rich-text-editor-Z6cQepsA.js +919 -0
- package/dist/rich-text-editor-Z6cQepsA.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js +100 -0
- package/dist/rich-text-editor-toolbar-DYbRJARB.js.map +1 -0
- package/dist/rich-text-tree-DdKHIJx4.js +154 -0
- package/dist/rich-text-tree-DdKHIJx4.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/{scroll-area-Bj6CRUif.js → scroll-area-B9HKbji0.js} +3 -3
- package/dist/{scroll-area-Bj6CRUif.js.map → scroll-area-B9HKbji0.js.map} +1 -1
- package/dist/{separator-DM6gs2vu.js → separator-DaDe26sf.js} +3 -3
- package/dist/separator-DaDe26sf.js.map +1 -0
- package/dist/{separator-B9ewiCGO.js → separator-KGsNXt2J.js} +2 -2
- package/dist/{separator-B9ewiCGO.js.map → separator-KGsNXt2J.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +5 -2
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +2 -2
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-D5j_RJvT.js +160 -0
- package/dist/settings-D5j_RJvT.js.map +1 -0
- package/dist/sheet-B6j_BE9O.js +241 -0
- package/dist/sheet-B6j_BE9O.js.map +1 -0
- package/dist/{sidebar-CmD6a-HK.js → sidebar-C-iQ_TJP.js} +377 -351
- package/dist/sidebar-C-iQ_TJP.js.map +1 -0
- package/dist/sidebar-D5VO2W8S.js +715 -0
- package/dist/sidebar-D5VO2W8S.js.map +1 -0
- package/dist/{skeleton-DDgdhmu9.js → skeleton-Cab_KgVo.js} +12 -12
- package/dist/skeleton-Cab_KgVo.js.map +1 -0
- package/dist/{smart-card-B6vLxqa_.js → smart-card-C59z6KFO.js} +217 -210
- package/dist/smart-card-C59z6KFO.js.map +1 -0
- package/dist/{structure-DZJ2wbAU.js → structure-DElaQwwN.js} +2 -2
- package/dist/{structure-DZJ2wbAU.js.map → structure-DElaQwwN.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-C8mNycaY.js → surface-recipes-DV6rrOFq.js} +10 -2
- package/dist/surface-recipes-DV6rrOFq.js.map +1 -0
- package/dist/{table-CXSPHH25.js → table-CSRUgpdK.js} +62 -61
- package/dist/table-CSRUgpdK.js.map +1 -0
- package/dist/table-DdXDBsR_.js +1657 -0
- package/dist/table-DdXDBsR_.js.map +1 -0
- package/dist/{tabs-C4Kr_hCr.js → tabs-WnHfV2pM.js} +27 -27
- package/dist/tabs-WnHfV2pM.js.map +1 -0
- package/dist/{text-inputs-jdkS3ReG.js → text-inputs-ljyBYaCd.js} +112 -112
- package/dist/text-inputs-ljyBYaCd.js.map +1 -0
- package/dist/theme.css +21 -5
- package/dist/timelines-mOmS9Eh3.js +479 -0
- package/dist/timelines-mOmS9Eh3.js.map +1 -0
- package/dist/tooltip-yjX-Uv-p.js +112 -0
- package/dist/tooltip-yjX-Uv-p.js.map +1 -0
- package/dist/{tree-CeYVzdFE.js → tree-YpkxUG2Z.js} +80 -72
- package/dist/tree-YpkxUG2Z.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-C7-YMW1S.js → typography-C0dELqYV.js} +46 -40
- package/dist/typography-C0dELqYV.js.map +1 -0
- package/dist/typography.js +1 -1
- package/dist/{ui-provider-C-74NVLc.js → ui-provider-Bu1S-o96.js} +4 -3
- package/dist/ui-provider-Bu1S-o96.js.map +1 -0
- package/dist/ui-provider.js +2 -2
- package/dist/{upload-Hdm5gObf.js → upload-DMuMYJFT.js} +276 -268
- package/dist/upload-DMuMYJFT.js.map +1 -0
- package/dist/{usage-card-9s8hLDfn.js → usage-card-DDPki5P1.js} +57 -54
- package/dist/usage-card-DDPki5P1.js.map +1 -0
- package/dist/use-controllable-state-BlP8SyBI.js +13 -0
- package/dist/use-controllable-state-BlP8SyBI.js.map +1 -0
- package/dist/use-copy-feedback-CzcaqlLf.js +28 -0
- package/dist/use-copy-feedback-CzcaqlLf.js.map +1 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js +251 -0
- package/dist/use-metric-format-options-Dk4rC1NO.js.map +1 -0
- package/dist/{utils-DhuoqFy4.js → utils-BVbAG2J6.js} +98 -76
- package/dist/utils-BVbAG2J6.js.map +1 -0
- package/dist/value-inputs-h5MwjGCo.js +982 -0
- package/dist/value-inputs-h5MwjGCo.js.map +1 -0
- package/dist/value-typography-D15uwfj-.js +154 -0
- package/dist/value-typography-D15uwfj-.js.map +1 -0
- package/dist/workspace-DIryPqBt.js +400 -0
- package/dist/workspace-DIryPqBt.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +7 -0
- package/docs/consumer-skill/agents/themelia-ui-designer.md +11 -2
- package/docs/consumer-skill/examples/analytics.tsx +1 -1
- package/docs/consumer-skill/examples/app-layout.tsx +3 -3
- package/docs/consumer-skill/examples/commerce-lines.tsx +7 -5
- package/docs/consumer-skill/examples/detail.tsx +3 -2
- package/docs/consumer-skill/examples/email-composer.tsx +1 -1
- package/docs/consumer-skill/examples/index-table.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +7 -6
- package/docs/consumer-skill/references/agents-md.md +20 -16
- package/docs/consumer-skill/references/analytics.md +20 -6
- package/docs/consumer-skill/references/building-views.md +213 -0
- package/docs/consumer-skill/references/catalogue.md +617 -0
- package/docs/consumer-skill/references/component-contracts.json +10202 -18084
- package/docs/consumer-skill/references/composition.md +21 -17
- package/docs/consumer-skill/references/discovery.md +8 -5
- package/docs/consumer-skill/references/installation.md +10 -4
- package/docs/consumer-skill/references/integration.md +5 -5
- package/docs/consumer-skill/references/product-composition.md +2 -2
- package/docs/consumer-skill/references/public-api.json +580 -633
- package/docs/consumer-skill/references/review.md +6 -4
- package/docs/consumer-skill/references/screen-archetypes.md +2 -2
- package/docs/consumer-skill/references/theming.md +1 -1
- package/docs/consumer-skill/references/tokens.json +4 -4
- package/docs/consumer-skill/references/workflows.md +7 -7
- package/docs/consumer-skill/scripts/composition-policy.mjs +40 -20
- package/docs/consumer-skill/scripts/composition.mjs +4 -1
- package/docs/consumer-skill/scripts/discovery.mjs +3 -1
- package/docs/consumer-skill/scripts/setup-skills.mjs +31 -4
- package/docs/consumer-skills/themelia-components/SKILL.md +8 -4
- package/docs/consumer-skills/themelia-composition/SKILL.md +7 -3
- package/docs/consumer-skills/themelia-design/SKILL.md +7 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +1 -1
- package/package.json +9 -12
- package/templates/README.md +3 -2
- package/templates/admin-shell-template.tsx +49 -9
- package/templates/analytics-operations-template.tsx +20 -24
- package/templates/customers-template.tsx +12 -9
- package/templates/index.ts +2 -8
- package/templates/orders-template.tsx +28 -24
- package/templates/products-template.tsx +14 -4
- package/templates/user-permissions-template.tsx +11 -14
- package/dist/accordion-0tQUZ20r.js.map +0 -1
- package/dist/action-menu-C0gjzLyE.js +0 -284
- package/dist/action-menu-C0gjzLyE.js.map +0 -1
- package/dist/ai-artifact-CGGpQryR.js +0 -1200
- package/dist/ai-artifact-CGGpQryR.js.map +0 -1
- package/dist/anchored-positioning-DPnKTvNs.js +0 -6
- package/dist/anchored-positioning-DPnKTvNs.js.map +0 -1
- package/dist/app-shell-EHuuRDGy.js +0 -321
- package/dist/app-shell-EHuuRDGy.js.map +0 -1
- package/dist/auth-B0girIk_.js.map +0 -1
- package/dist/badge-wWauMgAt.js.map +0 -1
- package/dist/base/sheet.js +0 -3
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +0 -1
- package/dist/button-ChBovTx0.js.map +0 -1
- package/dist/buttons-DeW0bQeK.js.map +0 -1
- package/dist/cascader-CrAl9zD5.js +0 -439
- package/dist/cascader-CrAl9zD5.js.map +0 -1
- package/dist/choice-inputs-DHGtx0QV.js.map +0 -1
- package/dist/code-block-BSJyq9e-.js.map +0 -1
- package/dist/collapsible-BzJ91LUG.js +0 -81
- package/dist/collapsible-BzJ91LUG.js.map +0 -1
- package/dist/combobox-Bcvu5J8O.js +0 -363
- package/dist/combobox-Bcvu5J8O.js.map +0 -1
- package/dist/combobox-C2JiSQPc.js +0 -915
- package/dist/combobox-C2JiSQPc.js.map +0 -1
- package/dist/command-9e52NPgK.js +0 -425
- package/dist/command-9e52NPgK.js.map +0 -1
- package/dist/comments-BsgErEqd.js +0 -1174
- package/dist/comments-BsgErEqd.js.map +0 -1
- package/dist/components/base/buttons/tooltip-button.d.ts +0 -7
- package/dist/components/base/display/content-block.d.ts +0 -75
- package/dist/components/base/display/content-block.strings.d.ts +0 -5
- package/dist/components/base/sheet/index.d.ts +0 -29
- package/dist/components/blocks/ai/use-copy-feedback.d.ts +0 -6
- package/dist/components/blocks/data-display/metadata/index.d.ts +0 -30
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +0 -10
- package/dist/components/features/resource/resource.strings.d.ts +0 -12
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-fallback.d.ts +0 -8
- package/dist/components/features/sync/index.d.ts +0 -26
- package/dist/components/features/sync/sync-range-dialog-form.d.ts +0 -5
- package/dist/components/features/sync/sync.strings.d.ts +0 -18
- package/dist/components/features/sync/sync.types.d.ts +0 -44
- package/dist/components/layout/page/partials/page-actions.d.ts +0 -3
- package/dist/components/ui/slot.d.ts +0 -6
- package/dist/containers-CSdc32h9.js.map +0 -1
- package/dist/data-display-Cmj-xZYl.js.map +0 -1
- package/dist/date-Br0FicVv.js +0 -144
- package/dist/date-Br0FicVv.js.map +0 -1
- package/dist/date-picker-CyQlFYsP.js.map +0 -1
- package/dist/date-pickers-tj2MXmXd.js +0 -185
- package/dist/date-pickers-tj2MXmXd.js.map +0 -1
- package/dist/display-CT_N2a3w.js.map +0 -1
- package/dist/features/sync.js +0 -142
- package/dist/features/sync.js.map +0 -1
- package/dist/feedback-Dzo1xtAU.js +0 -246
- package/dist/feedback-Dzo1xtAU.js.map +0 -1
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +0 -1
- package/dist/field-state-recipes-7sza8QbC.js.map +0 -1
- package/dist/filters-Dl80yYtN.js +0 -2415
- package/dist/filters-Dl80yYtN.js.map +0 -1
- package/dist/focus-recipes-B653VaLq.js.map +0 -1
- package/dist/forms-B3W8CH7-.js.map +0 -1
- package/dist/forms-numeric-CwjQJe-O.js +0 -991
- package/dist/forms-numeric-CwjQJe-O.js.map +0 -1
- package/dist/header-ZIIsRKxP.js.map +0 -1
- package/dist/hooks-BitHSh-Y.js.map +0 -1
- package/dist/http-D_6rOnzU.js.map +0 -1
- package/dist/item-FfWnaYST.js +0 -278
- package/dist/item-FfWnaYST.js.map +0 -1
- package/dist/layout.types-E_GAApzO.js.map +0 -1
- package/dist/media-gallery-C81DAnKI.js +0 -203
- package/dist/media-gallery-C81DAnKI.js.map +0 -1
- package/dist/mentions-qOnedSt4.js +0 -639
- package/dist/mentions-qOnedSt4.js.map +0 -1
- package/dist/metadata-list-XkqZ_UXH.js.map +0 -1
- package/dist/motion-recipes-DitYv6P2.js.map +0 -1
- package/dist/navigation-BgtPJAhi.js +0 -288
- package/dist/navigation-BgtPJAhi.js.map +0 -1
- package/dist/navigation-Bt-v7rWP.js.map +0 -1
- package/dist/number-CYqBcrSj.js +0 -346
- package/dist/number-CYqBcrSj.js.map +0 -1
- package/dist/overlays-CC8zI3Du.js +0 -1017
- package/dist/overlays-CC8zI3Du.js.map +0 -1
- package/dist/page-BoQ1VaFJ.js +0 -331
- package/dist/page-BoQ1VaFJ.js.map +0 -1
- package/dist/pagination-Br8TdV9A.js.map +0 -1
- package/dist/popover-k8TdUcAt.js.map +0 -1
- package/dist/primitives-BkkQjYl7.js +0 -385
- package/dist/primitives-BkkQjYl7.js.map +0 -1
- package/dist/receipt-C7LhOg7Q.js +0 -116
- package/dist/receipt-C7LhOg7Q.js.map +0 -1
- package/dist/rich-text-editor-CAurDwT5.js +0 -1273
- package/dist/rich-text-editor-CAurDwT5.js.map +0 -1
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +0 -99
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +0 -1
- package/dist/rich-text-tree-BqyQ_7-R.js +0 -66
- package/dist/rich-text-tree-BqyQ_7-R.js.map +0 -1
- package/dist/sanitize-html-BWkH4dLM.js +0 -105
- package/dist/sanitize-html-BWkH4dLM.js.map +0 -1
- package/dist/separator-DM6gs2vu.js.map +0 -1
- package/dist/settings-DZPHgpx4.js +0 -155
- package/dist/settings-DZPHgpx4.js.map +0 -1
- package/dist/sheet-C4DHsgLk.js +0 -250
- package/dist/sheet-C4DHsgLk.js.map +0 -1
- package/dist/sidebar-C8BnDwTH.js +0 -709
- package/dist/sidebar-C8BnDwTH.js.map +0 -1
- package/dist/sidebar-CmD6a-HK.js.map +0 -1
- package/dist/skeleton-DDgdhmu9.js.map +0 -1
- package/dist/slot-CLF9kLrS.js +0 -16
- package/dist/slot-CLF9kLrS.js.map +0 -1
- package/dist/smart-card-B6vLxqa_.js.map +0 -1
- package/dist/surface-recipes-C8mNycaY.js.map +0 -1
- package/dist/table-CBonSdTp.js +0 -1584
- package/dist/table-CBonSdTp.js.map +0 -1
- package/dist/table-CXSPHH25.js.map +0 -1
- package/dist/tabs-C4Kr_hCr.js.map +0 -1
- package/dist/text-inputs-jdkS3ReG.js.map +0 -1
- package/dist/timelines-CoPwdJP0.js +0 -458
- package/dist/timelines-CoPwdJP0.js.map +0 -1
- package/dist/tooltip-31NwIpTo.js +0 -113
- package/dist/tooltip-31NwIpTo.js.map +0 -1
- package/dist/tree-CeYVzdFE.js.map +0 -1
- package/dist/typography-C7-YMW1S.js.map +0 -1
- package/dist/ui-provider-C-74NVLc.js.map +0 -1
- package/dist/upload-Hdm5gObf.js.map +0 -1
- package/dist/upload-queue-D0sYPuqo.js +0 -409
- package/dist/upload-queue-D0sYPuqo.js.map +0 -1
- package/dist/usage-card-9s8hLDfn.js.map +0 -1
- package/dist/utils-DhuoqFy4.js.map +0 -1
- package/dist/value-inputs-D3aPgq9H.js +0 -980
- package/dist/value-inputs-D3aPgq9H.js.map +0 -1
- package/dist/value-typography-uSzzG9Gf.js +0 -122
- package/dist/value-typography-uSzzG9Gf.js.map +0 -1
- package/dist/workspace-CC8Vchiu.js +0 -411
- package/dist/workspace-CC8Vchiu.js.map +0 -1
|
@@ -1,182 +1,186 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { d as e } from "../ui-provider-Bu1S-o96.js";
|
|
3
3
|
import { useStrings as t } from "../lib/strings.js";
|
|
4
|
-
import { t as n } from "../utils-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as f } from "../
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { t as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { s as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
4
|
+
import { t as n } from "../utils-BVbAG2J6.js";
|
|
5
|
+
import { c as r, i, t as a } from "../typography-C0dELqYV.js";
|
|
6
|
+
import { t as o } from "../focus-recipes-DSkiUvUp.js";
|
|
7
|
+
import { n as s } from "../buttons-pZVgPTZn.js";
|
|
8
|
+
import { r as c, t as l } from "../structure-DElaQwwN.js";
|
|
9
|
+
import { i as u, n as d, t as f } from "../tone-recipes-BPsRAvhu.js";
|
|
10
|
+
import { n as p, t as m } from "../feedback-DmqmXKLn.js";
|
|
11
|
+
import { n as h } from "../action-menu-D5343RwT.js";
|
|
12
|
+
import { t as g } from "../interaction-recipes-DmuS1ase.js";
|
|
13
|
+
import { t as _ } from "../icon-badge-B0Kq7wom.js";
|
|
14
|
+
import { t as v } from "../badge-oGiXblW7.js";
|
|
15
|
+
import { s as y } from "../data-display-CWe9SOYh.js";
|
|
16
|
+
import { o as ee, r as te, u as b } from "../comments-C2MZyRmh.js";
|
|
17
|
+
import { o as x } from "../mentions-zz0ewNIq.js";
|
|
18
|
+
import { Fragment as S, useCallback as C, useEffect as w, useId as ne, useMemo as T, useRef as E, useState as D, useSyncExternalStore as O } from "react";
|
|
19
|
+
import { Fragment as k, jsx as A, jsxs as j } from "react/jsx-runtime";
|
|
20
|
+
import { Activity as M, AlertTriangle as N, ArrowLeftRight as P, Ban as F, Check as re, ChevronDown as ie, ChevronRight as ae, 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 G, MessageSquare as K, Pencil as q, Plus as J, ShieldCheck as Y, ShoppingBag as X, Sparkles as oe, Star as Z, Trash2 as se, UserMinus as ce, UserPlus as le } from "lucide-react";
|
|
21
|
+
import { format as Q, formatDistanceToNow as ue, isToday as de, isValid as $, isYesterday as fe, parseISO as pe } from "date-fns";
|
|
20
22
|
//#region src/components/features/activities/activities.config.ts
|
|
21
|
-
var
|
|
22
|
-
icon:
|
|
23
|
+
var me = {
|
|
24
|
+
icon: I,
|
|
23
25
|
tone: "neutral"
|
|
24
|
-
},
|
|
26
|
+
}, he = {
|
|
25
27
|
created: {
|
|
26
|
-
icon:
|
|
28
|
+
icon: J,
|
|
27
29
|
tone: "success",
|
|
28
30
|
label: "Created"
|
|
29
31
|
},
|
|
30
32
|
updated: {
|
|
31
|
-
icon:
|
|
33
|
+
icon: q,
|
|
32
34
|
tone: "neutral",
|
|
33
35
|
label: "Updated"
|
|
34
36
|
},
|
|
35
37
|
edited: {
|
|
36
|
-
icon:
|
|
38
|
+
icon: L,
|
|
37
39
|
tone: "neutral",
|
|
38
40
|
label: "Edited"
|
|
39
41
|
},
|
|
40
42
|
deleted: {
|
|
41
|
-
icon:
|
|
43
|
+
icon: se,
|
|
42
44
|
tone: "destructive",
|
|
43
45
|
label: "Deleted"
|
|
44
46
|
},
|
|
45
47
|
cancelled: {
|
|
46
|
-
icon:
|
|
48
|
+
icon: F,
|
|
47
49
|
tone: "destructive",
|
|
48
50
|
label: "Cancelled"
|
|
49
51
|
},
|
|
50
52
|
restored: {
|
|
51
|
-
icon:
|
|
53
|
+
icon: oe,
|
|
52
54
|
tone: "success",
|
|
53
55
|
label: "Restored"
|
|
54
56
|
},
|
|
55
57
|
status_changed: {
|
|
56
|
-
icon:
|
|
58
|
+
icon: P,
|
|
57
59
|
tone: "neutral",
|
|
58
60
|
label: "Status changed"
|
|
59
61
|
},
|
|
60
62
|
status_transition: {
|
|
61
|
-
icon:
|
|
63
|
+
icon: P,
|
|
62
64
|
tone: "neutral",
|
|
63
65
|
label: "Status changed"
|
|
64
66
|
},
|
|
65
67
|
status_override: {
|
|
66
|
-
icon:
|
|
68
|
+
icon: P,
|
|
67
69
|
tone: "warning",
|
|
68
70
|
label: "Status overridden"
|
|
69
71
|
},
|
|
70
72
|
assigned: {
|
|
71
|
-
icon:
|
|
73
|
+
icon: le,
|
|
72
74
|
tone: "neutral",
|
|
73
75
|
label: "Assigned"
|
|
74
76
|
},
|
|
75
77
|
unassigned: {
|
|
76
|
-
icon:
|
|
78
|
+
icon: ce,
|
|
77
79
|
tone: "neutral",
|
|
78
80
|
label: "Unassigned"
|
|
79
81
|
},
|
|
80
82
|
mail_sent: {
|
|
81
|
-
icon:
|
|
83
|
+
icon: V,
|
|
82
84
|
tone: "neutral",
|
|
83
85
|
label: "Email sent"
|
|
84
86
|
},
|
|
85
87
|
mail_delivered: {
|
|
86
|
-
icon:
|
|
88
|
+
icon: H,
|
|
87
89
|
tone: "success",
|
|
88
90
|
label: "Email delivered"
|
|
89
91
|
},
|
|
90
92
|
mail_opened: {
|
|
91
|
-
icon:
|
|
93
|
+
icon: U,
|
|
92
94
|
tone: "neutral",
|
|
93
95
|
label: "Email opened"
|
|
94
96
|
},
|
|
95
97
|
mail_clicked: {
|
|
96
|
-
icon:
|
|
98
|
+
icon: U,
|
|
97
99
|
tone: "neutral",
|
|
98
100
|
label: "Email clicked"
|
|
99
101
|
},
|
|
100
102
|
mail_bounced: {
|
|
101
|
-
icon:
|
|
103
|
+
icon: W,
|
|
102
104
|
tone: "destructive",
|
|
103
105
|
label: "Email bounced"
|
|
104
106
|
},
|
|
105
107
|
mail_failed: {
|
|
106
|
-
icon:
|
|
108
|
+
icon: W,
|
|
107
109
|
tone: "destructive",
|
|
108
110
|
label: "Email failed"
|
|
109
111
|
},
|
|
110
112
|
comment_created: {
|
|
111
|
-
icon:
|
|
113
|
+
icon: K,
|
|
112
114
|
tone: "neutral",
|
|
113
115
|
label: "Comment posted"
|
|
114
116
|
},
|
|
115
117
|
comment_deleted: {
|
|
116
|
-
icon:
|
|
118
|
+
icon: K,
|
|
117
119
|
tone: "destructive",
|
|
118
120
|
label: "Comment deleted"
|
|
119
121
|
},
|
|
120
122
|
paid: {
|
|
121
|
-
icon:
|
|
123
|
+
icon: re,
|
|
122
124
|
tone: "success",
|
|
123
125
|
label: "Paid"
|
|
124
126
|
},
|
|
125
127
|
refunded: {
|
|
126
|
-
icon:
|
|
128
|
+
icon: P,
|
|
127
129
|
tone: "warning",
|
|
128
130
|
label: "Refunded"
|
|
129
131
|
},
|
|
130
132
|
confirmed: {
|
|
131
|
-
icon:
|
|
133
|
+
icon: Y,
|
|
132
134
|
tone: "success",
|
|
133
135
|
label: "Confirmed"
|
|
134
136
|
},
|
|
135
137
|
favorited: {
|
|
136
|
-
icon:
|
|
138
|
+
icon: z,
|
|
137
139
|
tone: "neutral",
|
|
138
140
|
label: "Favorited"
|
|
139
141
|
},
|
|
140
142
|
ordered: {
|
|
141
|
-
icon:
|
|
143
|
+
icon: X,
|
|
142
144
|
tone: "neutral",
|
|
143
145
|
label: "Order placed"
|
|
144
146
|
},
|
|
145
147
|
published: {
|
|
146
|
-
icon:
|
|
148
|
+
icon: Z,
|
|
147
149
|
tone: "success",
|
|
148
150
|
label: "Published"
|
|
149
151
|
},
|
|
150
152
|
flagged: {
|
|
151
|
-
icon:
|
|
153
|
+
icon: R,
|
|
152
154
|
tone: "warning",
|
|
153
155
|
label: "Flagged"
|
|
154
156
|
},
|
|
155
157
|
linked: {
|
|
156
|
-
icon:
|
|
158
|
+
icon: B,
|
|
157
159
|
tone: "neutral",
|
|
158
160
|
label: "Linked"
|
|
159
161
|
},
|
|
160
162
|
failed: {
|
|
161
|
-
icon:
|
|
163
|
+
icon: N,
|
|
162
164
|
tone: "destructive",
|
|
163
165
|
label: "Failed"
|
|
164
166
|
},
|
|
165
167
|
health_check_failed: {
|
|
166
|
-
icon:
|
|
168
|
+
icon: N,
|
|
167
169
|
tone: "destructive",
|
|
168
170
|
label: "Health check failed"
|
|
169
171
|
}
|
|
170
172
|
};
|
|
171
|
-
function
|
|
172
|
-
return t[e] ??
|
|
173
|
+
function ge(e, t) {
|
|
174
|
+
return t[e] ?? me;
|
|
173
175
|
}
|
|
174
176
|
//#endregion
|
|
175
177
|
//#region src/components/features/activities/activities.strings.ts
|
|
176
|
-
var
|
|
178
|
+
var _e = {
|
|
177
179
|
title: "Activity",
|
|
178
180
|
empty: "No activity yet.",
|
|
179
181
|
loading: "Loading activity…",
|
|
182
|
+
error: "Activity could not be loaded.",
|
|
183
|
+
retry: "Try again",
|
|
180
184
|
today: "Today",
|
|
181
185
|
yesterday: "Yesterday",
|
|
182
186
|
undated: "Undated",
|
|
@@ -184,7 +188,6 @@ var fe = {
|
|
|
184
188
|
showChanges: "Show details",
|
|
185
189
|
hideChanges: "Hide details",
|
|
186
190
|
actionsLabel: "Activity actions",
|
|
187
|
-
moreLabel: "more",
|
|
188
191
|
sources: {
|
|
189
192
|
comment: "Comment",
|
|
190
193
|
mail: "Mail",
|
|
@@ -194,32 +197,59 @@ var fe = {
|
|
|
194
197
|
},
|
|
195
198
|
events: {}
|
|
196
199
|
};
|
|
197
|
-
function
|
|
200
|
+
function ve(e, t) {
|
|
198
201
|
return e.replace(/\{\{\s*(\w+)\s*\}\}/g, (e, n) => {
|
|
199
202
|
let r = t[n];
|
|
200
203
|
return r === void 0 ? e : String(r);
|
|
201
204
|
});
|
|
202
205
|
}
|
|
203
206
|
//#endregion
|
|
207
|
+
//#region src/components/features/activities/relative-time.ts
|
|
208
|
+
function ye(e, t) {
|
|
209
|
+
let n = pe(e);
|
|
210
|
+
return $(n) ? ue(n, {
|
|
211
|
+
addSuffix: !0,
|
|
212
|
+
...t ? { locale: t } : {}
|
|
213
|
+
}) : e;
|
|
214
|
+
}
|
|
215
|
+
var be = () => () => {};
|
|
216
|
+
function xe() {
|
|
217
|
+
return O(be, () => !0, () => !1);
|
|
218
|
+
}
|
|
219
|
+
function Se(e) {
|
|
220
|
+
return new Date(e.getUTCFullYear(), e.getUTCMonth(), e.getUTCDate(), 12);
|
|
221
|
+
}
|
|
222
|
+
function Ce(e, t) {
|
|
223
|
+
let n = new Date(e);
|
|
224
|
+
return $(n) ? Q(Se(n), "PP", t ? { locale: t } : void 0) : e;
|
|
225
|
+
}
|
|
226
|
+
function we(e, t) {
|
|
227
|
+
let n = new Date(e);
|
|
228
|
+
if (!$(n)) return e;
|
|
229
|
+
let r = (e) => String(e).padStart(2, "0");
|
|
230
|
+
return `${Ce(e, t)}, ${r(n.getUTCHours())}:${r(n.getUTCMinutes())} UTC`;
|
|
231
|
+
}
|
|
232
|
+
//#endregion
|
|
204
233
|
//#region src/components/features/activities/hooks/use-activity-feed.ts
|
|
205
|
-
function
|
|
234
|
+
function Te(e, t, n, r = !0) {
|
|
206
235
|
if (!e) return t.undated;
|
|
207
|
-
let
|
|
208
|
-
if (
|
|
209
|
-
if (
|
|
210
|
-
if (
|
|
236
|
+
let i = new Date(e);
|
|
237
|
+
if (!$(i)) return t.undated;
|
|
238
|
+
if (!r) return Ce(e, n);
|
|
239
|
+
if (de(i)) return t.today;
|
|
240
|
+
if (fe(i)) return t.yesterday;
|
|
211
241
|
try {
|
|
212
|
-
return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(
|
|
242
|
+
return new Intl.DateTimeFormat(n?.code ?? "en-US", { dateStyle: "long" }).format(i);
|
|
213
243
|
} catch {
|
|
214
244
|
try {
|
|
215
|
-
return
|
|
245
|
+
return Q(i, "PP", n ? { locale: n } : void 0);
|
|
216
246
|
} catch {
|
|
217
247
|
return e;
|
|
218
248
|
}
|
|
219
249
|
}
|
|
220
250
|
}
|
|
221
|
-
function
|
|
222
|
-
let [l, u] =
|
|
251
|
+
function Ee({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, defaultExpandedIds: r, expandedIds: i, onExpandedIdsChange: a, locale: o, strings: s, formatDateGroupLabel: c }) {
|
|
252
|
+
let [l, u] = D({}), d = i !== void 0, f = xe(), p = T(() => {
|
|
223
253
|
let t = /* @__PURE__ */ new Map();
|
|
224
254
|
return e.map((e) => {
|
|
225
255
|
let n = [
|
|
@@ -233,13 +263,13 @@ function he({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
233
263
|
key: `${n}:${r}`
|
|
234
264
|
};
|
|
235
265
|
});
|
|
236
|
-
}, [e]),
|
|
237
|
-
if (!t) return
|
|
266
|
+
}, [e]), m = T(() => {
|
|
267
|
+
if (!t) return p.length > 0 ? [{
|
|
238
268
|
label: "",
|
|
239
|
-
items:
|
|
269
|
+
items: p
|
|
240
270
|
}] : [];
|
|
241
|
-
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) :
|
|
242
|
-
for (let t of
|
|
271
|
+
let e = [], n = "__init__", r = [], i = (e) => c ? c(e, s) : Te(e, s, o, f);
|
|
272
|
+
for (let t of p) {
|
|
243
273
|
let a = i(t.activity.createdAt ?? null);
|
|
244
274
|
a === n ? r.push(t) : (r.length > 0 && e.push({
|
|
245
275
|
label: n,
|
|
@@ -251,17 +281,18 @@ function he({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
251
281
|
items: r
|
|
252
282
|
}), e;
|
|
253
283
|
}, [
|
|
254
|
-
|
|
284
|
+
p,
|
|
255
285
|
t,
|
|
256
286
|
o,
|
|
257
287
|
s,
|
|
258
|
-
c
|
|
259
|
-
|
|
288
|
+
c,
|
|
289
|
+
f
|
|
290
|
+
]), h = T(() => {
|
|
260
291
|
let e = new Set(r ?? []);
|
|
261
|
-
for (let t of
|
|
292
|
+
for (let t of p) t.activity.defaultExpanded === !0 && e.add(t.activity.id);
|
|
262
293
|
return e;
|
|
263
|
-
}, [
|
|
264
|
-
let r = d ? Array.from(
|
|
294
|
+
}, [p, r]), g = T(() => new Set(i ?? []), [i]), _ = C((e, t) => {
|
|
295
|
+
let r = d ? Array.from(g) : p.filter((e) => l[e.activity.id] ?? (h.has(e.activity.id) || n)).map((e) => e.activity.id), i = new Set(r);
|
|
265
296
|
t ? i.add(e) : i.delete(e);
|
|
266
297
|
let o = Array.from(i);
|
|
267
298
|
d || u((n) => ({
|
|
@@ -269,76 +300,76 @@ function he({ activities: e, groupByDate: t = !0, expandedByDefault: n = !1, def
|
|
|
269
300
|
[e]: t
|
|
270
301
|
})), a?.(o);
|
|
271
302
|
}, [
|
|
303
|
+
g,
|
|
272
304
|
h,
|
|
273
|
-
m,
|
|
274
305
|
n,
|
|
275
306
|
l,
|
|
276
307
|
d,
|
|
277
|
-
|
|
308
|
+
p,
|
|
278
309
|
a
|
|
279
|
-
]),
|
|
310
|
+
]), v = C((e) => d ? g.has(e) : l[e] ?? (h.has(e) || n), [
|
|
311
|
+
g,
|
|
280
312
|
h,
|
|
281
|
-
m,
|
|
282
313
|
n,
|
|
283
314
|
l,
|
|
284
315
|
d
|
|
285
|
-
]),
|
|
286
|
-
|
|
287
|
-
}, [
|
|
316
|
+
]), y = C((e) => {
|
|
317
|
+
_(e, !v(e));
|
|
318
|
+
}, [v, _]), ee = C(() => {
|
|
288
319
|
let e = {};
|
|
289
|
-
for (let t of
|
|
290
|
-
d || u(e), a?.(
|
|
320
|
+
for (let t of p) e[t.activity.id] = !0;
|
|
321
|
+
d || u(e), a?.(p.map((e) => e.activity.id));
|
|
291
322
|
}, [
|
|
292
323
|
d,
|
|
293
|
-
|
|
324
|
+
p,
|
|
294
325
|
a
|
|
295
|
-
]),
|
|
326
|
+
]), te = C(() => {
|
|
296
327
|
let e = {};
|
|
297
|
-
for (let t of
|
|
328
|
+
for (let t of p) e[t.activity.id] = !1;
|
|
298
329
|
d || u(e), a?.([]);
|
|
299
330
|
}, [
|
|
300
331
|
d,
|
|
301
|
-
|
|
332
|
+
p,
|
|
302
333
|
a
|
|
303
334
|
]);
|
|
304
335
|
return {
|
|
305
|
-
groups:
|
|
306
|
-
total:
|
|
307
|
-
isExpanded:
|
|
308
|
-
toggleExpanded:
|
|
309
|
-
setExpanded:
|
|
310
|
-
expandAll:
|
|
311
|
-
collapseAll:
|
|
336
|
+
groups: m,
|
|
337
|
+
total: p.length,
|
|
338
|
+
isExpanded: v,
|
|
339
|
+
toggleExpanded: y,
|
|
340
|
+
setExpanded: _,
|
|
341
|
+
expandAll: ee,
|
|
342
|
+
collapseAll: te
|
|
312
343
|
};
|
|
313
344
|
}
|
|
314
345
|
//#endregion
|
|
315
346
|
//#region src/components/features/activities/hooks/use-activity-resources.ts
|
|
316
|
-
var
|
|
317
|
-
function
|
|
347
|
+
var De = Object.freeze({});
|
|
348
|
+
function Oe(e, t) {
|
|
318
349
|
return e === t || e.label === t.label && e.href === t.href && e.icon === t.icon && e.tone === t.tone && e.note === t.note && e.badge?.label === t.badge?.label && e.badge?.tone === t.badge?.tone && e.tags?.length === t.tags?.length && (e.tags?.every((e, n) => e === t.tags?.[n]) ?? !0);
|
|
319
350
|
}
|
|
320
|
-
function
|
|
351
|
+
function ke(e, t) {
|
|
321
352
|
if (e === t) return !0;
|
|
322
353
|
let n = Object.keys(e);
|
|
323
|
-
return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) &&
|
|
354
|
+
return n.length === Object.keys(t).length && n.every((n) => Object.hasOwn(t, n) && Oe(e[n], t[n]));
|
|
324
355
|
}
|
|
325
|
-
function
|
|
326
|
-
let n = e ??
|
|
327
|
-
|
|
356
|
+
function Ae({ resources: e, onResourcesChange: t } = {}) {
|
|
357
|
+
let n = e ?? De, [r, i] = D(n), a = E(n), o = E(r), s = E(t);
|
|
358
|
+
w(() => {
|
|
328
359
|
s.current = t;
|
|
329
360
|
}, [t]);
|
|
330
|
-
let c =
|
|
361
|
+
let c = C((e, t = !0) => {
|
|
331
362
|
o.current = e, i(e), t && s.current?.(e);
|
|
332
363
|
}, []);
|
|
333
|
-
|
|
334
|
-
|
|
364
|
+
w(() => {
|
|
365
|
+
ke(a.current, n) || (a.current = n, c(n, !1));
|
|
335
366
|
}, [c, n]);
|
|
336
|
-
let l =
|
|
367
|
+
let l = C((e, t) => {
|
|
337
368
|
c({
|
|
338
369
|
...o.current,
|
|
339
370
|
[e]: t
|
|
340
371
|
});
|
|
341
|
-
}, [c]), u =
|
|
372
|
+
}, [c]), u = C((e, t) => {
|
|
342
373
|
let n = o.current;
|
|
343
374
|
Object.hasOwn(n, e) && c({
|
|
344
375
|
...n,
|
|
@@ -347,17 +378,17 @@ function ye({ resources: e, onResourcesChange: t } = {}) {
|
|
|
347
378
|
...t
|
|
348
379
|
}
|
|
349
380
|
});
|
|
350
|
-
}, [c]), d =
|
|
381
|
+
}, [c]), d = C((e) => {
|
|
351
382
|
let t = o.current;
|
|
352
383
|
if (!Object.hasOwn(t, e)) return;
|
|
353
384
|
let n = { ...t };
|
|
354
385
|
delete n[e], c(n);
|
|
355
|
-
}, [c]), f =
|
|
386
|
+
}, [c]), f = C((e) => c(e), [c]), p = C(() => {
|
|
356
387
|
c(a.current);
|
|
357
388
|
}, [c]);
|
|
358
389
|
return {
|
|
359
390
|
registry: r,
|
|
360
|
-
get:
|
|
391
|
+
get: C((e) => {
|
|
361
392
|
let t = typeof e == "string" ? e : e.key;
|
|
362
393
|
return Object.hasOwn(r, t) ? r[t] : void 0;
|
|
363
394
|
}, [r]),
|
|
@@ -370,11 +401,11 @@ function ye({ resources: e, onResourcesChange: t } = {}) {
|
|
|
370
401
|
}
|
|
371
402
|
//#endregion
|
|
372
403
|
//#region src/components/features/activities/partials/activity-actions-menu.tsx
|
|
373
|
-
function
|
|
404
|
+
function je(e) {
|
|
374
405
|
if (e === "destructive") return "destructive";
|
|
375
406
|
if (e === "primary" || e === "secondary") return e;
|
|
376
407
|
}
|
|
377
|
-
function
|
|
408
|
+
function Me({ activity: e, actions: t, onAction: n, label: r }) {
|
|
378
409
|
if (t.length === 0) return null;
|
|
379
410
|
let i = t.map((t) => ({
|
|
380
411
|
id: t.id,
|
|
@@ -382,12 +413,12 @@ function xe({ activity: e, actions: t, onAction: n, label: r }) {
|
|
|
382
413
|
label: t.label,
|
|
383
414
|
href: t.href,
|
|
384
415
|
disabled: t.disabled,
|
|
385
|
-
tone:
|
|
416
|
+
tone: je(t.tone),
|
|
386
417
|
onClick: () => {
|
|
387
418
|
t.onClick?.(e), n?.(t.id, e);
|
|
388
419
|
}
|
|
389
420
|
}));
|
|
390
|
-
return /* @__PURE__ */
|
|
421
|
+
return /* @__PURE__ */ A(h, {
|
|
391
422
|
actions: i,
|
|
392
423
|
srText: r,
|
|
393
424
|
align: "end",
|
|
@@ -400,65 +431,65 @@ function xe({ activity: e, actions: t, onAction: n, label: r }) {
|
|
|
400
431
|
}
|
|
401
432
|
//#endregion
|
|
402
433
|
//#region src/components/features/activities/partials/activity-changes.tsx
|
|
403
|
-
function
|
|
434
|
+
function Ne({ change: e }) {
|
|
404
435
|
let t = e.old !== null && e.old !== void 0, n = e.new !== null && e.new !== void 0;
|
|
405
|
-
return !t && !n ? /* @__PURE__ */
|
|
436
|
+
return !t && !n ? /* @__PURE__ */ A(r, {
|
|
406
437
|
type: "inherit",
|
|
407
438
|
tag: "span",
|
|
408
439
|
children: e.description
|
|
409
|
-
}) : /* @__PURE__ */
|
|
440
|
+
}) : /* @__PURE__ */ j(r, {
|
|
410
441
|
type: "inherit",
|
|
411
442
|
tag: "span",
|
|
412
443
|
className: "inline-flex flex-wrap items-baseline gap-space-xs",
|
|
413
444
|
children: [
|
|
414
|
-
!!t && /* @__PURE__ */
|
|
445
|
+
!!t && /* @__PURE__ */ A(r, {
|
|
415
446
|
type: "inherit",
|
|
416
447
|
tag: "span",
|
|
417
448
|
size: "inherit",
|
|
418
|
-
className:
|
|
449
|
+
className: d.removed,
|
|
419
450
|
children: e.old
|
|
420
451
|
}),
|
|
421
|
-
t && n && /* @__PURE__ */
|
|
452
|
+
t && n && /* @__PURE__ */ A(r, {
|
|
422
453
|
tag: "span",
|
|
423
454
|
size: "inherit",
|
|
424
455
|
type: "secondary",
|
|
425
456
|
children: "→"
|
|
426
457
|
}),
|
|
427
|
-
!!n && /* @__PURE__ */
|
|
458
|
+
!!n && /* @__PURE__ */ A(r, {
|
|
428
459
|
type: "inherit",
|
|
429
460
|
tag: "span",
|
|
430
461
|
size: "inherit",
|
|
431
|
-
className:
|
|
462
|
+
className: d.added,
|
|
432
463
|
children: e.new
|
|
433
464
|
})
|
|
434
465
|
]
|
|
435
466
|
});
|
|
436
467
|
}
|
|
437
|
-
function
|
|
438
|
-
return e.length === 0 ? null : /* @__PURE__ */
|
|
468
|
+
function Pe({ changes: e, className: t }) {
|
|
469
|
+
return e.length === 0 ? null : /* @__PURE__ */ A("div", {
|
|
439
470
|
className: n("activity-changes--component", "rounded-radius border border-border/60 bg-muted/30 p-surface-xs", t),
|
|
440
|
-
children: /* @__PURE__ */
|
|
471
|
+
children: /* @__PURE__ */ A(l, {
|
|
441
472
|
gap: "sm",
|
|
442
|
-
children: e.map((e) => /* @__PURE__ */
|
|
473
|
+
children: e.map((e) => /* @__PURE__ */ j("div", {
|
|
443
474
|
className: "flex items-baseline gap-space-md",
|
|
444
|
-
children: [/* @__PURE__ */
|
|
475
|
+
children: [/* @__PURE__ */ A(r, {
|
|
445
476
|
size: "xs",
|
|
446
477
|
type: "secondary",
|
|
447
478
|
weight: "medium",
|
|
448
479
|
className: "shrink-0",
|
|
449
480
|
children: e.label
|
|
450
|
-
}), /* @__PURE__ */
|
|
481
|
+
}), /* @__PURE__ */ A(Ne, { change: e })]
|
|
451
482
|
}, `${e.key}-${e.label}`))
|
|
452
483
|
})
|
|
453
484
|
});
|
|
454
485
|
}
|
|
455
486
|
//#endregion
|
|
456
487
|
//#region src/components/features/activities/partials/activity-date-label.tsx
|
|
457
|
-
function
|
|
458
|
-
return e === "" ? null : /* @__PURE__ */
|
|
488
|
+
function Fe({ label: e, first: t, className: i }) {
|
|
489
|
+
return e === "" ? null : /* @__PURE__ */ A(l, {
|
|
459
490
|
gap: "none",
|
|
460
|
-
className: n("activity-date-label--component", !t && "mt-space-md",
|
|
461
|
-
children: /* @__PURE__ */
|
|
491
|
+
className: n("activity-date-label--component", !t && "mt-space-md", i),
|
|
492
|
+
children: /* @__PURE__ */ A(r, {
|
|
462
493
|
size: "xs",
|
|
463
494
|
type: "secondary",
|
|
464
495
|
weight: "medium",
|
|
@@ -468,11 +499,11 @@ function we({ label: e, first: t, className: r }) {
|
|
|
468
499
|
}
|
|
469
500
|
//#endregion
|
|
470
501
|
//#region src/components/features/activities/partials/activity-empty-state.tsx
|
|
471
|
-
function
|
|
472
|
-
return /* @__PURE__ */
|
|
502
|
+
function Ie({ title: e, hint: t, className: r }) {
|
|
503
|
+
return /* @__PURE__ */ A(y, {
|
|
473
504
|
title: e,
|
|
474
505
|
description: t ?? !1,
|
|
475
|
-
media: /* @__PURE__ */
|
|
506
|
+
media: /* @__PURE__ */ A(M, {
|
|
476
507
|
className: "size-icon",
|
|
477
508
|
"aria-hidden": "true"
|
|
478
509
|
}),
|
|
@@ -482,30 +513,30 @@ function Te({ title: e, hint: t, className: r }) {
|
|
|
482
513
|
});
|
|
483
514
|
}
|
|
484
515
|
//#endregion
|
|
485
|
-
//#region src/components/features/activities/partials/
|
|
486
|
-
var
|
|
487
|
-
bg:
|
|
488
|
-
fg:
|
|
489
|
-
dot:
|
|
490
|
-
line:
|
|
491
|
-
chipBg:
|
|
492
|
-
chipFg:
|
|
493
|
-
}),
|
|
516
|
+
//#region src/components/features/activities/partials/row-layers.ts
|
|
517
|
+
var Le = "relative z-10", Re = (e) => ({
|
|
518
|
+
bg: u[e].tint,
|
|
519
|
+
fg: u[e].ink,
|
|
520
|
+
dot: u[e].solid,
|
|
521
|
+
line: u[e].line,
|
|
522
|
+
chipBg: u[e].tint,
|
|
523
|
+
chipFg: u[e].ink
|
|
524
|
+
}), ze = {
|
|
494
525
|
bg: "bg-muted",
|
|
495
526
|
fg: "text-muted-foreground",
|
|
496
527
|
dot: "bg-muted-foreground",
|
|
497
528
|
line: "bg-border",
|
|
498
529
|
chipBg: "bg-muted",
|
|
499
530
|
chipFg: "text-muted-foreground"
|
|
500
|
-
},
|
|
501
|
-
primary:
|
|
502
|
-
success:
|
|
503
|
-
warning:
|
|
504
|
-
destructive:
|
|
505
|
-
info:
|
|
506
|
-
neutral:
|
|
507
|
-
secondary:
|
|
508
|
-
},
|
|
531
|
+
}, Be = {
|
|
532
|
+
primary: Re("primary"),
|
|
533
|
+
success: Re("success"),
|
|
534
|
+
warning: Re("warning"),
|
|
535
|
+
destructive: Re("destructive"),
|
|
536
|
+
info: Re("info"),
|
|
537
|
+
neutral: ze,
|
|
538
|
+
secondary: ze
|
|
539
|
+
}, Ve = {
|
|
509
540
|
primary: "primary",
|
|
510
541
|
success: "success",
|
|
511
542
|
warning: "warning",
|
|
@@ -516,10 +547,10 @@ var Ee = (e) => ({
|
|
|
516
547
|
};
|
|
517
548
|
//#endregion
|
|
518
549
|
//#region src/components/features/activities/partials/activity-resource-tag.tsx
|
|
519
|
-
function
|
|
520
|
-
let
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
/* @__PURE__ */
|
|
550
|
+
function He({ resource: e, config: t, fallbackText: i, onClick: a }) {
|
|
551
|
+
let o = t?.tone ?? "neutral", c = Be[o], l = t?.icon ?? I, u = t?.label ?? i ?? e.label ?? e.key, d = typeof a == "function", f = /* @__PURE__ */ j(k, { children: [
|
|
552
|
+
/* @__PURE__ */ A(l, { className: n("size-icon-sm shrink-0", c.fg) }),
|
|
553
|
+
/* @__PURE__ */ A(r, {
|
|
523
554
|
type: "inherit",
|
|
524
555
|
tag: "span",
|
|
525
556
|
weight: "medium",
|
|
@@ -527,36 +558,36 @@ function Ae({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
|
527
558
|
className: c.chipFg,
|
|
528
559
|
children: u
|
|
529
560
|
}),
|
|
530
|
-
!!t?.tags && t.tags.length > 0 && /* @__PURE__ */
|
|
561
|
+
!!t?.tags && t.tags.length > 0 && /* @__PURE__ */ A(r, {
|
|
531
562
|
tag: "span",
|
|
532
563
|
size: "xs",
|
|
533
564
|
type: "secondary",
|
|
534
565
|
className: "border-l border-border pl-space-sm",
|
|
535
566
|
children: t.tags.join(" · ")
|
|
536
567
|
}),
|
|
537
|
-
!!t?.badge && /* @__PURE__ */
|
|
568
|
+
!!t?.badge && /* @__PURE__ */ A(v, {
|
|
538
569
|
inline: !0,
|
|
539
570
|
size: "sm",
|
|
540
|
-
tone:
|
|
571
|
+
tone: Ve[t.badge.tone ?? "neutral"],
|
|
541
572
|
className: "ml-space-2xs",
|
|
542
573
|
children: t.badge.label
|
|
543
574
|
})
|
|
544
575
|
] });
|
|
545
|
-
return d ? /* @__PURE__ */
|
|
576
|
+
return d ? /* @__PURE__ */ A(s, {
|
|
546
577
|
type: "button",
|
|
547
578
|
tone: "secondary",
|
|
548
579
|
buttonStyle: "ghost",
|
|
549
580
|
size: "sm",
|
|
550
581
|
onClick: (e) => {
|
|
551
|
-
e.stopPropagation(),
|
|
582
|
+
e.stopPropagation(), a?.();
|
|
552
583
|
},
|
|
553
|
-
className: n("activity-resource-tag--component gap-space-xs align-baseline", c.chipBg),
|
|
584
|
+
className: n("activity-resource-tag--component gap-space-xs align-baseline", Le, c.chipBg),
|
|
554
585
|
title: t?.note,
|
|
555
586
|
children: f
|
|
556
|
-
}) : /* @__PURE__ */
|
|
587
|
+
}) : /* @__PURE__ */ A(v, {
|
|
557
588
|
inline: !0,
|
|
558
589
|
size: "sm",
|
|
559
|
-
tone:
|
|
590
|
+
tone: o === "primary" ? "neutral" : Ve[o],
|
|
560
591
|
className: "activity-resource-tag--component",
|
|
561
592
|
title: t?.note,
|
|
562
593
|
children: f
|
|
@@ -564,46 +595,47 @@ function Ae({ resource: e, config: t, fallbackText: a, onClick: o }) {
|
|
|
564
595
|
}
|
|
565
596
|
//#endregion
|
|
566
597
|
//#region src/components/features/activities/partials/activity-headline.tsx
|
|
567
|
-
function
|
|
568
|
-
let d = l !== void 0 && e !== void 0 && l === e ? c : t, f =
|
|
598
|
+
function Ue({ actorId: e, text: t, href: n, activity: o, youLabel: c, currentUserId: l, onActorClick: u }) {
|
|
599
|
+
let d = l !== void 0 && e !== void 0 && l === e ? c : t, f = o.actor ?? {
|
|
569
600
|
id: e,
|
|
570
601
|
name: t
|
|
571
602
|
};
|
|
572
|
-
return n ? /* @__PURE__ */
|
|
603
|
+
return n ? /* @__PURE__ */ A(a, {
|
|
573
604
|
href: n,
|
|
574
605
|
size: "inherit",
|
|
575
606
|
weight: "semibold",
|
|
607
|
+
className: Le,
|
|
576
608
|
onClick: (e) => {
|
|
577
|
-
u && (e.preventDefault(), e.stopPropagation(), u(f,
|
|
609
|
+
u && (e.preventDefault(), e.stopPropagation(), u(f, o));
|
|
578
610
|
},
|
|
579
611
|
children: d
|
|
580
|
-
}) : u ? /* @__PURE__ */
|
|
612
|
+
}) : u ? /* @__PURE__ */ A(s, {
|
|
581
613
|
type: "button",
|
|
582
614
|
tone: "secondary",
|
|
583
615
|
buttonStyle: "ghost",
|
|
584
616
|
size: "sm",
|
|
585
617
|
onClick: (e) => {
|
|
586
|
-
e.stopPropagation(), u(f,
|
|
618
|
+
e.stopPropagation(), u(f, o);
|
|
587
619
|
},
|
|
588
|
-
className:
|
|
589
|
-
children: /* @__PURE__ */
|
|
620
|
+
className: `${Le} h-auto min-h-0 rounded-radius px-0 py-0 text-foreground ${i} hover:decoration-transparent`,
|
|
621
|
+
children: /* @__PURE__ */ A(r, {
|
|
590
622
|
type: "inherit",
|
|
591
623
|
tag: "span",
|
|
592
624
|
weight: "semibold",
|
|
593
625
|
children: d
|
|
594
626
|
})
|
|
595
|
-
}) : /* @__PURE__ */
|
|
627
|
+
}) : /* @__PURE__ */ A(r, {
|
|
596
628
|
type: "inherit",
|
|
597
629
|
tag: "span",
|
|
598
630
|
weight: "semibold",
|
|
599
631
|
children: d
|
|
600
632
|
});
|
|
601
633
|
}
|
|
602
|
-
function
|
|
634
|
+
function We(e, t) {
|
|
603
635
|
return e.map((e, n) => {
|
|
604
|
-
let
|
|
636
|
+
let i = `seg-${n}-${e.type}`;
|
|
605
637
|
switch (e.type) {
|
|
606
|
-
case "actor": return /* @__PURE__ */
|
|
638
|
+
case "actor": return /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(Ue, {
|
|
607
639
|
actorId: e.actorId,
|
|
608
640
|
text: e.text,
|
|
609
641
|
href: e.href,
|
|
@@ -611,98 +643,98 @@ function Me(e, t) {
|
|
|
611
643
|
youLabel: t.youLabel,
|
|
612
644
|
currentUserId: t.currentUserId,
|
|
613
645
|
onActorClick: t.onActorClick
|
|
614
|
-
}), " "] },
|
|
646
|
+
}), " "] }, i);
|
|
615
647
|
case "field":
|
|
616
|
-
case "value": return /* @__PURE__ */
|
|
648
|
+
case "value": return /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(r, {
|
|
617
649
|
type: "inherit",
|
|
618
650
|
tag: "span",
|
|
619
651
|
weight: "semibold",
|
|
620
652
|
children: e.content ?? e.text
|
|
621
|
-
}), " "] },
|
|
622
|
-
case "status": return /* @__PURE__ */
|
|
653
|
+
}), " "] }, i);
|
|
654
|
+
case "status": return /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(v, {
|
|
623
655
|
inline: !0,
|
|
624
656
|
size: "sm",
|
|
625
|
-
tone:
|
|
657
|
+
tone: Ve[e.tone ?? "neutral"],
|
|
626
658
|
children: e.content ?? e.text
|
|
627
|
-
}), " "] },
|
|
659
|
+
}), " "] }, i);
|
|
628
660
|
case "resource": {
|
|
629
661
|
let n = t.getResourceConfig?.(e.resource);
|
|
630
|
-
return /* @__PURE__ */
|
|
662
|
+
return /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(He, {
|
|
631
663
|
resource: e.resource,
|
|
632
664
|
config: n,
|
|
633
665
|
fallbackText: e.text,
|
|
634
666
|
onClick: t.onResourceClick ? () => t.onResourceClick?.(e.resource, n, t.activity) : void 0
|
|
635
|
-
}), " "] },
|
|
667
|
+
}), " "] }, i);
|
|
636
668
|
}
|
|
637
|
-
default: return /* @__PURE__ */
|
|
669
|
+
default: return /* @__PURE__ */ j(S, { children: [/* @__PURE__ */ A(r, {
|
|
638
670
|
type: "inherit",
|
|
639
671
|
tag: "span",
|
|
640
672
|
children: e.content ?? e.text
|
|
641
|
-
}), " "] },
|
|
673
|
+
}), " "] }, i);
|
|
642
674
|
}
|
|
643
675
|
});
|
|
644
676
|
}
|
|
645
|
-
function
|
|
646
|
-
let { activity: t } = e, n = t.headline ?? t.event,
|
|
647
|
-
if (!
|
|
677
|
+
function Ge(e) {
|
|
678
|
+
let { activity: t } = e, n = t.headline ?? e.eventLabel ?? t.event, i = t.actor?.name;
|
|
679
|
+
if (!i || !n.includes(i)) return /* @__PURE__ */ A(r, {
|
|
648
680
|
type: "inherit",
|
|
649
681
|
tag: "span",
|
|
650
682
|
children: n
|
|
651
683
|
});
|
|
652
|
-
let [a, ...o] = n.split(
|
|
653
|
-
return /* @__PURE__ */ k
|
|
654
|
-
!!a && /* @__PURE__ */
|
|
684
|
+
let [a, ...o] = n.split(i);
|
|
685
|
+
return /* @__PURE__ */ j(k, { children: [
|
|
686
|
+
!!a && /* @__PURE__ */ A(r, {
|
|
655
687
|
type: "inherit",
|
|
656
688
|
tag: "span",
|
|
657
689
|
children: a
|
|
658
690
|
}),
|
|
659
|
-
/* @__PURE__ */
|
|
691
|
+
/* @__PURE__ */ A(Ue, {
|
|
660
692
|
actorId: t.actor?.id,
|
|
661
|
-
text:
|
|
693
|
+
text: i,
|
|
662
694
|
href: t.actor?.href,
|
|
663
695
|
activity: t,
|
|
664
696
|
youLabel: e.youLabel,
|
|
665
697
|
currentUserId: e.currentUserId,
|
|
666
698
|
onActorClick: e.onActorClick
|
|
667
699
|
}),
|
|
668
|
-
o.length > 0 && /* @__PURE__ */
|
|
700
|
+
o.length > 0 && /* @__PURE__ */ A(r, {
|
|
669
701
|
type: "inherit",
|
|
670
702
|
tag: "span",
|
|
671
|
-
children: o.join(
|
|
703
|
+
children: o.join(i)
|
|
672
704
|
})
|
|
673
705
|
] });
|
|
674
706
|
}
|
|
675
|
-
function
|
|
707
|
+
function Ke(e) {
|
|
676
708
|
let t = e.activity.segments;
|
|
677
|
-
return t && t.length > 0 ? /* @__PURE__ */
|
|
709
|
+
return t && t.length > 0 ? /* @__PURE__ */ A("span", {
|
|
678
710
|
className: "activity-headline--component leading-snug [&>span]:leading-snug",
|
|
679
|
-
children:
|
|
680
|
-
}) : /* @__PURE__ */
|
|
711
|
+
children: We(t, e)
|
|
712
|
+
}) : /* @__PURE__ */ A("span", {
|
|
681
713
|
className: "activity-headline--component leading-snug",
|
|
682
|
-
children:
|
|
714
|
+
children: Ge(e)
|
|
683
715
|
});
|
|
684
716
|
}
|
|
685
717
|
//#endregion
|
|
686
718
|
//#region src/components/features/activities/partials/activity-marker.tsx
|
|
687
|
-
function
|
|
688
|
-
let o =
|
|
719
|
+
function qe({ icon: e, tone: t, density: r, last: i, className: a }) {
|
|
720
|
+
let o = Be[t], s = Be.neutral, c = r === "compact" ? /* @__PURE__ */ A("span", {
|
|
689
721
|
"aria-hidden": !0,
|
|
690
|
-
className: n(
|
|
691
|
-
}) : r === "rich" ? /* @__PURE__ */
|
|
722
|
+
className: n(f.marker, o.dot)
|
|
723
|
+
}) : r === "rich" ? /* @__PURE__ */ A(_, {
|
|
692
724
|
icon: e,
|
|
693
725
|
size: "sm",
|
|
694
726
|
tone: "neutral",
|
|
695
727
|
bordered: !0
|
|
696
|
-
}) : /* @__PURE__ */
|
|
728
|
+
}) : /* @__PURE__ */ A("span", {
|
|
697
729
|
className: n("flex size-icon-lg shrink-0 items-center justify-center rounded-full", s.bg, s.fg),
|
|
698
|
-
children: /* @__PURE__ */
|
|
730
|
+
children: /* @__PURE__ */ A(e, { className: "size-icon-sm" })
|
|
699
731
|
});
|
|
700
|
-
return /* @__PURE__ */
|
|
732
|
+
return /* @__PURE__ */ j("div", {
|
|
701
733
|
className: n("activity-marker--component flex flex-col items-center gap-space-xs", a),
|
|
702
|
-
children: [/* @__PURE__ */
|
|
734
|
+
children: [/* @__PURE__ */ A("span", {
|
|
703
735
|
className: "activity-marker--glyph flex min-h-icon-lg shrink-0 items-center justify-center",
|
|
704
736
|
children: c
|
|
705
|
-
}), !i && /* @__PURE__ */
|
|
737
|
+
}), !i && /* @__PURE__ */ A("span", {
|
|
706
738
|
"aria-hidden": !0,
|
|
707
739
|
className: n("w-px flex-1", s.line)
|
|
708
740
|
})]
|
|
@@ -710,303 +742,318 @@ function Fe({ icon: e, tone: t, density: r, last: i, className: a }) {
|
|
|
710
742
|
}
|
|
711
743
|
//#endregion
|
|
712
744
|
//#region src/components/features/activities/partials/activity-row.tsx
|
|
713
|
-
function
|
|
714
|
-
return /* @__PURE__ */
|
|
745
|
+
function Je({ metadata: e }) {
|
|
746
|
+
return /* @__PURE__ */ A(c, {
|
|
715
747
|
columns: {
|
|
716
748
|
base: 1,
|
|
717
749
|
sm: 2
|
|
718
750
|
},
|
|
719
751
|
gap: "md",
|
|
720
752
|
className: "activity-row--metadata",
|
|
721
|
-
children: e.map((e) => /* @__PURE__ */
|
|
753
|
+
children: e.map((e, t) => /* @__PURE__ */ j(l, {
|
|
722
754
|
gap: "dense",
|
|
723
755
|
className: "min-w-0",
|
|
724
|
-
children: [/* @__PURE__ */
|
|
756
|
+
children: [/* @__PURE__ */ A(r, {
|
|
725
757
|
tag: "div",
|
|
726
758
|
size: "xs",
|
|
727
759
|
type: "discrete",
|
|
728
760
|
weight: "medium",
|
|
729
761
|
lineHeight: "snug",
|
|
730
762
|
children: e.label
|
|
731
|
-
}), /* @__PURE__ */
|
|
763
|
+
}), /* @__PURE__ */ A(r, {
|
|
732
764
|
type: "inherit",
|
|
733
765
|
tag: "div",
|
|
734
766
|
lineHeight: "snug",
|
|
735
767
|
className: "min-w-0 break-words",
|
|
736
768
|
children: e.value
|
|
737
769
|
})]
|
|
738
|
-
}, e.label))
|
|
770
|
+
}, `${e.label}-${t}`))
|
|
739
771
|
});
|
|
740
772
|
}
|
|
741
|
-
function
|
|
773
|
+
function Ye(e) {
|
|
742
774
|
return e != null && e !== !1;
|
|
743
775
|
}
|
|
744
|
-
function
|
|
776
|
+
function Xe({ activity: e, density: t, detailsCollapsible: n, customDetails: r, actions: i }) {
|
|
745
777
|
if (t !== "rich") return {
|
|
746
778
|
disclosure: !1,
|
|
747
779
|
menu: !1
|
|
748
780
|
};
|
|
749
781
|
let a = (e.changes?.length ?? 0) > 0, o = (e.metadata?.length ?? 0) > 0;
|
|
750
782
|
return {
|
|
751
|
-
disclosure: (o || a ||
|
|
783
|
+
disclosure: (o || a || Ye(e.details) || Ye(r)) && (n ?? (o || a)),
|
|
752
784
|
menu: i.some((e) => e.presentation !== "inline")
|
|
753
785
|
};
|
|
754
786
|
}
|
|
755
|
-
var
|
|
756
|
-
function
|
|
757
|
-
let { activity:
|
|
758
|
-
activity:
|
|
787
|
+
var Ze = "activity-row--trailing-slot size-action-sm shrink-0";
|
|
788
|
+
function Qe(e) {
|
|
789
|
+
let { activity: i, density: a, itemSpacing: c, eventConfig: u, tone: d, last: f, expanded: p, onExpandedChange: m, detailsCollapsible: h, relativeTime: _, absoluteTime: y, sourceLabel: ee, eventLabel: te, strings: b, currentUserId: x, actions: S, onActivityClick: C, onActorClick: w, onResourceClick: T, onAction: E, getResourceConfig: D, headlineOverride: O, markerOverride: k, customDetails: M, rowClassName: N, markerClassName: P, contentClassName: F, detailsClassName: re, reserveDisclosure: I = !1, reserveMenu: L = !1 } = e, R = t(_e, b), z = i.iconOverride ?? u.icon, B = (i.changes?.length ?? 0) > 0, V = i.metadata ?? [], H = V.length > 0, U = (i.resources?.length ?? 0) > 0, W = i.details !== void 0 && i.details !== null && i.details !== !1, G = M != null && M !== !1, K = H || B || W || G, q = i.description !== void 0 && i.description !== null && i.description !== "", J = a !== "compact", Y = a === "rich", X = h ?? (H || B), oe = Y && K && (!X || p), Z = Y && (!(K && X) || p), se = S.filter((e) => e.presentation === "inline"), ce = S.filter((e) => e.presentation !== "inline"), le = Xe({
|
|
790
|
+
activity: i,
|
|
759
791
|
density: a,
|
|
760
|
-
detailsCollapsible:
|
|
761
|
-
customDetails:
|
|
762
|
-
actions:
|
|
763
|
-
}), Q =
|
|
764
|
-
activity:
|
|
765
|
-
currentUserId:
|
|
766
|
-
youLabel:
|
|
767
|
-
onActorClick:
|
|
768
|
-
onResourceClick:
|
|
769
|
-
getResourceConfig:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
792
|
+
detailsCollapsible: h,
|
|
793
|
+
customDetails: M,
|
|
794
|
+
actions: S
|
|
795
|
+
}), Q = i.sourceContent ?? ee, ue = O ?? /* @__PURE__ */ A(Ke, {
|
|
796
|
+
activity: i,
|
|
797
|
+
currentUserId: x,
|
|
798
|
+
youLabel: R.you,
|
|
799
|
+
onActorClick: w,
|
|
800
|
+
onResourceClick: T,
|
|
801
|
+
getResourceConfig: D,
|
|
802
|
+
eventLabel: te
|
|
803
|
+
}), de = k ?? /* @__PURE__ */ A(qe, {
|
|
804
|
+
icon: z,
|
|
805
|
+
tone: d,
|
|
773
806
|
density: a,
|
|
774
|
-
last:
|
|
775
|
-
className:
|
|
776
|
-
}), $ = typeof
|
|
777
|
-
return /* @__PURE__ */
|
|
778
|
-
className: n("activity-row--component relative flex",
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
children: [/* @__PURE__ */
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
className: "
|
|
797
|
-
children:
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
gap: "xs",
|
|
814
|
-
justify: {
|
|
815
|
-
base: "between",
|
|
816
|
-
sm: "end"
|
|
817
|
-
},
|
|
818
|
-
wrap: !1,
|
|
819
|
-
className: "activity-row--trailing w-full shrink-0 justify-self-start sm:w-auto sm:justify-self-end",
|
|
820
|
-
children: [
|
|
821
|
-
!!g && /* @__PURE__ */ O(i, {
|
|
822
|
-
size: "xs",
|
|
823
|
-
type: "secondary",
|
|
824
|
-
lineHeight: "snug",
|
|
825
|
-
className: "whitespace-nowrap tabular-nums",
|
|
826
|
-
title: _ ?? void 0,
|
|
827
|
-
children: g
|
|
828
|
-
}),
|
|
829
|
-
se.disclosure ? /* @__PURE__ */ O(r, {
|
|
830
|
-
type: "button",
|
|
831
|
-
size: "sm",
|
|
832
|
-
iconOnly: !0,
|
|
833
|
-
tone: "secondary",
|
|
834
|
-
buttonStyle: "ghost",
|
|
835
|
-
className: "size-action-sm text-muted-foreground",
|
|
836
|
-
onClick: (e) => {
|
|
837
|
-
e.stopPropagation(), f(!d);
|
|
838
|
-
},
|
|
839
|
-
title: d ? x : b,
|
|
840
|
-
"aria-label": d ? x : b,
|
|
841
|
-
"aria-expanded": d,
|
|
842
|
-
children: O(d ? ee : te, { className: "size-icon-sm" })
|
|
843
|
-
}) : R && X ? /* @__PURE__ */ O("span", {
|
|
844
|
-
"aria-hidden": "true",
|
|
845
|
-
className: ze
|
|
846
|
-
}) : null,
|
|
847
|
-
se.menu ? /* @__PURE__ */ O(xe, {
|
|
848
|
-
activity: t,
|
|
849
|
-
actions: oe,
|
|
850
|
-
onAction: A,
|
|
851
|
-
label: S
|
|
852
|
-
}) : z && X ? /* @__PURE__ */ O("span", {
|
|
853
|
-
"aria-hidden": "true",
|
|
854
|
-
className: ze
|
|
855
|
-
}) : null
|
|
856
|
-
]
|
|
857
|
-
})]
|
|
858
|
-
}), !!Y && J && /* @__PURE__ */ O(i, {
|
|
859
|
-
tag: "div",
|
|
860
|
-
type: "secondary",
|
|
861
|
-
lineHeight: "relaxed",
|
|
862
|
-
className: "max-w-3xl",
|
|
863
|
-
children: t.description
|
|
864
|
-
})]
|
|
865
|
-
}),
|
|
866
|
-
ae && W && t.resources && /* @__PURE__ */ O(c, {
|
|
867
|
-
direction: "horizontal",
|
|
868
|
-
gap: "xs",
|
|
869
|
-
className: "mt-space-sm",
|
|
870
|
-
children: t.resources.map((e) => {
|
|
871
|
-
let n = j?.(e);
|
|
872
|
-
return /* @__PURE__ */ O(Ae, {
|
|
873
|
-
resource: e,
|
|
874
|
-
config: n,
|
|
875
|
-
onClick: D ? () => D(e, n, t) : void 0
|
|
876
|
-
}, e.key);
|
|
877
|
-
})
|
|
878
|
-
}),
|
|
879
|
-
ie && /* @__PURE__ */ O("div", {
|
|
880
|
-
className: "mt-space-sm",
|
|
881
|
-
children: /* @__PURE__ */ O("div", {
|
|
882
|
-
className: n("activity-row--details", ne),
|
|
883
|
-
children: /* @__PURE__ */ k(c, {
|
|
884
|
-
gap: "md",
|
|
885
|
-
children: [
|
|
886
|
-
U && /* @__PURE__ */ O(Ie, { metadata: H }),
|
|
887
|
-
V && t.changes && /* @__PURE__ */ O(Ce, {
|
|
888
|
-
changes: t.changes,
|
|
889
|
-
className: "border-0 bg-transparent p-0"
|
|
890
|
-
}),
|
|
891
|
-
G && /* @__PURE__ */ O("div", {
|
|
892
|
-
className: "activity-row--details-body",
|
|
893
|
-
children: t.details
|
|
894
|
-
}),
|
|
895
|
-
K && /* @__PURE__ */ O("div", {
|
|
896
|
-
className: "activity-row--details-custom",
|
|
897
|
-
children: P
|
|
807
|
+
last: f,
|
|
808
|
+
className: P
|
|
809
|
+
}), $ = typeof C == "function", fe = ne(), pe = q && typeof i.description != "string", me = a === "rich" ? "gap-space-md py-space-xs" : a === "compact" ? "gap-space-sm py-space-2xs" : "gap-space-md py-space-2xs", he = f ? "" : c === "compact" ? "pb-space-sm" : c === "relaxed" ? "pb-space-xl" : "pb-space-md";
|
|
810
|
+
return /* @__PURE__ */ j("div", {
|
|
811
|
+
className: n("activity-row--component relative flex", me, $ && `cursor-pointer rounded-radius ${g.rowHover}`, N),
|
|
812
|
+
children: [
|
|
813
|
+
$ && /* @__PURE__ */ A("button", {
|
|
814
|
+
type: "button",
|
|
815
|
+
"aria-labelledby": fe,
|
|
816
|
+
onClick: () => C?.(i),
|
|
817
|
+
className: n("activity-row--open absolute inset-0 z-0 cursor-pointer rounded-radius focus-visible:outline-none", g.nativeButtonReset, o.inset)
|
|
818
|
+
}),
|
|
819
|
+
de,
|
|
820
|
+
/* @__PURE__ */ j("div", {
|
|
821
|
+
className: n("activity-row--content min-w-0 flex-1", he, F),
|
|
822
|
+
children: [
|
|
823
|
+
/* @__PURE__ */ j(l, {
|
|
824
|
+
gap: "dense",
|
|
825
|
+
children: [/* @__PURE__ */ j("div", {
|
|
826
|
+
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]",
|
|
827
|
+
children: [/* @__PURE__ */ A(l, {
|
|
828
|
+
gap: "dense",
|
|
829
|
+
className: "min-w-0",
|
|
830
|
+
children: /* @__PURE__ */ j("div", {
|
|
831
|
+
className: "activity-row--headline flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-xs",
|
|
832
|
+
children: [/* @__PURE__ */ A(r, {
|
|
833
|
+
type: "inherit",
|
|
834
|
+
tag: "span",
|
|
835
|
+
size: "inherit",
|
|
836
|
+
lineHeight: "snug",
|
|
837
|
+
id: fe,
|
|
838
|
+
className: n("min-w-0 break-words [overflow-wrap:anywhere]", O != null && "relative z-10"),
|
|
839
|
+
children: ue
|
|
840
|
+
}), Q != null && Q !== "" && typeof Q != "boolean" && /* @__PURE__ */ A(v, {
|
|
841
|
+
inline: !0,
|
|
842
|
+
size: "sm",
|
|
843
|
+
tone: "secondary",
|
|
844
|
+
children: Q
|
|
845
|
+
})]
|
|
898
846
|
})
|
|
899
|
-
|
|
847
|
+
}), /* @__PURE__ */ j(l, {
|
|
848
|
+
direction: "horizontal",
|
|
849
|
+
gap: "xs",
|
|
850
|
+
justify: {
|
|
851
|
+
base: "between",
|
|
852
|
+
sm: "end"
|
|
853
|
+
},
|
|
854
|
+
wrap: !1,
|
|
855
|
+
className: n("activity-row--trailing w-full shrink-0 justify-self-start sm:w-auto sm:justify-self-end", Le),
|
|
856
|
+
children: [
|
|
857
|
+
!!_ && /* @__PURE__ */ A(r, {
|
|
858
|
+
size: "xs",
|
|
859
|
+
type: "secondary",
|
|
860
|
+
lineHeight: "snug",
|
|
861
|
+
className: "whitespace-nowrap tabular-nums",
|
|
862
|
+
title: y ?? void 0,
|
|
863
|
+
children: _
|
|
864
|
+
}),
|
|
865
|
+
le.disclosure ? /* @__PURE__ */ A(s, {
|
|
866
|
+
type: "button",
|
|
867
|
+
size: "sm",
|
|
868
|
+
iconOnly: !0,
|
|
869
|
+
tone: "secondary",
|
|
870
|
+
buttonStyle: "ghost",
|
|
871
|
+
className: "size-action-sm text-muted-foreground",
|
|
872
|
+
onClick: (e) => {
|
|
873
|
+
e.stopPropagation(), m(!p);
|
|
874
|
+
},
|
|
875
|
+
title: p ? R.hideChanges : R.showChanges,
|
|
876
|
+
"aria-label": p ? R.hideChanges : R.showChanges,
|
|
877
|
+
"aria-expanded": p,
|
|
878
|
+
children: A(p ? ie : ae, { className: "size-icon-sm" })
|
|
879
|
+
}) : I && Y ? /* @__PURE__ */ A("span", {
|
|
880
|
+
"aria-hidden": "true",
|
|
881
|
+
className: Ze
|
|
882
|
+
}) : null,
|
|
883
|
+
le.menu ? /* @__PURE__ */ A(Me, {
|
|
884
|
+
activity: i,
|
|
885
|
+
actions: ce,
|
|
886
|
+
onAction: E,
|
|
887
|
+
label: R.actionsLabel
|
|
888
|
+
}) : L && Y ? /* @__PURE__ */ A("span", {
|
|
889
|
+
"aria-hidden": "true",
|
|
890
|
+
className: Ze
|
|
891
|
+
}) : null
|
|
892
|
+
]
|
|
893
|
+
})]
|
|
894
|
+
}), !!J && q && /* @__PURE__ */ A(r, {
|
|
895
|
+
tag: "div",
|
|
896
|
+
type: "secondary",
|
|
897
|
+
lineHeight: "relaxed",
|
|
898
|
+
className: n("max-w-3xl", pe && "relative z-10"),
|
|
899
|
+
children: i.description
|
|
900
|
+
})]
|
|
901
|
+
}),
|
|
902
|
+
Z && U && i.resources && /* @__PURE__ */ A(l, {
|
|
903
|
+
direction: "horizontal",
|
|
904
|
+
gap: "xs",
|
|
905
|
+
className: "mt-space-sm",
|
|
906
|
+
children: i.resources.map((e) => {
|
|
907
|
+
let t = D?.(e);
|
|
908
|
+
return /* @__PURE__ */ A(He, {
|
|
909
|
+
resource: e,
|
|
910
|
+
config: t,
|
|
911
|
+
onClick: T ? () => T(e, t, i) : void 0
|
|
912
|
+
}, e.key);
|
|
913
|
+
})
|
|
914
|
+
}),
|
|
915
|
+
oe && /* @__PURE__ */ A("div", {
|
|
916
|
+
className: n("mt-space-sm", "relative z-10"),
|
|
917
|
+
children: /* @__PURE__ */ A("div", {
|
|
918
|
+
className: n("activity-row--details", re),
|
|
919
|
+
children: /* @__PURE__ */ j(l, {
|
|
920
|
+
gap: "md",
|
|
921
|
+
children: [
|
|
922
|
+
H && /* @__PURE__ */ A(Je, { metadata: V }),
|
|
923
|
+
B && i.changes && /* @__PURE__ */ A(Pe, {
|
|
924
|
+
changes: i.changes,
|
|
925
|
+
className: "border-0 bg-transparent p-0"
|
|
926
|
+
}),
|
|
927
|
+
W && /* @__PURE__ */ A("div", {
|
|
928
|
+
className: "activity-row--details-body",
|
|
929
|
+
children: i.details
|
|
930
|
+
}),
|
|
931
|
+
G && /* @__PURE__ */ A("div", {
|
|
932
|
+
className: "activity-row--details-custom",
|
|
933
|
+
children: M
|
|
934
|
+
})
|
|
935
|
+
]
|
|
936
|
+
})
|
|
937
|
+
})
|
|
938
|
+
}),
|
|
939
|
+
Z && se.length > 0 && /* @__PURE__ */ A(l, {
|
|
940
|
+
direction: "horizontal",
|
|
941
|
+
gap: "xs",
|
|
942
|
+
className: n("activity-row--inline-actions mt-space-sm", "relative z-10"),
|
|
943
|
+
children: se.map((e) => {
|
|
944
|
+
let t = e.icon;
|
|
945
|
+
return /* @__PURE__ */ A(s, {
|
|
946
|
+
...e.href ? { href: e.href } : { type: "button" },
|
|
947
|
+
size: "sm",
|
|
948
|
+
tone: e.tone === "destructive" ? "destructive" : "secondary",
|
|
949
|
+
buttonStyle: "outline",
|
|
950
|
+
icon: t,
|
|
951
|
+
disabled: e.disabled,
|
|
952
|
+
className: "h-auto min-h-action-sm px-control-sm py-space-xs",
|
|
953
|
+
onClick: () => {
|
|
954
|
+
E?.(e.id, i), e.onClick?.(i);
|
|
955
|
+
},
|
|
956
|
+
children: e.label
|
|
957
|
+
}, e.id);
|
|
900
958
|
})
|
|
901
959
|
})
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
gap: "xs",
|
|
906
|
-
className: "activity-row--inline-actions mt-space-sm",
|
|
907
|
-
children: Z.map((e) => {
|
|
908
|
-
let n = e.icon;
|
|
909
|
-
return /* @__PURE__ */ O(r, {
|
|
910
|
-
type: "button",
|
|
911
|
-
size: "sm",
|
|
912
|
-
tone: e.tone === "destructive" ? "destructive" : "secondary",
|
|
913
|
-
buttonStyle: "outline",
|
|
914
|
-
icon: n,
|
|
915
|
-
disabled: e.disabled,
|
|
916
|
-
className: "h-auto min-h-action-sm px-control-sm py-space-xs",
|
|
917
|
-
onClick: (n) => {
|
|
918
|
-
n.stopPropagation(), A?.(e.id, t), e.onClick?.(t);
|
|
919
|
-
},
|
|
920
|
-
children: e.label
|
|
921
|
-
}, e.id);
|
|
922
|
-
})
|
|
923
|
-
})
|
|
924
|
-
]
|
|
925
|
-
})]
|
|
960
|
+
]
|
|
961
|
+
})
|
|
962
|
+
]
|
|
926
963
|
});
|
|
927
964
|
}
|
|
928
965
|
//#endregion
|
|
929
966
|
//#region src/components/features/activities/activities-feed.tsx
|
|
930
|
-
function
|
|
967
|
+
function $e(e, t) {
|
|
931
968
|
try {
|
|
932
969
|
let n = new Date(e);
|
|
933
|
-
return
|
|
970
|
+
return $(n) ? Q(n, "PP p", t ? { locale: t } : void 0) : e;
|
|
934
971
|
} catch {
|
|
935
972
|
return e;
|
|
936
973
|
}
|
|
937
974
|
}
|
|
938
|
-
function
|
|
975
|
+
function et(e, t) {
|
|
939
976
|
return typeof e == "function" ? e(t) : e;
|
|
940
977
|
}
|
|
941
|
-
function
|
|
978
|
+
function tt(e, t) {
|
|
942
979
|
return e.toneOverride ?? t;
|
|
943
980
|
}
|
|
944
|
-
function
|
|
945
|
-
let { activities:
|
|
946
|
-
...
|
|
947
|
-
...
|
|
948
|
-
}), [
|
|
949
|
-
resources:
|
|
950
|
-
onResourcesChange:
|
|
951
|
-
}), z = e(), B =
|
|
952
|
-
activities:
|
|
953
|
-
groupByDate:
|
|
954
|
-
expandedByDefault:
|
|
955
|
-
defaultExpandedIds:
|
|
956
|
-
expandedIds:
|
|
957
|
-
onExpandedIdsChange:
|
|
981
|
+
function nt(r) {
|
|
982
|
+
let { activities: i = [], density: a = "default", itemSpacing: o = "relaxed", groupByDate: s = !0, expandedByDefault: c = !1, detailsCollapsible: u, defaultExpandedIds: d, expandedIds: f, onExpandedIdsChange: h, currentUserId: g, loading: _ = !1, error: v, onRetry: y, eventConfig: ee, strings: te, slots: b, rowClassNames: x, className: S, locale: C, formatRelativeTime: w, formatAbsoluteTime: ne, formatDateGroupLabel: E, getEventLabel: D, getSourceLabel: O, actionsForActivity: k, onActivityClick: M, onActorClick: N, onResourceClick: P, onAction: F, onActivityExpandedChange: re, resources: ie, onResourcesChange: ae } = r, I = t(_e, te), L = T(() => ({
|
|
983
|
+
...he,
|
|
984
|
+
...ee
|
|
985
|
+
}), [ee]), R = Ae({
|
|
986
|
+
resources: ie,
|
|
987
|
+
onResourcesChange: ae
|
|
988
|
+
}), z = e(), B = C ?? z.locale, V = Ee({
|
|
989
|
+
activities: i,
|
|
990
|
+
groupByDate: s,
|
|
991
|
+
expandedByDefault: c,
|
|
992
|
+
defaultExpandedIds: d,
|
|
993
|
+
expandedIds: f,
|
|
994
|
+
onExpandedIdsChange: h,
|
|
958
995
|
locale: B,
|
|
959
|
-
strings:
|
|
996
|
+
strings: I,
|
|
960
997
|
formatDateGroupLabel: E
|
|
961
|
-
}), H =
|
|
962
|
-
|
|
963
|
-
className: "px-space-md py-space-xl",
|
|
964
|
-
children:
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
998
|
+
}), H = xe(), U = w ?? z.formatRelativeTime ?? ((e) => H ? ye(e, B) : we(e, B)), W = ne ?? ((e) => H ? $e(e, B) : we(e, B)), G = null, K = v != null && v !== !1;
|
|
999
|
+
if (_) G = /* @__PURE__ */ A("div", {
|
|
1000
|
+
className: "activities-feed--loading px-space-md py-space-xl",
|
|
1001
|
+
children: b?.loading ?? /* @__PURE__ */ A(p, { label: I.loading })
|
|
1002
|
+
});
|
|
1003
|
+
else if (K) {
|
|
1004
|
+
let e = v instanceof Error ? v.message : v === !0 ? void 0 : v;
|
|
1005
|
+
G = /* @__PURE__ */ A("div", {
|
|
1006
|
+
className: "activities-feed--error px-space-md py-space-md",
|
|
1007
|
+
children: b?.error ?? /* @__PURE__ */ A(m, {
|
|
1008
|
+
variant: "inline",
|
|
1009
|
+
title: I.error,
|
|
1010
|
+
description: e || void 0,
|
|
1011
|
+
onRetry: y,
|
|
1012
|
+
retryLabel: I.retry
|
|
1013
|
+
})
|
|
1014
|
+
});
|
|
1015
|
+
} else i.length === 0 && (G = /* @__PURE__ */ A("div", {
|
|
970
1016
|
className: "px-space-md py-space-md",
|
|
971
|
-
children:
|
|
1017
|
+
children: b?.empty ?? /* @__PURE__ */ A(Ie, { title: I.empty })
|
|
972
1018
|
}));
|
|
973
|
-
let
|
|
1019
|
+
let q = G === null ? V.groups : [], J = q.reduce((e, t) => e + t.items.length, 0), Y = 0, X = q.map((e) => ({
|
|
974
1020
|
group: e,
|
|
975
1021
|
rows: e.items.map((e, t) => {
|
|
976
|
-
let n = e.activity, r = t === 0, i = ++
|
|
977
|
-
density:
|
|
1022
|
+
let n = e.activity, r = t === 0, i = ++Y === J, s = ge(n.event, L), c = tt(n, s.tone), l = n.timestamp ?? (n.createdAt ? U(n.createdAt) : null), d = n.createdAt ? W(n.createdAt) : null, f = n.source ? O?.(n.source) ?? I.sources[n.source] ?? s.sourceLabel ?? null : s.sourceLabel ?? null, p = f && f.trim().length > 0 ? f : null, m = k?.(n) ?? [], h = D?.(n.event) ?? I.events[n.event] ?? L[n.event]?.label ?? n.event, g = {
|
|
1023
|
+
density: a,
|
|
978
1024
|
isLast: i,
|
|
979
1025
|
isFirstInGroup: r,
|
|
980
1026
|
activity: n,
|
|
981
|
-
eventConfig:
|
|
1027
|
+
eventConfig: s,
|
|
982
1028
|
tone: c,
|
|
983
1029
|
relativeTime: l,
|
|
984
|
-
absoluteTime:
|
|
1030
|
+
absoluteTime: d,
|
|
985
1031
|
sourceLabel: p,
|
|
986
1032
|
expanded: V.isExpanded(n.id),
|
|
987
|
-
itemSpacing:
|
|
1033
|
+
itemSpacing: o,
|
|
988
1034
|
setExpanded: (e) => V.setExpanded(n.id, e),
|
|
989
1035
|
toggleExpanded: () => V.toggleExpanded(n.id)
|
|
990
|
-
},
|
|
1036
|
+
}, _ = b?.renderDetails?.(n, g), v = b?.renderRow?.(n, g), y = n.collapsible ?? u;
|
|
991
1037
|
return {
|
|
992
1038
|
keyed: e,
|
|
993
1039
|
activity: n,
|
|
994
|
-
eventCfg:
|
|
1040
|
+
eventCfg: s,
|
|
995
1041
|
tone: c,
|
|
996
1042
|
isLast: i,
|
|
997
1043
|
relativeTime: l,
|
|
998
|
-
absoluteTime:
|
|
1044
|
+
absoluteTime: d,
|
|
999
1045
|
sourceLabel: p,
|
|
1046
|
+
eventLabel: h,
|
|
1000
1047
|
actions: m,
|
|
1001
|
-
ctx:
|
|
1002
|
-
customDetails:
|
|
1003
|
-
customRow:
|
|
1004
|
-
rowDetailsCollapsible:
|
|
1005
|
-
trailing:
|
|
1048
|
+
ctx: g,
|
|
1049
|
+
customDetails: _,
|
|
1050
|
+
customRow: v,
|
|
1051
|
+
rowDetailsCollapsible: y,
|
|
1052
|
+
trailing: v === void 0 ? Xe({
|
|
1006
1053
|
activity: n,
|
|
1007
|
-
density:
|
|
1008
|
-
detailsCollapsible:
|
|
1009
|
-
customDetails:
|
|
1054
|
+
density: a,
|
|
1055
|
+
detailsCollapsible: y,
|
|
1056
|
+
customDetails: _,
|
|
1010
1057
|
actions: m
|
|
1011
1058
|
}) : {
|
|
1012
1059
|
disclosure: !1,
|
|
@@ -1014,104 +1061,114 @@ function We(r) {
|
|
|
1014
1061
|
}
|
|
1015
1062
|
};
|
|
1016
1063
|
})
|
|
1017
|
-
})),
|
|
1018
|
-
return /* @__PURE__ */
|
|
1064
|
+
})), oe = X.some(({ rows: e }) => e.some((e) => e.trailing.disclosure)), Z = X.some(({ rows: e }) => e.some((e) => e.trailing.menu));
|
|
1065
|
+
return /* @__PURE__ */ j(l, {
|
|
1019
1066
|
gap: "xl",
|
|
1020
|
-
className: n("activities-feed--component",
|
|
1067
|
+
className: n("activities-feed--component", S),
|
|
1021
1068
|
children: [
|
|
1022
|
-
!!
|
|
1023
|
-
|
|
1069
|
+
!!b?.header && /* @__PURE__ */ A("div", { children: b.header }),
|
|
1070
|
+
G ?? /* @__PURE__ */ A("div", {
|
|
1024
1071
|
className: "flex flex-col",
|
|
1025
|
-
children:
|
|
1072
|
+
children: X.map(({ group: e, rows: t }, r) => {
|
|
1026
1073
|
let i = r === 0;
|
|
1027
|
-
return /* @__PURE__ */
|
|
1074
|
+
return /* @__PURE__ */ j("div", {
|
|
1028
1075
|
className: n(i ? "" : "mt-1"),
|
|
1029
|
-
children: [
|
|
1076
|
+
children: [b?.renderDateLabel ? b.renderDateLabel(e.label, i) : /* @__PURE__ */ A(Fe, {
|
|
1030
1077
|
label: e.label,
|
|
1031
1078
|
first: i
|
|
1032
|
-
}), /* @__PURE__ */
|
|
1033
|
-
|
|
1079
|
+
}), /* @__PURE__ */ A("div", {
|
|
1080
|
+
role: "list",
|
|
1081
|
+
"aria-label": e.label || void 0,
|
|
1082
|
+
className: n("activities-feed--list flex flex-col", !!e.label && "mt-space-md"),
|
|
1034
1083
|
children: t.map((e) => {
|
|
1035
1084
|
let { keyed: t, activity: n, ctx: r } = e;
|
|
1036
|
-
if (e.customRow !== void 0) return /* @__PURE__ */
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1085
|
+
if (e.customRow !== void 0) return /* @__PURE__ */ A("div", {
|
|
1086
|
+
role: "listitem",
|
|
1087
|
+
children: e.customRow
|
|
1088
|
+
}, t.key);
|
|
1089
|
+
let i = b?.renderHeadline?.(n, r), s = b?.renderMarker?.(n, r);
|
|
1090
|
+
return /* @__PURE__ */ A("div", {
|
|
1091
|
+
role: "listitem",
|
|
1092
|
+
children: /* @__PURE__ */ A(Qe, {
|
|
1093
|
+
activity: n,
|
|
1094
|
+
density: a,
|
|
1095
|
+
itemSpacing: o,
|
|
1096
|
+
eventConfig: e.eventCfg,
|
|
1097
|
+
tone: e.tone,
|
|
1098
|
+
last: e.isLast,
|
|
1099
|
+
expanded: r.expanded,
|
|
1100
|
+
onExpandedChange: (e) => {
|
|
1101
|
+
V.setExpanded(n.id, e), re?.(n, e);
|
|
1102
|
+
},
|
|
1103
|
+
detailsCollapsible: e.rowDetailsCollapsible,
|
|
1104
|
+
relativeTime: e.relativeTime,
|
|
1105
|
+
absoluteTime: e.absoluteTime,
|
|
1106
|
+
sourceLabel: e.sourceLabel,
|
|
1107
|
+
eventLabel: e.eventLabel,
|
|
1108
|
+
strings: I,
|
|
1109
|
+
currentUserId: g,
|
|
1110
|
+
actions: e.actions,
|
|
1111
|
+
onActivityClick: M,
|
|
1112
|
+
onActorClick: N,
|
|
1113
|
+
onResourceClick: P,
|
|
1114
|
+
onAction: F,
|
|
1115
|
+
getResourceConfig: (e) => R.get(e),
|
|
1116
|
+
headlineOverride: i,
|
|
1117
|
+
markerOverride: s,
|
|
1118
|
+
customDetails: e.customDetails,
|
|
1119
|
+
rowClassName: et(x?.row, n),
|
|
1120
|
+
markerClassName: et(x?.marker, n),
|
|
1121
|
+
contentClassName: et(x?.content, n),
|
|
1122
|
+
detailsClassName: et(x?.details, n),
|
|
1123
|
+
reserveDisclosure: oe,
|
|
1124
|
+
reserveMenu: Z
|
|
1125
|
+
})
|
|
1074
1126
|
}, t.key);
|
|
1075
1127
|
})
|
|
1076
1128
|
})]
|
|
1077
1129
|
}, `${e.label}-${r}`);
|
|
1078
1130
|
})
|
|
1079
1131
|
}),
|
|
1080
|
-
!!
|
|
1132
|
+
!!b?.footer && /* @__PURE__ */ A("div", { children: b.footer })
|
|
1081
1133
|
]
|
|
1082
1134
|
});
|
|
1083
1135
|
}
|
|
1084
|
-
|
|
1136
|
+
nt.displayName = "ActivityFeed";
|
|
1085
1137
|
//#endregion
|
|
1086
1138
|
//#region src/components/features/activities/activity-log.tsx
|
|
1087
|
-
function
|
|
1139
|
+
function rt(e, t) {
|
|
1088
1140
|
let n = [...e];
|
|
1089
1141
|
return n.sort((e, n) => {
|
|
1090
|
-
let r =
|
|
1142
|
+
let r = it(e.timestamp), i = it(n.timestamp);
|
|
1091
1143
|
return t === "asc" ? r - i : i - r;
|
|
1092
1144
|
}), n;
|
|
1093
1145
|
}
|
|
1094
|
-
function
|
|
1146
|
+
function it(e) {
|
|
1147
|
+
let t = e ? new Date(e).getTime() : 0;
|
|
1148
|
+
return Number.isNaN(t) ? 0 : t;
|
|
1149
|
+
}
|
|
1150
|
+
var at = {};
|
|
1151
|
+
function ot(e) {
|
|
1095
1152
|
return e ?? "secondary";
|
|
1096
1153
|
}
|
|
1097
|
-
function
|
|
1154
|
+
function st(e) {
|
|
1098
1155
|
if (e) return typeof e == "string" ? { name: e } : e;
|
|
1099
1156
|
}
|
|
1100
|
-
function
|
|
1157
|
+
function ct(e) {
|
|
1101
1158
|
return e != null && typeof e != "boolean";
|
|
1102
1159
|
}
|
|
1103
|
-
function
|
|
1160
|
+
function lt(e) {
|
|
1104
1161
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? { text: String(e) } : {
|
|
1105
1162
|
text: "",
|
|
1106
1163
|
content: e
|
|
1107
1164
|
};
|
|
1108
1165
|
}
|
|
1109
|
-
function
|
|
1166
|
+
function ut(e, t) {
|
|
1110
1167
|
if (e && t && t.kind !== "comment") return typeof e == "function" ? e(t) : e;
|
|
1111
1168
|
}
|
|
1112
|
-
function
|
|
1113
|
-
let n =
|
|
1114
|
-
if (e.action || a || !
|
|
1169
|
+
function dt(e, t) {
|
|
1170
|
+
let n = st(e.actor), r = ct(e.status), i = r ? e.status : e.target, a = ct(i), o = [];
|
|
1171
|
+
if (e.action || a || !ct(e.headline)) {
|
|
1115
1172
|
if (n && o.push({
|
|
1116
1173
|
type: "actor",
|
|
1117
1174
|
text: n.name,
|
|
@@ -1120,7 +1177,7 @@ function Ze(e, t) {
|
|
|
1120
1177
|
type: "text",
|
|
1121
1178
|
text: e.action
|
|
1122
1179
|
}), a) {
|
|
1123
|
-
let t =
|
|
1180
|
+
let t = lt(i);
|
|
1124
1181
|
o.push(r ? {
|
|
1125
1182
|
type: "status",
|
|
1126
1183
|
...t,
|
|
@@ -1132,9 +1189,9 @@ function Ze(e, t) {
|
|
|
1132
1189
|
}
|
|
1133
1190
|
} else typeof e.headline != "string" && o.push({
|
|
1134
1191
|
type: "text",
|
|
1135
|
-
...
|
|
1192
|
+
...lt(e.headline)
|
|
1136
1193
|
});
|
|
1137
|
-
let s = e.descriptionHtml ? /* @__PURE__ */
|
|
1194
|
+
let s = e.descriptionHtml ? /* @__PURE__ */ A(x, {
|
|
1138
1195
|
html: e.descriptionHtml,
|
|
1139
1196
|
mentions: e.mentions,
|
|
1140
1197
|
resources: t
|
|
@@ -1148,7 +1205,7 @@ function Ze(e, t) {
|
|
|
1148
1205
|
createdAt: e.timestamp,
|
|
1149
1206
|
timestamp: void 0,
|
|
1150
1207
|
iconOverride: e.icon,
|
|
1151
|
-
toneOverride:
|
|
1208
|
+
toneOverride: ot(e.tone),
|
|
1152
1209
|
headline: typeof e.headline == "string" ? e.headline : void 0,
|
|
1153
1210
|
description: s,
|
|
1154
1211
|
metadata: e.metadata,
|
|
@@ -1160,180 +1217,177 @@ function Ze(e, t) {
|
|
|
1160
1217
|
segments: o
|
|
1161
1218
|
};
|
|
1162
1219
|
}
|
|
1163
|
-
function
|
|
1164
|
-
let { entries: a, order: o = "desc", itemSpacing: s = "relaxed", resources:
|
|
1165
|
-
let t =
|
|
1166
|
-
|
|
1167
|
-
let n = le(e);
|
|
1168
|
-
if (!Q(n)) return e;
|
|
1169
|
-
let r = B.locale;
|
|
1170
|
-
return oe(n, {
|
|
1171
|
-
addSuffix: !0,
|
|
1172
|
-
...r ? { locale: r } : {}
|
|
1173
|
-
});
|
|
1220
|
+
function ft(i) {
|
|
1221
|
+
let { entries: a, order: o = "desc", itemSpacing: s = "relaxed", resources: c, onResourceSearch: u, canModerate: d, onCommentDelete: f, onCommentReact: p, onCommentReply: m, onCommentPinToggle: h, strings: g, activityStrings: _, renderers: v, renderEventDetails: y, eventDetailsCollapsible: x = !0, defaultExpandedIds: S, expandedIds: w, onExpandedIdsChange: ne, onEventExpandedChange: E, onEventAction: D, classNames: O, composer: k, loading: M, error: N, onRetry: P, slots: F, title: re, getMediaUrl: ie, getMediaName: ae, getStatusLabel: I, formatRelativeTime: L, className: R } = i, z = t(_e, _), B = e(), V = C((e) => {
|
|
1222
|
+
let t = L ?? B.formatRelativeTime;
|
|
1223
|
+
return t ? t(e) : ye(e, B.locale);
|
|
1174
1224
|
}, [
|
|
1175
1225
|
B.formatRelativeTime,
|
|
1176
1226
|
B.locale,
|
|
1177
|
-
|
|
1178
|
-
]), H =
|
|
1179
|
-
onSubmit:
|
|
1180
|
-
onAfterMutate:
|
|
1181
|
-
onError:
|
|
1182
|
-
}),
|
|
1227
|
+
L
|
|
1228
|
+
]), H = b({
|
|
1229
|
+
onSubmit: k?.onSubmit,
|
|
1230
|
+
onAfterMutate: k?.onAfterMutate,
|
|
1231
|
+
onError: k?.onError
|
|
1232
|
+
}), U = T(() => rt(a, o), [a, o]), W = T(() => U.map((e) => e.kind === "comment" ? {
|
|
1183
1233
|
id: e.id,
|
|
1184
1234
|
event: "comment",
|
|
1185
1235
|
source: "comment",
|
|
1186
1236
|
createdAt: e.timestamp,
|
|
1187
1237
|
data: e
|
|
1188
|
-
} :
|
|
1189
|
-
row: (e) =>
|
|
1190
|
-
marker: (e) =>
|
|
1191
|
-
content: (e) =>
|
|
1192
|
-
details: (e) =>
|
|
1193
|
-
}), [
|
|
1238
|
+
} : dt(e, c)), [c, U]), K = T(() => ({
|
|
1239
|
+
row: (e) => ut(O?.eventRow, e.data),
|
|
1240
|
+
marker: (e) => ut(O?.eventMarker, e.data),
|
|
1241
|
+
content: (e) => ut(O?.eventContent, e.data),
|
|
1242
|
+
details: (e) => ut(O?.eventDetails, e.data)
|
|
1243
|
+
}), [O]), q = k?.enabled ? /* @__PURE__ */ A("div", {
|
|
1194
1244
|
className: "activity-log--composer",
|
|
1195
|
-
children: /* @__PURE__ */
|
|
1196
|
-
context:
|
|
1245
|
+
children: /* @__PURE__ */ A(ee, {
|
|
1246
|
+
context: k.context,
|
|
1197
1247
|
canComment: !0,
|
|
1198
1248
|
submitting: H.isSubmitting,
|
|
1199
1249
|
errors: H.formErrors,
|
|
1200
1250
|
resetKey: H.resetKey,
|
|
1201
1251
|
onSubmit: H.submit,
|
|
1202
|
-
resources:
|
|
1252
|
+
resources: c,
|
|
1203
1253
|
onResourceSearch: u,
|
|
1204
1254
|
strings: g,
|
|
1205
|
-
placeholder:
|
|
1206
|
-
autoFocus:
|
|
1207
|
-
inlineSubmit:
|
|
1255
|
+
placeholder: k.placeholder,
|
|
1256
|
+
autoFocus: k.autoFocus,
|
|
1257
|
+
inlineSubmit: k.inlineSubmit ?? !1
|
|
1208
1258
|
})
|
|
1209
|
-
}) : null, J =
|
|
1210
|
-
|
|
1259
|
+
}) : null, J = k?.position ?? "top", Y = (e) => {
|
|
1260
|
+
let t = e.data;
|
|
1261
|
+
if (!t || t.kind === "comment") return [];
|
|
1262
|
+
let n = t;
|
|
1263
|
+
return (n.actions ?? []).map((e) => ({
|
|
1264
|
+
id: e.id,
|
|
1265
|
+
label: e.label,
|
|
1266
|
+
icon: e.icon,
|
|
1267
|
+
href: e.href,
|
|
1268
|
+
disabled: e.disabled,
|
|
1269
|
+
tone: e.tone,
|
|
1270
|
+
presentation: e.presentation,
|
|
1271
|
+
onClick: () => e.onSelect?.(n)
|
|
1272
|
+
}));
|
|
1273
|
+
}, X = {
|
|
1274
|
+
header: J === "top" ? q : void 0,
|
|
1275
|
+
footer: J === "bottom" ? q : void 0,
|
|
1276
|
+
empty: F?.empty,
|
|
1277
|
+
loading: F?.loading,
|
|
1278
|
+
error: F?.error,
|
|
1279
|
+
renderRow: (e, t) => {
|
|
1280
|
+
let r = e.data;
|
|
1281
|
+
if (!r) return;
|
|
1282
|
+
let i = v?.[r.kind];
|
|
1283
|
+
if (i) return i(r, {
|
|
1284
|
+
resources: c,
|
|
1285
|
+
accessors: {
|
|
1286
|
+
getMediaUrl: ie,
|
|
1287
|
+
getMediaName: ae,
|
|
1288
|
+
getStatusLabel: I,
|
|
1289
|
+
formatRelativeTime: V
|
|
1290
|
+
},
|
|
1291
|
+
strings: g
|
|
1292
|
+
});
|
|
1293
|
+
if (r.kind !== "comment") return;
|
|
1294
|
+
let a = r;
|
|
1295
|
+
return /* @__PURE__ */ j(l, {
|
|
1296
|
+
direction: "horizontal",
|
|
1297
|
+
gap: "md",
|
|
1298
|
+
align: "stretch",
|
|
1299
|
+
wrap: !1,
|
|
1300
|
+
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")),
|
|
1301
|
+
"data-event-id": a.id,
|
|
1302
|
+
children: [/* @__PURE__ */ A(qe, {
|
|
1303
|
+
icon: G,
|
|
1304
|
+
tone: "neutral",
|
|
1305
|
+
density: t.density,
|
|
1306
|
+
last: t.isLast
|
|
1307
|
+
}), /* @__PURE__ */ A("div", {
|
|
1308
|
+
className: "activity-log--comment min-w-0 flex-1",
|
|
1309
|
+
children: /* @__PURE__ */ A(te, {
|
|
1310
|
+
comment: a.comment,
|
|
1311
|
+
canModerate: d,
|
|
1312
|
+
onDelete: f,
|
|
1313
|
+
onPinToggle: h,
|
|
1314
|
+
onReact: p,
|
|
1315
|
+
onReply: m,
|
|
1316
|
+
strings: g,
|
|
1317
|
+
resources: c,
|
|
1318
|
+
getMediaUrl: ie,
|
|
1319
|
+
getMediaName: ae,
|
|
1320
|
+
getStatusLabel: I,
|
|
1321
|
+
formatRelativeTime: V
|
|
1322
|
+
})
|
|
1323
|
+
})]
|
|
1324
|
+
});
|
|
1325
|
+
},
|
|
1326
|
+
renderDetails: (e, t) => {
|
|
1327
|
+
let n = e.data;
|
|
1328
|
+
return !n || n.kind === "comment" ? null : y?.(n, {
|
|
1329
|
+
expanded: t.expanded,
|
|
1330
|
+
setExpanded: t.setExpanded,
|
|
1331
|
+
relativeTime: t.relativeTime,
|
|
1332
|
+
isLast: t.isLast,
|
|
1333
|
+
resources: c
|
|
1334
|
+
});
|
|
1335
|
+
}
|
|
1336
|
+
}, oe = /* @__PURE__ */ A(nt, {
|
|
1337
|
+
activities: W,
|
|
1211
1338
|
density: "rich",
|
|
1212
1339
|
itemSpacing: s,
|
|
1213
1340
|
groupByDate: !0,
|
|
1214
|
-
resources:
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1341
|
+
resources: at,
|
|
1342
|
+
loading: M,
|
|
1343
|
+
error: N,
|
|
1344
|
+
onRetry: P,
|
|
1345
|
+
strings: _,
|
|
1346
|
+
detailsCollapsible: x,
|
|
1347
|
+
defaultExpandedIds: S,
|
|
1348
|
+
expandedIds: w,
|
|
1349
|
+
onExpandedIdsChange: ne,
|
|
1350
|
+
formatRelativeTime: L,
|
|
1221
1351
|
getSourceLabel: (e) => z.sources[e] ?? e,
|
|
1222
|
-
actionsForActivity:
|
|
1223
|
-
let t = e.data;
|
|
1224
|
-
if (!t || t.kind === "comment") return [];
|
|
1225
|
-
let n = t;
|
|
1226
|
-
return (n.actions ?? []).map((e) => ({
|
|
1227
|
-
id: e.id,
|
|
1228
|
-
label: e.label,
|
|
1229
|
-
icon: e.icon,
|
|
1230
|
-
href: e.href,
|
|
1231
|
-
disabled: e.disabled,
|
|
1232
|
-
tone: e.tone,
|
|
1233
|
-
presentation: e.presentation,
|
|
1234
|
-
onClick: () => e.onSelect?.(n)
|
|
1235
|
-
}));
|
|
1236
|
-
},
|
|
1352
|
+
actionsForActivity: Y,
|
|
1237
1353
|
rowClassNames: K,
|
|
1238
1354
|
onAction: (e, t) => {
|
|
1239
1355
|
let n = t.data;
|
|
1240
|
-
n && n.kind !== "comment" &&
|
|
1356
|
+
n && n.kind !== "comment" && D?.(e, n);
|
|
1241
1357
|
},
|
|
1242
1358
|
onActivityExpandedChange: (e, t) => {
|
|
1243
1359
|
let n = e.data;
|
|
1244
|
-
n && n.kind !== "comment" &&
|
|
1360
|
+
n && n.kind !== "comment" && E?.(n, t);
|
|
1245
1361
|
},
|
|
1246
|
-
slots:
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
if (!r) return;
|
|
1252
|
-
let i = x?.[r.kind];
|
|
1253
|
-
if (i) return i(r, {
|
|
1254
|
-
resources: l,
|
|
1255
|
-
accessors: {
|
|
1256
|
-
getMediaUrl: F,
|
|
1257
|
-
getMediaName: I,
|
|
1258
|
-
getStatusLabel: L,
|
|
1259
|
-
formatRelativeTime: V
|
|
1260
|
-
},
|
|
1261
|
-
strings: g
|
|
1262
|
-
});
|
|
1263
|
-
if (r.kind !== "comment") return;
|
|
1264
|
-
let a = r;
|
|
1265
|
-
return /* @__PURE__ */ k(c, {
|
|
1266
|
-
direction: "horizontal",
|
|
1267
|
-
gap: "md",
|
|
1268
|
-
align: "stretch",
|
|
1269
|
-
wrap: !1,
|
|
1270
|
-
className: n("activity-log--comment-row relative py-space-xs", !t.isLast && (t.itemSpacing === "compact" ? "pb-space-sm" : t.itemSpacing === "relaxed" ? "pb-space-xl" : "pb-space-md")),
|
|
1271
|
-
"data-event-id": a.id,
|
|
1272
|
-
children: [/* @__PURE__ */ O(Fe, {
|
|
1273
|
-
icon: U,
|
|
1274
|
-
tone: "neutral",
|
|
1275
|
-
density: t.density,
|
|
1276
|
-
last: t.isLast
|
|
1277
|
-
}), /* @__PURE__ */ O("div", {
|
|
1278
|
-
className: "activity-log--comment min-w-0 flex-1",
|
|
1279
|
-
children: /* @__PURE__ */ O(v, {
|
|
1280
|
-
comment: a.comment,
|
|
1281
|
-
canModerate: d,
|
|
1282
|
-
onDelete: f,
|
|
1283
|
-
onPinToggle: h,
|
|
1284
|
-
onReact: p,
|
|
1285
|
-
onReply: m,
|
|
1286
|
-
strings: g,
|
|
1287
|
-
resources: l,
|
|
1288
|
-
getMediaUrl: F,
|
|
1289
|
-
getMediaName: I,
|
|
1290
|
-
getStatusLabel: L,
|
|
1291
|
-
formatRelativeTime: V
|
|
1292
|
-
})
|
|
1293
|
-
})]
|
|
1294
|
-
});
|
|
1295
|
-
},
|
|
1296
|
-
renderDetails: (e, t) => {
|
|
1297
|
-
let n = e.data;
|
|
1298
|
-
return !n || n.kind === "comment" ? null : C?.(n, {
|
|
1299
|
-
expanded: t.expanded,
|
|
1300
|
-
setExpanded: t.setExpanded,
|
|
1301
|
-
relativeTime: t.relativeTime,
|
|
1302
|
-
isLast: t.isLast,
|
|
1303
|
-
resources: l
|
|
1304
|
-
});
|
|
1305
|
-
}
|
|
1306
|
-
},
|
|
1307
|
-
className: n("activity-log--component", N?.list, ee && R)
|
|
1308
|
-
});
|
|
1309
|
-
if (ee) return Y;
|
|
1310
|
-
let X = te ?? z.title, re = typeof X == "string" ? X : void 0;
|
|
1311
|
-
return /* @__PURE__ */ k(c, {
|
|
1312
|
-
render: /* @__PURE__ */ O("section", {}),
|
|
1362
|
+
slots: X,
|
|
1363
|
+
className: n("activity-log--component", O?.list)
|
|
1364
|
+
}), Z = re ?? z.title, se = typeof Z == "string" ? Z : void 0;
|
|
1365
|
+
return /* @__PURE__ */ j(l, {
|
|
1366
|
+
render: /* @__PURE__ */ A("section", {}),
|
|
1313
1367
|
gap: "lg",
|
|
1314
1368
|
"data-component": "activity-log",
|
|
1315
1369
|
"data-slot": "activity-log",
|
|
1316
1370
|
className: n("activity-log--component", R),
|
|
1317
|
-
"aria-label":
|
|
1318
|
-
children: [!!
|
|
1371
|
+
"aria-label": se,
|
|
1372
|
+
children: [!!Z && /* @__PURE__ */ A(r, {
|
|
1319
1373
|
type: "inherit",
|
|
1320
1374
|
weight: "semibold",
|
|
1321
|
-
children:
|
|
1322
|
-
}),
|
|
1375
|
+
children: Z
|
|
1376
|
+
}), oe]
|
|
1323
1377
|
});
|
|
1324
1378
|
}
|
|
1325
|
-
|
|
1379
|
+
ft.displayName = "ActivityLog";
|
|
1326
1380
|
//#endregion
|
|
1327
1381
|
//#region src/components/features/activities/activity-event-adapter.ts
|
|
1328
|
-
function
|
|
1382
|
+
function pt(e) {
|
|
1329
1383
|
if (typeof e == "object" && e && "kind" in e) {
|
|
1330
1384
|
let t = e.kind;
|
|
1331
1385
|
if (typeof t == "string") return t;
|
|
1332
1386
|
}
|
|
1333
1387
|
return "event";
|
|
1334
1388
|
}
|
|
1335
|
-
function
|
|
1336
|
-
let n = t.kind?.(e) ??
|
|
1389
|
+
function mt(e, t) {
|
|
1390
|
+
let n = t.kind?.(e) ?? pt(e), r = t.id(e), i = t.timestamp(e), a = t.comment?.(e);
|
|
1337
1391
|
if (n === "comment" && a) return {
|
|
1338
1392
|
id: r,
|
|
1339
1393
|
kind: "comment",
|
|
@@ -1363,10 +1417,10 @@ function et(e, t) {
|
|
|
1363
1417
|
data: t.data?.(e) ?? e
|
|
1364
1418
|
};
|
|
1365
1419
|
}
|
|
1366
|
-
function
|
|
1367
|
-
return (t) =>
|
|
1420
|
+
function ht(e) {
|
|
1421
|
+
return (t) => mt(t, e);
|
|
1368
1422
|
}
|
|
1369
1423
|
//#endregion
|
|
1370
|
-
export {
|
|
1424
|
+
export { Me as ActivityActionsMenu, Pe as ActivityChanges, Fe as ActivityDateLabel, Ie as ActivityEmptyState, nt as ActivityFeed, Ke as ActivityHeadline, ft as ActivityLog, qe as ActivityMarker, He as ActivityResourceTag, Qe as ActivityRow, ht as createActivityEventAdapter, _e as defaultActivitiesStrings, he as defaultActivityEventConfig, me as defaultEventConfig, ve as interpolateActivityString, ge as resolveEventConfig, mt as toActivityLogEntry, Ee as useActivityFeed, Ae as useActivityResources };
|
|
1371
1425
|
|
|
1372
1426
|
//# sourceMappingURL=activities.js.map
|