@json-eval-rs/bundler 0.0.93 → 0.0.94

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-eval-rs/bundler",
3
- "version": "0.0.93",
3
+ "version": "0.0.94",
4
4
  "description": "JSON Eval RS for bundlers (Webpack, Vite, Next.js, etc.) with ergonomic API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -99,91 +99,80 @@ export class JSONEvalWasm {
99
99
  */
100
100
  evaluateSubform(subform_path: string, data: string, context?: string | null, paths?: string[] | null): void;
101
101
  /**
102
- * Get the evaluated schema with optional layout resolution
102
+ * Get the evaluated schema (compact, without $layout resolution)
103
103
  *
104
- * @param skipLayout - Whether to skip layout resolution
105
104
  * @returns Evaluated schema as JSON string
106
105
  */
107
- getEvaluatedSchema(skip_layout: boolean): string;
106
+ getEvaluatedSchema(): string;
108
107
  /**
109
108
  * Get a value from the evaluated schema using dotted path notation
110
109
  *
111
110
  * @param path - Dotted path to the value (e.g., "properties.field.value")
112
- * @param skipLayout - Whether to skip layout resolution
113
111
  * @returns Value as JSON string or null if not found
114
112
  */
115
- getEvaluatedSchemaByPath(path: string, skip_layout: boolean): string | undefined;
113
+ getEvaluatedSchemaByPath(path: string): string | undefined;
116
114
  /**
117
115
  * Get a value from the evaluated schema using dotted path notation as JavaScript object
118
116
  *
119
117
  * @param path - Dotted path to the value (e.g., "properties.field.value")
120
- * @param skipLayout - Whether to skip layout resolution
121
118
  * @returns Value as JavaScript object or null if not found
122
119
  */
123
- getEvaluatedSchemaByPathJS(path: string, skip_layout: boolean): any;
120
+ getEvaluatedSchemaByPathJS(path: string): any;
124
121
  /**
125
- * Get evaluated schema by specific path from subform
122
+ * Get evaluated schema by specific path from subform (compact)
126
123
  *
127
124
  * @param subformPath - Path to the subform
128
125
  * @param schemaPath - Dotted path to the value within the subform
129
- * @param skipLayout - Whether to skip layout resolution
130
126
  * @returns Value as JSON string or null if not found
131
127
  */
132
- getEvaluatedSchemaByPathSubform(subform_path: string, schema_path: string, skip_layout: boolean): string | undefined;
128
+ getEvaluatedSchemaByPathSubform(subform_path: string, schema_path: string): string | undefined;
133
129
  /**
134
- * Get evaluated schema by specific path from subform as JavaScript object
130
+ * Get evaluated schema by specific path from subform as JavaScript object (compact)
135
131
  *
136
132
  * @param subformPath - Path to the subform
137
133
  * @param schemaPath - Dotted path to the value within the subform
138
- * @param skipLayout - Whether to skip layout resolution
139
134
  * @returns Value as JavaScript object or null if not found
140
135
  */
141
- getEvaluatedSchemaByPathSubformJS(subform_path: string, schema_path: string, skip_layout: boolean): any;
136
+ getEvaluatedSchemaByPathSubformJS(subform_path: string, schema_path: string): any;
142
137
  /**
143
138
  * Get values from evaluated schema using multiple dotted paths
144
139
  * @param pathsJson - JSON array of dotted paths
145
- * @param skipLayout - Whether to skip layout resolution
146
140
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
147
141
  * @returns Data in specified format as JSON string
148
142
  */
149
- getEvaluatedSchemaByPaths(paths_json: string, skip_layout: boolean, format: number): string;
143
+ getEvaluatedSchemaByPaths(paths_json: string, format: number): string;
150
144
  /**
151
145
  * Get values from evaluated schema using multiple dotted paths (JS object)
152
146
  * @param pathsJson - JSON array of dotted paths
153
- * @param skipLayout - Whether to skip layout resolution
154
147
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
155
148
  * @returns Data in specified format as JavaScript object
156
149
  */
157
- getEvaluatedSchemaByPathsJS(paths_json: string, skip_layout: boolean, format: number): any;
150
+ getEvaluatedSchemaByPathsJS(paths_json: string, format: number): any;
158
151
  /**
159
- * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JSON string)
152
+ * Get values from the evaluated schema of a subform using multiple dotted path notations (compact)
160
153
  * @param subformPath - Path to the subform
161
154
  * @param pathsJson - JSON array of dotted paths
162
- * @param skipLayout - Whether to skip layout resolution
163
155
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
164
156
  * @returns Data in specified format as JSON string
165
157
  */
166
- getEvaluatedSchemaByPathsSubform(subform_path: string, paths_json: string, skip_layout: boolean, format: number): string;
158
+ getEvaluatedSchemaByPathsSubform(subform_path: string, paths_json: string, format: number): string;
167
159
  /**
168
- * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
160
+ * Get values from the evaluated schema of a subform using multiple dotted path notations (compact, JS object)
169
161
  * @param subformPath - Path to the subform
170
162
  * @param paths - Array of dotted paths
171
- * @param skipLayout - Whether to skip layout resolution
172
163
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
173
164
  * @returns Data in specified format as JavaScript object
174
165
  */
175
- getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, skip_layout: boolean, format: number): any;
166
+ getEvaluatedSchemaByPathsSubformJS(subform_path: string, paths_json: string, format: number): any;
176
167
  /**
177
168
  * Get the evaluated schema as JavaScript object
178
169
  *
179
- * @param skipLayout - Whether to skip layout resolution
180
170
  * @returns Evaluated schema as JavaScript object
181
171
  */
182
- getEvaluatedSchemaJS(skip_layout: boolean): any;
172
+ getEvaluatedSchemaJS(): any;
183
173
  /**
184
174
  * Get the evaluated schema in MessagePack format
185
175
  *
186
- * @param skipLayout - Whether to skip layout resolution
187
176
  * @returns Evaluated schema as MessagePack bytes (Uint8Array)
188
177
  *
189
178
  * # Zero-Copy Optimization
@@ -195,53 +184,96 @@ export class JSONEvalWasm {
195
184
  *
196
185
  * MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
197
186
  */
198
- getEvaluatedSchemaMsgpack(skip_layout: boolean): Uint8Array;
187
+ getEvaluatedSchemaMsgpack(): Uint8Array;
199
188
  /**
200
- * Get evaluated schema from subform
189
+ * Get the evaluated schema with $layout resolution merged in
190
+ * Convenience method — equivalent to compact schema + overlay merge
191
+ *
192
+ * @returns Fully resolved evaluated schema as JavaScript object
193
+ */
194
+ getEvaluatedSchemaResolved(): any;
195
+ /**
196
+ * Get evaluated schema with layout fully resolved for subform
197
+ *
198
+ * @param subformPath - Path to the subform
199
+ * @returns Evaluated schema as JavaScript object
200
+ */
201
+ getEvaluatedSchemaResolvedSubform(subform_path: string): any;
202
+ /**
203
+ * Get evaluated schema from subform (compact, without $layout resolution)
201
204
  *
202
205
  * @param subformPath - Path to the subform
203
- * @param resolveLayout - Whether to resolve layout
204
206
  * @returns Evaluated schema as JSON string
205
207
  */
206
- getEvaluatedSchemaSubform(subform_path: string, resolve_layout: boolean): string;
208
+ getEvaluatedSchemaSubform(subform_path: string): string;
207
209
  /**
208
- * Get evaluated schema from subform as JavaScript object
210
+ * Get evaluated schema from subform as JavaScript object (compact)
209
211
  *
210
212
  * @param subformPath - Path to the subform
211
- * @param resolveLayout - Whether to resolve layout
212
213
  * @returns Evaluated schema as JavaScript object
213
214
  */
214
- getEvaluatedSchemaSubformJS(subform_path: string, resolve_layout: boolean): any;
215
+ getEvaluatedSchemaSubformJS(subform_path: string): any;
215
216
  /**
216
- * Get the evaluated schema without $params field
217
+ * Get the evaluated schema without $params field (compact)
217
218
  *
218
- * @param skipLayout - Whether to skip layout resolution
219
219
  * @returns Evaluated schema as JSON string
220
220
  */
221
- getEvaluatedSchemaWithoutParams(skip_layout: boolean): string;
221
+ getEvaluatedSchemaWithoutParams(): string;
222
222
  /**
223
223
  * Get the evaluated schema without $params as JavaScript object
224
224
  *
225
- * @param skipLayout - Whether to skip layout resolution
226
225
  * @returns Evaluated schema as JavaScript object
227
226
  */
228
- getEvaluatedSchemaWithoutParamsJS(skip_layout: boolean): any;
227
+ getEvaluatedSchemaWithoutParamsJS(): any;
229
228
  /**
230
- * Get evaluated schema without $params from subform
229
+ * Get evaluated schema without $params from subform (compact)
231
230
  *
232
231
  * @param subformPath - Path to the subform
233
- * @param resolveLayout - Whether to resolve layout
234
232
  * @returns Evaluated schema as JSON string
235
233
  */
236
- getEvaluatedSchemaWithoutParamsSubform(subform_path: string, resolve_layout: boolean): string;
234
+ getEvaluatedSchemaWithoutParamsSubform(subform_path: string): string;
237
235
  /**
238
- * Get evaluated schema without $params from subform as JavaScript object
236
+ * Get evaluated schema without $params from subform as JavaScript object (compact)
239
237
  *
240
238
  * @param subformPath - Path to the subform
241
- * @param resolveLayout - Whether to resolve layout
242
239
  * @returns Evaluated schema as JavaScript object
243
240
  */
244
- getEvaluatedSchemaWithoutParamsSubformJS(subform_path: string, resolve_layout: boolean): any;
241
+ getEvaluatedSchemaWithoutParamsSubformJS(subform_path: string): any;
242
+ /**
243
+ * Evaluate and return the options for a specific field on demand.
244
+ *
245
+ * Accepts dotted notation (`form.occupation`), JSON pointer
246
+ * (`/properties/form/properties/occupation`), or schema ref
247
+ * (`#/properties/form/properties/occupation`).
248
+ *
249
+ * @param fieldPath - Field path in dotted, pointer, or ref notation
250
+ * @returns Options as JSON string, or null if the field has no options
251
+ */
252
+ getFieldOptions(field_path: string): string | undefined;
253
+ /**
254
+ * Evaluate and return the options for a specific field on demand (as JavaScript object).
255
+ *
256
+ * Accepts dotted notation (`form.occupation`), JSON pointer
257
+ * (`/properties/form/properties/occupation`), or schema ref
258
+ * (`#/properties/form/properties/occupation`).
259
+ *
260
+ * @param fieldPath - Field path in dotted, pointer, or ref notation
261
+ * @returns Options as JavaScript value, or null if the field has no options
262
+ */
263
+ getFieldOptionsJS(field_path: string): any;
264
+ /**
265
+ * Get the resolved layout overlays (separate from evaluated schema)
266
+ *
267
+ * @returns LayoutOverlayEntry array as JavaScript object
268
+ */
269
+ getResolvedLayout(): any;
270
+ /**
271
+ * Get resolved layout overlay entries for subform
272
+ *
273
+ * @param subformPath - Path to the subform
274
+ * @returns LayoutOverlayEntry array as JavaScript object
275
+ */
276
+ getResolvedLayoutSubform(subform_path: string): any;
245
277
  /**
246
278
  * Get a value from the schema using dotted path notation
247
279
  *
@@ -407,20 +439,21 @@ export class JSONEvalWasm {
407
439
  */
408
440
  reloadSchemaMsgpack(schema_msgpack: Uint8Array, context?: string | null, data?: string | null): void;
409
441
  /**
410
- * Resolve layout with optional evaluation
442
+ * Resolve layout with optional evaluation.
443
+ * Returns overlay entries (LayoutOverlayEntry array) as JavaScript object.
411
444
  *
412
445
  * @param evaluate - If true, runs evaluation before resolving layout
413
- * @throws Error if resolve fails
446
+ * @returns LayoutOverlayEntry array as JavaScript object
414
447
  */
415
- resolveLayout(evaluate: boolean): void;
448
+ resolveLayout(evaluate: boolean): any;
416
449
  /**
417
- * Resolve layout for subform
450
+ * Resolve layout for subform, returning overlay entries
418
451
  *
419
452
  * @param subformPath - Path to the subform
420
453
  * @param evaluate - If true, runs evaluation before resolving layout
421
- * @throws Error if resolve fails
454
+ * @returns LayoutOverlayEntry array as JavaScript object
422
455
  */
423
- resolveLayoutSubform(subform_path: string, evaluate: boolean): void;
456
+ resolveLayoutSubform(subform_path: string, evaluate: boolean): any;
424
457
  /**
425
458
  * Run pre-compiled logic by ID
426
459
  * @param logic_id - Compiled logic ID from compileLogic
@@ -376,19 +376,17 @@ export class JSONEvalWasm {
376
376
  }
377
377
  }
378
378
  /**
379
- * Get the evaluated schema with optional layout resolution
379
+ * Get the evaluated schema (compact, without $layout resolution)
380
380
  *
381
- * @param skipLayout - Whether to skip layout resolution
382
381
  * @returns Evaluated schema as JSON string
383
- * @param {boolean} skip_layout
384
382
  * @returns {string}
385
383
  */
386
- getEvaluatedSchema(skip_layout) {
384
+ getEvaluatedSchema() {
387
385
  let deferred1_0;
388
386
  let deferred1_1;
389
387
  try {
390
388
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
391
- wasm.jsonevalwasm_getEvaluatedSchema(retptr, this.__wbg_ptr, skip_layout);
389
+ wasm.jsonevalwasm_getEvaluatedSchema(retptr, this.__wbg_ptr);
392
390
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
393
391
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
394
392
  deferred1_0 = r0;
@@ -403,18 +401,16 @@ export class JSONEvalWasm {
403
401
  * Get a value from the evaluated schema using dotted path notation
404
402
  *
405
403
  * @param path - Dotted path to the value (e.g., "properties.field.value")
406
- * @param skipLayout - Whether to skip layout resolution
407
404
  * @returns Value as JSON string or null if not found
408
405
  * @param {string} path
409
- * @param {boolean} skip_layout
410
406
  * @returns {string | undefined}
411
407
  */
412
- getEvaluatedSchemaByPath(path, skip_layout) {
408
+ getEvaluatedSchemaByPath(path) {
413
409
  try {
414
410
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
415
411
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
416
412
  const len0 = WASM_VECTOR_LEN;
417
- wasm.jsonevalwasm_getEvaluatedSchemaByPath(retptr, this.__wbg_ptr, ptr0, len0, skip_layout);
413
+ wasm.jsonevalwasm_getEvaluatedSchemaByPath(retptr, this.__wbg_ptr, ptr0, len0);
418
414
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
419
415
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
420
416
  let v2;
@@ -431,18 +427,16 @@ export class JSONEvalWasm {
431
427
  * Get a value from the evaluated schema using dotted path notation as JavaScript object
432
428
  *
433
429
  * @param path - Dotted path to the value (e.g., "properties.field.value")
434
- * @param skipLayout - Whether to skip layout resolution
435
430
  * @returns Value as JavaScript object or null if not found
436
431
  * @param {string} path
437
- * @param {boolean} skip_layout
438
432
  * @returns {any}
439
433
  */
440
- getEvaluatedSchemaByPathJS(path, skip_layout) {
434
+ getEvaluatedSchemaByPathJS(path) {
441
435
  try {
442
436
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
443
437
  const ptr0 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
444
438
  const len0 = WASM_VECTOR_LEN;
445
- wasm.jsonevalwasm_getEvaluatedSchemaByPathJS(retptr, this.__wbg_ptr, ptr0, len0, skip_layout);
439
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathJS(retptr, this.__wbg_ptr, ptr0, len0);
446
440
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
447
441
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
448
442
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -455,25 +449,23 @@ export class JSONEvalWasm {
455
449
  }
456
450
  }
457
451
  /**
458
- * Get evaluated schema by specific path from subform
452
+ * Get evaluated schema by specific path from subform (compact)
459
453
  *
460
454
  * @param subformPath - Path to the subform
461
455
  * @param schemaPath - Dotted path to the value within the subform
462
- * @param skipLayout - Whether to skip layout resolution
463
456
  * @returns Value as JSON string or null if not found
464
457
  * @param {string} subform_path
465
458
  * @param {string} schema_path
466
- * @param {boolean} skip_layout
467
459
  * @returns {string | undefined}
468
460
  */
469
- getEvaluatedSchemaByPathSubform(subform_path, schema_path, skip_layout) {
461
+ getEvaluatedSchemaByPathSubform(subform_path, schema_path) {
470
462
  try {
471
463
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
472
464
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
473
465
  const len0 = WASM_VECTOR_LEN;
474
466
  const ptr1 = passStringToWasm0(schema_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
475
467
  const len1 = WASM_VECTOR_LEN;
476
- wasm.jsonevalwasm_getEvaluatedSchemaByPathSubform(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout);
468
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathSubform(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
477
469
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
478
470
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
479
471
  let v3;
@@ -487,25 +479,23 @@ export class JSONEvalWasm {
487
479
  }
488
480
  }
489
481
  /**
490
- * Get evaluated schema by specific path from subform as JavaScript object
482
+ * Get evaluated schema by specific path from subform as JavaScript object (compact)
491
483
  *
492
484
  * @param subformPath - Path to the subform
493
485
  * @param schemaPath - Dotted path to the value within the subform
494
- * @param skipLayout - Whether to skip layout resolution
495
486
  * @returns Value as JavaScript object or null if not found
496
487
  * @param {string} subform_path
497
488
  * @param {string} schema_path
498
- * @param {boolean} skip_layout
499
489
  * @returns {any}
500
490
  */
501
- getEvaluatedSchemaByPathSubformJS(subform_path, schema_path, skip_layout) {
491
+ getEvaluatedSchemaByPathSubformJS(subform_path, schema_path) {
502
492
  try {
503
493
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
504
494
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
505
495
  const len0 = WASM_VECTOR_LEN;
506
496
  const ptr1 = passStringToWasm0(schema_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
507
497
  const len1 = WASM_VECTOR_LEN;
508
- wasm.jsonevalwasm_getEvaluatedSchemaByPathSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout);
498
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
509
499
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
510
500
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
511
501
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -520,22 +510,20 @@ export class JSONEvalWasm {
520
510
  /**
521
511
  * Get values from evaluated schema using multiple dotted paths
522
512
  * @param pathsJson - JSON array of dotted paths
523
- * @param skipLayout - Whether to skip layout resolution
524
513
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
525
514
  * @returns Data in specified format as JSON string
526
515
  * @param {string} paths_json
527
- * @param {boolean} skip_layout
528
516
  * @param {number} format
529
517
  * @returns {string}
530
518
  */
531
- getEvaluatedSchemaByPaths(paths_json, skip_layout, format) {
519
+ getEvaluatedSchemaByPaths(paths_json, format) {
532
520
  let deferred3_0;
533
521
  let deferred3_1;
534
522
  try {
535
523
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
536
524
  const ptr0 = passStringToWasm0(paths_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
537
525
  const len0 = WASM_VECTOR_LEN;
538
- wasm.jsonevalwasm_getEvaluatedSchemaByPaths(retptr, this.__wbg_ptr, ptr0, len0, skip_layout, format);
526
+ wasm.jsonevalwasm_getEvaluatedSchemaByPaths(retptr, this.__wbg_ptr, ptr0, len0, format);
539
527
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
540
528
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
541
529
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -557,20 +545,18 @@ export class JSONEvalWasm {
557
545
  /**
558
546
  * Get values from evaluated schema using multiple dotted paths (JS object)
559
547
  * @param pathsJson - JSON array of dotted paths
560
- * @param skipLayout - Whether to skip layout resolution
561
548
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
562
549
  * @returns Data in specified format as JavaScript object
563
550
  * @param {string} paths_json
564
- * @param {boolean} skip_layout
565
551
  * @param {number} format
566
552
  * @returns {any}
567
553
  */
568
- getEvaluatedSchemaByPathsJS(paths_json, skip_layout, format) {
554
+ getEvaluatedSchemaByPathsJS(paths_json, format) {
569
555
  try {
570
556
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
571
557
  const ptr0 = passStringToWasm0(paths_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
572
558
  const len0 = WASM_VECTOR_LEN;
573
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsJS(retptr, this.__wbg_ptr, ptr0, len0, skip_layout, format);
559
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsJS(retptr, this.__wbg_ptr, ptr0, len0, format);
574
560
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
575
561
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
576
562
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -583,19 +569,17 @@ export class JSONEvalWasm {
583
569
  }
584
570
  }
585
571
  /**
586
- * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JSON string)
572
+ * Get values from the evaluated schema of a subform using multiple dotted path notations (compact)
587
573
  * @param subformPath - Path to the subform
588
574
  * @param pathsJson - JSON array of dotted paths
589
- * @param skipLayout - Whether to skip layout resolution
590
575
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
591
576
  * @returns Data in specified format as JSON string
592
577
  * @param {string} subform_path
593
578
  * @param {string} paths_json
594
- * @param {boolean} skip_layout
595
579
  * @param {number} format
596
580
  * @returns {string}
597
581
  */
598
- getEvaluatedSchemaByPathsSubform(subform_path, paths_json, skip_layout, format) {
582
+ getEvaluatedSchemaByPathsSubform(subform_path, paths_json, format) {
599
583
  let deferred4_0;
600
584
  let deferred4_1;
601
585
  try {
@@ -604,7 +588,7 @@ export class JSONEvalWasm {
604
588
  const len0 = WASM_VECTOR_LEN;
605
589
  const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
606
590
  const len1 = WASM_VECTOR_LEN;
607
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubform(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
591
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubform(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
608
592
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
609
593
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
610
594
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -624,26 +608,24 @@ export class JSONEvalWasm {
624
608
  }
625
609
  }
626
610
  /**
627
- * Get values from the evaluated schema of a subform using multiple dotted path notations (returns JS object)
611
+ * Get values from the evaluated schema of a subform using multiple dotted path notations (compact, JS object)
628
612
  * @param subformPath - Path to the subform
629
613
  * @param paths - Array of dotted paths
630
- * @param skipLayout - Whether to skip layout resolution
631
614
  * @param format - Return format (0=Nested, 1=Flat, 2=Array)
632
615
  * @returns Data in specified format as JavaScript object
633
616
  * @param {string} subform_path
634
617
  * @param {string} paths_json
635
- * @param {boolean} skip_layout
636
618
  * @param {number} format
637
619
  * @returns {any}
638
620
  */
639
- getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, skip_layout, format) {
621
+ getEvaluatedSchemaByPathsSubformJS(subform_path, paths_json, format) {
640
622
  try {
641
623
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
642
624
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
643
625
  const len0 = WASM_VECTOR_LEN;
644
626
  const ptr1 = passStringToWasm0(paths_json, wasm.__wbindgen_export, wasm.__wbindgen_export2);
645
627
  const len1 = WASM_VECTOR_LEN;
646
- wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, skip_layout, format);
628
+ wasm.jsonevalwasm_getEvaluatedSchemaByPathsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, format);
647
629
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
648
630
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
649
631
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -658,15 +640,13 @@ export class JSONEvalWasm {
658
640
  /**
659
641
  * Get the evaluated schema as JavaScript object
660
642
  *
661
- * @param skipLayout - Whether to skip layout resolution
662
643
  * @returns Evaluated schema as JavaScript object
663
- * @param {boolean} skip_layout
664
644
  * @returns {any}
665
645
  */
666
- getEvaluatedSchemaJS(skip_layout) {
646
+ getEvaluatedSchemaJS() {
667
647
  try {
668
648
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
669
- wasm.jsonevalwasm_getEvaluatedSchemaJS(retptr, this.__wbg_ptr, skip_layout);
649
+ wasm.jsonevalwasm_getEvaluatedSchemaJS(retptr, this.__wbg_ptr);
670
650
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
671
651
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
672
652
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -681,7 +661,6 @@ export class JSONEvalWasm {
681
661
  /**
682
662
  * Get the evaluated schema in MessagePack format
683
663
  *
684
- * @param skipLayout - Whether to skip layout resolution
685
664
  * @returns Evaluated schema as MessagePack bytes (Uint8Array)
686
665
  *
687
666
  * # Zero-Copy Optimization
@@ -692,13 +671,12 @@ export class JSONEvalWasm {
692
671
  * 3. Result is a Uint8Array view (minimal overhead)
693
672
  *
694
673
  * MessagePack format is 20-50% smaller than JSON, ideal for web/WASM.
695
- * @param {boolean} skip_layout
696
674
  * @returns {Uint8Array}
697
675
  */
698
- getEvaluatedSchemaMsgpack(skip_layout) {
676
+ getEvaluatedSchemaMsgpack() {
699
677
  try {
700
678
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
701
- wasm.jsonevalwasm_getEvaluatedSchemaMsgpack(retptr, this.__wbg_ptr, skip_layout);
679
+ wasm.jsonevalwasm_getEvaluatedSchemaMsgpack(retptr, this.__wbg_ptr);
702
680
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
703
681
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
704
682
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -714,23 +692,68 @@ export class JSONEvalWasm {
714
692
  }
715
693
  }
716
694
  /**
717
- * Get evaluated schema from subform
695
+ * Get the evaluated schema with $layout resolution merged in
696
+ * Convenience method — equivalent to compact schema + overlay merge
697
+ *
698
+ * @returns Fully resolved evaluated schema as JavaScript object
699
+ * @returns {any}
700
+ */
701
+ getEvaluatedSchemaResolved() {
702
+ try {
703
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
704
+ wasm.jsonevalwasm_getEvaluatedSchemaResolved(retptr, this.__wbg_ptr);
705
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
706
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
707
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
708
+ if (r2) {
709
+ throw takeObject(r1);
710
+ }
711
+ return takeObject(r0);
712
+ } finally {
713
+ wasm.__wbindgen_add_to_stack_pointer(16);
714
+ }
715
+ }
716
+ /**
717
+ * Get evaluated schema with layout fully resolved for subform
718
+ *
719
+ * @param subformPath - Path to the subform
720
+ * @returns Evaluated schema as JavaScript object
721
+ * @param {string} subform_path
722
+ * @returns {any}
723
+ */
724
+ getEvaluatedSchemaResolvedSubform(subform_path) {
725
+ try {
726
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
727
+ const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
728
+ const len0 = WASM_VECTOR_LEN;
729
+ wasm.jsonevalwasm_getEvaluatedSchemaResolvedSubform(retptr, this.__wbg_ptr, ptr0, len0);
730
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
731
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
732
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
733
+ if (r2) {
734
+ throw takeObject(r1);
735
+ }
736
+ return takeObject(r0);
737
+ } finally {
738
+ wasm.__wbindgen_add_to_stack_pointer(16);
739
+ }
740
+ }
741
+ /**
742
+ * Get evaluated schema from subform (compact, without $layout resolution)
718
743
  *
719
744
  * @param subformPath - Path to the subform
720
- * @param resolveLayout - Whether to resolve layout
721
745
  * @returns Evaluated schema as JSON string
722
746
  * @param {string} subform_path
723
- * @param {boolean} resolve_layout
724
747
  * @returns {string}
725
748
  */
726
- getEvaluatedSchemaSubform(subform_path, resolve_layout) {
749
+ getEvaluatedSchemaSubform(subform_path) {
727
750
  let deferred2_0;
728
751
  let deferred2_1;
729
752
  try {
730
753
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
731
754
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
732
755
  const len0 = WASM_VECTOR_LEN;
733
- wasm.jsonevalwasm_getEvaluatedSchemaSubform(retptr, this.__wbg_ptr, ptr0, len0, resolve_layout);
756
+ wasm.jsonevalwasm_getEvaluatedSchemaSubform(retptr, this.__wbg_ptr, ptr0, len0);
734
757
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
735
758
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
736
759
  deferred2_0 = r0;
@@ -742,21 +765,19 @@ export class JSONEvalWasm {
742
765
  }
743
766
  }
744
767
  /**
745
- * Get evaluated schema from subform as JavaScript object
768
+ * Get evaluated schema from subform as JavaScript object (compact)
746
769
  *
747
770
  * @param subformPath - Path to the subform
748
- * @param resolveLayout - Whether to resolve layout
749
771
  * @returns Evaluated schema as JavaScript object
750
772
  * @param {string} subform_path
751
- * @param {boolean} resolve_layout
752
773
  * @returns {any}
753
774
  */
754
- getEvaluatedSchemaSubformJS(subform_path, resolve_layout) {
775
+ getEvaluatedSchemaSubformJS(subform_path) {
755
776
  try {
756
777
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
757
778
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
758
779
  const len0 = WASM_VECTOR_LEN;
759
- wasm.jsonevalwasm_getEvaluatedSchemaSubformJS(retptr, this.__wbg_ptr, ptr0, len0, resolve_layout);
780
+ wasm.jsonevalwasm_getEvaluatedSchemaSubformJS(retptr, this.__wbg_ptr, ptr0, len0);
760
781
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
761
782
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
762
783
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -769,19 +790,17 @@ export class JSONEvalWasm {
769
790
  }
770
791
  }
771
792
  /**
772
- * Get the evaluated schema without $params field
793
+ * Get the evaluated schema without $params field (compact)
773
794
  *
774
- * @param skipLayout - Whether to skip layout resolution
775
795
  * @returns Evaluated schema as JSON string
776
- * @param {boolean} skip_layout
777
796
  * @returns {string}
778
797
  */
779
- getEvaluatedSchemaWithoutParams(skip_layout) {
798
+ getEvaluatedSchemaWithoutParams() {
780
799
  let deferred1_0;
781
800
  let deferred1_1;
782
801
  try {
783
802
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
784
- wasm.jsonevalwasm_getEvaluatedSchemaWithoutParams(retptr, this.__wbg_ptr, skip_layout);
803
+ wasm.jsonevalwasm_getEvaluatedSchemaWithoutParams(retptr, this.__wbg_ptr);
785
804
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
786
805
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
787
806
  deferred1_0 = r0;
@@ -795,15 +814,13 @@ export class JSONEvalWasm {
795
814
  /**
796
815
  * Get the evaluated schema without $params as JavaScript object
797
816
  *
798
- * @param skipLayout - Whether to skip layout resolution
799
817
  * @returns Evaluated schema as JavaScript object
800
- * @param {boolean} skip_layout
801
818
  * @returns {any}
802
819
  */
803
- getEvaluatedSchemaWithoutParamsJS(skip_layout) {
820
+ getEvaluatedSchemaWithoutParamsJS() {
804
821
  try {
805
822
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
806
- wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsJS(retptr, this.__wbg_ptr, skip_layout);
823
+ wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsJS(retptr, this.__wbg_ptr);
807
824
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
808
825
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
809
826
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -816,23 +833,21 @@ export class JSONEvalWasm {
816
833
  }
817
834
  }
818
835
  /**
819
- * Get evaluated schema without $params from subform
836
+ * Get evaluated schema without $params from subform (compact)
820
837
  *
821
838
  * @param subformPath - Path to the subform
822
- * @param resolveLayout - Whether to resolve layout
823
839
  * @returns Evaluated schema as JSON string
824
840
  * @param {string} subform_path
825
- * @param {boolean} resolve_layout
826
841
  * @returns {string}
827
842
  */
828
- getEvaluatedSchemaWithoutParamsSubform(subform_path, resolve_layout) {
843
+ getEvaluatedSchemaWithoutParamsSubform(subform_path) {
829
844
  let deferred2_0;
830
845
  let deferred2_1;
831
846
  try {
832
847
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
833
848
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
834
849
  const len0 = WASM_VECTOR_LEN;
835
- wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsSubform(retptr, this.__wbg_ptr, ptr0, len0, resolve_layout);
850
+ wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsSubform(retptr, this.__wbg_ptr, ptr0, len0);
836
851
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
837
852
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
838
853
  deferred2_0 = r0;
@@ -844,21 +859,124 @@ export class JSONEvalWasm {
844
859
  }
845
860
  }
846
861
  /**
847
- * Get evaluated schema without $params from subform as JavaScript object
862
+ * Get evaluated schema without $params from subform as JavaScript object (compact)
848
863
  *
849
864
  * @param subformPath - Path to the subform
850
- * @param resolveLayout - Whether to resolve layout
851
865
  * @returns Evaluated schema as JavaScript object
852
866
  * @param {string} subform_path
853
- * @param {boolean} resolve_layout
854
867
  * @returns {any}
855
868
  */
856
- getEvaluatedSchemaWithoutParamsSubformJS(subform_path, resolve_layout) {
869
+ getEvaluatedSchemaWithoutParamsSubformJS(subform_path) {
870
+ try {
871
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
872
+ const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
873
+ const len0 = WASM_VECTOR_LEN;
874
+ wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsSubformJS(retptr, this.__wbg_ptr, ptr0, len0);
875
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
876
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
877
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
878
+ if (r2) {
879
+ throw takeObject(r1);
880
+ }
881
+ return takeObject(r0);
882
+ } finally {
883
+ wasm.__wbindgen_add_to_stack_pointer(16);
884
+ }
885
+ }
886
+ /**
887
+ * Evaluate and return the options for a specific field on demand.
888
+ *
889
+ * Accepts dotted notation (`form.occupation`), JSON pointer
890
+ * (`/properties/form/properties/occupation`), or schema ref
891
+ * (`#/properties/form/properties/occupation`).
892
+ *
893
+ * @param fieldPath - Field path in dotted, pointer, or ref notation
894
+ * @returns Options as JSON string, or null if the field has no options
895
+ * @param {string} field_path
896
+ * @returns {string | undefined}
897
+ */
898
+ getFieldOptions(field_path) {
899
+ try {
900
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
901
+ const ptr0 = passStringToWasm0(field_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
902
+ const len0 = WASM_VECTOR_LEN;
903
+ wasm.jsonevalwasm_getFieldOptions(retptr, this.__wbg_ptr, ptr0, len0);
904
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
905
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
906
+ let v2;
907
+ if (r0 !== 0) {
908
+ v2 = getStringFromWasm0(r0, r1).slice();
909
+ wasm.__wbindgen_export3(r0, r1 * 1, 1);
910
+ }
911
+ return v2;
912
+ } finally {
913
+ wasm.__wbindgen_add_to_stack_pointer(16);
914
+ }
915
+ }
916
+ /**
917
+ * Evaluate and return the options for a specific field on demand (as JavaScript object).
918
+ *
919
+ * Accepts dotted notation (`form.occupation`), JSON pointer
920
+ * (`/properties/form/properties/occupation`), or schema ref
921
+ * (`#/properties/form/properties/occupation`).
922
+ *
923
+ * @param fieldPath - Field path in dotted, pointer, or ref notation
924
+ * @returns Options as JavaScript value, or null if the field has no options
925
+ * @param {string} field_path
926
+ * @returns {any}
927
+ */
928
+ getFieldOptionsJS(field_path) {
929
+ try {
930
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
931
+ const ptr0 = passStringToWasm0(field_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
932
+ const len0 = WASM_VECTOR_LEN;
933
+ wasm.jsonevalwasm_getFieldOptionsJS(retptr, this.__wbg_ptr, ptr0, len0);
934
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
935
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
936
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
937
+ if (r2) {
938
+ throw takeObject(r1);
939
+ }
940
+ return takeObject(r0);
941
+ } finally {
942
+ wasm.__wbindgen_add_to_stack_pointer(16);
943
+ }
944
+ }
945
+ /**
946
+ * Get the resolved layout overlays (separate from evaluated schema)
947
+ *
948
+ * @returns LayoutOverlayEntry array as JavaScript object
949
+ * @returns {any}
950
+ */
951
+ getResolvedLayout() {
952
+ try {
953
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
954
+ wasm.jsonevalwasm_getResolvedLayout(retptr, this.__wbg_ptr);
955
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
956
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
957
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
958
+ if (r2) {
959
+ throw takeObject(r1);
960
+ }
961
+ return takeObject(r0);
962
+ } finally {
963
+ wasm.__wbindgen_add_to_stack_pointer(16);
964
+ }
965
+ }
966
+ /**
967
+ * Get resolved layout overlay entries for subform
968
+ *
969
+ * @param subformPath - Path to the subform
970
+ * @returns LayoutOverlayEntry array as JavaScript object
971
+ * @param {string} subform_path
972
+ * @returns {any}
973
+ */
974
+ getResolvedLayoutSubform(subform_path) {
857
975
  try {
858
976
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
859
977
  const ptr0 = passStringToWasm0(subform_path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
860
978
  const len0 = WASM_VECTOR_LEN;
861
- wasm.jsonevalwasm_getEvaluatedSchemaWithoutParamsSubformJS(retptr, this.__wbg_ptr, ptr0, len0, resolve_layout);
979
+ wasm.jsonevalwasm_getResolvedLayoutSubform(retptr, this.__wbg_ptr, ptr0, len0);
862
980
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
863
981
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
864
982
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1470,11 +1588,13 @@ export class JSONEvalWasm {
1470
1588
  }
1471
1589
  }
1472
1590
  /**
1473
- * Resolve layout with optional evaluation
1591
+ * Resolve layout with optional evaluation.
1592
+ * Returns overlay entries (LayoutOverlayEntry array) as JavaScript object.
1474
1593
  *
1475
1594
  * @param evaluate - If true, runs evaluation before resolving layout
1476
- * @throws Error if resolve fails
1595
+ * @returns LayoutOverlayEntry array as JavaScript object
1477
1596
  * @param {boolean} evaluate
1597
+ * @returns {any}
1478
1598
  */
1479
1599
  resolveLayout(evaluate) {
1480
1600
  try {
@@ -1482,21 +1602,24 @@ export class JSONEvalWasm {
1482
1602
  wasm.jsonevalwasm_resolveLayout(retptr, this.__wbg_ptr, evaluate);
1483
1603
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1484
1604
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1485
- if (r1) {
1486
- throw takeObject(r0);
1605
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1606
+ if (r2) {
1607
+ throw takeObject(r1);
1487
1608
  }
1609
+ return takeObject(r0);
1488
1610
  } finally {
1489
1611
  wasm.__wbindgen_add_to_stack_pointer(16);
1490
1612
  }
1491
1613
  }
1492
1614
  /**
1493
- * Resolve layout for subform
1615
+ * Resolve layout for subform, returning overlay entries
1494
1616
  *
1495
1617
  * @param subformPath - Path to the subform
1496
1618
  * @param evaluate - If true, runs evaluation before resolving layout
1497
- * @throws Error if resolve fails
1619
+ * @returns LayoutOverlayEntry array as JavaScript object
1498
1620
  * @param {string} subform_path
1499
1621
  * @param {boolean} evaluate
1622
+ * @returns {any}
1500
1623
  */
1501
1624
  resolveLayoutSubform(subform_path, evaluate) {
1502
1625
  try {
@@ -1506,9 +1629,11 @@ export class JSONEvalWasm {
1506
1629
  wasm.jsonevalwasm_resolveLayoutSubform(retptr, this.__wbg_ptr, ptr0, len0, evaluate);
1507
1630
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1508
1631
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1509
- if (r1) {
1510
- throw takeObject(r0);
1632
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
1633
+ if (r2) {
1634
+ throw takeObject(r1);
1511
1635
  }
1636
+ return takeObject(r0);
1512
1637
  } finally {
1513
1638
  wasm.__wbindgen_add_to_stack_pointer(16);
1514
1639
  }
@@ -2066,7 +2191,7 @@ export function __wbg_getTime_1dad7b5386ddd2d9(arg0) {
2066
2191
  const ret = getObject(arg0).getTime();
2067
2192
  return ret;
2068
2193
  }
2069
- export function __wbg_log_d335eb09ef138f4e(arg0, arg1) {
2194
+ export function __wbg_log_4a86265935218adf(arg0, arg1) {
2070
2195
  console.log(getStringFromWasm0(arg0, arg1));
2071
2196
  }
2072
2197
  export function __wbg_new_0_1dcafdf5e786e876() {
Binary file
@@ -16,23 +16,29 @@ export const jsonevalwasm_evaluateDependentsSubformJS: (a: number, b: number, c:
16
16
  export const jsonevalwasm_evaluateJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
17
17
  export const jsonevalwasm_evaluateLogic: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
18
18
  export const jsonevalwasm_evaluateSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
19
- export const jsonevalwasm_getEvaluatedSchema: (a: number, b: number, c: number) => void;
20
- export const jsonevalwasm_getEvaluatedSchemaByPath: (a: number, b: number, c: number, d: number, e: number) => void;
21
- export const jsonevalwasm_getEvaluatedSchemaByPathJS: (a: number, b: number, c: number, d: number, e: number) => void;
22
- export const jsonevalwasm_getEvaluatedSchemaByPathSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
23
- export const jsonevalwasm_getEvaluatedSchemaByPathSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
24
- export const jsonevalwasm_getEvaluatedSchemaByPaths: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
25
- export const jsonevalwasm_getEvaluatedSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
- export const jsonevalwasm_getEvaluatedSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
27
- export const jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
28
- export const jsonevalwasm_getEvaluatedSchemaJS: (a: number, b: number, c: number) => void;
29
- export const jsonevalwasm_getEvaluatedSchemaMsgpack: (a: number, b: number, c: number) => void;
30
- export const jsonevalwasm_getEvaluatedSchemaSubform: (a: number, b: number, c: number, d: number, e: number) => void;
31
- export const jsonevalwasm_getEvaluatedSchemaSubformJS: (a: number, b: number, c: number, d: number, e: number) => void;
32
- export const jsonevalwasm_getEvaluatedSchemaWithoutParams: (a: number, b: number, c: number) => void;
33
- export const jsonevalwasm_getEvaluatedSchemaWithoutParamsJS: (a: number, b: number, c: number) => void;
34
- export const jsonevalwasm_getEvaluatedSchemaWithoutParamsSubform: (a: number, b: number, c: number, d: number, e: number) => void;
35
- export const jsonevalwasm_getEvaluatedSchemaWithoutParamsSubformJS: (a: number, b: number, c: number, d: number, e: number) => void;
19
+ export const jsonevalwasm_getEvaluatedSchema: (a: number, b: number) => void;
20
+ export const jsonevalwasm_getEvaluatedSchemaByPath: (a: number, b: number, c: number, d: number) => void;
21
+ export const jsonevalwasm_getEvaluatedSchemaByPathJS: (a: number, b: number, c: number, d: number) => void;
22
+ export const jsonevalwasm_getEvaluatedSchemaByPathSubform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
23
+ export const jsonevalwasm_getEvaluatedSchemaByPathSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
24
+ export const jsonevalwasm_getEvaluatedSchemaByPaths: (a: number, b: number, c: number, d: number, e: number) => void;
25
+ export const jsonevalwasm_getEvaluatedSchemaByPathsJS: (a: number, b: number, c: number, d: number, e: number) => void;
26
+ export const jsonevalwasm_getEvaluatedSchemaByPathsSubform: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
27
+ export const jsonevalwasm_getEvaluatedSchemaByPathsSubformJS: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
28
+ export const jsonevalwasm_getEvaluatedSchemaJS: (a: number, b: number) => void;
29
+ export const jsonevalwasm_getEvaluatedSchemaMsgpack: (a: number, b: number) => void;
30
+ export const jsonevalwasm_getEvaluatedSchemaResolved: (a: number, b: number) => void;
31
+ export const jsonevalwasm_getEvaluatedSchemaResolvedSubform: (a: number, b: number, c: number, d: number) => void;
32
+ export const jsonevalwasm_getEvaluatedSchemaSubform: (a: number, b: number, c: number, d: number) => void;
33
+ export const jsonevalwasm_getEvaluatedSchemaSubformJS: (a: number, b: number, c: number, d: number) => void;
34
+ export const jsonevalwasm_getEvaluatedSchemaWithoutParams: (a: number, b: number) => void;
35
+ export const jsonevalwasm_getEvaluatedSchemaWithoutParamsJS: (a: number, b: number) => void;
36
+ export const jsonevalwasm_getEvaluatedSchemaWithoutParamsSubform: (a: number, b: number, c: number, d: number) => void;
37
+ export const jsonevalwasm_getEvaluatedSchemaWithoutParamsSubformJS: (a: number, b: number, c: number, d: number) => void;
38
+ export const jsonevalwasm_getFieldOptions: (a: number, b: number, c: number, d: number) => void;
39
+ export const jsonevalwasm_getFieldOptionsJS: (a: number, b: number, c: number, d: number) => void;
40
+ export const jsonevalwasm_getResolvedLayout: (a: number, b: number) => void;
41
+ export const jsonevalwasm_getResolvedLayoutSubform: (a: number, b: number, c: number, d: number) => void;
36
42
  export const jsonevalwasm_getSchemaByPath: (a: number, b: number, c: number, d: number) => void;
37
43
  export const jsonevalwasm_getSchemaByPathJS: (a: number, b: number, c: number, d: number) => void;
38
44
  export const jsonevalwasm_getSchemaByPathSubform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;