@frontegg/nextjs 6.7.11-alpha.4036823874 → 6.7.11-alpha.4044571259

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,7 +1,10 @@
1
1
  # Change Log
2
2
 
3
- ## [6.7.11](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.10...v6.7.11) (2023-1-29)
3
+ ## [6.7.11](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.10...v6.7.11) (2023-1-30)
4
4
 
5
+ - FR-10549 - fix error login with sms
6
+ - FR-10437 - select color
7
+ - FR-10518 - fix client id not show in model
5
8
  -
6
9
 
7
10
  - FR-10485 - Update restapi version
@@ -25,6 +28,7 @@
25
28
  - FR-9816 - fix version
26
29
 
27
30
  ### NextJS Wrapper 6.7.11:
31
+ - FR-10584 - Set searchParam as optional in FronteggAppRouter
28
32
  - FR-10557 - Improve FronteggMiddleware request handler
29
33
  - update frontegg manually
30
34
  - FR-10379 - disable refresh token by default for ssr
@@ -1,10 +1,10 @@
1
1
  /// <reference types="node" />
2
2
  import { ParsedUrlQuery } from 'querystring';
3
- type FronteggRouterProps = {
3
+ interface FronteggRouterProps {
4
4
  params: ParsedUrlQuery & {
5
5
  'frontegg-router'?: string[];
6
6
  };
7
- searchParams: ParsedUrlQuery;
8
- };
7
+ searchParams?: ParsedUrlQuery;
8
+ }
9
9
  export declare function FronteggAppRouter({ params: { 'frontegg-router': pathArr }, searchParams }: FronteggRouterProps): string;
10
10
  export {};
package/client/index.js CHANGED
@@ -23,7 +23,7 @@ function FronteggAppRouter(_a) {
23
23
  var loginWithRedirect = useLoginWithRedirect();
24
24
  var logout = useLoginActions().logout;
25
25
  var pathname = "/".concat(pathArr.join('/'));
26
- if (!pathname || pathname.startsWith('/_next/data')) {
26
+ if (searchParams && (!pathname || pathname.startsWith('/_next/data'))) {
27
27
  var query = searchParams[Object.keys(searchParams)[0]];
28
28
  pathname = "/".concat(Array.isArray(query) ? query.join('/') : query);
29
29
  }
@@ -42,8 +42,8 @@ function FronteggAppRouter(_a) {
42
42
  }
43
43
  if (app.options.hostedLoginBox) {
44
44
  if (pathname === routesObj.loginUrl) {
45
- if (searchParams.redirectUrl) {
46
- localStorage.setItem('FRONTEGG_AFTER_AUTH_REDIRECT_URL', "".concat(window.location.origin).concat(searchParams.redirectUrl));
45
+ if (searchParams === null || searchParams === void 0 ? void 0 : searchParams.redirectUrl) {
46
+ localStorage.setItem('FRONTEGG_AFTER_AUTH_REDIRECT_URL', "".concat(window.location.origin).concat(searchParams === null || searchParams === void 0 ? void 0 : searchParams.redirectUrl));
47
47
  }
48
48
  loginWithRedirect();
49
49
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@frontegg/nextjs",
3
3
  "libName": "FronteggNextJs",
4
- "version": "6.7.11-alpha.4036823874",
4
+ "version": "6.7.11-alpha.4044571259",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "types": "dist/index.d.ts",
8
8
  "dependencies": {
9
- "@frontegg/js": "6.68.0",
10
- "@frontegg/react-hooks": "6.68.0",
9
+ "@frontegg/js": "6.69.0",
10
+ "@frontegg/react-hooks": "6.69.0",
11
11
  "@types/http-proxy": "^1.17.9",
12
12
  "cookie": "^0.5.0",
13
13
  "http-proxy": "^1.18.1",