@blueking/bkflow-canvas-editor 1.0.0-beta.8 → 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
  */
@@ -756,6 +764,7 @@ type __VLS_Props$4 = {
756
764
  defaultZoom?: number;
757
765
  apiConfig: FlowApiConfig;
758
766
  bkflowSaasUrl?: string;
767
+ showHeader?: boolean;
759
768
  onBack?: () => void;
760
769
  };
761
770
  declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
@@ -777,6 +786,7 @@ declare const __VLS_base$3: vue.DefineComponent<__VLS_Props$4, {}, {}, {}, {}, v
777
786
  type: "node.click";
778
787
  }) => any) | undefined;
779
788
  }>, {
789
+ showHeader: boolean;
780
790
  defaultZoom: number;
781
791
  nodeStates: TaskExecutionStates;
782
792
  }, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
@@ -921,9 +931,9 @@ type __VLS_Props$2 = {
921
931
  quickAdd?: QuickAddConfig;
922
932
  };
923
933
  declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {
924
- isFlowEdited: vue.ComputedRef<boolean>;
925
- updateNodeInputParams: (inputParams: Record<string, PluginInputDataItem>) => void;
926
- openGlobalVariables: () => void;
934
+ isFlowEdited: ComputedRef<FlowEditExpose["isFlowEdited"]>;
935
+ updateNodeInputParams: FlowEditExpose["updateNodeInputParams"];
936
+ openGlobalVariables: FlowEditExpose["openGlobalVariables"];
927
937
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
928
938
  back: () => any;
929
939
  save: (flowData: FlowTemplate) => any;
@@ -1090,7 +1100,7 @@ type __VLS_Props = {
1090
1100
  additionalPlugins?: CanvasPlugin[];
1091
1101
  };
1092
1102
  declare var __VLS_8: {};
1093
- declare var __VLS_20: {
1103
+ declare var __VLS_22: {
1094
1104
  node: _blueking_flow_canvas.FlowNodeModel;
1095
1105
  api: _blueking_flow_canvas.CanvasApi;
1096
1106
  insertNodeToRight: (node: Omit<_blueking_flow_canvas.FlowNodeModel, "position">) => void;
@@ -1099,16 +1109,18 @@ declare var __VLS_20: {
1099
1109
  type __VLS_Slots = {} & {
1100
1110
  'node-palette'?: (props: typeof __VLS_8) => any;
1101
1111
  } & {
1102
- 'quick-add-panel'?: (props: typeof __VLS_20) => any;
1112
+ 'quick-add-panel'?: (props: typeof __VLS_22) => any;
1103
1113
  };
1104
1114
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {
1105
1115
  editor: _blueking_flow_canvas.CanvasEditorContext;
1106
1116
  projection: vue.ComputedRef<BkFlowModelAccessor>;
1107
1117
  exportPipelineTree: () => PipelineTree;
1108
1118
  importPipelineTree: (tree: PipelineTree) => void;
1119
+ updatePipelineTree: (tree: PipelineTree) => PipelineTree;
1109
1120
  executeCommand: (envelope: CommandEnvelope) => _blueking_flow_canvas.CommandExecutionResult;
1110
1121
  undo: () => _blueking_flow_canvas.FlowModel | null;
1111
1122
  redo: () => _blueking_flow_canvas.FlowModel | null;
1123
+ resetHoverState: () => void | undefined;
1112
1124
  }, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
1113
1125
  change: (pipelineTree: PipelineTree) => any;
1114
1126
  "ui-event": (event: CanvasUiEvent) => any;
@@ -1243,4 +1255,4 @@ declare const _default: {
1243
1255
  };
1244
1256
 
1245
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 };
1246
- 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 };