@liquidcommerce/elements-sdk 2.6.0-beta.11 → 2.6.0-beta.111

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 (270) hide show
  1. package/README.md +99 -2518
  2. package/dist/index.checkout.esm.js +18212 -0
  3. package/dist/index.esm.js +26222 -20637
  4. package/dist/ssr-stub.checkout.esm.js +17 -0
  5. package/dist/ssr-stub.esm.js +269 -0
  6. package/dist/types/auto-initialize/checkout.d.ts +2 -0
  7. package/dist/types/auto-initialize/shared-utils.d.ts +50 -0
  8. package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +15 -2
  9. package/dist/types/clients/builder.d.ts +3 -0
  10. package/dist/types/clients/checkout.d.ts +6 -0
  11. package/dist/types/{elements-client-helper.d.ts → clients/helpers.d.ts} +2 -1
  12. package/dist/types/clients/main.d.ts +3 -0
  13. package/dist/types/constants/core.constant.d.ts +13 -18
  14. package/dist/types/core/a11y/announcer.service.d.ts +16 -0
  15. package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
  16. package/dist/types/core/a11y/focusable.d.ts +5 -0
  17. package/dist/types/core/a11y/glyph-button.d.ts +8 -0
  18. package/dist/types/core/a11y/index.d.ts +6 -0
  19. package/dist/types/core/a11y/required.d.ts +1 -0
  20. package/dist/types/core/a11y/single-select.d.ts +20 -0
  21. package/dist/types/core/api/api-client.service.d.ts +19 -18
  22. package/dist/types/core/api/api-result.d.ts +19 -0
  23. package/dist/types/core/api/auth-client.service.d.ts +37 -13
  24. package/dist/types/core/api/http-client.service.d.ts +0 -8
  25. package/dist/types/core/base-component.service.d.ts +4 -1
  26. package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
  27. package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
  28. package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
  29. package/dist/types/core/client/actions/client-checkout-action.service.d.ts +69 -0
  30. package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
  31. package/dist/types/core/client/client-action.service.d.ts +6 -74
  32. package/dist/types/core/client/client-config.service.d.ts +8 -5
  33. package/dist/types/core/debug-panel/debug-panel.styles.d.ts +1 -1
  34. package/dist/types/core/google-tag-manager.service.d.ts +3 -1
  35. package/dist/types/core/logger/logger.service.d.ts +1 -1
  36. package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -0
  37. package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +1 -1
  38. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +36 -51
  39. package/dist/types/core/pubsub/interfaces/core.interface.d.ts +11 -6
  40. package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
  41. package/dist/types/core/singleton-manager.service.d.ts +12 -8
  42. package/dist/types/core/store/interfaces/cart.interface.d.ts +2 -3
  43. package/dist/types/core/store/interfaces/checkout.interface.d.ts +19 -108
  44. package/dist/types/core/store/interfaces/core.interface.d.ts +12 -2
  45. package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
  46. package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
  47. package/dist/types/core/store/interfaces/product.interface.d.ts +1 -0
  48. package/dist/types/core/store/store.constant.d.ts +5 -0
  49. package/dist/types/core/store/store.service.d.ts +1 -0
  50. package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
  51. package/dist/types/enums/core.enum.d.ts +39 -2
  52. package/dist/types/enums/index.d.ts +0 -1
  53. package/dist/types/index.checkout.d.ts +8 -0
  54. package/dist/types/index.checkout.umd.d.ts +4 -0
  55. package/dist/types/index.d.ts +8 -3
  56. package/dist/types/interfaces/api/cart.interface.d.ts +12 -7
  57. package/dist/types/interfaces/api/checkout.interface.d.ts +239 -0
  58. package/dist/types/interfaces/api/index.d.ts +5 -0
  59. package/dist/types/interfaces/api/product-list.interface.d.ts +15 -6
  60. package/dist/types/interfaces/api/product.interface.d.ts +10 -4
  61. package/dist/types/interfaces/client.interface.d.ts +72 -0
  62. package/dist/types/interfaces/component.interface.d.ts +7 -0
  63. package/dist/types/interfaces/config.interface.d.ts +40 -0
  64. package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
  65. package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
  66. package/dist/types/interfaces/configs/checkout.interface.d.ts +2 -1
  67. package/dist/types/interfaces/configs/global.interface.d.ts +9 -3
  68. package/dist/types/interfaces/configs/index.d.ts +1 -0
  69. package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
  70. package/dist/types/interfaces/configs/product.interface.d.ts +5 -1
  71. package/dist/types/interfaces/injection.interface.d.ts +50 -0
  72. package/dist/types/modules/address/address-display.component.d.ts +3 -1
  73. package/dist/types/modules/address/address-input.component.d.ts +10 -1
  74. package/dist/types/modules/address/address.command.d.ts +2 -1
  75. package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
  76. package/dist/types/modules/cart/cart.commands.d.ts +4 -4
  77. package/dist/types/modules/cart/components/cart-body.component.d.ts +1 -0
  78. package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
  79. package/dist/types/modules/cart/components/cart-item.component.d.ts +6 -0
  80. package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
  81. package/dist/types/modules/checkout/checkout.commands.d.ts +34 -11
  82. package/dist/types/modules/checkout/checkout.component.d.ts +6 -1
  83. package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +5 -2
  84. package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +5 -0
  85. package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
  86. package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
  87. package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
  88. package/dist/types/modules/checkout/components/checkout-order-summary.component.d.ts +2 -0
  89. package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +2 -1
  90. package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +2 -0
  91. package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +15 -1
  92. package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
  93. package/dist/types/modules/checkout/components/checkout-send-as-gift.component.d.ts +3 -0
  94. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +4 -2
  95. package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +4 -2
  96. package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
  97. package/dist/types/modules/checkout/components/required-fields-legend.d.ts +1 -0
  98. package/dist/types/modules/checkout/constant.d.ts +3 -0
  99. package/dist/types/modules/checkout/payment-session-error.d.ts +4 -0
  100. package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
  101. package/dist/types/modules/product/components/components.d.ts +26 -2
  102. package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +7 -1
  103. package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
  104. package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
  105. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
  106. package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
  107. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +6 -0
  108. package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +12 -2
  109. package/dist/types/modules/product/product.commands.d.ts +5 -5
  110. package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
  111. package/dist/types/modules/product-list/components/card-components/index.d.ts +5 -0
  112. package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
  113. package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
  114. package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
  115. package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
  116. package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
  117. package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
  118. package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
  119. package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-checkbox-filter.components.d.ts → filter-components/product-list-checkbox-filter.d.ts} +1 -0
  120. package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
  121. package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
  122. package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
  123. package/dist/types/modules/product-list/components/{product-list-filters-subcomponents/product-list-price-filter.components.d.ts → filter-components/product-list-price-filter.d.ts} +2 -1
  124. package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
  125. package/dist/types/modules/product-list/components/index.d.ts +6 -2
  126. package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
  127. package/dist/types/modules/product-list/components/product-list-card.component.d.ts +37 -31
  128. package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
  129. package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +58 -36
  130. package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
  131. package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +53 -0
  132. package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
  133. package/dist/types/modules/product-list/product-list-filter.registry.d.ts +42 -0
  134. package/dist/types/modules/product-list/product-list-filter.utils.d.ts +7 -0
  135. package/dist/types/modules/product-list/product-list-order.utils.d.ts +3 -0
  136. package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
  137. package/dist/types/modules/product-list/product-list.commands.d.ts +22 -7
  138. package/dist/types/modules/product-list/product-list.component.d.ts +23 -47
  139. package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
  140. package/dist/types/modules/product-list/product-list.interface.d.ts +17 -28
  141. package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
  142. package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
  143. package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
  144. package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
  145. package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
  146. package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
  147. package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
  148. package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
  149. package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
  150. package/dist/types/modules/ui-components/alert/alert.component.d.ts +1 -1
  151. package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
  152. package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
  153. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +8 -1
  154. package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
  155. package/dist/types/modules/ui-components/input/index.d.ts +0 -1
  156. package/dist/types/modules/ui-components/input/input.component.d.ts +14 -1
  157. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  158. package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
  159. package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
  160. package/dist/types/ssr/stub.checkout.d.ts +6 -0
  161. package/dist/types/ssr/stub.d.ts +10 -0
  162. package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
  163. package/dist/types/static/icon/bag.icon.d.ts +1 -1
  164. package/dist/types/static/icon/check.icon.d.ts +2 -0
  165. package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
  166. package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
  167. package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
  168. package/dist/types/static/icon/chevron-up.icon.d.ts +1 -1
  169. package/dist/types/static/icon/close.icon.d.ts +1 -1
  170. package/dist/types/static/icon/error-info.icon.d.ts +1 -1
  171. package/dist/types/static/icon/filter.icon.d.ts +1 -1
  172. package/dist/types/static/icon/icon.a11y.d.ts +1 -0
  173. package/dist/types/static/icon/icon.types.d.ts +1 -0
  174. package/dist/types/static/icon/index.d.ts +2 -0
  175. package/dist/types/static/icon/info.icon.d.ts +1 -1
  176. package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
  177. package/dist/types/static/icon/search.icon.d.ts +1 -1
  178. package/dist/types/static/icon/success.icon.d.ts +1 -1
  179. package/dist/types/static/icon/trash.icon.d.ts +1 -1
  180. package/dist/types/static/icon/warning.icon.d.ts +1 -1
  181. package/dist/types/utils/dom-compat.d.ts +2 -0
  182. package/dist/types/utils/format.d.ts +5 -14
  183. package/dist/types/utils/image-bg-removal.d.ts +3 -0
  184. package/dist/types/utils/product-selection.d.ts +16 -0
  185. package/dist/types/utils/product.d.ts +18 -0
  186. package/dist/types/utils/timezone.d.ts +6 -0
  187. package/docs/v1/README.md +213 -0
  188. package/docs/v1/api/actions/address-actions.md +286 -0
  189. package/docs/v1/api/actions/cart-actions.md +364 -0
  190. package/docs/v1/api/actions/checkout-actions.md +527 -0
  191. package/docs/v1/api/actions/product-actions.md +204 -0
  192. package/docs/v1/api/client.md +596 -0
  193. package/docs/v1/api/configuration.md +557 -0
  194. package/docs/v1/api/injection-methods.md +331 -0
  195. package/docs/v1/api/typescript-types.md +424 -0
  196. package/docs/v1/api/ui-helpers.md +200 -0
  197. package/docs/v1/examples/advanced-patterns.md +199 -0
  198. package/docs/v1/examples/checkout-flow.md +90 -0
  199. package/docs/v1/examples/custom-theming.md +63 -0
  200. package/docs/v1/examples/multi-product-page.md +90 -0
  201. package/docs/v1/examples/simple-product-page.md +89 -0
  202. package/docs/v1/getting-started/concepts.md +521 -0
  203. package/docs/v1/getting-started/installation.md +349 -0
  204. package/docs/v1/getting-started/quick-start.md +410 -0
  205. package/docs/v1/guides/accessibility.md +219 -0
  206. package/docs/v1/guides/address-component.md +435 -0
  207. package/docs/v1/guides/best-practices.md +365 -0
  208. package/docs/v1/guides/cart-component.md +757 -0
  209. package/docs/v1/guides/checkout-component.md +670 -0
  210. package/docs/v1/guides/events.md +939 -0
  211. package/docs/v1/guides/product-component.md +736 -0
  212. package/docs/v1/guides/product-list-component.md +730 -0
  213. package/docs/v1/guides/theming.md +229 -0
  214. package/docs/v1/integration/angular.md +39 -0
  215. package/docs/v1/integration/laravel.md +41 -0
  216. package/docs/v1/integration/nextjs.md +69 -0
  217. package/docs/v1/integration/proxy-setup.md +106 -0
  218. package/docs/v1/integration/react.md +64 -0
  219. package/docs/v1/integration/vanilla-js.md +84 -0
  220. package/docs/v1/integration/vue.md +58 -0
  221. package/docs/v1/reference/analytics.md +107 -0
  222. package/docs/v1/reference/browser-support.md +47 -0
  223. package/docs/v1/reference/error-handling.md +83 -0
  224. package/docs/v1/reference/performance.md +52 -0
  225. package/docs/v1/reference/telemetry.md +85 -0
  226. package/docs/v1/reference/troubleshooting.md +135 -0
  227. package/package.json +75 -45
  228. package/dist/types/elements-builder-client.d.ts +0 -2
  229. package/dist/types/elements-client.d.ts +0 -2
  230. package/dist/types/enums/cloud.enum.d.ts +0 -97
  231. package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -218
  232. package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
  233. package/dist/types/interfaces/cloud/index.d.ts +0 -3
  234. package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
  235. package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
  236. package/dist/types/interfaces/core.interface.d.ts +0 -111
  237. package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
  238. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/index.d.ts +0 -6
  239. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-apply-filter-button.component.d.ts +0 -1
  240. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-delivery-options-filter.components.d.ts +0 -16
  241. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-search.component.d.ts +0 -16
  242. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-toggle-filters.components.d.ts +0 -18
  243. package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
  244. package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
  245. package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
  246. package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
  247. package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
  248. package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
  249. package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
  250. package/dist/types/utils/helper.d.ts +0 -28
  251. package/docs/ACTIONS.md +0 -1300
  252. package/docs/BROWSER_SUPPORT.md +0 -279
  253. package/docs/CONFIGURATION.md +0 -853
  254. package/docs/DOCUMENTATION_INDEX.md +0 -311
  255. package/docs/EVENTS.md +0 -798
  256. package/docs/PROXY.md +0 -228
  257. package/docs/THEMING.md +0 -592
  258. package/docs/TROUBLESHOOTING.md +0 -793
  259. package/umd/elements.js +0 -1
  260. /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
  261. /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
  262. /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
  263. /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
  264. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
  265. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
  266. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
  267. /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
  268. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
  269. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
  270. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
@@ -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 handleDocumentClick;
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;
@@ -6,9 +6,10 @@ export declare class AddressCommands extends BaseCommand {
6
6
  constructor();
7
7
  static getInstance(): AddressCommands;
8
8
  searchAddresses(query: string): Promise<IAddressAutocompleteResult[]>;
9
- getAddressDetails(addressId: string): Promise<IAddressDetailsResult>;
9
+ getAddressDetails(addressId: string): Promise<IAddressDetailsResult | null>;
10
10
  setSelectedAddress(addressData: IAddressData): Promise<void>;
11
11
  setAddressManually(address: IAddressAddress, coordinates: IAddressCoordinates): Promise<void>;
12
12
  clearSelectedAddress(): Promise<void>;
13
13
  getDetails(): IAddressData | null;
14
+ private buildFormattedAddressString;
14
15
  }
@@ -8,17 +8,15 @@ export interface AddItemParams {
8
8
  identifier: string;
9
9
  }
10
10
  export declare class CartCommands extends BaseCommand {
11
- private readonly uiCommands;
12
- private readonly checkoutCommands;
13
- private readonly commonCommands;
14
11
  constructor();
15
12
  static getInstance(): CartCommands;
16
13
  updateItemQuantity(itemId: string, delta: number): Promise<void>;
17
14
  removeItem(itemId: string, isNotStandAlone?: boolean): Promise<void>;
18
15
  updateItemEngraving(productItemId: string, engravingLines: string[]): Promise<void>;
19
16
  addItem(params: AddItemParams): Promise<void>;
20
- addPresaleItem(params: AddItemParams): Promise<void>;
21
17
  handleGoToCheckout(): Promise<void>;
18
+ private trackBeginCheckout;
19
+ private resolveCheckoutRedirectUrl;
22
20
  applyPromoCode(promoCode: string): Promise<void>;
23
21
  removePromoCode(): Promise<void>;
24
22
  rerenderCart(): void;
@@ -31,4 +29,6 @@ export declare class CartCommands extends BaseCommand {
31
29
  private updateFulfillment;
32
30
  private addNewFulfillmentAndRetailer;
33
31
  private cleanupAfterItemRemoval;
32
+ private syncCartState;
33
+ private buildCartLoadedEventData;
34
34
  }
@@ -10,6 +10,7 @@ export declare class CartBodyComponent extends BaseComponent<null, ICartComponen
10
10
  private getRetailerElementById;
11
11
  private getLoadingElement;
12
12
  private showEmptyCartState;
13
+ private preserveDialogFocus;
13
14
  private addLoadingOverlay;
14
15
  private removeLoadingOverlay;
15
16
  private setupEmptyCartListeners;
@@ -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
  }
@@ -1,23 +1,41 @@
1
1
  import { BaseCommand } from '@/core/command/base-command.service';
2
- import type { ICheckoutBillingStore, ICheckoutCustomerStore, ICheckoutGiftRecipientStore, ICheckoutPaymentMethodStore } from '@/core/store/interfaces/checkout.interface';
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;
9
+ private lastLoadParams;
10
+ private paymentGeneration;
11
+ private confirmedPayment;
12
+ assertPaymentReady(): void;
13
+ retryLoadCheckout(): Promise<void>;
6
14
  constructor();
7
15
  static getInstance(): CheckoutCommands;
8
- loadCheckout(cartIdParam?: string): Promise<void>;
16
+ addPresaleItem(params: AddItemParams): Promise<void>;
17
+ loadCheckout(params: {
18
+ checkoutId?: string;
19
+ cartId?: string;
20
+ isForPresale?: boolean;
21
+ }): Promise<void>;
22
+ private showAlreadyCompletedCheckout;
23
+ loadCheckoutFromResponse(response: ICheckoutPrepare): void;
9
24
  toggleIsGift(active?: boolean): Promise<void>;
10
25
  toggleBillingSameAsShipping(active?: boolean): Promise<void>;
11
- toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise<void>;
26
+ toggleMarketingPreferences(fieldName: 'canEmail' | 'canSms', active?: boolean): Promise<boolean>;
12
27
  getPaymentSession(): Promise<void>;
13
- confirmPaymentSession(confirmationTokenId: string, setupIntentId: string): Promise<ICheckoutPaymentMethodStore | null>;
28
+ confirmPaymentSession(confirmationTokenId: string, setupIntentId: string): Promise<ICheckoutPaymentMethodStore>;
14
29
  applyPromoCode(code: string): Promise<void>;
15
30
  removePromoCode(): Promise<void>;
16
31
  clearPromoCodeError(): Promise<void>;
17
32
  applyGiftCard(code: string): Promise<void>;
18
33
  removeGiftCard(code: string): Promise<void>;
19
34
  clearGiftCardError(): Promise<void>;
20
- openPresaleExpiredDrawer(): void;
35
+ showPresaleExpired(reason?: PresaleExpiredReason): void;
36
+ openCheckout(): void;
37
+ getReturnUrl(): string | null;
38
+ private resolveCheckoutPageUrl;
21
39
  rerenderCheckout(): void;
22
40
  updateCheckoutItemQuantity(itemId: string, delta: number): Promise<void>;
23
41
  removeItemEngraving(productItemId: string): Promise<void>;
@@ -28,18 +46,20 @@ export declare class CheckoutCommands extends BaseCommand {
28
46
  clearCheckoutError(): Promise<void>;
29
47
  editCustomerForm(): Promise<void>;
30
48
  saveCustomerForm({ shippingAddressTwo, deliveryInstructions, customerData, }: {
31
- customerData: ICheckoutCustomerStore;
49
+ customerData: ICheckoutCustomer;
32
50
  shippingAddressTwo: string;
33
51
  deliveryInstructions: string;
34
52
  }): Promise<void>;
35
53
  editGiftRecipientForm(): Promise<void>;
36
- saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipientStore & {
54
+ saveGiftRecipientForm({ shippingAddressTwo, deliveryInstructions, ...giftRecipientData }: ICheckoutGiftRecipient & {
37
55
  shippingAddressTwo: string;
38
56
  deliveryInstructions: string;
39
57
  }): Promise<void>;
40
58
  editPaymentForm(): Promise<void>;
59
+ private resetCheckoutPreservingInjected;
60
+ private markInjectedPaymentReady;
41
61
  savePaymentForm({ billingFormData, paymentSession, }: {
42
- billingFormData?: ICheckoutBillingStore;
62
+ billingFormData?: ICheckoutBilling;
43
63
  paymentSession?: {
44
64
  confirmationTokenId: string;
45
65
  setupIntentId: string;
@@ -47,7 +67,10 @@ export declare class CheckoutCommands extends BaseCommand {
47
67
  }): Promise<void>;
48
68
  checkoutComplete(): Promise<void>;
49
69
  private updateStoreFromCheckoutResponse;
50
- private partialLoadCheckout;
70
+ private syncFromItemUpdate;
71
+ private syncCheckoutState;
72
+ private refreshCheckout;
51
73
  private dataForCheckoutPrepare;
52
- private buildCheckoutItemStore;
74
+ private normalizeForApi;
75
+ getDetails(): ICheckoutDetailsEventData;
53
76
  }
@@ -1,10 +1,15 @@
1
- import { BaseComponent } from '@/core/base-component.service';
1
+ import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
2
  import type { ICheckoutComponent } from '@/interfaces/configs';
3
3
  export interface ICheckoutComponentParams {
4
4
  checkoutId: string;
5
5
  isIndependentComponent: boolean;
6
+ hideHeader: boolean;
6
7
  }
7
8
  export declare class CheckoutComponent extends BaseComponent<ICheckoutComponentParams, ICheckoutComponent> {
8
9
  constructor();
10
+ onStoreWatch(_changes: IOnStoreChanged[]): void;
11
+ private updateInitializationState;
12
+ afterRender(): void;
9
13
  protected template(): HTMLElement[];
14
+ private createHeader;
10
15
  }
@@ -1,13 +1,16 @@
1
1
  import { BaseComponent } from '@/core/base-component.service';
2
- import type { ICheckoutBillingStore } from '@/core/store/interfaces/checkout.interface';
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: ICheckoutBillingStore) => void;
5
+ isFormValid: (isValid: boolean, data: ICheckoutBilling) => void;
6
6
  }
7
7
  export declare class CheckoutBillingComponent extends BaseComponent<ICheckoutBillingComponentParams, ICheckoutComponent> {
8
8
  private billingData;
9
9
  get hostClasses(): string[];
10
10
  constructor();
11
+ private pendingToggleFocus;
12
+ protected afterRender(): void;
13
+ private readonly onBillingSameAsShippingToggle;
11
14
  private billingSameAsShippingToggle;
12
15
  private updateSaveButtonState;
13
16
  protected template(): HTMLElement[];
@@ -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;
@@ -6,6 +6,8 @@ export declare class CheckoutOrderSummaryComponent extends BaseComponent<null, I
6
6
  onStoreWatch(changes: IOnStoreChanged[]): void;
7
7
  private updateZeroAmountElement;
8
8
  protected afterRender(): void;
9
+ private paintMarketingCheckbox;
10
+ private toggleMarketingPreference;
9
11
  private handleEmailToggle;
10
12
  private handleSmsToggle;
11
13
  private marketingOptInsContainer;
@@ -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,9 +1,13 @@
1
1
  import { BaseComponent, type IOnStoreChanged } from '@/core/base-component.service';
2
2
  export declare class CheckoutPresaleCountdownComponent extends BaseComponent<null> {
3
+ private static readonly DEFAULT_PRESALE_DURATION_SECONDS;
4
+ private static readonly ONE_MINUTE_THRESHOLD_SECONDS;
5
+ private static readonly COUNTDOWN_UPDATE_INTERVAL_MS;
3
6
  private countdownInterval;
4
7
  private expiresAt;
5
- private totalDuration;
8
+ private initialDurationSeconds;
6
9
  private rootElement;
10
+ private lastRenderedTime;
7
11
  private scrollHandler;
8
12
  private scrollContainer;
9
13
  private isCurrentlyScrolled;
@@ -11,16 +15,26 @@ export declare class CheckoutPresaleCountdownComponent extends BaseComponent<nul
11
15
  get hostClasses(): string[];
12
16
  constructor();
13
17
  onStoreChanged(changes: IOnStoreChanged[]): boolean;
18
+ private resetCountdownState;
14
19
  protected afterRender(): void;
15
20
  protected disconnected(): void;
16
21
  private setupDrawerScrollDetection;
22
+ private findScrollContainer;
23
+ private setScrolledState;
17
24
  private isScrollable;
18
25
  private cleanupScrollListener;
19
26
  private updateExpiresAt;
20
27
  private startCountdown;
21
28
  private stopCountdown;
22
29
  private updateCountdown;
30
+ private updateWarningState;
31
+ private updateTimerDisplay;
32
+ private updateProgressBar;
23
33
  private formatTime;
24
34
  private handleExpire;
25
35
  protected template(): HTMLElement;
36
+ private createTextContainer;
37
+ private createHeader;
38
+ private createSubtitle;
39
+ private createProgressBar;
26
40
  }
@@ -1,11 +1,17 @@
1
1
  import { BaseComponent } from '@/core/base-component.service';
2
2
  import type { ICheckoutComponent } from '@/interfaces/configs';
3
- export declare class CheckoutPresaleExpiredComponent extends BaseComponent<null, ICheckoutComponent> {
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;
@@ -3,5 +3,8 @@ import type { ICheckoutComponent } from '@/interfaces/configs';
3
3
  export declare class CheckoutSendAsGiftComponent extends BaseComponent<null, ICheckoutComponent> {
4
4
  get hostClasses(): string[];
5
5
  constructor();
6
+ private pendingToggleFocus;
7
+ protected afterRender(): void;
8
+ private readonly onToggle;
6
9
  protected template(): HTMLElement[];
7
10
  }
@@ -1,3 +1,4 @@
1
+ import { SafeHTMLElement } from '@/utils/dom-compat';
1
2
  declare global {
2
3
  interface Window {
3
4
  Stripe: any;
@@ -23,14 +24,16 @@ export interface IStripeFormStatus {
23
24
  hasError: boolean;
24
25
  errorMessage: string | null;
25
26
  }
26
- export declare class CheckoutStripeFormComponent extends HTMLElement {
27
+ export declare class CheckoutStripeFormComponent extends SafeHTMLElement {
27
28
  private _initialized;
29
+ private _lifecycleGeneration;
28
30
  private _stripe;
29
31
  private _stripeElements;
30
32
  private _paymentElement;
31
33
  private _isProcessing;
32
34
  private _isFormComplete;
33
35
  private _hasUsedCurrentSession;
36
+ private _pendingConfirmation;
34
37
  private _stripeConfig;
35
38
  private _sessionRefreshPromise;
36
39
  initialize({ data }: {
@@ -44,7 +47,6 @@ export declare class CheckoutStripeFormComponent extends HTMLElement {
44
47
  private handleSubmit;
45
48
  private requestSessionRefresh;
46
49
  private refreshPaymentSession;
47
- private resetForm;
48
50
  private updateStripeFormStatus;
49
51
  private createConfirmationTokenId;
50
52
  disconnected(): Promise<void>;
@@ -4,10 +4,12 @@ export declare class CheckoutTipsComponent extends BaseComponent<null, ICheckout
4
4
  private isInitialized;
5
5
  get hostClasses(): string[];
6
6
  constructor();
7
+ private pendingTipFocus;
8
+ private restoreTipFocus;
7
9
  protected afterRender(): void;
8
10
  private getTipSelection;
9
- private getOnDemandFulfillmentTipInfo;
10
- private getFulfillmentTipInfoArray;
11
+ private getOnDemandFulfillments;
12
+ private getRetailerNameForFulfillment;
11
13
  private handlePercentageSelect;
12
14
  private handleFulfillmentTipInput;
13
15
  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[];
@@ -0,0 +1 @@
1
+ export declare function requiredFieldsLegend(className?: string): 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,4 @@
1
+ import { SDKError } from '@/core/sdk-error-handler';
2
+ export declare class PaymentSessionRefreshError extends SDKError {
3
+ constructor(message: string);
4
+ }
@@ -1,13 +1,34 @@
1
1
  import type { IProductFulfillmentStore } from '@/core/store/interfaces/product.interface';
2
2
  import { type FulfillmentType } from '@/enums';
3
3
  import type { IProductSizeAttributes } from '@/interfaces/api/product.interface';
4
- export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, selectedSizeAttributes, }: {
4
+ export declare const FULFILLMENT_TAB_SELECTOR = ".fulfillment-tab";
5
+ export declare function fulfillmentTabId(idPrefix: string, type: FulfillmentType): string;
6
+ export declare function fulfillmentExpectationText(fulfillment: IProductFulfillmentStore, selectedSizeAttributes: IProductSizeAttributes | null, onDemandSelected: boolean): string;
7
+ export declare function fulfillmentFeeText(fulfillment: IProductFulfillmentStore, { prefix, freeLabel }?: {
8
+ prefix?: string | undefined;
9
+ freeLabel?: string | undefined;
10
+ }): string;
11
+ export declare function fulfillmentOptionLabel({ fulfillment, selectedFulfillmentType, selectedSizeAttributes, }: {
12
+ fulfillment: IProductFulfillmentStore;
13
+ selectedFulfillmentType: FulfillmentType;
14
+ selectedSizeAttributes: IProductSizeAttributes | null;
15
+ }): string;
16
+ export declare function fulfillmentSelectedMessage(fulfillment: IProductFulfillmentStore, type: FulfillmentType, selectedSizeAttributes: IProductSizeAttributes | null): string;
17
+ export declare function fulfillmentTypeMessage(type: FulfillmentType, optionCount: number, autoSelected?: {
18
+ fulfillment: IProductFulfillmentStore;
19
+ selectedSizeAttributes: IProductSizeAttributes | null;
20
+ } | null): string;
21
+ export declare function focusSelectedFulfillmentTab(root: ParentNode): boolean;
22
+ export declare function applyFulfillmentPanelSemantics(panel: HTMLElement, tabsContainer: HTMLElement, panelId: string, selectedTabId: string): void;
23
+ export declare function renderPopupRetailerCard({ fulfillment, selectedFulfillmentType, isSelected, selectedSizeAttributes, interactive, disabled, }: {
5
24
  fulfillment: IProductFulfillmentStore;
6
25
  selectedFulfillmentType: FulfillmentType;
7
26
  isSelected: boolean;
8
27
  selectedSizeAttributes: IProductSizeAttributes | null;
28
+ interactive?: boolean;
29
+ disabled?: boolean;
9
30
  }): HTMLElement;
10
- export declare function renderFulfillmentTabsContainer({ shippingFulfillments, onDemandFulfillments, shippingSelected, onDemandSelected, onTabClick, enableShippingFulfillment, enableOnDemandFulfillment, }: {
31
+ export declare function renderFulfillmentTabsContainer({ shippingFulfillments, onDemandFulfillments, shippingSelected, onDemandSelected, onTabClick, enableShippingFulfillment, enableOnDemandFulfillment, primaryFulfillmentMethod, idPrefix, panelId, }: {
11
32
  shippingFulfillments: IProductFulfillmentStore[];
12
33
  onDemandFulfillments: IProductFulfillmentStore[];
13
34
  shippingSelected: boolean;
@@ -15,4 +36,7 @@ export declare function renderFulfillmentTabsContainer({ shippingFulfillments, o
15
36
  onTabClick: (event: Event) => void;
16
37
  enableShippingFulfillment: boolean;
17
38
  enableOnDemandFulfillment: boolean;
39
+ primaryFulfillmentMethod: FulfillmentType;
40
+ idPrefix: string;
41
+ panelId: string;
18
42
  }): HTMLElement;
@@ -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
  }
@@ -8,6 +8,7 @@ export interface IImageCarouselParams {
8
8
  export declare class ProductImageCarouselComponent extends BaseComponent<IImageCarouselParams, IProductComponent> {
9
9
  get hostClasses(): string[];
10
10
  private mainImageElement;
11
+ private mainImageMediaElement;
11
12
  private galleryViewport;
12
13
  private galleryContainer;
13
14
  private thumbnails;
@@ -17,6 +18,8 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
17
18
  private startX;
18
19
  private currentTranslateX;
19
20
  private translateX;
21
+ private boundDragMove;
22
+ private boundDragEnd;
20
23
  constructor();
21
24
  afterRender(): void;
22
25
  onStoreWatch(changes: IOnStoreChanged[]): void;
@@ -26,11 +29,13 @@ export declare class ProductImageCarouselComponent extends BaseComponent<IImageC
26
29
  private scrollToIndex;
27
30
  private setupMainImageSwipe;
28
31
  private setupGalleryDrag;
32
+ protected disconnected(): void;
29
33
  private handleDragStart;
30
34
  private handleDragMove;
31
35
  private handleDragEnd;
32
36
  private updateTransform;
33
37
  private nextImage;
34
38
  private previousImage;
39
+ private mainImageLabel;
35
40
  protected template(): HTMLElement[];
36
41
  }
@@ -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
  }