keycloakify 5.6.0 → 5.6.3
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,21 @@
|
|
1
|
+
### **5.6.3** (2022-07-03)
|
2
|
+
|
3
|
+
- update powerhooks
|
4
|
+
|
5
|
+
### **5.6.2** (2022-07-03)
|
6
|
+
|
7
|
+
- Update powerhooks and EVT
|
8
|
+
|
9
|
+
### **5.6.1** (2022-07-03)
|
10
|
+
|
11
|
+
- Merge pull request #128 from Ann2827/pull
|
12
|
+
|
13
|
+
Fix bugs on error.ftl template
|
14
|
+
- fix: bugs on error.ftl template
|
15
|
+
- Merge pull request #52 from InseeFrLab/main
|
16
|
+
|
17
|
+
Update fork
|
18
|
+
|
1
19
|
## **5.6.0** (2022-06-28)
|
2
20
|
|
3
21
|
- Merge pull request #127 from aidangilmore/add-totp-support
|
@@ -30,6 +30,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
30
30
|
</#attempt>
|
31
31
|
|
32
32
|
"printIfExists": function (fieldName, x) {
|
33
|
+
<#if !messagesPerField?? >
|
34
|
+
return undefined;
|
35
|
+
</#if>
|
33
36
|
<#list fieldNames as fieldName>
|
34
37
|
if(fieldName === "${fieldName}" ){
|
35
38
|
<#attempt>
|
@@ -41,6 +44,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
41
44
|
throw new Error("There is no " + fieldName + " field");
|
42
45
|
},
|
43
46
|
"existsError": function (fieldName) {
|
47
|
+
<#if !messagesPerField?? >
|
48
|
+
return false;
|
49
|
+
</#if>
|
44
50
|
<#list fieldNames as fieldName>
|
45
51
|
if(fieldName === "${fieldName}" ){
|
46
52
|
<#attempt>
|
@@ -52,6 +58,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
52
58
|
throw new Error("There is no " + fieldName + " field");
|
53
59
|
},
|
54
60
|
"get": function (fieldName) {
|
61
|
+
<#if !messagesPerField?? >
|
62
|
+
return '';
|
63
|
+
</#if>
|
55
64
|
<#list fieldNames as fieldName>
|
56
65
|
if(fieldName === "${fieldName}" ){
|
57
66
|
<#attempt>
|
@@ -65,6 +74,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
65
74
|
throw new Error("There is no " + fieldName + " field");
|
66
75
|
},
|
67
76
|
"exists": function (fieldName) {
|
77
|
+
<#if !messagesPerField?? >
|
78
|
+
return false;
|
79
|
+
</#if>
|
68
80
|
<#list fieldNames as fieldName>
|
69
81
|
if(fieldName === "${fieldName}" ){
|
70
82
|
<#attempt>
|
@@ -137,6 +149,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
137
149
|
key == "identityProviderBrokerCtx" &&
|
138
150
|
are_same_path(path, []) &&
|
139
151
|
["login-idp-link-confirm.ftl", "login-idp-link-email.ftl" ]?seq_contains(pageId)
|
152
|
+
) || (
|
153
|
+
["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) &&
|
154
|
+
are_same_path(path, ["realm"])
|
140
155
|
)
|
141
156
|
>
|
142
157
|
<#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "keycloakify",
|
3
|
-
"version": "5.6.
|
3
|
+
"version": "5.6.3",
|
4
4
|
"description": "Keycloak theme generator for Reacts app",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -374,11 +374,11 @@
|
|
374
374
|
"@octokit/rest": "^18.12.0",
|
375
375
|
"cheerio": "^1.0.0-rc.5",
|
376
376
|
"cli-select": "^1.1.2",
|
377
|
-
"evt": "2.0.0-beta.
|
377
|
+
"evt": "2.0.0-beta.45",
|
378
378
|
"memoizee": "^0.4.15",
|
379
379
|
"minimal-polyfills": "^2.2.1",
|
380
380
|
"path-browserify": "^1.0.1",
|
381
|
-
"powerhooks": "^0.20.
|
381
|
+
"powerhooks": "^0.20.3",
|
382
382
|
"react-markdown": "^5.0.3",
|
383
383
|
"scripting-tools": "^0.19.13",
|
384
384
|
"tsafe": "^0.10.0",
|
package/src/bin/build-keycloak-theme/generateFtl/ftl_object_to_js_code_declaring_an_object.ftl
CHANGED
@@ -30,6 +30,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
30
30
|
</#attempt>
|
31
31
|
|
32
32
|
"printIfExists": function (fieldName, x) {
|
33
|
+
<#if !messagesPerField?? >
|
34
|
+
return undefined;
|
35
|
+
</#if>
|
33
36
|
<#list fieldNames as fieldName>
|
34
37
|
if(fieldName === "${fieldName}" ){
|
35
38
|
<#attempt>
|
@@ -41,6 +44,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
41
44
|
throw new Error("There is no " + fieldName + " field");
|
42
45
|
},
|
43
46
|
"existsError": function (fieldName) {
|
47
|
+
<#if !messagesPerField?? >
|
48
|
+
return false;
|
49
|
+
</#if>
|
44
50
|
<#list fieldNames as fieldName>
|
45
51
|
if(fieldName === "${fieldName}" ){
|
46
52
|
<#attempt>
|
@@ -52,6 +58,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
52
58
|
throw new Error("There is no " + fieldName + " field");
|
53
59
|
},
|
54
60
|
"get": function (fieldName) {
|
61
|
+
<#if !messagesPerField?? >
|
62
|
+
return '';
|
63
|
+
</#if>
|
55
64
|
<#list fieldNames as fieldName>
|
56
65
|
if(fieldName === "${fieldName}" ){
|
57
66
|
<#attempt>
|
@@ -65,6 +74,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
65
74
|
throw new Error("There is no " + fieldName + " field");
|
66
75
|
},
|
67
76
|
"exists": function (fieldName) {
|
77
|
+
<#if !messagesPerField?? >
|
78
|
+
return false;
|
79
|
+
</#if>
|
68
80
|
<#list fieldNames as fieldName>
|
69
81
|
if(fieldName === "${fieldName}" ){
|
70
82
|
<#attempt>
|
@@ -137,6 +149,9 @@ ${ftl_object_to_js_code_declaring_an_object(.data_model, [])?no_esc};
|
|
137
149
|
key == "identityProviderBrokerCtx" &&
|
138
150
|
are_same_path(path, []) &&
|
139
151
|
["login-idp-link-confirm.ftl", "login-idp-link-email.ftl" ]?seq_contains(pageId)
|
152
|
+
) || (
|
153
|
+
["masterAdminClient", "delegateForUpdate", "defaultRole"]?seq_contains(key) &&
|
154
|
+
are_same_path(path, ["realm"])
|
140
155
|
)
|
141
156
|
>
|
142
157
|
<#local out_seq += ["/*If you need '" + key + "' on " + pageId + ", please submit an issue to the Keycloakify repo*/"]>
|