Skip to content

Commit

Permalink
Release: patch version 24.1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
adslotbuildagent committed Apr 5, 2018
1 parent b0c40fd commit df95c97
Show file tree
Hide file tree
Showing 6 changed files with 196 additions and 70 deletions.
129 changes: 96 additions & 33 deletions dist/adslot-ui-docs.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -41851,7 +41851,7 @@ var Carousel = (0, _createReactClass2.default)({
autoplay: _propTypes2.default.bool,
autoplayInterval: _propTypes2.default.number,
beforeSlide: _propTypes2.default.func,
cellAlign: _propTypes2.default.oneOf(['left', 'center', 'right']),
cellAlign: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.number]),
cellSpacing: _propTypes2.default.number,
data: _propTypes2.default.func,
decorators: _propTypes2.default.arrayOf(_propTypes2.default.shape({
Expand Down Expand Up @@ -42333,25 +42333,30 @@ var Carousel = (0, _createReactClass2.default)({
getTargetLeft: function getTargetLeft(touchOffset, slide) {
var offset;
var target = slide || this.state.currentSlide;
switch (this.props.cellAlign) {
case 'left':
{
offset = 0;
offset -= this.props.cellSpacing * target;
break;
}
case 'center':
{
offset = (this.state.frameWidth - this.state.slideWidth) / 2;
offset -= this.props.cellSpacing * target;
break;
}
case 'right':
{
offset = this.state.frameWidth - this.state.slideWidth;
offset -= this.props.cellSpacing * target;
break;
}
if(typeof this.props.cellAlign === 'number') {
offset = this.props.cellAlign;
offset -= this.props.cellSpacing * target;
} else {
switch (this.props.cellAlign) {
case 'left':
{
offset = 0;
offset -= this.props.cellSpacing * target;
break;
}
case 'center':
{
offset = (this.state.frameWidth - this.state.slideWidth) / 2;
offset -= this.props.cellSpacing * target;
break;
}
case 'right':
{
offset = this.state.frameWidth - this.state.slideWidth;
offset -= this.props.cellSpacing * target;
break;
}
}
}

var left = this.state.slideWidth * target;
Expand Down Expand Up @@ -42438,7 +42443,8 @@ var Carousel = (0, _createReactClass2.default)({
frame,
frameWidth,
frameHeight,
slideHeight;
slideHeight,
toScroll;

slidesToScroll = props.slidesToScroll;
frame = this.refs.frame;
Expand Down Expand Up @@ -42468,7 +42474,8 @@ var Carousel = (0, _createReactClass2.default)({
frameWidth = props.vertical ? frameHeight : frame.offsetWidth;

if (props.slidesToScroll === 'auto') {
slidesToScroll = Math.floor(frameWidth / (slideWidth + props.cellSpacing));
toScroll = frameWidth / (slideWidth + props.cellSpacing);
slidesToScroll = props.slideWidth === 1 ? Math.ceil(toScroll) : Math.floor(toScroll);
}

this.setState({
Expand Down Expand Up @@ -42560,7 +42567,7 @@ var Carousel = (0, _createReactClass2.default)({
var end = (this.state.slideWidth + this.props.cellSpacing) * slidesToShow * -1;

if (this.props.wrapAround) {
var slidesBefore = Math.ceil(positionValue / this.state.slideWidth);
var slidesBefore = Math.ceil(positionValue / (this.state.slideWidth + this.props.cellSpacing));
if (this.state.slideCount - slidesBefore <= index) {
return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount - index) * -1;
}
Expand All @@ -42571,8 +42578,8 @@ var Carousel = (0, _createReactClass2.default)({
slidesAfter = Math.ceil((Math.abs(positionValue) - this.state.slideWidth) / this.state.slideWidth);
}

if (index <= slidesAfter - 1) {
return (this.state.slideWidth + this.props.cellSpacing) * (this.state.slideCount + index);
if (index <= slidesAfter - 2) {
return (this.state.slideWidth + this.props.cellSpacing) * (slidesBefore < 0 ? this.state.slideCount + index : index);
}
}

Expand Down Expand Up @@ -43137,6 +43144,27 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
*/
componentWillUnmount: 'DEFINE_MANY',

/**
* Replacement for (deprecated) `componentWillMount`.
*
* @optional
*/
UNSAFE_componentWillMount: 'DEFINE_MANY',

/**
* Replacement for (deprecated) `componentWillReceiveProps`.
*
* @optional
*/
UNSAFE_componentWillReceiveProps: 'DEFINE_MANY',

/**
* Replacement for (deprecated) `componentWillUpdate`.
*
* @optional
*/
UNSAFE_componentWillUpdate: 'DEFINE_MANY',

// ==== Advanced methods ====

/**
Expand All @@ -43152,6 +43180,23 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
updateComponent: 'OVERRIDE_BASE'
};

/**
* Similar to ReactClassInterface but for static methods.
*/
var ReactClassStaticInterface = {
/**
* This method is invoked after a component is instantiated and when it
* receives new props. Return an object to update state in response to
* prop changes. Return null to indicate no change to state.
*
* If an object is returned, its keys will be merged into the existing state.
*
* @return {object || null}
* @optional
*/
getDerivedStateFromProps: 'DEFINE_MANY_MERGED'
};

/**
* Mapping from class specification keys to special processing functions.
*
Expand Down Expand Up @@ -43386,6 +43431,7 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
if (!statics) {
return;
}

for (var name in statics) {
var property = statics[name];
if (!statics.hasOwnProperty(name)) {
Expand All @@ -43402,14 +43448,25 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
name
);

var isInherited = name in Constructor;
_invariant(
!isInherited,
'ReactClass: You are attempting to define ' +
'`%s` on your component more than once. This conflict may be ' +
'due to a mixin.',
name
);
var isAlreadyDefined = name in Constructor;
if (isAlreadyDefined) {
var specPolicy = ReactClassStaticInterface.hasOwnProperty(name)
? ReactClassStaticInterface[name]
: null;

_invariant(
specPolicy === 'DEFINE_MANY_MERGED',
'ReactClass: You are attempting to define ' +
'`%s` on your component more than once. This conflict may be ' +
'due to a mixin.',
name
);

Constructor[name] = createMergedResultFunction(Constructor[name], property);

return;
}

Constructor[name] = property;
}
}
Expand Down Expand Up @@ -43719,6 +43776,12 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
'componentWillRecieveProps(). Did you mean componentWillReceiveProps()?',
spec.displayName || 'A component'
);
warning(
!Constructor.prototype.UNSAFE_componentWillRecieveProps,
'%s has a method called UNSAFE_componentWillRecieveProps(). ' +
'Did you mean UNSAFE_componentWillReceiveProps()?',
spec.displayName || 'A component'
);
}

// Reduce time spent doing lookups by setting these on the prototype.
Expand Down
2 changes: 1 addition & 1 deletion dist/adslot-ui-docs.js

Large diffs are not rendered by default.

Loading

0 comments on commit df95c97

Please sign in to comment.