vue-jsx-vapor 2.5.3 → 2.6.0
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/astro.cjs +2 -2
- package/dist/astro.js +2 -2
- package/dist/esbuild.cjs +2 -2
- package/dist/esbuild.d.ts +2 -2
- package/dist/esbuild.js +2 -2
- package/dist/index.cjs +7 -160
- package/dist/index.d.cts +1 -1400
- package/dist/index.d.ts +1 -1400
- package/dist/index.js +1 -148
- package/dist/nuxt.cjs +4 -4
- package/dist/nuxt.d.cts +2 -2
- package/dist/nuxt.d.ts +2 -2
- package/dist/nuxt.js +4 -4
- package/dist/{raw-BjP3gPbY.cjs → raw-B2YMrqwY.cjs} +0 -7
- package/dist/{raw-B9sTyvy7.js → raw-CWZ5g7Vk.js} +0 -7
- package/dist/raw.cjs +1 -1
- package/dist/raw.js +1 -1
- package/dist/rolldown.cjs +2 -2
- package/dist/rolldown.d.cts +2 -2
- package/dist/rolldown.d.ts +2 -2
- package/dist/rolldown.js +2 -2
- package/dist/rollup.cjs +2 -2
- package/dist/rollup.d.cts +2 -2
- package/dist/rollup.d.ts +2 -2
- package/dist/rollup.js +2 -2
- package/dist/rspack.cjs +2 -2
- package/dist/rspack.js +2 -2
- package/dist/{unplugin-DhoceK4a.js → unplugin-CyifZGPt.js} +1 -1
- package/dist/{unplugin-FVMt3g-d.cjs → unplugin-aKVZLoq9.cjs} +1 -1
- package/dist/unplugin.cjs +2 -2
- package/dist/unplugin.d.cts +2 -2
- package/dist/unplugin.d.ts +2 -2
- package/dist/unplugin.js +2 -2
- package/dist/{vite-BWHljTjb.cjs → vite-C63GJQHT.cjs} +1 -1
- package/dist/vite-Djd6MAt9.js +7 -0
- package/dist/vite.cjs +3 -3
- package/dist/vite.d.cts +2 -2
- package/dist/vite.d.ts +2 -2
- package/dist/vite.js +3 -3
- package/dist/volar.cjs +1 -1
- package/dist/volar.js +1 -1
- package/dist/{webpack-B-DlzoE4.js → webpack-3fgVTA33.js} +1 -1
- package/dist/{webpack-BYCaRcg_.cjs → webpack-CeAur76z.cjs} +1 -1
- package/dist/webpack.cjs +3 -3
- package/dist/webpack.d.cts +2 -2
- package/dist/webpack.d.ts +2 -2
- package/dist/webpack.js +3 -3
- package/jsx-runtime/index.cjs +45 -33
- package/jsx-runtime/index.d.ts +10 -12
- package/jsx-runtime/index.js +8 -10
- package/package.json +12 -15
- package/dist/vite-C5CQFFD-.js +0 -7
- package/jsx-runtime/index.d.cts +0 -25
package/jsx-runtime/index.cjs
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create
|
|
3
|
-
var __defProp = Object.defineProperty
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
2
|
+
var __create = Object.create
|
|
3
|
+
var __defProp = Object.defineProperty
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty
|
|
8
8
|
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
|
|
9
|
+
if ((from && typeof from === 'object') || typeof from === 'function')
|
|
10
|
+
for (
|
|
11
|
+
// eslint-disable-next-line vars-on-top
|
|
12
|
+
var keys = __getOwnPropNames(from), i = 0, n = keys.length, key;
|
|
13
|
+
i < n;
|
|
14
|
+
i++
|
|
15
|
+
) {
|
|
16
|
+
key = keys[i]
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, {
|
|
19
|
+
get: ((k) => from[k]).bind(null, key),
|
|
20
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable,
|
|
21
|
+
})
|
|
22
|
+
}
|
|
23
|
+
return to
|
|
24
|
+
}
|
|
25
|
+
var __toESM = (mod, isNodeMode, target) => (
|
|
26
|
+
(target = mod != null ? __create(__getProtoOf(mod)) : {}),
|
|
27
|
+
__copyProps(
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule
|
|
29
|
+
? __defProp(target, 'default', {
|
|
30
|
+
value: mod,
|
|
31
|
+
enumerable: true,
|
|
32
|
+
})
|
|
33
|
+
: target,
|
|
34
|
+
mod,
|
|
35
|
+
)
|
|
36
|
+
)
|
|
23
37
|
//#endregion
|
|
24
|
-
const vue = __toESM(require(
|
|
25
|
-
const vue_jsx_vapor = __toESM(require(
|
|
38
|
+
const vue = __toESM(require('vue'))
|
|
39
|
+
const vue_jsx_vapor = __toESM(require('vue-jsx-vapor'))
|
|
26
40
|
|
|
27
|
-
//#region src/jsx-runtime.ts
|
|
28
41
|
function jsx(type, props, key) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
42
|
+
const { children, ['v-slots']: vSlots } = props
|
|
43
|
+
delete props.children
|
|
44
|
+
delete props['v-slots']
|
|
45
|
+
if (arguments.length > 2) props.key = key
|
|
46
|
+
return (0, vue_jsx_vapor.h)(type, props, vSlots || children)
|
|
34
47
|
}
|
|
35
48
|
|
|
36
|
-
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.jsxs = jsx;
|
|
49
|
+
exports.Fragment = vue.Fragment
|
|
50
|
+
exports.jsx = jsx
|
|
51
|
+
exports.jsxDEV = jsx
|
|
52
|
+
exports.jsxs = jsx
|
package/jsx-runtime/index.d.ts
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NativeElements, ReservedProps
|
|
1
|
+
import { Fragment, type Block } from 'vue'
|
|
2
|
+
import type { h, NativeElements, ReservedProps } from 'vue-jsx-vapor'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
|
|
4
|
+
declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>
|
|
6
5
|
declare global {
|
|
7
6
|
namespace JSX {
|
|
8
|
-
type Element = Block
|
|
7
|
+
type Element = Block
|
|
9
8
|
interface ElementClass {
|
|
10
|
-
$props: {}
|
|
9
|
+
$props: {}
|
|
11
10
|
}
|
|
12
11
|
interface ElementAttributesProperty {
|
|
13
|
-
$props: {}
|
|
12
|
+
$props: {}
|
|
14
13
|
}
|
|
15
14
|
interface IntrinsicElements extends NativeElements {
|
|
16
|
-
[name: string]: any
|
|
15
|
+
[name: string]: any
|
|
17
16
|
}
|
|
18
17
|
interface IntrinsicAttributes extends ReservedProps {
|
|
19
|
-
class?: unknown
|
|
20
|
-
style?: unknown
|
|
18
|
+
class?: unknown
|
|
19
|
+
style?: unknown
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
|
-
|
|
25
|
-
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
|
23
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }
|
package/jsx-runtime/index.js
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { Fragment } from
|
|
2
|
-
import { h } from
|
|
1
|
+
import { Fragment } from 'vue'
|
|
2
|
+
import { h } from 'vue-jsx-vapor'
|
|
3
3
|
|
|
4
|
-
//#region src/jsx-runtime.ts
|
|
5
4
|
function jsx(type, props, key) {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
const { children, ['v-slots']: vSlots } = props
|
|
6
|
+
delete props.children
|
|
7
|
+
delete props['v-slots']
|
|
8
|
+
if (arguments.length > 2) props.key = key
|
|
9
|
+
return h(type, props, vSlots || children)
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
|
12
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-jsx-vapor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.0",
|
|
4
4
|
"description": "Convert Vue JSX to Vapor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -104,13 +104,11 @@
|
|
|
104
104
|
},
|
|
105
105
|
"./jsx-runtime": {
|
|
106
106
|
"types": "./jsx-runtime/index.d.ts",
|
|
107
|
-
"jsx-vapor-dev": "./src/jsx-runtime.ts",
|
|
108
107
|
"require": "./jsx-runtime/index.cjs",
|
|
109
108
|
"default": "./jsx-runtime/index.js"
|
|
110
109
|
},
|
|
111
110
|
"./jsx-dev-runtime": {
|
|
112
111
|
"types": "./jsx-runtime/index.d.ts",
|
|
113
|
-
"jsx-vapor-dev": "./src/jsx-runtime.ts",
|
|
114
112
|
"require": "./jsx-runtime/index.cjs",
|
|
115
113
|
"default": "./jsx-runtime/index.js"
|
|
116
114
|
},
|
|
@@ -139,7 +137,7 @@
|
|
|
139
137
|
"esbuild": "*",
|
|
140
138
|
"rollup": "^3",
|
|
141
139
|
"vite": ">=3",
|
|
142
|
-
"vue": "^3.6.0",
|
|
140
|
+
"vue": "^3.6.0-alpha.2",
|
|
143
141
|
"webpack": "^4 || ^5"
|
|
144
142
|
},
|
|
145
143
|
"peerDependenciesMeta": {
|
|
@@ -165,25 +163,24 @@
|
|
|
165
163
|
"dependencies": {
|
|
166
164
|
"@babel/core": "^7.28.0",
|
|
167
165
|
"@babel/plugin-transform-typescript": "^7.28.0",
|
|
168
|
-
"@vue-macros/jsx-directive": "^3.0.0-beta.
|
|
169
|
-
"@vue-macros/volar": "^3.0.0-beta.
|
|
166
|
+
"@vue-macros/jsx-directive": "^3.0.0-beta.19",
|
|
167
|
+
"@vue-macros/volar": "^3.0.0-beta.19",
|
|
170
168
|
"@vue/babel-plugin-jsx": "^1.4.0",
|
|
171
169
|
"hash-sum": "^2.0.0",
|
|
172
170
|
"pathe": "^2.0.3",
|
|
173
|
-
"ts-macro": "^0.
|
|
171
|
+
"ts-macro": "^0.3.1",
|
|
174
172
|
"unplugin": "^2.3.5",
|
|
175
173
|
"unplugin-utils": "^0.2.4",
|
|
176
|
-
"@vue-jsx-vapor/compiler": "2.
|
|
177
|
-
"@vue-jsx-vapor/
|
|
178
|
-
"@vue-jsx-vapor/
|
|
174
|
+
"@vue-jsx-vapor/compiler": "2.6.0",
|
|
175
|
+
"@vue-jsx-vapor/macros": "2.6.0",
|
|
176
|
+
"@vue-jsx-vapor/babel": "2.6.0",
|
|
177
|
+
"@vue-jsx-vapor/runtime": "2.6.0"
|
|
179
178
|
},
|
|
180
179
|
"devDependencies": {
|
|
181
|
-
"@nuxt/kit": "^3.
|
|
182
|
-
"@nuxt/schema": "^3.
|
|
180
|
+
"@nuxt/kit": "^3.18.0",
|
|
181
|
+
"@nuxt/schema": "^3.18.0",
|
|
183
182
|
"@types/babel__core": "^7.20.5",
|
|
184
|
-
"@types/hash-sum": "^1.0.2"
|
|
185
|
-
"csstype": "^3.1.3",
|
|
186
|
-
"vue": "3.6.0-alpha.2"
|
|
183
|
+
"@types/hash-sum": "^1.0.2"
|
|
187
184
|
},
|
|
188
185
|
"scripts": {
|
|
189
186
|
"build": "tsdown",
|
package/dist/vite-C5CQFFD-.js
DELETED
package/jsx-runtime/index.d.cts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Block, Fragment } from "vue";
|
|
2
|
-
import { NativeElements, ReservedProps, h } from "vue-jsx-vapor";
|
|
3
|
-
|
|
4
|
-
//#region src/jsx-runtime.d.ts
|
|
5
|
-
declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
|
|
6
|
-
declare global {
|
|
7
|
-
namespace JSX {
|
|
8
|
-
type Element = Block;
|
|
9
|
-
interface ElementClass {
|
|
10
|
-
$props: {};
|
|
11
|
-
}
|
|
12
|
-
interface ElementAttributesProperty {
|
|
13
|
-
$props: {};
|
|
14
|
-
}
|
|
15
|
-
interface IntrinsicElements extends NativeElements {
|
|
16
|
-
[name: string]: any;
|
|
17
|
-
}
|
|
18
|
-
interface IntrinsicAttributes extends ReservedProps {
|
|
19
|
-
class?: unknown;
|
|
20
|
-
style?: unknown;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
//#endregion
|
|
25
|
-
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|