@oomol-lab/open-flow 0.1.0-beta.70 → 0.1.0-beta.72
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/{FlowCanvas-CqtUDPGj.js → FlowCanvas-Dtf8_cQp.js} +31 -31
- package/dist/browser/{createResourceDialog-BAHYW9yu.js → createResourceDialog-BWJkjiOO.js} +2 -2
- package/dist/browser/{dialog-DcGOzUP2.js → dialog-CUy_fwx9.js} +4586 -4586
- package/dist/browser/{exportSvg-Dv5Qgrq7.js → exportSvg-BOoy7-Db.js} +1 -1
- package/dist/browser/flow-authoring.js +9467 -9467
- package/dist/browser/flow-change.d.ts +2 -14
- package/dist/browser/flow-change.js +23 -21
- package/dist/browser/{flowChanges-CYyehKer.js → flowChanges-CgSnSqqP.js} +5731 -5627
- package/dist/browser/{flowWorkspace-qYUZPJHR.js → flowWorkspace-Bf7H-r0t.js} +4 -4
- package/dist/browser/preview.js +5241 -5135
- package/dist/browser/workbench.js +1576 -1461
- package/dist/browser/{workbenchSelect-D8_vP2p5.js → workbenchSelect-C3e4J93X.js} +1 -1
- package/dist/command/index.js +22 -22
- package/dist/common/connector-proxy.d.ts +4 -1
- package/dist/common/control-api-conformance.js +23 -21
- package/dist/common/control-api.js +3454 -3452
- package/dist/common/control-requests.js +2032 -2032
- package/dist/common/decision.js +29 -6403
- package/dist/common/event-source-definition.d.ts +45 -0
- package/dist/common/event-source.d.ts +200 -1
- package/dist/common/event-source.js +22 -1
- package/dist/common/flow-schema.d.ts +2 -1
- package/dist/common/flow-schemaKeywords.d.ts +15 -0
- package/dist/common/flow-semantics.js +9797 -9795
- package/dist/common/integration-trigger.js +53 -6517
- package/dist/common/mcp.js +3389 -3389
- package/dist/common/openapi.js +29 -6493
- package/dist/common/poll-trigger.js +29 -6517
- package/dist/common/provider-triggers.js +6 -65
- package/dist/common/scheduler-checkpoint.d.ts +42 -0
- package/dist/common/scheduler-dependencies.d.ts +80 -0
- package/dist/common/scheduler-node-execution.d.ts +75 -0
- package/dist/common/scheduler.d.ts +5 -58
- package/dist/common/scheduler.js +575 -471
- package/dist/common/webhook-trigger.js +5 -6449
- package/dist/common/workflow.js +31 -916
- package/package.json +1 -1
|
@@ -14583,21 +14583,14 @@ function connectionNodeBounds(node) {
|
|
|
14583
14583
|
height: node.measured.height
|
|
14584
14584
|
};
|
|
14585
14585
|
}
|
|
14586
|
-
/**
|
|
14587
|
-
function
|
|
14588
|
-
const handles = [...node?.internals.handleBounds?.source ?? [], ...node?.internals.handleBounds?.target ?? []];
|
|
14589
|
-
const handle = handles.find((item) => item.id === handleId);
|
|
14590
|
-
if (!handle) return 0;
|
|
14591
|
-
return handles.filter((item) => item.position === handle.position && item.y < handle.y).length;
|
|
14592
|
-
}
|
|
14593
|
-
/** Return connections use fixed side offsets and a lane below the output or above a lower row. */
|
|
14594
|
-
function getConnectionPath({ sourceBounds, targetBounds, sourcePortIndex = 0, targetPortIndex = 0, ...params }) {
|
|
14586
|
+
/** Return connections offset both side turns and horizontal lanes by their endpoint distance. */
|
|
14587
|
+
function getConnectionPath({ sourceBounds, targetBounds, ...params }) {
|
|
14595
14588
|
const { sourceX, sourceY, targetX, targetY, sourcePosition = Position.Bottom, targetPosition = Position.Top } = params;
|
|
14596
14589
|
const reverse = sourcePosition === Position.Left && targetPosition === Position.Right;
|
|
14597
14590
|
const horizontal = sourcePosition === Position.Right && targetPosition === Position.Left || reverse;
|
|
14598
|
-
const
|
|
14599
|
-
const
|
|
14600
|
-
if (!horizontal ||
|
|
14591
|
+
const outputX = reverse ? targetX : sourceX;
|
|
14592
|
+
const inputX = reverse ? sourceX : targetX;
|
|
14593
|
+
if (!horizontal || outputX < inputX) {
|
|
14601
14594
|
const [path, x, y] = getBezierPath(params);
|
|
14602
14595
|
return [
|
|
14603
14596
|
path,
|
|
@@ -14605,24 +14598,34 @@ function getConnectionPath({ sourceBounds, targetBounds, sourcePortIndex = 0, ta
|
|
|
14605
14598
|
y
|
|
14606
14599
|
];
|
|
14607
14600
|
}
|
|
14608
|
-
const clearance = 40 + Math.max(sourcePortIndex, targetPortIndex) * 12;
|
|
14609
|
-
const radius = 16;
|
|
14610
14601
|
const outputBounds = reverse ? targetBounds : sourceBounds;
|
|
14611
14602
|
const inputBounds = reverse ? sourceBounds : targetBounds;
|
|
14612
|
-
const
|
|
14613
|
-
const
|
|
14614
|
-
const
|
|
14615
|
-
const
|
|
14616
|
-
const
|
|
14617
|
-
const
|
|
14603
|
+
const outputY = reverse ? targetY : sourceY;
|
|
14604
|
+
const inputY = reverse ? sourceY : targetY;
|
|
14605
|
+
const minimumOffset = 40;
|
|
14606
|
+
const departureOffset = minimumOffset + (Math.abs(inputX - outputX) + Math.abs(inputY - outputY)) * .1;
|
|
14607
|
+
const outputBottom = Math.max(outputY, outputBounds ? outputBounds.y + outputBounds.height : outputY);
|
|
14608
|
+
const inputBottom = inputBounds ? inputBounds.y + inputBounds.height : outputBottom;
|
|
14609
|
+
let arrivalOffset = departureOffset;
|
|
14610
|
+
let laneY = Math.max(outputBottom, inputBottom) + departureOffset;
|
|
14611
|
+
if (inputBounds) {
|
|
14612
|
+
const reflectedOffset = inputBounds.width - departureOffset;
|
|
14613
|
+
const upperLane = inputBounds.y - reflectedOffset;
|
|
14614
|
+
if (reflectedOffset >= minimumOffset && upperLane >= outputBottom + departureOffset) {
|
|
14615
|
+
arrivalOffset = reflectedOffset;
|
|
14616
|
+
laneY = upperLane;
|
|
14617
|
+
}
|
|
14618
|
+
}
|
|
14619
|
+
const right = outputX + departureOffset;
|
|
14620
|
+
const left = inputX - arrivalOffset;
|
|
14618
14621
|
const points = [
|
|
14619
14622
|
{
|
|
14620
|
-
x:
|
|
14621
|
-
y:
|
|
14623
|
+
x: outputX,
|
|
14624
|
+
y: outputY
|
|
14622
14625
|
},
|
|
14623
14626
|
{
|
|
14624
14627
|
x: right,
|
|
14625
|
-
y:
|
|
14628
|
+
y: outputY
|
|
14626
14629
|
},
|
|
14627
14630
|
{
|
|
14628
14631
|
x: right,
|
|
@@ -14634,14 +14637,15 @@ function getConnectionPath({ sourceBounds, targetBounds, sourcePortIndex = 0, ta
|
|
|
14634
14637
|
},
|
|
14635
14638
|
{
|
|
14636
14639
|
x: left,
|
|
14637
|
-
y:
|
|
14640
|
+
y: inputY
|
|
14638
14641
|
},
|
|
14639
14642
|
{
|
|
14640
|
-
x:
|
|
14641
|
-
y:
|
|
14643
|
+
x: inputX,
|
|
14644
|
+
y: inputY
|
|
14642
14645
|
}
|
|
14643
14646
|
].filter((point, index, all) => index === 0 || point.x !== all[index - 1].x || point.y !== all[index - 1].y);
|
|
14644
14647
|
if (reverse) points.reverse();
|
|
14648
|
+
const radius = 16;
|
|
14645
14649
|
let path = `M ${points[0].x} ${points[0].y}`;
|
|
14646
14650
|
for (let i = 1; i < points.length - 1; i++) {
|
|
14647
14651
|
const previous = points[i - 1];
|
|
@@ -14694,8 +14698,6 @@ function BasicEdge(props) {
|
|
|
14694
14698
|
const targetNode = useInternalNode(props.target);
|
|
14695
14699
|
const [path, labelX, labelY] = getConnectionPath({
|
|
14696
14700
|
sourceBounds: connectionNodeBounds(sourceNode),
|
|
14697
|
-
sourcePortIndex: connectionPortIndex(sourceNode, props.sourceHandleId),
|
|
14698
|
-
targetPortIndex: connectionPortIndex(targetNode, props.targetHandleId),
|
|
14699
14701
|
targetBounds: connectionNodeBounds(targetNode),
|
|
14700
14702
|
sourceX: props.sourceX,
|
|
14701
14703
|
sourceY: props.sourceY,
|
|
@@ -21661,12 +21663,10 @@ function CanvasTopLeftControls({ children }) {
|
|
|
21661
21663
|
}
|
|
21662
21664
|
//#endregion
|
|
21663
21665
|
//#region src/canvas/browser/graph/ReactFlowContainer/ConnectingLine.tsx
|
|
21664
|
-
var ConnectionLine = ({
|
|
21666
|
+
var ConnectionLine = ({ fromX, fromY, fromPosition, fromNode: rfStartNode, toX, toY, toPosition, toNode: rfEndNode, connectionLineStyle }) => {
|
|
21665
21667
|
const canvasStore = useCanvasStore();
|
|
21666
21668
|
const [edgePath] = getConnectionPath({
|
|
21667
21669
|
sourceBounds: connectionNodeBounds(rfStartNode),
|
|
21668
|
-
sourcePortIndex: connectionPortIndex(rfStartNode, fromHandle.id),
|
|
21669
|
-
targetPortIndex: connectionPortIndex(rfEndNode, toHandle?.id),
|
|
21670
21670
|
targetBounds: connectionNodeBounds(rfEndNode),
|
|
21671
21671
|
sourceX: fromX,
|
|
21672
21672
|
sourceY: fromY,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as useTranslate } from "./dist-BFmpkX4P.js";
|
|
2
2
|
import { vr as Button } from "./tooltip-wZJRB9oP.js";
|
|
3
|
-
import { It as Input, a as DialogFooter, d as Field, f as FieldDescription, h as FieldLabel, i as DialogDescription, l as Icon, m as FieldGroup, n as DialogClose, o as DialogHeader, p as FieldError, r as DialogContent, s as DialogTitle, t as Dialog, u as Spinner } from "./dialog-
|
|
4
|
-
import { t as WorkbenchSelect } from "./workbenchSelect-
|
|
3
|
+
import { It as Input, a as DialogFooter, d as Field, f as FieldDescription, h as FieldLabel, i as DialogDescription, l as Icon, m as FieldGroup, n as DialogClose, o as DialogHeader, p as FieldError, r as DialogContent, s as DialogTitle, t as Dialog, u as Spinner } from "./dialog-CUy_fwx9.js";
|
|
4
|
+
import { t as WorkbenchSelect } from "./workbenchSelect-C3e4J93X.js";
|
|
5
5
|
import { useEffect, useRef, useState } from "react";
|
|
6
6
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region src/workbench/browser/runtime/shell/createResourceDialog.tsx
|