@agent-native/core 0.20.4 → 0.20.6
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/client/AssistantChat.js +4 -4
- package/dist/client/AssistantChat.js.map +1 -1
- package/dist/client/settings/useBuilderStatus.d.ts.map +1 -1
- package/dist/client/settings/useBuilderStatus.js +4 -1
- package/dist/client/settings/useBuilderStatus.js.map +1 -1
- package/dist/client/settings/useBuilderStatus.spec.js +33 -0
- package/dist/client/settings/useBuilderStatus.spec.js.map +1 -1
- package/package.json +1 -1
|
@@ -1758,15 +1758,15 @@ const AssistantChatInner = forwardRef(function AssistantChatInner({ emptyStateTe
|
|
|
1758
1758
|
setDropActive(false);
|
|
1759
1759
|
}, []);
|
|
1760
1760
|
const handleChatDrop = useCallback((e) => {
|
|
1761
|
-
if (e.defaultPrevented)
|
|
1762
|
-
return;
|
|
1763
1761
|
const files = Array.from(e.dataTransfer?.files ?? []);
|
|
1764
1762
|
if (files.length === 0)
|
|
1765
1763
|
return;
|
|
1766
|
-
e.preventDefault();
|
|
1767
|
-
e.stopPropagation();
|
|
1768
1764
|
dropDepthRef.current = 0;
|
|
1769
1765
|
setDropActive(false);
|
|
1766
|
+
if (e.defaultPrevented)
|
|
1767
|
+
return;
|
|
1768
|
+
e.preventDefault();
|
|
1769
|
+
e.stopPropagation();
|
|
1770
1770
|
// Mirror TiptapComposer's paste/drop name-uniqueness so consecutive
|
|
1771
1771
|
// screenshots (all named `image.png`) don't collide on the
|
|
1772
1772
|
// SimpleImageAttachmentAdapter id.
|