Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bfwk/property-editor

Package Overview
Dependencies
Maintainers
2
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bfwk/property-editor - npm Package Compare versions

Comparing version 0.6.34 to 0.6.35

dist/types/composite-property-editor.d.ts

7

CHANGELOG.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc