@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.
- package/dist/browser/{createResourceDialog-DlrAMxmo.js → createResourceDialog-CjuJryCv.js} +13 -13
- package/dist/browser/{flowChanges-jX3KYcb0.js → flowChanges-Tg1duLry.js} +2269 -2208
- package/dist/browser/{flowWorkspace-BIYwslVl.js → flowWorkspace-CoK10XHY.js} +306 -306
- package/dist/browser/{inputValues-BWfRHJWC.js → inputValues-CDiBMKu8.js} +1 -1
- package/dist/browser/workbench.js +23 -23
- package/dist/browser/{workbenchSelect-CwP6rphY.js → workbenchSelect-DEmv7SLW.js} +1 -1
- package/dist/common/control-api-conformance.js +871 -810
- package/dist/common/control-api.js +249 -188
- package/dist/common/flow-encoding.d.ts +6 -0
- package/dist/common/flow-encoding.js +1323 -1171
- package/dist/common/flow-semantics.js +1872 -1811
- package/dist/common/mcp.js +176 -115
- package/dist/common/provider-triggers.js +1307 -1246
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { i as e } from "./main-BDnNHhkU.js";
|
|
2
2
|
import { c as t, q as n } from "./useValueChanged-BY05Usw-.js";
|
|
3
|
-
import {
|
|
3
|
+
import { An as r, Dn as i, E as a, On as o, S as s, T as c, b as l, jn as u, kn as d, l as f, t as p, tn as m, w as h, x as g } from "./workbenchSelect-DEmv7SLW.js";
|
|
4
4
|
import { useEffect as _, useRef as v, useState as y } from "react";
|
|
5
5
|
import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
6
6
|
//#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
|
|
7
7
|
function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameChange: k, onOpenChange: A, onSubmit: j, pending: M, title: N }) {
|
|
8
8
|
let P = e(), F = v(null), I = v(null), [L, R] = y(!1), z = O.length > 0 && E != null, B = P(z ? `resource.nameIssue.${E}` : "resource.nameHint", { max: 80 }), V = `${T}-message`, H = `${T}-option`;
|
|
9
|
-
return _(() => R(!0), []), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", { ref: I }), /* @__PURE__ */ x(
|
|
9
|
+
return _(() => R(!0), []), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", { ref: I }), /* @__PURE__ */ x(l, {
|
|
10
10
|
onOpenChange: R,
|
|
11
11
|
onOpenChangeComplete: (e) => {
|
|
12
12
|
e || A(!1);
|
|
13
13
|
},
|
|
14
14
|
open: L,
|
|
15
|
-
children: /* @__PURE__ */ x(
|
|
15
|
+
children: /* @__PURE__ */ x(s, {
|
|
16
16
|
container: I.current,
|
|
17
17
|
initialFocus: () => F.current,
|
|
18
18
|
showCloseButton: !1,
|
|
@@ -20,7 +20,7 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
|
|
|
20
20
|
className: "flex flex-col gap-4",
|
|
21
21
|
onSubmit: j,
|
|
22
22
|
children: [
|
|
23
|
-
/* @__PURE__ */ S(
|
|
23
|
+
/* @__PURE__ */ S(c, {
|
|
24
24
|
className: "flex-row items-center justify-between",
|
|
25
25
|
children: [/* @__PURE__ */ x(a, { children: N }), /* @__PURE__ */ x(g, {
|
|
26
26
|
"aria-label": P("common.cancel"),
|
|
@@ -29,15 +29,15 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
|
|
|
29
29
|
variant: "ghost"
|
|
30
30
|
}),
|
|
31
31
|
type: "button",
|
|
32
|
-
children: /* @__PURE__ */ x(
|
|
32
|
+
children: /* @__PURE__ */ x(f, { name: "close" })
|
|
33
33
|
})]
|
|
34
34
|
}),
|
|
35
|
-
/* @__PURE__ */ S(
|
|
35
|
+
/* @__PURE__ */ S(r, {
|
|
36
36
|
className: "gap-4",
|
|
37
|
-
children: [/* @__PURE__ */ S(
|
|
37
|
+
children: [/* @__PURE__ */ S(i, {
|
|
38
38
|
"data-invalid": z,
|
|
39
39
|
children: [
|
|
40
|
-
/* @__PURE__ */ x(
|
|
40
|
+
/* @__PURE__ */ x(u, {
|
|
41
41
|
htmlFor: T,
|
|
42
42
|
children: D
|
|
43
43
|
}),
|
|
@@ -52,17 +52,17 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
|
|
|
52
52
|
required: !0,
|
|
53
53
|
value: O
|
|
54
54
|
}),
|
|
55
|
-
x(z ?
|
|
55
|
+
x(z ? d : o, {
|
|
56
56
|
id: V,
|
|
57
57
|
children: B
|
|
58
58
|
})
|
|
59
59
|
]
|
|
60
|
-
}), w != null && /* @__PURE__ */ S(
|
|
61
|
-
/* @__PURE__ */ x(
|
|
60
|
+
}), w != null && /* @__PURE__ */ S(i, { children: [
|
|
61
|
+
/* @__PURE__ */ x(u, {
|
|
62
62
|
htmlFor: w.state == "ready" ? H : void 0,
|
|
63
63
|
children: w.label
|
|
64
64
|
}),
|
|
65
|
-
w.state == "ready" ? /* @__PURE__ */ x(
|
|
65
|
+
w.state == "ready" ? /* @__PURE__ */ x(p, {
|
|
66
66
|
ariaLabel: w.ariaLabel,
|
|
67
67
|
className: "w-full",
|
|
68
68
|
id: H,
|
|
@@ -74,7 +74,7 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
|
|
|
74
74
|
className: "flex min-h-9 items-center gap-2 rounded-lg border bg-muted/30 px-3 py-2 text-sm text-muted-foreground",
|
|
75
75
|
role: w.state == "error" ? "alert" : "status",
|
|
76
76
|
children: [
|
|
77
|
-
w.state == "loading" && /* @__PURE__ */ x(
|
|
77
|
+
w.state == "loading" && /* @__PURE__ */ x(m, { "aria-hidden": "true" }),
|
|
78
78
|
/* @__PURE__ */ x("span", { children: w.status }),
|
|
79
79
|
w.state == "error" && /* @__PURE__ */ x(n, {
|
|
80
80
|
className: "ml-auto bg-background",
|