@vue-jsx-vapor/runtime 3.0.4 → 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-C13Oo-p0.d.cts +0 -9
- package/dist/component-DGRkjdbo.cjs +0 -58
- package/dist/component-YLvTjTHV.d.ts +0 -9
- package/dist/component-pVAwQvtd.js +0 -45
- package/dist/h-BIh3D_lt.cjs +0 -33
- package/dist/h-BiyYwTqr.d.cts +0 -36
- package/dist/h-CJ77uHHG.js +0 -28
- package/dist/h-CRAb05GU.d.ts +0 -36
- package/dist/helpers-B37sqEig.d.ts +0 -37
- package/dist/helpers-CABYlIBX.d.cts +0 -37
- package/dist/jsx-C5yte_hi.js +0 -1
- package/dist/jsx-CTAfwhvm.cjs +0 -0
- package/dist/jsx-DcR6l_MD.d.ts +0 -1326
- package/dist/jsx-fC1dHUHK.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-DzOQpwy5.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
10
|
-
export { normalizeNode as i, NodeChild as n, isBlock as r, NodeArrayChildren as t };
|
package/dist/block-sF5z9ijJ.cjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
let vue = require("vue");
|
|
3
|
-
vue = require_chunk.__toESM(vue);
|
|
4
|
-
|
|
5
|
-
//#region src/block.ts
|
|
6
|
-
function normalizeNode(node) {
|
|
7
|
-
if (node == null || typeof node === "boolean") return document.createComment("");
|
|
8
|
-
else if (Array.isArray(node) && node.length) return node.map(normalizeNode);
|
|
9
|
-
else if (isBlock(node)) return node;
|
|
10
|
-
else return (0, vue.createTextNode)(String(node));
|
|
11
|
-
}
|
|
12
|
-
function isBlock(val) {
|
|
13
|
-
return val instanceof Node || Array.isArray(val) || (0, vue.isVaporComponent)(val) || (0, vue.isFragment)(val);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
//#endregion
|
|
17
|
-
Object.defineProperty(exports, 'isBlock', {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () {
|
|
20
|
-
return isBlock;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(exports, 'normalizeNode', {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function () {
|
|
26
|
-
return normalizeNode;
|
|
27
|
-
}
|
|
28
|
-
});
|
package/dist/chunk-CUT6urMc.cjs
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
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") 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
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
19
|
-
value: mod,
|
|
20
|
-
enumerable: true
|
|
21
|
-
}) : target, mod));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
|
|
25
|
-
Object.defineProperty(exports, '__toESM', {
|
|
26
|
-
enumerable: true,
|
|
27
|
-
get: function () {
|
|
28
|
-
return __toESM;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as vue0 from "vue";
|
|
2
|
-
import { Fragment, VaporComponent, createComponent, createComponentWithFallback } 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$1: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponent>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
7
|
-
declare const createComponentWithFallback$1: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponentWithFallback>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { createComponentWithFallback$1 as n, createComponent$1 as t };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
-
const require_block = require('./block-sF5z9ijJ.cjs');
|
|
3
|
-
const require_helpers = require('./helpers-Ie9fa1JX.cjs');
|
|
4
|
-
let vue = require("vue");
|
|
5
|
-
vue = require_chunk.__toESM(vue);
|
|
6
|
-
|
|
7
|
-
//#region src/component.ts
|
|
8
|
-
const createComponent = (type, ...args) => {
|
|
9
|
-
return createProxyComponent(vue.createComponent, type, ...args);
|
|
10
|
-
};
|
|
11
|
-
const createComponentWithFallback = (type, ...args) => {
|
|
12
|
-
const slots = args[1];
|
|
13
|
-
if (typeof type === "string" && slots && slots.default && typeof slots.default === "function") {
|
|
14
|
-
const defaultSlot = slots.default;
|
|
15
|
-
slots.default = () => {
|
|
16
|
-
return createProxyComponent(vue.createComponentWithFallback, defaultSlot, null, null);
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
return createProxyComponent(vue.createComponentWithFallback, type, ...args);
|
|
20
|
-
};
|
|
21
|
-
const createProxyComponent = (createComponent$1, type, props, ...args) => {
|
|
22
|
-
if (type === vue.Fragment) {
|
|
23
|
-
type = (_, { slots }) => slots.default ? slots.default() : [];
|
|
24
|
-
props = null;
|
|
25
|
-
}
|
|
26
|
-
const i = require_helpers.getCurrentInstance();
|
|
27
|
-
if (!type.__proxyed) {
|
|
28
|
-
if (typeof type === "function") type = new Proxy(type, {
|
|
29
|
-
apply(target, ctx, args$1) {
|
|
30
|
-
if (typeof target.__setup === "function") target.__setup.apply(ctx, args$1);
|
|
31
|
-
return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
32
|
-
},
|
|
33
|
-
get(target, p, receiver) {
|
|
34
|
-
if ((i && i.appContext).vapor && p === "__vapor") return true;
|
|
35
|
-
return Reflect.get(target, p, receiver);
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
else if (type.__vapor && type.setup) type.setup = new Proxy(type.setup, { apply(target, ctx, args$1) {
|
|
39
|
-
return require_block.normalizeNode(Reflect.apply(target, ctx, args$1));
|
|
40
|
-
} });
|
|
41
|
-
type.__proxyed = true;
|
|
42
|
-
}
|
|
43
|
-
return createComponent$1(type, props, ...args);
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
Object.defineProperty(exports, 'createComponent', {
|
|
48
|
-
enumerable: true,
|
|
49
|
-
get: function () {
|
|
50
|
-
return createComponent;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
Object.defineProperty(exports, 'createComponentWithFallback', {
|
|
54
|
-
enumerable: true,
|
|
55
|
-
get: function () {
|
|
56
|
-
return createComponentWithFallback;
|
|
57
|
-
}
|
|
58
|
-
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as vue0 from "vue";
|
|
2
|
-
import { Fragment, VaporComponent, createComponent, createComponentWithFallback } 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$1: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponent>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
7
|
-
declare const createComponentWithFallback$1: (type: VaporComponent | typeof Fragment, ...args: Tail<Parameters<typeof createComponentWithFallback>>) => vue0.VaporComponentInstance | HTMLElement;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { createComponentWithFallback$1 as n, createComponent$1 as t };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { n as normalizeNode } from "./block-BZYKbYTH.js";
|
|
2
|
-
import { t as getCurrentInstance$1 } from "./helpers-C6cGsX4q.js";
|
|
3
|
-
import { Fragment, createComponent, createComponentWithFallback } from "vue";
|
|
4
|
-
|
|
5
|
-
//#region src/component.ts
|
|
6
|
-
const createComponent$1 = (type, ...args) => {
|
|
7
|
-
return createProxyComponent(createComponent, type, ...args);
|
|
8
|
-
};
|
|
9
|
-
const createComponentWithFallback$1 = (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, defaultSlot, null, null);
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
return createProxyComponent(createComponentWithFallback, 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
|
|
45
|
-
export { createComponentWithFallback$1 as n, createComponent$1 as t };
|
package/dist/h-BIh3D_lt.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_block = require('./block-sF5z9ijJ.cjs');
|
|
2
|
-
const require_component = require('./component-DGRkjdbo.cjs');
|
|
3
|
-
|
|
4
|
-
//#region src/h.ts
|
|
5
|
-
function h(type, propsOrChildren, children) {
|
|
6
|
-
const l = arguments.length;
|
|
7
|
-
if (l === 2) if (typeof propsOrChildren === "object" && !Array.isArray(propsOrChildren) || typeof propsOrChildren === "function") {
|
|
8
|
-
if (require_block.isBlock(propsOrChildren)) return require_component.createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
9
|
-
return require_component.createComponentWithFallback(type, resolveProps(propsOrChildren));
|
|
10
|
-
} else return require_component.createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
11
|
-
else {
|
|
12
|
-
if (l > 3) children = Array.prototype.slice.call(arguments, 2);
|
|
13
|
-
return require_component.createComponentWithFallback(type, resolveProps(propsOrChildren), children ? typeof children === "object" && !Array.isArray(children) ? children : { default: () => children } : void 0);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function resolveProps(props) {
|
|
17
|
-
if (props) {
|
|
18
|
-
if (typeof props === "function") return { $: [props] };
|
|
19
|
-
const resolvedProps = {};
|
|
20
|
-
for (const key in props) if (typeof props[key] === "function" || key === "$") resolvedProps[key] = props[key];
|
|
21
|
-
else resolvedProps[key] = () => props[key];
|
|
22
|
-
return resolvedProps;
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
Object.defineProperty(exports, 'h', {
|
|
29
|
-
enumerable: true,
|
|
30
|
-
get: function () {
|
|
31
|
-
return h;
|
|
32
|
-
}
|
|
33
|
-
});
|
package/dist/h-BiyYwTqr.d.cts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { n as NodeChild, t as NodeArrayChildren } from "./block-BycCFoa3.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
|
|
36
|
-
export { h as t };
|
package/dist/h-CJ77uHHG.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { t as isBlock } from "./block-BZYKbYTH.js";
|
|
2
|
-
import { n as createComponentWithFallback } from "./component-pVAwQvtd.js";
|
|
3
|
-
|
|
4
|
-
//#region src/h.ts
|
|
5
|
-
function h(type, propsOrChildren, children) {
|
|
6
|
-
const l = arguments.length;
|
|
7
|
-
if (l === 2) if (typeof propsOrChildren === "object" && !Array.isArray(propsOrChildren) || typeof propsOrChildren === "function") {
|
|
8
|
-
if (isBlock(propsOrChildren)) return createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
9
|
-
return createComponentWithFallback(type, resolveProps(propsOrChildren));
|
|
10
|
-
} else return createComponentWithFallback(type, null, { default: () => propsOrChildren });
|
|
11
|
-
else {
|
|
12
|
-
if (l > 3) children = Array.prototype.slice.call(arguments, 2);
|
|
13
|
-
return createComponentWithFallback(type, resolveProps(propsOrChildren), children ? typeof children === "object" && !Array.isArray(children) ? children : { default: () => children } : void 0);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
function resolveProps(props) {
|
|
17
|
-
if (props) {
|
|
18
|
-
if (typeof props === "function") return { $: [props] };
|
|
19
|
-
const resolvedProps = {};
|
|
20
|
-
for (const key in props) if (typeof props[key] === "function" || key === "$") resolvedProps[key] = props[key];
|
|
21
|
-
else resolvedProps[key] = () => props[key];
|
|
22
|
-
return resolvedProps;
|
|
23
|
-
}
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export { h as t };
|
package/dist/h-CRAb05GU.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { n as NodeChild, t as NodeArrayChildren } from "./block-DzOQpwy5.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
|
|
36
|
-
export { h as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as Vue from "vue";
|
|
2
|
-
import { GenericComponentInstance } from "vue";
|
|
3
|
-
|
|
4
|
-
//#region src/helpers.d.ts
|
|
5
|
-
declare function getCurrentInstance$1(): 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
|
|
37
|
-
export { useFullProps as n, useProps as r, getCurrentInstance$1 as t };
|
|
@@ -1,37 +0,0 @@
|
|
|
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
|
|
37
|
-
export { useFullProps as n, useProps as r, getCurrentInstance as t };
|
package/dist/jsx-C5yte_hi.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/jsx-CTAfwhvm.cjs
DELETED
|
File without changes
|