react-dom 16.8.1 → 16.8.2
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 +6 -6
- package/cjs/react-dom-server.browser.development.js +55 -34
- package/cjs/react-dom-server.browser.production.min.js +3 -3
- package/cjs/react-dom-server.node.development.js +55 -34
- package/cjs/react-dom-server.node.production.min.js +3 -3
- 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 +464 -139
- package/cjs/react-dom-unstable-fire.production.min.js +252 -251
- package/cjs/react-dom-unstable-fire.profiling.min.js +175 -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 +464 -139
- package/cjs/react-dom.production.min.js +252 -251
- package/cjs/react-dom.profiling.min.js +175 -173
- package/package.json +2 -2
- package/umd/react-dom-server.browser.development.js +55 -34
- package/umd/react-dom-server.browser.production.min.js +20 -20
- 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 +472 -139
- 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 +472 -139
- package/umd/react-dom.production.min.js +208 -207
- package/umd/react-dom.profiling.min.js +208 -208
package/build-info.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"branch": "
|
|
3
|
-
"buildNumber":
|
|
4
|
-
"checksum": "
|
|
5
|
-
"commit": "
|
|
6
|
-
"environment": "
|
|
7
|
-
"reactVersion": "16.8.
|
|
2
|
+
"branch": "master",
|
|
3
|
+
"buildNumber": null,
|
|
4
|
+
"checksum": "2cfdfb4",
|
|
5
|
+
"commit": "dfabb77a9",
|
|
6
|
+
"environment": "local",
|
|
7
|
+
"reactVersion": "16.8.1-canary-dfabb77a9"
|
|
8
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
2
2
|
* react-dom-server.browser.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -66,7 +66,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
66
66
|
|
|
67
67
|
// TODO: this is special because it gets imported during build.
|
|
68
68
|
|
|
69
|
-
var ReactVersion = '16.8.
|
|
69
|
+
var ReactVersion = '16.8.2';
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
72
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -741,12 +741,15 @@ var capitalize = function (token) {
|
|
|
741
741
|
attributeName, 'http://www.w3.org/XML/1998/namespace');
|
|
742
742
|
});
|
|
743
743
|
|
|
744
|
-
//
|
|
745
|
-
//
|
|
746
|
-
//
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
744
|
+
// These attribute exists both in HTML and SVG.
|
|
745
|
+
// The attribute name is case-sensitive in SVG so we can't just use
|
|
746
|
+
// the React name like we do for attributes that exist only in HTML.
|
|
747
|
+
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
|
748
|
+
properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
|
|
749
|
+
attributeName.toLowerCase(), // attributeName
|
|
750
|
+
null);
|
|
751
|
+
} // attributeNamespace
|
|
752
|
+
);
|
|
750
753
|
|
|
751
754
|
// code copied and modified from escape-html
|
|
752
755
|
/**
|
|
@@ -3230,7 +3233,25 @@ var ReactDOMServerRenderer = function () {
|
|
|
3230
3233
|
case REACT_SUSPENSE_TYPE:
|
|
3231
3234
|
{
|
|
3232
3235
|
if (enableSuspenseServerRenderer) {
|
|
3233
|
-
var
|
|
3236
|
+
var fallback = nextChild.props.fallback;
|
|
3237
|
+
if (fallback === undefined) {
|
|
3238
|
+
// If there is no fallback, then this just behaves as a fragment.
|
|
3239
|
+
var _nextChildren3 = toArray(nextChild.props.children);
|
|
3240
|
+
var _frame3 = {
|
|
3241
|
+
type: null,
|
|
3242
|
+
domNamespace: parentNamespace,
|
|
3243
|
+
children: _nextChildren3,
|
|
3244
|
+
childIndex: 0,
|
|
3245
|
+
context: context,
|
|
3246
|
+
footer: ''
|
|
3247
|
+
};
|
|
3248
|
+
{
|
|
3249
|
+
_frame3.debugElementStack = [];
|
|
3250
|
+
}
|
|
3251
|
+
this.stack.push(_frame3);
|
|
3252
|
+
return '';
|
|
3253
|
+
}
|
|
3254
|
+
var fallbackChildren = toArray(fallback);
|
|
3234
3255
|
var _nextChildren2 = toArray(nextChild.props.children);
|
|
3235
3256
|
var _fallbackFrame2 = {
|
|
3236
3257
|
type: null,
|
|
@@ -3248,7 +3269,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3248
3269
|
children: _nextChildren2,
|
|
3249
3270
|
childIndex: 0,
|
|
3250
3271
|
context: context,
|
|
3251
|
-
footer: ''
|
|
3272
|
+
footer: '<!--/$-->'
|
|
3252
3273
|
};
|
|
3253
3274
|
{
|
|
3254
3275
|
_frame2.debugElementStack = [];
|
|
@@ -3256,7 +3277,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3256
3277
|
}
|
|
3257
3278
|
this.stack.push(_frame2);
|
|
3258
3279
|
this.suspenseDepth++;
|
|
3259
|
-
return '';
|
|
3280
|
+
return '<!--$-->';
|
|
3260
3281
|
} else {
|
|
3261
3282
|
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
3262
3283
|
}
|
|
@@ -3270,64 +3291,64 @@ var ReactDOMServerRenderer = function () {
|
|
|
3270
3291
|
case REACT_FORWARD_REF_TYPE:
|
|
3271
3292
|
{
|
|
3272
3293
|
var element = nextChild;
|
|
3273
|
-
var
|
|
3294
|
+
var _nextChildren4 = void 0;
|
|
3274
3295
|
var componentIdentity = {};
|
|
3275
3296
|
prepareToUseHooks(componentIdentity);
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
var
|
|
3297
|
+
_nextChildren4 = elementType.render(element.props, element.ref);
|
|
3298
|
+
_nextChildren4 = finishHooks(elementType.render, element.props, _nextChildren4, element.ref);
|
|
3299
|
+
_nextChildren4 = toArray(_nextChildren4);
|
|
3300
|
+
var _frame4 = {
|
|
3280
3301
|
type: null,
|
|
3281
3302
|
domNamespace: parentNamespace,
|
|
3282
|
-
children:
|
|
3303
|
+
children: _nextChildren4,
|
|
3283
3304
|
childIndex: 0,
|
|
3284
3305
|
context: context,
|
|
3285
3306
|
footer: ''
|
|
3286
3307
|
};
|
|
3287
3308
|
{
|
|
3288
|
-
|
|
3309
|
+
_frame4.debugElementStack = [];
|
|
3289
3310
|
}
|
|
3290
|
-
this.stack.push(
|
|
3311
|
+
this.stack.push(_frame4);
|
|
3291
3312
|
return '';
|
|
3292
3313
|
}
|
|
3293
3314
|
case REACT_MEMO_TYPE:
|
|
3294
3315
|
{
|
|
3295
3316
|
var _element = nextChild;
|
|
3296
|
-
var
|
|
3297
|
-
var
|
|
3317
|
+
var _nextChildren5 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
3318
|
+
var _frame5 = {
|
|
3298
3319
|
type: null,
|
|
3299
3320
|
domNamespace: parentNamespace,
|
|
3300
|
-
children:
|
|
3321
|
+
children: _nextChildren5,
|
|
3301
3322
|
childIndex: 0,
|
|
3302
3323
|
context: context,
|
|
3303
3324
|
footer: ''
|
|
3304
3325
|
};
|
|
3305
3326
|
{
|
|
3306
|
-
|
|
3327
|
+
_frame5.debugElementStack = [];
|
|
3307
3328
|
}
|
|
3308
|
-
this.stack.push(
|
|
3329
|
+
this.stack.push(_frame5);
|
|
3309
3330
|
return '';
|
|
3310
3331
|
}
|
|
3311
3332
|
case REACT_PROVIDER_TYPE:
|
|
3312
3333
|
{
|
|
3313
3334
|
var provider = nextChild;
|
|
3314
3335
|
var nextProps = provider.props;
|
|
3315
|
-
var
|
|
3316
|
-
var
|
|
3336
|
+
var _nextChildren6 = toArray(nextProps.children);
|
|
3337
|
+
var _frame6 = {
|
|
3317
3338
|
type: provider,
|
|
3318
3339
|
domNamespace: parentNamespace,
|
|
3319
|
-
children:
|
|
3340
|
+
children: _nextChildren6,
|
|
3320
3341
|
childIndex: 0,
|
|
3321
3342
|
context: context,
|
|
3322
3343
|
footer: ''
|
|
3323
3344
|
};
|
|
3324
3345
|
{
|
|
3325
|
-
|
|
3346
|
+
_frame6.debugElementStack = [];
|
|
3326
3347
|
}
|
|
3327
3348
|
|
|
3328
3349
|
this.pushProvider(provider);
|
|
3329
3350
|
|
|
3330
|
-
this.stack.push(
|
|
3351
|
+
this.stack.push(_frame6);
|
|
3331
3352
|
return '';
|
|
3332
3353
|
}
|
|
3333
3354
|
case REACT_CONTEXT_TYPE:
|
|
@@ -3360,19 +3381,19 @@ var ReactDOMServerRenderer = function () {
|
|
|
3360
3381
|
validateContextBounds(reactContext, threadID);
|
|
3361
3382
|
var nextValue = reactContext[threadID];
|
|
3362
3383
|
|
|
3363
|
-
var
|
|
3364
|
-
var
|
|
3384
|
+
var _nextChildren7 = toArray(_nextProps.children(nextValue));
|
|
3385
|
+
var _frame7 = {
|
|
3365
3386
|
type: nextChild,
|
|
3366
3387
|
domNamespace: parentNamespace,
|
|
3367
|
-
children:
|
|
3388
|
+
children: _nextChildren7,
|
|
3368
3389
|
childIndex: 0,
|
|
3369
3390
|
context: context,
|
|
3370
3391
|
footer: ''
|
|
3371
3392
|
};
|
|
3372
3393
|
{
|
|
3373
|
-
|
|
3394
|
+
_frame7.debugElementStack = [];
|
|
3374
3395
|
}
|
|
3375
|
-
this.stack.push(
|
|
3396
|
+
this.stack.push(_frame7);
|
|
3376
3397
|
return '';
|
|
3377
3398
|
}
|
|
3378
3399
|
case REACT_LAZY_TYPE:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
2
2
|
* react-dom-server.browser.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ function sa(a,b,d,c){if(null===b||"undefined"===typeof b||ra(a,b,d,c))return!0;i
|
|
|
20
20
|
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){J[a]=new I(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){J[a]=new I(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){J[a]=new I(a,3,!0,a,null)});
|
|
21
21
|
["capture","download"].forEach(function(a){J[a]=new I(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){J[a]=new I(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null)});var K=/[\-:]([a-z])/g;function L(a){return a[1].toUpperCase()}
|
|
22
22
|
"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=a.replace(K,
|
|
23
|
-
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});J
|
|
23
|
+
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});["tabIndex","crossOrigin"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null)});var ta=/["'&<>]/;
|
|
24
24
|
function M(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ta.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}var N=null,O=null,P=null,Q=!1,S=!1,T=null,U=0;function V(){null===N?r("307"):void 0;return N}
|
|
25
25
|
function ua(){0<U&&r("312");return{memoizedState:null,queue:null,next:null}}function W(){null===P?null===O?(Q=!1,O=P=ua()):(Q=!0,P=O):null===P.next?(Q=!1,P=P.next=ua()):(Q=!0,P=P.next);return P}function va(a,b,d,c){for(;S;)S=!1,U+=1,P=null,d=a(b,c);O=N=null;U=0;P=T=null;return d}function wa(a,b){return"function"===typeof b?b(a):b}
|
|
26
26
|
function xa(a,b,d){N=V();P=W();if(Q){var c=P.queue;b=c.dispatch;if(null!==T&&(d=T.get(c),void 0!==d)){T.delete(c);c=P.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);P.memoizedState=c;return[c,b]}return[P.memoizedState,b]}a=a===wa?"function"===typeof b?b():b:void 0!==d?d(b):b;P.memoizedState=a;a=P.queue={last:null,dispatch:null};a=a.dispatch=ya.bind(null,N,a);return[P.memoizedState,a]}
|
|
@@ -47,4 +47,4 @@ e,{selected:h,children:D})}}if(h=e)Ea[b]&&(null!=h.children||null!=h.dangerously
|
|
|
47
47
|
0===n.indexOf("--"),u=l[n];if(null!=u){var w=n;if(Ma.hasOwnProperty(w))w=Ma[w];else{var R=w.replace(Ga,"-$1").toLowerCase().replace(Ha,"-ms-");w=Ma[w]=R}k+=t+w+":";t=n;m=null==u||"boolean"===typeof u||""===u?"":m||"number"!==typeof u||0===u||Y.hasOwnProperty(t)&&Y[t]?(""+u).trim():u+"px";k+=m;t=";"}}l=k||null}n=null;b:if(m=b,u=h,-1===m.indexOf("-"))m="string"===typeof u.is;else switch(m){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":m=
|
|
48
48
|
!1;break b;default:m=!0}if(m)Pa.hasOwnProperty(y)||(n=y,n=qa(n)&&null!=l?n+"="+('"'+M(l)+'"'):"");else{m=y;n=l;l=J.hasOwnProperty(m)?J[m]:null;if(u="style"!==m)u=null!==l?0===l.type:!(2<m.length)||"o"!==m[0]&&"O"!==m[0]||"n"!==m[1]&&"N"!==m[1]?!1:!0;u||sa(m,n,l,!1)?n="":null!==l?(m=l.attributeName,l=l.type,n=3===l||4===l&&!0===n?m+'=""':m+"="+('"'+M(n)+'"')):n=qa(m)?m+"="+('"'+M(n)+'"'):""}n&&(B+=" "+n)}}g||D&&(B+=' data-reactroot=""');var y=B;h="";Da.hasOwnProperty(b)?y+="/>":(y+=">",h="</"+a.type+
|
|
49
49
|
">");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=M(g);break a}g=null}null!=g?(e=[],Ja[b]&&"\n"===g.charAt(0)&&(y+="\n"),y+=g):e=Z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?Ca(a):"http://www.w3.org/2000/svg"===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=
|
|
50
|
-
!1;return y};return a}(),Ta={renderToString:function(a){a=new Sa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Sa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.8.
|
|
50
|
+
!1;return y};return a}(),Ta={renderToString:function(a){a=new Sa(a,!1);try{return a.read(Infinity)}finally{a.destroy()}},renderToStaticMarkup:function(a){a=new Sa(a,!0);try{return a.read(Infinity)}finally{a.destroy()}},renderToNodeStream:function(){r("207")},renderToStaticNodeStream:function(){r("208")},version:"16.8.2"},Ua={default:Ta},Va=Ua&&Ta||Ua;module.exports=Va.default||Va;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
2
2
|
* react-dom-server.node.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22,7 +22,7 @@ var stream = require('stream');
|
|
|
22
22
|
|
|
23
23
|
// TODO: this is special because it gets imported during build.
|
|
24
24
|
|
|
25
|
-
var ReactVersion = '16.8.
|
|
25
|
+
var ReactVersion = '16.8.2';
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Use invariant() to assert state which your program assumes to be true.
|
|
@@ -742,12 +742,15 @@ var capitalize = function (token) {
|
|
|
742
742
|
attributeName, 'http://www.w3.org/XML/1998/namespace');
|
|
743
743
|
});
|
|
744
744
|
|
|
745
|
-
//
|
|
746
|
-
//
|
|
747
|
-
//
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
745
|
+
// These attribute exists both in HTML and SVG.
|
|
746
|
+
// The attribute name is case-sensitive in SVG so we can't just use
|
|
747
|
+
// the React name like we do for attributes that exist only in HTML.
|
|
748
|
+
['tabIndex', 'crossOrigin'].forEach(function (attributeName) {
|
|
749
|
+
properties[attributeName] = new PropertyInfoRecord(attributeName, STRING, false, // mustUseProperty
|
|
750
|
+
attributeName.toLowerCase(), // attributeName
|
|
751
|
+
null);
|
|
752
|
+
} // attributeNamespace
|
|
753
|
+
);
|
|
751
754
|
|
|
752
755
|
// code copied and modified from escape-html
|
|
753
756
|
/**
|
|
@@ -3231,7 +3234,25 @@ var ReactDOMServerRenderer = function () {
|
|
|
3231
3234
|
case REACT_SUSPENSE_TYPE:
|
|
3232
3235
|
{
|
|
3233
3236
|
if (enableSuspenseServerRenderer) {
|
|
3234
|
-
var
|
|
3237
|
+
var fallback = nextChild.props.fallback;
|
|
3238
|
+
if (fallback === undefined) {
|
|
3239
|
+
// If there is no fallback, then this just behaves as a fragment.
|
|
3240
|
+
var _nextChildren3 = toArray(nextChild.props.children);
|
|
3241
|
+
var _frame3 = {
|
|
3242
|
+
type: null,
|
|
3243
|
+
domNamespace: parentNamespace,
|
|
3244
|
+
children: _nextChildren3,
|
|
3245
|
+
childIndex: 0,
|
|
3246
|
+
context: context,
|
|
3247
|
+
footer: ''
|
|
3248
|
+
};
|
|
3249
|
+
{
|
|
3250
|
+
_frame3.debugElementStack = [];
|
|
3251
|
+
}
|
|
3252
|
+
this.stack.push(_frame3);
|
|
3253
|
+
return '';
|
|
3254
|
+
}
|
|
3255
|
+
var fallbackChildren = toArray(fallback);
|
|
3235
3256
|
var _nextChildren2 = toArray(nextChild.props.children);
|
|
3236
3257
|
var _fallbackFrame2 = {
|
|
3237
3258
|
type: null,
|
|
@@ -3249,7 +3270,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3249
3270
|
children: _nextChildren2,
|
|
3250
3271
|
childIndex: 0,
|
|
3251
3272
|
context: context,
|
|
3252
|
-
footer: ''
|
|
3273
|
+
footer: '<!--/$-->'
|
|
3253
3274
|
};
|
|
3254
3275
|
{
|
|
3255
3276
|
_frame2.debugElementStack = [];
|
|
@@ -3257,7 +3278,7 @@ var ReactDOMServerRenderer = function () {
|
|
|
3257
3278
|
}
|
|
3258
3279
|
this.stack.push(_frame2);
|
|
3259
3280
|
this.suspenseDepth++;
|
|
3260
|
-
return '';
|
|
3281
|
+
return '<!--$-->';
|
|
3261
3282
|
} else {
|
|
3262
3283
|
invariant(false, 'ReactDOMServer does not yet support Suspense.');
|
|
3263
3284
|
}
|
|
@@ -3271,64 +3292,64 @@ var ReactDOMServerRenderer = function () {
|
|
|
3271
3292
|
case REACT_FORWARD_REF_TYPE:
|
|
3272
3293
|
{
|
|
3273
3294
|
var element = nextChild;
|
|
3274
|
-
var
|
|
3295
|
+
var _nextChildren4 = void 0;
|
|
3275
3296
|
var componentIdentity = {};
|
|
3276
3297
|
prepareToUseHooks(componentIdentity);
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
var
|
|
3298
|
+
_nextChildren4 = elementType.render(element.props, element.ref);
|
|
3299
|
+
_nextChildren4 = finishHooks(elementType.render, element.props, _nextChildren4, element.ref);
|
|
3300
|
+
_nextChildren4 = toArray(_nextChildren4);
|
|
3301
|
+
var _frame4 = {
|
|
3281
3302
|
type: null,
|
|
3282
3303
|
domNamespace: parentNamespace,
|
|
3283
|
-
children:
|
|
3304
|
+
children: _nextChildren4,
|
|
3284
3305
|
childIndex: 0,
|
|
3285
3306
|
context: context,
|
|
3286
3307
|
footer: ''
|
|
3287
3308
|
};
|
|
3288
3309
|
{
|
|
3289
|
-
|
|
3310
|
+
_frame4.debugElementStack = [];
|
|
3290
3311
|
}
|
|
3291
|
-
this.stack.push(
|
|
3312
|
+
this.stack.push(_frame4);
|
|
3292
3313
|
return '';
|
|
3293
3314
|
}
|
|
3294
3315
|
case REACT_MEMO_TYPE:
|
|
3295
3316
|
{
|
|
3296
3317
|
var _element = nextChild;
|
|
3297
|
-
var
|
|
3298
|
-
var
|
|
3318
|
+
var _nextChildren5 = [React.createElement(elementType.type, _assign({ ref: _element.ref }, _element.props))];
|
|
3319
|
+
var _frame5 = {
|
|
3299
3320
|
type: null,
|
|
3300
3321
|
domNamespace: parentNamespace,
|
|
3301
|
-
children:
|
|
3322
|
+
children: _nextChildren5,
|
|
3302
3323
|
childIndex: 0,
|
|
3303
3324
|
context: context,
|
|
3304
3325
|
footer: ''
|
|
3305
3326
|
};
|
|
3306
3327
|
{
|
|
3307
|
-
|
|
3328
|
+
_frame5.debugElementStack = [];
|
|
3308
3329
|
}
|
|
3309
|
-
this.stack.push(
|
|
3330
|
+
this.stack.push(_frame5);
|
|
3310
3331
|
return '';
|
|
3311
3332
|
}
|
|
3312
3333
|
case REACT_PROVIDER_TYPE:
|
|
3313
3334
|
{
|
|
3314
3335
|
var provider = nextChild;
|
|
3315
3336
|
var nextProps = provider.props;
|
|
3316
|
-
var
|
|
3317
|
-
var
|
|
3337
|
+
var _nextChildren6 = toArray(nextProps.children);
|
|
3338
|
+
var _frame6 = {
|
|
3318
3339
|
type: provider,
|
|
3319
3340
|
domNamespace: parentNamespace,
|
|
3320
|
-
children:
|
|
3341
|
+
children: _nextChildren6,
|
|
3321
3342
|
childIndex: 0,
|
|
3322
3343
|
context: context,
|
|
3323
3344
|
footer: ''
|
|
3324
3345
|
};
|
|
3325
3346
|
{
|
|
3326
|
-
|
|
3347
|
+
_frame6.debugElementStack = [];
|
|
3327
3348
|
}
|
|
3328
3349
|
|
|
3329
3350
|
this.pushProvider(provider);
|
|
3330
3351
|
|
|
3331
|
-
this.stack.push(
|
|
3352
|
+
this.stack.push(_frame6);
|
|
3332
3353
|
return '';
|
|
3333
3354
|
}
|
|
3334
3355
|
case REACT_CONTEXT_TYPE:
|
|
@@ -3361,19 +3382,19 @@ var ReactDOMServerRenderer = function () {
|
|
|
3361
3382
|
validateContextBounds(reactContext, threadID);
|
|
3362
3383
|
var nextValue = reactContext[threadID];
|
|
3363
3384
|
|
|
3364
|
-
var
|
|
3365
|
-
var
|
|
3385
|
+
var _nextChildren7 = toArray(_nextProps.children(nextValue));
|
|
3386
|
+
var _frame7 = {
|
|
3366
3387
|
type: nextChild,
|
|
3367
3388
|
domNamespace: parentNamespace,
|
|
3368
|
-
children:
|
|
3389
|
+
children: _nextChildren7,
|
|
3369
3390
|
childIndex: 0,
|
|
3370
3391
|
context: context,
|
|
3371
3392
|
footer: ''
|
|
3372
3393
|
};
|
|
3373
3394
|
{
|
|
3374
|
-
|
|
3395
|
+
_frame7.debugElementStack = [];
|
|
3375
3396
|
}
|
|
3376
|
-
this.stack.push(
|
|
3397
|
+
this.stack.push(_frame7);
|
|
3377
3398
|
return '';
|
|
3378
3399
|
}
|
|
3379
3400
|
case REACT_LAZY_TYPE:
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
2
2
|
* react-dom-server.node.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ function ta(a,b,d,c){if(null===b||"undefined"===typeof b||sa(a,b,d,c))return!0;i
|
|
|
20
20
|
["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){J[a]=new I(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){J[a]=new I(a,3,!1,a.toLowerCase(),null)});["checked","multiple","muted","selected"].forEach(function(a){J[a]=new I(a,3,!0,a,null)});
|
|
21
21
|
["capture","download"].forEach(function(a){J[a]=new I(a,4,!1,a,null)});["cols","rows","size","span"].forEach(function(a){J[a]=new I(a,6,!1,a,null)});["rowSpan","start"].forEach(function(a){J[a]=new I(a,5,!1,a.toLowerCase(),null)});var K=/[\-:]([a-z])/g;function L(a){return a[1].toUpperCase()}
|
|
22
22
|
"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=a.replace(K,
|
|
23
|
-
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});J
|
|
23
|
+
L);J[b]=new I(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(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/1999/xlink")});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(K,L);J[b]=new I(b,1,!1,a,"http://www.w3.org/XML/1998/namespace")});["tabIndex","crossOrigin"].forEach(function(a){J[a]=new I(a,1,!1,a.toLowerCase(),null)});var ua=/["'&<>]/;
|
|
24
24
|
function M(a){if("boolean"===typeof a||"number"===typeof a)return""+a;a=""+a;var b=ua.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}var N=null,O=null,P=null,Q=!1,S=!1,T=null,U=0;function V(){null===N?r("307"):void 0;return N}
|
|
25
25
|
function va(){0<U&&r("312");return{memoizedState:null,queue:null,next:null}}function W(){null===P?null===O?(Q=!1,O=P=va()):(Q=!0,P=O):null===P.next?(Q=!1,P=P.next=va()):(Q=!0,P=P.next);return P}function wa(a,b,d,c){for(;S;)S=!1,U+=1,P=null,d=a(b,c);O=N=null;U=0;P=T=null;return d}function xa(a,b){return"function"===typeof b?b(a):b}
|
|
26
26
|
function ya(a,b,d){N=V();P=W();if(Q){var c=P.queue;b=c.dispatch;if(null!==T&&(d=T.get(c),void 0!==d)){T.delete(c);c=P.memoizedState;do c=a(c,d.action),d=d.next;while(null!==d);P.memoizedState=c;return[c,b]}return[P.memoizedState,b]}a=a===xa?"function"===typeof b?b():b:void 0!==d?d(b):b;P.memoizedState=a;a=P.queue={last:null,dispatch:null};a=a.dispatch=za.bind(null,N,a);return[P.memoizedState,a]}
|
|
@@ -49,4 +49,4 @@ e,{selected:h,children:D})}}if(h=e)Fa[b]&&(null!=h.children||null!=h.dangerously
|
|
|
49
49
|
">");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=M(g);break a}g=null}null!=g?(e=[],Ka[b]&&"\n"===g.charAt(0)&&(y+="\n"),y+=g):e=Z(e.children);a=a.type;c=null==c||"http://www.w3.org/1999/xhtml"===c?Da(a):"http://www.w3.org/2000/svg"===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=
|
|
50
50
|
!1;return y};return a}();function Ua(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}
|
|
51
51
|
var Va=function(a){function b(d,c){if(!(this instanceof b))throw new TypeError("Cannot call a class as a function");var f=a.call(this,{});if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");f=!f||"object"!==typeof f&&"function"!==typeof f?this:f;f.partialRenderer=new Ta(d,c);return f}Ua(b,a);b.prototype._destroy=function(a,b){this.partialRenderer.destroy();b(a)};b.prototype._read=function(a){try{this.push(this.partialRenderer.read(a))}catch(c){this.destroy(c)}};
|
|
52
|
-
return b}(aa.Readable),Wa={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(a){return new Va(a,!1)},renderToStaticNodeStream:function(a){return new Va(a,!0)},version:"16.8.
|
|
52
|
+
return b}(aa.Readable),Wa={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(a){return new Va(a,!1)},renderToStaticNodeStream:function(a){return new Va(a,!0)},version:"16.8.2"},Xa={default:Wa},Ya=Xa&&Wa||Xa;module.exports=Ya.default||Ya;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.8.
|
|
1
|
+
/** @license React v16.8.2
|
|
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
|
});
|