@bfwk/editor
Advanced tools
Comparing version 0.6.7003 to 0.7.0
@@ -6,13 +6,10 @@ # Change Log | ||
## 0.6.7003 (2021-04-21) | ||
# [0.7.0](https://github.com/salesforce/builder-framework/compare/v0.6.49...v0.7.0) (2021-07-28) | ||
**Note:** Version bump only for package @bfwk/editor | ||
### Features | ||
* refactor from lbf to bfwk @W-9091273 ([#1](https://github.com/salesforce/builder-framework/issues/1)) ([5300a61](https://github.com/salesforce/builder-framework/commit/5300a6117f7f1c763442d7e50d157443e22c1e36)) | ||
## [0.6.7](https://git.soma.salesforce.com/BuilderFramework/builder-framework/compare/v0.6.6...v0.6.7) (2021-04-05) | ||
@@ -19,0 +16,0 @@ |
@@ -332,20 +332,16 @@ import { createStore } from '@bfwk/store-redux'; | ||
// collect fqn | ||
if ( | ||
// @ts-ignore | ||
!node.properties || | ||
// @ts-ignore | ||
if (!node.properties || | ||
!node.properties.values || | ||
// @ts-ignore | ||
!node.properties.values.fqn) { | ||
!node.properties.values.fqn || | ||
!node.properties.values.fqn.value) { | ||
continue; | ||
} | ||
// @ts-ignore | ||
const fqn = node.properties.values.fqn.value; | ||
// collect label | ||
// @ts-ignore | ||
const label = invalidNodes[nodeId].label; | ||
const label = node.label; | ||
// Find error resolver for this component | ||
const errorResolver = this.getErrorResolver(fqn); | ||
// collect errors | ||
const error = this.getNodeErrors(invalidNodes[nodeId], this.getComponentInfo(fqn, componentInfos), errorResolver); | ||
const error = this.getNodeErrors(node, this.getComponentInfo(fqn, componentInfos), errorResolver); | ||
if (!error) { | ||
@@ -399,3 +395,4 @@ continue; | ||
getNodeErrors(node, componentInfo, errorResolver) { | ||
const attributes = node.properties.values.attributes.value; | ||
const attributes = node.properties.values.attributes && | ||
node.properties.values.attributes.value; | ||
const nodeErrors = []; | ||
@@ -616,3 +613,3 @@ for (const attrName in attributes) { | ||
.setFeatureSet(CORE); | ||
for (let [key, value] of customEditorsByPropertyType) { | ||
for (const [key, value] of customEditorsByPropertyType) { | ||
propertySheetFactoryBuilder.setCustomEditorByPropertyType(key, value); | ||
@@ -680,3 +677,3 @@ } | ||
else { | ||
this.selectedPropertySheet = this.propertySheetFactory.createCustomPropertySheet(propertySheetClass, initialState, data); | ||
this.selectedPropertySheet = this.propertySheetFactory.createCustomPropertySheet(propertySheetClass, this.getPropertySheetDescriptionProvider(type), initialState, data); | ||
} | ||
@@ -683,0 +680,0 @@ this.eventSheet = await this.createEventSheet(this.getPropertySheetDescriptionProvider(type), getInitialEventState(this.documentModel, this.selectedId)); |
{ | ||
"name": "@bfwk/editor", | ||
"version": "0.6.7003", | ||
"version": "0.7.0", | ||
"description": "LBF Editor", | ||
@@ -9,3 +9,4 @@ "type": "module", | ||
"files": [ | ||
"dist/types" | ||
"dist/types", | ||
"index.xml" | ||
], | ||
@@ -31,17 +32,17 @@ "publishConfig": { | ||
"dependencies": { | ||
"@bfwk/canvas": "0.6.7003", | ||
"@bfwk/command": "0.6.7003", | ||
"@bfwk/data-service": "0.6.7003", | ||
"@bfwk/di-editor": "0.6.7003", | ||
"@bfwk/document-model": "0.6.7003", | ||
"@bfwk/elements-palette": "0.6.7003", | ||
"@bfwk/error-handler": "0.6.7003", | ||
"@bfwk/instrumentation": "0.6.7003", | ||
"@bfwk/property-editor": "0.6.7003", | ||
"@bfwk/pub-sub": "0.6.7003", | ||
"@bfwk/sf-selector": "0.6.7003", | ||
"@bfwk/store": "0.6.7003", | ||
"@bfwk/store-redux": "0.6.7003", | ||
"@bfwk/undo-redo": "0.6.7003", | ||
"@bfwk/utils": "0.6.7003", | ||
"@bfwk/canvas": "0.7.0", | ||
"@bfwk/command": "0.7.0", | ||
"@bfwk/data-service": "0.7.0", | ||
"@bfwk/di-editor": "0.7.0", | ||
"@bfwk/document-model": "0.7.0", | ||
"@bfwk/elements-palette": "0.7.0", | ||
"@bfwk/error-handler": "0.7.0", | ||
"@bfwk/instrumentation": "0.7.0", | ||
"@bfwk/property-editor": "0.7.0", | ||
"@bfwk/pub-sub": "0.7.0", | ||
"@bfwk/sf-selector": "0.7.0", | ||
"@bfwk/store": "0.7.0", | ||
"@bfwk/store-redux": "0.7.0", | ||
"@bfwk/undo-redo": "0.7.0", | ||
"@bfwk/utils": "0.7.0", | ||
"@lwc/wire-service": "1.17.6" | ||
@@ -48,0 +49,0 @@ }, |
17
71421
1092
+ Added@bfwk/canvas@0.7.0(transitive)
+ Added@bfwk/command@0.7.0(transitive)
+ Added@bfwk/data-service@0.7.0(transitive)
+ Added@bfwk/di-editor@0.7.0(transitive)
+ Added@bfwk/document-model@0.7.0(transitive)
+ Added@bfwk/elements-palette@0.7.0(transitive)
+ Added@bfwk/error-handler@0.7.0(transitive)
+ Added@bfwk/expression-completion@0.7.0(transitive)
+ Added@bfwk/instrumentation@0.7.0(transitive)
+ Added@bfwk/property-editor@0.7.0(transitive)
+ Added@bfwk/pub-sub@0.7.0(transitive)
+ Added@bfwk/sf-selector@0.7.0(transitive)
+ Added@bfwk/store@0.7.0(transitive)
+ Added@bfwk/store-redux@0.7.0(transitive)
+ Added@bfwk/undo-redo@0.7.0(transitive)
+ Added@bfwk/utils@0.7.0(transitive)
+ Added@lcem/declarative-type@0.7.0(transitive)
+ Added@lcem/meta-schemas@0.7.0(transitive)
+ Added@lcem/unified-view-generator@0.7.0(transitive)
+ Added@lcem/unified-view-model@0.7.0(transitive)
+ Addedajv@8.17.1(transitive)
+ Addedajv-errors@3.0.0(transitive)
+ Addedajv-formats@2.1.1(transitive)
+ Addedfast-uri@3.0.6(transitive)
+ Addedimmutable-json-patch@1.1.2(transitive)
+ Addedjson-schema-traverse@1.0.0(transitive)
+ Addedrequire-from-string@2.0.2(transitive)
- Removed@bfwk/canvas@0.6.7003(transitive)
- Removed@bfwk/command@0.6.7003(transitive)
- Removed@bfwk/data-service@0.6.7003(transitive)
- Removed@bfwk/di-editor@0.6.7003(transitive)
- Removed@bfwk/document-model@0.6.7003(transitive)
- Removed@bfwk/elements-palette@0.6.7003(transitive)
- Removed@bfwk/error-handler@0.6.7003(transitive)
- Removed@bfwk/expression-completion@0.6.7003(transitive)
- Removed@bfwk/instrumentation@0.6.7003(transitive)
- Removed@bfwk/property-editor@0.6.7003(transitive)
- Removed@bfwk/pub-sub@0.6.7003(transitive)
- Removed@bfwk/sf-selector@0.6.7003(transitive)
- Removed@bfwk/store@0.6.7003(transitive)
- Removed@bfwk/store-redux@0.6.7003(transitive)
- Removed@bfwk/undo-redo@0.6.7003(transitive)
- Removed@bfwk/utils@0.6.7003(transitive)
- Removed@lcem/canonical-ui-metadata-schema@0.6.3(transitive)
- Removed@lcem/declarative-type-validator@0.6.3(transitive)
- Removed@lcem/declarative-ui-generator@0.6.3(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/canvas@0.7.0
Updated@bfwk/command@0.7.0
Updated@bfwk/data-service@0.7.0
Updated@bfwk/di-editor@0.7.0
Updated@bfwk/document-model@0.7.0
Updated@bfwk/elements-palette@0.7.0
Updated@bfwk/error-handler@0.7.0
Updated@bfwk/instrumentation@0.7.0
Updated@bfwk/property-editor@0.7.0
Updated@bfwk/pub-sub@0.7.0
Updated@bfwk/sf-selector@0.7.0
Updated@bfwk/store@0.7.0
Updated@bfwk/store-redux@0.7.0
Updated@bfwk/undo-redo@0.7.0
Updated@bfwk/utils@0.7.0