@digitalsee-ai/rcs 2.0.0-beta12 → 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-DHj4kcT2.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-rOPtHLZf.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-rOPtHLZf.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
  }
@@ -45432,27 +45433,39 @@ const XX = (t) => ({
45432
45433
  });
45433
45434
  const i = (n == null ? void 0 : n.activeFieldId) ?? r, s = se(() => ({ activeInputId: i }), [i]);
45434
45435
  return /* @__PURE__ */ p(kT.Provider, { value: s, children: t });
45435
- }, BJ = (t) => /* @__PURE__ */ L("div", { className: "node-config-title", style: { display: "flex", alignItems: "center" }, children: [
45436
- /* @__PURE__ */ p("div", { className: "node-config-icon", style: { backgroundImage: `url(${t.icon})` }, children: t.icon ? "" : t.name }),
45437
- /* @__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: [
45438
45439
  /* @__PURE__ */ p(
45439
45440
  "div",
45440
45441
  {
45441
- className: "node-config-title-name",
45442
- style: { fontSize: 16, fontWeight: 600, marginLeft: 10 },
45443
- 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
45444
45447
  }
45445
45448
  ),
45446
- /* @__PURE__ */ p(
45447
- "div",
45448
- {
45449
- className: "node-config-title-description",
45450
- style: { fontSize: 12, color: "gray", marginLeft: 10 },
45451
- children: t.description
45452
- }
45453
- )
45454
- ] })
45455
- ] }), 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(
45456
45469
  ({ visible: t, onClose: e, data: n, nodeType: r = me.ACTION, nodeId: o = "" }) => {
45457
45470
  var T, B;
45458
45471
  const i = CF();
@@ -45655,6 +45668,7 @@ const XX = (t) => ({
45655
45668
  BJ,
45656
45669
  {
45657
45670
  icon: n == null ? void 0 : n.icon,
45671
+ fallbackIcon: n == null ? void 0 : n.fallbackIcon,
45658
45672
  name: (n == null ? void 0 : n.action_name) || (n == null ? void 0 : n.label),
45659
45673
  description: n == null ? void 0 : n.description
45660
45674
  }
@@ -61613,4 +61627,4 @@ export {
61613
61627
  gv as y,
61614
61628
  pae as z
61615
61629
  };
61616
- //# sourceMappingURL=index-DHj4kcT2.mjs.map
61630
+ //# sourceMappingURL=index-DexSKLJx.mjs.map