@dxs-ts/eveli-ide 0.0.106 → 0.0.107

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.
Files changed (2) hide show
  1. package/build/index.js +24 -26
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -49585,7 +49585,7 @@ const gpe = ({ site: e }) => {
49585
49585
  /* @__PURE__ */ c(qe, { onClick: a, disabled: r || !n, children: /* @__PURE__ */ c(le, { id: 'imports.import.action"' }) })
49586
49586
  ] })
49587
49587
  ] });
49588
- }, Up = { tag: "eveli-ide-0.0.106", built: "25/02/2025" }, vpe = (e, t, n) => [
49588
+ }, Up = { tag: "eveli-ide-0.0.107", built: "26/02/2025" }, vpe = (e, t, n) => [
49589
49589
  {
49590
49590
  composer: (i) => /* @__PURE__ */ c(bue, { onClose: i }),
49591
49591
  onView: () => n.handleTabAdd({ id: "articles", label: "Articles" }),
@@ -57055,12 +57055,8 @@ const Ipe = (e, t) => new Ope(e, t), Cpe = Rd(Ae)(({ theme: e }) => ({
57055
57055
  }
57056
57056
  }), [t.current]), /* @__PURE__ */ c("textarea", { id: e.id, ref: t }, e.id);
57057
57057
  }, Lu = (e) => {
57058
- const [t, n] = te.useState(e.id), [i, r] = te.useState(!1);
57059
- return te.useEffect(() => {
57060
- e.id !== t && (r(!0), n(e.id));
57061
- }, [e.id]), te.useEffect(() => {
57062
- i && r(!1);
57063
- }, [i]), i ? /* @__PURE__ */ c(Be, {}) : /* @__PURE__ */ c(Cpe, { children: /* @__PURE__ */ c(Rpe, { ...e }) });
57058
+ const t = te.useCallback(() => /* @__PURE__ */ c(Cpe, { children: /* @__PURE__ */ c(Rpe, { ...e }) }), [e.id]);
57059
+ return /* @__PURE__ */ c(t, {});
57064
57060
  };
57065
57061
  var OZ = { exports: {} }, zT = { exports: {} }, Z8;
57066
57062
  function Mpe() {
@@ -72693,34 +72689,36 @@ const as = () => new pme(), mme = (e, t) => {
72693
72689
  }
72694
72690
  );
72695
72691
  }, xme = ({ flow: e }) => {
72696
- var v;
72697
- const { session: t, actions: n, service: i } = un.useComposer(), { site: r } = t, s = t.pages[e.id], o = (v = e.ast) == null ? void 0 : v.src.value, [l, a] = te.useState(e.ast), [u, d] = te.useState(), [h, m] = te.useState(!1), p = te.useMemo(() => s ? s.value : e.source.commands, [e, s]), y = e.id;
72698
- return te.useEffect(() => {
72699
- i.ast(y, p).then((E) => a(E.ast));
72700
- }, [p, y, i]), /* @__PURE__ */ X(Ae, { sx: { height: 1, display: "flex" }, children: [
72701
- u ? /* @__PURE__ */ c(bme, { onClose: () => d(void 0), flow: e, ...u }) : void 0,
72702
- /* @__PURE__ */ c(Us, { title: /* @__PURE__ */ c(le, { id: h ? "flows.graph.hide" : "flows.graph.show" }), placement: "left", children: /* @__PURE__ */ c(ii, { sx: { top: "74px", right: "10px", position: "absolute", zIndex: 10 }, onClick: () => m(!h), children: h ? /* @__PURE__ */ c(oU, {}) : /* @__PURE__ */ c(aU, {}) }) }),
72703
- /* @__PURE__ */ c(Ae, { sx: { width: h ? 0.7 : 1 }, children: /* @__PURE__ */ c(
72692
+ var A;
72693
+ const { session: t, actions: n, service: i } = un.useComposer(), { site: r } = t, s = t.pages[e.id], [o, l] = te.useState(e.ast), [a, u] = te.useState(), [d, h] = te.useState(!1), m = te.useMemo(() => s ? s.value : e.source.commands, [e, s]), p = e.id;
72694
+ te.useEffect(() => {
72695
+ i.ast(p, m).then((T) => l(T.ast));
72696
+ }, [m, p, i]);
72697
+ const y = (A = e.ast) == null ? void 0 : A.src.value, E = (s == null ? void 0 : s.value[0].value) ?? y;
72698
+ return /* @__PURE__ */ X(Ae, { sx: { height: 1, display: "flex" }, children: [
72699
+ a ? /* @__PURE__ */ c(bme, { onClose: () => u(void 0), flow: e, ...a }) : void 0,
72700
+ /* @__PURE__ */ c(Us, { title: /* @__PURE__ */ c(le, { id: d ? "flows.graph.hide" : "flows.graph.show" }), placement: "left", children: /* @__PURE__ */ c(ii, { sx: { top: "74px", right: "10px", position: "absolute", zIndex: 10 }, onClick: () => h(!d), children: d ? /* @__PURE__ */ c(oU, {}) : /* @__PURE__ */ c(aU, {}) }) }),
72701
+ /* @__PURE__ */ c(Ae, { sx: { width: d ? 0.7 : 1 }, children: /* @__PURE__ */ c(
72704
72702
  Lu,
72705
72703
  {
72706
72704
  id: e.id,
72707
72705
  mode: "yaml",
72708
- src: o || "#--failed-to-parse",
72709
- onChange: (E) => n.handlePageUpdate(e.id, [{ type: "SET_BODY", value: E }]),
72710
- hint: (E) => {
72711
- const { pos: A, emptyLine: T } = E, b = l ? new fme(l, r, A).visit() : [], N = { from: { line: A.line, ch: 0 }, to: A, list: [] };
72712
- for (const g of b) {
72713
- const w = g.guided ? (I, C, P) => d({ cm: I, data: C, cur: P, guided: g }) : void 0, O = g.append && !T ? { line: A.line, ch: A.ch } : void 0, S = [];
72714
- g.append && !T && S.push(""), S.push(...g.value), N.list.push({ text: S.join(`\r
72715
- `), displayText: g.id, from: O, hint: w });
72706
+ src: E || "#--failed-to-parse",
72707
+ onChange: (T) => n.handlePageUpdate(e.id, [{ type: "SET_BODY", value: T }]),
72708
+ hint: (T) => {
72709
+ const { pos: b, emptyLine: N } = T, g = o ? new fme(o, r, b).visit() : [], w = { from: { line: b.line, ch: 0 }, to: b, list: [] };
72710
+ for (const O of g) {
72711
+ const S = O.guided ? (P, F, H) => u({ cm: P, data: F, cur: H, guided: O }) : void 0, I = O.append && !N ? { line: b.line, ch: b.ch } : void 0, C = [];
72712
+ O.append && !N && C.push(""), C.push(...O.value), w.list.push({ text: C.join(`\r
72713
+ `), displayText: O.id, from: I, hint: S });
72716
72714
  }
72717
- return N;
72715
+ return w;
72718
72716
  },
72719
- lint: () => !l || l.messages.length === 0 ? [] : l == null ? void 0 : l.messages.map((E) => ({ type: E.type, line: E.line, value: E.value }))
72717
+ lint: () => !o || o.messages.length === 0 ? [] : o == null ? void 0 : o.messages.map((T) => ({ type: T.type, line: T.line, value: T.value }))
72720
72718
  }
72721
72719
  ) }),
72722
72720
  /* @__PURE__ */ c(Un, { orientation: "vertical" }),
72723
- l && h ? /* @__PURE__ */ c(vme, { flow: l, site: r }) : void 0
72721
+ o && d ? /* @__PURE__ */ c(vme, { flow: o, site: r }) : void 0
72724
72722
  ] });
72725
72723
  }, wme = ({ onClose: e }) => {
72726
72724
  const { service: t, actions: n } = un.useComposer(), i = un.useNav(), { enqueueSnackbar: r } = wn(), [s, o] = te.useState(""), [l, a] = te.useState(!1), [u, d] = te.useState(), h = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxs-ts/eveli-ide",
3
- "version": "0.0.106",
3
+ "version": "0.0.107",
4
4
  "homepage": "https://github.com/digiexpress-io/digiexpress-parent",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",