@lcem/declarative-type
Advanced tools
Comparing version 0.10.0 to 0.10.1
@@ -0,1 +1,3 @@ | ||
/// <reference types="node" /> | ||
import Ajv from 'ajv/dist/2019'; | ||
@@ -101,2 +103,20 @@ import { JSONType } from 'ajv/dist/2019'; | ||
} | ||
export interface View2 { | ||
definition: string; | ||
attributes?: Record<string, JsonValue>; | ||
children?: View2[]; | ||
} | ||
export type PropertyRenderers = Record<string, View2>; | ||
export interface PropertySheetConfig { | ||
propertyRenderers: PropertyRenderers; | ||
view: View2; | ||
} | ||
export interface DesignConfig { | ||
propertySheet: PropertySheetConfig; | ||
inlineEditor?: View2; | ||
} | ||
export interface TypeBundle { | ||
schema: Json; | ||
design?: DesignConfig; | ||
} | ||
export declare function getDefaultValue(schema: JsonSchema, resolver?: ReferenceResolver): Promise<JsonValue | undefined>; | ||
@@ -106,2 +126,3 @@ export interface ReferenceResolver { | ||
} | ||
export declare type TypeProvider = (id: string) => Promise<TypeBundle>; | ||
export interface Keyword { | ||
@@ -164,3 +185,3 @@ name: string; | ||
} | ||
export declare function getValidator(schema: JsonSchema, scope: string, initValue?: JsonValue, referenceMap?: DeclarativeTypeMap, expectedCustomKeywords?: string[]): Promise<ValidatorResult | null>; | ||
export declare function getValidator(schema: JsonSchema, scope: string, initValue?: JsonValue, referenceMap?: DeclarativeTypeMap, expectedCustomKeywords?: string[], typeProvider?: TypeProvider): Promise<ValidatorResult | null>; | ||
export declare function getMin(schema?: JsonSchema): number | undefined; | ||
@@ -167,0 +188,0 @@ export declare function getMax(schema?: JsonSchema): number | undefined; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.10.0", | ||
"version": "0.10.1", | ||
"type": "module", | ||
@@ -36,3 +36,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@lcem/meta-schemas": "0.10.0", | ||
"@lcem/meta-schemas": "0.10.1", | ||
"ajv": "^8.6.0", | ||
@@ -39,0 +39,0 @@ "ajv-errors": "^3.0.0", |
Sorry, the diff of this file is too big to display
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
365222
9759
+ Added@lcem/meta-schemas@0.10.1(transitive)
- Removed@lcem/meta-schemas@0.10.0(transitive)
Updated@lcem/meta-schemas@0.10.1