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,36 +1,36 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { i, t as a } from "../structure-
|
|
7
|
-
import { h as o, p as s, t as c, v as l } from "../smart-card-
|
|
8
|
-
import { n as u, t as d } from "../feedback-
|
|
9
|
-
import { n as f, t as p } from "../action-menu-
|
|
10
|
-
import { n as m, r as h, t as g } from "../overlays-
|
|
3
|
+
import { t } from "../utils-l5LpDw2z.js";
|
|
4
|
+
import { n } from "../buttons-SbIcm1HJ.js";
|
|
5
|
+
import { s as r } from "../typography-DTRkE9zL.js";
|
|
6
|
+
import { i, t as a } from "../structure-DC2dygdA.js";
|
|
7
|
+
import { h as o, p as s, t as c, v as l } from "../smart-card-lFKxn5Hu.js";
|
|
8
|
+
import { n as u, t as d } from "../feedback-qNuMBtRH.js";
|
|
9
|
+
import { n as f, t as p } from "../action-menu-TzCoSlwL.js";
|
|
10
|
+
import { n as m, r as h, t as g } from "../overlays-I0axtYA6.js";
|
|
11
11
|
import { n as _ } from "../content-typography-CnwgMJ37.js";
|
|
12
|
-
import { t as v } from "../accordion-
|
|
13
|
-
import { t as y } from "../input-
|
|
14
|
-
import {
|
|
15
|
-
import { c as T } from "../
|
|
16
|
-
import {
|
|
17
|
-
import { t as
|
|
18
|
-
import { i as D, n as O, r as te, t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { n as
|
|
21
|
-
import { t as
|
|
22
|
-
import { a as
|
|
23
|
-
import { useEffect as
|
|
24
|
-
import { Fragment as
|
|
25
|
-
import { Bold as
|
|
26
|
-
import { EditorContent as
|
|
27
|
-
import
|
|
12
|
+
import { t as v } from "../accordion-B6a3vVgA.js";
|
|
13
|
+
import { t as y } from "../input-DWhBBBww.js";
|
|
14
|
+
import { t as b } from "../form-field-DUt4UxSV.js";
|
|
15
|
+
import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-aaK9wcDT.js";
|
|
16
|
+
import { l as E } from "../choice-inputs-t6w3ATNz.js";
|
|
17
|
+
import { t as ee } from "../scroll-area-Bt_vXY2b.js";
|
|
18
|
+
import { i as D, n as O, r as te, t as k } from "../tabs-DwBJfjxX.js";
|
|
19
|
+
import { t as A } from "../popover-menu-B71Tn2Qz.js";
|
|
20
|
+
import { n as j, t as M } from "../rich-text-editor.recipes-CadiF_Uu.js";
|
|
21
|
+
import { t as N } from "../rich-text-editor.strings-CB59ekH2.js";
|
|
22
|
+
import { a as P, c as F, i as I, l as L, n as R, o as z, r as B, s as V, t as H, u as U } from "../http-D_6rOnzU.js";
|
|
23
|
+
import { useEffect as W, useId as G, useImperativeHandle as K, useMemo as ne, useRef as q, useState as J } from "react";
|
|
24
|
+
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
25
|
+
import { Bold as re, Italic as ie, Link as ae, List as oe, ListOrdered as se, Plus as ce, Redo2 as le, Undo2 as ue, X as de } from "lucide-react";
|
|
26
|
+
import { EditorContent as fe, Node as pe, generateJSON as me, mergeAttributes as he, useEditor as ge } from "@tiptap/react";
|
|
27
|
+
import _e from "@tiptap/starter-kit";
|
|
28
28
|
//#region src/components/features/email-composer/partials/data-status.tsx
|
|
29
29
|
function Q(e) {
|
|
30
30
|
return !!(e?.loading || e?.error);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return e?.loading ? /* @__PURE__ */
|
|
32
|
+
function ve({ state: e, label: t, retryLabel: n, report: r }) {
|
|
33
|
+
return e?.loading ? /* @__PURE__ */ X(u, { label: t }) : e?.error ? /* @__PURE__ */ X(d, {
|
|
34
34
|
variant: "inline",
|
|
35
35
|
description: e.error,
|
|
36
36
|
retryLabel: n,
|
|
@@ -41,8 +41,8 @@ function ye({ state: e, label: t, retryLabel: n, report: r }) {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/components/features/email-composer/use-composer.ts
|
|
44
|
-
function
|
|
45
|
-
let n = e(
|
|
44
|
+
function ye(t) {
|
|
45
|
+
let n = e(U, t.strings), r = q(null);
|
|
46
46
|
r.current ||= structuredClone({
|
|
47
47
|
to: [],
|
|
48
48
|
cc: [],
|
|
@@ -50,12 +50,12 @@ function be(t) {
|
|
|
50
50
|
subject: "",
|
|
51
51
|
body: {
|
|
52
52
|
kind: "rich",
|
|
53
|
-
document:
|
|
53
|
+
document: L
|
|
54
54
|
},
|
|
55
55
|
placeholderOverrides: {},
|
|
56
56
|
...t.value ?? t.defaultValue
|
|
57
57
|
});
|
|
58
|
-
let [i, a] =
|
|
58
|
+
let [i, a] = J(r.current), o = t.value ?? i, s = q({
|
|
59
59
|
props: t,
|
|
60
60
|
draft: o,
|
|
61
61
|
strings: n
|
|
@@ -65,26 +65,26 @@ function be(t) {
|
|
|
65
65
|
draft: o,
|
|
66
66
|
strings: n
|
|
67
67
|
};
|
|
68
|
-
let c =
|
|
68
|
+
let c = q(o);
|
|
69
69
|
t.value !== void 0 && (c.current = t.value);
|
|
70
|
-
let l =
|
|
71
|
-
|
|
70
|
+
let l = q(null), u = q(null), [d, f] = J(!1), [p, m] = J(""), [h, g] = J(""), [_, v] = J(!1), [y, b] = J([]), x = q(!0);
|
|
71
|
+
W(() => (x.current = !0, () => {
|
|
72
72
|
x.current = !1;
|
|
73
73
|
}), []);
|
|
74
|
-
let S =
|
|
74
|
+
let S = ne(() => {
|
|
75
75
|
let e = Object.create(null);
|
|
76
76
|
for (let r of t.placeholders?.sets ?? []) for (let t of Object.keys(r.definitions)) {
|
|
77
77
|
if (Object.hasOwn(e, t)) throw Error(n.duplicateVariable(t));
|
|
78
78
|
r.definitions[t] && (e[t] = r.definitions[t]);
|
|
79
79
|
}
|
|
80
80
|
return e;
|
|
81
|
-
}, [t.placeholders?.sets, n]), C =
|
|
81
|
+
}, [t.placeholders?.sets, n]), C = ne(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = q(C);
|
|
82
82
|
if (w.current = C, new Set(C.map((e) => e.id)).size !== C.length) throw Error(n.duplicateTemplate);
|
|
83
|
-
let T = () => s.current.props.value ?? c.current,
|
|
84
|
-
let t = s.current.props.context, n =
|
|
83
|
+
let T = () => s.current.props.value ?? c.current, E = (e) => C.find((t) => t.id === e.templateId), ee = q(null), D = (e = T()) => {
|
|
84
|
+
let t = s.current.props.context, n = E(e), r = s.current.strings, i = ee.current;
|
|
85
85
|
if (i && i.draft === e && i.context === t && i.definitions === S && i.template === n && i.strings === r) return i.result;
|
|
86
|
-
let a =
|
|
87
|
-
return
|
|
86
|
+
let a = R(e, t, S, n, r);
|
|
87
|
+
return ee.current = {
|
|
88
88
|
draft: e,
|
|
89
89
|
context: t,
|
|
90
90
|
definitions: S,
|
|
@@ -106,54 +106,54 @@ function be(t) {
|
|
|
106
106
|
field: "placeholders",
|
|
107
107
|
message: t.dataUnavailable
|
|
108
108
|
}), n;
|
|
109
|
-
}, te = O().length > 0,
|
|
109
|
+
}, te = O().length > 0, k = (e = T()) => structuredClone([...O(), ...D(e).issues]), A = () => {
|
|
110
110
|
let e = T(), t = [...D(e).rendered?.unresolved ?? []];
|
|
111
111
|
return {
|
|
112
112
|
draft: structuredClone(e),
|
|
113
113
|
dirty: JSON.stringify(e) !== JSON.stringify(r.current),
|
|
114
114
|
busy: u.current !== null,
|
|
115
|
-
issues:
|
|
115
|
+
issues: k(e),
|
|
116
116
|
unresolvedPlaceholders: t
|
|
117
117
|
};
|
|
118
|
-
},
|
|
118
|
+
}, j = (e) => {
|
|
119
119
|
let t = e instanceof Error ? e : Error(String(e));
|
|
120
120
|
x.current && m(t.message), s.current.props.onError?.(t);
|
|
121
|
-
},
|
|
121
|
+
}, M = (e, t = "api", n = !1) => {
|
|
122
122
|
if (!x.current || !n && u.current && u.current !== "action") return;
|
|
123
123
|
let r = structuredClone(e(structuredClone(T())));
|
|
124
124
|
s.current.props.value === void 0 && (c.current = r, a(r)), s.current.props.onChange?.(structuredClone(r)), s.current.props.onEdit?.(structuredClone(r), { source: t }), m(""), g("");
|
|
125
|
-
},
|
|
126
|
-
async function
|
|
125
|
+
}, N = q(null);
|
|
126
|
+
async function P(e, t, n = !1) {
|
|
127
127
|
if (u.current && !(n && u.current === "action") || !x.current) return;
|
|
128
128
|
let r = {
|
|
129
129
|
kind: e,
|
|
130
130
|
settled: !1,
|
|
131
|
-
parent: n ?
|
|
131
|
+
parent: n ? N.current : null
|
|
132
132
|
};
|
|
133
|
-
|
|
133
|
+
N.current = r, u.current = e, f(!0), m(""), g("");
|
|
134
134
|
try {
|
|
135
135
|
await t();
|
|
136
136
|
} catch (e) {
|
|
137
|
-
|
|
137
|
+
j(e);
|
|
138
138
|
} finally {
|
|
139
|
-
if (r.settled = !0,
|
|
139
|
+
if (r.settled = !0, N.current === r) {
|
|
140
140
|
let e = r.parent;
|
|
141
141
|
for (; e?.settled;) e = e.parent;
|
|
142
|
-
|
|
142
|
+
N.current = e, u.current = e?.kind ?? null, x.current && f(e !== null);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
let
|
|
146
|
+
let F = () => {
|
|
147
147
|
if (!l.current) throw Error(n.editorNotReady);
|
|
148
148
|
if (T().body.kind === "html") throw Error(n.editableRequired);
|
|
149
149
|
return l.current.synchronize(T().body), l.current;
|
|
150
150
|
};
|
|
151
|
-
function
|
|
151
|
+
function I(e, t = {}, r = !1) {
|
|
152
152
|
if (!r && u.current && u.current !== "action") return;
|
|
153
153
|
let i = t.body ?? "replace";
|
|
154
154
|
if (i !== "replace" && (e.body.kind === "html" || T().body.kind === "html")) throw Error(n.editableRequired);
|
|
155
|
-
let a = i === "replace" ? e.body :
|
|
156
|
-
|
|
155
|
+
let a = i === "replace" ? e.body : F().insert(e.body, i);
|
|
156
|
+
M((n) => ({
|
|
157
157
|
...n,
|
|
158
158
|
body: a,
|
|
159
159
|
subject: t.subject === "preserve" ? n.subject : e.subject ?? n.subject,
|
|
@@ -161,66 +161,66 @@ function be(t) {
|
|
|
161
161
|
placeholderOverrides: t.overrides === "reset" ? {} : n.placeholderOverrides
|
|
162
162
|
}), "template", r);
|
|
163
163
|
}
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
getState: () =>
|
|
167
|
-
update: (e) =>
|
|
168
|
-
setSubject: (e) =>
|
|
169
|
-
setRecipients: (e, t) =>
|
|
170
|
-
setBody: (e) =>
|
|
171
|
-
importBody: (e) =>
|
|
172
|
-
setPlaceholder: (e, t) =>
|
|
173
|
-
clearPlaceholderOverride: (e) =>
|
|
174
|
-
insertPlaceholder: (e) =>
|
|
175
|
-
applyTemplate: (e, t) =>
|
|
176
|
-
insertText: (e) =>
|
|
177
|
-
focusBody: () =>
|
|
178
|
-
validate: () =>
|
|
179
|
-
prepare: () =>
|
|
180
|
-
send: () =>
|
|
181
|
-
discard: () =>
|
|
164
|
+
let z = q(null), B = q(null);
|
|
165
|
+
B.current ||= {
|
|
166
|
+
getState: () => z.current.getState(),
|
|
167
|
+
update: (e) => z.current.update(e),
|
|
168
|
+
setSubject: (e) => z.current.setSubject(e),
|
|
169
|
+
setRecipients: (e, t) => z.current.setRecipients(e, t),
|
|
170
|
+
setBody: (e) => z.current.setBody(e),
|
|
171
|
+
importBody: (e) => z.current.importBody(e),
|
|
172
|
+
setPlaceholder: (e, t) => z.current.setPlaceholder(e, t),
|
|
173
|
+
clearPlaceholderOverride: (e) => z.current.clearPlaceholderOverride(e),
|
|
174
|
+
insertPlaceholder: (e) => z.current.insertPlaceholder(e),
|
|
175
|
+
applyTemplate: (e, t) => z.current.applyTemplate(e, t),
|
|
176
|
+
insertText: (e) => z.current.insertText(e),
|
|
177
|
+
focusBody: () => z.current.focusBody(),
|
|
178
|
+
validate: () => z.current.validate(),
|
|
179
|
+
prepare: () => z.current.prepare(),
|
|
180
|
+
send: () => z.current.send(),
|
|
181
|
+
discard: () => z.current.discard()
|
|
182
182
|
};
|
|
183
|
-
let
|
|
183
|
+
let V = B.current, H = async () => {
|
|
184
184
|
if (O().length) throw Error(s.current.strings.dataUnavailable);
|
|
185
185
|
let e = D();
|
|
186
186
|
if (e.issues.length || !e.rendered) throw Error(e.issues.map((e) => e.message).join(" "));
|
|
187
187
|
return structuredClone(e.rendered.email);
|
|
188
|
-
},
|
|
188
|
+
}, G = (e = !1) => P("send", async () => {
|
|
189
189
|
let e = s.current.props;
|
|
190
190
|
v(!0);
|
|
191
|
-
let t = await
|
|
191
|
+
let t = await H();
|
|
192
192
|
if (e.onBeforeSend) {
|
|
193
|
-
let n = await e.onBeforeSend(t,
|
|
193
|
+
let n = await e.onBeforeSend(t, V);
|
|
194
194
|
if (n === !1 || !x.current) return;
|
|
195
195
|
t = n;
|
|
196
196
|
}
|
|
197
197
|
x.current && (t = structuredClone(t), await e.onSend(structuredClone(t)), x.current && (g(n.sent), e.onSent?.(t)));
|
|
198
|
-
}, e),
|
|
198
|
+
}, e), Y = (e = !1) => P("discard", async () => {
|
|
199
199
|
let e = s.current.props, t = T();
|
|
200
|
-
await e.onDiscard?.(
|
|
200
|
+
await e.onDiscard?.(V), x.current && T() === t && (M(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
|
|
201
201
|
}, e);
|
|
202
|
-
|
|
203
|
-
getState:
|
|
204
|
-
update: (e) =>
|
|
205
|
-
setSubject: (e) =>
|
|
202
|
+
z.current = {
|
|
203
|
+
getState: A,
|
|
204
|
+
update: (e) => M(e),
|
|
205
|
+
setSubject: (e) => M((t) => ({
|
|
206
206
|
...t,
|
|
207
207
|
subject: e
|
|
208
208
|
})),
|
|
209
|
-
setRecipients: (e, t) =>
|
|
209
|
+
setRecipients: (e, t) => M((n) => ({
|
|
210
210
|
...n,
|
|
211
211
|
[e]: t
|
|
212
212
|
})),
|
|
213
|
-
setBody: (e) =>
|
|
213
|
+
setBody: (e) => M((t) => ({
|
|
214
214
|
...t,
|
|
215
215
|
body: e
|
|
216
216
|
})),
|
|
217
|
-
importBody: (e) =>
|
|
217
|
+
importBody: (e) => M((t) => ({
|
|
218
218
|
...t,
|
|
219
219
|
body: e
|
|
220
220
|
})),
|
|
221
221
|
setPlaceholder: (e, t) => {
|
|
222
222
|
if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
|
|
223
|
-
|
|
223
|
+
M((n) => ({
|
|
224
224
|
...n,
|
|
225
225
|
placeholderOverrides: {
|
|
226
226
|
...n.placeholderOverrides,
|
|
@@ -228,20 +228,20 @@ function be(t) {
|
|
|
228
228
|
}
|
|
229
229
|
}), "placeholder");
|
|
230
230
|
},
|
|
231
|
-
clearPlaceholderOverride: (e) =>
|
|
231
|
+
clearPlaceholderOverride: (e) => M((t) => (delete t.placeholderOverrides[e], t), "placeholder"),
|
|
232
232
|
insertPlaceholder: (e) => {
|
|
233
233
|
if (u.current && u.current !== "action") return;
|
|
234
234
|
if (!Object.hasOwn(S, e)) throw Error(n.unknownVariable(e));
|
|
235
|
-
let t =
|
|
236
|
-
|
|
235
|
+
let t = F().insertPlaceholder(e);
|
|
236
|
+
M((e) => ({
|
|
237
237
|
...e,
|
|
238
238
|
body: t
|
|
239
239
|
}));
|
|
240
240
|
},
|
|
241
241
|
insertText: (e) => {
|
|
242
242
|
if (u.current && u.current !== "action") return;
|
|
243
|
-
let t =
|
|
244
|
-
|
|
243
|
+
let t = F().insertText(e);
|
|
244
|
+
M((e) => ({
|
|
245
245
|
...e,
|
|
246
246
|
body: t
|
|
247
247
|
}));
|
|
@@ -251,27 +251,27 @@ function be(t) {
|
|
|
251
251
|
if (Q(s.current.props.templates)) throw Error(s.current.strings.templatesUnavailable);
|
|
252
252
|
let r = C.find((t) => t.id === e);
|
|
253
253
|
if (!r) throw Error(n.unknownTemplate(e));
|
|
254
|
-
|
|
254
|
+
I(r, t);
|
|
255
255
|
},
|
|
256
|
-
validate: () =>
|
|
257
|
-
prepare:
|
|
258
|
-
send: () =>
|
|
259
|
-
discard: () =>
|
|
260
|
-
},
|
|
261
|
-
let
|
|
262
|
-
await e.onSelect(Object.assign(Object.create(
|
|
263
|
-
send: () =>
|
|
264
|
-
discard: () =>
|
|
256
|
+
validate: () => k(),
|
|
257
|
+
prepare: H,
|
|
258
|
+
send: () => G(),
|
|
259
|
+
discard: () => Y()
|
|
260
|
+
}, K(t.apiRef, () => V, [V]);
|
|
261
|
+
let X = (e) => P("action", async () => {
|
|
262
|
+
await e.onSelect(Object.assign(Object.create(V), {
|
|
263
|
+
send: () => G(!0),
|
|
264
|
+
discard: () => Y(!0)
|
|
265
265
|
}));
|
|
266
|
-
}),
|
|
266
|
+
}), Z = () => P("import", async () => {
|
|
267
267
|
let e = T(), t = await s.current.props.templates?.onImport?.();
|
|
268
268
|
if (t && x.current) {
|
|
269
269
|
if (w.current.some((e) => e.id === t.id)) throw Error(n.duplicateTemplate);
|
|
270
|
-
b((e) => [...e, structuredClone(t)]), T() === e &&
|
|
270
|
+
b((e) => [...e, structuredClone(t)]), T() === e && I(t, {}, !0);
|
|
271
271
|
}
|
|
272
|
-
}), { rendered:
|
|
272
|
+
}), { rendered: re, renderError: ie } = D(o);
|
|
273
273
|
return {
|
|
274
|
-
api:
|
|
274
|
+
api: V,
|
|
275
275
|
draft: o,
|
|
276
276
|
strings: n,
|
|
277
277
|
busy: d,
|
|
@@ -279,25 +279,25 @@ function be(t) {
|
|
|
279
279
|
error: p,
|
|
280
280
|
notice: h,
|
|
281
281
|
attempted: _,
|
|
282
|
-
rendered:
|
|
283
|
-
renderError:
|
|
282
|
+
rendered: re,
|
|
283
|
+
renderError: ie,
|
|
284
284
|
definitions: S,
|
|
285
285
|
templates: C,
|
|
286
|
-
values:
|
|
286
|
+
values: re?.email.resolvedPlaceholders ?? {},
|
|
287
287
|
editorRef: l,
|
|
288
|
-
state:
|
|
289
|
-
report:
|
|
290
|
-
runAction:
|
|
291
|
-
importTemplate:
|
|
292
|
-
changeBody: (e) =>
|
|
288
|
+
state: A(),
|
|
289
|
+
report: j,
|
|
290
|
+
runAction: X,
|
|
291
|
+
importTemplate: Z,
|
|
292
|
+
changeBody: (e) => M((t) => ({
|
|
293
293
|
...t,
|
|
294
294
|
body: e
|
|
295
295
|
}), "body"),
|
|
296
|
-
changeSubject: (e) =>
|
|
296
|
+
changeSubject: (e) => M((t) => ({
|
|
297
297
|
...t,
|
|
298
298
|
subject: e
|
|
299
299
|
}), "subject"),
|
|
300
|
-
changeRecipients: (e, t) =>
|
|
300
|
+
changeRecipients: (e, t) => M((n) => ({
|
|
301
301
|
...n,
|
|
302
302
|
[e]: t
|
|
303
303
|
}), "recipient")
|
|
@@ -305,20 +305,20 @@ function be(t) {
|
|
|
305
305
|
}
|
|
306
306
|
//#endregion
|
|
307
307
|
//#region src/components/features/email-composer/partials/recipients.tsx
|
|
308
|
-
function
|
|
309
|
-
let [d, f] =
|
|
310
|
-
|
|
311
|
-
f(
|
|
308
|
+
function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a, change: o, remove: s, add: c, id: l, errorId: u }) {
|
|
309
|
+
let [d, f] = J(I(e));
|
|
310
|
+
W(() => {
|
|
311
|
+
f(I(e));
|
|
312
312
|
}, [e.name, e.email]);
|
|
313
313
|
let p = r.mode === "readonly", m = r.mode === "disabled" || i, h = r.mode !== "disabled" && r.allowRemove !== !1 && (!p || r.allowRemove === !0), g = () => {
|
|
314
|
-
!p && !m && d !==
|
|
314
|
+
!p && !m && d !== I(e) && o({
|
|
315
315
|
id: e.id,
|
|
316
|
-
...
|
|
316
|
+
...B(d)
|
|
317
317
|
});
|
|
318
318
|
};
|
|
319
|
-
return /* @__PURE__ */
|
|
319
|
+
return /* @__PURE__ */ Z(x, {
|
|
320
320
|
className: "min-w-0 w-full",
|
|
321
|
-
children: [/* @__PURE__ */
|
|
321
|
+
children: [/* @__PURE__ */ X(S, {
|
|
322
322
|
id: l,
|
|
323
323
|
"aria-invalid": !!u,
|
|
324
324
|
"aria-describedby": u,
|
|
@@ -326,23 +326,23 @@ function xe({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
|
|
|
326
326
|
value: d,
|
|
327
327
|
readOnly: p,
|
|
328
328
|
disabled: m,
|
|
329
|
-
title:
|
|
329
|
+
title: I(e),
|
|
330
330
|
onChange: (e) => f(e.target.value),
|
|
331
331
|
onBlur: g,
|
|
332
332
|
onKeyDown: (t) => {
|
|
333
|
-
t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(
|
|
333
|
+
t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(I(e)));
|
|
334
334
|
}
|
|
335
|
-
}), (h || c) && /* @__PURE__ */
|
|
335
|
+
}), (h || c) && /* @__PURE__ */ Z(w, {
|
|
336
336
|
align: "inline-end",
|
|
337
|
-
children: [h && /* @__PURE__ */
|
|
337
|
+
children: [h && /* @__PURE__ */ X(T, {
|
|
338
338
|
type: "button",
|
|
339
339
|
iconOnly: !0,
|
|
340
340
|
size: "sm",
|
|
341
341
|
disabled: i,
|
|
342
342
|
"aria-label": a.removeRecipient(e.email),
|
|
343
343
|
onClick: s,
|
|
344
|
-
children: /* @__PURE__ */
|
|
345
|
-
}), c && /* @__PURE__ */
|
|
344
|
+
children: /* @__PURE__ */ X(de, { className: "size-icon" })
|
|
345
|
+
}), c && /* @__PURE__ */ X(T, {
|
|
346
346
|
type: "button",
|
|
347
347
|
iconOnly: !0,
|
|
348
348
|
size: "sm",
|
|
@@ -350,38 +350,38 @@ function xe({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
|
|
|
350
350
|
"aria-label": a.addRecipient(t),
|
|
351
351
|
title: a.addRecipient(t),
|
|
352
352
|
onClick: c,
|
|
353
|
-
children: /* @__PURE__ */
|
|
353
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
354
354
|
})]
|
|
355
355
|
})]
|
|
356
356
|
});
|
|
357
357
|
}
|
|
358
|
-
function
|
|
359
|
-
let [u, d] =
|
|
358
|
+
function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange: o, error: s, actions: c, report: l }) {
|
|
359
|
+
let [u, d] = J(!1), [f, p] = J(""), m = G(), h = s ? `${m}-error` : void 0, g = q(null), _ = n.mode !== "disabled" && n.allowAdd !== !1 && (n.mode !== "readonly" || n.allowAdd === !0), v = u || t.length === 0, y = Q(n), C = () => {
|
|
360
360
|
if (r || !_ || !v || y) return;
|
|
361
|
-
let e =
|
|
361
|
+
let e = B(f);
|
|
362
362
|
f.trim() && !t.some((t) => t.email.toLowerCase() === e.email.toLowerCase()) && o([...t, e]), p(""), d(!1);
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
W(() => {
|
|
365
365
|
u && g.current?.focus();
|
|
366
366
|
}, [u]);
|
|
367
|
-
let
|
|
368
|
-
v &&
|
|
367
|
+
let E = () => {
|
|
368
|
+
v && C(), d(!0), g.current?.focus();
|
|
369
369
|
};
|
|
370
|
-
return /* @__PURE__ */
|
|
370
|
+
return /* @__PURE__ */ X(b, {
|
|
371
371
|
label: i[e],
|
|
372
372
|
required: e === "to",
|
|
373
373
|
error: s,
|
|
374
374
|
supportingTextId: h,
|
|
375
375
|
htmlFor: t.length ? `${m}-0` : `${m}-new`,
|
|
376
|
-
children: /* @__PURE__ */
|
|
376
|
+
children: /* @__PURE__ */ Z(a, {
|
|
377
377
|
id: `${m}-group`,
|
|
378
378
|
gap: "sm",
|
|
379
|
-
children: [y ? /* @__PURE__ */
|
|
379
|
+
children: [y ? /* @__PURE__ */ X(ve, {
|
|
380
380
|
state: n,
|
|
381
381
|
label: i.loadingRecipients(i[e]),
|
|
382
382
|
retryLabel: i.retry,
|
|
383
383
|
report: l
|
|
384
|
-
}) : /* @__PURE__ */
|
|
384
|
+
}) : /* @__PURE__ */ Z(Y, { children: [t.map((a, s) => /* @__PURE__ */ X(be, {
|
|
385
385
|
id: `${m}-${s}`,
|
|
386
386
|
errorId: h,
|
|
387
387
|
recipient: a,
|
|
@@ -392,10 +392,10 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
392
392
|
strings: i,
|
|
393
393
|
change: (e) => o(t.map((t, n) => n === s ? e : t)),
|
|
394
394
|
remove: () => o(t.filter((e, t) => t !== s)),
|
|
395
|
-
add: _ && !v && s === t.length - 1 ?
|
|
396
|
-
}, a.id ?? s)), v && /* @__PURE__ */
|
|
395
|
+
add: _ && !v && s === t.length - 1 ? E : void 0
|
|
396
|
+
}, a.id ?? s)), v && /* @__PURE__ */ Z(x, {
|
|
397
397
|
className: "min-w-0 w-full",
|
|
398
|
-
children: [/* @__PURE__ */
|
|
398
|
+
children: [/* @__PURE__ */ X(S, {
|
|
399
399
|
id: `${m}-new`,
|
|
400
400
|
ref: g,
|
|
401
401
|
autoFocus: e !== "to",
|
|
@@ -407,13 +407,13 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
407
407
|
disabled: r || n.mode === "disabled",
|
|
408
408
|
readOnly: !_,
|
|
409
409
|
onChange: (e) => p(e.target.value),
|
|
410
|
-
onBlur:
|
|
410
|
+
onBlur: C,
|
|
411
411
|
onKeyDown: (e) => {
|
|
412
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
412
|
+
e.key === "Enter" && (e.preventDefault(), C()), e.key === "Escape" && (e.preventDefault(), p(""), d(!1));
|
|
413
413
|
}
|
|
414
|
-
}), _ && /* @__PURE__ */
|
|
414
|
+
}), _ && /* @__PURE__ */ X(w, {
|
|
415
415
|
align: "inline-end",
|
|
416
|
-
children: /* @__PURE__ */
|
|
416
|
+
children: /* @__PURE__ */ X(T, {
|
|
417
417
|
type: "button",
|
|
418
418
|
iconOnly: !0,
|
|
419
419
|
size: "sm",
|
|
@@ -421,11 +421,11 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
421
421
|
"aria-label": i.addRecipient(i[e]),
|
|
422
422
|
title: i.addRecipient(i[e]),
|
|
423
423
|
onMouseDown: (e) => e.preventDefault(),
|
|
424
|
-
onClick:
|
|
425
|
-
children: /* @__PURE__ */
|
|
424
|
+
onClick: E,
|
|
425
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
426
426
|
})
|
|
427
427
|
})]
|
|
428
|
-
})] }), c && /* @__PURE__ */
|
|
428
|
+
})] }), c && /* @__PURE__ */ X(a, {
|
|
429
429
|
direction: "horizontal",
|
|
430
430
|
gap: "xs",
|
|
431
431
|
justify: "end",
|
|
@@ -436,47 +436,47 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
436
436
|
}
|
|
437
437
|
//#endregion
|
|
438
438
|
//#region src/components/features/email-composer/partials/variables.tsx
|
|
439
|
-
function
|
|
440
|
-
let u =
|
|
441
|
-
return /* @__PURE__ */
|
|
439
|
+
function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c, editable: l }) {
|
|
440
|
+
let u = G();
|
|
441
|
+
return /* @__PURE__ */ X(i, {
|
|
442
442
|
minColumnWidth: "sm",
|
|
443
443
|
gap: "md",
|
|
444
444
|
children: Object.keys(e).map((i) => {
|
|
445
|
-
let d = e[i], f = Object.hasOwn(
|
|
445
|
+
let d = e[i], f = Object.hasOwn(r.placeholderOverrides, i), p = `${u}-email-variable-${i}`, m = {
|
|
446
446
|
id: p,
|
|
447
447
|
value: String(t[i] ?? ""),
|
|
448
448
|
disabled: c,
|
|
449
449
|
readOnly: !d.editable
|
|
450
|
-
}, h = d.input === "textarea" ? /* @__PURE__ */
|
|
450
|
+
}, h = d.input === "textarea" ? /* @__PURE__ */ X(C, {
|
|
451
451
|
...m,
|
|
452
452
|
onChange: (e) => o.setPlaceholder(i, e.target.value)
|
|
453
|
-
}) : d.input === "select" ? /* @__PURE__ */
|
|
453
|
+
}) : d.input === "select" ? /* @__PURE__ */ X(E, {
|
|
454
454
|
...m,
|
|
455
455
|
placeholder: s.choose,
|
|
456
456
|
options: [...d.options ?? []],
|
|
457
457
|
onValueChange: (e) => o.setPlaceholder(i, e ?? "")
|
|
458
|
-
}) : /* @__PURE__ */
|
|
458
|
+
}) : /* @__PURE__ */ X(y, {
|
|
459
459
|
...m,
|
|
460
460
|
type: d.input === "number" ? "number" : d.input === "date" ? "date" : "text",
|
|
461
461
|
onChange: (e) => o.setPlaceholder(i, d.input === "number" && e.target.value !== "" ? Number(e.target.value) : e.target.value)
|
|
462
462
|
});
|
|
463
|
-
return /* @__PURE__ */
|
|
463
|
+
return /* @__PURE__ */ X(b, {
|
|
464
464
|
label: d.group ? `${d.group} · ${d.label}` : d.label,
|
|
465
465
|
htmlFor: p,
|
|
466
466
|
required: d.required,
|
|
467
467
|
helperText: `${f ? s.overridden : s.dynamic}${d.description ? ` · ${d.description}` : ""}`,
|
|
468
|
-
children: /* @__PURE__ */
|
|
468
|
+
children: /* @__PURE__ */ Z(a, {
|
|
469
469
|
id: `${p}-group`,
|
|
470
470
|
direction: "horizontal",
|
|
471
471
|
gap: "sm",
|
|
472
472
|
align: "start",
|
|
473
473
|
wrap: !1,
|
|
474
474
|
children: [
|
|
475
|
-
/* @__PURE__ */
|
|
475
|
+
/* @__PURE__ */ X("div", {
|
|
476
476
|
className: "min-w-0 flex-1",
|
|
477
477
|
children: h
|
|
478
478
|
}),
|
|
479
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ X(n, {
|
|
480
480
|
type: "button",
|
|
481
481
|
iconOnly: !0,
|
|
482
482
|
size: "sm",
|
|
@@ -485,9 +485,9 @@ function Ce({ definitions: e, values: t, draft: n, api: o, strings: s, busy: c,
|
|
|
485
485
|
disabled: c || !l,
|
|
486
486
|
"aria-label": s.insertVariable(d.label),
|
|
487
487
|
onClick: () => o.insertPlaceholder(i),
|
|
488
|
-
children: /* @__PURE__ */
|
|
488
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
489
489
|
}),
|
|
490
|
-
f && /* @__PURE__ */
|
|
490
|
+
f && /* @__PURE__ */ X(n, {
|
|
491
491
|
type: "button",
|
|
492
492
|
size: "sm",
|
|
493
493
|
buttonStyle: "ghost",
|
|
@@ -504,7 +504,7 @@ function Ce({ definitions: e, values: t, draft: n, api: o, strings: s, busy: c,
|
|
|
504
504
|
}
|
|
505
505
|
//#endregion
|
|
506
506
|
//#region src/components/features/email-composer/partials/body-editor.tsx
|
|
507
|
-
var
|
|
507
|
+
var Ce = pe.create({
|
|
508
508
|
name: "placeholderToken",
|
|
509
509
|
group: "inline",
|
|
510
510
|
inline: !0,
|
|
@@ -516,7 +516,7 @@ var we = me.create({
|
|
|
516
516
|
parseHTML: () => [{ tag: "span[data-placeholder]" }],
|
|
517
517
|
renderHTML: ({ node: e, HTMLAttributes: t }) => [
|
|
518
518
|
"span",
|
|
519
|
-
|
|
519
|
+
he(t, {
|
|
520
520
|
"data-placeholder": e.attrs.key,
|
|
521
521
|
class: "rounded-inner bg-accent text-accent-foreground",
|
|
522
522
|
contenteditable: "false"
|
|
@@ -524,21 +524,21 @@ var we = me.create({
|
|
|
524
524
|
`{{${e.attrs.key}}}`
|
|
525
525
|
],
|
|
526
526
|
renderText: ({ node: e }) => `{{${e.attrs.key}}}`
|
|
527
|
-
}), $ = [
|
|
528
|
-
function
|
|
529
|
-
let u =
|
|
527
|
+
}), $ = [_e.configure({ link: { openOnClick: !1 } }), Ce];
|
|
528
|
+
function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
529
|
+
let u = q(i);
|
|
530
530
|
u.current = i;
|
|
531
|
-
let d =
|
|
531
|
+
let d = q(!1), [f, p] = J(!1), [m, g] = J(""), [v, x] = J(""), S = q({
|
|
532
532
|
from: 1,
|
|
533
533
|
to: 1
|
|
534
|
-
}),
|
|
534
|
+
}), C = e(N, {
|
|
535
535
|
editorLabel: l.body,
|
|
536
536
|
toolbar: l.toolbar
|
|
537
|
-
}),
|
|
537
|
+
}), w = ge({
|
|
538
538
|
extensions: $,
|
|
539
539
|
immediatelyRender: !1,
|
|
540
540
|
shouldRerenderOnTransaction: !0,
|
|
541
|
-
content: n.kind === "rich" ? n.document :
|
|
541
|
+
content: n.kind === "rich" ? n.document : F(n),
|
|
542
542
|
editable: !r,
|
|
543
543
|
editorProps: { attributes: {
|
|
544
544
|
role: "textbox",
|
|
@@ -553,27 +553,27 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
|
-
|
|
557
|
-
if (
|
|
558
|
-
let e = n.kind === "rich" ?
|
|
559
|
-
JSON.stringify(
|
|
556
|
+
W(() => {
|
|
557
|
+
if (w) try {
|
|
558
|
+
let e = n.kind === "rich" ? w.schema.nodeFromJSON(n.document).toJSON() : me(F(n), $);
|
|
559
|
+
JSON.stringify(w.getJSON()) !== JSON.stringify(e) && w.commands.setContent(e, { emitUpdate: !1 });
|
|
560
560
|
} catch {}
|
|
561
|
-
}),
|
|
562
|
-
|
|
561
|
+
}), W(() => {
|
|
562
|
+
w?.setEditable(!r && n.kind !== "html", !1);
|
|
563
563
|
}, [
|
|
564
|
-
|
|
564
|
+
w,
|
|
565
565
|
r,
|
|
566
566
|
n.kind
|
|
567
|
-
]),
|
|
567
|
+
]), W(() => {
|
|
568
568
|
(r || n.kind === "html") && p(!1);
|
|
569
|
-
}, [r, n.kind]),
|
|
569
|
+
}, [r, n.kind]), K(c, () => {
|
|
570
570
|
let e = (e) => {
|
|
571
|
-
if (!
|
|
571
|
+
if (!w) throw Error(l.editorNotReady);
|
|
572
572
|
d.current = !0;
|
|
573
573
|
try {
|
|
574
574
|
return e(), {
|
|
575
575
|
kind: "rich",
|
|
576
|
-
document:
|
|
576
|
+
document: w.getJSON()
|
|
577
577
|
};
|
|
578
578
|
} finally {
|
|
579
579
|
d.current = !1;
|
|
@@ -581,121 +581,121 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
581
581
|
};
|
|
582
582
|
return {
|
|
583
583
|
synchronize: (e) => {
|
|
584
|
-
if (!
|
|
585
|
-
let t = e.kind === "rich" ?
|
|
586
|
-
JSON.stringify(
|
|
584
|
+
if (!w) return;
|
|
585
|
+
let t = e.kind === "rich" ? w.schema.nodeFromJSON(e.document).toJSON() : me(F(e), $);
|
|
586
|
+
JSON.stringify(w.getJSON()) !== JSON.stringify(t) && w.commands.setContent(t, { emitUpdate: !1 });
|
|
587
587
|
},
|
|
588
588
|
focus: () => {
|
|
589
|
-
|
|
589
|
+
w?.commands.focus();
|
|
590
590
|
},
|
|
591
591
|
convert: (e) => ({
|
|
592
592
|
kind: "rich",
|
|
593
|
-
document: e.kind === "rich" ? e.document :
|
|
593
|
+
document: e.kind === "rich" ? e.document : me(F(e), $)
|
|
594
594
|
}),
|
|
595
595
|
insert: (t, n) => e(() => {
|
|
596
|
-
n === "append" &&
|
|
596
|
+
n === "append" && w.commands.focus("end"), w.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : F(t)).run();
|
|
597
597
|
}),
|
|
598
598
|
insertText: (t) => e(() => {
|
|
599
|
-
t &&
|
|
599
|
+
t && w.chain().focus().insertContent({
|
|
600
600
|
type: "text",
|
|
601
601
|
text: t
|
|
602
602
|
}).run();
|
|
603
603
|
}),
|
|
604
604
|
insertPlaceholder: (t) => e(() => {
|
|
605
|
-
|
|
605
|
+
w.chain().focus().insertContent({
|
|
606
606
|
type: "placeholderToken",
|
|
607
607
|
attrs: { key: t }
|
|
608
608
|
}).run();
|
|
609
609
|
})
|
|
610
610
|
};
|
|
611
|
-
}, [
|
|
612
|
-
let
|
|
611
|
+
}, [w, l]);
|
|
612
|
+
let T = [
|
|
613
613
|
{
|
|
614
614
|
id: "bold",
|
|
615
|
-
icon:
|
|
616
|
-
label:
|
|
617
|
-
isActive: () => !!
|
|
615
|
+
icon: re,
|
|
616
|
+
label: C.toolbar.bold,
|
|
617
|
+
isActive: () => !!w?.isActive("bold"),
|
|
618
618
|
run: () => {
|
|
619
|
-
|
|
619
|
+
w?.chain().focus().toggleBold().run();
|
|
620
620
|
}
|
|
621
621
|
},
|
|
622
622
|
{
|
|
623
623
|
id: "italic",
|
|
624
|
-
icon:
|
|
625
|
-
label:
|
|
626
|
-
isActive: () => !!
|
|
624
|
+
icon: ie,
|
|
625
|
+
label: C.toolbar.italic,
|
|
626
|
+
isActive: () => !!w?.isActive("italic"),
|
|
627
627
|
run: () => {
|
|
628
|
-
|
|
628
|
+
w?.chain().focus().toggleItalic().run();
|
|
629
629
|
}
|
|
630
630
|
},
|
|
631
631
|
{
|
|
632
632
|
id: "bullet",
|
|
633
|
-
icon:
|
|
634
|
-
label:
|
|
635
|
-
isActive: () => !!
|
|
633
|
+
icon: oe,
|
|
634
|
+
label: C.toolbar.bulletList,
|
|
635
|
+
isActive: () => !!w?.isActive("bulletList"),
|
|
636
636
|
run: () => {
|
|
637
|
-
|
|
637
|
+
w?.chain().focus().toggleBulletList().run();
|
|
638
638
|
}
|
|
639
639
|
},
|
|
640
640
|
{
|
|
641
641
|
id: "ordered",
|
|
642
|
-
icon:
|
|
643
|
-
label:
|
|
644
|
-
isActive: () => !!
|
|
642
|
+
icon: se,
|
|
643
|
+
label: C.toolbar.orderedList,
|
|
644
|
+
isActive: () => !!w?.isActive("orderedList"),
|
|
645
645
|
run: () => {
|
|
646
|
-
|
|
646
|
+
w?.chain().focus().toggleOrderedList().run();
|
|
647
647
|
}
|
|
648
648
|
},
|
|
649
649
|
{
|
|
650
650
|
id: "undo",
|
|
651
|
-
icon:
|
|
652
|
-
label:
|
|
651
|
+
icon: ue,
|
|
652
|
+
label: C.toolbar.undo,
|
|
653
653
|
isActive: () => !1,
|
|
654
654
|
run: () => {
|
|
655
|
-
|
|
655
|
+
w?.chain().focus().undo().run();
|
|
656
656
|
},
|
|
657
|
-
disabled: !
|
|
657
|
+
disabled: !w?.can().undo()
|
|
658
658
|
},
|
|
659
659
|
{
|
|
660
660
|
id: "redo",
|
|
661
661
|
icon: le,
|
|
662
|
-
label:
|
|
662
|
+
label: C.toolbar.redo,
|
|
663
663
|
isActive: () => !1,
|
|
664
664
|
run: () => {
|
|
665
|
-
|
|
665
|
+
w?.chain().focus().redo().run();
|
|
666
666
|
},
|
|
667
|
-
disabled: !
|
|
667
|
+
disabled: !w?.can().redo()
|
|
668
668
|
}
|
|
669
669
|
];
|
|
670
|
-
return /* @__PURE__ */
|
|
670
|
+
return /* @__PURE__ */ Z(a, {
|
|
671
671
|
gap: "none",
|
|
672
|
-
className: t("email-composer--editor",
|
|
672
|
+
className: t("email-composer--editor", M.frame, r && M.disabled),
|
|
673
673
|
children: [
|
|
674
|
-
/* @__PURE__ */
|
|
675
|
-
buttons:
|
|
674
|
+
/* @__PURE__ */ X(j, {
|
|
675
|
+
buttons: T,
|
|
676
676
|
disabled: r,
|
|
677
|
-
hasEditor: !!
|
|
677
|
+
hasEditor: !!w,
|
|
678
678
|
sourceMode: !1,
|
|
679
679
|
hideSourceToggle: !0,
|
|
680
680
|
toggleSourceMode: () => {},
|
|
681
|
-
strings:
|
|
681
|
+
strings: C,
|
|
682
682
|
extraToolbarItems: [{
|
|
683
683
|
id: "link",
|
|
684
|
-
icon:
|
|
684
|
+
icon: ae,
|
|
685
685
|
label: l.link,
|
|
686
686
|
onClick: () => {
|
|
687
|
-
|
|
688
|
-
from:
|
|
689
|
-
to:
|
|
690
|
-
}, g(String(
|
|
687
|
+
w && (S.current = {
|
|
688
|
+
from: w.state.selection.from,
|
|
689
|
+
to: w.state.selection.to
|
|
690
|
+
}, g(String(w.getAttributes("link").href ?? "")), x(""), p(!0));
|
|
691
691
|
}
|
|
692
692
|
}]
|
|
693
693
|
}),
|
|
694
|
-
/* @__PURE__ */
|
|
695
|
-
editor:
|
|
696
|
-
className: t(
|
|
694
|
+
/* @__PURE__ */ X(fe, {
|
|
695
|
+
editor: w,
|
|
696
|
+
className: t(M.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
|
|
697
697
|
}),
|
|
698
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ X(h, {
|
|
699
699
|
open: f,
|
|
700
700
|
onOpenChange: p,
|
|
701
701
|
title: l.linkTitle,
|
|
@@ -708,22 +708,22 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
708
708
|
onAsyncConfirm: async () => {
|
|
709
709
|
let e = m.trim();
|
|
710
710
|
if (e && !/^(https?:\/\/|mailto:)/i.test(e)) {
|
|
711
|
-
|
|
711
|
+
x(l.invalidLink);
|
|
712
712
|
return;
|
|
713
713
|
}
|
|
714
|
-
|
|
714
|
+
w?.commands.setTextSelection(S.current), e ? w?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : w?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
|
|
715
715
|
},
|
|
716
|
-
children: /* @__PURE__ */
|
|
716
|
+
children: /* @__PURE__ */ Z(a, {
|
|
717
717
|
gap: "md",
|
|
718
|
-
children: [/* @__PURE__ */
|
|
718
|
+
children: [/* @__PURE__ */ X(b, {
|
|
719
719
|
label: l.linkUrl,
|
|
720
|
-
children: /* @__PURE__ */
|
|
720
|
+
children: /* @__PURE__ */ X(y, {
|
|
721
721
|
value: m,
|
|
722
722
|
onChange: (e) => g(e.target.value)
|
|
723
723
|
})
|
|
724
|
-
}), v && /* @__PURE__ */
|
|
724
|
+
}), v && /* @__PURE__ */ X(s, {
|
|
725
725
|
tone: "destructive",
|
|
726
|
-
children: /* @__PURE__ */
|
|
726
|
+
children: /* @__PURE__ */ X(o, { children: v })
|
|
727
727
|
})]
|
|
728
728
|
})
|
|
729
729
|
})
|
|
@@ -732,22 +732,22 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
732
732
|
}
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/components/features/email-composer/partials/html-preview.tsx
|
|
735
|
-
function
|
|
736
|
-
return /* @__PURE__ */
|
|
735
|
+
function Te({ html: e, subject: t, strings: n }) {
|
|
736
|
+
return /* @__PURE__ */ Z(a, {
|
|
737
737
|
gap: "normal",
|
|
738
738
|
className: "min-w-0",
|
|
739
|
-
children: [/* @__PURE__ */
|
|
739
|
+
children: [/* @__PURE__ */ Z(r, {
|
|
740
740
|
type: "secondary",
|
|
741
741
|
children: [
|
|
742
|
-
|
|
742
|
+
n.subject,
|
|
743
743
|
": ",
|
|
744
744
|
t
|
|
745
745
|
]
|
|
746
|
-
}), /* @__PURE__ */
|
|
746
|
+
}), /* @__PURE__ */ X(c, {
|
|
747
747
|
surface: "card",
|
|
748
748
|
padding: "none",
|
|
749
|
-
children: /* @__PURE__ */
|
|
750
|
-
title:
|
|
749
|
+
children: /* @__PURE__ */ X("iframe", {
|
|
750
|
+
title: n.previewLabel,
|
|
751
751
|
sandbox: "",
|
|
752
752
|
referrerPolicy: "no-referrer",
|
|
753
753
|
className: "h-80 w-full border-0",
|
|
@@ -758,18 +758,18 @@ function Ee({ html: e, subject: t, strings: r }) {
|
|
|
758
758
|
}
|
|
759
759
|
//#endregion
|
|
760
760
|
//#region src/components/features/email-composer/email-composer.tsx
|
|
761
|
-
function
|
|
762
|
-
let
|
|
761
|
+
function Ee(e) {
|
|
762
|
+
let r = ye(e), { api: i, draft: u, strings: d, busy: _, state: x } = r, [S, C] = J("editor"), [w, T] = J(e.placeholders?.showEditor ?? !1), [E, j] = J(!1), [M, N] = J(!1), [P, F] = J(!1), I = G(), L = S === "preview" || u.body.kind === "html", R = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(x) ?? !0)).map((e) => ({
|
|
763
763
|
id: e.id,
|
|
764
764
|
label: e.label,
|
|
765
765
|
icon: e.icon,
|
|
766
|
-
disabled: _ || e.disabled?.(
|
|
766
|
+
disabled: _ || e.disabled?.(x),
|
|
767
767
|
onClick: () => {
|
|
768
|
-
|
|
768
|
+
r.runAction(e);
|
|
769
769
|
},
|
|
770
770
|
buttonStyle: "ghost",
|
|
771
771
|
tone: "secondary"
|
|
772
|
-
})),
|
|
772
|
+
})), z = /* @__PURE__ */ Z(a, {
|
|
773
773
|
direction: {
|
|
774
774
|
base: "vertical",
|
|
775
775
|
sm: "horizontal"
|
|
@@ -781,10 +781,10 @@ function De(e) {
|
|
|
781
781
|
},
|
|
782
782
|
justify: "between",
|
|
783
783
|
className: "w-full",
|
|
784
|
-
children: [/* @__PURE__ */
|
|
784
|
+
children: [/* @__PURE__ */ Z(a, {
|
|
785
785
|
direction: "horizontal",
|
|
786
786
|
gap: "sm",
|
|
787
|
-
children: [e.buttons?.discard !== !1 && /* @__PURE__ */
|
|
787
|
+
children: [e.buttons?.discard !== !1 && /* @__PURE__ */ X(n, {
|
|
788
788
|
type: "button",
|
|
789
789
|
tone: "secondary",
|
|
790
790
|
buttonStyle: "ghost",
|
|
@@ -793,115 +793,118 @@ function De(e) {
|
|
|
793
793
|
i.discard();
|
|
794
794
|
},
|
|
795
795
|
children: e.buttons?.discard?.label ?? d.discard
|
|
796
|
-
}), /* @__PURE__ */
|
|
797
|
-
}), /* @__PURE__ */
|
|
796
|
+
}), /* @__PURE__ */ X(p, { actions: R("footer-start") })]
|
|
797
|
+
}), /* @__PURE__ */ Z(a, {
|
|
798
798
|
direction: "horizontal",
|
|
799
799
|
gap: "sm",
|
|
800
800
|
justify: "end",
|
|
801
|
-
children: [
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}),
|
|
808
|
-
e.buttons?.send !== !1 && /* @__PURE__ */ X(r, {
|
|
801
|
+
children: [/* @__PURE__ */ X(p, { actions: R("footer-end") }), (e.buttons?.send !== !1 || !!R("overflow").length) && /* @__PURE__ */ Z(a, {
|
|
802
|
+
direction: "horizontal",
|
|
803
|
+
gap: "sm",
|
|
804
|
+
wrap: !1,
|
|
805
|
+
className: "email-composer--send-commands",
|
|
806
|
+
children: [e.buttons?.send !== !1 && /* @__PURE__ */ X(n, {
|
|
809
807
|
type: "button",
|
|
810
808
|
tone: "primary",
|
|
811
|
-
disabled: _ ||
|
|
809
|
+
disabled: _ || r.dataPending,
|
|
812
810
|
loading: _,
|
|
813
811
|
strings: { loading: d.working },
|
|
814
812
|
onClick: () => {
|
|
815
813
|
i.send();
|
|
816
814
|
},
|
|
817
|
-
children:
|
|
818
|
-
})
|
|
819
|
-
|
|
815
|
+
children: _ ? d.working : e.buttons?.send?.label ?? d.send
|
|
816
|
+
}), !!R("overflow").length && /* @__PURE__ */ X(f, {
|
|
817
|
+
actions: R("overflow"),
|
|
818
|
+
srText: d.more,
|
|
819
|
+
buttonProps: { disabled: _ }
|
|
820
|
+
})]
|
|
821
|
+
})]
|
|
820
822
|
})]
|
|
821
|
-
}),
|
|
823
|
+
}), B = (e) => r.attempted ? x.issues.find((t) => t.field === e)?.message : void 0, V = /* @__PURE__ */ Z(a, {
|
|
822
824
|
gap: "lg",
|
|
823
825
|
className: "email-composer--body min-w-0",
|
|
824
826
|
children: [
|
|
825
|
-
/* @__PURE__ */
|
|
827
|
+
/* @__PURE__ */ Z(a, {
|
|
826
828
|
gap: "md",
|
|
827
829
|
className: "email-composer--details",
|
|
828
|
-
children: [/* @__PURE__ */
|
|
830
|
+
children: [/* @__PURE__ */ X(a, {
|
|
829
831
|
gap: "md",
|
|
830
832
|
children: [
|
|
831
833
|
"to",
|
|
832
834
|
"cc",
|
|
833
835
|
"bcc"
|
|
834
|
-
].filter((t) => t === "to" || t === "cc" && (
|
|
836
|
+
].filter((t) => t === "to" || t === "cc" && (E || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (M || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ X(xe, {
|
|
835
837
|
field: t,
|
|
836
838
|
value: u[t],
|
|
837
839
|
options: e.recipients?.[t],
|
|
838
840
|
strings: d,
|
|
839
841
|
busy: _,
|
|
840
|
-
report:
|
|
841
|
-
error:
|
|
842
|
-
onChange: (e) =>
|
|
843
|
-
actions: t === "to" ? /* @__PURE__ */
|
|
842
|
+
report: r.report,
|
|
843
|
+
error: B(t),
|
|
844
|
+
onChange: (e) => r.changeRecipients(t, e),
|
|
845
|
+
actions: t === "to" ? /* @__PURE__ */ Z(Y, { children: [!E && !u.cc.length && /* @__PURE__ */ X(n, {
|
|
844
846
|
type: "button",
|
|
845
847
|
size: "sm",
|
|
846
848
|
buttonStyle: "ghost",
|
|
847
849
|
tone: "secondary",
|
|
848
850
|
disabled: _,
|
|
849
|
-
onClick: () =>
|
|
851
|
+
onClick: () => j(!0),
|
|
850
852
|
children: d.cc
|
|
851
|
-
}), !
|
|
853
|
+
}), !M && !u.bcc.length && /* @__PURE__ */ X(n, {
|
|
852
854
|
type: "button",
|
|
853
855
|
size: "sm",
|
|
854
856
|
buttonStyle: "ghost",
|
|
855
857
|
tone: "secondary",
|
|
856
858
|
disabled: _,
|
|
857
|
-
onClick: () =>
|
|
859
|
+
onClick: () => N(!0),
|
|
858
860
|
children: d.bcc
|
|
859
861
|
})] }) : void 0
|
|
860
862
|
}, t))
|
|
861
|
-
}), /* @__PURE__ */
|
|
863
|
+
}), /* @__PURE__ */ X(b, {
|
|
862
864
|
label: d.subject,
|
|
863
865
|
required: !0,
|
|
864
|
-
htmlFor: `${
|
|
865
|
-
error:
|
|
866
|
-
supportingTextId: `${
|
|
867
|
-
children: /* @__PURE__ */
|
|
868
|
-
id: `${
|
|
866
|
+
htmlFor: `${I}-subject`,
|
|
867
|
+
error: B("subject"),
|
|
868
|
+
supportingTextId: `${I}-subject-error`,
|
|
869
|
+
children: /* @__PURE__ */ X(y, {
|
|
870
|
+
id: `${I}-subject`,
|
|
869
871
|
value: u.subject,
|
|
870
872
|
readOnly: e.subject?.readOnly,
|
|
871
873
|
disabled: _,
|
|
872
|
-
invalid: !!
|
|
873
|
-
"aria-describedby":
|
|
874
|
-
onChange: (e) =>
|
|
874
|
+
invalid: !!B("subject"),
|
|
875
|
+
"aria-describedby": B("subject") ? `${I}-subject-error` : void 0,
|
|
876
|
+
onChange: (e) => r.changeSubject(e.target.value)
|
|
875
877
|
})
|
|
876
878
|
})]
|
|
877
879
|
}),
|
|
878
|
-
/* @__PURE__ */
|
|
879
|
-
value:
|
|
880
|
+
/* @__PURE__ */ X(k, {
|
|
881
|
+
value: L ? "preview" : "editor",
|
|
880
882
|
onValueChange: (e) => {
|
|
881
|
-
e &&
|
|
883
|
+
e && C(e);
|
|
882
884
|
},
|
|
883
|
-
children: /* @__PURE__ */
|
|
885
|
+
children: /* @__PURE__ */ Z(c, {
|
|
884
886
|
surface: "flat",
|
|
885
887
|
padding: "none",
|
|
886
888
|
contentGap: "md",
|
|
889
|
+
titleSize: "sm",
|
|
887
890
|
title: d.body,
|
|
888
|
-
headerAction: /* @__PURE__ */
|
|
891
|
+
headerAction: /* @__PURE__ */ Z(te, { children: [/* @__PURE__ */ X(D, {
|
|
889
892
|
value: "editor",
|
|
890
893
|
disabled: u.body.kind === "html",
|
|
891
894
|
children: d.editor
|
|
892
|
-
}), /* @__PURE__ */
|
|
895
|
+
}), /* @__PURE__ */ X(D, {
|
|
893
896
|
value: "preview",
|
|
894
897
|
children: d.preview
|
|
895
898
|
})] }),
|
|
896
899
|
children: [
|
|
897
|
-
(!!e.templates || !!
|
|
900
|
+
(!!e.templates || !!r.templates.length || R("toolbar").length > 0) && /* @__PURE__ */ Z(a, {
|
|
898
901
|
direction: "horizontal",
|
|
899
902
|
gap: "sm",
|
|
900
903
|
align: "center",
|
|
901
904
|
className: "email-composer--message-actions",
|
|
902
905
|
children: [
|
|
903
|
-
(e.templates || !!
|
|
904
|
-
trigger: /* @__PURE__ */
|
|
906
|
+
(e.templates || !!r.templates.length) && /* @__PURE__ */ X(A, {
|
|
907
|
+
trigger: /* @__PURE__ */ X(n, {
|
|
905
908
|
type: "button",
|
|
906
909
|
tone: "secondary",
|
|
907
910
|
buttonStyle: "outline",
|
|
@@ -909,7 +912,7 @@ function De(e) {
|
|
|
909
912
|
disabled: _,
|
|
910
913
|
children: d.templates
|
|
911
914
|
}),
|
|
912
|
-
items:
|
|
915
|
+
items: r.templates.map((e) => ({
|
|
913
916
|
value: e.id,
|
|
914
917
|
label: e.name,
|
|
915
918
|
description: e.description ?? e.category,
|
|
@@ -919,13 +922,13 @@ function De(e) {
|
|
|
919
922
|
try {
|
|
920
923
|
i.applyTemplate(e.value);
|
|
921
924
|
} catch (e) {
|
|
922
|
-
|
|
925
|
+
r.report(e);
|
|
923
926
|
}
|
|
924
927
|
},
|
|
925
928
|
loading: e.templates?.loading,
|
|
926
929
|
error: e.templates?.error,
|
|
927
930
|
onRetry: e.templates?.onRetry ? () => {
|
|
928
|
-
Promise.resolve().then(e.templates.onRetry).catch(
|
|
931
|
+
Promise.resolve().then(e.templates.onRetry).catch(r.report);
|
|
929
932
|
} : void 0,
|
|
930
933
|
onOpenChange: e.templates?.onOpenChange,
|
|
931
934
|
strings: {
|
|
@@ -935,88 +938,88 @@ function De(e) {
|
|
|
935
938
|
retry: d.retry
|
|
936
939
|
}
|
|
937
940
|
}),
|
|
938
|
-
e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */
|
|
941
|
+
e.templates?.allowImport && e.templates.onImport && /* @__PURE__ */ X(n, {
|
|
939
942
|
type: "button",
|
|
940
943
|
tone: "secondary",
|
|
941
944
|
buttonStyle: "ghost",
|
|
942
945
|
size: "sm",
|
|
943
946
|
disabled: _,
|
|
944
947
|
onClick: () => {
|
|
945
|
-
|
|
948
|
+
r.importTemplate();
|
|
946
949
|
},
|
|
947
950
|
children: d.importTemplate
|
|
948
951
|
}),
|
|
949
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ X(p, {
|
|
950
953
|
size: "sm",
|
|
951
|
-
actions:
|
|
954
|
+
actions: R("toolbar")
|
|
952
955
|
})
|
|
953
956
|
]
|
|
954
957
|
}),
|
|
955
|
-
/* @__PURE__ */
|
|
958
|
+
/* @__PURE__ */ X(O, {
|
|
956
959
|
value: "editor",
|
|
957
960
|
keepMounted: !0,
|
|
958
|
-
children: /* @__PURE__ */
|
|
961
|
+
children: /* @__PURE__ */ X(we, {
|
|
959
962
|
body: u.body,
|
|
960
|
-
disabled: _ ||
|
|
961
|
-
onChange:
|
|
962
|
-
adapterRef:
|
|
963
|
+
disabled: _ || L,
|
|
964
|
+
onChange: r.changeBody,
|
|
965
|
+
adapterRef: r.editorRef,
|
|
963
966
|
strings: d
|
|
964
967
|
})
|
|
965
968
|
}),
|
|
966
|
-
/* @__PURE__ */
|
|
969
|
+
/* @__PURE__ */ X(O, {
|
|
967
970
|
value: "preview",
|
|
968
|
-
children:
|
|
969
|
-
html:
|
|
970
|
-
subject:
|
|
971
|
+
children: r.rendered && /* @__PURE__ */ X(Te, {
|
|
972
|
+
html: r.rendered.email.html,
|
|
973
|
+
subject: r.rendered.email.subject,
|
|
971
974
|
strings: d
|
|
972
975
|
})
|
|
973
976
|
})
|
|
974
977
|
]
|
|
975
978
|
})
|
|
976
979
|
}),
|
|
977
|
-
(!!Object.keys(
|
|
978
|
-
value:
|
|
979
|
-
onValueChange: (e) =>
|
|
980
|
+
(!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ X(v, {
|
|
981
|
+
value: w ? ["variables"] : [],
|
|
982
|
+
onValueChange: (e) => T(e.includes("variables")),
|
|
980
983
|
items: [{
|
|
981
984
|
value: "variables",
|
|
982
985
|
title: d.variables,
|
|
983
986
|
description: d.variablesDescription,
|
|
984
|
-
content: Q(e.placeholders) ? /* @__PURE__ */
|
|
987
|
+
content: Q(e.placeholders) ? /* @__PURE__ */ X(ve, {
|
|
985
988
|
state: e.placeholders,
|
|
986
989
|
label: d.loadingVariables,
|
|
987
990
|
retryLabel: d.retry,
|
|
988
|
-
report:
|
|
989
|
-
}) : /* @__PURE__ */
|
|
990
|
-
definitions:
|
|
991
|
-
values:
|
|
991
|
+
report: r.report
|
|
992
|
+
}) : /* @__PURE__ */ X(Se, {
|
|
993
|
+
definitions: r.definitions,
|
|
994
|
+
values: r.values,
|
|
992
995
|
draft: u,
|
|
993
996
|
api: i,
|
|
994
997
|
strings: d,
|
|
995
998
|
busy: _,
|
|
996
|
-
editable: !
|
|
999
|
+
editable: !L
|
|
997
1000
|
})
|
|
998
1001
|
}]
|
|
999
1002
|
}),
|
|
1000
|
-
u.body.kind === "html" && /* @__PURE__ */
|
|
1003
|
+
u.body.kind === "html" && /* @__PURE__ */ X(n, {
|
|
1001
1004
|
type: "button",
|
|
1002
1005
|
tone: "secondary",
|
|
1003
1006
|
buttonStyle: "outline",
|
|
1004
1007
|
disabled: _,
|
|
1005
|
-
onClick: () =>
|
|
1008
|
+
onClick: () => F(!0),
|
|
1006
1009
|
children: d.convert
|
|
1007
1010
|
}),
|
|
1008
|
-
(
|
|
1011
|
+
(r.error || !r.dataPending && r.renderError) && /* @__PURE__ */ Z(s, {
|
|
1009
1012
|
tone: "destructive",
|
|
1010
|
-
children: [/* @__PURE__ */
|
|
1013
|
+
children: [/* @__PURE__ */ X(l, { children: d.errorTitle }), /* @__PURE__ */ X(o, { children: r.error || r.renderError })]
|
|
1011
1014
|
}),
|
|
1012
|
-
|
|
1015
|
+
r.notice && /* @__PURE__ */ X(s, {
|
|
1013
1016
|
tone: "success",
|
|
1014
1017
|
role: "status",
|
|
1015
|
-
children: /* @__PURE__ */
|
|
1018
|
+
children: /* @__PURE__ */ X(o, { children: r.notice })
|
|
1016
1019
|
}),
|
|
1017
1020
|
e.children?.(i)
|
|
1018
1021
|
]
|
|
1019
|
-
}),
|
|
1022
|
+
}), H = e.title ?? d.title, U = e.onClose ? /* @__PURE__ */ X(n, {
|
|
1020
1023
|
type: "button",
|
|
1021
1024
|
iconOnly: !0,
|
|
1022
1025
|
tone: "secondary",
|
|
@@ -1025,12 +1028,12 @@ function De(e) {
|
|
|
1025
1028
|
disabled: _,
|
|
1026
1029
|
"aria-label": d.close,
|
|
1027
1030
|
onClick: e.onClose,
|
|
1028
|
-
children: /* @__PURE__ */
|
|
1029
|
-
}) : void 0,
|
|
1031
|
+
children: /* @__PURE__ */ X(de, { className: "size-icon" })
|
|
1032
|
+
}) : void 0, W, K = t("email-composer--component min-w-0", e.className);
|
|
1030
1033
|
if (e.position === "dialog" || e.position === "sheet") {
|
|
1031
1034
|
let t = {
|
|
1032
1035
|
open: !0,
|
|
1033
|
-
title:
|
|
1036
|
+
title: H,
|
|
1034
1037
|
description: e.description,
|
|
1035
1038
|
onOpenChange: (t) => {
|
|
1036
1039
|
!t && !_ && e.onClose?.();
|
|
@@ -1042,44 +1045,42 @@ function De(e) {
|
|
|
1042
1045
|
showCancel: !1,
|
|
1043
1046
|
showConfirm: !1,
|
|
1044
1047
|
showCloseButton: !!e.onClose && !_,
|
|
1045
|
-
footer:
|
|
1046
|
-
className:
|
|
1048
|
+
footer: z,
|
|
1049
|
+
className: K
|
|
1047
1050
|
};
|
|
1048
|
-
|
|
1051
|
+
W = e.position === "dialog" ? /* @__PURE__ */ X(h, {
|
|
1049
1052
|
...t,
|
|
1050
1053
|
size: "3xl",
|
|
1051
1054
|
showCloseButton: !!e.onClose && !_,
|
|
1052
|
-
children:
|
|
1053
|
-
}) : /* @__PURE__ */
|
|
1055
|
+
children: V
|
|
1056
|
+
}) : /* @__PURE__ */ X(m, {
|
|
1054
1057
|
...t,
|
|
1055
1058
|
width: "3xl",
|
|
1056
|
-
children:
|
|
1059
|
+
children: V
|
|
1057
1060
|
});
|
|
1058
1061
|
} else {
|
|
1059
|
-
let t = /* @__PURE__ */
|
|
1060
|
-
className:
|
|
1062
|
+
let t = /* @__PURE__ */ X(c, {
|
|
1063
|
+
className: K,
|
|
1061
1064
|
surface: "card",
|
|
1062
|
-
title:
|
|
1065
|
+
title: H,
|
|
1063
1066
|
description: e.description,
|
|
1064
|
-
headerAction:
|
|
1065
|
-
headerClassName: e.position === "floating" &&
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
footerSlot: R,
|
|
1069
|
-
children: B
|
|
1067
|
+
headerAction: U,
|
|
1068
|
+
headerClassName: e.position === "floating" && U ? "flex-nowrap [&>.card--header-start]:basis-0 [&>.card--header-end]:shrink-0" : void 0,
|
|
1069
|
+
footerSlot: z,
|
|
1070
|
+
children: V
|
|
1070
1071
|
});
|
|
1071
|
-
|
|
1072
|
+
W = e.position === "floating" ? /* @__PURE__ */ X("div", {
|
|
1072
1073
|
className: "fixed bottom-space-md end-space-md z-40 w-[min(42rem,calc(100vw-2rem))]",
|
|
1073
|
-
children: /* @__PURE__ */
|
|
1074
|
+
children: /* @__PURE__ */ X(ee, {
|
|
1074
1075
|
className: "max-h-[calc(100dvh-2rem)]",
|
|
1075
1076
|
viewportClassName: "max-h-[calc(100dvh-2rem)]",
|
|
1076
1077
|
children: t
|
|
1077
1078
|
})
|
|
1078
1079
|
}) : t;
|
|
1079
1080
|
}
|
|
1080
|
-
return /* @__PURE__ */
|
|
1081
|
-
open:
|
|
1082
|
-
onOpenChange:
|
|
1081
|
+
return /* @__PURE__ */ Z(Y, { children: [W, /* @__PURE__ */ X(g, {
|
|
1082
|
+
open: P,
|
|
1083
|
+
onOpenChange: F,
|
|
1083
1084
|
title: d.convertTitle,
|
|
1084
1085
|
description: d.convertDescription,
|
|
1085
1086
|
strings: {
|
|
@@ -1088,11 +1089,11 @@ function De(e) {
|
|
|
1088
1089
|
close: d.closeConversion
|
|
1089
1090
|
},
|
|
1090
1091
|
onConfirm: () => {
|
|
1091
|
-
!_ &&
|
|
1092
|
+
!_ && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), C("editor"));
|
|
1092
1093
|
}
|
|
1093
1094
|
})] });
|
|
1094
1095
|
}
|
|
1095
1096
|
//#endregion
|
|
1096
|
-
export {
|
|
1097
|
+
export { Ee as EmailComposer, F as bodyHtml, H as createHttpSender, U as defaultEmailComposerStrings, B as parseRecipient, I as recipientLabel, P as renderEmail, z as resolveValues, V as validate };
|
|
1097
1098
|
|
|
1098
1099
|
//# sourceMappingURL=email-composer.js.map
|