@oomol-lab/open-flow 0.1.0-beta.27 → 0.1.0-beta.29
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-BwI2JmPE.js → createResourceDialog-C_8I3Fua.js} +1 -1
- package/dist/browser/dist-CoszrK7m.js +4 -0
- package/dist/browser/{switch-CyZ96-UF.js → editorComponent-Dq4IKp5R.js} +5787 -651
- package/dist/browser/flow-authoring-node.d.ts +6 -2
- package/dist/browser/flow-authoring.js +1489 -1638
- package/dist/browser/flow-change-schema.d.ts +4 -0
- package/dist/browser/flow-change.d.ts +20 -14
- package/dist/browser/flow-change.js +1057 -1179
- package/dist/browser/flow-notifications.d.ts +6 -2
- package/dist/browser/{flowChanges-DhEjA0n5.js → flowChanges-BBtkyUGd.js} +2192 -1975
- package/dist/browser/{flowRunInputEditorStore-BBqQIOCR.js → flowRunInputEditorStore-CTORQcA2.js} +378 -429
- package/dist/browser/{flowWorkspace-zcweMsLS.js → flowWorkspace-DNmBb3ZW.js} +62886 -66618
- package/dist/browser/host-conformance.js +7 -1
- package/dist/browser/{inputValues-C5ExCCf0.js → inputValues-BbSVOWQP.js} +2 -2
- package/dist/browser/{markdownContent-SIlWuHve.js → markdownContent-D2oHGWc6.js} +24 -24
- package/dist/browser/ui.css +1 -1
- package/dist/browser/value-DPg_9yXB.js +93 -0
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.js +769 -605
- package/dist/browser/{workbenchSelect-BUu7CjUA.js → workbenchSelect-CQOvpteT.js} +1507 -1642
- package/dist/common/authoringExamples.d.ts +28 -0
- package/dist/common/control-api-conformance.js +1449 -1556
- package/dist/common/control-api-errors.d.ts +8 -0
- package/dist/common/control-api.d.ts +12 -4
- package/dist/common/control-api.js +1480 -1560
- package/dist/common/control-requests.d.ts +13 -6
- package/dist/common/control-requests.js +1886 -1445
- package/dist/common/cron-trigger.d.ts +2 -1
- package/dist/common/cron-trigger.js +27 -24
- package/dist/common/draftOperations.d.ts +14 -0
- package/dist/common/engine-contract.d.ts +2 -2
- package/dist/common/flow-encoding.d.ts +3 -0
- package/dist/common/flow-encoding.js +1488 -1524
- package/dist/common/flow-graph.d.ts +18 -2
- package/dist/common/flow-notifications.d.ts +6 -2
- package/dist/common/flow-schema.d.ts +1 -2
- package/dist/common/flow-semantics.d.ts +2 -1
- package/dist/common/flow-semantics.js +7809 -7820
- package/dist/common/flowInspection.d.ts +16 -0
- package/dist/common/integration-trigger.d.ts +2 -2
- package/dist/common/integration-trigger.js +8 -8
- package/dist/common/mcp.d.ts +2 -1
- package/dist/common/mcp.js +985 -1060
- package/dist/common/poll-trigger.d.ts +3 -0
- package/dist/common/poll-trigger.js +26 -22
- package/dist/common/provider-triggers.js +3096 -3126
- package/dist/common/run-events.js +1 -0
- package/dist/common/runtime-contract.js +3 -3
- package/dist/common/scheduler.d.ts +6 -5
- package/dist/common/scheduler.js +2318 -2383
- package/dist/common/trigger-contract.d.ts +5 -0
- package/dist/common/webhook-trigger.d.ts +3 -3
- package/dist/common/webhook-trigger.js +64 -18
- package/package.json +1 -1
- package/dist/browser/dist-B_T-OpQp.js +0 -4
- package/dist/browser/languages-C0zQ4GSo.js +0 -42
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
//#region src/localization/common/languages.ts
|
|
2
|
+
var e = [
|
|
3
|
+
"en",
|
|
4
|
+
"zh-CN",
|
|
5
|
+
"zh-TW",
|
|
6
|
+
"ja",
|
|
7
|
+
"ko",
|
|
8
|
+
"ru",
|
|
9
|
+
"fr"
|
|
10
|
+
], t = {
|
|
11
|
+
en: "English",
|
|
12
|
+
"zh-CN": "简体中文",
|
|
13
|
+
"zh-TW": "繁體中文",
|
|
14
|
+
ja: "日本語",
|
|
15
|
+
ko: "한국어",
|
|
16
|
+
ru: "Русский",
|
|
17
|
+
fr: "Français"
|
|
18
|
+
}, n = new Map(e.map((e) => [e.toLowerCase(), e])), r = /* @__PURE__ */ new Set([
|
|
19
|
+
"hk",
|
|
20
|
+
"mo",
|
|
21
|
+
"tw"
|
|
22
|
+
]);
|
|
23
|
+
function i(e) {
|
|
24
|
+
return typeof e == "string" && n.get(e.toLowerCase()) == e;
|
|
25
|
+
}
|
|
26
|
+
function a(e, t = "en") {
|
|
27
|
+
for (let t of e) {
|
|
28
|
+
let e = t == null ? void 0 : o(t);
|
|
29
|
+
if (e != null) return e;
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
}
|
|
33
|
+
function o(e) {
|
|
34
|
+
let t = e.trim().toLowerCase();
|
|
35
|
+
if (t.length == 0) return;
|
|
36
|
+
let i = n.get(t);
|
|
37
|
+
if (i != null) return i;
|
|
38
|
+
let a = t.split("-");
|
|
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]);
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/form/common/value.ts
|
|
43
|
+
function s(e) {
|
|
44
|
+
if (typeof e != "object" || !e || Array.isArray(e)) return;
|
|
45
|
+
let t = Object.getPrototypeOf(e);
|
|
46
|
+
return t === Object.prototype || t === null ? e : void 0;
|
|
47
|
+
}
|
|
48
|
+
function c(e, t) {
|
|
49
|
+
let n = s(e)?.type;
|
|
50
|
+
return typeof n == "string" && [
|
|
51
|
+
"string",
|
|
52
|
+
"number",
|
|
53
|
+
"integer",
|
|
54
|
+
"boolean",
|
|
55
|
+
"object",
|
|
56
|
+
"array",
|
|
57
|
+
"null"
|
|
58
|
+
].includes(n) ? n : Array.isArray(t) ? "array" : s(t) ? "object" : t === null ? "null" : typeof t == "boolean" ? "boolean" : typeof t == "number" ? "number" : "string";
|
|
59
|
+
}
|
|
60
|
+
function l(e, t = c(e, void 0)) {
|
|
61
|
+
let n = s(e);
|
|
62
|
+
if (n && Object.hasOwn(n, "default")) return structuredClone(n.default);
|
|
63
|
+
if (n && Object.hasOwn(n, "const")) return structuredClone(n.const);
|
|
64
|
+
if (Array.isArray(n?.enum) && n.enum.length) return structuredClone(n.enum[0]);
|
|
65
|
+
switch (t) {
|
|
66
|
+
case "object": return {};
|
|
67
|
+
case "array": return [];
|
|
68
|
+
case "boolean": return !1;
|
|
69
|
+
case "number":
|
|
70
|
+
case "integer": return 0;
|
|
71
|
+
case "null": return null;
|
|
72
|
+
default: return "";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
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
|
+
function d(e, t, n) {
|
|
79
|
+
let r = s(e);
|
|
80
|
+
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
|
+
}
|
|
82
|
+
function f(e, t = /* @__PURE__ */ new Set()) {
|
|
83
|
+
if (e === null || typeof e == "string" || typeof e == "boolean") return !0;
|
|
84
|
+
if (typeof e == "number") return Number.isFinite(e);
|
|
85
|
+
if (typeof e != "object" || !e || t.has(e)) return !1;
|
|
86
|
+
let n = s(e);
|
|
87
|
+
if (!Array.isArray(e) && n == null) return !1;
|
|
88
|
+
t.add(e);
|
|
89
|
+
let r = (Array.isArray(e) ? Array.from(e) : Object.values(n)).every((e) => f(e, t));
|
|
90
|
+
return t.delete(e), r;
|
|
91
|
+
}
|
|
92
|
+
//#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 };
|