@revisium/schema-toolkit 0.14.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +1 -1
  2. package/dist/FormulaValidator-CKE2kT4C.d.cts +10 -0
  3. package/dist/FormulaValidator-DGGmwqDQ.d.ts +10 -0
  4. package/dist/{chunk-DJ4JPKI4.js → chunk-2NRQPOQY.js} +126 -218
  5. package/dist/chunk-2NRQPOQY.js.map +1 -0
  6. package/dist/chunk-3IKI64T2.js +3 -0
  7. package/dist/{chunk-H7W4QNMA.js.map → chunk-3IKI64T2.js.map} +1 -1
  8. package/dist/{chunk-L5MLJEC7.js → chunk-CYTPQYVM.js} +2 -2
  9. package/dist/chunk-CYTPQYVM.js.map +1 -0
  10. package/dist/{chunk-B22UU3JK.cjs → chunk-GAPLSVZN.cjs} +2 -2
  11. package/dist/chunk-GAPLSVZN.cjs.map +1 -0
  12. package/dist/chunk-IWRV6QAD.cjs +2621 -0
  13. package/dist/chunk-IWRV6QAD.cjs.map +1 -0
  14. package/dist/chunk-LF6CGXRQ.js +2289 -0
  15. package/dist/chunk-LF6CGXRQ.js.map +1 -0
  16. package/dist/chunk-OR2I3XOQ.cjs +2320 -0
  17. package/dist/chunk-OR2I3XOQ.cjs.map +1 -0
  18. package/dist/chunk-S7GEDTSL.js +2569 -0
  19. package/dist/chunk-S7GEDTSL.js.map +1 -0
  20. package/dist/chunk-TBFTADML.cjs +4 -0
  21. package/dist/{chunk-ODCH3PP2.cjs.map → chunk-TBFTADML.cjs.map} +1 -1
  22. package/dist/chunk-WSPFHUHU.cjs +130 -0
  23. package/dist/chunk-WSPFHUHU.cjs.map +1 -0
  24. package/dist/{chunk-VX5C5YMF.cjs → chunk-XS47N22X.cjs} +125 -218
  25. package/dist/chunk-XS47N22X.cjs.map +1 -0
  26. package/dist/chunk-YFWOURZL.js +128 -0
  27. package/dist/chunk-YFWOURZL.js.map +1 -0
  28. package/dist/{chunk-KJCURW4D.js → chunk-ZBPUTF3Q.js} +3 -3
  29. package/dist/chunk-ZBPUTF3Q.js.map +1 -0
  30. package/dist/{chunk-GF3XXYOS.cjs → chunk-ZRNFSUOV.cjs} +3 -3
  31. package/dist/chunk-ZRNFSUOV.cjs.map +1 -0
  32. package/dist/computeValueDiff-CDwbNw8F.d.ts +5 -0
  33. package/dist/computeValueDiff-CNT84rwK.d.cts +5 -0
  34. package/dist/core/index.cjs +231 -0
  35. package/dist/core/index.cjs.map +1 -0
  36. package/dist/core/index.d.cts +314 -0
  37. package/dist/core/index.d.ts +314 -0
  38. package/dist/core/index.js +29 -0
  39. package/dist/core/index.js.map +1 -0
  40. package/dist/formula/index.d.cts +1 -1
  41. package/dist/formula/index.d.ts +1 -1
  42. package/dist/index.cjs +182 -44
  43. package/dist/index.d.cts +13 -8
  44. package/dist/index.d.ts +13 -8
  45. package/dist/index.js +7 -5
  46. package/dist/{json-patch.types-CYt9TCu3.d.ts → json-patch.types-DTUHS9SV.d.ts} +1 -1
  47. package/dist/{json-patch.types-DUcWbQRY.d.cts → json-patch.types-eltVqnWC.d.cts} +1 -1
  48. package/dist/{json-string.store-CcZ197KO.d.cts → json-string.store-DKlkc1u_.d.cts} +1 -1
  49. package/dist/{json-string.store-DckDcMVN.d.ts → json-string.store-DMrHPJ3v.d.ts} +1 -1
  50. package/dist/json-value-patch.types-CjBpq5VF.d.cts +24 -0
  51. package/dist/json-value-patch.types-U2y_ugm1.d.ts +24 -0
  52. package/dist/lib/index.cjs +40 -39
  53. package/dist/lib/index.d.cts +6 -7
  54. package/dist/lib/index.d.ts +6 -7
  55. package/dist/lib/index.js +4 -3
  56. package/dist/mocks/index.cjs +1 -1
  57. package/dist/mocks/index.d.cts +2 -2
  58. package/dist/mocks/index.d.ts +2 -2
  59. package/dist/mocks/index.js +1 -1
  60. package/dist/model/index.cjs +125 -2
  61. package/dist/model/index.d.cts +596 -4
  62. package/dist/model/index.d.ts +596 -4
  63. package/dist/model/index.js +5 -2
  64. package/dist/plugins/index.cjs +1 -1
  65. package/dist/plugins/index.d.cts +25 -1
  66. package/dist/plugins/index.d.ts +25 -1
  67. package/dist/plugins/index.js +1 -1
  68. package/dist/{schema.types-CLHMJmkJ.d.cts → schema.types-ZX5fUW1X.d.cts} +6 -0
  69. package/dist/{schema.types-CLHMJmkJ.d.ts → schema.types-ZX5fUW1X.d.ts} +6 -0
  70. package/dist/types/index.cjs +5 -5
  71. package/dist/types/index.d.cts +8 -29
  72. package/dist/types/index.d.ts +8 -29
  73. package/dist/types/index.js +3 -3
  74. package/dist/{value-diff.types-BRoI_kGE.d.cts → types-C_GxaUve.d.cts} +4 -4
  75. package/dist/{value-diff.types-BRoI_kGE.d.ts → types-C_GxaUve.d.ts} +4 -4
  76. package/dist/types-Cnfj5nLO.d.ts +198 -0
  77. package/dist/types-DMzUCve0.d.cts +198 -0
  78. package/package.json +14 -1
  79. package/dist/chunk-B22UU3JK.cjs.map +0 -1
  80. package/dist/chunk-DJ4JPKI4.js.map +0 -1
  81. package/dist/chunk-GF3XXYOS.cjs.map +0 -1
  82. package/dist/chunk-H7W4QNMA.js +0 -3
  83. package/dist/chunk-KJCURW4D.js.map +0 -1
  84. package/dist/chunk-L5MLJEC7.js.map +0 -1
  85. package/dist/chunk-ODCH3PP2.cjs +0 -4
  86. package/dist/chunk-SBJFTOWW.js +0 -3
  87. package/dist/chunk-SBJFTOWW.js.map +0 -1
  88. package/dist/chunk-VX5C5YMF.cjs.map +0 -1
  89. package/dist/chunk-XAFOMEOK.cjs +0 -4
  90. package/dist/chunk-XAFOMEOK.cjs.map +0 -1
@@ -0,0 +1,314 @@
1
+ import { R as ReactivityAdapter, b as SchemaNode, N as NodeMetadata, d as Formula, P as Path, e as PathSegment, c as SchemaTree, f as SchemaPatch, J as JsonPatch, V as ValidatorFactoryFn, g as ValidatorRule, h as Validator, i as ValidationContext, D as Diagnostic, j as SchemaLike } from '../types-Cnfj5nLO.js';
2
+ export { A as AnnotationType, k as AnnotationsMap, n as DefaultValueType, l as DiagnosticSeverity, E as EMPTY_METADATA, F as FormulaValidationError, m as NodeType, S as SchemaValidationError, a as SchemaValidationErrorType } from '../types-Cnfj5nLO.js';
3
+ export { F as FIELD_NAME_ERROR_MESSAGE, i as isValidFieldName, a as validateFormulas, v as validateSchema } from '../FormulaValidator-DGGmwqDQ.js';
4
+ export { a as FieldChange, F as FieldChangeType } from '../types-C_GxaUve.js';
5
+ export { c as computeValueDiff } from '../computeValueDiff-CDwbNw8F.js';
6
+ import { i as JsonSchema, f as JsonObjectSchema } from '../schema.types-ZX5fUW1X.js';
7
+ import '@revisium/formula';
8
+
9
+ declare const noopAdapter: ReactivityAdapter;
10
+
11
+ declare const NULL_NODE: SchemaNode;
12
+
13
+ declare function createObjectNode(id: string, name: string, children?: readonly SchemaNode[], metadata?: NodeMetadata): SchemaNode;
14
+
15
+ declare function createArrayNode(id: string, name: string, items: SchemaNode, metadata?: NodeMetadata): SchemaNode;
16
+
17
+ interface StringNodeOptions {
18
+ readonly defaultValue?: string;
19
+ readonly foreignKey?: string;
20
+ readonly formula?: Formula;
21
+ readonly metadata?: NodeMetadata;
22
+ }
23
+ declare function createStringNode(id: string, name: string, options?: StringNodeOptions): SchemaNode;
24
+
25
+ interface NumberNodeOptions {
26
+ readonly defaultValue?: number;
27
+ readonly formula?: Formula;
28
+ readonly metadata?: NodeMetadata;
29
+ }
30
+ declare function createNumberNode(id: string, name: string, options?: NumberNodeOptions): SchemaNode;
31
+
32
+ interface BooleanNodeOptions {
33
+ readonly defaultValue?: boolean;
34
+ readonly formula?: Formula;
35
+ readonly metadata?: NodeMetadata;
36
+ }
37
+ declare function createBooleanNode(id: string, name: string, options?: BooleanNodeOptions): SchemaNode;
38
+
39
+ declare function createRefNode(id: string, name: string, ref: string, metadata?: NodeMetadata): SchemaNode;
40
+
41
+ declare const EMPTY_PATH: Path;
42
+ declare function createPath(segments: readonly PathSegment[]): Path;
43
+
44
+ declare class PropertySegment implements PathSegment {
45
+ private readonly name;
46
+ constructor(name: string);
47
+ isProperty(): boolean;
48
+ isItems(): boolean;
49
+ propertyName(): string;
50
+ equals(other: PathSegment): boolean;
51
+ }
52
+ declare class ItemsSegment implements PathSegment {
53
+ isProperty(): boolean;
54
+ isItems(): boolean;
55
+ propertyName(): string;
56
+ equals(other: PathSegment): boolean;
57
+ }
58
+
59
+ declare function jsonPointerToSegments(pointer: string): PathSegment[];
60
+ declare function jsonPointerToPath(pointer: string): Path;
61
+ declare function jsonPointerToSimplePath(pointer: string): string;
62
+
63
+ declare function createSchemaTree(root: SchemaNode): SchemaTree;
64
+
65
+ declare class PatchBuilder {
66
+ build(currentTree: SchemaTree, baseTree: SchemaTree): SchemaPatch[];
67
+ private syncReplacements;
68
+ }
69
+
70
+ type ChangeType = 'added' | 'removed' | 'moved' | 'modified';
71
+ interface AddedChange {
72
+ readonly type: 'added';
73
+ readonly baseNode: null;
74
+ readonly currentNode: SchemaNode;
75
+ }
76
+ interface RemovedChange {
77
+ readonly type: 'removed';
78
+ readonly baseNode: SchemaNode;
79
+ readonly currentNode: null;
80
+ }
81
+ interface MovedChange {
82
+ readonly type: 'moved';
83
+ readonly baseNode: SchemaNode;
84
+ readonly currentNode: SchemaNode;
85
+ }
86
+ interface ModifiedChange {
87
+ readonly type: 'modified';
88
+ readonly baseNode: SchemaNode;
89
+ readonly currentNode: SchemaNode;
90
+ }
91
+ type RawChange = AddedChange | RemovedChange | MovedChange | ModifiedChange;
92
+ interface CoalescedChanges {
93
+ readonly moved: readonly MovedChange[];
94
+ readonly added: readonly AddedChange[];
95
+ readonly removed: readonly RemovedChange[];
96
+ readonly modified: readonly ModifiedChange[];
97
+ }
98
+
99
+ declare class NodePathIndex {
100
+ private readonly _basePaths;
101
+ private readonly _replacements;
102
+ constructor(baseTree: SchemaTree);
103
+ hasBasePath(nodeId: string): boolean;
104
+ getBasePath(nodeId: string): Path | undefined;
105
+ trackReplacement(oldNodeId: string, newNodeId: string): void;
106
+ getReplacementNodeId(oldNodeId: string): string | undefined;
107
+ getOriginalNodeId(newNodeId: string): string | undefined;
108
+ isReplacement(nodeId: string): boolean;
109
+ get replacements(): ReadonlyMap<string, string>;
110
+ }
111
+
112
+ declare class SchemaDiff {
113
+ private _baseTree;
114
+ private readonly _currentTree;
115
+ private _index;
116
+ constructor(currentTree: SchemaTree);
117
+ get baseTree(): SchemaTree;
118
+ get currentTree(): SchemaTree;
119
+ get index(): NodePathIndex;
120
+ isDirty(): boolean;
121
+ collectChanges(): RawChange[];
122
+ coalesceChanges(changes?: readonly RawChange[]): CoalescedChanges;
123
+ trackReplacement(oldNodeId: string, newNodeId: string): void;
124
+ markAsSaved(): void;
125
+ }
126
+
127
+ declare class ChangeCollector {
128
+ private readonly baseTree;
129
+ private readonly currentTree;
130
+ private readonly index;
131
+ private readonly context;
132
+ constructor(baseTree: SchemaTree, currentTree: SchemaTree, index: NodePathIndex);
133
+ collect(): RawChange[];
134
+ private collectFromCurrentTree;
135
+ private collectRemovedNodes;
136
+ }
137
+ declare function collectChanges(baseTree: SchemaTree, currentTree: SchemaTree, index: NodePathIndex): RawChange[];
138
+
139
+ declare class ChangeCoalescer {
140
+ private readonly currentTree;
141
+ private readonly index;
142
+ constructor(currentTree: SchemaTree, index: NodePathIndex);
143
+ coalesce(changes: readonly RawChange[]): CoalescedChanges;
144
+ private getMovedPaths;
145
+ private isNestedChange;
146
+ private getChangePath;
147
+ private hasParentChange;
148
+ private isTypeChangeReplacement;
149
+ private isAffectedByMove;
150
+ }
151
+ declare function coalesceChanges(changes: readonly RawChange[], currentTree: SchemaTree, index: NodePathIndex): CoalescedChanges;
152
+
153
+ interface ComparatorContext {
154
+ currentTree: SchemaTree;
155
+ baseTree: SchemaTree;
156
+ }
157
+ declare function areNodesEqual(current: SchemaNode, base: SchemaNode, context: ComparatorContext): boolean;
158
+ declare function areNodesContentEqual(current: SchemaNode, base: SchemaNode, context: ComparatorContext): boolean;
159
+
160
+ declare class PatchGenerator {
161
+ private readonly currentTree;
162
+ private readonly baseTree;
163
+ private readonly serializer;
164
+ private readonly context;
165
+ constructor(currentTree: SchemaTree, baseTree: SchemaTree);
166
+ generate(coalesced: CoalescedChanges): JsonPatch[];
167
+ private collectMovedNodeIds;
168
+ private partitionAddPatches;
169
+ private generateMovePatches;
170
+ private generateModifyAfterMove;
171
+ private generateAddPatches;
172
+ private generateRemovePatches;
173
+ private generateReplacePatches;
174
+ private generateArrayReplacePatches;
175
+ private hasItemsChanged;
176
+ private isChildOfAny;
177
+ private hasChildIn;
178
+ private isActuallyModified;
179
+ private hasOnlyChildChanges;
180
+ private hasMetadataChanged;
181
+ private hasOnlyItemsChanges;
182
+ }
183
+
184
+ declare class PatchEnricher {
185
+ private readonly currentTree;
186
+ private readonly baseTree;
187
+ constructor(currentTree: SchemaTree, baseTree: SchemaTree);
188
+ enrich(patch: JsonPatch): SchemaPatch;
189
+ private enrichAddPatch;
190
+ private enrichRemovePatch;
191
+ private enrichMovePatch;
192
+ private enrichReplacePatch;
193
+ private computeAddMetadata;
194
+ private computeTypeChange;
195
+ private computeFormulaChange;
196
+ private getFormulaExpression;
197
+ private computeDefaultChange;
198
+ private computeDescriptionChange;
199
+ private computeDeprecatedChange;
200
+ private computeForeignKeyChange;
201
+ private getNodeType;
202
+ private getFieldNameFromPath;
203
+ private isRenameMove;
204
+ private getNodeAtPath;
205
+ }
206
+
207
+ declare class ValidatorRegistry {
208
+ private readonly validators;
209
+ private readonly rules;
210
+ register(type: string, factory: ValidatorFactoryFn): this;
211
+ addRule(rule: ValidatorRule): this;
212
+ get(type: string): Validator | undefined;
213
+ has(type: string): boolean;
214
+ getRules(): readonly ValidatorRule[];
215
+ getValidatorTypes(): string[];
216
+ }
217
+
218
+ declare class ValidatorResolver {
219
+ private readonly registry;
220
+ constructor(registry: ValidatorRegistry);
221
+ resolve(context: ValidationContext): Validator[];
222
+ }
223
+
224
+ declare class ValidationEngine {
225
+ private readonly resolver;
226
+ constructor(resolver: ValidatorResolver);
227
+ validate(context: ValidationContext): readonly Diagnostic[];
228
+ }
229
+
230
+ declare function createDefaultValidatorRegistry(): ValidatorRegistry;
231
+ declare function createValidationEngine(registry?: ValidatorRegistry): ValidationEngine;
232
+
233
+ declare class RequiredValidator implements Validator {
234
+ readonly type = "required";
235
+ validate(context: ValidationContext): Diagnostic | null;
236
+ }
237
+
238
+ declare class PatternValidator implements Validator {
239
+ readonly type = "pattern";
240
+ validate(context: ValidationContext): Diagnostic | null;
241
+ }
242
+
243
+ declare class MinLengthValidator implements Validator {
244
+ readonly type = "minLength";
245
+ validate(context: ValidationContext): Diagnostic | null;
246
+ }
247
+
248
+ declare class MaxLengthValidator implements Validator {
249
+ readonly type = "maxLength";
250
+ validate(context: ValidationContext): Diagnostic | null;
251
+ }
252
+
253
+ declare class MinimumValidator implements Validator {
254
+ readonly type = "minimum";
255
+ validate(context: ValidationContext): Diagnostic | null;
256
+ }
257
+
258
+ declare class MaximumValidator implements Validator {
259
+ readonly type = "maximum";
260
+ validate(context: ValidationContext): Diagnostic | null;
261
+ }
262
+
263
+ declare class EnumValidator implements Validator {
264
+ readonly type = "enum";
265
+ validate(context: ValidationContext): Diagnostic | null;
266
+ }
267
+
268
+ declare class ForeignKeyValidator implements Validator {
269
+ readonly type = "foreignKey";
270
+ validate(context: ValidationContext): Diagnostic | null;
271
+ }
272
+
273
+ declare class SchemaPropertyRule implements ValidatorRule {
274
+ readonly validatorType: string;
275
+ private readonly propertyName;
276
+ constructor(validatorType: string, propertyName: keyof SchemaLike);
277
+ shouldApply(context: ValidationContext): boolean;
278
+ }
279
+ declare class SchemaTruthyRule implements ValidatorRule {
280
+ readonly validatorType: string;
281
+ private readonly propertyName;
282
+ constructor(validatorType: string, propertyName: keyof SchemaLike);
283
+ shouldApply(context: ValidationContext): boolean;
284
+ }
285
+ declare class CompositeRule implements ValidatorRule {
286
+ readonly validatorType: string;
287
+ private readonly conditions;
288
+ constructor(validatorType: string, conditions: Array<(context: ValidationContext) => boolean>);
289
+ shouldApply(context: ValidationContext): boolean;
290
+ }
291
+
292
+ interface SerializeOptions {
293
+ excludeNodeIds?: Set<string>;
294
+ }
295
+
296
+ declare class SchemaSerializer {
297
+ private tree;
298
+ private excludeNodeIds;
299
+ serializeNode(node: SchemaNode, tree: SchemaTree, options?: SerializeOptions): JsonSchema;
300
+ serializeTree(tree: SchemaTree): JsonObjectSchema;
301
+ private serialize;
302
+ private serializeObject;
303
+ private serializeArray;
304
+ private serializeRef;
305
+ private serializePrimitive;
306
+ private serializeString;
307
+ private serializeNumber;
308
+ private serializeBoolean;
309
+ private serializeFormula;
310
+ private addMetadata;
311
+ private shouldExclude;
312
+ }
313
+
314
+ export { type AddedChange, ChangeCoalescer, ChangeCollector, type ChangeType, type CoalescedChanges, type ComparatorContext, CompositeRule, Diagnostic, EMPTY_PATH, EnumValidator, ForeignKeyValidator, Formula, ItemsSegment, JsonPatch, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, type ModifiedChange, type MovedChange, NULL_NODE, NodeMetadata, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, Path, PathSegment, PatternValidator, PropertySegment, type RawChange, ReactivityAdapter, type RemovedChange, RequiredValidator, SchemaDiff, SchemaLike, SchemaNode, SchemaPatch, SchemaPropertyRule, SchemaSerializer, SchemaTree, SchemaTruthyRule, type SerializeOptions, ValidationContext, ValidationEngine, Validator, ValidatorFactoryFn, ValidatorRegistry, ValidatorResolver, ValidatorRule, areNodesContentEqual, areNodesEqual, coalesceChanges, collectChanges, createArrayNode, createBooleanNode, createDefaultValidatorRegistry, createNumberNode, createObjectNode, createPath, createRefNode, createSchemaTree, createStringNode, createValidationEngine, jsonPointerToPath, jsonPointerToSegments, jsonPointerToSimplePath, noopAdapter };
@@ -0,0 +1,29 @@
1
+ export { ChangeCoalescer, ChangeCollector, CompositeRule, EMPTY_METADATA, EMPTY_PATH, EnumValidator, FIELD_NAME_ERROR_MESSAGE, ForeignKeyValidator, ItemsSegment, MaxLengthValidator, MaximumValidator, MinLengthValidator, MinimumValidator, NULL_NODE, NodePathIndex, PatchBuilder, PatchEnricher, PatchGenerator, PatternValidator, PropertySegment, RequiredValidator, SchemaDiff, SchemaPropertyRule, SchemaSerializer, SchemaTruthyRule, ValidationEngine, ValidatorRegistry, ValidatorResolver, areNodesContentEqual, areNodesEqual, coalesceChanges, collectChanges, createArrayNode, createBooleanNode, createDefaultValidatorRegistry, createNumberNode, createObjectNode, createPath, createRefNode, createSchemaTree, createStringNode, createValidationEngine, isValidFieldName, jsonPointerToPath, jsonPointerToSegments, jsonPointerToSimplePath, validateFormulas, validateSchema } from '../chunk-S7GEDTSL.js';
2
+ import '../chunk-3IKI64T2.js';
3
+ export { computeValueDiff } from '../chunk-YFWOURZL.js';
4
+ export { FieldChangeType } from '../chunk-ZBPUTF3Q.js';
5
+ import '../chunk-CYTPQYVM.js';
6
+
7
+ // src/core/reactivity/noop-adapter.ts
8
+ var NoopReactivityAdapter = class {
9
+ makeObservable(_target, _annotations) {
10
+ }
11
+ observableArray() {
12
+ return [];
13
+ }
14
+ observableMap() {
15
+ return /* @__PURE__ */ new Map();
16
+ }
17
+ reaction(_expression, _effect) {
18
+ return () => {
19
+ };
20
+ }
21
+ runInAction(fn) {
22
+ return fn();
23
+ }
24
+ };
25
+ var noopAdapter = new NoopReactivityAdapter();
26
+
27
+ export { noopAdapter };
28
+ //# sourceMappingURL=index.js.map
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/reactivity/noop-adapter.ts"],"names":[],"mappings":";;;;;;;AAGA,IAAM,wBAAN,MAAyD;AAAA,EACvD,cAAA,CACE,SACA,YAAA,EACM;AAAA,EAER;AAAA,EAEA,eAAA,GAA0B;AACxB,IAAA,OAAO,EAAC;AAAA,EACV;AAAA,EAEA,aAAA,GAAiC;AAC/B,IAAA,2BAAW,GAAA,EAAI;AAAA,EACjB;AAAA,EAEA,QAAA,CACE,aACA,OAAA,EACY;AACZ,IAAA,OAAO,MAAM;AAAA,IAAC,CAAA;AAAA,EAChB;AAAA,EAEA,YAAe,EAAA,EAAgB;AAC7B,IAAA,OAAO,EAAA,EAAG;AAAA,EACZ;AACF,CAAA;AAEO,IAAM,WAAA,GAAiC,IAAI,qBAAA","file":"index.js","sourcesContent":["import type { AnnotationsMap } from '../types/index.js';\nimport type { ReactivityAdapter } from './types.js';\n\nclass NoopReactivityAdapter implements ReactivityAdapter {\n makeObservable<T extends object>(\n _target: T,\n _annotations: AnnotationsMap<T>,\n ): void {\n // noop\n }\n\n observableArray<T>(): T[] {\n return [];\n }\n\n observableMap<K, V>(): Map<K, V> {\n return new Map();\n }\n\n reaction<T>(\n _expression: () => T,\n _effect: (value: T) => void,\n ): () => void {\n return () => {};\n }\n\n runInAction<T>(fn: () => T): T {\n return fn();\n }\n}\n\nexport const noopAdapter: ReactivityAdapter = new NoopReactivityAdapter();\n"]}
@@ -1,4 +1,4 @@
1
- import { i as JsonSchema } from '../schema.types-CLHMJmkJ.cjs';
1
+ import { i as JsonSchema } from '../schema.types-ZX5fUW1X.cjs';
2
2
  export { formulaSpec } from '@revisium/formula/spec';
3
3
 
4
4
  interface XFormulaInput {
@@ -1,4 +1,4 @@
1
- import { i as JsonSchema } from '../schema.types-CLHMJmkJ.js';
1
+ import { i as JsonSchema } from '../schema.types-ZX5fUW1X.js';
2
2
  export { formulaSpec } from '@revisium/formula/spec';
3
3
 
4
4
  interface XFormulaInput {