@frontegg/redux-store 6.87.0 → 6.88.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.
@@ -0,0 +1 @@
1
+ export * from './isAuthRoute';
@@ -0,0 +1 @@
1
+ export * from './isAuthRoute';
@@ -0,0 +1,2 @@
1
+ import { AuthPageRoutes } from '../interfaces';
2
+ export declare const isAuthRoute: (path: string, routes?: Partial<AuthPageRoutes> | undefined) => boolean;
@@ -0,0 +1,9 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
+ const _excluded = ["authenticatedUrl"];
4
+ import { authInitialState } from '../..';
5
+ export const isAuthRoute = (path, routes) => {
6
+ const _authInitialState$rou = _extends({}, authInitialState.routes, routes),
7
+ authRoutes = _objectWithoutPropertiesLoose(_authInitialState$rou, _excluded);
8
+ return Object.values(authRoutes).includes(path);
9
+ };
package/auth/index.d.ts CHANGED
@@ -50,6 +50,7 @@ export * from './Provisioning';
50
50
  export * from './Provisioning/interfaces';
51
51
  export * from './PasskeysState';
52
52
  export * from './PasskeysState/interfaces';
53
+ export * from './Helpers';
53
54
  export type { AuthActions } from './reducer';
54
55
  export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName, };
55
56
  declare const _default: {
package/auth/index.js CHANGED
@@ -52,6 +52,7 @@ export * from './Provisioning';
52
52
  export * from './Provisioning/interfaces';
53
53
  export * from './PasskeysState';
54
54
  export * from './PasskeysState/interfaces';
55
+ export * from './Helpers';
55
56
  export { sagas as authSagas, mockSagas as authMockSagas, reducer as authReducers, actions as authActions, initialState as authInitialState, storeName as authStoreName };
56
57
  // export store
57
58
  export default {
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.87.0
1
+ /** @license Frontegg v6.88.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.
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _isAuthRoute = require("./isAuthRoute");
7
+ Object.keys(_isAuthRoute).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _isAuthRoute[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _isAuthRoute[key];
14
+ }
15
+ });
16
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.isAuthRoute = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
10
+ var _ = require("../..");
11
+ const _excluded = ["authenticatedUrl"];
12
+ const isAuthRoute = (path, routes) => {
13
+ const _authInitialState$rou = (0, _extends2.default)({}, _.authInitialState.routes, routes),
14
+ authRoutes = (0, _objectWithoutPropertiesLoose2.default)(_authInitialState$rou, _excluded);
15
+ return Object.values(authRoutes).includes(path);
16
+ };
17
+ exports.isAuthRoute = isAuthRoute;
@@ -628,6 +628,18 @@ Object.keys(_interfaces24).forEach(function (key) {
628
628
  }
629
629
  });
630
630
  });
631
+ var _Helpers = require("./Helpers");
632
+ Object.keys(_Helpers).forEach(function (key) {
633
+ if (key === "default" || key === "__esModule") return;
634
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
635
+ if (key in exports && exports[key] === _Helpers[key]) return;
636
+ Object.defineProperty(exports, key, {
637
+ enumerable: true,
638
+ get: function () {
639
+ return _Helpers[key];
640
+ }
641
+ });
642
+ });
631
643
  // export types
632
644
  // export store
633
645
  var _default = {
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v6.87.0
1
+ /** @license Frontegg v6.88.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.87.0",
3
+ "version": "6.88.0",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",