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
@@ -123,6 +123,11 @@ var textEncoder = new util.TextEncoder();
|
|
123
123
|
function stringToPrecomputedChunk(content) {
|
124
124
|
return textEncoder.encode(content);
|
125
125
|
}
|
126
|
+
function byteLengthOfChunk(chunk) {
|
127
|
+
return "string" === typeof chunk
|
128
|
+
? Buffer.byteLength(chunk, "utf8")
|
129
|
+
: chunk.byteLength;
|
130
|
+
}
|
126
131
|
var assign = Object.assign,
|
127
132
|
hasOwnProperty = Object.prototype.hasOwnProperty,
|
128
133
|
VALID_ATTRIBUTE_NAME_REGEX = RegExp(
|
@@ -299,14 +304,14 @@ ReactDOMSharedInternals.d = {
|
|
299
304
|
};
|
300
305
|
var PRELOAD_NO_CREDS = [];
|
301
306
|
stringToPrecomputedChunk('"></template>');
|
302
|
-
var startInlineScript = stringToPrecomputedChunk("<script
|
307
|
+
var startInlineScript = stringToPrecomputedChunk("<script"),
|
303
308
|
endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
|
304
309
|
startScriptSrc = stringToPrecomputedChunk('<script src="'),
|
305
310
|
startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
|
306
|
-
scriptNonce = stringToPrecomputedChunk('
|
307
|
-
scriptIntegirty = stringToPrecomputedChunk('
|
308
|
-
scriptCrossOrigin = stringToPrecomputedChunk('
|
309
|
-
endAsyncScript = stringToPrecomputedChunk('
|
311
|
+
scriptNonce = stringToPrecomputedChunk(' nonce="'),
|
312
|
+
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
|
313
|
+
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
|
314
|
+
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
|
310
315
|
scriptRegex = /(<\/|<)(s)(cript)/gi;
|
311
316
|
function scriptReplacer(match, prefix, s, suffix) {
|
312
317
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
@@ -327,7 +332,7 @@ function createRenderState(
|
|
327
332
|
void 0 === nonce
|
328
333
|
? startInlineScript
|
329
334
|
: stringToPrecomputedChunk(
|
330
|
-
'<script nonce="' + escapeTextForBrowser(nonce) + '"
|
335
|
+
'<script nonce="' + escapeTextForBrowser(nonce) + '"'
|
331
336
|
),
|
332
337
|
idPrefix = resumableState.idPrefix;
|
333
338
|
externalRuntimeConfig = [];
|
@@ -335,11 +340,13 @@ function createRenderState(
|
|
335
340
|
bootstrapScripts = resumableState.bootstrapScripts,
|
336
341
|
bootstrapModules = resumableState.bootstrapModules;
|
337
342
|
void 0 !== bootstrapScriptContent &&
|
343
|
+
(externalRuntimeConfig.push(inlineScriptWithNonce),
|
344
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
338
345
|
externalRuntimeConfig.push(
|
339
|
-
|
346
|
+
endOfStartTag,
|
340
347
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
341
348
|
endInlineScript
|
342
|
-
);
|
349
|
+
));
|
343
350
|
bootstrapScriptContent = [];
|
344
351
|
void 0 !== importMap &&
|
345
352
|
(bootstrapScriptContent.push(importMapScriptStart),
|
@@ -426,20 +433,28 @@ function createRenderState(
|
|
426
433
|
onHeaders.bootstrapScripts.add(scriptConfig);
|
427
434
|
externalRuntimeConfig.push(
|
428
435
|
startScriptSrc,
|
429
|
-
escapeTextForBrowser(maxHeadersLength)
|
436
|
+
escapeTextForBrowser(maxHeadersLength),
|
437
|
+
attributeEnd
|
430
438
|
);
|
431
439
|
nonce &&
|
432
|
-
externalRuntimeConfig.push(
|
440
|
+
externalRuntimeConfig.push(
|
441
|
+
scriptNonce,
|
442
|
+
escapeTextForBrowser(nonce),
|
443
|
+
attributeEnd
|
444
|
+
);
|
433
445
|
"string" === typeof idPrefix &&
|
434
446
|
externalRuntimeConfig.push(
|
435
447
|
scriptIntegirty,
|
436
|
-
escapeTextForBrowser(idPrefix)
|
448
|
+
escapeTextForBrowser(idPrefix),
|
449
|
+
attributeEnd
|
437
450
|
);
|
438
451
|
"string" === typeof inlineScriptWithNonce &&
|
439
452
|
externalRuntimeConfig.push(
|
440
453
|
scriptCrossOrigin,
|
441
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
454
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
455
|
+
attributeEnd
|
442
456
|
);
|
457
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState);
|
443
458
|
externalRuntimeConfig.push(endAsyncScript);
|
444
459
|
}
|
445
460
|
if (void 0 !== bootstrapModules)
|
@@ -478,20 +493,28 @@ function createRenderState(
|
|
478
493
|
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
479
494
|
externalRuntimeConfig.push(
|
480
495
|
startModuleSrc,
|
481
|
-
escapeTextForBrowser(importMap)
|
496
|
+
escapeTextForBrowser(importMap),
|
497
|
+
attributeEnd
|
482
498
|
),
|
483
499
|
nonce &&
|
484
|
-
externalRuntimeConfig.push(
|
500
|
+
externalRuntimeConfig.push(
|
501
|
+
scriptNonce,
|
502
|
+
escapeTextForBrowser(nonce),
|
503
|
+
attributeEnd
|
504
|
+
),
|
485
505
|
"string" === typeof inlineScriptWithNonce &&
|
486
506
|
externalRuntimeConfig.push(
|
487
507
|
scriptIntegirty,
|
488
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
508
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
509
|
+
attributeEnd
|
489
510
|
),
|
490
511
|
"string" === typeof maxHeadersLength &&
|
491
512
|
externalRuntimeConfig.push(
|
492
513
|
scriptCrossOrigin,
|
493
|
-
escapeTextForBrowser(maxHeadersLength)
|
514
|
+
escapeTextForBrowser(maxHeadersLength),
|
515
|
+
attributeEnd
|
494
516
|
),
|
517
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
495
518
|
externalRuntimeConfig.push(endAsyncScript);
|
496
519
|
return onHeaders;
|
497
520
|
}
|
@@ -976,13 +999,25 @@ var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
976
999
|
'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))}});'
|
977
1000
|
);
|
978
1001
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
979
|
-
0 === (resumableState.instructions & 16)
|
980
|
-
|
981
|
-
renderState.
|
982
|
-
renderState.
|
983
|
-
|
984
|
-
|
985
|
-
|
1002
|
+
if (0 === (resumableState.instructions & 16)) {
|
1003
|
+
resumableState.instructions |= 16;
|
1004
|
+
var preamble = renderState.preamble,
|
1005
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
1006
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
1007
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
1008
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
1009
|
+
bootstrapChunks.push(
|
1010
|
+
endOfStartTag,
|
1011
|
+
formReplayingRuntimeScript,
|
1012
|
+
endInlineScript
|
1013
|
+
))
|
1014
|
+
: bootstrapChunks.unshift(
|
1015
|
+
renderState.startInlineScript,
|
1016
|
+
endOfStartTag,
|
1017
|
+
formReplayingRuntimeScript,
|
1018
|
+
endInlineScript
|
1019
|
+
);
|
1020
|
+
}
|
986
1021
|
}
|
987
1022
|
var formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
988
1023
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e");
|
@@ -2549,6 +2584,20 @@ function preloadLateStyles(styleQueue) {
|
|
2549
2584
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
2550
2585
|
styleQueue.sheets.clear();
|
2551
2586
|
}
|
2587
|
+
var blockingRenderChunkStart = stringToPrecomputedChunk(
|
2588
|
+
'<link rel="expect" href="#'
|
2589
|
+
),
|
2590
|
+
blockingRenderChunkEnd = stringToPrecomputedChunk('" blocking="render"/>'),
|
2591
|
+
completedShellIdAttributeStart = stringToPrecomputedChunk(' id="');
|
2592
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
2593
|
+
0 === (resumableState.instructions & 32) &&
|
2594
|
+
((resumableState.instructions |= 32),
|
2595
|
+
target.push(
|
2596
|
+
completedShellIdAttributeStart,
|
2597
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
2598
|
+
attributeEnd
|
2599
|
+
));
|
2600
|
+
}
|
2552
2601
|
var arrayFirstOpenBracket = stringToPrecomputedChunk("["),
|
2553
2602
|
arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
|
2554
2603
|
arrayInterstitial = stringToPrecomputedChunk(","),
|
@@ -3854,6 +3903,7 @@ function RequestInstance(
|
|
3854
3903
|
this.fatalError = null;
|
3855
3904
|
this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
|
3856
3905
|
this.completedPreambleSegments = this.completedRootSegment = null;
|
3906
|
+
this.byteSize = 0;
|
3857
3907
|
this.abortableTasks = abortSet;
|
3858
3908
|
this.pingedTasks = [];
|
3859
3909
|
this.clientRenderedBoundaries = [];
|
@@ -4473,11 +4523,11 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4473
4523
|
}
|
4474
4524
|
} else {
|
4475
4525
|
type = task.keyPath;
|
4476
|
-
|
4477
|
-
|
4526
|
+
ref = task.blockedBoundary;
|
4527
|
+
propName$33 = task.blockedPreamble;
|
4478
4528
|
var parentHoistableState = task.hoistableState;
|
4479
|
-
propName
|
4480
|
-
|
4529
|
+
propName = task.blockedSegment;
|
4530
|
+
var fallback = props.fallback;
|
4481
4531
|
props = props.children;
|
4482
4532
|
var fallbackAbortSet = new Set();
|
4483
4533
|
var newBoundary =
|
@@ -4493,14 +4543,14 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4493
4543
|
(newBoundary.trackedContentKeyPath = keyPath);
|
4494
4544
|
var boundarySegment = createPendingSegment(
|
4495
4545
|
request,
|
4496
|
-
propName
|
4546
|
+
propName.chunks.length,
|
4497
4547
|
newBoundary,
|
4498
4548
|
task.formatContext,
|
4499
4549
|
!1,
|
4500
4550
|
!1
|
4501
4551
|
);
|
4502
|
-
propName
|
4503
|
-
propName
|
4552
|
+
propName.children.push(boundarySegment);
|
4553
|
+
propName.lastPushedText = !1;
|
4504
4554
|
var contentRootSegment = createPendingSegment(
|
4505
4555
|
request,
|
4506
4556
|
0,
|
@@ -4520,19 +4570,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4520
4570
|
task.keyPath = newProps;
|
4521
4571
|
boundarySegment.status = 6;
|
4522
4572
|
try {
|
4523
|
-
renderNode(request, task,
|
4573
|
+
renderNode(request, task, fallback, -1),
|
4524
4574
|
boundarySegment.lastPushedText &&
|
4525
4575
|
boundarySegment.textEmbedded &&
|
4526
4576
|
boundarySegment.chunks.push(textSeparator),
|
4527
|
-
(boundarySegment.status = 1)
|
4577
|
+
(boundarySegment.status = 1),
|
4578
|
+
finishedSegment(request, ref, boundarySegment);
|
4528
4579
|
} catch (thrownValue) {
|
4529
4580
|
throw (
|
4530
4581
|
((boundarySegment.status = 12 === request.status ? 3 : 4),
|
4531
4582
|
thrownValue)
|
4532
4583
|
);
|
4533
4584
|
} finally {
|
4534
|
-
(task.blockedSegment = propName
|
4535
|
-
(task.blockedPreamble =
|
4585
|
+
(task.blockedSegment = propName),
|
4586
|
+
(task.blockedPreamble = propName$33),
|
4536
4587
|
(task.keyPath = type);
|
4537
4588
|
}
|
4538
4589
|
task = createRenderTask(
|
@@ -4568,10 +4619,13 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4568
4619
|
contentRootSegment.textEmbedded &&
|
4569
4620
|
contentRootSegment.chunks.push(textSeparator),
|
4570
4621
|
(contentRootSegment.status = 1),
|
4622
|
+
finishedSegment(request, newBoundary, contentRootSegment),
|
4571
4623
|
queueCompletedSegment(newBoundary, contentRootSegment),
|
4572
|
-
0 === newBoundary.pendingTasks &&
|
4624
|
+
0 === newBoundary.pendingTasks &&
|
4625
|
+
0 === newBoundary.status &&
|
4626
|
+
((newBoundary.status = 1),
|
4627
|
+
!(newBoundary.byteSize > request.progressiveChunkSize)))
|
4573
4628
|
) {
|
4574
|
-
newBoundary.status = 1;
|
4575
4629
|
0 === request.pendingRootTasks &&
|
4576
4630
|
task.blockedPreamble &&
|
4577
4631
|
preparePreamble(request);
|
@@ -4593,18 +4647,18 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4593
4647
|
(newBoundary.errorDigest = initialState),
|
4594
4648
|
untrackBoundary(request, newBoundary);
|
4595
4649
|
} finally {
|
4596
|
-
(task.blockedBoundary =
|
4597
|
-
(task.blockedPreamble =
|
4650
|
+
(task.blockedBoundary = ref),
|
4651
|
+
(task.blockedPreamble = propName$33),
|
4598
4652
|
(task.hoistableState = parentHoistableState),
|
4599
|
-
(task.blockedSegment = propName
|
4653
|
+
(task.blockedSegment = propName),
|
4600
4654
|
(task.keyPath = type);
|
4601
4655
|
}
|
4602
4656
|
task = createRenderTask(
|
4603
4657
|
request,
|
4604
4658
|
null,
|
4605
|
-
|
4659
|
+
fallback,
|
4606
4660
|
-1,
|
4607
|
-
|
4661
|
+
ref,
|
4608
4662
|
boundarySegment,
|
4609
4663
|
newBoundary.fallbackPreamble,
|
4610
4664
|
newBoundary.fallbackState,
|
@@ -4626,9 +4680,8 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4626
4680
|
switch (type.$$typeof) {
|
4627
4681
|
case REACT_FORWARD_REF_TYPE:
|
4628
4682
|
if ("ref" in props)
|
4629
|
-
for (
|
4630
|
-
"ref" !==
|
4631
|
-
(newProps[newBoundary] = props[newBoundary]);
|
4683
|
+
for (fallback in ((newProps = {}), props))
|
4684
|
+
"ref" !== fallback && (newProps[fallback] = props[fallback]);
|
4632
4685
|
else newProps = props;
|
4633
4686
|
type = renderWithHooks(
|
4634
4687
|
request,
|
@@ -4718,6 +4771,7 @@ function resumeNode(request, task, segmentId, node, childIndex) {
|
|
4718
4771
|
(task.blockedSegment = resumedSegment),
|
4719
4772
|
renderNode(request, task, node, childIndex),
|
4720
4773
|
(resumedSegment.status = 1),
|
4774
|
+
finishedSegment(request, blockedBoundary, resumedSegment),
|
4721
4775
|
null === blockedBoundary
|
4722
4776
|
? (request.completedRootSegment = resumedSegment)
|
4723
4777
|
: (queueCompletedSegment(blockedBoundary, resumedSegment),
|
@@ -5422,6 +5476,16 @@ function queueCompletedSegment(boundary, segment) {
|
|
5422
5476
|
1 === childSegment.status && queueCompletedSegment(boundary, childSegment);
|
5423
5477
|
} else boundary.completedSegments.push(segment);
|
5424
5478
|
}
|
5479
|
+
function finishedSegment(request, boundary, segment) {
|
5480
|
+
if (null !== byteLengthOfChunk) {
|
5481
|
+
segment = segment.chunks;
|
5482
|
+
for (var segmentByteSize = 0, i = 0; i < segment.length; i++)
|
5483
|
+
segmentByteSize += byteLengthOfChunk(segment[i]);
|
5484
|
+
null === boundary
|
5485
|
+
? (request.byteSize += segmentByteSize)
|
5486
|
+
: (boundary.byteSize += segmentByteSize);
|
5487
|
+
}
|
5488
|
+
}
|
5425
5489
|
function finishedTask(request, boundary, segment) {
|
5426
5490
|
if (null === boundary) {
|
5427
5491
|
if (null !== segment && segment.parentFlushed) {
|
@@ -5445,8 +5509,12 @@ function finishedTask(request, boundary, segment) {
|
|
5445
5509
|
boundary.parentFlushed &&
|
5446
5510
|
request.completedBoundaries.push(boundary),
|
5447
5511
|
1 === boundary.status &&
|
5448
|
-
(boundary.
|
5449
|
-
|
5512
|
+
(boundary.byteSize > request.progressiveChunkSize ||
|
5513
|
+
(boundary.fallbackAbortableTasks.forEach(
|
5514
|
+
abortTaskSoft,
|
5515
|
+
request
|
5516
|
+
),
|
5517
|
+
boundary.fallbackAbortableTasks.clear()),
|
5450
5518
|
0 === request.pendingRootTasks &&
|
5451
5519
|
null === request.trackedPostpones &&
|
5452
5520
|
null !== boundary.contentPreamble &&
|
@@ -5569,6 +5637,7 @@ function performWork(request$jscomp$2) {
|
|
5569
5637
|
request$jscomp$1.chunks.push(textSeparator),
|
5570
5638
|
task.abortSet.delete(task),
|
5571
5639
|
(request$jscomp$1.status = 1),
|
5640
|
+
finishedSegment(request, task.blockedBoundary, request$jscomp$1),
|
5572
5641
|
finishedTask(request, task.blockedBoundary, request$jscomp$1);
|
5573
5642
|
} catch (thrownValue) {
|
5574
5643
|
resetHooksState();
|
@@ -5846,6 +5915,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5846
5915
|
var requiresStyleInsertion = request.stylesToHoist;
|
5847
5916
|
request.stylesToHoist = !1;
|
5848
5917
|
writeChunk(destination, request.startInlineScript);
|
5918
|
+
writeChunk(destination, endOfStartTag);
|
5849
5919
|
requiresStyleInsertion
|
5850
5920
|
? 0 === (completedSegments.instructions & 2)
|
5851
5921
|
? ((completedSegments.instructions |= 10),
|
@@ -5893,6 +5963,7 @@ function flushPartiallyCompletedSegment(
|
|
5893
5963
|
boundary = request.resumableState;
|
5894
5964
|
request = request.renderState;
|
5895
5965
|
writeChunk(destination, request.startInlineScript);
|
5966
|
+
writeChunk(destination, endOfStartTag);
|
5896
5967
|
0 === (boundary.instructions & 1)
|
5897
5968
|
? ((boundary.instructions |= 1),
|
5898
5969
|
writeChunk(destination, completeSegmentScript1Full))
|
@@ -5918,7 +5989,8 @@ function flushCompletedQueues(request, destination) {
|
|
5918
5989
|
if (5 === completedRootSegment.status) return;
|
5919
5990
|
var completedPreambleSegments = request.completedPreambleSegments;
|
5920
5991
|
if (null === completedPreambleSegments) return;
|
5921
|
-
var
|
5992
|
+
var resumableState = request.resumableState,
|
5993
|
+
renderState = request.renderState,
|
5922
5994
|
preamble = renderState.preamble,
|
5923
5995
|
htmlChunks = preamble.htmlChunks,
|
5924
5996
|
headChunks = preamble.headChunks,
|
@@ -5959,17 +6031,23 @@ function flushCompletedQueues(request, destination) {
|
|
5959
6031
|
renderState.scripts.clear();
|
5960
6032
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
5961
6033
|
renderState.bulkPreloads.clear();
|
6034
|
+
if (htmlChunks || headChunks) {
|
6035
|
+
var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
|
6036
|
+
writeChunk(destination, blockingRenderChunkStart);
|
6037
|
+
writeChunk(destination, escapeTextForBrowser(shellId));
|
6038
|
+
writeChunk(destination, blockingRenderChunkEnd);
|
6039
|
+
}
|
5962
6040
|
var hoistableChunks = renderState.hoistableChunks;
|
5963
6041
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
5964
6042
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
5965
6043
|
for (
|
5966
|
-
|
5967
|
-
|
5968
|
-
|
6044
|
+
resumableState = hoistableChunks.length = 0;
|
6045
|
+
resumableState < completedPreambleSegments.length;
|
6046
|
+
resumableState++
|
5969
6047
|
) {
|
5970
|
-
var segments = completedPreambleSegments[
|
5971
|
-
for (
|
5972
|
-
flushSegment(request, destination, segments[
|
6048
|
+
var segments = completedPreambleSegments[resumableState];
|
6049
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
6050
|
+
flushSegment(request, destination, segments[renderState], null);
|
5973
6051
|
}
|
5974
6052
|
var preamble$jscomp$0 = request.renderState.preamble,
|
5975
6053
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -5985,11 +6063,26 @@ function flushCompletedQueues(request, destination) {
|
|
5985
6063
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
5986
6064
|
flushSegment(request, destination, completedRootSegment, null);
|
5987
6065
|
request.completedRootSegment = null;
|
5988
|
-
|
6066
|
+
var resumableState$jscomp$0 = request.resumableState,
|
6067
|
+
renderState$jscomp$0 = request.renderState,
|
6068
|
+
preamble$jscomp$1 = renderState$jscomp$0.preamble;
|
6069
|
+
if (
|
6070
|
+
(preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
|
6071
|
+
0 === (resumableState$jscomp$0.instructions & 32)
|
6072
|
+
) {
|
6073
|
+
var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
|
6074
|
+
bootstrapChunks.push(startChunkForTag("template"));
|
6075
|
+
pushCompletedShellIdAttribute(
|
6076
|
+
bootstrapChunks,
|
6077
|
+
resumableState$jscomp$0
|
6078
|
+
);
|
6079
|
+
bootstrapChunks.push(endOfStartTag, endChunkForTag("template"));
|
6080
|
+
}
|
6081
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
5989
6082
|
}
|
5990
|
-
var renderState$jscomp$
|
6083
|
+
var renderState$jscomp$1 = request.renderState;
|
5991
6084
|
completedRootSegment = 0;
|
5992
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
6085
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
5993
6086
|
for (
|
5994
6087
|
completedRootSegment = 0;
|
5995
6088
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
@@ -5997,21 +6090,21 @@ function flushCompletedQueues(request, destination) {
|
|
5997
6090
|
)
|
5998
6091
|
writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
|
5999
6092
|
viewportChunks$jscomp$0.length = 0;
|
6000
|
-
renderState$jscomp$
|
6001
|
-
renderState$jscomp$
|
6002
|
-
renderState$jscomp$
|
6003
|
-
renderState$jscomp$
|
6004
|
-
renderState$jscomp$
|
6093
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
6094
|
+
renderState$jscomp$1.preconnects.clear();
|
6095
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
6096
|
+
renderState$jscomp$1.fontPreloads.clear();
|
6097
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
6005
6098
|
flushResource,
|
6006
6099
|
destination
|
6007
6100
|
);
|
6008
|
-
renderState$jscomp$
|
6009
|
-
renderState$jscomp$
|
6010
|
-
renderState$jscomp$
|
6011
|
-
renderState$jscomp$
|
6012
|
-
renderState$jscomp$
|
6013
|
-
renderState$jscomp$
|
6014
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
6101
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
6102
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
6103
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
6104
|
+
renderState$jscomp$1.scripts.clear();
|
6105
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
6106
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
6107
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
6015
6108
|
for (
|
6016
6109
|
completedRootSegment = 0;
|
6017
6110
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
@@ -6022,33 +6115,34 @@ function flushCompletedQueues(request, destination) {
|
|
6022
6115
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
6023
6116
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
6024
6117
|
var boundary = clientRenderedBoundaries[i];
|
6025
|
-
renderState$jscomp$
|
6026
|
-
var resumableState = request.resumableState,
|
6027
|
-
renderState$jscomp$
|
6118
|
+
renderState$jscomp$1 = destination;
|
6119
|
+
var resumableState$jscomp$1 = request.resumableState,
|
6120
|
+
renderState$jscomp$2 = request.renderState,
|
6028
6121
|
id = boundary.rootSegmentID,
|
6029
6122
|
errorDigest = boundary.errorDigest;
|
6030
6123
|
writeChunk(
|
6031
|
-
renderState$jscomp$
|
6032
|
-
renderState$jscomp$
|
6124
|
+
renderState$jscomp$1,
|
6125
|
+
renderState$jscomp$2.startInlineScript
|
6033
6126
|
);
|
6034
|
-
|
6035
|
-
|
6036
|
-
|
6037
|
-
|
6038
|
-
|
6039
|
-
writeChunk(renderState$jscomp$
|
6040
|
-
writeChunk(renderState$jscomp$
|
6127
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
6128
|
+
0 === (resumableState$jscomp$1.instructions & 4)
|
6129
|
+
? ((resumableState$jscomp$1.instructions |= 4),
|
6130
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
6131
|
+
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
6132
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
6133
|
+
writeChunk(renderState$jscomp$1, id.toString(16));
|
6134
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
6041
6135
|
errorDigest &&
|
6042
6136
|
(writeChunk(
|
6043
|
-
renderState$jscomp$
|
6137
|
+
renderState$jscomp$1,
|
6044
6138
|
clientRenderErrorScriptArgInterstitial
|
6045
6139
|
),
|
6046
6140
|
writeChunk(
|
6047
|
-
renderState$jscomp$
|
6141
|
+
renderState$jscomp$1,
|
6048
6142
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
6049
6143
|
));
|
6050
6144
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
6051
|
-
renderState$jscomp$
|
6145
|
+
renderState$jscomp$1,
|
6052
6146
|
clientRenderScriptEnd
|
6053
6147
|
);
|
6054
6148
|
if (!JSCompiler_inline_result) {
|
@@ -6210,11 +6304,11 @@ function abort(request, reason) {
|
|
6210
6304
|
}
|
6211
6305
|
function ensureCorrectIsomorphicReactVersion() {
|
6212
6306
|
var isomorphicReactPackageVersion = React.version;
|
6213
|
-
if ("19.2.0-canary-
|
6307
|
+
if ("19.2.0-canary-c498bfce-20250426" !== isomorphicReactPackageVersion)
|
6214
6308
|
throw Error(
|
6215
6309
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
6216
6310
|
(isomorphicReactPackageVersion +
|
6217
|
-
"\n - react-dom: 19.2.0-canary-
|
6311
|
+
"\n - react-dom: 19.2.0-canary-c498bfce-20250426\nLearn more: https://react.dev/warnings/version-mismatch")
|
6218
6312
|
);
|
6219
6313
|
}
|
6220
6314
|
ensureCorrectIsomorphicReactVersion();
|
@@ -6363,4 +6457,4 @@ exports.renderToPipeableStream = function (children, options) {
|
|
6363
6457
|
}
|
6364
6458
|
};
|
6365
6459
|
};
|
6366
|
-
exports.version = "19.2.0-canary-
|
6460
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
@@ -416,7 +416,7 @@
|
|
416
416
|
exports.useFormStatus = function () {
|
417
417
|
return resolveDispatcher().useHostTransitionStatus();
|
418
418
|
};
|
419
|
-
exports.version = "19.2.0-canary-
|
419
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
420
420
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
421
421
|
"function" ===
|
422
422
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
@@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
|
207
207
|
exports.useFormStatus = function () {
|
208
208
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
209
209
|
};
|
210
|
-
exports.version = "19.2.0-canary-
|
210
|
+
exports.version = "19.2.0-canary-c498bfce-20250426";
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-dom",
|
3
|
-
"version": "19.2.0-canary-
|
3
|
+
"version": "19.2.0-canary-c498bfce-20250426",
|
4
4
|
"description": "React package for working with the DOM.",
|
5
5
|
"main": "index.js",
|
6
6
|
"repository": {
|
@@ -17,10 +17,10 @@
|
|
17
17
|
},
|
18
18
|
"homepage": "https://react.dev/",
|
19
19
|
"dependencies": {
|
20
|
-
"scheduler": "0.27.0-canary-
|
20
|
+
"scheduler": "0.27.0-canary-c498bfce-20250426"
|
21
21
|
},
|
22
22
|
"peerDependencies": {
|
23
|
-
"react": "19.2.0-canary-
|
23
|
+
"react": "19.2.0-canary-c498bfce-20250426"
|
24
24
|
},
|
25
25
|
"files": [
|
26
26
|
"LICENSE",
|