@vue-jsx-vapor/macros 2.3.0 → 2.3.1
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 +6 -13
- package/dist/api.d.cts +8 -4
- package/dist/api.d.ts +8 -4
- package/dist/api.js +3 -14
- package/dist/astro.cjs +14 -18
- package/dist/astro.d.cts +4 -3
- package/dist/astro.d.ts +4 -3
- package/dist/astro.js +13 -17
- package/dist/chunk-BCwAaXi7.cjs +31 -0
- package/dist/core-B1Tt-ieP.cjs +438 -0
- package/dist/core-cHgZBgtA.js +377 -0
- package/dist/esbuild.cjs +12 -14
- package/dist/esbuild.d.cts +6 -5
- package/dist/esbuild.d.ts +6 -5
- package/dist/esbuild.js +9 -11
- package/dist/index.cjs +8 -12
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +6 -12
- package/dist/nuxt.cjs +23 -26
- package/dist/nuxt.d.cts +6 -5
- package/dist/nuxt.d.ts +6 -5
- package/dist/nuxt.js +19 -23
- package/dist/options-CNIhAQHD.cjs +27 -0
- package/dist/options-pbSvpKdV.js +20 -0
- package/dist/options.cjs +2 -5
- package/dist/options.d-B3WOiT_L.d.cts +26 -0
- package/dist/options.d-DtyRfe-9.d.ts +26 -0
- package/dist/options.d.cts +2 -23
- package/dist/options.d.ts +2 -23
- package/dist/options.js +3 -6
- package/dist/raw-3ZelnSQR.cjs +62 -0
- package/dist/raw-9SXDNxBH.js +55 -0
- package/dist/raw.cjs +5 -9
- package/dist/raw.d.cts +5 -4
- package/dist/raw.d.ts +5 -4
- package/dist/raw.js +5 -8
- package/dist/rolldown.cjs +12 -14
- package/dist/rolldown.d.cts +4 -3
- package/dist/rolldown.d.ts +4 -3
- package/dist/rolldown.js +9 -11
- package/dist/rollup.cjs +12 -14
- package/dist/rollup.d.cts +6 -5
- package/dist/rollup.d.ts +6 -5
- package/dist/rollup.js +9 -11
- package/dist/rspack.cjs +12 -14
- package/dist/rspack.d.cts +4 -3
- package/dist/rspack.d.ts +4 -3
- package/dist/rspack.js +9 -11
- package/dist/src-BfZoaRPY.js +9 -0
- package/dist/src-DwQLomPw.cjs +16 -0
- package/dist/vite-C5QxH0B9.cjs +13 -0
- package/dist/vite-DPLCEtsm.js +7 -0
- package/dist/vite.cjs +8 -12
- package/dist/vite.d.cts +6 -5
- package/dist/vite.d.ts +6 -5
- package/dist/vite.js +7 -10
- package/dist/volar.cjs +220 -371
- package/dist/volar.d.cts +5 -4
- package/dist/volar.d.ts +5 -4
- package/dist/volar.js +217 -369
- package/dist/webpack-1cYmRdvx.js +7 -0
- package/dist/webpack-B-EPKx0G.cjs +13 -0
- package/dist/webpack.cjs +8 -12
- package/dist/webpack.d.cts +6 -5
- package/dist/webpack.d.ts +6 -5
- package/dist/webpack.js +7 -10
- package/package.json +3 -3
- package/dist/chunk-53TNKVYD.cjs +0 -29
- package/dist/chunk-AUE5EAQA.js +0 -12
- package/dist/chunk-DANY2WQD.js +0 -29
- package/dist/chunk-E5WGUCGE.js +0 -68
- package/dist/chunk-HBVQYNJJ.js +0 -10
- package/dist/chunk-KUKYWPEK.cjs +0 -10
- package/dist/chunk-L26STXZK.cjs +0 -12
- package/dist/chunk-PWA6BBMQ.cjs +0 -10
- package/dist/chunk-SMWNQXL7.js +0 -585
- package/dist/chunk-UAWFIGPX.cjs +0 -68
- package/dist/chunk-ZQ4GVJKX.cjs +0 -585
- package/dist/chunk-ZXJQCFZZ.js +0 -10
package/dist/api.cjs
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
const require_core = require('./core-B1Tt-ieP.cjs');
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.getMacroExpression = _chunkZQ4GVJKXcjs.getMacroExpression; exports.getParamsStart = _chunkZQ4GVJKXcjs.getParamsStart; exports.isFunctionalNode = _chunkZQ4GVJKXcjs.isFunctionalNode; exports.restructure = _chunkZQ4GVJKXcjs.restructure; exports.transformJsxMacros = _chunkZQ4GVJKXcjs.transformJsxMacros;
|
|
3
|
+
exports.getMacroExpression = require_core.getMacroExpression
|
|
4
|
+
exports.getParamsStart = require_core.getParamsStart
|
|
5
|
+
exports.isFunctionalNode = require_core.isFunctionalNode
|
|
6
|
+
exports.restructure = require_core.restructure
|
|
7
|
+
exports.transformJsxMacros = require_core.transformJsxMacros
|
package/dist/api.d.cts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { OptionsResolved } from "./options.d-B3WOiT_L.cjs";
|
|
2
|
+
import { CodeTransform, MagicString } from "@vue-macros/common";
|
|
3
|
+
import { ArrowFunctionExpression, CallExpression, FunctionDeclaration, FunctionExpression, Node } from "@babel/types";
|
|
4
4
|
|
|
5
|
+
//#region src/core/restructure.d.ts
|
|
5
6
|
type Options = {
|
|
6
7
|
withDefaultsFrom?: string;
|
|
7
8
|
generateRestProps?: (restPropsName: string, index: number, list: Prop[]) => string | undefined;
|
|
@@ -16,6 +17,8 @@ type Prop = {
|
|
|
16
17
|
};
|
|
17
18
|
declare function restructure(s: MagicString, node: FunctionalNode, options?: Options): Prop[];
|
|
18
19
|
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/core/index.d.ts
|
|
19
22
|
type FunctionalNode = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
|
|
20
23
|
type DefineStyle = {
|
|
21
24
|
expression: CallExpression;
|
|
@@ -37,4 +40,5 @@ declare function isFunctionalNode(node?: Node | null): node is FunctionalNode;
|
|
|
37
40
|
declare function getMacroExpression(node: Node, options: OptionsResolved): CallExpression | undefined;
|
|
38
41
|
declare function getParamsStart(node: FunctionalNode, code: string): number;
|
|
39
42
|
|
|
40
|
-
|
|
43
|
+
//#endregion
|
|
44
|
+
export { DefineStyle, FunctionalNode, RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { OptionsResolved } from "./options.d-DtyRfe-9.js";
|
|
2
|
+
import { CodeTransform, MagicString } from "@vue-macros/common";
|
|
3
|
+
import { ArrowFunctionExpression, CallExpression, FunctionDeclaration, FunctionExpression, Node } from "@babel/types";
|
|
4
4
|
|
|
5
|
+
//#region src/core/restructure.d.ts
|
|
5
6
|
type Options = {
|
|
6
7
|
withDefaultsFrom?: string;
|
|
7
8
|
generateRestProps?: (restPropsName: string, index: number, list: Prop[]) => string | undefined;
|
|
@@ -16,6 +17,8 @@ type Prop = {
|
|
|
16
17
|
};
|
|
17
18
|
declare function restructure(s: MagicString, node: FunctionalNode, options?: Options): Prop[];
|
|
18
19
|
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region src/core/index.d.ts
|
|
19
22
|
type FunctionalNode = FunctionDeclaration | FunctionExpression | ArrowFunctionExpression;
|
|
20
23
|
type DefineStyle = {
|
|
21
24
|
expression: CallExpression;
|
|
@@ -37,4 +40,5 @@ declare function isFunctionalNode(node?: Node | null): node is FunctionalNode;
|
|
|
37
40
|
declare function getMacroExpression(node: Node, options: OptionsResolved): CallExpression | undefined;
|
|
38
41
|
declare function getParamsStart(node: FunctionalNode, code: string): number;
|
|
39
42
|
|
|
40
|
-
|
|
43
|
+
//#endregion
|
|
44
|
+
export { DefineStyle, FunctionalNode, RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
|
package/dist/api.js
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
isFunctionalNode,
|
|
5
|
-
restructure,
|
|
6
|
-
transformJsxMacros
|
|
7
|
-
} from "./chunk-SMWNQXL7.js";
|
|
8
|
-
export {
|
|
9
|
-
getMacroExpression,
|
|
10
|
-
getParamsStart,
|
|
11
|
-
isFunctionalNode,
|
|
12
|
-
restructure,
|
|
13
|
-
transformJsxMacros
|
|
14
|
-
};
|
|
1
|
+
import { getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros } from "./core-cHgZBgtA.js";
|
|
2
|
+
|
|
3
|
+
export { getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
|
package/dist/astro.cjs
CHANGED
|
@@ -1,22 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
|
+
require('./core-B1Tt-ieP.cjs');
|
|
4
|
+
require('./raw-3ZelnSQR.cjs');
|
|
5
|
+
require('./options-CNIhAQHD.cjs');
|
|
6
|
+
const require_src = require('./src-DwQLomPw.cjs');
|
|
2
7
|
|
|
3
|
-
|
|
4
|
-
require('./chunk-UAWFIGPX.cjs');
|
|
5
|
-
require('./chunk-ZQ4GVJKX.cjs');
|
|
6
|
-
require('./chunk-53TNKVYD.cjs');
|
|
7
|
-
|
|
8
|
-
// src/astro.ts
|
|
8
|
+
//#region src/astro.ts
|
|
9
9
|
var astro_default = (options) => ({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
10
|
+
name: "vue-jsx-vapor",
|
|
11
|
+
hooks: { "astro:config:setup": (astro) => {
|
|
12
|
+
astro.config.vite.plugins ||= [];
|
|
13
|
+
astro.config.vite.plugins.push(require_src.src_default.vite(options));
|
|
14
|
+
} }
|
|
17
15
|
});
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
exports.default = astro_default
|
|
21
|
-
|
|
22
|
-
module.exports = exports.default;
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.default = astro_default
|
package/dist/astro.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Options } from
|
|
2
|
-
import '@vue-macros/common';
|
|
1
|
+
import { Options } from "./options.d-B3WOiT_L.cjs";
|
|
3
2
|
|
|
3
|
+
//#region src/astro.d.ts
|
|
4
4
|
declare const _default: (options: Options) => {
|
|
5
5
|
name: string;
|
|
6
6
|
hooks: {
|
|
@@ -8,4 +8,5 @@ declare const _default: (options: Options) => {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
export { _default as default };
|
package/dist/astro.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Options } from
|
|
2
|
-
import '@vue-macros/common';
|
|
1
|
+
import { Options } from "./options.d-DtyRfe-9.js";
|
|
3
2
|
|
|
3
|
+
//#region src/astro.d.ts
|
|
4
4
|
declare const _default: (options: Options) => {
|
|
5
5
|
name: string;
|
|
6
6
|
hooks: {
|
|
@@ -8,4 +8,5 @@ declare const _default: (options: Options) => {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
//#endregion
|
|
12
|
+
export { _default as default };
|
package/dist/astro.js
CHANGED
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import "./
|
|
5
|
-
import "./chunk-SMWNQXL7.js";
|
|
6
|
-
import "./chunk-DANY2WQD.js";
|
|
1
|
+
import "./core-cHgZBgtA.js";
|
|
2
|
+
import "./raw-9SXDNxBH.js";
|
|
3
|
+
import "./options-pbSvpKdV.js";
|
|
4
|
+
import { src_default } from "./src-BfZoaRPY.js";
|
|
7
5
|
|
|
8
|
-
|
|
6
|
+
//#region src/astro.ts
|
|
9
7
|
var astro_default = (options) => ({
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
}
|
|
8
|
+
name: "vue-jsx-vapor",
|
|
9
|
+
hooks: { "astro:config:setup": (astro) => {
|
|
10
|
+
astro.config.vite.plugins ||= [];
|
|
11
|
+
astro.config.vite.plugins.push(src_default.vite(options));
|
|
12
|
+
} }
|
|
17
13
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
14
|
+
|
|
15
|
+
//#endregion
|
|
16
|
+
export { astro_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
//#region rolldown:runtime
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") 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) __defProp(to, key, {
|
|
13
|
+
get: ((k) => from[k]).bind(null, key),
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
20
|
+
value: mod,
|
|
21
|
+
enumerable: true
|
|
22
|
+
}) : target, mod));
|
|
23
|
+
|
|
24
|
+
//#endregion
|
|
25
|
+
|
|
26
|
+
Object.defineProperty(exports, '__toESM', {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () {
|
|
29
|
+
return __toESM;
|
|
30
|
+
}
|
|
31
|
+
});
|