keycloakify 10.0.0-rc.76 → 10.0.0-rc.77
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/453.index.js +3 -2
- package/package.json +1 -1
- package/src/bin/eject-page.ts +4 -5
package/bin/453.index.js
CHANGED
@@ -124,6 +124,7 @@ async function command(params) {
|
|
124
124
|
return;
|
125
125
|
}
|
126
126
|
const userProfileFormFieldComponentName = "UserProfileFormFields";
|
127
|
+
const componentName = componentBasename.replace(/.tsx$/, "");
|
127
128
|
console.log([
|
128
129
|
``,
|
129
130
|
`You now need to update your page router:`,
|
@@ -132,7 +133,7 @@ async function command(params) {
|
|
132
133
|
chalk__WEBPACK_IMPORTED_MODULE_9___default().grey("```"),
|
133
134
|
`// ...`,
|
134
135
|
``,
|
135
|
-
chalk__WEBPACK_IMPORTED_MODULE_9___default().green(`+const ${
|
136
|
+
chalk__WEBPACK_IMPORTED_MODULE_9___default().green(`+const ${componentName} = lazy(() => import("./pages/${componentName}"));`),
|
136
137
|
...[
|
137
138
|
``,
|
138
139
|
` export default function KcPage(props: { kcContext: KcContext; }) {`,
|
@@ -145,7 +146,7 @@ async function command(params) {
|
|
145
146
|
` switch (kcContext.pageId) {`,
|
146
147
|
` // ...`,
|
147
148
|
`+ case "${pageIdOrComponent}": return (`,
|
148
|
-
`+ <${
|
149
|
+
`+ <${componentName}`,
|
149
150
|
`+ {...{ kcContext, i18n, classes }}`,
|
150
151
|
`+ Template={Template}`,
|
151
152
|
`+ doUseDefaultCss={true}`,
|
package/package.json
CHANGED
package/src/bin/eject-page.ts
CHANGED
@@ -190,6 +190,8 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|
190
190
|
|
191
191
|
const userProfileFormFieldComponentName = "UserProfileFormFields";
|
192
192
|
|
193
|
+
const componentName = componentBasename.replace(/.tsx$/, "");
|
194
|
+
|
193
195
|
console.log(
|
194
196
|
[
|
195
197
|
``,
|
@@ -207,10 +209,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|
207
209
|
`// ...`,
|
208
210
|
``,
|
209
211
|
chalk.green(
|
210
|
-
`+const ${
|
211
|
-
/.tsx$/,
|
212
|
-
""
|
213
|
-
)} = lazy(() => import("./pages/${componentBasename}"));`
|
212
|
+
`+const ${componentName} = lazy(() => import("./pages/${componentName}"));`
|
214
213
|
),
|
215
214
|
...[
|
216
215
|
``,
|
@@ -224,7 +223,7 @@ export async function command(params: { cliCommandOptions: CliCommandOptions })
|
|
224
223
|
` switch (kcContext.pageId) {`,
|
225
224
|
` // ...`,
|
226
225
|
`+ case "${pageIdOrComponent}": return (`,
|
227
|
-
`+ <${
|
226
|
+
`+ <${componentName}`,
|
228
227
|
`+ {...{ kcContext, i18n, classes }}`,
|
229
228
|
`+ Template={Template}`,
|
230
229
|
`+ doUseDefaultCss={true}`,
|