@nextui-org/use-image
Advanced tools
Comparing version 0.0.0-canary-20240719151825 to 0.0.0-canary-20241130124528
@@ -59,5 +59,3 @@ import { ImgHTMLAttributes } from 'react'; | ||
declare function useImage(props?: UseImageProps): Status; | ||
declare const shouldShowFallbackImage: (status: Status, fallbackStrategy: FallbackStrategy) => boolean; | ||
type UseImageReturn = ReturnType<typeof useImage>; | ||
export { FallbackStrategy, UseImageProps, UseImageReturn, shouldShowFallbackImage, useImage }; | ||
export { FallbackStrategy, UseImageProps, useImage }; |
@@ -23,3 +23,2 @@ "use strict"; | ||
__export(src_exports, { | ||
shouldShowFallbackImage: () => shouldShowFallbackImage, | ||
useImage: () => useImage | ||
@@ -82,7 +81,5 @@ }); | ||
} | ||
var shouldShowFallbackImage = (status, fallbackStrategy) => status !== "loaded" && fallbackStrategy === "beforeLoadOrError" || status === "failed" && fallbackStrategy === "onError"; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
shouldShowFallbackImage, | ||
useImage | ||
}); |
{ | ||
"name": "@nextui-org/use-image", | ||
"version": "0.0.0-canary-20240719151825", | ||
"version": "0.0.0-canary-20241130124528", | ||
"description": "React hook for progressing image loading", | ||
@@ -28,6 +28,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@nextui-org/use-safe-layout-effect": "0.0.0-canary-20240719151825" | ||
"@nextui-org/use-safe-layout-effect": "2.0.7-beta.5" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=18" | ||
"react": ">=18 || >=19.0.0-rc.0" | ||
}, | ||
@@ -34,0 +34,0 @@ "clean-package": "../../../clean-package.config.json", |
Sorry, the diff of this file is not supported yet
8835
197
+ Added@nextui-org/use-safe-layout-effect@2.0.7-beta.5(transitive)
- Removed@nextui-org/use-safe-layout-effect@0.0.0-canary-20240719151825(transitive)