@frontegg/redux-store 6.170.0 → 6.172.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.170.0
1
+ /** @license Frontegg v6.172.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.170.0
1
+ /** @license Frontegg v6.172.0
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -34,6 +34,10 @@ class FronteggNativeModule {
34
34
  throw new Error('FronteggNativeBridge is not available');
35
35
  }
36
36
  };
37
+ this.promptSocialLoginConsent = () => {
38
+ var _window$FronteggNativ3, _window$FronteggNativ4;
39
+ return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ3 : false;
40
+ };
37
41
  }
38
42
  isWebkitAvailable() {
39
43
  var _window$webkit3, _window$webkit3$messa;
@@ -44,8 +48,8 @@ class FronteggNativeModule {
44
48
  }
45
49
  isAvailable(method) {
46
50
  if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
47
- var _window$FronteggNativ3, _window$FronteggNativ4;
48
- return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4[method]) != null ? _window$FronteggNativ3 : false;
51
+ var _window$FronteggNativ5, _window$FronteggNativ6;
52
+ return (_window$FronteggNativ5 = (_window$FronteggNativ6 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ6[method]) != null ? _window$FronteggNativ5 : false;
49
53
  }
50
54
  return false;
51
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.170.0",
3
+ "version": "6.172.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
@@ -21,6 +21,7 @@ declare class FronteggNativeModule {
21
21
  isAvailable(method: string): boolean;
22
22
  loginWithSSO: (email: string) => void;
23
23
  loginWithSocialLogin: (url: string) => void;
24
+ promptSocialLoginConsent: () => boolean;
24
25
  }
25
26
  declare const _default: FronteggNativeModule;
26
27
  export default _default;
@@ -28,6 +28,10 @@ class FronteggNativeModule {
28
28
  throw new Error('FronteggNativeBridge is not available');
29
29
  }
30
30
  };
31
+ this.promptSocialLoginConsent = () => {
32
+ var _window$FronteggNativ3, _window$FronteggNativ4;
33
+ return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ3 : false;
34
+ };
31
35
  }
32
36
  isWebkitAvailable() {
33
37
  var _window$webkit3, _window$webkit3$messa;
@@ -38,8 +42,8 @@ class FronteggNativeModule {
38
42
  }
39
43
  isAvailable(method) {
40
44
  if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
41
- var _window$FronteggNativ3, _window$FronteggNativ4;
42
- return (_window$FronteggNativ3 = (_window$FronteggNativ4 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ4[method]) != null ? _window$FronteggNativ3 : false;
45
+ var _window$FronteggNativ5, _window$FronteggNativ6;
46
+ return (_window$FronteggNativ5 = (_window$FronteggNativ6 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ6[method]) != null ? _window$FronteggNativ5 : false;
43
47
  }
44
48
  return false;
45
49
  }