Skip to content

Commit 2a20652

Browse files
ncc-compiled
1 parent 8cce429 commit 2a20652

File tree

60 files changed

+3003
-3834
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+3003
-3834
lines changed

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js

Lines changed: 157 additions & 167 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js

Lines changed: 197 additions & 228 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js

Lines changed: 157 additions & 167 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js

Lines changed: 197 additions & 228 deletions
Large diffs are not rendered by default.

packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js

Lines changed: 30 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -779,12 +779,7 @@
779779
};
780780
}
781781
function createPreambleState() {
782-
return {
783-
htmlChunks: null,
784-
headChunks: null,
785-
bodyChunks: null,
786-
contribution: NoContribution
787-
};
782+
return { htmlChunks: null, headChunks: null, bodyChunks: null };
788783
}
789784
function createFormatContext(insertionMode, selectedValue, tagScope) {
790785
return {
@@ -2752,6 +2747,7 @@
27522747
var preamble = preambleState || renderState.preamble;
27532748
if (preamble.headChunks)
27542749
throw Error("The `<head>` tag may only be rendered once.");
2750+
null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
27552751
preamble.headChunks = [];
27562752
var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
27572753
preamble.headChunks,
@@ -2770,6 +2766,7 @@
27702766
var preamble$jscomp$0 = preambleState || renderState.preamble;
27712767
if (preamble$jscomp$0.bodyChunks)
27722768
throw Error("The `<body>` tag may only be rendered once.");
2769+
null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
27732770
preamble$jscomp$0.bodyChunks = [];
27742771
var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
27752772
preamble$jscomp$0.bodyChunks,
@@ -2788,6 +2785,7 @@
27882785
var preamble$jscomp$1 = preambleState || renderState.preamble;
27892786
if (preamble$jscomp$1.htmlChunks)
27902787
throw Error("The `<html>` tag may only be rendered once.");
2788+
null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
27912789
preamble$jscomp$1.htmlChunks = [doctypeChunk];
27922790
var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
27932791
preamble$jscomp$1.htmlChunks,
@@ -2871,16 +2869,13 @@
28712869
renderState = renderState.preamble;
28722870
null === renderState.htmlChunks &&
28732871
preambleState.htmlChunks &&
2874-
((renderState.htmlChunks = preambleState.htmlChunks),
2875-
(preambleState.contribution |= 1));
2872+
(renderState.htmlChunks = preambleState.htmlChunks);
28762873
null === renderState.headChunks &&
28772874
preambleState.headChunks &&
2878-
((renderState.headChunks = preambleState.headChunks),
2879-
(preambleState.contribution |= 4));
2875+
(renderState.headChunks = preambleState.headChunks);
28802876
null === renderState.bodyChunks &&
28812877
preambleState.bodyChunks &&
2882-
((renderState.bodyChunks = preambleState.bodyChunks),
2883-
(preambleState.contribution |= 2));
2878+
(renderState.bodyChunks = preambleState.bodyChunks);
28842879
}
28852880
function writeBootstrap(destination, renderState) {
28862881
renderState = renderState.bootstrapChunks;
@@ -2901,13 +2896,6 @@
29012896
destination.push(renderState);
29022897
return destination.push(startPendingSuspenseBoundary2);
29032898
}
2904-
function writePreambleContribution(destination, preambleState) {
2905-
preambleState = preambleState.contribution;
2906-
preambleState !== NoContribution &&
2907-
(destination.push(boundaryPreambleContributionChunkStart),
2908-
destination.push("" + preambleState),
2909-
destination.push(boundaryPreambleContributionChunkEnd));
2910-
}
29112899
function writeStartSegment(destination, renderState, formatContext, id) {
29122900
switch (formatContext.insertionMode) {
29132901
case ROOT_HTML_MODE:
@@ -5517,20 +5505,8 @@
55175505
renderNode(request, task, props.children, -1);
55185506
task.keyPath = _prevKeyPath3;
55195507
}
5520-
if (!request.renderState.generateStaticMarkup) {
5521-
var target$jscomp$0 = segment$jscomp$0.chunks,
5522-
preambleState = task.blockedPreamble;
5523-
if (preambleState) {
5524-
var contribution = preambleState.contribution;
5525-
contribution !== NoContribution &&
5526-
target$jscomp$0.push(
5527-
boundaryPreambleContributionChunkStart,
5528-
"" + contribution,
5529-
boundaryPreambleContributionChunkEnd
5530-
);
5531-
}
5532-
target$jscomp$0.push("\x3c!--/&--\x3e");
5533-
}
5508+
request.renderState.generateStaticMarkup ||
5509+
segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
55345510
segment$jscomp$0.lastPushedText = !1;
55355511
}
55365512
return;
@@ -7518,8 +7494,8 @@
75187494
if (!request.renderState.generateStaticMarkup) {
75197495
var errorDigest = boundary.errorDigest,
75207496
errorMessage = boundary.errorMessage,
7521-
errorStack = boundary.errorStack,
7522-
errorComponentStack = boundary.errorComponentStack;
7497+
errorStack = boundary.errorStack;
7498+
boundary = boundary.errorComponentStack;
75237499
destination.push(startClientRenderedSuspenseBoundary);
75247500
destination.push(clientRenderedSuspenseBoundaryError1);
75257501
errorDigest &&
@@ -7543,22 +7519,20 @@
75437519
destination.push(
75447520
clientRenderedSuspenseBoundaryErrorAttrInterstitial
75457521
));
7546-
errorComponentStack &&
7522+
boundary &&
75477523
(destination.push(clientRenderedSuspenseBoundaryError1D),
7548-
(errorComponentStack = escapeTextForBrowser(errorComponentStack)),
7549-
destination.push(errorComponentStack),
7524+
(errorStack = escapeTextForBrowser(boundary)),
7525+
destination.push(errorStack),
75507526
destination.push(
75517527
clientRenderedSuspenseBoundaryErrorAttrInterstitial
75527528
));
75537529
destination.push(clientRenderedSuspenseBoundaryError2);
75547530
}
75557531
flushSubtree(request, destination, segment, hoistableState);
7556-
request.renderState.generateStaticMarkup
7557-
? (destination = !0)
7558-
: ((request = boundary.fallbackPreamble) &&
7559-
writePreambleContribution(destination, request),
7560-
(destination = destination.push(endSuspenseBoundary)));
7561-
return destination;
7532+
request = request.renderState.generateStaticMarkup
7533+
? !0
7534+
: destination.push(endSuspenseBoundary);
7535+
return request;
75627536
}
75637537
if (boundary.status !== COMPLETED)
75647538
return (
@@ -7572,9 +7546,12 @@
75727546
boundary.rootSegmentID
75737547
),
75747548
hoistableState &&
7575-
((boundary = boundary.fallbackState),
7576-
boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7577-
boundary.stylesheets.forEach(
7549+
((errorStack = boundary.fallbackState),
7550+
errorStack.styles.forEach(
7551+
hoistStyleQueueDependency,
7552+
hoistableState
7553+
),
7554+
errorStack.stylesheets.forEach(
75787555
hoistStylesheetDependency,
75797556
hoistableState
75807557
)),
@@ -7605,12 +7582,10 @@
76057582
"A previously unvisited boundary must have exactly one root segment. This is a bug in React."
76067583
);
76077584
flushSegment(request, destination, segment[0], hoistableState);
7608-
request.renderState.generateStaticMarkup
7609-
? (destination = !0)
7610-
: ((request = boundary.contentPreamble) &&
7611-
writePreambleContribution(destination, request),
7612-
(destination = destination.push(endSuspenseBoundary)));
7613-
return destination;
7585+
request = request.renderState.generateStaticMarkup
7586+
? !0
7587+
: destination.push(endSuspenseBoundary);
7588+
return request;
76147589
}
76157590
function flushSegmentContainer(
76167591
request,
@@ -9297,8 +9272,7 @@
92979272
Object.freeze(PRELOAD_NO_CREDS);
92989273
var scriptRegex = /(<\/|<)(s)(cript)/gi;
92999274
var didWarnForNewBooleanPropsWithEmptyValue = {};
9300-
var NoContribution = 0,
9301-
ROOT_HTML_MODE = 0,
9275+
var ROOT_HTML_MODE = 0,
93029276
HTML_HTML_MODE = 1,
93039277
HTML_MODE = 2,
93049278
HTML_HEAD_MODE = 3,
@@ -9354,8 +9328,6 @@
93549328
clientRenderedSuspenseBoundaryError1C = ' data-stck="',
93559329
clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
93569330
clientRenderedSuspenseBoundaryError2 = "></template>",
9357-
boundaryPreambleContributionChunkStart = "\x3c!--",
9358-
boundaryPreambleContributionChunkEnd = "--\x3e",
93599331
startSegmentHTML = '<div hidden id="',
93609332
startSegmentHTML2 = '">',
93619333
endSegmentHTML = "</div>",
@@ -9702,5 +9674,5 @@
97029674
'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'
97039675
);
97049676
};
9705-
exports.version = "19.2.0-experimental-c44e4a25-20250409";
9677+
exports.version = "19.2.0-experimental-1d6c8168-20250411";
97069678
})();

0 commit comments

Comments
 (0)