@blueking/bkflow-canvas-editor 0.0.20 → 0.0.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/index.esm.js CHANGED
@@ -5664,23 +5664,25 @@ async function getThirdPartyPluginDetail(api, pluginCode, pluginVersion) {
5664
5664
  async function getUniformApiPlugin(e, t) {
5665
5665
  if (!e?.fetchPluginDetail)
5666
5666
  throw new Error("fetchPluginDetail API is not available");
5667
- const n = await e.fetchPluginDetail(t), { inputs: r, url: i, methods: y, group: g } = n;
5667
+ const n = await e.fetchPluginDetail(t), { inputs: r, url: i, methods: y, group: g, polling: k = {}, credential_key: $ = "" } = n;
5668
5668
  return {
5669
5669
  code: "uniform_api",
5670
5670
  name: n.name,
5671
5671
  desc: "",
5672
5672
  version: "",
5673
5673
  inputs: r,
5674
- outputs: uniformApiCommonConfig.data.output.map((k) => ({
5675
- description: k.schema.description,
5676
- key: k.key,
5677
- type: k.type,
5678
- name: k.name
5674
+ outputs: uniformApiCommonConfig.data.output.map((V) => ({
5675
+ description: V.schema.description,
5676
+ key: V.key,
5677
+ type: V.type,
5678
+ name: V.name
5679
5679
  })),
5680
5680
  inputParamsFormType: "uniformApiForm",
5681
5681
  url: i,
5682
5682
  group: g,
5683
5683
  methods: y,
5684
+ polling: k,
5685
+ credential_key: $,
5684
5686
  category: n.category,
5685
5687
  uniformApiName: n.name
5686
5688
  };
@@ -5740,7 +5742,7 @@ const getRenderFormInputItemDefaultValue = (e) => {
5740
5742
  }, k.uniform_api_plugin_method = {
5741
5743
  value: r && r.length > 0 ? r[0] : "",
5742
5744
  hook: !1
5743
- }, y && (k.uniform_api_plugin_polling = {
5745
+ }, y && Object.keys(y).length > 0 && (k.uniform_api_plugin_polling = {
5744
5746
  value: y,
5745
5747
  hook: !1
5746
5748
  }), g && (k.uniform_api_plugin_credential_key = {
@@ -31440,7 +31442,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
31440
31442
  component: {
31441
31443
  code: "uniform_api",
31442
31444
  data: {},
31443
- version: wn,
31445
+ version: wn || "v2.0.0",
31444
31446
  api_meta: {
31445
31447
  id: Cn,
31446
31448
  name: hn,
@@ -31751,7 +31753,7 @@ const AiopsForm = /* @__PURE__ */ _export_sfc$1(_sfc_main$o, [["render", _sfc_re
31751
31753
  }, null, 8, ["show", "flow-id", "actived", "bkflow-tag", "plugin-group-list"]))
31752
31754
  ]));
31753
31755
  }
31754
- }), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-bfe93680"]]), _hoisted_1$3 = { class: "execute-flow-slider" }, _hoisted_2$3 = { class: "flow-name-wrapper" }, _hoisted_3$3 = { class: "form-params-wrapper" }, _hoisted_4$3 = {
31756
+ }), FlowCanvas = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__scopeId", "data-v-200aa4e2"]]), _hoisted_1$3 = { class: "execute-flow-slider" }, _hoisted_2$3 = { class: "flow-name-wrapper" }, _hoisted_3$3 = { class: "form-params-wrapper" }, _hoisted_4$3 = {
31755
31757
  key: 0,
31756
31758
  class: "sideslider-footer-buttons"
31757
31759
  }, _sfc_main$3 = /* @__PURE__ */ defineComponent({