@uipath/apollo-react 3.68.3-pr431.a5a0d21 → 3.68.3-pr431.d5ed34a

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.
@@ -29,12 +29,9 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const external_react_namespaceObject = require("react");
31
31
  const external_StageNode_cjs_namespaceObject = require("./StageNode.cjs");
32
- const StageNodeWrapper = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ id, selected, dragging, width, data })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_cjs_namespaceObject.StageNode, {
33
- id: id,
34
- selected: selected,
35
- dragging: dragging,
36
- width: width,
37
- ...data
32
+ const StageNodeWrapper = /*#__PURE__*/ (0, external_react_namespaceObject.memo)((props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_cjs_namespaceObject.StageNode, {
33
+ ...props,
34
+ ...props.data
38
35
  }));
39
36
  exports.StageNodeWrapper = __webpack_exports__.StageNodeWrapper;
40
37
  for(var __rspack_i in __webpack_exports__)if (-1 === [
@@ -1,4 +1,4 @@
1
1
  import type { Node, NodeProps } from '../../xyflow/react.ts';
2
2
  import type { StageNodeBaseProps } from './StageNode.types';
3
- export declare const StageNodeWrapper: import("react").MemoExoticComponent<({ id, selected, dragging, width, data, }: NodeProps<Node<Omit<StageNodeBaseProps, "dragging" | "id" | "selected">, "stage">>) => import("react/jsx-runtime").JSX.Element>;
3
+ export declare const StageNodeWrapper: import("react").MemoExoticComponent<(props: NodeProps<Node<Omit<StageNodeBaseProps, "dragging" | "id" | "selected">, "stage">>) => import("react/jsx-runtime").JSX.Element>;
4
4
  //# sourceMappingURL=StageNode.stories.utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageNode.stories.utils.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAGhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,iFAOxB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,IAAI,GAAG,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC,6CAGtF,CAAC"}
1
+ {"version":3,"file":"StageNode.stories.utils.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.utils.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAGhF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,gBAAgB,8CACnB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,IAAI,GAAG,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC,6CAG3F,CAAC"}
@@ -1,11 +1,8 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { memo } from "react";
3
3
  import { StageNode } from "./StageNode.js";
4
- const StageNodeWrapper = /*#__PURE__*/ memo(({ id, selected, dragging, width, data })=>/*#__PURE__*/ jsx(StageNode, {
5
- id: id,
6
- selected: selected,
7
- dragging: dragging,
8
- width: width,
9
- ...data
4
+ const StageNodeWrapper = /*#__PURE__*/ memo((props)=>/*#__PURE__*/ jsx(StageNode, {
5
+ ...props,
6
+ ...props.data
10
7
  }));
11
8
  export { StageNodeWrapper };
@@ -41,9 +41,8 @@ const StageTaskDragOverlay = ({ activeTask, isActiveTaskParallel, taskWidthStyle
41
41
  }), [
42
42
  zoom
43
43
  ]);
44
- if (!activeTask) return null;
45
44
  return /*#__PURE__*/ (0, external_react_dom_namespaceObject.createPortal)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(core_namespaceObject.DragOverlay, {
46
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
45
+ children: activeTask ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
47
46
  style: dragOverlayStyle,
48
47
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_styles_cjs_namespaceObject.StageTask, {
49
48
  selected: true,
@@ -57,7 +56,7 @@ const StageTaskDragOverlay = ({ activeTask, isActiveTaskParallel, taskWidthStyle
57
56
  isDragging: true
58
57
  })
59
58
  })
60
- })
59
+ }) : null
61
60
  }), document.body);
62
61
  };
63
62
  exports.StageTaskDragOverlay = __webpack_exports__.StageTaskDragOverlay;
@@ -1,3 +1,3 @@
1
1
  import type { StageTaskDragOverlayProps } from './StageNode.types';
2
- export declare const StageTaskDragOverlay: ({ activeTask, isActiveTaskParallel, taskWidthStyle, }: StageTaskDragOverlayProps) => import("react").ReactPortal | null;
2
+ export declare const StageTaskDragOverlay: ({ activeTask, isActiveTaskParallel, taskWidthStyle, }: StageTaskDragOverlayProps) => import("react").ReactPortal;
3
3
  //# sourceMappingURL=StageTaskDragOverlay.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StageTaskDragOverlay.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageTaskDragOverlay.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,oBAAoB,GAAI,uDAIlC,yBAAyB,uCA4B3B,CAAC"}
1
+ {"version":3,"file":"StageTaskDragOverlay.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageTaskDragOverlay.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAEnE,eAAO,MAAM,oBAAoB,GAAI,uDAIlC,yBAAyB,gCA0B3B,CAAC"}
@@ -13,9 +13,8 @@ const StageTaskDragOverlay = ({ activeTask, isActiveTaskParallel, taskWidthStyle
13
13
  }), [
14
14
  zoom
15
15
  ]);
16
- if (!activeTask) return null;
17
16
  return /*#__PURE__*/ createPortal(/*#__PURE__*/ jsx(DragOverlay, {
18
- children: /*#__PURE__*/ jsx("div", {
17
+ children: activeTask ? /*#__PURE__*/ jsx("div", {
19
18
  style: dragOverlayStyle,
20
19
  children: /*#__PURE__*/ jsx(StageTask, {
21
20
  selected: true,
@@ -29,7 +28,7 @@ const StageTaskDragOverlay = ({ activeTask, isActiveTaskParallel, taskWidthStyle
29
28
  isDragging: true
30
29
  })
31
30
  })
32
- })
31
+ }) : null
33
32
  }), document.body);
34
33
  };
35
34
  export { StageTaskDragOverlay };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.68.3-pr431.a5a0d21",
3
+ "version": "3.68.3-pr431.d5ed34a",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",