@bfwk/editor
Advanced tools
Comparing version 0.8.5 to 0.8.6
@@ -6,3 +6,3 @@ # Change Log | ||
## [0.8.5](https://github.com/salesforce/builder-framework/compare/v0.8.4...v0.8.5) (2022-02-02) | ||
## [0.8.6](https://github.com/salesforce/builder-framework/compare/v0.8.5...v0.8.6) (2022-02-04) | ||
@@ -12,3 +12,3 @@ | ||
* enable/disable top-level ui features @W-10300768 ([#377](https://github.com/salesforce/builder-framework/issues/377)) ([625cee9](https://github.com/salesforce/builder-framework/commit/625cee914317b29be176139ab0ad41efa95543ad)) | ||
* fix framework editor constructor signature W-10300768 ([#384](https://github.com/salesforce/builder-framework/issues/384)) ([770ed7f](https://github.com/salesforce/builder-framework/commit/770ed7fa50be80ac24213cf34fd5db1b1d7cd895)) | ||
@@ -15,0 +15,0 @@ |
@@ -438,6 +438,12 @@ import { createStore } from '@bfwk/store-redux'; | ||
const INSTRUMENTATION_SOURCE_FORM_FACTOR_SWITCH = 'FormFactorSwitch'; | ||
const DEFAULT_BAAS_CONFIG = { | ||
toolbarVisible: true, | ||
paletteVisible: true, | ||
canvasVisible: true, | ||
propertySheetVisible: true, | ||
}; | ||
class FrameworkEditor { | ||
// WHAT should be injected - ex. what is really a property of the Builder that encloses the Editors and what is | ||
// Editor specific? For now, the Editor is the top level - to be revisited | ||
constructor(baasConfig, editorRedirectURLOnError) { | ||
constructor(editorRedirectURLOnError, baasConfig = DEFAULT_BAAS_CONFIG) { | ||
this.parts = {}; | ||
@@ -989,2 +995,2 @@ this.log = (source, attributes) => { | ||
export { DOCSTATE_CLEAN, DOCSTATE_DIRTY, DOCSTATE_SAVEINPROGRESS, DocErrorSummary, DocState, FocusNextCommand, FocusPreviousCommand, FrameworkEditor, FrameworkPropertySheetContainer, KEYBOARD_HELP, KeyboardHelp, SaveWithPropertySheetValidationCommand, createDocState, createFocusManager, getPropertySheetLabel, getPropertySheetUiDefinition }; | ||
export { DEFAULT_BAAS_CONFIG, DOCSTATE_CLEAN, DOCSTATE_DIRTY, DOCSTATE_SAVEINPROGRESS, DocErrorSummary, DocState, FocusNextCommand, FocusPreviousCommand, FrameworkEditor, FrameworkPropertySheetContainer, KEYBOARD_HELP, KeyboardHelp, SaveWithPropertySheetValidationCommand, createDocState, createFocusManager, getPropertySheetLabel, getPropertySheetUiDefinition }; |
@@ -30,2 +30,3 @@ import { ScopedStore, Part } from '@bfwk/store'; | ||
} | ||
export declare const DEFAULT_BAAS_CONFIG: BaasConfig; | ||
export declare abstract class FrameworkEditor { | ||
@@ -47,3 +48,3 @@ private _baasConfig; | ||
private readonly sessionStart; | ||
constructor(baasConfig: BaasConfig, editorRedirectURLOnError?: string); | ||
constructor(editorRedirectURLOnError?: string, baasConfig?: BaasConfig); | ||
log: (source: string, attributes: object) => void; | ||
@@ -50,0 +51,0 @@ logSessionEnd: () => void; |
@@ -1,2 +0,2 @@ | ||
export { Container, BaasConfig, FrameworkEditor, KEYBOARD_HELP, } from './editor'; | ||
export { Container, BaasConfig, DEFAULT_BAAS_CONFIG, FrameworkEditor, KEYBOARD_HELP, } from './editor'; | ||
export { FrameworkPropertySheetContainer } from './framework-property-sheet-container'; | ||
@@ -3,0 +3,0 @@ export { SaveWithPropertySheetValidationCommand } from './commands/save-with-property-sheet-validation'; |
{ | ||
"name": "@bfwk/editor", | ||
"version": "0.8.5", | ||
"version": "0.8.6", | ||
"description": "LBF Editor", | ||
@@ -32,18 +32,18 @@ "type": "module", | ||
"dependencies": { | ||
"@bfwk/canvas": "0.8.5", | ||
"@bfwk/command": "0.8.5", | ||
"@bfwk/data-service": "0.8.5", | ||
"@bfwk/di-editor": "0.8.5", | ||
"@bfwk/document-model": "0.8.5", | ||
"@bfwk/dp-editor": "0.8.5", | ||
"@bfwk/elements-palette": "0.8.5", | ||
"@bfwk/error-handler": "0.8.5", | ||
"@bfwk/instrumentation": "0.8.5", | ||
"@bfwk/property-editor": "0.8.5", | ||
"@bfwk/pub-sub": "0.8.5", | ||
"@bfwk/sf-selector": "0.8.5", | ||
"@bfwk/store": "0.8.5", | ||
"@bfwk/store-redux": "0.8.5", | ||
"@bfwk/undo-redo": "0.8.5", | ||
"@bfwk/utils": "0.8.5", | ||
"@bfwk/canvas": "0.8.6", | ||
"@bfwk/command": "0.8.6", | ||
"@bfwk/data-service": "0.8.6", | ||
"@bfwk/di-editor": "0.8.6", | ||
"@bfwk/document-model": "0.8.6", | ||
"@bfwk/dp-editor": "0.8.6", | ||
"@bfwk/elements-palette": "0.8.6", | ||
"@bfwk/error-handler": "0.8.6", | ||
"@bfwk/instrumentation": "0.8.6", | ||
"@bfwk/property-editor": "0.8.6", | ||
"@bfwk/pub-sub": "0.8.6", | ||
"@bfwk/sf-selector": "0.8.6", | ||
"@bfwk/store": "0.8.6", | ||
"@bfwk/store-redux": "0.8.6", | ||
"@bfwk/undo-redo": "0.8.6", | ||
"@bfwk/utils": "0.8.6", | ||
"@lwc/wire-service": "2.2.9" | ||
@@ -50,0 +50,0 @@ }, |
82062
1330
+ Added@bfwk/canvas@0.8.6(transitive)
+ Added@bfwk/command@0.8.6(transitive)
+ Added@bfwk/data-service@0.8.6(transitive)
+ Added@bfwk/di-editor@0.8.6(transitive)
+ Added@bfwk/document-model@0.8.6(transitive)
+ Added@bfwk/dp-editor@0.8.6(transitive)
+ Added@bfwk/elements-palette@0.8.6(transitive)
+ Added@bfwk/error-handler@0.8.6(transitive)
+ Added@bfwk/expression-completion@0.8.6(transitive)
+ Added@bfwk/instrumentation@0.8.6(transitive)
+ Added@bfwk/property-editor@0.8.6(transitive)
+ Added@bfwk/pub-sub@0.8.6(transitive)
+ Added@bfwk/sf-selector@0.8.6(transitive)
+ Added@bfwk/store@0.8.6(transitive)
+ Added@bfwk/store-redux@0.8.6(transitive)
+ Added@bfwk/undo-redo@0.8.6(transitive)
+ Added@bfwk/utils@0.8.6(transitive)
- Removed@bfwk/canvas@0.8.5(transitive)
- Removed@bfwk/command@0.8.5(transitive)
- Removed@bfwk/data-service@0.8.5(transitive)
- Removed@bfwk/di-editor@0.8.5(transitive)
- Removed@bfwk/document-model@0.8.5(transitive)
- Removed@bfwk/dp-editor@0.8.5(transitive)
- Removed@bfwk/elements-palette@0.8.5(transitive)
- Removed@bfwk/error-handler@0.8.5(transitive)
- Removed@bfwk/expression-completion@0.8.5(transitive)
- Removed@bfwk/instrumentation@0.8.5(transitive)
- Removed@bfwk/property-editor@0.8.5(transitive)
- Removed@bfwk/pub-sub@0.8.5(transitive)
- Removed@bfwk/sf-selector@0.8.5(transitive)
- Removed@bfwk/store@0.8.5(transitive)
- Removed@bfwk/store-redux@0.8.5(transitive)
- Removed@bfwk/undo-redo@0.8.5(transitive)
- Removed@bfwk/utils@0.8.5(transitive)
Updated@bfwk/canvas@0.8.6
Updated@bfwk/command@0.8.6
Updated@bfwk/data-service@0.8.6
Updated@bfwk/di-editor@0.8.6
Updated@bfwk/document-model@0.8.6
Updated@bfwk/dp-editor@0.8.6
Updated@bfwk/elements-palette@0.8.6
Updated@bfwk/error-handler@0.8.6
Updated@bfwk/instrumentation@0.8.6
Updated@bfwk/property-editor@0.8.6
Updated@bfwk/pub-sub@0.8.6
Updated@bfwk/sf-selector@0.8.6
Updated@bfwk/store@0.8.6
Updated@bfwk/store-redux@0.8.6
Updated@bfwk/undo-redo@0.8.6
Updated@bfwk/utils@0.8.6