@liquidcommerce/elements-sdk 2.6.0-beta.13 → 2.6.0-beta.131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/README.md +102 -2518
  2. package/dist/index.checkout.esm.js +22524 -0
  3. package/dist/index.esm.js +30689 -20632
  4. package/dist/ssr-stub.checkout.esm.js +17 -0
  5. package/dist/ssr-stub.esm.js +281 -0
  6. package/dist/types/auto-initialize/checkout.d.ts +2 -0
  7. package/dist/types/auto-initialize/shared-utils.d.ts +51 -0
  8. package/dist/types/{elements-base-client.d.ts → clients/base.d.ts} +16 -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/clients/helpers.d.ts +8 -0
  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/constants/index.d.ts +1 -0
  15. package/dist/types/constants/prop65.constant.d.ts +8 -0
  16. package/dist/types/core/a11y/announcer.service.d.ts +16 -0
  17. package/dist/types/core/a11y/focus-manager.service.d.ts +21 -0
  18. package/dist/types/core/a11y/focusable.d.ts +5 -0
  19. package/dist/types/core/a11y/glyph-button.d.ts +8 -0
  20. package/dist/types/core/a11y/index.d.ts +6 -0
  21. package/dist/types/core/a11y/required.d.ts +1 -0
  22. package/dist/types/core/a11y/single-select.d.ts +20 -0
  23. package/dist/types/core/api/api-client.service.d.ts +23 -18
  24. package/dist/types/core/api/api-result.d.ts +20 -0
  25. package/dist/types/core/api/auth-client.service.d.ts +37 -13
  26. package/dist/types/core/api/http-client.service.d.ts +0 -8
  27. package/dist/types/core/base-component.service.d.ts +4 -1
  28. package/dist/types/core/client/actions/base-action.service.d.ts +22 -0
  29. package/dist/types/core/client/actions/client-address-action.service.d.ts +18 -0
  30. package/dist/types/core/client/actions/client-analytics-action.service.d.ts +35 -0
  31. package/dist/types/core/client/actions/client-cart-action.service.d.ts +38 -0
  32. package/dist/types/core/client/actions/client-checkout-action.service.d.ts +81 -0
  33. package/dist/types/core/client/actions/client-product-action.service.d.ts +15 -0
  34. package/dist/types/core/client/client-action.service.d.ts +7 -74
  35. package/dist/types/core/client/client-config.service.d.ts +12 -5
  36. package/dist/types/core/debug-panel/debug-panel.styles.d.ts +1 -1
  37. package/dist/types/core/google-tag-manager.service.d.ts +13 -3
  38. package/dist/types/core/logger/logger.service.d.ts +1 -1
  39. package/dist/types/core/pubsub/interfaces/address.interface.d.ts +3 -0
  40. package/dist/types/core/pubsub/interfaces/cart.interface.d.ts +6 -1
  41. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +54 -48
  42. package/dist/types/core/pubsub/interfaces/core.interface.d.ts +18 -7
  43. package/dist/types/core/pubsub/pubsub.service.d.ts +1 -2
  44. package/dist/types/core/singleton-manager.service.d.ts +12 -8
  45. package/dist/types/core/store/interfaces/cart.interface.d.ts +2 -3
  46. package/dist/types/core/store/interfaces/checkout.interface.d.ts +40 -107
  47. package/dist/types/core/store/interfaces/core.interface.d.ts +12 -2
  48. package/dist/types/core/store/interfaces/metadata.interface.d.ts +11 -0
  49. package/dist/types/core/store/interfaces/product-list.interface.d.ts +30 -0
  50. package/dist/types/core/store/interfaces/product.interface.d.ts +1 -0
  51. package/dist/types/core/store/store.constant.d.ts +5 -0
  52. package/dist/types/core/store/store.service.d.ts +1 -0
  53. package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
  54. package/dist/types/enums/core.enum.d.ts +51 -2
  55. package/dist/types/enums/index.d.ts +0 -1
  56. package/dist/types/index.checkout.d.ts +11 -0
  57. package/dist/types/index.checkout.umd.d.ts +4 -0
  58. package/dist/types/index.d.ts +9 -3
  59. package/dist/types/interfaces/analytics.interface.d.ts +41 -0
  60. package/dist/types/interfaces/api/cart.interface.d.ts +14 -7
  61. package/dist/types/interfaces/api/checkout.interface.d.ts +277 -0
  62. package/dist/types/interfaces/api/delivery.interface.d.ts +24 -0
  63. package/dist/types/interfaces/api/index.d.ts +6 -0
  64. package/dist/types/interfaces/api/product-list.interface.d.ts +15 -6
  65. package/dist/types/interfaces/api/product.interface.d.ts +12 -4
  66. package/dist/types/interfaces/client.interface.d.ts +79 -0
  67. package/dist/types/interfaces/component.interface.d.ts +7 -0
  68. package/dist/types/interfaces/config.interface.d.ts +45 -0
  69. package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
  70. package/dist/types/interfaces/configs/cart.interface.d.ts +2 -1
  71. package/dist/types/interfaces/configs/checkout.interface.d.ts +3 -1
  72. package/dist/types/interfaces/configs/global.interface.d.ts +9 -3
  73. package/dist/types/interfaces/configs/index.d.ts +1 -0
  74. package/dist/types/interfaces/configs/product-list.interface.d.ts +49 -0
  75. package/dist/types/interfaces/configs/product.interface.d.ts +7 -1
  76. package/dist/types/interfaces/injection.interface.d.ts +56 -0
  77. package/dist/types/modules/address/address-display.component.d.ts +3 -1
  78. package/dist/types/modules/address/address-input.component.d.ts +11 -1
  79. package/dist/types/modules/address/address.command.d.ts +3 -2
  80. package/dist/types/modules/address/styles/register-styles.d.ts +1 -0
  81. package/dist/types/modules/cart/cart.commands.d.ts +11 -5
  82. package/dist/types/modules/cart/components/cart-body.component.d.ts +1 -0
  83. package/dist/types/modules/cart/components/cart-fulfillment.component.d.ts +1 -1
  84. package/dist/types/modules/cart/components/cart-item-quantity-price.component.d.ts +5 -0
  85. package/dist/types/modules/cart/components/cart-item.component.d.ts +8 -0
  86. package/dist/types/modules/cart/styles/register-styles.d.ts +1 -0
  87. package/dist/types/modules/checkout/checkout.commands.d.ts +134 -12
  88. package/dist/types/modules/checkout/checkout.component.d.ts +7 -1
  89. package/dist/types/modules/checkout/components/checkout-billing.component.d.ts +5 -2
  90. package/dist/types/modules/checkout/components/checkout-buyer.component.d.ts +1 -0
  91. package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +9 -0
  92. package/dist/types/modules/checkout/components/checkout-deliver-to.component.d.ts +1 -0
  93. package/dist/types/modules/checkout/components/checkout-delivery-method.component.d.ts +24 -0
  94. package/dist/types/modules/checkout/components/checkout-delivery-scheduling.component.d.ts +53 -0
  95. package/dist/types/modules/checkout/components/checkout-express-checkout.component.d.ts +63 -0
  96. package/dist/types/modules/checkout/components/checkout-express-completion.component.d.ts +21 -0
  97. package/dist/types/modules/checkout/components/checkout-header.component.d.ts +1 -0
  98. package/dist/types/modules/checkout/components/checkout-item-quantity.component.d.ts +4 -0
  99. package/dist/types/modules/checkout/components/checkout-item.component.d.ts +2 -0
  100. package/dist/types/modules/checkout/components/checkout-items.component.d.ts +4 -3
  101. package/dist/types/modules/checkout/components/checkout-order-summary.component.d.ts +3 -0
  102. package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +9 -1
  103. package/dist/types/modules/checkout/components/checkout-place-order-button.component.d.ts +1 -5
  104. package/dist/types/modules/checkout/components/checkout-presale-countdown.component.d.ts +15 -1
  105. package/dist/types/modules/checkout/components/checkout-presale-expired.component.d.ts +7 -1
  106. package/dist/types/modules/checkout/components/checkout-prop65-warning.component.d.ts +8 -0
  107. package/dist/types/modules/checkout/components/checkout-send-as-gift.component.d.ts +3 -0
  108. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +7 -3
  109. package/dist/types/modules/checkout/components/checkout-stripe-handler.component.d.ts +4 -0
  110. package/dist/types/modules/checkout/components/checkout-tips.component.d.ts +4 -2
  111. package/dist/types/modules/checkout/components/index.d.ts +5 -0
  112. package/dist/types/modules/checkout/components/promo-pc-gc.component.d.ts +0 -2
  113. package/dist/types/modules/checkout/components/required-fields-legend.d.ts +1 -0
  114. package/dist/types/modules/checkout/constant.d.ts +15 -0
  115. package/dist/types/modules/checkout/customer-prefill.d.ts +5 -0
  116. package/dist/types/modules/checkout/express-wallet.d.ts +12 -0
  117. package/dist/types/modules/checkout/payment-session-error.d.ts +4 -0
  118. package/dist/types/modules/checkout/stripe-js.d.ts +2 -0
  119. package/dist/types/modules/checkout/styles/delivery-method.style.d.ts +1 -0
  120. package/dist/types/modules/checkout/styles/express-checkout.style.d.ts +1 -0
  121. package/dist/types/modules/checkout/styles/express-completion.style.d.ts +1 -0
  122. package/dist/types/modules/checkout/styles/register-styles.d.ts +1 -0
  123. package/dist/types/modules/product/components/components.d.ts +26 -2
  124. package/dist/types/modules/product/components/index.d.ts +1 -0
  125. package/dist/types/modules/product/components/product-add-to-cart-section.component.d.ts +8 -1
  126. package/dist/types/modules/product/components/product-delivery-estimate.component.d.ts +11 -0
  127. package/dist/types/modules/product/components/product-description.component.d.ts +1 -0
  128. package/dist/types/modules/product/components/product-drawer.component.d.ts +6 -0
  129. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +5 -0
  130. package/dist/types/modules/product/components/product-options.component.d.ts +2 -1
  131. package/dist/types/modules/product/components/product-prop65-warning.d.ts +1 -0
  132. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +6 -0
  133. package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +12 -2
  134. package/dist/types/modules/product/components/product-retailers-popup.component.d.ts +1 -0
  135. package/dist/types/modules/product/components/product-retailers.component.d.ts +1 -0
  136. package/dist/types/modules/product/product.commands.d.ts +5 -5
  137. package/dist/types/modules/product/product.component.d.ts +3 -0
  138. package/dist/types/modules/product/styles/prop65-warning.style.d.ts +1 -0
  139. package/dist/types/modules/product/styles/register-styles.d.ts +1 -0
  140. package/dist/types/modules/product-list/components/card-components/index.d.ts +6 -0
  141. package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +9 -0
  142. package/dist/types/modules/product-list/components/card-components/product-button.d.ts +11 -0
  143. package/dist/types/modules/product-list/components/card-components/product-fulfillment-text.d.ts +2 -0
  144. package/dist/types/modules/product-list/components/card-components/product-price-and-personalization.d.ts +14 -0
  145. package/dist/types/modules/product-list/components/card-components/product-quantity-selector.d.ts +11 -0
  146. package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +14 -0
  147. package/dist/types/modules/product-list/components/filter-components/index.d.ts +7 -0
  148. package/dist/types/modules/product-list/components/filter-components/product-list-apply-filter-button.d.ts +1 -0
  149. 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
  150. package/dist/types/modules/product-list/components/filter-components/product-list-chip.d.ts +5 -0
  151. package/dist/types/modules/product-list/components/filter-components/product-list-filters-chips.d.ts +13 -0
  152. package/dist/types/modules/product-list/components/filter-components/product-list-fulfillment-filter.d.ts +15 -0
  153. 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
  154. package/dist/types/modules/product-list/components/filter-components/product-list-toggle-filters.d.ts +7 -0
  155. package/dist/types/modules/product-list/components/index.d.ts +6 -2
  156. package/dist/types/modules/product-list/components/product-list-card-loading.component.d.ts +3 -1
  157. package/dist/types/modules/product-list/components/product-list-card.component.d.ts +39 -31
  158. package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +12 -0
  159. package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +58 -36
  160. package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +22 -0
  161. package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +54 -0
  162. package/dist/types/modules/product-list/components/product-list-search.component.d.ts +25 -0
  163. package/dist/types/modules/product-list/product-list-filter.registry.d.ts +42 -0
  164. package/dist/types/modules/product-list/product-list-filter.utils.d.ts +7 -0
  165. package/dist/types/modules/product-list/product-list-order.utils.d.ts +3 -0
  166. package/dist/types/modules/product-list/product-list-query-params.utils.d.ts +3 -0
  167. package/dist/types/modules/product-list/product-list.commands.d.ts +27 -7
  168. package/dist/types/modules/product-list/product-list.component.d.ts +23 -47
  169. package/dist/types/modules/product-list/product-list.constants.d.ts +38 -0
  170. package/dist/types/modules/product-list/product-list.interface.d.ts +17 -28
  171. package/dist/types/modules/product-list/styles/product-list-card.style.d.ts +1 -0
  172. package/dist/types/modules/product-list/styles/product-list-filters.style.d.ts +1 -0
  173. package/dist/types/modules/product-list/styles/register-styles.d.ts +1 -0
  174. package/dist/types/modules/theme-provider/constants/component-groupings.d.ts +1 -0
  175. package/dist/types/modules/theme-provider/constants/css-variable-mappings.d.ts +1 -1
  176. package/dist/types/modules/theme-provider/services/style-registry.service.d.ts +16 -0
  177. package/dist/types/modules/theme-provider/services/stylesheet-generator.service.d.ts +0 -1
  178. package/dist/types/modules/theme-provider/styles/register-styles.d.ts +1 -0
  179. package/dist/types/modules/theme-provider/theme-provider.service.d.ts +2 -2
  180. package/dist/types/modules/ui-components/alert/alert.component.d.ts +10 -10
  181. package/dist/types/modules/ui-components/buttons/buttons-open-cart.component.d.ts +5 -0
  182. package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +15 -0
  183. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +9 -1
  184. package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +7 -1
  185. package/dist/types/modules/ui-components/input/index.d.ts +0 -1
  186. package/dist/types/modules/ui-components/input/input.component.d.ts +15 -2
  187. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  188. package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
  189. package/dist/types/modules/ui-components/ui.commands.d.ts +7 -1
  190. package/dist/types/ssr/stub.checkout.d.ts +8 -0
  191. package/dist/types/ssr/stub.d.ts +12 -0
  192. package/dist/types/static/icon/arrow-right.icon.d.ts +1 -1
  193. package/dist/types/static/icon/bag.icon.d.ts +1 -1
  194. package/dist/types/static/icon/check.icon.d.ts +2 -0
  195. package/dist/types/static/icon/checkbox.icon.d.ts +1 -1
  196. package/dist/types/static/icon/chevron-down.icon.d.ts +1 -1
  197. package/dist/types/static/icon/chevron-left.icon.d.ts +1 -1
  198. package/dist/types/static/icon/chevron-up.icon.d.ts +1 -1
  199. package/dist/types/static/icon/close.icon.d.ts +1 -1
  200. package/dist/types/static/icon/error-info.icon.d.ts +1 -1
  201. package/dist/types/static/icon/filter.icon.d.ts +1 -1
  202. package/dist/types/static/icon/icon.a11y.d.ts +1 -0
  203. package/dist/types/static/icon/icon.types.d.ts +1 -0
  204. package/dist/types/static/icon/index.d.ts +2 -0
  205. package/dist/types/static/icon/info.icon.d.ts +1 -1
  206. package/dist/types/static/icon/loading-spinner.icon.d.ts +1 -1
  207. package/dist/types/static/icon/search.icon.d.ts +1 -1
  208. package/dist/types/static/icon/success.icon.d.ts +1 -1
  209. package/dist/types/static/icon/trash.icon.d.ts +1 -1
  210. package/dist/types/static/icon/warning.icon.d.ts +1 -1
  211. package/dist/types/utils/delivery-scheduling.d.ts +72 -0
  212. package/dist/types/utils/dom-compat.d.ts +2 -0
  213. package/dist/types/utils/format.d.ts +9 -14
  214. package/dist/types/utils/image-bg-removal.d.ts +3 -0
  215. package/dist/types/utils/places-session-token.d.ts +1 -0
  216. package/dist/types/utils/product-selection.d.ts +16 -0
  217. package/dist/types/utils/product.d.ts +21 -0
  218. package/dist/types/utils/timezone.d.ts +6 -0
  219. package/docs/v1/README.md +214 -0
  220. package/docs/v1/api/actions/address-actions.md +290 -0
  221. package/docs/v1/api/actions/analytics-actions.md +326 -0
  222. package/docs/v1/api/actions/cart-actions.md +364 -0
  223. package/docs/v1/api/actions/checkout-actions.md +629 -0
  224. package/docs/v1/api/actions/product-actions.md +205 -0
  225. package/docs/v1/api/client.md +671 -0
  226. package/docs/v1/api/configuration.md +587 -0
  227. package/docs/v1/api/injection-methods.md +331 -0
  228. package/docs/v1/api/typescript-types.md +610 -0
  229. package/docs/v1/api/ui-helpers.md +200 -0
  230. package/docs/v1/examples/advanced-patterns.md +199 -0
  231. package/docs/v1/examples/checkout-flow.md +90 -0
  232. package/docs/v1/examples/custom-theming.md +76 -0
  233. package/docs/v1/examples/multi-product-page.md +90 -0
  234. package/docs/v1/examples/simple-product-page.md +89 -0
  235. package/docs/v1/getting-started/concepts.md +521 -0
  236. package/docs/v1/getting-started/installation.md +351 -0
  237. package/docs/v1/getting-started/quick-start.md +410 -0
  238. package/docs/v1/guides/accessibility.md +298 -0
  239. package/docs/v1/guides/address-component.md +441 -0
  240. package/docs/v1/guides/best-practices.md +365 -0
  241. package/docs/v1/guides/cart-component.md +802 -0
  242. package/docs/v1/guides/checkout-component.md +920 -0
  243. package/docs/v1/guides/events.md +1061 -0
  244. package/docs/v1/guides/product-component.md +767 -0
  245. package/docs/v1/guides/product-list-component.md +730 -0
  246. package/docs/v1/guides/theming.md +243 -0
  247. package/docs/v1/integration/angular.md +39 -0
  248. package/docs/v1/integration/laravel.md +41 -0
  249. package/docs/v1/integration/nextjs.md +69 -0
  250. package/docs/v1/integration/proxy-setup.md +106 -0
  251. package/docs/v1/integration/react.md +64 -0
  252. package/docs/v1/integration/vanilla-js.md +84 -0
  253. package/docs/v1/integration/vue.md +58 -0
  254. package/docs/v1/reference/analytics.md +176 -0
  255. package/docs/v1/reference/browser-support.md +47 -0
  256. package/docs/v1/reference/error-handling.md +83 -0
  257. package/docs/v1/reference/performance.md +52 -0
  258. package/docs/v1/reference/telemetry.md +85 -0
  259. package/docs/v1/reference/troubleshooting.md +135 -0
  260. package/package.json +75 -45
  261. package/dist/types/elements-builder-client.d.ts +0 -2
  262. package/dist/types/elements-client-helper.d.ts +0 -4
  263. package/dist/types/elements-client.d.ts +0 -2
  264. package/dist/types/enums/cloud.enum.d.ts +0 -97
  265. package/dist/types/interfaces/cloud/checkout.interface.d.ts +0 -218
  266. package/dist/types/interfaces/cloud/core.interface.d.ts +0 -22
  267. package/dist/types/interfaces/cloud/index.d.ts +0 -3
  268. package/dist/types/interfaces/cloud/retailer.interface.d.ts +0 -67
  269. package/dist/types/interfaces/cloud/user.interface.d.ts +0 -100
  270. package/dist/types/interfaces/core.interface.d.ts +0 -111
  271. package/dist/types/modules/checkout/components/checkout.type.d.ts +0 -4
  272. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/index.d.ts +0 -6
  273. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-apply-filter-button.component.d.ts +0 -1
  274. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-delivery-options-filter.components.d.ts +0 -16
  275. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-search.component.d.ts +0 -16
  276. package/dist/types/modules/product-list/components/product-list-filters-subcomponents/product-list-toggle-filters.components.d.ts +0 -18
  277. package/dist/types/modules/theme-provider/styles/address/index.d.ts +0 -1
  278. package/dist/types/modules/theme-provider/styles/cart/index.d.ts +0 -1
  279. package/dist/types/modules/theme-provider/styles/checkout/index.d.ts +0 -1
  280. package/dist/types/modules/theme-provider/styles/product/index.d.ts +0 -3
  281. package/dist/types/modules/theme-provider/styles/product-list/index.d.ts +0 -1
  282. package/dist/types/modules/theme-provider/styles/ui/index.d.ts +0 -3
  283. package/dist/types/modules/ui-components/input/birthdate-input.component.d.ts +0 -53
  284. package/dist/types/utils/helper.d.ts +0 -28
  285. package/docs/ACTIONS.md +0 -1300
  286. package/docs/BROWSER_SUPPORT.md +0 -279
  287. package/docs/CONFIGURATION.md +0 -853
  288. package/docs/DOCUMENTATION_INDEX.md +0 -311
  289. package/docs/EVENTS.md +0 -798
  290. package/docs/PROXY.md +0 -228
  291. package/docs/THEMING.md +0 -592
  292. package/docs/TROUBLESHOOTING.md +0 -793
  293. package/umd/elements.js +0 -1
  294. /package/dist/types/{auto-initialize.d.ts → auto-initialize/main.d.ts} +0 -0
  295. /package/dist/types/modules/{theme-provider/styles/address → address/styles}/address.style.d.ts +0 -0
  296. /package/dist/types/modules/{theme-provider/styles/cart → cart/styles}/cart.style.d.ts +0 -0
  297. /package/dist/types/modules/{theme-provider/styles/checkout → checkout/styles}/checkout.style.d.ts +0 -0
  298. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/image-carousel.style.d.ts +0 -0
  299. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/product.style.d.ts +0 -0
  300. /package/dist/types/modules/{theme-provider/styles/product → product/styles}/retailers.style.d.ts +0 -0
  301. /package/dist/types/modules/{theme-provider/styles/product-list → product-list/styles}/product-list.style.d.ts +0 -0
  302. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/drawer.style.d.ts +0 -0
  303. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/loading.style.d.ts +0 -0
  304. /package/dist/types/modules/{theme-provider/styles/ui → ui-components/styles}/promo-code-ticker.style.d.ts +0 -0
@@ -0,0 +1,410 @@
1
+ # Quick Start
2
+
3
+ Get a product display with add-to-cart functionality working on your page in under 5 minutes.
4
+
5
+ ## What You'll Build
6
+
7
+ A fully functional product page with:
8
+ - Product images and details
9
+ - Size selection
10
+ - Fulfillment options (shipping/on-demand delivery)
11
+ - Add to cart button
12
+ - Shopping cart drawer
13
+ - Complete checkout flow
14
+
15
+ ## Prerequisites
16
+
17
+ - A LiquidCommerce API key (contact your LiquidCommerce representative)
18
+ - A product identifier
19
+ - A web page or HTML file
20
+
21
+ ## Step 1: Add the SDK Script
22
+
23
+ Add the Elements SDK script tag to your HTML `<head>`:
24
+
25
+ ```html
26
+ <!DOCTYPE html>
27
+ <html>
28
+ <head>
29
+ <title>My Product Page</title>
30
+ <script
31
+ defer
32
+ data-liquid-commerce-elements
33
+ data-token="YOUR_API_KEY"
34
+ data-env="production"
35
+ type="text/javascript"
36
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
37
+ ></script>
38
+ </head>
39
+ <body>
40
+ <!-- We'll add the product here -->
41
+ </body>
42
+ </html>
43
+ ```
44
+
45
+ **Replace `YOUR_API_KEY`** with your actual API key.
46
+
47
+ ## Step 2: Add a Product Container
48
+
49
+ Create a container where the product will be displayed:
50
+
51
+ ```html
52
+ <body>
53
+ <h1>Our Premium Whiskey</h1>
54
+
55
+ <!-- Product will be injected here -->
56
+ <div id="product-display"></div>
57
+ </body>
58
+ ```
59
+
60
+ ## Step 3: Configure the Product (Declarative)
61
+
62
+ Add product configuration using HTML data attributes on the script tag:
63
+
64
+ ```html
65
+ <script
66
+ defer
67
+ data-liquid-commerce-elements
68
+ data-token="YOUR_API_KEY"
69
+ data-env="production"
70
+ data-container-1="product-display"
71
+ data-product-1="00619947000020"
72
+ type="text/javascript"
73
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
74
+ ></script>
75
+ ```
76
+
77
+ **New attributes:**
78
+ - `data-container-1="product-display"` - Points to the container ID
79
+ - `data-product-1="00619947000020"` - The product identifier
80
+
81
+ The numbers (1) connect the container to its product. For multiple products, increment the number:
82
+ - `data-container-2` with `data-product-2`
83
+ - `data-container-3` with `data-product-3`
84
+ - etc.
85
+
86
+ ## Complete Example
87
+
88
+ Here's the complete HTML for a working product page:
89
+
90
+ ```html
91
+ <!DOCTYPE html>
92
+ <html lang="en">
93
+ <head>
94
+ <meta charset="UTF-8">
95
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
96
+ <title>Premium Whiskey - Buy Online</title>
97
+
98
+ <script
99
+ defer
100
+ data-liquid-commerce-elements
101
+ data-token="YOUR_API_KEY"
102
+ data-env="production"
103
+ data-container-1="product-display"
104
+ data-product-1="00619947000020"
105
+ type="text/javascript"
106
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
107
+ ></script>
108
+
109
+ <style>
110
+ body {
111
+ font-family: Arial, sans-serif;
112
+ max-width: 1200px;
113
+ margin: 0 auto;
114
+ padding: 20px;
115
+ }
116
+ h1 {
117
+ text-align: center;
118
+ }
119
+ </style>
120
+ </head>
121
+ <body>
122
+ <h1>Our Premium Whiskey</h1>
123
+ <div id="product-display"></div>
124
+ </body>
125
+ </html>
126
+ ```
127
+
128
+ That's it! Save the file and open it in a browser. You should see:
129
+ 1. Product images in a carousel
130
+ 2. Product name and description
131
+ 3. Size selector
132
+ 4. Fulfillment type selector (shipping/delivery)
133
+ 5. Retailer selection
134
+ 6. Add to cart button
135
+
136
+ When you click "Add to Cart," a cart drawer slides in from the right with checkout functionality.
137
+
138
+ ## Alternative: Programmatic Setup
139
+
140
+ If you prefer JavaScript over HTML attributes:
141
+
142
+ ```html
143
+ <!DOCTYPE html>
144
+ <html>
145
+ <head>
146
+ <title>My Product Page</title>
147
+ <script
148
+ defer
149
+ data-liquid-commerce-elements
150
+ data-token="YOUR_API_KEY"
151
+ data-env="production"
152
+ type="text/javascript"
153
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
154
+ ></script>
155
+
156
+ <script defer>
157
+ // Wait for SDK to be ready
158
+ window.addEventListener('lce:actions.client_ready', async (event) => {
159
+ const client = window.LiquidCommerce.elements;
160
+
161
+ // Inject the product
162
+ await client.injectProductElement([
163
+ {
164
+ containerId: 'product-display',
165
+ identifier: '00619947000020'
166
+ }
167
+ ]);
168
+ }, { once: true });
169
+ </script>
170
+ </head>
171
+ <body>
172
+ <h1>Our Premium Whiskey</h1>
173
+ <div id="product-display"></div>
174
+ </body>
175
+ </html>
176
+ ```
177
+
178
+ Or with NPM:
179
+
180
+ ```javascript
181
+ import { Elements } from '@liquidcommerce/elements-sdk';
182
+
183
+ async function initProduct() {
184
+ // Elements() resolves to `null` if initialization fails — it never throws.
185
+ const client = await Elements('YOUR_API_KEY', {
186
+ env: 'production'
187
+ });
188
+
189
+ if (!client) {
190
+ return;
191
+ }
192
+
193
+ await client.injectProductElement([
194
+ {
195
+ containerId: 'product-display',
196
+ identifier: '00619947000020'
197
+ }
198
+ ]);
199
+ }
200
+
201
+ initProduct();
202
+ ```
203
+
204
+ ## Multiple Products
205
+
206
+ To display multiple products on one page:
207
+
208
+ ```html
209
+ <script
210
+ defer
211
+ data-liquid-commerce-elements
212
+
213
+ data-token="YOUR_API_KEY"
214
+ data-env="production"
215
+
216
+ data-container-1="product-1"
217
+ data-product-1="00619947000020"
218
+ data-container-2="product-2"
219
+ data-product-2="08504405135"
220
+ data-container-3="product-3"
221
+ data-product-3="08068660001"
222
+
223
+ type="text/javascript"
224
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
225
+ ></script>
226
+
227
+ <div id="product-1"></div>
228
+ <div id="product-2"></div>
229
+ <div id="product-3"></div>
230
+ ```
231
+
232
+ Or programmatically:
233
+
234
+ ```javascript
235
+ await client.injectProductElement([
236
+ { containerId: 'product-1', identifier: '00619947000020' },
237
+ { containerId: 'product-2', identifier: '08504405135' },
238
+ { containerId: 'product-3', identifier: '08068660001' }
239
+ ]);
240
+ ```
241
+
242
+ ## What Happens Automatically
243
+
244
+ The SDK handles everything for you:
245
+
246
+ 1. **Address Collection** - If needed, prompts for delivery location
247
+ 2. **Availability Check** - Shows only available fulfillment options
248
+ 3. **Cart Management** - Maintains cart across page refreshes and tabs
249
+ 4. **Checkout Flow** - Complete payment and order processing
250
+ 5. **Error Handling** - Graceful error messages and recovery
251
+ 6. **Mobile Responsiveness** - Works on all screen sizes
252
+
253
+ ## Customization
254
+
255
+ Want to customize the look, visit the Elements Builder in our [Partner Portal](https://app.liquidcommerce.co/)? Want to manually override your theme, you can pass a `customTheme: IClientCustomThemeConfig` configuration:
256
+
257
+ ```html
258
+ <script>
259
+ window.addEventListener('lce:actions.client_ready', async () => {
260
+ const client = window.LiquidCommerce.elements;
261
+
262
+ // You can customize after initialization
263
+ // See Theming Guide for more options
264
+ }, { once: true });
265
+ </script>
266
+ ```
267
+
268
+ Or with NPM:
269
+
270
+ ```javascript
271
+ const client = await Elements('YOUR_API_KEY', {
272
+ env: 'production',
273
+ customTheme: {
274
+ global: {
275
+ theme: {
276
+ primaryColor: '#007bff',
277
+ buttonCornerRadius: '8px',
278
+ headingFont: {
279
+ name: 'Poppins',
280
+ weights: [400, 600]
281
+ }
282
+ }
283
+ }
284
+ }
285
+ });
286
+ ```
287
+
288
+ ## Testing Different Products
289
+
290
+ To test with different products, simply change the product identifier:
291
+
292
+ ```html
293
+ <!-- Replace with your product UPC -->
294
+ data-product-1="YOUR_PRODUCT_IDENTIFIER"
295
+ ```
296
+
297
+ Contact your LiquidCommerce representative for available product identifiers.
298
+
299
+ ## Troubleshooting
300
+
301
+ ### Product Not Showing
302
+
303
+ 1. **Check the browser console** for errors
304
+ 2. **Verify your API key** is correct
305
+ 3. **Confirm the product identifier** exists in your catalog
306
+ 4. **Check the container ID** matches your HTML
307
+
308
+ ### Styling Issues
309
+
310
+ The product uses Shadow DOM for style encapsulation. To customize:
311
+
312
+ - Use the `customTheme` configuration option
313
+ - See [Theming Guide](../guides/theming.md) for detailed customization
314
+
315
+ ### Cart Not Opening
316
+
317
+ The cart should open automatically after adding a product. If it doesn't:
318
+
319
+ 1. Check browser console for JavaScript errors
320
+ 2. Verify no other scripts are conflicting
321
+ 3. Try manually opening: `window.LiquidCommerce.elements.actions.cart.openCart()`
322
+
323
+ ## Next Steps
324
+
325
+ Now that you have a basic product working:
326
+
327
+ - **[Core Concepts](./concepts.md)** - Understand how the SDK works
328
+ - **[Product Component Guide](../guides/product-component.md)** - Deep dive into product features
329
+ - **[Cart Component Guide](../guides/cart-component.md)** - Learn about cart functionality
330
+ - **[Checkout Component Guide](../guides/checkout-component.md)** - Customize the checkout experience
331
+ - **[Theming Guide](../guides/theming.md)** - Make it match your brand
332
+ - **[Events](../guides/events.md)** - React to user actions
333
+ - **[API Reference](../api/client.md)** - Explore all available methods
334
+
335
+ ## Complete Working Example
336
+
337
+ Try this complete example with your API key:
338
+
339
+ ```html
340
+ <!DOCTYPE html>
341
+ <html lang="en">
342
+ <head>
343
+ <meta charset="UTF-8">
344
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
345
+ <title>Whiskey Shop</title>
346
+
347
+ <script
348
+ defer
349
+ data-liquid-commerce-elements
350
+ data-token="YOUR_API_KEY"
351
+ data-env="production"
352
+ data-container-1="product"
353
+ data-product-1="00619947000020"
354
+ type="text/javascript"
355
+ src="https://elements.reservebar-worker.workers.dev/all/elements.js"
356
+ ></script>
357
+
358
+ <style>
359
+ * {
360
+ margin: 0;
361
+ padding: 0;
362
+ box-sizing: border-box;
363
+ }
364
+
365
+ body {
366
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
367
+ background: #f5f5f5;
368
+ }
369
+
370
+ header {
371
+ background: white;
372
+ padding: 20px;
373
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
374
+ margin-bottom: 40px;
375
+ }
376
+
377
+ .container {
378
+ max-width: 1200px;
379
+ margin: 0 auto;
380
+ padding: 0 20px;
381
+ }
382
+
383
+ h1 {
384
+ text-align: center;
385
+ color: #333;
386
+ }
387
+
388
+ #product {
389
+ background: white;
390
+ border-radius: 8px;
391
+ padding: 20px;
392
+ box-shadow: 0 2px 8px rgba(0,0,0,0.1);
393
+ }
394
+ </style>
395
+ </head>
396
+ <body>
397
+ <header>
398
+ <div class="container">
399
+ <h1>🥃 Premium Spirits Collection</h1>
400
+ </div>
401
+ </header>
402
+
403
+ <div class="container">
404
+ <div id="product"></div>
405
+ </div>
406
+ </body>
407
+ </html>
408
+ ```
409
+
410
+ Replace `YOUR_API_KEY` with your actual key and you're ready to go!