@uipath/apollo-react 3.36.1 → 3.38.0
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/schema/node-instance/node.cjs +2 -1
- package/dist/canvas/schema/node-instance/node.d.ts +1 -0
- package/dist/canvas/schema/node-instance/node.d.ts.map +1 -1
- package/dist/canvas/schema/node-instance/node.js +2 -1
- package/dist/canvas/utils/collapse.cjs +19 -11
- package/dist/canvas/utils/collapse.d.ts +11 -6
- package/dist/canvas/utils/collapse.d.ts.map +1 -1
- package/dist/canvas/utils/collapse.js +12 -10
- package/package.json +1 -1
|
@@ -52,7 +52,8 @@ const nodeSchema = external_zod_namespaceObject.z.object({
|
|
|
52
52
|
handleCustomization: external_zod_namespaceObject.z.object({
|
|
53
53
|
groups: external_zod_namespaceObject.z.array(handle_cjs_namespaceObject.handleGroupOverrideSchema)
|
|
54
54
|
}).optional(),
|
|
55
|
-
model: external_zod_namespaceObject.z.unknown().optional()
|
|
55
|
+
model: external_zod_namespaceObject.z.unknown().optional(),
|
|
56
|
+
parentId: external_base_cjs_namespaceObject.idSchema.optional()
|
|
56
57
|
});
|
|
57
58
|
exports.nodeSchema = __webpack_exports__.nodeSchema;
|
|
58
59
|
exports.uiSchema = __webpack_exports__.uiSchema;
|
|
@@ -105,6 +105,7 @@ export declare const nodeSchema: z.ZodObject<{
|
|
|
105
105
|
}, z.core.$strip>>;
|
|
106
106
|
}, z.core.$strip>>;
|
|
107
107
|
model: z.ZodOptional<z.ZodUnknown>;
|
|
108
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
108
109
|
}, z.core.$strip>;
|
|
109
110
|
export type InstanceUiConfig = z.infer<typeof uiSchema>;
|
|
110
111
|
export type NodeInstance = z.infer<typeof nodeSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,QAAQ;;;;;;;;;;kCAeG,CAAC;AAKzB,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,QAAQ;;;;;;;;;;kCAeG,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAiCrB,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAExD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -23,6 +23,7 @@ const nodeSchema = z.object({
|
|
|
23
23
|
handleCustomization: z.object({
|
|
24
24
|
groups: z.array(handleGroupOverrideSchema)
|
|
25
25
|
}).optional(),
|
|
26
|
-
model: z.unknown().optional()
|
|
26
|
+
model: z.unknown().optional(),
|
|
27
|
+
parentId: idSchema.optional()
|
|
27
28
|
});
|
|
28
29
|
export { nodeSchema, uiSchema };
|
|
@@ -25,29 +25,37 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
COLLAPSED_NODE_SIZE: ()=>COLLAPSED_NODE_SIZE,
|
|
28
|
+
EXPANDED_RECTANGLE_WIDTH: ()=>EXPANDED_RECTANGLE_WIDTH,
|
|
28
29
|
getCollapsedShape: ()=>getCollapsedShape,
|
|
29
30
|
getCollapsedSize: ()=>getCollapsedSize,
|
|
30
|
-
getExpandedShape: ()=>getExpandedShape
|
|
31
|
+
getExpandedShape: ()=>getExpandedShape,
|
|
32
|
+
getExpandedSize: ()=>getExpandedSize
|
|
31
33
|
});
|
|
32
34
|
const COLLAPSED_NODE_SIZE = 96;
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
const EXPANDED_RECTANGLE_WIDTH = 288;
|
|
36
|
+
const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
|
|
37
|
+
const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
|
|
38
|
+
const getCollapsedSize = ()=>({
|
|
39
|
+
width: COLLAPSED_NODE_SIZE,
|
|
40
|
+
height: COLLAPSED_NODE_SIZE
|
|
41
|
+
});
|
|
42
|
+
const getExpandedSize = (shape)=>({
|
|
43
|
+
width: 'rectangle' === shape ? EXPANDED_RECTANGLE_WIDTH : COLLAPSED_NODE_SIZE,
|
|
44
|
+
height: COLLAPSED_NODE_SIZE
|
|
45
|
+
});
|
|
42
46
|
exports.COLLAPSED_NODE_SIZE = __webpack_exports__.COLLAPSED_NODE_SIZE;
|
|
47
|
+
exports.EXPANDED_RECTANGLE_WIDTH = __webpack_exports__.EXPANDED_RECTANGLE_WIDTH;
|
|
43
48
|
exports.getCollapsedShape = __webpack_exports__.getCollapsedShape;
|
|
44
49
|
exports.getCollapsedSize = __webpack_exports__.getCollapsedSize;
|
|
45
50
|
exports.getExpandedShape = __webpack_exports__.getExpandedShape;
|
|
51
|
+
exports.getExpandedSize = __webpack_exports__.getExpandedSize;
|
|
46
52
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
47
53
|
"COLLAPSED_NODE_SIZE",
|
|
54
|
+
"EXPANDED_RECTANGLE_WIDTH",
|
|
48
55
|
"getCollapsedShape",
|
|
49
56
|
"getCollapsedSize",
|
|
50
|
-
"getExpandedShape"
|
|
57
|
+
"getExpandedShape",
|
|
58
|
+
"getExpandedSize"
|
|
51
59
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
52
60
|
Object.defineProperty(exports, '__esModule', {
|
|
53
61
|
value: true
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import type { NodeShape } from '../schema/node-definition';
|
|
2
2
|
export declare const COLLAPSED_NODE_SIZE = 96;
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
export declare const EXPANDED_RECTANGLE_WIDTH = 288;
|
|
4
|
+
export declare const getCollapsedShape: (originalShape?: NodeShape) => NodeShape | undefined;
|
|
5
|
+
export declare const getExpandedShape: (collapsedShape?: NodeShape) => NodeShape | undefined;
|
|
6
|
+
export declare const getCollapsedSize: () => {
|
|
7
|
+
width: number;
|
|
8
|
+
height: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const getExpandedSize: (shape?: NodeShape) => {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
9
14
|
//# sourceMappingURL=collapse.d.ts.map
|
|
@@ -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;
|
|
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,QAAO;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKlE,CAAC;AAOF,eAAO,MAAM,eAAe,GAAI,QAAQ,SAAS,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAKlF,CAAC"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
const COLLAPSED_NODE_SIZE = 96;
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
const EXPANDED_RECTANGLE_WIDTH = 288;
|
|
3
|
+
const getCollapsedShape = (originalShape)=>'rectangle' === originalShape ? 'square' : originalShape;
|
|
4
|
+
const getExpandedShape = (collapsedShape)=>'square' === collapsedShape ? 'rectangle' : collapsedShape ?? void 0;
|
|
5
|
+
const getCollapsedSize = ()=>({
|
|
6
|
+
width: COLLAPSED_NODE_SIZE,
|
|
7
|
+
height: COLLAPSED_NODE_SIZE
|
|
8
|
+
});
|
|
9
|
+
const getExpandedSize = (shape)=>({
|
|
10
|
+
width: 'rectangle' === shape ? EXPANDED_RECTANGLE_WIDTH : COLLAPSED_NODE_SIZE,
|
|
11
|
+
height: COLLAPSED_NODE_SIZE
|
|
12
|
+
});
|
|
13
|
+
export { COLLAPSED_NODE_SIZE, EXPANDED_RECTANGLE_WIDTH, getCollapsedShape, getCollapsedSize, getExpandedShape, getExpandedSize };
|