@zag-js/dom-event
Advanced tools
Comparing version
@@ -74,3 +74,3 @@ import { JSX } from '@zag-js/types'; | ||
declare function queueBeforeEvent(element: Element, type: string, cb: () => void): () => void; | ||
declare function queueBeforeEvent(element: EventTarget, type: string, cb: () => void): () => void; | ||
@@ -77,0 +77,0 @@ declare function requestPointerLock(doc: Document, fn?: (locked: boolean) => void): (() => void) | undefined; |
{ | ||
"name": "@zag-js/dom-event", | ||
"version": "0.0.0-dev-20240612172509", | ||
"version": "0.0.0-dev-20240614092224", | ||
"description": "", | ||
@@ -28,5 +28,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/types": "0.0.0-dev-20240612172509", | ||
"@zag-js/dom-query": "0.0.0-dev-20240612172509", | ||
"@zag-js/text-selection": "0.0.0-dev-20240612172509" | ||
"@zag-js/types": "0.0.0-dev-20240614092224", | ||
"@zag-js/dom-query": "0.0.0-dev-20240614092224", | ||
"@zag-js/text-selection": "0.0.0-dev-20240614092224" | ||
}, | ||
@@ -33,0 +33,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
export function queueBeforeEvent(element: Element, type: string, cb: () => void) { | ||
export function queueBeforeEvent(element: EventTarget, type: string, cb: () => void) { | ||
const createTimer = (callback: () => void) => { | ||
@@ -3,0 +3,0 @@ const timerId = requestAnimationFrame(callback) |
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
115135
0.02%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed