vue-jsx-vapor 2.3.0 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.cjs +2 -5
- package/dist/api.d.cts +6 -7
- package/dist/api.d.ts +6 -7
- package/dist/api.js +3 -6
- package/dist/astro.cjs +14 -18
- package/dist/astro.d.cts +4 -5
- package/dist/astro.d.ts +4 -5
- package/dist/astro.js +13 -17
- package/dist/chunk-BCwAaXi7.cjs +31 -0
- package/dist/core-B29W1zp3.cjs +32 -0
- package/dist/core-BDE4GLH8.js +25 -0
- package/dist/esbuild.cjs +12 -14
- package/dist/esbuild.d.cts +6 -7
- package/dist/esbuild.d.ts +6 -7
- package/dist/esbuild.js +8 -10
- package/dist/index.cjs +66 -78
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +59 -80
- package/dist/jsx-runtime.cjs +14 -13
- package/dist/jsx-runtime.d.cts +24 -23
- package/dist/jsx-runtime.d.ts +24 -23
- package/dist/jsx-runtime.js +9 -13
- package/dist/nuxt.cjs +23 -26
- package/dist/nuxt.d.cts +6 -7
- package/dist/nuxt.d.ts +6 -7
- package/dist/nuxt.js +19 -23
- package/dist/options-HYvLzmlg.js +0 -0
- package/dist/options.cjs +1 -1
- package/dist/options.d-BAyccQwr.d.ts +20 -0
- package/dist/options.d-CA70vgwp.d.cts +20 -0
- package/dist/options.d.cts +2 -17
- package/dist/options.d.ts +2 -17
- package/dist/options.js +1 -1
- package/dist/raw-C8eD8f6a.js +214 -0
- package/dist/raw-Dr3UcxgN.cjs +221 -0
- package/dist/raw.cjs +4 -8
- package/dist/raw.d.cts +5 -6
- package/dist/raw.d.ts +5 -6
- package/dist/raw.js +4 -7
- package/dist/rolldown.cjs +14 -15
- package/dist/rolldown.d.cts +6 -7
- package/dist/rolldown.d.ts +6 -7
- package/dist/rolldown.js +9 -11
- package/dist/rollup.cjs +12 -14
- package/dist/rollup.d.cts +6 -7
- package/dist/rollup.d.ts +6 -7
- package/dist/rollup.js +8 -10
- package/dist/rspack.cjs +12 -14
- package/dist/rspack.d.cts +4 -5
- package/dist/rspack.d.ts +4 -5
- package/dist/rspack.js +8 -10
- package/dist/unplugin-BMMTjSOs.js +32 -0
- package/dist/unplugin-ChZxAtQ0.cjs +51 -0
- package/dist/unplugin.cjs +9 -13
- package/dist/unplugin.d.cts +6 -8
- package/dist/unplugin.d.ts +6 -8
- package/dist/unplugin.js +6 -13
- package/dist/vite-BSUI3W42.js +7 -0
- package/dist/vite-D_zoULH4.cjs +13 -0
- package/dist/vite.cjs +8 -12
- package/dist/vite.d.cts +6 -7
- package/dist/vite.d.ts +6 -7
- package/dist/vite.js +7 -10
- package/dist/volar.cjs +18 -18
- package/dist/volar.d.cts +5 -6
- package/dist/volar.d.ts +5 -6
- package/dist/volar.js +12 -13
- package/dist/webpack-BXmoWpIv.cjs +13 -0
- package/dist/webpack-CeYJ9dJv.js +7 -0
- package/dist/webpack.cjs +8 -12
- package/dist/webpack.d.cts +6 -7
- package/dist/webpack.d.ts +6 -7
- package/dist/webpack.js +7 -10
- package/package.json +9 -9
- package/dist/chunk-4HP6QVER.js +0 -10
- package/dist/chunk-F7CI4ATH.cjs +0 -43
- package/dist/chunk-G2KD2VHX.js +0 -43
- package/dist/chunk-GODVM7NB.cjs +0 -1
- package/dist/chunk-GY6DSRCV.cjs +0 -22
- package/dist/chunk-HNBQ42EP.js +0 -10
- package/dist/chunk-M4VKLZSB.cjs +0 -10
- package/dist/chunk-QBIU4H54.cjs +0 -10
- package/dist/chunk-SAJ6WS2A.js +0 -22
- package/dist/chunk-T3F6TYMY.js +0 -265
- package/dist/chunk-VSS2IZIS.cjs +0 -265
- /package/dist/{chunk-JNAGPWSX.js → options-CulFO0WS.cjs} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,92 +1,71 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
insert,
|
|
5
|
-
isFragment,
|
|
6
|
-
remove,
|
|
7
|
-
renderEffect,
|
|
8
|
-
VaporFragment
|
|
9
|
-
} from "vue";
|
|
10
|
-
import { shallowRef } from "vue";
|
|
1
|
+
import { VaporFragment, effectScope, insert, isFragment, remove, renderEffect, shallowRef as useRef } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/core/runtime.ts
|
|
11
4
|
function createFragment(nodes, anchor = document.createTextNode("")) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
const frag = new VaporFragment(nodes);
|
|
6
|
+
frag.anchor = anchor;
|
|
7
|
+
return frag;
|
|
15
8
|
}
|
|
16
9
|
function normalizeValue(value, anchor) {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return anchor;
|
|
31
|
-
} else {
|
|
32
|
-
return document.createTextNode(result);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
10
|
+
if (value instanceof Node || isFragment(value)) {
|
|
11
|
+
anchor && (anchor.textContent = "");
|
|
12
|
+
return value;
|
|
13
|
+
} else if (Array.isArray(value)) {
|
|
14
|
+
anchor && (anchor.textContent = "");
|
|
15
|
+
return createFragment(value.map((i) => normalizeValue(i)), anchor);
|
|
16
|
+
} else {
|
|
17
|
+
const result = value == null || typeof value === "boolean" ? "" : String(value);
|
|
18
|
+
if (anchor) {
|
|
19
|
+
anchor.textContent = result;
|
|
20
|
+
return anchor;
|
|
21
|
+
} else return document.createTextNode(result);
|
|
22
|
+
}
|
|
35
23
|
}
|
|
36
24
|
function resolveValue(current, value, anchor) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
return node;
|
|
25
|
+
const node = normalizeValue(value, anchor);
|
|
26
|
+
if (current) {
|
|
27
|
+
if (isFragment(current)) {
|
|
28
|
+
const { anchor: anchor$1 } = current;
|
|
29
|
+
if (anchor$1 && anchor$1.parentNode) {
|
|
30
|
+
remove(current.nodes, anchor$1.parentNode);
|
|
31
|
+
insert(node, anchor$1.parentNode, anchor$1);
|
|
32
|
+
anchor$1.remove();
|
|
33
|
+
}
|
|
34
|
+
} else if (current instanceof Node) {
|
|
35
|
+
if (isFragment(node) && current.parentNode) {
|
|
36
|
+
insert(node, current.parentNode, current);
|
|
37
|
+
current.remove();
|
|
38
|
+
} else if (node instanceof Node) {
|
|
39
|
+
if (current.nodeType === 3 && node.nodeType === 3) {
|
|
40
|
+
current.textContent = node.textContent;
|
|
41
|
+
return current;
|
|
42
|
+
} else if (current.parentNode) current.parentNode.replaceChild(node, current);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return node;
|
|
61
47
|
}
|
|
62
48
|
function resolveValues(values = [], _anchor) {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
} else {
|
|
76
|
-
nodes[index] = resolveValue(nodes[index], value, anchor);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return nodes;
|
|
49
|
+
const nodes = [];
|
|
50
|
+
const scopes = [];
|
|
51
|
+
for (const [index, value] of values.entries()) {
|
|
52
|
+
const anchor = index === values.length - 1 ? _anchor : void 0;
|
|
53
|
+
if (typeof value === "function") renderEffect(() => {
|
|
54
|
+
if (scopes[index]) scopes[index].stop();
|
|
55
|
+
scopes[index] = effectScope();
|
|
56
|
+
nodes[index] = scopes[index].run(() => resolveValue(nodes[index], value(), anchor));
|
|
57
|
+
});
|
|
58
|
+
else nodes[index] = resolveValue(nodes[index], value, anchor);
|
|
59
|
+
}
|
|
60
|
+
return nodes;
|
|
80
61
|
}
|
|
81
62
|
function setNodes(anchor, ...values) {
|
|
82
|
-
|
|
83
|
-
|
|
63
|
+
const resolvedValues = resolveValues(values, anchor);
|
|
64
|
+
anchor.parentNode && insert(resolvedValues, anchor.parentNode, anchor);
|
|
84
65
|
}
|
|
85
66
|
function createNodes(...values) {
|
|
86
|
-
|
|
67
|
+
return resolveValues(values);
|
|
87
68
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
shallowRef as useRef
|
|
92
|
-
};
|
|
69
|
+
|
|
70
|
+
//#endregion
|
|
71
|
+
export { createNodes, setNodes, useRef };
|
package/dist/jsx-runtime.cjs
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
3
|
+
const vue = require_chunk.__toESM(require("vue"));
|
|
4
|
+
|
|
5
|
+
//#region src/jsx-runtime.ts
|
|
3
6
|
function jsx(type, props, key) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return _vue.h.call(void 0, type, props, children);
|
|
7
|
+
const { children } = props;
|
|
8
|
+
delete props.children;
|
|
9
|
+
if (arguments.length > 2) props.key = key;
|
|
10
|
+
return (0, vue.h)(type, props, children);
|
|
10
11
|
}
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.Fragment = vue.Fragment
|
|
15
|
+
exports.jsx = jsx
|
|
16
|
+
exports.jsxDEV = jsx
|
|
17
|
+
exports.jsxs = jsx
|
package/dist/jsx-runtime.d.cts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export { Fragment } from 'vue';
|
|
4
|
-
import * as CSS from 'csstype';
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, Fragment, ReservedProps, VNode, VNodeRef, h } from "vue";
|
|
2
|
+
import * as CSS from "csstype";
|
|
5
3
|
|
|
4
|
+
//#region src/jsx-runtime/dom.d.ts
|
|
6
5
|
interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
|
7
6
|
/**
|
|
8
7
|
* The index signature was removed to enable closed typing for style
|
|
@@ -203,8 +202,8 @@ interface AriaAttributes {
|
|
|
203
202
|
'aria-valuetext'?: string;
|
|
204
203
|
}
|
|
205
204
|
/**
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
|
|
206
|
+
*/
|
|
208
207
|
type CrossOrigin = 'anonymous' | 'use-credentials' | '';
|
|
209
208
|
type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
|
|
210
209
|
interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, EventHandlers<Events<T>> {
|
|
@@ -1194,14 +1193,14 @@ interface Events<T = Element> {
|
|
|
1194
1193
|
type EventHandlers<E> = {
|
|
1195
1194
|
[K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
|
|
1196
1195
|
};
|
|
1197
|
-
type ReservedProps$
|
|
1196
|
+
type ReservedProps$2 = {
|
|
1198
1197
|
key?: PropertyKey;
|
|
1199
|
-
ref?:
|
|
1198
|
+
ref?: VNodeRef;
|
|
1200
1199
|
ref_for?: boolean;
|
|
1201
1200
|
ref_key?: string;
|
|
1202
1201
|
};
|
|
1203
1202
|
type NativeElements = {
|
|
1204
|
-
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$
|
|
1203
|
+
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$2;
|
|
1205
1204
|
};
|
|
1206
1205
|
interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
1207
1206
|
nativeEvent: E;
|
|
@@ -1221,12 +1220,12 @@ interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
|
1221
1220
|
type: string;
|
|
1222
1221
|
}
|
|
1223
1222
|
/**
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1223
|
+
* currentTarget - a reference to the element on which the event listener is registered.
|
|
1224
|
+
*
|
|
1225
|
+
* target - a reference to the element from which the event was originally dispatched.
|
|
1226
|
+
* This might be a child element to the element on which the event listener is registered.
|
|
1227
|
+
* If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
|
|
1228
|
+
*/
|
|
1230
1229
|
interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {
|
|
1231
1230
|
}
|
|
1232
1231
|
type EventHandler<E extends SyntheticEvent<any>> = {
|
|
@@ -1334,15 +1333,16 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
|
|
|
1334
1333
|
}
|
|
1335
1334
|
type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
|
|
1336
1335
|
|
|
1336
|
+
//#endregion
|
|
1337
|
+
//#region src/jsx-runtime.d.ts
|
|
1337
1338
|
declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
|
|
1338
|
-
|
|
1339
|
-
type
|
|
1340
|
-
type
|
|
1341
|
-
type
|
|
1342
|
-
type ComponentCustomProps = vue.ComponentCustomProps;
|
|
1339
|
+
type VNode$1 = VNode;
|
|
1340
|
+
type ReservedProps$1 = ReservedProps;
|
|
1341
|
+
type AllowedComponentProps$1 = AllowedComponentProps;
|
|
1342
|
+
type ComponentCustomProps$1 = ComponentCustomProps;
|
|
1343
1343
|
declare global {
|
|
1344
1344
|
namespace JSX {
|
|
1345
|
-
interface Element extends VNode {
|
|
1345
|
+
interface Element extends VNode$1 {
|
|
1346
1346
|
}
|
|
1347
1347
|
interface ElementClass {
|
|
1348
1348
|
$props: {};
|
|
@@ -1353,9 +1353,10 @@ declare global {
|
|
|
1353
1353
|
interface IntrinsicElements extends NativeElements {
|
|
1354
1354
|
[name: string]: any;
|
|
1355
1355
|
}
|
|
1356
|
-
interface IntrinsicAttributes extends ReservedProps, AllowedComponentProps, ComponentCustomProps {
|
|
1356
|
+
interface IntrinsicAttributes extends ReservedProps$1, AllowedComponentProps$1, ComponentCustomProps$1 {
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
|
|
1361
|
+
//#endregion
|
|
1362
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
package/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export { Fragment } from 'vue';
|
|
4
|
-
import * as CSS from 'csstype';
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, Fragment, ReservedProps, VNode, VNodeRef, h } from "vue";
|
|
2
|
+
import * as CSS from "csstype";
|
|
5
3
|
|
|
4
|
+
//#region src/jsx-runtime/dom.d.ts
|
|
6
5
|
interface CSSProperties extends CSS.Properties<string | number>, CSS.PropertiesHyphen<string | number> {
|
|
7
6
|
/**
|
|
8
7
|
* The index signature was removed to enable closed typing for style
|
|
@@ -203,8 +202,8 @@ interface AriaAttributes {
|
|
|
203
202
|
'aria-valuetext'?: string;
|
|
204
203
|
}
|
|
205
204
|
/**
|
|
206
|
-
|
|
207
|
-
|
|
205
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/crossorigin MDN}
|
|
206
|
+
*/
|
|
208
207
|
type CrossOrigin = 'anonymous' | 'use-credentials' | '';
|
|
209
208
|
type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>;
|
|
210
209
|
interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, EventHandlers<Events<T>> {
|
|
@@ -1194,14 +1193,14 @@ interface Events<T = Element> {
|
|
|
1194
1193
|
type EventHandlers<E> = {
|
|
1195
1194
|
[K in keyof E]?: E[K] extends (...args: any) => any ? E[K] : (payload: E[K]) => void;
|
|
1196
1195
|
};
|
|
1197
|
-
type ReservedProps$
|
|
1196
|
+
type ReservedProps$2 = {
|
|
1198
1197
|
key?: PropertyKey;
|
|
1199
|
-
ref?:
|
|
1198
|
+
ref?: VNodeRef;
|
|
1200
1199
|
ref_for?: boolean;
|
|
1201
1200
|
ref_key?: string;
|
|
1202
1201
|
};
|
|
1203
1202
|
type NativeElements = {
|
|
1204
|
-
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$
|
|
1203
|
+
[K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps$2;
|
|
1205
1204
|
};
|
|
1206
1205
|
interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
1207
1206
|
nativeEvent: E;
|
|
@@ -1221,12 +1220,12 @@ interface BaseSyntheticEvent<E = object, C = unknown, T = unknown> {
|
|
|
1221
1220
|
type: string;
|
|
1222
1221
|
}
|
|
1223
1222
|
/**
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1223
|
+
* currentTarget - a reference to the element on which the event listener is registered.
|
|
1224
|
+
*
|
|
1225
|
+
* target - a reference to the element from which the event was originally dispatched.
|
|
1226
|
+
* This might be a child element to the element on which the event listener is registered.
|
|
1227
|
+
* If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/11508#issuecomment-256045682
|
|
1228
|
+
*/
|
|
1230
1229
|
interface SyntheticEvent<T = Element, E = Event> extends BaseSyntheticEvent<E, EventTarget & T, EventTarget> {
|
|
1231
1230
|
}
|
|
1232
1231
|
type EventHandler<E extends SyntheticEvent<any>> = {
|
|
@@ -1334,15 +1333,16 @@ interface TransitionEvent<T = Element> extends SyntheticEvent<T, globalThis.Tran
|
|
|
1334
1333
|
}
|
|
1335
1334
|
type TransitionEventHandler<T = Element> = EventHandler<TransitionEvent<T>>;
|
|
1336
1335
|
|
|
1336
|
+
//#endregion
|
|
1337
|
+
//#region src/jsx-runtime.d.ts
|
|
1337
1338
|
declare function jsx(type: any, props: any, key: any): ReturnType<typeof h>;
|
|
1338
|
-
|
|
1339
|
-
type
|
|
1340
|
-
type
|
|
1341
|
-
type
|
|
1342
|
-
type ComponentCustomProps = vue.ComponentCustomProps;
|
|
1339
|
+
type VNode$1 = VNode;
|
|
1340
|
+
type ReservedProps$1 = ReservedProps;
|
|
1341
|
+
type AllowedComponentProps$1 = AllowedComponentProps;
|
|
1342
|
+
type ComponentCustomProps$1 = ComponentCustomProps;
|
|
1343
1343
|
declare global {
|
|
1344
1344
|
namespace JSX {
|
|
1345
|
-
interface Element extends VNode {
|
|
1345
|
+
interface Element extends VNode$1 {
|
|
1346
1346
|
}
|
|
1347
1347
|
interface ElementClass {
|
|
1348
1348
|
$props: {};
|
|
@@ -1353,9 +1353,10 @@ declare global {
|
|
|
1353
1353
|
interface IntrinsicElements extends NativeElements {
|
|
1354
1354
|
[name: string]: any;
|
|
1355
1355
|
}
|
|
1356
|
-
interface IntrinsicAttributes extends ReservedProps, AllowedComponentProps, ComponentCustomProps {
|
|
1356
|
+
interface IntrinsicAttributes extends ReservedProps$1, AllowedComponentProps$1, ComponentCustomProps$1 {
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
|
|
1361
|
-
|
|
1361
|
+
//#endregion
|
|
1362
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
-
// src/jsx-runtime.ts
|
|
2
1
|
import { Fragment, h } from "vue";
|
|
2
|
+
|
|
3
|
+
//#region src/jsx-runtime.ts
|
|
3
4
|
function jsx(type, props, key) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
return h(type, props, children);
|
|
5
|
+
const { children } = props;
|
|
6
|
+
delete props.children;
|
|
7
|
+
if (arguments.length > 2) props.key = key;
|
|
8
|
+
return h(type, props, children);
|
|
10
9
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
jsx as jsxDEV,
|
|
15
|
-
jsx as jsxs
|
|
16
|
-
};
|
|
10
|
+
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Fragment, jsx, jsx as jsxDEV, jsx as jsxs };
|
package/dist/nuxt.cjs
CHANGED
|
@@ -1,29 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
const require_chunk = require('./chunk-BCwAaXi7.cjs');
|
|
4
|
+
require('./core-B29W1zp3.cjs');
|
|
5
|
+
require('./raw-Dr3UcxgN.cjs');
|
|
6
|
+
require('./options-CulFO0WS.cjs');
|
|
7
|
+
require('./unplugin-ChZxAtQ0.cjs');
|
|
8
|
+
const require_vite = require('./vite-D_zoULH4.cjs');
|
|
9
|
+
const require_webpack = require('./webpack-BXmoWpIv.cjs');
|
|
10
|
+
const __nuxt_kit = require_chunk.__toESM(require("@nuxt/kit"));
|
|
11
|
+
require("@nuxt/schema");
|
|
2
12
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var _kit = require('@nuxt/kit');
|
|
14
|
-
require('@nuxt/schema');
|
|
15
|
-
var nuxt_default = _kit.defineNuxtModule.call(void 0, {
|
|
16
|
-
meta: {
|
|
17
|
-
name: "nuxt-vue-jsx-vapor",
|
|
18
|
-
configKey: "unpluginStarter"
|
|
19
|
-
},
|
|
20
|
-
setup(options) {
|
|
21
|
-
_kit.addVitePlugin.call(void 0, () => _chunkM4VKLZSBcjs.vite_default.call(void 0, options));
|
|
22
|
-
_kit.addWebpackPlugin.call(void 0, () => _chunkQBIU4H54cjs.webpack_default.call(void 0, options));
|
|
23
|
-
}
|
|
13
|
+
//#region src/nuxt.ts
|
|
14
|
+
var nuxt_default = (0, __nuxt_kit.defineNuxtModule)({
|
|
15
|
+
meta: {
|
|
16
|
+
name: "nuxt-vue-jsx-vapor",
|
|
17
|
+
configKey: "unpluginStarter"
|
|
18
|
+
},
|
|
19
|
+
setup(options) {
|
|
20
|
+
(0, __nuxt_kit.addVitePlugin)(() => require_vite.vite_default(options));
|
|
21
|
+
(0, __nuxt_kit.addWebpackPlugin)(() => require_webpack.webpack_default(options));
|
|
22
|
+
}
|
|
24
23
|
});
|
|
25
24
|
|
|
26
|
-
|
|
27
|
-
exports.default = nuxt_default
|
|
28
|
-
|
|
29
|
-
module.exports = exports.default;
|
|
25
|
+
//#endregion
|
|
26
|
+
exports.default = nuxt_default
|
package/dist/nuxt.d.cts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import '@vue-jsx-vapor/compiler';
|
|
4
|
-
import '@vue-jsx-vapor/macros';
|
|
5
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Options } from "./options.d-CA70vgwp.cjs";
|
|
2
|
+
import { NuxtModule } from "@nuxt/schema";
|
|
6
3
|
|
|
4
|
+
//#region src/nuxt.d.ts
|
|
7
5
|
interface ModuleOptions extends Options {
|
|
8
6
|
}
|
|
9
|
-
declare const _default:
|
|
7
|
+
declare const _default: NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ModuleOptions, _default as default };
|
package/dist/nuxt.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import '@vue-jsx-vapor/compiler';
|
|
4
|
-
import '@vue-jsx-vapor/macros';
|
|
5
|
-
import 'unplugin-utils';
|
|
1
|
+
import { Options } from "./options.d-BAyccQwr.js";
|
|
2
|
+
import { NuxtModule } from "@nuxt/schema";
|
|
6
3
|
|
|
4
|
+
//#region src/nuxt.d.ts
|
|
7
5
|
interface ModuleOptions extends Options {
|
|
8
6
|
}
|
|
9
|
-
declare const _default:
|
|
7
|
+
declare const _default: NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ModuleOptions, _default as default };
|
package/dist/nuxt.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
7
|
-
import "./chunk-G2KD2VHX.js";
|
|
8
|
-
import "./chunk-JNAGPWSX.js";
|
|
9
|
-
import "./chunk-T3F6TYMY.js";
|
|
10
|
-
import "./chunk-SAJ6WS2A.js";
|
|
11
|
-
|
|
12
|
-
// src/nuxt.ts
|
|
1
|
+
import "./core-BDE4GLH8.js";
|
|
2
|
+
import "./raw-C8eD8f6a.js";
|
|
3
|
+
import "./options-HYvLzmlg.js";
|
|
4
|
+
import "./unplugin-BMMTjSOs.js";
|
|
5
|
+
import { vite_default } from "./vite-BSUI3W42.js";
|
|
6
|
+
import { webpack_default } from "./webpack-CeYJ9dJv.js";
|
|
13
7
|
import { addVitePlugin, addWebpackPlugin, defineNuxtModule } from "@nuxt/kit";
|
|
14
8
|
import "@nuxt/schema";
|
|
9
|
+
|
|
10
|
+
//#region src/nuxt.ts
|
|
15
11
|
var nuxt_default = defineNuxtModule({
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
meta: {
|
|
13
|
+
name: "nuxt-vue-jsx-vapor",
|
|
14
|
+
configKey: "unpluginStarter"
|
|
15
|
+
},
|
|
16
|
+
setup(options) {
|
|
17
|
+
addVitePlugin(() => vite_default(options));
|
|
18
|
+
addWebpackPlugin(() => webpack_default(options));
|
|
19
|
+
}
|
|
24
20
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export { nuxt_default as default };
|
|
File without changes
|
package/dist/options.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
require('./options-CulFO0WS.cjs');
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FilterPattern } from "unplugin-utils";
|
|
2
|
+
import { CompilerOptions } from "@vue-jsx-vapor/compiler";
|
|
3
|
+
import { Options } from "@vue-jsx-vapor/macros";
|
|
4
|
+
|
|
5
|
+
//#region src/options.d.ts
|
|
6
|
+
interface Options$1 {
|
|
7
|
+
include?: FilterPattern;
|
|
8
|
+
exclude?: FilterPattern;
|
|
9
|
+
interop?: boolean;
|
|
10
|
+
compile?: CompilerOptions;
|
|
11
|
+
/** @default true */
|
|
12
|
+
ref?: {
|
|
13
|
+
alias?: string[];
|
|
14
|
+
} | boolean;
|
|
15
|
+
/** @default false */
|
|
16
|
+
macros?: Options | boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Options$1 as Options };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CompilerOptions } from "@vue-jsx-vapor/compiler";
|
|
2
|
+
import { Options } from "@vue-jsx-vapor/macros";
|
|
3
|
+
import { FilterPattern } from "unplugin-utils";
|
|
4
|
+
|
|
5
|
+
//#region src/options.d.ts
|
|
6
|
+
interface Options$1 {
|
|
7
|
+
include?: FilterPattern;
|
|
8
|
+
exclude?: FilterPattern;
|
|
9
|
+
interop?: boolean;
|
|
10
|
+
compile?: CompilerOptions;
|
|
11
|
+
/** @default true */
|
|
12
|
+
ref?: {
|
|
13
|
+
alias?: string[];
|
|
14
|
+
} | boolean;
|
|
15
|
+
/** @default false */
|
|
16
|
+
macros?: Options | boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Options$1 as Options };
|
package/dist/options.d.cts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Options as Options$1 } from '@vue-jsx-vapor/macros';
|
|
3
|
-
import { FilterPattern } from 'unplugin-utils';
|
|
1
|
+
import { Options } from "./options.d-CA70vgwp.cjs";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
include?: FilterPattern;
|
|
7
|
-
exclude?: FilterPattern;
|
|
8
|
-
interop?: boolean;
|
|
9
|
-
compile?: CompilerOptions;
|
|
10
|
-
/** @default true */
|
|
11
|
-
ref?: {
|
|
12
|
-
alias?: string[];
|
|
13
|
-
} | boolean;
|
|
14
|
-
/** @default false */
|
|
15
|
-
macros?: Options$1 | boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type { Options };
|
|
3
|
+
export { Options };
|
package/dist/options.d.ts
CHANGED
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Options as Options$1 } from '@vue-jsx-vapor/macros';
|
|
3
|
-
import { FilterPattern } from 'unplugin-utils';
|
|
1
|
+
import { Options } from "./options.d-BAyccQwr.js";
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
include?: FilterPattern;
|
|
7
|
-
exclude?: FilterPattern;
|
|
8
|
-
interop?: boolean;
|
|
9
|
-
compile?: CompilerOptions;
|
|
10
|
-
/** @default true */
|
|
11
|
-
ref?: {
|
|
12
|
-
alias?: string[];
|
|
13
|
-
} | boolean;
|
|
14
|
-
/** @default false */
|
|
15
|
-
macros?: Options$1 | boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type { Options };
|
|
3
|
+
export { Options };
|
package/dist/options.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import "./options-HYvLzmlg.js";
|