react-dom 19.1.0-canary-0a82580b-20250203 → 19.1.0-canary-ff628334-20250205
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 +377 -361
- package/cjs/react-dom-client.production.js +214 -191
- package/cjs/react-dom-profiling.development.js +377 -361
- package/cjs/react-dom-profiling.profiling.js +214 -191
- package/cjs/react-dom-server-legacy.browser.development.js +73 -28
- package/cjs/react-dom-server-legacy.browser.production.js +97 -52
- package/cjs/react-dom-server-legacy.node.development.js +73 -28
- package/cjs/react-dom-server-legacy.node.production.js +97 -52
- package/cjs/react-dom-server.browser.development.js +90 -38
- package/cjs/react-dom-server.browser.production.js +94 -39
- package/cjs/react-dom-server.bun.development.js +91 -37
- package/cjs/react-dom-server.bun.production.js +94 -42
- package/cjs/react-dom-server.edge.development.js +90 -38
- package/cjs/react-dom-server.edge.production.js +97 -42
- package/cjs/react-dom-server.node.development.js +90 -38
- package/cjs/react-dom-server.node.production.js +97 -42
- 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
@@ -315,7 +315,12 @@ function createResumableState(
|
|
315
315
|
};
|
316
316
|
}
|
317
317
|
function createPreambleState() {
|
318
|
-
return {
|
318
|
+
return {
|
319
|
+
htmlChunks: null,
|
320
|
+
headChunks: null,
|
321
|
+
bodyChunks: null,
|
322
|
+
contribution: 0
|
323
|
+
};
|
319
324
|
}
|
320
325
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
321
326
|
return {
|
@@ -786,6 +791,29 @@ function pushScriptImpl(target, props) {
|
|
786
791
|
target.push(endChunkForTag("script"));
|
787
792
|
return null;
|
788
793
|
}
|
794
|
+
function pushStartSingletonElement(target, props, tag) {
|
795
|
+
target.push(startChunkForTag(tag));
|
796
|
+
var innerHTML = (tag = null),
|
797
|
+
propKey;
|
798
|
+
for (propKey in props)
|
799
|
+
if (hasOwnProperty.call(props, propKey)) {
|
800
|
+
var propValue = props[propKey];
|
801
|
+
if (null != propValue)
|
802
|
+
switch (propKey) {
|
803
|
+
case "children":
|
804
|
+
tag = propValue;
|
805
|
+
break;
|
806
|
+
case "dangerouslySetInnerHTML":
|
807
|
+
innerHTML = propValue;
|
808
|
+
break;
|
809
|
+
default:
|
810
|
+
pushAttribute(target, propKey, propValue);
|
811
|
+
}
|
812
|
+
}
|
813
|
+
target.push(">");
|
814
|
+
pushInnerHTML(target, innerHTML, tag);
|
815
|
+
return tag;
|
816
|
+
}
|
789
817
|
function pushStartGenericElement(target, props, tag) {
|
790
818
|
target.push(startChunkForTag(tag));
|
791
819
|
var innerHTML = (tag = null),
|
@@ -1736,7 +1764,7 @@ function pushStartInstance(
|
|
1736
1764
|
if (preamble.headChunks)
|
1737
1765
|
throw Error("The `<head>` tag may only be rendered once.");
|
1738
1766
|
preamble.headChunks = [];
|
1739
|
-
var JSCompiler_inline_result$jscomp$9 =
|
1767
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
1740
1768
|
preamble.headChunks,
|
1741
1769
|
props,
|
1742
1770
|
"head"
|
@@ -1754,7 +1782,7 @@ function pushStartInstance(
|
|
1754
1782
|
if (preamble$jscomp$0.bodyChunks)
|
1755
1783
|
throw Error("The `<body>` tag may only be rendered once.");
|
1756
1784
|
preamble$jscomp$0.bodyChunks = [];
|
1757
|
-
var JSCompiler_inline_result$jscomp$10 =
|
1785
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
1758
1786
|
preamble$jscomp$0.bodyChunks,
|
1759
1787
|
props,
|
1760
1788
|
"body"
|
@@ -1772,7 +1800,7 @@ function pushStartInstance(
|
|
1772
1800
|
if (preamble$jscomp$1.htmlChunks)
|
1773
1801
|
throw Error("The `<html>` tag may only be rendered once.");
|
1774
1802
|
preamble$jscomp$1.htmlChunks = [""];
|
1775
|
-
var JSCompiler_inline_result$jscomp$11 =
|
1803
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
1776
1804
|
preamble$jscomp$1.htmlChunks,
|
1777
1805
|
props,
|
1778
1806
|
"html"
|
@@ -1847,11 +1875,17 @@ function endChunkForTag(tag) {
|
|
1847
1875
|
function hoistPreambleState(renderState, preambleState) {
|
1848
1876
|
renderState = renderState.preamble;
|
1849
1877
|
null === renderState.htmlChunks &&
|
1850
|
-
|
1878
|
+
preambleState.htmlChunks &&
|
1879
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
1880
|
+
(preambleState.contribution |= 1));
|
1851
1881
|
null === renderState.headChunks &&
|
1852
|
-
|
1882
|
+
preambleState.headChunks &&
|
1883
|
+
((renderState.headChunks = preambleState.headChunks),
|
1884
|
+
(preambleState.contribution |= 4));
|
1853
1885
|
null === renderState.bodyChunks &&
|
1854
|
-
|
1886
|
+
preambleState.bodyChunks &&
|
1887
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
1888
|
+
(preambleState.contribution |= 2));
|
1855
1889
|
}
|
1856
1890
|
function writeBootstrap(destination, renderState) {
|
1857
1891
|
renderState = renderState.bootstrapChunks;
|
@@ -1872,6 +1906,13 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
1872
1906
|
destination.push(renderState);
|
1873
1907
|
return destination.push('"></template>');
|
1874
1908
|
}
|
1909
|
+
function writePreambleContribution(destination, preambleState) {
|
1910
|
+
preambleState = preambleState.contribution;
|
1911
|
+
0 !== preambleState &&
|
1912
|
+
(destination.push("\x3c!--"),
|
1913
|
+
destination.push("" + preambleState),
|
1914
|
+
destination.push("--\x3e"));
|
1915
|
+
}
|
1875
1916
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
1876
1917
|
switch (formatContext.insertionMode) {
|
1877
1918
|
case 0:
|
@@ -2622,17 +2663,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2622
2663
|
"\x3c/script>"
|
2623
2664
|
);
|
2624
2665
|
bootstrapScriptContent = idPrefix + "P:";
|
2625
|
-
var
|
2666
|
+
var JSCompiler_object_inline_segmentPrefix_1542 = idPrefix + "S:";
|
2626
2667
|
idPrefix += "B:";
|
2627
|
-
var
|
2628
|
-
|
2629
|
-
|
2630
|
-
|
2631
|
-
|
2632
|
-
|
2633
|
-
|
2634
|
-
|
2635
|
-
|
2668
|
+
var JSCompiler_object_inline_preamble_1545 = createPreambleState(),
|
2669
|
+
JSCompiler_object_inline_preconnects_1555 = new Set(),
|
2670
|
+
JSCompiler_object_inline_fontPreloads_1556 = new Set(),
|
2671
|
+
JSCompiler_object_inline_highImagePreloads_1557 = new Set(),
|
2672
|
+
JSCompiler_object_inline_styles_1558 = new Map(),
|
2673
|
+
JSCompiler_object_inline_bootstrapScripts_1559 = new Set(),
|
2674
|
+
JSCompiler_object_inline_scripts_1560 = new Set(),
|
2675
|
+
JSCompiler_object_inline_bulkPreloads_1561 = new Set(),
|
2676
|
+
JSCompiler_object_inline_preloads_1562 = {
|
2636
2677
|
images: new Map(),
|
2637
2678
|
stylesheets: new Map(),
|
2638
2679
|
scripts: new Map(),
|
@@ -2669,7 +2710,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2669
2710
|
scriptConfig.moduleScriptResources[href] = null;
|
2670
2711
|
scriptConfig = [];
|
2671
2712
|
pushLinkImpl(scriptConfig, props);
|
2672
|
-
|
2713
|
+
JSCompiler_object_inline_bootstrapScripts_1559.add(scriptConfig);
|
2673
2714
|
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
|
2674
2715
|
"string" === typeof integrity &&
|
2675
2716
|
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
|
@@ -2710,7 +2751,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2710
2751
|
(props.moduleScriptResources[scriptConfig] = null),
|
2711
2752
|
(props = []),
|
2712
2753
|
pushLinkImpl(props, integrity),
|
2713
|
-
|
2754
|
+
JSCompiler_object_inline_bootstrapScripts_1559.add(props),
|
2714
2755
|
bootstrapChunks.push(
|
2715
2756
|
'<script type="module" src="',
|
2716
2757
|
escapeTextForBrowser(i)
|
@@ -2725,10 +2766,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2725
2766
|
bootstrapChunks.push('" async="">\x3c/script>');
|
2726
2767
|
return {
|
2727
2768
|
placeholderPrefix: bootstrapScriptContent,
|
2728
|
-
segmentPrefix:
|
2769
|
+
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1542,
|
2729
2770
|
boundaryPrefix: idPrefix,
|
2730
2771
|
startInlineScript: "<script>",
|
2731
|
-
preamble:
|
2772
|
+
preamble: JSCompiler_object_inline_preamble_1545,
|
2732
2773
|
externalRuntimeScript: null,
|
2733
2774
|
bootstrapChunks: bootstrapChunks,
|
2734
2775
|
importMapChunks: [],
|
@@ -2744,14 +2785,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2744
2785
|
charsetChunks: [],
|
2745
2786
|
viewportChunks: [],
|
2746
2787
|
hoistableChunks: [],
|
2747
|
-
preconnects:
|
2748
|
-
fontPreloads:
|
2749
|
-
highImagePreloads:
|
2750
|
-
styles:
|
2751
|
-
bootstrapScripts:
|
2752
|
-
scripts:
|
2753
|
-
bulkPreloads:
|
2754
|
-
preloads:
|
2788
|
+
preconnects: JSCompiler_object_inline_preconnects_1555,
|
2789
|
+
fontPreloads: JSCompiler_object_inline_fontPreloads_1556,
|
2790
|
+
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1557,
|
2791
|
+
styles: JSCompiler_object_inline_styles_1558,
|
2792
|
+
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1559,
|
2793
|
+
scripts: JSCompiler_object_inline_scripts_1560,
|
2794
|
+
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1561,
|
2795
|
+
preloads: JSCompiler_object_inline_preloads_1562,
|
2755
2796
|
stylesToHoist: !1,
|
2756
2797
|
generateStaticMarkup: generateStaticMarkup
|
2757
2798
|
};
|
@@ -5406,24 +5447,26 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5406
5447
|
if (null === boundary)
|
5407
5448
|
return flushSubtree(request, destination, segment, hoistableState);
|
5408
5449
|
boundary.parentFlushed = !0;
|
5409
|
-
if (4 === boundary.status)
|
5410
|
-
|
5411
|
-
|
5412
|
-
|
5413
|
-
|
5414
|
-
|
5415
|
-
|
5416
|
-
|
5417
|
-
|
5418
|
-
|
5419
|
-
|
5420
|
-
|
5421
|
-
|
5422
|
-
|
5423
|
-
|
5424
|
-
|
5425
|
-
|
5426
|
-
|
5450
|
+
if (4 === boundary.status) {
|
5451
|
+
if (!request.renderState.generateStaticMarkup) {
|
5452
|
+
var errorDigest = boundary.errorDigest;
|
5453
|
+
destination.push("\x3c!--$!--\x3e");
|
5454
|
+
destination.push("<template");
|
5455
|
+
errorDigest &&
|
5456
|
+
(destination.push(' data-dgst="'),
|
5457
|
+
(errorDigest = escapeTextForBrowser(errorDigest)),
|
5458
|
+
destination.push(errorDigest),
|
5459
|
+
destination.push('"'));
|
5460
|
+
destination.push("></template>");
|
5461
|
+
}
|
5462
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5463
|
+
request.renderState.generateStaticMarkup
|
5464
|
+
? (destination = !0)
|
5465
|
+
: ((request = boundary.fallbackPreamble) &&
|
5466
|
+
writePreambleContribution(destination, request),
|
5467
|
+
(destination = destination.push("\x3c!--/$--\x3e")));
|
5468
|
+
return destination;
|
5469
|
+
}
|
5427
5470
|
if (1 !== boundary.status)
|
5428
5471
|
return (
|
5429
5472
|
0 === boundary.status &&
|
@@ -5469,10 +5512,12 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5469
5512
|
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
5470
5513
|
);
|
5471
5514
|
flushSegment(request, destination, segment[0], hoistableState);
|
5472
|
-
request
|
5473
|
-
? !0
|
5474
|
-
:
|
5475
|
-
|
5515
|
+
request.renderState.generateStaticMarkup
|
5516
|
+
? (destination = !0)
|
5517
|
+
: ((request = boundary.contentPreamble) &&
|
5518
|
+
writePreambleContribution(destination, request),
|
5519
|
+
(destination = destination.push("\x3c!--/$--\x3e")));
|
5520
|
+
return destination;
|
5476
5521
|
}
|
5477
5522
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
5478
5523
|
writeStartSegment(
|
@@ -5920,4 +5965,4 @@ exports.renderToString = function (children, options) {
|
|
5920
5965
|
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server'
|
5921
5966
|
);
|
5922
5967
|
};
|
5923
|
-
exports.version = "19.1.0-canary-
|
5968
|
+
exports.version = "19.1.0-canary-ff628334-20250205";
|
@@ -1021,7 +1021,12 @@
|
|
1021
1021
|
};
|
1022
1022
|
}
|
1023
1023
|
function createPreambleState() {
|
1024
|
-
return {
|
1024
|
+
return {
|
1025
|
+
htmlChunks: null,
|
1026
|
+
headChunks: null,
|
1027
|
+
bodyChunks: null,
|
1028
|
+
contribution: NoContribution
|
1029
|
+
};
|
1025
1030
|
}
|
1026
1031
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
1027
1032
|
return {
|
@@ -1763,6 +1768,29 @@
|
|
1763
1768
|
target.push(endChunkForTag("script"));
|
1764
1769
|
return null;
|
1765
1770
|
}
|
1771
|
+
function pushStartSingletonElement(target, props, tag) {
|
1772
|
+
target.push(startChunkForTag(tag));
|
1773
|
+
var innerHTML = (tag = null),
|
1774
|
+
propKey;
|
1775
|
+
for (propKey in props)
|
1776
|
+
if (hasOwnProperty.call(props, propKey)) {
|
1777
|
+
var propValue = props[propKey];
|
1778
|
+
if (null != propValue)
|
1779
|
+
switch (propKey) {
|
1780
|
+
case "children":
|
1781
|
+
tag = propValue;
|
1782
|
+
break;
|
1783
|
+
case "dangerouslySetInnerHTML":
|
1784
|
+
innerHTML = propValue;
|
1785
|
+
break;
|
1786
|
+
default:
|
1787
|
+
pushAttribute(target, propKey, propValue);
|
1788
|
+
}
|
1789
|
+
}
|
1790
|
+
target.push(endOfStartTag);
|
1791
|
+
pushInnerHTML(target, innerHTML, tag);
|
1792
|
+
return tag;
|
1793
|
+
}
|
1766
1794
|
function pushStartGenericElement(target, props, tag) {
|
1767
1795
|
target.push(startChunkForTag(tag));
|
1768
1796
|
var innerHTML = (tag = null),
|
@@ -2977,7 +3005,7 @@
|
|
2977
3005
|
if (preamble.headChunks)
|
2978
3006
|
throw Error("The `<head>` tag may only be rendered once.");
|
2979
3007
|
preamble.headChunks = [];
|
2980
|
-
var JSCompiler_inline_result$jscomp$9 =
|
3008
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2981
3009
|
preamble.headChunks,
|
2982
3010
|
props,
|
2983
3011
|
"head"
|
@@ -2995,7 +3023,7 @@
|
|
2995
3023
|
if (preamble$jscomp$0.bodyChunks)
|
2996
3024
|
throw Error("The `<body>` tag may only be rendered once.");
|
2997
3025
|
preamble$jscomp$0.bodyChunks = [];
|
2998
|
-
var JSCompiler_inline_result$jscomp$10 =
|
3026
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2999
3027
|
preamble$jscomp$0.bodyChunks,
|
3000
3028
|
props,
|
3001
3029
|
"body"
|
@@ -3013,7 +3041,7 @@
|
|
3013
3041
|
if (preamble$jscomp$1.htmlChunks)
|
3014
3042
|
throw Error("The `<html>` tag may only be rendered once.");
|
3015
3043
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
3016
|
-
var JSCompiler_inline_result$jscomp$11 =
|
3044
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
3017
3045
|
preamble$jscomp$1.htmlChunks,
|
3018
3046
|
props,
|
3019
3047
|
"html"
|
@@ -3097,11 +3125,17 @@
|
|
3097
3125
|
function hoistPreambleState(renderState, preambleState) {
|
3098
3126
|
renderState = renderState.preamble;
|
3099
3127
|
null === renderState.htmlChunks &&
|
3100
|
-
|
3128
|
+
preambleState.htmlChunks &&
|
3129
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
3130
|
+
(preambleState.contribution |= 1));
|
3101
3131
|
null === renderState.headChunks &&
|
3102
|
-
|
3132
|
+
preambleState.headChunks &&
|
3133
|
+
((renderState.headChunks = preambleState.headChunks),
|
3134
|
+
(preambleState.contribution |= 4));
|
3103
3135
|
null === renderState.bodyChunks &&
|
3104
|
-
|
3136
|
+
preambleState.bodyChunks &&
|
3137
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
3138
|
+
(preambleState.contribution |= 2));
|
3105
3139
|
}
|
3106
3140
|
function writeBootstrap(destination, renderState) {
|
3107
3141
|
renderState = renderState.bootstrapChunks;
|
@@ -3123,6 +3157,13 @@
|
|
3123
3157
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
3124
3158
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
3125
3159
|
}
|
3160
|
+
function writePreambleContribution(destination, preambleState) {
|
3161
|
+
preambleState = preambleState.contribution;
|
3162
|
+
preambleState !== NoContribution &&
|
3163
|
+
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
3164
|
+
writeChunk(destination, stringToChunk("" + preambleState)),
|
3165
|
+
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
3166
|
+
}
|
3126
3167
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
3127
3168
|
switch (formatContext.insertionMode) {
|
3128
3169
|
case ROOT_HTML_MODE:
|
@@ -6946,8 +6987,8 @@
|
|
6946
6987
|
if (boundary.status === CLIENT_RENDERED) {
|
6947
6988
|
var errorDigest = boundary.errorDigest,
|
6948
6989
|
errorMessage = boundary.errorMessage,
|
6949
|
-
errorStack = boundary.errorStack
|
6950
|
-
|
6990
|
+
errorStack = boundary.errorStack,
|
6991
|
+
errorComponentStack = boundary.errorComponentStack;
|
6951
6992
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
6952
6993
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
6953
6994
|
errorDigest &&
|
@@ -6980,11 +7021,11 @@
|
|
6980
7021
|
destination,
|
6981
7022
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6982
7023
|
));
|
6983
|
-
|
7024
|
+
errorComponentStack &&
|
6984
7025
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
|
6985
7026
|
writeChunk(
|
6986
7027
|
destination,
|
6987
|
-
stringToChunk(escapeTextForBrowser(
|
7028
|
+
stringToChunk(escapeTextForBrowser(errorComponentStack))
|
6988
7029
|
),
|
6989
7030
|
writeChunk(
|
6990
7031
|
destination,
|
@@ -6992,9 +7033,14 @@
|
|
6992
7033
|
));
|
6993
7034
|
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
6994
7035
|
flushSubtree(request, destination, segment, hoistableState);
|
6995
|
-
|
6996
|
-
|
6997
|
-
|
7036
|
+
(request = boundary.fallbackPreamble) &&
|
7037
|
+
writePreambleContribution(destination, request);
|
7038
|
+
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
7039
|
+
}
|
7040
|
+
if (boundary.status !== COMPLETED)
|
7041
|
+
return (
|
7042
|
+
boundary.status === PENDING &&
|
7043
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
6998
7044
|
0 < boundary.completedSegments.length &&
|
6999
7045
|
request.partialBoundaries.push(boundary),
|
7000
7046
|
writeStartPendingSuspenseBoundary(
|
@@ -7009,32 +7055,34 @@
|
|
7009
7055
|
hoistStylesheetDependency,
|
7010
7056
|
hoistableState
|
7011
7057
|
)),
|
7012
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7013
|
-
|
7014
|
-
|
7058
|
+
flushSubtree(request, destination, segment, hoistableState),
|
7059
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
7060
|
+
);
|
7061
|
+
if (boundary.byteSize > request.progressiveChunkSize)
|
7062
|
+
return (
|
7063
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
7015
7064
|
request.completedBoundaries.push(boundary),
|
7016
7065
|
writeStartPendingSuspenseBoundary(
|
7017
7066
|
destination,
|
7018
7067
|
request.renderState,
|
7019
7068
|
boundary.rootSegmentID
|
7020
7069
|
),
|
7021
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7022
|
-
|
7023
|
-
|
7024
|
-
|
7025
|
-
|
7026
|
-
|
7027
|
-
|
7028
|
-
|
7029
|
-
|
7030
|
-
|
7031
|
-
|
7032
|
-
|
7033
|
-
|
7034
|
-
|
7035
|
-
|
7036
|
-
|
7037
|
-
}
|
7070
|
+
flushSubtree(request, destination, segment, hoistableState),
|
7071
|
+
writeChunkAndReturn(destination, endSuspenseBoundary)
|
7072
|
+
);
|
7073
|
+
hoistableState &&
|
7074
|
+
((segment = boundary.contentState),
|
7075
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
7076
|
+
segment.stylesheets.forEach(hoistStylesheetDependency, hoistableState));
|
7077
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
7078
|
+
segment = boundary.completedSegments;
|
7079
|
+
if (1 !== segment.length)
|
7080
|
+
throw Error(
|
7081
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
7082
|
+
);
|
7083
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
7084
|
+
(request = boundary.contentPreamble) &&
|
7085
|
+
writePreambleContribution(destination, request);
|
7038
7086
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
7039
7087
|
}
|
7040
7088
|
function flushSegmentContainer(
|
@@ -7534,11 +7582,11 @@
|
|
7534
7582
|
}
|
7535
7583
|
function ensureCorrectIsomorphicReactVersion() {
|
7536
7584
|
var isomorphicReactPackageVersion = React.version;
|
7537
|
-
if ("19.1.0-canary-
|
7585
|
+
if ("19.1.0-canary-ff628334-20250205" !== isomorphicReactPackageVersion)
|
7538
7586
|
throw Error(
|
7539
7587
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7540
7588
|
(isomorphicReactPackageVersion +
|
7541
|
-
"\n - react-dom: 19.1.0-canary-
|
7589
|
+
"\n - react-dom: 19.1.0-canary-ff628334-20250205\nLearn more: https://react.dev/warnings/version-mismatch")
|
7542
7590
|
);
|
7543
7591
|
}
|
7544
7592
|
var React = require("react"),
|
@@ -8644,7 +8692,8 @@
|
|
8644
8692
|
),
|
8645
8693
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
8646
8694
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
8647
|
-
var
|
8695
|
+
var NoContribution = 0,
|
8696
|
+
ROOT_HTML_MODE = 0,
|
8648
8697
|
HTML_HTML_MODE = 1,
|
8649
8698
|
HTML_MODE = 2,
|
8650
8699
|
HTML_HEAD_MODE = 3,
|
@@ -8719,6 +8768,9 @@
|
|
8719
8768
|
stringToPrecomputedChunk(' data-cstck="'),
|
8720
8769
|
clientRenderedSuspenseBoundaryError2 =
|
8721
8770
|
stringToPrecomputedChunk("></template>"),
|
8771
|
+
boundaryPreambleContributionChunkStart =
|
8772
|
+
stringToPrecomputedChunk("\x3c!--"),
|
8773
|
+
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
|
8722
8774
|
startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
8723
8775
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
8724
8776
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
@@ -9188,5 +9240,5 @@
|
|
9188
9240
|
startWork(request);
|
9189
9241
|
});
|
9190
9242
|
};
|
9191
|
-
exports.version = "19.1.0-canary-
|
9243
|
+
exports.version = "19.1.0-canary-ff628334-20250205";
|
9192
9244
|
})();
|