@digitalsee-ai/rcs 2.0.0-beta11 → 2.0.0-beta13

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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as t, jsxs as v } from "react/jsx-runtime";
2
- import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-DvM_eQdC.mjs";
2
+ import { D as T, V as L, e as V, i as P, t as l, f as R, d as O } from "./index-DexSKLJx.mjs";
3
3
  import { useEventEmitter as B, useReactive as W, useSize as H } from "ahooks";
4
4
  import { FormattedMessage as $ } from "react-intl";
5
5
  import { CloseCircleFilled as A, CheckCircleFilled as K } from "@ant-design/icons";
@@ -279,4 +279,4 @@ function $e(e) {
279
279
  export {
280
280
  $e as default
281
281
  };
282
- //# sourceMappingURL=index-6UR19hpE.mjs.map
282
+ //# sourceMappingURL=index-CreWCJ6Q.mjs.map
@@ -9047,7 +9047,7 @@ const Rc = {
9047
9047
  ] }, c))
9048
9048
  }
9049
9049
  ) });
9050
- }, M4 = GR(() => import("./index-6UR19hpE.mjs")), C_ = (t) => {
9050
+ }, M4 = GR(() => import("./index-CreWCJ6Q.mjs")), C_ = (t) => {
9051
9051
  const e = Mr({
9052
9052
  editorVisible: !1
9053
9053
  }), n = () => {
@@ -35782,7 +35782,7 @@ const QU = (t) => {
35782
35782
  }, sq = (t) => (t ?? []).map((n) => iq(n)).join(`
35783
35783
  `), aq = rn(
35784
35784
  ({
35785
- onValueChange: t = (d) => {
35785
+ onValueChange: t = (f) => {
35786
35786
  },
35787
35787
  removeTagButton: e = !1,
35788
35788
  initValue: n,
@@ -35792,65 +35792,66 @@ const QU = (t) => {
35792
35792
  transformInputText: s,
35793
35793
  transformInputElement: a,
35794
35794
  textAreaMode: l,
35795
- capturePattern: c = K9
35796
- }, u) => {
35797
- const d = ge(null), f = se(() => oq(JU(g7()), c), []), [h, m] = ne(iu(n, c));
35798
- let b = n;
35799
- const v = J(({ element: C, children: E, attributes: S }) => {
35800
- switch (C.type) {
35795
+ capturePattern: c = K9,
35796
+ disabled: u
35797
+ }, d) => {
35798
+ const f = ge(null), h = se(() => oq(JU(g7()), c), []), [m, b] = ne(iu(n, c));
35799
+ let v = n;
35800
+ const w = J(({ element: E, children: S, attributes: x }) => {
35801
+ switch (E.type) {
35801
35802
  case "paragraph":
35802
- return /* @__PURE__ */ p(rq, { attributes: S, element: C, children: E });
35803
+ return /* @__PURE__ */ p(rq, { attributes: x, element: E, children: S });
35803
35804
  case "tag":
35804
35805
  return /* @__PURE__ */ p(
35805
35806
  nq,
35806
35807
  {
35807
- attributes: S,
35808
- element: C,
35808
+ attributes: x,
35809
+ element: E,
35809
35810
  removeTagButton: e,
35810
35811
  addImageElement: i,
35811
35812
  transformInputText: s,
35812
35813
  transformInputElement: a,
35813
- children: E
35814
+ children: S
35814
35815
  }
35815
35816
  );
35816
35817
  default:
35817
- return /* @__PURE__ */ p(tq, { attributes: S, element: C, children: E });
35818
+ return /* @__PURE__ */ p(tq, { attributes: x, element: E, children: S });
35818
35819
  }
35819
35820
  }, []);
35820
35821
  de(() => {
35821
- m(iu(n, c));
35822
+ b(iu(n, c));
35822
35823
  }, [n]);
35823
- const w = J((C) => {
35824
- d.current = f.selection;
35825
- const E = sq(C);
35826
- E !== b && (b = C, m(C), t(E));
35827
- }, []), g = (C) => {
35828
- fe.delete(f, { at: [0] });
35829
- const E = iu(C, c);
35830
- f.children = iu("", c), fe.insertNodes(f, E, { at: [0] });
35831
- }, y = (C) => {
35832
- var E;
35833
- uN(f, C, {
35834
- at: (E = d.current) == null ? void 0 : E.focus
35835
- }), fe.move(f, {
35836
- distance: h.length - 1
35824
+ const g = J((E) => {
35825
+ f.current = h.selection;
35826
+ const S = sq(E);
35827
+ S !== v && (v = E, b(E), t(S));
35828
+ }, []), y = (E) => {
35829
+ fe.delete(h, { at: [0] });
35830
+ const S = iu(E, c);
35831
+ h.children = iu("", c), fe.insertNodes(h, S, { at: [0] });
35832
+ }, k = (E) => {
35833
+ var S;
35834
+ uN(h, E, {
35835
+ at: (S = f.current) == null ? void 0 : S.focus
35836
+ }), fe.move(h, {
35837
+ distance: m.length - 1
35837
35838
  });
35838
35839
  };
35839
- Vn(u, () => ({
35840
- insertTag: y,
35841
- setValueByParent: g
35840
+ Vn(d, () => ({
35841
+ insertTag: k,
35842
+ setValueByParent: y
35842
35843
  }));
35843
- const k = zt();
35844
- return /* @__PURE__ */ p(YU, { editor: f, initialValue: h, onChange: w, children: /* @__PURE__ */ p(
35844
+ const C = zt();
35845
+ return /* @__PURE__ */ p(YU, { editor: h, initialValue: m, onChange: g, children: /* @__PURE__ */ p(
35845
35846
  VU,
35846
35847
  {
35847
35848
  style: l ? { minHeight: 60, maxHeight: 200 } : { maxHeight: 150 },
35848
35849
  onFocus: r,
35849
35850
  onBlur: o,
35850
- readOnly: !k,
35851
+ readOnly: !C || u,
35851
35852
  spellCheck: !1,
35852
35853
  className: "ce-tag_input",
35853
- renderElement: v
35854
+ renderElement: w
35854
35855
  }
35855
35856
  ) });
35856
35857
  }
@@ -41518,6 +41519,7 @@ const IY = Ce.Item, { Option: RY } = ut, { Text: FY, Title: iae } = Rn, fs = "[w
41518
41519
  layout: "vertical",
41519
41520
  required: !0,
41520
41521
  name: g,
41522
+ initialValue: t,
41521
41523
  rules: [
41522
41524
  {
41523
41525
  validator: () => t ? Promise.resolve() : Promise.reject(new Error(s || "请选择账号"))
@@ -45431,27 +45433,39 @@ const XX = (t) => ({
45431
45433
  });
45432
45434
  const i = (n == null ? void 0 : n.activeFieldId) ?? r, s = se(() => ({ activeInputId: i }), [i]);
45433
45435
  return /* @__PURE__ */ p(kT.Provider, { value: s, children: t });
45434
- }, BJ = (t) => /* @__PURE__ */ L("div", { className: "node-config-title", style: { display: "flex", alignItems: "center" }, children: [
45435
- /* @__PURE__ */ p("div", { className: "node-config-icon", style: { backgroundImage: `url(${t.icon})` }, children: t.icon ? "" : t.name }),
45436
- /* @__PURE__ */ L("div", { className: "node-config-meta", children: [
45436
+ }, BJ = (t) => {
45437
+ const { icon: e, fallbackIcon: n } = t;
45438
+ return /* @__PURE__ */ L("div", { className: "node-config-title", style: { display: "flex", alignItems: "center" }, children: [
45437
45439
  /* @__PURE__ */ p(
45438
45440
  "div",
45439
45441
  {
45440
- className: "node-config-title-name",
45441
- style: { fontSize: 16, fontWeight: 600, marginLeft: 10 },
45442
- children: t.name
45442
+ className: "node-config-icon",
45443
+ style: {
45444
+ backgroundImage: `url(${n ? "none" : e ?? "https://digitalsee-image.digitalsee.cn/flow/0.png"})`
45445
+ },
45446
+ children: n && n
45443
45447
  }
45444
45448
  ),
45445
- /* @__PURE__ */ p(
45446
- "div",
45447
- {
45448
- className: "node-config-title-description",
45449
- style: { fontSize: 12, color: "gray", marginLeft: 10 },
45450
- children: t.description
45451
- }
45452
- )
45453
- ] })
45454
- ] }), IJ = Fr(
45449
+ /* @__PURE__ */ L("div", { className: "node-config-meta", children: [
45450
+ /* @__PURE__ */ p(
45451
+ "div",
45452
+ {
45453
+ className: "node-config-title-name",
45454
+ style: { fontSize: 16, fontWeight: 600, marginLeft: 10 },
45455
+ children: t.name
45456
+ }
45457
+ ),
45458
+ /* @__PURE__ */ p(
45459
+ "div",
45460
+ {
45461
+ className: "node-config-title-description",
45462
+ style: { fontSize: 12, color: "gray", marginLeft: 10 },
45463
+ children: t.description
45464
+ }
45465
+ )
45466
+ ] })
45467
+ ] });
45468
+ }, IJ = Fr(
45455
45469
  ({ visible: t, onClose: e, data: n, nodeType: r = me.ACTION, nodeId: o = "" }) => {
45456
45470
  var T, B;
45457
45471
  const i = CF();
@@ -45654,6 +45668,7 @@ const XX = (t) => ({
45654
45668
  BJ,
45655
45669
  {
45656
45670
  icon: n == null ? void 0 : n.icon,
45671
+ fallbackIcon: n == null ? void 0 : n.fallbackIcon,
45657
45672
  name: (n == null ? void 0 : n.action_name) || (n == null ? void 0 : n.label),
45658
45673
  description: n == null ? void 0 : n.description
45659
45674
  }
@@ -56292,10 +56307,7 @@ const vI = /^[1-9]\d*$/, Wm = (t) => {
56292
56307
  const n = Number(e);
56293
56308
  return Number.isSafeInteger(n) ? n : void 0;
56294
56309
  }, Ere = (t) => {
56295
- const e = t.scene.trim();
56296
- if (!e)
56297
- return null;
56298
- const n = Kr(t.categoryName), r = Kr(t.flowId), o = HE(t.page), i = HE(t.size);
56310
+ const e = t.scene.trim(), n = Kr(t.categoryName), r = Kr(t.flowId), o = HE(t.page), i = HE(t.size);
56299
56311
  return {
56300
56312
  scene: e,
56301
56313
  trigger: t.trigger,
@@ -56308,8 +56320,6 @@ const vI = /^[1-9]\d*$/, Wm = (t) => {
56308
56320
  };
56309
56321
  }, Sre = (t, e) => {
56310
56322
  const n = Ere(e);
56311
- if (!n)
56312
- return null;
56313
56323
  switch (t.mode) {
56314
56324
  case "independent":
56315
56325
  return { ...n, mode: "independent" };
@@ -61617,4 +61627,4 @@ export {
61617
61627
  gv as y,
61618
61628
  pae as z
61619
61629
  };
61620
- //# sourceMappingURL=index-DvM_eQdC.mjs.map
61630
+ //# sourceMappingURL=index-DexSKLJx.mjs.map