@jay-framework/compiler-jay-html 0.15.2 → 0.15.4

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 (3) hide show
  1. package/dist/index.d.cts +15 -12
  2. package/dist/index.js +20414 -20447
  3. package/package.json +9 -9
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { JayType, WithValidations, PluginComponentResolution, PluginManifest, JayEnumType, RefsTree, CompilerSourceFile, SourceFileFormat, JayImportLink, MainRuntimeModes, GenerateTarget, Imports, JayObjectType } from '@jay-framework/compiler-shared';
1
+ import { JayType, WithValidations, PluginComponentResolution, PluginManifest, JayEnumType, RefsTree, CompilerSourceFile, SourceFileFormat, JayImportLink, GenerateTarget, Imports, MainRuntimeModes, JayObjectType } from '@jay-framework/compiler-shared';
2
2
  import { HTMLElement } from 'node-html-parser';
3
3
  import { ResolveTsConfigOptions } from '@jay-framework/compiler-analyze-exported-types';
4
4
  import { Coordinate } from '@jay-framework/runtime';
@@ -201,19 +201,30 @@ interface JayHtmlSourceFile extends CompilerSourceFile {
201
201
  clientTrackByMap?: Record<string, string>;
202
202
  }
203
203
 
204
+ declare function parseIsEnum(expression: string): boolean;
205
+ declare function parseEnumValues(expression: string): string[];
206
+
207
+ declare function renderRefsType(refs: RefsTree, refsType: string, generateTarget?: GenerateTarget): {
208
+ imports: Imports;
209
+ renderedRefs: string;
210
+ };
211
+
204
212
  declare function generateElementDefinitionFile(parsedFile: WithValidations<JayHtmlSourceFile>): WithValidations<string>;
205
213
  declare function generateElementFile(jayFile: JayHtmlSourceFile, importerMode: MainRuntimeModes): WithValidations<string>;
206
214
  declare function generateElementBridgeFile(jayFile: JayHtmlSourceFile): string;
207
215
  declare function generateElementHydrateFile(jayFile: JayHtmlSourceFile, importerMode: MainRuntimeModes): WithValidations<string>;
216
+ declare function generateSandboxRootFile(jayFile: JayHtmlSourceFile): string;
217
+
218
+ declare function generateElementFileReactTarget(jayFile: JayHtmlSourceFile, importerMode: MainRuntimeModes): WithValidations<string>;
219
+
220
+ /** Server element compilation target. Extracted from jay-html-compiler.ts (Design Log #118). */
221
+
208
222
  interface ServerElementOptions {
209
223
  /** Path to write debug coordinate pre-process output. When provided, the
210
224
  * serialized DOM with jay-coordinate-base attributes is returned via result. */
211
225
  debugCoordinatePreprocessPath?: string;
212
226
  }
213
227
  declare function generateServerElementFile(jayFile: JayHtmlSourceFile, _options?: ServerElementOptions): WithValidations<string>;
214
- declare function generateSandboxRootFile(jayFile: JayHtmlSourceFile): string;
215
-
216
- declare function generateElementFileReactTarget(jayFile: JayHtmlSourceFile, importerMode: MainRuntimeModes): WithValidations<string>;
217
228
 
218
229
  /**
219
230
  * Coordinate pre-processing for SSR/hydration consistency.
@@ -270,14 +281,6 @@ declare function injectHeadfullFSTemplates(html: string, sourceDir: string, impo
270
281
  declare function parseJayFile(html: string, filename: string, filePath: string, options: ResolveTsConfigOptions, linkedContractResolver: JayImportResolver, projectRoot: string): Promise<WithValidations<JayHtmlSourceFile>>;
271
282
  declare function getJayHtmlImports(html: string): string[];
272
283
 
273
- declare function parseIsEnum(expression: string): boolean;
274
- declare function parseEnumValues(expression: string): string[];
275
-
276
- declare function renderRefsType(refs: RefsTree, refsType: string, generateTarget?: GenerateTarget): {
277
- imports: Imports;
278
- renderedRefs: string;
279
- };
280
-
281
284
  declare function generateTypes(types: JayType): string;
282
285
 
283
286
  /**