@oomol-lab/open-flow 0.1.0-beta.22 → 0.1.0-beta.23

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 (46) hide show
  1. package/dist/browser/{createResourceDialog-CjuJryCv.js → createResourceDialog-PKbMMpEk.js} +29 -29
  2. package/dist/browser/event-sources.d.ts +30 -0
  3. package/dist/browser/{flowChanges-Tg1duLry.js → flowChanges-BUlMz4iC.js} +4236 -3019
  4. package/dist/browser/{flowWorkspace-CoK10XHY.js → flowWorkspace-DLArN17T.js} +49585 -42617
  5. package/dist/browser/{i18n-CVBh0Ni1.js → input-group-C2frNYAx.js} +1801 -75
  6. package/dist/browser/{inputValues-CDiBMKu8.js → inputValues-CcGVt51C.js} +10 -10
  7. package/dist/browser/licenses.md +60 -0
  8. package/dist/browser/lite-Cy6aeiL6.js +8538 -0
  9. package/dist/browser/{markdownContent-BBgH9ZIV.js → markdownContent-SIlWuHve.js} +17 -17
  10. package/dist/browser/theme.css +45 -5
  11. package/dist/browser/ui.css +1 -1
  12. package/dist/browser/ui.d.ts +23 -1
  13. package/dist/browser/ui.js +59 -27
  14. package/dist/browser/workbench-contract.d.ts +19 -0
  15. package/dist/browser/workbench.css +1 -1
  16. package/dist/browser/workbench.d.ts +1 -0
  17. package/dist/browser/workbench.js +1176 -734
  18. package/dist/browser/workbenchSelect-CPRUXKbf.js +6088 -0
  19. package/dist/common/control-api-conformance.js +273 -232
  20. package/dist/common/control-api-errors.d.ts +20 -0
  21. package/dist/common/control-api.d.ts +50 -10
  22. package/dist/common/control-api.js +899 -661
  23. package/dist/common/control-requests.d.ts +23 -0
  24. package/dist/common/control-requests.js +377 -351
  25. package/dist/common/event-sources.d.ts +50 -0
  26. package/dist/common/feishu-events.d.ts +20 -0
  27. package/dist/common/feishu-subscriptions.d.ts +10 -0
  28. package/dist/common/fr-iv1541dF.js +93 -0
  29. package/dist/common/integration-trigger.d.ts +4 -0
  30. package/dist/common/ja-Bq-ZDOD4.js +93 -0
  31. package/dist/common/ko-Z-k9R2c6.js +93 -0
  32. package/dist/common/localization.d.ts +2 -0
  33. package/dist/common/localization.js +37 -1
  34. package/dist/common/mcp.js +615 -382
  35. package/dist/common/poll-trigger.d.ts +2 -0
  36. package/dist/common/provider-triggers.d.ts +4 -0
  37. package/dist/common/provider-triggers.js +3225 -2692
  38. package/dist/common/ru-B4gFecYZ.js +93 -0
  39. package/dist/common/trigger-catalog.d.ts +17 -0
  40. package/dist/common/trigger-config-options.d.ts +13 -0
  41. package/dist/common/trigger-localization.d.ts +7 -0
  42. package/dist/common/zh-CN-ByQ6nYam.js +93 -0
  43. package/dist/common/zh-TW-QjIarvX9.js +93 -0
  44. package/package.json +1 -1
  45. package/dist/browser/useValueChanged-BY05Usw-.js +0 -2944
  46. package/dist/browser/workbenchSelect-DEmv7SLW.js +0 -11666
@@ -1,8 +1,8 @@
1
1
  import { o as e, r as t, t as n } from "./rolldown-runtime-CEFd7nDs.js";
2
2
  import { i as r } from "./main-BDnNHhkU.js";
3
3
  import { a as i } from "./dist-B_T-OpQp.js";
4
- import { memo as a, useEffect as o, useMemo as s, useRef as c } from "react";
5
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
4
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
5
+ import { memo as c, useEffect as l, useMemo as u, useRef as d } from "react";
6
6
  //#region ../../node_modules/.bun/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js
7
7
  var f = /* @__PURE__ */ n(((e, t) => {
8
8
  var n = function(e) {
@@ -5770,19 +5770,19 @@ function Eo(e) {
5770
5770
  return typeof t == "string" ? n.value = t : "" + t, n;
5771
5771
  }
5772
5772
  function Do(e, t) {
5773
- let n = t.allowedElements, r = t.allowElement, i = t.components, a = t.disallowedElements, o = t.skipHtml, s = t.unwrapDisallowed, c = t.urlTransform || Oo;
5773
+ let n = t.allowedElements, r = t.allowElement, i = t.components, c = t.disallowedElements, l = t.skipHtml, u = t.unwrapDisallowed, d = t.urlTransform || Oo;
5774
5774
  for (let e of Co) Object.hasOwn(t, e.from) && "" + e.from + (e.to ? "use `" + e.to + "` instead" : "remove it") + e.id;
5775
5775
  return Ta(e, f), Je(e, {
5776
- Fragment: l,
5776
+ Fragment: a,
5777
5777
  components: i,
5778
5778
  ignoreInvalidStyle: !0,
5779
- jsx: u,
5780
- jsxs: d,
5779
+ jsx: o,
5780
+ jsxs: s,
5781
5781
  passKeys: !0,
5782
5782
  passNode: !0
5783
5783
  });
5784
5784
  function f(e, t, i) {
5785
- if (e.type === "raw" && i && typeof t == "number") return o ? i.children.splice(t, 1) : i.children[t] = {
5785
+ if (e.type === "raw" && i && typeof t == "number") return l ? i.children.splice(t, 1) : i.children[t] = {
5786
5786
  type: "text",
5787
5787
  value: e.value
5788
5788
  }, t;
@@ -5790,12 +5790,12 @@ function Do(e, t) {
5790
5790
  let t;
5791
5791
  for (t in gt) if (Object.hasOwn(gt, t) && Object.hasOwn(e.properties, t)) {
5792
5792
  let n = e.properties[t], r = gt[t];
5793
- (r === null || r.includes(e.tagName)) && (e.properties[t] = c(String(n || ""), t, e));
5793
+ (r === null || r.includes(e.tagName)) && (e.properties[t] = d(String(n || ""), t, e));
5794
5794
  }
5795
5795
  }
5796
5796
  if (e.type === "element") {
5797
- let o = n ? !n.includes(e.tagName) : a ? a.includes(e.tagName) : !1;
5798
- if (!o && r && typeof t == "number" && (o = !r(e, t, i)), o && i && typeof t == "number") return s && e.children ? i.children.splice(t, 1, ...e.children) : i.children.splice(t, 1), t;
5797
+ let a = n ? !n.includes(e.tagName) : c ? c.includes(e.tagName) : !1;
5798
+ if (!a && r && typeof t == "number" && (a = !r(e, t, i)), a && i && typeof t == "number") return u && e.children ? i.children.splice(t, 1, ...e.children) : i.children.splice(t, 1), t;
5799
5799
  }
5800
5800
  }
5801
5801
  }
@@ -44544,10 +44544,10 @@ function GE(e, t, n) {
44544
44544
  }, e.children = [];
44545
44545
  }
44546
44546
  }
44547
- var KE = /* @__PURE__ */ a(function({ dark: e, unstyled: t, text: n, className: i = "", components: a, mermaid: l }) {
44548
- let d = r(), f = s(() => RE(d), [d]), p = c(null), m = c(/* @__PURE__ */ new WeakMap());
44549
- return o(() => {
44550
- let t = l ? [...p.current?.querySelectorAll("pre code.language-mermaid") ?? []] : [];
44547
+ var KE = /* @__PURE__ */ c(function({ dark: e, unstyled: t, text: n, className: i = "", components: a, mermaid: s }) {
44548
+ let c = r(), f = u(() => RE(c), [c]), p = d(null), m = d(/* @__PURE__ */ new WeakMap());
44549
+ return l(() => {
44550
+ let t = s ? [...p.current?.querySelectorAll("pre code.language-mermaid") ?? []] : [];
44551
44551
  if (t.length == 0) return;
44552
44552
  let n = !1;
44553
44553
  return (async () => {
@@ -44571,13 +44571,13 @@ var KE = /* @__PURE__ */ a(function({ dark: e, unstyled: t, text: n, className:
44571
44571
  n = !0;
44572
44572
  };
44573
44573
  }, [
44574
- l,
44574
+ s,
44575
44575
  e,
44576
44576
  n
44577
- ]), n ? /* @__PURE__ */ u("div", {
44577
+ ]), n ? /* @__PURE__ */ o("div", {
44578
44578
  ref: p,
44579
44579
  className: `${t ? "" : `open-flow-markdown-${e ? "dark" : "light"}`} ${i}`,
44580
- children: /* @__PURE__ */ u(wo, {
44580
+ children: /* @__PURE__ */ o(wo, {
44581
44581
  rehypePlugins: f,
44582
44582
  remarkPlugins: IE,
44583
44583
  components: a,
@@ -1,8 +1,15 @@
1
+ :root,
2
+ .open-flow-theme {
3
+ --ui-font-size: 13px;
4
+ }
5
+
1
6
  .open-flow-theme {
2
7
  color-scheme: light;
3
8
  --open-flow-background: #fafafa;
4
9
  --open-flow-foreground: #242424;
5
10
  --open-flow-card: #ffffff;
11
+ --open-flow-node-surface: #f6f6f6;
12
+ --open-flow-node-content: #ffffff;
6
13
  --open-flow-card-foreground: #242424;
7
14
  --open-flow-popover: #ffffff;
8
15
  --open-flow-popover-foreground: #242424;
@@ -45,6 +52,8 @@
45
52
  --open-flow-background: #1c1c1c;
46
53
  --open-flow-foreground: #eeeeee;
47
54
  --open-flow-card: #242424;
55
+ --open-flow-node-surface: #2b2b2b;
56
+ --open-flow-node-content: #242424;
48
57
  --open-flow-card-foreground: #eeeeee;
49
58
  --open-flow-popover: #2b2b2b;
50
59
  --open-flow-popover-foreground: #eeeeee;
@@ -169,6 +178,8 @@
169
178
  --accent-soft: #ededed;
170
179
  --accent-soft-hover: #e3e3e3;
171
180
  --accent-foreground: #333333;
181
+ --trigger-icon-color: var(--accent-orange-2);
182
+ --trigger-icon-fill: color-mix(in srgb, var(--trigger-icon-color) 16%, transparent);
172
183
  --canvas-grid: rgb(100 100 100 / 14%);
173
184
  --node-shadow: none;
174
185
  --node-selected-shadow: 0 0 0 2px rgb(70 70 70 / 12%), 0 2px 6px rgb(0 0 0 / 5%);
@@ -201,7 +212,7 @@
201
212
  --brand-highlight-color: #505050;
202
213
  --brand-hover-color: color-mix(in srgb, var(--brand-highlight-color) 20%, transparent);
203
214
 
204
- --node-background-color: var(--fill-1);
215
+ --node-background-color: var(--open-flow-node-content);
205
216
  --node-border-color: var(--border-1);
206
217
  --node-selected-border-color: var(--brand-highlight-color);
207
218
  --node-head-background-color: var(--fill-3);
@@ -313,6 +324,7 @@
313
324
  --pseudo-outline-color: var(--brand-3);
314
325
 
315
326
  --comment-bg: #f3eddc;
327
+ --comment-preview-bg: color-mix(in srgb, var(--comment-bg) 55%, var(--node-background-color));
316
328
  --comment-head-bg: #e8d7b3;
317
329
  --comment-border: #e3d8ba;
318
330
  --comment-selected-border: #a58b50;
@@ -341,6 +353,8 @@
341
353
  --accent-soft: #353535;
342
354
  --accent-soft-hover: #424242;
343
355
  --accent-foreground: #e0e0e0;
356
+ --trigger-icon-color: var(--warning);
357
+ --trigger-icon-fill: color-mix(in srgb, var(--trigger-icon-color) 24%, transparent);
344
358
  --canvas-grid: rgb(180 180 180 / 13%);
345
359
  --node-shadow: none;
346
360
  --node-selected-shadow: 0 0 0 2px rgb(190 190 190 / 16%), 0 2px 6px rgb(0 0 0 / 20%);
@@ -370,7 +384,7 @@
370
384
  --ui-ring: var(--open-flow-ring);
371
385
  --ui-radius: 6px;
372
386
 
373
- --node-background-color: var(--fill-1);
387
+ --node-background-color: var(--open-flow-node-content);
374
388
  --node-border-color: var(--border-1);
375
389
  --node-selected-border-color: var(--brand-highlight-color);
376
390
  --node-head-background-color: var(--fill-3);
@@ -481,10 +495,36 @@
481
495
 
482
496
  --pseudo-outline-color: var(--brand-7);
483
497
 
484
- --comment-bg: #343128;
485
- --comment-head-bg: #504837;
486
- --comment-border: #514a38;
498
+ --comment-bg: #403727;
499
+ --comment-preview-bg: #2b261d;
500
+ --comment-head-bg: #514532;
501
+ --comment-border: #5c4e36;
487
502
  --comment-selected-border: #bba165;
488
503
  --comment-hover-bg: color-mix(in srgb, var(--comment-head-bg) 89%, #ffffff);
489
504
  --comment-active-bg: color-mix(in srgb, var(--comment-head-bg) 90%, #000000);
490
505
  }
506
+
507
+ /* Native scroll regions share a quiet thumb and transparent track. */
508
+ :where(.open-flow-theme, .open-flow-theme *) {
509
+ scrollbar-width: thin;
510
+ scrollbar-color: light-dark(rgb(0 0 0 / 24%), rgb(255 255 255 / 28%)) transparent;
511
+ }
512
+
513
+ @supports not (scrollbar-width: thin) {
514
+ :where(.open-flow-theme, .open-flow-theme *)::-webkit-scrollbar {
515
+ width: 8px;
516
+ height: 8px;
517
+ }
518
+
519
+ :where(.open-flow-theme, .open-flow-theme *)::-webkit-scrollbar-track,
520
+ :where(.open-flow-theme, .open-flow-theme *)::-webkit-scrollbar-corner {
521
+ background: transparent;
522
+ }
523
+
524
+ :where(.open-flow-theme, .open-flow-theme *)::-webkit-scrollbar-thumb {
525
+ border: 2px solid transparent;
526
+ border-radius: 8px;
527
+ background: light-dark(rgb(0 0 0 / 24%), rgb(255 255 255 / 28%));
528
+ background-clip: padding-box;
529
+ }
530
+ }