@slashid/jump-page 1.0.23 → 1.0.24
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/package/main.js +2301 -2274
- package/package/main.js.map +1 -1
- package/package/package/main.d.ts +12 -9
- package/package/src/components/flow/flow.progress.d.ts +2 -2
- package/package/src/components/flow/flow.success.d.ts +3 -1
- package/package/src/components/flow/flow.types.d.ts +2 -1
- package/package/src/components/text/use-i18n.d.ts +1 -1
- package/package/src/config.d.ts +1 -0
- package/package/src/domain/i18n.d.ts +1 -0
- package/package.json +2 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare function
|
|
1
|
+
declare function As({ children: e, className: t, header: n, footer: r, style: o }: {
|
|
2
2
|
children: any;
|
|
3
3
|
className: any;
|
|
4
4
|
header?: any;
|
|
@@ -10,8 +10,8 @@ declare function co({ errorCode: e, type: t, redirectUri: n }: {
|
|
|
10
10
|
type: any;
|
|
11
11
|
redirectUri: any;
|
|
12
12
|
}): any;
|
|
13
|
-
declare namespace
|
|
14
|
-
export {
|
|
13
|
+
declare namespace Ns {
|
|
14
|
+
export { de as en };
|
|
15
15
|
export let ja: {
|
|
16
16
|
"footer.text": string;
|
|
17
17
|
"initial.title": string;
|
|
@@ -19,6 +19,7 @@ declare namespace Ps {
|
|
|
19
19
|
"success.title": string;
|
|
20
20
|
"success.details.default": string;
|
|
21
21
|
"success.details.autoclose": string;
|
|
22
|
+
"success.details.slashidRedirect": string;
|
|
22
23
|
"recover.password.title": string;
|
|
23
24
|
"recover.password.details": string;
|
|
24
25
|
"recover.password.input.password.label": string;
|
|
@@ -45,14 +46,15 @@ declare namespace Ps {
|
|
|
45
46
|
"error.detail.registration_already_completed": string;
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
declare function
|
|
49
|
+
declare function hm({ onSuccess: e, onError: t, flowType: n, onRedirectDiscovered: r }: {
|
|
49
50
|
onSuccess: any;
|
|
50
51
|
onError: any;
|
|
51
52
|
flowType: any;
|
|
52
53
|
onRedirectDiscovered: any;
|
|
53
54
|
}): any;
|
|
54
|
-
declare function
|
|
55
|
-
declare function
|
|
55
|
+
declare function fm(): any;
|
|
56
|
+
declare function am({ user: e, redirectUri: t, autoClose: n }?: {
|
|
57
|
+
user: any;
|
|
56
58
|
redirectUri: any;
|
|
57
59
|
autoClose?: boolean | undefined;
|
|
58
60
|
}): any;
|
|
@@ -65,10 +67,10 @@ declare function Cd({ children: e, theme: t, className: n }: {
|
|
|
65
67
|
theme?: string | undefined;
|
|
66
68
|
className: any;
|
|
67
69
|
}): any;
|
|
68
|
-
declare function
|
|
70
|
+
declare function C5({ environment: e }: {
|
|
69
71
|
environment?: string | undefined;
|
|
70
72
|
}): any;
|
|
71
|
-
declare const
|
|
73
|
+
declare const de: {
|
|
72
74
|
"footer.text": string;
|
|
73
75
|
"initial.title": string;
|
|
74
76
|
"initial.details": string;
|
|
@@ -93,6 +95,7 @@ declare const fe: {
|
|
|
93
95
|
"success.title": string;
|
|
94
96
|
"success.details.default": string;
|
|
95
97
|
"success.details.autoclose": string;
|
|
98
|
+
"success.details.slashidRedirect": string;
|
|
96
99
|
"error.title": string;
|
|
97
100
|
"error.title.authentication_expired": string;
|
|
98
101
|
"error.title.registration_already_completed": string;
|
|
@@ -100,4 +103,4 @@ declare const fe: {
|
|
|
100
103
|
"error.detail.authentication_expired": string;
|
|
101
104
|
"error.detail.registration_already_completed": string;
|
|
102
105
|
};
|
|
103
|
-
export {
|
|
106
|
+
export { As as Card, co as Error, Ns as I18N, hm as Progress, fm as Recover, am as Success, tf as TextProvider, Cd as ThemeRoot, C5 as Verification };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { BaseUser, RedirectUriDiscoveredEvent } from "@slashid/slashid";
|
|
2
2
|
import type { FlowType } from "./flow.types";
|
|
3
3
|
export type Props = {
|
|
4
4
|
flowType: FlowType;
|
|
5
|
-
onSuccess: () => void;
|
|
5
|
+
onSuccess: (user: BaseUser | null | undefined) => void;
|
|
6
6
|
onError: ({ error }: {
|
|
7
7
|
error: Error;
|
|
8
8
|
}) => void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import type { BaseUser } from "@slashid/slashid";
|
|
2
|
+
export declare function Success({ user, redirectUri, autoClose, }?: {
|
|
3
|
+
user?: BaseUser | null | undefined;
|
|
2
4
|
redirectUri?: string;
|
|
3
5
|
autoClose?: boolean;
|
|
4
6
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SlashID } from "@slashid/slashid";
|
|
1
|
+
import type { BaseUser, SlashID } from "@slashid/slashid";
|
|
2
2
|
export type InitialState = {
|
|
3
3
|
state: "initial";
|
|
4
4
|
};
|
|
@@ -18,6 +18,7 @@ export type SuccessState = {
|
|
|
18
18
|
state: "success";
|
|
19
19
|
challenges: Challenges;
|
|
20
20
|
flowType: FlowType;
|
|
21
|
+
user: BaseUser | null | undefined;
|
|
21
22
|
};
|
|
22
23
|
export type ErrorState = {
|
|
23
24
|
state: "error";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useI18n(): (key: "footer.text" | "success.details.autoclose" | "recover.password.title" | "recover.password.details" | "recover.password.input.password.label" | "recover.password.input.confirmPassword.label" | "recover.password.input.placeholder" | "recover.password.submit" | "recover.password.validation.passwordsDoNotMatch" | "recover.password.validation.length" | "recover.password.validation.password_variants" | "recover.password.validation.admin_variants" | "recover.password.validation.user_variants" | "recover.password.validation.alphanumeric_sequences_1" | "recover.password.validation.alphanumeric_sequences_2" | "recover.password.validation.numeric_sequences_ascending" | "recover.password.validation.numeric_subsequences_ascending" | "recover.password.validation.numeric_sequences_descending" | "recover.password.validation.numeric_subsequences_descending" | "recover.password.validation.common_password_xkcd" | "error.title" | "error.title.authentication_expired" | "error.title.registration_already_completed" | "error.detail.authentication_expired" | "error.detail.registration_already_completed" | "error.detail" | "success.title" | "success.details.default" | "initial.title" | "initial.details") => string;
|
|
1
|
+
export declare function useI18n(): (key: "footer.text" | "success.details.autoclose" | "success.details.slashidRedirect" | "recover.password.title" | "recover.password.details" | "recover.password.input.password.label" | "recover.password.input.confirmPassword.label" | "recover.password.input.placeholder" | "recover.password.submit" | "recover.password.validation.passwordsDoNotMatch" | "recover.password.validation.length" | "recover.password.validation.password_variants" | "recover.password.validation.admin_variants" | "recover.password.validation.user_variants" | "recover.password.validation.alphanumeric_sequences_1" | "recover.password.validation.alphanumeric_sequences_2" | "recover.password.validation.numeric_sequences_ascending" | "recover.password.validation.numeric_subsequences_ascending" | "recover.password.validation.numeric_sequences_descending" | "recover.password.validation.numeric_subsequences_descending" | "recover.password.validation.common_password_xkcd" | "error.title" | "error.title.authentication_expired" | "error.title.registration_already_completed" | "error.detail.authentication_expired" | "error.detail.registration_already_completed" | "error.detail" | "success.title" | "success.details.default" | "initial.title" | "initial.details") => string;
|
package/package/src/config.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare const defaultStrings: {
|
|
|
29
29
|
"success.title": string;
|
|
30
30
|
"success.details.default": string;
|
|
31
31
|
"success.details.autoclose": string;
|
|
32
|
+
"success.details.slashidRedirect": string;
|
|
32
33
|
"error.title": string;
|
|
33
34
|
"error.title.authentication_expired": string;
|
|
34
35
|
"error.title.registration_already_completed": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slashid/jump-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"homepage": "https://slashid.dev",
|
|
5
5
|
"author": "SlashID",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@astrojs/check": "0.9.4",
|
|
43
43
|
"@astrojs/react": "^4.3.0",
|
|
44
44
|
"@sentry/react": "^7.118.0",
|
|
45
|
-
"@slashid/react": "^1.
|
|
45
|
+
"@slashid/react": "^1.34.0",
|
|
46
46
|
"@slashid/react-primitives": "^0.6.1",
|
|
47
47
|
"@types/react": "^18.0.21",
|
|
48
48
|
"@types/react-dom": "^18.0.6",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"devalue": "5.6.2",
|
|
74
74
|
"vite": ">=6.4.1 <7",
|
|
75
75
|
"h3": ">=1.15.5",
|
|
76
|
-
"cross-spawn": ">=7.0.5",
|
|
77
76
|
"mdast-util-to-hast": ">=13.2.1",
|
|
78
77
|
"js-yaml": ">=4.1.1",
|
|
79
78
|
"qs": ">=6.14.1"
|