@frontegg/nextjs 7.0.8-alpha.4880976643 → 7.0.9-alpha.4946699124

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,597 +1,612 @@
1
1
  # Change Log
2
2
 
3
- ## [7.0.8](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.7...v7.0.8) (2023-5-4)
4
-
3
+ ## [7.0.9](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.8...v7.0.9) (2023-5-11)
4
+
5
+ - FR-11442 - multiple sso cleanup
6
+ - FR-11657 - login per tenant api new
7
+ - FR-11718 - fix users table
8
+ - FR-11113 - fix frontegg logo bug
9
+ - FR-11442 - SSO and provisioning split
10
+ - FR-11617 - a11y fix enter key issue
11
+ - FR-11656 - login per tenant self service UI
12
+ - FR-11352 - nested table
13
+ - [Snyk] Security upgrade @azure/storage-blob from 12.11.0 to 12.13.0
5
14
  - FR-11581 - fix a11y login-box onEnter event for links
6
15
  - FR-11353 - add new tree graph component
7
16
 
8
- ### NextJS Wrapper 7.0.8:
17
+ ### NextJS Wrapper 7.0.9:
9
18
  - FR-11632 - update CODEOWNERS
10
-
11
- ## [7.0.7](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.6...v7.0.7) (2023-4-28)
12
-
13
- - FR-11564 - Social login button shouldn't inherit from secondary color
14
-
15
- ## [7.0.6](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.5...v7.0.6) (2023-4-27)
16
-
17
- - Fixed passkeys issue with reCaptcha
18
- - Removed feature flag from passkeys button
19
- - Enable loading Frontegg helper scripts by providing query params to Frontegg external source
20
- - Security upgrade webpack from 5.74.0 to 5.76.0
21
-
22
- ### NextJS Wrapper 7.0.6:
23
- - FR-11538 - support-next-js-serach-param-for-login-per-tenant
24
-
25
- ## [7.0.5](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.4...v7.0.5) (2023-4-27)
26
-
27
- - Fixed input hover issue on suffix icon
28
- - A11y improvements
29
- - Fixed Passkeys button style
30
-
31
- ## [7.0.4](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.3...v7.0.4) (2023-4-23)
32
- - Lock reduxjs/toolkit version to be compatible in Vite types plugin
33
- - Fixed password input placeholder text in the login box
34
- - Fixed social login buttons order
35
- - Fix Vite js-sha256 warning
36
- - Fixed company name error in split mode sign up
37
- - Fixed phone number dropdown theming
38
- - Added aria labels to buttons
39
-
40
- ### NextJS Wrapper 7.0.4:
41
- - FR-11351 - preserve-query-params-for-login-per-tenant
42
-
43
- ## [7.0.3](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.2...v7.0.3) (2023-4-3)
44
-
45
- - Added support for SCIM groups
46
- - Updated texts across login box - grammar and terminology
47
- - Added impersonation indicator to show impersonator that they're in an impersonation session
48
- - Added passkeys feature
49
- - NextJS Wrapper 7.0.3:
50
-
51
- ### NextJS Wrapper 7.0.3:
52
- - FR-11268 - Fix nextjs edge session check
53
- - FR-11268 - build .env.test file in runtime with random values
54
-
55
- ## [7.0.2](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.1...v7.0.2) (2023-3-29)
56
-
57
- - FR-11247 - fix version branch 6.82
58
-
59
- - FR-11065 - add passkeys mock ff
60
- - FR-11189 - mfa authenticator app change input type
61
- - FR-10821 - fix table color
62
- - FR-11204 - add unit testing with jest
63
- - FR-11139 - fix groups
64
- - FR-11039 - fix groups dummy
65
- - FR-11039 - ff groups
66
- - FR-10530 - fix ff store name
67
- - FR-11067 - error handling on profile image upload
68
- - FR-11039 - extend users table with groups column
69
-
70
- ### NextJS Wrapper 7.0.2:
71
- - FR-11268 - Fix nextjs edge session check
72
- - FR-11268 - build .env.test file in runtime with random values
73
- - FE-11268 - Add support for ForceMFA after SAML login
74
-
75
- ## [7.0.1](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.0...v7.0.1) (2023-3-27)
76
-
77
- - FR-11247 - fix version branch 6.82
78
-
79
- - FR-11065 - add passkeys mock ff
80
- - FR-11189 - mfa authenticator app change input type
81
- - FR-10821 - fix table color
82
- - FR-11204 - add unit testing with jest
83
- - FR-11139 - fix groups
84
- - FR-11039 - fix groups dummy
85
- - FR-11039 - ff groups
86
- - FR-10530 - fix ff store name
87
- - FR-11067 - error handling on profile image upload
88
- - FR-11039 - extend users table with groups column
89
-
90
-
91
- ## [7.0.0](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.20...v7.0.0) (2023-3-16)
92
-
93
- ### Summary
94
-
95
- In this release, we've introduced several breaking changes that might impact your existing code.
96
- Please review the changes outlined below and update your code accordingly to ensure compatibility with the new version.
97
-
98
- ### Changes
99
- - **Folder Hierarchy:** Separate files per runtime environment ( pages / edge / appDirectory)
100
- - `@frontegg/nextjs/pages` for **pages** architecture.
101
- - `@frontegg/nextjs/app` for **appDirectory** architecture.
102
- - `@frontegg/nextjs/edge` for **edge** runtime.
103
- - `@frontegg/nextjs/middleware` for **api middleware**.
104
- - **Tree-Shaking:** Build package using babel.js with fully tree-shakable dist folder
105
- - **Logger:** Add ability for print info logs for debugging.
106
- - **Improved Error handling:** Improve api middleware error handing.
107
- - **Node.js 18 Support:** Support the new Undici network handler.
108
- - **Next.js 13.2 Support:** Next.js route handlers.
109
- - **Tests:** Add e2e tests for the `FronteggApiMiddleware`.
110
-
111
-
112
- ## Migrate from v6 to v7
113
-
114
- - [Migrate api middleware (tree-shakable, externalResolver, responseLimit)](#frontegg-api-middleware-migration).
115
- - [Edge middleware Migration (tree-shakable, stability)](#edge-middleware-migration)
116
- - [Pages architecture (tree-shakable, share logic code between architectures)](#pages-architecture-migration)
117
- - [AppDir architecture (tree-shakable, stability, support 13.2 routing)](#app-directory-architecture-migration)
118
-
119
-
120
- ### Frontegg API middleware migration
121
- If you are using FronteggProviderNoSSR you can skip this migration:
122
- 1. Rename imports to `@frontegg/nextjs/middleware`
123
- 2. export Next.JS config to mark as externalResolver and disable response limit.
124
-
125
- **API Middleware (before):**
126
- ```tsx
127
- export { fronteggMiddleware as default } from '@frontegg/nextjs';
128
- ```
129
- **API Middleware (after):**
130
- ```tsx
131
- import { FronteggApiMiddleware } from '@frontegg/nextjs/middleware';
132
-
133
- export default FronteggApiMiddleware;
134
- export const config = {
135
- api: {
136
- externalResolver: true,
137
- // https://nextjs.org/docs/messages/api-routes-response-size-limit
138
- responseLimit: false,
139
- },
140
- };
141
- ```
142
- ### Edge middleware migration
143
-
144
- If you are using nextjs **edge** middleware, (Ex: `middleware.ts`):
145
- 1. Rename the imports to `@frontegg/nextjs/edge`.
146
- 2. Rename `getSession` to `getSessionOnEdge`.
147
- 3. Use `redirectToLogin` method instead of building login url.
148
-
149
- **API Middleware (before):**
150
- ```tsx
151
- import { NextResponse } from 'next/server';
152
- import type { NextRequest } from 'next/server';
153
- import { getSession, shouldByPassMiddleware } from '@frontegg/nextjs/edge';
154
-
155
- export const middleware = async (request: NextRequest) => {
156
- const pathname = request.nextUrl.pathname;
157
-
158
- if (shouldByPassMiddleware(pathname /*, options: optional bypass configuration */)) {
159
- return NextResponse.next();
160
- }
161
-
162
- const session = await getSession(request);
163
- if (!session) {
164
- // redirect unauthenticated user to /account/login page
165
- const loginUrl = `/account/login?redirectUrl=${encodeURIComponent(pathname)}`;
166
- return NextResponse.redirect(new URL(loginUrl, process.env['FRONTEGG_APP_URL']));
167
- }
168
- return NextResponse.next();
169
- };
170
-
171
- export const config = {
172
- matcher: '/(.*)',
173
- };
174
- ```
175
- **API Middleware (after):**
176
- ```tsx
177
- import { NextResponse } from 'next/server';
178
- import type { NextRequest } from 'next/server';
179
- import { getSessionOnEdge, shouldByPassMiddleware, redirectToLogin } from '@frontegg/nextjs/edge';
180
-
181
- export const middleware = async (request: NextRequest) => {
182
- const pathname = request.nextUrl.pathname;
183
-
184
- if (shouldByPassMiddleware(pathname)) {
185
- return NextResponse.next();
186
- }
187
-
188
- const session = await getSessionOnEdge(request);
189
- if (!session) {
190
- return redirectToLogin(pathname);
191
- }
192
- return NextResponse.next();
193
- };
194
-
195
- export const config = {
196
- matcher: '/(.*)',
197
- };
198
- ```
199
-
200
- ### Pages architecture migration
201
- 1. Rename imports from `@frontegg/nextjs` to `@frontegg/nextjs/pages`.
202
-
203
- **Example (before):**
204
- ```tsx
205
- import { withFronteggApp } from '@frontegg/nextjs';
206
- ```
207
-
208
- **Example (after):**
209
- ```tsx
210
- import { withFronteggApp } from '@frontegg/nextjs/pages';
211
- ```
212
- 2. Import and then export `FronteggRouter` in your `pages/[...frontegg-router].tsx` file:
213
-
214
- **FronteggRouter (before):**
215
- ```tsx
216
- export {
217
- FronteggRouter as default,
218
- FronteggRouterProps as getServerSideProps,
219
- } from '@frontegg/nextjs';
220
- ```
221
- **FronteggRouter (after):**
222
- ```tsx
223
- import { FronteggRouter, FronteggRouterProps } from '@frontegg/nextjs/pages';
224
-
225
- export const getServerSideProps = FronteggRouterProps;
226
- export default FronteggRouter;
227
- ```
228
-
229
- 3. import getServerSideProps helpers from `@frontegg/nextjs/pages`:
230
-
231
- **Example Page (before):**
232
- ```tsx
233
- import { GetServerSideProps } from 'next';
234
- import { getSession, withSSRSession } from '@frontegg/nextjs';
235
-
236
- export default function ExamplePage({ ssrSession }) {
237
- return <div> My Example Page </div>;
238
- }
239
-
240
- export const getServerSideProps: GetServerSideProps = async (context) => {
241
- const session = await getSession(context.req);
242
- if (session) {
243
- // logged user
244
- return { props: { } };
245
- }
246
- // unauthorized user
247
- return { props: { } };
248
- };
249
- ```
250
- **Example Page (before):**
251
- ```tsx
252
- import { GetServerSideProps } from 'next';
253
- import { getSession, withSSRSession } from '@frontegg/nextjs/pages';
254
-
255
- export default function ExamplePage({ ssrSession }) {
256
- return <div> My Example Page </div>;
257
- }
258
-
259
- export const getServerSideProps: GetServerSideProps = async (context) => {
260
- const session = await getSession(context.req);
261
-
262
- // ...
263
- };
264
- ```
265
- ### App Directory architecture migration
266
-
267
- 1. Rename imports from `@frontegg/nextjs/server` to `@frontegg/nextjs/app`.
268
- 2. Move `FronteggAppProvider` to inside RootLayout's `<body>`:
269
-
270
- **RootLayout file (before):**
271
- ```tsx
272
- import { FronteggAppProvider } from '@frontegg/nextjs/server';
273
-
274
- export default function RootLayout({ children }: { children: React.ReactNode }) {
275
- const authOptions = {
276
- // keepSessionAlive: true // Uncomment this in order to maintain the session alive
277
- }
278
- return (
279
- <FronteggAppProvider authOptions={authOptions} hostedLoginBox={true}>
280
- <html>
281
- <head></head>
282
- <body>
283
- {children}
284
- </body>
285
- </html>
286
- </FronteggAppProvider>
287
- );
288
- }
289
- ```
290
- **RootLayout file (after):**
291
- ```tsx
292
- import { FronteggAppProvider } from '@frontegg/nextjs/app';
293
-
294
- export default function RootLayout({ children }: { children: React.ReactNode }) {
295
- const authOptions = {
296
- // keepSessionAlive: true // Uncomment this in order to maintain the session alive
297
- }
298
- return (
299
- <html>
300
- <head></head>
301
- <body>
302
- {/* @ts-expect-error Server Component for more details visit: https://github.com/vercel/next.js/issues/42292 */}
303
- <FronteggAppProvider authOptions={authOptions} hostedLoginBox={true}>
304
- {children}
305
- </FronteggAppProvider>
306
- </body>
307
- </html>
308
- );
309
- }
310
- ```
311
- 3. Export FronteggAppRouter from `@frontegg/nextjs/app`, `app/[...frontegg-router]/page.tsx` file:
312
-
313
- **FronteggAppRouter (before):**
314
- ```tsx
315
- export { FronteggAppRouter as default } from '@frontegg/nextjs/client';
316
- ```
317
- **FronteggAppRouter (after):**
318
- ```tsx
319
- import { FronteggAppRouter } from '@frontegg/nextjs/app';
320
-
321
- export default FronteggAppRouter;
322
- ```
323
-
324
- 4. Rename `getSession` and `getUserTokens` to `getAppUserSession` and `getAppUserTokens`:
325
-
326
- **ServerComponent Example (before):**
327
- ```tsx
328
- import { getSession, getUserTokens } from '@frontegg/nextjs/app';
329
-
330
- export const ServerSession = async () => {
331
- const userSession = await getSession();
332
- const tokens = await getUserTokens();
333
- return (
334
- <div>
335
- <div>user session server side: {JSON.stringify(userSession)}</div>;
336
- <div>user tokens server side: {JSON.stringify(tokens)}</div>
337
- </div>
338
- );
339
- };
340
- ```
341
-
342
- **ServerComponent Example (after):**
343
- ```tsx
344
- import { getAppUserSession, getAppUserTokens } from '@frontegg/nextjs/app';
345
-
346
- export const ServerSession = async () => {
347
- const userSession = await getAppUserSession();
348
- const tokens = await getAppUserTokens();
349
- return (
350
- <div>
351
- <div>user session server side: {JSON.stringify(userSession)}</div>;
352
- <div>user tokens server side: {JSON.stringify(tokens)}</div>
353
- </div>
354
- );
355
- };
356
- ```
357
-
358
- ## Further Information
359
- If you encounter any issues or have questions, please report them on our [Issues](https://github.com/frontegg/frontegg-nextjs/issues) page.
360
-
361
- ## [6.7.20](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.19...v6.7.20) (2023-3-16)
362
-
363
- - Fixed use permission regex issue to accept a wild card
364
- - User groups design fixes
365
- - Fixed passkeys loading mode and login flow with MFA
366
- - Update dependencies between passkeys and MFA on the privacy page
367
- - Added support to reset Idle session timeout by post messages from the client iFrame
368
- - Added an option to enforce redirect URLs to the same site only to avoid security issues
369
- - Added support for customized social login providers
370
-
371
-
372
- ## [6.7.19](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.18...v6.7.19) (2023-3-10)
373
-
374
- - Fixed resend OTC with reCaptcha
375
- - Added support to let tenants create a manage user groups in the admin portal under a FF
376
- - Added support to login with passkeys and manage passkeys in the admin portal under a FF
377
- - Fixed invite users issue when the vendor is not forcing roles and permissions
378
- - Support auth strategy and social logins for login per tenants
379
- - Refactored feature flag mechanism to be based on rest-api package
380
- - Fixed validation for postcode in admin portal forms
381
- - Fixed SMS code input to have input type number
382
- - Improved auth screens form UX
383
-
384
-
385
- ## [6.7.18](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.17...v6.7.18) (2023-2-21)
386
-
387
- - Fixed Admin portal SSO provider's options to be correlated with the vendor choice
388
- - Fixed background for table pivot column
389
- - Fixed impersonation by removing unnecessary redirects and adding a refresh call
390
- - Fixed style reorder bug when using @emotion/react and Frontegg Next.JS
391
-
392
- ## [6.7.17](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.16...v6.7.17) (2023-2-8)
393
-
394
- - Updated M2M tokens to reflect the vendor choice
395
-
396
- ## [6.7.16](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.15...v6.7.16) (2023-2-7)
397
-
398
- - Fixed go-to-sign-up message position in speedy login layout
399
- - Added an input component to the library for adding members to a tenant
400
- - Fix filtering SSO providers according to the vendor selection
401
- - Added user groups card header component to the library
402
- - Improved the admin portal and login box performance and bundle size
403
-
404
- ## [6.7.15](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.14...v6.7.15) (2023-2-6)
405
-
406
-
407
- ### NextJS Wrapper 6.7.15:
408
- - FR-10557 - Fix logout bug, Fix errors in embedded
409
- - FR-10557 - Improve NextJS navigation
410
- - FR-10557 - update middleware example code, add option to check if should bypass middleware
411
- - FR-10557 - Fix url for hosted login refresh token
412
- - FR-10557 - Fix jose import JWK key
413
- - FR-10557 - Fix social login embedded mode
414
- - FR-10557 - Add playwright tests for FornteggMiddleware
415
- - Bump http-cache-semantics from 4.1.0 to 4.1.1
416
- - FR-10557 - Add playwright for testing + Fix cookie parsing
417
-
418
- ## [6.7.14](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.13...v6.7.14) (2023-2-1)
419
-
420
-
421
- ### NextJS Wrapper 6.7.14:
422
- - FR-10557 - Create proxy single request handler instead of handler per request
423
-
424
- ## [6.7.13](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.12...v6.7.13) (2023-1-31)
425
-
426
-
427
- ### NextJS Wrapper 6.7.13:
428
- - FR-10557 - Bypass session creation if bodyStr is empty
429
-
430
- ## [6.7.12](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.11...v6.7.12) (2023-1-31)
431
-
432
- - FR-10549 - fix error login with sms
433
- - FR-10437 - select color
434
- - FR-10518 - fix client id not show in model
435
- -
436
-
437
- - FR-10485 - Update restapi version
438
- - FR-10017 - add email type to all email inputs
439
- - FR-10501 - Fix mobile width of login box
440
- - FR-10196 - Fix scroll in privacy page
441
- - FR-10489 - update scim ui
442
- - FR-10483 - Added the option to customize forget password button
443
- - FR-10374 - improve values ui in split mode
444
- - FR-10184 - add access tokens
445
- - FR-9995 - Accept Invitation text and icon change
446
-
447
- ### NextJS Wrapper 6.7.12:
448
- - FR-10597 - Set default tenants state if not logged in
449
- - FR-10584 - Set searchParam as optional in FronteggAppRouter
450
- - FR-10557 - Improve FronteggMiddleware request handler
451
-
452
- ## [6.7.11](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.10...v6.7.11) (2023-1-30)
453
-
454
- - FR-10549 - fix error login with sms
455
- - FR-10437 - select color
456
- - FR-10518 - fix client id not show in model
457
- -
458
-
459
- - FR-10485 - Update restapi version
460
- - FR-10017 - add email type to all email inputs
461
- - FR-10501 - Fix mobile width of login box
462
- - FR-10196 - Fix scroll in privacy page
463
- - FR-10489 - update scim ui
464
- - FR-10483 - Added the option to customize forget password button
465
- - FR-10374 - improve values ui in split mode
466
- - FR-10184 - add access tokens
467
- - FR-9995 - Accept Invitation text and icon change
468
- - FR-10261 - fix sign up position in dark theme
469
- - FR-10369 - change mfa ff name
470
- - FR-10330 - fixes for bulk
471
- - FR-9816 - Fix branch selection
472
- -
473
-
474
- - FR-10112 - update admin box pipeline angular
475
- - FR-10141 - update rest-api
476
-
477
- - FR-9816 - fix version
478
-
479
- ### NextJS Wrapper 6.7.11:
480
- - FR-10584 - Set searchParam as optional in FronteggAppRouter
481
- - FR-10557 - Improve FronteggMiddleware request handler
482
- - update frontegg manually
483
- - FR-10379 - disable refresh token by default for ssr
484
- - FR-10141 - Added support for logout on hosted login
485
- - FR-10342 - update readme for app directory
486
- - Bump json5 from 1.0.1 to 1.0.2
487
- - Update Frontegg AdminPortal to 6.58.0
488
-
489
- ## [6.7.10](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.9...v6.7.10) (2023-1-16)
490
-
491
- - Added support for built-in authenticators, security keys, and SMS as MFA methods
492
- - Fixed sign up position in dark theme
493
- - Added margin to login error
494
- - Disabled silent refresh token for SSR
495
- - Added support for logout on hosted login
496
- - Fixed session without keepSessionAlive
497
-
498
-
499
- ## [6.7.9](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.8...v6.7.9) (2022-12-20)
500
-
501
- - Added support for next 13 - app directory and server components
502
- - Added support for tree shaking
503
- - Added support for getSession on edge run time
504
- - Update iron-session to decrease bundle size
505
-
506
-
507
- ## [6.7.8](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.7...v6.7.8) (2022-12-20)
508
-
509
- - Fixed mfa input on mobile
510
- - Enabled scim without roles
511
- - Fixed menu component for dark theme
512
- - Added api navigation icon
513
- - Added tests for mfa
514
- - Added apple social login types
515
- - Added support for Hiding Invoices
516
-
517
-
518
- ## [6.7.7](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.6...v6.7.7) (2022-12-13)
519
-
520
- - Fixed MFA flow issues
521
- - Added support for subscriptions billing collection
522
- - Fixed the issue of the OTC screen submit button is disabled on mobile devices
523
- - Added SCIM section in admin portal under FF
524
-
525
- ## [6.7.6](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.5...v6.7.6) (2022-12-12)
526
- # v6.7.6
527
- Fixed ignoring urlPrefix issue
528
- Added the ability to Invite a user by bulk API in the admin portal
529
- Fixed OTC digits are not visible on mobile devices
530
- • Added MFA devices management section in the admin portal under FF
531
- Fixed the ability to copy invite link for dynamic base URL as well
532
- Added new abilities to MFA flows under FF
533
- Added support for providing an external CDN to load fonts in Frontegg components
534
- Update hide fields API according to new security tabs naming
535
- Changed max length for secret fields to 100 characters
536
- • Added support for customizing invite user dialog fields
537
- • Fixed creating custom webhook on the Admin Portal is sent with the event ID and not with the event Key
538
-
539
- ### NextJS Wrapper 6.7.6:
540
- - Improved SSR support for `withFronteggApp` function
541
-
542
- ## [6.7.5](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.4...v6.7.5) (2022-11-28)
543
-
544
- # v6.7.5
545
- - Update hide fields API according to new security tabs naming
546
- - Changed max length for secret fields to 100 characters
547
- - Added support for customizing invite user dialog fields
548
- - Added support for admin portal pre-defined theme options (dark, vivid, modern, and classic themes)
549
- - Added support for customizing admin portal navigation hover color
550
- - Fixed typo of Andorra country in countries dropdown
551
- - Fixed select popup alignment issue
552
- - Changed no local authentication feature to also hide the sign-up form when there is no local authentication option (use only social logins and SSO for signing up)
553
- - Added mock for feature flags API for admin portal preview mode
554
- - Fixed resend invitation and activate your account API calls
555
- - Fixed creating custom webhook on the Admin Portal is sent with the event ID and not with the event Key
556
- - Added support for customizing fields and tabs in the admin portal
557
-
558
- ### NextJS Wrapper 6.7.5:
559
- - Updated next readme to include hosted login box integration
560
-
561
- ## [6.7.4](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.3...v6.7.4) (2022-11-15)
562
-
563
- - Fixed redirect to the app after signing up without forced email verification
564
- - Fixed admin portal dark theme
565
- - Added the ability to customize fields and tabs in the admin portal
566
- - Fixed cleaning up error messages on sign up page when re-visiting the page
567
- - Fixed resizing the login box when the logo is null
568
- - Fix the ReCaptcha timeout issue
569
-
570
- ## [6.7.3](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.2...v6.7.3) (2022-11-11)
571
-
572
- - FR-9186 - support ssr with session and refresh token
573
- - FR-9614 - Add support for innerThemeProvider for admin portal pages and tabs
574
-
575
- - FR-9186 - fix pipeline
576
- ### AdminPortal 6.36.0:
577
- -
578
-
579
- ### AdminPortal 6.35.0:
580
- -
581
- ### AdminPortal 6.34.0:
582
- -
583
-
584
- ### NextJS Wrapper 6.7.3:
585
- - FR-9544 - remove console logs
586
- - FR-9544 - Add support for keep session a live
587
- - FR-9187 - split cookie if exceeds length of 4096
588
-
589
- ## [6.7.2](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.1...v6.7.2) (2022-10-26)
590
-
591
- ### AdminPortal 6.34.0:
592
- -
593
-
594
- ### NextJS Wrapper 6.7.2:
595
- - FR-9186 - Fix Changelog
596
- - FR-9186 - Generate changelog for pre-release / releases based on AdminPortal and LoginBox changes
597
-
19
+ # Change Log
20
+
21
+ ## [7.0.8](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.7...v7.0.8) (2023-5-4)
22
+
23
+ - FR-11581 - fix a11y login-box onEnter event for links
24
+ - FR-11353 - add new tree graph component
25
+
26
+ ## [7.0.7](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.6...v7.0.7) (2023-4-28)
27
+
28
+ - FR-11564 - Social login button shouldn't inherit from secondary color
29
+
30
+ ## [7.0.6](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.5...v7.0.6) (2023-4-27)
31
+
32
+ - Fixed passkeys issue with reCaptcha
33
+ - Removed feature flag from passkeys button
34
+ - Enable loading Frontegg helper scripts by providing query params to Frontegg external source
35
+ - Security upgrade webpack from 5.74.0 to 5.76.0
36
+
37
+ ### NextJS Wrapper 7.0.6:
38
+ - FR-11538 - support-next-js-serach-param-for-login-per-tenant
39
+
40
+ ## [7.0.5](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.4...v7.0.5) (2023-4-27)
41
+
42
+ - Fixed input hover issue on suffix icon
43
+ - A11y improvements
44
+ - Fixed Passkeys button style
45
+
46
+ ## [7.0.4](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.3...v7.0.4) (2023-4-23)
47
+ - Lock reduxjs/toolkit version to be compatible in Vite types plugin
48
+ - Fixed password input placeholder text in the login box
49
+ - Fixed social login buttons order
50
+ - Fix Vite js-sha256 warning
51
+ - Fixed company name error in split mode sign up
52
+ - Fixed phone number dropdown theming
53
+ - Added aria labels to buttons
54
+
55
+ ### NextJS Wrapper 7.0.4:
56
+ - FR-11351 - preserve-query-params-for-login-per-tenant
57
+
58
+ ## [7.0.3](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.2...v7.0.3) (2023-4-3)
59
+
60
+ - Added support for SCIM groups
61
+ - Updated texts across login box - grammar and terminology
62
+ - Added impersonation indicator to show impersonator that they're in an impersonation session
63
+ - Added passkeys feature
64
+ - NextJS Wrapper 7.0.3:
65
+
66
+ ### NextJS Wrapper 7.0.3:
67
+ - FR-11268 - Fix nextjs edge session check
68
+ - FR-11268 - build .env.test file in runtime with random values
69
+
70
+ ## [7.0.2](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.1...v7.0.2) (2023-3-29)
71
+
72
+ - FR-11247 - fix version branch 6.82
73
+
74
+ - FR-11065 - add passkeys mock ff
75
+ - FR-11189 - mfa authenticator app change input type
76
+ - FR-10821 - fix table color
77
+ - FR-11204 - add unit testing with jest
78
+ - FR-11139 - fix groups
79
+ - FR-11039 - fix groups dummy
80
+ - FR-11039 - ff groups
81
+ - FR-10530 - fix ff store name
82
+ - FR-11067 - error handling on profile image upload
83
+ - FR-11039 - extend users table with groups column
84
+
85
+ ### NextJS Wrapper 7.0.2:
86
+ - FR-11268 - Fix nextjs edge session check
87
+ - FR-11268 - build .env.test file in runtime with random values
88
+ - FE-11268 - Add support for ForceMFA after SAML login
89
+
90
+ ## [7.0.1](https://github.com/frontegg/frontegg-nextjs/compare/v7.0.0...v7.0.1) (2023-3-27)
91
+
92
+ - FR-11247 - fix version branch 6.82
93
+
94
+ - FR-11065 - add passkeys mock ff
95
+ - FR-11189 - mfa authenticator app change input type
96
+ - FR-10821 - fix table color
97
+ - FR-11204 - add unit testing with jest
98
+ - FR-11139 - fix groups
99
+ - FR-11039 - fix groups dummy
100
+ - FR-11039 - ff groups
101
+ - FR-10530 - fix ff store name
102
+ - FR-11067 - error handling on profile image upload
103
+ - FR-11039 - extend users table with groups column
104
+
105
+
106
+ ## [7.0.0](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.20...v7.0.0) (2023-3-16)
107
+
108
+ ### Summary
109
+
110
+ In this release, we've introduced several breaking changes that might impact your existing code.
111
+ Please review the changes outlined below and update your code accordingly to ensure compatibility with the new version.
112
+
113
+ ### Changes
114
+ - **Folder Hierarchy:** Separate files per runtime environment ( pages / edge / appDirectory)
115
+ - `@frontegg/nextjs/pages` for **pages** architecture.
116
+ - `@frontegg/nextjs/app` for **appDirectory** architecture.
117
+ - `@frontegg/nextjs/edge` for **edge** runtime.
118
+ - `@frontegg/nextjs/middleware` for **api middleware**.
119
+ - **Tree-Shaking:** Build package using babel.js with fully tree-shakable dist folder
120
+ - **Logger:** Add ability for print info logs for debugging.
121
+ - **Improved Error handling:** Improve api middleware error handing.
122
+ - **Node.js 18 Support:** Support the new Undici network handler.
123
+ - **Next.js 13.2 Support:** Next.js route handlers.
124
+ - **Tests:** Add e2e tests for the `FronteggApiMiddleware`.
125
+
126
+
127
+ ## Migrate from v6 to v7
128
+
129
+ - [Migrate api middleware (tree-shakable, externalResolver, responseLimit)](#frontegg-api-middleware-migration).
130
+ - [Edge middleware Migration (tree-shakable, stability)](#edge-middleware-migration)
131
+ - [Pages architecture (tree-shakable, share logic code between architectures)](#pages-architecture-migration)
132
+ - [AppDir architecture (tree-shakable, stability, support 13.2 routing)](#app-directory-architecture-migration)
133
+
134
+
135
+ ### Frontegg API middleware migration
136
+ If you are using FronteggProviderNoSSR you can skip this migration:
137
+ 1. Rename imports to `@frontegg/nextjs/middleware`
138
+ 2. export Next.JS config to mark as externalResolver and disable response limit.
139
+
140
+ **API Middleware (before):**
141
+ ```tsx
142
+ export { fronteggMiddleware as default } from '@frontegg/nextjs';
143
+ ```
144
+ **API Middleware (after):**
145
+ ```tsx
146
+ import { FronteggApiMiddleware } from '@frontegg/nextjs/middleware';
147
+
148
+ export default FronteggApiMiddleware;
149
+ export const config = {
150
+ api: {
151
+ externalResolver: true,
152
+ // https://nextjs.org/docs/messages/api-routes-response-size-limit
153
+ responseLimit: false,
154
+ },
155
+ };
156
+ ```
157
+ ### Edge middleware migration
158
+
159
+ If you are using nextjs **edge** middleware, (Ex: `middleware.ts`):
160
+ 1. Rename the imports to `@frontegg/nextjs/edge`.
161
+ 2. Rename `getSession` to `getSessionOnEdge`.
162
+ 3. Use `redirectToLogin` method instead of building login url.
163
+
164
+ **API Middleware (before):**
165
+ ```tsx
166
+ import { NextResponse } from 'next/server';
167
+ import type { NextRequest } from 'next/server';
168
+ import { getSession, shouldByPassMiddleware } from '@frontegg/nextjs/edge';
169
+
170
+ export const middleware = async (request: NextRequest) => {
171
+ const pathname = request.nextUrl.pathname;
172
+
173
+ if (shouldByPassMiddleware(pathname /*, options: optional bypass configuration */)) {
174
+ return NextResponse.next();
175
+ }
176
+
177
+ const session = await getSession(request);
178
+ if (!session) {
179
+ // redirect unauthenticated user to /account/login page
180
+ const loginUrl = `/account/login?redirectUrl=${encodeURIComponent(pathname)}`;
181
+ return NextResponse.redirect(new URL(loginUrl, process.env['FRONTEGG_APP_URL']));
182
+ }
183
+ return NextResponse.next();
184
+ };
185
+
186
+ export const config = {
187
+ matcher: '/(.*)',
188
+ };
189
+ ```
190
+ **API Middleware (after):**
191
+ ```tsx
192
+ import { NextResponse } from 'next/server';
193
+ import type { NextRequest } from 'next/server';
194
+ import { getSessionOnEdge, shouldByPassMiddleware, redirectToLogin } from '@frontegg/nextjs/edge';
195
+
196
+ export const middleware = async (request: NextRequest) => {
197
+ const pathname = request.nextUrl.pathname;
198
+
199
+ if (shouldByPassMiddleware(pathname)) {
200
+ return NextResponse.next();
201
+ }
202
+
203
+ const session = await getSessionOnEdge(request);
204
+ if (!session) {
205
+ return redirectToLogin(pathname);
206
+ }
207
+ return NextResponse.next();
208
+ };
209
+
210
+ export const config = {
211
+ matcher: '/(.*)',
212
+ };
213
+ ```
214
+
215
+ ### Pages architecture migration
216
+ 1. Rename imports from `@frontegg/nextjs` to `@frontegg/nextjs/pages`.
217
+
218
+ **Example (before):**
219
+ ```tsx
220
+ import { withFronteggApp } from '@frontegg/nextjs';
221
+ ```
222
+
223
+ **Example (after):**
224
+ ```tsx
225
+ import { withFronteggApp } from '@frontegg/nextjs/pages';
226
+ ```
227
+ 2. Import and then export `FronteggRouter` in your `pages/[...frontegg-router].tsx` file:
228
+
229
+ **FronteggRouter (before):**
230
+ ```tsx
231
+ export {
232
+ FronteggRouter as default,
233
+ FronteggRouterProps as getServerSideProps,
234
+ } from '@frontegg/nextjs';
235
+ ```
236
+ **FronteggRouter (after):**
237
+ ```tsx
238
+ import { FronteggRouter, FronteggRouterProps } from '@frontegg/nextjs/pages';
239
+
240
+ export const getServerSideProps = FronteggRouterProps;
241
+ export default FronteggRouter;
242
+ ```
243
+
244
+ 3. import getServerSideProps helpers from `@frontegg/nextjs/pages`:
245
+
246
+ **Example Page (before):**
247
+ ```tsx
248
+ import { GetServerSideProps } from 'next';
249
+ import { getSession, withSSRSession } from '@frontegg/nextjs';
250
+
251
+ export default function ExamplePage({ ssrSession }) {
252
+ return <div> My Example Page </div>;
253
+ }
254
+
255
+ export const getServerSideProps: GetServerSideProps = async (context) => {
256
+ const session = await getSession(context.req);
257
+ if (session) {
258
+ // logged user
259
+ return { props: { } };
260
+ }
261
+ // unauthorized user
262
+ return { props: { } };
263
+ };
264
+ ```
265
+ **Example Page (before):**
266
+ ```tsx
267
+ import { GetServerSideProps } from 'next';
268
+ import { getSession, withSSRSession } from '@frontegg/nextjs/pages';
269
+
270
+ export default function ExamplePage({ ssrSession }) {
271
+ return <div> My Example Page </div>;
272
+ }
273
+
274
+ export const getServerSideProps: GetServerSideProps = async (context) => {
275
+ const session = await getSession(context.req);
276
+
277
+ // ...
278
+ };
279
+ ```
280
+ ### App Directory architecture migration
281
+
282
+ 1. Rename imports from `@frontegg/nextjs/server` to `@frontegg/nextjs/app`.
283
+ 2. Move `FronteggAppProvider` to inside RootLayout's `<body>`:
284
+
285
+ **RootLayout file (before):**
286
+ ```tsx
287
+ import { FronteggAppProvider } from '@frontegg/nextjs/server';
288
+
289
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
290
+ const authOptions = {
291
+ // keepSessionAlive: true // Uncomment this in order to maintain the session alive
292
+ }
293
+ return (
294
+ <FronteggAppProvider authOptions={authOptions} hostedLoginBox={true}>
295
+ <html>
296
+ <head></head>
297
+ <body>
298
+ {children}
299
+ </body>
300
+ </html>
301
+ </FronteggAppProvider>
302
+ );
303
+ }
304
+ ```
305
+ **RootLayout file (after):**
306
+ ```tsx
307
+ import { FronteggAppProvider } from '@frontegg/nextjs/app';
308
+
309
+ export default function RootLayout({ children }: { children: React.ReactNode }) {
310
+ const authOptions = {
311
+ // keepSessionAlive: true // Uncomment this in order to maintain the session alive
312
+ }
313
+ return (
314
+ <html>
315
+ <head></head>
316
+ <body>
317
+ {/* @ts-expect-error Server Component for more details visit: https://github.com/vercel/next.js/issues/42292 */}
318
+ <FronteggAppProvider authOptions={authOptions} hostedLoginBox={true}>
319
+ {children}
320
+ </FronteggAppProvider>
321
+ </body>
322
+ </html>
323
+ );
324
+ }
325
+ ```
326
+ 3. Export FronteggAppRouter from `@frontegg/nextjs/app`, `app/[...frontegg-router]/page.tsx` file:
327
+
328
+ **FronteggAppRouter (before):**
329
+ ```tsx
330
+ export { FronteggAppRouter as default } from '@frontegg/nextjs/client';
331
+ ```
332
+ **FronteggAppRouter (after):**
333
+ ```tsx
334
+ import { FronteggAppRouter } from '@frontegg/nextjs/app';
335
+
336
+ export default FronteggAppRouter;
337
+ ```
338
+
339
+ 4. Rename `getSession` and `getUserTokens` to `getAppUserSession` and `getAppUserTokens`:
340
+
341
+ **ServerComponent Example (before):**
342
+ ```tsx
343
+ import { getSession, getUserTokens } from '@frontegg/nextjs/app';
344
+
345
+ export const ServerSession = async () => {
346
+ const userSession = await getSession();
347
+ const tokens = await getUserTokens();
348
+ return (
349
+ <div>
350
+ <div>user session server side: {JSON.stringify(userSession)}</div>;
351
+ <div>user tokens server side: {JSON.stringify(tokens)}</div>
352
+ </div>
353
+ );
354
+ };
355
+ ```
356
+
357
+ **ServerComponent Example (after):**
358
+ ```tsx
359
+ import { getAppUserSession, getAppUserTokens } from '@frontegg/nextjs/app';
360
+
361
+ export const ServerSession = async () => {
362
+ const userSession = await getAppUserSession();
363
+ const tokens = await getAppUserTokens();
364
+ return (
365
+ <div>
366
+ <div>user session server side: {JSON.stringify(userSession)}</div>;
367
+ <div>user tokens server side: {JSON.stringify(tokens)}</div>
368
+ </div>
369
+ );
370
+ };
371
+ ```
372
+
373
+ ## Further Information
374
+ If you encounter any issues or have questions, please report them on our [Issues](https://github.com/frontegg/frontegg-nextjs/issues) page.
375
+
376
+ ## [6.7.20](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.19...v6.7.20) (2023-3-16)
377
+
378
+ - Fixed use permission regex issue to accept a wild card
379
+ - User groups design fixes
380
+ - Fixed passkeys loading mode and login flow with MFA
381
+ - Update dependencies between passkeys and MFA on the privacy page
382
+ - Added support to reset Idle session timeout by post messages from the client iFrame
383
+ - Added an option to enforce redirect URLs to the same site only to avoid security issues
384
+ - Added support for customized social login providers
385
+
386
+
387
+ ## [6.7.19](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.18...v6.7.19) (2023-3-10)
388
+
389
+ - Fixed resend OTC with reCaptcha
390
+ - Added support to let tenants create a manage user groups in the admin portal under a FF
391
+ - Added support to login with passkeys and manage passkeys in the admin portal under a FF
392
+ - Fixed invite users issue when the vendor is not forcing roles and permissions
393
+ - Support auth strategy and social logins for login per tenants
394
+ - Refactored feature flag mechanism to be based on rest-api package
395
+ - Fixed validation for postcode in admin portal forms
396
+ - Fixed SMS code input to have input type number
397
+ - Improved auth screens form UX
398
+
399
+
400
+ ## [6.7.18](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.17...v6.7.18) (2023-2-21)
401
+
402
+ - Fixed Admin portal SSO provider's options to be correlated with the vendor choice
403
+ - Fixed background for table pivot column
404
+ - Fixed impersonation by removing unnecessary redirects and adding a refresh call
405
+ - Fixed style reorder bug when using @emotion/react and Frontegg Next.JS
406
+
407
+ ## [6.7.17](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.16...v6.7.17) (2023-2-8)
408
+
409
+ - Updated M2M tokens to reflect the vendor choice
410
+
411
+ ## [6.7.16](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.15...v6.7.16) (2023-2-7)
412
+
413
+ - Fixed go-to-sign-up message position in speedy login layout
414
+ - Added an input component to the library for adding members to a tenant
415
+ - Fix filtering SSO providers according to the vendor selection
416
+ - Added user groups card header component to the library
417
+ - Improved the admin portal and login box performance and bundle size
418
+
419
+ ## [6.7.15](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.14...v6.7.15) (2023-2-6)
420
+
421
+
422
+ ### NextJS Wrapper 6.7.15:
423
+ - FR-10557 - Fix logout bug, Fix errors in embedded
424
+ - FR-10557 - Improve NextJS navigation
425
+ - FR-10557 - update middleware example code, add option to check if should bypass middleware
426
+ - FR-10557 - Fix url for hosted login refresh token
427
+ - FR-10557 - Fix jose import JWK key
428
+ - FR-10557 - Fix social login embedded mode
429
+ - FR-10557 - Add playwright tests for FornteggMiddleware
430
+ - Bump http-cache-semantics from 4.1.0 to 4.1.1
431
+ - FR-10557 - Add playwright for testing + Fix cookie parsing
432
+
433
+ ## [6.7.14](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.13...v6.7.14) (2023-2-1)
434
+
435
+
436
+ ### NextJS Wrapper 6.7.14:
437
+ - FR-10557 - Create proxy single request handler instead of handler per request
438
+
439
+ ## [6.7.13](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.12...v6.7.13) (2023-1-31)
440
+
441
+
442
+ ### NextJS Wrapper 6.7.13:
443
+ - FR-10557 - Bypass session creation if bodyStr is empty
444
+
445
+ ## [6.7.12](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.11...v6.7.12) (2023-1-31)
446
+
447
+ - FR-10549 - fix error login with sms
448
+ - FR-10437 - select color
449
+ - FR-10518 - fix client id not show in model
450
+ -
451
+
452
+ - FR-10485 - Update restapi version
453
+ - FR-10017 - add email type to all email inputs
454
+ - FR-10501 - Fix mobile width of login box
455
+ - FR-10196 - Fix scroll in privacy page
456
+ - FR-10489 - update scim ui
457
+ - FR-10483 - Added the option to customize forget password button
458
+ - FR-10374 - improve values ui in split mode
459
+ - FR-10184 - add access tokens
460
+ - FR-9995 - Accept Invitation text and icon change
461
+
462
+ ### NextJS Wrapper 6.7.12:
463
+ - FR-10597 - Set default tenants state if not logged in
464
+ - FR-10584 - Set searchParam as optional in FronteggAppRouter
465
+ - FR-10557 - Improve FronteggMiddleware request handler
466
+
467
+ ## [6.7.11](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.10...v6.7.11) (2023-1-30)
468
+
469
+ - FR-10549 - fix error login with sms
470
+ - FR-10437 - select color
471
+ - FR-10518 - fix client id not show in model
472
+ -
473
+
474
+ - FR-10485 - Update restapi version
475
+ - FR-10017 - add email type to all email inputs
476
+ - FR-10501 - Fix mobile width of login box
477
+ - FR-10196 - Fix scroll in privacy page
478
+ - FR-10489 - update scim ui
479
+ - FR-10483 - Added the option to customize forget password button
480
+ - FR-10374 - improve values ui in split mode
481
+ - FR-10184 - add access tokens
482
+ - FR-9995 - Accept Invitation text and icon change
483
+ - FR-10261 - fix sign up position in dark theme
484
+ - FR-10369 - change mfa ff name
485
+ - FR-10330 - fixes for bulk
486
+ - FR-9816 - Fix branch selection
487
+ -
488
+
489
+ - FR-10112 - update admin box pipeline angular
490
+ - FR-10141 - update rest-api
491
+
492
+ - FR-9816 - fix version
493
+
494
+ ### NextJS Wrapper 6.7.11:
495
+ - FR-10584 - Set searchParam as optional in FronteggAppRouter
496
+ - FR-10557 - Improve FronteggMiddleware request handler
497
+ - update frontegg manually
498
+ - FR-10379 - disable refresh token by default for ssr
499
+ - FR-10141 - Added support for logout on hosted login
500
+ - FR-10342 - update readme for app directory
501
+ - Bump json5 from 1.0.1 to 1.0.2
502
+ - Update Frontegg AdminPortal to 6.58.0
503
+
504
+ ## [6.7.10](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.9...v6.7.10) (2023-1-16)
505
+
506
+ - Added support for built-in authenticators, security keys, and SMS as MFA methods
507
+ - Fixed sign up position in dark theme
508
+ - Added margin to login error
509
+ - Disabled silent refresh token for SSR
510
+ - Added support for logout on hosted login
511
+ - Fixed session without keepSessionAlive
512
+
513
+
514
+ ## [6.7.9](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.8...v6.7.9) (2022-12-20)
515
+
516
+ - Added support for next 13 - app directory and server components
517
+ - Added support for tree shaking
518
+ - Added support for getSession on edge run time
519
+ - Update iron-session to decrease bundle size
520
+
521
+
522
+ ## [6.7.8](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.7...v6.7.8) (2022-12-20)
523
+
524
+ - Fixed mfa input on mobile
525
+ - Enabled scim without roles
526
+ - Fixed menu component for dark theme
527
+ - Added api navigation icon
528
+ - Added tests for mfa
529
+ - Added apple social login types
530
+ - Added support for Hiding Invoices
531
+
532
+
533
+ ## [6.7.7](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.6...v6.7.7) (2022-12-13)
534
+
535
+ - Fixed MFA flow issues
536
+ - Added support for subscriptions billing collection
537
+ - Fixed the issue of the OTC screen submit button is disabled on mobile devices
538
+ - Added SCIM section in admin portal under FF
539
+
540
+ ## [6.7.6](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.5...v6.7.6) (2022-12-12)
541
+ # v6.7.6
542
+ Fixed ignoring urlPrefix issue
543
+ Added the ability to Invite a user by bulk API in the admin portal
544
+ Fixed OTC digits are not visible on mobile devices
545
+ • Added MFA devices management section in the admin portal under FF
546
+ • Fixed the ability to copy invite link for dynamic base URL as well
547
+ • Added new abilities to MFA flows under FF
548
+ Added support for providing an external CDN to load fonts in Frontegg components
549
+ Update hide fields API according to new security tabs naming
550
+ • Changed max length for secret fields to 100 characters
551
+ Added support for customizing invite user dialog fields
552
+ • Fixed creating custom webhook on the Admin Portal is sent with the event ID and not with the event Key
553
+
554
+ ### NextJS Wrapper 6.7.6:
555
+ - Improved SSR support for `withFronteggApp` function
556
+
557
+ ## [6.7.5](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.4...v6.7.5) (2022-11-28)
558
+
559
+ # v6.7.5
560
+ - Update hide fields API according to new security tabs naming
561
+ - Changed max length for secret fields to 100 characters
562
+ - Added support for customizing invite user dialog fields
563
+ - Added support for admin portal pre-defined theme options (dark, vivid, modern, and classic themes)
564
+ - Added support for customizing admin portal navigation hover color
565
+ - Fixed typo of Andorra country in countries dropdown
566
+ - Fixed select popup alignment issue
567
+ - Changed no local authentication feature to also hide the sign-up form when there is no local authentication option (use only social logins and SSO for signing up)
568
+ - Added mock for feature flags API for admin portal preview mode
569
+ - Fixed resend invitation and activate your account API calls
570
+ - Fixed creating custom webhook on the Admin Portal is sent with the event ID and not with the event Key
571
+ - Added support for customizing fields and tabs in the admin portal
572
+
573
+ ### NextJS Wrapper 6.7.5:
574
+ - Updated next readme to include hosted login box integration
575
+
576
+ ## [6.7.4](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.3...v6.7.4) (2022-11-15)
577
+
578
+ - Fixed redirect to the app after signing up without forced email verification
579
+ - Fixed admin portal dark theme
580
+ - Added the ability to customize fields and tabs in the admin portal
581
+ - Fixed cleaning up error messages on sign up page when re-visiting the page
582
+ - Fixed resizing the login box when the logo is null
583
+ - Fix the ReCaptcha timeout issue
584
+
585
+ ## [6.7.3](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.2...v6.7.3) (2022-11-11)
586
+
587
+ - FR-9186 - support ssr with session and refresh token
588
+ - FR-9614 - Add support for innerThemeProvider for admin portal pages and tabs
589
+
590
+ - FR-9186 - fix pipeline
591
+ ### AdminPortal 6.36.0:
592
+ -
593
+
594
+ ### AdminPortal 6.35.0:
595
+ -
596
+ ### AdminPortal 6.34.0:
597
+ -
598
+
599
+ ### NextJS Wrapper 6.7.3:
600
+ - FR-9544 - remove console logs
601
+ - FR-9544 - Add support for keep session a live
602
+ - FR-9187 - split cookie if exceeds length of 4096
603
+
604
+ ## [6.7.2](https://github.com/frontegg/frontegg-nextjs/compare/v6.7.1...v6.7.2) (2022-10-26)
605
+
606
+ ### AdminPortal 6.34.0:
607
+ -
608
+
609
+ ### NextJS Wrapper 6.7.2:
610
+ - FR-9186 - Fix Changelog
611
+ - FR-9186 - Generate changelog for pre-release / releases based on AdminPortal and LoginBox changes
612
+
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license Frontegg v7.0.8-alpha.4880976643
1
+ /** @license Frontegg v7.0.9-alpha.4946699124
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,7 +1,7 @@
1
1
  {
2
2
  "name": "@frontegg/nextjs",
3
3
  "libName": "FronteggNextJs",
4
- "version": "7.0.8-alpha.4880976643",
4
+ "version": "7.0.9-alpha.4946699124",
5
5
  "author": "Frontegg LTD",
6
6
  "license": "MIT",
7
7
  "repository": {
@@ -27,8 +27,8 @@
27
27
  "lint-json": "eslint -c .eslintrc.json -o ./lint-report.json --format json --no-color ./src/**/*.{ts,tsx}"
28
28
  },
29
29
  "dependencies": {
30
- "@frontegg/js": "6.95.0",
31
- "@frontegg/react-hooks": "6.95.0",
30
+ "@frontegg/js": "6.96.0",
31
+ "@frontegg/react-hooks": "6.96.0",
32
32
  "http-proxy": "^1.18.1",
33
33
  "iron-session": "^6.3.1",
34
34
  "jose": "^4.12.2"
package/sdkVersion.js CHANGED
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _default = {
8
- version: '7.0.8-alpha.4880976643'
8
+ version: '7.0.9-alpha.4946699124'
9
9
  };
10
10
  exports.default = _default;
11
11
  //# sourceMappingURL=sdkVersion.js.map
package/sdkVersion.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"sdkVersion.js","names":["version","exports","default","_default"],"sources":["../../../packages/nextjs/src/sdkVersion.ts"],"sourcesContent":["export default { version: '7.0.8-alpha.4880976643' };\n"],"mappings":";;;;;;eAAe;EAAEA,OAAO,EAAE;AAAyB,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAC,QAAA"}
1
+ {"version":3,"file":"sdkVersion.js","names":["version","exports","default","_default"],"sources":["../../../packages/nextjs/src/sdkVersion.ts"],"sourcesContent":["export default { version: '7.0.9-alpha.4946699124' };\n"],"mappings":";;;;;;eAAe;EAAEA,OAAO,EAAE;AAAyB,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAC,QAAA"}