@quillmark/wasm 0.45.0 → 0.46.0

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/bundler/wasm.d.ts CHANGED
@@ -4,24 +4,13 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type OutputFormat = "pdf" | "svg" | "txt" | "png";
8
-
9
7
  export interface Artifact {
10
8
  format: OutputFormat;
11
9
  bytes: Uint8Array;
12
10
  mimeType: string;
13
11
  }
14
12
 
15
- export interface QuillInfo {
16
- name: string;
17
- backend: string;
18
- metadata: Record<string, any>;
19
- example?: string;
20
- schema: Record<string, any>;
21
- defaults: Record<string, any>;
22
- examples: Record<string, any[]>;
23
- supportedFormats: OutputFormat[];
24
- }
13
+ export type OutputFormat = "pdf" | "svg" | "txt" | "png";
25
14
 
26
15
  export interface Location {
27
16
  file: string;
@@ -29,19 +18,13 @@ export interface Location {
29
18
  column: number;
30
19
  }
31
20
 
32
- export interface Diagnostic {
33
- severity: Severity;
34
- code?: string;
35
- message: string;
36
- location?: Location;
37
- hint?: string;
38
- sourceChain: string[];
39
- }
40
-
41
21
  export type Severity = "error" | "warning" | "note";
42
22
 
43
- export interface CompileOptions {
23
+ export interface RenderOptions {
24
+ format?: OutputFormat;
25
+ assets?: Record<string, Uint8Array | number[]>;
44
26
  quillRef?: string;
27
+ ppi?: number;
45
28
  }
46
29
 
47
30
  export interface RenderPagesOptions {
@@ -49,6 +32,15 @@ export interface RenderPagesOptions {
49
32
  ppi?: number;
50
33
  }
51
34
 
35
+ export interface CompileOptions {
36
+ quillRef?: string;
37
+ }
38
+
39
+ export interface ParsedDocument {
40
+ fields: Record<string, any>;
41
+ quillRef: string;
42
+ }
43
+
52
44
  export interface RenderResult {
53
45
  artifacts: Artifact[];
54
46
  warnings: Diagnostic[];
@@ -56,16 +48,24 @@ export interface RenderResult {
56
48
  renderTimeMs: number;
57
49
  }
58
50
 
59
- export interface ParsedDocument {
60
- fields: Record<string, any>;
61
- quillRef: string;
51
+ export interface Diagnostic {
52
+ severity: Severity;
53
+ code?: string;
54
+ message: string;
55
+ location?: Location;
56
+ hint?: string;
57
+ sourceChain: string[];
62
58
  }
63
59
 
64
- export interface RenderOptions {
65
- format?: OutputFormat;
66
- assets?: Record<string, Uint8Array | number[]>;
67
- quillRef?: string;
68
- ppi?: number;
60
+ export interface QuillInfo {
61
+ name: string;
62
+ backend: string;
63
+ metadata: Record<string, any>;
64
+ example?: string;
65
+ schema: Record<string, any>;
66
+ defaults: Record<string, any>;
67
+ examples: Record<string, any[]>;
68
+ supportedFormats: OutputFormat[];
69
69
  }
70
70
 
71
71
  export class CompiledDocument {
@@ -140,10 +140,11 @@ export class Quillmark {
140
140
  */
141
141
  unregisterQuill(name_or_ref: string): boolean;
142
142
  /**
143
- * Get the stripped JSON schema of a Quill (removes UI metadata)
143
+ * Get the AI-projected JSON schema of a Quill (strips UI metadata and CARDS)
144
144
  *
145
145
  * This returns the schema in a format suitable for feeding to LLMs or
146
- * other consumers that don't need the UI configuration "x-ui" fields.
146
+ * other consumers that don't need the UI configuration "x-ui" fields
147
+ * or the internal CARDS array structure.
147
148
  */
148
149
  getStrippedSchema(name: string): any;
149
150
  /**
@@ -468,10 +468,11 @@ export class Quillmark {
468
468
  return ret !== 0;
469
469
  }
470
470
  /**
471
- * Get the stripped JSON schema of a Quill (removes UI metadata)
471
+ * Get the AI-projected JSON schema of a Quill (strips UI metadata and CARDS)
472
472
  *
473
473
  * This returns the schema in a format suitable for feeding to LLMs or
474
- * other consumers that don't need the UI configuration "x-ui" fields.
474
+ * other consumers that don't need the UI configuration "x-ui" fields
475
+ * or the internal CARDS array structure.
475
476
  * @param {string} name
476
477
  * @returns {any}
477
478
  */
Binary file
@@ -4,24 +4,13 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type OutputFormat = "pdf" | "svg" | "txt" | "png";
8
-
9
7
  export interface Artifact {
10
8
  format: OutputFormat;
11
9
  bytes: Uint8Array;
12
10
  mimeType: string;
13
11
  }
14
12
 
15
- export interface QuillInfo {
16
- name: string;
17
- backend: string;
18
- metadata: Record<string, any>;
19
- example?: string;
20
- schema: Record<string, any>;
21
- defaults: Record<string, any>;
22
- examples: Record<string, any[]>;
23
- supportedFormats: OutputFormat[];
24
- }
13
+ export type OutputFormat = "pdf" | "svg" | "txt" | "png";
25
14
 
26
15
  export interface Location {
27
16
  file: string;
@@ -29,19 +18,13 @@ export interface Location {
29
18
  column: number;
30
19
  }
31
20
 
32
- export interface Diagnostic {
33
- severity: Severity;
34
- code?: string;
35
- message: string;
36
- location?: Location;
37
- hint?: string;
38
- sourceChain: string[];
39
- }
40
-
41
21
  export type Severity = "error" | "warning" | "note";
42
22
 
43
- export interface CompileOptions {
23
+ export interface RenderOptions {
24
+ format?: OutputFormat;
25
+ assets?: Record<string, Uint8Array | number[]>;
44
26
  quillRef?: string;
27
+ ppi?: number;
45
28
  }
46
29
 
47
30
  export interface RenderPagesOptions {
@@ -49,6 +32,15 @@ export interface RenderPagesOptions {
49
32
  ppi?: number;
50
33
  }
51
34
 
35
+ export interface CompileOptions {
36
+ quillRef?: string;
37
+ }
38
+
39
+ export interface ParsedDocument {
40
+ fields: Record<string, any>;
41
+ quillRef: string;
42
+ }
43
+
52
44
  export interface RenderResult {
53
45
  artifacts: Artifact[];
54
46
  warnings: Diagnostic[];
@@ -56,16 +48,24 @@ export interface RenderResult {
56
48
  renderTimeMs: number;
57
49
  }
58
50
 
59
- export interface ParsedDocument {
60
- fields: Record<string, any>;
61
- quillRef: string;
51
+ export interface Diagnostic {
52
+ severity: Severity;
53
+ code?: string;
54
+ message: string;
55
+ location?: Location;
56
+ hint?: string;
57
+ sourceChain: string[];
62
58
  }
63
59
 
64
- export interface RenderOptions {
65
- format?: OutputFormat;
66
- assets?: Record<string, Uint8Array | number[]>;
67
- quillRef?: string;
68
- ppi?: number;
60
+ export interface QuillInfo {
61
+ name: string;
62
+ backend: string;
63
+ metadata: Record<string, any>;
64
+ example?: string;
65
+ schema: Record<string, any>;
66
+ defaults: Record<string, any>;
67
+ examples: Record<string, any[]>;
68
+ supportedFormats: OutputFormat[];
69
69
  }
70
70
 
71
71
  export class CompiledDocument {
@@ -140,10 +140,11 @@ export class Quillmark {
140
140
  */
141
141
  unregisterQuill(name_or_ref: string): boolean;
142
142
  /**
143
- * Get the stripped JSON schema of a Quill (removes UI metadata)
143
+ * Get the AI-projected JSON schema of a Quill (strips UI metadata and CARDS)
144
144
  *
145
145
  * This returns the schema in a format suitable for feeding to LLMs or
146
- * other consumers that don't need the UI configuration "x-ui" fields.
146
+ * other consumers that don't need the UI configuration "x-ui" fields
147
+ * or the internal CARDS array structure.
147
148
  */
148
149
  getStrippedSchema(name: string): any;
149
150
  /**
@@ -462,10 +462,11 @@ export class Quillmark {
462
462
  return ret !== 0;
463
463
  }
464
464
  /**
465
- * Get the stripped JSON schema of a Quill (removes UI metadata)
465
+ * Get the AI-projected JSON schema of a Quill (strips UI metadata and CARDS)
466
466
  *
467
467
  * This returns the schema in a format suitable for feeding to LLMs or
468
- * other consumers that don't need the UI configuration "x-ui" fields.
468
+ * other consumers that don't need the UI configuration "x-ui" fields
469
+ * or the internal CARDS array structure.
469
470
  * @param {string} name
470
471
  * @returns {any}
471
472
  */
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",