react-markup 0.0.0-experimental-79ddf5b5-20241210 → 0.0.0-experimental-4dff0e62-20241213
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.
|
@@ -3477,6 +3477,7 @@
|
|
|
3477
3477
|
this.value = value;
|
|
3478
3478
|
this.reason = reason;
|
|
3479
3479
|
this._response = response;
|
|
3480
|
+
this._children = [];
|
|
3480
3481
|
this._debugInfo = null;
|
|
3481
3482
|
}
|
|
3482
3483
|
function readChunk(chunk) {
|
|
@@ -3569,12 +3570,14 @@
|
|
|
3569
3570
|
}
|
|
3570
3571
|
}
|
|
3571
3572
|
function initializeModelChunk(chunk) {
|
|
3572
|
-
var prevHandler = initializingHandler
|
|
3573
|
+
var prevHandler = initializingHandler,
|
|
3574
|
+
prevChunk = initializingChunk;
|
|
3573
3575
|
initializingHandler = null;
|
|
3574
3576
|
var resolvedModel = chunk.value;
|
|
3575
3577
|
chunk.status = "blocked";
|
|
3576
3578
|
chunk.value = null;
|
|
3577
3579
|
chunk.reason = null;
|
|
3580
|
+
initializingChunk = chunk;
|
|
3578
3581
|
try {
|
|
3579
3582
|
var value = JSON.parse(resolvedModel, chunk._response._fromJSON),
|
|
3580
3583
|
resolveListeners = chunk.value;
|
|
@@ -3595,7 +3598,7 @@
|
|
|
3595
3598
|
} catch (error) {
|
|
3596
3599
|
(chunk.status = "rejected"), (chunk.reason = error);
|
|
3597
3600
|
} finally {
|
|
3598
|
-
initializingHandler = prevHandler;
|
|
3601
|
+
(initializingHandler = prevHandler), (initializingChunk = prevChunk);
|
|
3599
3602
|
}
|
|
3600
3603
|
}
|
|
3601
3604
|
function initializeModuleChunk(chunk) {
|
|
@@ -3611,6 +3614,7 @@
|
|
|
3611
3614
|
response._chunks.forEach(function (chunk) {
|
|
3612
3615
|
"pending" === chunk.status && triggerErrorOnChunk(chunk, error);
|
|
3613
3616
|
});
|
|
3617
|
+
flushComponentPerformance(getChunk(response, 0));
|
|
3614
3618
|
}
|
|
3615
3619
|
function nullRefGetter() {
|
|
3616
3620
|
return null;
|
|
@@ -3751,6 +3755,9 @@
|
|
|
3751
3755
|
reference = reference.split(":");
|
|
3752
3756
|
var id = parseInt(reference[0], 16);
|
|
3753
3757
|
id = getChunk(response, id);
|
|
3758
|
+
null !== initializingChunk &&
|
|
3759
|
+
isArrayImpl(initializingChunk._children) &&
|
|
3760
|
+
initializingChunk._children.push(id);
|
|
3754
3761
|
switch (id.status) {
|
|
3755
3762
|
case "resolved_model":
|
|
3756
3763
|
initializeModelChunk(id);
|
|
@@ -3859,12 +3866,19 @@
|
|
|
3859
3866
|
return (
|
|
3860
3867
|
(parentObject = parseInt(value.slice(2), 16)),
|
|
3861
3868
|
(response = getChunk(response, parentObject)),
|
|
3869
|
+
null !== initializingChunk &&
|
|
3870
|
+
isArrayImpl(initializingChunk._children) &&
|
|
3871
|
+
initializingChunk._children.push(response),
|
|
3862
3872
|
createLazyChunkWrapper(response)
|
|
3863
3873
|
);
|
|
3864
3874
|
case "@":
|
|
3865
3875
|
if (2 === value.length) return new Promise(function () {});
|
|
3866
3876
|
parentObject = parseInt(value.slice(2), 16);
|
|
3867
|
-
|
|
3877
|
+
response = getChunk(response, parentObject);
|
|
3878
|
+
null !== initializingChunk &&
|
|
3879
|
+
isArrayImpl(initializingChunk._children) &&
|
|
3880
|
+
initializingChunk._children.push(response);
|
|
3881
|
+
return response;
|
|
3868
3882
|
case "S":
|
|
3869
3883
|
return Symbol.for(value.slice(2));
|
|
3870
3884
|
case "F":
|
|
@@ -4457,6 +4471,50 @@
|
|
|
4457
4471
|
);
|
|
4458
4472
|
}
|
|
4459
4473
|
}
|
|
4474
|
+
function flushComponentPerformance(root) {
|
|
4475
|
+
if (!isArrayImpl(root._children)) return root._children.endTime;
|
|
4476
|
+
var children = root._children;
|
|
4477
|
+
"resolved_model" === root.status && initializeModelChunk(root);
|
|
4478
|
+
var result = { endTime: -Infinity };
|
|
4479
|
+
root._children = result;
|
|
4480
|
+
for (var childrenEndTime = -Infinity, i = 0; i < children.length; i++) {
|
|
4481
|
+
var childEndTime = flushComponentPerformance(children[i]);
|
|
4482
|
+
childEndTime > childrenEndTime && (childrenEndTime = childEndTime);
|
|
4483
|
+
}
|
|
4484
|
+
if ((root = root._debugInfo))
|
|
4485
|
+
for (children = 0, i = root.length - 1; 0 <= i; i--)
|
|
4486
|
+
if (
|
|
4487
|
+
((childEndTime = root[i]),
|
|
4488
|
+
"number" === typeof childEndTime.time &&
|
|
4489
|
+
((children = childEndTime.time),
|
|
4490
|
+
children > childrenEndTime && (childrenEndTime = children)),
|
|
4491
|
+
"string" === typeof childEndTime.name && 0 < i)
|
|
4492
|
+
) {
|
|
4493
|
+
var componentInfo = childEndTime;
|
|
4494
|
+
childEndTime = root[i - 1];
|
|
4495
|
+
if ("number" === typeof childEndTime.time) {
|
|
4496
|
+
childEndTime = childEndTime.time;
|
|
4497
|
+
var childrenEndTime$jscomp$0 = childrenEndTime;
|
|
4498
|
+
if (supportsUserTiming && 0 <= childrenEndTime$jscomp$0) {
|
|
4499
|
+
componentInfo = componentInfo.name;
|
|
4500
|
+
var selfTime = children - childEndTime;
|
|
4501
|
+
reusableComponentDevToolDetails.color =
|
|
4502
|
+
0.5 > selfTime
|
|
4503
|
+
? "primary-light"
|
|
4504
|
+
: 50 > selfTime
|
|
4505
|
+
? "primary"
|
|
4506
|
+
: 500 > selfTime
|
|
4507
|
+
? "primary-dark"
|
|
4508
|
+
: "error";
|
|
4509
|
+
reusableComponentOptions.start =
|
|
4510
|
+
0 > childEndTime ? 0 : childEndTime;
|
|
4511
|
+
reusableComponentOptions.end = childrenEndTime$jscomp$0;
|
|
4512
|
+
performance.measure(componentInfo, reusableComponentOptions);
|
|
4513
|
+
}
|
|
4514
|
+
}
|
|
4515
|
+
}
|
|
4516
|
+
return (result.endTime = childrenEndTime);
|
|
4517
|
+
}
|
|
4460
4518
|
function processFullStringRow(response, id, tag, row) {
|
|
4461
4519
|
switch (tag) {
|
|
4462
4520
|
case 73:
|
|
@@ -11899,6 +11957,18 @@
|
|
|
11899
11957
|
fakeServerFunctionIdx = 0,
|
|
11900
11958
|
FunctionBind = Function.prototype.bind,
|
|
11901
11959
|
ArraySlice = Array.prototype.slice,
|
|
11960
|
+
supportsUserTiming =
|
|
11961
|
+
"undefined" !== typeof performance &&
|
|
11962
|
+
"function" === typeof performance.measure,
|
|
11963
|
+
reusableComponentDevToolDetails = {
|
|
11964
|
+
color: "primary",
|
|
11965
|
+
track: "Server Components \u269b"
|
|
11966
|
+
},
|
|
11967
|
+
reusableComponentOptions = {
|
|
11968
|
+
start: -0,
|
|
11969
|
+
end: -0,
|
|
11970
|
+
detail: { devtools: reusableComponentDevToolDetails }
|
|
11971
|
+
},
|
|
11902
11972
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
11903
11973
|
ReactSharedInteralsServer =
|
|
11904
11974
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -11932,6 +12002,7 @@
|
|
|
11932
12002
|
}
|
|
11933
12003
|
};
|
|
11934
12004
|
var initializingHandler = null,
|
|
12005
|
+
initializingChunk = null,
|
|
11935
12006
|
supportsCreateTask = !!console.createTask,
|
|
11936
12007
|
fakeFunctionCache = new Map(),
|
|
11937
12008
|
fakeFunctionIdx = 0,
|
|
@@ -13116,5 +13187,5 @@
|
|
|
13116
13187
|
});
|
|
13117
13188
|
});
|
|
13118
13189
|
};
|
|
13119
|
-
exports.version = "19.
|
|
13190
|
+
exports.version = "19.1.0-experimental-4dff0e62-20241213";
|
|
13120
13191
|
})();
|
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-4dff0e62-20241213",
|
|
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-4dff0e62-20241213"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|