@quillmark/wasm 0.40.3 → 0.41.1

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,7 +4,18 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type Severity = "error" | "warning" | "note";
7
+ export interface RenderResult {
8
+ artifacts: Artifact[];
9
+ warnings: Diagnostic[];
10
+ outputFormat: OutputFormat;
11
+ renderTimeMs: number;
12
+ }
13
+
14
+ export interface Location {
15
+ file: string;
16
+ line: number;
17
+ column: number;
18
+ }
8
19
 
9
20
  export interface Artifact {
10
21
  format: OutputFormat;
@@ -12,41 +23,13 @@ export interface Artifact {
12
23
  mimeType: string;
13
24
  }
14
25
 
15
- export interface RenderOptions {
16
- format?: OutputFormat;
17
- assets?: Record<string, Uint8Array | number[]>;
18
- quillRef?: string;
19
- }
20
-
21
- export interface Diagnostic {
22
- severity: Severity;
23
- code?: string;
24
- message: string;
25
- location?: Location;
26
- hint?: string;
27
- sourceChain: string[];
28
- }
29
-
30
26
  export type OutputFormat = "pdf" | "svg" | "txt";
31
27
 
32
- export interface RenderResult {
33
- artifacts: Artifact[];
34
- warnings: Diagnostic[];
35
- outputFormat: OutputFormat;
36
- renderTimeMs: number;
37
- }
38
-
39
28
  export interface ParsedDocument {
40
29
  fields: Record<string, any>;
41
30
  quillRef: string;
42
31
  }
43
32
 
44
- export interface Location {
45
- file: string;
46
- line: number;
47
- column: number;
48
- }
49
-
50
33
  export interface QuillInfo {
51
34
  name: string;
52
35
  backend: string;
@@ -58,6 +41,23 @@ export interface QuillInfo {
58
41
  supportedFormats: OutputFormat[];
59
42
  }
60
43
 
44
+ export type Severity = "error" | "warning" | "note";
45
+
46
+ export interface Diagnostic {
47
+ severity: Severity;
48
+ code?: string;
49
+ message: string;
50
+ location?: Location;
51
+ hint?: string;
52
+ sourceChain: string[];
53
+ }
54
+
55
+ export interface RenderOptions {
56
+ format?: OutputFormat;
57
+ assets?: Record<string, Uint8Array | number[]>;
58
+ quillRef?: string;
59
+ }
60
+
61
61
  /**
62
62
  * Quillmark WASM Engine
63
63
  *
Binary file
@@ -4,7 +4,18 @@
4
4
  * Initialize the WASM module with panic hooks for better error messages
5
5
  */
6
6
  export function init(): void;
7
- export type Severity = "error" | "warning" | "note";
7
+ export interface RenderResult {
8
+ artifacts: Artifact[];
9
+ warnings: Diagnostic[];
10
+ outputFormat: OutputFormat;
11
+ renderTimeMs: number;
12
+ }
13
+
14
+ export interface Location {
15
+ file: string;
16
+ line: number;
17
+ column: number;
18
+ }
8
19
 
9
20
  export interface Artifact {
10
21
  format: OutputFormat;
@@ -12,41 +23,13 @@ export interface Artifact {
12
23
  mimeType: string;
13
24
  }
14
25
 
15
- export interface RenderOptions {
16
- format?: OutputFormat;
17
- assets?: Record<string, Uint8Array | number[]>;
18
- quillRef?: string;
19
- }
20
-
21
- export interface Diagnostic {
22
- severity: Severity;
23
- code?: string;
24
- message: string;
25
- location?: Location;
26
- hint?: string;
27
- sourceChain: string[];
28
- }
29
-
30
26
  export type OutputFormat = "pdf" | "svg" | "txt";
31
27
 
32
- export interface RenderResult {
33
- artifacts: Artifact[];
34
- warnings: Diagnostic[];
35
- outputFormat: OutputFormat;
36
- renderTimeMs: number;
37
- }
38
-
39
28
  export interface ParsedDocument {
40
29
  fields: Record<string, any>;
41
30
  quillRef: string;
42
31
  }
43
32
 
44
- export interface Location {
45
- file: string;
46
- line: number;
47
- column: number;
48
- }
49
-
50
33
  export interface QuillInfo {
51
34
  name: string;
52
35
  backend: string;
@@ -58,6 +41,23 @@ export interface QuillInfo {
58
41
  supportedFormats: OutputFormat[];
59
42
  }
60
43
 
44
+ export type Severity = "error" | "warning" | "note";
45
+
46
+ export interface Diagnostic {
47
+ severity: Severity;
48
+ code?: string;
49
+ message: string;
50
+ location?: Location;
51
+ hint?: string;
52
+ sourceChain: string[];
53
+ }
54
+
55
+ export interface RenderOptions {
56
+ format?: OutputFormat;
57
+ assets?: Record<string, Uint8Array | number[]>;
58
+ quillRef?: string;
59
+ }
60
+
61
61
  /**
62
62
  * Quillmark WASM Engine
63
63
  *
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.40.3",
3
+ "version": "0.41.1",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",