react-markup 0.0.0-experimental-206df66e-20240912 → 0.0.0-experimental-f2df5694-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.
|
@@ -786,7 +786,7 @@
|
|
|
786
786
|
cleanupQueue = [];
|
|
787
787
|
TaintRegistryPendingRequests.add(cleanupQueue);
|
|
788
788
|
this.type = type;
|
|
789
|
-
this.status =
|
|
789
|
+
this.status = OPENING;
|
|
790
790
|
this.flushScheduled = !1;
|
|
791
791
|
this.destination = this.fatalError = null;
|
|
792
792
|
this.bundlerConfig = bundlerConfig;
|
|
@@ -2445,13 +2445,15 @@
|
|
|
2445
2445
|
);
|
|
2446
2446
|
var currentEnv = (0, request.environmentName)();
|
|
2447
2447
|
currentEnv !== task.environmentName &&
|
|
2448
|
-
|
|
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
|
-
|
|
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
|
-
|
|
2623
|
+
11 >= request.status && (request.status = ABORTING$1);
|
|
2621
2624
|
var abortableTasks = request.abortableTasks;
|
|
2622
2625
|
if (0 < abortableTasks.size) {
|
|
2623
2626
|
if (
|
|
@@ -11645,16 +11648,17 @@
|
|
|
11645
11648
|
ABORTED$1 = 3,
|
|
11646
11649
|
ERRORED$2 = 4,
|
|
11647
11650
|
RENDERING$1 = 5,
|
|
11651
|
+
OPENING = 10,
|
|
11652
|
+
ABORTING$1 = 12,
|
|
11653
|
+
CLOSING$1 = 13,
|
|
11654
|
+
CLOSED$1 = 14,
|
|
11655
|
+
PRERENDER = 21,
|
|
11648
11656
|
TaintRegistryObjects = ReactSharedInternalsServer.TaintRegistryObjects,
|
|
11649
11657
|
TaintRegistryValues = ReactSharedInternalsServer.TaintRegistryValues,
|
|
11650
11658
|
TaintRegistryByteLengths =
|
|
11651
11659
|
ReactSharedInternalsServer.TaintRegistryByteLengths,
|
|
11652
11660
|
TaintRegistryPendingRequests =
|
|
11653
11661
|
ReactSharedInternalsServer.TaintRegistryPendingRequests,
|
|
11654
|
-
ABORTING$1 = 11,
|
|
11655
|
-
CLOSING$1 = 12,
|
|
11656
|
-
CLOSED$1 = 13,
|
|
11657
|
-
PRERENDER = 21,
|
|
11658
11662
|
currentRequest = null,
|
|
11659
11663
|
debugID = null,
|
|
11660
11664
|
modelRoot = !1,
|
|
@@ -13017,5 +13021,5 @@
|
|
|
13017
13021
|
});
|
|
13018
13022
|
});
|
|
13019
13023
|
};
|
|
13020
|
-
exports.version = "19.0.0-experimental-
|
|
13024
|
+
exports.version = "19.0.0-experimental-f2df5694-20240916";
|
|
13021
13025
|
})();
|
|
@@ -644,7 +644,7 @@ function serializeThenable(request, task, thenable) {
|
|
|
644
644
|
newTask.id
|
|
645
645
|
);
|
|
646
646
|
default:
|
|
647
|
-
if (
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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 (
|
|
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 =
|
|
1509
|
-
: ((request.status =
|
|
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 (
|
|
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 =
|
|
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
|
-
|
|
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
|
-
|
|
8627
|
-
|
|
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
|
-
|
|
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-
|
|
8662
|
+
exports.version = "19.0.0-experimental-f2df5694-20240916";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-markup",
|
|
3
|
-
"version": "0.0.0-experimental-
|
|
3
|
+
"version": "0.0.0-experimental-f2df5694-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-
|
|
20
|
+
"react": "0.0.0-experimental-f2df5694-20240916"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|