Skip to content

Commit 5e15573

Browse files
committed
small prop updates
1 parent d6f50d1 commit 5e15573

File tree

9 files changed

+22
-8
lines changed

9 files changed

+22
-8
lines changed

build/dist/react-calendar-timeline.js

Lines changed: 13 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dist/react-calendar-timeline.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dist/react-calendar-timeline.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/dist/react-calendar-timeline.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/lib/Timeline.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ ReactCalendarTimeline.propTypes = {
831831
lineHeight: _react2.default.PropTypes.number,
832832
headerLabelGroupHeight: _react2.default.PropTypes.number,
833833
headerLabelHeight: _react2.default.PropTypes.number,
834+
itemHeightRatio: _react2.default.PropTypes.number,
834835

835836
minZoom: _react2.default.PropTypes.number,
836837
maxZoom: _react2.default.PropTypes.number,

modules/lib/items/Items.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Items.propTypes = {
166166

167167
dragSnap: _react2.default.PropTypes.number,
168168
minResizeWidth: _react2.default.PropTypes.number,
169-
selectedItem: _react2.default.PropTypes.string,
169+
selectedItem: _react2.default.PropTypes.oneOfType([_react2.default.PropTypes.string, _react2.default.PropTypes.number]),
170170

171171
canChangeGroup: _react2.default.PropTypes.bool.isRequired,
172172
canMove: _react2.default.PropTypes.bool.isRequired,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-calendar-timeline",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "react calendar timeline",
55
"main": "modules/index.js",
66
"scripts": {

src/lib/Timeline.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ ReactCalendarTimeline.propTypes = {
694694
lineHeight: React.PropTypes.number,
695695
headerLabelGroupHeight: React.PropTypes.number,
696696
headerLabelHeight: React.PropTypes.number,
697+
itemHeightRatio: React.PropTypes.number,
697698

698699
minZoom: React.PropTypes.number,
699700
maxZoom: React.PropTypes.number,

src/lib/items/Items.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ Items.propTypes = {
127127

128128
dragSnap: React.PropTypes.number,
129129
minResizeWidth: React.PropTypes.number,
130-
selectedItem: React.PropTypes.string,
130+
selectedItem: React.PropTypes.oneOfType([React.PropTypes.string, React.PropTypes.number]),
131131

132132
canChangeGroup: React.PropTypes.bool.isRequired,
133133
canMove: React.PropTypes.bool.isRequired,

0 commit comments

Comments
 (0)