@liquidcommerce/elements-sdk 2.6.0-beta.1 → 2.6.0-beta.100
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 +99 -2517
- package/dist/index.checkout.esm.js +17794 -0
- package/dist/index.esm.js +26010 -20601
- package/dist/ssr-stub.checkout.esm.js +18 -0
- package/dist/ssr-stub.esm.js +270 -0
- package/dist/types/auto-initialize/checkout.d.ts +2 -0
- package/dist/types/auto-initialize/shared-utils.d.ts +50 -0
- package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
- package/dist/types/clients/builder.d.ts +3 -0
- package/dist/types/clients/checkout.d.ts +6 -0
- package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +2 -1
- package/dist/types/clients/main.d.ts +3 -0
- package/dist/types/constants/core.constant.d.ts +13 -6
- 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 +5 -0
- package/dist/types/core/a11y/single-select.d.ts +16 -0
- package/dist/types/core/api/api-client.service.d.ts +23 -22
- package/dist/types/core/api/api-result.d.ts +19 -0
- package/dist/types/core/api/auth-client.service.d.ts +39 -26
- 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-cart-action.service.d.ts +38 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +69 -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 +6 -67
- package/dist/types/core/client/client-config.service.d.ts +9 -5
- package/dist/types/core/command/base-command.service.d.ts +2 -2
- package/dist/types/core/command/common-command.service.d.ts +2 -1
- package/dist/types/core/google-tag-manager.service.d.ts +15 -11
- package/dist/types/core/logger/logger.service.d.ts +1 -1
- package/dist/types/core/pubsub/interfaces/address.interface.d.ts +6 -12
- package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +27 -64
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +45 -50
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
- package/dist/types/core/pubsub/interfaces/product.interface.d.ts +16 -81
- 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/address.interface.d.ts +3 -12
- package/dist/types/core/store/interfaces/cart.interface.d.ts +16 -55
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +18 -108
- package/dist/types/core/store/interfaces/core.interface.d.ts +16 -5
- 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 +13 -66
- package/dist/types/core/store/store.constant.d.ts +6 -1
- package/dist/types/core/store/store.service.d.ts +1 -0
- package/dist/types/core/telemetry/telemetry.interface.d.ts +0 -1
- package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
- package/dist/types/enums/core.enum.d.ts +40 -1
- package/dist/types/enums/index.d.ts +0 -1
- package/dist/types/index.checkout.d.ts +8 -0
- package/dist/types/index.checkout.umd.d.ts +4 -0
- package/dist/types/index.d.ts +8 -3
- package/dist/types/interfaces/api/address.interface.d.ts +28 -0
- package/dist/types/interfaces/api/cart.interface.d.ts +96 -0
- package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
- package/dist/types/interfaces/{cloud → api}/index.d.ts +1 -3
- package/dist/types/interfaces/api/product-list.interface.d.ts +39 -0
- package/dist/types/interfaces/api/product.interface.d.ts +112 -0
- package/dist/types/interfaces/client.interface.d.ts +72 -0
- package/dist/types/interfaces/component.interface.d.ts +7 -0
- package/dist/types/interfaces/config.interface.d.ts +40 -0
- package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
- package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
- package/dist/types/interfaces/configs/configurations.interface.d.ts +5 -5
- package/dist/types/interfaces/configs/global.interface.d.ts +10 -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 +4 -1
- package/dist/types/interfaces/injection.interface.d.ts +49 -0
- package/dist/types/modules/address/address-display.component.d.ts +3 -1
- package/dist/types/modules/address/address-input.component.d.ts +10 -1
- package/dist/types/modules/address/address.command.d.ts +4 -4
- package/dist/types/modules/address/address.interface.d.ts +0 -7
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +4 -5
- package/dist/types/modules/cart/components/cart-body.component.d.ts +3 -1
- package/dist/types/modules/cart/components/cart-footer.component.d.ts +0 -1
- package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +0 -2
- 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 +6 -0
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +27 -10
- package/dist/types/modules/checkout/checkout.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +5 -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-items.component.d.ts +4 -3
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +14 -1
- package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
- package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
- package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +2 -2
- package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
- package/dist/types/modules/checkout/constant.d.ts +3 -0
- package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product/components/components.d.ts +7 -4
- package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +7 -1
- 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-retailers-carousel.component.d.ts +4 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +10 -2
- package/dist/types/modules/product/product.commands.d.ts +7 -7
- package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -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-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/filter-components/product-list-checkbox-filter.d.ts +7 -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/filter-components/product-list-price-filter.d.ts +22 -0
- 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 -0
- 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 +36 -30
- 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 +56 -14
- 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 +53 -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.utils.d.ts +8 -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 +23 -7
- package/dist/types/modules/product-list/product-list.component.d.ts +17 -39
- package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
- package/dist/types/modules/product-list/product-list.interface.d.ts +65 -0
- 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 +1 -1
- 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 +8 -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 +14 -1
- 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/purchase-min-alert/index.d.ts +0 -1
- package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
- package/dist/types/ssr/stub.checkout.d.ts +6 -0
- package/dist/types/ssr/stub.d.ts +10 -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 +2 -0
- 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 +2 -0
- 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 +3 -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/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +4 -14
- package/dist/types/utils/image-bg-removal.d.ts +3 -0
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +15 -0
- package/docs/v1/README.md +213 -0
- package/docs/v1/api/actions/address-actions.md +286 -0
- package/docs/v1/api/actions/cart-actions.md +364 -0
- package/docs/v1/api/actions/checkout-actions.md +527 -0
- package/docs/v1/api/actions/product-actions.md +204 -0
- package/docs/v1/api/client.md +596 -0
- package/docs/v1/api/configuration.md +555 -0
- package/docs/v1/api/injection-methods.md +292 -0
- package/docs/v1/api/typescript-types.md +423 -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 +63 -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 +349 -0
- package/docs/v1/getting-started/quick-start.md +410 -0
- package/docs/v1/guides/accessibility.md +173 -0
- package/docs/v1/guides/address-component.md +435 -0
- package/docs/v1/guides/best-practices.md +365 -0
- package/docs/v1/guides/cart-component.md +757 -0
- package/docs/v1/guides/checkout-component.md +670 -0
- package/docs/v1/guides/events.md +939 -0
- package/docs/v1/guides/product-component.md +735 -0
- package/docs/v1/guides/product-list-component.md +630 -0
- package/docs/v1/guides/theming.md +228 -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 +108 -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 +69 -45
- package/dist/types/elements-builder-client.d.ts +0 -2
- package/dist/types/elements-client.d.ts +0 -2
- package/dist/types/enums/cloud.enum.d.ts +0 -77
- package/dist/types/interfaces/cloud/address.interface.d.ts +0 -36
- package/dist/types/interfaces/cloud/cart.interface.d.ts +0 -132
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +0 -43
- package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -214
- package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
- package/dist/types/interfaces/cloud/product.interface.d.ts +0 -158
- 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/cart/cart.commands.helper.d.ts +0 -9
- package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
- package/dist/types/modules/product/utils/helpers.d.ts +0 -3
- package/dist/types/modules/product/utils/retailer-hours.d.ts +0 -9
- 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/modules/ui-components/purchase-min-alert/helpers.d.ts +0 -7
- package/dist/types/utils/helper.d.ts +0 -27
- 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 -589
- 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
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { PRODUCT_LIST_FILTER_TYPES } from '@/constants';
|
|
2
|
+
import type { ComponentType } from '@/enums';
|
|
3
|
+
import type { PLCProductUrl } from '@/interfaces/configs/product-list.interface';
|
|
4
|
+
import type { IAddressOptions } from '@/modules/address/address.interface';
|
|
5
|
+
export interface IInjectProductElement {
|
|
6
|
+
containerId: string;
|
|
7
|
+
identifier: string;
|
|
8
|
+
}
|
|
9
|
+
export type ProductListFilterType = (typeof PRODUCT_LIST_FILTER_TYPES)[keyof typeof PRODUCT_LIST_FILTER_TYPES];
|
|
10
|
+
export interface IInjectProductListParams {
|
|
11
|
+
containerId: string;
|
|
12
|
+
slug: string;
|
|
13
|
+
rows?: number;
|
|
14
|
+
columns?: number;
|
|
15
|
+
filters?: ProductListFilterType[];
|
|
16
|
+
productUrl?: PLCProductUrl;
|
|
17
|
+
}
|
|
18
|
+
export interface IInjectProductListSearchParams {
|
|
19
|
+
containerId: string;
|
|
20
|
+
slug: string;
|
|
21
|
+
filters?: ProductListFilterType[];
|
|
22
|
+
}
|
|
23
|
+
export interface IInjectProductListFiltersParams {
|
|
24
|
+
containerId: string;
|
|
25
|
+
slug: string;
|
|
26
|
+
filters?: ProductListFilterType[];
|
|
27
|
+
}
|
|
28
|
+
export interface IBuilderInjectElementParams {
|
|
29
|
+
type: ComponentType;
|
|
30
|
+
containerId: string;
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}
|
|
33
|
+
export interface IProcessInjectElementParams {
|
|
34
|
+
type: ComponentType;
|
|
35
|
+
containerId: string;
|
|
36
|
+
identifier?: string;
|
|
37
|
+
options?: IAddressOptions;
|
|
38
|
+
checkoutId?: string;
|
|
39
|
+
hideHeader?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface IInjectCheckoutParams {
|
|
42
|
+
containerId: string;
|
|
43
|
+
checkoutId?: string;
|
|
44
|
+
hideHeader?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface IInjectCheckoutBuilderParams extends IInjectCheckoutParams {
|
|
47
|
+
simulatePresale?: boolean;
|
|
48
|
+
presaleExpiresInMinutes?: number;
|
|
49
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
1
|
+
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { IAddressComponent } from '@/interfaces/configs';
|
|
3
3
|
import type { IAddressOptions } from './address.interface';
|
|
4
4
|
export interface IAddressDisplayComponentParams {
|
|
@@ -8,6 +8,8 @@ export interface IAddressDisplayComponentParams {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class AddressDisplayComponent extends BaseComponent<IAddressDisplayComponentParams, IAddressComponent> {
|
|
10
10
|
get hostClasses(): string[];
|
|
11
|
+
private lastAnnouncedAddress;
|
|
11
12
|
constructor();
|
|
13
|
+
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
12
14
|
protected template(): HTMLElement[];
|
|
13
15
|
}
|
|
@@ -25,10 +25,19 @@ export declare class AddressInputComponent extends BaseComponent<IAddressInputCo
|
|
|
25
25
|
private handleCancel;
|
|
26
26
|
private handleCheckAvailability;
|
|
27
27
|
private handleSuggestionClick;
|
|
28
|
-
private
|
|
28
|
+
private suggestionsStatus;
|
|
29
|
+
private activeSuggestionIndex;
|
|
30
|
+
private handleRootClick;
|
|
31
|
+
private handleFocusOut;
|
|
29
32
|
private searchAddresses;
|
|
30
33
|
private updateErrorDisplay;
|
|
31
34
|
private updateSuggestionsDisplay;
|
|
35
|
+
private updateSuggestionsStatus;
|
|
36
|
+
private getSuggestionOptions;
|
|
37
|
+
private moveActiveSuggestion;
|
|
38
|
+
private setActiveSuggestion;
|
|
39
|
+
private isSuggestionListOpen;
|
|
40
|
+
private handleComboboxKeydown;
|
|
32
41
|
private showSuggestions;
|
|
33
42
|
private hideSuggestions;
|
|
34
43
|
private createElement;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
|
-
import type {
|
|
3
|
-
import type { IAddressData } from './address.interface';
|
|
2
|
+
import type { IAddressAddress, IAddressAutocompleteResult, IAddressCoordinates, IAddressData, IAddressDetailsResult } from '@/interfaces/api/address.interface';
|
|
4
3
|
export declare class AddressCommands extends BaseCommand {
|
|
5
4
|
private productCommands;
|
|
6
5
|
private cartCommands;
|
|
7
6
|
constructor();
|
|
8
7
|
static getInstance(): AddressCommands;
|
|
9
8
|
searchAddresses(query: string): Promise<IAddressAutocompleteResult[]>;
|
|
10
|
-
getAddressDetails(addressId: string): Promise<IAddressDetailsResult>;
|
|
9
|
+
getAddressDetails(addressId: string): Promise<IAddressDetailsResult | null>;
|
|
11
10
|
setSelectedAddress(addressData: IAddressData): Promise<void>;
|
|
12
|
-
setAddressManually(address:
|
|
11
|
+
setAddressManually(address: IAddressAddress, coordinates: IAddressCoordinates): Promise<void>;
|
|
13
12
|
clearSelectedAddress(): Promise<void>;
|
|
14
13
|
getDetails(): IAddressData | null;
|
|
14
|
+
private buildFormattedAddressString;
|
|
15
15
|
}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { IAddress, ICoords } from '@/interfaces/cloud/address.interface';
|
|
2
1
|
export interface IAddressOptions {
|
|
3
2
|
showLabel?: boolean;
|
|
4
3
|
}
|
|
5
|
-
export interface IAddressData {
|
|
6
|
-
id: string;
|
|
7
|
-
formattedAddress: string;
|
|
8
|
-
address: Omit<IAddress, 'id'>;
|
|
9
|
-
coordinates: ICoords;
|
|
10
|
-
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseCommand } from '@/core/command/base-command.service';
|
|
2
2
|
import type { IBaseCartEventData } from '@/core/pubsub/interfaces/cart.interface';
|
|
3
3
|
export interface AddItemParams {
|
|
4
|
-
upc: string;
|
|
5
4
|
fulfillmentId: string;
|
|
6
5
|
partNumber: string;
|
|
7
6
|
quantity: number;
|
|
@@ -9,17 +8,15 @@ export interface AddItemParams {
|
|
|
9
8
|
identifier: string;
|
|
10
9
|
}
|
|
11
10
|
export declare class CartCommands extends BaseCommand {
|
|
12
|
-
private readonly uiCommands;
|
|
13
|
-
private readonly checkoutCommands;
|
|
14
|
-
private readonly commonCommands;
|
|
15
11
|
constructor();
|
|
16
12
|
static getInstance(): CartCommands;
|
|
17
13
|
updateItemQuantity(itemId: string, delta: number): Promise<void>;
|
|
18
14
|
removeItem(itemId: string, isNotStandAlone?: boolean): Promise<void>;
|
|
19
15
|
updateItemEngraving(productItemId: string, engravingLines: string[]): Promise<void>;
|
|
20
16
|
addItem(params: AddItemParams): Promise<void>;
|
|
21
|
-
addPresaleItem(params: AddItemParams): Promise<void>;
|
|
22
17
|
handleGoToCheckout(): Promise<void>;
|
|
18
|
+
private trackBeginCheckout;
|
|
19
|
+
private resolveCheckoutRedirectUrl;
|
|
23
20
|
applyPromoCode(promoCode: string): Promise<void>;
|
|
24
21
|
removePromoCode(): Promise<void>;
|
|
25
22
|
rerenderCart(): void;
|
|
@@ -32,4 +29,6 @@ export declare class CartCommands extends BaseCommand {
|
|
|
32
29
|
private updateFulfillment;
|
|
33
30
|
private addNewFulfillmentAndRetailer;
|
|
34
31
|
private cleanupAfterItemRemoval;
|
|
32
|
+
private syncCartState;
|
|
33
|
+
private buildCartLoadedEventData;
|
|
35
34
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
|
-
|
|
2
|
+
import type { ICartComponent } from '@/interfaces/configs';
|
|
3
|
+
export declare class CartBodyComponent extends BaseComponent<null, ICartComponent> {
|
|
3
4
|
get hostClasses(): string[];
|
|
4
5
|
constructor();
|
|
5
6
|
private createEmptyCartElement;
|
|
@@ -9,6 +10,7 @@ export declare class CartBodyComponent extends BaseComponent<null, null> {
|
|
|
9
10
|
private getRetailerElementById;
|
|
10
11
|
private getLoadingElement;
|
|
11
12
|
private showEmptyCartState;
|
|
13
|
+
private preserveDialogFocus;
|
|
12
14
|
private addLoadingOverlay;
|
|
13
15
|
private removeLoadingOverlay;
|
|
14
16
|
private setupEmptyCartListeners;
|
|
@@ -12,7 +12,6 @@ export declare class CartFooterComponent extends BaseComponent<ICartFooterCompon
|
|
|
12
12
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
13
13
|
afterRender(): void;
|
|
14
14
|
private isAnythingLoading;
|
|
15
|
-
private hasUnmetMinimum;
|
|
16
15
|
private shouldDisableCheckout;
|
|
17
16
|
private updateCheckoutButtonState;
|
|
18
17
|
private updateSubtotalItemsCount;
|
|
@@ -6,7 +6,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
6
6
|
get hostClasses(): string[];
|
|
7
7
|
constructor();
|
|
8
8
|
private getFulfillmentId;
|
|
9
|
-
private getProductStore;
|
|
10
9
|
private handleItemsUpdate;
|
|
11
10
|
private setupItemElements;
|
|
12
11
|
private setupMinimumPurchaseAlert;
|
|
@@ -17,7 +16,6 @@ export declare class CartFulfillmentComponent extends BaseComponent<ICartFulfill
|
|
|
17
16
|
private isAnyItemUpdating;
|
|
18
17
|
private checkAndUpdateLoadingState;
|
|
19
18
|
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
20
|
-
private hasFulfillmentFeesChanged;
|
|
21
19
|
private hasFulfillmentDataChanged;
|
|
22
20
|
protected afterRender(): void;
|
|
23
21
|
protected disconnected(): void;
|
|
@@ -7,14 +7,19 @@ export declare class CartItemQuantityPriceComponent extends BaseComponent<ICartI
|
|
|
7
7
|
private qtyIncreaseButton;
|
|
8
8
|
private qtyDecreaseButton;
|
|
9
9
|
private quantitySpan;
|
|
10
|
+
private priceElement;
|
|
11
|
+
private unitPriceElement;
|
|
10
12
|
get hostClasses(): string[];
|
|
11
13
|
constructor();
|
|
14
|
+
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
12
15
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
13
16
|
private getItemStore;
|
|
14
17
|
private calculateQuantityLimits;
|
|
15
18
|
private getAvailableQuantity;
|
|
16
19
|
private updateButtonStates;
|
|
17
20
|
private handleQuantityChange;
|
|
21
|
+
private updatePriceText;
|
|
22
|
+
private applyUnitPrice;
|
|
18
23
|
private createQuantityContainer;
|
|
19
24
|
private createPriceContainer;
|
|
20
25
|
protected template(): HTMLElement[];
|
|
@@ -6,6 +6,12 @@ export declare class CartItemComponent extends BaseComponent<ICartItemComponentP
|
|
|
6
6
|
get hostClasses(): string[];
|
|
7
7
|
get hostAttributes(): Record<string, string>;
|
|
8
8
|
constructor();
|
|
9
|
+
private lastFocusedKey;
|
|
10
|
+
private cancelFocusRestore;
|
|
11
|
+
protected connected(): void;
|
|
12
|
+
protected disconnected(): void;
|
|
13
|
+
private readonly handleFocusIn;
|
|
14
|
+
protected afterRender(): void;
|
|
9
15
|
private handleOpenEngravingForm;
|
|
10
16
|
protected template(): HTMLElement[];
|
|
11
17
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,23 +1,35 @@
|
|
|
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 { ICheckoutBilling, ICheckoutCustomer, ICheckoutGiftRecipient, ICheckoutPrepare } from '@/interfaces/api/checkout.interface';
|
|
5
|
+
import type { AddItemParams } from '@/modules/cart/cart.commands';
|
|
6
|
+
import type { PresaleExpiredReason } from '@/modules/checkout/components';
|
|
3
7
|
export declare class CheckoutCommands extends BaseCommand {
|
|
4
8
|
private readonly uiCommands;
|
|
5
|
-
private readonly commonCommands;
|
|
6
9
|
constructor();
|
|
7
10
|
static getInstance(): CheckoutCommands;
|
|
8
|
-
|
|
11
|
+
addPresaleItem(params: AddItemParams): Promise<void>;
|
|
12
|
+
loadCheckout(params: {
|
|
13
|
+
checkoutId?: string;
|
|
14
|
+
cartId?: string;
|
|
15
|
+
isForPresale?: boolean;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
loadCheckoutFromResponse(response: ICheckoutPrepare): void;
|
|
9
18
|
toggleIsGift(active?: boolean): Promise<void>;
|
|
10
19
|
toggleBillingSameAsShipping(active?: boolean): Promise<void>;
|
|
11
20
|
toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise<void>;
|
|
12
21
|
getPaymentSession(): Promise<void>;
|
|
13
|
-
confirmPaymentSession(confirmationTokenId: string, setupIntentId: string): Promise<ICheckoutPaymentMethodStore
|
|
22
|
+
confirmPaymentSession(confirmationTokenId: string, setupIntentId: string): Promise<ICheckoutPaymentMethodStore>;
|
|
14
23
|
applyPromoCode(code: string): Promise<void>;
|
|
15
24
|
removePromoCode(): Promise<void>;
|
|
16
25
|
clearPromoCodeError(): Promise<void>;
|
|
17
26
|
applyGiftCard(code: string): Promise<void>;
|
|
18
27
|
removeGiftCard(code: string): Promise<void>;
|
|
19
28
|
clearGiftCardError(): Promise<void>;
|
|
20
|
-
|
|
29
|
+
showPresaleExpired(reason?: PresaleExpiredReason): void;
|
|
30
|
+
openCheckout(): void;
|
|
31
|
+
getReturnUrl(): string | null;
|
|
32
|
+
private resolveCheckoutPageUrl;
|
|
21
33
|
rerenderCheckout(): void;
|
|
22
34
|
updateCheckoutItemQuantity(itemId: string, delta: number): Promise<void>;
|
|
23
35
|
removeItemEngraving(productItemId: string): Promise<void>;
|
|
@@ -28,18 +40,20 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
28
40
|
clearCheckoutError(): Promise<void>;
|
|
29
41
|
editCustomerForm(): Promise<void>;
|
|
30
42
|
saveCustomerForm({ shippingAddressTwo, deliveryInstructions, customerData, }: {
|
|
31
|
-
customerData:
|
|
43
|
+
customerData: ICheckoutCustomer;
|
|
32
44
|
shippingAddressTwo: string;
|
|
33
45
|
deliveryInstructions: string;
|
|
34
46
|
}): Promise<void>;
|
|
35
47
|
editGiftRecipientForm(): Promise<void>;
|
|
36
|
-
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }:
|
|
48
|
+
saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipient & {
|
|
37
49
|
shippingAddressTwo: string;
|
|
38
50
|
deliveryInstructions: string;
|
|
39
51
|
}): Promise<void>;
|
|
40
52
|
editPaymentForm(): Promise<void>;
|
|
53
|
+
private resetCheckoutPreservingInjected;
|
|
54
|
+
private markInjectedPaymentReady;
|
|
41
55
|
savePaymentForm({ billingFormData, paymentSession, }: {
|
|
42
|
-
billingFormData?:
|
|
56
|
+
billingFormData?: ICheckoutBilling;
|
|
43
57
|
paymentSession?: {
|
|
44
58
|
confirmationTokenId: string;
|
|
45
59
|
setupIntentId: string;
|
|
@@ -47,7 +61,10 @@ export declare class CheckoutCommands extends BaseCommand {
|
|
|
47
61
|
}): Promise<void>;
|
|
48
62
|
checkoutComplete(): Promise<void>;
|
|
49
63
|
private updateStoreFromCheckoutResponse;
|
|
50
|
-
private
|
|
64
|
+
private syncFromItemUpdate;
|
|
65
|
+
private syncCheckoutState;
|
|
66
|
+
private refreshCheckout;
|
|
51
67
|
private dataForCheckoutPrepare;
|
|
52
|
-
private
|
|
68
|
+
private normalizeForApi;
|
|
69
|
+
getDetails(): ICheckoutDetailsEventData;
|
|
53
70
|
}
|
|
@@ -3,8 +3,10 @@ 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();
|
|
9
10
|
protected template(): HTMLElement[];
|
|
11
|
+
private createHeader;
|
|
10
12
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
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;
|
|
@@ -6,8 +6,13 @@ export interface ICheckoutCompletedComponentParams {
|
|
|
6
6
|
cardLast4: string;
|
|
7
7
|
customerEmail: string;
|
|
8
8
|
giftRecipientEmail: string | null;
|
|
9
|
+
checkoutToken?: string;
|
|
10
|
+
cartId?: string;
|
|
11
|
+
isCompleted?: boolean;
|
|
9
12
|
}
|
|
10
13
|
export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
|
|
11
14
|
get hostClasses(): string[];
|
|
15
|
+
private hasAnnouncedCompletion;
|
|
16
|
+
protected afterRender(): void;
|
|
12
17
|
protected template(): HTMLElement[];
|
|
13
18
|
}
|
|
@@ -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[];
|
|
@@ -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;
|
|
@@ -5,7 +5,6 @@ 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;
|
|
11
10
|
private billingFormData;
|
|
@@ -17,10 +16,12 @@ export declare class CheckoutPaymentComponent extends BaseComponent<ICheckoutSen
|
|
|
17
16
|
private isSavingPayment;
|
|
18
17
|
get hostClasses(): string[];
|
|
19
18
|
constructor();
|
|
19
|
+
private getInjectedPaymentMethod;
|
|
20
20
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
21
21
|
private handleBillingSameAsShippingChange;
|
|
22
22
|
afterRender(): Promise<void>;
|
|
23
23
|
private updateSaveButtonState;
|
|
24
|
+
private lastAnnouncedPaymentError;
|
|
24
25
|
private updateErrorMessage;
|
|
25
26
|
private showError;
|
|
26
27
|
protected template(): HTMLElement[];
|
|
@@ -4,6 +4,8 @@ export declare class CheckoutPlaceOrderButtonComponent extends BaseComponent<nul
|
|
|
4
4
|
private placeOrderButton;
|
|
5
5
|
private errorContainer;
|
|
6
6
|
private errorTimeoutId;
|
|
7
|
+
private lastButtonState;
|
|
8
|
+
private lastAnnouncedError;
|
|
7
9
|
get hostClasses(): string[];
|
|
8
10
|
constructor();
|
|
9
11
|
afterRender(): void;
|
|
@@ -1,8 +1,11 @@
|
|
|
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;
|
|
7
10
|
private scrollHandler;
|
|
8
11
|
private scrollContainer;
|
|
@@ -11,16 +14,26 @@ export declare class CheckoutPresaleCountdownComponent extends BaseComponent<nul
|
|
|
11
14
|
get hostClasses(): string[];
|
|
12
15
|
constructor();
|
|
13
16
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
17
|
+
private resetCountdownState;
|
|
14
18
|
protected afterRender(): void;
|
|
15
19
|
protected disconnected(): void;
|
|
16
20
|
private setupDrawerScrollDetection;
|
|
21
|
+
private findScrollContainer;
|
|
22
|
+
private setScrolledState;
|
|
17
23
|
private isScrollable;
|
|
18
24
|
private cleanupScrollListener;
|
|
19
25
|
private updateExpiresAt;
|
|
20
26
|
private startCountdown;
|
|
21
27
|
private stopCountdown;
|
|
22
28
|
private updateCountdown;
|
|
29
|
+
private updateWarningState;
|
|
30
|
+
private updateTimerDisplay;
|
|
31
|
+
private updateProgressBar;
|
|
23
32
|
private formatTime;
|
|
24
33
|
private handleExpire;
|
|
25
34
|
protected template(): HTMLElement;
|
|
35
|
+
private createTextContainer;
|
|
36
|
+
private createHeader;
|
|
37
|
+
private createSubtitle;
|
|
38
|
+
private createProgressBar;
|
|
26
39
|
}
|
|
@@ -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;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SafeHTMLElement } from '@/utils/dom-compat';
|
|
1
2
|
declare global {
|
|
2
3
|
interface Window {
|
|
3
4
|
Stripe: any;
|
|
@@ -23,7 +24,7 @@ export interface IStripeFormStatus {
|
|
|
23
24
|
hasError: boolean;
|
|
24
25
|
errorMessage: string | null;
|
|
25
26
|
}
|
|
26
|
-
export declare class CheckoutStripeFormComponent extends
|
|
27
|
+
export declare class CheckoutStripeFormComponent extends SafeHTMLElement {
|
|
27
28
|
private _initialized;
|
|
28
29
|
private _stripe;
|
|
29
30
|
private _stripeElements;
|
|
@@ -6,8 +6,8 @@ export declare class CheckoutTipsComponent extends BaseComponent<null, ICheckout
|
|
|
6
6
|
constructor();
|
|
7
7
|
protected afterRender(): void;
|
|
8
8
|
private getTipSelection;
|
|
9
|
-
private
|
|
10
|
-
private
|
|
9
|
+
private getOnDemandFulfillments;
|
|
10
|
+
private getRetailerNameForFulfillment;
|
|
11
11
|
private handlePercentageSelect;
|
|
12
12
|
private handleFulfillmentTipInput;
|
|
13
13
|
private removeTipFromFulfillment;
|
|
@@ -7,8 +7,6 @@ export declare class CheckoutPcGcComponent extends BaseComponent<null, ICheckout
|
|
|
7
7
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
8
8
|
private updateAppliedGiftCards;
|
|
9
9
|
private createAppliedGiftCardElement;
|
|
10
|
-
private pcInputContainer;
|
|
11
|
-
private gcInputContainer;
|
|
12
10
|
private inputContainer;
|
|
13
11
|
private createErrorElement;
|
|
14
12
|
protected template(): HTMLElement[];
|
|
@@ -8,6 +8,7 @@ export declare const customerFormFields: {
|
|
|
8
8
|
readonly addressTwo: "addressTwo";
|
|
9
9
|
readonly company: "company";
|
|
10
10
|
};
|
|
11
|
+
export type CustomerFieldName = (typeof customerFormFields)[keyof typeof customerFormFields];
|
|
11
12
|
export declare const giftFormFields: {
|
|
12
13
|
readonly firstName: "firstName";
|
|
13
14
|
readonly lastName: "lastName";
|
|
@@ -16,6 +17,7 @@ export declare const giftFormFields: {
|
|
|
16
17
|
readonly addressTwo: "addressTwo";
|
|
17
18
|
readonly message: "message";
|
|
18
19
|
};
|
|
20
|
+
export type GiftFieldName = (typeof giftFormFields)[keyof typeof giftFormFields];
|
|
19
21
|
export declare const billingFormFields: {
|
|
20
22
|
readonly firstName: "firstName";
|
|
21
23
|
readonly lastName: "lastName";
|
|
@@ -28,3 +30,4 @@ export declare const billingFormFields: {
|
|
|
28
30
|
readonly state: "state";
|
|
29
31
|
readonly zipCode: "zipCode";
|
|
30
32
|
};
|
|
33
|
+
export type BillingFieldName = (typeof billingFormFields)[keyof typeof billingFormFields];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import type { IProductFulfillmentStore } from '@/core/store/interfaces/product.interface';
|
|
2
2
|
import { type FulfillmentType } from '@/enums';
|
|
3
|
-
import type { IProductSizeAttributes } from '@/interfaces/
|
|
4
|
-
|
|
5
|
-
export declare function
|
|
3
|
+
import type { IProductSizeAttributes } from '@/interfaces/api/product.interface';
|
|
4
|
+
export declare const FULFILLMENT_TAB_SELECTOR = ".fulfillment-tab";
|
|
5
|
+
export declare function fulfillmentSelectedMessage(fulfillment: IProductFulfillmentStore, type: FulfillmentType): string;
|
|
6
|
+
export declare function fulfillmentTypeMessage(type: FulfillmentType, optionCount: number): string;
|
|
7
|
+
export declare function focusSelectedFulfillmentTab(root: ParentNode): boolean;
|
|
8
|
+
export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, selectedSizeAttributes, interactive, }: {
|
|
6
9
|
fulfillment: IProductFulfillmentStore;
|
|
7
10
|
selectedFulfillmentType: FulfillmentType;
|
|
8
11
|
isSelected: boolean;
|
|
9
|
-
fulfillmentStatus: RetailerStatus;
|
|
10
12
|
selectedSizeAttributes: IProductSizeAttributes | null;
|
|
13
|
+
interactive?: boolean;
|
|
11
14
|
}): HTMLElement;
|
|
12
15
|
export declare function renderFulfillmentTabsContainer({ shippingFulfillments, onDemandFulfillments, shippingSelected, onDemandSelected, onTabClick, enableShippingFulfillment, enableOnDemandFulfillment, }: {
|
|
13
16
|
shippingFulfillments: IProductFulfillmentStore[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseComponent } from '@/core/base-component.service';
|
|
1
|
+
import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
|
|
2
2
|
import type { IProductComponent } from '@/interfaces/configs';
|
|
3
3
|
export interface IAddToCartSectionComponentParams {
|
|
4
4
|
productId: string;
|
|
@@ -8,10 +8,13 @@ export declare class ProductAddToCartSectionComponent extends BaseComponent<IAdd
|
|
|
8
8
|
private qtyIncreaseButton;
|
|
9
9
|
private qtyDecreaseButton;
|
|
10
10
|
private quantityText;
|
|
11
|
+
private pendingFocusKey;
|
|
11
12
|
get hostClasses(): string[];
|
|
12
13
|
get hostAttributes(): Record<string, string>;
|
|
13
14
|
constructor();
|
|
14
15
|
private getProductId;
|
|
16
|
+
onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
|
|
17
|
+
afterRender(): void;
|
|
15
18
|
private getAvailableQuantity;
|
|
16
19
|
private isFulfillmentClosed;
|
|
17
20
|
private isButtonLoading;
|
|
@@ -19,8 +22,11 @@ export declare class ProductAddToCartSectionComponent extends BaseComponent<IAdd
|
|
|
19
22
|
private handleAddToCart;
|
|
20
23
|
private handleQuantityChange;
|
|
21
24
|
private calculateTotalPrice;
|
|
25
|
+
private stepperFocusKey;
|
|
26
|
+
private createStepper;
|
|
22
27
|
private createQuantityContainer;
|
|
23
28
|
private getSizeAttributes;
|
|
29
|
+
private openEngravingForm;
|
|
24
30
|
private isPresaleActive;
|
|
25
31
|
private createAddToCartButton;
|
|
26
32
|
protected template(): HTMLElement[] | string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
2
|
export interface IProductDescriptionComponentParams {
|
|
3
3
|
productId: string;
|
|
4
|
+
hideTitle?: boolean;
|
|
4
5
|
}
|
|
5
6
|
export declare class ProductDescriptionComponent extends BaseComponent<IProductDescriptionComponentParams, null> {
|
|
6
7
|
get hostClasses(): string[];
|
|
@@ -8,12 +8,18 @@ export declare class ProductDrawerComponent extends BaseComponent<IProductDrawer
|
|
|
8
8
|
private isOpen;
|
|
9
9
|
private contentContainer;
|
|
10
10
|
private currentContentType;
|
|
11
|
+
private focusEntryFrame;
|
|
12
|
+
private readonly focusManager;
|
|
13
|
+
private readonly boundHandleKeydown;
|
|
11
14
|
constructor();
|
|
15
|
+
private handleKeydown;
|
|
16
|
+
disconnected(): void;
|
|
12
17
|
private getProductId;
|
|
13
18
|
onStoreChanged(changes: IOnStoreChanged[]): boolean;
|
|
14
19
|
private openWithContent;
|
|
15
20
|
private open;
|
|
16
21
|
private close;
|
|
22
|
+
private moveFocusIntoPanel;
|
|
17
23
|
private updateDrawerState;
|
|
18
24
|
protected template(): HTMLElement;
|
|
19
25
|
}
|