@keycloakify/svelte 0.1.10 → 0.1.11
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.
|
@@ -673,6 +673,8 @@ async function command(params) {
|
|
|
673
673
|
'GroupLabel.svelte',
|
|
674
674
|
'InputTagSelects.svelte',
|
|
675
675
|
'TextareaTag.svelte',
|
|
676
|
+
'InputFieldByTypeProps.ts',
|
|
677
|
+
'UserProfileFormFieldsProps.ts',
|
|
676
678
|
];
|
|
677
679
|
}
|
|
678
680
|
return [(0,tsafe_capitalize__WEBPACK_IMPORTED_MODULE_6__/* .capitalize */ .Z)((0,_tools_kebabCaseToSnakeCase__WEBPACK_IMPORTED_MODULE_7__/* .kebabCaseToCamelCase */ .b)(pageIdOrComponent)).replace(/ftl$/, 'svelte')];
|
|
@@ -695,7 +697,7 @@ async function command(params) {
|
|
|
695
697
|
let componentCode = fs__WEBPACK_IMPORTED_MODULE_2__.readFileSync((0,path__WEBPACK_IMPORTED_MODULE_3__.join)((0,_tools_getThisCodebaseRootDirPath__WEBPACK_IMPORTED_MODULE_8__/* .getThisCodebaseRootDirPath */ .J)(), 'src', themeType, pagesOrDot, componentBasename))
|
|
696
698
|
.toString('utf8');
|
|
697
699
|
if (userProfileFormFieldsValue) {
|
|
698
|
-
componentCode = componentCode.replace(new RegExp(`from '@keycloakify/svelte/login/components/(${componentBasenames.join('|')})`, 'g'), `from './$1`);
|
|
700
|
+
componentCode = componentCode.replace(new RegExp(`from '@keycloakify/svelte/login/components/(${componentBasenames.join('|').replace(/\.ts/g, '')})`, 'g'), `from './$1`);
|
|
699
701
|
}
|
|
700
702
|
run_prettier: {
|
|
701
703
|
if (!(await (0,_tools_runPrettier__WEBPACK_IMPORTED_MODULE_9__/* .getIsPrettierAvailable */ .L)())) {
|
package/package.json
CHANGED
package/src/bin/eject-page.ts
CHANGED
|
@@ -114,6 +114,8 @@ export async function command(params: { buildContext: BuildContext }) {
|
|
|
114
114
|
'GroupLabel.svelte',
|
|
115
115
|
'InputTagSelects.svelte',
|
|
116
116
|
'TextareaTag.svelte',
|
|
117
|
+
'InputFieldByTypeProps.ts',
|
|
118
|
+
'UserProfileFormFieldsProps.ts',
|
|
117
119
|
];
|
|
118
120
|
}
|
|
119
121
|
|
|
@@ -146,7 +148,10 @@ export async function command(params: { buildContext: BuildContext }) {
|
|
|
146
148
|
.toString('utf8');
|
|
147
149
|
if (userProfileFormFieldsValue) {
|
|
148
150
|
componentCode = componentCode.replace(
|
|
149
|
-
new RegExp(
|
|
151
|
+
new RegExp(
|
|
152
|
+
`from '@keycloakify/svelte/login/components/(${componentBasenames.join('|').replace(/\.ts/g, '')})`,
|
|
153
|
+
'g',
|
|
154
|
+
),
|
|
150
155
|
`from './$1`,
|
|
151
156
|
);
|
|
152
157
|
}
|