@quillmark/wasm 0.31.0 → 0.32.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
@@ -69,8 +69,8 @@ const engine = new Quillmark();
69
69
 
70
70
  const quillJson = {
71
71
  files: {
72
- 'Quill.toml': {
73
- contents: '[Quill]\nname = "my_quill"\nversion = "1.0"\nbackend = "typst"\nplate_file = "plate.typ"\ndescription = "My template"\n'
72
+ 'Quill.yaml': {
73
+ contents: 'Quill:\n name: my_quill\n version: "1.0"\n backend: typst\n plate_file: plate.typ\n description: My template\n'
74
74
  },
75
75
  'plate.typ': {
76
76
  contents: '= {{ title }}\n\n{{ body | Content }}'
@@ -146,7 +146,7 @@ Returned by `getQuillInfo()`:
146
146
  {
147
147
  name: string,
148
148
  backend: string, // e.g., "typst"
149
- metadata: object, // Quill metadata from Quill.toml
149
+ metadata: object, // Quill metadata from Quill.yaml
150
150
  example?: string, // Example markdown (if available)
151
151
  fieldSchemas: object, // Field schema definitions
152
152
  supportedFormats: Array<'pdf' | 'svg' | 'txt'> // Formats this backend supports
package/bundler/wasm.d.ts CHANGED
@@ -6,10 +6,15 @@
6
6
  export function init(): void;
7
7
  export type Severity = "error" | "warning" | "note";
8
8
 
9
- export interface Artifact {
10
- format: OutputFormat;
11
- bytes: Uint8Array;
12
- mimeType: string;
9
+ export interface ParsedDocument {
10
+ fields: Record<string, any>;
11
+ quillName: string;
12
+ }
13
+
14
+ export interface RenderOptions {
15
+ format?: OutputFormat;
16
+ assets?: Record<string, Uint8Array | number[]>;
17
+ quillName?: string;
13
18
  }
14
19
 
15
20
  export interface RenderResult {
@@ -19,6 +24,12 @@ export interface RenderResult {
19
24
  renderTimeMs: number;
20
25
  }
21
26
 
27
+ export interface Location {
28
+ file: string;
29
+ line: number;
30
+ column: number;
31
+ }
32
+
22
33
  export interface Diagnostic {
23
34
  severity: Severity;
24
35
  code?: string;
@@ -30,17 +41,6 @@ export interface Diagnostic {
30
41
 
31
42
  export type OutputFormat = "pdf" | "svg" | "txt";
32
43
 
33
- export interface Location {
34
- file: string;
35
- line: number;
36
- column: number;
37
- }
38
-
39
- export interface ParsedDocument {
40
- fields: Record<string, any>;
41
- quillName: string;
42
- }
43
-
44
44
  export interface QuillInfo {
45
45
  name: string;
46
46
  backend: string;
@@ -52,10 +52,10 @@ export interface QuillInfo {
52
52
  supportedFormats: OutputFormat[];
53
53
  }
54
54
 
55
- export interface RenderOptions {
56
- format?: OutputFormat;
57
- assets?: Record<string, Uint8Array | number[]>;
58
- quillName?: string;
55
+ export interface Artifact {
56
+ format: OutputFormat;
57
+ bytes: Uint8Array;
58
+ mimeType: string;
59
59
  }
60
60
 
61
61
  /**
Binary file
@@ -6,10 +6,15 @@
6
6
  export function init(): void;
7
7
  export type Severity = "error" | "warning" | "note";
8
8
 
9
- export interface Artifact {
10
- format: OutputFormat;
11
- bytes: Uint8Array;
12
- mimeType: string;
9
+ export interface ParsedDocument {
10
+ fields: Record<string, any>;
11
+ quillName: string;
12
+ }
13
+
14
+ export interface RenderOptions {
15
+ format?: OutputFormat;
16
+ assets?: Record<string, Uint8Array | number[]>;
17
+ quillName?: string;
13
18
  }
14
19
 
15
20
  export interface RenderResult {
@@ -19,6 +24,12 @@ export interface RenderResult {
19
24
  renderTimeMs: number;
20
25
  }
21
26
 
27
+ export interface Location {
28
+ file: string;
29
+ line: number;
30
+ column: number;
31
+ }
32
+
22
33
  export interface Diagnostic {
23
34
  severity: Severity;
24
35
  code?: string;
@@ -30,17 +41,6 @@ export interface Diagnostic {
30
41
 
31
42
  export type OutputFormat = "pdf" | "svg" | "txt";
32
43
 
33
- export interface Location {
34
- file: string;
35
- line: number;
36
- column: number;
37
- }
38
-
39
- export interface ParsedDocument {
40
- fields: Record<string, any>;
41
- quillName: string;
42
- }
43
-
44
44
  export interface QuillInfo {
45
45
  name: string;
46
46
  backend: string;
@@ -52,10 +52,10 @@ export interface QuillInfo {
52
52
  supportedFormats: OutputFormat[];
53
53
  }
54
54
 
55
- export interface RenderOptions {
56
- format?: OutputFormat;
57
- assets?: Record<string, Uint8Array | number[]>;
58
- quillName?: string;
55
+ export interface Artifact {
56
+ format: OutputFormat;
57
+ bytes: Uint8Array;
58
+ mimeType: string;
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.31.0",
3
+ "version": "0.32.0",
4
4
  "description": "WebAssembly bindings for quillmark",
5
5
  "type": "module",
6
6
  "license": "MIT OR Apache-2.0",