@wireweave/core 4.0.0-beta.0 → 4.0.0-beta.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.
Files changed (52) hide show
  1. package/README.md +17 -462
  2. package/dist/app.cjs +31 -0
  3. package/dist/app.d.cts +488 -0
  4. package/dist/app.d.ts +488 -0
  5. package/dist/app.js +31 -0
  6. package/dist/chunk-3RWGG5EC.js +18088 -0
  7. package/dist/chunk-4TMDPWPR.cjs +196 -0
  8. package/dist/chunk-5DGRIQDU.cjs +842 -0
  9. package/dist/chunk-7VTK6LHL.cjs +4374 -0
  10. package/dist/chunk-ETV4XYOV.cjs +7 -0
  11. package/dist/chunk-IMUVIIJR.cjs +18088 -0
  12. package/dist/chunk-JJWAFHSV.js +842 -0
  13. package/dist/chunk-MD6MNOEQ.cjs +2905 -0
  14. package/dist/chunk-PKBMQBKP.js +7 -0
  15. package/dist/chunk-QOS4IC75.js +4374 -0
  16. package/dist/chunk-R5WBZWBC.js +196 -0
  17. package/dist/chunk-V3HVWC7C.js +2905 -0
  18. package/dist/chunk-WV724EAW.js +0 -0
  19. package/dist/chunk-XENFKHRC.cjs +1 -0
  20. package/dist/chunk-XYACLXXF.js +51612 -0
  21. package/dist/chunk-ZPHNXJRY.cjs +51612 -0
  22. package/dist/index-Br7pNaf3.d.cts +240 -0
  23. package/dist/index-CghCKUPx.d.ts +337 -0
  24. package/dist/index-Da_B3eoM.d.ts +240 -0
  25. package/dist/index-G906GEtg.d.cts +337 -0
  26. package/dist/index.cjs +1522 -58235
  27. package/dist/index.d.cts +556 -102
  28. package/dist/index.d.ts +556 -102
  29. package/dist/index.js +1414 -57982
  30. package/dist/interaction.cjs +17 -0
  31. package/dist/interaction.d.cts +3 -0
  32. package/dist/interaction.d.ts +3 -0
  33. package/dist/interaction.js +17 -0
  34. package/dist/parser.cjs +18 -6612
  35. package/dist/parser.d.cts +11 -2
  36. package/dist/parser.d.ts +11 -2
  37. package/dist/parser.js +16 -6580
  38. package/dist/renderer.cjs +7 -50481
  39. package/dist/renderer.d.cts +358 -133
  40. package/dist/renderer.d.ts +358 -133
  41. package/dist/renderer.js +49 -50480
  42. package/dist/spec.cjs +49 -0
  43. package/dist/spec.d.cts +301 -0
  44. package/dist/spec.d.ts +301 -0
  45. package/dist/spec.js +49 -0
  46. package/dist/types-Dkgr0Wyc.d.cts +75 -0
  47. package/dist/types-Dkgr0Wyc.d.ts +75 -0
  48. package/dist/{types-hEr_afgw.d.cts → types-vhPCZpAW.d.cts} +307 -27
  49. package/dist/{types-hEr_afgw.d.ts → types-vhPCZpAW.d.ts} +307 -27
  50. package/dist/v4-types-Baz9yqAS.d.cts +137 -0
  51. package/dist/v4-types-Baz9yqAS.d.ts +137 -0
  52. package/package.json +103 -24
package/dist/parser.d.cts CHANGED
@@ -1,4 +1,11 @@
1
- import { aK as SourceLocation, a1 as WireframeDocument } from './types-hEr_afgw.cjs';
1
+ import { aK as SourceLocation, be as WireframeDocument } from './types-vhPCZpAW.cjs';
2
+ import { k as V4SourceSpan, i as V4ParseOptions, P as ParsedDocument, j as V4ParseResult } from './v4-types-Baz9yqAS.cjs';
3
+ export { C as CanonicalDefinition, a as CanonicalModule, b as CanonicalNode, c as CanonicalParameter, d as CanonicalPrimitive, e as CanonicalSymbol, f as CanonicalUse, V as V4Diagnostic, h as V4ParseError } from './v4-types-Baz9yqAS.cjs';
4
+
5
+ /** Original-source metadata is kept outside the canonical JSON document. */
6
+ declare function getV4SourceSpan(value: object): Readonly<V4SourceSpan> | undefined;
7
+ declare function parseV4(source: string, options: V4ParseOptions): ParsedDocument;
8
+ declare function tryParseV4(source: string, options: V4ParseOptions): V4ParseResult;
2
9
 
3
10
  /**
4
11
  * Parser module for wireweave
@@ -62,6 +69,7 @@ interface ParseErrorInfo {
62
69
  * @returns Parsed AST document
63
70
  * @throws {ParseError} When source contains syntax errors
64
71
  */
72
+ declare function parse(source: string, options: V4ParseOptions): ParsedDocument;
65
73
  declare function parse(source: string, options?: ParseOptions): WireframeDocument;
66
74
  /**
67
75
  * Parse wireframe DSL with error recovery
@@ -70,6 +78,7 @@ declare function parse(source: string, options?: ParseOptions): WireframeDocumen
70
78
  * @param options - Parse options
71
79
  * @returns Parse result with AST or errors
72
80
  */
81
+ declare function tryParse(source: string, options: V4ParseOptions): V4ParseResult;
73
82
  declare function tryParse(source: string, options?: ParseOptions): ParseResult;
74
83
  /**
75
84
  * Validate source code without throwing
@@ -86,4 +95,4 @@ declare function isValid(source: string): boolean;
86
95
  */
87
96
  declare function getErrors(source: string): ParseErrorInfo[];
88
97
 
89
- export { type ExpectedToken, type ParseError, type ParseErrorInfo, type ParseOptions, type ParseResult, getErrors, isValid, parse, tryParse };
98
+ export { type ExpectedToken, type ParseError, type ParseErrorInfo, type ParseOptions, type ParseResult, ParsedDocument, V4ParseOptions, V4ParseResult, V4SourceSpan, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 };
package/dist/parser.d.ts CHANGED
@@ -1,4 +1,11 @@
1
- import { aK as SourceLocation, a1 as WireframeDocument } from './types-hEr_afgw.js';
1
+ import { aK as SourceLocation, be as WireframeDocument } from './types-vhPCZpAW.js';
2
+ import { k as V4SourceSpan, i as V4ParseOptions, P as ParsedDocument, j as V4ParseResult } from './v4-types-Baz9yqAS.js';
3
+ export { C as CanonicalDefinition, a as CanonicalModule, b as CanonicalNode, c as CanonicalParameter, d as CanonicalPrimitive, e as CanonicalSymbol, f as CanonicalUse, V as V4Diagnostic, h as V4ParseError } from './v4-types-Baz9yqAS.js';
4
+
5
+ /** Original-source metadata is kept outside the canonical JSON document. */
6
+ declare function getV4SourceSpan(value: object): Readonly<V4SourceSpan> | undefined;
7
+ declare function parseV4(source: string, options: V4ParseOptions): ParsedDocument;
8
+ declare function tryParseV4(source: string, options: V4ParseOptions): V4ParseResult;
2
9
 
3
10
  /**
4
11
  * Parser module for wireweave
@@ -62,6 +69,7 @@ interface ParseErrorInfo {
62
69
  * @returns Parsed AST document
63
70
  * @throws {ParseError} When source contains syntax errors
64
71
  */
72
+ declare function parse(source: string, options: V4ParseOptions): ParsedDocument;
65
73
  declare function parse(source: string, options?: ParseOptions): WireframeDocument;
66
74
  /**
67
75
  * Parse wireframe DSL with error recovery
@@ -70,6 +78,7 @@ declare function parse(source: string, options?: ParseOptions): WireframeDocumen
70
78
  * @param options - Parse options
71
79
  * @returns Parse result with AST or errors
72
80
  */
81
+ declare function tryParse(source: string, options: V4ParseOptions): V4ParseResult;
73
82
  declare function tryParse(source: string, options?: ParseOptions): ParseResult;
74
83
  /**
75
84
  * Validate source code without throwing
@@ -86,4 +95,4 @@ declare function isValid(source: string): boolean;
86
95
  */
87
96
  declare function getErrors(source: string): ParseErrorInfo[];
88
97
 
89
- export { type ExpectedToken, type ParseError, type ParseErrorInfo, type ParseOptions, type ParseResult, getErrors, isValid, parse, tryParse };
98
+ export { type ExpectedToken, type ParseError, type ParseErrorInfo, type ParseOptions, type ParseResult, ParsedDocument, V4ParseOptions, V4ParseResult, V4SourceSpan, getErrors, getV4SourceSpan, isValid, parse, parseV4, tryParse, tryParseV4 };