@descope/nextjs-sdk 0.2.1 → 0.2.3
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 +15 -65
- package/dist/client/dts/src/shared/DescopeWidgets.d.ts +6 -6
- package/dist/dts/src/shared/DescopeFlows.d.ts +15 -65
- package/dist/dts/src/shared/DescopeWidgets.d.ts +6 -6
- package/dist/index.d.ts +20 -71
- package/dist/server/constants.js +1 -1
- package/dist/server/dts/src/shared/DescopeFlows.d.ts +15 -65
- package/dist/server/dts/src/shared/DescopeWidgets.d.ts +6 -6
- package/dist/shared/constants.js +1 -1
- package/package.json +5 -5
|
@@ -1,38 +1,12 @@
|
|
|
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
|
-
|
|
9
|
-
} & AdditionalProps)>;
|
|
10
|
-
export declare const SignInFlow: React.ComponentType<({
|
|
11
|
-
form?: Record<string, any>;
|
|
12
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
13
|
-
onError?: (e: CustomEvent<{
|
|
14
|
-
errorCode: string;
|
|
15
|
-
errorDescription: string;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
retryAfter?: string;
|
|
18
|
-
}>) => void;
|
|
19
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
20
|
-
logger?: _2.ILogger;
|
|
21
|
-
tenant?: string;
|
|
22
|
-
theme?: _2.ThemeOptions;
|
|
23
|
-
locale?: string;
|
|
24
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
25
|
-
validateOnBlur?: boolean;
|
|
26
|
-
debug?: boolean;
|
|
27
|
-
telemetryKey?: string;
|
|
28
|
-
redirectUrl?: string;
|
|
29
|
-
errorTransformer?: (error: {
|
|
30
|
-
text: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}) => string;
|
|
33
|
-
client?: Record<string, any>;
|
|
34
|
-
} | ({
|
|
35
|
-
form?: Record<string, any>;
|
|
8
|
+
export declare const Descope: _1.ComponentType<{
|
|
9
|
+
flowId: string;
|
|
36
10
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
37
11
|
onError?: (e: CustomEvent<{
|
|
38
12
|
errorCode: string;
|
|
@@ -54,35 +28,11 @@ export declare const SignInFlow: React.ComponentType<({
|
|
|
54
28
|
text: string;
|
|
55
29
|
type: string;
|
|
56
30
|
}) => string;
|
|
57
|
-
client?: Record<string, any>;
|
|
58
|
-
} & {
|
|
59
|
-
children?: React.ReactNode;
|
|
60
|
-
})) & AdditionalProps>;
|
|
61
|
-
export declare const SignUpFlow: React.ComponentType<({
|
|
62
31
|
form?: Record<string, any>;
|
|
63
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
64
|
-
onError?: (e: CustomEvent<{
|
|
65
|
-
errorCode: string;
|
|
66
|
-
errorDescription: string;
|
|
67
|
-
errorMessage?: string;
|
|
68
|
-
retryAfter?: string;
|
|
69
|
-
}>) => void;
|
|
70
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
71
|
-
logger?: _2.ILogger;
|
|
72
|
-
tenant?: string;
|
|
73
|
-
theme?: _2.ThemeOptions;
|
|
74
|
-
locale?: string;
|
|
75
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
76
|
-
validateOnBlur?: boolean;
|
|
77
|
-
debug?: boolean;
|
|
78
|
-
telemetryKey?: string;
|
|
79
|
-
redirectUrl?: string;
|
|
80
|
-
errorTransformer?: (error: {
|
|
81
|
-
text: string;
|
|
82
|
-
type: string;
|
|
83
|
-
}) => string;
|
|
84
32
|
client?: Record<string, any>;
|
|
85
|
-
|
|
33
|
+
styleId?: string;
|
|
34
|
+
} & _1.RefAttributes<HTMLElement> & AdditionalProps>;
|
|
35
|
+
export declare const SignInFlow: _1.ComponentType<{
|
|
86
36
|
form?: Record<string, any>;
|
|
87
37
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
88
38
|
onError?: (e: CustomEvent<{
|
|
@@ -106,10 +56,9 @@ export declare const SignUpFlow: React.ComponentType<({
|
|
|
106
56
|
type: string;
|
|
107
57
|
}) => string;
|
|
108
58
|
client?: Record<string, any>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export declare const SignUpOrInFlow: React.ComponentType<({
|
|
59
|
+
styleId?: string;
|
|
60
|
+
} & AdditionalProps>;
|
|
61
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
113
62
|
form?: Record<string, any>;
|
|
114
63
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
115
64
|
onError?: (e: CustomEvent<{
|
|
@@ -133,7 +82,9 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
133
82
|
type: string;
|
|
134
83
|
}) => string;
|
|
135
84
|
client?: Record<string, any>;
|
|
136
|
-
|
|
85
|
+
styleId?: string;
|
|
86
|
+
} & AdditionalProps>;
|
|
87
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
137
88
|
form?: Record<string, any>;
|
|
138
89
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
139
90
|
onError?: (e: CustomEvent<{
|
|
@@ -157,7 +108,6 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
157
108
|
type: string;
|
|
158
109
|
}) => string;
|
|
159
110
|
client?: Record<string, any>;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})) & AdditionalProps>;
|
|
111
|
+
styleId?: string;
|
|
112
|
+
} & AdditionalProps>;
|
|
163
113
|
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
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?: import("@descope/web-component").ILogger;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
7
7
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
} & _1.RefAttributes<HTMLElement>>;
|
|
10
|
-
export declare const RoleManagement: ComponentType<{
|
|
10
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
11
11
|
logger?: import("@descope/web-component").ILogger;
|
|
12
12
|
tenant: string;
|
|
13
13
|
widgetId: string;
|
|
14
14
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
15
15
|
debug?: boolean;
|
|
16
16
|
} & _1.RefAttributes<HTMLElement>>;
|
|
17
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
17
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
18
18
|
logger?: import("@descope/web-component").ILogger;
|
|
19
19
|
tenant: string;
|
|
20
20
|
widgetId: string;
|
|
21
21
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
22
22
|
debug?: boolean;
|
|
23
23
|
} & _1.RefAttributes<HTMLElement>>;
|
|
24
|
-
export declare const AuditManagement: ComponentType<{
|
|
24
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
25
25
|
logger?: import("@descope/web-component").ILogger;
|
|
26
26
|
tenant: string;
|
|
27
27
|
widgetId: string;
|
|
28
28
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
29
29
|
debug?: boolean;
|
|
30
30
|
} & _1.RefAttributes<HTMLElement>>;
|
|
31
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
31
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
32
32
|
logger?: import("@descope/web-component").ILogger;
|
|
33
33
|
tenant: string;
|
|
34
34
|
widgetId: string;
|
|
@@ -1,38 +1,12 @@
|
|
|
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
|
-
|
|
9
|
-
} & AdditionalProps)>;
|
|
10
|
-
export declare const SignInFlow: React.ComponentType<({
|
|
11
|
-
form?: Record<string, any>;
|
|
12
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
13
|
-
onError?: (e: CustomEvent<{
|
|
14
|
-
errorCode: string;
|
|
15
|
-
errorDescription: string;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
retryAfter?: string;
|
|
18
|
-
}>) => void;
|
|
19
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
20
|
-
logger?: _2.ILogger;
|
|
21
|
-
tenant?: string;
|
|
22
|
-
theme?: _2.ThemeOptions;
|
|
23
|
-
locale?: string;
|
|
24
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
25
|
-
validateOnBlur?: boolean;
|
|
26
|
-
debug?: boolean;
|
|
27
|
-
telemetryKey?: string;
|
|
28
|
-
redirectUrl?: string;
|
|
29
|
-
errorTransformer?: (error: {
|
|
30
|
-
text: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}) => string;
|
|
33
|
-
client?: Record<string, any>;
|
|
34
|
-
} | ({
|
|
35
|
-
form?: Record<string, any>;
|
|
8
|
+
export declare const Descope: _1.ComponentType<{
|
|
9
|
+
flowId: string;
|
|
36
10
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
37
11
|
onError?: (e: CustomEvent<{
|
|
38
12
|
errorCode: string;
|
|
@@ -54,35 +28,11 @@ export declare const SignInFlow: React.ComponentType<({
|
|
|
54
28
|
text: string;
|
|
55
29
|
type: string;
|
|
56
30
|
}) => string;
|
|
57
|
-
client?: Record<string, any>;
|
|
58
|
-
} & {
|
|
59
|
-
children?: React.ReactNode;
|
|
60
|
-
})) & AdditionalProps>;
|
|
61
|
-
export declare const SignUpFlow: React.ComponentType<({
|
|
62
31
|
form?: Record<string, any>;
|
|
63
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
64
|
-
onError?: (e: CustomEvent<{
|
|
65
|
-
errorCode: string;
|
|
66
|
-
errorDescription: string;
|
|
67
|
-
errorMessage?: string;
|
|
68
|
-
retryAfter?: string;
|
|
69
|
-
}>) => void;
|
|
70
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
71
|
-
logger?: _2.ILogger;
|
|
72
|
-
tenant?: string;
|
|
73
|
-
theme?: _2.ThemeOptions;
|
|
74
|
-
locale?: string;
|
|
75
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
76
|
-
validateOnBlur?: boolean;
|
|
77
|
-
debug?: boolean;
|
|
78
|
-
telemetryKey?: string;
|
|
79
|
-
redirectUrl?: string;
|
|
80
|
-
errorTransformer?: (error: {
|
|
81
|
-
text: string;
|
|
82
|
-
type: string;
|
|
83
|
-
}) => string;
|
|
84
32
|
client?: Record<string, any>;
|
|
85
|
-
|
|
33
|
+
styleId?: string;
|
|
34
|
+
} & _1.RefAttributes<HTMLElement> & AdditionalProps>;
|
|
35
|
+
export declare const SignInFlow: _1.ComponentType<{
|
|
86
36
|
form?: Record<string, any>;
|
|
87
37
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
88
38
|
onError?: (e: CustomEvent<{
|
|
@@ -106,10 +56,9 @@ export declare const SignUpFlow: React.ComponentType<({
|
|
|
106
56
|
type: string;
|
|
107
57
|
}) => string;
|
|
108
58
|
client?: Record<string, any>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export declare const SignUpOrInFlow: React.ComponentType<({
|
|
59
|
+
styleId?: string;
|
|
60
|
+
} & AdditionalProps>;
|
|
61
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
113
62
|
form?: Record<string, any>;
|
|
114
63
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
115
64
|
onError?: (e: CustomEvent<{
|
|
@@ -133,7 +82,9 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
133
82
|
type: string;
|
|
134
83
|
}) => string;
|
|
135
84
|
client?: Record<string, any>;
|
|
136
|
-
|
|
85
|
+
styleId?: string;
|
|
86
|
+
} & AdditionalProps>;
|
|
87
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
137
88
|
form?: Record<string, any>;
|
|
138
89
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
139
90
|
onError?: (e: CustomEvent<{
|
|
@@ -157,7 +108,6 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
157
108
|
type: string;
|
|
158
109
|
}) => string;
|
|
159
110
|
client?: Record<string, any>;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})) & AdditionalProps>;
|
|
111
|
+
styleId?: string;
|
|
112
|
+
} & AdditionalProps>;
|
|
163
113
|
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
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?: import("@descope/web-component").ILogger;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
7
7
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
} & _1.RefAttributes<HTMLElement>>;
|
|
10
|
-
export declare const RoleManagement: ComponentType<{
|
|
10
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
11
11
|
logger?: import("@descope/web-component").ILogger;
|
|
12
12
|
tenant: string;
|
|
13
13
|
widgetId: string;
|
|
14
14
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
15
15
|
debug?: boolean;
|
|
16
16
|
} & _1.RefAttributes<HTMLElement>>;
|
|
17
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
17
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
18
18
|
logger?: import("@descope/web-component").ILogger;
|
|
19
19
|
tenant: string;
|
|
20
20
|
widgetId: string;
|
|
21
21
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
22
22
|
debug?: boolean;
|
|
23
23
|
} & _1.RefAttributes<HTMLElement>>;
|
|
24
|
-
export declare const AuditManagement: ComponentType<{
|
|
24
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
25
25
|
logger?: import("@descope/web-component").ILogger;
|
|
26
26
|
tenant: string;
|
|
27
27
|
widgetId: string;
|
|
28
28
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
29
29
|
debug?: boolean;
|
|
30
30
|
} & _1.RefAttributes<HTMLElement>>;
|
|
31
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
31
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
32
32
|
logger?: import("@descope/web-component").ILogger;
|
|
33
33
|
tenant: string;
|
|
34
34
|
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,35 +11,8 @@ type AdditionalProps = {
|
|
|
11
11
|
redirectAfterSuccess?: string;
|
|
12
12
|
redirectAfterError?: string;
|
|
13
13
|
};
|
|
14
|
-
declare const Descope:
|
|
15
|
-
|
|
16
|
-
} & AdditionalProps)>;
|
|
17
|
-
declare const SignInFlow: React.ComponentType<({
|
|
18
|
-
form?: Record<string, any>;
|
|
19
|
-
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
20
|
-
onError?: (e: CustomEvent<{
|
|
21
|
-
errorCode: string;
|
|
22
|
-
errorDescription: string;
|
|
23
|
-
errorMessage?: string;
|
|
24
|
-
retryAfter?: string;
|
|
25
|
-
}>) => void;
|
|
26
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
27
|
-
logger?: _2.ILogger;
|
|
28
|
-
tenant?: string;
|
|
29
|
-
theme?: _2.ThemeOptions;
|
|
30
|
-
locale?: string;
|
|
31
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
32
|
-
validateOnBlur?: boolean;
|
|
33
|
-
debug?: boolean;
|
|
34
|
-
telemetryKey?: string;
|
|
35
|
-
redirectUrl?: string;
|
|
36
|
-
errorTransformer?: (error: {
|
|
37
|
-
text: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}) => string;
|
|
40
|
-
client?: Record<string, any>;
|
|
41
|
-
} | ({
|
|
42
|
-
form?: Record<string, any>;
|
|
14
|
+
declare const Descope: _1.ComponentType<{
|
|
15
|
+
flowId: string;
|
|
43
16
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
44
17
|
onError?: (e: CustomEvent<{
|
|
45
18
|
errorCode: string;
|
|
@@ -61,35 +34,11 @@ declare const SignInFlow: React.ComponentType<({
|
|
|
61
34
|
text: string;
|
|
62
35
|
type: string;
|
|
63
36
|
}) => string;
|
|
64
|
-
client?: Record<string, any>;
|
|
65
|
-
} & {
|
|
66
|
-
children?: React.ReactNode;
|
|
67
|
-
})) & AdditionalProps>;
|
|
68
|
-
declare const SignUpFlow: React.ComponentType<({
|
|
69
37
|
form?: Record<string, any>;
|
|
70
|
-
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
71
|
-
onError?: (e: CustomEvent<{
|
|
72
|
-
errorCode: string;
|
|
73
|
-
errorDescription: string;
|
|
74
|
-
errorMessage?: string;
|
|
75
|
-
retryAfter?: string;
|
|
76
|
-
}>) => void;
|
|
77
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
78
|
-
logger?: _2.ILogger;
|
|
79
|
-
tenant?: string;
|
|
80
|
-
theme?: _2.ThemeOptions;
|
|
81
|
-
locale?: string;
|
|
82
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
83
|
-
validateOnBlur?: boolean;
|
|
84
|
-
debug?: boolean;
|
|
85
|
-
telemetryKey?: string;
|
|
86
|
-
redirectUrl?: string;
|
|
87
|
-
errorTransformer?: (error: {
|
|
88
|
-
text: string;
|
|
89
|
-
type: string;
|
|
90
|
-
}) => string;
|
|
91
38
|
client?: Record<string, any>;
|
|
92
|
-
|
|
39
|
+
styleId?: string;
|
|
40
|
+
} & _1.RefAttributes<HTMLElement> & AdditionalProps>;
|
|
41
|
+
declare const SignInFlow: _1.ComponentType<{
|
|
93
42
|
form?: Record<string, any>;
|
|
94
43
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
95
44
|
onError?: (e: CustomEvent<{
|
|
@@ -113,10 +62,9 @@ declare const SignUpFlow: React.ComponentType<({
|
|
|
113
62
|
type: string;
|
|
114
63
|
}) => string;
|
|
115
64
|
client?: Record<string, any>;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
declare const SignUpOrInFlow: React.ComponentType<({
|
|
65
|
+
styleId?: string;
|
|
66
|
+
} & AdditionalProps>;
|
|
67
|
+
declare const SignUpFlow: _1.ComponentType<{
|
|
120
68
|
form?: Record<string, any>;
|
|
121
69
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
122
70
|
onError?: (e: CustomEvent<{
|
|
@@ -140,7 +88,9 @@ declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
140
88
|
type: string;
|
|
141
89
|
}) => string;
|
|
142
90
|
client?: Record<string, any>;
|
|
143
|
-
|
|
91
|
+
styleId?: string;
|
|
92
|
+
} & AdditionalProps>;
|
|
93
|
+
declare const SignUpOrInFlow: _1.ComponentType<{
|
|
144
94
|
form?: Record<string, any>;
|
|
145
95
|
onSuccess?: (e: CustomEvent<_descope_core_js_sdk.JWTResponse>) => void;
|
|
146
96
|
onError?: (e: CustomEvent<{
|
|
@@ -164,39 +114,38 @@ declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
164
114
|
type: string;
|
|
165
115
|
}) => string;
|
|
166
116
|
client?: Record<string, any>;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
})) & AdditionalProps>;
|
|
117
|
+
styleId?: string;
|
|
118
|
+
} & AdditionalProps>;
|
|
170
119
|
|
|
171
|
-
declare const UserManagement: ComponentType<{
|
|
120
|
+
declare const UserManagement: _1.ComponentType<{
|
|
172
121
|
logger?: _descope_web_component.ILogger;
|
|
173
122
|
tenant: string;
|
|
174
123
|
widgetId: string;
|
|
175
124
|
theme?: _descope_web_component.ThemeOptions;
|
|
176
125
|
debug?: boolean;
|
|
177
126
|
} & _1.RefAttributes<HTMLElement>>;
|
|
178
|
-
declare const RoleManagement: ComponentType<{
|
|
127
|
+
declare const RoleManagement: _1.ComponentType<{
|
|
179
128
|
logger?: _descope_web_component.ILogger;
|
|
180
129
|
tenant: string;
|
|
181
130
|
widgetId: string;
|
|
182
131
|
theme?: _descope_web_component.ThemeOptions;
|
|
183
132
|
debug?: boolean;
|
|
184
133
|
} & _1.RefAttributes<HTMLElement>>;
|
|
185
|
-
declare const AccessKeyManagement: ComponentType<{
|
|
134
|
+
declare const AccessKeyManagement: _1.ComponentType<{
|
|
186
135
|
logger?: _descope_web_component.ILogger;
|
|
187
136
|
tenant: string;
|
|
188
137
|
widgetId: string;
|
|
189
138
|
theme?: _descope_web_component.ThemeOptions;
|
|
190
139
|
debug?: boolean;
|
|
191
140
|
} & _1.RefAttributes<HTMLElement>>;
|
|
192
|
-
declare const AuditManagement: ComponentType<{
|
|
141
|
+
declare const AuditManagement: _1.ComponentType<{
|
|
193
142
|
logger?: _descope_web_component.ILogger;
|
|
194
143
|
tenant: string;
|
|
195
144
|
widgetId: string;
|
|
196
145
|
theme?: _descope_web_component.ThemeOptions;
|
|
197
146
|
debug?: boolean;
|
|
198
147
|
} & _1.RefAttributes<HTMLElement>>;
|
|
199
|
-
declare const UserProfile: ComponentType<Omit<{
|
|
148
|
+
declare const UserProfile: _1.ComponentType<Omit<{
|
|
200
149
|
logger?: _descope_web_component.ILogger;
|
|
201
150
|
tenant: string;
|
|
202
151
|
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.2.
|
|
4
|
+
'x-descope-sdk-version': "0.2.3"
|
|
5
5
|
};
|
|
6
6
|
const DEFAULT_PUBLIC_ROUTES = {
|
|
7
7
|
signIn: process.env.SIGN_IN_ROUTE || '/sign-in',
|
|
@@ -1,38 +1,12 @@
|
|
|
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
|
-
|
|
9
|
-
} & AdditionalProps)>;
|
|
10
|
-
export declare const SignInFlow: React.ComponentType<({
|
|
11
|
-
form?: Record<string, any>;
|
|
12
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
13
|
-
onError?: (e: CustomEvent<{
|
|
14
|
-
errorCode: string;
|
|
15
|
-
errorDescription: string;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
retryAfter?: string;
|
|
18
|
-
}>) => void;
|
|
19
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
20
|
-
logger?: _2.ILogger;
|
|
21
|
-
tenant?: string;
|
|
22
|
-
theme?: _2.ThemeOptions;
|
|
23
|
-
locale?: string;
|
|
24
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
25
|
-
validateOnBlur?: boolean;
|
|
26
|
-
debug?: boolean;
|
|
27
|
-
telemetryKey?: string;
|
|
28
|
-
redirectUrl?: string;
|
|
29
|
-
errorTransformer?: (error: {
|
|
30
|
-
text: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}) => string;
|
|
33
|
-
client?: Record<string, any>;
|
|
34
|
-
} | ({
|
|
35
|
-
form?: Record<string, any>;
|
|
8
|
+
export declare const Descope: _1.ComponentType<{
|
|
9
|
+
flowId: string;
|
|
36
10
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
37
11
|
onError?: (e: CustomEvent<{
|
|
38
12
|
errorCode: string;
|
|
@@ -54,35 +28,11 @@ export declare const SignInFlow: React.ComponentType<({
|
|
|
54
28
|
text: string;
|
|
55
29
|
type: string;
|
|
56
30
|
}) => string;
|
|
57
|
-
client?: Record<string, any>;
|
|
58
|
-
} & {
|
|
59
|
-
children?: React.ReactNode;
|
|
60
|
-
})) & AdditionalProps>;
|
|
61
|
-
export declare const SignUpFlow: React.ComponentType<({
|
|
62
31
|
form?: Record<string, any>;
|
|
63
|
-
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
64
|
-
onError?: (e: CustomEvent<{
|
|
65
|
-
errorCode: string;
|
|
66
|
-
errorDescription: string;
|
|
67
|
-
errorMessage?: string;
|
|
68
|
-
retryAfter?: string;
|
|
69
|
-
}>) => void;
|
|
70
|
-
onReady?: (e: CustomEvent<{}>) => void;
|
|
71
|
-
logger?: _2.ILogger;
|
|
72
|
-
tenant?: string;
|
|
73
|
-
theme?: _2.ThemeOptions;
|
|
74
|
-
locale?: string;
|
|
75
|
-
autoFocus?: _2.AutoFocusOptions;
|
|
76
|
-
validateOnBlur?: boolean;
|
|
77
|
-
debug?: boolean;
|
|
78
|
-
telemetryKey?: string;
|
|
79
|
-
redirectUrl?: string;
|
|
80
|
-
errorTransformer?: (error: {
|
|
81
|
-
text: string;
|
|
82
|
-
type: string;
|
|
83
|
-
}) => string;
|
|
84
32
|
client?: Record<string, any>;
|
|
85
|
-
|
|
33
|
+
styleId?: string;
|
|
34
|
+
} & _1.RefAttributes<HTMLElement> & AdditionalProps>;
|
|
35
|
+
export declare const SignInFlow: _1.ComponentType<{
|
|
86
36
|
form?: Record<string, any>;
|
|
87
37
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
88
38
|
onError?: (e: CustomEvent<{
|
|
@@ -106,10 +56,9 @@ export declare const SignUpFlow: React.ComponentType<({
|
|
|
106
56
|
type: string;
|
|
107
57
|
}) => string;
|
|
108
58
|
client?: Record<string, any>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
export declare const SignUpOrInFlow: React.ComponentType<({
|
|
59
|
+
styleId?: string;
|
|
60
|
+
} & AdditionalProps>;
|
|
61
|
+
export declare const SignUpFlow: _1.ComponentType<{
|
|
113
62
|
form?: Record<string, any>;
|
|
114
63
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
115
64
|
onError?: (e: CustomEvent<{
|
|
@@ -133,7 +82,9 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
133
82
|
type: string;
|
|
134
83
|
}) => string;
|
|
135
84
|
client?: Record<string, any>;
|
|
136
|
-
|
|
85
|
+
styleId?: string;
|
|
86
|
+
} & AdditionalProps>;
|
|
87
|
+
export declare const SignUpOrInFlow: _1.ComponentType<{
|
|
137
88
|
form?: Record<string, any>;
|
|
138
89
|
onSuccess?: (e: CustomEvent<import("@descope/core-js-sdk").JWTResponse>) => void;
|
|
139
90
|
onError?: (e: CustomEvent<{
|
|
@@ -157,7 +108,6 @@ export declare const SignUpOrInFlow: React.ComponentType<({
|
|
|
157
108
|
type: string;
|
|
158
109
|
}) => string;
|
|
159
110
|
client?: Record<string, any>;
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})) & AdditionalProps>;
|
|
111
|
+
styleId?: string;
|
|
112
|
+
} & AdditionalProps>;
|
|
163
113
|
export {};
|
|
@@ -1,34 +1,34 @@
|
|
|
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?: import("@descope/web-component").ILogger;
|
|
5
5
|
tenant: string;
|
|
6
6
|
widgetId: string;
|
|
7
7
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
8
8
|
debug?: boolean;
|
|
9
9
|
} & _1.RefAttributes<HTMLElement>>;
|
|
10
|
-
export declare const RoleManagement: ComponentType<{
|
|
10
|
+
export declare const RoleManagement: _1.ComponentType<{
|
|
11
11
|
logger?: import("@descope/web-component").ILogger;
|
|
12
12
|
tenant: string;
|
|
13
13
|
widgetId: string;
|
|
14
14
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
15
15
|
debug?: boolean;
|
|
16
16
|
} & _1.RefAttributes<HTMLElement>>;
|
|
17
|
-
export declare const AccessKeyManagement: ComponentType<{
|
|
17
|
+
export declare const AccessKeyManagement: _1.ComponentType<{
|
|
18
18
|
logger?: import("@descope/web-component").ILogger;
|
|
19
19
|
tenant: string;
|
|
20
20
|
widgetId: string;
|
|
21
21
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
22
22
|
debug?: boolean;
|
|
23
23
|
} & _1.RefAttributes<HTMLElement>>;
|
|
24
|
-
export declare const AuditManagement: ComponentType<{
|
|
24
|
+
export declare const AuditManagement: _1.ComponentType<{
|
|
25
25
|
logger?: import("@descope/web-component").ILogger;
|
|
26
26
|
tenant: string;
|
|
27
27
|
widgetId: string;
|
|
28
28
|
theme?: import("@descope/web-component").ThemeOptions;
|
|
29
29
|
debug?: boolean;
|
|
30
30
|
} & _1.RefAttributes<HTMLElement>>;
|
|
31
|
-
export declare const UserProfile: ComponentType<Omit<{
|
|
31
|
+
export declare const UserProfile: _1.ComponentType<Omit<{
|
|
32
32
|
logger?: import("@descope/web-component").ILogger;
|
|
33
33
|
tenant: string;
|
|
34
34
|
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.2.
|
|
3
|
+
"version": "0.2.3",
|
|
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.0.
|
|
65
|
-
"@descope/
|
|
66
|
-
"@descope/
|
|
64
|
+
"@descope/react-sdk": "2.0.69",
|
|
65
|
+
"@descope/web-component": "3.24.0",
|
|
66
|
+
"@descope/core-js-sdk": "2.24.3"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@babel/core": "7.23.9",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@testing-library/jest-dom": "^6.4.2",
|
|
80
80
|
"@testing-library/react": "^14.2.1",
|
|
81
81
|
"@types/jest": "^29.5.12",
|
|
82
|
-
"@types/react": "
|
|
82
|
+
"@types/react": "18.3.3",
|
|
83
83
|
"@types/react-dom": "18.2.18",
|
|
84
84
|
"@types/react-router-dom": "^5.3.3",
|
|
85
85
|
"babel": "^6.23.0",
|