提交 db7fc492 编写于 作者: K Kyle Davis

Update dist for 3.0

上级 55480fbc
......@@ -69,9 +69,9 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
module.exports.Container = __webpack_require__(1);
module.exports.Mixin = __webpack_require__(36);
module.exports.ReduceStore = __webpack_require__(37);
module.exports.Store = __webpack_require__(38);
module.exports.Mixin = __webpack_require__(38);
module.exports.ReduceStore = __webpack_require__(39);
module.exports.Store = __webpack_require__(40);
/***/ },
/* 1 */
......@@ -117,7 +117,7 @@ return /******/ (function(modules) { // webpackBootstrap
var React = __webpack_require__(5);
var invariant = __webpack_require__(4);
var shallowEqual = __webpack_require__(35);
var shallowEqual = __webpack_require__(37);
var Component = React.Component;
......@@ -638,22 +638,23 @@ return /******/ (function(modules) { // webpackBootstrap
var _assign = __webpack_require__(7);
var ReactChildren = __webpack_require__(8);
var ReactComponent = __webpack_require__(18);
var ReactClass = __webpack_require__(24);
var ReactDOMFactories = __webpack_require__(29);
var ReactElement = __webpack_require__(10);
var ReactElementValidator = __webpack_require__(30);
var ReactPropTypes = __webpack_require__(32);
var ReactVersion = __webpack_require__(33);
var ReactComponent = __webpack_require__(19);
var ReactPureComponent = __webpack_require__(22);
var ReactClass = __webpack_require__(23);
var ReactDOMFactories = __webpack_require__(28);
var ReactElement = __webpack_require__(11);
var ReactPropTypes = __webpack_require__(34);
var ReactVersion = __webpack_require__(35);
var onlyChild = __webpack_require__(34);
var warning = __webpack_require__(12);
var onlyChild = __webpack_require__(36);
var warning = __webpack_require__(13);
var createElement = ReactElement.createElement;
var createFactory = ReactElement.createFactory;
var cloneElement = ReactElement.cloneElement;
if (true) {
var ReactElementValidator = __webpack_require__(29);
createElement = ReactElementValidator.createElement;
createFactory = ReactElementValidator.createFactory;
cloneElement = ReactElementValidator.cloneElement;
......@@ -683,6 +684,7 @@ return /******/ (function(modules) { // webpackBootstrap
},
Component: ReactComponent,
PureComponent: ReactPureComponent,
createElement: createElement,
cloneElement: cloneElement,
......@@ -815,10 +817,10 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
var PooledClass = __webpack_require__(9);
var ReactElement = __webpack_require__(10);
var ReactElement = __webpack_require__(11);
var emptyFunction = __webpack_require__(13);
var traverseAllChildren = __webpack_require__(15);
var emptyFunction = __webpack_require__(14);
var traverseAllChildren = __webpack_require__(16);
var twoArgumentPooler = PooledClass.twoArgumentPooler;
var fourArgumentPooler = PooledClass.fourArgumentPooler;
......@@ -858,6 +860,8 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* Iterates through children that are typically specified as `props.children`.
*
* See https://facebook.github.io/react/docs/top-level-api.html#react.children.foreach
*
* The provided forEachFunc(child, index) will be called for each
* leaf child.
*
......@@ -932,7 +936,9 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* Maps children that are typically specified as `props.children`.
*
* The provided mapFunction(child, index) will be called for each
* See https://facebook.github.io/react/docs/top-level-api.html#react.children.map
*
* The provided mapFunction(child, key, index) will be called for each
* leaf child.
*
* @param {?*} children Children tree container.
......@@ -957,6 +963,8 @@ return /******/ (function(modules) { // webpackBootstrap
* Count the number of children that are typically specified as
* `props.children`.
*
* See https://facebook.github.io/react/docs/top-level-api.html#react.children.count
*
* @param {?*} children Children tree container.
* @return {number} The number of children.
*/
......@@ -967,6 +975,8 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* Flatten a children object (typically specified as `props.children`) and
* return an array with appropriately re-keyed children.
*
* See https://facebook.github.io/react/docs/top-level-api.html#react.children.toarray
*/
function toArray(children) {
var result = [];
......@@ -1001,6 +1011,8 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
var _prodInvariant = __webpack_require__(10);
var invariant = __webpack_require__(4);
/**
......@@ -1067,7 +1079,7 @@ return /******/ (function(modules) { // webpackBootstrap
var standardReleaser = function standardReleaser(instance) {
var Klass = this;
!(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : invariant(false) : void 0;
!(instance instanceof Klass) ? true ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
instance.destructor();
if (Klass.instancePool.length < Klass.poolSize) {
Klass.instancePool.push(instance);
......@@ -1081,7 +1093,7 @@ return /******/ (function(modules) { // webpackBootstrap
* Augments `CopyConstructor` to be a poolable class, augmenting only the class
* itself (statically) not adding any prototypical fields. Any CopyConstructor
* you give this may have a `poolSize` property, and will look for a
* prototypical `destructor` on instances (optional).
* prototypical `destructor` on instances.
*
* @param {Function} CopyConstructor Constructor that can be used to reset.
* @param {Function} pooler Customizable pooler.
......@@ -1110,6 +1122,50 @@ return /******/ (function(modules) { // webpackBootstrap
/***/ },
/* 10 */
/***/ function(module, exports) {
/**
* Copyright (c) 2013-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule reactProdInvariant
*
*/
'use strict';
/**
* WARNING: DO NOT manually require this module.
* This is a replacement for `invariant(...)` used by the error code system
* and will _only_ be required by the corresponding babel pass.
* It always throws.
*/
function reactProdInvariant(code) {
var argCount = arguments.length - 1;
var message = 'Minified React error #' + code + '; visit ' + 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' + code;
for (var argIdx = 0; argIdx < argCount; argIdx++) {
message += '&args[]=' + encodeURIComponent(arguments[argIdx + 1]);
}
message += ' for the full message or use the non-minified dev environment' + ' for full errors and additional helpful warnings.';
var error = new Error(message);
error.name = 'Invariant Violation';
error.framesToPop = 1; // we don't care about reactProdInvariant's own frame
throw error;
}
module.exports = reactProdInvariant;
/***/ },
/* 11 */
/***/ function(module, exports, __webpack_require__) {
/**
......@@ -1127,10 +1183,11 @@ return /******/ (function(modules) { // webpackBootstrap
var _assign = __webpack_require__(7);
var ReactCurrentOwner = __webpack_require__(11);
var ReactCurrentOwner = __webpack_require__(12);
var warning = __webpack_require__(12);
var canDefineProperty = __webpack_require__(14);
var warning = __webpack_require__(13);
var canDefineProperty = __webpack_require__(15);
var hasOwnProperty = Object.prototype.hasOwnProperty;
// The Symbol used to tag the ReactElement type. If there is no native Symbol
// nor polyfill, then a plain number is used for performance.
......@@ -1145,6 +1202,58 @@ return /******/ (function(modules) { // webpackBootstrap
var specialPropKeyWarningShown, specialPropRefWarningShown;
function hasValidRef(config) {
if (true) {
if (hasOwnProperty.call(config, 'ref')) {
var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
if (getter && getter.isReactWarning) {
return false;
}
}
}
return config.ref !== undefined;
}
function hasValidKey(config) {
if (true) {
if (hasOwnProperty.call(config, 'key')) {
var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
if (getter && getter.isReactWarning) {
return false;
}
}
}
return config.key !== undefined;
}
function defineKeyPropWarningGetter(props, displayName) {
var warnAboutAccessingKey = function warnAboutAccessingKey() {
if (!specialPropKeyWarningShown) {
specialPropKeyWarningShown = true;
true ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
}
};
warnAboutAccessingKey.isReactWarning = true;
Object.defineProperty(props, 'key', {
get: warnAboutAccessingKey,
configurable: true
});
}
function defineRefPropWarningGetter(props, displayName) {
var warnAboutAccessingRef = function warnAboutAccessingRef() {
if (!specialPropRefWarningShown) {
specialPropRefWarningShown = true;
true ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName) : void 0;
}
};
warnAboutAccessingRef.isReactWarning = true;
Object.defineProperty(props, 'ref', {
get: warnAboutAccessingRef,
configurable: true
});
}
/**
* Factory method to create a new React element. This no longer adheres to
* the class pattern, so do not use new to call it. Also, no instanceof check
......@@ -1186,6 +1295,7 @@ return /******/ (function(modules) { // webpackBootstrap
// This can be replaced with a WeakMap once they are implemented in
// commonly used development environments.
element._store = {};
var shadowChildren = Array.isArray(props.children) ? props.children.slice(0) : props.children;
// To make comparing ReactElements easier for testing purposes, we make
// the validation flag non-enumerable (where possible, which should
......@@ -1205,6 +1315,12 @@ return /******/ (function(modules) { // webpackBootstrap
writable: false,
value: self
});
Object.defineProperty(element, '_shadowChildren', {
configurable: false,
enumerable: false,
writable: false,
value: shadowChildren
});
// Two elements created in two different places should be considered
// equal for testing purposes and therefore we hide it from enumeration.
Object.defineProperty(element, '_source', {
......@@ -1216,6 +1332,7 @@ return /******/ (function(modules) { // webpackBootstrap
} else {
element._store.validated = false;
element._self = self;
element._shadowChildren = shadowChildren;
element._source = source;
}
if (Object.freeze) {
......@@ -1227,6 +1344,10 @@ return /******/ (function(modules) { // webpackBootstrap
return element;
};
/**
* Create and return a new ReactElement of the given type.
* See https://facebook.github.io/react/docs/top-level-api.html#react.createelement
*/
ReactElement.createElement = function (type, config, children) {
var propName;
......@@ -1239,18 +1360,18 @@ return /******/ (function(modules) { // webpackBootstrap
var source = null;
if (config != null) {
if (true) {
ref = !config.hasOwnProperty('ref') || Object.getOwnPropertyDescriptor(config, 'ref').get ? null : config.ref;
key = !config.hasOwnProperty('key') || Object.getOwnPropertyDescriptor(config, 'key').get ? null : '' + config.key;
} else {
ref = config.ref === undefined ? null : config.ref;
key = config.key === undefined ? null : '' + config.key;
if (hasValidRef(config)) {
ref = config.ref;
}
if (hasValidKey(config)) {
key = '' + config.key;
}
self = config.__self === undefined ? null : config.__self;
source = config.__source === undefined ? null : config.__source;
// Remaining properties are added to a new props object
for (propName in config) {
if (config.hasOwnProperty(propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
props[propName] = config[propName];
}
}
......@@ -1279,38 +1400,25 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
if (true) {
// Create dummy `key` and `ref` property to `props` to warn users
// against its use
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
if (!props.hasOwnProperty('key')) {
Object.defineProperty(props, 'key', {
get: function get() {
if (!specialPropKeyWarningShown) {
specialPropKeyWarningShown = true;
true ? warning(false, '%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0;
}
return undefined;
},
configurable: true
});
}
if (!props.hasOwnProperty('ref')) {
Object.defineProperty(props, 'ref', {
get: function get() {
if (!specialPropRefWarningShown) {
specialPropRefWarningShown = true;
true ? warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', typeof type === 'function' && 'displayName' in type ? type.displayName : 'Element') : void 0;
}
return undefined;
},
configurable: true
});
if (key || ref) {
if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
if (key) {
defineKeyPropWarningGetter(props, displayName);
}
if (ref) {
defineRefPropWarningGetter(props, displayName);
}
}
}
}
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
};
/**
* Return a function that produces ReactElements of a given type.
* See https://facebook.github.io/react/docs/top-level-api.html#react.createfactory
*/
ReactElement.createFactory = function (type) {
var factory = ReactElement.createElement.bind(null, type);
// Expose the type on the factory and the prototype so that it can be
......@@ -1328,6 +1436,10 @@ return /******/ (function(modules) { // webpackBootstrap
return newElement;
};
/**
* Clone and return a new ReactElement using element as the starting point.
* See https://facebook.github.io/react/docs/top-level-api.html#react.cloneelement
*/
ReactElement.cloneElement = function (element, config, children) {
var propName;
......@@ -1348,21 +1460,22 @@ return /******/ (function(modules) { // webpackBootstrap
var owner = element._owner;
if (config != null) {
if (config.ref !== undefined) {
if (hasValidRef(config)) {
// Silently steal the ref from the parent.
ref = config.ref;
owner = ReactCurrentOwner.current;
}
if (config.key !== undefined) {
if (hasValidKey(config)) {
key = '' + config.key;
}
// Remaining properties override existing props
var defaultProps;
if (element.type && element.type.defaultProps) {
defaultProps = element.type.defaultProps;
}
for (propName in config) {
if (config.hasOwnProperty(propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
if (config[propName] === undefined && defaultProps !== undefined) {
// Resolve default props
props[propName] = defaultProps[propName];
......@@ -1390,6 +1503,8 @@ return /******/ (function(modules) { // webpackBootstrap
};
/**
* Verifies the object is a ReactElement.
* See https://facebook.github.io/react/docs/top-level-api.html#react.isvalidelement
* @param {?object} object
* @return {boolean} True if `object` is a valid component.
* @final
......@@ -1398,10 +1513,12 @@ return /******/ (function(modules) { // webpackBootstrap
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
};
ReactElement.REACT_ELEMENT_TYPE = REACT_ELEMENT_TYPE;
module.exports = ReactElement;
/***/ },
/* 11 */
/* 12 */
/***/ function(module, exports) {
/**
......@@ -1437,7 +1554,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = ReactCurrentOwner;
/***/ },
/* 12 */
/* 13 */
/***/ function(module, exports, __webpack_require__) {
/**
......@@ -1452,7 +1569,7 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
var emptyFunction = __webpack_require__(13);
var emptyFunction = __webpack_require__(14);
/**
* Similar to invariant but only logs a warning if the condition is not met.
......@@ -1464,20 +1581,12 @@ return /******/ (function(modules) { // webpackBootstrap
var warning = emptyFunction;
if (true) {
warning = function (condition, format) {
for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
args[_key - 2] = arguments[_key];
}
if (format === undefined) {
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
}
if (format.indexOf('Failed Composite propType: ') === 0) {
return; // Ignore CompositeComponent proptype check.
}
(function () {
var printWarning = function printWarning(format) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
if (!condition) {
var argIndex = 0;
var message = 'Warning: ' + format.replace(/%s/g, function () {
return args[argIndex++];
......@@ -1491,14 +1600,32 @@ return /******/ (function(modules) { // webpackBootstrap
// to find the callsite that caused this warning to fire.
throw new Error(message);
} catch (x) {}
}
};
};
warning = function warning(condition, format) {
if (format === undefined) {
throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
}
if (format.indexOf('Failed Composite propType: ') === 0) {
return; // Ignore CompositeComponent proptype check.
}
if (!condition) {
for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
args[_key2 - 2] = arguments[_key2];
}
printWarning.apply(undefined, [format].concat(args));
}
};
})();
}
module.exports = warning;
/***/ },
/* 13 */
/* 14 */
/***/ function(module, exports) {
"use strict";
......@@ -1511,6 +1638,7 @@ return /******/ (function(modules) { // webpackBootstrap
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/
function makeEmptyFunction(arg) {
......@@ -1524,7 +1652,7 @@ return /******/ (function(modules) { // webpackBootstrap
* primarily useful idiomatically for overridable function endpoints which
* always need to be callable, since JS lacks a null-call idiom ala Cocoa.
*/
function emptyFunction() {}
var emptyFunction = function emptyFunction() {};
emptyFunction.thatReturns = makeEmptyFunction;
emptyFunction.thatReturnsFalse = makeEmptyFunction(false);
......@@ -1540,7 +1668,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = emptyFunction;
/***/ },
/* 14 */
/* 15 */
/***/ function(module, exports, __webpack_require__) {
/**
......@@ -1569,7 +1697,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = canDefineProperty;
/***/ },
/* 15 */
/* 16 */
/***/ function(module, exports, __webpack_require__) {
/**
......@@ -1585,13 +1713,15 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
var ReactCurrentOwner = __webpack_require__(11);
var ReactElement = __webpack_require__(10);
var _prodInvariant = __webpack_require__(10);
var ReactCurrentOwner = __webpack_require__(12);
var ReactElement = __webpack_require__(11);
var getIteratorFn = __webpack_require__(16);
var getIteratorFn = __webpack_require__(17);
var invariant = __webpack_require__(4);
var KeyEscapeUtils = __webpack_require__(17);
var warning = __webpack_require__(12);
var KeyEscapeUtils = __webpack_require__(18);
var warning = __webpack_require__(13);
var SEPARATOR = '.';
var SUBSEPARATOR = ':';
......@@ -1670,7 +1800,14 @@ return /******/ (function(modules) { // webpackBootstrap
}
} else {
if (true) {
true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.') : void 0;
var mapsAsChildrenAddendum = '';
if (ReactCurrentOwner.current) {
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
if (mapsAsChildrenOwnerName) {
mapsAsChildrenAddendum = ' Check the render method of `' + mapsAsChildrenOwnerName + '`.';
}
}
true ? warning(didWarnAboutMaps, 'Using Maps as children is not yet fully supported. It is an ' + 'experimental feature that might be removed. Convert it to a ' + 'sequence / iterable of keyed ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
didWarnAboutMaps = true;
}
// Iterator will provide entry [k,v] tuples rather than values.
......@@ -1698,7 +1835,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
}
var childrenString = String(children);
true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : invariant(false) : void 0;
true ? true ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
}
}
......@@ -1732,7 +1869,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = traverseAllChildren;
/***/ },
/* 16 */
/* 17 */
/***/ function(module, exports) {
/**
......@@ -1744,6 +1881,7 @@ return /******/ (function(modules) { // webpackBootstrap
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule getIteratorFn
*
*/
'use strict';
......@@ -1777,7 +1915,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = getIteratorFn;
/***/ },
/* 17 */
/* 18 */
/***/ function(module, exports) {
/**
......@@ -1789,6 +1927,7 @@ return /******/ (function(modules) { // webpackBootstrap
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule KeyEscapeUtils
*
*/
'use strict';
......@@ -1796,7 +1935,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* Escape and wrap key so it is safe to use as a reactid
*
* @param {*} key to be escaped.
* @param {string} key to be escaped.
* @return {string} the escaped key.
*/
......@@ -1840,7 +1979,7 @@ return /******/ (function(modules) { // webpackBootstrap
module.exports = KeyEscapeUtils;
/***/ },
/* 18 */
/* 19 */
/***/ function(module, exports, __webpack_require__) {
/**
......@@ -1856,13 +1995,14 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';
var ReactNoopUpdateQueue = __webpack_require__(19);
var ReactInstrumentation = __webpack_require__(20);
var _prodInvariant = __webpack_require__(10);