@frontegg/js 7.38.0 → 7.39.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 +1 -1
- package/node/index.js +1 -1
- package/node/version.js +1 -1
- package/package.json +2 -2
- package/umd/frontegg.development.js +48 -10
- package/umd/frontegg.production.min.js +1 -1
- package/umd/frontegg.production.min.js.LICENSE.txt +1 -1
- package/version.js +1 -1
package/index.js
CHANGED
package/node/index.js
CHANGED
package/node/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frontegg/js",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.39.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.
|
|
9
|
+
"@frontegg/types": "7.39.0"
|
|
10
10
|
},
|
|
11
11
|
"browserslist": {
|
|
12
12
|
"production": [
|
|
@@ -1619,7 +1619,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1619
1619
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
1620
1620
|
/* harmony export */ });
|
|
1621
1621
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
1622
|
-
cdnVersion: '7.
|
|
1622
|
+
cdnVersion: '7.39.0'
|
|
1623
1623
|
});
|
|
1624
1624
|
|
|
1625
1625
|
/***/ }),
|
|
@@ -17907,7 +17907,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17907
17907
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
17908
17908
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
17909
17909
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
17910
|
-
/** @license Frontegg v7.
|
|
17910
|
+
/** @license Frontegg v7.39.0
|
|
17911
17911
|
*
|
|
17912
17912
|
* This source code is licensed under the MIT license found in the
|
|
17913
17913
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -24112,28 +24112,66 @@ class FronteggNativeModule {
|
|
|
24112
24112
|
throw new Error('FronteggNativeBridge is not available');
|
|
24113
24113
|
}
|
|
24114
24114
|
};
|
|
24115
|
+
this.loginWithSocialLoginProvider = provider => {
|
|
24116
|
+
if (this.isWebkitAvailable()) {
|
|
24117
|
+
var _window$webkit3, _window$webkit3$messa, _window$webkit3$messa2;
|
|
24118
|
+
(_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({
|
|
24119
|
+
action: 'loginWithSocialLoginProvider',
|
|
24120
|
+
payload: provider
|
|
24121
|
+
}));
|
|
24122
|
+
} else if (this.isJsInterfaceAvailable()) {
|
|
24123
|
+
var _window$FronteggNativ3;
|
|
24124
|
+
(_window$FronteggNativ3 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ3.loginWithSocialLoginProvider(provider);
|
|
24125
|
+
} else {
|
|
24126
|
+
throw new Error('FronteggNativeBridge is not available');
|
|
24127
|
+
}
|
|
24128
|
+
};
|
|
24129
|
+
this.loginWithCustomSocialLoginProvider = providerId => {
|
|
24130
|
+
if (this.isWebkitAvailable()) {
|
|
24131
|
+
var _window$webkit4, _window$webkit4$messa, _window$webkit4$messa2;
|
|
24132
|
+
(_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({
|
|
24133
|
+
action: 'loginWithCustomSocialLoginProvider',
|
|
24134
|
+
payload: providerId
|
|
24135
|
+
}));
|
|
24136
|
+
} else if (this.isJsInterfaceAvailable()) {
|
|
24137
|
+
var _window$FronteggNativ4;
|
|
24138
|
+
(_window$FronteggNativ4 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ4.loginWithCustomSocialLoginProvider(providerId);
|
|
24139
|
+
} else {
|
|
24140
|
+
throw new Error('FronteggNativeBridge is not available');
|
|
24141
|
+
}
|
|
24142
|
+
};
|
|
24115
24143
|
this.promptSocialLoginConsent = () => {
|
|
24116
|
-
var _window$
|
|
24117
|
-
return (_window$
|
|
24144
|
+
var _window$FronteggNativ5, _window$FronteggNativ6;
|
|
24145
|
+
return (_window$FronteggNativ5 = (_window$FronteggNativ6 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ6['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ5 : false;
|
|
24118
24146
|
};
|
|
24119
24147
|
}
|
|
24120
24148
|
isWebkitAvailable() {
|
|
24121
|
-
var _window$
|
|
24122
|
-
return ((_window$
|
|
24149
|
+
var _window$webkit5, _window$webkit5$messa;
|
|
24150
|
+
return ((_window$webkit5 = window.webkit) == null ? void 0 : (_window$webkit5$messa = _window$webkit5.messageHandlers) == null ? void 0 : _window$webkit5$messa.FronteggNativeBridge) != null;
|
|
24123
24151
|
}
|
|
24124
24152
|
isJsInterfaceAvailable() {
|
|
24125
24153
|
return window.FronteggNativeBridge != null;
|
|
24126
24154
|
}
|
|
24155
|
+
|
|
24156
|
+
/**
|
|
24157
|
+
* @deprecated use isSocialLoginProviderAvailable instead for pkce flow in mobile
|
|
24158
|
+
*/
|
|
24127
24159
|
isSocialLoginAvailable() {
|
|
24128
24160
|
return this.isAvailable('loginWithSocialLogin');
|
|
24129
24161
|
}
|
|
24162
|
+
isSocialLoginProviderAvailable() {
|
|
24163
|
+
return this.isAvailable('loginWithSocialLoginProvider');
|
|
24164
|
+
}
|
|
24165
|
+
isCustomSocialLoginProviderAvailable() {
|
|
24166
|
+
return this.isAvailable('loginWithCustomSocialLoginProvider');
|
|
24167
|
+
}
|
|
24130
24168
|
isLoginWithSSOAvailable() {
|
|
24131
24169
|
return this.isAvailable('loginWithSSO');
|
|
24132
24170
|
}
|
|
24133
24171
|
isAvailable(method) {
|
|
24134
24172
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
24135
|
-
var _window$
|
|
24136
|
-
return (_window$
|
|
24173
|
+
var _window$FronteggNativ7, _window$FronteggNativ8;
|
|
24174
|
+
return (_window$FronteggNativ7 = (_window$FronteggNativ8 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ8[method]) != null ? _window$FronteggNativ7 : false;
|
|
24137
24175
|
}
|
|
24138
24176
|
return false;
|
|
24139
24177
|
}
|
|
@@ -27840,7 +27878,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27840
27878
|
/* harmony import */ var _entitlements_interfaces__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./entitlements/interfaces */ "../../dist/@frontegg/rest-api/entitlements/interfaces.js");
|
|
27841
27879
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
27842
27880
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
27843
|
-
/** @license Frontegg v7.
|
|
27881
|
+
/** @license Frontegg v7.39.0
|
|
27844
27882
|
*
|
|
27845
27883
|
* This source code is licensed under the MIT license found in the
|
|
27846
27884
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30470,7 +30508,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30470
30508
|
/* harmony export */ });
|
|
30471
30509
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
30472
30510
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
30473
|
-
/** @license Frontegg v7.
|
|
30511
|
+
/** @license Frontegg v7.39.0
|
|
30474
30512
|
*
|
|
30475
30513
|
* This source code is licensed under the MIT license found in the
|
|
30476
30514
|
* LICENSE file in the root directory of this source tree.
|