react-dom 19.2.0-canary-c4676e72-20250520 → 19.2.0-canary-8ce15b0f-20250522
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 +352 -197
- package/cjs/react-dom-server-legacy.browser.production.js +335 -213
- package/cjs/react-dom-server-legacy.node.development.js +352 -197
- package/cjs/react-dom-server-legacy.node.production.js +338 -213
- package/cjs/react-dom-server.browser.development.js +338 -164
- package/cjs/react-dom-server.browser.production.js +303 -159
- package/cjs/react-dom-server.bun.development.js +306 -154
- package/cjs/react-dom-server.bun.production.js +309 -162
- package/cjs/react-dom-server.edge.development.js +338 -164
- package/cjs/react-dom-server.edge.production.js +306 -159
- package/cjs/react-dom-server.node.development.js +338 -164
- package/cjs/react-dom-server.node.production.js +306 -159
- 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
@@ -1723,8 +1723,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
1723
1723
|
? null
|
1724
1724
|
: {
|
1725
1725
|
update: parentViewTransition.update,
|
1726
|
-
enter:
|
1727
|
-
exit:
|
1726
|
+
enter: "none",
|
1727
|
+
exit: "none",
|
1728
1728
|
share: parentViewTransition.update,
|
1729
1729
|
name: parentViewTransition.autoName,
|
1730
1730
|
autoName: parentViewTransition.autoName,
|
@@ -3888,7 +3888,7 @@ var completeSegmentScript1Full =
|
|
3888
3888
|
completeSegmentScript2 = '","',
|
3889
3889
|
completeSegmentScriptEnd = '")\x3c/script>',
|
3890
3890
|
completeBoundaryScriptFunctionOnly =
|
3891
|
-
'$RB=[];$RV=function(){$RT=performance.now();
|
3891
|
+
'$RB=[];$RV=function(c){$RT=performance.now();for(var a=0;a<c.length;a+=2){var b=c[a],h=c[a+1],e=b.parentNode;if(e){var f=b.previousSibling,g=0;do{if(b&&8===b.nodeType){var d=b.data;if("/$"===d||"/&"===d)if(0===g)break;else g--;else"$"!==d&&"$?"!==d&&"$~"!==d&&"$!"!==d&&"&"!==d||g++}d=b.nextSibling;e.removeChild(b);b=d}while(b);for(;h.firstChild;)e.insertBefore(h.firstChild,b);f.data="$";f._reactRetry&&f._reactRetry()}}c.length=0};$RC=function(c,a){if(a=document.getElementById(a))if(a.parentNode.removeChild(a),c=document.getElementById(c))c.previousSibling.data="$~",$RB.push(c,a),2===$RB.length&&setTimeout($RV.bind(null,$RB),("number"!==typeof $RT?0:$RT)+300-performance.now())};',
|
3892
3892
|
completeBoundaryScript1Partial = '$RC("',
|
3893
3893
|
completeBoundaryWithStylesScript1FullPartial =
|
3894
3894
|
'$RM=new Map;$RR=function(n,w,p){function u(q){this._p=null;q()}for(var r=new Map,t=document,h,b,e=t.querySelectorAll("link[data-precedence],style[data-precedence]"),v=[],k=0;b=e[k++];)"not all"===b.getAttribute("media")?v.push(b):("LINK"===b.tagName&&$RM.set(b.getAttribute("href"),b),r.set(b.dataset.precedence,h=b));e=0;b=[];var l,a;for(k=!0;;){if(k){var f=p[e++];if(!f){k=!1;e=0;continue}var c=!1,m=0;var d=f[m++];if(a=$RM.get(d)){var g=a._p;c=!0}else{a=t.createElement("link");a.href=d;a.rel=\n"stylesheet";for(a.dataset.precedence=l=f[m++];g=f[m++];)a.setAttribute(g,f[m++]);g=a._p=new Promise(function(q,x){a.onload=u.bind(a,q);a.onerror=u.bind(a,x)});$RM.set(d,a)}d=a.getAttribute("media");!g||d&&!matchMedia(d).matches||b.push(g);if(c)continue}else{a=v[e++];if(!a)break;l=a.getAttribute("data-precedence");a.removeAttribute("media")}c=r.get(l)||h;c===h&&(h=a);r.set(l,a);c?c.parentNode.insertBefore(a,c.nextSibling):(c=t.head,c.insertBefore(a,c.firstChild))}if(p=document.getElementById(n))p.previousSibling.data=\n"$~";Promise.all(b).then($RC.bind(null,n,w),$RX.bind(null,n,"CSS failed to load"))};$RR("',
|
@@ -4617,6 +4617,10 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
4617
4617
|
function hoistStylesheetDependency(stylesheet) {
|
4618
4618
|
this.stylesheets.add(stylesheet);
|
4619
4619
|
}
|
4620
|
+
function hoistHoistables(parentState, childState) {
|
4621
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
4622
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
4623
|
+
}
|
4620
4624
|
var bind = Function.prototype.bind,
|
4621
4625
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
4622
4626
|
function getComponentNameFromType(type) {
|
@@ -5772,11 +5776,14 @@ function createSuspenseBoundary(
|
|
5772
5776
|
};
|
5773
5777
|
null !== row &&
|
5774
5778
|
(row.pendingTasks++,
|
5775
|
-
(
|
5776
|
-
null !==
|
5779
|
+
(contentPreamble = row.boundaries),
|
5780
|
+
null !== contentPreamble &&
|
5777
5781
|
(request.allPendingTasks++,
|
5778
5782
|
fallbackAbortableTasks.pendingTasks++,
|
5779
|
-
|
5783
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
5784
|
+
(request = row.inheritedHoistables),
|
5785
|
+
null !== request &&
|
5786
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
5780
5787
|
return fallbackAbortableTasks;
|
5781
5788
|
}
|
5782
5789
|
function createRenderTask(
|
@@ -6052,20 +6059,56 @@ function fatalError(request, error, errorInfo, debugTask) {
|
|
6052
6059
|
: ((request.status = 13), (request.fatalError = error));
|
6053
6060
|
}
|
6054
6061
|
function finishSuspenseListRow(request, row) {
|
6055
|
-
|
6056
|
-
|
6062
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
6063
|
+
}
|
6064
|
+
function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
|
6065
|
+
for (; null !== unblockedRow; ) {
|
6066
|
+
null !== inheritedHoistables &&
|
6067
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
6068
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
6069
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
6057
6070
|
if (null !== unblockedBoundaries) {
|
6058
|
-
|
6059
|
-
for (var i = 0; i < unblockedBoundaries.length; i++)
|
6060
|
-
|
6071
|
+
unblockedRow.boundaries = null;
|
6072
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
6073
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
6074
|
+
null !== inheritedHoistables &&
|
6075
|
+
hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
|
6076
|
+
finishedTask(request, unblockedBoundary, null, null);
|
6077
|
+
}
|
6078
|
+
}
|
6079
|
+
unblockedRow.pendingTasks--;
|
6080
|
+
if (0 < unblockedRow.pendingTasks) break;
|
6081
|
+
inheritedHoistables = unblockedRow.hoistables;
|
6082
|
+
unblockedRow = unblockedRow.next;
|
6083
|
+
}
|
6084
|
+
}
|
6085
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
6086
|
+
var boundaries = togetherRow.boundaries;
|
6087
|
+
if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
|
6088
|
+
for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
|
6089
|
+
var rowBoundary = boundaries[i];
|
6090
|
+
if (
|
6091
|
+
1 !== rowBoundary.pendingTasks ||
|
6092
|
+
rowBoundary.parentFlushed ||
|
6093
|
+
500 < rowBoundary.byteSize
|
6094
|
+
) {
|
6095
|
+
allCompleteAndInlinable = !1;
|
6096
|
+
break;
|
6097
|
+
}
|
6061
6098
|
}
|
6062
|
-
|
6063
|
-
|
6064
|
-
row = row.next;
|
6099
|
+
allCompleteAndInlinable &&
|
6100
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
6065
6101
|
}
|
6066
6102
|
}
|
6067
6103
|
function createSuspenseListRow(previousRow) {
|
6068
|
-
var newRow = {
|
6104
|
+
var newRow = {
|
6105
|
+
pendingTasks: 1,
|
6106
|
+
boundaries: null,
|
6107
|
+
hoistables: createHoistableState(),
|
6108
|
+
inheritedHoistables: null,
|
6109
|
+
together: !1,
|
6110
|
+
next: null
|
6111
|
+
};
|
6069
6112
|
null !== previousRow &&
|
6070
6113
|
0 < previousRow.pendingTasks &&
|
6071
6114
|
(newRow.pendingTasks++,
|
@@ -6074,24 +6117,25 @@ function createSuspenseListRow(previousRow) {
|
|
6074
6117
|
return newRow;
|
6075
6118
|
}
|
6076
6119
|
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
6077
|
-
|
6078
|
-
|
6120
|
+
var prevKeyPath = task.keyPath,
|
6121
|
+
prevTreeContext = task.treeContext,
|
6122
|
+
prevRow = task.row,
|
6123
|
+
previousComponentStack = task.componentStack;
|
6079
6124
|
var previousDebugTask = task.debugTask;
|
6080
6125
|
pushServerComponentStack(task, task.node.props.children._debugInfo);
|
6081
|
-
|
6082
|
-
|
6083
|
-
|
6084
|
-
previousSuspenseListRow = null;
|
6126
|
+
task.keyPath = keyPath;
|
6127
|
+
keyPath = rows.length;
|
6128
|
+
var previousSuspenseListRow = null;
|
6085
6129
|
if (null !== task.replay) {
|
6086
6130
|
var resumeSlots = task.replay.slots;
|
6087
6131
|
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
6088
|
-
for (var n = 0; n <
|
6089
|
-
var i = "backwards" !== revealOrder ? n :
|
6132
|
+
for (var n = 0; n < keyPath; n++) {
|
6133
|
+
var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
|
6090
6134
|
node = rows[i];
|
6091
6135
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
6092
6136
|
previousSuspenseListRow
|
6093
6137
|
);
|
6094
|
-
task.treeContext = pushTreeContext(prevTreeContext,
|
6138
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
6095
6139
|
var resumeSegmentID = resumeSlots[i];
|
6096
6140
|
"number" === typeof resumeSegmentID
|
6097
6141
|
? (resumeNode(request, task, resumeSegmentID, node, i),
|
@@ -6101,32 +6145,28 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
6101
6145
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
6102
6146
|
}
|
6103
6147
|
else
|
6104
|
-
for (resumeSlots = 0; resumeSlots <
|
6148
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
6105
6149
|
(n =
|
6106
6150
|
"backwards" !== revealOrder
|
6107
6151
|
? resumeSlots
|
6108
|
-
:
|
6152
|
+
: keyPath - 1 - resumeSlots),
|
6109
6153
|
(i = rows[n]),
|
6110
6154
|
warnForMissingKey(request, task, i),
|
6111
6155
|
(task.row = previousSuspenseListRow =
|
6112
6156
|
createSuspenseListRow(previousSuspenseListRow)),
|
6113
|
-
(task.treeContext = pushTreeContext(
|
6114
|
-
prevTreeContext,
|
6115
|
-
totalChildren,
|
6116
|
-
n
|
6117
|
-
)),
|
6157
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
6118
6158
|
renderNode(request, task, i, n),
|
6119
6159
|
0 === --previousSuspenseListRow.pendingTasks &&
|
6120
6160
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
6121
6161
|
} else if ("backwards" !== revealOrder)
|
6122
|
-
for (revealOrder = 0; revealOrder <
|
6162
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
6123
6163
|
(resumeSlots = rows[revealOrder]),
|
6124
6164
|
warnForMissingKey(request, task, resumeSlots),
|
6125
6165
|
(task.row = previousSuspenseListRow =
|
6126
6166
|
createSuspenseListRow(previousSuspenseListRow)),
|
6127
6167
|
(task.treeContext = pushTreeContext(
|
6128
6168
|
prevTreeContext,
|
6129
|
-
|
6169
|
+
keyPath,
|
6130
6170
|
revealOrder
|
6131
6171
|
)),
|
6132
6172
|
renderNode(request, task, resumeSlots, revealOrder),
|
@@ -6136,12 +6176,12 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
6136
6176
|
revealOrder = task.blockedSegment;
|
6137
6177
|
resumeSlots = revealOrder.children.length;
|
6138
6178
|
n = revealOrder.chunks.length;
|
6139
|
-
for (i =
|
6179
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
6140
6180
|
node = rows[i];
|
6141
6181
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
6142
6182
|
previousSuspenseListRow
|
6143
6183
|
);
|
6144
|
-
task.treeContext = pushTreeContext(prevTreeContext,
|
6184
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
6145
6185
|
resumeSegmentID = createPendingSegment(
|
6146
6186
|
request,
|
6147
6187
|
n,
|
@@ -6181,7 +6221,7 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
6181
6221
|
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
6182
6222
|
task.treeContext = prevTreeContext;
|
6183
6223
|
task.row = prevRow;
|
6184
|
-
task.keyPath =
|
6224
|
+
task.keyPath = prevKeyPath;
|
6185
6225
|
task.componentStack = previousComponentStack;
|
6186
6226
|
task.debugTask = previousDebugTask;
|
6187
6227
|
}
|
@@ -6690,7 +6730,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6690
6730
|
);
|
6691
6731
|
segment.lastPushedText = !1;
|
6692
6732
|
var _prevContext2 = task.formatContext,
|
6693
|
-
|
6733
|
+
_prevKeyPath3 = task.keyPath;
|
6694
6734
|
task.keyPath = keyPath;
|
6695
6735
|
if (
|
6696
6736
|
(task.formatContext = getChildFormatContext(_prevContext2, type, props))
|
@@ -6728,7 +6768,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6728
6768
|
request.pingedTasks.push(preambleTask);
|
6729
6769
|
} else renderNode(request, task, _children, -1);
|
6730
6770
|
task.formatContext = _prevContext2;
|
6731
|
-
task.keyPath =
|
6771
|
+
task.keyPath = _prevKeyPath3;
|
6732
6772
|
a: {
|
6733
6773
|
var target = segment.chunks,
|
6734
6774
|
resumableState = request.resumableState;
|
@@ -6794,10 +6834,10 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6794
6834
|
} else if ("hidden" !== props.mode) {
|
6795
6835
|
segment$jscomp$0.chunks.push("\x3c!--&--\x3e");
|
6796
6836
|
segment$jscomp$0.lastPushedText = !1;
|
6797
|
-
var
|
6837
|
+
var _prevKeyPath4 = task.keyPath;
|
6798
6838
|
task.keyPath = keyPath;
|
6799
6839
|
renderNode(request, task, props.children, -1);
|
6800
|
-
task.keyPath =
|
6840
|
+
task.keyPath = _prevKeyPath4;
|
6801
6841
|
segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
|
6802
6842
|
segment$jscomp$0.lastPushedText = !1;
|
6803
6843
|
}
|
@@ -6845,10 +6885,27 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6845
6885
|
}
|
6846
6886
|
}
|
6847
6887
|
}
|
6848
|
-
|
6849
|
-
|
6850
|
-
|
6851
|
-
|
6888
|
+
if ("together" === revealOrder) {
|
6889
|
+
var _prevKeyPath2 = task.keyPath,
|
6890
|
+
prevRow = task.row,
|
6891
|
+
newRow = (task.row = createSuspenseListRow(null));
|
6892
|
+
newRow.boundaries = [];
|
6893
|
+
newRow.together = !0;
|
6894
|
+
task.keyPath = keyPath;
|
6895
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
6896
|
+
0 === --newRow.pendingTasks &&
|
6897
|
+
finishSuspenseListRow(request, newRow);
|
6898
|
+
task.keyPath = _prevKeyPath2;
|
6899
|
+
task.row = prevRow;
|
6900
|
+
null !== prevRow &&
|
6901
|
+
0 < newRow.pendingTasks &&
|
6902
|
+
(prevRow.pendingTasks++, (newRow.next = prevRow));
|
6903
|
+
} else {
|
6904
|
+
var prevKeyPath$jscomp$3 = task.keyPath;
|
6905
|
+
task.keyPath = keyPath;
|
6906
|
+
renderNodeDestructive(request, task, children$jscomp$0, -1);
|
6907
|
+
task.keyPath = prevKeyPath$jscomp$3;
|
6908
|
+
}
|
6852
6909
|
}
|
6853
6910
|
return;
|
6854
6911
|
case REACT_VIEW_TRANSITION_TYPE:
|
@@ -6876,7 +6933,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
6876
6933
|
} else {
|
6877
6934
|
var prevKeyPath$jscomp$4 = task.keyPath,
|
6878
6935
|
prevContext$jscomp$0 = task.formatContext,
|
6879
|
-
prevRow = task.row,
|
6936
|
+
prevRow$jscomp$0 = task.row,
|
6880
6937
|
parentBoundary = task.blockedBoundary,
|
6881
6938
|
parentPreamble = task.blockedPreamble,
|
6882
6939
|
parentHoistableState = task.hoistableState,
|
@@ -7012,18 +7069,24 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7012
7069
|
finishedSegment(request, newBoundary, contentRootSegment),
|
7013
7070
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
7014
7071
|
0 === newBoundary.pendingTasks &&
|
7015
|
-
newBoundary.status === PENDING
|
7016
|
-
((newBoundary.status = COMPLETED),
|
7017
|
-
!(500 < newBoundary.byteSize)))
|
7072
|
+
newBoundary.status === PENDING)
|
7018
7073
|
) {
|
7019
|
-
|
7020
|
-
|
7021
|
-
|
7022
|
-
|
7023
|
-
|
7024
|
-
|
7025
|
-
|
7026
|
-
|
7074
|
+
if (
|
7075
|
+
((newBoundary.status = COMPLETED),
|
7076
|
+
!(500 < newBoundary.byteSize))
|
7077
|
+
) {
|
7078
|
+
null !== prevRow$jscomp$0 &&
|
7079
|
+
0 === --prevRow$jscomp$0.pendingTasks &&
|
7080
|
+
finishSuspenseListRow(request, prevRow$jscomp$0);
|
7081
|
+
0 === request.pendingRootTasks &&
|
7082
|
+
task.blockedPreamble &&
|
7083
|
+
preparePreamble(request);
|
7084
|
+
break a;
|
7085
|
+
}
|
7086
|
+
} else
|
7087
|
+
null !== prevRow$jscomp$0 &&
|
7088
|
+
prevRow$jscomp$0.together &&
|
7089
|
+
tryToResolveTogetherRow(request, prevRow$jscomp$0);
|
7027
7090
|
} catch (thrownValue$2) {
|
7028
7091
|
newBoundary.status = CLIENT_RENDERED;
|
7029
7092
|
if (12 === request.status) {
|
@@ -7052,7 +7115,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
7052
7115
|
(task.blockedSegment = parentSegment),
|
7053
7116
|
(task.keyPath = prevKeyPath$jscomp$4),
|
7054
7117
|
(task.formatContext = prevContext$jscomp$0),
|
7055
|
-
(task.row = prevRow);
|
7118
|
+
(task.row = prevRow$jscomp$0);
|
7056
7119
|
}
|
7057
7120
|
var suspendedFallbackTask = createRenderTask(
|
7058
7121
|
request,
|
@@ -7977,10 +8040,6 @@ function abortTask(task, request, error) {
|
|
7977
8040
|
if (6 === segment.status) return;
|
7978
8041
|
segment.status = ABORTED;
|
7979
8042
|
}
|
7980
|
-
segment = task.row;
|
7981
|
-
null !== segment &&
|
7982
|
-
0 === --segment.pendingTasks &&
|
7983
|
-
finishSuspenseListRow(request, segment);
|
7984
8043
|
segment = getThrownInfo(task.componentStack);
|
7985
8044
|
if (null === boundary) {
|
7986
8045
|
if (13 !== request.status && request.status !== CLOSED) {
|
@@ -7991,36 +8050,44 @@ function abortTask(task, request, error) {
|
|
7991
8050
|
return;
|
7992
8051
|
}
|
7993
8052
|
boundary.pendingTasks--;
|
7994
|
-
0 === boundary.pendingTasks &&
|
7995
|
-
|
7996
|
-
((task = logRecoverableError(request, error, segment, null)),
|
8053
|
+
if (0 === boundary.pendingTasks && 0 < boundary.nodes.length) {
|
8054
|
+
var errorDigest = logRecoverableError(request, error, segment, null);
|
7997
8055
|
abortRemainingReplayNodes(
|
7998
8056
|
request,
|
7999
8057
|
null,
|
8000
8058
|
boundary.nodes,
|
8001
8059
|
boundary.slots,
|
8002
8060
|
error,
|
8003
|
-
|
8061
|
+
errorDigest,
|
8004
8062
|
segment,
|
8005
8063
|
!0
|
8006
|
-
)
|
8064
|
+
);
|
8065
|
+
}
|
8007
8066
|
request.pendingRootTasks--;
|
8008
8067
|
0 === request.pendingRootTasks && completeShell(request);
|
8009
8068
|
}
|
8010
8069
|
} else
|
8011
|
-
boundary.
|
8012
|
-
boundary.status
|
8013
|
-
|
8014
|
-
|
8015
|
-
|
8016
|
-
|
8017
|
-
|
8018
|
-
boundary
|
8019
|
-
|
8070
|
+
boundary.status !== CLIENT_RENDERED &&
|
8071
|
+
((boundary.status = CLIENT_RENDERED),
|
8072
|
+
(errorDigest = logRecoverableError(request, error, segment, null)),
|
8073
|
+
(boundary.status = CLIENT_RENDERED),
|
8074
|
+
encodeErrorForBoundary(boundary, errorDigest, error, segment, !0),
|
8075
|
+
untrackBoundary(request, boundary),
|
8076
|
+
boundary.parentFlushed &&
|
8077
|
+
request.clientRenderedBoundaries.push(boundary)),
|
8078
|
+
boundary.pendingTasks--,
|
8079
|
+
(segment = boundary.row),
|
8080
|
+
null !== segment &&
|
8081
|
+
0 === --segment.pendingTasks &&
|
8082
|
+
finishSuspenseListRow(request, segment),
|
8020
8083
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
8021
8084
|
return abortTask(fallbackTask, request, error);
|
8022
8085
|
}),
|
8023
8086
|
boundary.fallbackAbortableTasks.clear();
|
8087
|
+
task = task.row;
|
8088
|
+
null !== task &&
|
8089
|
+
0 === --task.pendingTasks &&
|
8090
|
+
finishSuspenseListRow(request, task);
|
8024
8091
|
request.allPendingTasks--;
|
8025
8092
|
0 === request.allPendingTasks && completeAll(request);
|
8026
8093
|
}
|
@@ -8128,55 +8195,119 @@ function finishedSegment(request, boundary, segment) {
|
|
8128
8195
|
: (boundary.byteSize += segmentByteSize);
|
8129
8196
|
}
|
8130
8197
|
}
|
8131
|
-
function finishedTask(request, boundary, row, segment) {
|
8198
|
+
function finishedTask(request$jscomp$0, boundary$jscomp$0, row, segment) {
|
8132
8199
|
null !== row &&
|
8133
|
-
0 === --row.pendingTasks
|
8134
|
-
|
8135
|
-
|
8136
|
-
|
8200
|
+
(0 === --row.pendingTasks
|
8201
|
+
? finishSuspenseListRow(request$jscomp$0, row)
|
8202
|
+
: row.together && tryToResolveTogetherRow(request$jscomp$0, row));
|
8203
|
+
request$jscomp$0.allPendingTasks--;
|
8204
|
+
if (null === boundary$jscomp$0) {
|
8137
8205
|
if (null !== segment && segment.parentFlushed) {
|
8138
|
-
if (null !== request.completedRootSegment)
|
8206
|
+
if (null !== request$jscomp$0.completedRootSegment)
|
8139
8207
|
throw Error(
|
8140
8208
|
"There can only be one root segment. This is a bug in React."
|
8141
8209
|
);
|
8142
|
-
request.completedRootSegment = segment;
|
8210
|
+
request$jscomp$0.completedRootSegment = segment;
|
8143
8211
|
}
|
8144
|
-
request.pendingRootTasks--;
|
8145
|
-
0 === request.pendingRootTasks && completeShell(request);
|
8146
|
-
} else
|
8147
|
-
boundary.pendingTasks--,
|
8148
|
-
|
8149
|
-
|
8150
|
-
|
8151
|
-
|
8152
|
-
|
8153
|
-
|
8154
|
-
|
8155
|
-
|
8156
|
-
|
8157
|
-
|
8158
|
-
|
8159
|
-
|
8160
|
-
|
8161
|
-
|
8162
|
-
|
8163
|
-
|
8164
|
-
|
8165
|
-
|
8166
|
-
|
8167
|
-
|
8168
|
-
0
|
8169
|
-
|
8170
|
-
|
8171
|
-
|
8172
|
-
|
8173
|
-
|
8174
|
-
|
8175
|
-
|
8176
|
-
|
8177
|
-
|
8178
|
-
|
8179
|
-
|
8212
|
+
request$jscomp$0.pendingRootTasks--;
|
8213
|
+
0 === request$jscomp$0.pendingRootTasks && completeShell(request$jscomp$0);
|
8214
|
+
} else if (
|
8215
|
+
(boundary$jscomp$0.pendingTasks--,
|
8216
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
8217
|
+
)
|
8218
|
+
if (0 === boundary$jscomp$0.pendingTasks)
|
8219
|
+
if (
|
8220
|
+
(boundary$jscomp$0.status === PENDING &&
|
8221
|
+
(boundary$jscomp$0.status = COMPLETED),
|
8222
|
+
null !== segment &&
|
8223
|
+
segment.parentFlushed &&
|
8224
|
+
segment.status === COMPLETED &&
|
8225
|
+
queueCompletedSegment(boundary$jscomp$0, segment),
|
8226
|
+
boundary$jscomp$0.parentFlushed &&
|
8227
|
+
request$jscomp$0.completedBoundaries.push(boundary$jscomp$0),
|
8228
|
+
boundary$jscomp$0.status === COMPLETED)
|
8229
|
+
)
|
8230
|
+
(row = boundary$jscomp$0.row),
|
8231
|
+
null !== row &&
|
8232
|
+
hoistHoistables(row.hoistables, boundary$jscomp$0.contentState),
|
8233
|
+
500 < boundary$jscomp$0.byteSize ||
|
8234
|
+
(boundary$jscomp$0.fallbackAbortableTasks.forEach(
|
8235
|
+
abortTaskSoft,
|
8236
|
+
request$jscomp$0
|
8237
|
+
),
|
8238
|
+
boundary$jscomp$0.fallbackAbortableTasks.clear(),
|
8239
|
+
null !== row &&
|
8240
|
+
0 === --row.pendingTasks &&
|
8241
|
+
finishSuspenseListRow(request$jscomp$0, row)),
|
8242
|
+
0 === request$jscomp$0.pendingRootTasks &&
|
8243
|
+
null === request$jscomp$0.trackedPostpones &&
|
8244
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
8245
|
+
preparePreamble(request$jscomp$0);
|
8246
|
+
else {
|
8247
|
+
if (
|
8248
|
+
boundary$jscomp$0.status === POSTPONED &&
|
8249
|
+
((boundary$jscomp$0 = boundary$jscomp$0.row),
|
8250
|
+
null !== boundary$jscomp$0)
|
8251
|
+
) {
|
8252
|
+
if (null !== request$jscomp$0.trackedPostpones) {
|
8253
|
+
row = request$jscomp$0.trackedPostpones;
|
8254
|
+
var postponedRow = boundary$jscomp$0.next;
|
8255
|
+
if (
|
8256
|
+
null !== postponedRow &&
|
8257
|
+
((segment = postponedRow.boundaries), null !== segment)
|
8258
|
+
)
|
8259
|
+
for (
|
8260
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
8261
|
+
postponedRow < segment.length;
|
8262
|
+
postponedRow++
|
8263
|
+
) {
|
8264
|
+
var postponedBoundary = segment[postponedRow];
|
8265
|
+
var request = request$jscomp$0,
|
8266
|
+
trackedPostpones = row,
|
8267
|
+
boundary = postponedBoundary;
|
8268
|
+
boundary.status = POSTPONED;
|
8269
|
+
boundary.rootSegmentID = request.nextSegmentId++;
|
8270
|
+
request = boundary.trackedContentKeyPath;
|
8271
|
+
if (null === request)
|
8272
|
+
throw Error(
|
8273
|
+
"It should not be possible to postpone at the root. This is a bug in React."
|
8274
|
+
);
|
8275
|
+
var fallbackReplayNode = boundary.trackedFallbackNode,
|
8276
|
+
children = [],
|
8277
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
8278
|
+
void 0 === boundaryNode
|
8279
|
+
? ((boundary = [
|
8280
|
+
request[1],
|
8281
|
+
request[2],
|
8282
|
+
children,
|
8283
|
+
null,
|
8284
|
+
fallbackReplayNode,
|
8285
|
+
boundary.rootSegmentID
|
8286
|
+
]),
|
8287
|
+
trackedPostpones.workingMap.set(request, boundary),
|
8288
|
+
addToReplayParent(boundary, request[0], trackedPostpones))
|
8289
|
+
: ((boundaryNode[4] = fallbackReplayNode),
|
8290
|
+
(boundaryNode[5] = boundary.rootSegmentID));
|
8291
|
+
finishedTask(request$jscomp$0, postponedBoundary, null, null);
|
8292
|
+
}
|
8293
|
+
}
|
8294
|
+
0 === --boundary$jscomp$0.pendingTasks &&
|
8295
|
+
finishSuspenseListRow(request$jscomp$0, boundary$jscomp$0);
|
8296
|
+
}
|
8297
|
+
}
|
8298
|
+
else
|
8299
|
+
null !== segment &&
|
8300
|
+
segment.parentFlushed &&
|
8301
|
+
segment.status === COMPLETED &&
|
8302
|
+
(queueCompletedSegment(boundary$jscomp$0, segment),
|
8303
|
+
1 === boundary$jscomp$0.completedSegments.length &&
|
8304
|
+
boundary$jscomp$0.parentFlushed &&
|
8305
|
+
request$jscomp$0.partialBoundaries.push(boundary$jscomp$0)),
|
8306
|
+
(boundary$jscomp$0 = boundary$jscomp$0.row),
|
8307
|
+
null !== boundary$jscomp$0 &&
|
8308
|
+
boundary$jscomp$0.together &&
|
8309
|
+
tryToResolveTogetherRow(request$jscomp$0, boundary$jscomp$0);
|
8310
|
+
0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
|
8180
8311
|
}
|
8181
8312
|
function performWork(request$jscomp$2) {
|
8182
8313
|
if (request$jscomp$2.status !== CLOSED && 13 !== request$jscomp$2.status) {
|
@@ -8357,25 +8488,32 @@ function performWork(request$jscomp$2) {
|
|
8357
8488
|
errorInfo$jscomp$1,
|
8358
8489
|
debugTask
|
8359
8490
|
);
|
8360
|
-
null === boundary$jscomp$0
|
8361
|
-
|
8362
|
-
|
8363
|
-
|
8364
|
-
|
8365
|
-
|
8366
|
-
|
8367
|
-
|
8368
|
-
|
8369
|
-
|
8370
|
-
|
8371
|
-
|
8372
|
-
|
8373
|
-
|
8374
|
-
|
8375
|
-
|
8376
|
-
|
8377
|
-
|
8378
|
-
|
8491
|
+
if (null === boundary$jscomp$0)
|
8492
|
+
fatalError(request, x$jscomp$0, errorInfo$jscomp$1, debugTask);
|
8493
|
+
else if (
|
8494
|
+
(boundary$jscomp$0.pendingTasks--,
|
8495
|
+
boundary$jscomp$0.status !== CLIENT_RENDERED)
|
8496
|
+
) {
|
8497
|
+
boundary$jscomp$0.status = CLIENT_RENDERED;
|
8498
|
+
encodeErrorForBoundary(
|
8499
|
+
boundary$jscomp$0,
|
8500
|
+
prevTaskInDEV,
|
8501
|
+
x$jscomp$0,
|
8502
|
+
errorInfo$jscomp$1,
|
8503
|
+
!1
|
8504
|
+
);
|
8505
|
+
untrackBoundary(request, boundary$jscomp$0);
|
8506
|
+
var boundaryRow = boundary$jscomp$0.row;
|
8507
|
+
null !== boundaryRow &&
|
8508
|
+
0 === --boundaryRow.pendingTasks &&
|
8509
|
+
finishSuspenseListRow(request, boundaryRow);
|
8510
|
+
boundary$jscomp$0.parentFlushed &&
|
8511
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
8512
|
+
0 === request.pendingRootTasks &&
|
8513
|
+
null === request.trackedPostpones &&
|
8514
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
8515
|
+
preparePreamble(request);
|
8516
|
+
}
|
8379
8517
|
0 === request.allPendingTasks && completeAll(request);
|
8380
8518
|
}
|
8381
8519
|
} finally {
|
@@ -8574,13 +8712,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
8574
8712
|
request.renderState,
|
8575
8713
|
boundary.rootSegmentID
|
8576
8714
|
),
|
8577
|
-
hoistableState &&
|
8578
|
-
((boundary = boundary.fallbackState),
|
8579
|
-
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
8580
|
-
boundary.stylesheets.forEach(
|
8581
|
-
hoistStylesheetDependency,
|
8582
|
-
hoistableState
|
8583
|
-
)),
|
8715
|
+
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
8584
8716
|
flushSubtree(request, destination, segment, hoistableState);
|
8585
8717
|
else if (
|
8586
8718
|
500 < boundary.byteSize &&
|
@@ -8596,10 +8728,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
8596
8728
|
flushSubtree(request, destination, segment, hoistableState);
|
8597
8729
|
else {
|
8598
8730
|
flushedByteSize += boundary.byteSize;
|
8599
|
-
hoistableState &&
|
8600
|
-
((segment = boundary.contentState),
|
8601
|
-
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
8602
|
-
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
8731
|
+
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
8603
8732
|
segment = boundary.row;
|
8604
8733
|
null !== segment &&
|
8605
8734
|
500 < boundary.byteSize &&
|
@@ -8976,6 +9105,17 @@ function flushCompletedQueues(request, destination) {
|
|
8976
9105
|
break a;
|
8977
9106
|
}
|
8978
9107
|
completedSegments.splice(0, JSCompiler_inline_result);
|
9108
|
+
var row = boundary$jscomp$0.row;
|
9109
|
+
null !== row &&
|
9110
|
+
row.together &&
|
9111
|
+
1 === boundary$jscomp$0.pendingTasks &&
|
9112
|
+
(1 === row.pendingTasks
|
9113
|
+
? unblockSuspenseListRow(
|
9114
|
+
clientRenderedBoundaries,
|
9115
|
+
row,
|
9116
|
+
row.hoistables
|
9117
|
+
)
|
9118
|
+
: row.pendingTasks--);
|
8979
9119
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
8980
9120
|
boundary,
|
8981
9121
|
boundary$jscomp$0.contentState,
|
@@ -9069,15 +9209,27 @@ function abort(request, reason) {
|
|
9069
9209
|
fatalError(request, error$4, reason, null);
|
9070
9210
|
}
|
9071
9211
|
}
|
9072
|
-
|
9212
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
9213
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
9214
|
+
else {
|
9215
|
+
var workingMap = trackedPostpones.workingMap,
|
9216
|
+
parentNode = workingMap.get(parentKeyPath);
|
9217
|
+
void 0 === parentNode &&
|
9218
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
9219
|
+
workingMap.set(parentKeyPath, parentNode),
|
9220
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
9221
|
+
parentNode[2].push(node);
|
9222
|
+
}
|
9223
|
+
}
|
9224
|
+
var isomorphicReactPackageVersion$jscomp$inline_759 = React.version;
|
9073
9225
|
if (
|
9074
|
-
"19.2.0-canary-
|
9075
|
-
isomorphicReactPackageVersion$jscomp$
|
9226
|
+
"19.2.0-canary-8ce15b0f-20250522" !==
|
9227
|
+
isomorphicReactPackageVersion$jscomp$inline_759
|
9076
9228
|
)
|
9077
9229
|
throw Error(
|
9078
9230
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
9079
|
-
(isomorphicReactPackageVersion$jscomp$
|
9080
|
-
"\n - react-dom: 19.2.0-canary-
|
9231
|
+
(isomorphicReactPackageVersion$jscomp$inline_759 +
|
9232
|
+
"\n - react-dom: 19.2.0-canary-8ce15b0f-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
|
9081
9233
|
);
|
9082
9234
|
exports.renderToReadableStream = function (children, options) {
|
9083
9235
|
return new Promise(function (resolve, reject) {
|
@@ -9170,4 +9322,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
9170
9322
|
startWork(request$jscomp$0);
|
9171
9323
|
});
|
9172
9324
|
};
|
9173
|
-
exports.version = "19.2.0-canary-
|
9325
|
+
exports.version = "19.2.0-canary-8ce15b0f-20250522";
|