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
@@ -1342,13 +1342,26 @@
|
|
1342
1342
|
return content;
|
1343
1343
|
}
|
1344
1344
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
1345
|
-
(resumableState.instructions & 16) === NothingSent
|
1346
|
-
|
1347
|
-
renderState.
|
1348
|
-
renderState.
|
1349
|
-
|
1350
|
-
|
1351
|
-
|
1345
|
+
if ((resumableState.instructions & 16) === NothingSent) {
|
1346
|
+
resumableState.instructions |= 16;
|
1347
|
+
var preamble = renderState.preamble,
|
1348
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
1349
|
+
(preamble.htmlChunks || preamble.headChunks) &&
|
1350
|
+
0 === bootstrapChunks.length
|
1351
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
1352
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
1353
|
+
bootstrapChunks.push(
|
1354
|
+
endOfStartTag,
|
1355
|
+
formReplayingRuntimeScript,
|
1356
|
+
"\x3c/script>"
|
1357
|
+
))
|
1358
|
+
: bootstrapChunks.unshift(
|
1359
|
+
renderState.startInlineScript,
|
1360
|
+
endOfStartTag,
|
1361
|
+
formReplayingRuntimeScript,
|
1362
|
+
"\x3c/script>"
|
1363
|
+
);
|
1364
|
+
}
|
1352
1365
|
}
|
1353
1366
|
function pushLinkImpl(target, props) {
|
1354
1367
|
target.push(startChunkForTag("link"));
|
@@ -3076,6 +3089,15 @@
|
|
3076
3089
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
3077
3090
|
styleQueue.sheets.clear();
|
3078
3091
|
}
|
3092
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
3093
|
+
(resumableState.instructions & SentCompletedShellId) === NothingSent &&
|
3094
|
+
((resumableState.instructions |= SentCompletedShellId),
|
3095
|
+
target.push(
|
3096
|
+
completedShellIdAttributeStart,
|
3097
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
3098
|
+
attributeEnd
|
3099
|
+
));
|
3100
|
+
}
|
3079
3101
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
3080
3102
|
destination.push(arrayFirstOpenBracket);
|
3081
3103
|
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
@@ -3292,16 +3314,18 @@
|
|
3292
3314
|
bootstrapScripts = resumableState.bootstrapScripts,
|
3293
3315
|
bootstrapModules = resumableState.bootstrapModules;
|
3294
3316
|
void 0 !== bootstrapScriptContent &&
|
3317
|
+
(bootstrapChunks.push("<script"),
|
3318
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
3295
3319
|
bootstrapChunks.push(
|
3296
|
-
|
3320
|
+
endOfStartTag,
|
3297
3321
|
escapeEntireInlineScriptContent(bootstrapScriptContent),
|
3298
3322
|
"\x3c/script>"
|
3299
|
-
);
|
3323
|
+
));
|
3300
3324
|
idPrefix = {
|
3301
3325
|
placeholderPrefix: idPrefix + "P:",
|
3302
3326
|
segmentPrefix: idPrefix + "S:",
|
3303
3327
|
boundaryPrefix: idPrefix + "B:",
|
3304
|
-
startInlineScript: "<script
|
3328
|
+
startInlineScript: "<script",
|
3305
3329
|
preamble: createPreambleState(),
|
3306
3330
|
externalRuntimeScript: null,
|
3307
3331
|
bootstrapChunks: bootstrapChunks,
|
@@ -3366,18 +3390,25 @@
|
|
3366
3390
|
? "use-credentials"
|
3367
3391
|
: ""));
|
3368
3392
|
preloadBootstrapScriptOrModule(resumableState, idPrefix, src, props);
|
3369
|
-
bootstrapChunks.push(
|
3393
|
+
bootstrapChunks.push(
|
3394
|
+
'<script src="',
|
3395
|
+
escapeTextForBrowser(src),
|
3396
|
+
attributeEnd
|
3397
|
+
);
|
3370
3398
|
"string" === typeof integrity &&
|
3371
3399
|
bootstrapChunks.push(
|
3372
|
-
'
|
3373
|
-
escapeTextForBrowser(integrity)
|
3400
|
+
' integrity="',
|
3401
|
+
escapeTextForBrowser(integrity),
|
3402
|
+
attributeEnd
|
3374
3403
|
);
|
3375
3404
|
"string" === typeof crossOrigin &&
|
3376
3405
|
bootstrapChunks.push(
|
3377
|
-
'
|
3378
|
-
escapeTextForBrowser(crossOrigin)
|
3406
|
+
' crossorigin="',
|
3407
|
+
escapeTextForBrowser(crossOrigin),
|
3408
|
+
attributeEnd
|
3379
3409
|
);
|
3380
|
-
bootstrapChunks
|
3410
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState);
|
3411
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
3381
3412
|
}
|
3382
3413
|
if (void 0 !== bootstrapModules)
|
3383
3414
|
for (
|
@@ -3414,19 +3445,23 @@
|
|
3414
3445
|
),
|
3415
3446
|
bootstrapChunks.push(
|
3416
3447
|
'<script type="module" src="',
|
3417
|
-
escapeTextForBrowser(scriptConfig)
|
3448
|
+
escapeTextForBrowser(scriptConfig),
|
3449
|
+
attributeEnd
|
3418
3450
|
),
|
3419
3451
|
"string" === typeof crossOrigin &&
|
3420
3452
|
bootstrapChunks.push(
|
3421
|
-
'
|
3422
|
-
escapeTextForBrowser(crossOrigin)
|
3453
|
+
' integrity="',
|
3454
|
+
escapeTextForBrowser(crossOrigin),
|
3455
|
+
attributeEnd
|
3423
3456
|
),
|
3424
3457
|
"string" === typeof src &&
|
3425
3458
|
bootstrapChunks.push(
|
3426
|
-
'
|
3427
|
-
escapeTextForBrowser(src)
|
3459
|
+
' crossorigin="',
|
3460
|
+
escapeTextForBrowser(src),
|
3461
|
+
attributeEnd
|
3428
3462
|
),
|
3429
|
-
bootstrapChunks
|
3463
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
3464
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
3430
3465
|
return {
|
3431
3466
|
placeholderPrefix: idPrefix.placeholderPrefix,
|
3432
3467
|
segmentPrefix: idPrefix.segmentPrefix,
|
@@ -7102,6 +7137,7 @@
|
|
7102
7137
|
var requiresStyleInsertion = request.stylesToHoist;
|
7103
7138
|
request.stylesToHoist = !1;
|
7104
7139
|
destination.push(request.startInlineScript);
|
7140
|
+
destination.push(endOfStartTag);
|
7105
7141
|
requiresStyleInsertion
|
7106
7142
|
? (completedSegments.instructions & SentCompleteBoundaryFunction) ===
|
7107
7143
|
NothingSent
|
@@ -7165,6 +7201,7 @@
|
|
7165
7201
|
boundary = request.resumableState;
|
7166
7202
|
request = request.renderState;
|
7167
7203
|
destination.push(request.startInlineScript);
|
7204
|
+
destination.push(endOfStartTag);
|
7168
7205
|
(boundary.instructions & SentCompleteSegmentFunction) === NothingSent
|
7169
7206
|
? ((boundary.instructions |= SentCompleteSegmentFunction),
|
7170
7207
|
destination.push(completeSegmentScript1Full))
|
@@ -7187,7 +7224,8 @@
|
|
7187
7224
|
if (completedRootSegment.status === POSTPONED) return;
|
7188
7225
|
var completedPreambleSegments = request.completedPreambleSegments;
|
7189
7226
|
if (null === completedPreambleSegments) return;
|
7190
|
-
var
|
7227
|
+
var resumableState = request.resumableState,
|
7228
|
+
renderState = request.renderState,
|
7191
7229
|
preamble = renderState.preamble,
|
7192
7230
|
htmlChunks = preamble.htmlChunks,
|
7193
7231
|
headChunks = preamble.headChunks,
|
@@ -7246,6 +7284,13 @@
|
|
7246
7284
|
renderState.scripts.clear();
|
7247
7285
|
renderState.bulkPreloads.forEach(flushResource, destination);
|
7248
7286
|
renderState.bulkPreloads.clear();
|
7287
|
+
if (htmlChunks || headChunks) {
|
7288
|
+
var shellId = "\u00ab" + resumableState.idPrefix + "R\u00bb";
|
7289
|
+
destination.push(blockingRenderChunkStart);
|
7290
|
+
var chunk$jscomp$0 = escapeTextForBrowser(shellId);
|
7291
|
+
destination.push(chunk$jscomp$0);
|
7292
|
+
destination.push(blockingRenderChunkEnd);
|
7293
|
+
}
|
7249
7294
|
var hoistableChunks = renderState.hoistableChunks;
|
7250
7295
|
for (
|
7251
7296
|
i$jscomp$0 = 0;
|
@@ -7254,19 +7299,23 @@
|
|
7254
7299
|
)
|
7255
7300
|
destination.push(hoistableChunks[i$jscomp$0]);
|
7256
7301
|
for (
|
7257
|
-
|
7258
|
-
|
7259
|
-
|
7302
|
+
resumableState = hoistableChunks.length = 0;
|
7303
|
+
resumableState < completedPreambleSegments.length;
|
7304
|
+
resumableState++
|
7260
7305
|
) {
|
7261
|
-
var segments = completedPreambleSegments[
|
7262
|
-
for (
|
7263
|
-
|
7306
|
+
var segments = completedPreambleSegments[resumableState];
|
7307
|
+
for (
|
7308
|
+
renderState = 0;
|
7309
|
+
renderState < segments.length;
|
7310
|
+
renderState++
|
7311
|
+
)
|
7312
|
+
flushSegment(request, destination, segments[renderState], null);
|
7264
7313
|
}
|
7265
7314
|
var preamble$jscomp$0 = request.renderState.preamble,
|
7266
7315
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
7267
7316
|
if (preamble$jscomp$0.htmlChunks || headChunks$jscomp$0) {
|
7268
|
-
var chunk$jscomp$
|
7269
|
-
destination.push(chunk$jscomp$
|
7317
|
+
var chunk$jscomp$1 = endChunkForTag("head");
|
7318
|
+
destination.push(chunk$jscomp$1);
|
7270
7319
|
}
|
7271
7320
|
var bodyChunks = preamble$jscomp$0.bodyChunks;
|
7272
7321
|
if (bodyChunks)
|
@@ -7278,11 +7327,27 @@
|
|
7278
7327
|
destination.push(bodyChunks[completedPreambleSegments]);
|
7279
7328
|
flushSegment(request, destination, completedRootSegment, null);
|
7280
7329
|
request.completedRootSegment = null;
|
7281
|
-
|
7330
|
+
var resumableState$jscomp$0 = request.resumableState,
|
7331
|
+
renderState$jscomp$0 = request.renderState,
|
7332
|
+
preamble$jscomp$1 = renderState$jscomp$0.preamble;
|
7333
|
+
if (
|
7334
|
+
(preamble$jscomp$1.htmlChunks || preamble$jscomp$1.headChunks) &&
|
7335
|
+
(resumableState$jscomp$0.instructions & SentCompletedShellId) ===
|
7336
|
+
NothingSent
|
7337
|
+
) {
|
7338
|
+
var bootstrapChunks = renderState$jscomp$0.bootstrapChunks;
|
7339
|
+
bootstrapChunks.push(startChunkForTag("template"));
|
7340
|
+
pushCompletedShellIdAttribute(
|
7341
|
+
bootstrapChunks,
|
7342
|
+
resumableState$jscomp$0
|
7343
|
+
);
|
7344
|
+
bootstrapChunks.push(endOfStartTag, endChunkForTag("template"));
|
7345
|
+
}
|
7346
|
+
writeBootstrap(destination, renderState$jscomp$0);
|
7282
7347
|
}
|
7283
|
-
var renderState$jscomp$
|
7348
|
+
var renderState$jscomp$1 = request.renderState;
|
7284
7349
|
completedRootSegment = 0;
|
7285
|
-
var viewportChunks$jscomp$0 = renderState$jscomp$
|
7350
|
+
var viewportChunks$jscomp$0 = renderState$jscomp$1.viewportChunks;
|
7286
7351
|
for (
|
7287
7352
|
completedRootSegment = 0;
|
7288
7353
|
completedRootSegment < viewportChunks$jscomp$0.length;
|
@@ -7290,21 +7355,21 @@
|
|
7290
7355
|
)
|
7291
7356
|
destination.push(viewportChunks$jscomp$0[completedRootSegment]);
|
7292
7357
|
viewportChunks$jscomp$0.length = 0;
|
7293
|
-
renderState$jscomp$
|
7294
|
-
renderState$jscomp$
|
7295
|
-
renderState$jscomp$
|
7296
|
-
renderState$jscomp$
|
7297
|
-
renderState$jscomp$
|
7358
|
+
renderState$jscomp$1.preconnects.forEach(flushResource, destination);
|
7359
|
+
renderState$jscomp$1.preconnects.clear();
|
7360
|
+
renderState$jscomp$1.fontPreloads.forEach(flushResource, destination);
|
7361
|
+
renderState$jscomp$1.fontPreloads.clear();
|
7362
|
+
renderState$jscomp$1.highImagePreloads.forEach(
|
7298
7363
|
flushResource,
|
7299
7364
|
destination
|
7300
7365
|
);
|
7301
|
-
renderState$jscomp$
|
7302
|
-
renderState$jscomp$
|
7303
|
-
renderState$jscomp$
|
7304
|
-
renderState$jscomp$
|
7305
|
-
renderState$jscomp$
|
7306
|
-
renderState$jscomp$
|
7307
|
-
var hoistableChunks$jscomp$0 = renderState$jscomp$
|
7366
|
+
renderState$jscomp$1.highImagePreloads.clear();
|
7367
|
+
renderState$jscomp$1.styles.forEach(preloadLateStyles, destination);
|
7368
|
+
renderState$jscomp$1.scripts.forEach(flushResource, destination);
|
7369
|
+
renderState$jscomp$1.scripts.clear();
|
7370
|
+
renderState$jscomp$1.bulkPreloads.forEach(flushResource, destination);
|
7371
|
+
renderState$jscomp$1.bulkPreloads.clear();
|
7372
|
+
var hoistableChunks$jscomp$0 = renderState$jscomp$1.hoistableChunks;
|
7308
7373
|
for (
|
7309
7374
|
completedRootSegment = 0;
|
7310
7375
|
completedRootSegment < hoistableChunks$jscomp$0.length;
|
@@ -7315,57 +7380,60 @@
|
|
7315
7380
|
var clientRenderedBoundaries = request.clientRenderedBoundaries;
|
7316
7381
|
for (i = 0; i < clientRenderedBoundaries.length; i++) {
|
7317
7382
|
var boundary = clientRenderedBoundaries[i];
|
7318
|
-
renderState$jscomp$
|
7319
|
-
var resumableState = request.resumableState,
|
7320
|
-
renderState$jscomp$
|
7383
|
+
renderState$jscomp$1 = destination;
|
7384
|
+
var resumableState$jscomp$1 = request.resumableState,
|
7385
|
+
renderState$jscomp$2 = request.renderState,
|
7321
7386
|
id = boundary.rootSegmentID,
|
7322
7387
|
errorDigest = boundary.errorDigest,
|
7323
7388
|
errorMessage = boundary.errorMessage,
|
7324
7389
|
errorStack = boundary.errorStack,
|
7325
7390
|
errorComponentStack = boundary.errorComponentStack;
|
7326
|
-
renderState$jscomp$
|
7327
|
-
(
|
7391
|
+
renderState$jscomp$1.push(renderState$jscomp$2.startInlineScript);
|
7392
|
+
renderState$jscomp$1.push(endOfStartTag);
|
7393
|
+
(resumableState$jscomp$1.instructions &
|
7394
|
+
SentClientRenderFunction) ===
|
7328
7395
|
NothingSent
|
7329
|
-
? ((resumableState.instructions |=
|
7330
|
-
|
7331
|
-
|
7332
|
-
|
7333
|
-
|
7334
|
-
|
7335
|
-
renderState$jscomp$
|
7396
|
+
? ((resumableState$jscomp$1.instructions |=
|
7397
|
+
SentClientRenderFunction),
|
7398
|
+
renderState$jscomp$1.push(clientRenderScript1Full))
|
7399
|
+
: renderState$jscomp$1.push(clientRenderScript1Partial);
|
7400
|
+
renderState$jscomp$1.push(renderState$jscomp$2.boundaryPrefix);
|
7401
|
+
var chunk$jscomp$2 = id.toString(16);
|
7402
|
+
renderState$jscomp$1.push(chunk$jscomp$2);
|
7403
|
+
renderState$jscomp$1.push(clientRenderScript1A);
|
7336
7404
|
if (
|
7337
7405
|
errorDigest ||
|
7338
7406
|
errorMessage ||
|
7339
7407
|
errorStack ||
|
7340
7408
|
errorComponentStack
|
7341
7409
|
) {
|
7342
|
-
renderState$jscomp$
|
7343
|
-
var chunk$jscomp$
|
7410
|
+
renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
|
7411
|
+
var chunk$jscomp$3 = escapeJSStringsForInstructionScripts(
|
7344
7412
|
errorDigest || ""
|
7345
7413
|
);
|
7346
|
-
renderState$jscomp$
|
7414
|
+
renderState$jscomp$1.push(chunk$jscomp$3);
|
7347
7415
|
}
|
7348
7416
|
if (errorMessage || errorStack || errorComponentStack) {
|
7349
|
-
renderState$jscomp$
|
7350
|
-
var chunk$jscomp$
|
7417
|
+
renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
|
7418
|
+
var chunk$jscomp$4 = escapeJSStringsForInstructionScripts(
|
7351
7419
|
errorMessage || ""
|
7352
7420
|
);
|
7353
|
-
renderState$jscomp$
|
7421
|
+
renderState$jscomp$1.push(chunk$jscomp$4);
|
7354
7422
|
}
|
7355
7423
|
if (errorStack || errorComponentStack) {
|
7356
|
-
renderState$jscomp$
|
7357
|
-
var chunk$jscomp$
|
7424
|
+
renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
|
7425
|
+
var chunk$jscomp$5 = escapeJSStringsForInstructionScripts(
|
7358
7426
|
errorStack || ""
|
7359
7427
|
);
|
7360
|
-
renderState$jscomp$
|
7428
|
+
renderState$jscomp$1.push(chunk$jscomp$5);
|
7361
7429
|
}
|
7362
7430
|
if (errorComponentStack) {
|
7363
|
-
renderState$jscomp$
|
7364
|
-
var chunk$jscomp$
|
7431
|
+
renderState$jscomp$1.push(clientRenderErrorScriptArgInterstitial);
|
7432
|
+
var chunk$jscomp$6 =
|
7365
7433
|
escapeJSStringsForInstructionScripts(errorComponentStack);
|
7366
|
-
renderState$jscomp$
|
7434
|
+
renderState$jscomp$1.push(chunk$jscomp$6);
|
7367
7435
|
}
|
7368
|
-
var JSCompiler_inline_result = renderState$jscomp$
|
7436
|
+
var JSCompiler_inline_result = renderState$jscomp$1.push(
|
7369
7437
|
clientRenderScriptEnd
|
7370
7438
|
);
|
7371
7439
|
if (!JSCompiler_inline_result) {
|
@@ -8640,6 +8708,7 @@
|
|
8640
8708
|
SentCompleteBoundaryFunction = 2,
|
8641
8709
|
SentClientRenderFunction = 4,
|
8642
8710
|
SentStyleInsertionFunction = 8,
|
8711
|
+
SentCompletedShellId = 32,
|
8643
8712
|
EXISTS = null,
|
8644
8713
|
PRELOAD_NO_CREDS = [];
|
8645
8714
|
Object.freeze(PRELOAD_NO_CREDS);
|
@@ -8758,6 +8827,9 @@
|
|
8758
8827
|
spaceSeparator = " ",
|
8759
8828
|
styleTagResourceOpen3 = '">',
|
8760
8829
|
styleTagResourceClose = "</style>",
|
8830
|
+
blockingRenderChunkStart = '<link rel="expect" href="#',
|
8831
|
+
blockingRenderChunkEnd = '" blocking="render"/>',
|
8832
|
+
completedShellIdAttributeStart = ' id="',
|
8761
8833
|
arrayFirstOpenBracket = "[",
|
8762
8834
|
arraySubsequentOpenBracket = ",[",
|
8763
8835
|
arrayInterstitial = ",",
|
@@ -9029,5 +9101,5 @@
|
|
9029
9101
|
'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'
|
9030
9102
|
);
|
9031
9103
|
};
|
9032
|
-
exports.version = "19.2.0-canary-
|
9104
|
+
exports.version = "19.2.0-canary-143d3e1b-20250425";
|
9033
9105
|
})();
|