diff --git a/packages/form-js-editor/src/FormEditor.js b/packages/form-js-editor/src/FormEditor.js index c0ebafb91..20c33c21b 100644 --- a/packages/form-js-editor/src/FormEditor.js +++ b/packages/form-js-editor/src/FormEditor.js @@ -1,21 +1,20 @@ -import { clone, createFormContainer, createInjector, schemaVersion } from '@bpmn-io/form-js-viewer'; import Ids from 'ids'; +import { clone, createFormContainer, createInjector, schemaVersion } from '@bpmn-io/form-js-viewer'; import { isString, set } from 'min-dash'; -import core from './core'; - -import EditorActionsModule from './features/editor-actions'; -import DraggingModule from './features/dragging'; -import KeyboardModule from './features/keyboard'; -import ModelingModule from './features/modeling'; -import SelectionModule from './features/selection'; -import PaletteModule from './features/palette'; -import PropertiesPanelModule from './features/properties-panel'; -import RenderInjectionModule from './features/render-injection'; -import RepeatRenderManagerModule from './features/repeat-render'; -import ExpressionLanguageModule from './features/expression-language'; +import { CoreModule } from './core'; +import { EditorActionsModule } from './features/editor-actions'; +import { EditorExpressionLanguageModule } from './features/expression-language'; +import { FormEditorKeyboardModule } from './features/keyboard'; +import { DraggingModule } from './features/dragging'; +import { ModelingModule } from './features/modeling'; +import { SelectionModule } from './features/selection'; +import { PaletteModule } from './features/palette'; +import { PropertiesPanelModule } from './features/properties-panel'; +import { RenderInjectionModule } from './features/render-injection'; +import { RepeatRenderModule } from './features/repeat-render'; -import { MarkdownModule } from '@bpmn-io/form-js-viewer'; +import { MarkdownRendererModule } from '@bpmn-io/form-js-viewer'; const ids = new Ids([ 32, 36, 1 ]); @@ -40,7 +39,7 @@ const ids = new Ids([ 32, 36, 1 ]); /** * The form editor. */ -export default class FormEditor { +export class FormEditor { /** * @constructor @@ -265,7 +264,7 @@ export default class FormEditor { return createInjector([ { config: [ 'value', enrichedConfig ] }, { formEditor: [ 'value', this ] }, - core, + CoreModule, ...modules, ...additionalModules ]); @@ -304,15 +303,15 @@ export default class FormEditor { return [ ModelingModule, EditorActionsModule, + FormEditorKeyboardModule, DraggingModule, - KeyboardModule, SelectionModule, PaletteModule, - ExpressionLanguageModule, - MarkdownModule, + EditorExpressionLanguageModule, + MarkdownRendererModule, PropertiesPanelModule, RenderInjectionModule, - RepeatRenderManagerModule + RepeatRenderModule ]; } diff --git a/packages/form-js-editor/src/core/Debounce.js b/packages/form-js-editor/src/core/Debounce.js index 14d26de46..ae414ffd5 100644 --- a/packages/form-js-editor/src/core/Debounce.js +++ b/packages/form-js-editor/src/core/Debounce.js @@ -5,7 +5,7 @@ import { debounce } from 'min-dash'; * * @param {number|boolean} [config=true] */ -export default function DebounceFactory(config = true) { +export function DebounceFactory(config = true) { const timeout = typeof config === 'number' ? config : config ? 300 : 0; diff --git a/packages/form-js-editor/src/core/EventBus.js b/packages/form-js-editor/src/core/EventBus.js index aa648a64c..b9152bafb 100644 --- a/packages/form-js-editor/src/core/EventBus.js +++ b/packages/form-js-editor/src/core/EventBus.js @@ -1 +1 @@ -export { default } from 'diagram-js/lib/core/EventBus'; \ No newline at end of file +export { default as EventBus } from 'diagram-js/lib/core/EventBus'; \ No newline at end of file diff --git a/packages/form-js-editor/src/core/FormFieldRegistry.js b/packages/form-js-editor/src/core/FormFieldRegistry.js index 830b75f77..8c6010e58 100644 --- a/packages/form-js-editor/src/core/FormFieldRegistry.js +++ b/packages/form-js-editor/src/core/FormFieldRegistry.js @@ -3,7 +3,7 @@ import { } from '@bpmn-io/form-js-viewer'; -export default class FormFieldRegistry extends BaseFieldRegistry { +export class FormFieldRegistry extends BaseFieldRegistry { /** * Updates a form fields id. diff --git a/packages/form-js-editor/src/core/FormLayoutValidator.js b/packages/form-js-editor/src/core/FormLayoutValidator.js index 1bcc546bd..8d36a6d39 100644 --- a/packages/form-js-editor/src/core/FormLayoutValidator.js +++ b/packages/form-js-editor/src/core/FormLayoutValidator.js @@ -3,13 +3,13 @@ export const MAX_COLUMNS = 16; export const MIN_COLUMNS = 2; export const MAX_FIELDS_PER_ROW = 4; -export default class FormLayoutValidator { +export class FormLayoutValidator { /** * @constructor * - * @param { import('./FormLayouter').default } formLayouter - * @param { import('./FormFieldRegistry').default } formFieldRegistry + * @param { import('./FormLayouter').FormLayouter } formLayouter + * @param { import('./FormFieldRegistry').FormFieldRegistry } formFieldRegistry */ constructor(formLayouter, formFieldRegistry) { this._formLayouter = formLayouter; diff --git a/packages/form-js-editor/src/core/FormLayouter.js b/packages/form-js-editor/src/core/FormLayouter.js index 590697c7e..2bf9eb3cd 100644 --- a/packages/form-js-editor/src/core/FormLayouter.js +++ b/packages/form-js-editor/src/core/FormLayouter.js @@ -1 +1 @@ -export { FormLayouter as default } from '@bpmn-io/form-js-viewer'; \ No newline at end of file +export { FormLayouter } from '@bpmn-io/form-js-viewer'; \ No newline at end of file diff --git a/packages/form-js-editor/src/core/index.js b/packages/form-js-editor/src/core/index.js index 3344888c9..7ca267c55 100644 --- a/packages/form-js-editor/src/core/index.js +++ b/packages/form-js-editor/src/core/index.js @@ -1,16 +1,16 @@ import { FieldFactory, Importer, PathRegistry } from '@bpmn-io/form-js-viewer'; -import EventBus from './EventBus'; -import DebounceFactory from './Debounce'; -import FormFieldRegistry from './FormFieldRegistry'; -import FormLayouter from './FormLayouter'; -import FormLayoutValidator from './FormLayoutValidator'; +import { EventBus } from './EventBus'; +import { DebounceFactory } from './Debounce'; +import { FormFieldRegistry } from './FormFieldRegistry'; +import { FormLayouter } from './FormLayouter'; +import { FormLayoutValidator } from './FormLayoutValidator'; -import renderModule from '../render'; +import { RenderModule } from '../render'; -export default { +export const CoreModule = { __depends__: [ - renderModule + RenderModule ], debounce: [ 'factory', DebounceFactory ], eventBus: [ 'type', EventBus ], diff --git a/packages/form-js-editor/src/features/SectionModuleBase.js b/packages/form-js-editor/src/features/SectionModuleBase.js index d55174113..1892ca50e 100644 --- a/packages/form-js-editor/src/features/SectionModuleBase.js +++ b/packages/form-js-editor/src/features/SectionModuleBase.js @@ -6,7 +6,7 @@ * * @class SectionModuleBase */ -export default class SectionModuleBase { +export class SectionModuleBase { /** * Create a SectionModuleBase instance. diff --git a/packages/form-js-editor/src/features/dragging/Dragging.js b/packages/form-js-editor/src/features/dragging/Dragging.js index 5afeae167..3f1631bd1 100644 --- a/packages/form-js-editor/src/features/dragging/Dragging.js +++ b/packages/form-js-editor/src/features/dragging/Dragging.js @@ -17,16 +17,16 @@ export const ERROR_DROP_CLS = 'fjs-error-drop'; * @typedef { { id: String, components: Array } } FormRow */ -export default class Dragging { +export class Dragging { /** * @constructor * - * @param { import('../../core/FormFieldRegistry').default } formFieldRegistry - * @param { import('../../core/FormLayouter').default } formLayouter - * @param { import('../../core/FormLayoutValidator').default } formLayoutValidator - * @param { import('../../core/EventBus').default } eventBus - * @param { import('../modeling/Modeling').default } modeling + * @param { import('../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry + * @param { import('../../core/FormLayouter').FormLayouter } formLayouter + * @param { import('../../core/FormLayoutValidator').FormLayoutValidator } formLayoutValidator + * @param { import('../../core/EventBus').EventBus } eventBus + * @param { import('../modeling/Modeling').Modeling } modeling * @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry */ constructor(formFieldRegistry, formLayouter, formLayoutValidator, eventBus, modeling, pathRegistry) { diff --git a/packages/form-js-editor/src/features/dragging/index.js b/packages/form-js-editor/src/features/dragging/index.js index 063720c92..6cad08ccc 100644 --- a/packages/form-js-editor/src/features/dragging/index.js +++ b/packages/form-js-editor/src/features/dragging/index.js @@ -1,6 +1,6 @@ -import Dragging from './Dragging'; +import { Dragging } from './Dragging'; -export default { +export const DraggingModule = { __init__: [ 'dragging' ], dragging: [ 'type', Dragging ] }; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/editor-actions/FormEditorActions.js b/packages/form-js-editor/src/features/editor-actions/FormEditorActions.js index 8ed8dc221..a4067b267 100644 --- a/packages/form-js-editor/src/features/editor-actions/FormEditorActions.js +++ b/packages/form-js-editor/src/features/editor-actions/FormEditorActions.js @@ -1,7 +1,7 @@ import EditorActions from 'diagram-js/lib/features/editor-actions/EditorActions'; -export default class FormEditorActions extends EditorActions { +export class FormEditorActions extends EditorActions { constructor(eventBus, injector) { super(eventBus, injector); diff --git a/packages/form-js-editor/src/features/editor-actions/index.js b/packages/form-js-editor/src/features/editor-actions/index.js index 5a81e4457..235b66a71 100644 --- a/packages/form-js-editor/src/features/editor-actions/index.js +++ b/packages/form-js-editor/src/features/editor-actions/index.js @@ -1,10 +1,10 @@ -import EditorActionsModule from 'diagram-js/lib/features/editor-actions'; +import BaseEditorActionsModule from 'diagram-js/lib/features/editor-actions'; -import FormEditorActions from './FormEditorActions'; +import { FormEditorActions } from './FormEditorActions'; -export default { +export const EditorActionsModule = { __depends__: [ - EditorActionsModule + BaseEditorActionsModule ], editorActions: [ 'type', FormEditorActions ] }; diff --git a/packages/form-js-editor/src/features/expression-language/EditorTemplating.js b/packages/form-js-editor/src/features/expression-language/EditorTemplating.js index e28453903..e8349464b 100644 --- a/packages/form-js-editor/src/features/expression-language/EditorTemplating.js +++ b/packages/form-js-editor/src/features/expression-language/EditorTemplating.js @@ -1,6 +1,6 @@ import { isString } from 'min-dash'; -export default class EditorTemplating { +export class EditorTemplating { // same rules as viewer templating isTemplate(value) { return isString(value) && (value.startsWith('=') || /{{/.test(value)); } diff --git a/packages/form-js-editor/src/features/expression-language/index.js b/packages/form-js-editor/src/features/expression-language/index.js index 9cd352225..21fc5e759 100644 --- a/packages/form-js-editor/src/features/expression-language/index.js +++ b/packages/form-js-editor/src/features/expression-language/index.js @@ -1,7 +1,7 @@ import { FeelExpressionLanguage } from '@bpmn-io/form-js-viewer'; -import EditorTemplating from './EditorTemplating'; +import { EditorTemplating } from './EditorTemplating'; -export default { +export const EditorExpressionLanguageModule = { __init__: [ 'expressionLanguage', 'templating' ], expressionLanguage: [ 'type', FeelExpressionLanguage ], templating: [ 'type', EditorTemplating ] diff --git a/packages/form-js-editor/src/features/keyboard/FormEditorKeyboardBindings.js b/packages/form-js-editor/src/features/keyboard/FormEditorKeyboardBindings.js index 4825b79b1..09bcc2b4d 100644 --- a/packages/form-js-editor/src/features/keyboard/FormEditorKeyboardBindings.js +++ b/packages/form-js-editor/src/features/keyboard/FormEditorKeyboardBindings.js @@ -11,7 +11,7 @@ import { const LOW_PRIORITY = 500; -export default class FormEditorKeyboardBindings { +export class FormEditorKeyboardBindings { constructor(eventBus, keyboard) { eventBus.on('editorActions.init', LOW_PRIORITY, (event) => { const { editorActions } = event; diff --git a/packages/form-js-editor/src/features/keyboard/index.js b/packages/form-js-editor/src/features/keyboard/index.js index da26eb77b..247d97ecf 100644 --- a/packages/form-js-editor/src/features/keyboard/index.js +++ b/packages/form-js-editor/src/features/keyboard/index.js @@ -1,8 +1,8 @@ import KeyboardModule from 'diagram-js/lib/features/keyboard'; -import FormEditorKeyboardBindings from './FormEditorKeyboardBindings'; +import { FormEditorKeyboardBindings } from './FormEditorKeyboardBindings'; -export default { +export const FormEditorKeyboardModule = { __depends__: [ KeyboardModule ], diff --git a/packages/form-js-editor/src/features/modeling/FormLayoutUpdater.js b/packages/form-js-editor/src/features/modeling/FormLayoutUpdater.js index 75c53092f..d5f9775f9 100644 --- a/packages/form-js-editor/src/features/modeling/FormLayoutUpdater.js +++ b/packages/form-js-editor/src/features/modeling/FormLayoutUpdater.js @@ -5,7 +5,7 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; import { clone } from '@bpmn-io/form-js-viewer'; -export default class FormLayoutUpdater extends CommandInterceptor { +export class FormLayoutUpdater extends CommandInterceptor { constructor(eventBus, formLayouter, modeling, formEditor) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/Modeling.js b/packages/form-js-editor/src/features/modeling/Modeling.js index dccac9102..a6ba99529 100644 --- a/packages/form-js-editor/src/features/modeling/Modeling.js +++ b/packages/form-js-editor/src/features/modeling/Modeling.js @@ -1,15 +1,15 @@ -import AddFormFieldHandler from './cmd/AddFormFieldHandler'; -import EditFormFieldHandler from './cmd/EditFormFieldHandler'; -import MoveFormFieldHandler from './cmd/MoveFormFieldHandler'; -import RemoveFormFieldHandler from './cmd/RemoveFormFieldHandler'; -import UpdateIdClaimHandler from './cmd/UpdateIdClaimHandler'; -import UpdateKeyClaimHandler from './cmd/UpdateKeyClaimHandler'; -import UpdatePathClaimHandler from './cmd/UpdatePathClaimHandler'; +import { AddFormFieldHandler } from './cmd/AddFormFieldHandler'; +import { EditFormFieldHandler } from './cmd/EditFormFieldHandler'; +import { MoveFormFieldHandler } from './cmd/MoveFormFieldHandler'; +import { RemoveFormFieldHandler } from './cmd/RemoveFormFieldHandler'; +import { UpdateIdClaimHandler } from './cmd/UpdateIdClaimHandler'; +import { UpdateKeyClaimHandler } from './cmd/UpdateKeyClaimHandler'; +import { UpdatePathClaimHandler } from './cmd/UpdatePathClaimHandler'; import { isObject } from 'min-dash'; -export default class Modeling { +export class Modeling { constructor(commandStack, eventBus, formEditor, formFieldRegistry, fieldFactory) { this._commandStack = commandStack; this._formEditor = formEditor; diff --git a/packages/form-js-editor/src/features/modeling/behavior/IdBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/IdBehavior.js index 61dc2bc06..0da904ec7 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/IdBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/IdBehavior.js @@ -1,6 +1,6 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; -export default class IdBehavior extends CommandInterceptor { +export class IdBehavior extends CommandInterceptor { constructor(eventBus, modeling) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/behavior/KeyBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/KeyBehavior.js index d2fb292ee..a2a09feb2 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/KeyBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/KeyBehavior.js @@ -1,6 +1,6 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; -export default class KeyBehavior extends CommandInterceptor { +export class KeyBehavior extends CommandInterceptor { constructor(eventBus, modeling, formFields) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/behavior/OptionsSourceBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/OptionsSourceBehavior.js index 41bebeb8b..d43b43022 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/OptionsSourceBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/OptionsSourceBehavior.js @@ -7,7 +7,7 @@ import { OPTIONS_SOURCES_PATHS } from '@bpmn-io/form-js-viewer'; -export default class OptionsSourceBehavior extends CommandInterceptor { +export class OptionsSourceBehavior extends CommandInterceptor { constructor(eventBus) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/behavior/PathBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/PathBehavior.js index 433755c2b..4e3371c53 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/PathBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/PathBehavior.js @@ -1,6 +1,6 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; -export default class PathBehavior extends CommandInterceptor { +export class PathBehavior extends CommandInterceptor { constructor(eventBus, modeling, formFields) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js b/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js index 791c4b0e3..52268d1bd 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js +++ b/packages/form-js-editor/src/features/modeling/behavior/ValidateBehavior.js @@ -1,6 +1,6 @@ import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor'; -export default class ValidateBehavior extends CommandInterceptor { +export class ValidateBehavior extends CommandInterceptor { constructor(eventBus) { super(eventBus); diff --git a/packages/form-js-editor/src/features/modeling/behavior/index.js b/packages/form-js-editor/src/features/modeling/behavior/index.js index ef3347b2a..d7fbbf212 100644 --- a/packages/form-js-editor/src/features/modeling/behavior/index.js +++ b/packages/form-js-editor/src/features/modeling/behavior/index.js @@ -1,12 +1,12 @@ -import IdBehavior from './IdBehavior'; -import KeyBehavior from './KeyBehavior'; -import PathBehavior from './PathBehavior'; -import ValidateBehavior from './ValidateBehavior'; -import OptionsSourceBehavior from './OptionsSourceBehavior'; +import { IdBehavior } from './IdBehavior'; +import { KeyBehavior } from './KeyBehavior'; +import { PathBehavior } from './PathBehavior'; +import { ValidateBehavior } from './ValidateBehavior'; +import { OptionsSourceBehavior } from './OptionsSourceBehavior'; import { ColumnsSourceBehavior } from './ColumnsSourceBehavior'; import { TableDataSourceBehavior } from './TableDataSourceBehavior'; -export default { +export const BehaviorModule = { __init__: [ 'idBehavior', 'keyBehavior', diff --git a/packages/form-js-editor/src/features/modeling/cmd/AddFormFieldHandler.js b/packages/form-js-editor/src/features/modeling/cmd/AddFormFieldHandler.js index 94a692a71..3ba2cd20e 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/AddFormFieldHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/AddFormFieldHandler.js @@ -6,12 +6,12 @@ import { updatePath } from './Util'; -export default class AddFormFieldHandler { +export class AddFormFieldHandler { /** * @constructor - * @param { import('../../../FormEditor').default } formEditor - * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry + * @param { import('../../../FormEditor').FormEditor } formEditor + * @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry */ constructor(formEditor, formFieldRegistry) { this._formEditor = formEditor; diff --git a/packages/form-js-editor/src/features/modeling/cmd/EditFormFieldHandler.js b/packages/form-js-editor/src/features/modeling/cmd/EditFormFieldHandler.js index 82c3de9ce..3ec1d5bdb 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/EditFormFieldHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/EditFormFieldHandler.js @@ -1,9 +1,9 @@ -export default class EditFormFieldHandler { +export class EditFormFieldHandler { /** * @constructor - * @param { import('../../../FormEditor').default } formEditor - * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry + * @param { import('../../../FormEditor').FormEditor } formEditor + * @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry */ constructor(formEditor, formFieldRegistry) { this._formEditor = formEditor; diff --git a/packages/form-js-editor/src/features/modeling/cmd/MoveFormFieldHandler.js b/packages/form-js-editor/src/features/modeling/cmd/MoveFormFieldHandler.js index 5e93799d5..3a3f40a5b 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/MoveFormFieldHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/MoveFormFieldHandler.js @@ -8,12 +8,12 @@ import { updateRow } from './Util'; -export default class MoveFormFieldHandler { +export class MoveFormFieldHandler { /** * @constructor - * @param { import('../../../FormEditor').default } formEditor - * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry + * @param { import('../../../FormEditor').FormEditor } formEditor + * @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry * @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry * @param { import('@bpmn-io/form-js-viewer').FormLayouter } formLayouter */ diff --git a/packages/form-js-editor/src/features/modeling/cmd/RemoveFormFieldHandler.js b/packages/form-js-editor/src/features/modeling/cmd/RemoveFormFieldHandler.js index f24b4e36f..bb2aed622 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/RemoveFormFieldHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/RemoveFormFieldHandler.js @@ -10,12 +10,12 @@ import { runRecursively } from '@bpmn-io/form-js-viewer'; -export default class RemoveFormFieldHandler { +export class RemoveFormFieldHandler { /** * @constructor - * @param { import('../../../FormEditor').default } formEditor - * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry + * @param { import('../../../FormEditor').FormEditor } formEditor + * @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry */ constructor(formEditor, formFieldRegistry) { this._formEditor = formEditor; diff --git a/packages/form-js-editor/src/features/modeling/cmd/UpdateIdClaimHandler.js b/packages/form-js-editor/src/features/modeling/cmd/UpdateIdClaimHandler.js index def67d2db..db4efc58b 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/UpdateIdClaimHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/UpdateIdClaimHandler.js @@ -1,8 +1,8 @@ -export default class UpdateIdClaimHandler { +export class UpdateIdClaimHandler { /** * @constructor - * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry + * @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry */ constructor(formFieldRegistry) { this._formFieldRegistry = formFieldRegistry; diff --git a/packages/form-js-editor/src/features/modeling/cmd/UpdateKeyClaimHandler.js b/packages/form-js-editor/src/features/modeling/cmd/UpdateKeyClaimHandler.js index 6a07cd1cd..496a79d96 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/UpdateKeyClaimHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/UpdateKeyClaimHandler.js @@ -1,4 +1,4 @@ -export default class UpdateKeyClaimHandler { +export class UpdateKeyClaimHandler { /** * @constructor diff --git a/packages/form-js-editor/src/features/modeling/cmd/UpdatePathClaimHandler.js b/packages/form-js-editor/src/features/modeling/cmd/UpdatePathClaimHandler.js index dbdbea990..a7bcfadd1 100644 --- a/packages/form-js-editor/src/features/modeling/cmd/UpdatePathClaimHandler.js +++ b/packages/form-js-editor/src/features/modeling/cmd/UpdatePathClaimHandler.js @@ -1,4 +1,4 @@ -export default class UpdatePathClaimHandler { +export class UpdatePathClaimHandler { /** * @constructor diff --git a/packages/form-js-editor/src/features/modeling/index.js b/packages/form-js-editor/src/features/modeling/index.js index be62bd84b..96044e2d3 100644 --- a/packages/form-js-editor/src/features/modeling/index.js +++ b/packages/form-js-editor/src/features/modeling/index.js @@ -1,13 +1,12 @@ -import Modeling from './Modeling'; - -import FormLayoutUpdater from './FormLayoutUpdater'; - -import behaviorModule from './behavior'; import commandModule from 'diagram-js/lib/command'; -export default { +import { BehaviorModule } from './behavior'; +import { FormLayoutUpdater } from './FormLayoutUpdater'; +import { Modeling } from './Modeling'; + +export const ModelingModule = { __depends__: [ - behaviorModule, + BehaviorModule, commandModule ], __init__: [ 'formLayoutUpdater', 'modeling' ], diff --git a/packages/form-js-editor/src/features/palette/PaletteModule.js b/packages/form-js-editor/src/features/palette/PaletteModule.js deleted file mode 100644 index 710b8222e..000000000 --- a/packages/form-js-editor/src/features/palette/PaletteModule.js +++ /dev/null @@ -1,7 +0,0 @@ -import SectionModuleBase from '../SectionModuleBase'; - -export default class PaletteModule extends SectionModuleBase { - constructor(eventBus) { super(eventBus, 'palette'); } -} - -PaletteModule.$inject = [ 'eventBus' ]; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/palette/PaletteRenderer.js b/packages/form-js-editor/src/features/palette/PaletteRenderer.js new file mode 100644 index 000000000..de971166e --- /dev/null +++ b/packages/form-js-editor/src/features/palette/PaletteRenderer.js @@ -0,0 +1,7 @@ +import { SectionModuleBase } from '../SectionModuleBase'; + +export class PaletteRenderer extends SectionModuleBase { + constructor(eventBus) { super(eventBus, 'palette'); } +} + +PaletteRenderer.$inject = [ 'eventBus' ]; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/palette/components/Palette.js b/packages/form-js-editor/src/features/palette/components/Palette.js index 518acdfe3..f4ccbf766 100644 --- a/packages/form-js-editor/src/features/palette/components/Palette.js +++ b/packages/form-js-editor/src/features/palette/components/Palette.js @@ -6,21 +6,12 @@ import { } from 'preact/hooks'; import { useService } from '../../../render/hooks'; - -import { - Slot -} from '../../render-injection/slot-fill'; - -import { - CloseIcon, - SearchIcon, - iconsByType -} from '../../../render/components/icons'; - -import PaletteEntry from './PaletteEntry'; - import { sanitizeImageSource } from '@bpmn-io/form-js-viewer'; +import { CloseIcon, SearchIcon, iconsByType } from '../../../render/components/icons'; +import { Slot } from '../../render-injection/slot-fill'; +import { PaletteEntry } from './PaletteEntry'; + /** * @typedef { import('@bpmn-io/form-js-viewer').FormFields } FormFields * @@ -56,7 +47,7 @@ export const PALETTE_GROUPS = [ } ]; -export default function Palette(props) { +export function Palette(props) { const formFields = useService('formFields'); diff --git a/packages/form-js-editor/src/features/palette/components/PaletteEntry.js b/packages/form-js-editor/src/features/palette/components/PaletteEntry.js index 8d55a8de7..e455b7384 100644 --- a/packages/form-js-editor/src/features/palette/components/PaletteEntry.js +++ b/packages/form-js-editor/src/features/palette/components/PaletteEntry.js @@ -1,6 +1,6 @@ import { useService } from '../../../render/hooks'; -export default function PaletteEntry(props) { +export function PaletteEntry(props) { const { type, label, diff --git a/packages/form-js-editor/src/features/palette/index.js b/packages/form-js-editor/src/features/palette/index.js index 53432a752..729dc9335 100644 --- a/packages/form-js-editor/src/features/palette/index.js +++ b/packages/form-js-editor/src/features/palette/index.js @@ -1,5 +1,5 @@ -import PaletteModule from './PaletteModule'; +import { PaletteRenderer } from './PaletteRenderer'; -export default { - palette: [ 'type', PaletteModule ] +export const PaletteModule = { + palette: [ 'type', PaletteRenderer ] }; diff --git a/packages/form-js-editor/src/features/properties-panel/PropertiesPanel.js b/packages/form-js-editor/src/features/properties-panel/PropertiesPanel.js index 4816af615..50314ac4f 100644 --- a/packages/form-js-editor/src/features/properties-panel/PropertiesPanel.js +++ b/packages/form-js-editor/src/features/properties-panel/PropertiesPanel.js @@ -1,4 +1,4 @@ -import { PropertiesPanel } from '@bpmn-io/properties-panel'; +import { PropertiesPanel as BasePropertiesPanel } from '@bpmn-io/properties-panel'; import { useCallback, @@ -14,7 +14,7 @@ import { FormPropertiesPanelContext } from './context'; import { PropertiesPanelHeaderProvider } from './PropertiesPanelHeaderProvider'; import { PropertiesPanelPlaceholderProvider } from './PropertiesPanelPlaceholderProvider'; -export default function FormPropertiesPanel(props) { +export function PropertiesPanel(props) { const { eventBus, getProviders, @@ -100,7 +100,7 @@ export default function FormPropertiesPanel(props) { onBlurCapture={ onBlur } > - ({ groups}) => Array } } PropertiesProvider */ @@ -23,7 +23,7 @@ const DEFAULT_PRIORITY = 1000; * @param {Injector} injector * @param {EventBus} eventBus */ -export default class PropertiesPanelRenderer { +export class PropertiesPanelRenderer { constructor(propertiesPanelConfig, injector, eventBus) { const { diff --git a/packages/form-js-editor/src/features/properties-panel/PropertiesProvider.js b/packages/form-js-editor/src/features/properties-panel/PropertiesProvider.js index 2040e9b6e..4628f84d5 100644 --- a/packages/form-js-editor/src/features/properties-panel/PropertiesProvider.js +++ b/packages/form-js-editor/src/features/properties-panel/PropertiesProvider.js @@ -13,7 +13,7 @@ import { import { hasEntryConfigured } from './Util'; -export default class PropertiesProvider { +export class PropertiesProvider { constructor(propertiesPanel, injector) { this._injector = injector; propertiesPanel.registerProvider(this); diff --git a/packages/form-js-editor/src/features/properties-panel/components/AutoFocusSelect.js b/packages/form-js-editor/src/features/properties-panel/components/AutoFocusSelect.js index 0dc92cf39..cf947f551 100644 --- a/packages/form-js-editor/src/features/properties-panel/components/AutoFocusSelect.js +++ b/packages/form-js-editor/src/features/properties-panel/components/AutoFocusSelect.js @@ -10,7 +10,7 @@ import { import { useService } from '../hooks'; -export default function AutoFocusSelectEntry(props) { +export function AutoFocusSelectEntry(props) { const { autoFocusEntry, element, diff --git a/packages/form-js-editor/src/features/properties-panel/components/index.js b/packages/form-js-editor/src/features/properties-panel/components/index.js index 5548ab5b1..076df9ab3 100644 --- a/packages/form-js-editor/src/features/properties-panel/components/index.js +++ b/packages/form-js-editor/src/features/properties-panel/components/index.js @@ -1 +1 @@ -export { default as AutoFocusSelectEntry } from './AutoFocusSelect'; \ No newline at end of file +export { AutoFocusSelectEntry } from './AutoFocusSelect'; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/properties-panel/context/FormPropertiesPanelContext.js b/packages/form-js-editor/src/features/properties-panel/context/FormPropertiesPanelContext.js index 3d1c49052..d82e5bf59 100644 --- a/packages/form-js-editor/src/features/properties-panel/context/FormPropertiesPanelContext.js +++ b/packages/form-js-editor/src/features/properties-panel/context/FormPropertiesPanelContext.js @@ -8,8 +8,6 @@ import { createContext } from 'preact'; */ function getService(type, strict) {} -const PropertiesPanelContext = createContext({ +export const FormPropertiesPanelContext = createContext({ getService }); - -export default PropertiesPanelContext; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/properties-panel/context/index.js b/packages/form-js-editor/src/features/properties-panel/context/index.js index efc511a07..833d0fb3b 100644 --- a/packages/form-js-editor/src/features/properties-panel/context/index.js +++ b/packages/form-js-editor/src/features/properties-panel/context/index.js @@ -1 +1 @@ -export { default as FormPropertiesPanelContext } from './FormPropertiesPanelContext'; \ No newline at end of file +export { FormPropertiesPanelContext } from './FormPropertiesPanelContext'; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ActionEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ActionEntry.js index 364987891..e15631f95 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ActionEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ActionEntry.js @@ -3,7 +3,7 @@ import { get } from 'min-dash'; import { SelectEntry, isSelectEntryEdited } from '@bpmn-io/properties-panel'; -export default function ActionEntry(props) { +export function ActionEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/AdornerEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/AdornerEntry.js index a9e28ca6b..21b485f5b 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/AdornerEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/AdornerEntry.js @@ -3,7 +3,7 @@ import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-pane import { get, set } from 'min-dash'; import { useService, useVariables } from '../hooks'; -export default function AdornerEntry(props) { +export function AdornerEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/AltTextEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/AltTextEntry.js index dcd6e6716..3b840cc92 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/AltTextEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/AltTextEntry.js @@ -4,7 +4,7 @@ import { useService, useVariables } from '../hooks'; import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-panel'; -export default function AltTextEntry(props) { +export function AltTextEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ColumnsEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ColumnsEntry.js index 779f219df..618dfb9ec 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ColumnsEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ColumnsEntry.js @@ -12,7 +12,7 @@ import { MIN_COLUMNS } from '../../../core/FormLayoutValidator'; export const AUTO_OPTION_VALUE = ''; -export default function ColumnsEntry(props) { +export function ColumnsEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ConditionEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ConditionEntry.js index 5f24f9979..ca1b318c4 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ConditionEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ConditionEntry.js @@ -3,7 +3,7 @@ import { get } from 'min-dash'; import { useService, useVariables } from '../hooks'; -export default function ConditionEntry(props) { +export function ConditionEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/CustomValueEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/CustomValueEntry.js index 508bbef05..12c5b259e 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/CustomValueEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/CustomValueEntry.js @@ -5,7 +5,7 @@ import { useService } from '../hooks'; import { TextFieldEntry } from '@bpmn-io/properties-panel'; -export default function CustomValueEntry(props) { +export function CustomValueEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeConstraintsEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeConstraintsEntry.js index 098d2f976..ed1c7010a 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeConstraintsEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeConstraintsEntry.js @@ -4,7 +4,7 @@ import { DATETIME_SUBTYPES, DATE_DISALLOW_PAST_PATH, TIME_INTERVAL_PATH } from ' import { get } from 'min-dash'; -export default function DateTimeConstraintsEntry(props) { +export function DateTimeConstraintsEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeEntry.js index ff9d245b4..c4baa38bf 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeEntry.js @@ -15,7 +15,7 @@ import { import { get } from 'min-dash'; -export default function DateTimeEntry(props) { +export function DateTimeEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeSerializationEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeFormatEntry.js similarity index 95% rename from packages/form-js-editor/src/features/properties-panel/entries/DateTimeSerializationEntry.js rename to packages/form-js-editor/src/features/properties-panel/entries/DateTimeFormatEntry.js index 06f269f77..3a09289fb 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DateTimeSerializationEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DateTimeFormatEntry.js @@ -4,7 +4,7 @@ import { DATETIME_SUBTYPES, TIME_SERIALISING_FORMATS, TIME_SERIALISINGFORMAT_LAB import { get } from 'min-dash'; -export default function DateTimeFormatEntry(props) { +export function DateTimeFormatEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DefaultValueEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DefaultValueEntry.js index fa45bead7..080b93500 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DefaultValueEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DefaultValueEntry.js @@ -17,7 +17,7 @@ import { countDecimals, INPUTS, isValidNumber, OPTIONS_INPUTS } from '../Util'; export const EMPTY_OPTION = null; -export default function DefaultOptionEntry(props) { +export function DefaultValueEntry(props) { const { editField, field @@ -42,7 +42,7 @@ export default function DefaultOptionEntry(props) { } - const defaultOptions = { + const defaulValueBase = { editField, field, id: 'defaultValue', @@ -50,21 +50,21 @@ export default function DefaultOptionEntry(props) { }; entries.push({ - ...defaultOptions, + ...defaulValueBase, component: DefaultValueCheckbox, isEdited: isSelectEntryEdited, isDefaultVisible: isDefaultVisible((field) => field.type === 'checkbox') }); entries.push({ - ...defaultOptions, + ...defaulValueBase, component: DefaultValueNumber, isEdited: isTextFieldEntryEdited, isDefaultVisible: isDefaultVisible((field) => field.type === 'number') }); entries.push({ - ...defaultOptions, + ...defaulValueBase, component: DefaultValueSingleSelect, isEdited: isSelectEntryEdited, isDefaultVisible: isDefaultVisible((field) => field.type === 'radio' || field.type === 'select') @@ -73,14 +73,14 @@ export default function DefaultOptionEntry(props) { // todo(Skaiir): implement a multiselect equivalent (cf. https://github.com/bpmn-io/form-js/issues/265) entries.push({ - ...defaultOptions, + ...defaulValueBase, component: DefaultValueTextfield, isEdited: isTextFieldEntryEdited, isDefaultVisible: isDefaultVisible((field) => field.type === 'textfield') }); entries.push({ - ...defaultOptions, + ...defaulValueBase, component: DefaultValueTextarea, isEdited: isTextAreaEntryEdited, isDefaultVisible: isDefaultVisible((field) => field.type === 'textarea') diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DescriptionEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DescriptionEntry.js index 16925f2e8..f244c967d 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DescriptionEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DescriptionEntry.js @@ -7,7 +7,7 @@ import { useService, useVariables } from '../hooks'; import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-panel'; -export default function DescriptionEntry(props) { +export function DescriptionEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/DisabledEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/DisabledEntry.js index 7a72872c4..1988604ed 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/DisabledEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/DisabledEntry.js @@ -5,7 +5,7 @@ import { INPUTS } from '../Util'; import { ToggleSwitchEntry, isToggleSwitchEntryEdited } from '@bpmn-io/properties-panel'; -export default function DisabledEntry(props) { +export function DisabledEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/GroupAppearanceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/GroupAppearanceEntry.js index 7db6dea9d..047f73d28 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/GroupAppearanceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/GroupAppearanceEntry.js @@ -1,6 +1,6 @@ import { simpleBoolEntryFactory } from './factories'; -export default function GroupAppearanceEntry(props) { +export function GroupAppearanceEntry(props) { const { field, } = props; diff --git a/packages/form-js-editor/src/features/properties-panel/entries/HeightEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/HeightEntry.js index bba86d8cd..586f32a5f 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/HeightEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/HeightEntry.js @@ -3,7 +3,7 @@ import { NumberFieldEntry, isNumberFieldEntryEdited } from '@bpmn-io/properties- import { get, isFunction } from 'min-dash'; import { useService } from '../hooks'; -export default function HeightEntry(props) { +export function HeightEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/IFrameHeightEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/IFrameHeightEntry.js index 2ab30cb5a..f1a69a1d1 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/IFrameHeightEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/IFrameHeightEntry.js @@ -1,6 +1,6 @@ -import HeightEntry from './HeightEntry'; +import { HeightEntry } from './HeightEntry'; -export default function IFrameHeightEntry(props) { +export function IFrameHeightEntry(props) { return [ ...HeightEntry({ ...props, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/IFrameUrlEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/IFrameUrlEntry.js index 100688998..01014a67c 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/IFrameUrlEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/IFrameUrlEntry.js @@ -7,7 +7,7 @@ import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-pane const HTTPS_PATTERN = /^(https):\/\/*/i; // eslint-disable-line no-useless-escape -export default function IFrameUrlEntry(props) { +export function IFrameUrlEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/IdEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/IdEntry.js index e571e692a..a982ddce6 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/IdEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/IdEntry.js @@ -5,7 +5,7 @@ import { useService } from '../hooks'; import { TextFieldEntry, isTextFieldEntryEdited } from '@bpmn-io/properties-panel'; -export default function IdEntry(props) { +export function IdEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ImageSourceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ImageSourceEntry.js index 4461f85f7..6ff88ebcf 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ImageSourceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ImageSourceEntry.js @@ -4,7 +4,7 @@ import { useService, useVariables } from '../hooks'; import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-panel'; -export default function SourceEntry(props) { +export function ImageSourceEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/InputKeyOptionsSourceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/InputKeyOptionsSourceEntry.js index 92f42d1a6..33cc6a00a 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/InputKeyOptionsSourceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/InputKeyOptionsSourceEntry.js @@ -4,7 +4,7 @@ import { useService } from '../hooks'; import { OPTIONS_SOURCES, OPTIONS_SOURCES_PATHS } from '@bpmn-io/form-js-viewer'; -export default function InputKeyOptionsSourceEntry(props) { +export function InputKeyOptionsSourceEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/KeyEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/KeyEntry.js index 3e79a7aad..9a9fd0128 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/KeyEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/KeyEntry.js @@ -7,7 +7,7 @@ import { useService } from '../hooks'; import { TextFieldEntry, isTextFieldEntryEdited } from '@bpmn-io/properties-panel'; -export default function KeyEntry(props) { +export function KeyEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/LabelEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/LabelEntry.js index 1b4c69563..70edc6882 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/LabelEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/LabelEntry.js @@ -4,7 +4,7 @@ import { useService, useVariables } from '../hooks'; import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-panel'; import { get } from 'min-dash'; -export default function LabelEntry(props) { +export function LabelEntry(props) { const { field, editField diff --git a/packages/form-js-editor/src/features/properties-panel/entries/LayouterAppearanceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/LayouterAppearanceEntry.js index 26669a099..e08979e82 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/LayouterAppearanceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/LayouterAppearanceEntry.js @@ -1,6 +1,6 @@ import { simpleSelectEntryFactory } from './factories'; -export default function LayouterAppearanceEntry(props) { +export function LayouterAppearanceEntry(props) { const { field } = props; diff --git a/packages/form-js-editor/src/features/properties-panel/entries/NumberEntries.js b/packages/form-js-editor/src/features/properties-panel/entries/NumberEntries.js index e407e5c0c..5ca0b4ab8 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/NumberEntries.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/NumberEntries.js @@ -5,7 +5,7 @@ import { get } from 'min-dash'; import { useService } from '../hooks'; import { countDecimals, isValidNumber } from '../Util'; -export default function NumberEntries(props) { +export function NumberEntries(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/NumberSerializationEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/NumberSerializationEntry.js index 600417e13..7cea4e372 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/NumberSerializationEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/NumberSerializationEntry.js @@ -4,7 +4,8 @@ import { get } from 'min-dash'; import Big from 'big.js'; -export default function NumberSerializationEntry(props) { + +export function NumberSerializationEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/OptionsExpressionEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/OptionsExpressionEntry.js index 6d2009c67..6379a2612 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/OptionsExpressionEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/OptionsExpressionEntry.js @@ -3,8 +3,7 @@ import { get } from 'min-dash'; import { useService, useVariables } from '../hooks'; import { OPTIONS_SOURCES, OPTIONS_SOURCES_PATHS } from '@bpmn-io/form-js-viewer'; - -export default function OptionsExpressionEntry(props) { +export function OptionsExpressionEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/OptionsSourceSelectEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/OptionsSourceSelectEntry.js index 2ffdea6c8..6d5ea391b 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/OptionsSourceSelectEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/OptionsSourceSelectEntry.js @@ -11,7 +11,7 @@ import { } from '@bpmn-io/form-js-viewer'; -export default function OptionsSourceSelectEntry(props) { +export function OptionsSourceSelectEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/PathEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/PathEntry.js index 60e8911a6..bc8137ff9 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/PathEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/PathEntry.js @@ -7,7 +7,7 @@ import { TextFieldEntry, isTextFieldEntryEdited } from '@bpmn-io/properties-pane import { isValidDotPath } from '../Util'; -export default function PathEntry(props) { +export function PathEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ReadonlyEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ReadonlyEntry.js index eb15a30dc..d100f94e1 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ReadonlyEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ReadonlyEntry.js @@ -7,7 +7,7 @@ import { useService, useVariables } from '../hooks'; import { FeelToggleSwitchEntry, isFeelEntryEdited } from '@bpmn-io/properties-panel'; -export default function ReadonlyEntry(props) { +export function ReadonlyEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/RepeatableEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/RepeatableEntry.js index 20d8911ef..3d2afdb11 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/RepeatableEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/RepeatableEntry.js @@ -1,6 +1,6 @@ import { simpleRangeIntegerEntryFactory, simpleBoolEntryFactory } from './factories'; -export default function RepeatableEntry(props) { +export function RepeatableEntry(props) { const { field, getService diff --git a/packages/form-js-editor/src/features/properties-panel/entries/SelectEntries.js b/packages/form-js-editor/src/features/properties-panel/entries/SelectEntries.js index 9b3a45f01..8c7dcef37 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/SelectEntries.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/SelectEntries.js @@ -1,7 +1,7 @@ import { simpleBoolEntryFactory } from './factories'; -export default function SelectEntries(props) { +export function SelectEntries(props) { const entries = [ simpleBoolEntryFactory({ id: 'searchable', diff --git a/packages/form-js-editor/src/features/properties-panel/entries/StaticOptionsSourceEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/StaticOptionsSourceEntry.js index c6a5800b3..abfba0cee 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/StaticOptionsSourceEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/StaticOptionsSourceEntry.js @@ -1,9 +1,9 @@ import { isUndefined, without } from 'min-dash'; import { arrayAdd } from '../Util'; -import ValueEntry from './ValueEntry'; +import { ValueEntry } from './ValueEntry'; import { OPTIONS_SOURCES, OPTIONS_SOURCES_PATHS } from '@bpmn-io/form-js-viewer'; -export default function StaticOptionsSourceEntry(props) { +export function StaticOptionsSourceEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/TextEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/TextEntry.js index e94b1b206..926411196 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/TextEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/TextEntry.js @@ -7,7 +7,7 @@ import { FeelTemplatingEntry, isFeelEntryEdited } from '@bpmn-io/properties-pane import { useMemo } from 'preact/hooks'; -export default function TextEntry(props) { +export function TextEntry(props) { const { editField, field diff --git a/packages/form-js-editor/src/features/properties-panel/entries/ValueEntry.js b/packages/form-js-editor/src/features/properties-panel/entries/ValueEntry.js index b77e2ab97..67dee370b 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/ValueEntry.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/ValueEntry.js @@ -8,7 +8,7 @@ import { useService } from '../hooks'; import { TextFieldEntry } from '@bpmn-io/properties-panel'; -export default function ValueEntry(props) { +export function ValueEntry(props) { const { editField, field, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/factories/index.js b/packages/form-js-editor/src/features/properties-panel/entries/factories/index.js index 8d1cceee5..70231d36c 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/factories/index.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/factories/index.js @@ -1,5 +1,5 @@ -export { default as simpleStringEntryFactory } from './simpleStringEntryFactory'; -export { default as simpleBoolEntryFactory } from './simpleBoolEntryFactory'; -export { default as zeroPositiveIntegerEntryFactory } from './zeroPositiveIntegerEntryFactory'; -export { default as simpleSelectEntryFactory } from './simpleSelectEntryFactory'; +export { simpleStringEntryFactory } from './simpleStringEntryFactory'; +export { simpleBoolEntryFactory } from './simpleBoolEntryFactory'; +export { zeroPositiveIntegerEntryFactory } from './zeroPositiveIntegerEntryFactory'; +export { simpleSelectEntryFactory } from './simpleSelectEntryFactory'; export { simpleRangeIntegerEntryFactory } from './simpleRangeIntegerEntryFactory'; diff --git a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleBoolEntryFactory.js b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleBoolEntryFactory.js index 052612457..8daef0835 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleBoolEntryFactory.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleBoolEntryFactory.js @@ -1,7 +1,7 @@ import { get } from 'min-dash'; import { ToggleSwitchEntry, isToggleSwitchEntryEdited } from '@bpmn-io/properties-panel'; -export default function simpleBoolEntryFactory(options) { +export function simpleBoolEntryFactory(options) { const { id, label, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleSelectEntryFactory.js b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleSelectEntryFactory.js index b9d344cef..f0c42b990 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleSelectEntryFactory.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleSelectEntryFactory.js @@ -1,7 +1,7 @@ import { get } from 'min-dash'; import { isSelectEntryEdited, SelectEntry } from '@bpmn-io/properties-panel'; -export default function simpleSelectEntryFactory(options) { +export function simpleSelectEntryFactory(options) { const { id, label, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleStringEntryFactory.js b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleStringEntryFactory.js index 719d6d58f..88173470f 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleStringEntryFactory.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/factories/simpleStringEntryFactory.js @@ -2,7 +2,7 @@ import { get } from 'min-dash'; import { useService } from '../../hooks'; import { TextFieldEntry, isTextFieldEntryEdited } from '@bpmn-io/properties-panel'; -export default function simpleStringEntryFactory(options) { +export function simpleStringEntryFactory(options) { const { id, label, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.js b/packages/form-js-editor/src/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.js index 0d473b252..b81f059fa 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.js @@ -2,7 +2,7 @@ import { get } from 'min-dash'; import { useService } from '../../hooks'; import { NumberFieldEntry, isNumberFieldEntryEdited } from '@bpmn-io/properties-panel'; -export default function zeroPositiveIntegerEntryFactory(options) { +export function zeroPositiveIntegerEntryFactory(options) { const { id, label, diff --git a/packages/form-js-editor/src/features/properties-panel/entries/index.js b/packages/form-js-editor/src/features/properties-panel/entries/index.js index df6d6525e..23c812bf3 100644 --- a/packages/form-js-editor/src/features/properties-panel/entries/index.js +++ b/packages/form-js-editor/src/features/properties-panel/entries/index.js @@ -1,36 +1,36 @@ -export { default as ActionEntry } from './ActionEntry'; -export { default as AltTextEntry } from './AltTextEntry'; -export { default as ColumnsEntry } from './ColumnsEntry'; -export { default as DescriptionEntry } from './DescriptionEntry'; -export { default as DefaultValueEntry } from './DefaultValueEntry'; -export { default as DisabledEntry } from './DisabledEntry'; -export { default as IdEntry } from './IdEntry'; -export { default as KeyEntry } from './KeyEntry'; -export { default as PathEntry } from './PathEntry'; -export { default as GroupAppearanceEntry } from './GroupAppearanceEntry'; -export { default as LabelEntry } from './LabelEntry'; -export { default as IFrameHeightEntry } from './IFrameHeightEntry'; -export { default as IFrameUrlEntry } from './IFrameUrlEntry'; -export { default as ImageSourceEntry } from './ImageSourceEntry'; -export { default as TextEntry } from './TextEntry'; -export { default as HeightEntry } from './HeightEntry'; -export { default as NumberEntries } from './NumberEntries'; -export { default as NumberSerializationEntry } from './NumberSerializationEntry'; -export { default as DateTimeEntry } from './DateTimeEntry'; -export { default as DateTimeConstraintsEntry } from './DateTimeConstraintsEntry'; -export { default as DateTimeSerializationEntry } from './DateTimeSerializationEntry'; -export { default as SelectEntries } from './SelectEntries'; -export { default as ValueEntry } from './ValueEntry'; -export { default as CustomValueEntry } from './CustomValueEntry'; -export { default as OptionsSourceSelectEntry } from './OptionsSourceSelectEntry'; -export { default as InputKeyOptionsSourceEntry } from './InputKeyOptionsSourceEntry'; -export { default as StaticOptionsSourceEntry } from './StaticOptionsSourceEntry'; -export { default as AdornerEntry } from './AdornerEntry'; -export { default as ReadonlyEntry } from './ReadonlyEntry'; -export { default as LayouterAppearanceEntry } from './LayouterAppearanceEntry'; -export { default as RepeatableEntry } from './RepeatableEntry'; -export { default as ConditionEntry } from './ConditionEntry'; -export { default as OptionsExpressionEntry } from './OptionsExpressionEntry'; +export { ActionEntry } from './ActionEntry'; +export { AltTextEntry } from './AltTextEntry'; +export { ColumnsEntry } from './ColumnsEntry'; +export { DescriptionEntry } from './DescriptionEntry'; +export { DefaultValueEntry } from './DefaultValueEntry'; +export { DisabledEntry } from './DisabledEntry'; +export { IdEntry } from './IdEntry'; +export { KeyEntry } from './KeyEntry'; +export { PathEntry } from './PathEntry'; +export { GroupAppearanceEntry } from './GroupAppearanceEntry'; +export { LabelEntry } from './LabelEntry'; +export { IFrameHeightEntry } from './IFrameHeightEntry'; +export { IFrameUrlEntry } from './IFrameUrlEntry'; +export { ImageSourceEntry } from './ImageSourceEntry'; +export { TextEntry } from './TextEntry'; +export { HeightEntry } from './HeightEntry'; +export { NumberEntries } from './NumberEntries'; +export { NumberSerializationEntry } from './NumberSerializationEntry'; +export { DateTimeEntry } from './DateTimeEntry'; +export { DateTimeConstraintsEntry } from './DateTimeConstraintsEntry'; +export { DateTimeFormatEntry } from './DateTimeFormatEntry'; +export { SelectEntries } from './SelectEntries'; +export { ValueEntry } from './ValueEntry'; +export { CustomValueEntry } from './CustomValueEntry'; +export { OptionsSourceSelectEntry } from './OptionsSourceSelectEntry'; +export { InputKeyOptionsSourceEntry } from './InputKeyOptionsSourceEntry'; +export { StaticOptionsSourceEntry } from './StaticOptionsSourceEntry'; +export { AdornerEntry } from './AdornerEntry'; +export { ReadonlyEntry } from './ReadonlyEntry'; +export { LayouterAppearanceEntry } from './LayouterAppearanceEntry'; +export { RepeatableEntry } from './RepeatableEntry'; +export { ConditionEntry } from './ConditionEntry'; +export { OptionsExpressionEntry } from './OptionsExpressionEntry'; export { TableDataSourceEntry } from './TableDataSourceEntry'; export { PaginationEntry } from './PaginationEntry'; export { RowCountEntry } from './RowCountEntry'; diff --git a/packages/form-js-editor/src/features/properties-panel/groups/AppearanceGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/AppearanceGroup.js index 2314ee162..3e3783fb2 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/AppearanceGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/AppearanceGroup.js @@ -5,7 +5,7 @@ import { } from '../entries'; -export default function AppearanceGroup(field, editField, getService) { +export function AppearanceGroup(field, editField, getService) { const entries = [ ...AdornerEntry({ field, editField }), diff --git a/packages/form-js-editor/src/features/properties-panel/groups/ConstraintsGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/ConstraintsGroup.js index 15025fde5..82692c466 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/ConstraintsGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/ConstraintsGroup.js @@ -3,7 +3,7 @@ import { } from '../entries'; -export default function ConstraintsGroup(field, editField) { +export function ConstraintsGroup(field, editField) { const entries = [ ...DateTimeConstraintsEntry({ field, editField }) diff --git a/packages/form-js-editor/src/features/properties-panel/groups/CustomPropertiesGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/CustomPropertiesGroup.js index 407677728..2b31df645 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/CustomPropertiesGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/CustomPropertiesGroup.js @@ -7,7 +7,7 @@ import { import { CustomValueEntry } from '../entries'; -export default function CustomPropertiesGroup(field, editField) { +export function CustomPropertiesGroup(field, editField) { const { properties = {}, type diff --git a/packages/form-js-editor/src/features/properties-panel/groups/GeneralGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/GeneralGroup.js index 76bf533f0..2886f8dd0 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/GeneralGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/GeneralGroup.js @@ -24,7 +24,7 @@ import { } from '../entries'; -export default function GeneralGroup(field, editField, getService) { +export function GeneralGroup(field, editField, getService) { const entries = [ ...IdEntry({ field, editField }), diff --git a/packages/form-js-editor/src/features/properties-panel/groups/LayoutGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/LayoutGroup.js index 8017bdc84..cc62cdcf7 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/LayoutGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/LayoutGroup.js @@ -1,6 +1,6 @@ import { ColumnsEntry } from '../entries'; -export default function LayoutGroup(field, editField) { +export function LayoutGroup(field, editField) { const { type } = field; if (type === 'default') { diff --git a/packages/form-js-editor/src/features/properties-panel/groups/OptionsGroups.js b/packages/form-js-editor/src/features/properties-panel/groups/OptionsGroups.js index d8789bdba..d27d29b6c 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/OptionsGroups.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/OptionsGroups.js @@ -14,7 +14,7 @@ import { hasOptionsGroupsConfigured } from '../Util'; -export default function OptionsGroups(field, editField, getService) { +export function OptionsGroups(field, editField, getService) { const { type } = field; diff --git a/packages/form-js-editor/src/features/properties-panel/groups/SerializationGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/SerializationGroup.js index 828bd3c3f..17b664288 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/SerializationGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/SerializationGroup.js @@ -1,14 +1,14 @@ import { NumberSerializationEntry, - DateTimeSerializationEntry + DateTimeFormatEntry } from '../entries'; -export default function SerializationGroup(field, editField) { +export function SerializationGroup(field, editField) { const entries = [ ...NumberSerializationEntry({ field, editField }), - ...DateTimeSerializationEntry({ field, editField }) + ...DateTimeFormatEntry({ field, editField }) ]; if (!entries.length) { diff --git a/packages/form-js-editor/src/features/properties-panel/groups/ValidationGroup.js b/packages/form-js-editor/src/features/properties-panel/groups/ValidationGroup.js index 704abedfc..4fb957e2b 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/ValidationGroup.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/ValidationGroup.js @@ -32,7 +32,7 @@ const VALIDATION_TYPE_OPTIONS = { }, }; -export default function ValidationGroup(field, editField) { +export function ValidationGroup(field, editField) { const { type } = field; const validate = get(field, [ 'validate' ], {}); const isCustomValidation = [ undefined, VALIDATION_TYPE_OPTIONS.custom.value ].includes(validate.validationType); diff --git a/packages/form-js-editor/src/features/properties-panel/groups/index.js b/packages/form-js-editor/src/features/properties-panel/groups/index.js index e473bd2bd..1b6b5fb2e 100644 --- a/packages/form-js-editor/src/features/properties-panel/groups/index.js +++ b/packages/form-js-editor/src/features/properties-panel/groups/index.js @@ -1,10 +1,10 @@ -export { default as GeneralGroup } from './GeneralGroup'; -export { default as SerializationGroup } from './SerializationGroup'; -export { default as ConstraintsGroup } from './ConstraintsGroup'; -export { default as ValidationGroup } from './ValidationGroup'; -export { default as OptionsGroups } from './OptionsGroups'; -export { default as CustomPropertiesGroup } from './CustomPropertiesGroup'; -export { default as AppearanceGroup } from './AppearanceGroup'; -export { default as LayoutGroup } from './LayoutGroup'; +export { GeneralGroup } from './GeneralGroup'; +export { SerializationGroup } from './SerializationGroup'; +export { ConstraintsGroup } from './ConstraintsGroup'; +export { ValidationGroup } from './ValidationGroup'; +export { OptionsGroups } from './OptionsGroups'; +export { CustomPropertiesGroup } from './CustomPropertiesGroup'; +export { AppearanceGroup } from './AppearanceGroup'; +export { LayoutGroup } from './LayoutGroup'; export { ConditionGroup } from './ConditionGroup'; export { TableHeaderGroups } from './TableHeaderGroups'; diff --git a/packages/form-js-editor/src/features/properties-panel/hooks/index.js b/packages/form-js-editor/src/features/properties-panel/hooks/index.js index 70c7457b7..42d3b01d0 100644 --- a/packages/form-js-editor/src/features/properties-panel/hooks/index.js +++ b/packages/form-js-editor/src/features/properties-panel/hooks/index.js @@ -1,2 +1,2 @@ export { useVariables } from './useVariables'; -export { default as useService } from './usePropertiesPanelService'; \ No newline at end of file +export { useService } from './usePropertiesPanelService'; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/properties-panel/hooks/usePropertiesPanelService.js b/packages/form-js-editor/src/features/properties-panel/hooks/usePropertiesPanelService.js index 8923a35c9..7ea0335d5 100644 --- a/packages/form-js-editor/src/features/properties-panel/hooks/usePropertiesPanelService.js +++ b/packages/form-js-editor/src/features/properties-panel/hooks/usePropertiesPanelService.js @@ -5,7 +5,7 @@ import { import { FormPropertiesPanelContext } from '../context'; -export default function(type, strict) { +export function useService(type, strict) { const { getService } = useContext(FormPropertiesPanelContext); diff --git a/packages/form-js-editor/src/features/properties-panel/hooks/useVariables.js b/packages/form-js-editor/src/features/properties-panel/hooks/useVariables.js index 05906becd..ed85bff07 100644 --- a/packages/form-js-editor/src/features/properties-panel/hooks/useVariables.js +++ b/packages/form-js-editor/src/features/properties-panel/hooks/useVariables.js @@ -1,5 +1,5 @@ import { getSchemaVariables } from '@bpmn-io/form-js-viewer'; -import useService from './usePropertiesPanelService'; +import { useService } from './usePropertiesPanelService'; /** * Retrieve list of variables from the form schema. diff --git a/packages/form-js-editor/src/features/properties-panel/icons/index.js b/packages/form-js-editor/src/features/properties-panel/icons/index.js index 82b3ede27..47f82a2b0 100644 --- a/packages/form-js-editor/src/features/properties-panel/icons/index.js +++ b/packages/form-js-editor/src/features/properties-panel/icons/index.js @@ -1,4 +1,6 @@ -export { default as CreateIcon } from './pp-create.svg'; -export { default as ListArrowIcon } from './pp-list-arrow.svg'; -export { default as ListDeleteIcon } from './pp-list-delete.svg'; -export { default as SectionArrowIcon } from './pp-section-arrow.svg'; \ No newline at end of file +import CreateIcon from './pp-create.svg'; +import ListArrowIcon from './pp-list-arrow.svg'; +import ListDeleteIcon from './pp-list-delete.svg'; +import SectionArrowIcon from './pp-section-arrow.svg'; + +export { CreateIcon, ListArrowIcon, ListDeleteIcon, SectionArrowIcon }; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/properties-panel/index.js b/packages/form-js-editor/src/features/properties-panel/index.js index 119f88f39..906666564 100644 --- a/packages/form-js-editor/src/features/properties-panel/index.js +++ b/packages/form-js-editor/src/features/properties-panel/index.js @@ -1,13 +1,13 @@ -import PropertiesPanelModule from './PropertiesPanelRenderer'; -import PropertiesProvider from './PropertiesProvider'; +import { PropertiesPanelRenderer } from './PropertiesPanelRenderer'; +import { PropertiesProvider } from './PropertiesProvider'; import { FeelPopupModule } from '@bpmn-io/properties-panel'; -export default { +export const PropertiesPanelModule = { __depends__: [ FeelPopupModule ], __init__: [ 'propertiesPanel', 'propertiesProvider' ], - propertiesPanel: [ 'type', PropertiesPanelModule ], + propertiesPanel: [ 'type', PropertiesPanelRenderer ], propertiesProvider: [ 'type', PropertiesProvider ] }; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/render-injection/RenderInjector.js b/packages/form-js-editor/src/features/render-injection/RenderInjector.js index 5a10796da..d712ce3f1 100644 --- a/packages/form-js-editor/src/features/render-injection/RenderInjector.js +++ b/packages/form-js-editor/src/features/render-injection/RenderInjector.js @@ -1,11 +1,11 @@ -import SectionModuleBase from '../SectionModuleBase'; +import { SectionModuleBase } from '../SectionModuleBase'; /** * Manages the rendering of visual plugins. * @constructor * @param {Object} eventBus - Event bus for the application. */ -export default class RenderInjector extends SectionModuleBase { +export class RenderInjector extends SectionModuleBase { constructor(eventBus) { super(eventBus, 'renderInjector'); diff --git a/packages/form-js-editor/src/features/render-injection/components/InjectedRendersRoot.js b/packages/form-js-editor/src/features/render-injection/components/InjectedRendersRoot.js index edaee9f57..b93cede13 100644 --- a/packages/form-js-editor/src/features/render-injection/components/InjectedRendersRoot.js +++ b/packages/form-js-editor/src/features/render-injection/components/InjectedRendersRoot.js @@ -7,7 +7,7 @@ import { Fill, Slot } from '../slot-fill'; * A functional component that holds all injected renderers. * @returns {any} The rendered component. */ -export default () => { +export const InjectedRendersRoot = () => { const renderInjector = useService('renderInjector'); diff --git a/packages/form-js-editor/src/features/render-injection/index.js b/packages/form-js-editor/src/features/render-injection/index.js index ee027f50d..e07cf04f3 100644 --- a/packages/form-js-editor/src/features/render-injection/index.js +++ b/packages/form-js-editor/src/features/render-injection/index.js @@ -1,6 +1,6 @@ -import RenderInjector from './RenderInjector'; +import { RenderInjector } from './RenderInjector'; -export default { +export const RenderInjectionModule = { __init__: [ 'renderInjector' ], renderInjector: [ 'type', RenderInjector ], }; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/Fill.js b/packages/form-js-editor/src/features/render-injection/slot-fill/Fill.js index d197d0fb7..25a07eb2a 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/Fill.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/Fill.js @@ -1,7 +1,7 @@ -import FillContext from './FillContext'; +import { FillContext } from './FillContext'; import { useContext, useEffect, useRef } from 'preact/compat'; -export default (props) => { +export const Fill = (props) => { const uid = useRef(Symbol('fill_uid')); const fillContext = useContext(FillContext); diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/FillContext.js b/packages/form-js-editor/src/features/render-injection/slot-fill/FillContext.js index 851ca4a78..1f58e8fee 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/FillContext.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/FillContext.js @@ -1,8 +1,6 @@ import { createContext } from 'preact'; -const FillContext = createContext({ +export const FillContext = createContext({ addFill(uid, props) { throw new Error('FillContext.addFill() uninitialized'); }, removeFill(uid) { throw new Error('FillContext.addFill() uninitialized'); } }); - -export default FillContext; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/Slot.js b/packages/form-js-editor/src/features/render-injection/slot-fill/Slot.js index e63691b66..96ce272b1 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/Slot.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/Slot.js @@ -1,6 +1,6 @@ import { Fragment } from 'preact'; import { useContext, useMemo } from 'preact/hooks'; -import SlotContext from './SlotContext'; +import { SlotContext } from './SlotContext'; /** * Functional component for rendering slot fills. @@ -13,7 +13,7 @@ import SlotContext from './SlotContext'; * @param {number} props.limit Limit on the number of slot fills to render * @returns {Array} Array of rendered slot fills, grouped and separated as specified */ -export default (props) => { +export const Slot = (props) => { const { name, fillRoot = FillFragment, diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/SlotContext.js b/packages/form-js-editor/src/features/render-injection/slot-fill/SlotContext.js index a12b8fdfa..8f4dc3aa3 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/SlotContext.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/SlotContext.js @@ -1,5 +1,3 @@ import { createContext } from 'preact'; -const SlotContext = createContext({ fills: [] }); - -export default SlotContext; \ No newline at end of file +export const SlotContext = createContext({ fills: [] }); diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/SlotFillRoot.js b/packages/form-js-editor/src/features/render-injection/slot-fill/SlotFillRoot.js index 3ec4b8b0d..4ddc0f292 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/SlotFillRoot.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/SlotFillRoot.js @@ -1,8 +1,8 @@ -import FillContext from './FillContext'; -import SlotContext from './SlotContext'; +import { FillContext } from './FillContext'; +import { SlotContext } from './SlotContext'; import { useMemo, useState } from 'preact/hooks'; -export default (props) => { +export const SlotFillRoot = (props) => { const [ fills, setFills ] = useState([]); const { diff --git a/packages/form-js-editor/src/features/render-injection/slot-fill/index.js b/packages/form-js-editor/src/features/render-injection/slot-fill/index.js index 62c444406..74b9ba70d 100644 --- a/packages/form-js-editor/src/features/render-injection/slot-fill/index.js +++ b/packages/form-js-editor/src/features/render-injection/slot-fill/index.js @@ -1,5 +1,5 @@ -export { default as Fill } from './Fill'; -export { default as Slot } from './Slot'; -export { default as SlotFillRoot } from './SlotFillRoot'; -export { default as SlotContext } from './SlotContext'; -export { default as FillContext } from './FillContext'; \ No newline at end of file +export { Fill } from './Fill'; +export { Slot } from './Slot'; +export { SlotFillRoot } from './SlotFillRoot'; +export { SlotContext } from './SlotContext'; +export { FillContext } from './FillContext'; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/repeat-render/EditorRepeatRenderManager.js b/packages/form-js-editor/src/features/repeat-render/EditorRepeatRenderManager.js index 5337f57bc..81700d749 100644 --- a/packages/form-js-editor/src/features/repeat-render/EditorRepeatRenderManager.js +++ b/packages/form-js-editor/src/features/repeat-render/EditorRepeatRenderManager.js @@ -1,6 +1,6 @@ import RepeatSvg from '../../render/components/icons/Repeat.svg'; -export default class RepeatRenderManager { +export class EditorRepeatRenderManager { constructor(formFields, formFieldRegistry) { this._formFields = formFields; @@ -31,4 +31,4 @@ export default class RepeatRenderManager { } -RepeatRenderManager.$inject = [ 'formFields', 'formFieldRegistry' ]; \ No newline at end of file +EditorRepeatRenderManager.$inject = [ 'formFields', 'formFieldRegistry' ]; \ No newline at end of file diff --git a/packages/form-js-editor/src/features/repeat-render/index.js b/packages/form-js-editor/src/features/repeat-render/index.js index 7d8bb2dd0..442690c48 100644 --- a/packages/form-js-editor/src/features/repeat-render/index.js +++ b/packages/form-js-editor/src/features/repeat-render/index.js @@ -1,6 +1,6 @@ -import EditorRepeatRenderManager from './EditorRepeatRenderManager'; +import { EditorRepeatRenderManager } from './EditorRepeatRenderManager'; -export default { +export const RepeatRenderModule = { __init__: [ 'repeatRenderManager' ], repeatRenderManager: [ 'type', EditorRepeatRenderManager ], }; diff --git a/packages/form-js-editor/src/features/selection/Selection.js b/packages/form-js-editor/src/features/selection/Selection.js index c6257b6fa..cb3bdda0a 100644 --- a/packages/form-js-editor/src/features/selection/Selection.js +++ b/packages/form-js-editor/src/features/selection/Selection.js @@ -1,4 +1,4 @@ -export default class Selection { +export class Selection { constructor(eventBus) { this._eventBus = eventBus; this._selection = null; diff --git a/packages/form-js-editor/src/features/selection/SelectionBehavior.js b/packages/form-js-editor/src/features/selection/SelectionBehavior.js index e32103528..7bd20774d 100644 --- a/packages/form-js-editor/src/features/selection/SelectionBehavior.js +++ b/packages/form-js-editor/src/features/selection/SelectionBehavior.js @@ -1,4 +1,4 @@ -export default class SelectionBehavior { +export class SelectionBehavior { constructor(eventBus, selection) { eventBus.on([ 'commandStack.formField.add.postExecuted', diff --git a/packages/form-js-editor/src/features/selection/index.js b/packages/form-js-editor/src/features/selection/index.js index d2efa696c..af34a1d58 100644 --- a/packages/form-js-editor/src/features/selection/index.js +++ b/packages/form-js-editor/src/features/selection/index.js @@ -1,7 +1,7 @@ -import Selection from './Selection'; -import SelectionBehavior from './SelectionBehavior'; +import { Selection } from './Selection'; +import { SelectionBehavior } from './SelectionBehavior'; -export default { +export const SelectionModule = { __init__: [ 'selection', 'selectionBehavior' ], selection: [ 'type', Selection ], selectionBehavior: [ 'type', SelectionBehavior ] diff --git a/packages/form-js-editor/src/index.js b/packages/form-js-editor/src/index.js index 43508eecb..2d03e12ff 100644 --- a/packages/form-js-editor/src/index.js +++ b/packages/form-js-editor/src/index.js @@ -1,4 +1,4 @@ -import FormEditor from './FormEditor'; +import { FormEditor } from './FormEditor'; import { schemaVersion } from '@bpmn-io/form-js-viewer'; diff --git a/packages/form-js-editor/src/render/EditorFormFields.js b/packages/form-js-editor/src/render/EditorFormFields.js index 808e1d022..697916324 100644 --- a/packages/form-js-editor/src/render/EditorFormFields.js +++ b/packages/form-js-editor/src/render/EditorFormFields.js @@ -1,7 +1,7 @@ import { FormFields } from '@bpmn-io/form-js-viewer'; import { editorFormFields } from './components/editor-form-fields/'; -export default class EditorFormFields extends FormFields { +export class EditorFormFields extends FormFields { constructor() { super(); editorFormFields.forEach((formField) => { diff --git a/packages/form-js-editor/src/render/Renderer.js b/packages/form-js-editor/src/render/Renderer.js index 5182484e6..386dd3ab0 100644 --- a/packages/form-js-editor/src/render/Renderer.js +++ b/packages/form-js-editor/src/render/Renderer.js @@ -1,15 +1,15 @@ import { render } from 'preact'; import { useState } from 'preact/hooks'; -import FormEditor from './components/FormEditor'; +import { FormEditor } from './components/FormEditor'; import { FormEditorContext } from './context'; /** * @typedef { { container: Element, compact?: boolean } } RenderConfig * @typedef { import('didi').Injector } Injector - * @typedef { import('../core/EventBus').default } EventBus - * @typedef { import('../FormEditor').default } FormEditor + * @typedef { import('../core/EventBus').EventBus } EventBus + * @typedef { import('../FormEditor').FormEditor } FormEditor */ /** @@ -18,7 +18,7 @@ import { FormEditorContext } from './context'; * @param {FormEditor} formEditor * @param {Injector} injector */ -export default class Renderer { +export class Renderer { constructor(renderConfig, eventBus, formEditor, injector) { const { diff --git a/packages/form-js-editor/src/render/components/FormEditor.js b/packages/form-js-editor/src/render/components/FormEditor.js index b253e0514..3948f0d9c 100644 --- a/packages/form-js-editor/src/render/components/FormEditor.js +++ b/packages/form-js-editor/src/render/components/FormEditor.js @@ -21,15 +21,15 @@ import { import classNames from 'classnames'; -import useService from '../hooks/useService'; +import { useService } from '../hooks/useService'; import { DragAndDropContext } from '../context'; import { DeleteIcon, DraggableIcon } from './icons'; -import ModularSection from './ModularSection'; -import Palette, { collectPaletteEntries, getPaletteIcon } from '../../features/palette/components/Palette'; -import InjectedRendersRoot from '../../features/render-injection/components/InjectedRendersRoot'; +import { ModularSection } from './ModularSection'; +import { Palette, collectPaletteEntries, getPaletteIcon } from '../../features/palette/components/Palette'; +import { InjectedRendersRoot } from '../../features/render-injection/components/InjectedRendersRoot'; import { SlotFillRoot } from '../../features/render-injection/slot-fill'; @@ -321,7 +321,7 @@ function Column(props) { ); } -export default function FormEditor() { +export function FormEditor() { const dragging = useService('dragging'), eventBus = useService('eventBus'), formEditor = useService('formEditor'), diff --git a/packages/form-js-editor/src/render/components/ModularSection.js b/packages/form-js-editor/src/render/components/ModularSection.js index d834590c8..67a32e27f 100644 --- a/packages/form-js-editor/src/render/components/ModularSection.js +++ b/packages/form-js-editor/src/render/components/ModularSection.js @@ -2,7 +2,7 @@ import { useCallback, useEffect, useMemo, useState } from 'preact/hooks'; import { createPortal } from 'preact/compat'; import { useService } from '../hooks'; -export default (props) => { +export const ModularSection = (props) => { const { rootClass, RootElement, diff --git a/packages/form-js-editor/src/render/components/editor-form-fields/EditorIFrame.js b/packages/form-js-editor/src/render/components/editor-form-fields/EditorIFrame.js index 9a9dbb2be..9d7d78af2 100644 --- a/packages/form-js-editor/src/render/components/editor-form-fields/EditorIFrame.js +++ b/packages/form-js-editor/src/render/components/editor-form-fields/EditorIFrame.js @@ -5,7 +5,7 @@ import { import { editorFormFieldClasses } from '../Util'; -export default function EditorIFrame(props) { +export function EditorIFrame(props) { const { field } = props; const Icon = iconsByType(field.type); diff --git a/packages/form-js-editor/src/render/components/editor-form-fields/EditorTable.js b/packages/form-js-editor/src/render/components/editor-form-fields/EditorTable.js index d17378b14..a774468bf 100644 --- a/packages/form-js-editor/src/render/components/editor-form-fields/EditorTable.js +++ b/packages/form-js-editor/src/render/components/editor-form-fields/EditorTable.js @@ -6,7 +6,7 @@ import classNames from 'classnames'; * @param {import('@bpmn-io/form-js-viewer/src/render/components/form-fields/Table').Props} props * @returns {import("preact").JSX.Element} */ -export default function EditorTable(props) { +export function EditorTable(props) { const { columnsExpression, columns, id, label } = props.field; const shouldUseMockColumns = (typeof columnsExpression === 'string' && columnsExpression.length > 0) || diff --git a/packages/form-js-editor/src/render/components/editor-form-fields/EditorText.js b/packages/form-js-editor/src/render/components/editor-form-fields/EditorText.js index 540d9ab8d..c585a7daf 100644 --- a/packages/form-js-editor/src/render/components/editor-form-fields/EditorText.js +++ b/packages/form-js-editor/src/render/components/editor-form-fields/EditorText.js @@ -4,7 +4,7 @@ import { useService } from '../../hooks'; import { iconsByType } from '../icons'; -export default function EditorText(props) { +export function EditorText(props) { const { type, text = '' } = props.field; diff --git a/packages/form-js-editor/src/render/components/editor-form-fields/index.js b/packages/form-js-editor/src/render/components/editor-form-fields/index.js index 51a447f75..b196e7a8a 100644 --- a/packages/form-js-editor/src/render/components/editor-form-fields/index.js +++ b/packages/form-js-editor/src/render/components/editor-form-fields/index.js @@ -1,6 +1,6 @@ -import EditorIFrame from './EditorIFrame'; -import EditorText from './EditorText'; -import EditorTable from './EditorTable'; +import { EditorIFrame } from './EditorIFrame'; +import { EditorText } from './EditorText'; +import { EditorTable } from './EditorTable'; export const editorFormFields = [ EditorIFrame, diff --git a/packages/form-js-editor/src/render/context/DragAndDropContext.js b/packages/form-js-editor/src/render/context/DragAndDropContext.js index e5381cd90..7ab3d716f 100644 --- a/packages/form-js-editor/src/render/context/DragAndDropContext.js +++ b/packages/form-js-editor/src/render/context/DragAndDropContext.js @@ -1,7 +1,5 @@ import { createContext } from 'preact'; -const DragAndDropContext = createContext({ +export const DragAndDropContext = createContext({ drake: null -}); - -export default DragAndDropContext; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/form-js-editor/src/render/context/FormEditorContext.js b/packages/form-js-editor/src/render/context/FormEditorContext.js index 3d481445f..4243641ce 100644 --- a/packages/form-js-editor/src/render/context/FormEditorContext.js +++ b/packages/form-js-editor/src/render/context/FormEditorContext.js @@ -8,8 +8,6 @@ import { createContext } from 'preact'; */ function getService(type, strict) {} -const FormEditorContext = createContext({ +export const FormEditorContext = createContext({ getService -}); - -export default FormEditorContext; \ No newline at end of file +}); \ No newline at end of file diff --git a/packages/form-js-editor/src/render/context/index.js b/packages/form-js-editor/src/render/context/index.js index 9e338211f..fa14fd3be 100644 --- a/packages/form-js-editor/src/render/context/index.js +++ b/packages/form-js-editor/src/render/context/index.js @@ -1,2 +1,2 @@ -export { default as DragAndDropContext } from './DragAndDropContext'; -export { default as FormEditorContext } from './FormEditorContext'; \ No newline at end of file +export { DragAndDropContext } from './DragAndDropContext'; +export { FormEditorContext } from './FormEditorContext'; \ No newline at end of file diff --git a/packages/form-js-editor/src/render/hooks/index.js b/packages/form-js-editor/src/render/hooks/index.js index 24fc30dbc..8f20d3a6f 100644 --- a/packages/form-js-editor/src/render/hooks/index.js +++ b/packages/form-js-editor/src/render/hooks/index.js @@ -1,3 +1,3 @@ -export { default as useService } from './useService'; -export { default as usePrevious } from './usePrevious'; -export { default as useDebounce } from './useDebounce'; +export { useService } from './useService'; +export { usePrevious } from './usePrevious'; +export { useDebounce } from './useDebounce'; diff --git a/packages/form-js-editor/src/render/hooks/useDebounce.js b/packages/form-js-editor/src/render/hooks/useDebounce.js index 5c4ac076b..67938a7d6 100644 --- a/packages/form-js-editor/src/render/hooks/useDebounce.js +++ b/packages/form-js-editor/src/render/hooks/useDebounce.js @@ -3,12 +3,12 @@ import { useEffect } from 'preact/hooks'; -import useService from './useService'; +import { useService } from './useService'; /** * @param {Function} fn - function to debounce */ -export default function useDebounce(fn) { +export function useDebounce(fn) { const debounce = useService('debounce'); diff --git a/packages/form-js-editor/src/render/hooks/usePrevious.js b/packages/form-js-editor/src/render/hooks/usePrevious.js index 21a3bfbf1..a28114be7 100644 --- a/packages/form-js-editor/src/render/hooks/usePrevious.js +++ b/packages/form-js-editor/src/render/hooks/usePrevious.js @@ -4,7 +4,7 @@ import { } from 'preact/hooks'; -export default function usePrevious(value, defaultValue = null) { +export function usePrevious(value, defaultValue = null) { const ref = useRef(defaultValue); useEffect(() => ref.current = value, [ value ]); diff --git a/packages/form-js-editor/src/render/hooks/useService.js b/packages/form-js-editor/src/render/hooks/useService.js index 9b88eb164..52b5dce4d 100644 --- a/packages/form-js-editor/src/render/hooks/useService.js +++ b/packages/form-js-editor/src/render/hooks/useService.js @@ -5,7 +5,7 @@ import { import { FormEditorContext } from '../context'; -export default function(type, strict) { +export function useService(type, strict) { const { getService } = useContext(FormEditorContext); diff --git a/packages/form-js-editor/src/render/index.js b/packages/form-js-editor/src/render/index.js index 5aed8f257..46a85e121 100644 --- a/packages/form-js-editor/src/render/index.js +++ b/packages/form-js-editor/src/render/index.js @@ -1,7 +1,7 @@ -import EditorFormFields from './EditorFormFields'; -import Renderer from './Renderer'; +import { EditorFormFields } from './EditorFormFields'; +import { Renderer } from './Renderer'; -export default { +export const RenderModule = { __init__: [ 'formFields', 'renderer' ], formFields: [ 'type', EditorFormFields ], renderer: [ 'type', Renderer ]