@json-layout/core 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-layout/core",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "description": "Compilation and state management utilities for JSON Layout.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "homepage": "https://github.com/json-layout/json-layout#readme",
61
61
  "dependencies": {
62
- "@json-layout/vocabulary": "~1.0.0",
62
+ "@json-layout/vocabulary": "~1.1.0",
63
63
  "ajv": "^8.12.0",
64
64
  "ajv-errors": "^3.0.0",
65
65
  "ajv-formats": "^2.1.1",
@@ -375,7 +375,7 @@ export class StatefulLayout {
375
375
 
376
376
  const transformedData = node.layout.transformData && this.evalNodeExpression(node, node.layout.transformData, data)
377
377
 
378
- if (node.layout.comp === 'file-input') {
378
+ if (this.compiledLayout.components[node.layout.comp]?.isFileInput) {
379
379
  if (transformedData) {
380
380
  // @ts-ignore
381
381
  data.toJSON = () => transformedData