@mbler/mcx-core 0.1.2-rc.10 → 0.1.2-rc.12

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.
@@ -0,0 +1,16 @@
1
+ import { createRequire } from "node:module";
2
+ //#region \0rolldown/runtime.js
3
+ var __defProp = Object.defineProperty;
4
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
5
+ var __exportAll = (all, no_symbols) => {
6
+ let target = {};
7
+ for (var name in all) __defProp(target, name, {
8
+ get: all[name],
9
+ enumerable: true
10
+ });
11
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
12
+ return target;
13
+ };
14
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
15
+ //#endregion
16
+ export { __exportAll as n, __require as r, __commonJSMin as t };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
+ import * as Parser from "@babel/parser";
1
2
  import * as t from "@babel/types";
2
3
  import { ArgumentPlaceholder, CallExpression, ExportAllDeclaration, ExportDefaultDeclaration, ExportNamedDeclaration, Expression, ImportDeclaration, SpreadElement } from "@babel/types";
3
- import * as Parser from "@babel/parser";
4
4
  import { BlockComponent, BlockComponent as BlockComponent$1, EnchantableSlot, EntityComponent, EntityComponent as EntityComponent$1, EntityComponentOptions, FoodEffect, GIFImageComponent, GIFImageComponent as GIFImageComponent$1, ItemComponent, ItemComponent as ItemComponent$1, ItemComponentOptions, JPGImageComponent, JPGImageComponent as JPGImageComponent$1, PNGImageComponent, PNGImageComponent as PNGImageComponent$1, ParticleType, Rarity, SVGImageComponent, SVGImageComponent as SVGImageComponent$1, SoundEvent } from "@mbler/mcx-component";
5
5
  import { Plugin, TransformPluginContext } from "rollup";
6
6
  import { CompileOpt, CompileOpt as CompileOpt$1 } from "@mbler/mcx-types";
@@ -178,14 +178,10 @@ declare class McxAst {
178
178
  private text;
179
179
  private includeComments;
180
180
  constructor(text: string, includeComments?: boolean);
181
- private getAST;
182
- get data(): ParsedTagNode[];
183
181
  parseAST(): ParsedTagNode[];
184
- /**
185
- * 生成代码字符串
186
- * @param node 代码的AST节点
187
- * @returns 代码字符串
188
- */
182
+ private convertTemplateChild;
183
+ private convertVueElement;
184
+ private convertVueChildren;
189
185
  static generateCode(node: ParsedTagNode): string;
190
186
  }
191
187
  //#endregion