react 0.14.0-rc1 → 0.14.0

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 (41) hide show
  1. package/dist/react-with-addons.js +586 -403
  2. package/dist/react-with-addons.min.js +6 -6
  3. package/dist/react.js +504 -327
  4. package/dist/react.min.js +6 -6
  5. package/lib/CSSPropertyOperations.js +6 -1
  6. package/lib/ChangeEventPlugin.js +1 -1
  7. package/lib/DOMChildrenOperations.js +5 -0
  8. package/lib/DOMPropertyOperations.js +7 -0
  9. package/lib/EventPluginHub.js +15 -4
  10. package/lib/EventPluginUtils.js +10 -5
  11. package/lib/HTMLDOMPropertyConfig.js +13 -2
  12. package/lib/ReactBrowserEventEmitter.js +6 -0
  13. package/lib/ReactClass.js +0 -1
  14. package/lib/ReactComponent.js +1 -1
  15. package/lib/ReactCompositeComponent.js +24 -11
  16. package/lib/ReactDOMComponent.js +64 -13
  17. package/lib/ReactDOMIDOperations.js +0 -1
  18. package/lib/ReactDOMInput.js +6 -1
  19. package/lib/ReactDOMSelection.js +16 -0
  20. package/lib/ReactDOMTextarea.js +3 -1
  21. package/lib/ReactDefaultPerf.js +10 -4
  22. package/lib/ReactDefaultPerfAnalysis.js +7 -1
  23. package/lib/ReactElement.js +3 -3
  24. package/lib/ReactElementValidator.js +12 -4
  25. package/lib/ReactErrorUtils.js +24 -16
  26. package/lib/ReactEventEmitterMixin.js +1 -1
  27. package/lib/ReactLink.js +1 -1
  28. package/lib/ReactMount.js +9 -2
  29. package/lib/ReactPropTransferer.js +1 -1
  30. package/lib/ReactRef.js +1 -2
  31. package/lib/ReactTestUtils.js +12 -6
  32. package/lib/ReactVersion.js +1 -1
  33. package/lib/SyntheticEvent.js +0 -1
  34. package/lib/createHierarchyRenderer.js +1 -1
  35. package/lib/getTestDocument.js +4 -11
  36. package/lib/traverseAllChildren.js +7 -2
  37. package/package.json +2 -2
  38. package/dist/react-dom.js +0 -42
  39. package/dist/react-dom.min.js +0 -12
  40. package/lib/joinClasses.js +0 -39
  41. package/lib/memoizeStringOnly.js +0 -31
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": "0.14.0-rc1",
4
+ "version": "0.14.0",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "envify": "^3.0.0",
25
- "fbjs": "^0.2.0"
25
+ "fbjs": "^0.3.1"
26
26
  },
27
27
  "browserify": {
28
28
  "transform": [
package/dist/react-dom.js DELETED
@@ -1,42 +0,0 @@
1
- /**
2
- * ReactDOM v0.14.0-rc1
3
- *
4
- * Copyright 2013-2015, Facebook, Inc.
5
- * All rights reserved.
6
- *
7
- * This source code is licensed under the BSD-style license found in the
8
- * LICENSE file in the root directory of this source tree. An additional grant
9
- * of patent rights can be found in the PATENTS file in the same directory.
10
- *
11
- */
12
- // Based off https://github.com/ForbesLindesay/umd/blob/master/template.js
13
- ;(function(f) {
14
- // CommonJS
15
- if (typeof exports === "object" && typeof module !== "undefined") {
16
- module.exports = f(require('react'));
17
-
18
- // RequireJS
19
- } else if (typeof define === "function" && define.amd) {
20
- define(['react'], f);
21
-
22
- // <script>
23
- } else {
24
- var g
25
- if (typeof window !== "undefined") {
26
- g = window;
27
- } else if (typeof global !== "undefined") {
28
- g = global;
29
- } else if (typeof self !== "undefined") {
30
- g = self;
31
- } else {
32
- // works providing we're not in "use strict";
33
- // needed for Java 8 Nashorn
34
- // see https://github.com/facebook/react/issues/3037
35
- g = this;
36
- }
37
- g.ReactDOM = f(g.React);
38
- }
39
-
40
- })(function(React) {
41
- return React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
42
- });
@@ -1,12 +0,0 @@
1
- /**
2
- * ReactDOM v0.14.0-rc1
3
- *
4
- * Copyright 2013-2015, Facebook, Inc.
5
- * All rights reserved.
6
- *
7
- * This source code is licensed under the BSD-style license found in the
8
- * LICENSE file in the root directory of this source tree. An additional grant
9
- * of patent rights can be found in the PATENTS file in the same directory.
10
- *
11
- */
12
- !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e(require("react"));else if("function"==typeof define&&define.amd)define(["react"],e);else{var f;f="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,f.ReactDOM=e(f.React)}}(function(e){return e.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED});
@@ -1,39 +0,0 @@
1
- /**
2
- * Copyright 2013-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
- * @providesModule joinClasses
10
- * @typechecks static-only
11
- */
12
-
13
- 'use strict';
14
-
15
- /**
16
- * Combines multiple className strings into one.
17
- * http://jsperf.com/joinclasses-args-vs-array
18
- *
19
- * @param {...?string} className
20
- * @return {string}
21
- */
22
- function joinClasses(className /*, ... */) {
23
- if (!className) {
24
- className = '';
25
- }
26
- var nextClass;
27
- var argLength = arguments.length;
28
- if (argLength > 1) {
29
- for (var ii = 1; ii < argLength; ii++) {
30
- nextClass = arguments[ii];
31
- if (nextClass) {
32
- className = (className ? className + ' ' : '') + nextClass;
33
- }
34
- }
35
- }
36
- return className;
37
- }
38
-
39
- module.exports = joinClasses;
@@ -1,31 +0,0 @@
1
- /**
2
- * Copyright 2013-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
- * @providesModule memoizeStringOnly
10
- * @typechecks static-only
11
- */
12
-
13
- 'use strict';
14
-
15
- /**
16
- * Memoizes the return value of a function that accepts one string argument.
17
- *
18
- * @param {function} callback
19
- * @return {function}
20
- */
21
- function memoizeStringOnly(callback) {
22
- var cache = {};
23
- return function (string) {
24
- if (!cache.hasOwnProperty(string)) {
25
- cache[string] = callback.call(this, string);
26
- }
27
- return cache[string];
28
- };
29
- }
30
-
31
- module.exports = memoizeStringOnly;