@zag-js/avatar
Advanced tools
Comparing version 0.65.1 to 0.66.0
@@ -165,3 +165,5 @@ "use strict"; | ||
const removedNodes = Array.from(records[0].removedNodes); | ||
const removed = removedNodes.find((node) => node.matches("[data-scope=avatar][data-part=image]")); | ||
const removed = removedNodes.find( | ||
(node) => node.nodeType === Node.ELEMENT_NODE && node.matches("[data-scope=avatar][data-part=image]") | ||
); | ||
if (removed) { | ||
@@ -168,0 +170,0 @@ send({ type: "IMG.UNMOUNT" }); |
{ | ||
"name": "@zag-js/avatar", | ||
"version": "0.65.1", | ||
"version": "0.66.0", | ||
"description": "Core logic for the avatar widget implemented as a state machine", | ||
@@ -31,7 +31,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.65.1", | ||
"@zag-js/core": "0.65.1", | ||
"@zag-js/dom-query": "0.65.1", | ||
"@zag-js/utils": "0.65.1", | ||
"@zag-js/types": "0.65.1" | ||
"@zag-js/anatomy": "0.66.0", | ||
"@zag-js/core": "0.66.0", | ||
"@zag-js/dom-query": "0.66.0", | ||
"@zag-js/utils": "0.66.0", | ||
"@zag-js/types": "0.66.0" | ||
}, | ||
@@ -38,0 +38,0 @@ "devDependencies": { |
@@ -77,3 +77,5 @@ import { createMachine } from "@zag-js/core" | ||
const removedNodes = Array.from(records[0].removedNodes) as HTMLElement[] | ||
const removed = removedNodes.find((node) => node.matches("[data-scope=avatar][data-part=image]")) | ||
const removed = removedNodes.find( | ||
(node) => node.nodeType === Node.ELEMENT_NODE && node.matches("[data-scope=avatar][data-part=image]"), | ||
) | ||
if (removed) { | ||
@@ -80,0 +82,0 @@ send({ type: "IMG.UNMOUNT" }) |
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
46590
682
+ Added@zag-js/anatomy@0.66.0(transitive)
+ Added@zag-js/core@0.66.0(transitive)
+ Added@zag-js/dom-query@0.66.0(transitive)
+ Added@zag-js/store@0.66.0(transitive)
+ Added@zag-js/types@0.66.0(transitive)
+ Added@zag-js/utils@0.66.0(transitive)
- Removed@zag-js/anatomy@0.65.1(transitive)
- Removed@zag-js/core@0.65.1(transitive)
- Removed@zag-js/dom-query@0.65.1(transitive)
- Removed@zag-js/store@0.65.1(transitive)
- Removed@zag-js/types@0.65.1(transitive)
- Removed@zag-js/utils@0.65.1(transitive)
Updated@zag-js/anatomy@0.66.0
Updated@zag-js/core@0.66.0
Updated@zag-js/dom-query@0.66.0
Updated@zag-js/types@0.66.0
Updated@zag-js/utils@0.66.0