react-markup 0.0.0-experimental-3dfd5d9e-20240910 → 0.0.0-experimental-47352209-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.
@@ -4228,7 +4228,6 @@
4228
4228
  }
4229
4229
  function noop() {}
4230
4230
  function RequestInstance(
4231
- children,
4232
4231
  resumableState,
4233
4232
  renderState,
4234
4233
  rootFormatContext,
@@ -4241,8 +4240,7 @@
4241
4240
  onPostpone,
4242
4241
  formState
4243
4242
  ) {
4244
- var pingedTasks = [],
4245
- abortSet = new Set();
4243
+ var abortSet = new Set();
4246
4244
  this.destination = null;
4247
4245
  this.flushScheduled = !1;
4248
4246
  this.resumableState = resumableState;
@@ -4255,7 +4253,7 @@
4255
4253
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
4256
4254
  this.completedRootSegment = null;
4257
4255
  this.abortableTasks = abortSet;
4258
- this.pingedTasks = pingedTasks;
4256
+ this.pingedTasks = [];
4259
4257
  this.clientRenderedBoundaries = [];
4260
4258
  this.completedBoundaries = [];
4261
4259
  this.partialBoundaries = [];
@@ -4268,35 +4266,6 @@
4268
4266
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
4269
4267
  this.formState = void 0 === formState ? null : formState;
4270
4268
  this.didWarnForKey = null;
4271
- resumableState = createPendingSegment(
4272
- this,
4273
- 0,
4274
- null,
4275
- rootFormatContext,
4276
- !1,
4277
- !1
4278
- );
4279
- resumableState.parentFlushed = !0;
4280
- children = createRenderTask(
4281
- this,
4282
- null,
4283
- children,
4284
- -1,
4285
- null,
4286
- resumableState,
4287
- null,
4288
- abortSet,
4289
- null,
4290
- rootFormatContext,
4291
- null,
4292
- emptyTreeContext,
4293
- null,
4294
- !1,
4295
- emptyContextObject,
4296
- null
4297
- );
4298
- pushComponentStack(children);
4299
- pingedTasks.push(children);
4300
4269
  }
4301
4270
  function createRequest(
4302
4271
  children,
@@ -4312,8 +4281,7 @@
4312
4281
  onPostpone,
4313
4282
  formState
4314
4283
  ) {
4315
- return new RequestInstance(
4316
- children,
4284
+ resumableState = new RequestInstance(
4317
4285
  resumableState,
4318
4286
  renderState,
4319
4287
  rootFormatContext,
@@ -4326,6 +4294,36 @@
4326
4294
  onPostpone,
4327
4295
  formState
4328
4296
  );
4297
+ renderState = createPendingSegment(
4298
+ resumableState,
4299
+ 0,
4300
+ null,
4301
+ rootFormatContext,
4302
+ !1,
4303
+ !1
4304
+ );
4305
+ renderState.parentFlushed = !0;
4306
+ children = createRenderTask(
4307
+ resumableState,
4308
+ null,
4309
+ children,
4310
+ -1,
4311
+ null,
4312
+ renderState,
4313
+ null,
4314
+ resumableState.abortableTasks,
4315
+ null,
4316
+ rootFormatContext,
4317
+ null,
4318
+ emptyTreeContext,
4319
+ null,
4320
+ !1,
4321
+ emptyContextObject,
4322
+ null
4323
+ );
4324
+ pushComponentStack(children);
4325
+ resumableState.pingedTasks.push(children);
4326
+ return resumableState;
4329
4327
  }
4330
4328
  function pingTask(request, task) {
4331
4329
  request.pingedTasks.push(task);
@@ -5669,6 +5667,7 @@
5669
5667
  resumedBoundary.rootSegmentID = type;
5670
5668
  task.blockedBoundary = resumedBoundary;
5671
5669
  task.hoistableState = resumedBoundary.contentState;
5670
+ task.keyPath = keyPath;
5672
5671
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
5673
5672
  try {
5674
5673
  renderNode(request, task, content, -1);
@@ -8626,5 +8625,5 @@
8626
8625
  });
8627
8626
  });
8628
8627
  };
8629
- exports.version = "19.0.0-experimental-3dfd5d9e-20240910";
8628
+ exports.version = "19.0.0-experimental-47352209-20240912";
8630
8629
  })();
@@ -3218,7 +3218,6 @@ function defaultErrorHandler(error) {
3218
3218
  }
3219
3219
  function noop() {}
3220
3220
  function RequestInstance(
3221
- children,
3222
3221
  resumableState,
3223
3222
  renderState,
3224
3223
  rootFormatContext,
@@ -3231,8 +3230,7 @@ function RequestInstance(
3231
3230
  onPostpone,
3232
3231
  formState
3233
3232
  ) {
3234
- var pingedTasks = [],
3235
- abortSet = new Set();
3233
+ var abortSet = new Set();
3236
3234
  this.destination = null;
3237
3235
  this.flushScheduled = !1;
3238
3236
  this.resumableState = resumableState;
@@ -3245,7 +3243,7 @@ function RequestInstance(
3245
3243
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
3246
3244
  this.completedRootSegment = null;
3247
3245
  this.abortableTasks = abortSet;
3248
- this.pingedTasks = pingedTasks;
3246
+ this.pingedTasks = [];
3249
3247
  this.clientRenderedBoundaries = [];
3250
3248
  this.completedBoundaries = [];
3251
3249
  this.partialBoundaries = [];
@@ -3257,33 +3255,6 @@ function RequestInstance(
3257
3255
  this.onShellError = void 0 === onShellError ? noop : onShellError;
3258
3256
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
3259
3257
  this.formState = void 0 === formState ? null : formState;
3260
- resumableState = createPendingSegment(
3261
- this,
3262
- 0,
3263
- null,
3264
- rootFormatContext,
3265
- !1,
3266
- !1
3267
- );
3268
- resumableState.parentFlushed = !0;
3269
- children = createRenderTask(
3270
- this,
3271
- null,
3272
- children,
3273
- -1,
3274
- null,
3275
- resumableState,
3276
- null,
3277
- abortSet,
3278
- null,
3279
- rootFormatContext,
3280
- null,
3281
- emptyTreeContext,
3282
- null,
3283
- !1
3284
- );
3285
- pushComponentStack(children);
3286
- pingedTasks.push(children);
3287
3258
  }
3288
3259
  function createRequest(
3289
3260
  children,
@@ -3299,8 +3270,7 @@ function createRequest(
3299
3270
  onPostpone,
3300
3271
  formState
3301
3272
  ) {
3302
- return new RequestInstance(
3303
- children,
3273
+ resumableState = new RequestInstance(
3304
3274
  resumableState,
3305
3275
  renderState,
3306
3276
  rootFormatContext,
@@ -3313,6 +3283,34 @@ function createRequest(
3313
3283
  onPostpone,
3314
3284
  formState
3315
3285
  );
3286
+ renderState = createPendingSegment(
3287
+ resumableState,
3288
+ 0,
3289
+ null,
3290
+ rootFormatContext,
3291
+ !1,
3292
+ !1
3293
+ );
3294
+ renderState.parentFlushed = !0;
3295
+ children = createRenderTask(
3296
+ resumableState,
3297
+ null,
3298
+ children,
3299
+ -1,
3300
+ null,
3301
+ renderState,
3302
+ null,
3303
+ resumableState.abortableTasks,
3304
+ null,
3305
+ rootFormatContext,
3306
+ null,
3307
+ emptyTreeContext,
3308
+ null,
3309
+ !1
3310
+ );
3311
+ pushComponentStack(children);
3312
+ resumableState.pingedTasks.push(children);
3313
+ return resumableState;
3316
3314
  }
3317
3315
  function pingTask(request, task) {
3318
3316
  request.pingedTasks.push(task);
@@ -4133,6 +4131,7 @@ function retryNode(request, task) {
4133
4131
  resumedBoundary.rootSegmentID = ref;
4134
4132
  task.blockedBoundary = resumedBoundary;
4135
4133
  task.hoistableState = resumedBoundary.contentState;
4134
+ task.keyPath = key;
4136
4135
  task.replay = {
4137
4136
  nodes: replay,
4138
4137
  slots: name,
@@ -5703,4 +5702,4 @@ exports.experimental_renderToHTML = function (children, options) {
5703
5702
  });
5704
5703
  });
5705
5704
  };
5706
- exports.version = "19.0.0-experimental-3dfd5d9e-20240910";
5705
+ exports.version = "19.0.0-experimental-47352209-20240912";
@@ -3706,11 +3706,8 @@
3706
3706
  }
3707
3707
  switch (id.status) {
3708
3708
  case "fulfilled":
3709
- for (var value = id.value, i = 1; i < reference.length; i++)
3710
- if (
3711
- ((value = value[reference[i]]),
3712
- value.$$typeof === REACT_LAZY_TYPE)
3713
- )
3709
+ for (var value = id.value, i = 1; i < reference.length; i++) {
3710
+ for (; value.$$typeof === REACT_LAZY_TYPE; )
3714
3711
  if (((value = value._payload), "fulfilled" === value.status))
3715
3712
  value = value.value;
3716
3713
  else
@@ -3720,8 +3717,10 @@
3720
3717
  key,
3721
3718
  response,
3722
3719
  map,
3723
- reference.slice(i)
3720
+ reference.slice(i - 1)
3724
3721
  );
3722
+ value = value[reference[i]];
3723
+ }
3725
3724
  response = map(response, value);
3726
3725
  id._debugInfo &&
3727
3726
  ("object" !== typeof response ||
@@ -8045,7 +8044,6 @@
8045
8044
  }
8046
8045
  function noop() {}
8047
8046
  function RequestInstance(
8048
- children,
8049
8047
  resumableState,
8050
8048
  renderState,
8051
8049
  rootFormatContext,
@@ -8058,8 +8056,7 @@
8058
8056
  onPostpone,
8059
8057
  formState
8060
8058
  ) {
8061
- var pingedTasks = [],
8062
- abortSet = new Set();
8059
+ var abortSet = new Set();
8063
8060
  this.destination = null;
8064
8061
  this.flushScheduled = !1;
8065
8062
  this.resumableState = resumableState;
@@ -8072,7 +8069,7 @@
8072
8069
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
8073
8070
  this.completedRootSegment = null;
8074
8071
  this.abortableTasks = abortSet;
8075
- this.pingedTasks = pingedTasks;
8072
+ this.pingedTasks = [];
8076
8073
  this.clientRenderedBoundaries = [];
8077
8074
  this.completedBoundaries = [];
8078
8075
  this.partialBoundaries = [];
@@ -8085,35 +8082,6 @@
8085
8082
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
8086
8083
  this.formState = void 0 === formState ? null : formState;
8087
8084
  this.didWarnForKey = null;
8088
- resumableState = createPendingSegment(
8089
- this,
8090
- 0,
8091
- null,
8092
- rootFormatContext,
8093
- !1,
8094
- !1
8095
- );
8096
- resumableState.parentFlushed = !0;
8097
- children = createRenderTask(
8098
- this,
8099
- null,
8100
- children,
8101
- -1,
8102
- null,
8103
- resumableState,
8104
- null,
8105
- abortSet,
8106
- null,
8107
- rootFormatContext,
8108
- null,
8109
- emptyTreeContext,
8110
- null,
8111
- !1,
8112
- emptyContextObject,
8113
- null
8114
- );
8115
- pushComponentStack(children);
8116
- pingedTasks.push(children);
8117
8085
  }
8118
8086
  function createRequest(
8119
8087
  children,
@@ -8129,8 +8097,7 @@
8129
8097
  onPostpone,
8130
8098
  formState
8131
8099
  ) {
8132
- return new RequestInstance(
8133
- children,
8100
+ resumableState = new RequestInstance(
8134
8101
  resumableState,
8135
8102
  renderState,
8136
8103
  rootFormatContext,
@@ -8143,6 +8110,36 @@
8143
8110
  onPostpone,
8144
8111
  formState
8145
8112
  );
8113
+ renderState = createPendingSegment(
8114
+ resumableState,
8115
+ 0,
8116
+ null,
8117
+ rootFormatContext,
8118
+ !1,
8119
+ !1
8120
+ );
8121
+ renderState.parentFlushed = !0;
8122
+ children = createRenderTask(
8123
+ resumableState,
8124
+ null,
8125
+ children,
8126
+ -1,
8127
+ null,
8128
+ renderState,
8129
+ null,
8130
+ resumableState.abortableTasks,
8131
+ null,
8132
+ rootFormatContext,
8133
+ null,
8134
+ emptyTreeContext,
8135
+ null,
8136
+ !1,
8137
+ emptyContextObject,
8138
+ null
8139
+ );
8140
+ pushComponentStack(children);
8141
+ resumableState.pingedTasks.push(children);
8142
+ return resumableState;
8146
8143
  }
8147
8144
  function pingTask(request, task) {
8148
8145
  request.pingedTasks.push(task);
@@ -9486,6 +9483,7 @@
9486
9483
  resumedBoundary.rootSegmentID = type;
9487
9484
  task.blockedBoundary = resumedBoundary;
9488
9485
  task.hoistableState = resumedBoundary.contentState;
9486
+ task.keyPath = keyPath;
9489
9487
  task.replay = { nodes: ref, slots: name, pendingTasks: 1 };
9490
9488
  try {
9491
9489
  renderNode(request, task, content, -1);
@@ -13004,5 +13002,5 @@
13004
13002
  });
13005
13003
  });
13006
13004
  };
13007
- exports.version = "19.0.0-experimental-3dfd5d9e-20240910";
13005
+ exports.version = "19.0.0-experimental-47352209-20240912";
13008
13006
  })();
@@ -2630,10 +2630,8 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2630
2630
  switch (id.status) {
2631
2631
  case "fulfilled":
2632
2632
  var value = id.value;
2633
- for (id = 1; id < reference.length; id++)
2634
- if (
2635
- ((value = value[reference[id]]), value.$$typeof === REACT_LAZY_TYPE)
2636
- )
2633
+ for (id = 1; id < reference.length; id++) {
2634
+ for (; value.$$typeof === REACT_LAZY_TYPE; )
2637
2635
  if (((value = value._payload), "fulfilled" === value.status))
2638
2636
  value = value.value;
2639
2637
  else
@@ -2643,8 +2641,10 @@ function getOutlinedModel(response, reference, parentObject, key, map) {
2643
2641
  key,
2644
2642
  response,
2645
2643
  map,
2646
- reference.slice(id)
2644
+ reference.slice(id - 1)
2647
2645
  );
2646
+ value = value[reference[id]];
2647
+ }
2648
2648
  return map(response, value);
2649
2649
  case "pending":
2650
2650
  case "blocked":
@@ -5936,7 +5936,6 @@ function defaultErrorHandler(error) {
5936
5936
  }
5937
5937
  function noop() {}
5938
5938
  function RequestInstance(
5939
- children,
5940
5939
  resumableState,
5941
5940
  renderState,
5942
5941
  rootFormatContext,
@@ -5949,8 +5948,7 @@ function RequestInstance(
5949
5948
  onPostpone,
5950
5949
  formState
5951
5950
  ) {
5952
- var pingedTasks = [],
5953
- abortSet = new Set();
5951
+ var abortSet = new Set();
5954
5952
  this.destination = null;
5955
5953
  this.flushScheduled = !1;
5956
5954
  this.resumableState = resumableState;
@@ -5963,7 +5961,7 @@ function RequestInstance(
5963
5961
  this.pendingRootTasks = this.allPendingTasks = this.nextSegmentId = 0;
5964
5962
  this.completedRootSegment = null;
5965
5963
  this.abortableTasks = abortSet;
5966
- this.pingedTasks = pingedTasks;
5964
+ this.pingedTasks = [];
5967
5965
  this.clientRenderedBoundaries = [];
5968
5966
  this.completedBoundaries = [];
5969
5967
  this.partialBoundaries = [];
@@ -5975,33 +5973,6 @@ function RequestInstance(
5975
5973
  this.onShellError = void 0 === onShellError ? noop : onShellError;
5976
5974
  this.onFatalError = void 0 === onFatalError ? noop : onFatalError;
5977
5975
  this.formState = void 0 === formState ? null : formState;
5978
- resumableState = createPendingSegment(
5979
- this,
5980
- 0,
5981
- null,
5982
- rootFormatContext,
5983
- !1,
5984
- !1
5985
- );
5986
- resumableState.parentFlushed = !0;
5987
- children = createRenderTask(
5988
- this,
5989
- null,
5990
- children,
5991
- -1,
5992
- null,
5993
- resumableState,
5994
- null,
5995
- abortSet,
5996
- null,
5997
- rootFormatContext,
5998
- null,
5999
- emptyTreeContext,
6000
- null,
6001
- !1
6002
- );
6003
- pushComponentStack(children);
6004
- pingedTasks.push(children);
6005
5976
  }
6006
5977
  function createRequest(
6007
5978
  children,
@@ -6017,8 +5988,7 @@ function createRequest(
6017
5988
  onPostpone,
6018
5989
  formState
6019
5990
  ) {
6020
- return new RequestInstance(
6021
- children,
5991
+ resumableState = new RequestInstance(
6022
5992
  resumableState,
6023
5993
  renderState,
6024
5994
  rootFormatContext,
@@ -6031,6 +6001,34 @@ function createRequest(
6031
6001
  onPostpone,
6032
6002
  formState
6033
6003
  );
6004
+ renderState = createPendingSegment(
6005
+ resumableState,
6006
+ 0,
6007
+ null,
6008
+ rootFormatContext,
6009
+ !1,
6010
+ !1
6011
+ );
6012
+ renderState.parentFlushed = !0;
6013
+ children = createRenderTask(
6014
+ resumableState,
6015
+ null,
6016
+ children,
6017
+ -1,
6018
+ null,
6019
+ renderState,
6020
+ null,
6021
+ resumableState.abortableTasks,
6022
+ null,
6023
+ rootFormatContext,
6024
+ null,
6025
+ emptyTreeContext,
6026
+ null,
6027
+ !1
6028
+ );
6029
+ pushComponentStack(children);
6030
+ resumableState.pingedTasks.push(children);
6031
+ return resumableState;
6034
6032
  }
6035
6033
  function pingTask(request, task) {
6036
6034
  request.pingedTasks.push(task);
@@ -6851,6 +6849,7 @@ function retryNode(request, task) {
6851
6849
  resumedBoundary.rootSegmentID = ref;
6852
6850
  task.blockedBoundary = resumedBoundary;
6853
6851
  task.hoistableState = resumedBoundary.contentState;
6852
+ task.keyPath = key;
6854
6853
  task.replay = {
6855
6854
  nodes: replay,
6856
6855
  slots: name,
@@ -8659,4 +8658,4 @@ exports.experimental_renderToHTML = function (children, options) {
8659
8658
  });
8660
8659
  });
8661
8660
  };
8662
- exports.version = "19.0.0-experimental-3dfd5d9e-20240910";
8661
+ exports.version = "19.0.0-experimental-47352209-20240912";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-markup",
3
- "version": "0.0.0-experimental-3dfd5d9e-20240910",
3
+ "version": "0.0.0-experimental-47352209-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-3dfd5d9e-20240910"
20
+ "react": "0.0.0-experimental-47352209-20240912"
21
21
  },
22
22
  "files": [
23
23
  "LICENSE",