@oomol-lab/open-flow 0.1.0-alpha.5 → 0.1.0-alpha.7

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 (40) hide show
  1. package/dist/browser/{addNodeOptions-B6tOfd2Y.js → addNodeOptions-DRndy4EK.js} +2237 -2599
  2. package/dist/browser/{createLucideIcon-BlEx4FzJ.js → createLucideIcon-CqjqCezK.js} +835 -869
  3. package/dist/browser/{createResourceDialog-CrBp3E8P.js → createResourceDialog-A64dDFCG.js} +140 -140
  4. package/dist/browser/{esm-CoE5_2w7.js → esm-YIGXG-Js.js} +1 -11
  5. package/dist/browser/{field-Daq9Lk-Y.js → field-CKGQHCIi.js} +88 -88
  6. package/dist/browser/{project-authoring-edge.d.ts → flow-authoring-edge.d.ts} +1 -1
  7. package/dist/browser/{project-authoring-module.d.ts → flow-authoring-module.d.ts} +1 -1
  8. package/dist/browser/{project-authoring-node.d.ts → flow-authoring-node.d.ts} +6 -12
  9. package/dist/browser/flow-authoring.d.ts +3 -0
  10. package/dist/browser/{project-authoring.js → flow-authoring.js} +72 -87
  11. package/dist/browser/{project-change.d.ts → flow-change.d.ts} +27 -36
  12. package/dist/browser/{project-change.js → flow-change.js} +69 -97
  13. package/dist/browser/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  14. package/dist/browser/{flowWorkspace-CylW6hge.js → flowWorkspace-D7-rBA1-.js} +17147 -12754
  15. package/dist/browser/licenses.md +514 -0
  16. package/dist/browser/workbench-contract.d.ts +4 -4
  17. package/dist/browser/workbench.css +1 -1
  18. package/dist/browser/workbench.d.ts +1 -1
  19. package/dist/browser/workbench.js +969 -1073
  20. package/dist/common/control-api-conformance.js +219 -352
  21. package/dist/common/control-api-errors.d.ts +16 -24
  22. package/dist/common/control-api.d.ts +39 -68
  23. package/dist/common/control-api.js +136 -189
  24. package/dist/common/cron-trigger.d.ts +1 -1
  25. package/dist/common/flow-encoding.d.ts +11 -0
  26. package/dist/common/{project-encoding.js → flow-encoding.js} +14 -13
  27. package/dist/common/{project-notifications.d.ts → flow-notifications.d.ts} +6 -3
  28. package/dist/common/{project-semantics.d.ts → flow-semantics.d.ts} +9 -12
  29. package/dist/common/{project-semantics.js → flow-semantics.js} +591 -592
  30. package/dist/common/integration-trigger.d.ts +1 -1
  31. package/dist/common/poll-trigger.d.ts +1 -1
  32. package/dist/common/runtime-contract.d.ts +1 -1
  33. package/dist/common/scheduler.d.ts +3 -2
  34. package/dist/common/scheduler.js +159 -154
  35. package/dist/common/webhook-trigger.d.ts +1 -1
  36. package/dist/common/webhook-trigger.js +1 -1
  37. package/package.json +13 -13
  38. package/dist/browser/project-authoring-flow.d.ts +0 -4
  39. package/dist/browser/project-authoring.d.ts +0 -4
  40. package/dist/common/project-encoding.d.ts +0 -11
@@ -1,10 +1,10 @@
1
- import { $n as e, A as t, D as n, Ft as r, Hr as i, Jn as a, Nn as o, Nt as s, O as c, Pn as l, R as u, S as d, T as f, Y as p, _ as m, _t as h, b as g, c as _, ct as v, er as y, fr as b, it as x, j as S, lr as C, lt as w, nt as T, pt as E, rr as D, st as O, t as k, v as A, vr as j, y as M } from "./createLucideIcon-BlEx4FzJ.js";
2
- import { a as N, c as P, d as ee, i as te, l as ne, n as F, o as I, r as L, s as re, t as ie, u as ae } from "./field-Daq9Lk-Y.js";
1
+ import { A as e, At as t, Bn as n, D as r, Gn as i, Jn as a, O as o, On as s, Ot as c, Pr as l, R as u, S as d, T as f, Wn as p, Y as m, _ as h, b as g, c as _, ct as v, dt as y, er as b, ht as x, it as S, j as C, kn as w, lr as T, lt as E, nt as D, rr as O, st as k, t as A, v as j, y as M } from "./createLucideIcon-CqjqCezK.js";
2
+ import { a as N, c as P, d as ee, i as te, l as ne, n as F, o as I, r as L, s as re, t as ie, u as ae } from "./field-CKGQHCIi.js";
3
3
  import * as R from "react";
4
4
  import { useEffect as oe, useRef as z, useState as se } from "react";
5
5
  import { Fragment as ce, jsx as B, jsxs as V } from "react/jsx-runtime";
6
6
  //#region ../../node_modules/.bun/lucide-react@0.468.0+f4eacebf2041cd4f/node_modules/lucide-react/dist/esm/icons/x.js
7
- var H = k("X", [["path", {
7
+ var H = A("X", [["path", {
8
8
  d: "M18 6 6 18",
9
9
  key: "1bl5f8"
10
10
  }], ["path", {
@@ -14,53 +14,53 @@ var H = k("X", [["path", {
14
14
  process.env.NODE_ENV !== "production" && (U.displayName = "DialogRootContext");
15
15
  function W(e) {
16
16
  let t = R.useContext(U);
17
- if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? b(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
17
+ if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? O(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
18
18
  return t;
19
19
  }
20
20
  //#endregion
21
21
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
22
22
  var le = {
23
23
  ...d,
24
- ...r
24
+ ...t
25
25
  }, G = /*#__PURE__*/ R.forwardRef(function(e, t) {
26
- let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: s } = W(), c = s.useState("open"), l = s.useState("nested"), u = s.useState("mounted"), d = {
27
- open: c,
28
- transitionStatus: s.useState("transitionStatus")
26
+ let { render: n, className: r, style: i, forceRender: o = !1, ...s } = e, { store: c } = W(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
27
+ open: l,
28
+ transitionStatus: c.useState("transitionStatus")
29
29
  };
30
- return D("div", e, {
31
- state: d,
32
- ref: [s.context.backdropRef, t],
30
+ return a("div", e, {
31
+ state: f,
32
+ ref: [c.context.backdropRef, t],
33
33
  stateAttributesMapping: le,
34
34
  props: [{
35
35
  role: "presentation",
36
- hidden: !u,
36
+ hidden: !d,
37
37
  style: {
38
38
  userSelect: "none",
39
39
  WebkitUserSelect: "none"
40
40
  }
41
- }, o],
42
- enabled: a || !l
41
+ }, s],
42
+ enabled: o || !u
43
43
  });
44
44
  });
45
45
  process.env.NODE_ENV !== "production" && (G.displayName = "DialogBackdrop");
46
46
  //#endregion
47
47
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
48
48
  var K = /*#__PURE__*/ R.forwardRef(function(e, t) {
49
- let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { store: c } = W(), l = c.useState("open");
50
- function u(e) {
51
- l && c.setOpen(!1, w(E, e.nativeEvent));
49
+ let { render: n, className: r, disabled: i = !1, nativeButton: o = !0, style: s, ...c } = e, { store: l } = W(), u = l.useState("open");
50
+ function d(e) {
51
+ u && l.setOpen(!1, E(y, e.nativeEvent));
52
52
  }
53
- let { getButtonProps: d, buttonRef: f } = C({
53
+ let { getButtonProps: f, buttonRef: p } = b({
54
54
  disabled: i,
55
- native: a
55
+ native: o
56
56
  });
57
- return D("button", e, {
57
+ return a("button", e, {
58
58
  state: { disabled: i },
59
- ref: [t, f],
59
+ ref: [t, p],
60
60
  props: [
61
- { onClick: u },
62
- s,
63
- d
61
+ { onClick: d },
62
+ c,
63
+ f
64
64
  ]
65
65
  });
66
66
  });
@@ -75,66 +75,66 @@ var ue = /*#__PURE__*/ function(e) {
75
75
  process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
76
76
  function fe() {
77
77
  let e = R.useContext(q);
78
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? b(26) : "Base UI: <Dialog.Portal> is missing.");
78
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? O(26) : "Base UI: <Dialog.Portal> is missing.");
79
79
  return e;
80
80
  }
81
81
  //#endregion
82
82
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
83
83
  var pe = {
84
84
  ...d,
85
- ...r,
85
+ ...t,
86
86
  nestedDialogOpen(e) {
87
87
  return e ? { [de.nestedDialogOpen]: "" } : null;
88
88
  }
89
89
  }, J = /*#__PURE__*/ R.forwardRef(function(e, t) {
90
- let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = e, { store: l } = W(), u = l.useState("descriptionElementId"), d = l.useState("disablePointerDismissal"), f = l.useState("floatingRootContext"), p = l.useState("popupProps"), m = l.useState("modal"), h = l.useState("mounted"), g = l.useState("nested"), v = l.useState("nestedOpenDialogCount"), y = l.useState("open"), b = l.useState("openMethod"), x = l.useState("titleElementId"), C = l.useState("transitionStatus"), w = l.useState("role");
91
- fe(), s({
92
- open: y,
93
- ref: l.context.popupRef,
90
+ let { className: n, finalFocus: r, initialFocus: i, render: o, style: s, ...l } = e, { store: u } = W(), d = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), p = u.useState("floatingRootContext"), m = u.useState("popupProps"), h = u.useState("modal"), g = u.useState("mounted"), v = u.useState("nested"), y = u.useState("nestedOpenDialogCount"), b = u.useState("open"), x = u.useState("openMethod"), S = u.useState("titleElementId"), w = u.useState("transitionStatus"), T = u.useState("role");
91
+ fe(), c({
92
+ open: b,
93
+ ref: u.context.popupRef,
94
94
  onComplete() {
95
- y && l.context.onOpenChangeComplete?.(!0);
95
+ b && u.context.onOpenChangeComplete?.(!0);
96
96
  }
97
97
  });
98
- function T(e) {
99
- return e !== "touch" || l.context.popupRef.current;
98
+ function E(e) {
99
+ return e !== "touch" || u.context.popupRef.current;
100
100
  }
101
- let E = i === void 0 ? T : i, O = D("div", e, {
101
+ let D = i === void 0 ? E : i, O = a("div", e, {
102
102
  state: {
103
- open: y,
104
- nested: g,
105
- transitionStatus: C,
106
- nestedDialogOpen: v > 0
103
+ open: b,
104
+ nested: v,
105
+ transitionStatus: w,
106
+ nestedDialogOpen: y > 0
107
107
  },
108
108
  props: [
109
- p,
109
+ m,
110
110
  {
111
- "aria-labelledby": x ?? void 0,
112
- "aria-describedby": u ?? void 0,
113
- role: w,
111
+ "aria-labelledby": S ?? void 0,
112
+ "aria-describedby": d ?? void 0,
113
+ role: T,
114
114
  tabIndex: -1,
115
- hidden: !h,
115
+ hidden: !g,
116
116
  onKeyDown(e) {
117
117
  _.has(e.key) && e.stopPropagation();
118
118
  },
119
- style: { [ue.nestedDialogs]: v }
119
+ style: { [ue.nestedDialogs]: y }
120
120
  },
121
- c
121
+ l
122
122
  ],
123
123
  ref: [
124
124
  t,
125
- l.context.popupRef,
126
- l.useStateSetter("popupElement")
125
+ u.context.popupRef,
126
+ u.useStateSetter("popupElement")
127
127
  ],
128
128
  stateAttributesMapping: pe
129
129
  });
130
- return /*#__PURE__*/ B(S, {
131
- context: f,
132
- openInteractionType: b,
133
- disabled: !h,
134
- closeOnFocusOut: !d,
135
- initialFocus: E,
130
+ return /*#__PURE__*/ B(C, {
131
+ context: p,
132
+ openInteractionType: x,
133
+ disabled: !g,
134
+ closeOnFocusOut: !f,
135
+ initialFocus: D,
136
136
  returnFocus: r,
137
- modal: m !== !1,
137
+ modal: h !== !1,
138
138
  restoreFocus: "popup",
139
139
  children: O
140
140
  });
@@ -149,7 +149,7 @@ var Y = /*#__PURE__*/ R.forwardRef(function(e, t) {
149
149
  children: /*#__PURE__*/ V(u, {
150
150
  ref: t,
151
151
  ...r,
152
- children: [a && o === !0 && /*#__PURE__*/ B(A, {
152
+ children: [a && o === !0 && /*#__PURE__*/ B(j, {
153
153
  ref: i.context.internalBackdropRef,
154
154
  inert: M(!s)
155
155
  }), e.children]
@@ -159,86 +159,86 @@ var Y = /*#__PURE__*/ R.forwardRef(function(e, t) {
159
159
  process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPortal");
160
160
  //#endregion
161
161
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
162
- function me(e) {
163
- let { store: r, parentContext: i, actionsRef: a, isDrawer: s } = e, c = r.useState("open"), u = r.useState("disablePointerDismissal"), d = r.useState("modal"), p = r.useState("popupElement"), { openMethod: g, triggerProps: _ } = f(c);
164
- ae(r);
165
- let { forceUnmount: v } = ee(c, r), y = R.useCallback(() => {
166
- r.setOpen(!1, w(h));
167
- }, [r]);
162
+ function me(t) {
163
+ let { store: n, parentContext: i, actionsRef: a, isDrawer: o } = t, c = n.useState("open"), l = n.useState("disablePointerDismissal"), u = n.useState("modal"), d = n.useState("popupElement"), { openMethod: p, triggerProps: m } = f(c);
164
+ ae(n);
165
+ let { forceUnmount: g } = ee(c, n), _ = R.useCallback(() => {
166
+ n.setOpen(!1, E(x));
167
+ }, [n]);
168
168
  R.useImperativeHandle(a, () => ({
169
- unmount: v,
170
- close: y
171
- }), [v, y]);
172
- let b = re({
173
- popupStore: r,
174
- onOpenChange: r.setOpen,
169
+ unmount: g,
170
+ close: _
171
+ }), [g, _]);
172
+ let v = re({
173
+ popupStore: n,
174
+ onOpenChange: n.setOpen,
175
175
  treatPopupAsFloatingElement: !0
176
- }), [x, S] = R.useState(0), [C, T] = R.useState(0), E = x === 0, D = I(b), O = t(b, {
176
+ }), [y, b] = R.useState(0), [S, C] = R.useState(0), T = y === 0, D = I(v), O = e(v, {
177
177
  outsidePressEvent() {
178
- return r.context.internalBackdropRef.current || r.context.backdropRef.current ? "intentional" : {
179
- mouse: d === "trap-focus" ? "sloppy" : "intentional",
178
+ return n.context.internalBackdropRef.current || n.context.backdropRef.current ? "intentional" : {
179
+ mouse: u === "trap-focus" ? "sloppy" : "intentional",
180
180
  touch: "sloppy"
181
181
  };
182
182
  },
183
183
  outsidePress(e) {
184
- if (!r.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
185
- let t = l(e);
186
- if (E && !u) {
184
+ if (!n.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
185
+ let t = w(e);
186
+ if (T && !l) {
187
187
  let e = t;
188
- return d && (r.context.internalBackdropRef.current || r.context.backdropRef.current) ? r.context.internalBackdropRef.current === e || r.context.backdropRef.current === e || o(e, p) && !e?.hasAttribute("data-base-ui-portal") : !0;
188
+ return u && (n.context.internalBackdropRef.current || n.context.backdropRef.current) ? n.context.internalBackdropRef.current === e || n.context.backdropRef.current === e || s(e, d) && !e?.hasAttribute("data-base-ui-portal") : !0;
189
189
  }
190
190
  return !1;
191
191
  },
192
- escapeKey: E
192
+ escapeKey: T
193
193
  });
194
- m(c && d === !0, p);
195
- let { getReferenceProps: k, getFloatingProps: A, getTriggerProps: j } = n([D, O]);
196
- r.useContextCallback("onNestedDialogOpen", (e, t) => {
197
- S(e), T(t);
198
- }), r.useContextCallback("onNestedDialogClose", () => {
199
- S(0), T(0);
200
- }), R.useEffect(() => (i?.onNestedDialogOpen && c && i.onNestedDialogOpen(x + 1, C + +!!s), i?.onNestedDialogClose && !c && i.onNestedDialogClose(), () => {
194
+ h(c && u === !0, d);
195
+ let { getReferenceProps: k, getFloatingProps: A, getTriggerProps: j } = r([D, O]);
196
+ n.useContextCallback("onNestedDialogOpen", (e, t) => {
197
+ b(e), C(t);
198
+ }), n.useContextCallback("onNestedDialogClose", () => {
199
+ b(0), C(0);
200
+ }), R.useEffect(() => (i?.onNestedDialogOpen && c && i.onNestedDialogOpen(y + 1, S + +!!o), i?.onNestedDialogClose && !c && i.onNestedDialogClose(), () => {
201
201
  i?.onNestedDialogClose && c && i.onNestedDialogClose();
202
202
  }), [
203
- s,
203
+ o,
204
204
  c,
205
- x,
206
- C,
205
+ y,
206
+ S,
207
207
  i
208
208
  ]);
209
- let M = R.useMemo(() => k(_), [k, _]), N = R.useMemo(() => j(_), [j, _]), P = R.useMemo(() => A(), [A]);
210
- r.useSyncedValues({
211
- openMethod: g,
209
+ let M = R.useMemo(() => k(m), [k, m]), N = R.useMemo(() => j(m), [j, m]), P = R.useMemo(() => A(), [A]);
210
+ n.useSyncedValues({
211
+ openMethod: p,
212
212
  activeTriggerProps: M,
213
213
  inactiveTriggerProps: N,
214
214
  popupProps: P,
215
- floatingRootContext: b,
216
- nestedOpenDialogCount: x,
217
- nestedOpenDrawerCount: C
215
+ floatingRootContext: v,
216
+ nestedOpenDialogCount: y,
217
+ nestedOpenDrawerCount: S
218
218
  });
219
219
  }
220
220
  //#endregion
221
221
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
222
222
  var he = {
223
223
  ...ne,
224
- modal: T((e) => e.modal),
225
- nested: T((e) => e.nested),
226
- nestedOpenDialogCount: T((e) => e.nestedOpenDialogCount),
227
- nestedOpenDrawerCount: T((e) => e.nestedOpenDrawerCount),
228
- disablePointerDismissal: T((e) => e.disablePointerDismissal),
229
- openMethod: T((e) => e.openMethod),
230
- descriptionElementId: T((e) => e.descriptionElementId),
231
- titleElementId: T((e) => e.titleElementId),
232
- viewportElement: T((e) => e.viewportElement),
233
- role: T((e) => e.role)
234
- }, ge = class e extends p {
224
+ modal: D((e) => e.modal),
225
+ nested: D((e) => e.nested),
226
+ nestedOpenDialogCount: D((e) => e.nestedOpenDialogCount),
227
+ nestedOpenDrawerCount: D((e) => e.nestedOpenDrawerCount),
228
+ disablePointerDismissal: D((e) => e.disablePointerDismissal),
229
+ openMethod: D((e) => e.openMethod),
230
+ descriptionElementId: D((e) => e.descriptionElementId),
231
+ titleElementId: D((e) => e.titleElementId),
232
+ viewportElement: D((e) => e.viewportElement),
233
+ role: D((e) => e.role)
234
+ }, ge = class e extends m {
235
235
  constructor(e) {
236
236
  super(_e(e), {
237
237
  popupRef: /*#__PURE__*/ R.createRef(),
238
238
  backdropRef: /*#__PURE__*/ R.createRef(),
239
239
  internalBackdropRef: /*#__PURE__*/ R.createRef(),
240
240
  outsidePressEnabledRef: { current: !0 },
241
- triggerElements: new c(),
241
+ triggerElements: new o(),
242
242
  onOpenChange: void 0,
243
243
  onOpenChangeComplete: void 0
244
244
  }, he);
@@ -252,7 +252,7 @@ var he = {
252
252
  (r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
253
253
  };
254
254
  static useStore(t, n) {
255
- let r = j(() => new e(n)).current;
255
+ let r = T(() => new e(n)).current;
256
256
  return t ?? r;
257
257
  }
258
258
  };
@@ -287,7 +287,7 @@ function ve(e) {
287
287
  disablePointerDismissal: o,
288
288
  nested: m
289
289
  });
290
- x(() => {
290
+ S(() => {
291
291
  n === void 0 && h.state.open === !1 && r === !0 && h.update({
292
292
  open: !0,
293
293
  activeTriggerId: d
@@ -318,10 +318,10 @@ function ve(e) {
318
318
  //#endregion
319
319
  //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
320
320
  var Z = /*#__PURE__*/ R.forwardRef(function(e, t) {
321
- let { render: n, className: r, style: i, id: o, ...s } = e, { store: c } = W(), l = a(o);
322
- return c.useSyncedValueWithCleanup("titleElementId", l), D("h2", e, {
321
+ let { render: r, className: i, style: o, id: s, ...c } = e, { store: l } = W(), u = n(s);
322
+ return l.useSyncedValueWithCleanup("titleElementId", u), a("h2", e, {
323
323
  ref: t,
324
- props: [{ id: l }, s]
324
+ props: [{ id: u }, c]
325
325
  });
326
326
  });
327
327
  process.env.NODE_ENV !== "production" && (Z.displayName = "DialogTitle");
@@ -348,27 +348,27 @@ function Q(e) {
348
348
  function xe({ className: e, ...t }) {
349
349
  return /* @__PURE__ */ B(G, {
350
350
  "data-slot": "dialog-overlay",
351
- className: y("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
351
+ className: i("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 motion-reduce:animate-none motion-reduce:transition-none", e),
352
352
  ...t
353
353
  });
354
354
  }
355
- function Se({ children: t, className: n, closeLabel: r = "Close", container: i, showCloseButton: a = !0, ...o }) {
355
+ function Se({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: a = !0, ...o }) {
356
356
  return /* @__PURE__ */ V(be, {
357
- container: i,
357
+ container: r,
358
358
  children: [/* @__PURE__ */ B(xe, {}), /* @__PURE__ */ V(J, {
359
359
  "data-slot": "dialog-content",
360
- className: y("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", n),
360
+ className: i("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground shadow-lg ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 motion-reduce:animate-none motion-reduce:transition-none", t),
361
361
  ...o,
362
- children: [t, a && /* @__PURE__ */ V(K, {
362
+ children: [e, a && /* @__PURE__ */ V(K, {
363
363
  "data-slot": "dialog-close",
364
- render: /* @__PURE__ */ B(e, {
364
+ render: /* @__PURE__ */ B(p, {
365
365
  className: "absolute top-2 right-2",
366
366
  size: "icon-sm",
367
367
  variant: "ghost"
368
368
  }),
369
369
  children: [/* @__PURE__ */ B(H, {}), /* @__PURE__ */ B("span", {
370
370
  className: "sr-only",
371
- children: r
371
+ children: n
372
372
  })]
373
373
  })]
374
374
  })]
@@ -377,71 +377,71 @@ function Se({ children: t, className: n, closeLabel: r = "Close", container: i,
377
377
  function Ce({ className: e, ...t }) {
378
378
  return /* @__PURE__ */ B("div", {
379
379
  "data-slot": "dialog-header",
380
- className: y("flex flex-col gap-2", e),
380
+ className: i("flex flex-col gap-2", e),
381
381
  ...t
382
382
  });
383
383
  }
384
384
  function $({ className: e, ...t }) {
385
385
  return /* @__PURE__ */ B("div", {
386
386
  "data-slot": "dialog-footer",
387
- className: y("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
387
+ className: i("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
388
388
  ...t
389
389
  });
390
390
  }
391
391
  function we({ className: e, ...t }) {
392
392
  return /* @__PURE__ */ B(Z, {
393
393
  "data-slot": "dialog-title",
394
- className: y("text-base leading-none font-medium", e),
394
+ className: i("text-base leading-none font-medium", e),
395
395
  ...t
396
396
  });
397
397
  }
398
398
  //#endregion
399
399
  //#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
400
- function Te({ id: t, issue: n, label: r, name: a, onNameChange: o, onOpenChange: s, onSubmit: c, pending: l, title: u }) {
401
- let d = i(), f = z(null), p = z(null), [m, h] = se(!1), g = a.length > 0 && n != null, _ = d(g ? `resource.nameIssue.${n}` : "resource.nameHint", { max: 80 }), y = `${t}-message`;
402
- return oe(() => h(!0), []), /* @__PURE__ */ V(ce, { children: [/* @__PURE__ */ B("div", { ref: p }), /* @__PURE__ */ B(ye, {
400
+ function Te({ id: e, issue: t, label: n, name: r, onNameChange: i, onOpenChange: a, onSubmit: o, pending: s, title: c }) {
401
+ let u = l(), d = z(null), f = z(null), [m, h] = se(!1), g = r.length > 0 && t != null, _ = u(g ? `resource.nameIssue.${t}` : "resource.nameHint", { max: 80 }), y = `${e}-message`;
402
+ return oe(() => h(!0), []), /* @__PURE__ */ V(ce, { children: [/* @__PURE__ */ B("div", { ref: f }), /* @__PURE__ */ B(ye, {
403
403
  onOpenChange: h,
404
404
  onOpenChangeComplete: (e) => {
405
- e || s(!1);
405
+ e || a(!1);
406
406
  },
407
407
  open: m,
408
408
  children: /* @__PURE__ */ B(Se, {
409
- container: p.current,
410
- initialFocus: () => f.current,
409
+ container: f.current,
410
+ initialFocus: () => d.current,
411
411
  showCloseButton: !1,
412
412
  children: /* @__PURE__ */ V("form", {
413
413
  className: "flex flex-col gap-4",
414
- onSubmit: c,
414
+ onSubmit: o,
415
415
  children: [
416
416
  /* @__PURE__ */ V(Ce, {
417
417
  className: "flex-row items-center justify-between",
418
- children: [/* @__PURE__ */ B(we, { children: u }), /* @__PURE__ */ B(Q, {
419
- "aria-label": d("common.cancel"),
420
- render: /* @__PURE__ */ B(e, {
418
+ children: [/* @__PURE__ */ B(we, { children: c }), /* @__PURE__ */ B(Q, {
419
+ "aria-label": u("common.cancel"),
420
+ render: /* @__PURE__ */ B(p, {
421
421
  size: "icon-sm",
422
422
  variant: "ghost"
423
423
  }),
424
424
  type: "button",
425
- children: /* @__PURE__ */ B(O, { name: "close" })
425
+ children: /* @__PURE__ */ B(k, { name: "close" })
426
426
  })]
427
427
  }),
428
428
  /* @__PURE__ */ B(te, { children: /* @__PURE__ */ V(ie, {
429
429
  "data-invalid": g,
430
430
  children: [
431
431
  /* @__PURE__ */ B(N, {
432
- htmlFor: t,
433
- children: r
432
+ htmlFor: e,
433
+ children: n
434
434
  }),
435
435
  /* @__PURE__ */ B(v, {
436
436
  autoComplete: "off",
437
437
  "aria-describedby": y,
438
438
  "aria-invalid": g,
439
- id: t,
439
+ id: e,
440
440
  name: "resource-name",
441
- onChange: (e) => o(e.target.value),
442
- ref: f,
441
+ onChange: (e) => i(e.target.value),
442
+ ref: d,
443
443
  required: !0,
444
- value: a
444
+ value: r
445
445
  }),
446
446
  B(g ? L : F, {
447
447
  id: y,
@@ -450,13 +450,13 @@ function Te({ id: t, issue: n, label: r, name: a, onNameChange: o, onOpenChange:
450
450
  ]
451
451
  }) }),
452
452
  /* @__PURE__ */ V($, { children: [/* @__PURE__ */ B(Q, {
453
- render: /* @__PURE__ */ B(e, { variant: "outline" }),
453
+ render: /* @__PURE__ */ B(p, { variant: "outline" }),
454
454
  type: "button",
455
- children: d("common.cancel")
456
- }), /* @__PURE__ */ B(e, {
457
- disabled: l || n != null,
455
+ children: u("common.cancel")
456
+ }), /* @__PURE__ */ B(p, {
457
+ disabled: s || t != null,
458
458
  type: "submit",
459
- children: d(l ? "common.creating" : "common.create")
459
+ children: u(s ? "common.creating" : "common.create")
460
460
  })] })
461
461
  ]
462
462
  })
@@ -1,17 +1,7 @@
1
1
  import { o as e } from "./dist-CVtP-E2c.js";
2
2
  import { r as t } from "./dist-n9WmBm5w.js";
3
3
  import { A as n, t as r } from "./dist-CUkceEvN.js";
4
- //#region ../../node_modules/.bun/@babel+runtime@7.29.7/node_modules/@babel/runtime/helpers/esm/extends.js
5
- function i() {
6
- return i = Object.assign ? Object.assign.bind() : function(e) {
7
- for (var t = 1; t < arguments.length; t++) {
8
- var n = arguments[t];
9
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
10
- }
11
- return e;
12
- }, i.apply(null, arguments);
13
- }
14
- //#endregion
4
+ import { n as i } from "./flowWorkspace-D7-rBA1-.js";
15
5
  //#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
16
6
  var a = (e) => {
17
7
  var i = e.theme, a = e.settings, o = a === void 0 ? {} : a, s = e.styles, c = s === void 0 ? [] : s, l = { ".cm-gutters": {} }, u = {};