@oomol-lab/open-flow 0.1.0-beta.77 → 0.1.0-beta.78
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 +2 -0
- package/dist/browser/{ContentIcon-VZQO8VZU.js → ContentIcon-CMn0c-kl.js} +93 -3
- package/dist/browser/{FlowCanvas-BNGDMaWr.js → FlowCanvas-BQGBcfoL.js} +1675 -591
- package/dist/browser/{createResourceDialog-BmtakfVg.js → createResourceDialog-DCGxfKFM.js} +3 -3
- package/dist/browser/{dialog-BcFBfRB1.js → dialog-WzR4CRFH.js} +11 -81
- package/dist/browser/{exportSvg-CG8hEUNk.js → exportSvg-CYwyYiuH.js} +2 -2
- package/dist/browser/{flowChanges-BGo_4Ypo.js → flowChanges-Bz4dbDN_.js} +1204 -387
- package/dist/browser/{flowWorkspace-BFHGev7s.js → flowWorkspace-BI6L6a4r.js} +557 -597
- package/dist/browser/licenses.md +1 -1
- package/dist/browser/preview.css +512 -462
- package/dist/browser/preview.js +8457 -6732
- package/dist/browser/{tooltip-BAWSUexx.js → tooltip-BDcVTNpu.js} +65 -2
- package/dist/browser/ui.css +5 -24
- package/dist/browser/workbench.css +512 -462
- package/dist/browser/workbench.d.ts +2 -3
- package/dist/browser/workbench.js +65 -690
- package/dist/browser/{workbenchSelect-CjK-xdm3.js → workbenchSelect-DtAd0zc4.js} +2 -2
- package/dist/command/index.js +25 -25
- package/dist/common/authoring.d.ts +3 -3
- package/dist/common/authoringExamples.d.ts +3 -3
- package/dist/common/authoringSchema.d.ts +14 -22
- package/dist/common/control-api-conformance.js +11 -18
- package/dist/common/control-api.d.ts +5 -1
- package/dist/common/control-api.js +11 -18
- package/dist/common/control-requests.d.ts +4 -3
- package/dist/common/control-requests.js +26 -37
- package/dist/common/flow-authoring.js +6 -14
- package/dist/common/flow-change.d.ts +1 -1
- package/dist/common/flow-change.js +6 -14
- package/dist/common/flow-encoding.js +5 -13
- package/dist/common/flow-semantics.js +15 -21
- package/dist/common/flow-state.d.ts +16 -39
- package/dist/common/flow-state.js +47 -105
- package/dist/common/mcp.d.ts +3 -3
- package/dist/common/mcp.js +11 -18
- package/dist/common/run-events.js +19 -9
- package/dist/common/runtime-contract.js +6 -12
- package/dist/common/runtime-nodejs-compat.js +11 -12
- package/dist/common/scheduler.d.ts +2 -1
- package/dist/common/scheduler.js +56 -50
- package/dist/common/state-conformance.d.ts +3 -3
- package/package.json +1 -1
- package/src/control/common/api.ts +20 -3
- package/src/control/common/authoring.ts +6 -5
- package/src/control/common/authoringExamples.ts +6 -5
- package/src/control/common/authoringSchema.ts +7 -7
- package/src/control/common/requests.ts +7 -1
- package/src/execution/common/events.ts +22 -10
- package/src/execution/common/node-execution.ts +1 -1
- package/src/execution/common/scheduler.ts +28 -14
- package/src/flow/common/change.ts +1 -1
- package/src/flow/common/changeSchema.ts +4 -4
- package/src/flow/common/errorHandling.ts +1 -1
- package/src/flow/common/semantics.ts +12 -6
- package/src/runtime/common/nodejsGuest.generated.json +11 -12
- package/src/runtime/common/runtime.ts +6 -7
- package/src/state/common/conformance.ts +16 -21
- package/src/state/common/state.ts +44 -72
|
@@ -4991,6 +4991,57 @@ var Check = createLucideIcon("Check", [["path", {
|
|
|
4991
4991
|
key: "1gmf2c"
|
|
4992
4992
|
}]]);
|
|
4993
4993
|
//#endregion
|
|
4994
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/internals/labelable-provider/useLabelableId.js
|
|
4995
|
+
function useLabelableId(params = {}) {
|
|
4996
|
+
const { id, implicit = false, controlRef } = params;
|
|
4997
|
+
const { controlId, registerControlId } = useLabelableContext();
|
|
4998
|
+
const defaultId = useBaseUiId(id);
|
|
4999
|
+
const controlIdForEffect = implicit ? controlId : void 0;
|
|
5000
|
+
const controlSourceRef = useRefWithInit(() => Symbol("labelable-control"));
|
|
5001
|
+
const hasRegisteredRef = React.useRef(false);
|
|
5002
|
+
const hadExplicitIdRef = React.useRef(id != null);
|
|
5003
|
+
const unregisterControlId = useStableCallback(() => {
|
|
5004
|
+
if (!hasRegisteredRef.current || registerControlId === NOOP) return;
|
|
5005
|
+
hasRegisteredRef.current = false;
|
|
5006
|
+
registerControlId(controlSourceRef.current, void 0);
|
|
5007
|
+
});
|
|
5008
|
+
useIsoLayoutEffect(() => {
|
|
5009
|
+
if (registerControlId === NOOP) return;
|
|
5010
|
+
let nextId;
|
|
5011
|
+
if (implicit) {
|
|
5012
|
+
const elem = controlRef?.current;
|
|
5013
|
+
if (isElement(elem) && elem.closest("label") != null) nextId = id ?? null;
|
|
5014
|
+
else nextId = controlIdForEffect ?? defaultId;
|
|
5015
|
+
} else if (id != null) {
|
|
5016
|
+
hadExplicitIdRef.current = true;
|
|
5017
|
+
nextId = id;
|
|
5018
|
+
} else if (hadExplicitIdRef.current) nextId = defaultId;
|
|
5019
|
+
else {
|
|
5020
|
+
unregisterControlId();
|
|
5021
|
+
return;
|
|
5022
|
+
}
|
|
5023
|
+
if (nextId === void 0) {
|
|
5024
|
+
unregisterControlId();
|
|
5025
|
+
return;
|
|
5026
|
+
}
|
|
5027
|
+
hasRegisteredRef.current = true;
|
|
5028
|
+
registerControlId(controlSourceRef.current, nextId);
|
|
5029
|
+
}, [
|
|
5030
|
+
id,
|
|
5031
|
+
controlRef,
|
|
5032
|
+
controlIdForEffect,
|
|
5033
|
+
registerControlId,
|
|
5034
|
+
implicit,
|
|
5035
|
+
defaultId,
|
|
5036
|
+
controlSourceRef,
|
|
5037
|
+
unregisterControlId
|
|
5038
|
+
]);
|
|
5039
|
+
React.useEffect(() => {
|
|
5040
|
+
return unregisterControlId;
|
|
5041
|
+
}, [unregisterControlId]);
|
|
5042
|
+
return controlId ?? defaultId;
|
|
5043
|
+
}
|
|
5044
|
+
//#endregion
|
|
4994
5045
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/owner.js
|
|
4995
5046
|
function ownerDocument(node) {
|
|
4996
5047
|
return node?.ownerDocument || document;
|
|
@@ -11381,6 +11432,17 @@ function safePolygon(options = {}) {
|
|
|
11381
11432
|
return fn;
|
|
11382
11433
|
}
|
|
11383
11434
|
//#endregion
|
|
11435
|
+
//#region ../../node_modules/.bun/@base-ui+react@1.4.1+fa6c2f29eeb10566/node_modules/@base-ui/react/esm/internals/serializeValue.js
|
|
11436
|
+
function serializeValue(value) {
|
|
11437
|
+
if (value == null) return "";
|
|
11438
|
+
if (typeof value === "string") return value;
|
|
11439
|
+
try {
|
|
11440
|
+
return JSON.stringify(value);
|
|
11441
|
+
} catch {
|
|
11442
|
+
return String(value);
|
|
11443
|
+
}
|
|
11444
|
+
}
|
|
11445
|
+
//#endregion
|
|
11384
11446
|
//#region ../../node_modules/.bun/@base-ui+utils@0.2.8+b87d06724be9db7a/node_modules/@base-ui/utils/esm/useEnhancedClickHandler.js
|
|
11385
11447
|
/**
|
|
11386
11448
|
* Provides a cross-browser way to determine the type of the pointer used to click.
|
|
@@ -12429,8 +12491,9 @@ var COMPOSITE_KEYS = /* @__PURE__ */ new Set([
|
|
|
12429
12491
|
HOME,
|
|
12430
12492
|
"End"
|
|
12431
12493
|
]);
|
|
12494
|
+
var SHIFT = "Shift";
|
|
12432
12495
|
var MODIFIER_KEYS = /* @__PURE__ */ new Set([
|
|
12433
|
-
|
|
12496
|
+
SHIFT,
|
|
12434
12497
|
"Control",
|
|
12435
12498
|
"Alt",
|
|
12436
12499
|
"Meta"
|
|
@@ -18911,4 +18974,4 @@ function TooltipContent({ className, container, positionMethod, collisionBoundar
|
|
|
18911
18974
|
}
|
|
18912
18975
|
var createTooltipHandle = createTooltipHandle$1;
|
|
18913
18976
|
//#endregion
|
|
18914
|
-
export { useToolbarRootContext as $,
|
|
18977
|
+
export { useToolbarRootContext as $, inputClear as $n, fastComponent as $t, string as A, isMac as An, warn as Ar, useImplicitActiveTrigger as At, ARROW_LEFT as B, transitionStatusMapping as Bn, useRefWithInit as Br, useFloatingNodeId as Bt, literal as C, getFloatingFocusElement as Cn, cn as Cr, useHoverFloatingInteraction as Ct, preprocess as D, getTarget as Dn, EMPTY_ARRAY as Dr, createInitialPopupStoreState as Dt, object as E, contains as En, useRenderElement as Er, useFloatingRootContext as Et, IndexGuessBehavior as F, createLucideIcon as Fn, formatErrorMessage as Fr, useDismiss as Ft, HORIZONTAL_KEYS as G, createGenericEventDetails as Gn, isLastTraversableNode as Gr, CLICK_TRIGGER_IDENTIFIER as Gt, ARROW_UP as H, useOnMount as Hn, getWindow as Hr, useFloatingTree as Ht, useCompositeListItem as I, useTransitionStatus as In, mergeProps$1 as Ir, useClick as It, SHIFT as J, closePress as Jn, FocusGuard as Jt, HORIZONTAL_KEYS_WITH_EXTRA_KEYS as K, cancelOpen as Kn, DROPDOWN_COLLISION_AVOIDANCE as Kt, ALL_KEYS as L, useOpenChangeComplete as Ln, useIsoLayoutEffect as Lr, FloatingFocusManager as Lt, unknown as M, ownerDocument as Mn, useButton as Mr, useTriggerDataForwarding as Mt, _isoDateTime as N, useLabelableId as Nn, CompositeRootContext as Nr, useTriggerRegistration as Nt, record as O, isAndroid as On, EMPTY_OBJECT as Or, popupStoreSelectors as Ot, Separator as P, Check as Pn, useCompositeRootContext as Pr, platform as Pt, scrollIntoViewIfNeeded as Q, inputChange as Qn, useStore as Qt, ARROW_DOWN as R, useAnimationsFinished as Rn, SafeReact as Rr, FloatingNode as Rt, lazy$1 as S, stopEvent as Sn, buttonVariants as Sr, useHoverReferenceInteraction as St, number as T, activeElement as Tn, clsx as Tr, useSyncedFloatingRootContext as Tt, COMPOSITE_KEYS as U, useValueChanged as Un, isElement as Ur, FloatingTreeStore as Ut, ARROW_RIGHT as V, useAnimationFrame as Vn, getParentNode as Vr, useFloatingParentNodeId as Vt, HOME as W, createChangeEventDetails as Wn, isHTMLElement as Wr, FloatingPortal as Wt, VERTICAL_KEYS_WITH_EXTRA_KEYS as X, focusOut as Xn, ReactStore as Xt, VERTICAL_KEYS as Y, escapeKey as Yn, addEventListener as Yt, isNativeInput as Z, imperativeAction as Zn, Store as Zt, array as _, getMaxListIndex as _n, fieldValidityMapping as _r, safePolygon as _t, createTooltipHandle as a, useOnFirstRender as an, siblingOpen as ar, useAnchorPositioning as at, int as b, isListIndexDisabled as bn, useControlled as br, useListNavigation as bt, TooltipPositioner as c, getNextTabbable as cn, triggerPress as cr, CompositeList as ct, TooltipRoot as d, isOutsideEvent as dn, useFormContext as dr, CommonPopupDataAttributes as dt, fastComponentRef as en, inputPress as er, useAnchoredPopupScrollLock as et, isTimeZone as f, createGridCellMap as fn, useRegisterFieldControl as fr, popupStateMapping as ft, _enum as g, getGridNavigatedIndex as gn, DEFAULT_FIELD_STATE_ATTRIBUTES as gr, serializeValue as gt, ZodType as h, getGridCellIndices as hn, useId$1 as hr, useOpenInteractionType as ht, TooltipTrigger as i, useValueAsRef as in, outsidePress as ir, InternalBackdrop as it, union as j, isWebKit as jn, useMergedRefs as jr, useOpenStateTransitions as jt, strictObject as k, isFirefox as kn, NOOP as kr, PopupTriggerMap as kt, TooltipPortal as l, getTabbableAfterElement as ln, windowResize as lr, inertValue as lt, ZodISODateTime as m, getGridCellIndexOfCorner as mn, useBaseUiId as mr, triggerOpenStateMapping as mt, TooltipContent as n, require_builtin_esm_external_require_react as nn, listNavigation as nr, usePositioner as nt, TooltipArrow as o, Timeout as on, triggerFocus as or, adaptiveOrigin as ot, timeZoneOffsetMinutes as p, findNonDisabledListIndex as pn, useFieldRootContext as pr, pressableTriggerOpenStateMapping as pt, MODIFIER_KEYS as q, clearPress as qn, POPUP_COLLISION_AVOIDANCE as qt, TooltipProvider as r, createSelector as rn, none as rr, getDisabledMountTransitionStyles as rt, TooltipPopup as s, useTimeout as sn, triggerHover as sr, useDirection as st, Tooltip as t, require_with_selector as tn, itemPress as tr, useScrollLock as tt, TooltipTrigger$1 as u, getTabbableBeforeElement as un, useLabelableContext as ur, getPseudoElementBounds as ut, boolean as v, getMinListIndex as vn, visuallyHidden as vr, useTypeahead as vt, never as w, isInteractiveElement as wn, cva as wr, useFocus as wt, json as x, rectToClientRect as xn, Button as xr, useInteractions as xt, discriminatedUnion as y, isIndexOutOfListBounds as yn, visuallyHiddenInput as yr, useRole as yt, ARROW_KEYS as z, TransitionStatusDataAttributes as zn, useStableCallback as zr, FloatingTree as zt };
|
package/dist/browser/ui.css
CHANGED
|
@@ -643,6 +643,9 @@
|
|
|
643
643
|
|
|
644
644
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root), :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) *, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) :before, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) :after {
|
|
645
645
|
box-sizing: border-box;
|
|
646
|
+
--tw-translate-x: 0;
|
|
647
|
+
--tw-translate-y: 0;
|
|
648
|
+
--tw-translate-z: 0;
|
|
646
649
|
}
|
|
647
650
|
|
|
648
651
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) button, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) input, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) select, :where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) textarea {
|
|
@@ -1318,10 +1321,6 @@
|
|
|
1318
1321
|
max-height: calc(var(--spacing) * 64);
|
|
1319
1322
|
}
|
|
1320
1323
|
|
|
1321
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-96 {
|
|
1322
|
-
max-height: calc(var(--spacing) * 96);
|
|
1323
|
-
}
|
|
1324
|
-
|
|
1325
1324
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .max-h-\[70vh\] {
|
|
1326
1325
|
max-height: 70vh;
|
|
1327
1326
|
}
|
|
@@ -2443,16 +2442,6 @@
|
|
|
2443
2442
|
}
|
|
2444
2443
|
}
|
|
2445
2444
|
|
|
2446
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/5 {
|
|
2447
|
-
background-color: var(--ui-foreground);
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
2451
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/5 {
|
|
2452
|
-
background-color: color-mix(in oklab, var(--ui-foreground) 5%, transparent);
|
|
2453
|
-
}
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
2445
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .bg-foreground\/\[0\.03\] {
|
|
2457
2446
|
background-color: var(--ui-foreground);
|
|
2458
2447
|
}
|
|
@@ -3074,10 +3063,6 @@
|
|
|
3074
3063
|
text-underline-offset: 4px;
|
|
3075
3064
|
}
|
|
3076
3065
|
|
|
3077
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .opacity-0 {
|
|
3078
|
-
opacity: 0;
|
|
3079
|
-
}
|
|
3080
|
-
|
|
3081
3066
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .opacity-40 {
|
|
3082
3067
|
opacity: .4;
|
|
3083
3068
|
}
|
|
@@ -3799,7 +3784,7 @@
|
|
|
3799
3784
|
}
|
|
3800
3785
|
}
|
|
3801
3786
|
|
|
3802
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground
|
|
3787
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .hover\:bg-foreground\/7:hover {
|
|
3803
3788
|
background-color: var(--ui-foreground);
|
|
3804
3789
|
}
|
|
3805
3790
|
|
|
@@ -5197,10 +5182,6 @@
|
|
|
5197
5182
|
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .lg\:grid-cols-2 {
|
|
5198
5183
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
5199
5184
|
}
|
|
5200
|
-
|
|
5201
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .lg\:grid-cols-\[minmax\(280px\,360px\)_minmax\(0\,1fr\)\] {
|
|
5202
|
-
grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
|
|
5203
|
-
}
|
|
5204
5185
|
}
|
|
5205
5186
|
|
|
5206
5187
|
@media (min-width: 80rem) {
|
|
@@ -5351,7 +5332,7 @@
|
|
|
5351
5332
|
}
|
|
5352
5333
|
}
|
|
5353
5334
|
|
|
5354
|
-
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground
|
|
5335
|
+
:where(.open-flow-theme, .open-flow-workbench, .open-flow-canvas-root) .dark\:hover\:bg-foreground\/7:hover {
|
|
5355
5336
|
background-color: var(--ui-foreground);
|
|
5356
5337
|
}
|
|
5357
5338
|
|