keycloakify 4.5.3 → 4.6.0
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/CHANGELOG.md +13 -0
- package/README.md +17 -8
- package/bin/tools/getProjectRoot.js +1 -1
- package/bin/tools/getProjectRoot.js.map +1 -1
- package/package.json +5 -6
- package/src/bin/tools/getProjectRoot.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
## **4.6.0** (2022-03-07)
|
2
|
+
|
3
|
+
- Remove powerhooks as dev dependency
|
4
|
+
|
5
|
+
### **4.5.5** (2022-03-07)
|
6
|
+
|
7
|
+
- Update tss-react
|
8
|
+
|
9
|
+
### **4.5.4** (2022-03-06)
|
10
|
+
|
11
|
+
- Remove tss-react from peerDependencies (it becomes a dependency)
|
12
|
+
- (dev script) Use tsconfig.json to tell we are at the root of the project
|
13
|
+
|
1
14
|
### **4.5.3** (2022-01-26)
|
2
15
|
|
3
16
|
- Themes no longer have to break on minor Keycloakify update
|
package/README.md
CHANGED
@@ -30,10 +30,6 @@
|
|
30
30
|
<img src="https://user-images.githubusercontent.com/6702424/110260457-a1c3d380-7fac-11eb-853a-80459b65626b.png">
|
31
31
|
</p>
|
32
32
|
|
33
|
-
> There is a new recommended way to setup highly customized theme. See [here](https://github.com/garronej/keycloakify-demo-app/blob/look_and_feel/src/KcApp/KcApp.tsx).
|
34
|
-
> Unlike with [the previous recommended method](https://github.com/garronej/keycloakify-demo-app/blob/a51660578bea15fb3e506b8a2b78e1056c6d68bb/src/KcApp/KcApp.tsx),
|
35
|
-
> with this new method your theme wont break on minor Keycloakify update.
|
36
|
-
|
37
33
|
# Motivations
|
38
34
|
|
39
35
|
Keycloak provides [theme support](https://www.keycloak.org/docs/latest/server_development/#_themes) for web pages. This allows customizing the look and feel of end-user facing pages so they can be integrated with your applications.
|
@@ -133,7 +129,7 @@ separate module. Checkout [ts_ci](https://github.com/garronej/ts_ci), it can hel
|
|
133
129
|
## Setting up the build tool
|
134
130
|
|
135
131
|
```bash
|
136
|
-
yarn add keycloakify @emotion/react
|
132
|
+
yarn add keycloakify @emotion/react
|
137
133
|
```
|
138
134
|
|
139
135
|
[`package.json`](https://github.com/garronej/keycloakify-demo-app/blob/main/package.json)
|
@@ -478,9 +474,22 @@ and `kcRegisterContext["authorizedMailDomains"]` to validate on.
|
|
478
474
|
|
479
475
|
# Changelog highlights
|
480
476
|
|
481
|
-
|
482
|
-
|
483
|
-
|
477
|
+
# v4.6.0
|
478
|
+
|
479
|
+
`tss-react` and `powerhooks` are no longer peer dependencies of `keycloakify`.
|
480
|
+
After updating Keycloakify you can remove `tss-react` and `powerhooks` from your dependencies if you don't use them explicitly.
|
481
|
+
|
482
|
+
## v4.5.3
|
483
|
+
|
484
|
+
There is a new recommended way to setup highly customized theme. See [here](https://github.com/garronej/keycloakify-demo-app/blob/look_and_feel/src/KcApp/KcApp.tsx).
|
485
|
+
Unlike with [the previous recommended method](https://github.com/garronej/keycloakify-demo-app/blob/a51660578bea15fb3e506b8a2b78e1056c6d68bb/src/KcApp/KcApp.tsx),
|
486
|
+
with this new method your theme wont break on minor Keycloakify update.
|
487
|
+
|
488
|
+
## v4.3.0
|
489
|
+
|
490
|
+
Feature [`login-update-password.ftl`](https://user-images.githubusercontent.com/6702424/147517600-6191cf72-93dd-437b-a35c-47180142063e.png).
|
491
|
+
Every time a page is added it's a breaking change for non CSS-only theme.
|
492
|
+
Change [this](https://github.com/garronej/keycloakify-demo-app/blob/df664c13c77ce3c53ac7df0622d94d04e76d3f9f/src/KcApp/KcApp.tsx#L17) and [this](https://github.com/garronej/keycloakify-demo-app/blob/df664c13c77ce3c53ac7df0622d94d04e76d3f9f/src/KcApp/KcApp.tsx#L37) to update.
|
484
493
|
|
485
494
|
## v4
|
486
495
|
|
@@ -23,7 +23,7 @@ exports.getProjectRoot = void 0;
|
|
23
23
|
var fs = __importStar(require("fs"));
|
24
24
|
var path = __importStar(require("path"));
|
25
25
|
function getProjectRootRec(dirPath) {
|
26
|
-
if (fs.existsSync(path.join(dirPath, "
|
26
|
+
if (fs.existsSync(path.join(dirPath, "tsconfig.json"))) {
|
27
27
|
return dirPath;
|
28
28
|
}
|
29
29
|
return getProjectRootRec(path.join(dirPath, ".."));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getProjectRoot.js","sourceRoot":"","sources":["../../src/bin/tools/getProjectRoot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAE7B,SAAS,iBAAiB,CAAC,OAAe;IACtC,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"getProjectRoot.js","sourceRoot":"","sources":["../../src/bin/tools/getProjectRoot.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,qCAAyB;AACzB,yCAA6B;AAE7B,SAAS,iBAAiB,CAAC,OAAe;IACtC,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,EAAE;QACpD,OAAO,OAAO,CAAC;KAClB;IACD,OAAO,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,IAAI,MAAM,GAAuB,SAAS,CAAC;AAE3C,SAAgB,cAAc;IAC1B,IAAI,MAAM,KAAK,SAAS,EAAE;QACtB,OAAO,MAAM,CAAC;KACjB;IAED,OAAO,CAAC,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;AACnD,CAAC;AAND,wCAMC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.6.0",
|
4
4
|
"description": "Keycloak theme generator for Reacts app",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -335,9 +335,7 @@
|
|
335
335
|
"homepage": "https://github.com/garronej/keycloakify",
|
336
336
|
"peerDependencies": {
|
337
337
|
"@emotion/react": "^11.4.1",
|
338
|
-
"
|
339
|
-
"react": "^16.8.0 || ^17.0.0",
|
340
|
-
"tss-react": "^1.1.0 || ^3.0.0"
|
338
|
+
"react": "^16.8.0 || ^17.0.0"
|
341
339
|
},
|
342
340
|
"devDependencies": {
|
343
341
|
"@emotion/react": "^11.4.1",
|
@@ -351,7 +349,6 @@
|
|
351
349
|
"properties-parser": "^0.3.1",
|
352
350
|
"react": "^17.0.1",
|
353
351
|
"rimraf": "^3.0.2",
|
354
|
-
"tss-react": "^3.0.0",
|
355
352
|
"typescript": "^4.2.3"
|
356
353
|
},
|
357
354
|
"dependencies": {
|
@@ -361,6 +358,8 @@
|
|
361
358
|
"path-browserify": "^1.0.1",
|
362
359
|
"react-markdown": "^5.0.3",
|
363
360
|
"scripting-tools": "^0.19.13",
|
364
|
-
"tsafe": "^0.9.0"
|
361
|
+
"tsafe": "^0.9.0",
|
362
|
+
"tss-react": "^3.5.2",
|
363
|
+
"powerhooks": "^0.14.0"
|
365
364
|
}
|
366
365
|
}
|
@@ -2,7 +2,7 @@ import * as fs from "fs";
|
|
2
2
|
import * as path from "path";
|
3
3
|
|
4
4
|
function getProjectRootRec(dirPath: string): string {
|
5
|
-
if (fs.existsSync(path.join(dirPath, "
|
5
|
+
if (fs.existsSync(path.join(dirPath, "tsconfig.json"))) {
|
6
6
|
return dirPath;
|
7
7
|
}
|
8
8
|
return getProjectRootRec(path.join(dirPath, ".."));
|