@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,47 +1,47 @@
1
1
  import { i as e } from "./main-BDnNHhkU.js";
2
- import { c as t, q as n } from "./useValueChanged-BY05Usw-.js";
3
- import { An as r, Dn as i, E as a, On as o, S as s, T as c, b as l, jn as u, kn as d, l as f, t as p, tn as m, w as h, x as g } from "./workbenchSelect-DEmv7SLW.js";
4
- import { useEffect as _, useRef as v, useState as y } from "react";
5
- import { Fragment as b, jsx as x, jsxs as S } from "react/jsx-runtime";
2
+ import { Et as t, Ln as n } from "./lite-Cy6aeiL6.js";
3
+ import { a as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, p, r as m, s as h, t as g } from "./workbenchSelect-CPRUXKbf.js";
4
+ import { Fragment as _, jsx as v, jsxs as y } from "react/jsx-runtime";
5
+ import { useEffect as b, useRef as x, useState as S } from "react";
6
6
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
7
7
  function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameChange: k, onOpenChange: A, onSubmit: j, pending: M, title: N }) {
8
- let P = e(), F = v(null), I = v(null), [L, R] = y(!1), z = O.length > 0 && E != null, B = P(z ? `resource.nameIssue.${E}` : "resource.nameHint", { max: 80 }), V = `${T}-message`, H = `${T}-option`;
9
- return _(() => R(!0), []), /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("div", { ref: I }), /* @__PURE__ */ x(l, {
8
+ let P = e(), F = x(null), I = x(null), [L, R] = S(!1), z = O.length > 0 && E != null, B = P(z ? `resource.nameIssue.${E}` : "resource.nameHint", { max: 80 }), V = `${T}-message`, H = `${T}-option`;
9
+ return b(() => R(!0), []), /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v("div", { ref: I }), /* @__PURE__ */ v(m, {
10
10
  onOpenChange: R,
11
11
  onOpenChangeComplete: (e) => {
12
12
  e || A(!1);
13
13
  },
14
14
  open: L,
15
- children: /* @__PURE__ */ x(s, {
15
+ children: /* @__PURE__ */ v(r, {
16
16
  container: I.current,
17
17
  initialFocus: () => F.current,
18
18
  showCloseButton: !1,
19
- children: /* @__PURE__ */ S("form", {
19
+ children: /* @__PURE__ */ y("form", {
20
20
  className: "flex flex-col gap-4",
21
21
  onSubmit: j,
22
22
  children: [
23
- /* @__PURE__ */ S(c, {
23
+ /* @__PURE__ */ y(i, {
24
24
  className: "flex-row items-center justify-between",
25
- children: [/* @__PURE__ */ x(a, { children: N }), /* @__PURE__ */ x(g, {
25
+ children: [/* @__PURE__ */ v(u, { children: N }), /* @__PURE__ */ v(l, {
26
26
  "aria-label": P("common.cancel"),
27
- render: /* @__PURE__ */ x(n, {
27
+ render: /* @__PURE__ */ v(n, {
28
28
  size: "icon-sm",
29
29
  variant: "ghost"
30
30
  }),
31
31
  type: "button",
32
- children: /* @__PURE__ */ x(f, { name: "close" })
32
+ children: /* @__PURE__ */ v(f, { name: "close" })
33
33
  })]
34
34
  }),
35
- /* @__PURE__ */ S(r, {
35
+ /* @__PURE__ */ y(c, {
36
36
  className: "gap-4",
37
- children: [/* @__PURE__ */ S(i, {
37
+ children: [/* @__PURE__ */ y(o, {
38
38
  "data-invalid": z,
39
39
  children: [
40
- /* @__PURE__ */ x(u, {
40
+ /* @__PURE__ */ v(s, {
41
41
  htmlFor: T,
42
42
  children: D
43
43
  }),
44
- /* @__PURE__ */ x(t, {
44
+ /* @__PURE__ */ v(t, {
45
45
  autoComplete: "off",
46
46
  "aria-describedby": V,
47
47
  "aria-invalid": z,
@@ -52,17 +52,17 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
52
52
  required: !0,
53
53
  value: O
54
54
  }),
55
- x(z ? d : o, {
55
+ v(z ? d : p, {
56
56
  id: V,
57
57
  children: B
58
58
  })
59
59
  ]
60
- }), w != null && /* @__PURE__ */ S(i, { children: [
61
- /* @__PURE__ */ x(u, {
60
+ }), w != null && /* @__PURE__ */ y(o, { children: [
61
+ /* @__PURE__ */ v(s, {
62
62
  htmlFor: w.state == "ready" ? H : void 0,
63
63
  children: w.label
64
64
  }),
65
- w.state == "ready" ? /* @__PURE__ */ x(p, {
65
+ w.state == "ready" ? /* @__PURE__ */ v(g, {
66
66
  ariaLabel: w.ariaLabel,
67
67
  className: "w-full",
68
68
  id: H,
@@ -70,13 +70,13 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
70
70
  options: w.options,
71
71
  portalRoot: I.current,
72
72
  value: w.value
73
- }) : /* @__PURE__ */ S("div", {
73
+ }) : /* @__PURE__ */ y("div", {
74
74
  className: "flex min-h-9 items-center gap-2 rounded-lg border bg-muted/30 px-3 py-2 text-sm text-muted-foreground",
75
75
  role: w.state == "error" ? "alert" : "status",
76
76
  children: [
77
- w.state == "loading" && /* @__PURE__ */ x(m, { "aria-hidden": "true" }),
78
- /* @__PURE__ */ x("span", { children: w.status }),
79
- w.state == "error" && /* @__PURE__ */ x(n, {
77
+ w.state == "loading" && /* @__PURE__ */ v(a, { "aria-hidden": "true" }),
78
+ /* @__PURE__ */ v("span", { children: w.status }),
79
+ w.state == "error" && /* @__PURE__ */ v(n, {
80
80
  className: "ml-auto bg-background",
81
81
  onClick: w.onRetry,
82
82
  size: "sm",
@@ -86,16 +86,16 @@ function C({ disabled: C, field: w, id: T, issue: E, label: D, name: O, onNameCh
86
86
  })
87
87
  ]
88
88
  }),
89
- /* @__PURE__ */ x(o, { children: w.description })
89
+ /* @__PURE__ */ v(p, { children: w.description })
90
90
  ] })]
91
91
  }),
92
- /* @__PURE__ */ S(h, {
92
+ /* @__PURE__ */ y(h, {
93
93
  className: "mx-0 mb-0 border-0 bg-transparent p-0 pt-1",
94
- children: [/* @__PURE__ */ x(g, {
95
- render: /* @__PURE__ */ x(n, { variant: "outline" }),
94
+ children: [/* @__PURE__ */ v(l, {
95
+ render: /* @__PURE__ */ v(n, { variant: "outline" }),
96
96
  type: "button",
97
97
  children: P("common.cancel")
98
- }), /* @__PURE__ */ x(n, {
98
+ }), /* @__PURE__ */ v(n, {
99
99
  disabled: C || M || E != null,
100
100
  type: "submit",
101
101
  children: P(M ? "common.creating" : "common.create")
@@ -0,0 +1,30 @@
1
+ import type { ControlClient, EventSource } from '../common/control-api.js';
2
+ import type { UiLanguage } from '../common/localization.js';
3
+ interface Props {
4
+ readonly client: Pick<ControlClient, 'listEventSources' | 'createEventSource' | 'updateEventSource' | 'deleteEventSource' | 'listEventSourceConnections' | 'createConnectorConnectionPage'>;
5
+ readonly language: UiLanguage;
6
+ readonly teams: readonly {
7
+ readonly id: string;
8
+ readonly name: string;
9
+ }[];
10
+ }
11
+ export declare function EventSourcesPage(props: Props): import("react").JSX.Element;
12
+ export declare function SourceForm({ source, existingNames, fixedTeamId, onPendingChange, client, teams, onSaved, onCancel, }: Omit<Props, 'language'> & {
13
+ readonly source?: EventSource;
14
+ readonly existingNames?: readonly string[];
15
+ readonly onPendingChange?: (pending: boolean) => void;
16
+ readonly fixedTeamId?: string | null;
17
+ readonly onSaved: (source: EventSource) => void;
18
+ readonly onCancel: () => void;
19
+ }): import("react").JSX.Element;
20
+ export declare function SourceSelect({ label, value, options, disabled, onChange, }: {
21
+ readonly label: string;
22
+ readonly value: string;
23
+ readonly options: readonly {
24
+ readonly value: string;
25
+ readonly label: string;
26
+ }[];
27
+ readonly disabled: boolean;
28
+ readonly onChange: (value: string) => void;
29
+ }): import("react").JSX.Element;
30
+ export {};