@uipath/apollo-react 3.63.0-pr431.3e8713c → 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.
|
@@ -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: [
|