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