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
@@ -1037,11 +1037,17 @@
|
|
1037
1037
|
function createPreambleState() {
|
1038
1038
|
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
1039
1039
|
}
|
1040
|
-
function createFormatContext(
|
1040
|
+
function createFormatContext(
|
1041
|
+
insertionMode,
|
1042
|
+
selectedValue,
|
1043
|
+
tagScope,
|
1044
|
+
viewTransition
|
1045
|
+
) {
|
1041
1046
|
return {
|
1042
1047
|
insertionMode: insertionMode,
|
1043
1048
|
selectedValue: selectedValue,
|
1044
|
-
tagScope: tagScope
|
1049
|
+
tagScope: tagScope,
|
1050
|
+
viewTransition: viewTransition
|
1045
1051
|
};
|
1046
1052
|
}
|
1047
1053
|
function createRootFormatContext(namespaceURI) {
|
@@ -1052,67 +1058,62 @@
|
|
1052
1058
|
? MATHML_MODE
|
1053
1059
|
: ROOT_HTML_MODE,
|
1054
1060
|
null,
|
1055
|
-
0
|
1061
|
+
0,
|
1062
|
+
null
|
1056
1063
|
);
|
1057
1064
|
}
|
1058
1065
|
function getChildFormatContext(parentContext, type, props) {
|
1066
|
+
var subtreeScope = parentContext.tagScope & -25;
|
1059
1067
|
switch (type) {
|
1060
1068
|
case "noscript":
|
1061
|
-
return createFormatContext(
|
1062
|
-
HTML_MODE,
|
1063
|
-
null,
|
1064
|
-
parentContext.tagScope | 1
|
1065
|
-
);
|
1069
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 1, null);
|
1066
1070
|
case "select":
|
1067
1071
|
return createFormatContext(
|
1068
1072
|
HTML_MODE,
|
1069
1073
|
null != props.value ? props.value : props.defaultValue,
|
1070
|
-
|
1074
|
+
subtreeScope,
|
1075
|
+
null
|
1071
1076
|
);
|
1072
1077
|
case "svg":
|
1073
|
-
return createFormatContext(SVG_MODE, null,
|
1078
|
+
return createFormatContext(SVG_MODE, null, subtreeScope, null);
|
1074
1079
|
case "picture":
|
1075
|
-
return createFormatContext(
|
1076
|
-
HTML_MODE,
|
1077
|
-
null,
|
1078
|
-
parentContext.tagScope | 2
|
1079
|
-
);
|
1080
|
+
return createFormatContext(HTML_MODE, null, subtreeScope | 2, null);
|
1080
1081
|
case "math":
|
1081
|
-
return createFormatContext(MATHML_MODE, null,
|
1082
|
+
return createFormatContext(MATHML_MODE, null, subtreeScope, null);
|
1082
1083
|
case "foreignObject":
|
1083
|
-
return createFormatContext(HTML_MODE, null,
|
1084
|
+
return createFormatContext(HTML_MODE, null, subtreeScope, null);
|
1084
1085
|
case "table":
|
1085
|
-
return createFormatContext(
|
1086
|
-
HTML_TABLE_MODE,
|
1087
|
-
null,
|
1088
|
-
parentContext.tagScope
|
1089
|
-
);
|
1086
|
+
return createFormatContext(HTML_TABLE_MODE, null, subtreeScope, null);
|
1090
1087
|
case "thead":
|
1091
1088
|
case "tbody":
|
1092
1089
|
case "tfoot":
|
1093
1090
|
return createFormatContext(
|
1094
1091
|
HTML_TABLE_BODY_MODE,
|
1095
1092
|
null,
|
1096
|
-
|
1093
|
+
subtreeScope,
|
1094
|
+
null
|
1097
1095
|
);
|
1098
1096
|
case "colgroup":
|
1099
1097
|
return createFormatContext(
|
1100
1098
|
HTML_COLGROUP_MODE,
|
1101
1099
|
null,
|
1102
|
-
|
1100
|
+
subtreeScope,
|
1101
|
+
null
|
1103
1102
|
);
|
1104
1103
|
case "tr":
|
1105
1104
|
return createFormatContext(
|
1106
1105
|
HTML_TABLE_ROW_MODE,
|
1107
1106
|
null,
|
1108
|
-
|
1107
|
+
subtreeScope,
|
1108
|
+
null
|
1109
1109
|
);
|
1110
1110
|
case "head":
|
1111
1111
|
if (parentContext.insertionMode < HTML_MODE)
|
1112
1112
|
return createFormatContext(
|
1113
1113
|
HTML_HEAD_MODE,
|
1114
1114
|
null,
|
1115
|
-
|
1115
|
+
subtreeScope,
|
1116
|
+
null
|
1116
1117
|
);
|
1117
1118
|
break;
|
1118
1119
|
case "html":
|
@@ -1120,13 +1121,50 @@
|
|
1120
1121
|
return createFormatContext(
|
1121
1122
|
HTML_HTML_MODE,
|
1122
1123
|
null,
|
1123
|
-
|
1124
|
+
subtreeScope,
|
1125
|
+
null
|
1124
1126
|
);
|
1125
1127
|
}
|
1126
1128
|
return parentContext.insertionMode >= HTML_TABLE_MODE ||
|
1127
1129
|
parentContext.insertionMode < HTML_MODE
|
1128
|
-
? createFormatContext(HTML_MODE, null,
|
1129
|
-
: parentContext
|
1130
|
+
? createFormatContext(HTML_MODE, null, subtreeScope, null)
|
1131
|
+
: parentContext.tagScope !== subtreeScope
|
1132
|
+
? createFormatContext(
|
1133
|
+
parentContext.insertionMode,
|
1134
|
+
parentContext.selectedValue,
|
1135
|
+
subtreeScope,
|
1136
|
+
null
|
1137
|
+
)
|
1138
|
+
: parentContext;
|
1139
|
+
}
|
1140
|
+
function getSuspenseViewTransition(parentViewTransition) {
|
1141
|
+
return null === parentViewTransition
|
1142
|
+
? null
|
1143
|
+
: {
|
1144
|
+
update: parentViewTransition.update,
|
1145
|
+
enter: null,
|
1146
|
+
exit: null,
|
1147
|
+
share: parentViewTransition.update,
|
1148
|
+
name: parentViewTransition.autoName,
|
1149
|
+
autoName: parentViewTransition.autoName,
|
1150
|
+
nameIdx: 0
|
1151
|
+
};
|
1152
|
+
}
|
1153
|
+
function getSuspenseFallbackFormatContext(parentContext) {
|
1154
|
+
return createFormatContext(
|
1155
|
+
parentContext.insertionMode,
|
1156
|
+
parentContext.selectedValue,
|
1157
|
+
parentContext.tagScope | 12,
|
1158
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1159
|
+
);
|
1160
|
+
}
|
1161
|
+
function getSuspenseContentFormatContext(parentContext) {
|
1162
|
+
return createFormatContext(
|
1163
|
+
parentContext.insertionMode,
|
1164
|
+
parentContext.selectedValue,
|
1165
|
+
parentContext.tagScope | 16,
|
1166
|
+
getSuspenseViewTransition(parentContext.viewTransition)
|
1167
|
+
);
|
1130
1168
|
}
|
1131
1169
|
function pushTextInstance(target, text, renderState, textEmbedded) {
|
1132
1170
|
if ("" === text) return textEmbedded;
|
@@ -1856,8 +1894,7 @@
|
|
1856
1894
|
preambleState,
|
1857
1895
|
hoistableState,
|
1858
1896
|
formatContext,
|
1859
|
-
textEmbedded
|
1860
|
-
isFallback
|
1897
|
+
textEmbedded
|
1861
1898
|
) {
|
1862
1899
|
validateProperties$2(type, props);
|
1863
1900
|
("input" !== type && "textarea" !== type && "select" !== type) ||
|
@@ -2486,8 +2523,8 @@
|
|
2486
2523
|
} else JSCompiler_inline_result$jscomp$3 = children$jscomp$5;
|
2487
2524
|
return JSCompiler_inline_result$jscomp$3;
|
2488
2525
|
case "title":
|
2489
|
-
var
|
2490
|
-
|
2526
|
+
var noscriptTagInScope = formatContext.tagScope & 1,
|
2527
|
+
isFallback = formatContext.tagScope & 4;
|
2491
2528
|
if (hasOwnProperty.call(props, "children")) {
|
2492
2529
|
var children$jscomp$6 = props.children,
|
2493
2530
|
child = Array.isArray(children$jscomp$6)
|
@@ -2516,7 +2553,7 @@
|
|
2516
2553
|
));
|
2517
2554
|
}
|
2518
2555
|
if (
|
2519
|
-
insertionMode === SVG_MODE ||
|
2556
|
+
formatContext.insertionMode === SVG_MODE ||
|
2520
2557
|
noscriptTagInScope ||
|
2521
2558
|
null != props.itemProp
|
2522
2559
|
)
|
@@ -2531,12 +2568,14 @@
|
|
2531
2568
|
(JSCompiler_inline_result$jscomp$4 = void 0));
|
2532
2569
|
return JSCompiler_inline_result$jscomp$4;
|
2533
2570
|
case "link":
|
2534
|
-
var
|
2571
|
+
var noscriptTagInScope$jscomp$0 = formatContext.tagScope & 1,
|
2572
|
+
isFallback$jscomp$0 = formatContext.tagScope & 4,
|
2573
|
+
rel = props.rel,
|
2535
2574
|
href = props.href,
|
2536
2575
|
precedence = props.precedence;
|
2537
2576
|
if (
|
2538
2577
|
formatContext.insertionMode === SVG_MODE ||
|
2539
|
-
|
2578
|
+
noscriptTagInScope$jscomp$0 ||
|
2540
2579
|
null != props.itemProp ||
|
2541
2580
|
"string" !== typeof rel ||
|
2542
2581
|
"string" !== typeof href ||
|
@@ -2637,12 +2676,13 @@
|
|
2637
2676
|
props
|
2638
2677
|
))
|
2639
2678
|
: (textEmbedded && target$jscomp$0.push(textSeparator),
|
2640
|
-
(JSCompiler_inline_result$jscomp$5 = isFallback
|
2679
|
+
(JSCompiler_inline_result$jscomp$5 = isFallback$jscomp$0
|
2641
2680
|
? null
|
2642
2681
|
: pushLinkImpl(renderState.hoistableChunks, props)));
|
2643
2682
|
return JSCompiler_inline_result$jscomp$5;
|
2644
2683
|
case "script":
|
2645
|
-
var
|
2684
|
+
var noscriptTagInScope$jscomp$1 = formatContext.tagScope & 1,
|
2685
|
+
asyncProp = props.async;
|
2646
2686
|
if (
|
2647
2687
|
"string" !== typeof props.src ||
|
2648
2688
|
!props.src ||
|
@@ -2652,7 +2692,7 @@
|
|
2652
2692
|
props.onLoad ||
|
2653
2693
|
props.onError ||
|
2654
2694
|
formatContext.insertionMode === SVG_MODE ||
|
2655
|
-
|
2695
|
+
noscriptTagInScope$jscomp$1 ||
|
2656
2696
|
null != props.itemProp
|
2657
2697
|
)
|
2658
2698
|
var JSCompiler_inline_result$jscomp$6 = pushScriptImpl(
|
@@ -2690,8 +2730,7 @@
|
|
2690
2730
|
}
|
2691
2731
|
return JSCompiler_inline_result$jscomp$6;
|
2692
2732
|
case "style":
|
2693
|
-
var
|
2694
|
-
noscriptTagInScope$jscomp$0 = !!(formatContext.tagScope & 1);
|
2733
|
+
var noscriptTagInScope$jscomp$2 = formatContext.tagScope & 1;
|
2695
2734
|
if (hasOwnProperty.call(props, "children")) {
|
2696
2735
|
var children$jscomp$7 = props.children,
|
2697
2736
|
child$jscomp$0 = Array.isArray(children$jscomp$7)
|
@@ -2714,8 +2753,8 @@
|
|
2714
2753
|
var precedence$jscomp$0 = props.precedence,
|
2715
2754
|
href$jscomp$0 = props.href;
|
2716
2755
|
if (
|
2717
|
-
insertionMode
|
2718
|
-
noscriptTagInScope$jscomp$
|
2756
|
+
formatContext.insertionMode === SVG_MODE ||
|
2757
|
+
noscriptTagInScope$jscomp$2 ||
|
2719
2758
|
null != props.itemProp ||
|
2720
2759
|
"string" !== typeof precedence$jscomp$0 ||
|
2721
2760
|
"string" !== typeof href$jscomp$0 ||
|
@@ -2837,9 +2876,11 @@
|
|
2837
2876
|
}
|
2838
2877
|
return JSCompiler_inline_result$jscomp$7;
|
2839
2878
|
case "meta":
|
2879
|
+
var noscriptTagInScope$jscomp$3 = formatContext.tagScope & 1,
|
2880
|
+
isFallback$jscomp$1 = formatContext.tagScope & 4;
|
2840
2881
|
if (
|
2841
2882
|
formatContext.insertionMode === SVG_MODE ||
|
2842
|
-
|
2883
|
+
noscriptTagInScope$jscomp$3 ||
|
2843
2884
|
null != props.itemProp
|
2844
2885
|
)
|
2845
2886
|
var JSCompiler_inline_result$jscomp$8 = pushSelfClosing(
|
@@ -2849,7 +2890,7 @@
|
|
2849
2890
|
);
|
2850
2891
|
else
|
2851
2892
|
textEmbedded && target$jscomp$0.push(textSeparator),
|
2852
|
-
(JSCompiler_inline_result$jscomp$8 = isFallback
|
2893
|
+
(JSCompiler_inline_result$jscomp$8 = isFallback$jscomp$1
|
2853
2894
|
? null
|
2854
2895
|
: "string" === typeof props.charSet
|
2855
2896
|
? pushSelfClosing(renderState.charsetChunks, props, "meta")
|
@@ -2912,17 +2953,18 @@
|
|
2912
2953
|
target$jscomp$0.push(leadingNewline);
|
2913
2954
|
return children$jscomp$10;
|
2914
2955
|
case "img":
|
2915
|
-
var
|
2956
|
+
var pictureOrNoScriptTagInScope = formatContext.tagScope & 3,
|
2957
|
+
src = props.src,
|
2916
2958
|
srcSet = props.srcSet;
|
2917
2959
|
if (
|
2918
2960
|
!(
|
2919
2961
|
"lazy" === props.loading ||
|
2920
2962
|
(!src && !srcSet) ||
|
2921
2963
|
("string" !== typeof src && null != src) ||
|
2922
|
-
("string" !== typeof srcSet && null != srcSet)
|
2964
|
+
("string" !== typeof srcSet && null != srcSet) ||
|
2965
|
+
"low" === props.fetchPriority ||
|
2966
|
+
pictureOrNoScriptTagInScope
|
2923
2967
|
) &&
|
2924
|
-
"low" !== props.fetchPriority &&
|
2925
|
-
!1 === !!(formatContext.tagScope & 3) &&
|
2926
2968
|
("string" !== typeof src ||
|
2927
2969
|
":" !== src[4] ||
|
2928
2970
|
("d" !== src[0] && "D" !== src[0]) ||
|
@@ -4545,7 +4587,6 @@
|
|
4545
4587
|
null,
|
4546
4588
|
emptyTreeContext,
|
4547
4589
|
null,
|
4548
|
-
!1,
|
4549
4590
|
emptyContextObject,
|
4550
4591
|
null
|
4551
4592
|
);
|
@@ -4648,7 +4689,6 @@
|
|
4648
4689
|
context,
|
4649
4690
|
treeContext,
|
4650
4691
|
componentStack,
|
4651
|
-
isFallback,
|
4652
4692
|
legacyContext,
|
4653
4693
|
debugTask
|
4654
4694
|
) {
|
@@ -4673,8 +4713,7 @@
|
|
4673
4713
|
context: context,
|
4674
4714
|
treeContext: treeContext,
|
4675
4715
|
componentStack: componentStack,
|
4676
|
-
thenableState: thenableState
|
4677
|
-
isFallback: isFallback
|
4716
|
+
thenableState: thenableState
|
4678
4717
|
};
|
4679
4718
|
task.debugTask = debugTask;
|
4680
4719
|
abortSet.add(task);
|
@@ -4694,7 +4733,6 @@
|
|
4694
4733
|
context,
|
4695
4734
|
treeContext,
|
4696
4735
|
componentStack,
|
4697
|
-
isFallback,
|
4698
4736
|
legacyContext,
|
4699
4737
|
debugTask
|
4700
4738
|
) {
|
@@ -4720,8 +4758,7 @@
|
|
4720
4758
|
context: context,
|
4721
4759
|
treeContext: treeContext,
|
4722
4760
|
componentStack: componentStack,
|
4723
|
-
thenableState: thenableState
|
4724
|
-
isFallback: isFallback
|
4761
|
+
thenableState: thenableState
|
4725
4762
|
};
|
4726
4763
|
task.debugTask = debugTask;
|
4727
4764
|
abortSet.add(task);
|
@@ -5443,16 +5480,15 @@
|
|
5443
5480
|
task.blockedPreamble,
|
5444
5481
|
task.hoistableState,
|
5445
5482
|
task.formatContext,
|
5446
|
-
segment.lastPushedText
|
5447
|
-
task.isFallback
|
5483
|
+
segment.lastPushedText
|
5448
5484
|
);
|
5449
5485
|
segment.lastPushedText = !1;
|
5450
|
-
var
|
5486
|
+
var _prevContext2 = task.formatContext,
|
5451
5487
|
_prevKeyPath2 = task.keyPath;
|
5452
5488
|
task.keyPath = keyPath;
|
5453
5489
|
if (
|
5454
5490
|
(task.formatContext = getChildFormatContext(
|
5455
|
-
|
5491
|
+
_prevContext2,
|
5456
5492
|
type,
|
5457
5493
|
props
|
5458
5494
|
)).insertionMode === HTML_HEAD_MODE
|
@@ -5481,14 +5517,13 @@
|
|
5481
5517
|
task.context,
|
5482
5518
|
task.treeContext,
|
5483
5519
|
task.componentStack,
|
5484
|
-
task.isFallback,
|
5485
5520
|
emptyContextObject,
|
5486
5521
|
task.debugTask
|
5487
5522
|
);
|
5488
5523
|
pushComponentStack(preambleTask);
|
5489
5524
|
request.pingedTasks.push(preambleTask);
|
5490
5525
|
} else renderNode(request, task, _children, -1);
|
5491
|
-
task.formatContext =
|
5526
|
+
task.formatContext = _prevContext2;
|
5492
5527
|
task.keyPath = _prevKeyPath2;
|
5493
5528
|
a: {
|
5494
5529
|
var target = segment.chunks,
|
@@ -5514,19 +5549,19 @@
|
|
5514
5549
|
case "wbr":
|
5515
5550
|
break a;
|
5516
5551
|
case "body":
|
5517
|
-
if (
|
5552
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) {
|
5518
5553
|
resumableState.hasBody = !0;
|
5519
5554
|
break a;
|
5520
5555
|
}
|
5521
5556
|
break;
|
5522
5557
|
case "html":
|
5523
|
-
if (
|
5558
|
+
if (_prevContext2.insertionMode === ROOT_HTML_MODE) {
|
5524
5559
|
resumableState.hasHtml = !0;
|
5525
5560
|
break a;
|
5526
5561
|
}
|
5527
5562
|
break;
|
5528
5563
|
case "head":
|
5529
|
-
if (
|
5564
|
+
if (_prevContext2.insertionMode <= HTML_HTML_MODE) break a;
|
5530
5565
|
}
|
5531
5566
|
target.push(endChunkForTag(type));
|
5532
5567
|
}
|
@@ -5576,16 +5611,21 @@
|
|
5576
5611
|
);
|
5577
5612
|
case REACT_SUSPENSE_TYPE:
|
5578
5613
|
a: if (null !== task.replay) {
|
5579
|
-
var _prevKeyPath = task.keyPath
|
5614
|
+
var _prevKeyPath = task.keyPath,
|
5615
|
+
_prevContext = task.formatContext;
|
5580
5616
|
task.keyPath = keyPath;
|
5617
|
+
task.formatContext =
|
5618
|
+
getSuspenseContentFormatContext(_prevContext);
|
5581
5619
|
var _content = props.children;
|
5582
5620
|
try {
|
5583
5621
|
renderNode(request, task, _content, -1);
|
5584
5622
|
} finally {
|
5585
|
-
task.keyPath = _prevKeyPath
|
5623
|
+
(task.keyPath = _prevKeyPath),
|
5624
|
+
(task.formatContext = _prevContext);
|
5586
5625
|
}
|
5587
5626
|
} else {
|
5588
5627
|
var prevKeyPath$jscomp$3 = task.keyPath,
|
5628
|
+
prevContext$jscomp$0 = task.formatContext,
|
5589
5629
|
parentBoundary = task.blockedBoundary,
|
5590
5630
|
parentPreamble = task.blockedPreamble,
|
5591
5631
|
parentHoistableState = task.hoistableState,
|
@@ -5648,6 +5688,8 @@
|
|
5648
5688
|
task.blockedSegment = boundarySegment;
|
5649
5689
|
task.blockedPreamble = newBoundary.fallbackPreamble;
|
5650
5690
|
task.keyPath = fallbackKeyPath;
|
5691
|
+
task.formatContext =
|
5692
|
+
getSuspenseFallbackFormatContext(prevContext$jscomp$0);
|
5651
5693
|
boundarySegment.status = 6;
|
5652
5694
|
try {
|
5653
5695
|
renderNode(request, task, fallback, -1),
|
@@ -5664,7 +5706,8 @@
|
|
5664
5706
|
} finally {
|
5665
5707
|
(task.blockedSegment = parentSegment),
|
5666
5708
|
(task.blockedPreamble = parentPreamble),
|
5667
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5709
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5710
|
+
(task.formatContext = prevContext$jscomp$0);
|
5668
5711
|
}
|
5669
5712
|
var suspendedPrimaryTask = createRenderTask(
|
5670
5713
|
request,
|
@@ -5677,11 +5720,10 @@
|
|
5677
5720
|
newBoundary.contentState,
|
5678
5721
|
task.abortSet,
|
5679
5722
|
keyPath,
|
5680
|
-
task.formatContext,
|
5723
|
+
getSuspenseContentFormatContext(task.formatContext),
|
5681
5724
|
task.context,
|
5682
5725
|
task.treeContext,
|
5683
5726
|
task.componentStack,
|
5684
|
-
task.isFallback,
|
5685
5727
|
emptyContextObject,
|
5686
5728
|
task.debugTask
|
5687
5729
|
);
|
@@ -5693,6 +5735,8 @@
|
|
5693
5735
|
task.hoistableState = newBoundary.contentState;
|
5694
5736
|
task.blockedSegment = contentRootSegment;
|
5695
5737
|
task.keyPath = keyPath;
|
5738
|
+
task.formatContext =
|
5739
|
+
getSuspenseContentFormatContext(prevContext$jscomp$0);
|
5696
5740
|
contentRootSegment.status = 6;
|
5697
5741
|
try {
|
5698
5742
|
if (
|
@@ -5740,7 +5784,8 @@
|
|
5740
5784
|
(task.blockedPreamble = parentPreamble),
|
5741
5785
|
(task.hoistableState = parentHoistableState),
|
5742
5786
|
(task.blockedSegment = parentSegment),
|
5743
|
-
(task.keyPath = prevKeyPath$jscomp$3)
|
5787
|
+
(task.keyPath = prevKeyPath$jscomp$3),
|
5788
|
+
(task.formatContext = prevContext$jscomp$0);
|
5744
5789
|
}
|
5745
5790
|
var suspendedFallbackTask = createRenderTask(
|
5746
5791
|
request,
|
@@ -5753,11 +5798,10 @@
|
|
5753
5798
|
newBoundary.fallbackState,
|
5754
5799
|
fallbackAbortSet,
|
5755
5800
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
5756
|
-
task.formatContext,
|
5801
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
5757
5802
|
task.context,
|
5758
5803
|
task.treeContext,
|
5759
5804
|
task.componentStack,
|
5760
|
-
!0,
|
5761
5805
|
emptyContextObject,
|
5762
5806
|
task.debugTask
|
5763
5807
|
);
|
@@ -5938,9 +5982,9 @@
|
|
5938
5982
|
">. The tree doesn't match so React will fallback to client rendering."
|
5939
5983
|
);
|
5940
5984
|
var childNodes = node[2];
|
5941
|
-
|
5942
|
-
|
5943
|
-
task.replay = { nodes: childNodes, slots:
|
5985
|
+
name = node[3];
|
5986
|
+
keyOrIndex = task.node;
|
5987
|
+
task.replay = { nodes: childNodes, slots: name, pendingTasks: 1 };
|
5944
5988
|
try {
|
5945
5989
|
renderElement(request, task, keyPath, type, props, ref);
|
5946
5990
|
if (
|
@@ -5957,21 +6001,21 @@
|
|
5957
6001
|
null !== x &&
|
5958
6002
|
(x === SuspenseException || "function" === typeof x.then)
|
5959
6003
|
)
|
5960
|
-
throw (task.node ===
|
6004
|
+
throw (task.node === keyOrIndex && (task.replay = replay), x);
|
5961
6005
|
task.replay.pendingTasks--;
|
5962
6006
|
type = getThrownInfo(task.componentStack);
|
5963
6007
|
props = request;
|
5964
6008
|
request = task.blockedBoundary;
|
5965
6009
|
keyPath = x;
|
5966
|
-
ref =
|
5967
|
-
|
6010
|
+
ref = name;
|
6011
|
+
name = logRecoverableError(props, keyPath, type, task.debugTask);
|
5968
6012
|
abortRemainingReplayNodes(
|
5969
6013
|
props,
|
5970
6014
|
request,
|
5971
6015
|
childNodes,
|
5972
6016
|
ref,
|
5973
6017
|
keyPath,
|
5974
|
-
|
6018
|
+
name,
|
5975
6019
|
type,
|
5976
6020
|
!1
|
5977
6021
|
);
|
@@ -5986,12 +6030,13 @@
|
|
5986
6030
|
);
|
5987
6031
|
a: {
|
5988
6032
|
replay = void 0;
|
5989
|
-
|
5990
|
-
|
5991
|
-
|
6033
|
+
name = node[5];
|
6034
|
+
type = node[2];
|
6035
|
+
ref = node[3];
|
5992
6036
|
keyOrIndex = null === node[4] ? [] : node[4][2];
|
5993
6037
|
node = null === node[4] ? null : node[4][3];
|
5994
6038
|
var prevKeyPath = task.keyPath,
|
6039
|
+
prevContext = task.formatContext,
|
5995
6040
|
previousReplaySet = task.replay,
|
5996
6041
|
parentBoundary = task.blockedBoundary,
|
5997
6042
|
parentHoistableState = task.hoistableState,
|
@@ -6013,11 +6058,12 @@
|
|
6013
6058
|
null
|
6014
6059
|
);
|
6015
6060
|
props.parentFlushed = !0;
|
6016
|
-
props.rootSegmentID =
|
6061
|
+
props.rootSegmentID = name;
|
6017
6062
|
task.blockedBoundary = props;
|
6018
6063
|
task.hoistableState = props.contentState;
|
6019
6064
|
task.keyPath = keyPath;
|
6020
|
-
task.
|
6065
|
+
task.formatContext = getSuspenseContentFormatContext(prevContext);
|
6066
|
+
task.replay = { nodes: type, slots: ref, pendingTasks: 1 };
|
6021
6067
|
try {
|
6022
6068
|
renderNode(request, task, content, -1);
|
6023
6069
|
if (
|
@@ -6049,7 +6095,8 @@
|
|
6049
6095
|
(task.blockedBoundary = parentBoundary),
|
6050
6096
|
(task.hoistableState = parentHoistableState),
|
6051
6097
|
(task.replay = previousReplaySet),
|
6052
|
-
(task.keyPath = prevKeyPath)
|
6098
|
+
(task.keyPath = prevKeyPath),
|
6099
|
+
(task.formatContext = prevContext);
|
6053
6100
|
}
|
6054
6101
|
props = createReplayTask(
|
6055
6102
|
request,
|
@@ -6061,11 +6108,10 @@
|
|
6061
6108
|
props.fallbackState,
|
6062
6109
|
fallbackAbortSet,
|
6063
6110
|
[keyPath[0], "Suspense Fallback", keyPath[2]],
|
6064
|
-
task.formatContext,
|
6111
|
+
getSuspenseFallbackFormatContext(task.formatContext),
|
6065
6112
|
task.context,
|
6066
6113
|
task.treeContext,
|
6067
6114
|
task.componentStack,
|
6068
|
-
!0,
|
6069
6115
|
emptyContextObject,
|
6070
6116
|
task.debugTask
|
6071
6117
|
);
|
@@ -6450,7 +6496,6 @@
|
|
6450
6496
|
task.context,
|
6451
6497
|
task.treeContext,
|
6452
6498
|
task.componentStack,
|
6453
|
-
task.isFallback,
|
6454
6499
|
emptyContextObject,
|
6455
6500
|
task.debugTask
|
6456
6501
|
);
|
@@ -6482,7 +6527,6 @@
|
|
6482
6527
|
task.context,
|
6483
6528
|
task.treeContext,
|
6484
6529
|
task.componentStack,
|
6485
|
-
task.isFallback,
|
6486
6530
|
emptyContextObject,
|
6487
6531
|
task.debugTask
|
6488
6532
|
);
|
@@ -7871,11 +7915,11 @@
|
|
7871
7915
|
}
|
7872
7916
|
function ensureCorrectIsomorphicReactVersion() {
|
7873
7917
|
var isomorphicReactPackageVersion = React.version;
|
7874
|
-
if ("19.2.0-canary-
|
7918
|
+
if ("19.2.0-canary-4448b187-20250515" !== isomorphicReactPackageVersion)
|
7875
7919
|
throw Error(
|
7876
7920
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7877
7921
|
(isomorphicReactPackageVersion +
|
7878
|
-
"\n - react-dom: 19.2.0-canary-
|
7922
|
+
"\n - react-dom: 19.2.0-canary-4448b187-20250515\nLearn more: https://react.dev/warnings/version-mismatch")
|
7879
7923
|
);
|
7880
7924
|
}
|
7881
7925
|
var React = require("react"),
|
@@ -9557,5 +9601,5 @@
|
|
9557
9601
|
startWork(request);
|
9558
9602
|
});
|
9559
9603
|
};
|
9560
|
-
exports.version = "19.2.0-canary-
|
9604
|
+
exports.version = "19.2.0-canary-4448b187-20250515";
|
9561
9605
|
})();
|