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