@zag-js/dom-utils
Advanced tools
Comparing version 0.0.0-dev-20220709181637 to 0.0.0-dev-20220710093812
@@ -331,3 +331,4 @@ "use strict"; | ||
}, | ||
getActiveElement: (ctx) => roots.getDoc(ctx).activeElement | ||
getActiveElement: (ctx) => roots.getDoc(ctx).activeElement, | ||
getById: (ctx, id) => roots.getRootNode(ctx).getElementById(id) | ||
}; | ||
@@ -334,0 +335,0 @@ return __spreadValues(__spreadValues({}, roots), domUtils); |
@@ -24,2 +24,3 @@ export declare function isDocument(el: any): el is Document; | ||
getActiveElement: (ctx: Ctx) => HTMLElement; | ||
getById: (ctx: Ctx, id: string) => HTMLElement; | ||
} & T; | ||
@@ -26,0 +27,0 @@ export declare function contains(parent: HTMLElement | EventTarget | null | undefined, child: HTMLElement | EventTarget | null): boolean; |
{ | ||
"name": "@zag-js/dom-utils", | ||
"version": "0.0.0-dev-20220709181637", | ||
"version": "0.0.0-dev-20220710093812", | ||
"description": "", | ||
@@ -28,3 +28,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/types": "0.0.0-dev-20220709181637", | ||
"@zag-js/types": "0.0.0-dev-20220710093812", | ||
"@zag-js/utils": "0.1.2" | ||
@@ -31,0 +31,0 @@ }, |
Sorry, the diff of this file is not supported yet
90517
2611
+ Added@zag-js/types@0.0.0-dev-20220710093812(transitive)
- Removed@zag-js/types@0.0.0-dev-20220709181637(transitive)