react-dom 19.2.0-canary-c44e4a25-20250409 → 19.2.0-canary-1d6c8168-20250411

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -759,12 +759,7 @@
759
759
  };
760
760
  }
761
761
  function createPreambleState() {
762
- return {
763
- htmlChunks: null,
764
- headChunks: null,
765
- bodyChunks: null,
766
- contribution: NoContribution
767
- };
762
+ return { htmlChunks: null, headChunks: null, bodyChunks: null };
768
763
  }
769
764
  function createFormatContext(insertionMode, selectedValue, tagScope) {
770
765
  return {
@@ -2695,6 +2690,7 @@
2695
2690
  var preamble = preambleState || renderState.preamble;
2696
2691
  if (preamble.headChunks)
2697
2692
  throw Error("The `<head>` tag may only be rendered once.");
2693
+ null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
2698
2694
  preamble.headChunks = [];
2699
2695
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2700
2696
  preamble.headChunks,
@@ -2713,6 +2709,7 @@
2713
2709
  var preamble$jscomp$0 = preambleState || renderState.preamble;
2714
2710
  if (preamble$jscomp$0.bodyChunks)
2715
2711
  throw Error("The `<body>` tag may only be rendered once.");
2712
+ null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
2716
2713
  preamble$jscomp$0.bodyChunks = [];
2717
2714
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2718
2715
  preamble$jscomp$0.bodyChunks,
@@ -2731,6 +2728,7 @@
2731
2728
  var preamble$jscomp$1 = preambleState || renderState.preamble;
2732
2729
  if (preamble$jscomp$1.htmlChunks)
2733
2730
  throw Error("The `<html>` tag may only be rendered once.");
2731
+ null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
2734
2732
  preamble$jscomp$1.htmlChunks = [doctypeChunk];
2735
2733
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2736
2734
  preamble$jscomp$1.htmlChunks,
@@ -2814,16 +2812,13 @@
2814
2812
  renderState = renderState.preamble;
2815
2813
  null === renderState.htmlChunks &&
2816
2814
  preambleState.htmlChunks &&
2817
- ((renderState.htmlChunks = preambleState.htmlChunks),
2818
- (preambleState.contribution |= 1));
2815
+ (renderState.htmlChunks = preambleState.htmlChunks);
2819
2816
  null === renderState.headChunks &&
2820
2817
  preambleState.headChunks &&
2821
- ((renderState.headChunks = preambleState.headChunks),
2822
- (preambleState.contribution |= 4));
2818
+ (renderState.headChunks = preambleState.headChunks);
2823
2819
  null === renderState.bodyChunks &&
2824
2820
  preambleState.bodyChunks &&
2825
- ((renderState.bodyChunks = preambleState.bodyChunks),
2826
- (preambleState.contribution |= 2));
2821
+ (renderState.bodyChunks = preambleState.bodyChunks);
2827
2822
  }
2828
2823
  function writeBootstrap(destination, renderState) {
2829
2824
  renderState = renderState.bootstrapChunks;
@@ -2844,13 +2839,6 @@
2844
2839
  destination.push(renderState);
2845
2840
  return destination.push(startPendingSuspenseBoundary2);
2846
2841
  }
2847
- function writePreambleContribution(destination, preambleState) {
2848
- preambleState = preambleState.contribution;
2849
- preambleState !== NoContribution &&
2850
- (destination.push(boundaryPreambleContributionChunkStart),
2851
- destination.push("" + preambleState),
2852
- destination.push(boundaryPreambleContributionChunkEnd));
2853
- }
2854
2842
  function writeStartSegment(destination, renderState, formatContext, id) {
2855
2843
  switch (formatContext.insertionMode) {
2856
2844
  case ROOT_HTML_MODE:
@@ -5332,20 +5320,8 @@
5332
5320
  renderNode(request, task, props.children, -1);
5333
5321
  task.keyPath = _prevKeyPath3;
5334
5322
  }
5335
- if (!request.renderState.generateStaticMarkup) {
5336
- var target$jscomp$0 = segment$jscomp$0.chunks,
5337
- preambleState = task.blockedPreamble;
5338
- if (preambleState) {
5339
- var contribution = preambleState.contribution;
5340
- contribution !== NoContribution &&
5341
- target$jscomp$0.push(
5342
- boundaryPreambleContributionChunkStart,
5343
- "" + contribution,
5344
- boundaryPreambleContributionChunkEnd
5345
- );
5346
- }
5347
- target$jscomp$0.push("\x3c!--/&--\x3e");
5348
- }
5323
+ request.renderState.generateStaticMarkup ||
5324
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
5349
5325
  segment$jscomp$0.lastPushedText = !1;
5350
5326
  }
5351
5327
  return;
@@ -6995,8 +6971,8 @@
6995
6971
  if (!request.renderState.generateStaticMarkup) {
6996
6972
  var errorDigest = boundary.errorDigest,
6997
6973
  errorMessage = boundary.errorMessage,
6998
- errorStack = boundary.errorStack,
6999
- errorComponentStack = boundary.errorComponentStack;
6974
+ errorStack = boundary.errorStack;
6975
+ boundary = boundary.errorComponentStack;
7000
6976
  destination.push(startClientRenderedSuspenseBoundary);
7001
6977
  destination.push(clientRenderedSuspenseBoundaryError1);
7002
6978
  errorDigest &&
@@ -7020,22 +6996,20 @@
7020
6996
  destination.push(
7021
6997
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
7022
6998
  ));
7023
- errorComponentStack &&
6999
+ boundary &&
7024
7000
  (destination.push(clientRenderedSuspenseBoundaryError1D),
7025
- (errorComponentStack = escapeTextForBrowser(errorComponentStack)),
7026
- destination.push(errorComponentStack),
7001
+ (errorStack = escapeTextForBrowser(boundary)),
7002
+ destination.push(errorStack),
7027
7003
  destination.push(
7028
7004
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
7029
7005
  ));
7030
7006
  destination.push(clientRenderedSuspenseBoundaryError2);
7031
7007
  }
7032
7008
  flushSubtree(request, destination, segment, hoistableState);
7033
- request.renderState.generateStaticMarkup
7034
- ? (destination = !0)
7035
- : ((request = boundary.fallbackPreamble) &&
7036
- writePreambleContribution(destination, request),
7037
- (destination = destination.push(endSuspenseBoundary)));
7038
- return destination;
7009
+ request = request.renderState.generateStaticMarkup
7010
+ ? !0
7011
+ : destination.push(endSuspenseBoundary);
7012
+ return request;
7039
7013
  }
7040
7014
  if (boundary.status !== COMPLETED)
7041
7015
  return (
@@ -7049,9 +7023,12 @@
7049
7023
  boundary.rootSegmentID
7050
7024
  ),
7051
7025
  hoistableState &&
7052
- ((boundary = boundary.fallbackState),
7053
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7054
- boundary.stylesheets.forEach(
7026
+ ((errorStack = boundary.fallbackState),
7027
+ errorStack.styles.forEach(
7028
+ hoistStyleQueueDependency,
7029
+ hoistableState
7030
+ ),
7031
+ errorStack.stylesheets.forEach(
7055
7032
  hoistStylesheetDependency,
7056
7033
  hoistableState
7057
7034
  )),
@@ -7082,12 +7059,10 @@
7082
7059
  "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
7083
7060
  );
7084
7061
  flushSegment(request, destination, segment[0], hoistableState);
7085
- request.renderState.generateStaticMarkup
7086
- ? (destination = !0)
7087
- : ((request = boundary.contentPreamble) &&
7088
- writePreambleContribution(destination, request),
7089
- (destination = destination.push(endSuspenseBoundary)));
7090
- return destination;
7062
+ request = request.renderState.generateStaticMarkup
7063
+ ? !0
7064
+ : destination.push(endSuspenseBoundary);
7065
+ return request;
7091
7066
  }
7092
7067
  function flushSegmentContainer(
7093
7068
  request,
@@ -8672,8 +8647,7 @@
8672
8647
  Object.freeze(PRELOAD_NO_CREDS);
8673
8648
  var scriptRegex = /(<\/|<)(s)(cript)/gi;
8674
8649
  var didWarnForNewBooleanPropsWithEmptyValue = {};
8675
- var NoContribution = 0,
8676
- ROOT_HTML_MODE = 0,
8650
+ var ROOT_HTML_MODE = 0,
8677
8651
  HTML_HTML_MODE = 1,
8678
8652
  HTML_MODE = 2,
8679
8653
  HTML_HEAD_MODE = 3,
@@ -8728,8 +8702,6 @@
8728
8702
  clientRenderedSuspenseBoundaryError1C = ' data-stck="',
8729
8703
  clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
8730
8704
  clientRenderedSuspenseBoundaryError2 = "></template>",
8731
- boundaryPreambleContributionChunkStart = "\x3c!--",
8732
- boundaryPreambleContributionChunkEnd = "--\x3e",
8733
8705
  startSegmentHTML = '<div hidden id="',
8734
8706
  startSegmentHTML2 = '">',
8735
8707
  endSegmentHTML = "</div>",
@@ -9059,5 +9031,5 @@
9059
9031
  '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'
9060
9032
  );
9061
9033
  };
9062
- exports.version = "19.2.0-canary-c44e4a25-20250409";
9034
+ exports.version = "19.2.0-canary-1d6c8168-20250411";
9063
9035
  })();
@@ -330,12 +330,7 @@ function createResumableState(
330
330
  };
331
331
  }
332
332
  function createPreambleState() {
333
- return {
334
- htmlChunks: null,
335
- headChunks: null,
336
- bodyChunks: null,
337
- contribution: 0
338
- };
333
+ return { htmlChunks: null, headChunks: null, bodyChunks: null };
339
334
  }
340
335
  function createFormatContext(insertionMode, selectedValue, tagScope) {
341
336
  return {
@@ -1750,6 +1745,7 @@ function pushStartInstance(
1750
1745
  var preamble = preambleState || renderState.preamble;
1751
1746
  if (preamble.headChunks)
1752
1747
  throw Error(formatProdErrorMessage(545, "`<head>`"));
1748
+ null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
1753
1749
  preamble.headChunks = [];
1754
1750
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1755
1751
  preamble.headChunks,
@@ -1768,6 +1764,7 @@ function pushStartInstance(
1768
1764
  var preamble$jscomp$0 = preambleState || renderState.preamble;
1769
1765
  if (preamble$jscomp$0.bodyChunks)
1770
1766
  throw Error(formatProdErrorMessage(545, "`<body>`"));
1767
+ null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
1771
1768
  preamble$jscomp$0.bodyChunks = [];
1772
1769
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1773
1770
  preamble$jscomp$0.bodyChunks,
@@ -1786,6 +1783,7 @@ function pushStartInstance(
1786
1783
  var preamble$jscomp$1 = preambleState || renderState.preamble;
1787
1784
  if (preamble$jscomp$1.htmlChunks)
1788
1785
  throw Error(formatProdErrorMessage(545, "`<html>`"));
1786
+ null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
1789
1787
  preamble$jscomp$1.htmlChunks = [""];
1790
1788
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1791
1789
  preamble$jscomp$1.htmlChunks,
@@ -1863,16 +1861,13 @@ function hoistPreambleState(renderState, preambleState) {
1863
1861
  renderState = renderState.preamble;
1864
1862
  null === renderState.htmlChunks &&
1865
1863
  preambleState.htmlChunks &&
1866
- ((renderState.htmlChunks = preambleState.htmlChunks),
1867
- (preambleState.contribution |= 1));
1864
+ (renderState.htmlChunks = preambleState.htmlChunks);
1868
1865
  null === renderState.headChunks &&
1869
1866
  preambleState.headChunks &&
1870
- ((renderState.headChunks = preambleState.headChunks),
1871
- (preambleState.contribution |= 4));
1867
+ (renderState.headChunks = preambleState.headChunks);
1872
1868
  null === renderState.bodyChunks &&
1873
1869
  preambleState.bodyChunks &&
1874
- ((renderState.bodyChunks = preambleState.bodyChunks),
1875
- (preambleState.contribution |= 2));
1870
+ (renderState.bodyChunks = preambleState.bodyChunks);
1876
1871
  }
1877
1872
  function writeBootstrap(destination, renderState) {
1878
1873
  renderState = renderState.bootstrapChunks;
@@ -1890,13 +1885,6 @@ function writeStartPendingSuspenseBoundary(destination, renderState, id) {
1890
1885
  destination.push(renderState);
1891
1886
  return destination.push('"></template>');
1892
1887
  }
1893
- function writePreambleContribution(destination, preambleState) {
1894
- preambleState = preambleState.contribution;
1895
- 0 !== preambleState &&
1896
- (destination.push("\x3c!--"),
1897
- destination.push("" + preambleState),
1898
- destination.push("--\x3e"));
1899
- }
1900
1888
  function writeStartSegment(destination, renderState, formatContext, id) {
1901
1889
  switch (formatContext.insertionMode) {
1902
1890
  case 0:
@@ -2646,17 +2634,17 @@ function createRenderState(resumableState, generateStaticMarkup) {
2646
2634
  "\x3c/script>"
2647
2635
  );
2648
2636
  bootstrapScriptContent = idPrefix + "P:";
2649
- var JSCompiler_object_inline_segmentPrefix_1567 = idPrefix + "S:";
2637
+ var JSCompiler_object_inline_segmentPrefix_1538 = idPrefix + "S:";
2650
2638
  idPrefix += "B:";
2651
- var JSCompiler_object_inline_preamble_1570 = createPreambleState(),
2652
- JSCompiler_object_inline_preconnects_1580 = new Set(),
2653
- JSCompiler_object_inline_fontPreloads_1581 = new Set(),
2654
- JSCompiler_object_inline_highImagePreloads_1582 = new Set(),
2655
- JSCompiler_object_inline_styles_1583 = new Map(),
2656
- JSCompiler_object_inline_bootstrapScripts_1584 = new Set(),
2657
- JSCompiler_object_inline_scripts_1585 = new Set(),
2658
- JSCompiler_object_inline_bulkPreloads_1586 = new Set(),
2659
- JSCompiler_object_inline_preloads_1587 = {
2639
+ var JSCompiler_object_inline_preamble_1541 = createPreambleState(),
2640
+ JSCompiler_object_inline_preconnects_1551 = new Set(),
2641
+ JSCompiler_object_inline_fontPreloads_1552 = new Set(),
2642
+ JSCompiler_object_inline_highImagePreloads_1553 = new Set(),
2643
+ JSCompiler_object_inline_styles_1554 = new Map(),
2644
+ JSCompiler_object_inline_bootstrapScripts_1555 = new Set(),
2645
+ JSCompiler_object_inline_scripts_1556 = new Set(),
2646
+ JSCompiler_object_inline_bulkPreloads_1557 = new Set(),
2647
+ JSCompiler_object_inline_preloads_1558 = {
2660
2648
  images: new Map(),
2661
2649
  stylesheets: new Map(),
2662
2650
  scripts: new Map(),
@@ -2693,7 +2681,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2693
2681
  scriptConfig.moduleScriptResources[href] = null;
2694
2682
  scriptConfig = [];
2695
2683
  pushLinkImpl(scriptConfig, props);
2696
- JSCompiler_object_inline_bootstrapScripts_1584.add(scriptConfig);
2684
+ JSCompiler_object_inline_bootstrapScripts_1555.add(scriptConfig);
2697
2685
  bootstrapChunks.push('<script src="', escapeTextForBrowser(src));
2698
2686
  "string" === typeof integrity &&
2699
2687
  bootstrapChunks.push('" integrity="', escapeTextForBrowser(integrity));
@@ -2734,7 +2722,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
2734
2722
  (props.moduleScriptResources[scriptConfig] = null),
2735
2723
  (props = []),
2736
2724
  pushLinkImpl(props, integrity),
2737
- JSCompiler_object_inline_bootstrapScripts_1584.add(props),
2725
+ JSCompiler_object_inline_bootstrapScripts_1555.add(props),
2738
2726
  bootstrapChunks.push(
2739
2727
  '<script type="module" src="',
2740
2728
  escapeTextForBrowser(i)
@@ -2749,10 +2737,10 @@ function createRenderState(resumableState, generateStaticMarkup) {
2749
2737
  bootstrapChunks.push('" async="">\x3c/script>');
2750
2738
  return {
2751
2739
  placeholderPrefix: bootstrapScriptContent,
2752
- segmentPrefix: JSCompiler_object_inline_segmentPrefix_1567,
2740
+ segmentPrefix: JSCompiler_object_inline_segmentPrefix_1538,
2753
2741
  boundaryPrefix: idPrefix,
2754
2742
  startInlineScript: "<script>",
2755
- preamble: JSCompiler_object_inline_preamble_1570,
2743
+ preamble: JSCompiler_object_inline_preamble_1541,
2756
2744
  externalRuntimeScript: null,
2757
2745
  bootstrapChunks: bootstrapChunks,
2758
2746
  importMapChunks: [],
@@ -2768,14 +2756,14 @@ function createRenderState(resumableState, generateStaticMarkup) {
2768
2756
  charsetChunks: [],
2769
2757
  viewportChunks: [],
2770
2758
  hoistableChunks: [],
2771
- preconnects: JSCompiler_object_inline_preconnects_1580,
2772
- fontPreloads: JSCompiler_object_inline_fontPreloads_1581,
2773
- highImagePreloads: JSCompiler_object_inline_highImagePreloads_1582,
2774
- styles: JSCompiler_object_inline_styles_1583,
2775
- bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1584,
2776
- scripts: JSCompiler_object_inline_scripts_1585,
2777
- bulkPreloads: JSCompiler_object_inline_bulkPreloads_1586,
2778
- preloads: JSCompiler_object_inline_preloads_1587,
2759
+ preconnects: JSCompiler_object_inline_preconnects_1551,
2760
+ fontPreloads: JSCompiler_object_inline_fontPreloads_1552,
2761
+ highImagePreloads: JSCompiler_object_inline_highImagePreloads_1553,
2762
+ styles: JSCompiler_object_inline_styles_1554,
2763
+ bootstrapScripts: JSCompiler_object_inline_bootstrapScripts_1555,
2764
+ scripts: JSCompiler_object_inline_scripts_1556,
2765
+ bulkPreloads: JSCompiler_object_inline_bulkPreloads_1557,
2766
+ preloads: JSCompiler_object_inline_preloads_1558,
2779
2767
  stylesToHoist: !1,
2780
2768
  generateStaticMarkup: generateStaticMarkup
2781
2769
  };
@@ -4086,30 +4074,23 @@ function renderElement(request, task, keyPath, type, props, ref) {
4086
4074
  return;
4087
4075
  case REACT_ACTIVITY_TYPE:
4088
4076
  type = task.blockedSegment;
4089
- if (null === type)
4090
- "hidden" !== props.mode &&
4077
+ null === type
4078
+ ? "hidden" !== props.mode &&
4091
4079
  ((type = task.keyPath),
4092
4080
  (task.keyPath = keyPath),
4093
4081
  renderNode(request, task, props.children, -1),
4094
- (task.keyPath = type));
4095
- else {
4096
- request.renderState.generateStaticMarkup ||
4097
- type.chunks.push("\x3c!--&--\x3e");
4098
- type.lastPushedText = !1;
4099
- "hidden" !== props.mode &&
4100
- ((newProps = task.keyPath),
4101
- (task.keyPath = keyPath),
4102
- renderNode(request, task, props.children, -1),
4103
- (task.keyPath = newProps));
4104
- if (!request.renderState.generateStaticMarkup) {
4105
- request = type.chunks;
4106
- if ((task = task.blockedPreamble))
4107
- (task = task.contribution),
4108
- 0 !== task && request.push("\x3c!--", "" + task, "--\x3e");
4109
- request.push("\x3c!--/&--\x3e");
4110
- }
4111
- type.lastPushedText = !1;
4112
- }
4082
+ (task.keyPath = type))
4083
+ : (request.renderState.generateStaticMarkup ||
4084
+ type.chunks.push("\x3c!--&--\x3e"),
4085
+ (type.lastPushedText = !1),
4086
+ "hidden" !== props.mode &&
4087
+ ((newProps = task.keyPath),
4088
+ (task.keyPath = keyPath),
4089
+ renderNode(request, task, props.children, -1),
4090
+ (task.keyPath = newProps)),
4091
+ request.renderState.generateStaticMarkup ||
4092
+ type.chunks.push("\x3c!--/&--\x3e"),
4093
+ (type.lastPushedText = !1));
4113
4094
  return;
4114
4095
  case REACT_SUSPENSE_LIST_TYPE:
4115
4096
  type = task.keyPath;
@@ -5399,26 +5380,24 @@ function flushSegment(request, destination, segment, hoistableState) {
5399
5380
  if (null === boundary)
5400
5381
  return flushSubtree(request, destination, segment, hoistableState);
5401
5382
  boundary.parentFlushed = !0;
5402
- if (4 === boundary.status) {
5403
- if (!request.renderState.generateStaticMarkup) {
5404
- var errorDigest = boundary.errorDigest;
5405
- destination.push("\x3c!--$!--\x3e");
5406
- destination.push("<template");
5407
- errorDigest &&
5408
- (destination.push(' data-dgst="'),
5409
- (errorDigest = escapeTextForBrowser(errorDigest)),
5410
- destination.push(errorDigest),
5411
- destination.push('"'));
5412
- destination.push("></template>");
5413
- }
5414
- flushSubtree(request, destination, segment, hoistableState);
5415
- request.renderState.generateStaticMarkup
5416
- ? (destination = !0)
5417
- : ((request = boundary.fallbackPreamble) &&
5418
- writePreambleContribution(destination, request),
5419
- (destination = destination.push("\x3c!--/$--\x3e")));
5420
- return destination;
5421
- }
5383
+ if (4 === boundary.status)
5384
+ return (
5385
+ request.renderState.generateStaticMarkup ||
5386
+ ((boundary = boundary.errorDigest),
5387
+ destination.push("\x3c!--$!--\x3e"),
5388
+ destination.push("<template"),
5389
+ boundary &&
5390
+ (destination.push(' data-dgst="'),
5391
+ (boundary = escapeTextForBrowser(boundary)),
5392
+ destination.push(boundary),
5393
+ destination.push('"')),
5394
+ destination.push("></template>")),
5395
+ flushSubtree(request, destination, segment, hoistableState),
5396
+ (request = request.renderState.generateStaticMarkup
5397
+ ? !0
5398
+ : destination.push("\x3c!--/$--\x3e")),
5399
+ request
5400
+ );
5422
5401
  if (1 !== boundary.status)
5423
5402
  return (
5424
5403
  0 === boundary.status &&
@@ -5461,12 +5440,10 @@ function flushSegment(request, destination, segment, hoistableState) {
5461
5440
  segment = boundary.completedSegments;
5462
5441
  if (1 !== segment.length) throw Error(formatProdErrorMessage(391));
5463
5442
  flushSegment(request, destination, segment[0], hoistableState);
5464
- request.renderState.generateStaticMarkup
5465
- ? (destination = !0)
5466
- : ((request = boundary.contentPreamble) &&
5467
- writePreambleContribution(destination, request),
5468
- (destination = destination.push("\x3c!--/$--\x3e")));
5469
- return destination;
5443
+ request = request.renderState.generateStaticMarkup
5444
+ ? !0
5445
+ : destination.push("\x3c!--/$--\x3e");
5446
+ return request;
5470
5447
  }
5471
5448
  function flushSegmentContainer(request, destination, segment, hoistableState) {
5472
5449
  writeStartSegment(
@@ -5909,4 +5886,4 @@ exports.renderToString = function (children, options) {
5909
5886
  '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'
5910
5887
  );
5911
5888
  };
5912
- exports.version = "19.2.0-canary-c44e4a25-20250409";
5889
+ exports.version = "19.2.0-canary-1d6c8168-20250411";
@@ -759,12 +759,7 @@
759
759
  };
760
760
  }
761
761
  function createPreambleState() {
762
- return {
763
- htmlChunks: null,
764
- headChunks: null,
765
- bodyChunks: null,
766
- contribution: NoContribution
767
- };
762
+ return { htmlChunks: null, headChunks: null, bodyChunks: null };
768
763
  }
769
764
  function createFormatContext(insertionMode, selectedValue, tagScope) {
770
765
  return {
@@ -2695,6 +2690,7 @@
2695
2690
  var preamble = preambleState || renderState.preamble;
2696
2691
  if (preamble.headChunks)
2697
2692
  throw Error("The `<head>` tag may only be rendered once.");
2693
+ null !== preambleState && target$jscomp$0.push("\x3c!--head--\x3e");
2698
2694
  preamble.headChunks = [];
2699
2695
  var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2700
2696
  preamble.headChunks,
@@ -2713,6 +2709,7 @@
2713
2709
  var preamble$jscomp$0 = preambleState || renderState.preamble;
2714
2710
  if (preamble$jscomp$0.bodyChunks)
2715
2711
  throw Error("The `<body>` tag may only be rendered once.");
2712
+ null !== preambleState && target$jscomp$0.push("\x3c!--body--\x3e");
2716
2713
  preamble$jscomp$0.bodyChunks = [];
2717
2714
  var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2718
2715
  preamble$jscomp$0.bodyChunks,
@@ -2731,6 +2728,7 @@
2731
2728
  var preamble$jscomp$1 = preambleState || renderState.preamble;
2732
2729
  if (preamble$jscomp$1.htmlChunks)
2733
2730
  throw Error("The `<html>` tag may only be rendered once.");
2731
+ null !== preambleState && target$jscomp$0.push("\x3c!--html--\x3e");
2734
2732
  preamble$jscomp$1.htmlChunks = [doctypeChunk];
2735
2733
  var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2736
2734
  preamble$jscomp$1.htmlChunks,
@@ -2814,16 +2812,13 @@
2814
2812
  renderState = renderState.preamble;
2815
2813
  null === renderState.htmlChunks &&
2816
2814
  preambleState.htmlChunks &&
2817
- ((renderState.htmlChunks = preambleState.htmlChunks),
2818
- (preambleState.contribution |= 1));
2815
+ (renderState.htmlChunks = preambleState.htmlChunks);
2819
2816
  null === renderState.headChunks &&
2820
2817
  preambleState.headChunks &&
2821
- ((renderState.headChunks = preambleState.headChunks),
2822
- (preambleState.contribution |= 4));
2818
+ (renderState.headChunks = preambleState.headChunks);
2823
2819
  null === renderState.bodyChunks &&
2824
2820
  preambleState.bodyChunks &&
2825
- ((renderState.bodyChunks = preambleState.bodyChunks),
2826
- (preambleState.contribution |= 2));
2821
+ (renderState.bodyChunks = preambleState.bodyChunks);
2827
2822
  }
2828
2823
  function writeBootstrap(destination, renderState) {
2829
2824
  renderState = renderState.bootstrapChunks;
@@ -2844,13 +2839,6 @@
2844
2839
  destination.push(renderState);
2845
2840
  return destination.push(startPendingSuspenseBoundary2);
2846
2841
  }
2847
- function writePreambleContribution(destination, preambleState) {
2848
- preambleState = preambleState.contribution;
2849
- preambleState !== NoContribution &&
2850
- (destination.push(boundaryPreambleContributionChunkStart),
2851
- destination.push("" + preambleState),
2852
- destination.push(boundaryPreambleContributionChunkEnd));
2853
- }
2854
2842
  function writeStartSegment(destination, renderState, formatContext, id) {
2855
2843
  switch (formatContext.insertionMode) {
2856
2844
  case ROOT_HTML_MODE:
@@ -5332,20 +5320,8 @@
5332
5320
  renderNode(request, task, props.children, -1);
5333
5321
  task.keyPath = _prevKeyPath3;
5334
5322
  }
5335
- if (!request.renderState.generateStaticMarkup) {
5336
- var target$jscomp$0 = segment$jscomp$0.chunks,
5337
- preambleState = task.blockedPreamble;
5338
- if (preambleState) {
5339
- var contribution = preambleState.contribution;
5340
- contribution !== NoContribution &&
5341
- target$jscomp$0.push(
5342
- boundaryPreambleContributionChunkStart,
5343
- "" + contribution,
5344
- boundaryPreambleContributionChunkEnd
5345
- );
5346
- }
5347
- target$jscomp$0.push("\x3c!--/&--\x3e");
5348
- }
5323
+ request.renderState.generateStaticMarkup ||
5324
+ segment$jscomp$0.chunks.push("\x3c!--/&--\x3e");
5349
5325
  segment$jscomp$0.lastPushedText = !1;
5350
5326
  }
5351
5327
  return;
@@ -6995,8 +6971,8 @@
6995
6971
  if (!request.renderState.generateStaticMarkup) {
6996
6972
  var errorDigest = boundary.errorDigest,
6997
6973
  errorMessage = boundary.errorMessage,
6998
- errorStack = boundary.errorStack,
6999
- errorComponentStack = boundary.errorComponentStack;
6974
+ errorStack = boundary.errorStack;
6975
+ boundary = boundary.errorComponentStack;
7000
6976
  destination.push(startClientRenderedSuspenseBoundary);
7001
6977
  destination.push(clientRenderedSuspenseBoundaryError1);
7002
6978
  errorDigest &&
@@ -7020,22 +6996,20 @@
7020
6996
  destination.push(
7021
6997
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
7022
6998
  ));
7023
- errorComponentStack &&
6999
+ boundary &&
7024
7000
  (destination.push(clientRenderedSuspenseBoundaryError1D),
7025
- (errorComponentStack = escapeTextForBrowser(errorComponentStack)),
7026
- destination.push(errorComponentStack),
7001
+ (errorStack = escapeTextForBrowser(boundary)),
7002
+ destination.push(errorStack),
7027
7003
  destination.push(
7028
7004
  clientRenderedSuspenseBoundaryErrorAttrInterstitial
7029
7005
  ));
7030
7006
  destination.push(clientRenderedSuspenseBoundaryError2);
7031
7007
  }
7032
7008
  flushSubtree(request, destination, segment, hoistableState);
7033
- request.renderState.generateStaticMarkup
7034
- ? (destination = !0)
7035
- : ((request = boundary.fallbackPreamble) &&
7036
- writePreambleContribution(destination, request),
7037
- (destination = destination.push(endSuspenseBoundary)));
7038
- return destination;
7009
+ request = request.renderState.generateStaticMarkup
7010
+ ? !0
7011
+ : destination.push(endSuspenseBoundary);
7012
+ return request;
7039
7013
  }
7040
7014
  if (boundary.status !== COMPLETED)
7041
7015
  return (
@@ -7049,9 +7023,12 @@
7049
7023
  boundary.rootSegmentID
7050
7024
  ),
7051
7025
  hoistableState &&
7052
- ((boundary = boundary.fallbackState),
7053
- boundary.styles.forEach(hoistStyleQueueDependency, hoistableState),
7054
- boundary.stylesheets.forEach(
7026
+ ((errorStack = boundary.fallbackState),
7027
+ errorStack.styles.forEach(
7028
+ hoistStyleQueueDependency,
7029
+ hoistableState
7030
+ ),
7031
+ errorStack.stylesheets.forEach(
7055
7032
  hoistStylesheetDependency,
7056
7033
  hoistableState
7057
7034
  )),
@@ -7082,12 +7059,10 @@
7082
7059
  "A previously unvisited boundary must have exactly one root segment. This is a bug in React."
7083
7060
  );
7084
7061
  flushSegment(request, destination, segment[0], hoistableState);
7085
- request.renderState.generateStaticMarkup
7086
- ? (destination = !0)
7087
- : ((request = boundary.contentPreamble) &&
7088
- writePreambleContribution(destination, request),
7089
- (destination = destination.push(endSuspenseBoundary)));
7090
- return destination;
7062
+ request = request.renderState.generateStaticMarkup
7063
+ ? !0
7064
+ : destination.push(endSuspenseBoundary);
7065
+ return request;
7091
7066
  }
7092
7067
  function flushSegmentContainer(
7093
7068
  request,
@@ -8672,8 +8647,7 @@
8672
8647
  Object.freeze(PRELOAD_NO_CREDS);
8673
8648
  var scriptRegex = /(<\/|<)(s)(cript)/gi;
8674
8649
  var didWarnForNewBooleanPropsWithEmptyValue = {};
8675
- var NoContribution = 0,
8676
- ROOT_HTML_MODE = 0,
8650
+ var ROOT_HTML_MODE = 0,
8677
8651
  HTML_HTML_MODE = 1,
8678
8652
  HTML_MODE = 2,
8679
8653
  HTML_HEAD_MODE = 3,
@@ -8728,8 +8702,6 @@
8728
8702
  clientRenderedSuspenseBoundaryError1C = ' data-stck="',
8729
8703
  clientRenderedSuspenseBoundaryError1D = ' data-cstck="',
8730
8704
  clientRenderedSuspenseBoundaryError2 = "></template>",
8731
- boundaryPreambleContributionChunkStart = "\x3c!--",
8732
- boundaryPreambleContributionChunkEnd = "--\x3e",
8733
8705
  startSegmentHTML = '<div hidden id="',
8734
8706
  startSegmentHTML2 = '">',
8735
8707
  endSegmentHTML = "</div>",
@@ -9059,5 +9031,5 @@
9059
9031
  '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'
9060
9032
  );
9061
9033
  };
9062
- exports.version = "19.2.0-canary-c44e4a25-20250409";
9034
+ exports.version = "19.2.0-canary-1d6c8168-20250411";
9063
9035
  })();