@quillmark/wasm 0.53.1 → 0.54.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 +2 -2
- package/bundler/wasm.d.ts +3 -7
- package/bundler/wasm_bg.js +16 -11
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +1 -1
- package/node-esm/wasm.d.ts +3 -7
- package/node-esm/wasm.js +16 -11
- package/node-esm/wasm_bg.wasm +0 -0
- package/node-esm/wasm_bg.wasm.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -84,7 +84,7 @@ engine.registerQuill(quillJson);
|
|
|
84
84
|
// Step 3: Get Quill info (optional)
|
|
85
85
|
const info = engine.getQuillInfo('my-quill');
|
|
86
86
|
console.log('Supported formats:', info.supportedFormats);
|
|
87
|
-
console.log('
|
|
87
|
+
console.log('Schema YAML:', info.schema);
|
|
88
88
|
|
|
89
89
|
// Step 4: Render
|
|
90
90
|
const result = engine.render(parsed, { format: 'pdf' });
|
|
@@ -149,7 +149,7 @@ Returned by `getQuillInfo()`:
|
|
|
149
149
|
backend: string, // e.g., "typst"
|
|
150
150
|
metadata: object, // Quill metadata from Quill.yaml
|
|
151
151
|
example?: string, // Example markdown (if available)
|
|
152
|
-
|
|
152
|
+
schema: string, // Public schema YAML text
|
|
153
153
|
supportedFormats: Array<'pdf' | 'svg' | 'txt'> // Formats this backend supports
|
|
154
154
|
}
|
|
155
155
|
```
|
package/bundler/wasm.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface QuillInfo {
|
|
|
33
33
|
backend: string;
|
|
34
34
|
metadata: Record<string, any>;
|
|
35
35
|
example?: string;
|
|
36
|
-
schema:
|
|
36
|
+
schema: string;
|
|
37
37
|
defaults: Record<string, any>;
|
|
38
38
|
examples: Record<string, any[]>;
|
|
39
39
|
supportedFormats: OutputFormat[];
|
|
@@ -115,13 +115,9 @@ export class Quillmark {
|
|
|
115
115
|
*/
|
|
116
116
|
getQuillInfo(name: string): QuillInfo;
|
|
117
117
|
/**
|
|
118
|
-
* Get the
|
|
119
|
-
*
|
|
120
|
-
* This returns the schema in a format suitable for feeding to LLMs or
|
|
121
|
-
* other consumers that don't need the UI configuration "x-ui" fields
|
|
122
|
-
* or the internal CARDS array structure.
|
|
118
|
+
* Get the public YAML schema contract for a registered quill.
|
|
123
119
|
*/
|
|
124
|
-
|
|
120
|
+
getQuillSchema(name: string): string;
|
|
125
121
|
/**
|
|
126
122
|
* List registered Quills with their exact versions
|
|
127
123
|
*
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -165,29 +165,34 @@ export class Quillmark {
|
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
|
-
* Get the
|
|
169
|
-
*
|
|
170
|
-
* This returns the schema in a format suitable for feeding to LLMs or
|
|
171
|
-
* other consumers that don't need the UI configuration "x-ui" fields
|
|
172
|
-
* or the internal CARDS array structure.
|
|
168
|
+
* Get the public YAML schema contract for a registered quill.
|
|
173
169
|
* @param {string} name
|
|
174
|
-
* @returns {
|
|
170
|
+
* @returns {string}
|
|
175
171
|
*/
|
|
176
|
-
|
|
172
|
+
getQuillSchema(name) {
|
|
173
|
+
let deferred3_0;
|
|
174
|
+
let deferred3_1;
|
|
177
175
|
try {
|
|
178
176
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
179
177
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
180
178
|
const len0 = WASM_VECTOR_LEN;
|
|
181
|
-
wasm.
|
|
179
|
+
wasm.quillmark_getQuillSchema(retptr, this.__wbg_ptr, ptr0, len0);
|
|
182
180
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
183
181
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
184
182
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
185
|
-
|
|
186
|
-
|
|
183
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
184
|
+
var ptr2 = r0;
|
|
185
|
+
var len2 = r1;
|
|
186
|
+
if (r3) {
|
|
187
|
+
ptr2 = 0; len2 = 0;
|
|
188
|
+
throw takeObject(r2);
|
|
187
189
|
}
|
|
188
|
-
|
|
190
|
+
deferred3_0 = ptr2;
|
|
191
|
+
deferred3_1 = len2;
|
|
192
|
+
return getStringFromWasm0(ptr2, len2);
|
|
189
193
|
} finally {
|
|
190
194
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
195
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
/**
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -10,7 +10,7 @@ export const quillmark_compile: (a: number, b: number, c: number, d: number) =>
|
|
|
10
10
|
export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
|
|
11
11
|
export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
|
|
12
12
|
export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
|
|
13
|
-
export const
|
|
13
|
+
export const quillmark_getQuillSchema: (a: number, b: number, c: number, d: number) => void;
|
|
14
14
|
export const quillmark_listQuills: (a: number, b: number) => void;
|
|
15
15
|
export const quillmark_new: () => number;
|
|
16
16
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface QuillInfo {
|
|
|
33
33
|
backend: string;
|
|
34
34
|
metadata: Record<string, any>;
|
|
35
35
|
example?: string;
|
|
36
|
-
schema:
|
|
36
|
+
schema: string;
|
|
37
37
|
defaults: Record<string, any>;
|
|
38
38
|
examples: Record<string, any[]>;
|
|
39
39
|
supportedFormats: OutputFormat[];
|
|
@@ -115,13 +115,9 @@ export class Quillmark {
|
|
|
115
115
|
*/
|
|
116
116
|
getQuillInfo(name: string): QuillInfo;
|
|
117
117
|
/**
|
|
118
|
-
* Get the
|
|
119
|
-
*
|
|
120
|
-
* This returns the schema in a format suitable for feeding to LLMs or
|
|
121
|
-
* other consumers that don't need the UI configuration "x-ui" fields
|
|
122
|
-
* or the internal CARDS array structure.
|
|
118
|
+
* Get the public YAML schema contract for a registered quill.
|
|
123
119
|
*/
|
|
124
|
-
|
|
120
|
+
getQuillSchema(name: string): string;
|
|
125
121
|
/**
|
|
126
122
|
* List registered Quills with their exact versions
|
|
127
123
|
*
|
package/node-esm/wasm.js
CHANGED
|
@@ -167,29 +167,34 @@ export class Quillmark {
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
/**
|
|
170
|
-
* Get the
|
|
171
|
-
*
|
|
172
|
-
* This returns the schema in a format suitable for feeding to LLMs or
|
|
173
|
-
* other consumers that don't need the UI configuration "x-ui" fields
|
|
174
|
-
* or the internal CARDS array structure.
|
|
170
|
+
* Get the public YAML schema contract for a registered quill.
|
|
175
171
|
* @param {string} name
|
|
176
|
-
* @returns {
|
|
172
|
+
* @returns {string}
|
|
177
173
|
*/
|
|
178
|
-
|
|
174
|
+
getQuillSchema(name) {
|
|
175
|
+
let deferred3_0;
|
|
176
|
+
let deferred3_1;
|
|
179
177
|
try {
|
|
180
178
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
181
179
|
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
182
180
|
const len0 = WASM_VECTOR_LEN;
|
|
183
|
-
wasm.
|
|
181
|
+
wasm.quillmark_getQuillSchema(retptr, this.__wbg_ptr, ptr0, len0);
|
|
184
182
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
185
183
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
186
184
|
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
187
|
-
|
|
188
|
-
|
|
185
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
186
|
+
var ptr2 = r0;
|
|
187
|
+
var len2 = r1;
|
|
188
|
+
if (r3) {
|
|
189
|
+
ptr2 = 0; len2 = 0;
|
|
190
|
+
throw takeObject(r2);
|
|
189
191
|
}
|
|
190
|
-
|
|
192
|
+
deferred3_0 = ptr2;
|
|
193
|
+
deferred3_1 = len2;
|
|
194
|
+
return getStringFromWasm0(ptr2, len2);
|
|
191
195
|
} finally {
|
|
192
196
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
197
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
193
198
|
}
|
|
194
199
|
}
|
|
195
200
|
/**
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -10,7 +10,7 @@ export const quillmark_compile: (a: number, b: number, c: number, d: number) =>
|
|
|
10
10
|
export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
|
|
11
11
|
export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
|
|
12
12
|
export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
|
|
13
|
-
export const
|
|
13
|
+
export const quillmark_getQuillSchema: (a: number, b: number, c: number, d: number) => void;
|
|
14
14
|
export const quillmark_listQuills: (a: number, b: number) => void;
|
|
15
15
|
export const quillmark_new: () => number;
|
|
16
16
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|