react-markup 0.0.0-experimental-e06c72fc-20241215 → 0.0.0-experimental-7eb8234f-20241218
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.
|
@@ -2419,12 +2419,12 @@
|
|
|
2419
2419
|
}
|
|
2420
2420
|
function forwardDebugInfo(request, id, debugInfo) {
|
|
2421
2421
|
for (var i = 0; i < debugInfo.length; i++)
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2422
|
+
"number" === typeof debugInfo[i].time
|
|
2423
|
+
? emitTimingChunk(request, id, debugInfo[i].time)
|
|
2424
|
+
: (request.pendingChunks++,
|
|
2425
|
+
"string" === typeof debugInfo[i].name &&
|
|
2426
|
+
outlineComponentInfo(request, debugInfo[i]),
|
|
2427
|
+
emitDebugChunk(request, id, debugInfo[i]));
|
|
2428
2428
|
}
|
|
2429
2429
|
function emitTimingChunk(request, id, timestamp) {
|
|
2430
2430
|
request.pendingChunks++;
|
|
@@ -3614,7 +3614,15 @@
|
|
|
3614
3614
|
response._chunks.forEach(function (chunk) {
|
|
3615
3615
|
"pending" === chunk.status && triggerErrorOnChunk(chunk, error);
|
|
3616
3616
|
});
|
|
3617
|
-
|
|
3617
|
+
supportsUserTiming &&
|
|
3618
|
+
performance.mark("Server Components Track", componentsTrackMarker);
|
|
3619
|
+
flushComponentPerformance(
|
|
3620
|
+
response,
|
|
3621
|
+
getChunk(response, 0),
|
|
3622
|
+
0,
|
|
3623
|
+
-Infinity,
|
|
3624
|
+
-Infinity
|
|
3625
|
+
);
|
|
3618
3626
|
}
|
|
3619
3627
|
function nullRefGetter() {
|
|
3620
3628
|
return null;
|
|
@@ -4471,49 +4479,133 @@
|
|
|
4471
4479
|
);
|
|
4472
4480
|
}
|
|
4473
4481
|
}
|
|
4474
|
-
function flushComponentPerformance(
|
|
4475
|
-
|
|
4482
|
+
function flushComponentPerformance(
|
|
4483
|
+
response,
|
|
4484
|
+
root,
|
|
4485
|
+
trackIdx$jscomp$0,
|
|
4486
|
+
trackTime,
|
|
4487
|
+
parentEndTime
|
|
4488
|
+
) {
|
|
4489
|
+
if (!isArrayImpl(root._children)) {
|
|
4490
|
+
response = root._children;
|
|
4491
|
+
var previousEndTime = response.endTime;
|
|
4492
|
+
if (
|
|
4493
|
+
-Infinity < parentEndTime &&
|
|
4494
|
+
parentEndTime < previousEndTime &&
|
|
4495
|
+
null !== response.component
|
|
4496
|
+
) {
|
|
4497
|
+
var trackIdx = trackIdx$jscomp$0;
|
|
4498
|
+
root = parentEndTime;
|
|
4499
|
+
supportsUserTiming &&
|
|
4500
|
+
0 <= previousEndTime &&
|
|
4501
|
+
10 > trackIdx &&
|
|
4502
|
+
((parentEndTime = response.component.name),
|
|
4503
|
+
(reusableComponentDevToolDetails.color = "tertiary-light"),
|
|
4504
|
+
(reusableComponentDevToolDetails.track = trackNames[trackIdx]),
|
|
4505
|
+
(reusableComponentOptions.start = 0 > root ? 0 : root),
|
|
4506
|
+
(reusableComponentOptions.end = previousEndTime),
|
|
4507
|
+
performance.measure(
|
|
4508
|
+
parentEndTime + " [deduped]",
|
|
4509
|
+
reusableComponentOptions
|
|
4510
|
+
));
|
|
4511
|
+
}
|
|
4512
|
+
response.track = trackIdx$jscomp$0;
|
|
4513
|
+
return response;
|
|
4514
|
+
}
|
|
4476
4515
|
var children = root._children;
|
|
4477
4516
|
"resolved_model" === root.status && initializeModelChunk(root);
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4517
|
+
if ((previousEndTime = root._debugInfo)) {
|
|
4518
|
+
for (trackIdx = 1; trackIdx < previousEndTime.length; trackIdx++)
|
|
4519
|
+
if ("string" === typeof previousEndTime[trackIdx].name) {
|
|
4520
|
+
var startTimeInfo = previousEndTime[trackIdx - 1];
|
|
4521
|
+
if ("number" === typeof startTimeInfo.time) {
|
|
4522
|
+
trackIdx = startTimeInfo.time;
|
|
4523
|
+
trackIdx < trackTime && trackIdx$jscomp$0++;
|
|
4524
|
+
trackTime = trackIdx;
|
|
4525
|
+
break;
|
|
4526
|
+
}
|
|
4527
|
+
}
|
|
4528
|
+
for (trackIdx = previousEndTime.length - 1; 0 <= trackIdx; trackIdx--)
|
|
4529
|
+
(startTimeInfo = previousEndTime[trackIdx]),
|
|
4530
|
+
"number" === typeof startTimeInfo.time &&
|
|
4531
|
+
startTimeInfo.time > parentEndTime &&
|
|
4532
|
+
(parentEndTime = startTimeInfo.time);
|
|
4533
|
+
}
|
|
4534
|
+
trackIdx = {
|
|
4535
|
+
track: trackIdx$jscomp$0,
|
|
4536
|
+
endTime: -Infinity,
|
|
4537
|
+
component: null
|
|
4538
|
+
};
|
|
4539
|
+
root._children = trackIdx;
|
|
4540
|
+
root = -Infinity;
|
|
4541
|
+
startTimeInfo = trackIdx$jscomp$0;
|
|
4542
|
+
var childTrackTime = trackTime;
|
|
4543
|
+
for (trackTime = 0; trackTime < children.length; trackTime++) {
|
|
4544
|
+
childTrackTime = flushComponentPerformance(
|
|
4545
|
+
response,
|
|
4546
|
+
children[trackTime],
|
|
4547
|
+
startTimeInfo,
|
|
4548
|
+
childTrackTime,
|
|
4549
|
+
parentEndTime
|
|
4550
|
+
);
|
|
4551
|
+
null !== childTrackTime.component &&
|
|
4552
|
+
(trackIdx.component = childTrackTime.component);
|
|
4553
|
+
startTimeInfo = childTrackTime.track;
|
|
4554
|
+
var childEndTime = childTrackTime.endTime;
|
|
4555
|
+
childTrackTime = childEndTime;
|
|
4556
|
+
childEndTime > root && (root = childEndTime);
|
|
4557
|
+
}
|
|
4558
|
+
if (previousEndTime)
|
|
4559
|
+
for (
|
|
4560
|
+
parentEndTime = 0, children = previousEndTime.length - 1;
|
|
4561
|
+
0 <= children;
|
|
4562
|
+
children--
|
|
4563
|
+
)
|
|
4486
4564
|
if (
|
|
4487
|
-
((
|
|
4488
|
-
"number" === typeof
|
|
4489
|
-
((
|
|
4490
|
-
|
|
4491
|
-
"string" === typeof
|
|
4565
|
+
((trackTime = previousEndTime[children]),
|
|
4566
|
+
"number" === typeof trackTime.time &&
|
|
4567
|
+
((parentEndTime = trackTime.time),
|
|
4568
|
+
parentEndTime > root && (root = parentEndTime)),
|
|
4569
|
+
"string" === typeof trackTime.name &&
|
|
4570
|
+
0 < children &&
|
|
4571
|
+
((childTrackTime = previousEndTime[children - 1]),
|
|
4572
|
+
"number" === typeof childTrackTime.time))
|
|
4492
4573
|
) {
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
var
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4574
|
+
startTimeInfo = trackIdx$jscomp$0;
|
|
4575
|
+
childTrackTime = childTrackTime.time;
|
|
4576
|
+
childEndTime = root;
|
|
4577
|
+
if (supportsUserTiming && 0 <= childEndTime && 10 > startTimeInfo) {
|
|
4578
|
+
var env = trackTime.env,
|
|
4579
|
+
name = trackTime.name,
|
|
4580
|
+
isPrimaryEnv = env === response._rootEnvironmentName,
|
|
4581
|
+
selfTime = parentEndTime - childTrackTime;
|
|
4582
|
+
reusableComponentDevToolDetails.color =
|
|
4583
|
+
0.5 > selfTime
|
|
4584
|
+
? isPrimaryEnv
|
|
4503
4585
|
? "primary-light"
|
|
4504
|
-
:
|
|
4586
|
+
: "secondary-light"
|
|
4587
|
+
: 50 > selfTime
|
|
4588
|
+
? isPrimaryEnv
|
|
4505
4589
|
? "primary"
|
|
4506
|
-
:
|
|
4590
|
+
: "secondary"
|
|
4591
|
+
: 500 > selfTime
|
|
4592
|
+
? isPrimaryEnv
|
|
4507
4593
|
? "primary-dark"
|
|
4508
|
-
: "
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4594
|
+
: "secondary-dark"
|
|
4595
|
+
: "error";
|
|
4596
|
+
reusableComponentDevToolDetails.track = trackNames[startTimeInfo];
|
|
4597
|
+
reusableComponentOptions.start =
|
|
4598
|
+
0 > childTrackTime ? 0 : childTrackTime;
|
|
4599
|
+
reusableComponentOptions.end = childEndTime;
|
|
4600
|
+
performance.measure(
|
|
4601
|
+
isPrimaryEnv || void 0 === env ? name : name + " [" + env + "]",
|
|
4602
|
+
reusableComponentOptions
|
|
4603
|
+
);
|
|
4514
4604
|
}
|
|
4605
|
+
trackIdx.component = trackTime;
|
|
4515
4606
|
}
|
|
4516
|
-
|
|
4607
|
+
trackIdx.endTime = root;
|
|
4608
|
+
return trackIdx;
|
|
4517
4609
|
}
|
|
4518
4610
|
function processFullStringRow(response, id, tag, row) {
|
|
4519
4611
|
switch (tag) {
|
|
@@ -11962,15 +12054,30 @@
|
|
|
11962
12054
|
supportsUserTiming =
|
|
11963
12055
|
"undefined" !== typeof performance &&
|
|
11964
12056
|
"function" === typeof performance.measure,
|
|
12057
|
+
componentsTrackMarker = {
|
|
12058
|
+
startTime: 0.001,
|
|
12059
|
+
detail: {
|
|
12060
|
+
devtools: {
|
|
12061
|
+
color: "primary-light",
|
|
12062
|
+
track: "Primary",
|
|
12063
|
+
trackGroup: "Server Components \u269b"
|
|
12064
|
+
}
|
|
12065
|
+
}
|
|
12066
|
+
},
|
|
11965
12067
|
reusableComponentDevToolDetails = {
|
|
11966
12068
|
color: "primary",
|
|
11967
|
-
track: "
|
|
12069
|
+
track: "",
|
|
12070
|
+
trackGroup: "Server Components \u269b"
|
|
11968
12071
|
},
|
|
11969
12072
|
reusableComponentOptions = {
|
|
11970
12073
|
start: -0,
|
|
11971
12074
|
end: -0,
|
|
11972
12075
|
detail: { devtools: reusableComponentDevToolDetails }
|
|
11973
12076
|
},
|
|
12077
|
+
trackNames =
|
|
12078
|
+
"Primary Parallel Parallel\u200b Parallel\u200b\u200b Parallel\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b Parallel\u200b\u200b\u200b\u200b\u200b\u200b\u200b\u200b".split(
|
|
12079
|
+
" "
|
|
12080
|
+
),
|
|
11974
12081
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
11975
12082
|
ReactSharedInteralsServer =
|
|
11976
12083
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -13189,5 +13296,5 @@
|
|
|
13189
13296
|
});
|
|
13190
13297
|
});
|
|
13191
13298
|
};
|
|
13192
|
-
exports.version = "19.1.0-experimental-
|
|
13299
|
+
exports.version = "19.1.0-experimental-7eb8234f-20241218";
|
|
13193
13300
|
})();
|
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-7eb8234f-20241218",
|
|
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-7eb8234f-20241218"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|