react-markup 0.0.0-experimental-ef979d47-20241218 → 0.0.0-experimental-4b7d4530-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.
|
@@ -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 commong 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
|
-
? describeNativeComponentFrame(type, !0)
|
|
4182
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
|
4183
4183
|
: describeNativeComponentFrame(type, !1);
|
|
4184
4184
|
if ("object" === typeof type && null !== type) {
|
|
4185
4185
|
switch (type.$$typeof) {
|
|
@@ -5245,6 +5245,7 @@
|
|
|
5245
5245
|
} else {
|
|
5246
5246
|
switch (type) {
|
|
5247
5247
|
case REACT_LEGACY_HIDDEN_TYPE:
|
|
5248
|
+
case REACT_DEBUG_TRACING_MODE_TYPE:
|
|
5248
5249
|
case REACT_STRICT_MODE_TYPE:
|
|
5249
5250
|
case REACT_PROFILER_TYPE:
|
|
5250
5251
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -7634,6 +7635,7 @@
|
|
|
7634
7635
|
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
7635
7636
|
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
7636
7637
|
REACT_SCOPE_TYPE = Symbol.for("react.scope"),
|
|
7638
|
+
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"),
|
|
7637
7639
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
7638
7640
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
7639
7641
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -8501,29 +8503,29 @@
|
|
|
8501
8503
|
return treeId + ":";
|
|
8502
8504
|
},
|
|
8503
8505
|
useSyncExternalStore: clientHookNotSupported,
|
|
8504
|
-
|
|
8505
|
-
|
|
8506
|
-
return [passthrough, unsupportedSetOptimisticState];
|
|
8506
|
+
useCacheRefresh: function () {
|
|
8507
|
+
return unsupportedRefresh;
|
|
8507
8508
|
},
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
useHostTransitionStatus: function () {
|
|
8511
|
-
resolveCurrentlyRenderingComponent();
|
|
8512
|
-
return NotPending;
|
|
8509
|
+
useEffectEvent: function () {
|
|
8510
|
+
return throwOnUseEffectEventCall;
|
|
8513
8511
|
},
|
|
8514
8512
|
useMemoCache: function (size) {
|
|
8515
8513
|
for (var data = Array(size), i = 0; i < size; i++)
|
|
8516
8514
|
data[i] = REACT_MEMO_CACHE_SENTINEL;
|
|
8517
8515
|
return data;
|
|
8518
8516
|
},
|
|
8519
|
-
|
|
8520
|
-
|
|
8517
|
+
useHostTransitionStatus: function () {
|
|
8518
|
+
resolveCurrentlyRenderingComponent();
|
|
8519
|
+
return NotPending;
|
|
8521
8520
|
},
|
|
8522
|
-
|
|
8523
|
-
|
|
8521
|
+
useOptimistic: function (passthrough) {
|
|
8522
|
+
resolveCurrentlyRenderingComponent();
|
|
8523
|
+
return [passthrough, unsupportedSetOptimisticState];
|
|
8524
8524
|
}
|
|
8525
|
-
}
|
|
8526
|
-
|
|
8525
|
+
};
|
|
8526
|
+
HooksDispatcher.useFormState = useActionState;
|
|
8527
|
+
HooksDispatcher.useActionState = useActionState;
|
|
8528
|
+
var currentResumableState = null,
|
|
8527
8529
|
currentTaskInDEV = null,
|
|
8528
8530
|
DefaultAsyncDispatcher = {
|
|
8529
8531
|
getCacheForType: function () {
|
|
@@ -8633,5 +8635,5 @@
|
|
|
8633
8635
|
});
|
|
8634
8636
|
});
|
|
8635
8637
|
};
|
|
8636
|
-
exports.version = "19.
|
|
8638
|
+
exports.version = "19.0.0-experimental-4b7d4530-20241218";
|
|
8637
8639
|
})();
|
|
@@ -48,6 +48,7 @@ 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"),
|
|
51
52
|
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
|
|
52
53
|
REACT_LEGACY_HIDDEN_TYPE = Symbol.for("react.legacy_hidden"),
|
|
53
54
|
REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel"),
|
|
@@ -2925,81 +2926,80 @@ function clientHookNotSupported() {
|
|
|
2925
2926
|
);
|
|
2926
2927
|
}
|
|
2927
2928
|
var HooksDispatcher = {
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
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;
|
|
2929
|
+
readContext: function (context) {
|
|
2930
|
+
return context._currentValue2;
|
|
2931
|
+
},
|
|
2932
|
+
use: function (usable) {
|
|
2933
|
+
if (null !== usable && "object" === typeof usable) {
|
|
2934
|
+
if ("function" === typeof usable.then) return unwrapThenable(usable);
|
|
2935
|
+
if (usable.$$typeof === REACT_CONTEXT_TYPE) return usable._currentValue2;
|
|
3000
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 + ":";
|
|
3001
2978
|
},
|
|
3002
|
-
|
|
2979
|
+
useSyncExternalStore: clientHookNotSupported,
|
|
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,
|
|
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
|
-
? describeNativeComponentFrame(type, !0)
|
|
3169
|
+
? ((type = describeNativeComponentFrame(type, !0)), type)
|
|
3170
3170
|
: describeNativeComponentFrame(type, !1);
|
|
3171
3171
|
if ("object" === typeof type && null !== type) {
|
|
3172
3172
|
switch (type.$$typeof) {
|
|
@@ -3758,6 +3758,7 @@ 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:
|
|
3761
3762
|
case REACT_STRICT_MODE_TYPE:
|
|
3762
3763
|
case REACT_PROFILER_TYPE:
|
|
3763
3764
|
case REACT_FRAGMENT_TYPE:
|
|
@@ -5709,4 +5710,4 @@ exports.experimental_renderToHTML = function (children, options) {
|
|
|
5709
5710
|
});
|
|
5710
5711
|
});
|
|
5711
5712
|
};
|
|
5712
|
-
exports.version = "19.
|
|
5713
|
+
exports.version = "19.0.0-experimental-4b7d4530-20241218";
|