@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
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { l as e } from "./dist-Dz6Nglsd.js";
|
|
2
|
+
import { a as t } from "./main-BDnNHhkU.js";
|
|
3
|
+
import { t as n } from "./flowRunInputEditorStore-BBqQIOCR.js";
|
|
4
|
+
import { n as r } from "./flowWorkspace-BtNfkYuG.js";
|
|
5
|
+
import { useEffect as i, useRef as a, useState as o } from "react";
|
|
6
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
7
|
+
//#region src/workbench/browser/runtime/editor/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 _ = a({
|
|
10
|
+
definitions: c,
|
|
11
|
+
language: u,
|
|
12
|
+
values: g
|
|
13
|
+
}), [v, y] = o();
|
|
14
|
+
i(() => {
|
|
15
|
+
let t = e(_.current.language), r = new n(_.current.definitions, t);
|
|
16
|
+
return r.replaceValues(_.current.values), y({
|
|
17
|
+
store: r,
|
|
18
|
+
language$: t
|
|
19
|
+
}), () => {
|
|
20
|
+
r.dispose(), t.dispose();
|
|
21
|
+
};
|
|
22
|
+
}, []);
|
|
23
|
+
let b = v?.store, x = t(b?.values$), S = t(b?.valid$);
|
|
24
|
+
return i(() => v?.language$.set(u), [u, v]), i(() => {
|
|
25
|
+
b && d(b.values());
|
|
26
|
+
}, [
|
|
27
|
+
x,
|
|
28
|
+
d,
|
|
29
|
+
b
|
|
30
|
+
]), i(() => {
|
|
31
|
+
S != null && p(S);
|
|
32
|
+
}, [p, S]), b ? /* @__PURE__ */ s("div", {
|
|
33
|
+
onBlur: () => f(b.values(), b.valid$.value),
|
|
34
|
+
children: /* @__PURE__ */ s(r, {
|
|
35
|
+
labelledBy: l,
|
|
36
|
+
showErrors: m,
|
|
37
|
+
store: b,
|
|
38
|
+
theme: h
|
|
39
|
+
})
|
|
40
|
+
}) : null;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { c as InputValues };
|
|
@@ -25,23 +25,12 @@ function i(e) {
|
|
|
25
25
|
}
|
|
26
26
|
function a(e, t = "en") {
|
|
27
27
|
for (let t of e) {
|
|
28
|
-
let e = t == null ? void 0 :
|
|
28
|
+
let e = t == null ? void 0 : o(t);
|
|
29
29
|
if (e != null) return e;
|
|
30
30
|
}
|
|
31
31
|
return t;
|
|
32
32
|
}
|
|
33
33
|
function o(e) {
|
|
34
|
-
return e == "zh-TW" ? [
|
|
35
|
-
"zh-TW",
|
|
36
|
-
"zh-CN",
|
|
37
|
-
"en"
|
|
38
|
-
] : e == "zh-CN" ? ["zh-CN", "en"] : e == "en" ? ["en", "zh-CN"] : [
|
|
39
|
-
e,
|
|
40
|
-
"en",
|
|
41
|
-
"zh-CN"
|
|
42
|
-
];
|
|
43
|
-
}
|
|
44
|
-
function s(e) {
|
|
45
34
|
let t = e.trim().toLowerCase();
|
|
46
35
|
if (t.length == 0) return;
|
|
47
36
|
let i = n.get(t);
|
|
@@ -50,4 +39,4 @@ function s(e) {
|
|
|
50
39
|
return a[0] == "zh" ? a.includes("hant") ? "zh-TW" : a.includes("hans") ? "zh-CN" : a.some((e) => r.has(e)) ? "zh-TW" : "zh-CN" : n.get(a[0]);
|
|
51
40
|
}
|
|
52
41
|
//#endregion
|
|
53
|
-
export {
|
|
42
|
+
export { e as i, a as n, t as r, i as t };
|