@baishuyun/chat-sdk 0.1.3 → 0.1.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/chat-sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "",
5
5
  "main": "src/index.jsx",
6
6
  "module": "dist/chat-sdk.js",
@@ -51,8 +51,8 @@
51
51
  "tailwindcss": "^4.1.17",
52
52
  "vite": "^5.1.4",
53
53
  "vite-plugin-dts": "^4.5.4",
54
- "@baishuyun/typescript-config": "0.1.0",
55
- "@baishuyun/types": "1.1.0"
54
+ "@baishuyun/types": "1.1.0",
55
+ "@baishuyun/typescript-config": "0.1.0"
56
56
  },
57
57
  "exports": {
58
58
  ".": {
@@ -273,7 +273,16 @@ function PureMultimodalInput({
273
273
  [setAttachments, uploadFile]
274
274
  );
275
275
 
276
- const accept = useChatPreference()?.acceptAttachmentFileType?.join(',');
276
+ const accept = (useChatPreference()?.acceptAttachmentFileType || [
277
+ '.csv',
278
+ 'text/csv',
279
+ 'text/plain',
280
+ '.txt',
281
+ 'image/*',
282
+ '.xls',
283
+ '.xlsx',
284
+ ])?.join(',');
285
+
277
286
  const hasAcceptableFileType = !!accept;
278
287
 
279
288
  // Add paste event listener to textarea