keycloakify 8.0.0-rc.0 → 8.0.0-rc.2
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/README.md
CHANGED
@@ -125,15 +125,71 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
125
125
|
|
126
126
|
# Changelog highlights
|
127
127
|
|
128
|
+
## 8.0 (candidate)
|
129
|
+
|
130
|
+
- Much smaller .jar size. 70.2 MB -> 7.8 MB.
|
131
|
+
Keycloakify now detects which of the static resources from the default theme are actually used by your theme and only include those in the .jar.
|
132
|
+
- Build time: The first build is slowed but the subsequent build are faster. Update your CI so that nodes_modules/.cache is not deleted between builds.
|
133
|
+
|
134
|
+
### Breaking changes
|
135
|
+
|
136
|
+
There are very few breaking changes in this major version.
|
137
|
+
|
138
|
+
- The [`--external-assets` build option has been removed](https://docs.keycloakify.dev/v/v7/build-options#external-assets-deprecated) it was a performance optimization that is no longer relevant now that
|
139
|
+
we have lazy loading.
|
140
|
+
|
141
|
+
- The `usePrepareTemplate` prototype has been changed, you can search and replace:
|
142
|
+
|
143
|
+
`src/keycloak-theme/login/Template.tsx`
|
144
|
+
|
145
|
+
```ts
|
146
|
+
"stylesCommon": [
|
147
|
+
"node_modules/patternfly/dist/css/patternfly.min.css",
|
148
|
+
"node_modules/patternfly/dist/css/patternfly-additions.min.css",
|
149
|
+
"lib/zocial/zocial.css"
|
150
|
+
],
|
151
|
+
"styles": ["css/login.css"],
|
152
|
+
```
|
153
|
+
|
154
|
+
by
|
155
|
+
|
156
|
+
```ts
|
157
|
+
"styles": [
|
158
|
+
`${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,
|
159
|
+
`${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,
|
160
|
+
`${url.resourcesCommonPath}/lib/zocial/zocial.css`,
|
161
|
+
`${url.resourcesPath}/css/login.css`
|
162
|
+
],
|
163
|
+
```
|
164
|
+
|
165
|
+
and
|
166
|
+
|
167
|
+
`src/keycloak-theme/account/Template.css`
|
168
|
+
|
169
|
+
```ts
|
170
|
+
"stylesCommon": ["node_modules/patternfly/dist/css/patternfly.min.css", "node_modules/patternfly/dist/css/patternfly-additions.min.css"],
|
171
|
+
"styles": ["css/account.css"],
|
172
|
+
```
|
173
|
+
|
174
|
+
by
|
175
|
+
|
176
|
+
```ts
|
177
|
+
"styles": [
|
178
|
+
`${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly.min.css`,
|
179
|
+
`${url.resourcesCommonPath}/node_modules/patternfly/dist/css/patternfly-additions.min.css`,
|
180
|
+
`${url.resourcesPath}/css/account.css`
|
181
|
+
],
|
182
|
+
```
|
183
|
+
|
128
184
|
## 7.15
|
129
185
|
|
130
186
|
- The i18n messages you defines in your theme are now also maid available to Keycloak.
|
131
187
|
In practice this mean that you can now customize the `kcContext.message.summary` that
|
132
188
|
display a general alert and the values returned by `kcContext.messagesPerField.get()` that
|
133
|
-
are used to display specific error on some field of the form.
|
189
|
+
are used to display specific error on some field of the form.
|
134
190
|
[See video](https://youtu.be/D6tZcemReTI)
|
135
191
|
|
136
|
-
##
|
192
|
+
## 7.14
|
137
193
|
|
138
194
|
- Deprecate the `extraPages` build option. Keycloakify is now able to analyze your code to detect extra pages.
|
139
195
|
|
@@ -484,16 +484,15 @@
|
|
484
484
|
<#continue>
|
485
485
|
</#if>
|
486
486
|
|
487
|
-
<#if key == "attemptedUsername" && are_same_path(path, ["auth"])>
|
488
|
-
|
487
|
+
<#if pageId == "register.ftl" && key == "attemptedUsername" && are_same_path(path, ["auth"])>
|
489
488
|
<#attempt>
|
490
489
|
<#-- https://github.com/keycloak/keycloak/blob/3a2bf0c04bcde185e497aaa32d0bb7ab7520cf4a/themes/src/main/resources/theme/base/login/template.ftl#L63 -->
|
490
|
+
<#-- https://github.com/keycloakify/keycloakify/discussions/406 -->
|
491
491
|
<#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
|
492
492
|
<#continue>
|
493
493
|
</#if>
|
494
494
|
<#recover>
|
495
495
|
</#attempt>
|
496
|
-
|
497
496
|
</#if>
|
498
497
|
|
499
498
|
<#attempt>
|
package/package.json
CHANGED
@@ -484,16 +484,15 @@
|
|
484
484
|
<#continue>
|
485
485
|
</#if>
|
486
486
|
|
487
|
-
<#if key == "attemptedUsername" && are_same_path(path, ["auth"])>
|
488
|
-
|
487
|
+
<#if pageId == "register.ftl" && key == "attemptedUsername" && are_same_path(path, ["auth"])>
|
489
488
|
<#attempt>
|
490
489
|
<#-- https://github.com/keycloak/keycloak/blob/3a2bf0c04bcde185e497aaa32d0bb7ab7520cf4a/themes/src/main/resources/theme/base/login/template.ftl#L63 -->
|
490
|
+
<#-- https://github.com/keycloakify/keycloakify/discussions/406 -->
|
491
491
|
<#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
|
492
492
|
<#continue>
|
493
493
|
</#if>
|
494
494
|
<#recover>
|
495
495
|
</#attempt>
|
496
|
-
|
497
496
|
</#if>
|
498
497
|
|
499
498
|
<#attempt>
|