react-markup 0.0.0-experimental-65e06cb7-20241218 → 0.0.0-experimental-9463d51e-20241219
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.
|
|
8636
|
+
exports.version = "19.1.0-experimental-9463d51e-20241219";
|
|
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.
|
|
5712
|
+
exports.version = "19.1.0-experimental-9463d51e-20241219";
|