keycloakify 8.0.0-rc.0 → 8.0.0-rc.1

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,6 +125,62 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
125
125
 
126
126
  # Changelog highlights
127
127
 
128
+ ## 5.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.
@@ -483,18 +483,6 @@
483
483
  <#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
484
484
  <#continue>
485
485
  </#if>
486
-
487
- <#if key == "attemptedUsername" && are_same_path(path, ["auth"])>
488
-
489
- <#attempt>
490
- <#-- https://github.com/keycloak/keycloak/blob/3a2bf0c04bcde185e497aaa32d0bb7ab7520cf4a/themes/src/main/resources/theme/base/login/template.ftl#L63 -->
491
- <#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
492
- <#continue>
493
- </#if>
494
- <#recover>
495
- </#attempt>
496
-
497
- </#if>
498
486
 
499
487
  <#attempt>
500
488
  <#if !object[key]??>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "8.0.0-rc.0",
3
+ "version": "8.0.0-rc.1",
4
4
  "description": "Create Keycloak themes using React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -483,18 +483,6 @@
483
483
  <#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
484
484
  <#continue>
485
485
  </#if>
486
-
487
- <#if key == "attemptedUsername" && are_same_path(path, ["auth"])>
488
-
489
- <#attempt>
490
- <#-- https://github.com/keycloak/keycloak/blob/3a2bf0c04bcde185e497aaa32d0bb7ab7520cf4a/themes/src/main/resources/theme/base/login/template.ftl#L63 -->
491
- <#if !(auth?has_content && auth.showUsername() && !auth.showResetCredentials())>
492
- <#continue>
493
- </#if>
494
- <#recover>
495
- </#attempt>
496
-
497
- </#if>
498
486
 
499
487
  <#attempt>
500
488
  <#if !object[key]??>