react-dom 19.2.0-canary-197d6a04-20250424 → 19.2.0-canary-c498bfce-20250426
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 +154 -79
- package/cjs/react-dom-server-legacy.browser.production.js +156 -87
- package/cjs/react-dom-server-legacy.node.development.js +154 -79
- package/cjs/react-dom-server-legacy.node.production.js +156 -87
- package/cjs/react-dom-server.browser.development.js +184 -78
- package/cjs/react-dom-server.browser.production.js +174 -86
- package/cjs/react-dom-server.bun.development.js +176 -79
- package/cjs/react-dom-server.bun.production.js +178 -91
- package/cjs/react-dom-server.edge.development.js +184 -78
- package/cjs/react-dom-server.edge.production.js +174 -86
- package/cjs/react-dom-server.node.development.js +181 -78
- package/cjs/react-dom-server.node.production.js +180 -86
- 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
@@ -166,6 +166,9 @@ function stringToChunk(content) {
|
|
166
166
|
function stringToPrecomputedChunk(content) {
|
167
167
|
return textEncoder.encode(content);
|
168
168
|
}
|
169
|
+
function byteLengthOfChunk(chunk) {
|
170
|
+
return chunk.byteLength;
|
171
|
+
}
|
169
172
|
function closeWithError(destination, error) {
|
170
173
|
"function" === typeof destination.error
|
171
174
|
? destination.error(error)
|
@@ -347,14 +350,14 @@ ReactDOMSharedInternals.d = {
|
|
347
350
|
};
|
348
351
|
var PRELOAD_NO_CREDS = [];
|
349
352
|
stringToPrecomputedChunk('"></template>');
|
350
|
-
var startInlineScript = stringToPrecomputedChunk("<script
|
353
|
+
var startInlineScript = stringToPrecomputedChunk("<script"),
|
351
354
|
endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
|
352
355
|
startScriptSrc = stringToPrecomputedChunk('<script src="'),
|
353
356
|
startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
|
354
|
-
scriptNonce = stringToPrecomputedChunk('
|
355
|
-
scriptIntegirty = stringToPrecomputedChunk('
|
356
|
-
scriptCrossOrigin = stringToPrecomputedChunk('
|
357
|
-
endAsyncScript = stringToPrecomputedChunk('
|
357
|
+
scriptNonce = stringToPrecomputedChunk(' nonce="'),
|
358
|
+
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
|
359
|
+
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
|
360
|
+
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
|
358
361
|
scriptRegex = /(<\/|<)(s)(cript)/gi;
|
359
362
|
function scriptReplacer(match, prefix, s, suffix) {
|
360
363
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
@@ -375,7 +378,7 @@ function createRenderState(
|
|
375
378
|
void 0 === nonce
|
376
379
|
? startInlineScript
|
377
380
|
: stringToPrecomputedChunk(
|
378
|
-
'<script nonce="' + escapeTextForBrowser(nonce) + '"
|
381
|
+
'<script nonce="' + escapeTextForBrowser(nonce) + '"'
|
379
382
|
),
|
380
383
|
idPrefix = resumableState.idPrefix;
|
381
384
|
externalRuntimeConfig = [];
|
@@ -383,13 +386,15 @@ function createRenderState(
|
|
383
386
|
bootstrapScripts = resumableState.bootstrapScripts,
|
384
387
|
bootstrapModules = resumableState.bootstrapModules;
|
385
388
|
void 0 !== bootstrapScriptContent &&
|
389
|
+
(externalRuntimeConfig.push(inlineScriptWithNonce),
|
390
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
386
391
|
externalRuntimeConfig.push(
|
387
|
-
|
392
|
+
endOfStartTag,
|
388
393
|
stringToChunk(
|
389
394
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer)
|
390
395
|
),
|
391
396
|
endInlineScript
|
392
|
-
);
|
397
|
+
));
|
393
398
|
bootstrapScriptContent = [];
|
394
399
|
void 0 !== importMap &&
|
395
400
|
(bootstrapScriptContent.push(importMapScriptStart),
|
@@ -478,23 +483,28 @@ function createRenderState(
|
|
478
483
|
onHeaders.bootstrapScripts.add(scriptConfig);
|
479
484
|
externalRuntimeConfig.push(
|
480
485
|
startScriptSrc,
|
481
|
-
stringToChunk(escapeTextForBrowser(maxHeadersLength))
|
486
|
+
stringToChunk(escapeTextForBrowser(maxHeadersLength)),
|
487
|
+
attributeEnd
|
482
488
|
);
|
483
489
|
nonce &&
|
484
490
|
externalRuntimeConfig.push(
|
485
491
|
scriptNonce,
|
486
|
-
stringToChunk(escapeTextForBrowser(nonce))
|
492
|
+
stringToChunk(escapeTextForBrowser(nonce)),
|
493
|
+
attributeEnd
|
487
494
|
);
|
488
495
|
"string" === typeof idPrefix &&
|
489
496
|
externalRuntimeConfig.push(
|
490
497
|
scriptIntegirty,
|
491
|
-
stringToChunk(escapeTextForBrowser(idPrefix))
|
498
|
+
stringToChunk(escapeTextForBrowser(idPrefix)),
|
499
|
+
attributeEnd
|
492
500
|
);
|
493
501
|
"string" === typeof inlineScriptWithNonce &&
|
494
502
|
externalRuntimeConfig.push(
|
495
503
|
scriptCrossOrigin,
|
496
|
-
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
|
504
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
505
|
+
attributeEnd
|
497
506
|
);
|
507
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState);
|
498
508
|
externalRuntimeConfig.push(endAsyncScript);
|
499
509
|
}
|
500
510
|
if (void 0 !== bootstrapModules)
|
@@ -533,23 +543,28 @@ function createRenderState(
|
|
533
543
|
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
534
544
|
externalRuntimeConfig.push(
|
535
545
|
startModuleSrc,
|
536
|
-
stringToChunk(escapeTextForBrowser(importMap))
|
546
|
+
stringToChunk(escapeTextForBrowser(importMap)),
|
547
|
+
attributeEnd
|
537
548
|
),
|
538
549
|
nonce &&
|
539
550
|
externalRuntimeConfig.push(
|
540
551
|
scriptNonce,
|
541
|
-
stringToChunk(escapeTextForBrowser(nonce))
|
552
|
+
stringToChunk(escapeTextForBrowser(nonce)),
|
553
|
+
attributeEnd
|
542
554
|
),
|
543
555
|
"string" === typeof inlineScriptWithNonce &&
|
544
556
|
externalRuntimeConfig.push(
|
545
557
|
scriptIntegirty,
|
546
|
-
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
|
558
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
559
|
+
attributeEnd
|
547
560
|
),
|
548
561
|
"string" === typeof maxHeadersLength &&
|
549
562
|
externalRuntimeConfig.push(
|
550
563
|
scriptCrossOrigin,
|
551
|
-
stringToChunk(escapeTextForBrowser(maxHeadersLength))
|
564
|
+
stringToChunk(escapeTextForBrowser(maxHeadersLength)),
|
565
|
+
attributeEnd
|
552
566
|
),
|
567
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
553
568
|
externalRuntimeConfig.push(endAsyncScript);
|
554
569
|
return onHeaders;
|
555
570
|
}
|
@@ -1048,13 +1063,25 @@ var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
1048
1063
|
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});'
|
1049
1064
|
);
|
1050
1065
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
1051
|
-
0 === (resumableState.instructions & 16)
|
1052
|
-
|
1053
|
-
renderState.
|
1054
|
-
renderState.
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1066
|
+
if (0 === (resumableState.instructions & 16)) {
|
1067
|
+
resumableState.instructions |= 16;
|
1068
|
+
var preamble = renderState.preamble,
|
1069
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
1070
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
1071
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
1072
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
1073
|
+
bootstrapChunks.push(
|
1074
|
+
endOfStartTag,
|
1075
|
+
formReplayingRuntimeScript,
|
1076
|
+
endInlineScript
|
1077
|
+
))
|
1078
|
+
: bootstrapChunks.unshift(
|
1079
|
+
renderState.startInlineScript,
|
1080
|
+
endOfStartTag,
|
1081
|
+
formReplayingRuntimeScript,
|
1082
|
+
endInlineScript
|
1083
|
+
);
|
1084
|
+
}
|
1058
1085
|
}
|
1059
1086
|
var formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
1060
1087
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e");
|
@@ -2637,6 +2664,22 @@ function preloadLateStyles(styleQueue) {
|
|
2637
2664
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
2638
2665
|
styleQueue.sheets.clear();
|
2639
2666
|
}
|
2667
|
+
var blockingRenderChunkStart = stringToPrecomputedChunk(
|
2668
|
+
'<link rel="expect" href="#'
|
2669
|
+
),
|
2670
|
+
blockingRenderChunkEnd = stringToPrecomputedChunk('" blocking="render"/>'),
|
2671
|
+
completedShellIdAttributeStart = stringToPrecomputedChunk(' id="');
|
2672
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
2673
|
+
0 === (resumableState.instructions & 32) &&
|
2674
|
+
((resumableState.instructions |= 32),
|
2675
|
+
target.push(
|
2676
|
+
completedShellIdAttributeStart,
|
2677
|
+
stringToChunk(
|
2678
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb")
|
2679
|
+
),
|
2680
|
+
attributeEnd
|
2681
|
+
));
|
2682
|
+
}
|
2640
2683
|
var arrayFirstOpenBracket = stringToPrecomputedChunk("["),
|
2641
2684
|
arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
|
2642
2685
|
arrayInterstitial = stringToPrecomputedChunk(","),
|
@@ -3954,6 +3997,7 @@ function RequestInstance(
|
|
3954
3997
|
this.fatalError = null;
|
3955
3998
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3956
3999
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
4000
|
+
this.byteSize = 0;
|
3957
4001
|
this.abortableTasks = abortSet;
|
3958
4002
|
this.pingedTasks = [];
|
3959
4003
|
this.clientRenderedBoundaries = [];
|
@@ -4576,11 +4620,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4576
4620
|
}
|
4577
4621
|
} else {
|
4578
4622
|
type = task.keyPath;
|
4579
|
-
|
4580
|
-
|
4623
|
+
ref = task.blockedBoundary;
|
4624
|
+
propName$33 = task.blockedPreamble;
|
4581
4625
|
var parentHoistableState = task.hoistableState;
|
4582
|
-
propName
|
4583
|
-
|
4626
|
+
propName = task.blockedSegment;
|
4627
|
+
var fallback = props.fallback;
|
4584
4628
|
props = props.children;
|
4585
4629
|
var fallbackAbortSet = new Set();
|
4586
4630
|
var newBoundary =
|
@@ -4596,14 +4640,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4596
4640
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4597
4641
|
var boundarySegment = createPendingSegment(
|
4598
4642
|
request,
|
4599
|
-
propName
|
4643
|
+
propName.chunks.length,
|
4600
4644
|
newBoundary,
|
4601
4645
|
task.formatContext,
|
4602
4646
|
!1,
|
4603
4647
|
!1
|
4604
4648
|
);
|
4605
|
-
propName
|
4606
|
-
propName
|
4649
|
+
propName.children.push(boundarySegment);
|
4650
|
+
propName.lastPushedText = !1;
|
4607
4651
|
var contentRootSegment = createPendingSegment(
|
4608
4652
|
request,
|
4609
4653
|
0,
|
@@ -4623,19 +4667,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4623
4667
|
task.keyPath = newProps;
|
4624
4668
|
boundarySegment.status = 6;
|
4625
4669
|
try {
|
4626
|
-
renderNode(request, task,
|
4670
|
+
renderNode(request, task, fallback, -1),
|
4627
4671
|
boundarySegment.lastPushedText &&
|
4628
4672
|
boundarySegment.textEmbedded &&
|
4629
4673
|
boundarySegment.chunks.push(textSeparator),
|
4630
|
-
(boundarySegment.status = 1)
|
4674
|
+
(boundarySegment.status = 1),
|
4675
|
+
finishedSegment(request, ref, boundarySegment);
|
4631
4676
|
} catch (thrownValue) {
|
4632
4677
|
throw (
|
4633
4678
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4634
4679
|
thrownValue)
|
4635
4680
|
);
|
4636
4681
|
} finally {
|
4637
|
-
(task.blockedSegment = propName
|
4638
|
-
(task.blockedPreamble =
|
4682
|
+
(task.blockedSegment = propName),
|
4683
|
+
(task.blockedPreamble = propName$33),
|
4639
4684
|
(task.keyPath = type);
|
4640
4685
|
}
|
4641
4686
|
task = createRenderTask(
|
@@ -4671,10 +4716,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4671
4716
|
contentRootSegment.textEmbedded &&
|
4672
4717
|
contentRootSegment.chunks.push(textSeparator),
|
4673
4718
|
(contentRootSegment.status = 1),
|
4719
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
4674
4720
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4675
|
-
0 === newBoundary.pendingTasks &&
|
4721
|
+
0 === newBoundary.pendingTasks &&
|
4722
|
+
0 === newBoundary.status &&
|
4723
|
+
((newBoundary.status = 1),
|
4724
|
+
!(newBoundary.byteSize > request.progressiveChunkSize)))
|
4676
4725
|
) {
|
4677
|
-
newBoundary.status = 1;
|
4678
4726
|
0 === request.pendingRootTasks &&
|
4679
4727
|
task.blockedPreamble &&
|
4680
4728
|
preparePreamble(request);
|
@@ -4696,18 +4744,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4696
4744
|
(newBoundary.errorDigest = initialState),
|
4697
4745
|
untrackBoundary(request, newBoundary);
|
4698
4746
|
} finally {
|
4699
|
-
(task.blockedBoundary =
|
4700
|
-
(task.blockedPreamble =
|
4747
|
+
(task.blockedBoundary = ref),
|
4748
|
+
(task.blockedPreamble = propName$33),
|
4701
4749
|
(task.hoistableState = parentHoistableState),
|
4702
|
-
(task.blockedSegment = propName
|
4750
|
+
(task.blockedSegment = propName),
|
4703
4751
|
(task.keyPath = type);
|
4704
4752
|
}
|
4705
4753
|
task = createRenderTask(
|
4706
4754
|
request,
|
4707
4755
|
null,
|
4708
|
-
|
4756
|
+
fallback,
|
4709
4757
|
-1,
|
4710
|
-
|
4758
|
+
ref,
|
4711
4759
|
boundarySegment,
|
4712
4760
|
newBoundary.fallbackPreamble,
|
4713
4761
|
newBoundary.fallbackState,
|
@@ -4729,9 +4777,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4729
4777
|
switch (type.$$typeof) {
|
4730
4778
|
case REACT_FORWARD_REF_TYPE:
|
4731
4779
|
if ("ref" in props)
|
4732
|
-
for (
|
4733
|
-
"ref" !==
|
4734
|
-
(newProps[newBoundary] = props[newBoundary]);
|
4780
|
+
for (fallback in ((newProps = {}), props))
|
4781
|
+
"ref" !== fallback && (newProps[fallback] = props[fallback]);
|
4735
4782
|
else newProps = props;
|
4736
4783
|
type = renderWithHooks(
|
4737
4784
|
request,
|
@@ -4821,6 +4868,7 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4821
4868
|
(task.blockedSegment = resumedSegment),
|
4822
4869
|
renderNode(request, task, node, childIndex),
|
4823
4870
|
(resumedSegment.status = 1),
|
4871
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
4824
4872
|
null === blockedBoundary
|
4825
4873
|
? (request.completedRootSegment = resumedSegment)
|
4826
4874
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
@@ -5525,6 +5573,16 @@ function queueCompletedSegment(boundary, segment) {
|
|
5525
5573
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
5526
5574
|
} else boundary.completedSegments.push(segment);
|
5527
5575
|
}
|
5576
|
+
function finishedSegment(request, boundary, segment) {
|
5577
|
+
if (null !== byteLengthOfChunk) {
|
5578
|
+
segment = segment.chunks;
|
5579
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
5580
|
+
segmentByteSize += segment[i].byteLength;
|
5581
|
+
null === boundary
|
5582
|
+
? (request.byteSize += segmentByteSize)
|
5583
|
+
: (boundary.byteSize += segmentByteSize);
|
5584
|
+
}
|
5585
|
+
}
|
5528
5586
|
function finishedTask(request, boundary, segment) {
|
5529
5587
|
if (null === boundary) {
|
5530
5588
|
if (null !== segment && segment.parentFlushed) {
|
@@ -5548,8 +5606,12 @@ function finishedTask(request, boundary, segment) {
|
|
5548
5606
|
boundary.parentFlushed &&
|
5549
5607
|
request.completedBoundaries.push(boundary),
|
5550
5608
|
1 === boundary.status &&
|
5551
|
-
(boundary.
|
5552
|
-
|
5609
|
+
(boundary.byteSize > request.progressiveChunkSize ||
|
5610
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5611
|
+
abortTaskSoft,
|
5612
|
+
request
|
5613
|
+
),
|
5614
|
+
boundary.fallbackAbortableTasks.clear()),
|
5553
5615
|
0 === request.pendingRootTasks &&
|
5554
5616
|
null === request.trackedPostpones &&
|
5555
5617
|
null !== boundary.contentPreamble &&
|
@@ -5672,6 +5734,7 @@ function performWork(request$jscomp$2) {
|
|
5672
5734
|
request$jscomp$1.chunks.push(textSeparator),
|
5673
5735
|
task.abortSet.delete(task),
|
5674
5736
|
(request$jscomp$1.status = 1),
|
5737
|
+
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
5675
5738
|
finishedTask(request, task.blockedBoundary, request$jscomp$1);
|
5676
5739
|
} catch (thrownValue) {
|
5677
5740
|
resetHooksState();
|
@@ -5949,6 +6012,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5949
6012
|
var requiresStyleInsertion = request.stylesToHoist;
|
5950
6013
|
request.stylesToHoist = !1;
|
5951
6014
|
writeChunk(destination, request.startInlineScript);
|
6015
|
+
writeChunk(destination, endOfStartTag);
|
5952
6016
|
requiresStyleInsertion
|
5953
6017
|
? 0 === (completedSegments.instructions & 2)
|
5954
6018
|
? ((completedSegments.instructions |= 10),
|
@@ -5996,6 +6060,7 @@ function flushPartiallyCompletedSegment(
|
|
5996
6060
|
boundary = request.resumableState;
|
5997
6061
|
request = request.renderState;
|
5998
6062
|
writeChunk(destination, request.startInlineScript);
|
6063
|
+
writeChunk(destination, endOfStartTag);
|
5999
6064
|
0 === (boundary.instructions & 1)
|
6000
6065
|
? ((boundary.instructions |= 1),
|
6001
6066
|
writeChunk(destination, completeSegmentScript1Full))
|
@@ -6020,7 +6085,8 @@ function flushCompletedQueues(request, destination) {
|
|
6020
6085
|
if (5 === completedRootSegment.status) return;
|
6021
6086
|
var completedPreambleSegments = request.completedPreambleSegments;
|
6022
6087
|
if (null === completedPreambleSegments) return;
|
6023
|
-
var
|
6088
|
+
var resumableState = request.resumableState,
|
6089
|
+
renderState = request.renderState,
|
6024
6090
|
preamble = renderState.preamble,
|
6025
6091
|
htmlChunks = preamble.htmlChunks,
|
6026
6092
|
headChunks = preamble.headChunks,
|
@@ -6061,17 +6127,23 @@ function flushCompletedQueues(request, destination) {
|
|
6061
6127
|
renderState.scripts.clear();
|
6062
6128
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
6063
6129
|
renderState.bulkPreloads.clear();
|
6130
|
+
if (htmlChunks || headChunks) {
|
6131
|
+
var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
|
6132
|
+
writeChunk(destination, blockingRenderChunkStart);
|
6133
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(shellId)));
|
6134
|
+
writeChunk(destination, blockingRenderChunkEnd);
|
6135
|
+
}
|
6064
6136
|
var hoistableChunks = renderState.hoistableChunks;
|
6065
6137
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
6066
6138
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
6067
6139
|
for (
|
6068
|
-
|
6069
|
-
|
6070
|
-
|
6140
|
+
resumableState = hoistableChunks.length = 0;
|
6141
|
+
resumableState < completedPreambleSegments.length;
|
6142
|
+
resumableState++
|
6071
6143
|
) {
|
6072
|
-
var segments = completedPreambleSegments[
|
6073
|
-
for (
|
6074
|
-
flushSegment(request, destination, segments[
|
6144
|
+
var segments = completedPreambleSegments[resumableState];
|
6145
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
6146
|
+
flushSegment(request, destination, segments[renderState], null);
|
6075
6147
|
}
|
6076
6148
|
var preamble$jscomp$0 = request.renderState.preamble,
|
6077
6149
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -6087,11 +6159,26 @@ function flushCompletedQueues(request, destination) {
|
|
6087
6159
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
6088
6160
|
flushSegment(request, destination, completedRootSegment, null);
|
6089
6161
|
request.completedRootSegment = null;
|
6090
|
-
|
6162
|
+
var resumableState$jscomp$0 = request.resumableState,
|
6163
|
+
renderState$jscomp$0 = request.renderState,
|
6164
|
+
preamble$jscomp$1 = renderState$jscomp$0.preamble;
|
6165
|
+
if (
|
6166
|
+
(preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
|
6167
|
+
0 === (resumableState$jscomp$0.instructions & 32)
|
6168
|
+
) {
|
6169
|
+
var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
|
6170
|
+
bootstrapChunks.push(startChunkForTag("template"));
|
6171
|
+
pushCompletedShellIdAttribute(
|
6172
|
+
bootstrapChunks,
|
6173
|
+
resumableState$jscomp$0
|
6174
|
+
);
|
6175
|
+
bootstrapChunks.push(endOfStartTag, endChunkForTag("template"));
|
6176
|
+
}
|
6177
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
6091
6178
|
}
|
6092
|
-
var renderState$jscomp$
|
6179
|
+
var renderState$jscomp$1 = request.renderState;
|
6093
6180
|
completedRootSegment = 0;
|
6094
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
6181
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
6095
6182
|
for (
|
6096
6183
|
completedRootSegment = 0;
|
6097
6184
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
@@ -6099,21 +6186,21 @@ function flushCompletedQueues(request, destination) {
|
|
6099
6186
|
)
|
6100
6187
|
writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
|
6101
6188
|
viewportChunks$jscomp$0.length = 0;
|
6102
|
-
renderState$jscomp$
|
6103
|
-
renderState$jscomp$
|
6104
|
-
renderState$jscomp$
|
6105
|
-
renderState$jscomp$
|
6106
|
-
renderState$jscomp$
|
6189
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
6190
|
+
renderState$jscomp$1.preconnects.clear();
|
6191
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
6192
|
+
renderState$jscomp$1.fontPreloads.clear();
|
6193
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
6107
6194
|
flushResource,
|
6108
6195
|
destination
|
6109
6196
|
);
|
6110
|
-
renderState$jscomp$
|
6111
|
-
renderState$jscomp$
|
6112
|
-
renderState$jscomp$
|
6113
|
-
renderState$jscomp$
|
6114
|
-
renderState$jscomp$
|
6115
|
-
renderState$jscomp$
|
6116
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
6197
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
6198
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
6199
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
6200
|
+
renderState$jscomp$1.scripts.clear();
|
6201
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
6202
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
6203
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
6117
6204
|
for (
|
6118
6205
|
completedRootSegment = 0;
|
6119
6206
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
@@ -6124,35 +6211,36 @@ function flushCompletedQueues(request, destination) {
|
|
6124
6211
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
6125
6212
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
6126
6213
|
var boundary = clientRenderedBoundaries[i];
|
6127
|
-
renderState$jscomp$
|
6128
|
-
var resumableState = request.resumableState,
|
6129
|
-
renderState$jscomp$
|
6214
|
+
renderState$jscomp$1 = destination;
|
6215
|
+
var resumableState$jscomp$1 = request.resumableState,
|
6216
|
+
renderState$jscomp$2 = request.renderState,
|
6130
6217
|
id = boundary.rootSegmentID,
|
6131
6218
|
errorDigest = boundary.errorDigest;
|
6132
6219
|
writeChunk(
|
6133
|
-
renderState$jscomp$
|
6134
|
-
renderState$jscomp$
|
6220
|
+
renderState$jscomp$1,
|
6221
|
+
renderState$jscomp$2.startInlineScript
|
6135
6222
|
);
|
6136
|
-
|
6137
|
-
|
6138
|
-
|
6139
|
-
|
6140
|
-
|
6141
|
-
writeChunk(renderState$jscomp$
|
6142
|
-
writeChunk(renderState$jscomp$
|
6223
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
6224
|
+
0 === (resumableState$jscomp$1.instructions & 4)
|
6225
|
+
? ((resumableState$jscomp$1.instructions |= 4),
|
6226
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
6227
|
+
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
6228
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
6229
|
+
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
6230
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
6143
6231
|
errorDigest &&
|
6144
6232
|
(writeChunk(
|
6145
|
-
renderState$jscomp$
|
6233
|
+
renderState$jscomp$1,
|
6146
6234
|
clientRenderErrorScriptArgInterstitial
|
6147
6235
|
),
|
6148
6236
|
writeChunk(
|
6149
|
-
renderState$jscomp$
|
6237
|
+
renderState$jscomp$1,
|
6150
6238
|
stringToChunk(
|
6151
6239
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
6152
6240
|
)
|
6153
6241
|
));
|
6154
6242
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
6155
|
-
renderState$jscomp$
|
6243
|
+
renderState$jscomp$1,
|
6156
6244
|
clientRenderScriptEnd
|
6157
6245
|
);
|
6158
6246
|
if (!JSCompiler_inline_result) {
|
@@ -6318,11 +6406,11 @@ function abort(request, reason) {
|
|
6318
6406
|
}
|
6319
6407
|
function ensureCorrectIsomorphicReactVersion() {
|
6320
6408
|
var isomorphicReactPackageVersion = React.version;
|
6321
|
-
if ("19.2.0-canary-
|
6409
|
+
if ("19.2.0-canary-c498bfce-20250426" !== isomorphicReactPackageVersion)
|
6322
6410
|
throw Error(
|
6323
6411
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6324
6412
|
(isomorphicReactPackageVersion +
|
6325
|
-
"\n - react-dom: 19.2.0-canary-
|
6413
|
+
"\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
|
6326
6414
|
);
|
6327
6415
|
}
|
6328
6416
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6468,4 +6556,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6468
6556
|
startWork(request);
|
6469
6557
|
});
|
6470
6558
|
};
|
6471
|
-
exports.version = "19.2.0-canary-
|
6559
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|