react-dom 15.6.0-rc.1 → 15.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/LICENSE +16 -26
  2. package/dist/react-dom-server.js +512 -702
  3. package/dist/react-dom-server.min.js +8 -10
  4. package/dist/react-dom.js +546 -757
  5. package/dist/react-dom.min.js +9 -11
  6. package/lib/ARIADOMPropertyConfig.js +3 -5
  7. package/lib/AutoFocusUtils.js +3 -5
  8. package/lib/BeforeInputEventPlugin.js +3 -5
  9. package/lib/CSSProperty.js +4 -5
  10. package/lib/CSSPropertyOperations.js +14 -14
  11. package/lib/CallbackQueue.js +3 -5
  12. package/lib/ChangeEventPlugin.js +4 -6
  13. package/lib/DOMChildrenOperations.js +3 -5
  14. package/lib/DOMLazyTree.js +3 -5
  15. package/lib/DOMNamespaces.js +3 -5
  16. package/lib/DOMProperty.js +3 -5
  17. package/lib/DOMPropertyOperations.js +3 -5
  18. package/lib/Danger.js +3 -5
  19. package/lib/DefaultEventPluginOrder.js +3 -5
  20. package/lib/EnterLeaveEventPlugin.js +3 -5
  21. package/lib/EventConstants.js +3 -5
  22. package/lib/EventPluginHub.js +3 -5
  23. package/lib/EventPluginRegistry.js +3 -5
  24. package/lib/EventPluginUtils.js +3 -5
  25. package/lib/EventPropagators.js +3 -5
  26. package/lib/FallbackCompositionState.js +3 -5
  27. package/lib/HTMLDOMPropertyConfig.js +4 -5
  28. package/lib/KeyEscapeUtils.js +3 -5
  29. package/lib/LinkedValueUtils.js +3 -5
  30. package/lib/PluginModuleType.js +3 -5
  31. package/lib/PooledClass.js +3 -5
  32. package/lib/ReactBrowserEventEmitter.js +3 -5
  33. package/lib/ReactChildFiber.js +3 -5
  34. package/lib/ReactChildReconciler.js +3 -5
  35. package/lib/ReactComponentBrowserEnvironment.js +3 -5
  36. package/lib/ReactComponentEnvironment.js +3 -5
  37. package/lib/ReactComponentTreeTestUtils.js +3 -5
  38. package/lib/ReactCompositeComponent.js +4 -6
  39. package/lib/ReactCoroutine.js +3 -5
  40. package/lib/ReactDOM.js +4 -5
  41. package/lib/ReactDOMComponent.js +8 -5
  42. package/lib/ReactDOMComponentFlags.js +3 -5
  43. package/lib/ReactDOMComponentTree.js +3 -5
  44. package/lib/ReactDOMContainerInfo.js +3 -5
  45. package/lib/ReactDOMEmptyComponent.js +3 -5
  46. package/lib/ReactDOMFeatureFlags.js +3 -5
  47. package/lib/ReactDOMFiber.js +3 -5
  48. package/lib/ReactDOMIDOperations.js +3 -5
  49. package/lib/ReactDOMInput.js +7 -6
  50. package/lib/ReactDOMInvalidARIAHook.js +3 -5
  51. package/lib/ReactDOMNullInputValuePropHook.js +3 -5
  52. package/lib/ReactDOMOption.js +3 -5
  53. package/lib/ReactDOMSelect.js +3 -5
  54. package/lib/ReactDOMSelection.js +3 -5
  55. package/lib/ReactDOMServer.js +3 -5
  56. package/lib/ReactDOMServerUMDEntry.js +3 -5
  57. package/lib/ReactDOMTextComponent.js +3 -5
  58. package/lib/ReactDOMTextarea.js +3 -5
  59. package/lib/ReactDOMTreeTraversal.js +3 -5
  60. package/lib/ReactDOMUMDEntry.js +3 -5
  61. package/lib/ReactDOMUnknownPropertyHook.js +3 -5
  62. package/lib/ReactDebugTool.js +3 -5
  63. package/lib/ReactDefaultBatchingStrategy.js +3 -5
  64. package/lib/ReactDefaultInjection.js +3 -5
  65. package/lib/ReactElementSymbol.js +3 -5
  66. package/lib/ReactEmptyComponent.js +3 -5
  67. package/lib/ReactErrorUtils.js +6 -6
  68. package/lib/ReactEventEmitterMixin.js +3 -5
  69. package/lib/ReactEventListener.js +3 -5
  70. package/lib/ReactFeatureFlags.js +3 -5
  71. package/lib/ReactFiber.js +3 -5
  72. package/lib/ReactFiberBeginWork.js +3 -5
  73. package/lib/ReactFiberCommitWork.js +3 -5
  74. package/lib/ReactFiberCompleteWork.js +3 -5
  75. package/lib/ReactFiberReconciler.js +3 -5
  76. package/lib/ReactFiberRoot.js +3 -5
  77. package/lib/ReactFiberScheduler.js +3 -5
  78. package/lib/ReactFiberUpdateQueue.js +3 -5
  79. package/lib/ReactHostComponent.js +3 -5
  80. package/lib/ReactHostOperationHistoryHook.js +3 -5
  81. package/lib/ReactInjection.js +3 -5
  82. package/lib/ReactInputSelection.js +3 -5
  83. package/lib/ReactInstanceMap.js +3 -5
  84. package/lib/ReactInstanceType.js +3 -5
  85. package/lib/ReactInstrumentation.js +3 -5
  86. package/lib/ReactInvalidSetStateWarningHook.js +3 -5
  87. package/lib/ReactMarkupChecksum.js +3 -5
  88. package/lib/ReactMount.js +3 -5
  89. package/lib/ReactMultiChild.js +3 -5
  90. package/lib/ReactMultiChildUpdateTypes.js +3 -5
  91. package/lib/ReactNodeTypes.js +3 -5
  92. package/lib/ReactOwner.js +3 -5
  93. package/lib/ReactPerf.js +3 -5
  94. package/lib/ReactPriorityLevel.js +5 -6
  95. package/lib/ReactPropTypeLocationNames.js +3 -5
  96. package/lib/ReactPropTypeLocations.js +3 -5
  97. package/lib/ReactPropTypesSecret.js +3 -5
  98. package/lib/ReactReconcileTransaction.js +3 -5
  99. package/lib/ReactReconciler.js +3 -5
  100. package/lib/ReactRef.js +3 -5
  101. package/lib/ReactReifiedYield.js +3 -5
  102. package/lib/ReactServerBatchingStrategy.js +3 -5
  103. package/lib/ReactServerRendering.js +3 -5
  104. package/lib/ReactServerRenderingTransaction.js +3 -5
  105. package/lib/ReactServerUpdateQueue.js +3 -5
  106. package/lib/ReactShallowRenderer.js +3 -5
  107. package/lib/ReactSimpleEmptyComponent.js +3 -5
  108. package/lib/ReactSyntheticEventType.js +3 -5
  109. package/lib/ReactTestReconcileTransaction.js +2 -4
  110. package/lib/ReactTestUtils.js +3 -5
  111. package/lib/ReactTypeOfWork.js +3 -5
  112. package/lib/ReactTypes.js +3 -5
  113. package/lib/ReactUpdateQueue.js +3 -5
  114. package/lib/ReactUpdates.js +4 -6
  115. package/lib/ReactVersion.js +4 -6
  116. package/lib/ResponderEventPlugin.js +3 -5
  117. package/lib/ResponderSyntheticEvent.js +3 -5
  118. package/lib/ResponderTouchHistoryStore.js +3 -5
  119. package/lib/SVGDOMPropertyConfig.js +3 -5
  120. package/lib/SelectEventPlugin.js +3 -5
  121. package/lib/SimpleEventPlugin.js +3 -5
  122. package/lib/SyntheticAnimationEvent.js +3 -5
  123. package/lib/SyntheticClipboardEvent.js +3 -5
  124. package/lib/SyntheticCompositionEvent.js +3 -5
  125. package/lib/SyntheticDragEvent.js +3 -5
  126. package/lib/SyntheticEvent.js +30 -27
  127. package/lib/SyntheticFocusEvent.js +3 -5
  128. package/lib/SyntheticInputEvent.js +3 -5
  129. package/lib/SyntheticKeyboardEvent.js +3 -5
  130. package/lib/SyntheticMouseEvent.js +3 -5
  131. package/lib/SyntheticTouchEvent.js +3 -5
  132. package/lib/SyntheticTransitionEvent.js +3 -5
  133. package/lib/SyntheticUIEvent.js +3 -5
  134. package/lib/SyntheticWheelEvent.js +3 -5
  135. package/lib/TapEventPlugin.js +3 -5
  136. package/lib/TouchHistoryMath.js +12 -6
  137. package/lib/Transaction.js +3 -5
  138. package/lib/ViewportMetrics.js +3 -5
  139. package/lib/accumulate.js +3 -5
  140. package/lib/accumulateInto.js +3 -5
  141. package/lib/adler32.js +3 -5
  142. package/lib/canDefineProperty.js +3 -5
  143. package/lib/checkReactTypeSpec.js +3 -5
  144. package/lib/createMicrosoftUnsafeLocalFunction.js +3 -5
  145. package/lib/dangerousStyleValue.js +5 -7
  146. package/lib/deprecated.js +3 -5
  147. package/lib/escapeTextContentForBrowser.js +3 -5
  148. package/lib/findDOMNode.js +3 -5
  149. package/lib/flattenChildren.js +3 -5
  150. package/lib/forEachAccumulated.js +3 -5
  151. package/lib/getEventCharCode.js +3 -5
  152. package/lib/getEventKey.js +3 -5
  153. package/lib/getEventModifierState.js +3 -5
  154. package/lib/getEventTarget.js +3 -5
  155. package/lib/getHostComponentFromComposite.js +3 -5
  156. package/lib/getIteratorFn.js +3 -5
  157. package/lib/getNodeForCharacterOffset.js +3 -5
  158. package/lib/getTestDocument.js +3 -5
  159. package/lib/getTextContentAccessor.js +3 -5
  160. package/lib/getVendorPrefixedEventName.js +3 -5
  161. package/lib/inputValueTracking.js +9 -10
  162. package/lib/instantiateReactComponent.js +3 -5
  163. package/lib/isEventSupported.js +3 -5
  164. package/lib/isTextInputElement.js +3 -5
  165. package/lib/lowPriorityWarning.js +3 -5
  166. package/lib/quoteAttributeValueForBrowser.js +3 -5
  167. package/lib/reactComponentExpect.js +3 -5
  168. package/lib/reactProdInvariant.js +2 -4
  169. package/lib/renderSubtreeIntoContainer.js +3 -5
  170. package/lib/setInnerHTML.js +3 -5
  171. package/lib/setTextContent.js +3 -5
  172. package/lib/shouldUpdateReactComponent.js +3 -5
  173. package/lib/traverseAllChildren.js +3 -5
  174. package/lib/validateDOMNesting.js +3 -5
  175. package/package.json +27 -20
  176. package/PATENTS +0 -33
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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
 
@@ -180,6 +178,33 @@ _assign(SyntheticEvent.prototype, {
180
178
 
181
179
  SyntheticEvent.Interface = EventInterface;
182
180
 
181
+ /**
182
+ * Helper to reduce boilerplate when creating subclasses.
183
+ *
184
+ * @param {function} Class
185
+ * @param {?object} Interface
186
+ */
187
+ SyntheticEvent.augmentClass = function (Class, Interface) {
188
+ var Super = this;
189
+
190
+ var E = function () {};
191
+ E.prototype = Super.prototype;
192
+ var prototype = new E();
193
+
194
+ _assign(prototype, Class.prototype);
195
+ Class.prototype = prototype;
196
+ Class.prototype.constructor = Class;
197
+
198
+ Class.Interface = _assign({}, Super.Interface, Interface);
199
+ Class.augmentClass = Super.augmentClass;
200
+
201
+ PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
202
+ };
203
+
204
+ /** Proxying after everything set on SyntheticEvent
205
+ * to resolve Proxy issue on some WebKit browsers
206
+ * in which some Event properties are set to undefined (GH#10010)
207
+ */
183
208
  if (process.env.NODE_ENV !== 'production') {
184
209
  if (isProxySupported) {
185
210
  /*eslint-disable no-func-assign */
@@ -203,28 +228,6 @@ if (process.env.NODE_ENV !== 'production') {
203
228
  /*eslint-enable no-func-assign */
204
229
  }
205
230
  }
206
- /**
207
- * Helper to reduce boilerplate when creating subclasses.
208
- *
209
- * @param {function} Class
210
- * @param {?object} Interface
211
- */
212
- SyntheticEvent.augmentClass = function (Class, Interface) {
213
- var Super = this;
214
-
215
- var E = function () {};
216
- E.prototype = Super.prototype;
217
- var prototype = new E();
218
-
219
- _assign(prototype, Class.prototype);
220
- Class.prototype = prototype;
221
- Class.prototype.constructor = Class;
222
-
223
- Class.Interface = _assign({}, Super.Interface, Interface);
224
- Class.augmentClass = Super.augmentClass;
225
-
226
- PooledClass.addPoolingTo(Class, PooledClass.fourArgumentPooler);
227
- };
228
231
 
229
232
  PooledClass.addPoolingTo(SyntheticEvent, PooledClass.fourArgumentPooler);
230
233
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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
 
@@ -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
  */
@@ -56,34 +56,40 @@ var TouchHistoryMath = {
56
56
 
57
57
  currentCentroidXOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
58
58
  return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, // isXAxis
59
- true);
59
+ true // ofCurrent
60
+ );
60
61
  },
61
62
 
62
63
  currentCentroidYOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
63
64
  return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, // isXAxis
64
- true);
65
+ true // ofCurrent
66
+ );
65
67
  },
66
68
 
67
69
  previousCentroidXOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
68
70
  return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, true, // isXAxis
69
- false);
71
+ false // ofCurrent
72
+ );
70
73
  },
71
74
 
72
75
  previousCentroidYOfTouchesChangedAfter: function (touchHistory, touchesChangedAfter) {
73
76
  return TouchHistoryMath.centroidDimension(touchHistory, touchesChangedAfter, false, // isXAxis
74
- false);
77
+ false // ofCurrent
78
+ );
75
79
  },
76
80
 
77
81
  currentCentroidX: function (touchHistory) {
78
82
  return TouchHistoryMath.centroidDimension(touchHistory, 0, // touchesChangedAfter
79
83
  true, // isXAxis
80
- true);
84
+ true // ofCurrent
85
+ );
81
86
  },
82
87
 
83
88
  currentCentroidY: function (touchHistory) {
84
89
  return TouchHistoryMath.centroidDimension(touchHistory, 0, // touchesChangedAfter
85
90
  false, // isXAxis
86
- true);
91
+ true // ofCurrent
92
+ );
87
93
  },
88
94
 
89
95
  noCentroid: -1
@@ -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
 
package/lib/accumulate.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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
  */
package/lib/adler32.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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
 
@@ -26,7 +24,7 @@ var styleWarnings = {};
26
24
  * @param {ReactDOMComponent} component
27
25
  * @return {string} Normalized style value with dimensions applied.
28
26
  */
29
- function dangerousStyleValue(name, value, component) {
27
+ function dangerousStyleValue(name, value, component, isCustomProperty) {
30
28
  // Note that we've removed escapeTextForBrowser() calls here since the
31
29
  // whole string will be escaped when the attribute is injected into
32
30
  // the markup. If you provide unsafe user data here they can inject
@@ -43,7 +41,7 @@ function dangerousStyleValue(name, value, component) {
43
41
  }
44
42
 
45
43
  var isNonNumeric = isNaN(value);
46
- if (isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
44
+ if (isCustomProperty || isNonNumeric || value === 0 || isUnitlessNumber.hasOwnProperty(name) && isUnitlessNumber[name]) {
47
45
  return '' + value; // cast to string
48
46
  }
49
47
 
package/lib/deprecated.js CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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 2016-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2016-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the 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
  * Based on the escape-html library, which is used under the MIT License below:
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
 
@@ -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