@frontegg/redux-store 6.81.0-alpha.0 → 6.81.0-alpha.2

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 v6.81.0-alpha.0
1
+ /** @license Frontegg v6.81.0-alpha.2
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 v6.81.0-alpha.0
1
+ /** @license Frontegg v6.81.0-alpha.2
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.
@@ -89,7 +89,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
89
89
  holder = window;
90
90
  }
91
91
  if (!holder.store) {
92
- var _storeHolder$name, _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
92
+ var _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
93
93
  if (!previewMode && !builderMode) {
94
94
  _restApi.ContextHolder.setContext(rootInitialState.context);
95
95
  }
@@ -105,8 +105,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
105
105
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
106
106
  root: (0, _extends2.default)({}, rootInitialState, {
107
107
  previewMode,
108
- urlStrategy: urlStrategy,
109
- appName: (_storeHolder$name = storeHolder == null ? void 0 : storeHolder.name) != null ? _storeHolder$name : 'default'
108
+ urlStrategy: urlStrategy
110
109
  }),
111
110
  [_auth.default.storeName]: (0, _extends2.default)({}, _auth.default.initialState, authInitialState, (_overrideInitialState = overrideInitialState == null ? void 0 : overrideInitialState.auth) != null ? _overrideInitialState : {}, {
112
111
  routes: (0, _extends2.default)({}, _auth.default.initialState.routes, (_authInitialState$rou = authInitialState == null ? void 0 : authInitialState.routes) != null ? _authInitialState$rou : {}, (_overrideInitialState2 = overrideInitialState == null ? void 0 : (_overrideInitialState3 = overrideInitialState.auth) == null ? void 0 : _overrideInitialState3.routes) != null ? _overrideInitialState2 : {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
- "version": "6.81.0-alpha.0",
3
+ "version": "6.81.0-alpha.2",
4
4
  "main": "./node/index.js",
5
5
  "license": "MIT",
6
6
  "author": "Frontegg LTD",
package/toolkit/index.js CHANGED
@@ -50,7 +50,7 @@ export const createFronteggStore = (rootInitialState, storeHolder, previewMode =
50
50
  holder = window;
51
51
  }
52
52
  if (!holder.store) {
53
- var _storeHolder$name, _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
53
+ var _overrideInitialState, _authInitialState$rou, _overrideInitialState2, _overrideInitialState3, _overrideInitialState4, _overrideInitialState5, _overrideInitialState6, _overrideInitialState7, _overrideInitialState8, _overrideInitialState9;
54
54
  if (!previewMode && !builderMode) {
55
55
  ContextHolder.setContext(rootInitialState.context);
56
56
  }
@@ -66,8 +66,7 @@ export const createFronteggStore = (rootInitialState, storeHolder, previewMode =
66
66
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
67
67
  root: _extends({}, rootInitialState, {
68
68
  previewMode,
69
- urlStrategy: urlStrategy,
70
- appName: (_storeHolder$name = storeHolder == null ? void 0 : storeHolder.name) != null ? _storeHolder$name : 'default'
69
+ urlStrategy: urlStrategy
71
70
  }),
72
71
  [authStore.storeName]: _extends({}, authStore.initialState, authInitialState, (_overrideInitialState = overrideInitialState == null ? void 0 : overrideInitialState.auth) != null ? _overrideInitialState : {}, {
73
72
  routes: _extends({}, authStore.initialState.routes, (_authInitialState$rou = authInitialState == null ? void 0 : authInitialState.routes) != null ? _authInitialState$rou : {}, (_overrideInitialState2 = overrideInitialState == null ? void 0 : (_overrideInitialState3 = overrideInitialState.auth) == null ? void 0 : _overrideInitialState3.routes) != null ? _overrideInitialState2 : {})