@json-layout/core
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "@json-layout/core", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Compilation and state management utilities for JSON Layout.", | ||
@@ -62,3 +62,3 @@ "type": "module", | ||
"dependencies": { | ||
"@json-layout/vocabulary": "^1.0.0", | ||
"@json-layout/vocabulary": "~1.0.0", | ||
"ajv": "^8.12.0", | ||
@@ -65,0 +65,0 @@ "ajv-errors": "^3.0.0", |
@@ -274,2 +274,3 @@ // eslint-disable-next-line import/no-named-default | ||
activatedItems: this.activatedItems, | ||
autoActivatedItems: {}, | ||
autofocusTarget: this._autofocusTarget, | ||
@@ -307,2 +308,5 @@ currentInput: this._currentInput, | ||
this.files = shallowProduceArray(this.files, createStateTreeContext.files) | ||
for (const activatedKey in createStateTreeContext.autoActivatedItems) { | ||
this.activatedItems = produce(this.activatedItems, draft => { draft[activatedKey] = createStateTreeContext.autoActivatedItems[activatedKey] }) | ||
} | ||
} | ||
@@ -309,0 +313,0 @@ |
@@ -427,3 +427,3 @@ import { isSwitchStruct, childIsCompObject, isCompositeLayout, isFocusableLayout, isItemsLayout, isGetItemsExpression, isGetItemsFetch, isListLayout } from '@json-layout/vocabulary' | ||
if (activeChildTreeIndex !== -1) { | ||
if (context.initial) context.activatedItems[fullKey] = activeChildTreeIndex | ||
if (!(fullKey in context.activatedItems)) context.autoActivatedItems[fullKey] = activeChildTreeIndex | ||
context.errors = context.errors?.filter(error => { | ||
@@ -430,0 +430,0 @@ const originalError = error.params?.errors?.[0] ?? error |
@@ -68,2 +68,3 @@ import { type ErrorObject } from 'ajv/dist/2019.js' | ||
activatedItems: Record<string, number> | ||
autoActivatedItems: Record<string, number> | ||
autofocusTarget: string | null | ||
@@ -70,0 +71,0 @@ currentInput: string | null |
@@ -37,2 +37,3 @@ import { type ErrorObject } from 'ajv/dist/2019.js'; | ||
activatedItems: Record<string, number>; | ||
autoActivatedItems: Record<string, number>; | ||
autofocusTarget: string | null; | ||
@@ -39,0 +40,0 @@ currentInput: string | null; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178434
4000
+ Added@json-layout/vocabulary@1.0.0(transitive)
- Removed@json-layout/vocabulary@1.3.0(transitive)