react 15.6.0 → 16.0.0-alpha

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.
Files changed (38) hide show
  1. package/README.md +7 -0
  2. package/dist/react-with-addons.js +3813 -4283
  3. package/dist/react-with-addons.min.js +2 -3
  4. package/dist/react.js +2882 -3136
  5. package/dist/react.min.js +2 -2
  6. package/lib/React.js +15 -58
  7. package/lib/ReactCSSTransitionGroup.js +4 -6
  8. package/lib/ReactCSSTransitionGroupChild.js +113 -131
  9. package/lib/ReactChildren.js +4 -4
  10. package/lib/ReactClass.js +703 -0
  11. package/lib/{ReactBaseClasses.js → ReactComponent.js} +6 -37
  12. package/lib/ReactComponentTreeHook.js +58 -55
  13. package/lib/ReactCurrentOwner.js +2 -0
  14. package/lib/ReactDOMFactories.js +1 -0
  15. package/lib/ReactElement.js +4 -4
  16. package/lib/ReactElementValidator.js +8 -9
  17. package/lib/ReactNoopUpdateQueue.js +10 -13
  18. package/lib/ReactPropTypes.js +442 -4
  19. package/lib/ReactPureComponent.js +41 -0
  20. package/lib/ReactTransitionGroup.js +3 -9
  21. package/lib/ReactTypeOfWork.js +26 -0
  22. package/lib/ReactUMDEntry.js +3 -4
  23. package/lib/ReactVersion.js +1 -1
  24. package/lib/ReactWithAddons.js +0 -2
  25. package/lib/ReactWithAddonsUMDEntry.js +3 -4
  26. package/lib/checkReactTypeSpec.js +17 -6
  27. package/lib/deprecated.js +3 -3
  28. package/lib/getComponentName.js +37 -0
  29. package/lib/onlyChild.js +1 -1
  30. package/lib/traverseAllChildren.js +1 -1
  31. package/package.json +3 -5
  32. package/lib/LinkedStateMixin.js +0 -34
  33. package/lib/ReactComponentTreeDevtool.js +0 -14
  34. package/lib/ReactLink.js +0 -50
  35. package/lib/ReactPropTypesSecret.js +0 -16
  36. package/lib/createClass.js +0 -22
  37. package/lib/getNextDebugIDUMDShim.js +0 -17
  38. package/lib/lowPriorityWarning.js +0 -64
@@ -1,22 +0,0 @@
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
- 'use strict';
12
-
13
- var _require = require('./ReactBaseClasses'),
14
- Component = _require.Component;
15
-
16
- var _require2 = require('./ReactElement'),
17
- isValidElement = _require2.isValidElement;
18
-
19
- var ReactNoopUpdateQueue = require('./ReactNoopUpdateQueue');
20
- var factory = require('create-react-class/factory');
21
-
22
- module.exports = factory(Component, isValidElement, ReactNoopUpdateQueue);
@@ -1,17 +0,0 @@
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;
@@ -1,64 +0,0 @@
1
- /**
2
- * Copyright 2014-2015, 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
- 'use strict';
12
-
13
- /**
14
- * Forked from fbjs/warning:
15
- * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
16
- *
17
- * Only change is we use console.warn instead of console.error,
18
- * and do nothing when 'console' is not supported.
19
- * This really simplifies the code.
20
- * ---
21
- * Similar to invariant but only logs a warning if the condition is not met.
22
- * This can be used to log issues in development environments in critical
23
- * paths. Removing the logging code for production environments will keep the
24
- * same logic and follow the same code paths.
25
- */
26
-
27
- var lowPriorityWarning = function () {};
28
-
29
- if (process.env.NODE_ENV !== 'production') {
30
- var printWarning = function (format) {
31
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
32
- args[_key - 1] = arguments[_key];
33
- }
34
-
35
- var argIndex = 0;
36
- var message = 'Warning: ' + format.replace(/%s/g, function () {
37
- return args[argIndex++];
38
- });
39
- if (typeof console !== 'undefined') {
40
- console.warn(message);
41
- }
42
- try {
43
- // --- Welcome to debugging React ---
44
- // This error was thrown as a convenience so that you can use this stack
45
- // to find the callsite that caused this warning to fire.
46
- throw new Error(message);
47
- } catch (x) {}
48
- };
49
-
50
- lowPriorityWarning = function (condition, format) {
51
- if (format === undefined) {
52
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
53
- }
54
- if (!condition) {
55
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
56
- args[_key2 - 2] = arguments[_key2];
57
- }
58
-
59
- printWarning.apply(undefined, [format].concat(args));
60
- }
61
- };
62
- }
63
-
64
- module.exports = lowPriorityWarning;