react-markup 0.0.0-experimental-33661467-20250407 → 0.0.0-experimental-3fbfb9ba-20250409

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.
@@ -262,6 +262,22 @@
262
262
  4294967295;
263
263
  return (h1 ^ (h1 >>> 16)) >>> 0;
264
264
  }
265
+ function readAsDataURL(blob) {
266
+ return blob.arrayBuffer().then(function (arrayBuffer) {
267
+ arrayBuffer =
268
+ "function" === typeof Buffer && "function" === typeof Buffer.from
269
+ ? Buffer.from(arrayBuffer).toString("base64")
270
+ : btoa(
271
+ String.fromCharCode.apply(String, new Uint8Array(arrayBuffer))
272
+ );
273
+ return (
274
+ "data:" +
275
+ (blob.type || "application/octet-stream") +
276
+ ";base64," +
277
+ arrayBuffer
278
+ );
279
+ });
280
+ }
265
281
  function typeName(value) {
266
282
  return (
267
283
  ("function" === typeof Symbol &&
@@ -1247,6 +1263,33 @@
1247
1263
  null != formTarget && pushAttribute(target, "formTarget", formTarget);
1248
1264
  return formData;
1249
1265
  }
1266
+ function pushSrcObjectAttribute(target, blob) {
1267
+ null === blobCache && (blobCache = new WeakMap());
1268
+ var suspenseCache = blobCache,
1269
+ thenable = suspenseCache.get(blob);
1270
+ void 0 === thenable &&
1271
+ ((thenable = readAsDataURL(blob)),
1272
+ thenable.then(
1273
+ function (result) {
1274
+ thenable.status = "fulfilled";
1275
+ thenable.value = result;
1276
+ },
1277
+ function (error) {
1278
+ thenable.status = "rejected";
1279
+ thenable.reason = error;
1280
+ }
1281
+ ),
1282
+ suspenseCache.set(blob, thenable));
1283
+ if ("rejected" === thenable.status) throw thenable.reason;
1284
+ if ("fulfilled" !== thenable.status) throw thenable;
1285
+ target.push(
1286
+ attributeSeparator,
1287
+ "src",
1288
+ attributeAssign,
1289
+ escapeTextForBrowser(thenable.value),
1290
+ attributeEnd
1291
+ );
1292
+ }
1250
1293
  function pushAttribute(target, name, value) {
1251
1294
  switch (name) {
1252
1295
  case "className":
@@ -1266,6 +1309,15 @@
1266
1309
  pushStyleAttribute(target, value);
1267
1310
  break;
1268
1311
  case "src":
1312
+ if (
1313
+ "object" === typeof value &&
1314
+ null !== value &&
1315
+ "function" === typeof Blob &&
1316
+ value instanceof Blob
1317
+ ) {
1318
+ pushSrcObjectAttribute(target, value);
1319
+ break;
1320
+ }
1269
1321
  case "href":
1270
1322
  if ("" === value) {
1271
1323
  "src" === name
@@ -5391,18 +5443,30 @@
5391
5443
  task.keyPath = prevKeyPath$jscomp$1;
5392
5444
  return;
5393
5445
  case REACT_ACTIVITY_TYPE:
5394
- if ("hidden" !== props.mode) {
5395
- var prevKeyPath$jscomp$2 = task.keyPath;
5396
- task.keyPath = keyPath;
5397
- renderNodeDestructive(request, task, props.children, -1);
5398
- task.keyPath = prevKeyPath$jscomp$2;
5446
+ var segment$jscomp$0 = task.blockedSegment;
5447
+ if (null === segment$jscomp$0) {
5448
+ if ("hidden" !== props.mode) {
5449
+ var prevKeyPath$jscomp$2 = task.keyPath;
5450
+ task.keyPath = keyPath;
5451
+ renderNode(request, task, props.children, -1);
5452
+ task.keyPath = prevKeyPath$jscomp$2;
5453
+ }
5454
+ } else {
5455
+ segment$jscomp$0.lastPushedText = !1;
5456
+ if ("hidden" !== props.mode) {
5457
+ var _prevKeyPath3 = task.keyPath;
5458
+ task.keyPath = keyPath;
5459
+ renderNode(request, task, props.children, -1);
5460
+ task.keyPath = _prevKeyPath3;
5461
+ }
5462
+ segment$jscomp$0.lastPushedText = !1;
5399
5463
  }
5400
5464
  return;
5401
5465
  case REACT_SUSPENSE_LIST_TYPE:
5402
- var _prevKeyPath3 = task.keyPath;
5466
+ var _prevKeyPath4 = task.keyPath;
5403
5467
  task.keyPath = keyPath;
5404
5468
  renderNodeDestructive(request, task, props.children, -1);
5405
- task.keyPath = _prevKeyPath3;
5469
+ task.keyPath = _prevKeyPath4;
5406
5470
  return;
5407
5471
  case REACT_VIEW_TRANSITION_TYPE:
5408
5472
  var prevKeyPath$jscomp$3 = task.keyPath;
@@ -8644,6 +8708,7 @@
8644
8708
  actionJavaScriptURL = escapeTextForBrowser(
8645
8709
  "javascript:throw new Error('React form unexpectedly submitted.')"
8646
8710
  ),
8711
+ blobCache = null,
8647
8712
  endOfStartTag = ">",
8648
8713
  endOfStartTagSelfClosing = "/>",
8649
8714
  didWarnDefaultInputValue = !1,
@@ -8946,5 +9011,5 @@
8946
9011
  });
8947
9012
  });
8948
9013
  };
8949
- exports.version = "19.2.0-experimental-33661467-20250407";
9014
+ exports.version = "19.2.0-experimental-3fbfb9ba-20250409";
8950
9015
  })();
@@ -109,6 +109,20 @@ function murmurhash3_32_gc(key, seed) {
109
109
  4294967295;
110
110
  return (h1 ^ (h1 >>> 16)) >>> 0;
111
111
  }
112
+ function readAsDataURL(blob) {
113
+ return blob.arrayBuffer().then(function (arrayBuffer) {
114
+ arrayBuffer =
115
+ "function" === typeof Buffer && "function" === typeof Buffer.from
116
+ ? Buffer.from(arrayBuffer).toString("base64")
117
+ : btoa(String.fromCharCode.apply(String, new Uint8Array(arrayBuffer)));
118
+ return (
119
+ "data:" +
120
+ (blob.type || "application/octet-stream") +
121
+ ";base64," +
122
+ arrayBuffer
123
+ );
124
+ });
125
+ }
112
126
  var assign = Object.assign,
113
127
  hasOwnProperty = Object.prototype.hasOwnProperty,
114
128
  VALID_ATTRIBUTE_NAME_REGEX = RegExp(
@@ -676,6 +690,28 @@ function pushFormActionAttribute(
676
690
  null != formTarget && pushAttribute(target, "formTarget", formTarget);
677
691
  return formData;
678
692
  }
693
+ var blobCache = null;
694
+ function pushSrcObjectAttribute(target, blob) {
695
+ null === blobCache && (blobCache = new WeakMap());
696
+ var suspenseCache = blobCache,
697
+ thenable = suspenseCache.get(blob);
698
+ void 0 === thenable &&
699
+ ((thenable = readAsDataURL(blob)),
700
+ thenable.then(
701
+ function (result) {
702
+ thenable.status = "fulfilled";
703
+ thenable.value = result;
704
+ },
705
+ function (error) {
706
+ thenable.status = "rejected";
707
+ thenable.reason = error;
708
+ }
709
+ ),
710
+ suspenseCache.set(blob, thenable));
711
+ if ("rejected" === thenable.status) throw thenable.reason;
712
+ if ("fulfilled" !== thenable.status) throw thenable;
713
+ target.push(" ", "src", '="', escapeTextForBrowser(thenable.value), '"');
714
+ }
679
715
  function pushAttribute(target, name, value) {
680
716
  switch (name) {
681
717
  case "className":
@@ -695,6 +731,15 @@ function pushAttribute(target, name, value) {
695
731
  pushStyleAttribute(target, value);
696
732
  break;
697
733
  case "src":
734
+ if (
735
+ "object" === typeof value &&
736
+ null !== value &&
737
+ "function" === typeof Blob &&
738
+ value instanceof Blob
739
+ ) {
740
+ pushSrcObjectAttribute(target, value);
741
+ break;
742
+ }
698
743
  case "href":
699
744
  if ("" === value) break;
700
745
  case "action":
@@ -3891,11 +3936,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
3891
3936
  task.keyPath = type;
3892
3937
  return;
3893
3938
  case REACT_ACTIVITY_TYPE:
3894
- "hidden" !== props.mode &&
3895
- ((type = task.keyPath),
3896
- (task.keyPath = keyPath),
3897
- renderNodeDestructive(request, task, props.children, -1),
3898
- (task.keyPath = type));
3939
+ type = task.blockedSegment;
3940
+ null === type
3941
+ ? "hidden" !== props.mode &&
3942
+ ((type = task.keyPath),
3943
+ (task.keyPath = keyPath),
3944
+ renderNode(request, task, props.children, -1),
3945
+ (task.keyPath = type))
3946
+ : ((type.lastPushedText = !1),
3947
+ "hidden" !== props.mode &&
3948
+ ((newProps = task.keyPath),
3949
+ (task.keyPath = keyPath),
3950
+ renderNode(request, task, props.children, -1),
3951
+ (task.keyPath = newProps)),
3952
+ (type.lastPushedText = !1));
3899
3953
  return;
3900
3954
  case REACT_SUSPENSE_LIST_TYPE:
3901
3955
  type = task.keyPath;
@@ -4579,9 +4633,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
4579
4633
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
4580
4634
  return;
4581
4635
  }
4582
- var boundaryNode$33 = trackedPostpones.workingMap.get(boundaryKeyPath);
4583
- void 0 === boundaryNode$33
4584
- ? ((boundaryNode$33 = [
4636
+ var boundaryNode$35 = trackedPostpones.workingMap.get(boundaryKeyPath);
4637
+ void 0 === boundaryNode$35
4638
+ ? ((boundaryNode$35 = [
4585
4639
  boundaryKeyPath[1],
4586
4640
  boundaryKeyPath[2],
4587
4641
  children,
@@ -4589,13 +4643,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
4589
4643
  fallbackReplayNode,
4590
4644
  boundary.rootSegmentID
4591
4645
  ]),
4592
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$33),
4646
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$35),
4593
4647
  addToReplayParent(
4594
- boundaryNode$33,
4648
+ boundaryNode$35,
4595
4649
  boundaryKeyPath[0],
4596
4650
  trackedPostpones
4597
4651
  ))
4598
- : ((boundaryKeyPath = boundaryNode$33),
4652
+ : ((boundaryKeyPath = boundaryNode$35),
4599
4653
  (boundaryKeyPath[4] = fallbackReplayNode),
4600
4654
  (boundaryKeyPath[5] = boundary.rootSegmentID));
4601
4655
  }
@@ -4749,15 +4803,15 @@ function renderNode(request, task, node, childIndex) {
4749
4803
  chunkLength = segment.chunks.length;
4750
4804
  try {
4751
4805
  return renderNodeDestructive(request, task, node, childIndex);
4752
- } catch (thrownValue$45) {
4806
+ } catch (thrownValue$47) {
4753
4807
  if (
4754
4808
  (resetHooksState(),
4755
4809
  (segment.children.length = childrenLength),
4756
4810
  (segment.chunks.length = chunkLength),
4757
4811
  (childIndex =
4758
- thrownValue$45 === SuspenseException
4812
+ thrownValue$47 === SuspenseException
4759
4813
  ? getSuspendedThenable()
4760
- : thrownValue$45),
4814
+ : thrownValue$47),
4761
4815
  "object" === typeof childIndex && null !== childIndex)
4762
4816
  ) {
4763
4817
  if ("function" === typeof childIndex.then) {
@@ -4958,16 +5012,16 @@ function abortTask(task, request, error) {
4958
5012
  }
4959
5013
  } else {
4960
5014
  boundary.pendingTasks--;
4961
- var trackedPostpones$48 = request.trackedPostpones;
5015
+ var trackedPostpones$50 = request.trackedPostpones;
4962
5016
  if (4 !== boundary.status) {
4963
- if (null !== trackedPostpones$48 && null !== segment)
5017
+ if (null !== trackedPostpones$50 && null !== segment)
4964
5018
  return (
4965
5019
  "object" === typeof error &&
4966
5020
  null !== error &&
4967
5021
  error.$$typeof === REACT_POSTPONE_TYPE
4968
5022
  ? logPostpone(request, error.message, errorInfo)
4969
5023
  : logRecoverableError(request, error, errorInfo),
4970
- trackPostpone(request, trackedPostpones$48, task, segment),
5024
+ trackPostpone(request, trackedPostpones$50, task, segment),
4971
5025
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
4972
5026
  return abortTask(fallbackTask, request, error);
4973
5027
  }),
@@ -5271,13 +5325,13 @@ function performWork(request$jscomp$1) {
5271
5325
  null !== request.trackedPostpones &&
5272
5326
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
5273
5327
  ) {
5274
- var trackedPostpones$52 = request.trackedPostpones;
5328
+ var trackedPostpones$54 = request.trackedPostpones;
5275
5329
  task.abortSet.delete(task);
5276
5330
  var postponeInfo = getThrownInfo(task.componentStack);
5277
5331
  logPostpone(request, x$jscomp$0.message, postponeInfo);
5278
5332
  trackPostpone(
5279
5333
  request,
5280
- trackedPostpones$52,
5334
+ trackedPostpones$54,
5281
5335
  task,
5282
5336
  segment$jscomp$0
5283
5337
  );
@@ -5822,11 +5876,11 @@ function flushCompletedQueues(request, destination) {
5822
5876
  completedBoundaries.splice(0, i);
5823
5877
  var partialBoundaries = request.partialBoundaries;
5824
5878
  for (i = 0; i < partialBoundaries.length; i++) {
5825
- var boundary$55 = partialBoundaries[i];
5879
+ var boundary$57 = partialBoundaries[i];
5826
5880
  a: {
5827
5881
  clientRenderedBoundaries = request;
5828
5882
  boundary = destination;
5829
- var completedSegments = boundary$55.completedSegments;
5883
+ var completedSegments = boundary$57.completedSegments;
5830
5884
  for (
5831
5885
  JSCompiler_inline_result = 0;
5832
5886
  JSCompiler_inline_result < completedSegments.length;
@@ -5836,7 +5890,7 @@ function flushCompletedQueues(request, destination) {
5836
5890
  !flushPartiallyCompletedSegment(
5837
5891
  clientRenderedBoundaries,
5838
5892
  boundary,
5839
- boundary$55,
5893
+ boundary$57,
5840
5894
  completedSegments[JSCompiler_inline_result]
5841
5895
  )
5842
5896
  ) {
@@ -5848,7 +5902,7 @@ function flushCompletedQueues(request, destination) {
5848
5902
  completedSegments.splice(0, JSCompiler_inline_result);
5849
5903
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
5850
5904
  boundary,
5851
- boundary$55.contentState,
5905
+ boundary$57.contentState,
5852
5906
  clientRenderedBoundaries.renderState
5853
5907
  );
5854
5908
  }
@@ -5920,8 +5974,8 @@ function abort(request, reason) {
5920
5974
  }
5921
5975
  null !== request.destination &&
5922
5976
  flushCompletedQueues(request, request.destination);
5923
- } catch (error$57) {
5924
- logRecoverableError(request, error$57, {}), fatalError(request, error$57);
5977
+ } catch (error$59) {
5978
+ logRecoverableError(request, error$59, {}), fatalError(request, error$59);
5925
5979
  }
5926
5980
  }
5927
5981
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -5995,4 +6049,4 @@ exports.experimental_renderToHTML = function (children, options) {
5995
6049
  });
5996
6050
  });
5997
6051
  };
5998
- exports.version = "19.2.0-experimental-33661467-20250407";
6052
+ exports.version = "19.2.0-experimental-3fbfb9ba-20250409";
@@ -120,6 +120,22 @@
120
120
  4294967295;
121
121
  return (h1 ^ (h1 >>> 16)) >>> 0;
122
122
  }
123
+ function readAsDataURL(blob) {
124
+ return blob.arrayBuffer().then(function (arrayBuffer) {
125
+ arrayBuffer =
126
+ "function" === typeof Buffer && "function" === typeof Buffer.from
127
+ ? Buffer.from(arrayBuffer).toString("base64")
128
+ : btoa(
129
+ String.fromCharCode.apply(String, new Uint8Array(arrayBuffer))
130
+ );
131
+ return (
132
+ "data:" +
133
+ (blob.type || "application/octet-stream") +
134
+ ";base64," +
135
+ arrayBuffer
136
+ );
137
+ });
138
+ }
123
139
  function prepareStackTrace(error, structuredStackTrace) {
124
140
  error = (error.name || "Error") + ": " + (error.message || "");
125
141
  for (var i = 0; i < structuredStackTrace.length; i++)
@@ -5876,6 +5892,33 @@
5876
5892
  null != formTarget && pushAttribute(target, "formTarget", formTarget);
5877
5893
  return formData;
5878
5894
  }
5895
+ function pushSrcObjectAttribute(target, blob) {
5896
+ null === blobCache && (blobCache = new WeakMap());
5897
+ var suspenseCache = blobCache,
5898
+ thenable = suspenseCache.get(blob);
5899
+ void 0 === thenable &&
5900
+ ((thenable = readAsDataURL(blob)),
5901
+ thenable.then(
5902
+ function (result) {
5903
+ thenable.status = "fulfilled";
5904
+ thenable.value = result;
5905
+ },
5906
+ function (error) {
5907
+ thenable.status = "rejected";
5908
+ thenable.reason = error;
5909
+ }
5910
+ ),
5911
+ suspenseCache.set(blob, thenable));
5912
+ if ("rejected" === thenable.status) throw thenable.reason;
5913
+ if ("fulfilled" !== thenable.status) throw thenable;
5914
+ target.push(
5915
+ attributeSeparator,
5916
+ "src",
5917
+ attributeAssign,
5918
+ escapeTextForBrowser(thenable.value),
5919
+ attributeEnd
5920
+ );
5921
+ }
5879
5922
  function pushAttribute(target, name, value) {
5880
5923
  switch (name) {
5881
5924
  case "className":
@@ -5895,6 +5938,15 @@
5895
5938
  pushStyleAttribute(target, value);
5896
5939
  break;
5897
5940
  case "src":
5941
+ if (
5942
+ "object" === typeof value &&
5943
+ null !== value &&
5944
+ "function" === typeof Blob &&
5945
+ value instanceof Blob
5946
+ ) {
5947
+ pushSrcObjectAttribute(target, value);
5948
+ break;
5949
+ }
5898
5950
  case "href":
5899
5951
  if ("" === value) {
5900
5952
  "src" === name
@@ -9697,18 +9749,30 @@
9697
9749
  task.keyPath = prevKeyPath$jscomp$1;
9698
9750
  return;
9699
9751
  case REACT_ACTIVITY_TYPE:
9700
- if ("hidden" !== props.mode) {
9701
- var prevKeyPath$jscomp$2 = task.keyPath;
9702
- task.keyPath = keyPath;
9703
- renderNodeDestructive(request, task, props.children, -1);
9704
- task.keyPath = prevKeyPath$jscomp$2;
9752
+ var segment$jscomp$0 = task.blockedSegment;
9753
+ if (null === segment$jscomp$0) {
9754
+ if ("hidden" !== props.mode) {
9755
+ var prevKeyPath$jscomp$2 = task.keyPath;
9756
+ task.keyPath = keyPath;
9757
+ renderNode(request, task, props.children, -1);
9758
+ task.keyPath = prevKeyPath$jscomp$2;
9759
+ }
9760
+ } else {
9761
+ segment$jscomp$0.lastPushedText = !1;
9762
+ if ("hidden" !== props.mode) {
9763
+ var _prevKeyPath3 = task.keyPath;
9764
+ task.keyPath = keyPath;
9765
+ renderNode(request, task, props.children, -1);
9766
+ task.keyPath = _prevKeyPath3;
9767
+ }
9768
+ segment$jscomp$0.lastPushedText = !1;
9705
9769
  }
9706
9770
  return;
9707
9771
  case REACT_SUSPENSE_LIST_TYPE:
9708
- var _prevKeyPath3 = task.keyPath;
9772
+ var _prevKeyPath4 = task.keyPath;
9709
9773
  task.keyPath = keyPath;
9710
9774
  renderNodeDestructive(request, task, props.children, -1);
9711
- task.keyPath = _prevKeyPath3;
9775
+ task.keyPath = _prevKeyPath4;
9712
9776
  return;
9713
9777
  case REACT_VIEW_TRANSITION_TYPE:
9714
9778
  var prevKeyPath$jscomp$3 = task.keyPath;
@@ -13296,6 +13360,7 @@
13296
13360
  actionJavaScriptURL = escapeTextForBrowser(
13297
13361
  "javascript:throw new Error('React form unexpectedly submitted.')"
13298
13362
  ),
13363
+ blobCache = null,
13299
13364
  endOfStartTag = ">",
13300
13365
  endOfStartTagSelfClosing = "/>",
13301
13366
  didWarnDefaultInputValue = !1,
@@ -13719,5 +13784,5 @@
13719
13784
  });
13720
13785
  });
13721
13786
  };
13722
- exports.version = "19.2.0-experimental-33661467-20250407";
13787
+ exports.version = "19.2.0-experimental-3fbfb9ba-20250409";
13723
13788
  })();
@@ -94,6 +94,20 @@ function murmurhash3_32_gc(key, seed) {
94
94
  4294967295;
95
95
  return (h1 ^ (h1 >>> 16)) >>> 0;
96
96
  }
97
+ function readAsDataURL(blob) {
98
+ return blob.arrayBuffer().then(function (arrayBuffer) {
99
+ arrayBuffer =
100
+ "function" === typeof Buffer && "function" === typeof Buffer.from
101
+ ? Buffer.from(arrayBuffer).toString("base64")
102
+ : btoa(String.fromCharCode.apply(String, new Uint8Array(arrayBuffer)));
103
+ return (
104
+ "data:" +
105
+ (blob.type || "application/octet-stream") +
106
+ ";base64," +
107
+ arrayBuffer
108
+ );
109
+ });
110
+ }
97
111
  function prepareStackTrace(error, structuredStackTrace) {
98
112
  error = (error.name || "Error") + ": " + (error.message || "");
99
113
  for (var i = 0; i < structuredStackTrace.length; i++)
@@ -3594,6 +3608,28 @@ function pushFormActionAttribute(
3594
3608
  null != formTarget && pushAttribute(target, "formTarget", formTarget);
3595
3609
  return formData;
3596
3610
  }
3611
+ var blobCache = null;
3612
+ function pushSrcObjectAttribute(target, blob) {
3613
+ null === blobCache && (blobCache = new WeakMap());
3614
+ var suspenseCache = blobCache,
3615
+ thenable = suspenseCache.get(blob);
3616
+ void 0 === thenable &&
3617
+ ((thenable = readAsDataURL(blob)),
3618
+ thenable.then(
3619
+ function (result) {
3620
+ thenable.status = "fulfilled";
3621
+ thenable.value = result;
3622
+ },
3623
+ function (error) {
3624
+ thenable.status = "rejected";
3625
+ thenable.reason = error;
3626
+ }
3627
+ ),
3628
+ suspenseCache.set(blob, thenable));
3629
+ if ("rejected" === thenable.status) throw thenable.reason;
3630
+ if ("fulfilled" !== thenable.status) throw thenable;
3631
+ target.push(" ", "src", '="', escapeTextForBrowser(thenable.value), '"');
3632
+ }
3597
3633
  function pushAttribute(target, name, value) {
3598
3634
  switch (name) {
3599
3635
  case "className":
@@ -3613,6 +3649,15 @@ function pushAttribute(target, name, value) {
3613
3649
  pushStyleAttribute(target, value);
3614
3650
  break;
3615
3651
  case "src":
3652
+ if (
3653
+ "object" === typeof value &&
3654
+ null !== value &&
3655
+ "function" === typeof Blob &&
3656
+ value instanceof Blob
3657
+ ) {
3658
+ pushSrcObjectAttribute(target, value);
3659
+ break;
3660
+ }
3616
3661
  case "href":
3617
3662
  if ("" === value) break;
3618
3663
  case "action":
@@ -6596,11 +6641,20 @@ function renderElement(request, task, keyPath, type, props, ref) {
6596
6641
  task.keyPath = type;
6597
6642
  return;
6598
6643
  case REACT_ACTIVITY_TYPE:
6599
- "hidden" !== props.mode &&
6600
- ((type = task.keyPath),
6601
- (task.keyPath = keyPath),
6602
- renderNodeDestructive(request, task, props.children, -1),
6603
- (task.keyPath = type));
6644
+ type = task.blockedSegment;
6645
+ null === type
6646
+ ? "hidden" !== props.mode &&
6647
+ ((type = task.keyPath),
6648
+ (task.keyPath = keyPath),
6649
+ renderNode(request, task, props.children, -1),
6650
+ (task.keyPath = type))
6651
+ : ((type.lastPushedText = !1),
6652
+ "hidden" !== props.mode &&
6653
+ ((newProps = task.keyPath),
6654
+ (task.keyPath = keyPath),
6655
+ renderNode(request, task, props.children, -1),
6656
+ (task.keyPath = newProps)),
6657
+ (type.lastPushedText = !1));
6604
6658
  return;
6605
6659
  case REACT_SUSPENSE_LIST_TYPE:
6606
6660
  type = task.keyPath;
@@ -7279,9 +7333,9 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7279
7333
  addToReplayParent(segment, boundaryKeyPath[0], trackedPostpones);
7280
7334
  return;
7281
7335
  }
7282
- var boundaryNode$95 = trackedPostpones.workingMap.get(boundaryKeyPath);
7283
- void 0 === boundaryNode$95
7284
- ? ((boundaryNode$95 = [
7336
+ var boundaryNode$97 = trackedPostpones.workingMap.get(boundaryKeyPath);
7337
+ void 0 === boundaryNode$97
7338
+ ? ((boundaryNode$97 = [
7285
7339
  boundaryKeyPath[1],
7286
7340
  boundaryKeyPath[2],
7287
7341
  children,
@@ -7289,13 +7343,13 @@ function trackPostpone(request, trackedPostpones, task, segment) {
7289
7343
  fallbackReplayNode,
7290
7344
  boundary.rootSegmentID
7291
7345
  ]),
7292
- trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$95),
7346
+ trackedPostpones.workingMap.set(boundaryKeyPath, boundaryNode$97),
7293
7347
  addToReplayParent(
7294
- boundaryNode$95,
7348
+ boundaryNode$97,
7295
7349
  boundaryKeyPath[0],
7296
7350
  trackedPostpones
7297
7351
  ))
7298
- : ((boundaryKeyPath = boundaryNode$95),
7352
+ : ((boundaryKeyPath = boundaryNode$97),
7299
7353
  (boundaryKeyPath[4] = fallbackReplayNode),
7300
7354
  (boundaryKeyPath[5] = boundary.rootSegmentID));
7301
7355
  }
@@ -7449,15 +7503,15 @@ function renderNode(request, task, node, childIndex) {
7449
7503
  chunkLength = segment.chunks.length;
7450
7504
  try {
7451
7505
  return renderNodeDestructive(request, task, node, childIndex);
7452
- } catch (thrownValue$107) {
7506
+ } catch (thrownValue$109) {
7453
7507
  if (
7454
7508
  (resetHooksState(),
7455
7509
  (segment.children.length = childrenLength),
7456
7510
  (segment.chunks.length = chunkLength),
7457
7511
  (childIndex =
7458
- thrownValue$107 === SuspenseException
7512
+ thrownValue$109 === SuspenseException
7459
7513
  ? getSuspendedThenable()
7460
- : thrownValue$107),
7514
+ : thrownValue$109),
7461
7515
  "object" === typeof childIndex && null !== childIndex)
7462
7516
  ) {
7463
7517
  if ("function" === typeof childIndex.then) {
@@ -7658,16 +7712,16 @@ function abortTask(task, request, error) {
7658
7712
  }
7659
7713
  } else {
7660
7714
  boundary.pendingTasks--;
7661
- var trackedPostpones$110 = request.trackedPostpones;
7715
+ var trackedPostpones$112 = request.trackedPostpones;
7662
7716
  if (4 !== boundary.status) {
7663
- if (null !== trackedPostpones$110 && null !== segment)
7717
+ if (null !== trackedPostpones$112 && null !== segment)
7664
7718
  return (
7665
7719
  "object" === typeof error &&
7666
7720
  null !== error &&
7667
7721
  error.$$typeof === REACT_POSTPONE_TYPE
7668
7722
  ? logPostpone(request, error.message, errorInfo)
7669
7723
  : logRecoverableError(request, error, errorInfo),
7670
- trackPostpone(request, trackedPostpones$110, task, segment),
7724
+ trackPostpone(request, trackedPostpones$112, task, segment),
7671
7725
  boundary.fallbackAbortableTasks.forEach(function (fallbackTask) {
7672
7726
  return abortTask(fallbackTask, request, error);
7673
7727
  }),
@@ -7971,13 +8025,13 @@ function performWork(request$jscomp$1) {
7971
8025
  null !== request.trackedPostpones &&
7972
8026
  x$jscomp$0.$$typeof === REACT_POSTPONE_TYPE
7973
8027
  ) {
7974
- var trackedPostpones$114 = request.trackedPostpones;
8028
+ var trackedPostpones$116 = request.trackedPostpones;
7975
8029
  task.abortSet.delete(task);
7976
8030
  var postponeInfo = getThrownInfo(task.componentStack);
7977
8031
  logPostpone(request, x$jscomp$0.message, postponeInfo);
7978
8032
  trackPostpone(
7979
8033
  request,
7980
- trackedPostpones$114,
8034
+ trackedPostpones$116,
7981
8035
  task,
7982
8036
  segment$jscomp$0
7983
8037
  );
@@ -8522,11 +8576,11 @@ function flushCompletedQueues(request, destination) {
8522
8576
  completedBoundaries.splice(0, i);
8523
8577
  var partialBoundaries = request.partialBoundaries;
8524
8578
  for (i = 0; i < partialBoundaries.length; i++) {
8525
- var boundary$117 = partialBoundaries[i];
8579
+ var boundary$119 = partialBoundaries[i];
8526
8580
  a: {
8527
8581
  clientRenderedBoundaries = request;
8528
8582
  boundary = destination;
8529
- var completedSegments = boundary$117.completedSegments;
8583
+ var completedSegments = boundary$119.completedSegments;
8530
8584
  for (
8531
8585
  JSCompiler_inline_result = 0;
8532
8586
  JSCompiler_inline_result < completedSegments.length;
@@ -8536,7 +8590,7 @@ function flushCompletedQueues(request, destination) {
8536
8590
  !flushPartiallyCompletedSegment(
8537
8591
  clientRenderedBoundaries,
8538
8592
  boundary,
8539
- boundary$117,
8593
+ boundary$119,
8540
8594
  completedSegments[JSCompiler_inline_result]
8541
8595
  )
8542
8596
  ) {
@@ -8548,7 +8602,7 @@ function flushCompletedQueues(request, destination) {
8548
8602
  completedSegments.splice(0, JSCompiler_inline_result);
8549
8603
  JSCompiler_inline_result$jscomp$0 = writeHoistablesForBoundary(
8550
8604
  boundary,
8551
- boundary$117.contentState,
8605
+ boundary$119.contentState,
8552
8606
  clientRenderedBoundaries.renderState
8553
8607
  );
8554
8608
  }
@@ -8620,8 +8674,8 @@ function abort(request, reason) {
8620
8674
  }
8621
8675
  null !== request.destination &&
8622
8676
  flushCompletedQueues(request, request.destination);
8623
- } catch (error$119) {
8624
- logRecoverableError(request, error$119, {}), fatalError(request, error$119);
8677
+ } catch (error$121) {
8678
+ logRecoverableError(request, error$121, {}), fatalError(request, error$121);
8625
8679
  }
8626
8680
  }
8627
8681
  function addToReplayParent(node, parentKeyPath, trackedPostpones) {
@@ -8932,4 +8986,4 @@ exports.experimental_renderToHTML = function (children, options) {
8932
8986
  });
8933
8987
  });
8934
8988
  };
8935
- exports.version = "19.2.0-experimental-33661467-20250407";
8989
+ exports.version = "19.2.0-experimental-3fbfb9ba-20250409";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-33661467-20250407",
3
+ "version": "0.0.0-experimental-3fbfb9ba-20250409",
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-33661467-20250407"
20
+ "react": "0.0.0-experimental-3fbfb9ba-20250409"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",