@descope/nextjs-sdk 0.14.38 → 0.14.40

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
@@ -14,6 +14,7 @@ exports.SignUpOrInFlow = DescopeFlows.SignUpOrInFlow;
14
14
  exports.AccessKeyManagement = DescopeWidgets.AccessKeyManagement;
15
15
  exports.ApplicationsPortal = DescopeWidgets.ApplicationsPortal;
16
16
  exports.AuditManagement = DescopeWidgets.AuditManagement;
17
+ exports.OutboundApplications = DescopeWidgets.OutboundApplications;
17
18
  exports.RoleManagement = DescopeWidgets.RoleManagement;
18
19
  exports.TenantProfile = DescopeWidgets.TenantProfile;
19
20
  exports.UserManagement = DescopeWidgets.UserManagement;
@@ -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.38"
6
+ 'x-descope-sdk-version': "0.14.40"
7
7
  };
8
8
  const DEFAULT_PUBLIC_ROUTES = {
9
9
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -19,10 +19,12 @@ const AuditManagement = makeWidget('AuditManagement');
19
19
  const UserProfile = makeWidget('UserProfile');
20
20
  const ApplicationsPortal = makeWidget('ApplicationsPortal');
21
21
  const TenantProfile = makeWidget('TenantProfile');
22
+ const OutboundApplications = makeWidget('OutboundApplications');
22
23
 
23
24
  exports.AccessKeyManagement = AccessKeyManagement;
24
25
  exports.ApplicationsPortal = ApplicationsPortal;
25
26
  exports.AuditManagement = AuditManagement;
27
+ exports.OutboundApplications = OutboundApplications;
26
28
  exports.RoleManagement = RoleManagement;
27
29
  exports.TenantProfile = TenantProfile;
28
30
  exports.UserManagement = UserManagement;
@@ -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\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
+ {"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\tOutboundApplications as OutboundApplicationsWC\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>;\nexport type OutboundApplicationsProps = React.ComponentProps<\n\ttypeof OutboundApplicationsWC\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');\nexport const TenantProfile: React.ComponentType<TenantProfileProps> =\n\tmakeWidget<TenantProfileProps>('TenantProfile');\nexport const OutboundApplications: React.ComponentType<OutboundApplicationsProps> =\n\tmakeWidget<OutboundApplicationsProps>('OutboundApplications');\n"],"names":[],"mappings":";;;;;;AAkCA;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.38"
6
+ 'x-descope-sdk-version': "0.14.40"
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, TenantProfile, UserManagement, UserProfile } from './shared/DescopeWidgets.js';
3
+ export { AccessKeyManagement, ApplicationsPortal, AuditManagement, OutboundApplications, 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.38"
4
+ 'x-descope-sdk-version': "0.14.40"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -17,6 +17,7 @@ const AuditManagement = makeWidget('AuditManagement');
17
17
  const UserProfile = makeWidget('UserProfile');
18
18
  const ApplicationsPortal = makeWidget('ApplicationsPortal');
19
19
  const TenantProfile = makeWidget('TenantProfile');
20
+ const OutboundApplications = makeWidget('OutboundApplications');
20
21
 
21
- export { AccessKeyManagement, ApplicationsPortal, AuditManagement, RoleManagement, TenantProfile, UserManagement, UserProfile };
22
+ export { AccessKeyManagement, ApplicationsPortal, AuditManagement, OutboundApplications, RoleManagement, TenantProfile, UserManagement, UserProfile };
22
23
  //# 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\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
+ {"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\tOutboundApplications as OutboundApplicationsWC\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>;\nexport type OutboundApplicationsProps = React.ComponentProps<\n\ttypeof OutboundApplicationsWC\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');\nexport const TenantProfile: React.ComponentType<TenantProfileProps> =\n\tmakeWidget<TenantProfileProps>('TenantProfile');\nexport const OutboundApplications: React.ComponentType<OutboundApplicationsProps> =\n\tmakeWidget<OutboundApplicationsProps>('OutboundApplications');\n"],"names":[],"mappings":";;;;AAkCA;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.38"
4
+ 'x-descope-sdk-version': "0.14.40"
5
5
  };
6
6
 
7
7
  export { baseHeaders };
@@ -1,5 +1,5 @@
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, TenantProfile as TenantProfileWC } 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, OutboundApplications as OutboundApplicationsWC } 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>;
@@ -7,6 +7,7 @@ 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
9
  export type TenantProfileProps = React.ComponentProps<typeof TenantProfileWC>;
10
+ export type OutboundApplicationsProps = React.ComponentProps<typeof OutboundApplicationsWC>;
10
11
  export declare const UserManagement: React.ComponentType<UserManagementProps>;
11
12
  export declare const RoleManagement: React.ComponentType<RoleManagementProps>;
12
13
  export declare const AccessKeyManagement: React.ComponentType<AccessKeyManagementProps>;
@@ -14,3 +15,4 @@ export declare const AuditManagement: React.ComponentType<AuditManagementProps>;
14
15
  export declare const UserProfile: React.ComponentType<UserProfileProps>;
15
16
  export declare const ApplicationsPortal: React.ComponentType<ApplicationsPortalProps>;
16
17
  export declare const TenantProfile: React.ComponentType<TenantProfileProps>;
18
+ export declare const OutboundApplications: React.ComponentType<OutboundApplicationsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/nextjs-sdk",
3
- "version": "0.14.38",
3
+ "version": "0.14.40",
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.23.6",
68
67
  "@descope/core-js-sdk": "2.52.2",
69
- "@descope/web-component": "3.49.1"
68
+ "@descope/react-sdk": "2.23.8",
69
+ "@descope/web-component": "3.49.2"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@babel/core": "7.26.0",