@liquidcommerce/elements-sdk 2.6.0-beta.41 → 2.6.0-beta.43

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 (73) hide show
  1. package/README.md +1 -1
  2. package/dist/index.checkout.esm.js +6634 -6615
  3. package/dist/index.esm.js +11209 -11112
  4. package/dist/ssr-stub.checkout.esm.js +18 -0
  5. package/dist/ssr-stub.esm.js +269 -0
  6. package/dist/types/auto-initialize/shared-utils.d.ts +3 -1
  7. package/dist/types/clients/base.d.ts +4 -1
  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/core/base-component.service.d.ts +2 -1
  12. package/dist/types/core/client/client-action.service.d.ts +1 -1
  13. package/dist/types/core/client/client-config.service.d.ts +1 -1
  14. package/dist/types/core/pubsub/pubsub.service.d.ts +0 -2
  15. package/dist/types/core/singleton-manager.service.d.ts +1 -1
  16. package/dist/types/index.checkout.d.ts +3 -2
  17. package/dist/types/index.checkout.umd.d.ts +1 -1
  18. package/dist/types/index.d.ts +4 -1
  19. package/dist/types/interfaces/client.interface.d.ts +62 -0
  20. package/dist/types/interfaces/component.interface.d.ts +7 -0
  21. package/dist/types/interfaces/config.interface.d.ts +45 -0
  22. package/dist/types/interfaces/configs/address.interface.d.ts +1 -1
  23. package/dist/types/interfaces/configs/cart.interface.d.ts +1 -1
  24. package/dist/types/interfaces/configs/checkout.interface.d.ts +1 -1
  25. package/dist/types/interfaces/configs/global.interface.d.ts +1 -1
  26. package/dist/types/interfaces/configs/product-list.interface.d.ts +1 -1
  27. package/dist/types/interfaces/configs/product.interface.d.ts +1 -1
  28. package/dist/types/interfaces/injection.interface.d.ts +44 -0
  29. package/dist/types/modules/checkout/components/checkout-stripe-form.component.d.ts +2 -1
  30. package/dist/types/modules/product/components/product-image-carousel.component.d.ts +3 -0
  31. package/dist/types/modules/product/components/product-retailers-carousel.component.d.ts +3 -0
  32. package/dist/types/modules/product-list/components/product-list-filters.component.d.ts +3 -1
  33. package/dist/types/modules/product-list/product-list.commands.d.ts +1 -1
  34. package/dist/types/modules/product-list/product-list.component.d.ts +1 -1
  35. package/dist/types/modules/ui-components/lce-element/lce-element.component.d.ts +2 -1
  36. package/dist/types/ssr/stub.checkout.d.ts +6 -0
  37. package/dist/types/ssr/stub.d.ts +10 -0
  38. package/dist/types/utils/dom-compat.d.ts +2 -0
  39. package/docs/v1/README.md +2 -2
  40. package/docs/v1/api/actions/address-actions.md +11 -11
  41. package/docs/v1/api/actions/cart-actions.md +13 -13
  42. package/docs/v1/api/actions/checkout-actions.md +23 -23
  43. package/docs/v1/api/actions/product-actions.md +6 -6
  44. package/docs/v1/api/client.md +11 -11
  45. package/docs/v1/api/ui-helpers.md +11 -11
  46. package/docs/v1/examples/advanced-patterns.md +1 -1
  47. package/docs/v1/examples/checkout-flow.md +1 -1
  48. package/docs/v1/getting-started/concepts.md +7 -7
  49. package/docs/v1/getting-started/installation.md +2 -2
  50. package/docs/v1/getting-started/quick-start.md +3 -3
  51. package/docs/v1/guides/address-component.md +11 -11
  52. package/docs/v1/guides/best-practices.md +14 -14
  53. package/docs/v1/guides/cart-component.md +23 -23
  54. package/docs/v1/guides/checkout-component.md +24 -24
  55. package/docs/v1/guides/events.md +812 -77
  56. package/docs/v1/guides/product-component.md +5 -5
  57. package/docs/v1/integration/nextjs.md +11 -2
  58. package/docs/v1/integration/react.md +3 -3
  59. package/docs/v1/integration/vanilla-js.md +1 -1
  60. package/docs/v1/integration/vue.md +24 -0
  61. package/docs/v1/reference/browser-support.md +9 -0
  62. package/docs/v1/reference/error-handling.md +2 -2
  63. package/docs/v1/reference/troubleshooting.md +10 -2
  64. package/package.json +13 -9
  65. package/dist/types/interfaces/core.interface.d.ts +0 -139
  66. package/docs/gitbook/actions.md +0 -160
  67. package/docs/gitbook/address.md +0 -48
  68. package/docs/gitbook/cart.md +0 -65
  69. package/docs/gitbook/checkout.md +0 -131
  70. package/docs/gitbook/events.md +0 -137
  71. package/docs/gitbook/overview.md +0 -166
  72. package/docs/gitbook/product.md +0 -64
  73. 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
  ```