react 15.0.0-rc.1 → 15.0.2-alpha.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.
Files changed (90) hide show
  1. package/dist/react-with-addons.js +1446 -1195
  2. package/dist/react-with-addons.min.js +6 -6
  3. package/dist/react.js +1330 -1109
  4. package/dist/react.min.js +6 -6
  5. package/lib/CSSProperty.js +6 -0
  6. package/lib/CSSPropertyOperations.js +31 -15
  7. package/lib/CallbackQueue.js +3 -2
  8. package/lib/DOMChildrenOperations.js +0 -3
  9. package/lib/DOMLazyTree.js +11 -2
  10. package/lib/DOMPropertyOperations.js +0 -46
  11. package/lib/EventPluginUtils.js +2 -2
  12. package/lib/FallbackCompositionState.js +3 -2
  13. package/lib/HTMLDOMPropertyConfig.js +111 -111
  14. package/lib/IOSDefaultEventPluginOrder.js +16 -0
  15. package/lib/IOSNativeBridgeEventPlugin.js +57 -0
  16. package/lib/NativeMethodsMixin.js +165 -0
  17. package/lib/OrderedMap.js +3 -2
  18. package/lib/PanResponder.js +362 -0
  19. package/lib/React.js +68 -9
  20. package/lib/ReactBrowserEventEmitter.js +3 -2
  21. package/lib/ReactCSSTransitionGroup.js +3 -3
  22. package/lib/ReactClass.js +7 -6
  23. package/lib/ReactComponent.js +2 -2
  24. package/lib/ReactCompositeComponent.js +5 -4
  25. package/lib/ReactDOMComponent.js +14 -15
  26. package/lib/ReactDOMDebugTool.js +0 -8
  27. package/lib/ReactDOMEmptyComponent.js +3 -3
  28. package/lib/ReactDOMInput.js +5 -4
  29. package/lib/ReactDOMOption.js +13 -2
  30. package/lib/ReactDOMSelect.js +3 -2
  31. package/lib/ReactDOMTextComponent.js +3 -2
  32. package/lib/ReactDOMTextarea.js +3 -2
  33. package/lib/ReactDebugInstanceMap.js +102 -0
  34. package/lib/ReactDefaultBatchingStrategy.js +3 -2
  35. package/lib/ReactDefaultPerf.js +46 -7
  36. package/lib/ReactDefaultPerfAnalysis.js +7 -7
  37. package/lib/ReactElement.js +5 -4
  38. package/lib/ReactEventListener.js +3 -2
  39. package/lib/ReactMarkupChecksum.js +7 -2
  40. package/lib/ReactMount.js +1 -0
  41. package/lib/ReactNative.js +71 -0
  42. package/lib/ReactNativeAttributePayload.js +397 -0
  43. package/lib/ReactNativeBaseComponent.js +196 -0
  44. package/lib/ReactNativeComponent.js +3 -2
  45. package/lib/ReactNativeComponentEnvironment.js +38 -0
  46. package/lib/ReactNativeComponentTree.js +66 -0
  47. package/lib/ReactNativeContainerInfo.js +21 -0
  48. package/lib/ReactNativeDOMIDOperations.js +83 -0
  49. package/lib/ReactNativeDefaultInjection.js +99 -0
  50. package/lib/ReactNativeEventEmitter.js +180 -0
  51. package/lib/ReactNativeGlobalInteractionHandler.js +33 -0
  52. package/lib/ReactNativeGlobalResponderHandler.js +25 -0
  53. package/lib/ReactNativeMount.js +190 -0
  54. package/lib/ReactNativePropRegistry.js +52 -0
  55. package/lib/ReactNativeReconcileTransaction.js +100 -0
  56. package/lib/ReactNativeTagHandles.js +54 -0
  57. package/lib/ReactNativeTextComponent.js +70 -0
  58. package/lib/ReactNativeTreeTraversal.js +127 -0
  59. package/lib/ReactOwner.js +4 -3
  60. package/lib/ReactPropTransferer.js +4 -3
  61. package/lib/ReactReconcileTransaction.js +3 -3
  62. package/lib/ReactServerRenderingTransaction.js +3 -3
  63. package/lib/ReactSimpleEmptyComponent.js +3 -3
  64. package/lib/ReactTestUtils.js +14 -4
  65. package/lib/ReactTransitionGroup.js +3 -2
  66. package/lib/ReactUMDEntry.js +26 -0
  67. package/lib/ReactUpdateQueue.js +20 -3
  68. package/lib/ReactUpdates.js +3 -2
  69. package/lib/ReactVersion.js +1 -1
  70. package/lib/ReactWithAddons.js +0 -7
  71. package/lib/ReactWithAddonsUMDEntry.js +26 -0
  72. package/lib/ResponderSyntheticEvent.js +1 -1
  73. package/lib/SVGDOMPropertyConfig.js +266 -52
  74. package/lib/SyntheticEvent.js +5 -4
  75. package/lib/TouchHistoryMath.js +99 -0
  76. package/lib/createReactNativeComponentClass.js +42 -0
  77. package/lib/deprecated.js +3 -2
  78. package/lib/findNodeHandle.js +89 -0
  79. package/lib/instantiateReactComponent.js +3 -2
  80. package/lib/reactComponentExpect.js +3 -2
  81. package/lib/setInnerHTML.js +1 -0
  82. package/lib/update.js +4 -3
  83. package/lib/validateDOMNesting.js +3 -2
  84. package/package.json +5 -4
  85. package/addons.js +0 -15
  86. package/lib/Object.assign.js +0 -47
  87. package/lib/React.native.js +0 -5
  88. package/lib/ReactDOM.native.js +0 -12
  89. package/lib/ReactDOMSVGDeprecatedAttributeDevtool.js +0 -61
  90. package/lib/ReactIsomorphic.js +0 -74
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- // TODO: Once we remove the DOM bits from React, this shim can go away.
4
-
5
- module.exports = require('./ReactIsomorphic');
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var ReactUpdates = require('./ReactUpdates');
4
-
5
- // TODO: In React Native, ReactTestUtils depends on ./ReactDOM (for
6
- // renderIntoDocument, which should never be called) and Relay depends on
7
- // react-dom (for batching). Once those are fixed, nothing in RN should import
8
- // this module and this file can go away.
9
-
10
- module.exports = {
11
- unstable_batchedUpdates: ReactUpdates.batchedUpdates,
12
- };
@@ -1,61 +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
- * @providesModule ReactDOMSVGDeprecatedAttributeDevtool
10
- */
11
-
12
- 'use strict';
13
-
14
- var DOMProperty = require('./DOMProperty');
15
-
16
- var warning = require('fbjs/lib/warning');
17
-
18
- if (process.env.NODE_ENV !== 'production') {
19
- var reactProps = {
20
- children: true,
21
- dangerouslySetInnerHTML: true,
22
- key: true,
23
- ref: true
24
- };
25
- var warnedSVGAttributes = {};
26
-
27
- var warnDeprecatedSVGAttribute = function (name) {
28
- if (reactProps.hasOwnProperty(name) && reactProps[name]) {
29
- return;
30
- }
31
-
32
- if (!DOMProperty.properties.hasOwnProperty(name)) {
33
- return;
34
- }
35
- var _DOMProperty$properti = DOMProperty.properties[name];
36
- var attributeName = _DOMProperty$properti.attributeName;
37
- var attributeNamespace = _DOMProperty$properti.attributeNamespace;
38
-
39
- if (attributeNamespace || name === attributeName) {
40
- return;
41
- }
42
-
43
- if (warnedSVGAttributes.hasOwnProperty(name) && warnedSVGAttributes[name]) {
44
- return;
45
- }
46
- warnedSVGAttributes[name] = true;
47
-
48
- process.env.NODE_ENV !== 'production' ? warning(false, 'SVG property %s is deprecated. Use the original attribute name ' + '%s for SVG tags instead.', name, attributeName) : void 0;
49
- };
50
- }
51
-
52
- var ReactDOMSVGDeprecatedAttributeDevtool = {
53
- onCreateMarkupForSVGAttribute: function (name, value) {
54
- warnDeprecatedSVGAttribute(name);
55
- },
56
- onSetValueForSVGAttribute: function (node, name, value) {
57
- warnDeprecatedSVGAttribute(name);
58
- }
59
- };
60
-
61
- module.exports = ReactDOMSVGDeprecatedAttributeDevtool;
@@ -1,74 +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
- * @providesModule ReactIsomorphic
10
- */
11
-
12
- 'use strict';
13
-
14
- var ReactChildren = require('./ReactChildren');
15
- var ReactComponent = require('./ReactComponent');
16
- var ReactClass = require('./ReactClass');
17
- var ReactDOMFactories = require('./ReactDOMFactories');
18
- var ReactElement = require('./ReactElement');
19
- var ReactElementValidator = require('./ReactElementValidator');
20
- var ReactPropTypes = require('./ReactPropTypes');
21
- var ReactVersion = require('./ReactVersion');
22
-
23
- var assign = require('./Object.assign');
24
- var onlyChild = require('./onlyChild');
25
-
26
- var createElement = ReactElement.createElement;
27
- var createFactory = ReactElement.createFactory;
28
- var cloneElement = ReactElement.cloneElement;
29
-
30
- if (process.env.NODE_ENV !== 'production') {
31
- createElement = ReactElementValidator.createElement;
32
- createFactory = ReactElementValidator.createFactory;
33
- cloneElement = ReactElementValidator.cloneElement;
34
- }
35
-
36
- var React = {
37
-
38
- // Modern
39
-
40
- Children: {
41
- map: ReactChildren.map,
42
- forEach: ReactChildren.forEach,
43
- count: ReactChildren.count,
44
- toArray: ReactChildren.toArray,
45
- only: onlyChild
46
- },
47
-
48
- Component: ReactComponent,
49
-
50
- createElement: createElement,
51
- cloneElement: cloneElement,
52
- isValidElement: ReactElement.isValidElement,
53
-
54
- // Classic
55
-
56
- PropTypes: ReactPropTypes,
57
- createClass: ReactClass.createClass,
58
- createFactory: createFactory,
59
- createMixin: function (mixin) {
60
- // Currently a noop. Will be used to validate and trace mixins.
61
- return mixin;
62
- },
63
-
64
- // This looks DOM specific but these are actually isomorphic helpers
65
- // since they are just generating DOM strings.
66
- DOM: ReactDOMFactories,
67
-
68
- version: ReactVersion,
69
-
70
- // Hook for JSX spread, don't use this for anything else.
71
- __spread: assign
72
- };
73
-
74
- module.exports = React;