@oomol-lab/open-flow 0.1.0-beta.1 → 0.1.0-beta.11

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 (69) hide show
  1. package/dist/browser/DesignerIcon-ckcKnxxJ.js +2267 -0
  2. package/dist/browser/createResourceDialog-DhIU-HYW.js +111 -0
  3. package/dist/browser/{dist-CPuF50D9.js → dist-BZ5PTFAs.js} +1 -1
  4. package/dist/browser/dist-Bmb2mZvW.js +795 -0
  5. package/dist/browser/{dist-DWADUsVB.js → dist-By46o5UV.js} +47 -47
  6. package/dist/browser/dist-CP0883sY.js +4 -0
  7. package/dist/browser/{dist-CJpzJrLM.js → dist-Ce71Szg7.js} +894 -895
  8. package/dist/browser/dist-DSe6KRsr.js +1224 -0
  9. package/dist/browser/{dist-DUzA0Ukh.js → dist-DY4qlXTK.js} +140 -141
  10. package/dist/browser/{dist-3Mj8q8Pr.js → dist-DmuE3M0R.js} +53 -54
  11. package/dist/browser/{dist-BN4ZCyOB.js → dist-DpDLsYtO.js} +14 -15
  12. package/dist/browser/dist-DxahK_I8.js +2688 -0
  13. package/dist/browser/{esm-DGQbgYoJ.js → esm-C64_h7HF.js} +58 -59
  14. package/dist/browser/flow-authoring-module.d.ts +2 -2
  15. package/dist/browser/flow-authoring-node.d.ts +17 -7
  16. package/dist/browser/flow-authoring.d.ts +1 -1
  17. package/dist/browser/flow-authoring.js +5329 -286
  18. package/dist/browser/flow-change-schema.d.ts +3 -0
  19. package/dist/browser/flow-change.d.ts +131 -14
  20. package/dist/browser/flow-change.js +5216 -114
  21. package/dist/browser/flow-notifications.d.ts +5 -0
  22. package/dist/browser/flowChanges-BINNGoug.js +12896 -0
  23. package/dist/browser/{flowRunInputEditorStore-BeyUSWpO.js → flowRunInputEditorStore-NPGePkvP.js} +775 -776
  24. package/dist/browser/flowWorkspace-Dp_b8KXF.js +158409 -0
  25. package/dist/browser/{getPseudoElementBounds-ESJExRFX.js → getPseudoElementBounds-Dfqo78k7.js} +2051 -2542
  26. package/dist/browser/{languages-DgJehE1g.js → languages-i3Xmpt6S.js} +6 -15
  27. package/dist/browser/licenses.md +82 -0
  28. package/dist/browser/{markdownContent-DdlIRN3_.js → markdownContent-BawLYUjh.js} +24 -24
  29. package/dist/browser/select-CbQHq-GM.js +6851 -0
  30. package/dist/browser/theme.css +34 -34
  31. package/dist/browser/{typeScriptSession-mPCiA9sV.js → typeScriptSession-BoV-FDl3.js} +68 -69
  32. package/dist/browser/waitNotificationInputs-fzyKN6mk.js +29 -0
  33. package/dist/browser/workbench-contract.d.ts +8 -2
  34. package/dist/browser/workbench.css +1 -1
  35. package/dist/browser/workbench.d.ts +3 -1
  36. package/dist/browser/workbench.js +1647 -1299
  37. package/dist/browser/workbenchSelect-BjbJjlNd.js +435 -0
  38. package/dist/common/control-api-conformance.d.ts +1 -0
  39. package/dist/common/control-api-conformance.js +309 -81
  40. package/dist/common/control-api-errors.d.ts +12 -0
  41. package/dist/common/control-api.d.ts +95 -23
  42. package/dist/common/control-api.js +567 -364
  43. package/dist/common/engine-contract.d.ts +1 -1
  44. package/dist/common/flow-encoding.js +33 -15
  45. package/dist/common/flow-graph.d.ts +6 -0
  46. package/dist/common/flow-modules.d.ts +20 -0
  47. package/dist/common/flow-notifications.d.ts +5 -0
  48. package/dist/common/flow-schema.d.ts +8 -0
  49. package/dist/common/flow-semantics.d.ts +7 -5
  50. package/dist/common/flow-semantics.js +8880 -1702
  51. package/dist/common/integration-trigger.d.ts +2 -0
  52. package/dist/common/provider-triggers.js +4 -1
  53. package/dist/common/run-events.d.ts +2 -2
  54. package/dist/common/run-events.js +10 -16
  55. package/dist/common/run-lifecycle.d.ts +17 -2
  56. package/dist/common/run-lifecycle.js +53 -2
  57. package/dist/common/runtime-contract.d.ts +10 -2
  58. package/dist/common/runtime-contract.js +143 -6
  59. package/dist/common/scheduler.d.ts +52 -13
  60. package/dist/common/scheduler.js +7315 -242
  61. package/dist/index.d.ts +6 -5
  62. package/package.json +1 -1
  63. package/dist/browser/createResourceDialog-DXQz0thK.js +0 -504
  64. package/dist/browser/diagnostics-BGoGFvHA.js +0 -9237
  65. package/dist/browser/dist-BMqL-qR5.js +0 -1894
  66. package/dist/browser/dist-BpopSHwP.js +0 -1543
  67. package/dist/browser/dist-CUSrALSX.js +0 -1620
  68. package/dist/browser/flowWorkspace-DwyxAOBH.js +0 -47615
  69. package/dist/browser/workbenchSelect-B2s1HV-Y.js +0 -1374
@@ -0,0 +1,435 @@
1
+ import { $ as e, B as t, Ct as n, H as r, I as i, In as a, K as o, Kn as s, L as c, Mt as l, On as u, P as d, Pt as f, Qn as p, Rt as m, Tt as h, U as g, Un as _, V as v, Vn as y, Zt as b, _ as x, dt as S, en as C, f as w, g as T, h as E, it as D, kn as ee, m as te, nt as ne, sr as O, tr as k, w as A, z as j } from "./getPseudoElementBounds-Dfqo78k7.js";
2
+ import { _ as M, i as N, n as P, o as F, r as re, s as ie, t as I } from "./select-CbQHq-GM.js";
3
+ import * as L from "react";
4
+ import { jsx as R, jsxs as z } from "react/jsx-runtime";
5
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRootContext.js
6
+ var B = /*#__PURE__*/ L.createContext(void 0);
7
+ process.env.NODE_ENV !== "production" && (B.displayName = "DialogRootContext");
8
+ function V(e) {
9
+ let t = L.useContext(B);
10
+ if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? k(27) : "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.");
11
+ return t;
12
+ }
13
+ //#endregion
14
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/backdrop/DialogBackdrop.js
15
+ var H = {
16
+ ...h,
17
+ ...C
18
+ }, U = /*#__PURE__*/ L.forwardRef(function(e, t) {
19
+ let { render: n, className: r, style: i, forceRender: a = !1, ...o } = e, { store: c } = V(), l = c.useState("open"), u = c.useState("nested"), d = c.useState("mounted"), f = {
20
+ open: l,
21
+ transitionStatus: c.useState("transitionStatus")
22
+ };
23
+ return s("div", e, {
24
+ state: f,
25
+ ref: [c.context.backdropRef, t],
26
+ stateAttributesMapping: H,
27
+ props: [{
28
+ role: "presentation",
29
+ hidden: !d,
30
+ style: {
31
+ userSelect: "none",
32
+ WebkitUserSelect: "none"
33
+ }
34
+ }, o],
35
+ enabled: a || !u
36
+ });
37
+ });
38
+ process.env.NODE_ENV !== "production" && (U.displayName = "DialogBackdrop");
39
+ //#endregion
40
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/close/DialogClose.js
41
+ var W = /*#__PURE__*/ L.forwardRef(function(e, t) {
42
+ let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...c } = e, { store: u } = V(), d = u.useState("open");
43
+ function m(e) {
44
+ d && u.setOpen(!1, l(f, e.nativeEvent));
45
+ }
46
+ let { getButtonProps: h, buttonRef: g } = p({
47
+ disabled: i,
48
+ native: a
49
+ });
50
+ return s("button", e, {
51
+ state: { disabled: i },
52
+ ref: [t, g],
53
+ props: [
54
+ { onClick: m },
55
+ c,
56
+ h
57
+ ]
58
+ });
59
+ });
60
+ process.env.NODE_ENV !== "production" && (W.displayName = "DialogClose");
61
+ //#endregion
62
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/description/DialogDescription.js
63
+ var G = /*#__PURE__*/ L.forwardRef(function(e, t) {
64
+ let { render: n, className: r, style: i, id: o, ...c } = e, { store: l } = V(), u = a(o);
65
+ return l.useSyncedValueWithCleanup("descriptionElementId", u), s("p", e, {
66
+ ref: t,
67
+ props: [{ id: u }, c]
68
+ });
69
+ });
70
+ process.env.NODE_ENV !== "production" && (G.displayName = "DialogDescription");
71
+ //#endregion
72
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
73
+ var K = /*#__PURE__*/ function(e) {
74
+ return e.nestedDialogs = "--nested-dialogs", e;
75
+ }({}), q = function(e) {
76
+ return e[e.open = n.open] = "open", e[e.closed = n.closed] = "closed", e[e.startingStyle = n.startingStyle] = "startingStyle", e[e.endingStyle = n.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
77
+ }({}), J = /*#__PURE__*/ L.createContext(void 0);
78
+ process.env.NODE_ENV !== "production" && (J.displayName = "DialogPortalContext");
79
+ function ae() {
80
+ let e = L.useContext(J);
81
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? k(26) : "Base UI: <Dialog.Portal> is missing.");
82
+ return e;
83
+ }
84
+ //#endregion
85
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopup.js
86
+ var oe = {
87
+ ...h,
88
+ ...C,
89
+ nestedDialogOpen(e) {
90
+ return e ? { [q.nestedDialogOpen]: "" } : null;
91
+ }
92
+ }, Y = /*#__PURE__*/ L.forwardRef(function(e, t) {
93
+ let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = e, { store: l } = V(), 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"), _ = l.useState("nestedOpenDialogCount"), v = l.useState("open"), y = l.useState("openMethod"), x = l.useState("titleElementId"), S = l.useState("transitionStatus"), C = l.useState("role");
94
+ ae(), b({
95
+ open: v,
96
+ ref: l.context.popupRef,
97
+ onComplete() {
98
+ v && l.context.onOpenChangeComplete?.(!0);
99
+ }
100
+ });
101
+ function w(e) {
102
+ return e !== "touch" || l.context.popupRef.current;
103
+ }
104
+ let T = i === void 0 ? w : i, E = s("div", e, {
105
+ state: {
106
+ open: v,
107
+ nested: g,
108
+ transitionStatus: S,
109
+ nestedDialogOpen: _ > 0
110
+ },
111
+ props: [
112
+ p,
113
+ {
114
+ "aria-labelledby": x ?? void 0,
115
+ "aria-describedby": u ?? void 0,
116
+ role: C,
117
+ tabIndex: -1,
118
+ hidden: !h,
119
+ onKeyDown(e) {
120
+ A.has(e.key) && e.stopPropagation();
121
+ },
122
+ style: { [K.nestedDialogs]: _ }
123
+ },
124
+ c
125
+ ],
126
+ ref: [
127
+ t,
128
+ l.context.popupRef,
129
+ l.useStateSetter("popupElement")
130
+ ],
131
+ stateAttributesMapping: oe
132
+ });
133
+ return /*#__PURE__*/ R(D, {
134
+ context: f,
135
+ openInteractionType: y,
136
+ disabled: !h,
137
+ closeOnFocusOut: !d,
138
+ initialFocus: T,
139
+ returnFocus: r,
140
+ modal: m !== !1,
141
+ restoreFocus: "popup",
142
+ children: E
143
+ });
144
+ });
145
+ process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPopup");
146
+ //#endregion
147
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
148
+ var X = /*#__PURE__*/ L.forwardRef(function(e, t) {
149
+ let { keepMounted: n = !1, ...r } = e, { store: i } = V(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
150
+ return a || n ? /*#__PURE__*/ R(J.Provider, {
151
+ value: n,
152
+ children: /*#__PURE__*/ z(S, {
153
+ ref: t,
154
+ ...r,
155
+ children: [a && o === !0 && /*#__PURE__*/ R(T, {
156
+ ref: i.context.internalBackdropRef,
157
+ inert: x(!s)
158
+ }), e.children]
159
+ })
160
+ }) : null;
161
+ });
162
+ process.env.NODE_ENV !== "production" && (X.displayName = "DialogPortal");
163
+ //#endregion
164
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/useDialogRoot.js
165
+ function se(e) {
166
+ let { store: t, parentContext: n, actionsRef: a, isDrawer: o } = e, s = t.useState("open"), f = t.useState("disablePointerDismissal"), p = t.useState("modal"), h = t.useState("popupElement"), { openMethod: _, triggerProps: v } = w(s);
167
+ r(t);
168
+ let { forceUnmount: y } = g(s, t), b = L.useCallback(() => {
169
+ t.setOpen(!1, l(m));
170
+ }, [t]);
171
+ L.useImperativeHandle(a, () => ({
172
+ unmount: y,
173
+ close: b
174
+ }), [y, b]);
175
+ let x = c({
176
+ popupStore: t,
177
+ onOpenChange: t.setOpen,
178
+ treatPopupAsFloatingElement: !0
179
+ }), [S, C] = L.useState(0), [T, E] = L.useState(0), D = S === 0, O = d(x), k = ne(x, {
180
+ outsidePressEvent() {
181
+ return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
182
+ mouse: p === "trap-focus" ? "sloppy" : "intentional",
183
+ touch: "sloppy"
184
+ };
185
+ },
186
+ outsidePress(e) {
187
+ if (!t.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
188
+ let n = ee(e);
189
+ if (D && !f) {
190
+ let e = n;
191
+ return p && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || u(e, h) && !e?.hasAttribute("data-base-ui-portal") : !0;
192
+ }
193
+ return !1;
194
+ },
195
+ escapeKey: D
196
+ });
197
+ te(s && p === !0, h);
198
+ let { getReferenceProps: A, getFloatingProps: j, getTriggerProps: M } = i([O, k]);
199
+ t.useContextCallback("onNestedDialogOpen", (e, t) => {
200
+ C(e), E(t);
201
+ }), t.useContextCallback("onNestedDialogClose", () => {
202
+ C(0), E(0);
203
+ }), L.useEffect(() => (n?.onNestedDialogOpen && s && n.onNestedDialogOpen(S + 1, T + +!!o), n?.onNestedDialogClose && !s && n.onNestedDialogClose(), () => {
204
+ n?.onNestedDialogClose && s && n.onNestedDialogClose();
205
+ }), [
206
+ o,
207
+ s,
208
+ S,
209
+ T,
210
+ n
211
+ ]);
212
+ let N = L.useMemo(() => A(v), [A, v]), P = L.useMemo(() => M(v), [M, v]), F = L.useMemo(() => j(), [j]);
213
+ t.useSyncedValues({
214
+ openMethod: _,
215
+ activeTriggerProps: N,
216
+ inactiveTriggerProps: P,
217
+ popupProps: F,
218
+ floatingRootContext: x,
219
+ nestedOpenDialogCount: S,
220
+ nestedOpenDrawerCount: T
221
+ });
222
+ }
223
+ //#endregion
224
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/store/DialogStore.js
225
+ var ce = {
226
+ ...t,
227
+ modal: e((e) => e.modal),
228
+ nested: e((e) => e.nested),
229
+ nestedOpenDialogCount: e((e) => e.nestedOpenDialogCount),
230
+ nestedOpenDrawerCount: e((e) => e.nestedOpenDrawerCount),
231
+ disablePointerDismissal: e((e) => e.disablePointerDismissal),
232
+ openMethod: e((e) => e.openMethod),
233
+ descriptionElementId: e((e) => e.descriptionElementId),
234
+ titleElementId: e((e) => e.titleElementId),
235
+ viewportElement: e((e) => e.viewportElement),
236
+ role: e((e) => e.role)
237
+ }, le = class e extends o {
238
+ constructor(e) {
239
+ super(ue(e), {
240
+ popupRef: /*#__PURE__*/ L.createRef(),
241
+ backdropRef: /*#__PURE__*/ L.createRef(),
242
+ internalBackdropRef: /*#__PURE__*/ L.createRef(),
243
+ outsidePressEnabledRef: { current: !0 },
244
+ triggerElements: new v(),
245
+ onOpenChange: void 0,
246
+ onOpenChangeComplete: void 0
247
+ }, ce);
248
+ }
249
+ setOpen = (e, t) => {
250
+ if (t.preventUnmountOnClose = () => {
251
+ this.set("preventUnmountingOnClose", !0);
252
+ }, !e && t.trigger == null && this.state.activeTriggerId != null && (t.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(e, t), t.isCanceled) return;
253
+ this.state.floatingRootContext.dispatchOpenChange(e, t);
254
+ let n = { open: e }, r = t.trigger?.id ?? null;
255
+ (r || e) && (n.activeTriggerId = r, n.activeTriggerElement = t.trigger ?? null), this.update(n);
256
+ };
257
+ static useStore(t, n) {
258
+ let r = O(() => new e(n)).current;
259
+ return t ?? r;
260
+ }
261
+ };
262
+ function ue(e = {}) {
263
+ return {
264
+ ...j(),
265
+ modal: !0,
266
+ disablePointerDismissal: !1,
267
+ popupElement: null,
268
+ viewportElement: null,
269
+ descriptionElementId: void 0,
270
+ titleElementId: void 0,
271
+ openMethod: null,
272
+ nested: !1,
273
+ nestedOpenDialogCount: 0,
274
+ nestedOpenDrawerCount: 0,
275
+ role: "dialog",
276
+ ...e
277
+ };
278
+ }
279
+ //#endregion
280
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
281
+ var Z = /*#__PURE__*/ L.createContext(!1);
282
+ process.env.NODE_ENV !== "production" && (Z.displayName = "IsDrawerContext");
283
+ function de(e) {
284
+ let { children: t, open: n, defaultOpen: r = !1, onOpenChange: i, onOpenChangeComplete: a, disablePointerDismissal: o = !1, modal: s = !0, actionsRef: c, handle: l, triggerId: u, defaultTriggerId: d = null } = e, f = V(!0), p = L.useContext(Z), m = !!f, h = le.useStore(l?.store, {
285
+ open: r,
286
+ openProp: n,
287
+ activeTriggerId: d,
288
+ triggerIdProp: u,
289
+ modal: s,
290
+ disablePointerDismissal: o,
291
+ nested: m
292
+ });
293
+ E(() => {
294
+ n === void 0 && h.state.open === !1 && r === !0 && h.update({
295
+ open: !0,
296
+ activeTriggerId: d
297
+ });
298
+ }), h.useControlledProp("openProp", n), h.useControlledProp("triggerIdProp", u), h.useSyncedValues({
299
+ disablePointerDismissal: o,
300
+ nested: m,
301
+ modal: s
302
+ }), h.useContextCallback("onOpenChange", i), h.useContextCallback("onOpenChangeComplete", a);
303
+ let g = h.useState("payload");
304
+ se({
305
+ store: h,
306
+ actionsRef: c,
307
+ parentContext: f?.store.context,
308
+ isDrawer: p,
309
+ onOpenChange: i,
310
+ triggerIdProp: u
311
+ });
312
+ let _ = L.useMemo(() => ({ store: h }), [h]);
313
+ return /*#__PURE__*/ R(Z.Provider, {
314
+ value: !1,
315
+ children: /*#__PURE__*/ R(B.Provider, {
316
+ value: _,
317
+ children: typeof t == "function" ? t({ payload: g }) : t
318
+ })
319
+ });
320
+ }
321
+ //#endregion
322
+ //#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/title/DialogTitle.js
323
+ var Q = /*#__PURE__*/ L.forwardRef(function(e, t) {
324
+ let { render: n, className: r, style: i, id: o, ...c } = e, { store: l } = V(), u = a(o);
325
+ return l.useSyncedValueWithCleanup("titleElementId", u), s("h2", e, {
326
+ ref: t,
327
+ props: [{ id: u }, c]
328
+ });
329
+ });
330
+ process.env.NODE_ENV !== "production" && (Q.displayName = "DialogTitle");
331
+ //#endregion
332
+ //#region src/ui/browser/dialog.tsx
333
+ function fe(e) {
334
+ return /* @__PURE__ */ R(de, {
335
+ "data-slot": "dialog",
336
+ ...e
337
+ });
338
+ }
339
+ function pe(e) {
340
+ return /* @__PURE__ */ R(X, {
341
+ "data-slot": "dialog-portal",
342
+ ...e
343
+ });
344
+ }
345
+ function me(e) {
346
+ return /* @__PURE__ */ R(W, {
347
+ "data-slot": "dialog-close",
348
+ ...e
349
+ });
350
+ }
351
+ function $({ className: e, ...t }) {
352
+ return /* @__PURE__ */ R(U, {
353
+ "data-slot": "dialog-overlay",
354
+ className: _("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),
355
+ ...t
356
+ });
357
+ }
358
+ function he({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
359
+ return /* @__PURE__ */ z(pe, {
360
+ container: r,
361
+ children: [/* @__PURE__ */ R($, {}), /* @__PURE__ */ z(Y, {
362
+ "data-slot": "dialog-content",
363
+ className: _("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),
364
+ ...a,
365
+ children: [e, i && /* @__PURE__ */ z(W, {
366
+ "data-slot": "dialog-close",
367
+ render: /* @__PURE__ */ R(y, {
368
+ className: "absolute top-2 right-2",
369
+ size: "icon-sm",
370
+ variant: "ghost"
371
+ }),
372
+ children: [/* @__PURE__ */ R(M, {}), /* @__PURE__ */ R("span", {
373
+ className: "sr-only",
374
+ children: n
375
+ })]
376
+ })]
377
+ })]
378
+ });
379
+ }
380
+ function ge({ className: e, ...t }) {
381
+ return /* @__PURE__ */ R("div", {
382
+ "data-slot": "dialog-header",
383
+ className: _("flex flex-col gap-2", e),
384
+ ...t
385
+ });
386
+ }
387
+ function _e({ className: e, ...t }) {
388
+ return /* @__PURE__ */ R("div", {
389
+ "data-slot": "dialog-footer",
390
+ className: _("-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t border-border bg-muted/50 p-4 sm:flex-row sm:justify-end", e),
391
+ ...t
392
+ });
393
+ }
394
+ function ve({ className: e, ...t }) {
395
+ return /* @__PURE__ */ R(Q, {
396
+ "data-slot": "dialog-title",
397
+ className: _("text-base leading-none font-medium", e),
398
+ ...t
399
+ });
400
+ }
401
+ function ye({ className: e, ...t }) {
402
+ return /* @__PURE__ */ R(G, {
403
+ "data-slot": "dialog-description",
404
+ className: _("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", e),
405
+ ...t
406
+ });
407
+ }
408
+ //#endregion
409
+ //#region src/workbench/browser/runtime/shell/workbenchSelect.tsx
410
+ function be({ ariaLabel: e, className: t, disabled: n = !1, id: r, onValueChange: i, options: a, portalRoot: o, value: s }) {
411
+ return /* @__PURE__ */ z(I, {
412
+ disabled: n,
413
+ onValueChange: (e) => {
414
+ e != null && i(e);
415
+ },
416
+ value: s,
417
+ children: [/* @__PURE__ */ R(F, {
418
+ "aria-label": e,
419
+ className: _("min-w-32", t),
420
+ id: r,
421
+ children: /* @__PURE__ */ R(ie, { children: a.find((e) => e.value == s)?.label ?? s })
422
+ }), /* @__PURE__ */ R(P, {
423
+ align: "end",
424
+ alignItemWithTrigger: !1,
425
+ container: o,
426
+ children: /* @__PURE__ */ R(re, { children: a.map((e) => /* @__PURE__ */ R(N, {
427
+ disabled: e.disabled,
428
+ value: e.value,
429
+ children: e.label
430
+ }, e.value)) })
431
+ })]
432
+ });
433
+ }
434
+ //#endregion
435
+ export { ye as a, ve as c, he as i, fe as n, _e as o, me as r, ge as s, be as t };
@@ -5,6 +5,7 @@ export interface ControlApiConformanceHarness {
5
5
  }
6
6
  export interface ControlApiConformanceCase {
7
7
  readonly name: string;
8
+ readonly runtime?: true;
8
9
  verify(harness: ControlApiConformanceHarness): Promise<void>;
9
10
  }
10
11
  export declare const controlApiConformanceCases: readonly ControlApiConformanceCase[];