@uipath/apollo-react 3.36.1-pr238.7424c32 → 3.36.1-pr238.d9bdd55

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.
@@ -33,14 +33,8 @@ __webpack_require__.d(__webpack_exports__, {
33
33
  });
34
34
  const COLLAPSED_NODE_SIZE = 96;
35
35
  const EXPANDED_RECTANGLE_WIDTH = 288;
36
- const getCollapsedShape = (originalShape)=>{
37
- const shape = originalShape ?? 'rectangle';
38
- return 'rectangle' === shape ? 'square' : shape;
39
- };
40
- const getExpandedShape = (collapsedShape)=>{
41
- const shape = collapsedShape ?? 'rectangle';
42
- return 'square' === shape ? 'rectangle' : shape;
43
- };
36
+ const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
37
+ const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
44
38
  const getCollapsedSize = (_shape)=>({
45
39
  width: COLLAPSED_NODE_SIZE,
46
40
  height: COLLAPSED_NODE_SIZE
@@ -1,8 +1,8 @@
1
1
  import type { NodeShape } from '../schema/node-definition';
2
2
  export declare const COLLAPSED_NODE_SIZE = 96;
3
3
  export declare const EXPANDED_RECTANGLE_WIDTH = 288;
4
- export declare const getCollapsedShape: (originalShape: NodeShape | undefined) => NodeShape;
5
- export declare const getExpandedShape: (collapsedShape: NodeShape | undefined) => NodeShape;
4
+ export declare const getCollapsedShape: (originalShape?: NodeShape) => NodeShape | undefined;
5
+ export declare const getExpandedShape: (collapsedShape?: NodeShape) => NodeShape | undefined;
6
6
  export declare const getCollapsedSize: (_shape: NodeShape) => {
7
7
  width: number;
8
8
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"collapse.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/collapse.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAK3D,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAKtC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAM5C,eAAO,MAAM,iBAAiB,GAAI,eAAe,SAAS,GAAG,SAAS,KAAG,SAGxE,CAAC;AAOF,eAAO,MAAM,gBAAgB,GAAI,gBAAgB,SAAS,GAAG,SAAS,KAAG,SAGxE,CAAC;AAMF,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKnF,CAAC;AAOF,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKjF,CAAC"}
1
+ {"version":3,"file":"collapse.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/collapse.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAK3D,eAAO,MAAM,mBAAmB,KAAK,CAAC;AAKtC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAM5C,eAAO,MAAM,iBAAiB,GAAI,gBAAgB,SAAS,KAAG,SAAS,GAAG,SAEzE,CAAC;AAOF,eAAO,MAAM,gBAAgB,GAAI,iBAAiB,SAAS,KAAG,SAAS,GAAG,SAEzE,CAAC;AAMF,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKnF,CAAC;AAOF,eAAO,MAAM,eAAe,GAAI,OAAO,SAAS,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKjF,CAAC"}
@@ -1,13 +1,7 @@
1
1
  const COLLAPSED_NODE_SIZE = 96;
2
2
  const EXPANDED_RECTANGLE_WIDTH = 288;
3
- const getCollapsedShape = (originalShape)=>{
4
- const shape = originalShape ?? 'rectangle';
5
- return 'rectangle' === shape ? 'square' : shape;
6
- };
7
- const getExpandedShape = (collapsedShape)=>{
8
- const shape = collapsedShape ?? 'rectangle';
9
- return 'square' === shape ? 'rectangle' : shape;
10
- };
3
+ const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
4
+ const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
11
5
  const getCollapsedSize = (_shape)=>({
12
6
  width: COLLAPSED_NODE_SIZE,
13
7
  height: COLLAPSED_NODE_SIZE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "3.36.1-pr238.7424c32",
3
+ "version": "3.36.1-pr238.d9bdd55",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",