themelia-react-ui 2.0.4 → 2.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +211 -0
- package/MIGRATION.md +119 -0
- package/README.md +122 -20
- package/dist/{accordion-96o0pN62.js → accordion-0tQUZ20r.js} +13 -13
- package/dist/accordion-0tQUZ20r.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-C0gjzLyE.js} +48 -45
- package/dist/action-menu-C0gjzLyE.js.map +1 -0
- package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-CGGpQryR.js} +281 -230
- package/dist/ai-artifact-CGGpQryR.js.map +1 -0
- package/dist/app-shell-EHuuRDGy.js +321 -0
- package/dist/app-shell-EHuuRDGy.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-BCpA4e7i.js} +10 -10
- package/dist/{attachment-DkoqHPPl.js.map → attachment-BCpA4e7i.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-B0girIk_.js} +49 -52
- package/dist/auth-B0girIk_.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-B9Jnp-T-.js} +8 -8
- package/dist/avatar-B9Jnp-T-.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-wWauMgAt.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-wWauMgAt.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +4 -4
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +200 -193
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +8 -8
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +6 -6
- package/dist/base/spinner.js.map +1 -1
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +36 -36
- 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 +1 -1
- package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-BoqWIIpV.js} +7 -7
- package/dist/batch-action-bar-BoqWIIpV.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +267 -247
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +537 -543
- 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 +1330 -1250
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-B-WFKecD.js → breadcrumbs-Bp9Ke7kd.js} +7 -7
- package/dist/breadcrumbs-Bp9Ke7kd.js.map +1 -0
- package/dist/{button-DkmK-z8E.js → button-ChBovTx0.js} +3 -3
- package/dist/button-ChBovTx0.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-DeW0bQeK.js} +16 -16
- package/dist/buttons-DeW0bQeK.js.map +1 -0
- package/dist/cards-CNXnmvV5.js +69 -0
- package/dist/cards-CNXnmvV5.js.map +1 -0
- package/dist/cascader-CrAl9zD5.js +439 -0
- package/dist/cascader-CrAl9zD5.js.map +1 -0
- package/dist/chart-I7ROnsl8.js +162 -0
- package/dist/chart-I7ROnsl8.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-MoyHIAPs.js} +3 -3
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-MoyHIAPs.js.map} +1 -1
- package/dist/choice-inputs-DHGtx0QV.js +789 -0
- package/dist/choice-inputs-DHGtx0QV.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BSJyq9e-.js} +9 -9
- package/dist/code-block-BSJyq9e-.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BzJ91LUG.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BzJ91LUG.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-CSnwtOTH.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-CSnwtOTH.js.map} +1 -1
- package/dist/combobox-Bcvu5J8O.js +363 -0
- package/dist/combobox-Bcvu5J8O.js.map +1 -0
- package/dist/combobox-C2JiSQPc.js +915 -0
- package/dist/combobox-C2JiSQPc.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-9e52NPgK.js} +11 -11
- package/dist/command-9e52NPgK.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-BsgErEqd.js} +44 -39
- package/dist/comments-BsgErEqd.js.map +1 -0
- package/dist/components/base/action-menu/action-menu.d.ts +7 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +6 -4
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
- package/dist/components/base/cards/smart-card.types.d.ts +3 -4
- package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
- package/dist/components/base/chart/chart.d.ts +6 -1
- package/dist/components/base/choice-inputs/choice-types.d.ts +5 -1
- package/dist/components/base/choice-inputs/pill-radio-group.d.ts +7 -6
- package/dist/components/base/combobox/combobox-field.d.ts +2 -2
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/date-pickers/date-picker-internals.d.ts +3 -1
- package/dist/components/base/date-pickers/datepicker.types.d.ts +10 -4
- package/dist/components/base/date-pickers/time-picker.d.ts +17 -3
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/feedback/state-display.d.ts +5 -1
- package/dist/components/base/feedback/state-display.strings.d.ts +9 -0
- package/dist/components/base/forms/form-field.d.ts +7 -2
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/workflow.d.ts +7 -1
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +8 -1
- package/dist/components/base/forms-numeric/decimal-input.d.ts +2 -2
- package/dist/components/base/forms-numeric/dimensions-input.d.ts +4 -1
- package/dist/components/base/forms-numeric/numeric-composite-field.d.ts +12 -0
- package/dist/components/base/forms-numeric/weight-input.d.ts +6 -1
- package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/language-switcher.d.ts +12 -4
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
- package/dist/components/base/navigation/page-header/page-header.d.ts +10 -3
- package/dist/components/base/popover/popover.d.ts +3 -3
- package/dist/components/base/popover/popover.recipes.d.ts +10 -6
- package/dist/components/base/repeaters/key-value-editor.d.ts +2 -1
- package/dist/components/base/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +29 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/base/upload/avatar-upload.d.ts +2 -1
- package/dist/components/base/upload/image-upload.d.ts +2 -1
- package/dist/components/blocks/ai/ai-citation/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-reasoning/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-sources/types.d.ts +2 -0
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +5 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric/metric.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +4 -0
- package/dist/components/blocks/analytics/metric-grid/metric-grid.d.ts +4 -5
- package/dist/components/blocks/analytics/types.d.ts +2 -2
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/blocks/data-display/empty-state/empty-state.types.d.ts +4 -3
- package/dist/components/features/activities/activities.types.d.ts +26 -13
- package/dist/components/features/activities/hooks/use-activity-resources.d.ts +2 -1
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/ai-chat/hooks/use-ai-chat-scroll.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.d.ts +1 -1
- package/dist/components/features/appointment-calendar/appointment-calendar.types.d.ts +4 -2
- package/dist/components/features/combobox/async-resource-combobox.d.ts +2 -2
- package/dist/components/features/combobox/combobox.d.ts +2 -2
- package/dist/components/features/combobox/hooks/use-combobox-core.d.ts +2 -1
- package/dist/components/features/combobox/hooks/use-combobox-state.d.ts +1 -0
- package/dist/components/features/combobox/hooks/use-load-more.d.ts +1 -0
- package/dist/components/features/combobox/types.d.ts +37 -8
- package/dist/components/features/email-composer/types.d.ts +3 -1
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/date-facet.d.ts +4 -2
- package/dist/components/features/filters/facets/range-facet.d.ts +12 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +6 -3
- package/dist/components/features/filters/partials/date-filter-content.d.ts +3 -2
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +5 -3
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/range-filter-content.d.ts +12 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +25 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/hooks/use-media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.d.ts +1 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +8 -0
- package/dist/components/features/media-library/media-library.types.d.ts +50 -12
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +4 -4
- package/dist/components/features/mentions/hooks/use-mentions.d.ts +16 -1
- package/dist/components/features/mentions/partials/mention-inline-suggestions.d.ts +5 -1
- package/dist/components/features/mentions/utils/split-html-by-mentions.d.ts +1 -7
- package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +2 -2
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +45 -8
- package/dist/components/features/questionnaire/questionnaire.types.d.ts +3 -0
- package/dist/components/features/resource/resource.d.ts +6 -2
- package/dist/components/features/resource/resource.types.d.ts +14 -1
- package/dist/components/features/rich-text-editor/form-rich-text-editor.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/caret-helpers.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/editor-field-aria.d.ts +14 -0
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/partials/rich-text-editor-toolbar.d.ts +3 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/rich-text-editor/rich-text-editor.types.d.ts +17 -3
- package/dist/components/features/schema-form/hooks/use-schema-form.d.ts +5 -1
- package/dist/components/features/schema-form/partials/schema-form-field.d.ts +3 -1
- package/dist/components/features/schema-form/schema-form.utils.d.ts +1 -1
- package/dist/components/features/suggestions/suggestions.types.d.ts +1 -1
- package/dist/components/features/table/data-table.d.ts +1 -1
- package/dist/components/features/table/index.d.ts +1 -0
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table-body.d.ts +1 -1
- package/dist/components/features/table/table-helpers.d.ts +6 -3
- package/dist/components/features/table/table.strings.d.ts +3 -0
- package/dist/components/features/table/table.types.d.ts +18 -2
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +9 -8
- package/dist/components/layout/layout.types.d.ts +5 -3
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/navigation/side-nav.d.ts +3 -2
- package/dist/components/layout/normalize-layout-path.d.ts +1 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +10 -3
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +38 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +6 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +50 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/primitives/link.d.ts +3 -2
- package/dist/components/primitives/money.d.ts +1 -1
- package/dist/components/primitives/number.d.ts +1 -1
- package/dist/components/typography/rich-text/rich-text-tree.d.ts +7 -5
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/overlay-layer.d.ts +18 -0
- package/dist/components/ui/sheet.d.ts +5 -1
- package/dist/components/ui/sidebar-state.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts +5 -17
- package/dist/{containers-CRmHf7GP.js → containers-CSdc32h9.js} +26 -18
- package/dist/containers-CSdc32h9.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-CnGCZdX4.js → copyable-3fdHfMR3.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-3fdHfMR3.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-Cmj-xZYl.js} +271 -279
- package/dist/data-display-Cmj-xZYl.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Br0FicVv.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Br0FicVv.js.map} +1 -1
- package/dist/date-picker-CyQlFYsP.js +1617 -0
- package/dist/date-picker-CyQlFYsP.js.map +1 -0
- package/dist/date-pickers-tj2MXmXd.js +185 -0
- package/dist/date-pickers-tj2MXmXd.js.map +1 -0
- package/dist/{display-BB4BL_-K.js → display-CT_N2a3w.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-CT_N2a3w.js.map} +1 -1
- package/dist/dropdown-menu-C08iIugv.js +194 -0
- package/dist/dropdown-menu-C08iIugv.js.map +1 -0
- package/dist/features/activities.js +388 -326
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +46 -32
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +130 -130
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +11 -10
- 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 +13 -13
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +243 -239
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +197 -199
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +2 -2
- package/dist/features/global-search.js +168 -143
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +19 -30
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map/style.css +15 -0
- package/dist/features/map.js +369 -343
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +1202 -975
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +2 -2
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1270 -1183
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +160 -153
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +119 -113
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +28 -19
- package/dist/features/rich-text-editor.js.map +1 -1
- package/dist/features/schema-form.js +297 -256
- package/dist/features/schema-form.js.map +1 -1
- package/dist/features/suggestions.js +57 -50
- package/dist/features/suggestions.js.map +1 -1
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +470 -470
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/feedback-Dzo1xtAU.js +246 -0
- package/dist/feedback-Dzo1xtAU.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-D6H7tVJi.js} +5 -5
- package/dist/field-affordance-recipes-D6H7tVJi.js.map +1 -0
- package/dist/field-control-attributes-B6i335wr.js +18 -0
- package/dist/field-control-attributes-B6i335wr.js.map +1 -0
- package/dist/{field-state-recipes-BVA2CWHo.js → field-state-recipes-7sza8QbC.js} +4 -2
- package/dist/{field-state-recipes-BVA2CWHo.js.map → field-state-recipes-7sza8QbC.js.map} +1 -1
- package/dist/filters-Dl80yYtN.js +2415 -0
- package/dist/filters-Dl80yYtN.js.map +1 -0
- package/dist/form-field-CAPdwdnZ.js +74 -0
- package/dist/form-field-CAPdwdnZ.js.map +1 -0
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-CgcrUbLU.js} +5 -5
- package/dist/form-sizing-CgcrUbLU.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-B3W8CH7-.js} +17 -13
- package/dist/forms-B3W8CH7-.js.map +1 -0
- package/dist/forms-numeric-CwjQJe-O.js +991 -0
- package/dist/forms-numeric-CwjQJe-O.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-ZIIsRKxP.js} +145 -141
- package/dist/header-ZIIsRKxP.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/hooks/use-files.d.ts +2 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-BitHSh-Y.js} +27 -15
- package/dist/hooks-BitHSh-Y.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-npxF1SLX.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-npxF1SLX.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-7KAc7XQL.js} +9 -9
- package/dist/{input-Cdw4k0fb.js.map → input-7KAc7XQL.js.map} +1 -1
- package/dist/input-DIREVYHs.js +21 -0
- package/dist/input-DIREVYHs.js.map +1 -0
- package/dist/{interaction-recipes-XR9ZpVYL.js → interaction-recipes-4wZ2tvfb.js} +2 -2
- package/dist/{interaction-recipes-XR9ZpVYL.js.map → interaction-recipes-4wZ2tvfb.js.map} +1 -1
- package/dist/item-FfWnaYST.js +278 -0
- package/dist/item-FfWnaYST.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +2 -2
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +12 -12
- package/dist/layout.types-E_GAApzO.js +30 -0
- package/dist/layout.types-E_GAApzO.js.map +1 -0
- package/dist/lib/affordance-geometry.generated.d.ts +35 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/field-control-attributes.d.ts +11 -0
- package/dist/lib/field-state-recipes.d.ts +2 -0
- package/dist/lib/format.d.ts +1 -0
- package/dist/lib/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/surface-recipes.d.ts +1 -1
- package/dist/lib/token-merge.generated.d.ts +18 -15
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C81DAnKI.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C81DAnKI.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-qOnedSt4.js} +237 -168
- package/dist/mentions-qOnedSt4.js.map +1 -0
- package/dist/message-BJHnn43M.js +135 -0
- package/dist/message-BJHnn43M.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-XkqZ_UXH.js} +64 -64
- package/dist/metadata-list-XkqZ_UXH.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-BgtPJAhi.js +288 -0
- package/dist/navigation-BgtPJAhi.js.map +1 -0
- package/dist/navigation-Bt-v7rWP.js +261 -0
- package/dist/navigation-Bt-v7rWP.js.map +1 -0
- package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/normalize-layout-path-BmEgg6fu.js +14 -0
- package/dist/normalize-layout-path-BmEgg6fu.js.map +1 -0
- package/dist/{number-E_OiIfJz.js → number-CYqBcrSj.js} +79 -87
- package/dist/number-CYqBcrSj.js.map +1 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js +172 -0
- package/dist/overflow-tab-bar-BQCA2Zn2.js.map +1 -0
- package/dist/overlays-CC8zI3Du.js +1017 -0
- package/dist/overlays-CC8zI3Du.js.map +1 -0
- package/dist/page-BoQ1VaFJ.js +331 -0
- package/dist/page-BoQ1VaFJ.js.map +1 -0
- package/dist/page-header-commands-DIKspJfx.js +193 -0
- package/dist/page-header-commands-DIKspJfx.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-Br8TdV9A.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-Br8TdV9A.js.map} +1 -1
- package/dist/popover-k8TdUcAt.js +201 -0
- package/dist/popover-k8TdUcAt.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-yn-o0kyA.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-yn-o0kyA.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DJ0AkUan.js} +19 -12
- package/dist/popover.recipes-DJ0AkUan.js.map +1 -0
- package/dist/portal-recipes-DyUXqUtD.js +9 -0
- package/dist/portal-recipes-DyUXqUtD.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-BkkQjYl7.js} +23 -18
- package/dist/primitives-BkkQjYl7.js.map +1 -0
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-DZFXXzPs.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-DZFXXzPs.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-C7LhOg7Q.js} +7 -7
- package/dist/receipt-C7LhOg7Q.js.map +1 -0
- package/dist/rich-text-BnTzZjIo.js +45 -0
- package/dist/rich-text-BnTzZjIo.js.map +1 -0
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-CAurDwT5.js} +501 -424
- package/dist/rich-text-editor-CAurDwT5.js.map +1 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js +99 -0
- package/dist/rich-text-editor-toolbar-DbXig7Jk.js.map +1 -0
- package/dist/rich-text-tree-BqyQ_7-R.js +66 -0
- package/dist/rich-text-tree-BqyQ_7-R.js.map +1 -0
- package/dist/{sanitize-html-DsQmI48u.js → sanitize-html-BWkH4dLM.js} +29 -16
- package/dist/sanitize-html-BWkH4dLM.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-Bj6CRUif.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-Bj6CRUif.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-B9ewiCGO.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-B9ewiCGO.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-DM6gs2vu.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-DM6gs2vu.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/settings-DZPHgpx4.js +155 -0
- package/dist/settings-DZPHgpx4.js.map +1 -0
- package/dist/sheet-C4DHsgLk.js +250 -0
- package/dist/sheet-C4DHsgLk.js.map +1 -0
- package/dist/sidebar-C8BnDwTH.js +709 -0
- package/dist/sidebar-C8BnDwTH.js.map +1 -0
- package/dist/sidebar-CmD6a-HK.js +1004 -0
- package/dist/sidebar-CmD6a-HK.js.map +1 -0
- package/dist/skeleton-DDgdhmu9.js +265 -0
- package/dist/skeleton-DDgdhmu9.js.map +1 -0
- package/dist/smart-card-B6vLxqa_.js +617 -0
- package/dist/smart-card-B6vLxqa_.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DZJ2wbAU.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DZJ2wbAU.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-recipes-BKRVW8Os.js → surface-recipes-C8mNycaY.js} +2 -2
- package/dist/{surface-recipes-BKRVW8Os.js.map → surface-recipes-C8mNycaY.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CBonSdTp.js} +573 -519
- package/dist/table-CBonSdTp.js.map +1 -0
- package/dist/{table-CpvnzJn9.js → table-CXSPHH25.js} +75 -71
- package/dist/table-CXSPHH25.js.map +1 -0
- package/dist/tabs-C4Kr_hCr.js +192 -0
- package/dist/tabs-C4Kr_hCr.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-jdkS3ReG.js} +18 -18
- package/dist/text-inputs-jdkS3ReG.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-CoPwdJP0.js} +13 -12
- package/dist/timelines-CoPwdJP0.js.map +1 -0
- package/dist/tooltip-31NwIpTo.js +113 -0
- package/dist/tooltip-31NwIpTo.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CeYVzdFE.js} +9 -9
- package/dist/{tree-CV11PURP.js.map → tree-CeYVzdFE.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-C7-YMW1S.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-C7-YMW1S.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/ui-provider-C-74NVLc.js +178 -0
- package/dist/ui-provider-C-74NVLc.js.map +1 -0
- package/dist/ui-provider.js +2 -3
- package/dist/{upload-C9SA0X-8.js → upload-Hdm5gObf.js} +309 -296
- package/dist/upload-Hdm5gObf.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-D0sYPuqo.js} +16 -14
- package/dist/upload-queue-D0sYPuqo.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-9s8hLDfn.js} +24 -17
- package/dist/usage-card-9s8hLDfn.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-DhuoqFy4.js} +255 -165
- package/dist/utils-DhuoqFy4.js.map +1 -0
- package/dist/value-inputs-D3aPgq9H.js +980 -0
- package/dist/value-inputs-D3aPgq9H.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uSzzG9Gf.js} +32 -26
- package/dist/value-typography-uSzzG9Gf.js.map +1 -0
- package/dist/{workspace-9EFVXUyk.js → workspace-CC8Vchiu.js} +51 -50
- package/dist/workspace-CC8Vchiu.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +4 -3
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +52 -1
- package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
- package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
- package/docs/consumer-skill/examples/detail.tsx +5 -4
- package/docs/consumer-skill/examples/edit.tsx +3 -3
- package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
- package/docs/consumer-skill/examples/index-table.tsx +4 -4
- package/docs/consumer-skill/examples/manifest.json +38 -1
- package/docs/consumer-skill/examples/product-media.tsx +41 -0
- package/docs/consumer-skill/examples/product-parts.tsx +81 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +1 -1
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +21 -19
- package/docs/consumer-skill/references/analytics.md +33 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +21249 -14205
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +177 -32
- package/docs/consumer-skill/references/critique-rubric.md +98 -0
- package/docs/consumer-skill/references/custom-composition.md +261 -0
- package/docs/consumer-skill/references/data-reading.md +79 -0
- package/docs/consumer-skill/references/design-contract.md +12 -9
- package/docs/consumer-skill/references/discovery.md +27 -3
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +62 -8
- package/docs/consumer-skill/references/integration.md +59 -1
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +3044 -445
- package/docs/consumer-skill/references/review.md +87 -10
- package/docs/consumer-skill/references/rhf-workflows.md +79 -0
- package/docs/consumer-skill/references/screen-archetypes.md +19 -7
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +24 -20
- package/docs/consumer-skill/references/tokens.json +9 -9
- package/docs/consumer-skill/references/view-craft.md +153 -0
- package/docs/consumer-skill/references/view-spec.md +73 -0
- package/docs/consumer-skill/references/workflows.md +7 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +176 -26
- package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
- package/docs/consumer-skill/scripts/composition.mjs +61 -5
- package/docs/consumer-skill/scripts/discovery.mjs +54 -0
- package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
- package/docs/consumer-skill/scripts/inspection.mjs +73 -18
- package/docs/consumer-skill/scripts/setup-skills.mjs +79 -7
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
- package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
- package/package.json +4 -2
- package/templates/admin-shell-template.tsx +1 -2
- package/templates/customers-template.tsx +18 -16
- package/dist/accordion-96o0pN62.js.map +0 -1
- package/dist/action-menu-CHgs8vmj.js.map +0 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
- package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
- package/dist/app-shell-D63ATkIK.js +0 -237
- package/dist/app-shell-D63ATkIK.js.map +0 -1
- package/dist/auth-D2FVZ1MH.js.map +0 -1
- package/dist/avatar-DWO_HHhB.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
- package/dist/breadcrumbs-B-WFKecD.js.map +0 -1
- package/dist/button-DkmK-z8E.js.map +0 -1
- package/dist/buttons-BbfzgczK.js.map +0 -1
- package/dist/cards-4JTWqvVe.js +0 -68
- package/dist/cards-4JTWqvVe.js.map +0 -1
- package/dist/chart-C19flDQb.js +0 -155
- package/dist/chart-C19flDQb.js.map +0 -1
- package/dist/choice-inputs-JLtij2y4.js +0 -776
- package/dist/choice-inputs-JLtij2y4.js.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- package/dist/combobox-CBJDs6w_.js +0 -877
- package/dist/combobox-CBJDs6w_.js.map +0 -1
- package/dist/combobox-hbhSS18O.js +0 -355
- package/dist/combobox-hbhSS18O.js.map +0 -1
- package/dist/command-D8NrBj-b.js.map +0 -1
- package/dist/comments-Di4w0H_S.js.map +0 -1
- package/dist/containers-CRmHf7GP.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-D4oujtx0.js.map +0 -1
- package/dist/date-picker-zOt1oNss.js +0 -1542
- package/dist/date-picker-zOt1oNss.js.map +0 -1
- package/dist/date-pickers-cj8IXbDC.js +0 -179
- package/dist/date-pickers-cj8IXbDC.js.map +0 -1
- package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
- package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
- package/dist/feedback-DZNL5Lg1.js +0 -239
- package/dist/feedback-DZNL5Lg1.js.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.js +0 -2209
- package/dist/filters-BcT-uoFy.js.map +0 -1
- package/dist/form-field-CsgRmdit.js +0 -63
- package/dist/form-field-CsgRmdit.js.map +0 -1
- package/dist/form-sizing-NXgjkmBG.js.map +0 -1
- package/dist/forms-BV5m5aQF.js.map +0 -1
- package/dist/forms-numeric-Cd33AKbD.js +0 -906
- package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
- package/dist/header-BA697l4a.js.map +0 -1
- package/dist/hooks-BQ-L7Uu2.js.map +0 -1
- package/dist/input-DOPL5_QE.js +0 -21
- package/dist/input-DOPL5_QE.js.map +0 -1
- package/dist/item-BvZ2DR_x.js +0 -277
- package/dist/item-BvZ2DR_x.js.map +0 -1
- package/dist/layout.types-Cn7aUzJp.js +0 -20
- package/dist/layout.types-Cn7aUzJp.js.map +0 -1
- package/dist/mentions-RKOQaaIB.js.map +0 -1
- package/dist/message-INU2xsxu.js +0 -128
- package/dist/message-INU2xsxu.js.map +0 -1
- package/dist/metadata-list-qVV7AVxa.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-BQNcg1jT.js +0 -269
- package/dist/navigation-BQNcg1jT.js.map +0 -1
- package/dist/navigation-DLF3E1IC.js +0 -145
- package/dist/navigation-DLF3E1IC.js.map +0 -1
- package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
- package/dist/number-E_OiIfJz.js.map +0 -1
- package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
- package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
- package/dist/overlays-BlKynmde.js +0 -1004
- package/dist/overlays-BlKynmde.js.map +0 -1
- package/dist/page-CIwNUtGr.js +0 -227
- package/dist/page-CIwNUtGr.js.map +0 -1
- package/dist/page-header-commands-DFMlNYzN.js +0 -128
- package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
- package/dist/popover-uwzX2vo7.js +0 -198
- package/dist/popover-uwzX2vo7.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/primitives-Du64iDbb.js.map +0 -1
- package/dist/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-CLJEf76s.js +0 -78
- package/dist/rich-text-CLJEf76s.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js +0 -94
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- package/dist/safe-image-src-C6kQSMBZ.js +0 -17
- package/dist/safe-image-src-C6kQSMBZ.js.map +0 -1
- package/dist/sanitize-html-DsQmI48u.js.map +0 -1
- package/dist/settings-BA2iboic.js +0 -174
- package/dist/settings-BA2iboic.js.map +0 -1
- package/dist/sheet-DoAxTb2J.js +0 -213
- package/dist/sheet-DoAxTb2J.js.map +0 -1
- package/dist/sidebar-ByqKR_W5.js +0 -512
- package/dist/sidebar-ByqKR_W5.js.map +0 -1
- package/dist/sidebar-D2iSnGJ7.js +0 -619
- package/dist/sidebar-D2iSnGJ7.js.map +0 -1
- package/dist/skeleton-CUj8O5Bd.js +0 -264
- package/dist/skeleton-CUj8O5Bd.js.map +0 -1
- package/dist/smart-card-CqkzQsK-.js +0 -614
- package/dist/smart-card-CqkzQsK-.js.map +0 -1
- package/dist/table-CpvnzJn9.js.map +0 -1
- package/dist/table-DH7rozUv.js.map +0 -1
- package/dist/tabs-eqVsJZWO.js +0 -191
- package/dist/tabs-eqVsJZWO.js.map +0 -1
- package/dist/text-inputs-DXItiR0O.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-DmtztAY_.js.map +0 -1
- package/dist/tooltip-B4hjKtoV.js +0 -111
- package/dist/tooltip-B4hjKtoV.js.map +0 -1
- package/dist/ui-provider-CQCuCBcy.js +0 -136
- package/dist/ui-provider-CQCuCBcy.js.map +0 -1
- package/dist/upload-C9SA0X-8.js.map +0 -1
- package/dist/upload-queue-DhQJiSRc.js.map +0 -1
- package/dist/usage-card-DVTRDmGz.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-CF3c95Io.js.map +0 -1
- package/dist/value-inputs-C0o70p-U.js +0 -980
- package/dist/value-inputs-C0o70p-U.js.map +0 -1
- package/dist/value-typography-ClupF0Gz.js.map +0 -1
- package/dist/workspace-9EFVXUyk.js.map +0 -1
|
@@ -1,36 +1,35 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useStrings as e } from "../lib/strings.js";
|
|
3
|
-
import { t } from "../utils-
|
|
4
|
-
import { n } from "../buttons-
|
|
5
|
-
import { c as r } from "../typography-
|
|
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-
|
|
3
|
+
import { t } from "../utils-DhuoqFy4.js";
|
|
4
|
+
import { n } from "../buttons-DeW0bQeK.js";
|
|
5
|
+
import { c as r } from "../typography-C7-YMW1S.js";
|
|
6
|
+
import { i, t as a } from "../structure-DZJ2wbAU.js";
|
|
7
|
+
import { h as o, p as s, t as c, v as l } from "../smart-card-B6vLxqa_.js";
|
|
8
|
+
import { n as u, t as d } from "../feedback-Dzo1xtAU.js";
|
|
9
9
|
import { n as f } from "../composition.recipes-COdiFhxB.js";
|
|
10
|
-
import { n as p, t as m } from "../action-menu-
|
|
11
|
-
import { n as h, r as g, t as _ } from "../overlays-
|
|
12
|
-
import {
|
|
13
|
-
import { t as y } from "../
|
|
14
|
-
import { t as b } from "../
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { useEffect as W, useId as G, useImperativeHandle as K, useMemo as re, useRef as q, useState as J } from "react";
|
|
10
|
+
import { n as p, t as m } from "../action-menu-C0gjzLyE.js";
|
|
11
|
+
import { n as h, r as g, t as _ } from "../overlays-CC8zI3Du.js";
|
|
12
|
+
import { t as v } from "../accordion-0tQUZ20r.js";
|
|
13
|
+
import { t as y } from "../input-7KAc7XQL.js";
|
|
14
|
+
import { t as b } from "../form-field-CAPdwdnZ.js";
|
|
15
|
+
import { a as x, c as S, d as C, o as w, s as T } from "../text-inputs-jdkS3ReG.js";
|
|
16
|
+
import { l as E } from "../choice-inputs-DHGtx0QV.js";
|
|
17
|
+
import { t as ee } from "../scroll-area-Bj6CRUif.js";
|
|
18
|
+
import { i as D, n as O, r as te, t as k } from "../tabs-C4Kr_hCr.js";
|
|
19
|
+
import { t as ne } from "../popover-menu-yn-o0kyA.js";
|
|
20
|
+
import { n as A, t as j } from "../rich-text-editor-toolbar-DbXig7Jk.js";
|
|
21
|
+
import { t as M } from "../rich-text-editor.strings-CB59ekH2.js";
|
|
22
|
+
import { a as N, c as P, i as F, l as I, n as L, o as R, r as z, s as B, t as V, u as H } from "../http-D_6rOnzU.js";
|
|
23
|
+
import { useEffect as U, useId as W, useImperativeHandle as G, useMemo as K, useRef as q, useState as J } from "react";
|
|
25
24
|
import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
26
|
-
import { Bold as
|
|
27
|
-
import { EditorContent as
|
|
28
|
-
import
|
|
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";
|
|
29
28
|
//#region src/components/features/email-composer/partials/data-status.tsx
|
|
30
29
|
function Q(e) {
|
|
31
30
|
return !!(e?.loading || e?.error);
|
|
32
31
|
}
|
|
33
|
-
function
|
|
32
|
+
function ve({ state: e, label: t, retryLabel: n, report: r }) {
|
|
34
33
|
return e?.loading ? /* @__PURE__ */ X(u, { label: t }) : e?.error ? /* @__PURE__ */ X(d, {
|
|
35
34
|
variant: "inline",
|
|
36
35
|
description: e.error,
|
|
@@ -42,8 +41,8 @@ function ye({ state: e, label: t, retryLabel: n, report: r }) {
|
|
|
42
41
|
}
|
|
43
42
|
//#endregion
|
|
44
43
|
//#region src/components/features/email-composer/use-composer.ts
|
|
45
|
-
function
|
|
46
|
-
let n = e(
|
|
44
|
+
function ye(t) {
|
|
45
|
+
let n = e(H, t.strings), r = q(null);
|
|
47
46
|
r.current ||= structuredClone({
|
|
48
47
|
to: [],
|
|
49
48
|
cc: [],
|
|
@@ -51,7 +50,7 @@ function be(t) {
|
|
|
51
50
|
subject: "",
|
|
52
51
|
body: {
|
|
53
52
|
kind: "rich",
|
|
54
|
-
document:
|
|
53
|
+
document: I
|
|
55
54
|
},
|
|
56
55
|
placeholderOverrides: {},
|
|
57
56
|
...t.value ?? t.defaultValue
|
|
@@ -69,23 +68,23 @@ function be(t) {
|
|
|
69
68
|
let c = q(o);
|
|
70
69
|
t.value !== void 0 && (c.current = t.value);
|
|
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);
|
|
72
|
-
|
|
71
|
+
U(() => (x.current = !0, () => {
|
|
73
72
|
x.current = !1;
|
|
74
73
|
}), []);
|
|
75
|
-
let S =
|
|
74
|
+
let S = K(() => {
|
|
76
75
|
let e = Object.create(null);
|
|
77
76
|
for (let r of t.placeholders?.sets ?? []) for (let t of Object.keys(r.definitions)) {
|
|
78
77
|
if (Object.hasOwn(e, t)) throw Error(n.duplicateVariable(t));
|
|
79
78
|
r.definitions[t] && (e[t] = r.definitions[t]);
|
|
80
79
|
}
|
|
81
80
|
return e;
|
|
82
|
-
}, [t.placeholders?.sets, n]), C =
|
|
81
|
+
}, [t.placeholders?.sets, n]), C = K(() => [...t.templates?.items ?? [], ...y], [t.templates?.items, y]), w = q(C);
|
|
83
82
|
if (w.current = C, new Set(C.map((e) => e.id)).size !== C.length) throw Error(n.duplicateTemplate);
|
|
84
|
-
let T = () =>
|
|
85
|
-
let t = s.current.props.context, n = E(e), r = s.current.strings, i =
|
|
83
|
+
let T = () => 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;
|
|
86
85
|
if (i && i.draft === e && i.context === t && i.definitions === S && i.template === n && i.strings === r) return i.result;
|
|
87
|
-
let a =
|
|
88
|
-
return
|
|
86
|
+
let a = L(e, t, S, n, r);
|
|
87
|
+
return ee.current = {
|
|
89
88
|
draft: e,
|
|
90
89
|
context: t,
|
|
91
90
|
definitions: S,
|
|
@@ -93,7 +92,7 @@ function be(t) {
|
|
|
93
92
|
strings: r,
|
|
94
93
|
result: a
|
|
95
94
|
}, a;
|
|
96
|
-
},
|
|
95
|
+
}, O = () => {
|
|
97
96
|
let { props: e, strings: t } = s.current, n = [];
|
|
98
97
|
for (let r of [
|
|
99
98
|
"to",
|
|
@@ -107,22 +106,26 @@ function be(t) {
|
|
|
107
106
|
field: "placeholders",
|
|
108
107
|
message: t.dataUnavailable
|
|
109
108
|
}), n;
|
|
110
|
-
},
|
|
111
|
-
let e = T(), t = [...
|
|
109
|
+
}, te = O().length > 0, k = (e = T()) => structuredClone([...O(), ...D(e).issues]), ne = () => {
|
|
110
|
+
let e = T(), t = [...D(e).rendered?.unresolved ?? []];
|
|
112
111
|
return {
|
|
113
112
|
draft: structuredClone(e),
|
|
114
113
|
dirty: JSON.stringify(e) !== JSON.stringify(r.current),
|
|
115
114
|
busy: u.current !== null,
|
|
116
|
-
issues:
|
|
115
|
+
issues: k(e),
|
|
117
116
|
unresolvedPlaceholders: t
|
|
118
117
|
};
|
|
119
|
-
},
|
|
118
|
+
}, A = (e) => {
|
|
120
119
|
let t = e instanceof Error ? e : Error(String(e));
|
|
121
120
|
x.current && m(t.message), s.current.props.onError?.(t);
|
|
122
121
|
}, j = (e, t = "api", n = !1) => {
|
|
123
122
|
if (!x.current || !n && u.current && u.current !== "action") return;
|
|
124
123
|
let r = structuredClone(e(structuredClone(T())));
|
|
125
|
-
s.current.props.value === void 0
|
|
124
|
+
c.current = r, s.current.props.value === void 0 ? a(r) : queueMicrotask(() => {
|
|
125
|
+
c.current === r && (c.current = s.current.draft);
|
|
126
|
+
});
|
|
127
|
+
let { onValueChange: i, onChange: o } = s.current.props;
|
|
128
|
+
(i ?? o)?.(structuredClone(r)), s.current.props.onEdit?.(structuredClone(r), { source: t }), m(""), g("");
|
|
126
129
|
}, M = q(null);
|
|
127
130
|
async function N(e, t, n = !1) {
|
|
128
131
|
if (u.current && !(n && u.current === "action") || !x.current) return;
|
|
@@ -135,7 +138,7 @@ function be(t) {
|
|
|
135
138
|
try {
|
|
136
139
|
await t();
|
|
137
140
|
} catch (e) {
|
|
138
|
-
|
|
141
|
+
A(e);
|
|
139
142
|
} finally {
|
|
140
143
|
if (r.settled = !0, M.current === r) {
|
|
141
144
|
let e = r.parent;
|
|
@@ -162,31 +165,31 @@ function be(t) {
|
|
|
162
165
|
placeholderOverrides: t.overrides === "reset" ? {} : n.placeholderOverrides
|
|
163
166
|
}), "template", r);
|
|
164
167
|
}
|
|
165
|
-
let
|
|
168
|
+
let R = q(null), z = q(null);
|
|
166
169
|
z.current ||= {
|
|
167
|
-
getState: () =>
|
|
168
|
-
update: (e) =>
|
|
169
|
-
setSubject: (e) =>
|
|
170
|
-
setRecipients: (e, t) =>
|
|
171
|
-
setBody: (e) =>
|
|
172
|
-
importBody: (e) =>
|
|
173
|
-
setPlaceholder: (e, t) =>
|
|
174
|
-
clearPlaceholderOverride: (e) =>
|
|
175
|
-
insertPlaceholder: (e) =>
|
|
176
|
-
applyTemplate: (e, t) =>
|
|
177
|
-
insertText: (e) =>
|
|
178
|
-
focusBody: () =>
|
|
179
|
-
validate: () =>
|
|
180
|
-
prepare: () =>
|
|
181
|
-
send: () =>
|
|
182
|
-
discard: () =>
|
|
170
|
+
getState: () => R.current.getState(),
|
|
171
|
+
update: (e) => R.current.update(e),
|
|
172
|
+
setSubject: (e) => R.current.setSubject(e),
|
|
173
|
+
setRecipients: (e, t) => R.current.setRecipients(e, t),
|
|
174
|
+
setBody: (e) => R.current.setBody(e),
|
|
175
|
+
importBody: (e) => R.current.importBody(e),
|
|
176
|
+
setPlaceholder: (e, t) => R.current.setPlaceholder(e, t),
|
|
177
|
+
clearPlaceholderOverride: (e) => R.current.clearPlaceholderOverride(e),
|
|
178
|
+
insertPlaceholder: (e) => R.current.insertPlaceholder(e),
|
|
179
|
+
applyTemplate: (e, t) => R.current.applyTemplate(e, t),
|
|
180
|
+
insertText: (e) => R.current.insertText(e),
|
|
181
|
+
focusBody: () => R.current.focusBody(),
|
|
182
|
+
validate: () => R.current.validate(),
|
|
183
|
+
prepare: () => R.current.prepare(),
|
|
184
|
+
send: () => R.current.send(),
|
|
185
|
+
discard: () => R.current.discard()
|
|
183
186
|
};
|
|
184
187
|
let B = z.current, V = async () => {
|
|
185
|
-
if (
|
|
186
|
-
let e =
|
|
188
|
+
if (O().length) throw Error(s.current.strings.dataUnavailable);
|
|
189
|
+
let e = D();
|
|
187
190
|
if (e.issues.length || !e.rendered) throw Error(e.issues.map((e) => e.message).join(" "));
|
|
188
191
|
return structuredClone(e.rendered.email);
|
|
189
|
-
},
|
|
192
|
+
}, W = (e = !1) => N("send", async () => {
|
|
190
193
|
let e = s.current.props;
|
|
191
194
|
v(!0);
|
|
192
195
|
let t = await V();
|
|
@@ -196,12 +199,12 @@ function be(t) {
|
|
|
196
199
|
t = n;
|
|
197
200
|
}
|
|
198
201
|
x.current && (t = structuredClone(t), await e.onSend(structuredClone(t)), x.current && (g(n.sent), e.onSent?.(t)));
|
|
199
|
-
}, e),
|
|
202
|
+
}, e), Y = (e = !1) => N("discard", async () => {
|
|
200
203
|
let e = s.current.props, t = T();
|
|
201
204
|
await e.onDiscard?.(B), x.current && T() === t && (j(() => r.current, "api", !0), v(!1), g(n.discarded), e.onClose?.());
|
|
202
205
|
}, e);
|
|
203
|
-
|
|
204
|
-
getState:
|
|
206
|
+
R.current = {
|
|
207
|
+
getState: ne,
|
|
205
208
|
update: (e) => j(e),
|
|
206
209
|
setSubject: (e) => j((t) => ({
|
|
207
210
|
...t,
|
|
@@ -254,42 +257,42 @@ function be(t) {
|
|
|
254
257
|
if (!r) throw Error(n.unknownTemplate(e));
|
|
255
258
|
F(r, t);
|
|
256
259
|
},
|
|
257
|
-
validate: () =>
|
|
260
|
+
validate: () => k(),
|
|
258
261
|
prepare: V,
|
|
259
|
-
send: () =>
|
|
260
|
-
discard: () =>
|
|
261
|
-
},
|
|
262
|
-
let
|
|
262
|
+
send: () => W(),
|
|
263
|
+
discard: () => Y()
|
|
264
|
+
}, G(t.apiRef, () => B, [B]);
|
|
265
|
+
let X = (e) => N("action", async () => {
|
|
263
266
|
await e.onSelect(Object.assign(Object.create(B), {
|
|
264
|
-
send: () =>
|
|
265
|
-
discard: () =>
|
|
267
|
+
send: () => W(!0),
|
|
268
|
+
discard: () => Y(!0)
|
|
266
269
|
}));
|
|
267
|
-
}),
|
|
270
|
+
}), Z = () => N("import", async () => {
|
|
268
271
|
let e = T(), t = await s.current.props.templates?.onImport?.();
|
|
269
272
|
if (t && x.current) {
|
|
270
273
|
if (w.current.some((e) => e.id === t.id)) throw Error(n.duplicateTemplate);
|
|
271
274
|
b((e) => [...e, structuredClone(t)]), T() === e && F(t, {}, !0);
|
|
272
275
|
}
|
|
273
|
-
}), { rendered:
|
|
276
|
+
}), { rendered: re, renderError: ie } = D(o);
|
|
274
277
|
return {
|
|
275
278
|
api: B,
|
|
276
279
|
draft: o,
|
|
277
280
|
strings: n,
|
|
278
281
|
busy: d,
|
|
279
|
-
dataPending:
|
|
282
|
+
dataPending: te,
|
|
280
283
|
error: p,
|
|
281
284
|
notice: h,
|
|
282
285
|
attempted: _,
|
|
283
|
-
rendered:
|
|
286
|
+
rendered: re,
|
|
284
287
|
renderError: ie,
|
|
285
288
|
definitions: S,
|
|
286
289
|
templates: C,
|
|
287
|
-
values:
|
|
290
|
+
values: re?.email.resolvedPlaceholders ?? {},
|
|
288
291
|
editorRef: l,
|
|
289
|
-
state:
|
|
290
|
-
report:
|
|
291
|
-
runAction:
|
|
292
|
-
importTemplate:
|
|
292
|
+
state: ne(),
|
|
293
|
+
report: A,
|
|
294
|
+
runAction: X,
|
|
295
|
+
importTemplate: Z,
|
|
293
296
|
changeBody: (e) => j((t) => ({
|
|
294
297
|
...t,
|
|
295
298
|
body: e
|
|
@@ -306,20 +309,20 @@ function be(t) {
|
|
|
306
309
|
}
|
|
307
310
|
//#endregion
|
|
308
311
|
//#region src/components/features/email-composer/partials/recipients.tsx
|
|
309
|
-
function
|
|
310
|
-
let [d, f] = J(
|
|
311
|
-
|
|
312
|
-
f(
|
|
312
|
+
function be({ recipient: e, field: t, index: n, options: r, busy: i, strings: a, change: o, remove: s, add: c, id: l, errorId: u }) {
|
|
313
|
+
let [d, f] = J(F(e));
|
|
314
|
+
U(() => {
|
|
315
|
+
f(F(e));
|
|
313
316
|
}, [e.name, e.email]);
|
|
314
317
|
let p = r.mode === "readonly", m = r.mode === "disabled" || i, h = r.mode !== "disabled" && r.allowRemove !== !1 && (!p || r.allowRemove === !0), g = () => {
|
|
315
|
-
!p && !m && d !==
|
|
318
|
+
!p && !m && d !== F(e) && o({
|
|
316
319
|
id: e.id,
|
|
317
|
-
...
|
|
320
|
+
...z(d)
|
|
318
321
|
});
|
|
319
322
|
};
|
|
320
|
-
return /* @__PURE__ */ Z(
|
|
323
|
+
return /* @__PURE__ */ Z(x, {
|
|
321
324
|
className: "min-w-0 w-full",
|
|
322
|
-
children: [/* @__PURE__ */ X(
|
|
325
|
+
children: [/* @__PURE__ */ X(S, {
|
|
323
326
|
id: l,
|
|
324
327
|
"aria-invalid": !!u,
|
|
325
328
|
"aria-describedby": u,
|
|
@@ -327,23 +330,23 @@ function xe({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
|
|
|
327
330
|
value: d,
|
|
328
331
|
readOnly: p,
|
|
329
332
|
disabled: m,
|
|
330
|
-
title:
|
|
333
|
+
title: F(e),
|
|
331
334
|
onChange: (e) => f(e.target.value),
|
|
332
335
|
onBlur: g,
|
|
333
336
|
onKeyDown: (t) => {
|
|
334
|
-
t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(
|
|
337
|
+
t.key === "Enter" && (t.preventDefault(), g()), t.key === "Escape" && (t.preventDefault(), f(F(e)));
|
|
335
338
|
}
|
|
336
|
-
}), (h || c) && /* @__PURE__ */ Z(
|
|
339
|
+
}), (h || c) && /* @__PURE__ */ Z(w, {
|
|
337
340
|
align: "inline-end",
|
|
338
|
-
children: [h && /* @__PURE__ */ X(
|
|
341
|
+
children: [h && /* @__PURE__ */ X(T, {
|
|
339
342
|
type: "button",
|
|
340
343
|
iconOnly: !0,
|
|
341
344
|
size: "sm",
|
|
342
345
|
disabled: i,
|
|
343
346
|
"aria-label": a.removeRecipient(e.email),
|
|
344
347
|
onClick: s,
|
|
345
|
-
children: /* @__PURE__ */ X(
|
|
346
|
-
}), c && /* @__PURE__ */ X(
|
|
348
|
+
children: /* @__PURE__ */ X(de, { className: "size-icon" })
|
|
349
|
+
}), c && /* @__PURE__ */ X(T, {
|
|
347
350
|
type: "button",
|
|
348
351
|
iconOnly: !0,
|
|
349
352
|
size: "sm",
|
|
@@ -351,24 +354,24 @@ function xe({ recipient: e, field: t, index: n, options: r, busy: i, strings: a,
|
|
|
351
354
|
"aria-label": a.addRecipient(t),
|
|
352
355
|
title: a.addRecipient(t),
|
|
353
356
|
onClick: c,
|
|
354
|
-
children: /* @__PURE__ */ X(
|
|
357
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
355
358
|
})]
|
|
356
359
|
})]
|
|
357
360
|
});
|
|
358
361
|
}
|
|
359
|
-
function
|
|
360
|
-
let [u, d] = J(!1), [f, p] = J(""), m =
|
|
362
|
+
function xe({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange: o, error: s, actions: c, report: l }) {
|
|
363
|
+
let [u, d] = J(!1), [f, p] = J(""), m = W(), 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 = () => {
|
|
361
364
|
if (r || !_ || !v || y) return;
|
|
362
|
-
let e =
|
|
365
|
+
let e = z(f);
|
|
363
366
|
f.trim() && !t.some((t) => t.email.toLowerCase() === e.email.toLowerCase()) && o([...t, e]), p(""), d(!1);
|
|
364
367
|
};
|
|
365
|
-
|
|
368
|
+
U(() => {
|
|
366
369
|
u && g.current?.focus();
|
|
367
370
|
}, [u]);
|
|
368
|
-
let
|
|
369
|
-
v &&
|
|
371
|
+
let E = () => {
|
|
372
|
+
v && C(), d(!0), g.current?.focus();
|
|
370
373
|
};
|
|
371
|
-
return /* @__PURE__ */ X(
|
|
374
|
+
return /* @__PURE__ */ X(b, {
|
|
372
375
|
label: i[e],
|
|
373
376
|
required: e === "to",
|
|
374
377
|
error: s,
|
|
@@ -377,12 +380,12 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
377
380
|
children: /* @__PURE__ */ Z(a, {
|
|
378
381
|
id: `${m}-group`,
|
|
379
382
|
gap: "sm",
|
|
380
|
-
children: [y ? /* @__PURE__ */ X(
|
|
383
|
+
children: [y ? /* @__PURE__ */ X(ve, {
|
|
381
384
|
state: n,
|
|
382
385
|
label: i.loadingRecipients(i[e]),
|
|
383
386
|
retryLabel: i.retry,
|
|
384
387
|
report: l
|
|
385
|
-
}) : /* @__PURE__ */ Z(Y, { children: [t.map((a, s) => /* @__PURE__ */ X(
|
|
388
|
+
}) : /* @__PURE__ */ Z(Y, { children: [t.map((a, s) => /* @__PURE__ */ X(be, {
|
|
386
389
|
id: `${m}-${s}`,
|
|
387
390
|
errorId: h,
|
|
388
391
|
recipient: a,
|
|
@@ -393,10 +396,10 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
393
396
|
strings: i,
|
|
394
397
|
change: (e) => o(t.map((t, n) => n === s ? e : t)),
|
|
395
398
|
remove: () => o(t.filter((e, t) => t !== s)),
|
|
396
|
-
add: _ && !v && s === t.length - 1 ?
|
|
397
|
-
}, a.id ?? s)), v && /* @__PURE__ */ Z(
|
|
399
|
+
add: _ && !v && s === t.length - 1 ? E : void 0
|
|
400
|
+
}, a.id ?? s)), v && /* @__PURE__ */ Z(x, {
|
|
398
401
|
className: "min-w-0 w-full",
|
|
399
|
-
children: [/* @__PURE__ */ X(
|
|
402
|
+
children: [/* @__PURE__ */ X(S, {
|
|
400
403
|
id: `${m}-new`,
|
|
401
404
|
ref: g,
|
|
402
405
|
autoFocus: e !== "to",
|
|
@@ -408,13 +411,13 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
408
411
|
disabled: r || n.mode === "disabled",
|
|
409
412
|
readOnly: !_,
|
|
410
413
|
onChange: (e) => p(e.target.value),
|
|
411
|
-
onBlur:
|
|
414
|
+
onBlur: C,
|
|
412
415
|
onKeyDown: (e) => {
|
|
413
|
-
e.key === "Enter" && (e.preventDefault(),
|
|
416
|
+
e.key === "Enter" && (e.preventDefault(), C()), e.key === "Escape" && (e.preventDefault(), p(""), d(!1));
|
|
414
417
|
}
|
|
415
|
-
}), _ && /* @__PURE__ */ X(
|
|
418
|
+
}), _ && /* @__PURE__ */ X(w, {
|
|
416
419
|
align: "inline-end",
|
|
417
|
-
children: /* @__PURE__ */ X(
|
|
420
|
+
children: /* @__PURE__ */ X(T, {
|
|
418
421
|
type: "button",
|
|
419
422
|
iconOnly: !0,
|
|
420
423
|
size: "sm",
|
|
@@ -422,8 +425,8 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
422
425
|
"aria-label": i.addRecipient(i[e]),
|
|
423
426
|
title: i.addRecipient(i[e]),
|
|
424
427
|
onMouseDown: (e) => e.preventDefault(),
|
|
425
|
-
onClick:
|
|
426
|
-
children: /* @__PURE__ */ X(
|
|
428
|
+
onClick: E,
|
|
429
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
427
430
|
})
|
|
428
431
|
})]
|
|
429
432
|
})] }), c && /* @__PURE__ */ X(a, {
|
|
@@ -437,8 +440,8 @@ function Se({ field: e, value: t, options: n = {}, busy: r, strings: i, onChange
|
|
|
437
440
|
}
|
|
438
441
|
//#endregion
|
|
439
442
|
//#region src/components/features/email-composer/partials/variables.tsx
|
|
440
|
-
function
|
|
441
|
-
let u =
|
|
443
|
+
function Se({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c, editable: l }) {
|
|
444
|
+
let u = W();
|
|
442
445
|
return /* @__PURE__ */ X(i, {
|
|
443
446
|
minColumnWidth: "sm",
|
|
444
447
|
gap: "md",
|
|
@@ -448,20 +451,20 @@ function Ce({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c,
|
|
|
448
451
|
value: String(t[i] ?? ""),
|
|
449
452
|
disabled: c,
|
|
450
453
|
readOnly: !d.editable
|
|
451
|
-
}, h = d.input === "textarea" ? /* @__PURE__ */ X(
|
|
454
|
+
}, h = d.input === "textarea" ? /* @__PURE__ */ X(C, {
|
|
452
455
|
...m,
|
|
453
456
|
onChange: (e) => o.setPlaceholder(i, e.target.value)
|
|
454
|
-
}) : d.input === "select" ? /* @__PURE__ */ X(
|
|
457
|
+
}) : d.input === "select" ? /* @__PURE__ */ X(E, {
|
|
455
458
|
...m,
|
|
456
459
|
placeholder: s.choose,
|
|
457
460
|
options: [...d.options ?? []],
|
|
458
461
|
onValueChange: (e) => o.setPlaceholder(i, e ?? "")
|
|
459
|
-
}) : /* @__PURE__ */ X(
|
|
462
|
+
}) : /* @__PURE__ */ X(y, {
|
|
460
463
|
...m,
|
|
461
464
|
type: d.input === "number" ? "number" : d.input === "date" ? "date" : "text",
|
|
462
465
|
onChange: (e) => o.setPlaceholder(i, d.input === "number" && e.target.value !== "" ? Number(e.target.value) : e.target.value)
|
|
463
466
|
});
|
|
464
|
-
return /* @__PURE__ */ X(
|
|
467
|
+
return /* @__PURE__ */ X(b, {
|
|
465
468
|
label: d.group ? `${d.group} · ${d.label}` : d.label,
|
|
466
469
|
htmlFor: p,
|
|
467
470
|
required: d.required,
|
|
@@ -486,7 +489,7 @@ function Ce({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c,
|
|
|
486
489
|
disabled: c || !l,
|
|
487
490
|
"aria-label": s.insertVariable(d.label),
|
|
488
491
|
onClick: () => o.insertPlaceholder(i),
|
|
489
|
-
children: /* @__PURE__ */ X(
|
|
492
|
+
children: /* @__PURE__ */ X(ce, { className: "size-icon" })
|
|
490
493
|
}),
|
|
491
494
|
f && /* @__PURE__ */ X(n, {
|
|
492
495
|
type: "button",
|
|
@@ -505,7 +508,7 @@ function Ce({ definitions: e, values: t, draft: r, api: o, strings: s, busy: c,
|
|
|
505
508
|
}
|
|
506
509
|
//#endregion
|
|
507
510
|
//#region src/components/features/email-composer/partials/body-editor.tsx
|
|
508
|
-
var
|
|
511
|
+
var Ce = pe.create({
|
|
509
512
|
name: "placeholderToken",
|
|
510
513
|
group: "inline",
|
|
511
514
|
inline: !0,
|
|
@@ -517,35 +520,36 @@ var we = me.create({
|
|
|
517
520
|
parseHTML: () => [{ tag: "span[data-placeholder]" }],
|
|
518
521
|
renderHTML: ({ node: e, HTMLAttributes: t }) => [
|
|
519
522
|
"span",
|
|
520
|
-
|
|
523
|
+
he(t, {
|
|
521
524
|
"data-placeholder": e.attrs.key,
|
|
522
|
-
class: "rounded-
|
|
525
|
+
class: "rounded-radius bg-accent text-accent-foreground",
|
|
523
526
|
contenteditable: "false"
|
|
524
527
|
}),
|
|
525
528
|
`{{${e.attrs.key}}}`
|
|
526
529
|
],
|
|
527
530
|
renderText: ({ node: e }) => `{{${e.attrs.key}}}`
|
|
528
|
-
}), $ = [
|
|
529
|
-
function
|
|
531
|
+
}), $ = [_e.configure({ link: { openOnClick: !1 } }), Ce];
|
|
532
|
+
function we({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
530
533
|
let u = q(i);
|
|
531
534
|
u.current = i;
|
|
532
|
-
let d = q(!1), [f, p] = J(!1), [m, h] = J(""), [_,
|
|
535
|
+
let d = q(!1), [f, p] = J(!1), [m, h] = J(""), [_, v] = J(""), x = q({
|
|
533
536
|
from: 1,
|
|
534
537
|
to: 1
|
|
535
|
-
}),
|
|
538
|
+
}), S = e(M, {
|
|
536
539
|
editorLabel: l.body,
|
|
537
540
|
toolbar: l.toolbar
|
|
538
|
-
}),
|
|
541
|
+
}), C = ge({
|
|
539
542
|
extensions: $,
|
|
540
543
|
immediatelyRender: !1,
|
|
541
544
|
shouldRerenderOnTransaction: !0,
|
|
542
|
-
content: n.kind === "rich" ? n.document :
|
|
545
|
+
content: n.kind === "rich" ? n.document : P(n),
|
|
543
546
|
editable: !r,
|
|
544
547
|
editorProps: { attributes: {
|
|
548
|
+
"data-slot": "editor-field",
|
|
545
549
|
role: "textbox",
|
|
546
550
|
"aria-label": l.body,
|
|
547
551
|
"aria-multiline": "true",
|
|
548
|
-
class:
|
|
552
|
+
class: A.editable
|
|
549
553
|
} },
|
|
550
554
|
onUpdate: ({ editor: e }) => {
|
|
551
555
|
d.current || u.current({
|
|
@@ -554,27 +558,27 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
554
558
|
});
|
|
555
559
|
}
|
|
556
560
|
});
|
|
557
|
-
|
|
558
|
-
if (
|
|
559
|
-
let e = n.kind === "rich" ?
|
|
560
|
-
JSON.stringify(
|
|
561
|
+
U(() => {
|
|
562
|
+
if (C) try {
|
|
563
|
+
let e = n.kind === "rich" ? C.schema.nodeFromJSON(n.document).toJSON() : me(P(n), $);
|
|
564
|
+
JSON.stringify(C.getJSON()) !== JSON.stringify(e) && C.commands.setContent(e, { emitUpdate: !1 });
|
|
561
565
|
} catch {}
|
|
562
|
-
}),
|
|
563
|
-
|
|
566
|
+
}), U(() => {
|
|
567
|
+
C?.setEditable(!r && n.kind !== "html", !1);
|
|
564
568
|
}, [
|
|
565
|
-
|
|
569
|
+
C,
|
|
566
570
|
r,
|
|
567
571
|
n.kind
|
|
568
|
-
]),
|
|
572
|
+
]), U(() => {
|
|
569
573
|
(r || n.kind === "html") && p(!1);
|
|
570
|
-
}, [r, n.kind]),
|
|
574
|
+
}, [r, n.kind]), G(c, () => {
|
|
571
575
|
let e = (e) => {
|
|
572
|
-
if (!
|
|
576
|
+
if (!C) throw Error(l.editorNotReady);
|
|
573
577
|
d.current = !0;
|
|
574
578
|
try {
|
|
575
579
|
return e(), {
|
|
576
580
|
kind: "rich",
|
|
577
|
-
document:
|
|
581
|
+
document: C.getJSON()
|
|
578
582
|
};
|
|
579
583
|
} finally {
|
|
580
584
|
d.current = !1;
|
|
@@ -582,119 +586,119 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
582
586
|
};
|
|
583
587
|
return {
|
|
584
588
|
synchronize: (e) => {
|
|
585
|
-
if (!
|
|
586
|
-
let t = e.kind === "rich" ?
|
|
587
|
-
JSON.stringify(
|
|
589
|
+
if (!C) return;
|
|
590
|
+
let t = e.kind === "rich" ? C.schema.nodeFromJSON(e.document).toJSON() : me(P(e), $);
|
|
591
|
+
JSON.stringify(C.getJSON()) !== JSON.stringify(t) && C.commands.setContent(t, { emitUpdate: !1 });
|
|
588
592
|
},
|
|
589
593
|
focus: () => {
|
|
590
|
-
|
|
594
|
+
C?.commands.focus();
|
|
591
595
|
},
|
|
592
596
|
convert: (e) => ({
|
|
593
597
|
kind: "rich",
|
|
594
|
-
document: e.kind === "rich" ? e.document :
|
|
598
|
+
document: e.kind === "rich" ? e.document : me(P(e), $)
|
|
595
599
|
}),
|
|
596
600
|
insert: (t, n) => e(() => {
|
|
597
|
-
n === "append" &&
|
|
601
|
+
n === "append" && C.commands.focus("end"), C.chain().focus().insertContent(t.kind === "rich" ? t.document.content ?? [] : P(t)).run();
|
|
598
602
|
}),
|
|
599
603
|
insertText: (t) => e(() => {
|
|
600
|
-
t &&
|
|
604
|
+
t && C.chain().focus().insertContent({
|
|
601
605
|
type: "text",
|
|
602
606
|
text: t
|
|
603
607
|
}).run();
|
|
604
608
|
}),
|
|
605
609
|
insertPlaceholder: (t) => e(() => {
|
|
606
|
-
|
|
610
|
+
C.chain().focus().insertContent({
|
|
607
611
|
type: "placeholderToken",
|
|
608
612
|
attrs: { key: t }
|
|
609
613
|
}).run();
|
|
610
614
|
})
|
|
611
615
|
};
|
|
612
|
-
}, [
|
|
613
|
-
let
|
|
616
|
+
}, [C, l]);
|
|
617
|
+
let w = [
|
|
614
618
|
{
|
|
615
619
|
id: "bold",
|
|
616
|
-
icon:
|
|
617
|
-
label:
|
|
618
|
-
isActive: () => !!
|
|
620
|
+
icon: re,
|
|
621
|
+
label: S.toolbar.bold,
|
|
622
|
+
isActive: () => !!C?.isActive("bold"),
|
|
619
623
|
run: () => {
|
|
620
|
-
|
|
624
|
+
C?.chain().focus().toggleBold().run();
|
|
621
625
|
}
|
|
622
626
|
},
|
|
623
627
|
{
|
|
624
628
|
id: "italic",
|
|
625
|
-
icon:
|
|
626
|
-
label:
|
|
627
|
-
isActive: () => !!
|
|
629
|
+
icon: ie,
|
|
630
|
+
label: S.toolbar.italic,
|
|
631
|
+
isActive: () => !!C?.isActive("italic"),
|
|
628
632
|
run: () => {
|
|
629
|
-
|
|
633
|
+
C?.chain().focus().toggleItalic().run();
|
|
630
634
|
}
|
|
631
635
|
},
|
|
632
636
|
{
|
|
633
637
|
id: "bullet",
|
|
634
|
-
icon:
|
|
635
|
-
label:
|
|
636
|
-
isActive: () => !!
|
|
638
|
+
icon: oe,
|
|
639
|
+
label: S.toolbar.bulletList,
|
|
640
|
+
isActive: () => !!C?.isActive("bulletList"),
|
|
637
641
|
run: () => {
|
|
638
|
-
|
|
642
|
+
C?.chain().focus().toggleBulletList().run();
|
|
639
643
|
}
|
|
640
644
|
},
|
|
641
645
|
{
|
|
642
646
|
id: "ordered",
|
|
643
|
-
icon:
|
|
644
|
-
label:
|
|
645
|
-
isActive: () => !!
|
|
647
|
+
icon: se,
|
|
648
|
+
label: S.toolbar.orderedList,
|
|
649
|
+
isActive: () => !!C?.isActive("orderedList"),
|
|
646
650
|
run: () => {
|
|
647
|
-
|
|
651
|
+
C?.chain().focus().toggleOrderedList().run();
|
|
648
652
|
}
|
|
649
653
|
},
|
|
650
654
|
{
|
|
651
655
|
id: "undo",
|
|
652
|
-
icon:
|
|
653
|
-
label:
|
|
656
|
+
icon: ue,
|
|
657
|
+
label: S.toolbar.undo,
|
|
654
658
|
isActive: () => !1,
|
|
655
659
|
run: () => {
|
|
656
|
-
|
|
660
|
+
C?.chain().focus().undo().run();
|
|
657
661
|
},
|
|
658
|
-
disabled: !
|
|
662
|
+
disabled: !C?.can().undo()
|
|
659
663
|
},
|
|
660
664
|
{
|
|
661
665
|
id: "redo",
|
|
662
|
-
icon:
|
|
663
|
-
label:
|
|
666
|
+
icon: le,
|
|
667
|
+
label: S.toolbar.redo,
|
|
664
668
|
isActive: () => !1,
|
|
665
669
|
run: () => {
|
|
666
|
-
|
|
670
|
+
C?.chain().focus().redo().run();
|
|
667
671
|
},
|
|
668
|
-
disabled: !
|
|
672
|
+
disabled: !C?.can().redo()
|
|
669
673
|
}
|
|
670
674
|
];
|
|
671
675
|
return /* @__PURE__ */ Z(a, {
|
|
672
676
|
gap: "none",
|
|
673
|
-
className: t("email-composer--editor",
|
|
677
|
+
className: t("email-composer--editor", A.frame, r && A.disabled),
|
|
674
678
|
children: [
|
|
675
|
-
/* @__PURE__ */ X(
|
|
676
|
-
buttons:
|
|
679
|
+
/* @__PURE__ */ X(j, {
|
|
680
|
+
buttons: w,
|
|
677
681
|
disabled: r,
|
|
678
|
-
hasEditor: !!
|
|
682
|
+
hasEditor: !!C,
|
|
679
683
|
sourceMode: !1,
|
|
680
684
|
hideSourceToggle: !0,
|
|
681
685
|
toggleSourceMode: () => {},
|
|
682
|
-
strings:
|
|
686
|
+
strings: S,
|
|
683
687
|
extraToolbarItems: [{
|
|
684
688
|
id: "link",
|
|
685
|
-
icon:
|
|
689
|
+
icon: ae,
|
|
686
690
|
label: l.link,
|
|
687
691
|
onClick: () => {
|
|
688
|
-
|
|
689
|
-
from:
|
|
690
|
-
to:
|
|
691
|
-
}, h(String(
|
|
692
|
+
C && (x.current = {
|
|
693
|
+
from: C.state.selection.from,
|
|
694
|
+
to: C.state.selection.to
|
|
695
|
+
}, h(String(C.getAttributes("link").href ?? "")), v(""), p(!0));
|
|
692
696
|
}
|
|
693
697
|
}]
|
|
694
698
|
}),
|
|
695
|
-
/* @__PURE__ */ X(
|
|
696
|
-
editor:
|
|
697
|
-
className: t(
|
|
699
|
+
/* @__PURE__ */ X(fe, {
|
|
700
|
+
editor: C,
|
|
701
|
+
className: t(A.content, "min-h-64 w-full min-w-0 [&_.ProseMirror]:min-h-64")
|
|
698
702
|
}),
|
|
699
703
|
/* @__PURE__ */ X(g, {
|
|
700
704
|
open: f,
|
|
@@ -709,16 +713,16 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
709
713
|
onAsyncConfirm: async () => {
|
|
710
714
|
let e = m.trim();
|
|
711
715
|
if (e && !/^(https?:\/\/|mailto:)/i.test(e)) {
|
|
712
|
-
|
|
716
|
+
v(l.invalidLink);
|
|
713
717
|
return;
|
|
714
718
|
}
|
|
715
|
-
|
|
719
|
+
C?.commands.setTextSelection(x.current), e ? C?.chain().focus().extendMarkRange("link").setLink({ href: e }).run() : C?.chain().focus().extendMarkRange("link").unsetLink().run(), p(!1);
|
|
716
720
|
},
|
|
717
721
|
children: /* @__PURE__ */ Z(a, {
|
|
718
722
|
gap: "md",
|
|
719
|
-
children: [/* @__PURE__ */ X(
|
|
723
|
+
children: [/* @__PURE__ */ X(b, {
|
|
720
724
|
label: l.linkUrl,
|
|
721
|
-
children: /* @__PURE__ */ X(
|
|
725
|
+
children: /* @__PURE__ */ X(y, {
|
|
722
726
|
value: m,
|
|
723
727
|
onChange: (e) => h(e.target.value)
|
|
724
728
|
})
|
|
@@ -733,7 +737,7 @@ function Te({ body: n, disabled: r, onChange: i, adapterRef: c, strings: l }) {
|
|
|
733
737
|
}
|
|
734
738
|
//#endregion
|
|
735
739
|
//#region src/components/features/email-composer/partials/html-preview.tsx
|
|
736
|
-
function
|
|
740
|
+
function Te({ html: e, subject: t, strings: n }) {
|
|
737
741
|
return /* @__PURE__ */ Z(a, {
|
|
738
742
|
gap: "normal",
|
|
739
743
|
className: "min-w-0",
|
|
@@ -759,12 +763,12 @@ function Ee({ html: e, subject: t, strings: n }) {
|
|
|
759
763
|
}
|
|
760
764
|
//#endregion
|
|
761
765
|
//#region src/components/features/email-composer/email-composer.tsx
|
|
762
|
-
function
|
|
763
|
-
let r =
|
|
766
|
+
function Ee(e) {
|
|
767
|
+
let r = ye(e), { api: i, draft: u, strings: d, busy: x, state: S } = r, [C, w] = J("editor"), [T, E] = J(e.placeholders?.showEditor ?? !1), [A, j] = J(!1), [M, N] = J(!1), [P, F] = J(!1), I = W(), L = C === "preview" || u.body.kind === "html", R = (t) => (e.actions ?? []).filter((e) => (e.position ?? "toolbar") === t && (e.visible?.(S) ?? !0)).map((e) => ({
|
|
764
768
|
id: e.id,
|
|
765
769
|
label: e.label,
|
|
766
770
|
icon: e.icon,
|
|
767
|
-
disabled:
|
|
771
|
+
disabled: x || e.disabled?.(S),
|
|
768
772
|
onClick: () => {
|
|
769
773
|
r.runAction(e);
|
|
770
774
|
},
|
|
@@ -789,7 +793,7 @@ function De(e) {
|
|
|
789
793
|
type: "button",
|
|
790
794
|
tone: "secondary",
|
|
791
795
|
buttonStyle: "ghost",
|
|
792
|
-
disabled:
|
|
796
|
+
disabled: x,
|
|
793
797
|
onClick: () => {
|
|
794
798
|
i.discard();
|
|
795
799
|
},
|
|
@@ -807,17 +811,17 @@ function De(e) {
|
|
|
807
811
|
children: [e.buttons?.send !== !1 && /* @__PURE__ */ X(n, {
|
|
808
812
|
type: "button",
|
|
809
813
|
tone: "primary",
|
|
810
|
-
disabled:
|
|
811
|
-
loading:
|
|
814
|
+
disabled: x || r.dataPending,
|
|
815
|
+
loading: x,
|
|
812
816
|
strings: { loading: d.working },
|
|
813
817
|
onClick: () => {
|
|
814
818
|
i.send();
|
|
815
819
|
},
|
|
816
|
-
children:
|
|
820
|
+
children: x ? d.working : e.buttons?.send?.label ?? d.send
|
|
817
821
|
}), !!R("overflow").length && /* @__PURE__ */ X(p, {
|
|
818
822
|
actions: R("overflow"),
|
|
819
823
|
srText: d.more,
|
|
820
|
-
buttonProps: { disabled:
|
|
824
|
+
buttonProps: { disabled: x }
|
|
821
825
|
})]
|
|
822
826
|
})]
|
|
823
827
|
})]
|
|
@@ -834,21 +838,21 @@ function De(e) {
|
|
|
834
838
|
"to",
|
|
835
839
|
"cc",
|
|
836
840
|
"bcc"
|
|
837
|
-
].filter((t) => t === "to" || t === "cc" && (
|
|
841
|
+
].filter((t) => t === "to" || t === "cc" && (A || u.cc.length || Q(e.recipients?.cc)) || t === "bcc" && (M || u.bcc.length || Q(e.recipients?.bcc))).map((t) => /* @__PURE__ */ X(xe, {
|
|
838
842
|
field: t,
|
|
839
843
|
value: u[t],
|
|
840
844
|
options: e.recipients?.[t],
|
|
841
845
|
strings: d,
|
|
842
|
-
busy:
|
|
846
|
+
busy: x,
|
|
843
847
|
report: r.report,
|
|
844
848
|
error: B(t),
|
|
845
849
|
onChange: (e) => r.changeRecipients(t, e),
|
|
846
|
-
actions: t === "to" ? /* @__PURE__ */ Z(Y, { children: [!
|
|
850
|
+
actions: t === "to" ? /* @__PURE__ */ Z(Y, { children: [!A && !u.cc.length && /* @__PURE__ */ X(n, {
|
|
847
851
|
type: "button",
|
|
848
852
|
size: "sm",
|
|
849
853
|
buttonStyle: "ghost",
|
|
850
854
|
tone: "secondary",
|
|
851
|
-
disabled:
|
|
855
|
+
disabled: x,
|
|
852
856
|
onClick: () => j(!0),
|
|
853
857
|
children: d.cc
|
|
854
858
|
}), !M && !u.bcc.length && /* @__PURE__ */ X(n, {
|
|
@@ -856,29 +860,29 @@ function De(e) {
|
|
|
856
860
|
size: "sm",
|
|
857
861
|
buttonStyle: "ghost",
|
|
858
862
|
tone: "secondary",
|
|
859
|
-
disabled:
|
|
863
|
+
disabled: x,
|
|
860
864
|
onClick: () => N(!0),
|
|
861
865
|
children: d.bcc
|
|
862
866
|
})] }) : void 0
|
|
863
867
|
}, t))
|
|
864
|
-
}), /* @__PURE__ */ X(
|
|
868
|
+
}), /* @__PURE__ */ X(b, {
|
|
865
869
|
label: d.subject,
|
|
866
870
|
required: !0,
|
|
867
871
|
htmlFor: `${I}-subject`,
|
|
868
872
|
error: B("subject"),
|
|
869
873
|
supportingTextId: `${I}-subject-error`,
|
|
870
|
-
children: /* @__PURE__ */ X(
|
|
874
|
+
children: /* @__PURE__ */ X(y, {
|
|
871
875
|
id: `${I}-subject`,
|
|
872
876
|
value: u.subject,
|
|
873
877
|
readOnly: e.subject?.readOnly,
|
|
874
|
-
disabled:
|
|
878
|
+
disabled: x,
|
|
875
879
|
invalid: !!B("subject"),
|
|
876
880
|
"aria-describedby": B("subject") ? `${I}-subject-error` : void 0,
|
|
877
881
|
onChange: (e) => r.changeSubject(e.target.value)
|
|
878
882
|
})
|
|
879
883
|
})]
|
|
880
884
|
}),
|
|
881
|
-
/* @__PURE__ */ X(
|
|
885
|
+
/* @__PURE__ */ X(k, {
|
|
882
886
|
value: L ? "preview" : "editor",
|
|
883
887
|
onValueChange: (e) => {
|
|
884
888
|
e && w(e);
|
|
@@ -889,11 +893,11 @@ function De(e) {
|
|
|
889
893
|
contentGap: "md",
|
|
890
894
|
titleSize: "sm",
|
|
891
895
|
title: d.body,
|
|
892
|
-
headerAction: /* @__PURE__ */ Z(
|
|
896
|
+
headerAction: /* @__PURE__ */ Z(te, { children: [/* @__PURE__ */ X(D, {
|
|
893
897
|
value: "editor",
|
|
894
898
|
disabled: u.body.kind === "html",
|
|
895
899
|
children: d.editor
|
|
896
|
-
}), /* @__PURE__ */ X(
|
|
900
|
+
}), /* @__PURE__ */ X(D, {
|
|
897
901
|
value: "preview",
|
|
898
902
|
children: d.preview
|
|
899
903
|
})] }),
|
|
@@ -910,7 +914,7 @@ function De(e) {
|
|
|
910
914
|
tone: "secondary",
|
|
911
915
|
buttonStyle: "outline",
|
|
912
916
|
size: "sm",
|
|
913
|
-
disabled:
|
|
917
|
+
disabled: x,
|
|
914
918
|
children: d.templates
|
|
915
919
|
}),
|
|
916
920
|
items: r.templates.map((e) => ({
|
|
@@ -944,7 +948,7 @@ function De(e) {
|
|
|
944
948
|
tone: "secondary",
|
|
945
949
|
buttonStyle: "ghost",
|
|
946
950
|
size: "sm",
|
|
947
|
-
disabled:
|
|
951
|
+
disabled: x,
|
|
948
952
|
onClick: () => {
|
|
949
953
|
r.importTemplate();
|
|
950
954
|
},
|
|
@@ -956,20 +960,20 @@ function De(e) {
|
|
|
956
960
|
})
|
|
957
961
|
]
|
|
958
962
|
}),
|
|
959
|
-
/* @__PURE__ */ X(
|
|
963
|
+
/* @__PURE__ */ X(O, {
|
|
960
964
|
value: "editor",
|
|
961
965
|
keepMounted: !0,
|
|
962
|
-
children: /* @__PURE__ */ X(
|
|
966
|
+
children: /* @__PURE__ */ X(we, {
|
|
963
967
|
body: u.body,
|
|
964
|
-
disabled:
|
|
968
|
+
disabled: x || L,
|
|
965
969
|
onChange: r.changeBody,
|
|
966
970
|
adapterRef: r.editorRef,
|
|
967
971
|
strings: d
|
|
968
972
|
})
|
|
969
973
|
}),
|
|
970
|
-
/* @__PURE__ */ X(
|
|
974
|
+
/* @__PURE__ */ X(O, {
|
|
971
975
|
value: "preview",
|
|
972
|
-
children: r.rendered && /* @__PURE__ */ X(
|
|
976
|
+
children: r.rendered && /* @__PURE__ */ X(Te, {
|
|
973
977
|
html: r.rendered.email.html,
|
|
974
978
|
subject: r.rendered.email.subject,
|
|
975
979
|
strings: d
|
|
@@ -978,25 +982,25 @@ function De(e) {
|
|
|
978
982
|
]
|
|
979
983
|
})
|
|
980
984
|
}),
|
|
981
|
-
(!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ X(
|
|
985
|
+
(!!Object.keys(r.definitions).length || Q(e.placeholders)) && /* @__PURE__ */ X(v, {
|
|
982
986
|
value: T ? ["variables"] : [],
|
|
983
987
|
onValueChange: (e) => E(e.includes("variables")),
|
|
984
988
|
items: [{
|
|
985
989
|
value: "variables",
|
|
986
990
|
title: d.variables,
|
|
987
991
|
description: d.variablesDescription,
|
|
988
|
-
content: Q(e.placeholders) ? /* @__PURE__ */ X(
|
|
992
|
+
content: Q(e.placeholders) ? /* @__PURE__ */ X(ve, {
|
|
989
993
|
state: e.placeholders,
|
|
990
994
|
label: d.loadingVariables,
|
|
991
995
|
retryLabel: d.retry,
|
|
992
996
|
report: r.report
|
|
993
|
-
}) : /* @__PURE__ */ X(
|
|
997
|
+
}) : /* @__PURE__ */ X(Se, {
|
|
994
998
|
definitions: r.definitions,
|
|
995
999
|
values: r.values,
|
|
996
1000
|
draft: u,
|
|
997
1001
|
api: i,
|
|
998
1002
|
strings: d,
|
|
999
|
-
busy:
|
|
1003
|
+
busy: x,
|
|
1000
1004
|
editable: !L
|
|
1001
1005
|
})
|
|
1002
1006
|
}]
|
|
@@ -1005,7 +1009,7 @@ function De(e) {
|
|
|
1005
1009
|
type: "button",
|
|
1006
1010
|
tone: "secondary",
|
|
1007
1011
|
buttonStyle: "outline",
|
|
1008
|
-
disabled:
|
|
1012
|
+
disabled: x,
|
|
1009
1013
|
onClick: () => F(!0),
|
|
1010
1014
|
children: d.convert
|
|
1011
1015
|
}),
|
|
@@ -1026,33 +1030,33 @@ function De(e) {
|
|
|
1026
1030
|
tone: "secondary",
|
|
1027
1031
|
buttonStyle: "ghost",
|
|
1028
1032
|
size: "sm",
|
|
1029
|
-
disabled:
|
|
1033
|
+
disabled: x,
|
|
1030
1034
|
"aria-label": d.close,
|
|
1031
1035
|
onClick: e.onClose,
|
|
1032
|
-
children: /* @__PURE__ */ X(
|
|
1033
|
-
}) : void 0,
|
|
1036
|
+
children: /* @__PURE__ */ X(de, { className: "size-icon" })
|
|
1037
|
+
}) : void 0, G, K = t("email-composer--component min-w-0", e.className);
|
|
1034
1038
|
if (e.position === "dialog" || e.position === "sheet") {
|
|
1035
1039
|
let t = {
|
|
1036
1040
|
open: !0,
|
|
1037
1041
|
title: H,
|
|
1038
1042
|
description: e.description,
|
|
1039
1043
|
onOpenChange: (t) => {
|
|
1040
|
-
!t && !
|
|
1044
|
+
!t && !x && e.onClose?.();
|
|
1041
1045
|
},
|
|
1042
|
-
closeOnEscape: !
|
|
1046
|
+
closeOnEscape: !x && !!e.onClose,
|
|
1043
1047
|
closeOnBackdropClick: !1,
|
|
1044
|
-
loading:
|
|
1048
|
+
loading: x,
|
|
1045
1049
|
strings: { close: d.close },
|
|
1046
1050
|
showCancel: !1,
|
|
1047
1051
|
showConfirm: !1,
|
|
1048
|
-
showCloseButton: !!e.onClose && !
|
|
1052
|
+
showCloseButton: !!e.onClose && !x,
|
|
1049
1053
|
footer: z,
|
|
1050
1054
|
className: K
|
|
1051
1055
|
};
|
|
1052
|
-
|
|
1056
|
+
G = e.position === "dialog" ? /* @__PURE__ */ X(g, {
|
|
1053
1057
|
...t,
|
|
1054
1058
|
size: "3xl",
|
|
1055
|
-
showCloseButton: !!e.onClose && !
|
|
1059
|
+
showCloseButton: !!e.onClose && !x,
|
|
1056
1060
|
children: V
|
|
1057
1061
|
}) : /* @__PURE__ */ X(h, {
|
|
1058
1062
|
...t,
|
|
@@ -1070,16 +1074,16 @@ function De(e) {
|
|
|
1070
1074
|
footerSlot: z,
|
|
1071
1075
|
children: V
|
|
1072
1076
|
});
|
|
1073
|
-
|
|
1077
|
+
G = e.position === "floating" ? /* @__PURE__ */ X("div", {
|
|
1074
1078
|
className: "fixed bottom-space-md end-space-md z-40 w-[min(42rem,calc(100vw-2rem))]",
|
|
1075
|
-
children: /* @__PURE__ */ X(
|
|
1079
|
+
children: /* @__PURE__ */ X(ee, {
|
|
1076
1080
|
className: "max-h-[calc(100dvh-2rem)]",
|
|
1077
1081
|
viewportClassName: "max-h-[calc(100dvh-2rem)]",
|
|
1078
1082
|
children: t
|
|
1079
1083
|
})
|
|
1080
1084
|
}) : t;
|
|
1081
1085
|
}
|
|
1082
|
-
return /* @__PURE__ */ Z(Y, { children: [
|
|
1086
|
+
return /* @__PURE__ */ Z(Y, { children: [G, /* @__PURE__ */ X(_, {
|
|
1083
1087
|
open: P,
|
|
1084
1088
|
onOpenChange: F,
|
|
1085
1089
|
title: d.convertTitle,
|
|
@@ -1090,11 +1094,11 @@ function De(e) {
|
|
|
1090
1094
|
close: d.closeConversion
|
|
1091
1095
|
},
|
|
1092
1096
|
onConfirm: () => {
|
|
1093
|
-
!
|
|
1097
|
+
!x && r.editorRef.current && (i.setBody(r.editorRef.current.convert(u.body)), w("editor"));
|
|
1094
1098
|
}
|
|
1095
1099
|
})] });
|
|
1096
1100
|
}
|
|
1097
1101
|
//#endregion
|
|
1098
|
-
export {
|
|
1102
|
+
export { Ee as EmailComposer, P as bodyHtml, V as createHttpSender, H as defaultEmailComposerStrings, z as parseRecipient, F as recipientLabel, N as renderEmail, R as resolveValues, B as validate };
|
|
1099
1103
|
|
|
1100
1104
|
//# sourceMappingURL=email-composer.js.map
|