react-dom 19.1.0-canary-0a82580b-20250203 → 19.1.0-canary-d85cf3e5-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
@@ -759,7 +759,12 @@
|
|
759
759
|
};
|
760
760
|
}
|
761
761
|
function createPreambleState() {
|
762
|
-
return {
|
762
|
+
return {
|
763
|
+
htmlChunks: null,
|
764
|
+
headChunks: null,
|
765
|
+
bodyChunks: null,
|
766
|
+
contribution: NoContribution
|
767
|
+
};
|
763
768
|
}
|
764
769
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
765
770
|
return {
|
@@ -1467,6 +1472,29 @@
|
|
1467
1472
|
target.push(endChunkForTag("script"));
|
1468
1473
|
return null;
|
1469
1474
|
}
|
1475
|
+
function pushStartSingletonElement(target, props, tag) {
|
1476
|
+
target.push(startChunkForTag(tag));
|
1477
|
+
var innerHTML = (tag = null),
|
1478
|
+
propKey;
|
1479
|
+
for (propKey in props)
|
1480
|
+
if (hasOwnProperty.call(props, propKey)) {
|
1481
|
+
var propValue = props[propKey];
|
1482
|
+
if (null != propValue)
|
1483
|
+
switch (propKey) {
|
1484
|
+
case "children":
|
1485
|
+
tag = propValue;
|
1486
|
+
break;
|
1487
|
+
case "dangerouslySetInnerHTML":
|
1488
|
+
innerHTML = propValue;
|
1489
|
+
break;
|
1490
|
+
default:
|
1491
|
+
pushAttribute(target, propKey, propValue);
|
1492
|
+
}
|
1493
|
+
}
|
1494
|
+
target.push(endOfStartTag);
|
1495
|
+
pushInnerHTML(target, innerHTML, tag);
|
1496
|
+
return tag;
|
1497
|
+
}
|
1470
1498
|
function pushStartGenericElement(target, props, tag) {
|
1471
1499
|
target.push(startChunkForTag(tag));
|
1472
1500
|
var innerHTML = (tag = null),
|
@@ -2667,7 +2695,7 @@
|
|
2667
2695
|
if (preamble.headChunks)
|
2668
2696
|
throw Error("The `<head>` tag may only be rendered once.");
|
2669
2697
|
preamble.headChunks = [];
|
2670
|
-
var JSCompiler_inline_result$jscomp$9 =
|
2698
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2671
2699
|
preamble.headChunks,
|
2672
2700
|
props,
|
2673
2701
|
"head"
|
@@ -2685,7 +2713,7 @@
|
|
2685
2713
|
if (preamble$jscomp$0.bodyChunks)
|
2686
2714
|
throw Error("The `<body>` tag may only be rendered once.");
|
2687
2715
|
preamble$jscomp$0.bodyChunks = [];
|
2688
|
-
var JSCompiler_inline_result$jscomp$10 =
|
2716
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2689
2717
|
preamble$jscomp$0.bodyChunks,
|
2690
2718
|
props,
|
2691
2719
|
"body"
|
@@ -2703,7 +2731,7 @@
|
|
2703
2731
|
if (preamble$jscomp$1.htmlChunks)
|
2704
2732
|
throw Error("The `<html>` tag may only be rendered once.");
|
2705
2733
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
2706
|
-
var JSCompiler_inline_result$jscomp$11 =
|
2734
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
2707
2735
|
preamble$jscomp$1.htmlChunks,
|
2708
2736
|
props,
|
2709
2737
|
"html"
|
@@ -2784,11 +2812,17 @@
|
|
2784
2812
|
function hoistPreambleState(renderState, preambleState) {
|
2785
2813
|
renderState = renderState.preamble;
|
2786
2814
|
null === renderState.htmlChunks &&
|
2787
|
-
|
2815
|
+
preambleState.htmlChunks &&
|
2816
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
2817
|
+
(preambleState.contribution |= 1));
|
2788
2818
|
null === renderState.headChunks &&
|
2789
|
-
|
2819
|
+
preambleState.headChunks &&
|
2820
|
+
((renderState.headChunks = preambleState.headChunks),
|
2821
|
+
(preambleState.contribution |= 4));
|
2790
2822
|
null === renderState.bodyChunks &&
|
2791
|
-
|
2823
|
+
preambleState.bodyChunks &&
|
2824
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
2825
|
+
(preambleState.contribution |= 2));
|
2792
2826
|
}
|
2793
2827
|
function writeBootstrap(destination, renderState) {
|
2794
2828
|
renderState = renderState.bootstrapChunks;
|
@@ -2809,6 +2843,13 @@
|
|
2809
2843
|
destination.push(renderState);
|
2810
2844
|
return destination.push(startPendingSuspenseBoundary2);
|
2811
2845
|
}
|
2846
|
+
function writePreambleContribution(destination, preambleState) {
|
2847
|
+
preambleState = preambleState.contribution;
|
2848
|
+
preambleState !== NoContribution &&
|
2849
|
+
(destination.push(boundaryPreambleContributionChunkStart),
|
2850
|
+
destination.push("" + preambleState),
|
2851
|
+
destination.push(boundaryPreambleContributionChunkEnd));
|
2852
|
+
}
|
2812
2853
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
2813
2854
|
switch (formatContext.insertionMode) {
|
2814
2855
|
case ROOT_HTML_MODE:
|
@@ -6766,8 +6807,8 @@
|
|
6766
6807
|
if (!request.renderState.generateStaticMarkup) {
|
6767
6808
|
var errorDigest = boundary.errorDigest,
|
6768
6809
|
errorMessage = boundary.errorMessage,
|
6769
|
-
errorStack = boundary.errorStack
|
6770
|
-
|
6810
|
+
errorStack = boundary.errorStack,
|
6811
|
+
errorComponentStack = boundary.errorComponentStack;
|
6771
6812
|
destination.push(startClientRenderedSuspenseBoundary);
|
6772
6813
|
destination.push(clientRenderedSuspenseBoundaryError1);
|
6773
6814
|
errorDigest &&
|
@@ -6791,20 +6832,22 @@
|
|
6791
6832
|
destination.push(
|
6792
6833
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6793
6834
|
));
|
6794
|
-
|
6835
|
+
errorComponentStack &&
|
6795
6836
|
(destination.push(clientRenderedSuspenseBoundaryError1D),
|
6796
|
-
(
|
6797
|
-
destination.push(
|
6837
|
+
(errorComponentStack = escapeTextForBrowser(errorComponentStack)),
|
6838
|
+
destination.push(errorComponentStack),
|
6798
6839
|
destination.push(
|
6799
6840
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6800
6841
|
));
|
6801
6842
|
destination.push(clientRenderedSuspenseBoundaryError2);
|
6802
6843
|
}
|
6803
6844
|
flushSubtree(request, destination, segment, hoistableState);
|
6804
|
-
request
|
6805
|
-
? !0
|
6806
|
-
:
|
6807
|
-
|
6845
|
+
request.renderState.generateStaticMarkup
|
6846
|
+
? (destination = !0)
|
6847
|
+
: ((request = boundary.fallbackPreamble) &&
|
6848
|
+
writePreambleContribution(destination, request),
|
6849
|
+
(destination = destination.push(endSuspenseBoundary)));
|
6850
|
+
return destination;
|
6808
6851
|
}
|
6809
6852
|
if (boundary.status !== COMPLETED)
|
6810
6853
|
return (
|
@@ -6818,12 +6861,9 @@
|
|
6818
6861
|
boundary.rootSegmentID
|
6819
6862
|
),
|
6820
6863
|
hoistableState &&
|
6821
|
-
((
|
6822
|
-
|
6823
|
-
|
6824
|
-
hoistableState
|
6825
|
-
),
|
6826
|
-
errorStack.stylesheets.forEach(
|
6864
|
+
((boundary = boundary.fallbackState),
|
6865
|
+
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
6866
|
+
boundary.stylesheets.forEach(
|
6827
6867
|
hoistStylesheetDependency,
|
6828
6868
|
hoistableState
|
6829
6869
|
)),
|
@@ -6854,10 +6894,12 @@
|
|
6854
6894
|
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
6855
6895
|
);
|
6856
6896
|
flushSegment(request, destination, segment[0], hoistableState);
|
6857
|
-
request
|
6858
|
-
? !0
|
6859
|
-
:
|
6860
|
-
|
6897
|
+
request.renderState.generateStaticMarkup
|
6898
|
+
? (destination = !0)
|
6899
|
+
: ((request = boundary.contentPreamble) &&
|
6900
|
+
writePreambleContribution(destination, request),
|
6901
|
+
(destination = destination.push(endSuspenseBoundary)));
|
6902
|
+
return destination;
|
6861
6903
|
}
|
6862
6904
|
function flushSegmentContainer(
|
6863
6905
|
request,
|
@@ -8437,7 +8479,8 @@
|
|
8437
8479
|
Object.freeze(PRELOAD_NO_CREDS);
|
8438
8480
|
var scriptRegex = /(<\/|<)(s)(cript)/gi;
|
8439
8481
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
8440
|
-
var
|
8482
|
+
var NoContribution = 0,
|
8483
|
+
ROOT_HTML_MODE = 0,
|
8441
8484
|
HTML_HTML_MODE = 1,
|
8442
8485
|
HTML_MODE = 2,
|
8443
8486
|
HTML_HEAD_MODE = 3,
|
@@ -8492,6 +8535,8 @@
|
|
8492
8535
|
clientRenderedSuspenseBoundaryError1C = ' data-stck="',
|
8493
8536
|
clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
|
8494
8537
|
clientRenderedSuspenseBoundaryError2 = "></template>",
|
8538
|
+
boundaryPreambleContributionChunkStart = "\x3c!--",
|
8539
|
+
boundaryPreambleContributionChunkEnd = "--\x3e",
|
8495
8540
|
startSegmentHTML = '<div hidden id="',
|
8496
8541
|
startSegmentHTML2 = '">',
|
8497
8542
|
endSegmentHTML = "</div>",
|
@@ -8806,5 +8851,5 @@
|
|
8806
8851
|
'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 "renderToReadableStream" which supports Suspense on the server'
|
8807
8852
|
);
|
8808
8853
|
};
|
8809
|
-
exports.version = "19.1.0-canary-
|
8854
|
+
exports.version = "19.1.0-canary-d85cf3e5-20250205";
|
8810
8855
|
})();
|
@@ -330,7 +330,12 @@ function createResumableState(
|
|
330
330
|
};
|
331
331
|
}
|
332
332
|
function createPreambleState() {
|
333
|
-
return {
|
333
|
+
return {
|
334
|
+
htmlChunks: null,
|
335
|
+
headChunks: null,
|
336
|
+
bodyChunks: null,
|
337
|
+
contribution: 0
|
338
|
+
};
|
334
339
|
}
|
335
340
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
336
341
|
return {
|
@@ -785,6 +790,29 @@ function pushScriptImpl(target, props) {
|
|
785
790
|
target.push(endChunkForTag("script"));
|
786
791
|
return null;
|
787
792
|
}
|
793
|
+
function pushStartSingletonElement(target, props, tag) {
|
794
|
+
target.push(startChunkForTag(tag));
|
795
|
+
var innerHTML = (tag = null),
|
796
|
+
propKey;
|
797
|
+
for (propKey in props)
|
798
|
+
if (hasOwnProperty.call(props, propKey)) {
|
799
|
+
var propValue = props[propKey];
|
800
|
+
if (null != propValue)
|
801
|
+
switch (propKey) {
|
802
|
+
case "children":
|
803
|
+
tag = propValue;
|
804
|
+
break;
|
805
|
+
case "dangerouslySetInnerHTML":
|
806
|
+
innerHTML = propValue;
|
807
|
+
break;
|
808
|
+
default:
|
809
|
+
pushAttribute(target, propKey, propValue);
|
810
|
+
}
|
811
|
+
}
|
812
|
+
target.push(">");
|
813
|
+
pushInnerHTML(target, innerHTML, tag);
|
814
|
+
return tag;
|
815
|
+
}
|
788
816
|
function pushStartGenericElement(target, props, tag) {
|
789
817
|
target.push(startChunkForTag(tag));
|
790
818
|
var innerHTML = (tag = null),
|
@@ -1722,7 +1750,7 @@ function pushStartInstance(
|
|
1722
1750
|
if (preamble.headChunks)
|
1723
1751
|
throw Error(formatProdErrorMessage(545, "`<head>`"));
|
1724
1752
|
preamble.headChunks = [];
|
1725
|
-
var JSCompiler_inline_result$jscomp$9 =
|
1753
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
1726
1754
|
preamble.headChunks,
|
1727
1755
|
props,
|
1728
1756
|
"head"
|
@@ -1740,7 +1768,7 @@ function pushStartInstance(
|
|
1740
1768
|
if (preamble$jscomp$0.bodyChunks)
|
1741
1769
|
throw Error(formatProdErrorMessage(545, "`<body>`"));
|
1742
1770
|
preamble$jscomp$0.bodyChunks = [];
|
1743
|
-
var JSCompiler_inline_result$jscomp$10 =
|
1771
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
1744
1772
|
preamble$jscomp$0.bodyChunks,
|
1745
1773
|
props,
|
1746
1774
|
"body"
|
@@ -1758,7 +1786,7 @@ function pushStartInstance(
|
|
1758
1786
|
if (preamble$jscomp$1.htmlChunks)
|
1759
1787
|
throw Error(formatProdErrorMessage(545, "`<html>`"));
|
1760
1788
|
preamble$jscomp$1.htmlChunks = [""];
|
1761
|
-
var JSCompiler_inline_result$jscomp$11 =
|
1789
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
1762
1790
|
preamble$jscomp$1.htmlChunks,
|
1763
1791
|
props,
|
1764
1792
|
"html"
|
@@ -1833,11 +1861,17 @@ function endChunkForTag(tag) {
|
|
1833
1861
|
function hoistPreambleState(renderState, preambleState) {
|
1834
1862
|
renderState = renderState.preamble;
|
1835
1863
|
null === renderState.htmlChunks &&
|
1836
|
-
|
1864
|
+
preambleState.htmlChunks &&
|
1865
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
1866
|
+
(preambleState.contribution |= 1));
|
1837
1867
|
null === renderState.headChunks &&
|
1838
|
-
|
1868
|
+
preambleState.headChunks &&
|
1869
|
+
((renderState.headChunks = preambleState.headChunks),
|
1870
|
+
(preambleState.contribution |= 4));
|
1839
1871
|
null === renderState.bodyChunks &&
|
1840
|
-
|
1872
|
+
preambleState.bodyChunks &&
|
1873
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
1874
|
+
(preambleState.contribution |= 2));
|
1841
1875
|
}
|
1842
1876
|
function writeBootstrap(destination, renderState) {
|
1843
1877
|
renderState = renderState.bootstrapChunks;
|
@@ -1855,6 +1889,13 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
1855
1889
|
destination.push(renderState);
|
1856
1890
|
return destination.push('"></template>');
|
1857
1891
|
}
|
1892
|
+
function writePreambleContribution(destination, preambleState) {
|
1893
|
+
preambleState = preambleState.contribution;
|
1894
|
+
0 !== preambleState &&
|
1895
|
+
(destination.push("\x3c!--"),
|
1896
|
+
destination.push("" + preambleState),
|
1897
|
+
destination.push("--\x3e"));
|
1898
|
+
}
|
1858
1899
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
1859
1900
|
switch (formatContext.insertionMode) {
|
1860
1901
|
case 0:
|
@@ -2603,17 +2644,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2603
2644
|
"\x3c/script>"
|
2604
2645
|
);
|
2605
2646
|
bootstrapScriptContent = idPrefix + "P:";
|
2606
|
-
var
|
2647
|
+
var JSCompiler_object_inline_segmentPrefix_1542 = idPrefix + "S:";
|
2607
2648
|
idPrefix += "B:";
|
2608
|
-
var
|
2609
|
-
|
2610
|
-
|
2611
|
-
|
2612
|
-
|
2613
|
-
|
2614
|
-
|
2615
|
-
|
2616
|
-
|
2649
|
+
var JSCompiler_object_inline_preamble_1545 = createPreambleState(),
|
2650
|
+
JSCompiler_object_inline_preconnects_1555 = new Set(),
|
2651
|
+
JSCompiler_object_inline_fontPreloads_1556 = new Set(),
|
2652
|
+
JSCompiler_object_inline_highImagePreloads_1557 = new Set(),
|
2653
|
+
JSCompiler_object_inline_styles_1558 = new Map(),
|
2654
|
+
JSCompiler_object_inline_bootstrapScripts_1559 = new Set(),
|
2655
|
+
JSCompiler_object_inline_scripts_1560 = new Set(),
|
2656
|
+
JSCompiler_object_inline_bulkPreloads_1561 = new Set(),
|
2657
|
+
JSCompiler_object_inline_preloads_1562 = {
|
2617
2658
|
images: new Map(),
|
2618
2659
|
stylesheets: new Map(),
|
2619
2660
|
scripts: new Map(),
|
@@ -2650,7 +2691,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2650
2691
|
scriptConfig.moduleScriptResources[href] = null;
|
2651
2692
|
scriptConfig = [];
|
2652
2693
|
pushLinkImpl(scriptConfig, props);
|
2653
|
-
|
2694
|
+
JSCompiler_object_inline_bootstrapScripts_1559.add(scriptConfig);
|
2654
2695
|
bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
|
2655
2696
|
"string" === typeof integrity &&
|
2656
2697
|
bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
|
@@ -2691,7 +2732,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2691
2732
|
(props.moduleScriptResources[scriptConfig] = null),
|
2692
2733
|
(props = []),
|
2693
2734
|
pushLinkImpl(props, integrity),
|
2694
|
-
|
2735
|
+
JSCompiler_object_inline_bootstrapScripts_1559.add(props),
|
2695
2736
|
bootstrapChunks.push(
|
2696
2737
|
'<script type="module" src="',
|
2697
2738
|
escapeTextForBrowser(i)
|
@@ -2706,10 +2747,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2706
2747
|
bootstrapChunks.push('" async="">\x3c/script>');
|
2707
2748
|
return {
|
2708
2749
|
placeholderPrefix: bootstrapScriptContent,
|
2709
|
-
segmentPrefix:
|
2750
|
+
segmentPrefix: JSCompiler_object_inline_segmentPrefix_1542,
|
2710
2751
|
boundaryPrefix: idPrefix,
|
2711
2752
|
startInlineScript: "<script>",
|
2712
|
-
preamble:
|
2753
|
+
preamble: JSCompiler_object_inline_preamble_1545,
|
2713
2754
|
externalRuntimeScript: null,
|
2714
2755
|
bootstrapChunks: bootstrapChunks,
|
2715
2756
|
importMapChunks: [],
|
@@ -2725,14 +2766,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
|
|
2725
2766
|
charsetChunks: [],
|
2726
2767
|
viewportChunks: [],
|
2727
2768
|
hoistableChunks: [],
|
2728
|
-
preconnects:
|
2729
|
-
fontPreloads:
|
2730
|
-
highImagePreloads:
|
2731
|
-
styles:
|
2732
|
-
bootstrapScripts:
|
2733
|
-
scripts:
|
2734
|
-
bulkPreloads:
|
2735
|
-
preloads:
|
2769
|
+
preconnects: JSCompiler_object_inline_preconnects_1555,
|
2770
|
+
fontPreloads: JSCompiler_object_inline_fontPreloads_1556,
|
2771
|
+
highImagePreloads: JSCompiler_object_inline_highImagePreloads_1557,
|
2772
|
+
styles: JSCompiler_object_inline_styles_1558,
|
2773
|
+
bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1559,
|
2774
|
+
scripts: JSCompiler_object_inline_scripts_1560,
|
2775
|
+
bulkPreloads: JSCompiler_object_inline_bulkPreloads_1561,
|
2776
|
+
preloads: JSCompiler_object_inline_preloads_1562,
|
2736
2777
|
stylesToHoist: !1,
|
2737
2778
|
generateStaticMarkup: generateStaticMarkup
|
2738
2779
|
};
|
@@ -5334,24 +5375,26 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5334
5375
|
if (null === boundary)
|
5335
5376
|
return flushSubtree(request, destination, segment, hoistableState);
|
5336
5377
|
boundary.parentFlushed = !0;
|
5337
|
-
if (4 === boundary.status)
|
5338
|
-
|
5339
|
-
|
5340
|
-
|
5341
|
-
|
5342
|
-
|
5343
|
-
|
5344
|
-
|
5345
|
-
|
5346
|
-
|
5347
|
-
|
5348
|
-
|
5349
|
-
|
5350
|
-
|
5351
|
-
|
5352
|
-
|
5353
|
-
|
5354
|
-
|
5378
|
+
if (4 === boundary.status) {
|
5379
|
+
if (!request.renderState.generateStaticMarkup) {
|
5380
|
+
var errorDigest = boundary.errorDigest;
|
5381
|
+
destination.push("\x3c!--$!--\x3e");
|
5382
|
+
destination.push("<template");
|
5383
|
+
errorDigest &&
|
5384
|
+
(destination.push(' data-dgst="'),
|
5385
|
+
(errorDigest = escapeTextForBrowser(errorDigest)),
|
5386
|
+
destination.push(errorDigest),
|
5387
|
+
destination.push('"'));
|
5388
|
+
destination.push("></template>");
|
5389
|
+
}
|
5390
|
+
flushSubtree(request, destination, segment, hoistableState);
|
5391
|
+
request.renderState.generateStaticMarkup
|
5392
|
+
? (destination = !0)
|
5393
|
+
: ((request = boundary.fallbackPreamble) &&
|
5394
|
+
writePreambleContribution(destination, request),
|
5395
|
+
(destination = destination.push("\x3c!--/$--\x3e")));
|
5396
|
+
return destination;
|
5397
|
+
}
|
5355
5398
|
if (1 !== boundary.status)
|
5356
5399
|
return (
|
5357
5400
|
0 === boundary.status &&
|
@@ -5394,10 +5437,12 @@ function flushSegment(request, destination, segment, hoistableState) {
|
|
5394
5437
|
segment = boundary.completedSegments;
|
5395
5438
|
if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
|
5396
5439
|
flushSegment(request, destination, segment[0], hoistableState);
|
5397
|
-
request
|
5398
|
-
? !0
|
5399
|
-
:
|
5400
|
-
|
5440
|
+
request.renderState.generateStaticMarkup
|
5441
|
+
? (destination = !0)
|
5442
|
+
: ((request = boundary.contentPreamble) &&
|
5443
|
+
writePreambleContribution(destination, request),
|
5444
|
+
(destination = destination.push("\x3c!--/$--\x3e")));
|
5445
|
+
return destination;
|
5401
5446
|
}
|
5402
5447
|
function flushSegmentContainer(request, destination, segment, hoistableState) {
|
5403
5448
|
writeStartSegment(
|
@@ -5840,4 +5885,4 @@ exports.renderToString = function (children, options) {
|
|
5840
5885
|
'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 "renderToReadableStream" which supports Suspense on the server'
|
5841
5886
|
);
|
5842
5887
|
};
|
5843
|
-
exports.version = "19.1.0-canary-
|
5888
|
+
exports.version = "19.1.0-canary-d85cf3e5-20250205";
|
@@ -759,7 +759,12 @@
|
|
759
759
|
};
|
760
760
|
}
|
761
761
|
function createPreambleState() {
|
762
|
-
return {
|
762
|
+
return {
|
763
|
+
htmlChunks: null,
|
764
|
+
headChunks: null,
|
765
|
+
bodyChunks: null,
|
766
|
+
contribution: NoContribution
|
767
|
+
};
|
763
768
|
}
|
764
769
|
function createFormatContext(insertionMode, selectedValue, tagScope) {
|
765
770
|
return {
|
@@ -1467,6 +1472,29 @@
|
|
1467
1472
|
target.push(endChunkForTag("script"));
|
1468
1473
|
return null;
|
1469
1474
|
}
|
1475
|
+
function pushStartSingletonElement(target, props, tag) {
|
1476
|
+
target.push(startChunkForTag(tag));
|
1477
|
+
var innerHTML = (tag = null),
|
1478
|
+
propKey;
|
1479
|
+
for (propKey in props)
|
1480
|
+
if (hasOwnProperty.call(props, propKey)) {
|
1481
|
+
var propValue = props[propKey];
|
1482
|
+
if (null != propValue)
|
1483
|
+
switch (propKey) {
|
1484
|
+
case "children":
|
1485
|
+
tag = propValue;
|
1486
|
+
break;
|
1487
|
+
case "dangerouslySetInnerHTML":
|
1488
|
+
innerHTML = propValue;
|
1489
|
+
break;
|
1490
|
+
default:
|
1491
|
+
pushAttribute(target, propKey, propValue);
|
1492
|
+
}
|
1493
|
+
}
|
1494
|
+
target.push(endOfStartTag);
|
1495
|
+
pushInnerHTML(target, innerHTML, tag);
|
1496
|
+
return tag;
|
1497
|
+
}
|
1470
1498
|
function pushStartGenericElement(target, props, tag) {
|
1471
1499
|
target.push(startChunkForTag(tag));
|
1472
1500
|
var innerHTML = (tag = null),
|
@@ -2667,7 +2695,7 @@
|
|
2667
2695
|
if (preamble.headChunks)
|
2668
2696
|
throw Error("The `<head>` tag may only be rendered once.");
|
2669
2697
|
preamble.headChunks = [];
|
2670
|
-
var JSCompiler_inline_result$jscomp$9 =
|
2698
|
+
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
|
2671
2699
|
preamble.headChunks,
|
2672
2700
|
props,
|
2673
2701
|
"head"
|
@@ -2685,7 +2713,7 @@
|
|
2685
2713
|
if (preamble$jscomp$0.bodyChunks)
|
2686
2714
|
throw Error("The `<body>` tag may only be rendered once.");
|
2687
2715
|
preamble$jscomp$0.bodyChunks = [];
|
2688
|
-
var JSCompiler_inline_result$jscomp$10 =
|
2716
|
+
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
|
2689
2717
|
preamble$jscomp$0.bodyChunks,
|
2690
2718
|
props,
|
2691
2719
|
"body"
|
@@ -2703,7 +2731,7 @@
|
|
2703
2731
|
if (preamble$jscomp$1.htmlChunks)
|
2704
2732
|
throw Error("The `<html>` tag may only be rendered once.");
|
2705
2733
|
preamble$jscomp$1.htmlChunks = [doctypeChunk];
|
2706
|
-
var JSCompiler_inline_result$jscomp$11 =
|
2734
|
+
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
|
2707
2735
|
preamble$jscomp$1.htmlChunks,
|
2708
2736
|
props,
|
2709
2737
|
"html"
|
@@ -2784,11 +2812,17 @@
|
|
2784
2812
|
function hoistPreambleState(renderState, preambleState) {
|
2785
2813
|
renderState = renderState.preamble;
|
2786
2814
|
null === renderState.htmlChunks &&
|
2787
|
-
|
2815
|
+
preambleState.htmlChunks &&
|
2816
|
+
((renderState.htmlChunks = preambleState.htmlChunks),
|
2817
|
+
(preambleState.contribution |= 1));
|
2788
2818
|
null === renderState.headChunks &&
|
2789
|
-
|
2819
|
+
preambleState.headChunks &&
|
2820
|
+
((renderState.headChunks = preambleState.headChunks),
|
2821
|
+
(preambleState.contribution |= 4));
|
2790
2822
|
null === renderState.bodyChunks &&
|
2791
|
-
|
2823
|
+
preambleState.bodyChunks &&
|
2824
|
+
((renderState.bodyChunks = preambleState.bodyChunks),
|
2825
|
+
(preambleState.contribution |= 2));
|
2792
2826
|
}
|
2793
2827
|
function writeBootstrap(destination, renderState) {
|
2794
2828
|
renderState = renderState.bootstrapChunks;
|
@@ -2809,6 +2843,13 @@
|
|
2809
2843
|
destination.push(renderState);
|
2810
2844
|
return destination.push(startPendingSuspenseBoundary2);
|
2811
2845
|
}
|
2846
|
+
function writePreambleContribution(destination, preambleState) {
|
2847
|
+
preambleState = preambleState.contribution;
|
2848
|
+
preambleState !== NoContribution &&
|
2849
|
+
(destination.push(boundaryPreambleContributionChunkStart),
|
2850
|
+
destination.push("" + preambleState),
|
2851
|
+
destination.push(boundaryPreambleContributionChunkEnd));
|
2852
|
+
}
|
2812
2853
|
function writeStartSegment(destination, renderState, formatContext, id) {
|
2813
2854
|
switch (formatContext.insertionMode) {
|
2814
2855
|
case ROOT_HTML_MODE:
|
@@ -6766,8 +6807,8 @@
|
|
6766
6807
|
if (!request.renderState.generateStaticMarkup) {
|
6767
6808
|
var errorDigest = boundary.errorDigest,
|
6768
6809
|
errorMessage = boundary.errorMessage,
|
6769
|
-
errorStack = boundary.errorStack
|
6770
|
-
|
6810
|
+
errorStack = boundary.errorStack,
|
6811
|
+
errorComponentStack = boundary.errorComponentStack;
|
6771
6812
|
destination.push(startClientRenderedSuspenseBoundary);
|
6772
6813
|
destination.push(clientRenderedSuspenseBoundaryError1);
|
6773
6814
|
errorDigest &&
|
@@ -6791,20 +6832,22 @@
|
|
6791
6832
|
destination.push(
|
6792
6833
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6793
6834
|
));
|
6794
|
-
|
6835
|
+
errorComponentStack &&
|
6795
6836
|
(destination.push(clientRenderedSuspenseBoundaryError1D),
|
6796
|
-
(
|
6797
|
-
destination.push(
|
6837
|
+
(errorComponentStack = escapeTextForBrowser(errorComponentStack)),
|
6838
|
+
destination.push(errorComponentStack),
|
6798
6839
|
destination.push(
|
6799
6840
|
clientRenderedSuspenseBoundaryErrorAttrInterstitial
|
6800
6841
|
));
|
6801
6842
|
destination.push(clientRenderedSuspenseBoundaryError2);
|
6802
6843
|
}
|
6803
6844
|
flushSubtree(request, destination, segment, hoistableState);
|
6804
|
-
request
|
6805
|
-
? !0
|
6806
|
-
:
|
6807
|
-
|
6845
|
+
request.renderState.generateStaticMarkup
|
6846
|
+
? (destination = !0)
|
6847
|
+
: ((request = boundary.fallbackPreamble) &&
|
6848
|
+
writePreambleContribution(destination, request),
|
6849
|
+
(destination = destination.push(endSuspenseBoundary)));
|
6850
|
+
return destination;
|
6808
6851
|
}
|
6809
6852
|
if (boundary.status !== COMPLETED)
|
6810
6853
|
return (
|
@@ -6818,12 +6861,9 @@
|
|
6818
6861
|
boundary.rootSegmentID
|
6819
6862
|
),
|
6820
6863
|
hoistableState &&
|
6821
|
-
((
|
6822
|
-
|
6823
|
-
|
6824
|
-
hoistableState
|
6825
|
-
),
|
6826
|
-
errorStack.stylesheets.forEach(
|
6864
|
+
((boundary = boundary.fallbackState),
|
6865
|
+
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
|
6866
|
+
boundary.stylesheets.forEach(
|
6827
6867
|
hoistStylesheetDependency,
|
6828
6868
|
hoistableState
|
6829
6869
|
)),
|
@@ -6854,10 +6894,12 @@
|
|
6854
6894
|
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
|
6855
6895
|
);
|
6856
6896
|
flushSegment(request, destination, segment[0], hoistableState);
|
6857
|
-
request
|
6858
|
-
? !0
|
6859
|
-
:
|
6860
|
-
|
6897
|
+
request.renderState.generateStaticMarkup
|
6898
|
+
? (destination = !0)
|
6899
|
+
: ((request = boundary.contentPreamble) &&
|
6900
|
+
writePreambleContribution(destination, request),
|
6901
|
+
(destination = destination.push(endSuspenseBoundary)));
|
6902
|
+
return destination;
|
6861
6903
|
}
|
6862
6904
|
function flushSegmentContainer(
|
6863
6905
|
request,
|
@@ -8437,7 +8479,8 @@
|
|
8437
8479
|
Object.freeze(PRELOAD_NO_CREDS);
|
8438
8480
|
var scriptRegex = /(<\/|<)(s)(cript)/gi;
|
8439
8481
|
var didWarnForNewBooleanPropsWithEmptyValue = {};
|
8440
|
-
var
|
8482
|
+
var NoContribution = 0,
|
8483
|
+
ROOT_HTML_MODE = 0,
|
8441
8484
|
HTML_HTML_MODE = 1,
|
8442
8485
|
HTML_MODE = 2,
|
8443
8486
|
HTML_HEAD_MODE = 3,
|
@@ -8492,6 +8535,8 @@
|
|
8492
8535
|
clientRenderedSuspenseBoundaryError1C = ' data-stck="',
|
8493
8536
|
clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
|
8494
8537
|
clientRenderedSuspenseBoundaryError2 = "></template>",
|
8538
|
+
boundaryPreambleContributionChunkStart = "\x3c!--",
|
8539
|
+
boundaryPreambleContributionChunkEnd = "--\x3e",
|
8495
8540
|
startSegmentHTML = '<div hidden id="',
|
8496
8541
|
startSegmentHTML2 = '">',
|
8497
8542
|
endSegmentHTML = "</div>",
|
@@ -8806,5 +8851,5 @@
|
|
8806
8851
|
'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'
|
8807
8852
|
);
|
8808
8853
|
};
|
8809
|
-
exports.version = "19.1.0-canary-
|
8854
|
+
exports.version = "19.1.0-canary-d85cf3e5-20250205";
|
8810
8855
|
})();
|