react-dom 19.2.0-canary-197d6a04-20250424 → 19.2.0-canary-143d3e1b-20250425
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 +144 -72
- package/cjs/react-dom-server-legacy.browser.production.js +145 -83
- package/cjs/react-dom-server-legacy.node.development.js +144 -72
- package/cjs/react-dom-server-legacy.node.production.js +145 -83
- package/cjs/react-dom-server.browser.development.js +152 -70
- package/cjs/react-dom-server.browser.production.js +128 -63
- package/cjs/react-dom-server.bun.development.js +144 -74
- package/cjs/react-dom-server.bun.production.js +132 -68
- package/cjs/react-dom-server.edge.development.js +152 -70
- package/cjs/react-dom-server.edge.production.js +128 -63
- package/cjs/react-dom-server.node.development.js +147 -70
- package/cjs/react-dom-server.node.production.js +132 -63
- 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
@@ -372,14 +372,14 @@ ReactDOMSharedInternals.d = {
|
|
372
372
|
};
|
373
373
|
var PRELOAD_NO_CREDS = [];
|
374
374
|
stringToPrecomputedChunk('"></template>');
|
375
|
-
var startInlineScript = stringToPrecomputedChunk("<script
|
375
|
+
var startInlineScript = stringToPrecomputedChunk("<script"),
|
376
376
|
endInlineScript = stringToPrecomputedChunk("\x3c/script>"),
|
377
377
|
startScriptSrc = stringToPrecomputedChunk('<script src="'),
|
378
378
|
startModuleSrc = stringToPrecomputedChunk('<script type="module" src="'),
|
379
|
-
scriptNonce = stringToPrecomputedChunk('
|
380
|
-
scriptIntegirty = stringToPrecomputedChunk('
|
381
|
-
scriptCrossOrigin = stringToPrecomputedChunk('
|
382
|
-
endAsyncScript = stringToPrecomputedChunk('
|
379
|
+
scriptNonce = stringToPrecomputedChunk(' nonce="'),
|
380
|
+
scriptIntegirty = stringToPrecomputedChunk(' integrity="'),
|
381
|
+
scriptCrossOrigin = stringToPrecomputedChunk(' crossorigin="'),
|
382
|
+
endAsyncScript = stringToPrecomputedChunk(' async="">\x3c/script>'),
|
383
383
|
scriptRegex = /(<\/|<)(s)(cript)/gi;
|
384
384
|
function scriptReplacer(match, prefix, s, suffix) {
|
385
385
|
return "" + prefix + ("s" === s ? "\\u0073" : "\\u0053") + suffix;
|
@@ -400,7 +400,7 @@ function createRenderState(
|
|
400
400
|
void 0 === nonce
|
401
401
|
? startInlineScript
|
402
402
|
: stringToPrecomputedChunk(
|
403
|
-
'<script nonce="' + escapeTextForBrowser(nonce) + '"
|
403
|
+
'<script nonce="' + escapeTextForBrowser(nonce) + '"'
|
404
404
|
),
|
405
405
|
idPrefix = resumableState.idPrefix;
|
406
406
|
externalRuntimeConfig = [];
|
@@ -408,13 +408,15 @@ function createRenderState(
|
|
408
408
|
bootstrapScripts = resumableState.bootstrapScripts,
|
409
409
|
bootstrapModules = resumableState.bootstrapModules;
|
410
410
|
void 0 !== bootstrapScriptContent &&
|
411
|
+
(externalRuntimeConfig.push(inlineScriptWithNonce),
|
412
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
411
413
|
externalRuntimeConfig.push(
|
412
|
-
|
414
|
+
endOfStartTag,
|
413
415
|
stringToChunk(
|
414
416
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer)
|
415
417
|
),
|
416
418
|
endInlineScript
|
417
|
-
);
|
419
|
+
));
|
418
420
|
bootstrapScriptContent = [];
|
419
421
|
void 0 !== importMap &&
|
420
422
|
(bootstrapScriptContent.push(importMapScriptStart),
|
@@ -503,23 +505,28 @@ function createRenderState(
|
|
503
505
|
onHeaders.bootstrapScripts.add(scriptConfig);
|
504
506
|
externalRuntimeConfig.push(
|
505
507
|
startScriptSrc,
|
506
|
-
stringToChunk(escapeTextForBrowser(maxHeadersLength))
|
508
|
+
stringToChunk(escapeTextForBrowser(maxHeadersLength)),
|
509
|
+
attributeEnd
|
507
510
|
);
|
508
511
|
nonce &&
|
509
512
|
externalRuntimeConfig.push(
|
510
513
|
scriptNonce,
|
511
|
-
stringToChunk(escapeTextForBrowser(nonce))
|
514
|
+
stringToChunk(escapeTextForBrowser(nonce)),
|
515
|
+
attributeEnd
|
512
516
|
);
|
513
517
|
"string" === typeof idPrefix &&
|
514
518
|
externalRuntimeConfig.push(
|
515
519
|
scriptIntegirty,
|
516
|
-
stringToChunk(escapeTextForBrowser(idPrefix))
|
520
|
+
stringToChunk(escapeTextForBrowser(idPrefix)),
|
521
|
+
attributeEnd
|
517
522
|
);
|
518
523
|
"string" === typeof inlineScriptWithNonce &&
|
519
524
|
externalRuntimeConfig.push(
|
520
525
|
scriptCrossOrigin,
|
521
|
-
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
|
526
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
527
|
+
attributeEnd
|
522
528
|
);
|
529
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState);
|
523
530
|
externalRuntimeConfig.push(endAsyncScript);
|
524
531
|
}
|
525
532
|
if (void 0 !== bootstrapModules)
|
@@ -558,23 +565,28 @@ function createRenderState(
|
|
558
565
|
onHeaders.bootstrapScripts.add(bootstrapScriptContent),
|
559
566
|
externalRuntimeConfig.push(
|
560
567
|
startModuleSrc,
|
561
|
-
stringToChunk(escapeTextForBrowser(importMap))
|
568
|
+
stringToChunk(escapeTextForBrowser(importMap)),
|
569
|
+
attributeEnd
|
562
570
|
),
|
563
571
|
nonce &&
|
564
572
|
externalRuntimeConfig.push(
|
565
573
|
scriptNonce,
|
566
|
-
stringToChunk(escapeTextForBrowser(nonce))
|
574
|
+
stringToChunk(escapeTextForBrowser(nonce)),
|
575
|
+
attributeEnd
|
567
576
|
),
|
568
577
|
"string" === typeof inlineScriptWithNonce &&
|
569
578
|
externalRuntimeConfig.push(
|
570
579
|
scriptIntegirty,
|
571
|
-
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce))
|
580
|
+
stringToChunk(escapeTextForBrowser(inlineScriptWithNonce)),
|
581
|
+
attributeEnd
|
572
582
|
),
|
573
583
|
"string" === typeof maxHeadersLength &&
|
574
584
|
externalRuntimeConfig.push(
|
575
585
|
scriptCrossOrigin,
|
576
|
-
stringToChunk(escapeTextForBrowser(maxHeadersLength))
|
586
|
+
stringToChunk(escapeTextForBrowser(maxHeadersLength)),
|
587
|
+
attributeEnd
|
577
588
|
),
|
589
|
+
pushCompletedShellIdAttribute(externalRuntimeConfig, resumableState),
|
578
590
|
externalRuntimeConfig.push(endAsyncScript);
|
579
591
|
return onHeaders;
|
580
592
|
}
|
@@ -1062,13 +1074,25 @@ var selectedMarkerAttribute = stringToPrecomputedChunk(' selected=""'),
|
|
1062
1074
|
'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))}});'
|
1063
1075
|
);
|
1064
1076
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
1065
|
-
0 === (resumableState.instructions & 16)
|
1066
|
-
|
1067
|
-
renderState.
|
1068
|
-
renderState.
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1077
|
+
if (0 === (resumableState.instructions & 16)) {
|
1078
|
+
resumableState.instructions |= 16;
|
1079
|
+
var preamble = renderState.preamble,
|
1080
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
1081
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
1082
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
1083
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
1084
|
+
bootstrapChunks.push(
|
1085
|
+
endOfStartTag,
|
1086
|
+
formReplayingRuntimeScript,
|
1087
|
+
endInlineScript
|
1088
|
+
))
|
1089
|
+
: bootstrapChunks.unshift(
|
1090
|
+
renderState.startInlineScript,
|
1091
|
+
endOfStartTag,
|
1092
|
+
formReplayingRuntimeScript,
|
1093
|
+
endInlineScript
|
1094
|
+
);
|
1095
|
+
}
|
1072
1096
|
}
|
1073
1097
|
var formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
1074
1098
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e");
|
@@ -2630,6 +2654,22 @@ function preloadLateStyles(styleQueue) {
|
|
2630
2654
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
2631
2655
|
styleQueue.sheets.clear();
|
2632
2656
|
}
|
2657
|
+
var blockingRenderChunkStart = stringToPrecomputedChunk(
|
2658
|
+
'<link rel="expect" href="#'
|
2659
|
+
),
|
2660
|
+
blockingRenderChunkEnd = stringToPrecomputedChunk('" blocking="render"/>'),
|
2661
|
+
completedShellIdAttributeStart = stringToPrecomputedChunk(' id="');
|
2662
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
2663
|
+
0 === (resumableState.instructions & 32) &&
|
2664
|
+
((resumableState.instructions |= 32),
|
2665
|
+
target.push(
|
2666
|
+
completedShellIdAttributeStart,
|
2667
|
+
stringToChunk(
|
2668
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb")
|
2669
|
+
),
|
2670
|
+
attributeEnd
|
2671
|
+
));
|
2672
|
+
}
|
2633
2673
|
var arrayFirstOpenBracket = stringToPrecomputedChunk("["),
|
2634
2674
|
arraySubsequentOpenBracket = stringToPrecomputedChunk(",["),
|
2635
2675
|
arrayInterstitial = stringToPrecomputedChunk(","),
|
@@ -5869,6 +5909,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
5869
5909
|
var requiresStyleInsertion = request.stylesToHoist;
|
5870
5910
|
request.stylesToHoist = !1;
|
5871
5911
|
writeChunk(destination, request.startInlineScript);
|
5912
|
+
writeChunk(destination, endOfStartTag);
|
5872
5913
|
requiresStyleInsertion
|
5873
5914
|
? 0 === (completedSegments.instructions & 2)
|
5874
5915
|
? ((completedSegments.instructions |= 10),
|
@@ -5914,6 +5955,7 @@ function flushPartiallyCompletedSegment(
|
|
5914
5955
|
boundary = request.resumableState;
|
5915
5956
|
request = request.renderState;
|
5916
5957
|
writeChunk(destination, request.startInlineScript);
|
5958
|
+
writeChunk(destination, endOfStartTag);
|
5917
5959
|
0 === (boundary.instructions & 1)
|
5918
5960
|
? ((boundary.instructions |= 1),
|
5919
5961
|
writeChunk(destination, completeSegmentScript1Full))
|
@@ -5938,7 +5980,8 @@ function flushCompletedQueues(request, destination) {
|
|
5938
5980
|
if (5 === completedRootSegment.status) return;
|
5939
5981
|
var completedPreambleSegments = request.completedPreambleSegments;
|
5940
5982
|
if (null === completedPreambleSegments) return;
|
5941
|
-
var
|
5983
|
+
var resumableState = request.resumableState,
|
5984
|
+
renderState = request.renderState,
|
5942
5985
|
preamble = renderState.preamble,
|
5943
5986
|
htmlChunks = preamble.htmlChunks,
|
5944
5987
|
headChunks = preamble.headChunks,
|
@@ -5979,17 +6022,23 @@ function flushCompletedQueues(request, destination) {
|
|
5979
6022
|
renderState.scripts.clear();
|
5980
6023
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
5981
6024
|
renderState.bulkPreloads.clear();
|
6025
|
+
if (htmlChunks || headChunks) {
|
6026
|
+
var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
|
6027
|
+
writeChunk(destination, blockingRenderChunkStart);
|
6028
|
+
writeChunk(destination, stringToChunk(escapeTextForBrowser(shellId)));
|
6029
|
+
writeChunk(destination, blockingRenderChunkEnd);
|
6030
|
+
}
|
5982
6031
|
var hoistableChunks = renderState.hoistableChunks;
|
5983
6032
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
5984
6033
|
writeChunk(destination, hoistableChunks[i$jscomp$0]);
|
5985
6034
|
for (
|
5986
|
-
|
5987
|
-
|
5988
|
-
|
6035
|
+
resumableState = hoistableChunks.length = 0;
|
6036
|
+
resumableState < completedPreambleSegments.length;
|
6037
|
+
resumableState++
|
5989
6038
|
) {
|
5990
|
-
var segments = completedPreambleSegments[
|
5991
|
-
for (
|
5992
|
-
flushSegment(request, destination, segments[
|
6039
|
+
var segments = completedPreambleSegments[resumableState];
|
6040
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
6041
|
+
flushSegment(request, destination, segments[renderState], null);
|
5993
6042
|
}
|
5994
6043
|
var preamble$jscomp$0 = request.renderState.preamble,
|
5995
6044
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
@@ -6005,11 +6054,26 @@ function flushCompletedQueues(request, destination) {
|
|
6005
6054
|
writeChunk(destination, bodyChunks[completedPreambleSegments]);
|
6006
6055
|
flushSegment(request, destination, completedRootSegment, null);
|
6007
6056
|
request.completedRootSegment = null;
|
6008
|
-
|
6057
|
+
var resumableState$jscomp$0 = request.resumableState,
|
6058
|
+
renderState$jscomp$0 = request.renderState,
|
6059
|
+
preamble$jscomp$1 = renderState$jscomp$0.preamble;
|
6060
|
+
if (
|
6061
|
+
(preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
|
6062
|
+
0 === (resumableState$jscomp$0.instructions & 32)
|
6063
|
+
) {
|
6064
|
+
var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
|
6065
|
+
bootstrapChunks.push(startChunkForTag("template"));
|
6066
|
+
pushCompletedShellIdAttribute(
|
6067
|
+
bootstrapChunks,
|
6068
|
+
resumableState$jscomp$0
|
6069
|
+
);
|
6070
|
+
bootstrapChunks.push(endOfStartTag, endChunkForTag("template"));
|
6071
|
+
}
|
6072
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
6009
6073
|
}
|
6010
|
-
var renderState$jscomp$
|
6074
|
+
var renderState$jscomp$1 = request.renderState;
|
6011
6075
|
completedRootSegment = 0;
|
6012
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
6076
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
6013
6077
|
for (
|
6014
6078
|
completedRootSegment = 0;
|
6015
6079
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
@@ -6017,21 +6081,21 @@ function flushCompletedQueues(request, destination) {
|
|
6017
6081
|
)
|
6018
6082
|
writeChunk(destination, viewportChunks$jscomp$0[completedRootSegment]);
|
6019
6083
|
viewportChunks$jscomp$0.length = 0;
|
6020
|
-
renderState$jscomp$
|
6021
|
-
renderState$jscomp$
|
6022
|
-
renderState$jscomp$
|
6023
|
-
renderState$jscomp$
|
6024
|
-
renderState$jscomp$
|
6084
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
6085
|
+
renderState$jscomp$1.preconnects.clear();
|
6086
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
6087
|
+
renderState$jscomp$1.fontPreloads.clear();
|
6088
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
6025
6089
|
flushResource,
|
6026
6090
|
destination
|
6027
6091
|
);
|
6028
|
-
renderState$jscomp$
|
6029
|
-
renderState$jscomp$
|
6030
|
-
renderState$jscomp$
|
6031
|
-
renderState$jscomp$
|
6032
|
-
renderState$jscomp$
|
6033
|
-
renderState$jscomp$
|
6034
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
6092
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
6093
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
6094
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
6095
|
+
renderState$jscomp$1.scripts.clear();
|
6096
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
6097
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
6098
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
6035
6099
|
for (
|
6036
6100
|
completedRootSegment = 0;
|
6037
6101
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
@@ -6042,35 +6106,36 @@ function flushCompletedQueues(request, destination) {
|
|
6042
6106
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
6043
6107
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
6044
6108
|
var boundary = clientRenderedBoundaries[i];
|
6045
|
-
renderState$jscomp$
|
6046
|
-
var resumableState = request.resumableState,
|
6047
|
-
renderState$jscomp$
|
6109
|
+
renderState$jscomp$1 = destination;
|
6110
|
+
var resumableState$jscomp$1 = request.resumableState,
|
6111
|
+
renderState$jscomp$2 = request.renderState,
|
6048
6112
|
id = boundary.rootSegmentID,
|
6049
6113
|
errorDigest = boundary.errorDigest;
|
6050
6114
|
writeChunk(
|
6051
|
-
renderState$jscomp$
|
6052
|
-
renderState$jscomp$
|
6115
|
+
renderState$jscomp$1,
|
6116
|
+
renderState$jscomp$2.startInlineScript
|
6053
6117
|
);
|
6054
|
-
|
6055
|
-
|
6056
|
-
|
6057
|
-
|
6058
|
-
|
6059
|
-
writeChunk(renderState$jscomp$
|
6060
|
-
writeChunk(renderState$jscomp$
|
6118
|
+
writeChunk(renderState$jscomp$1, endOfStartTag);
|
6119
|
+
0 === (resumableState$jscomp$1.instructions & 4)
|
6120
|
+
? ((resumableState$jscomp$1.instructions |= 4),
|
6121
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1Full))
|
6122
|
+
: writeChunk(renderState$jscomp$1, clientRenderScript1Partial);
|
6123
|
+
writeChunk(renderState$jscomp$1, renderState$jscomp$2.boundaryPrefix);
|
6124
|
+
writeChunk(renderState$jscomp$1, stringToChunk(id.toString(16)));
|
6125
|
+
writeChunk(renderState$jscomp$1, clientRenderScript1A);
|
6061
6126
|
errorDigest &&
|
6062
6127
|
(writeChunk(
|
6063
|
-
renderState$jscomp$
|
6128
|
+
renderState$jscomp$1,
|
6064
6129
|
clientRenderErrorScriptArgInterstitial
|
6065
6130
|
),
|
6066
6131
|
writeChunk(
|
6067
|
-
renderState$jscomp$
|
6132
|
+
renderState$jscomp$1,
|
6068
6133
|
stringToChunk(
|
6069
6134
|
escapeJSStringsForInstructionScripts(errorDigest || "")
|
6070
6135
|
)
|
6071
6136
|
));
|
6072
6137
|
var JSCompiler_inline_result = writeChunkAndReturn(
|
6073
|
-
renderState$jscomp$
|
6138
|
+
renderState$jscomp$1,
|
6074
6139
|
clientRenderScriptEnd
|
6075
6140
|
);
|
6076
6141
|
if (!JSCompiler_inline_result) {
|
@@ -6223,12 +6288,12 @@ function abort(request, reason) {
|
|
6223
6288
|
}
|
6224
6289
|
function ensureCorrectIsomorphicReactVersion() {
|
6225
6290
|
var isomorphicReactPackageVersion = React.version;
|
6226
|
-
if ("19.2.0-canary-
|
6291
|
+
if ("19.2.0-canary-143d3e1b-20250425" !== isomorphicReactPackageVersion)
|
6227
6292
|
throw Error(
|
6228
6293
|
formatProdErrorMessage(
|
6229
6294
|
527,
|
6230
6295
|
isomorphicReactPackageVersion,
|
6231
|
-
"19.2.0-canary-
|
6296
|
+
"19.2.0-canary-143d3e1b-20250425"
|
6232
6297
|
)
|
6233
6298
|
);
|
6234
6299
|
}
|
@@ -6375,4 +6440,4 @@ exports.renderToReadableStream = function (children, options) {
|
|
6375
6440
|
startWork(request);
|
6376
6441
|
});
|
6377
6442
|
};
|
6378
|
-
exports.version = "19.2.0-canary-
|
6443
|
+
exports.version = "19.2.0-canary-143d3e1b-20250425";
|