@descope/nextjs-sdk 0.14.29 → 0.14.31

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/dist/cjs/index.js CHANGED
@@ -15,6 +15,7 @@ exports.AccessKeyManagement = DescopeWidgets.AccessKeyManagement;
15
15
  exports.ApplicationsPortal = DescopeWidgets.ApplicationsPortal;
16
16
  exports.AuditManagement = DescopeWidgets.AuditManagement;
17
17
  exports.RoleManagement = DescopeWidgets.RoleManagement;
18
+ exports.TenantProfile = DescopeWidgets.TenantProfile;
18
19
  exports.UserManagement = DescopeWidgets.UserManagement;
19
20
  exports.UserProfile = DescopeWidgets.UserProfile;
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  const DESCOPE_SESSION_HEADER = 'x-descope-session';
4
4
  const baseHeaders = {
5
5
  'x-descope-sdk-name': 'nextjs',
6
- 'x-descope-sdk-version': "0.14.29"
6
+ 'x-descope-sdk-version': "0.14.31"
7
7
  };
8
8
  const DEFAULT_PUBLIC_ROUTES = {
9
9
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -18,11 +18,13 @@ const AccessKeyManagement = makeWidget('AccessKeyManagement');
18
18
  const AuditManagement = makeWidget('AuditManagement');
19
19
  const UserProfile = makeWidget('UserProfile');
20
20
  const ApplicationsPortal = makeWidget('ApplicationsPortal');
21
+ const TenantProfile = makeWidget('TenantProfile');
21
22
 
22
23
  exports.AccessKeyManagement = AccessKeyManagement;
23
24
  exports.ApplicationsPortal = ApplicationsPortal;
24
25
  exports.AuditManagement = AuditManagement;
25
26
  exports.RoleManagement = RoleManagement;
27
+ exports.TenantProfile = TenantProfile;
26
28
  exports.UserManagement = UserManagement;
27
29
  exports.UserProfile = UserProfile;
28
30
  //# sourceMappingURL=DescopeWidgets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DescopeWidgets.js","sources":["../../../src/shared/DescopeWidgets.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable import/exports-last, prefer-arrow/prefer-arrow-functions */\n\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nimport type {\n\tUserManagement as UserManagementWC,\n\tRoleManagement as RoleManagementWC,\n\tAccessKeyManagement as AccessKeyManagementWC,\n\tAuditManagement as AuditManagementWC,\n\tUserProfile as UserProfileWC,\n\tApplicationsPortal as ApplicationsPortalWC\n} from '@descope/react-sdk';\n\nexport type UserManagementProps = React.ComponentProps<typeof UserManagementWC>;\nexport type RoleManagementProps = React.ComponentProps<typeof RoleManagementWC>;\nexport type AccessKeyManagementProps = React.ComponentProps<\n\ttypeof AccessKeyManagementWC\n>;\nexport type AuditManagementProps = React.ComponentProps<\n\ttypeof AuditManagementWC\n>;\nexport type UserProfileProps = React.ComponentProps<typeof UserProfileWC>;\nexport type ApplicationsPortalProps = React.ComponentProps<\n\ttypeof ApplicationsPortalWC\n>;\n\nfunction makeWidget<T extends Record<string, any>>(name: string) {\n\treturn dynamic<T>(\n\t\t() =>\n\t\t\timport('@descope/react-sdk').then((mod: any) => {\n\t\t\t\tconst Inner = mod[name] as React.ComponentType<any>;\n\t\t\t\tconst Wrapped = (props: T) => React.createElement(Inner, props);\n\t\t\t\t(Wrapped as any).displayName = `Descope${name}`;\n\t\t\t\treturn { default: Wrapped };\n\t\t\t}),\n\t\t{ ssr: false }\n\t);\n}\n\nexport const UserManagement: React.ComponentType<UserManagementProps> =\n\tmakeWidget<UserManagementProps>('UserManagement');\nexport const RoleManagement: React.ComponentType<RoleManagementProps> =\n\tmakeWidget<RoleManagementProps>('RoleManagement');\nexport const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps> =\n\tmakeWidget<AccessKeyManagementProps>('AccessKeyManagement');\nexport const AuditManagement: React.ComponentType<AuditManagementProps> =\n\tmakeWidget<AuditManagementProps>('AuditManagement');\nexport const UserProfile: React.ComponentType<UserProfileProps> =\n\tmakeWidget<UserProfileProps>('UserProfile');\nexport const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps> =\n\tmakeWidget<ApplicationsPortalProps>('ApplicationsPortal');\n"],"names":[],"mappings":";;;;;;AA4BA;AACC;AAGG;AACA;AACC;AACD;;AAIJ;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"DescopeWidgets.js","sources":["../../../src/shared/DescopeWidgets.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable import/exports-last, prefer-arrow/prefer-arrow-functions */\n\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nimport type {\n\tUserManagement as UserManagementWC,\n\tRoleManagement as RoleManagementWC,\n\tAccessKeyManagement as AccessKeyManagementWC,\n\tAuditManagement as AuditManagementWC,\n\tUserProfile as UserProfileWC,\n\tApplicationsPortal as ApplicationsPortalWC,\n\tTenantProfile as TenantProfileWC\n} from '@descope/react-sdk';\n\nexport type UserManagementProps = React.ComponentProps<typeof UserManagementWC>;\nexport type RoleManagementProps = React.ComponentProps<typeof RoleManagementWC>;\nexport type AccessKeyManagementProps = React.ComponentProps<\n\ttypeof AccessKeyManagementWC\n>;\nexport type AuditManagementProps = React.ComponentProps<\n\ttypeof AuditManagementWC\n>;\nexport type UserProfileProps = React.ComponentProps<typeof UserProfileWC>;\nexport type ApplicationsPortalProps = React.ComponentProps<\n\ttypeof ApplicationsPortalWC\n>;\nexport type TenantProfileProps = React.ComponentProps<typeof TenantProfileWC>;\n\nfunction makeWidget<T extends Record<string, any>>(name: string) {\n\treturn dynamic<T>(\n\t\t() =>\n\t\t\timport('@descope/react-sdk').then((mod: any) => {\n\t\t\t\tconst Inner = mod[name] as React.ComponentType<any>;\n\t\t\t\tconst Wrapped = (props: T) => React.createElement(Inner, props);\n\t\t\t\t(Wrapped as any).displayName = `Descope${name}`;\n\t\t\t\treturn { default: Wrapped };\n\t\t\t}),\n\t\t{ ssr: false }\n\t);\n}\n\nexport const UserManagement: React.ComponentType<UserManagementProps> =\n\tmakeWidget<UserManagementProps>('UserManagement');\nexport const RoleManagement: React.ComponentType<RoleManagementProps> =\n\tmakeWidget<RoleManagementProps>('RoleManagement');\nexport const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps> =\n\tmakeWidget<AccessKeyManagementProps>('AccessKeyManagement');\nexport const AuditManagement: React.ComponentType<AuditManagementProps> =\n\tmakeWidget<AuditManagementProps>('AuditManagement');\nexport const UserProfile: React.ComponentType<UserProfileProps> =\n\tmakeWidget<UserProfileProps>('UserProfile');\nexport const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps> =\n\tmakeWidget<ApplicationsPortalProps>('ApplicationsPortal');\nexport const TenantProfile: React.ComponentType<TenantProfileProps> =\n\tmakeWidget<TenantProfileProps>('TenantProfile');\n"],"names":[],"mappings":";;;;;;AA8BA;AACC;AAGG;AACA;AACC;AACD;;AAIJ;;;;;;;;;;;;;;;"}
@@ -3,7 +3,7 @@
3
3
  // eslint-disable-next-line import/prefer-default-export
4
4
  const baseHeaders = {
5
5
  'x-descope-sdk-name': 'nextjs',
6
- 'x-descope-sdk-version': "0.14.29"
6
+ 'x-descope-sdk-version': "0.14.31"
7
7
  };
8
8
 
9
9
  exports.baseHeaders = baseHeaders;
package/dist/esm/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { default as AuthProvider } from './shared/AuthProvider.js';
2
2
  export { Descope, SignInFlow, SignUpFlow, SignUpOrInFlow } from './shared/DescopeFlows.js';
3
- export { AccessKeyManagement, ApplicationsPortal, AuditManagement, RoleManagement, UserManagement, UserProfile } from './shared/DescopeWidgets.js';
3
+ export { AccessKeyManagement, ApplicationsPortal, AuditManagement, RoleManagement, TenantProfile, UserManagement, UserProfile } from './shared/DescopeWidgets.js';
4
4
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  const DESCOPE_SESSION_HEADER = 'x-descope-session';
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.14.29"
4
+ 'x-descope-sdk-version': "0.14.31"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -16,6 +16,7 @@ const AccessKeyManagement = makeWidget('AccessKeyManagement');
16
16
  const AuditManagement = makeWidget('AuditManagement');
17
17
  const UserProfile = makeWidget('UserProfile');
18
18
  const ApplicationsPortal = makeWidget('ApplicationsPortal');
19
+ const TenantProfile = makeWidget('TenantProfile');
19
20
 
20
- export { AccessKeyManagement, ApplicationsPortal, AuditManagement, RoleManagement, UserManagement, UserProfile };
21
+ export { AccessKeyManagement, ApplicationsPortal, AuditManagement, RoleManagement, TenantProfile, UserManagement, UserProfile };
21
22
  //# sourceMappingURL=DescopeWidgets.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DescopeWidgets.js","sources":["../../../src/shared/DescopeWidgets.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable import/exports-last, prefer-arrow/prefer-arrow-functions */\n\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nimport type {\n\tUserManagement as UserManagementWC,\n\tRoleManagement as RoleManagementWC,\n\tAccessKeyManagement as AccessKeyManagementWC,\n\tAuditManagement as AuditManagementWC,\n\tUserProfile as UserProfileWC,\n\tApplicationsPortal as ApplicationsPortalWC\n} from '@descope/react-sdk';\n\nexport type UserManagementProps = React.ComponentProps<typeof UserManagementWC>;\nexport type RoleManagementProps = React.ComponentProps<typeof RoleManagementWC>;\nexport type AccessKeyManagementProps = React.ComponentProps<\n\ttypeof AccessKeyManagementWC\n>;\nexport type AuditManagementProps = React.ComponentProps<\n\ttypeof AuditManagementWC\n>;\nexport type UserProfileProps = React.ComponentProps<typeof UserProfileWC>;\nexport type ApplicationsPortalProps = React.ComponentProps<\n\ttypeof ApplicationsPortalWC\n>;\n\nfunction makeWidget<T extends Record<string, any>>(name: string) {\n\treturn dynamic<T>(\n\t\t() =>\n\t\t\timport('@descope/react-sdk').then((mod: any) => {\n\t\t\t\tconst Inner = mod[name] as React.ComponentType<any>;\n\t\t\t\tconst Wrapped = (props: T) => React.createElement(Inner, props);\n\t\t\t\t(Wrapped as any).displayName = `Descope${name}`;\n\t\t\t\treturn { default: Wrapped };\n\t\t\t}),\n\t\t{ ssr: false }\n\t);\n}\n\nexport const UserManagement: React.ComponentType<UserManagementProps> =\n\tmakeWidget<UserManagementProps>('UserManagement');\nexport const RoleManagement: React.ComponentType<RoleManagementProps> =\n\tmakeWidget<RoleManagementProps>('RoleManagement');\nexport const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps> =\n\tmakeWidget<AccessKeyManagementProps>('AccessKeyManagement');\nexport const AuditManagement: React.ComponentType<AuditManagementProps> =\n\tmakeWidget<AuditManagementProps>('AuditManagement');\nexport const UserProfile: React.ComponentType<UserProfileProps> =\n\tmakeWidget<UserProfileProps>('UserProfile');\nexport const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps> =\n\tmakeWidget<ApplicationsPortalProps>('ApplicationsPortal');\n"],"names":[],"mappings":";;;;AA4BA;AACC;AAGG;AACA;AACC;AACD;;AAIJ;;;;;;;;"}
1
+ {"version":3,"file":"DescopeWidgets.js","sources":["../../../src/shared/DescopeWidgets.tsx"],"sourcesContent":["'use client';\n\n/* eslint-disable import/exports-last, prefer-arrow/prefer-arrow-functions */\n\nimport React from 'react';\nimport dynamic from 'next/dynamic';\nimport type {\n\tUserManagement as UserManagementWC,\n\tRoleManagement as RoleManagementWC,\n\tAccessKeyManagement as AccessKeyManagementWC,\n\tAuditManagement as AuditManagementWC,\n\tUserProfile as UserProfileWC,\n\tApplicationsPortal as ApplicationsPortalWC,\n\tTenantProfile as TenantProfileWC\n} from '@descope/react-sdk';\n\nexport type UserManagementProps = React.ComponentProps<typeof UserManagementWC>;\nexport type RoleManagementProps = React.ComponentProps<typeof RoleManagementWC>;\nexport type AccessKeyManagementProps = React.ComponentProps<\n\ttypeof AccessKeyManagementWC\n>;\nexport type AuditManagementProps = React.ComponentProps<\n\ttypeof AuditManagementWC\n>;\nexport type UserProfileProps = React.ComponentProps<typeof UserProfileWC>;\nexport type ApplicationsPortalProps = React.ComponentProps<\n\ttypeof ApplicationsPortalWC\n>;\nexport type TenantProfileProps = React.ComponentProps<typeof TenantProfileWC>;\n\nfunction makeWidget<T extends Record<string, any>>(name: string) {\n\treturn dynamic<T>(\n\t\t() =>\n\t\t\timport('@descope/react-sdk').then((mod: any) => {\n\t\t\t\tconst Inner = mod[name] as React.ComponentType<any>;\n\t\t\t\tconst Wrapped = (props: T) => React.createElement(Inner, props);\n\t\t\t\t(Wrapped as any).displayName = `Descope${name}`;\n\t\t\t\treturn { default: Wrapped };\n\t\t\t}),\n\t\t{ ssr: false }\n\t);\n}\n\nexport const UserManagement: React.ComponentType<UserManagementProps> =\n\tmakeWidget<UserManagementProps>('UserManagement');\nexport const RoleManagement: React.ComponentType<RoleManagementProps> =\n\tmakeWidget<RoleManagementProps>('RoleManagement');\nexport const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps> =\n\tmakeWidget<AccessKeyManagementProps>('AccessKeyManagement');\nexport const AuditManagement: React.ComponentType<AuditManagementProps> =\n\tmakeWidget<AuditManagementProps>('AuditManagement');\nexport const UserProfile: React.ComponentType<UserProfileProps> =\n\tmakeWidget<UserProfileProps>('UserProfile');\nexport const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps> =\n\tmakeWidget<ApplicationsPortalProps>('ApplicationsPortal');\nexport const TenantProfile: React.ComponentType<TenantProfileProps> =\n\tmakeWidget<TenantProfileProps>('TenantProfile');\n"],"names":[],"mappings":";;;;AA8BA;AACC;AAGG;AACA;AACC;AACD;;AAIJ;;;;;;;;;"}
@@ -1,7 +1,7 @@
1
1
  // eslint-disable-next-line import/prefer-default-export
2
2
  const baseHeaders = {
3
3
  'x-descope-sdk-name': 'nextjs',
4
- 'x-descope-sdk-version': "0.14.29"
4
+ 'x-descope-sdk-version': "0.14.31"
5
5
  };
6
6
 
7
7
  export { baseHeaders };
@@ -1,14 +1,16 @@
1
1
  import React from 'react';
2
- import type { UserManagement as UserManagementWC, RoleManagement as RoleManagementWC, AccessKeyManagement as AccessKeyManagementWC, AuditManagement as AuditManagementWC, UserProfile as UserProfileWC, ApplicationsPortal as ApplicationsPortalWC } from '@descope/react-sdk';
2
+ import type { UserManagement as UserManagementWC, RoleManagement as RoleManagementWC, AccessKeyManagement as AccessKeyManagementWC, AuditManagement as AuditManagementWC, UserProfile as UserProfileWC, ApplicationsPortal as ApplicationsPortalWC, TenantProfile as TenantProfileWC } from '@descope/react-sdk';
3
3
  export type UserManagementProps = React.ComponentProps<typeof UserManagementWC>;
4
4
  export type RoleManagementProps = React.ComponentProps<typeof RoleManagementWC>;
5
5
  export type AccessKeyManagementProps = React.ComponentProps<typeof AccessKeyManagementWC>;
6
6
  export type AuditManagementProps = React.ComponentProps<typeof AuditManagementWC>;
7
7
  export type UserProfileProps = React.ComponentProps<typeof UserProfileWC>;
8
8
  export type ApplicationsPortalProps = React.ComponentProps<typeof ApplicationsPortalWC>;
9
+ export type TenantProfileProps = React.ComponentProps<typeof TenantProfileWC>;
9
10
  export declare const UserManagement: React.ComponentType<UserManagementProps>;
10
11
  export declare const RoleManagement: React.ComponentType<RoleManagementProps>;
11
12
  export declare const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps>;
12
13
  export declare const AuditManagement: React.ComponentType<AuditManagementProps>;
13
14
  export declare const UserProfile: React.ComponentType<UserProfileProps>;
14
15
  export declare const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps>;
16
+ export declare const TenantProfile: React.ComponentType<TenantProfileProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/nextjs-sdk",
3
- "version": "0.14.29",
3
+ "version": "0.14.31",
4
4
  "description": "Descope NextJS SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -64,9 +64,9 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@descope/node-sdk": "1.7.16",
67
- "@descope/react-sdk": "2.21.3",
68
- "@descope/core-js-sdk": "2.50.1",
69
- "@descope/web-component": "3.47.11"
67
+ "@descope/react-sdk": "2.22.0",
68
+ "@descope/web-component": "3.48.0",
69
+ "@descope/core-js-sdk": "2.52.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "7.26.0",