react-dom 15.4.0-rc.1 → 15.4.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/dist/react-dom-server.js +330 -434
- package/dist/react-dom-server.min.js +5 -5
- package/dist/react-dom.js +420 -535
- package/dist/react-dom.min.js +5 -5
- package/lib/ARIADOMPropertyConfig.js +0 -1
- package/lib/AutoFocusUtils.js +0 -1
- package/lib/BeforeInputEventPlugin.js +0 -1
- package/lib/CSSProperty.js +0 -1
- package/lib/CSSPropertyOperations.js +0 -1
- package/lib/CallbackQueue.js +0 -1
- package/lib/ChangeEventPlugin.js +0 -1
- package/lib/DOMChildrenOperations.js +0 -1
- package/lib/DOMLazyTree.js +0 -1
- package/lib/DOMNamespaces.js +0 -1
- package/lib/DOMProperty.js +0 -1
- package/lib/DOMPropertyOperations.js +0 -1
- package/lib/Danger.js +0 -1
- package/lib/DefaultEventPluginOrder.js +0 -1
- package/lib/EnterLeaveEventPlugin.js +0 -1
- package/lib/EventConstants.js +0 -1
- package/lib/EventPluginHub.js +0 -1
- package/lib/EventPluginRegistry.js +0 -1
- package/lib/EventPluginUtils.js +0 -1
- package/lib/EventPropagators.js +0 -1
- package/lib/FallbackCompositionState.js +0 -1
- package/lib/HTMLDOMPropertyConfig.js +0 -1
- package/lib/KeyEscapeUtils.js +0 -1
- package/lib/LinkedValueUtils.js +0 -1
- package/lib/PluginModuleType.js +0 -1
- package/lib/PooledClass.js +0 -1
- package/lib/ReactBrowserEventEmitter.js +0 -1
- package/lib/ReactChildFiber.js +7 -10
- package/lib/ReactChildReconciler.js +0 -1
- package/lib/ReactComponentBrowserEnvironment.js +0 -1
- package/lib/ReactComponentEnvironment.js +0 -1
- package/lib/ReactComponentTreeTestUtils.js +0 -1
- package/lib/ReactCompositeComponent.js +2 -3
- package/lib/ReactCoroutine.js +0 -1
- package/lib/ReactDOM.js +0 -1
- package/lib/ReactDOMComponent.js +0 -1
- package/lib/ReactDOMComponentFlags.js +0 -1
- package/lib/ReactDOMComponentTree.js +0 -1
- package/lib/ReactDOMContainerInfo.js +0 -1
- package/lib/ReactDOMEmptyComponent.js +0 -1
- package/lib/ReactDOMFeatureFlags.js +0 -1
- package/lib/ReactDOMFiber.js +0 -1
- package/lib/ReactDOMIDOperations.js +0 -1
- package/lib/ReactDOMInput.js +0 -1
- package/lib/ReactDOMInvalidARIAHook.js +0 -1
- package/lib/ReactDOMNullInputValuePropHook.js +0 -1
- package/lib/ReactDOMOption.js +0 -1
- package/lib/ReactDOMSelect.js +0 -1
- package/lib/ReactDOMSelection.js +0 -1
- package/lib/ReactDOMServer.js +0 -1
- package/lib/ReactDOMServerUMDEntry.js +0 -1
- package/lib/ReactDOMTextComponent.js +0 -1
- package/lib/ReactDOMTextarea.js +0 -1
- package/lib/ReactDOMTreeTraversal.js +0 -1
- package/lib/ReactDOMUMDEntry.js +0 -1
- package/lib/ReactDOMUnknownPropertyHook.js +0 -1
- package/lib/ReactDebugTool.js +5 -7
- package/lib/ReactDefaultBatchingStrategy.js +0 -1
- package/lib/ReactDefaultInjection.js +0 -1
- package/lib/ReactElementSymbol.js +0 -1
- package/lib/ReactEmptyComponent.js +0 -1
- package/lib/ReactErrorUtils.js +0 -1
- package/lib/ReactEventEmitterMixin.js +0 -1
- package/lib/ReactEventListener.js +0 -1
- package/lib/ReactFeatureFlags.js +0 -1
- package/lib/ReactFiber.js +9 -10
- package/lib/ReactFiberBeginWork.js +26 -32
- package/lib/ReactFiberCommitWork.js +5 -8
- package/lib/ReactFiberCompleteWork.js +13 -15
- package/lib/ReactFiberReconciler.js +5 -9
- package/lib/ReactFiberRoot.js +2 -5
- package/lib/ReactFiberScheduler.js +13 -21
- package/lib/ReactFiberUpdateQueue.js +0 -1
- package/lib/ReactHostComponent.js +0 -1
- package/lib/ReactHostOperationHistoryHook.js +0 -1
- package/lib/ReactInjection.js +0 -1
- package/lib/ReactInputSelection.js +0 -1
- package/lib/ReactInstanceMap.js +0 -1
- package/lib/ReactInstanceType.js +9 -10
- package/lib/ReactInstrumentation.js +0 -1
- package/lib/ReactInvalidSetStateWarningHook.js +0 -1
- package/lib/ReactMarkupChecksum.js +0 -1
- package/lib/ReactMount.js +0 -1
- package/lib/ReactMultiChild.js +0 -1
- package/lib/ReactMultiChildUpdateTypes.js +0 -1
- package/lib/ReactNodeTypes.js +0 -1
- package/lib/ReactOwner.js +2 -3
- package/lib/ReactPerf.js +45 -46
- package/lib/ReactPriorityLevel.js +0 -1
- package/lib/ReactPropTypeLocationNames.js +0 -1
- package/lib/ReactPropTypeLocations.js +0 -1
- package/lib/ReactPropTypesSecret.js +0 -1
- package/lib/ReactReconcileTransaction.js +0 -1
- package/lib/ReactReconciler.js +2 -3
- package/lib/ReactRef.js +5 -6
- package/lib/ReactReifiedYield.js +2 -5
- package/lib/ReactServerBatchingStrategy.js +0 -1
- package/lib/ReactServerRendering.js +0 -1
- package/lib/ReactServerRenderingTransaction.js +0 -1
- package/lib/ReactServerUpdateQueue.js +0 -1
- package/lib/ReactShallowRenderer.js +3 -5
- package/lib/ReactSimpleEmptyComponent.js +0 -1
- package/lib/ReactSyntheticEventType.js +0 -1
- package/lib/ReactTestUtils.js +2 -3
- package/lib/ReactTypeOfWork.js +0 -1
- package/lib/ReactTypes.js +0 -1
- package/lib/ReactUpdateQueue.js +0 -1
- package/lib/ReactUpdates.js +0 -1
- package/lib/ReactVersion.js +1 -2
- package/lib/ResponderEventPlugin.js +0 -1
- package/lib/ResponderSyntheticEvent.js +0 -1
- package/lib/ResponderTouchHistoryStore.js +3 -4
- package/lib/SVGDOMPropertyConfig.js +0 -1
- package/lib/SelectEventPlugin.js +0 -1
- package/lib/SimpleEventPlugin.js +0 -1
- package/lib/SyntheticAnimationEvent.js +0 -1
- package/lib/SyntheticClipboardEvent.js +0 -1
- package/lib/SyntheticCompositionEvent.js +0 -1
- package/lib/SyntheticDragEvent.js +0 -1
- package/lib/SyntheticEvent.js +0 -1
- package/lib/SyntheticFocusEvent.js +0 -1
- package/lib/SyntheticInputEvent.js +0 -1
- package/lib/SyntheticKeyboardEvent.js +0 -1
- package/lib/SyntheticMouseEvent.js +0 -1
- package/lib/SyntheticTouchEvent.js +0 -1
- package/lib/SyntheticTransitionEvent.js +0 -1
- package/lib/SyntheticUIEvent.js +0 -1
- package/lib/SyntheticWheelEvent.js +0 -1
- package/lib/TapEventPlugin.js +0 -1
- package/lib/TouchHistoryMath.js +0 -1
- package/lib/Transaction.js +0 -1
- package/lib/ViewportMetrics.js +0 -1
- package/lib/accumulate.js +0 -1
- package/lib/accumulateInto.js +0 -1
- package/lib/adler32.js +0 -1
- package/lib/canDefineProperty.js +0 -1
- package/lib/checkReactTypeSpec.js +0 -1
- package/lib/createMicrosoftUnsafeLocalFunction.js +0 -1
- package/lib/dangerousStyleValue.js +0 -1
- package/lib/deprecated.js +0 -1
- package/lib/escapeTextContentForBrowser.js +0 -1
- package/lib/findDOMNode.js +0 -1
- package/lib/flattenChildren.js +0 -1
- package/lib/forEachAccumulated.js +0 -1
- package/lib/getEventCharCode.js +0 -1
- package/lib/getEventKey.js +0 -1
- package/lib/getEventModifierState.js +0 -1
- package/lib/getEventTarget.js +0 -1
- package/lib/getHostComponentFromComposite.js +0 -1
- package/lib/getIteratorFn.js +0 -1
- package/lib/getNextDebugID.js +20 -0
- package/lib/getNodeForCharacterOffset.js +0 -1
- package/lib/getTestDocument.js +0 -1
- package/lib/getTextContentAccessor.js +0 -1
- package/lib/getVendorPrefixedEventName.js +0 -1
- package/lib/instantiateReactComponent.js +2 -4
- package/lib/isEventSupported.js +0 -1
- package/lib/isTextInputElement.js +0 -1
- package/lib/quoteAttributeValueForBrowser.js +0 -1
- package/lib/reactComponentExpect.js +0 -1
- package/lib/reactProdInvariant.js +0 -1
- package/lib/renderSubtreeIntoContainer.js +1 -2
- package/lib/setInnerHTML.js +0 -1
- package/lib/setTextContent.js +0 -1
- package/lib/shouldUpdateReactComponent.js +0 -1
- package/lib/traverseAllChildren.js +0 -1
- package/lib/validateDOMNesting.js +0 -1
- package/package.json +2 -2
package/lib/AutoFocusUtils.js
CHANGED
package/lib/CSSProperty.js
CHANGED
package/lib/CallbackQueue.js
CHANGED
package/lib/ChangeEventPlugin.js
CHANGED
package/lib/DOMLazyTree.js
CHANGED
package/lib/DOMNamespaces.js
CHANGED
package/lib/DOMProperty.js
CHANGED
package/lib/Danger.js
CHANGED
package/lib/EventConstants.js
CHANGED
package/lib/EventPluginHub.js
CHANGED
package/lib/EventPluginUtils.js
CHANGED
package/lib/EventPropagators.js
CHANGED
package/lib/KeyEscapeUtils.js
CHANGED
package/lib/LinkedValueUtils.js
CHANGED
package/lib/PluginModuleType.js
CHANGED
package/lib/PooledClass.js
CHANGED
package/lib/ReactChildFiber.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*
|
|
9
|
-
* @providesModule ReactChildFiber
|
|
10
9
|
*
|
|
11
10
|
*/
|
|
12
11
|
|
|
@@ -14,19 +13,17 @@
|
|
|
14
13
|
|
|
15
14
|
var REACT_ELEMENT_TYPE = require('./ReactElementSymbol');
|
|
16
15
|
|
|
17
|
-
var _require = require('./ReactCoroutine')
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var REACT_YIELD_TYPE = _require.REACT_YIELD_TYPE;
|
|
21
|
-
|
|
16
|
+
var _require = require('./ReactCoroutine'),
|
|
17
|
+
REACT_COROUTINE_TYPE = _require.REACT_COROUTINE_TYPE,
|
|
18
|
+
REACT_YIELD_TYPE = _require.REACT_YIELD_TYPE;
|
|
22
19
|
|
|
23
20
|
var ReactFiber = require('./ReactFiber');
|
|
24
21
|
var ReactReifiedYield = require('./ReactReifiedYield');
|
|
25
22
|
|
|
26
|
-
var cloneFiber = ReactFiber.cloneFiber
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
23
|
+
var cloneFiber = ReactFiber.cloneFiber,
|
|
24
|
+
createFiberFromElement = ReactFiber.createFiberFromElement,
|
|
25
|
+
createFiberFromCoroutine = ReactFiber.createFiberFromCoroutine,
|
|
26
|
+
createFiberFromYield = ReactFiber.createFiberFromYield;
|
|
30
27
|
var createReifiedYield = ReactReifiedYield.createReifiedYield;
|
|
31
28
|
|
|
32
29
|
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*
|
|
9
|
-
* @providesModule ReactCompositeComponent
|
|
10
9
|
*/
|
|
11
10
|
|
|
12
11
|
'use strict';
|
|
@@ -842,10 +841,10 @@ var ReactCompositeComponent = {
|
|
|
842
841
|
* @final
|
|
843
842
|
* @private
|
|
844
843
|
*/
|
|
845
|
-
attachRef: function (ref, component
|
|
844
|
+
attachRef: function (ref, component) {
|
|
846
845
|
var inst = this.getPublicInstance();
|
|
847
846
|
!(inst != null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : _prodInvariant('110') : void 0;
|
|
848
|
-
var publicComponentInstance = component.getPublicInstance(
|
|
847
|
+
var publicComponentInstance = component.getPublicInstance();
|
|
849
848
|
if (process.env.NODE_ENV !== 'production') {
|
|
850
849
|
var componentName = component && component.getName ? component.getName() : 'a component';
|
|
851
850
|
process.env.NODE_ENV !== 'production' ? warning(publicComponentInstance != null || component._compositeType !== CompositeTypes.StatelessFunctional, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : void 0;
|
package/lib/ReactCoroutine.js
CHANGED
package/lib/ReactDOM.js
CHANGED
package/lib/ReactDOMComponent.js
CHANGED
package/lib/ReactDOMFiber.js
CHANGED
package/lib/ReactDOMInput.js
CHANGED
package/lib/ReactDOMOption.js
CHANGED
package/lib/ReactDOMSelect.js
CHANGED
package/lib/ReactDOMSelection.js
CHANGED
package/lib/ReactDOMServer.js
CHANGED
package/lib/ReactDOMTextarea.js
CHANGED
package/lib/ReactDOMUMDEntry.js
CHANGED
package/lib/ReactDebugTool.js
CHANGED
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
7
7
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
8
8
|
*
|
|
9
|
-
* @providesModule ReactDebugTool
|
|
10
9
|
*
|
|
11
10
|
*/
|
|
12
11
|
|
|
@@ -165,12 +164,11 @@ function pauseCurrentLifeCycleTimer() {
|
|
|
165
164
|
}
|
|
166
165
|
|
|
167
166
|
function resumeCurrentLifeCycleTimer() {
|
|
168
|
-
var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop()
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
var timerType = _lifeCycleTimerStack$.timerType;
|
|
167
|
+
var _lifeCycleTimerStack$ = lifeCycleTimerStack.pop(),
|
|
168
|
+
startTime = _lifeCycleTimerStack$.startTime,
|
|
169
|
+
nestedFlushStartTime = _lifeCycleTimerStack$.nestedFlushStartTime,
|
|
170
|
+
debugID = _lifeCycleTimerStack$.debugID,
|
|
171
|
+
timerType = _lifeCycleTimerStack$.timerType;
|
|
174
172
|
|
|
175
173
|
var nestedFlushDuration = performanceNow() - nestedFlushStartTime;
|
|
176
174
|
currentTimerStartTime = startTime;
|
package/lib/ReactErrorUtils.js
CHANGED