keycloakify 2.5.1 → 3.0.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/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ### **3.0.1** (2021-10-17)
2
+
3
+ - Add client.description in type kcContext type def
4
+
5
+ # **3.0.0** (2021-10-16)
6
+
7
+
8
+
9
+ ### **2.5.3** (2021-10-16)
10
+
11
+
12
+
13
+ ### **2.5.2** (2021-10-13)
14
+
15
+
16
+
1
17
  ### **2.5.1** (2021-10-13)
2
18
 
3
19
  - Update tss-react
package/README.md CHANGED
@@ -20,6 +20,12 @@
20
20
  <img src="https://user-images.githubusercontent.com/6702424/110260457-a1c3d380-7fac-11eb-853a-80459b65626b.png">
21
21
  </p>
22
22
 
23
+ **NEW in v3**
24
+
25
+ No breaking changes except that `@emotion/react`, [`tss-react`](https://www.npmjs.com/package/tss-react) and [`powerhooks`](https://www.npmjs.com/package/powerhooks) are now `peerDependencies` instead of being just dependencies.
26
+ It's important to avoid problem when using `keycloakify` alongside [`mui`](https://mui.com) and
27
+ [when passing params from the app to the login page](https://github.com/InseeFrLab/keycloakify#implement-context-persistence-optional).
28
+
23
29
  **NEW in v2.5**
24
30
 
25
31
  - User Profile ([`register-user-profile.ftl`](https://github.com/InseeFrLab/keycloakify/blob/main/src/lib/components/RegisterUserProfile.tsx))
@@ -131,7 +137,7 @@ separate module. Checkout [ts_ci](https://github.com/garronej/ts_ci), it can hel
131
137
  ## Setting up the build tool
132
138
 
133
139
  ```bash
134
- yarn add keycloakify
140
+ yarn add keycloakify @emotion/react tss-react powerhooks
135
141
  ```
136
142
 
137
143
  [`package.json`](https://github.com/garronej/keycloakify-demo-app/blob/main/package.json)
@@ -44,6 +44,7 @@ export declare namespace KcContextBase {
44
44
  client: {
45
45
  clientId: string;
46
46
  name?: string;
47
+ description?: string;
47
48
  };
48
49
  isAppInitiatedAction: boolean;
49
50
  messagesPerField: {
@@ -1 +1 @@
1
- {"version":3,"file":"KcContextBase.js","sourceRoot":"","sources":["../../src/lib/getKcContext/KcContextBase.ts"],"names":[],"mappings":";;AAEA,uCAAsC;AAoQtC,IAAA,eAAM,GAA2C,CAAC"}
1
+ {"version":3,"file":"KcContextBase.js","sourceRoot":"","sources":["../../src/lib/getKcContext/KcContextBase.ts"],"names":[],"mappings":";;AAEA,uCAAsC;AAqQtC,IAAA,eAAM,GAA2C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keycloakify",
3
- "version": "2.5.1",
3
+ "version": "3.0.1",
4
4
  "description": "Keycloak theme generator for Reacts app",
5
5
  "repository": {
6
6
  "type": "git",
@@ -297,7 +297,16 @@
297
297
  "register"
298
298
  ],
299
299
  "homepage": "https://github.com/garronej/keycloakify",
300
+ "peerDependencies": {
301
+ "react": "^16.8.0 || ^17.0.0",
302
+ "tss-react": "^1.1.0",
303
+ "powerhooks": "^0.9.6",
304
+ "@emotion/react": "^11.4.1"
305
+ },
300
306
  "devDependencies": {
307
+ "tss-react": "^1.1.0",
308
+ "@emotion/react": "^11.4.1",
309
+ "powerhooks": "^0.9.6",
301
310
  "@types/node": "^10.0.0",
302
311
  "@types/react": "^17.0.0",
303
312
  "copyfiles": "^2.4.1",
@@ -310,15 +319,12 @@
310
319
  "prettier": "^2.3.0"
311
320
  },
312
321
  "dependencies": {
313
- "@emotion/react": "^11.4.1",
314
322
  "cheerio": "^1.0.0-rc.5",
315
323
  "evt": "2.0.0-beta.38",
316
324
  "minimal-polyfills": "^2.2.1",
317
325
  "path": "^0.12.7",
318
- "powerhooks": "^0.9.3",
319
326
  "react-markdown": "^5.0.3",
320
327
  "scripting-tools": "^0.19.13",
321
- "tsafe": "^0.8.1",
322
- "tss-react": "^1.0.3"
328
+ "tsafe": "^0.8.1"
323
329
  }
324
330
  }
@@ -65,6 +65,7 @@ export declare namespace KcContextBase {
65
65
  client: {
66
66
  clientId: string;
67
67
  name?: string;
68
+ description?: string;
68
69
  };
69
70
  isAppInitiatedAction: boolean;
70
71
  messagesPerField: {