mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[string-refs] make disableStringRefs a dynamic www flag (#31175)
DiffTrain build for [75dd053b5e](https://github.com/facebook/react/commit/75dd053b5e83e8ae20e9f771bca7b95dba4ff881)
This commit is contained in:
@@ -466,7 +466,8 @@ __DEV__ &&
|
||||
}
|
||||
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||
var owner;
|
||||
"string" === typeof config.ref &&
|
||||
!disableStringRefs &&
|
||||
"string" === typeof config.ref &&
|
||||
(owner = getOwner()) &&
|
||||
self &&
|
||||
owner.stateNode !== self &&
|
||||
@@ -639,18 +640,23 @@ __DEV__ &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self);
|
||||
if ("ref" in config || "key" in config) {
|
||||
hasValidRef(config) &&
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, self));
|
||||
if (
|
||||
(!enableFastJSXWithoutStringRefs && "ref" in config) ||
|
||||
"key" in config
|
||||
) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -756,6 +762,7 @@ __DEV__ &&
|
||||
return info;
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
willCoercionThrow(mixedRef) &&
|
||||
@@ -774,44 +781,47 @@ __DEV__ &&
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
var React = require("react"),
|
||||
dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
@@ -867,7 +877,8 @@ __DEV__ &&
|
||||
specialPropKeyWarningShown;
|
||||
var didWarnAboutStringRefs = {};
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
var enableFastJSXWithoutStringRefs = disableStringRefs,
|
||||
didWarnAboutKeySpread = {},
|
||||
ownerHasKeyUseWarning = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = function (
|
||||
|
||||
@@ -463,7 +463,8 @@ __DEV__ &&
|
||||
}
|
||||
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||
var owner;
|
||||
"string" === typeof config.ref &&
|
||||
!disableStringRefs &&
|
||||
"string" === typeof config.ref &&
|
||||
(owner = getOwner()) &&
|
||||
self &&
|
||||
owner.stateNode !== self &&
|
||||
@@ -636,18 +637,23 @@ __DEV__ &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self);
|
||||
if ("ref" in config || "key" in config) {
|
||||
hasValidRef(config) &&
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, self));
|
||||
if (
|
||||
(!enableFastJSXWithoutStringRefs && "ref" in config) ||
|
||||
"key" in config
|
||||
) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -753,6 +759,7 @@ __DEV__ &&
|
||||
return info;
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
willCoercionThrow(mixedRef) &&
|
||||
@@ -771,44 +778,47 @@ __DEV__ &&
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
var React = require("react"),
|
||||
dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
@@ -863,7 +873,8 @@ __DEV__ &&
|
||||
specialPropKeyWarningShown;
|
||||
var didWarnAboutStringRefs = {};
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
var enableFastJSXWithoutStringRefs = disableStringRefs,
|
||||
didWarnAboutKeySpread = {},
|
||||
ownerHasKeyUseWarning = {};
|
||||
exports.Fragment = REACT_FRAGMENT_TYPE;
|
||||
exports.jsxDEV = function (
|
||||
|
||||
@@ -1 +1 @@
|
||||
5636fad840942cfea80301d91e931a50c6370d19
|
||||
75dd053b5e83e8ae20e9f771bca7b95dba4ff881
|
||||
|
||||
@@ -1 +1 @@
|
||||
5636fad840942cfea80301d91e931a50c6370d19
|
||||
75dd053b5e83e8ae20e9f771bca7b95dba4ff881
|
||||
|
||||
@@ -553,7 +553,8 @@ __DEV__ &&
|
||||
}
|
||||
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||
var owner;
|
||||
"string" === typeof config.ref &&
|
||||
!disableStringRefs &&
|
||||
"string" === typeof config.ref &&
|
||||
(owner = getOwner()) &&
|
||||
self &&
|
||||
owner.stateNode !== self &&
|
||||
@@ -701,18 +702,23 @@ __DEV__ &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self);
|
||||
if ("ref" in config || "key" in config) {
|
||||
hasValidRef(config) &&
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, self));
|
||||
if (
|
||||
(!enableFastJSXWithoutStringRefs && "ref" in config) ||
|
||||
"key" in config
|
||||
) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -826,6 +832,7 @@ __DEV__ &&
|
||||
return info;
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
willCoercionThrow(mixedRef) &&
|
||||
@@ -844,39 +851,41 @@ __DEV__ &&
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error$jscomp$0(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error$jscomp$0(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -1201,6 +1210,7 @@ __DEV__ &&
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
@@ -1319,7 +1329,8 @@ __DEV__ &&
|
||||
didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutStringRefs = {};
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
var enableFastJSXWithoutStringRefs = disableStringRefs,
|
||||
didWarnAboutKeySpread = {},
|
||||
ownerHasKeyUseWarning = {},
|
||||
didWarnAboutMaps = !1,
|
||||
userProvidedKeyEscapeRegex = /\/+/g,
|
||||
@@ -1570,13 +1581,13 @@ __DEV__ &&
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -1712,7 +1723,8 @@ __DEV__ &&
|
||||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
||||
)),
|
||||
hasValidRef(config) &&
|
||||
warnIfStringRefCannotBeAutoConverted(config, config.__self),
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, config.__self)),
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
|
||||
config))
|
||||
@@ -1720,9 +1732,9 @@ __DEV__ &&
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (i.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (i[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (i[propName] = config[propName])
|
||||
: (i.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) i.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -2005,7 +2017,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -550,7 +550,8 @@ __DEV__ &&
|
||||
}
|
||||
function warnIfStringRefCannotBeAutoConverted(config, self) {
|
||||
var owner;
|
||||
"string" === typeof config.ref &&
|
||||
!disableStringRefs &&
|
||||
"string" === typeof config.ref &&
|
||||
(owner = getOwner()) &&
|
||||
self &&
|
||||
owner.stateNode !== self &&
|
||||
@@ -698,18 +699,23 @@ __DEV__ &&
|
||||
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
||||
hasValidRef(config) && warnIfStringRefCannotBeAutoConverted(config, self);
|
||||
if ("ref" in config || "key" in config) {
|
||||
hasValidRef(config) &&
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, self));
|
||||
if (
|
||||
(!enableFastJSXWithoutStringRefs && "ref" in config) ||
|
||||
"key" in config
|
||||
) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -823,6 +829,7 @@ __DEV__ &&
|
||||
return info;
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
willCoercionThrow(mixedRef) &&
|
||||
@@ -841,39 +848,41 @@ __DEV__ &&
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error$jscomp$0(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
if (
|
||||
"function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)
|
||||
)
|
||||
(type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd &&
|
||||
enableLogStringRefsProd(type, stringRef),
|
||||
error$jscomp$0(
|
||||
'Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref',
|
||||
type,
|
||||
stringRef
|
||||
),
|
||||
(didWarnAboutStringRefs[type] = !0));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -1198,6 +1207,7 @@ __DEV__ &&
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
@@ -1315,7 +1325,8 @@ __DEV__ &&
|
||||
didWarnAboutOldJSXRuntime;
|
||||
var didWarnAboutStringRefs = {};
|
||||
var didWarnAboutElementRef = {};
|
||||
var didWarnAboutKeySpread = {},
|
||||
var enableFastJSXWithoutStringRefs = disableStringRefs,
|
||||
didWarnAboutKeySpread = {},
|
||||
ownerHasKeyUseWarning = {},
|
||||
didWarnAboutMaps = !1,
|
||||
userProvidedKeyEscapeRegex = /\/+/g,
|
||||
@@ -1550,13 +1561,13 @@ __DEV__ &&
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -1692,7 +1703,8 @@ __DEV__ &&
|
||||
"Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
|
||||
)),
|
||||
hasValidRef(config) &&
|
||||
warnIfStringRefCannotBeAutoConverted(config, config.__self),
|
||||
(disableStringRefs ||
|
||||
warnIfStringRefCannotBeAutoConverted(config, config.__self)),
|
||||
hasValidKey(config) &&
|
||||
(checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
|
||||
config))
|
||||
@@ -1700,9 +1712,9 @@ __DEV__ &&
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (i.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (i[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (i[propName] = config[propName])
|
||||
: (i.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) i.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -1985,7 +1997,7 @@ __DEV__ &&
|
||||
exports.useTransition = function () {
|
||||
return resolveDispatcher().useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
@@ -221,33 +222,49 @@ function getComponentNameFromFiber(fiber) {
|
||||
return null;
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
if (!disableStringRefs) {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var didWarnAboutStringRefs;
|
||||
enableLogStringRefsProd && (didWarnAboutStringRefs = {});
|
||||
function ReactElement(type, key, _ref, self, source, owner, props) {
|
||||
_ref = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== _ref ? _ref : null,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
_ref = void 0 !== _ref ? _ref : null;
|
||||
return disableStringRefs
|
||||
? {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props
|
||||
}
|
||||
: {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
}
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("ref" in config || "key" in config) {
|
||||
if ((!disableStringRefs && "ref" in config) || "key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -264,7 +281,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
||||
null,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
disableStringRefs ? void 0 : oldElement._owner,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
@@ -276,6 +293,7 @@ function isValidElement(object) {
|
||||
);
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
mixedRef = "" + mixedRef;
|
||||
@@ -287,32 +305,34 @@ function coerceStringRef(mixedRef, owner, type) {
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -591,9 +611,9 @@ exports.cloneElement = function (element, config, children) {
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = element._owner;
|
||||
owner = disableStringRefs ? void 0 : element._owner;
|
||||
if (null != config) {
|
||||
void 0 !== config.ref && (owner = getOwner());
|
||||
void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner());
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if (
|
||||
!disableDefaultPropsExceptForClasses &&
|
||||
@@ -610,13 +630,13 @@ exports.cloneElement = function (element, config, children) {
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -660,9 +680,9 @@ exports.createElement = function (type, config, children) {
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (props.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (props[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -804,4 +824,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
@@ -217,33 +218,49 @@ function getComponentNameFromFiber(fiber) {
|
||||
return null;
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
if (!disableStringRefs) {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var didWarnAboutStringRefs;
|
||||
enableLogStringRefsProd && (didWarnAboutStringRefs = {});
|
||||
function ReactElement(type, key, _ref, self, source, owner, props) {
|
||||
_ref = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== _ref ? _ref : null,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
_ref = void 0 !== _ref ? _ref : null;
|
||||
return disableStringRefs
|
||||
? {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props
|
||||
}
|
||||
: {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
}
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("ref" in config || "key" in config) {
|
||||
if ((!disableStringRefs && "ref" in config) || "key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -260,7 +277,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
||||
null,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
disableStringRefs ? void 0 : oldElement._owner,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
@@ -272,6 +289,7 @@ function isValidElement(object) {
|
||||
);
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
mixedRef = "" + mixedRef;
|
||||
@@ -283,32 +301,34 @@ function coerceStringRef(mixedRef, owner, type) {
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -587,9 +607,9 @@ exports.cloneElement = function (element, config, children) {
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = element._owner;
|
||||
owner = disableStringRefs ? void 0 : element._owner;
|
||||
if (null != config) {
|
||||
void 0 !== config.ref && (owner = getOwner());
|
||||
void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner());
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if (
|
||||
!disableDefaultPropsExceptForClasses &&
|
||||
@@ -606,13 +626,13 @@ exports.cloneElement = function (element, config, children) {
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -656,9 +676,9 @@ exports.createElement = function (type, config, children) {
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (props.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (props[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -800,4 +820,4 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
@@ -225,33 +226,49 @@ function getComponentNameFromFiber(fiber) {
|
||||
return null;
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
if (!disableStringRefs) {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var didWarnAboutStringRefs;
|
||||
enableLogStringRefsProd && (didWarnAboutStringRefs = {});
|
||||
function ReactElement(type, key, _ref, self, source, owner, props) {
|
||||
_ref = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== _ref ? _ref : null,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
_ref = void 0 !== _ref ? _ref : null;
|
||||
return disableStringRefs
|
||||
? {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props
|
||||
}
|
||||
: {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
}
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("ref" in config || "key" in config) {
|
||||
if ((!disableStringRefs && "ref" in config) || "key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -268,7 +285,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
||||
null,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
disableStringRefs ? void 0 : oldElement._owner,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
@@ -280,6 +297,7 @@ function isValidElement(object) {
|
||||
);
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
mixedRef = "" + mixedRef;
|
||||
@@ -291,32 +309,34 @@ function coerceStringRef(mixedRef, owner, type) {
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -595,9 +615,9 @@ exports.cloneElement = function (element, config, children) {
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = element._owner;
|
||||
owner = disableStringRefs ? void 0 : element._owner;
|
||||
if (null != config) {
|
||||
void 0 !== config.ref && (owner = getOwner());
|
||||
void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner());
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if (
|
||||
!disableDefaultPropsExceptForClasses &&
|
||||
@@ -614,13 +634,13 @@ exports.cloneElement = function (element, config, children) {
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -664,9 +684,9 @@ exports.createElement = function (type, config, children) {
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (props.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (props[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -808,7 +828,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableLogStringRefsProd = dynamicFeatureFlags.enableLogStringRefsProd,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
@@ -221,33 +222,49 @@ function getComponentNameFromFiber(fiber) {
|
||||
return null;
|
||||
}
|
||||
function getOwner() {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
if (!disableStringRefs) {
|
||||
var dispatcher = ReactSharedInternals.A;
|
||||
return null === dispatcher ? null : dispatcher.getOwner();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
var didWarnAboutStringRefs;
|
||||
enableLogStringRefsProd && (didWarnAboutStringRefs = {});
|
||||
function ReactElement(type, key, _ref, self, source, owner, props) {
|
||||
_ref = props.ref;
|
||||
return {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: void 0 !== _ref ? _ref : null,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
_ref = void 0 !== _ref ? _ref : null;
|
||||
return disableStringRefs
|
||||
? {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props
|
||||
}
|
||||
: {
|
||||
$$typeof: REACT_ELEMENT_TYPE,
|
||||
type: type,
|
||||
key: key,
|
||||
ref: _ref,
|
||||
props: props,
|
||||
_owner: owner
|
||||
};
|
||||
}
|
||||
function jsxProd(type, config, maybeKey) {
|
||||
var key = null;
|
||||
void 0 !== maybeKey && (key = "" + maybeKey);
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if ("ref" in config || "key" in config) {
|
||||
if ((!disableStringRefs && "ref" in config) || "key" in config) {
|
||||
maybeKey = {};
|
||||
for (var propName in config)
|
||||
"key" !== propName &&
|
||||
("ref" === propName
|
||||
? (maybeKey.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (maybeKey[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (maybeKey[propName] = config[propName])
|
||||
: (maybeKey.ref = coerceStringRef(
|
||||
config[propName],
|
||||
getOwner(),
|
||||
type
|
||||
)));
|
||||
} else maybeKey = config;
|
||||
if (!disableDefaultPropsExceptForClasses && type && type.defaultProps) {
|
||||
config = type.defaultProps;
|
||||
@@ -264,7 +281,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
||||
null,
|
||||
void 0,
|
||||
void 0,
|
||||
oldElement._owner,
|
||||
disableStringRefs ? void 0 : oldElement._owner,
|
||||
oldElement.props
|
||||
);
|
||||
}
|
||||
@@ -276,6 +293,7 @@ function isValidElement(object) {
|
||||
);
|
||||
}
|
||||
function coerceStringRef(mixedRef, owner, type) {
|
||||
if (disableStringRefs) return mixedRef;
|
||||
if ("string" !== typeof mixedRef)
|
||||
if ("number" === typeof mixedRef || "boolean" === typeof mixedRef)
|
||||
mixedRef = "" + mixedRef;
|
||||
@@ -287,32 +305,34 @@ function coerceStringRef(mixedRef, owner, type) {
|
||||
return callback;
|
||||
}
|
||||
function stringRefAsCallbackRef(stringRef, type, owner, value) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
if (!disableStringRefs) {
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Element ref was specified as a string (" +
|
||||
stringRef +
|
||||
") but no owner was set. This could happen for one of the following reasons:\n1. You may be adding a ref to a function component\n2. You may be adding a ref to a component that was not created inside a component's render method\n3. You have multiple copies of React loaded\nSee https://react.dev/link/refs-must-have-owner for more information."
|
||||
);
|
||||
if (1 !== owner.tag)
|
||||
throw Error(
|
||||
"Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://react.dev/link/strict-mode-string-ref"
|
||||
);
|
||||
enableLogStringRefsProd &&
|
||||
("function" !== typeof type ||
|
||||
(type.prototype && type.prototype.isReactComponent)) &&
|
||||
((type = getComponentNameFromFiber(owner) || "Component"),
|
||||
didWarnAboutStringRefs[type] ||
|
||||
(enableLogStringRefsProd && enableLogStringRefsProd(type, stringRef),
|
||||
(didWarnAboutStringRefs[type] = !0)));
|
||||
owner = owner.stateNode;
|
||||
if (!owner)
|
||||
throw Error(
|
||||
"Missing owner for string ref " +
|
||||
stringRef +
|
||||
". This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
owner = owner.refs;
|
||||
null === value ? delete owner[stringRef] : (owner[stringRef] = value);
|
||||
}
|
||||
}
|
||||
function escape(key) {
|
||||
var escaperLookup = { "=": "=0", ":": "=2" };
|
||||
@@ -591,9 +611,9 @@ exports.cloneElement = function (element, config, children) {
|
||||
);
|
||||
var props = assign({}, element.props),
|
||||
key = element.key,
|
||||
owner = element._owner;
|
||||
owner = disableStringRefs ? void 0 : element._owner;
|
||||
if (null != config) {
|
||||
void 0 !== config.ref && (owner = getOwner());
|
||||
void 0 !== config.ref && (owner = disableStringRefs ? void 0 : getOwner());
|
||||
void 0 !== config.key && (key = "" + config.key);
|
||||
if (
|
||||
!disableDefaultPropsExceptForClasses &&
|
||||
@@ -610,13 +630,13 @@ exports.cloneElement = function (element, config, children) {
|
||||
(disableDefaultPropsExceptForClasses ||
|
||||
void 0 !== config[propName] ||
|
||||
void 0 === defaultProps
|
||||
? "ref" === propName
|
||||
? (props.ref = coerceStringRef(
|
||||
? disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(
|
||||
config[propName],
|
||||
owner,
|
||||
element.type
|
||||
))
|
||||
: (props[propName] = config[propName])
|
||||
: (props[propName] = defaultProps[propName]));
|
||||
}
|
||||
var propName = arguments.length - 2;
|
||||
@@ -660,9 +680,9 @@ exports.createElement = function (type, config, children) {
|
||||
"key" !== propName &&
|
||||
"__self" !== propName &&
|
||||
"__source" !== propName &&
|
||||
("ref" === propName
|
||||
? (props.ref = coerceStringRef(config[propName], getOwner(), type))
|
||||
: (props[propName] = config[propName]));
|
||||
(disableStringRefs || "ref" !== propName
|
||||
? (props[propName] = config[propName])
|
||||
: (props.ref = coerceStringRef(config[propName], getOwner(), type)));
|
||||
var childrenLength = arguments.length - 2;
|
||||
if (1 === childrenLength) props.children = children;
|
||||
else if (1 < childrenLength) {
|
||||
@@ -804,7 +824,7 @@ exports.useSyncExternalStore = function (
|
||||
exports.useTransition = function () {
|
||||
return ReactSharedInternals.H.useTransition();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -6634,6 +6634,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -10018,11 +10019,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -13252,7 +13255,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -13260,7 +13263,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -14801,6 +14804,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -17014,11 +17018,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -17052,7 +17056,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -6152,6 +6152,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -9640,11 +9641,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -12797,7 +12800,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -12805,7 +12808,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -14240,6 +14243,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -16457,11 +16461,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -16495,7 +16499,7 @@ __DEV__ &&
|
||||
exports.Shape = Shape;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -67,6 +67,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -4689,6 +4690,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -4995,7 +4997,7 @@ function finishClassComponent(
|
||||
)
|
||||
);
|
||||
shouldUpdate = workInProgress.stateNode;
|
||||
current = workInProgress;
|
||||
disableStringRefs || (current = workInProgress);
|
||||
var nextChildren =
|
||||
didCaptureError && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -9029,19 +9031,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
|
||||
executionContext = 0,
|
||||
workInProgressRoot = null,
|
||||
workInProgress = null,
|
||||
@@ -9557,7 +9560,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
if (thrownValue === SuspenseException) {
|
||||
thrownValue = getSuspendedThenable();
|
||||
var JSCompiler_temp;
|
||||
@@ -9796,7 +9799,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -9849,7 +9852,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -10826,13 +10829,13 @@ var slice = Array.prototype.slice,
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1467 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1468 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -10858,4 +10861,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
|
||||
@@ -65,6 +65,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -4428,6 +4429,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -4736,7 +4738,7 @@ function updateClassComponent(
|
||||
nextProps = 0 !== (workInProgress.flags & 128);
|
||||
context || nextProps
|
||||
? ((context = workInProgress.stateNode),
|
||||
(current = workInProgress),
|
||||
disableStringRefs || (current = workInProgress),
|
||||
(Component =
|
||||
nextProps && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -8604,19 +8606,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var PossiblyWeakMap = "function" === typeof WeakMap ? WeakMap : Map,
|
||||
executionContext = 0,
|
||||
workInProgressRoot = null,
|
||||
workInProgress = null,
|
||||
@@ -9120,7 +9123,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
if (thrownValue === SuspenseException) {
|
||||
thrownValue = getSuspendedThenable();
|
||||
var JSCompiler_temp;
|
||||
@@ -9359,7 +9362,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -9408,7 +9411,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -10335,27 +10338,27 @@ var slice = Array.prototype.slice,
|
||||
};
|
||||
return Text;
|
||||
})(React.Component);
|
||||
var internals$jscomp$inline_1459 = {
|
||||
var internals$jscomp$inline_1460 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-art",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: function () {
|
||||
return null;
|
||||
},
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_1460 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_1461 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_1460.isDisabled &&
|
||||
hook$jscomp$inline_1460.supportsFiber
|
||||
!hook$jscomp$inline_1461.isDisabled &&
|
||||
hook$jscomp$inline_1461.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_1460.inject(
|
||||
internals$jscomp$inline_1459
|
||||
(rendererID = hook$jscomp$inline_1461.inject(
|
||||
internals$jscomp$inline_1460
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_1460);
|
||||
(injectedHook = hook$jscomp$inline_1461);
|
||||
} catch (err) {}
|
||||
}
|
||||
var Path = Mode$1.Path;
|
||||
@@ -10369,4 +10372,4 @@ exports.RadialGradient = RadialGradient;
|
||||
exports.Shape = TYPES.SHAPE;
|
||||
exports.Surface = Surface;
|
||||
exports.Text = Text;
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
|
||||
@@ -8707,6 +8707,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -12699,11 +12700,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -16424,7 +16427,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -16432,7 +16435,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -24025,6 +24028,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -27771,11 +27775,11 @@ __DEV__ &&
|
||||
: flushSyncErrorInBuildsThatSupportLegacyMode;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-classic-5636fad8-20241010" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-classic-75dd053b-20241014" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.0.0-www-classic-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-classic-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27819,11 +27823,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -28476,7 +28480,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -8170,6 +8170,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -12251,11 +12252,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -15889,7 +15892,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -15897,7 +15900,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -23146,6 +23149,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -26885,11 +26889,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-modern-5636fad8-20241010" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-modern-75dd053b-20241014" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.0.0-www-modern-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-modern-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -26932,11 +26936,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -27541,7 +27545,7 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -40,6 +40,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5690,6 +5691,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -6000,7 +6002,7 @@ function finishClassComponent(
|
||||
)
|
||||
);
|
||||
shouldUpdate = workInProgress.stateNode;
|
||||
current = workInProgress;
|
||||
disableStringRefs || (current = workInProgress);
|
||||
var nextChildren =
|
||||
didCaptureError && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -10884,19 +10886,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
postPaintCallbackScheduled = !1,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var postPaintCallbackScheduled = !1,
|
||||
callbacks = [];
|
||||
function schedulePostPaintCallback(callback) {
|
||||
callbacks.push(callback);
|
||||
@@ -11458,7 +11461,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -11696,7 +11699,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -11749,7 +11752,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -17412,14 +17415,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-5636fad8-20241010" !==
|
||||
"19.0.0-www-classic-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1774
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1774,
|
||||
"19.0.0-www-classic-5636fad8-20241010"
|
||||
"19.0.0-www-classic-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17464,11 +17467,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2287 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2288 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -17924,4 +17927,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
|
||||
@@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5384,6 +5385,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -5696,7 +5698,7 @@ function updateClassComponent(
|
||||
nextProps = 0 !== (workInProgress.flags & 128);
|
||||
context || nextProps
|
||||
? ((context = workInProgress.stateNode),
|
||||
(current = workInProgress),
|
||||
disableStringRefs || (current = workInProgress),
|
||||
(Component =
|
||||
nextProps && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -10428,19 +10430,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
postPaintCallbackScheduled = !1,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var postPaintCallbackScheduled = !1,
|
||||
callbacks = [];
|
||||
function schedulePostPaintCallback(callback) {
|
||||
callbacks.push(callback);
|
||||
@@ -10977,7 +10980,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -11215,7 +11218,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -11264,7 +11267,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -16780,14 +16783,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1745 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-5636fad8-20241010" !==
|
||||
"19.0.0-www-modern-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1745
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1745,
|
||||
"19.0.0-www-modern-5636fad8-20241010"
|
||||
"19.0.0-www-modern-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -16803,25 +16806,25 @@ Internals.Events = [
|
||||
return fn(a);
|
||||
}
|
||||
];
|
||||
var internals$jscomp$inline_2278 = {
|
||||
var internals$jscomp$inline_2279 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2279 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2280 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2279.isDisabled &&
|
||||
hook$jscomp$inline_2279.supportsFiber
|
||||
!hook$jscomp$inline_2280.isDisabled &&
|
||||
hook$jscomp$inline_2280.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2279.inject(
|
||||
internals$jscomp$inline_2278
|
||||
(rendererID = hook$jscomp$inline_2280.inject(
|
||||
internals$jscomp$inline_2279
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2279);
|
||||
(injectedHook = hook$jscomp$inline_2280);
|
||||
} catch (err) {}
|
||||
}
|
||||
function ReactDOMRoot(internalRoot) {
|
||||
@@ -17172,4 +17175,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
|
||||
@@ -44,6 +44,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5871,6 +5872,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -6185,7 +6187,7 @@ function finishClassComponent(
|
||||
)
|
||||
);
|
||||
shouldUpdate = workInProgress.stateNode;
|
||||
current = workInProgress;
|
||||
disableStringRefs || (current = workInProgress);
|
||||
if (
|
||||
didCaptureError &&
|
||||
"function" !== typeof Component.getDerivedStateFromError
|
||||
@@ -11434,19 +11436,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
postPaintCallbackScheduled = !1,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var postPaintCallbackScheduled = !1,
|
||||
callbacks = [];
|
||||
function schedulePostPaintCallback(callback) {
|
||||
callbacks.push(callback);
|
||||
@@ -12009,7 +12012,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -12319,7 +12322,7 @@ function performUnitOfWork(unitOfWork) {
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current$jscomp$0
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -12382,7 +12385,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
}
|
||||
isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(next);
|
||||
next = current$jscomp$0;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -18137,14 +18140,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1867 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-5636fad8-20241010" !==
|
||||
"19.0.0-www-classic-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1867
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1867,
|
||||
"19.0.0-www-classic-5636fad8-20241010"
|
||||
"19.0.0-www-classic-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -18189,11 +18192,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1874 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1874.getLaneLabelMap = getLaneLabelMap),
|
||||
@@ -18652,7 +18655,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -42,6 +42,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5565,6 +5566,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -5881,7 +5883,7 @@ function updateClassComponent(
|
||||
nextProps = 0 !== (workInProgress.flags & 128);
|
||||
context || nextProps
|
||||
? ((context = workInProgress.stateNode),
|
||||
(current = workInProgress),
|
||||
disableStringRefs || (current = workInProgress),
|
||||
nextProps && "function" !== typeof Component.getDerivedStateFromError
|
||||
? ((Component = null), (profilerStartTime = -1))
|
||||
: (enableSchedulingProfiler &&
|
||||
@@ -10961,19 +10963,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
postPaintCallbackScheduled = !1,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var postPaintCallbackScheduled = !1,
|
||||
callbacks = [];
|
||||
function schedulePostPaintCallback(callback) {
|
||||
callbacks.push(callback);
|
||||
@@ -11511,7 +11514,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -11821,7 +11824,7 @@ function performUnitOfWork(unitOfWork) {
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current$jscomp$0
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -11880,7 +11883,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
}
|
||||
isProfilingMode && stopProfilerTimerIfRunningAndRecordDuration(next);
|
||||
next = current$jscomp$0;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -17488,14 +17491,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1838 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-5636fad8-20241010" !==
|
||||
"19.0.0-www-modern-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1838
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1838,
|
||||
"19.0.0-www-modern-5636fad8-20241010"
|
||||
"19.0.0-www-modern-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17513,26 +17516,26 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_1840 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
enableSchedulingProfiler &&
|
||||
((internals$jscomp$inline_1840.getLaneLabelMap = getLaneLabelMap),
|
||||
(internals$jscomp$inline_1840.injectProfilingHooks = injectProfilingHooks));
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2330 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2331 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2330.isDisabled &&
|
||||
hook$jscomp$inline_2330.supportsFiber
|
||||
!hook$jscomp$inline_2331.isDisabled &&
|
||||
hook$jscomp$inline_2331.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2330.inject(
|
||||
(rendererID = hook$jscomp$inline_2331.inject(
|
||||
internals$jscomp$inline_1840
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2330);
|
||||
(injectedHook = hook$jscomp$inline_2331);
|
||||
} catch (err) {}
|
||||
}
|
||||
function ReactDOMRoot(internalRoot) {
|
||||
@@ -17883,7 +17886,7 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
|
||||
"function" ===
|
||||
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
|
||||
|
||||
@@ -8987,5 +8987,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -8805,5 +8805,5 @@ __DEV__ &&
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -57,6 +57,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableLegacyContextForFunctionComponents =
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
@@ -3364,13 +3365,13 @@ var currentResumableState = null,
|
||||
DefaultAsyncDispatcher = {
|
||||
getCacheForType: function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
},
|
||||
getOwner: function () {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
prefix,
|
||||
suffix;
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return null;
|
||||
});
|
||||
var prefix, suffix;
|
||||
function describeBuiltInComponentFrame(name) {
|
||||
if (void 0 === prefix)
|
||||
try {
|
||||
@@ -5911,4 +5912,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
|
||||
@@ -55,6 +55,7 @@ function formatProdErrorMessage(code) {
|
||||
var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
@@ -3354,13 +3355,13 @@ var currentResumableState = null,
|
||||
DefaultAsyncDispatcher = {
|
||||
getCacheForType: function () {
|
||||
throw Error(formatProdErrorMessage(248));
|
||||
},
|
||||
getOwner: function () {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
prefix,
|
||||
suffix;
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return null;
|
||||
});
|
||||
var prefix, suffix;
|
||||
function describeBuiltInComponentFrame(name) {
|
||||
if (void 0 === prefix)
|
||||
try {
|
||||
@@ -5823,4 +5824,4 @@ exports.renderToString = function (children, options) {
|
||||
'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server'
|
||||
);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
|
||||
@@ -40,6 +40,7 @@ var React = require("react"),
|
||||
dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
disableDefaultPropsExceptForClasses =
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableRenderableContext = dynamicFeatureFlags.enableRenderableContext,
|
||||
enableTransitionTracing = dynamicFeatureFlags.enableTransitionTracing,
|
||||
renameElementSymbol = dynamicFeatureFlags.renameElementSymbol,
|
||||
@@ -3241,13 +3242,13 @@ var currentResumableState = null,
|
||||
DefaultAsyncDispatcher = {
|
||||
getCacheForType: function () {
|
||||
throw Error("Not implemented.");
|
||||
},
|
||||
getOwner: function () {
|
||||
return null;
|
||||
}
|
||||
},
|
||||
prefix,
|
||||
suffix;
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return null;
|
||||
});
|
||||
var prefix, suffix;
|
||||
function describeBuiltInComponentFrame(name) {
|
||||
if (void 0 === prefix)
|
||||
try {
|
||||
|
||||
@@ -8748,6 +8748,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -12740,11 +12741,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -16647,7 +16650,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -16655,7 +16658,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -24309,6 +24312,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -28105,11 +28109,11 @@ __DEV__ &&
|
||||
: flushSyncErrorInBuildsThatSupportLegacyMode;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-classic-5636fad8-20241010" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-classic-75dd053b-20241014" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.0.0-www-classic-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-classic-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -28153,11 +28157,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -28976,5 +28980,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -8211,6 +8211,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -12292,11 +12293,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -16112,7 +16115,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -16120,7 +16123,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -23430,6 +23433,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -27219,11 +27223,11 @@ __DEV__ &&
|
||||
return_targetInst = null;
|
||||
(function () {
|
||||
var isomorphicReactPackageVersion = React.version;
|
||||
if ("19.0.0-www-modern-5636fad8-20241010" !== isomorphicReactPackageVersion)
|
||||
if ("19.0.0-www-modern-75dd053b-20241014" !== isomorphicReactPackageVersion)
|
||||
throw Error(
|
||||
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
|
||||
(isomorphicReactPackageVersion +
|
||||
"\n - react-dom: 19.0.0-www-modern-5636fad8-20241010\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
"\n - react-dom: 19.0.0-www-modern-75dd053b-20241014\nLearn more: https://react.dev/warnings/version-mismatch")
|
||||
);
|
||||
})();
|
||||
("function" === typeof Map &&
|
||||
@@ -27266,11 +27270,11 @@ __DEV__ &&
|
||||
!(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -28041,5 +28045,5 @@ __DEV__ &&
|
||||
exports.useFormStatus = function () {
|
||||
return resolveDispatcher().useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -40,6 +40,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5776,6 +5777,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -6086,7 +6088,7 @@ function finishClassComponent(
|
||||
)
|
||||
);
|
||||
shouldUpdate = workInProgress.stateNode;
|
||||
current = workInProgress;
|
||||
disableStringRefs || (current = workInProgress);
|
||||
var nextChildren =
|
||||
didCaptureError && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -10970,19 +10972,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
COMPONENT_TYPE = 0,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var COMPONENT_TYPE = 0,
|
||||
HAS_PSEUDO_CLASS_TYPE = 1,
|
||||
ROLE_TYPE = 2,
|
||||
TEST_NAME_TYPE = 3,
|
||||
@@ -11730,7 +11733,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -11968,7 +11971,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -12021,7 +12024,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -17741,14 +17744,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1804 = React.version;
|
||||
if (
|
||||
"19.0.0-www-classic-5636fad8-20241010" !==
|
||||
"19.0.0-www-classic-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1804
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1804,
|
||||
"19.0.0-www-classic-5636fad8-20241010"
|
||||
"19.0.0-www-classic-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
function flushSyncFromReconciler(fn) {
|
||||
@@ -17793,11 +17796,11 @@ Internals.Events = [
|
||||
];
|
||||
var internals$jscomp$inline_2322 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2323 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
@@ -18404,4 +18407,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
|
||||
@@ -38,6 +38,7 @@ var dynamicFeatureFlags = require("ReactFeatureFlags"),
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -5470,6 +5471,7 @@ function markRef(current, workInProgress) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -5782,7 +5784,7 @@ function updateClassComponent(
|
||||
nextProps = 0 !== (workInProgress.flags & 128);
|
||||
context || nextProps
|
||||
? ((context = workInProgress.stateNode),
|
||||
(current = workInProgress),
|
||||
disableStringRefs || (current = workInProgress),
|
||||
(Component =
|
||||
nextProps && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -10514,19 +10516,20 @@ function commitPassiveUnmountEffectsInsideOfDeletedTree_begin(
|
||||
}
|
||||
}
|
||||
var DefaultAsyncDispatcher = {
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
COMPONENT_TYPE = 0,
|
||||
getCacheForType: function (resourceType) {
|
||||
var cache = readContext(CacheContext),
|
||||
cacheForType = cache.data.get(resourceType);
|
||||
void 0 === cacheForType &&
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
}
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var COMPONENT_TYPE = 0,
|
||||
HAS_PSEUDO_CLASS_TYPE = 1,
|
||||
ROLE_TYPE = 2,
|
||||
TEST_NAME_TYPE = 3,
|
||||
@@ -11249,7 +11252,7 @@ function prepareFreshStack(root, lanes) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -11487,7 +11490,7 @@ function workLoopConcurrent() {
|
||||
}
|
||||
function performUnitOfWork(unitOfWork) {
|
||||
var next = beginWork(unitOfWork.alternate, unitOfWork, entangledRenderLanes);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -11536,7 +11539,7 @@ function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -17109,14 +17112,14 @@ function getCrossOriginStringAs(as, input) {
|
||||
}
|
||||
var isomorphicReactPackageVersion$jscomp$inline_1775 = React.version;
|
||||
if (
|
||||
"19.0.0-www-modern-5636fad8-20241010" !==
|
||||
"19.0.0-www-modern-75dd053b-20241014" !==
|
||||
isomorphicReactPackageVersion$jscomp$inline_1775
|
||||
)
|
||||
throw Error(
|
||||
formatProdErrorMessage(
|
||||
527,
|
||||
isomorphicReactPackageVersion$jscomp$inline_1775,
|
||||
"19.0.0-www-modern-5636fad8-20241010"
|
||||
"19.0.0-www-modern-75dd053b-20241014"
|
||||
)
|
||||
);
|
||||
Internals.findDOMNode = function (componentOrElement) {
|
||||
@@ -17132,25 +17135,25 @@ Internals.Events = [
|
||||
return fn(a);
|
||||
}
|
||||
];
|
||||
var internals$jscomp$inline_2313 = {
|
||||
var internals$jscomp$inline_2314 = {
|
||||
bundleType: 0,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-dom",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getClosestInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
||||
var hook$jscomp$inline_2314 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
var hook$jscomp$inline_2315 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (
|
||||
!hook$jscomp$inline_2314.isDisabled &&
|
||||
hook$jscomp$inline_2314.supportsFiber
|
||||
!hook$jscomp$inline_2315.isDisabled &&
|
||||
hook$jscomp$inline_2315.supportsFiber
|
||||
)
|
||||
try {
|
||||
(rendererID = hook$jscomp$inline_2314.inject(
|
||||
internals$jscomp$inline_2313
|
||||
(rendererID = hook$jscomp$inline_2315.inject(
|
||||
internals$jscomp$inline_2314
|
||||
)),
|
||||
(injectedHook = hook$jscomp$inline_2314);
|
||||
(injectedHook = hook$jscomp$inline_2315);
|
||||
} catch (err) {}
|
||||
}
|
||||
function ReactDOMRoot(internalRoot) {
|
||||
@@ -17652,4 +17655,4 @@ exports.useFormState = function (action, initialState, permalink) {
|
||||
exports.useFormStatus = function () {
|
||||
return ReactSharedInternals.H.useHostTransitionStatus();
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
|
||||
@@ -6956,6 +6956,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -11031,11 +11032,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -14789,7 +14792,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -14797,7 +14800,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -16482,6 +16485,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -19218,7 +19222,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -6461,6 +6461,7 @@ __DEV__ &&
|
||||
);
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -10633,11 +10634,13 @@ __DEV__ &&
|
||||
}
|
||||
else finishedWork.refCleanup = ref(instanceToUse);
|
||||
else
|
||||
ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
disableStringRefs && "string" === typeof ref
|
||||
? error$jscomp$0("String refs are no longer supported.")
|
||||
: ref.hasOwnProperty("current") ||
|
||||
error$jscomp$0(
|
||||
"Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
|
||||
getComponentNameFromFiber(finishedWork)
|
||||
),
|
||||
(ref.current = instanceToUse);
|
||||
}
|
||||
}
|
||||
@@ -14301,7 +14304,7 @@ __DEV__ &&
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
));
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === current
|
||||
? completeUnitOfWork(unitOfWork)
|
||||
@@ -14309,7 +14312,7 @@ __DEV__ &&
|
||||
}
|
||||
function replaySuspendedUnitOfWork(unitOfWork) {
|
||||
var next = runWithFiberInDEV(unitOfWork, replayBeginWork, unitOfWork);
|
||||
resetCurrentFiber();
|
||||
disableStringRefs || resetCurrentFiber();
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -15892,6 +15895,7 @@ __DEV__ &&
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -18609,7 +18613,7 @@ __DEV__ &&
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -4416,6 +4416,7 @@ module.exports = function ($$$config) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -4726,7 +4727,7 @@ module.exports = function ($$$config) {
|
||||
)
|
||||
);
|
||||
shouldUpdate = workInProgress.stateNode;
|
||||
current = workInProgress;
|
||||
disableStringRefs || (current = workInProgress);
|
||||
var nextChildren =
|
||||
didCaptureError &&
|
||||
"function" !== typeof Component.getDerivedStateFromError
|
||||
@@ -10364,7 +10365,7 @@ module.exports = function ($$$config) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -10612,7 +10613,7 @@ module.exports = function ($$$config) {
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -10671,7 +10672,7 @@ module.exports = function ($$$config) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -11692,6 +11693,7 @@ module.exports = function ($$$config) {
|
||||
dynamicFeatureFlags.disableLegacyContextForFunctionComponents,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -12438,12 +12440,13 @@ module.exports = function ($$$config) {
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
COMPONENT_TYPE = 0,
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var COMPONENT_TYPE = 0,
|
||||
HAS_PSEUDO_CLASS_TYPE = 1,
|
||||
ROLE_TYPE = 2,
|
||||
TEST_NAME_TYPE = 3,
|
||||
@@ -12854,7 +12857,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -4130,6 +4130,7 @@ module.exports = function ($$$config) {
|
||||
throw Error(formatProdErrorMessage(284));
|
||||
if (null === current || current.ref !== ref) {
|
||||
if (
|
||||
!disableStringRefs &&
|
||||
null !== current &&
|
||||
((current = current.ref),
|
||||
"function" === typeof current &&
|
||||
@@ -4448,7 +4449,7 @@ module.exports = function ($$$config) {
|
||||
nextProps = 0 !== (workInProgress.flags & 128);
|
||||
context || nextProps
|
||||
? ((context = workInProgress.stateNode),
|
||||
(current = workInProgress),
|
||||
disableStringRefs || (current = workInProgress),
|
||||
(Component =
|
||||
nextProps && "function" !== typeof Component.getDerivedStateFromError
|
||||
? null
|
||||
@@ -9919,7 +9920,7 @@ module.exports = function ($$$config) {
|
||||
function handleThrow(root, thrownValue) {
|
||||
currentlyRenderingFiber$1 = null;
|
||||
ReactSharedInternals.H = ContextOnlyDispatcher;
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
thrownValue === SuspenseException
|
||||
? ((thrownValue = getSuspendedThenable()),
|
||||
(workInProgressSuspendedReason =
|
||||
@@ -10167,7 +10168,7 @@ module.exports = function ($$$config) {
|
||||
unitOfWork,
|
||||
entangledRenderLanes
|
||||
);
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -10222,7 +10223,7 @@ module.exports = function ($$$config) {
|
||||
resetWorkInProgress(next, entangledRenderLanes)),
|
||||
(next = beginWork(current$jscomp$0, next, entangledRenderLanes));
|
||||
}
|
||||
current = null;
|
||||
disableStringRefs || (current = null);
|
||||
unitOfWork.memoizedProps = unitOfWork.pendingProps;
|
||||
null === next ? completeUnitOfWork(unitOfWork) : (workInProgress = next);
|
||||
}
|
||||
@@ -11199,6 +11200,7 @@ module.exports = function ($$$config) {
|
||||
dynamicFeatureFlags.disableDefaultPropsExceptForClasses,
|
||||
disableSchedulerTimeoutInWorkLoop =
|
||||
dynamicFeatureFlags.disableSchedulerTimeoutInWorkLoop,
|
||||
disableStringRefs = dynamicFeatureFlags.disableStringRefs,
|
||||
enableDebugTracing = dynamicFeatureFlags.enableDebugTracing,
|
||||
enableDeferRootSchedulingToMicrotask =
|
||||
dynamicFeatureFlags.enableDeferRootSchedulingToMicrotask,
|
||||
@@ -11941,12 +11943,13 @@ module.exports = function ($$$config) {
|
||||
((cacheForType = resourceType()),
|
||||
cache.data.set(resourceType, cacheForType));
|
||||
return cacheForType;
|
||||
},
|
||||
getOwner: function () {
|
||||
return current;
|
||||
}
|
||||
},
|
||||
COMPONENT_TYPE = 0,
|
||||
};
|
||||
disableStringRefs ||
|
||||
(DefaultAsyncDispatcher.getOwner = function () {
|
||||
return current;
|
||||
});
|
||||
var COMPONENT_TYPE = 0,
|
||||
HAS_PSEUDO_CLASS_TYPE = 1,
|
||||
ROLE_TYPE = 2,
|
||||
TEST_NAME_TYPE = 3,
|
||||
@@ -12344,7 +12347,7 @@ module.exports = function ($$$config) {
|
||||
rendererPackageName: rendererPackageName,
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
null !== extraDevToolsConfig &&
|
||||
(internals.rendererConfig = extraDevToolsConfig);
|
||||
|
||||
@@ -14961,11 +14961,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-classic-5636fad8-20241010",
|
||||
version: "19.0.0-www-classic-75dd053b-20241014",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-classic-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-classic-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15100,5 +15100,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-classic-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-classic-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -14961,11 +14961,11 @@ __DEV__ &&
|
||||
(function () {
|
||||
var internals = {
|
||||
bundleType: 1,
|
||||
version: "19.0.0-www-modern-5636fad8-20241010",
|
||||
version: "19.0.0-www-modern-75dd053b-20241014",
|
||||
rendererPackageName: "react-test-renderer",
|
||||
currentDispatcherRef: ReactSharedInternals,
|
||||
findFiberByHostInstance: getInstanceFromNode,
|
||||
reconcilerVersion: "19.0.0-www-modern-5636fad8-20241010"
|
||||
reconcilerVersion: "19.0.0-www-modern-75dd053b-20241014"
|
||||
};
|
||||
internals.overrideHookState = overrideHookState;
|
||||
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
||||
@@ -15100,5 +15100,5 @@ __DEV__ &&
|
||||
exports.unstable_batchedUpdates = function (fn, a) {
|
||||
return fn(a);
|
||||
};
|
||||
exports.version = "19.0.0-www-modern-5636fad8-20241010";
|
||||
exports.version = "19.0.0-www-modern-75dd053b-20241014";
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-classic-5636fad8-20241010
|
||||
19.0.0-www-classic-75dd053b-20241014
|
||||
@@ -1 +1 @@
|
||||
19.0.0-www-modern-5636fad8-20241010
|
||||
19.0.0-www-modern-75dd053b-20241014
|
||||
Reference in New Issue
Block a user