@shopgate/pwa-common 7.32.0-beta.2 → 7.32.0-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-common",
3
- "version": "7.32.0-beta.2",
3
+ "version": "7.32.0-beta.3",
4
4
  "description": "Common library for the Shopgate Connect PWA.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -17,7 +17,7 @@
17
17
  "dependencies": {
18
18
  "@redux-devtools/extension": "^3.3.0",
19
19
  "@sentry/browser": "6.0.1",
20
- "@shopgate/pwa-benchmark": "7.32.0-beta.2",
20
+ "@shopgate/pwa-benchmark": "7.32.0-beta.3",
21
21
  "@virtuous/conductor": "~2.5.0",
22
22
  "@virtuous/react-conductor": "~2.5.0",
23
23
  "@virtuous/redux-persister": "1.1.0-beta.7",
@@ -40,7 +40,7 @@
40
40
  "swiper": "12.2.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@shopgate/pwa-core": "7.32.0-beta.2",
43
+ "@shopgate/pwa-core": "7.32.0-beta.3",
44
44
  "@types/lodash": "^4.17.24",
45
45
  "@types/react-portal": "^3.0.9",
46
46
  "lodash": "^4.17.23",
@@ -9,7 +9,7 @@ import Route from '@virtuous/conductor/Route';
9
9
  import { Linking } from '@shopgate/native-modules';
10
10
  import { HISTORY_RESET_TO } from '@shopgate/pwa-common/constants/ActionTypes';
11
11
  import { logger } from '@shopgate/pwa-core';
12
- import { isPageAdminPreviewActive } from '@shopgate/engage/admin-preview/helpers';
12
+ import { isNavigationBlocked } from '@shopgate/engage/admin-preview/helpers';
13
13
  import addCouponsToCart from '@shopgate/pwa-common-commerce/cart/actions/addCouponsToCart';
14
14
  import { getCurrentRoute, getRouterStackIndex } from "../selectors/router";
15
15
  import { LoadingProvider } from "../providers";
@@ -31,7 +31,7 @@ import ToastProvider from "../providers/toast";
31
31
  */
32
32
  export default function routerSubscriptions(subscribe) {
33
33
  subscribe(navigate$, async params => {
34
- if (isPageAdminPreviewActive()) {
34
+ if (isNavigationBlocked()) {
35
35
  // No navigation is allowed in page preview mode.
36
36
  return;
37
37
  }