@frontegg/react-hooks 7.0.0-alpha.3 → 7.0.0-alpha.5

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.
@@ -115,8 +115,8 @@ export const FronteggStoreProvider = props => {
115
115
  };
116
116
  ContextHolder.setContext(context);
117
117
  const store = useMemo(() => {
118
- var _app$name, _app$options9;
119
- return createStore({
118
+ var _app$store, _app$name, _app$options9;
119
+ return (_app$store = app == null ? void 0 : app.store) != null ? _app$store : createStore({
120
120
  name: (_app$name = app == null ? void 0 : app.name) != null ? _app$name : 'default',
121
121
  context,
122
122
  previewMode,
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.3
1
+ /** @license Frontegg v7.0.0-alpha.5
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.
@@ -122,8 +122,8 @@ const FronteggStoreProvider = props => {
122
122
  };
123
123
  _restApi.ContextHolder.setContext(context);
124
124
  const store = (0, _react.useMemo)(() => {
125
- var _app$name, _app$options9;
126
- return (0, _reduxStore.createStore)({
125
+ var _app$store, _app$name, _app$options9;
126
+ return (_app$store = app == null ? void 0 : app.store) != null ? _app$store : (0, _reduxStore.createStore)({
127
127
  name: (_app$name = app == null ? void 0 : app.name) != null ? _app$name : 'default',
128
128
  context,
129
129
  previewMode,
package/node/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.0-alpha.3
1
+ /** @license Frontegg v7.0.0-alpha.5
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,16 +1,15 @@
1
1
  {
2
2
  "name": "@frontegg/react-hooks",
3
- "version": "7.0.0-alpha.3",
3
+ "version": "7.0.0-alpha.5",
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/redux-store": "7.0.0-alpha.3",
10
- "@frontegg/types": "7.0.0-alpha.3",
9
+ "@frontegg/redux-store": "7.0.0-alpha.5",
10
+ "@frontegg/types": "7.0.0-alpha.5",
11
11
  "@types/react": "*",
12
- "get-value": "^3.0.1",
13
- "react-redux": "^7.x"
12
+ "get-value": "^3.0.1"
14
13
  },
15
14
  "sideEffects": false,
16
15
  "private": false,