@frontegg/js 6.100.0-alpha.3 → 6.100.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.
@@ -5,7 +5,7 @@ import _createClass from "@babel/runtime/helpers/esm/createClass";
5
5
  import _regeneratorRuntime from "@babel/runtime/regenerator";
6
6
  import { createFronteggStore, getEntitlements as _getEntitlements } from '@frontegg/redux-store';
7
7
  import { Metadata } from '@frontegg/types';
8
- import { formatName, restoreSearchParams } from '../utils';
8
+ import { formatName } from '../utils';
9
9
  import { AppHolder } from '../AppHolder';
10
10
  import { fetch as FronteggFetch } from '@frontegg/rest-api';
11
11
  import { RequestSource } from '@frontegg/rest-api';
@@ -360,10 +360,7 @@ export var FronteggApp = /*#__PURE__*/function () {
360
360
  value: function hideAdminPortal() {
361
361
  try {
362
362
  var _this$adminPortalRend;
363
- var searchParams = new URLSearchParams(window.location.search);
364
363
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
365
- // unmount is removing url search params, therefore we need to restore them after unmount
366
- restoreSearchParams(searchParams);
367
364
  FronteggRestApi.ContextHolder.setRequestSource(null);
368
365
  } catch (e) {
369
366
  console.error('Failed to unmount admin portal', e);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.100.0-alpha.3
1
+ /** @license Frontegg v6.100.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.
@@ -367,10 +367,7 @@ var FronteggApp = /*#__PURE__*/function () {
367
367
  value: function hideAdminPortal() {
368
368
  try {
369
369
  var _this$adminPortalRend;
370
- var searchParams = new URLSearchParams(window.location.search);
371
370
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
372
- // unmount is removing url search params, therefore we need to restore them after unmount
373
- (0, _utils.restoreSearchParams)(searchParams);
374
371
  FronteggRestApi.ContextHolder.setRequestSource(null);
375
372
  } catch (e) {
376
373
  console.error('Failed to unmount admin portal', e);
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.100.0-alpha.3
1
+ /** @license Frontegg v6.100.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.
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.waitThemeSetter = exports.restoreSearchParams = exports.formatName = exports.createElement = void 0;
6
+ exports.waitThemeSetter = exports.formatName = exports.createElement = void 0;
7
7
  var formatName = function formatName(name) {
8
8
  return name.replace(/\W+/g, ' ').split(/ |\B(?=[A-Z])/).map(function (word) {
9
9
  return word.toLowerCase();
@@ -38,14 +38,4 @@ var waitThemeSetter = function waitThemeSetter(instance) {
38
38
  }, 50);
39
39
  });
40
40
  };
41
- exports.waitThemeSetter = waitThemeSetter;
42
- var restoreSearchParams = function restoreSearchParams(searchParams) {
43
- var stringifiedSearchParams = searchParams.toString();
44
- if (!stringifiedSearchParams) {
45
- return;
46
- }
47
- var url = new URL(window.location.href);
48
- url.search = stringifiedSearchParams;
49
- window.history.pushState(null, '', url.toString());
50
- };
51
- exports.restoreSearchParams = restoreSearchParams;
41
+ exports.waitThemeSetter = waitThemeSetter;
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: '6.100.0-alpha.3'
8
+ cdnVersion: '6.100.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": "6.100.0-alpha.3",
3
+ "version": "6.100.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": "6.100.0-alpha.3"
9
+ "@frontegg/types": "6.100.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -677,10 +677,7 @@ var FronteggApp = /*#__PURE__*/function () {
677
677
  value: function hideAdminPortal() {
678
678
  try {
679
679
  var _this$adminPortalRend;
680
- var searchParams = new URLSearchParams(window.location.search);
681
680
  (_this$adminPortalRend = this.adminPortalRenderer) == null ? void 0 : _this$adminPortalRend.unmount();
682
- // unmount is removing url search params, therefore we need to restore them after unmount
683
- (0,_utils__WEBPACK_IMPORTED_MODULE_5__.restoreSearchParams)(searchParams);
684
681
  _frontegg_rest_api__WEBPACK_IMPORTED_MODULE_15__.ContextHolder.setRequestSource(null);
685
682
  } catch (e) {
686
683
  console.error('Failed to unmount admin portal', e);
@@ -1154,7 +1151,6 @@ __webpack_require__.r(__webpack_exports__);
1154
1151
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1155
1152
  /* harmony export */ "createElement": () => (/* binding */ createElement),
1156
1153
  /* harmony export */ "formatName": () => (/* binding */ formatName),
1157
- /* harmony export */ "restoreSearchParams": () => (/* binding */ restoreSearchParams),
1158
1154
  /* harmony export */ "waitThemeSetter": () => (/* binding */ waitThemeSetter)
1159
1155
  /* harmony export */ });
1160
1156
  var formatName = function formatName(name) {
@@ -1189,15 +1185,6 @@ var waitThemeSetter = function waitThemeSetter(instance) {
1189
1185
  }, 50);
1190
1186
  });
1191
1187
  };
1192
- var restoreSearchParams = function restoreSearchParams(searchParams) {
1193
- var stringifiedSearchParams = searchParams.toString();
1194
- if (!stringifiedSearchParams) {
1195
- return;
1196
- }
1197
- var url = new URL(window.location.href);
1198
- url.search = stringifiedSearchParams;
1199
- window.history.pushState(null, '', url.toString());
1200
- };
1201
1188
 
1202
1189
  /***/ }),
1203
1190
 
@@ -1235,7 +1222,7 @@ __webpack_require__.r(__webpack_exports__);
1235
1222
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1236
1223
  /* harmony export */ });
1237
1224
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1238
- cdnVersion: '6.100.0-alpha.3'
1225
+ cdnVersion: '6.100.0'
1239
1226
  });
1240
1227
 
1241
1228
  /***/ }),
@@ -20006,7 +19993,7 @@ __webpack_require__.r(__webpack_exports__);
20006
19993
  /* harmony export */ });
20007
19994
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
20008
19995
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
20009
- /** @license Frontegg v6.100.0-alpha.3
19996
+ /** @license Frontegg v6.100.0
20010
19997
  *
20011
19998
  * This source code is licensed under the MIT license found in the
20012
19999
  * LICENSE file in the root directory of this source tree.
@@ -30843,7 +30830,6 @@ __webpack_require__.r(__webpack_exports__);
30843
30830
  /* harmony export */ "getThemeByName": () => (/* reexport safe */ _LoginBoxRenderer__WEBPACK_IMPORTED_MODULE_6__.getThemeByName),
30844
30831
  /* harmony export */ "initialize": () => (/* reexport safe */ _initialize__WEBPACK_IMPORTED_MODULE_7__.initialize),
30845
30832
  /* harmony export */ "mockFlagsList": () => (/* reexport safe */ _utils_mockFlagsList__WEBPACK_IMPORTED_MODULE_9__.mockFlagsList),
30846
- /* harmony export */ "restoreSearchParams": () => (/* reexport safe */ _utils_index__WEBPACK_IMPORTED_MODULE_8__.restoreSearchParams),
30847
30833
  /* harmony export */ "waitThemeSetter": () => (/* reexport safe */ _utils_index__WEBPACK_IMPORTED_MODULE_8__.waitThemeSetter)
30848
30834
  /* harmony export */ });
30849
30835
  /* harmony import */ var _AppHolder__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AppHolder */ "../../dist/@frontegg/js/AppHolder/index.js");