jlens-wasm 0.29.0 → 0.31.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/jlens.d.ts +21 -1
- package/jlens.global.js +15 -15
- package/jlens.js +14 -14
- package/jlens_bg.wasm +0 -0
- package/package.json +1 -1
- /package/snippets/{jlens-wasm-42b64bd3dd101627 → jlens-wasm-0f82134a3b0812ba}/inline0.js +0 -0
- /package/snippets/{jlens-wasm-42b64bd3dd101627 → jlens-wasm-0f82134a3b0812ba}/inline1.js +0 -0
- /package/snippets/{jlens-wasm-42b64bd3dd101627 → jlens-wasm-0f82134a3b0812ba}/inline2.js +0 -0
- /package/snippets/{jlens-wasm-42b64bd3dd101627 → jlens-wasm-0f82134a3b0812ba}/inline3.js +0 -0
package/jlens.d.ts
CHANGED
|
@@ -306,7 +306,8 @@ export interface SchemaOverride {
|
|
|
306
306
|
*/
|
|
307
307
|
domain?: string;
|
|
308
308
|
format?: string;
|
|
309
|
-
|
|
309
|
+
/** Replaces the inferred types: one name, or a list for a union, as in JSON Schema. */
|
|
310
|
+
type?: JsonType | JsonType[];
|
|
310
311
|
examples?: unknown[];
|
|
311
312
|
}
|
|
312
313
|
|
|
@@ -348,6 +349,25 @@ export interface ValueRequest {
|
|
|
348
349
|
range: Span;
|
|
349
350
|
/** The quote to write a string value with (pass it to `valueLiteral`). */
|
|
350
351
|
quote: '"' | "'";
|
|
352
|
+
/**
|
|
353
|
+
* The fields fixed to literals beside the value, in the order written: the comparisons joined
|
|
354
|
+
* to this one by `and` within the same predicate (or, outside any, the whole expression). A
|
|
355
|
+
* domain whose values depend on another value reads it here, such as the group of
|
|
356
|
+
* `categories[group = 'X' and subgroup = '|']`.
|
|
357
|
+
*/
|
|
358
|
+
conditions: ValueCondition[];
|
|
359
|
+
/** Whether the value is an element of the array on the right of `in`: several may be inserted. */
|
|
360
|
+
inArray: boolean;
|
|
361
|
+
/** The literals already in that array, not to offer again; empty outside an array. */
|
|
362
|
+
listed: unknown[];
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/** A field compared with literals beside a requested value, by `=` or `in`. */
|
|
366
|
+
export interface ValueCondition {
|
|
367
|
+
/** The field's path in the schema, as `ValueRequest.path` writes it. */
|
|
368
|
+
path: string;
|
|
369
|
+
/** The literal it is compared with, or those of the array it is in. */
|
|
370
|
+
values: unknown[];
|
|
351
371
|
}
|
|
352
372
|
|
|
353
373
|
export interface Hover {
|