@quillmark/wasm 0.32.2 → 0.33.0

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  WebAssembly bindings for the Quillmark markdown rendering engine.
4
4
 
5
+ Maintained by [TTQ](https://tonguetoquill.com).
6
+
5
7
  ## Overview
6
8
 
7
9
  This crate provides WASM bindings for Quillmark, enabling use in web browsers, Node.js, and other JavaScript/TypeScript environments. All data exchange uses JSON serialization, and JavaScript is responsible for all I/O operations.
package/bundler/wasm.d.ts CHANGED
@@ -4,15 +4,10 @@
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 RenderOptions {
8
+ format?: OutputFormat;
9
+ assets?: Record<string, Uint8Array | number[]>;
10
+ quillName?: string;
16
11
  }
17
12
 
18
13
  export interface RenderResult {
@@ -22,26 +17,13 @@ export interface RenderResult {
22
17
  renderTimeMs: number;
23
18
  }
24
19
 
25
- export interface RenderOptions {
26
- format?: OutputFormat;
27
- assets?: Record<string, Uint8Array | number[]>;
28
- quillName?: string;
29
- }
30
-
31
- export interface Location {
32
- file: string;
33
- line: number;
34
- column: number;
20
+ export interface ParsedDocument {
21
+ fields: Record<string, any>;
22
+ quillName: string;
35
23
  }
36
24
 
37
25
  export type OutputFormat = "pdf" | "svg" | "txt";
38
26
 
39
- export interface Artifact {
40
- format: OutputFormat;
41
- bytes: Uint8Array;
42
- mimeType: string;
43
- }
44
-
45
27
  export interface Diagnostic {
46
28
  severity: Severity;
47
29
  code?: string;
@@ -51,13 +33,31 @@ export interface Diagnostic {
51
33
  sourceChain: string[];
52
34
  }
53
35
 
54
- export interface ParsedDocument {
55
- fields: Record<string, any>;
56
- quillName: string;
36
+ export interface QuillInfo {
37
+ name: string;
38
+ backend: string;
39
+ metadata: Record<string, any>;
40
+ example?: string;
41
+ schema: Record<string, any>;
42
+ defaults: Record<string, any>;
43
+ examples: Record<string, any[]>;
44
+ supportedFormats: OutputFormat[];
57
45
  }
58
46
 
59
47
  export type Severity = "error" | "warning" | "note";
60
48
 
49
+ export interface Location {
50
+ file: string;
51
+ line: number;
52
+ column: number;
53
+ }
54
+
55
+ export interface Artifact {
56
+ format: OutputFormat;
57
+ bytes: Uint8Array;
58
+ mimeType: string;
59
+ }
60
+
61
61
  /**
62
62
  * Quillmark WASM Engine
63
63
  *
Binary file
@@ -4,15 +4,10 @@
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 RenderOptions {
8
+ format?: OutputFormat;
9
+ assets?: Record<string, Uint8Array | number[]>;
10
+ quillName?: string;
16
11
  }
17
12
 
18
13
  export interface RenderResult {
@@ -22,26 +17,13 @@ export interface RenderResult {
22
17
  renderTimeMs: number;
23
18
  }
24
19
 
25
- export interface RenderOptions {
26
- format?: OutputFormat;
27
- assets?: Record<string, Uint8Array | number[]>;
28
- quillName?: string;
29
- }
30
-
31
- export interface Location {
32
- file: string;
33
- line: number;
34
- column: number;
20
+ export interface ParsedDocument {
21
+ fields: Record<string, any>;
22
+ quillName: string;
35
23
  }
36
24
 
37
25
  export type OutputFormat = "pdf" | "svg" | "txt";
38
26
 
39
- export interface Artifact {
40
- format: OutputFormat;
41
- bytes: Uint8Array;
42
- mimeType: string;
43
- }
44
-
45
27
  export interface Diagnostic {
46
28
  severity: Severity;
47
29
  code?: string;
@@ -51,13 +33,31 @@ export interface Diagnostic {
51
33
  sourceChain: string[];
52
34
  }
53
35
 
54
- export interface ParsedDocument {
55
- fields: Record<string, any>;
56
- quillName: string;
36
+ export interface QuillInfo {
37
+ name: string;
38
+ backend: string;
39
+ metadata: Record<string, any>;
40
+ example?: string;
41
+ schema: Record<string, any>;
42
+ defaults: Record<string, any>;
43
+ examples: Record<string, any[]>;
44
+ supportedFormats: OutputFormat[];
57
45
  }
58
46
 
59
47
  export type Severity = "error" | "warning" | "note";
60
48
 
49
+ export interface Location {
50
+ file: string;
51
+ line: number;
52
+ column: number;
53
+ }
54
+
55
+ export interface Artifact {
56
+ format: OutputFormat;
57
+ bytes: Uint8Array;
58
+ mimeType: string;
59
+ }
60
+
61
61
  /**
62
62
  * Quillmark WASM Engine
63
63
  *
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quillmark/wasm",
3
- "version": "0.32.2",
3
+ "version": "0.33.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",