react-markup 0.0.0-experimental-0a82580b-20250203 → 0.0.0-experimental-d85cf3e5-20250205

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -974,7 +974,12 @@
974
974
  };
975
975
  }
976
976
  function createPreambleState() {
977
- return { htmlChunks: null, headChunks: null, bodyChunks: null };
977
+ return {
978
+ htmlChunks: null,
979
+ headChunks: null,
980
+ bodyChunks: null,
981
+ contribution: NoContribution
982
+ };
978
983
  }
979
984
  function createFormatContext(insertionMode, selectedValue, tagScope) {
980
985
  return {
@@ -1650,6 +1655,29 @@
1650
1655
  target.push(endChunkForTag("script"));
1651
1656
  return null;
1652
1657
  }
1658
+ function pushStartSingletonElement(target, props, tag) {
1659
+ target.push(startChunkForTag(tag));
1660
+ var innerHTML = (tag = null),
1661
+ propKey;
1662
+ for (propKey in props)
1663
+ if (hasOwnProperty.call(props, propKey)) {
1664
+ var propValue = props[propKey];
1665
+ if (null != propValue)
1666
+ switch (propKey) {
1667
+ case "children":
1668
+ tag = propValue;
1669
+ break;
1670
+ case "dangerouslySetInnerHTML":
1671
+ innerHTML = propValue;
1672
+ break;
1673
+ default:
1674
+ pushAttribute(target, propKey, propValue);
1675
+ }
1676
+ }
1677
+ target.push(endOfStartTag);
1678
+ pushInnerHTML(target, innerHTML, tag);
1679
+ return tag;
1680
+ }
1653
1681
  function pushStartGenericElement(target, props, tag) {
1654
1682
  target.push(startChunkForTag(tag));
1655
1683
  var innerHTML = (tag = null),
@@ -2850,7 +2878,7 @@
2850
2878
  if (preamble.headChunks)
2851
2879
  throw Error("The `<head>` tag may only be rendered once.");
2852
2880
  preamble.headChunks = [];
2853
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
2881
+ var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
2854
2882
  preamble.headChunks,
2855
2883
  props,
2856
2884
  "head"
@@ -2868,7 +2896,7 @@
2868
2896
  if (preamble$jscomp$0.bodyChunks)
2869
2897
  throw Error("The `<body>` tag may only be rendered once.");
2870
2898
  preamble$jscomp$0.bodyChunks = [];
2871
- var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
2899
+ var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
2872
2900
  preamble$jscomp$0.bodyChunks,
2873
2901
  props,
2874
2902
  "body"
@@ -2886,7 +2914,7 @@
2886
2914
  if (preamble$jscomp$1.htmlChunks)
2887
2915
  throw Error("The `<html>` tag may only be rendered once.");
2888
2916
  preamble$jscomp$1.htmlChunks = [doctypeChunk];
2889
- var JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
2917
+ var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
2890
2918
  preamble$jscomp$1.htmlChunks,
2891
2919
  props,
2892
2920
  "html"
@@ -2967,11 +2995,17 @@
2967
2995
  function hoistPreambleState(renderState, preambleState) {
2968
2996
  renderState = renderState.preamble;
2969
2997
  null === renderState.htmlChunks &&
2970
- (renderState.htmlChunks = preambleState.htmlChunks);
2998
+ preambleState.htmlChunks &&
2999
+ ((renderState.htmlChunks = preambleState.htmlChunks),
3000
+ (preambleState.contribution |= 1));
2971
3001
  null === renderState.headChunks &&
2972
- (renderState.headChunks = preambleState.headChunks);
3002
+ preambleState.headChunks &&
3003
+ ((renderState.headChunks = preambleState.headChunks),
3004
+ (preambleState.contribution |= 4));
2973
3005
  null === renderState.bodyChunks &&
2974
- (renderState.bodyChunks = preambleState.bodyChunks);
3006
+ preambleState.bodyChunks &&
3007
+ ((renderState.bodyChunks = preambleState.bodyChunks),
3008
+ (preambleState.contribution |= 2));
2975
3009
  }
2976
3010
  function writeBootstrap(destination, renderState) {
2977
3011
  renderState = renderState.bootstrapChunks;
@@ -8584,7 +8618,8 @@
8584
8618
  Object.freeze(PRELOAD_NO_CREDS);
8585
8619
  var scriptRegex = /(<\/|<)(s)(cript)/gi;
8586
8620
  var didWarnForNewBooleanPropsWithEmptyValue = {};
8587
- var styleNameCache = new Map(),
8621
+ var NoContribution = 0,
8622
+ styleNameCache = new Map(),
8588
8623
  styleAttributeStart = ' style="',
8589
8624
  styleAssign = ":",
8590
8625
  styleSeparator = ";",
@@ -8882,5 +8917,5 @@
8882
8917
  });
8883
8918
  });
8884
8919
  };
8885
- exports.version = "19.1.0-experimental-0a82580b-20250203";
8920
+ exports.version = "19.1.0-experimental-d85cf3e5-20250205";
8886
8921
  })();
@@ -502,7 +502,12 @@ function createResumableState(
502
502
  };
503
503
  }
504
504
  function createPreambleState() {
505
- return { htmlChunks: null, headChunks: null, bodyChunks: null };
505
+ return {
506
+ htmlChunks: null,
507
+ headChunks: null,
508
+ bodyChunks: null,
509
+ contribution: 0
510
+ };
506
511
  }
507
512
  function createFormatContext(insertionMode, selectedValue, tagScope) {
508
513
  return {
@@ -974,6 +979,29 @@ function pushScriptImpl(target, props) {
974
979
  target.push(endChunkForTag("script"));
975
980
  return null;
976
981
  }
982
+ function pushStartSingletonElement(target, props, tag) {
983
+ target.push(startChunkForTag(tag));
984
+ var innerHTML = (tag = null),
985
+ propKey;
986
+ for (propKey in props)
987
+ if (hasOwnProperty.call(props, propKey)) {
988
+ var propValue = props[propKey];
989
+ if (null != propValue)
990
+ switch (propKey) {
991
+ case "children":
992
+ tag = propValue;
993
+ break;
994
+ case "dangerouslySetInnerHTML":
995
+ innerHTML = propValue;
996
+ break;
997
+ default:
998
+ pushAttribute(target, propKey, propValue);
999
+ }
1000
+ }
1001
+ target.push(">");
1002
+ pushInnerHTML(target, innerHTML, tag);
1003
+ return tag;
1004
+ }
977
1005
  function pushStartGenericElement(target, props, tag) {
978
1006
  target.push(startChunkForTag(tag));
979
1007
  var innerHTML = (tag = null),
@@ -1924,7 +1952,7 @@ function pushStartInstance$1(
1924
1952
  if (preamble.headChunks)
1925
1953
  throw Error("The `<head>` tag may only be rendered once.");
1926
1954
  preamble.headChunks = [];
1927
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
1955
+ var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
1928
1956
  preamble.headChunks,
1929
1957
  props,
1930
1958
  "head"
@@ -1942,7 +1970,7 @@ function pushStartInstance$1(
1942
1970
  if (preamble$jscomp$0.bodyChunks)
1943
1971
  throw Error("The `<body>` tag may only be rendered once.");
1944
1972
  preamble$jscomp$0.bodyChunks = [];
1945
- var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
1973
+ var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
1946
1974
  preamble$jscomp$0.bodyChunks,
1947
1975
  props,
1948
1976
  "body"
@@ -1960,7 +1988,7 @@ function pushStartInstance$1(
1960
1988
  if (preamble$jscomp$1.htmlChunks)
1961
1989
  throw Error("The `<html>` tag may only be rendered once.");
1962
1990
  preamble$jscomp$1.htmlChunks = ["<!DOCTYPE html>"];
1963
- var JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
1991
+ var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
1964
1992
  preamble$jscomp$1.htmlChunks,
1965
1993
  props,
1966
1994
  "html"
@@ -2035,11 +2063,17 @@ function endChunkForTag(tag) {
2035
2063
  function hoistPreambleState(renderState, preambleState) {
2036
2064
  renderState = renderState.preamble;
2037
2065
  null === renderState.htmlChunks &&
2038
- (renderState.htmlChunks = preambleState.htmlChunks);
2066
+ preambleState.htmlChunks &&
2067
+ ((renderState.htmlChunks = preambleState.htmlChunks),
2068
+ (preambleState.contribution |= 1));
2039
2069
  null === renderState.headChunks &&
2040
- (renderState.headChunks = preambleState.headChunks);
2070
+ preambleState.headChunks &&
2071
+ ((renderState.headChunks = preambleState.headChunks),
2072
+ (preambleState.contribution |= 4));
2041
2073
  null === renderState.bodyChunks &&
2042
- (renderState.bodyChunks = preambleState.bodyChunks);
2074
+ preambleState.bodyChunks &&
2075
+ ((renderState.bodyChunks = preambleState.bodyChunks),
2076
+ (preambleState.contribution |= 2));
2043
2077
  }
2044
2078
  function writeBootstrap(destination, renderState) {
2045
2079
  renderState = renderState.bootstrapChunks;
@@ -5953,4 +5987,4 @@ exports.experimental_renderToHTML = function (children, options) {
5953
5987
  });
5954
5988
  });
5955
5989
  };
5956
- exports.version = "19.1.0-experimental-0a82580b-20250203";
5990
+ exports.version = "19.1.0-experimental-d85cf3e5-20250205";
@@ -5550,7 +5550,12 @@
5550
5550
  };
5551
5551
  }
5552
5552
  function createPreambleState() {
5553
- return { htmlChunks: null, headChunks: null, bodyChunks: null };
5553
+ return {
5554
+ htmlChunks: null,
5555
+ headChunks: null,
5556
+ bodyChunks: null,
5557
+ contribution: NoContribution
5558
+ };
5554
5559
  }
5555
5560
  function createFormatContext(insertionMode, selectedValue, tagScope) {
5556
5561
  return {
@@ -6226,6 +6231,29 @@
6226
6231
  target.push(endChunkForTag("script"));
6227
6232
  return null;
6228
6233
  }
6234
+ function pushStartSingletonElement(target, props, tag) {
6235
+ target.push(startChunkForTag(tag));
6236
+ var innerHTML = (tag = null),
6237
+ propKey;
6238
+ for (propKey in props)
6239
+ if (hasOwnProperty.call(props, propKey)) {
6240
+ var propValue = props[propKey];
6241
+ if (null != propValue)
6242
+ switch (propKey) {
6243
+ case "children":
6244
+ tag = propValue;
6245
+ break;
6246
+ case "dangerouslySetInnerHTML":
6247
+ innerHTML = propValue;
6248
+ break;
6249
+ default:
6250
+ pushAttribute(target, propKey, propValue);
6251
+ }
6252
+ }
6253
+ target.push(endOfStartTag);
6254
+ pushInnerHTML(target, innerHTML, tag);
6255
+ return tag;
6256
+ }
6229
6257
  function pushStartGenericElement(target, props, tag) {
6230
6258
  target.push(startChunkForTag(tag));
6231
6259
  var innerHTML = (tag = null),
@@ -7426,7 +7454,7 @@
7426
7454
  if (preamble.headChunks)
7427
7455
  throw Error("The `<head>` tag may only be rendered once.");
7428
7456
  preamble.headChunks = [];
7429
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
7457
+ var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
7430
7458
  preamble.headChunks,
7431
7459
  props,
7432
7460
  "head"
@@ -7444,7 +7472,7 @@
7444
7472
  if (preamble$jscomp$0.bodyChunks)
7445
7473
  throw Error("The `<body>` tag may only be rendered once.");
7446
7474
  preamble$jscomp$0.bodyChunks = [];
7447
- var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
7475
+ var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
7448
7476
  preamble$jscomp$0.bodyChunks,
7449
7477
  props,
7450
7478
  "body"
@@ -7462,7 +7490,7 @@
7462
7490
  if (preamble$jscomp$1.htmlChunks)
7463
7491
  throw Error("The `<html>` tag may only be rendered once.");
7464
7492
  preamble$jscomp$1.htmlChunks = [doctypeChunk];
7465
- var JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
7493
+ var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
7466
7494
  preamble$jscomp$1.htmlChunks,
7467
7495
  props,
7468
7496
  "html"
@@ -7543,11 +7571,17 @@
7543
7571
  function hoistPreambleState(renderState, preambleState) {
7544
7572
  renderState = renderState.preamble;
7545
7573
  null === renderState.htmlChunks &&
7546
- (renderState.htmlChunks = preambleState.htmlChunks);
7574
+ preambleState.htmlChunks &&
7575
+ ((renderState.htmlChunks = preambleState.htmlChunks),
7576
+ (preambleState.contribution |= 1));
7547
7577
  null === renderState.headChunks &&
7548
- (renderState.headChunks = preambleState.headChunks);
7578
+ preambleState.headChunks &&
7579
+ ((renderState.headChunks = preambleState.headChunks),
7580
+ (preambleState.contribution |= 4));
7549
7581
  null === renderState.bodyChunks &&
7550
- (renderState.bodyChunks = preambleState.bodyChunks);
7582
+ preambleState.bodyChunks &&
7583
+ ((renderState.bodyChunks = preambleState.bodyChunks),
7584
+ (preambleState.contribution |= 2));
7551
7585
  }
7552
7586
  function writeBootstrap(destination, renderState) {
7553
7587
  renderState = renderState.bootstrapChunks;
@@ -13170,7 +13204,8 @@
13170
13204
  Object.freeze(PRELOAD_NO_CREDS);
13171
13205
  var scriptRegex = /(<\/|<)(s)(cript)/gi;
13172
13206
  var didWarnForNewBooleanPropsWithEmptyValue = {};
13173
- var styleNameCache = new Map(),
13207
+ var NoContribution = 0,
13208
+ styleNameCache = new Map(),
13174
13209
  styleAttributeStart = ' style="',
13175
13210
  styleAssign = ":",
13176
13211
  styleSeparator = ";",
@@ -13607,5 +13642,5 @@
13607
13642
  });
13608
13643
  });
13609
13644
  };
13610
- exports.version = "19.1.0-experimental-0a82580b-20250203";
13645
+ exports.version = "19.1.0-experimental-d85cf3e5-20250205";
13611
13646
  })();
@@ -3402,7 +3402,12 @@ function createResumableState(
3402
3402
  };
3403
3403
  }
3404
3404
  function createPreambleState() {
3405
- return { htmlChunks: null, headChunks: null, bodyChunks: null };
3405
+ return {
3406
+ htmlChunks: null,
3407
+ headChunks: null,
3408
+ bodyChunks: null,
3409
+ contribution: 0
3410
+ };
3406
3411
  }
3407
3412
  function createFormatContext(insertionMode, selectedValue, tagScope) {
3408
3413
  return {
@@ -3874,6 +3879,29 @@ function pushScriptImpl(target, props) {
3874
3879
  target.push(endChunkForTag("script"));
3875
3880
  return null;
3876
3881
  }
3882
+ function pushStartSingletonElement(target, props, tag) {
3883
+ target.push(startChunkForTag(tag));
3884
+ var innerHTML = (tag = null),
3885
+ propKey;
3886
+ for (propKey in props)
3887
+ if (hasOwnProperty.call(props, propKey)) {
3888
+ var propValue = props[propKey];
3889
+ if (null != propValue)
3890
+ switch (propKey) {
3891
+ case "children":
3892
+ tag = propValue;
3893
+ break;
3894
+ case "dangerouslySetInnerHTML":
3895
+ innerHTML = propValue;
3896
+ break;
3897
+ default:
3898
+ pushAttribute(target, propKey, propValue);
3899
+ }
3900
+ }
3901
+ target.push(">");
3902
+ pushInnerHTML(target, innerHTML, tag);
3903
+ return tag;
3904
+ }
3877
3905
  function pushStartGenericElement(target, props, tag) {
3878
3906
  target.push(startChunkForTag(tag));
3879
3907
  var innerHTML = (tag = null),
@@ -4824,7 +4852,7 @@ function pushStartInstance$1(
4824
4852
  if (preamble.headChunks)
4825
4853
  throw Error("The `<head>` tag may only be rendered once.");
4826
4854
  preamble.headChunks = [];
4827
- var JSCompiler_inline_result$jscomp$9 = pushStartGenericElement(
4855
+ var JSCompiler_inline_result$jscomp$9 = pushStartSingletonElement(
4828
4856
  preamble.headChunks,
4829
4857
  props,
4830
4858
  "head"
@@ -4842,7 +4870,7 @@ function pushStartInstance$1(
4842
4870
  if (preamble$jscomp$0.bodyChunks)
4843
4871
  throw Error("The `<body>` tag may only be rendered once.");
4844
4872
  preamble$jscomp$0.bodyChunks = [];
4845
- var JSCompiler_inline_result$jscomp$10 = pushStartGenericElement(
4873
+ var JSCompiler_inline_result$jscomp$10 = pushStartSingletonElement(
4846
4874
  preamble$jscomp$0.bodyChunks,
4847
4875
  props,
4848
4876
  "body"
@@ -4860,7 +4888,7 @@ function pushStartInstance$1(
4860
4888
  if (preamble$jscomp$1.htmlChunks)
4861
4889
  throw Error("The `<html>` tag may only be rendered once.");
4862
4890
  preamble$jscomp$1.htmlChunks = ["<!DOCTYPE html>"];
4863
- var JSCompiler_inline_result$jscomp$11 = pushStartGenericElement(
4891
+ var JSCompiler_inline_result$jscomp$11 = pushStartSingletonElement(
4864
4892
  preamble$jscomp$1.htmlChunks,
4865
4893
  props,
4866
4894
  "html"
@@ -4935,11 +4963,17 @@ function endChunkForTag(tag) {
4935
4963
  function hoistPreambleState(renderState, preambleState) {
4936
4964
  renderState = renderState.preamble;
4937
4965
  null === renderState.htmlChunks &&
4938
- (renderState.htmlChunks = preambleState.htmlChunks);
4966
+ preambleState.htmlChunks &&
4967
+ ((renderState.htmlChunks = preambleState.htmlChunks),
4968
+ (preambleState.contribution |= 1));
4939
4969
  null === renderState.headChunks &&
4940
- (renderState.headChunks = preambleState.headChunks);
4970
+ preambleState.headChunks &&
4971
+ ((renderState.headChunks = preambleState.headChunks),
4972
+ (preambleState.contribution |= 4));
4941
4973
  null === renderState.bodyChunks &&
4942
- (renderState.bodyChunks = preambleState.bodyChunks);
4974
+ preambleState.bodyChunks &&
4975
+ ((renderState.bodyChunks = preambleState.bodyChunks),
4976
+ (preambleState.contribution |= 2));
4943
4977
  }
4944
4978
  function writeBootstrap(destination, renderState) {
4945
4979
  renderState = renderState.bootstrapChunks;
@@ -8874,4 +8908,4 @@ exports.experimental_renderToHTML = function (children, options) {
8874
8908
  });
8875
8909
  });
8876
8910
  };
8877
- exports.version = "19.1.0-experimental-0a82580b-20250203";
8911
+ exports.version = "19.1.0-experimental-d85cf3e5-20250205";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-0a82580b-20250203",
3
+ "version": "0.0.0-experimental-d85cf3e5-20250205",
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-0a82580b-20250203"
20
+ "react": "0.0.0-experimental-d85cf3e5-20250205"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",