@chakra-ui/image
Advanced tools
Comparing version 2.0.15 to 2.0.16
@@ -28,3 +28,3 @@ "use strict"; | ||
// ../../utilities/object-utils/src/index.ts | ||
// ../../utilities/object-utils/src/omit.ts | ||
function omit(object, keysToOmit = []) { | ||
@@ -136,2 +136,3 @@ const clone = Object.assign({}, object); | ||
...props, | ||
crossOrigin, | ||
ignoreFallback: shouldIgnoreFallbackImage | ||
@@ -138,0 +139,0 @@ }); |
@@ -32,3 +32,3 @@ "use strict"; | ||
// ../../utilities/object-utils/src/index.ts | ||
// ../../utilities/object-utils/src/omit.ts | ||
function omit(object, keysToOmit = []) { | ||
@@ -140,2 +140,3 @@ const clone = Object.assign({}, object); | ||
...props, | ||
crossOrigin, | ||
ignoreFallback: shouldIgnoreFallbackImage | ||
@@ -142,0 +143,0 @@ }); |
@@ -16,4 +16,4 @@ import * as _chakra_ui_system from '@chakra-ui/system'; | ||
} | ||
declare const NativeImage: _chakra_ui_system.ComponentWithAs<_chakra_ui_system.As<any>, NativeImageProps>; | ||
declare const NativeImage: _chakra_ui_system.ComponentWithAs<_chakra_ui_system.As, NativeImageProps>; | ||
export { NativeImage, NativeImageOptions }; |
@@ -1,2 +0,2 @@ | ||
declare type NativeImageProps = React.ImgHTMLAttributes<HTMLImageElement>; | ||
type NativeImageProps = React.ImgHTMLAttributes<HTMLImageElement>; | ||
interface UseImageProps { | ||
@@ -36,4 +36,4 @@ /** | ||
} | ||
declare type Status = "loading" | "failed" | "pending" | "loaded"; | ||
declare type FallbackStrategy = "onError" | "beforeLoadOrError"; | ||
type Status = "loading" | "failed" | "pending" | "loaded"; | ||
type FallbackStrategy = "onError" | "beforeLoadOrError"; | ||
/** | ||
@@ -57,4 +57,4 @@ * React hook that loads an image in the browser, | ||
declare const shouldShowFallbackImage: (status: Status, fallbackStrategy: FallbackStrategy) => boolean; | ||
declare type UseImageReturn = ReturnType<typeof useImage>; | ||
type UseImageReturn = ReturnType<typeof useImage>; | ||
export { FallbackStrategy, UseImageProps, UseImageReturn, shouldShowFallbackImage, useImage }; |
{ | ||
"name": "@chakra-ui/image", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "React component for progressive image loading", | ||
@@ -39,5 +39,5 @@ "keywords": [ | ||
"react": "^18.0.0", | ||
"clean-package": "2.1.1", | ||
"@chakra-ui/object-utils": "2.0.8", | ||
"@chakra-ui/system": "2.4.0" | ||
"clean-package": "2.2.0", | ||
"@chakra-ui/object-utils": "2.1.0", | ||
"@chakra-ui/system": "2.5.6" | ||
}, | ||
@@ -44,0 +44,0 @@ "peerDependencies": { |
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
30543
889