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