@quillmark/wasm 0.13.0 → 0.13.2

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