@quillmark/wasm 0.24.2 → 0.24.3

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