keycloakify 4.5.2 → 4.5.5

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 CHANGED
@@ -1,3 +1,16 @@
1
+ ### **4.5.5** (2022-03-07)
2
+
3
+ - Update tss-react
4
+
5
+ ### **4.5.4** (2022-03-06)
6
+
7
+ - Remove tss-react from peerDependencies (it becomes a dependency)
8
+ - (dev script) Use tsconfig.json to tell we are at the root of the project
9
+
10
+ ### **4.5.3** (2022-01-26)
11
+
12
+ - Themes no longer have to break on minor Keycloakify update
13
+
1
14
  ### **4.5.2** (2022-01-20)
2
15
 
3
16
  - Test container uses Keycloak 16.1.0
package/README.md CHANGED
@@ -30,9 +30,9 @@
30
30
  <img src="https://user-images.githubusercontent.com/6702424/110260457-a1c3d380-7fac-11eb-853a-80459b65626b.png">
31
31
  </p>
32
32
 
33
- > **New in v4.4.0**: Feature [`login-page-expired.ftl`](https://user-images.githubusercontent.com/6702424/147856832-38c042a7-9fc8-473f-9595-e00123095ca6.png).
34
- > Every time a page is added it's a breaking change for non CSS-only theme.
35
- > Change [this](https://github.com/garronej/keycloakify-demo-app/blob/812754109c61157741f4a0b222026deb1538a02d/src/KcApp/KcApp.tsx#L18) and [this](https://github.com/garronej/keycloakify-demo-app/blob/812754109c61157741f4a0b222026deb1538a02d/src/KcApp/KcApp.tsx#L39) to update.
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
36
 
37
37
  # Motivations
38
38
 
@@ -133,7 +133,7 @@ separate module. Checkout [ts_ci](https://github.com/garronej/ts_ci), it can hel
133
133
  ## Setting up the build tool
134
134
 
135
135
  ```bash
136
- yarn add keycloakify @emotion/react tss-react powerhooks
136
+ yarn add keycloakify @emotion/react powerhooks
137
137
  ```
138
138
 
139
139
  [`package.json`](https://github.com/garronej/keycloakify-demo-app/blob/main/package.json)
@@ -257,8 +257,6 @@ WARNING: If you chose to go this way use:
257
257
  }
258
258
  ```
259
259
 
260
- in your `package.json` instead of `^X.Y.Z`. A minor update of Keycloakify might break your app.
261
-
262
260
  ### Hot reload
263
261
 
264
262
  Rebuild the theme each time you make a change to see the result is not practical.
@@ -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, "package.json"))) {
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,cAAc,CAAC,CAAC,EAAE;QACnD,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"}
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.5.2",
3
+ "version": "4.5.5",
4
4
  "description": "Keycloak theme generator for Reacts app",
5
5
  "repository": {
6
6
  "type": "git",
@@ -336,8 +336,7 @@
336
336
  "peerDependencies": {
337
337
  "@emotion/react": "^11.4.1",
338
338
  "powerhooks": "^0.10.0",
339
- "react": "^16.8.0 || ^17.0.0",
340
- "tss-react": "^1.1.0 || ^3.0.0"
339
+ "react": "^16.8.0 || ^17.0.0"
341
340
  },
342
341
  "devDependencies": {
343
342
  "@emotion/react": "^11.4.1",
@@ -351,7 +350,6 @@
351
350
  "properties-parser": "^0.3.1",
352
351
  "react": "^17.0.1",
353
352
  "rimraf": "^3.0.2",
354
- "tss-react": "^3.0.0",
355
353
  "typescript": "^4.2.3"
356
354
  },
357
355
  "dependencies": {
@@ -361,6 +359,7 @@
361
359
  "path-browserify": "^1.0.1",
362
360
  "react-markdown": "^5.0.3",
363
361
  "scripting-tools": "^0.19.13",
364
- "tsafe": "^0.9.0"
362
+ "tsafe": "^0.9.0",
363
+ "tss-react": "^3.5.2"
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, "package.json"))) {
5
+ if (fs.existsSync(path.join(dirPath, "tsconfig.json"))) {
6
6
  return dirPath;
7
7
  }
8
8
  return getProjectRootRec(path.join(dirPath, ".."));