vue-jsx-vapor 2.4.0 → 2.4.1

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/api.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as _babel_core19 from "@babel/core";
2
+ import * as _babel_core14 from "@babel/core";
3
3
 
4
4
  //#region src/core/index.d.ts
5
- declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core19.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core14.BabelFileResult | null;
6
6
 
7
7
  //#endregion
8
8
  export { Options, transformVueJsxVapor };
package/dist/api.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as _babel_core21 from "@babel/core";
2
+ import * as _babel_core14 from "@babel/core";
3
3
 
4
4
  //#region src/core/index.d.ts
5
- declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core21.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core14.BabelFileResult | null;
6
6
 
7
7
  //#endregion
8
8
  export { Options, transformVueJsxVapor };
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as esbuild8 from "esbuild";
2
+ import * as esbuild3 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild8.Plugin;
5
+ declare const _default: (options?: Options | undefined) => esbuild3.Plugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/esbuild.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as esbuild1 from "esbuild";
2
+ import * as esbuild10 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild1.Plugin;
5
+ declare const _default: (options?: Options | undefined) => esbuild10.Plugin;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/nuxt.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as _nuxt_schema6 from "@nuxt/schema";
2
+ import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
5
  interface ModuleOptions extends Options {}
6
- declare const _default: _nuxt_schema6.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  //#endregion
9
9
  export { ModuleOptions, _default as default };
package/dist/nuxt.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as _nuxt_schema16 from "@nuxt/schema";
2
+ import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
5
  interface ModuleOptions extends Options {}
6
- declare const _default: _nuxt_schema16.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const _default: _nuxt_schema0.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
 
8
8
  //#endregion
9
9
  export { ModuleOptions, _default as default };
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as rollup15 from "rollup";
2
+ import * as rollup7 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup15.Plugin<any> | rollup15.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup7.Plugin<any> | rollup7.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as rollup3 from "rollup";
2
+ import * as rollup2 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup3.Plugin<any> | rollup3.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup2.Plugin<any> | rollup2.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/rollup.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as rollup18 from "rollup";
2
+ import * as rollup5 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup18.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup5.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/rollup.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as rollup6 from "rollup";
2
+ import * as rollup8 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup6.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup8.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,10 +1,10 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as unplugin11 from "unplugin";
2
+ import * as unplugin1 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
5
5
  //#region src/unplugin.d.ts
6
6
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
7
- declare const unplugin: unplugin11.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin1.UnpluginInstance<Options | undefined, true>;
8
8
 
9
9
  //#endregion
10
10
  export { Options, unplugin as default, unplugin, unpluginFactory };
@@ -1,10 +1,10 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as unplugin18 from "unplugin";
2
+ import * as unplugin4 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
5
5
  //#region src/unplugin.d.ts
6
6
  declare const unpluginFactory: UnpluginFactory<Options | undefined, true>;
7
- declare const unplugin: unplugin18.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin4.UnpluginInstance<Options | undefined, true>;
8
8
 
9
9
  //#endregion
10
10
  export { Options, unplugin as default, unplugin, unpluginFactory };
package/dist/vite.d.cts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as vite10 from "vite";
2
+ import * as vite13 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite10.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite13.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
package/dist/vite.d.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-CeDGvYqS.js";
2
- import * as vite15 from "vite";
2
+ import * as vite6 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite15.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite6.Plugin<any>[];
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -1,8 +1,8 @@
1
1
  import { Options } from "./options-BRfDD5qB.cjs";
2
- import * as webpack13 from "webpack";
2
+ import * as webpack11 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack13.WebpackPluginInstance;
5
+ declare const _default: (options?: Options | undefined) => webpack11.WebpackPluginInstance;
6
6
 
7
7
  //#endregion
8
8
  export { _default as default };
@@ -0,0 +1,38 @@
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;
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
+
23
+ //#endregion
24
+ const vue = __toESM(require("vue"));
25
+
26
+ //#region src/jsx-runtime.ts
27
+ function jsx(type, props, key) {
28
+ const { children } = props;
29
+ delete props.children;
30
+ if (arguments.length > 2) props.key = key;
31
+ return (0, vue.h)(type, props, children);
32
+ }
33
+
34
+ //#endregion
35
+ exports.Fragment = vue.Fragment;
36
+ exports.jsx = jsx;
37
+ exports.jsxDEV = jsx;
38
+ exports.jsxs = jsx;
@@ -1,4 +1,4 @@
1
- import * as vue20 from "vue";
1
+ import * as vue5 from "vue";
2
2
  import * as vue0 from "vue";
3
3
  import { Fragment, h } from "vue";
4
4
  import * as CSS from "csstype";
@@ -1194,11 +1194,11 @@ interface Events<T = Element> {
1194
1194
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1195
1195
  type ReservedProps$1 = {
1196
1196
  key?: PropertyKey;
1197
- ref?: vue20.VNodeRef;
1197
+ ref?: vue5.VNodeRef;
1198
1198
  ref_for?: boolean;
1199
1199
  ref_key?: string;
1200
1200
  };
1201
- type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue20.HTMLAttributes };
1201
+ type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue5.HTMLAttributes };
1202
1202
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1203
1203
  nativeEvent: E;
1204
1204
  currentTarget: C;
@@ -1,5 +1,5 @@
1
- import * as vue19 from "vue";
2
- import * as vue7 from "vue";
1
+ import * as vue5 from "vue";
2
+ import * as vue0 from "vue";
3
3
  import { Fragment, h } from "vue";
4
4
  import * as CSS from "csstype";
5
5
 
@@ -1194,11 +1194,11 @@ interface Events<T = Element> {
1194
1194
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1195
1195
  type ReservedProps$1 = {
1196
1196
  key?: PropertyKey;
1197
- ref?: vue19.VNodeRef;
1197
+ ref?: vue5.VNodeRef;
1198
1198
  ref_for?: boolean;
1199
1199
  ref_key?: string;
1200
1200
  };
1201
- type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue19.HTMLAttributes };
1201
+ type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$1 & vue5.HTMLAttributes };
1202
1202
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
1203
1203
  nativeEvent: E;
1204
1204
  currentTarget: C;
@@ -1331,10 +1331,10 @@ type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1331
1331
  //#endregion
1332
1332
  //#region src/jsx-runtime.d.ts
1333
1333
  declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
1334
- type VNode = vue7.VNode;
1335
- type ReservedProps = vue7.ReservedProps;
1336
- type AllowedComponentProps = vue7.AllowedComponentProps;
1337
- type ComponentCustomProps = vue7.ComponentCustomProps;
1334
+ type VNode = vue0.VNode;
1335
+ type ReservedProps = vue0.ReservedProps;
1336
+ type AllowedComponentProps = vue0.AllowedComponentProps;
1337
+ type ComponentCustomProps = vue0.ComponentCustomProps;
1338
1338
  declare global {
1339
1339
  namespace JSX {
1340
1340
  interface Element extends VNode {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -23,7 +23,8 @@
23
23
  "url": "git+https://github.com/vuejs/vue-jsx-vapor.git"
24
24
  },
25
25
  "files": [
26
- "dist"
26
+ "dist",
27
+ "jsx-runtime"
27
28
  ],
28
29
  "main": "dist/index.cjs",
29
30
  "module": "dist/index.js",
@@ -102,16 +103,16 @@
102
103
  "import": "./dist/unplugin.js"
103
104
  },
104
105
  "./jsx-runtime": {
105
- "types": "./dist/jsx-runtime.d.ts",
106
+ "types": "./jsx-runtime/index.d.ts",
106
107
  "jsx-vapor-dev": "./src/jsx-runtime.ts",
107
- "require": "./dist/jsx-runtime.cjs",
108
- "default": "./dist/jsx-runtime.js"
108
+ "require": "./jsx-runtime/index.cjs",
109
+ "default": "./jsx-runtime/index.js"
109
110
  },
110
111
  "./jsx-dev-runtime": {
111
- "types": "./dist/jsx-runtime.d.ts",
112
+ "types": "./jsx-runtime/index.d.ts",
112
113
  "jsx-vapor-dev": "./src/jsx-runtime.ts",
113
- "require": "./dist/jsx-runtime.cjs",
114
- "default": "./dist/jsx-runtime.js"
114
+ "require": "./jsx-runtime/index.cjs",
115
+ "default": "./jsx-runtime/index.js"
115
116
  },
116
117
  "./volar": {
117
118
  "types": "./dist/volar.d.ts",
@@ -162,16 +163,16 @@
162
163
  "ts-macro": "^0.1.29",
163
164
  "unplugin": "^2.2.2",
164
165
  "unplugin-utils": "^0.2.4",
165
- "@vue-jsx-vapor/babel": "2.4.0",
166
- "@vue-jsx-vapor/compiler": "2.4.0",
167
- "@vue-jsx-vapor/macros": "2.4.0"
166
+ "@vue-jsx-vapor/compiler": "2.4.1",
167
+ "@vue-jsx-vapor/macros": "2.4.1",
168
+ "@vue-jsx-vapor/babel": "2.4.1"
168
169
  },
169
170
  "devDependencies": {
170
171
  "@nuxt/kit": "^3.16.0",
171
172
  "@nuxt/schema": "^3.16.0",
172
173
  "@types/babel__core": "^7.20.5",
173
174
  "csstype": "^3.1.3",
174
- "vue": "https://pkg.pr.new/vue@1c02a3e"
175
+ "vue": "https://pkg.pr.new/vue@46e707d"
175
176
  },
176
177
  "scripts": {
177
178
  "build": "tsdown",
@@ -1,16 +0,0 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const vue = require_chunk.__toESM(require("vue"));
3
-
4
- //#region src/jsx-runtime.ts
5
- function jsx(type, props, key) {
6
- const { children } = props;
7
- delete props.children;
8
- if (arguments.length > 2) props.key = key;
9
- return (0, vue.h)(type, props, children);
10
- }
11
-
12
- //#endregion
13
- exports.Fragment = vue.Fragment;
14
- exports.jsx = jsx;
15
- exports.jsxDEV = jsx;
16
- exports.jsxs = jsx;
File without changes