@zeus-js/output-vue-wrapper 0.1.0-beta.5 → 0.1.0-beta.6
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/dist/output-vue-wrapper.cjs.js +4 -4
- package/dist/output-vue-wrapper.cjs.prod.js +4 -4
- package/dist/output-vue-wrapper.esm-bundler.js +4 -4
- package/dist/runtime/index.cjs.js +1 -1
- package/dist/runtime/index.cjs.prod.js +1 -1
- package/dist/runtime/index.js +1 -1
- package/dist/runtime/index.prod.js +1 -1
- package/package.json +33 -28
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* output-vue-wrapper v0.1.0-beta.
|
|
2
|
+
* output-vue-wrapper v0.1.0-beta.6
|
|
3
3
|
* (c) 2026 baicie
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
**/
|
|
@@ -56,7 +56,7 @@ function generateEventBridgeVueWrapper(input) {
|
|
|
56
56
|
if (!propNames.length && !eventNames.length) return generateMinimalVueWrapper(input);
|
|
57
57
|
const hasProps = propNames.length > 0;
|
|
58
58
|
const hasEvents = eventNames.length > 0;
|
|
59
|
-
const emitNames = Array.from(new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
59
|
+
const emitNames = Array.from(/* @__PURE__ */ new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
60
60
|
const hasNamedSlots = slotNames.length > 0;
|
|
61
61
|
return `
|
|
62
62
|
import {
|
|
@@ -109,7 +109,7 @@ function getCapabilities(component) {
|
|
|
109
109
|
}));
|
|
110
110
|
return {
|
|
111
111
|
propNames: Object.keys(component.props),
|
|
112
|
-
eventNames: Array.from(new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
112
|
+
eventNames: Array.from(/* @__PURE__ */ new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
113
113
|
var _event$name, _event$key;
|
|
114
114
|
return (_event$name = event.name) !== null && _event$name !== void 0 ? _event$name : toKebabCase((_event$key = event.key) !== null && _event$key !== void 0 ? _event$key : key);
|
|
115
115
|
}), ...models.map((model) => model.event)])),
|
|
@@ -274,7 +274,7 @@ function toVuePropOption(prop) {
|
|
|
274
274
|
}[prop.type]) !== null && _typeMap$prop$type !== void 0 ? _typeMap$prop$type : "null"}, required: ${prop.required === true ? "true" : "false"} }`;
|
|
275
275
|
}
|
|
276
276
|
function createVuePropInputKeys(propNames) {
|
|
277
|
-
return Object.fromEntries(propNames.map((name) => [name, Array.from(new Set([name, toKebabCase(name)]))]));
|
|
277
|
+
return Object.fromEntries(propNames.map((name) => [name, Array.from(/* @__PURE__ */ new Set([name, toKebabCase(name)]))]));
|
|
278
278
|
}
|
|
279
279
|
function toKebabCase(value) {
|
|
280
280
|
return value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* output-vue-wrapper v0.1.0-beta.
|
|
2
|
+
* output-vue-wrapper v0.1.0-beta.6
|
|
3
3
|
* (c) 2026 baicie
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
**/
|
|
@@ -56,7 +56,7 @@ function generateEventBridgeVueWrapper(input) {
|
|
|
56
56
|
if (!propNames.length && !eventNames.length) return generateMinimalVueWrapper(input);
|
|
57
57
|
const hasProps = propNames.length > 0;
|
|
58
58
|
const hasEvents = eventNames.length > 0;
|
|
59
|
-
const emitNames = Array.from(new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
59
|
+
const emitNames = Array.from(/* @__PURE__ */ new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
60
60
|
const hasNamedSlots = slotNames.length > 0;
|
|
61
61
|
return `
|
|
62
62
|
import {
|
|
@@ -109,7 +109,7 @@ function getCapabilities(component) {
|
|
|
109
109
|
}));
|
|
110
110
|
return {
|
|
111
111
|
propNames: Object.keys(component.props),
|
|
112
|
-
eventNames: Array.from(new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
112
|
+
eventNames: Array.from(/* @__PURE__ */ new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
113
113
|
var _event$name, _event$key;
|
|
114
114
|
return (_event$name = event.name) !== null && _event$name !== void 0 ? _event$name : toKebabCase((_event$key = event.key) !== null && _event$key !== void 0 ? _event$key : key);
|
|
115
115
|
}), ...models.map((model) => model.event)])),
|
|
@@ -274,7 +274,7 @@ function toVuePropOption(prop) {
|
|
|
274
274
|
}[prop.type]) !== null && _typeMap$prop$type !== void 0 ? _typeMap$prop$type : "null"}, required: ${prop.required === true ? "true" : "false"} }`;
|
|
275
275
|
}
|
|
276
276
|
function createVuePropInputKeys(propNames) {
|
|
277
|
-
return Object.fromEntries(propNames.map((name) => [name, Array.from(new Set([name, toKebabCase(name)]))]));
|
|
277
|
+
return Object.fromEntries(propNames.map((name) => [name, Array.from(/* @__PURE__ */ new Set([name, toKebabCase(name)]))]));
|
|
278
278
|
}
|
|
279
279
|
function toKebabCase(value) {
|
|
280
280
|
return value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* output-vue-wrapper v0.1.0-beta.
|
|
2
|
+
* output-vue-wrapper v0.1.0-beta.6
|
|
3
3
|
* (c) 2026 baicie
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
**/
|
|
@@ -52,7 +52,7 @@ function generateEventBridgeVueWrapper(input) {
|
|
|
52
52
|
if (!propNames.length && !eventNames.length) return generateMinimalVueWrapper(input);
|
|
53
53
|
const hasProps = propNames.length > 0;
|
|
54
54
|
const hasEvents = eventNames.length > 0;
|
|
55
|
-
const emitNames = Array.from(new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
55
|
+
const emitNames = Array.from(/* @__PURE__ */ new Set([...eventNames, ...models.map((model) => model.updateEvent)]));
|
|
56
56
|
const hasNamedSlots = slotNames.length > 0;
|
|
57
57
|
return `
|
|
58
58
|
import {
|
|
@@ -105,7 +105,7 @@ function getCapabilities(component) {
|
|
|
105
105
|
}));
|
|
106
106
|
return {
|
|
107
107
|
propNames: Object.keys(component.props),
|
|
108
|
-
eventNames: Array.from(new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
108
|
+
eventNames: Array.from(/* @__PURE__ */ new Set([...Object.entries(component.events).map(([key, event]) => {
|
|
109
109
|
var _event$name, _event$key;
|
|
110
110
|
return (_event$name = event.name) !== null && _event$name !== void 0 ? _event$name : toKebabCase((_event$key = event.key) !== null && _event$key !== void 0 ? _event$key : key);
|
|
111
111
|
}), ...models.map((model) => model.event)])),
|
|
@@ -270,7 +270,7 @@ function toVuePropOption(prop) {
|
|
|
270
270
|
}[prop.type]) !== null && _typeMap$prop$type !== void 0 ? _typeMap$prop$type : "null"}, required: ${prop.required === true ? "true" : "false"} }`;
|
|
271
271
|
}
|
|
272
272
|
function createVuePropInputKeys(propNames) {
|
|
273
|
-
return Object.fromEntries(propNames.map((name) => [name, Array.from(new Set([name, toKebabCase(name)]))]));
|
|
273
|
+
return Object.fromEntries(propNames.map((name) => [name, Array.from(/* @__PURE__ */ new Set([name, toKebabCase(name)]))]));
|
|
274
274
|
}
|
|
275
275
|
function toKebabCase(value) {
|
|
276
276
|
return value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
|
package/dist/runtime/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeus-js/output-vue-wrapper",
|
|
3
|
-
"version": "0.1.0-beta.5",
|
|
4
|
-
"description": "Zeus Vue wrapper output plugin",
|
|
5
3
|
"type": "module",
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
|
|
4
|
+
"version": "0.1.0-beta.6",
|
|
5
|
+
"description": "Zeus Vue wrapper output plugin",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/baicie/zeus.git",
|
|
10
|
+
"directory": "packages/web-c/output-vue-wrapper"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"provenance": true
|
|
15
|
+
},
|
|
16
|
+
"sideEffects": false,
|
|
13
17
|
"exports": {
|
|
14
18
|
".": {
|
|
15
19
|
"types": "./dist/output-vue-wrapper.d.ts",
|
|
@@ -28,11 +32,24 @@
|
|
|
28
32
|
"require": "./dist/runtime/index.cjs.js"
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
+
"files": [
|
|
36
|
+
"index.js",
|
|
37
|
+
"dist"
|
|
38
|
+
],
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"vue": ">=3"
|
|
35
41
|
},
|
|
42
|
+
"peerDependenciesMeta": {
|
|
43
|
+
"vue": {
|
|
44
|
+
"optional": true
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@zeus-js/bundler-plugin": "0.1.0-beta.6",
|
|
49
|
+
"@zeus-js/component-analyzer": "0.1.0-beta.6",
|
|
50
|
+
"@zeus-js/component-dts": "0.1.0-beta.6"
|
|
51
|
+
},
|
|
52
|
+
"author": "Baicie",
|
|
36
53
|
"buildOptions": {
|
|
37
54
|
"name": "ZeusOutputVueWrapper",
|
|
38
55
|
"formats": [
|
|
@@ -46,24 +63,12 @@
|
|
|
46
63
|
}
|
|
47
64
|
]
|
|
48
65
|
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"@zeus-js/bundler-plugin": "0.1.0-beta.5",
|
|
51
|
-
"@zeus-js/component-dts": "0.1.0-beta.5",
|
|
52
|
-
"@zeus-js/component-analyzer": "0.1.0-beta.5"
|
|
53
|
-
},
|
|
54
|
-
"peerDependencies": {
|
|
55
|
-
"vue": ">=3"
|
|
56
|
-
},
|
|
57
|
-
"peerDependenciesMeta": {
|
|
58
|
-
"vue": {
|
|
59
|
-
"optional": true
|
|
60
|
-
}
|
|
61
|
-
},
|
|
62
66
|
"keywords": [
|
|
63
67
|
"zeus",
|
|
64
68
|
"vue",
|
|
65
69
|
"web-components"
|
|
66
70
|
],
|
|
67
|
-
"
|
|
68
|
-
"
|
|
71
|
+
"main": "index.js",
|
|
72
|
+
"module": "dist/output-vue-wrapper.esm-bundler.js",
|
|
73
|
+
"types": "dist/output-vue-wrapper.d.ts"
|
|
69
74
|
}
|