@commercengine/checkout 0.1.3 → 0.1.4

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 CHANGED
@@ -264,6 +264,15 @@ initCheckout({
264
264
  sessionMode: "continue-existing", // or "force-new"
265
265
  autoDetectQuickBuy: false, // parse URL params
266
266
 
267
+ // Features
268
+ features: {
269
+ loyalty: true, // Loyalty points redemption (default: true)
270
+ coupons: true, // Coupon/promo codes (default: true)
271
+ collectInStore: false, // Collect-in-store option (default: false)
272
+ freeShippingProgress: true, // Free shipping progress tracker (default: true)
273
+ productRecommendations: true, // Product recommendations in cart (default: true)
274
+ },
275
+
267
276
  // Callbacks
268
277
  onReady: () => {},
269
278
  onOpen: () => {},
@@ -333,6 +342,7 @@ All types are exported for convenience:
333
342
  import type {
334
343
  // Configuration
335
344
  CheckoutConfig,
345
+ CheckoutFeatures,
336
346
  Environment,
337
347
  AuthMode,
338
348
  SessionMode,
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { a as destroyCheckout, c as subscribeToCheckout, i as checkoutStore, n as CheckoutState, o as getCheckout, r as CheckoutStore, s as initCheckout, t as CheckoutActions } from "./store.cjs";
2
- import { AddToCartItem, AuthLoginData, AuthLogoutData, AuthMode, AuthRefreshData, CartData, Channel, CheckoutConfig, CheckoutEventType, Environment, ErrorData, LoginMethod, OrderData, QuickBuyConfig, SessionMode, UserInfo } from "@commercengine/js";
3
- export { type AddToCartItem, type AuthLoginData, type AuthLogoutData, type AuthMode, type AuthRefreshData, type CartData, type Channel, type CheckoutActions, type CheckoutConfig, type CheckoutEventType, type CheckoutState, type CheckoutStore, type Environment, type ErrorData, type LoginMethod, type OrderData, type QuickBuyConfig, type SessionMode, type UserInfo, checkoutStore, destroyCheckout, getCheckout, initCheckout, subscribeToCheckout };
2
+ import { AddToCartItem, AuthLoginData, AuthLogoutData, AuthMode, AuthRefreshData, CartData, Channel, CheckoutConfig, CheckoutEventType, CheckoutFeatures, Environment, ErrorData, LoginMethod, OrderData, QuickBuyConfig, SessionMode, UserInfo } from "@commercengine/js";
3
+ export { type AddToCartItem, type AuthLoginData, type AuthLogoutData, type AuthMode, type AuthRefreshData, type CartData, type Channel, type CheckoutActions, type CheckoutConfig, type CheckoutEventType, type CheckoutFeatures, type CheckoutState, type CheckoutStore, type Environment, type ErrorData, type LoginMethod, type OrderData, type QuickBuyConfig, type SessionMode, type UserInfo, checkoutStore, destroyCheckout, getCheckout, initCheckout, subscribeToCheckout };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { a as destroyCheckout, c as subscribeToCheckout, i as checkoutStore, n as CheckoutState, o as getCheckout, r as CheckoutStore, s as initCheckout, t as CheckoutActions } from "./store.js";
2
- import { AddToCartItem, AuthLoginData, AuthLogoutData, AuthMode, AuthRefreshData, CartData, Channel, CheckoutConfig, CheckoutEventType, Environment, ErrorData, LoginMethod, OrderData, QuickBuyConfig, SessionMode, UserInfo } from "@commercengine/js";
3
- export { type AddToCartItem, type AuthLoginData, type AuthLogoutData, type AuthMode, type AuthRefreshData, type CartData, type Channel, type CheckoutActions, type CheckoutConfig, type CheckoutEventType, type CheckoutState, type CheckoutStore, type Environment, type ErrorData, type LoginMethod, type OrderData, type QuickBuyConfig, type SessionMode, type UserInfo, checkoutStore, destroyCheckout, getCheckout, initCheckout, subscribeToCheckout };
2
+ import { AddToCartItem, AuthLoginData, AuthLogoutData, AuthMode, AuthRefreshData, CartData, Channel, CheckoutConfig, CheckoutEventType, CheckoutFeatures, Environment, ErrorData, LoginMethod, OrderData, QuickBuyConfig, SessionMode, UserInfo } from "@commercengine/js";
3
+ export { type AddToCartItem, type AuthLoginData, type AuthLogoutData, type AuthMode, type AuthRefreshData, type CartData, type Channel, type CheckoutActions, type CheckoutConfig, type CheckoutEventType, type CheckoutFeatures, type CheckoutState, type CheckoutStore, type Environment, type ErrorData, type LoginMethod, type OrderData, type QuickBuyConfig, type SessionMode, type UserInfo, checkoutStore, destroyCheckout, getCheckout, initCheckout, subscribeToCheckout };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercengine/checkout",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Universal checkout SDK for Commerce Engine - works with React, Vue, Svelte, Solid, and vanilla JS",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -66,7 +66,7 @@
66
66
  ],
67
67
  "dependencies": {
68
68
  "zustand": "^5.0.0",
69
- "@commercengine/js": "0.3.2"
69
+ "@commercengine/js": "0.3.3"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "react": ">=17.0.0",