@uipath/apollo-react 3.70.3 → 3.71.0-pr482.83f8e96
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/README.md +2 -0
- package/dist/canvas/components/AddNodePanel/AddNodePreview.cjs +9 -9
- package/dist/canvas/components/AddNodePanel/AddNodePreview.d.ts.map +1 -1
- package/dist/canvas/components/AddNodePanel/AddNodePreview.js +9 -9
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.cjs +40 -39
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/components/SuggestionGroupPanel.js +41 -40
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.cjs +13 -9
- package/dist/canvas/components/AgentCanvas/components/TimelinePlayer.js +14 -10
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +5 -5
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.cjs +22 -26
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/ResourceNode.js +22 -26
- package/dist/canvas/components/BaseCanvas/CanvasProviders.cjs +15 -7
- package/dist/canvas/components/BaseCanvas/CanvasProviders.d.ts.map +1 -1
- package/dist/canvas/components/BaseCanvas/CanvasProviders.js +15 -7
- package/dist/canvas/components/BaseNode/BaseNode.cjs +5 -6
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +6 -7
- package/dist/canvas/components/BaseNode/BaseNode.styles.cjs +2 -2
- package/dist/canvas/components/BaseNode/BaseNode.styles.d.ts +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.styles.js +2 -2
- package/dist/canvas/components/BaseNode/NodeLabel.cjs +2 -2
- package/dist/canvas/components/BaseNode/NodeLabel.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/NodeLabel.js +2 -2
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.cjs +6 -6
- package/dist/canvas/components/BlankCanvasNode/BlankCanvasNode.js +4 -4
- package/dist/canvas/components/ButtonHandle/ButtonHandle.cjs +9 -11
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandle.js +9 -11
- package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +6 -9
- package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/SmartHandle.js +6 -9
- package/dist/canvas/components/CanvasPositionControls.cjs +33 -34
- package/dist/canvas/components/CanvasPositionControls.d.ts.map +1 -1
- package/dist/canvas/components/CanvasPositionControls.js +33 -24
- package/dist/canvas/components/CanvasTooltip.cjs +138 -0
- package/dist/canvas/components/CanvasTooltip.d.ts +14 -0
- package/dist/canvas/components/CanvasTooltip.d.ts.map +1 -0
- package/dist/canvas/components/CanvasTooltip.js +91 -0
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.cjs +41 -48
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.d.ts.map +1 -1
- package/dist/canvas/components/CodedAgent/CodedAgentFlow.js +42 -49
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.cjs +35 -32
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.d.ts.map +1 -1
- package/dist/canvas/components/ExecutionStatusIcon/ExecutionStatusIcon.js +35 -32
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.cjs +12 -9
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.d.ts.map +1 -1
- package/dist/canvas/components/FloatingCanvasPanel/PanelChrome.js +12 -9
- package/dist/canvas/components/GroupNode/GroupNode.cjs +10 -12
- package/dist/canvas/components/GroupNode/GroupNode.d.ts.map +1 -1
- package/dist/canvas/components/GroupNode/GroupNode.js +10 -12
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.cjs +11 -8
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvas.js +9 -6
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +79 -66
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.d.ts.map +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +77 -64
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.cjs +14 -82
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts +1 -2
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.d.ts.map +1 -1
- package/dist/canvas/components/NodeContextMenu/NodeContextMenu.js +16 -84
- package/dist/canvas/components/NodeInspector.cjs +64 -68
- package/dist/canvas/components/NodeInspector.d.ts.map +1 -1
- package/dist/canvas/components/NodeInspector.js +64 -68
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.cjs +9 -5
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertiesPanel/NodePropertiesPanel.js +9 -5
- package/dist/canvas/components/StageNode/AdhocTask.cjs +1 -9
- package/dist/canvas/components/StageNode/AdhocTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/AdhocTask.js +2 -10
- package/dist/canvas/components/StageNode/DraggableTask.cjs +5 -13
- package/dist/canvas/components/StageNode/DraggableTask.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/DraggableTask.js +4 -12
- package/dist/canvas/components/StageNode/StageNode.cjs +42 -41
- package/dist/canvas/components/StageNode/StageNode.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.js +43 -42
- package/dist/canvas/components/StageNode/StageNode.stories.utils.cjs +13 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageNode.stories.utils.js +13 -1
- package/dist/canvas/components/StageNode/TaskContent.cjs +36 -35
- package/dist/canvas/components/StageNode/TaskContent.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskContent.js +37 -36
- package/dist/canvas/components/StageNode/TaskMenu.cjs +19 -99
- package/dist/canvas/components/StageNode/TaskMenu.d.ts +0 -2
- package/dist/canvas/components/StageNode/TaskMenu.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/TaskMenu.js +21 -91
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.cjs +17 -17
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.js +12 -12
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +2 -2
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +3 -3
- package/dist/canvas/components/TaskIcon/TaskIcon.cjs +8 -0
- package/dist/canvas/components/TaskIcon/TaskIcon.d.ts.map +1 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.js +9 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.styles.cjs +3 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.styles.d.ts.map +1 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.styles.js +3 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.types.cjs +2 -0
- package/dist/canvas/components/TaskIcon/TaskIcon.types.d.ts +3 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.types.d.ts.map +1 -1
- package/dist/canvas/components/TaskIcon/TaskIcon.types.js +2 -0
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.cjs +16 -14
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/NodeToolbar/NodeToolbar.js +13 -11
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.cjs +6 -6
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.d.ts.map +1 -1
- package/dist/canvas/components/Toolbar/shared/ToolbarButton.js +6 -6
- package/dist/canvas/components/Toolbox/Header.cjs +11 -10
- package/dist/canvas/components/Toolbox/Header.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/Header.js +11 -10
- package/dist/canvas/components/Toolbox/ListView.cjs +22 -34
- package/dist/canvas/components/Toolbox/ListView.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/ListView.js +23 -35
- package/dist/canvas/components/Toolbox/SearchBox.cjs +7 -7
- package/dist/canvas/components/Toolbox/SearchBox.d.ts.map +1 -1
- package/dist/canvas/components/Toolbox/SearchBox.js +7 -7
- package/dist/canvas/components/TriggerNode/TriggerNode.cjs +5 -10
- package/dist/canvas/components/TriggerNode/TriggerNode.d.ts.map +1 -1
- package/dist/canvas/components/TriggerNode/TriggerNode.js +5 -10
- package/dist/canvas/components/shared/CanvasDropdownMenu.cjs +80 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts +13 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.d.ts.map +1 -0
- package/dist/canvas/components/shared/CanvasDropdownMenu.js +46 -0
- package/dist/canvas/constants.cjs +4 -0
- package/dist/canvas/constants.d.ts +1 -0
- package/dist/canvas/constants.d.ts.map +1 -1
- package/dist/canvas/constants.js +2 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.cjs +12 -23
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/canvas/controls/Breadcrumb/Breadcrumb.js +9 -20
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.cjs +13 -11
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/components/StoryInfoPanel.js +13 -11
- package/dist/canvas/storybook-utils/decorators.cjs +7 -1
- package/dist/canvas/storybook-utils/decorators.d.ts.map +1 -1
- package/dist/canvas/storybook-utils/decorators.js +7 -1
- package/dist/canvas/styles/tailwind.canvas.css +2 -0
- package/dist/canvas/utils/adornment-resolver.cjs +11 -12
- package/dist/canvas/utils/adornment-resolver.d.ts.map +1 -1
- package/dist/canvas/utils/adornment-resolver.js +12 -13
- package/dist/canvas/utils/icon-registry.cjs +6 -2
- package/dist/canvas/utils/icon-registry.d.ts +3 -2
- package/dist/canvas/utils/icon-registry.d.ts.map +1 -1
- package/dist/canvas/utils/icon-registry.js +3 -2
- package/dist/material/components/ap-chat/locales/ro.json +3 -3
- package/dist/material/components/ap-tool-call/locales/ro.json +1 -1
- package/package.json +5 -3
|
@@ -28,9 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_index_cjs_namespaceObject = require("../../index.cjs");
|
|
31
|
-
const index_cjs_namespaceObject = require("../../../material/components/index.cjs");
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
33
|
-
const
|
|
32
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
33
|
+
const index_cjs_namespaceObject = require("./markdown-formatting/index.cjs");
|
|
34
34
|
const external_StickyNoteNode_styles_cjs_namespaceObject = require("./StickyNoteNode.styles.cjs");
|
|
35
35
|
const external_StickyNoteNode_utils_cjs_namespaceObject = require("./StickyNoteNode.utils.cjs");
|
|
36
36
|
const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, onFormat })=>{
|
|
@@ -48,19 +48,19 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
48
48
|
textAreaRef,
|
|
49
49
|
onFormat
|
|
50
50
|
]);
|
|
51
|
-
const handleBold = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(
|
|
51
|
+
const handleBold = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleBold), [
|
|
52
52
|
applyFormat
|
|
53
53
|
]);
|
|
54
|
-
const handleItalic = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(
|
|
54
|
+
const handleItalic = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleItalic), [
|
|
55
55
|
applyFormat
|
|
56
56
|
]);
|
|
57
|
-
const handleStrikethrough = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(
|
|
57
|
+
const handleStrikethrough = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleStrikethrough), [
|
|
58
58
|
applyFormat
|
|
59
59
|
]);
|
|
60
|
-
const handleBulletList = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(
|
|
60
|
+
const handleBulletList = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleBulletList), [
|
|
61
61
|
applyFormat
|
|
62
62
|
]);
|
|
63
|
-
const handleNumberedList = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(
|
|
63
|
+
const handleNumberedList = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleNumberedList), [
|
|
64
64
|
applyFormat
|
|
65
65
|
]);
|
|
66
66
|
const mod = (0, external_StickyNoteNode_utils_cjs_namespaceObject.getModifierKey)();
|
|
@@ -70,67 +70,67 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
70
70
|
onMouseDown: (e)=>e.preventDefault(),
|
|
71
71
|
className: "nodrag nowheel",
|
|
72
72
|
children: [
|
|
73
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
73
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
74
74
|
content: `Bold (${mod}+B)`,
|
|
75
75
|
placement: "top",
|
|
76
76
|
delay: true,
|
|
77
77
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
78
78
|
isActive: activeFormats.bold,
|
|
79
79
|
onClick: handleBold,
|
|
80
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
80
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
81
81
|
icon: "bold",
|
|
82
82
|
size: 14
|
|
83
83
|
})
|
|
84
84
|
})
|
|
85
85
|
}),
|
|
86
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
86
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
87
87
|
content: `Italic (${mod}+I)`,
|
|
88
88
|
placement: "top",
|
|
89
89
|
delay: true,
|
|
90
90
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
91
91
|
isActive: activeFormats.italic,
|
|
92
92
|
onClick: handleItalic,
|
|
93
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
93
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
94
94
|
icon: "italic",
|
|
95
95
|
size: 14
|
|
96
96
|
})
|
|
97
97
|
})
|
|
98
98
|
}),
|
|
99
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
99
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
100
100
|
content: `Strikethrough (${mod}${shift}X)`,
|
|
101
101
|
placement: "top",
|
|
102
102
|
delay: true,
|
|
103
103
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
104
104
|
isActive: activeFormats.strikethrough,
|
|
105
105
|
onClick: handleStrikethrough,
|
|
106
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
106
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
107
107
|
icon: "strikethrough",
|
|
108
108
|
size: 14
|
|
109
109
|
})
|
|
110
110
|
})
|
|
111
111
|
}),
|
|
112
112
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.ToolbarSeparator, {}),
|
|
113
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
113
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
114
114
|
content: "Bullet list",
|
|
115
115
|
placement: "top",
|
|
116
116
|
delay: true,
|
|
117
117
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
118
118
|
isActive: activeFormats.bulletList,
|
|
119
119
|
onClick: handleBulletList,
|
|
120
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
120
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
121
121
|
icon: "list",
|
|
122
122
|
size: 14
|
|
123
123
|
})
|
|
124
124
|
})
|
|
125
125
|
}),
|
|
126
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
126
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
127
127
|
content: "Numbered list",
|
|
128
128
|
placement: "top",
|
|
129
129
|
delay: true,
|
|
130
130
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
131
131
|
isActive: activeFormats.numberedList,
|
|
132
132
|
onClick: handleNumberedList,
|
|
133
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
133
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
134
134
|
icon: "list-ordered",
|
|
135
135
|
size: 14
|
|
136
136
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormattingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/FormattingToolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormattingToolbar.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/FormattingToolbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAe,MAAM,OAAO,CAAC;AAE1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAa3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,UAAU,sBAAsB;IAC9B,WAAW,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,aAAa,CAAC;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;CAC3C;AAwED,eAAO,MAAM,iBAAiB,+FAjE3B,sBAAsB,6CAiEwC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { ApTooltip } from "../../../material/components/index.js";
|
|
2
|
+
import { CanvasIcon } from "../../index.js";
|
|
4
3
|
import { memo, useCallback } from "react";
|
|
4
|
+
import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
5
5
|
import { toggleBold, toggleBulletList, toggleItalic, toggleNumberedList, toggleStrikethrough } from "./markdown-formatting/index.js";
|
|
6
6
|
import { FormattingButton, FormattingToolbarContainer, ToolbarSeparator } from "./StickyNoteNode.styles.js";
|
|
7
7
|
import { getModifierKey, isMac } from "./StickyNoteNode.utils.js";
|
|
@@ -42,67 +42,67 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
42
42
|
onMouseDown: (e)=>e.preventDefault(),
|
|
43
43
|
className: "nodrag nowheel",
|
|
44
44
|
children: [
|
|
45
|
-
/*#__PURE__*/ jsx(
|
|
45
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
46
46
|
content: `Bold (${mod}+B)`,
|
|
47
47
|
placement: "top",
|
|
48
48
|
delay: true,
|
|
49
49
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
50
50
|
isActive: activeFormats.bold,
|
|
51
51
|
onClick: handleBold,
|
|
52
|
-
children: /*#__PURE__*/ jsx(
|
|
52
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
53
53
|
icon: "bold",
|
|
54
54
|
size: 14
|
|
55
55
|
})
|
|
56
56
|
})
|
|
57
57
|
}),
|
|
58
|
-
/*#__PURE__*/ jsx(
|
|
58
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
59
59
|
content: `Italic (${mod}+I)`,
|
|
60
60
|
placement: "top",
|
|
61
61
|
delay: true,
|
|
62
62
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
63
63
|
isActive: activeFormats.italic,
|
|
64
64
|
onClick: handleItalic,
|
|
65
|
-
children: /*#__PURE__*/ jsx(
|
|
65
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
66
66
|
icon: "italic",
|
|
67
67
|
size: 14
|
|
68
68
|
})
|
|
69
69
|
})
|
|
70
70
|
}),
|
|
71
|
-
/*#__PURE__*/ jsx(
|
|
71
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
72
72
|
content: `Strikethrough (${mod}${shift}X)`,
|
|
73
73
|
placement: "top",
|
|
74
74
|
delay: true,
|
|
75
75
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
76
76
|
isActive: activeFormats.strikethrough,
|
|
77
77
|
onClick: handleStrikethrough,
|
|
78
|
-
children: /*#__PURE__*/ jsx(
|
|
78
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
79
79
|
icon: "strikethrough",
|
|
80
80
|
size: 14
|
|
81
81
|
})
|
|
82
82
|
})
|
|
83
83
|
}),
|
|
84
84
|
/*#__PURE__*/ jsx(ToolbarSeparator, {}),
|
|
85
|
-
/*#__PURE__*/ jsx(
|
|
85
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
86
86
|
content: "Bullet list",
|
|
87
87
|
placement: "top",
|
|
88
88
|
delay: true,
|
|
89
89
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
90
90
|
isActive: activeFormats.bulletList,
|
|
91
91
|
onClick: handleBulletList,
|
|
92
|
-
children: /*#__PURE__*/ jsx(
|
|
92
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
93
93
|
icon: "list",
|
|
94
94
|
size: 14
|
|
95
95
|
})
|
|
96
96
|
})
|
|
97
97
|
}),
|
|
98
|
-
/*#__PURE__*/ jsx(
|
|
98
|
+
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
99
99
|
content: "Numbered list",
|
|
100
100
|
placement: "top",
|
|
101
101
|
delay: true,
|
|
102
102
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
103
103
|
isActive: activeFormats.numberedList,
|
|
104
104
|
onClick: handleNumberedList,
|
|
105
|
-
children: /*#__PURE__*/ jsx(
|
|
105
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
106
106
|
icon: "list-ordered",
|
|
107
107
|
size: 14
|
|
108
108
|
})
|
|
@@ -243,7 +243,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
243
243
|
const actions = [
|
|
244
244
|
{
|
|
245
245
|
id: 'delete',
|
|
246
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
246
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
247
247
|
icon: "trash",
|
|
248
248
|
size: 14
|
|
249
249
|
}),
|
|
@@ -252,7 +252,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
id: 'edit',
|
|
255
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.
|
|
255
|
+
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
256
256
|
icon: "pencil",
|
|
257
257
|
size: 14
|
|
258
258
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Global } from "@emotion/react";
|
|
3
|
-
import {
|
|
3
|
+
import { CanvasIcon } from "../../index.js";
|
|
4
4
|
import { NodeResizeControl, useReactFlow } from "../../xyflow/react.js";
|
|
5
5
|
import { AnimatePresence } from "motion/react";
|
|
6
6
|
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -203,7 +203,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
203
203
|
const actions = [
|
|
204
204
|
{
|
|
205
205
|
id: 'delete',
|
|
206
|
-
icon: /*#__PURE__*/ jsx(
|
|
206
|
+
icon: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
207
207
|
icon: "trash",
|
|
208
208
|
size: 14
|
|
209
209
|
}),
|
|
@@ -212,7 +212,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
id: 'edit',
|
|
215
|
-
icon: /*#__PURE__*/ jsx(
|
|
215
|
+
icon: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
216
216
|
icon: "pencil",
|
|
217
217
|
size: 14
|
|
218
218
|
}),
|
|
@@ -93,6 +93,14 @@ const getIconForType = (type, iconSize)=>{
|
|
|
93
93
|
w: iconSize,
|
|
94
94
|
h: iconSize
|
|
95
95
|
});
|
|
96
|
+
case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Queues:
|
|
97
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.QueueIcon, {
|
|
98
|
+
size: iconSize
|
|
99
|
+
});
|
|
100
|
+
case external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Tools:
|
|
101
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icons_index_cjs_namespaceObject_0.ConfigurationIcon, {
|
|
102
|
+
size: iconSize
|
|
103
|
+
});
|
|
96
104
|
}
|
|
97
105
|
};
|
|
98
106
|
const TaskIcon = ({ type, size = 'md' })=>{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskIcon.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TaskIcon.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,KAAK,aAAa,EAAyC,MAAM,kBAAkB,CAAC;AAoC7F,eAAO,MAAM,QAAQ,GAAI,gBAAuB,aAAa,4CAS5D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { AgentProject, ApiProject, BusinessProcessProject, CaseManagementProject, ConnectorBuilderProject, HumanIcon, RpaProject } from "../../icons/index.js";
|
|
3
|
-
import { AutopilotIcon, DurationIcon } from "../../../icons/index.js";
|
|
3
|
+
import { AutopilotIcon, ConfigurationIcon, DurationIcon, QueueIcon } from "../../../icons/index.js";
|
|
4
4
|
import { TaskIconContainer } from "./TaskIcon.styles.js";
|
|
5
5
|
import { TaskItemTypeValues } from "./TaskIcon.types.js";
|
|
6
6
|
const SIZE_CONFIG = {
|
|
@@ -65,6 +65,14 @@ const getIconForType = (type, iconSize)=>{
|
|
|
65
65
|
w: iconSize,
|
|
66
66
|
h: iconSize
|
|
67
67
|
});
|
|
68
|
+
case TaskItemTypeValues.Queues:
|
|
69
|
+
return /*#__PURE__*/ jsx(QueueIcon, {
|
|
70
|
+
size: iconSize
|
|
71
|
+
});
|
|
72
|
+
case TaskItemTypeValues.Tools:
|
|
73
|
+
return /*#__PURE__*/ jsx(ConfigurationIcon, {
|
|
74
|
+
size: iconSize
|
|
75
|
+
});
|
|
68
76
|
}
|
|
69
77
|
};
|
|
70
78
|
const TaskIcon = ({ type, size = 'md' })=>{
|
|
@@ -56,7 +56,9 @@ const TASK_ICON_GRADIENTS = {
|
|
|
56
56
|
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Connector]: TaskIcon_styles_CategoryColor.Grey,
|
|
57
57
|
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.ExternalAgent]: TaskIcon_styles_CategoryColor.Purple,
|
|
58
58
|
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Timer]: TaskIcon_styles_CategoryColor.Grey,
|
|
59
|
-
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.CaseManagement]: TaskIcon_styles_CategoryColor.Purple
|
|
59
|
+
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.CaseManagement]: TaskIcon_styles_CategoryColor.Purple,
|
|
60
|
+
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Queues]: TaskIcon_styles_CategoryColor.Grey,
|
|
61
|
+
[external_TaskIcon_types_cjs_namespaceObject.TaskItemTypeValues.Tools]: TaskIcon_styles_CategoryColor.Grey
|
|
60
62
|
};
|
|
61
63
|
const TaskIconContainer = styled_default().div`
|
|
62
64
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskIcon.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,oBAAY,aAAa;IACvB,MAAM,6GAA6G;IACnH,KAAK,4GAA4G;IACjH,IAAI,6GAA6G;IACjH,IAAI,4GAA4G;CACjH;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TaskIcon.styles.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,oBAAY,aAAa;IACvB,MAAM,6GAA6G;IACnH,KAAK,4GAA4G;IACjH,IAAI,6GAA6G;IACjH,IAAI,4GAA4G;CACjH;AAED,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAYlE,CAAC;AAEF,UAAU,sBAAsB;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,kBAAkB,CAAC;IAC9B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,iBAAiB;;;kIAS7B,CAAC"}
|
|
@@ -16,7 +16,9 @@ const TASK_ICON_GRADIENTS = {
|
|
|
16
16
|
[TaskItemTypeValues.Connector]: TaskIcon_styles_CategoryColor.Grey,
|
|
17
17
|
[TaskItemTypeValues.ExternalAgent]: TaskIcon_styles_CategoryColor.Purple,
|
|
18
18
|
[TaskItemTypeValues.Timer]: TaskIcon_styles_CategoryColor.Grey,
|
|
19
|
-
[TaskItemTypeValues.CaseManagement]: TaskIcon_styles_CategoryColor.Purple
|
|
19
|
+
[TaskItemTypeValues.CaseManagement]: TaskIcon_styles_CategoryColor.Purple,
|
|
20
|
+
[TaskItemTypeValues.Queues]: TaskIcon_styles_CategoryColor.Grey,
|
|
21
|
+
[TaskItemTypeValues.Tools]: TaskIcon_styles_CategoryColor.Grey
|
|
20
22
|
};
|
|
21
23
|
const TaskIconContainer = styled.div`
|
|
22
24
|
display: flex;
|
|
@@ -36,6 +36,8 @@ let TaskItemTypeValues = /*#__PURE__*/ function(TaskItemTypeValues) {
|
|
|
36
36
|
TaskItemTypeValues["Connector"] = "connector";
|
|
37
37
|
TaskItemTypeValues["Timer"] = "timer";
|
|
38
38
|
TaskItemTypeValues["CaseManagement"] = "case_management";
|
|
39
|
+
TaskItemTypeValues["Queues"] = "queues";
|
|
40
|
+
TaskItemTypeValues["Tools"] = "tools";
|
|
39
41
|
return TaskItemTypeValues;
|
|
40
42
|
}({});
|
|
41
43
|
exports.TaskItemTypeValues = __webpack_exports__.TaskItemTypeValues;
|
|
@@ -7,7 +7,9 @@ export declare enum TaskItemTypeValues {
|
|
|
7
7
|
Automation = "automation",
|
|
8
8
|
Connector = "connector",
|
|
9
9
|
Timer = "timer",
|
|
10
|
-
CaseManagement = "case_management"
|
|
10
|
+
CaseManagement = "case_management",
|
|
11
|
+
Queues = "queues",
|
|
12
|
+
Tools = "tools"
|
|
11
13
|
}
|
|
12
14
|
export type TaskIconSize = 'sm' | 'md' | 'lg';
|
|
13
15
|
export interface TaskIconProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TaskIcon.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,mBAAmB;IAChC,cAAc,YAAY;IAC1B,aAAa,mBAAmB;IAChC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,cAAc,oBAAoB;
|
|
1
|
+
{"version":3,"file":"TaskIcon.types.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/TaskIcon/TaskIcon.types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,UAAU;IACf,aAAa,mBAAmB;IAChC,cAAc,YAAY;IAC1B,aAAa,mBAAmB;IAChC,UAAU,eAAe;IACzB,SAAS,cAAc;IACvB,KAAK,UAAU;IACf,cAAc,oBAAoB;IAClC,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,kBAAkB,CAAC;IACzB,IAAI,CAAC,EAAE,YAAY,CAAC;CACrB"}
|
|
@@ -8,6 +8,8 @@ let TaskIcon_types_TaskItemTypeValues = /*#__PURE__*/ function(TaskItemTypeValue
|
|
|
8
8
|
TaskItemTypeValues["Connector"] = "connector";
|
|
9
9
|
TaskItemTypeValues["Timer"] = "timer";
|
|
10
10
|
TaskItemTypeValues["CaseManagement"] = "case_management";
|
|
11
|
+
TaskItemTypeValues["Queues"] = "queues";
|
|
12
|
+
TaskItemTypeValues["Tools"] = "tools";
|
|
11
13
|
return TaskItemTypeValues;
|
|
12
14
|
}({});
|
|
13
15
|
export { TaskIcon_types_TaskItemTypeValues as TaskItemTypeValues };
|
|
@@ -27,10 +27,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
NodeToolbar: ()=>NodeToolbar
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const index_cjs_namespaceObject = require("../../../../material/components/index.cjs");
|
|
31
30
|
const react_namespaceObject = require("motion/react");
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
33
|
-
const
|
|
32
|
+
const icon_registry_cjs_namespaceObject = require("../../../utils/icon-registry.cjs");
|
|
33
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../../CanvasTooltip.cjs");
|
|
34
|
+
const index_cjs_namespaceObject = require("../shared/index.cjs");
|
|
34
35
|
const external_NodeToolbar_styles_cjs_namespaceObject = require("./NodeToolbar.styles.cjs");
|
|
35
36
|
const external_NodeToolbar_utils_cjs_namespaceObject = require("./NodeToolbar.utils.cjs");
|
|
36
37
|
const external_useToolbarState_cjs_namespaceObject = require("./useToolbarState.cjs");
|
|
@@ -85,7 +86,7 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
85
86
|
children: [
|
|
86
87
|
actionsToDisplay.map((item, i)=>(0, external_NodeToolbar_utils_cjs_namespaceObject.isSeparator)(item) ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_NodeToolbar_styles_cjs_namespaceObject.StyledToolbarSeparator, {
|
|
87
88
|
$orientation: separatorOrientation
|
|
88
|
-
}, `separator-${i}`) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
89
|
+
}, `separator-${i}`) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.ToolbarButton, {
|
|
89
90
|
action: item,
|
|
90
91
|
layoutId: item.isPinned ? `toolbar-btn-${nodeId}-${item.id}` : void 0
|
|
91
92
|
}, item.id)),
|
|
@@ -96,7 +97,7 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
96
97
|
}),
|
|
97
98
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_NodeToolbar_styles_cjs_namespaceObject.StyledOverflowContainer, {
|
|
98
99
|
children: [
|
|
99
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
100
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_cjs_namespaceObject.StyledToolbarButton, {
|
|
100
101
|
ref: buttonRef,
|
|
101
102
|
type: "button",
|
|
102
103
|
className: "nodrag nopan",
|
|
@@ -104,13 +105,12 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
104
105
|
"aria-label": "More options",
|
|
105
106
|
"aria-expanded": isDropdownOpen,
|
|
106
107
|
"aria-haspopup": "menu",
|
|
107
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
108
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
108
109
|
content: config.overflowLabel,
|
|
109
110
|
placement: "top",
|
|
110
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
size: "16px"
|
|
111
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
112
|
+
icon: "ellipsis-vertical",
|
|
113
|
+
size: 16
|
|
114
114
|
})
|
|
115
115
|
})
|
|
116
116
|
}),
|
|
@@ -154,13 +154,15 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
154
154
|
role: "menuitem",
|
|
155
155
|
$disabled: item.disabled,
|
|
156
156
|
children: [
|
|
157
|
-
item.icon && 'string' == typeof item.icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
157
|
+
item.icon && 'string' == typeof item.icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
158
158
|
style: {
|
|
159
|
-
flex: 'unset'
|
|
159
|
+
flex: 'unset',
|
|
160
|
+
display: 'inline-flex'
|
|
160
161
|
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
162
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
163
|
+
icon: item.icon,
|
|
164
|
+
size: 16
|
|
165
|
+
})
|
|
164
166
|
}),
|
|
165
167
|
item.icon && 'string' != typeof item.icon && item.icon,
|
|
166
168
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NodeToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Toolbar/NodeToolbar/NodeToolbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NodeToolbar.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Toolbar/NodeToolbar/NodeToolbar.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AA8I5D,eAAO,MAAM,WAAW,6EA1I4C,gBAAgB,oDA0I/B,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ApIcon, ApTooltip } from "../../../../material/components/index.js";
|
|
3
2
|
import { AnimatePresence } from "motion/react";
|
|
4
3
|
import { memo, useMemo } from "react";
|
|
4
|
+
import { CanvasIcon } from "../../../utils/icon-registry.js";
|
|
5
|
+
import { CanvasTooltip } from "../../CanvasTooltip.js";
|
|
5
6
|
import { StyledToolbarButton, ToolbarButton } from "../shared/index.js";
|
|
6
7
|
import { StyledDropdownItem, StyledDropdownMenu, StyledOverflowContainer, StyledToolbarContainer, StyledToolbarSeparator } from "./NodeToolbar.styles.js";
|
|
7
8
|
import { isSeparator } from "./NodeToolbar.utils.js";
|
|
@@ -76,13 +77,12 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
76
77
|
"aria-label": "More options",
|
|
77
78
|
"aria-expanded": isDropdownOpen,
|
|
78
79
|
"aria-haspopup": "menu",
|
|
79
|
-
children: /*#__PURE__*/ jsx(
|
|
80
|
+
children: /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
80
81
|
content: config.overflowLabel,
|
|
81
82
|
placement: "top",
|
|
82
|
-
children: /*#__PURE__*/ jsx(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
size: "16px"
|
|
83
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
84
|
+
icon: "ellipsis-vertical",
|
|
85
|
+
size: 16
|
|
86
86
|
})
|
|
87
87
|
})
|
|
88
88
|
}),
|
|
@@ -126,13 +126,15 @@ const NodeToolbarComponent = ({ nodeId, config, expanded, hidden })=>{
|
|
|
126
126
|
role: "menuitem",
|
|
127
127
|
$disabled: item.disabled,
|
|
128
128
|
children: [
|
|
129
|
-
item.icon && 'string' == typeof item.icon && /*#__PURE__*/ jsx(
|
|
129
|
+
item.icon && 'string' == typeof item.icon && /*#__PURE__*/ jsx("span", {
|
|
130
130
|
style: {
|
|
131
|
-
flex: 'unset'
|
|
131
|
+
flex: 'unset',
|
|
132
|
+
display: 'inline-flex'
|
|
132
133
|
},
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
135
|
+
icon: item.icon,
|
|
136
|
+
size: 16
|
|
137
|
+
})
|
|
136
138
|
}),
|
|
137
139
|
item.icon && 'string' != typeof item.icon && item.icon,
|
|
138
140
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -28,8 +28,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const index_cjs_namespaceObject = require("../../../utils/index.cjs");
|
|
31
|
-
const components_index_cjs_namespaceObject = require("../../../../material/components/index.cjs");
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
+
const icon_registry_cjs_namespaceObject = require("../../../utils/icon-registry.cjs");
|
|
33
|
+
const external_CanvasTooltip_cjs_namespaceObject = require("../../CanvasTooltip.cjs");
|
|
33
34
|
const external_ToolbarButton_styles_cjs_namespaceObject = require("./ToolbarButton.styles.cjs");
|
|
34
35
|
const ToolbarButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ action, layoutId })=>{
|
|
35
36
|
const isEnabled = !action.disabled;
|
|
@@ -39,7 +40,7 @@ const ToolbarButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
39
40
|
e.preventDefault();
|
|
40
41
|
if (isEnabled) action.onClick();
|
|
41
42
|
};
|
|
42
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
43
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
43
44
|
content: action.label,
|
|
44
45
|
placement: "top",
|
|
45
46
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_ToolbarButton_styles_cjs_namespaceObject.StyledToolbarButton, {
|
|
@@ -60,10 +61,9 @@ const ToolbarButton = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({
|
|
|
60
61
|
$isToggled: action.isToggled,
|
|
61
62
|
$color: action.color,
|
|
62
63
|
$hoverColor: hoverColor,
|
|
63
|
-
children: action.icon && 'string' == typeof action.icon ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
size: "16px",
|
|
64
|
+
children: action.icon && 'string' == typeof action.icon ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
65
|
+
icon: action.icon,
|
|
66
|
+
size: 16,
|
|
67
67
|
color: action.color
|
|
68
68
|
}) : action.icon
|
|
69
69
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Toolbar/shared/ToolbarButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ToolbarButton.d.ts","sourceRoot":"","sources":["../../../../../src/canvas/components/Toolbar/shared/ToolbarButton.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,qBAAqB,CAAC;IAK9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,6DAA+B,kBAAkB,6CAqCzE,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { getLighterColor } from "../../../utils/index.js";
|
|
3
|
-
import { ApIcon, ApTooltip } from "../../../../material/components/index.js";
|
|
4
3
|
import { memo } from "react";
|
|
4
|
+
import { CanvasIcon } from "../../../utils/icon-registry.js";
|
|
5
|
+
import { CanvasTooltip } from "../../CanvasTooltip.js";
|
|
5
6
|
import { StyledToolbarButton } from "./ToolbarButton.styles.js";
|
|
6
7
|
const ToolbarButton = /*#__PURE__*/ memo(({ action, layoutId })=>{
|
|
7
8
|
const isEnabled = !action.disabled;
|
|
@@ -11,7 +12,7 @@ const ToolbarButton = /*#__PURE__*/ memo(({ action, layoutId })=>{
|
|
|
11
12
|
e.preventDefault();
|
|
12
13
|
if (isEnabled) action.onClick();
|
|
13
14
|
};
|
|
14
|
-
return /*#__PURE__*/ jsx(
|
|
15
|
+
return /*#__PURE__*/ jsx(CanvasTooltip, {
|
|
15
16
|
content: action.label,
|
|
16
17
|
placement: "top",
|
|
17
18
|
children: /*#__PURE__*/ jsx(StyledToolbarButton, {
|
|
@@ -32,10 +33,9 @@ const ToolbarButton = /*#__PURE__*/ memo(({ action, layoutId })=>{
|
|
|
32
33
|
$isToggled: action.isToggled,
|
|
33
34
|
$color: action.color,
|
|
34
35
|
$hoverColor: hoverColor,
|
|
35
|
-
children: action.icon && 'string' == typeof action.icon ? /*#__PURE__*/ jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
size: "16px",
|
|
36
|
+
children: action.icon && 'string' == typeof action.icon ? /*#__PURE__*/ jsx(CanvasIcon, {
|
|
37
|
+
icon: action.icon,
|
|
38
|
+
size: 16,
|
|
39
39
|
color: action.color
|
|
40
40
|
}) : action.icon
|
|
41
41
|
})
|
|
@@ -27,10 +27,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
Header: ()=>Header_Header
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const apollo_core_namespaceObject = require("@uipath/apollo-core");
|
|
31
30
|
const index_cjs_namespaceObject = require("../../layouts/index.cjs");
|
|
32
|
-
const
|
|
31
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
33
32
|
const external_react_namespaceObject = require("react");
|
|
33
|
+
const icon_registry_cjs_namespaceObject = require("../../utils/icon-registry.cjs");
|
|
34
34
|
const Header_Header = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(function({ title, onBack, showBackButton }) {
|
|
35
35
|
const isBackButtonVisible = showBackButton && onBack;
|
|
36
36
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.Row, {
|
|
@@ -46,22 +46,23 @@ const Header_Header = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(fun
|
|
|
46
46
|
transition: 'width 0.3s ease-in-out, opacity 0.3s ease-in-out, transform 0.3s ease-in-out',
|
|
47
47
|
overflow: 'hidden'
|
|
48
48
|
},
|
|
49
|
-
children: isBackButtonVisible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
49
|
+
children: isBackButtonVisible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Button, {
|
|
50
|
+
variant: "ghost",
|
|
51
|
+
size: "icon",
|
|
52
|
+
className: "h-8 w-8",
|
|
50
53
|
"aria-label": "Back",
|
|
51
|
-
color: "secondary",
|
|
52
54
|
onClick: onBack,
|
|
53
55
|
style: {
|
|
54
56
|
transition: 'transform 0.3s ease-in-out'
|
|
55
57
|
},
|
|
56
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
57
|
-
|
|
58
|
-
size:
|
|
58
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icon_registry_cjs_namespaceObject.CanvasIcon, {
|
|
59
|
+
icon: "chevron-left",
|
|
60
|
+
size: 20
|
|
59
61
|
})
|
|
60
62
|
})
|
|
61
63
|
}),
|
|
62
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
63
|
-
|
|
64
|
-
color: "var(--uix-canvas-foreground-emp)",
|
|
64
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
65
|
+
className: "text-base font-bold",
|
|
65
66
|
style: {
|
|
66
67
|
transition: 'transform 0.3s ease-in-out, margin 0.3s ease-in-out',
|
|
67
68
|
margin: 0
|