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.19 to 0.6.20

dist/types/resolver/accordion-resolver.d.ts

8

CHANGELOG.md

@@ -6,10 +6,14 @@ # Change Log

## [0.6.19](https://github.com/salesforce/builder-framework/compare/v0.6.18...v0.6.19) (2021-05-13)
## [0.6.20](https://github.com/salesforce/builder-framework/compare/v0.6.19...v0.6.20) (2021-05-24)
**Note:** Version bump only for package @bfwk/property-editor
### Features
* add support for object types and external types, remove scoped schema @W-9209075 ([#49](https://github.com/salesforce/builder-framework/issues/49)) ([322be93](https://github.com/salesforce/builder-framework/commit/322be9385170c999ff3a02f387902c3a9f6afb85))
* property editor interface v1 @W-9185960 ([#31](https://github.com/salesforce/builder-framework/issues/31)) ([d22ef45](https://github.com/salesforce/builder-framework/commit/d22ef450c1b12a383e136acdff8eac4b8b4bc570))
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05)

@@ -16,0 +20,0 @@

@@ -5,4 +5,3 @@ import { ErrorHandler } from '@bfwk/error-handler';

import { FullyQualifiedName } from '@bfwk/utils';
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { ComponentResolver, LWCComponentInstance, UiGenerationResult } from '@lcem/declarative-ui-generator';
import { LWCComponentInstance } from '@lcem/declarative-ui-generator';
import { PropertyEditorMap } from './property-editor-config';

@@ -33,3 +32,3 @@ import { PropertyValidationService, Validity, BuilderSpecificValueInfo } from './property-editor';

isComponentValid: boolean;
id: string;
id?: string;
}

@@ -39,3 +38,2 @@ interface PropertySheetComponent {

}
declare type LWCComponentInstanceGenerator = (document: ViewMetadataSchema, resolver?: ComponentResolver<LWCComponentInstance>) => UiGenerationResult<LWCComponentInstance>;
export declare class BasePropertySheet implements PropertySheet, BasePropertySheetItemVisitor {

@@ -55,7 +53,6 @@ private readonly publisher;

private propertySheetComponent?;
private readonly uiGenerator;
private readonly auraPropertyEditorWrapper;
private readonly validatorFormatExtensions;
private readonly propertyValueValidityGetter?;
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publisher: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, auraPropertyEditorWrapper: FullyQualifiedName, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any, LWCComponentInstanceGenerator?: LWCComponentInstanceGenerator);
constructor(validationService: PropertyValidationService, errorHandler: ErrorHandler, instrumentationService: InstrumentationService, publisher: PublishEvent, propertySheetDescriptionProvider: PropertySheetDescriptionProvider, initialState: PropertyState, propertyEditorMap: PropertyEditorMap, errorMessages: ErrorMessageMap, featureSet: FeatureSet, auraPropertyEditorWrapper: FullyQualifiedName, getPropertyValueValidity?: PropertyValueValidityGetter, builderSpecificData?: any);
validate(force?: boolean): Promise<boolean>;

@@ -67,3 +64,3 @@ init(): Promise<LWCComponentInstance | undefined>;

isComponentValid: boolean;
id: string;
id?: string;
builderSpecificValueInfoMap: BuilderSpecificValueInfoMap;

@@ -70,0 +67,0 @@ }>;

import { Json } from '@lcem/declarative-type-validator';
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
export declare function generateDefaultViewBySchema(schema: Json): ViewMetadataSchema;
import { View } from '@lcem/unified-experience-model';
export declare function generateDefaultViewBySchema(schema: Json): View;

@@ -1,4 +0,3 @@

import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { Json } from '@lcem/declarative-type-validator';
import { DesignTimeEventInfo, EditorOverride } from '@bfwk/data-service';
import { DeclarativeType, DeclarativeTypeMap } from '@lcem/canonical-ui-metadata-schema';
import { DesignTimeEventInfo } from '@bfwk/data-service';
import { ClassConstructor, UiComponentName } from './property-editor-config';

@@ -32,9 +31,7 @@ import { PropertySheetInfo } from './property-sheet-info';

export declare type Properties = PropertySchema[];
export interface PropertySheetDescription {
label: string;
properties: Properties;
view?: ViewMetadataSchema;
schema: Json;
renderers?: EditorOverride;
export interface PropertySheetDescription extends DeclarativeType {
label?: string;
properties?: Properties;
events?: DesignTimeEventInfo;
referenceMap?: DeclarativeTypeMap;
}

@@ -41,0 +38,0 @@ export declare type JsonPointer = string;

@@ -6,3 +6,3 @@ import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator';

import { PropertySchema } from '../../property-editor';
import { Properties } from '../../property-sheet';
import { Properties, PropertyState } from '../../property-sheet';
import { AuraComponentPropertyEditor } from '../../aura-component-property-editor';

@@ -19,4 +19,5 @@ import { BasePropertySheetItemVisitor } from '../../base-property-sheet-item-visitor';

private readonly create;
constructor(create: CreateAuraPropertyEditor, schema: Json, properties: Properties, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder);
private readonly initialState;
constructor(create: CreateAuraPropertyEditor, schema: Json, properties: Properties | undefined, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState);
resolve({ properties, }: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null;
}
import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator';
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { DeclarativeTypeMap, EditorOverride, ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { Json, ValidatorFormatExtension } from '@lcem/declarative-type-validator';
import { InstrumentationService } from '@bfwk/instrumentation';
import { EditorOverride } from '@bfwk/data-service';
import { Properties, PropertyState } from '../property-sheet';

@@ -24,3 +23,3 @@ import { PropertyEditor, PropertySchema, Validity } from '../property-editor';

private readonly infoComponents;
constructor(schema: Json, properties: Properties, propertyEditorMap: PropertyEditorMap, instrumentationService: InstrumentationService, dependencyMapBuilder: DependencyMapBuilder, initialState: PropertyState, basePropertySheetItemVisitor: BasePropertySheetItemVisitor, validationCallback: ValueValidationCallback<any>, valueChangeCallback: ValueMayHaveChangedCallback<any>, errorMessages: ErrorMessageMap, renderers: EditorOverride, validatorFormatExtensions: ValidatorFormatExtension[], getPropertyValueValidity?: PropertyValueValidityGetter);
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: EditorOverride, validatorFormatExtensions: ValidatorFormatExtension[], getPropertyValueValidity?: PropertyValueValidityGetter, referenceMap?: DeclarativeTypeMap);
resolve(component: ViewMetadataSchema): ComponentDefinition<LWCComponentInstance> | null;

@@ -27,0 +26,0 @@ getPropertyEditors(): PropertyEditor<any>[];

import { ComponentDefinition, ComponentResolver, LWCComponentInstance } from '@lcem/declarative-ui-generator';
import { ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { DeclarativeType, DeclarativeTypeMap, ViewMetadataSchema } from '@lcem/canonical-ui-metadata-schema';
import { Json, Validator, ValidatorFormatExtension } from '@lcem/declarative-type-validator';
import { InstrumentationService } from '@bfwk/instrumentation';
import { PropertyEditor, PropertySchema } from '../property-editor';
import { Properties } from '../property-sheet';
import { Properties, PropertySheet, PropertyState } from '../property-sheet';
import { BasePropertySheetItemVisitor } from '../base-property-sheet-item-visitor';

@@ -12,3 +12,5 @@ import { DependencyMapBuilder } from '../dependent-value-change-cascade';

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 class PropertyTypeBasedResolver implements ComponentResolver<LWCComponentInstance> {
private readonly usePicklistForEnum;
private readonly schema;

@@ -22,6 +24,10 @@ private readonly properties;

private readonly validationFormatExtensions;
constructor(createPropertyEditor: CreatePropertyEditor, schema: Json, properties: Properties, instrumentationService: InstrumentationService, visitor: BasePropertySheetItemVisitor, dependencyMapBuilder: DependencyMapBuilder, providesPropertyEditorConfigInstance: PropertyEditorConfigInstanceProvider, validationFormatExtensions: ValidatorFormatExtension[]);
private readonly referenceMap;
private readonly initialState;
private readonly createPropertySheetEditor;
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;
private getPropertyEditorConfigByType;
private createPropertyEditorComponent;
private createMetadataDrivenPropertySheetEditor;
}
{
"name": "@bfwk/property-editor",
"version": "0.6.19",
"version": "0.6.20",
"description": "LBF Property Editor",

@@ -33,12 +33,12 @@ "type": "module",

"dependencies": {
"@bfwk/data-service": "0.6.19",
"@bfwk/error-handler": "0.6.19",
"@bfwk/expression-completion": "0.6.19",
"@bfwk/instrumentation": "0.6.19",
"@bfwk/pub-sub": "0.6.19",
"@bfwk/store": "0.6.19",
"@bfwk/utils": "0.6.19",
"@lcem/canonical-ui-metadata-schema": "0.6.3",
"@lcem/declarative-type-validator": "0.6.3",
"@lcem/declarative-ui-generator": "0.6.3",
"@bfwk/data-service": "0.6.20",
"@bfwk/error-handler": "0.6.20",
"@bfwk/expression-completion": "0.6.20",
"@bfwk/instrumentation": "0.6.20",
"@bfwk/pub-sub": "0.6.20",
"@bfwk/store": "0.6.20",
"@bfwk/utils": "0.6.20",
"@lcem/canonical-ui-metadata-schema": "0.6.7",
"@lcem/declarative-type-validator": "0.6.7",
"@lcem/declarative-ui-generator": "0.6.7",
"@lwc/wire-service": "1.17.6"

@@ -45,0 +45,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