@oomol-lab/open-flow 0.1.0-alpha.13 → 0.1.0-alpha.15
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-CWD62rU0.js → createResourceDialog-DjNiIu_v.js} +169 -169
- package/dist/browser/{esm-C04lx1pd.js → esm-DNDXFYy8.js} +1 -1
- package/dist/browser/flow-authoring.js +103 -185
- package/dist/browser/{addNodeOptions-JRHMwVOl.js → flowChanges-B-JaKseF.js} +2697 -1725
- package/dist/browser/{flowWorkspace-_qaqIyDi.js → flowWorkspace-nnM1b6Wz.js} +10501 -10485
- package/dist/browser/{typeScriptSession-D5neIpug.js → typeScriptSession-mPCiA9sV.js} +241 -222
- package/dist/browser/{useOpenInteractionType-CRgOHg5M.js → useOpenInteractionType-BmBaSEl4.js} +1255 -1028
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +1 -0
- package/dist/browser/workbench.js +1086 -2034
- package/package.json +1 -1
- package/dist/browser/change-BATEvjif.js +0 -229
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { a as e } from "./main-DmjVyuWr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { B as t, Bn as n, C as r, D as i, E as a, Et as o, H as s, Ht as c, N as l, O as u, Or as d, Qn as f, S as p, Sr as m, St as h, T as g, V as _, Vn as v, Y as y, a as b, ar as x, bt as S, cr as C, dt as w, i as T, ir as E, k as ee, lt as D, mt as O, nr as k, o as A, or as j, p as M, pr as N, r as P, rr as F, t as te, ur as I, vt as ne, w as re, yr as L, yt as R, zt as ie } from "./useOpenInteractionType-BmBaSEl4.js";
|
|
3
3
|
import * as z from "react";
|
|
4
4
|
import { useEffect as ae, useRef as B, useState as oe } from "react";
|
|
5
5
|
import { Fragment as se, jsx as V, jsxs as H } 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 ce =
|
|
7
|
+
var ce = ne("X", [["path", {
|
|
8
8
|
d: "M18 6 6 18",
|
|
9
9
|
key: "1bl5f8"
|
|
10
10
|
}], ["path", {
|
|
@@ -14,20 +14,20 @@ var ce = E("X", [["path", {
|
|
|
14
14
|
process.env.NODE_ENV !== "production" && (U.displayName = "DialogRootContext");
|
|
15
15
|
function W(e) {
|
|
16
16
|
let t = z.useContext(U);
|
|
17
|
-
if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
17
|
+
if (e === !1 && t === void 0) throw Error(process.env.NODE_ENV === "production" ? m(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
|
-
...
|
|
24
|
-
...
|
|
23
|
+
...w,
|
|
24
|
+
...c
|
|
25
25
|
}, G = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
26
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
27
|
open: c,
|
|
28
28
|
transitionStatus: s.useState("transitionStatus")
|
|
29
29
|
};
|
|
30
|
-
return
|
|
30
|
+
return N("div", e, {
|
|
31
31
|
state: d,
|
|
32
32
|
ref: [s.context.backdropRef, t],
|
|
33
33
|
stateAttributesMapping: le,
|
|
@@ -48,13 +48,13 @@ process.env.NODE_ENV !== "production" && (G.displayName = "DialogBackdrop");
|
|
|
48
48
|
var K = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
49
49
|
let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, { store: c } = W(), l = c.useState("open");
|
|
50
50
|
function u(e) {
|
|
51
|
-
l && c.setOpen(!1,
|
|
51
|
+
l && c.setOpen(!1, S(h, e.nativeEvent));
|
|
52
52
|
}
|
|
53
|
-
let { getButtonProps: d, buttonRef: f } =
|
|
53
|
+
let { getButtonProps: d, buttonRef: f } = L({
|
|
54
54
|
disabled: i,
|
|
55
55
|
native: a
|
|
56
56
|
});
|
|
57
|
-
return
|
|
57
|
+
return N("button", e, {
|
|
58
58
|
state: { disabled: i },
|
|
59
59
|
ref: [t, f],
|
|
60
60
|
props: [
|
|
@@ -69,179 +69,179 @@ process.env.NODE_ENV !== "production" && (K.displayName = "DialogClose");
|
|
|
69
69
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/popup/DialogPopupCssVars.js
|
|
70
70
|
var ue = /*#__PURE__*/ function(e) {
|
|
71
71
|
return e.nestedDialogs = "--nested-dialogs", e;
|
|
72
|
-
}({}),
|
|
73
|
-
return e[e.open =
|
|
74
|
-
}({}),
|
|
75
|
-
process.env.NODE_ENV !== "production" && (
|
|
76
|
-
function
|
|
77
|
-
let e = z.useContext(
|
|
78
|
-
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ?
|
|
72
|
+
}({}), de = function(e) {
|
|
73
|
+
return e[e.open = D.open] = "open", e[e.closed = D.closed] = "closed", e[e.startingStyle = D.startingStyle] = "startingStyle", e[e.endingStyle = D.endingStyle] = "endingStyle", e.nested = "data-nested", e.nestedDialogOpen = "data-nested-dialog-open", e;
|
|
74
|
+
}({}), q = /*#__PURE__*/ z.createContext(void 0);
|
|
75
|
+
process.env.NODE_ENV !== "production" && (q.displayName = "DialogPortalContext");
|
|
76
|
+
function fe() {
|
|
77
|
+
let e = z.useContext(q);
|
|
78
|
+
if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? m(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
|
-
var
|
|
84
|
-
...
|
|
85
|
-
...
|
|
83
|
+
var pe = {
|
|
84
|
+
...w,
|
|
85
|
+
...c,
|
|
86
86
|
nestedDialogOpen(e) {
|
|
87
|
-
return e ? { [
|
|
87
|
+
return e ? { [de.nestedDialogOpen]: "" } : null;
|
|
88
88
|
}
|
|
89
|
-
},
|
|
90
|
-
let { className: n, finalFocus: r, initialFocus: i, render: a, style: o, ...c } = e, { store:
|
|
91
|
-
|
|
92
|
-
open:
|
|
93
|
-
ref:
|
|
89
|
+
}, J = /*#__PURE__*/ z.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"), _ = l.useState("nestedOpenDialogCount"), v = l.useState("open"), y = l.useState("openMethod"), b = l.useState("titleElementId"), x = l.useState("transitionStatus"), S = l.useState("role");
|
|
91
|
+
fe(), ie({
|
|
92
|
+
open: v,
|
|
93
|
+
ref: l.context.popupRef,
|
|
94
94
|
onComplete() {
|
|
95
|
-
|
|
95
|
+
v && l.context.onOpenChangeComplete?.(!0);
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
|
-
function
|
|
99
|
-
return e !== "touch" ||
|
|
98
|
+
function C(e) {
|
|
99
|
+
return e !== "touch" || l.context.popupRef.current;
|
|
100
100
|
}
|
|
101
|
-
let
|
|
101
|
+
let w = i === void 0 ? C : i, T = N("div", e, {
|
|
102
102
|
state: {
|
|
103
|
-
open:
|
|
104
|
-
nested:
|
|
105
|
-
transitionStatus:
|
|
106
|
-
nestedDialogOpen:
|
|
103
|
+
open: v,
|
|
104
|
+
nested: g,
|
|
105
|
+
transitionStatus: x,
|
|
106
|
+
nestedDialogOpen: _ > 0
|
|
107
107
|
},
|
|
108
108
|
props: [
|
|
109
|
-
|
|
109
|
+
p,
|
|
110
110
|
{
|
|
111
|
-
"aria-labelledby":
|
|
112
|
-
"aria-describedby":
|
|
113
|
-
role:
|
|
111
|
+
"aria-labelledby": b ?? void 0,
|
|
112
|
+
"aria-describedby": u ?? void 0,
|
|
113
|
+
role: S,
|
|
114
114
|
tabIndex: -1,
|
|
115
|
-
hidden: !
|
|
115
|
+
hidden: !h,
|
|
116
116
|
onKeyDown(e) {
|
|
117
|
-
|
|
117
|
+
M.has(e.key) && e.stopPropagation();
|
|
118
118
|
},
|
|
119
|
-
style: { [ue.nestedDialogs]:
|
|
119
|
+
style: { [ue.nestedDialogs]: _ }
|
|
120
120
|
},
|
|
121
121
|
c
|
|
122
122
|
],
|
|
123
123
|
ref: [
|
|
124
124
|
t,
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
l.context.popupRef,
|
|
126
|
+
l.useStateSetter("popupElement")
|
|
127
127
|
],
|
|
128
|
-
stateAttributesMapping:
|
|
128
|
+
stateAttributesMapping: pe
|
|
129
129
|
});
|
|
130
130
|
return /*#__PURE__*/ V(s, {
|
|
131
|
-
context:
|
|
132
|
-
openInteractionType:
|
|
133
|
-
disabled: !
|
|
134
|
-
closeOnFocusOut: !
|
|
135
|
-
initialFocus:
|
|
131
|
+
context: f,
|
|
132
|
+
openInteractionType: y,
|
|
133
|
+
disabled: !h,
|
|
134
|
+
closeOnFocusOut: !d,
|
|
135
|
+
initialFocus: w,
|
|
136
136
|
returnFocus: r,
|
|
137
|
-
modal:
|
|
137
|
+
modal: m !== !1,
|
|
138
138
|
restoreFocus: "popup",
|
|
139
|
-
children:
|
|
139
|
+
children: T
|
|
140
140
|
});
|
|
141
141
|
});
|
|
142
|
-
process.env.NODE_ENV !== "production" && (
|
|
142
|
+
process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/portal/DialogPortal.js
|
|
145
|
-
var
|
|
145
|
+
var Y = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
146
146
|
let { keepMounted: n = !1, ...r } = e, { store: i } = W(), a = i.useState("mounted"), o = i.useState("modal"), s = i.useState("open");
|
|
147
|
-
return a || n ? /*#__PURE__*/ V(
|
|
147
|
+
return a || n ? /*#__PURE__*/ V(q.Provider, {
|
|
148
148
|
value: n,
|
|
149
149
|
children: /*#__PURE__*/ H(y, {
|
|
150
150
|
ref: t,
|
|
151
151
|
...r,
|
|
152
|
-
children: [a && o === !0 && /*#__PURE__*/ V(
|
|
152
|
+
children: [a && o === !0 && /*#__PURE__*/ V(b, {
|
|
153
153
|
ref: i.context.internalBackdropRef,
|
|
154
|
-
inert:
|
|
154
|
+
inert: A(!s)
|
|
155
155
|
}), e.children]
|
|
156
156
|
})
|
|
157
157
|
}) : null;
|
|
158
158
|
});
|
|
159
|
-
process.env.NODE_ENV !== "production" && (
|
|
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
|
|
163
|
-
let { store: t, parentContext:
|
|
164
|
-
|
|
165
|
-
let { forceUnmount:
|
|
166
|
-
t.setOpen(!1,
|
|
162
|
+
function me(e) {
|
|
163
|
+
let { store: t, parentContext: i, actionsRef: a, isDrawer: s } = e, c = t.useState("open"), l = t.useState("disablePointerDismissal"), d = t.useState("modal"), f = t.useState("popupElement"), { openMethod: m, triggerProps: h } = te(c);
|
|
164
|
+
u(t);
|
|
165
|
+
let { forceUnmount: g } = ee(c, t), y = z.useCallback(() => {
|
|
166
|
+
t.setOpen(!1, S(o));
|
|
167
167
|
}, [t]);
|
|
168
168
|
z.useImperativeHandle(a, () => ({
|
|
169
|
-
unmount:
|
|
169
|
+
unmount: g,
|
|
170
170
|
close: y
|
|
171
|
-
}), [
|
|
172
|
-
let
|
|
171
|
+
}), [g, y]);
|
|
172
|
+
let b = re({
|
|
173
173
|
popupStore: t,
|
|
174
174
|
onOpenChange: t.setOpen,
|
|
175
175
|
treatPopupAsFloatingElement: !0
|
|
176
|
-
}), [
|
|
176
|
+
}), [x, C] = z.useState(0), [w, E] = z.useState(0), D = x === 0, O = p(b), k = _(b, {
|
|
177
177
|
outsidePressEvent() {
|
|
178
178
|
return t.context.internalBackdropRef.current || t.context.backdropRef.current ? "intentional" : {
|
|
179
|
-
mouse:
|
|
179
|
+
mouse: d === "trap-focus" ? "sloppy" : "intentional",
|
|
180
180
|
touch: "sloppy"
|
|
181
181
|
};
|
|
182
182
|
},
|
|
183
183
|
outsidePress(e) {
|
|
184
184
|
if (!t.context.outsidePressEnabledRef.current || "button" in e && e.button !== 0 || "touches" in e && e.touches.length !== 1) return !1;
|
|
185
|
-
let
|
|
186
|
-
if (
|
|
187
|
-
let e =
|
|
188
|
-
return
|
|
185
|
+
let r = v(e);
|
|
186
|
+
if (D && !l) {
|
|
187
|
+
let e = r;
|
|
188
|
+
return d && (t.context.internalBackdropRef.current || t.context.backdropRef.current) ? t.context.internalBackdropRef.current === e || t.context.backdropRef.current === e || n(e, f) && !e?.hasAttribute("data-base-ui-portal") : !0;
|
|
189
189
|
}
|
|
190
190
|
return !1;
|
|
191
191
|
},
|
|
192
|
-
escapeKey:
|
|
192
|
+
escapeKey: D
|
|
193
193
|
});
|
|
194
|
-
|
|
195
|
-
let { getReferenceProps:
|
|
194
|
+
T(c && d === !0, f);
|
|
195
|
+
let { getReferenceProps: A, getFloatingProps: j, getTriggerProps: M } = r([O, k]);
|
|
196
196
|
t.useContextCallback("onNestedDialogOpen", (e, t) => {
|
|
197
|
-
C(e),
|
|
197
|
+
C(e), E(t);
|
|
198
198
|
}), t.useContextCallback("onNestedDialogClose", () => {
|
|
199
|
-
C(0),
|
|
200
|
-
}), z.useEffect(() => (
|
|
201
|
-
|
|
199
|
+
C(0), E(0);
|
|
200
|
+
}), z.useEffect(() => (i?.onNestedDialogOpen && c && i.onNestedDialogOpen(x + 1, w + +!!s), i?.onNestedDialogClose && !c && i.onNestedDialogClose(), () => {
|
|
201
|
+
i?.onNestedDialogClose && c && i.onNestedDialogClose();
|
|
202
202
|
}), [
|
|
203
|
-
o,
|
|
204
203
|
s,
|
|
205
|
-
|
|
204
|
+
c,
|
|
205
|
+
x,
|
|
206
206
|
w,
|
|
207
|
-
|
|
207
|
+
i
|
|
208
208
|
]);
|
|
209
|
-
let
|
|
209
|
+
let N = z.useMemo(() => A(h), [A, h]), P = z.useMemo(() => M(h), [M, h]), F = z.useMemo(() => j(), [j]);
|
|
210
210
|
t.useSyncedValues({
|
|
211
211
|
openMethod: m,
|
|
212
|
-
activeTriggerProps:
|
|
213
|
-
inactiveTriggerProps:
|
|
214
|
-
popupProps:
|
|
215
|
-
floatingRootContext:
|
|
216
|
-
nestedOpenDialogCount:
|
|
212
|
+
activeTriggerProps: N,
|
|
213
|
+
inactiveTriggerProps: P,
|
|
214
|
+
popupProps: F,
|
|
215
|
+
floatingRootContext: b,
|
|
216
|
+
nestedOpenDialogCount: x,
|
|
217
217
|
nestedOpenDrawerCount: w
|
|
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
|
-
var
|
|
223
|
-
...
|
|
224
|
-
modal:
|
|
225
|
-
nested:
|
|
226
|
-
nestedOpenDialogCount:
|
|
227
|
-
nestedOpenDrawerCount:
|
|
228
|
-
disablePointerDismissal:
|
|
229
|
-
openMethod:
|
|
230
|
-
descriptionElementId:
|
|
231
|
-
titleElementId:
|
|
232
|
-
viewportElement:
|
|
233
|
-
role:
|
|
234
|
-
},
|
|
222
|
+
var he = {
|
|
223
|
+
...a,
|
|
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 l {
|
|
235
235
|
constructor(e) {
|
|
236
|
-
super(
|
|
236
|
+
super(_e(e), {
|
|
237
237
|
popupRef: /*#__PURE__*/ z.createRef(),
|
|
238
238
|
backdropRef: /*#__PURE__*/ z.createRef(),
|
|
239
239
|
internalBackdropRef: /*#__PURE__*/ z.createRef(),
|
|
240
240
|
outsidePressEnabledRef: { current: !0 },
|
|
241
|
-
triggerElements: new
|
|
241
|
+
triggerElements: new i(),
|
|
242
242
|
onOpenChange: void 0,
|
|
243
243
|
onOpenChangeComplete: void 0
|
|
244
|
-
},
|
|
244
|
+
}, he);
|
|
245
245
|
}
|
|
246
246
|
setOpen = (e, t) => {
|
|
247
247
|
if (t.preventUnmountOnClose = () => {
|
|
@@ -252,13 +252,13 @@ var me = {
|
|
|
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 =
|
|
255
|
+
let r = d(() => new e(n)).current;
|
|
256
256
|
return t ?? r;
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function _e(e = {}) {
|
|
260
260
|
return {
|
|
261
|
-
...
|
|
261
|
+
...g(),
|
|
262
262
|
modal: !0,
|
|
263
263
|
disablePointerDismissal: !1,
|
|
264
264
|
popupElement: null,
|
|
@@ -275,10 +275,10 @@ function ge(e = {}) {
|
|
|
275
275
|
}
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/dialog/root/DialogRoot.js
|
|
278
|
-
var
|
|
279
|
-
process.env.NODE_ENV !== "production" && (
|
|
280
|
-
function
|
|
281
|
-
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 = W(!0), p = z.useContext(
|
|
278
|
+
var X = /*#__PURE__*/ z.createContext(!1);
|
|
279
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "IsDrawerContext");
|
|
280
|
+
function ve(e) {
|
|
281
|
+
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 = W(!0), p = z.useContext(X), m = !!f, h = ge.useStore(l?.store, {
|
|
282
282
|
open: r,
|
|
283
283
|
openProp: n,
|
|
284
284
|
activeTriggerId: d,
|
|
@@ -287,7 +287,7 @@ function _e(e) {
|
|
|
287
287
|
disablePointerDismissal: o,
|
|
288
288
|
nested: m
|
|
289
289
|
});
|
|
290
|
-
|
|
290
|
+
P(() => {
|
|
291
291
|
n === void 0 && h.state.open === !1 && r === !0 && h.update({
|
|
292
292
|
open: !0,
|
|
293
293
|
activeTriggerId: d
|
|
@@ -298,7 +298,7 @@ function _e(e) {
|
|
|
298
298
|
modal: s
|
|
299
299
|
}), h.useContextCallback("onOpenChange", i), h.useContextCallback("onOpenChangeComplete", a);
|
|
300
300
|
let g = h.useState("payload");
|
|
301
|
-
|
|
301
|
+
me({
|
|
302
302
|
store: h,
|
|
303
303
|
actionsRef: c,
|
|
304
304
|
parentContext: f?.store.context,
|
|
@@ -307,7 +307,7 @@ function _e(e) {
|
|
|
307
307
|
triggerIdProp: u
|
|
308
308
|
});
|
|
309
309
|
let _ = z.useMemo(() => ({ store: h }), [h]);
|
|
310
|
-
return /*#__PURE__*/ V(
|
|
310
|
+
return /*#__PURE__*/ V(X.Provider, {
|
|
311
311
|
value: !1,
|
|
312
312
|
children: /*#__PURE__*/ V(U.Provider, {
|
|
313
313
|
value: _,
|
|
@@ -317,51 +317,51 @@ function _e(e) {
|
|
|
317
317
|
}
|
|
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
|
-
var
|
|
321
|
-
let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c =
|
|
322
|
-
return s.useSyncedValueWithCleanup("titleElementId", c),
|
|
320
|
+
var Z = /*#__PURE__*/ z.forwardRef(function(e, t) {
|
|
321
|
+
let { render: n, className: r, style: i, id: a, ...o } = e, { store: s } = W(), c = f(a);
|
|
322
|
+
return s.useSyncedValueWithCleanup("titleElementId", c), N("h2", e, {
|
|
323
323
|
ref: t,
|
|
324
324
|
props: [{ id: c }, o]
|
|
325
325
|
});
|
|
326
326
|
});
|
|
327
|
-
process.env.NODE_ENV !== "production" && (
|
|
327
|
+
process.env.NODE_ENV !== "production" && (Z.displayName = "DialogTitle");
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/ui/browser/dialog.tsx
|
|
330
|
-
function
|
|
331
|
-
return /* @__PURE__ */ V(
|
|
330
|
+
function ye(e) {
|
|
331
|
+
return /* @__PURE__ */ V(ve, {
|
|
332
332
|
"data-slot": "dialog",
|
|
333
333
|
...e
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
|
-
function
|
|
337
|
-
return /* @__PURE__ */ V(
|
|
336
|
+
function be(e) {
|
|
337
|
+
return /* @__PURE__ */ V(Y, {
|
|
338
338
|
"data-slot": "dialog-portal",
|
|
339
339
|
...e
|
|
340
340
|
});
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function Q(e) {
|
|
343
343
|
return /* @__PURE__ */ V(K, {
|
|
344
344
|
"data-slot": "dialog-close",
|
|
345
345
|
...e
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function xe({ className: e, ...t }) {
|
|
349
349
|
return /* @__PURE__ */ V(G, {
|
|
350
350
|
"data-slot": "dialog-overlay",
|
|
351
|
-
className:
|
|
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
|
|
356
|
-
return /* @__PURE__ */ H(
|
|
355
|
+
function Se({ children: e, className: t, closeLabel: n = "Close", container: r, showCloseButton: i = !0, ...a }) {
|
|
356
|
+
return /* @__PURE__ */ H(be, {
|
|
357
357
|
container: r,
|
|
358
|
-
children: [/* @__PURE__ */ V(
|
|
358
|
+
children: [/* @__PURE__ */ V(xe, {}), /* @__PURE__ */ H(J, {
|
|
359
359
|
"data-slot": "dialog-content",
|
|
360
|
-
className:
|
|
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
|
...a,
|
|
362
362
|
children: [e, i && /* @__PURE__ */ H(K, {
|
|
363
363
|
"data-slot": "dialog-close",
|
|
364
|
-
render: /* @__PURE__ */ V(
|
|
364
|
+
render: /* @__PURE__ */ V(C, {
|
|
365
365
|
className: "absolute top-2 right-2",
|
|
366
366
|
size: "icon-sm",
|
|
367
367
|
variant: "ghost"
|
|
@@ -374,89 +374,89 @@ function xe({ children: e, className: t, closeLabel: n = "Close", container: r,
|
|
|
374
374
|
})]
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Ce({ className: e, ...t }) {
|
|
378
378
|
return /* @__PURE__ */ V("div", {
|
|
379
379
|
"data-slot": "dialog-header",
|
|
380
|
-
className:
|
|
380
|
+
className: I("flex flex-col gap-2", e),
|
|
381
381
|
...t
|
|
382
382
|
});
|
|
383
383
|
}
|
|
384
|
-
function
|
|
384
|
+
function $({ className: e, ...t }) {
|
|
385
385
|
return /* @__PURE__ */ V("div", {
|
|
386
386
|
"data-slot": "dialog-footer",
|
|
387
|
-
className:
|
|
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
|
-
return /* @__PURE__ */ V(
|
|
392
|
+
return /* @__PURE__ */ V(Z, {
|
|
393
393
|
"data-slot": "dialog-title",
|
|
394
|
-
className:
|
|
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:
|
|
401
|
-
let
|
|
402
|
-
return ae(() =>
|
|
403
|
-
onOpenChange:
|
|
400
|
+
function Te({ id: t, issue: n, label: r, name: i, onNameChange: a, onOpenChange: o, onSubmit: s, pending: c, title: l }) {
|
|
401
|
+
let u = e(), d = B(null), f = B(null), [p, m] = oe(!1), h = i.length > 0 && n != null, g = u(h ? `resource.nameIssue.${n}` : "resource.nameHint", { max: 80 }), _ = `${t}-message`;
|
|
402
|
+
return ae(() => m(!0), []), /* @__PURE__ */ H(se, { children: [/* @__PURE__ */ V("div", { ref: f }), /* @__PURE__ */ V(ye, {
|
|
403
|
+
onOpenChange: m,
|
|
404
404
|
onOpenChangeComplete: (e) => {
|
|
405
|
-
e ||
|
|
405
|
+
e || o(!1);
|
|
406
406
|
},
|
|
407
|
-
open:
|
|
408
|
-
children: /* @__PURE__ */ V(
|
|
409
|
-
container:
|
|
410
|
-
initialFocus: () =>
|
|
407
|
+
open: p,
|
|
408
|
+
children: /* @__PURE__ */ V(Se, {
|
|
409
|
+
container: f.current,
|
|
410
|
+
initialFocus: () => d.current,
|
|
411
411
|
showCloseButton: !1,
|
|
412
412
|
children: /* @__PURE__ */ H("form", {
|
|
413
413
|
className: "flex flex-col gap-4",
|
|
414
|
-
onSubmit:
|
|
414
|
+
onSubmit: s,
|
|
415
415
|
children: [
|
|
416
|
-
/* @__PURE__ */ H(
|
|
416
|
+
/* @__PURE__ */ H(Ce, {
|
|
417
417
|
className: "flex-row items-center justify-between",
|
|
418
|
-
children: [/* @__PURE__ */ V(we, { children:
|
|
419
|
-
"aria-label":
|
|
420
|
-
render: /* @__PURE__ */ V(
|
|
418
|
+
children: [/* @__PURE__ */ V(we, { children: l }), /* @__PURE__ */ V(Q, {
|
|
419
|
+
"aria-label": u("common.cancel"),
|
|
420
|
+
render: /* @__PURE__ */ V(C, {
|
|
421
421
|
size: "icon-sm",
|
|
422
422
|
variant: "ghost"
|
|
423
423
|
}),
|
|
424
424
|
type: "button",
|
|
425
|
-
children: /* @__PURE__ */ V(
|
|
425
|
+
children: /* @__PURE__ */ V(O, { name: "close" })
|
|
426
426
|
})]
|
|
427
427
|
}),
|
|
428
|
-
/* @__PURE__ */ V(
|
|
429
|
-
"data-invalid":
|
|
428
|
+
/* @__PURE__ */ V(x, { children: /* @__PURE__ */ H(k, {
|
|
429
|
+
"data-invalid": h,
|
|
430
430
|
children: [
|
|
431
431
|
/* @__PURE__ */ V(j, {
|
|
432
|
-
htmlFor:
|
|
433
|
-
children:
|
|
432
|
+
htmlFor: t,
|
|
433
|
+
children: r
|
|
434
434
|
}),
|
|
435
|
-
/* @__PURE__ */ V(
|
|
435
|
+
/* @__PURE__ */ V(R, {
|
|
436
436
|
autoComplete: "off",
|
|
437
|
-
"aria-describedby":
|
|
438
|
-
"aria-invalid":
|
|
439
|
-
id:
|
|
437
|
+
"aria-describedby": _,
|
|
438
|
+
"aria-invalid": h,
|
|
439
|
+
id: t,
|
|
440
440
|
name: "resource-name",
|
|
441
|
-
onChange: (e) =>
|
|
442
|
-
ref:
|
|
441
|
+
onChange: (e) => a(e.target.value),
|
|
442
|
+
ref: d,
|
|
443
443
|
required: !0,
|
|
444
|
-
value:
|
|
444
|
+
value: i
|
|
445
445
|
}),
|
|
446
|
-
V(
|
|
447
|
-
id:
|
|
448
|
-
children:
|
|
446
|
+
V(h ? E : F, {
|
|
447
|
+
id: _,
|
|
448
|
+
children: g
|
|
449
449
|
})
|
|
450
450
|
]
|
|
451
451
|
}) }),
|
|
452
|
-
/* @__PURE__ */ H(
|
|
453
|
-
render: /* @__PURE__ */ V(
|
|
452
|
+
/* @__PURE__ */ H($, { children: [/* @__PURE__ */ V(Q, {
|
|
453
|
+
render: /* @__PURE__ */ V(C, { variant: "outline" }),
|
|
454
454
|
type: "button",
|
|
455
|
-
children:
|
|
456
|
-
}), /* @__PURE__ */ V(
|
|
457
|
-
disabled:
|
|
455
|
+
children: u("common.cancel")
|
|
456
|
+
}), /* @__PURE__ */ V(C, {
|
|
457
|
+
disabled: c || n != null,
|
|
458
458
|
type: "submit",
|
|
459
|
-
children:
|
|
459
|
+
children: u(c ? "common.creating" : "common.create")
|
|
460
460
|
})] })
|
|
461
461
|
]
|
|
462
462
|
})
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { s as e } from "./dist-BpopSHwP.js";
|
|
2
2
|
import { r as t } from "./dist-BKuSVKCC.js";
|
|
3
3
|
import { M as n, t as r } from "./dist-CUSrALSX.js";
|
|
4
|
-
import { n as i } from "./flowWorkspace-
|
|
4
|
+
import { n as i } from "./flowWorkspace-nnM1b6Wz.js";
|
|
5
5
|
//#region ../../node_modules/.bun/@uiw+codemirror-themes@4.25.11/node_modules/@uiw/codemirror-themes/esm/index.js
|
|
6
6
|
var a = (e) => {
|
|
7
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 = {};
|