diff --git a/examples/reproduction-template/package.json b/examples/reproduction-template/package.json index f2d8ad51b6078..87e96fb3aa2e4 100644 --- a/examples/reproduction-template/package.json +++ b/examples/reproduction-template/package.json @@ -7,8 +7,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204" }, "devDependencies": { "@types/node": "20.12.12", diff --git a/package.json b/package.json index 2b9a5ea20d6d9..c3d7484ad9c21 100644 --- a/package.json +++ b/package.json @@ -206,19 +206,19 @@ "pretty-bytes": "5.3.0", "pretty-ms": "7.0.0", "random-seed": "0.3.0", - "react": "19.0.0-rc-1b1283ad-20241203", + "react": "19.0.0-rc-de68d2f4-20241204", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203", + "react-builtin": "npm:react@19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@19.0.0-rc-1b1283ad-20241203", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-1b1283ad-20241203", - "react-experimental-builtin": "npm:react@0.0.0-experimental-1b1283ad-20241203", - "react-is-builtin": "npm:react-is@19.0.0-rc-1b1283ad-20241203", - "react-server-dom-turbopack": "19.0.0-rc-1b1283ad-20241203", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-1b1283ad-20241203", - "react-server-dom-webpack": "19.0.0-rc-1b1283ad-20241203", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-1b1283ad-20241203", + "react-dom-builtin": "npm:react-dom@19.0.0-rc-de68d2f4-20241204", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-de68d2f4-20241204", + "react-experimental-builtin": "npm:react@0.0.0-experimental-de68d2f4-20241204", + "react-is-builtin": "npm:react-is@19.0.0-rc-de68d2f4-20241204", + "react-server-dom-turbopack": "19.0.0-rc-de68d2f4-20241204", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-de68d2f4-20241204", + "react-server-dom-webpack": "19.0.0-rc-de68d2f4-20241204", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-de68d2f4-20241204", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -228,8 +228,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.25.0-rc-1b1283ad-20241203", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-1b1283ad-20241203", + "scheduler-builtin": "npm:scheduler@0.25.0-rc-de68d2f4-20241204", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-de68d2f4-20241204", "seedrandom": "3.0.5", "semver": "7.3.7", "shell-quote": "1.7.3", @@ -269,10 +269,10 @@ "@babel/traverse": "7.22.5", "@types/react": "npm:types-react@19.0.0-rc.0", "@types/react-dom": "npm:types-react-dom@19.0.0-rc.0", - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203", - "react-is": "19.0.0-rc-1b1283ad-20241203", - "scheduler": "0.25.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204", + "react-is": "19.0.0-rc-de68d2f4-20241204", + "scheduler": "0.25.0-rc-de68d2f4-20241204" }, "patchedDependencies": { "webpack-sources@3.2.3": "patches/webpack-sources@3.2.3.patch" diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index aab1d853ecfe3..a3902dbe44a87 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -13,7 +13,7 @@ import { GetTemplateFileArgs, InstallTemplateArgs } from "./types"; // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-1b1283ad-20241203"; +const nextjsReactPeerVersion = "19.0.0-rc-de68d2f4-20241204"; /** * Get the file path for a given file in a template, e.g. "next.config.js". diff --git a/packages/next/package.json b/packages/next/package.json index 09271b34c7e46..705b84dc73b49 100644 --- a/packages/next/package.json +++ b/packages/next/package.json @@ -109,8 +109,8 @@ "@opentelemetry/api": "^1.1.0", "@playwright/test": "^1.41.2", "babel-plugin-react-compiler": "*", - "react": "^18.2.0 || 19.0.0-rc-1b1283ad-20241203", - "react-dom": "^18.2.0 || 19.0.0-rc-1b1283ad-20241203", + "react": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204", + "react-dom": "^18.2.0 || 19.0.0-rc-de68d2f4-20241204", "sass": "^1.3.0" }, "peerDependenciesMeta": { diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js index d293c691e51b1..a4ac951fd32d3 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.development.js @@ -7533,7 +7533,7 @@ ((state = state.dehydrated), null === state || state.data === SUSPENSE_PENDING_START_DATA || - state.data === SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(state)) ) return node; } else if ( @@ -8979,33 +8979,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2337; - var JSCompiler_object_inline_stack_2336 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2330; + var JSCompiler_object_inline_stack_2329 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2334 = !1; + var JSCompiler_object_inline_message_2327 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2337 = didSuspend) || - (JSCompiler_object_inline_componentStack_2337 = + (JSCompiler_object_inline_componentStack_2330 = didSuspend) || + (JSCompiler_object_inline_componentStack_2330 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2337 && - ((JSCompiler_object_inline_message_2334 = !0), + JSCompiler_object_inline_componentStack_2330 && + ((JSCompiler_object_inline_message_2327 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2337 = + JSCompiler_object_inline_componentStack_2330 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2334 + JSCompiler_object_inline_message_2327 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2335 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2328 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2335)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2328)) { c: { - var instance = JSCompiler_object_inline_digest_2335; + var instance = JSCompiler_object_inline_digest_2328; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9046,88 +9046,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2335 + JSCompiler_object_inline_digest_2328 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2335 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2328 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2335 && - ((JSCompiler_object_inline_digest_2335 = - JSCompiler_object_inline_digest_2335.dehydrated), - null !== JSCompiler_object_inline_digest_2335) + null !== JSCompiler_object_inline_digest_2328 && + ((JSCompiler_object_inline_digest_2328 = + JSCompiler_object_inline_digest_2328.dehydrated), + null !== JSCompiler_object_inline_digest_2328) ) return ( - JSCompiler_object_inline_digest_2335.data === - SUSPENSE_FALLBACK_START_DATA + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2328) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2335 = - JSCompiler_object_inline_stack_2336.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2336.fallback; - if (JSCompiler_object_inline_message_2334) + JSCompiler_object_inline_digest_2328 = + JSCompiler_object_inline_stack_2329.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2329.fallback; + if (JSCompiler_object_inline_message_2327) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2336 = + (JSCompiler_object_inline_stack_2329 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2335, + JSCompiler_object_inline_digest_2328, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2334 = workInProgress.child), - (JSCompiler_object_inline_message_2334.memoizedState = + (JSCompiler_object_inline_message_2327 = workInProgress.child), + (JSCompiler_object_inline_message_2327.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2334.childLanes = + (JSCompiler_object_inline_message_2327.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2337, + JSCompiler_object_inline_componentStack_2330, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2336 + JSCompiler_object_inline_stack_2329 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2336.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2329.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2336 = + (JSCompiler_object_inline_stack_2329 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2335, + JSCompiler_object_inline_digest_2328, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2334 = workInProgress.child), - (JSCompiler_object_inline_message_2334.memoizedState = + (JSCompiler_object_inline_message_2327 = workInProgress.child), + (JSCompiler_object_inline_message_2327.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2334.childLanes = + (JSCompiler_object_inline_message_2327.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2337, + JSCompiler_object_inline_componentStack_2330, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2336 + JSCompiler_object_inline_stack_2329 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2335 + JSCompiler_object_inline_digest_2328 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2335 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2335) + ((JSCompiler_object_inline_digest_2328 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2328) ) { if (didSuspend) workInProgress.flags & 256 @@ -9144,95 +9143,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2334 = - JSCompiler_object_inline_stack_2336.fallback), - (JSCompiler_object_inline_digest_2335 = workInProgress.mode), - (JSCompiler_object_inline_stack_2336 = + (JSCompiler_object_inline_message_2327 = + JSCompiler_object_inline_stack_2329.fallback), + (JSCompiler_object_inline_digest_2328 = workInProgress.mode), + (JSCompiler_object_inline_stack_2329 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2336.children + children: JSCompiler_object_inline_stack_2329.children }, - JSCompiler_object_inline_digest_2335 + JSCompiler_object_inline_digest_2328 )), - (JSCompiler_object_inline_message_2334 = + (JSCompiler_object_inline_message_2327 = createFiberFromFragment( - JSCompiler_object_inline_message_2334, - JSCompiler_object_inline_digest_2335, + JSCompiler_object_inline_message_2327, + JSCompiler_object_inline_digest_2328, renderLanes, null )), - (JSCompiler_object_inline_message_2334.flags |= 2), - (JSCompiler_object_inline_stack_2336.return = workInProgress), - (JSCompiler_object_inline_message_2334.return = workInProgress), - (JSCompiler_object_inline_stack_2336.sibling = - JSCompiler_object_inline_message_2334), - (workInProgress.child = JSCompiler_object_inline_stack_2336), + (JSCompiler_object_inline_message_2327.flags |= 2), + (JSCompiler_object_inline_stack_2329.return = workInProgress), + (JSCompiler_object_inline_message_2327.return = workInProgress), + (JSCompiler_object_inline_stack_2329.sibling = + JSCompiler_object_inline_message_2327), + (workInProgress.child = JSCompiler_object_inline_stack_2329), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2336 = workInProgress.child), - (JSCompiler_object_inline_stack_2336.memoizedState = + (JSCompiler_object_inline_stack_2329 = workInProgress.child), + (JSCompiler_object_inline_stack_2329.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2336.childLanes = + (JSCompiler_object_inline_stack_2329.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2337, + JSCompiler_object_inline_componentStack_2330, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2334)); + (workInProgress = JSCompiler_object_inline_message_2327)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2335.data === - SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2328)) ) { - JSCompiler_object_inline_componentStack_2337 = - JSCompiler_object_inline_digest_2335.nextSibling && - JSCompiler_object_inline_digest_2335.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2337) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2337.dgst; - var message = JSCompiler_object_inline_componentStack_2337.msg; - instance = JSCompiler_object_inline_componentStack_2337.stck; + JSCompiler_object_inline_componentStack_2330 = + JSCompiler_object_inline_digest_2328.nextSibling && + JSCompiler_object_inline_digest_2328.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2330) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2330.dgst; + var message = JSCompiler_object_inline_componentStack_2330.msg; + instance = JSCompiler_object_inline_componentStack_2330.stck; var componentStack = - JSCompiler_object_inline_componentStack_2337.cstck; + JSCompiler_object_inline_componentStack_2330.cstck; } - JSCompiler_object_inline_message_2334 = message; - JSCompiler_object_inline_digest_2335 = JSCompiler_temp; - JSCompiler_object_inline_stack_2336 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2337 = + JSCompiler_object_inline_message_2327 = message; + JSCompiler_object_inline_digest_2328 = JSCompiler_temp; + JSCompiler_object_inline_stack_2329 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2330 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2335 && - ((JSCompiler_object_inline_componentStack_2337 = - JSCompiler_object_inline_message_2334 - ? Error(JSCompiler_object_inline_message_2334) + "POSTPONE" !== JSCompiler_object_inline_digest_2328 && + ((JSCompiler_object_inline_componentStack_2330 = + JSCompiler_object_inline_message_2327 + ? Error(JSCompiler_object_inline_message_2327) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2337.stack = - JSCompiler_object_inline_stack_2336 || ""), - (JSCompiler_object_inline_componentStack_2337.digest = - JSCompiler_object_inline_digest_2335), - (JSCompiler_object_inline_stack_2336 = + (JSCompiler_object_inline_componentStack_2330.stack = + JSCompiler_object_inline_stack_2329 || ""), + (JSCompiler_object_inline_componentStack_2330.digest = + JSCompiler_object_inline_digest_2328), + (JSCompiler_object_inline_stack_2329 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2334 = { - value: JSCompiler_object_inline_componentStack_2337, + (JSCompiler_object_inline_message_2327 = { + value: JSCompiler_object_inline_componentStack_2330, source: null, - stack: JSCompiler_object_inline_stack_2336 + stack: JSCompiler_object_inline_stack_2329 }), - "string" === typeof JSCompiler_object_inline_stack_2336 && + "string" === typeof JSCompiler_object_inline_stack_2329 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2337, - JSCompiler_object_inline_message_2334 + JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_message_2327 ), - queueHydrationError(JSCompiler_object_inline_message_2334)); + queueHydrationError(JSCompiler_object_inline_message_2327)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9246,25 +9244,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2337 = + (JSCompiler_object_inline_componentStack_2330 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2337) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2330) ) { - JSCompiler_object_inline_componentStack_2337 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2337) { - JSCompiler_object_inline_stack_2336 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2336 & 42)) - JSCompiler_object_inline_stack_2336 = 1; + JSCompiler_object_inline_componentStack_2330 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2330) { + JSCompiler_object_inline_stack_2329 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2329 & 42)) + JSCompiler_object_inline_stack_2329 = 1; else - switch (JSCompiler_object_inline_stack_2336) { + switch (JSCompiler_object_inline_stack_2329) { case 2: - JSCompiler_object_inline_stack_2336 = 1; + JSCompiler_object_inline_stack_2329 = 1; break; case 8: - JSCompiler_object_inline_stack_2336 = 4; + JSCompiler_object_inline_stack_2329 = 4; break; case 32: - JSCompiler_object_inline_stack_2336 = 16; + JSCompiler_object_inline_stack_2329 = 16; break; case 128: case 256: @@ -9285,40 +9283,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2336 = 64; + JSCompiler_object_inline_stack_2329 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2336 = 134217728; + JSCompiler_object_inline_stack_2329 = 134217728; break; default: - JSCompiler_object_inline_stack_2336 = 0; + JSCompiler_object_inline_stack_2329 = 0; } - JSCompiler_object_inline_stack_2336 = + JSCompiler_object_inline_stack_2329 = 0 !== - (JSCompiler_object_inline_stack_2336 & - (JSCompiler_object_inline_componentStack_2337.suspendedLanes | + (JSCompiler_object_inline_stack_2329 & + (JSCompiler_object_inline_componentStack_2330.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2336; + : JSCompiler_object_inline_stack_2329; if ( - 0 !== JSCompiler_object_inline_stack_2336 && - JSCompiler_object_inline_stack_2336 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2329 && + JSCompiler_object_inline_stack_2329 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2336), + ((prevState.retryLane = JSCompiler_object_inline_stack_2329), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2336 + JSCompiler_object_inline_stack_2329 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2337, + JSCompiler_object_inline_componentStack_2330, current, - JSCompiler_object_inline_stack_2336 + JSCompiler_object_inline_stack_2329 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2335.data === + JSCompiler_object_inline_digest_2328.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9326,20 +9324,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2335.data === + JSCompiler_object_inline_digest_2328.data === SUSPENSE_PENDING_START_DATA - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (JSCompiler_object_inline_digest_2335._reactRetry = - workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2335.nextSibling + JSCompiler_object_inline_digest_2328.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9357,54 +9349,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2336.children + JSCompiler_object_inline_stack_2329.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2334) + if (JSCompiler_object_inline_message_2327) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2334 = - JSCompiler_object_inline_stack_2336.fallback), - (JSCompiler_object_inline_digest_2335 = workInProgress.mode), + (JSCompiler_object_inline_message_2327 = + JSCompiler_object_inline_stack_2329.fallback), + (JSCompiler_object_inline_digest_2328 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2336 = createWorkInProgress( + (JSCompiler_object_inline_stack_2329 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2336.children + children: JSCompiler_object_inline_stack_2329.children } )), - (JSCompiler_object_inline_stack_2336.subtreeFlags = + (JSCompiler_object_inline_stack_2329.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2334 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2327 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2334 + JSCompiler_object_inline_message_2327 )) - : ((JSCompiler_object_inline_message_2334 = createFiberFromFragment( - JSCompiler_object_inline_message_2334, - JSCompiler_object_inline_digest_2335, + : ((JSCompiler_object_inline_message_2327 = createFiberFromFragment( + JSCompiler_object_inline_message_2327, + JSCompiler_object_inline_digest_2328, renderLanes, null )), - (JSCompiler_object_inline_message_2334.flags |= 2)), - (JSCompiler_object_inline_message_2334.return = workInProgress), - (JSCompiler_object_inline_stack_2336.return = workInProgress), - (JSCompiler_object_inline_stack_2336.sibling = - JSCompiler_object_inline_message_2334), - (workInProgress.child = JSCompiler_object_inline_stack_2336), - (JSCompiler_object_inline_stack_2336 = - JSCompiler_object_inline_message_2334), - (JSCompiler_object_inline_message_2334 = workInProgress.child), - (JSCompiler_object_inline_digest_2335 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2335 - ? (JSCompiler_object_inline_digest_2335 = + (JSCompiler_object_inline_message_2327.flags |= 2)), + (JSCompiler_object_inline_message_2327.return = workInProgress), + (JSCompiler_object_inline_stack_2329.return = workInProgress), + (JSCompiler_object_inline_stack_2329.sibling = + JSCompiler_object_inline_message_2327), + (workInProgress.child = JSCompiler_object_inline_stack_2329), + (JSCompiler_object_inline_stack_2329 = + JSCompiler_object_inline_message_2327), + (JSCompiler_object_inline_message_2327 = workInProgress.child), + (JSCompiler_object_inline_digest_2328 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2328 + ? (JSCompiler_object_inline_digest_2328 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2335.cachePool), + JSCompiler_object_inline_digest_2328.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9412,38 +9404,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2335 = { + (JSCompiler_object_inline_digest_2328 = { baseLanes: - JSCompiler_object_inline_digest_2335.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2328.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2334.memoizedState = - JSCompiler_object_inline_digest_2335), - (JSCompiler_object_inline_message_2334.childLanes = + (JSCompiler_object_inline_message_2327.memoizedState = + JSCompiler_object_inline_digest_2328), + (JSCompiler_object_inline_message_2327.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2337, + JSCompiler_object_inline_componentStack_2330, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2336 + JSCompiler_object_inline_stack_2329 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2336.children + children: JSCompiler_object_inline_stack_2329.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2337 = + ((JSCompiler_object_inline_componentStack_2330 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2337 + null === JSCompiler_object_inline_componentStack_2330 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2337.push(current)); + : JSCompiler_object_inline_componentStack_2330.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11856,6 +11848,16 @@ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((flags = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, flags)))); break; case 22: prevProps = @@ -19868,6 +19870,29 @@ } return instance; } + function isSuspenseInstanceFallback(instance) { + return ( + instance.data === SUSPENSE_FALLBACK_START_DATA || + (instance.data === SUSPENSE_PENDING_START_DATA && + instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) + ); + } + function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ( + instance.data !== SUSPENSE_PENDING_START_DATA || + ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE + ) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } + } function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -24816,6 +24841,7 @@ SUSPENSE_FALLBACK_START_DATA = "$!", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", + DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, @@ -25265,11 +25291,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25306,11 +25332,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25452,7 +25478,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js index 8aa8c888a2720..c6fac41253dbd 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-client.production.js @@ -5129,7 +5129,9 @@ function findFirstSuspended(row) { if ( null !== state && ((state = state.dehydrated), - null === state || "$?" === state.data || "$!" === state.data) + null === state || + "$?" === state.data || + isSuspenseInstanceFallback(state)) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { @@ -6174,7 +6176,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( - "$!" === nextInstance.data + isSuspenseInstanceFallback(nextInstance) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null @@ -6281,7 +6283,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), - "$!" === nextInstance.data) + isSuspenseInstanceFallback(nextInstance)) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; @@ -6365,13 +6367,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ); } else "$?" === nextInstance.data - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( @@ -8121,6 +8118,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((flags = finishedWork.memoizedState), + null !== flags && + ((flags = flags.dehydrated), + null !== flags && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(flags, finishedWork)))); break; case 22: prevProps = @@ -11782,20 +11789,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1433 = 0; - i$jscomp$inline_1433 < simpleEventPluginEvents.length; - i$jscomp$inline_1433++ + var i$jscomp$inline_1429 = 0; + i$jscomp$inline_1429 < simpleEventPluginEvents.length; + i$jscomp$inline_1429++ ) { - var eventName$jscomp$inline_1434 = - simpleEventPluginEvents[i$jscomp$inline_1433], - domEventName$jscomp$inline_1435 = - eventName$jscomp$inline_1434.toLowerCase(), - capitalizedEvent$jscomp$inline_1436 = - eventName$jscomp$inline_1434[0].toUpperCase() + - eventName$jscomp$inline_1434.slice(1); + var eventName$jscomp$inline_1430 = + simpleEventPluginEvents[i$jscomp$inline_1429], + domEventName$jscomp$inline_1431 = + eventName$jscomp$inline_1430.toLowerCase(), + capitalizedEvent$jscomp$inline_1432 = + eventName$jscomp$inline_1430[0].toUpperCase() + + eventName$jscomp$inline_1430.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1435, - "on" + capitalizedEvent$jscomp$inline_1436 + domEventName$jscomp$inline_1431, + "on" + capitalizedEvent$jscomp$inline_1432 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13684,6 +13691,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) { } return instance; } +function isSuspenseInstanceFallback(instance) { + return ( + "$!" === instance.data || + ("$?" === instance.data && "complete" === instance.ownerDocument.readyState) + ); +} +function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ("$?" !== instance.data || "complete" === ownerDocument.readyState) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } +} function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -15236,16 +15262,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1680 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1676 = React.version; if ( - "19.0.0-experimental-1b1283ad-20241203" !== - isomorphicReactPackageVersion$jscomp$inline_1680 + "19.0.0-experimental-de68d2f4-20241204" !== + isomorphicReactPackageVersion$jscomp$inline_1676 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1680, - "19.0.0-experimental-1b1283ad-20241203" + isomorphicReactPackageVersion$jscomp$inline_1676, + "19.0.0-experimental-de68d2f4-20241204" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15265,25 +15291,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2153 = { +var internals$jscomp$inline_2146 = { bundleType: 0, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2154 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2147 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2154.isDisabled && - hook$jscomp$inline_2154.supportsFiber + !hook$jscomp$inline_2147.isDisabled && + hook$jscomp$inline_2147.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2154.inject( - internals$jscomp$inline_2153 + (rendererID = hook$jscomp$inline_2147.inject( + internals$jscomp$inline_2146 )), - (injectedHook = hook$jscomp$inline_2154); + (injectedHook = hook$jscomp$inline_2147); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15375,4 +15401,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js index c077954781fb2..32be6d29daccf 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.development.js @@ -7541,7 +7541,7 @@ ((state = state.dehydrated), null === state || state.data === SUSPENSE_PENDING_START_DATA || - state.data === SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(state)) ) return node; } else if ( @@ -8987,33 +8987,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2342; - var JSCompiler_object_inline_stack_2341 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2335; + var JSCompiler_object_inline_stack_2334 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2339 = !1; + var JSCompiler_object_inline_message_2332 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2342 = didSuspend) || - (JSCompiler_object_inline_componentStack_2342 = + (JSCompiler_object_inline_componentStack_2335 = didSuspend) || + (JSCompiler_object_inline_componentStack_2335 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2342 && - ((JSCompiler_object_inline_message_2339 = !0), + JSCompiler_object_inline_componentStack_2335 && + ((JSCompiler_object_inline_message_2332 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2342 = + JSCompiler_object_inline_componentStack_2335 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2339 + JSCompiler_object_inline_message_2332 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2340 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2333 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2340)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2333)) { c: { - var instance = JSCompiler_object_inline_digest_2340; + var instance = JSCompiler_object_inline_digest_2333; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9054,88 +9054,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2340 + JSCompiler_object_inline_digest_2333 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2340 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2333 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2340 && - ((JSCompiler_object_inline_digest_2340 = - JSCompiler_object_inline_digest_2340.dehydrated), - null !== JSCompiler_object_inline_digest_2340) + null !== JSCompiler_object_inline_digest_2333 && + ((JSCompiler_object_inline_digest_2333 = + JSCompiler_object_inline_digest_2333.dehydrated), + null !== JSCompiler_object_inline_digest_2333) ) return ( - JSCompiler_object_inline_digest_2340.data === - SUSPENSE_FALLBACK_START_DATA + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2333) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2340 = - JSCompiler_object_inline_stack_2341.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2341.fallback; - if (JSCompiler_object_inline_message_2339) + JSCompiler_object_inline_digest_2333 = + JSCompiler_object_inline_stack_2334.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2334.fallback; + if (JSCompiler_object_inline_message_2332) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2341 = + (JSCompiler_object_inline_stack_2334 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2340, + JSCompiler_object_inline_digest_2333, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2339 = workInProgress.child), - (JSCompiler_object_inline_message_2339.memoizedState = + (JSCompiler_object_inline_message_2332 = workInProgress.child), + (JSCompiler_object_inline_message_2332.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2339.childLanes = + (JSCompiler_object_inline_message_2332.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2342, + JSCompiler_object_inline_componentStack_2335, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2341 + JSCompiler_object_inline_stack_2334 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2341.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2334.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2341 = + (JSCompiler_object_inline_stack_2334 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2340, + JSCompiler_object_inline_digest_2333, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2339 = workInProgress.child), - (JSCompiler_object_inline_message_2339.memoizedState = + (JSCompiler_object_inline_message_2332 = workInProgress.child), + (JSCompiler_object_inline_message_2332.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2339.childLanes = + (JSCompiler_object_inline_message_2332.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2342, + JSCompiler_object_inline_componentStack_2335, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2341 + JSCompiler_object_inline_stack_2334 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2340 + JSCompiler_object_inline_digest_2333 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2340 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2340) + ((JSCompiler_object_inline_digest_2333 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2333) ) { if (didSuspend) workInProgress.flags & 256 @@ -9152,95 +9151,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2339 = - JSCompiler_object_inline_stack_2341.fallback), - (JSCompiler_object_inline_digest_2340 = workInProgress.mode), - (JSCompiler_object_inline_stack_2341 = + (JSCompiler_object_inline_message_2332 = + JSCompiler_object_inline_stack_2334.fallback), + (JSCompiler_object_inline_digest_2333 = workInProgress.mode), + (JSCompiler_object_inline_stack_2334 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2341.children + children: JSCompiler_object_inline_stack_2334.children }, - JSCompiler_object_inline_digest_2340 + JSCompiler_object_inline_digest_2333 )), - (JSCompiler_object_inline_message_2339 = + (JSCompiler_object_inline_message_2332 = createFiberFromFragment( - JSCompiler_object_inline_message_2339, - JSCompiler_object_inline_digest_2340, + JSCompiler_object_inline_message_2332, + JSCompiler_object_inline_digest_2333, renderLanes, null )), - (JSCompiler_object_inline_message_2339.flags |= 2), - (JSCompiler_object_inline_stack_2341.return = workInProgress), - (JSCompiler_object_inline_message_2339.return = workInProgress), - (JSCompiler_object_inline_stack_2341.sibling = - JSCompiler_object_inline_message_2339), - (workInProgress.child = JSCompiler_object_inline_stack_2341), + (JSCompiler_object_inline_message_2332.flags |= 2), + (JSCompiler_object_inline_stack_2334.return = workInProgress), + (JSCompiler_object_inline_message_2332.return = workInProgress), + (JSCompiler_object_inline_stack_2334.sibling = + JSCompiler_object_inline_message_2332), + (workInProgress.child = JSCompiler_object_inline_stack_2334), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2341 = workInProgress.child), - (JSCompiler_object_inline_stack_2341.memoizedState = + (JSCompiler_object_inline_stack_2334 = workInProgress.child), + (JSCompiler_object_inline_stack_2334.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2341.childLanes = + (JSCompiler_object_inline_stack_2334.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2342, + JSCompiler_object_inline_componentStack_2335, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2339)); + (workInProgress = JSCompiler_object_inline_message_2332)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2340.data === - SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2333)) ) { - JSCompiler_object_inline_componentStack_2342 = - JSCompiler_object_inline_digest_2340.nextSibling && - JSCompiler_object_inline_digest_2340.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2342) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2342.dgst; - var message = JSCompiler_object_inline_componentStack_2342.msg; - instance = JSCompiler_object_inline_componentStack_2342.stck; + JSCompiler_object_inline_componentStack_2335 = + JSCompiler_object_inline_digest_2333.nextSibling && + JSCompiler_object_inline_digest_2333.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2335) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2335.dgst; + var message = JSCompiler_object_inline_componentStack_2335.msg; + instance = JSCompiler_object_inline_componentStack_2335.stck; var componentStack = - JSCompiler_object_inline_componentStack_2342.cstck; + JSCompiler_object_inline_componentStack_2335.cstck; } - JSCompiler_object_inline_message_2339 = message; - JSCompiler_object_inline_digest_2340 = JSCompiler_temp; - JSCompiler_object_inline_stack_2341 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2342 = + JSCompiler_object_inline_message_2332 = message; + JSCompiler_object_inline_digest_2333 = JSCompiler_temp; + JSCompiler_object_inline_stack_2334 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2335 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2340 && - ((JSCompiler_object_inline_componentStack_2342 = - JSCompiler_object_inline_message_2339 - ? Error(JSCompiler_object_inline_message_2339) + "POSTPONE" !== JSCompiler_object_inline_digest_2333 && + ((JSCompiler_object_inline_componentStack_2335 = + JSCompiler_object_inline_message_2332 + ? Error(JSCompiler_object_inline_message_2332) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2342.stack = - JSCompiler_object_inline_stack_2341 || ""), - (JSCompiler_object_inline_componentStack_2342.digest = - JSCompiler_object_inline_digest_2340), - (JSCompiler_object_inline_stack_2341 = + (JSCompiler_object_inline_componentStack_2335.stack = + JSCompiler_object_inline_stack_2334 || ""), + (JSCompiler_object_inline_componentStack_2335.digest = + JSCompiler_object_inline_digest_2333), + (JSCompiler_object_inline_stack_2334 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2339 = { - value: JSCompiler_object_inline_componentStack_2342, + (JSCompiler_object_inline_message_2332 = { + value: JSCompiler_object_inline_componentStack_2335, source: null, - stack: JSCompiler_object_inline_stack_2341 + stack: JSCompiler_object_inline_stack_2334 }), - "string" === typeof JSCompiler_object_inline_stack_2341 && + "string" === typeof JSCompiler_object_inline_stack_2334 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2342, - JSCompiler_object_inline_message_2339 + JSCompiler_object_inline_componentStack_2335, + JSCompiler_object_inline_message_2332 ), - queueHydrationError(JSCompiler_object_inline_message_2339)); + queueHydrationError(JSCompiler_object_inline_message_2332)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9254,25 +9252,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2342 = + (JSCompiler_object_inline_componentStack_2335 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2342) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2335) ) { - JSCompiler_object_inline_componentStack_2342 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2342) { - JSCompiler_object_inline_stack_2341 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2341 & 42)) - JSCompiler_object_inline_stack_2341 = 1; + JSCompiler_object_inline_componentStack_2335 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2335) { + JSCompiler_object_inline_stack_2334 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2334 & 42)) + JSCompiler_object_inline_stack_2334 = 1; else - switch (JSCompiler_object_inline_stack_2341) { + switch (JSCompiler_object_inline_stack_2334) { case 2: - JSCompiler_object_inline_stack_2341 = 1; + JSCompiler_object_inline_stack_2334 = 1; break; case 8: - JSCompiler_object_inline_stack_2341 = 4; + JSCompiler_object_inline_stack_2334 = 4; break; case 32: - JSCompiler_object_inline_stack_2341 = 16; + JSCompiler_object_inline_stack_2334 = 16; break; case 128: case 256: @@ -9293,40 +9291,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2341 = 64; + JSCompiler_object_inline_stack_2334 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2341 = 134217728; + JSCompiler_object_inline_stack_2334 = 134217728; break; default: - JSCompiler_object_inline_stack_2341 = 0; + JSCompiler_object_inline_stack_2334 = 0; } - JSCompiler_object_inline_stack_2341 = + JSCompiler_object_inline_stack_2334 = 0 !== - (JSCompiler_object_inline_stack_2341 & - (JSCompiler_object_inline_componentStack_2342.suspendedLanes | + (JSCompiler_object_inline_stack_2334 & + (JSCompiler_object_inline_componentStack_2335.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2341; + : JSCompiler_object_inline_stack_2334; if ( - 0 !== JSCompiler_object_inline_stack_2341 && - JSCompiler_object_inline_stack_2341 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2334 && + JSCompiler_object_inline_stack_2334 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2341), + ((prevState.retryLane = JSCompiler_object_inline_stack_2334), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2341 + JSCompiler_object_inline_stack_2334 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2342, + JSCompiler_object_inline_componentStack_2335, current, - JSCompiler_object_inline_stack_2341 + JSCompiler_object_inline_stack_2334 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2340.data === + JSCompiler_object_inline_digest_2333.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9334,20 +9332,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2340.data === + JSCompiler_object_inline_digest_2333.data === SUSPENSE_PENDING_START_DATA - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (JSCompiler_object_inline_digest_2340._reactRetry = - workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2340.nextSibling + JSCompiler_object_inline_digest_2333.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9365,54 +9357,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2341.children + JSCompiler_object_inline_stack_2334.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2339) + if (JSCompiler_object_inline_message_2332) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2339 = - JSCompiler_object_inline_stack_2341.fallback), - (JSCompiler_object_inline_digest_2340 = workInProgress.mode), + (JSCompiler_object_inline_message_2332 = + JSCompiler_object_inline_stack_2334.fallback), + (JSCompiler_object_inline_digest_2333 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2341 = createWorkInProgress( + (JSCompiler_object_inline_stack_2334 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2341.children + children: JSCompiler_object_inline_stack_2334.children } )), - (JSCompiler_object_inline_stack_2341.subtreeFlags = + (JSCompiler_object_inline_stack_2334.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2339 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2332 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2339 + JSCompiler_object_inline_message_2332 )) - : ((JSCompiler_object_inline_message_2339 = createFiberFromFragment( - JSCompiler_object_inline_message_2339, - JSCompiler_object_inline_digest_2340, + : ((JSCompiler_object_inline_message_2332 = createFiberFromFragment( + JSCompiler_object_inline_message_2332, + JSCompiler_object_inline_digest_2333, renderLanes, null )), - (JSCompiler_object_inline_message_2339.flags |= 2)), - (JSCompiler_object_inline_message_2339.return = workInProgress), - (JSCompiler_object_inline_stack_2341.return = workInProgress), - (JSCompiler_object_inline_stack_2341.sibling = - JSCompiler_object_inline_message_2339), - (workInProgress.child = JSCompiler_object_inline_stack_2341), - (JSCompiler_object_inline_stack_2341 = - JSCompiler_object_inline_message_2339), - (JSCompiler_object_inline_message_2339 = workInProgress.child), - (JSCompiler_object_inline_digest_2340 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2340 - ? (JSCompiler_object_inline_digest_2340 = + (JSCompiler_object_inline_message_2332.flags |= 2)), + (JSCompiler_object_inline_message_2332.return = workInProgress), + (JSCompiler_object_inline_stack_2334.return = workInProgress), + (JSCompiler_object_inline_stack_2334.sibling = + JSCompiler_object_inline_message_2332), + (workInProgress.child = JSCompiler_object_inline_stack_2334), + (JSCompiler_object_inline_stack_2334 = + JSCompiler_object_inline_message_2332), + (JSCompiler_object_inline_message_2332 = workInProgress.child), + (JSCompiler_object_inline_digest_2333 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2333 + ? (JSCompiler_object_inline_digest_2333 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2340.cachePool), + JSCompiler_object_inline_digest_2333.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9420,38 +9412,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2340 = { + (JSCompiler_object_inline_digest_2333 = { baseLanes: - JSCompiler_object_inline_digest_2340.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2333.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2339.memoizedState = - JSCompiler_object_inline_digest_2340), - (JSCompiler_object_inline_message_2339.childLanes = + (JSCompiler_object_inline_message_2332.memoizedState = + JSCompiler_object_inline_digest_2333), + (JSCompiler_object_inline_message_2332.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2342, + JSCompiler_object_inline_componentStack_2335, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2341 + JSCompiler_object_inline_stack_2334 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2341.children + children: JSCompiler_object_inline_stack_2334.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2342 = + ((JSCompiler_object_inline_componentStack_2335 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2342 + null === JSCompiler_object_inline_componentStack_2335 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2342.push(current)); + : JSCompiler_object_inline_componentStack_2335.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11864,6 +11856,16 @@ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((flags = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, flags)))); break; case 22: prevProps = @@ -19880,6 +19882,29 @@ } return instance; } + function isSuspenseInstanceFallback(instance) { + return ( + instance.data === SUSPENSE_FALLBACK_START_DATA || + (instance.data === SUSPENSE_PENDING_START_DATA && + instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) + ); + } + function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ( + instance.data !== SUSPENSE_PENDING_START_DATA || + ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE + ) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } + } function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -24873,6 +24898,7 @@ SUSPENSE_FALLBACK_START_DATA = "$!", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", + DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, @@ -25322,11 +25348,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25363,11 +25389,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25839,7 +25865,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js index c3446e4fb867e..6816554d0db82 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-profiling.profiling.js @@ -5513,7 +5513,9 @@ function findFirstSuspended(row) { if ( null !== state && ((state = state.dehydrated), - null === state || "$?" === state.data || "$!" === state.data) + null === state || + "$?" === state.data || + isSuspenseInstanceFallback(state)) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { @@ -6561,7 +6563,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( - "$!" === nextInstance.data + isSuspenseInstanceFallback(nextInstance) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null @@ -6668,7 +6670,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), - "$!" === nextInstance.data) + isSuspenseInstanceFallback(nextInstance)) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; @@ -6752,13 +6754,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ); } else "$?" === nextInstance.data - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( @@ -8683,6 +8680,13 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((flags = retryDehydratedSuspenseBoundary.bind(null, finishedWork)), + registerSuspenseInstanceRetry(finishedRoot, flags)))); break; case 22: prevProps = @@ -12877,20 +12881,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1540 = 0; - i$jscomp$inline_1540 < simpleEventPluginEvents.length; - i$jscomp$inline_1540++ + var i$jscomp$inline_1536 = 0; + i$jscomp$inline_1536 < simpleEventPluginEvents.length; + i$jscomp$inline_1536++ ) { - var eventName$jscomp$inline_1541 = - simpleEventPluginEvents[i$jscomp$inline_1540], - domEventName$jscomp$inline_1542 = - eventName$jscomp$inline_1541.toLowerCase(), - capitalizedEvent$jscomp$inline_1543 = - eventName$jscomp$inline_1541[0].toUpperCase() + - eventName$jscomp$inline_1541.slice(1); + var eventName$jscomp$inline_1537 = + simpleEventPluginEvents[i$jscomp$inline_1536], + domEventName$jscomp$inline_1538 = + eventName$jscomp$inline_1537.toLowerCase(), + capitalizedEvent$jscomp$inline_1539 = + eventName$jscomp$inline_1537[0].toUpperCase() + + eventName$jscomp$inline_1537.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1542, - "on" + capitalizedEvent$jscomp$inline_1543 + domEventName$jscomp$inline_1538, + "on" + capitalizedEvent$jscomp$inline_1539 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14788,6 +14792,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) { } return instance; } +function isSuspenseInstanceFallback(instance) { + return ( + "$!" === instance.data || + ("$?" === instance.data && "complete" === instance.ownerDocument.readyState) + ); +} +function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ("$?" !== instance.data || "complete" === ownerDocument.readyState) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } +} function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -16357,16 +16380,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1787 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1783 = React.version; if ( - "19.0.0-experimental-1b1283ad-20241203" !== - isomorphicReactPackageVersion$jscomp$inline_1787 + "19.0.0-experimental-de68d2f4-20241204" !== + isomorphicReactPackageVersion$jscomp$inline_1783 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1787, - "19.0.0-experimental-1b1283ad-20241203" + isomorphicReactPackageVersion$jscomp$inline_1783, + "19.0.0-experimental-de68d2f4-20241204" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -16386,25 +16409,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2232 = { +var internals$jscomp$inline_2225 = { bundleType: 0, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2233 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2226 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2233.isDisabled && - hook$jscomp$inline_2233.supportsFiber + !hook$jscomp$inline_2226.isDisabled && + hook$jscomp$inline_2226.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2233.inject( - internals$jscomp$inline_2232 + (rendererID = hook$jscomp$inline_2226.inject( + internals$jscomp$inline_2225 )), - (injectedHook = hook$jscomp$inline_2233); + (injectedHook = hook$jscomp$inline_2226); } catch (err) {} } function noop() {} @@ -16657,7 +16680,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js index ef7330eaaf186..752f240e81b69 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.development.js @@ -9295,5 +9295,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js index 1efcadb40e92f..6a893422449b7 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.browser.production.js @@ -6060,4 +6060,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js index 9a703167e2bdf..df0b423adafc8 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.development.js @@ -9295,5 +9295,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js index eb751b4d49d0d..3ab973ea8d008 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server-legacy.node.production.js @@ -6152,4 +6152,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js index aa19af87a5d67..be4f4bb6421d8 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.development.js @@ -8193,11 +8193,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -9977,5 +9977,5 @@ startWork(request); }); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js index 63e291793adc6..432cb7dea1be3 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.browser.production.js @@ -6589,12 +6589,12 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-experimental-1b1283ad-20241203" + "19.0.0-experimental-de68d2f4-20241204" ) ); } @@ -6849,4 +6849,4 @@ exports.resumeAndPrerender = function (children, postponedState, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js index d3835d446ce7e..3fc20326fe7c0 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.bun.production.js @@ -6071,13 +6071,13 @@ function addToReplayParent(node, parentKeyPath, trackedPostpones) { } var isomorphicReactPackageVersion$jscomp$inline_779 = React.version; if ( - "19.0.0-experimental-1b1283ad-20241203" !== + "19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion$jscomp$inline_779 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_779 + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -6168,4 +6168,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js index ccb1752ed802d..ba6c563735038 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.development.js @@ -8216,11 +8216,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react-experimental"), @@ -10007,5 +10007,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js index 3390a12f8e428..2723708438ac5 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.edge.production.js @@ -6696,11 +6696,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6965,4 +6965,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js index 03f0073afd80d..004e7f13f472f 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.development.js @@ -8080,11 +8080,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -9857,5 +9857,5 @@ } }; }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js index d95adde65ba72..fa643a233cee2 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-server.node.production.js @@ -6575,11 +6575,11 @@ function getPostponedState(request) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6830,4 +6830,4 @@ exports.resumeToPipeableStream = function (children, postponedState, options) { } }; }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js index cafdda141ef71..3ef176b44e5e6 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.development.js @@ -7574,7 +7574,7 @@ ((state = state.dehydrated), null === state || state.data === SUSPENSE_PENDING_START_DATA || - state.data === SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(state)) ) return node; } else if ( @@ -9020,33 +9020,33 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_componentStack_2371; - var JSCompiler_object_inline_stack_2370 = workInProgress.pendingProps; + var JSCompiler_object_inline_componentStack_2364; + var JSCompiler_object_inline_stack_2363 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_message_2368 = !1; + var JSCompiler_object_inline_message_2361 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_componentStack_2371 = didSuspend) || - (JSCompiler_object_inline_componentStack_2371 = + (JSCompiler_object_inline_componentStack_2364 = didSuspend) || + (JSCompiler_object_inline_componentStack_2364 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_componentStack_2371 && - ((JSCompiler_object_inline_message_2368 = !0), + JSCompiler_object_inline_componentStack_2364 && + ((JSCompiler_object_inline_message_2361 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_componentStack_2371 = + JSCompiler_object_inline_componentStack_2364 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_message_2368 + JSCompiler_object_inline_message_2361 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_digest_2369 = nextHydratableInstance; + var JSCompiler_object_inline_digest_2362 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2369)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_digest_2362)) { c: { - var instance = JSCompiler_object_inline_digest_2369; + var instance = JSCompiler_object_inline_digest_2362; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -9087,88 +9087,87 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_digest_2369 + JSCompiler_object_inline_digest_2362 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_digest_2369 = workInProgress.memoizedState; + JSCompiler_object_inline_digest_2362 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_digest_2369 && - ((JSCompiler_object_inline_digest_2369 = - JSCompiler_object_inline_digest_2369.dehydrated), - null !== JSCompiler_object_inline_digest_2369) + null !== JSCompiler_object_inline_digest_2362 && + ((JSCompiler_object_inline_digest_2362 = + JSCompiler_object_inline_digest_2362.dehydrated), + null !== JSCompiler_object_inline_digest_2362) ) return ( - JSCompiler_object_inline_digest_2369.data === - SUSPENSE_FALLBACK_START_DATA + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2362) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_digest_2369 = - JSCompiler_object_inline_stack_2370.children; - JSCompiler_temp = JSCompiler_object_inline_stack_2370.fallback; - if (JSCompiler_object_inline_message_2368) + JSCompiler_object_inline_digest_2362 = + JSCompiler_object_inline_stack_2363.children; + JSCompiler_temp = JSCompiler_object_inline_stack_2363.fallback; + if (JSCompiler_object_inline_message_2361) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_stack_2363 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2362, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2368 = workInProgress.child), - (JSCompiler_object_inline_message_2368.memoizedState = + (JSCompiler_object_inline_message_2361 = workInProgress.child), + (JSCompiler_object_inline_message_2361.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2368.childLanes = + (JSCompiler_object_inline_message_2361.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_componentStack_2364, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2363 ); if ( "number" === - typeof JSCompiler_object_inline_stack_2370.unstable_expectedLoadTime + typeof JSCompiler_object_inline_stack_2363.unstable_expectedLoadTime ) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_stack_2363 = mountSuspenseFallbackChildren( workInProgress, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_digest_2362, JSCompiler_temp, renderLanes )), - (JSCompiler_object_inline_message_2368 = workInProgress.child), - (JSCompiler_object_inline_message_2368.memoizedState = + (JSCompiler_object_inline_message_2361 = workInProgress.child), + (JSCompiler_object_inline_message_2361.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_message_2368.childLanes = + (JSCompiler_object_inline_message_2361.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_componentStack_2364, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress.lanes = 4194304), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2363 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_digest_2369 + JSCompiler_object_inline_digest_2362 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_digest_2369 = prevState.dehydrated), - null !== JSCompiler_object_inline_digest_2369) + ((JSCompiler_object_inline_digest_2362 = prevState.dehydrated), + null !== JSCompiler_object_inline_digest_2362) ) { if (didSuspend) workInProgress.flags & 256 @@ -9185,95 +9184,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2368 = - JSCompiler_object_inline_stack_2370.fallback), - (JSCompiler_object_inline_digest_2369 = workInProgress.mode), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_message_2361 = + JSCompiler_object_inline_stack_2363.fallback), + (JSCompiler_object_inline_digest_2362 = workInProgress.mode), + (JSCompiler_object_inline_stack_2363 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2363.children }, - JSCompiler_object_inline_digest_2369 + JSCompiler_object_inline_digest_2362 )), - (JSCompiler_object_inline_message_2368 = + (JSCompiler_object_inline_message_2361 = createFiberFromFragment( - JSCompiler_object_inline_message_2368, - JSCompiler_object_inline_digest_2369, + JSCompiler_object_inline_message_2361, + JSCompiler_object_inline_digest_2362, renderLanes, null )), - (JSCompiler_object_inline_message_2368.flags |= 2), - (JSCompiler_object_inline_stack_2370.return = workInProgress), - (JSCompiler_object_inline_message_2368.return = workInProgress), - (JSCompiler_object_inline_stack_2370.sibling = - JSCompiler_object_inline_message_2368), - (workInProgress.child = JSCompiler_object_inline_stack_2370), + (JSCompiler_object_inline_message_2361.flags |= 2), + (JSCompiler_object_inline_stack_2363.return = workInProgress), + (JSCompiler_object_inline_message_2361.return = workInProgress), + (JSCompiler_object_inline_stack_2363.sibling = + JSCompiler_object_inline_message_2361), + (workInProgress.child = JSCompiler_object_inline_stack_2363), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2370 = workInProgress.child), - (JSCompiler_object_inline_stack_2370.memoizedState = + (JSCompiler_object_inline_stack_2363 = workInProgress.child), + (JSCompiler_object_inline_stack_2363.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2370.childLanes = + (JSCompiler_object_inline_stack_2363.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_componentStack_2364, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - (workInProgress = JSCompiler_object_inline_message_2368)); + (workInProgress = JSCompiler_object_inline_message_2361)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_digest_2369.data === - SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(JSCompiler_object_inline_digest_2362)) ) { - JSCompiler_object_inline_componentStack_2371 = - JSCompiler_object_inline_digest_2369.nextSibling && - JSCompiler_object_inline_digest_2369.nextSibling.dataset; - if (JSCompiler_object_inline_componentStack_2371) { - JSCompiler_temp = JSCompiler_object_inline_componentStack_2371.dgst; - var message = JSCompiler_object_inline_componentStack_2371.msg; - instance = JSCompiler_object_inline_componentStack_2371.stck; + JSCompiler_object_inline_componentStack_2364 = + JSCompiler_object_inline_digest_2362.nextSibling && + JSCompiler_object_inline_digest_2362.nextSibling.dataset; + if (JSCompiler_object_inline_componentStack_2364) { + JSCompiler_temp = JSCompiler_object_inline_componentStack_2364.dgst; + var message = JSCompiler_object_inline_componentStack_2364.msg; + instance = JSCompiler_object_inline_componentStack_2364.stck; var componentStack = - JSCompiler_object_inline_componentStack_2371.cstck; + JSCompiler_object_inline_componentStack_2364.cstck; } - JSCompiler_object_inline_message_2368 = message; - JSCompiler_object_inline_digest_2369 = JSCompiler_temp; - JSCompiler_object_inline_stack_2370 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2371 = + JSCompiler_object_inline_message_2361 = message; + JSCompiler_object_inline_digest_2362 = JSCompiler_temp; + JSCompiler_object_inline_stack_2363 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2364 = componentStack; - "POSTPONE" !== JSCompiler_object_inline_digest_2369 && - ((JSCompiler_object_inline_componentStack_2371 = - JSCompiler_object_inline_message_2368 - ? Error(JSCompiler_object_inline_message_2368) + "POSTPONE" !== JSCompiler_object_inline_digest_2362 && + ((JSCompiler_object_inline_componentStack_2364 = + JSCompiler_object_inline_message_2361 + ? Error(JSCompiler_object_inline_message_2361) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." )), - (JSCompiler_object_inline_componentStack_2371.stack = - JSCompiler_object_inline_stack_2370 || ""), - (JSCompiler_object_inline_componentStack_2371.digest = - JSCompiler_object_inline_digest_2369), - (JSCompiler_object_inline_stack_2370 = + (JSCompiler_object_inline_componentStack_2364.stack = + JSCompiler_object_inline_stack_2363 || ""), + (JSCompiler_object_inline_componentStack_2364.digest = + JSCompiler_object_inline_digest_2362), + (JSCompiler_object_inline_stack_2363 = void 0 === JSCompiler_temp ? null : JSCompiler_temp), - (JSCompiler_object_inline_message_2368 = { - value: JSCompiler_object_inline_componentStack_2371, + (JSCompiler_object_inline_message_2361 = { + value: JSCompiler_object_inline_componentStack_2364, source: null, - stack: JSCompiler_object_inline_stack_2370 + stack: JSCompiler_object_inline_stack_2363 }), - "string" === typeof JSCompiler_object_inline_stack_2370 && + "string" === typeof JSCompiler_object_inline_stack_2363 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2371, - JSCompiler_object_inline_message_2368 + JSCompiler_object_inline_componentStack_2364, + JSCompiler_object_inline_message_2361 ), - queueHydrationError(JSCompiler_object_inline_message_2368)); + queueHydrationError(JSCompiler_object_inline_message_2361)); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -9287,25 +9285,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_componentStack_2371 = + (JSCompiler_object_inline_componentStack_2364 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_componentStack_2371) + didReceiveUpdate || JSCompiler_object_inline_componentStack_2364) ) { - JSCompiler_object_inline_componentStack_2371 = workInProgressRoot; - if (null !== JSCompiler_object_inline_componentStack_2371) { - JSCompiler_object_inline_stack_2370 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2370 & 42)) - JSCompiler_object_inline_stack_2370 = 1; + JSCompiler_object_inline_componentStack_2364 = workInProgressRoot; + if (null !== JSCompiler_object_inline_componentStack_2364) { + JSCompiler_object_inline_stack_2363 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2363 & 42)) + JSCompiler_object_inline_stack_2363 = 1; else - switch (JSCompiler_object_inline_stack_2370) { + switch (JSCompiler_object_inline_stack_2363) { case 2: - JSCompiler_object_inline_stack_2370 = 1; + JSCompiler_object_inline_stack_2363 = 1; break; case 8: - JSCompiler_object_inline_stack_2370 = 4; + JSCompiler_object_inline_stack_2363 = 4; break; case 32: - JSCompiler_object_inline_stack_2370 = 16; + JSCompiler_object_inline_stack_2363 = 16; break; case 128: case 256: @@ -9326,40 +9324,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2370 = 64; + JSCompiler_object_inline_stack_2363 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2370 = 134217728; + JSCompiler_object_inline_stack_2363 = 134217728; break; default: - JSCompiler_object_inline_stack_2370 = 0; + JSCompiler_object_inline_stack_2363 = 0; } - JSCompiler_object_inline_stack_2370 = + JSCompiler_object_inline_stack_2363 = 0 !== - (JSCompiler_object_inline_stack_2370 & - (JSCompiler_object_inline_componentStack_2371.suspendedLanes | + (JSCompiler_object_inline_stack_2363 & + (JSCompiler_object_inline_componentStack_2364.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2370; + : JSCompiler_object_inline_stack_2363; if ( - 0 !== JSCompiler_object_inline_stack_2370 && - JSCompiler_object_inline_stack_2370 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2363 && + JSCompiler_object_inline_stack_2363 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2370), + ((prevState.retryLane = JSCompiler_object_inline_stack_2363), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2363 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_componentStack_2364, current, - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2363 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_digest_2369.data === + JSCompiler_object_inline_digest_2362.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9367,20 +9365,14 @@ renderLanes ); } else - JSCompiler_object_inline_digest_2369.data === + JSCompiler_object_inline_digest_2362.data === SUSPENSE_PENDING_START_DATA - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (JSCompiler_object_inline_digest_2369._reactRetry = - workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_digest_2369.nextSibling + JSCompiler_object_inline_digest_2362.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9398,54 +9390,54 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2370.children + JSCompiler_object_inline_stack_2363.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_message_2368) + if (JSCompiler_object_inline_message_2361) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_message_2368 = - JSCompiler_object_inline_stack_2370.fallback), - (JSCompiler_object_inline_digest_2369 = workInProgress.mode), + (JSCompiler_object_inline_message_2361 = + JSCompiler_object_inline_stack_2363.fallback), + (JSCompiler_object_inline_digest_2362 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2370 = createWorkInProgress( + (JSCompiler_object_inline_stack_2363 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2363.children } )), - (JSCompiler_object_inline_stack_2370.subtreeFlags = + (JSCompiler_object_inline_stack_2363.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_message_2368 = createWorkInProgress( + ? (JSCompiler_object_inline_message_2361 = createWorkInProgress( instance, - JSCompiler_object_inline_message_2368 + JSCompiler_object_inline_message_2361 )) - : ((JSCompiler_object_inline_message_2368 = createFiberFromFragment( - JSCompiler_object_inline_message_2368, - JSCompiler_object_inline_digest_2369, + : ((JSCompiler_object_inline_message_2361 = createFiberFromFragment( + JSCompiler_object_inline_message_2361, + JSCompiler_object_inline_digest_2362, renderLanes, null )), - (JSCompiler_object_inline_message_2368.flags |= 2)), - (JSCompiler_object_inline_message_2368.return = workInProgress), - (JSCompiler_object_inline_stack_2370.return = workInProgress), - (JSCompiler_object_inline_stack_2370.sibling = - JSCompiler_object_inline_message_2368), - (workInProgress.child = JSCompiler_object_inline_stack_2370), - (JSCompiler_object_inline_stack_2370 = - JSCompiler_object_inline_message_2368), - (JSCompiler_object_inline_message_2368 = workInProgress.child), - (JSCompiler_object_inline_digest_2369 = current.child.memoizedState), - null === JSCompiler_object_inline_digest_2369 - ? (JSCompiler_object_inline_digest_2369 = + (JSCompiler_object_inline_message_2361.flags |= 2)), + (JSCompiler_object_inline_message_2361.return = workInProgress), + (JSCompiler_object_inline_stack_2363.return = workInProgress), + (JSCompiler_object_inline_stack_2363.sibling = + JSCompiler_object_inline_message_2361), + (workInProgress.child = JSCompiler_object_inline_stack_2363), + (JSCompiler_object_inline_stack_2363 = + JSCompiler_object_inline_message_2361), + (JSCompiler_object_inline_message_2361 = workInProgress.child), + (JSCompiler_object_inline_digest_2362 = current.child.memoizedState), + null === JSCompiler_object_inline_digest_2362 + ? (JSCompiler_object_inline_digest_2362 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_digest_2369.cachePool), + JSCompiler_object_inline_digest_2362.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9453,38 +9445,38 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_digest_2369 = { + (JSCompiler_object_inline_digest_2362 = { baseLanes: - JSCompiler_object_inline_digest_2369.baseLanes | renderLanes, + JSCompiler_object_inline_digest_2362.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_message_2368.memoizedState = - JSCompiler_object_inline_digest_2369), - (JSCompiler_object_inline_message_2368.childLanes = + (JSCompiler_object_inline_message_2361.memoizedState = + JSCompiler_object_inline_digest_2362), + (JSCompiler_object_inline_message_2361.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_componentStack_2371, + JSCompiler_object_inline_componentStack_2364, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2370 + JSCompiler_object_inline_stack_2363 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2370.children + children: JSCompiler_object_inline_stack_2363.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_componentStack_2371 = + ((JSCompiler_object_inline_componentStack_2364 = workInProgress.deletions), - null === JSCompiler_object_inline_componentStack_2371 + null === JSCompiler_object_inline_componentStack_2364 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_componentStack_2371.push(current)); + : JSCompiler_object_inline_componentStack_2364.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11897,6 +11889,16 @@ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((flags = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, flags)))); break; case 22: prevProps = @@ -20091,6 +20093,29 @@ } return instance; } + function isSuspenseInstanceFallback(instance) { + return ( + instance.data === SUSPENSE_FALLBACK_START_DATA || + (instance.data === SUSPENSE_PENDING_START_DATA && + instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) + ); + } + function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ( + instance.data !== SUSPENSE_PENDING_START_DATA || + ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE + ) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } + } function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -25150,6 +25175,7 @@ SUSPENSE_FALLBACK_START_DATA = "$!", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", + DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, @@ -25599,11 +25625,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-experimental-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-experimental-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-experimental-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-experimental-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -25640,11 +25666,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25952,5 +25978,5 @@ } }; }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js index 4b88fccd6f5c9..de94fc5d2f7d1 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom-unstable_testing.production.js @@ -5215,7 +5215,9 @@ function findFirstSuspended(row) { if ( null !== state && ((state = state.dehydrated), - null === state || "$?" === state.data || "$!" === state.data) + null === state || + "$?" === state.data || + isSuspenseInstanceFallback(state)) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { @@ -6260,7 +6262,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( - "$!" === nextInstance.data + isSuspenseInstanceFallback(nextInstance) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null @@ -6367,7 +6369,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), - "$!" === nextInstance.data) + isSuspenseInstanceFallback(nextInstance)) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; @@ -6451,13 +6453,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ); } else "$?" === nextInstance.data - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( @@ -8207,6 +8204,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((flags = finishedWork.memoizedState), + null !== flags && + ((flags = flags.dehydrated), + null !== flags && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(flags, finishedWork)))); break; case 22: prevProps = @@ -12054,20 +12061,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1462 = 0; - i$jscomp$inline_1462 < simpleEventPluginEvents.length; - i$jscomp$inline_1462++ + var i$jscomp$inline_1458 = 0; + i$jscomp$inline_1458 < simpleEventPluginEvents.length; + i$jscomp$inline_1458++ ) { - var eventName$jscomp$inline_1463 = - simpleEventPluginEvents[i$jscomp$inline_1462], - domEventName$jscomp$inline_1464 = - eventName$jscomp$inline_1463.toLowerCase(), - capitalizedEvent$jscomp$inline_1465 = - eventName$jscomp$inline_1463[0].toUpperCase() + - eventName$jscomp$inline_1463.slice(1); + var eventName$jscomp$inline_1459 = + simpleEventPluginEvents[i$jscomp$inline_1458], + domEventName$jscomp$inline_1460 = + eventName$jscomp$inline_1459.toLowerCase(), + capitalizedEvent$jscomp$inline_1461 = + eventName$jscomp$inline_1459[0].toUpperCase() + + eventName$jscomp$inline_1459.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1464, - "on" + capitalizedEvent$jscomp$inline_1465 + domEventName$jscomp$inline_1460, + "on" + capitalizedEvent$jscomp$inline_1461 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13956,6 +13963,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) { } return instance; } +function isSuspenseInstanceFallback(instance) { + return ( + "$!" === instance.data || + ("$?" === instance.data && "complete" === instance.ownerDocument.readyState) + ); +} +function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ("$?" !== instance.data || "complete" === ownerDocument.readyState) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } +} function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -15565,16 +15591,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1709 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1705 = React.version; if ( - "19.0.0-experimental-1b1283ad-20241203" !== - isomorphicReactPackageVersion$jscomp$inline_1709 + "19.0.0-experimental-de68d2f4-20241204" !== + isomorphicReactPackageVersion$jscomp$inline_1705 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1709, - "19.0.0-experimental-1b1283ad-20241203" + isomorphicReactPackageVersion$jscomp$inline_1705, + "19.0.0-experimental-de68d2f4-20241204" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15594,25 +15620,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2187 = { +var internals$jscomp$inline_2180 = { bundleType: 0, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203" + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2188 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2181 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2188.isDisabled && - hook$jscomp$inline_2188.supportsFiber + !hook$jscomp$inline_2181.isDisabled && + hook$jscomp$inline_2181.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2188.inject( - internals$jscomp$inline_2187 + (rendererID = hook$jscomp$inline_2181.inject( + internals$jscomp$inline_2180 )), - (injectedHook = hook$jscomp$inline_2188); + (injectedHook = hook$jscomp$inline_2181); } catch (err) {} } exports.createComponentSelector = function (component) { @@ -15855,4 +15881,4 @@ exports.observeVisibleRects = function ( } }; }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js index e22b779637533..94c2038f8f80c 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js index 587c58f535b5a..e3a1b424702a1 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js index 4f822bef3b064..f02b0cec7ab75 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js index 8f0ae32f9436b..6051a7aa2b4d6 100644 --- a/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom-experimental/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom-experimental/package.json b/packages/next/src/compiled/react-dom-experimental/package.json index 23f705fbf68fa..fe24a850178ee 100644 --- a/packages/next/src/compiled/react-dom-experimental/package.json +++ b/packages/next/src/compiled/react-dom-experimental/package.json @@ -72,10 +72,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.0.0-experimental-1b1283ad-20241203" + "scheduler": "0.0.0-experimental-de68d2f4-20241204" }, "peerDependencies": { - "react": "0.0.0-experimental-1b1283ad-20241203" + "react": "0.0.0-experimental-de68d2f4-20241204" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js index cbd23552f7739..7c6a86628352d 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.development.js @@ -7261,7 +7261,7 @@ ((state = state.dehydrated), null === state || state.data === SUSPENSE_PENDING_START_DATA || - state.data === SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(state)) ) return node; } else if ( @@ -8688,32 +8688,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2323; - var JSCompiler_object_inline_stack_2324 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2316; + var JSCompiler_object_inline_stack_2317 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2325 = !1; + var JSCompiler_object_inline_componentStack_2318 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2323 = didSuspend) || - (JSCompiler_object_inline_digest_2323 = + (JSCompiler_object_inline_digest_2316 = didSuspend) || + (JSCompiler_object_inline_digest_2316 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2323 && - ((JSCompiler_object_inline_componentStack_2325 = !0), + JSCompiler_object_inline_digest_2316 && + ((JSCompiler_object_inline_componentStack_2318 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2323 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2316 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2325 + JSCompiler_object_inline_componentStack_2318 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2322 = nextHydratableInstance; + var JSCompiler_object_inline_message_2315 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2322)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2315)) { c: { - var instance = JSCompiler_object_inline_message_2322; + var instance = JSCompiler_object_inline_message_2315; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8754,78 +8754,77 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2322 + JSCompiler_object_inline_message_2315 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2322 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2315 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2322 && - ((JSCompiler_object_inline_message_2322 = - JSCompiler_object_inline_message_2322.dehydrated), - null !== JSCompiler_object_inline_message_2322) + null !== JSCompiler_object_inline_message_2315 && + ((JSCompiler_object_inline_message_2315 = + JSCompiler_object_inline_message_2315.dehydrated), + null !== JSCompiler_object_inline_message_2315) ) return ( - JSCompiler_object_inline_message_2322.data === - SUSPENSE_FALLBACK_START_DATA + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2315) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2322 = - JSCompiler_object_inline_stack_2324.children; - JSCompiler_object_inline_stack_2324 = - JSCompiler_object_inline_stack_2324.fallback; - if (JSCompiler_object_inline_componentStack_2325) + JSCompiler_object_inline_message_2315 = + JSCompiler_object_inline_stack_2317.children; + JSCompiler_object_inline_stack_2317 = + JSCompiler_object_inline_stack_2317.fallback; + if (JSCompiler_object_inline_componentStack_2318) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2325 = + (JSCompiler_object_inline_componentStack_2318 = workInProgress.mode), - (JSCompiler_object_inline_message_2322 = + (JSCompiler_object_inline_message_2315 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2322 + children: JSCompiler_object_inline_message_2315 }, - JSCompiler_object_inline_componentStack_2325 + JSCompiler_object_inline_componentStack_2318 )), - (JSCompiler_object_inline_stack_2324 = createFiberFromFragment( - JSCompiler_object_inline_stack_2324, - JSCompiler_object_inline_componentStack_2325, + (JSCompiler_object_inline_stack_2317 = createFiberFromFragment( + JSCompiler_object_inline_stack_2317, + JSCompiler_object_inline_componentStack_2318, renderLanes, null )), - (JSCompiler_object_inline_message_2322.return = workInProgress), - (JSCompiler_object_inline_stack_2324.return = workInProgress), - (JSCompiler_object_inline_message_2322.sibling = - JSCompiler_object_inline_stack_2324), - (workInProgress.child = JSCompiler_object_inline_message_2322), - (JSCompiler_object_inline_componentStack_2325 = + (JSCompiler_object_inline_message_2315.return = workInProgress), + (JSCompiler_object_inline_stack_2317.return = workInProgress), + (JSCompiler_object_inline_message_2315.sibling = + JSCompiler_object_inline_stack_2317), + (workInProgress.child = JSCompiler_object_inline_message_2315), + (JSCompiler_object_inline_componentStack_2318 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2325.memoizedState = + (JSCompiler_object_inline_componentStack_2318.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2325.childLanes = + (JSCompiler_object_inline_componentStack_2318.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2323, + JSCompiler_object_inline_digest_2316, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2324 + JSCompiler_object_inline_stack_2317 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2322 + JSCompiler_object_inline_message_2315 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2322 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2322) + ((JSCompiler_object_inline_message_2315 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2315) ) { if (didSuspend) workInProgress.flags & 256 @@ -8842,95 +8841,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2325 = - JSCompiler_object_inline_stack_2324.fallback), - (JSCompiler_object_inline_message_2322 = workInProgress.mode), - (JSCompiler_object_inline_stack_2324 = + (JSCompiler_object_inline_componentStack_2318 = + JSCompiler_object_inline_stack_2317.fallback), + (JSCompiler_object_inline_message_2315 = workInProgress.mode), + (JSCompiler_object_inline_stack_2317 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2324.children + children: JSCompiler_object_inline_stack_2317.children }, - JSCompiler_object_inline_message_2322 + JSCompiler_object_inline_message_2315 )), - (JSCompiler_object_inline_componentStack_2325 = + (JSCompiler_object_inline_componentStack_2318 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2325, - JSCompiler_object_inline_message_2322, + JSCompiler_object_inline_componentStack_2318, + JSCompiler_object_inline_message_2315, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2325.flags |= 2), - (JSCompiler_object_inline_stack_2324.return = workInProgress), - (JSCompiler_object_inline_componentStack_2325.return = + (JSCompiler_object_inline_componentStack_2318.flags |= 2), + (JSCompiler_object_inline_stack_2317.return = workInProgress), + (JSCompiler_object_inline_componentStack_2318.return = workInProgress), - (JSCompiler_object_inline_stack_2324.sibling = - JSCompiler_object_inline_componentStack_2325), - (workInProgress.child = JSCompiler_object_inline_stack_2324), + (JSCompiler_object_inline_stack_2317.sibling = + JSCompiler_object_inline_componentStack_2318), + (workInProgress.child = JSCompiler_object_inline_stack_2317), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2324 = workInProgress.child), - (JSCompiler_object_inline_stack_2324.memoizedState = + (JSCompiler_object_inline_stack_2317 = workInProgress.child), + (JSCompiler_object_inline_stack_2317.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2324.childLanes = + (JSCompiler_object_inline_stack_2317.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2323, + JSCompiler_object_inline_digest_2316, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2325)); + JSCompiler_object_inline_componentStack_2318)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2322.data === - SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2315)) ) { - JSCompiler_object_inline_digest_2323 = - JSCompiler_object_inline_message_2322.nextSibling && - JSCompiler_object_inline_message_2322.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2323) { - JSCompiler_temp = JSCompiler_object_inline_digest_2323.dgst; - var message = JSCompiler_object_inline_digest_2323.msg; - instance = JSCompiler_object_inline_digest_2323.stck; - var componentStack = JSCompiler_object_inline_digest_2323.cstck; + JSCompiler_object_inline_digest_2316 = + JSCompiler_object_inline_message_2315.nextSibling && + JSCompiler_object_inline_message_2315.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2316) { + JSCompiler_temp = JSCompiler_object_inline_digest_2316.dgst; + var message = JSCompiler_object_inline_digest_2316.msg; + instance = JSCompiler_object_inline_digest_2316.stck; + var componentStack = JSCompiler_object_inline_digest_2316.cstck; } - JSCompiler_object_inline_message_2322 = message; - JSCompiler_object_inline_digest_2323 = JSCompiler_temp; - JSCompiler_object_inline_stack_2324 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2325 = + JSCompiler_object_inline_message_2315 = message; + JSCompiler_object_inline_digest_2316 = JSCompiler_temp; + JSCompiler_object_inline_stack_2317 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2318 = componentStack; - JSCompiler_object_inline_componentStack_2325 = - JSCompiler_object_inline_message_2322 - ? Error(JSCompiler_object_inline_message_2322) + JSCompiler_object_inline_componentStack_2318 = + JSCompiler_object_inline_message_2315 + ? Error(JSCompiler_object_inline_message_2315) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2325.stack = - JSCompiler_object_inline_stack_2324 || ""; - JSCompiler_object_inline_componentStack_2325.digest = - JSCompiler_object_inline_digest_2323; - JSCompiler_object_inline_digest_2323 = + JSCompiler_object_inline_componentStack_2318.stack = + JSCompiler_object_inline_stack_2317 || ""; + JSCompiler_object_inline_componentStack_2318.digest = + JSCompiler_object_inline_digest_2316; + JSCompiler_object_inline_digest_2316 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2324 = { - value: JSCompiler_object_inline_componentStack_2325, + JSCompiler_object_inline_stack_2317 = { + value: JSCompiler_object_inline_componentStack_2318, source: null, - stack: JSCompiler_object_inline_digest_2323 + stack: JSCompiler_object_inline_digest_2316 }; - "string" === typeof JSCompiler_object_inline_digest_2323 && + "string" === typeof JSCompiler_object_inline_digest_2316 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2325, - JSCompiler_object_inline_stack_2324 + JSCompiler_object_inline_componentStack_2318, + JSCompiler_object_inline_stack_2317 ); - queueHydrationError(JSCompiler_object_inline_stack_2324); + queueHydrationError(JSCompiler_object_inline_stack_2317); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -8944,25 +8942,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2323 = + (JSCompiler_object_inline_digest_2316 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2323) + didReceiveUpdate || JSCompiler_object_inline_digest_2316) ) { - JSCompiler_object_inline_digest_2323 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2323) { - JSCompiler_object_inline_stack_2324 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2324 & 42)) - JSCompiler_object_inline_stack_2324 = 1; + JSCompiler_object_inline_digest_2316 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2316) { + JSCompiler_object_inline_stack_2317 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2317 & 42)) + JSCompiler_object_inline_stack_2317 = 1; else - switch (JSCompiler_object_inline_stack_2324) { + switch (JSCompiler_object_inline_stack_2317) { case 2: - JSCompiler_object_inline_stack_2324 = 1; + JSCompiler_object_inline_stack_2317 = 1; break; case 8: - JSCompiler_object_inline_stack_2324 = 4; + JSCompiler_object_inline_stack_2317 = 4; break; case 32: - JSCompiler_object_inline_stack_2324 = 16; + JSCompiler_object_inline_stack_2317 = 16; break; case 128: case 256: @@ -8983,40 +8981,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2324 = 64; + JSCompiler_object_inline_stack_2317 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2324 = 134217728; + JSCompiler_object_inline_stack_2317 = 134217728; break; default: - JSCompiler_object_inline_stack_2324 = 0; + JSCompiler_object_inline_stack_2317 = 0; } - JSCompiler_object_inline_stack_2324 = + JSCompiler_object_inline_stack_2317 = 0 !== - (JSCompiler_object_inline_stack_2324 & - (JSCompiler_object_inline_digest_2323.suspendedLanes | + (JSCompiler_object_inline_stack_2317 & + (JSCompiler_object_inline_digest_2316.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2324; + : JSCompiler_object_inline_stack_2317; if ( - 0 !== JSCompiler_object_inline_stack_2324 && - JSCompiler_object_inline_stack_2324 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2317 && + JSCompiler_object_inline_stack_2317 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2324), + ((prevState.retryLane = JSCompiler_object_inline_stack_2317), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2324 + JSCompiler_object_inline_stack_2317 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2323, + JSCompiler_object_inline_digest_2316, current, - JSCompiler_object_inline_stack_2324 + JSCompiler_object_inline_stack_2317 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2322.data === + JSCompiler_object_inline_message_2315.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9024,20 +9022,14 @@ renderLanes ); } else - JSCompiler_object_inline_message_2322.data === + JSCompiler_object_inline_message_2315.data === SUSPENSE_PENDING_START_DATA - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (JSCompiler_object_inline_message_2322._reactRetry = - workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2322.nextSibling + JSCompiler_object_inline_message_2315.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9055,57 +9047,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2324.children + JSCompiler_object_inline_stack_2317.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2325) + if (JSCompiler_object_inline_componentStack_2318) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2325 = - JSCompiler_object_inline_stack_2324.fallback), - (JSCompiler_object_inline_message_2322 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2318 = + JSCompiler_object_inline_stack_2317.fallback), + (JSCompiler_object_inline_message_2315 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2324 = createWorkInProgress( + (JSCompiler_object_inline_stack_2317 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2324.children + children: JSCompiler_object_inline_stack_2317.children } )), - (JSCompiler_object_inline_stack_2324.subtreeFlags = + (JSCompiler_object_inline_stack_2317.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2325 = + ? (JSCompiler_object_inline_componentStack_2318 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2325 + JSCompiler_object_inline_componentStack_2318 )) - : ((JSCompiler_object_inline_componentStack_2325 = + : ((JSCompiler_object_inline_componentStack_2318 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2325, - JSCompiler_object_inline_message_2322, + JSCompiler_object_inline_componentStack_2318, + JSCompiler_object_inline_message_2315, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2325.flags |= 2)), - (JSCompiler_object_inline_componentStack_2325.return = + (JSCompiler_object_inline_componentStack_2318.flags |= 2)), + (JSCompiler_object_inline_componentStack_2318.return = workInProgress), - (JSCompiler_object_inline_stack_2324.return = workInProgress), - (JSCompiler_object_inline_stack_2324.sibling = - JSCompiler_object_inline_componentStack_2325), - (workInProgress.child = JSCompiler_object_inline_stack_2324), - (JSCompiler_object_inline_stack_2324 = - JSCompiler_object_inline_componentStack_2325), - (JSCompiler_object_inline_componentStack_2325 = workInProgress.child), - (JSCompiler_object_inline_message_2322 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2322 - ? (JSCompiler_object_inline_message_2322 = + (JSCompiler_object_inline_stack_2317.return = workInProgress), + (JSCompiler_object_inline_stack_2317.sibling = + JSCompiler_object_inline_componentStack_2318), + (workInProgress.child = JSCompiler_object_inline_stack_2317), + (JSCompiler_object_inline_stack_2317 = + JSCompiler_object_inline_componentStack_2318), + (JSCompiler_object_inline_componentStack_2318 = workInProgress.child), + (JSCompiler_object_inline_message_2315 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2315 + ? (JSCompiler_object_inline_message_2315 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2322.cachePool), + JSCompiler_object_inline_message_2315.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9113,37 +9105,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2322 = { + (JSCompiler_object_inline_message_2315 = { baseLanes: - JSCompiler_object_inline_message_2322.baseLanes | renderLanes, + JSCompiler_object_inline_message_2315.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2325.memoizedState = - JSCompiler_object_inline_message_2322), - (JSCompiler_object_inline_componentStack_2325.childLanes = + (JSCompiler_object_inline_componentStack_2318.memoizedState = + JSCompiler_object_inline_message_2315), + (JSCompiler_object_inline_componentStack_2318.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2323, + JSCompiler_object_inline_digest_2316, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2324 + JSCompiler_object_inline_stack_2317 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2324.children + children: JSCompiler_object_inline_stack_2317.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2323 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2323 + ((JSCompiler_object_inline_digest_2316 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2316 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2323.push(current)); + : JSCompiler_object_inline_digest_2316.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11567,6 +11559,16 @@ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); break; case 22: prevProps = @@ -19247,6 +19249,29 @@ } return instance; } + function isSuspenseInstanceFallback(instance) { + return ( + instance.data === SUSPENSE_FALLBACK_START_DATA || + (instance.data === SUSPENSE_PENDING_START_DATA && + instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) + ); + } + function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ( + instance.data !== SUSPENSE_PENDING_START_DATA || + ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE + ) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } + } function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -24101,6 +24126,7 @@ SUSPENSE_FALLBACK_START_DATA = "$!", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", + DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, @@ -24549,11 +24575,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24590,11 +24616,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203" + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -24738,7 +24764,7 @@ listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js index 81792796b66dc..9a90575f91660 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-client.production.js @@ -5051,7 +5051,9 @@ function findFirstSuspended(row) { if ( null !== state && ((state = state.dehydrated), - null === state || "$?" === state.data || "$!" === state.data) + null === state || + "$?" === state.data || + isSuspenseInstanceFallback(state)) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { @@ -6065,7 +6067,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( - "$!" === nextInstance.data + isSuspenseInstanceFallback(nextInstance) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null @@ -6161,7 +6163,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), - "$!" === nextInstance.data) + isSuspenseInstanceFallback(nextInstance)) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; @@ -6244,13 +6246,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ); } else "$?" === nextInstance.data - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( @@ -7964,6 +7961,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((flags = finishedWork.memoizedState), + null !== flags && + ((flags = flags.dehydrated), + null !== flags && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(flags, finishedWork)))); break; case 22: prevProps = @@ -11620,20 +11627,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1440 = 0; - i$jscomp$inline_1440 < simpleEventPluginEvents.length; - i$jscomp$inline_1440++ + var i$jscomp$inline_1436 = 0; + i$jscomp$inline_1436 < simpleEventPluginEvents.length; + i$jscomp$inline_1436++ ) { - var eventName$jscomp$inline_1441 = - simpleEventPluginEvents[i$jscomp$inline_1440], - domEventName$jscomp$inline_1442 = - eventName$jscomp$inline_1441.toLowerCase(), - capitalizedEvent$jscomp$inline_1443 = - eventName$jscomp$inline_1441[0].toUpperCase() + - eventName$jscomp$inline_1441.slice(1); + var eventName$jscomp$inline_1437 = + simpleEventPluginEvents[i$jscomp$inline_1436], + domEventName$jscomp$inline_1438 = + eventName$jscomp$inline_1437.toLowerCase(), + capitalizedEvent$jscomp$inline_1439 = + eventName$jscomp$inline_1437[0].toUpperCase() + + eventName$jscomp$inline_1437.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1442, - "on" + capitalizedEvent$jscomp$inline_1443 + domEventName$jscomp$inline_1438, + "on" + capitalizedEvent$jscomp$inline_1439 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -13522,6 +13529,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) { } return instance; } +function isSuspenseInstanceFallback(instance) { + return ( + "$!" === instance.data || + ("$?" === instance.data && "complete" === instance.ownerDocument.readyState) + ); +} +function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ("$?" !== instance.data || "complete" === ownerDocument.readyState) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } +} function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -15074,16 +15100,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1687 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1683 = React.version; if ( - "19.0.0-rc-1b1283ad-20241203" !== - isomorphicReactPackageVersion$jscomp$inline_1687 + "19.0.0-rc-de68d2f4-20241204" !== + isomorphicReactPackageVersion$jscomp$inline_1683 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1687, - "19.0.0-rc-1b1283ad-20241203" + isomorphicReactPackageVersion$jscomp$inline_1683, + "19.0.0-rc-de68d2f4-20241204" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15103,25 +15129,25 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_2166 = { +var internals$jscomp$inline_2159 = { bundleType: 0, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203" + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2167 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2160 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2167.isDisabled && - hook$jscomp$inline_2167.supportsFiber + !hook$jscomp$inline_2160.isDisabled && + hook$jscomp$inline_2160.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2167.inject( - internals$jscomp$inline_2166 + (rendererID = hook$jscomp$inline_2160.inject( + internals$jscomp$inline_2159 )), - (injectedHook = hook$jscomp$inline_2167); + (injectedHook = hook$jscomp$inline_2160); } catch (err) {} } exports.createRoot = function (container, options) { @@ -15213,4 +15239,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js index f87dc6c93c3a5..07a7e7bb8b0fd 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.development.js @@ -7269,7 +7269,7 @@ ((state = state.dehydrated), null === state || state.data === SUSPENSE_PENDING_START_DATA || - state.data === SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(state)) ) return node; } else if ( @@ -8696,32 +8696,32 @@ return current; } function updateSuspenseComponent(current, workInProgress, renderLanes) { - var JSCompiler_object_inline_digest_2328; - var JSCompiler_object_inline_stack_2329 = workInProgress.pendingProps; + var JSCompiler_object_inline_digest_2321; + var JSCompiler_object_inline_stack_2322 = workInProgress.pendingProps; shouldSuspendImpl(workInProgress) && (workInProgress.flags |= 128); - var JSCompiler_object_inline_componentStack_2330 = !1; + var JSCompiler_object_inline_componentStack_2323 = !1; var didSuspend = 0 !== (workInProgress.flags & 128); - (JSCompiler_object_inline_digest_2328 = didSuspend) || - (JSCompiler_object_inline_digest_2328 = + (JSCompiler_object_inline_digest_2321 = didSuspend) || + (JSCompiler_object_inline_digest_2321 = null !== current && null === current.memoizedState ? !1 : 0 !== (suspenseStackCursor.current & ForceSuspenseFallback)); - JSCompiler_object_inline_digest_2328 && - ((JSCompiler_object_inline_componentStack_2330 = !0), + JSCompiler_object_inline_digest_2321 && + ((JSCompiler_object_inline_componentStack_2323 = !0), (workInProgress.flags &= -129)); - JSCompiler_object_inline_digest_2328 = 0 !== (workInProgress.flags & 32); + JSCompiler_object_inline_digest_2321 = 0 !== (workInProgress.flags & 32); workInProgress.flags &= -33; if (null === current) { if (isHydrating) { - JSCompiler_object_inline_componentStack_2330 + JSCompiler_object_inline_componentStack_2323 ? pushPrimaryTreeSuspenseHandler(workInProgress) : reuseSuspenseHandlerOnStack(workInProgress); if (isHydrating) { - var JSCompiler_object_inline_message_2327 = nextHydratableInstance; + var JSCompiler_object_inline_message_2320 = nextHydratableInstance; var JSCompiler_temp; - if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2327)) { + if (!(JSCompiler_temp = !JSCompiler_object_inline_message_2320)) { c: { - var instance = JSCompiler_object_inline_message_2327; + var instance = JSCompiler_object_inline_message_2320; for ( JSCompiler_temp = rootOrSingletonContext; 8 !== instance.nodeType; @@ -8762,78 +8762,77 @@ JSCompiler_temp && (warnNonHydratedInstance( workInProgress, - JSCompiler_object_inline_message_2327 + JSCompiler_object_inline_message_2320 ), throwOnHydrationMismatch(workInProgress)); } - JSCompiler_object_inline_message_2327 = workInProgress.memoizedState; + JSCompiler_object_inline_message_2320 = workInProgress.memoizedState; if ( - null !== JSCompiler_object_inline_message_2327 && - ((JSCompiler_object_inline_message_2327 = - JSCompiler_object_inline_message_2327.dehydrated), - null !== JSCompiler_object_inline_message_2327) + null !== JSCompiler_object_inline_message_2320 && + ((JSCompiler_object_inline_message_2320 = + JSCompiler_object_inline_message_2320.dehydrated), + null !== JSCompiler_object_inline_message_2320) ) return ( - JSCompiler_object_inline_message_2327.data === - SUSPENSE_FALLBACK_START_DATA + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2320) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null ); popSuspenseHandler(workInProgress); } - JSCompiler_object_inline_message_2327 = - JSCompiler_object_inline_stack_2329.children; - JSCompiler_object_inline_stack_2329 = - JSCompiler_object_inline_stack_2329.fallback; - if (JSCompiler_object_inline_componentStack_2330) + JSCompiler_object_inline_message_2320 = + JSCompiler_object_inline_stack_2322.children; + JSCompiler_object_inline_stack_2322 = + JSCompiler_object_inline_stack_2322.fallback; + if (JSCompiler_object_inline_componentStack_2323) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2330 = + (JSCompiler_object_inline_componentStack_2323 = workInProgress.mode), - (JSCompiler_object_inline_message_2327 = + (JSCompiler_object_inline_message_2320 = mountWorkInProgressOffscreenFiber( { mode: "hidden", - children: JSCompiler_object_inline_message_2327 + children: JSCompiler_object_inline_message_2320 }, - JSCompiler_object_inline_componentStack_2330 + JSCompiler_object_inline_componentStack_2323 )), - (JSCompiler_object_inline_stack_2329 = createFiberFromFragment( - JSCompiler_object_inline_stack_2329, - JSCompiler_object_inline_componentStack_2330, + (JSCompiler_object_inline_stack_2322 = createFiberFromFragment( + JSCompiler_object_inline_stack_2322, + JSCompiler_object_inline_componentStack_2323, renderLanes, null )), - (JSCompiler_object_inline_message_2327.return = workInProgress), - (JSCompiler_object_inline_stack_2329.return = workInProgress), - (JSCompiler_object_inline_message_2327.sibling = - JSCompiler_object_inline_stack_2329), - (workInProgress.child = JSCompiler_object_inline_message_2327), - (JSCompiler_object_inline_componentStack_2330 = + (JSCompiler_object_inline_message_2320.return = workInProgress), + (JSCompiler_object_inline_stack_2322.return = workInProgress), + (JSCompiler_object_inline_message_2320.sibling = + JSCompiler_object_inline_stack_2322), + (workInProgress.child = JSCompiler_object_inline_message_2320), + (JSCompiler_object_inline_componentStack_2323 = workInProgress.child), - (JSCompiler_object_inline_componentStack_2330.memoizedState = + (JSCompiler_object_inline_componentStack_2323.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_componentStack_2330.childLanes = + (JSCompiler_object_inline_componentStack_2323.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2321, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2322 ); pushPrimaryTreeSuspenseHandler(workInProgress); return mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_message_2327 + JSCompiler_object_inline_message_2320 ); } var prevState = current.memoizedState; if ( null !== prevState && - ((JSCompiler_object_inline_message_2327 = prevState.dehydrated), - null !== JSCompiler_object_inline_message_2327) + ((JSCompiler_object_inline_message_2320 = prevState.dehydrated), + null !== JSCompiler_object_inline_message_2320) ) { if (didSuspend) workInProgress.flags & 256 @@ -8850,95 +8849,94 @@ (workInProgress.flags |= 128), (workInProgress = null)) : (reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2330 = - JSCompiler_object_inline_stack_2329.fallback), - (JSCompiler_object_inline_message_2327 = workInProgress.mode), - (JSCompiler_object_inline_stack_2329 = + (JSCompiler_object_inline_componentStack_2323 = + JSCompiler_object_inline_stack_2322.fallback), + (JSCompiler_object_inline_message_2320 = workInProgress.mode), + (JSCompiler_object_inline_stack_2322 = mountWorkInProgressOffscreenFiber( { mode: "visible", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2322.children }, - JSCompiler_object_inline_message_2327 + JSCompiler_object_inline_message_2320 )), - (JSCompiler_object_inline_componentStack_2330 = + (JSCompiler_object_inline_componentStack_2323 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2330, - JSCompiler_object_inline_message_2327, + JSCompiler_object_inline_componentStack_2323, + JSCompiler_object_inline_message_2320, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2330.flags |= 2), - (JSCompiler_object_inline_stack_2329.return = workInProgress), - (JSCompiler_object_inline_componentStack_2330.return = + (JSCompiler_object_inline_componentStack_2323.flags |= 2), + (JSCompiler_object_inline_stack_2322.return = workInProgress), + (JSCompiler_object_inline_componentStack_2323.return = workInProgress), - (JSCompiler_object_inline_stack_2329.sibling = - JSCompiler_object_inline_componentStack_2330), - (workInProgress.child = JSCompiler_object_inline_stack_2329), + (JSCompiler_object_inline_stack_2322.sibling = + JSCompiler_object_inline_componentStack_2323), + (workInProgress.child = JSCompiler_object_inline_stack_2322), reconcileChildFibers( workInProgress, current.child, null, renderLanes ), - (JSCompiler_object_inline_stack_2329 = workInProgress.child), - (JSCompiler_object_inline_stack_2329.memoizedState = + (JSCompiler_object_inline_stack_2322 = workInProgress.child), + (JSCompiler_object_inline_stack_2322.memoizedState = mountSuspenseOffscreenState(renderLanes)), - (JSCompiler_object_inline_stack_2329.childLanes = + (JSCompiler_object_inline_stack_2322.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2321, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), (workInProgress = - JSCompiler_object_inline_componentStack_2330)); + JSCompiler_object_inline_componentStack_2323)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), isHydrating && console.error( "We should not be hydrating here. This is a bug in React. Please file a bug." ), - JSCompiler_object_inline_message_2327.data === - SUSPENSE_FALLBACK_START_DATA) + isSuspenseInstanceFallback(JSCompiler_object_inline_message_2320)) ) { - JSCompiler_object_inline_digest_2328 = - JSCompiler_object_inline_message_2327.nextSibling && - JSCompiler_object_inline_message_2327.nextSibling.dataset; - if (JSCompiler_object_inline_digest_2328) { - JSCompiler_temp = JSCompiler_object_inline_digest_2328.dgst; - var message = JSCompiler_object_inline_digest_2328.msg; - instance = JSCompiler_object_inline_digest_2328.stck; - var componentStack = JSCompiler_object_inline_digest_2328.cstck; + JSCompiler_object_inline_digest_2321 = + JSCompiler_object_inline_message_2320.nextSibling && + JSCompiler_object_inline_message_2320.nextSibling.dataset; + if (JSCompiler_object_inline_digest_2321) { + JSCompiler_temp = JSCompiler_object_inline_digest_2321.dgst; + var message = JSCompiler_object_inline_digest_2321.msg; + instance = JSCompiler_object_inline_digest_2321.stck; + var componentStack = JSCompiler_object_inline_digest_2321.cstck; } - JSCompiler_object_inline_message_2327 = message; - JSCompiler_object_inline_digest_2328 = JSCompiler_temp; - JSCompiler_object_inline_stack_2329 = instance; - JSCompiler_temp = JSCompiler_object_inline_componentStack_2330 = + JSCompiler_object_inline_message_2320 = message; + JSCompiler_object_inline_digest_2321 = JSCompiler_temp; + JSCompiler_object_inline_stack_2322 = instance; + JSCompiler_temp = JSCompiler_object_inline_componentStack_2323 = componentStack; - JSCompiler_object_inline_componentStack_2330 = - JSCompiler_object_inline_message_2327 - ? Error(JSCompiler_object_inline_message_2327) + JSCompiler_object_inline_componentStack_2323 = + JSCompiler_object_inline_message_2320 + ? Error(JSCompiler_object_inline_message_2320) : Error( "The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering." ); - JSCompiler_object_inline_componentStack_2330.stack = - JSCompiler_object_inline_stack_2329 || ""; - JSCompiler_object_inline_componentStack_2330.digest = - JSCompiler_object_inline_digest_2328; - JSCompiler_object_inline_digest_2328 = + JSCompiler_object_inline_componentStack_2323.stack = + JSCompiler_object_inline_stack_2322 || ""; + JSCompiler_object_inline_componentStack_2323.digest = + JSCompiler_object_inline_digest_2321; + JSCompiler_object_inline_digest_2321 = void 0 === JSCompiler_temp ? null : JSCompiler_temp; - JSCompiler_object_inline_stack_2329 = { - value: JSCompiler_object_inline_componentStack_2330, + JSCompiler_object_inline_stack_2322 = { + value: JSCompiler_object_inline_componentStack_2323, source: null, - stack: JSCompiler_object_inline_digest_2328 + stack: JSCompiler_object_inline_digest_2321 }; - "string" === typeof JSCompiler_object_inline_digest_2328 && + "string" === typeof JSCompiler_object_inline_digest_2321 && CapturedStacks.set( - JSCompiler_object_inline_componentStack_2330, - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_componentStack_2323, + JSCompiler_object_inline_stack_2322 ); - queueHydrationError(JSCompiler_object_inline_stack_2329); + queueHydrationError(JSCompiler_object_inline_stack_2322); workInProgress = retrySuspenseComponentWithoutHydrating( current, workInProgress, @@ -8952,25 +8950,25 @@ renderLanes, !1 ), - (JSCompiler_object_inline_digest_2328 = + (JSCompiler_object_inline_digest_2321 = 0 !== (renderLanes & current.childLanes)), - didReceiveUpdate || JSCompiler_object_inline_digest_2328) + didReceiveUpdate || JSCompiler_object_inline_digest_2321) ) { - JSCompiler_object_inline_digest_2328 = workInProgressRoot; - if (null !== JSCompiler_object_inline_digest_2328) { - JSCompiler_object_inline_stack_2329 = renderLanes & -renderLanes; - if (0 !== (JSCompiler_object_inline_stack_2329 & 42)) - JSCompiler_object_inline_stack_2329 = 1; + JSCompiler_object_inline_digest_2321 = workInProgressRoot; + if (null !== JSCompiler_object_inline_digest_2321) { + JSCompiler_object_inline_stack_2322 = renderLanes & -renderLanes; + if (0 !== (JSCompiler_object_inline_stack_2322 & 42)) + JSCompiler_object_inline_stack_2322 = 1; else - switch (JSCompiler_object_inline_stack_2329) { + switch (JSCompiler_object_inline_stack_2322) { case 2: - JSCompiler_object_inline_stack_2329 = 1; + JSCompiler_object_inline_stack_2322 = 1; break; case 8: - JSCompiler_object_inline_stack_2329 = 4; + JSCompiler_object_inline_stack_2322 = 4; break; case 32: - JSCompiler_object_inline_stack_2329 = 16; + JSCompiler_object_inline_stack_2322 = 16; break; case 128: case 256: @@ -8991,40 +8989,40 @@ case 8388608: case 16777216: case 33554432: - JSCompiler_object_inline_stack_2329 = 64; + JSCompiler_object_inline_stack_2322 = 64; break; case 268435456: - JSCompiler_object_inline_stack_2329 = 134217728; + JSCompiler_object_inline_stack_2322 = 134217728; break; default: - JSCompiler_object_inline_stack_2329 = 0; + JSCompiler_object_inline_stack_2322 = 0; } - JSCompiler_object_inline_stack_2329 = + JSCompiler_object_inline_stack_2322 = 0 !== - (JSCompiler_object_inline_stack_2329 & - (JSCompiler_object_inline_digest_2328.suspendedLanes | + (JSCompiler_object_inline_stack_2322 & + (JSCompiler_object_inline_digest_2321.suspendedLanes | renderLanes)) ? 0 - : JSCompiler_object_inline_stack_2329; + : JSCompiler_object_inline_stack_2322; if ( - 0 !== JSCompiler_object_inline_stack_2329 && - JSCompiler_object_inline_stack_2329 !== prevState.retryLane + 0 !== JSCompiler_object_inline_stack_2322 && + JSCompiler_object_inline_stack_2322 !== prevState.retryLane ) throw ( - ((prevState.retryLane = JSCompiler_object_inline_stack_2329), + ((prevState.retryLane = JSCompiler_object_inline_stack_2322), enqueueConcurrentRenderForLane( current, - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2322 ), scheduleUpdateOnFiber( - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2321, current, - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2322 ), SelectiveHydrationException) ); } - JSCompiler_object_inline_message_2327.data === + JSCompiler_object_inline_message_2320.data === SUSPENSE_PENDING_START_DATA || renderDidSuspendDelayIfPossible(); workInProgress = retrySuspenseComponentWithoutHydrating( current, @@ -9032,20 +9030,14 @@ renderLanes ); } else - JSCompiler_object_inline_message_2327.data === + JSCompiler_object_inline_message_2320.data === SUSPENSE_PENDING_START_DATA - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (JSCompiler_object_inline_message_2327._reactRetry = - workInProgress), (workInProgress = null)) : ((current = prevState.treeContext), (nextHydratableInstance = getNextHydratable( - JSCompiler_object_inline_message_2327.nextSibling + JSCompiler_object_inline_message_2320.nextSibling )), (hydrationParentFiber = workInProgress), (isHydrating = !0), @@ -9063,57 +9055,57 @@ (treeContextProvider = workInProgress)), (workInProgress = mountSuspensePrimaryChildren( workInProgress, - JSCompiler_object_inline_stack_2329.children + JSCompiler_object_inline_stack_2322.children )), (workInProgress.flags |= 4096)); return workInProgress; } - if (JSCompiler_object_inline_componentStack_2330) + if (JSCompiler_object_inline_componentStack_2323) return ( reuseSuspenseHandlerOnStack(workInProgress), - (JSCompiler_object_inline_componentStack_2330 = - JSCompiler_object_inline_stack_2329.fallback), - (JSCompiler_object_inline_message_2327 = workInProgress.mode), + (JSCompiler_object_inline_componentStack_2323 = + JSCompiler_object_inline_stack_2322.fallback), + (JSCompiler_object_inline_message_2320 = workInProgress.mode), (JSCompiler_temp = current.child), (instance = JSCompiler_temp.sibling), - (JSCompiler_object_inline_stack_2329 = createWorkInProgress( + (JSCompiler_object_inline_stack_2322 = createWorkInProgress( JSCompiler_temp, { mode: "hidden", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2322.children } )), - (JSCompiler_object_inline_stack_2329.subtreeFlags = + (JSCompiler_object_inline_stack_2322.subtreeFlags = JSCompiler_temp.subtreeFlags & 31457280), null !== instance - ? (JSCompiler_object_inline_componentStack_2330 = + ? (JSCompiler_object_inline_componentStack_2323 = createWorkInProgress( instance, - JSCompiler_object_inline_componentStack_2330 + JSCompiler_object_inline_componentStack_2323 )) - : ((JSCompiler_object_inline_componentStack_2330 = + : ((JSCompiler_object_inline_componentStack_2323 = createFiberFromFragment( - JSCompiler_object_inline_componentStack_2330, - JSCompiler_object_inline_message_2327, + JSCompiler_object_inline_componentStack_2323, + JSCompiler_object_inline_message_2320, renderLanes, null )), - (JSCompiler_object_inline_componentStack_2330.flags |= 2)), - (JSCompiler_object_inline_componentStack_2330.return = + (JSCompiler_object_inline_componentStack_2323.flags |= 2)), + (JSCompiler_object_inline_componentStack_2323.return = workInProgress), - (JSCompiler_object_inline_stack_2329.return = workInProgress), - (JSCompiler_object_inline_stack_2329.sibling = - JSCompiler_object_inline_componentStack_2330), - (workInProgress.child = JSCompiler_object_inline_stack_2329), - (JSCompiler_object_inline_stack_2329 = - JSCompiler_object_inline_componentStack_2330), - (JSCompiler_object_inline_componentStack_2330 = workInProgress.child), - (JSCompiler_object_inline_message_2327 = current.child.memoizedState), - null === JSCompiler_object_inline_message_2327 - ? (JSCompiler_object_inline_message_2327 = + (JSCompiler_object_inline_stack_2322.return = workInProgress), + (JSCompiler_object_inline_stack_2322.sibling = + JSCompiler_object_inline_componentStack_2323), + (workInProgress.child = JSCompiler_object_inline_stack_2322), + (JSCompiler_object_inline_stack_2322 = + JSCompiler_object_inline_componentStack_2323), + (JSCompiler_object_inline_componentStack_2323 = workInProgress.child), + (JSCompiler_object_inline_message_2320 = current.child.memoizedState), + null === JSCompiler_object_inline_message_2320 + ? (JSCompiler_object_inline_message_2320 = mountSuspenseOffscreenState(renderLanes)) : ((JSCompiler_temp = - JSCompiler_object_inline_message_2327.cachePool), + JSCompiler_object_inline_message_2320.cachePool), null !== JSCompiler_temp ? ((instance = CacheContext._currentValue), (JSCompiler_temp = @@ -9121,37 +9113,37 @@ ? { parent: instance, pool: instance } : JSCompiler_temp)) : (JSCompiler_temp = getSuspendedCache()), - (JSCompiler_object_inline_message_2327 = { + (JSCompiler_object_inline_message_2320 = { baseLanes: - JSCompiler_object_inline_message_2327.baseLanes | renderLanes, + JSCompiler_object_inline_message_2320.baseLanes | renderLanes, cachePool: JSCompiler_temp })), - (JSCompiler_object_inline_componentStack_2330.memoizedState = - JSCompiler_object_inline_message_2327), - (JSCompiler_object_inline_componentStack_2330.childLanes = + (JSCompiler_object_inline_componentStack_2323.memoizedState = + JSCompiler_object_inline_message_2320), + (JSCompiler_object_inline_componentStack_2323.childLanes = getRemainingWorkInPrimaryTree( current, - JSCompiler_object_inline_digest_2328, + JSCompiler_object_inline_digest_2321, renderLanes )), (workInProgress.memoizedState = SUSPENDED_MARKER), - JSCompiler_object_inline_stack_2329 + JSCompiler_object_inline_stack_2322 ); pushPrimaryTreeSuspenseHandler(workInProgress); renderLanes = current.child; current = renderLanes.sibling; renderLanes = createWorkInProgress(renderLanes, { mode: "visible", - children: JSCompiler_object_inline_stack_2329.children + children: JSCompiler_object_inline_stack_2322.children }); renderLanes.return = workInProgress; renderLanes.sibling = null; null !== current && - ((JSCompiler_object_inline_digest_2328 = workInProgress.deletions), - null === JSCompiler_object_inline_digest_2328 + ((JSCompiler_object_inline_digest_2321 = workInProgress.deletions), + null === JSCompiler_object_inline_digest_2321 ? ((workInProgress.deletions = [current]), (workInProgress.flags |= 16)) - : JSCompiler_object_inline_digest_2328.push(current)); + : JSCompiler_object_inline_digest_2321.push(current)); workInProgress.child = renderLanes; workInProgress.memoizedState = null; return renderLanes; @@ -11575,6 +11567,16 @@ recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); break; case 22: prevProps = @@ -19259,6 +19261,29 @@ } return instance; } + function isSuspenseInstanceFallback(instance) { + return ( + instance.data === SUSPENSE_FALLBACK_START_DATA || + (instance.data === SUSPENSE_PENDING_START_DATA && + instance.ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE) + ); + } + function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ( + instance.data !== SUSPENSE_PENDING_START_DATA || + ownerDocument.readyState === DOCUMENT_READY_STATE_COMPLETE + ) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } + } function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -24158,6 +24183,7 @@ SUSPENSE_FALLBACK_START_DATA = "$!", FORM_STATE_IS_MATCHING = "F!", FORM_STATE_IS_NOT_MATCHING = "F", + DOCUMENT_READY_STATE_COMPLETE = "complete", STYLE = "style", HostContextNamespaceNone = 0, HostContextNamespaceSvg = 1, @@ -24606,11 +24632,11 @@ }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -24647,11 +24673,11 @@ !(function () { var internals = { bundleType: 1, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203" + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -25125,7 +25151,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js index 8e2fd34fe12d1..8d6ad27c201ff 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-profiling.profiling.js @@ -5207,7 +5207,9 @@ function findFirstSuspended(row) { if ( null !== state && ((state = state.dehydrated), - null === state || "$?" === state.data || "$!" === state.data) + null === state || + "$?" === state.data || + isSuspenseInstanceFallback(state)) ) return node; } else if (19 === node.tag && void 0 !== node.memoizedProps.revealOrder) { @@ -6234,7 +6236,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ((nextInstance = nextInstance.dehydrated), null !== nextInstance) ) return ( - "$!" === nextInstance.data + isSuspenseInstanceFallback(nextInstance) ? (workInProgress.lanes = 16) : (workInProgress.lanes = 536870912), null @@ -6330,7 +6332,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { (workInProgress = showFallback)); else if ( (pushPrimaryTreeSuspenseHandler(workInProgress), - "$!" === nextInstance.data) + isSuspenseInstanceFallback(nextInstance)) ) { JSCompiler_temp = nextInstance.nextSibling && nextInstance.nextSibling.dataset; @@ -6413,13 +6415,8 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) { ); } else "$?" === nextInstance.data - ? ((workInProgress.flags |= 128), + ? ((workInProgress.flags |= 192), (workInProgress.child = current.child), - (workInProgress = retryDehydratedSuspenseBoundary.bind( - null, - current - )), - (nextInstance._reactRetry = workInProgress), (workInProgress = null)) : ((current = JSCompiler_temp$jscomp$0.treeContext), (nextHydratableInstance = getNextHydratable( @@ -8357,6 +8354,16 @@ function commitLayoutEffectOnFiber(finishedRoot, current, finishedWork) { case 13: recursivelyTraverseLayoutEffects(finishedRoot, finishedWork); flags & 4 && commitSuspenseHydrationCallbacks(finishedRoot, finishedWork); + flags & 64 && + ((finishedRoot = finishedWork.memoizedState), + null !== finishedRoot && + ((finishedRoot = finishedRoot.dehydrated), + null !== finishedRoot && + ((finishedWork = retryDehydratedSuspenseBoundary.bind( + null, + finishedWork + )), + registerSuspenseInstanceRetry(finishedRoot, finishedWork)))); break; case 22: prevProps = @@ -12251,20 +12258,20 @@ function extractEvents$1( } } for ( - var i$jscomp$inline_1529 = 0; - i$jscomp$inline_1529 < simpleEventPluginEvents.length; - i$jscomp$inline_1529++ + var i$jscomp$inline_1525 = 0; + i$jscomp$inline_1525 < simpleEventPluginEvents.length; + i$jscomp$inline_1525++ ) { - var eventName$jscomp$inline_1530 = - simpleEventPluginEvents[i$jscomp$inline_1529], - domEventName$jscomp$inline_1531 = - eventName$jscomp$inline_1530.toLowerCase(), - capitalizedEvent$jscomp$inline_1532 = - eventName$jscomp$inline_1530[0].toUpperCase() + - eventName$jscomp$inline_1530.slice(1); + var eventName$jscomp$inline_1526 = + simpleEventPluginEvents[i$jscomp$inline_1525], + domEventName$jscomp$inline_1527 = + eventName$jscomp$inline_1526.toLowerCase(), + capitalizedEvent$jscomp$inline_1528 = + eventName$jscomp$inline_1526[0].toUpperCase() + + eventName$jscomp$inline_1526.slice(1); registerSimpleEvent( - domEventName$jscomp$inline_1531, - "on" + capitalizedEvent$jscomp$inline_1532 + domEventName$jscomp$inline_1527, + "on" + capitalizedEvent$jscomp$inline_1528 ); } registerSimpleEvent(ANIMATION_END, "onAnimationEnd"); @@ -14153,6 +14160,25 @@ function canHydrateTextInstance(instance, text, inRootOrSingleton) { } return instance; } +function isSuspenseInstanceFallback(instance) { + return ( + "$!" === instance.data || + ("$?" === instance.data && "complete" === instance.ownerDocument.readyState) + ); +} +function registerSuspenseInstanceRetry(instance, callback) { + var ownerDocument = instance.ownerDocument; + if ("$?" !== instance.data || "complete" === ownerDocument.readyState) + callback(); + else { + var listener = function () { + callback(); + ownerDocument.removeEventListener("DOMContentLoaded", listener); + }; + ownerDocument.addEventListener("DOMContentLoaded", listener); + instance._reactRetry = listener; + } +} function getNextHydratable(node) { for (; null != node; node = node.nextSibling) { var nodeType = node.nodeType; @@ -15724,16 +15750,16 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { 0 === i && attemptExplicitHydrationTarget(target); } }; -var isomorphicReactPackageVersion$jscomp$inline_1778 = React.version; +var isomorphicReactPackageVersion$jscomp$inline_1774 = React.version; if ( - "19.0.0-rc-1b1283ad-20241203" !== - isomorphicReactPackageVersion$jscomp$inline_1778 + "19.0.0-rc-de68d2f4-20241204" !== + isomorphicReactPackageVersion$jscomp$inline_1774 ) throw Error( formatProdErrorMessage( 527, - isomorphicReactPackageVersion$jscomp$inline_1778, - "19.0.0-rc-1b1283ad-20241203" + isomorphicReactPackageVersion$jscomp$inline_1774, + "19.0.0-rc-de68d2f4-20241204" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -15753,13 +15779,13 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { null === componentOrElement ? null : componentOrElement.stateNode; return componentOrElement; }; -var internals$jscomp$inline_1785 = { +var internals$jscomp$inline_1781 = { bundleType: 0, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, findFiberByHostInstance: getClosestInstanceFromNode, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203", + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$279 = 0; @@ -15777,16 +15803,16 @@ var internals$jscomp$inline_1785 = { } }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { - var hook$jscomp$inline_2222 = __REACT_DEVTOOLS_GLOBAL_HOOK__; + var hook$jscomp$inline_2215 = __REACT_DEVTOOLS_GLOBAL_HOOK__; if ( - !hook$jscomp$inline_2222.isDisabled && - hook$jscomp$inline_2222.supportsFiber + !hook$jscomp$inline_2215.isDisabled && + hook$jscomp$inline_2215.supportsFiber ) try { - (rendererID = hook$jscomp$inline_2222.inject( - internals$jscomp$inline_1785 + (rendererID = hook$jscomp$inline_2215.inject( + internals$jscomp$inline_1781 )), - (injectedHook = hook$jscomp$inline_2222); + (injectedHook = hook$jscomp$inline_2215); } catch (err) {} } function noop() {} @@ -16039,7 +16065,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js index af5776c9effc1..b31401fc9a9f1 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.development.js @@ -8570,5 +8570,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js index c5543f4bb8699..041212a49ebd4 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.browser.production.js @@ -5623,4 +5623,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js index a5481e8dbf676..658c5303ab2e5 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.development.js @@ -8570,5 +8570,5 @@ 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js index 92bb6f53fa043..7d525427b4a1c 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server-legacy.node.production.js @@ -5701,4 +5701,4 @@ exports.renderToString = function (children, options) { 'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToPipeableStream" which supports Suspense on the server' ); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js index cf2a59baa60a2..cd82e72a5167f 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.development.js @@ -7296,11 +7296,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8952,5 +8952,5 @@ startWork(request); }); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js index 8e8c362db4105..30f51fffa6a22 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.browser.production.js @@ -5956,12 +5956,12 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion, - "19.0.0-rc-1b1283ad-20241203" + "19.0.0-rc-de68d2f4-20241204" ) ); } @@ -6108,4 +6108,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js index a5d4252053bf0..91e4e59749cbb 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.bun.production.js @@ -5594,13 +5594,13 @@ function abort(request, reason) { } var isomorphicReactPackageVersion$jscomp$inline_731 = React.version; if ( - "19.0.0-rc-1b1283ad-20241203" !== + "19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion$jscomp$inline_731 ) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion$jscomp$inline_731 + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); exports.renderToReadableStream = function (children, options) { return new Promise(function (resolve, reject) { @@ -5691,4 +5691,4 @@ exports.renderToReadableStream = function (children, options) { startWork(request); }); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js index 2695480fc6fb7..726b4a109430e 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.development.js @@ -7319,11 +7319,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } var React = require("next/dist/compiled/react"), @@ -8982,5 +8982,5 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js index ad052e7f3d50a..81500ef7ee23b 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.edge.production.js @@ -6049,11 +6049,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6210,4 +6210,4 @@ const setTimeoutOrImmediate = ? globalThis['set' + 'Immediate'] : setTimeout; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js index ec51ee12b0aa1..40c4770688586 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.development.js @@ -7194,11 +7194,11 @@ } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } function createDrainHandler(destination, request) { @@ -8845,5 +8845,5 @@ } }; }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js index 7f12e63cd2f08..673927936eb32 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom-server.node.production.js @@ -5941,11 +5941,11 @@ function abort(request, reason) { } function ensureCorrectIsomorphicReactVersion() { var isomorphicReactPackageVersion = React.version; - if ("19.0.0-rc-1b1283ad-20241203" !== isomorphicReactPackageVersion) + if ("19.0.0-rc-de68d2f4-20241204" !== isomorphicReactPackageVersion) throw Error( 'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + - "\n - react-dom: 19.0.0-rc-1b1283ad-20241203\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.0.0-rc-de68d2f4-20241204\nLearn more: https://react.dev/warnings/version-mismatch") ); } ensureCorrectIsomorphicReactVersion(); @@ -6094,4 +6094,4 @@ exports.renderToPipeableStream = function (children, options) { } }; }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js index d71b93217affa..b2f510c580248 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.development.js @@ -416,7 +416,7 @@ exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js index 97d4ca5aa030f..2f3ec7bfe9365 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.production.js @@ -207,4 +207,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js index 2a816ad5d2615..5cbf1b16529e7 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.development.js @@ -336,5 +336,5 @@ })) : Internals.d.m(href)); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js index 90f2449a11d23..3668ad0e97791 100644 --- a/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js +++ b/packages/next/src/compiled/react-dom/cjs/react-dom.react-server.production.js @@ -149,4 +149,4 @@ exports.preloadModule = function (href, options) { }); } else Internals.d.m(href); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-dom/package.json b/packages/next/src/compiled/react-dom/package.json index 5d13dc7156d36..b7c5eadad991f 100644 --- a/packages/next/src/compiled/react-dom/package.json +++ b/packages/next/src/compiled/react-dom/package.json @@ -67,10 +67,10 @@ "./package.json": "./package.json" }, "dependencies": { - "scheduler": "0.25.0-rc-1b1283ad-20241203" + "scheduler": "0.25.0-rc-de68d2f4-20241204" }, "peerDependencies": { - "react": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204" }, "browser": { "./server.js": "./server.browser.js", diff --git a/packages/next/src/compiled/react-experimental/cjs/react.development.js b/packages/next/src/compiled/react-experimental/cjs/react.development.js index 2ad3eec81711d..34267a7bfba87 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.development.js @@ -1244,7 +1244,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react-experimental/cjs/react.production.js b/packages/next/src/compiled/react-experimental/cjs/react.production.js index ea396718bdee3..46d987df88556 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.production.js @@ -567,4 +567,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js index 9d1d554e7aee3..89528d981002c 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.development.js @@ -984,5 +984,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-experimental-1b1283ad-20241203"; + exports.version = "19.0.0-experimental-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js index 42d09a42eeef2..40427449e106f 100644 --- a/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react-experimental/cjs/react.react-server.production.js @@ -566,4 +566,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-experimental-1b1283ad-20241203"; +exports.version = "19.0.0-experimental-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react-is/package.json b/packages/next/src/compiled/react-is/package.json index d6ff109d30afd..efab22f2b9b78 100644 --- a/packages/next/src/compiled/react-is/package.json +++ b/packages/next/src/compiled/react-is/package.json @@ -1,6 +1,6 @@ { "name": "react-is", - "version": "19.0.0-rc-1b1283ad-20241203", + "version": "19.0.0-rc-de68d2f4-20241204", "description": "Brand checking of React Elements.", "main": "index.js", "sideEffects": false, diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js index b224e495a8523..08c5d137ec5f6 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2654,10 +2654,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203", + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json index 61f255508dec9..b0f838769a270 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack-experimental/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "0.0.0-experimental-1b1283ad-20241203", - "react-dom": "0.0.0-experimental-1b1283ad-20241203" + "react": "0.0.0-experimental-de68d2f4-20241204", + "react-dom": "0.0.0-experimental-de68d2f4-20241204" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js index 71575289c22ce..4da901c3be1d9 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-turbopack/cjs/react-server-dom-turbopack-client.browser.development.js @@ -2450,10 +2450,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-server-dom-turbopack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203", + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-turbopack/package.json b/packages/next/src/compiled/react-server-dom-turbopack/package.json index 291e37e5dfb88..e823a993a4646 100644 --- a/packages/next/src/compiled/react-server-dom-turbopack/package.json +++ b/packages/next/src/compiled/react-server-dom-turbopack/package.json @@ -48,7 +48,7 @@ "neo-async": "^2.6.1" }, "peerDependencies": { - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js index 378fe846b2e71..ee6832afbbd65 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/cjs/react-server-dom-webpack-client.browser.development.js @@ -2669,10 +2669,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-experimental-1b1283ad-20241203", + version: "19.0.0-experimental-de68d2f4-20241204", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-experimental-1b1283ad-20241203", + reconcilerVersion: "19.0.0-experimental-de68d2f4-20241204", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json index 4930dfa149afc..e2b9063392d30 100644 --- a/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack-experimental/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "0.0.0-experimental-1b1283ad-20241203", - "react-dom": "0.0.0-experimental-1b1283ad-20241203", + "react": "0.0.0-experimental-de68d2f4-20241204", + "react-dom": "0.0.0-experimental-de68d2f4-20241204", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js index b8e1c30832ca0..907298bfb15a2 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js +++ b/packages/next/src/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-client.browser.development.js @@ -2465,10 +2465,10 @@ return hook.checkDCE ? !0 : !1; })({ bundleType: 1, - version: "19.0.0-rc-1b1283ad-20241203", + version: "19.0.0-rc-de68d2f4-20241204", rendererPackageName: "react-server-dom-webpack", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.0.0-rc-1b1283ad-20241203", + reconcilerVersion: "19.0.0-rc-de68d2f4-20241204", getCurrentComponentInfo: function () { return currentOwnerInDEV; } diff --git a/packages/next/src/compiled/react-server-dom-webpack/package.json b/packages/next/src/compiled/react-server-dom-webpack/package.json index ecc87b61c0f97..d736a861079b7 100644 --- a/packages/next/src/compiled/react-server-dom-webpack/package.json +++ b/packages/next/src/compiled/react-server-dom-webpack/package.json @@ -64,8 +64,8 @@ "webpack-sources": "^3.2.0" }, "peerDependencies": { - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203", + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204", "webpack": "^5.59.0" } } \ No newline at end of file diff --git a/packages/next/src/compiled/react/cjs/react.development.js b/packages/next/src/compiled/react/cjs/react.development.js index cb2d20804f13f..6df9830ac533c 100644 --- a/packages/next/src/compiled/react/cjs/react.development.js +++ b/packages/next/src/compiled/react/cjs/react.development.js @@ -1518,7 +1518,7 @@ exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && diff --git a/packages/next/src/compiled/react/cjs/react.production.js b/packages/next/src/compiled/react/cjs/react.production.js index 292896d5a0232..3c29aa6e26498 100644 --- a/packages/next/src/compiled/react/cjs/react.production.js +++ b/packages/next/src/compiled/react/cjs/react.production.js @@ -540,4 +540,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/react/cjs/react.react-server.development.js b/packages/next/src/compiled/react/cjs/react.react-server.development.js index 0a0e508e9c359..05448f70545d3 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.development.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.development.js @@ -1110,5 +1110,5 @@ exports.useMemo = function (create, deps) { return resolveDispatcher().useMemo(create, deps); }; - exports.version = "19.0.0-rc-1b1283ad-20241203"; + exports.version = "19.0.0-rc-de68d2f4-20241204"; })(); diff --git a/packages/next/src/compiled/react/cjs/react.react-server.production.js b/packages/next/src/compiled/react/cjs/react.react-server.production.js index e3f25ac107b24..59043872b57d7 100644 --- a/packages/next/src/compiled/react/cjs/react.react-server.production.js +++ b/packages/next/src/compiled/react/cjs/react.react-server.production.js @@ -423,4 +423,4 @@ exports.useId = function () { exports.useMemo = function (create, deps) { return ReactSharedInternals.H.useMemo(create, deps); }; -exports.version = "19.0.0-rc-1b1283ad-20241203"; +exports.version = "19.0.0-rc-de68d2f4-20241204"; diff --git a/packages/next/src/compiled/unistore/unistore.js b/packages/next/src/compiled/unistore/unistore.js index 7984695b2578a..3f199f973dfdd 100644 --- a/packages/next/src/compiled/unistore/unistore.js +++ b/packages/next/src/compiled/unistore/unistore.js @@ -1 +1 @@ -(()=>{var t={973:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a{var t={850:t=>{function n(t,i){for(var _ in i)t[_]=i[_];return t}t.exports=function(t){var i=[];function u(t){for(var _=[],a=0;a=18'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -10457,7 +10457,7 @@ packages: lucide-react@0.383.0: resolution: {integrity: sha512-13xlG0CQCJtzjSQYwwJ3WRqMHtRj3EXmLlorrARt7y+IHnxUCp3XyFNL1DfaGySWxHObDvnu1u1dV+0VMKHUSg==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 lz-string@1.5.0: resolution: {integrity: sha512-h5bgJWpxJNswbU7qCrV0tIKQCaS3blPDrqKWx+QxzuzL1zGUzij9XCWLrSLsJPu5t+eWA/ycetzYAO5IOMcWAQ==} @@ -12654,28 +12654,28 @@ packages: resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==} hasBin: true - react-dom@0.0.0-experimental-1b1283ad-20241203: - resolution: {integrity: sha512-MkQFUds/6MqVL8qsKDw8uAhJQ4/Wu8WU87mgKfgqqHksg7Mn6rmFkavMnduDWcjwpwDVJSqIAmjXML4TK7DHKQ==} + react-dom@0.0.0-experimental-de68d2f4-20241204: + resolution: {integrity: sha512-brKfQ6Vi51B+Her8vuzTWrGCaKLQjCeyYfL5KpMntKuvOxDZyRoUPL1ViCiJEgeG6aiwCnstw72ik+S35mrjkw==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-dom@17.0.2: resolution: {integrity: sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 - react-dom@19.0.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-ogc7G4Blzf4jpLDqO0Ts8Vj/0f/w/5nBC/qDnJwx2Eidtamq/gjqdt7HcZwgMcyV5fCDBPqLBvMD3Rulck2TIA==} + react-dom@19.0.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-DrJ+o2bSvinvpQxBO49C8rDgkCshg/z4wU3P1RTAXzu2AgEqZwZqKQ8YJpHVNGEP7/4jg5FjJmuwPtzoNZpeIg==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-dom@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-oUa/reDvGtjRcxi8u+GYHaDHanudaO28+G+Wvxm50CItW1xwIFN2Nn7foJxxDS9lFLGdRWZvjxldZEPAUSuXbg==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 - react-is@19.0.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-QD0K3Ba1v3TvM+JkTGSHBjocYbky1kZhTjHxR3VeStjNqDlc6F5n4ZzU1ykXlR1LhnhlYiE5NX111enWrfXaPA==} + react-is@19.0.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-mQPqtGGK3jE0s3Rc8QGPUnqwiBQmorXx1YS15J17Tn3ZRVBvcR/B8IlN0lU+woEnvv+RyyU4dAufisE/s6JmDw==} react-is@19.0.0-rc-f90a6bcc-20240827: resolution: {integrity: sha512-1tXoLFzVbqHAQeY3CwpyF5IYbkwgSoNHhrhS8qOrfiZIh2461h/C1BP/JVIxwyL51wHhUgLsAc/M8g0OcEhV1A==} @@ -12686,8 +12686,8 @@ packages: react-number-format@5.4.0: resolution: {integrity: sha512-NWdICrqLhI7rAS8yUeLVd6Wr4cN7UjJ9IBTS0f/a9i7UB4x4Ti70kGnksBtZ7o4Z7YRbvCMMR/jQmkoOBa/4fg==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 react-refresh@0.12.0: resolution: {integrity: sha512-suLIhrU2IHKL5JEKR/fAwJv7bbeq4kJ+pJopf77jHwuR+HmJS/HbrPIGsTBUVfw7tXPOmYv7UJ7PCaN49e8x4A==} @@ -12698,7 +12698,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -12708,58 +12708,58 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true - react-server-dom-turbopack@0.0.0-experimental-1b1283ad-20241203: - resolution: {integrity: sha512-LAaPbg/3fJCSNbi/+XkVuLrupbaivyd5pnjavuho9YGH2BAvUvowflFJf2dnVaKodThQVYFJh6DJjgFggjharg==} + react-server-dom-turbopack@0.0.0-experimental-de68d2f4-20241204: + resolution: {integrity: sha512-9MagVbHqdIsnfHuN5y4zIZFwqI5cz4/JaW5DGXocJzOIeiut31R8zndtaQovErouHZ1nExvocHT3MH8HaTRkwg==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 - react-server-dom-turbopack@19.0.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-4I0EGmi2vTXHapQo7SdQ/9rpF2MOLFxlp108IQ/YvnTG+l77u76xvH9dvX908+g4MC2LzG8rU7Uu33uWWMMzIA==} + react-server-dom-turbopack@19.0.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-uqWV8sFi12tsSkrUwiowZHy/lqqyKdkA0JROrZUrWrPdBeVaHFpJNHLgxIZ3+kaxbKMxcbocctucVDhkZ9fsGA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 - react-server-dom-webpack@0.0.0-experimental-1b1283ad-20241203: - resolution: {integrity: sha512-j42sGmaTYMAQx38BragpnIeHPvt78sTP166W9EplHT1zZzyWc04WedU5/WBeNIdUrsvqAs0VfrV2NCtkI5LzwQ==} + react-server-dom-webpack@0.0.0-experimental-de68d2f4-20241204: + resolution: {integrity: sha512-lVnekaG8dxTU7ket3u4zg9A2tR9RuWhPrfMCmIKGZuzXv+s93BYhZ5jepgnF3k7iE9iovHFslzdQjrFqI13voA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 webpack: 5.96.1 - react-server-dom-webpack@19.0.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-sbAm0IVqtRWArxdJySRb0CkIwDrcRcULQI06Y5U2V33hvmWYJe+Ssx2HCR5ozHfXExaghLnhgHiGf+ywyqruaw==} + react-server-dom-webpack@19.0.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-TVFYCfdN9+HtUVb3t2e5kWymqBrM5jEMYSRyzhMudLmnHZDAiB4oTPQG4D8eb1KJglJwiALBJJ7e5Z7X0U00LA==} engines: {node: '>=0.10.0'} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 webpack: 5.96.1 react-shallow-renderer@16.15.0: resolution: {integrity: sha512-oScf2FqQ9LFVQgA73vr86xl2NaOIX73rh+YFqcOp68CWj56tSfgtGKrEbyhCj0rSijyG9M1CYprTh39fBi5hzA==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-ssr-prepass@1.0.8: resolution: {integrity: sha512-O0gfRA1SaK+9ITKxqfnXsej2jF+OHGP/+GxD4unROQaM/0/UczGF9fuF+wTboxaQoKdIf4FvS3h/OigWh704VA==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-is: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-is: 19.0.0-rc-de68d2f4-20241204 react-style-singleton@2.2.1: resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==} engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -12767,30 +12767,30 @@ packages: react-test-renderer@18.2.0: resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-textarea-autosize@8.5.3: resolution: {integrity: sha512-XT1024o2pqCuZSuBt9FwHlaDeNtVrtCXu0Rnz88t1jUGheCLa3PhjE1GH8Ctm2axEtvdCl5SUHYschyQ0L5QHQ==} engines: {node: '>=10'} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-virtualized@9.22.3: resolution: {integrity: sha512-MKovKMxWTcwPSxE1kK1HcheQTWfuCxAuBoSTf2gwyMM21NdX/PXUhnoP8Uc5dRKd+nKm8v41R36OellhdCpkrw==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 - react@0.0.0-experimental-1b1283ad-20241203: - resolution: {integrity: sha512-tpbPQSSMVesDhjzL2w4XKZy/201WhZbP63VVgCjrLpfPAFYeaAOgfMKtY+YyvKrqo1vFNFqZl1jVxMyFGQo7MQ==} + react@0.0.0-experimental-de68d2f4-20241204: + resolution: {integrity: sha512-7edC9vkyrXKZkRnvYR57I+87kAZyGrfjqiXa7NQf4jTxdZRu7GIDFpKvQjpxrIQGkLmk6qGiQ+52ilLIAcQdfw==} engines: {node: '>=0.10.0'} react@17.0.2: resolution: {integrity: sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA==} engines: {node: '>=0.10.0'} - react@19.0.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-KuX92IV5rUubmEASZPp5Prrd3lmdkXEJoREqeBvgUiPUL6UPVSN3rabO8nxBdEOCKvKAii6aO5WltdBlZZhK5A==} + react@19.0.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-bEE63RAe0Leh2BYkaPjwzEYqqfYo+PzICvRNRplR3Q5NJzH8fUe3yApqzvu2qeFQXVEo7/yNel5IdKBqTtAYfg==} engines: {node: '>=0.10.0'} react@19.0.0-rc-f90a6bcc-20240827: @@ -13310,11 +13310,11 @@ packages: resolution: {integrity: sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==} engines: {node: '>=v12.22.7'} - scheduler@0.0.0-experimental-1b1283ad-20241203: - resolution: {integrity: sha512-hzlIgfnQO2xwI5rdOd22wK6sRp9J3UL3qATy6wHycA9GyhFCAdlbv6MQqpoxfEbb9HD8xpnU7zlTWcx2w84n3w==} + scheduler@0.0.0-experimental-de68d2f4-20241204: + resolution: {integrity: sha512-e/DvdISOmqk+OYivsdyBhFclFM4FviuDZ7PRDnQRKWmkyLoX4GNH6CkTSTEJu0n/iyNdm4Hjqn6KQi6gLhl2Ew==} - scheduler@0.25.0-rc-1b1283ad-20241203: - resolution: {integrity: sha512-k9jT1voUQ8xohJwfrObQfHvQ0T9TEnusVYrXJR8ZcDDAJxlrxlQGUUlF6POZrkPMbIwKwOuoZig2vIAwPxI9cw==} + scheduler@0.25.0-rc-de68d2f4-20241204: + resolution: {integrity: sha512-kIA/yZOHbaauorXX0FzrE1dXrNyNsJD6WzPsfoIMjlrdcBkzo8Y8nVRVFSpQEt6SaoHcKNGqLPUtQq+nIY8C2g==} schema-utils@2.7.1: resolution: {integrity: sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==} @@ -13859,8 +13859,8 @@ packages: engines: {node: '>= 16'} peerDependencies: babel-plugin-styled-components: '>= 2' - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: babel-plugin-styled-components: optional: true @@ -13874,7 +13874,7 @@ packages: peerDependencies: '@babel/core': '*' babel-plugin-macros: '*' - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@babel/core': optional: true @@ -13948,7 +13948,7 @@ packages: swr@2.2.4: resolution: {integrity: sha512-njiZ/4RiIhoOlAaLYDqwz5qH/KZXVilRLvomrx83HjzCWTfa+InyfAjv05PSFxnmLzZkNO9ZfvgoqzAaEI4sGQ==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 symbol-observable@1.0.1: resolution: {integrity: sha512-Kb3PrPYz4HanVF1LVGuAdW6LoVgIwjUYJGzFe7NDrBLCN4lsV/5J0MFurV+ygS4bRVwrCEt2c7MQ1R2a72oJDw==} @@ -14659,7 +14659,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -14667,13 +14667,13 @@ packages: use-composed-ref@1.3.0: resolution: {integrity: sha512-GLMG0Jc/jiKov/3Ulid1wbv3r54K9HlMW29IWcDFPEqFkSO2nS0MuefWgMJpeHQ9YJeXDL3ZUF+P3jdXlZX/cQ==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 use-isomorphic-layout-effect@1.1.2: resolution: {integrity: sha512-49L8yCO3iGT/ZF9QttjwLF/ZD9Iwto5LnH5LmEdk/6cFmXddqi2ulF0edxTwjj+7mqvpVVGQWvbXZdn32wRSHA==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -14682,7 +14682,7 @@ packages: resolution: {integrity: sha512-xA+AVm/Wlg3e2P/JiItTziwS7FK92LWrDB0p+hgXloIMuVCeJJ8v6f0eeHyPZaJrM+usM1FkFfbNCrJGs8A/zw==} peerDependencies: '@types/react': '*' - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -14692,7 +14692,7 @@ packages: engines: {node: '>=10'} peerDependencies: '@types/react': npm:types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 peerDependenciesMeta: '@types/react': optional: true @@ -14700,7 +14700,7 @@ packages: use-sync-external-store@1.2.0: resolution: {integrity: sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==} peerDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} @@ -17342,17 +17342,17 @@ snapshots: '@emotion/memoize@0.8.1': {} - '@emotion/react@11.11.1(react@19.0.0-rc-1b1283ad-20241203)(types-react@19.0.0-rc.0)': + '@emotion/react@11.11.1(react@19.0.0-rc-de68d2f4-20241204)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@emotion/babel-plugin': 11.11.0 '@emotion/cache': 11.11.0 '@emotion/serialize': 1.1.2 - '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-1b1283ad-20241203) + '@emotion/use-insertion-effect-with-fallbacks': 1.0.1(react@19.0.0-rc-de68d2f4-20241204) '@emotion/utils': 1.2.1 '@emotion/weak-memoize': 0.3.1 hoist-non-react-statics: 3.3.2 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 optionalDependencies: '@types/react': types-react@19.0.0-rc.0 transitivePeerDependencies: @@ -17370,9 +17370,9 @@ snapshots: '@emotion/unitless@0.8.1': {} - '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-1b1283ad-20241203)': + '@emotion/use-insertion-effect-with-fallbacks@1.0.1(react@19.0.0-rc-de68d2f4-20241204)': dependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 '@emotion/utils@1.2.1': {} @@ -18760,11 +18760,11 @@ snapshots: transitivePeerDependencies: - supports-color - '@mdx-js/react@2.2.1(react@19.0.0-rc-1b1283ad-20241203)': + '@mdx-js/react@2.2.1(react@19.0.0-rc-de68d2f4-20241204)': dependencies: '@types/mdx': 2.0.3 '@types/react': types-react@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 '@mdx-js/react@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)': dependencies: @@ -19473,13 +19473,13 @@ snapshots: '@types/jest': 29.5.5 jest: 29.7.0(@types/node@20.17.6)(babel-plugin-macros@3.1.0) - '@testing-library/react@15.0.7(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203)(types-react@19.0.0-rc.0)': + '@testing-library/react@15.0.7(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204)(types-react@19.0.0-rc.0)': dependencies: '@babel/runtime': 7.22.5 '@testing-library/dom': 10.1.0 '@types/react-dom': types-react-dom@19.0.0-rc.0 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) optionalDependencies: '@types/react': types-react@19.0.0-rc.0 @@ -24578,7 +24578,7 @@ snapshots: hoist-non-react-statics@3.3.2: dependencies: - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 homedir-polyfill@1.0.3: dependencies: @@ -28670,25 +28670,25 @@ snapshots: '@jest/types': 24.9.0 ansi-regex: 4.1.0 ansi-styles: 3.2.1 - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 pretty-format@27.5.1: dependencies: ansi-regex: 5.0.1 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 pretty-format@29.5.0: dependencies: '@jest/schemas': 29.4.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 pretty-format@29.7.0: dependencies: '@jest/schemas': 29.6.3 ansi-styles: 5.2.0 - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 pretty-ms@7.0.0: dependencies: @@ -28745,7 +28745,7 @@ snapshots: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react-is: 19.0.0-rc-1b1283ad-20241203 + react-is: 19.0.0-rc-de68d2f4-20241204 property-information@5.6.0: dependencies: @@ -28909,29 +28909,29 @@ snapshots: minimist: 1.2.8 strip-json-comments: 2.0.1 - react-dom@0.0.0-experimental-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203): + react-dom@0.0.0-experimental-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204): dependencies: - react: 19.0.0-rc-1b1283ad-20241203 - scheduler: 0.25.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + scheduler: 0.25.0-rc-de68d2f4-20241204 - react-dom@17.0.2(react@19.0.0-rc-1b1283ad-20241203): + react-dom@17.0.2(react@19.0.0-rc-de68d2f4-20241204): dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react: 19.0.0-rc-1b1283ad-20241203 - scheduler: 0.25.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + scheduler: 0.25.0-rc-de68d2f4-20241204 - react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203): + react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204): dependencies: - react: 19.0.0-rc-1b1283ad-20241203 - scheduler: 0.25.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + scheduler: 0.25.0-rc-de68d2f4-20241204 react-dom@19.0.0-rc-f90a6bcc-20240827(react@19.0.0-rc-f90a6bcc-20240827): dependencies: react: 19.0.0-rc-f90a6bcc-20240827 - scheduler: 0.25.0-rc-1b1283ad-20241203 + scheduler: 0.25.0-rc-de68d2f4-20241204 - react-is@19.0.0-rc-1b1283ad-20241203: {} + react-is@19.0.0-rc-de68d2f4-20241204: {} react-is@19.0.0-rc-f90a6bcc-20240827: {} @@ -28964,48 +28964,48 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-server-dom-turbopack@0.0.0-experimental-1b1283ad-20241203(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203): + react-server-dom-turbopack@0.0.0-experimental-de68d2f4-20241204(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) - react-server-dom-turbopack@19.0.0-rc-1b1283ad-20241203(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203): + react-server-dom-turbopack@19.0.0-rc-de68d2f4-20241204(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) - react-server-dom-webpack@0.0.0-experimental-1b1283ad-20241203(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203)(webpack@5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15))): + react-server-dom-webpack@0.0.0-experimental-de68d2f4-20241204(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204)(webpack@5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) webpack: 5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-server-dom-webpack@19.0.0-rc-1b1283ad-20241203(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203)(webpack@5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15))): + react-server-dom-webpack@19.0.0-rc-de68d2f4-20241204(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204)(webpack@5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15))): dependencies: acorn-loose: 8.3.0 neo-async: 2.6.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) webpack: 5.96.1(@swc/core@1.9.3(@swc/helpers@0.5.15)) webpack-sources: 3.2.3(patch_hash=jbynf5dc46ambamq3wuyho6hkq) - react-shallow-renderer@16.15.0(react@19.0.0-rc-1b1283ad-20241203): + react-shallow-renderer@16.15.0(react@19.0.0-rc-de68d2f4-20241204): dependencies: object-assign: 4.1.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-is: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-is: 19.0.0-rc-de68d2f4-20241204 - react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-1b1283ad-20241203): + react-ssr-prepass@1.0.8(react-is@19.0.0-rc-f90a6bcc-20240827)(react@19.0.0-rc-de68d2f4-20241204): dependencies: object-is: 1.0.2 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 react-is: 19.0.0-rc-f90a6bcc-20240827 react-style-singleton@2.2.1(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): @@ -29017,12 +29017,12 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - react-test-renderer@18.2.0(react@19.0.0-rc-1b1283ad-20241203): + react-test-renderer@18.2.0(react@19.0.0-rc-de68d2f4-20241204): dependencies: - react: 19.0.0-rc-1b1283ad-20241203 - react-is: 19.0.0-rc-1b1283ad-20241203 - react-shallow-renderer: 16.15.0(react@19.0.0-rc-1b1283ad-20241203) - scheduler: 0.25.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 + react-is: 19.0.0-rc-de68d2f4-20241204 + react-shallow-renderer: 16.15.0(react@19.0.0-rc-de68d2f4-20241204) + scheduler: 0.25.0-rc-de68d2f4-20241204 react-textarea-autosize@8.5.3(react@19.0.0-rc-f90a6bcc-20240827)(types-react@19.0.0-rc.0): dependencies: @@ -29033,25 +29033,25 @@ snapshots: transitivePeerDependencies: - '@types/react' - react-virtualized@9.22.3(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203): + react-virtualized@9.22.3(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204): dependencies: '@babel/runtime': 7.22.5 clsx: 1.1.1 dom-helpers: 5.2.1 loose-envify: 1.4.0 prop-types: 15.8.1 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) react-lifecycles-compat: 3.0.4 - react@0.0.0-experimental-1b1283ad-20241203: {} + react@0.0.0-experimental-de68d2f4-20241204: {} react@17.0.2: dependencies: loose-envify: 1.4.0 object-assign: 4.1.1 - react@19.0.0-rc-1b1283ad-20241203: {} + react@19.0.0-rc-de68d2f4-20241204: {} react@19.0.0-rc-f90a6bcc-20240827: {} @@ -29754,9 +29754,9 @@ snapshots: dependencies: xmlchars: 2.2.0 - scheduler@0.0.0-experimental-1b1283ad-20241203: {} + scheduler@0.0.0-experimental-de68d2f4-20241204: {} - scheduler@0.25.0-rc-1b1283ad-20241203: {} + scheduler@0.25.0-rc-de68d2f4-20241204: {} schema-utils@2.7.1: dependencies: @@ -30363,7 +30363,7 @@ snapshots: dependencies: inline-style-parser: 0.1.1 - styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203))(react@19.0.0-rc-1b1283ad-20241203): + styled-components@6.0.0-rc.3(react-dom@19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204))(react@19.0.0-rc-de68d2f4-20241204): dependencies: '@babel/cli': 7.21.5(@babel/core@7.22.5) '@babel/core': 7.22.5 @@ -30378,8 +30378,8 @@ snapshots: '@emotion/unitless': 0.8.1 css-to-react-native: 3.2.0 postcss: 8.4.31 - react: 19.0.0-rc-1b1283ad-20241203 - react-dom: 19.0.0-rc-1b1283ad-20241203(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + react-dom: 19.0.0-rc-de68d2f4-20241204(react@19.0.0-rc-de68d2f4-20241204) shallowequal: 1.1.0 stylis: 4.2.0 tslib: 2.5.3 @@ -30391,10 +30391,10 @@ snapshots: postcss: 7.0.32 postcss-load-plugins: 2.3.0 - styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-1b1283ad-20241203): + styled-jsx@5.1.6(@babel/core@7.22.5)(babel-plugin-macros@3.1.0)(react@19.0.0-rc-de68d2f4-20241204): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 optionalDependencies: '@babel/core': 7.22.5 babel-plugin-macros: 3.1.0 @@ -30482,11 +30482,11 @@ snapshots: csso: 5.0.5 picocolors: 1.0.1 - swr@2.2.4(react@19.0.0-rc-1b1283ad-20241203): + swr@2.2.4(react@19.0.0-rc-de68d2f4-20241204): dependencies: client-only: 0.0.1 - react: 19.0.0-rc-1b1283ad-20241203 - use-sync-external-store: 1.2.0(react@19.0.0-rc-1b1283ad-20241203) + react: 19.0.0-rc-de68d2f4-20241204 + use-sync-external-store: 1.2.0(react@19.0.0-rc-de68d2f4-20241204) symbol-observable@1.0.1: {} @@ -31147,9 +31147,9 @@ snapshots: unist-util-is: 5.2.0 unist-util-visit-parents: 5.1.3 - unistore@3.4.1(react@19.0.0-rc-1b1283ad-20241203): + unistore@3.4.1(react@19.0.0-rc-de68d2f4-20241204): optionalDependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 universal-github-app-jwt@1.1.1: dependencies: @@ -31265,9 +31265,9 @@ snapshots: optionalDependencies: '@types/react': types-react@19.0.0-rc.0 - use-sync-external-store@1.2.0(react@19.0.0-rc-1b1283ad-20241203): + use-sync-external-store@1.2.0(react@19.0.0-rc-de68d2f4-20241204): dependencies: - react: 19.0.0-rc-1b1283ad-20241203 + react: 19.0.0-rc-de68d2f4-20241204 util-deprecate@1.0.2: {} diff --git a/run-tests.js b/run-tests.js index e9ad7eddf6534..91f9acb5941a3 100644 --- a/run-tests.js +++ b/run-tests.js @@ -20,7 +20,7 @@ const { getTestFilter } = require('./test/get-test-filter') // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-1b1283ad-20241203"; +const nextjsReactPeerVersion = "19.0.0-rc-de68d2f4-20241204"; let argv = require('yargs/yargs')(process.argv.slice(2)) .string('type') diff --git a/test/.stats-app/package.json b/test/.stats-app/package.json index ef36dd321ac54..39ce586d6d581 100644 --- a/test/.stats-app/package.json +++ b/test/.stats-app/package.json @@ -4,8 +4,8 @@ "license": "MIT", "dependencies": { "next": "latest", - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204" }, "engines": { "node": ">=18.18.0" diff --git a/test/e2e/next-test/first-time-setup-js/package.json b/test/e2e/next-test/first-time-setup-js/package.json index 0f2d98edf1aaf..561fad6314681 100644 --- a/test/e2e/next-test/first-time-setup-js/package.json +++ b/test/e2e/next-test/first-time-setup-js/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204" } } diff --git a/test/e2e/next-test/first-time-setup-ts/package.json b/test/e2e/next-test/first-time-setup-ts/package.json index ac01679c66d54..755753b4d09ba 100644 --- a/test/e2e/next-test/first-time-setup-ts/package.json +++ b/test/e2e/next-test/first-time-setup-ts/package.json @@ -8,8 +8,8 @@ }, "dependencies": { "next": "canary", - "react": "19.0.0-rc-1b1283ad-20241203", - "react-dom": "19.0.0-rc-1b1283ad-20241203" + "react": "19.0.0-rc-de68d2f4-20241204", + "react-dom": "19.0.0-rc-de68d2f4-20241204" }, "devDependencies": { "@types/react": "^18", diff --git a/test/lib/next-modes/base.ts b/test/lib/next-modes/base.ts index 0aa430d592072..e8947150e50f0 100644 --- a/test/lib/next-modes/base.ts +++ b/test/lib/next-modes/base.ts @@ -52,7 +52,7 @@ type OmitFirstArgument = F extends ( // Do not rename or format. sync-react script relies on this line. // prettier-ignore -const nextjsReactPeerVersion = "19.0.0-rc-1b1283ad-20241203"; +const nextjsReactPeerVersion = "19.0.0-rc-de68d2f4-20241204"; export class NextInstance { protected files: FileRef | { [filename: string]: string | FileRef }