keycloakify 11.3.26 → 11.3.27
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/login/KcContext/KcContext.d.ts +2 -2
- package/login/KcContext/kcContextMocks.d.ts +1 -1
- package/login/TemplateProps.d.ts +0 -1
- package/package.json +1 -2
- package/src/login/KcContext/KcContext.ts +2 -2
- package/src/login/KcContext/kcContextMocks.ts +1 -1
- package/src/login/TemplateProps.ts +0 -1
- package/stories/login/pages/Info.stories.tsx +3 -39
- package/stories/login/pages/LoginDeviceVerifyUserCode.stories.tsx +0 -18
@@ -15,7 +15,7 @@ export type ExtendKcContext<KcContextExtension extends {
|
|
15
15
|
* Some values might be undefined on some pages.
|
16
16
|
* (ex: url.loginAction is undefined on error.ftl)
|
17
17
|
*/
|
18
|
-
export type KcContext = KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword | KcContext.LoginVerifyEmail | KcContext.Terms | KcContext.
|
18
|
+
export type KcContext = KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword | KcContext.LoginVerifyEmail | KcContext.Terms | KcContext.LoginOauth2DeviceVerifyUserCode | KcContext.LoginOauthGrant | KcContext.LoginOtp | KcContext.LoginUsername | KcContext.WebauthnAuthenticate | KcContext.WebauthnRegister | KcContext.LoginPassword | KcContext.LoginUpdatePassword | KcContext.LoginUpdateProfile | KcContext.LoginIdpLinkConfirm | KcContext.LoginIdpLinkEmail | KcContext.LoginPageExpired | KcContext.LoginConfigTotp | KcContext.LogoutConfirm | KcContext.IdpReviewUserProfile | KcContext.UpdateEmail | KcContext.SelectAuthenticator | KcContext.SamlPostForm | KcContext.DeleteCredential | KcContext.Code | KcContext.DeleteAccountConfirm | KcContext.FrontchannelLogout | KcContext.LoginRecoveryAuthnCodeConfig | KcContext.LoginRecoveryAuthnCodeInput | KcContext.LoginResetOtp | KcContext.LoginX509Info | KcContext.WebauthnError | KcContext.LoginPasskeysConditionalAuthenticate | KcContext.LoginIdpLinkConfirmOverride;
|
19
19
|
export declare namespace KcContext {
|
20
20
|
type Common = {
|
21
21
|
themeVersion: string;
|
@@ -213,7 +213,7 @@ export declare namespace KcContext {
|
|
213
213
|
};
|
214
214
|
__localizationRealmOverridesTermsText?: string;
|
215
215
|
};
|
216
|
-
type
|
216
|
+
type LoginOauth2DeviceVerifyUserCode = Common & {
|
217
217
|
pageId: "login-oauth2-device-verify-user-code.ftl";
|
218
218
|
url: {
|
219
219
|
oauth2DeviceVerificationAction: string;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import "../../tools/Object.fromEntries";
|
2
2
|
import type { KcContext } from "./KcContext";
|
3
3
|
export declare const kcContextCommonMock: KcContext.Common;
|
4
|
-
export declare const kcContextMocks: (KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword | KcContext.LoginVerifyEmail | KcContext.Terms | KcContext.
|
4
|
+
export declare const kcContextMocks: (KcContext.Login | KcContext.Register | KcContext.Info | KcContext.Error | KcContext.LoginResetPassword | KcContext.LoginVerifyEmail | KcContext.Terms | KcContext.LoginOauth2DeviceVerifyUserCode | KcContext.LoginOauthGrant | KcContext.LoginOtp | KcContext.LoginUsername | KcContext.WebauthnAuthenticate | KcContext.WebauthnRegister | KcContext.LoginPassword | KcContext.LoginUpdatePassword | KcContext.LoginUpdateProfile | KcContext.LoginIdpLinkConfirm | KcContext.LoginIdpLinkEmail | KcContext.LoginPageExpired | KcContext.LoginConfigTotp | KcContext.LogoutConfirm | KcContext.IdpReviewUserProfile | KcContext.UpdateEmail | KcContext.SelectAuthenticator | KcContext.SamlPostForm | KcContext.DeleteCredential | KcContext.Code | KcContext.DeleteAccountConfirm | KcContext.FrontchannelLogout | KcContext.LoginRecoveryAuthnCodeConfig | KcContext.LoginRecoveryAuthnCodeInput | KcContext.LoginResetOtp | KcContext.LoginX509Info | KcContext.WebauthnError | KcContext.LoginPasskeysConditionalAuthenticate | KcContext.LoginIdpLinkConfirmOverride)[];
|
package/login/TemplateProps.d.ts
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "11.3.
|
3
|
+
"version": "11.3.27",
|
4
4
|
"description": "Framework to create custom Keycloak UIs",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -900,7 +900,6 @@
|
|
900
900
|
"stories/login/pages/Info.stories.tsx",
|
901
901
|
"stories/login/pages/Login.stories.tsx",
|
902
902
|
"stories/login/pages/LoginConfigTotp.stories.tsx",
|
903
|
-
"stories/login/pages/LoginDeviceVerifyUserCode.stories.tsx",
|
904
903
|
"stories/login/pages/LoginIdpLinkConfirm.stories.tsx",
|
905
904
|
"stories/login/pages/LoginIdpLinkConfirmOverride.stories.tsx",
|
906
905
|
"stories/login/pages/LoginIdpLinkEmail.stories.tsx",
|
@@ -33,7 +33,7 @@ export type KcContext =
|
|
33
33
|
| KcContext.LoginResetPassword
|
34
34
|
| KcContext.LoginVerifyEmail
|
35
35
|
| KcContext.Terms
|
36
|
-
| KcContext.
|
36
|
+
| KcContext.LoginOauth2DeviceVerifyUserCode
|
37
37
|
| KcContext.LoginOauthGrant
|
38
38
|
| KcContext.LoginOtp
|
39
39
|
| KcContext.LoginUsername
|
@@ -277,7 +277,7 @@ export declare namespace KcContext {
|
|
277
277
|
__localizationRealmOverridesTermsText?: string;
|
278
278
|
};
|
279
279
|
|
280
|
-
export type
|
280
|
+
export type LoginOauth2DeviceVerifyUserCode = Common & {
|
281
281
|
pageId: "login-oauth2-device-verify-user-code.ftl";
|
282
282
|
url: {
|
283
283
|
oauth2DeviceVerificationAction: string;
|
@@ -290,7 +290,7 @@ export const kcContextMocks = [
|
|
290
290
|
...kcContextCommonMock,
|
291
291
|
pageId: "terms.ftl"
|
292
292
|
}),
|
293
|
-
id<KcContext.
|
293
|
+
id<KcContext.LoginOauth2DeviceVerifyUserCode>({
|
294
294
|
...kcContextCommonMock,
|
295
295
|
pageId: "login-oauth2-device-verify-user-code.ftl",
|
296
296
|
url: loginUrl
|
@@ -11,7 +11,6 @@ export type TemplateProps<KcContext, I18n> = {
|
|
11
11
|
displayInfo?: boolean;
|
12
12
|
displayMessage?: boolean;
|
13
13
|
displayRequiredFields?: boolean;
|
14
|
-
showAnotherWayIfPresent?: boolean;
|
15
14
|
headerNode: ReactNode;
|
16
15
|
socialProvidersNode?: ReactNode;
|
17
16
|
infoNode?: ReactNode;
|
@@ -17,6 +17,7 @@ export const Default: Story = {
|
|
17
17
|
render: () => (
|
18
18
|
<KcPageStory
|
19
19
|
kcContext={{
|
20
|
+
messageHeader: "Message header",
|
20
21
|
message: {
|
21
22
|
summary: "Server info message"
|
22
23
|
}
|
@@ -29,6 +30,7 @@ export const WithLinkBack: Story = {
|
|
29
30
|
render: () => (
|
30
31
|
<KcPageStory
|
31
32
|
kcContext={{
|
33
|
+
messageHeader: "Message header",
|
32
34
|
message: {
|
33
35
|
summary: "Server message"
|
34
36
|
},
|
@@ -42,6 +44,7 @@ export const WithRequiredActions: Story = {
|
|
42
44
|
render: () => (
|
43
45
|
<KcPageStory
|
44
46
|
kcContext={{
|
47
|
+
messageHeader: "Message header",
|
45
48
|
message: {
|
46
49
|
summary: "Required actions: "
|
47
50
|
},
|
@@ -55,42 +58,3 @@ export const WithRequiredActions: Story = {
|
|
55
58
|
/>
|
56
59
|
)
|
57
60
|
};
|
58
|
-
export const WithPageRedirect: Story = {
|
59
|
-
render: () => (
|
60
|
-
<KcPageStory
|
61
|
-
kcContext={{
|
62
|
-
message: { summary: "You will be redirected shortly." },
|
63
|
-
pageRedirectUri: "https://example.com"
|
64
|
-
}}
|
65
|
-
/>
|
66
|
-
)
|
67
|
-
};
|
68
|
-
export const WithoutClientBaseUrl: Story = {
|
69
|
-
render: () => (
|
70
|
-
<KcPageStory
|
71
|
-
kcContext={{
|
72
|
-
message: { summary: "No client base URL defined." },
|
73
|
-
client: { baseUrl: undefined }
|
74
|
-
}}
|
75
|
-
/>
|
76
|
-
)
|
77
|
-
};
|
78
|
-
export const WithMessageHeader: Story = {
|
79
|
-
render: () => (
|
80
|
-
<KcPageStory
|
81
|
-
kcContext={{
|
82
|
-
messageHeader: "Important Notice",
|
83
|
-
message: { summary: "This is an important message." }
|
84
|
-
}}
|
85
|
-
/>
|
86
|
-
)
|
87
|
-
};
|
88
|
-
export const WithAdvancedMessage: Story = {
|
89
|
-
render: () => (
|
90
|
-
<KcPageStory
|
91
|
-
kcContext={{
|
92
|
-
message: { summary: "Please take note of this <strong>important</strong> information." }
|
93
|
-
}}
|
94
|
-
/>
|
95
|
-
)
|
96
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from "react";
|
2
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
3
|
-
import { createKcPageStory } from "../KcPageStory";
|
4
|
-
|
5
|
-
const { KcPageStory } = createKcPageStory({ pageId: "login-device-verify-user-code.ftl" });
|
6
|
-
|
7
|
-
const meta = {
|
8
|
-
title: "login/login-device-verify-user-code.ftl",
|
9
|
-
component: KcPageStory
|
10
|
-
} satisfies Meta<typeof KcPageStory>;
|
11
|
-
|
12
|
-
export default meta;
|
13
|
-
|
14
|
-
type Story = StoryObj<typeof meta>;
|
15
|
-
|
16
|
-
export const Default: Story = {
|
17
|
-
render: () => <KcPageStory />
|
18
|
-
};
|