@omnia/tooling-vue 8.0.251-dev → 8.0.253-dev
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.
|
@@ -121,7 +121,6 @@ exports.generateComponentTypingsAndDoc = generateComponentTypingsAndDoc;
|
|
|
121
121
|
function generateWebComponentTypings(wc, template, info, elementNamespace) {
|
|
122
122
|
// export default defineVueWebComponent
|
|
123
123
|
const wcPath = wc.componentOptions.entryPointPath;
|
|
124
|
-
const skipElementNameTypings = (0, shared_1.getBuildOption)()?.skipElementNameTypings || [];
|
|
125
124
|
let content = fsExtra.readFileSync(wcPath, 'utf8');
|
|
126
125
|
if (content.indexOf("defineVueComponent") > -1) {
|
|
127
126
|
if (!new RegExp('export\\s+default\\s+').test(content)) {
|
|
@@ -157,18 +156,11 @@ function generateWebComponentTypings(wc, template, info, elementNamespace) {
|
|
|
157
156
|
throw new Error("Exit, have an exception.");
|
|
158
157
|
}
|
|
159
158
|
}
|
|
160
|
-
if (skipElementNameTypings.indexOf(wc.componentOptions.elementName) > -1) {
|
|
161
|
-
return template
|
|
162
|
-
.replace(/\/\/{{importWC}}/, `import ${friendlyManifestId} from '${importPath}';
|
|
163
|
-
//{{importWC}}`);
|
|
164
|
-
}
|
|
165
159
|
return template
|
|
166
160
|
.replace(/\/\/{{importWC}}/, `import ${friendlyManifestId} from '${importPath}';
|
|
167
|
-
//{{importWC}}`)
|
|
168
|
-
|
|
169
|
-
//{{elementName}}`)
|
|
170
|
-
// .replace(/\/\/{{nselementName}}/, `"${elementName}": { new(...args: any[]): { $props: typeof ${friendlyManifestId}.propsDefinition & Omit<VueComponentBaseProps, keyof typeof ${friendlyManifestId}.propsDefinition> } }
|
|
171
|
-
// //{{nselementName}}`)
|
|
161
|
+
//{{importWC}}`);
|
|
162
|
+
// .replace(/\/\/{{elementName}}/, `"${wc.componentOptions.elementName}": typeof ${friendlyManifestId} extends { propsDefinition: infer TProp } ? (TProp & Omit<VueComponentBaseProps, keyof TProp>) : typeof ${friendlyManifestId} extends (...args: any[]) => any ? ExtractJsxProps<Pick<ReturnType<typeof ${friendlyManifestId}>, "propsDefinition">> : never
|
|
163
|
+
// //{{elementName}}`)
|
|
172
164
|
}
|
|
173
165
|
return template;
|
|
174
166
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@omnia/tooling-vue",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.253-dev",
|
|
5
5
|
"description": "Used to bundle and serve manifests web component that build on Vue framework.",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
],
|
|
20
20
|
"author": "Precio Fishbone",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@omnia/fx-models": "8.0.
|
|
23
|
-
"@omnia/tooling-composers": "8.0.
|
|
22
|
+
"@omnia/fx-models": "8.0.253-dev",
|
|
23
|
+
"@omnia/tooling-composers": "8.0.253-dev",
|
|
24
24
|
"@types/mousetrap": "1.5.34",
|
|
25
25
|
"@types/quill": "1.3.6",
|
|
26
26
|
"@types/zepto": "1.0.29",
|