Comparing version 1.1.3 to 1.1.4
@@ -579,11 +579,9 @@ 'use strict' | ||
columnGutter: PropTypes.number.isRequired, | ||
width: PropTypes.number.isRequired, | ||
width: PropTypes.number, | ||
// width of the container | ||
height: PropTypes.number.isRequired, | ||
height: PropTypes.number, | ||
// height of the window | ||
scrollTop: PropTypes.number.isRequired, | ||
isScrolling: PropTypes.bool.isRequired, | ||
containerRef: PropTypes.shape({ | ||
current: PropTypes.any, | ||
}).isRequired, | ||
scrollTop: PropTypes.number, | ||
isScrolling: PropTypes.bool, | ||
containerRef: PropTypes.func.isRequired, | ||
} | ||
@@ -590,0 +588,0 @@ MasonryWindow.displayName = 'Masonry' |
@@ -589,11 +589,9 @@ function ownKeys(object, enumerableOnly) { | ||
columnGutter: PropTypes.number.isRequired, | ||
width: PropTypes.number.isRequired, | ||
width: PropTypes.number, | ||
// width of the container | ||
height: PropTypes.number.isRequired, | ||
height: PropTypes.number, | ||
// height of the window | ||
scrollTop: PropTypes.number.isRequired, | ||
isScrolling: PropTypes.bool.isRequired, | ||
containerRef: PropTypes.shape({ | ||
current: PropTypes.any, | ||
}).isRequired, | ||
scrollTop: PropTypes.number, | ||
isScrolling: PropTypes.bool, | ||
containerRef: PropTypes.func.isRequired, | ||
} | ||
@@ -600,0 +598,0 @@ MasonryWindow.displayName = 'Masonry' |
{ | ||
"name": "masonic", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"homepage": "https://github.com/jaredLunde/masonic#readme", | ||
@@ -5,0 +5,0 @@ "repository": "github:jaredLunde/masonic", |
@@ -25,2 +25,6 @@ <hr> | ||
</p> | ||
<pre align="center"> | ||
npm i masonic | ||
</pre> | ||
<hr> | ||
@@ -32,8 +36,2 @@ | ||
## Installation | ||
#### `npm i masonic` | ||
#### `yarn add masonic` | ||
## Example | ||
@@ -55,5 +53,5 @@ | ||
# API Documentation | ||
## API | ||
## `<Masonry>` | ||
### `<Masonry>` | ||
@@ -84,5 +82,5 @@ An autosizing virtualized masonry component which only renders items | ||
### Prop types | ||
#### Prop types | ||
#### Column rendering | ||
##### Column rendering | ||
@@ -108,3 +106,3 @@ - `columnWidth` | ||
#### Item rendering | ||
##### Item rendering | ||
@@ -157,3 +155,3 @@ - `render` | ||
#### Customizing the container element | ||
##### Customizing the container element | ||
@@ -183,3 +181,3 @@ - `as` | ||
#### Window properties | ||
##### Window properties | ||
@@ -233,3 +231,3 @@ - `initialWidth` | ||
#### Callbacks | ||
##### Callbacks | ||
@@ -249,3 +247,3 @@ - `onRender(startIndex: number, stopIndex: number, items: array)` | ||
#### Methods | ||
##### Methods | ||
@@ -263,3 +261,3 @@ When a `ref` is provided to this component, you'll have access to its | ||
## `<List>` | ||
### `<List>` | ||
@@ -269,3 +267,3 @@ An autosizing virtualized list component which only renders items currently | ||
### Prop types | ||
#### Prop types | ||
@@ -272,0 +270,0 @@ This component inherits all of the props listed in `<Masonry>` with exception |
111264
3260
363