vue-jsx-vapor 2.5.0 → 2.5.2

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 (54) hide show
  1. package/dist/api.cjs +1 -1
  2. package/dist/api.d.ts +2 -2
  3. package/dist/api.js +1 -1
  4. package/dist/astro.cjs +3 -3
  5. package/dist/astro.js +3 -3
  6. package/dist/{core-BEqRwfoK.cjs → core-C-41-Q2Y.cjs} +3 -1
  7. package/dist/{core-BDE4GLH8.js → core-CJgJmh2O.js} +3 -1
  8. package/dist/esbuild.cjs +3 -3
  9. package/dist/esbuild.d.cts +2 -2
  10. package/dist/esbuild.d.ts +2 -2
  11. package/dist/esbuild.js +3 -3
  12. package/dist/index.cjs +5 -1
  13. package/dist/index.d.cts +7 -6
  14. package/dist/index.d.ts +6 -5
  15. package/dist/index.js +7 -3
  16. package/dist/nuxt.cjs +5 -5
  17. package/dist/nuxt.d.cts +2 -2
  18. package/dist/nuxt.js +5 -5
  19. package/dist/{raw-DW3TnyGX.cjs → raw-CYDpZE8-.cjs} +7 -3
  20. package/dist/{raw-CiOcntA4.js → raw-yXCo36CS.js} +7 -3
  21. package/dist/raw.cjs +2 -2
  22. package/dist/raw.js +2 -2
  23. package/dist/rolldown.cjs +3 -3
  24. package/dist/rolldown.d.cts +2 -2
  25. package/dist/rolldown.d.ts +2 -2
  26. package/dist/rolldown.js +3 -3
  27. package/dist/rollup.cjs +3 -3
  28. package/dist/rollup.d.cts +2 -2
  29. package/dist/rollup.d.ts +2 -2
  30. package/dist/rollup.js +3 -3
  31. package/dist/rspack.cjs +3 -3
  32. package/dist/rspack.js +3 -3
  33. package/dist/{unplugin-fqdlwNc1.js → unplugin-Cv5nDfeb.js} +1 -1
  34. package/dist/{unplugin-B_wqXCTq.cjs → unplugin-DBHzlOuN.cjs} +1 -1
  35. package/dist/unplugin.cjs +3 -3
  36. package/dist/unplugin.d.cts +2 -2
  37. package/dist/unplugin.d.ts +2 -2
  38. package/dist/unplugin.js +3 -3
  39. package/dist/vite-BtTbvmfA.js +7 -0
  40. package/dist/{vite-Dgw3nh-Y.cjs → vite-BwPOjczq.cjs} +1 -1
  41. package/dist/vite.cjs +4 -4
  42. package/dist/vite.d.cts +2 -2
  43. package/dist/vite.js +4 -4
  44. package/dist/volar.cjs +3 -2
  45. package/dist/volar.d.cts +1 -1
  46. package/dist/volar.d.ts +1 -1
  47. package/dist/volar.js +2 -2
  48. package/dist/{webpack-DMPoVLGY.js → webpack-BBIFuz_t.js} +1 -1
  49. package/dist/{webpack-BnV_gKcg.cjs → webpack-srNWU-jd.cjs} +1 -1
  50. package/dist/webpack.cjs +4 -4
  51. package/dist/webpack.d.cts +2 -2
  52. package/dist/webpack.js +4 -4
  53. package/package.json +8 -8
  54. package/dist/vite-DsiGkw99.js +0 -7
package/dist/api.cjs CHANGED
@@ -1,3 +1,3 @@
1
- const require_core = require('./core-BEqRwfoK.cjs');
1
+ const require_core = require('./core-C-41-Q2Y.cjs');
2
2
 
3
3
  exports.transformVueJsxVapor = require_core.transformVueJsxVapor;
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-CBMw6D8V.js";
2
- import * as _babel_core17 from "@babel/core";
2
+ import * as _babel_core15 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_core17.BabelFileResult | null;
5
+ declare function transformVueJsxVapor(code: string, id: string, options?: Options, needSourceMap?: boolean): _babel_core15.BabelFileResult | null;
6
6
  //#endregion
7
7
  export { Options, transformVueJsxVapor };
package/dist/api.js CHANGED
@@ -1,3 +1,3 @@
1
- import { transformVueJsxVapor } from "./core-BDE4GLH8.js";
1
+ import { transformVueJsxVapor } from "./core-CJgJmh2O.js";
2
2
 
3
3
  export { transformVueJsxVapor };
package/dist/astro.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
5
5
 
6
6
  //#region src/astro.ts
7
7
  var astro_default = (options) => ({
package/dist/astro.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.js";
4
4
 
5
5
  //#region src/astro.ts
6
6
  var astro_default = (options) => ({
@@ -5,10 +5,12 @@ const __vue_jsx_vapor_babel = require_chunk.__toESM(require("@vue-jsx-vapor/babe
5
5
 
6
6
  //#region src/core/index.ts
7
7
  function transformVueJsxVapor(code, id, options, needSourceMap = false) {
8
+ const params = new URLSearchParams(id);
9
+ const vapor = params.get("vapor");
8
10
  return (0, __babel_core.transformSync)(code, {
9
11
  plugins: [[__vue_jsx_vapor_babel.default, {
10
12
  compile: options?.compile,
11
- interop: options?.interop
13
+ interop: vapor ? false : options?.interop
12
14
  }], ...id.endsWith(".tsx") ? [[__babel_plugin_transform_typescript.default, {
13
15
  isTSX: true,
14
16
  allowExtensions: true
@@ -4,10 +4,12 @@ import jsx from "@vue-jsx-vapor/babel";
4
4
 
5
5
  //#region src/core/index.ts
6
6
  function transformVueJsxVapor(code, id, options, needSourceMap = false) {
7
+ const params = new URLSearchParams(id);
8
+ const vapor = params.get("vapor");
7
9
  return transformSync(code, {
8
10
  plugins: [[jsx, {
9
11
  compile: options?.compile,
10
- interop: options?.interop
12
+ interop: vapor ? false : options?.interop
11
13
  }], ...id.endsWith(".tsx") ? [[babelTypescript, {
12
14
  isTSX: true,
13
15
  allowExtensions: true
package/dist/esbuild.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
5
5
 
6
6
  //#region src/esbuild.ts
7
7
  var esbuild_default = require_unplugin.unplugin_default.esbuild;
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as esbuild12 from "esbuild";
2
+ import * as esbuild11 from "esbuild";
3
3
 
4
4
  //#region src/esbuild.d.ts
5
- declare const _default: (options?: Options | undefined) => esbuild12.Plugin;
5
+ declare const _default: (options?: Options | undefined) => esbuild11.Plugin;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/esbuild.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-CBMw6D8V.js";
2
- import * as esbuild1 from "esbuild";
2
+ import * as esbuild13 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) => esbuild13.Plugin;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/esbuild.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.js";
4
4
 
5
5
  //#region src/esbuild.ts
6
6
  var esbuild_default = unplugin_default.esbuild;
package/dist/index.cjs CHANGED
@@ -2,6 +2,9 @@ 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
8
  const createComponent = (...args) => {
6
9
  typeof args[0] === "function" && (args[0].__vapor = true);
7
10
  return (0, vue.createComponent)(...args);
@@ -19,7 +22,7 @@ const createComponent = (...args) => {
19
22
  * ```
20
23
  */
21
24
  function useProps() {
22
- const i = (0, vue.getCurrentInstance)(true);
25
+ const i = getCurrentInstance();
23
26
  return i.props;
24
27
  }
25
28
  /**
@@ -113,6 +116,7 @@ function createNodes(...values) {
113
116
  //#endregion
114
117
  exports.createComponent = createComponent;
115
118
  exports.createNodes = createNodes;
119
+ exports.getCurrentInstance = getCurrentInstance;
116
120
  exports.setNodes = setNodes;
117
121
  exports.useFullProps = useFullProps;
118
122
  exports.useProps = useProps;
package/dist/index.d.cts CHANGED
@@ -1,9 +1,10 @@
1
+ import * as Vue from "vue";
1
2
  import * as vue15 from "vue";
2
- import * as vue17 from "vue";
3
- import { VaporFragment, createComponent as createComponent$1, shallowRef as useRef } from "vue";
3
+ import { GenericComponentInstance, 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
8
  declare const createComponent: typeof createComponent$1;
8
9
  /**
9
10
  * Returns the props of the current component instance.
@@ -32,8 +33,8 @@ declare function useProps(): {
32
33
  * const fullProps = useFullProps() // = useAttrs() + useProps()
33
34
  * })
34
35
  */
35
- declare function useFullProps(): vue15.ShallowUnwrapRef<{
36
- [x: string]: vue15.Ref<unknown, unknown>;
36
+ declare function useFullProps(): Vue.ShallowUnwrapRef<{
37
+ [x: string]: Vue.Ref<unknown, unknown>;
37
38
  }>;
38
39
  declare function setNodes(anchor: Node, ...values: any[]): void;
39
40
  declare function createNodes(...values: any[]): VaporFragment;
@@ -1227,7 +1228,7 @@ interface Events<T = Element> {
1227
1228
  onTransitionstart: TransitionEventHandler<T>;
1228
1229
  }
1229
1230
  type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
1230
- type _ReservedProps = vue17.ReservedProps;
1231
+ type _ReservedProps = vue15.ReservedProps;
1231
1232
  interface ReservedProps extends _ReservedProps {}
1232
1233
  type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps };
1233
1234
  interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
@@ -1359,4 +1360,4 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1359
1360
  }
1360
1361
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1361
1362
  //#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, createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
1363
+ 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, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
package/dist/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
- import * as vue15 from "vue";
1
+ import * as Vue from "vue";
2
2
  import * as vue14 from "vue";
3
- import { VaporFragment, createComponent as createComponent$1, shallowRef as useRef } from "vue";
3
+ import { GenericComponentInstance, 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
8
  declare const createComponent: typeof createComponent$1;
8
9
  /**
9
10
  * Returns the props of the current component instance.
@@ -32,8 +33,8 @@ declare function useProps(): {
32
33
  * const fullProps = useFullProps() // = useAttrs() + useProps()
33
34
  * })
34
35
  */
35
- declare function useFullProps(): vue15.ShallowUnwrapRef<{
36
- [x: string]: vue15.Ref<unknown, unknown>;
36
+ declare function useFullProps(): Vue.ShallowUnwrapRef<{
37
+ [x: string]: Vue.Ref<unknown, unknown>;
37
38
  }>;
38
39
  declare function setNodes(anchor: Node, ...values: any[]): void;
39
40
  declare function createNodes(...values: any[]): VaporFragment;
@@ -1359,4 +1360,4 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
1359
1360
  }
1360
1361
  type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
1361
1362
  //#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, createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
1363
+ 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, getCurrentInstance, setNodes, useFullProps, useProps, useRef };
package/dist/index.js CHANGED
@@ -1,6 +1,10 @@
1
- import { EffectScope, VaporFragment, createComponent as createComponent$1, getCurrentInstance, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
1
+ import * as Vue from "vue";
2
+ import { EffectScope, VaporFragment, createComponent as createComponent$1, insert, isFragment, isVaporComponent, proxyRefs, remove, renderEffect, shallowRef as useRef, toRefs, useAttrs } from "vue";
2
3
 
3
4
  //#region src/core/runtime.ts
5
+ function getCurrentInstance() {
6
+ return Vue.currentInstance || Vue.getCurrentInstance();
7
+ }
4
8
  const createComponent = (...args) => {
5
9
  typeof args[0] === "function" && (args[0].__vapor = true);
6
10
  return createComponent$1(...args);
@@ -18,7 +22,7 @@ const createComponent = (...args) => {
18
22
  * ```
19
23
  */
20
24
  function useProps() {
21
- const i = getCurrentInstance(true);
25
+ const i = getCurrentInstance();
22
26
  return i.props;
23
27
  }
24
28
  /**
@@ -110,4 +114,4 @@ function createNodes(...values) {
110
114
  }
111
115
 
112
116
  //#endregion
113
- export { createComponent, createNodes, setNodes, useFullProps, useProps, useRef };
117
+ export { createComponent, createNodes, getCurrentInstance, 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
- require('./core-BEqRwfoK.cjs');
4
- require('./raw-DW3TnyGX.cjs');
5
- require('./unplugin-B_wqXCTq.cjs');
6
- const require_vite = require('./vite-Dgw3nh-Y.cjs');
7
- const require_webpack = require('./webpack-BnV_gKcg.cjs');
3
+ require('./core-C-41-Q2Y.cjs');
4
+ require('./raw-CYDpZE8-.cjs');
5
+ require('./unplugin-DBHzlOuN.cjs');
6
+ const require_vite = require('./vite-BwPOjczq.cjs');
7
+ const require_webpack = require('./webpack-srNWU-jd.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,8 +1,8 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as _nuxt_schema13 from "@nuxt/schema";
2
+ import * as _nuxt_schema2 from "@nuxt/schema";
3
3
 
4
4
  //#region src/nuxt.d.ts
5
5
  interface ModuleOptions extends Options {}
6
- declare const _default: _nuxt_schema13.NuxtModule<ModuleOptions, ModuleOptions, false>;
6
+ declare const _default: _nuxt_schema2.NuxtModule<ModuleOptions, ModuleOptions, false>;
7
7
  //#endregion
8
8
  export { ModuleOptions, _default as default };
package/dist/nuxt.js CHANGED
@@ -1,8 +1,8 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import "./unplugin-fqdlwNc1.js";
4
- import { vite_default } from "./vite-DsiGkw99.js";
5
- import { webpack_default } from "./webpack-DMPoVLGY.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import "./unplugin-Cv5nDfeb.js";
4
+ import { vite_default } from "./vite-BtTbvmfA.js";
5
+ import { webpack_default } from "./webpack-BBIFuz_t.js";
6
6
  import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
7
7
  import "@nuxt/schema";
8
8
 
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const require_core = require('./core-BEqRwfoK.cjs');
2
+ const require_core = require('./core-C-41-Q2Y.cjs');
3
3
  const __babel_core = require_chunk.__toESM(require("@babel/core"));
4
4
  const __babel_plugin_transform_typescript = require_chunk.__toESM(require("@babel/plugin-transform-typescript"));
5
5
  const __vue_jsx_vapor_macros_raw = require_chunk.__toESM(require("@vue-jsx-vapor/macros/raw"));
@@ -90,7 +90,11 @@ function injectHMRAndSSR(result, id, options) {
90
90
  for (const { local, exported, id: id$1 } of hotComponents) {
91
91
  code += `\n${local}.__hmrId = "${id$1}";\n__VUE_HMR_RUNTIME__.createRecord("${id$1}", ${local});`;
92
92
  callbackCode += `
93
- __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}'].setup || mod['${exported}']);`;
93
+ if (typeof mod['${exported}'] === 'function') {
94
+ __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}']);
95
+ } else {
96
+ __VUE_HMR_RUNTIME__.reload(mod['${exported}'].__hmrId, mod['${exported}']);
97
+ };`;
94
98
  }
95
99
  code += `
96
100
  if (import.meta.hot) {
@@ -112,7 +116,7 @@ function isDefineComponentCall(node, names) {
112
116
 
113
117
  //#endregion
114
118
  //#region src/core/runtime.ts?raw
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";
119
+ var runtime_default = "import {\n createComponent as _createComponent,\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 function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\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();\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
120
 
117
121
  //#endregion
118
122
  //#region src/core/vue-jsx.ts
@@ -1,4 +1,4 @@
1
- import { transformVueJsxVapor } from "./core-BDE4GLH8.js";
1
+ import { transformVueJsxVapor } from "./core-CJgJmh2O.js";
2
2
  import { transformSync } from "@babel/core";
3
3
  import babelTypescript from "@babel/plugin-transform-typescript";
4
4
  import macros from "@vue-jsx-vapor/macros/raw";
@@ -89,7 +89,11 @@ function injectHMRAndSSR(result, id, options) {
89
89
  for (const { local, exported, id: id$1 } of hotComponents) {
90
90
  code += `\n${local}.__hmrId = "${id$1}";\n__VUE_HMR_RUNTIME__.createRecord("${id$1}", ${local});`;
91
91
  callbackCode += `
92
- __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}'].setup || mod['${exported}']);`;
92
+ if (typeof mod['${exported}'] === 'function') {
93
+ __VUE_HMR_RUNTIME__.rerender(mod['${exported}'].__hmrId, mod['${exported}']);
94
+ } else {
95
+ __VUE_HMR_RUNTIME__.reload(mod['${exported}'].__hmrId, mod['${exported}']);
96
+ };`;
93
97
  }
94
98
  code += `
95
99
  if (import.meta.hot) {
@@ -111,7 +115,7 @@ function isDefineComponentCall(node, names) {
111
115
 
112
116
  //#endregion
113
117
  //#region src/core/runtime.ts?raw
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";
118
+ var runtime_default = "import {\n createComponent as _createComponent,\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 function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\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();\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
119
 
116
120
  //#endregion
117
121
  //#region src/core/vue-jsx.ts
package/dist/raw.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- require('./core-BEqRwfoK.cjs');
3
- const require_raw = require('./raw-DW3TnyGX.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ const require_raw = require('./raw-CYDpZE8-.cjs');
4
4
 
5
5
  exports.default = require_raw.raw_default;
package/dist/raw.js CHANGED
@@ -1,4 +1,4 @@
1
- import "./core-BDE4GLH8.js";
2
- import { raw_default } from "./raw-CiOcntA4.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import { raw_default } from "./raw-yXCo36CS.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
- require('./core-BEqRwfoK.cjs');
4
- require('./raw-DW3TnyGX.cjs');
5
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
3
+ require('./core-C-41-Q2Y.cjs');
4
+ require('./raw-CYDpZE8-.cjs');
5
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
6
6
  const unplugin = require_chunk.__toESM(require("unplugin"));
7
7
 
8
8
  //#region src/rolldown.ts
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as rollup1 from "rollup";
2
+ import * as rollup6 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup6.Plugin<any> | rollup6.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-CBMw6D8V.js";
2
- import * as rollup6 from "rollup";
2
+ import * as rollup1 from "rollup";
3
3
 
4
4
  //#region src/rolldown.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup6.Plugin<any> | rollup6.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup1.Plugin<any> | rollup1.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rolldown.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unpluginFactory } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unpluginFactory } from "./unplugin-Cv5nDfeb.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
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ const require_unplugin = require('./unplugin-DBHzlOuN.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,7 +1,7 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as rollup8 from "rollup";
2
+ import * as rollup1 from "rollup";
3
3
 
4
4
  //#region src/rollup.d.ts
5
- declare const _default: (options?: Options | undefined) => rollup8.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => rollup1.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rollup.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-CBMw6D8V.js";
2
- import * as rollup13 from "rollup";
2
+ import * as rollup5 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) => rollup5.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/rollup.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.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
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
5
5
 
6
6
  //#region src/rspack.ts
7
7
  var rspack_default = require_unplugin.unplugin_default.rspack;
package/dist/rspack.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.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-CiOcntA4.js";
1
+ import { raw_default } from "./raw-yXCo36CS.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-DW3TnyGX.cjs');
2
+ const require_raw = require('./raw-CYDpZE8-.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
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
5
5
 
6
6
  exports.default = require_unplugin.unplugin_default;
7
7
  exports.unplugin = require_unplugin.unplugin;
@@ -1,9 +1,9 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as unplugin9 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: unplugin9.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin4.UnpluginInstance<Options | undefined, true>;
8
8
  //#endregion
9
9
  export { Options, unplugin as default, unplugin, unpluginFactory };
@@ -1,9 +1,9 @@
1
1
  import { Options } from "./options-CBMw6D8V.js";
2
- import * as unplugin4 from "unplugin";
2
+ import * as unplugin7 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: unplugin4.UnpluginInstance<Options | undefined, true>;
7
+ declare const unplugin: unplugin7.UnpluginInstance<Options | undefined, true>;
8
8
  //#endregion
9
9
  export { Options, unplugin as default, unplugin, unpluginFactory };
package/dist/unplugin.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import { unplugin, unpluginFactory, unplugin_default } from "./unplugin-Cv5nDfeb.js";
4
4
 
5
5
  export { unplugin_default as default, unplugin, unpluginFactory };
@@ -0,0 +1,7 @@
1
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.js";
2
+
3
+ //#region src/vite.ts
4
+ var vite_default = unplugin_default.vite;
5
+
6
+ //#endregion
7
+ export { vite_default };
@@ -1,4 +1,4 @@
1
- const require_unplugin = require('./unplugin-B_wqXCTq.cjs');
1
+ const require_unplugin = require('./unplugin-DBHzlOuN.cjs');
2
2
 
3
3
  //#region src/vite.ts
4
4
  var vite_default = require_unplugin.unplugin_default.vite;
package/dist/vite.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- require('./unplugin-B_wqXCTq.cjs');
5
- const require_vite = require('./vite-Dgw3nh-Y.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ require('./unplugin-DBHzlOuN.cjs');
5
+ const require_vite = require('./vite-BwPOjczq.cjs');
6
6
 
7
7
  exports.default = require_vite.vite_default;
package/dist/vite.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as vite4 from "vite";
2
+ import * as vite13 from "vite";
3
3
 
4
4
  //#region src/vite.d.ts
5
- declare const _default: (options?: Options | undefined) => vite4.Plugin<any>[];
5
+ declare const _default: (options?: Options | undefined) => vite13.Plugin<any>[];
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/vite.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import "./unplugin-fqdlwNc1.js";
4
- import { vite_default } from "./vite-DsiGkw99.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import "./unplugin-Cv5nDfeb.js";
4
+ import { vite_default } from "./vite-BtTbvmfA.js";
5
5
 
6
6
  export { vite_default as default };
package/dist/volar.cjs CHANGED
@@ -6,7 +6,7 @@ const __vue_macros_volar_jsx_ref = require_chunk.__toESM(require("@vue-macros/vo
6
6
  const ts_macro = require_chunk.__toESM(require("ts-macro"));
7
7
 
8
8
  //#region src/volar.ts
9
- const plugin = (0, ts_macro.createPlugin)((ctx, options) => {
9
+ const plugin = (0, ts_macro.createPlugin)((ctx, options = ctx.vueCompilerOptions["vue-jsx-vapor"]) => {
10
10
  return [
11
11
  (0, __vue_macros_volar_jsx_directive.default)()(ctx),
12
12
  options?.ref === false ? [] : (0, __vue_macros_volar_jsx_ref.default)(options?.ref === true ? void 0 : options?.ref)(ctx),
@@ -16,4 +16,5 @@ const plugin = (0, ts_macro.createPlugin)((ctx, options) => {
16
16
  var volar_default = plugin;
17
17
 
18
18
  //#endregion
19
- exports.default = volar_default;
19
+ exports.default = volar_default;
20
+ exports["module.exports"] = plugin;
package/dist/volar.d.cts CHANGED
@@ -4,4 +4,4 @@ import { PluginReturn } from "ts-macro";
4
4
  //#region src/volar.d.ts
5
5
  declare const plugin: PluginReturn<Options | undefined, true>;
6
6
  //#endregion
7
- export { plugin as default };
7
+ export { plugin as default, plugin as "module.exports" };
package/dist/volar.d.ts CHANGED
@@ -4,4 +4,4 @@ import { PluginReturn } from "ts-macro";
4
4
  //#region src/volar.d.ts
5
5
  declare const plugin: PluginReturn<Options | undefined, true>;
6
6
  //#endregion
7
- export { plugin as default };
7
+ export { plugin as default, plugin as "module.exports" };
package/dist/volar.js CHANGED
@@ -4,7 +4,7 @@ import jsxRef from "@vue-macros/volar/jsx-ref";
4
4
  import { createPlugin } from "ts-macro";
5
5
 
6
6
  //#region src/volar.ts
7
- const plugin = createPlugin((ctx, options) => {
7
+ const plugin = createPlugin((ctx, options = ctx.vueCompilerOptions["vue-jsx-vapor"]) => {
8
8
  return [
9
9
  jsxDirective()(ctx),
10
10
  options?.ref === false ? [] : jsxRef(options?.ref === true ? void 0 : options?.ref)(ctx),
@@ -14,4 +14,4 @@ const plugin = createPlugin((ctx, options) => {
14
14
  var volar_default = plugin;
15
15
 
16
16
  //#endregion
17
- export { volar_default as default };
17
+ export { volar_default as default, plugin as "module.exports" };
@@ -1,4 +1,4 @@
1
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
1
+ import { unplugin_default } from "./unplugin-Cv5nDfeb.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-B_wqXCTq.cjs');
1
+ const require_unplugin = require('./unplugin-DBHzlOuN.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
- require('./core-BEqRwfoK.cjs');
3
- require('./raw-DW3TnyGX.cjs');
4
- require('./unplugin-B_wqXCTq.cjs');
5
- const require_webpack = require('./webpack-BnV_gKcg.cjs');
2
+ require('./core-C-41-Q2Y.cjs');
3
+ require('./raw-CYDpZE8-.cjs');
4
+ require('./unplugin-DBHzlOuN.cjs');
5
+ const require_webpack = require('./webpack-srNWU-jd.cjs');
6
6
 
7
7
  exports.default = require_webpack.webpack_default;
@@ -1,7 +1,7 @@
1
1
  import { Options } from "./options-jKAq0dFf.cjs";
2
- import * as webpack6 from "webpack";
2
+ import * as webpack9 from "webpack";
3
3
 
4
4
  //#region src/webpack.d.ts
5
- declare const _default: (options?: Options | undefined) => webpack6.WebpackPluginInstance;
5
+ declare const _default: (options?: Options | undefined) => webpack9.WebpackPluginInstance;
6
6
  //#endregion
7
7
  export { _default as default };
package/dist/webpack.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./core-BDE4GLH8.js";
2
- import "./raw-CiOcntA4.js";
3
- import "./unplugin-fqdlwNc1.js";
4
- import { webpack_default } from "./webpack-DMPoVLGY.js";
1
+ import "./core-CJgJmh2O.js";
2
+ import "./raw-yXCo36CS.js";
3
+ import "./unplugin-Cv5nDfeb.js";
4
+ import { webpack_default } from "./webpack-BBIFuz_t.js";
5
5
 
6
6
  export { webpack_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-jsx-vapor",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "Convert Vue JSX to Vapor",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -165,17 +165,17 @@
165
165
  "dependencies": {
166
166
  "@babel/core": "^7.28.0",
167
167
  "@babel/plugin-transform-typescript": "^7.28.0",
168
- "@vue-macros/jsx-directive": "^3.0.0-beta.15",
169
- "@vue-macros/volar": "^3.0.0-beta.15",
168
+ "@vue-macros/jsx-directive": "^3.0.0-beta.17",
169
+ "@vue-macros/volar": "^3.0.0-beta.17",
170
170
  "@vue/babel-plugin-jsx": "^1.4.0",
171
171
  "hash-sum": "^2.0.0",
172
172
  "pathe": "^2.0.3",
173
- "ts-macro": "^0.1.35",
173
+ "ts-macro": "^0.2.7",
174
174
  "unplugin": "^2.3.5",
175
175
  "unplugin-utils": "^0.2.4",
176
- "@vue-jsx-vapor/babel": "2.5.0",
177
- "@vue-jsx-vapor/compiler": "2.5.0",
178
- "@vue-jsx-vapor/macros": "2.5.0"
176
+ "@vue-jsx-vapor/babel": "2.5.2",
177
+ "@vue-jsx-vapor/compiler": "2.5.2",
178
+ "@vue-jsx-vapor/macros": "2.5.2"
179
179
  },
180
180
  "devDependencies": {
181
181
  "@nuxt/kit": "^3.17.6",
@@ -183,7 +183,7 @@
183
183
  "@types/babel__core": "^7.20.5",
184
184
  "@types/hash-sum": "^1.0.2",
185
185
  "csstype": "^3.1.3",
186
- "vue": "https://pkg.pr.new/vue@51677cd"
186
+ "vue": "https://pkg.pr.new/vue@5771104"
187
187
  },
188
188
  "scripts": {
189
189
  "build": "tsdown",
@@ -1,7 +0,0 @@
1
- import { unplugin_default } from "./unplugin-fqdlwNc1.js";
2
-
3
- //#region src/vite.ts
4
- var vite_default = unplugin_default.vite;
5
-
6
- //#endregion
7
- export { vite_default };