@shopgate/engage 7.30.1-beta.2 → 7.30.1-beta.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.
@@ -294,6 +294,15 @@ const grantPermissions = (options = {}) => (dispatch, getState) => new Promise(a
294
294
  setTimeout(() => {
295
295
  openAppSettings();
296
296
  }, 0);
297
+ return;
297
298
  }
299
+ resolve(resolveWithData ? {
300
+ success: false,
301
+ optInRequested,
302
+ status,
303
+ ...(appPermissionOptions ? {
304
+ options: appPermissionOptions
305
+ } : {})
306
+ } : false);
298
307
  });
299
308
  export default grantPermissions;
@@ -32,11 +32,24 @@ export default function app(subscribe) {
32
32
  }
33
33
 
34
34
  // Register redirects for app permission request routes
35
- redirects.set(PERMISSION_REQUEST_ROUTE_LOCATION, permissionRouteRedirectHandler);
36
- redirects.set(PERMISSION_REQUEST_ROUTE_LOCATION_BACKGROUND, permissionRouteRedirectHandler);
37
- redirects.set(PERMISSION_REQUEST_ROUTE_PUSH, permissionRouteRedirectHandler);
38
- redirects.set(PERMISSION_REQUEST_ROUTE_TRACKING, permissionRouteRedirectHandler);
39
- redirects.set(PERMISSION_REQUEST_ROUTE_CAMERA, permissionRouteRedirectHandler);
35
+ redirects.set(PERMISSION_REQUEST_ROUTE_LOCATION, permissionRouteRedirectHandler, {
36
+ showLoading: false
37
+ });
38
+ redirects.set(PERMISSION_REQUEST_ROUTE_LOCATION_BACKGROUND, permissionRouteRedirectHandler, {
39
+ showLoading: false
40
+ });
41
+ redirects.set(PERMISSION_REQUEST_ROUTE_PUSH, permissionRouteRedirectHandler, {
42
+ showLoading: false
43
+ });
44
+ redirects.set(PERMISSION_REQUEST_ROUTE_TRACKING, permissionRouteRedirectHandler, {
45
+ showLoading: false
46
+ });
47
+ redirects.set(PERMISSION_REQUEST_ROUTE_CAMERA, permissionRouteRedirectHandler, {
48
+ showLoading: false
49
+ });
50
+ redirects.set(PERMISSION_REQUEST_ROUTE_CAMERA, permissionRouteRedirectHandler, {
51
+ showLoading: false
52
+ });
40
53
  });
41
54
  subscribe(reloadApp$, () => {
42
55
  // A deployed app can only be reloaded on the base url. So we first set this as current route
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/engage",
3
- "version": "7.30.1-beta.2",
3
+ "version": "7.30.1-beta.4",
4
4
  "description": "Shopgate's ENGAGE library.",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Shopgate <support@shopgate.com>",
@@ -17,12 +17,12 @@
17
17
  "dependencies": {
18
18
  "@emotion/react": "^11.14.0",
19
19
  "@shopgate/native-modules": "1.0.0-beta.25",
20
- "@shopgate/pwa-common": "7.30.1-beta.2",
21
- "@shopgate/pwa-common-commerce": "7.30.1-beta.2",
22
- "@shopgate/pwa-core": "7.30.1-beta.2",
23
- "@shopgate/pwa-ui-ios": "7.30.1-beta.2",
24
- "@shopgate/pwa-ui-material": "7.30.1-beta.2",
25
- "@shopgate/pwa-ui-shared": "7.30.1-beta.2",
20
+ "@shopgate/pwa-common": "7.30.1-beta.4",
21
+ "@shopgate/pwa-common-commerce": "7.30.1-beta.4",
22
+ "@shopgate/pwa-core": "7.30.1-beta.4",
23
+ "@shopgate/pwa-ui-ios": "7.30.1-beta.4",
24
+ "@shopgate/pwa-ui-material": "7.30.1-beta.4",
25
+ "@shopgate/pwa-ui-shared": "7.30.1-beta.4",
26
26
  "@stripe/react-stripe-js": "^1.16.5",
27
27
  "@stripe/stripe-js": "^1.44.1",
28
28
  "@virtuous/conductor": "~2.5.0",