@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.
- package/build/index.js +24 -26
- 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.
|
|
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
|
|
57059
|
-
return
|
|
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
|
|
72697
|
-
const { session: t, actions: n, service: i } = un.useComposer(), { site: r } = t, s = t.pages[e.id], o
|
|
72698
|
-
|
|
72699
|
-
i.ast(
|
|
72700
|
-
}, [
|
|
72701
|
-
|
|
72702
|
-
|
|
72703
|
-
/* @__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:
|
|
72709
|
-
onChange: (
|
|
72710
|
-
hint: (
|
|
72711
|
-
const { pos:
|
|
72712
|
-
for (const
|
|
72713
|
-
const
|
|
72714
|
-
|
|
72715
|
-
`), displayText:
|
|
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
|
|
72715
|
+
return w;
|
|
72718
72716
|
},
|
|
72719
|
-
lint: () => !
|
|
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
|
-
|
|
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 = () => {
|