@zag-js/interact-outside
Advanced tools
Comparing version 0.65.1 to 0.66.0
@@ -144,4 +144,4 @@ "use strict"; | ||
pointerdownCleanups.forEach((fn) => fn()); | ||
pointerdownCleanups.add((0, import_dom_event2.queueBeforeEvent)(doc, "pointerup", handler)); | ||
pointerdownCleanups.add(frames.queueBeforeEvent("pointerup", handler)); | ||
pointerdownCleanups.add((0, import_dom_event2.addDomEvent)(doc, "click", handler, { once: true })); | ||
pointerdownCleanups.add(frames.addEventListener("click", handler, { once: true })); | ||
} else { | ||
@@ -148,0 +148,0 @@ handler(); |
{ | ||
"name": "@zag-js/interact-outside", | ||
"version": "0.65.1", | ||
"version": "0.66.0", | ||
"description": "Track interations or focus outside an element", | ||
@@ -20,5 +20,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/dom-query": "0.65.1", | ||
"@zag-js/dom-event": "0.65.1", | ||
"@zag-js/utils": "0.65.1" | ||
"@zag-js/dom-query": "0.66.0", | ||
"@zag-js/dom-event": "0.66.0", | ||
"@zag-js/utils": "0.66.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { addDomEvent, fireCustomEvent, isContextMenuEvent, queueBeforeEvent } from "@zag-js/dom-event" | ||
import { addDomEvent, fireCustomEvent, isContextMenuEvent } from "@zag-js/dom-event" | ||
import { contains, getDocument, getEventTarget, getWindow, isFocusable, isHTMLElement, raf } from "@zag-js/dom-query" | ||
@@ -130,4 +130,4 @@ import { callAll } from "@zag-js/utils" | ||
// add a pointerup event listener to the document and all frame documents | ||
pointerdownCleanups.add(queueBeforeEvent(doc, "pointerup", handler)) | ||
pointerdownCleanups.add(frames.queueBeforeEvent("pointerup", handler)) | ||
pointerdownCleanups.add(addDomEvent(doc, "click", handler, { once: true })) | ||
pointerdownCleanups.add(frames.addEventListener("click", handler, { once: true })) | ||
} else { | ||
@@ -134,0 +134,0 @@ handler() |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50003
+ Added@zag-js/dom-event@0.66.0(transitive)
+ Added@zag-js/dom-query@0.66.0(transitive)
+ Added@zag-js/text-selection@0.66.0(transitive)
+ Added@zag-js/types@0.66.0(transitive)
+ Added@zag-js/utils@0.66.0(transitive)
- Removed@zag-js/dom-event@0.65.1(transitive)
- Removed@zag-js/dom-query@0.65.1(transitive)
- Removed@zag-js/text-selection@0.65.1(transitive)
- Removed@zag-js/types@0.65.1(transitive)
- Removed@zag-js/utils@0.65.1(transitive)
Updated@zag-js/dom-event@0.66.0
Updated@zag-js/dom-query@0.66.0
Updated@zag-js/utils@0.66.0