@baishuyun/chat-sdk 0.1.2 → 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/CHANGELOG.md +12 -0
- package/dist/chat-sdk.js +12 -1
- package/dist/chat-sdk.js.map +1 -1
- package/dist/chat-sdk.umd.cjs +2 -2
- package/dist/chat-sdk.umd.cjs.map +1 -1
- package/package.json +3 -3
- package/src/components/biz-comp/multi-modal-input/index.tsx +10 -1
- package/src/components/bs-ui/confirm-dialog.tsx +5 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/chat-sdk",
|
|
3
|
-
"version": "0.1.
|
|
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/
|
|
55
|
-
"@baishuyun/
|
|
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
|
|
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
|
|
@@ -86,6 +86,11 @@ export function ConfirmDialog({
|
|
|
86
86
|
<button
|
|
87
87
|
type="button"
|
|
88
88
|
className="text-[14px] text-[#0265ff] hover:text-[#0265ff]/80 bg-transparent border-none cursor-pointer"
|
|
89
|
+
onClick={onLinkClick || (() => {
|
|
90
|
+
console.log('Link clicked');
|
|
91
|
+
|
|
92
|
+
onOpenChange?.(false);
|
|
93
|
+
})}
|
|
89
94
|
>
|
|
90
95
|
{linkText}
|
|
91
96
|
</button>
|