react-markup 0.0.0-experimental-47352209-20240912 → 0.0.0-experimental-206df66e-20240912

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-47352209-20240912";
8628
+ exports.version = "19.0.0-experimental-206df66e-20240912";
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-47352209-20240912";
5705
+ exports.version = "19.0.0-experimental-206df66e-20240912";
@@ -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
@@ -3662,7 +3662,8 @@
3662
3662
  owner: blockedValue._owner
3663
3663
  };
3664
3664
  erroredComponent.debugStack = blockedValue._debugStack;
3665
- erroredComponent.debugTask = blockedValue._debugTask;
3665
+ supportsCreateTask &&
3666
+ (erroredComponent.debugTask = blockedValue._debugTask);
3666
3667
  (chunk._debugInfo || (chunk._debugInfo = [])).push(
3667
3668
  erroredComponent
3668
3669
  );
@@ -3934,14 +3935,21 @@
3934
3935
  this._rowLength = this._rowTag = this._rowID = this._rowState = 0;
3935
3936
  this._buffer = [];
3936
3937
  this._tempRefs = temporaryReferences;
3937
- bundlerConfig = void 0 === environmentName ? "Server" : environmentName;
3938
+ this._debugRootOwner = bundlerConfig =
3939
+ void 0 === ReactSharedInteralsServer ||
3940
+ null === ReactSharedInteralsServer.A
3941
+ ? null
3942
+ : ReactSharedInteralsServer.A.getOwner();
3943
+ this._debugRootStack =
3944
+ null !== bundlerConfig ? Error("react-stack-top-frame") : null;
3945
+ environmentName = void 0 === environmentName ? "Server" : environmentName;
3938
3946
  supportsCreateTask &&
3939
3947
  (this._debugRootTask = console.createTask(
3940
- '"use ' + bundlerConfig.toLowerCase() + '"'
3948
+ '"use ' + environmentName.toLowerCase() + '"'
3941
3949
  ));
3942
3950
  this._debugFindSourceMapURL = findSourceMapURL;
3943
3951
  this._replayConsole = replayConsole;
3944
- this._rootEnvironmentName = bundlerConfig;
3952
+ this._rootEnvironmentName = environmentName;
3945
3953
  this._fromJSON = createFromJSONCallback(this);
3946
3954
  }
3947
3955
  function resolveStream(response, id, stream, controller) {
@@ -4295,7 +4303,7 @@
4295
4303
  type: type,
4296
4304
  key: value[2],
4297
4305
  props: value[3],
4298
- _owner: key
4306
+ _owner: null === key ? response._debugRootOwner : key
4299
4307
  };
4300
4308
  Object.defineProperty(value, "ref", {
4301
4309
  enumerable: !1,
@@ -4317,12 +4325,14 @@
4317
4325
  validated = response._rootEnvironmentName;
4318
4326
  null !== key && null != key.env && (validated = key.env);
4319
4327
  var normalizedStackTrace = null;
4320
- null !== stack &&
4321
- (normalizedStackTrace = createFakeJSXCallStackInDEV(
4322
- response,
4323
- stack,
4324
- validated
4325
- ));
4328
+ null === key && null != response._debugRootStack
4329
+ ? (normalizedStackTrace = response._debugRootStack)
4330
+ : null !== stack &&
4331
+ (normalizedStackTrace = createFakeJSXCallStackInDEV(
4332
+ response,
4333
+ stack,
4334
+ validated
4335
+ ));
4326
4336
  Object.defineProperty(value, "_debugStack", {
4327
4337
  configurable: !1,
4328
4338
  enumerable: !1,
@@ -4365,7 +4375,7 @@
4365
4375
  owner: value._owner
4366
4376
  }),
4367
4377
  (stack.debugStack = value._debugStack),
4368
- (stack.debugTask = value._debugTask),
4378
+ supportsCreateTask && (stack.debugTask = value._debugTask),
4369
4379
  (key._debugInfo = [stack]),
4370
4380
  (value = createLazyChunkWrapper(key)))
4371
4381
  : 0 < stack.deps &&
@@ -11657,9 +11667,11 @@
11657
11667
  FunctionBind = Function.prototype.bind,
11658
11668
  ArraySlice = Array.prototype.slice,
11659
11669
  REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
11670
+ ReactSharedInteralsServer =
11671
+ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
11660
11672
  ReactSharedInternals =
11661
11673
  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;
11674
+ ReactSharedInteralsServer;
11663
11675
  ReactPromise.prototype = Object.create(Promise.prototype);
11664
11676
  ReactPromise.prototype.then = function (resolve, reject) {
11665
11677
  switch (this.status) {
@@ -11719,7 +11731,7 @@
11719
11731
  ) {
11720
11732
  var prevStack = ReactSharedInternals.getCurrentStack;
11721
11733
  ReactSharedInternals.getCurrentStack = getCurrentStackInDEV$1;
11722
- currentOwnerInDEV = owner;
11734
+ currentOwnerInDEV = null === owner ? response._debugRootOwner : owner;
11723
11735
  try {
11724
11736
  var callStack = buildFakeCallStack(
11725
11737
  response,
@@ -12891,7 +12903,10 @@
12891
12903
  ? i._rootEnvironmentName
12892
12904
  : rowTag.env
12893
12905
  );
12894
- initializeFakeStack(i, rowTag);
12906
+ null === rowTag.owner && null != i._debugRootOwner
12907
+ ? ((rowTag.owner = i._debugRootOwner),
12908
+ (rowTag.debugStack = i._debugRootStack))
12909
+ : initializeFakeStack(i, rowTag);
12895
12910
  i = getChunk(i, rowID);
12896
12911
  (i._debugInfo || (i._debugInfo = [])).push(rowTag);
12897
12912
  break;
@@ -13002,5 +13017,5 @@
13002
13017
  });
13003
13018
  });
13004
13019
  };
13005
- exports.version = "19.0.0-experimental-47352209-20240912";
13020
+ exports.version = "19.0.0-experimental-206df66e-20240912";
13006
13021
  })();
@@ -8658,4 +8658,4 @@ exports.experimental_renderToHTML = function (children, options) {
8658
8658
  });
8659
8659
  });
8660
8660
  };
8661
- exports.version = "19.0.0-experimental-47352209-20240912";
8661
+ exports.version = "19.0.0-experimental-206df66e-20240912";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-47352209-20240912",
3
+ "version": "0.0.0-experimental-206df66e-20240912",
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-47352209-20240912"
20
+ "react": "0.0.0-experimental-206df66e-20240912"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",