@oomol-lab/open-flow 0.1.0-alpha.12 → 0.1.0-alpha.13
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/dist/browser/{addNodeOptions-BYQXyUmQ.js → addNodeOptions-JRHMwVOl.js} +68 -42
- package/dist/browser/{change-7rp2OZLm.js → change-BATEvjif.js} +1 -1
- package/dist/browser/{esm-DmVDlOEJ.js → esm-C04lx1pd.js} +1 -1
- package/dist/browser/flow-authoring.js +4 -4
- package/dist/browser/flow-change.d.ts +7 -3
- package/dist/browser/flow-change.js +1 -1
- package/dist/browser/{flowRunInputEditorStore-BYxwvHZl.js → flowRunInputEditorStore-BUwR9Vbp.js} +45 -45
- package/dist/browser/{flowWorkspace-Bwqmoq-c.js → flowWorkspace-_qaqIyDi.js} +3039 -2932
- package/dist/browser/{markdownContent-0teWaxq8.js → markdownContent-CX77lBFM.js} +1 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +17 -17
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +4 -1
- package/dist/common/flow-semantics.js +5 -2
- package/dist/common/scheduler.js +1 -1
- package/package.json +1 -1
|
@@ -8676,7 +8676,7 @@ function ys(e) {
|
|
|
8676
8676
|
}
|
|
8677
8677
|
function bs(e, t) {
|
|
8678
8678
|
let n = $(e.designer);
|
|
8679
|
-
if (n?.version == 1) return
|
|
8679
|
+
if (n?.version == 1) return Js(n, t);
|
|
8680
8680
|
}
|
|
8681
8681
|
function xs(e, t, n) {
|
|
8682
8682
|
return $($(bs(e, t)?.layouts)?.[n]);
|
|
@@ -8810,14 +8810,14 @@ function Os(e) {
|
|
|
8810
8810
|
case "task": {
|
|
8811
8811
|
let r = e.definition, i = [...t];
|
|
8812
8812
|
t.clear();
|
|
8813
|
-
for (let e of r?.inputs ?? []) t.set(e.handle, {
|
|
8813
|
+
for (let e of r?.inputs ?? []) "handle" in e && t.set(e.handle, {
|
|
8814
8814
|
defaultValue: e.value,
|
|
8815
8815
|
description: e.description,
|
|
8816
8816
|
jsonSchema: e.jsonSchema,
|
|
8817
8817
|
nullable: e.nullable
|
|
8818
8818
|
});
|
|
8819
8819
|
for (let [e, n] of i) t.has(e) || t.set(e, n);
|
|
8820
|
-
for (let e of r?.outputs ?? []) n.set(e.handle, {
|
|
8820
|
+
for (let e of r?.outputs ?? []) "handle" in e && n.set(e.handle, {
|
|
8821
8821
|
description: e.description,
|
|
8822
8822
|
jsonSchema: e.jsonSchema,
|
|
8823
8823
|
nullable: e.nullable
|
|
@@ -8982,7 +8982,7 @@ function Ls(e, t, n) {
|
|
|
8982
8982
|
function Rs(e, t, n, r) {
|
|
8983
8983
|
if (!("inputs" in t)) return [];
|
|
8984
8984
|
let i = [];
|
|
8985
|
-
for (let [a, o] of
|
|
8985
|
+
for (let [a, o] of n.inputs) {
|
|
8986
8986
|
let n = t.inputs[a], s = [], c = /* @__PURE__ */ new Set();
|
|
8987
8987
|
if (n?.kind == "sources") for (let t of n.sources) {
|
|
8988
8988
|
if (t.kind != "node") continue;
|
|
@@ -9005,12 +9005,38 @@ function Rs(e, t, n, r) {
|
|
|
9005
9005
|
return i;
|
|
9006
9006
|
}
|
|
9007
9007
|
function zs(e) {
|
|
9008
|
-
return [...e.outputs].
|
|
9008
|
+
return [...e.outputs].map(([e, t]) => Object.assign({ handle: e }, t));
|
|
9009
|
+
}
|
|
9010
|
+
function Bs(e, t) {
|
|
9011
|
+
if (e.kind != "task" || e.definition == null) return t;
|
|
9012
|
+
let n = new Map(t.map((e) => [e.handle, e])), r = [];
|
|
9013
|
+
for (let t of e.definition.inputs) {
|
|
9014
|
+
if (!("handle" in t)) {
|
|
9015
|
+
r.push(t);
|
|
9016
|
+
continue;
|
|
9017
|
+
}
|
|
9018
|
+
let e = n.get(t.handle);
|
|
9019
|
+
e != null && (r.push(e), n.delete(t.handle));
|
|
9020
|
+
}
|
|
9021
|
+
return r.push(...n.values()), r;
|
|
9022
|
+
}
|
|
9023
|
+
function Vs(e, t) {
|
|
9024
|
+
if (e.kind != "task" || e.definition == null) return t;
|
|
9025
|
+
let n = new Map(t.map((e) => [e.handle, e])), r = [];
|
|
9026
|
+
for (let t of e.definition.outputs) {
|
|
9027
|
+
if (!("handle" in t)) {
|
|
9028
|
+
r.push(t);
|
|
9029
|
+
continue;
|
|
9030
|
+
}
|
|
9031
|
+
let e = n.get(t.handle);
|
|
9032
|
+
e != null && (r.push(e), n.delete(t.handle));
|
|
9033
|
+
}
|
|
9034
|
+
return r.push(...n.values()), r;
|
|
9009
9035
|
}
|
|
9010
|
-
function
|
|
9036
|
+
function Hs(e) {
|
|
9011
9037
|
return e === void 0 ? "" : typeof e == "string" ? e : JSON.stringify(e);
|
|
9012
9038
|
}
|
|
9013
|
-
function
|
|
9039
|
+
function Us(e) {
|
|
9014
9040
|
if (e.kind != "integration" && e.kind != "poll") return [];
|
|
9015
9041
|
let t = $(e.definition.configSchema), n = $(t?.properties), r = new Set(Array.isArray(t?.required) ? t.required.filter((e) => typeof e == "string") : []), i = [];
|
|
9016
9042
|
for (let [t, a] of Object.entries(n ?? {})) {
|
|
@@ -9021,14 +9047,14 @@ function Vs(e) {
|
|
|
9021
9047
|
label: typeof n.title == "string" ? n.title : t,
|
|
9022
9048
|
name: t,
|
|
9023
9049
|
required: r.has(t),
|
|
9024
|
-
source:
|
|
9050
|
+
source: Hs(o)
|
|
9025
9051
|
};
|
|
9026
9052
|
if (Array.isArray(n.enum)) {
|
|
9027
9053
|
i.push({
|
|
9028
9054
|
...s,
|
|
9029
9055
|
kind: "select",
|
|
9030
9056
|
options: n.enum.map((e) => {
|
|
9031
|
-
let t =
|
|
9057
|
+
let t = Hs(e);
|
|
9032
9058
|
return {
|
|
9033
9059
|
label: t,
|
|
9034
9060
|
source: t,
|
|
@@ -9044,14 +9070,14 @@ function Vs(e) {
|
|
|
9044
9070
|
...s,
|
|
9045
9071
|
kind: "multi-select",
|
|
9046
9072
|
options: c.enum.map((e) => {
|
|
9047
|
-
let t =
|
|
9073
|
+
let t = Hs(e);
|
|
9048
9074
|
return {
|
|
9049
9075
|
label: t,
|
|
9050
9076
|
source: t,
|
|
9051
9077
|
value: e
|
|
9052
9078
|
};
|
|
9053
9079
|
}),
|
|
9054
|
-
selected: Array.isArray(o) ? o.map(
|
|
9080
|
+
selected: Array.isArray(o) ? o.map(Hs) : []
|
|
9055
9081
|
});
|
|
9056
9082
|
continue;
|
|
9057
9083
|
}
|
|
@@ -9073,7 +9099,7 @@ function Vs(e) {
|
|
|
9073
9099
|
}
|
|
9074
9100
|
return i.toSorted((e, t) => Number(!e.required) - Number(!t.required) || Number(e.kind == "json" || e.kind == "multi-select") - Number(t.kind == "json" || t.kind == "multi-select"));
|
|
9075
9101
|
}
|
|
9076
|
-
function
|
|
9102
|
+
function Ws(e, t, n, r) {
|
|
9077
9103
|
let i;
|
|
9078
9104
|
switch (t.kind) {
|
|
9079
9105
|
case "cron":
|
|
@@ -9084,7 +9110,7 @@ function Hs(e, t, n, r) {
|
|
|
9084
9110
|
break;
|
|
9085
9111
|
case "integration":
|
|
9086
9112
|
i = {
|
|
9087
|
-
config:
|
|
9113
|
+
config: Us(t),
|
|
9088
9114
|
kind: t.kind,
|
|
9089
9115
|
schedules: [],
|
|
9090
9116
|
source: t.definition.provider
|
|
@@ -9092,7 +9118,7 @@ function Hs(e, t, n, r) {
|
|
|
9092
9118
|
break;
|
|
9093
9119
|
case "poll":
|
|
9094
9120
|
i = {
|
|
9095
|
-
config:
|
|
9121
|
+
config: Us(t),
|
|
9096
9122
|
kind: t.kind,
|
|
9097
9123
|
schedules: t.pollTimes,
|
|
9098
9124
|
source: t.definition.provider
|
|
@@ -9132,8 +9158,8 @@ function Hs(e, t, n, r) {
|
|
|
9132
9158
|
title: t.name
|
|
9133
9159
|
};
|
|
9134
9160
|
}
|
|
9135
|
-
function
|
|
9136
|
-
let a = t.node, o = Rs(e, a, n, i.revision), s = zs(n), c = t.kind == "task" ? t.definition : void 0, l = c != null && "executor" in c && c.executor.kind == "connector" ? c.executor : void 0, u = l == null ? void 0 : i.connectorActions[l.action], d = u == null ? void 0 : i.connectionCatalogs[u.serviceId], f = u?.defaultConnection, p = l?.connectionId, m = p == null ? void 0 : d?.byId.get(p);
|
|
9161
|
+
function Gs(e, t, n, r, i) {
|
|
9162
|
+
let a = t.node, o = Bs(t, Rs(e, a, n, i.revision)), s = Vs(t, zs(n)), c = t.kind == "task" ? t.definition : void 0, l = c != null && "executor" in c && c.executor.kind == "connector" ? c.executor : void 0, u = l == null ? void 0 : i.connectorActions[l.action], d = u == null ? void 0 : i.connectionCatalogs[u.serviceId], f = u?.defaultConnection, p = l?.connectionId, m = p == null ? void 0 : d?.byId.get(p);
|
|
9137
9163
|
m == null && f != null && f.connectionId == p && (m = f);
|
|
9138
9164
|
let h = l != null && (l.connectionId == null || d != null && m?.status != "active"), g = i.runNodes.get(e), _ = {
|
|
9139
9165
|
concurrency: a.concurrency,
|
|
@@ -9184,7 +9210,7 @@ function Us(e, t, n, r, i) {
|
|
|
9184
9210
|
};
|
|
9185
9211
|
}
|
|
9186
9212
|
}
|
|
9187
|
-
function
|
|
9213
|
+
function Ks(e, t, n = {}, r = [], i = {}, a = {}, o, s, c = [], l = [], u = !1, d = !1) {
|
|
9188
9214
|
let f = e == null ? void 0 : rs(e), p = f == null || t == null ? void 0 : f.graph(t);
|
|
9189
9215
|
if (f == null || t == null || p == null) return {
|
|
9190
9216
|
edges: [],
|
|
@@ -9212,10 +9238,10 @@ function Ws(e, t, n = {}, r = [], i = {}, a = {}, o, s, c = [], l = [], u = !1,
|
|
|
9212
9238
|
y: 80 + a * 240
|
|
9213
9239
|
}, s = g.get(e);
|
|
9214
9240
|
if (s.kind == "trigger") {
|
|
9215
|
-
C.push(
|
|
9241
|
+
C.push(Ws(e, s.trigger, o, r));
|
|
9216
9242
|
continue;
|
|
9217
9243
|
}
|
|
9218
|
-
C.push(
|
|
9244
|
+
C.push(Gs(e, s, v.get(e), o, x));
|
|
9219
9245
|
}
|
|
9220
9246
|
for (let [e, r] of Object.entries(Es(n, t)).toSorted(([e], [t]) => e.localeCompare(t))) C.push({
|
|
9221
9247
|
...r,
|
|
@@ -9233,14 +9259,14 @@ function Ws(e, t, n = {}, r = [], i = {}, a = {}, o, s, c = [], l = [], u = !1,
|
|
|
9233
9259
|
variableNamesLoading: d
|
|
9234
9260
|
};
|
|
9235
9261
|
}
|
|
9236
|
-
function
|
|
9262
|
+
function qs(e) {
|
|
9237
9263
|
let t = $(e.designer);
|
|
9238
9264
|
return t?.version == 1 ? t : { version: 1 };
|
|
9239
9265
|
}
|
|
9240
|
-
function
|
|
9266
|
+
function Js(e, t) {
|
|
9241
9267
|
return t.kind == "flow" ? $(e.flow) : $($(e.subflows)?.[t.id]);
|
|
9242
9268
|
}
|
|
9243
|
-
function
|
|
9269
|
+
function Ys(e, t, n) {
|
|
9244
9270
|
if (t.kind == "flow") return {
|
|
9245
9271
|
...e,
|
|
9246
9272
|
flow: n,
|
|
@@ -9256,8 +9282,8 @@ function qs(e, t, n) {
|
|
|
9256
9282
|
version: 1
|
|
9257
9283
|
};
|
|
9258
9284
|
}
|
|
9259
|
-
function
|
|
9260
|
-
let i =
|
|
9285
|
+
function Xs(e, t, n, r = "detail") {
|
|
9286
|
+
let i = qs(e), a = Js(i, t) ?? {}, o = $(a.layouts) ?? {}, s = $(o[r]) ?? {}, c = {
|
|
9261
9287
|
...$(s.nodes) ?? {},
|
|
9262
9288
|
...Object.fromEntries(Object.entries(n).map(([e, t]) => [e, {
|
|
9263
9289
|
x: t.x,
|
|
@@ -9266,7 +9292,7 @@ function Js(e, t, n, r = "detail") {
|
|
|
9266
9292
|
};
|
|
9267
9293
|
return {
|
|
9268
9294
|
...e,
|
|
9269
|
-
designer:
|
|
9295
|
+
designer: Ys(i, t, {
|
|
9270
9296
|
...a,
|
|
9271
9297
|
layouts: {
|
|
9272
9298
|
...o,
|
|
@@ -9278,11 +9304,11 @@ function Js(e, t, n, r = "detail") {
|
|
|
9278
9304
|
})
|
|
9279
9305
|
};
|
|
9280
9306
|
}
|
|
9281
|
-
function
|
|
9282
|
-
let i =
|
|
9307
|
+
function Zs(e, t, n, r) {
|
|
9308
|
+
let i = Xs(e, t, { [n]: r.position }), a = qs(i), o = Js(a, t) ?? {}, s = $(o.comments) ?? {};
|
|
9283
9309
|
return {
|
|
9284
9310
|
...i,
|
|
9285
|
-
designer:
|
|
9311
|
+
designer: Ys(a, t, {
|
|
9286
9312
|
...o,
|
|
9287
9313
|
comments: {
|
|
9288
9314
|
...s,
|
|
@@ -9294,28 +9320,28 @@ function Ys(e, t, n, r) {
|
|
|
9294
9320
|
})
|
|
9295
9321
|
};
|
|
9296
9322
|
}
|
|
9297
|
-
function
|
|
9298
|
-
let r =
|
|
9323
|
+
function Qs(e, t, n) {
|
|
9324
|
+
let r = qs(e), i = Js(r, t) ?? {}, a = { ...$(i.comments) }, o = { ...$(i.nodes) };
|
|
9299
9325
|
for (let e of n) delete a[e], delete o[e];
|
|
9300
9326
|
return {
|
|
9301
9327
|
...e,
|
|
9302
|
-
designer:
|
|
9328
|
+
designer: Ys(r, t, {
|
|
9303
9329
|
...i,
|
|
9304
9330
|
comments: a,
|
|
9305
9331
|
nodes: o
|
|
9306
9332
|
})
|
|
9307
9333
|
};
|
|
9308
9334
|
}
|
|
9309
|
-
function
|
|
9335
|
+
function $s(e, t) {
|
|
9310
9336
|
return new Set(Object.keys($(bs(e, t)?.comments) ?? {}));
|
|
9311
9337
|
}
|
|
9312
|
-
function
|
|
9338
|
+
function ec(e, t, n, r = "detail") {
|
|
9313
9339
|
let i = Cs(e, t, r);
|
|
9314
9340
|
if (i?.x == n.x && i.y == n.y && i.zoom == n.zoom) return e;
|
|
9315
|
-
let a =
|
|
9341
|
+
let a = qs(e), o = Js(a, t) ?? {}, s = $(o.layouts) ?? {}, c = $(s[r]) ?? {};
|
|
9316
9342
|
return {
|
|
9317
9343
|
...e,
|
|
9318
|
-
designer:
|
|
9344
|
+
designer: Ys(a, t, {
|
|
9319
9345
|
...o,
|
|
9320
9346
|
layouts: {
|
|
9321
9347
|
...s,
|
|
@@ -9331,7 +9357,7 @@ function Qs(e, t, n, r = "detail") {
|
|
|
9331
9357
|
})
|
|
9332
9358
|
};
|
|
9333
9359
|
}
|
|
9334
|
-
function
|
|
9360
|
+
function tc(e, t, n) {
|
|
9335
9361
|
let r = e.payload.nodeTitle;
|
|
9336
9362
|
if (typeof r == "string") return r;
|
|
9337
9363
|
let i = e.payload.executionId;
|
|
@@ -9344,7 +9370,7 @@ function $s(e, t, n) {
|
|
|
9344
9370
|
}
|
|
9345
9371
|
//#endregion
|
|
9346
9372
|
//#region src/workbench/browser/runtime/designer/addNodeOptions.ts
|
|
9347
|
-
function
|
|
9373
|
+
function nc(e) {
|
|
9348
9374
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
9349
9375
|
t.set(e.id, e);
|
|
9350
9376
|
for (let t of e.choices ?? []) n(t.option);
|
|
@@ -9352,7 +9378,7 @@ function ec(e) {
|
|
|
9352
9378
|
for (let t of e) n(t);
|
|
9353
9379
|
return t;
|
|
9354
9380
|
}
|
|
9355
|
-
function
|
|
9381
|
+
function rc(e) {
|
|
9356
9382
|
let t = e("addNode.blocks");
|
|
9357
9383
|
return [
|
|
9358
9384
|
{
|
|
@@ -9475,9 +9501,9 @@ function tc(e) {
|
|
|
9475
9501
|
}
|
|
9476
9502
|
];
|
|
9477
9503
|
}
|
|
9478
|
-
function
|
|
9504
|
+
function ic(e, t, n) {
|
|
9479
9505
|
if (e == null || t == null) return [];
|
|
9480
|
-
let r =
|
|
9506
|
+
let r = rc(n);
|
|
9481
9507
|
if (t.kind != "flow") return r;
|
|
9482
9508
|
let i = n("addNode.triggers");
|
|
9483
9509
|
return [
|
|
@@ -9515,7 +9541,7 @@ function nc(e, t, n) {
|
|
|
9515
9541
|
...r
|
|
9516
9542
|
];
|
|
9517
9543
|
}
|
|
9518
|
-
function
|
|
9544
|
+
function ac(e, t, n, r) {
|
|
9519
9545
|
switch (e.kind) {
|
|
9520
9546
|
case "new-task": return {
|
|
9521
9547
|
kind: "code",
|
|
@@ -9568,4 +9594,4 @@ function rc(e, t, n, r) {
|
|
|
9568
9594
|
}
|
|
9569
9595
|
}
|
|
9570
9596
|
//#endregion
|
|
9571
|
-
export { _a as $, jo as A, mn as At, so as B, Go as C, br as Ct, Yo as D, yn as Dt, Xo as E, Sn as Et, To as F, Ka as G, $a as H, _o as I, Ia as J, Ga as K, go as L, ko as M, Oo as N, Uo as O, gn as Ot, Do as P, ba as Q, mo as R, Wo as S, Tr as St, Jo as T, mr as Tt, Za as U, io as V, Ja as W, Oa as X, Fa as Y, Ea as Z, es as _, xr as _t, gs as a, ti as at, Ho as b, Sr as bt,
|
|
9597
|
+
export { _a as $, jo as A, mn as At, so as B, Go as C, br as Ct, Yo as D, yn as Dt, Xo as E, Sn as Et, To as F, Ka as G, $a as H, _o as I, Ia as J, Ga as K, go as L, ko as M, Oo as N, Uo as O, gn as Ot, Do as P, ba as Q, mo as R, Wo as S, Tr as St, Jo as T, mr as Tt, Za as U, io as V, Ja as W, Oa as X, Fa as Y, Ea as Z, es as _, xr as _t, gs as a, ti as at, Ho as b, Sr as bt, Qs as c, Rr as ct, Xs as d, Lr as dt, Zi as et, bs as f, Nr as ft, rs as g, jr as gt, cs as h, Ar as ht, $s as i, ri as it, Ao as j, Lo as k, hn as kt, Zs as l, zr as lt, ls as m, Or as mt, ic as n, ci as nt, Ks as o, qr as ot, us as p, Mr as pt, Ua as q, nc as r, ai as rt, tc as s, Jr as st, ac as t, Ji as tt, ec as u, Ir as ut, $o as v, Dr as vt, qo as w, _r as wt, Zo as x, wr as xt, Qo as y, Er as yt, lo as z };
|
|
@@ -9,7 +9,7 @@ function e(e) {
|
|
|
9
9
|
if (!/^[\p{L}\p{N}](?:[\p{L}\p{N} _-]*[\p{L}\p{N}])?$/u.test(t)) return "specialCharacter";
|
|
10
10
|
}
|
|
11
11
|
function t(e) {
|
|
12
|
-
return Object.fromEntries(e.
|
|
12
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
13
13
|
}
|
|
14
14
|
var n = class extends Error {};
|
|
15
15
|
function r() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./dist-BpopSHwP.js";
|
|
2
2
|
import { r as t } from "./dist-BKuSVKCC.js";
|
|
3
3
|
import { M as n, t as r } from "./dist-CUSrALSX.js";
|
|
4
|
-
import { n as i } from "./flowWorkspace-
|
|
4
|
+
import { n as i } from "./flowWorkspace-_qaqIyDi.js";
|
|
5
5
|
//#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
|
|
6
6
|
var a = (e) => {
|
|
7
7
|
var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};
|
|
@@ -330,15 +330,15 @@ function S(e, t, n, r = void 0, i = {
|
|
|
330
330
|
module: {
|
|
331
331
|
...r ?? {
|
|
332
332
|
imports: [],
|
|
333
|
-
source: a(x, o("javascript", i.inputs.
|
|
333
|
+
source: a(x, o("javascript", i.inputs.flatMap((e) => "handle" in e ? [{
|
|
334
334
|
handle: e.handle,
|
|
335
335
|
json_schema: e.jsonSchema,
|
|
336
336
|
nullable: e.nullable
|
|
337
|
-
})
|
|
337
|
+
}] : []), i.outputs.flatMap((e) => "handle" in e ? [{
|
|
338
338
|
handle: e.handle,
|
|
339
339
|
json_schema: e.jsonSchema,
|
|
340
340
|
nullable: e.nullable
|
|
341
|
-
})))
|
|
341
|
+
}] : [])))
|
|
342
342
|
},
|
|
343
343
|
name: n
|
|
344
344
|
},
|
|
@@ -698,7 +698,7 @@ function R(e, t) {
|
|
|
698
698
|
return t.kind == "flow" ? e.document.graph : e.document.subflows[t.id]?.graph;
|
|
699
699
|
}
|
|
700
700
|
function z(e) {
|
|
701
|
-
return Object.fromEntries(e.flatMap((e) => Object.hasOwn(e, "value") ? [[e.handle, {
|
|
701
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e && Object.hasOwn(e, "value") ? [[e.handle, {
|
|
702
702
|
kind: "value",
|
|
703
703
|
value: e.value
|
|
704
704
|
}]] : []));
|
|
@@ -19,7 +19,11 @@ export interface Port extends PortDefinition {
|
|
|
19
19
|
export interface InputPort extends InputPortDefinition {
|
|
20
20
|
readonly handle: string;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export interface Group {
|
|
23
|
+
readonly collapsed?: boolean;
|
|
24
|
+
readonly group: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function portsByHandle<Value extends Port>(ports: readonly (Value | Group)[]): Readonly<Record<string, Value>>;
|
|
23
27
|
export interface NodeSource {
|
|
24
28
|
readonly kind: 'node';
|
|
25
29
|
readonly nodeId: string;
|
|
@@ -90,9 +94,9 @@ export interface ConnectorCapability {
|
|
|
90
94
|
readonly kind: 'connector';
|
|
91
95
|
}
|
|
92
96
|
interface TaskDefinitionBase {
|
|
93
|
-
readonly inputs: readonly InputPort[];
|
|
97
|
+
readonly inputs: readonly (InputPort | Group)[];
|
|
94
98
|
readonly name: string;
|
|
95
|
-
readonly outputs: readonly Port[];
|
|
99
|
+
readonly outputs: readonly (Port | Group)[];
|
|
96
100
|
}
|
|
97
101
|
export interface InlineTaskDefinition extends TaskDefinitionBase {
|
|
98
102
|
readonly capabilities?: readonly ConnectorCapability[];
|
|
@@ -14,7 +14,7 @@ function n(e) {
|
|
|
14
14
|
return e.length <= 256 && /^[A-Za-z_][A-Za-z0-9_]*$/.test(e) && e.slice(0, 3).toUpperCase() != "OO_";
|
|
15
15
|
}
|
|
16
16
|
function r(e) {
|
|
17
|
-
return Object.fromEntries(e.
|
|
17
|
+
return Object.fromEntries(e.flatMap((e) => "handle" in e ? [[e.handle, e]] : []));
|
|
18
18
|
}
|
|
19
19
|
var i = class extends Error {};
|
|
20
20
|
function a() {
|
package/dist/browser/{flowRunInputEditorStore-BYxwvHZl.js → flowRunInputEditorStore-BUwR9Vbp.js}
RENAMED
|
@@ -8699,74 +8699,74 @@ var Ta = class {
|
|
|
8699
8699
|
if (e) return a(e, (e) => e && Ke(e, (e) => $i(e) ? { group: e.group } : { handle: e.handle }), L);
|
|
8700
8700
|
}
|
|
8701
8701
|
deriveHandles$(e, t, n, r) {
|
|
8702
|
-
let i = this.deriveHandleIndices$(n.inputHandleDefs), o, s = c((
|
|
8703
|
-
let
|
|
8704
|
-
if (!
|
|
8705
|
-
for (let i of
|
|
8702
|
+
let i = this.deriveHandleIndices$(n.inputHandleDefs), o = n.boundHandles, s, f = c((u) => {
|
|
8703
|
+
let d = [], f = u(i);
|
|
8704
|
+
if (!f?.length) return s?.forEach((e) => e.dispose()), s = void 0, d;
|
|
8705
|
+
for (let i of f) {
|
|
8706
8706
|
if (i.handle == null) {
|
|
8707
|
-
|
|
8707
|
+
d.push(i.group);
|
|
8708
8708
|
continue;
|
|
8709
8709
|
}
|
|
8710
|
-
let
|
|
8711
|
-
if (
|
|
8712
|
-
|
|
8710
|
+
let u = i.handle, f = s?.find((e) => e.name === u);
|
|
8711
|
+
if (f) {
|
|
8712
|
+
d.push(f);
|
|
8713
8713
|
continue;
|
|
8714
8714
|
}
|
|
8715
|
-
let { schema$:
|
|
8715
|
+
let { schema$: p, defaultValue$: m, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.inputHandleDefs, u, n.role), S = l(a(e, (e) => e?.[u], L), ot(e, u)), C = l(a(t, (e) => e?.[u], L), ot(t, u)), w = o ? c((e) => e(r).has(u) || e(o).has(u)) : a(r, (e) => e.has(u)), T = new Xi({
|
|
8716
8716
|
role: n.role,
|
|
8717
8717
|
inout: "in",
|
|
8718
8718
|
userLocales: n.userLocales
|
|
8719
|
-
},
|
|
8720
|
-
e ?
|
|
8719
|
+
}, p, b, m, S, C, n.createSchemaEditor), E = new $(u, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
|
|
8720
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
8721
8721
|
});
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
g,
|
|
8727
|
-
_,
|
|
8722
|
+
E.dispose.add([
|
|
8723
|
+
D,
|
|
8724
|
+
p,
|
|
8725
|
+
w,
|
|
8728
8726
|
v,
|
|
8727
|
+
y,
|
|
8729
8728
|
b,
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8729
|
+
S,
|
|
8730
|
+
x
|
|
8731
|
+
]), d.push(E);
|
|
8732
|
+
}
|
|
8733
|
+
if (s) for (let e of s) d.some((t) => $.is(t) && t.name === e.name) || e.dispose();
|
|
8734
|
+
return s = d.filter($.is), d;
|
|
8735
|
+
}, { equal: d }), p = this.deriveHandleIndices$(n.additionalInputDefs), m, h = c((i) => {
|
|
8736
|
+
let s = [];
|
|
8737
|
+
if (!i(n.additionalInputs) || !n.additionalInputDefs) return s;
|
|
8738
|
+
let u = i(p) || [];
|
|
8739
|
+
for (let { handle: i } of u) {
|
|
8740
8740
|
if (i == null) continue;
|
|
8741
|
-
let
|
|
8742
|
-
if (
|
|
8743
|
-
|
|
8741
|
+
let u = m?.find((e) => e.name === i);
|
|
8742
|
+
if (u) {
|
|
8743
|
+
s.push(u);
|
|
8744
8744
|
continue;
|
|
8745
8745
|
}
|
|
8746
|
-
let
|
|
8747
|
-
role:
|
|
8746
|
+
let d = n.role === "user" ? "author" : n.role, { schema$: f, defaultValue$: p, description$: h, displayDescription$: g, kind$: _, nullable$: v, showSettings$: y, schemaOverrides$: b, value$: x } = this.deriveHandleRowVals$(n, n.additionalInputDefs, i, d), S = l(a(e, (e) => e?.[i], L), ot(e, i)), C = l(a(t, (e) => e?.[i], L), ot(t, i)), w = o ? c((e) => e(r).has(i) || e(o).has(i)) : a(r, (e) => e.has(i)), T = new Xi({
|
|
8747
|
+
role: d,
|
|
8748
8748
|
inout: "in",
|
|
8749
8749
|
additional: !0,
|
|
8750
8750
|
restrict: n.additionalInputs,
|
|
8751
8751
|
userLocales: n.userLocales
|
|
8752
|
-
},
|
|
8753
|
-
e ?
|
|
8752
|
+
}, f, b, p, S, C, n.createSchemaEditor), E = new $(i, h, g, n.lang, _, w, v, y, T, x), D = w.subscribe((e) => {
|
|
8753
|
+
e ? E.error$.set(void 0) : E.validate(!0);
|
|
8754
8754
|
});
|
|
8755
|
-
|
|
8756
|
-
|
|
8757
|
-
|
|
8758
|
-
|
|
8759
|
-
g,
|
|
8760
|
-
_,
|
|
8755
|
+
E.dispose.add([
|
|
8756
|
+
D,
|
|
8757
|
+
f,
|
|
8758
|
+
w,
|
|
8761
8759
|
v,
|
|
8760
|
+
y,
|
|
8762
8761
|
b,
|
|
8763
|
-
|
|
8764
|
-
|
|
8762
|
+
S,
|
|
8763
|
+
x
|
|
8764
|
+
]), s.push(E);
|
|
8765
8765
|
}
|
|
8766
|
-
if (
|
|
8767
|
-
return
|
|
8766
|
+
if (m) for (let e of m) s.some((t) => t.name === e.name) || e.dispose();
|
|
8767
|
+
return m = s, s;
|
|
8768
8768
|
}, { equal: d });
|
|
8769
|
-
return u([
|
|
8769
|
+
return u([f, h], ([e, t]) => e.concat(t));
|
|
8770
8770
|
}
|
|
8771
8771
|
deriveHandleRowVals$({ showSettings: e, handleInputsFrom: t, lang: n, userLocales: r }, i, u, d) {
|
|
8772
8772
|
let f = l(a(i, (e) => e?.find((e) => e.handle === u)), (e) => {
|