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

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 +18210 -0
  3. package/dist/index.esm.js +26253 -20673
  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 +214 -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
@@ -0,0 +1,557 @@
1
+ # Configuration Reference
2
+
3
+ Complete reference for all configuration options available in the Elements SDK.
4
+
5
+ ## Client Configuration
6
+
7
+ ### ILiquidCommerceElementsConfig
8
+
9
+ Top-level configuration passed to `Elements()` or `ElementsBuilder()`.
10
+
11
+ ```typescript
12
+ interface ILiquidCommerceElementsConfig {
13
+ env?: ElementsEnv;
14
+ promoTicker?: IPromoTicker[];
15
+ customTheme?: IClientCustomThemeConfig;
16
+ debugMode?: DebugMode;
17
+ checkout?: ILiquidCommerceElementsCheckoutConfig;
18
+ proxy?: IElementsProxyConfig;
19
+ development?: ILiquidCommerceElementsDevelopmentConfig;
20
+ }
21
+ ```
22
+
23
+ | Property | Type | Required | Description |
24
+ |----------|------|----------|-------------|
25
+ | `env` | `'staging' \| 'production'` | No | API environment |
26
+ | `promoTicker` | `IPromoTicker[]` | No | Promotional ticker configurations |
27
+ | `customTheme` | `IClientCustomThemeConfig` | No | Theme overrides for all components |
28
+ | `debugMode` | `'none' \| 'console' \| 'panel'` | No | Debug output mode |
29
+ | `checkout` | `ILiquidCommerceElementsCheckoutConfig` | No | Checkout behavior settings |
30
+ | `proxy` | `IElementsProxyConfig` | No | Proxy configuration for API requests |
31
+ | `development` | `ILiquidCommerceElementsDevelopmentConfig` | No | Development/testing options |
32
+
33
+ > **Note:** `debugMode` (`'console'` or `'panel'`) is **ignored in production** -- it is forced off when `env` is `'production'`. It only takes effect outside production (`'staging'`).
34
+
35
+ ---
36
+
37
+ ## Theme Configuration
38
+
39
+ ### IClientCustomThemeConfig
40
+
41
+ Override default theme settings for any component.
42
+
43
+ ```typescript
44
+ interface IClientCustomThemeConfig {
45
+ global?: UpdateComponentGlobalConfigs;
46
+ product?: UpdateProductComponent;
47
+ address?: UpdateAddressComponent;
48
+ cart?: UpdateCartComponent;
49
+ checkout?: UpdateCheckoutComponent;
50
+ productList?: UpdateProductListComponent;
51
+ }
52
+ ```
53
+
54
+ All theme properties are deeply partial -- you only need to specify the values you want to override.
55
+
56
+ ---
57
+
58
+ ### Global Theme
59
+
60
+ #### IGlobalTheme
61
+
62
+ ```typescript
63
+ interface IGlobalTheme {
64
+ buttonCornerRadius: string;
65
+ cardCornerRadius: string;
66
+ headingFont: IFontFamily;
67
+ paragraphFont: IFontFamily;
68
+ primaryColor: string;
69
+ accentColor: string;
70
+ defaultTextColor: string;
71
+ selectedTextColor: string;
72
+ linkTextColor: string;
73
+ errorColor: string;
74
+ warningColor: string;
75
+ successColor: string;
76
+ drawerBackgroundColor: string;
77
+
78
+ /**
79
+ * Boundary color for form fields. Optional; defaults to a neutral that clears the 3:1
80
+ * contrast required by WCAG 1.4.11.
81
+ */
82
+ inputBorderColor?: string;
83
+
84
+ /** Keyboard focus ring color. Must reach 3:1 against the surface behind the control. */
85
+ focusRingColor?: string;
86
+ }
87
+ ```
88
+
89
+ > `inputBorderColor` and `focusRingColor` are optional. Omit them to keep the WCAG-compliant
90
+ > defaults, or set them explicitly to keep those two details on-brand — any value you supply is used
91
+ > as given, so check its contrast. See [Accessibility](../guides/accessibility.md).
92
+
93
+ | Property | Type | Description |
94
+ |----------|------|-------------|
95
+ | `buttonCornerRadius` | `string` | CSS border-radius for buttons (e.g., `'8px'`) |
96
+ | `cardCornerRadius` | `string` | CSS border-radius for cards |
97
+ | `headingFont` | `IFontFamily` | Font family and weights for headings |
98
+ | `paragraphFont` | `IFontFamily` | Font family and weights for body text |
99
+ | `primaryColor` | `string` | Primary brand color (buttons, links, highlights) |
100
+ | `accentColor` | `string` | Secondary accent color |
101
+ | `defaultTextColor` | `string` | Default text color |
102
+ | `selectedTextColor` | `string` | Text color for selected/active elements |
103
+ | `linkTextColor` | `string` | Color for links |
104
+ | `errorColor` | `string` | Color for error states |
105
+ | `warningColor` | `string` | Color for warning states |
106
+ | `successColor` | `string` | Color for success states |
107
+ | `drawerBackgroundColor` | `string` | Background color for drawer components |
108
+
109
+ #### IFontFamily
110
+
111
+ ```typescript
112
+ interface IFontFamily {
113
+ name: string; // Google Font name (e.g., 'Inter')
114
+ weights: number[]; // Font weights to load (e.g., [400, 500, 700])
115
+ }
116
+ ```
117
+
118
+ > **Note:** Only Google Fonts are supported -- `name` must be a valid Google Fonts family. `Poppins` is always injected as the default font family in addition to any fonts you specify. Font loading requires network access to `fonts.googleapis.com` and `fonts.gstatic.com`; if you run behind a CSP or proxy, allow these hosts.
119
+
120
+ #### IGlobalLayout
121
+
122
+ ```typescript
123
+ interface IGlobalLayout {
124
+ enablePersonalization: boolean;
125
+ personalizationText: string;
126
+ personalizationCardStyle: 'outlined' | 'filled';
127
+ allowPromoCodes: boolean;
128
+ inputFieldStyle: 'outlined' | 'filled';
129
+ enableOrderedProductSizes: boolean;
130
+ orderedProductSizes: string[];
131
+ showPoweredBy: boolean;
132
+ poweredByMode: 'light' | 'dark';
133
+ }
134
+ ```
135
+
136
+ | Property | Type | Description |
137
+ |----------|------|-------------|
138
+ | `enablePersonalization` | `boolean` | Enable engraving/personalization features |
139
+ | `personalizationText` | `string` | Label text for personalization option |
140
+ | `personalizationCardStyle` | `'outlined' \| 'filled'` | Visual style for personalization cards |
141
+ | `allowPromoCodes` | `boolean` | Show promo code inputs in cart/checkout |
142
+ | `inputFieldStyle` | `'outlined' \| 'filled'` | Visual style for input fields |
143
+ | `enableOrderedProductSizes` | `boolean` | Enable a fixed display order for product/PLC size selectors (defined by `orderedProductSizes`) instead of the default ordering |
144
+ | `orderedProductSizes` | `string[]` | Ordered list of size values controlling the sequence in which size selectors are rendered; changes trigger targeted rerenders of the affected size selectors |
145
+ | `showPoweredBy` | `boolean` | Show "Powered by LiquidCommerce" badge |
146
+ | `poweredByMode` | `'light' \| 'dark'` | Color mode for the powered-by badge |
147
+
148
+ > **Note:** `showPoweredBy` is a server/plan-controlled setting and **cannot** be overridden by hosts. Any value supplied via `customTheme` (or a later config update) is stripped and the server value is restored. Only `poweredByMode` (`'light' \| 'dark'`) is host-overridable.
149
+
150
+ **Example:**
151
+
152
+ ```javascript
153
+ customTheme: {
154
+ global: {
155
+ theme: {
156
+ primaryColor: '#007bff',
157
+ buttonCornerRadius: '8px',
158
+ headingFont: { name: 'Inter', weights: [400, 600, 700] }
159
+ },
160
+ layout: {
161
+ allowPromoCodes: true,
162
+ inputFieldStyle: 'outlined'
163
+ }
164
+ }
165
+ }
166
+ ```
167
+
168
+ ---
169
+
170
+ ### Product Theme
171
+
172
+ #### IProductComponent
173
+
174
+ ```typescript
175
+ interface IProductComponent {
176
+ theme: IProductTheme;
177
+ layout: IProductLayout;
178
+ }
179
+ ```
180
+
181
+ #### IProductTheme
182
+
183
+ ```typescript
184
+ interface IProductTheme {
185
+ backgroundColor: string;
186
+ }
187
+ ```
188
+
189
+ #### IProductLayout
190
+
191
+ ```typescript
192
+ interface IProductLayout {
193
+ showImages: boolean;
194
+ showOnlyMainImage: boolean;
195
+ showTitle: boolean;
196
+ showDescription: boolean;
197
+ descriptionPosition: 'above' | 'below';
198
+ showQuantityCounter: boolean;
199
+ showOffHours: boolean;
200
+ quantityCounterStyle: 'outlined' | 'ghost';
201
+ fulfillmentDisplay: 'carousel' | 'popup';
202
+ enableShippingFulfillment: boolean;
203
+ enableOnDemandFulfillment: boolean;
204
+ primaryFulfillmentMethod: 'shipping' | 'onDemand';
205
+ addToCartButtonText: string;
206
+ addToCartButtonShowTotalPrice: boolean;
207
+ buyNowButtonText: string;
208
+ preSaleButtonText: string;
209
+ prioritizeEngraving: boolean;
210
+ noAvailabilityText: string;
211
+ }
212
+ ```
213
+
214
+ | Property | Type | Description |
215
+ |----------|------|-------------|
216
+ | `showImages` | `boolean` | Show product image carousel |
217
+ | `showOnlyMainImage` | `boolean` | Show only the main product image (no carousel) |
218
+ | `showTitle` | `boolean` | Show product title |
219
+ | `showDescription` | `boolean` | Show product description |
220
+ | `descriptionPosition` | `'above' \| 'below'` | Placement of the product description relative to other content |
221
+ | `showQuantityCounter` | `boolean` | Show quantity selector |
222
+ | `showOffHours` | `boolean` | Show off-hours messaging |
223
+ | `quantityCounterStyle` | `'outlined' \| 'ghost'` | Visual style for quantity counter |
224
+ | `fulfillmentDisplay` | `'carousel' \| 'popup'` | How to display fulfillment/retailer options |
225
+ | `enableShippingFulfillment` | `boolean` | Enable shipping fulfillment option |
226
+ | `enableOnDemandFulfillment` | `boolean` | Enable on-demand delivery option |
227
+ | `primaryFulfillmentMethod` | `'shipping' \| 'onDemand'` | Fulfillment method shown first and selected by default; falls back to the other enabled method when it has no availability |
228
+ | `addToCartButtonText` | `string` | Custom text for add-to-cart button |
229
+ | `addToCartButtonShowTotalPrice` | `boolean` | Show total price on add-to-cart button |
230
+ | `buyNowButtonText` | `string` | Custom text for buy-now button |
231
+ | `preSaleButtonText` | `string` | Custom text for pre-sale button |
232
+ | `prioritizeEngraving` | `boolean` | Show engraving option before add-to-cart |
233
+ | `noAvailabilityText` | `string` | Text shown when product is unavailable |
234
+
235
+ **Example:**
236
+
237
+ ```javascript
238
+ customTheme: {
239
+ product: {
240
+ layout: {
241
+ fulfillmentDisplay: 'popup',
242
+ addToCartButtonText: 'Add to Bag',
243
+ showQuantityCounter: true
244
+ }
245
+ }
246
+ }
247
+ ```
248
+
249
+ ---
250
+
251
+ ### Cart Theme
252
+
253
+ #### ICartComponent
254
+
255
+ ```typescript
256
+ interface ICartComponent {
257
+ theme: ICartTheme;
258
+ layout: ICartLayout;
259
+ }
260
+ ```
261
+
262
+ #### ICartTheme
263
+
264
+ ```typescript
265
+ interface ICartTheme {
266
+ backgroundColor: string;
267
+ }
268
+ ```
269
+
270
+ #### ICartLayout
271
+
272
+ ```typescript
273
+ interface ICartLayout {
274
+ showQuantityCounter: boolean;
275
+ quantityCounterStyle: 'outlined' | 'ghost';
276
+ drawerHeaderText: string;
277
+ goToCheckoutButtonText: string;
278
+ }
279
+ ```
280
+
281
+ | Property | Type | Description |
282
+ |----------|------|-------------|
283
+ | `showQuantityCounter` | `boolean` | Show quantity counter in cart items |
284
+ | `quantityCounterStyle` | `'outlined' \| 'ghost'` | Visual style for quantity counter |
285
+ | `drawerHeaderText` | `string` | Header text for the cart drawer |
286
+ | `goToCheckoutButtonText` | `string` | Custom text for checkout button |
287
+
288
+ **Example:**
289
+
290
+ ```javascript
291
+ customTheme: {
292
+ cart: {
293
+ theme: { backgroundColor: '#f8f9fa' },
294
+ layout: {
295
+ drawerHeaderText: 'Your Bag',
296
+ goToCheckoutButtonText: 'Proceed to Checkout'
297
+ }
298
+ }
299
+ }
300
+ ```
301
+
302
+ ---
303
+
304
+ ### Checkout Theme
305
+
306
+ #### ICheckoutComponent
307
+
308
+ ```typescript
309
+ interface ICheckoutComponent {
310
+ theme: ICheckoutTheme;
311
+ layout: ICheckoutLayout;
312
+ }
313
+ ```
314
+
315
+ #### ICheckoutTheme
316
+
317
+ ```typescript
318
+ interface ICheckoutTheme {
319
+ backgroundColor: string;
320
+ }
321
+ ```
322
+
323
+ #### ICheckoutLayout
324
+
325
+ ```typescript
326
+ interface ICheckoutLayout {
327
+ emailOptIn: ICheckoutMarketingOptIn;
328
+ smsOptIn: ICheckoutMarketingOptIn;
329
+ allowGiftCards: boolean;
330
+ legalMessage: ICheckoutLegalMessage;
331
+ continueShoppingUrl: string;
332
+ exitUrl: string;
333
+ thankYouButtonText: string;
334
+ drawerHeaderText: string;
335
+ placeOrderButtonText: string;
336
+ checkoutCompleted: ICheckoutCompleted;
337
+ }
338
+ ```
339
+
340
+ | Property | Type | Description |
341
+ |----------|------|-------------|
342
+ | `emailOptIn` | `ICheckoutMarketingOptIn` | Email marketing opt-in configuration |
343
+ | `smsOptIn` | `ICheckoutMarketingOptIn` | SMS marketing opt-in configuration |
344
+ | `allowGiftCards` | `boolean` | Enable gift card payment option |
345
+ | `legalMessage` | `ICheckoutLegalMessage` | Legal/terms message configuration |
346
+ | `continueShoppingUrl` | `string` | URL for "Continue Shopping" link |
347
+ | `exitUrl` | `string` | URL for exit/back navigation |
348
+ | `thankYouButtonText` | `string` | Button text on order confirmation page |
349
+ | `drawerHeaderText` | `string` | Header text for checkout drawer |
350
+ | `placeOrderButtonText` | `string` | Custom text for place order button |
351
+ | `checkoutCompleted` | `ICheckoutCompleted` | Order confirmation page customization |
352
+
353
+ #### ICheckoutMarketingOptIn
354
+
355
+ ```typescript
356
+ interface ICheckoutMarketingOptIn {
357
+ show: boolean; // Show the opt-in checkbox
358
+ checked: boolean; // Default checked state
359
+ text: string; // Label text (supports rich HTML)
360
+ }
361
+ ```
362
+
363
+ #### ICheckoutLegalMessage
364
+
365
+ ```typescript
366
+ interface ICheckoutLegalMessage {
367
+ show: boolean; // Show the legal message
368
+ text: string; // Message content (supports rich HTML)
369
+ }
370
+ ```
371
+
372
+ #### ICheckoutCompleted
373
+
374
+ ```typescript
375
+ interface ICheckoutCompleted {
376
+ customLogo: string; // URL to custom logo image
377
+ customText: string | null; // Custom confirmation text
378
+ }
379
+ ```
380
+
381
+ **Example:**
382
+
383
+ ```javascript
384
+ customTheme: {
385
+ checkout: {
386
+ layout: {
387
+ placeOrderButtonText: 'Complete Purchase',
388
+ emailOptIn: { show: true, checked: false, text: 'Subscribe to our newsletter' },
389
+ legalMessage: { show: true, text: 'By placing this order, you agree to our <a href="/terms">Terms</a>.' }
390
+ }
391
+ }
392
+ }
393
+ ```
394
+
395
+ ---
396
+
397
+ ### Address Theme
398
+
399
+ #### IAddressComponent
400
+
401
+ ```typescript
402
+ interface IAddressComponent {
403
+ theme: IAddressTheme;
404
+ }
405
+ ```
406
+
407
+ #### IAddressTheme
408
+
409
+ ```typescript
410
+ interface IAddressTheme {
411
+ backgroundColor: string;
412
+ }
413
+ ```
414
+
415
+ ---
416
+
417
+ ### Product List Theme
418
+
419
+ #### IProductListComponent
420
+
421
+ ```typescript
422
+ interface IProductListComponent {
423
+ theme: IProductListTheme;
424
+ layout: IProductListLayout;
425
+ }
426
+ ```
427
+
428
+ Product list theme updates use a special structure where lists are keyed by slug:
429
+
430
+ ```typescript
431
+ interface UpdateProductListComponent {
432
+ theme?: { backgroundColor?: string };
433
+ layout?: {
434
+ lists?: Record<string, DeepPartial<IPLCList>>;
435
+ };
436
+ }
437
+ ```
438
+
439
+ **Example:**
440
+
441
+ ```javascript
442
+ customTheme: {
443
+ productList: {
444
+ theme: { backgroundColor: '#ffffff' },
445
+ layout: {
446
+ lists: {
447
+ 'best-sellers': {
448
+ productCard: {
449
+ style: 'card',
450
+ showPrice: true,
451
+ enablePreCart: true
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ }
458
+ ```
459
+
460
+ ---
461
+
462
+ ## Promo Ticker Configuration
463
+
464
+ ### IPromoTicker
465
+
466
+ ```typescript
467
+ interface IPromoTicker {
468
+ promoCode: string; // Promo code to auto-apply
469
+ text: string[]; // Array of messages to rotate
470
+ separator: string; // Separator between messages (e.g., '|')
471
+ activeFrom: string; // Start date in ISO 8601 UTC format
472
+ activeUntil: string; // End date in ISO 8601 UTC format
473
+ }
474
+ ```
475
+
476
+ **Example:**
477
+
478
+ ```javascript
479
+ promoTicker: [
480
+ {
481
+ promoCode: 'SUMMER20',
482
+ text: ['20% Off Summer Sale', 'Free Shipping on $50+'],
483
+ separator: '|',
484
+ activeFrom: '2026-06-01T00:00:00Z',
485
+ activeUntil: '2026-08-31T23:59:59Z'
486
+ }
487
+ ]
488
+ ```
489
+
490
+ ---
491
+
492
+ ## Checkout Configuration
493
+
494
+ ### ILiquidCommerceElementsCheckoutConfig
495
+
496
+ ```typescript
497
+ interface ILiquidCommerceElementsCheckoutConfig {
498
+ pageUrl?: string; // URL with {token} placeholder
499
+ }
500
+ ```
501
+
502
+ When `pageUrl` is set, the cart's checkout button redirects to this URL instead of opening the checkout drawer. Use `{token}` as a placeholder for the checkout session token.
503
+
504
+ **Example:**
505
+
506
+ ```javascript
507
+ checkout: {
508
+ pageUrl: 'https://yoursite.com/checkout?lce_checkout={token}'
509
+ }
510
+ ```
511
+
512
+ ---
513
+
514
+ ## Proxy Configuration
515
+
516
+ ### IElementsProxyConfig
517
+
518
+ ```typescript
519
+ interface IElementsProxyConfig {
520
+ baseUrl: string;
521
+ headers?: Record<string, string>;
522
+ }
523
+ ```
524
+
525
+ Route SDK API requests through your own server to avoid ad blockers.
526
+
527
+ See [Proxy Setup Guide](../integration/proxy-setup.md) for implementation details.
528
+
529
+ ---
530
+
531
+ ## Development Configuration
532
+
533
+ ### ILiquidCommerceElementsDevelopmentConfig
534
+
535
+ ```typescript
536
+ interface ILiquidCommerceElementsDevelopmentConfig {
537
+ customApiUrl?: string;
538
+ openShadowDom?: boolean;
539
+ mockMode?: boolean;
540
+ }
541
+ ```
542
+
543
+ | Property | Type | Description |
544
+ |----------|------|-------------|
545
+ | `customApiUrl` | `string` | Custom API URL for local or custom backend testing |
546
+ | `openShadowDom` | `boolean` | Use an OPEN (inspectable) Shadow DOM instead of the default closed mode, for debugging. Shadow DOM is always attached; forced off in production (default: `false`) |
547
+ | `mockMode` | `boolean` | Enable mock mode to receive mock data from the API; sends an `X-Liquid-Api-Mock-Mode` header with all requests (default: `false`) |
548
+
549
+ > To pre-select a payment method and skip the card form (in any environment), use [`actions.checkout.setSavedPaymentMethod`](./actions/checkout-actions.md#actionscheckoutsetsavedpaymentmethod) instead.
550
+
551
+ ---
552
+
553
+ ## See Also
554
+
555
+ - [Client API](./client.md) - Client initialization and usage
556
+ - [TypeScript Types](./typescript-types.md) - Complete type reference
557
+ - [Theming Guide](../guides/theming.md) - Theming best practices