@liquidcommerce/elements-sdk 2.7.44 → 2.7.45

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 (54) hide show
  1. package/README.md +5 -3
  2. package/dist/index.checkout.esm.js +10918 -8932
  3. package/dist/index.esm.js +13321 -11337
  4. package/dist/ssr-stub.esm.js +3 -0
  5. package/dist/types/core/a11y/focus-manager.service.d.ts +1 -1
  6. package/dist/types/core/api/api-result.d.ts +3 -0
  7. package/dist/types/core/client/actions/client-analytics-action.service.d.ts +35 -0
  8. package/dist/types/core/client/actions/client-checkout-action.service.d.ts +6 -0
  9. package/dist/types/core/client/client-action.service.d.ts +1 -0
  10. package/dist/types/core/client/client-config.service.d.ts +2 -0
  11. package/dist/types/core/google-tag-manager.service.d.ts +3 -2
  12. package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +6 -0
  13. package/dist/types/core/pubsub/interfaces/core.interface.d.ts +3 -1
  14. package/dist/types/core/store/interfaces/checkout.interface.d.ts +4 -0
  15. package/dist/types/enums/core.enum.d.ts +3 -0
  16. package/dist/types/index.checkout.d.ts +4 -2
  17. package/dist/types/index.d.ts +1 -0
  18. package/dist/types/interfaces/analytics.interface.d.ts +41 -0
  19. package/dist/types/interfaces/api/cart.interface.d.ts +2 -0
  20. package/dist/types/interfaces/api/checkout.interface.d.ts +7 -1
  21. package/dist/types/interfaces/api/delivery.interface.d.ts +24 -0
  22. package/dist/types/interfaces/api/index.d.ts +1 -0
  23. package/dist/types/interfaces/api/product.interface.d.ts +2 -0
  24. package/dist/types/interfaces/client.interface.d.ts +5 -0
  25. package/dist/types/interfaces/config.interface.d.ts +1 -0
  26. package/dist/types/modules/cart/cart.commands.d.ts +3 -1
  27. package/dist/types/modules/cart/components/cart-item.component.d.ts +2 -0
  28. package/dist/types/modules/checkout/checkout.commands.d.ts +41 -0
  29. package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +4 -0
  30. package/dist/types/modules/checkout/components/checkout-delivery-method.component.d.ts +2 -0
  31. package/dist/types/modules/checkout/components/checkout-delivery-scheduling.component.d.ts +53 -0
  32. package/dist/types/modules/checkout/components/checkout-express-checkout.component.d.ts +3 -0
  33. package/dist/types/modules/checkout/components/checkout-item.component.d.ts +2 -0
  34. package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +3 -0
  35. package/dist/types/modules/checkout/components/index.d.ts +1 -0
  36. package/dist/types/modules/product-list/product-list.commands.d.ts +5 -0
  37. package/dist/types/ssr/stub.checkout.d.ts +3 -1
  38. package/dist/types/ssr/stub.d.ts +3 -1
  39. package/dist/types/utils/delivery-scheduling.d.ts +75 -0
  40. package/dist/types/utils/fulfillment-unavailable.d.ts +8 -0
  41. package/docs/v1/README.md +1 -0
  42. package/docs/v1/api/actions/analytics-actions.md +326 -0
  43. package/docs/v1/api/actions/checkout-actions.md +47 -2
  44. package/docs/v1/api/actions/product-actions.md +1 -0
  45. package/docs/v1/api/client.md +9 -2
  46. package/docs/v1/api/configuration.md +4 -0
  47. package/docs/v1/api/typescript-types.md +110 -1
  48. package/docs/v1/guides/accessibility.md +8 -1
  49. package/docs/v1/guides/cart-component.md +2 -0
  50. package/docs/v1/guides/checkout-component.md +64 -2
  51. package/docs/v1/guides/events.md +36 -2
  52. package/docs/v1/guides/product-component.md +6 -0
  53. package/docs/v1/reference/analytics.md +52 -9
  54. package/package.json +1 -1
package/README.md CHANGED
@@ -80,17 +80,19 @@ if (client) {
80
80
 
81
81
  - **Product**: Images, variants, fulfillment, add-to-cart
82
82
  - **Cart**: Drawer with items, totals, promo codes
83
- - **Checkout**: Drawer or hosted page with full purchase flow
83
+ - **Checkout**: Drawer or hosted page with full purchase flow, including scheduled delivery windows where the retailer offers them
84
84
  - **Address**: Delivery location capture
85
85
  - **Product List**: Filterable, searchable grids
86
86
 
87
87
  ## Key Methods (High Level)
88
88
 
89
89
  - `injectProductElement`, `injectCartElement`, `injectCheckoutElement`, `injectAddressElement`
90
- - `injectExpressCheckoutElement` (`injectExpressCheckout` on the checkout-only client)
90
+ - `injectExpressCheckoutElement` (`injectExpressCheckout` on the checkout-only client) — opt-in with
91
+ `development: { enableExpressCheckout: true }`
91
92
  - `injectProductList`, `injectProductListFilters`, `injectProductListSearch`
92
93
  - `ui.cartButton`, `ui.floatingCartButton`, `ui.cartSubtotal`, `ui.cartItemsCount`
93
- - `actions.product`, `actions.cart`, `actions.checkout`, `actions.address`
94
+ - `actions.product`, `actions.cart`, `actions.checkout`, `actions.address`, `actions.analytics`
95
+ (report GA4 events for steps your own UI renders; also on the checkout-only client)
94
96
  - `getInjectedComponents`, `destroy`
95
97
 
96
98
  ```javascript