react 15.4.2 → 15.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/react-with-addons.js +876 -634
- package/dist/react-with-addons.min.js +3 -3
- package/dist/react.js +704 -485
- package/dist/react.min.js +2 -2
- package/lib/React.js +15 -0
- package/lib/ReactCSSTransitionGroup.js +5 -3
- package/lib/ReactCSSTransitionGroupChild.js +131 -113
- package/lib/ReactClass.js +7 -1
- package/lib/ReactElementValidator.js +20 -1
- package/lib/ReactPropTypes.js +4 -419
- package/lib/ReactTransitionGroup.js +5 -2
- package/lib/ReactUMDEntry.js +4 -3
- package/lib/ReactVersion.js +1 -1
- package/lib/ReactWithAddonsUMDEntry.js +4 -3
- package/lib/getNextDebugIDUMDShim.js +17 -0
- package/package.json +4 -3
|
@@ -21,6 +21,9 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
|
21
21
|
var React = require('./React');
|
|
22
22
|
var ReactTransitionChildMapping = require('./ReactTransitionChildMapping');
|
|
23
23
|
|
|
24
|
+
var propTypesFactory = require('prop-types/factory');
|
|
25
|
+
var PropTypes = propTypesFactory(React.isValidElement);
|
|
26
|
+
|
|
24
27
|
var emptyFunction = require('fbjs/lib/emptyFunction');
|
|
25
28
|
|
|
26
29
|
/**
|
|
@@ -216,8 +219,8 @@ var ReactTransitionGroup = function (_React$Component) {
|
|
|
216
219
|
|
|
217
220
|
ReactTransitionGroup.displayName = 'ReactTransitionGroup';
|
|
218
221
|
ReactTransitionGroup.propTypes = {
|
|
219
|
-
component:
|
|
220
|
-
childFactory:
|
|
222
|
+
component: PropTypes.any,
|
|
223
|
+
childFactory: PropTypes.func
|
|
221
224
|
};
|
|
222
225
|
ReactTransitionGroup.defaultProps = {
|
|
223
226
|
component: 'span',
|
package/lib/ReactUMDEntry.js
CHANGED
|
@@ -15,16 +15,17 @@ var _assign = require('object-assign');
|
|
|
15
15
|
var React = require('./React');
|
|
16
16
|
|
|
17
17
|
// `version` will be added here by the React module.
|
|
18
|
-
var ReactUMDEntry = _assign({
|
|
18
|
+
var ReactUMDEntry = _assign(React, {
|
|
19
19
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
20
20
|
ReactCurrentOwner: require('./ReactCurrentOwner')
|
|
21
21
|
}
|
|
22
|
-
}
|
|
22
|
+
});
|
|
23
23
|
|
|
24
24
|
if (process.env.NODE_ENV !== 'production') {
|
|
25
25
|
_assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
26
26
|
// ReactComponentTreeHook should not be included in production.
|
|
27
|
-
ReactComponentTreeHook: require('./ReactComponentTreeHook')
|
|
27
|
+
ReactComponentTreeHook: require('./ReactComponentTreeHook'),
|
|
28
|
+
getNextDebugID: require('./getNextDebugID')
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
|
package/lib/ReactVersion.js
CHANGED
|
@@ -15,17 +15,18 @@ var _assign = require('object-assign');
|
|
|
15
15
|
var ReactWithAddons = require('./ReactWithAddons');
|
|
16
16
|
|
|
17
17
|
// `version` will be added here by the React module.
|
|
18
|
-
var ReactWithAddonsUMDEntry = _assign({
|
|
18
|
+
var ReactWithAddonsUMDEntry = _assign(ReactWithAddons, {
|
|
19
19
|
__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: null, // Will be injected by ReactDOM UMD build.
|
|
20
20
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
21
21
|
ReactCurrentOwner: require('./ReactCurrentOwner')
|
|
22
22
|
}
|
|
23
|
-
}
|
|
23
|
+
});
|
|
24
24
|
|
|
25
25
|
if (process.env.NODE_ENV !== 'production') {
|
|
26
26
|
_assign(ReactWithAddonsUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
27
27
|
// ReactComponentTreeHook should not be included in production.
|
|
28
|
-
ReactComponentTreeHook: require('./ReactComponentTreeHook')
|
|
28
|
+
ReactComponentTreeHook: require('./ReactComponentTreeHook'),
|
|
29
|
+
getNextDebugID: require('./getNextDebugID')
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
32
|
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the BSD-style license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
|
+
*
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/* globals React */
|
|
12
|
+
|
|
13
|
+
'use strict';
|
|
14
|
+
|
|
15
|
+
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
16
|
+
|
|
17
|
+
module.exports = ReactInternals.getNextDebugID;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react",
|
|
3
3
|
"description": "React is a JavaScript library for building user interfaces.",
|
|
4
|
-
"version": "15.
|
|
4
|
+
"version": "15.5.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react"
|
|
7
7
|
],
|
|
@@ -23,9 +23,10 @@
|
|
|
23
23
|
"node": ">=0.10.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"fbjs": "^0.8.
|
|
26
|
+
"fbjs": "^0.8.9",
|
|
27
27
|
"loose-envify": "^1.1.0",
|
|
28
|
-
"object-assign": "^4.1.0"
|
|
28
|
+
"object-assign": "^4.1.0",
|
|
29
|
+
"prop-types": "^15.5.0"
|
|
29
30
|
},
|
|
30
31
|
"browserify": {
|
|
31
32
|
"transform": [
|