react-photo-album
Advanced tools
Comparing version 2.0.0-rc.9 to 2.0.0
@@ -64,3 +64,3 @@ import * as React from 'react'; | ||
/** pre-populated 'img' element attributes */ | ||
imageProps: NonOptional<ImgElementAttributes, "src" | "alt" | "style">; | ||
imageProps: NonOptional<ImageElementAttributes, "src" | "alt" | "style">; | ||
/** A callback to render the default photo implementation. If `wrapped` is `true`, the image is styled with `width` | ||
@@ -147,3 +147,3 @@ * and `height` set to 100%. Use this option when rendering image wrapper styled with wrapperStyle. */ | ||
/** Additional HTML attributes to be passed to the photo `img` element */ | ||
imageProps?: ImgElementAttributes; | ||
imageProps?: ImageElementAttributes; | ||
}; | ||
@@ -186,4 +186,4 @@ type ComponentsPropsParameter = ComponentsProps | ((containerWidth?: number) => ComponentsProps); | ||
type RenderFunction<T> = (props: T) => React.ReactNode; | ||
type DivElementAttributes = JSX.IntrinsicElements["div"]; | ||
type ImgElementAttributes = JSX.IntrinsicElements["img"]; | ||
type DivElementAttributes = React.HTMLAttributes<HTMLDivElement>; | ||
type ImageElementAttributes = React.ImgHTMLAttributes<HTMLImageElement>; | ||
type Optional<T, K extends keyof T> = Partial<Pick<T, K>> & Omit<T, K>; | ||
@@ -194,2 +194,2 @@ type NonOptional<T, K extends keyof T> = Required<Pick<T, K>> & Omit<T, K>; | ||
export { ClickHandler, ClickHandlerProps, ColumnsLayoutOptions, ComponentsProps, ComponentsPropsParameter, DivElementAttributes, GenericLayoutOptions, Image, ImgElementAttributes, LayoutOptions, LayoutType, NonOptional, Optional, Photo, PhotoAlbum, PhotoAlbumProps, PhotoLayout, RenderColumnContainer, RenderColumnContainerProps, RenderContainer, RenderContainerProps, RenderFunction, RenderPhoto, RenderPhotoProps, RenderRowContainer, RenderRowContainerProps, ResponsiveParameter, ResponsiveParameterProvider, ResponsiveSizes, RowConstraints, RowsLayoutOptions, PhotoAlbum as default }; | ||
export { ClickHandler, ClickHandlerProps, ColumnsLayoutOptions, ComponentsProps, ComponentsPropsParameter, DivElementAttributes, GenericLayoutOptions, Image, ImageElementAttributes, LayoutOptions, LayoutType, NonOptional, Optional, Photo, PhotoAlbum, PhotoAlbumProps, PhotoLayout, RenderColumnContainer, RenderColumnContainerProps, RenderContainer, RenderContainerProps, RenderFunction, RenderPhoto, RenderPhotoProps, RenderRowContainer, RenderRowContainerProps, ResponsiveParameter, ResponsiveParameterProvider, ResponsiveSizes, RowConstraints, RowsLayoutOptions, PhotoAlbum as default }; |
{ | ||
"name": "react-photo-album", | ||
"version": "2.0.0-rc.9", | ||
"version": "2.0.0", | ||
"description": "Responsive photo gallery component for React", | ||
@@ -71,3 +71,3 @@ "author": "Igor Danchenko", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^3.7.0", | ||
"rollup": "^3.7.1", | ||
"rollup-plugin-dts": "^5.0.0", | ||
@@ -74,0 +74,0 @@ "rollup-plugin-peer-deps-external": "^2.2.4", |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
79726
0
0