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