react-markup 0.0.0-experimental-4dff0e62-20241213 → 0.0.0-experimental-d4287258-20241217
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.
|
@@ -2317,7 +2317,7 @@
|
|
|
2317
2317
|
: children$jscomp$6;
|
|
2318
2318
|
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
|
|
2319
2319
|
? console.error(
|
|
2320
|
-
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be
|
|
2320
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
|
|
2321
2321
|
children$jscomp$6.length
|
|
2322
2322
|
)
|
|
2323
2323
|
: "function" === typeof child || "symbol" === typeof child
|
|
@@ -4179,7 +4179,7 @@
|
|
|
4179
4179
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
4180
4180
|
if ("function" === typeof type)
|
|
4181
4181
|
return type.prototype && type.prototype.isReactComponent
|
|
4182
|
-
?
|
|
4182
|
+
? describeNativeComponentFrame(type, !0)
|
|
4183
4183
|
: describeNativeComponentFrame(type, !1);
|
|
4184
4184
|
if ("object" === typeof type && null !== type) {
|
|
4185
4185
|
switch (type.$$typeof) {
|
|
@@ -5245,7 +5245,6 @@
|
|
|
5245
5245
|
} else {
|
|
5246
5246
|
switch (type) {
|
|
5247
5247
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
5248
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
5249
5248
|
case REACT_STRICT_MODE_TYPE:
|
|
5250
5249
|
case REACT_PROFILER_TYPE:
|
|
5251
5250
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -7635,7 +7634,6 @@
|
|
|
7635
7634
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
7636
7635
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
7637
7636
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
7638
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
7639
7637
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
7640
7638
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
7641
7639
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -8503,29 +8501,29 @@
|
|
|
8503
8501
|
return treeId + ":";
|
|
8504
8502
|
},
|
|
8505
8503
|
useSyncExternalStore: clientHookNotSupported,
|
|
8506
|
-
|
|
8507
|
-
|
|
8504
|
+
useOptimistic: function (passthrough) {
|
|
8505
|
+
resolveCurrentlyRenderingComponent();
|
|
8506
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
8508
8507
|
},
|
|
8509
|
-
|
|
8510
|
-
|
|
8508
|
+
useActionState: useActionState,
|
|
8509
|
+
useFormState: useActionState,
|
|
8510
|
+
useHostTransitionStatus: function () {
|
|
8511
|
+
resolveCurrentlyRenderingComponent();
|
|
8512
|
+
return NotPending;
|
|
8511
8513
|
},
|
|
8512
8514
|
useMemoCache: function (size) {
|
|
8513
8515
|
for (var data = Array(size), i = 0; i < size; i++)
|
|
8514
8516
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
8515
8517
|
return data;
|
|
8516
8518
|
},
|
|
8517
|
-
|
|
8518
|
-
|
|
8519
|
-
return NotPending;
|
|
8519
|
+
useCacheRefresh: function () {
|
|
8520
|
+
return unsupportedRefresh;
|
|
8520
8521
|
},
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
8522
|
+
useEffectEvent: function () {
|
|
8523
|
+
return throwOnUseEffectEventCall;
|
|
8524
8524
|
}
|
|
8525
|
-
}
|
|
8526
|
-
|
|
8527
|
-
HooksDispatcher.useActionState = useActionState;
|
|
8528
|
-
var currentResumableState = null,
|
|
8525
|
+
},
|
|
8526
|
+
currentResumableState = null,
|
|
8529
8527
|
currentTaskInDEV = null,
|
|
8530
8528
|
DefaultAsyncDispatcher = {
|
|
8531
8529
|
getCacheForType: function () {
|
|
@@ -8635,5 +8633,5 @@
|
|
|
8635
8633
|
});
|
|
8636
8634
|
});
|
|
8637
8635
|
};
|
|
8638
|
-
exports.version = "19.1.0-experimental-
|
|
8636
|
+
exports.version = "19.1.0-experimental-d4287258-20241217";
|
|
8639
8637
|
})();
|
|
@@ -48,7 +48,6 @@ var React = require("react"),
|
|
|
48
48
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
49
49
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
50
50
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
51
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
52
51
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
53
52
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
54
53
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -2926,80 +2925,81 @@ function clientHookNotSupported() {
|
|
|
2926
2925
|
);
|
|
2927
2926
|
}
|
|
2928
2927
|
var HooksDispatcher = {
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2928
|
+
readContext: function (context) {
|
|
2929
|
+
return context._currentValue2;
|
|
2930
|
+
},
|
|
2931
|
+
use: function (usable) {
|
|
2932
|
+
if (null !== usable && "object" === typeof usable) {
|
|
2933
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
2934
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE)
|
|
2935
|
+
return usable._currentValue2;
|
|
2936
|
+
}
|
|
2937
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
2938
|
+
},
|
|
2939
|
+
useContext: function (context) {
|
|
2940
|
+
resolveCurrentlyRenderingComponent();
|
|
2941
|
+
return context._currentValue2;
|
|
2942
|
+
},
|
|
2943
|
+
useMemo: useMemo,
|
|
2944
|
+
useReducer: clientHookNotSupported,
|
|
2945
|
+
useRef: clientHookNotSupported,
|
|
2946
|
+
useState: clientHookNotSupported,
|
|
2947
|
+
useInsertionEffect: clientHookNotSupported,
|
|
2948
|
+
useLayoutEffect: clientHookNotSupported,
|
|
2949
|
+
useCallback: function (callback, deps) {
|
|
2950
|
+
return useMemo(function () {
|
|
2951
|
+
return callback;
|
|
2952
|
+
}, deps);
|
|
2953
|
+
},
|
|
2954
|
+
useImperativeHandle: clientHookNotSupported,
|
|
2955
|
+
useEffect: clientHookNotSupported,
|
|
2956
|
+
useDebugValue: function () {},
|
|
2957
|
+
useDeferredValue: clientHookNotSupported,
|
|
2958
|
+
useTransition: clientHookNotSupported,
|
|
2959
|
+
useId: function () {
|
|
2960
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
2961
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
2962
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
2963
|
+
JSCompiler_inline_result =
|
|
2964
|
+
(
|
|
2965
|
+
JSCompiler_inline_result &
|
|
2966
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
2967
|
+
).toString(32) + overflow;
|
|
2968
|
+
var resumableState = currentResumableState;
|
|
2969
|
+
if (null === resumableState)
|
|
2970
|
+
throw Error(
|
|
2971
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
2972
|
+
);
|
|
2973
|
+
overflow = localIdCounter++;
|
|
2974
|
+
JSCompiler_inline_result =
|
|
2975
|
+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
2976
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
2977
|
+
return JSCompiler_inline_result + ":";
|
|
2978
|
+
},
|
|
2979
|
+
useSyncExternalStore: clientHookNotSupported,
|
|
2980
|
+
useOptimistic: function (passthrough) {
|
|
2981
|
+
resolveCurrentlyRenderingComponent();
|
|
2982
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
2983
|
+
},
|
|
2984
|
+
useActionState: useActionState,
|
|
2985
|
+
useFormState: useActionState,
|
|
2986
|
+
useHostTransitionStatus: function () {
|
|
2987
|
+
resolveCurrentlyRenderingComponent();
|
|
2988
|
+
return sharedNotPendingObject;
|
|
2989
|
+
},
|
|
2990
|
+
useMemoCache: function (size) {
|
|
2991
|
+
for (var data = Array(size), i = 0; i < size; i++)
|
|
2992
|
+
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
2993
|
+
return data;
|
|
2994
|
+
},
|
|
2995
|
+
useCacheRefresh: function () {
|
|
2996
|
+
return unsupportedRefresh;
|
|
2997
|
+
},
|
|
2998
|
+
useEffectEvent: function () {
|
|
2999
|
+
return throwOnUseEffectEventCall;
|
|
2936
3000
|
}
|
|
2937
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
2938
|
-
},
|
|
2939
|
-
useContext: function (context) {
|
|
2940
|
-
resolveCurrentlyRenderingComponent();
|
|
2941
|
-
return context._currentValue2;
|
|
2942
|
-
},
|
|
2943
|
-
useMemo: useMemo,
|
|
2944
|
-
useReducer: clientHookNotSupported,
|
|
2945
|
-
useRef: clientHookNotSupported,
|
|
2946
|
-
useState: clientHookNotSupported,
|
|
2947
|
-
useInsertionEffect: clientHookNotSupported,
|
|
2948
|
-
useLayoutEffect: clientHookNotSupported,
|
|
2949
|
-
useCallback: function (callback, deps) {
|
|
2950
|
-
return useMemo(function () {
|
|
2951
|
-
return callback;
|
|
2952
|
-
}, deps);
|
|
2953
|
-
},
|
|
2954
|
-
useImperativeHandle: clientHookNotSupported,
|
|
2955
|
-
useEffect: clientHookNotSupported,
|
|
2956
|
-
useDebugValue: function () {},
|
|
2957
|
-
useDeferredValue: clientHookNotSupported,
|
|
2958
|
-
useTransition: clientHookNotSupported,
|
|
2959
|
-
useId: function () {
|
|
2960
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
2961
|
-
var overflow = JSCompiler_inline_result.overflow;
|
|
2962
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
2963
|
-
JSCompiler_inline_result =
|
|
2964
|
-
(
|
|
2965
|
-
JSCompiler_inline_result &
|
|
2966
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
2967
|
-
).toString(32) + overflow;
|
|
2968
|
-
var resumableState = currentResumableState;
|
|
2969
|
-
if (null === resumableState)
|
|
2970
|
-
throw Error(
|
|
2971
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
2972
|
-
);
|
|
2973
|
-
overflow = localIdCounter++;
|
|
2974
|
-
JSCompiler_inline_result =
|
|
2975
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
2976
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
2977
|
-
return JSCompiler_inline_result + ":";
|
|
2978
3001
|
},
|
|
2979
|
-
|
|
2980
|
-
useCacheRefresh: function () {
|
|
2981
|
-
return unsupportedRefresh;
|
|
2982
|
-
},
|
|
2983
|
-
useEffectEvent: function () {
|
|
2984
|
-
return throwOnUseEffectEventCall;
|
|
2985
|
-
},
|
|
2986
|
-
useMemoCache: function (size) {
|
|
2987
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
|
2988
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
2989
|
-
return data;
|
|
2990
|
-
},
|
|
2991
|
-
useHostTransitionStatus: function () {
|
|
2992
|
-
resolveCurrentlyRenderingComponent();
|
|
2993
|
-
return sharedNotPendingObject;
|
|
2994
|
-
},
|
|
2995
|
-
useOptimistic: function (passthrough) {
|
|
2996
|
-
resolveCurrentlyRenderingComponent();
|
|
2997
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
2998
|
-
}
|
|
2999
|
-
};
|
|
3000
|
-
HooksDispatcher.useFormState = useActionState;
|
|
3001
|
-
HooksDispatcher.useActionState = useActionState;
|
|
3002
|
-
var currentResumableState = null,
|
|
3002
|
+
currentResumableState = null,
|
|
3003
3003
|
DefaultAsyncDispatcher = {
|
|
3004
3004
|
getCacheForType: function () {
|
|
3005
3005
|
throw Error("Not implemented.");
|
|
@@ -3166,7 +3166,7 @@ function describeComponentStackByType(type) {
|
|
|
3166
3166
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
3167
3167
|
if ("function" === typeof type)
|
|
3168
3168
|
return type.prototype && type.prototype.isReactComponent
|
|
3169
|
-
?
|
|
3169
|
+
? describeNativeComponentFrame(type, !0)
|
|
3170
3170
|
: describeNativeComponentFrame(type, !1);
|
|
3171
3171
|
if ("object" === typeof type && null !== type) {
|
|
3172
3172
|
switch (type.$$typeof) {
|
|
@@ -3758,7 +3758,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
3758
3758
|
else {
|
|
3759
3759
|
switch (type) {
|
|
3760
3760
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
3761
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
3762
3761
|
case REACT_STRICT_MODE_TYPE:
|
|
3763
3762
|
case REACT_PROFILER_TYPE:
|
|
3764
3763
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -5710,4 +5709,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
5710
5709
|
});
|
|
5711
5710
|
});
|
|
5712
5711
|
};
|
|
5713
|
-
exports.version = "19.1.0-experimental-
|
|
5712
|
+
exports.version = "19.1.0-experimental-d4287258-20241217";
|
|
@@ -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) {
|
|
@@ -6738,7 +6830,7 @@
|
|
|
6738
6830
|
: children$jscomp$6;
|
|
6739
6831
|
Array.isArray(children$jscomp$6) && 1 < children$jscomp$6.length
|
|
6740
6832
|
? console.error(
|
|
6741
|
-
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be
|
|
6833
|
+
"React expects the `children` prop of <title> tags to be a string, number, bigint, or object with a novel `toString` method but found an Array with length %s instead. Browsers treat all child Nodes of <title> tags as Text content and React expects to be able to convert `children` of <title> tags to a single string value which is why Arrays of length greater than 1 are not supported. When using JSX it can be common to combine text nodes and value nodes. For example: <title>hello {nameOfUser}</title>. While not immediately apparent, `children` in this case is an Array with length 2. If your `children` prop is using this form try rewriting it using a template string: <title>{`hello ${nameOfUser}`}</title>.",
|
|
6742
6834
|
children$jscomp$6.length
|
|
6743
6835
|
)
|
|
6744
6836
|
: "function" === typeof child || "symbol" === typeof child
|
|
@@ -8298,7 +8390,7 @@
|
|
|
8298
8390
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
8299
8391
|
if ("function" === typeof type)
|
|
8300
8392
|
return type.prototype && type.prototype.isReactComponent
|
|
8301
|
-
?
|
|
8393
|
+
? describeNativeComponentFrame(type, !0)
|
|
8302
8394
|
: describeNativeComponentFrame(type, !1);
|
|
8303
8395
|
if ("object" === typeof type && null !== type) {
|
|
8304
8396
|
switch (type.$$typeof) {
|
|
@@ -9350,7 +9442,6 @@
|
|
|
9350
9442
|
} else {
|
|
9351
9443
|
switch (type) {
|
|
9352
9444
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
9353
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
9354
9445
|
case REACT_STRICT_MODE_TYPE:
|
|
9355
9446
|
case REACT_PROFILER_TYPE:
|
|
9356
9447
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -11764,7 +11855,6 @@
|
|
|
11764
11855
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
11765
11856
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
11766
11857
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
11767
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
11768
11858
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
11769
11859
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
11770
11860
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -11810,6 +11900,10 @@
|
|
|
11810
11900
|
":"
|
|
11811
11901
|
);
|
|
11812
11902
|
},
|
|
11903
|
+
useHostTransitionStatus: unsupportedHook,
|
|
11904
|
+
useOptimistic: unsupportedHook,
|
|
11905
|
+
useFormState: unsupportedHook,
|
|
11906
|
+
useActionState: unsupportedHook,
|
|
11813
11907
|
useSyncExternalStore: unsupportedHook,
|
|
11814
11908
|
useCacheRefresh: function () {
|
|
11815
11909
|
return unsupportedRefresh$1;
|
|
@@ -11960,15 +12054,30 @@
|
|
|
11960
12054
|
supportsUserTiming =
|
|
11961
12055
|
"undefined" !== typeof performance &&
|
|
11962
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
|
+
},
|
|
11963
12067
|
reusableComponentDevToolDetails = {
|
|
11964
12068
|
color: "primary",
|
|
11965
|
-
track: "
|
|
12069
|
+
track: "",
|
|
12070
|
+
trackGroup: "Server Components \u269b"
|
|
11966
12071
|
},
|
|
11967
12072
|
reusableComponentOptions = {
|
|
11968
12073
|
start: -0,
|
|
11969
12074
|
end: -0,
|
|
11970
12075
|
detail: { devtools: reusableComponentDevToolDetails }
|
|
11971
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
|
+
),
|
|
11972
12081
|
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
11973
12082
|
ReactSharedInteralsServer =
|
|
11974
12083
|
React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
@@ -12914,29 +13023,29 @@
|
|
|
12914
13023
|
return treeId + ":";
|
|
12915
13024
|
},
|
|
12916
13025
|
useSyncExternalStore: clientHookNotSupported,
|
|
12917
|
-
|
|
12918
|
-
|
|
13026
|
+
useOptimistic: function (passthrough) {
|
|
13027
|
+
resolveCurrentlyRenderingComponent();
|
|
13028
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
12919
13029
|
},
|
|
12920
|
-
|
|
12921
|
-
|
|
13030
|
+
useActionState: useActionState,
|
|
13031
|
+
useFormState: useActionState,
|
|
13032
|
+
useHostTransitionStatus: function () {
|
|
13033
|
+
resolveCurrentlyRenderingComponent();
|
|
13034
|
+
return NotPending;
|
|
12922
13035
|
},
|
|
12923
13036
|
useMemoCache: function (size) {
|
|
12924
13037
|
for (var data = Array(size), i = 0; i < size; i++)
|
|
12925
13038
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
12926
13039
|
return data;
|
|
12927
13040
|
},
|
|
12928
|
-
|
|
12929
|
-
|
|
12930
|
-
return NotPending;
|
|
13041
|
+
useCacheRefresh: function () {
|
|
13042
|
+
return unsupportedRefresh;
|
|
12931
13043
|
},
|
|
12932
|
-
|
|
12933
|
-
|
|
12934
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
13044
|
+
useEffectEvent: function () {
|
|
13045
|
+
return throwOnUseEffectEventCall;
|
|
12935
13046
|
}
|
|
12936
|
-
}
|
|
12937
|
-
|
|
12938
|
-
HooksDispatcher.useActionState = useActionState;
|
|
12939
|
-
var currentResumableState = null,
|
|
13047
|
+
},
|
|
13048
|
+
currentResumableState = null,
|
|
12940
13049
|
currentTaskInDEV = null,
|
|
12941
13050
|
DefaultAsyncDispatcher = {
|
|
12942
13051
|
getCacheForType: function () {
|
|
@@ -13187,5 +13296,5 @@
|
|
|
13187
13296
|
});
|
|
13188
13297
|
});
|
|
13189
13298
|
};
|
|
13190
|
-
exports.version = "19.1.0-experimental-
|
|
13299
|
+
exports.version = "19.1.0-experimental-d4287258-20241217";
|
|
13191
13300
|
})();
|
|
@@ -118,7 +118,6 @@ var CLIENT_REFERENCE_TAG$1 = Symbol.for("react.client.reference"),
|
|
|
118
118
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
119
119
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
120
120
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
121
|
-
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
122
121
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
123
122
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
124
123
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -215,6 +214,10 @@ var HooksDispatcher$1 = {
|
|
|
215
214
|
useImperativeHandle: unsupportedHook,
|
|
216
215
|
useEffect: unsupportedHook,
|
|
217
216
|
useId: useId$1,
|
|
217
|
+
useHostTransitionStatus: unsupportedHook,
|
|
218
|
+
useOptimistic: unsupportedHook,
|
|
219
|
+
useFormState: unsupportedHook,
|
|
220
|
+
useActionState: unsupportedHook,
|
|
218
221
|
useSyncExternalStore: unsupportedHook,
|
|
219
222
|
useCacheRefresh: function () {
|
|
220
223
|
return unsupportedRefresh$1;
|
|
@@ -5755,80 +5758,81 @@ function clientHookNotSupported() {
|
|
|
5755
5758
|
);
|
|
5756
5759
|
}
|
|
5757
5760
|
var HooksDispatcher = {
|
|
5758
|
-
|
|
5759
|
-
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5761
|
+
readContext: function (context) {
|
|
5762
|
+
return context._currentValue2;
|
|
5763
|
+
},
|
|
5764
|
+
use: function (usable) {
|
|
5765
|
+
if (null !== usable && "object" === typeof usable) {
|
|
5766
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
5767
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE)
|
|
5768
|
+
return usable._currentValue2;
|
|
5769
|
+
}
|
|
5770
|
+
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
5771
|
+
},
|
|
5772
|
+
useContext: function (context) {
|
|
5773
|
+
resolveCurrentlyRenderingComponent();
|
|
5774
|
+
return context._currentValue2;
|
|
5775
|
+
},
|
|
5776
|
+
useMemo: useMemo,
|
|
5777
|
+
useReducer: clientHookNotSupported,
|
|
5778
|
+
useRef: clientHookNotSupported,
|
|
5779
|
+
useState: clientHookNotSupported,
|
|
5780
|
+
useInsertionEffect: clientHookNotSupported,
|
|
5781
|
+
useLayoutEffect: clientHookNotSupported,
|
|
5782
|
+
useCallback: function (callback, deps) {
|
|
5783
|
+
return useMemo(function () {
|
|
5784
|
+
return callback;
|
|
5785
|
+
}, deps);
|
|
5786
|
+
},
|
|
5787
|
+
useImperativeHandle: clientHookNotSupported,
|
|
5788
|
+
useEffect: clientHookNotSupported,
|
|
5789
|
+
useDebugValue: function () {},
|
|
5790
|
+
useDeferredValue: clientHookNotSupported,
|
|
5791
|
+
useTransition: clientHookNotSupported,
|
|
5792
|
+
useId: function () {
|
|
5793
|
+
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
5794
|
+
var overflow = JSCompiler_inline_result.overflow;
|
|
5795
|
+
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
5796
|
+
JSCompiler_inline_result =
|
|
5797
|
+
(
|
|
5798
|
+
JSCompiler_inline_result &
|
|
5799
|
+
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
5800
|
+
).toString(32) + overflow;
|
|
5801
|
+
var resumableState = currentResumableState;
|
|
5802
|
+
if (null === resumableState)
|
|
5803
|
+
throw Error(
|
|
5804
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
5805
|
+
);
|
|
5806
|
+
overflow = localIdCounter++;
|
|
5807
|
+
JSCompiler_inline_result =
|
|
5808
|
+
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
5809
|
+
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
5810
|
+
return JSCompiler_inline_result + ":";
|
|
5811
|
+
},
|
|
5812
|
+
useSyncExternalStore: clientHookNotSupported,
|
|
5813
|
+
useOptimistic: function (passthrough) {
|
|
5814
|
+
resolveCurrentlyRenderingComponent();
|
|
5815
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
5816
|
+
},
|
|
5817
|
+
useActionState: useActionState,
|
|
5818
|
+
useFormState: useActionState,
|
|
5819
|
+
useHostTransitionStatus: function () {
|
|
5820
|
+
resolveCurrentlyRenderingComponent();
|
|
5821
|
+
return sharedNotPendingObject;
|
|
5822
|
+
},
|
|
5823
|
+
useMemoCache: function (size) {
|
|
5824
|
+
for (var data = Array(size), i = 0; i < size; i++)
|
|
5825
|
+
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
5826
|
+
return data;
|
|
5827
|
+
},
|
|
5828
|
+
useCacheRefresh: function () {
|
|
5829
|
+
return unsupportedRefresh;
|
|
5830
|
+
},
|
|
5831
|
+
useEffectEvent: function () {
|
|
5832
|
+
return throwOnUseEffectEventCall;
|
|
5765
5833
|
}
|
|
5766
|
-
throw Error("An unsupported type was passed to use(): " + String(usable));
|
|
5767
|
-
},
|
|
5768
|
-
useContext: function (context) {
|
|
5769
|
-
resolveCurrentlyRenderingComponent();
|
|
5770
|
-
return context._currentValue2;
|
|
5771
|
-
},
|
|
5772
|
-
useMemo: useMemo,
|
|
5773
|
-
useReducer: clientHookNotSupported,
|
|
5774
|
-
useRef: clientHookNotSupported,
|
|
5775
|
-
useState: clientHookNotSupported,
|
|
5776
|
-
useInsertionEffect: clientHookNotSupported,
|
|
5777
|
-
useLayoutEffect: clientHookNotSupported,
|
|
5778
|
-
useCallback: function (callback, deps) {
|
|
5779
|
-
return useMemo(function () {
|
|
5780
|
-
return callback;
|
|
5781
|
-
}, deps);
|
|
5782
5834
|
},
|
|
5783
|
-
|
|
5784
|
-
useEffect: clientHookNotSupported,
|
|
5785
|
-
useDebugValue: function () {},
|
|
5786
|
-
useDeferredValue: clientHookNotSupported,
|
|
5787
|
-
useTransition: clientHookNotSupported,
|
|
5788
|
-
useId: function () {
|
|
5789
|
-
var JSCompiler_inline_result = currentlyRenderingTask.treeContext;
|
|
5790
|
-
var overflow = JSCompiler_inline_result.overflow;
|
|
5791
|
-
JSCompiler_inline_result = JSCompiler_inline_result.id;
|
|
5792
|
-
JSCompiler_inline_result =
|
|
5793
|
-
(
|
|
5794
|
-
JSCompiler_inline_result &
|
|
5795
|
-
~(1 << (32 - clz32(JSCompiler_inline_result) - 1))
|
|
5796
|
-
).toString(32) + overflow;
|
|
5797
|
-
var resumableState = currentResumableState;
|
|
5798
|
-
if (null === resumableState)
|
|
5799
|
-
throw Error(
|
|
5800
|
-
"Invalid hook call. Hooks can only be called inside of the body of a function component."
|
|
5801
|
-
);
|
|
5802
|
-
overflow = localIdCounter++;
|
|
5803
|
-
JSCompiler_inline_result =
|
|
5804
|
-
":" + resumableState.idPrefix + "R" + JSCompiler_inline_result;
|
|
5805
|
-
0 < overflow && (JSCompiler_inline_result += "H" + overflow.toString(32));
|
|
5806
|
-
return JSCompiler_inline_result + ":";
|
|
5807
|
-
},
|
|
5808
|
-
useSyncExternalStore: clientHookNotSupported,
|
|
5809
|
-
useCacheRefresh: function () {
|
|
5810
|
-
return unsupportedRefresh;
|
|
5811
|
-
},
|
|
5812
|
-
useEffectEvent: function () {
|
|
5813
|
-
return throwOnUseEffectEventCall;
|
|
5814
|
-
},
|
|
5815
|
-
useMemoCache: function (size) {
|
|
5816
|
-
for (var data = Array(size), i = 0; i < size; i++)
|
|
5817
|
-
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
5818
|
-
return data;
|
|
5819
|
-
},
|
|
5820
|
-
useHostTransitionStatus: function () {
|
|
5821
|
-
resolveCurrentlyRenderingComponent();
|
|
5822
|
-
return sharedNotPendingObject;
|
|
5823
|
-
},
|
|
5824
|
-
useOptimistic: function (passthrough) {
|
|
5825
|
-
resolveCurrentlyRenderingComponent();
|
|
5826
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
5827
|
-
}
|
|
5828
|
-
};
|
|
5829
|
-
HooksDispatcher.useFormState = useActionState;
|
|
5830
|
-
HooksDispatcher.useActionState = useActionState;
|
|
5831
|
-
var currentResumableState = null,
|
|
5835
|
+
currentResumableState = null,
|
|
5832
5836
|
DefaultAsyncDispatcher = {
|
|
5833
5837
|
getCacheForType: function () {
|
|
5834
5838
|
throw Error("Not implemented.");
|
|
@@ -5838,7 +5842,7 @@ function describeComponentStackByType(type) {
|
|
|
5838
5842
|
if ("string" === typeof type) return describeBuiltInComponentFrame(type);
|
|
5839
5843
|
if ("function" === typeof type)
|
|
5840
5844
|
return type.prototype && type.prototype.isReactComponent
|
|
5841
|
-
?
|
|
5845
|
+
? describeNativeComponentFrame(type, !0)
|
|
5842
5846
|
: describeNativeComponentFrame(type, !1);
|
|
5843
5847
|
if ("object" === typeof type && null !== type) {
|
|
5844
5848
|
switch (type.$$typeof) {
|
|
@@ -6430,7 +6434,6 @@ function renderElement(request, task, keyPath, type, props, ref) {
|
|
|
6430
6434
|
else {
|
|
6431
6435
|
switch (type) {
|
|
6432
6436
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
6433
|
-
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
6434
6437
|
case REACT_STRICT_MODE_TYPE:
|
|
6435
6438
|
case REACT_PROFILER_TYPE:
|
|
6436
6439
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -8620,4 +8623,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
8620
8623
|
});
|
|
8621
8624
|
});
|
|
8622
8625
|
};
|
|
8623
|
-
exports.version = "19.1.0-experimental-
|
|
8626
|
+
exports.version = "19.1.0-experimental-d4287258-20241217";
|
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-d4287258-20241217",
|
|
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-d4287258-20241217"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"LICENSE",
|