react 16.5.0 → 16.5.1

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2013-present, Facebook, Inc.
3
+ Copyright (c) Facebook, Inc. and its affiliates.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -1,7 +1,7 @@
1
- /** @license React v16.5.0
1
+ /** @license React v16.5.1
2
2
  * react.development.js
3
3
  *
4
- * Copyright (c) 2013-present, Facebook, Inc.
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
20
20
 
21
21
  // TODO: this is special because it gets imported during build.
22
22
 
23
- var ReactVersion = '16.5.0';
23
+ var ReactVersion = '16.5.1';
24
24
 
25
25
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
26
26
  // nor polyfill, then a plain number is used for performance.
@@ -51,6 +51,48 @@ function getIteratorFn(maybeIterable) {
51
51
  return null;
52
52
  }
53
53
 
54
+ // Exports ReactDOM.createRoot
55
+
56
+
57
+ // Experimental error-boundary API that can recover from errors within a single
58
+ // render phase
59
+
60
+ // Suspense
61
+ var enableSuspense = false;
62
+ // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
63
+
64
+
65
+ // In some cases, StrictMode should also double-render lifecycles.
66
+ // This can be confusing for tests though,
67
+ // And it can be bad for performance in production.
68
+ // This feature flag can be used to control the behavior:
69
+
70
+
71
+ // To preserve the "Pause on caught exceptions" behavior of the debugger, we
72
+ // replay the begin phase of a failed component inside invokeGuardedCallback.
73
+
74
+
75
+ // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
76
+
77
+
78
+ // Warn about legacy context API
79
+
80
+
81
+ // Gather advanced timing metrics for Profiler subtrees.
82
+
83
+
84
+ // Track which interactions trigger each commit.
85
+
86
+
87
+ // Only used in www builds.
88
+
89
+
90
+ // Only used in www builds.
91
+
92
+
93
+ // React Fire: prevent the value and checked attributes from syncing
94
+ // with their related DOM properties
95
+
54
96
  /**
55
97
  * Use invariant() to assert state which your program assumes to be true.
56
98
  *
@@ -96,44 +138,6 @@ function invariant(condition, format, a, b, c, d, e, f) {
96
138
  // Relying on the `invariant()` implementation lets us
97
139
  // preserve the format and params in the www builds.
98
140
 
99
- // Exports ReactDOM.createRoot
100
-
101
-
102
- // Experimental error-boundary API that can recover from errors within a single
103
- // render phase
104
-
105
- // Suspense
106
- var enableSuspense = false;
107
- // Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
108
-
109
-
110
- // In some cases, StrictMode should also double-render lifecycles.
111
- // This can be confusing for tests though,
112
- // And it can be bad for performance in production.
113
- // This feature flag can be used to control the behavior:
114
-
115
-
116
- // To preserve the "Pause on caught exceptions" behavior of the debugger, we
117
- // replay the begin phase of a failed component inside invokeGuardedCallback.
118
-
119
-
120
- // Warn about deprecated, async-unsafe lifecycles; relates to RFC #6:
121
-
122
-
123
- // Warn about legacy context API
124
-
125
-
126
- // Gather advanced timing metrics for Profiler subtrees.
127
-
128
-
129
- // Track which interactions trigger each commit.
130
-
131
-
132
- // Only used in www builds.
133
-
134
-
135
- // Only used in www builds.
136
-
137
141
  /**
138
142
  * Forked from fbjs/warning:
139
143
  * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
@@ -205,26 +209,71 @@ var warningWithoutStack = function () {};
205
209
  if (format === undefined) {
206
210
  throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
207
211
  }
212
+ if (args.length > 8) {
213
+ // Check before the condition to catch violations early.
214
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
215
+ }
208
216
  if (condition) {
209
217
  return;
210
218
  }
211
219
  if (typeof console !== 'undefined') {
212
- var _console;
213
-
214
- var stringArgs = args.map(function (item) {
220
+ var _args$map = args.map(function (item) {
215
221
  return '' + item;
216
- });
217
- (_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs));
222
+ }),
223
+ a = _args$map[0],
224
+ b = _args$map[1],
225
+ c = _args$map[2],
226
+ d = _args$map[3],
227
+ e = _args$map[4],
228
+ f = _args$map[5],
229
+ g = _args$map[6],
230
+ h = _args$map[7];
231
+
232
+ var message = 'Warning: ' + format;
233
+
234
+ // We intentionally don't use spread (or .apply) because it breaks IE9:
235
+ // https://github.com/facebook/react/issues/13610
236
+ switch (args.length) {
237
+ case 0:
238
+ console.error(message);
239
+ break;
240
+ case 1:
241
+ console.error(message, a);
242
+ break;
243
+ case 2:
244
+ console.error(message, a, b);
245
+ break;
246
+ case 3:
247
+ console.error(message, a, b, c);
248
+ break;
249
+ case 4:
250
+ console.error(message, a, b, c, d);
251
+ break;
252
+ case 5:
253
+ console.error(message, a, b, c, d, e);
254
+ break;
255
+ case 6:
256
+ console.error(message, a, b, c, d, e, f);
257
+ break;
258
+ case 7:
259
+ console.error(message, a, b, c, d, e, f, g);
260
+ break;
261
+ case 8:
262
+ console.error(message, a, b, c, d, e, f, g, h);
263
+ break;
264
+ default:
265
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
266
+ }
218
267
  }
219
268
  try {
220
269
  // --- Welcome to debugging React ---
221
270
  // This error was thrown as a convenience so that you can use this stack
222
271
  // to find the callsite that caused this warning to fire.
223
272
  var argIndex = 0;
224
- var message = 'Warning: ' + format.replace(/%s/g, function () {
273
+ var _message = 'Warning: ' + format.replace(/%s/g, function () {
225
274
  return args[argIndex++];
226
275
  });
227
- throw new Error(message);
276
+ throw new Error(_message);
228
277
  } catch (x) {}
229
278
  };
230
279
  }
@@ -529,7 +578,7 @@ function getComponentName(type) {
529
578
  case REACT_FORWARD_REF_TYPE:
530
579
  var renderFn = type.render;
531
580
  var functionName = renderFn.displayName || renderFn.name || '';
532
- return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
581
+ return type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
533
582
  }
534
583
  if (typeof type.then === 'function') {
535
584
  var thenable = type;
@@ -1320,7 +1369,9 @@ function forwardRef(render) {
1320
1369
  if (typeof render !== 'function') {
1321
1370
  warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1322
1371
  } else {
1323
- !(render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept two parameters: props and ref. ' + 'Did you forget to use the ref parameter?') : void 0;
1372
+ !(
1373
+ // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
1374
+ render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
1324
1375
  }
1325
1376
 
1326
1377
  if (render != null) {
@@ -1491,7 +1542,7 @@ function validatePropTypes(element) {
1491
1542
  } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
1492
1543
  // ForwardRef
1493
1544
  var functionName = type.render.displayName || type.render.name || '';
1494
- name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
1545
+ name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
1495
1546
  propTypes = type.propTypes;
1496
1547
  } else {
1497
1548
  return;
@@ -1,7 +1,7 @@
1
- /** @license React v16.5.0
1
+ /** @license React v16.5.1
2
2
  * react.production.min.js
3
3
  *
4
- * Copyright (c) 2013-present, Facebook, Inc.
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -20,5 +20,5 @@ function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var
20
20
  function aa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=M(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function W(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,aa,b);R(b)}function ba(a,b){var d=I.currentDispatcher;null===d?B("277"):void 0;return d.readContext(a,b)}
21
21
  var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,V,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
22
22
  _currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:v,_context:a};a.Consumer=a;a.unstable_read=ba.bind(null,a);return a},forwardRef:function(a){return{$$typeof:y,render:a}},Fragment:r,StrictMode:t,unstable_AsyncMode:x,unstable_Profiler:u,createElement:L,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=m({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=I.current);void 0!==b.key&&(g=""+b.key);
23
- var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
23
+ var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
24
24
  assign:m}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
@@ -1,7 +1,7 @@
1
- /** @license React v16.5.0
1
+ /** @license React v16.5.1
2
2
  * react.profiling.min.js
3
3
  *
4
- * Copyright (c) 2013-present, Facebook, Inc.
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -20,5 +20,5 @@ function S(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var
20
20
  function aa(a,b,d){var c=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,d,function(a){return a}):null!=a&&(N(a)&&(a=M(a,e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(O,"$&/")+"/")+d)),c.push(a))}function W(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(O,"$&/")+"/");b=Q(b,g,c,e);U(a,aa,b);R(b)}function ba(a,b){var d=I.currentDispatcher;null===d?B("277"):void 0;return d.readContext(a,b)}
21
21
  var X={Children:{map:function(a,b,d){if(null==a)return a;var c=[];W(a,c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=Q(null,null,b,d);U(a,V,b);R(b)},count:function(a){return U(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){N(a)?void 0:B("143");return a}},createRef:function(){return{current:null}},Component:E,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
22
22
  _currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:v,_context:a};a.Consumer=a;a.unstable_read=ba.bind(null,a);return a},forwardRef:function(a){return{$$typeof:y,render:a}},Fragment:r,StrictMode:t,unstable_AsyncMode:x,unstable_Profiler:u,createElement:L,cloneElement:function(a,b,d){null===a||void 0===a?B("267",a):void 0;var c=void 0,e=m({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=I.current);void 0!==b.key&&(g=""+b.key);
23
- var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
23
+ var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)J.call(b,c)&&!K.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];e.children=k}return{$$typeof:p,type:a.type,key:g,ref:h,props:e,_owner:f}},createFactory:function(a){var b=L.bind(null,a);b.type=a;return b},isValidElement:N,version:"16.5.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I,
24
24
  assign:m}},Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [
5
5
  "react"
6
6
  ],
7
- "version": "16.5.0",
7
+ "version": "16.5.1",
8
8
  "homepage": "https://reactjs.org/",
9
9
  "bugs": "https://github.com/facebook/react/issues",
10
10
  "license": "MIT",
@@ -24,7 +24,7 @@
24
24
  "loose-envify": "^1.1.0",
25
25
  "object-assign": "^4.1.1",
26
26
  "prop-types": "^15.6.2",
27
- "schedule": "^0.3.0"
27
+ "schedule": "^0.4.0"
28
28
  },
29
29
  "browserify": {
30
30
  "transform": [
@@ -1,7 +1,7 @@
1
- /** @license React v16.5.0
1
+ /** @license React v16.5.1
2
2
  * react.development.js
3
3
  *
4
- * Copyright (c) 2013-present, Facebook, Inc.
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -17,7 +17,7 @@
17
17
 
18
18
  // TODO: this is special because it gets imported during build.
19
19
 
20
- var ReactVersion = '16.5.0';
20
+ var ReactVersion = '16.5.1';
21
21
 
22
22
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
23
23
  // nor polyfill, then a plain number is used for performance.
@@ -48,51 +48,6 @@ function getIteratorFn(maybeIterable) {
48
48
  return null;
49
49
  }
50
50
 
51
- /**
52
- * Use invariant() to assert state which your program assumes to be true.
53
- *
54
- * Provide sprintf-style format (only %s is supported) and arguments
55
- * to provide information about what broke and what you were
56
- * expecting.
57
- *
58
- * The invariant message will be stripped in production, but the invariant
59
- * will remain to ensure logic does not differ in production.
60
- */
61
-
62
- var validateFormat = function () {};
63
-
64
- {
65
- validateFormat = function (format) {
66
- if (format === undefined) {
67
- throw new Error('invariant requires an error message argument');
68
- }
69
- };
70
- }
71
-
72
- function invariant(condition, format, a, b, c, d, e, f) {
73
- validateFormat(format);
74
-
75
- if (!condition) {
76
- var error = void 0;
77
- if (format === undefined) {
78
- error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
79
- } else {
80
- var args = [a, b, c, d, e, f];
81
- var argIndex = 0;
82
- error = new Error(format.replace(/%s/g, function () {
83
- return args[argIndex++];
84
- }));
85
- error.name = 'Invariant Violation';
86
- }
87
-
88
- error.framesToPop = 1; // we don't care about invariant's own frame
89
- throw error;
90
- }
91
- }
92
-
93
- // Relying on the `invariant()` implementation lets us
94
- // preserve the format and params in the www builds.
95
-
96
51
  // Exports ReactDOM.createRoot
97
52
 
98
53
 
@@ -131,6 +86,10 @@ var enableSchedulerTracking = true;
131
86
 
132
87
  // Only used in www builds.
133
88
 
89
+
90
+ // React Fire: prevent the value and checked attributes from syncing
91
+ // with their related DOM properties
92
+
134
93
  /*
135
94
  object-assign
136
95
  (c) Sindre Sorhus
@@ -222,6 +181,51 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
222
181
  return to;
223
182
  };
224
183
 
184
+ /**
185
+ * Use invariant() to assert state which your program assumes to be true.
186
+ *
187
+ * Provide sprintf-style format (only %s is supported) and arguments
188
+ * to provide information about what broke and what you were
189
+ * expecting.
190
+ *
191
+ * The invariant message will be stripped in production, but the invariant
192
+ * will remain to ensure logic does not differ in production.
193
+ */
194
+
195
+ var validateFormat = function () {};
196
+
197
+ {
198
+ validateFormat = function (format) {
199
+ if (format === undefined) {
200
+ throw new Error('invariant requires an error message argument');
201
+ }
202
+ };
203
+ }
204
+
205
+ function invariant(condition, format, a, b, c, d, e, f) {
206
+ validateFormat(format);
207
+
208
+ if (!condition) {
209
+ var error = void 0;
210
+ if (format === undefined) {
211
+ error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');
212
+ } else {
213
+ var args = [a, b, c, d, e, f];
214
+ var argIndex = 0;
215
+ error = new Error(format.replace(/%s/g, function () {
216
+ return args[argIndex++];
217
+ }));
218
+ error.name = 'Invariant Violation';
219
+ }
220
+
221
+ error.framesToPop = 1; // we don't care about invariant's own frame
222
+ throw error;
223
+ }
224
+ }
225
+
226
+ // Relying on the `invariant()` implementation lets us
227
+ // preserve the format and params in the www builds.
228
+
225
229
  /**
226
230
  * Forked from fbjs/warning:
227
231
  * https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
@@ -293,26 +297,71 @@ var warningWithoutStack = function () {};
293
297
  if (format === undefined) {
294
298
  throw new Error('`warningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
295
299
  }
300
+ if (args.length > 8) {
301
+ // Check before the condition to catch violations early.
302
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
303
+ }
296
304
  if (condition) {
297
305
  return;
298
306
  }
299
307
  if (typeof console !== 'undefined') {
300
- var _console;
301
-
302
- var stringArgs = args.map(function (item) {
308
+ var _args$map = args.map(function (item) {
303
309
  return '' + item;
304
- });
305
- (_console = console).error.apply(_console, ['Warning: ' + format].concat(stringArgs));
310
+ }),
311
+ a = _args$map[0],
312
+ b = _args$map[1],
313
+ c = _args$map[2],
314
+ d = _args$map[3],
315
+ e = _args$map[4],
316
+ f = _args$map[5],
317
+ g = _args$map[6],
318
+ h = _args$map[7];
319
+
320
+ var message = 'Warning: ' + format;
321
+
322
+ // We intentionally don't use spread (or .apply) because it breaks IE9:
323
+ // https://github.com/facebook/react/issues/13610
324
+ switch (args.length) {
325
+ case 0:
326
+ console.error(message);
327
+ break;
328
+ case 1:
329
+ console.error(message, a);
330
+ break;
331
+ case 2:
332
+ console.error(message, a, b);
333
+ break;
334
+ case 3:
335
+ console.error(message, a, b, c);
336
+ break;
337
+ case 4:
338
+ console.error(message, a, b, c, d);
339
+ break;
340
+ case 5:
341
+ console.error(message, a, b, c, d, e);
342
+ break;
343
+ case 6:
344
+ console.error(message, a, b, c, d, e, f);
345
+ break;
346
+ case 7:
347
+ console.error(message, a, b, c, d, e, f, g);
348
+ break;
349
+ case 8:
350
+ console.error(message, a, b, c, d, e, f, g, h);
351
+ break;
352
+ default:
353
+ throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
354
+ }
306
355
  }
307
356
  try {
308
357
  // --- Welcome to debugging React ---
309
358
  // This error was thrown as a convenience so that you can use this stack
310
359
  // to find the callsite that caused this warning to fire.
311
360
  var argIndex = 0;
312
- var message = 'Warning: ' + format.replace(/%s/g, function () {
361
+ var _message = 'Warning: ' + format.replace(/%s/g, function () {
313
362
  return args[argIndex++];
314
363
  });
315
- throw new Error(message);
364
+ throw new Error(_message);
316
365
  } catch (x) {}
317
366
  };
318
367
  }
@@ -1369,7 +1418,7 @@ function getComponentName(type) {
1369
1418
  case REACT_FORWARD_REF_TYPE:
1370
1419
  var renderFn = type.render;
1371
1420
  var functionName = renderFn.displayName || renderFn.name || '';
1372
- return functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
1421
+ return type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
1373
1422
  }
1374
1423
  if (typeof type.then === 'function') {
1375
1424
  var thenable = type;
@@ -2186,7 +2235,9 @@ function forwardRef(render) {
2186
2235
  if (typeof render !== 'function') {
2187
2236
  warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
2188
2237
  } else {
2189
- !(render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept two parameters: props and ref. ' + 'Did you forget to use the ref parameter?') : void 0;
2238
+ !(
2239
+ // Do not warn for 0 arguments because it could be due to usage of the 'arguments' object
2240
+ render.length === 0 || render.length === 2) ? warningWithoutStack$1(false, 'forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.') : void 0;
2190
2241
  }
2191
2242
 
2192
2243
  if (render != null) {
@@ -2462,7 +2513,7 @@ function validatePropTypes(element) {
2462
2513
  } else if (typeof type === 'object' && type !== null && type.$$typeof === REACT_FORWARD_REF_TYPE) {
2463
2514
  // ForwardRef
2464
2515
  var functionName = type.render.displayName || type.render.name || '';
2465
- name = functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef';
2516
+ name = type.displayName || (functionName !== '' ? 'ForwardRef(' + functionName + ')' : 'ForwardRef');
2466
2517
  propTypes = type.propTypes;
2467
2518
  } else {
2468
2519
  return;
@@ -1,7 +1,7 @@
1
- /** @license React v16.5.0
1
+ /** @license React v16.5.1
2
2
  * react.production.min.js
3
3
  *
4
- * Copyright (c) 2013-present, Facebook, Inc.
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
5
  *
6
6
  * This source code is licensed under the MIT license found in the
7
7
  * LICENSE file in the root directory of this source tree.
@@ -24,4 +24,4 @@ new Map;f=function(a,b){b={scheduledCallback:a,timeoutTime:0,next:null,prev:null
24
24
  unstable_getCurrent:function(){return null},unstable_getThreadID:function(){return++Aa},unstable_subscribe:function(a){},unstable_track:function(a,b,c){return c()},unstable_unsubscribe:function(a){},unstable_wrap:function(a){return a}}});var T=Object.prototype.hasOwnProperty,U={key:!0,ref:!0,__self:!0,__source:!0},Y=/\/+/g,w=[];n={Children:{map:function(a,b,c){if(null==a)return a;var d=[];L(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=V(null,null,b,c);K(a,ma,b);W(b)},count:function(a){return K(a,
25
25
  function(){return null},null)},toArray:function(a){var b=[];L(a,b,null,function(a){return a});return b},only:function(a){H(a)?void 0:l("143");return a}},createRef:function(){return{current:null}},Component:p,PureComponent:G,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:ra,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,Provider:null,Consumer:null,unstable_read:null};a.Provider={$$typeof:qa,_context:a};a.Consumer=a;a.unstable_read=oa.bind(null,a);return a},forwardRef:function(a){return{$$typeof:ta,
26
26
  render:a}},Fragment:n,StrictMode:M,unstable_AsyncMode:sa,unstable_Profiler:pa,createElement:S,cloneElement:function(a,b,c){null===a||void 0===a?l("267",a):void 0;var d=void 0,e=x({},a.props),f=a.key,h=a.ref,g=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,g=v.current);void 0!==b.key&&(f=""+b.key);var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(d in b)T.call(b,d)&&!U.hasOwnProperty(d)&&(e[d]=void 0===b[d]&&void 0!==k?k[d]:b[d])}d=arguments.length-2;if(1===d)e.children=c;else if(1<
27
- d){k=Array(d);for(var n=0;n<d;n++)k[n]=arguments[n+2];e.children=k}return{$$typeof:r,type:a.type,key:f,ref:h,props:e,_owner:g}},createFactory:function(a){var b=S.bind(null,a);b.type=a;return b},isValidElement:H,version:"16.5.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:y};n=(M={default:n},n)||M;return n.default||n});
27
+ d){k=Array(d);for(var n=0;n<d;n++)k[n]=arguments[n+2];e.children=k}return{$$typeof:r,type:a.type,key:f,ref:h,props:e,_owner:g}},createFactory:function(a){var b=S.bind(null,a);b.type=a;return b},isValidElement:H,version:"16.5.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:y};n=(M={default:n},n)||M;return n.default||n});