@oomol-lab/open-flow 0.1.0-beta.31 → 0.1.0-beta.32
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-FBRnCMK6.js → createResourceDialog-DRB0OEtr.js} +2 -2
- package/dist/browser/{editorComponent-CyH2o-Ji.js → editorComponent-bXA-KosC.js} +2744 -1113
- package/dist/browser/flow-authoring-node.d.ts +5 -3
- package/dist/browser/flow-authoring.js +1569 -1462
- package/dist/browser/flow-change.d.ts +44 -17
- package/dist/browser/flow-change.js +1614 -1492
- package/dist/browser/flow-input-value.d.ts +6 -0
- package/dist/browser/flow-notifications.d.ts +5 -0
- package/dist/browser/flowChanges-FiZJreeB.js +9855 -0
- package/dist/browser/{flowRunInputEditorStore-CTORQcA2.js → flowRunInputEditorStore-Bgb5vSeS.js} +3 -3
- package/dist/browser/flowWorkspace-CBo6Ih_c.js +40987 -0
- package/dist/browser/{inputValues-C21gYJuc.js → inputValues-CUyjbECo.js} +2 -2
- package/dist/browser/licenses.md +0 -58
- package/dist/browser/{lite-BuKZ8joP.js → lite-BA96NG4M.js} +8 -4
- package/dist/browser/theme.css +2 -0
- package/dist/browser/ui.css +2 -1
- package/dist/browser/ui.d.ts +31 -3
- package/dist/browser/ui.js +3547 -772
- package/dist/browser/{value-DPg_9yXB.js → value-B_yE9ean.js} +22 -14
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +3944 -1077
- package/dist/browser/{workbenchSelect-DAaGuZwP.js → workbenchSelect-DNteZJYP.js} +1695 -1471
- package/dist/common/control-api-conformance.d.ts +6 -0
- package/dist/common/control-api-conformance.js +502 -388
- package/dist/common/control-api-errors.d.ts +16 -0
- package/dist/common/control-api.d.ts +49 -6
- package/dist/common/control-api.js +1715 -1564
- package/dist/common/control-requests.d.ts +10 -0
- package/dist/common/control-requests.js +1182 -1137
- package/dist/common/event-sources.d.ts +0 -1
- package/dist/common/feishu-events.d.ts +0 -1
- package/dist/common/flow-encoding.js +580 -557
- package/dist/common/flow-graph.d.ts +16 -9
- package/dist/common/flow-notifications.d.ts +5 -0
- package/dist/common/flow-semantics.d.ts +2 -2
- package/dist/common/flow-semantics.js +2184 -1912
- package/dist/common/fr-ClB96SQY.js +298 -0
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/integration-trigger.js +7572 -88
- package/dist/common/ja-BJF-VrP2.js +298 -0
- package/dist/common/ko-Bght_VaB.js +298 -0
- package/dist/common/mcp.js +1718 -1571
- package/dist/common/poll-trigger.d.ts +3 -1
- package/dist/common/poll-trigger.js +7512 -28
- package/dist/common/provider-triggers.js +6798 -3518
- package/dist/common/ru-DrP4BRM5.js +298 -0
- package/dist/common/runtime-contract.d.ts +1 -1
- package/dist/common/runtime-contract.js +41 -27
- package/dist/common/scheduler.js +921 -738
- package/dist/common/trigger-catalog.d.ts +3 -1
- package/dist/common/trigger-config.d.ts +7 -0
- package/dist/common/zh-CN-D2od3TNw.js +298 -0
- package/dist/common/zh-TW-CRmc3FMz.js +298 -0
- package/package.json +1 -1
- package/dist/browser/flowChanges-ScpWTKtQ.js +0 -12293
- package/dist/browser/flowWorkspace-CY1r6dwz.js +0 -153101
- package/dist/common/fr-iv1541dF.js +0 -93
- package/dist/common/ja-Bq-ZDOD4.js +0 -93
- package/dist/common/ko-Z-k9R2c6.js +0 -93
- package/dist/common/ru-B4gFecYZ.js +0 -93
- package/dist/common/zh-CN-ByQ6nYam.js +0 -93
- 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
|
-
|
|
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
|
|
49
|
-
let n =
|
|
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" :
|
|
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
|
|
61
|
-
let n =
|
|
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
|
-
|
|
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
|
|
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 =
|
|
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) =>
|
|
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 {
|
|
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 };
|