Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@yamada-ui/use-outside-click

Package Overview
Dependencies
Maintainers
0
Versions
554
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@yamada-ui/use-outside-click - npm Package Compare versions

Comparing version 1.0.21 to 1.0.22-dev-20241006000212

4

dist/index.d.ts
interface UseOutsideClickProps {
ref: React.RefObject<HTMLElement>;
enabled?: boolean;
ref: React.RefObject<HTMLElement>;
handler?: (ev: Event) => void;

@@ -11,4 +11,4 @@ }

*/
declare const useOutsideClick: ({ ref, handler, enabled, }: UseOutsideClickProps) => void;
declare const useOutsideClick: ({ ref, enabled, handler, }: UseOutsideClickProps) => void;
export { type UseOutsideClickProps, useOutsideClick };

@@ -31,9 +31,9 @@ "use client"

ref,
handler,
enabled = true
enabled = true,
handler
}) => {
const handlerRef = (0, import_utils.useCallbackRef)(handler);
const state = (0, import_react.useRef)({
isPointerDown: false,
ignoreEmulatedMouseEvents: false
ignoreEmulatedMouseEvents: false,
isPointerDown: false
});

@@ -40,0 +40,0 @@ (0, import_react.useEffect)(() => {

{
"name": "@yamada-ui/use-outside-click",
"version": "1.0.21",
"version": "1.0.22-dev-20241006000212",
"description": "Yamada UI useOutsideClick custom hook",

@@ -28,3 +28,3 @@ "keywords": [

"dependencies": {
"@yamada-ui/utils": "1.5.2"
"@yamada-ui/utils": "1.5.3-dev-20241006000212"
},

@@ -31,0 +31,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc