@revisium/schema-toolkit 0.19.4 → 0.20.1

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.
Files changed (29) hide show
  1. package/dist/{FormulaPathBuilder--okalwdl.d.cts → FormulaPathBuilder-D9LkBcSv.d.cts} +1 -1
  2. package/dist/{FormulaPathBuilder-rW6PJd-r.d.ts → FormulaPathBuilder-DwlKOvVB.d.ts} +1 -1
  3. package/dist/{chunk-O4QRUV7I.cjs → chunk-FZ2MS4Q5.cjs} +848 -73
  4. package/dist/chunk-FZ2MS4Q5.cjs.map +1 -0
  5. package/dist/{chunk-5BBFBSGI.js → chunk-U5YDA3LA.js} +850 -76
  6. package/dist/chunk-U5YDA3LA.js.map +1 -0
  7. package/dist/core/index.d.cts +2 -2
  8. package/dist/core/index.d.ts +2 -2
  9. package/dist/index.cjs +46 -42
  10. package/dist/index.d.cts +5 -5
  11. package/dist/index.d.ts +5 -5
  12. package/dist/index.js +1 -1
  13. package/dist/{json-string.store-DRmQFKrp.d.ts → json-string.store-C58zbl31.d.ts} +1 -1
  14. package/dist/{json-string.store-DOZn38CI.d.cts → json-string.store-DuI--IL2.d.cts} +1 -1
  15. package/dist/{json-value-patch.types-U2y_ugm1.d.ts → json-value-patch.types-CgiEpchp.d.ts} +1 -1
  16. package/dist/{json-value-patch.types-CjBpq5VF.d.cts → json-value-patch.types-LEJxcIWR.d.cts} +1 -1
  17. package/dist/{json.types-46Cq-WxU.d.cts → json.types-PrMmLhba.d.cts} +1 -1
  18. package/dist/{json.types-46Cq-WxU.d.ts → json.types-PrMmLhba.d.ts} +1 -1
  19. package/dist/lib/index.d.cts +2 -2
  20. package/dist/lib/index.d.ts +2 -2
  21. package/dist/model/index.cjs +46 -42
  22. package/dist/model/index.d.cts +130 -99
  23. package/dist/model/index.d.ts +130 -99
  24. package/dist/model/index.js +1 -1
  25. package/dist/types/index.d.cts +2 -2
  26. package/dist/types/index.d.ts +2 -2
  27. package/package.json +1 -1
  28. package/dist/chunk-5BBFBSGI.js.map +0 -1
  29. package/dist/chunk-O4QRUV7I.cjs.map +0 -1
@@ -1,13 +1,13 @@
1
- import { h as JsonSchemaStore } from '../json-string.store-DOZn38CI.cjs';
2
- export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DOZn38CI.cjs';
3
- import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, r as Formula, F as FormulaDependency } from '../FormulaPathBuilder--okalwdl.cjs';
4
- export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder--okalwdl.cjs';
1
+ import { h as JsonSchemaStore } from '../json-string.store-DuI--IL2.cjs';
2
+ export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DuI--IL2.cjs';
3
+ import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, B as BasePath, r as BasePathSegment, s as Formula, F as FormulaDependency } from '../FormulaPathBuilder-D9LkBcSv.cjs';
4
+ export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder-D9LkBcSv.cjs';
5
5
  import { h as JsonPatch } from '../json-patch.types-Cu0Medki.cjs';
6
6
  import { f as JsonObjectSchema, i as JsonSchema } from '../schema.types-B5OgKLpV.cjs';
7
- import { d as JsonValuePatch } from '../json-value-patch.types-CjBpq5VF.cjs';
7
+ import { d as JsonValuePatch } from '../json-value-patch.types-LEJxcIWR.cjs';
8
8
  import { ASTNode } from '@revisium/formula';
9
9
  import 'eventemitter3';
10
- import '../json.types-46Cq-WxU.cjs';
10
+ import '../json.types-PrMmLhba.cjs';
11
11
 
12
12
  declare const equal: (value: unknown) => unknown;
13
13
  declare const fromNumberToString: (value: number, defaultValue?: string) => string;
@@ -171,97 +171,6 @@ declare class NodeFactory$1 {
171
171
  createArrayNodeWithItems(name: string, items: SchemaNode): SchemaNode;
172
172
  }
173
173
 
174
- interface RowData {
175
- rowId: string;
176
- data: unknown;
177
- }
178
- interface TableModelOptions {
179
- tableId: string;
180
- schema: JsonObjectSchema;
181
- rows?: RowData[];
182
- fkResolver?: ForeignKeyResolver;
183
- refSchemas?: RefSchemas;
184
- }
185
- interface TableModel {
186
- readonly fk: ForeignKeyResolver | undefined;
187
- readonly refSchemas: RefSchemas | undefined;
188
- readonly tableId: string;
189
- readonly baseTableId: string;
190
- readonly isRenamed: boolean;
191
- rename(newTableId: string): void;
192
- readonly schema: SchemaModel;
193
- readonly rows: readonly RowModel[];
194
- readonly rowCount: number;
195
- addRow(rowId: string, data?: unknown): RowModel;
196
- removeRow(rowId: string): void;
197
- getRow(rowId: string): RowModel | undefined;
198
- getRowIndex(rowId: string): number;
199
- getRowAt(index: number): RowModel | undefined;
200
- readonly isDirty: boolean;
201
- commit(): void;
202
- revert(): void;
203
- }
204
-
205
- interface ForeignKeyLoaderResult {
206
- schema: JsonObjectSchema;
207
- rows: RowData[];
208
- }
209
- interface ForeignKeyRowLoaderResult {
210
- schema: JsonObjectSchema;
211
- row: RowData;
212
- }
213
- interface ForeignKeyLoader {
214
- loadSchema(tableId: string): Promise<JsonObjectSchema>;
215
- loadTable(tableId: string): Promise<ForeignKeyLoaderResult>;
216
- loadRow(tableId: string, rowId: string): Promise<ForeignKeyRowLoaderResult>;
217
- }
218
- interface ForeignKeyResolverOptions {
219
- loader?: ForeignKeyLoader;
220
- prefetch?: boolean;
221
- prefetchDepth?: 1;
222
- }
223
-
224
- interface ForeignKeyResolver {
225
- addSchema(tableId: string, schema: JsonObjectSchema): void;
226
- addTable(tableId: string, schema: JsonObjectSchema, rows: RowData[]): void;
227
- addRow(tableId: string, rowId: string, data: unknown): void;
228
- renameTable(oldTableId: string, newTableId: string): void;
229
- getSchema(tableId: string): Promise<JsonObjectSchema>;
230
- getRowData(tableId: string, rowId: string): Promise<RowData>;
231
- isLoading(tableId: string): boolean;
232
- isLoadingRow(tableId: string, rowId: string): boolean;
233
- hasSchema(tableId: string): boolean;
234
- hasTable(tableId: string): boolean;
235
- hasRow(tableId: string, rowId: string): boolean;
236
- setPrefetch(enabled: boolean): void;
237
- readonly isPrefetchEnabled: boolean;
238
- dispose(): void;
239
- }
240
-
241
- type NodeFactoryFn = (name: string, schema: JsonSchema, value: unknown, id?: string) => ValueNode;
242
- declare class NodeFactoryRegistry {
243
- private readonly factories;
244
- register(schemaType: string, factory: NodeFactoryFn): this;
245
- get(schemaType: string): NodeFactoryFn | undefined;
246
- has(schemaType: string): boolean;
247
- }
248
- type RefSchemas = Record<string, JsonSchema>;
249
- interface NodeFactoryOptions {
250
- refSchemas?: RefSchemas;
251
- fkResolver?: ForeignKeyResolver;
252
- }
253
- declare class NodeFactory {
254
- private readonly registry;
255
- private readonly refSchemas;
256
- constructor(registry: NodeFactoryRegistry, options?: NodeFactoryOptions);
257
- create(name: string, schema: JsonSchema, value: unknown, id?: string): ValueNode;
258
- createTree(schema: JsonSchema, value: unknown): ValueNode;
259
- private getSchemaType;
260
- private resolveSchema;
261
- }
262
- declare function createDefaultRegistry(fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
263
- declare function createNodeFactory(options?: NodeFactoryOptions): NodeFactory;
264
-
265
174
  declare enum ValueType {
266
175
  String = "string",
267
176
  Number = "number",
@@ -351,6 +260,112 @@ interface ArrayNodeOptions extends ValueNodeOptions {
351
260
  }
352
261
  declare function extractFormulaDefinition(schema: JsonSchema): FormulaDefinition | undefined;
353
262
 
263
+ type NodeFactoryFn = (name: string, schema: JsonSchema, value: unknown, id?: string) => ValueNode;
264
+ declare class NodeFactoryRegistry {
265
+ private readonly factories;
266
+ register(schemaType: string, factory: NodeFactoryFn): this;
267
+ get(schemaType: string): NodeFactoryFn | undefined;
268
+ has(schemaType: string): boolean;
269
+ }
270
+ type RefSchemas = Record<string, JsonSchema>;
271
+ interface NodeFactoryOptions {
272
+ refSchemas?: RefSchemas;
273
+ fkResolver?: ForeignKeyResolver;
274
+ }
275
+ declare class NodeFactory {
276
+ private readonly registry;
277
+ private readonly refSchemas;
278
+ constructor(registry: NodeFactoryRegistry, options?: NodeFactoryOptions);
279
+ create(name: string, schema: JsonSchema, value: unknown, id?: string): ValueNode;
280
+ createTree(schema: JsonSchema, value: unknown): ValueNode;
281
+ private getSchemaType;
282
+ private resolveSchema;
283
+ }
284
+ declare function createDefaultRegistry(fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
285
+ declare function createNodeFactory(options?: NodeFactoryOptions): NodeFactory;
286
+
287
+ interface RowData {
288
+ rowId: string;
289
+ data: unknown;
290
+ }
291
+ interface TableModelOptions {
292
+ tableId: string;
293
+ schema: JsonObjectSchema;
294
+ rows?: RowData[];
295
+ fkResolver?: ForeignKeyResolver;
296
+ refSchemas?: RefSchemas;
297
+ }
298
+ interface TableModel {
299
+ readonly fk: ForeignKeyResolver | undefined;
300
+ readonly refSchemas: RefSchemas | undefined;
301
+ readonly tableId: string;
302
+ readonly baseTableId: string;
303
+ readonly isRenamed: boolean;
304
+ rename(newTableId: string): void;
305
+ readonly schema: SchemaModel;
306
+ readonly rows: readonly RowModel[];
307
+ readonly rowCount: number;
308
+ addRow(rowId: string, data?: unknown): RowModel;
309
+ removeRow(rowId: string): void;
310
+ getRow(rowId: string): RowModel | undefined;
311
+ getRowIndex(rowId: string): number;
312
+ getRowAt(index: number): RowModel | undefined;
313
+ readonly isDirty: boolean;
314
+ commit(): void;
315
+ revert(): void;
316
+ dispose(): void;
317
+ }
318
+
319
+ interface ForeignKeyLoaderResult {
320
+ schema: JsonObjectSchema;
321
+ rows: RowData[];
322
+ }
323
+ interface ForeignKeyRowLoaderResult {
324
+ schema: JsonObjectSchema;
325
+ row: RowData;
326
+ }
327
+ interface ForeignKeyLoader {
328
+ loadSchema(tableId: string): Promise<JsonObjectSchema>;
329
+ loadTable(tableId: string): Promise<ForeignKeyLoaderResult>;
330
+ loadRow(tableId: string, rowId: string): Promise<ForeignKeyRowLoaderResult>;
331
+ }
332
+ interface ForeignKeyResolverOptions {
333
+ loader?: ForeignKeyLoader;
334
+ prefetch?: boolean;
335
+ prefetchDepth?: 1;
336
+ }
337
+
338
+ interface ForeignKeyResolver {
339
+ addSchema(tableId: string, schema: JsonObjectSchema): void;
340
+ addTable(tableId: string, schema: JsonObjectSchema, rows: RowData[]): void;
341
+ addRow(tableId: string, rowId: string, data: unknown): void;
342
+ renameTable(oldTableId: string, newTableId: string): void;
343
+ getSchema(tableId: string): Promise<JsonObjectSchema>;
344
+ getRowData(tableId: string, rowId: string): Promise<RowData>;
345
+ isLoading(tableId: string): boolean;
346
+ isLoadingRow(tableId: string, rowId: string): boolean;
347
+ hasSchema(tableId: string): boolean;
348
+ hasTable(tableId: string): boolean;
349
+ hasRow(tableId: string, rowId: string): boolean;
350
+ setPrefetch(enabled: boolean): void;
351
+ readonly isPrefetchEnabled: boolean;
352
+ dispose(): void;
353
+ }
354
+
355
+ interface ValuePathSegment extends BasePathSegment {
356
+ isProperty(): boolean;
357
+ isIndex(): boolean;
358
+ propertyName(): string;
359
+ indexValue(): number;
360
+ equals(other: ValuePathSegment): boolean;
361
+ }
362
+ interface ValuePath extends BasePath<ValuePathSegment, ValuePath> {
363
+ asString(): string;
364
+ asJsonPointer(): string;
365
+ child(name: string): ValuePath;
366
+ childIndex(index: number): ValuePath;
367
+ }
368
+
354
369
  interface ValueTreeLike {
355
370
  readonly root: ValueNode;
356
371
  get(path: string): ValueNode | undefined;
@@ -363,8 +378,18 @@ interface ValueTreeLike {
363
378
  getPatches(): readonly JsonValuePatch[];
364
379
  commit(): void;
365
380
  revert(): void;
381
+ nodeById(id: string): ValueNode | undefined;
382
+ pathOf(nodeOrId: ValueNode | string): ValuePath;
383
+ dispose(): void;
366
384
  }
367
385
 
386
+ interface RowModelOptions {
387
+ rowId: string;
388
+ schema: JsonObjectSchema;
389
+ data?: unknown;
390
+ fkResolver?: ForeignKeyResolver;
391
+ refSchemas?: RefSchemas;
392
+ }
368
393
  interface TableModelLike {
369
394
  getRowIndex(rowId: string): number;
370
395
  getRowAt(index: number): RowModel | undefined;
@@ -381,12 +406,14 @@ interface RowModel {
381
406
  getValue(path: string): unknown;
382
407
  setValue(path: string, value: unknown): void;
383
408
  getPlainValue(): unknown;
409
+ nodeById(id: string): ValueNode | undefined;
384
410
  readonly isDirty: boolean;
385
411
  readonly isValid: boolean;
386
412
  readonly errors: readonly Diagnostic[];
387
413
  getPatches(): readonly JsonValuePatch[];
388
414
  commit(): void;
389
415
  revert(): void;
416
+ dispose(): void;
390
417
  }
391
418
 
392
419
  declare class RowModelImpl implements RowModel {
@@ -404,14 +431,17 @@ declare class RowModelImpl implements RowModel {
404
431
  getValue(path: string): unknown;
405
432
  setValue(path: string, value: unknown): void;
406
433
  getPlainValue(): unknown;
434
+ nodeById(id: string): ValueNode | undefined;
407
435
  get isDirty(): boolean;
408
436
  get isValid(): boolean;
409
437
  get errors(): readonly Diagnostic[];
410
438
  getPatches(): readonly JsonValuePatch[];
411
439
  commit(): void;
412
440
  revert(): void;
441
+ dispose(): void;
413
442
  setTableModel(tableModel: TableModelLike | null): void;
414
443
  }
444
+ declare function createRowModel(options: RowModelOptions): RowModel;
415
445
 
416
446
  declare class TableModelImpl implements TableModel {
417
447
  private _tableId;
@@ -439,7 +469,8 @@ declare class TableModelImpl implements TableModel {
439
469
  get isDirty(): boolean;
440
470
  commit(): void;
441
471
  revert(): void;
442
- private createRowModel;
472
+ dispose(): void;
473
+ private createRow;
443
474
  }
444
475
  declare function createTableModel(options: TableModelOptions): TableModel;
445
476
 
@@ -742,4 +773,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
742
773
  getSchema(): Promise<JsonObjectSchema>;
743
774
  }
744
775
 
745
- export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
776
+ export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type RowModelOptions, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
@@ -1,13 +1,13 @@
1
- import { h as JsonSchemaStore } from '../json-string.store-DRmQFKrp.js';
2
- export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-DRmQFKrp.js';
3
- import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, r as Formula, F as FormulaDependency } from '../FormulaPathBuilder-rW6PJd-r.js';
4
- export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder-rW6PJd-r.js';
1
+ import { h as JsonSchemaStore } from '../json-string.store-C58zbl31.js';
2
+ export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from '../json-string.store-C58zbl31.js';
3
+ import { l as SchemaNode, P as Path, j as NodeMetadata, h as SchemaValidationError, T as TreeFormulaValidationError, n as SchemaPatch, m as SchemaTree, D as Diagnostic, B as BasePath, r as BasePathSegment, s as Formula, F as FormulaDependency } from '../FormulaPathBuilder-DwlKOvVB.js';
4
+ export { b as FormulaPathBuilder, a as FormulaSerializer, R as ResolvedDependency } from '../FormulaPathBuilder-DwlKOvVB.js';
5
5
  import { h as JsonPatch } from '../json-patch.types-DY7k9hxy.js';
6
6
  import { f as JsonObjectSchema, i as JsonSchema } from '../schema.types-B5OgKLpV.js';
7
- import { d as JsonValuePatch } from '../json-value-patch.types-U2y_ugm1.js';
7
+ import { d as JsonValuePatch } from '../json-value-patch.types-CgiEpchp.js';
8
8
  import { ASTNode } from '@revisium/formula';
9
9
  import 'eventemitter3';
10
- import '../json.types-46Cq-WxU.js';
10
+ import '../json.types-PrMmLhba.js';
11
11
 
12
12
  declare const equal: (value: unknown) => unknown;
13
13
  declare const fromNumberToString: (value: number, defaultValue?: string) => string;
@@ -171,97 +171,6 @@ declare class NodeFactory$1 {
171
171
  createArrayNodeWithItems(name: string, items: SchemaNode): SchemaNode;
172
172
  }
173
173
 
174
- interface RowData {
175
- rowId: string;
176
- data: unknown;
177
- }
178
- interface TableModelOptions {
179
- tableId: string;
180
- schema: JsonObjectSchema;
181
- rows?: RowData[];
182
- fkResolver?: ForeignKeyResolver;
183
- refSchemas?: RefSchemas;
184
- }
185
- interface TableModel {
186
- readonly fk: ForeignKeyResolver | undefined;
187
- readonly refSchemas: RefSchemas | undefined;
188
- readonly tableId: string;
189
- readonly baseTableId: string;
190
- readonly isRenamed: boolean;
191
- rename(newTableId: string): void;
192
- readonly schema: SchemaModel;
193
- readonly rows: readonly RowModel[];
194
- readonly rowCount: number;
195
- addRow(rowId: string, data?: unknown): RowModel;
196
- removeRow(rowId: string): void;
197
- getRow(rowId: string): RowModel | undefined;
198
- getRowIndex(rowId: string): number;
199
- getRowAt(index: number): RowModel | undefined;
200
- readonly isDirty: boolean;
201
- commit(): void;
202
- revert(): void;
203
- }
204
-
205
- interface ForeignKeyLoaderResult {
206
- schema: JsonObjectSchema;
207
- rows: RowData[];
208
- }
209
- interface ForeignKeyRowLoaderResult {
210
- schema: JsonObjectSchema;
211
- row: RowData;
212
- }
213
- interface ForeignKeyLoader {
214
- loadSchema(tableId: string): Promise<JsonObjectSchema>;
215
- loadTable(tableId: string): Promise<ForeignKeyLoaderResult>;
216
- loadRow(tableId: string, rowId: string): Promise<ForeignKeyRowLoaderResult>;
217
- }
218
- interface ForeignKeyResolverOptions {
219
- loader?: ForeignKeyLoader;
220
- prefetch?: boolean;
221
- prefetchDepth?: 1;
222
- }
223
-
224
- interface ForeignKeyResolver {
225
- addSchema(tableId: string, schema: JsonObjectSchema): void;
226
- addTable(tableId: string, schema: JsonObjectSchema, rows: RowData[]): void;
227
- addRow(tableId: string, rowId: string, data: unknown): void;
228
- renameTable(oldTableId: string, newTableId: string): void;
229
- getSchema(tableId: string): Promise<JsonObjectSchema>;
230
- getRowData(tableId: string, rowId: string): Promise<RowData>;
231
- isLoading(tableId: string): boolean;
232
- isLoadingRow(tableId: string, rowId: string): boolean;
233
- hasSchema(tableId: string): boolean;
234
- hasTable(tableId: string): boolean;
235
- hasRow(tableId: string, rowId: string): boolean;
236
- setPrefetch(enabled: boolean): void;
237
- readonly isPrefetchEnabled: boolean;
238
- dispose(): void;
239
- }
240
-
241
- type NodeFactoryFn = (name: string, schema: JsonSchema, value: unknown, id?: string) => ValueNode;
242
- declare class NodeFactoryRegistry {
243
- private readonly factories;
244
- register(schemaType: string, factory: NodeFactoryFn): this;
245
- get(schemaType: string): NodeFactoryFn | undefined;
246
- has(schemaType: string): boolean;
247
- }
248
- type RefSchemas = Record<string, JsonSchema>;
249
- interface NodeFactoryOptions {
250
- refSchemas?: RefSchemas;
251
- fkResolver?: ForeignKeyResolver;
252
- }
253
- declare class NodeFactory {
254
- private readonly registry;
255
- private readonly refSchemas;
256
- constructor(registry: NodeFactoryRegistry, options?: NodeFactoryOptions);
257
- create(name: string, schema: JsonSchema, value: unknown, id?: string): ValueNode;
258
- createTree(schema: JsonSchema, value: unknown): ValueNode;
259
- private getSchemaType;
260
- private resolveSchema;
261
- }
262
- declare function createDefaultRegistry(fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
263
- declare function createNodeFactory(options?: NodeFactoryOptions): NodeFactory;
264
-
265
174
  declare enum ValueType {
266
175
  String = "string",
267
176
  Number = "number",
@@ -351,6 +260,112 @@ interface ArrayNodeOptions extends ValueNodeOptions {
351
260
  }
352
261
  declare function extractFormulaDefinition(schema: JsonSchema): FormulaDefinition | undefined;
353
262
 
263
+ type NodeFactoryFn = (name: string, schema: JsonSchema, value: unknown, id?: string) => ValueNode;
264
+ declare class NodeFactoryRegistry {
265
+ private readonly factories;
266
+ register(schemaType: string, factory: NodeFactoryFn): this;
267
+ get(schemaType: string): NodeFactoryFn | undefined;
268
+ has(schemaType: string): boolean;
269
+ }
270
+ type RefSchemas = Record<string, JsonSchema>;
271
+ interface NodeFactoryOptions {
272
+ refSchemas?: RefSchemas;
273
+ fkResolver?: ForeignKeyResolver;
274
+ }
275
+ declare class NodeFactory {
276
+ private readonly registry;
277
+ private readonly refSchemas;
278
+ constructor(registry: NodeFactoryRegistry, options?: NodeFactoryOptions);
279
+ create(name: string, schema: JsonSchema, value: unknown, id?: string): ValueNode;
280
+ createTree(schema: JsonSchema, value: unknown): ValueNode;
281
+ private getSchemaType;
282
+ private resolveSchema;
283
+ }
284
+ declare function createDefaultRegistry(fkResolver?: ForeignKeyResolver): NodeFactoryRegistry;
285
+ declare function createNodeFactory(options?: NodeFactoryOptions): NodeFactory;
286
+
287
+ interface RowData {
288
+ rowId: string;
289
+ data: unknown;
290
+ }
291
+ interface TableModelOptions {
292
+ tableId: string;
293
+ schema: JsonObjectSchema;
294
+ rows?: RowData[];
295
+ fkResolver?: ForeignKeyResolver;
296
+ refSchemas?: RefSchemas;
297
+ }
298
+ interface TableModel {
299
+ readonly fk: ForeignKeyResolver | undefined;
300
+ readonly refSchemas: RefSchemas | undefined;
301
+ readonly tableId: string;
302
+ readonly baseTableId: string;
303
+ readonly isRenamed: boolean;
304
+ rename(newTableId: string): void;
305
+ readonly schema: SchemaModel;
306
+ readonly rows: readonly RowModel[];
307
+ readonly rowCount: number;
308
+ addRow(rowId: string, data?: unknown): RowModel;
309
+ removeRow(rowId: string): void;
310
+ getRow(rowId: string): RowModel | undefined;
311
+ getRowIndex(rowId: string): number;
312
+ getRowAt(index: number): RowModel | undefined;
313
+ readonly isDirty: boolean;
314
+ commit(): void;
315
+ revert(): void;
316
+ dispose(): void;
317
+ }
318
+
319
+ interface ForeignKeyLoaderResult {
320
+ schema: JsonObjectSchema;
321
+ rows: RowData[];
322
+ }
323
+ interface ForeignKeyRowLoaderResult {
324
+ schema: JsonObjectSchema;
325
+ row: RowData;
326
+ }
327
+ interface ForeignKeyLoader {
328
+ loadSchema(tableId: string): Promise<JsonObjectSchema>;
329
+ loadTable(tableId: string): Promise<ForeignKeyLoaderResult>;
330
+ loadRow(tableId: string, rowId: string): Promise<ForeignKeyRowLoaderResult>;
331
+ }
332
+ interface ForeignKeyResolverOptions {
333
+ loader?: ForeignKeyLoader;
334
+ prefetch?: boolean;
335
+ prefetchDepth?: 1;
336
+ }
337
+
338
+ interface ForeignKeyResolver {
339
+ addSchema(tableId: string, schema: JsonObjectSchema): void;
340
+ addTable(tableId: string, schema: JsonObjectSchema, rows: RowData[]): void;
341
+ addRow(tableId: string, rowId: string, data: unknown): void;
342
+ renameTable(oldTableId: string, newTableId: string): void;
343
+ getSchema(tableId: string): Promise<JsonObjectSchema>;
344
+ getRowData(tableId: string, rowId: string): Promise<RowData>;
345
+ isLoading(tableId: string): boolean;
346
+ isLoadingRow(tableId: string, rowId: string): boolean;
347
+ hasSchema(tableId: string): boolean;
348
+ hasTable(tableId: string): boolean;
349
+ hasRow(tableId: string, rowId: string): boolean;
350
+ setPrefetch(enabled: boolean): void;
351
+ readonly isPrefetchEnabled: boolean;
352
+ dispose(): void;
353
+ }
354
+
355
+ interface ValuePathSegment extends BasePathSegment {
356
+ isProperty(): boolean;
357
+ isIndex(): boolean;
358
+ propertyName(): string;
359
+ indexValue(): number;
360
+ equals(other: ValuePathSegment): boolean;
361
+ }
362
+ interface ValuePath extends BasePath<ValuePathSegment, ValuePath> {
363
+ asString(): string;
364
+ asJsonPointer(): string;
365
+ child(name: string): ValuePath;
366
+ childIndex(index: number): ValuePath;
367
+ }
368
+
354
369
  interface ValueTreeLike {
355
370
  readonly root: ValueNode;
356
371
  get(path: string): ValueNode | undefined;
@@ -363,8 +378,18 @@ interface ValueTreeLike {
363
378
  getPatches(): readonly JsonValuePatch[];
364
379
  commit(): void;
365
380
  revert(): void;
381
+ nodeById(id: string): ValueNode | undefined;
382
+ pathOf(nodeOrId: ValueNode | string): ValuePath;
383
+ dispose(): void;
366
384
  }
367
385
 
386
+ interface RowModelOptions {
387
+ rowId: string;
388
+ schema: JsonObjectSchema;
389
+ data?: unknown;
390
+ fkResolver?: ForeignKeyResolver;
391
+ refSchemas?: RefSchemas;
392
+ }
368
393
  interface TableModelLike {
369
394
  getRowIndex(rowId: string): number;
370
395
  getRowAt(index: number): RowModel | undefined;
@@ -381,12 +406,14 @@ interface RowModel {
381
406
  getValue(path: string): unknown;
382
407
  setValue(path: string, value: unknown): void;
383
408
  getPlainValue(): unknown;
409
+ nodeById(id: string): ValueNode | undefined;
384
410
  readonly isDirty: boolean;
385
411
  readonly isValid: boolean;
386
412
  readonly errors: readonly Diagnostic[];
387
413
  getPatches(): readonly JsonValuePatch[];
388
414
  commit(): void;
389
415
  revert(): void;
416
+ dispose(): void;
390
417
  }
391
418
 
392
419
  declare class RowModelImpl implements RowModel {
@@ -404,14 +431,17 @@ declare class RowModelImpl implements RowModel {
404
431
  getValue(path: string): unknown;
405
432
  setValue(path: string, value: unknown): void;
406
433
  getPlainValue(): unknown;
434
+ nodeById(id: string): ValueNode | undefined;
407
435
  get isDirty(): boolean;
408
436
  get isValid(): boolean;
409
437
  get errors(): readonly Diagnostic[];
410
438
  getPatches(): readonly JsonValuePatch[];
411
439
  commit(): void;
412
440
  revert(): void;
441
+ dispose(): void;
413
442
  setTableModel(tableModel: TableModelLike | null): void;
414
443
  }
444
+ declare function createRowModel(options: RowModelOptions): RowModel;
415
445
 
416
446
  declare class TableModelImpl implements TableModel {
417
447
  private _tableId;
@@ -439,7 +469,8 @@ declare class TableModelImpl implements TableModel {
439
469
  get isDirty(): boolean;
440
470
  commit(): void;
441
471
  revert(): void;
442
- private createRowModel;
472
+ dispose(): void;
473
+ private createRow;
443
474
  }
444
475
  declare function createTableModel(options: TableModelOptions): TableModel;
445
476
 
@@ -742,4 +773,4 @@ declare class ForeignKeyValueNodeImpl extends StringValueNode implements Foreign
742
773
  getSchema(): Promise<JsonObjectSchema>;
743
774
  }
744
775
 
745
- export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
776
+ export { type ArrayNodeOptions, ArrayToItemsTypeTransformer, ArrayValueNode, type ArrayValueNode$1 as ArrayValueNodeInterface, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, type CompositeTypeName, type DataModel, DataModelImpl, type DataModelOptions, DefaultTransformer, type DirtyTrackable, type FieldSchemaSpec, type FieldType, type FieldTypeSpec, type ForeignKeyLoader, type ForeignKeyLoaderResult, ForeignKeyNotFoundError, type ForeignKeyResolver, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, type ForeignKeyResolverOptions, type ForeignKeyRowLoaderResult, type ForeignKeyValueNode, ForeignKeyValueNodeImpl, FormulaChangeDetector, type FormulaDefinition, FormulaDependency, FormulaDependencyIndex, FormulaPath, type FormulaWarning, type GenerateDefaultValueOptions, type IndirectFormulaChange, JsonSchemaStore, NodeFactory$1 as NodeFactory, type NodeFactoryFn, type NodeFactoryOptions, NodeFactoryRegistry, NumberValueNode, type ObjectNodeOptions, ObjectToArrayTransformer, ObjectValueNode, type ObjectValueNode$1 as ObjectValueNodeInterface, ParsedFormula, type PrimitiveNodeOptions, PrimitiveToArrayTransformer, type PrimitiveTypeName, type PrimitiveValueNode, type RefSchemas, RefTransformer, type ReplaceResult, type RowData, type RowModel, RowModelImpl, type RowModelOptions, type SchemaModel, type SchemaModelOptions, SchemaParser, type SimpleFieldType, StringValueNode, type TableModel, TableModelImpl, type TableModelLike, type TableModelOptions, type TransformContext, type TransformResult, TypeTransformChain, type TypeTransformChainOptions, type TypeTransformer, type ValueNode, NodeFactory as ValueNodeFactory, type ValueNodeOptions, type ValueTreeLike, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, equal, extractFormulaDefinition, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, generateDefaultValue, generateNodeId, getTransformation, isForeignKeyValueNode, resetNodeIdCounter, toArrayTransformation };
@@ -1,4 +1,4 @@
1
- export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createSchemaModel, createTableModel, createTypeTransformChain, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-5BBFBSGI.js';
1
+ export { ArrayToItemsTypeTransformer, ArrayValueNode, BasePrimitiveValueNode, BaseValueNode, BooleanValueNode, DataModelImpl, DefaultTransformer, ForeignKeyNotFoundError, ForeignKeyResolverImpl, ForeignKeyResolverNotConfiguredError, ForeignKeyValueNodeImpl, FormulaChangeDetector, FormulaDependencyIndex, FormulaPath, NodeFactory, NodeFactoryRegistry, NumberValueNode, ObjectToArrayTransformer, ObjectValueNode, ParsedFormula, PrimitiveToArrayTransformer, RefTransformer, RowModelImpl, SchemaParser, StringValueNode, TableModelImpl, TypeTransformChain, NodeFactory2 as ValueNodeFactory, ValueType, createDataModel, createDefaultRegistry, createForeignKeyResolver, createNodeFactory, createRowModel, createSchemaModel, createTableModel, createTypeTransformChain, extractFormulaDefinition, generateDefaultValue, generateNodeId, isForeignKeyValueNode, resetNodeIdCounter } from '../chunk-U5YDA3LA.js';
2
2
  export { FormulaPathBuilder, FormulaSerializer, ResolvedDependency } from '../chunk-3JZKQWQH.js';
3
3
  import '../chunk-3IKI64T2.js';
4
4
  import '../chunk-R4CFU33U.js';
@@ -1,7 +1,7 @@
1
- export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-46Cq-WxU.cjs';
1
+ export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.cjs';
2
2
  import { h as JsonPatch } from '../json-patch.types-Cu0Medki.cjs';
3
3
  export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-Cu0Medki.cjs';
4
- export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from '../json-value-patch.types-CjBpq5VF.cjs';
4
+ export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from '../json-value-patch.types-LEJxcIWR.cjs';
5
5
  import { i as JsonSchema } from '../schema.types-B5OgKLpV.cjs';
6
6
  export { C as ContentMediaType, g as JsonArraySchema, d as JsonBooleanSchema, c as JsonNumberSchema, f as JsonObjectSchema, h as JsonRefSchema, e as JsonSchemaPrimitives, a as JsonSchemaSharedFields, J as JsonSchemaTypeName, j as JsonSchemaWithoutRef, b as JsonStringSchema, X as XFormula } from '../schema.types-B5OgKLpV.cjs';
7
7
  export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.cjs';
@@ -1,7 +1,7 @@
1
- export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-46Cq-WxU.js';
1
+ export { b as JsonArray, J as JsonObject, a as JsonPrimitives, c as JsonValue } from '../json.types-PrMmLhba.js';
2
2
  import { h as JsonPatch } from '../json-patch.types-DY7k9hxy.js';
3
3
  export { g as JsonPatchAdd, c as JsonPatchAddOperation, d as JsonPatchMove, J as JsonPatchMoveOperation, f as JsonPatchRemove, b as JsonPatchRemoveOperation, e as JsonPatchReplace, a as JsonPatchReplaceOperation } from '../json-patch.types-DY7k9hxy.js';
4
- export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from '../json-value-patch.types-U2y_ugm1.js';
4
+ export { d as JsonValuePatch, c as JsonValuePatchAdd, J as JsonValuePatchMove, b as JsonValuePatchRemove, a as JsonValuePatchReplace } from '../json-value-patch.types-CgiEpchp.js';
5
5
  import { i as JsonSchema } from '../schema.types-B5OgKLpV.js';
6
6
  export { C as ContentMediaType, g as JsonArraySchema, d as JsonBooleanSchema, c as JsonNumberSchema, f as JsonObjectSchema, h as JsonRefSchema, e as JsonSchemaPrimitives, a as JsonSchemaSharedFields, J as JsonSchemaTypeName, j as JsonSchemaWithoutRef, b as JsonStringSchema, X as XFormula } from '../schema.types-B5OgKLpV.js';
7
7
  export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revisium/schema-toolkit",
3
- "version": "0.19.4",
3
+ "version": "0.20.1",
4
4
  "description": "Universal schema toolkit with TypeScript types and utilities for JSON Schema manipulation",
5
5
  "keywords": [
6
6
  "json-schema",