themelia-react-ui 1.0.2 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +632 -1
- package/README.md +31 -13
- package/dist/accordion-B6a3vVgA.js +207 -0
- package/dist/accordion-B6a3vVgA.js.map +1 -0
- package/dist/action-menu-TzCoSlwL.js +280 -0
- package/dist/action-menu-TzCoSlwL.js.map +1 -0
- package/dist/{affordance-geometry.generated-CL84ZN9A.js → affordance-geometry.generated-B5iu-Mkr.js} +9 -3
- package/dist/affordance-geometry.generated-B5iu-Mkr.js.map +1 -0
- package/dist/{ai-artifact-DLVdK0Py.js → ai-artifact-BMJdv-6q.js} +389 -391
- package/dist/ai-artifact-BMJdv-6q.js.map +1 -0
- package/dist/{app-shell-C_fKpljx.js → app-shell-ZK5RWdo6.js} +4 -4
- package/dist/{app-shell-C_fKpljx.js.map → app-shell-ZK5RWdo6.js.map} +1 -1
- package/dist/attachment-BtfhGm8i.js +245 -0
- package/dist/attachment-BtfhGm8i.js.map +1 -0
- package/dist/{auth-CAQcasMV.js → auth-CYxKfo69.js} +239 -237
- package/dist/auth-CYxKfo69.js.map +1 -0
- package/dist/{avatar-Bu2HhitA.js → avatar-BBnEJIx8.js} +71 -68
- package/dist/avatar-BBnEJIx8.js.map +1 -0
- package/dist/badge-MrKVNzW9.js +93 -0
- package/dist/badge-MrKVNzW9.js.map +1 -0
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +3 -0
- package/dist/base/buttons.js +2 -3
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +19 -19
- package/dist/base/carousel.js.map +1 -1
- package/dist/base/cascader.js +234 -224
- package/dist/base/cascader.js.map +1 -1
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +3 -3
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +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 +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +81 -76
- package/dist/base/inline-edit.js.map +1 -1
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +3 -0
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +7 -4
- package/dist/base/qr-code.js.map +1 -1
- package/dist/base/repeaters.js +175 -174
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +1 -1
- package/dist/base/signature-pad.js +148 -138
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +4 -4
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +2 -2
- package/dist/batch-action-bar-BZGDG-Si.js +104 -0
- package/dist/batch-action-bar-BZGDG-Si.js.map +1 -0
- package/dist/blocks/admin.js +264 -253
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +293 -323
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +596 -587
- 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 +2246 -1693
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +3 -2
- package/dist/blocks/onboarding.js +50 -49
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +82 -91
- package/dist/blocks/planning.js.map +1 -1
- package/dist/blocks/timelines.js +1 -1
- package/dist/breadcrumbs-D5t7I023.js +129 -0
- package/dist/breadcrumbs-D5t7I023.js.map +1 -0
- package/dist/{button-BZyfTvwm.js → button-QYwiyhD2.js} +15 -14
- package/dist/button-QYwiyhD2.js.map +1 -0
- package/dist/buttons-SbIcm1HJ.js +661 -0
- package/dist/buttons-SbIcm1HJ.js.map +1 -0
- package/dist/{cards-qGSErLw_.js → cards-CiiHpKYd.js} +8 -8
- package/dist/cards-CiiHpKYd.js.map +1 -0
- package/dist/{chart-Bsc5BICK.js → chart-QfrARkXl.js} +17 -15
- package/dist/chart-QfrARkXl.js.map +1 -0
- package/dist/checkbox-DhB6K0bK.js +36 -0
- package/dist/checkbox-DhB6K0bK.js.map +1 -0
- package/dist/choice-inputs-t6w3ATNz.js +766 -0
- package/dist/choice-inputs-t6w3ATNz.js.map +1 -0
- package/dist/code-block-Dgbu-CU3.js +185 -0
- package/dist/code-block-Dgbu-CU3.js.map +1 -0
- package/dist/{collapsible-ClvC7Bj3.js → collapsible-D8AEGU1-.js} +4 -4
- package/dist/{collapsible-ClvC7Bj3.js.map → collapsible-D8AEGU1-.js.map} +1 -1
- package/dist/{collection-content-D6S8cv_n.js → collection-content-uK16Grv0.js} +3 -3
- package/dist/{collection-content-D6S8cv_n.js.map → collection-content-uK16Grv0.js.map} +1 -1
- package/dist/{combobox-BFnbJJp3.js → combobox-2Ic8N9bL.js} +103 -98
- package/dist/combobox-2Ic8N9bL.js.map +1 -0
- package/dist/combobox-DLl0bfiq.js +867 -0
- package/dist/combobox-DLl0bfiq.js.map +1 -0
- package/dist/{command-BnmSchli.js → command-kNR20o7x.js} +34 -30
- package/dist/command-kNR20o7x.js.map +1 -0
- package/dist/{comments-u5L0OGip.js → comments-BpDuCUUu.js} +304 -301
- package/dist/comments-BpDuCUUu.js.map +1 -0
- package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
- package/dist/components/base/action-menu/action-menu.d.ts +27 -5
- package/dist/components/base/action-menu/action-menu.recipes.d.ts +21 -0
- package/dist/components/base/action-menu/index.d.ts +1 -0
- package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
- package/dist/components/base/badge/badge.d.ts +1 -1
- package/dist/components/base/badge/badge.recipes.d.ts +6 -6
- package/dist/components/base/batch-action-bar/batch-action-bar.d.ts +50 -0
- package/dist/components/base/batch-action-bar/batch-action-bar.strings.d.ts +20 -0
- package/dist/components/base/batch-action-bar/index.d.ts +8 -0
- package/dist/components/base/buttons/base-button.d.ts +7 -0
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.recipes.d.ts +2 -2
- package/dist/components/base/buttons/button.variants.d.ts +1 -0
- package/dist/components/base/buttons/loader-button.d.ts +3 -1
- package/dist/components/base/buttons/text-button.d.ts +2 -2
- package/dist/components/base/carousel/carousel.d.ts +3 -1
- package/dist/components/base/chart/chart.d.ts +7 -7
- package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
- package/dist/components/base/choice-inputs/choice-types.d.ts +24 -3
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
- package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
- package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
- package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
- package/dist/components/base/date-pickers/datepicker.types.d.ts +13 -3
- package/dist/components/base/display/alert-dialog.d.ts +10 -3
- package/dist/components/base/display/content-block.d.ts +4 -2
- package/dist/components/base/display/date-block.d.ts +1 -1
- package/dist/components/base/display/dialog.d.ts +8 -5
- package/dist/components/base/display/icon-badge/icon-badge.d.ts +1 -1
- package/dist/components/base/display/surface-title.d.ts +6 -1
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -4
- package/dist/components/base/forms/form-sizing.d.ts +43 -8
- package/dist/components/base/forms/workflow.d.ts +2 -0
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
- package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
- package/dist/components/base/metadata-list/index.d.ts +12 -0
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.d.ts +28 -25
- package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-value.d.ts +2 -2
- package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
- package/dist/components/base/navigation/index.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +4 -1
- package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
- package/dist/components/base/navigation/page-header/index.d.ts +1 -0
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +73 -0
- package/dist/components/base/navigation/page-header/page-header.d.ts +30 -4
- package/dist/components/base/qr-code/qr-code.d.ts +2 -0
- package/dist/components/base/sheet/index.d.ts +29 -1
- package/dist/components/base/sheet/sheet.d.ts +10 -5
- package/dist/components/base/signature-pad/signature-pad.types.d.ts +5 -1
- package/dist/components/base/signature-pad/signature-pad.utils.d.ts +11 -3
- package/dist/components/base/spinner/spinner.d.ts +3 -2
- package/dist/components/base/structure/structure.types.d.ts +1 -1
- package/dist/components/base/text-inputs/field-clear-button.d.ts +6 -0
- package/dist/components/base/text-inputs/input-group.d.ts +2 -2
- package/dist/components/base/upload/upload.recipes.d.ts +33 -0
- package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
- package/dist/components/base/value-inputs/index.d.ts +5 -5
- package/dist/components/base/value-inputs/tags-input.d.ts +38 -12
- package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
- package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
- package/dist/components/blocks/analytics/index.d.ts +1 -1
- package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
- package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
- package/dist/components/blocks/commerce/address-card/types.d.ts +4 -1
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
- package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +3 -1
- package/dist/components/blocks/commerce/cart-summary/index.d.ts +2 -2
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +6 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/index.d.ts +2 -2
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +16 -4
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +5 -0
- package/dist/components/blocks/commerce/fulfillment-group/index.d.ts +2 -0
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +43 -0
- package/dist/components/blocks/commerce/index.d.ts +13 -5
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +4 -2
- package/dist/components/blocks/commerce/invoice-mini/invoice-mini.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +2 -1
- package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +5 -0
- package/dist/components/blocks/commerce/order-customer/types.d.ts +48 -0
- package/dist/components/blocks/commerce/order-header/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-header/order-header.d.ts +5 -0
- package/dist/components/blocks/commerce/order-header/types.d.ts +37 -0
- package/dist/components/blocks/commerce/order-line-item/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-line-item/order-line-item.d.ts +5 -0
- package/dist/components/blocks/commerce/order-line-item/types.d.ts +46 -0
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/order-summary/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-summary/order-summary.d.ts +5 -0
- package/dist/components/blocks/commerce/order-summary/types.d.ts +42 -0
- package/dist/components/blocks/commerce/order-transactions/index.d.ts +2 -0
- package/dist/components/blocks/commerce/order-transactions/order-transactions.d.ts +5 -0
- package/dist/components/blocks/commerce/order-transactions/types.d.ts +46 -0
- package/dist/components/blocks/commerce/payment-method/index.d.ts +2 -2
- package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +9 -1
- package/dist/components/blocks/commerce/payment-method/types.d.ts +14 -1
- package/dist/components/blocks/commerce/refund-status/index.d.ts +2 -2
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +3 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +6 -3
- package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
- package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shared/address-lines.d.ts +21 -0
- package/dist/components/blocks/commerce/shared/line-thumbnail.d.ts +9 -0
- package/dist/components/blocks/commerce/shared/order-status.d.ts +51 -0
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +27 -6
- package/dist/components/blocks/commerce/summary-panel/amount-row.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/index.d.ts +3 -0
- package/dist/components/blocks/commerce/summary-panel/summary-panel.d.ts +2 -0
- package/dist/components/blocks/commerce/summary-panel/types.d.ts +26 -0
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +2 -1
- package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
- package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
- package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
- package/dist/components/blocks/data-display/metadata/index.d.ts +30 -4
- package/dist/components/features/activities/partials/activity-row.d.ts +6 -2
- package/dist/components/features/activities/partials/tone-tokens.d.ts +0 -6
- package/dist/components/features/global-search/partials/global-search-group-heading.d.ts +15 -0
- package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
- package/dist/components/features/global-search/partials/tone-palettes.d.ts +0 -5
- package/dist/components/features/kanban/kanban.d.ts +1 -1
- package/dist/components/features/kanban/kanban.strings.d.ts +1 -1
- package/dist/components/features/kanban/kanban.types.d.ts +2 -2
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/index.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +4 -0
- package/dist/components/features/media-library/media-library.types.d.ts +74 -1
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +3 -3
- package/dist/components/features/mentions/partials/mention-kind-toggles.d.ts +16 -0
- package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
- package/dist/components/features/overlays/dialog.d.ts +1 -1
- package/dist/components/features/overlays/drawer.d.ts +1 -1
- package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
- package/dist/components/features/overlays/index.d.ts +1 -1
- package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
- package/dist/components/features/overlays/overlays.types.d.ts +62 -19
- package/dist/components/features/products/components/product-contract-overview.d.ts +5 -0
- package/dist/components/features/products/components/product-details-card.d.ts +5 -0
- package/dist/components/features/products/components/product-operations-card.d.ts +5 -0
- package/dist/components/features/products/components/product-option-action-menu.d.ts +5 -0
- package/dist/components/features/products/components/product-options-summary.d.ts +5 -0
- package/dist/components/features/products/components/product-policies-card.d.ts +5 -0
- package/dist/components/features/products/components/product-quote-preview-card.d.ts +5 -0
- package/dist/components/features/products/components/product-readiness-card.d.ts +5 -0
- package/dist/components/features/products/components/product-structure-card.d.ts +5 -0
- package/dist/components/features/products/components/product-variant-action-menu.d.ts +23 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/partials/index.d.ts +1 -1
- package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
- package/dist/components/features/products/partials/product-tone.d.ts +11 -1
- package/dist/components/features/products/products.types.d.ts +11 -3
- package/dist/components/features/resource/index.d.ts +1 -1
- package/dist/components/features/resource/resource.d.ts +1 -1
- package/dist/components/features/resource/resource.types.d.ts +34 -6
- package/dist/components/features/rich-text-editor/index.d.ts +2 -1
- package/dist/components/features/rich-text-editor/partials/image-nodes.d.ts +13 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +66 -0
- package/dist/components/features/rich-text-editor/partials/inline-reference-node.d.ts +19 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.strings.d.ts +14 -0
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +45 -0
- package/dist/components/features/rich-text-editor/use-rich-text-images.d.ts +18 -0
- package/dist/components/features/sync/index.d.ts +26 -3
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
- package/dist/components/features/table/table.types.d.ts +32 -7
- package/dist/components/layout/page/index.d.ts +1 -1
- package/dist/components/layout/page/page.types.d.ts +51 -4
- package/dist/components/layout/page/partials/page-actions.d.ts +1 -0
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +16 -2
- package/dist/components/layout/workspace/workspace.types.d.ts +21 -4
- package/dist/components/primitives/date.d.ts +16 -3
- package/dist/components/primitives/dimensions.d.ts +6 -0
- package/dist/components/primitives/duration.d.ts +6 -0
- package/dist/components/primitives/file-size.d.ts +6 -0
- package/dist/components/primitives/index.d.ts +1 -1
- package/dist/components/primitives/initials.d.ts +11 -2
- package/dist/components/primitives/link.d.ts +7 -0
- package/dist/components/primitives/money.d.ts +29 -7
- package/dist/components/primitives/number.d.ts +17 -0
- package/dist/components/primitives/value-typography.d.ts +54 -0
- package/dist/components/primitives/value.d.ts +31 -6
- package/dist/components/typography/heading.d.ts +9 -1
- package/dist/components/typography/label.d.ts +3 -0
- package/dist/components/typography/rich-text/index.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +19 -0
- package/dist/components/typography/rich-text/rich-text.d.ts +16 -0
- package/dist/components/typography/running-text.d.ts +12 -0
- package/dist/components/typography/text-link.d.ts +24 -1
- package/dist/components/typography/text.d.ts +12 -0
- package/dist/components/typography/text.styles.d.ts +35 -13
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/checkbox.d.ts +6 -0
- package/dist/components/ui/overlay.recipes.d.ts +6 -2
- package/dist/components/ui/select.d.ts +3 -1
- package/dist/components/ui/switch.d.ts +5 -0
- package/dist/{containers-DqB-bSYE.js → containers-DmWiJa2I.js} +36 -35
- package/dist/containers-DmWiJa2I.js.map +1 -0
- package/dist/{copyable-BTSByfmq.js → copyable-B3Gwgdqc.js} +6 -6
- package/dist/{copyable-BTSByfmq.js.map → copyable-B3Gwgdqc.js.map} +1 -1
- package/dist/data-display-DafIvCl5.js +960 -0
- package/dist/data-display-DafIvCl5.js.map +1 -0
- package/dist/date-BgK3bTdo.js +144 -0
- package/dist/date-BgK3bTdo.js.map +1 -0
- package/dist/date-picker-CF-DtUpF.js +1529 -0
- package/dist/date-picker-CF-DtUpF.js.map +1 -0
- package/dist/date-pickers-BmzxJl5l.js +174 -0
- package/dist/date-pickers-BmzxJl5l.js.map +1 -0
- package/dist/{display-CS6Hbk18.js → display-DsQTVzMz.js} +88 -87
- package/dist/display-DsQTVzMz.js.map +1 -0
- package/dist/{dropdown-menu-D-boNgGO.js → dropdown-menu-E2qmdC7o.js} +23 -16
- package/dist/dropdown-menu-E2qmdC7o.js.map +1 -0
- package/dist/features/activities.js +437 -521
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +174 -172
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/async-preview.js +8 -8
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +139 -138
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer/engine.js +1 -1
- package/dist/features/email-composer.js +353 -352
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +262 -269
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +307 -310
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +95 -97
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +56 -57
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +914 -824
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1272 -1311
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +204 -194
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +103 -95
- package/dist/features/resource-assignment.js.map +1 -1
- package/dist/features/resource.js +77 -69
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +30 -11
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +193 -189
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +7 -7
- package/dist/features/sync.js.map +1 -1
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +455 -455
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-qNuMBtRH.js +233 -0
- package/dist/feedback-qNuMBtRH.js.map +1 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js +48 -0
- package/dist/field-affordance-recipes-qQeIf4lG.js.map +1 -0
- package/dist/field-state-recipes-BVA2CWHo.js +12 -0
- package/dist/field-state-recipes-BVA2CWHo.js.map +1 -0
- package/dist/{filters-D6FF8L6s.js → filters-BkHH53uv.js} +414 -412
- package/dist/filters-BkHH53uv.js.map +1 -0
- package/dist/focus-recipes-B653VaLq.js +12 -0
- package/dist/focus-recipes-B653VaLq.js.map +1 -0
- package/dist/{form-field-CZwrkP7m.js → form-field-DUt4UxSV.js} +7 -7
- package/dist/{form-field-CZwrkP7m.js.map → form-field-DUt4UxSV.js.map} +1 -1
- package/dist/form-sizing-By94KzXE.js +130 -0
- package/dist/form-sizing-By94KzXE.js.map +1 -0
- package/dist/{forms-B5NCbkSC.js → forms-Bzha-Y3B.js} +25 -25
- package/dist/forms-Bzha-Y3B.js.map +1 -0
- package/dist/forms-numeric-C0bvjRPZ.js +906 -0
- package/dist/forms-numeric-C0bvjRPZ.js.map +1 -0
- package/dist/{header-kxruN3RM.js → header-BOefOKd1.js} +38 -41
- package/dist/header-BOefOKd1.js.map +1 -0
- package/dist/{hooks-BrlnCwQd.js → hooks-9k_TtmKh.js} +2 -2
- package/dist/{hooks-BrlnCwQd.js.map → hooks-9k_TtmKh.js.map} +1 -1
- package/dist/{http-CdEIHyQf.js → http-D_6rOnzU.js} +2 -2
- package/dist/{http-CdEIHyQf.js.map → http-D_6rOnzU.js.map} +1 -1
- package/dist/icon-badge-CAuKupo9.js +55 -0
- package/dist/icon-badge-CAuKupo9.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/input-DWhBBBww.js +262 -0
- package/dist/input-DWhBBBww.js.map +1 -0
- package/dist/{input-vxcaNCYC.js → input-Ddi_LSYv.js} +3 -3
- package/dist/{input-vxcaNCYC.js.map → input-Ddi_LSYv.js.map} +1 -1
- package/dist/interaction-recipes-CHr0dJUs.js +24 -0
- package/dist/interaction-recipes-CHr0dJUs.js.map +1 -0
- package/dist/item-DEmDiTlD.js +265 -0
- package/dist/item-DEmDiTlD.js.map +1 -0
- package/dist/layer-recipes-CCpklYME.js +13 -0
- package/dist/layer-recipes-CCpklYME.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +1 -1
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +2 -2
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +10 -10
- package/dist/lib/affordance-geometry.generated.d.ts +7 -1
- package/dist/lib/field-affordance-recipes.d.ts +41 -1
- package/dist/lib/field-state-recipes.d.ts +9 -6
- package/dist/lib/focus-recipes.d.ts +24 -0
- package/dist/lib/format.d.ts +9 -0
- package/dist/lib/interaction-recipes.d.ts +35 -0
- package/dist/lib/layer-recipes.d.ts +19 -0
- package/dist/lib/money-format.d.ts +30 -0
- package/dist/lib/motion-recipes.d.ts +1 -0
- package/dist/lib/overlay-anatomy-recipes.d.ts +2 -1
- package/dist/lib/safe-image-src.d.ts +10 -0
- package/dist/lib/sanitize-html.d.ts +15 -3
- package/dist/lib/surface-recipes.d.ts +48 -6
- package/dist/lib/token-merge.generated.d.ts +17 -14
- package/dist/lib/tone-recipes.d.ts +79 -0
- package/dist/lib/track-recipes.d.ts +1 -1
- package/dist/lib/ui-provider/hooks.d.ts +2 -1
- package/dist/lib/ui-provider/index.d.ts +2 -2
- package/dist/lib/ui-provider/provider.d.ts +7 -2
- package/dist/lib/ui-provider/store.d.ts +6 -2
- package/dist/lib/ui-provider/types.d.ts +14 -2
- package/dist/lib/utils.js +1 -1
- package/dist/media-gallery-DcTtAaeC.js +203 -0
- package/dist/media-gallery-DcTtAaeC.js.map +1 -0
- package/dist/mentions-D-uyCh01.js +568 -0
- package/dist/mentions-D-uyCh01.js.map +1 -0
- package/dist/{message-SZUNB1eX.js → message-CdHgIWKf.js} +5 -5
- package/dist/{message-SZUNB1eX.js.map → message-CdHgIWKf.js.map} +1 -1
- package/dist/metadata-list-X5rYAKSB.js +394 -0
- package/dist/metadata-list-X5rYAKSB.js.map +1 -0
- package/dist/{motion-recipes-B6jKXEcN.js → motion-recipes-ChBg4HBq.js} +3 -2
- package/dist/{motion-recipes-B6jKXEcN.js.map → motion-recipes-ChBg4HBq.js.map} +1 -1
- package/dist/navigation-D3KwXmaq.js +145 -0
- package/dist/navigation-D3KwXmaq.js.map +1 -0
- package/dist/navigation-HJf5zxlH.js +268 -0
- package/dist/navigation-HJf5zxlH.js.map +1 -0
- package/dist/{navigation-row-recipes-DQEXQcqY.js → navigation-row-recipes-BVowojQw.js} +2 -2
- package/dist/{navigation-row-recipes-DQEXQcqY.js.map → navigation-row-recipes-BVowojQw.js.map} +1 -1
- package/dist/number-DMhe-Vsk.js +352 -0
- package/dist/number-DMhe-Vsk.js.map +1 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js +280 -0
- package/dist/overflow-tab-bar-sQHXLlwQ.js.map +1 -0
- package/dist/overlay.recipes-8GHqmlb4.js +6 -0
- package/dist/overlay.recipes-8GHqmlb4.js.map +1 -0
- package/dist/overlays-I0axtYA6.js +999 -0
- package/dist/overlays-I0axtYA6.js.map +1 -0
- package/dist/{page-hGmT4nWK.js → page-B5dTH9gE.js} +79 -68
- package/dist/page-B5dTH9gE.js.map +1 -0
- package/dist/page-header-commands-DjzFEq3E.js +126 -0
- package/dist/page-header-commands-DjzFEq3E.js.map +1 -0
- package/dist/{pagination-NLGqRirf.js → pagination-3bPA_a6K.js} +19 -19
- package/dist/{pagination-NLGqRirf.js.map → pagination-3bPA_a6K.js.map} +1 -1
- package/dist/{popover-CghIYdQf.js → popover-Di55PyAI.js} +8 -8
- package/dist/popover-Di55PyAI.js.map +1 -0
- package/dist/{popover-menu-B4PoWhRl.js → popover-menu-B71Tn2Qz.js} +6 -6
- package/dist/{popover-menu-B4PoWhRl.js.map → popover-menu-B71Tn2Qz.js.map} +1 -1
- package/dist/{popover.recipes-QlD4JenO.js → popover.recipes-Bdyhj2db.js} +2 -2
- package/dist/{popover.recipes-QlD4JenO.js.map → popover.recipes-Bdyhj2db.js.map} +1 -1
- package/dist/primitives-B-CkiEMU.js +379 -0
- package/dist/primitives-B-CkiEMU.js.map +1 -0
- package/dist/primitives.js +5 -5
- package/dist/{progress-BroqrAyV.js → progress-rnS8-uAW.js} +11 -11
- package/dist/progress-rnS8-uAW.js.map +1 -0
- package/dist/{receipt-BuJynLgf.js → receipt-D0oswZ0p.js} +6 -6
- package/dist/{receipt-BuJynLgf.js.map → receipt-D0oswZ0p.js.map} +1 -1
- package/dist/rich-text-DvGulsNJ.js +78 -0
- package/dist/rich-text-DvGulsNJ.js.map +1 -0
- package/dist/rich-text-editor-sMU_Scqm.js +1204 -0
- package/dist/rich-text-editor-sMU_Scqm.js.map +1 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js +88 -0
- package/dist/rich-text-editor.recipes-CadiF_Uu.js.map +1 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js +38 -0
- package/dist/rich-text-editor.strings-CB59ekH2.js.map +1 -0
- package/dist/safe-image-src-C6kQSMBZ.js +17 -0
- package/dist/safe-image-src-C6kQSMBZ.js.map +1 -0
- package/dist/sanitize-html-DsQmI48u.js +92 -0
- package/dist/sanitize-html-DsQmI48u.js.map +1 -0
- package/dist/scroll-area-Bt_vXY2b.js +48 -0
- package/dist/scroll-area-Bt_vXY2b.js.map +1 -0
- package/dist/{separator-BNIgG3au.js → separator-C8DlRGwF.js} +4 -4
- package/dist/separator-C8DlRGwF.js.map +1 -0
- package/dist/{separator-BhtFyo4x.js → separator-CYHnjsAb.js} +2 -2
- package/dist/{separator-BhtFyo4x.js.map → separator-CYHnjsAb.js.map} +1 -1
- package/dist/services/actions/action-adapters.d.ts +22 -0
- package/dist/services/actions/index.d.ts +1 -1
- package/dist/services/actions.js +23 -6
- package/dist/services/actions.js.map +1 -1
- package/dist/settings-CQW3b-Cu.js +170 -0
- package/dist/settings-CQW3b-Cu.js.map +1 -0
- package/dist/sheet-4SEvVYzA.js +210 -0
- package/dist/sheet-4SEvVYzA.js.map +1 -0
- package/dist/{sidebar-CyR4XKwR.js → sidebar-C7WWR29L.js} +181 -180
- package/dist/sidebar-C7WWR29L.js.map +1 -0
- package/dist/sidebar-d7Dg80ln.js +511 -0
- package/dist/sidebar-d7Dg80ln.js.map +1 -0
- package/dist/{skeleton-3F0uhYn3.js → skeleton-Cz890JZF.js} +10 -10
- package/dist/skeleton-Cz890JZF.js.map +1 -0
- package/dist/smart-card-lFKxn5Hu.js +595 -0
- package/dist/smart-card-lFKxn5Hu.js.map +1 -0
- package/dist/{spinner-Cpf7oRkF.js → spinner-fa3h1Aif.js} +10 -8
- package/dist/spinner-fa3h1Aif.js.map +1 -0
- package/dist/{structure-CRdqVawd.js → structure-DC2dygdA.js} +3 -3
- package/dist/{structure-CRdqVawd.js.map → structure-DC2dygdA.js.map} +1 -1
- package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
- package/dist/structure.recipes-EPz60cU8.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/surface-recipes-BKRVW8Os.js +43 -0
- package/dist/surface-recipes-BKRVW8Os.js.map +1 -0
- package/dist/table-CIKyLUsy.js +163 -0
- package/dist/table-CIKyLUsy.js.map +1 -0
- package/dist/{table-CcRDZiLP.js → table-CrcLN9Io.js} +544 -530
- package/dist/table-CrcLN9Io.js.map +1 -0
- package/dist/tabs-DwBJfjxX.js +190 -0
- package/dist/tabs-DwBJfjxX.js.map +1 -0
- package/dist/{text-inputs-DsR56TR-.js → text-inputs-aaK9wcDT.js} +151 -155
- package/dist/text-inputs-aaK9wcDT.js.map +1 -0
- package/dist/{text.styles-Q4sGAIgA.js → text.styles-g4He6UIW.js} +17 -14
- package/dist/text.styles-g4He6UIW.js.map +1 -0
- package/dist/theme.css +16 -12
- package/dist/themes/green.css +24 -0
- package/dist/{timelines-D1pkt3se.js → timelines-C_SBwHNP.js} +154 -164
- package/dist/timelines-C_SBwHNP.js.map +1 -0
- package/dist/tone-recipes-CPoExcTE.js +70 -0
- package/dist/tone-recipes-CPoExcTE.js.map +1 -0
- package/dist/tooltip-CsfgrfS7.js +111 -0
- package/dist/tooltip-CsfgrfS7.js.map +1 -0
- package/dist/track-recipes-CDcKmndW.js +10 -0
- package/dist/track-recipes-CDcKmndW.js.map +1 -0
- package/dist/{tree-BtmYyMZV.js → tree-BiKhg8AY.js} +72 -70
- package/dist/tree-BiKhg8AY.js.map +1 -0
- package/dist/typography/rich-text.js +1 -1
- package/dist/typography-DTRkE9zL.js +117 -0
- package/dist/typography-DTRkE9zL.js.map +1 -0
- package/dist/typography.js +2 -2
- package/dist/{ui-provider-DRPn3qNl.js → ui-provider-1D_NSYzO.js} +30 -23
- package/dist/ui-provider-1D_NSYzO.js.map +1 -0
- package/dist/ui-provider.js +3 -3
- package/dist/{upload-CDbYw1WN.js → upload-BO8-CLN6.js} +294 -293
- package/dist/upload-BO8-CLN6.js.map +1 -0
- package/dist/{upload-queue-CNd_hH_a.js → upload-queue-EOC8g1gf.js} +133 -138
- package/dist/upload-queue-EOC8g1gf.js.map +1 -0
- package/dist/upload.recipes-BbxTqrCT.js +61 -0
- package/dist/upload.recipes-BbxTqrCT.js.map +1 -0
- package/dist/{usage-card-VyJLUwRr.js → usage-card-obRaBskq.js} +42 -43
- package/dist/{usage-card-VyJLUwRr.js.map → usage-card-obRaBskq.js.map} +1 -1
- package/dist/{utils-BvH9PSmq.js → utils-l5LpDw2z.js} +264 -62
- package/dist/utils-l5LpDw2z.js.map +1 -0
- package/dist/value-inputs-TAYMX111.js +947 -0
- package/dist/value-inputs-TAYMX111.js.map +1 -0
- package/dist/value-typography-b8wpz1eX.js +116 -0
- package/dist/value-typography-b8wpz1eX.js.map +1 -0
- package/dist/workspace-DH0v0KcB.js +407 -0
- package/dist/workspace-DH0v0KcB.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +62 -50
- package/docs/consumer-skill/examples/app-layout.tsx +3 -5
- package/docs/consumer-skill/examples/composition.tsx +3 -3
- package/docs/consumer-skill/examples/detail.tsx +59 -13
- package/docs/consumer-skill/examples/edit.tsx +2 -2
- package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
- package/docs/consumer-skill/examples/manifest.json +28 -6
- package/docs/consumer-skill/examples/receipt.tsx +2 -2
- package/docs/consumer-skill/examples/scoped-directory.tsx +3 -3
- package/docs/consumer-skill/examples/website.tsx +1 -1
- package/docs/consumer-skill/references/agents-md.md +33 -0
- package/docs/consumer-skill/references/analytics.md +1 -1
- package/docs/consumer-skill/references/composition.md +139 -24
- package/docs/consumer-skill/references/design-contract.md +12 -3
- package/docs/consumer-skill/references/discovery.md +4 -0
- package/docs/consumer-skill/references/installation.md +33 -1
- package/docs/consumer-skill/references/integration.md +32 -1
- package/docs/consumer-skill/references/public-api.json +1051 -610
- package/docs/consumer-skill/references/review.md +44 -8
- package/docs/consumer-skill/references/theming.md +14 -4
- package/docs/consumer-skill/references/tokens.json +5 -2
- package/docs/consumer-skill/references/workflows.md +30 -9
- package/docs/consumer-skill/scripts/composition-policy.mjs +127 -6
- package/docs/consumer-skill/scripts/discovery.mjs +11 -3
- package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
- package/docs/consumer-skill/scripts/surface-policy.mjs +139 -5
- package/package.json +13 -3
- package/dist/accordion-BRTcsp8J.js +0 -205
- package/dist/accordion-BRTcsp8J.js.map +0 -1
- package/dist/action-menu-Drxw_vJk.js +0 -265
- package/dist/action-menu-Drxw_vJk.js.map +0 -1
- package/dist/affordance-geometry.generated-CL84ZN9A.js.map +0 -1
- package/dist/ai-artifact-DLVdK0Py.js.map +0 -1
- package/dist/attachment-DbjUWsP0.js +0 -244
- package/dist/attachment-DbjUWsP0.js.map +0 -1
- package/dist/auth-CAQcasMV.js.map +0 -1
- package/dist/avatar-Bu2HhitA.js.map +0 -1
- package/dist/badge-CzId1Wlm.js +0 -92
- package/dist/badge-CzId1Wlm.js.map +0 -1
- package/dist/breadcrumbs-BuYz5SDU.js +0 -128
- package/dist/breadcrumbs-BuYz5SDU.js.map +0 -1
- package/dist/button-BZDasD04.js +0 -651
- package/dist/button-BZDasD04.js.map +0 -1
- package/dist/button-BZyfTvwm.js.map +0 -1
- package/dist/buttons-D_6KJvEE.js +0 -99
- package/dist/buttons-D_6KJvEE.js.map +0 -1
- package/dist/cards-qGSErLw_.js.map +0 -1
- package/dist/chart-Bsc5BICK.js.map +0 -1
- package/dist/checkbox-BQNDjUCh.js +0 -34
- package/dist/checkbox-BQNDjUCh.js.map +0 -1
- package/dist/choice-inputs-Mk3iWbhr.js +0 -725
- package/dist/choice-inputs-Mk3iWbhr.js.map +0 -1
- package/dist/code-block-DzHKRybS.js +0 -183
- package/dist/code-block-DzHKRybS.js.map +0 -1
- package/dist/combobox-BFnbJJp3.js.map +0 -1
- package/dist/combobox-hozNwUcc.js +0 -847
- package/dist/combobox-hozNwUcc.js.map +0 -1
- package/dist/command-BnmSchli.js.map +0 -1
- package/dist/comments-u5L0OGip.js.map +0 -1
- package/dist/containers-DqB-bSYE.js.map +0 -1
- package/dist/data-display-Bihs9Ven.js +0 -1342
- package/dist/data-display-Bihs9Ven.js.map +0 -1
- package/dist/date-DOKhJPu7.js +0 -140
- package/dist/date-DOKhJPu7.js.map +0 -1
- package/dist/date-picker-DzP5HQq7.js +0 -1541
- package/dist/date-picker-DzP5HQq7.js.map +0 -1
- package/dist/date-pickers-BpgGz7S-.js +0 -196
- package/dist/date-pickers-BpgGz7S-.js.map +0 -1
- package/dist/display-CS6Hbk18.js.map +0 -1
- package/dist/dropdown-menu-D-boNgGO.js.map +0 -1
- package/dist/feedback-CJkUAapr.js +0 -233
- package/dist/feedback-CJkUAapr.js.map +0 -1
- package/dist/field-affordance-recipes-uKY4MsZ_.js +0 -25
- package/dist/field-affordance-recipes-uKY4MsZ_.js.map +0 -1
- package/dist/field-state-recipes-DQQpiLWC.js +0 -11
- package/dist/field-state-recipes-DQQpiLWC.js.map +0 -1
- package/dist/filters-D6FF8L6s.js.map +0 -1
- package/dist/form-sizing-QP8aIRaW.js +0 -103
- package/dist/form-sizing-QP8aIRaW.js.map +0 -1
- package/dist/format-iamDSqs2.js +0 -110
- package/dist/format-iamDSqs2.js.map +0 -1
- package/dist/forms-B5NCbkSC.js.map +0 -1
- package/dist/forms-numeric-Crrm80Lm.js +0 -867
- package/dist/forms-numeric-Crrm80Lm.js.map +0 -1
- package/dist/header-kxruN3RM.js.map +0 -1
- package/dist/icon-badge-Btc6pQrp.js +0 -53
- package/dist/icon-badge-Btc6pQrp.js.map +0 -1
- package/dist/input-SX9V0AL3.js +0 -255
- package/dist/input-SX9V0AL3.js.map +0 -1
- package/dist/item-DE4YnuJx.js +0 -258
- package/dist/item-DE4YnuJx.js.map +0 -1
- package/dist/media-gallery-DLp3HAz0.js +0 -201
- package/dist/media-gallery-DLp3HAz0.js.map +0 -1
- package/dist/mentions-Cl0Kt_Pd.js +0 -565
- package/dist/mentions-Cl0Kt_Pd.js.map +0 -1
- package/dist/navigation-DnQSNMT0.js +0 -276
- package/dist/navigation-DnQSNMT0.js.map +0 -1
- package/dist/navigation-DyytsLRB.js +0 -265
- package/dist/navigation-DyytsLRB.js.map +0 -1
- package/dist/number-DasMFWEG.js +0 -269
- package/dist/number-DasMFWEG.js.map +0 -1
- package/dist/overlay.recipes-BxW5FIfK.js +0 -6
- package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
- package/dist/overlays-DUbs1KEi.js +0 -1011
- package/dist/overlays-DUbs1KEi.js.map +0 -1
- package/dist/page-hGmT4nWK.js.map +0 -1
- package/dist/page-header-D8nERkn5.js +0 -112
- package/dist/page-header-D8nERkn5.js.map +0 -1
- package/dist/popover-CghIYdQf.js.map +0 -1
- package/dist/primitives-C7ff0QaI.js +0 -337
- package/dist/primitives-C7ff0QaI.js.map +0 -1
- package/dist/progress-BroqrAyV.js.map +0 -1
- package/dist/rich-text-DlxDOtf4.js +0 -32
- package/dist/rich-text-DlxDOtf4.js.map +0 -1
- package/dist/rich-text-editor-BKyG7rWz.js +0 -574
- package/dist/rich-text-editor-BKyG7rWz.js.map +0 -1
- package/dist/rich-text-editor.recipes-B72Nfuze.js +0 -81
- package/dist/rich-text-editor.recipes-B72Nfuze.js.map +0 -1
- package/dist/rich-text-editor.strings-BpnIQgMl.js +0 -25
- package/dist/rich-text-editor.strings-BpnIQgMl.js.map +0 -1
- package/dist/sanitize-html-BG9FGe-j.js +0 -64
- package/dist/sanitize-html-BG9FGe-j.js.map +0 -1
- package/dist/scroll-area-D-pIhEKl.js +0 -47
- package/dist/scroll-area-D-pIhEKl.js.map +0 -1
- package/dist/separator-BNIgG3au.js.map +0 -1
- package/dist/settings-DOTOzeZ2.js +0 -161
- package/dist/settings-DOTOzeZ2.js.map +0 -1
- package/dist/sheet-BFhrNehm.js +0 -205
- package/dist/sheet-BFhrNehm.js.map +0 -1
- package/dist/sidebar-CyR4XKwR.js.map +0 -1
- package/dist/sidebar-SvGJ0Zwi.js +0 -506
- package/dist/sidebar-SvGJ0Zwi.js.map +0 -1
- package/dist/skeleton-3F0uhYn3.js.map +0 -1
- package/dist/smart-card-DjGVV2xr.js +0 -584
- package/dist/smart-card-DjGVV2xr.js.map +0 -1
- package/dist/spinner-Cpf7oRkF.js.map +0 -1
- package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
- package/dist/surface-recipes-Dd__PD-w.js +0 -28
- package/dist/surface-recipes-Dd__PD-w.js.map +0 -1
- package/dist/table-CLtJTxoR.js +0 -147
- package/dist/table-CLtJTxoR.js.map +0 -1
- package/dist/table-CcRDZiLP.js.map +0 -1
- package/dist/tabs-BNgu7g0u.js +0 -188
- package/dist/tabs-BNgu7g0u.js.map +0 -1
- package/dist/text-inputs-DsR56TR-.js.map +0 -1
- package/dist/text.styles-Q4sGAIgA.js.map +0 -1
- package/dist/timelines-D1pkt3se.js.map +0 -1
- package/dist/track-recipes-LLPNVwFg.js +0 -10
- package/dist/track-recipes-LLPNVwFg.js.map +0 -1
- package/dist/tree-BtmYyMZV.js.map +0 -1
- package/dist/typography-BxQgiZyw.js +0 -96
- package/dist/typography-BxQgiZyw.js.map +0 -1
- package/dist/ui-provider-DRPn3qNl.js.map +0 -1
- package/dist/upload-CDbYw1WN.js.map +0 -1
- package/dist/upload-queue-CNd_hH_a.js.map +0 -1
- package/dist/use-file-drop-target-BX7GnhoQ.js +0 -39
- package/dist/use-file-drop-target-BX7GnhoQ.js.map +0 -1
- package/dist/utils-BvH9PSmq.js.map +0 -1
- package/dist/value-inputs-D0KCrfVC.js +0 -840
- package/dist/value-inputs-D0KCrfVC.js.map +0 -1
- package/dist/workspace-CcR8r-Nt.js +0 -395
- package/dist/workspace-CcR8r-Nt.js.map +0 -1
- /package/dist/components/{blocks/data-display/metadata → base/metadata-list}/metadata-list.strings.d.ts +0 -0
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { a as e, o as t } from "./ui-provider-
|
|
2
|
+
import { a as e, o as t } from "./ui-provider-1D_NSYzO.js";
|
|
3
3
|
import { interpolateString as n, useStrings as r } from "./lib/strings.js";
|
|
4
|
-
import { t as i } from "./utils-
|
|
5
|
-
import {
|
|
6
|
-
import { a as
|
|
7
|
-
import {
|
|
8
|
-
import { t as m } from "./structure-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as v } from "./
|
|
12
|
-
import { t as y } from "./
|
|
13
|
-
import { t as b } from "./
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { i as
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
4
|
+
import { t as i } from "./utils-l5LpDw2z.js";
|
|
5
|
+
import { n as a, t as o } from "./buttons-SbIcm1HJ.js";
|
|
6
|
+
import { a as s, s as c, t as l } from "./typography-DTRkE9zL.js";
|
|
7
|
+
import { i as u, n as d, r as f, t as p } from "./tooltip-CsfgrfS7.js";
|
|
8
|
+
import { t as m } from "./structure-DC2dygdA.js";
|
|
9
|
+
import { r as h } from "./tone-recipes-CPoExcTE.js";
|
|
10
|
+
import { t as g } from "./row-recipes-DL8n7t_b.js";
|
|
11
|
+
import { i as _, t as v } from "./overlays-I0axtYA6.js";
|
|
12
|
+
import { t as y } from "./interaction-recipes-CHr0dJUs.js";
|
|
13
|
+
import { t as b } from "./sanitize-html-DsQmI48u.js";
|
|
14
|
+
import { t as x } from "./content-typography-CnwgMJ37.js";
|
|
15
|
+
import { t as S } from "./rich-text-DvGulsNJ.js";
|
|
16
|
+
import { g as C, i as w } from "./primitives-B-CkiEMU.js";
|
|
17
|
+
import { n as ee, t as T } from "./number-DMhe-Vsk.js";
|
|
18
|
+
import { i as E } from "./date-BgK3bTdo.js";
|
|
19
|
+
import { i as D, n as O, s as te } from "./avatar-BBnEJIx8.js";
|
|
20
|
+
import { t as k } from "./badge-MrKVNzW9.js";
|
|
21
|
+
import { n as A } from "./field-affordance-recipes-qQeIf4lG.js";
|
|
22
|
+
import { c as ne, o as re } from "./popover-Di55PyAI.js";
|
|
23
|
+
import { s as j } from "./data-display-DafIvCl5.js";
|
|
24
|
+
import { t as ie } from "./rich-text-editor-sMU_Scqm.js";
|
|
25
|
+
import { l as M, n as ae, o as oe, r as N, t as se } from "./mentions-D-uyCh01.js";
|
|
26
|
+
import { Fragment as P, createElement as F, forwardRef as I, memo as L, useCallback as R, useEffect as z, useImperativeHandle as ce, useMemo as B, useRef as V, useState as H } from "react";
|
|
27
|
+
import { Fragment as U, jsx as W, jsxs as G } from "react/jsx-runtime";
|
|
28
|
+
import { AtSign as le, CornerDownRight as ue, File as K, FileText as de, Image as q, Loader2 as fe, MessageCircle as J, Paperclip as pe, Pencil as me, Pin as he, Smile as ge, Trash2 as _e, X as Y } from "lucide-react";
|
|
27
29
|
//#region src/components/features/comments/comments.strings.ts
|
|
28
30
|
var X = {
|
|
29
31
|
title: "Comments",
|
|
@@ -76,9 +78,9 @@ var X = {
|
|
|
76
78
|
function Z(e) {
|
|
77
79
|
return r(X, e);
|
|
78
80
|
}
|
|
79
|
-
function
|
|
81
|
+
function ve(e) {
|
|
80
82
|
let n = t();
|
|
81
|
-
return
|
|
83
|
+
return B(() => ({
|
|
82
84
|
getMediaUrl: e?.getMediaUrl,
|
|
83
85
|
getMediaName: e?.getMediaName,
|
|
84
86
|
getStatusLabel: e?.getStatusLabel,
|
|
@@ -88,15 +90,15 @@ function _e(e) {
|
|
|
88
90
|
//#endregion
|
|
89
91
|
//#region src/components/features/comments/hooks/use-comments.ts
|
|
90
92
|
function Q(e = {}) {
|
|
91
|
-
let { onSubmit: t, onUpdate: n, onDelete: r, onAfterMutate: i, onError: a } = e, [o, s] =
|
|
93
|
+
let { onSubmit: t, onUpdate: n, onDelete: r, onAfterMutate: i, onError: a } = e, [o, s] = H({ kind: "idle" }), [c, l] = H(!1), u = V(!1), [d, f] = H({}), [p, m] = H(0), h = R((e) => {
|
|
92
94
|
u.current = e, l(e);
|
|
93
|
-
}, []), g =
|
|
95
|
+
}, []), g = R(() => {
|
|
94
96
|
m((e) => e + 1), s({ kind: "idle" }), f({}), h(!1);
|
|
95
|
-
}, [h]), _ =
|
|
97
|
+
}, [h]), _ = B(() => ({
|
|
96
98
|
setErrors: f,
|
|
97
99
|
reset: g,
|
|
98
100
|
setSubmitting: h
|
|
99
|
-
}), [g, h]), v =
|
|
101
|
+
}), [g, h]), v = R((e) => {
|
|
100
102
|
try {
|
|
101
103
|
a?.(e);
|
|
102
104
|
} catch {}
|
|
@@ -106,23 +108,23 @@ function Q(e = {}) {
|
|
|
106
108
|
isSubmitting: c,
|
|
107
109
|
formErrors: d,
|
|
108
110
|
resetKey: p,
|
|
109
|
-
startReply:
|
|
111
|
+
startReply: R((e) => {
|
|
110
112
|
e.id && (f({}), s({
|
|
111
113
|
kind: "replying",
|
|
112
114
|
commentId: e.id,
|
|
113
115
|
authorName: e.user?.name
|
|
114
116
|
}));
|
|
115
117
|
}, []),
|
|
116
|
-
startEdit:
|
|
118
|
+
startEdit: R((e) => {
|
|
117
119
|
e.id && (f({}), s({
|
|
118
120
|
kind: "editing",
|
|
119
121
|
comment: e
|
|
120
122
|
}));
|
|
121
123
|
}, []),
|
|
122
|
-
cancelComposerMode:
|
|
124
|
+
cancelComposerMode: R(() => {
|
|
123
125
|
g();
|
|
124
126
|
}, [g]),
|
|
125
|
-
submit:
|
|
127
|
+
submit: R(async (e) => {
|
|
126
128
|
if (o.kind === "editing" && o.comment.id) {
|
|
127
129
|
if (!n || u.current) return;
|
|
128
130
|
let t = {
|
|
@@ -161,7 +163,7 @@ function Q(e = {}) {
|
|
|
161
163
|
v,
|
|
162
164
|
h
|
|
163
165
|
]),
|
|
164
|
-
deleteComment:
|
|
166
|
+
deleteComment: R(async (e) => {
|
|
165
167
|
if (r && e) try {
|
|
166
168
|
await r(e), i?.("delete", { commentId: e });
|
|
167
169
|
} catch (e) {
|
|
@@ -178,49 +180,49 @@ function Q(e = {}) {
|
|
|
178
180
|
}
|
|
179
181
|
//#endregion
|
|
180
182
|
//#region src/components/features/comments/partials/comment-attachment-chip.tsx
|
|
181
|
-
function
|
|
182
|
-
return e.mimeType?.startsWith("image/") ?
|
|
183
|
+
function ye(e) {
|
|
184
|
+
return e.mimeType?.startsWith("image/") ? q : e.mimeType === "application/pdf" || e.mimeType?.startsWith("text/") ? de : e.mimeType ? K : pe;
|
|
183
185
|
}
|
|
184
|
-
var
|
|
185
|
-
let p = r(X, u), m =
|
|
186
|
+
var be = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: a, accessors: s, strings: u, compact: d = !1, className: f }) => {
|
|
187
|
+
let p = r(X, u), m = s?.getMediaUrl?.(e) ?? e.url, _ = s?.getMediaName?.(e) ?? e.name ?? p.attachmentFallback, v = ye(e), b = e.status === "uploading", x = e.status === "failed", S = b ? /* @__PURE__ */ G(C, {
|
|
186
188
|
size: "xs",
|
|
187
189
|
className: "shrink-0",
|
|
188
|
-
children: [p.attachmentUploadingLabel, typeof e.progress == "number" ? /* @__PURE__ */
|
|
190
|
+
children: [p.attachmentUploadingLabel, typeof e.progress == "number" ? /* @__PURE__ */ G(U, { children: [" ", /* @__PURE__ */ W(ee, {
|
|
189
191
|
value: Math.round(e.progress),
|
|
190
192
|
scaled: !0,
|
|
191
193
|
size: "xs",
|
|
192
194
|
align: "left",
|
|
193
195
|
type: "secondary"
|
|
194
196
|
})] }) : null]
|
|
195
|
-
}) :
|
|
197
|
+
}) : x ? /* @__PURE__ */ W(C, {
|
|
196
198
|
size: "xs",
|
|
197
199
|
className: "shrink-0",
|
|
198
200
|
children: e.error ?? p.attachmentFailedLabel
|
|
199
|
-
}) : typeof e.size == "number" ? /* @__PURE__ */
|
|
201
|
+
}) : typeof e.size == "number" ? /* @__PURE__ */ W(w, {
|
|
200
202
|
value: e.size,
|
|
201
203
|
size: "xs",
|
|
202
204
|
className: "shrink-0"
|
|
203
|
-
}) : null,
|
|
205
|
+
}) : null, T = i("comment-attachment-chip--component", "relative inline-flex min-w-0 max-w-[20rem] items-center gap-space-sm rounded-radius", "ring-1 ring-inset transition-colors", d ? "px-control-xs" : "px-control-sm", g.compact, x ? `${h.destructive.tint} ${h.destructive.halo}` : `bg-muted ring-border/60 ${y.rowHover}`, f), E = b ? /* @__PURE__ */ W(fe, {
|
|
204
206
|
className: i("shrink-0 animate-spin text-muted-foreground", "size-icon-md"),
|
|
205
207
|
"aria-hidden": !0
|
|
206
|
-
}) : /* @__PURE__ */
|
|
207
|
-
className: i("shrink-0", "size-icon-md",
|
|
208
|
+
}) : /* @__PURE__ */ W(v, {
|
|
209
|
+
className: i("shrink-0", "size-icon-md", x ? "text-destructive" : "text-muted-foreground"),
|
|
208
210
|
"aria-hidden": !0
|
|
209
|
-
}),
|
|
211
|
+
}), D = /* @__PURE__ */ G("span", {
|
|
210
212
|
className: "inline-flex min-w-0 items-baseline gap-space-sm",
|
|
211
|
-
children: [/* @__PURE__ */
|
|
213
|
+
children: [/* @__PURE__ */ W(c, {
|
|
212
214
|
tag: "span",
|
|
213
215
|
size: "xs",
|
|
214
216
|
weight: "medium",
|
|
215
|
-
className: i("truncate",
|
|
216
|
-
children:
|
|
217
|
-
}),
|
|
217
|
+
className: i("truncate", x && "text-destructive"),
|
|
218
|
+
children: _
|
|
219
|
+
}), S]
|
|
218
220
|
});
|
|
219
|
-
return /* @__PURE__ */
|
|
220
|
-
className:
|
|
221
|
+
return /* @__PURE__ */ G("div", {
|
|
222
|
+
className: T,
|
|
221
223
|
children: [
|
|
222
|
-
|
|
223
|
-
m && !
|
|
224
|
+
E,
|
|
225
|
+
m && !b && !x ? /* @__PURE__ */ W(l, {
|
|
224
226
|
href: m,
|
|
225
227
|
size: "inherit",
|
|
226
228
|
underline: !1,
|
|
@@ -228,21 +230,21 @@ var ye = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: s, accessors:
|
|
|
228
230
|
rel: "noreferrer noopener",
|
|
229
231
|
className: "inline-flex min-w-0 flex-1 items-baseline gap-space-sm hover:underline",
|
|
230
232
|
"aria-label": p.attachmentDownloadLabel,
|
|
231
|
-
children:
|
|
232
|
-
}) :
|
|
233
|
-
|
|
234
|
-
className:
|
|
235
|
-
children: /* @__PURE__ */
|
|
233
|
+
children: D
|
|
234
|
+
}) : D,
|
|
235
|
+
b && typeof e.progress == "number" && /* @__PURE__ */ W("div", {
|
|
236
|
+
className: i(h.primary.line, "absolute bottom-0 left-2 right-2 h-px overflow-hidden rounded-full"),
|
|
237
|
+
children: /* @__PURE__ */ W("div", {
|
|
236
238
|
className: "bg-primary h-full transition-[width]",
|
|
237
239
|
style: { width: `${Math.min(100, Math.max(0, e.progress))}%` }
|
|
238
240
|
})
|
|
239
241
|
}),
|
|
240
|
-
|
|
242
|
+
x && a && /* @__PURE__ */ W(o, {
|
|
241
243
|
type: "button",
|
|
242
244
|
size: "sm",
|
|
243
|
-
onClick: () =>
|
|
245
|
+
onClick: () => a(e.id),
|
|
244
246
|
className: "shrink-0 text-destructive decoration-destructive/30 hover:decoration-destructive/60",
|
|
245
|
-
children: /* @__PURE__ */
|
|
247
|
+
children: /* @__PURE__ */ W(c, {
|
|
246
248
|
tag: "span",
|
|
247
249
|
size: "xs",
|
|
248
250
|
weight: "medium",
|
|
@@ -250,38 +252,38 @@ var ye = ({ attachment: e, editable: t = !1, onRemove: n, onRetry: s, accessors:
|
|
|
250
252
|
children: p.attachmentRetryLabel
|
|
251
253
|
})
|
|
252
254
|
}),
|
|
253
|
-
t && n && /* @__PURE__ */
|
|
255
|
+
t && n && /* @__PURE__ */ W("button", {
|
|
254
256
|
type: "button",
|
|
255
257
|
onClick: () => n(e.id),
|
|
256
258
|
className: i(A.target, A.focus, A.toggle),
|
|
257
259
|
"aria-label": p.attachmentRemoveLabel,
|
|
258
260
|
title: p.attachmentRemoveLabel,
|
|
259
|
-
children: /* @__PURE__ */
|
|
261
|
+
children: /* @__PURE__ */ W(Y, {
|
|
260
262
|
className: A.icon,
|
|
261
263
|
"aria-hidden": "true"
|
|
262
264
|
})
|
|
263
265
|
})
|
|
264
266
|
]
|
|
265
267
|
});
|
|
266
|
-
},
|
|
268
|
+
}, xe = {
|
|
267
269
|
attachmentTooLargeError: X.attachmentTooLargeError,
|
|
268
270
|
attachmentTooManyError: X.attachmentTooManyError,
|
|
269
271
|
attachmentFailedLabel: X.attachmentFailedLabel
|
|
270
272
|
};
|
|
271
|
-
function
|
|
272
|
-
let { onUpload: t, maxSize: n, maxFiles: i, disabled: a, initialAttachments: o, onValueChange: s, onError: c, strings: l } = e, u = r(
|
|
273
|
+
function Se(e = {}) {
|
|
274
|
+
let { onUpload: t, maxSize: n, maxFiles: i, disabled: a, initialAttachments: o, onValueChange: s, onError: c, strings: l } = e, u = r(xe, l), [d, f] = H(() => o ? [...o] : []), p = V(/* @__PURE__ */ new Map()), m = V(/* @__PURE__ */ new Map()), h = V(d), g = R((e) => {
|
|
273
275
|
let t = [...e];
|
|
274
276
|
h.current = t, f(t);
|
|
275
|
-
}, []), _ =
|
|
277
|
+
}, []), _ = V(s);
|
|
276
278
|
_.current = s;
|
|
277
|
-
let v =
|
|
279
|
+
let v = R((e, t) => {
|
|
278
280
|
g(h.current.map((n) => n.id === e ? {
|
|
279
281
|
...n,
|
|
280
282
|
...t
|
|
281
283
|
} : n));
|
|
282
|
-
}, [g]), y =
|
|
284
|
+
}, [g]), y = R((e) => {
|
|
283
285
|
g(e);
|
|
284
|
-
}, [g]), b =
|
|
286
|
+
}, [g]), b = R((e, n) => {
|
|
285
287
|
if (!t || !m.current.has(e)) return;
|
|
286
288
|
let r = new AbortController();
|
|
287
289
|
p.current.set(e, { controller: r }), v(e, {
|
|
@@ -315,7 +317,7 @@ function xe(e = {}) {
|
|
|
315
317
|
t,
|
|
316
318
|
u.attachmentFailedLabel,
|
|
317
319
|
v
|
|
318
|
-
]), x =
|
|
320
|
+
]), x = R((e) => {
|
|
319
321
|
if (a || !t) return;
|
|
320
322
|
let r = Array.from(e);
|
|
321
323
|
if (r.length === 0) return;
|
|
@@ -354,19 +356,19 @@ function xe(e = {}) {
|
|
|
354
356
|
t,
|
|
355
357
|
u.attachmentTooLargeError,
|
|
356
358
|
u.attachmentTooManyError
|
|
357
|
-
]), S =
|
|
359
|
+
]), S = R((e) => {
|
|
358
360
|
let t = p.current.get(e);
|
|
359
361
|
t && (t.controller.abort(), p.current.delete(e)), m.current.delete(e), g(h.current.filter((t) => t.id !== e));
|
|
360
|
-
}, [g]), C =
|
|
362
|
+
}, [g]), C = R((e) => {
|
|
361
363
|
let t = m.current.get(e);
|
|
362
364
|
t && b(e, t);
|
|
363
|
-
}, [b]), w =
|
|
365
|
+
}, [b]), w = R(() => {
|
|
364
366
|
for (let e of p.current.values()) e.controller.abort();
|
|
365
367
|
p.current.clear(), m.current.clear(), g([]);
|
|
366
368
|
}, [g]);
|
|
367
|
-
return
|
|
369
|
+
return z(() => {
|
|
368
370
|
_.current?.(d);
|
|
369
|
-
}, [d]),
|
|
371
|
+
}, [d]), z(() => {
|
|
370
372
|
let e = p.current, t = m.current;
|
|
371
373
|
return () => {
|
|
372
374
|
for (let t of e.values()) t.controller.abort();
|
|
@@ -374,8 +376,8 @@ function xe(e = {}) {
|
|
|
374
376
|
};
|
|
375
377
|
}, []), {
|
|
376
378
|
attachments: d,
|
|
377
|
-
uploadedAttachments:
|
|
378
|
-
isUploading:
|
|
379
|
+
uploadedAttachments: B(() => d.filter((e) => e.status === "uploaded" || !e.status), [d]),
|
|
380
|
+
isUploading: B(() => d.some((e) => e.status === "uploading"), [d]),
|
|
379
381
|
addFiles: x,
|
|
380
382
|
removeAttachment: S,
|
|
381
383
|
retryAttachment: C,
|
|
@@ -385,61 +387,61 @@ function xe(e = {}) {
|
|
|
385
387
|
}
|
|
386
388
|
//#endregion
|
|
387
389
|
//#region src/components/features/comments/partials/comment-composer.tsx
|
|
388
|
-
function
|
|
390
|
+
function Ce(e) {
|
|
389
391
|
return !e || typeof e != "string" ? !1 : e.replace(/<[^>]*>/g, "").trim().length > 0;
|
|
390
392
|
}
|
|
391
|
-
var
|
|
392
|
-
let C = Z(
|
|
393
|
+
var $ = I(function({ context: e, canComment: t = !0, submitting: n = !1, errors: r, resetKey: i = 0, onSubmit: o, onCancel: s, editingComment: l, replyingTo: u, strings: d, resources: f, onResourceSearch: p, attachments: h, maxAttachments: g, allowAttachments: _, initialValues: v, autoFocus: y = !1, inlineSubmit: b = !0, placeholder: x }, S) {
|
|
394
|
+
let C = Z(d), w = f, ee = p, T = _ ?? !0, E = h?.maxFiles ?? g ?? 5, D = B(() => ({
|
|
393
395
|
...h,
|
|
394
|
-
maxFiles:
|
|
395
|
-
disabled: h?.disabled === !0 || !
|
|
396
|
+
maxFiles: E,
|
|
397
|
+
disabled: h?.disabled === !0 || !T
|
|
396
398
|
}), [
|
|
397
|
-
|
|
399
|
+
T,
|
|
398
400
|
h,
|
|
399
|
-
|
|
400
|
-
]),
|
|
401
|
+
E
|
|
402
|
+
]), O = V(null), [te, k] = H(() => v?.content ?? l?.content ?? ""), [A, j] = H(null), [oe, P] = H(null), F = M({
|
|
401
403
|
resources: w,
|
|
402
|
-
onResourceSearch:
|
|
403
|
-
editorRef:
|
|
404
|
-
initialMentions: v?.references ??
|
|
405
|
-
}), I =
|
|
406
|
-
...
|
|
404
|
+
onResourceSearch: ee,
|
|
405
|
+
editorRef: O,
|
|
406
|
+
initialMentions: v?.references ?? l?.references
|
|
407
|
+
}), I = Se({
|
|
408
|
+
...D,
|
|
407
409
|
initialAttachments: v?.attachments ?? void 0,
|
|
408
410
|
strings: C,
|
|
409
411
|
onError: P
|
|
410
|
-
}),
|
|
412
|
+
}), L = () => {
|
|
411
413
|
I.reset(), P(null), s?.();
|
|
412
414
|
};
|
|
413
|
-
|
|
414
|
-
focus: () =>
|
|
415
|
+
ce(S, () => ({
|
|
416
|
+
focus: () => O.current?.focus(),
|
|
415
417
|
clear: () => {
|
|
416
|
-
|
|
418
|
+
O.current?.clear(), F.reset(), I.reset(), j(null), P(null);
|
|
417
419
|
},
|
|
418
420
|
setBody: (e) => {
|
|
419
|
-
|
|
421
|
+
O.current?.setHTML(e);
|
|
420
422
|
}
|
|
421
|
-
}), [I, F]),
|
|
422
|
-
|
|
423
|
+
}), [I, F]), z(() => {
|
|
424
|
+
O.current?.setHTML(v?.content ?? ""), F.setMentions(v?.references ?? []), I.reset(), I.setAttachments(v?.attachments ?? []), j(null), P(null);
|
|
423
425
|
}, [
|
|
424
426
|
e.id,
|
|
425
427
|
e.type,
|
|
426
428
|
i
|
|
427
|
-
]),
|
|
428
|
-
if (!
|
|
429
|
-
|
|
430
|
-
let e = (
|
|
429
|
+
]), z(() => {
|
|
430
|
+
if (!l) return;
|
|
431
|
+
O.current?.setHTML(l.content ?? ""), F.setMentions(l.references ?? []);
|
|
432
|
+
let e = (l.attachments ?? []).filter((e) => !!e);
|
|
431
433
|
I.reset(), I.setAttachments(e), P(null);
|
|
432
|
-
}, [
|
|
433
|
-
r?.content &&
|
|
434
|
+
}, [l?.id]), z(() => {
|
|
435
|
+
r?.content && j(r.content);
|
|
434
436
|
}, [r]);
|
|
435
|
-
let
|
|
437
|
+
let R = (t) => {
|
|
436
438
|
if (t?.preventDefault(), n || I.isUploading) return;
|
|
437
|
-
let r =
|
|
438
|
-
if (!
|
|
439
|
-
|
|
439
|
+
let r = O.current?.getHTML() ?? te;
|
|
440
|
+
if (!Ce(r)) {
|
|
441
|
+
j(C.invalidContent);
|
|
440
442
|
return;
|
|
441
443
|
}
|
|
442
|
-
|
|
444
|
+
j(null), o({
|
|
443
445
|
content: r,
|
|
444
446
|
commentableId: e.id,
|
|
445
447
|
commentableType: e.type,
|
|
@@ -447,59 +449,60 @@ var Ce = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors
|
|
|
447
449
|
contentType: "html",
|
|
448
450
|
references: F.mentions,
|
|
449
451
|
attachments: I.uploadedAttachments,
|
|
450
|
-
replyToId:
|
|
451
|
-
editingId:
|
|
452
|
+
replyToId: u?.commentId ?? v?.replyToId,
|
|
453
|
+
editingId: l?.id
|
|
452
454
|
});
|
|
453
|
-
},
|
|
455
|
+
}, U = V(null), ue = () => U.current?.click(), K = (e) => {
|
|
454
456
|
e?.length && (P(null), I.addFiles(e));
|
|
455
|
-
},
|
|
457
|
+
}, de = I.attachments.length > 0, q = !!l, J = !q && !!u, me = n ? C.composerSubmitting : q ? C.composerSave : C.composerSubmit, he = q ? /* @__PURE__ */ W(we, {
|
|
456
458
|
label: C.composerEditingEyebrow,
|
|
457
459
|
closeLabel: C.composerCancel,
|
|
458
|
-
onClose: s ?
|
|
459
|
-
}) :
|
|
460
|
-
label:
|
|
460
|
+
onClose: s ? L : void 0
|
|
461
|
+
}) : J ? /* @__PURE__ */ W(we, {
|
|
462
|
+
label: Te(C.composerReplyingEyebrow, u.authorName),
|
|
461
463
|
closeLabel: C.composerCancel,
|
|
462
|
-
onClose: s ?
|
|
463
|
-
}) : null, ge =
|
|
464
|
+
onClose: s ? L : void 0
|
|
465
|
+
}) : null, ge = B(() => {
|
|
464
466
|
let e = [];
|
|
465
467
|
return w && Object.keys(w).length > 0 && e.push({
|
|
466
468
|
id: "reference",
|
|
467
|
-
icon:
|
|
469
|
+
icon: le,
|
|
468
470
|
label: C.composerReferenceLabel,
|
|
469
471
|
onClick: () => F.setPickerOpen(!0)
|
|
470
|
-
}),
|
|
472
|
+
}), D?.onUpload && !D.disabled && e.push({
|
|
471
473
|
id: "attachment",
|
|
472
|
-
icon:
|
|
474
|
+
icon: pe,
|
|
473
475
|
label: C.composerAttachmentLabel,
|
|
474
476
|
onClick: ue
|
|
475
477
|
}), e;
|
|
476
478
|
}, [
|
|
477
479
|
w,
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
D?.onUpload,
|
|
481
|
+
D?.disabled,
|
|
480
482
|
C.composerReferenceLabel,
|
|
481
483
|
C.composerAttachmentLabel
|
|
482
484
|
]);
|
|
483
485
|
if (!t) return null;
|
|
484
|
-
let
|
|
486
|
+
let _e = /* @__PURE__ */ W(a, {
|
|
487
|
+
tone: "primary",
|
|
485
488
|
type: "button",
|
|
486
|
-
onClick: () =>
|
|
489
|
+
onClick: () => R(),
|
|
487
490
|
disabled: n || I.isUploading,
|
|
488
|
-
icon: n ?
|
|
491
|
+
icon: n ? fe : void 0,
|
|
489
492
|
children: me
|
|
490
|
-
}),
|
|
493
|
+
}), Y = q || J || s ? /* @__PURE__ */ W(a, {
|
|
491
494
|
type: "button",
|
|
492
495
|
tone: "secondary",
|
|
493
496
|
buttonStyle: "ghost",
|
|
494
|
-
onClick:
|
|
497
|
+
onClick: L,
|
|
495
498
|
disabled: n,
|
|
496
499
|
children: C.composerCancel
|
|
497
|
-
}) : null,
|
|
500
|
+
}) : null, X = de ? /* @__PURE__ */ W(m, {
|
|
498
501
|
direction: "horizontal",
|
|
499
502
|
wrap: !0,
|
|
500
503
|
align: "center",
|
|
501
504
|
gap: "sm",
|
|
502
|
-
children: I.attachments.map((e) => /* @__PURE__ */
|
|
505
|
+
children: I.attachments.map((e) => /* @__PURE__ */ W(be, {
|
|
503
506
|
attachment: e,
|
|
504
507
|
editable: !0,
|
|
505
508
|
onRemove: (e) => {
|
|
@@ -508,37 +511,37 @@ var Ce = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors
|
|
|
508
511
|
onRetry: (e) => {
|
|
509
512
|
P(null), I.retryAttachment(e);
|
|
510
513
|
},
|
|
511
|
-
strings:
|
|
514
|
+
strings: d
|
|
512
515
|
}, e.id))
|
|
513
|
-
}) : null, ve =
|
|
514
|
-
return /* @__PURE__ */
|
|
515
|
-
render: /* @__PURE__ */
|
|
516
|
+
}) : null, ve = de ? X : null, Q = b !== !1 && !q && !J ? _e : null, ye = b === !1 || q || J;
|
|
517
|
+
return /* @__PURE__ */ G(m, {
|
|
518
|
+
render: /* @__PURE__ */ W("form", {}),
|
|
516
519
|
gap: "md",
|
|
517
|
-
onSubmit:
|
|
520
|
+
onSubmit: R,
|
|
518
521
|
className: "comment-composer--component",
|
|
519
522
|
children: [
|
|
520
523
|
he,
|
|
521
|
-
/* @__PURE__ */
|
|
522
|
-
ref:
|
|
524
|
+
/* @__PURE__ */ W("input", {
|
|
525
|
+
ref: U,
|
|
523
526
|
type: "file",
|
|
524
527
|
multiple: !0,
|
|
525
528
|
hidden: !0,
|
|
526
|
-
accept:
|
|
529
|
+
accept: D?.accept,
|
|
527
530
|
onChange: (e) => {
|
|
528
531
|
K(e.target.files), e.target.value = "";
|
|
529
532
|
}
|
|
530
533
|
}),
|
|
531
|
-
!F.triggerActive && /* @__PURE__ */
|
|
534
|
+
!F.triggerActive && /* @__PURE__ */ G(re, {
|
|
532
535
|
open: F.pickerOpen,
|
|
533
536
|
onOpenChange: F.setPickerOpen,
|
|
534
|
-
children: [/* @__PURE__ */
|
|
537
|
+
children: [/* @__PURE__ */ W(ne, { render: /* @__PURE__ */ W(a, {
|
|
535
538
|
type: "button",
|
|
536
539
|
tone: "secondary",
|
|
537
540
|
buttonStyle: "ghost",
|
|
538
541
|
className: "sr-only",
|
|
539
542
|
tabIndex: -1,
|
|
540
543
|
children: C.composerReferenceLabel
|
|
541
|
-
}) }), /* @__PURE__ */
|
|
544
|
+
}) }), /* @__PURE__ */ W(N, {
|
|
542
545
|
open: F.pickerOpen,
|
|
543
546
|
activeKind: F.activeKind,
|
|
544
547
|
setActiveKind: (e) => {
|
|
@@ -559,14 +562,14 @@ var Ce = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors
|
|
|
559
562
|
}
|
|
560
563
|
})]
|
|
561
564
|
}),
|
|
562
|
-
/* @__PURE__ */
|
|
565
|
+
/* @__PURE__ */ G("div", {
|
|
563
566
|
className: "comment-composer--editor relative",
|
|
564
|
-
children: [/* @__PURE__ */
|
|
565
|
-
ref:
|
|
566
|
-
value:
|
|
567
|
+
children: [/* @__PURE__ */ W(ie, {
|
|
568
|
+
ref: O,
|
|
569
|
+
value: te,
|
|
567
570
|
onValueChange: (e) => {
|
|
568
|
-
|
|
569
|
-
let t =
|
|
571
|
+
k(e);
|
|
572
|
+
let t = se(e), n = F.mentions;
|
|
570
573
|
if (n.map((e) => e.id).join("|") !== t.map((e) => e.id).join("|")) {
|
|
571
574
|
let e = new Map(n.map((e) => [e.id, e])), r = t.map((t) => e.get(t.id) ?? t);
|
|
572
575
|
F.setMentions(r);
|
|
@@ -575,12 +578,12 @@ var Ce = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors
|
|
|
575
578
|
placeholder: x ?? C.composerPlaceholder,
|
|
576
579
|
strings: { editorLabel: x ?? C.composerPlaceholder },
|
|
577
580
|
minHeight: "3rem",
|
|
578
|
-
autoFocus: y ||
|
|
581
|
+
autoFocus: y || q || J,
|
|
579
582
|
extraToolbarItems: ge,
|
|
580
|
-
toolbarTrailing:
|
|
583
|
+
toolbarTrailing: Q,
|
|
581
584
|
footerSlot: ve,
|
|
582
585
|
onCaretChange: F.handleCaretChange
|
|
583
|
-
}), /* @__PURE__ */
|
|
586
|
+
}), /* @__PURE__ */ W(ae, {
|
|
584
587
|
open: F.triggerActive && F.pickerOpen,
|
|
585
588
|
activeKind: F.activeKind,
|
|
586
589
|
setActiveKind: (e) => {
|
|
@@ -600,55 +603,55 @@ var Ce = P(function({ context: e, canComment: t = !0, submitting: n = !1, errors
|
|
|
600
603
|
}
|
|
601
604
|
})]
|
|
602
605
|
}),
|
|
603
|
-
|
|
606
|
+
oe && /* @__PURE__ */ W(c, {
|
|
604
607
|
role: "alert",
|
|
605
608
|
size: "xs",
|
|
606
609
|
type: "error",
|
|
607
610
|
className: "comment-composer--attachment-error",
|
|
608
|
-
children:
|
|
611
|
+
children: oe
|
|
609
612
|
}),
|
|
610
|
-
|
|
613
|
+
A && /* @__PURE__ */ W(c, {
|
|
611
614
|
size: "xs",
|
|
612
615
|
type: "error",
|
|
613
|
-
children:
|
|
616
|
+
children: A
|
|
614
617
|
}),
|
|
615
|
-
|
|
618
|
+
ye && /* @__PURE__ */ G(m, {
|
|
616
619
|
direction: "horizontal",
|
|
617
620
|
align: "center",
|
|
618
621
|
justify: "end",
|
|
619
622
|
gap: "md",
|
|
620
623
|
className: "comment-composer--footer-actions",
|
|
621
|
-
children: [
|
|
624
|
+
children: [Y, _e]
|
|
622
625
|
})
|
|
623
626
|
]
|
|
624
627
|
});
|
|
625
628
|
});
|
|
626
|
-
function
|
|
627
|
-
return /* @__PURE__ */
|
|
628
|
-
className: i("comment-composer--eyebrow bg-muted/
|
|
629
|
-
children: [/* @__PURE__ */
|
|
629
|
+
function we({ label: e, closeLabel: t, onClose: n }) {
|
|
630
|
+
return /* @__PURE__ */ G("div", {
|
|
631
|
+
className: i("comment-composer--eyebrow bg-muted/30 ring-border/60 flex min-w-0 items-center justify-between gap-space-sm rounded-radius px-row-x ring-1 ring-inset", g.compact),
|
|
632
|
+
children: [/* @__PURE__ */ W(s, { children: e }), n ? /* @__PURE__ */ W("button", {
|
|
630
633
|
type: "button",
|
|
631
634
|
onClick: n,
|
|
632
635
|
className: i(A.target, A.focus, A.toggle),
|
|
633
636
|
"aria-label": t,
|
|
634
|
-
children: /* @__PURE__ */
|
|
637
|
+
children: /* @__PURE__ */ W(Y, {
|
|
635
638
|
className: A.icon,
|
|
636
639
|
"aria-hidden": "true"
|
|
637
640
|
})
|
|
638
641
|
}) : null]
|
|
639
642
|
});
|
|
640
643
|
}
|
|
641
|
-
function
|
|
644
|
+
function Te(e, t) {
|
|
642
645
|
return n(e, { name: t }, { missing: "empty" });
|
|
643
646
|
}
|
|
644
647
|
//#endregion
|
|
645
648
|
//#region src/components/features/comments/partials/comment-empty.tsx
|
|
646
|
-
var
|
|
649
|
+
var Ee = ({ strings: e, icon: t, className: n }) => {
|
|
647
650
|
let r = Z(e);
|
|
648
|
-
return /* @__PURE__ */
|
|
651
|
+
return /* @__PURE__ */ W(j, {
|
|
649
652
|
title: r.empty,
|
|
650
653
|
description: r.emptyHint || !1,
|
|
651
|
-
media: t ?? /* @__PURE__ */
|
|
654
|
+
media: t ?? /* @__PURE__ */ W(J, {
|
|
652
655
|
className: "size-icon",
|
|
653
656
|
"aria-hidden": "true"
|
|
654
657
|
}),
|
|
@@ -659,18 +662,18 @@ var Te = ({ strings: e, icon: t, className: n }) => {
|
|
|
659
662
|
};
|
|
660
663
|
//#endregion
|
|
661
664
|
//#region src/components/features/comments/partials/comment-content.tsx
|
|
662
|
-
function
|
|
665
|
+
function De(e) {
|
|
663
666
|
let { comment: t, resources: n, renderReference: r, sanitizer: i } = e, a = t.contentType ?? t.content_type ?? "text";
|
|
664
667
|
if (a === "rich") {
|
|
665
|
-
let e =
|
|
666
|
-
return e ? /* @__PURE__ */
|
|
668
|
+
let e = Oe(t.content);
|
|
669
|
+
return e ? /* @__PURE__ */ W("div", {
|
|
667
670
|
className: "comment-content--component",
|
|
668
671
|
children: e
|
|
669
672
|
}) : null;
|
|
670
673
|
}
|
|
671
|
-
if (a === "html") return /* @__PURE__ */
|
|
674
|
+
if (a === "html") return /* @__PURE__ */ W("div", {
|
|
672
675
|
className: "comment-content--component",
|
|
673
|
-
children: /* @__PURE__ */
|
|
676
|
+
children: /* @__PURE__ */ W(oe, {
|
|
674
677
|
html: t.content ?? "",
|
|
675
678
|
mentions: t.references,
|
|
676
679
|
resources: n,
|
|
@@ -678,48 +681,48 @@ function Ee(e) {
|
|
|
678
681
|
sanitizer: i
|
|
679
682
|
})
|
|
680
683
|
});
|
|
681
|
-
let
|
|
682
|
-
return /* @__PURE__ */
|
|
684
|
+
let o = je(t.content ?? "");
|
|
685
|
+
return /* @__PURE__ */ W(c, {
|
|
683
686
|
className: "comment-content--component whitespace-pre-line",
|
|
684
|
-
children:
|
|
687
|
+
children: o
|
|
685
688
|
});
|
|
686
689
|
}
|
|
687
|
-
function
|
|
690
|
+
function Oe(e) {
|
|
688
691
|
if (!e) return null;
|
|
689
692
|
try {
|
|
690
693
|
let t = JSON.parse(e);
|
|
691
|
-
return !t || !Array.isArray(t.blocks) || t.blocks.length === 0 ? null : /* @__PURE__ */
|
|
694
|
+
return !t || !Array.isArray(t.blocks) || t.blocks.length === 0 ? null : /* @__PURE__ */ W(c, {
|
|
692
695
|
tag: "div",
|
|
693
|
-
className:
|
|
694
|
-
children: t.blocks.map((e, t) => /* @__PURE__ */
|
|
696
|
+
className: x,
|
|
697
|
+
children: t.blocks.map((e, t) => /* @__PURE__ */ W(P, { children: ke(e) }, e.id ?? `${e.type}-${t}`))
|
|
695
698
|
});
|
|
696
699
|
} catch {
|
|
697
|
-
let t =
|
|
698
|
-
return /* @__PURE__ */
|
|
700
|
+
let t = je(e);
|
|
701
|
+
return /* @__PURE__ */ W(c, {
|
|
699
702
|
className: "whitespace-pre-line",
|
|
700
703
|
children: t
|
|
701
704
|
});
|
|
702
705
|
}
|
|
703
706
|
}
|
|
704
|
-
function
|
|
707
|
+
function ke(e) {
|
|
705
708
|
let t = e.data ?? {};
|
|
706
709
|
switch (e.type) {
|
|
707
710
|
case "paragraph": {
|
|
708
711
|
let e = String(t.text ?? "").trim();
|
|
709
712
|
if (!e) return null;
|
|
710
|
-
let n =
|
|
711
|
-
return n ? /* @__PURE__ */
|
|
713
|
+
let n = b(e);
|
|
714
|
+
return n ? /* @__PURE__ */ W("p", { dangerouslySetInnerHTML: { __html: n } }) : null;
|
|
712
715
|
}
|
|
713
716
|
case "header": {
|
|
714
|
-
let e =
|
|
715
|
-
return e ?
|
|
717
|
+
let e = Ae(String(t.text ?? "")), n = Number(t.level ?? 3);
|
|
718
|
+
return e ? F(`h${Math.min(Math.max(n, 1), 6)}`, null, e) : null;
|
|
716
719
|
}
|
|
717
720
|
case "list": {
|
|
718
|
-
let e = (Array.isArray(t.items) ? t.items : []).map((e) =>
|
|
719
|
-
return e.length === 0 ? null : t.style === "ordered" ? /* @__PURE__ */
|
|
721
|
+
let e = (Array.isArray(t.items) ? t.items : []).map((e) => Ae(String(e ?? ""))).filter((e) => e.length > 0);
|
|
722
|
+
return e.length === 0 ? null : t.style === "ordered" ? /* @__PURE__ */ W("ol", { children: e.map((e, t) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(c, {
|
|
720
723
|
tag: "span",
|
|
721
724
|
children: e
|
|
722
|
-
}) }, `${e}-${t}`)) }) : /* @__PURE__ */
|
|
725
|
+
}) }, `${e}-${t}`)) }) : /* @__PURE__ */ W("ul", { children: e.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(c, {
|
|
723
726
|
tag: "span",
|
|
724
727
|
children: e
|
|
725
728
|
}) }, e)) });
|
|
@@ -727,16 +730,16 @@ function Oe(e) {
|
|
|
727
730
|
case "quote": {
|
|
728
731
|
let e = String(t.text ?? "").trim();
|
|
729
732
|
if (!e) return null;
|
|
730
|
-
let n =
|
|
731
|
-
return /* @__PURE__ */
|
|
733
|
+
let n = Ae(String(t.caption ?? ""));
|
|
734
|
+
return /* @__PURE__ */ G("blockquote", {
|
|
732
735
|
className: "italic",
|
|
733
|
-
children: [/* @__PURE__ */
|
|
736
|
+
children: [/* @__PURE__ */ W(S, {
|
|
734
737
|
tag: "div",
|
|
735
738
|
html: e,
|
|
736
739
|
type: "secondary"
|
|
737
|
-
}), n.length > 0 && /* @__PURE__ */
|
|
740
|
+
}), n.length > 0 && /* @__PURE__ */ W("cite", {
|
|
738
741
|
className: "mt-1 block not-italic",
|
|
739
|
-
children: /* @__PURE__ */
|
|
742
|
+
children: /* @__PURE__ */ G(c, {
|
|
740
743
|
tag: "span",
|
|
741
744
|
size: "xs",
|
|
742
745
|
type: "secondary",
|
|
@@ -746,23 +749,23 @@ function Oe(e) {
|
|
|
746
749
|
})]
|
|
747
750
|
});
|
|
748
751
|
}
|
|
749
|
-
case "delimiter": return /* @__PURE__ */
|
|
752
|
+
case "delimiter": return /* @__PURE__ */ W("hr", {
|
|
750
753
|
className: "border-dashed",
|
|
751
754
|
"aria-hidden": "true"
|
|
752
755
|
});
|
|
753
756
|
default: {
|
|
754
|
-
let e =
|
|
755
|
-
return e ? /* @__PURE__ */
|
|
757
|
+
let e = Ae(String(t.text ?? ""));
|
|
758
|
+
return e ? /* @__PURE__ */ W("p", {
|
|
756
759
|
className: "whitespace-pre-line",
|
|
757
760
|
children: e
|
|
758
761
|
}) : null;
|
|
759
762
|
}
|
|
760
763
|
}
|
|
761
764
|
}
|
|
762
|
-
function
|
|
765
|
+
function Ae(e) {
|
|
763
766
|
return e.replace(/<[^>]*>/g, "").trim();
|
|
764
767
|
}
|
|
765
|
-
function
|
|
768
|
+
function je(e) {
|
|
766
769
|
if (typeof e != "string") return "";
|
|
767
770
|
let t = e.trim();
|
|
768
771
|
if (t === "") return "";
|
|
@@ -775,79 +778,79 @@ function Ae(e) {
|
|
|
775
778
|
}
|
|
776
779
|
//#endregion
|
|
777
780
|
//#region src/components/features/comments/partials/comment-item.tsx
|
|
778
|
-
var
|
|
779
|
-
let M = Z(S), ae = y ?? !0, oe = b ?? !0, N =
|
|
781
|
+
var Me = "?", Ne = (e) => e?.url, Pe = (e) => e?.name, Fe = (e) => e.charAt(0).toUpperCase() + e.slice(1).replace(/_/g, " "), Ie = L(function({ comment: e, canModerate: t, onDelete: r, onAttachmentRemove: o, onEdit: s, onPinToggle: l, onReact: h, onReply: g, allowReactions: y, allowReplies: b, sanitizer: x, strings: S, getMediaUrl: C, getMediaName: w, getStatusLabel: ee, formatRelativeTime: ne, resources: re, renderAttachment: j, renderReference: ie }) {
|
|
782
|
+
let M = Z(S), ae = y ?? !0, oe = b ?? !0, N = ve({
|
|
780
783
|
getMediaUrl: C,
|
|
781
|
-
getMediaName:
|
|
782
|
-
getStatusLabel:
|
|
784
|
+
getMediaName: w,
|
|
785
|
+
getStatusLabel: ee,
|
|
783
786
|
formatRelativeTime: ne
|
|
784
|
-
}), se = N.getMediaUrl ??
|
|
785
|
-
if (!
|
|
786
|
-
let e =
|
|
787
|
-
return e === "" ?
|
|
788
|
-
}, [
|
|
787
|
+
}), se = N.getMediaUrl ?? Ne, P = N.getMediaName ?? Pe, F = N.getStatusLabel ?? Fe, I = N.formatRelativeTime, L = e.user?.name ?? M.fallbackAuthor, z = e.user?.avatar ?? void 0, ce = B(() => {
|
|
788
|
+
if (!L) return Me;
|
|
789
|
+
let e = L.trim();
|
|
790
|
+
return e === "" ? Me : e.charAt(0).toUpperCase();
|
|
791
|
+
}, [L]), V = B(() => Array.isArray(e.tagsArray) ? e.tagsArray.filter((e) => typeof e == "string") : e.tagsArray && typeof e.tagsArray == "object" ? Object.values(e.tagsArray).filter((e) => typeof e == "string") : [], [e.tagsArray]), U = B(() => (e.attachments ?? []).filter((e) => !!e && typeof e == "object"), [e.attachments]), le = ae ? e.reactions ?? [] : [], K = e.isPinned === !0, de = e.isEdited === !0, q = e.status && e.status !== "active", fe = q && e.status ? F(e.status) : null, J = e.canDelete === !0 || t === !0, pe = e.canEdit === !0 || t === !0, Y = !!oe && !!g && !!e.id, Q = !!ae && !!h && !!e.id, ye = !!l && !!t, xe = !!pe && !!s && !!e.id, Se = !!J && !!r && !!e.id, Ce = Y || Q || ye || xe || Se, $ = _(), [we, Te] = H(null), Ee = R((e) => {
|
|
789
792
|
Te(e), $.show();
|
|
790
|
-
}, [$]), Oe =
|
|
791
|
-
return /* @__PURE__ */
|
|
792
|
-
className: i("comment-item--component group relative overflow-hidden rounded-radius border transition-colors", "border-border/60 bg-card
|
|
793
|
+
}, [$]), Oe = U.length > 0;
|
|
794
|
+
return /* @__PURE__ */ G("article", {
|
|
795
|
+
className: i("comment-item--component group relative overflow-hidden rounded-radius border transition-colors", "border-border/60 bg-card px-surface pt-surface", Ce ? "pb-surface-xs" : "pb-surface"),
|
|
793
796
|
"data-comment-id": e.id,
|
|
794
|
-
children: [/* @__PURE__ */
|
|
797
|
+
children: [/* @__PURE__ */ G(m, {
|
|
795
798
|
direction: "horizontal",
|
|
796
799
|
align: "start",
|
|
797
800
|
gap: "lg",
|
|
798
801
|
className: "min-w-0",
|
|
799
|
-
children: [/* @__PURE__ */
|
|
802
|
+
children: [/* @__PURE__ */ G(O, {
|
|
800
803
|
className: "mt-0.5 size-avatar shrink-0",
|
|
801
|
-
children: [!!
|
|
802
|
-
src:
|
|
803
|
-
alt:
|
|
804
|
-
}), /* @__PURE__ */
|
|
804
|
+
children: [!!z && /* @__PURE__ */ W(te, {
|
|
805
|
+
src: z,
|
|
806
|
+
alt: L
|
|
807
|
+
}), /* @__PURE__ */ W(D, {
|
|
805
808
|
className: "bg-muted text-muted-foreground text-xs font-medium",
|
|
806
|
-
children:
|
|
809
|
+
children: ce
|
|
807
810
|
})]
|
|
808
|
-
}), /* @__PURE__ */
|
|
811
|
+
}), /* @__PURE__ */ G("div", {
|
|
809
812
|
className: "comment-item--body min-w-0 flex-1",
|
|
810
813
|
children: [
|
|
811
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ G(m, {
|
|
812
815
|
direction: "horizontal",
|
|
813
816
|
align: "baseline",
|
|
814
817
|
gap: "md",
|
|
815
818
|
className: "min-w-0",
|
|
816
819
|
children: [
|
|
817
|
-
/* @__PURE__ */
|
|
820
|
+
/* @__PURE__ */ W(c, {
|
|
818
821
|
tag: "span",
|
|
819
822
|
weight: "semibold",
|
|
820
823
|
className: "truncate",
|
|
821
|
-
children:
|
|
824
|
+
children: L
|
|
822
825
|
}),
|
|
823
|
-
!!K && /* @__PURE__ */
|
|
826
|
+
!!K && /* @__PURE__ */ W(f, {
|
|
824
827
|
delayDuration: 0,
|
|
825
|
-
children: /* @__PURE__ */
|
|
826
|
-
render: /* @__PURE__ */
|
|
827
|
-
children: /* @__PURE__ */
|
|
828
|
-
className: "text-
|
|
828
|
+
children: /* @__PURE__ */ G(p, { children: [/* @__PURE__ */ W(u, {
|
|
829
|
+
render: /* @__PURE__ */ W("span", { className: "inline-flex shrink-0 self-center" }),
|
|
830
|
+
children: /* @__PURE__ */ W(he, {
|
|
831
|
+
className: "text-muted-foreground size-icon-sm",
|
|
829
832
|
"aria-hidden": !0
|
|
830
833
|
})
|
|
831
|
-
}), /* @__PURE__ */
|
|
834
|
+
}), /* @__PURE__ */ W(d, {
|
|
832
835
|
side: "top",
|
|
833
836
|
className: "text-xs",
|
|
834
837
|
children: M.pinned
|
|
835
838
|
})] })
|
|
836
839
|
}),
|
|
837
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ W(E, {
|
|
838
841
|
value: e.createdAt,
|
|
839
|
-
formatRelativeTime:
|
|
842
|
+
formatRelativeTime: I,
|
|
840
843
|
size: "xs",
|
|
841
844
|
className: "shrink-0 tabular-nums"
|
|
842
845
|
}),
|
|
843
|
-
!!de && /* @__PURE__ */
|
|
846
|
+
!!de && /* @__PURE__ */ W(c, {
|
|
844
847
|
tag: "span",
|
|
845
848
|
size: "xs",
|
|
846
849
|
type: "secondary",
|
|
847
850
|
className: "shrink-0",
|
|
848
851
|
children: M.edited
|
|
849
852
|
}),
|
|
850
|
-
!!q && !!fe && /* @__PURE__ */
|
|
853
|
+
!!q && !!fe && /* @__PURE__ */ W(k, {
|
|
851
854
|
size: "sm",
|
|
852
855
|
tone: "secondary",
|
|
853
856
|
className: "self-center",
|
|
@@ -855,32 +858,32 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
855
858
|
})
|
|
856
859
|
]
|
|
857
860
|
}),
|
|
858
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ W("div", {
|
|
859
862
|
className: "mt-1 leading-relaxed",
|
|
860
|
-
children: /* @__PURE__ */
|
|
863
|
+
children: /* @__PURE__ */ W(De, {
|
|
861
864
|
comment: e,
|
|
862
865
|
resources: re,
|
|
863
866
|
renderReference: ie,
|
|
864
867
|
sanitizer: x
|
|
865
868
|
})
|
|
866
869
|
}),
|
|
867
|
-
|
|
870
|
+
V.length > 0 && /* @__PURE__ */ W("div", {
|
|
868
871
|
className: "mt-space-md flex flex-wrap gap-space-sm",
|
|
869
|
-
children:
|
|
872
|
+
children: V.map((e) => /* @__PURE__ */ W(k, {
|
|
870
873
|
size: "sm",
|
|
871
874
|
tone: "secondary",
|
|
872
875
|
children: e
|
|
873
876
|
}, e))
|
|
874
877
|
}),
|
|
875
|
-
Oe && /* @__PURE__ */
|
|
878
|
+
Oe && /* @__PURE__ */ W("div", {
|
|
876
879
|
className: "mt-space-md flex flex-wrap gap-space-sm",
|
|
877
|
-
children:
|
|
878
|
-
if (j) return /* @__PURE__ */
|
|
879
|
-
let t = !!
|
|
880
|
-
return /* @__PURE__ */
|
|
880
|
+
children: U.map((e) => {
|
|
881
|
+
if (j) return /* @__PURE__ */ W("div", { children: j(e) }, e.id ?? e.name);
|
|
882
|
+
let t = !!o && !!e.id && J;
|
|
883
|
+
return /* @__PURE__ */ W(be, {
|
|
881
884
|
attachment: e,
|
|
882
885
|
editable: t,
|
|
883
|
-
onRemove: t ? () =>
|
|
886
|
+
onRemove: t ? () => Ee(e.id) : void 0,
|
|
884
887
|
accessors: {
|
|
885
888
|
getMediaUrl: se,
|
|
886
889
|
getMediaName: P
|
|
@@ -889,13 +892,13 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
889
892
|
}, e.id ?? e.name);
|
|
890
893
|
})
|
|
891
894
|
}),
|
|
892
|
-
|
|
895
|
+
le.length > 0 && /* @__PURE__ */ W(m, {
|
|
893
896
|
direction: "horizontal",
|
|
894
897
|
wrap: !0,
|
|
895
898
|
align: "center",
|
|
896
899
|
gap: "xs",
|
|
897
900
|
className: "mt-space-md",
|
|
898
|
-
children:
|
|
901
|
+
children: le.map((t) => /* @__PURE__ */ W("button", {
|
|
899
902
|
type: "button",
|
|
900
903
|
"aria-label": n(M.reactionLabel ?? X.reactionLabel, {
|
|
901
904
|
emoji: t.emoji,
|
|
@@ -905,18 +908,18 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
905
908
|
onClick: () => h && e.id ? h(e.id, t.emoji) : void 0,
|
|
906
909
|
title: t.users?.join(", "),
|
|
907
910
|
className: i(A.inline, A.focus),
|
|
908
|
-
children: /* @__PURE__ */
|
|
911
|
+
children: /* @__PURE__ */ G(k, {
|
|
909
912
|
size: "sm",
|
|
910
|
-
tone: t.mine ? "
|
|
913
|
+
tone: t.mine ? "info" : "secondary",
|
|
911
914
|
className: "cursor-pointer transition-colors hover:opacity-90",
|
|
912
|
-
children: [/* @__PURE__ */
|
|
915
|
+
children: [/* @__PURE__ */ W(c, {
|
|
913
916
|
tag: "span",
|
|
914
917
|
size: "inherit",
|
|
915
918
|
lineHeight: "none",
|
|
916
919
|
className: "text-inherit",
|
|
917
920
|
"aria-hidden": !0,
|
|
918
921
|
children: t.emoji
|
|
919
|
-
}), /* @__PURE__ */
|
|
922
|
+
}), /* @__PURE__ */ W(T, {
|
|
920
923
|
value: t.count,
|
|
921
924
|
size: "inherit",
|
|
922
925
|
align: "left",
|
|
@@ -925,21 +928,21 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
925
928
|
})
|
|
926
929
|
}, t.emoji))
|
|
927
930
|
}),
|
|
928
|
-
Ce && /* @__PURE__ */
|
|
929
|
-
className: i("comment-item--actions relative mt-space-
|
|
931
|
+
Ce && /* @__PURE__ */ G("div", {
|
|
932
|
+
className: i("comment-item--actions relative mt-space-xs ms-auto w-fit max-w-full flex-wrap opacity-100 transition-opacity", "group-hover:opacity-100 focus-within:opacity-100", "inline-flex items-center gap-space-2xs"),
|
|
930
933
|
children: [
|
|
931
|
-
|
|
934
|
+
Y && /* @__PURE__ */ W(a, {
|
|
932
935
|
type: "button",
|
|
933
936
|
size: "sm",
|
|
934
937
|
iconOnly: !0,
|
|
935
938
|
tone: "secondary",
|
|
936
939
|
buttonStyle: "ghost",
|
|
937
|
-
onClick: () => e.id &&
|
|
940
|
+
onClick: () => e.id && g(e.id),
|
|
938
941
|
title: M.replyLabel,
|
|
939
942
|
"aria-label": M.replyLabel,
|
|
940
|
-
children: /* @__PURE__ */
|
|
943
|
+
children: /* @__PURE__ */ W(ue, { className: "size-icon-md" })
|
|
941
944
|
}),
|
|
942
|
-
|
|
945
|
+
Q && /* @__PURE__ */ W(a, {
|
|
943
946
|
type: "button",
|
|
944
947
|
size: "sm",
|
|
945
948
|
iconOnly: !0,
|
|
@@ -948,20 +951,20 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
948
951
|
onClick: () => e.id && h(e.id, "👍"),
|
|
949
952
|
title: M.addReactionLabel,
|
|
950
953
|
"aria-label": M.addReactionLabel,
|
|
951
|
-
children: /* @__PURE__ */
|
|
954
|
+
children: /* @__PURE__ */ W(ge, { className: "size-icon-md" })
|
|
952
955
|
}),
|
|
953
|
-
|
|
956
|
+
ye && /* @__PURE__ */ W(a, {
|
|
954
957
|
type: "button",
|
|
955
958
|
size: "sm",
|
|
956
959
|
iconOnly: !0,
|
|
957
960
|
tone: "secondary",
|
|
958
961
|
buttonStyle: "ghost",
|
|
959
|
-
onClick: () =>
|
|
962
|
+
onClick: () => l(e),
|
|
960
963
|
title: K ? M.unpinLabel : M.pinLabel,
|
|
961
964
|
"aria-label": K ? M.unpinLabel : M.pinLabel,
|
|
962
|
-
children: /* @__PURE__ */
|
|
965
|
+
children: /* @__PURE__ */ W(he, { className: i("size-icon-md", K && "text-foreground") })
|
|
963
966
|
}),
|
|
964
|
-
xe && /* @__PURE__ */
|
|
967
|
+
xe && /* @__PURE__ */ W(a, {
|
|
965
968
|
type: "button",
|
|
966
969
|
size: "sm",
|
|
967
970
|
iconOnly: !0,
|
|
@@ -970,41 +973,41 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
970
973
|
title: M.editLabel,
|
|
971
974
|
"aria-label": M.editLabel,
|
|
972
975
|
onClick: () => s(e),
|
|
973
|
-
children: /* @__PURE__ */
|
|
976
|
+
children: /* @__PURE__ */ W(me, { className: "size-icon-md" })
|
|
974
977
|
}),
|
|
975
|
-
Se && /* @__PURE__ */
|
|
978
|
+
Se && /* @__PURE__ */ W(a, {
|
|
976
979
|
type: "button",
|
|
977
980
|
size: "sm",
|
|
978
981
|
iconOnly: !0,
|
|
979
982
|
tone: "secondary",
|
|
980
983
|
buttonStyle: "ghost",
|
|
981
|
-
className: "hover:
|
|
984
|
+
className: "hover:text-destructive",
|
|
982
985
|
onClick: () => r(e.id),
|
|
983
986
|
title: M.deleteLabel,
|
|
984
987
|
"aria-label": M.deleteLabel,
|
|
985
|
-
children: /* @__PURE__ */
|
|
988
|
+
children: /* @__PURE__ */ W(_e, { className: "size-icon-md" })
|
|
986
989
|
})
|
|
987
990
|
]
|
|
988
991
|
})
|
|
989
992
|
]
|
|
990
993
|
})]
|
|
991
|
-
}), !!
|
|
994
|
+
}), !!o && /* @__PURE__ */ W(v, {
|
|
992
995
|
...$.overlayProps,
|
|
993
996
|
destructive: !0,
|
|
994
997
|
title: M.confirmRemoveAttachmentTitle,
|
|
995
998
|
description: M.confirmRemoveAttachmentDescription,
|
|
996
999
|
strings: { confirm: M.attachmentRemoveLabel },
|
|
997
1000
|
onConfirm: () => {
|
|
998
|
-
we && e.id &&
|
|
1001
|
+
we && e.id && o(e.id, we);
|
|
999
1002
|
}
|
|
1000
1003
|
})]
|
|
1001
1004
|
});
|
|
1002
|
-
}),
|
|
1003
|
-
return e.length ? /* @__PURE__ */
|
|
1005
|
+
}), Le = function({ comments: e, canModerate: t, onDelete: n, onAttachmentRemove: r, onEdit: i, onPinToggle: a, onReact: o, onReply: s, allowReactions: c, allowReplies: l, sanitizer: u, strings: d, getMediaUrl: f, getMediaName: p, getStatusLabel: h, formatRelativeTime: g, resources: _, renderItem: v, renderAttachment: y, renderReference: b, emptySlot: x }) {
|
|
1006
|
+
return e.length ? /* @__PURE__ */ W(m, {
|
|
1004
1007
|
gap: "sm",
|
|
1005
1008
|
className: "comment-timeline--component",
|
|
1006
1009
|
children: e.map((e, m) => {
|
|
1007
|
-
let x = /* @__PURE__ */
|
|
1010
|
+
let x = /* @__PURE__ */ W(Ie, {
|
|
1008
1011
|
comment: e,
|
|
1009
1012
|
canModerate: t,
|
|
1010
1013
|
onDelete: n,
|
|
@@ -1025,27 +1028,27 @@ var je = "?", Me = (e) => e?.url, Ne = (e) => e?.name, Pe = (e) => e.charAt(0).t
|
|
|
1025
1028
|
renderAttachment: y,
|
|
1026
1029
|
renderReference: b
|
|
1027
1030
|
});
|
|
1028
|
-
return v ? /* @__PURE__ */
|
|
1031
|
+
return v ? /* @__PURE__ */ W("div", { children: v({
|
|
1029
1032
|
comment: e,
|
|
1030
1033
|
canModerate: t ?? !1,
|
|
1031
1034
|
onDelete: n,
|
|
1032
1035
|
onAttachmentRemove: r,
|
|
1033
1036
|
onEdit: i,
|
|
1034
1037
|
defaultItem: x
|
|
1035
|
-
}) }, e.id ?? `comment-${m}`) : /* @__PURE__ */
|
|
1038
|
+
}) }, e.id ?? `comment-${m}`) : /* @__PURE__ */ W("div", { children: x }, e.id ?? `comment-${m}`);
|
|
1036
1039
|
})
|
|
1037
|
-
}) : /* @__PURE__ */ U
|
|
1040
|
+
}) : /* @__PURE__ */ W(U, { children: x ?? /* @__PURE__ */ W(Ee, { strings: d }) });
|
|
1038
1041
|
};
|
|
1039
1042
|
//#endregion
|
|
1040
1043
|
//#region src/components/features/comments/comments.tsx
|
|
1041
|
-
function
|
|
1042
|
-
let n = e(), r = t.composerPosition ?? n.composerPosition ?? "top", a = t.maxAttachments ?? 5,
|
|
1044
|
+
function Re(t) {
|
|
1045
|
+
let n = e(), r = t.composerPosition ?? n.composerPosition ?? "top", a = t.maxAttachments ?? 5, o = t.allowAttachments ?? !0, s = t.allowReactions ?? !0, l = t.allowReplies ?? !0, u = t.canComment ?? !1, d = t.canModerate ?? !1, f = t.onPinToggle, p = t.resources, h = t.attachments, g = Z(t.strings), y = t.title === void 0 ? g.title : t.title, b = t.confirmDelete ?? !0, x = _(), [S, C] = H(null), w = Q({
|
|
1043
1046
|
onSubmit: t.onSubmit,
|
|
1044
1047
|
onUpdate: t.onUpdate,
|
|
1045
1048
|
onDelete: t.onDelete,
|
|
1046
1049
|
onAfterMutate: t.onAfterMutate,
|
|
1047
1050
|
onError: t.onError
|
|
1048
|
-
}),
|
|
1051
|
+
}), ee = R((e) => {
|
|
1049
1052
|
if (!b) {
|
|
1050
1053
|
w.deleteComment(e);
|
|
1051
1054
|
return;
|
|
@@ -1055,24 +1058,24 @@ function Le(t) {
|
|
|
1055
1058
|
b,
|
|
1056
1059
|
w,
|
|
1057
1060
|
x
|
|
1058
|
-
]),
|
|
1059
|
-
let t =
|
|
1060
|
-
t &&
|
|
1061
|
+
]), T = w.startReply, E = t.comments, D = t.onReply, O = R((e) => {
|
|
1062
|
+
let t = E.find((t) => t.id === e);
|
|
1063
|
+
t && T(t), D?.(e);
|
|
1061
1064
|
}, [
|
|
1065
|
+
E,
|
|
1062
1066
|
D,
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
]), A = w.composerMode.kind === "editing" ? w.composerMode.comment : void 0, ee = w.composerMode.kind === "replying" ? {
|
|
1067
|
+
T
|
|
1068
|
+
]), te = w.composerMode.kind === "editing" ? w.composerMode.comment : void 0, k = w.composerMode.kind === "replying" ? {
|
|
1066
1069
|
commentId: w.composerMode.commentId,
|
|
1067
1070
|
authorName: w.composerMode.authorName
|
|
1068
|
-
} : void 0,
|
|
1071
|
+
} : void 0, A = t.composerSlot ?? (u ? /* @__PURE__ */ W($, {
|
|
1069
1072
|
context: t.context,
|
|
1070
1073
|
canComment: u,
|
|
1071
1074
|
submitting: w.isSubmitting,
|
|
1072
1075
|
errors: w.formErrors,
|
|
1073
1076
|
resetKey: w.resetKey,
|
|
1074
|
-
editingComment:
|
|
1075
|
-
replyingTo:
|
|
1077
|
+
editingComment: te,
|
|
1078
|
+
replyingTo: k,
|
|
1076
1079
|
onCancel: w.composerMode.kind === "idle" ? void 0 : w.cancelComposerMode,
|
|
1077
1080
|
onSubmit: w.submit,
|
|
1078
1081
|
strings: t.strings,
|
|
@@ -1080,17 +1083,17 @@ function Le(t) {
|
|
|
1080
1083
|
onResourceSearch: t.onResourceSearch,
|
|
1081
1084
|
attachments: h,
|
|
1082
1085
|
maxAttachments: a,
|
|
1083
|
-
allowAttachments:
|
|
1084
|
-
}) : null), ne = /* @__PURE__ */
|
|
1086
|
+
allowAttachments: o
|
|
1087
|
+
}) : null), ne = /* @__PURE__ */ W(Le, {
|
|
1085
1088
|
comments: t.comments,
|
|
1086
1089
|
canModerate: d,
|
|
1087
|
-
onDelete: t.onDelete ?
|
|
1090
|
+
onDelete: t.onDelete ? ee : void 0,
|
|
1088
1091
|
onAttachmentRemove: t.onAttachmentRemove,
|
|
1089
1092
|
onEdit: u && t.onUpdate ? w.startEdit : void 0,
|
|
1090
1093
|
onPinToggle: f,
|
|
1091
1094
|
onReact: t.onReact,
|
|
1092
|
-
onReply: u && l ?
|
|
1093
|
-
allowReactions:
|
|
1095
|
+
onReply: u && l ? O : void 0,
|
|
1096
|
+
allowReactions: s,
|
|
1094
1097
|
allowReplies: l,
|
|
1095
1098
|
sanitizer: t.sanitizer,
|
|
1096
1099
|
strings: t.strings,
|
|
@@ -1102,8 +1105,8 @@ function Le(t) {
|
|
|
1102
1105
|
renderItem: t.renderItem,
|
|
1103
1106
|
renderAttachment: t.renderAttachment,
|
|
1104
1107
|
renderReference: t.renderReference,
|
|
1105
|
-
emptySlot: t.emptySlot ?? /* @__PURE__ */
|
|
1106
|
-
}), re =
|
|
1108
|
+
emptySlot: t.emptySlot ?? /* @__PURE__ */ W(Ee, { strings: t.strings })
|
|
1109
|
+
}), re = A ? /* @__PURE__ */ W("div", { children: A }) : null, j = /* @__PURE__ */ G(m, {
|
|
1107
1110
|
gap: "xl",
|
|
1108
1111
|
className: "comments--body",
|
|
1109
1112
|
children: [
|
|
@@ -1116,32 +1119,32 @@ function Le(t) {
|
|
|
1116
1119
|
});
|
|
1117
1120
|
if (t.bare) return j;
|
|
1118
1121
|
let ie = typeof y == "string" ? y : void 0;
|
|
1119
|
-
return /* @__PURE__ */
|
|
1120
|
-
render: /* @__PURE__ */
|
|
1122
|
+
return /* @__PURE__ */ G(m, {
|
|
1123
|
+
render: /* @__PURE__ */ W("section", {}),
|
|
1121
1124
|
gap: "lg",
|
|
1122
1125
|
"data-component": "comments",
|
|
1123
1126
|
"data-slot": "comments",
|
|
1124
1127
|
className: i("comments--component", t.className),
|
|
1125
1128
|
"aria-label": ie,
|
|
1126
1129
|
children: [
|
|
1127
|
-
!(y === !1 || !y && !
|
|
1130
|
+
!(y === !1 || !y && !g.subtitle) && /* @__PURE__ */ G(m, {
|
|
1128
1131
|
gap: "normal",
|
|
1129
1132
|
className: "comments--header",
|
|
1130
|
-
children: [!!y && /* @__PURE__ */
|
|
1133
|
+
children: [!!y && /* @__PURE__ */ W(c, {
|
|
1131
1134
|
weight: "semibold",
|
|
1132
1135
|
children: y
|
|
1133
|
-
}), !!
|
|
1136
|
+
}), !!g.subtitle && /* @__PURE__ */ W(c, {
|
|
1134
1137
|
type: "secondary",
|
|
1135
|
-
children:
|
|
1138
|
+
children: g.subtitle
|
|
1136
1139
|
})]
|
|
1137
1140
|
}),
|
|
1138
1141
|
j,
|
|
1139
|
-
!!(b && t.onDelete) && /* @__PURE__ */
|
|
1142
|
+
!!(b && t.onDelete) && /* @__PURE__ */ W(v, {
|
|
1140
1143
|
...x.overlayProps,
|
|
1141
1144
|
destructive: !0,
|
|
1142
|
-
title:
|
|
1143
|
-
description:
|
|
1144
|
-
strings: { confirm:
|
|
1145
|
+
title: g.confirmDeleteTitle,
|
|
1146
|
+
description: g.confirmDeleteDescription,
|
|
1147
|
+
strings: { confirm: g.confirmDeleteLabel },
|
|
1145
1148
|
onAsyncConfirm: async () => {
|
|
1146
1149
|
S && await w.deleteComment(S);
|
|
1147
1150
|
},
|
|
@@ -1151,6 +1154,6 @@ function Le(t) {
|
|
|
1151
1154
|
});
|
|
1152
1155
|
}
|
|
1153
1156
|
//#endregion
|
|
1154
|
-
export {
|
|
1157
|
+
export { Ee as a, Se as c, ve as d, Z as f, De as i, be as l, Le as n, $ as o, X as p, Ie as r, Te as s, Re as t, Q as u };
|
|
1155
1158
|
|
|
1156
|
-
//# sourceMappingURL=comments-
|
|
1159
|
+
//# sourceMappingURL=comments-BpDuCUUu.js.map
|