@zag-js/dom-utils
Advanced tools
Comparing version 0.0.0-dev-20220425073521 to 0.0.0-dev-20220425184023
@@ -831,3 +831,3 @@ var __create = Object.create; | ||
} | ||
function observeChildren(node, fn, subtree = false) { | ||
function observeChildren(node, fn) { | ||
if (!node) | ||
@@ -843,3 +843,3 @@ return noop; | ||
}); | ||
obs.observe(node, { childList: true, subtree }); | ||
obs.observe(node, { childList: true, subtree: true }); | ||
return () => obs.disconnect(); | ||
@@ -846,0 +846,0 @@ } |
declare type Callback = (v: MutationRecord) => void; | ||
export declare function observeAttributes(node: Element | null, attributes: string | string[], fn: Callback): () => void; | ||
export declare function observeChildren(node: Element | null, fn: Callback, subtree?: boolean): () => void; | ||
export declare function observeChildren(node: Element | null, fn: Callback): () => void; | ||
export {}; | ||
//# sourceMappingURL=mutation-observer.d.ts.map |
{ | ||
"name": "@zag-js/dom-utils", | ||
"version": "0.0.0-dev-20220425073521", | ||
"version": "0.0.0-dev-20220425184023", | ||
"description": "", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"@types/react": "^18.0.0", | ||
"@zag-js/utils": "^0.0.0-dev-20220425073521", | ||
"@zag-js/utils": "^0.0.0-dev-20220425184023", | ||
"scroll-into-view-if-needed": "^2.2.29" | ||
@@ -32,0 +32,0 @@ }, |
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
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
241474