@uipath/apollo-react 4.1.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas/components/AgentCanvas/agent-flow.manifest.cjs +9 -9
- package/dist/canvas/components/AgentCanvas/agent-flow.manifest.js +9 -9
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.cjs +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +1 -1
- package/dist/canvas/components/CodedAgent/coded-agent.manifest.cjs +1 -1
- package/dist/canvas/components/CodedAgent/coded-agent.manifest.js +1 -1
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.cjs +4 -4
- package/dist/canvas/components/HierarchicalCanvas/HierarchicalCanvasWithControls.js +4 -4
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.cjs +49 -7
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/FormattingToolbar.js +49 -7
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.cjs +5 -3
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.d.ts.map +1 -1
- package/dist/canvas/components/StickyNoteNode/StickyNoteNode.js +3 -1
- package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.cjs +1 -1
- package/dist/canvas/components/Toolbar/EdgeToolbar/useEdgeToolbarState.js +1 -1
- package/dist/canvas/locales/de.cjs +36 -0
- package/dist/canvas/locales/de.d.ts +3 -0
- package/dist/canvas/locales/de.d.ts.map +1 -0
- package/dist/canvas/locales/de.js +2 -0
- package/dist/canvas/locales/en.cjs +36 -0
- package/dist/canvas/locales/en.d.ts +3 -0
- package/dist/canvas/locales/en.d.ts.map +1 -0
- package/dist/canvas/locales/en.js +2 -0
- package/dist/canvas/locales/es-MX.cjs +36 -0
- package/dist/canvas/locales/es-MX.d.ts +3 -0
- package/dist/canvas/locales/es-MX.d.ts.map +1 -0
- package/dist/canvas/locales/es-MX.js +2 -0
- package/dist/canvas/locales/es.cjs +36 -0
- package/dist/canvas/locales/es.d.ts +3 -0
- package/dist/canvas/locales/es.d.ts.map +1 -0
- package/dist/canvas/locales/es.js +2 -0
- package/dist/canvas/locales/fr.cjs +36 -0
- package/dist/canvas/locales/fr.d.ts +3 -0
- package/dist/canvas/locales/fr.d.ts.map +1 -0
- package/dist/canvas/locales/fr.js +2 -0
- package/dist/canvas/locales/ja.cjs +36 -0
- package/dist/canvas/locales/ja.d.ts +3 -0
- package/dist/canvas/locales/ja.d.ts.map +1 -0
- package/dist/canvas/locales/ja.js +2 -0
- package/dist/canvas/locales/ko.cjs +36 -0
- package/dist/canvas/locales/ko.d.ts +3 -0
- package/dist/canvas/locales/ko.d.ts.map +1 -0
- package/dist/canvas/locales/ko.js +2 -0
- package/dist/canvas/locales/pt-BR.cjs +36 -0
- package/dist/canvas/locales/pt-BR.d.ts +3 -0
- package/dist/canvas/locales/pt-BR.d.ts.map +1 -0
- package/dist/canvas/locales/pt-BR.js +2 -0
- package/dist/canvas/locales/pt.cjs +36 -0
- package/dist/canvas/locales/pt.d.ts +3 -0
- package/dist/canvas/locales/pt.d.ts.map +1 -0
- package/dist/canvas/locales/pt.js +2 -0
- package/dist/canvas/locales/ru.cjs +36 -0
- package/dist/canvas/locales/ru.d.ts +3 -0
- package/dist/canvas/locales/ru.d.ts.map +1 -0
- package/dist/canvas/locales/ru.js +2 -0
- package/dist/canvas/locales/tr.cjs +36 -0
- package/dist/canvas/locales/tr.d.ts +3 -0
- package/dist/canvas/locales/tr.d.ts.map +1 -0
- package/dist/canvas/locales/tr.js +2 -0
- package/dist/canvas/locales/zh-CN.cjs +36 -0
- package/dist/canvas/locales/zh-CN.d.ts +3 -0
- package/dist/canvas/locales/zh-CN.d.ts.map +1 -0
- package/dist/canvas/locales/zh-CN.js +2 -0
- package/dist/canvas/locales/zh-TW.cjs +36 -0
- package/dist/canvas/locales/zh-TW.d.ts +3 -0
- package/dist/canvas/locales/zh-TW.d.ts.map +1 -0
- package/dist/canvas/locales/zh-TW.js +2 -0
- package/dist/canvas/utils/manifest-resolver.cjs +1 -1
- package/dist/canvas/utils/manifest-resolver.js +1 -1
- package/dist/i18n/locale-registry.cjs +67 -79
- package/dist/i18n/locale-registry.d.ts +3 -4
- package/dist/i18n/locale-registry.d.ts.map +1 -1
- package/dist/i18n/locale-registry.js +80 -57
- package/dist/material/components/ap-chat/locales/de.cjs +36 -1
- package/dist/material/components/ap-chat/locales/de.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/de.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/de.js +2 -1
- package/dist/material/components/ap-chat/locales/en.cjs +36 -1
- package/dist/material/components/ap-chat/locales/en.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/en.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/en.js +2 -1
- package/dist/material/components/ap-chat/locales/es-MX.cjs +36 -1
- package/dist/material/components/ap-chat/locales/es-MX.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/es-MX.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/es-MX.js +2 -1
- package/dist/material/components/ap-chat/locales/es.cjs +36 -1
- package/dist/material/components/ap-chat/locales/es.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/es.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/es.js +2 -1
- package/dist/material/components/ap-chat/locales/fr.cjs +36 -1
- package/dist/material/components/ap-chat/locales/fr.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/fr.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/fr.js +2 -1
- package/dist/material/components/ap-chat/locales/ja.cjs +36 -1
- package/dist/material/components/ap-chat/locales/ja.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/ja.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/ja.js +2 -1
- package/dist/material/components/ap-chat/locales/ko.cjs +36 -1
- package/dist/material/components/ap-chat/locales/ko.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/ko.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/ko.js +2 -1
- package/dist/material/components/ap-chat/locales/pt-BR.cjs +36 -1
- package/dist/material/components/ap-chat/locales/pt-BR.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/pt-BR.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/pt-BR.js +2 -1
- package/dist/material/components/ap-chat/locales/pt.cjs +36 -1
- package/dist/material/components/ap-chat/locales/pt.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/pt.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/pt.js +2 -1
- package/dist/material/components/ap-chat/locales/ru.cjs +36 -1
- package/dist/material/components/ap-chat/locales/ru.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/ru.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/ru.js +2 -1
- package/dist/material/components/ap-chat/locales/tr.cjs +36 -1
- package/dist/material/components/ap-chat/locales/tr.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/tr.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/tr.js +2 -1
- package/dist/material/components/ap-chat/locales/zh-CN.cjs +36 -1
- package/dist/material/components/ap-chat/locales/zh-CN.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/zh-CN.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/zh-CN.js +2 -1
- package/dist/material/components/ap-chat/locales/zh-TW.cjs +36 -1
- package/dist/material/components/ap-chat/locales/zh-TW.d.ts +3 -0
- package/dist/material/components/ap-chat/locales/zh-TW.d.ts.map +1 -0
- package/dist/material/components/ap-chat/locales/zh-TW.js +2 -1
- package/dist/material/components/ap-tool-call/locales/de.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/de.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/de.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/de.js +2 -1
- package/dist/material/components/ap-tool-call/locales/en.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/en.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/en.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/en.js +2 -1
- package/dist/material/components/ap-tool-call/locales/es-MX.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/es-MX.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/es-MX.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/es-MX.js +2 -1
- package/dist/material/components/ap-tool-call/locales/es.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/es.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/es.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/es.js +2 -1
- package/dist/material/components/ap-tool-call/locales/fr.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/fr.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/fr.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/fr.js +2 -1
- package/dist/material/components/ap-tool-call/locales/ja.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/ja.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/ja.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/ja.js +2 -1
- package/dist/material/components/ap-tool-call/locales/ko.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/ko.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/ko.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/ko.js +2 -1
- package/dist/material/components/ap-tool-call/locales/pt-BR.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/pt-BR.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/pt-BR.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/pt-BR.js +2 -1
- package/dist/material/components/ap-tool-call/locales/pt.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/pt.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/pt.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/pt.js +2 -1
- package/dist/material/components/ap-tool-call/locales/ru.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/ru.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/ru.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/ru.js +2 -1
- package/dist/material/components/ap-tool-call/locales/tr.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/tr.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/tr.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/tr.js +2 -1
- package/dist/material/components/ap-tool-call/locales/zh-CN.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/zh-CN.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/zh-CN.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/zh-CN.js +2 -1
- package/dist/material/components/ap-tool-call/locales/zh-TW.cjs +36 -1
- package/dist/material/components/ap-tool-call/locales/zh-TW.d.ts +3 -0
- package/dist/material/components/ap-tool-call/locales/zh-TW.d.ts.map +1 -0
- package/dist/material/components/ap-tool-call/locales/zh-TW.js +2 -1
- package/package.json +1 -1
- package/dist/material/components/ap-chat/locales/de.json +0 -81
- package/dist/material/components/ap-chat/locales/en.json +0 -81
- package/dist/material/components/ap-chat/locales/es-MX.json +0 -81
- package/dist/material/components/ap-chat/locales/es.json +0 -81
- package/dist/material/components/ap-chat/locales/fr.json +0 -81
- package/dist/material/components/ap-chat/locales/ja.json +0 -81
- package/dist/material/components/ap-chat/locales/ko.json +0 -81
- package/dist/material/components/ap-chat/locales/pt-BR.json +0 -81
- package/dist/material/components/ap-chat/locales/pt.json +0 -81
- package/dist/material/components/ap-chat/locales/ro.json +0 -81
- package/dist/material/components/ap-chat/locales/ru.json +0 -69
- package/dist/material/components/ap-chat/locales/tr.json +0 -81
- package/dist/material/components/ap-chat/locales/zh-CN.json +0 -81
- package/dist/material/components/ap-chat/locales/zh-TW.json +0 -81
- package/dist/material/components/ap-tool-call/locales/de.json +0 -9
- package/dist/material/components/ap-tool-call/locales/en.json +0 -9
- package/dist/material/components/ap-tool-call/locales/es-MX.json +0 -9
- package/dist/material/components/ap-tool-call/locales/es.json +0 -9
- package/dist/material/components/ap-tool-call/locales/fr.json +0 -9
- package/dist/material/components/ap-tool-call/locales/ja.json +0 -9
- package/dist/material/components/ap-tool-call/locales/ko.json +0 -9
- package/dist/material/components/ap-tool-call/locales/pt-BR.json +0 -9
- package/dist/material/components/ap-tool-call/locales/pt.json +0 -9
- package/dist/material/components/ap-tool-call/locales/ro.json +0 -9
- package/dist/material/components/ap-tool-call/locales/ru.json +0 -9
- package/dist/material/components/ap-tool-call/locales/tr.json +0 -9
- package/dist/material/components/ap-tool-call/locales/zh-CN.json +0 -9
- package/dist/material/components/ap-tool-call/locales/zh-TW.json +0 -9
|
@@ -42,7 +42,7 @@ const agentFlowCategories = [
|
|
|
42
42
|
sortOrder: 1,
|
|
43
43
|
color: 'linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%)',
|
|
44
44
|
colorDark: 'linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%)',
|
|
45
|
-
icon: '
|
|
45
|
+
icon: 'bot',
|
|
46
46
|
tags: [
|
|
47
47
|
'agent',
|
|
48
48
|
'ai',
|
|
@@ -76,7 +76,7 @@ const conversationalAgentManifest = {
|
|
|
76
76
|
display: {
|
|
77
77
|
label: 'Conversational Agent',
|
|
78
78
|
description: 'An agent that can engage in conversations',
|
|
79
|
-
icon: '
|
|
79
|
+
icon: 'bot-message-square',
|
|
80
80
|
shape: 'rectangle'
|
|
81
81
|
},
|
|
82
82
|
handleConfiguration: [
|
|
@@ -133,7 +133,7 @@ const autonomousAgentManifest = {
|
|
|
133
133
|
display: {
|
|
134
134
|
label: 'Autonomous Agent',
|
|
135
135
|
description: 'An agent that can work independently',
|
|
136
|
-
icon: '
|
|
136
|
+
icon: 'bot',
|
|
137
137
|
shape: 'rectangle'
|
|
138
138
|
},
|
|
139
139
|
handleConfiguration: [
|
|
@@ -190,7 +190,7 @@ const contextResourceManifest = {
|
|
|
190
190
|
display: {
|
|
191
191
|
label: 'Context',
|
|
192
192
|
description: 'Context information for agents',
|
|
193
|
-
icon:
|
|
193
|
+
icon: 'file-text',
|
|
194
194
|
shape: 'circle'
|
|
195
195
|
},
|
|
196
196
|
handleConfiguration: [
|
|
@@ -219,7 +219,7 @@ const toolResourceManifest = {
|
|
|
219
219
|
display: {
|
|
220
220
|
label: 'Tool',
|
|
221
221
|
description: 'A tool or function for agents to use',
|
|
222
|
-
icon: '
|
|
222
|
+
icon: 'wrench',
|
|
223
223
|
shape: 'circle'
|
|
224
224
|
},
|
|
225
225
|
handleConfiguration: [
|
|
@@ -248,7 +248,7 @@ const mcpResourceManifest = {
|
|
|
248
248
|
display: {
|
|
249
249
|
label: 'MCP Resource',
|
|
250
250
|
description: 'Model Context Protocol resource',
|
|
251
|
-
icon: '
|
|
251
|
+
icon: 'network',
|
|
252
252
|
shape: 'circle'
|
|
253
253
|
},
|
|
254
254
|
handleConfiguration: [
|
|
@@ -277,7 +277,7 @@ const escalationResourceManifest = {
|
|
|
277
277
|
display: {
|
|
278
278
|
label: 'Escalation',
|
|
279
279
|
description: 'Escalation point for human intervention',
|
|
280
|
-
icon: '
|
|
280
|
+
icon: 'user',
|
|
281
281
|
shape: 'circle'
|
|
282
282
|
},
|
|
283
283
|
handleConfiguration: [
|
|
@@ -306,7 +306,7 @@ const memoryResourceManifest = {
|
|
|
306
306
|
display: {
|
|
307
307
|
label: 'Memory Space',
|
|
308
308
|
description: 'Memory storage for agent state',
|
|
309
|
-
icon: 'memory',
|
|
309
|
+
icon: 'memory-stick',
|
|
310
310
|
shape: 'circle'
|
|
311
311
|
},
|
|
312
312
|
handleConfiguration: [
|
|
@@ -336,7 +336,7 @@ const a2aResourceManifest = {
|
|
|
336
336
|
display: {
|
|
337
337
|
label: 'A2A Resource',
|
|
338
338
|
description: 'Agent-to-Agent Protocol resource',
|
|
339
|
-
icon: '
|
|
339
|
+
icon: 'network',
|
|
340
340
|
shape: 'circle'
|
|
341
341
|
},
|
|
342
342
|
handleConfiguration: [
|
|
@@ -5,7 +5,7 @@ const agentFlowCategories = [
|
|
|
5
5
|
sortOrder: 1,
|
|
6
6
|
color: 'linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%)',
|
|
7
7
|
colorDark: 'linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%)',
|
|
8
|
-
icon: '
|
|
8
|
+
icon: 'bot',
|
|
9
9
|
tags: [
|
|
10
10
|
'agent',
|
|
11
11
|
'ai',
|
|
@@ -39,7 +39,7 @@ const conversationalAgentManifest = {
|
|
|
39
39
|
display: {
|
|
40
40
|
label: 'Conversational Agent',
|
|
41
41
|
description: 'An agent that can engage in conversations',
|
|
42
|
-
icon: '
|
|
42
|
+
icon: 'bot-message-square',
|
|
43
43
|
shape: 'rectangle'
|
|
44
44
|
},
|
|
45
45
|
handleConfiguration: [
|
|
@@ -96,7 +96,7 @@ const autonomousAgentManifest = {
|
|
|
96
96
|
display: {
|
|
97
97
|
label: 'Autonomous Agent',
|
|
98
98
|
description: 'An agent that can work independently',
|
|
99
|
-
icon: '
|
|
99
|
+
icon: 'bot',
|
|
100
100
|
shape: 'rectangle'
|
|
101
101
|
},
|
|
102
102
|
handleConfiguration: [
|
|
@@ -153,7 +153,7 @@ const contextResourceManifest = {
|
|
|
153
153
|
display: {
|
|
154
154
|
label: 'Context',
|
|
155
155
|
description: 'Context information for agents',
|
|
156
|
-
icon:
|
|
156
|
+
icon: 'file-text',
|
|
157
157
|
shape: 'circle'
|
|
158
158
|
},
|
|
159
159
|
handleConfiguration: [
|
|
@@ -182,7 +182,7 @@ const toolResourceManifest = {
|
|
|
182
182
|
display: {
|
|
183
183
|
label: 'Tool',
|
|
184
184
|
description: 'A tool or function for agents to use',
|
|
185
|
-
icon: '
|
|
185
|
+
icon: 'wrench',
|
|
186
186
|
shape: 'circle'
|
|
187
187
|
},
|
|
188
188
|
handleConfiguration: [
|
|
@@ -211,7 +211,7 @@ const mcpResourceManifest = {
|
|
|
211
211
|
display: {
|
|
212
212
|
label: 'MCP Resource',
|
|
213
213
|
description: 'Model Context Protocol resource',
|
|
214
|
-
icon: '
|
|
214
|
+
icon: 'network',
|
|
215
215
|
shape: 'circle'
|
|
216
216
|
},
|
|
217
217
|
handleConfiguration: [
|
|
@@ -240,7 +240,7 @@ const escalationResourceManifest = {
|
|
|
240
240
|
display: {
|
|
241
241
|
label: 'Escalation',
|
|
242
242
|
description: 'Escalation point for human intervention',
|
|
243
|
-
icon: '
|
|
243
|
+
icon: 'user',
|
|
244
244
|
shape: 'circle'
|
|
245
245
|
},
|
|
246
246
|
handleConfiguration: [
|
|
@@ -269,7 +269,7 @@ const memoryResourceManifest = {
|
|
|
269
269
|
display: {
|
|
270
270
|
label: 'Memory Space',
|
|
271
271
|
description: 'Memory storage for agent state',
|
|
272
|
-
icon: 'memory',
|
|
272
|
+
icon: 'memory-stick',
|
|
273
273
|
shape: 'circle'
|
|
274
274
|
},
|
|
275
275
|
handleConfiguration: [
|
|
@@ -299,7 +299,7 @@ const a2aResourceManifest = {
|
|
|
299
299
|
display: {
|
|
300
300
|
label: 'A2A Resource',
|
|
301
301
|
description: 'Agent-to-Agent Protocol resource',
|
|
302
|
-
icon: '
|
|
302
|
+
icon: 'network',
|
|
303
303
|
shape: 'circle'
|
|
304
304
|
},
|
|
305
305
|
handleConfiguration: [
|
|
@@ -335,7 +335,7 @@ const AgentNodeComponent = /*#__PURE__*/ (0, external_react_namespaceObject.memo
|
|
|
335
335
|
if ('0.0.1' === suggestionGroupVersion) return null;
|
|
336
336
|
const rejectAction = {
|
|
337
337
|
id: 'reject-suggestion',
|
|
338
|
-
icon: '
|
|
338
|
+
icon: 'x',
|
|
339
339
|
label: suggestTranslations.reject,
|
|
340
340
|
disabled: false,
|
|
341
341
|
onAction: ()=>handleActOnSuggestion(suggestionId, 'reject')
|
|
@@ -307,7 +307,7 @@ const AgentNodeComponent = /*#__PURE__*/ memo((props)=>{
|
|
|
307
307
|
if ('0.0.1' === suggestionGroupVersion) return null;
|
|
308
308
|
const rejectAction = {
|
|
309
309
|
id: 'reject-suggestion',
|
|
310
|
-
icon: '
|
|
310
|
+
icon: 'x',
|
|
311
311
|
label: suggestTranslations.reject,
|
|
312
312
|
disabled: false,
|
|
313
313
|
onAction: ()=>handleActOnSuggestion(suggestionId, 'reject')
|
|
@@ -85,7 +85,7 @@ const workflowCategories = [
|
|
|
85
85
|
sortOrder: 0,
|
|
86
86
|
color: 'linear-gradient(135deg, #FAFAFB 0%, #ECEDEF 100%)',
|
|
87
87
|
colorDark: 'linear-gradient(135deg, #526069 0%, rgba(50, 60, 66, 0.6) 100%)',
|
|
88
|
-
icon: '
|
|
88
|
+
icon: 'boxes',
|
|
89
89
|
tags: [
|
|
90
90
|
'basic',
|
|
91
91
|
'fundamental'
|
|
@@ -140,7 +140,7 @@ const workflowManifests = [
|
|
|
140
140
|
sortOrder: 1,
|
|
141
141
|
display: {
|
|
142
142
|
label: 'Start',
|
|
143
|
-
icon: '
|
|
143
|
+
icon: 'circle-play',
|
|
144
144
|
shape: 'circle'
|
|
145
145
|
},
|
|
146
146
|
handleConfiguration: [
|
|
@@ -168,7 +168,7 @@ const workflowManifests = [
|
|
|
168
168
|
sortOrder: 2,
|
|
169
169
|
display: {
|
|
170
170
|
label: 'End',
|
|
171
|
-
icon: '
|
|
171
|
+
icon: 'circle-stop',
|
|
172
172
|
shape: 'circle'
|
|
173
173
|
},
|
|
174
174
|
handleConfiguration: [
|
|
@@ -233,7 +233,7 @@ const workflowManifests = [
|
|
|
233
233
|
sortOrder: 20,
|
|
234
234
|
display: {
|
|
235
235
|
label: 'Decision',
|
|
236
|
-
icon: '
|
|
236
|
+
icon: 'split',
|
|
237
237
|
shape: 'square'
|
|
238
238
|
},
|
|
239
239
|
handleConfiguration: [
|
|
@@ -57,7 +57,7 @@ const workflowCategories = [
|
|
|
57
57
|
sortOrder: 0,
|
|
58
58
|
color: 'linear-gradient(135deg, #FAFAFB 0%, #ECEDEF 100%)',
|
|
59
59
|
colorDark: 'linear-gradient(135deg, #526069 0%, rgba(50, 60, 66, 0.6) 100%)',
|
|
60
|
-
icon: '
|
|
60
|
+
icon: 'boxes',
|
|
61
61
|
tags: [
|
|
62
62
|
'basic',
|
|
63
63
|
'fundamental'
|
|
@@ -112,7 +112,7 @@ const workflowManifests = [
|
|
|
112
112
|
sortOrder: 1,
|
|
113
113
|
display: {
|
|
114
114
|
label: 'Start',
|
|
115
|
-
icon: '
|
|
115
|
+
icon: 'circle-play',
|
|
116
116
|
shape: 'circle'
|
|
117
117
|
},
|
|
118
118
|
handleConfiguration: [
|
|
@@ -140,7 +140,7 @@ const workflowManifests = [
|
|
|
140
140
|
sortOrder: 2,
|
|
141
141
|
display: {
|
|
142
142
|
label: 'End',
|
|
143
|
-
icon: '
|
|
143
|
+
icon: 'circle-stop',
|
|
144
144
|
shape: 'circle'
|
|
145
145
|
},
|
|
146
146
|
handleConfiguration: [
|
|
@@ -205,7 +205,7 @@ const workflowManifests = [
|
|
|
205
205
|
sortOrder: 20,
|
|
206
206
|
display: {
|
|
207
207
|
label: 'Decision',
|
|
208
|
-
icon: '
|
|
208
|
+
icon: 'split',
|
|
209
209
|
shape: 'square'
|
|
210
210
|
},
|
|
211
211
|
handleConfiguration: [
|
|
@@ -27,6 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
FormattingToolbar: ()=>FormattingToolbar
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const react_namespaceObject = require("@lingui/react");
|
|
30
31
|
const external_index_cjs_namespaceObject = require("../../index.cjs");
|
|
31
32
|
const external_react_namespaceObject = require("react");
|
|
32
33
|
const external_CanvasTooltip_cjs_namespaceObject = require("../CanvasTooltip.cjs");
|
|
@@ -34,6 +35,9 @@ const index_cjs_namespaceObject = require("./markdown-formatting/index.cjs");
|
|
|
34
35
|
const external_StickyNoteNode_styles_cjs_namespaceObject = require("./StickyNoteNode.styles.cjs");
|
|
35
36
|
const external_StickyNoteNode_utils_cjs_namespaceObject = require("./StickyNoteNode.utils.cjs");
|
|
36
37
|
const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, onFormat })=>{
|
|
38
|
+
const { _ } = (0, react_namespaceObject.useLingui)();
|
|
39
|
+
const mod = (0, external_StickyNoteNode_utils_cjs_namespaceObject.getModifierKey)();
|
|
40
|
+
const shift = (0, external_StickyNoteNode_utils_cjs_namespaceObject.isMac)() ? '⇧' : '+Shift+';
|
|
37
41
|
const applyFormat = (0, external_react_namespaceObject.useCallback)((formatFn)=>{
|
|
38
42
|
const textarea = textAreaRef.current;
|
|
39
43
|
if (!textarea) return;
|
|
@@ -63,20 +67,54 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
63
67
|
const handleNumberedList = (0, external_react_namespaceObject.useCallback)(()=>applyFormat(index_cjs_namespaceObject.toggleNumberedList), [
|
|
64
68
|
applyFormat
|
|
65
69
|
]);
|
|
66
|
-
const
|
|
67
|
-
|
|
70
|
+
const boldLabel = _({
|
|
71
|
+
id: 'sticky-note.formatting.bold',
|
|
72
|
+
message: 'Bold ({boldShortcut})',
|
|
73
|
+
values: {
|
|
74
|
+
boldShortcut: `${mod}+B`
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
const italicLabel = _({
|
|
78
|
+
id: 'sticky-note.formatting.italic',
|
|
79
|
+
message: 'Italic ({italicShortcut})',
|
|
80
|
+
values: {
|
|
81
|
+
italicShortcut: `${mod}+I`
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
const strikethroughLabel = _({
|
|
85
|
+
id: 'sticky-note.formatting.strikethrough',
|
|
86
|
+
message: 'Strikethrough ({strikethroughShortcut})',
|
|
87
|
+
values: {
|
|
88
|
+
strikethroughShortcut: `${mod}${shift}X`
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
const bulletListLabel = _({
|
|
92
|
+
id: 'sticky-note.formatting.bullet-list',
|
|
93
|
+
message: 'Bullet list'
|
|
94
|
+
});
|
|
95
|
+
const numberedListLabel = _({
|
|
96
|
+
id: 'sticky-note.formatting.numbered-list',
|
|
97
|
+
message: 'Numbered list'
|
|
98
|
+
});
|
|
99
|
+
const toolbarLabel = _({
|
|
100
|
+
id: 'sticky-note.formatting.toolbar',
|
|
101
|
+
message: 'Text formatting'
|
|
102
|
+
});
|
|
68
103
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingToolbarContainer, {
|
|
104
|
+
role: "toolbar",
|
|
105
|
+
"aria-label": toolbarLabel,
|
|
69
106
|
borderColor: borderColor,
|
|
70
107
|
onMouseDown: (e)=>e.preventDefault(),
|
|
71
108
|
className: "nodrag nowheel",
|
|
72
109
|
children: [
|
|
73
110
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
74
|
-
content:
|
|
111
|
+
content: boldLabel,
|
|
75
112
|
placement: "top",
|
|
76
113
|
delay: true,
|
|
77
114
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
78
115
|
isActive: activeFormats.bold,
|
|
79
116
|
onClick: handleBold,
|
|
117
|
+
"aria-label": boldLabel,
|
|
80
118
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
81
119
|
icon: "bold",
|
|
82
120
|
size: 14
|
|
@@ -84,12 +122,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
84
122
|
})
|
|
85
123
|
}),
|
|
86
124
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
87
|
-
content:
|
|
125
|
+
content: italicLabel,
|
|
88
126
|
placement: "top",
|
|
89
127
|
delay: true,
|
|
90
128
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
91
129
|
isActive: activeFormats.italic,
|
|
92
130
|
onClick: handleItalic,
|
|
131
|
+
"aria-label": italicLabel,
|
|
93
132
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
94
133
|
icon: "italic",
|
|
95
134
|
size: 14
|
|
@@ -97,12 +136,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
97
136
|
})
|
|
98
137
|
}),
|
|
99
138
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
100
|
-
content:
|
|
139
|
+
content: strikethroughLabel,
|
|
101
140
|
placement: "top",
|
|
102
141
|
delay: true,
|
|
103
142
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
104
143
|
isActive: activeFormats.strikethrough,
|
|
105
144
|
onClick: handleStrikethrough,
|
|
145
|
+
"aria-label": strikethroughLabel,
|
|
106
146
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
107
147
|
icon: "strikethrough",
|
|
108
148
|
size: 14
|
|
@@ -111,12 +151,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
111
151
|
}),
|
|
112
152
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.ToolbarSeparator, {}),
|
|
113
153
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
114
|
-
content:
|
|
154
|
+
content: bulletListLabel,
|
|
115
155
|
placement: "top",
|
|
116
156
|
delay: true,
|
|
117
157
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
118
158
|
isActive: activeFormats.bulletList,
|
|
119
159
|
onClick: handleBulletList,
|
|
160
|
+
"aria-label": bulletListLabel,
|
|
120
161
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
121
162
|
icon: "list",
|
|
122
163
|
size: 14
|
|
@@ -124,12 +165,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
124
165
|
})
|
|
125
166
|
}),
|
|
126
167
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CanvasTooltip_cjs_namespaceObject.CanvasTooltip, {
|
|
127
|
-
content:
|
|
168
|
+
content: numberedListLabel,
|
|
128
169
|
placement: "top",
|
|
129
170
|
delay: true,
|
|
130
171
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.FormattingButton, {
|
|
131
172
|
isActive: activeFormats.numberedList,
|
|
132
173
|
onClick: handleNumberedList,
|
|
174
|
+
"aria-label": numberedListLabel,
|
|
133
175
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_cjs_namespaceObject.CanvasIcon, {
|
|
134
176
|
icon: "list-ordered",
|
|
135
177
|
size: 14
|
|
@@ -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":"AAEA,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;AAwHD,eAAO,MAAM,iBAAiB,+FAjH3B,sBAAsB,6CAiHwC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useLingui } from "@lingui/react";
|
|
2
3
|
import { CanvasIcon } from "../../index.js";
|
|
3
4
|
import { memo, useCallback } from "react";
|
|
4
5
|
import { CanvasTooltip } from "../CanvasTooltip.js";
|
|
@@ -6,6 +7,9 @@ import { toggleBold, toggleBulletList, toggleItalic, toggleNumberedList, toggleS
|
|
|
6
7
|
import { FormattingButton, FormattingToolbarContainer, ToolbarSeparator } from "./StickyNoteNode.styles.js";
|
|
7
8
|
import { getModifierKey, isMac } from "./StickyNoteNode.utils.js";
|
|
8
9
|
const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, onFormat })=>{
|
|
10
|
+
const { _ } = useLingui();
|
|
11
|
+
const mod = getModifierKey();
|
|
12
|
+
const shift = isMac() ? '⇧' : '+Shift+';
|
|
9
13
|
const applyFormat = useCallback((formatFn)=>{
|
|
10
14
|
const textarea = textAreaRef.current;
|
|
11
15
|
if (!textarea) return;
|
|
@@ -35,20 +39,54 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
35
39
|
const handleNumberedList = useCallback(()=>applyFormat(toggleNumberedList), [
|
|
36
40
|
applyFormat
|
|
37
41
|
]);
|
|
38
|
-
const
|
|
39
|
-
|
|
42
|
+
const boldLabel = _({
|
|
43
|
+
id: 'sticky-note.formatting.bold',
|
|
44
|
+
message: 'Bold ({boldShortcut})',
|
|
45
|
+
values: {
|
|
46
|
+
boldShortcut: `${mod}+B`
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const italicLabel = _({
|
|
50
|
+
id: 'sticky-note.formatting.italic',
|
|
51
|
+
message: 'Italic ({italicShortcut})',
|
|
52
|
+
values: {
|
|
53
|
+
italicShortcut: `${mod}+I`
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
const strikethroughLabel = _({
|
|
57
|
+
id: 'sticky-note.formatting.strikethrough',
|
|
58
|
+
message: 'Strikethrough ({strikethroughShortcut})',
|
|
59
|
+
values: {
|
|
60
|
+
strikethroughShortcut: `${mod}${shift}X`
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
const bulletListLabel = _({
|
|
64
|
+
id: 'sticky-note.formatting.bullet-list',
|
|
65
|
+
message: 'Bullet list'
|
|
66
|
+
});
|
|
67
|
+
const numberedListLabel = _({
|
|
68
|
+
id: 'sticky-note.formatting.numbered-list',
|
|
69
|
+
message: 'Numbered list'
|
|
70
|
+
});
|
|
71
|
+
const toolbarLabel = _({
|
|
72
|
+
id: 'sticky-note.formatting.toolbar',
|
|
73
|
+
message: 'Text formatting'
|
|
74
|
+
});
|
|
40
75
|
return /*#__PURE__*/ jsxs(FormattingToolbarContainer, {
|
|
76
|
+
role: "toolbar",
|
|
77
|
+
"aria-label": toolbarLabel,
|
|
41
78
|
borderColor: borderColor,
|
|
42
79
|
onMouseDown: (e)=>e.preventDefault(),
|
|
43
80
|
className: "nodrag nowheel",
|
|
44
81
|
children: [
|
|
45
82
|
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
46
|
-
content:
|
|
83
|
+
content: boldLabel,
|
|
47
84
|
placement: "top",
|
|
48
85
|
delay: true,
|
|
49
86
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
50
87
|
isActive: activeFormats.bold,
|
|
51
88
|
onClick: handleBold,
|
|
89
|
+
"aria-label": boldLabel,
|
|
52
90
|
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
53
91
|
icon: "bold",
|
|
54
92
|
size: 14
|
|
@@ -56,12 +94,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
56
94
|
})
|
|
57
95
|
}),
|
|
58
96
|
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
59
|
-
content:
|
|
97
|
+
content: italicLabel,
|
|
60
98
|
placement: "top",
|
|
61
99
|
delay: true,
|
|
62
100
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
63
101
|
isActive: activeFormats.italic,
|
|
64
102
|
onClick: handleItalic,
|
|
103
|
+
"aria-label": italicLabel,
|
|
65
104
|
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
66
105
|
icon: "italic",
|
|
67
106
|
size: 14
|
|
@@ -69,12 +108,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
69
108
|
})
|
|
70
109
|
}),
|
|
71
110
|
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
72
|
-
content:
|
|
111
|
+
content: strikethroughLabel,
|
|
73
112
|
placement: "top",
|
|
74
113
|
delay: true,
|
|
75
114
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
76
115
|
isActive: activeFormats.strikethrough,
|
|
77
116
|
onClick: handleStrikethrough,
|
|
117
|
+
"aria-label": strikethroughLabel,
|
|
78
118
|
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
79
119
|
icon: "strikethrough",
|
|
80
120
|
size: 14
|
|
@@ -83,12 +123,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
83
123
|
}),
|
|
84
124
|
/*#__PURE__*/ jsx(ToolbarSeparator, {}),
|
|
85
125
|
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
86
|
-
content:
|
|
126
|
+
content: bulletListLabel,
|
|
87
127
|
placement: "top",
|
|
88
128
|
delay: true,
|
|
89
129
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
90
130
|
isActive: activeFormats.bulletList,
|
|
91
131
|
onClick: handleBulletList,
|
|
132
|
+
"aria-label": bulletListLabel,
|
|
92
133
|
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
93
134
|
icon: "list",
|
|
94
135
|
size: 14
|
|
@@ -96,12 +137,13 @@ const FormattingToolbarComponent = ({ textAreaRef, borderColor, activeFormats, o
|
|
|
96
137
|
})
|
|
97
138
|
}),
|
|
98
139
|
/*#__PURE__*/ jsx(CanvasTooltip, {
|
|
99
|
-
content:
|
|
140
|
+
content: numberedListLabel,
|
|
100
141
|
placement: "top",
|
|
101
142
|
delay: true,
|
|
102
143
|
children: /*#__PURE__*/ jsx(FormattingButton, {
|
|
103
144
|
isActive: activeFormats.numberedList,
|
|
104
145
|
onClick: handleNumberedList,
|
|
146
|
+
"aria-label": numberedListLabel,
|
|
105
147
|
children: /*#__PURE__*/ jsx(CanvasIcon, {
|
|
106
148
|
icon: "list-ordered",
|
|
107
149
|
size: 14
|
|
@@ -41,6 +41,7 @@ const external_index_cjs_namespaceObject = require("../../index.cjs");
|
|
|
41
41
|
const react_cjs_namespaceObject = require("../../xyflow/react.cjs");
|
|
42
42
|
const external_motion_react_namespaceObject = require("motion/react");
|
|
43
43
|
const external_react_namespaceObject = require("react");
|
|
44
|
+
const index_cjs_namespaceObject = require("../../../i18n/index.cjs");
|
|
44
45
|
const external_react_markdown_namespaceObject = require("react-markdown");
|
|
45
46
|
var external_react_markdown_default = /*#__PURE__*/ __webpack_require__.n(external_react_markdown_namespaceObject);
|
|
46
47
|
const external_remark_breaks_namespaceObject = require("remark-breaks");
|
|
@@ -48,7 +49,7 @@ var external_remark_breaks_default = /*#__PURE__*/ __webpack_require__.n(externa
|
|
|
48
49
|
const external_remark_gfm_namespaceObject = require("remark-gfm");
|
|
49
50
|
var external_remark_gfm_default = /*#__PURE__*/ __webpack_require__.n(external_remark_gfm_namespaceObject);
|
|
50
51
|
const external_constants_cjs_namespaceObject = require("../../constants.cjs");
|
|
51
|
-
const
|
|
52
|
+
const external_Toolbar_index_cjs_namespaceObject = require("../Toolbar/index.cjs");
|
|
52
53
|
const external_FormattingToolbar_cjs_namespaceObject = require("./FormattingToolbar.cjs");
|
|
53
54
|
const external_markdown_formatting_index_cjs_namespaceObject = require("./markdown-formatting/index.cjs");
|
|
54
55
|
const external_StickyNoteNode_styles_cjs_namespaceObject = require("./StickyNoteNode.styles.cjs");
|
|
@@ -375,7 +376,8 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
375
376
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_StickyNoteNode_styles_cjs_namespaceObject.BottomCornerIndicators, {
|
|
376
377
|
selected: selected
|
|
377
378
|
}),
|
|
378
|
-
isEditing ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
379
|
+
isEditing ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(index_cjs_namespaceObject.ApI18nProvider, {
|
|
380
|
+
component: "canvas",
|
|
379
381
|
children: [
|
|
380
382
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FormattingToolbar_cjs_namespaceObject.FormattingToolbar, {
|
|
381
383
|
textAreaRef: textAreaRef,
|
|
@@ -417,7 +419,7 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
417
419
|
})
|
|
418
420
|
]
|
|
419
421
|
}),
|
|
420
|
-
selected && !dragging && !isResizing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
422
|
+
selected && !dragging && !isResizing && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_Toolbar_index_cjs_namespaceObject.NodeToolbar, {
|
|
421
423
|
nodeId: id,
|
|
422
424
|
config: toolbarConfig,
|
|
423
425
|
expanded: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"StickyNoteNode.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/StickyNoteNode/StickyNoteNode.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAC;AAgC1E,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAiB,MAAM,wBAAwB,CAAC;AAM7F,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,IAAI,EAAE,cAAc,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,eAAe,KAAK,IAAI,CAAC;IACjD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAsYD,eAAO,MAAM,cAAc,4JAvXxB,mBAAmB,6CAuXqC,CAAC"}
|
|
@@ -4,6 +4,7 @@ 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";
|
|
7
|
+
import { ApI18nProvider } from "../../../i18n/index.js";
|
|
7
8
|
import react_markdown from "react-markdown";
|
|
8
9
|
import remark_breaks from "remark-breaks";
|
|
9
10
|
import remark_gfm from "remark-gfm";
|
|
@@ -335,7 +336,8 @@ const StickyNoteNodeComponent = ({ id, data, selected, dragging, placeholder = '
|
|
|
335
336
|
/*#__PURE__*/ jsx(BottomCornerIndicators, {
|
|
336
337
|
selected: selected
|
|
337
338
|
}),
|
|
338
|
-
isEditing ? /*#__PURE__*/ jsxs(
|
|
339
|
+
isEditing ? /*#__PURE__*/ jsxs(ApI18nProvider, {
|
|
340
|
+
component: "canvas",
|
|
339
341
|
children: [
|
|
340
342
|
/*#__PURE__*/ jsx(FormattingToolbar, {
|
|
341
343
|
textAreaRef: textAreaRef,
|