@shopgate/pwa-common-commerce 7.29.8 → 7.29.9-beta.2

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.
@@ -6,7 +6,7 @@ import _regeneratorRuntime from"@babel/runtime/regenerator";var _excluded=["coup
6
6
  * sync with the remote cart from the server.
7
7
  */var cartNeedsSync$=userDidUpdate$.merge(remoteCartDidUpdate$,checkoutSucceeded$,cartWillEnterIdle$);/**
8
8
  * Gets triggered when the app is started or the cart route is entered.
9
- */var cartDidEnterOrAppDidStart$=cartDidEnter$.merge(appDidStart$);var cartBusy$=cartRequesting$.merge(couponsAdded$,couponsDeleted$,productsAdded$,productsModified$,productsDeleted$);var cartIdle$=cartReceived$.merge(couponsUpdated$,productsUpdated$);/**
9
+ */var cartDidEnterOrAppDidStart$=cartDidEnter$.merge(appDidStart$);var cartBusy$=cartRequesting$.merge(couponsAdded$,couponsDeleted$,productsAdded$,productsModified$,productsDeleted$);var cartIdle$=cartReceived$.merge(couponsUpdated$.switchMap(function(){return cartReceived$.first();}),productsUpdated$.switchMap(function(){return cartReceived$.first();}));/**
10
10
  * Gets triggered when the app will start.
11
11
  */subscribe(appWillStart$,function(){// Use the redirect system to handle coupons from deep links.
12
12
  redirects.set(DEEPLINK_CART_ADD_COUPON_PATTERN,function(_ref){var dispatch=_ref.dispatch,action=_ref.action;var _action$params$pathna=action.params.pathname.split('/'),_action$params$pathna2=_slicedToArray(_action$params$pathna,3),coupon=_action$params$pathna2[2];if(coupon){dispatch(addCouponsToCart([coupon.split('?')[0]],false));}return null;});// This will be handled in 2 deferred subscriptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common-commerce",
3
- "version": "7.29.8",
3
+ "version": "7.29.9-beta.2",
4
4
  "description": "Commerce library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -19,8 +19,8 @@
19
19
  "reselect": "^4.1.8"
20
20
  },
21
21
  "devDependencies": {
22
- "@shopgate/pwa-common": "7.29.8",
23
- "@shopgate/pwa-core": "7.29.8",
22
+ "@shopgate/pwa-common": "7.29.9-beta.2",
23
+ "@shopgate/pwa-core": "7.29.9-beta.2",
24
24
  "lodash": "^4.17.4",
25
25
  "react": "~16.14.0",
26
26
  "react-dom": "~16.14.0"