@frontegg/nextjs 6.7.11 → 6.7.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # Change Log
2
2
 
3
+ ## [6.7.12](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.11...v6.7.12) (2023-1-31)
4
+
5
+ - FR-10549 - fix error login with sms
6
+ - FR-10437 - select color
7
+ - FR-10518 - fix client id not show in model
8
+ -
9
+
10
+ - FR-10485 - Update restapi version
11
+ - FR-10017 - add email type to all email inputs
12
+ - FR-10501 - Fix mobile width of login box
13
+ - FR-10196 - Fix scroll in privacy page
14
+ - FR-10489 - update scim ui
15
+ - FR-10483 - Added the option to customize forget password button
16
+ - FR-10374 - improve values ui in split mode
17
+ - FR-10184 - add access tokens
18
+ - FR-9995 - Accept Invitation text and icon change
19
+
20
+ ### NextJS Wrapper 6.7.12:
21
+ - FR-10597 - Set default tenants state if not logged in
22
+ - FR-10584 - Set searchParam as optional in FronteggAppRouter
23
+ - FR-10557 - Improve FronteggMiddleware request handler
24
+
3
25
  ## [6.7.11](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.10...v6.7.11) (2023-1-30)
4
26
 
5
27
  - FR-10549 - fix error login with sms
@@ -4,7 +4,7 @@ import { FronteggStoreProvider } from '@frontegg/react-hooks';
4
4
  import { fronteggAuthApiRoutes, ContextHolder } from '@frontegg/rest-api';
5
5
  import React, { createContext, useEffect, useRef, useCallback, useMemo } from 'react';
6
6
  import { AppHolder, initialize } from '@frontegg/js';
7
- import { createFronteggStore } from '@frontegg/redux-store';
7
+ import { tenantsState, createFronteggStore } from '@frontegg/redux-store';
8
8
  import { useRouter } from 'next/navigation';
9
9
 
10
10
  var AppContext = createContext(null);
@@ -22,11 +22,10 @@ var createOrGetFronteggApp = function (_a) {
22
22
  return options.envBaseUrl;
23
23
  }
24
24
  }, clientId: options.envClientId });
25
- var tenantsState = tenants
26
- ? __assign({ tenantTree: null, subTenants: [], tenants: tenants, loading: false }, (_b = options.authOptions) === null || _b === void 0 ? void 0 : _b.tenantsState) : undefined;
25
+ var tenantsState$1 = __assign(__assign(__assign({}, tenantsState), { tenants: tenants || [] }), (_b = options.authOptions) === null || _b === void 0 ? void 0 : _b.tenantsState);
27
26
  var userData = user
28
27
  ? __assign(__assign(__assign({}, user), { accessToken: accessToken !== null && accessToken !== void 0 ? accessToken : '', refreshToken: refreshToken !== null && refreshToken !== void 0 ? refreshToken : undefined }), (_c = options.authOptions) === null || _c === void 0 ? void 0 : _c.user) : null;
29
- var authOptions = __assign(__assign({}, options.authOptions), { onRedirectTo: onRedirectTo, isLoading: false, isAuthenticated: !!options.session, hostedLoginBox: (_d = options.hostedLoginBox) !== null && _d !== void 0 ? _d : false, disableSilentRefresh: (_f = (_e = options.authOptions) === null || _e === void 0 ? void 0 : _e.disableSilentRefresh) !== null && _f !== void 0 ? _f : true, user: userData, tenantsState: tenantsState });
28
+ var authOptions = __assign(__assign({}, options.authOptions), { onRedirectTo: onRedirectTo, isLoading: false, isAuthenticated: !!options.session, hostedLoginBox: (_d = options.hostedLoginBox) !== null && _d !== void 0 ? _d : false, disableSilentRefresh: (_f = (_e = options.authOptions) === null || _e === void 0 ? void 0 : _e.disableSilentRefresh) !== null && _f !== void 0 ? _f : true, user: userData, tenantsState: tenantsState$1 });
30
29
  var sharedStore = createFronteggStore({ context: contextOptions }, storeHolder.current, options.previewMode, authOptions, {
31
30
  auth: authOptions !== null && authOptions !== void 0 ? authOptions : {},
32
31
  audits: (_g = options.auditsOptions) !== null && _g !== void 0 ? _g : {},
@@ -104,4 +103,4 @@ var FronteggClientProviderNext13 = function (_a) {
104
103
  };
105
104
 
106
105
  export { AppContext as A, FronteggClientProviderNext13 as F };
107
- //# sourceMappingURL=FronteggClientProviderNext13-b1eb6b39.js.map
106
+ //# sourceMappingURL=FronteggClientProviderNext13-6ae2672b.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FronteggClientProviderNext13-6ae2672b.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/client/index.js CHANGED
@@ -7,8 +7,8 @@ import '../api-25516652.js';
7
7
  import { useContext, useEffect } from 'react';
8
8
  import { useLoginWithRedirect, useLoginActions } from '@frontegg/react-hooks';
9
9
  import '@frontegg/rest-api';
10
- import { A as AppContext } from '../FronteggClientProviderNext13-b1eb6b39.js';
11
- export { F as FronteggClientProviderNext13 } from '../FronteggClientProviderNext13-b1eb6b39.js';
10
+ import { A as AppContext } from '../FronteggClientProviderNext13-6ae2672b.js';
11
+ export { F as FronteggClientProviderNext13 } from '../FronteggClientProviderNext13-6ae2672b.js';
12
12
  import '@frontegg/js';
13
13
  import { authInitialState } from '@frontegg/redux-store';
14
14
  import { useRouter, notFound } from 'next/navigation';
package/index.js CHANGED
@@ -37,8 +37,7 @@ var createOrGetFronteggApp = function (_a) {
37
37
  return options.envBaseUrl;
38
38
  }
39
39
  }, clientId: options.envClientId });
40
- var tenantsState = tenants
41
- ? tslib.__assign({ tenantTree: null, subTenants: [], tenants: tenants, loading: false }, (_b = options.authOptions) === null || _b === void 0 ? void 0 : _b.tenantsState) : undefined;
40
+ var tenantsState = tslib.__assign(tslib.__assign(tslib.__assign({}, reduxStore.tenantsState), { tenants: tenants || [] }), (_b = options.authOptions) === null || _b === void 0 ? void 0 : _b.tenantsState);
42
41
  var userData = user
43
42
  ? tslib.__assign(tslib.__assign(tslib.__assign({}, user), { accessToken: accessToken !== null && accessToken !== void 0 ? accessToken : '', refreshToken: refreshToken !== null && refreshToken !== void 0 ? refreshToken : undefined }), (_c = options.authOptions) === null || _c === void 0 ? void 0 : _c.user) : null;
44
43
  var authOptions = tslib.__assign(tslib.__assign({}, options.authOptions), { onRedirectTo: onRedirectTo, isLoading: false, isAuthenticated: !!options.session, hostedLoginBox: (_d = options.hostedLoginBox) !== null && _d !== void 0 ? _d : false, disableSilentRefresh: (_f = (_e = options.authOptions) === null || _e === void 0 ? void 0 : _e.disableSilentRefresh) !== null && _f !== void 0 ? _f : true, user: userData, tenantsState: tenantsState });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/nextjs",
3
3
  "libName": "FronteggNextJs",
4
- "version": "6.7.11",
4
+ "version": "6.7.12",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "types": "dist/index.d.ts",
package/server/index.js CHANGED
@@ -7,7 +7,7 @@ import { c as createGetSession } from '../createGetSession-ba9eb34d.js';
7
7
  import 'jose';
8
8
  import '@frontegg/react-hooks';
9
9
  import '@frontegg/rest-api';
10
- import { F as FronteggClientProviderNext13 } from '../FronteggClientProviderNext13-b1eb6b39.js';
10
+ import { F as FronteggClientProviderNext13 } from '../FronteggClientProviderNext13-6ae2672b.js';
11
11
  import '@frontegg/js';
12
12
  import '@frontegg/redux-store';
13
13
  import 'next/navigation';
@@ -1 +0,0 @@
1
- {"version":3,"file":"FronteggClientProviderNext13-b1eb6b39.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}