@liquidcommerce/elements-sdk 2.6.0-beta.13 → 2.6.0-beta.131
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/README.md +102 -2518
- package/dist/index.checkout.esm.js +22524 -0
- package/dist/index.esm.js +30689 -20632
- package/dist/ssr-stub.checkout.esm.js +17 -0
- package/dist/ssr-stub.esm.js +281 -0
- package/dist/types/auto-initialize/checkout.d.ts +2 -0
- package/dist/types/auto-initialize/shared-utils.d.ts +51 -0
- package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +16 -2
- package/dist/types/clients/builder.d.ts +3 -0
- package/dist/types/clients/checkout.d.ts +6 -0
- package/dist/types/clients/helpers.d.ts +8 -0
- package/dist/types/clients/main.d.ts +3 -0
- package/dist/types/constants/core.constant.d.ts +13 -18
- package/dist/types/constants/index.d.ts +1 -0
- package/dist/types/constants/prop65.constant.d.ts +8 -0
- package/dist/types/core/a11y/announcer.service.d.ts +16 -0
- package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
- package/dist/types/core/a11y/focusable.d.ts +5 -0
- package/dist/types/core/a11y/glyph-button.d.ts +8 -0
- package/dist/types/core/a11y/index.d.ts +6 -0
- package/dist/types/core/a11y/required.d.ts +1 -0
- package/dist/types/core/a11y/single-select.d.ts +20 -0
- package/dist/types/core/api/api-client.service.d.ts +23 -18
- package/dist/types/core/api/api-result.d.ts +20 -0
- package/dist/types/core/api/auth-client.service.d.ts +37 -13
- package/dist/types/core/api/http-client.service.d.ts +0 -8
- package/dist/types/core/base-component.service.d.ts +4 -1
- package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
- package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
- package/dist/types/core/client/actions/client-analytics-action.service.d.ts +35 -0
- package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +81 -0
- package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
- package/dist/types/core/client/client-action.service.d.ts +7 -74
- package/dist/types/core/client/client-config.service.d.ts +12 -5
- package/dist/types/core/debug-panel/debug-panel.styles.d.ts +1 -1
- package/dist/types/core/google-tag-manager.service.d.ts +13 -3
- package/dist/types/core/logger/logger.service.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -0
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +6 -1
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +54 -48
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +18 -7
- package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
- package/dist/types/core/singleton-manager.service.d.ts +12 -8
- package/dist/types/core/store/interfaces/cart.interface.d.ts +2 -3
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +40 -107
- package/dist/types/core/store/interfaces/core.interface.d.ts +12 -2
- package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
- package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
- package/dist/types/core/store/interfaces/product.interface.d.ts +1 -0
- package/dist/types/core/store/store.constant.d.ts +5 -0
- package/dist/types/core/store/store.service.d.ts +1 -0
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +51 -2
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/index.checkout.d.ts +11 -0
- package/dist/types/index.checkout.umd.d.ts +4 -0
- package/dist/types/index.d.ts +9 -3
- package/dist/types/interfaces/analytics.interface.d.ts +41 -0
- package/dist/types/interfaces/api/cart.interface.d.ts +14 -7
- package/dist/types/interfaces/api/checkout.interface.d.ts +277 -0
- package/dist/types/interfaces/api/delivery.interface.d.ts +24 -0
- package/dist/types/interfaces/api/index.d.ts +6 -0
- package/dist/types/interfaces/api/product-list.interface.d.ts +15 -6
- package/dist/types/interfaces/api/product.interface.d.ts +12 -4
- package/dist/types/interfaces/client.interface.d.ts +79 -0
- package/dist/types/interfaces/component.interface.d.ts +7 -0
- package/dist/types/interfaces/config.interface.d.ts +45 -0
- package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/cart.interface.d.ts +2 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +3 -1
- package/dist/types/interfaces/configs/global.interface.d.ts +9 -3
- package/dist/types/interfaces/configs/index.d.ts +1 -0
- package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
- package/dist/types/interfaces/configs/product.interface.d.ts +7 -1
- package/dist/types/interfaces/injection.interface.d.ts +56 -0
- package/dist/types/modules/address/address-display.component.d.ts +3 -1
- package/dist/types/modules/address/address-input.component.d.ts +11 -1
- package/dist/types/modules/address/address.command.d.ts +3 -2
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +11 -5
- package/dist/types/modules/cart/components/cart-body.component.d.ts +1 -0
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +1 -1
- package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
- package/dist/types/modules/cart/components/cart-item.component.d.ts +8 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +134 -12
- package/dist/types/modules/checkout/checkout.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +5 -2
- package/dist/types/modules/checkout/components/checkout-buyer.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +9 -0
- package/dist/types/modules/checkout/components/checkout-deliver-to.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-delivery-method.component.d.ts +24 -0
- package/dist/types/modules/checkout/components/checkout-delivery-scheduling.component.d.ts +53 -0
- package/dist/types/modules/checkout/components/checkout-express-checkout.component.d.ts +63 -0
- package/dist/types/modules/checkout/components/checkout-express-completion.component.d.ts +21 -0
- package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
- package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
- package/dist/types/modules/checkout/components/checkout-item.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
- package/dist/types/modules/checkout/components/checkout-order-summary.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +9 -1
- package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +1 -5
- package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +15 -1
- package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-prop65-warning.component.d.ts +8 -0
- package/dist/types/modules/checkout/components/checkout-send-as-gift.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +7 -3
- package/dist/types/modules/checkout/components/checkout-stripe-handler.component.d.ts +4 -0
- package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +4 -2
- package/dist/types/modules/checkout/components/index.d.ts +5 -0
- package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
- package/dist/types/modules/checkout/components/required-fields-legend.d.ts +1 -0
- package/dist/types/modules/checkout/constant.d.ts +15 -0
- package/dist/types/modules/checkout/customer-prefill.d.ts +5 -0
- package/dist/types/modules/checkout/express-wallet.d.ts +12 -0
- package/dist/types/modules/checkout/payment-session-error.d.ts +4 -0
- package/dist/types/modules/checkout/stripe-js.d.ts +2 -0
- package/dist/types/modules/checkout/styles/delivery-method.style.d.ts +1 -0
- package/dist/types/modules/checkout/styles/express-checkout.style.d.ts +1 -0
- package/dist/types/modules/checkout/styles/express-completion.style.d.ts +1 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/components/components.d.ts +26 -2
- package/dist/types/modules/product/components/index.d.ts +1 -0
- package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +8 -1
- package/dist/types/modules/product/components/product-delivery-estimate.component.d.ts +11 -0
- package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
- package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
- package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
- package/dist/types/modules/product/components/product-prop65-warning.d.ts +1 -0
- package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +6 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +12 -2
- package/dist/types/modules/product/components/product-retailers-popup.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-retailers.component.d.ts +1 -0
- package/dist/types/modules/product/product.commands.d.ts +5 -5
- package/dist/types/modules/product/product.component.d.ts +3 -0
- package/dist/types/modules/product/styles/prop65-warning.style.d.ts +1 -0
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/index.d.ts +6 -0
- package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
- package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-fulfillment-text.d.ts +2 -0
- package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
- package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
- package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-checkbox-filter.components.d.ts → filter-components/product-list-checkbox-filter.d.ts} +1 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
- package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
- package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-price-filter.components.d.ts → filter-components/product-list-price-filter.d.ts} +2 -1
- package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
- package/dist/types/modules/product-list/components/index.d.ts +6 -2
- package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
- package/dist/types/modules/product-list/components/product-list-card.component.d.ts +39 -31
- package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
- package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +58 -36
- package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
- package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +54 -0
- package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
- package/dist/types/modules/product-list/product-list-filter.registry.d.ts +42 -0
- package/dist/types/modules/product-list/product-list-filter.utils.d.ts +7 -0
- package/dist/types/modules/product-list/product-list-order.utils.d.ts +3 -0
- package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +27 -7
- package/dist/types/modules/product-list/product-list.component.d.ts +23 -47
- package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
- package/dist/types/modules/product-list/product-list.interface.d.ts +17 -28
- package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
- package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
- package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
- package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
- package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
- package/dist/types/modules/ui-components/alert/alert.component.d.ts +10 -10
- package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
- package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +9 -1
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +15 -2
- package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
- package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
- package/dist/types/ssr/stub.checkout.d.ts +8 -0
- package/dist/types/ssr/stub.d.ts +12 -0
- package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
- package/dist/types/static/icon/bag.icon.d.ts +1 -1
- package/dist/types/static/icon/check.icon.d.ts +2 -0
- package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
- package/dist/types/static/icon/chevron-up.icon.d.ts +1 -1
- package/dist/types/static/icon/close.icon.d.ts +1 -1
- package/dist/types/static/icon/error-info.icon.d.ts +1 -1
- package/dist/types/static/icon/filter.icon.d.ts +1 -1
- package/dist/types/static/icon/icon.a11y.d.ts +1 -0
- package/dist/types/static/icon/icon.types.d.ts +1 -0
- package/dist/types/static/icon/index.d.ts +2 -0
- package/dist/types/static/icon/info.icon.d.ts +1 -1
- package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
- package/dist/types/static/icon/search.icon.d.ts +1 -1
- package/dist/types/static/icon/success.icon.d.ts +1 -1
- package/dist/types/static/icon/trash.icon.d.ts +1 -1
- package/dist/types/static/icon/warning.icon.d.ts +1 -1
- package/dist/types/utils/delivery-scheduling.d.ts +72 -0
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +9 -14
- package/dist/types/utils/image-bg-removal.d.ts +3 -0
- package/dist/types/utils/places-session-token.d.ts +1 -0
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +21 -0
- package/dist/types/utils/timezone.d.ts +6 -0
- package/docs/v1/README.md +214 -0
- package/docs/v1/api/actions/address-actions.md +290 -0
- package/docs/v1/api/actions/analytics-actions.md +326 -0
- package/docs/v1/api/actions/cart-actions.md +364 -0
- package/docs/v1/api/actions/checkout-actions.md +629 -0
- package/docs/v1/api/actions/product-actions.md +205 -0
- package/docs/v1/api/client.md +671 -0
- package/docs/v1/api/configuration.md +587 -0
- package/docs/v1/api/injection-methods.md +331 -0
- package/docs/v1/api/typescript-types.md +610 -0
- package/docs/v1/api/ui-helpers.md +200 -0
- package/docs/v1/examples/advanced-patterns.md +199 -0
- package/docs/v1/examples/checkout-flow.md +90 -0
- package/docs/v1/examples/custom-theming.md +76 -0
- package/docs/v1/examples/multi-product-page.md +90 -0
- package/docs/v1/examples/simple-product-page.md +89 -0
- package/docs/v1/getting-started/concepts.md +521 -0
- package/docs/v1/getting-started/installation.md +351 -0
- package/docs/v1/getting-started/quick-start.md +410 -0
- package/docs/v1/guides/accessibility.md +298 -0
- package/docs/v1/guides/address-component.md +441 -0
- package/docs/v1/guides/best-practices.md +365 -0
- package/docs/v1/guides/cart-component.md +802 -0
- package/docs/v1/guides/checkout-component.md +920 -0
- package/docs/v1/guides/events.md +1061 -0
- package/docs/v1/guides/product-component.md +767 -0
- package/docs/v1/guides/product-list-component.md +730 -0
- package/docs/v1/guides/theming.md +243 -0
- package/docs/v1/integration/angular.md +39 -0
- package/docs/v1/integration/laravel.md +41 -0
- package/docs/v1/integration/nextjs.md +69 -0
- package/docs/v1/integration/proxy-setup.md +106 -0
- package/docs/v1/integration/react.md +64 -0
- package/docs/v1/integration/vanilla-js.md +84 -0
- package/docs/v1/integration/vue.md +58 -0
- package/docs/v1/reference/analytics.md +176 -0
- package/docs/v1/reference/browser-support.md +47 -0
- package/docs/v1/reference/error-handling.md +83 -0
- package/docs/v1/reference/performance.md +52 -0
- package/docs/v1/reference/telemetry.md +85 -0
- package/docs/v1/reference/troubleshooting.md +135 -0
- package/package.json +75 -45
- package/dist/types/elements-builder-client.d.ts +0 -2
- package/dist/types/elements-client-helper.d.ts +0 -4
- package/dist/types/elements-client.d.ts +0 -2
- package/dist/types/enums/cloud.enum.d.ts +0 -97
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -218
- package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
- package/dist/types/interfaces/cloud/index.d.ts +0 -3
- package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
- package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
- package/dist/types/interfaces/core.interface.d.ts +0 -111
- package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/index.d.ts +0 -6
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-apply-filter-button.component.d.ts +0 -1
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-delivery-options-filter.components.d.ts +0 -16
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-search.component.d.ts +0 -16
- package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-toggle-filters.components.d.ts +0 -18
- package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
- package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
- package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
- package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
- package/dist/types/utils/helper.d.ts +0 -28
- package/docs/ACTIONS.md +0 -1300
- package/docs/BROWSER_SUPPORT.md +0 -279
- package/docs/CONFIGURATION.md +0 -853
- package/docs/DOCUMENTATION_INDEX.md +0 -311
- package/docs/EVENTS.md +0 -798
- package/docs/PROXY.md +0 -228
- package/docs/THEMING.md +0 -592
- package/docs/TROUBLESHOOTING.md +0 -793
- package/umd/elements.js +0 -1
- /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
- /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
- /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
|
@@ -1,23 +1,98 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ICheckoutDetailsEventData } from '@/core/pubsub/interfaces/checkout.interface';
|
|
3
|
+
import type { ICheckoutPaymentMethodStore } from '@/core/store/interfaces/checkout.interface';
|
|
4
|
+
import type { FulfillmentType } from '@/enums';
|
|
5
|
+
import type { CheckoutPaymentSessionType, ICheckoutBilling, ICheckoutCustomer, ICheckoutGiftRecipient, ICheckoutMarketingPreferences, ICheckoutPaymentSession, ICheckoutPrepare } from '@/interfaces/api/checkout.interface';
|
|
6
|
+
import type { DeliverySlot } from '@/interfaces/api/delivery.interface';
|
|
7
|
+
import type { AddItemParams } from '@/modules/cart/cart.commands';
|
|
8
|
+
import type { PresaleExpiredReason } from '@/modules/checkout/components';
|
|
9
|
+
import { type IExpressWalletBillingDetails } from '@/modules/checkout/express-wallet';
|
|
10
|
+
import type { StripeJsLoadFailure } from '@/modules/checkout/stripe-js';
|
|
3
11
|
export declare class CheckoutCommands extends BaseCommand {
|
|
4
12
|
private readonly uiCommands;
|
|
5
|
-
private
|
|
13
|
+
private lastLoadParams;
|
|
14
|
+
private paymentGeneration;
|
|
15
|
+
private savedMarketingPreferences;
|
|
16
|
+
private savedMarketingRevision;
|
|
17
|
+
private marketingNeedsPrepare;
|
|
18
|
+
private completingCheckout;
|
|
19
|
+
private savedMarketingError;
|
|
20
|
+
private marketingEdits;
|
|
21
|
+
private marketingQueue;
|
|
22
|
+
private readonly marketingFields;
|
|
23
|
+
private customerEditRevision;
|
|
24
|
+
private customerEditedGeneration;
|
|
25
|
+
private confirmedPayment;
|
|
26
|
+
private offeredDeliverySlots;
|
|
27
|
+
private offeredDeliveryAddress;
|
|
28
|
+
private savingDeliverySelection;
|
|
29
|
+
private expressHandoff;
|
|
30
|
+
private get requiresBirthDate();
|
|
31
|
+
assertPaymentReady(): void;
|
|
32
|
+
private assertDeliveryScheduleReady;
|
|
33
|
+
private lapsedDeliveryWindowIds;
|
|
34
|
+
private clearLapsedDeliveryWindows;
|
|
35
|
+
private offeredSlots;
|
|
36
|
+
private findOfferedDeliverySlot;
|
|
37
|
+
loadDeliverySlots(fulfillmentId: string): Promise<DeliverySlot[]>;
|
|
38
|
+
chooseDeliverySlot(fulfillmentId: string, slotId: string | null): Promise<void>;
|
|
39
|
+
private deliverySelectionError;
|
|
40
|
+
private completionError;
|
|
41
|
+
private freshCart;
|
|
42
|
+
private dropDeliveryScheduling;
|
|
43
|
+
private lapsedWindowGroupIds;
|
|
44
|
+
private forgetDeliveryWindow;
|
|
45
|
+
private assertDeliverySlotChoosable;
|
|
46
|
+
private responseFulfillments;
|
|
47
|
+
private findResponseFulfillment;
|
|
48
|
+
private withDeliverySlotDetails;
|
|
49
|
+
private responseFulfillmentIds;
|
|
50
|
+
private expiredDeliveryMarksWith;
|
|
51
|
+
private pruneExpiredDeliveryWindows;
|
|
52
|
+
private expireDeliveryWindows;
|
|
53
|
+
private prepareWithWindowRecovery;
|
|
54
|
+
private prepareRecoveringWindow;
|
|
55
|
+
retryLoadCheckout(): Promise<void>;
|
|
56
|
+
private paymentSessionRequest;
|
|
6
57
|
constructor();
|
|
7
58
|
static getInstance(): CheckoutCommands;
|
|
8
|
-
|
|
59
|
+
addPresaleItem(params: AddItemParams): Promise<void>;
|
|
60
|
+
loadCheckout(params: {
|
|
61
|
+
checkoutId?: string;
|
|
62
|
+
cartId?: string;
|
|
63
|
+
isForPresale?: boolean;
|
|
64
|
+
}): Promise<void>;
|
|
65
|
+
private showAlreadyCompletedCheckout;
|
|
66
|
+
loadCheckoutFromResponse(response: ICheckoutPrepare): void;
|
|
9
67
|
toggleIsGift(active?: boolean): Promise<void>;
|
|
10
68
|
toggleBillingSameAsShipping(active?: boolean): Promise<void>;
|
|
11
|
-
|
|
69
|
+
private loadedMarketingState;
|
|
70
|
+
private defaultMarketingPreferences;
|
|
71
|
+
private marketingForPrepare;
|
|
72
|
+
private confirmedSavedMarketing;
|
|
73
|
+
private queueMarketing;
|
|
74
|
+
setSavedMarketingPreferences(preferences: Partial<ICheckoutMarketingPreferences>): Promise<void>;
|
|
75
|
+
clearSavedMarketingPreferences(): void;
|
|
76
|
+
private recordSavedMarketing;
|
|
77
|
+
private assertMarketingRestored;
|
|
78
|
+
private canApplySavedMarketing;
|
|
79
|
+
private applySavedMarketingPreferences;
|
|
80
|
+
toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise<boolean>;
|
|
12
81
|
getPaymentSession(): Promise<void>;
|
|
13
|
-
|
|
82
|
+
reportPaymentFormFailure(reason: StripeJsLoadFailure, cause?: unknown): void;
|
|
83
|
+
getExpressPaymentSession(): Promise<ICheckoutPaymentSession | null>;
|
|
84
|
+
private requestPaymentSession;
|
|
85
|
+
confirmPaymentSession(confirmationTokenId: string, setupIntentId: string, sessionType?: CheckoutPaymentSessionType): Promise<ICheckoutPaymentMethodStore>;
|
|
14
86
|
applyPromoCode(code: string): Promise<void>;
|
|
15
87
|
removePromoCode(): Promise<void>;
|
|
16
88
|
clearPromoCodeError(): Promise<void>;
|
|
17
89
|
applyGiftCard(code: string): Promise<void>;
|
|
18
90
|
removeGiftCard(code: string): Promise<void>;
|
|
19
91
|
clearGiftCardError(): Promise<void>;
|
|
20
|
-
|
|
92
|
+
showPresaleExpired(reason?: PresaleExpiredReason): void;
|
|
93
|
+
openCheckout(): void;
|
|
94
|
+
getReturnUrl(): string | null;
|
|
95
|
+
private resolveCheckoutPageUrl;
|
|
21
96
|
rerenderCheckout(): void;
|
|
22
97
|
updateCheckoutItemQuantity(itemId: string, delta: number): Promise<void>;
|
|
23
98
|
removeItemEngraving(productItemId: string): Promise<void>;
|
|
@@ -26,28 +101,75 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
26
101
|
updateFulfillmentTip(fulfillmentId: string, tipAmount: number): Promise<void>;
|
|
27
102
|
removeFulfillmentTip(fulfillmentId: string): Promise<void>;
|
|
28
103
|
clearCheckoutError(): Promise<void>;
|
|
104
|
+
markCustomerFormEdited(): void;
|
|
105
|
+
canPrefillCustomerForm(): boolean;
|
|
106
|
+
savePrefilledCustomerInfo(): Promise<void>;
|
|
29
107
|
editCustomerForm(): Promise<void>;
|
|
30
108
|
saveCustomerForm({ shippingAddressTwo, deliveryInstructions, customerData, }: {
|
|
31
|
-
customerData:
|
|
109
|
+
customerData: ICheckoutCustomer;
|
|
32
110
|
shippingAddressTwo: string;
|
|
33
111
|
deliveryInstructions: string;
|
|
34
112
|
}): Promise<void>;
|
|
35
113
|
editGiftRecipientForm(): Promise<void>;
|
|
36
|
-
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }:
|
|
114
|
+
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipient & {
|
|
37
115
|
shippingAddressTwo: string;
|
|
38
116
|
deliveryInstructions: string;
|
|
39
117
|
}): Promise<void>;
|
|
40
118
|
editPaymentForm(): Promise<void>;
|
|
119
|
+
private resetCheckoutPreservingInjected;
|
|
120
|
+
private markInjectedPaymentReady;
|
|
41
121
|
savePaymentForm({ billingFormData, paymentSession, }: {
|
|
42
|
-
billingFormData?:
|
|
122
|
+
billingFormData?: ICheckoutBilling;
|
|
43
123
|
paymentSession?: {
|
|
44
124
|
confirmationTokenId: string;
|
|
45
125
|
setupIntentId: string;
|
|
126
|
+
sessionType?: CheckoutPaymentSessionType;
|
|
46
127
|
};
|
|
47
128
|
}): Promise<void>;
|
|
48
|
-
|
|
129
|
+
private prepareMarketingForCompletion;
|
|
130
|
+
beginExpressCompletion({ wallet, confirmationTokenId, intentId, approvedTotal, billingDetails, }: {
|
|
131
|
+
wallet: string;
|
|
132
|
+
confirmationTokenId: string;
|
|
133
|
+
intentId: string;
|
|
134
|
+
approvedTotal: number;
|
|
135
|
+
billingDetails: IExpressWalletBillingDetails | undefined;
|
|
136
|
+
}): Promise<void>;
|
|
137
|
+
private prepareExpressPayment;
|
|
138
|
+
completeExpressOrder(birthDate?: string): Promise<void>;
|
|
139
|
+
cancelExpressCompletion(): void;
|
|
140
|
+
private saveExpressCustomer;
|
|
141
|
+
private assertApprovedTotal;
|
|
142
|
+
private setExpressStatus;
|
|
143
|
+
private failExpressCompletion;
|
|
144
|
+
private writeExpress;
|
|
145
|
+
checkoutComplete(options?: {
|
|
146
|
+
expressPaymentIntentId?: string;
|
|
147
|
+
}): Promise<void>;
|
|
49
148
|
private updateStoreFromCheckoutResponse;
|
|
50
|
-
private
|
|
149
|
+
private getDeliveryMethodLocation;
|
|
150
|
+
loadDeliveryMethods(): Promise<void>;
|
|
151
|
+
toggleDeliveryMethod(): void;
|
|
152
|
+
switchDeliveryMethod(fulfillmentType: FulfillmentType): Promise<void>;
|
|
153
|
+
private watchForReturnFromAddress;
|
|
154
|
+
relocateCheckout(): Promise<void>;
|
|
155
|
+
private requestFulfillment;
|
|
156
|
+
private deliveryMethodCarryOver;
|
|
157
|
+
private refreshPaymentAfterDeliveryMethodSwitch;
|
|
158
|
+
changeDeliveryLocation(trigger?: HTMLElement | null): void;
|
|
159
|
+
private updateItemsOnCheckout;
|
|
160
|
+
private static lostCustomer;
|
|
161
|
+
private syncFromItemUpdate;
|
|
162
|
+
private syncCheckoutState;
|
|
163
|
+
private refreshCheckout;
|
|
51
164
|
private dataForCheckoutPrepare;
|
|
52
|
-
private
|
|
165
|
+
private normalizeForApi;
|
|
166
|
+
getDetails(): ICheckoutDetailsEventData;
|
|
167
|
+
trackBeginCheckout(): void;
|
|
168
|
+
trackPresaleCheckoutStart(): void;
|
|
169
|
+
reportExpressCheckoutStarted({ wallet, reportBeginCheckout }: {
|
|
170
|
+
wallet: string;
|
|
171
|
+
reportBeginCheckout: boolean;
|
|
172
|
+
}): void;
|
|
173
|
+
private checkoutItemsForAnalytics;
|
|
174
|
+
private toAnalyticsItem;
|
|
53
175
|
}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
1
|
+
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export interface ICheckoutComponentParams {
|
|
4
4
|
checkoutId: string;
|
|
5
5
|
isIndependentComponent: boolean;
|
|
6
|
+
hideHeader: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare class CheckoutComponent extends BaseComponent<ICheckoutComponentParams, ICheckoutComponent> {
|
|
8
9
|
constructor();
|
|
10
|
+
onStoreWatch(_changes: IOnStoreChanged[]): void;
|
|
11
|
+
private updateInitializationState;
|
|
12
|
+
afterRender(): void;
|
|
9
13
|
protected template(): HTMLElement[];
|
|
14
|
+
private createAlerts;
|
|
15
|
+
private createHeader;
|
|
10
16
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ICheckoutBilling } from '@/interfaces/api/checkout.interface';
|
|
3
3
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
4
4
|
export interface ICheckoutBillingComponentParams {
|
|
5
|
-
isFormValid: (isValid: boolean, data:
|
|
5
|
+
isFormValid: (isValid: boolean, data: ICheckoutBilling) => void;
|
|
6
6
|
}
|
|
7
7
|
export declare class CheckoutBillingComponent extends BaseComponent<ICheckoutBillingComponentParams, ICheckoutComponent> {
|
|
8
8
|
private billingData;
|
|
9
9
|
get hostClasses(): string[];
|
|
10
10
|
constructor();
|
|
11
|
+
private pendingToggleFocus;
|
|
12
|
+
protected afterRender(): void;
|
|
13
|
+
private readonly onBillingSameAsShippingToggle;
|
|
11
14
|
private billingSameAsShippingToggle;
|
|
12
15
|
private updateSaveButtonState;
|
|
13
16
|
protected template(): HTMLElement[];
|
|
@@ -7,6 +7,7 @@ export declare class CheckoutBuyer extends BaseComponent<null, ICheckoutComponen
|
|
|
7
7
|
get hostClasses(): string[];
|
|
8
8
|
constructor();
|
|
9
9
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
10
|
+
private get requiresBirthDate();
|
|
10
11
|
private updateSaveButtonState;
|
|
11
12
|
protected template(): HTMLElement[];
|
|
12
13
|
}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
+
import type { PlacedDelivery } from '@/utils/delivery-scheduling';
|
|
3
4
|
export interface ICheckoutCompletedComponentParams {
|
|
4
5
|
orderNumber: string;
|
|
5
6
|
orderTotal: number;
|
|
6
7
|
cardLast4: string;
|
|
7
8
|
customerEmail: string;
|
|
8
9
|
giftRecipientEmail: string | null;
|
|
10
|
+
checkoutToken?: string;
|
|
11
|
+
cartId?: string;
|
|
12
|
+
isCompleted?: boolean;
|
|
13
|
+
delivery?: PlacedDelivery;
|
|
9
14
|
}
|
|
10
15
|
export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
|
|
11
16
|
get hostClasses(): string[];
|
|
17
|
+
private hasAnnouncedCompletion;
|
|
18
|
+
protected afterRender(): void;
|
|
19
|
+
private createDeliveryLine;
|
|
20
|
+
private createDeliveryGroup;
|
|
12
21
|
protected template(): HTMLElement[];
|
|
13
22
|
}
|
|
@@ -8,6 +8,7 @@ export declare class CheckoutDeliverToComponent extends BaseComponent<null, IChe
|
|
|
8
8
|
get hostClasses(): string[];
|
|
9
9
|
constructor();
|
|
10
10
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
11
|
+
private get requiresBirthDate();
|
|
11
12
|
private updateSaveButtonState;
|
|
12
13
|
protected template(): HTMLElement[];
|
|
13
14
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { ICheckoutFulfillmentMethod } from '@/interfaces/api/checkout.interface';
|
|
3
|
+
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
4
|
+
export declare function deliveryMethodExpectationText(method: ICheckoutFulfillmentMethod): string;
|
|
5
|
+
export declare class CheckoutDeliveryMethodComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
6
|
+
get hostClasses(): string[];
|
|
7
|
+
constructor();
|
|
8
|
+
protected connected(): void;
|
|
9
|
+
onStoreWatch(): void;
|
|
10
|
+
private hasOrderMoved;
|
|
11
|
+
private isSameAddress;
|
|
12
|
+
protected afterRender(): void;
|
|
13
|
+
protected template(): HTMLElement[];
|
|
14
|
+
private createHeader;
|
|
15
|
+
private createSummaryRow;
|
|
16
|
+
private createOptions;
|
|
17
|
+
private createOptionCard;
|
|
18
|
+
private createOptionTitleRow;
|
|
19
|
+
private describeOption;
|
|
20
|
+
private describeUnavailable;
|
|
21
|
+
private describeForScreenReader;
|
|
22
|
+
private createChangeLocationButton;
|
|
23
|
+
private formatFee;
|
|
24
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CheckoutDeliverySchedulingComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
private draft;
|
|
5
|
+
private dialog;
|
|
6
|
+
private paintScheduled;
|
|
7
|
+
private error;
|
|
8
|
+
private pendingFocus;
|
|
9
|
+
private restoreTrigger;
|
|
10
|
+
private releaseFocusTrap;
|
|
11
|
+
private readonly focusManager;
|
|
12
|
+
private handledExpired;
|
|
13
|
+
private loadToken;
|
|
14
|
+
private announcedNotice;
|
|
15
|
+
private timesScroll;
|
|
16
|
+
constructor();
|
|
17
|
+
private get busy();
|
|
18
|
+
private get expiredIds();
|
|
19
|
+
protected afterRender(): void;
|
|
20
|
+
protected onStoreChanged(): boolean;
|
|
21
|
+
private update;
|
|
22
|
+
private paint;
|
|
23
|
+
private showDialog;
|
|
24
|
+
private settle;
|
|
25
|
+
private keepTimeInView;
|
|
26
|
+
protected disconnected(): void;
|
|
27
|
+
private endPicker;
|
|
28
|
+
private draftFulfillment;
|
|
29
|
+
private openForNewlyExpired;
|
|
30
|
+
private dayKey;
|
|
31
|
+
private todayKey;
|
|
32
|
+
private draftScheduling;
|
|
33
|
+
private openPicker;
|
|
34
|
+
private loadSlots;
|
|
35
|
+
private whenIdle;
|
|
36
|
+
private closePicker;
|
|
37
|
+
private saveDraft;
|
|
38
|
+
private createGroup;
|
|
39
|
+
private get severalGroups();
|
|
40
|
+
private retailerOf;
|
|
41
|
+
private pickerTitle;
|
|
42
|
+
private summaryText;
|
|
43
|
+
private radio;
|
|
44
|
+
private createDates;
|
|
45
|
+
private createTimes;
|
|
46
|
+
private createNotice;
|
|
47
|
+
private createLoading;
|
|
48
|
+
private createDialogShell;
|
|
49
|
+
private fillDialog;
|
|
50
|
+
private captureViewState;
|
|
51
|
+
private createRows;
|
|
52
|
+
protected template(): HTMLElement[];
|
|
53
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
+
export interface ICheckoutExpressCheckoutComponentParams {
|
|
4
|
+
variant?: 'section' | 'buttons';
|
|
5
|
+
isIndependentComponent?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare class CheckoutExpressCheckoutComponent extends BaseComponent<ICheckoutExpressCheckoutComponentParams, ICheckoutComponent> {
|
|
8
|
+
private section;
|
|
9
|
+
private walletHost;
|
|
10
|
+
private completionElement;
|
|
11
|
+
private beginCheckoutReported;
|
|
12
|
+
private stripe;
|
|
13
|
+
private stripeElements;
|
|
14
|
+
private expressElement;
|
|
15
|
+
private sessionSecret;
|
|
16
|
+
private expressSession;
|
|
17
|
+
private sessionAmount;
|
|
18
|
+
private isMounting;
|
|
19
|
+
private isProcessing;
|
|
20
|
+
private hasAvailableWallets;
|
|
21
|
+
private availableWallets;
|
|
22
|
+
private hasSettledAvailability;
|
|
23
|
+
private scheduleReadyAtMount;
|
|
24
|
+
private lastPublishedAvailability;
|
|
25
|
+
get hostClasses(): string[];
|
|
26
|
+
constructor();
|
|
27
|
+
protected onStoreWatch(): void;
|
|
28
|
+
private syncCompletionView;
|
|
29
|
+
private get isCompletingExpress();
|
|
30
|
+
private get isButtonsOnly();
|
|
31
|
+
private get isReadyForPayment();
|
|
32
|
+
private get isDeliveryScheduleReady();
|
|
33
|
+
private get isGiftOrder();
|
|
34
|
+
protected template(): HTMLElement[];
|
|
35
|
+
protected afterRender(): void;
|
|
36
|
+
private createDividerLine;
|
|
37
|
+
private updateVisibility;
|
|
38
|
+
private publishAvailability;
|
|
39
|
+
private reportUnavailable;
|
|
40
|
+
private mountExpressElement;
|
|
41
|
+
private ensurePaymentSession;
|
|
42
|
+
private createWalletHost;
|
|
43
|
+
private findRootComponent;
|
|
44
|
+
private get orderTotal();
|
|
45
|
+
private buildElementsOptions;
|
|
46
|
+
private readIntentTerms;
|
|
47
|
+
private normaliseFutureUsage;
|
|
48
|
+
private buildAppearance;
|
|
49
|
+
private buildElementOptions;
|
|
50
|
+
private buildLineItems;
|
|
51
|
+
private readAvailability;
|
|
52
|
+
private handleAvailability;
|
|
53
|
+
private handleClick;
|
|
54
|
+
private hasUnmetMinimums;
|
|
55
|
+
private handleConfirm;
|
|
56
|
+
private isTotalUnchanged;
|
|
57
|
+
private toBillingDetails;
|
|
58
|
+
private failPayment;
|
|
59
|
+
private handleCancel;
|
|
60
|
+
private teardownExpressElement;
|
|
61
|
+
private remountIfTotalMoved;
|
|
62
|
+
protected disconnected(): void;
|
|
63
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CheckoutExpressCompletionComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
private birthDate;
|
|
5
|
+
private isBirthDateValid;
|
|
6
|
+
private completeButton;
|
|
7
|
+
private announcedState;
|
|
8
|
+
private hasFocusedHeading;
|
|
9
|
+
constructor();
|
|
10
|
+
get hostClasses(): string[];
|
|
11
|
+
private get express();
|
|
12
|
+
private get needsBirthDate();
|
|
13
|
+
protected afterRender(): void;
|
|
14
|
+
protected template(): HTMLElement[];
|
|
15
|
+
private headingFor;
|
|
16
|
+
private copyFor;
|
|
17
|
+
private createDots;
|
|
18
|
+
private createBirthDateInput;
|
|
19
|
+
private createCompleteButton;
|
|
20
|
+
private createBackLink;
|
|
21
|
+
}
|
|
@@ -2,6 +2,7 @@ import { BaseComponent } from '@/core/base-component.service';
|
|
|
2
2
|
export interface ICheckoutHeaderParams {
|
|
3
3
|
onClose?: () => void;
|
|
4
4
|
onBackToCart?: () => void;
|
|
5
|
+
isHostedCheckout?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export declare class CheckoutHeaderComponent extends BaseComponent<ICheckoutHeaderParams> {
|
|
7
8
|
get hostClasses(): string[];
|
|
@@ -9,8 +9,12 @@ export declare class CheckoutItemQuantityComponent extends BaseComponent<IChecko
|
|
|
9
9
|
get hostClasses(): string[];
|
|
10
10
|
constructor();
|
|
11
11
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
12
|
+
private getCheckoutItemStore;
|
|
13
|
+
private getCartItemStore;
|
|
14
|
+
private getProductStoreByLiquidId;
|
|
12
15
|
private getAvailableQuantity;
|
|
13
16
|
private calculateQuantityLimits;
|
|
17
|
+
private get itemName();
|
|
14
18
|
private updateButtonStates;
|
|
15
19
|
private handleQuantityChange;
|
|
16
20
|
protected template(): HTMLElement[];
|
|
@@ -7,6 +7,8 @@ export declare class CheckoutItemComponent extends BaseComponent<ICheckoutItemCo
|
|
|
7
7
|
get hostClasses(): string[];
|
|
8
8
|
constructor();
|
|
9
9
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
10
|
+
private deliveryExpectation;
|
|
11
|
+
private updateDeliveryExpectation;
|
|
10
12
|
private updateEngravingElement;
|
|
11
13
|
private setupMinimumPurchaseAlert;
|
|
12
14
|
private updateTrashButtonState;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export declare class CheckoutItemsComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
private togglerElement;
|
|
5
|
+
private togglerButton;
|
|
6
|
+
private togglerLabel;
|
|
7
|
+
private itemsList;
|
|
4
8
|
get hostClasses(): string[];
|
|
5
9
|
constructor();
|
|
6
10
|
private createItemElement;
|
|
7
|
-
private getItemsListContainer;
|
|
8
|
-
private getTogglerLabel;
|
|
9
11
|
private getCurrentItemsMap;
|
|
10
12
|
private syncItemsWithStore;
|
|
11
|
-
private updateItemCount;
|
|
12
13
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
13
14
|
private handleToggle;
|
|
14
15
|
private setupToggler;
|
|
@@ -6,8 +6,11 @@ export declare class CheckoutOrderSummaryComponent extends BaseComponent<null, I
|
|
|
6
6
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
7
7
|
private updateZeroAmountElement;
|
|
8
8
|
protected afterRender(): void;
|
|
9
|
+
private paintMarketingCheckbox;
|
|
10
|
+
private toggleMarketingPreference;
|
|
9
11
|
private handleEmailToggle;
|
|
10
12
|
private handleSmsToggle;
|
|
13
|
+
private updateSavedMarketingPrompts;
|
|
11
14
|
private marketingOptInsContainer;
|
|
12
15
|
private hasOnDemandOrder;
|
|
13
16
|
protected template(): HTMLElement[];
|
|
@@ -5,9 +5,9 @@ export interface ICheckoutSendToFormComponentParams {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class CheckoutPaymentComponent extends BaseComponent<ICheckoutSendToFormComponentParams, ICheckoutComponent> {
|
|
7
7
|
private stripeHandlerElement;
|
|
8
|
-
private hardcodedPaymentElement;
|
|
9
8
|
private saveButton;
|
|
10
9
|
private errorMessageElement;
|
|
10
|
+
private walletInstructionsElement?;
|
|
11
11
|
private billingFormData;
|
|
12
12
|
private isValidBillingForm;
|
|
13
13
|
private isBillingSameAsShipping;
|
|
@@ -17,12 +17,20 @@ export declare class CheckoutPaymentComponent extends BaseComponent<ICheckoutSen
|
|
|
17
17
|
private isSavingPayment;
|
|
18
18
|
get hostClasses(): string[];
|
|
19
19
|
constructor();
|
|
20
|
+
private getInjectedPaymentMethod;
|
|
21
|
+
private scheduleReady;
|
|
22
|
+
private deliveryPaymentReady;
|
|
20
23
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
21
24
|
private handleBillingSameAsShippingChange;
|
|
22
25
|
afterRender(): Promise<void>;
|
|
23
26
|
private updateSaveButtonState;
|
|
27
|
+
private getSelectedWallet;
|
|
28
|
+
private getPaymentButtonText;
|
|
29
|
+
private updateWalletInstructions;
|
|
30
|
+
private lastAnnouncedPaymentError;
|
|
24
31
|
private updateErrorMessage;
|
|
25
32
|
private showError;
|
|
33
|
+
private createHeader;
|
|
26
34
|
protected template(): HTMLElement[];
|
|
27
35
|
private handleSaveButtonClick;
|
|
28
36
|
private validatePrerequisites;
|
|
@@ -2,16 +2,12 @@ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.servi
|
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
3
|
export declare class CheckoutPlaceOrderButtonComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
4
|
private placeOrderButton;
|
|
5
|
-
private
|
|
6
|
-
private errorTimeoutId;
|
|
5
|
+
private lastButtonState;
|
|
7
6
|
get hostClasses(): string[];
|
|
8
7
|
constructor();
|
|
9
8
|
afterRender(): void;
|
|
10
|
-
disconnected(): void;
|
|
11
9
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
12
10
|
private updateButtonState;
|
|
13
|
-
private clearErrorTimeout;
|
|
14
|
-
private updateErrorDisplay;
|
|
15
11
|
private determineButtonState;
|
|
16
12
|
private handlePlaceOrderClick;
|
|
17
13
|
protected template(): HTMLElement[];
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
export declare class CheckoutPresaleCountdownComponent extends BaseComponent<null> {
|
|
3
|
+
private static readonly DEFAULT_PRESALE_DURATION_SECONDS;
|
|
4
|
+
private static readonly ONE_MINUTE_THRESHOLD_SECONDS;
|
|
5
|
+
private static readonly COUNTDOWN_UPDATE_INTERVAL_MS;
|
|
3
6
|
private countdownInterval;
|
|
4
7
|
private expiresAt;
|
|
5
|
-
private
|
|
8
|
+
private initialDurationSeconds;
|
|
6
9
|
private rootElement;
|
|
10
|
+
private lastRenderedTime;
|
|
7
11
|
private scrollHandler;
|
|
8
12
|
private scrollContainer;
|
|
9
13
|
private isCurrentlyScrolled;
|
|
@@ -11,16 +15,26 @@ export declare class CheckoutPresaleCountdownComponent extends BaseComponent<nul
|
|
|
11
15
|
get hostClasses(): string[];
|
|
12
16
|
constructor();
|
|
13
17
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
18
|
+
private resetCountdownState;
|
|
14
19
|
protected afterRender(): void;
|
|
15
20
|
protected disconnected(): void;
|
|
16
21
|
private setupDrawerScrollDetection;
|
|
22
|
+
private findScrollContainer;
|
|
23
|
+
private setScrolledState;
|
|
17
24
|
private isScrollable;
|
|
18
25
|
private cleanupScrollListener;
|
|
19
26
|
private updateExpiresAt;
|
|
20
27
|
private startCountdown;
|
|
21
28
|
private stopCountdown;
|
|
22
29
|
private updateCountdown;
|
|
30
|
+
private updateWarningState;
|
|
31
|
+
private updateTimerDisplay;
|
|
32
|
+
private updateProgressBar;
|
|
23
33
|
private formatTime;
|
|
24
34
|
private handleExpire;
|
|
25
35
|
protected template(): HTMLElement;
|
|
36
|
+
private createTextContainer;
|
|
37
|
+
private createHeader;
|
|
38
|
+
private createSubtitle;
|
|
39
|
+
private createProgressBar;
|
|
26
40
|
}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
-
export
|
|
3
|
+
export type PresaleExpiredReason = 'time_expired' | 'items_unavailable';
|
|
4
|
+
export interface ICheckoutPresaleExpiredComponentParams {
|
|
5
|
+
reason: PresaleExpiredReason;
|
|
6
|
+
}
|
|
7
|
+
export declare class CheckoutPresaleExpiredComponent extends BaseComponent<ICheckoutPresaleExpiredComponentParams, ICheckoutComponent> {
|
|
4
8
|
private autoCloseInterval;
|
|
5
9
|
private autoCloseSeconds;
|
|
6
10
|
private autoCloseElement;
|
|
7
11
|
get hostClasses(): string[];
|
|
8
12
|
get hostAttributes(): Record<string, string>;
|
|
13
|
+
private isItemsUnavailable;
|
|
14
|
+
private isTimeExpired;
|
|
9
15
|
protected afterRender(): void;
|
|
10
16
|
protected disconnected(): void;
|
|
11
17
|
private handleExit;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CheckoutProp65WarningComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
|
+
constructor();
|
|
5
|
+
get hostClasses(): string[];
|
|
6
|
+
private colorMode;
|
|
7
|
+
protected template(): HTMLElement | HTMLElement[];
|
|
8
|
+
}
|
|
@@ -3,5 +3,8 @@ import type { ICheckoutComponent } from '@/interfaces/configs';
|
|
|
3
3
|
export declare class CheckoutSendAsGiftComponent extends BaseComponent<null, ICheckoutComponent> {
|
|
4
4
|
get hostClasses(): string[];
|
|
5
5
|
constructor();
|
|
6
|
+
private pendingToggleFocus;
|
|
7
|
+
protected afterRender(): void;
|
|
8
|
+
private readonly onToggle;
|
|
6
9
|
protected template(): HTMLElement[];
|
|
7
10
|
}
|