@frontegg/redux-store 5.7.0 → 5.8.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.
@@ -37,7 +37,7 @@ const { reducer: rootReducer } = toolkit.createSlice({
37
37
  },
38
38
  },
39
39
  });
40
- const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState) => {
40
+ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState, builderMode = false) => {
41
41
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
42
  const isSSR = typeof window === 'undefined';
43
43
  let holder = storeHolder;
@@ -48,7 +48,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
48
48
  holder = window;
49
49
  }
50
50
  if (!holder.store) {
51
- if (!previewMode) {
51
+ if (!previewMode && !builderMode) {
52
52
  restApi.ContextHolder.setContext(rootInitialState.context);
53
53
  }
54
54
  const sagaMiddleware = createSagaMiddleware__default['default']();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/redux-store",
3
3
  "libName": "FronteggReduxStore",
4
- "version": "5.7.0",
4
+ "version": "5.8.0",
5
5
  "author": "Frontegg LTD",
6
6
  "main": "./node/index.js",
7
7
  "module": "./index.js",
@@ -20,4 +20,4 @@ export declare const createFronteggStore: (rootInitialState: InitialState, store
20
20
  };
21
21
  auditLogs: Partial<AuditsState>;
22
22
  audits: Partial<OldAuditsState>;
23
- }> | undefined) => EnhancedStore;
23
+ }> | undefined, builderMode?: boolean) => EnhancedStore;
package/toolkit/index.js CHANGED
@@ -32,7 +32,7 @@ const { reducer: rootReducer } = createSlice({
32
32
  },
33
33
  },
34
34
  });
35
- const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState) => {
35
+ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false, authInitialState, overrideInitialState, builderMode = false) => {
36
36
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
37
37
  const isSSR = typeof window === 'undefined';
38
38
  let holder = storeHolder;
@@ -43,7 +43,7 @@ const createFronteggStore = (rootInitialState, storeHolder, previewMode = false,
43
43
  holder = window;
44
44
  }
45
45
  if (!holder.store) {
46
- if (!previewMode) {
46
+ if (!previewMode && !builderMode) {
47
47
  ContextHolder.setContext(rootInitialState.context);
48
48
  }
49
49
  const sagaMiddleware = createSagaMiddleware();