@descope/nextjs-sdk 0.3.32 → 0.3.34

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.
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
2
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
3
+ import React from 'react';
4
4
  type AdditionalProps = {
5
5
  redirectAfterSuccess?: string;
6
6
  redirectAfterError?: string;
7
7
  };
8
- export declare const Descope: _1.ComponentType<{
8
+ export declare const Descope: React.ComponentType<{
9
9
  flowId: string;
10
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
11
  onError?: (e: CustomEvent<{
@@ -33,7 +33,7 @@ export declare const Descope: _1.ComponentType<{
33
33
  client?: Record<string, any>;
34
34
  styleId?: string;
35
35
  } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
36
+ export declare const SignInFlow: React.ComponentType<{
37
37
  form?: Record<string, any>;
38
38
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
39
  onError?: (e: CustomEvent<{
@@ -60,7 +60,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
60
  client?: Record<string, any>;
61
61
  styleId?: string;
62
62
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
63
+ export declare const SignUpFlow: React.ComponentType<{
64
64
  form?: Record<string, any>;
65
65
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
66
  onError?: (e: CustomEvent<{
@@ -87,7 +87,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
87
  client?: Record<string, any>;
88
88
  styleId?: string;
89
89
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
90
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
91
  form?: Record<string, any>;
92
92
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
93
  onError?: (e: CustomEvent<{
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
- export declare const UserManagement: _1.ComponentType<{
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
4
  logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
@@ -8,7 +8,7 @@ export declare const UserManagement: _1.ComponentType<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
11
+ export declare const RoleManagement: ComponentType<{
12
12
  logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
@@ -16,7 +16,7 @@ export declare const RoleManagement: _1.ComponentType<{
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
19
+ export declare const AccessKeyManagement: ComponentType<{
20
20
  logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: _1.ComponentType<{
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
27
+ export declare const AuditManagement: ComponentType<{
28
28
  logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
@@ -32,7 +32,7 @@ export declare const AuditManagement: _1.ComponentType<{
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
35
+ export declare const UserProfile: ComponentType<Omit<{
36
36
  logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
@@ -42,7 +42,7 @@ export declare const UserProfile: _1.ComponentType<Omit<{
42
42
  }, "tenant"> & {
43
43
  onLogout?: (e: CustomEvent<any>) => void;
44
44
  } & _1.RefAttributes<HTMLElement>>;
45
- export declare const ApplicationsPortal: _1.ComponentType<Omit<{
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
46
  logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
2
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
3
+ import React from 'react';
4
4
  type AdditionalProps = {
5
5
  redirectAfterSuccess?: string;
6
6
  redirectAfterError?: string;
7
7
  };
8
- export declare const Descope: _1.ComponentType<{
8
+ export declare const Descope: React.ComponentType<{
9
9
  flowId: string;
10
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
11
  onError?: (e: CustomEvent<{
@@ -33,7 +33,7 @@ export declare const Descope: _1.ComponentType<{
33
33
  client?: Record<string, any>;
34
34
  styleId?: string;
35
35
  } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
36
+ export declare const SignInFlow: React.ComponentType<{
37
37
  form?: Record<string, any>;
38
38
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
39
  onError?: (e: CustomEvent<{
@@ -60,7 +60,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
60
  client?: Record<string, any>;
61
61
  styleId?: string;
62
62
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
63
+ export declare const SignUpFlow: React.ComponentType<{
64
64
  form?: Record<string, any>;
65
65
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
66
  onError?: (e: CustomEvent<{
@@ -87,7 +87,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
87
  client?: Record<string, any>;
88
88
  styleId?: string;
89
89
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
90
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
91
  form?: Record<string, any>;
92
92
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
93
  onError?: (e: CustomEvent<{
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
- export declare const UserManagement: _1.ComponentType<{
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
4
  logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
@@ -8,7 +8,7 @@ export declare const UserManagement: _1.ComponentType<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
11
+ export declare const RoleManagement: ComponentType<{
12
12
  logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
@@ -16,7 +16,7 @@ export declare const RoleManagement: _1.ComponentType<{
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
19
+ export declare const AccessKeyManagement: ComponentType<{
20
20
  logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: _1.ComponentType<{
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
27
+ export declare const AuditManagement: ComponentType<{
28
28
  logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
@@ -32,7 +32,7 @@ export declare const AuditManagement: _1.ComponentType<{
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
35
+ export declare const UserProfile: ComponentType<Omit<{
36
36
  logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
@@ -42,7 +42,7 @@ export declare const UserProfile: _1.ComponentType<Omit<{
42
42
  }, "tenant"> & {
43
43
  onLogout?: (e: CustomEvent<any>) => void;
44
44
  } & _1.RefAttributes<HTMLElement>>;
45
- export declare const ApplicationsPortal: _1.ComponentType<Omit<{
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
46
  logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- /// <reference types="react" />
2
1
  import { AuthProvider as AuthProvider$1 } from '@descope/react-sdk';
3
2
  import * as _descope_core_js_sdk from '@descope/core-js-sdk';
4
3
  import * as _1 from '@descope/react-sdk/node_modules/@types/react';
5
4
  import * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
5
+ import React, { ComponentType } from 'react';
6
6
  import * as _descope_web_component from '@descope/web-component';
7
7
 
8
8
  declare const AuthProvider: typeof AuthProvider$1;
@@ -11,7 +11,7 @@ type AdditionalProps = {
11
11
  redirectAfterSuccess?: string;
12
12
  redirectAfterError?: string;
13
13
  };
14
- declare const Descope: _1.ComponentType<{
14
+ declare const Descope: React.ComponentType<{
15
15
  flowId: string;
16
16
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
17
17
  onError?: (e: CustomEvent<{
@@ -39,7 +39,7 @@ declare const Descope: _1.ComponentType<{
39
39
  client?: Record<string, any>;
40
40
  styleId?: string;
41
41
  } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
42
- declare const SignInFlow: _1.ComponentType<{
42
+ declare const SignInFlow: React.ComponentType<{
43
43
  form?: Record<string, any>;
44
44
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
45
45
  onError?: (e: CustomEvent<{
@@ -66,7 +66,7 @@ declare const SignInFlow: _1.ComponentType<{
66
66
  client?: Record<string, any>;
67
67
  styleId?: string;
68
68
  } & AdditionalProps>;
69
- declare const SignUpFlow: _1.ComponentType<{
69
+ declare const SignUpFlow: React.ComponentType<{
70
70
  form?: Record<string, any>;
71
71
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
72
72
  onError?: (e: CustomEvent<{
@@ -93,7 +93,7 @@ declare const SignUpFlow: _1.ComponentType<{
93
93
  client?: Record<string, any>;
94
94
  styleId?: string;
95
95
  } & AdditionalProps>;
96
- declare const SignUpOrInFlow: _1.ComponentType<{
96
+ declare const SignUpOrInFlow: React.ComponentType<{
97
97
  form?: Record<string, any>;
98
98
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
99
99
  onError?: (e: CustomEvent<{
@@ -121,7 +121,7 @@ declare const SignUpOrInFlow: _1.ComponentType<{
121
121
  styleId?: string;
122
122
  } & AdditionalProps>;
123
123
 
124
- declare const UserManagement: _1.ComponentType<{
124
+ declare const UserManagement: ComponentType<{
125
125
  logger?: Partial<any>;
126
126
  tenant: string;
127
127
  widgetId: string;
@@ -129,7 +129,7 @@ declare const UserManagement: _1.ComponentType<{
129
129
  debug?: boolean;
130
130
  styleId?: string;
131
131
  } & _1.RefAttributes<HTMLElement>>;
132
- declare const RoleManagement: _1.ComponentType<{
132
+ declare const RoleManagement: ComponentType<{
133
133
  logger?: Partial<any>;
134
134
  tenant: string;
135
135
  widgetId: string;
@@ -137,7 +137,7 @@ declare const RoleManagement: _1.ComponentType<{
137
137
  debug?: boolean;
138
138
  styleId?: string;
139
139
  } & _1.RefAttributes<HTMLElement>>;
140
- declare const AccessKeyManagement: _1.ComponentType<{
140
+ declare const AccessKeyManagement: ComponentType<{
141
141
  logger?: Partial<any>;
142
142
  tenant: string;
143
143
  widgetId: string;
@@ -145,7 +145,7 @@ declare const AccessKeyManagement: _1.ComponentType<{
145
145
  debug?: boolean;
146
146
  styleId?: string;
147
147
  } & _1.RefAttributes<HTMLElement>>;
148
- declare const AuditManagement: _1.ComponentType<{
148
+ declare const AuditManagement: ComponentType<{
149
149
  logger?: Partial<any>;
150
150
  tenant: string;
151
151
  widgetId: string;
@@ -153,7 +153,7 @@ declare const AuditManagement: _1.ComponentType<{
153
153
  debug?: boolean;
154
154
  styleId?: string;
155
155
  } & _1.RefAttributes<HTMLElement>>;
156
- declare const UserProfile: _1.ComponentType<Omit<{
156
+ declare const UserProfile: ComponentType<Omit<{
157
157
  logger?: Partial<any>;
158
158
  tenant: string;
159
159
  widgetId: string;
@@ -163,7 +163,7 @@ declare const UserProfile: _1.ComponentType<Omit<{
163
163
  }, "tenant"> & {
164
164
  onLogout?: (e: CustomEvent<any>) => void;
165
165
  } & _1.RefAttributes<HTMLElement>>;
166
- declare const ApplicationsPortal: _1.ComponentType<Omit<{
166
+ declare const ApplicationsPortal: ComponentType<Omit<{
167
167
  logger?: Partial<any>;
168
168
  tenant: string;
169
169
  widgetId: string;
@@ -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.3.32"
4
+ 'x-descope-sdk-version': "0.3.34"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -1,11 +1,11 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
2
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
3
+ import React from 'react';
4
4
  type AdditionalProps = {
5
5
  redirectAfterSuccess?: string;
6
6
  redirectAfterError?: string;
7
7
  };
8
- export declare const Descope: _1.ComponentType<{
8
+ export declare const Descope: React.ComponentType<{
9
9
  flowId: string;
10
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
11
  onError?: (e: CustomEvent<{
@@ -33,7 +33,7 @@ export declare const Descope: _1.ComponentType<{
33
33
  client?: Record<string, any>;
34
34
  styleId?: string;
35
35
  } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
36
+ export declare const SignInFlow: React.ComponentType<{
37
37
  form?: Record<string, any>;
38
38
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
39
  onError?: (e: CustomEvent<{
@@ -60,7 +60,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
60
  client?: Record<string, any>;
61
61
  styleId?: string;
62
62
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
63
+ export declare const SignUpFlow: React.ComponentType<{
64
64
  form?: Record<string, any>;
65
65
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
66
  onError?: (e: CustomEvent<{
@@ -87,7 +87,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
87
  client?: Record<string, any>;
88
88
  styleId?: string;
89
89
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
90
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
91
  form?: Record<string, any>;
92
92
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
93
  onError?: (e: CustomEvent<{
@@ -1,6 +1,6 @@
1
- /// <reference types="react" />
2
1
  import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
- export declare const UserManagement: _1.ComponentType<{
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
4
  logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
@@ -8,7 +8,7 @@ export declare const UserManagement: _1.ComponentType<{
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
11
+ export declare const RoleManagement: ComponentType<{
12
12
  logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
@@ -16,7 +16,7 @@ export declare const RoleManagement: _1.ComponentType<{
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
19
+ export declare const AccessKeyManagement: ComponentType<{
20
20
  logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: _1.ComponentType<{
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
27
+ export declare const AuditManagement: ComponentType<{
28
28
  logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
@@ -32,7 +32,7 @@ export declare const AuditManagement: _1.ComponentType<{
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
35
+ export declare const UserProfile: ComponentType<Omit<{
36
36
  logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
@@ -42,7 +42,7 @@ export declare const UserProfile: _1.ComponentType<Omit<{
42
42
  }, "tenant"> & {
43
43
  onLogout?: (e: CustomEvent<any>) => void;
44
44
  } & _1.RefAttributes<HTMLElement>>;
45
- export declare const ApplicationsPortal: _1.ComponentType<Omit<{
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
46
  logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
@@ -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.3.32"
4
+ 'x-descope-sdk-version': "0.3.34"
5
5
  };
6
6
 
7
7
  export { baseHeaders };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope/nextjs-sdk",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "Descope NextJS SDK",
5
5
  "author": "Descope Team <info@descope.com>",
6
6
  "homepage": "https://github.com/descope/descope-js",
@@ -61,9 +61,9 @@
61
61
  },
62
62
  "dependencies": {
63
63
  "@descope/node-sdk": "1.6.12",
64
- "@descope/react-sdk": "2.3.20",
65
- "@descope/core-js-sdk": "2.33.2",
66
- "@descope/web-component": "3.32.7"
64
+ "@descope/web-component": "3.32.8",
65
+ "@descope/core-js-sdk": "2.33.3",
66
+ "@descope/react-sdk": "2.3.22"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@babel/core": "7.23.9",
@@ -94,12 +94,12 @@
94
94
  "eslint-plugin-jest-formatting": "3.1.0",
95
95
  "eslint-plugin-jsx-a11y": "6.10.2",
96
96
  "eslint-plugin-n": "15.7.0",
97
- "eslint-plugin-no-only-tests": "3.1.0",
97
+ "eslint-plugin-no-only-tests": "3.3.0",
98
98
  "eslint-plugin-prefer-arrow": "1.2.3",
99
99
  "eslint-plugin-prettier": "4.2.1",
100
100
  "eslint-plugin-promise": "6.1.1",
101
101
  "eslint-plugin-react": "7.33.2",
102
- "eslint-plugin-react-hooks": "4.6.0",
102
+ "eslint-plugin-react-hooks": "4.6.2",
103
103
  "eslint-plugin-testing-library": "5.11.1",
104
104
  "git-format-staged": "^3.0.0",
105
105
  "jest": "^29.7.0",