@quillmark/wasm 0.18.0 → 0.19.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,12 +4,16 @@
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";
8
+
7
9
  export interface RenderOptions {
8
10
  format?: OutputFormat;
9
11
  assets?: Record<string, Uint8Array | number[]>;
10
12
  quillName?: string;
11
13
  }
12
14
 
15
+ export type OutputFormat = "pdf" | "svg" | "txt";
16
+
13
17
  export interface QuillInfo {
14
18
  name: string;
15
19
  backend: string;
@@ -21,26 +25,16 @@ export interface QuillInfo {
21
25
  supportedFormats: OutputFormat[];
22
26
  }
23
27
 
24
- export interface RenderResult {
25
- artifacts: Artifact[];
26
- warnings: Diagnostic[];
27
- outputFormat: OutputFormat;
28
- renderTimeMs: number;
29
- }
30
-
31
- export type Severity = "error" | "warning" | "note";
32
-
33
28
  export interface Location {
34
29
  file: string;
35
30
  line: number;
36
31
  column: number;
37
32
  }
38
33
 
39
- export type OutputFormat = "pdf" | "svg" | "txt";
40
-
41
- export interface ParsedDocument {
42
- fields: Record<string, any>;
43
- quillTag: string;
34
+ export interface Artifact {
35
+ format: OutputFormat;
36
+ bytes: Uint8Array;
37
+ mimeType: string;
44
38
  }
45
39
 
46
40
  export interface Diagnostic {
@@ -52,10 +46,16 @@ export interface Diagnostic {
52
46
  sourceChain: string[];
53
47
  }
54
48
 
55
- export interface Artifact {
56
- format: OutputFormat;
57
- bytes: Uint8Array;
58
- mimeType: string;
49
+ export interface ParsedDocument {
50
+ fields: Record<string, any>;
51
+ quillTag: string;
52
+ }
53
+
54
+ export interface RenderResult {
55
+ artifacts: Artifact[];
56
+ warnings: Diagnostic[];
57
+ outputFormat: OutputFormat;
58
+ renderTimeMs: number;
59
59
  }
60
60
 
61
61
  /**
Binary file
@@ -4,12 +4,16 @@
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";
8
+
7
9
  export interface RenderOptions {
8
10
  format?: OutputFormat;
9
11
  assets?: Record<string, Uint8Array | number[]>;
10
12
  quillName?: string;
11
13
  }
12
14
 
15
+ export type OutputFormat = "pdf" | "svg" | "txt";
16
+
13
17
  export interface QuillInfo {
14
18
  name: string;
15
19
  backend: string;
@@ -21,26 +25,16 @@ export interface QuillInfo {
21
25
  supportedFormats: OutputFormat[];
22
26
  }
23
27
 
24
- export interface RenderResult {
25
- artifacts: Artifact[];
26
- warnings: Diagnostic[];
27
- outputFormat: OutputFormat;
28
- renderTimeMs: number;
29
- }
30
-
31
- export type Severity = "error" | "warning" | "note";
32
-
33
28
  export interface Location {
34
29
  file: string;
35
30
  line: number;
36
31
  column: number;
37
32
  }
38
33
 
39
- export type OutputFormat = "pdf" | "svg" | "txt";
40
-
41
- export interface ParsedDocument {
42
- fields: Record<string, any>;
43
- quillTag: string;
34
+ export interface Artifact {
35
+ format: OutputFormat;
36
+ bytes: Uint8Array;
37
+ mimeType: string;
44
38
  }
45
39
 
46
40
  export interface Diagnostic {
@@ -52,10 +46,16 @@ export interface Diagnostic {
52
46
  sourceChain: string[];
53
47
  }
54
48
 
55
- export interface Artifact {
56
- format: OutputFormat;
57
- bytes: Uint8Array;
58
- mimeType: string;
49
+ export interface ParsedDocument {
50
+ fields: Record<string, any>;
51
+ quillTag: string;
52
+ }
53
+
54
+ export interface RenderResult {
55
+ artifacts: Artifact[];
56
+ warnings: Diagnostic[];
57
+ outputFormat: OutputFormat;
58
+ renderTimeMs: number;
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.18.0",
3
+ "version": "0.19.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",