@vue-jsx-vapor/runtime 2.6.3 → 2.6.6

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.
@@ -18,7 +18,7 @@ const createComponentWithFallback$1 = (type, ...args) => {
18
18
  };
19
19
  const createProxyComponent = (createComponent$2, type, props, ...args) => {
20
20
  if (type === Fragment) {
21
- type = (_, { slots }) => slots.default();
21
+ type = (_, { slots }) => slots.default ? slots.default() : [];
22
22
  props = null;
23
23
  }
24
24
  const i = getCurrentInstance();
@@ -19,7 +19,7 @@ const createComponentWithFallback = (type, ...args) => {
19
19
  };
20
20
  const createProxyComponent = (createComponent$1, type, props, ...args) => {
21
21
  if (type === vue.Fragment) {
22
- type = (_, { slots }) => slots.default();
22
+ type = (_, { slots }) => slots.default ? slots.default() : [];
23
23
  props = null;
24
24
  }
25
25
  const i = require_helpers.getCurrentInstance();
@@ -1,6 +1,6 @@
1
1
  require('./block-Ce05UNsp.cjs');
2
2
  require('./helpers-z4TWV9SY.cjs');
3
- const require_component = require('./component-CYhpM6xy.cjs');
3
+ const require_component = require('./component-DBuDOGBI.cjs');
4
4
 
5
5
  exports.createComponent = require_component.createComponent;
6
6
  exports.createComponentWithFallback = require_component.createComponentWithFallback;
package/dist/component.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./block-CyA0ggJw.js";
2
2
  import "./helpers-C0DfvsA-.js";
3
- import { createComponent, createComponentWithFallback } from "./component-CpEIVhMJ.js";
3
+ import { createComponent, createComponentWithFallback } from "./component-C8x9Na5a.js";
4
4
 
5
5
  export { createComponent, createComponentWithFallback };
@@ -1,5 +1,5 @@
1
1
  const require_block = require('./block-Ce05UNsp.cjs');
2
- const require_component = require('./component-CYhpM6xy.cjs');
2
+ const require_component = require('./component-DBuDOGBI.cjs');
3
3
 
4
4
  //#region src/h.ts
5
5
  function h(type, propsOrChildren, children) {
@@ -1,5 +1,5 @@
1
1
  import { isBlock } from "./block-CyA0ggJw.js";
2
- import { createComponentWithFallback } from "./component-CpEIVhMJ.js";
2
+ import { createComponentWithFallback } from "./component-C8x9Na5a.js";
3
3
 
4
4
  //#region src/h.ts
5
5
  function h(type, propsOrChildren, children) {
package/dist/h.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  require('./block-Ce05UNsp.cjs');
2
2
  require('./helpers-z4TWV9SY.cjs');
3
- require('./component-CYhpM6xy.cjs');
4
- const require_h = require('./h-Dk0b-awG.cjs');
3
+ require('./component-DBuDOGBI.cjs');
4
+ const require_h = require('./h-BzLMgVDl.cjs');
5
5
 
6
6
  exports.h = require_h.h;
package/dist/h.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import "./block-CyA0ggJw.js";
2
2
  import "./helpers-C0DfvsA-.js";
3
- import "./component-CpEIVhMJ.js";
4
- import { h } from "./h-D8Dfh6Ov.js";
3
+ import "./component-C8x9Na5a.js";
4
+ import { h } from "./h-D3vIqt04.js";
5
5
 
6
6
  export { h };
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require('./chunk-CUT6urMc.cjs');
2
2
  const require_block = require('./block-Ce05UNsp.cjs');
3
3
  const require_helpers = require('./helpers-z4TWV9SY.cjs');
4
- const require_component = require('./component-CYhpM6xy.cjs');
5
- const require_h = require('./h-Dk0b-awG.cjs');
4
+ const require_component = require('./component-DBuDOGBI.cjs');
5
+ const require_h = require('./h-BzLMgVDl.cjs');
6
6
  require('./jsx-CTAfwhvm.cjs');
7
7
  const require_node = require('./node-BLet7XpW.cjs');
8
8
  const require_vue = require('./vue-DN14pNs9.cjs');
package/dist/index.d.cts CHANGED
@@ -4,6 +4,6 @@ import { h } from "./h-JmVbnDXf.cjs";
4
4
  import { getCurrentInstance, useFullProps, useProps } from "./helpers-DeLHxsS2.cjs";
5
5
  import { 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 } from "./jsx-Dx2zpbtl.cjs";
6
6
  import { createNodes, setNodes } from "./node-w0ksMVPx.cjs";
7
- import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-CPpwobxQ.cjs";
7
+ import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-D4TD6DcD.cjs";
8
8
  import { shallowRef as useRef } from "vue";
9
9
  export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DefineVaporComponent, DefineVaporSetupFnComponent, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, FunctionalVaporComponent, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, NodeArrayChildren, NodeChild, ObjectHTMLAttributes, ObjectVaporComponent, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, RenderReturn, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, TypeEmitsToOptions, UIEvent, UIEventHandler, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createComponent, createComponentWithFallback, createNodes, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, setNodes, useFullProps, useProps, useRef };
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@ import { h } from "./h-ZvZ1VCbf.js";
4
4
  import { getCurrentInstance, useFullProps, useProps } from "./helpers-B9BMZz0T.js";
5
5
  import { 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 } from "./jsx-Beo7WcCj.js";
6
6
  import { createNodes, setNodes } from "./node-C2jZYT0Y.js";
7
- import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-BvYJtxhH.js";
7
+ import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-DpDMiox0.js";
8
8
  import { shallowRef as useRef } from "vue";
9
9
  export { AbstractView, AnchorHTMLAttributes, AnimationEvent, AnimationEventHandler, AreaHTMLAttributes, AriaAttributes, AudioHTMLAttributes, BaseEventHandler, BaseHTMLAttributes, BaseSyntheticEvent, BlockquoteHTMLAttributes, ButtonHTMLAttributes, CSSProperties, CanvasHTMLAttributes, ChangeEvent, ChangeEventHandler, ClipboardEvent, ClipboardEventHandler, ColHTMLAttributes, ColgroupHTMLAttributes, CompositionEvent, CompositionEventHandler, DataHTMLAttributes, DefineVaporComponent, DefineVaporSetupFnComponent, DelHTMLAttributes, DetailsHTMLAttributes, DialogHTMLAttributes, DragEvent, DragEventHandler, EmbedHTMLAttributes, EventHandler, EventHandlers, Events, FieldsetHTMLAttributes, FocusEvent, FocusEventHandler, FormEvent, FormEventHandler, FormHTMLAttributes, FunctionalVaporComponent, HTMLAttributes, HtmlHTMLAttributes, IframeHTMLAttributes, ImgHTMLAttributes, InputHTMLAttributes, InputTypeHTMLAttribute, InsHTMLAttributes, IntrinsicElementAttributes, KeyboardEvent, KeyboardEventHandler, KeygenHTMLAttributes, LabelHTMLAttributes, LiHTMLAttributes, LinkHTMLAttributes, MapHTMLAttributes, MediaHTMLAttributes, MenuHTMLAttributes, MetaHTMLAttributes, MeterHTMLAttributes, ModifierKey, MouseEvent, MouseEventHandler, NativeElements, NodeArrayChildren, NodeChild, ObjectHTMLAttributes, ObjectVaporComponent, OlHTMLAttributes, OptgroupHTMLAttributes, OptionHTMLAttributes, OutputHTMLAttributes, ParamHTMLAttributes, ProgressHTMLAttributes, QuoteHTMLAttributes, RenderReturn, ReservedProps, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, TypeEmitsToOptions, UIEvent, UIEventHandler, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler, createComponent, createComponentWithFallback, createNodes, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, setNodes, useFullProps, useProps, useRef };
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { isBlock, normalizeNode } from "./block-CyA0ggJw.js";
2
2
  import { getCurrentInstance, useFullProps, useProps } from "./helpers-C0DfvsA-.js";
3
- import { createComponent, createComponentWithFallback } from "./component-CpEIVhMJ.js";
4
- import { h } from "./h-D8Dfh6Ov.js";
3
+ import { createComponent, createComponentWithFallback } from "./component-C8x9Na5a.js";
4
+ import { h } from "./h-D3vIqt04.js";
5
5
  import "./jsx-D6bpAbiF.js";
6
6
  import { createNodes, setNodes } from "./node-Bd0fT44y.js";
7
7
  import { defineVaporComponent } from "./vue-CLfSEbpD.js";
@@ -28,8 +28,8 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
28
28
  emit: EmitFn<Emits>;
29
29
  emitted: Record<string, boolean> | null;
30
30
  expose: (<T extends Record<string, any> = Exposed>(exposed: T) => void) & string[];
31
- exposed: Record<string, any> extends Exposed ? Exposed | null : Exposed;
32
- exposeProxy: Record<string, any> extends Exposed ? Exposed | null : ShallowUnwrapRef<Exposed>;
31
+ exposed: Exposed | null;
32
+ exposeProxy: Prettify<ShallowUnwrapRef<Exposed>> | null;
33
33
  refs: TypeRefs;
34
34
  provides: Record<string, any>;
35
35
  ids: [string, number, number];
@@ -28,8 +28,8 @@ declare class VaporComponentInstance<Props extends Record<string, any> = {}, Emi
28
28
  emit: EmitFn<Emits>;
29
29
  emitted: Record<string, boolean> | null;
30
30
  expose: (<T extends Record<string, any> = Exposed>(exposed: T) => void) & string[];
31
- exposed: Record<string, any> extends Exposed ? Exposed | null : Exposed;
32
- exposeProxy: Record<string, any> extends Exposed ? Exposed | null : ShallowUnwrapRef<Exposed>;
31
+ exposed: Exposed | null;
32
+ exposeProxy: Prettify<ShallowUnwrapRef<Exposed>> | null;
33
33
  refs: TypeRefs;
34
34
  provides: Record<string, any>;
35
35
  ids: [string, number, number];
package/dist/vue.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-CPpwobxQ.cjs";
1
+ import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-D4TD6DcD.cjs";
2
2
  export { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent };
package/dist/vue.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-BvYJtxhH.js";
1
+ import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue-DpDMiox0.js";
2
2
  export { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue-jsx-vapor/runtime",
3
- "version": "2.6.3",
3
+ "version": "2.6.6",
4
4
  "description": "Vue JSX Vapor Runtime",
5
5
  "type": "module",
6
6
  "keywords": [