stream-chat-react 12.5.0 → 12.5.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/components/ChatAutoComplete/ChatAutoComplete.d.ts +2 -2
- package/dist/components/MessageInput/hooks/usePasteHandler.js +5 -8
- package/dist/index.browser.cjs +3 -4
- package/dist/index.browser.cjs.map +2 -2
- package/dist/index.node.cjs +3 -4
- package/dist/index.node.cjs.map +2 -2
- package/package.json +1 -1
package/dist/index.node.cjs
CHANGED
|
@@ -42626,15 +42626,14 @@ var usePasteHandler = (uploadNewFiles, insertText, isUploadEnabled, findAndEnque
|
|
|
42626
42626
|
}
|
|
42627
42627
|
}
|
|
42628
42628
|
const fileLikes = await dataTransferItemsToFiles(Array.from(items));
|
|
42629
|
-
if (fileLikes.length && isUploadEnabled) {
|
|
42630
|
-
uploadNewFiles(fileLikes);
|
|
42631
|
-
return;
|
|
42632
|
-
}
|
|
42633
42629
|
if (plainTextPromise) {
|
|
42634
42630
|
const pastedText = await plainTextPromise;
|
|
42635
42631
|
insertText(pastedText);
|
|
42636
42632
|
findAndEnqueueURLsToEnrich?.(pastedText, 0 /* UPSERT */);
|
|
42637
42633
|
findAndEnqueueURLsToEnrich?.flush();
|
|
42634
|
+
} else if (fileLikes.length && isUploadEnabled) {
|
|
42635
|
+
uploadNewFiles(fileLikes);
|
|
42636
|
+
return;
|
|
42638
42637
|
}
|
|
42639
42638
|
})(clipboardEvent);
|
|
42640
42639
|
},
|