keycloakify 10.0.0-rc.107 → 10.0.0-rc.108
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/bin/622.index.js
CHANGED
@@ -58,11 +58,12 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
58
58
|
return;
|
59
59
|
}
|
60
60
|
skip_node_modules: {
|
61
|
-
|
61
|
+
const nodeModulesRelativeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)("keycloak", "common", "resources", "node_modules");
|
62
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
62
63
|
break skip_node_modules;
|
63
64
|
}
|
64
65
|
if (kcNodeModulesKeepFilePaths_lastAccountV1 === undefined) {
|
65
|
-
kcNodeModulesKeepFilePaths_lastAccountV1 = [
|
66
|
+
kcNodeModulesKeepFilePaths_lastAccountV1 = new Set([
|
66
67
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "css", "patternfly.min.css"),
|
67
68
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
|
68
69
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "OpenSans-Regular-webfont.woff2"),
|
@@ -71,12 +72,11 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
71
72
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "OpenSans-Semibold-webfont.woff2"),
|
72
73
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.ttf"),
|
73
74
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.woff")
|
74
|
-
];
|
75
|
+
]);
|
75
76
|
}
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
77
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(nodeModulesRelativeDirPath.length + 1);
|
78
|
+
if (kcNodeModulesKeepFilePaths_lastAccountV1.has(fileRelativeToNodeModulesPath)) {
|
79
|
+
break skip_node_modules;
|
80
80
|
}
|
81
81
|
return;
|
82
82
|
}
|
@@ -99,11 +99,12 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
99
99
|
break skip_unused_resources;
|
100
100
|
}
|
101
101
|
skip_node_modules: {
|
102
|
-
|
102
|
+
const nodeModulesRelativeDirPath = (0,path__WEBPACK_IMPORTED_MODULE_0__.join)("keycloak", "common", "resources", "node_modules");
|
103
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
103
104
|
break skip_node_modules;
|
104
105
|
}
|
105
106
|
if (kcNodeModulesKeepFilePaths === undefined) {
|
106
|
-
kcNodeModulesKeepFilePaths = [
|
107
|
+
kcNodeModulesKeepFilePaths = new Set([
|
107
108
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("@patternfly", "patternfly", "patternfly.min.css"),
|
108
109
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "css", "patternfly.min.css"),
|
109
110
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
|
@@ -115,14 +116,14 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
115
116
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "fontawesome-webfont.woff2"),
|
116
117
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.ttf"),
|
117
118
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.woff"),
|
119
|
+
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "fonts", "OpenSans-Semibold-webfont.woff2"),
|
118
120
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("patternfly", "dist", "img", "bg-login.jpg"),
|
119
121
|
(0,path__WEBPACK_IMPORTED_MODULE_0__.join)("jquery", "dist", "jquery.min.js")
|
120
|
-
];
|
122
|
+
]);
|
121
123
|
}
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
}
|
124
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(nodeModulesRelativeDirPath.length + 1);
|
125
|
+
if (kcNodeModulesKeepFilePaths.has(fileRelativeToNodeModulesPath)) {
|
126
|
+
break skip_node_modules;
|
126
127
|
}
|
127
128
|
return;
|
128
129
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"downloadKeycloakDefaultTheme.js","sourceRoot":"","sources":["../../src/bin/shared/downloadKeycloakDefaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAO/E,MAAM,EAAwD,CAAC;AAE/D,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,MAGlD;IACG,MAAM,EAAE,eAAe,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;IAEjD,IAAI,0BAA0B,
|
1
|
+
{"version":3,"file":"downloadKeycloakDefaultTheme.js","sourceRoot":"","sources":["../../src/bin/shared/downloadKeycloakDefaultTheme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,QAAQ,IAAI,YAAY,EAAE,MAAM,MAAM,CAAC;AAElE,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,gCAAgC,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AAO/E,MA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kcContext["x-keycloakify"] = {
|
|
52
52
|
<#if attribute.displayName??>
|
53
53
|
"${attribute.displayName}": decodeHtmlEntities("${advancedMsg(attribute.displayName)?js_string}"),
|
54
54
|
</#if>
|
55
|
+
<#if attribute.group??>
|
56
|
+
<#if attribute.group.displayDescription??>
|
57
|
+
"${attribute.group.displayDescription}": decodeHtmlEntities("${advancedMsg(attribute.group.displayDescription)?js_string}"),
|
58
|
+
</#if>
|
59
|
+
<#if attribute.group.displayHeader??>
|
60
|
+
"${attribute.group.displayHeader}": decodeHtmlEntities("${advancedMsg(attribute.group.displayHeader)?js_string}"),
|
61
|
+
</#if>
|
62
|
+
</#if>
|
55
63
|
<#if attribute.annotations??>
|
56
64
|
<#if attribute.annotations.inputHelperTextBefore??>
|
57
65
|
"${attribute.annotations.inputHelperTextBefore}": decodeHtmlEntities("${advancedMsg(attribute.annotations.inputHelperTextBefore)?js_string}"),
|
@@ -128,7 +136,7 @@ attributes_to_attributesByName: {
|
|
128
136
|
if( !kcContext.profile.attributes ){
|
129
137
|
break attributes_to_attributesByName;
|
130
138
|
}
|
131
|
-
var attributes =
|
139
|
+
var attributes = kcContext.profile.attributes;
|
132
140
|
delete kcContext.profile.attributes;
|
133
141
|
kcContext.profile.attributesByName = {};
|
134
142
|
attributes.forEach(function(attribute){
|
@@ -17,8 +17,8 @@ export async function downloadKeycloakDefaultTheme(params: {
|
|
17
17
|
}): Promise<{ defaultThemeDirPath: string }> {
|
18
18
|
const { keycloakVersion, buildContext } = params;
|
19
19
|
|
20
|
-
let kcNodeModulesKeepFilePaths: string
|
21
|
-
let kcNodeModulesKeepFilePaths_lastAccountV1: string
|
20
|
+
let kcNodeModulesKeepFilePaths: Set<string> | undefined = undefined;
|
21
|
+
let kcNodeModulesKeepFilePaths_lastAccountV1: Set<string> | undefined = undefined;
|
22
22
|
|
23
23
|
const { extractedDirPath } = await downloadAndExtractArchive({
|
24
24
|
url: `https://repo1.maven.org/maven2/org/keycloak/keycloak-themes/${keycloakVersion}/keycloak-themes-${keycloakVersion}.jar`,
|
@@ -72,16 +72,19 @@ export async function downloadKeycloakDefaultTheme(params: {
|
|
72
72
|
}
|
73
73
|
|
74
74
|
skip_node_modules: {
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
75
|
+
const nodeModulesRelativeDirPath = pathJoin(
|
76
|
+
"keycloak",
|
77
|
+
"common",
|
78
|
+
"resources",
|
79
|
+
"node_modules"
|
80
|
+
);
|
81
|
+
|
82
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
80
83
|
break skip_node_modules;
|
81
84
|
}
|
82
85
|
|
83
86
|
if (kcNodeModulesKeepFilePaths_lastAccountV1 === undefined) {
|
84
|
-
kcNodeModulesKeepFilePaths_lastAccountV1 = [
|
87
|
+
kcNodeModulesKeepFilePaths_lastAccountV1 = new Set([
|
85
88
|
pathJoin("patternfly", "dist", "css", "patternfly.min.css"),
|
86
89
|
pathJoin(
|
87
90
|
"patternfly",
|
@@ -125,13 +128,19 @@ export async function downloadKeycloakDefaultTheme(params: {
|
|
125
128
|
"fonts",
|
126
129
|
"PatternFlyIcons-webfont.woff"
|
127
130
|
)
|
128
|
-
];
|
131
|
+
]);
|
129
132
|
}
|
130
133
|
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
134
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(
|
135
|
+
nodeModulesRelativeDirPath.length + 1
|
136
|
+
);
|
137
|
+
|
138
|
+
if (
|
139
|
+
kcNodeModulesKeepFilePaths_lastAccountV1.has(
|
140
|
+
fileRelativeToNodeModulesPath
|
141
|
+
)
|
142
|
+
) {
|
143
|
+
break skip_node_modules;
|
135
144
|
}
|
136
145
|
|
137
146
|
return;
|
@@ -165,16 +174,19 @@ export async function downloadKeycloakDefaultTheme(params: {
|
|
165
174
|
}
|
166
175
|
|
167
176
|
skip_node_modules: {
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
177
|
+
const nodeModulesRelativeDirPath = pathJoin(
|
178
|
+
"keycloak",
|
179
|
+
"common",
|
180
|
+
"resources",
|
181
|
+
"node_modules"
|
182
|
+
);
|
183
|
+
|
184
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
173
185
|
break skip_node_modules;
|
174
186
|
}
|
175
187
|
|
176
188
|
if (kcNodeModulesKeepFilePaths === undefined) {
|
177
|
-
kcNodeModulesKeepFilePaths = [
|
189
|
+
kcNodeModulesKeepFilePaths = new Set([
|
178
190
|
pathJoin("@patternfly", "patternfly", "patternfly.min.css"),
|
179
191
|
pathJoin("patternfly", "dist", "css", "patternfly.min.css"),
|
180
192
|
pathJoin(
|
@@ -231,15 +243,23 @@ export async function downloadKeycloakDefaultTheme(params: {
|
|
231
243
|
"fonts",
|
232
244
|
"PatternFlyIcons-webfont.woff"
|
233
245
|
),
|
246
|
+
pathJoin(
|
247
|
+
"patternfly",
|
248
|
+
"dist",
|
249
|
+
"fonts",
|
250
|
+
"OpenSans-Semibold-webfont.woff2"
|
251
|
+
),
|
234
252
|
pathJoin("patternfly", "dist", "img", "bg-login.jpg"),
|
235
253
|
pathJoin("jquery", "dist", "jquery.min.js")
|
236
|
-
];
|
254
|
+
]);
|
237
255
|
}
|
238
256
|
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
257
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(
|
258
|
+
nodeModulesRelativeDirPath.length + 1
|
259
|
+
);
|
260
|
+
|
261
|
+
if (kcNodeModulesKeepFilePaths.has(fileRelativeToNodeModulesPath)) {
|
262
|
+
break skip_node_modules;
|
243
263
|
}
|
244
264
|
|
245
265
|
return;
|
package/vite-plugin/index.js
CHANGED
@@ -5135,11 +5135,12 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
5135
5135
|
return;
|
5136
5136
|
}
|
5137
5137
|
skip_node_modules: {
|
5138
|
-
|
5138
|
+
const nodeModulesRelativeDirPath = (0,external_path_.join)("keycloak", "common", "resources", "node_modules");
|
5139
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
5139
5140
|
break skip_node_modules;
|
5140
5141
|
}
|
5141
5142
|
if (kcNodeModulesKeepFilePaths_lastAccountV1 === undefined) {
|
5142
|
-
kcNodeModulesKeepFilePaths_lastAccountV1 = [
|
5143
|
+
kcNodeModulesKeepFilePaths_lastAccountV1 = new Set([
|
5143
5144
|
(0,external_path_.join)("patternfly", "dist", "css", "patternfly.min.css"),
|
5144
5145
|
(0,external_path_.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
|
5145
5146
|
(0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Regular-webfont.woff2"),
|
@@ -5148,12 +5149,11 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
5148
5149
|
(0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Semibold-webfont.woff2"),
|
5149
5150
|
(0,external_path_.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.ttf"),
|
5150
5151
|
(0,external_path_.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.woff")
|
5151
|
-
];
|
5152
|
+
]);
|
5152
5153
|
}
|
5153
|
-
|
5154
|
-
|
5155
|
-
|
5156
|
-
}
|
5154
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(nodeModulesRelativeDirPath.length + 1);
|
5155
|
+
if (kcNodeModulesKeepFilePaths_lastAccountV1.has(fileRelativeToNodeModulesPath)) {
|
5156
|
+
break skip_node_modules;
|
5157
5157
|
}
|
5158
5158
|
return;
|
5159
5159
|
}
|
@@ -5176,11 +5176,12 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
5176
5176
|
break skip_unused_resources;
|
5177
5177
|
}
|
5178
5178
|
skip_node_modules: {
|
5179
|
-
|
5179
|
+
const nodeModulesRelativeDirPath = (0,external_path_.join)("keycloak", "common", "resources", "node_modules");
|
5180
|
+
if (!fileRelativePath.startsWith(nodeModulesRelativeDirPath)) {
|
5180
5181
|
break skip_node_modules;
|
5181
5182
|
}
|
5182
5183
|
if (kcNodeModulesKeepFilePaths === undefined) {
|
5183
|
-
kcNodeModulesKeepFilePaths = [
|
5184
|
+
kcNodeModulesKeepFilePaths = new Set([
|
5184
5185
|
(0,external_path_.join)("@patternfly", "patternfly", "patternfly.min.css"),
|
5185
5186
|
(0,external_path_.join)("patternfly", "dist", "css", "patternfly.min.css"),
|
5186
5187
|
(0,external_path_.join)("patternfly", "dist", "css", "patternfly-additions.min.css"),
|
@@ -5192,14 +5193,14 @@ async function downloadKeycloakDefaultTheme(params) {
|
|
5192
5193
|
(0,external_path_.join)("patternfly", "dist", "fonts", "fontawesome-webfont.woff2"),
|
5193
5194
|
(0,external_path_.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.ttf"),
|
5194
5195
|
(0,external_path_.join)("patternfly", "dist", "fonts", "PatternFlyIcons-webfont.woff"),
|
5196
|
+
(0,external_path_.join)("patternfly", "dist", "fonts", "OpenSans-Semibold-webfont.woff2"),
|
5195
5197
|
(0,external_path_.join)("patternfly", "dist", "img", "bg-login.jpg"),
|
5196
5198
|
(0,external_path_.join)("jquery", "dist", "jquery.min.js")
|
5197
|
-
];
|
5199
|
+
]);
|
5198
5200
|
}
|
5199
|
-
|
5200
|
-
|
5201
|
-
|
5202
|
-
}
|
5201
|
+
const fileRelativeToNodeModulesPath = fileRelativePath.substring(nodeModulesRelativeDirPath.length + 1);
|
5202
|
+
if (kcNodeModulesKeepFilePaths.has(fileRelativeToNodeModulesPath)) {
|
5203
|
+
break skip_node_modules;
|
5203
5204
|
}
|
5204
5205
|
return;
|
5205
5206
|
}
|