@zag-js/avatar
Advanced tools
Comparing version 0.0.0-dev-20230715170515 to 0.0.0-dev-20230715203621
@@ -180,3 +180,4 @@ "use strict"; | ||
if (img?.complete) { | ||
send({ type: "IMG.LOADED", src: "ssr" }); | ||
const type = img.currentSrc ? "IMG.LOADED" : "IMG.ERROR"; | ||
send({ type, src: "ssr" }); | ||
} | ||
@@ -183,0 +184,0 @@ } |
{ | ||
"name": "@zag-js/avatar", | ||
"version": "0.0.0-dev-20230715170515", | ||
"version": "0.0.0-dev-20230715203621", | ||
"description": "Core logic for the avatar widget implemented as a state machine", | ||
@@ -31,8 +31,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.0.0-dev-20230715170515", | ||
"@zag-js/mutation-observer": "0.0.0-dev-20230715170515", | ||
"@zag-js/core": "0.0.0-dev-20230715170515", | ||
"@zag-js/dom-query": "0.0.0-dev-20230715170515", | ||
"@zag-js/utils": "0.0.0-dev-20230715170515", | ||
"@zag-js/types": "0.0.0-dev-20230715170515" | ||
"@zag-js/anatomy": "0.0.0-dev-20230715203621", | ||
"@zag-js/mutation-observer": "0.0.0-dev-20230715203621", | ||
"@zag-js/core": "0.0.0-dev-20230715203621", | ||
"@zag-js/dom-query": "0.0.0-dev-20230715203621", | ||
"@zag-js/utils": "0.0.0-dev-20230715203621", | ||
"@zag-js/types": "0.0.0-dev-20230715203621" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
@@ -90,3 +90,4 @@ import { createMachine } from "@zag-js/core" | ||
if (img?.complete) { | ||
send({ type: "IMG.LOADED", src: "ssr" }) | ||
const type = img.currentSrc ? "IMG.LOADED" : "IMG.ERROR" | ||
send({ type, src: "ssr" }) | ||
} | ||
@@ -93,0 +94,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
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
39898
598
+ Added@zag-js/anatomy@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/core@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/dom-query@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/mutation-observer@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/store@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/types@0.0.0-dev-20230715203621(transitive)
+ Added@zag-js/utils@0.0.0-dev-20230715203621(transitive)
- Removed@zag-js/anatomy@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/core@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/dom-query@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/mutation-observer@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/store@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/types@0.0.0-dev-20230715170515(transitive)
- Removed@zag-js/utils@0.0.0-dev-20230715170515(transitive)