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
@@ -709,8 +709,8 @@ function getSuspenseViewTransition(parentViewTransition) {
|
|
709
709
|
? null
|
710
710
|
: {
|
711
711
|
update: parentViewTransition.update,
|
712
|
-
enter:
|
713
|
-
exit:
|
712
|
+
enter: "none",
|
713
|
+
exit: "none",
|
714
714
|
share: parentViewTransition.update,
|
715
715
|
name: parentViewTransition.autoName,
|
716
716
|
autoName: parentViewTransition.autoName,
|
@@ -2530,10 +2530,10 @@ var completeSegmentScript1Full = stringToPrecomputedChunk(
|
|
2530
2530
|
stringToPrecomputedChunk('<template data-rsi="" data-sid="');
|
2531
2531
|
stringToPrecomputedChunk('" data-pid="');
|
2532
2532
|
var completeBoundaryScriptFunctionOnly = stringToPrecomputedChunk(
|
2533
|
-
'$RB=[];$RV=function(){$RT=performance.now();
|
2533
|
+
'$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())};'
|
2534
2534
|
);
|
2535
2535
|
stringToPrecomputedChunk(
|
2536
|
-
|
2536
|
+
'$RV=function(w,f){function h(b,d){var k=b.getAttribute(d);k&&(d=b.style,l.push(b,d.viewTransitionName,d.viewTransitionClass),"auto"!==k&&(d.viewTransitionClass=k),(b=b.getAttribute("vt-name"))||(b="\\u00abT"+F++ +"\\u00bb"),d.viewTransitionName=b,x=!0)}var x=!1,F=0,l=[];try{var e=document.__reactViewTransition;if(e){e.finished.finally($RV.bind(null,f));return}var m=new Map;for(e=1;e<f.length;e+=2)for(var g=f[e].querySelectorAll("[vt-share]"),c=0;c<g.length;c++){var a=g[c];m.set(a.getAttribute("vt-name"),a)}for(g=0;g<f.length;g+=2){var y=f[g],t=y.parentNode;if(t){var r=t.getBoundingClientRect();if(r.left||r.top||r.width||r.height){a=y;for(e=0;a;){if(8===a.nodeType){var p=a.data;if("/$"===p)if(0===e)break;else e--;else"$"!==p&&"$?"!==p&&"$~"!==p&&"$!"!==p||e++}else if(1===a.nodeType){c=a;var z=c.getAttribute("vt-name"),u=m.get(z);h(c,u?"vt-share":"vt-exit");u&&(h(u,"vt-share"),m.set(z,null));var A=c.querySelectorAll("[vt-share]");for(c=0;c<A.length;c++){var B=A[c],C=B.getAttribute("vt-name"),D=m.get(C);\nD&&(h(B,"vt-share"),h(D,"vt-share"),m.set(C,null))}}a=a.nextSibling}for(var q=f[g+1].firstElementChild;q;)null!==m.get(q.getAttribute("vt-name"))&&h(q,"vt-enter"),q=q.nextElementSibling;a=t;do for(var n=a.firstElementChild;n;){var E=n.getAttribute("vt-update");E&&"none"!==E&&!l.includes(n)&&h(n,"vt-update");n=n.nextElementSibling}while((a=a.parentNode)&&1===a.nodeType&&"none"!==a.getAttribute("vt-update"))}}}if(x){var v=document.__reactViewTransition=document.startViewTransition({update:w.bind(null,\nf),types:[]});v.ready.finally(function(){for(var b=l.length-3;0<=b;b-=3){var d=l[b],k=d.style;k.viewTransitionName=l[b+1];k.viewTransitionClass=l[b+1];""===d.getAttribute("style")&&d.removeAttribute("style")}});v.finished.finally(function(){document.__reactViewTransition===v&&(document.__reactViewTransition=null)});$RB=[];return}}catch(b){}w(f)}.bind(null,$RV);'
|
2537
2537
|
);
|
2538
2538
|
var completeBoundaryScript1Partial = stringToPrecomputedChunk('$RC("'),
|
2539
2539
|
completeBoundaryWithStylesScript1FullPartial = stringToPrecomputedChunk(
|
@@ -3255,6 +3255,10 @@ function hoistStyleQueueDependency(styleQueue) {
|
|
3255
3255
|
function hoistStylesheetDependency(stylesheet) {
|
3256
3256
|
this.stylesheets.add(stylesheet);
|
3257
3257
|
}
|
3258
|
+
function hoistHoistables(parentState, childState) {
|
3259
|
+
childState.styles.forEach(hoistStyleQueueDependency, parentState);
|
3260
|
+
childState.stylesheets.forEach(hoistStylesheetDependency, parentState);
|
3261
|
+
}
|
3258
3262
|
var bind = Function.prototype.bind,
|
3259
3263
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference");
|
3260
3264
|
function getComponentNameFromType(type) {
|
@@ -4161,11 +4165,14 @@ function createSuspenseBoundary(
|
|
4161
4165
|
};
|
4162
4166
|
null !== row &&
|
4163
4167
|
(row.pendingTasks++,
|
4164
|
-
(
|
4165
|
-
null !==
|
4168
|
+
(contentPreamble = row.boundaries),
|
4169
|
+
null !== contentPreamble &&
|
4166
4170
|
(request.allPendingTasks++,
|
4167
4171
|
fallbackAbortableTasks.pendingTasks++,
|
4168
|
-
|
4172
|
+
contentPreamble.push(fallbackAbortableTasks)),
|
4173
|
+
(request = row.inheritedHoistables),
|
4174
|
+
null !== request &&
|
4175
|
+
hoistHoistables(fallbackAbortableTasks.contentState, request));
|
4169
4176
|
return fallbackAbortableTasks;
|
4170
4177
|
}
|
4171
4178
|
function createRenderTask(
|
@@ -4330,20 +4337,56 @@ function fatalError(request, error) {
|
|
4330
4337
|
: ((request.status = 13), (request.fatalError = error));
|
4331
4338
|
}
|
4332
4339
|
function finishSuspenseListRow(request, row) {
|
4333
|
-
|
4334
|
-
|
4340
|
+
unblockSuspenseListRow(request, row.next, row.hoistables);
|
4341
|
+
}
|
4342
|
+
function unblockSuspenseListRow(request, unblockedRow, inheritedHoistables) {
|
4343
|
+
for (; null !== unblockedRow; ) {
|
4344
|
+
null !== inheritedHoistables &&
|
4345
|
+
(hoistHoistables(unblockedRow.hoistables, inheritedHoistables),
|
4346
|
+
(unblockedRow.inheritedHoistables = inheritedHoistables));
|
4347
|
+
var unblockedBoundaries = unblockedRow.boundaries;
|
4335
4348
|
if (null !== unblockedBoundaries) {
|
4336
|
-
|
4337
|
-
for (var i = 0; i < unblockedBoundaries.length; i++)
|
4338
|
-
|
4349
|
+
unblockedRow.boundaries = null;
|
4350
|
+
for (var i = 0; i < unblockedBoundaries.length; i++) {
|
4351
|
+
var unblockedBoundary = unblockedBoundaries[i];
|
4352
|
+
null !== inheritedHoistables &&
|
4353
|
+
hoistHoistables(unblockedBoundary.contentState, inheritedHoistables);
|
4354
|
+
finishedTask(request, unblockedBoundary, null, null);
|
4355
|
+
}
|
4356
|
+
}
|
4357
|
+
unblockedRow.pendingTasks--;
|
4358
|
+
if (0 < unblockedRow.pendingTasks) break;
|
4359
|
+
inheritedHoistables = unblockedRow.hoistables;
|
4360
|
+
unblockedRow = unblockedRow.next;
|
4361
|
+
}
|
4362
|
+
}
|
4363
|
+
function tryToResolveTogetherRow(request, togetherRow) {
|
4364
|
+
var boundaries = togetherRow.boundaries;
|
4365
|
+
if (null !== boundaries && togetherRow.pendingTasks === boundaries.length) {
|
4366
|
+
for (var allCompleteAndInlinable = !0, i = 0; i < boundaries.length; i++) {
|
4367
|
+
var rowBoundary = boundaries[i];
|
4368
|
+
if (
|
4369
|
+
1 !== rowBoundary.pendingTasks ||
|
4370
|
+
rowBoundary.parentFlushed ||
|
4371
|
+
500 < rowBoundary.byteSize
|
4372
|
+
) {
|
4373
|
+
allCompleteAndInlinable = !1;
|
4374
|
+
break;
|
4375
|
+
}
|
4339
4376
|
}
|
4340
|
-
|
4341
|
-
|
4342
|
-
row = row.next;
|
4377
|
+
allCompleteAndInlinable &&
|
4378
|
+
unblockSuspenseListRow(request, togetherRow, togetherRow.hoistables);
|
4343
4379
|
}
|
4344
4380
|
}
|
4345
4381
|
function createSuspenseListRow(previousRow) {
|
4346
|
-
var newRow = {
|
4382
|
+
var newRow = {
|
4383
|
+
pendingTasks: 1,
|
4384
|
+
boundaries: null,
|
4385
|
+
hoistables: createHoistableState(),
|
4386
|
+
inheritedHoistables: null,
|
4387
|
+
together: !1,
|
4388
|
+
next: null
|
4389
|
+
};
|
4347
4390
|
null !== previousRow &&
|
4348
4391
|
0 < previousRow.pendingTasks &&
|
4349
4392
|
(newRow.pendingTasks++,
|
@@ -4352,21 +4395,22 @@ function createSuspenseListRow(previousRow) {
|
|
4352
4395
|
return newRow;
|
4353
4396
|
}
|
4354
4397
|
function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
4355
|
-
|
4356
|
-
|
4357
|
-
prevRow = task.row
|
4358
|
-
|
4359
|
-
|
4398
|
+
var prevKeyPath = task.keyPath,
|
4399
|
+
prevTreeContext = task.treeContext,
|
4400
|
+
prevRow = task.row;
|
4401
|
+
task.keyPath = keyPath;
|
4402
|
+
keyPath = rows.length;
|
4403
|
+
var previousSuspenseListRow = null;
|
4360
4404
|
if (null !== task.replay) {
|
4361
4405
|
var resumeSlots = task.replay.slots;
|
4362
4406
|
if (null !== resumeSlots && "object" === typeof resumeSlots)
|
4363
|
-
for (var n = 0; n <
|
4364
|
-
var i = "backwards" !== revealOrder ? n :
|
4407
|
+
for (var n = 0; n < keyPath; n++) {
|
4408
|
+
var i = "backwards" !== revealOrder ? n : keyPath - 1 - n,
|
4365
4409
|
node = rows[i];
|
4366
4410
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4367
4411
|
previousSuspenseListRow
|
4368
4412
|
);
|
4369
|
-
task.treeContext = pushTreeContext(prevTreeContext,
|
4413
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4370
4414
|
var resumeSegmentID = resumeSlots[i];
|
4371
4415
|
"number" === typeof resumeSegmentID
|
4372
4416
|
? (resumeNode(request, task, resumeSegmentID, node, i),
|
@@ -4376,30 +4420,26 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
4376
4420
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
4377
4421
|
}
|
4378
4422
|
else
|
4379
|
-
for (resumeSlots = 0; resumeSlots <
|
4423
|
+
for (resumeSlots = 0; resumeSlots < keyPath; resumeSlots++)
|
4380
4424
|
(n =
|
4381
4425
|
"backwards" !== revealOrder
|
4382
4426
|
? resumeSlots
|
4383
|
-
:
|
4427
|
+
: keyPath - 1 - resumeSlots),
|
4384
4428
|
(i = rows[n]),
|
4385
4429
|
(task.row = previousSuspenseListRow =
|
4386
4430
|
createSuspenseListRow(previousSuspenseListRow)),
|
4387
|
-
(task.treeContext = pushTreeContext(
|
4388
|
-
prevTreeContext,
|
4389
|
-
totalChildren,
|
4390
|
-
n
|
4391
|
-
)),
|
4431
|
+
(task.treeContext = pushTreeContext(prevTreeContext, keyPath, n)),
|
4392
4432
|
renderNode(request, task, i, n),
|
4393
4433
|
0 === --previousSuspenseListRow.pendingTasks &&
|
4394
4434
|
finishSuspenseListRow(request, previousSuspenseListRow);
|
4395
4435
|
} else if ("backwards" !== revealOrder)
|
4396
|
-
for (revealOrder = 0; revealOrder <
|
4436
|
+
for (revealOrder = 0; revealOrder < keyPath; revealOrder++)
|
4397
4437
|
(resumeSlots = rows[revealOrder]),
|
4398
4438
|
(task.row = previousSuspenseListRow =
|
4399
4439
|
createSuspenseListRow(previousSuspenseListRow)),
|
4400
4440
|
(task.treeContext = pushTreeContext(
|
4401
4441
|
prevTreeContext,
|
4402
|
-
|
4442
|
+
keyPath,
|
4403
4443
|
revealOrder
|
4404
4444
|
)),
|
4405
4445
|
renderNode(request, task, resumeSlots, revealOrder),
|
@@ -4409,12 +4449,12 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
4409
4449
|
revealOrder = task.blockedSegment;
|
4410
4450
|
resumeSlots = revealOrder.children.length;
|
4411
4451
|
n = revealOrder.chunks.length;
|
4412
|
-
for (i =
|
4452
|
+
for (i = keyPath - 1; 0 <= i; i--) {
|
4413
4453
|
node = rows[i];
|
4414
4454
|
task.row = previousSuspenseListRow = createSuspenseListRow(
|
4415
4455
|
previousSuspenseListRow
|
4416
4456
|
);
|
4417
|
-
task.treeContext = pushTreeContext(prevTreeContext,
|
4457
|
+
task.treeContext = pushTreeContext(prevTreeContext, keyPath, i);
|
4418
4458
|
resumeSegmentID = createPendingSegment(
|
4419
4459
|
request,
|
4420
4460
|
n,
|
@@ -4450,7 +4490,7 @@ function renderSuspenseListRows(request, task, keyPath, rows, revealOrder) {
|
|
4450
4490
|
(prevRow.pendingTasks++, (previousSuspenseListRow.next = prevRow));
|
4451
4491
|
task.treeContext = prevTreeContext;
|
4452
4492
|
task.row = prevRow;
|
4453
|
-
task.keyPath =
|
4493
|
+
task.keyPath = prevKeyPath;
|
4454
4494
|
}
|
4455
4495
|
function renderWithHooks(request, task, keyPath, Component, props, secondArg) {
|
4456
4496
|
var prevThenableState = task.thenableState;
|
@@ -4519,9 +4559,9 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4519
4559
|
var defaultProps = type.defaultProps;
|
4520
4560
|
if (defaultProps) {
|
4521
4561
|
newProps === props && (newProps = assign({}, newProps, props));
|
4522
|
-
for (var propName$
|
4523
|
-
void 0 === newProps[propName$
|
4524
|
-
(newProps[propName$
|
4562
|
+
for (var propName$43 in defaultProps)
|
4563
|
+
void 0 === newProps[propName$43] &&
|
4564
|
+
(newProps[propName$43] = defaultProps[propName$43]);
|
4525
4565
|
}
|
4526
4566
|
props = newProps;
|
4527
4567
|
newProps = emptyContextObject;
|
@@ -4581,16 +4621,16 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4581
4621
|
defaultProps = ref ? type[0] : newProps.state;
|
4582
4622
|
initialState = !0;
|
4583
4623
|
for (ref = ref ? 1 : 0; ref < type.length; ref++)
|
4584
|
-
(propName$
|
4585
|
-
(propName$
|
4586
|
-
"function" === typeof propName$
|
4587
|
-
? propName$
|
4588
|
-
: propName$
|
4589
|
-
null != propName$
|
4624
|
+
(propName$43 = type[ref]),
|
4625
|
+
(propName$43 =
|
4626
|
+
"function" === typeof propName$43
|
4627
|
+
? propName$43.call(newProps, defaultProps, props, void 0)
|
4628
|
+
: propName$43),
|
4629
|
+
null != propName$43 &&
|
4590
4630
|
(initialState
|
4591
4631
|
? ((initialState = !1),
|
4592
|
-
(defaultProps = assign({}, defaultProps, propName$
|
4593
|
-
: assign(defaultProps, propName$
|
4632
|
+
(defaultProps = assign({}, defaultProps, propName$43)))
|
4633
|
+
: assign(defaultProps, propName$43));
|
4594
4634
|
newProps.state = defaultProps;
|
4595
4635
|
}
|
4596
4636
|
else defaultProps.queue = null;
|
@@ -4764,10 +4804,25 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4764
4804
|
break a;
|
4765
4805
|
}
|
4766
4806
|
}
|
4767
|
-
|
4768
|
-
|
4769
|
-
|
4770
|
-
|
4807
|
+
"together" === props
|
4808
|
+
? ((props = task.keyPath),
|
4809
|
+
(newProps = task.row),
|
4810
|
+
(defaultProps = task.row = createSuspenseListRow(null)),
|
4811
|
+
(defaultProps.boundaries = []),
|
4812
|
+
(defaultProps.together = !0),
|
4813
|
+
(task.keyPath = keyPath),
|
4814
|
+
renderNodeDestructive(request, task, type, -1),
|
4815
|
+
0 === --defaultProps.pendingTasks &&
|
4816
|
+
finishSuspenseListRow(request, defaultProps),
|
4817
|
+
(task.keyPath = props),
|
4818
|
+
(task.row = newProps),
|
4819
|
+
null !== newProps &&
|
4820
|
+
0 < defaultProps.pendingTasks &&
|
4821
|
+
(newProps.pendingTasks++, (defaultProps.next = newProps)))
|
4822
|
+
: ((props = task.keyPath),
|
4823
|
+
(task.keyPath = keyPath),
|
4824
|
+
renderNodeDestructive(request, task, type, -1),
|
4825
|
+
(task.keyPath = props));
|
4771
4826
|
}
|
4772
4827
|
return;
|
4773
4828
|
case REACT_VIEW_TRANSITION_TYPE:
|
@@ -4796,7 +4851,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4796
4851
|
type = task.keyPath;
|
4797
4852
|
ref = task.formatContext;
|
4798
4853
|
var prevRow = task.row;
|
4799
|
-
propName$
|
4854
|
+
propName$43 = task.blockedBoundary;
|
4800
4855
|
propName = task.blockedPreamble;
|
4801
4856
|
var parentHoistableState = task.hoistableState,
|
4802
4857
|
parentSegment = task.blockedSegment,
|
@@ -4859,7 +4914,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4859
4914
|
boundarySegment.textEmbedded &&
|
4860
4915
|
boundarySegment.chunks.push(textSeparator),
|
4861
4916
|
(boundarySegment.status = 1),
|
4862
|
-
finishedSegment(request, propName$
|
4917
|
+
finishedSegment(request, propName$43, boundarySegment);
|
4863
4918
|
} catch (thrownValue) {
|
4864
4919
|
throw (
|
4865
4920
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
@@ -4914,18 +4969,21 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4914
4969
|
(contentRootSegment.status = 1),
|
4915
4970
|
finishedSegment(request, newBoundary, contentRootSegment),
|
4916
4971
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4917
|
-
0 === newBoundary.pendingTasks &&
|
4918
|
-
0 === newBoundary.status &&
|
4919
|
-
((newBoundary.status = 1), !(500 < newBoundary.byteSize)))
|
4972
|
+
0 === newBoundary.pendingTasks && 0 === newBoundary.status)
|
4920
4973
|
) {
|
4974
|
+
if (((newBoundary.status = 1), !(500 < newBoundary.byteSize))) {
|
4975
|
+
null !== prevRow &&
|
4976
|
+
0 === --prevRow.pendingTasks &&
|
4977
|
+
finishSuspenseListRow(request, prevRow);
|
4978
|
+
0 === request.pendingRootTasks &&
|
4979
|
+
task.blockedPreamble &&
|
4980
|
+
preparePreamble(request);
|
4981
|
+
break a;
|
4982
|
+
}
|
4983
|
+
} else
|
4921
4984
|
null !== prevRow &&
|
4922
|
-
|
4923
|
-
|
4924
|
-
0 === request.pendingRootTasks &&
|
4925
|
-
task.blockedPreamble &&
|
4926
|
-
preparePreamble(request);
|
4927
|
-
break a;
|
4928
|
-
}
|
4985
|
+
prevRow.together &&
|
4986
|
+
tryToResolveTogetherRow(request, prevRow);
|
4929
4987
|
} catch (thrownValue$30) {
|
4930
4988
|
(newBoundary.status = 4),
|
4931
4989
|
12 === request.status
|
@@ -4942,7 +5000,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4942
5000
|
(newBoundary.errorDigest = initialState),
|
4943
5001
|
untrackBoundary(request, newBoundary);
|
4944
5002
|
} finally {
|
4945
|
-
(task.blockedBoundary = propName$
|
5003
|
+
(task.blockedBoundary = propName$43),
|
4946
5004
|
(task.blockedPreamble = propName),
|
4947
5005
|
(task.hoistableState = parentHoistableState),
|
4948
5006
|
(task.blockedSegment = parentSegment),
|
@@ -4955,7 +5013,7 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4955
5013
|
null,
|
4956
5014
|
fallback,
|
4957
5015
|
-1,
|
4958
|
-
propName$
|
5016
|
+
propName$43,
|
4959
5017
|
boundarySegment,
|
4960
5018
|
newBoundary.fallbackPreamble,
|
4961
5019
|
newBoundary.fallbackState,
|
@@ -5532,15 +5590,15 @@ function renderNode(request, task, node, childIndex) {
|
|
5532
5590
|
chunkLength = segment.chunks.length;
|
5533
5591
|
try {
|
5534
5592
|
return renderNodeDestructive(request, task, node, childIndex);
|
5535
|
-
} catch (thrownValue$
|
5593
|
+
} catch (thrownValue$60) {
|
5536
5594
|
if (
|
5537
5595
|
(resetHooksState(),
|
5538
5596
|
(segment.children.length = childrenLength),
|
5539
5597
|
(segment.chunks.length = chunkLength),
|
5540
5598
|
(node =
|
5541
|
-
thrownValue$
|
5599
|
+
thrownValue$60 === SuspenseException
|
5542
5600
|
? getSuspendedThenable()
|
5543
|
-
: thrownValue$
|
5601
|
+
: thrownValue$60),
|
5544
5602
|
"object" === typeof node && null !== node)
|
5545
5603
|
) {
|
5546
5604
|
if ("function" === typeof node.then) {
|
@@ -5639,10 +5697,6 @@ function abortTask(task, request, error) {
|
|
5639
5697
|
if (6 === segment.status) return;
|
5640
5698
|
segment.status = 3;
|
5641
5699
|
}
|
5642
|
-
segment = task.row;
|
5643
|
-
null !== segment &&
|
5644
|
-
0 === --segment.pendingTasks &&
|
5645
|
-
finishSuspenseListRow(request, segment);
|
5646
5700
|
segment = getThrownInfo(task.componentStack);
|
5647
5701
|
if (null === boundary) {
|
5648
5702
|
if (13 !== request.status && 14 !== request.status) {
|
@@ -5655,32 +5709,40 @@ function abortTask(task, request, error) {
|
|
5655
5709
|
boundary.pendingTasks--;
|
5656
5710
|
0 === boundary.pendingTasks &&
|
5657
5711
|
0 < boundary.nodes.length &&
|
5658
|
-
((
|
5712
|
+
((segment = logRecoverableError(request, error, segment)),
|
5659
5713
|
abortRemainingReplayNodes(
|
5660
5714
|
request,
|
5661
5715
|
null,
|
5662
5716
|
boundary.nodes,
|
5663
5717
|
boundary.slots,
|
5664
5718
|
error,
|
5665
|
-
|
5719
|
+
segment
|
5666
5720
|
));
|
5667
5721
|
request.pendingRootTasks--;
|
5668
5722
|
0 === request.pendingRootTasks && completeShell(request);
|
5669
5723
|
}
|
5670
5724
|
} else
|
5671
|
-
boundary.
|
5672
|
-
|
5673
|
-
|
5674
|
-
|
5675
|
-
|
5676
|
-
|
5677
|
-
|
5678
|
-
boundary
|
5679
|
-
|
5725
|
+
4 !== boundary.status &&
|
5726
|
+
((boundary.status = 4),
|
5727
|
+
(segment = logRecoverableError(request, error, segment)),
|
5728
|
+
(boundary.status = 4),
|
5729
|
+
(boundary.errorDigest = segment),
|
5730
|
+
untrackBoundary(request, boundary),
|
5731
|
+
boundary.parentFlushed &&
|
5732
|
+
request.clientRenderedBoundaries.push(boundary)),
|
5733
|
+
boundary.pendingTasks--,
|
5734
|
+
(segment = boundary.row),
|
5735
|
+
null !== segment &&
|
5736
|
+
0 === --segment.pendingTasks &&
|
5737
|
+
finishSuspenseListRow(request, segment),
|
5680
5738
|
boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
|
5681
5739
|
return abortTask(fallbackTask, request, error);
|
5682
5740
|
}),
|
5683
5741
|
boundary.fallbackAbortableTasks.clear();
|
5742
|
+
task = task.row;
|
5743
|
+
null !== task &&
|
5744
|
+
0 === --task.pendingTasks &&
|
5745
|
+
finishSuspenseListRow(request, task);
|
5684
5746
|
request.allPendingTasks--;
|
5685
5747
|
0 === request.allPendingTasks && completeAll(request);
|
5686
5748
|
}
|
@@ -5787,53 +5849,115 @@ function finishedSegment(request, boundary, segment) {
|
|
5787
5849
|
: (boundary.byteSize += segmentByteSize);
|
5788
5850
|
}
|
5789
5851
|
}
|
5790
|
-
function finishedTask(request, boundary, row, segment) {
|
5852
|
+
function finishedTask(request$jscomp$0, boundary, row, segment) {
|
5791
5853
|
null !== row &&
|
5792
|
-
0 === --row.pendingTasks
|
5793
|
-
|
5794
|
-
|
5854
|
+
(0 === --row.pendingTasks
|
5855
|
+
? finishSuspenseListRow(request$jscomp$0, row)
|
5856
|
+
: row.together && tryToResolveTogetherRow(request$jscomp$0, row));
|
5857
|
+
request$jscomp$0.allPendingTasks--;
|
5795
5858
|
if (null === boundary) {
|
5796
5859
|
if (null !== segment && segment.parentFlushed) {
|
5797
|
-
if (null !== request.completedRootSegment)
|
5860
|
+
if (null !== request$jscomp$0.completedRootSegment)
|
5798
5861
|
throw Error(formatProdErrorMessage(389));
|
5799
|
-
request.completedRootSegment = segment;
|
5862
|
+
request$jscomp$0.completedRootSegment = segment;
|
5800
5863
|
}
|
5801
|
-
request.pendingRootTasks--;
|
5802
|
-
0 === request.pendingRootTasks && completeShell(request);
|
5803
|
-
} else
|
5804
|
-
boundary.pendingTasks
|
5805
|
-
|
5806
|
-
(0 === boundary.
|
5807
|
-
|
5808
|
-
|
5809
|
-
|
5810
|
-
|
5811
|
-
|
5812
|
-
|
5813
|
-
|
5814
|
-
|
5815
|
-
|
5816
|
-
|
5817
|
-
|
5818
|
-
|
5819
|
-
|
5820
|
-
|
5821
|
-
|
5822
|
-
|
5823
|
-
|
5824
|
-
|
5825
|
-
0 ===
|
5826
|
-
|
5827
|
-
|
5828
|
-
|
5829
|
-
|
5830
|
-
|
5831
|
-
|
5832
|
-
|
5833
|
-
|
5834
|
-
|
5835
|
-
|
5836
|
-
|
5864
|
+
request$jscomp$0.pendingRootTasks--;
|
5865
|
+
0 === request$jscomp$0.pendingRootTasks && completeShell(request$jscomp$0);
|
5866
|
+
} else if ((boundary.pendingTasks--, 4 !== boundary.status))
|
5867
|
+
if (0 === boundary.pendingTasks)
|
5868
|
+
if (
|
5869
|
+
(0 === boundary.status && (boundary.status = 1),
|
5870
|
+
null !== segment &&
|
5871
|
+
segment.parentFlushed &&
|
5872
|
+
1 === segment.status &&
|
5873
|
+
queueCompletedSegment(boundary, segment),
|
5874
|
+
boundary.parentFlushed &&
|
5875
|
+
request$jscomp$0.completedBoundaries.push(boundary),
|
5876
|
+
1 === boundary.status)
|
5877
|
+
)
|
5878
|
+
(row = boundary.row),
|
5879
|
+
null !== row &&
|
5880
|
+
hoistHoistables(row.hoistables, boundary.contentState),
|
5881
|
+
500 < boundary.byteSize ||
|
5882
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5883
|
+
abortTaskSoft,
|
5884
|
+
request$jscomp$0
|
5885
|
+
),
|
5886
|
+
boundary.fallbackAbortableTasks.clear(),
|
5887
|
+
null !== row &&
|
5888
|
+
0 === --row.pendingTasks &&
|
5889
|
+
finishSuspenseListRow(request$jscomp$0, row)),
|
5890
|
+
0 === request$jscomp$0.pendingRootTasks &&
|
5891
|
+
null === request$jscomp$0.trackedPostpones &&
|
5892
|
+
null !== boundary.contentPreamble &&
|
5893
|
+
preparePreamble(request$jscomp$0);
|
5894
|
+
else {
|
5895
|
+
if (
|
5896
|
+
5 === boundary.status &&
|
5897
|
+
((boundary = boundary.row), null !== boundary)
|
5898
|
+
) {
|
5899
|
+
if (null !== request$jscomp$0.trackedPostpones) {
|
5900
|
+
row = request$jscomp$0.trackedPostpones;
|
5901
|
+
var postponedRow = boundary.next;
|
5902
|
+
if (
|
5903
|
+
null !== postponedRow &&
|
5904
|
+
((segment = postponedRow.boundaries), null !== segment)
|
5905
|
+
)
|
5906
|
+
for (
|
5907
|
+
postponedRow.boundaries = null, postponedRow = 0;
|
5908
|
+
postponedRow < segment.length;
|
5909
|
+
postponedRow++
|
5910
|
+
) {
|
5911
|
+
var postponedBoundary = segment[postponedRow];
|
5912
|
+
var request = request$jscomp$0,
|
5913
|
+
trackedPostpones = row;
|
5914
|
+
postponedBoundary.status = 5;
|
5915
|
+
postponedBoundary.rootSegmentID = request.nextSegmentId++;
|
5916
|
+
request = postponedBoundary.trackedContentKeyPath;
|
5917
|
+
if (null === request) throw Error(formatProdErrorMessage(486));
|
5918
|
+
var fallbackReplayNode = postponedBoundary.trackedFallbackNode,
|
5919
|
+
children = [],
|
5920
|
+
boundaryNode = trackedPostpones.workingMap.get(request);
|
5921
|
+
void 0 === boundaryNode
|
5922
|
+
? ((fallbackReplayNode = [
|
5923
|
+
request[1],
|
5924
|
+
request[2],
|
5925
|
+
children,
|
5926
|
+
null,
|
5927
|
+
fallbackReplayNode,
|
5928
|
+
postponedBoundary.rootSegmentID
|
5929
|
+
]),
|
5930
|
+
trackedPostpones.workingMap.set(
|
5931
|
+
request,
|
5932
|
+
fallbackReplayNode
|
5933
|
+
),
|
5934
|
+
addToReplayParent(
|
5935
|
+
fallbackReplayNode,
|
5936
|
+
request[0],
|
5937
|
+
trackedPostpones
|
5938
|
+
))
|
5939
|
+
: ((boundaryNode[4] = fallbackReplayNode),
|
5940
|
+
(boundaryNode[5] = postponedBoundary.rootSegmentID));
|
5941
|
+
finishedTask(request$jscomp$0, postponedBoundary, null, null);
|
5942
|
+
}
|
5943
|
+
}
|
5944
|
+
0 === --boundary.pendingTasks &&
|
5945
|
+
finishSuspenseListRow(request$jscomp$0, boundary);
|
5946
|
+
}
|
5947
|
+
}
|
5948
|
+
else
|
5949
|
+
null !== segment &&
|
5950
|
+
segment.parentFlushed &&
|
5951
|
+
1 === segment.status &&
|
5952
|
+
(queueCompletedSegment(boundary, segment),
|
5953
|
+
1 === boundary.completedSegments.length &&
|
5954
|
+
boundary.parentFlushed &&
|
5955
|
+
request$jscomp$0.partialBoundaries.push(boundary)),
|
5956
|
+
(boundary = boundary.row),
|
5957
|
+
null !== boundary &&
|
5958
|
+
boundary.together &&
|
5959
|
+
tryToResolveTogetherRow(request$jscomp$0, boundary);
|
5960
|
+
0 === request$jscomp$0.allPendingTasks && completeAll(request$jscomp$0);
|
5837
5961
|
}
|
5838
5962
|
function performWork(request$jscomp$2) {
|
5839
5963
|
if (14 !== request$jscomp$2.status && 13 !== request$jscomp$2.status) {
|
@@ -5987,19 +6111,25 @@ function performWork(request$jscomp$2) {
|
|
5987
6111
|
x$jscomp$0,
|
5988
6112
|
errorInfo$jscomp$0
|
5989
6113
|
);
|
5990
|
-
null === boundary$jscomp$0
|
5991
|
-
|
5992
|
-
|
5993
|
-
|
5994
|
-
|
5995
|
-
|
5996
|
-
|
5997
|
-
|
5998
|
-
|
5999
|
-
|
6000
|
-
|
6001
|
-
|
6002
|
-
|
6114
|
+
if (null === boundary$jscomp$0) fatalError(request, x$jscomp$0);
|
6115
|
+
else if (
|
6116
|
+
(boundary$jscomp$0.pendingTasks--,
|
6117
|
+
4 !== boundary$jscomp$0.status)
|
6118
|
+
) {
|
6119
|
+
boundary$jscomp$0.status = 4;
|
6120
|
+
boundary$jscomp$0.errorDigest = request$jscomp$0;
|
6121
|
+
untrackBoundary(request, boundary$jscomp$0);
|
6122
|
+
var boundaryRow = boundary$jscomp$0.row;
|
6123
|
+
null !== boundaryRow &&
|
6124
|
+
0 === --boundaryRow.pendingTasks &&
|
6125
|
+
finishSuspenseListRow(request, boundaryRow);
|
6126
|
+
boundary$jscomp$0.parentFlushed &&
|
6127
|
+
request.clientRenderedBoundaries.push(boundary$jscomp$0);
|
6128
|
+
0 === request.pendingRootTasks &&
|
6129
|
+
null === request.trackedPostpones &&
|
6130
|
+
null !== boundary$jscomp$0.contentPreamble &&
|
6131
|
+
preparePreamble(request);
|
6132
|
+
}
|
6003
6133
|
0 === request.allPendingTasks && completeAll(request);
|
6004
6134
|
}
|
6005
6135
|
} finally {
|
@@ -6166,13 +6296,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
6166
6296
|
request.renderState,
|
6167
6297
|
boundary.rootSegmentID
|
6168
6298
|
),
|
6169
|
-
hoistableState &&
|
6170
|
-
((boundary = boundary.fallbackState),
|
6171
|
-
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
6172
|
-
boundary.stylesheets.forEach(
|
6173
|
-
hoistStylesheetDependency,
|
6174
|
-
hoistableState
|
6175
|
-
)),
|
6299
|
+
hoistableState && hoistHoistables(hoistableState, boundary.fallbackState),
|
6176
6300
|
flushSubtree(request, destination, segment, hoistableState);
|
6177
6301
|
else if (
|
6178
6302
|
500 < boundary.byteSize &&
|
@@ -6188,10 +6312,7 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
6188
6312
|
flushSubtree(request, destination, segment, hoistableState);
|
6189
6313
|
else {
|
6190
6314
|
flushedByteSize += boundary.byteSize;
|
6191
|
-
hoistableState &&
|
6192
|
-
((segment = boundary.contentState),
|
6193
|
-
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
6194
|
-
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
6315
|
+
hoistableState && hoistHoistables(hoistableState, boundary.contentState);
|
6195
6316
|
segment = boundary.row;
|
6196
6317
|
null !== segment &&
|
6197
6318
|
500 < boundary.byteSize &&
|
@@ -6508,12 +6629,12 @@ function flushCompletedQueues(request, destination) {
|
|
6508
6629
|
writtenBytes = 0;
|
6509
6630
|
var partialBoundaries = request.partialBoundaries;
|
6510
6631
|
for (i = 0; i < partialBoundaries.length; i++) {
|
6511
|
-
var boundary$
|
6632
|
+
var boundary$66 = partialBoundaries[i];
|
6512
6633
|
a: {
|
6513
6634
|
clientRenderedBoundaries = request;
|
6514
6635
|
boundary = destination;
|
6515
|
-
flushedByteSize = boundary$
|
6516
|
-
var completedSegments = boundary$
|
6636
|
+
flushedByteSize = boundary$66.byteSize;
|
6637
|
+
var completedSegments = boundary$66.completedSegments;
|
6517
6638
|
for (
|
6518
6639
|
JSCompiler_inline_result = 0;
|
6519
6640
|
JSCompiler_inline_result < completedSegments.length;
|
@@ -6523,7 +6644,7 @@ function flushCompletedQueues(request, destination) {
|
|
6523
6644
|
!flushPartiallyCompletedSegment(
|
6524
6645
|
clientRenderedBoundaries,
|
6525
6646
|
boundary,
|
6526
|
-
boundary$
|
6647
|
+
boundary$66,
|
6527
6648
|
completedSegments[JSCompiler_inline_result]
|
6528
6649
|
)
|
6529
6650
|
) {
|
@@ -6533,9 +6654,20 @@ function flushCompletedQueues(request, destination) {
|
|
6533
6654
|
break a;
|
6534
6655
|
}
|
6535
6656
|
completedSegments.splice(0, JSCompiler_inline_result);
|
6657
|
+
var row = boundary$66.row;
|
6658
|
+
null !== row &&
|
6659
|
+
row.together &&
|
6660
|
+
1 === boundary$66.pendingTasks &&
|
6661
|
+
(1 === row.pendingTasks
|
6662
|
+
? unblockSuspenseListRow(
|
6663
|
+
clientRenderedBoundaries,
|
6664
|
+
row,
|
6665
|
+
row.hoistables
|
6666
|
+
)
|
6667
|
+
: row.pendingTasks--);
|
6536
6668
|
JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
|
6537
6669
|
boundary,
|
6538
|
-
boundary$
|
6670
|
+
boundary$66.contentState,
|
6539
6671
|
clientRenderedBoundaries.renderState
|
6540
6672
|
);
|
6541
6673
|
}
|
@@ -6628,18 +6760,30 @@ function abort(request, reason) {
|
|
6628
6760
|
}
|
6629
6761
|
null !== request.destination &&
|
6630
6762
|
flushCompletedQueues(request, request.destination);
|
6631
|
-
} catch (error$
|
6632
|
-
logRecoverableError(request, error$
|
6763
|
+
} catch (error$68) {
|
6764
|
+
logRecoverableError(request, error$68, {}), fatalError(request, error$68);
|
6765
|
+
}
|
6766
|
+
}
|
6767
|
+
function addToReplayParent(node, parentKeyPath, trackedPostpones) {
|
6768
|
+
if (null === parentKeyPath) trackedPostpones.rootNodes.push(node);
|
6769
|
+
else {
|
6770
|
+
var workingMap = trackedPostpones.workingMap,
|
6771
|
+
parentNode = workingMap.get(parentKeyPath);
|
6772
|
+
void 0 === parentNode &&
|
6773
|
+
((parentNode = [parentKeyPath[1], parentKeyPath[2], [], null]),
|
6774
|
+
workingMap.set(parentKeyPath, parentNode),
|
6775
|
+
addToReplayParent(parentNode, parentKeyPath[0], trackedPostpones));
|
6776
|
+
parentNode[2].push(node);
|
6633
6777
|
}
|
6634
6778
|
}
|
6635
6779
|
function ensureCorrectIsomorphicReactVersion() {
|
6636
6780
|
var isomorphicReactPackageVersion = React.version;
|
6637
|
-
if ("19.2.0-canary-
|
6781
|
+
if ("19.2.0-canary-8ce15b0f-20250522" !== isomorphicReactPackageVersion)
|
6638
6782
|
throw Error(
|
6639
6783
|
formatProdErrorMessage(
|
6640
6784
|
527,
|
6641
6785
|
isomorphicReactPackageVersion,
|
6642
|
-
"19.2.0-canary-
|
6786
|
+
"19.2.0-canary-8ce15b0f-20250522"
|
6643
6787
|
)
|
6644
6788
|
);
|
6645
6789
|
}
|
@@ -6786,4 +6930,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6786
6930
|
startWork(request);
|
6787
6931
|
});
|
6788
6932
|
};
|
6789
|
-
exports.version = "19.2.0-canary-
|
6933
|
+
exports.version = "19.2.0-canary-8ce15b0f-20250522";
|