@agents24/chat-react 0.5.31 → 0.5.32
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/ui/index.js
CHANGED
|
@@ -950,7 +950,7 @@ function useAgentChatComposer(options) {
|
|
|
950
950
|
const validationError = options.inputContract ? validateAgentChatSubmission(
|
|
951
951
|
options.inputContract,
|
|
952
952
|
text,
|
|
953
|
-
files.map((file) => ({ data: file.source || new Uint8Array(), mediaType: file.mediaType, name: file.filename }))
|
|
953
|
+
files.map((file) => ({ data: file.source || new Uint8Array(), mediaType: file.mediaType, name: file.filename, byteSize: file.byteSize }))
|
|
954
954
|
) : null;
|
|
955
955
|
const canSubmit = Boolean(text.trim() || files.length) && !options.disabled && !options.isCancelling && !isSubmitting && !recorder.isRecording && !validationError;
|
|
956
956
|
const submit = async () => {
|