@uipath/apollo-react 3.50.0-pr319.ad5b0d4 → 3.50.0-pr329.35863a7
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/AgentCanvas/agent-flow.manifest.d.ts +0 -1
- package/dist/canvas/components/AgentCanvas/agent-flow.manifest.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/providers/AgentFlowProvider.cjs +3 -2
- package/dist/canvas/components/AgentCanvas/providers/AgentFlowProvider.js +3 -2
- package/dist/canvas/components/BaseNode/BaseNode.stories.cjs +1 -110
- package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts +0 -1
- package/dist/canvas/components/BaseNode/BaseNode.stories.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.stories.js +1 -107
- package/dist/canvas/schema/node-definition/constraints.cjs +1 -7
- package/dist/canvas/schema/node-definition/constraints.d.ts +0 -6
- package/dist/canvas/schema/node-definition/constraints.d.ts.map +1 -1
- package/dist/canvas/schema/node-definition/constraints.js +1 -7
- package/dist/canvas/schema/node-definition/handle.d.ts +0 -18
- package/dist/canvas/schema/node-definition/handle.d.ts.map +1 -1
- package/dist/canvas/schema/node-definition/node-manifest.d.ts +0 -6
- package/dist/canvas/schema/node-definition/node-manifest.d.ts.map +1 -1
- package/dist/canvas/schema/node-instance/node.d.ts +0 -6
- package/dist/canvas/schema/node-instance/node.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/manifests/index.d.ts +0 -1
- package/dist/canvas/storybook-utils/manifests/index.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.cjs +6 -37
- package/dist/canvas/utils/adornment-resolver.d.ts +0 -3
- package/dist/canvas/utils/adornment-resolver.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.js +6 -34
- package/package.json +3 -3
|
@@ -72,7 +72,6 @@ export declare const agentFlowManifest: {
|
|
|
72
72
|
forbiddenSourceCategories?: string[] | undefined;
|
|
73
73
|
customValidation?: string | undefined;
|
|
74
74
|
validationMessage?: string | undefined;
|
|
75
|
-
severity?: "info" | "warning" | "error" | "critical" | undefined;
|
|
76
75
|
} | undefined;
|
|
77
76
|
isDefaultForType?: boolean | undefined;
|
|
78
77
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/agent-flow.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAmBjD,CAAC;AAMF,eAAO,MAAM,2BAA2B,EAAE,YAsDzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAqDrC,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,YAwBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAwBlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAwBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAwBpC,CAAC;AAMF,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"agent-flow.manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/AgentCanvas/agent-flow.manifest.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAMnF,eAAO,MAAM,mBAAmB,EAAE,gBAAgB,EAmBjD,CAAC;AAMF,eAAO,MAAM,2BAA2B,EAAE,YAsDzC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,YAqDrC,CAAC;AAMF,eAAO,MAAM,uBAAuB,EAAE,YAwBrC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,YAwBlC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,YAwBjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,YAwBxC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,YAwBpC,CAAC;AAMF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAY7B,CAAC"}
|
|
@@ -70,14 +70,15 @@ const injectReactFlowStyles = (container)=>{
|
|
|
70
70
|
const injectCSSVariables = (container)=>{
|
|
71
71
|
const existingVars = container.querySelector('style[data-css-variables="true"]');
|
|
72
72
|
if (existingVars) return;
|
|
73
|
-
const rootStyles = getComputedStyle(document.
|
|
73
|
+
const rootStyles = getComputedStyle(document.body);
|
|
74
74
|
const cssVariables = [];
|
|
75
75
|
const varPrefixes = [
|
|
76
76
|
'--color',
|
|
77
77
|
'--spacing',
|
|
78
78
|
'--font',
|
|
79
79
|
'--shadow',
|
|
80
|
-
'--border'
|
|
80
|
+
'--border',
|
|
81
|
+
'--uix-canvas'
|
|
81
82
|
];
|
|
82
83
|
for (const property of Array.from(rootStyles))if (varPrefixes.some((prefix)=>property.startsWith(prefix))) {
|
|
83
84
|
const value = rootStyles.getPropertyValue(property);
|
|
@@ -31,14 +31,15 @@ const injectReactFlowStyles = (container)=>{
|
|
|
31
31
|
const injectCSSVariables = (container)=>{
|
|
32
32
|
const existingVars = container.querySelector('style[data-css-variables="true"]');
|
|
33
33
|
if (existingVars) return;
|
|
34
|
-
const rootStyles = getComputedStyle(document.
|
|
34
|
+
const rootStyles = getComputedStyle(document.body);
|
|
35
35
|
const cssVariables = [];
|
|
36
36
|
const varPrefixes = [
|
|
37
37
|
'--color',
|
|
38
38
|
'--spacing',
|
|
39
39
|
'--font',
|
|
40
40
|
'--shadow',
|
|
41
|
-
'--border'
|
|
41
|
+
'--border',
|
|
42
|
+
'--uix-canvas'
|
|
42
43
|
];
|
|
43
44
|
for (const property of Array.from(rootStyles))if (varPrefixes.some((prefix)=>property.startsWith(prefix))) {
|
|
44
45
|
const value = rootStyles.getPropertyValue(property);
|
|
@@ -25,9 +25,8 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
CustomizedSizes: ()=>CustomizedSizes,
|
|
28
|
-
ValidationStates: ()=>ValidationStates,
|
|
29
|
-
Default: ()=>Default,
|
|
30
28
|
default: ()=>BaseNode_stories,
|
|
29
|
+
Default: ()=>Default,
|
|
31
30
|
DynamicHandles: ()=>DynamicHandles
|
|
32
31
|
});
|
|
33
32
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
@@ -833,122 +832,14 @@ const DynamicHandles = {
|
|
|
833
832
|
name: 'Dynamic Handles',
|
|
834
833
|
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DynamicHandlesStory, {})
|
|
835
834
|
};
|
|
836
|
-
const VALIDATION_SEVERITIES = [
|
|
837
|
-
'WARNING',
|
|
838
|
-
'ERROR',
|
|
839
|
-
'CRITICAL'
|
|
840
|
-
];
|
|
841
|
-
const validationMessages = {
|
|
842
|
-
WARNING: 'Trigger should be connected to at least one node',
|
|
843
|
-
ERROR: 'URL is required',
|
|
844
|
-
CRITICAL: 'Node configuration is invalid'
|
|
845
|
-
};
|
|
846
|
-
function createValidationGrid() {
|
|
847
|
-
const nodes = [];
|
|
848
|
-
VALIDATION_SEVERITIES.forEach((severity, rowIndex)=>{
|
|
849
|
-
SHAPES.forEach((shape, colIndex)=>{
|
|
850
|
-
const label = 'rectangle' === shape ? 'Invoice approval agent' : 'Header';
|
|
851
|
-
const nodeType = 'rectangle' === shape ? 'uipath.agent' : 'uipath.blank-node';
|
|
852
|
-
nodes.push((0, external_storybook_utils_index_cjs_namespaceObject.createNode)({
|
|
853
|
-
id: `validation-${shape}-${severity}`,
|
|
854
|
-
type: nodeType,
|
|
855
|
-
position: {
|
|
856
|
-
x: GRID_CONFIG.startX + colIndex * GRID_CONFIG.gapX,
|
|
857
|
-
y: GRID_CONFIG.startY + rowIndex * GRID_CONFIG.gapY
|
|
858
|
-
},
|
|
859
|
-
data: {
|
|
860
|
-
nodeType,
|
|
861
|
-
version: '1.0.0',
|
|
862
|
-
display: {
|
|
863
|
-
label,
|
|
864
|
-
subLabel: severity,
|
|
865
|
-
shape
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
}));
|
|
869
|
-
});
|
|
870
|
-
});
|
|
871
|
-
return nodes;
|
|
872
|
-
}
|
|
873
|
-
function ValidationStatesStory() {
|
|
874
|
-
const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>createValidationGrid(), []);
|
|
875
|
-
const { canvasProps } = (0, external_storybook_utils_index_cjs_namespaceObject.useCanvasStory)({
|
|
876
|
-
initialNodes
|
|
877
|
-
});
|
|
878
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
|
|
879
|
-
...canvasProps,
|
|
880
|
-
mode: "design",
|
|
881
|
-
children: [
|
|
882
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
|
|
883
|
-
position: "bottom-right",
|
|
884
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
|
|
885
|
-
translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
|
|
886
|
-
})
|
|
887
|
-
}),
|
|
888
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_storybook_utils_index_cjs_namespaceObject.StoryInfoPanel, {
|
|
889
|
-
title: "Validation States",
|
|
890
|
-
description: "Grid showing warning, error, and critical validation badges across shapes. Warnings show a yellow badge only (no border). Errors/critical show a red badge."
|
|
891
|
-
})
|
|
892
|
-
]
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
const ValidationStates = {
|
|
896
|
-
name: 'Validation States',
|
|
897
|
-
decorators: [
|
|
898
|
-
(Story)=>{
|
|
899
|
-
const registry = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
900
|
-
const reg = new external_core_index_cjs_namespaceObject.NodeTypeRegistry();
|
|
901
|
-
reg.registerManifest(sampleManifest.nodes, sampleManifest.categories);
|
|
902
|
-
return reg;
|
|
903
|
-
}, []);
|
|
904
|
-
const contextValue = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
905
|
-
registry
|
|
906
|
-
}), [
|
|
907
|
-
registry
|
|
908
|
-
]);
|
|
909
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_core_index_cjs_namespaceObject.NodeRegistryContext.Provider, {
|
|
910
|
-
value: contextValue,
|
|
911
|
-
children: Story()
|
|
912
|
-
});
|
|
913
|
-
},
|
|
914
|
-
(0, external_storybook_utils_index_cjs_namespaceObject.withCanvasProviders)({
|
|
915
|
-
executionState: {
|
|
916
|
-
getNodeExecutionState: ()=>void 0,
|
|
917
|
-
getEdgeExecutionState: ()=>void 0
|
|
918
|
-
},
|
|
919
|
-
validationState: {
|
|
920
|
-
getElementValidationState: (elementId)=>{
|
|
921
|
-
const severity = elementId.split('-').pop();
|
|
922
|
-
if (![
|
|
923
|
-
'WARNING',
|
|
924
|
-
'ERROR',
|
|
925
|
-
'CRITICAL'
|
|
926
|
-
].includes(severity)) return;
|
|
927
|
-
return {
|
|
928
|
-
validationStatus: severity,
|
|
929
|
-
validationError: {
|
|
930
|
-
code: `VALIDATION_${severity}`,
|
|
931
|
-
message: validationMessages[severity] ?? `Validation ${severity.toLowerCase()}`,
|
|
932
|
-
description: validationMessages[severity] ?? `Validation ${severity.toLowerCase()}`,
|
|
933
|
-
severity: severity
|
|
934
|
-
}
|
|
935
|
-
};
|
|
936
|
-
}
|
|
937
|
-
}
|
|
938
|
-
})
|
|
939
|
-
],
|
|
940
|
-
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ValidationStatesStory, {})
|
|
941
|
-
};
|
|
942
835
|
exports.CustomizedSizes = __webpack_exports__.CustomizedSizes;
|
|
943
836
|
exports.Default = __webpack_exports__.Default;
|
|
944
837
|
exports.DynamicHandles = __webpack_exports__.DynamicHandles;
|
|
945
|
-
exports.ValidationStates = __webpack_exports__.ValidationStates;
|
|
946
838
|
exports["default"] = __webpack_exports__["default"];
|
|
947
839
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
948
840
|
"CustomizedSizes",
|
|
949
841
|
"Default",
|
|
950
842
|
"DynamicHandles",
|
|
951
|
-
"ValidationStates",
|
|
952
843
|
"default"
|
|
953
844
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
954
845
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"BaseNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/BaseNode/BaseNode.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAkBvD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAuLrD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,YAAY,CAqB5B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAmZnC,eAAO,MAAM,OAAO,EAAE,KAGrB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAG7B,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAG5B,CAAC"}
|
|
@@ -801,110 +801,4 @@ const DynamicHandles = {
|
|
|
801
801
|
name: 'Dynamic Handles',
|
|
802
802
|
render: ()=>/*#__PURE__*/ jsx(DynamicHandlesStory, {})
|
|
803
803
|
};
|
|
804
|
-
|
|
805
|
-
'WARNING',
|
|
806
|
-
'ERROR',
|
|
807
|
-
'CRITICAL'
|
|
808
|
-
];
|
|
809
|
-
const validationMessages = {
|
|
810
|
-
WARNING: 'Trigger should be connected to at least one node',
|
|
811
|
-
ERROR: 'URL is required',
|
|
812
|
-
CRITICAL: 'Node configuration is invalid'
|
|
813
|
-
};
|
|
814
|
-
function createValidationGrid() {
|
|
815
|
-
const nodes = [];
|
|
816
|
-
VALIDATION_SEVERITIES.forEach((severity, rowIndex)=>{
|
|
817
|
-
SHAPES.forEach((shape, colIndex)=>{
|
|
818
|
-
const label = 'rectangle' === shape ? 'Invoice approval agent' : 'Header';
|
|
819
|
-
const nodeType = 'rectangle' === shape ? 'uipath.agent' : 'uipath.blank-node';
|
|
820
|
-
nodes.push(createNode({
|
|
821
|
-
id: `validation-${shape}-${severity}`,
|
|
822
|
-
type: nodeType,
|
|
823
|
-
position: {
|
|
824
|
-
x: GRID_CONFIG.startX + colIndex * GRID_CONFIG.gapX,
|
|
825
|
-
y: GRID_CONFIG.startY + rowIndex * GRID_CONFIG.gapY
|
|
826
|
-
},
|
|
827
|
-
data: {
|
|
828
|
-
nodeType,
|
|
829
|
-
version: '1.0.0',
|
|
830
|
-
display: {
|
|
831
|
-
label,
|
|
832
|
-
subLabel: severity,
|
|
833
|
-
shape
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
}));
|
|
837
|
-
});
|
|
838
|
-
});
|
|
839
|
-
return nodes;
|
|
840
|
-
}
|
|
841
|
-
function ValidationStatesStory() {
|
|
842
|
-
const initialNodes = useMemo(()=>createValidationGrid(), []);
|
|
843
|
-
const { canvasProps } = useCanvasStory({
|
|
844
|
-
initialNodes
|
|
845
|
-
});
|
|
846
|
-
return /*#__PURE__*/ jsxs(BaseCanvas, {
|
|
847
|
-
...canvasProps,
|
|
848
|
-
mode: "design",
|
|
849
|
-
children: [
|
|
850
|
-
/*#__PURE__*/ jsx(Panel, {
|
|
851
|
-
position: "bottom-right",
|
|
852
|
-
children: /*#__PURE__*/ jsx(CanvasPositionControls, {
|
|
853
|
-
translations: DefaultCanvasTranslations
|
|
854
|
-
})
|
|
855
|
-
}),
|
|
856
|
-
/*#__PURE__*/ jsx(StoryInfoPanel, {
|
|
857
|
-
title: "Validation States",
|
|
858
|
-
description: "Grid showing warning, error, and critical validation badges across shapes. Warnings show a yellow badge only (no border). Errors/critical show a red badge."
|
|
859
|
-
})
|
|
860
|
-
]
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
const ValidationStates = {
|
|
864
|
-
name: 'Validation States',
|
|
865
|
-
decorators: [
|
|
866
|
-
(Story)=>{
|
|
867
|
-
const registry = useMemo(()=>{
|
|
868
|
-
const reg = new NodeTypeRegistry();
|
|
869
|
-
reg.registerManifest(sampleManifest.nodes, sampleManifest.categories);
|
|
870
|
-
return reg;
|
|
871
|
-
}, []);
|
|
872
|
-
const contextValue = useMemo(()=>({
|
|
873
|
-
registry
|
|
874
|
-
}), [
|
|
875
|
-
registry
|
|
876
|
-
]);
|
|
877
|
-
return /*#__PURE__*/ jsx(NodeRegistryContext.Provider, {
|
|
878
|
-
value: contextValue,
|
|
879
|
-
children: Story()
|
|
880
|
-
});
|
|
881
|
-
},
|
|
882
|
-
withCanvasProviders({
|
|
883
|
-
executionState: {
|
|
884
|
-
getNodeExecutionState: ()=>void 0,
|
|
885
|
-
getEdgeExecutionState: ()=>void 0
|
|
886
|
-
},
|
|
887
|
-
validationState: {
|
|
888
|
-
getElementValidationState: (elementId)=>{
|
|
889
|
-
const severity = elementId.split('-').pop();
|
|
890
|
-
if (![
|
|
891
|
-
'WARNING',
|
|
892
|
-
'ERROR',
|
|
893
|
-
'CRITICAL'
|
|
894
|
-
].includes(severity)) return;
|
|
895
|
-
return {
|
|
896
|
-
validationStatus: severity,
|
|
897
|
-
validationError: {
|
|
898
|
-
code: `VALIDATION_${severity}`,
|
|
899
|
-
message: validationMessages[severity] ?? `Validation ${severity.toLowerCase()}`,
|
|
900
|
-
description: validationMessages[severity] ?? `Validation ${severity.toLowerCase()}`,
|
|
901
|
-
severity: severity
|
|
902
|
-
}
|
|
903
|
-
};
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
|
-
})
|
|
907
|
-
],
|
|
908
|
-
render: ()=>/*#__PURE__*/ jsx(ValidationStatesStory, {})
|
|
909
|
-
};
|
|
910
|
-
export { CustomizedSizes, Default, DynamicHandles, ValidationStates, BaseNode_stories as default };
|
|
804
|
+
export { CustomizedSizes, Default, DynamicHandles, BaseNode_stories as default };
|
|
@@ -44,13 +44,7 @@ const connectionConstraintSchema = external_zod_namespaceObject.z.object({
|
|
|
44
44
|
allowedSourceCategories: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
|
45
45
|
forbiddenSourceCategories: external_zod_namespaceObject.z.array(external_zod_namespaceObject.z.string()).optional(),
|
|
46
46
|
customValidation: external_zod_namespaceObject.z.string().optional(),
|
|
47
|
-
validationMessage: external_zod_namespaceObject.z.string().optional()
|
|
48
|
-
severity: external_zod_namespaceObject.z["enum"]([
|
|
49
|
-
'warning',
|
|
50
|
-
'error',
|
|
51
|
-
'critical',
|
|
52
|
-
'info'
|
|
53
|
-
]).optional()
|
|
47
|
+
validationMessage: external_zod_namespaceObject.z.string().optional()
|
|
54
48
|
});
|
|
55
49
|
exports.connectionConstraintSchema = __webpack_exports__.connectionConstraintSchema;
|
|
56
50
|
exports.handleTargetSchema = __webpack_exports__.handleTargetSchema;
|
|
@@ -28,12 +28,6 @@ export declare const connectionConstraintSchema: z.ZodObject<{
|
|
|
28
28
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
29
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
30
30
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
31
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
32
|
-
info: "info";
|
|
33
|
-
warning: "warning";
|
|
34
|
-
error: "error";
|
|
35
|
-
critical: "critical";
|
|
36
|
-
}>>;
|
|
37
31
|
}, z.core.$strip>;
|
|
38
32
|
export type HandleTarget = z.infer<typeof handleTargetSchema>;
|
|
39
33
|
export type ConnectionConstraint = z.infer<typeof connectionConstraintSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB;;;iBAY7B,CAAC;AAKH,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"constraints.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/constraints.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB;;;iBAY7B,CAAC;AAKH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;iBAiGrC,CAAC;AAGH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -15,12 +15,6 @@ const connectionConstraintSchema = z.object({
|
|
|
15
15
|
allowedSourceCategories: z.array(z.string()).optional(),
|
|
16
16
|
forbiddenSourceCategories: z.array(z.string()).optional(),
|
|
17
17
|
customValidation: z.string().optional(),
|
|
18
|
-
validationMessage: z.string().optional()
|
|
19
|
-
severity: z["enum"]([
|
|
20
|
-
'warning',
|
|
21
|
-
'error',
|
|
22
|
-
'critical',
|
|
23
|
-
'info'
|
|
24
|
-
]).optional()
|
|
18
|
+
validationMessage: z.string().optional()
|
|
25
19
|
});
|
|
26
20
|
export { connectionConstraintSchema, handleTargetSchema };
|
|
@@ -64,12 +64,6 @@ export declare const handleManifestSchema: z.ZodObject<{
|
|
|
64
64
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
65
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
66
66
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
67
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
info: "info";
|
|
69
|
-
warning: "warning";
|
|
70
|
-
error: "error";
|
|
71
|
-
critical: "critical";
|
|
72
|
-
}>>;
|
|
73
67
|
}, z.core.$strip>>;
|
|
74
68
|
isDefaultForType: z.ZodOptional<z.ZodBoolean>;
|
|
75
69
|
}, z.core.$strip>;
|
|
@@ -130,12 +124,6 @@ export declare const handleGroupManifestSchema: z.ZodObject<{
|
|
|
130
124
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
131
125
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
132
126
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
133
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
134
|
-
info: "info";
|
|
135
|
-
warning: "warning";
|
|
136
|
-
error: "error";
|
|
137
|
-
critical: "critical";
|
|
138
|
-
}>>;
|
|
139
127
|
}, z.core.$strip>>;
|
|
140
128
|
isDefaultForType: z.ZodOptional<z.ZodBoolean>;
|
|
141
129
|
}, z.core.$strip>>;
|
|
@@ -190,12 +178,6 @@ export declare const handleGroupOverrideSchema: z.ZodObject<{
|
|
|
190
178
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
191
179
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
192
180
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
193
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
194
|
-
info: "info";
|
|
195
|
-
warning: "warning";
|
|
196
|
-
error: "error";
|
|
197
|
-
critical: "critical";
|
|
198
|
-
}>>;
|
|
199
181
|
}, z.core.$strip>>;
|
|
200
182
|
isDefaultForType: z.ZodOptional<z.ZodBoolean>;
|
|
201
183
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/handle.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB;;;;;EAA6C,CAAC;AAK/E,eAAO,MAAM,gBAAgB;;;EAA+B,CAAC;AAK7D,eAAO,MAAM,uBAAuB;;;;EAA0C,CAAC;AAE/E,eAAO,MAAM,yCAAyC;;;;;;;iBAkBpD,CAAC;AAKH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"handle.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/handle.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,oBAAoB;;;;;EAA6C,CAAC;AAK/E,eAAO,MAAM,gBAAgB;;;EAA+B,CAAC;AAK7D,eAAO,MAAM,uBAAuB;;;;EAA0C,CAAC;AAE/E,eAAO,MAAM,yCAAyC;;;;;;;iBAkBpD,CAAC;AAKH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA8D/B,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWpC,CAAC;AAMH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASpC,CAAC;AAGH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACrE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,mCAAmC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,yCAAyC,CACjD,CAAC"}
|
|
@@ -102,12 +102,6 @@ export declare const nodeManifestSchema: z.ZodObject<{
|
|
|
102
102
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
103
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
104
104
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
105
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
106
|
-
info: "info";
|
|
107
|
-
warning: "warning";
|
|
108
|
-
error: "error";
|
|
109
|
-
critical: "critical";
|
|
110
|
-
}>>;
|
|
111
105
|
}, z.core.$strip>>;
|
|
112
106
|
isDefaultForType: z.ZodOptional<z.ZodBoolean>;
|
|
113
107
|
}, z.core.$strip>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/node-manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;EAA4C,CAAC;AAKzE,eAAO,MAAM,uBAAuB;;iBAGlC,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;iBA2BpC,CAAC;AAKH,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"node-manifest.d.ts","sourceRoot":"","sources":["../../../../src/canvas/schema/node-definition/node-manifest.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,eAAe;;;;EAA4C,CAAC;AAKzE,eAAO,MAAM,uBAAuB;;iBAGlC,CAAC;AAKH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;iBA2BpC,CAAC;AAKH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA2D7B,CAAC;AAGH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -98,12 +98,6 @@ export declare const nodeSchema: z.ZodObject<{
|
|
|
98
98
|
forbiddenSourceCategories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
99
99
|
customValidation: z.ZodOptional<z.ZodString>;
|
|
100
100
|
validationMessage: z.ZodOptional<z.ZodString>;
|
|
101
|
-
severity: z.ZodOptional<z.ZodEnum<{
|
|
102
|
-
info: "info";
|
|
103
|
-
warning: "warning";
|
|
104
|
-
error: "error";
|
|
105
|
-
critical: "critical";
|
|
106
|
-
}>>;
|
|
107
101
|
}, z.core.$strip>>;
|
|
108
102
|
isDefaultForType: z.ZodOptional<z.ZodBoolean>;
|
|
109
103
|
}, z.core.$strip>>;
|
|
@@ -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"}
|
|
@@ -65,7 +65,6 @@ export declare const defaultWorkflowManifest: {
|
|
|
65
65
|
forbiddenSourceCategories?: string[] | undefined;
|
|
66
66
|
customValidation?: string | undefined;
|
|
67
67
|
validationMessage?: string | undefined;
|
|
68
|
-
severity?: "info" | "warning" | "error" | "critical" | undefined;
|
|
69
68
|
} | undefined;
|
|
70
69
|
isDefaultForType?: boolean | undefined;
|
|
71
70
|
}[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/storybook-utils/manifests/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAKnC,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/canvas/storybook-utils/manifests/index.ts"],"names":[],"mappings":"AAGA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AAKnC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAInC,CAAC"}
|
|
@@ -28,8 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
BreakpointIndicator: ()=>BreakpointIndicator,
|
|
29
29
|
ValidationErrorIndicator: ()=>ValidationErrorIndicator,
|
|
30
30
|
resolveAdornments: ()=>resolveAdornments,
|
|
31
|
-
ExecutionStatusIndicator: ()=>ExecutionStatusIndicator
|
|
32
|
-
ValidationWarningIndicator: ()=>ValidationWarningIndicator
|
|
31
|
+
ExecutionStatusIndicator: ()=>ExecutionStatusIndicator
|
|
33
32
|
});
|
|
34
33
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
35
34
|
const external_index_cjs_namespaceObject = require("../index.cjs");
|
|
@@ -103,22 +102,6 @@ function ValidationErrorIndicator({ message }) {
|
|
|
103
102
|
})
|
|
104
103
|
});
|
|
105
104
|
}
|
|
106
|
-
function ValidationWarningIndicator({ message }) {
|
|
107
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTooltip, {
|
|
108
|
-
content: message || 'Validation warning',
|
|
109
|
-
placement: "bottom",
|
|
110
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
111
|
-
style: {
|
|
112
|
-
display: 'inline-flex'
|
|
113
|
-
},
|
|
114
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ApIcon, {
|
|
115
|
-
name: "warning",
|
|
116
|
-
size: "16px",
|
|
117
|
-
color: "var(--uix-canvas-warning-icon)"
|
|
118
|
-
})
|
|
119
|
-
})
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
105
|
const getDefaultAdornments = (context)=>{
|
|
123
106
|
const executionState = context.executionState;
|
|
124
107
|
const status = 'object' == typeof executionState ? executionState?.status : executionState;
|
|
@@ -127,26 +110,14 @@ const getDefaultAdornments = (context)=>{
|
|
|
127
110
|
const isExecutionStartPoint = 'object' == typeof executionState && executionState?.isExecutionStartPoint;
|
|
128
111
|
const isOutputPinned = 'object' == typeof executionState && executionState?.isOutputPinned;
|
|
129
112
|
const hasValidationError = context.validationState?.validationStatus === validation_cjs_namespaceObject.ValidationErrorSeverity.ERROR || context.validationState?.validationStatus === validation_cjs_namespaceObject.ValidationErrorSeverity.CRITICAL;
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
status: status,
|
|
134
|
-
count: count
|
|
135
|
-
});
|
|
136
|
-
if (hasValidationError) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ValidationErrorIndicator, {
|
|
137
|
-
message: context.validationState?.validationError?.message
|
|
138
|
-
});
|
|
139
|
-
if (hasValidationWarning) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ValidationWarningIndicator, {
|
|
113
|
+
return {
|
|
114
|
+
topLeft: hasBreakpoint ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BreakpointIndicator, {}) : void 0,
|
|
115
|
+
topRight: !status && hasValidationError ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ValidationErrorIndicator, {
|
|
140
116
|
message: context.validationState?.validationError?.message
|
|
141
|
-
})
|
|
142
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ExecutionStatusIndicator, {
|
|
117
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ExecutionStatusIndicator, {
|
|
143
118
|
status: status,
|
|
144
119
|
count: count
|
|
145
|
-
})
|
|
146
|
-
};
|
|
147
|
-
return {
|
|
148
|
-
topLeft: hasBreakpoint ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BreakpointIndicator, {}) : void 0,
|
|
149
|
-
topRight: getTopRight(),
|
|
120
|
+
}),
|
|
150
121
|
bottomLeft: isExecutionStartPoint ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ExecutionStartPointIndicator, {}) : void 0,
|
|
151
122
|
bottomRight: isOutputPinned ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PinnedOutputIndicator, {}) : void 0
|
|
152
123
|
};
|
|
@@ -158,14 +129,12 @@ exports.BreakpointIndicator = __webpack_exports__.BreakpointIndicator;
|
|
|
158
129
|
exports.ExecutionStartPointIndicator = __webpack_exports__.ExecutionStartPointIndicator;
|
|
159
130
|
exports.ExecutionStatusIndicator = __webpack_exports__.ExecutionStatusIndicator;
|
|
160
131
|
exports.ValidationErrorIndicator = __webpack_exports__.ValidationErrorIndicator;
|
|
161
|
-
exports.ValidationWarningIndicator = __webpack_exports__.ValidationWarningIndicator;
|
|
162
132
|
exports.resolveAdornments = __webpack_exports__.resolveAdornments;
|
|
163
133
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
164
134
|
"BreakpointIndicator",
|
|
165
135
|
"ExecutionStartPointIndicator",
|
|
166
136
|
"ExecutionStatusIndicator",
|
|
167
137
|
"ValidationErrorIndicator",
|
|
168
|
-
"ValidationWarningIndicator",
|
|
169
138
|
"resolveAdornments"
|
|
170
139
|
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
171
140
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -15,9 +15,6 @@ export declare const ExecutionStatusIndicator: import("react").MemoExoticCompone
|
|
|
15
15
|
export declare function ValidationErrorIndicator({ message }: {
|
|
16
16
|
message?: string;
|
|
17
17
|
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare function ValidationWarningIndicator({ message }: {
|
|
19
|
-
message?: string;
|
|
20
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
21
18
|
export declare function resolveAdornments(context: NodeStatusContext): NodeAdornments;
|
|
22
19
|
export {};
|
|
23
20
|
//# sourceMappingURL=adornment-resolver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adornment-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/adornment-resolver.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIvE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAe,EAAE,EAAE,wBAAwB,kDAWhF;AAED,UAAU,iCAAiC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,QAAe,GAChB,EAAE,iCAAiC,kDAWnC;AAED,iBAAS,gCAAgC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,2CAc/F;AAYD,eAAO,MAAM,wBAAwB,8EAAyC,CAAC;AAE/E,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,2CAQzE;
|
|
1
|
+
{"version":3,"file":"adornment-resolver.d.ts","sourceRoot":"","sources":["../../../src/canvas/utils/adornment-resolver.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIvE,UAAU,wBAAwB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,mBAAmB,CAAC,EAAE,QAAe,EAAE,EAAE,wBAAwB,kDAWhF;AAED,UAAU,iCAAiC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,4BAA4B,CAAC,EAC3C,QAAe,GAChB,EAAE,iCAAiC,kDAWnC;AAED,iBAAS,gCAAgC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,2CAc/F;AAYD,eAAO,MAAM,wBAAwB,8EAAyC,CAAC;AAE/E,wBAAgB,wBAAwB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,2CAQzE;AA0BD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,iBAAiB,kBAG3D"}
|
|
@@ -70,22 +70,6 @@ function ValidationErrorIndicator({ message }) {
|
|
|
70
70
|
})
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function ValidationWarningIndicator({ message }) {
|
|
74
|
-
return /*#__PURE__*/ jsx(ApTooltip, {
|
|
75
|
-
content: message || 'Validation warning',
|
|
76
|
-
placement: "bottom",
|
|
77
|
-
children: /*#__PURE__*/ jsx("span", {
|
|
78
|
-
style: {
|
|
79
|
-
display: 'inline-flex'
|
|
80
|
-
},
|
|
81
|
-
children: /*#__PURE__*/ jsx(ApIcon, {
|
|
82
|
-
name: "warning",
|
|
83
|
-
size: "16px",
|
|
84
|
-
color: "var(--uix-canvas-warning-icon)"
|
|
85
|
-
})
|
|
86
|
-
})
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
73
|
const getDefaultAdornments = (context)=>{
|
|
90
74
|
const executionState = context.executionState;
|
|
91
75
|
const status = 'object' == typeof executionState ? executionState?.status : executionState;
|
|
@@ -94,26 +78,14 @@ const getDefaultAdornments = (context)=>{
|
|
|
94
78
|
const isExecutionStartPoint = 'object' == typeof executionState && executionState?.isExecutionStartPoint;
|
|
95
79
|
const isOutputPinned = 'object' == typeof executionState && executionState?.isOutputPinned;
|
|
96
80
|
const hasValidationError = context.validationState?.validationStatus === ValidationErrorSeverity.ERROR || context.validationState?.validationStatus === ValidationErrorSeverity.CRITICAL;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
status: status,
|
|
101
|
-
count: count
|
|
102
|
-
});
|
|
103
|
-
if (hasValidationError) return /*#__PURE__*/ jsx(ValidationErrorIndicator, {
|
|
104
|
-
message: context.validationState?.validationError?.message
|
|
105
|
-
});
|
|
106
|
-
if (hasValidationWarning) return /*#__PURE__*/ jsx(ValidationWarningIndicator, {
|
|
81
|
+
return {
|
|
82
|
+
topLeft: hasBreakpoint ? /*#__PURE__*/ jsx(BreakpointIndicator, {}) : void 0,
|
|
83
|
+
topRight: !status && hasValidationError ? /*#__PURE__*/ jsx(ValidationErrorIndicator, {
|
|
107
84
|
message: context.validationState?.validationError?.message
|
|
108
|
-
})
|
|
109
|
-
return /*#__PURE__*/ jsx(ExecutionStatusIndicator, {
|
|
85
|
+
}) : /*#__PURE__*/ jsx(ExecutionStatusIndicator, {
|
|
110
86
|
status: status,
|
|
111
87
|
count: count
|
|
112
|
-
})
|
|
113
|
-
};
|
|
114
|
-
return {
|
|
115
|
-
topLeft: hasBreakpoint ? /*#__PURE__*/ jsx(BreakpointIndicator, {}) : void 0,
|
|
116
|
-
topRight: getTopRight(),
|
|
88
|
+
}),
|
|
117
89
|
bottomLeft: isExecutionStartPoint ? /*#__PURE__*/ jsx(ExecutionStartPointIndicator, {}) : void 0,
|
|
118
90
|
bottomRight: isOutputPinned ? /*#__PURE__*/ jsx(PinnedOutputIndicator, {}) : void 0
|
|
119
91
|
};
|
|
@@ -121,4 +93,4 @@ const getDefaultAdornments = (context)=>{
|
|
|
121
93
|
function resolveAdornments(context) {
|
|
122
94
|
return getDefaultAdornments(context);
|
|
123
95
|
}
|
|
124
|
-
export { BreakpointIndicator, ExecutionStartPointIndicator, ExecutionStatusIndicator, ValidationErrorIndicator,
|
|
96
|
+
export { BreakpointIndicator, ExecutionStartPointIndicator, ExecutionStatusIndicator, ValidationErrorIndicator, resolveAdornments };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.50.0-
|
|
3
|
+
"version": "3.50.0-pr329.35863a7",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -200,8 +200,8 @@
|
|
|
200
200
|
"use-sync-external-store": "^1.2.0",
|
|
201
201
|
"zod": "^4.3.5",
|
|
202
202
|
"zustand": "^5.0.9",
|
|
203
|
-
"@uipath/apollo-
|
|
204
|
-
"@uipath/apollo-
|
|
203
|
+
"@uipath/apollo-wind": "0.12.2",
|
|
204
|
+
"@uipath/apollo-core": "5.7.1"
|
|
205
205
|
},
|
|
206
206
|
"devDependencies": {
|
|
207
207
|
"@lingui/cli": "^5.6.1",
|