@liquidcommerce/elements-sdk 2.1.0-beta.49

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.
Files changed (201) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +1183 -0
  3. package/dist/index.esm.js +16834 -0
  4. package/dist/types/auto-initialize.d.ts +2 -0
  5. package/dist/types/constants/core.constant.d.ts +6 -0
  6. package/dist/types/constants/index.d.ts +2 -0
  7. package/dist/types/constants/z-index.constant.d.ts +24 -0
  8. package/dist/types/core/auth.service.d.ts +29 -0
  9. package/dist/types/core/base-component.service.d.ts +93 -0
  10. package/dist/types/core/client/client-action.service.d.ts +70 -0
  11. package/dist/types/core/client/client-config.service.d.ts +47 -0
  12. package/dist/types/core/command/base-command.service.d.ts +17 -0
  13. package/dist/types/core/command/command.service.d.ts +16 -0
  14. package/dist/types/core/command/common-command.service.d.ts +5 -0
  15. package/dist/types/core/component-factory.service.d.ts +27 -0
  16. package/dist/types/core/fingerprint.service.d.ts +28 -0
  17. package/dist/types/core/google-tag-manager.service.d.ts +93 -0
  18. package/dist/types/core/logger/logger-factory.d.ts +8 -0
  19. package/dist/types/core/logger/logger.service.d.ts +17 -0
  20. package/dist/types/core/pubsub/index.d.ts +2 -0
  21. package/dist/types/core/pubsub/interfaces/address.interface.d.ts +16 -0
  22. package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +107 -0
  23. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +84 -0
  24. package/dist/types/core/pubsub/interfaces/core.interface.d.ts +81 -0
  25. package/dist/types/core/pubsub/interfaces/index.d.ts +5 -0
  26. package/dist/types/core/pubsub/interfaces/product.interface.d.ts +91 -0
  27. package/dist/types/core/pubsub/pubsub.service.d.ts +12 -0
  28. package/dist/types/core/singleton-manager.service.d.ts +12 -0
  29. package/dist/types/core/store/index.d.ts +2 -0
  30. package/dist/types/core/store/interfaces/address.interface.d.ts +16 -0
  31. package/dist/types/core/store/interfaces/cart.interface.d.ts +94 -0
  32. package/dist/types/core/store/interfaces/checkout.interface.d.ts +154 -0
  33. package/dist/types/core/store/interfaces/core.interface.d.ts +40 -0
  34. package/dist/types/core/store/interfaces/index.d.ts +5 -0
  35. package/dist/types/core/store/interfaces/product.interface.d.ts +81 -0
  36. package/dist/types/core/store/store.constant.d.ts +8 -0
  37. package/dist/types/core/store/store.service.d.ts +41 -0
  38. package/dist/types/core/utils.d.ts +27 -0
  39. package/dist/types/elements-client-helper.d.ts +1 -0
  40. package/dist/types/elements-client.d.ts +2 -0
  41. package/dist/types/enums/cloud.enum.d.ts +77 -0
  42. package/dist/types/enums/core.enum.d.ts +134 -0
  43. package/dist/types/enums/index.d.ts +2 -0
  44. package/dist/types/index.d.ts +4 -0
  45. package/dist/types/index.umd.d.ts +2 -0
  46. package/dist/types/interfaces/cloud/address.interface.d.ts +36 -0
  47. package/dist/types/interfaces/cloud/cart.interface.d.ts +132 -0
  48. package/dist/types/interfaces/cloud/checkout.interface.d.ts +214 -0
  49. package/dist/types/interfaces/cloud/core.interface.d.ts +22 -0
  50. package/dist/types/interfaces/cloud/index.d.ts +6 -0
  51. package/dist/types/interfaces/cloud/product.interface.d.ts +156 -0
  52. package/dist/types/interfaces/cloud/retailer.interface.d.ts +66 -0
  53. package/dist/types/interfaces/cloud/user.interface.d.ts +100 -0
  54. package/dist/types/interfaces/configs/address.interface.d.ts +8 -0
  55. package/dist/types/interfaces/configs/cart.interface.d.ts +15 -0
  56. package/dist/types/interfaces/configs/checkout.interface.d.ts +34 -0
  57. package/dist/types/interfaces/configs/configurations.interface.d.ts +13 -0
  58. package/dist/types/interfaces/configs/global.interface.d.ts +46 -0
  59. package/dist/types/interfaces/configs/index.d.ts +6 -0
  60. package/dist/types/interfaces/configs/product.interface.d.ts +25 -0
  61. package/dist/types/interfaces/core.interface.d.ts +81 -0
  62. package/dist/types/modules/address/address-display.component.d.ts +13 -0
  63. package/dist/types/modules/address/address-input.component.d.ts +40 -0
  64. package/dist/types/modules/address/address.command.d.ts +15 -0
  65. package/dist/types/modules/address/address.component.d.ts +12 -0
  66. package/dist/types/modules/address/address.interface.d.ts +10 -0
  67. package/dist/types/modules/address/index.d.ts +4 -0
  68. package/dist/types/modules/api-client/api-client.interface.d.ts +21 -0
  69. package/dist/types/modules/api-client/api-client.service.d.ts +28 -0
  70. package/dist/types/modules/api-client/index.d.ts +2 -0
  71. package/dist/types/modules/cart/cart.commands.d.ts +36 -0
  72. package/dist/types/modules/cart/cart.commands.helper.d.ts +8 -0
  73. package/dist/types/modules/cart/cart.component.d.ts +11 -0
  74. package/dist/types/modules/cart/components/cart-body.component.d.ts +24 -0
  75. package/dist/types/modules/cart/components/cart-footer.component.d.ts +21 -0
  76. package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +26 -0
  77. package/dist/types/modules/cart/components/cart-header.component.d.ts +6 -0
  78. package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +21 -0
  79. package/dist/types/modules/cart/components/cart-item.component.d.ts +13 -0
  80. package/dist/types/modules/cart/components/cart-promo-code.component.d.ts +17 -0
  81. package/dist/types/modules/cart/components/cart-retailer-subtotal.component.d.ts +10 -0
  82. package/dist/types/modules/cart/components/cart-retailer.component.d.ts +23 -0
  83. package/dist/types/modules/cart/components/index.d.ts +8 -0
  84. package/dist/types/modules/cart/index.d.ts +1 -0
  85. package/dist/types/modules/checkout/checkout.commands.d.ts +50 -0
  86. package/dist/types/modules/checkout/checkout.commands.helper.d.ts +13 -0
  87. package/dist/types/modules/checkout/checkout.component.d.ts +11 -0
  88. package/dist/types/modules/checkout/components/checkout-header.component.d.ts +9 -0
  89. package/dist/types/modules/checkout/components/checkout-information-section.component.d.ts +12 -0
  90. package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +26 -0
  91. package/dist/types/modules/checkout/components/checkout-summary-section.component.d.ts +12 -0
  92. package/dist/types/modules/checkout/components/checkout.type.d.ts +4 -0
  93. package/dist/types/modules/checkout/components/index.d.ts +20 -0
  94. package/dist/types/modules/checkout/components/information/checkout-billing-form.component.d.ts +18 -0
  95. package/dist/types/modules/checkout/components/information/checkout-buyer-information-form.component.d.ts +12 -0
  96. package/dist/types/modules/checkout/components/information/checkout-delivery-information-form.component.d.ts +17 -0
  97. package/dist/types/modules/checkout/components/information/checkout-payment-form.component.d.ts +21 -0
  98. package/dist/types/modules/checkout/components/information/checkout-stripe-form.component.d.ts +52 -0
  99. package/dist/types/modules/checkout/components/summary/checkout-amounts.component.d.ts +7 -0
  100. package/dist/types/modules/checkout/components/summary/checkout-completed.component.d.ts +12 -0
  101. package/dist/types/modules/checkout/components/summary/checkout-gift-cards.component.d.ts +14 -0
  102. package/dist/types/modules/checkout/components/summary/checkout-item-quantity.component.d.ts +19 -0
  103. package/dist/types/modules/checkout/components/summary/checkout-item.component.d.ts +21 -0
  104. package/dist/types/modules/checkout/components/summary/checkout-items.component.d.ts +16 -0
  105. package/dist/types/modules/checkout/components/summary/checkout-place-order-button.component.d.ts +23 -0
  106. package/dist/types/modules/checkout/components/summary/checkout-presale-expired.component.d.ts +16 -0
  107. package/dist/types/modules/checkout/components/summary/checkout-promo-code.component.d.ts +17 -0
  108. package/dist/types/modules/checkout/components/summary/checkout-tips.component.d.ts +19 -0
  109. package/dist/types/modules/checkout/components/summary/promo-pc-gc.component.d.ts +16 -0
  110. package/dist/types/modules/checkout/constant.d.ts +32 -0
  111. package/dist/types/modules/checkout/index.d.ts +1 -0
  112. package/dist/types/modules/product/components/components.d.ts +20 -0
  113. package/dist/types/modules/product/components/index.d.ts +13 -0
  114. package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +26 -0
  115. package/dist/types/modules/product/components/product-description.component.d.ts +9 -0
  116. package/dist/types/modules/product/components/product-drawer.component.d.ts +19 -0
  117. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +36 -0
  118. package/dist/types/modules/product/components/product-interactions.component.d.ts +14 -0
  119. package/dist/types/modules/product/components/product-options.component.d.ts +12 -0
  120. package/dist/types/modules/product/components/product-price.component.d.ts +11 -0
  121. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +32 -0
  122. package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +13 -0
  123. package/dist/types/modules/product/components/product-retailers-popup.component.d.ts +11 -0
  124. package/dist/types/modules/product/components/product-retailers.component.d.ts +11 -0
  125. package/dist/types/modules/product/constant.d.ts +2 -0
  126. package/dist/types/modules/product/index.d.ts +1 -0
  127. package/dist/types/modules/product/product.commands.d.ts +29 -0
  128. package/dist/types/modules/product/product.component.d.ts +13 -0
  129. package/dist/types/modules/product/utils/helpers.d.ts +10 -0
  130. package/dist/types/modules/product/utils/index.d.ts +2 -0
  131. package/dist/types/modules/product/utils/retailer-hours.d.ts +9 -0
  132. package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +7 -0
  133. package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +2 -0
  134. package/dist/types/modules/theme-provider/index.d.ts +2 -0
  135. package/dist/types/modules/theme-provider/services/css-variable-processor.service.d.ts +20 -0
  136. package/dist/types/modules/theme-provider/services/font-manager.service.d.ts +9 -0
  137. package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +13 -0
  138. package/dist/types/modules/theme-provider/styles/address/address.style.d.ts +1 -0
  139. package/dist/types/modules/theme-provider/styles/address/index.d.ts +1 -0
  140. package/dist/types/modules/theme-provider/styles/cart/cart.style.d.ts +1 -0
  141. package/dist/types/modules/theme-provider/styles/cart/index.d.ts +1 -0
  142. package/dist/types/modules/theme-provider/styles/checkout/checkout.style.d.ts +1 -0
  143. package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +1 -0
  144. package/dist/types/modules/theme-provider/styles/global.style.d.ts +1 -0
  145. package/dist/types/modules/theme-provider/styles/product/image-carousel.style.d.ts +1 -0
  146. package/dist/types/modules/theme-provider/styles/product/index.d.ts +3 -0
  147. package/dist/types/modules/theme-provider/styles/product/product.style.d.ts +1 -0
  148. package/dist/types/modules/theme-provider/styles/product/retailers.style.d.ts +1 -0
  149. package/dist/types/modules/theme-provider/styles/ui/drawer.style.d.ts +1 -0
  150. package/dist/types/modules/theme-provider/styles/ui/index.d.ts +3 -0
  151. package/dist/types/modules/theme-provider/styles/ui/loading.style.d.ts +1 -0
  152. package/dist/types/modules/theme-provider/styles/ui/promo-code-ticker.style.d.ts +1 -0
  153. package/dist/types/modules/theme-provider/theme-provider.service.d.ts +22 -0
  154. package/dist/types/modules/ui-components/alert/alert.component.d.ts +24 -0
  155. package/dist/types/modules/ui-components/alert/index.d.ts +1 -0
  156. package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +11 -0
  157. package/dist/types/modules/ui-components/buttons/index.d.ts +1 -0
  158. package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +23 -0
  159. package/dist/types/modules/ui-components/drawer/index.d.ts +1 -0
  160. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +24 -0
  161. package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +19 -0
  162. package/dist/types/modules/ui-components/engraving/index.d.ts +2 -0
  163. package/dist/types/modules/ui-components/error-view/error-view.d.ts +9 -0
  164. package/dist/types/modules/ui-components/error-view/index.d.ts +1 -0
  165. package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +51 -0
  166. package/dist/types/modules/ui-components/input/index.d.ts +2 -0
  167. package/dist/types/modules/ui-components/input/input.component.d.ts +46 -0
  168. package/dist/types/modules/ui-components/lce-element/index.d.ts +1 -0
  169. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +11 -0
  170. package/dist/types/modules/ui-components/loading/index.d.ts +1 -0
  171. package/dist/types/modules/ui-components/loading/product-loading.component.d.ts +6 -0
  172. package/dist/types/modules/ui-components/powered-by/index.d.ts +1 -0
  173. package/dist/types/modules/ui-components/powered-by/powered-by.component.d.ts +13 -0
  174. package/dist/types/modules/ui-components/promo-code-ticker/index.d.ts +1 -0
  175. package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +17 -0
  176. package/dist/types/modules/ui-components/purchase-min-alert/helpers.d.ts +8 -0
  177. package/dist/types/modules/ui-components/purchase-min-alert/index.d.ts +2 -0
  178. package/dist/types/modules/ui-components/purchase-min-alert/purchase-min-alert.component.d.ts +16 -0
  179. package/dist/types/modules/ui-components/ui.commands.d.ts +7 -0
  180. package/dist/types/static/icon/arrow-right.icon.d.ts +2 -0
  181. package/dist/types/static/icon/bag.icon.d.ts +2 -0
  182. package/dist/types/static/icon/checkbox.icon.d.ts +2 -0
  183. package/dist/types/static/icon/chevron-down.icon.d.ts +2 -0
  184. package/dist/types/static/icon/chevron-left.icon.d.ts +2 -0
  185. package/dist/types/static/icon/close.icon.d.ts +2 -0
  186. package/dist/types/static/icon/completed.icon.d.ts +2 -0
  187. package/dist/types/static/icon/error-info.icon.d.ts +2 -0
  188. package/dist/types/static/icon/icon.types.d.ts +6 -0
  189. package/dist/types/static/icon/index.d.ts +15 -0
  190. package/dist/types/static/icon/info.icon.d.ts +2 -0
  191. package/dist/types/static/icon/loading-spinner.icon.d.ts +2 -0
  192. package/dist/types/static/icon/search.icon.d.ts +2 -0
  193. package/dist/types/static/icon/success.icon.d.ts +2 -0
  194. package/dist/types/static/icon/trash.icon.d.ts +2 -0
  195. package/dist/types/static/icon/warning.icon.d.ts +2 -0
  196. package/dist/types/utils/dom-polyfills.d.ts +10 -0
  197. package/dist/types/utils/format.d.ts +23 -0
  198. package/dist/types/utils/helper.d.ts +27 -0
  199. package/dist/types/utils/html-sanitizer.d.ts +2 -0
  200. package/package.json +110 -0
  201. package/umd/elements.js +1 -0
@@ -0,0 +1,12 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutSummarySectionComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ get hostClasses(): string[];
5
+ constructor();
6
+ onStoreWatch(changes: IOnStoreChanged[]): void;
7
+ private updateZeroAmountElement;
8
+ protected afterRender(): void;
9
+ private marketingOptInsContainer;
10
+ private hasOnDemandOrder;
11
+ protected template(): HTMLElement[];
12
+ }
@@ -0,0 +1,4 @@
1
+ import type { billingFormFields, customerFormFields, giftFormFields } from '@/modules/checkout/constant';
2
+ export type BillingFieldName = (typeof billingFormFields)[keyof typeof billingFormFields];
3
+ export type CustomerFieldName = (typeof customerFormFields)[keyof typeof customerFormFields];
4
+ export type GiftFieldName = (typeof giftFormFields)[keyof typeof giftFormFields];
@@ -0,0 +1,20 @@
1
+ export * from './checkout-header.component';
2
+ export * from './checkout-information-section.component';
3
+ export * from './checkout-presale-countdown.component';
4
+ export * from './checkout-summary-section.component';
5
+ export * from './information/checkout-billing-form.component';
6
+ export * from './information/checkout-buyer-information-form.component';
7
+ export * from './information/checkout-delivery-information-form.component';
8
+ export * from './information/checkout-payment-form.component';
9
+ export * from './information/checkout-stripe-form.component';
10
+ export * from './summary/checkout-amounts.component';
11
+ export * from './summary/checkout-completed.component';
12
+ export * from './summary/checkout-gift-cards.component';
13
+ export * from './summary/checkout-item.component';
14
+ export * from './summary/checkout-item-quantity.component';
15
+ export * from './summary/checkout-items.component';
16
+ export * from './summary/checkout-place-order-button.component';
17
+ export * from './summary/checkout-presale-expired.component';
18
+ export * from './summary/checkout-promo-code.component';
19
+ export * from './summary/checkout-tips.component';
20
+ export * from './summary/promo-pc-gc.component';
@@ -0,0 +1,18 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutBillingFormComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ get hostClasses(): string[];
5
+ constructor();
6
+ private handleFirstNameChange;
7
+ private handleLastNameChange;
8
+ private handleEmailChange;
9
+ private handlePhoneChange;
10
+ private handleCompanyChange;
11
+ private handleAddressOneChange;
12
+ private handleAddressTwoChange;
13
+ private handleCityChange;
14
+ private handleStateChange;
15
+ private handleZipCodeChange;
16
+ private billingSameAsShippingToggle;
17
+ protected template(): HTMLElement[];
18
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutBuyerInformationComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ get hostClasses(): string[];
5
+ private handleFirstNameChange;
6
+ private handleLastNameChange;
7
+ private handleEmailChange;
8
+ private handlePhoneChange;
9
+ private handleCompanyChange;
10
+ private handleDobChange;
11
+ protected template(): HTMLElement[];
12
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutDeliveryInformationComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ constructor();
5
+ get hostClasses(): string[];
6
+ private hasOnDemandFulfillments;
7
+ private handleDeliveryInstructionsChange;
8
+ private handleFirstNameChange;
9
+ private handleLastNameChange;
10
+ private handleEmailChange;
11
+ private handlePhoneChange;
12
+ private handleAddressTwoChange;
13
+ private handleCompanyChange;
14
+ private handleBirthdateChange;
15
+ private handleGiftMessageChange;
16
+ protected template(): HTMLElement[];
17
+ }
@@ -0,0 +1,21 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export interface ICheckoutSendToFormComponentParams {
4
+ isIndependentComponent: boolean;
5
+ }
6
+ export declare class CheckoutPaymentFormComponent extends BaseComponent<ICheckoutSendToFormComponentParams, ICheckoutComponent> {
7
+ private stripeFormElement;
8
+ private rootComponent;
9
+ private isCreatingStripeForm;
10
+ get hostClasses(): string[];
11
+ constructor();
12
+ private findRootComponent;
13
+ private removeExistingStripeForm;
14
+ private doStripeConfig;
15
+ private createAndMountStripeForm;
16
+ afterRender(): Promise<void>;
17
+ private setupStripeFormEventListeners;
18
+ onStoreChanged(changes: IOnStoreChanged[]): boolean;
19
+ disconnected(): void;
20
+ protected template(): HTMLElement[];
21
+ }
@@ -0,0 +1,52 @@
1
+ declare global {
2
+ interface Window {
3
+ Stripe: any;
4
+ }
5
+ }
6
+ export interface IStripeConfig {
7
+ publishableKey: string;
8
+ clientSecret: string;
9
+ appearance: {
10
+ theme: 'stripe' | 'night' | 'flat';
11
+ variables: {
12
+ fontFamily: string;
13
+ borderRadius: string;
14
+ };
15
+ rules: Record<string, Record<string, string>>;
16
+ };
17
+ elementOptions?: Record<string, any>;
18
+ }
19
+ export interface IStripeFormStatus {
20
+ isComplete: boolean;
21
+ hasError: boolean;
22
+ isProcessing: boolean;
23
+ errorMessage: string | null;
24
+ }
25
+ export declare class CheckoutStripeFormComponent extends HTMLElement {
26
+ private _initialized;
27
+ private _stripe;
28
+ private _stripeElements;
29
+ private _paymentElement;
30
+ private _isProcessing;
31
+ private _isFormComplete;
32
+ private _hasUsedCurrentSession;
33
+ private _stripeConfig;
34
+ initialize({ data }: {
35
+ data: {
36
+ stripeConfig: IStripeConfig;
37
+ };
38
+ }): Promise<void>;
39
+ private initializeStripe;
40
+ private setupEventListeners;
41
+ private handleSubmitEvent;
42
+ private handleRefreshSession;
43
+ private handleSubmit;
44
+ private requestSessionRefresh;
45
+ private refreshPaymentSession;
46
+ private updateStripeFormStatus;
47
+ private createConfirmationTokenId;
48
+ disconnected(): Promise<void>;
49
+ disconnectedCallback(): void;
50
+ private cleanupForm;
51
+ private loadStripeJS;
52
+ }
@@ -0,0 +1,7 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutAmountsComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ get hostClasses(): string[];
5
+ constructor();
6
+ protected template(): HTMLElement[];
7
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export interface ICheckoutCompletedComponentParams {
4
+ orderNumber: string;
5
+ orderTotal: number;
6
+ cardLast4: string;
7
+ customerEmail: string;
8
+ }
9
+ export declare class CheckoutCompletedComponent extends BaseComponent<ICheckoutCompletedComponentParams, ICheckoutComponent> {
10
+ get hostClasses(): string[];
11
+ protected template(): HTMLElement[];
12
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ export declare class CheckoutGiftCardsComponent extends BaseComponent<null, null> {
3
+ private isApplying;
4
+ private giftCardInput;
5
+ private applyButton;
6
+ get hostClasses(): string[];
7
+ constructor();
8
+ onStoreWatch(changes: IOnStoreChanged[]): void;
9
+ private updateApplyButtonState;
10
+ private createGiftCardInput;
11
+ private createApplyButton;
12
+ protected template(): HTMLElement[];
13
+ disconnected(): void;
14
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ export interface ICheckoutItemQuantityComponentParams {
3
+ itemId: string;
4
+ }
5
+ export declare class CheckoutItemQuantityComponent extends BaseComponent<ICheckoutItemQuantityComponentParams, null> {
6
+ private decreaseButton;
7
+ private increaseButton;
8
+ private quantitySpan;
9
+ get hostClasses(): string[];
10
+ constructor();
11
+ onStoreWatch(changes: IOnStoreChanged[]): void;
12
+ private getCheckoutItemStore;
13
+ private getAvailableQuantity;
14
+ private calculateQuantityLimits;
15
+ private updateButtonStates;
16
+ private handleQuantityChange;
17
+ private createQuantityContainer;
18
+ protected template(): HTMLElement[];
19
+ }
@@ -0,0 +1,21 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ export interface ICheckoutItemComponentParams {
3
+ itemId: string;
4
+ }
5
+ export declare class CheckoutItemComponent extends BaseComponent<ICheckoutItemComponentParams, null> {
6
+ private trashButton;
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ onStoreWatch(changes: IOnStoreChanged[]): void;
10
+ private setupMinimumPurchaseAlert;
11
+ private updateTrashButtonState;
12
+ private createLoadingOverlay;
13
+ private hasLoadingOverlay;
14
+ private showLoadingOverlay;
15
+ private hideLoadingOverlay;
16
+ private isItemUpdating;
17
+ private checkAndUpdateLoadingState;
18
+ protected afterRender(): void;
19
+ protected template(): HTMLElement | HTMLElement[];
20
+ protected disconnected(): void;
21
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutItemsComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ get hostClasses(): string[];
5
+ constructor();
6
+ private createItemElement;
7
+ private getItemsListContainer;
8
+ private getTogglerLabel;
9
+ private getCurrentItemsMap;
10
+ private syncItemsWithStore;
11
+ private updateItemCount;
12
+ onStoreChanged(changes: IOnStoreChanged[]): boolean | undefined;
13
+ private setupToggler;
14
+ protected afterRender(): void;
15
+ protected template(): HTMLElement[];
16
+ }
@@ -0,0 +1,23 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutPlaceOrderButtonComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ private placeOrderButton;
5
+ private errorContainer;
6
+ private errorTimeoutId;
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ afterRender(): void;
10
+ disconnected(): void;
11
+ onStoreChanged(changes: IOnStoreChanged[]): boolean;
12
+ private updateButtonState;
13
+ private determineErrorMessage;
14
+ private clearErrorTimeout;
15
+ private updateErrorDisplay;
16
+ private determineButtonState;
17
+ private applyButtonState;
18
+ private handlePlaceOrderClick;
19
+ private focusFirstInvalidField;
20
+ private showPaymentError;
21
+ private handleCheckoutReadyForSubmit;
22
+ protected template(): HTMLElement[];
23
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutPresaleExpiredComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ private autoCloseInterval;
5
+ private autoCloseSeconds;
6
+ private autoCloseElement;
7
+ get hostClasses(): string[];
8
+ get hostAttributes(): Record<string, string>;
9
+ protected afterRender(): void;
10
+ protected disconnected(): void;
11
+ private handleExit;
12
+ private startAutoCloseCountdown;
13
+ private stopAutoCloseCountdown;
14
+ private updateAutoCloseDisplay;
15
+ protected template(): HTMLElement[];
16
+ }
@@ -0,0 +1,17 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ export declare class CheckoutPromoCodeComponent extends BaseComponent<null, null> {
3
+ private isApplying;
4
+ private promoInput;
5
+ private applyButton;
6
+ private promoCodeText;
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ onStoreWatch(changes: IOnStoreChanged[]): void;
10
+ private updateApplyButtonState;
11
+ private createPromoInput;
12
+ private createApplyButton;
13
+ private createAppliedContainer;
14
+ private createInputContainer;
15
+ protected template(): HTMLElement | HTMLElement[];
16
+ disconnected(): void;
17
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutTipsComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ private isInitialized;
5
+ get hostClasses(): string[];
6
+ constructor();
7
+ protected afterRender(): void;
8
+ private getTipSelection;
9
+ private getOnDemandFulfillmentTipInfo;
10
+ private getFulfillmentTipInfoArray;
11
+ private handlePercentageSelect;
12
+ private handleFulfillmentTipInput;
13
+ private removeTipFromFulfillment;
14
+ private createTipSelectionButtons;
15
+ private setupToggler;
16
+ private createTipDistribution;
17
+ private initializeDefaultTip;
18
+ protected template(): HTMLElement[];
19
+ }
@@ -0,0 +1,16 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { ICheckoutComponent } from '@/interfaces/configs';
3
+ export declare class CheckoutPcGcComponent extends BaseComponent<null, ICheckoutComponent> {
4
+ private appliedGiftCardsContainer;
5
+ get hostClasses(): string[];
6
+ constructor();
7
+ onStoreWatch(changes: IOnStoreChanged[]): void;
8
+ private updateAppliedGiftCards;
9
+ private createAppliedGiftCardElement;
10
+ private pcInputContainer;
11
+ private gcInputContainer;
12
+ private inputContainer;
13
+ private createErrorElement;
14
+ protected template(): HTMLElement[];
15
+ disconnected(): void;
16
+ }
@@ -0,0 +1,32 @@
1
+ export declare const STRIPE_SLOT_NAME = "lce-checkout-stripe-slot";
2
+ export declare const customerFormFields: {
3
+ readonly firstName: "firstName";
4
+ readonly lastName: "lastName";
5
+ readonly email: "email";
6
+ readonly phone: "phone";
7
+ readonly birthDate: "birthDate";
8
+ readonly addressTwo: "addressTwo";
9
+ readonly company: "company";
10
+ };
11
+ export declare const giftFormFields: {
12
+ readonly firstName: "firstName";
13
+ readonly lastName: "lastName";
14
+ readonly email: "email";
15
+ readonly phone: "phone";
16
+ readonly birthDate: "birthDate";
17
+ readonly addressTwo: "addressTwo";
18
+ readonly company: "company";
19
+ readonly message: "message";
20
+ };
21
+ export declare const billingFormFields: {
22
+ readonly firstName: "firstName";
23
+ readonly lastName: "lastName";
24
+ readonly email: "email";
25
+ readonly phone: "phone";
26
+ readonly company: "company";
27
+ readonly addressOne: "addressOne";
28
+ readonly addressTwo: "addressTwo";
29
+ readonly city: "city";
30
+ readonly state: "state";
31
+ readonly zipCode: "zipCode";
32
+ };
@@ -0,0 +1 @@
1
+ export * from './checkout.component';
@@ -0,0 +1,20 @@
1
+ import type { IProductFulfillmentStore } from '@/core/store';
2
+ import { type FulfillmentType } from '@/enums';
3
+ import type { IProductSizeAttributes } from '@/interfaces/cloud';
4
+ import { type RetailerStatus } from '@/modules/product/utils';
5
+ export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, fulfillmentStatus, selectedSizeAttributes, }: {
6
+ fulfillment: IProductFulfillmentStore;
7
+ selectedFulfillmentType: FulfillmentType;
8
+ isSelected: boolean;
9
+ fulfillmentStatus: RetailerStatus;
10
+ selectedSizeAttributes: IProductSizeAttributes | null;
11
+ }): HTMLElement;
12
+ export declare function renderFulfillmentTabsContainer({ shippingFulfillments, onDemandFulfillments, shippingSelected, onDemandSelected, onTabClick, enableShippingFulfillment, enableOnDemandFulfillment, }: {
13
+ shippingFulfillments: IProductFulfillmentStore[];
14
+ onDemandFulfillments: IProductFulfillmentStore[];
15
+ shippingSelected: boolean;
16
+ onDemandSelected: boolean;
17
+ onTabClick: (event: Event) => void;
18
+ enableShippingFulfillment: boolean;
19
+ enableOnDemandFulfillment: boolean;
20
+ }): HTMLElement;
@@ -0,0 +1,13 @@
1
+ export * from '../../ui-components/engraving/engraving-view.component';
2
+ export * from './components';
3
+ export * from './product-add-to-cart-section.component';
4
+ export * from './product-description.component';
5
+ export * from './product-drawer.component';
6
+ export * from './product-image-carousel.component';
7
+ export * from './product-interactions.component';
8
+ export * from './product-options.component';
9
+ export * from './product-price.component';
10
+ export * from './product-retailers.component';
11
+ export * from './product-retailers-carousel.component';
12
+ export * from './product-retailers-popup.component';
13
+ export * from './product-retailers-popup-list.component';
@@ -0,0 +1,26 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IAddToCartSectionComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductAddToCartSectionComponent extends BaseComponent<IAddToCartSectionComponentParams, IProductComponent> {
7
+ private addToCartButton;
8
+ private qtyIncreaseButton;
9
+ private qtyDecreaseButton;
10
+ private quantityText;
11
+ get hostClasses(): string[];
12
+ constructor();
13
+ private getProductId;
14
+ private getAvailableQuantity;
15
+ private isFulfillmentClosed;
16
+ private isButtonLoading;
17
+ private calculateQuantityLimits;
18
+ private handleAddToCart;
19
+ private handleQuantityChange;
20
+ private calculateTotalPrice;
21
+ private createQuantityContainer;
22
+ private getSizeAttributes;
23
+ private isPresaleActive;
24
+ private createAddToCartButton;
25
+ protected template(): HTMLElement[] | string;
26
+ }
@@ -0,0 +1,9 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ export interface IProductDescriptionComponentParams {
3
+ productId: string;
4
+ }
5
+ export declare class ProductDescriptionComponent extends BaseComponent<IProductDescriptionComponentParams, null> {
6
+ get hostClasses(): string[];
7
+ private isCollapsed;
8
+ protected template(): HTMLElement[];
9
+ }
@@ -0,0 +1,19 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductDrawerComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductDrawerComponent extends BaseComponent<IProductDrawerComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ private isOpen;
9
+ private contentContainer;
10
+ private currentContentType;
11
+ constructor();
12
+ private getProductId;
13
+ onStoreChanged(changes: IOnStoreChanged[]): boolean;
14
+ private openWithContent;
15
+ private open;
16
+ private close;
17
+ private updateDrawerState;
18
+ protected template(): HTMLElement;
19
+ }
@@ -0,0 +1,36 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IImageCarouselParams {
4
+ mainImage: string;
5
+ images: string[];
6
+ productId: string;
7
+ }
8
+ export declare class ProductImageCarouselComponent extends BaseComponent<IImageCarouselParams, IProductComponent> {
9
+ get hostClasses(): string[];
10
+ private mainImageElement;
11
+ private galleryViewport;
12
+ private galleryContainer;
13
+ private thumbnails;
14
+ private currentImageIndex;
15
+ private isDragging;
16
+ private hasMoved;
17
+ private startX;
18
+ private currentTranslateX;
19
+ private translateX;
20
+ constructor();
21
+ afterRender(): void;
22
+ onStoreWatch(changes: IOnStoreChanged[]): void;
23
+ private cacheElements;
24
+ private setupEventListeners;
25
+ private selectImage;
26
+ private scrollToIndex;
27
+ private setupMainImageSwipe;
28
+ private setupGalleryDrag;
29
+ private handleDragStart;
30
+ private handleDragMove;
31
+ private handleDragEnd;
32
+ private updateTransform;
33
+ private nextImage;
34
+ private previousImage;
35
+ protected template(): HTMLElement[];
36
+ }
@@ -0,0 +1,14 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductInteractionsComponent {
4
+ productId: string;
5
+ }
6
+ export declare class ProductInteractionsComponent extends BaseComponent<IProductInteractionsComponent, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ private getProductId;
9
+ afterRender(): void;
10
+ private setupSizeButtonsEventListener;
11
+ private renderProductSizes;
12
+ private hasIndependentAddressComponent;
13
+ protected template(): HTMLElement[];
14
+ }
@@ -0,0 +1,12 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductOptionsComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductOptionsComponent extends BaseComponent<IProductOptionsComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ private getProductId;
10
+ onStoreWatch(changes: IOnStoreChanged[]): void;
11
+ protected template(): HTMLElement;
12
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductPriceComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductPriceComponent extends BaseComponent<IProductPriceComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ private getProductId;
10
+ protected template(): string;
11
+ }
@@ -0,0 +1,32 @@
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductRetailersCarouselComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductRetailersCarouselComponent extends BaseComponent<IProductRetailersCarouselComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ private listViewport;
9
+ private listContainer;
10
+ private retailerCards;
11
+ private isDragging;
12
+ private hasMoved;
13
+ private startX;
14
+ private currentTranslateX;
15
+ private translateX;
16
+ constructor();
17
+ afterRender(): void;
18
+ private cacheElements;
19
+ private getProductId;
20
+ onStoreWatch(changes: IOnStoreChanged[]): void;
21
+ private updateSelectedCard;
22
+ private scrollToIndex;
23
+ private setupDrag;
24
+ private handleDragStart;
25
+ private handleDragMove;
26
+ private handleDragEnd;
27
+ private updateTransform;
28
+ private onFulfillmentTabClick;
29
+ private onRetailerCardClick;
30
+ private generateRetailerCard;
31
+ protected template(): HTMLElement[];
32
+ }
@@ -0,0 +1,13 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductRetailersPopupListComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductRetailersPopupListComponent extends BaseComponent<IProductRetailersPopupListComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ private getProductId;
10
+ private onFulfillmentTabClick;
11
+ private onRetailerCardClick;
12
+ protected template(): HTMLElement[];
13
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductRetailersPopupComponentParams {
4
+ productId: string;
5
+ }
6
+ export declare class ProductRetailersPopupComponent extends BaseComponent<IProductRetailersPopupComponentParams, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ private getProductId;
10
+ protected template(): HTMLElement[];
11
+ }
@@ -0,0 +1,11 @@
1
+ import { BaseComponent } from '@/core/base-component.service';
2
+ import type { IProductComponent } from '@/interfaces/configs';
3
+ export interface IProductRetailersComponent {
4
+ productId: string;
5
+ }
6
+ export declare class ProductRetailersComponent extends BaseComponent<IProductRetailersComponent, IProductComponent> {
7
+ get hostClasses(): string[];
8
+ constructor();
9
+ private getProductId;
10
+ protected template(): HTMLElement | HTMLElement[];
11
+ }