|
@@ -7,7 +7,6 @@
|
|
|
import { useMemo } from 'react';
|
|
import { useMemo } from 'react';
|
|
|
|
|
|
|
|
import { debounce } from 'lodash-es';
|
|
import { debounce } from 'lodash-es';
|
|
|
-import { createPanelManagerPlugin } from '@flowgram.ai/panel-manager-plugin';
|
|
|
|
|
import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin';
|
|
import { createMinimapPlugin } from '@flowgram.ai/minimap-plugin';
|
|
|
import { createFreeStackPlugin } from '@flowgram.ai/free-stack-plugin';
|
|
import { createFreeStackPlugin } from '@flowgram.ai/free-stack-plugin';
|
|
|
import { createFreeSnapPlugin } from '@flowgram.ai/free-snap-plugin';
|
|
import { createFreeSnapPlugin } from '@flowgram.ai/free-snap-plugin';
|
|
@@ -25,20 +24,18 @@ import { createContainerNodePlugin } from '@flowgram.ai/free-container-plugin';
|
|
|
import { canContainNode, onDragLineEnd } from '../utils';
|
|
import { canContainNode, onDragLineEnd } from '../utils';
|
|
|
import { FlowNodeRegistry, FlowDocumentJSON } from '../typings';
|
|
import { FlowNodeRegistry, FlowDocumentJSON } from '../typings';
|
|
|
import { shortcuts } from '../shortcuts';
|
|
import { shortcuts } from '../shortcuts';
|
|
|
-import { CustomService } from '../services';
|
|
|
|
|
|
|
+import { CustomService, ValidateService } from '../services';
|
|
|
import { GetGlobalVariableSchema } from '../plugins/variable-panel-plugin';
|
|
import { GetGlobalVariableSchema } from '../plugins/variable-panel-plugin';
|
|
|
import { WorkflowRuntimeService } from '../plugins/runtime-plugin/runtime-service';
|
|
import { WorkflowRuntimeService } from '../plugins/runtime-plugin/runtime-service';
|
|
|
import {
|
|
import {
|
|
|
createRuntimePlugin,
|
|
createRuntimePlugin,
|
|
|
createContextMenuPlugin,
|
|
createContextMenuPlugin,
|
|
|
createVariablePanelPlugin,
|
|
createVariablePanelPlugin,
|
|
|
|
|
+ createPanelManagerPlugin,
|
|
|
} from '../plugins';
|
|
} from '../plugins';
|
|
|
import { defaultFormMeta } from '../nodes/default-form-meta';
|
|
import { defaultFormMeta } from '../nodes/default-form-meta';
|
|
|
import { WorkflowNodeType } from '../nodes';
|
|
import { WorkflowNodeType } from '../nodes';
|
|
|
-import { testRunPanelFactory } from '../components/testrun/testrun-panel';
|
|
|
|
|
-import { nodeFormPanelFactory } from '../components/sidebar';
|
|
|
|
|
import { SelectorBoxPopover } from '../components/selector-box-popover';
|
|
import { SelectorBoxPopover } from '../components/selector-box-popover';
|
|
|
-import { problemPanelFactory } from '../components/problem-panel';
|
|
|
|
|
import { BaseNode, CommentRender, GroupNodeRender, LineAddButton, NodePanel } from '../components';
|
|
import { BaseNode, CommentRender, GroupNodeRender, LineAddButton, NodePanel } from '../components';
|
|
|
|
|
|
|
|
export function useEditorProps(
|
|
export function useEditorProps(
|
|
@@ -247,6 +244,7 @@ export function useEditorProps(
|
|
|
*/
|
|
*/
|
|
|
onBind: ({ bind }) => {
|
|
onBind: ({ bind }) => {
|
|
|
bind(CustomService).toSelf().inSingletonScope();
|
|
bind(CustomService).toSelf().inSingletonScope();
|
|
|
|
|
+ bind(ValidateService).toSelf().inSingletonScope();
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* Playground init
|
|
* Playground init
|
|
@@ -385,9 +383,7 @@ export function useEditorProps(
|
|
|
initialData: initialData.globalVariable,
|
|
initialData: initialData.globalVariable,
|
|
|
}),
|
|
}),
|
|
|
/** Float layout plugin */
|
|
/** Float layout plugin */
|
|
|
- createPanelManagerPlugin({
|
|
|
|
|
- factories: [nodeFormPanelFactory, testRunPanelFactory, problemPanelFactory],
|
|
|
|
|
- }),
|
|
|
|
|
|
|
+ createPanelManagerPlugin(),
|
|
|
],
|
|
],
|
|
|
}),
|
|
}),
|
|
|
[]
|
|
[]
|