@uipath/apollo-react 7.11.1 → 7.11.2
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/NodePropertyPanel/EditableText.cjs +4 -162
- package/dist/canvas/components/NodePropertyPanel/EditableText.d.ts +3 -16
- package/dist/canvas/components/NodePropertyPanel/EditableText.d.ts.map +1 -1
- package/dist/canvas/components/NodePropertyPanel/EditableText.js +7 -165
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/headless/providers/attachments-provider.cjs +10 -6
- package/dist/chat/headless/providers/attachments-provider.d.ts.map +1 -1
- package/dist/chat/headless/providers/attachments-provider.js +10 -6
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/material/components/ap-chat/components/common/attachments.cjs +2 -1
- package/dist/material/components/ap-chat/components/common/attachments.d.ts.map +1 -1
- package/dist/material/components/ap-chat/components/common/attachments.js +2 -1
- package/dist/material/components/ap-chat/components/input/tiptap/resource-chip-node-view.cjs +2 -2
- package/dist/material/components/ap-chat/components/input/tiptap/resource-chip-node-view.js +2 -2
- package/package.json +3 -3
|
@@ -96,12 +96,16 @@ function AutopilotAttachmentsProvider({ children }) {
|
|
|
96
96
|
...newFiles.filter((file)=>!current.some((existing)=>existing.name === file.name && existing.size === file.size))
|
|
97
97
|
];
|
|
98
98
|
const totalCount = filesToAdd.length;
|
|
99
|
-
if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount)
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
99
|
+
if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount) {
|
|
100
|
+
const maxCount = allowedAttachments.maxCount;
|
|
101
|
+
setError(_({
|
|
102
|
+
id: 'autopilot-chat.error.too-many-files',
|
|
103
|
+
values: {
|
|
104
|
+
maxCount: maxCount
|
|
105
|
+
}
|
|
106
|
+
}));
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
105
109
|
if (!allowedAttachments.multiple && totalCount > 1) return void setError(_({
|
|
106
110
|
id: 'autopilot-chat.error.multiple-files'
|
|
107
111
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attachments-provider.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/providers/attachments-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,KAAK,qBAAqB,EAG3B,MAAM,eAAe,CAAC;AAMvB,UAAU,+BAA+B;IACvC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAErC,cAAc,EAAE,MAAM,qBAAqB,EAAE,CAAC;IAC9C,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,2BAA2B,gDAOtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"attachments-provider.d.ts","sourceRoot":"","sources":["../../../../src/chat/headless/providers/attachments-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAEL,KAAK,qBAAqB,EAG3B,MAAM,eAAe,CAAC;AAMvB,UAAU,+BAA+B;IACvC,WAAW,EAAE,qBAAqB,EAAE,CAAC;IAErC,cAAc,EAAE,MAAM,qBAAqB,EAAE,CAAC;IAC9C,kBAAkB,EAAE,qBAAqB,EAAE,CAAC;IAC5C,cAAc,EAAE,CAAC,KAAK,EAAE,qBAAqB,EAAE,KAAK,IAAI,CAAC;IACzD,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxD,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,eAAO,MAAM,2BAA2B,gDAOtC,CAAC;AAEH,wBAAgB,4BAA4B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,2CAqJvF;AAED,wBAAgB,cAAc,oCAQ7B"}
|
|
@@ -56,12 +56,16 @@ function AutopilotAttachmentsProvider({ children }) {
|
|
|
56
56
|
...newFiles.filter((file)=>!current.some((existing)=>existing.name === file.name && existing.size === file.size))
|
|
57
57
|
];
|
|
58
58
|
const totalCount = filesToAdd.length;
|
|
59
|
-
if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
if (allowedAttachments.maxCount && totalCount > allowedAttachments.maxCount) {
|
|
60
|
+
const maxCount = allowedAttachments.maxCount;
|
|
61
|
+
setError(_({
|
|
62
|
+
id: 'autopilot-chat.error.too-many-files',
|
|
63
|
+
values: {
|
|
64
|
+
maxCount: maxCount
|
|
65
|
+
}
|
|
66
|
+
}));
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
65
69
|
if (!allowedAttachments.multiple && totalCount > 1) return void setError(_({
|
|
66
70
|
id: 'autopilot-chat.error.multiple-files'
|
|
67
71
|
}));
|