react-markup 0.0.0-experimental-94e652d5-20240912 → 0.0.0-experimental-ee1a403a-20240916

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.
@@ -8625,5 +8625,5 @@
8625
8625
  });
8626
8626
  });
8627
8627
  };
8628
- exports.version = "19.0.0-experimental-94e652d5-20240912";
8628
+ exports.version = "19.0.0-experimental-ee1a403a-20240916";
8629
8629
  })();
@@ -5702,4 +5702,4 @@ exports.experimental_renderToHTML = function (children, options) {
5702
5702
  });
5703
5703
  });
5704
5704
  };
5705
- exports.version = "19.0.0-experimental-94e652d5-20240912";
5705
+ exports.version = "19.0.0-experimental-ee1a403a-20240916";
@@ -786,7 +786,7 @@
786
786
  cleanupQueue = [];
787
787
  TaintRegistryPendingRequests.add(cleanupQueue);
788
788
  this.type = type;
789
- this.status = 10;
789
+ this.status = OPENING;
790
790
  this.flushScheduled = !1;
791
791
  this.destination = this.fatalError = null;
792
792
  this.bundlerConfig = bundlerConfig;
@@ -1663,7 +1663,7 @@
1663
1663
  null !== value.debugTask &&
1664
1664
  "function" === typeof value.debugTask.run) ||
1665
1665
  value.debugStack instanceof Error) &&
1666
- isArrayImpl(value.stack) &&
1666
+ (isArrayImpl(value.stack) || null === value.stack) &&
1667
1667
  "string" === typeof value.name &&
1668
1668
  "string" === typeof value.env &&
1669
1669
  void 0 !== value.owner
@@ -2445,13 +2445,15 @@
2445
2445
  );
2446
2446
  var currentEnv = (0, request.environmentName)();
2447
2447
  currentEnv !== task.environmentName &&
2448
- emitDebugChunk(request, task.id, { env: currentEnv });
2448
+ (request.pendingChunks++,
2449
+ emitDebugChunk(request, task.id, { env: currentEnv }));
2449
2450
  emitChunk(request, task, resolvedModel);
2450
2451
  } else {
2451
2452
  var json = stringify(resolvedModel),
2452
2453
  _currentEnv = (0, request.environmentName)();
2453
2454
  _currentEnv !== task.environmentName &&
2454
- emitDebugChunk(request, task.id, { env: _currentEnv });
2455
+ (request.pendingChunks++,
2456
+ emitDebugChunk(request, task.id, { env: _currentEnv }));
2455
2457
  emitModelChunk(request, task.id, json);
2456
2458
  }
2457
2459
  request.abortableTasks.delete(task);
@@ -2590,6 +2592,7 @@
2590
2592
  function startWork$1(request) {
2591
2593
  request.flushScheduled = null !== request.destination;
2592
2594
  performWork$1(request);
2595
+ request.status === OPENING && (request.status = 11);
2593
2596
  }
2594
2597
  function enqueueFlush(request) {
2595
2598
  if (
@@ -2617,7 +2620,7 @@
2617
2620
  }
2618
2621
  function abort$1(request, reason) {
2619
2622
  try {
2620
- 10 === request.status && (request.status = ABORTING$1);
2623
+ 11 >= request.status && (request.status = ABORTING$1);
2621
2624
  var abortableTasks = request.abortableTasks;
2622
2625
  if (0 < abortableTasks.size) {
2623
2626
  if (
@@ -3662,7 +3665,8 @@
3662
3665
  owner: blockedValue._owner
3663
3666
  };
3664
3667
  erroredComponent.debugStack = blockedValue._debugStack;
3665
- erroredComponent.debugTask = blockedValue._debugTask;
3668
+ supportsCreateTask &&
3669
+ (erroredComponent.debugTask = blockedValue._debugTask);
3666
3670
  (chunk._debugInfo || (chunk._debugInfo = [])).push(
3667
3671
  erroredComponent
3668
3672
  );
@@ -3934,14 +3938,21 @@
3934
3938
  this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
3935
3939
  this._buffer = [];
3936
3940
  this._tempRefs = temporaryReferences;
3937
- bundlerConfig = void 0 === environmentName ? "Server" : environmentName;
3941
+ this._debugRootOwner = bundlerConfig =
3942
+ void 0 === ReactSharedInteralsServer ||
3943
+ null === ReactSharedInteralsServer.A
3944
+ ? null
3945
+ : ReactSharedInteralsServer.A.getOwner();
3946
+ this._debugRootStack =
3947
+ null !== bundlerConfig ? Error("react-stack-top-frame") : null;
3948
+ environmentName = void 0 === environmentName ? "Server" : environmentName;
3938
3949
  supportsCreateTask &&
3939
3950
  (this._debugRootTask = console.createTask(
3940
- '"use ' + bundlerConfig.toLowerCase() + '"'
3951
+ '"use ' + environmentName.toLowerCase() + '"'
3941
3952
  ));
3942
3953
  this._debugFindSourceMapURL = findSourceMapURL;
3943
3954
  this._replayConsole = replayConsole;
3944
- this._rootEnvironmentName = bundlerConfig;
3955
+ this._rootEnvironmentName = environmentName;
3945
3956
  this._fromJSON = createFromJSONCallback(this);
3946
3957
  }
3947
3958
  function resolveStream(response, id, stream, controller) {
@@ -4295,7 +4306,7 @@
4295
4306
  type: type,
4296
4307
  key: value[2],
4297
4308
  props: value[3],
4298
- _owner: key
4309
+ _owner: null === key ? response._debugRootOwner : key
4299
4310
  };
4300
4311
  Object.defineProperty(value, "ref", {
4301
4312
  enumerable: !1,
@@ -4317,12 +4328,14 @@
4317
4328
  validated = response._rootEnvironmentName;
4318
4329
  null !== key && null != key.env && (validated = key.env);
4319
4330
  var normalizedStackTrace = null;
4320
- null !== stack &&
4321
- (normalizedStackTrace = createFakeJSXCallStackInDEV(
4322
- response,
4323
- stack,
4324
- validated
4325
- ));
4331
+ null === key && null != response._debugRootStack
4332
+ ? (normalizedStackTrace = response._debugRootStack)
4333
+ : null !== stack &&
4334
+ (normalizedStackTrace = createFakeJSXCallStackInDEV(
4335
+ response,
4336
+ stack,
4337
+ validated
4338
+ ));
4326
4339
  Object.defineProperty(value, "_debugStack", {
4327
4340
  configurable: !1,
4328
4341
  enumerable: !1,
@@ -4365,7 +4378,7 @@
4365
4378
  owner: value._owner
4366
4379
  }),
4367
4380
  (stack.debugStack = value._debugStack),
4368
- (stack.debugTask = value._debugTask),
4381
+ supportsCreateTask && (stack.debugTask = value._debugTask),
4369
4382
  (key._debugInfo = [stack]),
4370
4383
  (value = createLazyChunkWrapper(key)))
4371
4384
  : 0 < stack.deps &&
@@ -11635,16 +11648,17 @@
11635
11648
  ABORTED$1 = 3,
11636
11649
  ERRORED$2 = 4,
11637
11650
  RENDERING$1 = 5,
11651
+ OPENING = 10,
11652
+ ABORTING$1 = 12,
11653
+ CLOSING$1 = 13,
11654
+ CLOSED$1 = 14,
11655
+ PRERENDER = 21,
11638
11656
  TaintRegistryObjects = ReactSharedInternalsServer.TaintRegistryObjects,
11639
11657
  TaintRegistryValues = ReactSharedInternalsServer.TaintRegistryValues,
11640
11658
  TaintRegistryByteLengths =
11641
11659
  ReactSharedInternalsServer.TaintRegistryByteLengths,
11642
11660
  TaintRegistryPendingRequests =
11643
11661
  ReactSharedInternalsServer.TaintRegistryPendingRequests,
11644
- ABORTING$1 = 11,
11645
- CLOSING$1 = 12,
11646
- CLOSED$1 = 13,
11647
- PRERENDER = 21,
11648
11662
  currentRequest = null,
11649
11663
  debugID = null,
11650
11664
  modelRoot = !1,
@@ -11657,9 +11671,11 @@
11657
11671
  FunctionBind = Function.prototype.bind,
11658
11672
  ArraySlice = Array.prototype.slice,
11659
11673
  REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
11674
+ ReactSharedInteralsServer =
11675
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
11660
11676
  ReactSharedInternals =
11661
11677
  React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE ||
11662
- React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
11678
+ ReactSharedInteralsServer;
11663
11679
  ReactPromise.prototype = Object.create(Promise.prototype);
11664
11680
  ReactPromise.prototype.then = function (resolve, reject) {
11665
11681
  switch (this.status) {
@@ -11719,7 +11735,7 @@
11719
11735
  ) {
11720
11736
  var prevStack = ReactSharedInternals.getCurrentStack;
11721
11737
  ReactSharedInternals.getCurrentStack = getCurrentStackInDEV$1;
11722
- currentOwnerInDEV = owner;
11738
+ currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
11723
11739
  try {
11724
11740
  var callStack = buildFakeCallStack(
11725
11741
  response,
@@ -12891,7 +12907,10 @@
12891
12907
  ? i._rootEnvironmentName
12892
12908
  : rowTag.env
12893
12909
  );
12894
- initializeFakeStack(i, rowTag);
12910
+ null === rowTag.owner && null != i._debugRootOwner
12911
+ ? ((rowTag.owner = i._debugRootOwner),
12912
+ (rowTag.debugStack = i._debugRootStack))
12913
+ : initializeFakeStack(i, rowTag);
12895
12914
  i = getChunk(i, rowID);
12896
12915
  (i._debugInfo || (i._debugInfo = [])).push(rowTag);
12897
12916
  break;
@@ -13002,5 +13021,5 @@
13002
13021
  });
13003
13022
  });
13004
13023
  };
13005
- exports.version = "19.0.0-experimental-94e652d5-20240912";
13024
+ exports.version = "19.0.0-experimental-ee1a403a-20240916";
13006
13025
  })();
@@ -644,7 +644,7 @@ function serializeThenable(request, task, thenable) {
644
644
  newTask.id
645
645
  );
646
646
  default:
647
- if (11 === request.status)
647
+ if (12 === request.status)
648
648
  return (
649
649
  request.abortableTasks.delete(newTask),
650
650
  (newTask.status = 3),
@@ -886,7 +886,7 @@ function renderFunctionComponent$1(request, task, key, Component, props) {
886
886
  thenableIndexCounter$1 = 0;
887
887
  thenableState$1 = prevThenableState;
888
888
  Component = Component(props, void 0);
889
- if (11 === request.status)
889
+ if (12 === request.status)
890
890
  throw (
891
891
  ("object" === typeof Component &&
892
892
  null !== Component &&
@@ -985,7 +985,7 @@ function renderElement$1(request, task, type, key, ref, props) {
985
985
  case REACT_LAZY_TYPE:
986
986
  var init = type._init;
987
987
  type = init(type._payload);
988
- if (11 === request.status) throw null;
988
+ if (12 === request.status) throw null;
989
989
  return renderElement$1(request, task, type, key, ref, props);
990
990
  case REACT_FORWARD_REF_TYPE:
991
991
  return renderFunctionComponent$1(
@@ -1128,7 +1128,7 @@ function renderModel(request, task, parent, key, value) {
1128
1128
  null !== parent &&
1129
1129
  (parent.$$typeof === REACT_ELEMENT_TYPE ||
1130
1130
  parent.$$typeof === REACT_LAZY_TYPE);
1131
- if (11 === request.status) {
1131
+ if (12 === request.status) {
1132
1132
  task.status = 3;
1133
1133
  if (21 === request.type)
1134
1134
  return (
@@ -1233,7 +1233,7 @@ function renderModelDestructive(
1233
1233
  task.thenableState = null;
1234
1234
  parentPropertyName = value._init;
1235
1235
  value = parentPropertyName(value._payload);
1236
- if (11 === request.status) throw null;
1236
+ if (12 === request.status) throw null;
1237
1237
  return renderModelDestructive(request, task, emptyRoot, "", value);
1238
1238
  case REACT_LEGACY_ELEMENT_TYPE:
1239
1239
  throw Error(
@@ -1505,8 +1505,8 @@ function fatalError$1(request, error) {
1505
1505
  onFatalError(error);
1506
1506
  cleanupTaintQueue(request);
1507
1507
  null !== request.destination
1508
- ? ((request.status = 13), request.destination.destroy(error))
1509
- : ((request.status = 12), (request.fatalError = error));
1508
+ ? ((request.status = 14), request.destination.destroy(error))
1509
+ : ((request.status = 13), (request.fatalError = error));
1510
1510
  }
1511
1511
  function emitPostponeChunk(request, id) {
1512
1512
  id = id.toString(16) + ":P\n";
@@ -1597,7 +1597,7 @@ function retryTask$1(request, task) {
1597
1597
  request.abortableTasks.delete(task);
1598
1598
  task.status = 1;
1599
1599
  } catch (thrownValue) {
1600
- if (11 === request.status)
1600
+ if (12 === request.status)
1601
1601
  if (
1602
1602
  (request.abortableTasks.delete(task),
1603
1603
  (task.status = 3),
@@ -1712,7 +1712,7 @@ function flushCompletedChunks(request, destination) {
1712
1712
  }
1713
1713
  0 === request.pendingChunks &&
1714
1714
  (cleanupTaintQueue(request),
1715
- (request.status = 13),
1715
+ (request.status = 14),
1716
1716
  destination.push(null),
1717
1717
  (request.destination = null));
1718
1718
  }
@@ -1729,7 +1729,7 @@ function enqueueFlush(request) {
1729
1729
  }
1730
1730
  function abort$1(request, reason) {
1731
1731
  try {
1732
- 10 === request.status && (request.status = 11);
1732
+ 11 >= request.status && (request.status = 12);
1733
1733
  var abortableTasks = request.abortableTasks;
1734
1734
  if (0 < abortableTasks.size) {
1735
1735
  if (
@@ -8623,11 +8623,12 @@ exports.experimental_renderToHTML = function (children, options) {
8623
8623
  }
8624
8624
  flightRequest.flushScheduled = null !== flightRequest.destination;
8625
8625
  performWork$1(flightRequest);
8626
- if (12 === flightRequest.status)
8627
- (flightRequest.status = 13),
8626
+ 10 === flightRequest.status && (flightRequest.status = 11);
8627
+ if (13 === flightRequest.status)
8628
+ (flightRequest.status = 14),
8628
8629
  flightDestination.destroy(flightRequest.fatalError);
8629
8630
  else if (
8630
- 13 !== flightRequest.status &&
8631
+ 14 !== flightRequest.status &&
8631
8632
  null === flightRequest.destination
8632
8633
  ) {
8633
8634
  flightRequest.destination = flightDestination;
@@ -8658,4 +8659,4 @@ exports.experimental_renderToHTML = function (children, options) {
8658
8659
  });
8659
8660
  });
8660
8661
  };
8661
- exports.version = "19.0.0-experimental-94e652d5-20240912";
8662
+ exports.version = "19.0.0-experimental-ee1a403a-20240916";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-94e652d5-20240912",
3
+ "version": "0.0.0-experimental-ee1a403a-20240916",
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-94e652d5-20240912"
20
+ "react": "0.0.0-experimental-ee1a403a-20240916"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",