@blueking/bkflow-canvas-editor 1.0.0-beta.9 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as vue from 'vue';
2
- import { Ref } from 'vue';
2
+ import { ComputedRef, Ref } from 'vue';
3
3
  import { AxiosInstance, AxiosRequestConfig } from 'axios';
4
4
  import * as _blueking_flow_canvas from '@blueking/flow-canvas';
5
5
  import { CanvasUiEvent, QuickAddConfig, FlowModel, FlowNodeModel, NodeActionsConfig, ConnectionValidator, CanvasPlugin, CommandEnvelope, CanvasSchema } from '@blueking/flow-canvas';
@@ -180,6 +180,7 @@ interface PipelineTree {
180
180
  outputs: string[];
181
181
  constants: Record<string, Variable>;
182
182
  canvas_mode: 'horizontal';
183
+ canvas_version?: string;
183
184
  }
184
185
 
185
186
  // 通知配置
@@ -544,6 +545,7 @@ interface PluginDetailCommon {
544
545
  polling?: Record<string, any>;
545
546
  credential_key?: string;
546
547
  component_type?: string;
548
+ displayGroupName?: string;
547
549
  }
548
550
  interface CustomVariableType {
549
551
  name: string;
@@ -555,6 +557,12 @@ interface CustomVariableType {
555
557
  code: string;
556
558
  }
557
559
 
560
+ interface FlowEditExpose {
561
+ isFlowEdited: boolean;
562
+ updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
563
+ openGlobalVariables: () => void;
564
+ }
565
+
558
566
  /**
559
567
  * Flow API 配置接口
560
568
  */
@@ -923,9 +931,9 @@ type __VLS_Props$2 = {
923
931
  quickAdd?: QuickAddConfig;
924
932
  };
925
933
  declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {
926
- isFlowEdited: vue.ComputedRef<boolean>;
927
- updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
928
- openGlobalVariables: () => void;
934
+ isFlowEdited: ComputedRef<FlowEditExpose["isFlowEdited"]>;
935
+ updateNodeInputParams: FlowEditExpose["updateNodeInputParams"];
936
+ openGlobalVariables: FlowEditExpose["openGlobalVariables"];
929
937
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
930
938
  back: () => any;
931
939
  save: (flowData: FlowTemplate) => any;
@@ -1092,7 +1100,7 @@ type __VLS_Props = {
1092
1100
  additionalPlugins?: CanvasPlugin[];
1093
1101
  };
1094
1102
  declare var __VLS_8: {};
1095
- declare var __VLS_20: {
1103
+ declare var __VLS_22: {
1096
1104
  node: _blueking_flow_canvas.FlowNodeModel;
1097
1105
  api: _blueking_flow_canvas.CanvasApi;
1098
1106
  insertNodeToRight: (node: Omit<_blueking_flow_canvas.FlowNodeModel, "position">) => void;
@@ -1101,16 +1109,18 @@ declare var __VLS_20: {
1101
1109
  type __VLS_Slots = {} & {
1102
1110
  'node-palette'?: (props: typeof __VLS_8) => any;
1103
1111
  } & {
1104
- 'quick-add-panel'?: (props: typeof __VLS_20) => any;
1112
+ 'quick-add-panel'?: (props: typeof __VLS_22) => any;
1105
1113
  };
1106
1114
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
1107
1115
  editor: _blueking_flow_canvas.CanvasEditorContext;
1108
1116
  projection: vue.ComputedRef<BkFlowModelAccessor>;
1109
1117
  exportPipelineTree: () => PipelineTree;
1110
1118
  importPipelineTree: (tree: PipelineTree) => void;
1119
+ updatePipelineTree: (tree: PipelineTree) => PipelineTree;
1111
1120
  executeCommand: (envelope: CommandEnvelope) => _blueking_flow_canvas.CommandExecutionResult;
1112
1121
  undo: () => _blueking_flow_canvas.FlowModel | null;
1113
1122
  redo: () => _blueking_flow_canvas.FlowModel | null;
1123
+ resetHoverState: () => void | undefined;
1114
1124
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
1115
1125
  change: (pipelineTree: PipelineTree) => any;
1116
1126
  "ui-event": (event: CanvasUiEvent) => any;
@@ -1245,4 +1255,4 @@ declare const _default: {
1245
1255
  };
1246
1256
 
1247
1257
  export { _default$1 as BkFlowCanvas, BkFlowModelAccessor, BkFlowNodeAccessor, _default$4 as FlowCreateTask, _default$6 as FlowDebug, _default$3 as FlowEdit, _default$5 as FlowExecute, _default$2 as FlowView, bkflowConnectionValidator, createBkflowPlugin, createBkflowSchema, createExecutionStatusPlugin, _default as default, exportToPipelineTree, generateId, getUniformApiPluginFormValue, getVariableDefaultConfig, importFromPipelineTree, provideFlowApiConfig, provideSelectPanelConfig, random4, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useSelectPanelConfig, validatePipelineTree };
1248
- export type { Activity, DndNodeItem, FlowApiConfig, FlowTemplate, Gateway, GatewayCondition, NodeExecutionState, NodeExecutionStatus, NotifyConfig, PipelineTree, PluginDetailCommon, PluginInputDataItem, SelectPanelConfig, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
1258
+ export type { Activity, DndNodeItem, FlowApiConfig, FlowEditExpose, FlowTemplate, Gateway, GatewayCondition, NodeExecutionState, NodeExecutionStatus, NotifyConfig, PipelineTree, PluginDetailCommon, PluginInputDataItem, SelectPanelConfig, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };