@uipath/apollo-react 3.63.0-pr431.329c320 → 3.63.0-pr431.3f2adb2
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/canvas/components/CanvasPerformance.stories.cjs +4 -3
- package/dist/canvas/components/CanvasPerformance.stories.d.ts.map +1 -1
- package/dist/canvas/components/CanvasPerformance.stories.js +4 -3
- package/dist/canvas/components/StageNode/StageEdge.cjs +2 -2
- package/dist/canvas/components/StageNode/StageEdge.js +2 -2
- package/package.json +3 -3
|
@@ -226,6 +226,9 @@ const CanvasPerformanceStory = ()=>{
|
|
|
226
226
|
const edgeTypes = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
227
227
|
stage: StageEdge_cjs_namespaceObject.StageEdge
|
|
228
228
|
}), []);
|
|
229
|
+
const defaultEdgeOptions = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
230
|
+
type: 'stage'
|
|
231
|
+
}), []);
|
|
229
232
|
const [stageCount, setStageCount] = (0, external_react_namespaceObject.useState)(DEFAULT_STAGE_COUNT);
|
|
230
233
|
const [nodes, setNodes, onNodesChange] = (0, react_cjs_namespaceObject.useNodesState)(createPerformanceStageNodes(DEFAULT_STAGE_COUNT));
|
|
231
234
|
const [edges, setEdges, onEdgesChange] = (0, react_cjs_namespaceObject.useEdgesState)(createPerformanceStageEdges(DEFAULT_STAGE_COUNT));
|
|
@@ -257,9 +260,7 @@ const CanvasPerformanceStory = ()=>{
|
|
|
257
260
|
edgeTypes: edgeTypes,
|
|
258
261
|
mode: "design",
|
|
259
262
|
connectionMode: react_cjs_namespaceObject.ConnectionMode.Strict,
|
|
260
|
-
defaultEdgeOptions:
|
|
261
|
-
type: 'stage'
|
|
262
|
-
},
|
|
263
|
+
defaultEdgeOptions: defaultEdgeOptions,
|
|
263
264
|
connectionLineComponent: StageConnectionEdge_cjs_namespaceObject.StageConnectionEdge,
|
|
264
265
|
elevateEdgesOnSelect: true,
|
|
265
266
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CanvasPerformance.stories.d.ts","sourceRoot":"","sources":["../../../src/canvas/components/CanvasPerformance.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAmBvD,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"CanvasPerformance.stories.d.ts","sourceRoot":"","sources":["../../../src/canvas/components/CanvasPerformance.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAmBvD,QAAA,MAAM,IAAI,EAAE,IAKX,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAgPnC,eAAO,MAAM,aAAa,EAAE,KAW3B,CAAC"}
|
|
@@ -197,6 +197,9 @@ const CanvasPerformanceStory = ()=>{
|
|
|
197
197
|
const edgeTypes = useMemo(()=>({
|
|
198
198
|
stage: StageEdge
|
|
199
199
|
}), []);
|
|
200
|
+
const defaultEdgeOptions = useMemo(()=>({
|
|
201
|
+
type: 'stage'
|
|
202
|
+
}), []);
|
|
200
203
|
const [stageCount, setStageCount] = useState(DEFAULT_STAGE_COUNT);
|
|
201
204
|
const [nodes, setNodes, onNodesChange] = useNodesState(createPerformanceStageNodes(DEFAULT_STAGE_COUNT));
|
|
202
205
|
const [edges, setEdges, onEdgesChange] = useEdgesState(createPerformanceStageEdges(DEFAULT_STAGE_COUNT));
|
|
@@ -228,9 +231,7 @@ const CanvasPerformanceStory = ()=>{
|
|
|
228
231
|
edgeTypes: edgeTypes,
|
|
229
232
|
mode: "design",
|
|
230
233
|
connectionMode: ConnectionMode.Strict,
|
|
231
|
-
defaultEdgeOptions:
|
|
232
|
-
type: 'stage'
|
|
233
|
-
},
|
|
234
|
+
defaultEdgeOptions: defaultEdgeOptions,
|
|
234
235
|
connectionLineComponent: StageConnectionEdge,
|
|
235
236
|
elevateEdgesOnSelect: true,
|
|
236
237
|
children: [
|
|
@@ -146,9 +146,9 @@ function StageEdgeComponent({ sourceX, sourceY, targetX, targetY, sourcePosition
|
|
|
146
146
|
const targetNode = state.nodeLookup.get(rest.target);
|
|
147
147
|
return {
|
|
148
148
|
sourceX: sourceNode ? sourceNode.position.x + (sourceNode.measured?.width ?? 0) : sourceX,
|
|
149
|
-
sourceY: sourceNode
|
|
149
|
+
sourceY: sourceNode ? sourceNode.position.y + 32 : sourceY,
|
|
150
150
|
targetX: targetNode?.position.x ?? targetX,
|
|
151
|
-
targetY: targetNode
|
|
151
|
+
targetY: targetNode ? targetNode.position.y + 32 : targetY
|
|
152
152
|
};
|
|
153
153
|
}, stageEdgeGeometryEquality);
|
|
154
154
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(StageEdgeInnerMemo, {
|
|
@@ -107,9 +107,9 @@ function StageEdgeComponent({ sourceX, sourceY, targetX, targetY, sourcePosition
|
|
|
107
107
|
const targetNode = state.nodeLookup.get(rest.target);
|
|
108
108
|
return {
|
|
109
109
|
sourceX: sourceNode ? sourceNode.position.x + (sourceNode.measured?.width ?? 0) : sourceX,
|
|
110
|
-
sourceY: sourceNode
|
|
110
|
+
sourceY: sourceNode ? sourceNode.position.y + 32 : sourceY,
|
|
111
111
|
targetX: targetNode?.position.x ?? targetX,
|
|
112
|
-
targetY: targetNode
|
|
112
|
+
targetY: targetNode ? targetNode.position.y + 32 : targetY
|
|
113
113
|
};
|
|
114
114
|
}, stageEdgeGeometryEquality);
|
|
115
115
|
return /*#__PURE__*/ jsx(StageEdgeInnerMemo, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.63.0-pr431.
|
|
3
|
+
"version": "3.63.0-pr431.3f2adb2",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
"use-sync-external-store": "^1.2.0",
|
|
201
201
|
"zod": "^4.3.5",
|
|
202
202
|
"zustand": "^5.0.9",
|
|
203
|
-
"@uipath/apollo-
|
|
204
|
-
"@uipath/apollo-
|
|
203
|
+
"@uipath/apollo-core": "5.9.0",
|
|
204
|
+
"@uipath/apollo-wind": "1.5.0"
|
|
205
205
|
},
|
|
206
206
|
"devDependencies": {
|
|
207
207
|
"@lingui/cli": "^5.6.1",
|