@oomol-lab/open-flow 0.1.0-beta.31 → 0.1.0-beta.33

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 (63) hide show
  1. package/dist/browser/{createResourceDialog-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
  2. package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
  3. package/dist/browser/flow-authoring-node.d.ts +5 -3
  4. package/dist/browser/flow-authoring.js +1569 -1462
  5. package/dist/browser/flow-change.d.ts +44 -17
  6. package/dist/browser/flow-change.js +1614 -1492
  7. package/dist/browser/flow-input-value.d.ts +6 -0
  8. package/dist/browser/flow-notifications.d.ts +5 -0
  9. package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
  10. package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
  11. package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
  12. package/dist/browser/{inputValues-C21gYJuc.js → inputValues-CUyjbECo.js} +2 -2
  13. package/dist/browser/licenses.md +0 -58
  14. package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
  15. package/dist/browser/theme.css +2 -0
  16. package/dist/browser/ui.css +2 -1
  17. package/dist/browser/ui.d.ts +31 -3
  18. package/dist/browser/ui.js +3547 -772
  19. package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
  20. package/dist/browser/workbench.css +1 -1
  21. package/dist/browser/workbench.d.ts +1 -0
  22. package/dist/browser/workbench.js +3944 -1077
  23. package/dist/browser/{workbenchSelect-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
  24. package/dist/common/control-api-conformance.d.ts +6 -0
  25. package/dist/common/control-api-conformance.js +502 -388
  26. package/dist/common/control-api-errors.d.ts +16 -0
  27. package/dist/common/control-api.d.ts +49 -6
  28. package/dist/common/control-api.js +1715 -1564
  29. package/dist/common/control-requests.d.ts +10 -0
  30. package/dist/common/control-requests.js +1182 -1137
  31. package/dist/common/event-sources.d.ts +0 -1
  32. package/dist/common/feishu-events.d.ts +0 -1
  33. package/dist/common/flow-encoding.js +580 -557
  34. package/dist/common/flow-graph.d.ts +16 -9
  35. package/dist/common/flow-notifications.d.ts +5 -0
  36. package/dist/common/flow-semantics.d.ts +2 -2
  37. package/dist/common/flow-semantics.js +2184 -1912
  38. package/dist/common/fr-ClB96SQY.js +298 -0
  39. package/dist/common/integration-trigger.d.ts +1 -0
  40. package/dist/common/integration-trigger.js +7572 -88
  41. package/dist/common/ja-BJF-VrP2.js +298 -0
  42. package/dist/common/ko-Bght_VaB.js +298 -0
  43. package/dist/common/mcp.js +1718 -1571
  44. package/dist/common/poll-trigger.d.ts +3 -1
  45. package/dist/common/poll-trigger.js +7512 -28
  46. package/dist/common/provider-triggers.js +6798 -3518
  47. package/dist/common/ru-DrP4BRM5.js +298 -0
  48. package/dist/common/runtime-contract.d.ts +1 -1
  49. package/dist/common/runtime-contract.js +41 -27
  50. package/dist/common/scheduler.js +921 -738
  51. package/dist/common/trigger-catalog.d.ts +3 -1
  52. package/dist/common/trigger-config.d.ts +7 -0
  53. package/dist/common/zh-CN-D2od3TNw.js +298 -0
  54. package/dist/common/zh-TW-CRmc3FMz.js +298 -0
  55. package/package.json +1 -1
  56. package/dist/browser/flowChanges-ScpWTKtQ.js +0 -12293
  57. package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
  58. package/dist/common/fr-iv1541dF.js +0 -93
  59. package/dist/common/ja-Bq-ZDOD4.js +0 -93
  60. package/dist/common/ko-Z-k9R2c6.js +0 -93
  61. package/dist/common/ru-B4gFecYZ.js +0 -93
  62. package/dist/common/zh-CN-ByQ6nYam.js +0 -93
  63. package/dist/common/zh-TW-QjIarvX9.js +0 -93
@@ -40,13 +40,21 @@ function o(e) {
40
40
  }
41
41
  //#endregion
42
42
  //#region src/form/common/value.ts
43
- function s(e) {
43
+ var s = [
44
+ "string",
45
+ "number",
46
+ "boolean",
47
+ "object",
48
+ "array",
49
+ "null"
50
+ ];
51
+ function c(e) {
44
52
  if (typeof e != "object" || !e || Array.isArray(e)) return;
45
53
  let t = Object.getPrototypeOf(e);
46
54
  return t === Object.prototype || t === null ? e : void 0;
47
55
  }
48
- function c(e, t) {
49
- let n = s(e)?.type;
56
+ function l(e, t) {
57
+ let n = c(e)?.type;
50
58
  return typeof n == "string" && [
51
59
  "string",
52
60
  "number",
@@ -55,10 +63,10 @@ function c(e, t) {
55
63
  "object",
56
64
  "array",
57
65
  "null"
58
- ].includes(n) ? n : Array.isArray(t) ? "array" : s(t) ? "object" : t === null ? "null" : typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
66
+ ].includes(n) ? n : Array.isArray(t) ? "array" : c(t) ? "object" : t === null ? "null" : typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
59
67
  }
60
- function l(e, t = c(e, void 0)) {
61
- let n = s(e);
68
+ function u(e, t = l(e, null)) {
69
+ let n = c(e);
62
70
  if (n && Object.hasOwn(n, "default")) return structuredClone(n.default);
63
71
  if (n && Object.hasOwn(n, "const")) return structuredClone(n.const);
64
72
  if (Array.isArray(n?.enum) && n.enum.length) return structuredClone(n.enum[0]);
@@ -72,22 +80,22 @@ function l(e, t = c(e, void 0)) {
72
80
  default: return "";
73
81
  }
74
82
  }
75
- function u(e, t, n) {
76
- return Object.fromEntries([...Object.entries(s(e) ?? {}).filter(([e]) => e != t), ...n === void 0 ? [] : [[t, n]]]);
77
- }
78
83
  function d(e, t, n) {
79
- let r = s(e);
84
+ return Object.fromEntries([...Object.entries(c(e) ?? {}).filter(([e]) => e != t), ...n === void 0 ? [] : [[t, n]]]);
85
+ }
86
+ function f(e, t, n) {
87
+ let r = c(e);
80
88
  if (!(!r || !Object.hasOwn(r, t) || t != n && Object.hasOwn(r, n))) return Object.fromEntries(Object.entries(r).map(([e, r]) => [e == t ? n : e, r]));
81
89
  }
82
- function f(e, t = /* @__PURE__ */ new Set()) {
90
+ function p(e, t = /* @__PURE__ */ new Set()) {
83
91
  if (e === null || typeof e == "string" || typeof e == "boolean") return !0;
84
92
  if (typeof e == "number") return Number.isFinite(e);
85
93
  if (typeof e != "object" || !e || t.has(e)) return !1;
86
- let n = s(e);
94
+ let n = c(e);
87
95
  if (!Array.isArray(e) && n == null) return !1;
88
96
  t.add(e);
89
- let r = (Array.isArray(e) ? Array.from(e) : Object.values(n)).every((e) => f(e, t));
97
+ let r = (Array.isArray(e) ? Array.from(e) : Object.values(n)).every((e) => p(e, t));
90
98
  return t.delete(e), r;
91
99
  }
92
100
  //#endregion
93
- export { u as a, a as c, d as i, t as l, f as n, c as o, s as r, i as s, l as t, e as u };
101
+ export { f as a, i as c, e as d, c as i, a as l, p as n, d as o, s as r, l as s, u as t, t as u };