@mbler/mcx-core 0.0.5-alpha.r20260410.8 → 0.0.5

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/index.d.ts CHANGED
@@ -2,6 +2,7 @@ import { TransformPluginContext, Plugin } from 'rollup';
2
2
  import * as t from '@babel/types';
3
3
  import { Expression, CallExpression, SpreadElement, ArgumentPlaceholder, ImportDeclaration, ExportNamedDeclaration, ExportAllDeclaration, ExportDefaultDeclaration } from '@babel/types';
4
4
  import { CompileOpt } from '@mbler/mcx-types';
5
+ import * as Parser from '@babel/parser';
5
6
  import * as ts from 'typescript';
6
7
  import { VirtualCode, CodeMapping, LanguagePlugin } from '@volar/language-core';
7
8
 
@@ -238,6 +239,15 @@ declare class McxUtlis {
238
239
  static AbsoluteJoin(baseDir: string, inputPath: string): string;
239
240
  }
240
241
 
242
+ declare class Utils {
243
+ static FileAST(fileDir: string, parserOpt: Parser.ParserOptions): Promise<t.Program>;
244
+ static FileContent(fileDir: string): Promise<string>;
245
+ private static nodeStringValue;
246
+ private static CheckImportNode;
247
+ static CacheToImportNode(ir: ImportList): t.ImportDeclaration;
248
+ static ImportToCache(node: t.ImportDeclaration): ImportList;
249
+ }
250
+
241
251
  declare class CompileError extends Error {
242
252
  loc: {
243
253
  line: number;
@@ -275,10 +285,14 @@ declare const index$2_CompileError: typeof CompileError;
275
285
  type index$2_CompileJS = CompileJS;
276
286
  declare const index$2_CompileJS: typeof CompileJS;
277
287
  type index$2_Context = Context;
288
+ type index$2_JsCompileData = JsCompileData;
289
+ declare const index$2_JsCompileData: typeof JsCompileData;
290
+ type index$2_MCXCompileData = MCXCompileData;
291
+ declare const index$2_MCXCompileData: typeof MCXCompileData;
278
292
  declare const index$2_compileJSFn: typeof compileJSFn;
279
293
  declare const index$2_compileMCXFn: typeof compileMCXFn;
280
294
  declare namespace index$2 {
281
- export { index$2_CompileError as CompileError, index$2_CompileJS as CompileJS, index$2_compileJSFn as compileJSFn, index$2_compileMCXFn as compileMCXFn };
295
+ export { index$2_CompileError as CompileError, index$2_CompileJS as CompileJS, index$2_JsCompileData as JsCompileData, index$2_MCXCompileData as MCXCompileData, Utils as MCXNodeUtils, index$2_compileJSFn as compileJSFn, index$2_compileMCXFn as compileMCXFn };
282
296
  export type { index$2_Context as Context };
283
297
  }
284
298
 
package/dist/index.js CHANGED
@@ -1360,6 +1360,9 @@ var index$2 = /*#__PURE__*/Object.freeze({
1360
1360
  __proto__: null,
1361
1361
  CompileError: CompileError,
1362
1362
  CompileJS: CompileJS,
1363
+ JsCompileData: JsCompileData,
1364
+ MCXCompileData: MCXCompileData,
1365
+ MCXNodeUtils: Utils,
1363
1366
  compileJSFn: compileJSFn,
1364
1367
  compileMCXFn: compileMCXFn
1365
1368
  });