New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/interact-outside

Package Overview
Dependencies
Maintainers
1
Versions
826
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/interact-outside - npm Package Compare versions

Comparing version 0.0.0-dev-20230225101755 to 0.0.0-dev-20230319234907

10

dist/index.js

@@ -73,2 +73,10 @@ "use strict";

var FOCUS_OUTSIDE_EVENT = "focus.outside";
function isComposedPathFocusable(event) {
const composedPath = event.composedPath() ?? [event.target];
for (const node of composedPath) {
if ((0, import_dom_query.isHTMLElement)(node) && (0, import_tabbable.isFocusable)(node))
return true;
}
return false;
}
function trackInteractOutside(node, options) {

@@ -106,3 +114,3 @@ const { exclude, onFocusOutside, onPointerDownOutside, onInteractOutside } = options;

contextmenu: (0, import_dom_event.isContextMenuEvent)(event),
focusable: (0, import_tabbable.isFocusable)((0, import_dom_query.getEventTarget)(event))
focusable: isComposedPathFocusable(event)
}

@@ -109,0 +117,0 @@ });

4

package.json
{
"name": "@zag-js/interact-outside",
"version": "0.0.0-dev-20230225101755",
"version": "0.0.0-dev-20230319234907",
"description": "Track interations or focus outside an element",

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

"dependencies": {
"@zag-js/dom-query": "0.0.0-dev-20230225101755",
"@zag-js/dom-query": "0.1.4",
"@zag-js/dom-event": "0.0.1",

@@ -22,0 +22,0 @@ "@zag-js/tabbable": "0.0.1",

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