react-markup 0.0.0-experimental-914319ae-20250423 → 0.0.0-experimental-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.
|
@@ -759,8 +759,8 @@
|
|
|
759
759
|
) {
|
|
760
760
|
var inlineScriptWithNonce =
|
|
761
761
|
void 0 === nonce
|
|
762
|
-
? "<script
|
|
763
|
-
: '<script nonce="' + escapeTextForBrowser(nonce) + '"
|
|
762
|
+
? "<script"
|
|
763
|
+
: '<script nonce="' + escapeTextForBrowser(nonce) + '"',
|
|
764
764
|
idPrefix = resumableState.idPrefix,
|
|
765
765
|
bootstrapChunks = [],
|
|
766
766
|
externalRuntimeScript = null,
|
|
@@ -768,11 +768,13 @@
|
|
|
768
768
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
769
769
|
bootstrapModules = resumableState.bootstrapModules;
|
|
770
770
|
void 0 !== bootstrapScriptContent &&
|
|
771
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
772
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
771
773
|
bootstrapChunks.push(
|
|
772
|
-
|
|
774
|
+
endOfStartTag,
|
|
773
775
|
escapeEntireInlineScriptContent(bootstrapScriptContent),
|
|
774
776
|
"\x3c/script>"
|
|
775
|
-
);
|
|
777
|
+
));
|
|
776
778
|
void 0 !== externalRuntimeConfig &&
|
|
777
779
|
("string" === typeof externalRuntimeConfig
|
|
778
780
|
? ((externalRuntimeScript = {
|
|
@@ -893,21 +895,29 @@
|
|
|
893
895
|
),
|
|
894
896
|
bootstrapChunks.push(
|
|
895
897
|
'<script src="',
|
|
896
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
898
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
899
|
+
attributeEnd
|
|
897
900
|
),
|
|
898
901
|
nonce &&
|
|
899
|
-
bootstrapChunks.push(
|
|
902
|
+
bootstrapChunks.push(
|
|
903
|
+
' nonce="',
|
|
904
|
+
escapeTextForBrowser(nonce),
|
|
905
|
+
attributeEnd
|
|
906
|
+
),
|
|
900
907
|
"string" === typeof maxHeadersLength &&
|
|
901
908
|
bootstrapChunks.push(
|
|
902
|
-
'
|
|
903
|
-
escapeTextForBrowser(maxHeadersLength)
|
|
909
|
+
' integrity="',
|
|
910
|
+
escapeTextForBrowser(maxHeadersLength),
|
|
911
|
+
attributeEnd
|
|
904
912
|
),
|
|
905
913
|
"string" === typeof importMap &&
|
|
906
914
|
bootstrapChunks.push(
|
|
907
|
-
'
|
|
908
|
-
escapeTextForBrowser(importMap)
|
|
915
|
+
' crossorigin="',
|
|
916
|
+
escapeTextForBrowser(importMap),
|
|
917
|
+
attributeEnd
|
|
909
918
|
),
|
|
910
|
-
bootstrapChunks
|
|
919
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
920
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
911
921
|
if (void 0 !== bootstrapModules)
|
|
912
922
|
for (
|
|
913
923
|
bootstrapScripts = 0;
|
|
@@ -943,21 +953,29 @@
|
|
|
943
953
|
),
|
|
944
954
|
bootstrapChunks.push(
|
|
945
955
|
'<script type="module" src="',
|
|
946
|
-
escapeTextForBrowser(idPrefix)
|
|
956
|
+
escapeTextForBrowser(idPrefix),
|
|
957
|
+
attributeEnd
|
|
947
958
|
),
|
|
948
959
|
nonce &&
|
|
949
|
-
bootstrapChunks.push(
|
|
960
|
+
bootstrapChunks.push(
|
|
961
|
+
' nonce="',
|
|
962
|
+
escapeTextForBrowser(nonce),
|
|
963
|
+
attributeEnd
|
|
964
|
+
),
|
|
950
965
|
"string" === typeof importMap &&
|
|
951
966
|
bootstrapChunks.push(
|
|
952
|
-
'
|
|
953
|
-
escapeTextForBrowser(importMap)
|
|
967
|
+
' integrity="',
|
|
968
|
+
escapeTextForBrowser(importMap),
|
|
969
|
+
attributeEnd
|
|
954
970
|
),
|
|
955
971
|
"string" === typeof externalRuntimeScript &&
|
|
956
972
|
bootstrapChunks.push(
|
|
957
|
-
'
|
|
958
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
973
|
+
' crossorigin="',
|
|
974
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
975
|
+
attributeEnd
|
|
959
976
|
),
|
|
960
|
-
bootstrapChunks
|
|
977
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
978
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
961
979
|
return onHeaders;
|
|
962
980
|
}
|
|
963
981
|
function createResumableState(
|
|
@@ -1576,14 +1594,29 @@
|
|
|
1576
1594
|
return content;
|
|
1577
1595
|
}
|
|
1578
1596
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
)
|
|
1597
|
+
if (
|
|
1598
|
+
0 === (resumableState.instructions & 16) &&
|
|
1599
|
+
!renderState.externalRuntimeScript
|
|
1600
|
+
) {
|
|
1601
|
+
resumableState.instructions |= 16;
|
|
1602
|
+
var preamble = renderState.preamble,
|
|
1603
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
1604
|
+
(preamble.htmlChunks || preamble.headChunks) &&
|
|
1605
|
+
0 === bootstrapChunks.length
|
|
1606
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
1607
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
1608
|
+
bootstrapChunks.push(
|
|
1609
|
+
endOfStartTag,
|
|
1610
|
+
formReplayingRuntimeScript,
|
|
1611
|
+
"\x3c/script>"
|
|
1612
|
+
))
|
|
1613
|
+
: bootstrapChunks.unshift(
|
|
1614
|
+
renderState.startInlineScript,
|
|
1615
|
+
endOfStartTag,
|
|
1616
|
+
formReplayingRuntimeScript,
|
|
1617
|
+
"\x3c/script>"
|
|
1618
|
+
);
|
|
1619
|
+
}
|
|
1587
1620
|
}
|
|
1588
1621
|
function pushLinkImpl(target, props) {
|
|
1589
1622
|
target.push(startChunkForTag("link"));
|
|
@@ -3055,14 +3088,6 @@
|
|
|
3055
3088
|
preambleState.bodyChunks &&
|
|
3056
3089
|
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
3057
3090
|
}
|
|
3058
|
-
function writeBootstrap(destination, renderState) {
|
|
3059
|
-
renderState = renderState.bootstrapChunks;
|
|
3060
|
-
for (var i = 0; i < renderState.length - 1; i++)
|
|
3061
|
-
destination.push(renderState[i]);
|
|
3062
|
-
return i < renderState.length
|
|
3063
|
-
? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
|
|
3064
|
-
: !0;
|
|
3065
|
-
}
|
|
3066
3091
|
function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
3067
3092
|
destination.push('\x3c!--$?--\x3e<template id="');
|
|
3068
3093
|
if (null === id)
|
|
@@ -3315,6 +3340,15 @@
|
|
|
3315
3340
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
3316
3341
|
styleQueue.sheets.clear();
|
|
3317
3342
|
}
|
|
3343
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
3344
|
+
0 === (resumableState.instructions & 32) &&
|
|
3345
|
+
((resumableState.instructions |= 32),
|
|
3346
|
+
target.push(
|
|
3347
|
+
completedShellIdAttributeStart,
|
|
3348
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
|
3349
|
+
attributeEnd
|
|
3350
|
+
));
|
|
3351
|
+
}
|
|
3318
3352
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
3319
3353
|
destination.push(arrayFirstOpenBracket);
|
|
3320
3354
|
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
|
@@ -7491,6 +7525,7 @@
|
|
|
7491
7525
|
var scriptFormat = 0 === completedSegments.streamingFormat;
|
|
7492
7526
|
scriptFormat
|
|
7493
7527
|
? (destination.push(request.startInlineScript),
|
|
7528
|
+
destination.push(endOfStartTag),
|
|
7494
7529
|
requiresStyleInsertion
|
|
7495
7530
|
? 0 === (completedSegments.instructions & 2)
|
|
7496
7531
|
? ((completedSegments.instructions |= 10),
|
|
@@ -7528,7 +7563,15 @@
|
|
|
7528
7563
|
completedSegments = scriptFormat
|
|
7529
7564
|
? destination.push(")\x3c/script>")
|
|
7530
7565
|
: destination.push('"></template>');
|
|
7531
|
-
|
|
7566
|
+
request = request.bootstrapChunks;
|
|
7567
|
+
for (boundary = 0; boundary < request.length - 1; boundary++)
|
|
7568
|
+
destination.push(request[boundary]);
|
|
7569
|
+
boundary < request.length
|
|
7570
|
+
? ((boundary = request[boundary]),
|
|
7571
|
+
(request.length = 0),
|
|
7572
|
+
(destination = destination.push(boundary)))
|
|
7573
|
+
: (destination = !0);
|
|
7574
|
+
return destination && completedSegments;
|
|
7532
7575
|
}
|
|
7533
7576
|
function flushPartiallyCompletedSegment(
|
|
7534
7577
|
request,
|
|
@@ -7563,6 +7606,7 @@
|
|
|
7563
7606
|
request = request.renderState;
|
|
7564
7607
|
(segment = 0 === boundary.streamingFormat)
|
|
7565
7608
|
? (destination.push(request.startInlineScript),
|
|
7609
|
+
destination.push(endOfStartTag),
|
|
7566
7610
|
0 === (boundary.instructions & 1)
|
|
7567
7611
|
? ((boundary.instructions |= 1),
|
|
7568
7612
|
destination.push(
|
|
@@ -7590,14 +7634,14 @@
|
|
|
7590
7634
|
if (5 === completedRootSegment.status) return;
|
|
7591
7635
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
7592
7636
|
if (null === completedPreambleSegments) return;
|
|
7593
|
-
var
|
|
7637
|
+
var resumableState = request.resumableState,
|
|
7638
|
+
renderState = request.renderState;
|
|
7594
7639
|
if (
|
|
7595
7640
|
(0 !== request.allPendingTasks ||
|
|
7596
7641
|
null !== request.trackedPostpones) &&
|
|
7597
7642
|
renderState.externalRuntimeScript
|
|
7598
7643
|
) {
|
|
7599
7644
|
var _renderState$external = renderState.externalRuntimeScript,
|
|
7600
|
-
resumableState = request.resumableState,
|
|
7601
7645
|
src = _renderState$external.src,
|
|
7602
7646
|
chunks = _renderState$external.chunks;
|
|
7603
7647
|
resumableState.scriptResources.hasOwnProperty(src) ||
|
|
@@ -7670,22 +7714,17 @@
|
|
|
7670
7714
|
)
|
|
7671
7715
|
destination.push(hoistableChunks[i$jscomp$0]);
|
|
7672
7716
|
for (
|
|
7673
|
-
|
|
7674
|
-
|
|
7675
|
-
|
|
7717
|
+
resumableState = hoistableChunks.length = 0;
|
|
7718
|
+
resumableState < completedPreambleSegments.length;
|
|
7719
|
+
resumableState++
|
|
7676
7720
|
) {
|
|
7677
|
-
var segments = completedPreambleSegments[
|
|
7721
|
+
var segments = completedPreambleSegments[resumableState];
|
|
7678
7722
|
for (
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7723
|
+
renderState = 0;
|
|
7724
|
+
renderState < segments.length;
|
|
7725
|
+
renderState++
|
|
7682
7726
|
)
|
|
7683
|
-
flushSegment(
|
|
7684
|
-
request,
|
|
7685
|
-
destination,
|
|
7686
|
-
segments[_renderState$external],
|
|
7687
|
-
null
|
|
7688
|
-
);
|
|
7727
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
7689
7728
|
}
|
|
7690
7729
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
7691
7730
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -7703,7 +7742,6 @@
|
|
|
7703
7742
|
destination.push(bodyChunks[completedPreambleSegments]);
|
|
7704
7743
|
flushSegment(request, destination, completedRootSegment, null);
|
|
7705
7744
|
request.completedRootSegment = null;
|
|
7706
|
-
writeBootstrap(destination, request.renderState);
|
|
7707
7745
|
}
|
|
7708
7746
|
var renderState$jscomp$0 = request.renderState;
|
|
7709
7747
|
completedRootSegment = 0;
|
|
@@ -7753,6 +7791,7 @@
|
|
|
7753
7791
|
? (renderState$jscomp$0.push(
|
|
7754
7792
|
renderState$jscomp$1.startInlineScript
|
|
7755
7793
|
),
|
|
7794
|
+
renderState$jscomp$0.push(endOfStartTag),
|
|
7756
7795
|
0 === (resumableState$jscomp$0.instructions & 4)
|
|
7757
7796
|
? ((resumableState$jscomp$0.instructions |= 4),
|
|
7758
7797
|
renderState$jscomp$0.push(
|
|
@@ -8728,6 +8767,7 @@
|
|
|
8728
8767
|
destinationHasCapacity = !0,
|
|
8729
8768
|
stylesheetFlushingQueue = [],
|
|
8730
8769
|
spaceSeparator = " ",
|
|
8770
|
+
completedShellIdAttributeStart = ' id="',
|
|
8731
8771
|
arrayFirstOpenBracket = "[",
|
|
8732
8772
|
arraySubsequentOpenBracket = ",[",
|
|
8733
8773
|
arrayInterstitial = ",",
|
|
@@ -9003,5 +9043,5 @@
|
|
|
9003
9043
|
});
|
|
9004
9044
|
});
|
|
9005
9045
|
};
|
|
9006
|
-
exports.version = "19.2.0-experimental-
|
|
9046
|
+
exports.version = "19.2.0-experimental-143d3e1b-20250425";
|
|
9007
9047
|
})();
|
|
@@ -298,8 +298,8 @@ function createRenderState(
|
|
|
298
298
|
) {
|
|
299
299
|
var inlineScriptWithNonce =
|
|
300
300
|
void 0 === nonce
|
|
301
|
-
? "<script
|
|
302
|
-
: '<script nonce="' + escapeTextForBrowser(nonce) + '"
|
|
301
|
+
? "<script"
|
|
302
|
+
: '<script nonce="' + escapeTextForBrowser(nonce) + '"',
|
|
303
303
|
idPrefix = resumableState.idPrefix,
|
|
304
304
|
bootstrapChunks = [],
|
|
305
305
|
externalRuntimeScript = null,
|
|
@@ -307,11 +307,13 @@ function createRenderState(
|
|
|
307
307
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
308
308
|
bootstrapModules = resumableState.bootstrapModules;
|
|
309
309
|
void 0 !== bootstrapScriptContent &&
|
|
310
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
311
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
310
312
|
bootstrapChunks.push(
|
|
311
|
-
|
|
313
|
+
">",
|
|
312
314
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
|
313
315
|
"\x3c/script>"
|
|
314
|
-
);
|
|
316
|
+
));
|
|
315
317
|
void 0 !== externalRuntimeConfig &&
|
|
316
318
|
("string" === typeof externalRuntimeConfig
|
|
317
319
|
? ((externalRuntimeScript = { src: externalRuntimeConfig, chunks: [] }),
|
|
@@ -421,19 +423,27 @@ function createRenderState(
|
|
|
421
423
|
(externalRuntimeConfig = []),
|
|
422
424
|
pushLinkImpl(externalRuntimeConfig, maxHeadersLength),
|
|
423
425
|
onHeaders.bootstrapScripts.add(externalRuntimeConfig),
|
|
424
|
-
bootstrapChunks.push(
|
|
425
|
-
|
|
426
|
+
bootstrapChunks.push(
|
|
427
|
+
'<script src="',
|
|
428
|
+
escapeTextForBrowser(idPrefix),
|
|
429
|
+
'"'
|
|
430
|
+
),
|
|
431
|
+
nonce &&
|
|
432
|
+
bootstrapChunks.push(' nonce="', escapeTextForBrowser(nonce), '"'),
|
|
426
433
|
"string" === typeof importMap &&
|
|
427
434
|
bootstrapChunks.push(
|
|
428
|
-
'
|
|
429
|
-
escapeTextForBrowser(importMap)
|
|
435
|
+
' integrity="',
|
|
436
|
+
escapeTextForBrowser(importMap),
|
|
437
|
+
'"'
|
|
430
438
|
),
|
|
431
439
|
"string" === typeof externalRuntimeScript &&
|
|
432
440
|
bootstrapChunks.push(
|
|
433
|
-
'
|
|
434
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
441
|
+
' crossorigin="',
|
|
442
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
443
|
+
'"'
|
|
435
444
|
),
|
|
436
|
-
bootstrapChunks
|
|
445
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
446
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
437
447
|
if (void 0 !== bootstrapModules)
|
|
438
448
|
for (
|
|
439
449
|
bootstrapScripts = 0;
|
|
@@ -470,20 +480,25 @@ function createRenderState(
|
|
|
470
480
|
onHeaders.bootstrapScripts.add(maxHeadersLength),
|
|
471
481
|
bootstrapChunks.push(
|
|
472
482
|
'<script type="module" src="',
|
|
473
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
|
483
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
|
484
|
+
'"'
|
|
474
485
|
),
|
|
475
|
-
nonce &&
|
|
486
|
+
nonce &&
|
|
487
|
+
bootstrapChunks.push(' nonce="', escapeTextForBrowser(nonce), '"'),
|
|
476
488
|
"string" === typeof externalRuntimeScript &&
|
|
477
489
|
bootstrapChunks.push(
|
|
478
|
-
'
|
|
479
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
490
|
+
' integrity="',
|
|
491
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
492
|
+
'"'
|
|
480
493
|
),
|
|
481
494
|
"string" === typeof idPrefix &&
|
|
482
495
|
bootstrapChunks.push(
|
|
483
|
-
'
|
|
484
|
-
escapeTextForBrowser(idPrefix)
|
|
496
|
+
' crossorigin="',
|
|
497
|
+
escapeTextForBrowser(idPrefix),
|
|
498
|
+
'"'
|
|
485
499
|
),
|
|
486
|
-
bootstrapChunks
|
|
500
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
501
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
487
502
|
return onHeaders;
|
|
488
503
|
}
|
|
489
504
|
function createResumableState(
|
|
@@ -905,14 +920,28 @@ function flattenOptionChildren(children) {
|
|
|
905
920
|
return content;
|
|
906
921
|
}
|
|
907
922
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
)
|
|
923
|
+
if (
|
|
924
|
+
0 === (resumableState.instructions & 16) &&
|
|
925
|
+
!renderState.externalRuntimeScript
|
|
926
|
+
) {
|
|
927
|
+
resumableState.instructions |= 16;
|
|
928
|
+
var preamble = renderState.preamble,
|
|
929
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
930
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
|
931
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
932
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
933
|
+
bootstrapChunks.push(
|
|
934
|
+
">",
|
|
935
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
|
936
|
+
"\x3c/script>"
|
|
937
|
+
))
|
|
938
|
+
: bootstrapChunks.unshift(
|
|
939
|
+
renderState.startInlineScript,
|
|
940
|
+
">",
|
|
941
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
|
942
|
+
"\x3c/script>"
|
|
943
|
+
);
|
|
944
|
+
}
|
|
916
945
|
}
|
|
917
946
|
function pushLinkImpl(target, props) {
|
|
918
947
|
target.push(startChunkForTag("link"));
|
|
@@ -2116,14 +2145,6 @@ function hoistPreambleState(renderState, preambleState) {
|
|
|
2116
2145
|
preambleState.bodyChunks &&
|
|
2117
2146
|
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
2118
2147
|
}
|
|
2119
|
-
function writeBootstrap(destination, renderState) {
|
|
2120
|
-
renderState = renderState.bootstrapChunks;
|
|
2121
|
-
for (var i = 0; i < renderState.length - 1; i++)
|
|
2122
|
-
destination.push(renderState[i]);
|
|
2123
|
-
return i < renderState.length
|
|
2124
|
-
? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
|
|
2125
|
-
: !0;
|
|
2126
|
-
}
|
|
2127
2148
|
function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
2128
2149
|
destination.push('\x3c!--$?--\x3e<template id="');
|
|
2129
2150
|
if (null === id)
|
|
@@ -2368,6 +2389,15 @@ function preloadLateStyles(styleQueue) {
|
|
|
2368
2389
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
2369
2390
|
styleQueue.sheets.clear();
|
|
2370
2391
|
}
|
|
2392
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
2393
|
+
0 === (resumableState.instructions & 32) &&
|
|
2394
|
+
((resumableState.instructions |= 32),
|
|
2395
|
+
target.push(
|
|
2396
|
+
' id="',
|
|
2397
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
|
2398
|
+
'"'
|
|
2399
|
+
));
|
|
2400
|
+
}
|
|
2371
2401
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
2372
2402
|
destination.push("[");
|
|
2373
2403
|
var nextArrayOpenBrackChunk = "[";
|
|
@@ -5597,6 +5627,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
5597
5627
|
var scriptFormat = 0 === completedSegments.streamingFormat;
|
|
5598
5628
|
scriptFormat
|
|
5599
5629
|
? (destination.push(request.startInlineScript),
|
|
5630
|
+
destination.push(">"),
|
|
5600
5631
|
requiresStyleInsertion
|
|
5601
5632
|
? 0 === (completedSegments.instructions & 2)
|
|
5602
5633
|
? ((completedSegments.instructions |= 10),
|
|
@@ -5634,7 +5665,15 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
5634
5665
|
completedSegments = scriptFormat
|
|
5635
5666
|
? destination.push(")\x3c/script>")
|
|
5636
5667
|
: destination.push('"></template>');
|
|
5637
|
-
|
|
5668
|
+
request = request.bootstrapChunks;
|
|
5669
|
+
for (boundary = 0; boundary < request.length - 1; boundary++)
|
|
5670
|
+
destination.push(request[boundary]);
|
|
5671
|
+
boundary < request.length
|
|
5672
|
+
? ((boundary = request[boundary]),
|
|
5673
|
+
(request.length = 0),
|
|
5674
|
+
(destination = destination.push(boundary)))
|
|
5675
|
+
: (destination = !0);
|
|
5676
|
+
return destination && completedSegments;
|
|
5638
5677
|
}
|
|
5639
5678
|
function flushPartiallyCompletedSegment(
|
|
5640
5679
|
request,
|
|
@@ -5659,6 +5698,7 @@ function flushPartiallyCompletedSegment(
|
|
|
5659
5698
|
request = request.renderState;
|
|
5660
5699
|
(segment = 0 === boundary.streamingFormat)
|
|
5661
5700
|
? (destination.push(request.startInlineScript),
|
|
5701
|
+
destination.push(">"),
|
|
5662
5702
|
0 === (boundary.instructions & 1)
|
|
5663
5703
|
? ((boundary.instructions |= 1),
|
|
5664
5704
|
destination.push(
|
|
@@ -5686,14 +5726,14 @@ function flushCompletedQueues(request, destination) {
|
|
|
5686
5726
|
if (5 === completedRootSegment.status) return;
|
|
5687
5727
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
5688
5728
|
if (null === completedPreambleSegments) return;
|
|
5689
|
-
var
|
|
5729
|
+
var resumableState = request.resumableState,
|
|
5730
|
+
renderState = request.renderState;
|
|
5690
5731
|
if (
|
|
5691
5732
|
(0 !== request.allPendingTasks ||
|
|
5692
5733
|
null !== request.trackedPostpones) &&
|
|
5693
5734
|
renderState.externalRuntimeScript
|
|
5694
5735
|
) {
|
|
5695
5736
|
var _renderState$external = renderState.externalRuntimeScript,
|
|
5696
|
-
resumableState = request.resumableState,
|
|
5697
5737
|
src = _renderState$external.src,
|
|
5698
5738
|
chunks = _renderState$external.chunks;
|
|
5699
5739
|
resumableState.scriptResources.hasOwnProperty(src) ||
|
|
@@ -5746,22 +5786,13 @@ function flushCompletedQueues(request, destination) {
|
|
|
5746
5786
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
|
5747
5787
|
destination.push(hoistableChunks[i$jscomp$0]);
|
|
5748
5788
|
for (
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5789
|
+
resumableState = hoistableChunks.length = 0;
|
|
5790
|
+
resumableState < completedPreambleSegments.length;
|
|
5791
|
+
resumableState++
|
|
5752
5792
|
) {
|
|
5753
|
-
var segments = completedPreambleSegments[
|
|
5754
|
-
for (
|
|
5755
|
-
|
|
5756
|
-
_renderState$external < segments.length;
|
|
5757
|
-
_renderState$external++
|
|
5758
|
-
)
|
|
5759
|
-
flushSegment(
|
|
5760
|
-
request,
|
|
5761
|
-
destination,
|
|
5762
|
-
segments[_renderState$external],
|
|
5763
|
-
null
|
|
5764
|
-
);
|
|
5793
|
+
var segments = completedPreambleSegments[resumableState];
|
|
5794
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
|
5795
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
5765
5796
|
}
|
|
5766
5797
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
5767
5798
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -5779,7 +5810,6 @@ function flushCompletedQueues(request, destination) {
|
|
|
5779
5810
|
destination.push(bodyChunks[completedPreambleSegments]);
|
|
5780
5811
|
flushSegment(request, destination, completedRootSegment, null);
|
|
5781
5812
|
request.completedRootSegment = null;
|
|
5782
|
-
writeBootstrap(destination, request.renderState);
|
|
5783
5813
|
}
|
|
5784
5814
|
var renderState$jscomp$0 = request.renderState;
|
|
5785
5815
|
completedRootSegment = 0;
|
|
@@ -5824,6 +5854,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
5824
5854
|
scriptFormat = 0 === resumableState$jscomp$0.streamingFormat;
|
|
5825
5855
|
scriptFormat
|
|
5826
5856
|
? (renderState$jscomp$0.push(renderState$jscomp$1.startInlineScript),
|
|
5857
|
+
renderState$jscomp$0.push(">"),
|
|
5827
5858
|
0 === (resumableState$jscomp$0.instructions & 4)
|
|
5828
5859
|
? ((resumableState$jscomp$0.instructions |= 4),
|
|
5829
5860
|
renderState$jscomp$0.push(
|
|
@@ -6044,4 +6075,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
6044
6075
|
});
|
|
6045
6076
|
});
|
|
6046
6077
|
};
|
|
6047
|
-
exports.version = "19.2.0-experimental-
|
|
6078
|
+
exports.version = "19.2.0-experimental-143d3e1b-20250425";
|
|
@@ -5394,8 +5394,8 @@
|
|
|
5394
5394
|
) {
|
|
5395
5395
|
var inlineScriptWithNonce =
|
|
5396
5396
|
void 0 === nonce
|
|
5397
|
-
? "<script
|
|
5398
|
-
: '<script nonce="' + escapeTextForBrowser(nonce) + '"
|
|
5397
|
+
? "<script"
|
|
5398
|
+
: '<script nonce="' + escapeTextForBrowser(nonce) + '"',
|
|
5399
5399
|
idPrefix = resumableState.idPrefix,
|
|
5400
5400
|
bootstrapChunks = [],
|
|
5401
5401
|
externalRuntimeScript = null,
|
|
@@ -5403,11 +5403,13 @@
|
|
|
5403
5403
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
5404
5404
|
bootstrapModules = resumableState.bootstrapModules;
|
|
5405
5405
|
void 0 !== bootstrapScriptContent &&
|
|
5406
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
5407
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
5406
5408
|
bootstrapChunks.push(
|
|
5407
|
-
|
|
5409
|
+
endOfStartTag,
|
|
5408
5410
|
escapeEntireInlineScriptContent(bootstrapScriptContent),
|
|
5409
5411
|
"\x3c/script>"
|
|
5410
|
-
);
|
|
5412
|
+
));
|
|
5411
5413
|
void 0 !== externalRuntimeConfig &&
|
|
5412
5414
|
("string" === typeof externalRuntimeConfig
|
|
5413
5415
|
? ((externalRuntimeScript = {
|
|
@@ -5528,21 +5530,29 @@
|
|
|
5528
5530
|
),
|
|
5529
5531
|
bootstrapChunks.push(
|
|
5530
5532
|
'<script src="',
|
|
5531
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
5533
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
5534
|
+
attributeEnd
|
|
5532
5535
|
),
|
|
5533
5536
|
nonce &&
|
|
5534
|
-
bootstrapChunks.push(
|
|
5537
|
+
bootstrapChunks.push(
|
|
5538
|
+
' nonce="',
|
|
5539
|
+
escapeTextForBrowser(nonce),
|
|
5540
|
+
attributeEnd
|
|
5541
|
+
),
|
|
5535
5542
|
"string" === typeof maxHeadersLength &&
|
|
5536
5543
|
bootstrapChunks.push(
|
|
5537
|
-
'
|
|
5538
|
-
escapeTextForBrowser(maxHeadersLength)
|
|
5544
|
+
' integrity="',
|
|
5545
|
+
escapeTextForBrowser(maxHeadersLength),
|
|
5546
|
+
attributeEnd
|
|
5539
5547
|
),
|
|
5540
5548
|
"string" === typeof importMap &&
|
|
5541
5549
|
bootstrapChunks.push(
|
|
5542
|
-
'
|
|
5543
|
-
escapeTextForBrowser(importMap)
|
|
5550
|
+
' crossorigin="',
|
|
5551
|
+
escapeTextForBrowser(importMap),
|
|
5552
|
+
attributeEnd
|
|
5544
5553
|
),
|
|
5545
|
-
bootstrapChunks
|
|
5554
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
5555
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
5546
5556
|
if (void 0 !== bootstrapModules)
|
|
5547
5557
|
for (
|
|
5548
5558
|
bootstrapScripts = 0;
|
|
@@ -5578,21 +5588,29 @@
|
|
|
5578
5588
|
),
|
|
5579
5589
|
bootstrapChunks.push(
|
|
5580
5590
|
'<script type="module" src="',
|
|
5581
|
-
escapeTextForBrowser(idPrefix)
|
|
5591
|
+
escapeTextForBrowser(idPrefix),
|
|
5592
|
+
attributeEnd
|
|
5582
5593
|
),
|
|
5583
5594
|
nonce &&
|
|
5584
|
-
bootstrapChunks.push(
|
|
5595
|
+
bootstrapChunks.push(
|
|
5596
|
+
' nonce="',
|
|
5597
|
+
escapeTextForBrowser(nonce),
|
|
5598
|
+
attributeEnd
|
|
5599
|
+
),
|
|
5585
5600
|
"string" === typeof importMap &&
|
|
5586
5601
|
bootstrapChunks.push(
|
|
5587
|
-
'
|
|
5588
|
-
escapeTextForBrowser(importMap)
|
|
5602
|
+
' integrity="',
|
|
5603
|
+
escapeTextForBrowser(importMap),
|
|
5604
|
+
attributeEnd
|
|
5589
5605
|
),
|
|
5590
5606
|
"string" === typeof externalRuntimeScript &&
|
|
5591
5607
|
bootstrapChunks.push(
|
|
5592
|
-
'
|
|
5593
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
5608
|
+
' crossorigin="',
|
|
5609
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
5610
|
+
attributeEnd
|
|
5594
5611
|
),
|
|
5595
|
-
bootstrapChunks
|
|
5612
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
5613
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
5596
5614
|
return onHeaders;
|
|
5597
5615
|
}
|
|
5598
5616
|
function createResumableState(
|
|
@@ -6211,14 +6229,29 @@
|
|
|
6211
6229
|
return content;
|
|
6212
6230
|
}
|
|
6213
6231
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
)
|
|
6232
|
+
if (
|
|
6233
|
+
0 === (resumableState.instructions & 16) &&
|
|
6234
|
+
!renderState.externalRuntimeScript
|
|
6235
|
+
) {
|
|
6236
|
+
resumableState.instructions |= 16;
|
|
6237
|
+
var preamble = renderState.preamble,
|
|
6238
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
6239
|
+
(preamble.htmlChunks || preamble.headChunks) &&
|
|
6240
|
+
0 === bootstrapChunks.length
|
|
6241
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
6242
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
6243
|
+
bootstrapChunks.push(
|
|
6244
|
+
endOfStartTag,
|
|
6245
|
+
formReplayingRuntimeScript,
|
|
6246
|
+
"\x3c/script>"
|
|
6247
|
+
))
|
|
6248
|
+
: bootstrapChunks.unshift(
|
|
6249
|
+
renderState.startInlineScript,
|
|
6250
|
+
endOfStartTag,
|
|
6251
|
+
formReplayingRuntimeScript,
|
|
6252
|
+
"\x3c/script>"
|
|
6253
|
+
);
|
|
6254
|
+
}
|
|
6222
6255
|
}
|
|
6223
6256
|
function pushLinkImpl(target, props) {
|
|
6224
6257
|
target.push(startChunkForTag("link"));
|
|
@@ -7690,14 +7723,6 @@
|
|
|
7690
7723
|
preambleState.bodyChunks &&
|
|
7691
7724
|
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
7692
7725
|
}
|
|
7693
|
-
function writeBootstrap(destination, renderState) {
|
|
7694
|
-
renderState = renderState.bootstrapChunks;
|
|
7695
|
-
for (var i = 0; i < renderState.length - 1; i++)
|
|
7696
|
-
destination.push(renderState[i]);
|
|
7697
|
-
return i < renderState.length
|
|
7698
|
-
? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
|
|
7699
|
-
: !0;
|
|
7700
|
-
}
|
|
7701
7726
|
function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
7702
7727
|
destination.push('\x3c!--$?--\x3e<template id="');
|
|
7703
7728
|
if (null === id)
|
|
@@ -7950,6 +7975,15 @@
|
|
|
7950
7975
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
7951
7976
|
styleQueue.sheets.clear();
|
|
7952
7977
|
}
|
|
7978
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
7979
|
+
0 === (resumableState.instructions & 32) &&
|
|
7980
|
+
((resumableState.instructions |= 32),
|
|
7981
|
+
target.push(
|
|
7982
|
+
completedShellIdAttributeStart,
|
|
7983
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
|
7984
|
+
attributeEnd
|
|
7985
|
+
));
|
|
7986
|
+
}
|
|
7953
7987
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
7954
7988
|
destination.push(arrayFirstOpenBracket);
|
|
7955
7989
|
var nextArrayOpenBrackChunk = arrayFirstOpenBracket;
|
|
@@ -11798,6 +11832,7 @@
|
|
|
11798
11832
|
var scriptFormat = 0 === completedSegments.streamingFormat;
|
|
11799
11833
|
scriptFormat
|
|
11800
11834
|
? (destination.push(request.startInlineScript),
|
|
11835
|
+
destination.push(endOfStartTag),
|
|
11801
11836
|
requiresStyleInsertion
|
|
11802
11837
|
? 0 === (completedSegments.instructions & 2)
|
|
11803
11838
|
? ((completedSegments.instructions |= 10),
|
|
@@ -11835,7 +11870,15 @@
|
|
|
11835
11870
|
completedSegments = scriptFormat
|
|
11836
11871
|
? destination.push(")\x3c/script>")
|
|
11837
11872
|
: destination.push('"></template>');
|
|
11838
|
-
|
|
11873
|
+
request = request.bootstrapChunks;
|
|
11874
|
+
for (boundary = 0; boundary < request.length - 1; boundary++)
|
|
11875
|
+
destination.push(request[boundary]);
|
|
11876
|
+
boundary < request.length
|
|
11877
|
+
? ((boundary = request[boundary]),
|
|
11878
|
+
(request.length = 0),
|
|
11879
|
+
(destination = destination.push(boundary)))
|
|
11880
|
+
: (destination = !0);
|
|
11881
|
+
return destination && completedSegments;
|
|
11839
11882
|
}
|
|
11840
11883
|
function flushPartiallyCompletedSegment(
|
|
11841
11884
|
request,
|
|
@@ -11870,6 +11913,7 @@
|
|
|
11870
11913
|
request = request.renderState;
|
|
11871
11914
|
(segment = 0 === boundary.streamingFormat)
|
|
11872
11915
|
? (destination.push(request.startInlineScript),
|
|
11916
|
+
destination.push(endOfStartTag),
|
|
11873
11917
|
0 === (boundary.instructions & 1)
|
|
11874
11918
|
? ((boundary.instructions |= 1),
|
|
11875
11919
|
destination.push(
|
|
@@ -11897,14 +11941,14 @@
|
|
|
11897
11941
|
if (5 === completedRootSegment.status) return;
|
|
11898
11942
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
11899
11943
|
if (null === completedPreambleSegments) return;
|
|
11900
|
-
var
|
|
11944
|
+
var resumableState = request.resumableState,
|
|
11945
|
+
renderState = request.renderState;
|
|
11901
11946
|
if (
|
|
11902
11947
|
(0 !== request.allPendingTasks ||
|
|
11903
11948
|
null !== request.trackedPostpones) &&
|
|
11904
11949
|
renderState.externalRuntimeScript
|
|
11905
11950
|
) {
|
|
11906
11951
|
var _renderState$external = renderState.externalRuntimeScript,
|
|
11907
|
-
resumableState = request.resumableState,
|
|
11908
11952
|
src = _renderState$external.src,
|
|
11909
11953
|
chunks = _renderState$external.chunks;
|
|
11910
11954
|
resumableState.scriptResources.hasOwnProperty(src) ||
|
|
@@ -11977,22 +12021,17 @@
|
|
|
11977
12021
|
)
|
|
11978
12022
|
destination.push(hoistableChunks[i$jscomp$0]);
|
|
11979
12023
|
for (
|
|
11980
|
-
|
|
11981
|
-
|
|
11982
|
-
|
|
12024
|
+
resumableState = hoistableChunks.length = 0;
|
|
12025
|
+
resumableState < completedPreambleSegments.length;
|
|
12026
|
+
resumableState++
|
|
11983
12027
|
) {
|
|
11984
|
-
var segments = completedPreambleSegments[
|
|
12028
|
+
var segments = completedPreambleSegments[resumableState];
|
|
11985
12029
|
for (
|
|
11986
|
-
|
|
11987
|
-
|
|
11988
|
-
|
|
12030
|
+
renderState = 0;
|
|
12031
|
+
renderState < segments.length;
|
|
12032
|
+
renderState++
|
|
11989
12033
|
)
|
|
11990
|
-
flushSegment(
|
|
11991
|
-
request,
|
|
11992
|
-
destination,
|
|
11993
|
-
segments[_renderState$external],
|
|
11994
|
-
null
|
|
11995
|
-
);
|
|
12034
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
11996
12035
|
}
|
|
11997
12036
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
11998
12037
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -12010,7 +12049,6 @@
|
|
|
12010
12049
|
destination.push(bodyChunks[completedPreambleSegments]);
|
|
12011
12050
|
flushSegment(request, destination, completedRootSegment, null);
|
|
12012
12051
|
request.completedRootSegment = null;
|
|
12013
|
-
writeBootstrap(destination, request.renderState);
|
|
12014
12052
|
}
|
|
12015
12053
|
var renderState$jscomp$0 = request.renderState;
|
|
12016
12054
|
completedRootSegment = 0;
|
|
@@ -12060,6 +12098,7 @@
|
|
|
12060
12098
|
? (renderState$jscomp$0.push(
|
|
12061
12099
|
renderState$jscomp$1.startInlineScript
|
|
12062
12100
|
),
|
|
12101
|
+
renderState$jscomp$0.push(endOfStartTag),
|
|
12063
12102
|
0 === (resumableState$jscomp$0.instructions & 4)
|
|
12064
12103
|
? ((resumableState$jscomp$0.instructions |= 4),
|
|
12065
12104
|
renderState$jscomp$0.push(
|
|
@@ -13386,6 +13425,7 @@
|
|
|
13386
13425
|
destinationHasCapacity = !0,
|
|
13387
13426
|
stylesheetFlushingQueue = [],
|
|
13388
13427
|
spaceSeparator = " ",
|
|
13428
|
+
completedShellIdAttributeStart = ' id="',
|
|
13389
13429
|
arrayFirstOpenBracket = "[",
|
|
13390
13430
|
arraySubsequentOpenBracket = ",[",
|
|
13391
13431
|
arrayInterstitial = ",",
|
|
@@ -13782,5 +13822,5 @@
|
|
|
13782
13822
|
});
|
|
13783
13823
|
});
|
|
13784
13824
|
};
|
|
13785
|
-
exports.version = "19.2.0-experimental-
|
|
13825
|
+
exports.version = "19.2.0-experimental-143d3e1b-20250425";
|
|
13786
13826
|
})();
|
|
@@ -3219,8 +3219,8 @@ function createRenderState(
|
|
|
3219
3219
|
) {
|
|
3220
3220
|
var inlineScriptWithNonce =
|
|
3221
3221
|
void 0 === nonce
|
|
3222
|
-
? "<script
|
|
3223
|
-
: '<script nonce="' + escapeTextForBrowser(nonce) + '"
|
|
3222
|
+
? "<script"
|
|
3223
|
+
: '<script nonce="' + escapeTextForBrowser(nonce) + '"',
|
|
3224
3224
|
idPrefix = resumableState.idPrefix,
|
|
3225
3225
|
bootstrapChunks = [],
|
|
3226
3226
|
externalRuntimeScript = null,
|
|
@@ -3228,11 +3228,13 @@ function createRenderState(
|
|
|
3228
3228
|
bootstrapScripts = resumableState.bootstrapScripts,
|
|
3229
3229
|
bootstrapModules = resumableState.bootstrapModules;
|
|
3230
3230
|
void 0 !== bootstrapScriptContent &&
|
|
3231
|
+
(bootstrapChunks.push(inlineScriptWithNonce),
|
|
3232
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
3231
3233
|
bootstrapChunks.push(
|
|
3232
|
-
|
|
3234
|
+
">",
|
|
3233
3235
|
("" + bootstrapScriptContent).replace(scriptRegex, scriptReplacer),
|
|
3234
3236
|
"\x3c/script>"
|
|
3235
|
-
);
|
|
3237
|
+
));
|
|
3236
3238
|
void 0 !== externalRuntimeConfig &&
|
|
3237
3239
|
("string" === typeof externalRuntimeConfig
|
|
3238
3240
|
? ((externalRuntimeScript = { src: externalRuntimeConfig, chunks: [] }),
|
|
@@ -3342,19 +3344,27 @@ function createRenderState(
|
|
|
3342
3344
|
(externalRuntimeConfig = []),
|
|
3343
3345
|
pushLinkImpl(externalRuntimeConfig, maxHeadersLength),
|
|
3344
3346
|
onHeaders.bootstrapScripts.add(externalRuntimeConfig),
|
|
3345
|
-
bootstrapChunks.push(
|
|
3346
|
-
|
|
3347
|
+
bootstrapChunks.push(
|
|
3348
|
+
'<script src="',
|
|
3349
|
+
escapeTextForBrowser(idPrefix),
|
|
3350
|
+
'"'
|
|
3351
|
+
),
|
|
3352
|
+
nonce &&
|
|
3353
|
+
bootstrapChunks.push(' nonce="', escapeTextForBrowser(nonce), '"'),
|
|
3347
3354
|
"string" === typeof importMap &&
|
|
3348
3355
|
bootstrapChunks.push(
|
|
3349
|
-
'
|
|
3350
|
-
escapeTextForBrowser(importMap)
|
|
3356
|
+
' integrity="',
|
|
3357
|
+
escapeTextForBrowser(importMap),
|
|
3358
|
+
'"'
|
|
3351
3359
|
),
|
|
3352
3360
|
"string" === typeof externalRuntimeScript &&
|
|
3353
3361
|
bootstrapChunks.push(
|
|
3354
|
-
'
|
|
3355
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
3362
|
+
' crossorigin="',
|
|
3363
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
3364
|
+
'"'
|
|
3356
3365
|
),
|
|
3357
|
-
bootstrapChunks
|
|
3366
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
3367
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
3358
3368
|
if (void 0 !== bootstrapModules)
|
|
3359
3369
|
for (
|
|
3360
3370
|
bootstrapScripts = 0;
|
|
@@ -3391,20 +3401,25 @@ function createRenderState(
|
|
|
3391
3401
|
onHeaders.bootstrapScripts.add(maxHeadersLength),
|
|
3392
3402
|
bootstrapChunks.push(
|
|
3393
3403
|
'<script type="module" src="',
|
|
3394
|
-
escapeTextForBrowser(inlineScriptWithNonce)
|
|
3404
|
+
escapeTextForBrowser(inlineScriptWithNonce),
|
|
3405
|
+
'"'
|
|
3395
3406
|
),
|
|
3396
|
-
nonce &&
|
|
3407
|
+
nonce &&
|
|
3408
|
+
bootstrapChunks.push(' nonce="', escapeTextForBrowser(nonce), '"'),
|
|
3397
3409
|
"string" === typeof externalRuntimeScript &&
|
|
3398
3410
|
bootstrapChunks.push(
|
|
3399
|
-
'
|
|
3400
|
-
escapeTextForBrowser(externalRuntimeScript)
|
|
3411
|
+
' integrity="',
|
|
3412
|
+
escapeTextForBrowser(externalRuntimeScript),
|
|
3413
|
+
'"'
|
|
3401
3414
|
),
|
|
3402
3415
|
"string" === typeof idPrefix &&
|
|
3403
3416
|
bootstrapChunks.push(
|
|
3404
|
-
'
|
|
3405
|
-
escapeTextForBrowser(idPrefix)
|
|
3417
|
+
' crossorigin="',
|
|
3418
|
+
escapeTextForBrowser(idPrefix),
|
|
3419
|
+
'"'
|
|
3406
3420
|
),
|
|
3407
|
-
bootstrapChunks
|
|
3421
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
3422
|
+
bootstrapChunks.push(' async="">\x3c/script>');
|
|
3408
3423
|
return onHeaders;
|
|
3409
3424
|
}
|
|
3410
3425
|
function createResumableState(
|
|
@@ -3826,14 +3841,28 @@ function flattenOptionChildren(children) {
|
|
|
3826
3841
|
return content;
|
|
3827
3842
|
}
|
|
3828
3843
|
function injectFormReplayingRuntime(resumableState, renderState) {
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
)
|
|
3844
|
+
if (
|
|
3845
|
+
0 === (resumableState.instructions & 16) &&
|
|
3846
|
+
!renderState.externalRuntimeScript
|
|
3847
|
+
) {
|
|
3848
|
+
resumableState.instructions |= 16;
|
|
3849
|
+
var preamble = renderState.preamble,
|
|
3850
|
+
bootstrapChunks = renderState.bootstrapChunks;
|
|
3851
|
+
(preamble.htmlChunks || preamble.headChunks) && 0 === bootstrapChunks.length
|
|
3852
|
+
? (bootstrapChunks.push(renderState.startInlineScript),
|
|
3853
|
+
pushCompletedShellIdAttribute(bootstrapChunks, resumableState),
|
|
3854
|
+
bootstrapChunks.push(
|
|
3855
|
+
">",
|
|
3856
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
|
3857
|
+
"\x3c/script>"
|
|
3858
|
+
))
|
|
3859
|
+
: bootstrapChunks.unshift(
|
|
3860
|
+
renderState.startInlineScript,
|
|
3861
|
+
">",
|
|
3862
|
+
'addEventListener("submit",function(a){if(!a.defaultPrevented){var c=a.target,d=a.submitter,e=c.action,b=d;if(d){var f=d.getAttribute("formAction");null!=f&&(e=f,b=null)}"javascript:throw new Error(\'React form unexpectedly submitted.\')"===e&&(a.preventDefault(),b?(a=document.createElement("input"),a.name=b.name,a.value=b.value,b.parentNode.insertBefore(a,b),b=new FormData(c),a.parentNode.removeChild(a)):b=new FormData(c),a=c.ownerDocument||c,(a.$$reactFormReplay=a.$$reactFormReplay||[]).push(c,d,b))}});',
|
|
3863
|
+
"\x3c/script>"
|
|
3864
|
+
);
|
|
3865
|
+
}
|
|
3837
3866
|
}
|
|
3838
3867
|
function pushLinkImpl(target, props) {
|
|
3839
3868
|
target.push(startChunkForTag("link"));
|
|
@@ -5037,14 +5066,6 @@ function hoistPreambleState(renderState, preambleState) {
|
|
|
5037
5066
|
preambleState.bodyChunks &&
|
|
5038
5067
|
(renderState.bodyChunks = preambleState.bodyChunks);
|
|
5039
5068
|
}
|
|
5040
|
-
function writeBootstrap(destination, renderState) {
|
|
5041
|
-
renderState = renderState.bootstrapChunks;
|
|
5042
|
-
for (var i = 0; i < renderState.length - 1; i++)
|
|
5043
|
-
destination.push(renderState[i]);
|
|
5044
|
-
return i < renderState.length
|
|
5045
|
-
? ((i = renderState[i]), (renderState.length = 0), destination.push(i))
|
|
5046
|
-
: !0;
|
|
5047
|
-
}
|
|
5048
5069
|
function writeStartPendingSuspenseBoundary(destination, renderState, id) {
|
|
5049
5070
|
destination.push('\x3c!--$?--\x3e<template id="');
|
|
5050
5071
|
if (null === id)
|
|
@@ -5289,6 +5310,15 @@ function preloadLateStyles(styleQueue) {
|
|
|
5289
5310
|
styleQueue.sheets.forEach(preloadLateStyle, this);
|
|
5290
5311
|
styleQueue.sheets.clear();
|
|
5291
5312
|
}
|
|
5313
|
+
function pushCompletedShellIdAttribute(target, resumableState) {
|
|
5314
|
+
0 === (resumableState.instructions & 32) &&
|
|
5315
|
+
((resumableState.instructions |= 32),
|
|
5316
|
+
target.push(
|
|
5317
|
+
' id="',
|
|
5318
|
+
escapeTextForBrowser("\u00ab" + resumableState.idPrefix + "R\u00bb"),
|
|
5319
|
+
'"'
|
|
5320
|
+
));
|
|
5321
|
+
}
|
|
5292
5322
|
function writeStyleResourceDependenciesInJS(destination, hoistableState) {
|
|
5293
5323
|
destination.push("[");
|
|
5294
5324
|
var nextArrayOpenBrackChunk = "[";
|
|
@@ -8300,6 +8330,7 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8300
8330
|
var scriptFormat = 0 === completedSegments.streamingFormat;
|
|
8301
8331
|
scriptFormat
|
|
8302
8332
|
? (destination.push(request.startInlineScript),
|
|
8333
|
+
destination.push(">"),
|
|
8303
8334
|
requiresStyleInsertion
|
|
8304
8335
|
? 0 === (completedSegments.instructions & 2)
|
|
8305
8336
|
? ((completedSegments.instructions |= 10),
|
|
@@ -8337,7 +8368,15 @@ function flushCompletedBoundary(request, destination, boundary) {
|
|
|
8337
8368
|
completedSegments = scriptFormat
|
|
8338
8369
|
? destination.push(")\x3c/script>")
|
|
8339
8370
|
: destination.push('"></template>');
|
|
8340
|
-
|
|
8371
|
+
request = request.bootstrapChunks;
|
|
8372
|
+
for (boundary = 0; boundary < request.length - 1; boundary++)
|
|
8373
|
+
destination.push(request[boundary]);
|
|
8374
|
+
boundary < request.length
|
|
8375
|
+
? ((boundary = request[boundary]),
|
|
8376
|
+
(request.length = 0),
|
|
8377
|
+
(destination = destination.push(boundary)))
|
|
8378
|
+
: (destination = !0);
|
|
8379
|
+
return destination && completedSegments;
|
|
8341
8380
|
}
|
|
8342
8381
|
function flushPartiallyCompletedSegment(
|
|
8343
8382
|
request,
|
|
@@ -8362,6 +8401,7 @@ function flushPartiallyCompletedSegment(
|
|
|
8362
8401
|
request = request.renderState;
|
|
8363
8402
|
(segment = 0 === boundary.streamingFormat)
|
|
8364
8403
|
? (destination.push(request.startInlineScript),
|
|
8404
|
+
destination.push(">"),
|
|
8365
8405
|
0 === (boundary.instructions & 1)
|
|
8366
8406
|
? ((boundary.instructions |= 1),
|
|
8367
8407
|
destination.push(
|
|
@@ -8389,14 +8429,14 @@ function flushCompletedQueues(request, destination) {
|
|
|
8389
8429
|
if (5 === completedRootSegment.status) return;
|
|
8390
8430
|
var completedPreambleSegments = request.completedPreambleSegments;
|
|
8391
8431
|
if (null === completedPreambleSegments) return;
|
|
8392
|
-
var
|
|
8432
|
+
var resumableState = request.resumableState,
|
|
8433
|
+
renderState = request.renderState;
|
|
8393
8434
|
if (
|
|
8394
8435
|
(0 !== request.allPendingTasks ||
|
|
8395
8436
|
null !== request.trackedPostpones) &&
|
|
8396
8437
|
renderState.externalRuntimeScript
|
|
8397
8438
|
) {
|
|
8398
8439
|
var _renderState$external = renderState.externalRuntimeScript,
|
|
8399
|
-
resumableState = request.resumableState,
|
|
8400
8440
|
src = _renderState$external.src,
|
|
8401
8441
|
chunks = _renderState$external.chunks;
|
|
8402
8442
|
resumableState.scriptResources.hasOwnProperty(src) ||
|
|
@@ -8449,22 +8489,13 @@ function flushCompletedQueues(request, destination) {
|
|
|
8449
8489
|
for (i$jscomp$0 = 0; i$jscomp$0 < hoistableChunks.length; i$jscomp$0++)
|
|
8450
8490
|
destination.push(hoistableChunks[i$jscomp$0]);
|
|
8451
8491
|
for (
|
|
8452
|
-
|
|
8453
|
-
|
|
8454
|
-
|
|
8492
|
+
resumableState = hoistableChunks.length = 0;
|
|
8493
|
+
resumableState < completedPreambleSegments.length;
|
|
8494
|
+
resumableState++
|
|
8455
8495
|
) {
|
|
8456
|
-
var segments = completedPreambleSegments[
|
|
8457
|
-
for (
|
|
8458
|
-
|
|
8459
|
-
_renderState$external < segments.length;
|
|
8460
|
-
_renderState$external++
|
|
8461
|
-
)
|
|
8462
|
-
flushSegment(
|
|
8463
|
-
request,
|
|
8464
|
-
destination,
|
|
8465
|
-
segments[_renderState$external],
|
|
8466
|
-
null
|
|
8467
|
-
);
|
|
8496
|
+
var segments = completedPreambleSegments[resumableState];
|
|
8497
|
+
for (renderState = 0; renderState < segments.length; renderState++)
|
|
8498
|
+
flushSegment(request, destination, segments[renderState], null);
|
|
8468
8499
|
}
|
|
8469
8500
|
var preamble$jscomp$0 = request.renderState.preamble,
|
|
8470
8501
|
headChunks$jscomp$0 = preamble$jscomp$0.headChunks;
|
|
@@ -8482,7 +8513,6 @@ function flushCompletedQueues(request, destination) {
|
|
|
8482
8513
|
destination.push(bodyChunks[completedPreambleSegments]);
|
|
8483
8514
|
flushSegment(request, destination, completedRootSegment, null);
|
|
8484
8515
|
request.completedRootSegment = null;
|
|
8485
|
-
writeBootstrap(destination, request.renderState);
|
|
8486
8516
|
}
|
|
8487
8517
|
var renderState$jscomp$0 = request.renderState;
|
|
8488
8518
|
completedRootSegment = 0;
|
|
@@ -8527,6 +8557,7 @@ function flushCompletedQueues(request, destination) {
|
|
|
8527
8557
|
scriptFormat = 0 === resumableState$jscomp$0.streamingFormat;
|
|
8528
8558
|
scriptFormat
|
|
8529
8559
|
? (renderState$jscomp$0.push(renderState$jscomp$1.startInlineScript),
|
|
8560
|
+
renderState$jscomp$0.push(">"),
|
|
8530
8561
|
0 === (resumableState$jscomp$0.instructions & 4)
|
|
8531
8562
|
? ((resumableState$jscomp$0.instructions |= 4),
|
|
8532
8563
|
renderState$jscomp$0.push(
|
|
@@ -8984,4 +9015,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8984
9015
|
});
|
|
8985
9016
|
});
|
|
8986
9017
|
};
|
|
8987
|
-
exports.version = "19.2.0-experimental-
|
|
9018
|
+
exports.version = "19.2.0-experimental-143d3e1b-20250425";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-markup",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-143d3e1b-20250425",
|
|
4
4
|
"description": "React package generating embedded markup such as e-mails with support for Server Components.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://react.dev/",
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"react": "0.0.0-experimental-
|
|
20
|
+
"react": "0.0.0-experimental-143d3e1b-20250425"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|