@descope/nextjs-sdk 0.3.17 → 0.3.18
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/client/dts/src/shared/DescopeFlows.d.ts +33 -5
- package/dist/client/dts/src/shared/DescopeWidgets.d.ts +7 -7
- package/dist/dts/src/shared/DescopeFlows.d.ts +33 -5
- package/dist/dts/src/shared/DescopeWidgets.d.ts +7 -7
- package/dist/index.d.ts +39 -12
- package/dist/server/constants.js +1 -1
- package/dist/server/dts/src/shared/DescopeFlows.d.ts +33 -5
- package/dist/server/dts/src/shared/DescopeWidgets.d.ts +7 -7
- package/dist/shared/constants.js +1 -1
- package/package.json +3 -3
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
1
3
|
import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
|
|
2
|
-
import React from 'react';
|
|
3
4
|
type AdditionalProps = {
|
|
4
5
|
redirectAfterSuccess?: string;
|
|
5
6
|
redirectAfterError?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const Descope:
|
|
8
|
-
|
|
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?: Partial<any>;
|
|
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<{
|
|
9
37
|
form?: Record<string, any>;
|
|
10
38
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
11
39
|
onError?: (e: CustomEvent<{
|
|
@@ -32,7 +60,7 @@ export declare const SignInFlow: React.ComponentType<{
|
|
|
32
60
|
client?: Record<string, any>;
|
|
33
61
|
styleId?: string;
|
|
34
62
|
} & AdditionalProps>;
|
|
35
|
-
export declare const SignUpFlow:
|
|
63
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
36
64
|
form?: Record<string, any>;
|
|
37
65
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
38
66
|
onError?: (e: CustomEvent<{
|
|
@@ -59,7 +87,7 @@ export declare const SignUpFlow: React.ComponentType<{
|
|
|
59
87
|
client?: Record<string, any>;
|
|
60
88
|
styleId?: string;
|
|
61
89
|
} & AdditionalProps>;
|
|
62
|
-
export declare const SignUpOrInFlow:
|
|
90
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
63
91
|
form?: Record<string, any>;
|
|
64
92
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
65
93
|
onError?: (e: CustomEvent<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
2
|
-
|
|
3
|
-
export declare const UserManagement: ComponentType<{
|
|
3
|
+
export declare const UserManagement: _1.ComponentType<{
|
|
4
4
|
logger?: Partial<any>;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
@@ -8,7 +8,7 @@ export declare const UserManagement: ComponentType<{
|
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
styleId?: string;
|
|
10
10
|
} & _1.RefAttributes<HTMLElement>>;
|
|
11
|
-
export declare const RoleManagement: ComponentType<{
|
|
11
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
12
12
|
logger?: Partial<any>;
|
|
13
13
|
tenant: string;
|
|
14
14
|
widgetId: string;
|
|
@@ -16,7 +16,7 @@ export declare const RoleManagement: ComponentType<{
|
|
|
16
16
|
debug?: boolean;
|
|
17
17
|
styleId?: string;
|
|
18
18
|
} & _1.RefAttributes<HTMLElement>>;
|
|
19
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
19
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
20
20
|
logger?: Partial<any>;
|
|
21
21
|
tenant: string;
|
|
22
22
|
widgetId: string;
|
|
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: ComponentType<{
|
|
|
24
24
|
debug?: boolean;
|
|
25
25
|
styleId?: string;
|
|
26
26
|
} & _1.RefAttributes<HTMLElement>>;
|
|
27
|
-
export declare const AuditManagement: ComponentType<{
|
|
27
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
28
28
|
logger?: Partial<any>;
|
|
29
29
|
tenant: string;
|
|
30
30
|
widgetId: string;
|
|
@@ -32,7 +32,7 @@ export declare const AuditManagement: ComponentType<{
|
|
|
32
32
|
debug?: boolean;
|
|
33
33
|
styleId?: string;
|
|
34
34
|
} & _1.RefAttributes<HTMLElement>>;
|
|
35
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
35
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
36
36
|
logger?: Partial<any>;
|
|
37
37
|
tenant: string;
|
|
38
38
|
widgetId: string;
|
|
@@ -42,7 +42,7 @@ export declare const UserProfile: ComponentType<Omit<{
|
|
|
42
42
|
}, "tenant"> & {
|
|
43
43
|
onLogout?: (e: CustomEvent<any>) => void;
|
|
44
44
|
} & _1.RefAttributes<HTMLElement>>;
|
|
45
|
-
export declare const ApplicationsPortal: ComponentType<Omit<{
|
|
45
|
+
export declare const ApplicationsPortal: _1.ComponentType<Omit<{
|
|
46
46
|
logger?: Partial<any>;
|
|
47
47
|
tenant: string;
|
|
48
48
|
widgetId: string;
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
1
3
|
import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
|
|
2
|
-
import React from 'react';
|
|
3
4
|
type AdditionalProps = {
|
|
4
5
|
redirectAfterSuccess?: string;
|
|
5
6
|
redirectAfterError?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const Descope:
|
|
8
|
-
|
|
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?: Partial<any>;
|
|
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<{
|
|
9
37
|
form?: Record<string, any>;
|
|
10
38
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
11
39
|
onError?: (e: CustomEvent<{
|
|
@@ -32,7 +60,7 @@ export declare const SignInFlow: React.ComponentType<{
|
|
|
32
60
|
client?: Record<string, any>;
|
|
33
61
|
styleId?: string;
|
|
34
62
|
} & AdditionalProps>;
|
|
35
|
-
export declare const SignUpFlow:
|
|
63
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
36
64
|
form?: Record<string, any>;
|
|
37
65
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
38
66
|
onError?: (e: CustomEvent<{
|
|
@@ -59,7 +87,7 @@ export declare const SignUpFlow: React.ComponentType<{
|
|
|
59
87
|
client?: Record<string, any>;
|
|
60
88
|
styleId?: string;
|
|
61
89
|
} & AdditionalProps>;
|
|
62
|
-
export declare const SignUpOrInFlow:
|
|
90
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
63
91
|
form?: Record<string, any>;
|
|
64
92
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
65
93
|
onError?: (e: CustomEvent<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
2
|
-
|
|
3
|
-
export declare const UserManagement: ComponentType<{
|
|
3
|
+
export declare const UserManagement: _1.ComponentType<{
|
|
4
4
|
logger?: Partial<any>;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
@@ -8,7 +8,7 @@ export declare const UserManagement: ComponentType<{
|
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
styleId?: string;
|
|
10
10
|
} & _1.RefAttributes<HTMLElement>>;
|
|
11
|
-
export declare const RoleManagement: ComponentType<{
|
|
11
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
12
12
|
logger?: Partial<any>;
|
|
13
13
|
tenant: string;
|
|
14
14
|
widgetId: string;
|
|
@@ -16,7 +16,7 @@ export declare const RoleManagement: ComponentType<{
|
|
|
16
16
|
debug?: boolean;
|
|
17
17
|
styleId?: string;
|
|
18
18
|
} & _1.RefAttributes<HTMLElement>>;
|
|
19
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
19
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
20
20
|
logger?: Partial<any>;
|
|
21
21
|
tenant: string;
|
|
22
22
|
widgetId: string;
|
|
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: ComponentType<{
|
|
|
24
24
|
debug?: boolean;
|
|
25
25
|
styleId?: string;
|
|
26
26
|
} & _1.RefAttributes<HTMLElement>>;
|
|
27
|
-
export declare const AuditManagement: ComponentType<{
|
|
27
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
28
28
|
logger?: Partial<any>;
|
|
29
29
|
tenant: string;
|
|
30
30
|
widgetId: string;
|
|
@@ -32,7 +32,7 @@ export declare const AuditManagement: ComponentType<{
|
|
|
32
32
|
debug?: boolean;
|
|
33
33
|
styleId?: string;
|
|
34
34
|
} & _1.RefAttributes<HTMLElement>>;
|
|
35
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
35
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
36
36
|
logger?: Partial<any>;
|
|
37
37
|
tenant: string;
|
|
38
38
|
widgetId: string;
|
|
@@ -42,7 +42,7 @@ export declare const UserProfile: ComponentType<Omit<{
|
|
|
42
42
|
}, "tenant"> & {
|
|
43
43
|
onLogout?: (e: CustomEvent<any>) => void;
|
|
44
44
|
} & _1.RefAttributes<HTMLElement>>;
|
|
45
|
-
export declare const ApplicationsPortal: ComponentType<Omit<{
|
|
45
|
+
export declare const ApplicationsPortal: _1.ComponentType<Omit<{
|
|
46
46
|
logger?: Partial<any>;
|
|
47
47
|
tenant: string;
|
|
48
48
|
widgetId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { AuthProvider as AuthProvider$1 } from '@descope/react-sdk';
|
|
2
3
|
import * as _descope_core_js_sdk from '@descope/core-js-sdk';
|
|
4
|
+
import * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
3
5
|
import * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
|
|
4
|
-
import React, { ComponentType } from 'react';
|
|
5
6
|
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,8 +11,35 @@ type AdditionalProps = {
|
|
|
11
11
|
redirectAfterSuccess?: string;
|
|
12
12
|
redirectAfterError?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const Descope:
|
|
15
|
-
|
|
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?: Partial<any>;
|
|
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<{
|
|
16
43
|
form?: Record<string, any>;
|
|
17
44
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
18
45
|
onError?: (e: CustomEvent<{
|
|
@@ -39,7 +66,7 @@ declare const SignInFlow: React.ComponentType<{
|
|
|
39
66
|
client?: Record<string, any>;
|
|
40
67
|
styleId?: string;
|
|
41
68
|
} & AdditionalProps>;
|
|
42
|
-
declare const SignUpFlow:
|
|
69
|
+
declare const SignUpFlow: _1.ComponentType<{
|
|
43
70
|
form?: Record<string, any>;
|
|
44
71
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
45
72
|
onError?: (e: CustomEvent<{
|
|
@@ -66,7 +93,7 @@ declare const SignUpFlow: React.ComponentType<{
|
|
|
66
93
|
client?: Record<string, any>;
|
|
67
94
|
styleId?: string;
|
|
68
95
|
} & AdditionalProps>;
|
|
69
|
-
declare const SignUpOrInFlow:
|
|
96
|
+
declare const SignUpOrInFlow: _1.ComponentType<{
|
|
70
97
|
form?: Record<string, any>;
|
|
71
98
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
72
99
|
onError?: (e: CustomEvent<{
|
|
@@ -94,7 +121,7 @@ declare const SignUpOrInFlow: React.ComponentType<{
|
|
|
94
121
|
styleId?: string;
|
|
95
122
|
} & AdditionalProps>;
|
|
96
123
|
|
|
97
|
-
declare const UserManagement: ComponentType<{
|
|
124
|
+
declare const UserManagement: _1.ComponentType<{
|
|
98
125
|
logger?: Partial<any>;
|
|
99
126
|
tenant: string;
|
|
100
127
|
widgetId: string;
|
|
@@ -102,7 +129,7 @@ declare const UserManagement: ComponentType<{
|
|
|
102
129
|
debug?: boolean;
|
|
103
130
|
styleId?: string;
|
|
104
131
|
} & _1.RefAttributes<HTMLElement>>;
|
|
105
|
-
declare const RoleManagement: ComponentType<{
|
|
132
|
+
declare const RoleManagement: _1.ComponentType<{
|
|
106
133
|
logger?: Partial<any>;
|
|
107
134
|
tenant: string;
|
|
108
135
|
widgetId: string;
|
|
@@ -110,7 +137,7 @@ declare const RoleManagement: ComponentType<{
|
|
|
110
137
|
debug?: boolean;
|
|
111
138
|
styleId?: string;
|
|
112
139
|
} & _1.RefAttributes<HTMLElement>>;
|
|
113
|
-
declare const AccessKeyManagement: ComponentType<{
|
|
140
|
+
declare const AccessKeyManagement: _1.ComponentType<{
|
|
114
141
|
logger?: Partial<any>;
|
|
115
142
|
tenant: string;
|
|
116
143
|
widgetId: string;
|
|
@@ -118,7 +145,7 @@ declare const AccessKeyManagement: ComponentType<{
|
|
|
118
145
|
debug?: boolean;
|
|
119
146
|
styleId?: string;
|
|
120
147
|
} & _1.RefAttributes<HTMLElement>>;
|
|
121
|
-
declare const AuditManagement: ComponentType<{
|
|
148
|
+
declare const AuditManagement: _1.ComponentType<{
|
|
122
149
|
logger?: Partial<any>;
|
|
123
150
|
tenant: string;
|
|
124
151
|
widgetId: string;
|
|
@@ -126,7 +153,7 @@ declare const AuditManagement: ComponentType<{
|
|
|
126
153
|
debug?: boolean;
|
|
127
154
|
styleId?: string;
|
|
128
155
|
} & _1.RefAttributes<HTMLElement>>;
|
|
129
|
-
declare const UserProfile: ComponentType<Omit<{
|
|
156
|
+
declare const UserProfile: _1.ComponentType<Omit<{
|
|
130
157
|
logger?: Partial<any>;
|
|
131
158
|
tenant: string;
|
|
132
159
|
widgetId: string;
|
|
@@ -136,7 +163,7 @@ declare const UserProfile: ComponentType<Omit<{
|
|
|
136
163
|
}, "tenant"> & {
|
|
137
164
|
onLogout?: (e: CustomEvent<any>) => void;
|
|
138
165
|
} & _1.RefAttributes<HTMLElement>>;
|
|
139
|
-
declare const ApplicationsPortal: ComponentType<Omit<{
|
|
166
|
+
declare const ApplicationsPortal: _1.ComponentType<Omit<{
|
|
140
167
|
logger?: Partial<any>;
|
|
141
168
|
tenant: string;
|
|
142
169
|
widgetId: string;
|
package/dist/server/constants.js
CHANGED
|
@@ -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.
|
|
4
|
+
'x-descope-sdk-version': "0.3.18"
|
|
5
5
|
};
|
|
6
6
|
const DEFAULT_PUBLIC_ROUTES = {
|
|
7
7
|
signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
1
3
|
import type * as _2 from '@descope/react-sdk/node_modules/@descope/web-component/dist';
|
|
2
|
-
import React from 'react';
|
|
3
4
|
type AdditionalProps = {
|
|
4
5
|
redirectAfterSuccess?: string;
|
|
5
6
|
redirectAfterError?: string;
|
|
6
7
|
};
|
|
7
|
-
export declare const Descope:
|
|
8
|
-
|
|
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?: Partial<any>;
|
|
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<{
|
|
9
37
|
form?: Record<string, any>;
|
|
10
38
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
11
39
|
onError?: (e: CustomEvent<{
|
|
@@ -32,7 +60,7 @@ export declare const SignInFlow: React.ComponentType<{
|
|
|
32
60
|
client?: Record<string, any>;
|
|
33
61
|
styleId?: string;
|
|
34
62
|
} & AdditionalProps>;
|
|
35
|
-
export declare const SignUpFlow:
|
|
63
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
36
64
|
form?: Record<string, any>;
|
|
37
65
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
38
66
|
onError?: (e: CustomEvent<{
|
|
@@ -59,7 +87,7 @@ export declare const SignUpFlow: React.ComponentType<{
|
|
|
59
87
|
client?: Record<string, any>;
|
|
60
88
|
styleId?: string;
|
|
61
89
|
} & AdditionalProps>;
|
|
62
|
-
export declare const SignUpOrInFlow:
|
|
90
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
63
91
|
form?: Record<string, any>;
|
|
64
92
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
65
93
|
onError?: (e: CustomEvent<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import type * as _1 from '@descope/react-sdk/node_modules/@types/react';
|
|
2
|
-
|
|
3
|
-
export declare const UserManagement: ComponentType<{
|
|
3
|
+
export declare const UserManagement: _1.ComponentType<{
|
|
4
4
|
logger?: Partial<any>;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
@@ -8,7 +8,7 @@ export declare const UserManagement: ComponentType<{
|
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
styleId?: string;
|
|
10
10
|
} & _1.RefAttributes<HTMLElement>>;
|
|
11
|
-
export declare const RoleManagement: ComponentType<{
|
|
11
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
12
12
|
logger?: Partial<any>;
|
|
13
13
|
tenant: string;
|
|
14
14
|
widgetId: string;
|
|
@@ -16,7 +16,7 @@ export declare const RoleManagement: ComponentType<{
|
|
|
16
16
|
debug?: boolean;
|
|
17
17
|
styleId?: string;
|
|
18
18
|
} & _1.RefAttributes<HTMLElement>>;
|
|
19
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
19
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
20
20
|
logger?: Partial<any>;
|
|
21
21
|
tenant: string;
|
|
22
22
|
widgetId: string;
|
|
@@ -24,7 +24,7 @@ export declare const AccessKeyManagement: ComponentType<{
|
|
|
24
24
|
debug?: boolean;
|
|
25
25
|
styleId?: string;
|
|
26
26
|
} & _1.RefAttributes<HTMLElement>>;
|
|
27
|
-
export declare const AuditManagement: ComponentType<{
|
|
27
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
28
28
|
logger?: Partial<any>;
|
|
29
29
|
tenant: string;
|
|
30
30
|
widgetId: string;
|
|
@@ -32,7 +32,7 @@ export declare const AuditManagement: ComponentType<{
|
|
|
32
32
|
debug?: boolean;
|
|
33
33
|
styleId?: string;
|
|
34
34
|
} & _1.RefAttributes<HTMLElement>>;
|
|
35
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
35
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
36
36
|
logger?: Partial<any>;
|
|
37
37
|
tenant: string;
|
|
38
38
|
widgetId: string;
|
|
@@ -42,7 +42,7 @@ export declare const UserProfile: ComponentType<Omit<{
|
|
|
42
42
|
}, "tenant"> & {
|
|
43
43
|
onLogout?: (e: CustomEvent<any>) => void;
|
|
44
44
|
} & _1.RefAttributes<HTMLElement>>;
|
|
45
|
-
export declare const ApplicationsPortal: ComponentType<Omit<{
|
|
45
|
+
export declare const ApplicationsPortal: _1.ComponentType<Omit<{
|
|
46
46
|
logger?: Partial<any>;
|
|
47
47
|
tenant: string;
|
|
48
48
|
widgetId: string;
|
package/dist/shared/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@descope/nextjs-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
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.9",
|
|
65
64
|
"@descope/core-js-sdk": "2.33.0",
|
|
66
|
-
"@descope/web-component": "3.32.0"
|
|
65
|
+
"@descope/web-component": "3.32.0",
|
|
66
|
+
"@descope/react-sdk": "2.3.9"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/core": "7.23.9",
|