@w6w/ui 0.1.0 → 0.1.1
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/CHANGELOG.md +20 -0
- package/README.md +18 -3
- package/dist/ConfirmModal-8avl9Nv8.cjs +11 -0
- package/dist/ConfirmModal-8avl9Nv8.cjs.map +1 -0
- package/dist/{ConfirmModal-sY1tzkBO.js → ConfirmModal-CD-P8mhN.js} +3822 -3822
- package/dist/ConfirmModal-CD-P8mhN.js.map +1 -0
- package/dist/code.cjs +1 -1
- package/dist/code.mjs +1 -0
- package/dist/code.mjs.map +1 -1
- package/dist/flow.cjs +1 -1
- package/dist/flow.cjs.map +1 -1
- package/dist/flow.d.ts +3 -1
- package/dist/flow.mjs +50 -49
- package/dist/flow.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/dist/provider.d.ts +2 -1
- package/package.json +2 -1
- package/src/code.css +23 -4
- package/src/styles/_flow.scss +4 -4
- package/src/styles/_tokens.scss +23 -4
- package/src/styles.css +695 -9
- package/dist/ConfirmModal-DJPYXE9t.cjs +0 -11
- package/dist/ConfirmModal-DJPYXE9t.cjs.map +0 -1
- package/dist/ConfirmModal-sY1tzkBO.js.map +0 -1
- package/dist/ui.css +0 -1
package/dist/flow.d.ts
CHANGED
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
* ```ts
|
|
8
8
|
* import { WorkflowFlowEditor } from "@w6w/ui/flow";
|
|
9
9
|
* import "@w6w/ui/styles.css";
|
|
10
|
-
* import "@xyflow/react/dist/style.css";
|
|
11
10
|
* ```
|
|
11
|
+
*
|
|
12
|
+
* `@w6w/ui/styles.css` already carries React Flow's base stylesheet (it is
|
|
13
|
+
* compiled in from `@xyflow/react/dist/style`), so no second import is needed.
|
|
12
14
|
*/
|
|
13
15
|
export { WorkflowFlowEditor } from './WorkflowFlowEditor.tsx';
|
|
14
16
|
export type { WorkflowFlowEditorProps } from './WorkflowFlowEditor.tsx';
|
package/dist/flow.mjs
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx as t, jsxs as w, Fragment as B } from "react/jsx-runtime";
|
|
2
3
|
import { addEdge as sn, ReactFlowProvider as on, useNodesState as rn, useEdgesState as an, useReactFlow as ln, ReactFlow as cn, ConnectionLineType as dn, Background as un, Controls as pn, ControlButton as fn, MiniMap as hn, Panel as vt, Position as we, NodeToolbar as wn, Handle as mn } from "@xyflow/react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { useMemo as M, useState as S, useRef as me, useEffect as _, useCallback as J, useContext as ge, createContext as Je } from "react";
|
|
5
|
+
import { createPortal as gn } from "react-dom";
|
|
6
|
+
import { u as Vt, b as bn, f as vn, i as Nn, J as qe, d as yn, r as Ft, a as Cn, c as Sn, v as kn, n as le, e as Ge, g as Xe, s as Wt, h as Pe, j as Me, w as En, k as xn, l as Rn, m as Nt, o as We, p as yt, q as Tn, t as Ct, x as An, y as $t, z as Ce, A as Pn, B as In, C as Ae, D as St, E as Dn, F as Ln, G as Vn, W as Fn, H as Wn, I as $n, S as On, K as Jn, M as Ot, L as Mn, N as Jt, O as Mt, P as _t, Q as Ye, R as kt, T as Et, U as Ht, V as Bt, X as jt, Y as Ut, Z as xt, _ as Ke, $ as _n, a0 as Hn, a1 as Bn, a2 as jn, a3 as Un, a4 as zn, a5 as Rt, a6 as qn, a7 as Kn, a8 as Gn, a9 as Xn, aa as Yn, ab as Qn, ac as Zn } from "./ConfirmModal-CD-P8mhN.js";
|
|
7
|
+
import { ad as Hs, ae as Bs, af as js, ag as Us, ah as zs, ai as qs, aj as Ks, ak as Gs, al as Xs } from "./ConfirmModal-CD-P8mhN.js";
|
|
7
8
|
import { I as ye, C as es } from "./Copyable-1niV9gUa.js";
|
|
8
9
|
const Tt = 220;
|
|
9
10
|
function ts(e) {
|
|
@@ -20,12 +21,12 @@ function ns({
|
|
|
20
21
|
view: r = "props"
|
|
21
22
|
}) {
|
|
22
23
|
const { sampleValues: c } = Vt(), l = M(
|
|
23
|
-
() =>
|
|
24
|
+
() => bn(c, o),
|
|
24
25
|
[c, o]
|
|
25
|
-
), u =
|
|
26
|
+
), u = vn(e), y = (f) => {
|
|
26
27
|
var a;
|
|
27
28
|
return n[f] !== void 0 ? n[f] : (a = u.find((g) => g.key === f)) == null ? void 0 : a.default;
|
|
28
|
-
}, C = u.filter((f) => f.type !== "section" &&
|
|
29
|
+
}, C = u.filter((f) => f.type !== "section" && Nn(f, y));
|
|
29
30
|
if (r === "code") {
|
|
30
31
|
const f = ss(C, n, l);
|
|
31
32
|
return /* @__PURE__ */ t("div", { className: "w6w-resolved-params", children: /* @__PURE__ */ t(
|
|
@@ -41,7 +42,7 @@ function ns({
|
|
|
41
42
|
}
|
|
42
43
|
) });
|
|
43
44
|
}
|
|
44
|
-
const N = C.filter((f) => !
|
|
45
|
+
const N = C.filter((f) => !yn(y(f.key), f.default));
|
|
45
46
|
return C.length === 0 ? /* @__PURE__ */ t("div", { className: "w6w-resolved-params", children: /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "This action takes no parameters." }) }) : N.length === 0 ? /* @__PURE__ */ t("div", { className: "w6w-resolved-params", children: /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Every configured value matches its default — nothing to show here. Switch to JSON to see the full set." }) }) : (
|
|
46
47
|
// `.w6w-resolved-table` is the ONE grid this whole row list shares — each
|
|
47
48
|
// `.w6w-resolved-row` below is `display: contents` and contributes its
|
|
@@ -67,9 +68,9 @@ function ss(e, n, o) {
|
|
|
67
68
|
for (const c of e)
|
|
68
69
|
if (c.type === "vars") {
|
|
69
70
|
const l = Array.isArray(n[c.key]) ? n[c.key] : Array.isArray(c.default) ? c.default : [];
|
|
70
|
-
r[c.key] =
|
|
71
|
+
r[c.key] = Cn(l, o);
|
|
71
72
|
} else
|
|
72
|
-
r[c.key] =
|
|
73
|
+
r[c.key] = Sn(
|
|
73
74
|
n[c.key] !== void 0 ? n[c.key] : c.default,
|
|
74
75
|
o
|
|
75
76
|
);
|
|
@@ -144,7 +145,7 @@ function At({ value: e }) {
|
|
|
144
145
|
}
|
|
145
146
|
const is = { var: "◆", secret: "🔒", expr: "ƒ" };
|
|
146
147
|
function $e({ kind: e, refName: n }) {
|
|
147
|
-
const o = e === "expr" ? "expr" :
|
|
148
|
+
const o = e === "expr" ? "expr" : kn(n ?? "");
|
|
148
149
|
return /* @__PURE__ */ w("span", { className: `w6w-expr-chip w6w-expr-chip-${e}`, children: [
|
|
149
150
|
/* @__PURE__ */ t("span", { className: "w6w-expr-chip-sigil", children: is[e] }),
|
|
150
151
|
/* @__PURE__ */ t("span", { className: "w6w-expr-chip-label", children: o })
|
|
@@ -364,11 +365,11 @@ function It(e, n, o, r) {
|
|
|
364
365
|
const c = e.find((l) => l.id === n);
|
|
365
366
|
return [o, r, c == null ? void 0 : c.source, c == null ? void 0 : c.target];
|
|
366
367
|
}
|
|
367
|
-
const et =
|
|
368
|
+
const et = Je(void 0), tt = Je(/* @__PURE__ */ new Map());
|
|
368
369
|
function Dt(e) {
|
|
369
370
|
return `Can’t draw that edge: this node allows at most ${e} outgoing edge${e === 1 ? "" : "s"} per lane.`;
|
|
370
371
|
}
|
|
371
|
-
const nt =
|
|
372
|
+
const nt = Je(/* @__PURE__ */ new Map()), Xt = Je(null);
|
|
372
373
|
function Js(e) {
|
|
373
374
|
return /* @__PURE__ */ t(on, { children: /* @__PURE__ */ t(ks, { ...e }) });
|
|
374
375
|
}
|
|
@@ -385,7 +386,7 @@ function ks({
|
|
|
385
386
|
fitViewKey: N
|
|
386
387
|
}) {
|
|
387
388
|
var mt, gt, bt;
|
|
388
|
-
const f =
|
|
389
|
+
const f = Me(), a = M(() => new Map((c ?? []).map((s) => [s.id, s])), [c]), [g, E] = S(null), P = M(() => En(e), [e.id]), R = M(() => xn(e), [e.id]), V = ((mt = e.settings) == null ? void 0 : mt.savePosition) !== !1, [d, I, ce] = rn(P.nodes), ne = ys(f, d), W = M(() => Cs(ne), [ne]), [b, A, de] = an(P.edges);
|
|
389
390
|
_(() => {
|
|
390
391
|
I(
|
|
391
392
|
(s) => s.map((i) => {
|
|
@@ -399,7 +400,7 @@ function ks({
|
|
|
399
400
|
})
|
|
400
401
|
);
|
|
401
402
|
}, [y, I, A]);
|
|
402
|
-
const [K, G] = S(null), [x, z] = S(null), [$, te] = S(!1), [O, se] = S(null), [be, oe] = S("props"), [re, ke] = S(null), ue = me(!1), Ie = me(null), [H, X] = S(null), { screenToFlowPosition: De, fitView: j } = ln(), _e =
|
|
403
|
+
const [K, G] = S(null), [x, z] = S(null), [$, te] = S(!1), [O, se] = S(null), [be, oe] = S("props"), [re, ke] = S(null), ue = me(!1), Ie = me(null), [H, X] = S(null), { screenToFlowPosition: De, fitView: j } = ln(), _e = Rn();
|
|
403
404
|
_(() => {
|
|
404
405
|
I(P.nodes), A(P.edges), G(null), se(null);
|
|
405
406
|
}, [P, I, A]);
|
|
@@ -491,7 +492,7 @@ function ks({
|
|
|
491
492
|
[d, b, I, A, D, o, K, O]
|
|
492
493
|
), Ee = J(() => {
|
|
493
494
|
if (o) return;
|
|
494
|
-
const s =
|
|
495
|
+
const s = Tn(d, b);
|
|
495
496
|
I(s), ue.current = !0, D(s, b);
|
|
496
497
|
}, [d, b, I, D, o]), xe = J(() => {
|
|
497
498
|
o || Ee();
|
|
@@ -563,7 +564,7 @@ function ks({
|
|
|
563
564
|
if (o) return;
|
|
564
565
|
const i = Pe(s.uses.app), p = Ct(
|
|
565
566
|
d.map((U) => U.id),
|
|
566
|
-
|
|
567
|
+
An($t(s.uses.app, s.uses.action))
|
|
567
568
|
), m = {
|
|
568
569
|
id: p,
|
|
569
570
|
uses: s.uses,
|
|
@@ -583,11 +584,11 @@ function ks({
|
|
|
583
584
|
const U = d.find((L) => Ce(L.data.step.uses.app));
|
|
584
585
|
if (Ce(s.uses.app)) {
|
|
585
586
|
if (!U) {
|
|
586
|
-
const L =
|
|
587
|
+
const L = Pn(d, b);
|
|
587
588
|
L && (T = Oe(p, L.id, k, b, "success", W) ?? b);
|
|
588
589
|
}
|
|
589
590
|
} else {
|
|
590
|
-
const Q = (U && !b.some((Z) => Z.source === U.id) ? U : void 0) ??
|
|
591
|
+
const Q = (U && !b.some((Z) => Z.source === U.id) ? U : void 0) ?? In(d, b);
|
|
591
592
|
Q && (T = Oe(Q.id, p, k, b, "success", W) ?? b);
|
|
592
593
|
}
|
|
593
594
|
}
|
|
@@ -724,7 +725,7 @@ function ks({
|
|
|
724
725
|
[ne, Fe]
|
|
725
726
|
), [dt, ut] = S(null), Ne = M(() => {
|
|
726
727
|
const s = St(O, d, b, ct);
|
|
727
|
-
return { ...s, steps:
|
|
728
|
+
return { ...s, steps: Dn(s.steps, O ?? dt) };
|
|
728
729
|
}, [O, dt, d, b, ct]), pt = JSON.stringify(Ne.steps.map((s) => s.id));
|
|
729
730
|
_(() => {
|
|
730
731
|
const s = JSON.parse(pt);
|
|
@@ -755,7 +756,7 @@ function ks({
|
|
|
755
756
|
const ft = M(() => {
|
|
756
757
|
const s = {};
|
|
757
758
|
for (const i of Ne.steps) {
|
|
758
|
-
Object.assign(s,
|
|
759
|
+
Object.assign(s, Ln(i.id, it[i.id]));
|
|
759
760
|
const p = Fe[i.id];
|
|
760
761
|
if (p !== void 0) {
|
|
761
762
|
if (s[`steps.${i.id}.output`] = p, typeof p == "object" && p !== null && !Array.isArray(p))
|
|
@@ -763,7 +764,7 @@ function ks({
|
|
|
763
764
|
s[`steps.${i.id}.output.${m}`] = v;
|
|
764
765
|
for (const m of i.outputs ?? []) {
|
|
765
766
|
if (!m.path || !m.key.includes(".")) continue;
|
|
766
|
-
const v =
|
|
767
|
+
const v = Vn(p, m.key);
|
|
767
768
|
v !== void 0 && (s[`steps.${i.id}.output.${m.key}`] = v);
|
|
768
769
|
}
|
|
769
770
|
}
|
|
@@ -782,7 +783,7 @@ function ks({
|
|
|
782
783
|
}),
|
|
783
784
|
[l, ht.sampleValues, Ne, ft]
|
|
784
785
|
);
|
|
785
|
-
return /* @__PURE__ */ t(Xt.Provider, { value: je, children: /* @__PURE__ */ t(et.Provider, { value: W, children: /* @__PURE__ */ t(tt.Provider, { value: rt, children: /* @__PURE__ */ t(nt.Provider, { value: a, children: /* @__PURE__ */ t(
|
|
786
|
+
return /* @__PURE__ */ t(Xt.Provider, { value: je, children: /* @__PURE__ */ t(et.Provider, { value: W, children: /* @__PURE__ */ t(tt.Provider, { value: rt, children: /* @__PURE__ */ t(nt.Provider, { value: a, children: /* @__PURE__ */ t(Fn, { project: u, children: /* @__PURE__ */ t(Wn, { value: wt, children: /* @__PURE__ */ w(
|
|
786
787
|
"div",
|
|
787
788
|
{
|
|
788
789
|
ref: Ie,
|
|
@@ -811,7 +812,7 @@ function ks({
|
|
|
811
812
|
},
|
|
812
813
|
onMoveEnd: (s, i) => {
|
|
813
814
|
if (!s || o) return;
|
|
814
|
-
const p = Nt(e, d, b), m =
|
|
815
|
+
const p = Nt(e, d, b), m = $n(p, i);
|
|
815
816
|
m !== p && n(m);
|
|
816
817
|
},
|
|
817
818
|
onSelectionChange: ({ nodes: s, edges: i }) => {
|
|
@@ -867,7 +868,7 @@ function ks({
|
|
|
867
868
|
}
|
|
868
869
|
),
|
|
869
870
|
$ && /* @__PURE__ */ t(
|
|
870
|
-
|
|
871
|
+
On,
|
|
871
872
|
{
|
|
872
873
|
onClose: () => {
|
|
873
874
|
te(!1), X(null), ut(null);
|
|
@@ -878,7 +879,7 @@ function ks({
|
|
|
878
879
|
},
|
|
879
880
|
onDraftChange: (s, i) => Y(s, { id: s, ...i }),
|
|
880
881
|
workflowId: e.id,
|
|
881
|
-
upstreamSteps:
|
|
882
|
+
upstreamSteps: Jn(H, d, b)
|
|
882
883
|
}
|
|
883
884
|
),
|
|
884
885
|
ot && O && // No `key` on purpose: renaming a step updates `editingId`, and a keyed
|
|
@@ -1007,7 +1008,7 @@ function ks({
|
|
|
1007
1008
|
}
|
|
1008
1009
|
),
|
|
1009
1010
|
re !== null && /* @__PURE__ */ t(
|
|
1010
|
-
|
|
1011
|
+
Mn,
|
|
1011
1012
|
{
|
|
1012
1013
|
title: "Delete step",
|
|
1013
1014
|
message: `Delete step "${re}"? Its connections are removed too.`,
|
|
@@ -1102,13 +1103,13 @@ function Es({
|
|
|
1102
1103
|
onRun: r,
|
|
1103
1104
|
onCancel: c
|
|
1104
1105
|
}) {
|
|
1105
|
-
const l =
|
|
1106
|
+
const l = Me(), u = Ce(n.uses.app), y = Pe(n.uses.app), C = M(
|
|
1106
1107
|
() => {
|
|
1107
1108
|
var x;
|
|
1108
1109
|
return u ? Rt((x = n.with) == null ? void 0 : x.fields) : [];
|
|
1109
1110
|
},
|
|
1110
1111
|
[u, n.with]
|
|
1111
|
-
), N = M(() => u ?
|
|
1112
|
+
), N = M(() => u ? qn(C) : y ? Ht(n.uses.app, n.uses.action) : null, [u, y, C, n.uses.app, n.uses.action]), [f, a] = S(null), g = N ?? f;
|
|
1112
1113
|
_(() => {
|
|
1113
1114
|
if (N) return;
|
|
1114
1115
|
if (!n.uses.app || !n.uses.action) {
|
|
@@ -1126,7 +1127,7 @@ function Es({
|
|
|
1126
1127
|
const [E, P] = S(
|
|
1127
1128
|
() => {
|
|
1128
1129
|
var x;
|
|
1129
|
-
return u ?
|
|
1130
|
+
return u ? Kn(Rt((x = n.with) == null ? void 0 : x.fields)) : {};
|
|
1130
1131
|
}
|
|
1131
1132
|
), [R, V] = S("{}"), d = Bt(e, o, !u), I = jt(d), [ce, ne] = S(!1);
|
|
1132
1133
|
_(() => {
|
|
@@ -1149,7 +1150,7 @@ function Es({
|
|
|
1149
1150
|
/* @__PURE__ */ w("div", { className: "w6w-stepconfig", children: [
|
|
1150
1151
|
/* @__PURE__ */ t("div", { className: "w6w-modal-body", children: /* @__PURE__ */ t("div", { className: "w6w-stack", children: g === null || !ce ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: g === null ? "Loading parameters…" : "Loading saved values…" }) : u ? /* @__PURE__ */ w(B, { children: [
|
|
1151
1152
|
/* @__PURE__ */ t(
|
|
1152
|
-
|
|
1153
|
+
Gn,
|
|
1153
1154
|
{
|
|
1154
1155
|
params: g,
|
|
1155
1156
|
values: E,
|
|
@@ -1410,7 +1411,7 @@ function Ts({
|
|
|
1410
1411
|
onTestRun: C
|
|
1411
1412
|
}) {
|
|
1412
1413
|
var Ve;
|
|
1413
|
-
const N =
|
|
1414
|
+
const N = Me(), f = ge(nt), [a, g] = S(n), [E, P] = S(
|
|
1414
1415
|
"configure"
|
|
1415
1416
|
), [R, V] = S(
|
|
1416
1417
|
u === "json" ? "code" : u === "settings" ? "config" : "props"
|
|
@@ -1452,7 +1453,7 @@ function Ts({
|
|
|
1452
1453
|
), _e = (h) => {
|
|
1453
1454
|
h === "code" ? ne(kt(a)) : h === "params-code" && b(Et(a)), V(h);
|
|
1454
1455
|
}, D = () => {
|
|
1455
|
-
const h = te.trim(), q = h && h !== a.id ?
|
|
1456
|
+
const h = te.trim(), q = h && h !== a.id ? Zn(h) : null;
|
|
1456
1457
|
if (q) {
|
|
1457
1458
|
be(q);
|
|
1458
1459
|
return;
|
|
@@ -1580,14 +1581,14 @@ function Ts({
|
|
|
1580
1581
|
E === "configure" && /* @__PURE__ */ w(B, { children: [
|
|
1581
1582
|
a.uses.app === Ke && N.listSubscriptionsForWorkflow && N.createSubscription && /* @__PURE__ */ t(Is, { workflowId: e, step: a, readOnly: l }),
|
|
1582
1583
|
oe === null ? /* @__PURE__ */ t("p", { className: "w6w-muted w6w-small", children: "Loading parameters…" }) : R === "props" ? a.uses.action === "wait" && Ae(a.uses.app) ? /* @__PURE__ */ t(
|
|
1583
|
-
|
|
1584
|
+
_n,
|
|
1584
1585
|
{
|
|
1585
1586
|
values: a.with ?? {},
|
|
1586
1587
|
readOnly: l,
|
|
1587
1588
|
onChange: (h) => j({ ...a, with: h })
|
|
1588
1589
|
}
|
|
1589
1590
|
) : /* @__PURE__ */ t(
|
|
1590
|
-
|
|
1591
|
+
Hn,
|
|
1591
1592
|
{
|
|
1592
1593
|
params: oe,
|
|
1593
1594
|
values: a.with ?? {},
|
|
@@ -1624,13 +1625,13 @@ function Ts({
|
|
|
1624
1625
|
}
|
|
1625
1626
|
) : /* @__PURE__ */ w("div", { className: "w6w-stack", children: [
|
|
1626
1627
|
/* @__PURE__ */ t(
|
|
1627
|
-
|
|
1628
|
+
Bn,
|
|
1628
1629
|
{
|
|
1629
1630
|
config: { retry: a.retry, onError: a.onError, notes: a.notes },
|
|
1630
1631
|
onChange: (h) => j({ ...a, ...h }),
|
|
1631
1632
|
readOnly: l,
|
|
1632
1633
|
failureHandling: !ae,
|
|
1633
|
-
retryControls: !Ae(a.uses.app) && a.uses.app !==
|
|
1634
|
+
retryControls: !Ae(a.uses.app) && a.uses.app !== jn
|
|
1634
1635
|
}
|
|
1635
1636
|
),
|
|
1636
1637
|
As,
|
|
@@ -1646,7 +1647,7 @@ function Ts({
|
|
|
1646
1647
|
] })
|
|
1647
1648
|
] }),
|
|
1648
1649
|
E === "test" && /* @__PURE__ */ t("div", { className: "w6w-stack", children: ie ? ae ? /* @__PURE__ */ t(
|
|
1649
|
-
|
|
1650
|
+
Un,
|
|
1650
1651
|
{
|
|
1651
1652
|
app: a.uses.app,
|
|
1652
1653
|
action: a.uses.action,
|
|
@@ -1678,7 +1679,7 @@ function Ts({
|
|
|
1678
1679
|
}
|
|
1679
1680
|
),
|
|
1680
1681
|
/* @__PURE__ */ t(
|
|
1681
|
-
|
|
1682
|
+
zn,
|
|
1682
1683
|
{
|
|
1683
1684
|
ref: K,
|
|
1684
1685
|
app: a.uses.app,
|
|
@@ -1756,7 +1757,7 @@ function Is({
|
|
|
1756
1757
|
step: n,
|
|
1757
1758
|
readOnly: o
|
|
1758
1759
|
}) {
|
|
1759
|
-
const r =
|
|
1760
|
+
const r = Me(), [c, l] = S(void 0), [u, y] = S(null), [C, N] = S(!1);
|
|
1760
1761
|
_(() => {
|
|
1761
1762
|
const a = r.listSubscriptionsForWorkflow;
|
|
1762
1763
|
if (!a) return;
|
|
@@ -1811,7 +1812,7 @@ function Lt({
|
|
|
1811
1812
|
return document.addEventListener("mousedown", C), document.addEventListener("keydown", N), () => {
|
|
1812
1813
|
document.removeEventListener("mousedown", C), document.removeEventListener("keydown", N);
|
|
1813
1814
|
};
|
|
1814
|
-
}, [n, e]), !c || !u ? null :
|
|
1815
|
+
}, [n, e]), !c || !u ? null : gn(
|
|
1815
1816
|
/* @__PURE__ */ t(
|
|
1816
1817
|
"div",
|
|
1817
1818
|
{
|
|
@@ -1880,7 +1881,7 @@ function Ds({
|
|
|
1880
1881
|
)
|
|
1881
1882
|
] }),
|
|
1882
1883
|
f === "app" && /* @__PURE__ */ t(Lt, { anchorRef: P, onClose: () => a(null), children: /* @__PURE__ */ t(
|
|
1883
|
-
|
|
1884
|
+
Xn,
|
|
1884
1885
|
{
|
|
1885
1886
|
onSelectApp: (d) => {
|
|
1886
1887
|
const I = d.id === e.uses.app;
|
|
@@ -1919,7 +1920,7 @@ function Ds({
|
|
|
1919
1920
|
] }) })
|
|
1920
1921
|
] }),
|
|
1921
1922
|
!c && g && /* @__PURE__ */ t(
|
|
1922
|
-
|
|
1923
|
+
Yn,
|
|
1923
1924
|
{
|
|
1924
1925
|
initialAppId: e.uses.app,
|
|
1925
1926
|
onClose: () => E(!1),
|
|
@@ -1936,7 +1937,7 @@ function Ds({
|
|
|
1936
1937
|
/* @__PURE__ */ w("label", { className: "w6w-field", children: [
|
|
1937
1938
|
/* @__PURE__ */ t("span", { children: "Action" }),
|
|
1938
1939
|
/* @__PURE__ */ t(
|
|
1939
|
-
|
|
1940
|
+
Qn,
|
|
1940
1941
|
{
|
|
1941
1942
|
value: e.uses.action,
|
|
1942
1943
|
disabled: l || o === null,
|
|
@@ -1949,10 +1950,10 @@ function Ds({
|
|
|
1949
1950
|
] });
|
|
1950
1951
|
}
|
|
1951
1952
|
export {
|
|
1952
|
-
|
|
1953
|
+
jn as CALL_APP,
|
|
1953
1954
|
Hs as CONTROL_APP,
|
|
1954
1955
|
Bs as DATA_APP,
|
|
1955
|
-
|
|
1956
|
+
Wn as ExpressionOptionsProvider,
|
|
1956
1957
|
js as INTERNAL_NODES,
|
|
1957
1958
|
Us as SCHEDULER_APP,
|
|
1958
1959
|
zs as SCRIPT_APP,
|
|
@@ -1962,7 +1963,7 @@ export {
|
|
|
1962
1963
|
Rt as asFieldDefs,
|
|
1963
1964
|
Ks as coerceDefault,
|
|
1964
1965
|
Gs as fieldWidget,
|
|
1965
|
-
|
|
1966
|
+
qn as fieldsToParams,
|
|
1966
1967
|
Nt as flowToWorkflow,
|
|
1967
1968
|
Xs as internalNodeDefaults,
|
|
1968
1969
|
Jt as internalNodeIcon,
|
|
@@ -1971,7 +1972,7 @@ export {
|
|
|
1971
1972
|
Ae as isControlApp,
|
|
1972
1973
|
Pe as isInternalApp,
|
|
1973
1974
|
Ce as isTriggerApp,
|
|
1974
|
-
|
|
1975
|
-
|
|
1975
|
+
Kn as seedValues,
|
|
1976
|
+
En as workflowToFlow
|
|
1976
1977
|
};
|
|
1977
1978
|
//# sourceMappingURL=flow.mjs.map
|