@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.
- package/README.md +5 -3
- package/dist/index.checkout.esm.js +10918 -8932
- package/dist/index.esm.js +13321 -11337
- package/dist/ssr-stub.esm.js +3 -0
- package/dist/types/core/a11y/focus-manager.service.d.ts +1 -1
- package/dist/types/core/api/api-result.d.ts +3 -0
- package/dist/types/core/client/actions/client-analytics-action.service.d.ts +35 -0
- package/dist/types/core/client/actions/client-checkout-action.service.d.ts +6 -0
- package/dist/types/core/client/client-action.service.d.ts +1 -0
- package/dist/types/core/client/client-config.service.d.ts +2 -0
- package/dist/types/core/google-tag-manager.service.d.ts +3 -2
- package/dist/types/core/pubsub/interfaces/checkout.interface.d.ts +6 -0
- package/dist/types/core/pubsub/interfaces/core.interface.d.ts +3 -1
- package/dist/types/core/store/interfaces/checkout.interface.d.ts +4 -0
- package/dist/types/enums/core.enum.d.ts +3 -0
- package/dist/types/index.checkout.d.ts +4 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/interfaces/analytics.interface.d.ts +41 -0
- package/dist/types/interfaces/api/cart.interface.d.ts +2 -0
- package/dist/types/interfaces/api/checkout.interface.d.ts +7 -1
- package/dist/types/interfaces/api/delivery.interface.d.ts +24 -0
- package/dist/types/interfaces/api/index.d.ts +1 -0
- package/dist/types/interfaces/api/product.interface.d.ts +2 -0
- package/dist/types/interfaces/client.interface.d.ts +5 -0
- package/dist/types/interfaces/config.interface.d.ts +1 -0
- package/dist/types/modules/cart/cart.commands.d.ts +3 -1
- package/dist/types/modules/cart/components/cart-item.component.d.ts +2 -0
- package/dist/types/modules/checkout/checkout.commands.d.ts +41 -0
- package/dist/types/modules/checkout/components/checkout-completed.component.d.ts +4 -0
- package/dist/types/modules/checkout/components/checkout-delivery-method.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-delivery-scheduling.component.d.ts +53 -0
- package/dist/types/modules/checkout/components/checkout-express-checkout.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/checkout-item.component.d.ts +2 -0
- package/dist/types/modules/checkout/components/checkout-payment.component.d.ts +3 -0
- package/dist/types/modules/checkout/components/index.d.ts +1 -0
- package/dist/types/modules/product-list/product-list.commands.d.ts +5 -0
- package/dist/types/ssr/stub.checkout.d.ts +3 -1
- package/dist/types/ssr/stub.d.ts +3 -1
- package/dist/types/utils/delivery-scheduling.d.ts +75 -0
- package/dist/types/utils/fulfillment-unavailable.d.ts +8 -0
- package/docs/v1/README.md +1 -0
- package/docs/v1/api/actions/analytics-actions.md +326 -0
- package/docs/v1/api/actions/checkout-actions.md +47 -2
- package/docs/v1/api/actions/product-actions.md +1 -0
- package/docs/v1/api/client.md +9 -2
- package/docs/v1/api/configuration.md +4 -0
- package/docs/v1/api/typescript-types.md +110 -1
- package/docs/v1/guides/accessibility.md +8 -1
- package/docs/v1/guides/cart-component.md +2 -0
- package/docs/v1/guides/checkout-component.md +64 -2
- package/docs/v1/guides/events.md +36 -2
- package/docs/v1/guides/product-component.md +6 -0
- package/docs/v1/reference/analytics.md +52 -9
- 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
|