@liquidcommerce/elements-sdk 2.7.1 → 2.7.3

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 (110) hide show
  1. package/README.md +1 -1
  2. package/dist/index.checkout.esm.js +6788 -6890
  3. package/dist/index.esm.js +10440 -10643
  4. package/dist/ssr-stub.checkout.esm.js +18 -0
  5. package/dist/ssr-stub.esm.js +270 -0
  6. package/dist/types/auto-initialize/shared-utils.d.ts +3 -1
  7. package/dist/types/clients/base.d.ts +6 -4
  8. package/dist/types/clients/builder.d.ts +2 -1
  9. package/dist/types/clients/checkout.d.ts +2 -10
  10. package/dist/types/clients/main.d.ts +2 -1
  11. package/dist/types/constants/core.constant.d.ts +0 -5
  12. package/dist/types/core/api/api-client.service.d.ts +16 -15
  13. package/dist/types/core/api/api-result.d.ts +19 -0
  14. package/dist/types/core/api/auth-client.service.d.ts +13 -5
  15. package/dist/types/core/base-component.service.d.ts +2 -1
  16. package/dist/types/core/client/client-action.service.d.ts +1 -1
  17. package/dist/types/core/client/client-config.service.d.ts +1 -1
  18. package/dist/types/core/pubsub/pubsub.service.d.ts +0 -2
  19. package/dist/types/core/singleton-manager.service.d.ts +12 -8
  20. package/dist/types/core/store/interfaces/core.interface.d.ts +7 -11
  21. package/dist/types/core/store/interfaces/product-list.interface.d.ts +12 -28
  22. package/dist/types/core/store/store.service.d.ts +1 -0
  23. package/dist/types/core/telemetry/telemetry.service.d.ts +1 -0
  24. package/dist/types/enums/core.enum.d.ts +5 -4
  25. package/dist/types/index.checkout.d.ts +3 -2
  26. package/dist/types/index.checkout.umd.d.ts +1 -1
  27. package/dist/types/index.d.ts +4 -1
  28. package/dist/types/interfaces/client.interface.d.ts +72 -0
  29. package/dist/types/interfaces/component.interface.d.ts +7 -0
  30. package/dist/types/interfaces/config.interface.d.ts +46 -0
  31. package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
  32. package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
  33. package/dist/types/interfaces/configs/checkout.interface.d.ts +1 -1
  34. package/dist/types/interfaces/configs/global.interface.d.ts +1 -1
  35. package/dist/types/interfaces/configs/product-list.interface.d.ts +1 -1
  36. package/dist/types/interfaces/configs/product.interface.d.ts +1 -1
  37. package/dist/types/interfaces/injection.interface.d.ts +44 -0
  38. package/dist/types/modules/address/address-input.component.d.ts +0 -11
  39. package/dist/types/modules/address/address.command.d.ts +1 -1
  40. package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +1 -0
  41. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
  42. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +3 -0
  43. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +3 -0
  44. package/dist/types/modules/product/components/product-retailers-popup-list.component.d.ts +3 -2
  45. package/dist/types/modules/product/product.commands.d.ts +1 -3
  46. package/dist/types/modules/product-list/components/card-components/index.d.ts +0 -2
  47. package/dist/types/modules/product-list/components/card-components/product-badge.d.ts +1 -0
  48. package/dist/types/modules/product-list/components/card-components/product-sizes-list.d.ts +9 -3
  49. package/dist/types/modules/product-list/components/index.d.ts +1 -1
  50. package/dist/types/modules/product-list/components/product-list-engraving.component.d.ts +2 -5
  51. package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +3 -3
  52. package/dist/types/modules/product-list/components/product-list-product-engraving-lines.component.d.ts +21 -0
  53. package/dist/types/modules/product-list/components/product-list-product-pre-cart.component.d.ts +30 -14
  54. package/dist/types/modules/product-list/components/product-list-search.component.d.ts +0 -2
  55. package/dist/types/modules/product-list/product-list-card.component.d.ts +18 -16
  56. package/dist/types/modules/product-list/product-list-filter.utils.d.ts +8 -0
  57. package/dist/types/modules/product-list/product-list.commands.d.ts +7 -54
  58. package/dist/types/modules/product-list/product-list.component.d.ts +2 -11
  59. package/dist/types/modules/product-list/product-list.interface.d.ts +0 -30
  60. package/dist/types/modules/ui-components/drawer/drawer.component.d.ts +1 -0
  61. package/dist/types/modules/ui-components/engraving/engraving-form.component.d.ts +1 -10
  62. package/dist/types/modules/ui-components/engraving/engraving-view.component.d.ts +4 -1
  63. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  64. package/dist/types/modules/ui-components/promo-code-ticker/promo-code-ticker.component.d.ts +1 -1
  65. package/dist/types/modules/ui-components/ui.commands.d.ts +6 -4
  66. package/dist/types/ssr/stub.checkout.d.ts +6 -0
  67. package/dist/types/ssr/stub.d.ts +10 -0
  68. package/dist/types/utils/dom-compat.d.ts +2 -0
  69. package/dist/types/utils/product-selection.d.ts +16 -0
  70. package/dist/types/utils/product.d.ts +10 -0
  71. package/docs/v1/README.md +2 -2
  72. package/docs/v1/api/actions/address-actions.md +11 -11
  73. package/docs/v1/api/actions/cart-actions.md +13 -13
  74. package/docs/v1/api/actions/checkout-actions.md +23 -23
  75. package/docs/v1/api/actions/product-actions.md +6 -6
  76. package/docs/v1/api/client.md +11 -11
  77. package/docs/v1/api/ui-helpers.md +11 -11
  78. package/docs/v1/examples/advanced-patterns.md +1 -1
  79. package/docs/v1/examples/checkout-flow.md +1 -1
  80. package/docs/v1/getting-started/concepts.md +7 -7
  81. package/docs/v1/getting-started/installation.md +2 -2
  82. package/docs/v1/getting-started/quick-start.md +3 -3
  83. package/docs/v1/guides/address-component.md +11 -11
  84. package/docs/v1/guides/best-practices.md +14 -14
  85. package/docs/v1/guides/cart-component.md +23 -23
  86. package/docs/v1/guides/checkout-component.md +24 -24
  87. package/docs/v1/guides/events.md +812 -77
  88. package/docs/v1/guides/product-component.md +5 -5
  89. package/docs/v1/integration/nextjs.md +11 -2
  90. package/docs/v1/integration/react.md +3 -3
  91. package/docs/v1/integration/vanilla-js.md +1 -1
  92. package/docs/v1/integration/vue.md +24 -0
  93. package/docs/v1/reference/browser-support.md +9 -0
  94. package/docs/v1/reference/error-handling.md +2 -2
  95. package/docs/v1/reference/troubleshooting.md +10 -2
  96. package/package.json +17 -13
  97. package/dist/types/interfaces/core.interface.d.ts +0 -139
  98. package/dist/types/modules/product-list/components/card-components/product-fulfillments.d.ts +0 -12
  99. package/dist/types/modules/product-list/components/card-components/product-title.d.ts +0 -6
  100. package/dist/types/modules/product-list/components/product-list-retailers.component.d.ts +0 -26
  101. package/dist/types/modules/ui-components/modal/modal.component.d.ts +0 -23
  102. package/dist/types/modules/ui-components/styles/modal.style.d.ts +0 -1
  103. package/docs/gitbook/actions.md +0 -160
  104. package/docs/gitbook/address.md +0 -48
  105. package/docs/gitbook/cart.md +0 -65
  106. package/docs/gitbook/checkout.md +0 -131
  107. package/docs/gitbook/events.md +0 -137
  108. package/docs/gitbook/overview.md +0 -166
  109. package/docs/gitbook/product.md +0 -64
  110. package/docs/gitbook/quick-start-guide.md +0 -393
package/README.md CHANGED
@@ -88,7 +88,7 @@ await client.injectProductElement([
88
88
 
89
89
  ```javascript
90
90
  // Example: add a product and open cart
91
- await window.elements.actions.cart.addProduct([
91
+ await window.LiquidCommerce.elements.actions.cart.addProduct([
92
92
  { identifier: '00619947000020', fulfillmentType: 'shipping', quantity: 1 }
93
93
  ], true);
94
94
  ```