@heroui/avatar 2.2.19 → 2.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,7 +198,7 @@ function useAvatar(originalProps = {}) {
198
198
  src,
199
199
  onError,
200
200
  ignoreFallback,
201
- shouldBypassImageLoad: as !== void 0 || !isHeroImage
201
+ shouldBypassImageLoad: as !== void 0 || ImgComponent !== "img" && !isHeroImage
202
202
  });
203
203
  const isImgLoaded = imageStatus === "loaded";
204
204
  const shouldFilterDOMProps = !isHeroImage;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import {
3
3
  avatar_group_default
4
- } from "./chunk-X2BFRYAX.mjs";
5
- import "./chunk-RHCEY3MN.mjs";
4
+ } from "./chunk-WNF7UL5S.mjs";
5
+ import "./chunk-U3J33PF6.mjs";
6
6
  import "./chunk-25E6VDTZ.mjs";
7
7
  import "./chunk-QH65JCLF.mjs";
8
- import "./chunk-D6GKTNAY.mjs";
8
+ import "./chunk-S5XC7GTZ.mjs";
9
9
  import "./chunk-JUJ53SJZ.mjs";
10
10
  export {
11
11
  avatar_group_default as default
package/dist/avatar.js CHANGED
@@ -117,7 +117,7 @@ function useAvatar(originalProps = {}) {
117
117
  src,
118
118
  onError,
119
119
  ignoreFallback,
120
- shouldBypassImageLoad: as !== void 0 || !isHeroImage
120
+ shouldBypassImageLoad: as !== void 0 || ImgComponent !== "img" && !isHeroImage
121
121
  });
122
122
  const isImgLoaded = imageStatus === "loaded";
123
123
  const shouldFilterDOMProps = !isHeroImage;
package/dist/avatar.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  avatar_default
4
- } from "./chunk-RHCEY3MN.mjs";
4
+ } from "./chunk-U3J33PF6.mjs";
5
5
  import "./chunk-25E6VDTZ.mjs";
6
- import "./chunk-D6GKTNAY.mjs";
6
+ import "./chunk-S5XC7GTZ.mjs";
7
7
  import "./chunk-JUJ53SJZ.mjs";
8
8
  export {
9
9
  avatar_default as default
@@ -54,7 +54,7 @@ function useAvatar(originalProps = {}) {
54
54
  src,
55
55
  onError,
56
56
  ignoreFallback,
57
- shouldBypassImageLoad: as !== void 0 || !isHeroImage
57
+ shouldBypassImageLoad: as !== void 0 || ImgComponent !== "img" && !isHeroImage
58
58
  });
59
59
  const isImgLoaded = imageStatus === "loaded";
60
60
  const shouldFilterDOMProps = !isHeroImage;
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-25E6VDTZ.mjs";
5
5
  import {
6
6
  useAvatar
7
- } from "./chunk-D6GKTNAY.mjs";
7
+ } from "./chunk-S5XC7GTZ.mjs";
8
8
 
9
9
  // src/avatar.tsx
10
10
  import { useMemo } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  avatar_default
4
- } from "./chunk-RHCEY3MN.mjs";
4
+ } from "./chunk-U3J33PF6.mjs";
5
5
  import {
6
6
  useAvatarGroup
7
7
  } from "./chunk-QH65JCLF.mjs";
package/dist/index.js CHANGED
@@ -125,7 +125,7 @@ function useAvatar(originalProps = {}) {
125
125
  src,
126
126
  onError,
127
127
  ignoreFallback,
128
- shouldBypassImageLoad: as !== void 0 || !isHeroImage
128
+ shouldBypassImageLoad: as !== void 0 || ImgComponent !== "img" && !isHeroImage
129
129
  });
130
130
  const isImgLoaded = imageStatus === "loaded";
131
131
  const shouldFilterDOMProps = !isHeroImage;
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  avatar_group_default
4
- } from "./chunk-X2BFRYAX.mjs";
4
+ } from "./chunk-WNF7UL5S.mjs";
5
5
  import {
6
6
  avatar_default
7
- } from "./chunk-RHCEY3MN.mjs";
7
+ } from "./chunk-U3J33PF6.mjs";
8
8
  import {
9
9
  AvatarIcon
10
10
  } from "./chunk-25E6VDTZ.mjs";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-QH65JCLF.mjs";
14
14
  import {
15
15
  useAvatar
16
- } from "./chunk-D6GKTNAY.mjs";
16
+ } from "./chunk-S5XC7GTZ.mjs";
17
17
  import {
18
18
  AvatarGroupProvider,
19
19
  useAvatarGroupContext
@@ -83,7 +83,7 @@ function useAvatar(originalProps = {}) {
83
83
  src,
84
84
  onError,
85
85
  ignoreFallback,
86
- shouldBypassImageLoad: as !== void 0 || !isHeroImage
86
+ shouldBypassImageLoad: as !== void 0 || ImgComponent !== "img" && !isHeroImage
87
87
  });
88
88
  const isImgLoaded = imageStatus === "loaded";
89
89
  const shouldFilterDOMProps = !isHeroImage;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useAvatar
4
- } from "./chunk-D6GKTNAY.mjs";
4
+ } from "./chunk-S5XC7GTZ.mjs";
5
5
  import "./chunk-JUJ53SJZ.mjs";
6
6
  export {
7
7
  useAvatar
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroui/avatar",
3
- "version": "2.2.19",
3
+ "version": "2.2.20",
4
4
  "description": "The Avatar component is used to represent a user, and displays the profile picture, initials or fallback icon.",
5
5
  "keywords": [
6
6
  "avatar"
@@ -31,8 +31,8 @@
31
31
  "@heroui/system": ">=2.4.18"
32
32
  },
33
33
  "dependencies": {
34
- "@react-aria/interactions": "3.25.3",
35
- "@react-aria/focus": "3.20.5",
34
+ "@react-aria/interactions": "3.25.4",
35
+ "@react-aria/focus": "3.21.0",
36
36
  "@heroui/shared-utils": "2.1.10",
37
37
  "@heroui/react-utils": "2.1.12",
38
38
  "@heroui/use-image": "2.1.11"