@oomol-lab/open-flow 0.1.0-alpha.1 → 0.1.0-alpha.12

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 (78) hide show
  1. package/README.md +5 -1
  2. package/dist/browser/addNodeOptions-BYQXyUmQ.js +9571 -0
  3. package/dist/browser/carbon-DMCVsjHo.js +53 -0
  4. package/dist/browser/{project-change.js → change-7rp2OZLm.js} +16 -46
  5. package/dist/browser/createResourceDialog-CWD62rU0.js +467 -0
  6. package/dist/browser/{dist-o4dBuwiG.js → dist-3Mj8q8Pr.js} +28 -28
  7. package/dist/browser/{dist-CIq6ue3I.js → dist-BKuSVKCC.js} +1115 -1103
  8. package/dist/browser/{dist-DL0SDskM.js → dist-BMqL-qR5.js} +473 -906
  9. package/dist/browser/{dist-CLZJNoWB.js → dist-BN4ZCyOB.js} +10 -10
  10. package/dist/browser/{dist-zyY--HOV.js → dist-BpopSHwP.js} +3 -3
  11. package/dist/browser/dist-C46JByB-.js +252 -0
  12. package/dist/browser/{dist-BbyiRq3c.js → dist-CJpzJrLM.js} +294 -284
  13. package/dist/browser/{dist-Djd02JSy.js → dist-CPuF50D9.js} +198 -198
  14. package/dist/browser/{dist-CvcmLAMW.js → dist-CUSrALSX.js} +115 -115
  15. package/dist/browser/dist-CeSZ2xSM.js +444 -0
  16. package/dist/browser/{dist-7oZK9QXZ.js → dist-DMi8_lU3.js} +5 -5
  17. package/dist/browser/{dist-B9OV3YTx.js → dist-DUzA0Ukh.js} +22 -22
  18. package/dist/browser/{dist-aWSZx4q1.js → dist-DWADUsVB.js} +75 -75
  19. package/dist/browser/{dist-BLk5M0uK.js → dist-Mecbzdl2.js} +3 -3
  20. package/dist/browser/{esm-DXw7EADW.js → esm-DmVDlOEJ.js} +14 -24
  21. package/dist/browser/flow-authoring-edge.d.ts +3 -0
  22. package/dist/browser/flow-authoring-module.d.ts +4 -0
  23. package/dist/browser/flow-authoring-node.d.ts +86 -0
  24. package/dist/browser/flow-authoring.d.ts +4 -0
  25. package/dist/browser/flow-authoring.js +783 -0
  26. package/dist/browser/{project-change.d.ts → flow-change.d.ts} +29 -37
  27. package/dist/browser/flow-change.js +234 -0
  28. package/dist/browser/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  29. package/dist/browser/flowRunInputEditorStore-BYxwvHZl.js +8952 -0
  30. package/dist/browser/flowWorkspace-Bwqmoq-c.js +47439 -0
  31. package/dist/browser/languages-DgJehE1g.js +62 -0
  32. package/dist/browser/lib-C5Ipyfps.js +7856 -0
  33. package/dist/browser/{lib-S4ccuMeT.js → lib-GrGxYjsJ.js} +3 -5
  34. package/dist/browser/licenses.md +620 -12
  35. package/dist/browser/main-DmjVyuWr.js +76 -0
  36. package/dist/browser/{markdownContent-ZZFfSRqO.js → markdownContent-0teWaxq8.js} +5188 -5144
  37. package/dist/browser/theme.css +63 -0
  38. package/dist/browser/theme.css.d.ts +1 -0
  39. package/dist/browser/typeScriptSession-D5neIpug.js +2560 -0
  40. package/dist/browser/{composite-7VwgfnXx.js → useOpenInteractionType-CRgOHg5M.js} +2209 -2750
  41. package/dist/browser/workbench-contract.d.ts +6 -6
  42. package/dist/browser/workbench.css +1 -1
  43. package/dist/browser/workbench.d.ts +18 -2
  44. package/dist/browser/workbench.js +4200 -2233
  45. package/dist/common/connector-action.d.ts +6 -0
  46. package/dist/common/connector-action.js +38 -30
  47. package/dist/common/control-api-conformance.js +262 -359
  48. package/dist/common/control-api-errors.d.ts +32 -24
  49. package/dist/common/control-api.d.ts +57 -73
  50. package/dist/common/control-api.js +199 -205
  51. package/dist/common/cron-trigger.d.ts +1 -1
  52. package/dist/common/cron-trigger.js +1 -1
  53. package/dist/common/flow-encoding.d.ts +11 -0
  54. package/dist/common/{project-encoding.js → flow-encoding.js} +14 -13
  55. package/dist/common/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  56. package/dist/common/{project-semantics.d.ts → flow-semantics.d.ts} +11 -12
  57. package/dist/common/{project-semantics.js → flow-semantics.js} +959 -934
  58. package/dist/common/integration-trigger.d.ts +2 -1
  59. package/dist/common/integration-trigger.js +1 -1
  60. package/dist/common/licenses.md +1 -25
  61. package/dist/common/localization.d.ts +21 -0
  62. package/dist/common/localization.js +62 -0
  63. package/dist/common/poll-trigger.d.ts +1 -1
  64. package/dist/common/provider-triggers.js +1057 -948
  65. package/dist/common/run-lifecycle.js +1 -1
  66. package/dist/common/runtime-contract.d.ts +1 -1
  67. package/dist/common/runtime-contract.js +1 -1
  68. package/dist/common/scheduler.d.ts +8 -7
  69. package/dist/common/scheduler.js +251 -232
  70. package/dist/common/webhook-trigger.d.ts +1 -1
  71. package/dist/common/webhook-trigger.js +35 -1
  72. package/package.json +23 -10
  73. package/dist/browser/addNodeOptions-DqoIueCR.js +0 -33746
  74. package/dist/browser/carbon-nMY84Amv.js +0 -53
  75. package/dist/browser/createResourceDialog-ByuJWdSL.js +0 -439
  76. package/dist/browser/dist-n-z5HtaO.js +0 -4
  77. package/dist/browser/flowWorkspace-DwVMpcar.js +0 -22092
  78. package/dist/common/project-encoding.d.ts +0 -11
@@ -1,7 +1,7 @@
1
- import { i as e, o as t } from "./dist-zyY--HOV.js";
2
- import { r as n } from "./dist-aWSZx4q1.js";
3
- import { C as r, _ as i, o as a, r as o, u as s, y as c } from "./dist-CvcmLAMW.js";
4
- //#region ../../node_modules/@lezer/json/dist/index.js
1
+ import { a as e, s as t } from "./dist-BpopSHwP.js";
2
+ import { r as n } from "./dist-DWADUsVB.js";
3
+ import { _ as r, o as i, r as a, u as o, w as s, y as c } from "./dist-CUSrALSX.js";
4
+ //#region ../../node_modules/.bun/@lezer+json@1.0.3/node_modules/@lezer/json/dist/index.js
5
5
  var l = e({
6
6
  String: t.string,
7
7
  Number: t.number,
@@ -67,12 +67,12 @@ function f(e, t) {
67
67
  let n;
68
68
  return (n = e.message.match(/at position (\d+)/)) ? Math.min(+n[1], t.length) : (n = e.message.match(/at line (\d+) column (\d+)/)) ? Math.min(t.line(+n[1]).from + +n[2] - 1, t.length) : 0;
69
69
  }
70
- var p = /*@__PURE__*/ o.define({
70
+ var p = /*@__PURE__*/ a.define({
71
71
  name: "json",
72
- parser: /*@__PURE__*/ u.configure({ props: [/*@__PURE__*/ r.add({
73
- Object: /*@__PURE__*/ s({ except: /^\s*\}/ }),
74
- Array: /*@__PURE__*/ s({ except: /^\s*\]/ })
75
- }), /*@__PURE__*/ c.add({ "Object Array": i })] }),
72
+ parser: /*@__PURE__*/ u.configure({ props: [/*@__PURE__*/ s.add({
73
+ Object: /*@__PURE__*/ o({ except: /^\s*\}/ }),
74
+ Array: /*@__PURE__*/ o({ except: /^\s*\]/ })
75
+ }), /*@__PURE__*/ c.add({ "Object Array": r })] }),
76
76
  languageData: {
77
77
  closeBrackets: { brackets: [
78
78
  "[",
@@ -83,7 +83,7 @@ var p = /*@__PURE__*/ o.define({
83
83
  }
84
84
  });
85
85
  function m() {
86
- return new a(p);
86
+ return new i(p);
87
87
  }
88
88
  //#endregion
89
89
  export { m as json, p as jsonLanguage, d as jsonParseLinter };
@@ -1,5 +1,5 @@
1
1
  import { r as e } from "./rolldown-runtime-CEFd7nDs.js";
2
- //#region ../../node_modules/@lezer/common/dist/index.js
2
+ //#region ../../node_modules/.bun/@lezer+common@1.5.2/node_modules/@lezer/common/dist/index.js
3
3
  var t = 1024, n = 0, r = class {
4
4
  constructor(e, t) {
5
5
  this.from = e, this.to = t;
@@ -1123,7 +1123,7 @@ function me(e, t) {
1123
1123
  return n;
1124
1124
  }
1125
1125
  //#endregion
1126
- //#region ../../node_modules/@lezer/highlight/dist/index.js
1126
+ //#region ../../node_modules/.bun/@lezer+highlight@1.2.3/node_modules/@lezer/highlight/dist/index.js
1127
1127
  var he = /* @__PURE__ */ e({
1128
1128
  Tag: () => F,
1129
1129
  classHighlighter: () => Oe,
@@ -1540,4 +1540,4 @@ var Oe = R([
1540
1540
  }
1541
1541
  ]);
1542
1542
  //#endregion
1543
- export { R as a, d as c, s as d, M as f, ne as g, N as h, I as i, i as l, f as m, he as n, $ as o, ee as p, z as r, t as s, F as t, c as u };
1543
+ export { ne as _, I as a, t as c, c as d, s as f, N as g, f as h, z as i, d as l, ee as m, he as n, R as o, M as p, Ce as r, $ as s, F as t, i as u };
@@ -0,0 +1,252 @@
1
+ //#region ../../node_modules/.bun/value-enhancer@5.7.2/node_modules/value-enhancer/dist/index.mjs
2
+ var e = {}, t = (e, t) => e?.set?.(t), n = (e) => e, r = Object.is, i = (e, t) => {
3
+ if (r(e, t)) return !0;
4
+ if (!Array.isArray(e) || !Array.isArray(t)) return !1;
5
+ let n = e.length;
6
+ if (t.length !== n) return !1;
7
+ for (let i = 0; i < n; i++) if (!r(e[i], t[i])) return !1;
8
+ return !0;
9
+ }, a = (e) => e.value, o = (e) => e.map(a), s = (e) => e.$version, c = (e, t) => {
10
+ try {
11
+ e(t);
12
+ } catch (e) {
13
+ console.error(e);
14
+ }
15
+ }, l = (e, t) => (e.set = t, e), u = (e) => !!e?.$valCompute, d = (e) => !!e?.set;
16
+ function f() {
17
+ if (typeof window > "u") return;
18
+ let e = { style: "color:#a225c2" }, t = { style: "color:#268bd2" }, n = { style: "color:#e28c5f" }, r = { style: "color:#eb2f96" }, i = {
19
+ header: (t) => u(t) ? [
20
+ "div",
21
+ e,
22
+ `${d(t) ? "Val" : "ReadonlyVal"}`,
23
+ "<",
24
+ a(t.value),
25
+ ">"
26
+ ] : null,
27
+ hasBody: () => !1
28
+ };
29
+ function a(e) {
30
+ return typeof e == "number" ? [
31
+ "span",
32
+ t,
33
+ e
34
+ ] : typeof e == "string" ? [
35
+ "span",
36
+ n,
37
+ e
38
+ ] : typeof e == "boolean" ? [
39
+ "span",
40
+ r,
41
+ e
42
+ ] : typeof e == "object" && e ? ["object", { object: e }] : [
43
+ "span",
44
+ n,
45
+ String(e)
46
+ ];
47
+ }
48
+ (window.devtoolsFormatters ??= []).push(i);
49
+ }
50
+ function p() {
51
+ f();
52
+ }
53
+ var m = /* @__PURE__ */ Promise.resolve(), h = /* @__PURE__ */ new Set(), g = /* @__PURE__ */ new Set(), _ = h, v, y = () => {
54
+ let e = _;
55
+ _ = _ === h ? g : h, v = !1;
56
+ for (let t of e) t.t();
57
+ e.clear();
58
+ }, b = (e) => {
59
+ _.add(e), v ||= m.then(y);
60
+ }, x = (e) => _.delete(e), S = /* @__PURE__ */ new FinalizationRegistry(c), C = class {
61
+ constructor(e, t, n) {
62
+ if (this.#n = e, this.q = (t?.equal ?? r) || void 0, this.e = t?.eager, this.m = t?.name, this.#t = t?.onDisposeValue, n) {
63
+ let e = new WeakRef(this), t = () => {
64
+ if (r) {
65
+ let e = r;
66
+ r = void 0, e();
67
+ }
68
+ }, r = n(() => {
69
+ let n = e.deref();
70
+ n ? n.n() : t();
71
+ });
72
+ r && S.register(this, this.#e = t);
73
+ }
74
+ }
75
+ g = this;
76
+ b = /* @__PURE__ */ new Map();
77
+ s = 4;
78
+ v;
79
+ c = e;
80
+ q;
81
+ e;
82
+ m;
83
+ u = () => {
84
+ if (this.s & 4) {
85
+ this.s &= -5;
86
+ let t = this.#n();
87
+ this.c === e ? this.w(t) : this.q?.(t, this.c) || (this.w(t), this.s & 1 && (this.s |= 2));
88
+ }
89
+ return this.c;
90
+ };
91
+ n = () => {
92
+ this.#i && (console.error(this.c, /* @__PURE__ */ Error(`${this.m || ""} disposed`)), process.env.NODE_ENV !== "production" && console.error(this.#i)), this.s |= 4, this.b.size && (this.s |= 1, this[3] && this.#r(3), this[2] && (this.u(), this.s & 2 && this.#r(2)), this[1] ? b(this) : this.s &= -4);
93
+ };
94
+ a(e, t) {
95
+ let n = this.b.get(e);
96
+ return n && this[n]--, this.b.set(e, t), this[t]++, () => this.r(e);
97
+ }
98
+ r(e) {
99
+ if (e) {
100
+ let t = this.b.get(e);
101
+ t && (this.b.delete(e), this[t]--);
102
+ } else this.b.clear(), this[1] = this[2] = this[3] = 0, x(this);
103
+ }
104
+ t() {
105
+ this[1] && (this.u(), this.s & 2 && this.#r(1)), this.s &= -4;
106
+ }
107
+ d() {
108
+ let t = this.c;
109
+ this.r(), S.unregister(this), this.#e?.(), this.#i = process.env.NODE_ENV === "production" || /* @__PURE__ */ Error("[val-dev] Val disposed at:"), this.#t && t !== e && this.#t(t);
110
+ }
111
+ w(e) {
112
+ this.w = this.q?.(e, e) ? this.y : this.x, this.w(e);
113
+ }
114
+ x(t) {
115
+ let n = this.c;
116
+ this.c = t, this.v = Symbol(), this.#t && n !== e && n !== t && this.#t(n);
117
+ }
118
+ y(t) {
119
+ let n = this.c;
120
+ this.c = this.v = t, this.#t && n !== e && n !== t && this.#t(n);
121
+ }
122
+ 1 = 0;
123
+ 2 = 0;
124
+ 3 = 0;
125
+ #e;
126
+ #t;
127
+ #n;
128
+ #r(e) {
129
+ for (let [t, n] of this.b) n === e && c(t, this.c);
130
+ }
131
+ #i;
132
+ }, w = class {
133
+ #e = /* @__PURE__ */ new WeakSet();
134
+ constructor(e) {
135
+ this.g = e.g, this.e = e.e, this.u = e.u, this.n = e.n, this.b = e.b;
136
+ }
137
+ get v() {
138
+ return this.g.v;
139
+ }
140
+ g;
141
+ b;
142
+ e;
143
+ u;
144
+ n;
145
+ a(e, t) {
146
+ return this.#e.add(e), this.g.a(e, t);
147
+ }
148
+ r(e) {
149
+ if (e) this.#e.has(e) && (this.#e.delete(e), this.g.r(e));
150
+ else for (let e of this.g.b.keys()) this.r(e);
151
+ }
152
+ d() {
153
+ this.r();
154
+ }
155
+ }, T = class {
156
+ #e;
157
+ constructor(e) {
158
+ this.#e = e, this.get = e.u, e.u();
159
+ }
160
+ get name() {
161
+ return this.#e.m;
162
+ }
163
+ get $version() {
164
+ return this.get(), this.#e.v;
165
+ }
166
+ get value() {
167
+ return this.get();
168
+ }
169
+ set value(e) {
170
+ this.set?.(e);
171
+ }
172
+ set;
173
+ get;
174
+ ref(e) {
175
+ let t = new T(new w(this.#e));
176
+ return e && this.set ? l(t, this.set) : t;
177
+ }
178
+ reaction(e, t = this.#e.e) {
179
+ return this.#e.a(e, t ? 2 : 1);
180
+ }
181
+ subscribe(e, t = this.#e.e) {
182
+ let n = this.reaction(e, t);
183
+ return c(e, this.get()), n;
184
+ }
185
+ $valCompute(e) {
186
+ return this.#e.a(e, 3);
187
+ }
188
+ unsubscribe(e) {
189
+ this.#e.r(e);
190
+ }
191
+ dispose() {
192
+ this.#e.d();
193
+ }
194
+ toString() {
195
+ return String(this.get());
196
+ }
197
+ toJSON(e) {
198
+ let t = this.get();
199
+ return t && t.toJSON ? t.toJSON(e) : t;
200
+ }
201
+ }, E = (e, t) => {
202
+ let n = e, r = new C(() => n, t);
203
+ return [new T(r), (e) => {
204
+ r.q?.(e, n) || (n = e, r.n());
205
+ }];
206
+ }, D = (e, t) => l(...E(e, t)), O = (e, t, n) => new T(new C(e, n, t)), k = (e, t = n, r) => {
207
+ let a, l;
208
+ return O(() => {
209
+ let n = e.map(s);
210
+ return (!l || !i(n, l)) && (l = n, a = t(o(e))), a;
211
+ }, (t) => {
212
+ let n = e.map((e) => e.$valCompute(t));
213
+ return () => n.forEach(c);
214
+ }, r);
215
+ }, A = (t, n) => {
216
+ let i = 0, a = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map(), s = (t) => {
217
+ if (!u(t)) {
218
+ if (!u(t?.$)) return t;
219
+ t = t.$;
220
+ }
221
+ return a.has(t) ? r(t.$version, a.get(t)) || a.set(t, e) : (o.delete(t) || t.$valCompute(l.n), a.set(t, t.$version)), t.value;
222
+ }, c, l = new C(() => {
223
+ if (!i) {
224
+ if (a.size) x: {
225
+ for (let [e, t] of a) if (!r(e.$version, t)) break x;
226
+ return c;
227
+ }
228
+ let e = a;
229
+ a = o, o = e, i++;
230
+ }
231
+ if (c = t(s), !--i && o.size) {
232
+ for (let e of o.keys()) e.unsubscribe(l.n);
233
+ o.clear();
234
+ }
235
+ return c;
236
+ }, n, () => () => {
237
+ if (a.size) {
238
+ for (let e of a.keys()) e.unsubscribe(l.n);
239
+ a.clear();
240
+ }
241
+ });
242
+ return new T(l);
243
+ }, j = (t, i = n, a) => {
244
+ let o, s = e;
245
+ return O(() => {
246
+ let e = t.$version;
247
+ return r(e, s) || (s = e, o = i(t.value)), o;
248
+ }, (e) => t.$valCompute(e), a);
249
+ };
250
+ process.env.NODE_ENV !== "production" && p();
251
+ //#endregion
252
+ export { j as a, d as c, r as d, D as f, A as i, E as l, l as n, n as o, k as r, u as s, i as t, t as u };