react-dom 16.10.0 → 16.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build-info.json +4 -4
- package/cjs/react-dom-server.browser.development.js +122 -177
- package/cjs/react-dom-server.browser.production.min.js +29 -29
- package/cjs/react-dom-server.node.development.js +116 -167
- package/cjs/react-dom-server.node.production.min.js +17 -17
- package/cjs/react-dom-test-utils.development.js +55 -91
- package/cjs/react-dom-test-utils.production.min.js +9 -9
- package/cjs/react-dom-unstable-fizz.browser.development.js +9 -5
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +3 -3
- package/cjs/react-dom-unstable-fizz.node.development.js +23 -10
- package/cjs/react-dom-unstable-fizz.node.production.min.js +4 -3
- package/cjs/react-dom-unstable-flight-client.development.js +357 -0
- package/cjs/react-dom-unstable-flight-client.production.min.js +16 -0
- package/cjs/react-dom-unstable-flight-server.browser.development.js +392 -0
- package/cjs/react-dom-unstable-flight-server.browser.production.min.js +16 -0
- package/cjs/react-dom-unstable-flight-server.node.development.js +415 -0
- package/cjs/react-dom-unstable-flight-server.node.production.min.js +16 -0
- package/cjs/react-dom-unstable-native-dependencies.development.js +28 -48
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +15 -15
- package/cjs/react-dom.development.js +1912 -2046
- package/cjs/react-dom.production.min.js +266 -269
- package/cjs/react-dom.profiling.min.js +252 -255
- package/package.json +8 -3
- package/umd/react-dom-server.browser.development.js +122 -177
- package/umd/react-dom-server.browser.production.min.js +36 -36
- package/umd/react-dom-test-utils.development.js +55 -91
- package/umd/react-dom-test-utils.production.min.js +9 -9
- package/umd/react-dom-unstable-fizz.browser.development.js +9 -5
- package/umd/react-dom-unstable-fizz.browser.production.min.js +3 -3
- package/umd/react-dom-unstable-flight-client.development.js +357 -0
- package/umd/react-dom-unstable-flight-client.production.min.js +14 -0
- package/umd/react-dom-unstable-flight-server.browser.development.js +390 -0
- package/umd/react-dom-unstable-flight-server.browser.production.min.js +14 -0
- package/umd/react-dom-unstable-native-dependencies.development.js +28 -48
- package/umd/react-dom-unstable-native-dependencies.production.min.js +22 -22
- package/umd/react-dom.development.js +1916 -2050
- package/umd/react-dom.production.min.js +230 -232
- package/umd/react-dom.profiling.min.js +237 -239
- package/unstable-flight-client.js +7 -0
- package/unstable-flight-server.browser.js +7 -0
- package/unstable-flight-server.js +3 -0
- package/unstable-flight-server.node.js +7 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -21,16 +21,8 @@ var ReactDOM = require('react-dom');
|
|
|
21
21
|
var Scheduler = require('scheduler');
|
|
22
22
|
|
|
23
23
|
// Do not require this module directly! Use normal `invariant` calls with
|
|
24
|
-
// template literal strings. The messages will be
|
|
25
|
-
// build
|
|
26
|
-
|
|
27
|
-
// Do not require this module directly! Use normal `invariant` calls with
|
|
28
|
-
// template literal strings. The messages will be converted to ReactError during
|
|
29
|
-
// build, and in production they will be minified.
|
|
30
|
-
function ReactError(error) {
|
|
31
|
-
error.name = 'Invariant Violation';
|
|
32
|
-
return error;
|
|
33
|
-
}
|
|
24
|
+
// template literal strings. The messages will be replaced with error codes
|
|
25
|
+
// during build.
|
|
34
26
|
|
|
35
27
|
/**
|
|
36
28
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -182,12 +174,8 @@ var Hydrating =
|
|
|
182
174
|
|
|
183
175
|
// Union of all host effects
|
|
184
176
|
|
|
185
|
-
// Helps identify side effects in
|
|
186
|
-
|
|
187
|
-
// In some cases, StrictMode should also double-render lifecycles.
|
|
188
|
-
// This can be confusing for tests though,
|
|
189
|
-
// And it can be bad for performance in production.
|
|
190
|
-
// This feature flag can be used to control the behavior:
|
|
177
|
+
// Helps identify side effects in render-phase lifecycle hooks and setState
|
|
178
|
+
// reducers by double invoking them in Strict Mode.
|
|
191
179
|
|
|
192
180
|
// To preserve the "Pause on caught exceptions" behavior of the debugger, we
|
|
193
181
|
// replay the begin phase of a failed component inside invokeGuardedCallback.
|
|
@@ -198,9 +186,8 @@ var Hydrating =
|
|
|
198
186
|
|
|
199
187
|
// Trace which interactions trigger each commit.
|
|
200
188
|
|
|
201
|
-
//
|
|
189
|
+
// SSR experiments
|
|
202
190
|
|
|
203
|
-
// TODO: true? Here it might just be false.
|
|
204
191
|
|
|
205
192
|
// Only used in www builds.
|
|
206
193
|
|
|
@@ -215,9 +202,6 @@ var Hydrating =
|
|
|
215
202
|
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
216
203
|
|
|
217
204
|
|
|
218
|
-
// See https://github.com/react-native-community/discussions-and-proposals/issues/72 for more information
|
|
219
|
-
// This is a flag so we can fix warnings in RN core before turning it on
|
|
220
|
-
|
|
221
205
|
// Experimental React Flare event system and event components support.
|
|
222
206
|
|
|
223
207
|
// Experimental Host Component support.
|
|
@@ -227,15 +211,11 @@ var Hydrating =
|
|
|
227
211
|
// New API for JSX transforms to target - https://github.com/reactjs/rfcs/pull/107
|
|
228
212
|
|
|
229
213
|
// We will enforce mocking scheduler with scheduler/unstable_mock at some point. (v17?)
|
|
230
|
-
// Till then, we warn about the missing mock, but still fallback to a
|
|
214
|
+
// Till then, we warn about the missing mock, but still fallback to a legacy mode compatible version
|
|
231
215
|
|
|
232
216
|
// For tests, we flush suspense fallbacks in an act scope;
|
|
233
217
|
// *except* in some of our own tests, where we test incremental loading states.
|
|
234
218
|
|
|
235
|
-
// Changes priority of some events like mousemove to user-blocking priority,
|
|
236
|
-
// but without making them discrete. The flag exists in case it causes
|
|
237
|
-
// starvation problems.
|
|
238
|
-
|
|
239
219
|
// Add a callback property to suspense to notify which promises are currently
|
|
240
220
|
// in the update queue. This allows reporting and tracing of what is causing
|
|
241
221
|
// the user to see a loading state.
|
|
@@ -246,6 +226,12 @@ var Hydrating =
|
|
|
246
226
|
// from React.createElement to React.jsx
|
|
247
227
|
// https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md
|
|
248
228
|
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
// Flag to turn event.target and event.currentTarget in ReactNative from a reactTag to a component instance
|
|
234
|
+
|
|
249
235
|
var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
|
|
250
236
|
function getNearestMountedFiber(fiber) {
|
|
251
237
|
var node = fiber;
|
|
@@ -290,13 +276,11 @@ function getNearestMountedFiber(fiber) {
|
|
|
290
276
|
|
|
291
277
|
|
|
292
278
|
function assertIsMounted(fiber) {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
297
|
-
}
|
|
279
|
+
if (!(getNearestMountedFiber(fiber) === fiber)) {
|
|
280
|
+
{
|
|
281
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
298
282
|
}
|
|
299
|
-
}
|
|
283
|
+
}
|
|
300
284
|
}
|
|
301
285
|
|
|
302
286
|
function findCurrentFiberUsingSlowPath(fiber) {
|
|
@@ -306,13 +290,11 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
306
290
|
// If there is no alternate, then we only need to check if it is mounted.
|
|
307
291
|
var nearestMounted = getNearestMountedFiber(fiber);
|
|
308
292
|
|
|
309
|
-
(
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
313
|
-
}
|
|
293
|
+
if (!(nearestMounted !== null)) {
|
|
294
|
+
{
|
|
295
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
314
296
|
}
|
|
315
|
-
}
|
|
297
|
+
}
|
|
316
298
|
|
|
317
299
|
if (nearestMounted !== fiber) {
|
|
318
300
|
return null;
|
|
@@ -377,13 +359,11 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
377
359
|
// way this could possibly happen is if this was unmounted, if at all.
|
|
378
360
|
|
|
379
361
|
|
|
380
|
-
|
|
362
|
+
{
|
|
381
363
|
{
|
|
382
|
-
|
|
383
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
384
|
-
}
|
|
364
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
385
365
|
}
|
|
386
|
-
}
|
|
366
|
+
}
|
|
387
367
|
}
|
|
388
368
|
|
|
389
369
|
if (a.return !== b.return) {
|
|
@@ -442,34 +422,28 @@ function findCurrentFiberUsingSlowPath(fiber) {
|
|
|
442
422
|
_child = _child.sibling;
|
|
443
423
|
}
|
|
444
424
|
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
throw ReactError(Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue."));
|
|
449
|
-
}
|
|
425
|
+
if (!didFindChild) {
|
|
426
|
+
{
|
|
427
|
+
throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.");
|
|
450
428
|
}
|
|
451
|
-
}
|
|
429
|
+
}
|
|
452
430
|
}
|
|
453
431
|
}
|
|
454
432
|
|
|
455
|
-
(
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
throw ReactError(Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue."));
|
|
459
|
-
}
|
|
433
|
+
if (!(a.alternate === b)) {
|
|
434
|
+
{
|
|
435
|
+
throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.");
|
|
460
436
|
}
|
|
461
|
-
}
|
|
437
|
+
}
|
|
462
438
|
} // If the root is not a host container, we're in a disconnected tree. I.e.
|
|
463
439
|
// unmounted.
|
|
464
440
|
|
|
465
441
|
|
|
466
|
-
(
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
throw ReactError(Error("Unable to find node on an unmounted component."));
|
|
470
|
-
}
|
|
442
|
+
if (!(a.tag === HostRoot)) {
|
|
443
|
+
{
|
|
444
|
+
throw Error("Unable to find node on an unmounted component.");
|
|
471
445
|
}
|
|
472
|
-
}
|
|
446
|
+
}
|
|
473
447
|
|
|
474
448
|
if (a.stateNode.current === a) {
|
|
475
449
|
// We've determined that A is the current branch.
|
|
@@ -742,13 +716,11 @@ function getPooledEvent(dispatchConfig, targetInst, nativeEvent, nativeInst) {
|
|
|
742
716
|
function releasePooledEvent(event) {
|
|
743
717
|
var EventConstructor = this;
|
|
744
718
|
|
|
745
|
-
(
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
throw ReactError(Error("Trying to release an event instance into a pool of a different type."));
|
|
749
|
-
}
|
|
719
|
+
if (!(event instanceof EventConstructor)) {
|
|
720
|
+
{
|
|
721
|
+
throw Error("Trying to release an event instance into a pool of a different type.");
|
|
750
722
|
}
|
|
751
|
-
}
|
|
723
|
+
}
|
|
752
724
|
|
|
753
725
|
event.destructor();
|
|
754
726
|
|
|
@@ -1322,13 +1294,11 @@ function validateClassInstance(inst, methodName) {
|
|
|
1322
1294
|
received = stringified;
|
|
1323
1295
|
}
|
|
1324
1296
|
|
|
1325
|
-
|
|
1297
|
+
{
|
|
1326
1298
|
{
|
|
1327
|
-
|
|
1328
|
-
throw ReactError(Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + "."));
|
|
1329
|
-
}
|
|
1299
|
+
throw Error(methodName + "(...): the first argument must be a React class instance. Instead received: " + received + ".");
|
|
1330
1300
|
}
|
|
1331
|
-
}
|
|
1301
|
+
}
|
|
1332
1302
|
}
|
|
1333
1303
|
/**
|
|
1334
1304
|
* Utilities for making it easy to test React components.
|
|
@@ -1411,13 +1381,11 @@ var ReactTestUtils = {
|
|
|
1411
1381
|
var classList = className.split(/\s+/);
|
|
1412
1382
|
|
|
1413
1383
|
if (!Array.isArray(classNames)) {
|
|
1414
|
-
(
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
throw ReactError(Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument."));
|
|
1418
|
-
}
|
|
1384
|
+
if (!(classNames !== undefined)) {
|
|
1385
|
+
{
|
|
1386
|
+
throw Error("TestUtils.scryRenderedDOMComponentsWithClass expects a className as a second argument.");
|
|
1419
1387
|
}
|
|
1420
|
-
}
|
|
1388
|
+
}
|
|
1421
1389
|
|
|
1422
1390
|
classNames = classNames.split(/\s+/);
|
|
1423
1391
|
}
|
|
@@ -1553,21 +1521,17 @@ var ReactTestUtils = {
|
|
|
1553
1521
|
|
|
1554
1522
|
function makeSimulator(eventType) {
|
|
1555
1523
|
return function (domNode, eventData) {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
throw ReactError(Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering."));
|
|
1560
|
-
}
|
|
1524
|
+
if (!!React.isValidElement(domNode)) {
|
|
1525
|
+
{
|
|
1526
|
+
throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a React element. Pass the DOM node you wish to simulate the event on instead. Note that TestUtils.Simulate will not work if you are using shallow rendering.");
|
|
1561
1527
|
}
|
|
1562
|
-
}
|
|
1528
|
+
}
|
|
1563
1529
|
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
throw ReactError(Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead."));
|
|
1568
|
-
}
|
|
1530
|
+
if (!!ReactTestUtils.isCompositeComponent(domNode)) {
|
|
1531
|
+
{
|
|
1532
|
+
throw Error("TestUtils.Simulate expected a DOM node as the first argument but received a component instance. Pass the DOM node you wish to simulate the event on instead.");
|
|
1569
1533
|
}
|
|
1570
|
-
}
|
|
1534
|
+
}
|
|
1571
1535
|
|
|
1572
1536
|
var dispatchConfig = eventNameDispatchConfigs[eventType];
|
|
1573
1537
|
var fakeNativeEvent = new Event();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-test-utils.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,27 +7,27 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var g=require("object-assign"),k=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b=
|
|
11
|
-
q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null});q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});function r(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function t(a){if(r(a)!==a)throw p(
|
|
12
|
-
function u(a){var b=a.alternate;if(!b){b=r(a);if(null===b)throw p(
|
|
13
|
-
c){h=!0;c=f;e=d;break}if(l===e){h=!0;e=f;c=d;break}l=l.sibling}if(!h)throw p(
|
|
10
|
+
'use strict';var g=require("object-assign"),k=require("react"),m=require("react-dom"),n=require("scheduler");function p(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return"Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var q=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
11
|
+
q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null});q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});function r(a){var b=a,c=a;if(a.alternate)for(;b.return;)b=b.return;else{a=b;do b=a,0!==(b.effectTag&1026)&&(c=b.return),a=b.return;while(a)}return 3===b.tag?c:null}function t(a){if(r(a)!==a)throw Error(p(188));}
|
|
12
|
+
function u(a){var b=a.alternate;if(!b){b=r(a);if(null===b)throw Error(p(188));return b!==a?null:a}for(var c=a,e=b;;){var d=c.return;if(null===d)break;var f=d.alternate;if(null===f){e=d.return;if(null!==e){c=e;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===c)return t(d),a;if(f===e)return t(d),b;f=f.sibling}throw Error(p(188));}if(c.return!==e.return)c=d,e=f;else{for(var h=!1,l=d.child;l;){if(l===c){h=!0;c=d;e=f;break}if(l===e){h=!0;e=d;c=f;break}l=l.sibling}if(!h){for(l=f.child;l;){if(l===
|
|
13
|
+
c){h=!0;c=f;e=d;break}if(l===e){h=!0;e=f;c=d;break}l=l.sibling}if(!h)throw Error(p(189));}}if(c.alternate!==e)throw Error(p(190));}if(3!==c.tag)throw Error(p(188));return c.stateNode.current===c?a:b}function v(){return!0}function w(){return!1}
|
|
14
14
|
function x(a,b,c,e){this.dispatchConfig=a;this._targetInst=b;this.nativeEvent=c;a=this.constructor.Interface;for(var d in a)a.hasOwnProperty(d)&&((b=a[d])?this[d]=b(c):"target"===d?this.target=e:this[d]=c[d]);this.isDefaultPrevented=(null!=c.defaultPrevented?c.defaultPrevented:!1===c.returnValue)?v:w;this.isPropagationStopped=w;return this}
|
|
15
15
|
g(x.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():"unknown"!==typeof a.returnValue&&(a.returnValue=!1),this.isDefaultPrevented=v)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():"unknown"!==typeof a.cancelBubble&&(a.cancelBubble=!0),this.isPropagationStopped=v)},persist:function(){this.isPersistent=v},isPersistent:w,destructor:function(){var a=this.constructor.Interface,b;for(b in a)this[b]=
|
|
16
16
|
null;this.nativeEvent=this._targetInst=this.dispatchConfig=null;this.isPropagationStopped=this.isDefaultPrevented=w;this._dispatchInstances=this._dispatchListeners=null}});x.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};
|
|
17
17
|
x.extend=function(a){function b(){}function c(){return e.apply(this,arguments)}var e=this;b.prototype=e.prototype;var d=new b;g(d,c.prototype);c.prototype=d;c.prototype.constructor=c;c.Interface=g({},e.Interface,a);c.extend=e.extend;y(c);return c};y(x);function z(a,b,c,e){if(this.eventPool.length){var d=this.eventPool.pop();this.call(d,a,b,c,e);return d}return new this(a,b,c,e)}
|
|
18
|
-
function A(a){if(!(a instanceof this))throw p(
|
|
18
|
+
function A(a){if(!(a instanceof this))throw Error(p(279));a.destructor();10>this.eventPool.length&&this.eventPool.push(a)}function y(a){a.eventPool=[];a.getPooled=z;a.release=A}var B=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement);function C(a,b){var c={};c[a.toLowerCase()]=b.toLowerCase();c["Webkit"+a]="webkit"+b;c["Moz"+a]="moz"+b;return c}
|
|
19
19
|
var D={animationend:C("Animation","AnimationEnd"),animationiteration:C("Animation","AnimationIteration"),animationstart:C("Animation","AnimationStart"),transitionend:C("Transition","TransitionEnd")},E={},F={};B&&(F=document.createElement("div").style,"AnimationEvent"in window||(delete D.animationend.animation,delete D.animationiteration.animation,delete D.animationstart.animation),"TransitionEvent"in window||delete D.transitionend.transition);
|
|
20
20
|
function G(a){if(E[a])return E[a];if(!D[a])return a;var b=D[a],c;for(c in b)if(b.hasOwnProperty(c)&&c in F)return E[a]=b[c];return a}var H=G("animationend"),aa=G("animationiteration"),ba=G("animationstart"),ca=G("transitionend"),I;try{var da=("require"+Math.random()).slice(0,7);I=(module&&module[da])("timers").setImmediate}catch(a){I=function(b){var c=new MessageChannel;c.port1.onmessage=b;c.port2.postMessage(void 0)}}
|
|
21
21
|
var ea=I,J=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,fa=J[11],K=J[12],ha=m.unstable_batchedUpdates,L=q.IsSomeRendererActing,M="function"===typeof n.unstable_flushAllWithoutAsserting,N=n.unstable_flushAllWithoutAsserting||function(){for(var a=!1;fa();)a=!0;return a};function O(a){try{N(),ea(function(){N()?O(a):a()})}catch(b){a(b)}}var P=0,Q=!1,ia=m.findDOMNode,R=m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Events,ja=R[0],S=R[4],ka=R[5],la=R[6],ma=R[7],na=R[8],T=R[9],oa=R[10];
|
|
22
22
|
function U(){}function pa(a,b){if(!a)return[];a=u(a);if(!a)return[];for(var c=a,e=[];;){if(5===c.tag||6===c.tag||1===c.tag||0===c.tag){var d=c.stateNode;b(d)&&e.push(d)}if(c.child)c.child.return=c,c=c.child;else{if(c===a)return e;for(;!c.sibling;){if(!c.return||c.return===a)return e;c=c.return}c.sibling.return=c.return;c=c.sibling}}}
|
|
23
|
-
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw p(
|
|
23
|
+
function V(a,b){if(a&&!a._reactInternalFiber){var c=""+a;a=Array.isArray(a)?"an array":a&&1===a.nodeType&&a.tagName?"a DOM node":"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c;throw Error(p(286,b,a));}}
|
|
24
24
|
var W={renderIntoDocument:function(a){var b=document.createElement("div");return m.render(a,b)},isElement:function(a){return k.isValidElement(a)},isElementOfType:function(a,b){return k.isValidElement(a)&&a.type===b},isDOMComponent:function(a){return!(!a||1!==a.nodeType||!a.tagName)},isDOMComponentElement:function(a){return!!(a&&k.isValidElement(a)&&a.tagName)},isCompositeComponent:function(a){return W.isDOMComponent(a)?!1:null!=a&&"function"===typeof a.render&&"function"===typeof a.setState},isCompositeComponentWithType:function(a,
|
|
25
|
-
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?pa(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw p(
|
|
25
|
+
b){return W.isCompositeComponent(a)?a._reactInternalFiber.type===b:!1},findAllInRenderedTree:function(a,b){V(a,"findAllInRenderedTree");return a?pa(a._reactInternalFiber,b):[]},scryRenderedDOMComponentsWithClass:function(a,b){V(a,"scryRenderedDOMComponentsWithClass");return W.findAllInRenderedTree(a,function(a){if(W.isDOMComponent(a)){var c=a.className;"string"!==typeof c&&(c=a.getAttribute("class")||"");var d=c.split(/\s+/);if(!Array.isArray(b)){if(void 0===b)throw Error(p(11));b=b.split(/\s+/)}return b.every(function(a){return-1!==
|
|
26
26
|
d.indexOf(a)})}return!1})},findRenderedDOMComponentWithClass:function(a,b){V(a,"findRenderedDOMComponentWithClass");a=W.scryRenderedDOMComponentsWithClass(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for class:"+b);return a[0]},scryRenderedDOMComponentsWithTag:function(a,b){V(a,"scryRenderedDOMComponentsWithTag");return W.findAllInRenderedTree(a,function(a){return W.isDOMComponent(a)&&a.tagName.toUpperCase()===b.toUpperCase()})},findRenderedDOMComponentWithTag:function(a,
|
|
27
27
|
b){V(a,"findRenderedDOMComponentWithTag");a=W.scryRenderedDOMComponentsWithTag(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+a.length+") for tag:"+b);return a[0]},scryRenderedComponentsWithType:function(a,b){V(a,"scryRenderedComponentsWithType");return W.findAllInRenderedTree(a,function(a){return W.isCompositeComponentWithType(a,b)})},findRenderedComponentWithType:function(a,b){V(a,"findRenderedComponentWithType");a=W.scryRenderedComponentsWithType(a,b);if(1!==a.length)throw Error("Did not find exactly one match (found: "+
|
|
28
28
|
a.length+") for componentType:"+b);return a[0]},mockComponent:function(a,b){b=b||a.mockTagName||"div";a.prototype.render.mockImplementation(function(){return k.createElement(b,null,this.props.children)});return this},nativeTouchData:function(a,b){return{touches:[{pageX:a,pageY:b}]}},Simulate:null,SimulateNative:{},act:function(a){function b(){P--;L.current=c;K.current=e}!1===Q&&(Q=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));P++;var c=
|
|
29
29
|
L.current;var e=K.current;L.current=!0;K.current=!0;try{var d=ha(a)}catch(f){throw b(),f;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,e){d.then(function(){1<P||!0===M&&!0===c?(b(),a()):O(function(c){b();c?e(c):a()})},function(a){b();e(a)})}};try{1!==P||!1!==M&&!1!==c||N(),b()}catch(f){throw b(),f;}return{then:function(a){a()}}}};
|
|
30
|
-
function qa(a){return function(b,c){if(k.isValidElement(b))throw p(
|
|
30
|
+
function qa(a){return function(b,c){if(k.isValidElement(b))throw Error(p(228));if(W.isCompositeComponent(b))throw Error(p(229));var e=S[a],d=new U;d.target=b;d.type=a.toLowerCase();var f=ja(b),h=new x(e,f,d,b);h.persist();g(h,c);e.phasedRegistrationNames?ka(h):la(h);m.unstable_batchedUpdates(function(){ma(b);oa(h)});na()}}W.Simulate={};for(var X in S)W.Simulate[X]=qa(X);
|
|
31
31
|
function ra(a,b){return function(c,e){var d=new U(a);g(d,e);W.isDOMComponent(c)?(c=ia(c),d.target=c,T(b,1,d)):c.tagName&&(d.target=c,T(b,1,d))}}
|
|
32
32
|
[["abort","abort"],[H,"animationEnd"],[aa,"animationIteration"],[ba,"animationStart"],["blur","blur"],["canplaythrough","canPlayThrough"],["canplay","canPlay"],["cancel","cancel"],["change","change"],["click","click"],["close","close"],["compositionend","compositionEnd"],["compositionstart","compositionStart"],["compositionupdate","compositionUpdate"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragenter","dragEnter"],["dragexit",
|
|
33
33
|
"dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["dragstart","dragStart"],["drag","drag"],["drop","drop"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["focus","focus"],["input","input"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["loadstart","loadStart"],["loadstart","loadStart"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["mousedown","mouseDown"],["mousemove",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-unstable-fizz.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -24,6 +24,7 @@ function flushBuffered(destination) {// WHATWG Streams do not yet have a way to
|
|
|
24
24
|
|
|
25
25
|
function writeChunk(destination, buffer) {
|
|
26
26
|
destination.enqueue(buffer);
|
|
27
|
+
return destination.desiredSize > 0;
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
function close(destination) {
|
|
@@ -34,7 +35,7 @@ function convertStringToBuffer(content) {
|
|
|
34
35
|
return textEncoder.encode(content);
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
function
|
|
38
|
+
function formatChunkAsString(type, props) {
|
|
38
39
|
var str = '<' + type + '>';
|
|
39
40
|
|
|
40
41
|
if (typeof props.children === 'string') {
|
|
@@ -42,7 +43,10 @@ function formatChunk(type, props) {
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
str += '</' + type + '>';
|
|
45
|
-
return
|
|
46
|
+
return str;
|
|
47
|
+
}
|
|
48
|
+
function formatChunk(type, props) {
|
|
49
|
+
return convertStringToBuffer(formatChunkAsString(type, props));
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
@@ -112,7 +116,7 @@ function startWork(request) {
|
|
|
112
116
|
return performWork(request);
|
|
113
117
|
});
|
|
114
118
|
}
|
|
115
|
-
function startFlowing(request
|
|
119
|
+
function startFlowing(request) {
|
|
116
120
|
request.flowing = false;
|
|
117
121
|
flushCompletedChunks(request);
|
|
118
122
|
}
|
|
@@ -128,7 +132,7 @@ function renderToReadableStream(children) {
|
|
|
128
132
|
startWork(request);
|
|
129
133
|
},
|
|
130
134
|
pull: function (controller) {
|
|
131
|
-
startFlowing(request
|
|
135
|
+
startFlowing(request);
|
|
132
136
|
},
|
|
133
137
|
cancel: function (reason) {}
|
|
134
138
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-unstable-fizz.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return
|
|
11
|
-
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(g(f,d)),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}},m={default:l},n=m&&l||m;module.exports=n.default||n;
|
|
10
|
+
'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return a+("</"+b+">")}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()}
|
|
11
|
+
var l={renderToReadableStream:function(b){var c;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(e.encode(g(f,d))),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}},m={default:l},n=m&&l||m;module.exports=n.default||n;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-unstable-fizz.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,20 +22,30 @@ function flushBuffered(destination) {
|
|
|
22
22
|
// If we don't have any more data to send right now.
|
|
23
23
|
// Flush whatever is in the buffer to the wire.
|
|
24
24
|
if (typeof destination.flush === 'function') {
|
|
25
|
-
//
|
|
26
|
-
|
|
25
|
+
// http.createServer response have flush(), but it has a different meaning and
|
|
26
|
+
// is deprecated in favor of flushHeaders(). Detect to avoid a warning.
|
|
27
|
+
if (typeof destination.flushHeaders !== 'function') {
|
|
28
|
+
// By convention the Zlib streams provide a flush function for this purpose.
|
|
29
|
+
destination.flush();
|
|
30
|
+
}
|
|
27
31
|
}
|
|
28
32
|
}
|
|
29
33
|
function beginWriting(destination) {
|
|
30
|
-
|
|
34
|
+
// Older Node streams like http.createServer don't have this.
|
|
35
|
+
if (typeof destination.cork === 'function') {
|
|
36
|
+
destination.cork();
|
|
37
|
+
}
|
|
31
38
|
}
|
|
32
39
|
function writeChunk(destination, buffer) {
|
|
33
40
|
var nodeBuffer = buffer; // close enough
|
|
34
41
|
|
|
35
|
-
destination.write(nodeBuffer);
|
|
42
|
+
return destination.write(nodeBuffer);
|
|
36
43
|
}
|
|
37
44
|
function completeWriting(destination) {
|
|
38
|
-
|
|
45
|
+
// Older Node streams like http.createServer don't have this.
|
|
46
|
+
if (typeof destination.uncork === 'function') {
|
|
47
|
+
destination.uncork();
|
|
48
|
+
}
|
|
39
49
|
}
|
|
40
50
|
function close(destination) {
|
|
41
51
|
destination.end();
|
|
@@ -44,7 +54,7 @@ function convertStringToBuffer(content) {
|
|
|
44
54
|
return Buffer.from(content, 'utf8');
|
|
45
55
|
}
|
|
46
56
|
|
|
47
|
-
function
|
|
57
|
+
function formatChunkAsString(type, props) {
|
|
48
58
|
var str = '<' + type + '>';
|
|
49
59
|
|
|
50
60
|
if (typeof props.children === 'string') {
|
|
@@ -52,7 +62,10 @@ function formatChunk(type, props) {
|
|
|
52
62
|
}
|
|
53
63
|
|
|
54
64
|
str += '</' + type + '>';
|
|
55
|
-
return
|
|
65
|
+
return str;
|
|
66
|
+
}
|
|
67
|
+
function formatChunk(type, props) {
|
|
68
|
+
return convertStringToBuffer(formatChunkAsString(type, props));
|
|
56
69
|
}
|
|
57
70
|
|
|
58
71
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
@@ -124,7 +137,7 @@ function startWork(request) {
|
|
|
124
137
|
return performWork(request);
|
|
125
138
|
});
|
|
126
139
|
}
|
|
127
|
-
function startFlowing(request
|
|
140
|
+
function startFlowing(request) {
|
|
128
141
|
request.flowing = false;
|
|
129
142
|
flushCompletedChunks(request);
|
|
130
143
|
}
|
|
@@ -134,7 +147,7 @@ function startFlowing(request, desiredBytes) {
|
|
|
134
147
|
|
|
135
148
|
function createDrainHandler(destination, request) {
|
|
136
149
|
return function () {
|
|
137
|
-
return startFlowing(request
|
|
150
|
+
return startFlowing(request);
|
|
138
151
|
};
|
|
139
152
|
}
|
|
140
153
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.12.0
|
|
2
2
|
* react-dom-unstable-fizz.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,5 +7,6 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';function d(a,b){var c="<"+a+">";"string"===typeof b.children&&(c+=b.children);return
|
|
11
|
-
function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(d(c,b)),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}
|
|
10
|
+
'use strict';function d(a,b){var c="<"+a+">";"string"===typeof b.children&&(c+=b.children);return c+("</"+a+">")}var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(a){var b=a.destination,c=a.completedChunks;a.completedChunks=[];"function"===typeof b.cork&&b.cork();try{for(a=0;a<c.length;a++)b.write(c[a])}finally{"function"===typeof b.uncork&&b.uncork()}b.end()}
|
|
11
|
+
function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(Buffer.from(d(c,b),"utf8")),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&"function"!==typeof c.flushHeaders&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}
|
|
12
|
+
var k={pipeToNodeWritable:function(a,b){a={destination:b,children:a,completedChunks:[],flowing:!1};b.on("drain",h(b,a));g(a)}},l={default:k},m=l&&k||l;module.exports=m.default||m;
|