@oomol-lab/open-flow 0.1.0-alpha.9 → 0.1.0-beta.2
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/README.md +5 -1
- package/dist/browser/createResourceDialog-BkZns-oZ.js +504 -0
- package/dist/browser/diagnostics-giPSzyMo.js +9346 -0
- package/dist/browser/{dist-DhsGR_K3.js → dist-3Mj8q8Pr.js} +27 -27
- package/dist/browser/{dist-n9WmBm5w.js → dist-BKuSVKCC.js} +1 -1
- package/dist/browser/{dist-DQVavPcf.js → dist-BMqL-qR5.js} +469 -903
- package/dist/browser/{dist-D5mdziGP.js → dist-BN4ZCyOB.js} +9 -9
- package/dist/browser/{dist-CVtP-E2c.js → dist-BpopSHwP.js} +1 -1
- package/dist/browser/{dist-B0Q2Mn0n.js → dist-CJpzJrLM.js} +191 -191
- package/dist/browser/{dist-DXgEYMFx.js → dist-CPuF50D9.js} +196 -196
- package/dist/browser/{dist-CUkceEvN.js → dist-CUSrALSX.js} +113 -113
- package/dist/browser/dist-CeSZ2xSM.js +444 -0
- package/dist/browser/{dist-Bc9TvHYl.js → dist-DUzA0Ukh.js} +20 -20
- package/dist/browser/{dist-DWzdGVm9.js → dist-DWADUsVB.js} +74 -74
- package/dist/browser/{esm-YIGXG-Js.js → esm-B_PbUobB.js} +13 -13
- package/dist/browser/flow-authoring-node.d.ts +4 -2
- package/dist/browser/flow-authoring.d.ts +2 -1
- package/dist/browser/flow-authoring.js +400 -100
- package/dist/browser/flow-change.d.ts +9 -4
- package/dist/browser/flow-change.js +49 -46
- package/dist/browser/{flowRunInputEditorStore-DXOyyY7o.js → flowRunInputEditorStore-BeyUSWpO.js} +1644 -908
- package/dist/browser/{flowWorkspace-D7-rBA1-.js → flowWorkspace-DAMLVMcF.js} +18416 -16444
- package/dist/browser/getPseudoElementBounds-ESJExRFX.js +7642 -0
- package/dist/browser/languages-DgJehE1g.js +62 -0
- package/dist/browser/lib-C5Ipyfps.js +7856 -0
- package/dist/browser/licenses.md +119 -1
- package/dist/browser/main-DmjVyuWr.js +76 -0
- package/dist/browser/{markdownContent-ColGUxHy.js → markdownContent-DdlIRN3_.js} +4811 -4795
- package/dist/browser/theme.css +63 -0
- package/dist/browser/theme.css.d.ts +1 -0
- package/dist/browser/typeScriptSession-mPCiA9sV.js +2579 -0
- package/dist/browser/workbench-contract.d.ts +2 -1
- package/dist/browser/workbench.css +1 -1
- package/dist/browser/workbench.d.ts +46 -1
- package/dist/browser/workbench.js +1132 -1474
- package/dist/browser/workbenchSelect-B2s1HV-Y.js +1374 -0
- package/dist/common/connector-action.d.ts +6 -0
- package/dist/common/connector-action.js +37 -29
- package/dist/common/control-api-conformance.js +80 -29
- package/dist/common/control-api-errors.d.ts +24 -0
- package/dist/common/control-api.d.ts +54 -7
- package/dist/common/control-api.js +226 -95
- package/dist/common/flow-encoding.d.ts +2 -2
- package/dist/common/flow-encoding.js +4 -1
- package/dist/common/flow-semantics.d.ts +3 -0
- package/dist/common/flow-semantics.js +939 -851
- package/dist/common/integration-trigger.d.ts +1 -0
- package/dist/common/licenses.md +1 -25
- package/dist/common/localization.d.ts +21 -0
- package/dist/common/localization.js +62 -0
- package/dist/common/provider-triggers.js +4 -1
- package/dist/common/scheduler.d.ts +5 -5
- package/dist/common/scheduler.js +250 -236
- package/package.json +10 -1
- package/dist/browser/addNodeOptions-DRndy4EK.js +0 -6910
- package/dist/browser/createLucideIcon-CqjqCezK.js +0 -5537
- package/dist/browser/createResourceDialog-A64dDFCG.js +0 -467
- package/dist/browser/field-CKGQHCIi.js +0 -312
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
import { Dt as e, F as t, Gn as n, Kn as r, O as i, Ot as a, Vn as o, Xn as s, ar as c, br as l, cr as u, k as d, lr as f, nt as p, xn as m } from "./createLucideIcon-CqjqCezK.js";
|
|
2
|
-
import * as h from "react";
|
|
3
|
-
import { useMemo as g } from "react";
|
|
4
|
-
import { jsx as _ } from "react/jsx-runtime";
|
|
5
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/popupStoreUtils.js
|
|
6
|
-
function v(e, t) {
|
|
7
|
-
let n = h.useRef(null), r = h.useRef(null);
|
|
8
|
-
return h.useCallback((i) => {
|
|
9
|
-
if (e !== void 0) {
|
|
10
|
-
if (n.current !== null) {
|
|
11
|
-
let e = n.current, i = r.current, a = t.context.triggerElements.getById(e);
|
|
12
|
-
i && a === i && t.context.triggerElements.delete(e), n.current = null, r.current = null;
|
|
13
|
-
}
|
|
14
|
-
i !== null && (n.current = e, r.current = i, t.context.triggerElements.add(e, i));
|
|
15
|
-
}
|
|
16
|
-
}, [t, e]);
|
|
17
|
-
}
|
|
18
|
-
function y(e, t, n, r) {
|
|
19
|
-
let i = n.useState("isMountedByTrigger", e), a = v(e, n), o = u((t) => {
|
|
20
|
-
if (a(t), !t || !n.select("open")) return;
|
|
21
|
-
let i = n.select("activeTriggerId");
|
|
22
|
-
if (i === e) {
|
|
23
|
-
n.update({
|
|
24
|
-
activeTriggerElement: t,
|
|
25
|
-
...r
|
|
26
|
-
});
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
i ?? n.update({
|
|
30
|
-
activeTriggerId: e,
|
|
31
|
-
activeTriggerElement: t,
|
|
32
|
-
...r
|
|
33
|
-
});
|
|
34
|
-
});
|
|
35
|
-
return c(() => {
|
|
36
|
-
i && n.update({
|
|
37
|
-
activeTriggerElement: t.current,
|
|
38
|
-
...r
|
|
39
|
-
});
|
|
40
|
-
}, [
|
|
41
|
-
i,
|
|
42
|
-
n,
|
|
43
|
-
t,
|
|
44
|
-
...Object.values(r)
|
|
45
|
-
]), {
|
|
46
|
-
registerTrigger: o,
|
|
47
|
-
isMountedByThisTrigger: i
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function b(e) {
|
|
51
|
-
let t = e.useState("open");
|
|
52
|
-
c(() => {
|
|
53
|
-
if (t && !e.select("activeTriggerId") && e.context.triggerElements.size === 1) {
|
|
54
|
-
let t = e.context.triggerElements.entries().next();
|
|
55
|
-
if (!t.done) {
|
|
56
|
-
let [n, r] = t.value;
|
|
57
|
-
e.update({
|
|
58
|
-
activeTriggerId: n,
|
|
59
|
-
activeTriggerElement: r
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}, [t, e]);
|
|
64
|
-
}
|
|
65
|
-
function x(t, n, r) {
|
|
66
|
-
let { mounted: i, setMounted: o, transitionStatus: s } = e(t);
|
|
67
|
-
n.useSyncedValues({
|
|
68
|
-
mounted: i,
|
|
69
|
-
transitionStatus: s
|
|
70
|
-
});
|
|
71
|
-
let c = u(() => {
|
|
72
|
-
o(!1), n.update({
|
|
73
|
-
activeTriggerId: null,
|
|
74
|
-
activeTriggerElement: null,
|
|
75
|
-
mounted: !1
|
|
76
|
-
}), r?.(), n.context.onOpenChangeComplete?.(!1);
|
|
77
|
-
}), l = n.useState("preventUnmountingOnClose");
|
|
78
|
-
return a({
|
|
79
|
-
enabled: !l,
|
|
80
|
-
open: t,
|
|
81
|
-
ref: n.context.popupRef,
|
|
82
|
-
onComplete() {
|
|
83
|
-
t || c();
|
|
84
|
-
}
|
|
85
|
-
}), {
|
|
86
|
-
forceUnmount: c,
|
|
87
|
-
transitionStatus: s
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/utils/getEmptyRootContext.js
|
|
92
|
-
function S() {
|
|
93
|
-
return new d({
|
|
94
|
-
open: !1,
|
|
95
|
-
transitionStatus: void 0,
|
|
96
|
-
floatingElement: null,
|
|
97
|
-
referenceElement: null,
|
|
98
|
-
triggerElements: new i(),
|
|
99
|
-
floatingId: "",
|
|
100
|
-
syncOnly: !1,
|
|
101
|
-
nested: !1,
|
|
102
|
-
onOpenChange: void 0
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
//#endregion
|
|
106
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/utils/popups/store.js
|
|
107
|
-
function C() {
|
|
108
|
-
return {
|
|
109
|
-
open: !1,
|
|
110
|
-
openProp: void 0,
|
|
111
|
-
mounted: !1,
|
|
112
|
-
transitionStatus: void 0,
|
|
113
|
-
floatingRootContext: S(),
|
|
114
|
-
preventUnmountingOnClose: !1,
|
|
115
|
-
payload: void 0,
|
|
116
|
-
activeTriggerId: null,
|
|
117
|
-
activeTriggerElement: null,
|
|
118
|
-
triggerIdProp: void 0,
|
|
119
|
-
popupElement: null,
|
|
120
|
-
positionerElement: null,
|
|
121
|
-
activeTriggerProps: s,
|
|
122
|
-
inactiveTriggerProps: s,
|
|
123
|
-
popupProps: s
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
var w = p((e) => e.triggerIdProp ?? e.activeTriggerId), T = {
|
|
127
|
-
open: p((e) => e.openProp ?? e.open),
|
|
128
|
-
mounted: p((e) => e.mounted),
|
|
129
|
-
transitionStatus: p((e) => e.transitionStatus),
|
|
130
|
-
floatingRootContext: p((e) => e.floatingRootContext),
|
|
131
|
-
preventUnmountingOnClose: p((e) => e.preventUnmountingOnClose),
|
|
132
|
-
payload: p((e) => e.payload),
|
|
133
|
-
activeTriggerId: w,
|
|
134
|
-
activeTriggerElement: p((e) => e.mounted ? e.activeTriggerElement : null),
|
|
135
|
-
isTriggerActive: p((e, t) => t !== void 0 && w(e) === t),
|
|
136
|
-
isOpenedByTrigger: p((e, t) => t !== void 0 && w(e) === t && e.open),
|
|
137
|
-
isMountedByTrigger: p((e, t) => t !== void 0 && w(e) === t && e.mounted),
|
|
138
|
-
triggerProps: p((e, t) => t ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
139
|
-
popupProps: p((e) => e.popupProps),
|
|
140
|
-
popupElement: p((e) => e.popupElement),
|
|
141
|
-
positionerElement: p((e) => e.positionerElement)
|
|
142
|
-
};
|
|
143
|
-
//#endregion
|
|
144
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useSyncedFloatingRootContext.js
|
|
145
|
-
function E(e) {
|
|
146
|
-
let { popupStore: n, treatPopupAsFloatingElement: r = !1, onOpenChange: i } = e, a = o(), s = t() != null, u = n.useState("open"), p = n.useState("activeTriggerElement"), m = n.useState(r ? "popupElement" : "positionerElement"), h = n.context.triggerElements, g = f(() => new d({
|
|
147
|
-
open: u,
|
|
148
|
-
transitionStatus: void 0,
|
|
149
|
-
referenceElement: p,
|
|
150
|
-
floatingElement: m,
|
|
151
|
-
triggerElements: h,
|
|
152
|
-
onOpenChange: i,
|
|
153
|
-
floatingId: a,
|
|
154
|
-
syncOnly: !0,
|
|
155
|
-
nested: s
|
|
156
|
-
})).current;
|
|
157
|
-
return c(() => {
|
|
158
|
-
let e = {
|
|
159
|
-
open: u,
|
|
160
|
-
floatingId: a,
|
|
161
|
-
referenceElement: p,
|
|
162
|
-
floatingElement: m
|
|
163
|
-
};
|
|
164
|
-
l(p) && (e.domReferenceElement = p), g.state.positionReference === g.state.referenceElement && (e.positionReference = p), g.update(e);
|
|
165
|
-
}, [
|
|
166
|
-
u,
|
|
167
|
-
a,
|
|
168
|
-
p,
|
|
169
|
-
m,
|
|
170
|
-
g
|
|
171
|
-
]), g.context.onOpenChange = i, g.context.nested = s, g;
|
|
172
|
-
}
|
|
173
|
-
//#endregion
|
|
174
|
-
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+b87d06724be9db7a/node_modules/@base-ui/react/esm/floating-ui-react/hooks/useRole.js
|
|
175
|
-
var D = /* @__PURE__ */ new Map([
|
|
176
|
-
["select", "listbox"],
|
|
177
|
-
["combobox", "listbox"],
|
|
178
|
-
["label", !1]
|
|
179
|
-
]);
|
|
180
|
-
function O(e, n = {}) {
|
|
181
|
-
let r = "rootStore" in e ? e.rootStore : e, i = r.useState("open"), a = r.useState("floatingId"), c = r.useState("domReferenceElement"), l = r.useState("floatingElement"), { role: u = "dialog" } = n, d = o(), f = c?.id || d, p = h.useMemo(() => m(l)?.id || a, [l, a]), g = D.get(u) ?? u, _ = t() != null, v = h.useMemo(() => g === "tooltip" || u === "label" ? s : {
|
|
182
|
-
"aria-haspopup": g === "alertdialog" ? "dialog" : g,
|
|
183
|
-
"aria-expanded": "false",
|
|
184
|
-
...g === "listbox" && { role: "combobox" },
|
|
185
|
-
...g === "menu" && _ && { role: "menuitem" },
|
|
186
|
-
...u === "select" && { "aria-autocomplete": "none" },
|
|
187
|
-
...u === "combobox" && { "aria-autocomplete": "list" }
|
|
188
|
-
}, [
|
|
189
|
-
g,
|
|
190
|
-
_,
|
|
191
|
-
u
|
|
192
|
-
]), y = h.useMemo(() => g === "tooltip" || u === "label" ? { [`aria-${u === "label" ? "labelledby" : "describedby"}`]: i ? p : void 0 } : {
|
|
193
|
-
...v,
|
|
194
|
-
"aria-expanded": i ? "true" : "false",
|
|
195
|
-
"aria-controls": i ? p : void 0,
|
|
196
|
-
...g === "menu" && { id: f }
|
|
197
|
-
}, [
|
|
198
|
-
g,
|
|
199
|
-
p,
|
|
200
|
-
i,
|
|
201
|
-
f,
|
|
202
|
-
u,
|
|
203
|
-
v
|
|
204
|
-
]), b = h.useMemo(() => {
|
|
205
|
-
let e = {
|
|
206
|
-
id: p,
|
|
207
|
-
...g && { role: g }
|
|
208
|
-
};
|
|
209
|
-
return g === "tooltip" || u === "label" ? e : {
|
|
210
|
-
...e,
|
|
211
|
-
...g === "menu" && { "aria-labelledby": f }
|
|
212
|
-
};
|
|
213
|
-
}, [
|
|
214
|
-
g,
|
|
215
|
-
p,
|
|
216
|
-
f,
|
|
217
|
-
u
|
|
218
|
-
]), x = h.useCallback(({ active: e, selected: t }) => {
|
|
219
|
-
let n = {
|
|
220
|
-
role: "option",
|
|
221
|
-
...e && { id: `${p}-fui-option` }
|
|
222
|
-
};
|
|
223
|
-
switch (u) {
|
|
224
|
-
case "select":
|
|
225
|
-
case "combobox": return {
|
|
226
|
-
...n,
|
|
227
|
-
"aria-selected": t
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
return {};
|
|
231
|
-
}, [p, u]);
|
|
232
|
-
return h.useMemo(() => ({
|
|
233
|
-
reference: y,
|
|
234
|
-
floating: b,
|
|
235
|
-
item: x,
|
|
236
|
-
trigger: v
|
|
237
|
-
}), [
|
|
238
|
-
y,
|
|
239
|
-
b,
|
|
240
|
-
v,
|
|
241
|
-
x
|
|
242
|
-
]);
|
|
243
|
-
}
|
|
244
|
-
//#endregion
|
|
245
|
-
//#region src/ui/browser/label.tsx
|
|
246
|
-
function k({ className: e, ...t }) {
|
|
247
|
-
return /* @__PURE__ */ _("label", {
|
|
248
|
-
"data-slot": "label",
|
|
249
|
-
className: n("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
|
|
250
|
-
...t
|
|
251
|
-
});
|
|
252
|
-
}
|
|
253
|
-
//#endregion
|
|
254
|
-
//#region src/ui/browser/field.tsx
|
|
255
|
-
function A({ className: e, ...t }) {
|
|
256
|
-
return /* @__PURE__ */ _("div", {
|
|
257
|
-
"data-slot": "field-group",
|
|
258
|
-
className: n("group/field-group @container/field-group flex w-full flex-col gap-5 data-[slot=checkbox-group]:gap-3 *:data-[slot=field-group]:gap-4", e),
|
|
259
|
-
...t
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
var j = r("group/field flex w-full gap-2 data-[invalid=true]:text-destructive", {
|
|
263
|
-
variants: { orientation: {
|
|
264
|
-
vertical: "flex-col *:w-full [&>.sr-only]:w-auto",
|
|
265
|
-
horizontal: "flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px",
|
|
266
|
-
responsive: "flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px"
|
|
267
|
-
} },
|
|
268
|
-
defaultVariants: { orientation: "vertical" }
|
|
269
|
-
});
|
|
270
|
-
function M({ className: e, orientation: t = "vertical", ...r }) {
|
|
271
|
-
return /* @__PURE__ */ _("div", {
|
|
272
|
-
role: "group",
|
|
273
|
-
"data-slot": "field",
|
|
274
|
-
"data-orientation": t,
|
|
275
|
-
className: n(j({ orientation: t }), e),
|
|
276
|
-
...r
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
function N({ className: e, ...t }) {
|
|
280
|
-
return /* @__PURE__ */ _(k, {
|
|
281
|
-
"data-slot": "field-label",
|
|
282
|
-
className: n("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 *:data-[slot=field]:p-2.5 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col", e),
|
|
283
|
-
...t
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
function P({ className: e, ...t }) {
|
|
287
|
-
return /* @__PURE__ */ _("p", {
|
|
288
|
-
"data-slot": "field-description",
|
|
289
|
-
className: n("text-left text-sm leading-normal font-normal text-muted-foreground group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5", "last:mt-0 nth-last-2:-mt-1", "[&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary", e),
|
|
290
|
-
...t
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
function F({ className: e, children: t, errors: r, ...i }) {
|
|
294
|
-
let a = g(() => {
|
|
295
|
-
if (t) return t;
|
|
296
|
-
if (!r?.length) return null;
|
|
297
|
-
let e = [...new Map(r.map((e) => [e?.message, e])).values()];
|
|
298
|
-
return e?.length == 1 ? e[0]?.message : /* @__PURE__ */ _("ul", {
|
|
299
|
-
className: "ml-4 flex list-disc flex-col gap-1",
|
|
300
|
-
children: e.map((e, t) => e?.message && /* @__PURE__ */ _("li", { children: e.message }, t))
|
|
301
|
-
});
|
|
302
|
-
}, [t, r]);
|
|
303
|
-
return a ? /* @__PURE__ */ _("div", {
|
|
304
|
-
role: "alert",
|
|
305
|
-
"data-slot": "field-error",
|
|
306
|
-
className: n("text-sm font-normal text-destructive", e),
|
|
307
|
-
...i,
|
|
308
|
-
children: a
|
|
309
|
-
}) : null;
|
|
310
|
-
}
|
|
311
|
-
//#endregion
|
|
312
|
-
export { N as a, C as c, x as d, y as f, A as i, T as l, P as n, O as o, v as p, F as r, E as s, M as t, b as u };
|