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
|
|
package/lib/AutoFocusUtils.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/CSSProperty.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
|
|
|
@@ -23,6 +21,7 @@ var isUnitlessNumber = {
|
|
|
23
21
|
boxFlexGroup: true,
|
|
24
22
|
boxOrdinalGroup: true,
|
|
25
23
|
columnCount: true,
|
|
24
|
+
columns: true,
|
|
26
25
|
flex: true,
|
|
27
26
|
flexGrow: true,
|
|
28
27
|
flexPositive: true,
|
|
@@ -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
|
|
|
@@ -103,10 +101,6 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
103
101
|
* @param {ReactDOMComponent} component
|
|
104
102
|
*/
|
|
105
103
|
var warnValidStyle = function (name, value, component) {
|
|
106
|
-
// Don't warn for CSS variables
|
|
107
|
-
if (name.indexOf('--') === 0) {
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
104
|
var owner;
|
|
111
105
|
if (component) {
|
|
112
106
|
owner = component._currentElement._owner;
|
|
@@ -148,13 +142,16 @@ var CSSPropertyOperations = {
|
|
|
148
142
|
if (!styles.hasOwnProperty(styleName)) {
|
|
149
143
|
continue;
|
|
150
144
|
}
|
|
145
|
+
var isCustomProperty = styleName.indexOf('--') === 0;
|
|
151
146
|
var styleValue = styles[styleName];
|
|
152
147
|
if (process.env.NODE_ENV !== 'production') {
|
|
153
|
-
|
|
148
|
+
if (!isCustomProperty) {
|
|
149
|
+
warnValidStyle(styleName, styleValue, component);
|
|
150
|
+
}
|
|
154
151
|
}
|
|
155
152
|
if (styleValue != null) {
|
|
156
153
|
serialized += processStyleName(styleName) + ':';
|
|
157
|
-
serialized += dangerousStyleValue(styleName, styleValue, component) + ';';
|
|
154
|
+
serialized += dangerousStyleValue(styleName, styleValue, component, isCustomProperty) + ';';
|
|
158
155
|
}
|
|
159
156
|
}
|
|
160
157
|
return serialized || null;
|
|
@@ -182,14 +179,17 @@ var CSSPropertyOperations = {
|
|
|
182
179
|
if (!styles.hasOwnProperty(styleName)) {
|
|
183
180
|
continue;
|
|
184
181
|
}
|
|
182
|
+
var isCustomProperty = styleName.indexOf('--') === 0;
|
|
185
183
|
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
-
|
|
184
|
+
if (!isCustomProperty) {
|
|
185
|
+
warnValidStyle(styleName, styles[styleName], component);
|
|
186
|
+
}
|
|
187
187
|
}
|
|
188
|
-
var styleValue = dangerousStyleValue(styleName, styles[styleName], component);
|
|
188
|
+
var styleValue = dangerousStyleValue(styleName, styles[styleName], component, isCustomProperty);
|
|
189
189
|
if (styleName === 'float' || styleName === 'cssFloat') {
|
|
190
190
|
styleName = styleFloatAccessor;
|
|
191
191
|
}
|
|
192
|
-
if (
|
|
192
|
+
if (isCustomProperty) {
|
|
193
193
|
style.setProperty(styleName, styleValue);
|
|
194
194
|
} else if (styleValue) {
|
|
195
195
|
style[styleName] = styleValue;
|
package/lib/CallbackQueue.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/ChangeEventPlugin.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
|
|
|
@@ -129,7 +127,7 @@ if (ExecutionEnvironment.canUseDOM) {
|
|
|
129
127
|
// IE9 claims to support the input event but fails to trigger it when
|
|
130
128
|
// deleting text, so we ignore its input events.
|
|
131
129
|
|
|
132
|
-
isInputEventSupported = isEventSupported('input') && (!
|
|
130
|
+
isInputEventSupported = isEventSupported('input') && (!document.documentMode || document.documentMode > 9);
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
/**
|
|
@@ -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/DOMLazyTree.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
2
|
+
* Copyright (c) 2015-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/DOMNamespaces.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/DOMProperty.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/Danger.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
|
|
package/lib/EventConstants.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/EventPluginHub.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/EventPluginUtils.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/EventPropagators.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
|
|
|
@@ -53,6 +51,7 @@ var HTMLDOMPropertyConfig = {
|
|
|
53
51
|
contentEditable: 0,
|
|
54
52
|
contextMenu: 0,
|
|
55
53
|
controls: HAS_BOOLEAN_VALUE,
|
|
54
|
+
controlsList: 0,
|
|
56
55
|
coords: 0,
|
|
57
56
|
crossOrigin: 0,
|
|
58
57
|
data: 0, // For `<object />` acts as `src`.
|
package/lib/KeyEscapeUtils.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/LinkedValueUtils.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/PluginModuleType.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/PooledClass.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/ReactChildFiber.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 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
|
|
|
@@ -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 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
|
*/
|
|
@@ -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
|
*/
|
|
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
|
|
|
@@ -273,7 +271,7 @@ var ReactCompositeComponent = {
|
|
|
273
271
|
},
|
|
274
272
|
|
|
275
273
|
_constructComponent: function (doConstruct, publicProps, publicContext, updateQueue) {
|
|
276
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
274
|
+
if (process.env.NODE_ENV !== 'production' && !doConstruct) {
|
|
277
275
|
ReactCurrentOwner.current = this;
|
|
278
276
|
try {
|
|
279
277
|
return this._constructComponentWithoutOwner(doConstruct, publicProps, publicContext, updateQueue);
|
package/lib/ReactCoroutine.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/ReactDOM.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
|
|
|
@@ -35,6 +33,7 @@ var ReactDOM = {
|
|
|
35
33
|
/* eslint-disable camelcase */
|
|
36
34
|
unstable_batchedUpdates: ReactUpdates.batchedUpdates,
|
|
37
35
|
unstable_renderSubtreeIntoContainer: renderSubtreeIntoContainer
|
|
36
|
+
/* eslint-enable camelcase */
|
|
38
37
|
};
|
|
39
38
|
|
|
40
39
|
// Inject the runtime into a devtools global hook regardless of browser.
|
package/lib/ReactDOMComponent.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
|
|
|
@@ -316,6 +314,7 @@ var omittedCloseTags = {
|
|
|
316
314
|
source: true,
|
|
317
315
|
track: true,
|
|
318
316
|
wbr: true
|
|
317
|
+
// NOTE: menuitem's close tag should be omitted, but that causes problems.
|
|
319
318
|
};
|
|
320
319
|
|
|
321
320
|
var newlineEatingTags = {
|
|
@@ -764,6 +763,10 @@ ReactDOMComponent.Mixin = {
|
|
|
764
763
|
// happen after `_updateDOMProperties`. Otherwise HTML5 input validations
|
|
765
764
|
// raise warnings and prevent the new value from being assigned.
|
|
766
765
|
ReactDOMInput.updateWrapper(this);
|
|
766
|
+
|
|
767
|
+
// We also check that we haven't missed a value update, such as a
|
|
768
|
+
// Radio group shifting the checked value to another named radio input.
|
|
769
|
+
inputValueTracking.updateValueIfChanged(this);
|
|
767
770
|
break;
|
|
768
771
|
case 'textarea':
|
|
769
772
|
ReactDOMTextarea.updateWrapper(this);
|