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.
Files changed (53) hide show
  1. package/dist/astro.cjs +2 -2
  2. package/dist/astro.js +2 -2
  3. package/dist/esbuild.cjs +2 -2
  4. package/dist/esbuild.d.ts +2 -2
  5. package/dist/esbuild.js +2 -2
  6. package/dist/index.cjs +7 -160
  7. package/dist/index.d.cts +1 -1400
  8. package/dist/index.d.ts +1 -1400
  9. package/dist/index.js +1 -148
  10. package/dist/nuxt.cjs +4 -4
  11. package/dist/nuxt.d.cts +2 -2
  12. package/dist/nuxt.d.ts +2 -2
  13. package/dist/nuxt.js +4 -4
  14. package/dist/{raw-BjP3gPbY.cjs → raw-B2YMrqwY.cjs} +0 -7
  15. package/dist/{raw-B9sTyvy7.js → raw-CWZ5g7Vk.js} +0 -7
  16. package/dist/raw.cjs +1 -1
  17. package/dist/raw.js +1 -1
  18. package/dist/rolldown.cjs +2 -2
  19. package/dist/rolldown.d.cts +2 -2
  20. package/dist/rolldown.d.ts +2 -2
  21. package/dist/rolldown.js +2 -2
  22. package/dist/rollup.cjs +2 -2
  23. package/dist/rollup.d.cts +2 -2
  24. package/dist/rollup.d.ts +2 -2
  25. package/dist/rollup.js +2 -2
  26. package/dist/rspack.cjs +2 -2
  27. package/dist/rspack.js +2 -2
  28. package/dist/{unplugin-DhoceK4a.js → unplugin-CyifZGPt.js} +1 -1
  29. package/dist/{unplugin-FVMt3g-d.cjs → unplugin-aKVZLoq9.cjs} +1 -1
  30. package/dist/unplugin.cjs +2 -2
  31. package/dist/unplugin.d.cts +2 -2
  32. package/dist/unplugin.d.ts +2 -2
  33. package/dist/unplugin.js +2 -2
  34. package/dist/{vite-BWHljTjb.cjs → vite-C63GJQHT.cjs} +1 -1
  35. package/dist/vite-Djd6MAt9.js +7 -0
  36. package/dist/vite.cjs +3 -3
  37. package/dist/vite.d.cts +2 -2
  38. package/dist/vite.d.ts +2 -2
  39. package/dist/vite.js +3 -3
  40. package/dist/volar.cjs +1 -1
  41. package/dist/volar.js +1 -1
  42. package/dist/{webpack-B-DlzoE4.js → webpack-3fgVTA33.js} +1 -1
  43. package/dist/{webpack-BYCaRcg_.cjs → webpack-CeAur76z.cjs} +1 -1
  44. package/dist/webpack.cjs +3 -3
  45. package/dist/webpack.d.cts +2 -2
  46. package/dist/webpack.d.ts +2 -2
  47. package/dist/webpack.js +3 -3
  48. package/jsx-runtime/index.cjs +45 -33
  49. package/jsx-runtime/index.d.ts +10 -12
  50. package/jsx-runtime/index.js +8 -10
  51. package/package.json +12 -15
  52. package/dist/vite-C5CQFFD-.js +0 -7
  53. package/jsx-runtime/index.d.cts +0 -25
@@ -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
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
- key = keys[i];
11
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
- get: ((k) => from[k]).bind(null, key),
13
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
- });
15
- }
16
- return to;
17
- };
18
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
- value: mod,
20
- enumerable: true
21
- }) : target, mod));
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("vue"));
25
- const vue_jsx_vapor = __toESM(require("vue-jsx-vapor"));
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
- const { children, ["v-slots"]: vSlots } = props;
30
- delete props.children;
31
- delete props["v-slots"];
32
- if (arguments.length > 2) props.key = key;
33
- return (0, vue_jsx_vapor.h)(type, props, vSlots || children);
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
- //#endregion
37
- exports.Fragment = vue.Fragment;
38
- exports.jsx = jsx;
39
- exports.jsxDEV = jsx;
40
- exports.jsxs = jsx;
49
+ exports.Fragment = vue.Fragment
50
+ exports.jsx = jsx
51
+ exports.jsxDEV = jsx
52
+ exports.jsxs = jsx
@@ -1,25 +1,23 @@
1
- import { Block, Fragment } from "vue";
2
- import { NativeElements, ReservedProps, h } from "vue-jsx-vapor";
1
+ import { Fragment, type Block } from 'vue'
2
+ import type { h, NativeElements, ReservedProps } from 'vue-jsx-vapor'
3
3
 
4
- //#region src/jsx-runtime.d.ts
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
- //#endregion
25
- export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
23
+ export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs }
@@ -1,14 +1,12 @@
1
- import { Fragment } from "vue";
2
- import { h } from "vue-jsx-vapor";
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
- const { children, ["v-slots"]: vSlots } = props;
7
- delete props.children;
8
- delete props["v-slots"];
9
- if (arguments.length > 2) props.key = key;
10
- return h(type, props, vSlots || children);
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
- //#endregion
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.5.3",
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.17",
169
- "@vue-macros/volar": "^3.0.0-beta.17",
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.2.7",
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.5.3",
177
- "@vue-jsx-vapor/babel": "2.5.3",
178
- "@vue-jsx-vapor/macros": "2.5.3"
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.17.6",
182
- "@nuxt/schema": "^3.17.6",
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",
@@ -1,7 +0,0 @@
1
- import { unplugin_default } from "./unplugin-DhoceK4a.js";
2
-
3
- //#region src/vite.ts
4
- var vite_default = unplugin_default.vite;
5
-
6
- //#endregion
7
- export { vite_default };
@@ -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 };