react-dom 19.2.0-canary-d85f86cf-20250514 → 19.2.0-canary-4448b187-20250515
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/cjs/react-dom-client.development.js +5 -5
- package/cjs/react-dom-client.production.js +5 -5
- package/cjs/react-dom-profiling.development.js +5 -5
- package/cjs/react-dom-profiling.profiling.js +5 -5
- package/cjs/react-dom-server-legacy.browser.development.js +134 -91
- package/cjs/react-dom-server-legacy.browser.production.js +179 -128
- package/cjs/react-dom-server-legacy.node.development.js +134 -91
- package/cjs/react-dom-server-legacy.node.production.js +179 -128
- package/cjs/react-dom-server.browser.development.js +137 -93
- package/cjs/react-dom-server.browser.production.js +164 -110
- package/cjs/react-dom-server.bun.development.js +134 -100
- package/cjs/react-dom-server.bun.production.js +167 -113
- package/cjs/react-dom-server.edge.development.js +137 -93
- package/cjs/react-dom-server.edge.production.js +164 -110
- package/cjs/react-dom-server.node.development.js +137 -93
- package/cjs/react-dom-server.node.production.js +164 -110
- package/cjs/react-dom.development.js +1 -1
- package/cjs/react-dom.production.js +1 -1
- package/cjs/react-dom.react-server.development.js +1 -1
- package/cjs/react-dom.react-server.production.js +1 -1
- package/package.json +3 -3
@@ -1631,11 +1631,17 @@ var ROOT_HTML_MODE = 0,
|
|
1631
1631
|
HTML_TABLE_BODY_MODE = 7,
|
1632
1632
|
HTML_TABLE_ROW_MODE = 8,
|
1633
1633
|
HTML_COLGROUP_MODE = 9;
|
1634
|
-
function createFormatContext(
|
1634
|
+
function createFormatContext(
|
1635
|
+
insertionMode,
|
1636
|
+
selectedValue,
|
1637
|
+
tagScope,
|
1638
|
+
viewTransition
|
1639
|
+
) {
|
1635
1640
|
return {
|
1636
1641
|
insertionMode: insertionMode,
|
1637
1642
|
selectedValue: selectedValue,
|
1638
|
-
tagScope: tagScope
|
1643
|
+
tagScope: tagScope,
|
1644
|
+
viewTransition: viewTransition
|
1639
1645
|
};
|
1640
1646
|
}
|
1641
1647
|
function createRootFormatContext(namespaceURI) {
|
@@ -1646,69 +1652,93 @@ function createRootFormatContext(namespaceURI) {
|
|
1646
1652
|
? MATHML_MODE
|
1647
1653
|
: ROOT_HTML_MODE,
|
1648
1654
|
null,
|
1649
|
-
0
|
1655
|
+
0,
|
1656
|
+
null
|
1650
1657
|
);
|
1651
1658
|
}
|
1652
1659
|
function getChildFormatContext(parentContext, type, props) {
|
1660
|
+
var subtreeScope = parentContext.tagScope & -25;
|
1653
1661
|
switch (type) {
|
1654
1662
|
case "noscript":
|
1655
|
-
return createFormatContext(HTML_MODE, null,
|
1663
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
1656
1664
|
case "select":
|
1657
1665
|
return createFormatContext(
|
1658
1666
|
HTML_MODE,
|
1659
1667
|
null != props.value ? props.value : props.defaultValue,
|
1660
|
-
|
1668
|
+
subtreeScope,
|
1669
|
+
null
|
1661
1670
|
);
|
1662
1671
|
case "svg":
|
1663
|
-
return createFormatContext(SVG_MODE, null,
|
1672
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
1664
1673
|
case "picture":
|
1665
|
-
return createFormatContext(HTML_MODE, null,
|
1674
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
1666
1675
|
case "math":
|
1667
|
-
return createFormatContext(MATHML_MODE, null,
|
1676
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
1668
1677
|
case "foreignObject":
|
1669
|
-
return createFormatContext(HTML_MODE, null,
|
1678
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
1670
1679
|
case "table":
|
1671
|
-
return createFormatContext(HTML_TABLE_MODE, null,
|
1680
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
1672
1681
|
case "thead":
|
1673
1682
|
case "tbody":
|
1674
1683
|
case "tfoot":
|
1675
1684
|
return createFormatContext(
|
1676
1685
|
HTML_TABLE_BODY_MODE,
|
1677
1686
|
null,
|
1678
|
-
|
1687
|
+
subtreeScope,
|
1688
|
+
null
|
1679
1689
|
);
|
1680
1690
|
case "colgroup":
|
1681
|
-
return createFormatContext(
|
1682
|
-
HTML_COLGROUP_MODE,
|
1683
|
-
null,
|
1684
|
-
parentContext.tagScope
|
1685
|
-
);
|
1691
|
+
return createFormatContext(HTML_COLGROUP_MODE, null, subtreeScope, null);
|
1686
1692
|
case "tr":
|
1687
|
-
return createFormatContext(
|
1688
|
-
HTML_TABLE_ROW_MODE,
|
1689
|
-
null,
|
1690
|
-
parentContext.tagScope
|
1691
|
-
);
|
1693
|
+
return createFormatContext(HTML_TABLE_ROW_MODE, null, subtreeScope, null);
|
1692
1694
|
case "head":
|
1693
1695
|
if (parentContext.insertionMode < HTML_MODE)
|
1694
|
-
return createFormatContext(
|
1695
|
-
HTML_HEAD_MODE,
|
1696
|
-
null,
|
1697
|
-
parentContext.tagScope
|
1698
|
-
);
|
1696
|
+
return createFormatContext(HTML_HEAD_MODE, null, subtreeScope, null);
|
1699
1697
|
break;
|
1700
1698
|
case "html":
|
1701
1699
|
if (parentContext.insertionMode === ROOT_HTML_MODE)
|
1702
|
-
return createFormatContext(
|
1703
|
-
HTML_HTML_MODE,
|
1704
|
-
null,
|
1705
|
-
parentContext.tagScope
|
1706
|
-
);
|
1700
|
+
return createFormatContext(HTML_HTML_MODE, null, subtreeScope, null);
|
1707
1701
|
}
|
1708
1702
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
1709
1703
|
parentContext.insertionMode < HTML_MODE
|
1710
|
-
? createFormatContext(HTML_MODE, null,
|
1711
|
-
: parentContext
|
1704
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
1705
|
+
: parentContext.tagScope !== subtreeScope
|
1706
|
+
? createFormatContext(
|
1707
|
+
parentContext.insertionMode,
|
1708
|
+
parentContext.selectedValue,
|
1709
|
+
subtreeScope,
|
1710
|
+
null
|
1711
|
+
)
|
1712
|
+
: parentContext;
|
1713
|
+
}
|
1714
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
1715
|
+
return null === parentViewTransition
|
1716
|
+
? null
|
1717
|
+
: {
|
1718
|
+
update: parentViewTransition.update,
|
1719
|
+
enter: null,
|
1720
|
+
exit: null,
|
1721
|
+
share: parentViewTransition.update,
|
1722
|
+
name: parentViewTransition.autoName,
|
1723
|
+
autoName: parentViewTransition.autoName,
|
1724
|
+
nameIdx: 0
|
1725
|
+
};
|
1726
|
+
}
|
1727
|
+
function getSuspenseFallbackFormatContext(parentContext) {
|
1728
|
+
return createFormatContext(
|
1729
|
+
parentContext.insertionMode,
|
1730
|
+
parentContext.selectedValue,
|
1731
|
+
parentContext.tagScope | 12,
|
1732
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1733
|
+
);
|
1734
|
+
}
|
1735
|
+
function getSuspenseContentFormatContext(parentContext) {
|
1736
|
+
return createFormatContext(
|
1737
|
+
parentContext.insertionMode,
|
1738
|
+
parentContext.selectedValue,
|
1739
|
+
parentContext.tagScope | 16,
|
1740
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1741
|
+
);
|
1712
1742
|
}
|
1713
1743
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
1714
1744
|
if ("" === text) return textEmbedded;
|
@@ -2440,8 +2470,7 @@ function pushStartInstance(
|
|
2440
2470
|
preambleState,
|
2441
2471
|
hoistableState,
|
2442
2472
|
formatContext,
|
2443
|
-
textEmbedded
|
2444
|
-
isFallback
|
2473
|
+
textEmbedded
|
2445
2474
|
) {
|
2446
2475
|
validateProperties$2(type, props);
|
2447
2476
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
@@ -3059,8 +3088,8 @@ function pushStartInstance(
|
|
3059
3088
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
3060
3089
|
return JSCompiler_inline_result$jscomp$3;
|
3061
3090
|
case "title":
|
3062
|
-
var
|
3063
|
-
|
3091
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
3092
|
+
isFallback = formatContext.tagScope & 4;
|
3064
3093
|
if (hasOwnProperty.call(props, "children")) {
|
3065
3094
|
var children$jscomp$6 = props.children,
|
3066
3095
|
child = Array.isArray(children$jscomp$6)
|
@@ -3089,7 +3118,7 @@ function pushStartInstance(
|
|
3089
3118
|
));
|
3090
3119
|
}
|
3091
3120
|
if (
|
3092
|
-
insertionMode === SVG_MODE ||
|
3121
|
+
formatContext.insertionMode === SVG_MODE ||
|
3093
3122
|
noscriptTagInScope ||
|
3094
3123
|
null != props.itemProp
|
3095
3124
|
)
|
@@ -3104,12 +3133,14 @@ function pushStartInstance(
|
|
3104
3133
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
3105
3134
|
return JSCompiler_inline_result$jscomp$4;
|
3106
3135
|
case "link":
|
3107
|
-
var
|
3136
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
3137
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
3138
|
+
rel = props.rel,
|
3108
3139
|
href = props.href,
|
3109
3140
|
precedence = props.precedence;
|
3110
3141
|
if (
|
3111
3142
|
formatContext.insertionMode === SVG_MODE ||
|
3112
|
-
|
3143
|
+
noscriptTagInScope$jscomp$0 ||
|
3113
3144
|
null != props.itemProp ||
|
3114
3145
|
"string" !== typeof rel ||
|
3115
3146
|
"string" !== typeof href ||
|
@@ -3207,12 +3238,13 @@ function pushStartInstance(
|
|
3207
3238
|
props
|
3208
3239
|
))
|
3209
3240
|
: (textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
3210
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
3241
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
3211
3242
|
? null
|
3212
3243
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
3213
3244
|
return JSCompiler_inline_result$jscomp$5;
|
3214
3245
|
case "script":
|
3215
|
-
var
|
3246
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
3247
|
+
asyncProp = props.async;
|
3216
3248
|
if (
|
3217
3249
|
"string" !== typeof props.src ||
|
3218
3250
|
!props.src ||
|
@@ -3222,7 +3254,7 @@ function pushStartInstance(
|
|
3222
3254
|
props.onLoad ||
|
3223
3255
|
props.onError ||
|
3224
3256
|
formatContext.insertionMode === SVG_MODE ||
|
3225
|
-
|
3257
|
+
noscriptTagInScope$jscomp$1 ||
|
3226
3258
|
null != props.itemProp
|
3227
3259
|
)
|
3228
3260
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
@@ -3259,8 +3291,7 @@ function pushStartInstance(
|
|
3259
3291
|
}
|
3260
3292
|
return JSCompiler_inline_result$jscomp$6;
|
3261
3293
|
case "style":
|
3262
|
-
var
|
3263
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
3294
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
3264
3295
|
if (hasOwnProperty.call(props, "children")) {
|
3265
3296
|
var children$jscomp$7 = props.children,
|
3266
3297
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
@@ -3283,8 +3314,8 @@ function pushStartInstance(
|
|
3283
3314
|
var precedence$jscomp$0 = props.precedence,
|
3284
3315
|
href$jscomp$0 = props.href;
|
3285
3316
|
if (
|
3286
|
-
insertionMode
|
3287
|
-
noscriptTagInScope$jscomp$
|
3317
|
+
formatContext.insertionMode === SVG_MODE ||
|
3318
|
+
noscriptTagInScope$jscomp$2 ||
|
3288
3319
|
null != props.itemProp ||
|
3289
3320
|
"string" !== typeof precedence$jscomp$0 ||
|
3290
3321
|
"string" !== typeof href$jscomp$0 ||
|
@@ -3393,9 +3424,11 @@ function pushStartInstance(
|
|
3393
3424
|
}
|
3394
3425
|
return JSCompiler_inline_result$jscomp$7;
|
3395
3426
|
case "meta":
|
3427
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
3428
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
3396
3429
|
if (
|
3397
3430
|
formatContext.insertionMode === SVG_MODE ||
|
3398
|
-
|
3431
|
+
noscriptTagInScope$jscomp$3 ||
|
3399
3432
|
null != props.itemProp
|
3400
3433
|
)
|
3401
3434
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
@@ -3405,7 +3438,7 @@ function pushStartInstance(
|
|
3405
3438
|
);
|
3406
3439
|
else
|
3407
3440
|
textEmbedded && target$jscomp$0.push("\x3c!-- --\x3e"),
|
3408
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
3441
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
3409
3442
|
? null
|
3410
3443
|
: "string" === typeof props.charSet
|
3411
3444
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
@@ -3463,17 +3496,18 @@ function pushStartInstance(
|
|
3463
3496
|
target$jscomp$0.push("\n");
|
3464
3497
|
return children$jscomp$10;
|
3465
3498
|
case "img":
|
3466
|
-
var
|
3499
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
3500
|
+
src = props.src,
|
3467
3501
|
srcSet = props.srcSet;
|
3468
3502
|
if (
|
3469
3503
|
!(
|
3470
3504
|
"lazy" === props.loading ||
|
3471
3505
|
(!src && !srcSet) ||
|
3472
3506
|
("string" !== typeof src && null != src) ||
|
3473
|
-
("string" !== typeof srcSet && null != srcSet)
|
3507
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
3508
|
+
"low" === props.fetchPriority ||
|
3509
|
+
pictureOrNoScriptTagInScope
|
3474
3510
|
) &&
|
3475
|
-
"low" !== props.fetchPriority &&
|
3476
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
3477
3511
|
("string" !== typeof src ||
|
3478
3512
|
":" !== src[4] ||
|
3479
3513
|
("d" !== src[0] && "D" !== src[0]) ||
|
@@ -5678,7 +5712,6 @@ function createRequest(
|
|
5678
5712
|
null,
|
5679
5713
|
emptyTreeContext,
|
5680
5714
|
null,
|
5681
|
-
!1,
|
5682
5715
|
emptyContextObject,
|
5683
5716
|
null
|
5684
5717
|
);
|
@@ -5740,7 +5773,6 @@ function createRenderTask(
|
|
5740
5773
|
context,
|
5741
5774
|
treeContext,
|
5742
5775
|
componentStack,
|
5743
|
-
isFallback,
|
5744
5776
|
legacyContext,
|
5745
5777
|
debugTask
|
5746
5778
|
) {
|
@@ -5765,8 +5797,7 @@ function createRenderTask(
|
|
5765
5797
|
context: context,
|
5766
5798
|
treeContext: treeContext,
|
5767
5799
|
componentStack: componentStack,
|
5768
|
-
thenableState: thenableState
|
5769
|
-
isFallback: isFallback
|
5800
|
+
thenableState: thenableState
|
5770
5801
|
};
|
5771
5802
|
task.debugTask = debugTask;
|
5772
5803
|
abortSet.add(task);
|
@@ -5786,7 +5817,6 @@ function createReplayTask(
|
|
5786
5817
|
context,
|
5787
5818
|
treeContext,
|
5788
5819
|
componentStack,
|
5789
|
-
isFallback,
|
5790
5820
|
legacyContext,
|
5791
5821
|
debugTask
|
5792
5822
|
) {
|
@@ -5812,8 +5842,7 @@ function createReplayTask(
|
|
5812
5842
|
context: context,
|
5813
5843
|
treeContext: treeContext,
|
5814
5844
|
componentStack: componentStack,
|
5815
|
-
thenableState: thenableState
|
5816
|
-
isFallback: isFallback
|
5845
|
+
thenableState: thenableState
|
5817
5846
|
};
|
5818
5847
|
task.debugTask = debugTask;
|
5819
5848
|
abortSet.add(task);
|
@@ -6496,15 +6525,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6496
6525
|
task.blockedPreamble,
|
6497
6526
|
task.hoistableState,
|
6498
6527
|
task.formatContext,
|
6499
|
-
segment.lastPushedText
|
6500
|
-
task.isFallback
|
6528
|
+
segment.lastPushedText
|
6501
6529
|
);
|
6502
6530
|
segment.lastPushedText = !1;
|
6503
|
-
var
|
6531
|
+
var _prevContext2 = task.formatContext,
|
6504
6532
|
_prevKeyPath2 = task.keyPath;
|
6505
6533
|
task.keyPath = keyPath;
|
6506
6534
|
if (
|
6507
|
-
(task.formatContext = getChildFormatContext(
|
6535
|
+
(task.formatContext = getChildFormatContext(_prevContext2, type, props))
|
6508
6536
|
.insertionMode === HTML_HEAD_MODE
|
6509
6537
|
) {
|
6510
6538
|
var preambleSegment = createPendingSegment(
|
@@ -6531,14 +6559,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6531
6559
|
task.context,
|
6532
6560
|
task.treeContext,
|
6533
6561
|
task.componentStack,
|
6534
|
-
task.isFallback,
|
6535
6562
|
emptyContextObject,
|
6536
6563
|
task.debugTask
|
6537
6564
|
);
|
6538
6565
|
pushComponentStack(preambleTask);
|
6539
6566
|
request.pingedTasks.push(preambleTask);
|
6540
6567
|
} else renderNode(request, task, _children, -1);
|
6541
|
-
task.formatContext =
|
6568
|
+
task.formatContext = _prevContext2;
|
6542
6569
|
task.keyPath = _prevKeyPath2;
|
6543
6570
|
a: {
|
6544
6571
|
var target = segment.chunks,
|
@@ -6564,19 +6591,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6564
6591
|
case "wbr":
|
6565
6592
|
break a;
|
6566
6593
|
case "body":
|
6567
|
-
if (
|
6594
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
6568
6595
|
resumableState.hasBody = !0;
|
6569
6596
|
break a;
|
6570
6597
|
}
|
6571
6598
|
break;
|
6572
6599
|
case "html":
|
6573
|
-
if (
|
6600
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
6574
6601
|
resumableState.hasHtml = !0;
|
6575
6602
|
break a;
|
6576
6603
|
}
|
6577
6604
|
break;
|
6578
6605
|
case "head":
|
6579
|
-
if (
|
6606
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
6580
6607
|
}
|
6581
6608
|
target.push(endChunkForTag(type));
|
6582
6609
|
}
|
@@ -6624,16 +6651,19 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6624
6651
|
throw Error("ReactDOMServer does not yet support scope components.");
|
6625
6652
|
case REACT_SUSPENSE_TYPE:
|
6626
6653
|
a: if (null !== task.replay) {
|
6627
|
-
var _prevKeyPath = task.keyPath
|
6654
|
+
var _prevKeyPath = task.keyPath,
|
6655
|
+
_prevContext = task.formatContext;
|
6628
6656
|
task.keyPath = keyPath;
|
6657
|
+
task.formatContext = getSuspenseContentFormatContext(_prevContext);
|
6629
6658
|
var _content = props.children;
|
6630
6659
|
try {
|
6631
6660
|
renderNode(request, task, _content, -1);
|
6632
6661
|
} finally {
|
6633
|
-
task.keyPath = _prevKeyPath;
|
6662
|
+
(task.keyPath = _prevKeyPath), (task.formatContext = _prevContext);
|
6634
6663
|
}
|
6635
6664
|
} else {
|
6636
6665
|
var prevKeyPath$jscomp$3 = task.keyPath,
|
6666
|
+
prevContext$jscomp$0 = task.formatContext,
|
6637
6667
|
parentBoundary = task.blockedBoundary,
|
6638
6668
|
parentPreamble = task.blockedPreamble,
|
6639
6669
|
parentHoistableState = task.hoistableState,
|
@@ -6687,6 +6717,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6687
6717
|
task.blockedSegment = boundarySegment;
|
6688
6718
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
6689
6719
|
task.keyPath = fallbackKeyPath;
|
6720
|
+
task.formatContext =
|
6721
|
+
getSuspenseFallbackFormatContext(prevContext$jscomp$0);
|
6690
6722
|
boundarySegment.status = 6;
|
6691
6723
|
try {
|
6692
6724
|
renderNode(request, task, fallback, -1),
|
@@ -6703,7 +6735,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6703
6735
|
} finally {
|
6704
6736
|
(task.blockedSegment = parentSegment),
|
6705
6737
|
(task.blockedPreamble = parentPreamble),
|
6706
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
6738
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
6739
|
+
(task.formatContext = prevContext$jscomp$0);
|
6707
6740
|
}
|
6708
6741
|
var suspendedPrimaryTask = createRenderTask(
|
6709
6742
|
request,
|
@@ -6716,11 +6749,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6716
6749
|
newBoundary.contentState,
|
6717
6750
|
task.abortSet,
|
6718
6751
|
keyPath,
|
6719
|
-
task.formatContext,
|
6752
|
+
getSuspenseContentFormatContext(task.formatContext),
|
6720
6753
|
task.context,
|
6721
6754
|
task.treeContext,
|
6722
6755
|
task.componentStack,
|
6723
|
-
task.isFallback,
|
6724
6756
|
emptyContextObject,
|
6725
6757
|
task.debugTask
|
6726
6758
|
);
|
@@ -6732,6 +6764,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6732
6764
|
task.hoistableState = newBoundary.contentState;
|
6733
6765
|
task.blockedSegment = contentRootSegment;
|
6734
6766
|
task.keyPath = keyPath;
|
6767
|
+
task.formatContext =
|
6768
|
+
getSuspenseContentFormatContext(prevContext$jscomp$0);
|
6735
6769
|
contentRootSegment.status = 6;
|
6736
6770
|
try {
|
6737
6771
|
if (
|
@@ -6778,7 +6812,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6778
6812
|
(task.blockedPreamble = parentPreamble),
|
6779
6813
|
(task.hoistableState = parentHoistableState),
|
6780
6814
|
(task.blockedSegment = parentSegment),
|
6781
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
6815
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
6816
|
+
(task.formatContext = prevContext$jscomp$0);
|
6782
6817
|
}
|
6783
6818
|
var suspendedFallbackTask = createRenderTask(
|
6784
6819
|
request,
|
@@ -6791,11 +6826,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6791
6826
|
newBoundary.fallbackState,
|
6792
6827
|
fallbackAbortSet,
|
6793
6828
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
6794
|
-
task.formatContext,
|
6829
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
6795
6830
|
task.context,
|
6796
6831
|
task.treeContext,
|
6797
6832
|
task.componentStack,
|
6798
|
-
!0,
|
6799
6833
|
emptyContextObject,
|
6800
6834
|
task.debugTask
|
6801
6835
|
);
|
@@ -6976,9 +7010,9 @@ function replayElement(
|
|
6976
7010
|
">. The tree doesn't match so React will fallback to client rendering."
|
6977
7011
|
);
|
6978
7012
|
var childNodes = node[2];
|
6979
|
-
|
6980
|
-
|
6981
|
-
task.replay = { nodes: childNodes, slots:
|
7013
|
+
name = node[3];
|
7014
|
+
keyOrIndex = task.node;
|
7015
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
6982
7016
|
try {
|
6983
7017
|
renderElement(request, task, keyPath, type, props, ref);
|
6984
7018
|
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
|
@@ -6992,21 +7026,21 @@ function replayElement(
|
|
6992
7026
|
null !== x &&
|
6993
7027
|
(x === SuspenseException || "function" === typeof x.then)
|
6994
7028
|
)
|
6995
|
-
throw (task.node ===
|
7029
|
+
throw (task.node === keyOrIndex && (task.replay = replay), x);
|
6996
7030
|
task.replay.pendingTasks--;
|
6997
7031
|
type = getThrownInfo(task.componentStack);
|
6998
7032
|
props = request;
|
6999
7033
|
request = task.blockedBoundary;
|
7000
7034
|
keyPath = x;
|
7001
|
-
ref =
|
7002
|
-
|
7035
|
+
ref = name;
|
7036
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
7003
7037
|
abortRemainingReplayNodes(
|
7004
7038
|
props,
|
7005
7039
|
request,
|
7006
7040
|
childNodes,
|
7007
7041
|
ref,
|
7008
7042
|
keyPath,
|
7009
|
-
|
7043
|
+
name,
|
7010
7044
|
type,
|
7011
7045
|
!1
|
7012
7046
|
);
|
@@ -7021,12 +7055,13 @@ function replayElement(
|
|
7021
7055
|
);
|
7022
7056
|
a: {
|
7023
7057
|
replay = void 0;
|
7024
|
-
|
7025
|
-
|
7026
|
-
|
7058
|
+
name = node[5];
|
7059
|
+
type = node[2];
|
7060
|
+
ref = node[3];
|
7027
7061
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
7028
7062
|
node = null === node[4] ? null : node[4][3];
|
7029
7063
|
var prevKeyPath = task.keyPath,
|
7064
|
+
prevContext = task.formatContext,
|
7030
7065
|
previousReplaySet = task.replay,
|
7031
7066
|
parentBoundary = task.blockedBoundary,
|
7032
7067
|
parentHoistableState = task.hoistableState,
|
@@ -7043,11 +7078,12 @@ function replayElement(
|
|
7043
7078
|
)
|
7044
7079
|
: createSuspenseBoundary(request, fallbackAbortSet, null, null);
|
7045
7080
|
props.parentFlushed = !0;
|
7046
|
-
props.rootSegmentID =
|
7081
|
+
props.rootSegmentID = name;
|
7047
7082
|
task.blockedBoundary = props;
|
7048
7083
|
task.hoistableState = props.contentState;
|
7049
7084
|
task.keyPath = keyPath;
|
7050
|
-
task.
|
7085
|
+
task.formatContext = getSuspenseContentFormatContext(prevContext);
|
7086
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
7051
7087
|
try {
|
7052
7088
|
renderNode(request, task, content, -1);
|
7053
7089
|
if (1 === task.replay.pendingTasks && 0 < task.replay.nodes.length)
|
@@ -7076,7 +7112,8 @@ function replayElement(
|
|
7076
7112
|
(task.blockedBoundary = parentBoundary),
|
7077
7113
|
(task.hoistableState = parentHoistableState),
|
7078
7114
|
(task.replay = previousReplaySet),
|
7079
|
-
(task.keyPath = prevKeyPath)
|
7115
|
+
(task.keyPath = prevKeyPath),
|
7116
|
+
(task.formatContext = prevContext);
|
7080
7117
|
}
|
7081
7118
|
props = createReplayTask(
|
7082
7119
|
request,
|
@@ -7088,11 +7125,10 @@ function replayElement(
|
|
7088
7125
|
props.fallbackState,
|
7089
7126
|
fallbackAbortSet,
|
7090
7127
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
7091
|
-
task.formatContext,
|
7128
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
7092
7129
|
task.context,
|
7093
7130
|
task.treeContext,
|
7094
7131
|
task.componentStack,
|
7095
|
-
!0,
|
7096
7132
|
emptyContextObject,
|
7097
7133
|
task.debugTask
|
7098
7134
|
);
|
@@ -7464,7 +7500,6 @@ function spawnNewSuspendedReplayTask(request, task, thenableState) {
|
|
7464
7500
|
task.context,
|
7465
7501
|
task.treeContext,
|
7466
7502
|
task.componentStack,
|
7467
|
-
task.isFallback,
|
7468
7503
|
emptyContextObject,
|
7469
7504
|
task.debugTask
|
7470
7505
|
);
|
@@ -7496,7 +7531,6 @@ function spawnNewSuspendedRenderTask(request, task, thenableState) {
|
|
7496
7531
|
task.context,
|
7497
7532
|
task.treeContext,
|
7498
7533
|
task.componentStack,
|
7499
|
-
task.isFallback,
|
7500
7534
|
emptyContextObject,
|
7501
7535
|
task.debugTask
|
7502
7536
|
);
|
@@ -8737,15 +8771,15 @@ function abort(request, reason) {
|
|
8737
8771
|
fatalError(request, error$4, reason, null);
|
8738
8772
|
}
|
8739
8773
|
}
|
8740
|
-
var isomorphicReactPackageVersion$jscomp$
|
8774
|
+
var isomorphicReactPackageVersion$jscomp$inline_761 = React.version;
|
8741
8775
|
if (
|
8742
|
-
"19.2.0-canary-
|
8743
|
-
isomorphicReactPackageVersion$jscomp$
|
8776
|
+
"19.2.0-canary-4448b187-20250515" !==
|
8777
|
+
isomorphicReactPackageVersion$jscomp$inline_761
|
8744
8778
|
)
|
8745
8779
|
throw Error(
|
8746
8780
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
8747
|
-
(isomorphicReactPackageVersion$jscomp$
|
8748
|
-
"\n - react-dom: 19.2.0-canary-
|
8781
|
+
(isomorphicReactPackageVersion$jscomp$inline_761 +
|
8782
|
+
"\n - react-dom: 19.2.0-canary-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
8749
8783
|
);
|
8750
8784
|
exports.renderToReadableStream = function (children, options) {
|
8751
8785
|
return new Promise(function (resolve, reject) {
|
@@ -8838,4 +8872,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
8838
8872
|
startWork(request$jscomp$0);
|
8839
8873
|
});
|
8840
8874
|
};
|
8841
|
-
exports.version = "19.2.0-canary-
|
8875
|
+
exports.version = "19.2.0-canary-4448b187-20250515";
|