react-dom 19.2.0-canary-c44e4a25-20250409 → 19.2.0-canary-1d6c8168-20250411
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 +185 -202
- package/cjs/react-dom-client.production.js +195 -236
- package/cjs/react-dom-profiling.development.js +185 -202
- package/cjs/react-dom-profiling.profiling.js +198 -239
- package/cjs/react-dom-server-legacy.browser.development.js +30 -58
- package/cjs/react-dom-server-legacy.browser.production.js +66 -89
- package/cjs/react-dom-server-legacy.node.development.js +30 -58
- package/cjs/react-dom-server-legacy.node.production.js +66 -89
- package/cjs/react-dom-server.browser.development.js +48 -73
- package/cjs/react-dom-server.browser.production.js +58 -88
- package/cjs/react-dom-server.bun.development.js +38 -74
- package/cjs/react-dom-server.bun.production.js +54 -83
- package/cjs/react-dom-server.edge.development.js +48 -73
- package/cjs/react-dom-server.edge.production.js +61 -91
- package/cjs/react-dom-server.node.development.js +48 -73
- package/cjs/react-dom-server.node.production.js +61 -91
- 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,12 +315,7 @@ function createResumableState(
|
|
315
315
|
};
|
316
316
|
}
|
317
317
|
function createPreambleState() {
|
318
|
-
return {
|
319
|
-
htmlChunks: null,
|
320
|
-
headChunks: null,
|
321
|
-
bodyChunks: null,
|
322
|
-
contribution: 0
|
323
|
-
};
|
318
|
+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
324
319
|
}
|
325
320
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
326
321
|
return {
|
@@ -1764,6 +1759,7 @@ function pushStartInstance(
|
|
1764
1759
|
var preamble = preambleState || renderState.preamble;
|
1765
1760
|
if (preamble.headChunks)
|
1766
1761
|
throw Error("The `<head>` tag may only be rendered once.");
|
1762
|
+
null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
|
1767
1763
|
preamble.headChunks = [];
|
1768
1764
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
1769
1765
|
preamble.headChunks,
|
@@ -1782,6 +1778,7 @@ function pushStartInstance(
|
|
1782
1778
|
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
1783
1779
|
if (preamble$jscomp$0.bodyChunks)
|
1784
1780
|
throw Error("The `<body>` tag may only be rendered once.");
|
1781
|
+
null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
|
1785
1782
|
preamble$jscomp$0.bodyChunks = [];
|
1786
1783
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
1787
1784
|
preamble$jscomp$0.bodyChunks,
|
@@ -1800,6 +1797,7 @@ function pushStartInstance(
|
|
1800
1797
|
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
1801
1798
|
if (preamble$jscomp$1.htmlChunks)
|
1802
1799
|
throw Error("The `<html>` tag may only be rendered once.");
|
1800
|
+
null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
|
1803
1801
|
preamble$jscomp$1.htmlChunks = [""];
|
1804
1802
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
1805
1803
|
preamble$jscomp$1.htmlChunks,
|
@@ -1877,16 +1875,13 @@ function hoistPreambleState(renderState, preambleState) {
|
|
1877
1875
|
renderState = renderState.preamble;
|
1878
1876
|
null === renderState.htmlChunks &&
|
1879
1877
|
preambleState.htmlChunks &&
|
1880
|
-
(
|
1881
|
-
(preambleState.contribution |= 1));
|
1878
|
+
(renderState.htmlChunks = preambleState.htmlChunks);
|
1882
1879
|
null === renderState.headChunks &&
|
1883
1880
|
preambleState.headChunks &&
|
1884
|
-
(
|
1885
|
-
(preambleState.contribution |= 4));
|
1881
|
+
(renderState.headChunks = preambleState.headChunks);
|
1886
1882
|
null === renderState.bodyChunks &&
|
1887
1883
|
preambleState.bodyChunks &&
|
1888
|
-
(
|
1889
|
-
(preambleState.contribution |= 2));
|
1884
|
+
(renderState.bodyChunks = preambleState.bodyChunks);
|
1890
1885
|
}
|
1891
1886
|
function writeBootstrap(destination, renderState) {
|
1892
1887
|
renderState = renderState.bootstrapChunks;
|
@@ -1907,13 +1902,6 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
1907
1902
|
destination.push(renderState);
|
1908
1903
|
return destination.push('"></template>');
|
1909
1904
|
}
|
1910
|
-
function writePreambleContribution(destination, preambleState) {
|
1911
|
-
preambleState = preambleState.contribution;
|
1912
|
-
0 !== preambleState &&
|
1913
|
-
(destination.push("\x3c!--"),
|
1914
|
-
destination.push("" + preambleState),
|
1915
|
-
destination.push("--\x3e"));
|
1916
|
-
}
|
1917
1905
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
1918
1906
|
switch (formatContext.insertionMode) {
|
1919
1907
|
case 0:
|
@@ -2665,17 +2653,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2665
2653
|
"\x3c/script>"
|
2666
2654
|
);
|
2667
2655
|
bootstrapScriptContent = idPrefix + "P:";
|
2668
|
-
var
|
2656
|
+
var JSCompiler_object_inline_segmentPrefix_1538 = idPrefix + "S:";
|
2669
2657
|
idPrefix += "B:";
|
2670
|
-
var
|
2671
|
-
|
2672
|
-
|
2673
|
-
|
2674
|
-
|
2675
|
-
|
2676
|
-
|
2677
|
-
|
2678
|
-
|
2658
|
+
var JSCompiler_object_inline_preamble_1541 = createPreambleState(),
|
2659
|
+
JSCompiler_object_inline_preconnects_1551 = new Set(),
|
2660
|
+
JSCompiler_object_inline_fontPreloads_1552 = new Set(),
|
2661
|
+
JSCompiler_object_inline_highImagePreloads_1553 = new Set(),
|
2662
|
+
JSCompiler_object_inline_styles_1554 = new Map(),
|
2663
|
+
JSCompiler_object_inline_bootstrapScripts_1555 = new Set(),
|
2664
|
+
JSCompiler_object_inline_scripts_1556 = new Set(),
|
2665
|
+
JSCompiler_object_inline_bulkPreloads_1557 = new Set(),
|
2666
|
+
JSCompiler_object_inline_preloads_1558 = {
|
2679
2667
|
images: new Map(),
|
2680
2668
|
stylesheets: new Map(),
|
2681
2669
|
scripts: new Map(),
|
@@ -2712,7 +2700,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2712
2700
|
scriptConfig.moduleScriptResources[href] = null;
|
2713
2701
|
scriptConfig = [];
|
2714
2702
|
pushLinkImpl(scriptConfig, props);
|
2715
|
-
|
2703
|
+
JSCompiler_object_inline_bootstrapScripts_1555.add(scriptConfig);
|
2716
2704
|
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
|
2717
2705
|
"string" === typeof integrity &&
|
2718
2706
|
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
|
@@ -2753,7 +2741,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2753
2741
|
(props.moduleScriptResources[scriptConfig] = null),
|
2754
2742
|
(props = []),
|
2755
2743
|
pushLinkImpl(props, integrity),
|
2756
|
-
|
2744
|
+
JSCompiler_object_inline_bootstrapScripts_1555.add(props),
|
2757
2745
|
bootstrapChunks.push(
|
2758
2746
|
'<script type="module" src="',
|
2759
2747
|
escapeTextForBrowser(i)
|
@@ -2768,10 +2756,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2768
2756
|
bootstrapChunks.push('" async="">\x3c/script>');
|
2769
2757
|
return {
|
2770
2758
|
placeholderPrefix: bootstrapScriptContent,
|
2771
|
-
segmentPrefix:
|
2759
|
+
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1538,
|
2772
2760
|
boundaryPrefix: idPrefix,
|
2773
2761
|
startInlineScript: "<script>",
|
2774
|
-
preamble:
|
2762
|
+
preamble: JSCompiler_object_inline_preamble_1541,
|
2775
2763
|
externalRuntimeScript: null,
|
2776
2764
|
bootstrapChunks: bootstrapChunks,
|
2777
2765
|
importMapChunks: [],
|
@@ -2787,14 +2775,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2787
2775
|
charsetChunks: [],
|
2788
2776
|
viewportChunks: [],
|
2789
2777
|
hoistableChunks: [],
|
2790
|
-
preconnects:
|
2791
|
-
fontPreloads:
|
2792
|
-
highImagePreloads:
|
2793
|
-
styles:
|
2794
|
-
bootstrapScripts:
|
2795
|
-
scripts:
|
2796
|
-
bulkPreloads:
|
2797
|
-
preloads:
|
2778
|
+
preconnects: JSCompiler_object_inline_preconnects_1551,
|
2779
|
+
fontPreloads: JSCompiler_object_inline_fontPreloads_1552,
|
2780
|
+
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1553,
|
2781
|
+
styles: JSCompiler_object_inline_styles_1554,
|
2782
|
+
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1555,
|
2783
|
+
scripts: JSCompiler_object_inline_scripts_1556,
|
2784
|
+
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1557,
|
2785
|
+
preloads: JSCompiler_object_inline_preloads_1558,
|
2798
2786
|
stylesToHoist: !1,
|
2799
2787
|
generateStaticMarkup: generateStaticMarkup
|
2800
2788
|
};
|
@@ -4133,30 +4121,23 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
4133
4121
|
return;
|
4134
4122
|
case REACT_ACTIVITY_TYPE:
|
4135
4123
|
type = task.blockedSegment;
|
4136
|
-
|
4137
|
-
"hidden" !== props.mode &&
|
4124
|
+
null === type
|
4125
|
+
? "hidden" !== props.mode &&
|
4138
4126
|
((type = task.keyPath),
|
4139
4127
|
(task.keyPath = keyPath),
|
4140
4128
|
renderNode(request, task, props.children, -1),
|
4141
|
-
(task.keyPath = type))
|
4142
|
-
|
4143
|
-
|
4144
|
-
type.
|
4145
|
-
|
4146
|
-
|
4147
|
-
|
4148
|
-
|
4149
|
-
|
4150
|
-
|
4151
|
-
|
4152
|
-
|
4153
|
-
if ((task = task.blockedPreamble))
|
4154
|
-
(task = task.contribution),
|
4155
|
-
0 !== task && request.push("\x3c!--", "" + task, "--\x3e");
|
4156
|
-
request.push("\x3c!--/&--\x3e");
|
4157
|
-
}
|
4158
|
-
type.lastPushedText = !1;
|
4159
|
-
}
|
4129
|
+
(task.keyPath = type))
|
4130
|
+
: (request.renderState.generateStaticMarkup ||
|
4131
|
+
type.chunks.push("\x3c!--&--\x3e"),
|
4132
|
+
(type.lastPushedText = !1),
|
4133
|
+
"hidden" !== props.mode &&
|
4134
|
+
((newProps = task.keyPath),
|
4135
|
+
(task.keyPath = keyPath),
|
4136
|
+
renderNode(request, task, props.children, -1),
|
4137
|
+
(task.keyPath = newProps)),
|
4138
|
+
request.renderState.generateStaticMarkup ||
|
4139
|
+
type.chunks.push("\x3c!--/&--\x3e"),
|
4140
|
+
(type.lastPushedText = !1));
|
4160
4141
|
return;
|
4161
4142
|
case REACT_SUSPENSE_LIST_TYPE:
|
4162
4143
|
type = task.keyPath;
|
@@ -5471,26 +5452,24 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5471
5452
|
if (null === boundary)
|
5472
5453
|
return flushSubtree(request, destination, segment, hoistableState);
|
5473
5454
|
boundary.parentFlushed = !0;
|
5474
|
-
if (4 === boundary.status)
|
5475
|
-
|
5476
|
-
|
5477
|
-
|
5478
|
-
|
5479
|
-
|
5480
|
-
|
5481
|
-
|
5482
|
-
|
5483
|
-
|
5484
|
-
|
5485
|
-
|
5486
|
-
|
5487
|
-
|
5488
|
-
|
5489
|
-
|
5490
|
-
|
5491
|
-
|
5492
|
-
return destination;
|
5493
|
-
}
|
5455
|
+
if (4 === boundary.status)
|
5456
|
+
return (
|
5457
|
+
request.renderState.generateStaticMarkup ||
|
5458
|
+
((boundary = boundary.errorDigest),
|
5459
|
+
destination.push("\x3c!--$!--\x3e"),
|
5460
|
+
destination.push("<template"),
|
5461
|
+
boundary &&
|
5462
|
+
(destination.push(' data-dgst="'),
|
5463
|
+
(boundary = escapeTextForBrowser(boundary)),
|
5464
|
+
destination.push(boundary),
|
5465
|
+
destination.push('"')),
|
5466
|
+
destination.push("></template>")),
|
5467
|
+
flushSubtree(request, destination, segment, hoistableState),
|
5468
|
+
(request = request.renderState.generateStaticMarkup
|
5469
|
+
? !0
|
5470
|
+
: destination.push("\x3c!--/$--\x3e")),
|
5471
|
+
request
|
5472
|
+
);
|
5494
5473
|
if (1 !== boundary.status)
|
5495
5474
|
return (
|
5496
5475
|
0 === boundary.status &&
|
@@ -5536,12 +5515,10 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5536
5515
|
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
5537
5516
|
);
|
5538
5517
|
flushSegment(request, destination, segment[0], hoistableState);
|
5539
|
-
request.renderState.generateStaticMarkup
|
5540
|
-
?
|
5541
|
-
: (
|
5542
|
-
|
5543
|
-
(destination = destination.push("\x3c!--/$--\x3e")));
|
5544
|
-
return destination;
|
5518
|
+
request = request.renderState.generateStaticMarkup
|
5519
|
+
? !0
|
5520
|
+
: destination.push("\x3c!--/$--\x3e");
|
5521
|
+
return request;
|
5545
5522
|
}
|
5546
5523
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
5547
5524
|
writeStartSegment(
|
@@ -5989,4 +5966,4 @@ exports.renderToString = function (children, options) {
|
|
5989
5966
|
'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'
|
5990
5967
|
);
|
5991
5968
|
};
|
5992
|
-
exports.version = "19.2.0-canary-
|
5969
|
+
exports.version = "19.2.0-canary-1d6c8168-20250411";
|
@@ -1021,12 +1021,7 @@
|
|
1021
1021
|
};
|
1022
1022
|
}
|
1023
1023
|
function createPreambleState() {
|
1024
|
-
return {
|
1025
|
-
htmlChunks: null,
|
1026
|
-
headChunks: null,
|
1027
|
-
bodyChunks: null,
|
1028
|
-
contribution: NoContribution
|
1029
|
-
};
|
1024
|
+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
|
1030
1025
|
}
|
1031
1026
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
1032
1027
|
return {
|
@@ -3005,6 +3000,8 @@
|
|
3005
3000
|
var preamble = preambleState || renderState.preamble;
|
3006
3001
|
if (preamble.headChunks)
|
3007
3002
|
throw Error("The `<head>` tag may only be rendered once.");
|
3003
|
+
null !== preambleState &&
|
3004
|
+
target$jscomp$0.push(headPreambleContributionChunk);
|
3008
3005
|
preamble.headChunks = [];
|
3009
3006
|
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
3010
3007
|
preamble.headChunks,
|
@@ -3023,6 +3020,8 @@
|
|
3023
3020
|
var preamble$jscomp$0 = preambleState || renderState.preamble;
|
3024
3021
|
if (preamble$jscomp$0.bodyChunks)
|
3025
3022
|
throw Error("The `<body>` tag may only be rendered once.");
|
3023
|
+
null !== preambleState &&
|
3024
|
+
target$jscomp$0.push(bodyPreambleContributionChunk);
|
3026
3025
|
preamble$jscomp$0.bodyChunks = [];
|
3027
3026
|
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
3028
3027
|
preamble$jscomp$0.bodyChunks,
|
@@ -3041,6 +3040,8 @@
|
|
3041
3040
|
var preamble$jscomp$1 = preambleState || renderState.preamble;
|
3042
3041
|
if (preamble$jscomp$1.htmlChunks)
|
3043
3042
|
throw Error("The `<html>` tag may only be rendered once.");
|
3043
|
+
null !== preambleState &&
|
3044
|
+
target$jscomp$0.push(htmlPreambleContributionChunk);
|
3044
3045
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
3045
3046
|
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
3046
3047
|
preamble$jscomp$1.htmlChunks,
|
@@ -3127,16 +3128,13 @@
|
|
3127
3128
|
renderState = renderState.preamble;
|
3128
3129
|
null === renderState.htmlChunks &&
|
3129
3130
|
preambleState.htmlChunks &&
|
3130
|
-
(
|
3131
|
-
(preambleState.contribution |= 1));
|
3131
|
+
(renderState.htmlChunks = preambleState.htmlChunks);
|
3132
3132
|
null === renderState.headChunks &&
|
3133
3133
|
preambleState.headChunks &&
|
3134
|
-
(
|
3135
|
-
(preambleState.contribution |= 4));
|
3134
|
+
(renderState.headChunks = preambleState.headChunks);
|
3136
3135
|
null === renderState.bodyChunks &&
|
3137
3136
|
preambleState.bodyChunks &&
|
3138
|
-
(
|
3139
|
-
(preambleState.contribution |= 2));
|
3137
|
+
(renderState.bodyChunks = preambleState.bodyChunks);
|
3140
3138
|
}
|
3141
3139
|
function writeBootstrap(destination, renderState) {
|
3142
3140
|
renderState = renderState.bootstrapChunks;
|
@@ -3158,13 +3156,6 @@
|
|
3158
3156
|
writeChunk(destination, stringToChunk(id.toString(16)));
|
3159
3157
|
return writeChunkAndReturn(destination, startPendingSuspenseBoundary2);
|
3160
3158
|
}
|
3161
|
-
function writePreambleContribution(destination, preambleState) {
|
3162
|
-
preambleState = preambleState.contribution;
|
3163
|
-
preambleState !== NoContribution &&
|
3164
|
-
(writeChunk(destination, boundaryPreambleContributionChunkStart),
|
3165
|
-
writeChunk(destination, stringToChunk("" + preambleState)),
|
3166
|
-
writeChunk(destination, boundaryPreambleContributionChunkEnd));
|
3167
|
-
}
|
3168
3159
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
3169
3160
|
switch (formatContext.insertionMode) {
|
3170
3161
|
case ROOT_HTML_MODE:
|
@@ -5520,18 +5511,7 @@
|
|
5520
5511
|
renderNode(request, task, props.children, -1);
|
5521
5512
|
task.keyPath = _prevKeyPath3;
|
5522
5513
|
}
|
5523
|
-
|
5524
|
-
preambleState = task.blockedPreamble;
|
5525
|
-
if (preambleState) {
|
5526
|
-
var contribution = preambleState.contribution;
|
5527
|
-
contribution !== NoContribution &&
|
5528
|
-
target$jscomp$0.push(
|
5529
|
-
boundaryPreambleContributionChunkStart,
|
5530
|
-
stringToChunk("" + contribution),
|
5531
|
-
boundaryPreambleContributionChunkEnd
|
5532
|
-
);
|
5533
|
-
}
|
5534
|
-
target$jscomp$0.push(endActivityBoundary);
|
5514
|
+
segment$jscomp$0.chunks.push(endActivityBoundary);
|
5535
5515
|
segment$jscomp$0.lastPushedText = !1;
|
5536
5516
|
}
|
5537
5517
|
return;
|
@@ -7172,8 +7152,8 @@
|
|
7172
7152
|
if (boundary.status === CLIENT_RENDERED) {
|
7173
7153
|
var errorDigest = boundary.errorDigest,
|
7174
7154
|
errorMessage = boundary.errorMessage,
|
7175
|
-
errorStack = boundary.errorStack
|
7176
|
-
|
7155
|
+
errorStack = boundary.errorStack;
|
7156
|
+
boundary = boundary.errorComponentStack;
|
7177
7157
|
writeChunkAndReturn(destination, startClientRenderedSuspenseBoundary);
|
7178
7158
|
writeChunk(destination, clientRenderedSuspenseBoundaryError1);
|
7179
7159
|
errorDigest &&
|
@@ -7206,11 +7186,11 @@
|
|
7206
7186
|
destination,
|
7207
7187
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
7208
7188
|
));
|
7209
|
-
|
7189
|
+
boundary &&
|
7210
7190
|
(writeChunk(destination, clientRenderedSuspenseBoundaryError1D),
|
7211
7191
|
writeChunk(
|
7212
7192
|
destination,
|
7213
|
-
stringToChunk(escapeTextForBrowser(
|
7193
|
+
stringToChunk(escapeTextForBrowser(boundary))
|
7214
7194
|
),
|
7215
7195
|
writeChunk(
|
7216
7196
|
destination,
|
@@ -7218,14 +7198,9 @@
|
|
7218
7198
|
));
|
7219
7199
|
writeChunkAndReturn(destination, clientRenderedSuspenseBoundaryError2);
|
7220
7200
|
flushSubtree(request, destination, segment, hoistableState);
|
7221
|
-
|
7222
|
-
|
7223
|
-
|
7224
|
-
}
|
7225
|
-
if (boundary.status !== COMPLETED)
|
7226
|
-
return (
|
7227
|
-
boundary.status === PENDING &&
|
7228
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
7201
|
+
} else if (boundary.status !== COMPLETED)
|
7202
|
+
boundary.status === PENDING &&
|
7203
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
7229
7204
|
0 < boundary.completedSegments.length &&
|
7230
7205
|
request.partialBoundaries.push(boundary),
|
7231
7206
|
writeStartPendingSuspenseBoundary(
|
@@ -7240,34 +7215,32 @@
|
|
7240
7215
|
hoistStylesheetDependency,
|
7241
7216
|
hoistableState
|
7242
7217
|
)),
|
7243
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7244
|
-
|
7245
|
-
)
|
7246
|
-
if (boundary.byteSize > request.progressiveChunkSize)
|
7247
|
-
return (
|
7248
|
-
(boundary.rootSegmentID = request.nextSegmentId++),
|
7218
|
+
flushSubtree(request, destination, segment, hoistableState);
|
7219
|
+
else if (boundary.byteSize > request.progressiveChunkSize)
|
7220
|
+
(boundary.rootSegmentID = request.nextSegmentId++),
|
7249
7221
|
request.completedBoundaries.push(boundary),
|
7250
7222
|
writeStartPendingSuspenseBoundary(
|
7251
7223
|
destination,
|
7252
7224
|
request.renderState,
|
7253
7225
|
boundary.rootSegmentID
|
7254
7226
|
),
|
7255
|
-
flushSubtree(request, destination, segment, hoistableState)
|
7256
|
-
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7260
|
-
|
7261
|
-
|
7262
|
-
|
7263
|
-
|
7264
|
-
|
7265
|
-
|
7266
|
-
|
7267
|
-
|
7268
|
-
|
7269
|
-
|
7270
|
-
|
7227
|
+
flushSubtree(request, destination, segment, hoistableState);
|
7228
|
+
else {
|
7229
|
+
hoistableState &&
|
7230
|
+
((segment = boundary.contentState),
|
7231
|
+
segment.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
7232
|
+
segment.stylesheets.forEach(
|
7233
|
+
hoistStylesheetDependency,
|
7234
|
+
hoistableState
|
7235
|
+
));
|
7236
|
+
writeChunkAndReturn(destination, startCompletedSuspenseBoundary);
|
7237
|
+
segment = boundary.completedSegments;
|
7238
|
+
if (1 !== segment.length)
|
7239
|
+
throw Error(
|
7240
|
+
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
7241
|
+
);
|
7242
|
+
flushSegment(request, destination, segment[0], hoistableState);
|
7243
|
+
}
|
7271
7244
|
return writeChunkAndReturn(destination, endSuspenseBoundary);
|
7272
7245
|
}
|
7273
7246
|
function flushSegmentContainer(
|
@@ -7771,11 +7744,11 @@
|
|
7771
7744
|
}
|
7772
7745
|
function ensureCorrectIsomorphicReactVersion() {
|
7773
7746
|
var isomorphicReactPackageVersion = React.version;
|
7774
|
-
if ("19.2.0-canary-
|
7747
|
+
if ("19.2.0-canary-1d6c8168-20250411" !== isomorphicReactPackageVersion)
|
7775
7748
|
throw Error(
|
7776
7749
|
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
7777
7750
|
(isomorphicReactPackageVersion +
|
7778
|
-
"\n - react-dom: 19.2.0-canary-
|
7751
|
+
"\n - react-dom: 19.2.0-canary-1d6c8168-20250411\nLearn more: https://react.dev/warnings/version-mismatch")
|
7779
7752
|
);
|
7780
7753
|
}
|
7781
7754
|
var React = require("react"),
|
@@ -8882,8 +8855,7 @@
|
|
8882
8855
|
),
|
8883
8856
|
importMapScriptEnd = stringToPrecomputedChunk("\x3c/script>");
|
8884
8857
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
8885
|
-
var
|
8886
|
-
ROOT_HTML_MODE = 0,
|
8858
|
+
var ROOT_HTML_MODE = 0,
|
8887
8859
|
HTML_HTML_MODE = 1,
|
8888
8860
|
HTML_MODE = 2,
|
8889
8861
|
HTML_HEAD_MODE = 3,
|
@@ -8928,6 +8900,12 @@
|
|
8928
8900
|
formStateMarkerIsMatching = stringToPrecomputedChunk("\x3c!--F!--\x3e"),
|
8929
8901
|
formStateMarkerIsNotMatching = stringToPrecomputedChunk("\x3c!--F--\x3e"),
|
8930
8902
|
styleRegex = /(<\/|<)(s)(tyle)/gi,
|
8903
|
+
headPreambleContributionChunk =
|
8904
|
+
stringToPrecomputedChunk("\x3c!--head--\x3e"),
|
8905
|
+
bodyPreambleContributionChunk =
|
8906
|
+
stringToPrecomputedChunk("\x3c!--body--\x3e"),
|
8907
|
+
htmlPreambleContributionChunk =
|
8908
|
+
stringToPrecomputedChunk("\x3c!--html--\x3e"),
|
8931
8909
|
leadingNewline = stringToPrecomputedChunk("\n"),
|
8932
8910
|
VALID_TAG_REGEX = /^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,
|
8933
8911
|
validatedTagCache = new Map(),
|
@@ -8960,9 +8938,6 @@
|
|
8960
8938
|
stringToPrecomputedChunk(' data-cstck="'),
|
8961
8939
|
clientRenderedSuspenseBoundaryError2 =
|
8962
8940
|
stringToPrecomputedChunk("></template>"),
|
8963
|
-
boundaryPreambleContributionChunkStart =
|
8964
|
-
stringToPrecomputedChunk("\x3c!--"),
|
8965
|
-
boundaryPreambleContributionChunkEnd = stringToPrecomputedChunk("--\x3e"),
|
8966
8941
|
startSegmentHTML = stringToPrecomputedChunk('<div hidden id="'),
|
8967
8942
|
startSegmentHTML2 = stringToPrecomputedChunk('">'),
|
8968
8943
|
endSegmentHTML = stringToPrecomputedChunk("</div>"),
|
@@ -9447,5 +9422,5 @@
|
|
9447
9422
|
startWork(request);
|
9448
9423
|
});
|
9449
9424
|
};
|
9450
|
-
exports.version = "19.2.0-canary-
|
9425
|
+
exports.version = "19.2.0-canary-1d6c8168-20250411";
|
9451
9426
|
})();
|