vue-jsx-vapor 2.4.5 → 2.4.7

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 (64) hide show
  1. package/dist/api.d.cts +1 -1
  2. package/dist/api.d.ts +3 -3
  3. package/dist/astro.cjs +2 -2
  4. package/dist/astro.d.cts +1 -1
  5. package/dist/astro.d.ts +1 -1
  6. package/dist/astro.js +2 -2
  7. package/dist/esbuild.cjs +2 -2
  8. package/dist/esbuild.d.cts +1 -1
  9. package/dist/esbuild.d.ts +1 -1
  10. package/dist/esbuild.js +2 -2
  11. package/dist/index.cjs +6 -5
  12. package/dist/index.d.cts +6 -6
  13. package/dist/index.d.ts +7 -7
  14. package/dist/index.js +7 -7
  15. package/dist/nuxt.cjs +4 -4
  16. package/dist/nuxt.d.cts +1 -1
  17. package/dist/nuxt.d.ts +1 -1
  18. package/dist/nuxt.js +4 -4
  19. package/dist/{options-CUo88eyQ.d.ts → options-CBMw6D8V.d.ts} +1 -0
  20. package/dist/{options-DKC5DMaU.d.cts → options-jKAq0dFf.d.cts} +1 -0
  21. package/dist/options.d.cts +1 -1
  22. package/dist/options.d.ts +1 -1
  23. package/dist/{raw-uTw6gsXR.cjs → raw-ClsS8ij0.cjs} +3 -3
  24. package/dist/{raw-VH0PoGzC.js → raw-DiHBzVDM.js} +3 -3
  25. package/dist/raw.cjs +1 -1
  26. package/dist/raw.d.cts +1 -1
  27. package/dist/raw.d.ts +1 -1
  28. package/dist/raw.js +1 -1
  29. package/dist/rolldown.cjs +2 -2
  30. package/dist/rolldown.d.cts +1 -1
  31. package/dist/rolldown.d.ts +1 -1
  32. package/dist/rolldown.js +2 -2
  33. package/dist/rollup.cjs +2 -2
  34. package/dist/rollup.d.cts +1 -1
  35. package/dist/rollup.d.ts +3 -3
  36. package/dist/rollup.js +2 -2
  37. package/dist/rspack.cjs +2 -2
  38. package/dist/rspack.d.cts +1 -1
  39. package/dist/rspack.d.ts +1 -1
  40. package/dist/rspack.js +2 -2
  41. package/dist/{unplugin-b-OOl5Oa.js → unplugin-B550oaFk.js} +1 -1
  42. package/dist/{unplugin-oQzm1mwM.cjs → unplugin-BjDo1Xk3.cjs} +1 -1
  43. package/dist/unplugin.cjs +2 -2
  44. package/dist/unplugin.d.cts +1 -1
  45. package/dist/unplugin.d.ts +1 -1
  46. package/dist/unplugin.js +2 -2
  47. package/dist/{vite-CI0weIMr.cjs → vite-DVbJIlhr.cjs} +1 -1
  48. package/dist/vite-KXdQvrIL.js +7 -0
  49. package/dist/vite.cjs +3 -3
  50. package/dist/vite.d.cts +1 -1
  51. package/dist/vite.d.ts +3 -3
  52. package/dist/vite.js +3 -3
  53. package/dist/volar.d.cts +1 -1
  54. package/dist/volar.d.ts +1 -1
  55. package/dist/{webpack-DKzUUZiK.js → webpack-DDbmbG6c.js} +1 -1
  56. package/dist/{webpack-BsqVuFup.cjs → webpack-RpF8DPNN.cjs} +1 -1
  57. package/dist/webpack.cjs +3 -3
  58. package/dist/webpack.d.cts +1 -1
  59. package/dist/webpack.d.ts +3 -3
  60. package/dist/webpack.js +3 -3
  61. package/jsx-runtime/index.d.cts +4 -1
  62. package/jsx-runtime/index.d.ts +4 -1
  63. package/package.json +20 -9
  64. package/dist/vite-DTXDaFaY.js +0 -7
package/dist/api.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as _babel_core14 from "@babel/core";
3
3
 
4
4
  //#region src/core/index.d.ts
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Options } from "./options-CUo88eyQ.js";
2
- import * as _babel_core15 from "@babel/core";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
+ import * as _babel_core17 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_core15.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core17.BabelFileResult | null;
6
6
  //#endregion
7
7
  export { Options, transformVueJsxVapor };
package/dist/astro.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
5
5
 
6
6
  //#region src/astro.ts
7
7
  var astro_default = (options) => ({
package/dist/astro.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
 
3
3
  //#region src/astro.d.ts
4
4
  declare const _default: (options: Options) => {
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
4
4
 
5
5
  //#region src/astro.ts
6
6
  var astro_default = (options) => ({
package/dist/esbuild.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
5
5
 
6
6
  //#region src/esbuild.ts
7
7
  var esbuild_default = require_unplugin.unplugin_default.esbuild;
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as esbuild1 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import * as esbuild2 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
4
4
 
5
5
  //#region src/esbuild.ts
6
6
  var esbuild_default = unplugin_default.esbuild;
package/dist/index.cjs CHANGED
@@ -2,9 +2,10 @@ const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const vue = require_chunk.__toESM(require("vue"));
3
3
 
4
4
  //#region src/core/runtime.ts
5
- function getCurrentInstance() {
6
- return vue.currentInstance || vue.getCurrentInstance();
7
- }
5
+ const createComponent = (...args) => {
6
+ typeof args[0] === "function" && (args[0].__vapor = true);
7
+ return (0, vue.createComponent)(...args);
8
+ };
8
9
  /**
9
10
  * Returns the props of the current component instance.
10
11
  *
@@ -18,7 +19,7 @@ function getCurrentInstance() {
18
19
  * ```
19
20
  */
20
21
  function useProps() {
21
- const i = getCurrentInstance();
22
+ const i = (0, vue.getCurrentInstance)(true);
22
23
  return i.props;
23
24
  }
24
25
  /**
@@ -110,8 +111,8 @@ function createNodes(...values) {
110
111
  }
111
112
 
112
113
  //#endregion
114
+ exports.createComponent = createComponent;
113
115
  exports.createNodes = createNodes;
114
- exports.getCurrentInstance = getCurrentInstance;
115
116
  exports.setNodes = setNodes;
116
117
  exports.useFullProps = useFullProps;
117
118
  exports.useProps = useProps;
package/dist/index.d.cts CHANGED
@@ -1,10 +1,10 @@
1
- import * as Vue from "vue";
1
+ import * as vue16 from "vue";
2
2
  import * as vue15 from "vue";
3
- import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
3
+ import { VaporFragment, createComponent as createComponent$1, shallowRef as useRef } from "vue";
4
4
  import * as CSS from "csstype";
5
5
 
6
6
  //#region src/core/runtime.d.ts
7
- declare function getCurrentInstance(): GenericComponentInstance | null;
7
+ declare const createComponent: typeof createComponent$1;
8
8
  /**
9
9
  * Returns the props of the current component instance.
10
10
  *
@@ -32,8 +32,8 @@ declare function useProps(): {
32
32
  * const fullProps = useFullProps() // = useAttrs() + useProps()
33
33
  * })
34
34
  */
35
- declare function useFullProps(): Vue.ShallowUnwrapRef<{
36
- [x: string]: Vue.Ref<unknown, unknown>;
35
+ declare function useFullProps(): vue16.ShallowUnwrapRef<{
36
+ [x: string]: vue16.Ref<unknown, unknown>;
37
37
  }>;
38
38
  declare function setNodes(anchor: Node, ...values: any[]): void;
39
39
  declare function createNodes(...values: any[]): VaporFragment;
@@ -1359,4 +1359,4 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1359
1359
  }
1360
1360
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1361
1361
  //#endregion
1362
- export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
1362
+ export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
package/dist/index.d.ts CHANGED
@@ -1,10 +1,10 @@
1
- import * as Vue from "vue";
2
1
  import * as vue14 from "vue";
3
- import { GenericComponentInstance, VaporFragment, shallowRef as useRef } from "vue";
2
+ import * as vue16 from "vue";
3
+ import { VaporFragment, createComponent as createComponent$1, shallowRef as useRef } from "vue";
4
4
  import * as CSS from "csstype";
5
5
 
6
6
  //#region src/core/runtime.d.ts
7
- declare function getCurrentInstance(): GenericComponentInstance | null;
7
+ declare const createComponent: typeof createComponent$1;
8
8
  /**
9
9
  * Returns the props of the current component instance.
10
10
  *
@@ -32,8 +32,8 @@ declare function useProps(): {
32
32
  * const fullProps = useFullProps() // = useAttrs() + useProps()
33
33
  * })
34
34
  */
35
- declare function useFullProps(): Vue.ShallowUnwrapRef<{
36
- [x: string]: Vue.Ref<unknown, unknown>;
35
+ declare function useFullProps(): vue14.ShallowUnwrapRef<{
36
+ [x: string]: vue14.Ref<unknown, unknown>;
37
37
  }>;
38
38
  declare function setNodes(anchor: Node, ...values: any[]): void;
39
39
  declare function createNodes(...values: any[]): VaporFragment;
@@ -1227,7 +1227,7 @@ interface Events<T = Element> {
1227
1227
  onTransitionstart: TransitionEventHandler<T>;
1228
1228
  }
1229
1229
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1230
- type _ReservedProps = vue14.ReservedProps;
1230
+ type _ReservedProps = vue16.ReservedProps;
1231
1231
  interface ReservedProps extends _ReservedProps {}
1232
1232
  type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps };
1233
1233
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
@@ -1359,4 +1359,4 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1359
1359
  }
1360
1360
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1361
1361
  //#endregion
1362
- export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
1362
+ export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, ObjectHTMLAttributes, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import * as Vue from "vue";
2
- import { EffectScope, VaporFragment, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
1
+ import { EffectScope, VaporFragment, createComponent as createComponent$1, getCurrentInstance, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
3
2
 
4
3
  //#region src/core/runtime.ts
5
- function getCurrentInstance() {
6
- return Vue.currentInstance || Vue.getCurrentInstance();
7
- }
4
+ const createComponent = (...args) => {
5
+ typeof args[0] === "function" && (args[0].__vapor = true);
6
+ return createComponent$1(...args);
7
+ };
8
8
  /**
9
9
  * Returns the props of the current component instance.
10
10
  *
@@ -18,7 +18,7 @@ function getCurrentInstance() {
18
18
  * ```
19
19
  */
20
20
  function useProps() {
21
- const i = getCurrentInstance();
21
+ const i = getCurrentInstance(true);
22
22
  return i.props;
23
23
  }
24
24
  /**
@@ -110,4 +110,4 @@ function createNodes(...values) {
110
110
  }
111
111
 
112
112
  //#endregion
113
- export { createNodes, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
113
+ export { createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
package/dist/nuxt.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./core-BEqRwfoK.cjs');
4
- require('./raw-uTw6gsXR.cjs');
5
- require('./unplugin-oQzm1mwM.cjs');
6
- const require_vite = require('./vite-CI0weIMr.cjs');
7
- const require_webpack = require('./webpack-BsqVuFup.cjs');
4
+ require('./raw-ClsS8ij0.cjs');
5
+ require('./unplugin-BjDo1Xk3.cjs');
6
+ const require_vite = require('./vite-DVbJIlhr.cjs');
7
+ const require_webpack = require('./webpack-RpF8DPNN.cjs');
8
8
  const __nuxt_kit = require_chunk.__toESM(require("@nuxt/kit"));
9
9
  require("@nuxt/schema");
10
10
 
package/dist/nuxt.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as _nuxt_schema2 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import * as _nuxt_schema0 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
package/dist/nuxt.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import "./unplugin-b-OOl5Oa.js";
4
- import { vite_default } from "./vite-DTXDaFaY.js";
5
- import { webpack_default } from "./webpack-DKzUUZiK.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import "./unplugin-B550oaFk.js";
4
+ import { vite_default } from "./vite-KXdQvrIL.js";
5
+ import { webpack_default } from "./webpack-DDbmbG6c.js";
6
6
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
7
7
  import "@nuxt/schema";
8
8
 
@@ -9,6 +9,7 @@ interface Options$1 {
9
9
  exclude?: FilterPattern;
10
10
  interop?: boolean;
11
11
  compile?: CompilerOptions;
12
+ sourceMap?: boolean;
12
13
  /** @default true */
13
14
  ref?: {
14
15
  alias?: string[];
@@ -9,6 +9,7 @@ interface Options$1 {
9
9
  exclude?: FilterPattern;
10
10
  interop?: boolean;
11
11
  compile?: CompilerOptions;
12
+ sourceMap?: boolean;
12
13
  /** @default true */
13
14
  ref?: {
14
15
  alias?: string[];
@@ -1,2 +1,2 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  export { Options };
package/dist/options.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  export { Options };
@@ -112,7 +112,7 @@ function isDefineComponentCall(node, names) {
112
112
 
113
113
  //#endregion
114
114
  //#region src/core/runtime.ts?raw
115
- var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
115
+ var runtime_default = "import {\n createComponent as _createComponent,\n EffectScope,\n getCurrentInstance,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport const createComponent = (...args) => {\n typeof args[0] === \"function\" && (args[0].__vapor = true);\n return _createComponent(...args);\n};\nexport function useProps() {\n const i = getCurrentInstance(true);\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
116
116
 
117
117
  //#endregion
118
118
  //#region src/core/vue-jsx.ts
@@ -140,7 +140,7 @@ const plugin = (options = {}) => {
140
140
  const transformInclude = (0, unplugin_utils.createFilter)(options?.include || /\.[cm]?[jt]sx$/, options?.exclude || /node_modules/);
141
141
  let root = "";
142
142
  let needHMR = false;
143
- let needSourceMap = false;
143
+ let needSourceMap = options.sourceMap || false;
144
144
  return [
145
145
  {
146
146
  name: "vue-jsx-vapor",
@@ -158,7 +158,7 @@ const plugin = (options = {}) => {
158
158
  configResolved(config) {
159
159
  root = config.root;
160
160
  needHMR = config.command === "serve";
161
- needSourceMap = config.command === "serve" || !!config.build.sourcemap;
161
+ needSourceMap ||= config.command === "serve" || !!config.build.sourcemap;
162
162
  }
163
163
  },
164
164
  resolveId(id) {
@@ -111,7 +111,7 @@ function isDefineComponentCall(node, names) {
111
111
 
112
112
  //#endregion
113
113
  //#region src/core/runtime.ts?raw
114
- var runtime_default = "import {\n EffectScope,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nimport * as Vue from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\nexport function useProps() {\n const i = getCurrentInstance();\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
114
+ var runtime_default = "import {\n createComponent as _createComponent,\n EffectScope,\n getCurrentInstance,\n insert,\n isFragment,\n isVaporComponent,\n proxyRefs,\n remove,\n renderEffect,\n toRefs,\n useAttrs,\n VaporFragment\n} from \"vue\";\nexport { shallowRef as useRef } from \"vue\";\nexport const createComponent = (...args) => {\n typeof args[0] === \"function\" && (args[0].__vapor = true);\n return _createComponent(...args);\n};\nexport function useProps() {\n const i = getCurrentInstance(true);\n return i.props;\n}\nexport function useFullProps() {\n return proxyRefs({\n ...toRefs(useProps()),\n ...toRefs(useAttrs())\n });\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeNode(node, anchor) {\n if (node instanceof Node || isFragment(node)) {\n anchor && (anchor.textContent = \"\");\n return node;\n } else if (isVaporComponent(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n anchor && (anchor.textContent = \"\");\n return createFragment(\n node.map((i) => normalizeNode(i)),\n anchor\n );\n } else {\n const result = node == null || typeof node === \"boolean\" ? \"\" : String(node);\n if (anchor) {\n anchor.textContent = result;\n return anchor;\n } else {\n return document.createTextNode(result);\n }\n }\n}\nfunction resolveValue(current, value, _anchor) {\n const node = normalizeNode(value, _anchor);\n if (current) {\n if (isFragment(current)) {\n const { anchor } = current;\n if (anchor && anchor.parentNode) {\n remove(current.nodes, anchor.parentNode);\n insert(node, anchor.parentNode, anchor);\n !_anchor && anchor.parentNode.removeChild(anchor);\n }\n } else if (current instanceof Node) {\n if (isFragment(node) && current.parentNode) {\n insert(node, current.parentNode, current);\n current.parentNode.removeChild(current);\n } else if (node instanceof Node) {\n if (current.nodeType === 3 && node.nodeType === 3) {\n current.textContent = node.textContent;\n return current;\n } else if (current.parentNode) {\n current.parentNode.replaceChild(node, current);\n }\n }\n }\n }\n return node;\n}\nfunction resolveValues(values = [], _anchor) {\n const nodes = [];\n const frag = createFragment(nodes, _anchor);\n const scopes = [];\n for (const [index, value] of values.entries()) {\n const anchor = index === values.length - 1 ? _anchor : void 0;\n if (typeof value === \"function\") {\n renderEffect(() => {\n if (scopes[index]) scopes[index].stop();\n scopes[index] = new EffectScope();\n nodes[index] = scopes[index].run(\n () => resolveValue(nodes[index], value(), anchor)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor);\n }\n }\n return frag;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n";
115
115
 
116
116
  //#endregion
117
117
  //#region src/core/vue-jsx.ts
@@ -139,7 +139,7 @@ const plugin = (options = {}) => {
139
139
  const transformInclude = createFilter(options?.include || /\.[cm]?[jt]sx$/, options?.exclude || /node_modules/);
140
140
  let root = "";
141
141
  let needHMR = false;
142
- let needSourceMap = false;
142
+ let needSourceMap = options.sourceMap || false;
143
143
  return [
144
144
  {
145
145
  name: "vue-jsx-vapor",
@@ -157,7 +157,7 @@ const plugin = (options = {}) => {
157
157
  configResolved(config) {
158
158
  root = config.root;
159
159
  needHMR = config.command === "serve";
160
- needSourceMap = config.command === "serve" || !!config.build.sourcemap;
160
+ needSourceMap ||= config.command === "serve" || !!config.build.sourcemap;
161
161
  }
162
162
  },
163
163
  resolveId(id) {
package/dist/raw.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- const require_raw = require('./raw-uTw6gsXR.cjs');
3
+ const require_raw = require('./raw-ClsS8ij0.cjs');
4
4
 
5
5
  exports.default = require_raw.raw_default;
package/dist/raw.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import { UnpluginOptions } from "unplugin";
3
3
 
4
4
  //#region src/raw.d.ts
package/dist/raw.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import { UnpluginOptions } from "unplugin";
3
3
 
4
4
  //#region src/raw.d.ts
package/dist/raw.js CHANGED
@@ -1,4 +1,4 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import { raw_default } from "./raw-VH0PoGzC.js";
2
+ import { raw_default } from "./raw-DiHBzVDM.js";
3
3
 
4
4
  export { raw_default as default };
package/dist/rolldown.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  const require_chunk = require('./chunk-CUT6urMc.cjs');
3
3
  require('./core-BEqRwfoK.cjs');
4
- require('./raw-uTw6gsXR.cjs');
5
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
4
+ require('./raw-ClsS8ij0.cjs');
5
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
6
6
  const unplugin = require_chunk.__toESM(require("unplugin"));
7
7
 
8
8
  //#region src/rolldown.ts
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as rollup4 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import * as rollup5 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
package/dist/rolldown.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unpluginFactory } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unpluginFactory } from "./unplugin-B550oaFk.js";
4
4
  import { createRollupPlugin } from "unplugin";
5
5
 
6
6
  //#region src/rolldown.ts
package/dist/rollup.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
5
5
 
6
6
  //#region src/rollup.ts
7
7
  var rollup_default = require_unplugin.unplugin_default.rollup;
package/dist/rollup.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as rollup7 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
package/dist/rollup.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Options } from "./options-CUo88eyQ.js";
2
- import * as rollup13 from "rollup";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
+ import * as rollup8 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup13.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup8.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
4
4
 
5
5
  //#region src/rollup.ts
6
6
  var rollup_default = unplugin_default.rollup;
package/dist/rspack.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
5
5
 
6
6
  //#region src/rspack.ts
7
7
  var rspack_default = require_unplugin.unplugin_default.rspack;
package/dist/rspack.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
 
3
3
  //#region src/rspack.d.ts
4
4
  declare const _default: (options?: Options | undefined) => RspackPluginInstance;
package/dist/rspack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
4
4
 
5
5
  //#region src/rspack.ts
6
6
  var rspack_default = unplugin_default.rspack;
@@ -1,4 +1,4 @@
1
- import { raw_default } from "./raw-VH0PoGzC.js";
1
+ import { raw_default } from "./raw-DiHBzVDM.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
 
4
4
  //#region src/unplugin.ts
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_raw = require('./raw-uTw6gsXR.cjs');
2
+ const require_raw = require('./raw-ClsS8ij0.cjs');
3
3
  const unplugin = require_chunk.__toESM(require("unplugin"));
4
4
 
5
5
  //#region src/unplugin.ts
package/dist/unplugin.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
5
5
 
6
6
  exports.default = require_unplugin.unplugin_default;
7
7
  exports.unplugin = require_unplugin.unplugin;
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as unplugin9 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import * as unplugin3 from "unplugin";
3
3
  import { UnpluginFactory } from "unplugin";
4
4
 
package/dist/unplugin.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-B550oaFk.js";
4
4
 
5
5
  export { unplugin_default as default, unplugin, unpluginFactory };
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
1
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
2
2
 
3
3
  //#region src/vite.ts
4
4
  var vite_default = require_unplugin.unplugin_default.vite;
@@ -0,0 +1,7 @@
1
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
2
+
3
+ //#region src/vite.ts
4
+ var vite_default = unplugin_default.vite;
5
+
6
+ //#endregion
7
+ export { vite_default };
package/dist/vite.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- require('./unplugin-oQzm1mwM.cjs');
5
- const require_vite = require('./vite-CI0weIMr.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ require('./unplugin-BjDo1Xk3.cjs');
5
+ const require_vite = require('./vite-DVbJIlhr.cjs');
6
6
 
7
7
  exports.default = require_vite.vite_default;
package/dist/vite.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as vite11 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
package/dist/vite.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Options } from "./options-CUo88eyQ.js";
2
- import * as vite8 from "vite";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
+ import * as vite10 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite8.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite10.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/vite.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import "./unplugin-b-OOl5Oa.js";
4
- import { vite_default } from "./vite-DTXDaFaY.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import "./unplugin-B550oaFk.js";
4
+ import { vite_default } from "./vite-KXdQvrIL.js";
5
5
 
6
6
  export { vite_default as default };
package/dist/volar.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import { PluginReturn } from "ts-macro";
3
3
 
4
4
  //#region src/volar.d.ts
package/dist/volar.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-CUo88eyQ.js";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
2
  import { PluginReturn } from "ts-macro";
3
3
 
4
4
  //#region src/volar.d.ts
@@ -1,4 +1,4 @@
1
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
1
+ import { unplugin_default } from "./unplugin-B550oaFk.js";
2
2
 
3
3
  //#region src/webpack.ts
4
4
  var webpack_default = unplugin_default.webpack;
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('./unplugin-oQzm1mwM.cjs');
1
+ const require_unplugin = require('./unplugin-BjDo1Xk3.cjs');
2
2
 
3
3
  //#region src/webpack.ts
4
4
  var webpack_default = require_unplugin.unplugin_default.webpack;
package/dist/webpack.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
  require('./core-BEqRwfoK.cjs');
3
- require('./raw-uTw6gsXR.cjs');
4
- require('./unplugin-oQzm1mwM.cjs');
5
- const require_webpack = require('./webpack-BsqVuFup.cjs');
3
+ require('./raw-ClsS8ij0.cjs');
4
+ require('./unplugin-BjDo1Xk3.cjs');
5
+ const require_webpack = require('./webpack-RpF8DPNN.cjs');
6
6
 
7
7
  exports.default = require_webpack.webpack_default;
@@ -1,4 +1,4 @@
1
- import { Options } from "./options-DKC5DMaU.cjs";
1
+ import { Options } from "./options-jKAq0dFf.cjs";
2
2
  import * as webpack13 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
package/dist/webpack.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { Options } from "./options-CUo88eyQ.js";
2
- import * as webpack10 from "webpack";
1
+ import { Options } from "./options-CBMw6D8V.js";
2
+ import * as webpack12 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack10.WebpackPluginInstance;
5
+ declare const _default: (options?: Options | undefined) => webpack12.WebpackPluginInstance;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./core-BDE4GLH8.js";
2
- import "./raw-VH0PoGzC.js";
3
- import "./unplugin-b-OOl5Oa.js";
4
- import { webpack_default } from "./webpack-DKzUUZiK.js";
2
+ import "./raw-DiHBzVDM.js";
3
+ import "./unplugin-B550oaFk.js";
4
+ import { webpack_default } from "./webpack-DDbmbG6c.js";
5
5
 
6
6
  export { webpack_default as default };
@@ -15,7 +15,10 @@ declare global {
15
15
  interface IntrinsicElements extends NativeElements {
16
16
  [name: string]: any;
17
17
  }
18
- interface IntrinsicAttributes extends ReservedProps {}
18
+ interface IntrinsicAttributes extends ReservedProps {
19
+ class?: unknown;
20
+ style?: unknown;
21
+ }
19
22
  }
20
23
  }
21
24
  //#endregion
@@ -15,7 +15,10 @@ declare global {
15
15
  interface IntrinsicElements extends NativeElements {
16
16
  [name: string]: any;
17
17
  }
18
- interface IntrinsicAttributes extends ReservedProps {}
18
+ interface IntrinsicAttributes extends ReservedProps {
19
+ class?: unknown;
20
+ style?: unknown;
21
+ }
19
22
  }
20
23
  }
21
24
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.4.5",
3
+ "version": "2.4.7",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -122,6 +122,17 @@
122
122
  },
123
123
  "./*": "./*"
124
124
  },
125
+ "typesVersions": {
126
+ "*": {
127
+ "*": [
128
+ "./dist/*",
129
+ "./*"
130
+ ],
131
+ "jsx-runtime": [
132
+ "./jsx-runtime/index.d.ts"
133
+ ]
134
+ }
135
+ },
125
136
  "peerDependencies": {
126
137
  "@nuxt/kit": "^3",
127
138
  "@nuxt/schema": "^3",
@@ -152,19 +163,19 @@
152
163
  }
153
164
  },
154
165
  "dependencies": {
155
- "@babel/core": "^7.27.4",
166
+ "@babel/core": "^7.27.7",
156
167
  "@babel/plugin-transform-typescript": "^7.27.1",
157
- "@vue-macros/jsx-directive": "^3.0.0-beta.14",
158
- "@vue-macros/volar": "^3.0.0-beta.14",
168
+ "@vue-macros/jsx-directive": "^3.0.0-beta.15",
169
+ "@vue-macros/volar": "^3.0.0-beta.15",
159
170
  "@vue/babel-plugin-jsx": "^1.4.0",
160
171
  "hash-sum": "^2.0.0",
161
172
  "pathe": "^2.0.3",
162
- "ts-macro": "^0.1.33",
173
+ "ts-macro": "^0.1.34",
163
174
  "unplugin": "^2.3.5",
164
175
  "unplugin-utils": "^0.2.4",
165
- "@vue-jsx-vapor/babel": "2.4.5",
166
- "@vue-jsx-vapor/macros": "2.4.5",
167
- "@vue-jsx-vapor/compiler": "2.4.5"
176
+ "@vue-jsx-vapor/babel": "2.4.7",
177
+ "@vue-jsx-vapor/macros": "2.4.7",
178
+ "@vue-jsx-vapor/compiler": "2.4.7"
168
179
  },
169
180
  "devDependencies": {
170
181
  "@nuxt/kit": "^3.17.5",
@@ -172,7 +183,7 @@
172
183
  "@types/babel__core": "^7.20.5",
173
184
  "@types/hash-sum": "^1.0.2",
174
185
  "csstype": "^3.1.3",
175
- "vue": "https://pkg.pr.new/vue@280bc48"
186
+ "vue": "https://pkg.pr.new/vue@715b798"
176
187
  },
177
188
  "scripts": {
178
189
  "build": "tsdown",
@@ -1,7 +0,0 @@
1
- import { unplugin_default } from "./unplugin-b-OOl5Oa.js";
2
-
3
- //#region src/vite.ts
4
- var vite_default = unplugin_default.vite;
5
-
6
- //#endregion
7
- export { vite_default };