@json-layout/vocabulary
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"name": "@json-layout/vocabulary", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"description": "Main JSON Layout vocabulary as JSON schemas and Typescript types. Also contains some small utility functions to validate and normalize annotations.", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -297,6 +297,10 @@ import { validateLayoutKeyword, isComponentName, isPartialCompObject, isPartialChildren, isPartialSwitch, isPartialGetItemsExpr, isPartialGetItemsObj, isPartialSlotMarkdown, isPartialGetItemsFetch } from './layout-keyword/index.js' | ||
if (partial.defaultData) partial.defaultData = normalizeExpression(partial.defaultData) | ||
if (partial.constData) partial.constData = normalizeExpression(partial.constData) | ||
if (partial.transformData) partial.transformData = normalizeExpression(partial.transformData) | ||
if (!partial.defaultData && schemaFragment.type === 'string' && schemaPath.split('#').pop() === '') { | ||
partial.defaultData = '""' | ||
} | ||
if (partial.defaultData !== undefined) partial.defaultData = normalizeExpression(partial.defaultData) | ||
if (partial.constData !== undefined) partial.constData = normalizeExpression(partial.constData) | ||
if (partial.transformData !== undefined) partial.transformData = normalizeExpression(partial.transformData) | ||
if (partial.getItems && isPartialGetItemsExpr(partial.getItems)) partial.getItems = normalizeExpression(partial.getItems) | ||
@@ -303,0 +307,0 @@ if (partial.getItems && isPartialGetItemsObj(partial.getItems)) { |
@@ -36,2 +36,3 @@ import validate from './validate.js' | ||
* @typedef {import('./types.js').Combobox} Combobox | ||
* @typedef {import('./types.js').Markdown} Markdown | ||
* @typedef {import('./types.js').FileInput} FileInput | ||
@@ -38,0 +39,0 @@ * @typedef {import('./types.js').Cols} Cols |
@@ -60,2 +60,3 @@ export function isSwitchStruct(layout: NormalizedLayout): layout is import("./types.js").SwitchStruct; | ||
* @typedef {import('./types.js').Combobox} Combobox | ||
* @typedef {import('./types.js').Markdown} Markdown | ||
* @typedef {import('./types.js').FileInput} FileInput | ||
@@ -102,2 +103,3 @@ * @typedef {import('./types.js').Cols} Cols | ||
export type Combobox = import('./types.js').Combobox; | ||
export type Markdown = import('./types.js').Markdown; | ||
export type FileInput = import('./types.js').FileInput; | ||
@@ -104,0 +106,0 @@ export type Cols = import('./types.js').Cols; |
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
399215
4953