@keycloakify/angular 0.1.2 → 0.1.4
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/bin/84.index.js +51 -39
- package/package.json +1 -1
- package/src/bin/eject-page.ts +52 -40
- package/src/bin/initialize-account-theme/boilerplate/KcPageStory.ts +1 -1
- package/stories/account/pages/account.stories.ts +6 -6
- package/stories/account/pages/applications.stories.ts +6 -7
- package/stories/account/pages/federated-identity.stories.ts +3 -3
- package/stories/account/pages/log.stories.ts +6 -6
- package/stories/account/pages/password.stories.ts +37 -45
- package/stories/account/pages/sessions.stories.ts +6 -6
- package/stories/account/pages/totp.stories.ts +2 -2
- package/stories/login/pages/code.stories.ts +3 -3
- package/stories/login/pages/delete-account-confirm.stories.ts +3 -3
- package/stories/login/pages/delete-credential.stories.ts +4 -4
- package/stories/login/pages/error.stories.ts +4 -4
- package/stories/login/pages/frontchannel-logout.stories.ts +1 -1
- package/stories/login/pages/idp-review-user-profile.stories.ts +3 -3
- package/stories/login/pages/info.stories.ts +7 -7
- package/stories/login/pages/login-config-totp.stories.ts +4 -4
- package/stories/login/pages/login-idp-link-confirm.stories.ts +4 -4
- package/stories/login/pages/login-idp-link-email.stories.ts +4 -4
- package/stories/login/pages/login-oauth-grant.stories.ts +3 -3
- package/stories/login/pages/login-otp.stories.ts +4 -4
- package/stories/login/pages/login-page-expired.stories.ts +1 -1
- package/stories/login/pages/login-password.stories.ts +2 -2
- package/stories/login/pages/login-recovery-authn-code-config.stories.ts +1 -1
- package/stories/login/pages/login-reset-otp.stories.ts +3 -3
- package/stories/login/pages/login-reset-password.stories.ts +2 -2
- package/stories/login/pages/login-update-password.stories.ts +2 -2
- package/stories/login/pages/login-update-profile.stories.ts +1 -1
- package/stories/login/pages/login-username.stories.ts +1 -1
- package/stories/login/pages/login-verify-email.stories.ts +4 -4
- package/stories/login/pages/login-x509-info.stories.ts +1 -1
- package/stories/login/pages/login.stories.ts +14 -14
- package/stories/login/pages/logout-confirm.stories.ts +1 -1
- package/stories/login/pages/register.stories.ts +13 -13
- package/stories/login/pages/select-authenticator.stories.ts +3 -3
- package/stories/login/pages/terms.stories.ts +4 -4
- package/stories/login/pages/update-email.stories.ts +1 -1
- package/stories/login/pages/webauthn-authenticate.stories.ts +4 -4
- package/stories/login/pages/webauthn-error.stories.ts +3 -3
- package/stories/login/pages/webauthn-register.stories.ts +2 -2
|
@@ -19,7 +19,7 @@ export const Default: Story = {};
|
|
|
19
19
|
|
|
20
20
|
export const WithEmailAlreadyExists: Story = {
|
|
21
21
|
globals: {
|
|
22
|
-
|
|
22
|
+
kcContext: {
|
|
23
23
|
messagesPerField: {
|
|
24
24
|
existsError: (fieldName: string, ...otherFieldNames: string[]) =>
|
|
25
25
|
[fieldName, ...otherFieldNames].includes('email'),
|
|
@@ -32,7 +32,7 @@ export const WithEmailAlreadyExists: Story = {
|
|
|
32
32
|
|
|
33
33
|
export const WithRestrictedToMITStudents: Story = {
|
|
34
34
|
globals: {
|
|
35
|
-
|
|
35
|
+
kcContext: {
|
|
36
36
|
'x-keycloakify': {
|
|
37
37
|
messages: {
|
|
38
38
|
'profile.attributes.email.inputHelperTextBefore':
|
|
@@ -47,7 +47,7 @@ export const WithRestrictedToMITStudents: Story = {
|
|
|
47
47
|
|
|
48
48
|
export const WithFavoritePet: Story = {
|
|
49
49
|
globals: {
|
|
50
|
-
|
|
50
|
+
kcContext: {
|
|
51
51
|
profile: {
|
|
52
52
|
attributesByName: {
|
|
53
53
|
favoritePet: {
|
|
@@ -81,7 +81,7 @@ export const WithFavoritePet: Story = {
|
|
|
81
81
|
|
|
82
82
|
export const WithNewsletter: Story = {
|
|
83
83
|
globals: {
|
|
84
|
-
|
|
84
|
+
kcContext: {
|
|
85
85
|
profile: {
|
|
86
86
|
attributesByName: {
|
|
87
87
|
newsletter: {
|
|
@@ -109,7 +109,7 @@ export const WithNewsletter: Story = {
|
|
|
109
109
|
|
|
110
110
|
export const WithEmailAsUsername: Story = {
|
|
111
111
|
globals: {
|
|
112
|
-
|
|
112
|
+
kcContext: {
|
|
113
113
|
realm: {
|
|
114
114
|
registrationEmailAsUsername: true
|
|
115
115
|
},
|
|
@@ -124,7 +124,7 @@ export const WithEmailAsUsername: Story = {
|
|
|
124
124
|
|
|
125
125
|
export const WithRecaptcha: Story = {
|
|
126
126
|
globals: {
|
|
127
|
-
|
|
127
|
+
kcContext: {
|
|
128
128
|
scripts: ['https://www.google.com/recaptcha/api.js?hl=en'],
|
|
129
129
|
recaptchaRequired: true,
|
|
130
130
|
recaptchaSiteKey: '6LfQHvApAAAAAE73SYTd5vS0lB1Xr7zdiQ-6iBVa'
|
|
@@ -134,7 +134,7 @@ export const WithRecaptcha: Story = {
|
|
|
134
134
|
|
|
135
135
|
export const WithRecaptchaFrench: Story = {
|
|
136
136
|
globals: {
|
|
137
|
-
|
|
137
|
+
kcContext: {
|
|
138
138
|
locale: {
|
|
139
139
|
currentLanguageTag: 'fr'
|
|
140
140
|
},
|
|
@@ -147,7 +147,7 @@ export const WithRecaptchaFrench: Story = {
|
|
|
147
147
|
|
|
148
148
|
export const WithPasswordMinLength8: Story = {
|
|
149
149
|
globals: {
|
|
150
|
-
|
|
150
|
+
kcContext: {
|
|
151
151
|
passwordPolicies: {
|
|
152
152
|
length: 8
|
|
153
153
|
}
|
|
@@ -157,7 +157,7 @@ export const WithPasswordMinLength8: Story = {
|
|
|
157
157
|
|
|
158
158
|
export const WithTermsAcceptance: Story = {
|
|
159
159
|
globals: {
|
|
160
|
-
|
|
160
|
+
kcContext: {
|
|
161
161
|
termsAcceptanceRequired: true,
|
|
162
162
|
'x-keycloakify': {
|
|
163
163
|
messages: {
|
|
@@ -171,7 +171,7 @@ export const WithTermsAcceptance: Story = {
|
|
|
171
171
|
|
|
172
172
|
export const WithTermsNotAccepted: Story = {
|
|
173
173
|
globals: {
|
|
174
|
-
|
|
174
|
+
kcContext: {
|
|
175
175
|
termsAcceptanceRequired: true,
|
|
176
176
|
messagesPerField: {
|
|
177
177
|
existsError: (fieldName: string) => fieldName === 'termsAccepted',
|
|
@@ -184,7 +184,7 @@ export const WithTermsNotAccepted: Story = {
|
|
|
184
184
|
|
|
185
185
|
export const WithFieldErrors: Story = {
|
|
186
186
|
globals: {
|
|
187
|
-
|
|
187
|
+
kcContext: {
|
|
188
188
|
profile: {
|
|
189
189
|
attributesByName: {
|
|
190
190
|
username: { value: '' },
|
|
@@ -206,7 +206,7 @@ export const WithFieldErrors: Story = {
|
|
|
206
206
|
|
|
207
207
|
export const WithReadOnlyFields: Story = {
|
|
208
208
|
globals: {
|
|
209
|
-
|
|
209
|
+
kcContext: {
|
|
210
210
|
profile: {
|
|
211
211
|
attributesByName: {
|
|
212
212
|
username: { value: 'johndoe', readOnly: true },
|
|
@@ -219,7 +219,7 @@ export const WithReadOnlyFields: Story = {
|
|
|
219
219
|
|
|
220
220
|
export const WithAutoGeneratedUsername: Story = {
|
|
221
221
|
globals: {
|
|
222
|
-
|
|
222
|
+
kcContext: {
|
|
223
223
|
profile: {
|
|
224
224
|
attributesByName: {
|
|
225
225
|
username: { value: 'autogenerated_username' }
|
|
@@ -18,7 +18,7 @@ export const Default: Story = {};
|
|
|
18
18
|
|
|
19
19
|
export const WithDifferentAuthenticationMethods: Story = {
|
|
20
20
|
globals: {
|
|
21
|
-
|
|
21
|
+
kcContext: {
|
|
22
22
|
auth: {
|
|
23
23
|
authenticationSelections: [
|
|
24
24
|
{
|
|
@@ -41,7 +41,7 @@ export const WithDifferentAuthenticationMethods: Story = {
|
|
|
41
41
|
|
|
42
42
|
export const WithRealmTranslations: Story = {
|
|
43
43
|
globals: {
|
|
44
|
-
|
|
44
|
+
kcContext: {
|
|
45
45
|
auth: {
|
|
46
46
|
authenticationSelections: [
|
|
47
47
|
{
|
|
@@ -83,7 +83,7 @@ export const WithRealmTranslations: Story = {
|
|
|
83
83
|
|
|
84
84
|
export const WithoutAuthenticationSelections: Story = {
|
|
85
85
|
globals: {
|
|
86
|
-
|
|
86
|
+
kcContext: {
|
|
87
87
|
url: {
|
|
88
88
|
loginAction: '/mock-login-action'
|
|
89
89
|
},
|
|
@@ -16,7 +16,7 @@ type Story = StoryObj<KcPageStory>;
|
|
|
16
16
|
|
|
17
17
|
export const Default: Story = {
|
|
18
18
|
globals: {
|
|
19
|
-
|
|
19
|
+
kcContext: {
|
|
20
20
|
'x-keycloakify': {
|
|
21
21
|
messages: {
|
|
22
22
|
termsText: '<p>My terms in <strong>English</strong></p>'
|
|
@@ -28,7 +28,7 @@ export const Default: Story = {
|
|
|
28
28
|
|
|
29
29
|
export const French: Story = {
|
|
30
30
|
globals: {
|
|
31
|
-
|
|
31
|
+
kcContext: {
|
|
32
32
|
locale: {
|
|
33
33
|
currentLanguageTag: 'fr'
|
|
34
34
|
},
|
|
@@ -43,7 +43,7 @@ export const French: Story = {
|
|
|
43
43
|
|
|
44
44
|
export const Spanish: Story = {
|
|
45
45
|
globals: {
|
|
46
|
-
|
|
46
|
+
kcContext: {
|
|
47
47
|
locale: {
|
|
48
48
|
currentLanguageTag: 'es'
|
|
49
49
|
},
|
|
@@ -58,7 +58,7 @@ export const Spanish: Story = {
|
|
|
58
58
|
|
|
59
59
|
export const LongMessage: Story = {
|
|
60
60
|
globals: {
|
|
61
|
-
|
|
61
|
+
kcContext: {
|
|
62
62
|
'x-keycloakify': {
|
|
63
63
|
messages: {
|
|
64
64
|
termsText: `
|
|
@@ -18,7 +18,7 @@ export const Default: Story = {};
|
|
|
18
18
|
|
|
19
19
|
export const WithMultipleAuthenticators: Story = {
|
|
20
20
|
globals: {
|
|
21
|
-
|
|
21
|
+
kcContext: {
|
|
22
22
|
url: {
|
|
23
23
|
loginAction: '/mock-login-action'
|
|
24
24
|
},
|
|
@@ -51,7 +51,7 @@ export const WithMultipleAuthenticators: Story = {
|
|
|
51
51
|
|
|
52
52
|
export const WithSingleAuthenticator: Story = {
|
|
53
53
|
globals: {
|
|
54
|
-
|
|
54
|
+
kcContext: {
|
|
55
55
|
url: {
|
|
56
56
|
loginAction: '/mock-login-action'
|
|
57
57
|
},
|
|
@@ -75,7 +75,7 @@ export const WithSingleAuthenticator: Story = {
|
|
|
75
75
|
|
|
76
76
|
export const WithErrorDuringAuthentication: Story = {
|
|
77
77
|
globals: {
|
|
78
|
-
|
|
78
|
+
kcContext: {
|
|
79
79
|
url: {
|
|
80
80
|
loginAction: '/mock-login-action'
|
|
81
81
|
},
|
|
@@ -103,7 +103,7 @@ export const WithErrorDuringAuthentication: Story = {
|
|
|
103
103
|
|
|
104
104
|
export const WithJavaScriptDisabled: Story = {
|
|
105
105
|
globals: {
|
|
106
|
-
|
|
106
|
+
kcContext: {
|
|
107
107
|
url: {
|
|
108
108
|
loginAction: '/mock-login-action'
|
|
109
109
|
},
|
|
@@ -18,7 +18,7 @@ export const Default: Story = {};
|
|
|
18
18
|
|
|
19
19
|
export const WithRetryAvailable: Story = {
|
|
20
20
|
globals: {
|
|
21
|
-
|
|
21
|
+
kcContext: {
|
|
22
22
|
url: {
|
|
23
23
|
loginAction: '/mock-login-action'
|
|
24
24
|
},
|
|
@@ -33,7 +33,7 @@ export const WithRetryAvailable: Story = {
|
|
|
33
33
|
|
|
34
34
|
export const WithAppInitiatedAction: Story = {
|
|
35
35
|
globals: {
|
|
36
|
-
|
|
36
|
+
kcContext: {
|
|
37
37
|
url: {
|
|
38
38
|
loginAction: '/mock-login-action'
|
|
39
39
|
},
|
|
@@ -48,7 +48,7 @@ export const WithAppInitiatedAction: Story = {
|
|
|
48
48
|
|
|
49
49
|
export const WithJavaScriptDisabled: Story = {
|
|
50
50
|
globals: {
|
|
51
|
-
|
|
51
|
+
kcContext: {
|
|
52
52
|
url: {
|
|
53
53
|
loginAction: '/mock-login-action'
|
|
54
54
|
},
|
|
@@ -18,7 +18,7 @@ export const Default: Story = {};
|
|
|
18
18
|
|
|
19
19
|
export const WithRetryAvailable: Story = {
|
|
20
20
|
globals: {
|
|
21
|
-
|
|
21
|
+
kcContext: {
|
|
22
22
|
url: {
|
|
23
23
|
loginAction: '/mock-login-action'
|
|
24
24
|
},
|
|
@@ -30,7 +30,7 @@ export const WithRetryAvailable: Story = {
|
|
|
30
30
|
|
|
31
31
|
export const WithErrorDuringRegistration: Story = {
|
|
32
32
|
globals: {
|
|
33
|
-
|
|
33
|
+
kcContext: {
|
|
34
34
|
url: {
|
|
35
35
|
loginAction: '/mock-login-action'
|
|
36
36
|
},
|