@shopgate/engage 7.30.1-beta.2 → 7.30.1-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.
|
@@ -188,7 +188,7 @@ const grantPermissions = (options = {}) => (dispatch, getState) => new Promise(a
|
|
|
188
188
|
// When available, use the duration of the native request as heuristic for user interaction.
|
|
189
189
|
// It's more accurate, since it won't include the time that communication with the app takes.
|
|
190
190
|
const requestDuration = typeof nativeRequestDuration === 'number' ? nativeRequestDuration : Date.now() - tsBeforeRequest;
|
|
191
|
-
wasUserInteraction = requestDuration >
|
|
191
|
+
wasUserInteraction = requestDuration > 1300;
|
|
192
192
|
}
|
|
193
193
|
optInRequested = wasUserInteraction;
|
|
194
194
|
dispatch(hardOptInSelected({
|
|
@@ -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
|
-
|
|
37
|
-
|
|
38
|
-
redirects.set(
|
|
39
|
-
|
|
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.
|
|
3
|
+
"version": "7.30.1-beta.3",
|
|
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.
|
|
21
|
-
"@shopgate/pwa-common-commerce": "7.30.1-beta.
|
|
22
|
-
"@shopgate/pwa-core": "7.30.1-beta.
|
|
23
|
-
"@shopgate/pwa-ui-ios": "7.30.1-beta.
|
|
24
|
-
"@shopgate/pwa-ui-material": "7.30.1-beta.
|
|
25
|
-
"@shopgate/pwa-ui-shared": "7.30.1-beta.
|
|
20
|
+
"@shopgate/pwa-common": "7.30.1-beta.3",
|
|
21
|
+
"@shopgate/pwa-common-commerce": "7.30.1-beta.3",
|
|
22
|
+
"@shopgate/pwa-core": "7.30.1-beta.3",
|
|
23
|
+
"@shopgate/pwa-ui-ios": "7.30.1-beta.3",
|
|
24
|
+
"@shopgate/pwa-ui-material": "7.30.1-beta.3",
|
|
25
|
+
"@shopgate/pwa-ui-shared": "7.30.1-beta.3",
|
|
26
26
|
"@stripe/react-stripe-js": "^1.16.5",
|
|
27
27
|
"@stripe/stripe-js": "^1.44.1",
|
|
28
28
|
"@virtuous/conductor": "~2.5.0",
|