@heroui/image 2.2.15-beta.0 → 2.2.15-beta.2

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.
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useImage
4
- } from "./chunk-Q3TXVV4U.mjs";
4
+ } from "./chunk-VKNWGH3N.mjs";
5
5
 
6
6
  // src/image.tsx
7
7
  import { cloneElement } from "react";
@@ -39,7 +39,8 @@ function useImage(originalProps) {
39
39
  ignoreFallback: false,
40
40
  srcSet,
41
41
  sizes,
42
- crossOrigin
42
+ crossOrigin,
43
+ shouldBypassImageLoad: as !== void 0
43
44
  });
44
45
  const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;
45
46
  const isImgLoaded = imageStatus === "loaded" && !isLoadingProp;
package/dist/image.js CHANGED
@@ -66,7 +66,8 @@ function useImage(originalProps) {
66
66
  ignoreFallback: false,
67
67
  srcSet,
68
68
  sizes,
69
- crossOrigin
69
+ crossOrigin,
70
+ shouldBypassImageLoad: as !== void 0
70
71
  });
71
72
  const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;
72
73
  const isImgLoaded = imageStatus === "loaded" && !isLoadingProp;
package/dist/image.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import {
3
3
  image_default
4
- } from "./chunk-3TCFMHK3.mjs";
5
- import "./chunk-Q3TXVV4U.mjs";
4
+ } from "./chunk-BHGNW4BO.mjs";
5
+ import "./chunk-VKNWGH3N.mjs";
6
6
  export {
7
7
  image_default as default
8
8
  };
package/dist/index.js CHANGED
@@ -69,7 +69,8 @@ function useImage(originalProps) {
69
69
  ignoreFallback: false,
70
70
  srcSet,
71
71
  sizes,
72
- crossOrigin
72
+ crossOrigin,
73
+ shouldBypassImageLoad: as !== void 0
73
74
  });
74
75
  const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;
75
76
  const isImgLoaded = imageStatus === "loaded" && !isLoadingProp;
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import {
3
3
  image_default
4
- } from "./chunk-3TCFMHK3.mjs";
4
+ } from "./chunk-BHGNW4BO.mjs";
5
5
  import {
6
6
  useImage
7
- } from "./chunk-Q3TXVV4U.mjs";
7
+ } from "./chunk-VKNWGH3N.mjs";
8
8
  export {
9
9
  image_default as Image,
10
10
  useImage
package/dist/use-image.js CHANGED
@@ -62,7 +62,8 @@ function useImage(originalProps) {
62
62
  ignoreFallback: false,
63
63
  srcSet,
64
64
  sizes,
65
- crossOrigin
65
+ crossOrigin,
66
+ shouldBypassImageLoad: as !== void 0
66
67
  });
67
68
  const disableAnimation = (_b = (_a = originalProps.disableAnimation) != null ? _a : globalContext == null ? void 0 : globalContext.disableAnimation) != null ? _b : false;
68
69
  const isImgLoaded = imageStatus === "loaded" && !isLoadingProp;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  useImage
4
- } from "./chunk-Q3TXVV4U.mjs";
4
+ } from "./chunk-VKNWGH3N.mjs";
5
5
  export {
6
6
  useImage
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@heroui/image",
3
- "version": "2.2.15-beta.0",
3
+ "version": "2.2.15-beta.2",
4
4
  "description": "A simple image component",
5
5
  "keywords": [
6
6
  "image"
@@ -31,9 +31,9 @@
31
31
  "@heroui/system": ">=2.4.19-beta.0"
32
32
  },
33
33
  "dependencies": {
34
- "@heroui/shared-utils": "2.1.10-beta.5",
35
- "@heroui/react-utils": "2.1.12-beta.3",
36
- "@heroui/use-image": "2.1.11-beta.3"
34
+ "@heroui/shared-utils": "2.1.10-beta.6",
35
+ "@heroui/react-utils": "2.1.12-beta.4",
36
+ "@heroui/use-image": "2.1.11-beta.5"
37
37
  },
38
38
  "clean-package": "../../../clean-package.config.json",
39
39
  "module": "dist/index.mjs",