@vue-jsx-vapor/runtime 3.0.2 → 3.1.0
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/block.cjs +16 -3
- package/dist/block.d.cts +9 -1
- package/dist/block.d.ts +9 -1
- package/dist/block.js +13 -1
- package/dist/component.cjs +45 -5
- package/dist/component.d.cts +8 -1
- package/dist/component.d.ts +8 -1
- package/dist/component.js +43 -3
- package/dist/h.cjs +28 -5
- package/dist/h.d.cts +35 -2
- package/dist/h.d.ts +35 -2
- package/dist/h.js +27 -4
- package/dist/{helpers-Ie9fa1JX.cjs → helpers-CjCn59Dr.cjs} +34 -2
- package/dist/helpers.cjs +1 -1
- package/dist/helpers.d.cts +36 -1
- package/dist/helpers.d.ts +36 -1
- package/dist/helpers.js +1 -1
- package/dist/index.cjs +11 -12
- package/dist/index.d.cts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/jsx.cjs +0 -1
- package/dist/jsx.d.cts +1325 -1
- package/dist/jsx.d.ts +1325 -1
- package/dist/jsx.js +0 -2
- package/dist/node.cjs +76 -3
- package/dist/node.d.cts +6 -1
- package/dist/node.d.ts +6 -1
- package/dist/node.js +73 -1
- package/dist/vnode.cjs +26 -0
- package/dist/vnode.d.cts +7 -0
- package/dist/vnode.d.ts +7 -0
- package/dist/vnode.js +24 -0
- package/dist/vue.cjs +13 -2
- package/dist/vue.d.cts +133 -1
- package/dist/vue.d.ts +133 -1
- package/dist/vue.js +11 -1
- package/package.json +17 -17
- package/dist/block-BZYKbYTH.js +0 -15
- package/dist/block-BycCFoa3.d.cts +0 -10
- package/dist/block-DzOQpwy5.d.ts +0 -10
- package/dist/block-sF5z9ijJ.cjs +0 -28
- package/dist/chunk-CUT6urMc.cjs +0 -30
- package/dist/component-BwobbDXG.js +0 -42
- package/dist/component-C13Oo-p0.d.cts +0 -9
- package/dist/component-HwEQ3NVf.cjs +0 -55
- package/dist/component-YLvTjTHV.d.ts +0 -9
- package/dist/h-BSBmQ5xG.cjs +0 -33
- package/dist/h-BiyYwTqr.d.cts +0 -36
- package/dist/h-CRAb05GU.d.ts +0 -36
- package/dist/h-H2pnsSY9.js +0 -28
- package/dist/helpers-B37sqEig.d.ts +0 -37
- package/dist/helpers-CABYlIBX.d.cts +0 -37
- package/dist/jsx-BPKSHIm5.d.ts +0 -1326
- package/dist/jsx-C5yte_hi.js +0 -1
- package/dist/jsx-CTAfwhvm.cjs +0 -0
- package/dist/jsx-DyFytwAs.d.cts +0 -1326
- package/dist/node-6h8YP74l.d.ts +0 -7
- package/dist/node-B6xwqC0_.cjs +0 -88
- package/dist/node-C-c1h4g5.js +0 -75
- package/dist/node-Dj7u02ol.d.cts +0 -7
- package/dist/vdom-C1t-F-eP.d.cts +0 -4
- package/dist/vdom-CBgMLCQr.d.ts +0 -4
- package/dist/vdom-CI8nGTUQ.cjs +0 -22
- package/dist/vdom-CO5AZsJa.js +0 -15
- package/dist/vdom.cjs +0 -3
- package/dist/vdom.d.cts +0 -2
- package/dist/vdom.d.ts +0 -2
- package/dist/vdom.js +0 -3
- package/dist/vue-B5aczwqa.d.cts +0 -134
- package/dist/vue-BJLej53a.js +0 -13
- package/dist/vue-DFs5XXCh.d.ts +0 -134
- package/dist/vue-DN14pNs9.cjs +0 -19
- /package/dist/{helpers-C6cGsX4q.js → helpers-CTg3GxNb.js} +0 -0
package/dist/block.cjs
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_helpers = require('./helpers-CjCn59Dr.cjs');
|
|
2
|
+
let vue = require("vue");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
//#region src/block.ts
|
|
5
|
+
function normalizeNode(node) {
|
|
6
|
+
if (node == null || typeof node === "boolean") return document.createComment("");
|
|
7
|
+
else if (Array.isArray(node) && node.length) return node.map(normalizeNode);
|
|
8
|
+
else if (isBlock(node)) return node;
|
|
9
|
+
else return (0, vue.createTextNode)(String(node));
|
|
10
|
+
}
|
|
11
|
+
function isBlock(val) {
|
|
12
|
+
return val instanceof Node || Array.isArray(val) || (0, vue.isVaporComponent)(val) || (0, vue.isFragment)(val);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.isBlock = isBlock;
|
|
17
|
+
exports.normalizeNode = normalizeNode;
|
package/dist/block.d.cts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Block } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/block.d.ts
|
|
4
|
+
type NodeChildAtom = Block | string | number | boolean | null | undefined | void;
|
|
5
|
+
type NodeArrayChildren = Array<NodeArrayChildren | NodeChildAtom>;
|
|
6
|
+
type NodeChild = NodeChildAtom | NodeArrayChildren;
|
|
7
|
+
declare function normalizeNode(node: NodeChild): Block;
|
|
8
|
+
declare function isBlock(val: NonNullable<unknown>): val is Block;
|
|
9
|
+
//#endregion
|
|
2
10
|
export { NodeArrayChildren, NodeChild, isBlock, normalizeNode };
|
package/dist/block.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Block } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/block.d.ts
|
|
4
|
+
type NodeChildAtom = Block | string | number | boolean | null | undefined | void;
|
|
5
|
+
type NodeArrayChildren = Array<NodeArrayChildren | NodeChildAtom>;
|
|
6
|
+
type NodeChild = NodeChildAtom | NodeArrayChildren;
|
|
7
|
+
declare function normalizeNode(node: NodeChild): Block;
|
|
8
|
+
declare function isBlock(val: NonNullable<unknown>): val is Block;
|
|
9
|
+
//#endregion
|
|
2
10
|
export { NodeArrayChildren, NodeChild, isBlock, normalizeNode };
|
package/dist/block.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createTextNode, isFragment, isVaporComponent } from "vue";
|
|
2
2
|
|
|
3
|
+
//#region src/block.ts
|
|
4
|
+
function normalizeNode(node) {
|
|
5
|
+
if (node == null || typeof node === "boolean") return document.createComment("");
|
|
6
|
+
else if (Array.isArray(node) && node.length) return node.map(normalizeNode);
|
|
7
|
+
else if (isBlock(node)) return node;
|
|
8
|
+
else return createTextNode(String(node));
|
|
9
|
+
}
|
|
10
|
+
function isBlock(val) {
|
|
11
|
+
return val instanceof Node || Array.isArray(val) || isVaporComponent(val) || isFragment(val);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
3
15
|
export { isBlock, normalizeNode };
|
package/dist/component.cjs
CHANGED
|
@@ -1,6 +1,46 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
|
|
1
|
+
const require_helpers = require('./helpers-CjCn59Dr.cjs');
|
|
2
|
+
const require_block = require('./block.cjs');
|
|
3
|
+
let vue = require("vue");
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
//#region src/component.ts
|
|
6
|
+
const createComponent = (type, ...args) => {
|
|
7
|
+
return createProxyComponent(vue.createComponent, type, ...args);
|
|
8
|
+
};
|
|
9
|
+
const createComponentWithFallback = (type, ...args) => {
|
|
10
|
+
const slots = args[1];
|
|
11
|
+
if (typeof type === "string" && slots && slots.default && typeof slots.default === "function") {
|
|
12
|
+
const defaultSlot = slots.default;
|
|
13
|
+
slots.default = () => {
|
|
14
|
+
return createProxyComponent(vue.createComponentWithFallback, defaultSlot, null, null);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return createProxyComponent(vue.createComponentWithFallback, type, ...args);
|
|
18
|
+
};
|
|
19
|
+
const createProxyComponent = (createComponent$1, type, props, ...args) => {
|
|
20
|
+
if (type === vue.Fragment) {
|
|
21
|
+
type = (_, { slots }) => slots.default ? slots.default() : [];
|
|
22
|
+
props = null;
|
|
23
|
+
}
|
|
24
|
+
const i = require_helpers.getCurrentInstance();
|
|
25
|
+
if (!type.__proxyed) {
|
|
26
|
+
if (typeof type === "function") type = new Proxy(type, {
|
|
27
|
+
apply(target, ctx, args$1) {
|
|
28
|
+
if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
|
|
29
|
+
return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
30
|
+
},
|
|
31
|
+
get(target, p, receiver) {
|
|
32
|
+
if ((i && i.appContext).vapor && p === "__vapor") return true;
|
|
33
|
+
return Reflect.get(target, p, receiver);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
|
|
37
|
+
return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
38
|
+
} });
|
|
39
|
+
type.__proxyed = true;
|
|
40
|
+
}
|
|
41
|
+
return createComponent$1(type, props, ...args);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.createComponent = createComponent;
|
|
46
|
+
exports.createComponentWithFallback = createComponentWithFallback;
|
package/dist/component.d.cts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
|
+
import { Fragment, VaporComponent, createComponent as createComponent$1, createComponentWithFallback as createComponentWithFallback$1 } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/component.d.ts
|
|
5
|
+
type Tail<T extends any[]> = T extends [any, ...infer R] ? R : never;
|
|
6
|
+
declare const createComponent: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponent$1>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
7
|
+
declare const createComponentWithFallback: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponentWithFallback$1>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
8
|
+
//#endregion
|
|
2
9
|
export { createComponent, createComponentWithFallback };
|
package/dist/component.d.ts
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as vue0 from "vue";
|
|
2
|
+
import { Fragment, VaporComponent, createComponent as createComponent$1, createComponentWithFallback as createComponentWithFallback$1 } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/component.d.ts
|
|
5
|
+
type Tail<T extends any[]> = T extends [any, ...infer R] ? R : never;
|
|
6
|
+
declare const createComponent: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponent$1>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
7
|
+
declare const createComponentWithFallback: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponentWithFallback$1>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
8
|
+
//#endregion
|
|
2
9
|
export { createComponent, createComponentWithFallback };
|
package/dist/component.js
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
|
-
import "./block
|
|
2
|
-
import "./helpers-
|
|
3
|
-
import {
|
|
1
|
+
import { normalizeNode } from "./block.js";
|
|
2
|
+
import { t as getCurrentInstance$1 } from "./helpers-CTg3GxNb.js";
|
|
3
|
+
import { Fragment, createComponent as createComponent$1, createComponentWithFallback as createComponentWithFallback$1 } from "vue";
|
|
4
4
|
|
|
5
|
+
//#region src/component.ts
|
|
6
|
+
const createComponent = (type, ...args) => {
|
|
7
|
+
return createProxyComponent(createComponent$1, type, ...args);
|
|
8
|
+
};
|
|
9
|
+
const createComponentWithFallback = (type, ...args) => {
|
|
10
|
+
const slots = args[1];
|
|
11
|
+
if (typeof type === "string" && slots && slots.default && typeof slots.default === "function") {
|
|
12
|
+
const defaultSlot = slots.default;
|
|
13
|
+
slots.default = () => {
|
|
14
|
+
return createProxyComponent(createComponentWithFallback$1, defaultSlot, null, null);
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return createProxyComponent(createComponentWithFallback$1, type, ...args);
|
|
18
|
+
};
|
|
19
|
+
const createProxyComponent = (createComponent$2, type, props, ...args) => {
|
|
20
|
+
if (type === Fragment) {
|
|
21
|
+
type = (_, { slots }) => slots.default ? slots.default() : [];
|
|
22
|
+
props = null;
|
|
23
|
+
}
|
|
24
|
+
const i = getCurrentInstance$1();
|
|
25
|
+
if (!type.__proxyed) {
|
|
26
|
+
if (typeof type === "function") type = new Proxy(type, {
|
|
27
|
+
apply(target, ctx, args$1) {
|
|
28
|
+
if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
|
|
29
|
+
return normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
30
|
+
},
|
|
31
|
+
get(target, p, receiver) {
|
|
32
|
+
if ((i && i.appContext).vapor && p === "__vapor") return true;
|
|
33
|
+
return Reflect.get(target, p, receiver);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
|
|
37
|
+
return normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
38
|
+
} });
|
|
39
|
+
type.__proxyed = true;
|
|
40
|
+
}
|
|
41
|
+
return createComponent$2(type, props, ...args);
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
5
45
|
export { createComponent, createComponentWithFallback };
|
package/dist/h.cjs
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
require('./
|
|
2
|
-
require('./
|
|
3
|
-
require('./component
|
|
4
|
-
const require_h = require('./h-BSBmQ5xG.cjs');
|
|
1
|
+
require('./helpers-CjCn59Dr.cjs');
|
|
2
|
+
const require_block = require('./block.cjs');
|
|
3
|
+
const require_component = require('./component.cjs');
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
//#region src/h.ts
|
|
6
|
+
function h(type, propsOrChildren, children) {
|
|
7
|
+
const l = arguments.length;
|
|
8
|
+
if (l === 2) if (typeof propsOrChildren === "object" && !Array.isArray(propsOrChildren) || typeof propsOrChildren === "function") {
|
|
9
|
+
if (require_block.isBlock(propsOrChildren)) return require_component.createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
10
|
+
return require_component.createComponentWithFallback(type, resolveProps(propsOrChildren));
|
|
11
|
+
} else return require_component.createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
12
|
+
else {
|
|
13
|
+
if (l > 3) children = Array.prototype.slice.call(arguments, 2);
|
|
14
|
+
return require_component.createComponentWithFallback(type, resolveProps(propsOrChildren), children ? typeof children === "object" && !Array.isArray(children) ? children : { default: () => children } : void 0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function resolveProps(props) {
|
|
18
|
+
if (props) {
|
|
19
|
+
if (typeof props === "function") return { $: [props] };
|
|
20
|
+
const resolvedProps = {};
|
|
21
|
+
for (const key in props) if (typeof props[key] === "function" || key === "$") resolvedProps[key] = props[key];
|
|
22
|
+
else resolvedProps[key] = () => props[key];
|
|
23
|
+
return resolvedProps;
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.h = h;
|
package/dist/h.d.cts
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
import "./block
|
|
2
|
-
import {
|
|
1
|
+
import { NodeArrayChildren, NodeChild } from "./block.cjs";
|
|
2
|
+
import { Block, Component, ComponentOptions, ConcreteComponent, DefineComponent, EmitsOptions, Fragment, FunctionalComponent, RawSlots, Suspense, SuspenseProps, Teleport, TeleportProps, VNodeRef } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/h.d.ts
|
|
5
|
+
interface Constructor<P = any> {
|
|
6
|
+
__isFragment?: never;
|
|
7
|
+
__isTeleport?: never;
|
|
8
|
+
__isSuspense?: never;
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$props: P;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
type HTMLElementEventHandler = { [K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (ev: HTMLElementEventMap[K]) => any };
|
|
14
|
+
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
15
|
+
type RawProps$1 = Record<string, any>;
|
|
16
|
+
type ResolveProps<T> = T extends null | undefined ? T : (() => T) | T;
|
|
17
|
+
declare function h<K$1 extends keyof HTMLElementTagNameMap>(type: K$1, children?: NodeChild): Block;
|
|
18
|
+
declare function h<K$1 extends keyof HTMLElementTagNameMap>(type: K$1, props?: ResolveProps<RawProps$1 & HTMLElementEventHandler> | null, children?: NodeChild | RawSlots): Block;
|
|
19
|
+
declare function h(type: string, children?: NodeChild): Block;
|
|
20
|
+
declare function h(type: string, props?: ResolveProps<RawProps$1> | null, children?: NodeChild | RawSlots): Block;
|
|
21
|
+
declare function h(type: typeof Text | typeof Comment, children?: string | number | boolean): Block;
|
|
22
|
+
declare function h(type: typeof Text | typeof Comment, props?: null, children?: string | number | boolean): Block;
|
|
23
|
+
declare function h(type: typeof Fragment, children?: NodeArrayChildren): Block;
|
|
24
|
+
declare function h(type: typeof Fragment, props?: ResolveProps<{
|
|
25
|
+
key?: PropertyKey;
|
|
26
|
+
ref?: VNodeRef;
|
|
27
|
+
}> | null, children?: NodeArrayChildren): Block;
|
|
28
|
+
declare function h(type: typeof Teleport, props: RawProps$1 & TeleportProps, children: NodeChild | RawSlots): Block;
|
|
29
|
+
declare function h(type: typeof Suspense, children?: NodeChild): Block;
|
|
30
|
+
declare function h(type: typeof Suspense, props?: ResolveProps<RawProps$1 & SuspenseProps> | null, children?: NodeChild | RawSlots): Block;
|
|
31
|
+
declare function h(type: FunctionalComponent, children?: NodeChild): Block;
|
|
32
|
+
declare function h<P, E extends EmitsOptions = {}, S extends Record<string, any> = any>(type: FunctionalComponent<P, E, S>, props?: ResolveProps<(RawProps$1 & P) | ({} extends P ? null : never)>, children?: NodeChild | IfAny<S, RawSlots, S>): Block;
|
|
33
|
+
declare function h(type: string | ConcreteComponent | Component | ComponentOptions | Constructor | DefineComponent, children?: NodeChild): Block;
|
|
34
|
+
declare function h<P>(type: string | ConcreteComponent<P> | Component<P> | ComponentOptions<P> | Constructor<P> | DefineComponent<P>, props?: ResolveProps<(RawProps$1 & P) | ({} extends P ? null : never)>, children?: NodeChild | RawSlots): Block;
|
|
35
|
+
//#endregion
|
|
3
36
|
export { h };
|
package/dist/h.d.ts
CHANGED
|
@@ -1,3 +1,36 @@
|
|
|
1
|
-
import "./block
|
|
2
|
-
import {
|
|
1
|
+
import { NodeArrayChildren, NodeChild } from "./block.js";
|
|
2
|
+
import { Block, Component, ComponentOptions, ConcreteComponent, DefineComponent, EmitsOptions, Fragment, FunctionalComponent, RawSlots, Suspense, SuspenseProps, Teleport, TeleportProps, VNodeRef } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/h.d.ts
|
|
5
|
+
interface Constructor<P = any> {
|
|
6
|
+
__isFragment?: never;
|
|
7
|
+
__isTeleport?: never;
|
|
8
|
+
__isSuspense?: never;
|
|
9
|
+
new (...args: any[]): {
|
|
10
|
+
$props: P;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
type HTMLElementEventHandler = { [K in keyof HTMLElementEventMap as `on${Capitalize<K>}`]?: (ev: HTMLElementEventMap[K]) => any };
|
|
14
|
+
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
15
|
+
type RawProps$1 = Record<string, any>;
|
|
16
|
+
type ResolveProps<T> = T extends null | undefined ? T : (() => T) | T;
|
|
17
|
+
declare function h<K$1 extends keyof HTMLElementTagNameMap>(type: K$1, children?: NodeChild): Block;
|
|
18
|
+
declare function h<K$1 extends keyof HTMLElementTagNameMap>(type: K$1, props?: ResolveProps<RawProps$1 & HTMLElementEventHandler> | null, children?: NodeChild | RawSlots): Block;
|
|
19
|
+
declare function h(type: string, children?: NodeChild): Block;
|
|
20
|
+
declare function h(type: string, props?: ResolveProps<RawProps$1> | null, children?: NodeChild | RawSlots): Block;
|
|
21
|
+
declare function h(type: typeof Text | typeof Comment, children?: string | number | boolean): Block;
|
|
22
|
+
declare function h(type: typeof Text | typeof Comment, props?: null, children?: string | number | boolean): Block;
|
|
23
|
+
declare function h(type: typeof Fragment, children?: NodeArrayChildren): Block;
|
|
24
|
+
declare function h(type: typeof Fragment, props?: ResolveProps<{
|
|
25
|
+
key?: PropertyKey;
|
|
26
|
+
ref?: VNodeRef;
|
|
27
|
+
}> | null, children?: NodeArrayChildren): Block;
|
|
28
|
+
declare function h(type: typeof Teleport, props: RawProps$1 & TeleportProps, children: NodeChild | RawSlots): Block;
|
|
29
|
+
declare function h(type: typeof Suspense, children?: NodeChild): Block;
|
|
30
|
+
declare function h(type: typeof Suspense, props?: ResolveProps<RawProps$1 & SuspenseProps> | null, children?: NodeChild | RawSlots): Block;
|
|
31
|
+
declare function h(type: FunctionalComponent, children?: NodeChild): Block;
|
|
32
|
+
declare function h<P, E extends EmitsOptions = {}, S extends Record<string, any> = any>(type: FunctionalComponent<P, E, S>, props?: ResolveProps<(RawProps$1 & P) | ({} extends P ? null : never)>, children?: NodeChild | IfAny<S, RawSlots, S>): Block;
|
|
33
|
+
declare function h(type: string | ConcreteComponent | Component | ComponentOptions | Constructor | DefineComponent, children?: NodeChild): Block;
|
|
34
|
+
declare function h<P>(type: string | ConcreteComponent<P> | Component<P> | ComponentOptions<P> | Constructor<P> | DefineComponent<P>, props?: ResolveProps<(RawProps$1 & P) | ({} extends P ? null : never)>, children?: NodeChild | RawSlots): Block;
|
|
35
|
+
//#endregion
|
|
3
36
|
export { h };
|
package/dist/h.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
import "./block
|
|
2
|
-
import "./helpers-
|
|
3
|
-
import "./component
|
|
4
|
-
import { t as h } from "./h-H2pnsSY9.js";
|
|
1
|
+
import { isBlock } from "./block.js";
|
|
2
|
+
import "./helpers-CTg3GxNb.js";
|
|
3
|
+
import { createComponentWithFallback } from "./component.js";
|
|
5
4
|
|
|
5
|
+
//#region src/h.ts
|
|
6
|
+
function h(type, propsOrChildren, children) {
|
|
7
|
+
const l = arguments.length;
|
|
8
|
+
if (l === 2) if (typeof propsOrChildren === "object" && !Array.isArray(propsOrChildren) || typeof propsOrChildren === "function") {
|
|
9
|
+
if (isBlock(propsOrChildren)) return createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
10
|
+
return createComponentWithFallback(type, resolveProps(propsOrChildren));
|
|
11
|
+
} else return createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
12
|
+
else {
|
|
13
|
+
if (l > 3) children = Array.prototype.slice.call(arguments, 2);
|
|
14
|
+
return createComponentWithFallback(type, resolveProps(propsOrChildren), children ? typeof children === "object" && !Array.isArray(children) ? children : { default: () => children } : void 0);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
function resolveProps(props) {
|
|
18
|
+
if (props) {
|
|
19
|
+
if (typeof props === "function") return { $: [props] };
|
|
20
|
+
const resolvedProps = {};
|
|
21
|
+
for (const key in props) if (typeof props[key] === "function" || key === "$") resolvedProps[key] = props[key];
|
|
22
|
+
else resolvedProps[key] = () => props[key];
|
|
23
|
+
return resolvedProps;
|
|
24
|
+
}
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
6
29
|
export { h };
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
2
28
|
let vue = require("vue");
|
|
3
|
-
vue =
|
|
29
|
+
vue = __toESM(vue);
|
|
4
30
|
|
|
5
31
|
//#region src/helpers.ts
|
|
6
32
|
function getCurrentInstance() {
|
|
@@ -41,6 +67,12 @@ function useFullProps() {
|
|
|
41
67
|
}
|
|
42
68
|
|
|
43
69
|
//#endregion
|
|
70
|
+
Object.defineProperty(exports, '__toESM', {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () {
|
|
73
|
+
return __toESM;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
44
76
|
Object.defineProperty(exports, 'getCurrentInstance', {
|
|
45
77
|
enumerable: true,
|
|
46
78
|
get: function () {
|
package/dist/helpers.cjs
CHANGED
package/dist/helpers.d.cts
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Vue from "vue";
|
|
2
|
+
import { GenericComponentInstance } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers.d.ts
|
|
5
|
+
declare function getCurrentInstance(): GenericComponentInstance | null;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the props of the current component instance.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { useProps } from 'vue-jsx-vapor'
|
|
12
|
+
*
|
|
13
|
+
* defineComponent(({ foo = '' })=>{
|
|
14
|
+
* const props = useProps() // { foo: '' }
|
|
15
|
+
* })
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare function useProps(): {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Returns the merged props and attrs of the current component.\
|
|
23
|
+
* Equivalent to `useProps()` + `useAttrs()`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { useFullProps } from 'vue-jsx-vapor'
|
|
28
|
+
*
|
|
29
|
+
* defineComponent((props) => {
|
|
30
|
+
* const fullProps = useFullProps() // = useAttrs() + useProps()
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
declare function useFullProps(): Vue.ShallowUnwrapRef<{
|
|
34
|
+
[x: string]: Vue.Ref<unknown, unknown>;
|
|
35
|
+
}>;
|
|
36
|
+
//#endregion
|
|
2
37
|
export { getCurrentInstance, useFullProps, useProps };
|
package/dist/helpers.d.ts
CHANGED
|
@@ -1,2 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as Vue from "vue";
|
|
2
|
+
import { GenericComponentInstance } from "vue";
|
|
3
|
+
|
|
4
|
+
//#region src/helpers.d.ts
|
|
5
|
+
declare function getCurrentInstance(): GenericComponentInstance | null;
|
|
6
|
+
/**
|
|
7
|
+
* Returns the props of the current component instance.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* import { useProps } from 'vue-jsx-vapor'
|
|
12
|
+
*
|
|
13
|
+
* defineComponent(({ foo = '' })=>{
|
|
14
|
+
* const props = useProps() // { foo: '' }
|
|
15
|
+
* })
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
declare function useProps(): {
|
|
19
|
+
[x: string]: unknown;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Returns the merged props and attrs of the current component.\
|
|
23
|
+
* Equivalent to `useProps()` + `useAttrs()`.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* import { useFullProps } from 'vue-jsx-vapor'
|
|
28
|
+
*
|
|
29
|
+
* defineComponent((props) => {
|
|
30
|
+
* const fullProps = useFullProps() // = useAttrs() + useProps()
|
|
31
|
+
* })
|
|
32
|
+
*/
|
|
33
|
+
declare function useFullProps(): Vue.ShallowUnwrapRef<{
|
|
34
|
+
[x: string]: Vue.Ref<unknown, unknown>;
|
|
35
|
+
}>;
|
|
36
|
+
//#endregion
|
|
2
37
|
export { getCurrentInstance, useFullProps, useProps };
|
package/dist/helpers.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
const require_block = require('./block
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
require('./
|
|
7
|
-
const
|
|
8
|
-
const require_vue = require('./vue
|
|
9
|
-
const require_vdom = require('./vdom-CI8nGTUQ.cjs');
|
|
1
|
+
const require_helpers = require('./helpers-CjCn59Dr.cjs');
|
|
2
|
+
const require_block = require('./block.cjs');
|
|
3
|
+
const require_component = require('./component.cjs');
|
|
4
|
+
const require_h = require('./h.cjs');
|
|
5
|
+
require('./jsx.cjs');
|
|
6
|
+
const require_node = require('./node.cjs');
|
|
7
|
+
const require_vnode = require('./vnode.cjs');
|
|
8
|
+
const require_vue = require('./vue.cjs');
|
|
10
9
|
let vue = require("vue");
|
|
11
|
-
vue = require_chunk.__toESM(vue);
|
|
12
10
|
|
|
13
11
|
exports.createComponent = require_component.createComponent;
|
|
14
12
|
exports.createComponentWithFallback = require_component.createComponentWithFallback;
|
|
15
13
|
exports.createNodes = require_node.createNodes;
|
|
14
|
+
exports.createVNodeCache = require_vnode.createVNodeCache;
|
|
16
15
|
exports.defineVaporComponent = require_vue.defineVaporComponent;
|
|
17
16
|
exports.getCurrentInstance = require_helpers.getCurrentInstance;
|
|
18
17
|
exports.h = require_h.h;
|
|
19
18
|
exports.isBlock = require_block.isBlock;
|
|
20
19
|
exports.normalizeNode = require_block.normalizeNode;
|
|
20
|
+
exports.normalizeVNode = require_vnode.normalizeVNode;
|
|
21
21
|
exports.setNodes = require_node.setNodes;
|
|
22
22
|
exports.useFullProps = require_helpers.useFullProps;
|
|
23
23
|
exports.useProps = require_helpers.useProps;
|
|
@@ -26,5 +26,4 @@ Object.defineProperty(exports, 'useRef', {
|
|
|
26
26
|
get: function () {
|
|
27
27
|
return vue.shallowRef;
|
|
28
28
|
}
|
|
29
|
-
});
|
|
30
|
-
exports.useVdomCache = require_vdom.useVdomCache;
|
|
29
|
+
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { NodeArrayChildren, NodeChild, isBlock, normalizeNode } from "./block.cjs";
|
|
2
|
+
import { createComponent, createComponentWithFallback } from "./component.cjs";
|
|
3
|
+
import { h } from "./h.cjs";
|
|
4
|
+
import { getCurrentInstance, useFullProps, useProps } from "./helpers.cjs";
|
|
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.cjs";
|
|
6
|
+
import { createNodes, setNodes } from "./node.cjs";
|
|
7
|
+
import { createVNodeCache, normalizeVNode } from "./vnode.cjs";
|
|
8
|
+
import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue.cjs";
|
|
9
9
|
import { shallowRef as useRef } from "vue";
|
|
10
|
-
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
|
|
10
|
+
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, createVNodeCache, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, normalizeVNode, setNodes, useFullProps, useProps, useRef };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { NodeArrayChildren, NodeChild, isBlock, normalizeNode } from "./block.js";
|
|
2
|
+
import { createComponent, createComponentWithFallback } from "./component.js";
|
|
3
|
+
import { h } from "./h.js";
|
|
4
|
+
import { getCurrentInstance, useFullProps, useProps } from "./helpers.js";
|
|
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.js";
|
|
6
|
+
import { createNodes, setNodes } from "./node.js";
|
|
7
|
+
import { createVNodeCache, normalizeVNode } from "./vnode.js";
|
|
8
|
+
import { DefineVaporComponent, DefineVaporSetupFnComponent, FunctionalVaporComponent, ObjectVaporComponent, RenderReturn, TypeEmitsToOptions, VaporComponent, VaporComponentInstance, VaporComponentInstanceConstructor, VaporPublicProps, defineVaporComponent } from "./vue.js";
|
|
9
9
|
import { shallowRef as useRef } from "vue";
|
|
10
|
-
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
|
|
10
|
+
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, createVNodeCache, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, normalizeVNode, setNodes, useFullProps, useProps, useRef };
|
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as useFullProps, r as useProps, t as getCurrentInstance } from "./helpers-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import "./jsx
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { isBlock, normalizeNode } from "./block.js";
|
|
2
|
+
import { n as useFullProps, r as useProps, t as getCurrentInstance } from "./helpers-CTg3GxNb.js";
|
|
3
|
+
import { createComponent, createComponentWithFallback } from "./component.js";
|
|
4
|
+
import { h } from "./h.js";
|
|
5
|
+
import "./jsx.js";
|
|
6
|
+
import { createNodes, setNodes } from "./node.js";
|
|
7
|
+
import { createVNodeCache, normalizeVNode } from "./vnode.js";
|
|
8
|
+
import { defineVaporComponent } from "./vue.js";
|
|
9
9
|
import { shallowRef as useRef } from "vue";
|
|
10
10
|
|
|
11
|
-
export { createComponent, createComponentWithFallback, createNodes, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, setNodes, useFullProps, useProps, useRef
|
|
11
|
+
export { createComponent, createComponentWithFallback, createNodes, createVNodeCache, defineVaporComponent, getCurrentInstance, h, isBlock, normalizeNode, normalizeVNode, setNodes, useFullProps, useProps, useRef };
|