react-dom 15.6.0-rc.1 → 15.7.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.
- package/LICENSE +16 -26
- package/dist/react-dom-server.js +512 -702
- package/dist/react-dom-server.min.js +8 -10
- package/dist/react-dom.js +546 -757
- package/dist/react-dom.min.js +9 -11
- package/lib/ARIADOMPropertyConfig.js +3 -5
- package/lib/AutoFocusUtils.js +3 -5
- package/lib/BeforeInputEventPlugin.js +3 -5
- package/lib/CSSProperty.js +4 -5
- package/lib/CSSPropertyOperations.js +14 -14
- package/lib/CallbackQueue.js +3 -5
- package/lib/ChangeEventPlugin.js +4 -6
- package/lib/DOMChildrenOperations.js +3 -5
- package/lib/DOMLazyTree.js +3 -5
- package/lib/DOMNamespaces.js +3 -5
- package/lib/DOMProperty.js +3 -5
- package/lib/DOMPropertyOperations.js +3 -5
- package/lib/Danger.js +3 -5
- package/lib/DefaultEventPluginOrder.js +3 -5
- package/lib/EnterLeaveEventPlugin.js +3 -5
- package/lib/EventConstants.js +3 -5
- package/lib/EventPluginHub.js +3 -5
- package/lib/EventPluginRegistry.js +3 -5
- package/lib/EventPluginUtils.js +3 -5
- package/lib/EventPropagators.js +3 -5
- package/lib/FallbackCompositionState.js +3 -5
- package/lib/HTMLDOMPropertyConfig.js +4 -5
- package/lib/KeyEscapeUtils.js +3 -5
- package/lib/LinkedValueUtils.js +3 -5
- package/lib/PluginModuleType.js +3 -5
- package/lib/PooledClass.js +3 -5
- package/lib/ReactBrowserEventEmitter.js +3 -5
- package/lib/ReactChildFiber.js +3 -5
- package/lib/ReactChildReconciler.js +3 -5
- package/lib/ReactComponentBrowserEnvironment.js +3 -5
- package/lib/ReactComponentEnvironment.js +3 -5
- package/lib/ReactComponentTreeTestUtils.js +3 -5
- package/lib/ReactCompositeComponent.js +4 -6
- package/lib/ReactCoroutine.js +3 -5
- package/lib/ReactDOM.js +4 -5
- package/lib/ReactDOMComponent.js +8 -5
- package/lib/ReactDOMComponentFlags.js +3 -5
- package/lib/ReactDOMComponentTree.js +3 -5
- package/lib/ReactDOMContainerInfo.js +3 -5
- package/lib/ReactDOMEmptyComponent.js +3 -5
- package/lib/ReactDOMFeatureFlags.js +3 -5
- package/lib/ReactDOMFiber.js +3 -5
- package/lib/ReactDOMIDOperations.js +3 -5
- package/lib/ReactDOMInput.js +7 -6
- package/lib/ReactDOMInvalidARIAHook.js +3 -5
- package/lib/ReactDOMNullInputValuePropHook.js +3 -5
- package/lib/ReactDOMOption.js +3 -5
- package/lib/ReactDOMSelect.js +3 -5
- package/lib/ReactDOMSelection.js +3 -5
- package/lib/ReactDOMServer.js +3 -5
- package/lib/ReactDOMServerUMDEntry.js +3 -5
- package/lib/ReactDOMTextComponent.js +3 -5
- package/lib/ReactDOMTextarea.js +3 -5
- package/lib/ReactDOMTreeTraversal.js +3 -5
- package/lib/ReactDOMUMDEntry.js +3 -5
- package/lib/ReactDOMUnknownPropertyHook.js +3 -5
- package/lib/ReactDebugTool.js +3 -5
- package/lib/ReactDefaultBatchingStrategy.js +3 -5
- package/lib/ReactDefaultInjection.js +3 -5
- package/lib/ReactElementSymbol.js +3 -5
- package/lib/ReactEmptyComponent.js +3 -5
- package/lib/ReactErrorUtils.js +6 -6
- package/lib/ReactEventEmitterMixin.js +3 -5
- package/lib/ReactEventListener.js +3 -5
- package/lib/ReactFeatureFlags.js +3 -5
- package/lib/ReactFiber.js +3 -5
- package/lib/ReactFiberBeginWork.js +3 -5
- package/lib/ReactFiberCommitWork.js +3 -5
- package/lib/ReactFiberCompleteWork.js +3 -5
- package/lib/ReactFiberReconciler.js +3 -5
- package/lib/ReactFiberRoot.js +3 -5
- package/lib/ReactFiberScheduler.js +3 -5
- package/lib/ReactFiberUpdateQueue.js +3 -5
- package/lib/ReactHostComponent.js +3 -5
- package/lib/ReactHostOperationHistoryHook.js +3 -5
- package/lib/ReactInjection.js +3 -5
- package/lib/ReactInputSelection.js +3 -5
- package/lib/ReactInstanceMap.js +3 -5
- package/lib/ReactInstanceType.js +3 -5
- package/lib/ReactInstrumentation.js +3 -5
- package/lib/ReactInvalidSetStateWarningHook.js +3 -5
- package/lib/ReactMarkupChecksum.js +3 -5
- package/lib/ReactMount.js +3 -5
- package/lib/ReactMultiChild.js +3 -5
- package/lib/ReactMultiChildUpdateTypes.js +3 -5
- package/lib/ReactNodeTypes.js +3 -5
- package/lib/ReactOwner.js +3 -5
- package/lib/ReactPerf.js +3 -5
- package/lib/ReactPriorityLevel.js +5 -6
- package/lib/ReactPropTypeLocationNames.js +3 -5
- package/lib/ReactPropTypeLocations.js +3 -5
- package/lib/ReactPropTypesSecret.js +3 -5
- package/lib/ReactReconcileTransaction.js +3 -5
- package/lib/ReactReconciler.js +3 -5
- package/lib/ReactRef.js +3 -5
- package/lib/ReactReifiedYield.js +3 -5
- package/lib/ReactServerBatchingStrategy.js +3 -5
- package/lib/ReactServerRendering.js +3 -5
- package/lib/ReactServerRenderingTransaction.js +3 -5
- package/lib/ReactServerUpdateQueue.js +3 -5
- package/lib/ReactShallowRenderer.js +3 -5
- package/lib/ReactSimpleEmptyComponent.js +3 -5
- package/lib/ReactSyntheticEventType.js +3 -5
- package/lib/ReactTestReconcileTransaction.js +2 -4
- package/lib/ReactTestUtils.js +3 -5
- package/lib/ReactTypeOfWork.js +3 -5
- package/lib/ReactTypes.js +3 -5
- package/lib/ReactUpdateQueue.js +3 -5
- package/lib/ReactUpdates.js +4 -6
- package/lib/ReactVersion.js +4 -6
- package/lib/ResponderEventPlugin.js +3 -5
- package/lib/ResponderSyntheticEvent.js +3 -5
- package/lib/ResponderTouchHistoryStore.js +3 -5
- package/lib/SVGDOMPropertyConfig.js +3 -5
- package/lib/SelectEventPlugin.js +3 -5
- package/lib/SimpleEventPlugin.js +3 -5
- package/lib/SyntheticAnimationEvent.js +3 -5
- package/lib/SyntheticClipboardEvent.js +3 -5
- package/lib/SyntheticCompositionEvent.js +3 -5
- package/lib/SyntheticDragEvent.js +3 -5
- package/lib/SyntheticEvent.js +30 -27
- package/lib/SyntheticFocusEvent.js +3 -5
- package/lib/SyntheticInputEvent.js +3 -5
- package/lib/SyntheticKeyboardEvent.js +3 -5
- package/lib/SyntheticMouseEvent.js +3 -5
- package/lib/SyntheticTouchEvent.js +3 -5
- package/lib/SyntheticTransitionEvent.js +3 -5
- package/lib/SyntheticUIEvent.js +3 -5
- package/lib/SyntheticWheelEvent.js +3 -5
- package/lib/TapEventPlugin.js +3 -5
- package/lib/TouchHistoryMath.js +12 -6
- package/lib/Transaction.js +3 -5
- package/lib/ViewportMetrics.js +3 -5
- package/lib/accumulate.js +3 -5
- package/lib/accumulateInto.js +3 -5
- package/lib/adler32.js +3 -5
- package/lib/canDefineProperty.js +3 -5
- package/lib/checkReactTypeSpec.js +3 -5
- package/lib/createMicrosoftUnsafeLocalFunction.js +3 -5
- package/lib/dangerousStyleValue.js +5 -7
- package/lib/deprecated.js +3 -5
- package/lib/escapeTextContentForBrowser.js +3 -5
- package/lib/findDOMNode.js +3 -5
- package/lib/flattenChildren.js +3 -5
- package/lib/forEachAccumulated.js +3 -5
- package/lib/getEventCharCode.js +3 -5
- package/lib/getEventKey.js +3 -5
- package/lib/getEventModifierState.js +3 -5
- package/lib/getEventTarget.js +3 -5
- package/lib/getHostComponentFromComposite.js +3 -5
- package/lib/getIteratorFn.js +3 -5
- package/lib/getNodeForCharacterOffset.js +3 -5
- package/lib/getTestDocument.js +3 -5
- package/lib/getTextContentAccessor.js +3 -5
- package/lib/getVendorPrefixedEventName.js +3 -5
- package/lib/inputValueTracking.js +9 -10
- package/lib/instantiateReactComponent.js +3 -5
- package/lib/isEventSupported.js +3 -5
- package/lib/isTextInputElement.js +3 -5
- package/lib/lowPriorityWarning.js +3 -5
- package/lib/quoteAttributeValueForBrowser.js +3 -5
- package/lib/reactComponentExpect.js +3 -5
- package/lib/reactProdInvariant.js +2 -4
- package/lib/renderSubtreeIntoContainer.js +3 -5
- package/lib/setInnerHTML.js +3 -5
- package/lib/setTextContent.js +3 -5
- package/lib/shouldUpdateReactComponent.js +3 -5
- package/lib/traverseAllChildren.js +3 -5
- package/lib/validateDOMNesting.js +3 -5
- package/package.json +27 -20
- package/PATENTS +0 -33
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/SyntheticEvent.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -180,6 +178,33 @@ _assign(SyntheticEvent.prototype, {
|
|
|
180
178
|
|
|
181
179
|
SyntheticEvent.Interface = EventInterface;
|
|
182
180
|
|
|
181
|
+
/**
|
|
182
|
+
* Helper to reduce boilerplate when creating subclasses.
|
|
183
|
+
*
|
|
184
|
+
* @param {function} Class
|
|
185
|
+
* @param {?object} Interface
|
|
186
|
+
*/
|
|
187
|
+
SyntheticEvent.augmentClass = function (Class, Interface) {
|
|
188
|
+
var Super = this;
|
|
189
|
+
|
|
190
|
+
var E = function () {};
|
|
191
|
+
E.prototype = Super.prototype;
|
|
192
|
+
var prototype = new E();
|
|
193
|
+
|
|
194
|
+
_assign(prototype, Class.prototype);
|
|
195
|
+
Class.prototype = prototype;
|
|
196
|
+
Class.prototype.constructor = Class;
|
|
197
|
+
|
|
198
|
+
Class.Interface = _assign({}, Super.Interface, Interface);
|
|
199
|
+
Class.augmentClass = Super.augmentClass;
|
|
200
|
+
|
|
201
|
+
PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
/** Proxying after everything set on SyntheticEvent
|
|
205
|
+
* to resolve Proxy issue on some WebKit browsers
|
|
206
|
+
* in which some Event properties are set to undefined (GH#10010)
|
|
207
|
+
*/
|
|
183
208
|
if (process.env.NODE_ENV !== 'production') {
|
|
184
209
|
if (isProxySupported) {
|
|
185
210
|
/*eslint-disable no-func-assign */
|
|
@@ -203,28 +228,6 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
203
228
|
/*eslint-enable no-func-assign */
|
|
204
229
|
}
|
|
205
230
|
}
|
|
206
|
-
/**
|
|
207
|
-
* Helper to reduce boilerplate when creating subclasses.
|
|
208
|
-
*
|
|
209
|
-
* @param {function} Class
|
|
210
|
-
* @param {?object} Interface
|
|
211
|
-
*/
|
|
212
|
-
SyntheticEvent.augmentClass = function (Class, Interface) {
|
|
213
|
-
var Super = this;
|
|
214
|
-
|
|
215
|
-
var E = function () {};
|
|
216
|
-
E.prototype = Super.prototype;
|
|
217
|
-
var prototype = new E();
|
|
218
|
-
|
|
219
|
-
_assign(prototype, Class.prototype);
|
|
220
|
-
Class.prototype = prototype;
|
|
221
|
-
Class.prototype.constructor = Class;
|
|
222
|
-
|
|
223
|
-
Class.Interface = _assign({}, Super.Interface, Interface);
|
|
224
|
-
Class.augmentClass = Super.augmentClass;
|
|
225
|
-
|
|
226
|
-
PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
|
|
227
|
-
};
|
|
228
231
|
|
|
229
232
|
PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
|
|
230
233
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/SyntheticUIEvent.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/TapEventPlugin.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/TouchHistoryMath.js
CHANGED
|
@@ -56,34 +56,40 @@ var TouchHistoryMath = {
|
|
|
56
56
|
|
|
57
57
|
currentCentroidXOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
|
|
58
58
|
return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, // isXAxis
|
|
59
|
-
true
|
|
59
|
+
true // ofCurrent
|
|
60
|
+
);
|
|
60
61
|
},
|
|
61
62
|
|
|
62
63
|
currentCentroidYOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
|
|
63
64
|
return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, // isXAxis
|
|
64
|
-
true
|
|
65
|
+
true // ofCurrent
|
|
66
|
+
);
|
|
65
67
|
},
|
|
66
68
|
|
|
67
69
|
previousCentroidXOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
|
|
68
70
|
return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, // isXAxis
|
|
69
|
-
false
|
|
71
|
+
false // ofCurrent
|
|
72
|
+
);
|
|
70
73
|
},
|
|
71
74
|
|
|
72
75
|
previousCentroidYOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
|
|
73
76
|
return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, // isXAxis
|
|
74
|
-
false
|
|
77
|
+
false // ofCurrent
|
|
78
|
+
);
|
|
75
79
|
},
|
|
76
80
|
|
|
77
81
|
currentCentroidX: function (touchHistory) {
|
|
78
82
|
return TouchHistoryMath.centroidDimension(touchHistory, 0, // touchesChangedAfter
|
|
79
83
|
true, // isXAxis
|
|
80
|
-
true
|
|
84
|
+
true // ofCurrent
|
|
85
|
+
);
|
|
81
86
|
},
|
|
82
87
|
|
|
83
88
|
currentCentroidY: function (touchHistory) {
|
|
84
89
|
return TouchHistoryMath.centroidDimension(touchHistory, 0, // touchesChangedAfter
|
|
85
90
|
false, // isXAxis
|
|
86
|
-
true
|
|
91
|
+
true // ofCurrent
|
|
92
|
+
);
|
|
87
93
|
},
|
|
88
94
|
|
|
89
95
|
noCentroid: -1
|
package/lib/Transaction.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/ViewportMetrics.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/accumulate.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/accumulateInto.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2014-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/adler32.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/canDefineProperty.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -26,7 +24,7 @@ var styleWarnings = {};
|
|
|
26
24
|
* @param {ReactDOMComponent} component
|
|
27
25
|
* @return {string} Normalized style value with dimensions applied.
|
|
28
26
|
*/
|
|
29
|
-
function dangerousStyleValue(name, value, component) {
|
|
27
|
+
function dangerousStyleValue(name, value, component, isCustomProperty) {
|
|
30
28
|
// Note that we've removed escapeTextForBrowser() calls here since the
|
|
31
29
|
// whole string will be escaped when the attribute is injected into
|
|
32
30
|
// the markup. If you provide unsafe user data here they can inject
|
|
@@ -43,7 +41,7 @@ function dangerousStyleValue(name, value, component) {
|
|
|
43
41
|
}
|
|
44
42
|
|
|
45
43
|
var isNonNumeric = isNaN(value);
|
|
46
|
-
if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
|
|
44
|
+
if (isCustomProperty || isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
|
|
47
45
|
return '' + value; // cast to string
|
|
48
46
|
}
|
|
49
47
|
|
package/lib/deprecated.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2016-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2016-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
* Based on the escape-html library, which is used under the MIT License below:
|
|
10
8
|
*
|
package/lib/findDOMNode.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/flattenChildren.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
package/lib/getEventCharCode.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/getEventKey.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/getEventTarget.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/getIteratorFn.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*
|
|
10
8
|
*/
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
package/lib/getTestDocument.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
4
3
|
*
|
|
5
|
-
* This source code is licensed under the
|
|
6
|
-
* LICENSE file in the root directory of this source tree.
|
|
7
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
6
|
*
|
|
9
7
|
*/
|
|
10
8
|
|