@frontegg/js 7.50.0-alpha.0 → 7.50.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 v7.50.0-alpha.0
1
+ /** @license Frontegg v7.50.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 v7.50.0-alpha.0
1
+ /** @license Frontegg v7.50.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/version.js CHANGED
@@ -5,6 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _default = {
8
- cdnVersion: '7.50.0-alpha.0'
8
+ cdnVersion: '7.50.0'
9
9
  };
10
10
  exports["default"] = _default;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@frontegg/js",
3
- "version": "7.50.0-alpha.0",
3
+ "version": "7.50.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
7
7
  "dependencies": {
8
8
  "@babel/runtime": "^7.18.6",
9
- "@frontegg/types": "7.50.0-alpha.0"
9
+ "@frontegg/types": "7.50.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1625,7 +1625,7 @@ __webpack_require__.r(__webpack_exports__);
1625
1625
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1626
1626
  /* harmony export */ });
1627
1627
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1628
- cdnVersion: '7.50.0-alpha.0'
1628
+ cdnVersion: '7.50.0'
1629
1629
  });
1630
1630
 
1631
1631
  /***/ }),
@@ -18044,7 +18044,7 @@ __webpack_require__.r(__webpack_exports__);
18044
18044
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
18045
18045
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
18046
18046
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
18047
- /** @license Frontegg v7.50.0-alpha.0
18047
+ /** @license Frontegg v7.50.0
18048
18048
  *
18049
18049
  * This source code is licensed under the MIT license found in the
18050
18050
  * LICENSE file in the root directory of this source tree.
@@ -24229,13 +24229,13 @@ __webpack_require__.r(__webpack_exports__);
24229
24229
  class FronteggNativeModule {
24230
24230
  constructor() {
24231
24231
  this.loginWithSSO = email => {
24232
- if (this.isWebkitAvailable()) {
24232
+ if (this.isIOSNativeBridgeAvailable()) {
24233
24233
  var _window$webkit, _window$webkit$messag, _window$webkit$messag2;
24234
24234
  (_window$webkit = window.webkit) == null ? void 0 : (_window$webkit$messag = _window$webkit.messageHandlers) == null ? void 0 : (_window$webkit$messag2 = _window$webkit$messag.FronteggNativeBridge) == null ? void 0 : _window$webkit$messag2.postMessage(JSON.stringify({
24235
24235
  action: 'loginWithSSO',
24236
24236
  payload: email
24237
24237
  }));
24238
- } else if (this.isJsInterfaceAvailable()) {
24238
+ } else if (this.isAndroidNativeBridgeAvailable()) {
24239
24239
  var _window$FronteggNativ;
24240
24240
  (_window$FronteggNativ = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ.loginWithSSO(email);
24241
24241
  } else {
@@ -24243,13 +24243,13 @@ class FronteggNativeModule {
24243
24243
  }
24244
24244
  };
24245
24245
  this.loginWithSocialLogin = url => {
24246
- if (this.isWebkitAvailable()) {
24246
+ if (this.isIOSNativeBridgeAvailable()) {
24247
24247
  var _window$webkit2, _window$webkit2$messa, _window$webkit2$messa2;
24248
24248
  (_window$webkit2 = window.webkit) == null ? void 0 : (_window$webkit2$messa = _window$webkit2.messageHandlers) == null ? void 0 : (_window$webkit2$messa2 = _window$webkit2$messa.FronteggNativeBridge) == null ? void 0 : _window$webkit2$messa2.postMessage(JSON.stringify({
24249
24249
  action: 'loginWithSocialLogin',
24250
24250
  payload: url
24251
24251
  }));
24252
- } else if (this.isJsInterfaceAvailable()) {
24252
+ } else if (this.isAndroidNativeBridgeAvailable()) {
24253
24253
  var _window$FronteggNativ2;
24254
24254
  (_window$FronteggNativ2 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ2.loginWithSocialLogin(url);
24255
24255
  } else {
@@ -24257,13 +24257,13 @@ class FronteggNativeModule {
24257
24257
  }
24258
24258
  };
24259
24259
  this.loginWithSocialLoginProvider = provider => {
24260
- if (this.isWebkitAvailable()) {
24260
+ if (this.isIOSNativeBridgeAvailable()) {
24261
24261
  var _window$webkit3, _window$webkit3$messa, _window$webkit3$messa2;
24262
24262
  (_window$webkit3 = window.webkit) == null ? void 0 : (_window$webkit3$messa = _window$webkit3.messageHandlers) == null ? void 0 : (_window$webkit3$messa2 = _window$webkit3$messa.FronteggNativeBridge) == null ? void 0 : _window$webkit3$messa2.postMessage(JSON.stringify({
24263
24263
  action: 'loginWithSocialLoginProvider',
24264
24264
  payload: provider
24265
24265
  }));
24266
- } else if (this.isJsInterfaceAvailable()) {
24266
+ } else if (this.isAndroidNativeBridgeAvailable()) {
24267
24267
  var _window$FronteggNativ3;
24268
24268
  (_window$FronteggNativ3 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ3.loginWithSocialLoginProvider(provider);
24269
24269
  } else {
@@ -24271,13 +24271,13 @@ class FronteggNativeModule {
24271
24271
  }
24272
24272
  };
24273
24273
  this.loginWithCustomSocialLoginProvider = providerId => {
24274
- if (this.isWebkitAvailable()) {
24274
+ if (this.isIOSNativeBridgeAvailable()) {
24275
24275
  var _window$webkit4, _window$webkit4$messa, _window$webkit4$messa2;
24276
24276
  (_window$webkit4 = window.webkit) == null ? void 0 : (_window$webkit4$messa = _window$webkit4.messageHandlers) == null ? void 0 : (_window$webkit4$messa2 = _window$webkit4$messa.FronteggNativeBridge) == null ? void 0 : _window$webkit4$messa2.postMessage(JSON.stringify({
24277
24277
  action: 'loginWithCustomSocialLoginProvider',
24278
24278
  payload: providerId
24279
24279
  }));
24280
- } else if (this.isJsInterfaceAvailable()) {
24280
+ } else if (this.isAndroidNativeBridgeAvailable()) {
24281
24281
  var _window$FronteggNativ4;
24282
24282
  (_window$FronteggNativ4 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ4.loginWithCustomSocialLoginProvider(providerId);
24283
24283
  } else {
@@ -24285,7 +24285,7 @@ class FronteggNativeModule {
24285
24285
  }
24286
24286
  };
24287
24287
  this.suggestSavePassword = (email, password) => {
24288
- if (this.isWebkitAvailable()) {
24288
+ if (this.isIOSNativeBridgeAvailable()) {
24289
24289
  var _window$webkit5, _window$webkit5$messa, _window$webkit5$messa2;
24290
24290
  (_window$webkit5 = window.webkit) == null ? void 0 : (_window$webkit5$messa = _window$webkit5.messageHandlers) == null ? void 0 : (_window$webkit5$messa2 = _window$webkit5$messa.FronteggNativeBridge) == null ? void 0 : _window$webkit5$messa2.postMessage(JSON.stringify({
24291
24291
  action: 'suggestSavePassword',
@@ -24294,7 +24294,7 @@ class FronteggNativeModule {
24294
24294
  password
24295
24295
  })
24296
24296
  }));
24297
- } else if (this.isJsInterfaceAvailable()) {
24297
+ } else if (this.isAndroidNativeBridgeAvailable()) {
24298
24298
  var _window$FronteggNativ5;
24299
24299
  (_window$FronteggNativ5 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ5.suggestSavePassword(email, password);
24300
24300
  } else {
@@ -24306,11 +24306,11 @@ class FronteggNativeModule {
24306
24306
  return (_window$FronteggNativ6 = (_window$FronteggNativ7 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ7['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ6 : false;
24307
24307
  };
24308
24308
  }
24309
- isWebkitAvailable() {
24309
+ isIOSNativeBridgeAvailable() {
24310
24310
  var _window$webkit6, _window$webkit6$messa;
24311
24311
  return ((_window$webkit6 = window.webkit) == null ? void 0 : (_window$webkit6$messa = _window$webkit6.messageHandlers) == null ? void 0 : _window$webkit6$messa.FronteggNativeBridge) != null;
24312
24312
  }
24313
- isJsInterfaceAvailable() {
24313
+ isAndroidNativeBridgeAvailable() {
24314
24314
  return window.FronteggNativeBridge != null;
24315
24315
  }
24316
24316
 
@@ -24333,7 +24333,7 @@ class FronteggNativeModule {
24333
24333
  return this.isAvailable('suggestSavePassword');
24334
24334
  }
24335
24335
  isAvailable(method) {
24336
- if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
24336
+ if (this.isIOSNativeBridgeAvailable() || this.isAndroidNativeBridgeAvailable()) {
24337
24337
  var _window$FronteggNativ8, _window$FronteggNativ9;
24338
24338
  return (_window$FronteggNativ8 = (_window$FronteggNativ9 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ9[method]) != null ? _window$FronteggNativ8 : false;
24339
24339
  }
@@ -28088,7 +28088,7 @@ __webpack_require__.r(__webpack_exports__);
28088
28088
  /* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
28089
28089
  /* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
28090
28090
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
28091
- /** @license Frontegg v7.50.0-alpha.0
28091
+ /** @license Frontegg v7.50.0
28092
28092
  *
28093
28093
  * This source code is licensed under the MIT license found in the
28094
28094
  * LICENSE file in the root directory of this source tree.
@@ -30718,7 +30718,7 @@ __webpack_require__.r(__webpack_exports__);
30718
30718
  /* harmony export */ });
30719
30719
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
30720
30720
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
30721
- /** @license Frontegg v7.50.0-alpha.0
30721
+ /** @license Frontegg v7.50.0
30722
30722
  *
30723
30723
  * This source code is licensed under the MIT license found in the
30724
30724
  * LICENSE file in the root directory of this source tree.