@oomol-lab/open-flow 0.1.0-beta.20 → 0.1.0-beta.21

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,7 +1,7 @@
1
1
  import { l as e } from "./dist-Dz6Nglsd.js";
2
2
  import { a as t } from "./main-BDnNHhkU.js";
3
3
  import { t as n } from "./flowRunInputEditorStore-BBqQIOCR.js";
4
- import { n as r } from "./flowWorkspace-BIYwslVl.js";
4
+ import { n as r } from "./flowWorkspace-CoK10XHY.js";
5
5
  import { useEffect as i, useRef as a, useState as o } from "react";
6
6
  import { jsx as s } from "react/jsx-runtime";
7
7
  //#region src/workbench/browser/runtime/editor/inputValues.tsx
@@ -1,8 +1,8 @@
1
1
  import { a as e, i as t, l as n } from "./dist-Dz6Nglsd.js";
2
2
  import { a as r, i, r as a, t as o } from "./main-BDnNHhkU.js";
3
- import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-jX3KYcb0.js";
3
+ import { $ as s, $t as c, A as l, C as u, Ct as d, D as f, Dt as p, F as m, G as h, I as g, J as _, L as v, M as y, N as b, O as x, P as S, Q as C, Qt as w, R as T, S as E, St as D, T as O, Tt as ee, X as k, Zt as A, _ as j, _t as te, a as M, at as ne, b as re, bt as ie, c as ae, ct as oe, d as se, dt as ce, en as le, et as ue, f as de, ft as fe, g as pe, gt as me, h as he, ht as ge, it as _e, jt as ve, k as N, l as ye, lt as be, m as xe, mt as Se, o as Ce, ot as we, p as Te, pt as P, q as F, r as I, rt as Ee, s as De, st as Oe, t as ke, tn as L, tt as Ae, u as je, ut as Me, v as Ne, vt as Pe, w as Fe, x as Ie, xt as Le, y as Re, yt as ze, z as R } from "./flowChanges-Tg1duLry.js";
4
4
  import { Y as Be, c as z, i as B, q as V } from "./useValueChanged-BY05Usw-.js";
5
- import { $t as Ve, An as He, C as Ue, Dn as We, E as Ge, Nt as Ke, On as qe, Pt as Je, Rt as Ye, S as Xe, T as Ze, Tn as Qe, b as $e, kn as et, l as H, t as tt, w as nt, x as rt, zt as U } from "./workbenchSelect-CwP6rphY.js";
5
+ import { An as Ve, C as He, Dn as Ue, E as We, Mn as Ge, Nt as Ke, Pt as qe, Rt as Je, S as Ye, T as Xe, b as Ze, jn as Qe, kn as $e, l as H, t as et, tn as tt, w as nt, x as rt, zt as U } from "./workbenchSelect-DEmv7SLW.js";
6
6
  import { t as W } from "./i18n-CVBh0Ni1.js";
7
7
  import { i as it, n as at, r as ot, t as st } from "./languages-C0zQ4GSo.js";
8
8
  import { Suspense as ct, lazy as lt, useEffect as G, useRef as K, useState as q } from "react";
@@ -95,7 +95,7 @@ function ht(e, t) {
95
95
  }
96
96
  //#endregion
97
97
  //#region src/workbench/browser/runtime/shell/resourceBrowser.tsx
98
- var gt = lt(() => import("./createResourceDialog-DlrAMxmo.js")), _t = it.map((e) => ({
98
+ var gt = lt(() => import("./createResourceDialog-CjuJryCv.js")), _t = it.map((e) => ({
99
99
  label: ot[e],
100
100
  value: e
101
101
  }));
@@ -107,7 +107,7 @@ function vt({ language: e, onLanguageChange: t }) {
107
107
  children: [/* @__PURE__ */ J("span", {
108
108
  className: "sr-only",
109
109
  children: n("language.label")
110
- }), /* @__PURE__ */ J(tt, {
110
+ }), /* @__PURE__ */ J(et, {
111
111
  ariaLabel: n("language.label"),
112
112
  onValueChange: (e) => t(e),
113
113
  options: _t,
@@ -195,7 +195,7 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
195
195
  className: "resource-status",
196
196
  title: g("resource.publishFirst"),
197
197
  children: "—"
198
- }) : /* @__PURE__ */ Y(He, {
198
+ }) : /* @__PURE__ */ Y(Ge, {
199
199
  className: "resource-enable",
200
200
  title: g("resource.enabledHint"),
201
201
  children: [/* @__PURE__ */ J(fe, {
@@ -239,12 +239,12 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
239
239
  children: g("common.delete")
240
240
  })]
241
241
  })] }),
242
- /* @__PURE__ */ J($e, {
242
+ /* @__PURE__ */ J(Ze, {
243
243
  open: _ == "rename",
244
244
  onOpenChange: (e) => {
245
245
  e || v("idle");
246
246
  },
247
- children: /* @__PURE__ */ J(Xe, {
247
+ children: /* @__PURE__ */ J(Ye, {
248
248
  container: c,
249
249
  initialFocus: f,
250
250
  finalFocus: u,
@@ -253,11 +253,11 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
253
253
  className: "flex flex-col gap-4",
254
254
  onSubmit: (e) => void E(e),
255
255
  children: [
256
- /* @__PURE__ */ J(Ze, { children: /* @__PURE__ */ J(Ge, { children: g("sidebar.renameFlow", { name: n.name }) }) }),
257
- /* @__PURE__ */ Y(Qe, {
256
+ /* @__PURE__ */ J(Xe, { children: /* @__PURE__ */ J(We, { children: g("sidebar.renameFlow", { name: n.name }) }) }),
257
+ /* @__PURE__ */ Y(Ue, {
258
258
  "data-invalid": y.length > 0 && T != null,
259
259
  children: [
260
- /* @__PURE__ */ J(et, {
260
+ /* @__PURE__ */ J(Qe, {
261
261
  htmlFor: `rename-flow-${n.flowId}`,
262
262
  children: g("resource.flowName")
263
263
  }),
@@ -272,7 +272,7 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
272
272
  required: !0,
273
273
  value: y
274
274
  }),
275
- y.length > 0 && T != null && /* @__PURE__ */ J(We, {
275
+ y.length > 0 && T != null && /* @__PURE__ */ J($e, {
276
276
  id: `rename-error-${n.flowId}`,
277
277
  children: g(`resource.nameIssue.${T}`, { max: 80 })
278
278
  })
@@ -291,17 +291,17 @@ function yt({ badge: e, busy: t, flow: n, href: r, onSelect: o, store: s }) {
291
291
  })
292
292
  })
293
293
  }),
294
- /* @__PURE__ */ J($e, {
294
+ /* @__PURE__ */ J(Ze, {
295
295
  open: _ == "delete",
296
296
  onOpenChange: (e) => {
297
297
  e || v("idle");
298
298
  },
299
- children: /* @__PURE__ */ Y(Xe, {
299
+ children: /* @__PURE__ */ Y(Ye, {
300
300
  container: c,
301
301
  initialFocus: m,
302
302
  finalFocus: u,
303
303
  showCloseButton: !1,
304
- children: [/* @__PURE__ */ Y(Ze, { children: [/* @__PURE__ */ J(Ge, { children: g("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ J(Ue, { children: g("resource.deleteDescription") })] }), /* @__PURE__ */ Y(nt, { children: [/* @__PURE__ */ J(rt, {
304
+ children: [/* @__PURE__ */ Y(Xe, { children: [/* @__PURE__ */ J(We, { children: g("sidebar.deleteFlowConfirm", { name: n.name }) }), /* @__PURE__ */ J(He, { children: g("resource.deleteDescription") })] }), /* @__PURE__ */ Y(nt, { children: [/* @__PURE__ */ J(rt, {
305
305
  render: /* @__PURE__ */ J(V, {
306
306
  ref: m,
307
307
  variant: "outline"
@@ -1015,8 +1015,8 @@ var Pt = class {
1015
1015
  function It(e) {
1016
1016
  switch (e.kind) {
1017
1017
  case "condition": return { [e.node.input.handle]: e.node.input };
1018
- case "subflow": return Ye(e.definition?.inputs ?? []);
1019
- case "task": return Ye(e.definition?.inputs ?? []);
1018
+ case "subflow": return Je(e.definition?.inputs ?? []);
1019
+ case "task": return Je(e.definition?.inputs ?? []);
1020
1020
  case "value": return {};
1021
1021
  case "wait": return { [e.node.input.handle]: e.node.input };
1022
1022
  }
@@ -1833,7 +1833,7 @@ var tn = class {
1833
1833
  function nn(e, t) {
1834
1834
  let n = e, r = [];
1835
1835
  for (let e of t) {
1836
- let t = Je(n, [e]), i = [];
1836
+ let t = qe(n, [e]), i = [];
1837
1837
  switch (e.kind) {
1838
1838
  case "graph.node.create":
1839
1839
  i.push({
@@ -3510,7 +3510,7 @@ var Sn = { openExternalPage: async () => !1 }, Cn = class {
3510
3510
  return;
3511
3511
  }
3512
3512
  }
3513
- }, wn = lt(() => import("./flowWorkspace-BIYwslVl.js").then((e) => e.t));
3513
+ }, wn = lt(() => import("./flowWorkspace-CoK10XHY.js").then((e) => e.t));
3514
3514
  function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i, pending: a = !1, title: o, token: s, tokenLabel: c }) {
3515
3515
  let l = s != null && c != null && i != null, u = s ?? "", d = /* @__PURE__ */ Y(ut, { children: [
3516
3516
  /* @__PURE__ */ J("div", {
@@ -3543,10 +3543,10 @@ function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
3543
3543
  children: t
3544
3544
  })]
3545
3545
  }),
3546
- l && /* @__PURE__ */ J(qe, { children: /* @__PURE__ */ Y(Qe, {
3546
+ l && /* @__PURE__ */ J(Ve, { children: /* @__PURE__ */ Y(Ue, {
3547
3547
  "data-invalid": n != null,
3548
3548
  children: [
3549
- /* @__PURE__ */ J(et, {
3549
+ /* @__PURE__ */ J(Qe, {
3550
3550
  htmlFor: "session-token",
3551
3551
  children: c
3552
3552
  }),
@@ -3569,19 +3569,19 @@ function Tn({ action: e, description: t, error: n, onSubmit: r, onTokenChange: i
3569
3569
  type: "password",
3570
3570
  value: u
3571
3571
  }),
3572
- n != null && /* @__PURE__ */ J(We, { children: n })
3572
+ n != null && /* @__PURE__ */ J($e, { children: n })
3573
3573
  ]
3574
3574
  }) }),
3575
3575
  e != null && r != null && /* @__PURE__ */ Y(V, {
3576
3576
  disabled: a || l && u.length == 0,
3577
3577
  size: "lg",
3578
3578
  type: "submit",
3579
- children: [a && /* @__PURE__ */ J(Ve, {
3579
+ children: [a && /* @__PURE__ */ J(tt, {
3580
3580
  "aria-label": e,
3581
3581
  "data-icon": "inline-start"
3582
3582
  }), e]
3583
3583
  }),
3584
- a && e == null && /* @__PURE__ */ J(Ve, { "aria-label": t })
3584
+ a && e == null && /* @__PURE__ */ J(tt, { "aria-label": t })
3585
3585
  ] }), f = "m-auto flex w-full max-w-[420px] flex-col gap-5 rounded-xl bg-card p-6 shadow-lg shadow-black/10";
3586
3586
  return /* @__PURE__ */ J("main", {
3587
3587
  className: "open-flow-workbench",
@@ -11663,4 +11663,4 @@ function Cv({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange
11663
11663
  });
11664
11664
  }
11665
11665
  //#endregion
11666
- export { sh as $, Wn as $t, Yh as A, Re as An, _f as At, Nh as B, Kd as Bt, Eg as C, $e as Cn, Gf as Ct, vg as D, We as Dn, Cf as Dt, Tg as E, Ue as En, wf as Et, Ah as F, Qd as Ft, Hh as G, ud as Gt, Bh as H, Cu as Ht, jh as I, $d as It, Sh as J, du as Jt, Uh as K, od as Kt, Oh as L, Zd as Lt, Rh as M, hf as Mt, kh as N, ef as Nt, cg as O, ze as On, Sf as Ot, Lh as P, af as Pt, ah as Q, Du as Qt, zh as R, Yd as Rt, Sg as S, gt as Sn, Wf as St, Cg as T, Ve as Tn, Ef as Tt, Fh as U, hu as Ut, Ph as V, Lu as Vt, Ih as W, ku as Wt, dh as X, Tu as Xt, bh as Y, Fu as Yt, uh as Z, zl as Zt, Ng as _, bt as _n, rp as _t, bv as a, Pn as an, Hm as at, _g as b, ut as bn, Xf as bt, gv as c, an as cn, km as ct, Zg as d, on as dn, gp as dt, Un as en, rh as et, Yg as f, rn as fn, hp as ft, Fg as g, wt as gn, np as gt, Bg as h, un as hn, ip as ht, hv as i, Nn as in, Xm as it, Jh as j, gf as jt, Zh as k, He as kn, lf as kt, t_ as l, cn as ln, Z as lt, Ug as m, tn as mn, op as mt, mv as n, Bn as nn, nh as nt, yv as o, Fn as on, Um as ot, Gg as p, nn as pn, ap as pt, Ch as q, J as qt, vv as r, An as rn, eh as rt, _v as s, sn, Fm as st, Cv as t, zn as tn, th as tt, Qg as u, ln as un, bp as ut, Mg as v, vt as vn, $f as vt, wg as w, Ze as wn, Df as wt, bg as x, pt as xn, Uf as xt, Ag as y, mt as yn, Zf as yt, Mh as z, Jd as zt };
11666
+ export { sh as $, Du as $t, Yh as A, ze as An, _f as At, Nh as B, Kd as Bt, Eg as C, pt as Cn, Gf as Ct, vg as D, Ve as Dn, Cf as Dt, Tg as E, Ze as En, wf as Et, Ah as F, Qd as Ft, Hh as G, ud as Gt, Bh as H, Cu as Ht, jh as I, $d as It, Sh as J, du as Jt, Uh as K, od as Kt, Oh as L, Zd as Lt, Rh as M, Re as Mn, hf as Mt, kh as N, ef as Nt, cg as O, Ue as On, Sf as Ot, Lh as P, af as Pt, ah as Q, zl as Qt, zh as R, Yd as Rt, Sg as S, ut as Sn, Wf as St, Cg as T, $e as Tn, Ef as Tt, Fh as U, hu as Ut, Ph as V, Lu as Vt, Ih as W, ku as Wt, dh as X, Fu as Xt, bh as Y, q as Yt, uh as Z, Tu as Zt, Ng as _, un as _n, rp as _t, bv as a, An as an, Hm as at, _g as b, vt as bn, Xf as bt, gv as c, Fn as cn, km as ct, Zg as d, cn as dn, gp as dt, yu as en, rh as et, Yg as f, ln as fn, hp as ft, Fg as g, tn as gn, np as gt, Bg as h, nn as hn, ip as ht, hv as i, Bn as in, Xm as it, Jh as j, He as jn, gf as jt, Zh as k, We as kn, lf as kt, t_ as l, sn as ln, Z as lt, Ug as m, rn as mn, op as mt, mv as n, Un as nn, nh as nt, yv as o, Nn as on, Um as ot, Gg as p, on as pn, ap as pt, Ch as q, J as qt, vv as r, zn as rn, eh as rt, _v as s, Pn as sn, Fm as st, Cv as t, Wn as tn, th as tt, Qg as u, an as un, bp as ut, Mg as v, wt as vn, $f as vt, wg as w, gt as wn, Df as wt, bg as x, mt as xn, Uf as xt, Ag as y, bt as yn, Zf as yt, Mh as z, Jd as zt };