@bfwk/property-editor
Advanced tools
Comparing version 0.6.34 to 0.6.35
@@ -6,10 +6,13 @@ # Change Log | ||
## [0.6.34](https://github.com/salesforce/builder-framework/compare/v0.6.33...v0.6.34) (2021-06-25) | ||
## [0.6.35](https://github.com/salesforce/builder-framework/compare/v0.6.34...v0.6.35) (2021-06-25) | ||
**Note:** Version bump only for package @bfwk/property-editor | ||
### Bug Fixes | ||
* errors of property sheet state @W-9481901 ([#114](https://github.com/salesforce/builder-framework/issues/114)) ([462be13](https://github.com/salesforce/builder-framework/commit/462be1310ff8b2fd58aec2b83e6a17c2408121f9)) | ||
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) | ||
@@ -16,0 +19,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { Json } from '@lcem/declarative-type-validator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -43,3 +43,3 @@ import { MayHaveDependentValue, ParameterizedComponent } from './may-have-dependent-value'; | ||
getValidity(): Validity | undefined; | ||
hasExpression<T>(value?: T): boolean; | ||
hasExpression(value?: T | null): boolean; | ||
protected publishValueAndValidity(value: T | null, validity: Validity, builderSpecificValueInfo?: BuilderSpecificValueInfo): Promise<void>; | ||
@@ -46,0 +46,0 @@ setState({ value, error, }: PropertyEditorState<T>): Promise<void>; |
import { DesignTimeComponentPropertyInfoService } from '@bfwk/data-service'; | ||
import { Json } from '@lcem/declarative-type-validator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { PropertyValidationService, Validity } from './property-editor'; | ||
@@ -4,0 +4,0 @@ export declare class ComponentPropertyEditorService implements PropertyValidationService { |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { ValueMayHaveChangedCallback } from './base-property-editor'; | ||
@@ -4,0 +4,0 @@ import { MetadataDrivenPropertyEditor, ValueValidationCallback } from './metadata-driven-property-editor'; |
@@ -1,4 +0,4 @@ | ||
import { Json } from '@lcem/declarative-type-validator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { View } from '@lcem/unified-experience-model'; | ||
import { DeclarativeTypeMap } from '@lcem/canonical-ui-metadata-schema'; | ||
import { DeclarativeTypeMap } from '@lcem/meta-schemas'; | ||
export declare function generateDefaultViewBySchema(schema: Json, referenceMap?: DeclarativeTypeMap): View; |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { MetadataDrivenPropertyEditor, ValueValidationCallback } from './metadata-driven-property-editor'; | ||
@@ -4,0 +4,0 @@ import { ValueMayHaveChangedCallback } from './base-property-editor'; |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Validator, Json } from '@lcem/declarative-type-validator'; | ||
import { Validator, Json } from '@lcem/declarative-type'; | ||
import { PropertyEditor, PropertySchema, Validity } from './property-editor'; | ||
@@ -4,0 +4,0 @@ import { BasePropertySheetItemVisitor } from './base-property-sheet-item-visitor'; |
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { Json, Validator } from '@lcem/declarative-type-validator'; | ||
import { Json, Validator } from '@lcem/declarative-type'; | ||
import { PropertyEditorConfig, PropertyEditorInstanceData } from './property-editor-config'; | ||
@@ -32,3 +32,3 @@ import { ValueValidationCallback } from './metadata-driven-property-editor'; | ||
message: string; | ||
dataPath: string; | ||
instancePath: string; | ||
} | ||
@@ -43,2 +43,3 @@ export interface Validity { | ||
error?: string; | ||
errors?: ErrorMessage[]; | ||
} | ||
@@ -45,0 +46,0 @@ export declare type BuilderSpecificValueInfo = any; |
@@ -1,2 +0,2 @@ | ||
import { DeclarativeType, DeclarativeTypeMap } from '@lcem/canonical-ui-metadata-schema'; | ||
import { DeclarativeType, DeclarativeTypeMap } from '@lcem/meta-schemas'; | ||
import { DesignTimeEventInfo } from '@bfwk/data-service'; | ||
@@ -3,0 +3,0 @@ import { ClassConstructor, UiComponentName } from './property-editor-config'; |
@@ -1,5 +0,4 @@ | ||
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Component, ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
export declare class AccordionResolver implements ComponentResolver<LWCComponentInstance> { | ||
resolve({ definition, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve({ definition, }: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { AuraComponentInfo } from '../../aura-component-info'; | ||
import { BasePropertySheetItemVisitor } from '../../base-property-sheet-item-visitor'; | ||
import { Component } from '@lcem/unified-experience-model'; | ||
export declare type CreateAuraInfoComponent = () => AuraComponentInfo; | ||
@@ -10,3 +10,3 @@ export declare class AuraInfoComponentResolver implements ComponentResolver<LWCComponentInstance> { | ||
constructor(createAuraInfoComponent: CreateAuraInfoComponent, visitor: BasePropertySheetItemVisitor); | ||
resolve({ definition, properties, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve({ definition, properties, }: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Json } from '@lcem/declarative-type-validator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -10,2 +9,3 @@ import { PropertySchema } from '../../property-editor'; | ||
import { DependencyMapBuilder } from '../../dependent-value-change-cascade'; | ||
import { Component } from '@lcem/unified-experience-model'; | ||
export declare type CreateAuraPropertyEditor = (property: PropertySchema) => AuraComponentPropertyEditor<any>; | ||
@@ -21,3 +21,3 @@ export declare class AuraPropertyEditorResolver implements ComponentResolver<LWCComponentInstance> { | ||
constructor(create: CreateAuraPropertyEditor, schema: Json, properties: Properties | undefined, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState); | ||
resolve({ properties, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve({ properties, }: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { DeclarativeTypeMap, Renderers, ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Json, ValidatorFormatExtension } from '@lcem/declarative-type-validator'; | ||
import { DeclarativeTypeMap, Renderers, Component } from '@lcem/meta-schemas'; | ||
import { Json, ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
@@ -15,3 +15,3 @@ import { Properties, PropertyState } from '../property-sheet'; | ||
export declare type PropertyEditorConfigInstanceProvider = (key: string) => PropertyEditorConfigInstance | undefined; | ||
export declare type PropertyValueValidityGetter = (property: PropertySchema, initialState: PropertyState, viewMetadata?: ViewMetadataSchema) => { | ||
export declare type PropertyValueValidityGetter = (property: PropertySchema, initialState: PropertyState, viewMetadata?: Component) => { | ||
propertyValue: any | undefined; | ||
@@ -25,5 +25,5 @@ propertyValidity: Validity | undefined; | ||
constructor(schema: Json, properties: Properties | undefined, propertyEditorMap: PropertyEditorMap, instrumentationService: InstrumentationService, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState, basePropertySheetItemVisitor: BasePropertySheetItemVisitor, validationCallback: ValueValidationCallback<any>, valueChangeCallback: ValueMayHaveChangedCallback<any>, errorMessages: ErrorMessageMap, renderers: Renderers, validatorFormatExtensions: ValidatorFormatExtension[], getPropertyValueValidity?: PropertyValueValidityGetter, referenceMap?: DeclarativeTypeMap); | ||
resolve(component: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve(component: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
getPropertyEditors(): PropertyEditor<any>[]; | ||
getInfoComponents(): AuraComponentInfo[]; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { DeclarativeType, DeclarativeTypeMap, ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Json, Validator, ValidatorFormatExtension } from '@lcem/declarative-type-validator'; | ||
import { DeclarativeType, DeclarativeTypeMap, Component } from '@lcem/meta-schemas'; | ||
import { Json, Validator, ValidatorFormatExtension } from '@lcem/declarative-type'; | ||
import { InstrumentationService } from '@bfwk/instrumentation'; | ||
import { PropertyEditor, PropertySchema } from '../property-editor'; | ||
import { Properties, PropertySheet, PropertyState } from '../property-sheet'; | ||
import { Properties, PropertyState } from '../property-sheet'; | ||
import { BasePropertySheetItemVisitor } from '../base-property-sheet-item-visitor'; | ||
@@ -11,4 +11,4 @@ import { DependencyMapBuilder } from '../dependent-value-change-cascade'; | ||
import { PropertyEditorConfigInstanceProvider } from './property-sheet-control-resolver'; | ||
export declare type CreatePropertyEditor = (viewMetadata: ViewMetadataSchema, peConfig: PropertyEditorConfig, validator: Validator, schema: Json, property: PropertySchema, data: PropertyEditorInstanceData) => PropertyEditor<any>; | ||
export declare type CreatePropertySheetEditor = (name: string, label: string, type: DeclarativeType) => PropertySheet; | ||
export declare type CreatePropertyEditor = (viewMetadata: Component, peConfig: PropertyEditorConfig, validator: Validator, schema: Json, property: PropertySchema, data: PropertyEditorInstanceData) => PropertyEditor<any>; | ||
export declare type CreatePropertySheetEditor = (viewMetadata: Component, property: PropertySchema, data: PropertyEditorInstanceData, type: DeclarativeType) => PropertyEditor<any>; | ||
export declare class PropertyTypeBasedResolver implements ComponentResolver<LWCComponentInstance> { | ||
@@ -28,3 +28,3 @@ private readonly usePicklistForEnum; | ||
constructor(createPropertyEditor: CreatePropertyEditor, schema: Json, properties: Properties | undefined, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, providesPropertyEditorConfigInstance: PropertyEditorConfigInstanceProvider, validationFormatExtensions: ValidatorFormatExtension[], initialState: PropertyState, createPropertySheetEditor: CreatePropertySheetEditor, referenceMap?: DeclarativeTypeMap, usePicklistForEnum?: boolean); | ||
resolve(viewMetadata: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve(viewMetadata: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
private getPropertyEditorConfigByType; | ||
@@ -31,0 +31,0 @@ private createPropertyEditorComponent; |
@@ -1,4 +0,3 @@ | ||
import { Json } from '@lcem/declarative-type-validator'; | ||
import { Json } from '@lcem/declarative-type'; | ||
import { DataProviderInstance, JsonValue } from '@lcem/unified-experience-model'; | ||
export declare function isSchemaDataProvider(dataProvider: DataProviderInstance): dataProvider is SchemaDataProvider; | ||
export declare class SchemaDataProvider implements DataProviderInstance { | ||
@@ -10,1 +9,2 @@ readonly scope: string; | ||
} | ||
export declare function isSchemaDataProvider(dataProvider: DataProviderInstance): dataProvider is SchemaDataProvider; |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Component } from '@lcem/meta-schemas'; | ||
export declare class TabsetResolver implements ComponentResolver<LWCComponentInstance> { | ||
resolve({ definition, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve({ definition, }: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
} |
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator'; | ||
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema'; | ||
import { Component } from '@lcem/meta-schemas'; | ||
export declare class VerticalLayoutResolver implements ComponentResolver<LWCComponentInstance> { | ||
resolve({ definition, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null; | ||
resolve({ definition, }: Component): Promise<ComponentDefinition<LWCComponentInstance> | null>; | ||
} |
@@ -19,6 +19,6 @@ import { BasePropertySheet } from './base-property-sheet'; | ||
export declare class StatefulPropertySheet extends BasePropertySheet { | ||
private state; | ||
private readonly stateKeeper; | ||
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publishEvent: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, auraPropertyEditorWrapper: FullyQualifiedName, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any); | ||
protected getState(): any; | ||
protected getState(): import("./property-sheet-state").PropertySheetState; | ||
} | ||
export declare function createStatefulPropertySheetFactory(callback: (newValue: any) => void): PropertySheetFactory; |
@@ -1,2 +0,2 @@ | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { ValidationStep } from '../metadata-driven-property-editor'; | ||
@@ -3,0 +3,0 @@ export interface BooleanValidatorErrorMessageMap { |
@@ -1,3 +0,3 @@ | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { ValidationStep } from '../metadata-driven-property-editor'; | ||
export declare function getCompositeValidator(validator: Validator): ValidationStep; |
@@ -1,2 +0,2 @@ | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { ValidationStep } from '../metadata-driven-property-editor'; | ||
@@ -3,0 +3,0 @@ export interface IntegerValidatorErrorMessageMap { |
@@ -1,2 +0,2 @@ | ||
import { Validator } from '@lcem/declarative-type-validator'; | ||
import { Validator } from '@lcem/declarative-type'; | ||
import { ValidationStep } from '../metadata-driven-property-editor'; | ||
@@ -3,0 +3,0 @@ export interface StringValidatorErrorMessageMap { |
@@ -1,2 +0,2 @@ | ||
import { Json, ValidationResult, Validator } from '@lcem/declarative-type-validator'; | ||
import { Json, ValidationResult, Validator } from '@lcem/declarative-type'; | ||
import { Validity } from '../property-editor'; | ||
@@ -3,0 +3,0 @@ import { ValidationInstrumentation } from './validation-steps'; |
{ | ||
"name": "@bfwk/property-editor", | ||
"version": "0.6.34", | ||
"version": "0.6.35", | ||
"description": "LBF Property Editor", | ||
@@ -33,13 +33,13 @@ "type": "module", | ||
"dependencies": { | ||
"@bfwk/data-service": "0.6.34", | ||
"@bfwk/error-handler": "0.6.34", | ||
"@bfwk/expression-completion": "0.6.34", | ||
"@bfwk/instrumentation": "0.6.34", | ||
"@bfwk/pub-sub": "0.6.34", | ||
"@bfwk/store": "0.6.34", | ||
"@bfwk/utils": "0.6.34", | ||
"@lcem/canonical-ui-metadata-schema": "0.6.13", | ||
"@lcem/declarative-type-validator": "0.6.13", | ||
"@lcem/declarative-ui-generator": "0.6.13", | ||
"@lcem/unified-experience-model": "0.6.13", | ||
"@bfwk/data-service": "0.6.35", | ||
"@bfwk/error-handler": "0.6.35", | ||
"@bfwk/expression-completion": "0.6.35", | ||
"@bfwk/instrumentation": "0.6.35", | ||
"@bfwk/pub-sub": "0.6.35", | ||
"@bfwk/store": "0.6.35", | ||
"@bfwk/utils": "0.6.35", | ||
"@lcem/declarative-type": "0.6.15", | ||
"@lcem/declarative-ui-generator": "0.6.15", | ||
"@lcem/meta-schemas": "0.6.15", | ||
"@lcem/unified-experience-model": "0.6.15", | ||
"@lwc/wire-service": "1.17.6" | ||
@@ -46,0 +46,0 @@ }, |
Sorry, the diff of this file is too big to display
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
54
0
277514
5398
+ Added@lcem/meta-schemas@0.6.15
+ Added@bfwk/command@0.6.35(transitive)
+ Added@bfwk/data-service@0.6.35(transitive)
+ Added@bfwk/error-handler@0.6.35(transitive)
+ Added@bfwk/expression-completion@0.6.35(transitive)
+ Added@bfwk/instrumentation@0.6.35(transitive)
+ Added@bfwk/pub-sub@0.6.35(transitive)
+ Added@bfwk/store@0.6.35(transitive)
+ Added@bfwk/utils@0.6.35(transitive)
+ Added@lcem/declarative-type@0.6.15(transitive)
+ Added@lcem/declarative-ui-generator@0.6.15(transitive)
+ Added@lcem/meta-schemas@0.6.15(transitive)
+ Added@lcem/unified-experience-model@0.6.15(transitive)
+ Addedajv@8.17.1(transitive)
+ Addedajv-errors@3.0.0(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedfast-uri@3.0.5(transitive)
+ Addedimmutable-json-patch@1.1.2(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
- Removed@bfwk/command@0.6.34(transitive)
- Removed@bfwk/data-service@0.6.34(transitive)
- Removed@bfwk/error-handler@0.6.34(transitive)
- Removed@bfwk/expression-completion@0.6.34(transitive)
- Removed@bfwk/instrumentation@0.6.34(transitive)
- Removed@bfwk/pub-sub@0.6.34(transitive)
- Removed@bfwk/store@0.6.34(transitive)
- Removed@bfwk/utils@0.6.34(transitive)
- Removed@lcem/canonical-ui-metadata-schema@0.6.13(transitive)
- Removed@lcem/declarative-type-validator@0.6.13(transitive)
- Removed@lcem/declarative-ui-generator@0.6.13(transitive)
- Removed@lcem/unified-experience-model@0.6.13(transitive)
- Removedajv@6.12.6(transitive)
- Removedajv-errors@1.0.1(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedjson-schema-traverse@0.4.1(transitive)
- Removedpunycode@2.3.1(transitive)
- Removeduri-js@4.4.1(transitive)
Updated@bfwk/data-service@0.6.35
Updated@bfwk/error-handler@0.6.35
Updated@bfwk/instrumentation@0.6.35
Updated@bfwk/pub-sub@0.6.35
Updated@bfwk/store@0.6.35
Updated@bfwk/utils@0.6.35