@liquidcommerce/elements-sdk 2.6.0-beta.9 → 2.6.0-beta.90
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 +84 -2520
- package/dist/index.checkout.esm.js +16940 -0
- package/dist/index.esm.js +24189 -20939
- 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 +2 -6
- package/dist/types/core/api/api-client.service.d.ts +20 -18
- package/dist/types/core/api/api-result.d.ts +19 -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 +2 -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 -74
- package/dist/types/core/client/client-config.service.d.ts +8 -5
- package/dist/types/core/google-tag-manager.service.d.ts +2 -1
- 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 +1 -1
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +36 -51
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
- 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 +18 -108
- 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 +39 -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/cart.interface.d.ts +12 -7
- package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
- package/dist/types/interfaces/api/index.d.ts +5 -0
- package/dist/types/interfaces/api/product-list.interface.d.ts +39 -0
- package/dist/types/interfaces/api/product.interface.d.ts +10 -4
- 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/global.interface.d.ts +5 -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 +3 -1
- package/dist/types/interfaces/injection.interface.d.ts +49 -0
- package/dist/types/modules/address/address.command.d.ts +2 -1
- package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +4 -4
- package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +26 -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 +3 -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 +3 -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 +1 -1
- 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/product-add-to-cart-section.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
- package/dist/types/modules/product/components/product-image-carousel.component.d.ts +3 -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 +3 -0
- package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +5 -2
- package/dist/types/modules/product/product.commands.d.ts +3 -3
- 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 +13 -0
- package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +10 -0
- package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +13 -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-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 +14 -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} +1 -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 +55 -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 +50 -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 -8
- package/dist/types/modules/product-list/product-list.component.d.ts +14 -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 +20 -35
- 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/drawer/drawer.component.d.ts +1 -0
- package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +6 -1
- package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +6 -1
- package/dist/types/modules/ui-components/input/index.d.ts +0 -1
- package/dist/types/modules/ui-components/input/input.component.d.ts +8 -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/ui.commands.d.ts +5 -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/check.icon.d.ts +2 -0
- package/dist/types/static/icon/index.d.ts +1 -0
- package/dist/types/utils/dom-compat.d.ts +2 -0
- package/dist/types/utils/format.d.ts +0 -14
- package/dist/types/utils/product-selection.d.ts +16 -0
- package/dist/types/utils/product.d.ts +15 -0
- package/docs/v1/README.md +210 -0
- package/docs/v1/api/actions/address-actions.md +286 -0
- package/docs/v1/api/actions/cart-actions.md +357 -0
- package/docs/v1/api/actions/checkout-actions.md +525 -0
- package/docs/v1/api/actions/product-actions.md +204 -0
- package/docs/v1/api/client.md +517 -0
- package/docs/v1/api/configuration.md +532 -0
- package/docs/v1/api/injection-methods.md +292 -0
- package/docs/v1/api/typescript-types.md +419 -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 +502 -0
- package/docs/v1/getting-started/installation.md +328 -0
- package/docs/v1/getting-started/quick-start.md +405 -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 +725 -0
- package/docs/v1/guides/checkout-component.md +670 -0
- package/docs/v1/guides/events.md +926 -0
- package/docs/v1/guides/product-component.md +731 -0
- package/docs/v1/guides/product-list-component.md +631 -0
- package/docs/v1/guides/theming.md +213 -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/browser-support.md +45 -0
- package/docs/v1/reference/error-handling.md +75 -0
- package/docs/v1/reference/performance.md +52 -0
- package/docs/v1/reference/troubleshooting.md +136 -0
- package/package.json +33 -37
- 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 -106
- package/dist/types/interfaces/cloud/catalog.interface.d.ts +0 -42
- 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 -4
- 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/product-list/components/{product-list-filters-subcomponents/product-list-checkbox-filter.components.d.ts → filter-components/product-list-checkbox-filter.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,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,9 @@ 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
|
-
|
|
68
|
+
getDetails(): ICheckoutDetailsEventData;
|
|
53
69
|
}
|
|
@@ -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,6 +6,9 @@ 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[];
|
|
@@ -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,6 +9,9 @@ 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;
|
|
14
17
|
private updateButtonStates;
|
|
@@ -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,6 +16,7 @@ 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>;
|
|
@@ -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 {};
|
|
@@ -21,6 +21,7 @@ export declare class ProductAddToCartSectionComponent extends BaseComponent<IAdd
|
|
|
21
21
|
private calculateTotalPrice;
|
|
22
22
|
private createQuantityContainer;
|
|
23
23
|
private getSizeAttributes;
|
|
24
|
+
private openEngravingForm;
|
|
24
25
|
private isPresaleActive;
|
|
25
26
|
private createAddToCartButton;
|
|
26
27
|
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[];
|
|
@@ -17,6 +17,8 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
|
|
|
17
17
|
private startX;
|
|
18
18
|
private currentTranslateX;
|
|
19
19
|
private translateX;
|
|
20
|
+
private boundDragMove;
|
|
21
|
+
private boundDragEnd;
|
|
20
22
|
constructor();
|
|
21
23
|
afterRender(): void;
|
|
22
24
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
@@ -26,6 +28,7 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
|
|
|
26
28
|
private scrollToIndex;
|
|
27
29
|
private setupMainImageSwipe;
|
|
28
30
|
private setupGalleryDrag;
|
|
31
|
+
protected disconnected(): void;
|
|
29
32
|
private handleDragStart;
|
|
30
33
|
private handleDragMove;
|
|
31
34
|
private handleDragEnd;
|
|
@@ -8,5 +8,6 @@ export declare class ProductOptionsComponent extends BaseComponent<IProductOptio
|
|
|
8
8
|
constructor();
|
|
9
9
|
private getProductId;
|
|
10
10
|
onStoreWatch(changes: IOnStoreChanged[]): void;
|
|
11
|
-
protected template(): HTMLElement;
|
|
11
|
+
protected template(): HTMLElement | HTMLElement[];
|
|
12
|
+
private buildDescriptionElement;
|
|
12
13
|
}
|
|
@@ -13,6 +13,8 @@ export declare class ProductRetailersCarouselComponent extends BaseComponent<IPr
|
|
|
13
13
|
private startX;
|
|
14
14
|
private currentTranslateX;
|
|
15
15
|
private translateX;
|
|
16
|
+
private boundDragMove;
|
|
17
|
+
private boundDragEnd;
|
|
16
18
|
constructor();
|
|
17
19
|
afterRender(): void;
|
|
18
20
|
private cacheElements;
|
|
@@ -21,6 +23,7 @@ export declare class ProductRetailersCarouselComponent extends BaseComponent<IPr
|
|
|
21
23
|
private updateSelectedCard;
|
|
22
24
|
private scrollToIndex;
|
|
23
25
|
private setupDrag;
|
|
26
|
+
protected disconnected(): void;
|
|
24
27
|
private handleDragStart;
|
|
25
28
|
private handleDragMove;
|
|
26
29
|
private handleDragEnd;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import { type NavigationSourceType } from '@/enums';
|
|
2
3
|
import type { IProductComponent } from '@/interfaces/configs';
|
|
3
4
|
export interface IProductRetailersPopupListComponentParams {
|
|
4
5
|
productId: string;
|
|
6
|
+
navigationSource: NavigationSourceType;
|
|
7
|
+
slug?: string;
|
|
5
8
|
}
|
|
6
9
|
export declare class ProductRetailersPopupListComponent extends BaseComponent<IProductRetailersPopupListComponentParams, IProductComponent> {
|
|
7
10
|
get hostClasses(): string[];
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
private get isProductContext();
|
|
12
|
+
beforeSetupStoreWatchers(): void;
|
|
10
13
|
private onFulfillmentTabClick;
|
|
11
14
|
private onRetailerCardClick;
|
|
12
15
|
protected template(): HTMLElement[];
|
|
@@ -7,15 +7,17 @@ import { type AddItemParams } from '@/modules/cart/cart.commands';
|
|
|
7
7
|
export declare class ProductCommands extends BaseCommand {
|
|
8
8
|
private readonly uiCommands;
|
|
9
9
|
private readonly cartCommands;
|
|
10
|
+
private readonly checkoutCommands;
|
|
10
11
|
constructor();
|
|
11
12
|
static getInstance(): ProductCommands;
|
|
12
13
|
createProductInstance(productId: string, firstTime?: boolean): Promise<void>;
|
|
13
14
|
loadMultipleProducts(productIds: string[]): Promise<void>;
|
|
14
15
|
loadProduct(productId: string, customProductData?: IProductAvailabilityResponse | null): Promise<void>;
|
|
16
|
+
cacheProductFromApiData(identifier: string, apiData: IProductAvailabilityResponse): void;
|
|
15
17
|
selectSize(productId: string, sizeId: string): Promise<void>;
|
|
16
18
|
selectFulfillment(productId: string, selectedFulfillmentId: string): Promise<void>;
|
|
17
19
|
updateQuantity(productId: string, delta: number): Promise<void>;
|
|
18
|
-
changeFulfillmentType(productId: string,
|
|
20
|
+
changeFulfillmentType(productId: string, newFulfillmentType: FulfillmentType): Promise<void>;
|
|
19
21
|
removeProduct(productId: string): Promise<void>;
|
|
20
22
|
openProductDrawer(productId: string, contentType: IProductDrawerContentConfig['type'], data?: Record<string, any>): Promise<void>;
|
|
21
23
|
closeProductDrawer(productId: string): Promise<void>;
|
|
@@ -23,6 +25,4 @@ export declare class ProductCommands extends BaseCommand {
|
|
|
23
25
|
addToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
24
26
|
addPresaleToCart(productId: string, params: AddItemParams): Promise<void>;
|
|
25
27
|
productDataForEventFromStore(identifier: string): IBaseProductEventData;
|
|
26
|
-
private findFirstAvailableSize;
|
|
27
|
-
private loadProductStoreUpdate;
|
|
28
28
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IBadgesParams {
|
|
2
|
+
badges: Array<{
|
|
3
|
+
text: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
}>;
|
|
6
|
+
separatorText?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const createProductBadge: (name: string, className?: string) => HTMLElement;
|
|
9
|
+
export declare const createProductBadges: ({ badges, separatorText }: IBadgesParams) => HTMLElement;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IAddToCartButtonState {
|
|
2
|
+
isPresale: boolean;
|
|
3
|
+
hasAvailability: boolean;
|
|
4
|
+
hasAddress: boolean;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface IAddToCartButtonParams extends IAddToCartButtonState {
|
|
8
|
+
onClick?: (e: MouseEvent) => void | Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
export declare const applyAddToCartButtonState: (button: HTMLButtonElement, state: IAddToCartButtonState) => void;
|
|
11
|
+
export declare const createAddToCartButton: ({ isPresale, hasAvailability, disabled, hasAddress, onClick, }: IAddToCartButtonParams) => HTMLButtonElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface IPricePersonalizationSectionParams {
|
|
2
|
+
price: number;
|
|
3
|
+
showPrice: boolean;
|
|
4
|
+
hasPersonalization: boolean;
|
|
5
|
+
showPersonalization: boolean;
|
|
6
|
+
hasAddress: boolean;
|
|
7
|
+
wrapperClassName?: string;
|
|
8
|
+
priceClassName?: string;
|
|
9
|
+
personalizeClassName?: string;
|
|
10
|
+
personalizeText?: string;
|
|
11
|
+
onPersonalizeClick?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const createPricePersonalizationSection: ({ price, showPrice, hasPersonalization, showPersonalization, hasAddress, wrapperClassName, priceClassName, personalizeClassName, personalizeText, onPersonalizeClick, }: IPricePersonalizationSectionParams) => HTMLElement | null;
|
package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PLCCardStyle } from '@/interfaces/configs/product-list.interface';
|
|
2
|
+
export interface IQuantitySelectorParams {
|
|
3
|
+
initialQuantity: number;
|
|
4
|
+
minQuantity: number;
|
|
5
|
+
maxQuantity: number;
|
|
6
|
+
cardStyle: PLCCardStyle;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
onChange: (quantity: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const createQuantitySelector: ({ initialQuantity, minQuantity, maxQuantity, cardStyle, disabled, onChange, }: IQuantitySelectorParams) => HTMLElement;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { IProductSizeStore } from '@/core/store/interfaces/product.interface';
|
|
3
|
+
export interface IProductListSizeSelectorParams {
|
|
4
|
+
sizes: Record<string, IProductSizeStore>;
|
|
5
|
+
selectedSizeId: string | null;
|
|
6
|
+
onSelect?: (size: IProductSizeStore) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare class ProductListSizeSelectorComponent extends BaseComponent<IProductListSizeSelectorParams> {
|
|
9
|
+
private onOutsideClick;
|
|
10
|
+
get hostClasses(): string[];
|
|
11
|
+
protected disconnected?(): void;
|
|
12
|
+
protected template(): HTMLElement[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './product-list-apply-filter-button';
|
|
2
|
+
export * from './product-list-checkbox-filter';
|
|
3
|
+
export * from './product-list-chip';
|
|
4
|
+
export * from './product-list-filters-chips';
|
|
5
|
+
export * from './product-list-fulfillment-filter';
|
|
6
|
+
export * from './product-list-price-filter';
|
|
7
|
+
export * from './product-list-toggle-filters';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createApplyFiltersButton(onApplyFilters: VoidFunction): HTMLElement;
|
package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { IExtendedFilterSchema, IProductListFilters } from '@/modules/product-list/product-list.interface';
|
|
2
|
+
export interface ICreateChipsContainerParams {
|
|
3
|
+
currentFilters?: IProductListFilters;
|
|
4
|
+
sanitizedFilters?: IExtendedFilterSchema[];
|
|
5
|
+
onRemoveFilter: (key: string, value: string) => void;
|
|
6
|
+
onClearAllFilters: VoidFunction;
|
|
7
|
+
}
|
|
8
|
+
export interface IActiveFilter {
|
|
9
|
+
key: string;
|
|
10
|
+
value: string;
|
|
11
|
+
label: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function createChipsContainer(params: ICreateChipsContainerParams): HTMLElement;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FULFILLMENT_OPTIONS } from '@/modules/product-list/product-list.constants';
|
|
2
|
+
import type { IProductListFilters } from '@/modules/product-list/product-list.interface';
|
|
3
|
+
export interface ICreateFulfillmentFilterParams {
|
|
4
|
+
currentFilters?: IProductListFilters;
|
|
5
|
+
deliveryCollapsed: boolean;
|
|
6
|
+
isSameDayDeliveryDisabled: boolean;
|
|
7
|
+
onFulfillmentOptionsChange?: (value: typeof FULFILLMENT_OPTIONS.ALL | typeof FULFILLMENT_OPTIONS.SHIPPING | typeof FULFILLMENT_OPTIONS.ON_DEMAND) => void;
|
|
8
|
+
onToggleCollapse: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function createFulfillmentFilter(params: ICreateFulfillmentFilterParams): {
|
|
11
|
+
elements: HTMLElement[];
|
|
12
|
+
chevronContainer: HTMLElement;
|
|
13
|
+
fulfillmentList: HTMLElement;
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IProductListFilters } from '@/modules/product-list/product-list.interface';
|
|
2
|
+
export interface ICreateEngravingFilterParams {
|
|
3
|
+
currentFilters?: IProductListFilters;
|
|
4
|
+
isPersonalizationDisabled: boolean;
|
|
5
|
+
onEngravingChange?: (enabled: boolean) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function createEngravingFilter(params: ICreateEngravingFilterParams): HTMLElement[];
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
+
export * from './filter-components';
|
|
2
|
+
export * from './filter-components/product-list-apply-filter-button';
|
|
1
3
|
export * from './product-list-card.component';
|
|
2
4
|
export * from './product-list-card-loading.component';
|
|
5
|
+
export * from './product-list-engraving.component';
|
|
3
6
|
export * from './product-list-filters.component';
|
|
4
|
-
export * from './product-list-
|
|
5
|
-
export * from './product-list-
|
|
7
|
+
export * from './product-list-product-engraving-lines.component';
|
|
8
|
+
export * from './product-list-product-pre-cart.component';
|
|
9
|
+
export * from './product-list-search.component';
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BaseComponent } from '@/core/base-component.service';
|
|
2
|
+
import type { IProductListComponent } from '@/interfaces/configs';
|
|
2
3
|
import type { IProductListComponentParams } from '@/modules/product-list/product-list.component';
|
|
3
|
-
export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams> {
|
|
4
|
+
export declare class ProductListCardLoadingComponent extends BaseComponent<IProductListComponentParams, IProductListComponent> {
|
|
4
5
|
get hostClasses(): string[];
|
|
6
|
+
protected get hostAttributes(): Record<string, string>;
|
|
5
7
|
private createSkeletonCard;
|
|
6
8
|
protected template(): HTMLElement[];
|
|
7
9
|
}
|