@vue-jsx-vapor/runtime 3.2.11 → 3.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CbDLau6x.cjs → chunk-CKQMccvm.cjs} +13 -19
- package/dist/h.cjs +5 -6
- package/dist/h.d.cts +0 -1
- package/dist/h.d.ts +0 -1
- package/dist/h.js +1 -3
- package/dist/index.cjs +14 -14
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -2
- package/dist/jsx.cjs +1 -0
- package/dist/jsx.d.cts +3 -2
- package/dist/jsx.d.ts +3 -2
- package/dist/jsx.js +1 -1
- package/dist/props.cjs +4 -5
- package/dist/props.d.cts +2 -2
- package/dist/props.d.ts +2 -2
- package/dist/props.js +1 -3
- package/dist/raw.cjs +2 -7
- package/dist/raw.js +1 -6
- package/dist/ssr.cjs +3 -4
- package/dist/ssr.js +1 -3
- package/dist/types.cjs +1 -0
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/vapor.cjs +4 -5
- package/dist/vapor.d.cts +2 -2
- package/dist/vapor.d.ts +2 -2
- package/dist/vapor.js +1 -3
- package/dist/vdom.cjs +3 -4
- package/dist/vdom.d.cts +3 -3
- package/dist/vdom.d.ts +3 -3
- package/dist/vdom.js +1 -3
- package/package.json +5 -5
- /package/dist/{types-BKjMGTxH.d.cts → types-C847TkaY.d.cts} +0 -0
- /package/dist/{types-CqAkLSQ8.d.ts → types-CLKH5kLf.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -6,16 +6,12 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __copyProps = (to, from, except, desc) => {
|
|
9
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
10
|
+
key = keys[i];
|
|
11
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
12
|
+
get: ((k) => from[k]).bind(null, key),
|
|
13
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
14
|
+
});
|
|
19
15
|
}
|
|
20
16
|
return to;
|
|
21
17
|
};
|
|
@@ -23,12 +19,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
19
|
value: mod,
|
|
24
20
|
enumerable: true
|
|
25
21
|
}) : target, mod));
|
|
26
|
-
|
|
27
22
|
//#endregion
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
23
|
+
Object.defineProperty(exports, "__toESM", {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function() {
|
|
26
|
+
return __toESM;
|
|
27
|
+
}
|
|
28
|
+
});
|
package/dist/h.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_vapor = require("./vapor.cjs");
|
|
3
4
|
let vue = require("vue");
|
|
4
|
-
vue = require_chunk.__toESM(vue);
|
|
5
|
-
|
|
5
|
+
vue = require_chunk.__toESM(vue, 1);
|
|
6
6
|
//#region src/h.ts
|
|
7
7
|
/* @__NO_SIDE_EFFECTS__ */
|
|
8
8
|
function h(type, props, children) {
|
|
@@ -32,6 +32,5 @@ function resolveProps(props) {
|
|
|
32
32
|
}
|
|
33
33
|
return resolvedProps;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
35
|
//#endregion
|
|
37
|
-
exports.h = h;
|
|
36
|
+
exports.h = h;
|
package/dist/h.d.cts
CHANGED
package/dist/h.d.ts
CHANGED
package/dist/h.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { createComponent, createProxyComponent, normalizeNode } from "./vapor.js";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/h.ts
|
|
5
4
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6
5
|
function h(type, props, children) {
|
|
@@ -30,6 +29,5 @@ function resolveProps(props) {
|
|
|
30
29
|
}
|
|
31
30
|
return resolvedProps;
|
|
32
31
|
}
|
|
33
|
-
|
|
34
32
|
//#endregion
|
|
35
|
-
export { h };
|
|
33
|
+
export { h };
|
package/dist/index.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
require(
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_vapor = require("./vapor.cjs");
|
|
4
|
+
const require_h = require("./h.cjs");
|
|
5
|
+
require("./jsx.cjs");
|
|
6
|
+
const require_props = require("./props.cjs");
|
|
7
|
+
const require_ssr = require("./ssr.cjs");
|
|
8
|
+
const require_vdom = require("./vdom.cjs");
|
|
8
9
|
let vue = require("vue");
|
|
9
|
-
|
|
10
10
|
exports.For = require_vdom.For;
|
|
11
11
|
exports.VaporFor = require_vapor.VaporFor;
|
|
12
12
|
exports.createComponent = require_vapor.createComponent;
|
|
@@ -26,9 +26,9 @@ exports.setNodes = require_vapor.setNodes;
|
|
|
26
26
|
exports.ssrRegisterHelper = require_ssr.ssrRegisterHelper;
|
|
27
27
|
exports.useFullProps = require_props.useFullProps;
|
|
28
28
|
exports.useProps = require_props.useProps;
|
|
29
|
-
Object.defineProperty(exports,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
});
|
|
29
|
+
Object.defineProperty(exports, "useRef", {
|
|
30
|
+
enumerable: true,
|
|
31
|
+
get: function() {
|
|
32
|
+
return vue.shallowRef;
|
|
33
|
+
}
|
|
34
|
+
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SlotsToProps } from "./types-
|
|
1
|
+
import { i as SlotsToProps } from "./types-C847TkaY.cjs";
|
|
2
2
|
import { DefineVaporComponent, DefineVaporSetupFnComponent, NodeArrayChildren, NodeChild, VaporFor, createComponent, createNodes, createProxyComponent, defineVaporComponent, defineVaporSSRComponent, isBlock, normalizeNode, setNodes } from "./vapor.cjs";
|
|
3
3
|
import { h } from "./h.cjs";
|
|
4
4
|
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, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler } from "./jsx.cjs";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as SlotsToProps } from "./types-
|
|
1
|
+
import { i as SlotsToProps } from "./types-CLKH5kLf.js";
|
|
2
2
|
import { DefineVaporComponent, DefineVaporSetupFnComponent, NodeArrayChildren, NodeChild, VaporFor, createComponent, createNodes, createProxyComponent, defineVaporComponent, defineVaporSSRComponent, isBlock, normalizeNode, setNodes } from "./vapor.js";
|
|
3
3
|
import { h } from "./h.js";
|
|
4
4
|
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, SVGAttributes, ScriptHTMLAttributes, SelectHTMLAttributes, SourceHTMLAttributes, StyleHTMLAttributes, StyleValue, SyntheticEvent, TableHTMLAttributes, TdHTMLAttributes, TextareaHTMLAttributes, ThHTMLAttributes, TimeHTMLAttributes, TrackHTMLAttributes, TransitionEvent, TransitionEventHandler, UIEvent, UIEventHandler, VideoHTMLAttributes, WebViewHTMLAttributes, WheelEvent, WheelEventHandler } from "./jsx.js";
|
package/dist/index.js
CHANGED
|
@@ -5,5 +5,4 @@ import { getCurrentInstance, useFullProps, useProps } from "./props.js";
|
|
|
5
5
|
import { ssrRegisterHelper } from "./ssr.js";
|
|
6
6
|
import { For, createVNodeCache, defineComponent, normalizeSlot, normalizeVNode } from "./vdom.js";
|
|
7
7
|
import { shallowRef as useRef } from "vue";
|
|
8
|
-
|
|
9
|
-
export { For, VaporFor, createComponent, createNodes, createProxyComponent, createVNodeCache, defineComponent, defineVaporComponent, defineVaporSSRComponent, getCurrentInstance, h, isBlock, normalizeNode, normalizeSlot, normalizeVNode, setNodes, ssrRegisterHelper, useFullProps, useProps, useRef };
|
|
8
|
+
export { For, VaporFor, createComponent, createNodes, createProxyComponent, createVNodeCache, defineComponent, defineVaporComponent, defineVaporSSRComponent, getCurrentInstance, h, isBlock, normalizeNode, normalizeSlot, normalizeVNode, setNodes, ssrRegisterHelper, useFullProps, useProps, useRef };
|
package/dist/jsx.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
package/dist/jsx.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
2
|
import * as CSS from "csstype";
|
|
3
3
|
|
|
4
4
|
//#region src/jsx.d.ts
|
|
@@ -16,6 +16,7 @@ interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesH
|
|
|
16
16
|
type Booleanish = boolean | 'true' | 'false';
|
|
17
17
|
type Numberish = number | string;
|
|
18
18
|
interface HTMLWebViewElement extends HTMLElement {}
|
|
19
|
+
interface StyleMedia {}
|
|
19
20
|
interface AriaAttributes {
|
|
20
21
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
21
22
|
'aria-activedescendant'?: string | undefined;
|
|
@@ -1191,7 +1192,7 @@ interface Events<T = Element> {
|
|
|
1191
1192
|
onTransitionstart: TransitionEventHandler<T>;
|
|
1192
1193
|
}
|
|
1193
1194
|
type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
|
|
1194
|
-
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] &
|
|
1195
|
+
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & _$vue.ReservedProps };
|
|
1195
1196
|
interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
1196
1197
|
nativeEvent: E;
|
|
1197
1198
|
currentTarget: C;
|
package/dist/jsx.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
2
|
import * as CSS from "csstype";
|
|
3
3
|
|
|
4
4
|
//#region src/jsx.d.ts
|
|
@@ -16,6 +16,7 @@ interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesH
|
|
|
16
16
|
type Booleanish = boolean | 'true' | 'false';
|
|
17
17
|
type Numberish = number | string;
|
|
18
18
|
interface HTMLWebViewElement extends HTMLElement {}
|
|
19
|
+
interface StyleMedia {}
|
|
19
20
|
interface AriaAttributes {
|
|
20
21
|
/** Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. */
|
|
21
22
|
'aria-activedescendant'?: string | undefined;
|
|
@@ -1191,7 +1192,7 @@ interface Events<T = Element> {
|
|
|
1191
1192
|
onTransitionstart: TransitionEventHandler<T>;
|
|
1192
1193
|
}
|
|
1193
1194
|
type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void };
|
|
1194
|
-
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] &
|
|
1195
|
+
type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & _$vue.ReservedProps };
|
|
1195
1196
|
interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
1196
1197
|
nativeEvent: E;
|
|
1197
1198
|
currentTarget: C;
|
package/dist/jsx.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
package/dist/props.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
|
-
vue = require_chunk.__toESM(vue);
|
|
4
|
-
|
|
4
|
+
vue = require_chunk.__toESM(vue, 1);
|
|
5
5
|
//#region src/props.ts
|
|
6
6
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7
7
|
function getCurrentInstance() {
|
|
@@ -68,8 +68,7 @@ function useFullProps() {
|
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
}
|
|
71
|
-
|
|
72
71
|
//#endregion
|
|
73
72
|
exports.getCurrentInstance = getCurrentInstance;
|
|
74
73
|
exports.useFullProps = useFullProps;
|
|
75
|
-
exports.useProps = useProps;
|
|
74
|
+
exports.useProps = useProps;
|
package/dist/props.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/props.d.ts
|
|
4
|
-
declare function getCurrentInstance():
|
|
4
|
+
declare function getCurrentInstance(): _$vue.GenericComponentInstance | null;
|
|
5
5
|
/**
|
|
6
6
|
* Returns the props of the current component instance.
|
|
7
7
|
*
|
package/dist/props.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _$vue from "vue";
|
|
2
2
|
|
|
3
3
|
//#region src/props.d.ts
|
|
4
|
-
declare function getCurrentInstance():
|
|
4
|
+
declare function getCurrentInstance(): _$vue.GenericComponentInstance | null;
|
|
5
5
|
/**
|
|
6
6
|
* Returns the props of the current component instance.
|
|
7
7
|
*
|
package/dist/props.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
2
|
import { computed, useAttrs } from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/props.ts
|
|
5
4
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6
5
|
function getCurrentInstance() {
|
|
@@ -67,6 +66,5 @@ function useFullProps() {
|
|
|
67
66
|
}
|
|
68
67
|
});
|
|
69
68
|
}
|
|
70
|
-
|
|
71
69
|
//#endregion
|
|
72
|
-
export { getCurrentInstance, useFullProps, useProps };
|
|
70
|
+
export { getCurrentInstance, useFullProps, useProps };
|
package/dist/raw.cjs
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
//#region src/props.ts?raw
|
|
3
3
|
var props_default = "import { computed, useAttrs } from \"vue\";\nimport * as Vue from \"vue\";\n// @__NO_SIDE_EFFECTS__\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\n// @__NO_SIDE_EFFECTS__\nexport function useProps() {\n const i = /* @__PURE__ */ getCurrentInstance();\n return i.props;\n}\n// @__NO_SIDE_EFFECTS__\nexport function useFullProps() {\n const attrs = useAttrs();\n const i = /* @__PURE__ */ getCurrentInstance();\n if (!i.type.props) {\n return attrs;\n }\n const props = /* @__PURE__ */ useProps();\n const fullProps = computed(() => ({ ...props, ...attrs }));\n return new Proxy(\n {},\n {\n get(_, p, receiver) {\n return Reflect.get(fullProps.value, p, receiver);\n },\n set(_, p, v, r) {\n return Reflect.set(fullProps.value, p, v, r);\n },\n deleteProperty(_, p) {\n return Reflect.deleteProperty(fullProps.value, p);\n },\n has(_, p) {\n return Reflect.has(fullProps.value, p);\n },\n ownKeys() {\n return Object.keys(fullProps.value);\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true\n };\n }\n }\n );\n}\n";
|
|
4
|
-
|
|
5
4
|
//#endregion
|
|
6
5
|
//#region src/ssr.ts?raw
|
|
7
6
|
var ssr_default = "import { useSSRContext } from \"vue\";\nexport function ssrRegisterHelper(comp, filename) {\n if (typeof comp === \"function\") {\n comp.__setup = () => {\n const ssrContext = useSSRContext();\n (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);\n };\n } else {\n const setup = comp.setup;\n comp.setup = (props, ctx) => {\n const ssrContext = useSSRContext();\n (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);\n if (setup) {\n return setup(props, ctx);\n }\n };\n }\n}\n";
|
|
8
|
-
|
|
9
7
|
//#endregion
|
|
10
8
|
//#region src/vapor.ts?raw
|
|
11
9
|
var vapor_default = "import {\n EffectScope,\n Fragment,\n getCurrentInstance\n} from \"vue\";\nimport * as Vue from \"vue\";\n// @__NO_SIDE_EFFECTS__\nexport function defineVaporSSRComponent(comp, extraOptions) {\n if (typeof comp === \"function\") {\n return Object.assign({ name: comp.name }, extraOptions, {\n setup(props, ctx) {\n const result = comp(props, ctx);\n return () => result;\n },\n __vapor: true\n });\n }\n const setup = comp.setup;\n if (setup) {\n comp.setup = (props, ctx) => {\n const result = setup(props, ctx);\n return () => result;\n };\n }\n comp.__vapor = true;\n return comp;\n}\nexport const createComponent = (type, ...args) => {\n if (type === Fragment) {\n const slots = args[1];\n return slots && typeof slots.default === \"function\" ? slots.default() : [];\n }\n return Vue.createComponentWithFallback(\n createProxyComponent(Vue.resolveDynamicComponent(type)),\n ...args\n );\n};\nconst proxyCache = /* @__PURE__ */ new WeakMap();\nexport function createProxyComponent(type, normalizeNode2) {\n if (typeof type === \"function\") {\n const existing = proxyCache.get(type);\n if (existing) return existing;\n const i = Vue.currentInstance || getCurrentInstance();\n const proxy = new Proxy(type, {\n apply(target, ctx, args) {\n if (typeof target.__setup === \"function\") {\n target.__setup.apply(ctx, args);\n }\n const node = Reflect.apply(target, ctx, args);\n return normalizeNode2 ? normalizeNode2(node) : node;\n },\n get(target, p, receiver) {\n if (i && i.appContext.vapor && p === \"__vapor\") {\n return true;\n }\n return Reflect.get(target, p, receiver);\n }\n });\n proxyCache.set(type, proxy);\n return proxy;\n }\n return type;\n}\nexport function normalizeNode(node) {\n if (node == null || typeof node === \"boolean\") {\n return document.createComment(\"\");\n } else if (Array.isArray(node) && node.length) {\n return node.map(normalizeNode);\n } else if (isBlock(node)) {\n return node;\n } else if (typeof node === \"function\") {\n return resolveValues([node], void 0, true)[0];\n } else {\n return document.createTextNode(String(node));\n }\n}\nexport function isBlock(val) {\n return val instanceof Node || Array.isArray(val) || Vue.isVaporComponent(val) || Vue.isFragment(val);\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new Vue.VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeBlock(node, anchor, processFunction = false) {\n if (node instanceof Node || Vue.isFragment(node)) {\n return node;\n } else if (Vue.isVaporComponent(node)) {\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n return createFragment(\n node.map((i) => normalizeBlock(i, void 0, processFunction)),\n anchor\n );\n } else if (processFunction && typeof node === \"function\") {\n return resolveValues([node], anchor, true)[0];\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, processFunction = false) {\n anchor = anchor || (current instanceof Node && current.nodeType === 3 ? current : void 0);\n const node = normalizeBlock(value, anchor, processFunction);\n if (current) {\n if (Vue.isFragment(current)) {\n if (current.anchor && current.anchor.parentNode) {\n Vue.remove(current.nodes, current.anchor.parentNode);\n Vue.insert(node, current.anchor.parentNode, current.anchor);\n if (!anchor) current.anchor.parentNode.removeChild(current.anchor);\n if (current.scope) current.scope.stop();\n }\n } else if (current instanceof Node) {\n if (current.nodeType === 3 && (!(node instanceof Node) || node.nodeType !== 3)) {\n current.textContent = \"\";\n }\n if (Vue.isFragment(node) && current.parentNode) {\n Vue.insert(node, current.parentNode, current);\n if (!anchor || current.nodeType !== 3) {\n current.parentNode.removeChild(current);\n }\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, processFunction = false) {\n const nodes = [];\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 Vue.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, processFunction)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor, processFunction);\n }\n }\n return nodes;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n if (anchor.parentNode) Vue.insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n// @__NO_SIDE_EFFECTS__\nexport function defineVaporComponent(comp, extraOptions) {\n if (typeof comp === \"function\") {\n return Object.assign({ name: comp.name }, extraOptions, {\n setup: comp,\n __vapor: true\n });\n }\n comp.__vapor = true;\n return comp;\n}\nexport const VaporFor = /* @__PURE__ */ defineVaporComponent(\n (props, {\n slots\n }) => {\n return Vue.createFor(\n () => props.in,\n (item, key, index) => {\n return slots.default ? slots.default(\n // @ts-ignore\n props.getKey === void 0 ? item.value : item,\n key,\n index\n ) : [];\n },\n props.getKey === void 0 ? (item) => item : props.getKey\n );\n },\n { props: [\"in\", \"getKey\"] }\n);\n";
|
|
12
|
-
|
|
13
10
|
//#endregion
|
|
14
11
|
//#region src/vdom.ts?raw
|
|
15
12
|
var vdom_default = "import {\n defineComponent as __defineComponent,\n cloneVNode,\n Comment,\n createBlock,\n createElementBlock,\n createElementVNode,\n createVNode,\n Fragment,\n getCurrentInstance,\n isVNode,\n openBlock,\n renderList,\n Text,\n withCtx\n} from \"vue\";\nconst cacheMap = /* @__PURE__ */ new WeakMap();\nexport function createVNodeCache(key) {\n const i = getCurrentInstance();\n if (i) {\n if (!cacheMap.has(i)) cacheMap.set(i, {});\n const caches = cacheMap.get(i);\n return caches[key] || (caches[key] = []);\n } else {\n return [];\n }\n}\nexport function normalizeVNode(value, flag = 1) {\n let create = createVNode;\n let isBlock = false;\n if (typeof value === \"function\") {\n isBlock = true;\n openBlock();\n create = createBlock;\n value = value();\n }\n return isVNode(value) ? isBlock ? createBlock(cloneIfMounted(value)) : cloneIfMounted(value) : Array.isArray(value) ? isBlock ? createElementBlock(\n Fragment,\n null,\n value.map((n) => normalizeVNode(() => n)),\n -2\n ) : createElementVNode(Fragment, null, value.slice()) : value == null || typeof value === \"boolean\" ? create(Comment) : create(Text, null, String(value), flag);\n}\nfunction cloneIfMounted(child) {\n return child.el === null && child.patchFlag !== -1 || // @ts-ignore\n child.memo ? child : cloneVNode(child);\n}\nconst normalizeSlotValue = (value) => Array.isArray(value) ? value.map((n) => normalizeVNode(n)) : [normalizeVNode(value)];\nexport const normalizeSlot = (rawSlot) => {\n if (rawSlot._n) {\n return rawSlot;\n }\n return withCtx((...args) => {\n return normalizeSlotValue(rawSlot(...args));\n });\n};\nexport const defineComponent = __defineComponent;\nexport const For = defineComponent(\n (props, {\n slots\n }) => {\n const defaultSlot = slots.default;\n return () => (openBlock(true), createElementBlock(\n Fragment,\n null,\n renderList(props.in, (item, key, index) => {\n const result = defaultSlot(item, key, index);\n return Array.isArray(result) ? result.length === 1 ? result[0] : normalizeVNode(result) : result;\n }),\n 128\n ));\n },\n { props: [\"in\"] }\n);\n";
|
|
16
|
-
|
|
17
13
|
//#endregion
|
|
18
14
|
//#region src/raw.ts
|
|
19
15
|
const propsHelperCode = props_default;
|
|
@@ -24,7 +20,6 @@ const propsHelperId = "/vue-jsx-vapor/props";
|
|
|
24
20
|
const vdomHelperId = "/vue-jsx-vapor/vdom";
|
|
25
21
|
const vaporHelperId = "/vue-jsx-vapor/vapor";
|
|
26
22
|
const ssrHelperId = "/vue-jsx-vapor/ssr";
|
|
27
|
-
|
|
28
23
|
//#endregion
|
|
29
24
|
exports.propsHelperCode = propsHelperCode;
|
|
30
25
|
exports.propsHelperId = propsHelperId;
|
|
@@ -33,4 +28,4 @@ exports.ssrHelperId = ssrHelperId;
|
|
|
33
28
|
exports.vaporHelperCode = vaporHelperCode;
|
|
34
29
|
exports.vaporHelperId = vaporHelperId;
|
|
35
30
|
exports.vdomHelperCode = vdomHelperCode;
|
|
36
|
-
exports.vdomHelperId = vdomHelperId;
|
|
31
|
+
exports.vdomHelperId = vdomHelperId;
|
package/dist/raw.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
//#region src/props.ts?raw
|
|
2
2
|
var props_default = "import { computed, useAttrs } from \"vue\";\nimport * as Vue from \"vue\";\n// @__NO_SIDE_EFFECTS__\nexport function getCurrentInstance() {\n return Vue.currentInstance || Vue.getCurrentInstance();\n}\n// @__NO_SIDE_EFFECTS__\nexport function useProps() {\n const i = /* @__PURE__ */ getCurrentInstance();\n return i.props;\n}\n// @__NO_SIDE_EFFECTS__\nexport function useFullProps() {\n const attrs = useAttrs();\n const i = /* @__PURE__ */ getCurrentInstance();\n if (!i.type.props) {\n return attrs;\n }\n const props = /* @__PURE__ */ useProps();\n const fullProps = computed(() => ({ ...props, ...attrs }));\n return new Proxy(\n {},\n {\n get(_, p, receiver) {\n return Reflect.get(fullProps.value, p, receiver);\n },\n set(_, p, v, r) {\n return Reflect.set(fullProps.value, p, v, r);\n },\n deleteProperty(_, p) {\n return Reflect.deleteProperty(fullProps.value, p);\n },\n has(_, p) {\n return Reflect.has(fullProps.value, p);\n },\n ownKeys() {\n return Object.keys(fullProps.value);\n },\n getOwnPropertyDescriptor() {\n return {\n enumerable: true,\n configurable: true\n };\n }\n }\n );\n}\n";
|
|
3
|
-
|
|
4
3
|
//#endregion
|
|
5
4
|
//#region src/ssr.ts?raw
|
|
6
5
|
var ssr_default = "import { useSSRContext } from \"vue\";\nexport function ssrRegisterHelper(comp, filename) {\n if (typeof comp === \"function\") {\n comp.__setup = () => {\n const ssrContext = useSSRContext();\n (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);\n };\n } else {\n const setup = comp.setup;\n comp.setup = (props, ctx) => {\n const ssrContext = useSSRContext();\n (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add(filename);\n if (setup) {\n return setup(props, ctx);\n }\n };\n }\n}\n";
|
|
7
|
-
|
|
8
6
|
//#endregion
|
|
9
7
|
//#region src/vapor.ts?raw
|
|
10
8
|
var vapor_default = "import {\n EffectScope,\n Fragment,\n getCurrentInstance\n} from \"vue\";\nimport * as Vue from \"vue\";\n// @__NO_SIDE_EFFECTS__\nexport function defineVaporSSRComponent(comp, extraOptions) {\n if (typeof comp === \"function\") {\n return Object.assign({ name: comp.name }, extraOptions, {\n setup(props, ctx) {\n const result = comp(props, ctx);\n return () => result;\n },\n __vapor: true\n });\n }\n const setup = comp.setup;\n if (setup) {\n comp.setup = (props, ctx) => {\n const result = setup(props, ctx);\n return () => result;\n };\n }\n comp.__vapor = true;\n return comp;\n}\nexport const createComponent = (type, ...args) => {\n if (type === Fragment) {\n const slots = args[1];\n return slots && typeof slots.default === \"function\" ? slots.default() : [];\n }\n return Vue.createComponentWithFallback(\n createProxyComponent(Vue.resolveDynamicComponent(type)),\n ...args\n );\n};\nconst proxyCache = /* @__PURE__ */ new WeakMap();\nexport function createProxyComponent(type, normalizeNode2) {\n if (typeof type === \"function\") {\n const existing = proxyCache.get(type);\n if (existing) return existing;\n const i = Vue.currentInstance || getCurrentInstance();\n const proxy = new Proxy(type, {\n apply(target, ctx, args) {\n if (typeof target.__setup === \"function\") {\n target.__setup.apply(ctx, args);\n }\n const node = Reflect.apply(target, ctx, args);\n return normalizeNode2 ? normalizeNode2(node) : node;\n },\n get(target, p, receiver) {\n if (i && i.appContext.vapor && p === \"__vapor\") {\n return true;\n }\n return Reflect.get(target, p, receiver);\n }\n });\n proxyCache.set(type, proxy);\n return proxy;\n }\n return type;\n}\nexport function normalizeNode(node) {\n if (node == null || typeof node === \"boolean\") {\n return document.createComment(\"\");\n } else if (Array.isArray(node) && node.length) {\n return node.map(normalizeNode);\n } else if (isBlock(node)) {\n return node;\n } else if (typeof node === \"function\") {\n return resolveValues([node], void 0, true)[0];\n } else {\n return document.createTextNode(String(node));\n }\n}\nexport function isBlock(val) {\n return val instanceof Node || Array.isArray(val) || Vue.isVaporComponent(val) || Vue.isFragment(val);\n}\nfunction createFragment(nodes, anchor = document.createTextNode(\"\")) {\n const frag = new Vue.VaporFragment(nodes);\n frag.anchor = anchor;\n return frag;\n}\nfunction normalizeBlock(node, anchor, processFunction = false) {\n if (node instanceof Node || Vue.isFragment(node)) {\n return node;\n } else if (Vue.isVaporComponent(node)) {\n return createFragment(node, anchor);\n } else if (Array.isArray(node)) {\n return createFragment(\n node.map((i) => normalizeBlock(i, void 0, processFunction)),\n anchor\n );\n } else if (processFunction && typeof node === \"function\") {\n return resolveValues([node], anchor, true)[0];\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, processFunction = false) {\n anchor = anchor || (current instanceof Node && current.nodeType === 3 ? current : void 0);\n const node = normalizeBlock(value, anchor, processFunction);\n if (current) {\n if (Vue.isFragment(current)) {\n if (current.anchor && current.anchor.parentNode) {\n Vue.remove(current.nodes, current.anchor.parentNode);\n Vue.insert(node, current.anchor.parentNode, current.anchor);\n if (!anchor) current.anchor.parentNode.removeChild(current.anchor);\n if (current.scope) current.scope.stop();\n }\n } else if (current instanceof Node) {\n if (current.nodeType === 3 && (!(node instanceof Node) || node.nodeType !== 3)) {\n current.textContent = \"\";\n }\n if (Vue.isFragment(node) && current.parentNode) {\n Vue.insert(node, current.parentNode, current);\n if (!anchor || current.nodeType !== 3) {\n current.parentNode.removeChild(current);\n }\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, processFunction = false) {\n const nodes = [];\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 Vue.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, processFunction)\n );\n });\n } else {\n nodes[index] = resolveValue(nodes[index], value, anchor, processFunction);\n }\n }\n return nodes;\n}\nexport function setNodes(anchor, ...values) {\n const resolvedValues = resolveValues(values, anchor);\n if (anchor.parentNode) Vue.insert(resolvedValues, anchor.parentNode, anchor);\n}\nexport function createNodes(...values) {\n return resolveValues(values);\n}\n// @__NO_SIDE_EFFECTS__\nexport function defineVaporComponent(comp, extraOptions) {\n if (typeof comp === \"function\") {\n return Object.assign({ name: comp.name }, extraOptions, {\n setup: comp,\n __vapor: true\n });\n }\n comp.__vapor = true;\n return comp;\n}\nexport const VaporFor = /* @__PURE__ */ defineVaporComponent(\n (props, {\n slots\n }) => {\n return Vue.createFor(\n () => props.in,\n (item, key, index) => {\n return slots.default ? slots.default(\n // @ts-ignore\n props.getKey === void 0 ? item.value : item,\n key,\n index\n ) : [];\n },\n props.getKey === void 0 ? (item) => item : props.getKey\n );\n },\n { props: [\"in\", \"getKey\"] }\n);\n";
|
|
11
|
-
|
|
12
9
|
//#endregion
|
|
13
10
|
//#region src/vdom.ts?raw
|
|
14
11
|
var vdom_default = "import {\n defineComponent as __defineComponent,\n cloneVNode,\n Comment,\n createBlock,\n createElementBlock,\n createElementVNode,\n createVNode,\n Fragment,\n getCurrentInstance,\n isVNode,\n openBlock,\n renderList,\n Text,\n withCtx\n} from \"vue\";\nconst cacheMap = /* @__PURE__ */ new WeakMap();\nexport function createVNodeCache(key) {\n const i = getCurrentInstance();\n if (i) {\n if (!cacheMap.has(i)) cacheMap.set(i, {});\n const caches = cacheMap.get(i);\n return caches[key] || (caches[key] = []);\n } else {\n return [];\n }\n}\nexport function normalizeVNode(value, flag = 1) {\n let create = createVNode;\n let isBlock = false;\n if (typeof value === \"function\") {\n isBlock = true;\n openBlock();\n create = createBlock;\n value = value();\n }\n return isVNode(value) ? isBlock ? createBlock(cloneIfMounted(value)) : cloneIfMounted(value) : Array.isArray(value) ? isBlock ? createElementBlock(\n Fragment,\n null,\n value.map((n) => normalizeVNode(() => n)),\n -2\n ) : createElementVNode(Fragment, null, value.slice()) : value == null || typeof value === \"boolean\" ? create(Comment) : create(Text, null, String(value), flag);\n}\nfunction cloneIfMounted(child) {\n return child.el === null && child.patchFlag !== -1 || // @ts-ignore\n child.memo ? child : cloneVNode(child);\n}\nconst normalizeSlotValue = (value) => Array.isArray(value) ? value.map((n) => normalizeVNode(n)) : [normalizeVNode(value)];\nexport const normalizeSlot = (rawSlot) => {\n if (rawSlot._n) {\n return rawSlot;\n }\n return withCtx((...args) => {\n return normalizeSlotValue(rawSlot(...args));\n });\n};\nexport const defineComponent = __defineComponent;\nexport const For = defineComponent(\n (props, {\n slots\n }) => {\n const defaultSlot = slots.default;\n return () => (openBlock(true), createElementBlock(\n Fragment,\n null,\n renderList(props.in, (item, key, index) => {\n const result = defaultSlot(item, key, index);\n return Array.isArray(result) ? result.length === 1 ? result[0] : normalizeVNode(result) : result;\n }),\n 128\n ));\n },\n { props: [\"in\"] }\n);\n";
|
|
15
|
-
|
|
16
12
|
//#endregion
|
|
17
13
|
//#region src/raw.ts
|
|
18
14
|
const propsHelperCode = props_default;
|
|
@@ -23,6 +19,5 @@ const propsHelperId = "/vue-jsx-vapor/props";
|
|
|
23
19
|
const vdomHelperId = "/vue-jsx-vapor/vdom";
|
|
24
20
|
const vaporHelperId = "/vue-jsx-vapor/vapor";
|
|
25
21
|
const ssrHelperId = "/vue-jsx-vapor/ssr";
|
|
26
|
-
|
|
27
22
|
//#endregion
|
|
28
|
-
export { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId };
|
|
23
|
+
export { propsHelperCode, propsHelperId, ssrHelperCode, ssrHelperId, vaporHelperCode, vaporHelperId, vdomHelperCode, vdomHelperId };
|
package/dist/ssr.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./chunk-CKQMccvm.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
|
-
|
|
4
4
|
//#region src/ssr.ts
|
|
5
5
|
function ssrRegisterHelper(comp, filename) {
|
|
6
6
|
if (typeof comp === "function") comp.__setup = () => {
|
|
@@ -16,6 +16,5 @@ function ssrRegisterHelper(comp, filename) {
|
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
19
|
//#endregion
|
|
21
|
-
exports.ssrRegisterHelper = ssrRegisterHelper;
|
|
20
|
+
exports.ssrRegisterHelper = ssrRegisterHelper;
|
package/dist/ssr.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { useSSRContext } from "vue";
|
|
2
|
-
|
|
3
2
|
//#region src/ssr.ts
|
|
4
3
|
function ssrRegisterHelper(comp, filename) {
|
|
5
4
|
if (typeof comp === "function") comp.__setup = () => {
|
|
@@ -15,6 +14,5 @@ function ssrRegisterHelper(comp, filename) {
|
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
//#endregion
|
|
20
|
-
export { ssrRegisterHelper };
|
|
18
|
+
export { ssrRegisterHelper };
|
package/dist/types.cjs
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
package/dist/types.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify, t as IfAny } from "./types-
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify, t as IfAny } from "./types-C847TkaY.cjs";
|
|
2
2
|
export { IfAny, IsKeyValues, Prettify, SlotsToProps, ToResolvedProps };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify, t as IfAny } from "./types-
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify, t as IfAny } from "./types-CLKH5kLf.js";
|
|
2
2
|
export { IfAny, IsKeyValues, Prettify, SlotsToProps, ToResolvedProps };
|
package/dist/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export {};
|
package/dist/vapor.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
|
-
vue = require_chunk.__toESM(vue);
|
|
4
|
-
|
|
4
|
+
vue = require_chunk.__toESM(vue, 1);
|
|
5
5
|
//#region src/vapor.ts
|
|
6
6
|
/* @__NO_SIDE_EFFECTS__ */
|
|
7
7
|
function defineVaporSSRComponent(comp, extraOptions) {
|
|
@@ -138,7 +138,6 @@ const VaporFor = /* @__PURE__ */ defineVaporComponent((props, { slots }) => {
|
|
|
138
138
|
return slots.default ? slots.default(props.getKey === void 0 ? item.value : item, key, index) : [];
|
|
139
139
|
}, props.getKey === void 0 ? (item) => item : props.getKey);
|
|
140
140
|
}, { props: ["in", "getKey"] });
|
|
141
|
-
|
|
142
141
|
//#endregion
|
|
143
142
|
exports.VaporFor = VaporFor;
|
|
144
143
|
exports.createComponent = createComponent;
|
|
@@ -148,4 +147,4 @@ exports.defineVaporComponent = defineVaporComponent;
|
|
|
148
147
|
exports.defineVaporSSRComponent = defineVaporSSRComponent;
|
|
149
148
|
exports.isBlock = isBlock;
|
|
150
149
|
exports.normalizeNode = normalizeNode;
|
|
151
|
-
exports.setNodes = setNodes;
|
|
150
|
+
exports.setNodes = setNodes;
|
package/dist/vapor.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify } from "./types-
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify } from "./types-C847TkaY.cjs";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { Block, ComponentObjectPropsOptions, ComponentTypeEmits, EmitFn, EmitsOptions, ExtractDefaultPropTypes, ExtractPropTypes, Fragment, ShallowRef, StaticSlots, TypeEmitsToOptions, VNode, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporComponentOptions, VaporPublicProps, VaporRenderResult } from "vue";
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ declare function defineVaporComponent<Props extends Record<string, any>, Emits e
|
|
|
21
21
|
slots: Slots;
|
|
22
22
|
attrs: Record<string, any>;
|
|
23
23
|
expose: (exposed?: Exposed) => void;
|
|
24
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<(keyof Props)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
24
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<(keyof NoInfer<Props>)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
25
25
|
declare function defineVaporComponent<Props extends Record<string, any>, Emits extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block>(this: void, setup: (props: Props, ctx: {
|
|
26
26
|
emit: EmitFn<Emits>;
|
|
27
27
|
slots: Slots;
|
package/dist/vapor.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify } from "./types-
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues, r as Prettify } from "./types-CLKH5kLf.js";
|
|
2
2
|
import * as Vue from "vue";
|
|
3
3
|
import { Block, ComponentObjectPropsOptions, ComponentTypeEmits, EmitFn, EmitsOptions, ExtractDefaultPropTypes, ExtractPropTypes, Fragment, ShallowRef, StaticSlots, TypeEmitsToOptions, VNode, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporComponentOptions, VaporPublicProps, VaporRenderResult } from "vue";
|
|
4
4
|
|
|
@@ -21,7 +21,7 @@ declare function defineVaporComponent<Props extends Record<string, any>, Emits e
|
|
|
21
21
|
slots: Slots;
|
|
22
22
|
attrs: Record<string, any>;
|
|
23
23
|
expose: (exposed?: Exposed) => void;
|
|
24
|
-
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<(keyof Props)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
24
|
+
}) => VaporRenderResult<TypeBlock> | void, extraOptions?: VaporComponentOptions<(keyof NoInfer<Props>)[], Emits, RuntimeEmitsKeys, Slots, Exposed> & ThisType<void>): DefineVaporSetupFnComponent<Props, Emits, Slots, Exposed, TypeBlock>;
|
|
25
25
|
declare function defineVaporComponent<Props extends Record<string, any>, Emits extends EmitsOptions = {}, RuntimeEmitsKeys extends string = string, Slots extends StaticSlots = StaticSlots, Exposed extends Record<string, any> = Record<string, any>, TypeBlock extends Block = Block>(this: void, setup: (props: Props, ctx: {
|
|
26
26
|
emit: EmitFn<Emits>;
|
|
27
27
|
slots: Slots;
|
package/dist/vapor.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Vue from "vue";
|
|
2
2
|
import { EffectScope, Fragment, getCurrentInstance } from "vue";
|
|
3
|
-
|
|
4
3
|
//#region src/vapor.ts
|
|
5
4
|
/* @__NO_SIDE_EFFECTS__ */
|
|
6
5
|
function defineVaporSSRComponent(comp, extraOptions) {
|
|
@@ -137,6 +136,5 @@ const VaporFor = /* @__PURE__ */ defineVaporComponent((props, { slots }) => {
|
|
|
137
136
|
return slots.default ? slots.default(props.getKey === void 0 ? item.value : item, key, index) : [];
|
|
138
137
|
}, props.getKey === void 0 ? (item) => item : props.getKey);
|
|
139
138
|
}, { props: ["in", "getKey"] });
|
|
140
|
-
|
|
141
139
|
//#endregion
|
|
142
|
-
export { VaporFor, createComponent, createNodes, createProxyComponent, defineVaporComponent, defineVaporSSRComponent, isBlock, normalizeNode, setNodes };
|
|
140
|
+
export { VaporFor, createComponent, createNodes, createProxyComponent, defineVaporComponent, defineVaporSSRComponent, isBlock, normalizeNode, setNodes };
|
package/dist/vdom.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("./chunk-CKQMccvm.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
|
-
|
|
4
4
|
//#region src/vdom.ts
|
|
5
5
|
const cacheMap = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
function createVNodeCache(key) {
|
|
@@ -40,10 +40,9 @@ const For = defineComponent((props, { slots }) => {
|
|
|
40
40
|
return Array.isArray(result) ? result.length === 1 ? result[0] : normalizeVNode(result) : result;
|
|
41
41
|
}), 128));
|
|
42
42
|
}, { props: ["in"] });
|
|
43
|
-
|
|
44
43
|
//#endregion
|
|
45
44
|
exports.For = For;
|
|
46
45
|
exports.createVNodeCache = createVNodeCache;
|
|
47
46
|
exports.defineComponent = defineComponent;
|
|
48
47
|
exports.normalizeSlot = normalizeSlot;
|
|
49
|
-
exports.normalizeVNode = normalizeVNode;
|
|
48
|
+
exports.normalizeVNode = normalizeVNode;
|
package/dist/vdom.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues } from "./types-C847TkaY.cjs";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
import { Component, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentPropsOptions, ComponentProvideOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedOptions, CreateComponentPublicInstanceWithMixins, Directive, EmitFn, EmitsOptions, EmitsToProps, ExtractDefaultPropTypes, ExtractPropTypes, GlobalComponents, GlobalDirectives, MethodOptions, PublicProps, Slot, SlotsType, TypeEmitsToOptions, VNode, VNodeChild } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/vdom.d.ts
|
|
@@ -63,7 +63,7 @@ declare const For: new <T extends any[] | Record<any, any> | number | string | S
|
|
|
63
63
|
'v-slots'?: ((...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any) | Readonly<{
|
|
64
64
|
default: (...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any;
|
|
65
65
|
}> | NoInfer<VNodeChild> | undefined;
|
|
66
|
-
} &
|
|
66
|
+
} & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps) => CreateComponentPublicInstanceWithMixins<{
|
|
67
67
|
in: T;
|
|
68
68
|
} & {} & {
|
|
69
69
|
'v-slots'?: ((...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any) | Readonly<{
|
package/dist/vdom.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues } from "./types-
|
|
2
|
-
import * as
|
|
1
|
+
import { a as ToResolvedProps, i as SlotsToProps, n as IsKeyValues } from "./types-CLKH5kLf.js";
|
|
2
|
+
import * as _$vue from "vue";
|
|
3
3
|
import { Component, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentPropsOptions, ComponentProvideOptions, ComponentPublicInstance, ComponentTypeEmits, ComputedOptions, CreateComponentPublicInstanceWithMixins, Directive, EmitFn, EmitsOptions, EmitsToProps, ExtractDefaultPropTypes, ExtractPropTypes, GlobalComponents, GlobalDirectives, MethodOptions, PublicProps, Slot, SlotsType, TypeEmitsToOptions, VNode, VNodeChild } from "vue";
|
|
4
4
|
|
|
5
5
|
//#region src/vdom.d.ts
|
|
@@ -63,7 +63,7 @@ declare const For: new <T extends any[] | Record<any, any> | number | string | S
|
|
|
63
63
|
'v-slots'?: ((...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any) | Readonly<{
|
|
64
64
|
default: (...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any;
|
|
65
65
|
}> | NoInfer<VNodeChild> | undefined;
|
|
66
|
-
} &
|
|
66
|
+
} & _$vue.VNodeProps & _$vue.AllowedComponentProps & _$vue.ComponentCustomProps) => CreateComponentPublicInstanceWithMixins<{
|
|
67
67
|
in: T;
|
|
68
68
|
} & {} & {
|
|
69
69
|
'v-slots'?: ((...args: string extends keyof Item ? [item: T[keyof T], key: keyof T, index: number] : [item: Item, index: number]) => any) | Readonly<{
|
package/dist/vdom.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Comment, Fragment, Text, cloneVNode, createBlock, createElementBlock, createElementVNode, createVNode, defineComponent as defineComponent$1, getCurrentInstance, isVNode, openBlock, renderList, withCtx } from "vue";
|
|
2
|
-
|
|
3
2
|
//#region src/vdom.ts
|
|
4
3
|
const cacheMap = /* @__PURE__ */ new WeakMap();
|
|
5
4
|
function createVNodeCache(key) {
|
|
@@ -39,6 +38,5 @@ const For = defineComponent((props, { slots }) => {
|
|
|
39
38
|
return Array.isArray(result) ? result.length === 1 ? result[0] : normalizeVNode(result) : result;
|
|
40
39
|
}), 128));
|
|
41
40
|
}, { props: ["in"] });
|
|
42
|
-
|
|
43
41
|
//#endregion
|
|
44
|
-
export { For, createVNodeCache, defineComponent, normalizeSlot, normalizeVNode };
|
|
42
|
+
export { For, createVNodeCache, defineComponent, normalizeSlot, normalizeVNode };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-jsx-vapor/runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.2.
|
|
4
|
+
"version": "3.2.13",
|
|
5
5
|
"description": "Vue JSX Vapor Runtime",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/vuejs/vue-jsx-vapor#readme",
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
".": {
|
|
23
23
|
"types": "./dist/index.d.ts",
|
|
24
24
|
"jsx-vapor-dev": "./src/index.ts",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
25
|
+
"import": "./dist/index.js",
|
|
26
|
+
"require": "./dist/index.cjs"
|
|
27
27
|
},
|
|
28
28
|
"./raw": {
|
|
29
29
|
"types": "./dist/raw.d.ts",
|
|
30
30
|
"jsx-vapor-dev": "./src/raw.ts",
|
|
31
|
-
"
|
|
32
|
-
"
|
|
31
|
+
"import": "./dist/raw.js",
|
|
32
|
+
"require": "./dist/raw.cjs"
|
|
33
33
|
},
|
|
34
34
|
"./*": "./*"
|
|
35
35
|
},
|
|
File without changes
|
|
File without changes
|