@blueking/bkflow-canvas-editor 1.1.0-beta.20 → 1.1.0-beta.21
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/advanced.d.ts +8 -0
- package/dist/{index-q1oXQLYP.cjs → index-02hL8tEC.cjs} +1 -1
- package/dist/index-B8efFF5D.cjs +1 -0
- package/dist/{index-CEqnbYFv.js → index-BWndXizJ.js} +17 -17
- package/dist/index-BhHHxbEL.js +235 -0
- package/dist/index-Bs2CwzmL.cjs +1 -0
- package/dist/{index-BSJmvh9X.js → index-DUOfuLCl.js} +17885 -17761
- package/dist/{index-DKDo_oIa.js → index-GYfLO_6L.js} +1 -1
- package/dist/index-j9vPPW5D.cjs +70 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.esm.js +4 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-BQCyvFSv.js +0 -184
- package/dist/index-BuqlmJo6.cjs +0 -1
- package/dist/index-ChUsgvjW.cjs +0 -1
- package/dist/index-XDQGda1C.cjs +0 -70
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-j9vPPW5D.cjs"),o=require("./context-NG3ocAZ9.cjs");require("lodash");exports.BkFlowCanvas=e.BkFlowCanvas;exports.BkFlowModelAccessor=e.BkFlowModelAccessor;exports.BkFlowNodeAccessor=e.BkFlowNodeAccessor;exports.FlowCreateTask=e.FlowCreateTask;exports.FlowDebug=e.FlowDebug;exports.FlowDetail=e.index;exports.FlowEdit=e.edit;exports.FlowExecute=e.execute;exports.FlowMockDebug=e.mock;exports.FlowView=e.view;exports.bkflowConnectionValidator=e.bkflowConnectionValidator;exports.createBkflowPlugin=e.createBkflowPlugin;exports.createBkflowSchema=e.createBkflowSchema;exports.createExecutionStatusPlugin=e.createExecutionStatusPlugin;exports.default=e.index$1;exports.exportToPipelineTree=e.exportToPipelineTree;exports.getUniformApiPluginFormValue=e.getUniformApiPluginFormValue;exports.getVariableDefaultConfig=e.getVariableDefaultConfig;exports.importFromPipelineTree=e.importFromPipelineTree;exports.isMockableNode=e.isMockableNode;exports.mergeOutputs=e.mergeOutputs;exports.normalizePluginOutputItems=e.normalizePluginOutputItems;exports.provideFilterVariableConfig=e.provideFilterVariableConfig;exports.provideFlowApiConfig=e.provideFlowApiConfig;exports.provideMemberSelectorConfig=e.provideMemberSelectorConfig;exports.provideSelectPanelConfig=e.provideSelectPanelConfig;exports.resolveExecutionActions=e.resolveExecutionActions;exports.resolveMockFormControl=e.resolveMockFormControl;exports.useFlowApiConfig=e.useFlowApiConfig;exports.useFlowEditApiConfig=e.useFlowEditApiConfig;exports.useFlowViewApiConfig=e.useFlowViewApiConfig;exports.useMemberSelectorConfig=e.useMemberSelectorConfig;exports.useSelectPanelConfig=e.useSelectPanelConfig;exports.validatePipelineTree=e.validatePipelineTree;exports.generateId=o.generateId;exports.random4=o.random4;
|
package/dist/index.d.ts
CHANGED
|
@@ -707,6 +707,19 @@ interface CustomVariableType {
|
|
|
707
707
|
* 避免出现两套形状相近但不兼容的类型。
|
|
708
708
|
*/
|
|
709
709
|
|
|
710
|
+
/**
|
|
711
|
+
* 关联节点的插件配置摘要。getFields 在节点表单未挂载时要用它自行取维度,
|
|
712
|
+
* 不能依赖「打开过节点配置」留下的内存缓存。
|
|
713
|
+
*/
|
|
714
|
+
interface FilterVariableSourceNodeComponent {
|
|
715
|
+
code?: string;
|
|
716
|
+
api_meta?: {
|
|
717
|
+
id?: string;
|
|
718
|
+
};
|
|
719
|
+
data?: Record<string, {
|
|
720
|
+
value?: unknown;
|
|
721
|
+
}>;
|
|
722
|
+
}
|
|
710
723
|
/** 关联来源。创建时由宿主锁定,用户不能在编辑器里改 */
|
|
711
724
|
interface FilterVariableSourceContext {
|
|
712
725
|
sourceNodeId: string;
|
|
@@ -714,6 +727,8 @@ interface FilterVariableSourceContext {
|
|
|
714
727
|
/** 关联表单项稳定 KEY,例如 query_condition */
|
|
715
728
|
sourceFieldKey: string;
|
|
716
729
|
sourceFieldName: string;
|
|
730
|
+
/** 关联节点当前 component,供宿主 getFields 在节点配置未打开时解析 */
|
|
731
|
+
sourceNodeComponent?: FilterVariableSourceNodeComponent;
|
|
717
732
|
}
|
|
718
733
|
interface RetrievalFilterField {
|
|
719
734
|
alias: string;
|
|
@@ -786,8 +801,9 @@ declare function provideFilterVariableConfig(config?: FilterVariableConfig): voi
|
|
|
786
801
|
*
|
|
787
802
|
* 关联标识复用 `Variable.source_info`(C-09),不另立字段。既有的节点删除清理逻辑
|
|
788
803
|
* 原先只放行 component_inputs / component_outputs,已显式把 filter 一并纳入
|
|
789
|
-
* (canvas-adapter/plugin/index.ts
|
|
790
|
-
*
|
|
804
|
+
* (canvas-adapter/plugin/index.ts 的节点删除,以及 node-config-sideslider 保存时
|
|
805
|
+
* 对照节点数据里是否还引用 `${var}`)。节点删掉或表单里取消引用后不清理,
|
|
806
|
+
* 就会留下用户无法修复的孤儿变量——关联信息是只读的。
|
|
791
807
|
*/
|
|
792
808
|
|
|
793
809
|
/**
|
|
@@ -830,7 +846,10 @@ interface OpenFilterVariableCreateRequest {
|
|
|
830
846
|
/** 关联来源,filter 场景必填 */
|
|
831
847
|
filterContext: FilterVariableSourceContext;
|
|
832
848
|
keyword?: string;
|
|
833
|
-
/**
|
|
849
|
+
/**
|
|
850
|
+
* 可选:把宿主表单里已配好的真实维度条件带进来作为默认值。
|
|
851
|
+
* 已 hook 的 `${var}` 占位会被丢掉,不能当默认条件。
|
|
852
|
+
*/
|
|
834
853
|
initialValue?: FilterWhereValue;
|
|
835
854
|
onCreated?: (variable: Variable) => void;
|
|
836
855
|
}
|
|
@@ -973,8 +992,16 @@ interface RunGlobalDebugResult {
|
|
|
973
992
|
status: DebugContextStatus;
|
|
974
993
|
[key: string]: unknown;
|
|
975
994
|
}
|
|
995
|
+
/**
|
|
996
|
+
* /debug_terminate/ 返回。
|
|
997
|
+
*
|
|
998
|
+
* 全局终止返回 `terminating`,需要继续轮询 /debug_context/ 直到 idle + last_run_status=revoked;
|
|
999
|
+
* 单节点终止直接返回 `idle`,并用 reset_node_ids 告知哪些节点被恢复为「未调试」。
|
|
1000
|
+
*/
|
|
976
1001
|
interface TerminateDebugResult {
|
|
977
1002
|
status?: DebugContextStatus;
|
|
1003
|
+
/** 单节点终止:被恢复为 not_run 的节点,本地需同步清空输入、输出、耗时、错误与日志。 */
|
|
1004
|
+
reset_node_ids?: string[];
|
|
978
1005
|
[key: string]: unknown;
|
|
979
1006
|
}
|
|
980
1007
|
interface DebugResetResult {
|
|
@@ -2154,4 +2181,4 @@ declare const _default: {
|
|
|
2154
2181
|
};
|
|
2155
2182
|
|
|
2156
2183
|
export { _default$1 as BkFlowCanvas, BkFlowModelAccessor, BkFlowNodeAccessor, _default$5 as FlowCreateTask, _default$7 as FlowDebug, _default$2 as FlowDetail, _default$4 as FlowEdit, _default$6 as FlowExecute, _default$8 as FlowMockDebug, _default$3 as FlowView, bkflowConnectionValidator, createBkflowPlugin, createBkflowSchema, createExecutionStatusPlugin, _default as default, exportToPipelineTree, generateId, getUniformApiPluginFormValue, getVariableDefaultConfig, importFromPipelineTree, isMockableNode, mergeOutputs, normalizePluginOutputItems, provideFilterVariableConfig, provideFlowApiConfig, provideMemberSelectorConfig, provideSelectPanelConfig, random4, resolveExecutionActions, resolveMockFormControl, useFlowApiConfig, useFlowEditApiConfig, useFlowViewApiConfig, useMemberSelectorConfig, useSelectPanelConfig, validatePipelineTree };
|
|
2157
|
-
export type { Activity, CanvasViewportExpose, CreateFlowTaskResult, DndNodeItem, ExecuteFlowTaskResult, ExecutionNodeAction, FilterCandidateQuery, FilterConditionOptions, FilterConditionValue, FilterVariableConfig, FilterVariableSourceContext, FilterWhereItem, FilterWhereValue, FlowApiConfig, FlowDetailExpose, FlowDetailPermissions, FlowEditExpose, FlowTaskExecuteSuccessResult, FlowTemplate, FlowViewExpose, Gateway, GatewayCondition, GlobalVariableCreateExpose, MemberSelectorConfig, MockOutputField, NodeExecutionState, NodeExecutionStatus, NodeMockConfig, NotifyConfig, OpenFilterVariableCreateRequest, OpenGlobalVariableCreateRequest, OpenStandardVariableCreateRequest, PipelineTree, PluginDetailCommon, PluginInputDataItem, RetrievalFilterField, SelectPanelConfig, SimulateDebugCanvasContext, SimulateDebugStage, SimulateDebugState, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
|
|
2184
|
+
export type { Activity, CanvasViewportExpose, CreateFlowTaskResult, DndNodeItem, ExecuteFlowTaskResult, ExecutionNodeAction, FilterCandidateQuery, FilterConditionOptions, FilterConditionValue, FilterVariableConfig, FilterVariableSourceContext, FilterVariableSourceNodeComponent, FilterWhereItem, FilterWhereValue, FlowApiConfig, FlowDetailExpose, FlowDetailPermissions, FlowEditExpose, FlowTaskExecuteSuccessResult, FlowTemplate, FlowViewExpose, Gateway, GatewayCondition, GlobalVariableCreateExpose, MemberSelectorConfig, MockOutputField, NodeExecutionState, NodeExecutionStatus, NodeMockConfig, NotifyConfig, OpenFilterVariableCreateRequest, OpenGlobalVariableCreateRequest, OpenStandardVariableCreateRequest, PipelineTree, PluginDetailCommon, PluginInputDataItem, RetrievalFilterField, SelectPanelConfig, SimulateDebugCanvasContext, SimulateDebugStage, SimulateDebugState, SpaceFlowConfig, TaskExecutionStates, TemplateConfigs, TriggerCron, TriggerItem, UniformApiPluginInputsItem, UpdateFlowParams, Variable, VariableReference };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { g as
|
|
1
|
+
import { q as s, v as i, w as l, F as r, x as t, y as n, z as u, A as g, G as c, H as w, I as p, J as F, K as f, N as m, O as d, P as C, Q as k, T as P, U as v, V as A, m as b, W as x, X as V, Y as M, Z as S, $ as T, a0 as B, r as E, u as D, a1 as I, a2 as N, a3 as O, a4 as z, a5 as U } from "./index-DUOfuLCl.js";
|
|
2
|
+
import { g as q, r as y } from "./context-DFzO6khC.js";
|
|
3
3
|
import "lodash";
|
|
4
4
|
export {
|
|
5
5
|
s as BkFlowCanvas,
|
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
m as createExecutionStatusPlugin,
|
|
19
19
|
d as default,
|
|
20
20
|
C as exportToPipelineTree,
|
|
21
|
-
|
|
21
|
+
q as generateId,
|
|
22
22
|
k as getUniformApiPluginFormValue,
|
|
23
23
|
P as getVariableDefaultConfig,
|
|
24
24
|
v as importFromPipelineTree,
|
|
@@ -29,7 +29,7 @@ export {
|
|
|
29
29
|
M as provideFlowApiConfig,
|
|
30
30
|
S as provideMemberSelectorConfig,
|
|
31
31
|
T as provideSelectPanelConfig,
|
|
32
|
-
|
|
32
|
+
y as random4,
|
|
33
33
|
B as resolveExecutionActions,
|
|
34
34
|
E as resolveMockFormControl,
|
|
35
35
|
D as useFlowApiConfig,
|