@oomol-lab/open-flow 0.1.0-beta.14 → 0.1.0-beta.16

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.
Files changed (44) hide show
  1. package/dist/browser/{createResourceDialog-Cdixb0WC.js → createResourceDialog-DRUIXBbz.js} +24 -25
  2. package/dist/browser/dist-B_T-OpQp.js +4 -0
  3. package/dist/browser/{dist-C46JByB-.js → dist-Dz6Nglsd.js} +61 -61
  4. package/dist/browser/{esm-3CD4_kEl.js → esm-B7A42FzW.js} +11 -1
  5. package/dist/browser/flow-authoring.js +1 -1
  6. package/dist/browser/flow-change.js +1 -1
  7. package/dist/browser/flowChanges-iuoam3Bx.js +10753 -0
  8. package/dist/browser/{flowRunInputEditorStore-NPGePkvP.js → flowRunInputEditorStore-BBqQIOCR.js} +1017 -4100
  9. package/dist/browser/{flowWorkspace-DvitOPqI.js → flowWorkspace-B0UAQ-s7.js} +76839 -91049
  10. package/dist/browser/i18n-JtW9O5x3.js +6881 -0
  11. package/dist/browser/inputValues-DICmJoN-.js +43 -0
  12. package/dist/browser/{languages-i3Xmpt6S.js → languages-C0zQ4GSo.js} +2 -13
  13. package/dist/browser/licenses.md +46 -729
  14. package/dist/browser/main-BDnNHhkU.js +50 -0
  15. package/dist/browser/{markdownContent-BawLYUjh.js → markdownContent-tWc7bRAs.js} +6 -6
  16. package/dist/browser/theme.css +427 -0
  17. package/dist/browser/ui-input.d.ts +3 -0
  18. package/dist/browser/ui-label.d.ts +3 -0
  19. package/dist/browser/ui-textarea.d.ts +3 -0
  20. package/dist/browser/ui.css +2 -0
  21. package/dist/browser/ui.css.d.ts +1 -0
  22. package/dist/browser/ui.d.ts +3 -0
  23. package/dist/browser/ui.js +2401 -0
  24. package/dist/browser/useValueChanged-DSookOEC.js +2944 -0
  25. package/dist/browser/workbench.css +1 -1
  26. package/dist/browser/workbench.js +337 -338
  27. package/dist/browser/workbenchSelect-DgxXqCAa.js +11665 -0
  28. package/dist/common/control-api-conformance.js +7 -6
  29. package/dist/common/control-api.js +16 -16
  30. package/dist/common/control-requests.js +1 -1
  31. package/dist/common/flow-encoding.js +1 -1
  32. package/dist/common/flow-semantics.js +1 -1
  33. package/dist/common/mcp.d.ts +220 -0
  34. package/dist/common/mcp.js +2941 -1495
  35. package/dist/common/scheduler.js +1 -1
  36. package/package.json +9 -1
  37. package/dist/browser/DesignerIcon-Bzpx8BtG.js +0 -2272
  38. package/dist/browser/dist-CP0883sY.js +0 -4
  39. package/dist/browser/flowChanges-CNSahvWH.js +0 -14094
  40. package/dist/browser/getPseudoElementBounds-Dfqo78k7.js +0 -7151
  41. package/dist/browser/inputValues-CczmpMHr.js +0 -30
  42. package/dist/browser/main-DmjVyuWr.js +0 -76
  43. package/dist/browser/select-DCGY8Lom.js +0 -7428
  44. package/dist/browser/workbenchSelect-DdXtOYD1.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-DvitOPqI.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 };