@vue-jsx-vapor/macros 2.2.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.
Files changed (80) hide show
  1. package/dist/api.cjs +6 -13
  2. package/dist/api.d.cts +8 -4
  3. package/dist/api.d.ts +8 -4
  4. package/dist/api.js +3 -14
  5. package/dist/astro.cjs +14 -18
  6. package/dist/astro.d.cts +4 -3
  7. package/dist/astro.d.ts +4 -3
  8. package/dist/astro.js +13 -17
  9. package/dist/chunk-BCwAaXi7.cjs +31 -0
  10. package/dist/core-B1Tt-ieP.cjs +438 -0
  11. package/dist/core-cHgZBgtA.js +377 -0
  12. package/dist/esbuild.cjs +12 -14
  13. package/dist/esbuild.d.cts +6 -5
  14. package/dist/esbuild.d.ts +6 -5
  15. package/dist/esbuild.js +9 -11
  16. package/dist/index.cjs +8 -12
  17. package/dist/index.d.cts +5 -5
  18. package/dist/index.d.ts +5 -5
  19. package/dist/index.js +6 -12
  20. package/dist/nuxt.cjs +23 -26
  21. package/dist/nuxt.d.cts +6 -5
  22. package/dist/nuxt.d.ts +6 -5
  23. package/dist/nuxt.js +19 -23
  24. package/dist/options-CNIhAQHD.cjs +27 -0
  25. package/dist/options-pbSvpKdV.js +20 -0
  26. package/dist/options.cjs +2 -5
  27. package/dist/options.d-B3WOiT_L.d.cts +26 -0
  28. package/dist/options.d-DtyRfe-9.d.ts +26 -0
  29. package/dist/options.d.cts +2 -22
  30. package/dist/options.d.ts +2 -22
  31. package/dist/options.js +3 -6
  32. package/dist/raw-3ZelnSQR.cjs +62 -0
  33. package/dist/raw-9SXDNxBH.js +55 -0
  34. package/dist/raw.cjs +5 -9
  35. package/dist/raw.d.cts +5 -4
  36. package/dist/raw.d.ts +5 -4
  37. package/dist/raw.js +5 -8
  38. package/dist/rolldown.cjs +12 -14
  39. package/dist/rolldown.d.cts +4 -3
  40. package/dist/rolldown.d.ts +4 -3
  41. package/dist/rolldown.js +9 -11
  42. package/dist/rollup.cjs +12 -14
  43. package/dist/rollup.d.cts +6 -5
  44. package/dist/rollup.d.ts +6 -5
  45. package/dist/rollup.js +9 -11
  46. package/dist/rspack.cjs +12 -14
  47. package/dist/rspack.d.cts +4 -3
  48. package/dist/rspack.d.ts +4 -3
  49. package/dist/rspack.js +9 -11
  50. package/dist/src-BfZoaRPY.js +9 -0
  51. package/dist/src-DwQLomPw.cjs +16 -0
  52. package/dist/vite-C5QxH0B9.cjs +13 -0
  53. package/dist/vite-DPLCEtsm.js +7 -0
  54. package/dist/vite.cjs +8 -12
  55. package/dist/vite.d.cts +6 -5
  56. package/dist/vite.d.ts +6 -5
  57. package/dist/vite.js +7 -10
  58. package/dist/volar.cjs +220 -371
  59. package/dist/volar.d.cts +5 -4
  60. package/dist/volar.d.ts +5 -4
  61. package/dist/volar.js +217 -369
  62. package/dist/webpack-1cYmRdvx.js +7 -0
  63. package/dist/webpack-B-EPKx0G.cjs +13 -0
  64. package/dist/webpack.cjs +8 -12
  65. package/dist/webpack.d.cts +6 -5
  66. package/dist/webpack.d.ts +6 -5
  67. package/dist/webpack.js +7 -10
  68. package/package.json +3 -3
  69. package/dist/chunk-35H4MC4N.cjs +0 -65
  70. package/dist/chunk-53TNKVYD.cjs +0 -29
  71. package/dist/chunk-DANY2WQD.js +0 -29
  72. package/dist/chunk-JWJVYLYI.cjs +0 -12
  73. package/dist/chunk-LPH34H6O.cjs +0 -566
  74. package/dist/chunk-LVZNHMZC.js +0 -12
  75. package/dist/chunk-NL4CWOW2.cjs +0 -10
  76. package/dist/chunk-RC5ZHWIN.js +0 -10
  77. package/dist/chunk-TWP2JCYQ.js +0 -566
  78. package/dist/chunk-WOWB5VHY.js +0 -65
  79. package/dist/chunk-WZIZSQGW.js +0 -10
  80. package/dist/chunk-YCL7HGD4.cjs +0 -10
package/dist/api.cjs CHANGED
@@ -1,14 +1,7 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
1
+ const require_core = require('./core-B1Tt-ieP.cjs');
2
2
 
3
-
4
-
5
-
6
-
7
- var _chunkLPH34H6Ocjs = require('./chunk-LPH34H6O.cjs');
8
-
9
-
10
-
11
-
12
-
13
-
14
- exports.getMacroExpression = _chunkLPH34H6Ocjs.getMacroExpression; exports.getParamsStart = _chunkLPH34H6Ocjs.getParamsStart; exports.isFunctionalNode = _chunkLPH34H6Ocjs.isFunctionalNode; exports.restructure = _chunkLPH34H6Ocjs.restructure; exports.transformJsxMacros = _chunkLPH34H6Ocjs.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 { MagicString, CodeTransform } from '@vue-macros/common';
2
- import { OptionsResolved } from './options.cjs';
3
- import { FunctionDeclaration, FunctionExpression, ArrowFunctionExpression, CallExpression, Node } from '@babel/types';
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
- export { type DefineStyle, type FunctionalNode, type RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
43
+ //#endregion
44
+ export { DefineStyle, FunctionalNode, RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { MagicString, CodeTransform } from '@vue-macros/common';
2
- import { OptionsResolved } from './options.js';
3
- import { FunctionDeclaration, FunctionExpression, ArrowFunctionExpression, CallExpression, Node } from '@babel/types';
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
- export { type DefineStyle, type FunctionalNode, type RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
43
+ //#endregion
44
+ export { DefineStyle, FunctionalNode, RootMapValue, getMacroExpression, getParamsStart, isFunctionalNode, restructure, transformJsxMacros };
package/dist/api.js CHANGED
@@ -1,14 +1,3 @@
1
- import {
2
- getMacroExpression,
3
- getParamsStart,
4
- isFunctionalNode,
5
- restructure,
6
- transformJsxMacros
7
- } from "./chunk-TWP2JCYQ.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";Object.defineProperty(exports, "__esModule", {value: true});
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
- var _chunkJWJVYLYIcjs = require('./chunk-JWJVYLYI.cjs');
4
- require('./chunk-35H4MC4N.cjs');
5
- require('./chunk-LPH34H6O.cjs');
6
- require('./chunk-53TNKVYD.cjs');
7
-
8
- // src/astro.ts
8
+ //#region src/astro.ts
9
9
  var astro_default = (options) => ({
10
- name: "vue-jsx-vapor",
11
- hooks: {
12
- "astro:config:setup": (astro) => {
13
- astro.config.vite.plugins ||= [];
14
- astro.config.vite.plugins.push(_chunkJWJVYLYIcjs.index_default.vite(options));
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 './options.cjs';
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
- export = _default;
11
+ //#endregion
12
+ export { _default as default };
package/dist/astro.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- import { Options } from './options.js';
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
- export { _default as default };
11
+ //#endregion
12
+ export { _default as default };
package/dist/astro.js CHANGED
@@ -1,20 +1,16 @@
1
- import {
2
- index_default
3
- } from "./chunk-LVZNHMZC.js";
4
- import "./chunk-WOWB5VHY.js";
5
- import "./chunk-TWP2JCYQ.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
- // src/astro.ts
6
+ //#region src/astro.ts
9
7
  var astro_default = (options) => ({
10
- name: "vue-jsx-vapor",
11
- hooks: {
12
- "astro:config:setup": (astro) => {
13
- astro.config.vite.plugins ||= [];
14
- astro.config.vite.plugins.push(index_default.vite(options));
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
- export {
19
- astro_default as default
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
+ });