@liquidcommerce/elements-sdk 2.6.0-beta.42 → 2.6.0-beta.44

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