@oomol-lab/open-flow 0.1.0-beta.15 → 0.1.0-beta.17
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-mW21KMfJ.js → createResourceDialog-DOWv3Zj0.js} +24 -25
- package/dist/browser/dist-B_T-OpQp.js +4 -0
- package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
- package/dist/browser/{esm-DOipoo54.js → esm-B7A42FzW.js} +11 -1
- package/dist/browser/flow-authoring.js +1464 -1463
- package/dist/browser/flow-change.js +1 -0
- package/dist/browser/flowChanges-BDLNaCWZ.js +11014 -0
- package/dist/browser/{flowRunInputEditorStore-NPGePkvP.js → flowRunInputEditorStore-BBqQIOCR.js} +1017 -4100
- package/dist/browser/{flowWorkspace-wssXq1cX.js → flowWorkspace-BtNfkYuG.js} +78243 -89430
- package/dist/browser/i18n-CNu41MKH.js +7021 -0
- package/dist/browser/inputValues-CQlPBtdF.js +43 -0
- package/dist/browser/{languages-i3Xmpt6S.js → languages-C0zQ4GSo.js} +2 -13
- package/dist/browser/licenses.md +78 -713
- package/dist/browser/main-BDnNHhkU.js +50 -0
- package/dist/browser/{markdownContent-BawLYUjh.js → markdownContent-BBgH9ZIV.js} +18 -18
- package/dist/browser/theme.css +429 -2
- package/dist/browser/ui-input.d.ts +3 -0
- package/dist/browser/ui-label.d.ts +3 -0
- package/dist/browser/ui-textarea.d.ts +3 -0
- package/dist/browser/ui.css +2 -0
- package/dist/browser/ui.css.d.ts +1 -0
- package/dist/browser/ui.d.ts +12 -0
- package/dist/browser/ui.js +2598 -0
- package/dist/browser/useValueChanged-DUuqLWPg.js +2944 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +1013 -712
- package/dist/browser/workbenchSelect-Bb3cewZj.js +11666 -0
- package/dist/common/control-api-conformance.js +395 -399
- package/dist/common/control-api-errors.d.ts +5 -0
- package/dist/common/control-api.d.ts +1 -6
- package/dist/common/control-api.js +1034 -1018
- package/dist/common/control-requests.js +1 -0
- package/dist/common/engine-contract.d.ts +2 -0
- package/dist/common/flow-encoding.js +1 -0
- package/dist/common/flow-semantics.js +2802 -2767
- package/dist/common/mcp.d.ts +220 -0
- package/dist/common/mcp.js +2959 -1495
- package/dist/common/runtime-contract.d.ts +2 -1
- package/dist/common/runtime-contract.js +99 -28
- package/dist/common/scheduler.js +1254 -1253
- package/package.json +9 -1
- package/dist/browser/DesignerIcon-Bzpx8BtG.js +0 -2272
- package/dist/browser/dist-CP0883sY.js +0 -4
- package/dist/browser/flowChanges-DYV6OEQd.js +0 -14094
- package/dist/browser/getPseudoElementBounds-Dfqo78k7.js +0 -7151
- package/dist/browser/inputValues-CEe8GspD.js +0 -30
- package/dist/browser/main-DmjVyuWr.js +0 -76
- package/dist/browser/select-DIMWIiL5.js +0 -7428
- package/dist/browser/workbenchSelect-NZCIKdkk.js +0 -30
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { f as e } from "./dist-C46JByB-.js";
|
|
2
|
-
import { s as t } from "./main-DmjVyuWr.js";
|
|
3
|
-
import { n, t as r } from "./flowRunInputEditorStore-NPGePkvP.js";
|
|
4
|
-
import { n as i } from "./flowWorkspace-wssXq1cX.js";
|
|
5
|
-
import { useEffect as a, useState as o } from "react";
|
|
6
|
-
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
-
//#region src/workbench/browser/runtime/designer/inputValues.tsx
|
|
8
|
-
function c({ definitions: c, labelledBy: l, language: u, onChange: d, onCommit: f, onValidChange: p, showErrors: m, theme: h, values: g }) {
|
|
9
|
-
let [_] = o(() => e(u)), [v] = o(() => {
|
|
10
|
-
let e = new r(c, _);
|
|
11
|
-
return e.replaceValues(g), e;
|
|
12
|
-
}), y = t(n(v).inputs.inputValues$), b = t(v.valid$);
|
|
13
|
-
return a(() => _.set(u), [u, _]), a(() => d(v.values()), [
|
|
14
|
-
y,
|
|
15
|
-
d,
|
|
16
|
-
v
|
|
17
|
-
]), a(() => p(b), [p, b]), a(() => () => {
|
|
18
|
-
v.dispose(), _.dispose();
|
|
19
|
-
}, [_, v]), /* @__PURE__ */ s("div", {
|
|
20
|
-
onBlur: () => f(v.values(), v.valid$.value),
|
|
21
|
-
children: /* @__PURE__ */ s(i, {
|
|
22
|
-
labelledBy: l,
|
|
23
|
-
showErrors: m,
|
|
24
|
-
store: v,
|
|
25
|
-
theme: h
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { c as InputValues };
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { a as e, o as t, s as n } from "./dist-C46JByB-.js";
|
|
2
|
-
import r, { Fragment as i, createContext as a, createElement as o, isValidElement as s, useContext as c, useDebugValue as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
3
|
-
//#region ../../node_modules/.bun/use-value-enhancer@5.0.7+5fffd67310d91248/node_modules/use-value-enhancer/dist/use-value-enhancer.mjs
|
|
4
|
-
var h = typeof document < "u" ? d : u, g = (e) => [...e.values()], _ = (e) => n(e) ? e : n(e?.$) ? e.$ : void 0, v = () => {}, y = () => v, b = [y, y], x = r.useSyncExternalStore ? (e, t = !0) => {
|
|
5
|
-
let [n, i, a] = f(() => {
|
|
6
|
-
let n = _(e);
|
|
7
|
-
return n && [
|
|
8
|
-
(e) => n.subscribe(e, t),
|
|
9
|
-
() => n.$version,
|
|
10
|
-
n
|
|
11
|
-
];
|
|
12
|
-
}, [e, t]) ?? b, o = r.useSyncExternalStore(n, i, i), s = f(() => a ? a.get() : e, [
|
|
13
|
-
o,
|
|
14
|
-
a,
|
|
15
|
-
e
|
|
16
|
-
]);
|
|
17
|
-
return l(s), s;
|
|
18
|
-
} : (e, t = !0) => {
|
|
19
|
-
let n = f(() => _(e), [e]), [r, i] = m(() => n?.$version);
|
|
20
|
-
u(() => {
|
|
21
|
-
if (n) {
|
|
22
|
-
let e = () => n.$version;
|
|
23
|
-
return n.subscribe(() => i(e), t);
|
|
24
|
-
}
|
|
25
|
-
}, [n, t]);
|
|
26
|
-
let a = f(() => n ? n.get() : e, [
|
|
27
|
-
r,
|
|
28
|
-
n,
|
|
29
|
-
e
|
|
30
|
-
]);
|
|
31
|
-
return l(a), a;
|
|
32
|
-
}, S = (e, n, r = t, i = !0) => {
|
|
33
|
-
let a, o;
|
|
34
|
-
i === !0 || i === !1 ? o = i : i && ({eager: o, equal: a} = i);
|
|
35
|
-
let s = p(a), c = p(r), u = f(() => n && e(n, (e) => c.current(e), { equal: (e, t) => s.current !== !1 && (s.current || Object.is)(e, t) }), [n]);
|
|
36
|
-
h(() => {
|
|
37
|
-
s.current = a, c.current = r;
|
|
38
|
-
}, [s, c]);
|
|
39
|
-
let d = x(u, o);
|
|
40
|
-
return l(d), d;
|
|
41
|
-
}, C = (t, n, r) => S(e, t, n, r), w = (e, t) => C(n(e) ? e : e?.$, g, t), T = /* @__PURE__ */ a(null), E = ({ i18n: e, children: t }) => {
|
|
42
|
-
let n = x(e.t$), r = c(T)?.t;
|
|
43
|
-
return o(T.Provider, {
|
|
44
|
-
value: f(() => ({
|
|
45
|
-
t: r ? (e, t) => {
|
|
46
|
-
let i = n(e, t);
|
|
47
|
-
return i === e ? r(e, t) : i;
|
|
48
|
-
} : n,
|
|
49
|
-
i18n: e
|
|
50
|
-
}), [n, r]),
|
|
51
|
-
children: t
|
|
52
|
-
});
|
|
53
|
-
}, D = (e) => {
|
|
54
|
-
let t = c(T);
|
|
55
|
-
if (!t && !e) throw Error("I18nProvider not found");
|
|
56
|
-
return t;
|
|
57
|
-
}, O = (e) => D(e)?.t, k = (e) => D(e)?.i18n, A = (e) => x(k(e)?.lang$), j = ({ message: e, children: t }) => {
|
|
58
|
-
if (!e) return null;
|
|
59
|
-
let n = f(() => {
|
|
60
|
-
let t = [], n = /{{(\S+?)}}/gi, r, i = 0;
|
|
61
|
-
for (; r = n.exec(e);) t.push(e.slice(i, r.index), r[1]), i = r.index + r[0].length;
|
|
62
|
-
return t.push(e.slice(i)), t;
|
|
63
|
-
}, [e]);
|
|
64
|
-
if (n.length === 1) return o(i, null, e);
|
|
65
|
-
let r = {}, a = !1;
|
|
66
|
-
for (let e of Array.isArray(t) ? t : [t]) if (s(e)) {
|
|
67
|
-
let t = e.props["data-t-slot"];
|
|
68
|
-
t && (r[t] = e, a = !0);
|
|
69
|
-
}
|
|
70
|
-
let c = n.slice();
|
|
71
|
-
if (a) for (let e = 1; e < c.length; e += 2) c[e] = r[n[e]] || `{{${n[e]}}}`;
|
|
72
|
-
else c[1] = t || `{{${n[1]}}}`;
|
|
73
|
-
return o(i, null, c);
|
|
74
|
-
};
|
|
75
|
-
//#endregion
|
|
76
|
-
export { O as a, w as c, A as i, j as n, C as o, k as r, x as s, E as t };
|