@bfwk/editor
Advanced tools
Comparing version 0.8.22 to 0.8.23
@@ -6,3 +6,3 @@ # Change Log | ||
## [0.8.22](https://github.com/salesforce/builder-framework/compare/v0.8.21...v0.8.22) (2022-04-21) | ||
## [0.8.23](https://github.com/salesforce/builder-framework/compare/v0.8.22...v0.8.23) (2022-05-17) | ||
@@ -12,3 +12,3 @@ | ||
* **ruleBuilder:** Interaction issues for complex nested components @W-10874733 [@testfix](https://github.com/testfix)@ ([#441](https://github.com/salesforce/builder-framework/issues/441)) ([e32f3da](https://github.com/salesforce/builder-framework/commit/e32f3da275ad729c153b25e5a4a18ca8581b3584)) | ||
* coupled selectedId with selectedPropertySheet @W-10818724 ([#452](https://github.com/salesforce/builder-framework/issues/452)) ([bd040c7](https://github.com/salesforce/builder-framework/commit/bd040c743f89954a82053acc47f16ba4f985844c)) | ||
@@ -15,0 +15,0 @@ |
@@ -674,4 +674,3 @@ import { createStore } from '@bfwk/store-redux'; | ||
if (!type && this.defaultPropertySheetNodeId) { | ||
this.selectedId = this.defaultPropertySheetNodeId; | ||
await this.emitSelectedPropertySheet(); | ||
await this.emitSelectedPropertySheet(this.defaultPropertySheetNodeId); | ||
} | ||
@@ -724,8 +723,5 @@ else if (type && this.visiblePropertySheet) { | ||
} | ||
if (payload.id) { | ||
this.selectedId = payload.id; | ||
} | ||
else { | ||
this.selectedId = this.defaultPropertySheetNodeId; | ||
} | ||
const selectedId = payload.id | ||
? payload.id | ||
: this.defaultPropertySheetNodeId; | ||
const getNodesSelector = this.documentModel.getSelector(GET_NODES_SELECTOR); | ||
@@ -736,5 +732,5 @@ if (!getNodesSelector || | ||
} | ||
await this.emitSelectedPropertySheet(); | ||
await this.emitSelectedPropertySheet(selectedId); | ||
this.selectObservableCreator.emit({ | ||
id: this.selectedId, | ||
id: selectedId, | ||
}); | ||
@@ -790,11 +786,12 @@ } | ||
} | ||
async emitSelectedPropertySheet() { | ||
const type = this.getNodeIdentifier(this.documentModel, this.selectedId); | ||
async emitSelectedPropertySheet(selectedId) { | ||
const type = this.getNodeIdentifier(this.documentModel, selectedId); | ||
const { propertySheetClass, propertySheetUi } = this.getPropertySheetMap().get(type) || | ||
this.getDefaultPropertySheetConfig(); | ||
this.extendedPropertyState = await this.getExtendedPropertyState(this.documentModel, this.selectedId); | ||
this.extendedPropertyState = await this.getExtendedPropertyState(this.documentModel, selectedId); | ||
const data = Object.assign({}, this.builderSpecificData || {}, (await this.buildData(type)) || {}, { | ||
contexts: new Map(Object.entries(await this.getContexts())), | ||
}); | ||
this.eventSheet = await this.createExtendedEventSheet(this.getNodeIdentifier(this.documentModel, this.selectedId), this.extendedPropertyState.eventState); | ||
this.eventSheet = await this.createExtendedEventSheet(this.getNodeIdentifier(this.documentModel, selectedId), this.extendedPropertyState.eventState); | ||
this.selectedId = selectedId; | ||
if (propertySheetClass === 'MetadataDrivenPropertySheet') { | ||
@@ -801,0 +798,0 @@ this.selectedPropertySheet = this.createMetadataDrivenPropertySheet(this.toCapturePropertySheetLabel(this, this.getPropertySheetDescriptionProvider(type)), this.extendedPropertyState.propertyState, data); |
@@ -65,3 +65,3 @@ import { BasePropertySheetContainer, PropertySheet, PropertySheetDescription, PropertySheetDescriptionProvider, PropertySheetUiDefinition, PropertyState, PropertyValidationService } from '@bfwk/property-editor'; | ||
getInitialStateForComponent(componentId?: string): Promise<PropertyState | undefined>; | ||
protected emitSelectedPropertySheet(): Promise<void>; | ||
protected emitSelectedPropertySheet(selectedId: Guid): Promise<void>; | ||
private toCapturePropertySheetLabel; | ||
@@ -68,0 +68,0 @@ protected createEventSheet(description: PropertySheetDescription, initialState: DINode[]): Promise<EventSheet>; |
{ | ||
"name": "@bfwk/editor", | ||
"version": "0.8.22", | ||
"version": "0.8.23", | ||
"description": "LBF Editor", | ||
@@ -32,19 +32,19 @@ "type": "module", | ||
"dependencies": { | ||
"@bfwk/baas": "0.8.22", | ||
"@bfwk/canvas": "0.8.22", | ||
"@bfwk/command": "0.8.22", | ||
"@bfwk/data-service": "0.8.22", | ||
"@bfwk/di-editor": "0.8.22", | ||
"@bfwk/document-model": "0.8.22", | ||
"@bfwk/dp-editor": "0.8.22", | ||
"@bfwk/elements-palette": "0.8.22", | ||
"@bfwk/error-handler": "0.8.22", | ||
"@bfwk/instrumentation": "0.8.22", | ||
"@bfwk/property-editor": "0.8.22", | ||
"@bfwk/pub-sub": "0.8.22", | ||
"@bfwk/sf-selector": "0.8.22", | ||
"@bfwk/store": "0.8.22", | ||
"@bfwk/store-redux": "0.8.22", | ||
"@bfwk/undo-redo": "0.8.22", | ||
"@bfwk/utils": "0.8.22", | ||
"@bfwk/baas": "0.8.23", | ||
"@bfwk/canvas": "0.8.23", | ||
"@bfwk/command": "0.8.23", | ||
"@bfwk/data-service": "0.8.23", | ||
"@bfwk/di-editor": "0.8.23", | ||
"@bfwk/document-model": "0.8.23", | ||
"@bfwk/dp-editor": "0.8.23", | ||
"@bfwk/elements-palette": "0.8.23", | ||
"@bfwk/error-handler": "0.8.23", | ||
"@bfwk/instrumentation": "0.8.23", | ||
"@bfwk/property-editor": "0.8.23", | ||
"@bfwk/pub-sub": "0.8.23", | ||
"@bfwk/sf-selector": "0.8.23", | ||
"@bfwk/store": "0.8.23", | ||
"@bfwk/store-redux": "0.8.23", | ||
"@bfwk/undo-redo": "0.8.23", | ||
"@bfwk/utils": "0.8.23", | ||
"@lwc/wire-service": "2.11.3" | ||
@@ -51,0 +51,0 @@ }, |
81934
1320
+ Added@bfwk/baas@0.8.23(transitive)
+ Added@bfwk/canvas@0.8.23(transitive)
+ Added@bfwk/command@0.8.23(transitive)
+ Added@bfwk/data-service@0.8.23(transitive)
+ Added@bfwk/di-editor@0.8.23(transitive)
+ Added@bfwk/document-model@0.8.23(transitive)
+ Added@bfwk/dp-editor@0.8.23(transitive)
+ Added@bfwk/elements-palette@0.8.23(transitive)
+ Added@bfwk/error-handler@0.8.23(transitive)
+ Added@bfwk/expression-completion@0.8.23(transitive)
+ Added@bfwk/instrumentation@0.8.23(transitive)
+ Added@bfwk/property-editor@0.8.23(transitive)
+ Added@bfwk/pub-sub@0.8.23(transitive)
+ Added@bfwk/sf-selector@0.8.23(transitive)
+ Added@bfwk/store@0.8.23(transitive)
+ Added@bfwk/store-redux@0.8.23(transitive)
+ Added@bfwk/undo-redo@0.8.23(transitive)
+ Added@bfwk/utils@0.8.23(transitive)
- Removed@bfwk/baas@0.8.22(transitive)
- Removed@bfwk/canvas@0.8.22(transitive)
- Removed@bfwk/command@0.8.22(transitive)
- Removed@bfwk/data-service@0.8.22(transitive)
- Removed@bfwk/di-editor@0.8.22(transitive)
- Removed@bfwk/document-model@0.8.22(transitive)
- Removed@bfwk/dp-editor@0.8.22(transitive)
- Removed@bfwk/elements-palette@0.8.22(transitive)
- Removed@bfwk/error-handler@0.8.22(transitive)
- Removed@bfwk/expression-completion@0.8.22(transitive)
- Removed@bfwk/instrumentation@0.8.22(transitive)
- Removed@bfwk/property-editor@0.8.22(transitive)
- Removed@bfwk/pub-sub@0.8.22(transitive)
- Removed@bfwk/sf-selector@0.8.22(transitive)
- Removed@bfwk/store@0.8.22(transitive)
- Removed@bfwk/store-redux@0.8.22(transitive)
- Removed@bfwk/undo-redo@0.8.22(transitive)
- Removed@bfwk/utils@0.8.22(transitive)
Updated@bfwk/baas@0.8.23
Updated@bfwk/canvas@0.8.23
Updated@bfwk/command@0.8.23
Updated@bfwk/data-service@0.8.23
Updated@bfwk/di-editor@0.8.23
Updated@bfwk/document-model@0.8.23
Updated@bfwk/dp-editor@0.8.23
Updated@bfwk/error-handler@0.8.23
Updated@bfwk/instrumentation@0.8.23
Updated@bfwk/property-editor@0.8.23
Updated@bfwk/pub-sub@0.8.23
Updated@bfwk/sf-selector@0.8.23
Updated@bfwk/store@0.8.23
Updated@bfwk/store-redux@0.8.23
Updated@bfwk/undo-redo@0.8.23
Updated@bfwk/utils@0.8.23