Comparing version 19.0.0-rc-6fb39ec9e9-20240621 to 19.0.0-rc-70fb1363-20241010
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
var ReactSharedInternals = | ||
@@ -37,3 +20,3 @@ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
null === dispatcher && | ||
error( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -40,0 +23,0 @@ ); |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -379,3 +370,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -395,3 +386,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -472,3 +463,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -490,10 +481,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -516,3 +509,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -614,3 +607,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -651,5 +644,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -669,2 +662,3 @@ assign = Object.assign, | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -671,0 +665,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -379,3 +370,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -395,3 +386,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -472,3 +463,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -490,10 +481,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -516,3 +509,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -614,3 +607,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -651,2 +644,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -658,4 +652,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -674,2 +667,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -676,0 +670,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternals.getCurrentStack && | ||
((_key2 = ReactSharedInternals.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -379,3 +370,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -395,3 +386,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -472,3 +463,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -490,10 +481,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -516,3 +509,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -614,3 +607,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -651,5 +644,5 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = | ||
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -669,2 +662,3 @@ assign = Object.assign, | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -671,0 +665,0 @@ var componentFrameCache = new ( |
@@ -14,19 +14,2 @@ /** | ||
(function () { | ||
function error(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
_len2 = format; | ||
_key2 = Error("react-stack-top-frame"); | ||
ReactSharedInternalsServer.getCurrentStack && | ||
((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)), | ||
"" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2])))); | ||
args.unshift(_len2); | ||
Function.prototype.apply.call(console.error, console, args); | ||
} | ||
function getComponentNameFromType(type) { | ||
@@ -56,3 +39,3 @@ if (null == type) return null; | ||
("number" === typeof type.tag && | ||
error( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -99,16 +82,18 @@ ), | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -158,3 +143,3 @@ function disabledLog() {} | ||
0 > disabledDepth && | ||
error( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -170,4 +155,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -379,3 +370,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -395,3 +386,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -472,3 +463,3 @@ )); | ||
} else | ||
error( | ||
console.error( | ||
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead." | ||
@@ -490,10 +481,12 @@ ); | ||
: isArrayImpl(type) | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + (getComponentNameFromType(type.type) || "Unknown") + " />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
error( | ||
? (isStaticChildren = "array") | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((isStaticChildren = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(children = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (isStaticChildren = typeof type); | ||
console.error( | ||
"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -516,3 +509,3 @@ isStaticChildren, | ||
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"), | ||
error( | ||
console.error( | ||
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />', | ||
@@ -614,3 +607,3 @@ isStaticChildren, | ||
}; | ||
error( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -651,2 +644,3 @@ parentType, | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternalsServer = | ||
@@ -658,4 +652,3 @@ React.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE; | ||
); | ||
var REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
@@ -674,2 +667,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -676,0 +670,0 @@ var componentFrameCache = new ( |
@@ -17,3 +17,3 @@ /** | ||
get: function () { | ||
warn( | ||
console.warn( | ||
"%s(...) is deprecated in plain JavaScript React classes. %s", | ||
@@ -34,32 +34,2 @@ info[0], | ||
} | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function warnNoop(publicInstance, callerName) { | ||
@@ -72,3 +42,3 @@ publicInstance = | ||
didWarnStateUpdateForUnmountedComponent[warningKey] || | ||
(error$jscomp$0( | ||
(console.error( | ||
"Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", | ||
@@ -103,16 +73,18 @@ callerName, | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -143,3 +115,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -240,3 +212,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -252,4 +224,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -461,3 +439,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -477,3 +455,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -584,3 +562,3 @@ )); | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -744,3 +722,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -813,3 +791,3 @@ ), | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -819,3 +797,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -831,3 +809,3 @@ ctor | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -851,3 +829,3 @@ ); | ||
"undefined" === typeof MessageChannel && | ||
error$jscomp$0( | ||
console.error( | ||
"This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning." | ||
@@ -869,3 +847,3 @@ )); | ||
prevActScopeDepth !== actScopeDepth - 1 && | ||
error$jscomp$0( | ||
console.error( | ||
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. " | ||
@@ -885,4 +863,4 @@ ); | ||
return; | ||
} catch (error$5) { | ||
ReactSharedInternals.thrownErrors.push(error$5); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -917,5 +895,4 @@ else ReactSharedInternals.actQueue = null; | ||
queue.length = 0; | ||
} catch (error$6) { | ||
queue.splice(0, i + 1), | ||
ReactSharedInternals.thrownErrors.push(error$6); | ||
} catch (error) { | ||
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error); | ||
} finally { | ||
@@ -945,14 +922,2 @@ isFlushing = !1; | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
didWarnStateUpdateForUnmountedComponent = {}, | ||
@@ -1012,2 +977,14 @@ ReactNoopUpdateQueue = { | ||
REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = { | ||
H: null, | ||
A: null, | ||
T: null, | ||
S: null, | ||
actQueue: null, | ||
isBatchingLegacy: !1, | ||
didScheduleLegacyUpdate: !1, | ||
didUsePromise: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
}, | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
@@ -1025,2 +1002,3 @@ REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -1129,4 +1107,4 @@ var componentFrameCache = new ( | ||
var result = callback(); | ||
} catch (error$3) { | ||
ReactSharedInternals.thrownErrors.push(error$3); | ||
} catch (error) { | ||
ReactSharedInternals.thrownErrors.push(error); | ||
} | ||
@@ -1150,3 +1128,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);" | ||
@@ -1171,4 +1149,4 @@ )); | ||
}); | ||
} catch (error$4) { | ||
ReactSharedInternals.thrownErrors.push(error$4); | ||
} catch (error$2) { | ||
ReactSharedInternals.thrownErrors.push(error$2); | ||
} | ||
@@ -1207,3 +1185,3 @@ if (0 < ReactSharedInternals.thrownErrors.length) { | ||
((didWarnNoAwaitAct = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)" | ||
@@ -1318,10 +1296,10 @@ )); | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1339,3 +1317,3 @@ typeString, | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"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" | ||
@@ -1391,21 +1369,21 @@ )), | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1441,3 +1419,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1470,6 +1448,5 @@ null === type ? "null" : typeof type | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
var currentTransition = ReactSharedInternals.T; | ||
ReactSharedInternals.T._updatedFibers = new Set(); | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
currentTransition._updatedFibers = new Set(); | ||
try { | ||
@@ -1479,3 +1456,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -1485,4 +1462,4 @@ null !== returnValue && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error$2) { | ||
reportGlobalError(error$2); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
@@ -1494,3 +1471,3 @@ null === prevTransition && | ||
10 < scope && | ||
warn( | ||
console.warn( | ||
"Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table." | ||
@@ -1520,3 +1497,3 @@ )), | ||
Context.$$typeof === REACT_CONSUMER_TYPE && | ||
error$jscomp$0( | ||
console.error( | ||
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?" | ||
@@ -1576,3 +1553,3 @@ ); | ||
}; | ||
exports.version = "19.0.0-rc-6fb39ec9e9-20240621"; | ||
exports.version = "19.0.0-rc-70fb1363-20241010"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1579,0 +1556,0 @@ "function" === |
@@ -459,4 +459,4 @@ /** | ||
var prevTransition = ReactSharedInternals.T, | ||
transition = {}; | ||
ReactSharedInternals.T = transition; | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
@@ -466,3 +466,3 @@ var returnValue = scope(), | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(transition, returnValue); | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
@@ -541,2 +541,2 @@ null !== returnValue && | ||
}; | ||
exports.version = "19.0.0-rc-6fb39ec9e9-20240621"; | ||
exports.version = "19.0.0-rc-70fb1363-20241010"; |
@@ -14,32 +14,2 @@ /** | ||
(function () { | ||
function warn(format) { | ||
for ( | ||
var _len = arguments.length, | ||
args = Array(1 < _len ? _len - 1 : 0), | ||
_key = 1; | ||
_key < _len; | ||
_key++ | ||
) | ||
args[_key - 1] = arguments[_key]; | ||
printWarning("warn", format, args, Error("react-stack-top-frame")); | ||
} | ||
function error$jscomp$0(format) { | ||
for ( | ||
var _len2 = arguments.length, | ||
args = Array(1 < _len2 ? _len2 - 1 : 0), | ||
_key2 = 1; | ||
_key2 < _len2; | ||
_key2++ | ||
) | ||
args[_key2 - 1] = arguments[_key2]; | ||
printWarning("error", format, args, Error("react-stack-top-frame")); | ||
} | ||
function printWarning(level, format, args, currentStack) { | ||
ReactSharedInternals.getCurrentStack && | ||
((currentStack = ReactSharedInternals.getCurrentStack(currentStack)), | ||
"" !== currentStack && | ||
((format += "%s"), (args = args.concat([currentStack])))); | ||
args.unshift(format); | ||
Function.prototype.apply.call(console[level], console, args); | ||
} | ||
function getIteratorFn(maybeIterable) { | ||
@@ -63,16 +33,18 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
} | ||
if (JSCompiler_inline_result) | ||
return ( | ||
(JSCompiler_inline_result = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"), | ||
error$jscomp$0( | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result | ||
), | ||
testStringCoercion(value) | ||
if (JSCompiler_inline_result) { | ||
JSCompiler_inline_result = console; | ||
var JSCompiler_temp_const = JSCompiler_inline_result.error; | ||
var JSCompiler_inline_result$jscomp$0 = | ||
("function" === typeof Symbol && | ||
Symbol.toStringTag && | ||
value[Symbol.toStringTag]) || | ||
value.constructor.name || | ||
"Object"; | ||
JSCompiler_temp_const.call( | ||
JSCompiler_inline_result, | ||
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", | ||
JSCompiler_inline_result$jscomp$0 | ||
); | ||
return testStringCoercion(value); | ||
} | ||
} | ||
@@ -103,3 +75,3 @@ function getComponentNameFromType(type) { | ||
("number" === typeof type.tag && | ||
error$jscomp$0( | ||
console.error( | ||
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue." | ||
@@ -200,3 +172,3 @@ ), | ||
0 > disabledDepth && | ||
error$jscomp$0( | ||
console.error( | ||
"disabledDepth fell below zero. This is a bug in React. Please file an issue." | ||
@@ -212,4 +184,10 @@ ); | ||
prefix = (match && match[1]) || ""; | ||
suffix = | ||
-1 < x.stack.indexOf("\n at") | ||
? " (<anonymous>)" | ||
: -1 < x.stack.indexOf("@") | ||
? "@unknown:0:0" | ||
: ""; | ||
} | ||
return "\n" + prefix + name; | ||
return "\n" + prefix + name + suffix; | ||
} | ||
@@ -421,3 +399,3 @@ function describeNativeComponentFrame(fn, construct) { | ||
((specialPropKeyWarningShown = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", | ||
@@ -437,3 +415,3 @@ displayName | ||
((didWarnAboutElementRef[componentName] = !0), | ||
error$jscomp$0( | ||
console.error( | ||
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release." | ||
@@ -544,3 +522,3 @@ )); | ||
}; | ||
error$jscomp$0( | ||
console.error( | ||
'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.', | ||
@@ -704,3 +682,3 @@ parentType, | ||
(didWarnAboutMaps || | ||
warn( | ||
console.warn( | ||
"Using Maps as children is not supported. Use an array of keyed ReactElements instead." | ||
@@ -755,3 +733,3 @@ ), | ||
null === dispatcher && | ||
error$jscomp$0( | ||
console.error( | ||
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem." | ||
@@ -782,3 +760,3 @@ ); | ||
void 0 === ctor && | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", | ||
@@ -788,3 +766,3 @@ ctor | ||
"default" in ctor || | ||
error$jscomp$0( | ||
console.error( | ||
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", | ||
@@ -834,2 +812,3 @@ ctor | ||
var prefix, | ||
suffix, | ||
reentry = !1; | ||
@@ -922,8 +901,5 @@ var componentFrameCache = new ( | ||
return (fnMap.v = result); | ||
} catch (error$2) { | ||
} catch (error) { | ||
throw ( | ||
((result = dispatcher), | ||
(result.s = 2), | ||
(result.v = error$2), | ||
error$2) | ||
((result = dispatcher), (result.s = 2), (result.v = error), error) | ||
); | ||
@@ -993,10 +969,10 @@ } | ||
: void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
error$jscomp$0( | ||
? ((typeString = | ||
"<" + | ||
(getComponentNameFromType(type.type) || "Unknown") + | ||
" />"), | ||
(i = | ||
" Did you accidentally export a JSX literal instead of a component?")) | ||
: (typeString = typeof type); | ||
console.error( | ||
"React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", | ||
@@ -1014,3 +990,3 @@ typeString, | ||
((didWarnAboutOldJSXRuntime = !0), | ||
warn( | ||
console.warn( | ||
"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" | ||
@@ -1066,21 +1042,21 @@ )), | ||
null != render && render.$$typeof === REACT_MEMO_TYPE | ||
? error$jscomp$0( | ||
? console.error( | ||
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))." | ||
) | ||
: "function" !== typeof render | ||
? error$jscomp$0( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
error$jscomp$0( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
? console.error( | ||
"forwardRef requires a render function but was given %s.", | ||
null === render ? "null" : typeof render | ||
) | ||
: 0 !== render.length && | ||
2 !== render.length && | ||
console.error( | ||
"forwardRef render functions accept exactly two parameters: props and ref. %s", | ||
1 === render.length | ||
? "Did you forget to use the ref parameter?" | ||
: "Any additional parameter will be undefined." | ||
); | ||
null != render && | ||
null != render.defaultProps && | ||
error$jscomp$0( | ||
console.error( | ||
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?" | ||
@@ -1116,3 +1092,3 @@ ); | ||
isValidElementType(type) || | ||
error$jscomp$0( | ||
console.error( | ||
"memo: The first argument must be a component. Instead received: %s", | ||
@@ -1158,3 +1134,3 @@ null === type ? "null" : typeof type | ||
}; | ||
exports.version = "19.0.0-rc-6fb39ec9e9-20240621"; | ||
exports.version = "19.0.0-rc-70fb1363-20241010"; | ||
})(); |
@@ -427,2 +427,2 @@ /** | ||
}; | ||
exports.version = "19.0.0-rc-6fb39ec9e9-20240621"; | ||
exports.version = "19.0.0-rc-70fb1363-20241010"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "19.0.0-rc-6fb39ec9e9-20240621", | ||
"version": "19.0.0-rc-70fb1363-20241010", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237302
6551