@uipath/apollo-react 6.20.0 → 6.21.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/components/Edges/CanvasEdge.cjs +1 -1
- package/dist/canvas/components/Edges/CanvasEdge.d.ts.map +1 -1
- package/dist/canvas/components/Edges/CanvasEdge.js +1 -1
- package/dist/canvas/components/Edges/index.cjs +52 -8
- package/dist/canvas/components/Edges/index.d.ts +5 -2
- package/dist/canvas/components/Edges/index.d.ts.map +1 -1
- package/dist/canvas/components/Edges/index.js +4 -2
- package/dist/canvas/components/Edges/shared/geometry.d.ts.map +1 -1
- package/dist/canvas/components/Edges/shared/routing/anchors.cjs +98 -0
- package/dist/canvas/components/Edges/shared/routing/anchors.d.ts +10 -0
- package/dist/canvas/components/Edges/shared/routing/anchors.d.ts.map +1 -0
- package/dist/canvas/components/Edges/shared/routing/anchors.js +61 -0
- package/dist/canvas/components/Edges/shared/routing/index.cjs +8 -1
- package/dist/canvas/components/Edges/shared/routing/index.d.ts +2 -0
- package/dist/canvas/components/Edges/shared/routing/index.d.ts.map +1 -1
- package/dist/canvas/components/Edges/shared/routing/index.js +2 -1
- package/dist/canvas/components/Edges/shared/routing/useGraphRouter.cjs +16 -37
- package/dist/canvas/components/Edges/shared/routing/useGraphRouter.d.ts.map +1 -1
- package/dist/canvas/components/Edges/shared/routing/useGraphRouter.js +17 -38
- package/dist/canvas/components/Edges/shared/types.d.ts +1 -0
- package/dist/canvas/components/Edges/shared/types.d.ts.map +1 -1
- package/dist/canvas/schema/node-instance/edge.cjs +19 -2
- package/dist/canvas/schema/node-instance/edge.d.ts +59 -0
- package/dist/canvas/schema/node-instance/edge.d.ts.map +1 -1
- package/dist/canvas/schema/node-instance/edge.js +12 -1
- package/dist/canvas/schema/node-instance/index.cjs +11 -5
- package/dist/canvas/schema/node-instance/index.d.ts +2 -2
- package/dist/canvas/schema/node-instance/index.d.ts.map +1 -1
- package/dist/canvas/schema/node-instance/index.js +2 -2
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/material/components/ap-model-picker/ModelPicker.cjs +3 -2
- package/dist/material/components/ap-model-picker/ModelPicker.d.ts +1 -0
- package/dist/material/components/ap-model-picker/ModelPicker.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/ModelPicker.js +3 -2
- package/dist/material/components/ap-model-picker/useModelPickerState.cjs +10 -3
- package/dist/material/components/ap-model-picker/useModelPickerState.d.ts +1 -0
- package/dist/material/components/ap-model-picker/useModelPickerState.d.ts.map +1 -1
- package/dist/material/components/ap-model-picker/useModelPickerState.js +10 -3
- package/package.json +2 -2
|
@@ -24,23 +24,40 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
edgeSchema: ()=>edgeSchema
|
|
27
|
+
edgeSchema: ()=>edgeSchema,
|
|
28
|
+
edgeUiSchema: ()=>edgeUiSchema,
|
|
29
|
+
waypointSchema: ()=>waypointSchema
|
|
28
30
|
});
|
|
29
31
|
const external_zod_namespaceObject = require("zod");
|
|
30
32
|
const external_base_cjs_namespaceObject = require("./base.cjs");
|
|
33
|
+
const waypointSchema = external_zod_namespaceObject.z.object({
|
|
34
|
+
id: external_zod_namespaceObject.z.string().min(1),
|
|
35
|
+
x: external_zod_namespaceObject.z.number(),
|
|
36
|
+
y: external_zod_namespaceObject.z.number()
|
|
37
|
+
});
|
|
38
|
+
const edgeUiSchema = external_zod_namespaceObject.z.object({
|
|
39
|
+
waypoints: external_zod_namespaceObject.z.array(waypointSchema).optional(),
|
|
40
|
+
routedWaypoints: external_zod_namespaceObject.z.array(waypointSchema).optional(),
|
|
41
|
+
autoRouted: external_zod_namespaceObject.z.boolean().optional()
|
|
42
|
+
}).catchall(external_zod_namespaceObject.z.unknown());
|
|
31
43
|
const edgeSchema = external_zod_namespaceObject.z.object({
|
|
32
44
|
id: external_base_cjs_namespaceObject.idSchema,
|
|
33
45
|
sourceNodeId: external_base_cjs_namespaceObject.idSchema,
|
|
34
46
|
sourcePort: external_zod_namespaceObject.z.string().min(1),
|
|
35
47
|
targetNodeId: external_base_cjs_namespaceObject.idSchema,
|
|
36
48
|
targetPort: external_zod_namespaceObject.z.string().min(1),
|
|
49
|
+
ui: edgeUiSchema.nullish().transform((value)=>value ?? void 0).optional(),
|
|
37
50
|
data: external_zod_namespaceObject.z.object({
|
|
38
51
|
label: external_zod_namespaceObject.z.string().optional()
|
|
39
52
|
}).passthrough().optional()
|
|
40
53
|
});
|
|
41
54
|
exports.edgeSchema = __webpack_exports__.edgeSchema;
|
|
55
|
+
exports.edgeUiSchema = __webpack_exports__.edgeUiSchema;
|
|
56
|
+
exports.waypointSchema = __webpack_exports__.waypointSchema;
|
|
42
57
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
43
|
-
"edgeSchema"
|
|
58
|
+
"edgeSchema",
|
|
59
|
+
"edgeUiSchema",
|
|
60
|
+
"waypointSchema"
|
|
44
61
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
45
62
|
Object.defineProperty(exports, '__esModule', {
|
|
46
63
|
value: true
|
|
@@ -1,13 +1,72 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const waypointSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
x: z.ZodNumber;
|
|
5
|
+
y: z.ZodNumber;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export declare const edgeUiSchema: z.ZodObject<{
|
|
8
|
+
waypoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
x: z.ZodNumber;
|
|
11
|
+
y: z.ZodNumber;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
13
|
+
routedWaypoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
x: z.ZodNumber;
|
|
16
|
+
y: z.ZodNumber;
|
|
17
|
+
}, z.core.$strip>>>;
|
|
18
|
+
autoRouted: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
2
20
|
export declare const edgeSchema: z.ZodObject<{
|
|
3
21
|
id: z.ZodString;
|
|
4
22
|
sourceNodeId: z.ZodString;
|
|
5
23
|
sourcePort: z.ZodString;
|
|
6
24
|
targetNodeId: z.ZodString;
|
|
7
25
|
targetPort: z.ZodString;
|
|
26
|
+
ui: z.ZodOptional<z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
27
|
+
waypoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
x: z.ZodNumber;
|
|
30
|
+
y: z.ZodNumber;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
routedWaypoints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
x: z.ZodNumber;
|
|
35
|
+
y: z.ZodNumber;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
autoRouted: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
}, z.core.$catchall<z.ZodUnknown>>>>, z.ZodTransform<{
|
|
39
|
+
[x: string]: unknown;
|
|
40
|
+
waypoints?: {
|
|
41
|
+
id: string;
|
|
42
|
+
x: number;
|
|
43
|
+
y: number;
|
|
44
|
+
}[] | undefined;
|
|
45
|
+
routedWaypoints?: {
|
|
46
|
+
id: string;
|
|
47
|
+
x: number;
|
|
48
|
+
y: number;
|
|
49
|
+
}[] | undefined;
|
|
50
|
+
autoRouted?: boolean | undefined;
|
|
51
|
+
} | undefined, {
|
|
52
|
+
[x: string]: unknown;
|
|
53
|
+
waypoints?: {
|
|
54
|
+
id: string;
|
|
55
|
+
x: number;
|
|
56
|
+
y: number;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
routedWaypoints?: {
|
|
59
|
+
id: string;
|
|
60
|
+
x: number;
|
|
61
|
+
y: number;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
autoRouted?: boolean | undefined;
|
|
64
|
+
} | null | undefined>>>;
|
|
8
65
|
data: z.ZodOptional<z.ZodObject<{
|
|
9
66
|
label: z.ZodOptional<z.ZodString>;
|
|
10
67
|
}, z.core.$loose>>;
|
|
11
68
|
}, z.core.$strip>;
|
|
69
|
+
export type WaypointInstance = z.infer<typeof waypointSchema>;
|
|
70
|
+
export type EdgeInstanceUiConfig = z.infer<typeof edgeUiSchema>;
|
|
12
71
|
export type EdgeInstance = z.infer<typeof edgeSchema>;
|
|
13
72
|
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/edge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,cAAc;;;;iBAIzB,CAAC;AAkBH,eAAO,MAAM,YAAY;;;;;;;;;;;;kCAaD,CAAC;AAKzB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2BrB,CAAC;AAGH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAEhE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { idSchema } from "./base.js";
|
|
3
|
+
const waypointSchema = z.object({
|
|
4
|
+
id: z.string().min(1),
|
|
5
|
+
x: z.number(),
|
|
6
|
+
y: z.number()
|
|
7
|
+
});
|
|
8
|
+
const edgeUiSchema = z.object({
|
|
9
|
+
waypoints: z.array(waypointSchema).optional(),
|
|
10
|
+
routedWaypoints: z.array(waypointSchema).optional(),
|
|
11
|
+
autoRouted: z.boolean().optional()
|
|
12
|
+
}).catchall(z.unknown());
|
|
3
13
|
const edgeSchema = z.object({
|
|
4
14
|
id: idSchema,
|
|
5
15
|
sourceNodeId: idSchema,
|
|
6
16
|
sourcePort: z.string().min(1),
|
|
7
17
|
targetNodeId: idSchema,
|
|
8
18
|
targetPort: z.string().min(1),
|
|
19
|
+
ui: edgeUiSchema.nullish().transform((value)=>value ?? void 0).optional(),
|
|
9
20
|
data: z.object({
|
|
10
21
|
label: z.string().optional()
|
|
11
22
|
}).passthrough().optional()
|
|
12
23
|
});
|
|
13
|
-
export { edgeSchema };
|
|
24
|
+
export { edgeSchema, edgeUiSchema, waypointSchema };
|
|
@@ -24,32 +24,38 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
27
|
+
versionSchema: ()=>external_base_cjs_namespaceObject.versionSchema,
|
|
28
28
|
displayConfigSchema: ()=>external_base_cjs_namespaceObject.displayConfigSchema,
|
|
29
29
|
edgeSchema: ()=>external_edge_cjs_namespaceObject.edgeSchema,
|
|
30
|
-
|
|
31
|
-
nodeSchema: ()=>external_node_cjs_namespaceObject.nodeSchema,
|
|
30
|
+
edgeUiSchema: ()=>external_edge_cjs_namespaceObject.edgeUiSchema,
|
|
32
31
|
uiSchema: ()=>external_node_cjs_namespaceObject.uiSchema,
|
|
33
|
-
|
|
32
|
+
waypointSchema: ()=>external_edge_cjs_namespaceObject.waypointSchema,
|
|
33
|
+
typeVersionKeySchema: ()=>external_base_cjs_namespaceObject.typeVersionKeySchema,
|
|
34
|
+
nodeSchema: ()=>external_node_cjs_namespaceObject.nodeSchema,
|
|
35
|
+
idSchema: ()=>external_base_cjs_namespaceObject.idSchema
|
|
34
36
|
});
|
|
35
37
|
const external_base_cjs_namespaceObject = require("./base.cjs");
|
|
36
38
|
const external_edge_cjs_namespaceObject = require("./edge.cjs");
|
|
37
39
|
const external_node_cjs_namespaceObject = require("./node.cjs");
|
|
38
40
|
exports.displayConfigSchema = __webpack_exports__.displayConfigSchema;
|
|
39
41
|
exports.edgeSchema = __webpack_exports__.edgeSchema;
|
|
42
|
+
exports.edgeUiSchema = __webpack_exports__.edgeUiSchema;
|
|
40
43
|
exports.idSchema = __webpack_exports__.idSchema;
|
|
41
44
|
exports.nodeSchema = __webpack_exports__.nodeSchema;
|
|
42
45
|
exports.typeVersionKeySchema = __webpack_exports__.typeVersionKeySchema;
|
|
43
46
|
exports.uiSchema = __webpack_exports__.uiSchema;
|
|
44
47
|
exports.versionSchema = __webpack_exports__.versionSchema;
|
|
48
|
+
exports.waypointSchema = __webpack_exports__.waypointSchema;
|
|
45
49
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
46
50
|
"displayConfigSchema",
|
|
47
51
|
"edgeSchema",
|
|
52
|
+
"edgeUiSchema",
|
|
48
53
|
"idSchema",
|
|
49
54
|
"nodeSchema",
|
|
50
55
|
"typeVersionKeySchema",
|
|
51
56
|
"uiSchema",
|
|
52
|
-
"versionSchema"
|
|
57
|
+
"versionSchema",
|
|
58
|
+
"waypointSchema"
|
|
53
59
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
54
60
|
Object.defineProperty(exports, '__esModule', {
|
|
55
61
|
value: true
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { InstanceDisplayConfig, InstanceId, InstanceTypeVersionKey, InstanceVersion, } from './base';
|
|
2
2
|
export { displayConfigSchema, idSchema, typeVersionKeySchema, versionSchema } from './base';
|
|
3
|
-
export type { EdgeInstance } from './edge';
|
|
4
|
-
export { edgeSchema } from './edge';
|
|
3
|
+
export type { EdgeInstance, EdgeInstanceUiConfig, WaypointInstance } from './edge';
|
|
4
|
+
export { edgeSchema, edgeUiSchema, waypointSchema } from './edge';
|
|
5
5
|
export type { InstanceUiConfig, NodeInstance } from './node';
|
|
6
6
|
export { nodeSchema, uiSchema } from './node';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,qBAAqB,EACrB,UAAU,EACV,sBAAsB,EACtB,eAAe,GAChB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5F,YAAY,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-instance/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,qBAAqB,EACrB,UAAU,EACV,sBAAsB,EACtB,eAAe,GAChB,MAAM,QAAQ,CAAC;AAEhB,OAAO,EAAE,mBAAmB,EAAE,QAAQ,EAAE,oBAAoB,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC5F,YAAY,EAAE,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAClE,YAAY,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { displayConfigSchema, idSchema, typeVersionKeySchema, versionSchema } from "./base.js";
|
|
2
|
-
import { edgeSchema } from "./edge.js";
|
|
2
|
+
import { edgeSchema, edgeUiSchema, waypointSchema } from "./edge.js";
|
|
3
3
|
import { nodeSchema, uiSchema } from "./node.js";
|
|
4
|
-
export { displayConfigSchema, edgeSchema, idSchema, nodeSchema, typeVersionKeySchema, uiSchema, versionSchema };
|
|
4
|
+
export { displayConfigSchema, edgeSchema, edgeUiSchema, idSchema, nodeSchema, typeVersionKeySchema, uiSchema, versionSchema, waypointSchema };
|