diff --git a/package.json b/package.json
index 4045eb4bd4f68..b2f5809186e40 100644
--- a/package.json
+++ b/package.json
@@ -203,12 +203,12 @@
"react-dom": "19.0.0-beta-04b058868c-20240508",
"react-dom-17": "npm:react-dom@17.0.2",
"react-dom-builtin": "npm:react-dom@19.0.0-beta-04b058868c-20240508",
- "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-4508873393-20240430",
- "react-experimental-builtin": "npm:react@0.0.0-experimental-4508873393-20240430",
+ "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-04b058868c-20240508",
+ "react-experimental-builtin": "npm:react@0.0.0-experimental-04b058868c-20240508",
"react-server-dom-turbopack": "19.0.0-beta-04b058868c-20240508",
- "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-4508873393-20240430",
+ "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-04b058868c-20240508",
"react-server-dom-webpack": "19.0.0-beta-04b058868c-20240508",
- "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-4508873393-20240430",
+ "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-04b058868c-20240508",
"react-ssr-prepass": "1.0.8",
"react-virtualized": "9.22.3",
"relay-compiler": "13.0.2",
@@ -218,8 +218,8 @@
"resolve-from": "5.0.0",
"sass": "1.54.0",
"satori": "0.10.9",
- "scheduler-builtin": "npm:scheduler@0.25.0-beta-4508873393-20240430",
- "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-4508873393-20240430",
+ "scheduler-builtin": "npm:scheduler@0.25.0-beta-04b058868c-20240508",
+ "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-04b058868c-20240508",
"seedrandom": "3.0.5",
"semver": "7.3.7",
"shell-quote": "1.7.3",
@@ -256,7 +256,7 @@
"react": "19.0.0-beta-04b058868c-20240508",
"react-dom": "19.0.0-beta-04b058868c-20240508",
"react-is": "19.0.0-beta-04b058868c-20240508",
- "scheduler": "0.25.0-beta-94eed63c49-20240425"
+ "scheduler": "0.25.0-beta-04b058868c-20240508"
},
"engines": {
"node": ">=18.17.0",
diff --git a/packages/next/package.json b/packages/next/package.json
index c16bdc8138550..aa52ee05a49b7 100644
--- a/packages/next/package.json
+++ b/packages/next/package.json
@@ -105,8 +105,8 @@
"@opentelemetry/api": "^1.1.0",
"@playwright/test": "^1.41.2",
"babel-plugin-react-compiler": "*",
- "react": "^19.0.0-0",
- "react-dom": "^19.0.0-0",
+ "react": "19.0.0-beta-04b058868c-20240508",
+ "react-dom": "19.0.0-beta-04b058868c-20240508",
"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 56ad0950abf4a..355746f3d2aed 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
@@ -12,10 +12,7 @@
if (process.env.NODE_ENV !== "production") {
(function() {
-
- 'use strict';
-
-/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
+'use strict';
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
@@ -23,7 +20,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
- var React = require("next/dist/compiled/react-experimental");
+var React = require("next/dist/compiled/react-experimental");
var Scheduler = require("next/dist/compiled/scheduler-experimental");
var ReactDOM = require('react-dom');
@@ -8784,6 +8781,11 @@ function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEve
var temp = submitter.ownerDocument.createElement('input');
temp.name = submitter.name;
temp.value = submitter.value;
+
+ if (form.id) {
+ temp.setAttribute('form', form.id);
+ }
+
submitter.parentNode.insertBefore(temp, submitter);
formData = new FormData(form);
temp.parentNode.removeChild(temp);
@@ -36167,7 +36169,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
-var ReactVersion = '19.0.0-experimental-4508873393-20240430';
+var ReactVersion = '19.0.0-experimental-04b058868c-20240508';
// Might add PROFILE later.
@@ -37667,7 +37669,6 @@ var foundDevTools = injectIntoDevTools({
exports.createRoot = createRoot;
exports.hydrateRoot = hydrateRoot;
exports.version = ReactVersion;
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
@@ -37675,6 +37676,6 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
-
+
})();
}
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 5dd6ba6969213..1f75c262ceee2 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
@@ -2292,6 +2292,8 @@ function extractEvents$1(
var temp = submitter.ownerDocument.createElement("input");
temp.name = submitter.name;
temp.value = submitter.value;
+ nativeEventTarget.id &&
+ temp.setAttribute("form", nativeEventTarget.id);
submitter.parentNode.insertBefore(temp, submitter);
var formData = new FormData(nativeEventTarget);
temp.parentNode.removeChild(temp);
@@ -14696,7 +14698,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
var devToolsConfig$jscomp$inline_1621 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
- version: "19.0.0-experimental-4508873393-20240430",
+ version: "19.0.0-experimental-04b058868c-20240508",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_1999 = {
@@ -14726,7 +14728,7 @@ var internals$jscomp$inline_1999 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
- reconcilerVersion: "19.0.0-experimental-4508873393-20240430"
+ reconcilerVersion: "19.0.0-experimental-04b058868c-20240508"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2000 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -14832,4 +14834,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
-exports.version = "19.0.0-experimental-4508873393-20240430";
+exports.version = "19.0.0-experimental-04b058868c-20240508";
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 50e824c12877e..d925dc50635d9 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
@@ -12,10 +12,7 @@
if (process.env.NODE_ENV !== "production") {
(function() {
-
- 'use strict';
-
-/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
+'use strict';
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
@@ -23,7 +20,7 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
}
- var React = require("next/dist/compiled/react-experimental");
+var React = require("next/dist/compiled/react-experimental");
var Scheduler = require("next/dist/compiled/scheduler-experimental");
var ReactDOM = require('react-dom');
@@ -8832,6 +8829,11 @@ function extractEvents$1(dispatchQueue, domEventName, maybeTargetInst, nativeEve
var temp = submitter.ownerDocument.createElement('input');
temp.name = submitter.name;
temp.value = submitter.value;
+
+ if (form.id) {
+ temp.setAttribute('form', form.id);
+ }
+
submitter.parentNode.insertBefore(temp, submitter);
formData = new FormData(form);
temp.parentNode.removeChild(temp);
@@ -36215,7 +36217,7 @@ identifierPrefix, onUncaughtError, onCaughtError, onRecoverableError, transition
return root;
}
-var ReactVersion = '19.0.0-experimental-4508873393-20240430';
+var ReactVersion = '19.0.0-experimental-04b058868c-20240508';
function createPortal$1(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
implementation) {
@@ -38121,7 +38123,6 @@ exports.unstable_batchedUpdates = batchedUpdates;
exports.useFormState = useFormState;
exports.useFormStatus = useFormStatus;
exports.version = ReactVersion;
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
@@ -38129,6 +38130,6 @@ if (
) {
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
}
-
+
})();
}
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 7b251c79e2cae..d932d63cbc27a 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
@@ -2414,6 +2414,8 @@ function extractEvents$1(
var temp = submitter.ownerDocument.createElement("input");
temp.name = submitter.name;
temp.value = submitter.value;
+ nativeEventTarget.id &&
+ temp.setAttribute("form", nativeEventTarget.id);
submitter.parentNode.insertBefore(temp, submitter);
var formData = new FormData(nativeEventTarget);
temp.parentNode.removeChild(temp);
@@ -15407,7 +15409,7 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
var devToolsConfig$jscomp$inline_1708 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
- version: "19.0.0-experimental-4508873393-20240430",
+ version: "19.0.0-experimental-04b058868c-20240508",
rendererPackageName: "react-dom"
};
(function (internals) {
@@ -15450,7 +15452,7 @@ var devToolsConfig$jscomp$inline_1708 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
- reconcilerVersion: "19.0.0-experimental-4508873393-20240430"
+ reconcilerVersion: "19.0.0-experimental-04b058868c-20240508"
});
function noop() {}
function getCrossOriginStringAs(as, input) {
@@ -15704,7 +15706,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
-exports.version = "19.0.0-experimental-4508873393-20240430";
+exports.version = "19.0.0-experimental-04b058868c-20240508";
"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 d9189546f1663..4360146ead0d5 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
@@ -17,7 +17,7 @@ if (process.env.NODE_ENV !== "production") {
var React = require("next/dist/compiled/react-experimental");
var ReactDOM = require('react-dom');
-var ReactVersion = '19.0.0-experimental-4508873393-20240430';
+var ReactVersion = '19.0.0-experimental-04b058868c-20240508';
var ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
@@ -2565,11 +2565,7 @@ var startHiddenInputChunk = stringToPrecomputedChunk('");
}
+function validateAdditionalFormField(value) {
+ if ("string" !== typeof value) throw Error(formatProdErrorMessage(480));
+}
function getCustomFormFields(resumableState, formAction) {
if ("function" === typeof formAction.$$FORM_ACTION) {
var id = resumableState.nextFormID++;
resumableState = resumableState.idPrefix + id;
try {
- return formAction.$$FORM_ACTION(resumableState);
+ var customFields = formAction.$$FORM_ACTION(resumableState);
+ if (customFields) {
+ var formData = customFields.data;
+ null != formData && formData.forEach(validateAdditionalFormField);
+ }
+ return customFields;
} catch (x) {
if ("object" === typeof x && null !== x && "function" === typeof x.then)
throw x;
@@ -2618,16 +2626,16 @@ function createRenderState(resumableState, generateStaticMarkup) {
"\x3c/script>"
);
bootstrapScriptContent = idPrefix + "P:";
- var JSCompiler_object_inline_segmentPrefix_1686 = idPrefix + "S:";
+ var JSCompiler_object_inline_segmentPrefix_1688 = idPrefix + "S:";
idPrefix += "B:";
- var JSCompiler_object_inline_preconnects_1700 = new Set(),
- JSCompiler_object_inline_fontPreloads_1701 = new Set(),
- JSCompiler_object_inline_highImagePreloads_1702 = new Set(),
- JSCompiler_object_inline_styles_1703 = new Map(),
- JSCompiler_object_inline_bootstrapScripts_1704 = new Set(),
- JSCompiler_object_inline_scripts_1705 = new Set(),
- JSCompiler_object_inline_bulkPreloads_1706 = new Set(),
- JSCompiler_object_inline_preloads_1707 = {
+ var JSCompiler_object_inline_preconnects_1702 = new Set(),
+ JSCompiler_object_inline_fontPreloads_1703 = new Set(),
+ JSCompiler_object_inline_highImagePreloads_1704 = new Set(),
+ JSCompiler_object_inline_styles_1705 = new Map(),
+ JSCompiler_object_inline_bootstrapScripts_1706 = new Set(),
+ JSCompiler_object_inline_scripts_1707 = new Set(),
+ JSCompiler_object_inline_bulkPreloads_1708 = new Set(),
+ JSCompiler_object_inline_preloads_1709 = {
images: new Map(),
stylesheets: new Map(),
scripts: new Map(),
@@ -2664,7 +2672,7 @@ function createRenderState(resumableState, generateStaticMarkup) {
scriptConfig.moduleScriptResources[href] = null;
scriptConfig = [];
pushLinkImpl(scriptConfig, props);
- JSCompiler_object_inline_bootstrapScripts_1704.add(scriptConfig);
+ JSCompiler_object_inline_bootstrapScripts_1706.add(scriptConfig);
bootstrapChunks.push('