@blueking/bkflow-canvas-editor 1.1.0-beta.31 → 1.1.0-beta.33
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.cjs.js +1 -1
- package/dist/advanced.d.ts +18 -1
- package/dist/advanced.esm.js +6 -4
- package/dist/{context-Ct82UNm-.js → context-BGCiN3VZ.js} +232 -199
- package/dist/{context-CctqyVR4.cjs → context-DXxB0x9T.cjs} +1 -1
- package/dist/{index-BrSlioLr.cjs → index-BjcJuFJv.cjs} +1 -1
- package/dist/{index-CDDdrtU0.js → index-Ckf2dijc.js} +5142 -5175
- package/dist/{index-BsR4XVBl.cjs → index-Cn4cEO9w.cjs} +1 -1
- package/dist/{index-DgObHtuV.js → index-DH-OFKmv.js} +1 -1
- package/dist/{index-B_qdBoef.js → index-DQiaXJcu.js} +1 -1
- package/dist/{index-Dcyrt4No.cjs → index-DmGpUtB0.cjs} +1 -1
- package/dist/{index-BOWtxLy9.cjs → index-DsMNLLad.cjs} +25 -25
- package/dist/{index-BxwSbxVq.js → index-rIpHf27c.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
package/dist/advanced.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./context-DXxB0x9T.cjs");exports.PLUGIN_GROUP_ICON_MAP=e.PLUGIN_GROUP_ICON_MAP;exports.SOPS_PLUGIN_GROUP_NAME=e.SOPS_PLUGIN_GROUP_NAME;exports.provideVariableInputCreateVariable=e.provideVariableInputCreateVariable;exports.resolveSopsPluginSources=e.resolveSopsPluginSources;exports.useFlowApi=e.useFlowApi;exports.useVariableInputCreateVariable=e.useVariableInputCreateVariable;exports.withSopsPluginGroup=e.withSopsPluginGroup;
|
package/dist/advanced.d.ts
CHANGED
|
@@ -1231,6 +1231,23 @@ interface FlowDetailApiConfig extends FlowEditApiConfig, Partial<DebugApiService
|
|
|
1231
1231
|
declare const SOPS_PLUGIN_GROUP_NAME = "sops";
|
|
1232
1232
|
declare const PLUGIN_GROUP_ICON_MAP: Record<string, string>;
|
|
1233
1233
|
|
|
1234
|
+
/** 目录查询接口由宿主注入,三个都要有才能走完「来源 -> 分类 -> 插件 -> 详情」 */
|
|
1235
|
+
type SopsPluginCatalogApi = Pick<FlowEditApiConfig, 'fetchSopsPluginCategories' | 'fetchSopsPluginList' | 'fetchSopsPluginDetail'>;
|
|
1236
|
+
interface SopsPluginGroupOptions {
|
|
1237
|
+
spaceConfig?: SpaceFlowConfig | null;
|
|
1238
|
+
api: SopsPluginCatalogApi;
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* 从 `get_space_related_configs` 的 `uniform_api.api` 里取出标准运维来源。
|
|
1242
|
+
* id 即后续请求分类/插件列表要带的 `api_name`,顺序沿用配置里的顺序。
|
|
1243
|
+
*/
|
|
1244
|
+
declare function resolveSopsPluginSources(config?: SpaceFlowConfig | null): SopsPluginSourceItem[];
|
|
1245
|
+
/**
|
|
1246
|
+
* 空间接入了标准运维、且宿主实现了目录查询接口时,在插件分组末尾补上「标准运维插件」分组;
|
|
1247
|
+
* 否则原样返回。两个条件都要满足:少了接口,分组点开也只是一个永远空着的列表。
|
|
1248
|
+
*/
|
|
1249
|
+
declare function withSopsPluginGroup(groups: GroupsPluginItem[], options: SopsPluginGroupOptions): GroupsPluginItem[];
|
|
1250
|
+
|
|
1234
1251
|
/**
|
|
1235
1252
|
* 使用 Flow API 的 composable
|
|
1236
1253
|
* 返回所有 API 方法,兼容 FlowDetailApiConfig 接口(含调试 API)
|
|
@@ -1241,5 +1258,5 @@ type VariableInputCreateVariableHandler = (request: CreateVariableRequest) => vo
|
|
|
1241
1258
|
declare const provideVariableInputCreateVariable: (handler: VariableInputCreateVariableHandler) => void;
|
|
1242
1259
|
declare const useVariableInputCreateVariable: () => VariableInputCreateVariableHandler | null;
|
|
1243
1260
|
|
|
1244
|
-
export { PLUGIN_GROUP_ICON_MAP, SOPS_PLUGIN_GROUP_NAME, provideVariableInputCreateVariable, useFlowApi, useVariableInputCreateVariable };
|
|
1261
|
+
export { PLUGIN_GROUP_ICON_MAP, SOPS_PLUGIN_GROUP_NAME, provideVariableInputCreateVariable, resolveSopsPluginSources, useFlowApi, useVariableInputCreateVariable, withSopsPluginGroup };
|
|
1245
1262
|
export type { CreateVariablePayload, CreateVariableRequest, CustomVariableType, DebugApiServices, DebugConditionResult, DebugContext, DebugContextNode, DebugContextStatus, DebugErrorDetail, DebugExecutionMode, DebugInputSchema, DebugMissingVar, DebugNodeStatus, DebugRunStatus, DebugRunType, EndEvent, Flow, FlowDetailApiConfig, FlowEditApiConfig, FlowListItem, FlowViewApiConfig, GatewayType, Line, Location, NodeConfigData, NodeType, NotifyConfig, PluginGroupConfig, PluginOutputItem, PortOrientation, SelectRelatedSourceContext, SopsPluginCategory, SopsPluginCategoryParams, SopsPluginDetail, SopsPluginDetailParams, SopsPluginFormDescriptor, SopsPluginItem, SopsPluginListParams, SopsPluginListResult, SopsPluginSourceItem, SpaceUniformApiEntry, StartEvent, TemplateConfigs, UniformApiPluginConfig, UniformApiPluginInputsItem, VariableInputCreateVariableHandler, VariableOption, VariableRefRequestParams };
|
package/dist/advanced.esm.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { P as r, S as s, p as
|
|
1
|
+
import { P as r, S as s, p as i, r as o, u as p, a as u, w as P } from "./context-BGCiN3VZ.js";
|
|
2
2
|
export {
|
|
3
3
|
r as PLUGIN_GROUP_ICON_MAP,
|
|
4
4
|
s as SOPS_PLUGIN_GROUP_NAME,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
p as
|
|
5
|
+
i as provideVariableInputCreateVariable,
|
|
6
|
+
o as resolveSopsPluginSources,
|
|
7
|
+
p as useFlowApi,
|
|
8
|
+
u as useVariableInputCreateVariable,
|
|
9
|
+
P as withSopsPluginGroup
|
|
8
10
|
};
|