@frontegg/js 7.13.0-alpha.0 → 7.13.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.13.0-alpha.0
1
+ /** @license Frontegg v7.13.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.13.0-alpha.0
1
+ /** @license Frontegg v7.13.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.13.0-alpha.0'
8
+ cdnVersion: '7.13.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.13.0-alpha.0",
3
+ "version": "7.13.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.13.0-alpha.0"
9
+ "@frontegg/types": "7.13.0"
10
10
  },
11
11
  "browserslist": {
12
12
  "production": [
@@ -1586,7 +1586,7 @@ __webpack_require__.r(__webpack_exports__);
1586
1586
  /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
1587
1587
  /* harmony export */ });
1588
1588
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
1589
- cdnVersion: '7.13.0-alpha.0'
1589
+ cdnVersion: '7.13.0'
1590
1590
  });
1591
1591
 
1592
1592
  /***/ }),
@@ -4668,7 +4668,7 @@ __webpack_require__.r(__webpack_exports__);
4668
4668
  allowedRedirectOrigins = []
4669
4669
  } = store.auth;
4670
4670
  if (customLoginAuthenticatedUrl) {
4671
- return (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getPathAndSearchParamsFromUrl)(customLoginAuthenticatedUrl);
4671
+ return (0,_helpers__WEBPACK_IMPORTED_MODULE_1__.getPathAndSearchParamsFromUrl)(customLoginAuthenticatedUrl, preventRedirectUrlOriginCleaning);
4672
4672
  }
4673
4673
  const {
4674
4674
  authenticatedUrl,
@@ -7213,10 +7213,14 @@ const getSearchParamsFromUrl = url => {
7213
7213
  }
7214
7214
  return undefined;
7215
7215
  };
7216
- const getPathAndSearchParamsFromUrl = url => {
7216
+ const getPathAndSearchParamsFromUrl = (url, preventRedirectUrlOriginCleaning = false) => {
7217
7217
  const {
7218
- pathname
7218
+ pathname,
7219
+ href
7219
7220
  } = new URL(url);
7221
+ if (preventRedirectUrlOriginCleaning) {
7222
+ return href;
7223
+ }
7220
7224
  const searchParams = getSearchParamsFromUrl(url);
7221
7225
  if (searchParams) {
7222
7226
  return pathname + searchParams;
@@ -17633,7 +17637,7 @@ __webpack_require__.r(__webpack_exports__);
17633
17637
  /* harmony import */ var _subscriptions_interfaces__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./subscriptions/interfaces */ "../../dist/@frontegg/redux-store/subscriptions/interfaces.js");
17634
17638
  /* harmony import */ var _vendor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./vendor */ "../../dist/@frontegg/redux-store/vendor/index.js");
17635
17639
  /* harmony import */ var _audits__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./audits */ "../../dist/@frontegg/redux-store/audits/index.js");
17636
- /** @license Frontegg v7.13.0-alpha.0
17640
+ /** @license Frontegg v7.13.0
17637
17641
  *
17638
17642
  * This source code is licensed under the MIT license found in the
17639
17643
  * LICENSE file in the root directory of this source tree.
@@ -25412,7 +25416,7 @@ __webpack_require__.r(__webpack_exports__);
25412
25416
  /* harmony export */ });
25413
25417
  /* harmony import */ var _ThemeOptions__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ThemeOptions */ "../../dist/@frontegg/types/ThemeOptions/index.js");
25414
25418
  /* harmony import */ var _Metadata__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Metadata */ "../../dist/@frontegg/types/Metadata/index.js");
25415
- /** @license Frontegg v7.13.0-alpha.0
25419
+ /** @license Frontegg v7.13.0
25416
25420
  *
25417
25421
  * This source code is licensed under the MIT license found in the
25418
25422
  * LICENSE file in the root directory of this source tree.