+1
-1
| { | ||
| "name": "thinkbase", | ||
| "version": "1.0.6", | ||
| "version": "1.0.7", | ||
| "main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
+23
-23
@@ -89,26 +89,26 @@ import React from "react"; | ||
| useEffect(() => { | ||
| if (chatContainerRef.current) { | ||
| chatContainerRef.current.scrollTo({ | ||
| top: chatContainerRef.current.scrollHeight, | ||
| behavior: "smooth", | ||
| }); | ||
| // useEffect(() => { | ||
| // if (chatContainerRef.current) { | ||
| // chatContainerRef.current.scrollTo({ | ||
| // top: chatContainerRef.current.scrollHeight, | ||
| // behavior: "smooth", | ||
| // }); | ||
| const handleScroll = () => { | ||
| if (chatContainerRef.current.scrollTop > 20) { | ||
| setIsHeaderMinimized(true); | ||
| } else { | ||
| setIsHeaderMinimized(false); | ||
| } | ||
| }; | ||
| // const handleScroll = () => { | ||
| // if (chatContainerRef.current.scrollTop > 20) { | ||
| // setIsHeaderMinimized(true); | ||
| // } else { | ||
| // setIsHeaderMinimized(false); | ||
| // } | ||
| // }; | ||
| chatContainerRef.current.addEventListener("scroll", handleScroll); | ||
| return () => { | ||
| if (chatContainerRef.current) { | ||
| // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| chatContainerRef.current.removeEventListener("scroll", handleScroll); | ||
| } | ||
| }; | ||
| } | ||
| }, [isChatActive]); // Re-attach listener when chat becomes active | ||
| // chatContainerRef.current.addEventListener("scroll", handleScroll); | ||
| // return () => { | ||
| // if (chatContainerRef.current) { | ||
| // // eslint-disable-next-line react-hooks/exhaustive-deps | ||
| // chatContainerRef.current.removeEventListener("scroll", handleScroll); | ||
| // } | ||
| // }; | ||
| // } | ||
| // }, [isChatActive]); // Re-attach listener when chat becomes active | ||
@@ -472,3 +472,3 @@ useEffect(() => { | ||
| scrollbar-width: thin; | ||
| scrollbar-color: #8b5cf6 #f9fafb; | ||
| scrollbar-color: #9c9c9c; | ||
| } | ||
@@ -475,0 +475,0 @@ .custom-scrollbar::-webkit-scrollbar { |
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
243419
0.06%