@zag-js/dismissable
Advanced tools
Comparing version 0.0.0-dev-20221005155029 to 0.0.0-dev-20221031080845
@@ -30,3 +30,3 @@ "use strict"; | ||
const res = typeof v === "function" ? v(...a) : v; | ||
return res ?? void 0; | ||
return res != null ? res : void 0; | ||
}; | ||
@@ -41,2 +41,3 @@ var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop); | ||
function getDocument(el) { | ||
var _a; | ||
if (isWindow(el)) | ||
@@ -46,7 +47,7 @@ return el.document; | ||
return el; | ||
return (el == null ? void 0 : el.ownerDocument) ?? document; | ||
return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document; | ||
} | ||
function getEventTarget(event) { | ||
var _a; | ||
return ((_a = event.composedPath) == null ? void 0 : _a.call(event)[0]) ?? event.target; | ||
var _a, _b; | ||
return (_b = (_a = event.composedPath) == null ? void 0 : _a.call(event)[0]) != null ? _b : event.target; | ||
} | ||
@@ -53,0 +54,0 @@ function contains(parent, child) { |
{ | ||
"name": "@zag-js/dismissable", | ||
"version": "0.0.0-dev-20221005155029", | ||
"version": "0.0.0-dev-20221031080845", | ||
"description": "Dismissable layer utilities for the DOM", | ||
@@ -29,7 +29,7 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@zag-js/interact-outside": "0.0.0-dev-20221005155029" | ||
"@zag-js/interact-outside": "0.0.0-dev-20221031080845" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20221005155029", | ||
"@zag-js/utils": "0.0.0-dev-20221005155029" | ||
"@zag-js/dom-utils": "0.0.0-dev-20221031080845", | ||
"@zag-js/utils": "0.0.0-dev-20221031080845" | ||
}, | ||
@@ -36,0 +36,0 @@ "bugs": { |
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
19732
484
+ Added@zag-js/interact-outside@0.0.0-dev-20221031080845(transitive)
- Removed@zag-js/interact-outside@0.0.0-dev-20221005155029(transitive)