@frontegg/react-hooks
Advanced tools
Comparing version 2.8.0-alpha.956868304 to 2.8.0-alpha.958143646
@@ -306,8 +306,9 @@ 'use strict'; | ||
var FronteggProvider = function (_a) { | ||
var _b, _c, _d, _e; | ||
var _b, _c, _d, _e, _f, _g; | ||
var children = _a.children, app = _a.app, contextOptions = _a.contextOptions, setLoadingProps = _a.setLoading; | ||
var context = (_c = (_b = app === null || app === void 0 ? void 0 : app.options) === null || _b === void 0 ? void 0 : _b.contextOptions) !== null && _c !== void 0 ? _c : contextOptions; | ||
var previewMode = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.previewMode) !== null && _e !== void 0 ? _e : false; | ||
var routes = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.authRoutes) !== null && _e !== void 0 ? _e : {}; | ||
var previewMode = (_g = (_f = app === null || app === void 0 ? void 0 : app.options) === null || _f === void 0 ? void 0 : _f.previewMode) !== null && _g !== void 0 ? _g : false; | ||
restApi.ContextHolder.setContext(context); | ||
var store = React.useMemo(function () { return reduxStore.createFronteggStore({ context: context }, app, previewMode); }, [app, previewMode]); | ||
var store = React.useMemo(function () { return reduxStore.createFronteggStore({ context: context }, app, previewMode, { routes: routes }); }, [app, previewMode]); | ||
return (React__default.createElement(reactRedux.Provider, { context: FronteggStoreContext, store: store }, | ||
@@ -314,0 +315,0 @@ React__default.createElement(FronteggContent, { setLoading: setLoadingProps !== null && setLoadingProps !== void 0 ? setLoadingProps : setLoading, app: app }, children))); |
@@ -86,8 +86,9 @@ import './tslib.es6-e3c82a74.js'; | ||
var FronteggProvider = function (_a) { | ||
var _b, _c, _d, _e; | ||
var _b, _c, _d, _e, _f, _g; | ||
var children = _a.children, app = _a.app, contextOptions = _a.contextOptions, setLoadingProps = _a.setLoading; | ||
var context = (_c = (_b = app === null || app === void 0 ? void 0 : app.options) === null || _b === void 0 ? void 0 : _b.contextOptions) !== null && _c !== void 0 ? _c : contextOptions; | ||
var previewMode = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.previewMode) !== null && _e !== void 0 ? _e : false; | ||
var routes = (_e = (_d = app === null || app === void 0 ? void 0 : app.options) === null || _d === void 0 ? void 0 : _d.authRoutes) !== null && _e !== void 0 ? _e : {}; | ||
var previewMode = (_g = (_f = app === null || app === void 0 ? void 0 : app.options) === null || _f === void 0 ? void 0 : _f.previewMode) !== null && _g !== void 0 ? _g : false; | ||
ContextHolder.setContext(context); | ||
var store = useMemo(function () { return createFronteggStore({ context: context }, app, previewMode); }, [app, previewMode]); | ||
var store = useMemo(function () { return createFronteggStore({ context: context }, app, previewMode, { routes: routes }); }, [app, previewMode]); | ||
return (React.createElement(Provider, { context: FronteggStoreContext, store: store }, | ||
@@ -94,0 +95,0 @@ React.createElement(FronteggContent, { setLoading: setLoadingProps !== null && setLoadingProps !== void 0 ? setLoadingProps : setLoading, app: app }, children))); |
{ | ||
"name": "@frontegg/react-hooks", | ||
"libName": "FronteggReactHooks", | ||
"version": "2.8.0-alpha.956868304", | ||
"version": "2.8.0-alpha.958143646", | ||
"author": "Frontegg LTD", | ||
@@ -15,3 +15,3 @@ "main": "index.cjs.js", | ||
"dependencies": { | ||
"@frontegg/redux-store": "2.8.0-alpha.956868304", | ||
"@frontegg/redux-store": "2.8.0-alpha.958143646", | ||
"react-redux": "^7.x" | ||
@@ -18,0 +18,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
140962
895
+ Added@frontegg/redux-store@2.8.0-alpha.958143646(transitive)
+ Added@frontegg/rest-api@2.8.0-alpha.958143646(transitive)
- Removed@frontegg/redux-store@2.8.0-alpha.956868304(transitive)
- Removed@frontegg/rest-api@2.8.0-alpha.956868304(transitive)