@frontegg/js 7.42.0 → 7.43.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 +33 -17
- 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.43.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.43.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.
|
|
1628
|
+
cdnVersion: '7.43.0'
|
|
1629
1629
|
});
|
|
1630
1630
|
|
|
1631
1631
|
/***/ }),
|
|
@@ -5816,6 +5816,9 @@ const _excluded = ["callback", "error"],
|
|
|
5816
5816
|
}
|
|
5817
5817
|
}
|
|
5818
5818
|
}
|
|
5819
|
+
if (_toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].isSuggestSavePasswordAvailable()) {
|
|
5820
|
+
_toolkit__WEBPACK_IMPORTED_MODULE_14__["default"].suggestSavePassword(email, password);
|
|
5821
|
+
}
|
|
5819
5822
|
|
|
5820
5823
|
// TODO: extract item name to constants
|
|
5821
5824
|
localStorage.removeItem('register-quick-login');
|
|
@@ -13383,9 +13386,6 @@ const _excluded = ["callback"],
|
|
|
13383
13386
|
callback
|
|
13384
13387
|
} = _payload,
|
|
13385
13388
|
payload = (0,_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_0__["default"])(_payload, _excluded);
|
|
13386
|
-
setSmsState({
|
|
13387
|
-
loading: true
|
|
13388
|
-
});
|
|
13389
13389
|
try {
|
|
13390
13390
|
const {
|
|
13391
13391
|
otcToken
|
|
@@ -13400,10 +13400,6 @@ const _excluded = ["callback"],
|
|
|
13400
13400
|
error: (0,_helpers__WEBPACK_IMPORTED_MODULE_3__.errorHandler)(e)
|
|
13401
13401
|
});
|
|
13402
13402
|
callback == null ? void 0 : callback(false, e);
|
|
13403
|
-
} finally {
|
|
13404
|
-
setSmsState({
|
|
13405
|
-
loading: false
|
|
13406
|
-
});
|
|
13407
13403
|
}
|
|
13408
13404
|
};
|
|
13409
13405
|
const verifyPhoneNumber = async _payload => {
|
|
@@ -17937,7 +17933,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17937
17933
|
/* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
|
|
17938
17934
|
/* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
|
|
17939
17935
|
/* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
|
|
17940
|
-
/** @license Frontegg v7.
|
|
17936
|
+
/** @license Frontegg v7.43.0
|
|
17941
17937
|
*
|
|
17942
17938
|
* This source code is licensed under the MIT license found in the
|
|
17943
17939
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -24177,14 +24173,31 @@ class FronteggNativeModule {
|
|
|
24177
24173
|
throw new Error('FronteggNativeBridge is not available');
|
|
24178
24174
|
}
|
|
24179
24175
|
};
|
|
24176
|
+
this.suggestSavePassword = (email, password) => {
|
|
24177
|
+
if (this.isWebkitAvailable()) {
|
|
24178
|
+
var _window$webkit5, _window$webkit5$messa, _window$webkit5$messa2;
|
|
24179
|
+
(_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({
|
|
24180
|
+
action: 'suggestSavePassword',
|
|
24181
|
+
payload: {
|
|
24182
|
+
email,
|
|
24183
|
+
password
|
|
24184
|
+
}
|
|
24185
|
+
}));
|
|
24186
|
+
} else if (this.isJsInterfaceAvailable()) {
|
|
24187
|
+
var _window$FronteggNativ5;
|
|
24188
|
+
(_window$FronteggNativ5 = window.FronteggNativeBridge) == null ? void 0 : _window$FronteggNativ5.suggestSavePassword(email, password);
|
|
24189
|
+
} else {
|
|
24190
|
+
throw new Error('FronteggNativeBridge is not available');
|
|
24191
|
+
}
|
|
24192
|
+
};
|
|
24180
24193
|
this.promptSocialLoginConsent = () => {
|
|
24181
|
-
var _window$
|
|
24182
|
-
return (_window$
|
|
24194
|
+
var _window$FronteggNativ6, _window$FronteggNativ7;
|
|
24195
|
+
return (_window$FronteggNativ6 = (_window$FronteggNativ7 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ7['shouldPromptSocialLoginConsent']) != null ? _window$FronteggNativ6 : false;
|
|
24183
24196
|
};
|
|
24184
24197
|
}
|
|
24185
24198
|
isWebkitAvailable() {
|
|
24186
|
-
var _window$
|
|
24187
|
-
return ((_window$
|
|
24199
|
+
var _window$webkit6, _window$webkit6$messa;
|
|
24200
|
+
return ((_window$webkit6 = window.webkit) == null ? void 0 : (_window$webkit6$messa = _window$webkit6.messageHandlers) == null ? void 0 : _window$webkit6$messa.FronteggNativeBridge) != null;
|
|
24188
24201
|
}
|
|
24189
24202
|
isJsInterfaceAvailable() {
|
|
24190
24203
|
return window.FronteggNativeBridge != null;
|
|
@@ -24205,10 +24218,13 @@ class FronteggNativeModule {
|
|
|
24205
24218
|
isLoginWithSSOAvailable() {
|
|
24206
24219
|
return this.isAvailable('loginWithSSO');
|
|
24207
24220
|
}
|
|
24221
|
+
isSuggestSavePasswordAvailable() {
|
|
24222
|
+
return this.isAvailable('suggestSavePassword');
|
|
24223
|
+
}
|
|
24208
24224
|
isAvailable(method) {
|
|
24209
24225
|
if (this.isWebkitAvailable() || this.isJsInterfaceAvailable()) {
|
|
24210
|
-
var _window$
|
|
24211
|
-
return (_window$
|
|
24226
|
+
var _window$FronteggNativ8, _window$FronteggNativ9;
|
|
24227
|
+
return (_window$FronteggNativ8 = (_window$FronteggNativ9 = window.FronteggNativeBridgeFunctions) == null ? void 0 : _window$FronteggNativ9[method]) != null ? _window$FronteggNativ8 : false;
|
|
24212
24228
|
}
|
|
24213
24229
|
return false;
|
|
24214
24230
|
}
|
|
@@ -27952,7 +27968,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27952
27968
|
/* harmony import */ var _security_center_interfaces__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./security-center/interfaces */ "../../dist/@frontegg/rest-api/security-center/interfaces.js");
|
|
27953
27969
|
/* harmony import */ var _applications_interfaces__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./applications/interfaces */ "../../dist/@frontegg/rest-api/applications/interfaces.js");
|
|
27954
27970
|
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./constants */ "../../dist/@frontegg/rest-api/constants.js");
|
|
27955
|
-
/** @license Frontegg v7.
|
|
27971
|
+
/** @license Frontegg v7.43.0
|
|
27956
27972
|
*
|
|
27957
27973
|
* This source code is licensed under the MIT license found in the
|
|
27958
27974
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -30582,7 +30598,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30582
30598
|
/* harmony export */ });
|
|
30583
30599
|
/* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
|
|
30584
30600
|
/* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
|
|
30585
|
-
/** @license Frontegg v7.
|
|
30601
|
+
/** @license Frontegg v7.43.0
|
|
30586
30602
|
*
|
|
30587
30603
|
* This source code is licensed under the MIT license found in the
|
|
30588
30604
|
* LICENSE file in the root directory of this source tree.
|