@descope/nextjs-sdk 0.3.16 → 0.3.17

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,39 +1,11 @@
1
- /// <reference types="react" />
2
- import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
1
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
2
+ import React from 'react';
4
3
  type AdditionalProps = {
5
4
  redirectAfterSuccess?: string;
6
5
  redirectAfterError?: string;
7
6
  };
8
- export declare const Descope: _1.ComponentType<{
9
- flowId: string;
10
- onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
- onError?: (e: CustomEvent<{
12
- errorCode: string;
13
- errorDescription: string;
14
- errorMessage?: string;
15
- retryAfter?: string;
16
- }>) => void;
17
- onReady?: (e: CustomEvent<{}>) => void;
18
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
- tenant?: string;
20
- theme?: _2.ThemeOptions;
21
- locale?: string;
22
- autoFocus?: _2.AutoFocusOptions;
23
- validateOnBlur?: boolean;
24
- restartOnError?: boolean;
25
- debug?: boolean;
26
- telemetryKey?: string;
27
- redirectUrl?: string;
28
- errorTransformer?: (error: {
29
- text: string;
30
- type: string;
31
- }) => string;
32
- form?: Record<string, any>;
33
- client?: Record<string, any>;
34
- styleId?: string;
35
- } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
7
+ export declare const Descope: React.ComponentType<AdditionalProps>;
8
+ export declare const SignInFlow: React.ComponentType<{
37
9
  form?: Record<string, any>;
38
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
11
  onError?: (e: CustomEvent<{
@@ -43,7 +15,7 @@ export declare const SignInFlow: _1.ComponentType<{
43
15
  retryAfter?: string;
44
16
  }>) => void;
45
17
  onReady?: (e: CustomEvent<{}>) => void;
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
18
+ logger?: Partial<any>;
47
19
  tenant?: string;
48
20
  theme?: _2.ThemeOptions;
49
21
  locale?: string;
@@ -60,7 +32,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
32
  client?: Record<string, any>;
61
33
  styleId?: string;
62
34
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
35
+ export declare const SignUpFlow: React.ComponentType<{
64
36
  form?: Record<string, any>;
65
37
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
38
  onError?: (e: CustomEvent<{
@@ -70,7 +42,7 @@ export declare const SignUpFlow: _1.ComponentType<{
70
42
  retryAfter?: string;
71
43
  }>) => void;
72
44
  onReady?: (e: CustomEvent<{}>) => void;
73
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ logger?: Partial<any>;
74
46
  tenant?: string;
75
47
  theme?: _2.ThemeOptions;
76
48
  locale?: string;
@@ -87,7 +59,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
59
  client?: Record<string, any>;
88
60
  styleId?: string;
89
61
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
62
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
63
  form?: Record<string, any>;
92
64
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
65
  onError?: (e: CustomEvent<{
@@ -97,7 +69,7 @@ export declare const SignUpOrInFlow: _1.ComponentType<{
97
69
  retryAfter?: string;
98
70
  }>) => void;
99
71
  onReady?: (e: CustomEvent<{}>) => void;
100
- logger?: _descope_sdk_mixins_themeMixin.Logger;
72
+ logger?: Partial<any>;
101
73
  tenant?: string;
102
74
  theme?: _2.ThemeOptions;
103
75
  locale?: string;
@@ -1,39 +1,39 @@
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<{
4
- logger?: _descope_sdk_mixins_themeMixin.Logger;
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
+ logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
7
7
  theme?: import("@descope/web-component").ThemeOptions;
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
12
- logger?: _descope_sdk_mixins_themeMixin.Logger;
11
+ export declare const RoleManagement: ComponentType<{
12
+ logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
15
15
  theme?: import("@descope/web-component").ThemeOptions;
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
20
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
+ export declare const AccessKeyManagement: ComponentType<{
20
+ logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
23
23
  theme?: import("@descope/web-component").ThemeOptions;
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
28
- logger?: _descope_sdk_mixins_themeMixin.Logger;
27
+ export declare const AuditManagement: ComponentType<{
28
+ logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
31
31
  theme?: import("@descope/web-component").ThemeOptions;
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
36
- logger?: _descope_sdk_mixins_themeMixin.Logger;
35
+ export declare const UserProfile: ComponentType<Omit<{
36
+ logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
39
39
  theme?: import("@descope/web-component").ThemeOptions;
@@ -42,8 +42,8 @@ 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<{
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
+ logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
49
49
  theme?: import("@descope/web-component").ThemeOptions;
@@ -1,39 +1,11 @@
1
- /// <reference types="react" />
2
- import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
1
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
2
+ import React from 'react';
4
3
  type AdditionalProps = {
5
4
  redirectAfterSuccess?: string;
6
5
  redirectAfterError?: string;
7
6
  };
8
- export declare const Descope: _1.ComponentType<{
9
- flowId: string;
10
- onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
- onError?: (e: CustomEvent<{
12
- errorCode: string;
13
- errorDescription: string;
14
- errorMessage?: string;
15
- retryAfter?: string;
16
- }>) => void;
17
- onReady?: (e: CustomEvent<{}>) => void;
18
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
- tenant?: string;
20
- theme?: _2.ThemeOptions;
21
- locale?: string;
22
- autoFocus?: _2.AutoFocusOptions;
23
- validateOnBlur?: boolean;
24
- restartOnError?: boolean;
25
- debug?: boolean;
26
- telemetryKey?: string;
27
- redirectUrl?: string;
28
- errorTransformer?: (error: {
29
- text: string;
30
- type: string;
31
- }) => string;
32
- form?: Record<string, any>;
33
- client?: Record<string, any>;
34
- styleId?: string;
35
- } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
7
+ export declare const Descope: React.ComponentType<AdditionalProps>;
8
+ export declare const SignInFlow: React.ComponentType<{
37
9
  form?: Record<string, any>;
38
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
11
  onError?: (e: CustomEvent<{
@@ -43,7 +15,7 @@ export declare const SignInFlow: _1.ComponentType<{
43
15
  retryAfter?: string;
44
16
  }>) => void;
45
17
  onReady?: (e: CustomEvent<{}>) => void;
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
18
+ logger?: Partial<any>;
47
19
  tenant?: string;
48
20
  theme?: _2.ThemeOptions;
49
21
  locale?: string;
@@ -60,7 +32,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
32
  client?: Record<string, any>;
61
33
  styleId?: string;
62
34
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
35
+ export declare const SignUpFlow: React.ComponentType<{
64
36
  form?: Record<string, any>;
65
37
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
38
  onError?: (e: CustomEvent<{
@@ -70,7 +42,7 @@ export declare const SignUpFlow: _1.ComponentType<{
70
42
  retryAfter?: string;
71
43
  }>) => void;
72
44
  onReady?: (e: CustomEvent<{}>) => void;
73
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ logger?: Partial<any>;
74
46
  tenant?: string;
75
47
  theme?: _2.ThemeOptions;
76
48
  locale?: string;
@@ -87,7 +59,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
59
  client?: Record<string, any>;
88
60
  styleId?: string;
89
61
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
62
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
63
  form?: Record<string, any>;
92
64
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
65
  onError?: (e: CustomEvent<{
@@ -97,7 +69,7 @@ export declare const SignUpOrInFlow: _1.ComponentType<{
97
69
  retryAfter?: string;
98
70
  }>) => void;
99
71
  onReady?: (e: CustomEvent<{}>) => void;
100
- logger?: _descope_sdk_mixins_themeMixin.Logger;
72
+ logger?: Partial<any>;
101
73
  tenant?: string;
102
74
  theme?: _2.ThemeOptions;
103
75
  locale?: string;
@@ -1,39 +1,39 @@
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<{
4
- logger?: _descope_sdk_mixins_themeMixin.Logger;
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
+ logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
7
7
  theme?: import("@descope/web-component").ThemeOptions;
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
12
- logger?: _descope_sdk_mixins_themeMixin.Logger;
11
+ export declare const RoleManagement: ComponentType<{
12
+ logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
15
15
  theme?: import("@descope/web-component").ThemeOptions;
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
20
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
+ export declare const AccessKeyManagement: ComponentType<{
20
+ logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
23
23
  theme?: import("@descope/web-component").ThemeOptions;
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
28
- logger?: _descope_sdk_mixins_themeMixin.Logger;
27
+ export declare const AuditManagement: ComponentType<{
28
+ logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
31
31
  theme?: import("@descope/web-component").ThemeOptions;
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
36
- logger?: _descope_sdk_mixins_themeMixin.Logger;
35
+ export declare const UserProfile: ComponentType<Omit<{
36
+ logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
39
39
  theme?: import("@descope/web-component").ThemeOptions;
@@ -42,8 +42,8 @@ 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<{
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
+ logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
49
49
  theme?: import("@descope/web-component").ThemeOptions;
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
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
- import * as _1 from '@descope/react-sdk/node_modules/@types/react';
5
3
  import * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
4
+ import React, { ComponentType } from 'react';
6
5
  import * as _descope_web_component from '@descope/web-component';
6
+ import * as _1 from '@descope/react-sdk/node_modules/@types/react';
7
7
 
8
8
  declare const AuthProvider: typeof AuthProvider$1;
9
9
 
@@ -11,35 +11,8 @@ type AdditionalProps = {
11
11
  redirectAfterSuccess?: string;
12
12
  redirectAfterError?: string;
13
13
  };
14
- declare const Descope: _1.ComponentType<{
15
- flowId: string;
16
- onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
17
- onError?: (e: CustomEvent<{
18
- errorCode: string;
19
- errorDescription: string;
20
- errorMessage?: string;
21
- retryAfter?: string;
22
- }>) => void;
23
- onReady?: (e: CustomEvent<{}>) => void;
24
- logger?: _descope_sdk_mixins_themeMixin.Logger;
25
- tenant?: string;
26
- theme?: _2.ThemeOptions;
27
- locale?: string;
28
- autoFocus?: _2.AutoFocusOptions;
29
- validateOnBlur?: boolean;
30
- restartOnError?: boolean;
31
- debug?: boolean;
32
- telemetryKey?: string;
33
- redirectUrl?: string;
34
- errorTransformer?: (error: {
35
- text: string;
36
- type: string;
37
- }) => string;
38
- form?: Record<string, any>;
39
- client?: Record<string, any>;
40
- styleId?: string;
41
- } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
42
- declare const SignInFlow: _1.ComponentType<{
14
+ declare const Descope: React.ComponentType<AdditionalProps>;
15
+ declare const SignInFlow: React.ComponentType<{
43
16
  form?: Record<string, any>;
44
17
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
45
18
  onError?: (e: CustomEvent<{
@@ -49,7 +22,7 @@ declare const SignInFlow: _1.ComponentType<{
49
22
  retryAfter?: string;
50
23
  }>) => void;
51
24
  onReady?: (e: CustomEvent<{}>) => void;
52
- logger?: _descope_sdk_mixins_themeMixin.Logger;
25
+ logger?: Partial<any>;
53
26
  tenant?: string;
54
27
  theme?: _2.ThemeOptions;
55
28
  locale?: string;
@@ -66,7 +39,7 @@ declare const SignInFlow: _1.ComponentType<{
66
39
  client?: Record<string, any>;
67
40
  styleId?: string;
68
41
  } & AdditionalProps>;
69
- declare const SignUpFlow: _1.ComponentType<{
42
+ declare const SignUpFlow: React.ComponentType<{
70
43
  form?: Record<string, any>;
71
44
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
72
45
  onError?: (e: CustomEvent<{
@@ -76,7 +49,7 @@ declare const SignUpFlow: _1.ComponentType<{
76
49
  retryAfter?: string;
77
50
  }>) => void;
78
51
  onReady?: (e: CustomEvent<{}>) => void;
79
- logger?: _descope_sdk_mixins_themeMixin.Logger;
52
+ logger?: Partial<any>;
80
53
  tenant?: string;
81
54
  theme?: _2.ThemeOptions;
82
55
  locale?: string;
@@ -93,7 +66,7 @@ declare const SignUpFlow: _1.ComponentType<{
93
66
  client?: Record<string, any>;
94
67
  styleId?: string;
95
68
  } & AdditionalProps>;
96
- declare const SignUpOrInFlow: _1.ComponentType<{
69
+ declare const SignUpOrInFlow: React.ComponentType<{
97
70
  form?: Record<string, any>;
98
71
  onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
99
72
  onError?: (e: CustomEvent<{
@@ -103,7 +76,7 @@ declare const SignUpOrInFlow: _1.ComponentType<{
103
76
  retryAfter?: string;
104
77
  }>) => void;
105
78
  onReady?: (e: CustomEvent<{}>) => void;
106
- logger?: _descope_sdk_mixins_themeMixin.Logger;
79
+ logger?: Partial<any>;
107
80
  tenant?: string;
108
81
  theme?: _2.ThemeOptions;
109
82
  locale?: string;
@@ -121,40 +94,40 @@ declare const SignUpOrInFlow: _1.ComponentType<{
121
94
  styleId?: string;
122
95
  } & AdditionalProps>;
123
96
 
124
- declare const UserManagement: _1.ComponentType<{
125
- logger?: _descope_sdk_mixins_themeMixin.Logger;
97
+ declare const UserManagement: ComponentType<{
98
+ logger?: Partial<any>;
126
99
  tenant: string;
127
100
  widgetId: string;
128
101
  theme?: _descope_web_component.ThemeOptions;
129
102
  debug?: boolean;
130
103
  styleId?: string;
131
104
  } & _1.RefAttributes<HTMLElement>>;
132
- declare const RoleManagement: _1.ComponentType<{
133
- logger?: _descope_sdk_mixins_themeMixin.Logger;
105
+ declare const RoleManagement: ComponentType<{
106
+ logger?: Partial<any>;
134
107
  tenant: string;
135
108
  widgetId: string;
136
109
  theme?: _descope_web_component.ThemeOptions;
137
110
  debug?: boolean;
138
111
  styleId?: string;
139
112
  } & _1.RefAttributes<HTMLElement>>;
140
- declare const AccessKeyManagement: _1.ComponentType<{
141
- logger?: _descope_sdk_mixins_themeMixin.Logger;
113
+ declare const AccessKeyManagement: ComponentType<{
114
+ logger?: Partial<any>;
142
115
  tenant: string;
143
116
  widgetId: string;
144
117
  theme?: _descope_web_component.ThemeOptions;
145
118
  debug?: boolean;
146
119
  styleId?: string;
147
120
  } & _1.RefAttributes<HTMLElement>>;
148
- declare const AuditManagement: _1.ComponentType<{
149
- logger?: _descope_sdk_mixins_themeMixin.Logger;
121
+ declare const AuditManagement: ComponentType<{
122
+ logger?: Partial<any>;
150
123
  tenant: string;
151
124
  widgetId: string;
152
125
  theme?: _descope_web_component.ThemeOptions;
153
126
  debug?: boolean;
154
127
  styleId?: string;
155
128
  } & _1.RefAttributes<HTMLElement>>;
156
- declare const UserProfile: _1.ComponentType<Omit<{
157
- logger?: _descope_sdk_mixins_themeMixin.Logger;
129
+ declare const UserProfile: ComponentType<Omit<{
130
+ logger?: Partial<any>;
158
131
  tenant: string;
159
132
  widgetId: string;
160
133
  theme?: _descope_web_component.ThemeOptions;
@@ -163,8 +136,8 @@ declare const UserProfile: _1.ComponentType<Omit<{
163
136
  }, "tenant"> & {
164
137
  onLogout?: (e: CustomEvent<any>) => void;
165
138
  } & _1.RefAttributes<HTMLElement>>;
166
- declare const ApplicationsPortal: _1.ComponentType<Omit<{
167
- logger?: _descope_sdk_mixins_themeMixin.Logger;
139
+ declare const ApplicationsPortal: ComponentType<Omit<{
140
+ logger?: Partial<any>;
168
141
  tenant: string;
169
142
  widgetId: string;
170
143
  theme?: _descope_web_component.ThemeOptions;
@@ -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.16"
4
+ 'x-descope-sdk-version': "0.3.17"
5
5
  };
6
6
  const DEFAULT_PUBLIC_ROUTES = {
7
7
  signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
@@ -1,39 +1,11 @@
1
- /// <reference types="react" />
2
- import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
3
1
  import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
2
+ import React from 'react';
4
3
  type AdditionalProps = {
5
4
  redirectAfterSuccess?: string;
6
5
  redirectAfterError?: string;
7
6
  };
8
- export declare const Descope: _1.ComponentType<{
9
- flowId: string;
10
- onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
11
- onError?: (e: CustomEvent<{
12
- errorCode: string;
13
- errorDescription: string;
14
- errorMessage?: string;
15
- retryAfter?: string;
16
- }>) => void;
17
- onReady?: (e: CustomEvent<{}>) => void;
18
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
- tenant?: string;
20
- theme?: _2.ThemeOptions;
21
- locale?: string;
22
- autoFocus?: _2.AutoFocusOptions;
23
- validateOnBlur?: boolean;
24
- restartOnError?: boolean;
25
- debug?: boolean;
26
- telemetryKey?: string;
27
- redirectUrl?: string;
28
- errorTransformer?: (error: {
29
- text: string;
30
- type: string;
31
- }) => string;
32
- form?: Record<string, any>;
33
- client?: Record<string, any>;
34
- styleId?: string;
35
- } & _1.RefAttributes<HTMLElement> & AdditionalProps>;
36
- export declare const SignInFlow: _1.ComponentType<{
7
+ export declare const Descope: React.ComponentType<AdditionalProps>;
8
+ export declare const SignInFlow: React.ComponentType<{
37
9
  form?: Record<string, any>;
38
10
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
39
11
  onError?: (e: CustomEvent<{
@@ -43,7 +15,7 @@ export declare const SignInFlow: _1.ComponentType<{
43
15
  retryAfter?: string;
44
16
  }>) => void;
45
17
  onReady?: (e: CustomEvent<{}>) => void;
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
18
+ logger?: Partial<any>;
47
19
  tenant?: string;
48
20
  theme?: _2.ThemeOptions;
49
21
  locale?: string;
@@ -60,7 +32,7 @@ export declare const SignInFlow: _1.ComponentType<{
60
32
  client?: Record<string, any>;
61
33
  styleId?: string;
62
34
  } & AdditionalProps>;
63
- export declare const SignUpFlow: _1.ComponentType<{
35
+ export declare const SignUpFlow: React.ComponentType<{
64
36
  form?: Record<string, any>;
65
37
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
66
38
  onError?: (e: CustomEvent<{
@@ -70,7 +42,7 @@ export declare const SignUpFlow: _1.ComponentType<{
70
42
  retryAfter?: string;
71
43
  }>) => void;
72
44
  onReady?: (e: CustomEvent<{}>) => void;
73
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ logger?: Partial<any>;
74
46
  tenant?: string;
75
47
  theme?: _2.ThemeOptions;
76
48
  locale?: string;
@@ -87,7 +59,7 @@ export declare const SignUpFlow: _1.ComponentType<{
87
59
  client?: Record<string, any>;
88
60
  styleId?: string;
89
61
  } & AdditionalProps>;
90
- export declare const SignUpOrInFlow: _1.ComponentType<{
62
+ export declare const SignUpOrInFlow: React.ComponentType<{
91
63
  form?: Record<string, any>;
92
64
  onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
93
65
  onError?: (e: CustomEvent<{
@@ -97,7 +69,7 @@ export declare const SignUpOrInFlow: _1.ComponentType<{
97
69
  retryAfter?: string;
98
70
  }>) => void;
99
71
  onReady?: (e: CustomEvent<{}>) => void;
100
- logger?: _descope_sdk_mixins_themeMixin.Logger;
72
+ logger?: Partial<any>;
101
73
  tenant?: string;
102
74
  theme?: _2.ThemeOptions;
103
75
  locale?: string;
@@ -1,39 +1,39 @@
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<{
4
- logger?: _descope_sdk_mixins_themeMixin.Logger;
2
+ import { ComponentType } from 'react';
3
+ export declare const UserManagement: ComponentType<{
4
+ logger?: Partial<any>;
5
5
  tenant: string;
6
6
  widgetId: string;
7
7
  theme?: import("@descope/web-component").ThemeOptions;
8
8
  debug?: boolean;
9
9
  styleId?: string;
10
10
  } & _1.RefAttributes<HTMLElement>>;
11
- export declare const RoleManagement: _1.ComponentType<{
12
- logger?: _descope_sdk_mixins_themeMixin.Logger;
11
+ export declare const RoleManagement: ComponentType<{
12
+ logger?: Partial<any>;
13
13
  tenant: string;
14
14
  widgetId: string;
15
15
  theme?: import("@descope/web-component").ThemeOptions;
16
16
  debug?: boolean;
17
17
  styleId?: string;
18
18
  } & _1.RefAttributes<HTMLElement>>;
19
- export declare const AccessKeyManagement: _1.ComponentType<{
20
- logger?: _descope_sdk_mixins_themeMixin.Logger;
19
+ export declare const AccessKeyManagement: ComponentType<{
20
+ logger?: Partial<any>;
21
21
  tenant: string;
22
22
  widgetId: string;
23
23
  theme?: import("@descope/web-component").ThemeOptions;
24
24
  debug?: boolean;
25
25
  styleId?: string;
26
26
  } & _1.RefAttributes<HTMLElement>>;
27
- export declare const AuditManagement: _1.ComponentType<{
28
- logger?: _descope_sdk_mixins_themeMixin.Logger;
27
+ export declare const AuditManagement: ComponentType<{
28
+ logger?: Partial<any>;
29
29
  tenant: string;
30
30
  widgetId: string;
31
31
  theme?: import("@descope/web-component").ThemeOptions;
32
32
  debug?: boolean;
33
33
  styleId?: string;
34
34
  } & _1.RefAttributes<HTMLElement>>;
35
- export declare const UserProfile: _1.ComponentType<Omit<{
36
- logger?: _descope_sdk_mixins_themeMixin.Logger;
35
+ export declare const UserProfile: ComponentType<Omit<{
36
+ logger?: Partial<any>;
37
37
  tenant: string;
38
38
  widgetId: string;
39
39
  theme?: import("@descope/web-component").ThemeOptions;
@@ -42,8 +42,8 @@ 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<{
46
- logger?: _descope_sdk_mixins_themeMixin.Logger;
45
+ export declare const ApplicationsPortal: ComponentType<Omit<{
46
+ logger?: Partial<any>;
47
47
  tenant: string;
48
48
  widgetId: string;
49
49
  theme?: import("@descope/web-component").ThemeOptions;
@@ -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.16"
4
+ 'x-descope-sdk-version': "0.3.17"
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.16",
3
+ "version": "0.3.17",
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.9",
64
- "@descope/react-sdk": "2.3.8",
65
- "@descope/web-component": "3.31.3",
66
- "@descope/core-js-sdk": "2.33.0"
64
+ "@descope/react-sdk": "2.3.9",
65
+ "@descope/core-js-sdk": "2.33.0",
66
+ "@descope/web-component": "3.32.0"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@babel/core": "7.23.9",