react-dom 16.8.1 → 16.8.5
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 +5 -5
- package/cjs/react-dom-server.browser.development.js +67 -36
- package/cjs/react-dom-server.browser.production.min.js +17 -16
- package/cjs/react-dom-server.node.development.js +67 -36
- package/cjs/react-dom-server.node.production.min.js +18 -17
- package/cjs/react-dom-test-utils.development.js +2 -2
- package/cjs/react-dom-test-utils.production.min.js +1 -1
- package/cjs/react-dom-unstable-fire.development.js +709 -213
- package/cjs/react-dom-unstable-fire.production.min.js +252 -251
- package/cjs/react-dom-unstable-fire.profiling.min.js +176 -173
- package/cjs/react-dom-unstable-fizz.browser.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.development.js +1 -1
- package/cjs/react-dom-unstable-fizz.node.production.min.js +1 -1
- package/cjs/react-dom-unstable-native-dependencies.development.js +2 -2
- package/cjs/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/cjs/react-dom.development.js +709 -213
- package/cjs/react-dom.production.min.js +252 -251
- package/cjs/react-dom.profiling.min.js +176 -173
- package/package.json +2 -2
- package/umd/react-dom-server.browser.development.js +67 -36
- package/umd/react-dom-server.browser.production.min.js +22 -21
- package/umd/react-dom-test-utils.development.js +2 -2
- package/umd/react-dom-test-utils.production.min.js +1 -1
- package/umd/react-dom-unstable-fire.development.js +717 -213
- package/umd/react-dom-unstable-fire.production.min.js +208 -207
- package/umd/react-dom-unstable-fire.profiling.min.js +208 -208
- package/umd/react-dom-unstable-fizz.browser.development.js +1 -1
- package/umd/react-dom-unstable-fizz.browser.production.min.js +1 -1
- package/umd/react-dom-unstable-native-dependencies.development.js +2 -2
- package/umd/react-dom-unstable-native-dependencies.production.min.js +1 -1
- package/umd/react-dom.development.js +717 -213
- package/umd/react-dom.production.min.js +208 -207
- package/umd/react-dom.profiling.min.js +208 -208
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dom",
|
|
3
|
-
"version": "16.8.
|
|
3
|
+
"version": "16.8.5",
|
|
4
4
|
"description": "React package for working with the DOM.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"loose-envify": "^1.1.0",
|
|
21
21
|
"object-assign": "^4.1.1",
|
|
22
22
|
"prop-types": "^15.6.2",
|
|
23
|
-
"scheduler": "^0.13.
|
|
23
|
+
"scheduler": "^0.13.5"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"react": "^16.0.0"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.5
|
|
2
2
|
* react-dom-server.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -62,7 +62,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
62
62
|
|
|
63
63
|
// TODO: this is special because it gets imported during build.
|
|
64
64
|
|
|
65
|
-
var ReactVersion = '16.8.
|
|
65
|
+
var ReactVersion = '16.8.5';
|
|
66
66
|
|
|
67
67
|
var ReactInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
68
68
|
|
|
@@ -846,12 +846,15 @@ var capitalize = function (token) {
|
|
|
846
846
|
attributeName, 'http://www.w3.org/XML/1998/namespace');
|
|
847
847
|
});
|
|
848
848
|
|
|
849
|
-
//
|
|
850
|
-
//
|
|
851
|
-
//
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
849
|
+
// These attribute exists both in HTML and SVG.
|
|
850
|
+
// The attribute name is case-sensitive in SVG so we can't just use
|
|
851
|
+
// the React name like we do for attributes that exist only in HTML.
|
|
852
|
+
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
|
853
|
+
properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
|
|
854
|
+
attributeName.toLowerCase(), // attributeName
|
|
855
|
+
null);
|
|
856
|
+
} // attributeNamespace
|
|
857
|
+
);
|
|
855
858
|
|
|
856
859
|
// code copied and modified from escape-html
|
|
857
860
|
/**
|
|
@@ -1034,7 +1037,7 @@ var isInHookUserCodeInDev = false;
|
|
|
1034
1037
|
var currentHookNameInDev = void 0;
|
|
1035
1038
|
|
|
1036
1039
|
function resolveCurrentlyRenderingComponent() {
|
|
1037
|
-
!(currentlyRenderingComponent !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component. (https://fb.me/react-invalid-hook-call
|
|
1040
|
+
!(currentlyRenderingComponent !== null) ? invariant(false, 'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://fb.me/react-invalid-hook-call for tips about how to debug and fix this problem.') : void 0;
|
|
1038
1041
|
{
|
|
1039
1042
|
!!isInHookUserCodeInDev ? warning$1(false, 'Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. ' + 'You can only call Hooks at the top level of your React function. ' + 'For more information, see ' + 'https://fb.me/rules-of-hooks') : void 0;
|
|
1040
1043
|
}
|
|
@@ -1297,7 +1300,7 @@ function useLayoutEffect(create, inputs) {
|
|
|
1297
1300
|
{
|
|
1298
1301
|
currentHookNameInDev = 'useLayoutEffect';
|
|
1299
1302
|
}
|
|
1300
|
-
warning$1(false, 'useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client.');
|
|
1303
|
+
warning$1(false, 'useLayoutEffect does nothing on the server, because its effect cannot ' + "be encoded into the server renderer's output format. This will lead " + 'to a mismatch between the initial, non-hydrated UI and the intended ' + 'UI. To avoid this, useLayoutEffect should only be used in ' + 'components that render exclusively on the client. ' + 'See https://fb.me/react-uselayouteffect-ssr for common fixes.');
|
|
1301
1304
|
}
|
|
1302
1305
|
|
|
1303
1306
|
function dispatchAction(componentIdentity, queue, action) {
|
|
@@ -3112,6 +3115,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3112
3115
|
ReactDOMServerRenderer.prototype.destroy = function destroy() {
|
|
3113
3116
|
if (!this.exhausted) {
|
|
3114
3117
|
this.exhausted = true;
|
|
3118
|
+
this.clearProviders();
|
|
3115
3119
|
freeThreadID(this.threadID);
|
|
3116
3120
|
}
|
|
3117
3121
|
};
|
|
@@ -3170,6 +3174,15 @@ var ReactDOMServerRenderer = function () {
|
|
|
3170
3174
|
context[this.threadID] = previousValue;
|
|
3171
3175
|
};
|
|
3172
3176
|
|
|
3177
|
+
ReactDOMServerRenderer.prototype.clearProviders = function clearProviders() {
|
|
3178
|
+
// Restore any remaining providers on the stack to previous values
|
|
3179
|
+
for (var index = this.contextIndex; index >= 0; index--) {
|
|
3180
|
+
var _context = this.contextStack[index];
|
|
3181
|
+
var previousValue = this.contextValueStack[index];
|
|
3182
|
+
_context[this.threadID] = previousValue;
|
|
3183
|
+
}
|
|
3184
|
+
};
|
|
3185
|
+
|
|
3173
3186
|
ReactDOMServerRenderer.prototype.read = function read(bytes) {
|
|
3174
3187
|
if (this.exhausted) {
|
|
3175
3188
|
return null;
|
|
@@ -3335,7 +3348,25 @@ var ReactDOMServerRenderer = function () {
|
|
|
3335
3348
|
case REACT_SUSPENSE_TYPE:
|
|
3336
3349
|
{
|
|
3337
3350
|
if (enableSuspenseServerRenderer) {
|
|
3338
|
-
var
|
|
3351
|
+
var fallback = nextChild.props.fallback;
|
|
3352
|
+
if (fallback === undefined) {
|
|
3353
|
+
// If there is no fallback, then this just behaves as a fragment.
|
|
3354
|
+
var _nextChildren3 = toArray(nextChild.props.children);
|
|
3355
|
+
var _frame3 = {
|
|
3356
|
+
type: null,
|
|
3357
|
+
domNamespace: parentNamespace,
|
|
3358
|
+
children: _nextChildren3,
|
|
3359
|
+
childIndex: 0,
|
|
3360
|
+
context: context,
|
|
3361
|
+
footer: ''
|
|
3362
|
+
};
|
|
3363
|
+
{
|
|
3364
|
+
_frame3.debugElementStack = [];
|
|
3365
|
+
}
|
|
3366
|
+
this.stack.push(_frame3);
|
|
3367
|
+
return '';
|
|
3368
|
+
}
|
|
3369
|
+
var fallbackChildren = toArray(fallback);
|
|
3339
3370
|
var _nextChildren2 = toArray(nextChild.props.children);
|
|
3340
3371
|
var _fallbackFrame2 = {
|
|
3341
3372
|
type: null,
|
|
@@ -3353,7 +3384,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3353
3384
|
children: _nextChildren2,
|
|
3354
3385
|
childIndex: 0,
|
|
3355
3386
|
context: context,
|
|
3356
|
-
footer: ''
|
|
3387
|
+
footer: '<!--/$-->'
|
|
3357
3388
|
};
|
|
3358
3389
|
{
|
|
3359
3390
|
_frame2.debugElementStack = [];
|
|
@@ -3361,7 +3392,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3361
3392
|
}
|
|
3362
3393
|
this.stack.push(_frame2);
|
|
3363
3394
|
this.suspenseDepth++;
|
|
3364
|
-
return '';
|
|
3395
|
+
return '<!--$-->';
|
|
3365
3396
|
} else {
|
|
3366
3397
|
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
3367
3398
|
}
|
|
@@ -3375,64 +3406,64 @@ var ReactDOMServerRenderer = function () {
|
|
|
3375
3406
|
case REACT_FORWARD_REF_TYPE:
|
|
3376
3407
|
{
|
|
3377
3408
|
var element = nextChild;
|
|
3378
|
-
var
|
|
3409
|
+
var _nextChildren4 = void 0;
|
|
3379
3410
|
var componentIdentity = {};
|
|
3380
3411
|
prepareToUseHooks(componentIdentity);
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
var
|
|
3412
|
+
_nextChildren4 = elementType.render(element.props, element.ref);
|
|
3413
|
+
_nextChildren4 = finishHooks(elementType.render, element.props, _nextChildren4, element.ref);
|
|
3414
|
+
_nextChildren4 = toArray(_nextChildren4);
|
|
3415
|
+
var _frame4 = {
|
|
3385
3416
|
type: null,
|
|
3386
3417
|
domNamespace: parentNamespace,
|
|
3387
|
-
children:
|
|
3418
|
+
children: _nextChildren4,
|
|
3388
3419
|
childIndex: 0,
|
|
3389
3420
|
context: context,
|
|
3390
3421
|
footer: ''
|
|
3391
3422
|
};
|
|
3392
3423
|
{
|
|
3393
|
-
|
|
3424
|
+
_frame4.debugElementStack = [];
|
|
3394
3425
|
}
|
|
3395
|
-
this.stack.push(
|
|
3426
|
+
this.stack.push(_frame4);
|
|
3396
3427
|
return '';
|
|
3397
3428
|
}
|
|
3398
3429
|
case REACT_MEMO_TYPE:
|
|
3399
3430
|
{
|
|
3400
3431
|
var _element = nextChild;
|
|
3401
|
-
var
|
|
3402
|
-
var
|
|
3432
|
+
var _nextChildren5 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
3433
|
+
var _frame5 = {
|
|
3403
3434
|
type: null,
|
|
3404
3435
|
domNamespace: parentNamespace,
|
|
3405
|
-
children:
|
|
3436
|
+
children: _nextChildren5,
|
|
3406
3437
|
childIndex: 0,
|
|
3407
3438
|
context: context,
|
|
3408
3439
|
footer: ''
|
|
3409
3440
|
};
|
|
3410
3441
|
{
|
|
3411
|
-
|
|
3442
|
+
_frame5.debugElementStack = [];
|
|
3412
3443
|
}
|
|
3413
|
-
this.stack.push(
|
|
3444
|
+
this.stack.push(_frame5);
|
|
3414
3445
|
return '';
|
|
3415
3446
|
}
|
|
3416
3447
|
case REACT_PROVIDER_TYPE:
|
|
3417
3448
|
{
|
|
3418
3449
|
var provider = nextChild;
|
|
3419
3450
|
var nextProps = provider.props;
|
|
3420
|
-
var
|
|
3421
|
-
var
|
|
3451
|
+
var _nextChildren6 = toArray(nextProps.children);
|
|
3452
|
+
var _frame6 = {
|
|
3422
3453
|
type: provider,
|
|
3423
3454
|
domNamespace: parentNamespace,
|
|
3424
|
-
children:
|
|
3455
|
+
children: _nextChildren6,
|
|
3425
3456
|
childIndex: 0,
|
|
3426
3457
|
context: context,
|
|
3427
3458
|
footer: ''
|
|
3428
3459
|
};
|
|
3429
3460
|
{
|
|
3430
|
-
|
|
3461
|
+
_frame6.debugElementStack = [];
|
|
3431
3462
|
}
|
|
3432
3463
|
|
|
3433
3464
|
this.pushProvider(provider);
|
|
3434
3465
|
|
|
3435
|
-
this.stack.push(
|
|
3466
|
+
this.stack.push(_frame6);
|
|
3436
3467
|
return '';
|
|
3437
3468
|
}
|
|
3438
3469
|
case REACT_CONTEXT_TYPE:
|
|
@@ -3465,19 +3496,19 @@ var ReactDOMServerRenderer = function () {
|
|
|
3465
3496
|
validateContextBounds(reactContext, threadID);
|
|
3466
3497
|
var nextValue = reactContext[threadID];
|
|
3467
3498
|
|
|
3468
|
-
var
|
|
3469
|
-
var
|
|
3499
|
+
var _nextChildren7 = toArray(_nextProps.children(nextValue));
|
|
3500
|
+
var _frame7 = {
|
|
3470
3501
|
type: nextChild,
|
|
3471
3502
|
domNamespace: parentNamespace,
|
|
3472
|
-
children:
|
|
3503
|
+
children: _nextChildren7,
|
|
3473
3504
|
childIndex: 0,
|
|
3474
3505
|
context: context,
|
|
3475
3506
|
footer: ''
|
|
3476
3507
|
};
|
|
3477
3508
|
{
|
|
3478
|
-
|
|
3509
|
+
_frame7.debugElementStack = [];
|
|
3479
3510
|
}
|
|
3480
|
-
this.stack.push(
|
|
3511
|
+
this.stack.push(_frame7);
|
|
3481
3512
|
return '';
|
|
3482
3513
|
}
|
|
3483
3514
|
case REACT_LAZY_TYPE:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.5
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
switch(a){case X:return"ConcurrentMode";case N:return"Fragment";case Y:return"Portal";case Z:return"Profiler";case aa:return"StrictMode";case O:return"Suspense"}if("object"===typeof a)switch(a.$$typeof){case ba:return"Context.Consumer";case P:return"Context.Provider";case ca:var b=a.render;b=b.displayName||b.name||"";return a.displayName||(""!==b?"ForwardRef("+b+")":"ForwardRef");case da:return J(a.type);case ea:if(a=1===a._status?a._result:null)return J(a)}return null}function F(a,b){for(var d=a._threadCount|
|
|
12
12
|
0;d<=b;d++)a[d]=a._currentValue2,a._threadCount=d+1}function ua(a,b,d){var c=a.contextType;if("object"===typeof c&&null!==c)return F(c,d),c[d];if(a=a.contextTypes){d={};for(var f in a)d[f]=b[f];b=d}else b=fa;return b}function ha(a){if(ia.call(ja,a))return!0;if(ia.call(ka,a))return!1;if(va.test(a))return ja[a]=!0;ka[a]=!0;return!1}function wa(a,b,d,c){if(null!==d&&0===d.type)return!1;switch(typeof b){case "function":case "symbol":return!0;case "boolean":if(c)return!1;if(null!==d)return!d.acceptsBooleans;
|
|
13
13
|
a=a.toLowerCase().slice(0,5);return"data-"!==a&&"aria-"!==a;default:return!1}}function xa(a,b,d,c){if(null===b||"undefined"===typeof b||wa(a,b,d,c))return!0;if(c)return!1;if(null!==d)switch(d.type){case 3:return!b;case 4:return!1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return!1}function t(a,b,d,c,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=c;this.attributeNamespace=f;this.mustUseProperty=d;this.propertyName=a;this.type=b}function C(a){if("boolean"===typeof a||"number"===
|
|
14
|
-
typeof a)return""+a;a=""+a;var b=ya.exec(a);if(b){var d="",c,f=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a}function K(){null===x?u("
|
|
14
|
+
typeof a)return""+a;a=""+a;var b=ya.exec(a);if(b){var d="",c,f=0;for(c=b.index;c<a.length;c++){switch(a.charCodeAt(c)){case 34:b=""";break;case 38:b="&";break;case 39:b="'";break;case 60:b="<";break;case 62:b=">";break;default:continue}f!==c&&(d+=a.substring(f,c));f=c+1;d+=b}a=f!==c?d+a.substring(f,c):d}return a}function K(){null===x?u("321"):void 0;return x}function la(){0<L&&u("312");return{memoizedState:null,queue:null,next:null}}function Q(){null===k?null===M?(G=!1,M=k=la()):
|
|
15
15
|
(G=!0,k=M):null===k.next?(G=!1,k=k.next=la()):(G=!0,k=k.next);return k}function ma(a,b,d,c){for(;R;)R=!1,L+=1,k=null,d=a(b,c);M=x=null;L=0;k=A=null;return d}function na(a,b){return"function"===typeof b?b(a):b}function oa(a,b,d){x=K();k=Q();if(G){var c=k.queue;b=c.dispatch;if(null!==A&&(d=A.get(c),void 0!==d)){A.delete(c);c=k.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);k.memoizedState=c;return[c,b]}return[k.memoizedState,b]}a=a===na?"function"===typeof b?b():b:void 0!==d?d(b):b;k.memoizedState=
|
|
16
16
|
a;a=k.queue={last:null,dispatch:null};a=a.dispatch=za.bind(null,x,a);return[k.memoizedState,a]}function za(a,b,d){25>L?void 0:u("301");if(a===x)if(R=!0,a={action:d,next:null},null===A&&(A=new Map),d=A.get(b),void 0===d)A.set(b,a);else{for(b=d;null!==b.next;)b=b.next;b.next=a}}function S(){}function pa(a){switch(a){case "svg":return"http://www.w3.org/2000/svg";case "math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Aa(a){if(void 0===a||null===a)return a;
|
|
17
17
|
var b="";v.Children.forEach(a,function(a){null!=a&&(b+=a)});return b}function qa(a,b){void 0===a&&u("152",J(b)||"Component")}function Ba(a,b,d){function c(c,f){var e=ua(f,b,d),g=[],h=!1,m={isMounted:function(a){return!1},enqueueForceUpdate:function(a){if(null===g)return null},enqueueReplaceState:function(a,b){h=!0;g=[b]},enqueueSetState:function(a,b){if(null===g)return null;g.push(b)}},l=void 0;if(f.prototype&&f.prototype.isReactComponent){if(l=new f(c.props,e,m),"function"===typeof f.getDerivedStateFromProps){var k=
|
|
@@ -22,22 +22,23 @@ f.getDerivedStateFromProps.call(null,c.props,l.state);null!=k&&(l.state=z({},l.s
|
|
|
22
22
|
ia=Object.prototype.hasOwnProperty,ka={},ja={},w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){w[a]=new t(a,0,!1,a,null)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];w[b]=new t(b,1,!1,a[1],null)});["contentEditable","draggable","spellCheck","value"].forEach(function(a){w[a]=new t(a,2,!1,
|
|
23
23
|
a.toLowerCase(),null)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){w[a]=new t(a,2,!1,a,null)});"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){w[a]=new t(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){w[a]=new t(a,3,!0,a,null)});["capture",
|
|
24
24
|
"download"].forEach(function(a){w[a]=new t(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){w[a]=new t(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){w[a]=new t(a,5,!1,a.toLowerCase(),null)});var T=/[\-:]([a-z])/g,U=function(a){return a[1].toUpperCase()};"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=
|
|
25
|
-
a.replace(T,U);w[b]=new t(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(T,U);w[b]=new t(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(T,U);w[b]=new t(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});w
|
|
26
|
-
b){b=H;F(a,b);return a[b]},useContext:function(a,b){K();b=H;F(a,b);return a[b]},useMemo:function(a,b){x=K();k=Q();b=void 0===b?null:b;if(null!==k){var d=k.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e=b[f],h=c[f];if((e!==h||0===e&&1/e!==1/h)&&(e===e||h===h)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();k.memoizedState=[a,b];return a},useReducer:oa,useRef:function(a){x=K();k=
|
|
27
|
-
k.memoizedState=a):b},useState:function(a){return oa(na,a)},useLayoutEffect:function(a,b){},useCallback:function(a,b){return a},useImperativeHandle:S,useEffect:S,useDebugValue:S},ra={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ea=z({menuitem:!0},ra),I={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,
|
|
28
|
-
flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
|
29
|
-
b+a.charAt(0).toUpperCase()+a.substring(1);I[b]=I[a]})});var Ga=/([A-Z])/g,Ha=/^ms-/,B=v.Children.toArray,V=p.ReactCurrentDispatcher,Ia={listing:!0,pre:!0,textarea:!0},Ja=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sa={},W={},Ka=Object.prototype.hasOwnProperty,La={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},ta=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
|
|
30
|
-
N?b=[b]:(b=b.props.children,b=v.isValidElement(b)?[b]:B(b)):b=B(b);b={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:b,childIndex:0,context:fa,footer:""};var c=q[0];if(0===c){var f=q;c=f.length;var e=2*c;65536>=e?void 0:u("304");var h=new Uint16Array(e);h.set(f);q=h;q[0]=c+1;for(f=c;f<e-1;f++)q[f]=f+1;q[e-1]=0}else q[0]=q[c];this.threadID=c;this.stack=[b];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;
|
|
31
|
-
|
|
32
|
-
null;this.contextIndex--;b[this.threadID]=c};a.prototype.read=function(a){if(this.exhausted)return null;var b=H;H=this.threadID;var c=V.current;V.current=Da;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;q[h]=q[0];q[0]=h;break}var g=this.stack[this.stack.length-
|
|
33
|
-
null!=g.type.type&&g.type.type.$$typeof===P)this.popProvider(g.type);else if(g.type===O){this.suspenseDepth--;var p=f.pop();if(e){e=!1;var r=g.fallbackFrame;r?void 0:u("303");this.stack.push(r);continue}else f[this.suspenseDepth]+=p}f[this.suspenseDepth]+=k}else{var m=g.children[g.childIndex++],l="";try{l+=this.render(m,
|
|
34
|
-
function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return C(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+C(c);this.previousWasTextNode=!0;return C(c)}d=Ba(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!v.isValidElement(a)){if(null!=
|
|
35
|
-
return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case aa:case X:case Z:case N:return a=B(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case O:u("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case ca:x={};var e=b.render(a.props,
|
|
36
|
-
z({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case P:return b=B(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case ba:b=a.type;e=a.props;var h=this.threadID;F(b,h);
|
|
37
|
-
function(a,d,c){var b=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===c&&pa(b);sa.hasOwnProperty(b)||(Ja.test(b)?void 0:u("65",b),sa[b]=!0);var e=a.props;if("input"===b)e=z({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:
|
|
38
|
-
h=""+g);null==h&&(h="")}e=z({},e,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=z({},e,{value:void 0});else if("option"===b){g=this.currentSelectValue;var k=Aa(e.children);if(null!=g){var p=null!=e.value?e.value+"":k;h=!1;if(Array.isArray(g))for(var r=
|
|
39
|
-
u("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?u("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:u("61")),null!=h.style&&"object"!==typeof h.style?u("62",""):void 0;h=e;g=this.makeStaticMarkup;k=1===this.stack.length;p="<"+a.type;
|
|
40
|
-
W[v];else{var x=v.replace(Ga,"-$1").toLowerCase().replace(Ha,"-ms-");v=W[v]=x}l+=q+v+":";q=r;n=null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||I.hasOwnProperty(q)&&I[q]?(""+t).trim():t+"px";l+=n;q=";"}}m=l||null}r=null;b:if(n=b,t=h,-1===n.indexOf("-"))n="string"===typeof t.is;
|
|
41
|
-
|
|
42
|
-
if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=C(g);break a}g=null}null!=g?(e=[],Ia[b]&&"\n"===g.charAt(0)&&(y+="\n"),y+=g):e=B(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?pa(a):"http://www.w3.org/2000/svg"===
|
|
43
|
-
new ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){u("207")},renderToStaticNodeStream:function(){u("208")},version:"16.8.
|
|
25
|
+
a.replace(T,U);w[b]=new t(b,1,!1,a,null)});"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(T,U);w[b]=new t(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(T,U);w[b]=new t(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});["tabIndex","crossOrigin"].forEach(function(a){w[a]=new t(a,1,!1,a.toLowerCase(),null)});var ya=/["'&<>]/,x=null,M=null,k=null,
|
|
26
|
+
G=!1,R=!1,A=null,L=0,H=0,Da={readContext:function(a,b){b=H;F(a,b);return a[b]},useContext:function(a,b){K();b=H;F(a,b);return a[b]},useMemo:function(a,b){x=K();k=Q();b=void 0===b?null:b;if(null!==k){var d=k.memoizedState;if(null!==d&&null!==b){a:{var c=d[1];if(null===c)c=!1;else{for(var f=0;f<c.length&&f<b.length;f++){var e=b[f],h=c[f];if((e!==h||0===e&&1/e!==1/h)&&(e===e||h===h)){c=!1;break a}}c=!0}}if(c)return d[0]}}a=a();k.memoizedState=[a,b];return a},useReducer:oa,useRef:function(a){x=K();k=
|
|
27
|
+
Q();var b=k.memoizedState;return null===b?(a={current:a},k.memoizedState=a):b},useState:function(a){return oa(na,a)},useLayoutEffect:function(a,b){},useCallback:function(a,b){return a},useImperativeHandle:S,useEffect:S,useDebugValue:S},ra={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Ea=z({menuitem:!0},ra),I={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,
|
|
28
|
+
boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},
|
|
29
|
+
Fa=["Webkit","ms","Moz","O"];Object.keys(I).forEach(function(a){Fa.forEach(function(b){b=b+a.charAt(0).toUpperCase()+a.substring(1);I[b]=I[a]})});var Ga=/([A-Z])/g,Ha=/^ms-/,B=v.Children.toArray,V=p.ReactCurrentDispatcher,Ia={listing:!0,pre:!0,textarea:!0},Ja=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,sa={},W={},Ka=Object.prototype.hasOwnProperty,La={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null,suppressHydrationWarning:null},ta=function(){function a(b,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");
|
|
30
|
+
v.isValidElement(b)?b.type!==N?b=[b]:(b=b.props.children,b=v.isValidElement(b)?[b]:B(b)):b=B(b);b={type:null,domNamespace:"http://www.w3.org/1999/xhtml",children:b,childIndex:0,context:fa,footer:""};var c=q[0];if(0===c){var f=q;c=f.length;var e=2*c;65536>=e?void 0:u("304");var h=new Uint16Array(e);h.set(f);q=h;q[0]=c+1;for(f=c;f<e-1;f++)q[f]=f+1;q[e-1]=0}else q[0]=q[c];this.threadID=c;this.stack=[b];this.exhausted=!1;this.currentSelectValue=null;this.previousWasTextNode=!1;this.makeStaticMarkup=d;
|
|
31
|
+
this.suspenseDepth=0;this.contextIndex=-1;this.contextStack=[];this.contextValueStack=[]}a.prototype.destroy=function(){if(!this.exhausted){this.exhausted=!0;this.clearProviders();var a=this.threadID;q[a]=q[0];q[0]=a}};a.prototype.pushProvider=function(a){var b=++this.contextIndex,c=a.type._context,f=this.threadID;F(c,f);var e=c[f];this.contextStack[b]=c;this.contextValueStack[b]=e;c[f]=a.props.value};a.prototype.popProvider=function(a){a=this.contextIndex;var b=this.contextStack[a],c=this.contextValueStack[a];
|
|
32
|
+
this.contextStack[a]=null;this.contextValueStack[a]=null;this.contextIndex--;b[this.threadID]=c};a.prototype.clearProviders=function(){for(var a=this.contextIndex;0<=a;a--)this.contextStack[a][this.threadID]=this.contextValueStack[a]};a.prototype.read=function(a){if(this.exhausted)return null;var b=H;H=this.threadID;var c=V.current;V.current=Da;try{for(var f=[""],e=!1;f[0].length<a;){if(0===this.stack.length){this.exhausted=!0;var h=this.threadID;q[h]=q[0];q[0]=h;break}var g=this.stack[this.stack.length-
|
|
33
|
+
1];if(e||g.childIndex>=g.children.length){var k=g.footer;""!==k&&(this.previousWasTextNode=!1);this.stack.pop();if("select"===g.type)this.currentSelectValue=null;else if(null!=g.type&&null!=g.type.type&&g.type.type.$$typeof===P)this.popProvider(g.type);else if(g.type===O){this.suspenseDepth--;var p=f.pop();if(e){e=!1;var r=g.fallbackFrame;r?void 0:u("303");this.stack.push(r);continue}else f[this.suspenseDepth]+=p}f[this.suspenseDepth]+=k}else{var m=g.children[g.childIndex++],l="";try{l+=this.render(m,
|
|
34
|
+
g.context,g.domNamespace)}catch(Ca){throw Ca;}finally{}f.length<=this.suspenseDepth&&f.push("");f[this.suspenseDepth]+=l}}return f[0]}finally{V.current=c,H=b}};a.prototype.render=function(a,d,c){if("string"===typeof a||"number"===typeof a){c=""+a;if(""===c)return"";if(this.makeStaticMarkup)return C(c);if(this.previousWasTextNode)return"\x3c!-- --\x3e"+C(c);this.previousWasTextNode=!0;return C(c)}d=Ba(a,d,this.threadID);a=d.child;d=d.context;if(null===a||!1===a)return"";if(!v.isValidElement(a)){if(null!=
|
|
35
|
+
a&&null!=a.$$typeof){var b=a.$$typeof;b===Y?u("257"):void 0;u("258",b.toString())}a=B(a);this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""});return""}b=a.type;if("string"===typeof b)return this.renderDOM(a,d,c);switch(b){case aa:case X:case Z:case N:return a=B(a.props.children),this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case O:u("294")}if("object"===typeof b&&null!==b)switch(b.$$typeof){case ca:x={};var e=b.render(a.props,
|
|
36
|
+
a.ref);e=ma(b.render,a.props,e,a.ref);e=B(e);this.stack.push({type:null,domNamespace:c,children:e,childIndex:0,context:d,footer:""});return"";case da:return a=[v.createElement(b.type,z({ref:a.ref},a.props))],this.stack.push({type:null,domNamespace:c,children:a,childIndex:0,context:d,footer:""}),"";case P:return b=B(a.props.children),c={type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""},this.pushProvider(a),this.stack.push(c),"";case ba:b=a.type;e=a.props;var h=this.threadID;F(b,h);
|
|
37
|
+
b=B(e.children(b[h]));this.stack.push({type:a,domNamespace:c,children:b,childIndex:0,context:d,footer:""});return"";case ea:u("295")}u("130",null==b?b:typeof b,"")};a.prototype.renderDOM=function(a,d,c){var b=a.type.toLowerCase();"http://www.w3.org/1999/xhtml"===c&&pa(b);sa.hasOwnProperty(b)||(Ja.test(b)?void 0:u("65",b),sa[b]=!0);var e=a.props;if("input"===b)e=z({type:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=e.value?e.value:e.defaultValue,checked:null!=e.checked?e.checked:
|
|
38
|
+
e.defaultChecked});else if("textarea"===b){var h=e.value;if(null==h){h=e.defaultValue;var g=e.children;null!=g&&(null!=h?u("92"):void 0,Array.isArray(g)&&(1>=g.length?void 0:u("93"),g=g[0]),h=""+g);null==h&&(h="")}e=z({},e,{value:void 0,children:""+h})}else if("select"===b)this.currentSelectValue=null!=e.value?e.value:e.defaultValue,e=z({},e,{value:void 0});else if("option"===b){g=this.currentSelectValue;var k=Aa(e.children);if(null!=g){var p=null!=e.value?e.value+"":k;h=!1;if(Array.isArray(g))for(var r=
|
|
39
|
+
0;r<g.length;r++){if(""+g[r]===p){h=!0;break}}else h=""+g===p;e=z({selected:void 0,children:void 0},e,{selected:h,children:k})}}if(h=e)Ea[b]&&(null!=h.children||null!=h.dangerouslySetInnerHTML?u("137",b,""):void 0),null!=h.dangerouslySetInnerHTML&&(null!=h.children?u("60"):void 0,"object"===typeof h.dangerouslySetInnerHTML&&"__html"in h.dangerouslySetInnerHTML?void 0:u("61")),null!=h.style&&"object"!==typeof h.style?u("62",""):void 0;h=e;g=this.makeStaticMarkup;k=1===this.stack.length;p="<"+a.type;
|
|
40
|
+
for(y in h)if(Ka.call(h,y)){var m=h[y];if(null!=m){if("style"===y){r=void 0;var l="",q="";for(r in m)if(m.hasOwnProperty(r)){var n=0===r.indexOf("--"),t=m[r];if(null!=t){var v=r;if(W.hasOwnProperty(v))v=W[v];else{var x=v.replace(Ga,"-$1").toLowerCase().replace(Ha,"-ms-");v=W[v]=x}l+=q+v+":";q=r;n=null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||I.hasOwnProperty(q)&&I[q]?(""+t).trim():t+"px";l+=n;q=";"}}m=l||null}r=null;b:if(n=b,t=h,-1===n.indexOf("-"))n="string"===typeof t.is;
|
|
41
|
+
else switch(n){case "annotation-xml":case "color-profile":case "font-face":case "font-face-src":case "font-face-uri":case "font-face-format":case "font-face-name":case "missing-glyph":n=!1;break b;default:n=!0}if(n)La.hasOwnProperty(y)||(r=y,r=ha(r)&&null!=m?r+"="+('"'+C(m)+'"'):"");else{n=y;r=m;m=w.hasOwnProperty(n)?w[n]:null;if(t="style"!==n)t=null!==m?0===m.type:!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1]?!1:!0;t||xa(n,r,m,!1)?r="":null!==m?(n=m.attributeName,m=m.type,r=3===m||
|
|
42
|
+
4===m&&!0===r?n+'=""':n+"="+('"'+C(r)+'"')):r=ha(n)?n+"="+('"'+C(r)+'"'):""}r&&(p+=" "+r)}}g||k&&(p+=' data-reactroot=""');var y=p;h="";ra.hasOwnProperty(b)?y+="/>":(y+=">",h="</"+a.type+">");a:{g=e.dangerouslySetInnerHTML;if(null!=g){if(null!=g.__html){g=g.__html;break a}}else if(g=e.children,"string"===typeof g||"number"===typeof g){g=C(g);break a}g=null}null!=g?(e=[],Ia[b]&&"\n"===g.charAt(0)&&(y+="\n"),y+=g):e=B(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?pa(a):"http://www.w3.org/2000/svg"===
|
|
43
|
+
c&&"foreignObject"===a?"http://www.w3.org/1999/xhtml":c;this.stack.push({domNamespace:c,type:b,children:e,childIndex:0,context:d,footer:h});this.previousWasTextNode=!1;return y};return a}();p={renderToString:function(a){a=new ta(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new ta(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){u("207")},renderToStaticNodeStream:function(){u("208")},version:"16.8.5"};
|
|
44
|
+
p=(D={default:p},p)||D;return p.default||p});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.5
|
|
2
2
|
* react-dom-test-utils.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -1222,7 +1222,7 @@ function makeSimulator(eventType) {
|
|
|
1222
1222
|
|
|
1223
1223
|
ReactDOM.unstable_batchedUpdates(function () {
|
|
1224
1224
|
// Normally extractEvent enqueues a state restore, but we'll just always
|
|
1225
|
-
// do that since we
|
|
1225
|
+
// do that since we're by-passing it here.
|
|
1226
1226
|
enqueueStateRestore(domNode);
|
|
1227
1227
|
runEventsInBatch(event);
|
|
1228
1228
|
});
|