@uipath/apollo-react 3.60.2 → 3.60.4
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/StageNode/StageNode.cjs +4 -0
- package/dist/canvas/components/StageNode/StageNode.js +4 -0
- package/dist/canvas/components/StageNode/StageNode.stories.cjs +152 -0
- package/dist/canvas/components/StageNode/StageNode.stories.d.ts +1 -0
- package/dist/canvas/components/StageNode/StageNode.stories.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.stories.js +150 -1
- package/dist/canvas/components/StageNode/StageNode.styles.cjs +5 -3
- package/dist/canvas/components/StageNode/StageNode.styles.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.styles.js +5 -3
- package/dist/icons/UiPathFullLight.cjs +3 -3
- package/dist/icons/UiPathFullLight.js +3 -3
- package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.cjs +3 -2
- package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.js +3 -2
- package/package.json +2 -2
|
@@ -420,10 +420,14 @@ const StageNodeComponent = (props)=>{
|
|
|
420
420
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
|
|
421
421
|
gap: apollo_core_namespaceObject.Spacing.SpacingMicro,
|
|
422
422
|
align: "center",
|
|
423
|
+
flex: 1,
|
|
424
|
+
minW: 0,
|
|
423
425
|
children: [
|
|
424
426
|
icon,
|
|
425
427
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Column, {
|
|
426
428
|
py: 2,
|
|
429
|
+
flex: 1,
|
|
430
|
+
minW: 0,
|
|
427
431
|
children: [
|
|
428
432
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_material_index_cjs_namespaceObject.ApTypography, {
|
|
429
433
|
variant: isStageTitleEditing ? apollo_core_namespaceObject.FontVariantToken.fontSizeM : apollo_core_namespaceObject.FontVariantToken.fontSizeMBold,
|
|
@@ -392,10 +392,14 @@ const StageNodeComponent = (props)=>{
|
|
|
392
392
|
/*#__PURE__*/ jsxs(Row, {
|
|
393
393
|
gap: Spacing.SpacingMicro,
|
|
394
394
|
align: "center",
|
|
395
|
+
flex: 1,
|
|
396
|
+
minW: 0,
|
|
395
397
|
children: [
|
|
396
398
|
icon,
|
|
397
399
|
/*#__PURE__*/ jsxs(Column, {
|
|
398
400
|
py: 2,
|
|
401
|
+
flex: 1,
|
|
402
|
+
minW: 0,
|
|
399
403
|
children: [
|
|
400
404
|
/*#__PURE__*/ jsx(ApTypography, {
|
|
401
405
|
variant: isStageTitleEditing ? FontVariantToken.fontSizeM : FontVariantToken.fontSizeMBold,
|
|
@@ -29,6 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
LoanProcessingWorkflow: ()=>LoanProcessingWorkflow,
|
|
30
30
|
InteractiveTaskManagement: ()=>InteractiveTaskManagement,
|
|
31
31
|
AddTaskLoading: ()=>AddTaskLoading,
|
|
32
|
+
EditableStageTitle: ()=>EditableStageTitle,
|
|
32
33
|
WithTaskIcons: ()=>WithTaskIcons,
|
|
33
34
|
Default: ()=>Default,
|
|
34
35
|
ExecutionStatus: ()=>ExecutionStatus,
|
|
@@ -1738,6 +1739,155 @@ const AddAndReplaceTasks = {
|
|
|
1738
1739
|
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AddAndReplaceTasksStory, {}),
|
|
1739
1740
|
args: {}
|
|
1740
1741
|
};
|
|
1742
|
+
const InlineTitleEditStory = ()=>{
|
|
1743
|
+
const StageNodeWrapper = (0, external_react_namespaceObject.useMemo)(()=>function(props) {
|
|
1744
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StageNode_cjs_namespaceObject.StageNode, {
|
|
1745
|
+
...props,
|
|
1746
|
+
...props.data
|
|
1747
|
+
});
|
|
1748
|
+
}, []);
|
|
1749
|
+
const nodeTypes = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
1750
|
+
stage: StageNodeWrapper
|
|
1751
|
+
}), [
|
|
1752
|
+
StageNodeWrapper
|
|
1753
|
+
]);
|
|
1754
|
+
const edgeTypes = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
1755
|
+
stage: external_StageEdge_cjs_namespaceObject.StageEdge
|
|
1756
|
+
}), []);
|
|
1757
|
+
const initialNodes = (0, external_react_namespaceObject.useMemo)(()=>[
|
|
1758
|
+
{
|
|
1759
|
+
id: 'editable-stage',
|
|
1760
|
+
type: 'stage',
|
|
1761
|
+
position: {
|
|
1762
|
+
x: 48,
|
|
1763
|
+
y: 96
|
|
1764
|
+
},
|
|
1765
|
+
width: 304,
|
|
1766
|
+
data: {
|
|
1767
|
+
stageDetails: {
|
|
1768
|
+
label: 'Click to Edit Title',
|
|
1769
|
+
tasks: [
|
|
1770
|
+
[
|
|
1771
|
+
{
|
|
1772
|
+
id: '1',
|
|
1773
|
+
label: 'KYC Verification',
|
|
1774
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(VerificationIcon, {})
|
|
1775
|
+
}
|
|
1776
|
+
],
|
|
1777
|
+
[
|
|
1778
|
+
{
|
|
1779
|
+
id: '2',
|
|
1780
|
+
label: 'Document Review',
|
|
1781
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DocumentIcon, {})
|
|
1782
|
+
}
|
|
1783
|
+
]
|
|
1784
|
+
]
|
|
1785
|
+
},
|
|
1786
|
+
onTaskAdd: ()=>{
|
|
1787
|
+
window.alert('Add task functionality - this would open a dialog to add a new task');
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
id: 'long-title-stage',
|
|
1793
|
+
type: 'stage',
|
|
1794
|
+
position: {
|
|
1795
|
+
x: 400,
|
|
1796
|
+
y: 96
|
|
1797
|
+
},
|
|
1798
|
+
width: 304,
|
|
1799
|
+
data: {
|
|
1800
|
+
stageDetails: {
|
|
1801
|
+
label: 'A Very Long Stage Title That Should Truncate With Ellipsis',
|
|
1802
|
+
tasks: [
|
|
1803
|
+
[
|
|
1804
|
+
{
|
|
1805
|
+
id: '1',
|
|
1806
|
+
label: 'Processing Task',
|
|
1807
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ProcessIcon, {})
|
|
1808
|
+
}
|
|
1809
|
+
]
|
|
1810
|
+
]
|
|
1811
|
+
},
|
|
1812
|
+
onTaskAdd: ()=>{
|
|
1813
|
+
window.alert('Add task functionality - this would open a dialog to add a new task');
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
], []);
|
|
1818
|
+
const [nodes, setNodes, onNodesChange] = (0, react_cjs_namespaceObject.useNodesState)(initialNodes);
|
|
1819
|
+
const [edges, setEdges, onEdgesChange] = (0, react_cjs_namespaceObject.useEdgesState)([]);
|
|
1820
|
+
const createTitleChangeHandler = (0, external_react_namespaceObject.useCallback)((nodeId)=>(newTitle)=>{
|
|
1821
|
+
setNodes((nds)=>nds.map((node)=>node.id === nodeId ? {
|
|
1822
|
+
...node,
|
|
1823
|
+
data: {
|
|
1824
|
+
...node.data,
|
|
1825
|
+
stageDetails: {
|
|
1826
|
+
...node.data.stageDetails,
|
|
1827
|
+
label: newTitle
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
} : node));
|
|
1831
|
+
}, [
|
|
1832
|
+
setNodes
|
|
1833
|
+
]);
|
|
1834
|
+
const nodesWithHandlers = (0, external_react_namespaceObject.useMemo)(()=>nodes.map((node)=>({
|
|
1835
|
+
...node,
|
|
1836
|
+
data: {
|
|
1837
|
+
...node.data,
|
|
1838
|
+
onStageTitleChange: createTitleChangeHandler(node.id)
|
|
1839
|
+
}
|
|
1840
|
+
})), [
|
|
1841
|
+
nodes,
|
|
1842
|
+
createTitleChangeHandler
|
|
1843
|
+
]);
|
|
1844
|
+
const onConnect = (0, external_react_namespaceObject.useCallback)((connection)=>setEdges((eds)=>(0, react_cjs_namespaceObject.addEdge)(connection, eds)), [
|
|
1845
|
+
setEdges
|
|
1846
|
+
]);
|
|
1847
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
1848
|
+
style: {
|
|
1849
|
+
width: '100vw',
|
|
1850
|
+
height: '100vh'
|
|
1851
|
+
},
|
|
1852
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.ReactFlowProvider, {
|
|
1853
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BaseCanvas_index_cjs_namespaceObject.BaseCanvas, {
|
|
1854
|
+
nodes: nodesWithHandlers,
|
|
1855
|
+
edges: edges,
|
|
1856
|
+
onNodesChange: onNodesChange,
|
|
1857
|
+
onEdgesChange: onEdgesChange,
|
|
1858
|
+
onConnect: onConnect,
|
|
1859
|
+
nodeTypes: nodeTypes,
|
|
1860
|
+
edgeTypes: edgeTypes,
|
|
1861
|
+
mode: "design",
|
|
1862
|
+
connectionMode: react_cjs_namespaceObject.ConnectionMode.Strict,
|
|
1863
|
+
defaultEdgeOptions: {
|
|
1864
|
+
type: 'stage'
|
|
1865
|
+
},
|
|
1866
|
+
connectionLineComponent: external_StageConnectionEdge_cjs_namespaceObject.StageConnectionEdge,
|
|
1867
|
+
elevateEdgesOnSelect: true,
|
|
1868
|
+
defaultViewport: {
|
|
1869
|
+
x: 0,
|
|
1870
|
+
y: 0,
|
|
1871
|
+
zoom: 1.5
|
|
1872
|
+
},
|
|
1873
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(react_cjs_namespaceObject.Panel, {
|
|
1874
|
+
position: "bottom-right",
|
|
1875
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasPositionControls_cjs_namespaceObject.CanvasPositionControls, {
|
|
1876
|
+
translations: external_types_cjs_namespaceObject.DefaultCanvasTranslations
|
|
1877
|
+
})
|
|
1878
|
+
})
|
|
1879
|
+
})
|
|
1880
|
+
})
|
|
1881
|
+
});
|
|
1882
|
+
};
|
|
1883
|
+
const EditableStageTitle = {
|
|
1884
|
+
name: 'Editable Stage Title',
|
|
1885
|
+
parameters: {
|
|
1886
|
+
useCustomRender: true
|
|
1887
|
+
},
|
|
1888
|
+
render: ()=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(InlineTitleEditStory, {}),
|
|
1889
|
+
args: {}
|
|
1890
|
+
};
|
|
1741
1891
|
const fetchChildren = (id)=>new Promise((resolve)=>{
|
|
1742
1892
|
setTimeout(()=>{
|
|
1743
1893
|
resolve([
|
|
@@ -1929,6 +2079,7 @@ exports.AddAndReplaceTasks = __webpack_exports__.AddAndReplaceTasks;
|
|
|
1929
2079
|
exports.AddTaskLoading = __webpack_exports__.AddTaskLoading;
|
|
1930
2080
|
exports.Default = __webpack_exports__.Default;
|
|
1931
2081
|
exports.DraggableTaskReordering = __webpack_exports__.DraggableTaskReordering;
|
|
2082
|
+
exports.EditableStageTitle = __webpack_exports__.EditableStageTitle;
|
|
1932
2083
|
exports.ExecutionStatus = __webpack_exports__.ExecutionStatus;
|
|
1933
2084
|
exports.InteractiveTaskManagement = __webpack_exports__.InteractiveTaskManagement;
|
|
1934
2085
|
exports.LoanProcessingWorkflow = __webpack_exports__.LoanProcessingWorkflow;
|
|
@@ -1939,6 +2090,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
1939
2090
|
"AddTaskLoading",
|
|
1940
2091
|
"Default",
|
|
1941
2092
|
"DraggableTaskReordering",
|
|
2093
|
+
"EditableStageTitle",
|
|
1942
2094
|
"ExecutionStatus",
|
|
1943
2095
|
"InteractiveTaskManagement",
|
|
1944
2096
|
"LoanProcessingWorkflow",
|
|
@@ -10,5 +10,6 @@ export declare const InteractiveTaskManagement: Story;
|
|
|
10
10
|
export declare const LoanProcessingWorkflow: Story;
|
|
11
11
|
export declare const DraggableTaskReordering: Story;
|
|
12
12
|
export declare const AddAndReplaceTasks: Story;
|
|
13
|
+
export declare const EditableStageTitle: Story;
|
|
13
14
|
export declare const AddTaskLoading: Story;
|
|
14
15
|
//# sourceMappingURL=StageNode.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyBvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA0FD,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,OAAO,EAAE,KAoHrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAsE3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA8M7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KA+HvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAoKpC,CAAC;AA8GF,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAC;AAkVF,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AAiJF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"StageNode.stories.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAyBvD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,SAAS,CA0FD,CAAC;AAEjC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA4CnC,eAAO,MAAM,OAAO,EAAE,KAoHrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAsE3B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KA8M7B,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,KA+HvC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAoKpC,CAAC;AA8GF,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAC;AAkVF,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AA2HF,eAAO,MAAM,kBAAkB,EAAE,KAOhC,CAAC;AAiJF,eAAO,MAAM,cAAc,EAAE,KAO5B,CAAC"}
|
|
@@ -1702,6 +1702,155 @@ const AddAndReplaceTasks = {
|
|
|
1702
1702
|
render: ()=>/*#__PURE__*/ jsx(AddAndReplaceTasksStory, {}),
|
|
1703
1703
|
args: {}
|
|
1704
1704
|
};
|
|
1705
|
+
const InlineTitleEditStory = ()=>{
|
|
1706
|
+
const StageNodeWrapper = useMemo(()=>function(props) {
|
|
1707
|
+
return /*#__PURE__*/ jsx(StageNode, {
|
|
1708
|
+
...props,
|
|
1709
|
+
...props.data
|
|
1710
|
+
});
|
|
1711
|
+
}, []);
|
|
1712
|
+
const nodeTypes = useMemo(()=>({
|
|
1713
|
+
stage: StageNodeWrapper
|
|
1714
|
+
}), [
|
|
1715
|
+
StageNodeWrapper
|
|
1716
|
+
]);
|
|
1717
|
+
const edgeTypes = useMemo(()=>({
|
|
1718
|
+
stage: StageEdge
|
|
1719
|
+
}), []);
|
|
1720
|
+
const initialNodes = useMemo(()=>[
|
|
1721
|
+
{
|
|
1722
|
+
id: 'editable-stage',
|
|
1723
|
+
type: 'stage',
|
|
1724
|
+
position: {
|
|
1725
|
+
x: 48,
|
|
1726
|
+
y: 96
|
|
1727
|
+
},
|
|
1728
|
+
width: 304,
|
|
1729
|
+
data: {
|
|
1730
|
+
stageDetails: {
|
|
1731
|
+
label: 'Click to Edit Title',
|
|
1732
|
+
tasks: [
|
|
1733
|
+
[
|
|
1734
|
+
{
|
|
1735
|
+
id: '1',
|
|
1736
|
+
label: 'KYC Verification',
|
|
1737
|
+
icon: /*#__PURE__*/ jsx(VerificationIcon, {})
|
|
1738
|
+
}
|
|
1739
|
+
],
|
|
1740
|
+
[
|
|
1741
|
+
{
|
|
1742
|
+
id: '2',
|
|
1743
|
+
label: 'Document Review',
|
|
1744
|
+
icon: /*#__PURE__*/ jsx(DocumentIcon, {})
|
|
1745
|
+
}
|
|
1746
|
+
]
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1749
|
+
onTaskAdd: ()=>{
|
|
1750
|
+
window.alert('Add task functionality - this would open a dialog to add a new task');
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
id: 'long-title-stage',
|
|
1756
|
+
type: 'stage',
|
|
1757
|
+
position: {
|
|
1758
|
+
x: 400,
|
|
1759
|
+
y: 96
|
|
1760
|
+
},
|
|
1761
|
+
width: 304,
|
|
1762
|
+
data: {
|
|
1763
|
+
stageDetails: {
|
|
1764
|
+
label: 'A Very Long Stage Title That Should Truncate With Ellipsis',
|
|
1765
|
+
tasks: [
|
|
1766
|
+
[
|
|
1767
|
+
{
|
|
1768
|
+
id: '1',
|
|
1769
|
+
label: 'Processing Task',
|
|
1770
|
+
icon: /*#__PURE__*/ jsx(ProcessIcon, {})
|
|
1771
|
+
}
|
|
1772
|
+
]
|
|
1773
|
+
]
|
|
1774
|
+
},
|
|
1775
|
+
onTaskAdd: ()=>{
|
|
1776
|
+
window.alert('Add task functionality - this would open a dialog to add a new task');
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
}
|
|
1780
|
+
], []);
|
|
1781
|
+
const [nodes, setNodes, onNodesChange] = useNodesState(initialNodes);
|
|
1782
|
+
const [edges, setEdges, onEdgesChange] = useEdgesState([]);
|
|
1783
|
+
const createTitleChangeHandler = useCallback((nodeId)=>(newTitle)=>{
|
|
1784
|
+
setNodes((nds)=>nds.map((node)=>node.id === nodeId ? {
|
|
1785
|
+
...node,
|
|
1786
|
+
data: {
|
|
1787
|
+
...node.data,
|
|
1788
|
+
stageDetails: {
|
|
1789
|
+
...node.data.stageDetails,
|
|
1790
|
+
label: newTitle
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
} : node));
|
|
1794
|
+
}, [
|
|
1795
|
+
setNodes
|
|
1796
|
+
]);
|
|
1797
|
+
const nodesWithHandlers = useMemo(()=>nodes.map((node)=>({
|
|
1798
|
+
...node,
|
|
1799
|
+
data: {
|
|
1800
|
+
...node.data,
|
|
1801
|
+
onStageTitleChange: createTitleChangeHandler(node.id)
|
|
1802
|
+
}
|
|
1803
|
+
})), [
|
|
1804
|
+
nodes,
|
|
1805
|
+
createTitleChangeHandler
|
|
1806
|
+
]);
|
|
1807
|
+
const onConnect = useCallback((connection)=>setEdges((eds)=>addEdge(connection, eds)), [
|
|
1808
|
+
setEdges
|
|
1809
|
+
]);
|
|
1810
|
+
return /*#__PURE__*/ jsx("div", {
|
|
1811
|
+
style: {
|
|
1812
|
+
width: '100vw',
|
|
1813
|
+
height: '100vh'
|
|
1814
|
+
},
|
|
1815
|
+
children: /*#__PURE__*/ jsx(ReactFlowProvider, {
|
|
1816
|
+
children: /*#__PURE__*/ jsx(BaseCanvas, {
|
|
1817
|
+
nodes: nodesWithHandlers,
|
|
1818
|
+
edges: edges,
|
|
1819
|
+
onNodesChange: onNodesChange,
|
|
1820
|
+
onEdgesChange: onEdgesChange,
|
|
1821
|
+
onConnect: onConnect,
|
|
1822
|
+
nodeTypes: nodeTypes,
|
|
1823
|
+
edgeTypes: edgeTypes,
|
|
1824
|
+
mode: "design",
|
|
1825
|
+
connectionMode: ConnectionMode.Strict,
|
|
1826
|
+
defaultEdgeOptions: {
|
|
1827
|
+
type: 'stage'
|
|
1828
|
+
},
|
|
1829
|
+
connectionLineComponent: StageConnectionEdge,
|
|
1830
|
+
elevateEdgesOnSelect: true,
|
|
1831
|
+
defaultViewport: {
|
|
1832
|
+
x: 0,
|
|
1833
|
+
y: 0,
|
|
1834
|
+
zoom: 1.5
|
|
1835
|
+
},
|
|
1836
|
+
children: /*#__PURE__*/ jsx(Panel, {
|
|
1837
|
+
position: "bottom-right",
|
|
1838
|
+
children: /*#__PURE__*/ jsx(CanvasPositionControls, {
|
|
1839
|
+
translations: DefaultCanvasTranslations
|
|
1840
|
+
})
|
|
1841
|
+
})
|
|
1842
|
+
})
|
|
1843
|
+
})
|
|
1844
|
+
});
|
|
1845
|
+
};
|
|
1846
|
+
const EditableStageTitle = {
|
|
1847
|
+
name: 'Editable Stage Title',
|
|
1848
|
+
parameters: {
|
|
1849
|
+
useCustomRender: true
|
|
1850
|
+
},
|
|
1851
|
+
render: ()=>/*#__PURE__*/ jsx(InlineTitleEditStory, {}),
|
|
1852
|
+
args: {}
|
|
1853
|
+
};
|
|
1705
1854
|
const fetchChildren = (id)=>new Promise((resolve)=>{
|
|
1706
1855
|
setTimeout(()=>{
|
|
1707
1856
|
resolve([
|
|
@@ -1889,4 +2038,4 @@ const AddTaskLoading = {
|
|
|
1889
2038
|
render: ()=>/*#__PURE__*/ jsx(AddTaskLoadingStory, {}),
|
|
1890
2039
|
args: {}
|
|
1891
2040
|
};
|
|
1892
|
-
export { AddAndReplaceTasks, AddTaskLoading, Default, DraggableTaskReordering, ExecutionStatus, InteractiveTaskManagement, LoanProcessingWorkflow, WithTaskIcons, StageNode_stories as default };
|
|
2041
|
+
export { AddAndReplaceTasks, AddTaskLoading, Default, DraggableTaskReordering, EditableStageTitle, ExecutionStatus, InteractiveTaskManagement, LoanProcessingWorkflow, WithTaskIcons, StageNode_stories as default };
|
|
@@ -112,9 +112,11 @@ const StageHeader = styled_default().div`
|
|
|
112
112
|
overflow: hidden;
|
|
113
113
|
`;
|
|
114
114
|
const StageTitleContainer = styled_default().div`
|
|
115
|
-
display:
|
|
115
|
+
display: block;
|
|
116
116
|
border-radius: 4px;
|
|
117
117
|
height: 100%;
|
|
118
|
+
width: 100%;
|
|
119
|
+
box-sizing: border-box;
|
|
118
120
|
border: ${(props)=>props.isEditing ? '1px solid var(--uix-canvas-border-de-emp)' : 'none'};
|
|
119
121
|
`;
|
|
120
122
|
const StageTitleInput = styled_default().input`
|
|
@@ -126,9 +128,9 @@ const StageTitleInput = styled_default().input`
|
|
|
126
128
|
background: transparent;
|
|
127
129
|
text-overflow: ellipsis;
|
|
128
130
|
border-radius: 2px;
|
|
131
|
+
width: 100%;
|
|
129
132
|
min-width: 100px;
|
|
130
|
-
|
|
131
|
-
padding: ${(props)=>props.isStageTitleEditable ? 'none' : `${apollo_core_namespaceObject.Padding.PadS} 0px`};
|
|
133
|
+
padding: ${(props)=>props.isStageTitleEditable ? '0' : `${apollo_core_namespaceObject.Padding.PadS} 0px`};
|
|
132
134
|
|
|
133
135
|
&:focus {
|
|
134
136
|
outline: none;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StageNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,QAAuD,CAAC;AAExF,eAAO,MAAM,cAAc;;;;eACd,OAAO;aACT,WAAW;YACZ,MAAM;yGAqDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;kBAA8B,OAAO;yGAS5D,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;gBAA4B,OAAO;
|
|
1
|
+
{"version":3,"file":"StageNode.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StageNode/StageNode.styles.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,IAAI,CAAC;AACpC,eAAO,MAAM,mBAAmB,QAAuD,CAAC;AAExF,eAAO,MAAM,cAAc;;;;eACd,OAAO;aACT,WAAW;YACZ,MAAM;yGAqDf,CAAC;AAEF,eAAO,MAAM,WAAW;;;;kBAA8B,OAAO;yGAS5D,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;gBAA4B,OAAO;yGAOlE,CAAC;AAEF,eAAO,MAAM,eAAe;;;;gBACd,OAAO;2BACI,OAAO;YACtB,MAAM;kHAsBf,CAAC;AAEF,eAAO,MAAM,YAAY;;;yGAQxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAKzB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;iBAA6B,OAAO;yGAM9D,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;yGAa9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;yGAMhC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;iBAA6B,OAAO;yGAKhE,CAAC;AAEF,eAAO,MAAM,SAAS;;;;aACX,WAAW;eACT,OAAO;iBACL,OAAO;oBACJ,OAAO;yGA6DxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;yGAYzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;aAAyB,SAAS,GAAG,MAAM,GAAG,OAAO;yGAoBvF,CAAC;AAEF,eAAO,MAAM,+BAA+B;;;yGAG3C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;uBAAmC,OAAO;yGAW9E,CAAC"}
|
|
@@ -56,9 +56,11 @@ const StageHeader = styled.div`
|
|
|
56
56
|
overflow: hidden;
|
|
57
57
|
`;
|
|
58
58
|
const StageTitleContainer = styled.div`
|
|
59
|
-
display:
|
|
59
|
+
display: block;
|
|
60
60
|
border-radius: 4px;
|
|
61
61
|
height: 100%;
|
|
62
|
+
width: 100%;
|
|
63
|
+
box-sizing: border-box;
|
|
62
64
|
border: ${(props)=>props.isEditing ? '1px solid var(--uix-canvas-border-de-emp)' : 'none'};
|
|
63
65
|
`;
|
|
64
66
|
const StageTitleInput = styled.input`
|
|
@@ -70,9 +72,9 @@ const StageTitleInput = styled.input`
|
|
|
70
72
|
background: transparent;
|
|
71
73
|
text-overflow: ellipsis;
|
|
72
74
|
border-radius: 2px;
|
|
75
|
+
width: 100%;
|
|
73
76
|
min-width: 100px;
|
|
74
|
-
|
|
75
|
-
padding: ${(props)=>props.isStageTitleEditable ? 'none' : `${Padding.PadS} 0px`};
|
|
77
|
+
padding: ${(props)=>props.isStageTitleEditable ? '0' : `${Padding.PadS} 0px`};
|
|
76
78
|
|
|
77
79
|
&:focus {
|
|
78
80
|
outline: none;
|
|
@@ -54,15 +54,15 @@ const UiPathFullLight = /*#__PURE__*/ external_react_default().forwardRef(({ siz
|
|
|
54
54
|
}),
|
|
55
55
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
56
56
|
d: "M91.1326 55.0989H89.675C84.9685 55.0989 82.0451 58.0021 82.0451 62.6744V108.425C82.0451 113.097 84.9685 116 89.675 116H91.1326C95.8386 116 98.762 113.097 98.762 108.425V62.6744C98.762 58.0021 95.8386 55.0989 91.1326 55.0989Z",
|
|
57
|
-
fill: "#
|
|
57
|
+
fill: "#000000"
|
|
58
58
|
}),
|
|
59
59
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
60
60
|
d: "M111.321 26.7778C100.684 25.0967 92.2902 16.8376 90.5818 6.37143C90.5496 6.17388 90.2894 6.17388 90.2572 6.37143C88.5488 16.8376 80.1548 25.0967 69.5175 26.7778C69.3166 26.8094 69.3166 27.0656 69.5175 27.0973C80.1548 28.7781 88.5488 37.0375 90.2572 47.5037C90.2894 47.7012 90.5496 47.7012 90.5818 47.5037C92.2902 37.0375 100.684 28.7781 111.321 27.0973C111.522 27.0656 111.522 26.8095 111.321 26.7778ZM100.87 27.0174C95.5518 27.8578 91.3548 31.9875 90.5006 37.2206C90.4845 37.3194 90.3544 37.3194 90.3383 37.2206C89.4841 31.9875 85.2871 27.8578 79.9685 27.0174C79.868 27.0016 79.868 26.8735 79.9685 26.8577C85.2871 26.0171 89.4841 21.8876 90.3383 16.6545C90.3544 16.5557 90.4845 16.5557 90.5006 16.6545C91.3548 21.8876 95.5518 26.0171 100.87 26.8577C100.971 26.8735 100.971 27.0016 100.87 27.0174Z",
|
|
61
|
-
fill: "#
|
|
61
|
+
fill: "#000000"
|
|
62
62
|
}),
|
|
63
63
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
64
64
|
d: "M117.694 10.4371C112.376 11.2774 108.179 15.4071 107.324 20.6402C107.308 20.739 107.178 20.739 107.162 20.6402C106.308 15.4071 102.111 11.2774 96.7923 10.4371C96.6919 10.4212 96.6919 10.2931 96.7923 10.2773C102.111 9.43674 106.308 5.3072 107.162 0.0740898C107.178 -0.0246966 107.308 -0.0246966 107.324 0.0740898C108.179 5.3072 112.376 9.43672 117.694 10.2773C117.795 10.2931 117.795 10.4212 117.694 10.4371Z",
|
|
65
|
-
fill: "#
|
|
65
|
+
fill: "#000000"
|
|
66
66
|
}),
|
|
67
67
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("path", {
|
|
68
68
|
d: "M135.312 33.1428H119.087C114.445 33.1428 111.561 35.9674 111.561 40.5133V108.63C111.561 113.175 114.445 116 119.087 116H120.865C125.507 116 128.391 113.175 128.391 108.63V92.5057H135.423C163.58 92.5057 175.066 83.9066 175.066 62.8243C175.066 41.7419 163.548 33.1428 135.312 33.1428ZM158.014 62.6067C158.014 73.4525 152.762 77.1123 137.201 77.1123H128.391V48.2095H137.201C152.762 48.2095 158.014 51.842 158.014 62.6067Z",
|
|
@@ -15,15 +15,15 @@ const UiPathFullLight = /*#__PURE__*/ react.forwardRef(({ size, ...props }, ref)
|
|
|
15
15
|
}),
|
|
16
16
|
/*#__PURE__*/ jsx("path", {
|
|
17
17
|
d: "M91.1326 55.0989H89.675C84.9685 55.0989 82.0451 58.0021 82.0451 62.6744V108.425C82.0451 113.097 84.9685 116 89.675 116H91.1326C95.8386 116 98.762 113.097 98.762 108.425V62.6744C98.762 58.0021 95.8386 55.0989 91.1326 55.0989Z",
|
|
18
|
-
fill: "#
|
|
18
|
+
fill: "#000000"
|
|
19
19
|
}),
|
|
20
20
|
/*#__PURE__*/ jsx("path", {
|
|
21
21
|
d: "M111.321 26.7778C100.684 25.0967 92.2902 16.8376 90.5818 6.37143C90.5496 6.17388 90.2894 6.17388 90.2572 6.37143C88.5488 16.8376 80.1548 25.0967 69.5175 26.7778C69.3166 26.8094 69.3166 27.0656 69.5175 27.0973C80.1548 28.7781 88.5488 37.0375 90.2572 47.5037C90.2894 47.7012 90.5496 47.7012 90.5818 47.5037C92.2902 37.0375 100.684 28.7781 111.321 27.0973C111.522 27.0656 111.522 26.8095 111.321 26.7778ZM100.87 27.0174C95.5518 27.8578 91.3548 31.9875 90.5006 37.2206C90.4845 37.3194 90.3544 37.3194 90.3383 37.2206C89.4841 31.9875 85.2871 27.8578 79.9685 27.0174C79.868 27.0016 79.868 26.8735 79.9685 26.8577C85.2871 26.0171 89.4841 21.8876 90.3383 16.6545C90.3544 16.5557 90.4845 16.5557 90.5006 16.6545C91.3548 21.8876 95.5518 26.0171 100.87 26.8577C100.971 26.8735 100.971 27.0016 100.87 27.0174Z",
|
|
22
|
-
fill: "#
|
|
22
|
+
fill: "#000000"
|
|
23
23
|
}),
|
|
24
24
|
/*#__PURE__*/ jsx("path", {
|
|
25
25
|
d: "M117.694 10.4371C112.376 11.2774 108.179 15.4071 107.324 20.6402C107.308 20.739 107.178 20.739 107.162 20.6402C106.308 15.4071 102.111 11.2774 96.7923 10.4371C96.6919 10.4212 96.6919 10.2931 96.7923 10.2773C102.111 9.43674 106.308 5.3072 107.162 0.0740898C107.178 -0.0246966 107.308 -0.0246966 107.324 0.0740898C108.179 5.3072 112.376 9.43672 117.694 10.2773C117.795 10.2931 117.795 10.4212 117.694 10.4371Z",
|
|
26
|
-
fill: "#
|
|
26
|
+
fill: "#000000"
|
|
27
27
|
}),
|
|
28
28
|
/*#__PURE__*/ jsx("path", {
|
|
29
29
|
d: "M135.312 33.1428H119.087C114.445 33.1428 111.561 35.9674 111.561 40.5133V108.63C111.561 113.175 114.445 116 119.087 116H120.865C125.507 116 128.391 113.175 128.391 108.63V92.5057H135.423C163.58 92.5057 175.066 83.9066 175.066 62.8243C175.066 41.7419 163.548 33.1428 135.312 33.1428ZM158.014 62.6067C158.014 73.4525 152.762 77.1123 137.201 77.1123H128.391V48.2095H137.201C152.762 48.2095 158.014 51.842 158.014 62.6067Z",
|
package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.cjs
CHANGED
|
@@ -47,7 +47,8 @@ function citationPlugin() {
|
|
|
47
47
|
});
|
|
48
48
|
const token = match[0];
|
|
49
49
|
if (token.startsWith('[[cite-start:')) try {
|
|
50
|
-
const
|
|
50
|
+
const raw = atob(match[1]);
|
|
51
|
+
const decoded = raw.startsWith('%5B') ? decodeURIComponent(raw) : raw;
|
|
51
52
|
const citationsData = JSON.parse(decoded);
|
|
52
53
|
citationStack.push({
|
|
53
54
|
citationsData
|
|
@@ -113,7 +114,7 @@ function contentPartsToMarkdown(messageId, contentParts) {
|
|
|
113
114
|
page_number: 'page_number' in citation ? citation.page_number : void 0,
|
|
114
115
|
messageId
|
|
115
116
|
}));
|
|
116
|
-
const encodedData = btoa(JSON.stringify(citationsData));
|
|
117
|
+
const encodedData = btoa(encodeURIComponent(JSON.stringify(citationsData)));
|
|
117
118
|
const endsWithUrl = /https?:\/\/\S+$/.test(text);
|
|
118
119
|
text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
|
|
119
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"citation-parser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/material/components/ap-chat/components/message/markdown/parsers/citation-parser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK5E,wBAAgB,cAAc,KAIpB,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"citation-parser.d.ts","sourceRoot":"","sources":["../../../../../../../../src/material/components/ap-chat/components/message/markdown/parsers/citation-parser.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAK5E,wBAAgB,cAAc,KAIpB,MAAM,GAAG,UAuFlB;AAsCD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,MAAM,CA4B7F"}
|
package/dist/material/components/ap-chat/components/message/markdown/parsers/citation-parser.js
CHANGED
|
@@ -18,7 +18,8 @@ function citationPlugin() {
|
|
|
18
18
|
});
|
|
19
19
|
const token = match[0];
|
|
20
20
|
if (token.startsWith('[[cite-start:')) try {
|
|
21
|
-
const
|
|
21
|
+
const raw = atob(match[1]);
|
|
22
|
+
const decoded = raw.startsWith('%5B') ? decodeURIComponent(raw) : raw;
|
|
22
23
|
const citationsData = JSON.parse(decoded);
|
|
23
24
|
citationStack.push({
|
|
24
25
|
citationsData
|
|
@@ -84,7 +85,7 @@ function contentPartsToMarkdown(messageId, contentParts) {
|
|
|
84
85
|
page_number: 'page_number' in citation ? citation.page_number : void 0,
|
|
85
86
|
messageId
|
|
86
87
|
}));
|
|
87
|
-
const encodedData = btoa(JSON.stringify(citationsData));
|
|
88
|
+
const encodedData = btoa(encodeURIComponent(JSON.stringify(citationsData)));
|
|
88
89
|
const endsWithUrl = /https?:\/\/\S+$/.test(text);
|
|
89
90
|
text = `[[cite-start:${encodedData}]]${text}${endsWithUrl ? ' ' : ''}[[cite-end]]`;
|
|
90
91
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/apollo-react",
|
|
3
|
-
"version": "3.60.
|
|
3
|
+
"version": "3.60.4",
|
|
4
4
|
"description": "Apollo Design System - React component library with Material UI theming",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
"use-sync-external-store": "^1.2.0",
|
|
201
201
|
"zod": "^4.3.5",
|
|
202
202
|
"zustand": "^5.0.9",
|
|
203
|
-
"@uipath/apollo-core": "5.8.
|
|
203
|
+
"@uipath/apollo-core": "5.8.1",
|
|
204
204
|
"@uipath/apollo-wind": "1.4.0"
|
|
205
205
|
},
|
|
206
206
|
"devDependencies": {
|