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.
- package/dist/react-with-addons.js +1446 -1195
- package/dist/react-with-addons.min.js +6 -6
- package/dist/react.js +1330 -1109
- package/dist/react.min.js +6 -6
- package/lib/CSSProperty.js +6 -0
- package/lib/CSSPropertyOperations.js +31 -15
- package/lib/CallbackQueue.js +3 -2
- package/lib/DOMChildrenOperations.js +0 -3
- package/lib/DOMLazyTree.js +11 -2
- package/lib/DOMPropertyOperations.js +0 -46
- package/lib/EventPluginUtils.js +2 -2
- package/lib/FallbackCompositionState.js +3 -2
- package/lib/HTMLDOMPropertyConfig.js +111 -111
- package/lib/IOSDefaultEventPluginOrder.js +16 -0
- package/lib/IOSNativeBridgeEventPlugin.js +57 -0
- package/lib/NativeMethodsMixin.js +165 -0
- package/lib/OrderedMap.js +3 -2
- package/lib/PanResponder.js +362 -0
- package/lib/React.js +68 -9
- package/lib/ReactBrowserEventEmitter.js +3 -2
- package/lib/ReactCSSTransitionGroup.js +3 -3
- package/lib/ReactClass.js +7 -6
- package/lib/ReactComponent.js +2 -2
- package/lib/ReactCompositeComponent.js +5 -4
- package/lib/ReactDOMComponent.js +14 -15
- package/lib/ReactDOMDebugTool.js +0 -8
- package/lib/ReactDOMEmptyComponent.js +3 -3
- package/lib/ReactDOMInput.js +5 -4
- package/lib/ReactDOMOption.js +13 -2
- package/lib/ReactDOMSelect.js +3 -2
- package/lib/ReactDOMTextComponent.js +3 -2
- package/lib/ReactDOMTextarea.js +3 -2
- package/lib/ReactDebugInstanceMap.js +102 -0
- package/lib/ReactDefaultBatchingStrategy.js +3 -2
- package/lib/ReactDefaultPerf.js +46 -7
- package/lib/ReactDefaultPerfAnalysis.js +7 -7
- package/lib/ReactElement.js +5 -4
- package/lib/ReactEventListener.js +3 -2
- package/lib/ReactMarkupChecksum.js +7 -2
- package/lib/ReactMount.js +1 -0
- package/lib/ReactNative.js +71 -0
- package/lib/ReactNativeAttributePayload.js +397 -0
- package/lib/ReactNativeBaseComponent.js +196 -0
- package/lib/ReactNativeComponent.js +3 -2
- package/lib/ReactNativeComponentEnvironment.js +38 -0
- package/lib/ReactNativeComponentTree.js +66 -0
- package/lib/ReactNativeContainerInfo.js +21 -0
- package/lib/ReactNativeDOMIDOperations.js +83 -0
- package/lib/ReactNativeDefaultInjection.js +99 -0
- package/lib/ReactNativeEventEmitter.js +180 -0
- package/lib/ReactNativeGlobalInteractionHandler.js +33 -0
- package/lib/ReactNativeGlobalResponderHandler.js +25 -0
- package/lib/ReactNativeMount.js +190 -0
- package/lib/ReactNativePropRegistry.js +52 -0
- package/lib/ReactNativeReconcileTransaction.js +100 -0
- package/lib/ReactNativeTagHandles.js +54 -0
- package/lib/ReactNativeTextComponent.js +70 -0
- package/lib/ReactNativeTreeTraversal.js +127 -0
- package/lib/ReactOwner.js +4 -3
- package/lib/ReactPropTransferer.js +4 -3
- package/lib/ReactReconcileTransaction.js +3 -3
- package/lib/ReactServerRenderingTransaction.js +3 -3
- package/lib/ReactSimpleEmptyComponent.js +3 -3
- package/lib/ReactTestUtils.js +14 -4
- package/lib/ReactTransitionGroup.js +3 -2
- package/lib/ReactUMDEntry.js +26 -0
- package/lib/ReactUpdateQueue.js +20 -3
- package/lib/ReactUpdates.js +3 -2
- package/lib/ReactVersion.js +1 -1
- package/lib/ReactWithAddons.js +0 -7
- package/lib/ReactWithAddonsUMDEntry.js +26 -0
- package/lib/ResponderSyntheticEvent.js +1 -1
- package/lib/SVGDOMPropertyConfig.js +266 -52
- package/lib/SyntheticEvent.js +5 -4
- package/lib/TouchHistoryMath.js +99 -0
- package/lib/createReactNativeComponentClass.js +42 -0
- package/lib/deprecated.js +3 -2
- package/lib/findNodeHandle.js +89 -0
- package/lib/instantiateReactComponent.js +3 -2
- package/lib/reactComponentExpect.js +3 -2
- package/lib/setInnerHTML.js +1 -0
- package/lib/update.js +4 -3
- package/lib/validateDOMNesting.js +3 -2
- package/package.json +5 -4
- package/addons.js +0 -15
- package/lib/Object.assign.js +0 -47
- package/lib/React.native.js +0 -5
- package/lib/ReactDOM.native.js +0 -12
- package/lib/ReactDOMSVGDeprecatedAttributeDevtool.js +0 -61
- package/lib/ReactIsomorphic.js +0 -74
package/lib/React.native.js
DELETED
package/lib/ReactDOM.native.js
DELETED
|
@@ -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;
|
package/lib/ReactIsomorphic.js
DELETED
|
@@ -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;
|