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.
Files changed (250) hide show
  1. package/LICENSE +16 -26
  2. package/lib/CallbackQueue.js +3 -5
  3. package/lib/EventConstants.js +3 -5
  4. package/lib/EventPluginHub.js +3 -9
  5. package/lib/EventPluginRegistry.js +3 -7
  6. package/lib/EventPluginUtils.js +3 -5
  7. package/lib/EventPropagators.js +3 -5
  8. package/lib/KeyEscapeUtils.js +3 -5
  9. package/lib/PluginModuleType.js +3 -5
  10. package/lib/PooledClass.js +3 -5
  11. package/lib/ReactChildFiber.js +3 -6
  12. package/lib/ReactChildReconciler.js +7 -10
  13. package/lib/ReactComponentEnvironment.js +3 -7
  14. package/lib/ReactCompositeComponent.js +5 -9
  15. package/lib/ReactCoroutine.js +3 -5
  16. package/lib/ReactDebugTool.js +6 -6
  17. package/lib/ReactDefaultBatchingStrategy.js +3 -5
  18. package/lib/ReactElementSymbol.js +3 -5
  19. package/lib/ReactEmptyComponent.js +3 -5
  20. package/lib/ReactErrorUtils.js +6 -6
  21. package/lib/ReactEventEmitterMixin.js +3 -6
  22. package/lib/ReactFeatureFlags.js +3 -5
  23. package/lib/ReactFiber.js +3 -7
  24. package/lib/ReactFiberBeginWork.js +3 -6
  25. package/lib/ReactFiberCommitWork.js +3 -6
  26. package/lib/ReactFiberCompleteWork.js +3 -7
  27. package/lib/ReactFiberReconciler.js +3 -5
  28. package/lib/ReactFiberRoot.js +3 -5
  29. package/lib/ReactFiberScheduler.js +3 -5
  30. package/lib/ReactFiberUpdateQueue.js +3 -5
  31. package/lib/ReactHostComponent.js +3 -5
  32. package/lib/ReactHostOperationHistoryHook.js +3 -5
  33. package/lib/ReactInstanceMap.js +3 -7
  34. package/lib/ReactInstanceType.js +3 -5
  35. package/lib/ReactInstrumentation.js +3 -5
  36. package/lib/ReactInvalidSetStateWarningHook.js +3 -5
  37. package/lib/ReactMultiChild.js +3 -9
  38. package/lib/ReactMultiChildUpdateTypes.js +3 -5
  39. package/lib/ReactNodeTypes.js +3 -5
  40. package/lib/ReactOwner.js +3 -6
  41. package/lib/ReactPerf.js +9 -11
  42. package/lib/ReactPriorityLevel.js +5 -6
  43. package/lib/ReactPropTypeLocationNames.js +3 -5
  44. package/lib/ReactPropTypeLocations.js +3 -5
  45. package/lib/ReactPropTypesSecret.js +3 -5
  46. package/lib/ReactReconciler.js +5 -9
  47. package/lib/ReactRef.js +3 -5
  48. package/lib/ReactReifiedYield.js +3 -5
  49. package/lib/ReactShallowRenderer.js +3 -5
  50. package/lib/ReactSimpleEmptyComponent.js +5 -7
  51. package/lib/ReactSyntheticEventType.js +3 -5
  52. package/lib/ReactTestEmptyComponent.js +3 -5
  53. package/lib/ReactTestMount.js +8 -8
  54. package/lib/ReactTestReconcileTransaction.js +2 -4
  55. package/lib/ReactTestRenderer.js +4 -5
  56. package/lib/ReactTestTextComponent.js +3 -5
  57. package/lib/ReactTypeOfWork.js +3 -5
  58. package/lib/ReactTypes.js +3 -5
  59. package/lib/ReactUpdateQueue.js +4 -8
  60. package/lib/ReactUpdates.js +4 -6
  61. package/lib/ReactVersion.js +4 -6
  62. package/lib/ResponderEventPlugin.js +3 -7
  63. package/lib/ResponderSyntheticEvent.js +3 -5
  64. package/lib/ResponderTouchHistoryStore.js +3 -5
  65. package/lib/SyntheticEvent.js +34 -33
  66. package/lib/Transaction.js +6 -5
  67. package/lib/accumulate.js +3 -5
  68. package/lib/accumulateInto.js +3 -5
  69. package/lib/adler32.js +3 -5
  70. package/lib/canDefineProperty.js +3 -5
  71. package/lib/checkReactTypeSpec.js +3 -5
  72. package/lib/deprecated.js +6 -8
  73. package/lib/flattenChildren.js +3 -5
  74. package/lib/forEachAccumulated.js +3 -5
  75. package/lib/getHostComponentFromComposite.js +3 -5
  76. package/lib/getIteratorFn.js +3 -5
  77. package/lib/instantiateReactComponent.js +4 -6
  78. package/lib/isTextInputElement.js +17 -19
  79. package/lib/lowPriorityWarning.js +62 -0
  80. package/lib/reactProdInvariant.js +2 -4
  81. package/lib/shallow/ARIADOMPropertyConfig.js +3 -5
  82. package/lib/shallow/AutoFocusUtils.js +3 -5
  83. package/lib/shallow/BeforeInputEventPlugin.js +3 -6
  84. package/lib/shallow/CSSProperty.js +10 -5
  85. package/lib/shallow/CSSPropertyOperations.js +17 -13
  86. package/lib/shallow/CallbackQueue.js +3 -5
  87. package/lib/shallow/ChangeEventPlugin.js +52 -88
  88. package/lib/shallow/DOMChildrenOperations.js +7 -8
  89. package/lib/shallow/DOMLazyTree.js +3 -5
  90. package/lib/shallow/DOMNamespaces.js +3 -5
  91. package/lib/shallow/DOMProperty.js +3 -6
  92. package/lib/shallow/DOMPropertyOperations.js +3 -7
  93. package/lib/shallow/Danger.js +3 -7
  94. package/lib/shallow/DefaultEventPluginOrder.js +3 -5
  95. package/lib/shallow/EnterLeaveEventPlugin.js +3 -7
  96. package/lib/shallow/EventConstants.js +3 -5
  97. package/lib/shallow/EventPluginHub.js +3 -9
  98. package/lib/shallow/EventPluginRegistry.js +3 -7
  99. package/lib/shallow/EventPluginUtils.js +3 -5
  100. package/lib/shallow/EventPropagators.js +3 -5
  101. package/lib/shallow/FallbackCompositionState.js +3 -5
  102. package/lib/shallow/HTMLDOMPropertyConfig.js +4 -5
  103. package/lib/shallow/KeyEscapeUtils.js +3 -5
  104. package/lib/shallow/LinkedValueUtils.js +10 -12
  105. package/lib/shallow/PluginModuleType.js +3 -5
  106. package/lib/shallow/PooledClass.js +3 -5
  107. package/lib/shallow/ReactBrowserEventEmitter.js +3 -9
  108. package/lib/shallow/ReactChildFiber.js +3 -6
  109. package/lib/shallow/ReactChildReconciler.js +7 -10
  110. package/lib/shallow/ReactComponentBrowserEnvironment.js +3 -7
  111. package/lib/shallow/ReactComponentEnvironment.js +3 -7
  112. package/lib/shallow/ReactCompositeComponent.js +5 -9
  113. package/lib/shallow/ReactCoroutine.js +3 -5
  114. package/lib/shallow/ReactDOM.js +5 -7
  115. package/lib/shallow/ReactDOMComponent.js +40 -29
  116. package/lib/shallow/ReactDOMComponentFlags.js +3 -5
  117. package/lib/shallow/ReactDOMComponentTree.js +3 -5
  118. package/lib/shallow/ReactDOMContainerInfo.js +3 -5
  119. package/lib/shallow/ReactDOMEmptyComponent.js +3 -5
  120. package/lib/shallow/ReactDOMFeatureFlags.js +3 -5
  121. package/lib/shallow/ReactDOMFiber.js +3 -6
  122. package/lib/shallow/ReactDOMIDOperations.js +3 -6
  123. package/lib/shallow/ReactDOMInput.js +8 -8
  124. package/lib/shallow/ReactDOMInvalidARIAHook.js +3 -5
  125. package/lib/shallow/ReactDOMNullInputValuePropHook.js +3 -5
  126. package/lib/shallow/ReactDOMOption.js +3 -6
  127. package/lib/shallow/ReactDOMSelect.js +3 -5
  128. package/lib/shallow/ReactDOMSelection.js +3 -5
  129. package/lib/shallow/ReactDOMServer.js +3 -5
  130. package/lib/shallow/ReactDOMTextComponent.js +3 -7
  131. package/lib/shallow/ReactDOMTextarea.js +3 -5
  132. package/lib/shallow/ReactDOMTreeTraversal.js +3 -5
  133. package/lib/shallow/ReactDOMUnknownPropertyHook.js +3 -5
  134. package/lib/shallow/ReactDebugTool.js +6 -6
  135. package/lib/shallow/ReactDefaultBatchingStrategy.js +3 -5
  136. package/lib/shallow/ReactDefaultInjection.js +3 -5
  137. package/lib/shallow/ReactElementSymbol.js +3 -5
  138. package/lib/shallow/ReactEmptyComponent.js +3 -5
  139. package/lib/shallow/ReactErrorUtils.js +6 -6
  140. package/lib/shallow/ReactEventEmitterMixin.js +3 -6
  141. package/lib/shallow/ReactEventListener.js +3 -5
  142. package/lib/shallow/ReactFeatureFlags.js +3 -5
  143. package/lib/shallow/ReactFiber.js +3 -7
  144. package/lib/shallow/ReactFiberBeginWork.js +3 -6
  145. package/lib/shallow/ReactFiberCommitWork.js +3 -6
  146. package/lib/shallow/ReactFiberCompleteWork.js +3 -7
  147. package/lib/shallow/ReactFiberReconciler.js +3 -5
  148. package/lib/shallow/ReactFiberRoot.js +3 -5
  149. package/lib/shallow/ReactFiberScheduler.js +3 -5
  150. package/lib/shallow/ReactFiberUpdateQueue.js +3 -5
  151. package/lib/shallow/ReactHostComponent.js +3 -5
  152. package/lib/shallow/ReactHostOperationHistoryHook.js +3 -5
  153. package/lib/shallow/ReactInjection.js +3 -5
  154. package/lib/shallow/ReactInputSelection.js +3 -6
  155. package/lib/shallow/ReactInstanceMap.js +3 -7
  156. package/lib/shallow/ReactInstanceType.js +3 -5
  157. package/lib/shallow/ReactInstrumentation.js +3 -5
  158. package/lib/shallow/ReactInvalidSetStateWarningHook.js +3 -5
  159. package/lib/shallow/ReactMarkupChecksum.js +3 -5
  160. package/lib/shallow/ReactMount.js +10 -12
  161. package/lib/shallow/ReactMultiChild.js +3 -9
  162. package/lib/shallow/ReactMultiChildUpdateTypes.js +3 -5
  163. package/lib/shallow/ReactNodeTypes.js +3 -5
  164. package/lib/shallow/ReactOwner.js +3 -6
  165. package/lib/shallow/ReactPerf.js +9 -11
  166. package/lib/shallow/ReactPriorityLevel.js +5 -6
  167. package/lib/shallow/ReactPropTypeLocationNames.js +3 -5
  168. package/lib/shallow/ReactPropTypeLocations.js +3 -5
  169. package/lib/shallow/ReactPropTypesSecret.js +3 -5
  170. package/lib/shallow/ReactReconcileTransaction.js +3 -5
  171. package/lib/shallow/ReactReconciler.js +5 -9
  172. package/lib/shallow/ReactRef.js +3 -5
  173. package/lib/shallow/ReactReifiedYield.js +3 -5
  174. package/lib/shallow/ReactServerBatchingStrategy.js +3 -5
  175. package/lib/shallow/ReactServerRendering.js +3 -5
  176. package/lib/shallow/ReactServerRenderingTransaction.js +3 -5
  177. package/lib/shallow/ReactServerUpdateQueue.js +3 -5
  178. package/lib/shallow/ReactShallowRenderer.js +3 -5
  179. package/lib/shallow/ReactSimpleEmptyComponent.js +5 -7
  180. package/lib/shallow/ReactSyntheticEventType.js +3 -5
  181. package/lib/shallow/ReactTestEmptyComponent.js +3 -5
  182. package/lib/shallow/ReactTestMount.js +8 -8
  183. package/lib/shallow/ReactTestReconcileTransaction.js +2 -4
  184. package/lib/shallow/ReactTestRenderer.js +4 -5
  185. package/lib/shallow/ReactTestTextComponent.js +3 -5
  186. package/lib/shallow/ReactTypeOfWork.js +3 -5
  187. package/lib/shallow/ReactTypes.js +3 -5
  188. package/lib/shallow/ReactUpdateQueue.js +4 -8
  189. package/lib/shallow/ReactUpdates.js +4 -6
  190. package/lib/shallow/ReactVersion.js +4 -6
  191. package/lib/shallow/ResponderEventPlugin.js +3 -7
  192. package/lib/shallow/ResponderSyntheticEvent.js +3 -5
  193. package/lib/shallow/ResponderTouchHistoryStore.js +3 -5
  194. package/lib/shallow/SVGDOMPropertyConfig.js +3 -5
  195. package/lib/shallow/SelectEventPlugin.js +3 -8
  196. package/lib/shallow/SimpleEventPlugin.js +3 -7
  197. package/lib/shallow/SyntheticAnimationEvent.js +3 -5
  198. package/lib/shallow/SyntheticClipboardEvent.js +3 -5
  199. package/lib/shallow/SyntheticCompositionEvent.js +3 -5
  200. package/lib/shallow/SyntheticDragEvent.js +3 -5
  201. package/lib/shallow/SyntheticEvent.js +34 -33
  202. package/lib/shallow/SyntheticFocusEvent.js +3 -5
  203. package/lib/shallow/SyntheticInputEvent.js +3 -5
  204. package/lib/shallow/SyntheticKeyboardEvent.js +3 -5
  205. package/lib/shallow/SyntheticMouseEvent.js +3 -5
  206. package/lib/shallow/SyntheticTouchEvent.js +3 -5
  207. package/lib/shallow/SyntheticTransitionEvent.js +3 -5
  208. package/lib/shallow/SyntheticUIEvent.js +3 -5
  209. package/lib/shallow/SyntheticWheelEvent.js +6 -11
  210. package/lib/shallow/TapEventPlugin.js +3 -7
  211. package/lib/shallow/Transaction.js +6 -5
  212. package/lib/shallow/ViewportMetrics.js +3 -7
  213. package/lib/shallow/accumulate.js +3 -5
  214. package/lib/shallow/accumulateInto.js +3 -5
  215. package/lib/shallow/adler32.js +3 -5
  216. package/lib/shallow/canDefineProperty.js +3 -5
  217. package/lib/shallow/checkReactTypeSpec.js +3 -5
  218. package/lib/shallow/createMicrosoftUnsafeLocalFunction.js +3 -5
  219. package/lib/shallow/dangerousStyleValue.js +5 -7
  220. package/lib/shallow/deprecated.js +6 -8
  221. package/lib/shallow/escapeTextContentForBrowser.js +3 -6
  222. package/lib/shallow/findDOMNode.js +3 -5
  223. package/lib/shallow/flattenChildren.js +3 -5
  224. package/lib/shallow/forEachAccumulated.js +3 -5
  225. package/lib/shallow/getEventCharCode.js +3 -5
  226. package/lib/shallow/getEventKey.js +27 -19
  227. package/lib/shallow/getEventModifierState.js +7 -9
  228. package/lib/shallow/getEventTarget.js +3 -5
  229. package/lib/shallow/getHostComponentFromComposite.js +3 -5
  230. package/lib/shallow/getIteratorFn.js +3 -5
  231. package/lib/shallow/getNodeForCharacterOffset.js +3 -5
  232. package/lib/shallow/getTextContentAccessor.js +3 -5
  233. package/lib/shallow/getVendorPrefixedEventName.js +3 -5
  234. package/lib/shallow/inputValueTracking.js +120 -0
  235. package/lib/shallow/instantiateReactComponent.js +4 -6
  236. package/lib/shallow/isEventSupported.js +3 -5
  237. package/lib/shallow/isTextInputElement.js +17 -19
  238. package/lib/shallow/lowPriorityWarning.js +62 -0
  239. package/lib/shallow/quoteAttributeValueForBrowser.js +3 -5
  240. package/lib/shallow/reactProdInvariant.js +2 -4
  241. package/lib/shallow/renderSubtreeIntoContainer.js +3 -5
  242. package/lib/shallow/setInnerHTML.js +4 -6
  243. package/lib/shallow/setTextContent.js +3 -5
  244. package/lib/shallow/shouldUpdateReactComponent.js +3 -5
  245. package/lib/shallow/traverseAllChildren.js +4 -6
  246. package/lib/shallow/validateDOMNesting.js +4 -12
  247. package/lib/shouldUpdateReactComponent.js +3 -5
  248. package/lib/traverseAllChildren.js +4 -6
  249. package/package.json +21 -17
  250. 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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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, { child: nextElement });
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, { child: nextElement });
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 ' + '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;
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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
- !batchingStrategy.isBatchingUpdates ? process.env.NODE_ENV !== 'production' ? invariant(false, 'ReactUpdates.asap: Can\'t enqueue an asap callback in a context whereupdates are not being batched.') : _prodInvariant('125') : void 0;
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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.5.0';
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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, '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
+ 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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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 BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
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