react-test-renderer 15.5.4 → 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/lib/CallbackQueue.js +3 -5
- package/lib/EventConstants.js +3 -5
- package/lib/EventPluginHub.js +3 -9
- package/lib/EventPluginRegistry.js +3 -7
- package/lib/EventPluginUtils.js +3 -5
- package/lib/EventPropagators.js +3 -5
- package/lib/KeyEscapeUtils.js +3 -5
- package/lib/PluginModuleType.js +3 -5
- package/lib/PooledClass.js +3 -5
- package/lib/ReactChildFiber.js +3 -6
- package/lib/ReactChildReconciler.js +7 -10
- package/lib/ReactComponentEnvironment.js +3 -7
- package/lib/ReactCompositeComponent.js +5 -9
- package/lib/ReactCoroutine.js +3 -5
- package/lib/ReactDebugTool.js +6 -6
- package/lib/ReactDefaultBatchingStrategy.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 -6
- package/lib/ReactFeatureFlags.js +3 -5
- package/lib/ReactFiber.js +3 -7
- package/lib/ReactFiberBeginWork.js +3 -6
- package/lib/ReactFiberCommitWork.js +3 -6
- package/lib/ReactFiberCompleteWork.js +3 -7
- 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/ReactInstanceMap.js +3 -7
- package/lib/ReactInstanceType.js +3 -5
- package/lib/ReactInstrumentation.js +3 -5
- package/lib/ReactInvalidSetStateWarningHook.js +3 -5
- package/lib/ReactMultiChild.js +3 -9
- package/lib/ReactMultiChildUpdateTypes.js +3 -5
- package/lib/ReactNodeTypes.js +3 -5
- package/lib/ReactOwner.js +3 -6
- package/lib/ReactPerf.js +9 -11
- 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/ReactReconciler.js +5 -9
- package/lib/ReactRef.js +3 -5
- package/lib/ReactReifiedYield.js +3 -5
- package/lib/ReactShallowRenderer.js +3 -5
- package/lib/ReactSimpleEmptyComponent.js +5 -7
- package/lib/ReactSyntheticEventType.js +3 -5
- package/lib/ReactTestEmptyComponent.js +3 -5
- package/lib/ReactTestMount.js +8 -8
- package/lib/ReactTestReconcileTransaction.js +2 -4
- package/lib/ReactTestRenderer.js +4 -5
- package/lib/ReactTestTextComponent.js +3 -5
- package/lib/ReactTypeOfWork.js +3 -5
- package/lib/ReactTypes.js +3 -5
- package/lib/ReactUpdateQueue.js +4 -8
- package/lib/ReactUpdates.js +4 -6
- package/lib/ReactVersion.js +4 -6
- package/lib/ResponderEventPlugin.js +3 -7
- package/lib/ResponderSyntheticEvent.js +3 -5
- package/lib/ResponderTouchHistoryStore.js +3 -5
- package/lib/SyntheticEvent.js +34 -33
- package/lib/Transaction.js +6 -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/deprecated.js +6 -8
- package/lib/flattenChildren.js +3 -5
- package/lib/forEachAccumulated.js +3 -5
- package/lib/getHostComponentFromComposite.js +3 -5
- package/lib/getIteratorFn.js +3 -5
- package/lib/instantiateReactComponent.js +4 -6
- package/lib/isTextInputElement.js +17 -19
- package/lib/lowPriorityWarning.js +62 -0
- package/lib/reactProdInvariant.js +2 -4
- package/lib/shallow/ARIADOMPropertyConfig.js +3 -5
- package/lib/shallow/AutoFocusUtils.js +3 -5
- package/lib/shallow/BeforeInputEventPlugin.js +3 -6
- package/lib/shallow/CSSProperty.js +10 -5
- package/lib/shallow/CSSPropertyOperations.js +17 -13
- package/lib/shallow/CallbackQueue.js +3 -5
- package/lib/shallow/ChangeEventPlugin.js +52 -88
- package/lib/shallow/DOMChildrenOperations.js +7 -8
- package/lib/shallow/DOMLazyTree.js +3 -5
- package/lib/shallow/DOMNamespaces.js +3 -5
- package/lib/shallow/DOMProperty.js +3 -6
- package/lib/shallow/DOMPropertyOperations.js +3 -7
- package/lib/shallow/Danger.js +3 -7
- package/lib/shallow/DefaultEventPluginOrder.js +3 -5
- package/lib/shallow/EnterLeaveEventPlugin.js +3 -7
- package/lib/shallow/EventConstants.js +3 -5
- package/lib/shallow/EventPluginHub.js +3 -9
- package/lib/shallow/EventPluginRegistry.js +3 -7
- package/lib/shallow/EventPluginUtils.js +3 -5
- package/lib/shallow/EventPropagators.js +3 -5
- package/lib/shallow/FallbackCompositionState.js +3 -5
- package/lib/shallow/HTMLDOMPropertyConfig.js +4 -5
- package/lib/shallow/KeyEscapeUtils.js +3 -5
- package/lib/shallow/LinkedValueUtils.js +10 -12
- package/lib/shallow/PluginModuleType.js +3 -5
- package/lib/shallow/PooledClass.js +3 -5
- package/lib/shallow/ReactBrowserEventEmitter.js +3 -9
- package/lib/shallow/ReactChildFiber.js +3 -6
- package/lib/shallow/ReactChildReconciler.js +7 -10
- package/lib/shallow/ReactComponentBrowserEnvironment.js +3 -7
- package/lib/shallow/ReactComponentEnvironment.js +3 -7
- package/lib/shallow/ReactCompositeComponent.js +5 -9
- package/lib/shallow/ReactCoroutine.js +3 -5
- package/lib/shallow/ReactDOM.js +5 -7
- package/lib/shallow/ReactDOMComponent.js +40 -29
- package/lib/shallow/ReactDOMComponentFlags.js +3 -5
- package/lib/shallow/ReactDOMComponentTree.js +3 -5
- package/lib/shallow/ReactDOMContainerInfo.js +3 -5
- package/lib/shallow/ReactDOMEmptyComponent.js +3 -5
- package/lib/shallow/ReactDOMFeatureFlags.js +3 -5
- package/lib/shallow/ReactDOMFiber.js +3 -6
- package/lib/shallow/ReactDOMIDOperations.js +3 -6
- package/lib/shallow/ReactDOMInput.js +8 -8
- package/lib/shallow/ReactDOMInvalidARIAHook.js +3 -5
- package/lib/shallow/ReactDOMNullInputValuePropHook.js +3 -5
- package/lib/shallow/ReactDOMOption.js +3 -6
- package/lib/shallow/ReactDOMSelect.js +3 -5
- package/lib/shallow/ReactDOMSelection.js +3 -5
- package/lib/shallow/ReactDOMServer.js +3 -5
- package/lib/shallow/ReactDOMTextComponent.js +3 -7
- package/lib/shallow/ReactDOMTextarea.js +3 -5
- package/lib/shallow/ReactDOMTreeTraversal.js +3 -5
- package/lib/shallow/ReactDOMUnknownPropertyHook.js +3 -5
- package/lib/shallow/ReactDebugTool.js +6 -6
- package/lib/shallow/ReactDefaultBatchingStrategy.js +3 -5
- package/lib/shallow/ReactDefaultInjection.js +3 -5
- package/lib/shallow/ReactElementSymbol.js +3 -5
- package/lib/shallow/ReactEmptyComponent.js +3 -5
- package/lib/shallow/ReactErrorUtils.js +6 -6
- package/lib/shallow/ReactEventEmitterMixin.js +3 -6
- package/lib/shallow/ReactEventListener.js +3 -5
- package/lib/shallow/ReactFeatureFlags.js +3 -5
- package/lib/shallow/ReactFiber.js +3 -7
- package/lib/shallow/ReactFiberBeginWork.js +3 -6
- package/lib/shallow/ReactFiberCommitWork.js +3 -6
- package/lib/shallow/ReactFiberCompleteWork.js +3 -7
- package/lib/shallow/ReactFiberReconciler.js +3 -5
- package/lib/shallow/ReactFiberRoot.js +3 -5
- package/lib/shallow/ReactFiberScheduler.js +3 -5
- package/lib/shallow/ReactFiberUpdateQueue.js +3 -5
- package/lib/shallow/ReactHostComponent.js +3 -5
- package/lib/shallow/ReactHostOperationHistoryHook.js +3 -5
- package/lib/shallow/ReactInjection.js +3 -5
- package/lib/shallow/ReactInputSelection.js +3 -6
- package/lib/shallow/ReactInstanceMap.js +3 -7
- package/lib/shallow/ReactInstanceType.js +3 -5
- package/lib/shallow/ReactInstrumentation.js +3 -5
- package/lib/shallow/ReactInvalidSetStateWarningHook.js +3 -5
- package/lib/shallow/ReactMarkupChecksum.js +3 -5
- package/lib/shallow/ReactMount.js +10 -12
- package/lib/shallow/ReactMultiChild.js +3 -9
- package/lib/shallow/ReactMultiChildUpdateTypes.js +3 -5
- package/lib/shallow/ReactNodeTypes.js +3 -5
- package/lib/shallow/ReactOwner.js +3 -6
- package/lib/shallow/ReactPerf.js +9 -11
- package/lib/shallow/ReactPriorityLevel.js +5 -6
- package/lib/shallow/ReactPropTypeLocationNames.js +3 -5
- package/lib/shallow/ReactPropTypeLocations.js +3 -5
- package/lib/shallow/ReactPropTypesSecret.js +3 -5
- package/lib/shallow/ReactReconcileTransaction.js +3 -5
- package/lib/shallow/ReactReconciler.js +5 -9
- package/lib/shallow/ReactRef.js +3 -5
- package/lib/shallow/ReactReifiedYield.js +3 -5
- package/lib/shallow/ReactServerBatchingStrategy.js +3 -5
- package/lib/shallow/ReactServerRendering.js +3 -5
- package/lib/shallow/ReactServerRenderingTransaction.js +3 -5
- package/lib/shallow/ReactServerUpdateQueue.js +3 -5
- package/lib/shallow/ReactShallowRenderer.js +3 -5
- package/lib/shallow/ReactSimpleEmptyComponent.js +5 -7
- package/lib/shallow/ReactSyntheticEventType.js +3 -5
- package/lib/shallow/ReactTestEmptyComponent.js +3 -5
- package/lib/shallow/ReactTestMount.js +8 -8
- package/lib/shallow/ReactTestReconcileTransaction.js +2 -4
- package/lib/shallow/ReactTestRenderer.js +4 -5
- package/lib/shallow/ReactTestTextComponent.js +3 -5
- package/lib/shallow/ReactTypeOfWork.js +3 -5
- package/lib/shallow/ReactTypes.js +3 -5
- package/lib/shallow/ReactUpdateQueue.js +4 -8
- package/lib/shallow/ReactUpdates.js +4 -6
- package/lib/shallow/ReactVersion.js +4 -6
- package/lib/shallow/ResponderEventPlugin.js +3 -7
- package/lib/shallow/ResponderSyntheticEvent.js +3 -5
- package/lib/shallow/ResponderTouchHistoryStore.js +3 -5
- package/lib/shallow/SVGDOMPropertyConfig.js +3 -5
- package/lib/shallow/SelectEventPlugin.js +3 -8
- package/lib/shallow/SimpleEventPlugin.js +3 -7
- package/lib/shallow/SyntheticAnimationEvent.js +3 -5
- package/lib/shallow/SyntheticClipboardEvent.js +3 -5
- package/lib/shallow/SyntheticCompositionEvent.js +3 -5
- package/lib/shallow/SyntheticDragEvent.js +3 -5
- package/lib/shallow/SyntheticEvent.js +34 -33
- package/lib/shallow/SyntheticFocusEvent.js +3 -5
- package/lib/shallow/SyntheticInputEvent.js +3 -5
- package/lib/shallow/SyntheticKeyboardEvent.js +3 -5
- package/lib/shallow/SyntheticMouseEvent.js +3 -5
- package/lib/shallow/SyntheticTouchEvent.js +3 -5
- package/lib/shallow/SyntheticTransitionEvent.js +3 -5
- package/lib/shallow/SyntheticUIEvent.js +3 -5
- package/lib/shallow/SyntheticWheelEvent.js +6 -11
- package/lib/shallow/TapEventPlugin.js +3 -7
- package/lib/shallow/Transaction.js +6 -5
- package/lib/shallow/ViewportMetrics.js +3 -7
- package/lib/shallow/accumulate.js +3 -5
- package/lib/shallow/accumulateInto.js +3 -5
- package/lib/shallow/adler32.js +3 -5
- package/lib/shallow/canDefineProperty.js +3 -5
- package/lib/shallow/checkReactTypeSpec.js +3 -5
- package/lib/shallow/createMicrosoftUnsafeLocalFunction.js +3 -5
- package/lib/shallow/dangerousStyleValue.js +5 -7
- package/lib/shallow/deprecated.js +6 -8
- package/lib/shallow/escapeTextContentForBrowser.js +3 -6
- package/lib/shallow/findDOMNode.js +3 -5
- package/lib/shallow/flattenChildren.js +3 -5
- package/lib/shallow/forEachAccumulated.js +3 -5
- package/lib/shallow/getEventCharCode.js +3 -5
- package/lib/shallow/getEventKey.js +27 -19
- package/lib/shallow/getEventModifierState.js +7 -9
- package/lib/shallow/getEventTarget.js +3 -5
- package/lib/shallow/getHostComponentFromComposite.js +3 -5
- package/lib/shallow/getIteratorFn.js +3 -5
- package/lib/shallow/getNodeForCharacterOffset.js +3 -5
- package/lib/shallow/getTextContentAccessor.js +3 -5
- package/lib/shallow/getVendorPrefixedEventName.js +3 -5
- package/lib/shallow/inputValueTracking.js +120 -0
- package/lib/shallow/instantiateReactComponent.js +4 -6
- package/lib/shallow/isEventSupported.js +3 -5
- package/lib/shallow/isTextInputElement.js +17 -19
- package/lib/shallow/lowPriorityWarning.js +62 -0
- package/lib/shallow/quoteAttributeValueForBrowser.js +3 -5
- package/lib/shallow/reactProdInvariant.js +2 -4
- package/lib/shallow/renderSubtreeIntoContainer.js +3 -5
- package/lib/shallow/setInnerHTML.js +4 -6
- package/lib/shallow/setTextContent.js +3 -5
- package/lib/shallow/shouldUpdateReactComponent.js +3 -5
- package/lib/shallow/traverseAllChildren.js +4 -6
- package/lib/shallow/validateDOMNesting.js +4 -12
- package/lib/shouldUpdateReactComponent.js +3 -5
- package/lib/traverseAllChildren.js +4 -6
- package/package.json +21 -17
- package/PATENTS +0 -33
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
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
|
*/
|
|
@@ -79,7 +77,9 @@ ReactTestInstance.prototype.getInstance = function () {
|
|
|
79
77
|
};
|
|
80
78
|
ReactTestInstance.prototype.update = function (nextElement) {
|
|
81
79
|
!this._component ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactTestRenderer: .update() can\'t be called after unmount.') : _prodInvariant('139') : void 0;
|
|
82
|
-
var nextWrappedElement = React.createElement(TopLevelWrapper, {
|
|
80
|
+
var nextWrappedElement = React.createElement(TopLevelWrapper, {
|
|
81
|
+
child: nextElement
|
|
82
|
+
});
|
|
83
83
|
var component = this._component;
|
|
84
84
|
ReactUpdates.batchedUpdates(function () {
|
|
85
85
|
var transaction = ReactUpdates.ReactReconcileTransaction.getPooled(true);
|
|
@@ -113,9 +113,10 @@ ReactTestInstance.prototype.toJSON = function () {
|
|
|
113
113
|
* code between the two. For now, we'll hard code the ID logic.
|
|
114
114
|
*/
|
|
115
115
|
var ReactTestMount = {
|
|
116
|
-
|
|
117
116
|
render: function (nextElement, options) {
|
|
118
|
-
var nextWrappedElement = React.createElement(TopLevelWrapper, {
|
|
117
|
+
var nextWrappedElement = React.createElement(TopLevelWrapper, {
|
|
118
|
+
child: nextElement
|
|
119
|
+
});
|
|
119
120
|
|
|
120
121
|
var instance = instantiateReactComponent(nextWrappedElement, false);
|
|
121
122
|
|
|
@@ -125,7 +126,6 @@ var ReactTestMount = {
|
|
|
125
126
|
ReactUpdates.batchedUpdates(batchedMountComponentIntoNode, instance, _assign({}, defaultTestOptions, options));
|
|
126
127
|
return new ReactTestInstance(instance);
|
|
127
128
|
}
|
|
128
|
-
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
module.exports = ReactTestMount;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
-
* All rights reserved.
|
|
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
|
*/
|
|
@@ -134,6 +132,7 @@ var ReactTestRenderer = {
|
|
|
134
132
|
create: ReactTestMount.render,
|
|
135
133
|
/* eslint-disable camelcase */
|
|
136
134
|
unstable_batchedUpdates: ReactUpdates.batchedUpdates
|
|
135
|
+
/* eslint-enable camelcase */
|
|
137
136
|
};
|
|
138
137
|
|
|
139
138
|
module.exports = ReactTestRenderer;
|
|
@@ -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 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 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
|
|
|
@@ -51,7 +49,7 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
|
|
51
49
|
}
|
|
52
50
|
|
|
53
51
|
if (process.env.NODE_ENV !== 'production') {
|
|
54
|
-
process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' +
|
|
52
|
+
process.env.NODE_ENV !== 'production' ? warning(ReactCurrentOwner.current == null, '%s(...): Cannot update during an existing state transition (such as ' + "within `render` or another component's constructor). Render methods " + 'should be a pure function of props and state; constructor ' + 'side-effects are an anti-pattern, but can be moved to ' + '`componentWillMount`.', callerName) : void 0;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
return internalInstance;
|
|
@@ -62,7 +60,6 @@ function getInternalInstanceReadyForUpdate(publicInstance, callerName) {
|
|
|
62
60
|
* reconciliation step.
|
|
63
61
|
*/
|
|
64
62
|
var ReactUpdateQueue = {
|
|
65
|
-
|
|
66
63
|
/**
|
|
67
64
|
* Checks whether or not this composite component is mounted.
|
|
68
65
|
* @param {ReactClass} publicInstance The instance we want to test.
|
|
@@ -229,7 +226,6 @@ var ReactUpdateQueue = {
|
|
|
229
226
|
validateCallback: function (callback, callerName) {
|
|
230
227
|
!(!callback || typeof callback === 'function') ? process.env.NODE_ENV !== 'production' ? invariant(false, '%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.', callerName, formatUnexpectedArgument(callback)) : _prodInvariant('122', callerName, formatUnexpectedArgument(callback)) : void 0;
|
|
231
228
|
}
|
|
232
|
-
|
|
233
229
|
};
|
|
234
230
|
|
|
235
231
|
module.exports = ReactUpdateQueue;
|
|
@@ -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
|
|
|
@@ -212,7 +210,7 @@ function enqueueUpdate(component) {
|
|
|
212
210
|
* if no updates are currently being performed.
|
|
213
211
|
*/
|
|
214
212
|
function asap(callback, context) {
|
|
215
|
-
|
|
213
|
+
invariant(batchingStrategy.isBatchingUpdates, "ReactUpdates.asap: Can't enqueue an asap callback in a context where" + 'updates are not being batched.');
|
|
216
214
|
asapCallbackQueue.enqueue(callback, context);
|
|
217
215
|
asapEnqueued = true;
|
|
218
216
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
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
|
|
|
11
9
|
'use strict';
|
|
12
10
|
|
|
13
|
-
module.exports = '15.
|
|
11
|
+
module.exports = '15.6.2';
|
|
@@ -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
|
|
|
@@ -340,7 +338,6 @@ function setResponderAndExtractTransfer(topLevelType, targetInst, nativeEvent, n
|
|
|
340
338
|
EventPropagators.accumulateDirectDispatches(grantEvent);
|
|
341
339
|
var blockHostResponder = executeDirectDispatch(grantEvent) === true;
|
|
342
340
|
if (responderInst) {
|
|
343
|
-
|
|
344
341
|
var terminationRequestEvent = ResponderSyntheticEvent.getPooled(eventTypes.responderTerminationRequest, responderInst, nativeEvent, nativeEventTarget);
|
|
345
342
|
terminationRequestEvent.touchHistory = ResponderTouchHistoryStore.touchHistory;
|
|
346
343
|
EventPropagators.accumulateDirectDispatches(terminationRequestEvent);
|
|
@@ -411,7 +408,6 @@ function noResponderTouches(nativeEvent) {
|
|
|
411
408
|
}
|
|
412
409
|
|
|
413
410
|
var ResponderEventPlugin = {
|
|
414
|
-
|
|
415
411
|
/* For unit testing only */
|
|
416
412
|
_getResponderID: function () {
|
|
417
413
|
return responderInst ? responderInst._rootNodeID : null;
|
|
@@ -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
|
|
|
@@ -123,7 +121,6 @@ function constructSelectEvent(nativeEvent, nativeEventTarget) {
|
|
|
123
121
|
* - Fires after user input.
|
|
124
122
|
*/
|
|
125
123
|
var SelectEventPlugin = {
|
|
126
|
-
|
|
127
124
|
eventTypes: eventTypes,
|
|
128
125
|
|
|
129
126
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
|
@@ -147,7 +144,6 @@ var SelectEventPlugin = {
|
|
|
147
144
|
activeElementInst = null;
|
|
148
145
|
lastSelection = null;
|
|
149
146
|
break;
|
|
150
|
-
|
|
151
147
|
// Don't fire the event while the user is dragging. This matches the
|
|
152
148
|
// semantics of the native select event.
|
|
153
149
|
case 'topMouseDown':
|
|
@@ -157,7 +153,6 @@ var SelectEventPlugin = {
|
|
|
157
153
|
case 'topMouseUp':
|
|
158
154
|
mouseDown = false;
|
|
159
155
|
return constructSelectEvent(nativeEvent, nativeEventTarget);
|
|
160
|
-
|
|
161
156
|
// Chrome and IE fire non-standard event when selection is changed (and
|
|
162
157
|
// sometimes when it hasn't). IE's event fires out of order with respect
|
|
163
158
|
// to key and input events on deletion, so we discard it.
|
|
@@ -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
|
*/
|
|
@@ -81,7 +79,6 @@ function isInteractive(tag) {
|
|
|
81
79
|
}
|
|
82
80
|
|
|
83
81
|
var SimpleEventPlugin = {
|
|
84
|
-
|
|
85
82
|
eventTypes: eventTypes,
|
|
86
83
|
|
|
87
84
|
extractEvents: function (topLevelType, targetInst, nativeEvent, nativeEventTarget) {
|
|
@@ -221,7 +218,6 @@ var SimpleEventPlugin = {
|
|
|
221
218
|
delete onClickListeners[key];
|
|
222
219
|
}
|
|
223
220
|
}
|
|
224
|
-
|
|
225
221
|
};
|
|
226
222
|
|
|
227
223
|
module.exports = SimpleEventPlugin;
|
|
@@ -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
|
|
|
@@ -102,7 +100,6 @@ function SyntheticEvent(dispatchConfig, targetInst, nativeEvent, nativeEventTarg
|
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
_assign(SyntheticEvent.prototype, {
|
|
105
|
-
|
|
106
103
|
preventDefault: function () {
|
|
107
104
|
this.defaultPrevented = true;
|
|
108
105
|
var event = this.nativeEvent;
|
|
@@ -112,8 +109,8 @@ _assign(SyntheticEvent.prototype, {
|
|
|
112
109
|
|
|
113
110
|
if (event.preventDefault) {
|
|
114
111
|
event.preventDefault();
|
|
112
|
+
// eslint-disable-next-line valid-typeof
|
|
115
113
|
} else if (typeof event.returnValue !== 'unknown') {
|
|
116
|
-
// eslint-disable-line valid-typeof
|
|
117
114
|
event.returnValue = false;
|
|
118
115
|
}
|
|
119
116
|
this.isDefaultPrevented = emptyFunction.thatReturnsTrue;
|
|
@@ -127,8 +124,8 @@ _assign(SyntheticEvent.prototype, {
|
|
|
127
124
|
|
|
128
125
|
if (event.stopPropagation) {
|
|
129
126
|
event.stopPropagation();
|
|
127
|
+
// eslint-disable-next-line valid-typeof
|
|
130
128
|
} else if (typeof event.cancelBubble !== 'unknown') {
|
|
131
|
-
// eslint-disable-line valid-typeof
|
|
132
129
|
// The ChangeEventPlugin registers a "propertychange" event for
|
|
133
130
|
// IE. This event does not support bubbling or cancelling, and
|
|
134
131
|
// any references to cancelBubble throw "Member not found". A
|
|
@@ -177,34 +174,10 @@ _assign(SyntheticEvent.prototype, {
|
|
|
177
174
|
Object.defineProperty(this, 'stopPropagation', getPooledWarningPropertyDefinition('stopPropagation', emptyFunction));
|
|
178
175
|
}
|
|
179
176
|
}
|
|
180
|
-
|
|
181
177
|
});
|
|
182
178
|
|
|
183
179
|
SyntheticEvent.Interface = EventInterface;
|
|
184
180
|
|
|
185
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
186
|
-
if (isProxySupported) {
|
|
187
|
-
/*eslint-disable no-func-assign */
|
|
188
|
-
SyntheticEvent = new Proxy(SyntheticEvent, {
|
|
189
|
-
construct: function (target, args) {
|
|
190
|
-
return this.apply(target, Object.create(target.prototype), args);
|
|
191
|
-
},
|
|
192
|
-
apply: function (constructor, that, args) {
|
|
193
|
-
return new Proxy(constructor.apply(that, args), {
|
|
194
|
-
set: function (target, prop, value) {
|
|
195
|
-
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
196
|
-
process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), 'This synthetic event is reused for performance reasons. If you\'re ' + 'seeing this, you\'re adding a new property in the synthetic event object. ' + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
197
|
-
didWarnForAddedNewProperty = true;
|
|
198
|
-
}
|
|
199
|
-
target[prop] = value;
|
|
200
|
-
return true;
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
});
|
|
205
|
-
/*eslint-enable no-func-assign */
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
181
|
/**
|
|
209
182
|
* Helper to reduce boilerplate when creating subclasses.
|
|
210
183
|
*
|
|
@@ -228,6 +201,34 @@ SyntheticEvent.augmentClass = function (Class, Interface) {
|
|
|
228
201
|
PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
|
|
229
202
|
};
|
|
230
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
|
+
*/
|
|
208
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
209
|
+
if (isProxySupported) {
|
|
210
|
+
/*eslint-disable no-func-assign */
|
|
211
|
+
SyntheticEvent = new Proxy(SyntheticEvent, {
|
|
212
|
+
construct: function (target, args) {
|
|
213
|
+
return this.apply(target, Object.create(target.prototype), args);
|
|
214
|
+
},
|
|
215
|
+
apply: function (constructor, that, args) {
|
|
216
|
+
return new Proxy(constructor.apply(that, args), {
|
|
217
|
+
set: function (target, prop, value) {
|
|
218
|
+
if (prop !== 'isPersistent' && !target.constructor.Interface.hasOwnProperty(prop) && shouldBeReleasedProperties.indexOf(prop) === -1) {
|
|
219
|
+
process.env.NODE_ENV !== 'production' ? warning(didWarnForAddedNewProperty || target.isPersistent(), "This synthetic event is reused for performance reasons. If you're " + "seeing this, you're adding a new property in the synthetic event object. " + 'The property is never released. See ' + 'https://fb.me/react-event-pooling for more information.') : void 0;
|
|
220
|
+
didWarnForAddedNewProperty = true;
|
|
221
|
+
}
|
|
222
|
+
target[prop] = value;
|
|
223
|
+
return true;
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
/*eslint-enable no-func-assign */
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
231
232
|
PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
|
|
232
233
|
|
|
233
234
|
module.exports = SyntheticEvent;
|
|
@@ -262,6 +263,6 @@ function getPooledWarningPropertyDefinition(propName, getVal) {
|
|
|
262
263
|
|
|
263
264
|
function warn(action, result) {
|
|
264
265
|
var warningCondition = false;
|
|
265
|
-
process.env.NODE_ENV !== 'production' ? warning(warningCondition,
|
|
266
|
+
process.env.NODE_ENV !== 'production' ? warning(warningCondition, "This synthetic event is reused for performance reasons. If you're seeing this, " + "you're %s `%s` on a released/nullified synthetic event. %s. " + 'If you must keep the original synthetic event around, use event.persist(). ' + 'See https://fb.me/react-event-pooling for more information.', action, propName, result) : void 0;
|
|
266
267
|
}
|
|
267
268
|
}
|
|
@@ -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
|
|
|
@@ -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
|
|