@quillmark/wasm 0.29.0 → 0.30.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/bundler/wasm.d.ts +7 -0
- package/bundler/wasm_bg.js +25 -0
- package/bundler/wasm_bg.wasm +0 -0
- package/bundler/wasm_bg.wasm.d.ts +1 -0
- package/node-esm/wasm.d.ts +7 -0
- package/node-esm/wasm_bg.js +25 -0
- package/node-esm/wasm_bg.wasm +0 -0
- package/node-esm/wasm_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
package/bundler/wasm.d.ts
CHANGED
|
@@ -91,6 +91,13 @@ export class Quillmark {
|
|
|
91
91
|
* that consumers need to configure render options for the next step.
|
|
92
92
|
*/
|
|
93
93
|
getQuillInfo(name: string): QuillInfo;
|
|
94
|
+
/**
|
|
95
|
+
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
96
|
+
*
|
|
97
|
+
* This returns the schema in a format suitable for feeding to LLMs or
|
|
98
|
+
* other consumers that don't need the UI configuration "x-ui" fields.
|
|
99
|
+
*/
|
|
100
|
+
getStrippedSchema(name: string): any;
|
|
94
101
|
/**
|
|
95
102
|
* Perform a dry run validation without backend compilation.
|
|
96
103
|
*
|
package/bundler/wasm_bg.js
CHANGED
|
@@ -327,6 +327,31 @@ export class Quillmark {
|
|
|
327
327
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
332
|
+
*
|
|
333
|
+
* This returns the schema in a format suitable for feeding to LLMs or
|
|
334
|
+
* other consumers that don't need the UI configuration "x-ui" fields.
|
|
335
|
+
* @param {string} name
|
|
336
|
+
* @returns {any}
|
|
337
|
+
*/
|
|
338
|
+
getStrippedSchema(name) {
|
|
339
|
+
try {
|
|
340
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
341
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
342
|
+
const len0 = WASM_VECTOR_LEN;
|
|
343
|
+
wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
|
|
344
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
345
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
346
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
347
|
+
if (r2) {
|
|
348
|
+
throw takeObject(r1);
|
|
349
|
+
}
|
|
350
|
+
return takeObject(r0);
|
|
351
|
+
} finally {
|
|
352
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
353
|
+
}
|
|
354
|
+
}
|
|
330
355
|
/**
|
|
331
356
|
* Perform a dry run validation without backend compilation.
|
|
332
357
|
*
|
package/bundler/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -6,6 +6,7 @@ export const quillmark_new: () => number;
|
|
|
6
6
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|
|
7
7
|
export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
|
|
8
8
|
export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
|
|
9
|
+
export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
|
|
9
10
|
export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
|
|
10
11
|
export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
|
|
11
12
|
export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
|
package/node-esm/wasm.d.ts
CHANGED
|
@@ -91,6 +91,13 @@ export class Quillmark {
|
|
|
91
91
|
* that consumers need to configure render options for the next step.
|
|
92
92
|
*/
|
|
93
93
|
getQuillInfo(name: string): QuillInfo;
|
|
94
|
+
/**
|
|
95
|
+
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
96
|
+
*
|
|
97
|
+
* This returns the schema in a format suitable for feeding to LLMs or
|
|
98
|
+
* other consumers that don't need the UI configuration "x-ui" fields.
|
|
99
|
+
*/
|
|
100
|
+
getStrippedSchema(name: string): any;
|
|
94
101
|
/**
|
|
95
102
|
* Perform a dry run validation without backend compilation.
|
|
96
103
|
*
|
package/node-esm/wasm_bg.js
CHANGED
|
@@ -321,6 +321,31 @@ export class Quillmark {
|
|
|
321
321
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Get the stripped JSON schema of a Quill (removes UI metadata)
|
|
326
|
+
*
|
|
327
|
+
* This returns the schema in a format suitable for feeding to LLMs or
|
|
328
|
+
* other consumers that don't need the UI configuration "x-ui" fields.
|
|
329
|
+
* @param {string} name
|
|
330
|
+
* @returns {any}
|
|
331
|
+
*/
|
|
332
|
+
getStrippedSchema(name) {
|
|
333
|
+
try {
|
|
334
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
335
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
336
|
+
const len0 = WASM_VECTOR_LEN;
|
|
337
|
+
wasm.quillmark_getStrippedSchema(retptr, this.__wbg_ptr, ptr0, len0);
|
|
338
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
339
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
340
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
341
|
+
if (r2) {
|
|
342
|
+
throw takeObject(r1);
|
|
343
|
+
}
|
|
344
|
+
return takeObject(r0);
|
|
345
|
+
} finally {
|
|
346
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
324
349
|
/**
|
|
325
350
|
* Perform a dry run validation without backend compilation.
|
|
326
351
|
*
|
package/node-esm/wasm_bg.wasm
CHANGED
|
Binary file
|
|
@@ -6,6 +6,7 @@ export const quillmark_new: () => number;
|
|
|
6
6
|
export const quillmark_parseMarkdown: (a: number, b: number, c: number) => void;
|
|
7
7
|
export const quillmark_registerQuill: (a: number, b: number, c: number) => void;
|
|
8
8
|
export const quillmark_getQuillInfo: (a: number, b: number, c: number, d: number) => void;
|
|
9
|
+
export const quillmark_getStrippedSchema: (a: number, b: number, c: number, d: number) => void;
|
|
9
10
|
export const quillmark_dryRun: (a: number, b: number, c: number, d: number) => void;
|
|
10
11
|
export const quillmark_compileData: (a: number, b: number, c: number, d: number) => void;
|
|
11
12
|
export const quillmark_render: (a: number, b: number, c: number, d: number) => void;
|