Comparing version
@@ -24,4 +24,2 @@ /** | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -45,2 +47,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -119,8 +123,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -162,3 +162,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -171,3 +170,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -180,3 +179,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -267,3 +266,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -275,11 +273,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -314,2 +312,4 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -319,11 +319,20 @@ ReactSharedInternals = | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
isArrayImpl = Array.isArray, | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown; | ||
}; | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
React, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutKeySpread = {}; | ||
@@ -339,2 +348,4 @@ exports.Fragment = REACT_FRAGMENT_TYPE; | ||
) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -347,6 +358,8 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
})(); |
@@ -24,4 +24,2 @@ /** | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -45,2 +47,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -119,8 +123,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -162,3 +162,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -171,3 +170,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -180,3 +179,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -267,3 +266,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -275,11 +273,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -314,2 +312,4 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -323,14 +323,25 @@ ReactSharedInternalsServer = | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
isArrayImpl = Array.isArray, | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown; | ||
}; | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
React, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutKeySpread = {}; | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -343,4 +354,6 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
@@ -356,2 +369,4 @@ }; | ||
) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -364,7 +379,11 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -377,6 +396,8 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
})(); |
@@ -24,4 +24,2 @@ /** | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -45,2 +47,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -119,8 +123,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -162,3 +162,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -171,3 +170,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -180,3 +179,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -267,3 +266,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -275,11 +273,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -314,2 +312,4 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -319,14 +319,25 @@ ReactSharedInternals = | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
isArrayImpl = Array.isArray, | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown; | ||
}; | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
React, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutKeySpread = {}; | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -339,7 +350,11 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -352,6 +367,8 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
})(); |
@@ -24,4 +24,2 @@ /** | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -35,2 +33,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -45,2 +47,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -119,8 +123,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -162,3 +162,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -171,3 +170,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -180,3 +179,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -267,3 +266,2 @@ enumerable: !1, | ||
(checkKeyStringCoercion(config.key), (children = "" + config.key)); | ||
hasValidRef(config); | ||
if ("key" in config) { | ||
@@ -275,11 +273,11 @@ maybeKey = {}; | ||
children && | ||
((config = | ||
defineKeyPropWarningGetter( | ||
maybeKey, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type), | ||
children && defineKeyPropWarningGetter(maybeKey, config)); | ||
: type | ||
); | ||
return ReactElement( | ||
type, | ||
children, | ||
null, | ||
self, | ||
@@ -314,2 +312,4 @@ source, | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
@@ -323,14 +323,25 @@ ReactSharedInternalsServer = | ||
var hasOwnProperty = Object.prototype.hasOwnProperty, | ||
isArrayImpl = Array.isArray; | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
isArrayImpl = Array.isArray, | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown; | ||
}; | ||
React = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind( | ||
React, | ||
UnknownOwner | ||
)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutKeySpread = {}; | ||
exports.Fragment = REACT_FRAGMENT_TYPE; | ||
exports.jsx = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -343,4 +354,6 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
@@ -356,2 +369,4 @@ }; | ||
) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -364,7 +379,11 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
exports.jsxs = function (type, config, maybeKey, source, self) { | ||
var trackActualOwner = | ||
1e4 > ReactSharedInternalsServer.recentlyCreatedOwnerStacks++; | ||
return jsxDEVImpl( | ||
@@ -377,6 +396,8 @@ type, | ||
self, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
trackActualOwner | ||
? Error("react-stack-top-frame") | ||
: unknownOwnerDebugStack, | ||
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
}; | ||
})(); |
@@ -60,2 +60,3 @@ /** | ||
} | ||
function noop() {} | ||
function testStringCoercion(value) { | ||
@@ -91,3 +92,3 @@ return "" + value; | ||
if ("function" === typeof type) | ||
return type.$$typeof === REACT_CLIENT_REFERENCE$1 | ||
return type.$$typeof === REACT_CLIENT_REFERENCE | ||
? null | ||
@@ -99,4 +100,2 @@ : type.displayName || type.name || null; | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -110,2 +109,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -120,2 +123,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -167,8 +172,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -210,3 +211,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -219,3 +219,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -228,3 +228,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -267,3 +267,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -276,3 +275,4 @@ void 0, | ||
); | ||
newKey._store.validated = oldElement._store.validated; | ||
oldElement._store && | ||
(newKey._store.validated = oldElement._store.validated); | ||
return newKey; | ||
@@ -303,3 +303,2 @@ } | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -314,3 +313,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -520,3 +519,60 @@ thenable.then( | ||
} | ||
function noop() {} | ||
function releaseAsyncTransition() { | ||
ReactSharedInternals.asyncTransitions--; | ||
} | ||
function startTransition(scope) { | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = {}; | ||
currentTransition.types = | ||
null !== prevTransition ? prevTransition.types : null; | ||
currentTransition.gesture = null; | ||
currentTransition._updatedFibers = new Set(); | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
var returnValue = scope(), | ||
onStartTransitionFinish = ReactSharedInternals.S; | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
null !== returnValue && | ||
"function" === typeof returnValue.then && | ||
(ReactSharedInternals.asyncTransitions++, | ||
returnValue.then(releaseAsyncTransition, releaseAsyncTransition), | ||
returnValue.then(noop, reportGlobalError)); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
null === prevTransition && | ||
currentTransition._updatedFibers && | ||
((scope = currentTransition._updatedFibers.size), | ||
currentTransition._updatedFibers.clear(), | ||
10 < scope && | ||
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." | ||
)), | ||
null !== prevTransition && | ||
null !== currentTransition.types && | ||
(null !== prevTransition.types && | ||
prevTransition.types !== currentTransition.types && | ||
console.error( | ||
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React." | ||
), | ||
(prevTransition.types = currentTransition.types)), | ||
(ReactSharedInternals.T = prevTransition); | ||
} | ||
} | ||
function addTransitionType(type) { | ||
var transition = ReactSharedInternals.T; | ||
if (null !== transition) { | ||
var transitionTypes = transition.types; | ||
null === transitionTypes | ||
? (transition.types = [type]) | ||
: -1 === transitionTypes.indexOf(type) && transitionTypes.push(type); | ||
} else | ||
0 === ReactSharedInternals.asyncTransitions && | ||
console.error( | ||
"addTransitionType can only be called inside a `startTransition()` or `startGestureTransition()` callback. It must be associated with a specific Transition." | ||
), | ||
startTransition(addTransitionType.bind(null, type)); | ||
} | ||
function enqueueTask(task) { | ||
@@ -622,5 +678,5 @@ if (null === enqueueTaskImpl) | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
@@ -680,3 +736,3 @@ didWarnStateUpdateForUnmountedComponent = {}, | ||
var isArrayImpl = Array.isArray, | ||
REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
ReactSharedInternals = { | ||
@@ -687,3 +743,5 @@ H: null, | ||
S: null, | ||
G: null, | ||
actQueue: null, | ||
asyncTransitions: 0, | ||
isBatchingLegacy: !1, | ||
@@ -693,15 +751,22 @@ didScheduleLegacyUpdate: !1, | ||
thrownErrors: [], | ||
getCurrentStack: null | ||
getCurrentStack: null, | ||
recentlyCreatedOwnerStacks: 0 | ||
}, | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown, | ||
didWarnAboutOldJSXRuntime; | ||
}; | ||
deprecatedAPIs = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = deprecatedAPIs[ | ||
"react-stack-bottom-frame" | ||
].bind(deprecatedAPIs, UnknownOwner)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutMaps = !1, | ||
@@ -751,2 +816,8 @@ userProvidedKeyEscapeRegex = /\/+/g, | ||
: enqueueTask; | ||
deprecatedAPIs = Object.freeze({ | ||
__proto__: null, | ||
c: function (size) { | ||
return resolveDispatcher().useMemoCache(size); | ||
} | ||
}); | ||
exports.Children = { | ||
@@ -793,2 +864,3 @@ map: mapChildren, | ||
ReactSharedInternals; | ||
exports.__COMPILER_RUNTIME = deprecatedAPIs; | ||
exports.act = function (callback) { | ||
@@ -924,7 +996,22 @@ var prevActQueue = ReactSharedInternals.actQueue, | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -936,8 +1023,10 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
@@ -947,3 +1036,2 @@ props = ReactElement( | ||
key, | ||
null, | ||
void 0, | ||
@@ -994,3 +1082,2 @@ void 0, | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -1019,13 +1106,13 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (node) { | ||
var propName = | ||
node && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
node && defineKeyPropWarningGetter(i, propName); | ||
} | ||
: type | ||
); | ||
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
return ReactElement( | ||
type, | ||
node, | ||
null, | ||
void 0, | ||
@@ -1035,4 +1122,4 @@ void 0, | ||
i, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, | ||
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
@@ -1104,19 +1191,3 @@ }; | ||
exports.memo = function (type, compare) { | ||
"string" === typeof type || | ||
"function" === typeof type || | ||
type === REACT_FRAGMENT_TYPE || | ||
type === REACT_PROFILER_TYPE || | ||
type === REACT_STRICT_MODE_TYPE || | ||
type === REACT_SUSPENSE_TYPE || | ||
type === REACT_SUSPENSE_LIST_TYPE || | ||
type === REACT_OFFSCREEN_TYPE || | ||
("object" === typeof type && | ||
null !== type && | ||
(type.$$typeof === REACT_LAZY_TYPE || | ||
type.$$typeof === REACT_MEMO_TYPE || | ||
type.$$typeof === REACT_CONTEXT_TYPE || | ||
type.$$typeof === REACT_CONSUMER_TYPE || | ||
type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
type.$$typeof === REACT_CLIENT_REFERENCE || | ||
void 0 !== type.getModuleId)) || | ||
null == type && | ||
console.error( | ||
@@ -1148,33 +1219,7 @@ "memo: The first argument must be a component. Instead received: %s", | ||
}; | ||
exports.startTransition = function (scope) { | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
currentTransition._updatedFibers = new Set(); | ||
try { | ||
var returnValue = scope(), | ||
onStartTransitionFinish = ReactSharedInternals.S; | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
null !== returnValue && | ||
"function" === typeof returnValue.then && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
null === prevTransition && | ||
currentTransition._updatedFibers && | ||
((scope = currentTransition._updatedFibers.size), | ||
currentTransition._updatedFibers.clear(), | ||
10 < scope && | ||
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." | ||
)), | ||
(ReactSharedInternals.T = prevTransition); | ||
} | ||
}; | ||
exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.startTransition = startTransition; | ||
exports.unstable_Activity = REACT_ACTIVITY_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
exports.unstable_addTransitionType = addTransitionType; | ||
exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -1191,2 +1236,38 @@ var dispatcher = ReactSharedInternals.A; | ||
}; | ||
exports.unstable_startGestureTransition = function ( | ||
provider, | ||
scope, | ||
options | ||
) { | ||
if (null == provider) | ||
throw Error( | ||
"A Timeline is required as the first argument to startGestureTransition." | ||
); | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = { types: null }; | ||
currentTransition.gesture = provider; | ||
currentTransition._updatedFibers = new Set(); | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
var returnValue = scope(); | ||
"object" === typeof returnValue && | ||
null !== returnValue && | ||
"function" === typeof returnValue.then && | ||
console.error( | ||
"Cannot use an async function in startGestureTransition. It must be able to start immediately." | ||
); | ||
var onStartGestureTransitionFinish = ReactSharedInternals.G; | ||
if (null !== onStartGestureTransitionFinish) | ||
return onStartGestureTransitionFinish( | ||
currentTransition, | ||
provider, | ||
options | ||
); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
ReactSharedInternals.T = prevTransition; | ||
} | ||
return noop; | ||
}; | ||
exports.unstable_useCacheRefresh = function () { | ||
@@ -1223,2 +1304,6 @@ return resolveDispatcher().useCacheRefresh(); | ||
exports.useEffect = function (create, deps) { | ||
null == create && | ||
console.warn( | ||
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?" | ||
); | ||
return resolveDispatcher().useEffect(create, deps); | ||
@@ -1233,5 +1318,13 @@ }; | ||
exports.useInsertionEffect = function (create, deps) { | ||
null == create && | ||
console.warn( | ||
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?" | ||
); | ||
return resolveDispatcher().useInsertionEffect(create, deps); | ||
}; | ||
exports.useLayoutEffect = function (create, deps) { | ||
null == create && | ||
console.warn( | ||
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?" | ||
); | ||
return resolveDispatcher().useLayoutEffect(create, deps); | ||
@@ -1266,3 +1359,3 @@ }; | ||
}; | ||
exports.version = "19.0.0-experimental-459fd418-20241001"; | ||
exports.version = "19.2.0-experimental-462d08f9-20250517"; | ||
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && | ||
@@ -1269,0 +1362,0 @@ "function" === |
@@ -24,5 +24,5 @@ /** | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -79,7 +79,8 @@ function getIteratorFn(maybeIterable) { | ||
pureComponentPrototype.isPureReactComponent = !0; | ||
var isArrayImpl = Array.isArray, | ||
ReactSharedInternals = { H: null, A: null, T: null, S: null }, | ||
var isArrayImpl = Array.isArray; | ||
function noop() {} | ||
var ReactSharedInternals = { H: null, A: null, T: null, S: null, G: null }, | ||
hasOwnProperty = Object.prototype.hasOwnProperty; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -89,3 +90,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -98,3 +99,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -128,3 +128,2 @@ void 0, | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -139,3 +138,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -332,3 +331,36 @@ thenable.then( | ||
}; | ||
function noop() {} | ||
function startTransition(scope) { | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = {}; | ||
currentTransition.types = | ||
null !== prevTransition ? prevTransition.types : null; | ||
currentTransition.gesture = null; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
var returnValue = scope(), | ||
onStartTransitionFinish = ReactSharedInternals.S; | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
null !== returnValue && | ||
"function" === typeof returnValue.then && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
null !== prevTransition && | ||
null !== currentTransition.types && | ||
(prevTransition.types = currentTransition.types), | ||
(ReactSharedInternals.T = prevTransition); | ||
} | ||
} | ||
function addTransitionType(type) { | ||
var transition = ReactSharedInternals.T; | ||
if (null !== transition) { | ||
var transitionTypes = transition.types; | ||
null === transitionTypes | ||
? (transition.types = [type]) | ||
: -1 === transitionTypes.indexOf(type) && transitionTypes.push(type); | ||
} else startTransition(addTransitionType.bind(null, type)); | ||
} | ||
exports.Children = { | ||
@@ -375,4 +407,7 @@ map: mapChildren, | ||
ReactSharedInternals; | ||
exports.act = function () { | ||
throw Error("act(...) is not supported in production builds of React."); | ||
exports.__COMPILER_RUNTIME = { | ||
__proto__: null, | ||
c: function (size) { | ||
return ReactSharedInternals.H.useMemoCache(size); | ||
} | ||
}; | ||
@@ -384,5 +419,2 @@ exports.cache = function (fn) { | ||
}; | ||
exports.captureOwnerStack = function () { | ||
return null; | ||
}; | ||
exports.cloneElement = function (element, config, children) { | ||
@@ -413,3 +445,3 @@ if (null === element || void 0 === element) | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -454,3 +486,3 @@ exports.createContext = function (defaultValue) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -484,24 +516,7 @@ exports.createRef = function () { | ||
}; | ||
exports.startTransition = function (scope) { | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = {}; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
var returnValue = scope(), | ||
onStartTransitionFinish = ReactSharedInternals.S; | ||
null !== onStartTransitionFinish && | ||
onStartTransitionFinish(currentTransition, returnValue); | ||
"object" === typeof returnValue && | ||
null !== returnValue && | ||
"function" === typeof returnValue.then && | ||
returnValue.then(noop, reportGlobalError); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
ReactSharedInternals.T = prevTransition; | ||
} | ||
}; | ||
exports.unstable_Activity = REACT_OFFSCREEN_TYPE; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.startTransition = startTransition; | ||
exports.unstable_Activity = REACT_ACTIVITY_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
exports.unstable_addTransitionType = addTransitionType; | ||
exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -516,2 +531,27 @@ var dispatcher = ReactSharedInternals.A; | ||
}; | ||
exports.unstable_startGestureTransition = function (provider, scope, options) { | ||
if (null == provider) | ||
throw Error( | ||
"A Timeline is required as the first argument to startGestureTransition." | ||
); | ||
var prevTransition = ReactSharedInternals.T, | ||
currentTransition = { types: null }; | ||
currentTransition.gesture = provider; | ||
ReactSharedInternals.T = currentTransition; | ||
try { | ||
scope(); | ||
var onStartGestureTransitionFinish = ReactSharedInternals.G; | ||
if (null !== onStartGestureTransitionFinish) | ||
return onStartGestureTransitionFinish( | ||
currentTransition, | ||
provider, | ||
options | ||
); | ||
} catch (error) { | ||
reportGlobalError(error); | ||
} finally { | ||
ReactSharedInternals.T = prevTransition; | ||
} | ||
return noop; | ||
}; | ||
exports.unstable_useCacheRefresh = function () { | ||
@@ -578,2 +618,2 @@ return ReactSharedInternals.H.useCacheRefresh(); | ||
}; | ||
exports.version = "19.0.0-experimental-459fd418-20241001"; | ||
exports.version = "19.2.0-experimental-462d08f9-20250517"; |
@@ -14,2 +14,3 @@ /** | ||
(function () { | ||
function noop() {} | ||
function getIteratorFn(maybeIterable) { | ||
@@ -53,3 +54,3 @@ if (null === maybeIterable || "object" !== typeof maybeIterable) | ||
if ("function" === typeof type) | ||
return type.$$typeof === REACT_CLIENT_REFERENCE$1 | ||
return type.$$typeof === REACT_CLIENT_REFERENCE | ||
? null | ||
@@ -61,4 +62,2 @@ : type.displayName || type.name || null; | ||
return "Fragment"; | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_PROFILER_TYPE: | ||
@@ -72,2 +71,6 @@ return "Profiler"; | ||
return "SuspenseList"; | ||
case REACT_ACTIVITY_TYPE: | ||
return "Activity"; | ||
case REACT_VIEW_TRANSITION_TYPE: | ||
return "ViewTransition"; | ||
} | ||
@@ -82,2 +85,4 @@ if ("object" === typeof type) | ||
) { | ||
case REACT_PORTAL_TYPE: | ||
return "Portal"; | ||
case REACT_CONTEXT_TYPE: | ||
@@ -129,8 +134,4 @@ return (type.displayName || "Context") + ".Provider"; | ||
} | ||
function hasValidRef(config) { | ||
if (hasOwnProperty.call(config, "ref")) { | ||
var getter = Object.getOwnPropertyDescriptor(config, "ref").get; | ||
if (getter && getter.isReactWarning) return !1; | ||
} | ||
return void 0 !== config.ref; | ||
function UnknownOwner() { | ||
return Error("react-stack-top-frame"); | ||
} | ||
@@ -172,3 +173,2 @@ function hasValidKey(config) { | ||
key, | ||
_ref, | ||
self, | ||
@@ -181,3 +181,3 @@ source, | ||
) { | ||
_ref = props.ref; | ||
self = props.ref; | ||
type = { | ||
@@ -190,3 +190,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
}; | ||
null !== (void 0 !== _ref ? _ref : null) | ||
null !== (void 0 !== self ? self : null) | ||
? Object.defineProperty(type, "ref", { | ||
@@ -229,3 +229,2 @@ enumerable: !1, | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -238,3 +237,4 @@ void 0, | ||
); | ||
newKey._store.validated = oldElement._store.validated; | ||
oldElement._store && | ||
(newKey._store.validated = oldElement._store.validated); | ||
return newKey; | ||
@@ -265,3 +265,2 @@ } | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -276,3 +275,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -485,3 +484,5 @@ thenable.then( | ||
} | ||
function noop() {} | ||
function releaseAsyncTransition() { | ||
ReactSharedInternals.asyncTransitions--; | ||
} | ||
function cleanup(entryValue) { | ||
@@ -509,2 +510,3 @@ var entry = TaintRegistryValues.get(entryValue); | ||
ReactSharedInternals.getCurrentStack = null; | ||
ReactSharedInternals.recentlyCreatedOwnerStacks = 0; | ||
var isArrayImpl = Array.isArray, | ||
@@ -523,20 +525,26 @@ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
REACT_MEMO_TYPE = Symbol.for("react.memo"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"); | ||
TaintRegistryObjects$1 = Symbol.for("react.debug_trace_mode"); | ||
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator, | ||
REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), | ||
hasOwnProperty = Object.prototype.hasOwnProperty, | ||
assign = Object.assign, | ||
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"); | ||
new ("function" === typeof WeakMap ? WeakMap : Map)(); | ||
var createTask = console.createTask | ||
createTask = console.createTask | ||
? console.createTask | ||
: function () { | ||
return null; | ||
}, | ||
specialPropKeyWarningShown, | ||
didWarnAboutOldJSXRuntime; | ||
}; | ||
TaintRegistryObjects$1 = { | ||
"react-stack-bottom-frame": function (callStackForError) { | ||
return callStackForError(); | ||
} | ||
}; | ||
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime; | ||
var didWarnAboutElementRef = {}; | ||
var unknownOwnerDebugStack = TaintRegistryObjects$1[ | ||
"react-stack-bottom-frame" | ||
].bind(TaintRegistryObjects$1, UnknownOwner)(); | ||
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner)); | ||
var didWarnAboutMaps = !1, | ||
@@ -573,3 +581,3 @@ userProvidedKeyEscapeRegex = /\/+/g, | ||
}; | ||
TaintRegistryValues$1 = Object.getPrototypeOf; | ||
TaintRegistryObjects$1 = Object.getPrototypeOf; | ||
var TaintRegistryObjects = ReactSharedInternals.TaintRegistryObjects, | ||
@@ -580,3 +588,3 @@ TaintRegistryValues = ReactSharedInternals.TaintRegistryValues, | ||
ReactSharedInternals.TaintRegistryPendingRequests, | ||
TypedArrayConstructor = TaintRegistryValues$1( | ||
TypedArrayConstructor = TaintRegistryObjects$1( | ||
Uint32Array.prototype | ||
@@ -685,7 +693,22 @@ ).constructor, | ||
owner = element._owner; | ||
if (null != config) | ||
for (propName in (hasValidRef(config) && (owner = getOwner()), | ||
if (null != config) { | ||
var JSCompiler_inline_result; | ||
a: { | ||
if ( | ||
hasOwnProperty.call(config, "ref") && | ||
(JSCompiler_inline_result = Object.getOwnPropertyDescriptor( | ||
config, | ||
"ref" | ||
).get) && | ||
JSCompiler_inline_result.isReactWarning | ||
) { | ||
JSCompiler_inline_result = !1; | ||
break a; | ||
} | ||
JSCompiler_inline_result = void 0 !== config.ref; | ||
} | ||
JSCompiler_inline_result && (owner = getOwner()); | ||
hasValidKey(config) && | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)), | ||
config)) | ||
(checkKeyStringCoercion(config.key), (key = "" + config.key)); | ||
for (propName in config) | ||
!hasOwnProperty.call(config, propName) || | ||
@@ -697,8 +720,10 @@ "key" === propName || | ||
(props[propName] = config[propName]); | ||
} | ||
var propName = arguments.length - 2; | ||
if (1 === propName) props.children = children; | ||
else if (1 < propName) { | ||
for (var childArray = Array(propName), i = 0; i < propName; i++) | ||
childArray[i] = arguments[i + 2]; | ||
props.children = childArray; | ||
JSCompiler_inline_result = Array(propName); | ||
for (var i = 0; i < propName; i++) | ||
JSCompiler_inline_result[i] = arguments[i + 2]; | ||
props.children = JSCompiler_inline_result; | ||
} | ||
@@ -708,3 +733,2 @@ props = ReactElement( | ||
key, | ||
null, | ||
void 0, | ||
@@ -737,3 +761,2 @@ void 0, | ||
)), | ||
hasValidRef(config), | ||
hasValidKey(config) && | ||
@@ -762,13 +785,13 @@ (checkKeyStringCoercion(config.key), (node = "" + config.key)), | ||
void 0 === i[propName] && (i[propName] = childrenLength[propName]); | ||
if (node) { | ||
var propName = | ||
node && | ||
defineKeyPropWarningGetter( | ||
i, | ||
"function" === typeof type | ||
? type.displayName || type.name || "Unknown" | ||
: type; | ||
node && defineKeyPropWarningGetter(i, propName); | ||
} | ||
: type | ||
); | ||
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++; | ||
return ReactElement( | ||
type, | ||
node, | ||
null, | ||
void 0, | ||
@@ -778,4 +801,4 @@ void 0, | ||
i, | ||
Error("react-stack-top-frame"), | ||
createTask(getTaskName(type)) | ||
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, | ||
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask | ||
); | ||
@@ -899,19 +922,3 @@ }; | ||
exports.memo = function (type, compare) { | ||
"string" === typeof type || | ||
"function" === typeof type || | ||
type === REACT_FRAGMENT_TYPE || | ||
type === REACT_PROFILER_TYPE || | ||
type === REACT_STRICT_MODE_TYPE || | ||
type === REACT_SUSPENSE_TYPE || | ||
type === REACT_SUSPENSE_LIST_TYPE || | ||
type === REACT_OFFSCREEN_TYPE || | ||
("object" === typeof type && | ||
null !== type && | ||
(type.$$typeof === REACT_LAZY_TYPE || | ||
type.$$typeof === REACT_MEMO_TYPE || | ||
type.$$typeof === REACT_CONTEXT_TYPE || | ||
type.$$typeof === REACT_CONSUMER_TYPE || | ||
type.$$typeof === REACT_FORWARD_REF_TYPE || | ||
type.$$typeof === REACT_CLIENT_REFERENCE || | ||
void 0 !== type.getModuleId)) || | ||
null == type && | ||
console.error( | ||
@@ -946,4 +953,7 @@ "memo: The first argument must be a component. Instead received: %s", | ||
currentTransition = {}; | ||
currentTransition.types = | ||
null !== prevTransition ? prevTransition.types : null; | ||
currentTransition.gesture = null; | ||
currentTransition._updatedFibers = new Set(); | ||
ReactSharedInternals.T = currentTransition; | ||
currentTransition._updatedFibers = new Set(); | ||
try { | ||
@@ -957,3 +967,5 @@ var returnValue = scope(), | ||
"function" === typeof returnValue.then && | ||
returnValue.then(noop, reportGlobalError); | ||
(ReactSharedInternals.asyncTransitions++, | ||
returnValue.then(releaseAsyncTransition, releaseAsyncTransition), | ||
returnValue.then(noop, reportGlobalError)); | ||
} catch (error) { | ||
@@ -970,7 +982,15 @@ reportGlobalError(error); | ||
)), | ||
null !== prevTransition && | ||
null !== currentTransition.types && | ||
(null !== prevTransition.types && | ||
prevTransition.types !== currentTransition.types && | ||
console.error( | ||
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React." | ||
), | ||
(prevTransition.types = currentTransition.types)), | ||
(ReactSharedInternals.T = prevTransition); | ||
} | ||
}; | ||
exports.unstable_DebugTracingMode = TaintRegistryObjects$1; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -990,9 +1010,2 @@ var dispatcher = ReactSharedInternals.A; | ||
}; | ||
exports.useActionState = function (action, initialState, permalink) { | ||
return resolveDispatcher().useActionState( | ||
action, | ||
initialState, | ||
permalink | ||
); | ||
}; | ||
exports.useCallback = function (callback, deps) { | ||
@@ -1010,3 +1023,3 @@ return resolveDispatcher().useCallback(callback, deps); | ||
}; | ||
exports.version = "19.0.0-experimental-459fd418-20241001"; | ||
exports.version = "19.2.0-experimental-462d08f9-20250517"; | ||
})(); |
@@ -39,4 +39,5 @@ /** | ||
} | ||
var isArrayImpl = Array.isArray, | ||
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
var isArrayImpl = Array.isArray; | ||
function noop() {} | ||
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), | ||
REACT_PORTAL_TYPE = Symbol.for("react.portal"), | ||
@@ -48,6 +49,8 @@ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), | ||
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), | ||
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), | ||
REACT_MEMO_TYPE = Symbol.for("react.memo"), | ||
REACT_LAZY_TYPE = Symbol.for("react.lazy"), | ||
REACT_DEBUG_TRACING_MODE_TYPE = Symbol.for("react.debug_trace_mode"), | ||
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), | ||
REACT_POSTPONE_TYPE = Symbol.for("react.postpone"), | ||
REACT_VIEW_TRANSITION_TYPE = Symbol.for("react.view_transition"), | ||
MAYBE_ITERATOR_SYMBOL = Symbol.iterator; | ||
@@ -63,4 +66,4 @@ function getIteratorFn(maybeIterable) { | ||
assign = Object.assign; | ||
function ReactElement(type, key, _ref, self, source, owner, props) { | ||
_ref = props.ref; | ||
function ReactElement(type, key, self, source, owner, props) { | ||
self = props.ref; | ||
return { | ||
@@ -70,3 +73,3 @@ $$typeof: REACT_ELEMENT_TYPE, | ||
key: key, | ||
ref: void 0 !== _ref ? _ref : null, | ||
ref: void 0 !== self ? self : null, | ||
props: props | ||
@@ -79,3 +82,2 @@ }; | ||
newKey, | ||
null, | ||
void 0, | ||
@@ -109,3 +111,2 @@ void 0, | ||
} | ||
function noop$1() {} | ||
function resolveThenable(thenable) { | ||
@@ -120,3 +121,3 @@ switch (thenable.status) { | ||
("string" === typeof thenable.status | ||
? thenable.then(noop$1, noop$1) | ||
? thenable.then(noop, noop) | ||
: ((thenable.status = "pending"), | ||
@@ -289,32 +290,31 @@ thenable.then( | ||
var reportGlobalError = | ||
"function" === typeof reportError | ||
? reportError | ||
: function (error) { | ||
if ( | ||
"object" === typeof window && | ||
"function" === typeof window.ErrorEvent | ||
) { | ||
var event = new window.ErrorEvent("error", { | ||
bubbles: !0, | ||
cancelable: !0, | ||
message: | ||
"object" === typeof error && | ||
null !== error && | ||
"string" === typeof error.message | ||
? String(error.message) | ||
: String(error), | ||
error: error | ||
}); | ||
if (!window.dispatchEvent(event)) return; | ||
} else if ( | ||
"object" === typeof process && | ||
"function" === typeof process.emit | ||
) { | ||
process.emit("uncaughtException", error); | ||
return; | ||
} | ||
console.error(error); | ||
}; | ||
function noop() {} | ||
var getPrototypeOf = Object.getPrototypeOf, | ||
"function" === typeof reportError | ||
? reportError | ||
: function (error) { | ||
if ( | ||
"object" === typeof window && | ||
"function" === typeof window.ErrorEvent | ||
) { | ||
var event = new window.ErrorEvent("error", { | ||
bubbles: !0, | ||
cancelable: !0, | ||
message: | ||
"object" === typeof error && | ||
null !== error && | ||
"string" === typeof error.message | ||
? String(error.message) | ||
: String(error), | ||
error: error | ||
}); | ||
if (!window.dispatchEvent(event)) return; | ||
} else if ( | ||
"object" === typeof process && | ||
"function" === typeof process.emit | ||
) { | ||
process.emit("uncaughtException", error); | ||
return; | ||
} | ||
console.error(error); | ||
}, | ||
getPrototypeOf = Object.getPrototypeOf, | ||
TaintRegistryObjects = ReactSharedInternals.TaintRegistryObjects, | ||
@@ -415,5 +415,2 @@ TaintRegistryValues = ReactSharedInternals.TaintRegistryValues, | ||
}; | ||
exports.captureOwnerStack = function () { | ||
return null; | ||
}; | ||
exports.cloneElement = function (element, config, children) { | ||
@@ -442,3 +439,3 @@ if (null === element || void 0 === element) | ||
} | ||
return ReactElement(element.type, key, null, void 0, void 0, owner, props); | ||
return ReactElement(element.type, key, void 0, void 0, owner, props); | ||
}; | ||
@@ -467,3 +464,3 @@ exports.createElement = function (type, config, children) { | ||
(props[propName] = childrenLength[propName]); | ||
return ReactElement(type, key, null, void 0, void 0, null, props); | ||
return ReactElement(type, key, void 0, void 0, null, props); | ||
}; | ||
@@ -538,2 +535,5 @@ exports.createRef = function () { | ||
currentTransition = {}; | ||
currentTransition.types = | ||
null !== prevTransition ? prevTransition.types : null; | ||
currentTransition.gesture = null; | ||
ReactSharedInternals.T = currentTransition; | ||
@@ -552,7 +552,11 @@ try { | ||
} finally { | ||
ReactSharedInternals.T = prevTransition; | ||
null !== prevTransition && | ||
null !== currentTransition.types && | ||
(prevTransition.types = currentTransition.types), | ||
(ReactSharedInternals.T = prevTransition); | ||
} | ||
}; | ||
exports.unstable_DebugTracingMode = REACT_DEBUG_TRACING_MODE_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_TYPE; | ||
exports.unstable_Activity = REACT_ACTIVITY_TYPE; | ||
exports.unstable_SuspenseList = REACT_SUSPENSE_LIST_TYPE; | ||
exports.unstable_ViewTransition = REACT_VIEW_TRANSITION_TYPE; | ||
exports.unstable_getCacheForType = function (resourceType) { | ||
@@ -570,5 +574,2 @@ var dispatcher = ReactSharedInternals.A; | ||
}; | ||
exports.useActionState = function (action, initialState, permalink) { | ||
return ReactSharedInternals.H.useActionState(action, initialState, permalink); | ||
}; | ||
exports.useCallback = function (callback, deps) { | ||
@@ -584,2 +585,2 @@ return ReactSharedInternals.H.useCallback(callback, deps); | ||
}; | ||
exports.version = "19.0.0-experimental-459fd418-20241001"; | ||
exports.version = "19.2.0-experimental-462d08f9-20250517"; |
@@ -7,3 +7,3 @@ { | ||
], | ||
"version": "0.0.0-experimental-459fd418-20241001", | ||
"version": "0.0.0-experimental-462d08f9-20250517", | ||
"homepage": "https://react.dev/", | ||
@@ -10,0 +10,0 @@ "bugs": "https://github.com/facebook/react/issues", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
187190
4.99%5255
4.35%0
-100%