@lcem/unified-experience-model
Advanced tools
Comparing version 0.6.13 to 0.6.15
@@ -6,4 +6,7 @@ # Change Log | ||
## [0.6.13](https://github.com/salesforce/low-code-experience-model/compare/v0.6.12...v0.6.13) (2021-06-12) | ||
## [0.6.15](https://github.com/salesforce/low-code-experience-model/compare/v0.6.13...v0.6.15) (2021-06-23) | ||
**Note:** Version bump only for package @lcem/unified-experience-model | ||
### Bug Fixes | ||
* Update UEM with metaschemas for relevant json files ([#40](https://github.com/salesforce/low-code-experience-model/issues/40)) ([7eee741](https://github.com/salesforce/low-code-experience-model/commit/7eee74142561289a75f26fb6ccd8152bf09509e4)) |
@@ -1,13 +0,68 @@ | ||
export declare type Expression = string; | ||
export declare function extract(data: any, expression: Expression): any; | ||
export declare function isExpression(value: any): boolean; | ||
export declare type JsonValue = null | undefined | string | boolean | number | JsonValue[] | { | ||
[key: string]: JsonValue; | ||
}; | ||
export declare type JsonSchema = boolean | Record<string, JsonValue>; | ||
export type JSONSchemaMetaSchema = Schema | boolean; | ||
export interface Schema { | ||
$id?: string; | ||
$schema?: string; | ||
$ref?: string; | ||
title?: string; | ||
description?: string; | ||
default?: any; | ||
examples?: any[]; | ||
multipleOf?: number; | ||
maximum?: number; | ||
exclusiveMaximum?: number; | ||
minimum?: number; | ||
exclusiveMinimum?: number; | ||
maxLength?: number; | ||
minLength?: number; | ||
pattern?: string; | ||
additionalItems?: JSONSchemaMetaSchema; | ||
items?: JSONSchemaMetaSchema | JSONSchemaMetaSchema[]; | ||
maxItems?: number; | ||
minItems?: number; | ||
uniqueItems?: boolean; | ||
contains?: JSONSchemaMetaSchema; | ||
maxProperties?: number; | ||
minProperties?: number; | ||
required?: string[]; | ||
additionalProperties?: JSONSchemaMetaSchema; | ||
definitions?: { | ||
[k: string]: JSONSchemaMetaSchema; | ||
}; | ||
properties?: { | ||
[k: string]: JSONSchemaMetaSchema; | ||
}; | ||
patternProperties?: { | ||
[k: string]: JSONSchemaMetaSchema; | ||
}; | ||
dependencies?: { | ||
[k: string]: JSONSchemaMetaSchema | string[]; | ||
}; | ||
propertyNames?: JSONSchemaMetaSchema; | ||
const?: any; | ||
enum?: [any, ...any[]]; | ||
type?: | ||
| ('array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string') | ||
| ('array' | 'boolean' | 'integer' | 'null' | 'number' | 'object' | 'string')[]; | ||
format?: string; | ||
allOf?: JSONSchemaMetaSchema[]; | ||
anyOf?: JSONSchemaMetaSchema[]; | ||
oneOf?: JSONSchemaMetaSchema[]; | ||
not?: JSONSchemaMetaSchema; | ||
[k: string]: any; | ||
} | ||
export type JsonValue = | ||
| null | ||
| undefined | ||
| string | ||
| boolean | ||
| number | ||
| JsonValue[] | ||
| { [key: string]: JsonValue }; | ||
export type JsonSchema = boolean | Record<string, JsonValue>; | ||
export interface DataProvider { | ||
type: string; | ||
properties: Record<string, JsonValue | Expression>; | ||
properties: Record<string, JsonValue>; | ||
} | ||
export interface Region { | ||
name?: string; | ||
components: Component[]; | ||
@@ -17,3 +72,7 @@ } | ||
definition: string; | ||
properties?: Record<string, JsonValue | Expression>; | ||
label?: string; | ||
description?: string; | ||
name?: string; | ||
schema?: Schema; | ||
properties?: Record<string, JsonValue>; | ||
dataProviders?: Record<string, DataProvider>; | ||
@@ -23,10 +82,18 @@ regions?: Record<string, Region>; | ||
} | ||
export declare type View = Component; | ||
export interface ComponentDefinition { | ||
properties: Record<string, JsonSchema>; | ||
slots: string[]; | ||
dataproviders: Record<string, any>; | ||
export type View = Component; | ||
export interface ComponentEvent { | ||
name: string; | ||
properties: Record<string, any>; | ||
} | ||
export interface Slot { | ||
[index: string]: any; | ||
} | ||
export interface ComponentShape { | ||
properties: Record<string, Schema>; | ||
events?: Record<string, ComponentEvent>; | ||
slots?: Record<string, Slot>; | ||
methods?: any; | ||
} | ||
export interface ComponentDefinitionProvider { | ||
getComponent(definition: string): Promise<ComponentDefinition | undefined>; | ||
getComponent(definition: string): Promise<ComponentShape | undefined>; | ||
} | ||
@@ -40,4 +107,4 @@ export interface DataProviderInstance { | ||
export interface DataProviderDefinition { | ||
properties: Record<string, JsonSchema>; | ||
output: Record<string, JsonSchema>; | ||
properties: Record<string, JsonValue>; | ||
output: Record<string, JsonValue>; | ||
} | ||
@@ -48,4 +115,7 @@ export interface DataProviderDefinitionProvider { | ||
export interface SchemaProvider { | ||
getSchema(definition: string): Promise<JsonSchema | undefined>; | ||
getSchema(definition: string): Promise<JsonValue | undefined>; | ||
} | ||
export declare type Expression = string; | ||
export declare function extract(data: any, expression: Expression): any; | ||
export declare function isExpression(value: any): boolean; | ||
export interface ComponentReducer<ComponentRepresentation, RegionRepresentation, PropertyRepresentation, DataProviderRepresentation> { | ||
@@ -52,0 +122,0 @@ reduce(context: Context, definition: string, properties: Record<string, PropertyRepresentation>, regions: Record<string, RegionRepresentation>, dataProviders: Record<string, DataProviderRepresentation>): Promise<ComponentRepresentation>; |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.6.13", | ||
"version": "0.6.15", | ||
"main": "dist/index.js", | ||
@@ -26,3 +26,6 @@ "types": "dist/index.d.ts", | ||
"test:coverage": "jest --coverage" | ||
}, | ||
"dependencies": { | ||
"@lcem/meta-schemas": "0.6.15" | ||
} | ||
} |
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
18480
478
1
+ Added@lcem/meta-schemas@0.6.15
+ Added@lcem/meta-schemas@0.6.15(transitive)