@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
package/README.md
CHANGED
|
@@ -8,6 +8,8 @@ Supply `draft`, `presentation` (or null), `language` and `theme`; the entry also
|
|
|
8
8
|
`Draft`, `Presentation` and `OpenFlowPreviewProps` types. Give its parent an explicit height.
|
|
9
9
|
It supports temporary node movement, restore layout, read-only properties without
|
|
10
10
|
fetching or saving a workflow. Use a new React key to reset the session when switching examples.
|
|
11
|
+
Provider artwork and names load through the resource-cache App Catalog singleton. Hosts using the
|
|
12
|
+
same singleton share catalog requests, freshness and validation; no Provider prop is required.
|
|
11
13
|
A Shadow DOM host must load the stylesheet inside its shadow root before mounting the component;
|
|
12
14
|
Vite hosts can import `@oomol-lab/open-flow/preview.css?url` for the stylesheet URL.
|
|
13
15
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as derive, l as val, r as combine } from "./dist-bO8nvHFH.js";
|
|
2
|
-
import { $ as useToolbarRootContext, $
|
|
2
|
+
import { $ as useToolbarRootContext, $t as fastComponent, An as isMac, Ar as warn, At as useImplicitActiveTrigger, Bn as transitionStatusMapping, Br as useRefWithInit, Bt as useFloatingNodeId, Cr as cn, Ct as useHoverFloatingInteraction, Dr as EMPTY_ARRAY, Dt as createInitialPopupStoreState, En as contains, Er as useRenderElement, Fn as createLucideIcon, Fr as formatErrorMessage, Ft as useDismiss, Gr as isLastTraversableNode, Gt as CLICK_TRIGGER_IDENTIFIER, Hn as useOnMount, Ht as useFloatingTree, I as useCompositeListItem, In as useTransitionStatus, Ir as mergeProps, It as useClick, Jn as closePress, Jt as FocusGuard, Kn as cancelOpen, Kt as DROPDOWN_COLLISION_AVOIDANCE, Ln as useOpenChangeComplete, Lr as useIsoLayoutEffect, Lt as FloatingFocusManager, Mn as ownerDocument, Mr as useButton, Mt as useTriggerDataForwarding, Nt as useTriggerRegistration, Or as EMPTY_OBJECT, Ot as popupStoreSelectors, P as Separator, Pn as Check, Pr as useCompositeRootContext, Rn as useAnimationsFinished, Rr as SafeReact, Rt as FloatingNode, St as useHoverReferenceInteraction, Tr as clsx, Tt as useSyncedFloatingRootContext, U as COMPOSITE_KEYS, Un as useValueChanged, Ut as FloatingTreeStore, Vr as getParentNode, Vt as useFloatingParentNodeId, Wn as createChangeEventDetails, Wr as isHTMLElement$1, Wt as FloatingPortal, Xn as focusOut, Xt as ReactStore, Zn as imperativeAction, _r as fieldValidityMapping, _t as safePolygon, an as useOnFirstRender, ar as siblingOpen, at as useAnchorPositioning, br as useControlled, bt as useListNavigation, cn as getNextTabbable, ct as CompositeList, dn as isOutsideEvent, dr as useFormContext, en as fastComponentRef, et as useAnchoredPopupScrollLock, fr as useRegisterFieldControl, ft as popupStateMapping, hr as useId$1, ht as useOpenInteractionType, it as InternalBackdrop, jr as useMergedRefs, jt as useOpenStateTransitions, kr as NOOP, kt as PopupTriggerMap, ln as getTabbableAfterElement, lt as inertValue, mr as useBaseUiId, mt as triggerOpenStateMapping, nt as usePositioner, on as Timeout, ot as adaptiveOrigin, pr as useFieldRootContext, pt as pressableTriggerOpenStateMapping, qt as POPUP_COLLISION_AVOIDANCE, rn as createSelector, rr as none, rt as getDisabledMountTransitionStyles, sn as useTimeout, sr as triggerHover, st as useDirection, tr as itemPress, un as getTabbableBeforeElement, ur as useLabelableContext, ut as getPseudoElementBounds, vr as visuallyHidden, vt as useTypeahead, wt as useFocus, xr as Button, xt as useInteractions, yr as visuallyHiddenInput, yt as useRole, zr as useStableCallback, zt as FloatingTree } from "./tooltip-BDcVTNpu.js";
|
|
3
3
|
import * as React from "react";
|
|
4
4
|
import reactExports, { createContext, forwardRef, memo, useCallback, useContext, useEffect, useImperativeHandle, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1217,6 +1217,18 @@ var en_default$1 = {
|
|
|
1217
1217
|
"Europe/Moscow": "Moscow",
|
|
1218
1218
|
"Australia/Sydney": "Sydney",
|
|
1219
1219
|
"Pacific/Auckland": "Auckland"
|
|
1220
|
+
},
|
|
1221
|
+
layoutDirection: {
|
|
1222
|
+
"title": "Layout direction",
|
|
1223
|
+
"horizontal": "Horizontal",
|
|
1224
|
+
"vertical": "Vertical",
|
|
1225
|
+
"verticalDescription": "Flow from top to bottom, with branches side by side.",
|
|
1226
|
+
"horizontalDescription": "Flow from left to right, with branches stacked."
|
|
1227
|
+
},
|
|
1228
|
+
nodeWidth: {
|
|
1229
|
+
"resizeLeft": "Resize from left",
|
|
1230
|
+
"resizeRight": "Resize from right",
|
|
1231
|
+
"reset": "Restore automatic width"
|
|
1220
1232
|
}
|
|
1221
1233
|
};
|
|
1222
1234
|
var fr_default$1 = {
|
|
@@ -1860,6 +1872,18 @@ var fr_default$1 = {
|
|
|
1860
1872
|
"Europe/Moscow": "Moscou",
|
|
1861
1873
|
"Australia/Sydney": "Sydney",
|
|
1862
1874
|
"Pacific/Auckland": "Auckland"
|
|
1875
|
+
},
|
|
1876
|
+
layoutDirection: {
|
|
1877
|
+
"title": "Sens du diagramme",
|
|
1878
|
+
"horizontal": "Horizontal",
|
|
1879
|
+
"vertical": "Vertical",
|
|
1880
|
+
"verticalDescription": "De haut en bas, avec les branches côte à côte.",
|
|
1881
|
+
"horizontalDescription": "De gauche à droite, avec les branches superposées."
|
|
1882
|
+
},
|
|
1883
|
+
nodeWidth: {
|
|
1884
|
+
"resizeLeft": "Redimensionner depuis la gauche",
|
|
1885
|
+
"resizeRight": "Redimensionner depuis la droite",
|
|
1886
|
+
"reset": "Rétablir la largeur automatique"
|
|
1863
1887
|
}
|
|
1864
1888
|
};
|
|
1865
1889
|
var ja_default$1 = {
|
|
@@ -2503,6 +2527,18 @@ var ja_default$1 = {
|
|
|
2503
2527
|
"Europe/Moscow": "モスクワ",
|
|
2504
2528
|
"Australia/Sydney": "シドニー",
|
|
2505
2529
|
"Pacific/Auckland": "オークランド"
|
|
2530
|
+
},
|
|
2531
|
+
layoutDirection: {
|
|
2532
|
+
"title": "レイアウトの方向",
|
|
2533
|
+
"horizontal": "横方向",
|
|
2534
|
+
"vertical": "縦方向",
|
|
2535
|
+
"verticalDescription": "上から下に進み、分岐を横に並べます。",
|
|
2536
|
+
"horizontalDescription": "左から右に進み、分岐を縦に並べます。"
|
|
2537
|
+
},
|
|
2538
|
+
nodeWidth: {
|
|
2539
|
+
"resizeLeft": "左端から幅を変更",
|
|
2540
|
+
"resizeRight": "右端から幅を変更",
|
|
2541
|
+
"reset": "幅を自動調整に戻す"
|
|
2506
2542
|
}
|
|
2507
2543
|
};
|
|
2508
2544
|
var ko_default$1 = {
|
|
@@ -3146,6 +3182,18 @@ var ko_default$1 = {
|
|
|
3146
3182
|
"Europe/Moscow": "모스크바",
|
|
3147
3183
|
"Australia/Sydney": "시드니",
|
|
3148
3184
|
"Pacific/Auckland": "오클랜드"
|
|
3185
|
+
},
|
|
3186
|
+
layoutDirection: {
|
|
3187
|
+
"title": "레이아웃 방향",
|
|
3188
|
+
"horizontal": "가로",
|
|
3189
|
+
"vertical": "세로",
|
|
3190
|
+
"verticalDescription": "위에서 아래로 진행하며 분기를 가로로 배치합니다.",
|
|
3191
|
+
"horizontalDescription": "왼쪽에서 오른쪽으로 진행하며 분기를 세로로 배치합니다."
|
|
3192
|
+
},
|
|
3193
|
+
nodeWidth: {
|
|
3194
|
+
"resizeLeft": "왼쪽에서 너비 조절",
|
|
3195
|
+
"resizeRight": "오른쪽에서 너비 조절",
|
|
3196
|
+
"reset": "자동 너비 복원"
|
|
3149
3197
|
}
|
|
3150
3198
|
};
|
|
3151
3199
|
var ru_default$1 = {
|
|
@@ -3789,6 +3837,18 @@ var ru_default$1 = {
|
|
|
3789
3837
|
"Europe/Moscow": "Москва",
|
|
3790
3838
|
"Australia/Sydney": "Сидней",
|
|
3791
3839
|
"Pacific/Auckland": "Окленд"
|
|
3840
|
+
},
|
|
3841
|
+
layoutDirection: {
|
|
3842
|
+
"title": "Направление схемы",
|
|
3843
|
+
"horizontal": "Горизонтально",
|
|
3844
|
+
"vertical": "Вертикально",
|
|
3845
|
+
"verticalDescription": "Сверху вниз, ветви расположены рядом.",
|
|
3846
|
+
"horizontalDescription": "Слева направо, ветви расположены друг под другом."
|
|
3847
|
+
},
|
|
3848
|
+
nodeWidth: {
|
|
3849
|
+
"resizeLeft": "Изменить ширину слева",
|
|
3850
|
+
"resizeRight": "Изменить ширину справа",
|
|
3851
|
+
"reset": "Восстановить автоматическую ширину"
|
|
3792
3852
|
}
|
|
3793
3853
|
};
|
|
3794
3854
|
var zh_CN_default$1 = {
|
|
@@ -4432,6 +4492,18 @@ var zh_CN_default$1 = {
|
|
|
4432
4492
|
"Europe/Moscow": "莫斯科",
|
|
4433
4493
|
"Australia/Sydney": "悉尼",
|
|
4434
4494
|
"Pacific/Auckland": "奥克兰"
|
|
4495
|
+
},
|
|
4496
|
+
layoutDirection: {
|
|
4497
|
+
"title": "布局方向",
|
|
4498
|
+
"horizontal": "横向",
|
|
4499
|
+
"vertical": "竖向",
|
|
4500
|
+
"verticalDescription": "从上向下展开,分支左右排列。",
|
|
4501
|
+
"horizontalDescription": "从左向右展开,分支上下排列。"
|
|
4502
|
+
},
|
|
4503
|
+
nodeWidth: {
|
|
4504
|
+
"resizeLeft": "调整左侧宽度",
|
|
4505
|
+
"resizeRight": "调整右侧宽度",
|
|
4506
|
+
"reset": "恢复自动宽度"
|
|
4435
4507
|
}
|
|
4436
4508
|
};
|
|
4437
4509
|
var zh_TW_default$1 = {
|
|
@@ -5075,6 +5147,18 @@ var zh_TW_default$1 = {
|
|
|
5075
5147
|
"Europe/Moscow": "莫斯科",
|
|
5076
5148
|
"Australia/Sydney": "雪梨",
|
|
5077
5149
|
"Pacific/Auckland": "奧克蘭"
|
|
5150
|
+
},
|
|
5151
|
+
layoutDirection: {
|
|
5152
|
+
"title": "佈局方向",
|
|
5153
|
+
"horizontal": "橫向",
|
|
5154
|
+
"vertical": "直向",
|
|
5155
|
+
"verticalDescription": "從上往下展開,分支左右排列。",
|
|
5156
|
+
"horizontalDescription": "從左往右展開,分支上下排列。"
|
|
5157
|
+
},
|
|
5158
|
+
nodeWidth: {
|
|
5159
|
+
"resizeLeft": "調整左側寬度",
|
|
5160
|
+
"resizeRight": "調整右側寬度",
|
|
5161
|
+
"reset": "恢復自動寬度"
|
|
5078
5162
|
}
|
|
5079
5163
|
};
|
|
5080
5164
|
//#endregion
|
|
@@ -11371,6 +11455,11 @@ function PopoverPanelContent({ title, sectionTitle, closeLabel, footer, children
|
|
|
11371
11455
|
});
|
|
11372
11456
|
}
|
|
11373
11457
|
//#endregion
|
|
11458
|
+
//#region src/canvas/common/direction.ts
|
|
11459
|
+
function canvasDirection(value) {
|
|
11460
|
+
return value === "vertical" ? "vertical" : "horizontal";
|
|
11461
|
+
}
|
|
11462
|
+
//#endregion
|
|
11374
11463
|
//#region src/canvas/browser/base/wrapLayout.ts
|
|
11375
11464
|
var columnsPerRow = 6;
|
|
11376
11465
|
var rowGap = 160;
|
|
@@ -11482,7 +11571,8 @@ var extra_icon_default = {
|
|
|
11482
11571
|
"width": 24,
|
|
11483
11572
|
"height": 24
|
|
11484
11573
|
},
|
|
11485
|
-
"globe": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"/></g>" }
|
|
11574
|
+
"globe": { "body": "<g fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M12 2a14.5 14.5 0 0 0 0 20a14.5 14.5 0 0 0 0-20M2 12h20\"/></g>" },
|
|
11575
|
+
"list-filter": { "body": "<path fill=\"none\" stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" d=\"M2 5h20M6 12h12m-9 7h6\"/>" }
|
|
11486
11576
|
},
|
|
11487
11577
|
"width": 24,
|
|
11488
11578
|
"height": 24
|
|
@@ -11877,4 +11967,4 @@ function SpriteIcon({ sprite, ...props }) {
|
|
|
11877
11967
|
});
|
|
11878
11968
|
}
|
|
11879
11969
|
//#endregion
|
|
11880
|
-
export {
|
|
11970
|
+
export { zh_CN_default$1 as $, DropdownMenuSeparator as A, MenuPositioner as B, DropdownMenuCheckboxItem as C, DropdownMenuLabel as D, DropdownMenuItem as E, isElementDisabled as F, ContextMenuRootContext as G, MenuPopup as H, findRootOwnerId as I, useMenuRootContext as J, useContextMenuRootContext as K, CompositeItem as L, DropdownMenuSubContent as M, DropdownMenuSubTrigger as N, DropdownMenuRadioGroup as O, DropdownMenuTrigger as P, zh_TW_default$1 as Q, useCompositeItem as R, DropdownMenu as S, DropdownMenuGroup as T, MenuItem as U, MenuPortal as V, MenuGroup as W, waitBranchDescription as X, uiLocales as Y, waitBranchLocales as Z, PopoverTrigger as _, spriteIcon as a, I18n as at, VirtualScrollArea as b, useIconifyData as c, useAriaLabelledBy as ct, Popover as d, ru_default$1 as et, PopoverContent as f, PopoverTitle as g, PopoverPanelContent as h, placeholderIcon as i, en_default$1 as it, DropdownMenuSub as j, DropdownMenuRadioItem as k, wrapLayout as l, useFieldItemContext as lt, PopoverHeader as m, IconImageCrossOriginContext as n, ja_default$1 as nt, IconifyProvider as o, providerIconAppearance as ot, PopoverDescription as p, MenuRootContext as q, imageIcon as r, fr_default$1 as rt, useIconifyCollectionLoader as s, Checkbox as st, ContentIcon as t, ko_default$1 as tt, canvasDirection as u, IconThemeContext as ut, NativeScrollArea as v, DropdownMenuContent as w, Z as x, ScrollArea as y, MenuRoot as z };
|