From d674a96646506c2fbd61751d64c09627515169f1 Mon Sep 17 00:00:00 2001 From: Josh Story Date: Mon, 25 Mar 2024 14:07:20 -0700 Subject: [PATCH] Update React from 14898b6a9 to e373190fa - https://github.com/facebook/react/pull/28596 - https://github.com/facebook/react/pull/28625 - https://github.com/facebook/react/pull/28616 - https://github.com/facebook/react/pull/28491 - https://github.com/facebook/react/pull/28583 - https://github.com/facebook/react/pull/28427 - https://github.com/facebook/react/pull/28613 - https://github.com/facebook/react/pull/28599 - https://github.com/facebook/react/pull/28611 - https://github.com/facebook/react/pull/28610 - https://github.com/facebook/react/pull/28606 - https://github.com/facebook/react/pull/28598 - https://github.com/facebook/react/pull/28549 - https://github.com/facebook/react/pull/28557 - https://github.com/facebook/react/pull/28467 - https://github.com/facebook/react/pull/28591 - https://github.com/facebook/react/pull/28459 - https://github.com/facebook/react/pull/28590 - https://github.com/facebook/react/pull/28564 - https://github.com/facebook/react/pull/28582 - https://github.com/facebook/react/pull/28579 - https://github.com/facebook/react/pull/28578 - https://github.com/facebook/react/pull/28521 - https://github.com/facebook/react/pull/28550 - https://github.com/facebook/react/pull/28576 - https://github.com/facebook/react/pull/28577 - https://github.com/facebook/react/pull/28571 - https://github.com/facebook/react/pull/28572 - https://github.com/facebook/react/pull/28560 - https://github.com/facebook/react/pull/28569 - https://github.com/facebook/react/pull/28573 - https://github.com/facebook/react/pull/28546 - https://github.com/facebook/react/pull/28568 - https://github.com/facebook/react/pull/28562 - https://github.com/facebook/react/pull/28566 - https://github.com/facebook/react/pull/28565 - https://github.com/facebook/react/pull/28559 - https://github.com/facebook/react/pull/28508 - https://github.com/facebook/react/pull/20432 - https://github.com/facebook/react/pull/28555 - https://github.com/facebook/react/pull/24730 - https://github.com/facebook/react/pull/28472 - https://github.com/facebook/react/pull/27991 - https://github.com/facebook/react/pull/28514 - https://github.com/facebook/react/pull/28548 - https://github.com/facebook/react/pull/28526 - https://github.com/facebook/react/pull/28515 - https://github.com/facebook/react/pull/28533 - https://github.com/facebook/react/pull/28532 - https://github.com/facebook/react/pull/28531 - https://github.com/facebook/react/pull/28407 - https://github.com/facebook/react/pull/28522 - https://github.com/facebook/react/pull/28538 - https://github.com/facebook/react/pull/28509 - https://github.com/facebook/react/pull/28534 - https://github.com/facebook/react/pull/28527 - https://github.com/facebook/react/pull/28528 - https://github.com/facebook/react/pull/28519 - https://github.com/facebook/react/pull/28411 - https://github.com/facebook/react/pull/28520 - https://github.com/facebook/react/pull/28518 - https://github.com/facebook/react/pull/28493 - https://github.com/facebook/react/pull/28504 - https://github.com/facebook/react/pull/28499 - https://github.com/facebook/react/pull/28501 - https://github.com/facebook/react/pull/28496 - https://github.com/facebook/react/pull/28471 - https://github.com/facebook/react/pull/28351 - https://github.com/facebook/react/pull/28486 - https://github.com/facebook/react/pull/28490 - https://github.com/facebook/react/pull/28488 - https://github.com/facebook/react/pull/28468 - https://github.com/facebook/react/pull/28321 - https://github.com/facebook/react/pull/28477 - https://github.com/facebook/react/pull/28479 - https://github.com/facebook/react/pull/28480 - https://github.com/facebook/react/pull/28478 - https://github.com/facebook/react/pull/28464 - https://github.com/facebook/react/pull/28475 - https://github.com/facebook/react/pull/28456 - https://github.com/facebook/react/pull/28319 - https://github.com/facebook/react/pull/28345 - https://github.com/facebook/react/pull/28337 - https://github.com/facebook/react/pull/28335 - https://github.com/facebook/react/pull/28466 - https://github.com/facebook/react/pull/28462 - https://github.com/facebook/react/pull/28322 - https://github.com/facebook/react/pull/28444 - https://github.com/facebook/react/pull/28448 - https://github.com/facebook/react/pull/28449 - https://github.com/facebook/react/pull/28446 - https://github.com/facebook/react/pull/28447 - https://github.com/facebook/react/pull/24580 - https://github.com/facebook/react/pull/28514 - https://github.com/facebook/react/pull/28548 - https://github.com/facebook/react/pull/28526 - https://github.com/facebook/react/pull/28515 - https://github.com/facebook/react/pull/28533 - https://github.com/facebook/react/pull/28532 - https://github.com/facebook/react/pull/28531 - https://github.com/facebook/react/pull/28407 - https://github.com/facebook/react/pull/28522 - https://github.com/facebook/react/pull/28538 - https://github.com/facebook/react/pull/28509 - https://github.com/facebook/react/pull/28534 - https://github.com/facebook/react/pull/28527 - https://github.com/facebook/react/pull/28528 - https://github.com/facebook/react/pull/28519 - https://github.com/facebook/react/pull/28411 - https://github.com/facebook/react/pull/28520 - https://github.com/facebook/react/pull/28518 - https://github.com/facebook/react/pull/28493 - https://github.com/facebook/react/pull/28504 - https://github.com/facebook/react/pull/28499 - https://github.com/facebook/react/pull/28501 - https://github.com/facebook/react/pull/28496 - https://github.com/facebook/react/pull/28471 - https://github.com/facebook/react/pull/28351 - https://github.com/facebook/react/pull/28486 - https://github.com/facebook/react/pull/28490 - https://github.com/facebook/react/pull/28488 - https://github.com/facebook/react/pull/28468 - https://github.com/facebook/react/pull/28321 - https://github.com/facebook/react/pull/28477 - https://github.com/facebook/react/pull/28479 - https://github.com/facebook/react/pull/28480 - https://github.com/facebook/react/pull/28478 - https://github.com/facebook/react/pull/28464 - https://github.com/facebook/react/pull/28475 - https://github.com/facebook/react/pull/28456 - https://github.com/facebook/react/pull/28319 - https://github.com/facebook/react/pull/28345 - https://github.com/facebook/react/pull/28337 - https://github.com/facebook/react/pull/28335 - https://github.com/facebook/react/pull/28466 - https://github.com/facebook/react/pull/28462 - https://github.com/facebook/react/pull/28322 - https://github.com/facebook/react/pull/28444 - https://github.com/facebook/react/pull/28448 - https://github.com/facebook/react/pull/28449 - https://github.com/facebook/react/pull/28446 - https://github.com/facebook/react/pull/28447 - https://github.com/facebook/react/pull/24580 --- package.json | 20 +- ...t-dom-server-legacy.browser.development.js | 913 ++++----- ...ct-dom-server-legacy.browser.production.js | 760 ++++--- ...om-server-legacy.browser.production.min.js | 327 +-- ...eact-dom-server-legacy.node.development.js | 919 ++++----- ...react-dom-server-legacy.node.production.js | 772 ++++--- ...t-dom-server-legacy.node.production.min.js | 353 ++-- ...t-dom-server-rendering-stub.development.js | 65 +- ...ct-dom-server-rendering-stub.production.js | 63 +- ...om-server-rendering-stub.production.min.js | 16 +- .../react-dom-server.browser.development.js | 914 ++++----- .../react-dom-server.browser.production.js | 761 ++++--- ...react-dom-server.browser.production.min.js | 365 ++-- .../cjs/react-dom-server.bun.production.js | 766 ++++--- .../cjs/react-dom-server.edge.development.js | 914 ++++----- .../cjs/react-dom-server.edge.production.js | 767 ++++--- .../react-dom-server.edge.production.min.js | 391 ++-- .../cjs/react-dom-server.node.development.js | 914 ++++----- .../cjs/react-dom-server.node.production.js | 767 ++++--- .../react-dom-server.node.production.min.js | 383 ++-- .../cjs/react-dom-test-utils.production.js | 118 +- .../react-dom-unstable_testing.development.js | 1768 ++++------------- .../react-dom-unstable_testing.production.js | 1042 +++------- ...act-dom-unstable_testing.production.min.js | 824 ++++---- .../cjs/react-dom.development.js | 1766 ++++------------ .../cjs/react-dom.production.js | 1040 +++------- .../cjs/react-dom.production.min.js | 822 ++++---- .../cjs/react-dom.profiling.js | 1044 +++------- .../cjs/react-dom.profiling.min.js | 862 ++++---- .../cjs/react-dom.react-server.development.js | 59 +- .../cjs/react-dom.react-server.production.js | 59 +- .../react-dom.react-server.production.min.js | 12 +- .../react-dom-experimental/package.json | 5 +- ...t-dom-server-legacy.browser.development.js | 756 ++++--- ...ct-dom-server-legacy.browser.production.js | 655 +++--- ...om-server-legacy.browser.production.min.js | 138 +- ...eact-dom-server-legacy.node.development.js | 762 ++++--- ...react-dom-server-legacy.node.production.js | 667 +++---- ...t-dom-server-legacy.node.production.min.js | 184 +- ...t-dom-server-rendering-stub.development.js | 65 +- ...ct-dom-server-rendering-stub.production.js | 63 +- ...om-server-rendering-stub.production.min.js | 16 +- .../react-dom-server.browser.development.js | 756 ++++--- .../react-dom-server.browser.production.js | 655 +++--- ...react-dom-server.browser.production.min.js | 174 +- .../cjs/react-dom-server.bun.production.js | 661 +++--- .../cjs/react-dom-server.edge.development.js | 756 ++++--- .../cjs/react-dom-server.edge.production.js | 661 +++--- .../react-dom-server.edge.production.min.js | 190 +- .../cjs/react-dom-server.node.development.js | 756 ++++--- .../cjs/react-dom-server.node.production.js | 661 +++--- .../react-dom-server.node.production.min.js | 173 +- .../cjs/react-dom-test-utils.production.js | 118 +- .../react-dom/cjs/react-dom.development.js | 951 +++------ .../react-dom/cjs/react-dom.production.js | 469 ++--- .../react-dom/cjs/react-dom.production.min.js | 788 ++++---- .../react-dom/cjs/react-dom.profiling.js | 473 ++--- .../react-dom/cjs/react-dom.profiling.min.js | 818 ++++---- .../cjs/react-dom.react-server.development.js | 59 +- .../cjs/react-dom.react-server.production.js | 59 +- .../react-dom.react-server.production.min.js | 12 +- .../next/src/compiled/react-dom/package.json | 5 +- .../cjs/react-jsx-dev-runtime.development.js | 29 +- .../cjs/react-jsx-runtime.development.js | 29 +- .../cjs/react-jsx-runtime.production.js | 4 +- .../cjs/react-jsx-runtime.profiling.js | 4 +- ...ct-jsx-runtime.react-server.development.js | 29 +- ...act-jsx-runtime.react-server.production.js | 4 +- .../cjs/react.development.js | 89 +- .../cjs/react.production.js | 18 +- .../cjs/react.production.min.js | 10 +- .../cjs/react.react-server.development.js | 47 +- .../cjs/react.react-server.production.js | 18 +- .../cjs/react.react-server.production.min.js | 8 +- .../compiled/react-experimental/package.json | 3 - ...om-turbopack-client.browser.development.js | 386 ++-- ...dom-turbopack-client.browser.production.js | 345 ++-- ...turbopack-client.browser.production.min.js | 58 +- ...r-dom-turbopack-client.edge.development.js | 387 ++-- ...er-dom-turbopack-client.edge.production.js | 346 ++-- ...om-turbopack-client.edge.production.min.js | 71 +- ...r-dom-turbopack-client.node.development.js | 380 ++-- ...er-dom-turbopack-client.node.production.js | 339 ++-- ...om-turbopack-client.node.production.min.js | 66 +- ...opack-client.node.unbundled.development.js | 380 ++-- ...bopack-client.node.unbundled.production.js | 339 ++-- ...ck-client.node.unbundled.production.min.js | 68 +- ...om-turbopack-server.browser.development.js | 365 ++-- ...dom-turbopack-server.browser.production.js | 363 ++-- ...turbopack-server.browser.production.min.js | 135 +- ...r-dom-turbopack-server.edge.development.js | 365 ++-- ...er-dom-turbopack-server.edge.production.js | 363 ++-- ...om-turbopack-server.edge.production.min.js | 136 +- ...r-dom-turbopack-server.node.development.js | 365 ++-- ...er-dom-turbopack-server.node.production.js | 363 ++-- ...om-turbopack-server.node.production.min.js | 143 +- ...opack-server.node.unbundled.development.js | 365 ++-- ...bopack-server.node.unbundled.production.js | 363 ++-- ...ck-server.node.unbundled.production.min.js | 139 +- .../package.json | 7 +- ...om-turbopack-client.browser.development.js | 386 ++-- ...dom-turbopack-client.browser.production.js | 345 ++-- ...turbopack-client.browser.production.min.js | 55 +- ...r-dom-turbopack-client.edge.development.js | 387 ++-- ...er-dom-turbopack-client.edge.production.js | 346 ++-- ...om-turbopack-client.edge.production.min.js | 66 +- ...r-dom-turbopack-client.node.development.js | 380 ++-- ...er-dom-turbopack-client.node.production.js | 339 ++-- ...om-turbopack-client.node.production.min.js | 64 +- ...opack-client.node.unbundled.development.js | 380 ++-- ...bopack-client.node.unbundled.production.js | 339 ++-- ...ck-client.node.unbundled.production.min.js | 62 +- ...om-turbopack-server.browser.development.js | 361 ++-- ...dom-turbopack-server.browser.production.js | 363 ++-- ...turbopack-server.browser.production.min.js | 119 +- ...r-dom-turbopack-server.edge.development.js | 361 ++-- ...er-dom-turbopack-server.edge.production.js | 363 ++-- ...om-turbopack-server.edge.production.min.js | 134 +- ...r-dom-turbopack-server.node.development.js | 361 ++-- ...er-dom-turbopack-server.node.production.js | 363 ++-- ...om-turbopack-server.node.production.min.js | 141 +- ...opack-server.node.unbundled.development.js | 361 ++-- ...bopack-server.node.unbundled.production.js | 363 ++-- ...ck-server.node.unbundled.production.min.js | 135 +- .../react-server-dom-turbopack/package.json | 7 +- ...-dom-webpack-client.browser.development.js | 386 ++-- ...r-dom-webpack-client.browser.production.js | 345 ++-- ...m-webpack-client.browser.production.min.js | 60 +- ...ver-dom-webpack-client.edge.development.js | 387 ++-- ...rver-dom-webpack-client.edge.production.js | 346 ++-- ...-dom-webpack-client.edge.production.min.js | 71 +- ...ver-dom-webpack-client.node.development.js | 380 ++-- ...rver-dom-webpack-client.node.production.js | 339 ++-- ...-dom-webpack-client.node.production.min.js | 66 +- ...bpack-client.node.unbundled.development.js | 380 ++-- ...ebpack-client.node.unbundled.production.js | 339 ++-- ...ck-client.node.unbundled.production.min.js | 68 +- ...-dom-webpack-server.browser.development.js | 365 ++-- ...r-dom-webpack-server.browser.production.js | 363 ++-- ...m-webpack-server.browser.production.min.js | 137 +- ...ver-dom-webpack-server.edge.development.js | 365 ++-- ...rver-dom-webpack-server.edge.production.js | 363 ++-- ...-dom-webpack-server.edge.production.min.js | 138 +- ...ver-dom-webpack-server.node.development.js | 365 ++-- ...rver-dom-webpack-server.node.production.js | 363 ++-- ...-dom-webpack-server.node.production.min.js | 145 +- ...bpack-server.node.unbundled.development.js | 365 ++-- ...ebpack-server.node.unbundled.production.js | 363 ++-- ...ck-server.node.unbundled.production.min.js | 141 +- .../package.json | 7 +- ...-dom-webpack-client.browser.development.js | 386 ++-- ...r-dom-webpack-client.browser.production.js | 345 ++-- ...m-webpack-client.browser.production.min.js | 56 +- ...ver-dom-webpack-client.edge.development.js | 387 ++-- ...rver-dom-webpack-client.edge.production.js | 346 ++-- ...-dom-webpack-client.edge.production.min.js | 66 +- ...ver-dom-webpack-client.node.development.js | 380 ++-- ...rver-dom-webpack-client.node.production.js | 339 ++-- ...-dom-webpack-client.node.production.min.js | 64 +- ...bpack-client.node.unbundled.development.js | 380 ++-- ...ebpack-client.node.unbundled.production.js | 339 ++-- ...ck-client.node.unbundled.production.min.js | 62 +- ...-dom-webpack-server.browser.development.js | 361 ++-- ...r-dom-webpack-server.browser.production.js | 363 ++-- ...m-webpack-server.browser.production.min.js | 121 +- ...ver-dom-webpack-server.edge.development.js | 361 ++-- ...rver-dom-webpack-server.edge.production.js | 363 ++-- ...-dom-webpack-server.edge.production.min.js | 136 +- ...ver-dom-webpack-server.node.development.js | 361 ++-- ...rver-dom-webpack-server.node.production.js | 363 ++-- ...-dom-webpack-server.node.production.min.js | 143 +- ...bpack-server.node.unbundled.development.js | 361 ++-- ...ebpack-server.node.unbundled.production.js | 363 ++-- ...ck-server.node.unbundled.production.min.js | 137 +- .../react-server-dom-webpack/package.json | 7 +- .../cjs/react-jsx-dev-runtime.development.js | 12 +- .../cjs/react-jsx-runtime.development.js | 12 +- ...ct-jsx-runtime.react-server.development.js | 12 +- .../compiled/react/cjs/react.development.js | 75 +- .../compiled/react/cjs/react.production.js | 21 +- .../react/cjs/react.production.min.js | 22 +- .../cjs/react.react-server.development.js | 31 +- .../cjs/react.react-server.production.js | 21 +- .../cjs/react.react-server.production.min.js | 4 +- packages/next/src/compiled/react/package.json | 3 - ...cheduler-unstable_post_task.development.js | 3 +- ...scheduler-unstable_post_task.production.js | 3 +- .../cjs/scheduler.development.js | 12 +- .../cjs/scheduler.native.development.js | 12 +- .../cjs/scheduler.native.production.js | 12 +- .../cjs/scheduler.native.production.min.js | 2 +- .../cjs/scheduler.production.js | 12 +- .../cjs/scheduler.production.min.js | 4 +- .../scheduler-experimental/package.json | 5 +- ...cheduler-unstable_post_task.development.js | 3 +- ...scheduler-unstable_post_task.production.js | 3 +- .../scheduler/cjs/scheduler.development.js | 12 +- .../cjs/scheduler.native.development.js | 12 +- .../cjs/scheduler.native.production.js | 12 +- .../cjs/scheduler.native.production.min.js | 2 +- .../scheduler/cjs/scheduler.production.js | 12 +- .../scheduler/cjs/scheduler.production.min.js | 4 +- .../next/src/compiled/scheduler/package.json | 5 +- pnpm-lock.yaml | 118 +- 204 files changed, 30853 insertions(+), 29427 deletions(-) diff --git a/package.json b/package.json index f12a64a6e3bab..b425c60527b4f 100644 --- a/package.json +++ b/package.json @@ -198,16 +198,16 @@ "random-seed": "0.3.0", "react": "18.2.0", "react-17": "npm:react@17.0.2", - "react-builtin": "npm:react@18.3.0-canary-14898b6a9-20240318", + "react-builtin": "npm:react@18.3.0-canary-e373190fa-20240325", "react-dom": "18.2.0", "react-dom-17": "npm:react-dom@17.0.2", - "react-dom-builtin": "npm:react-dom@18.3.0-canary-14898b6a9-20240318", - "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-14898b6a9-20240318", - "react-experimental-builtin": "npm:react@0.0.0-experimental-14898b6a9-20240318", - "react-server-dom-turbopack": "18.3.0-canary-14898b6a9-20240318", - "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-14898b6a9-20240318", - "react-server-dom-webpack": "18.3.0-canary-14898b6a9-20240318", - "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-14898b6a9-20240318", + "react-dom-builtin": "npm:react-dom@18.3.0-canary-e373190fa-20240325", + "react-dom-experimental-builtin": "npm:react-dom@0.0.0-experimental-e373190fa-20240325", + "react-experimental-builtin": "npm:react@0.0.0-experimental-e373190fa-20240325", + "react-server-dom-turbopack": "18.3.0-canary-e373190fa-20240325", + "react-server-dom-turbopack-experimental": "npm:react-server-dom-turbopack@0.0.0-experimental-e373190fa-20240325", + "react-server-dom-webpack": "18.3.0-canary-e373190fa-20240325", + "react-server-dom-webpack-experimental": "npm:react-server-dom-webpack@0.0.0-experimental-e373190fa-20240325", "react-ssr-prepass": "1.0.8", "react-virtualized": "9.22.3", "relay-compiler": "13.0.2", @@ -217,8 +217,8 @@ "resolve-from": "5.0.0", "sass": "1.54.0", "satori": "0.10.9", - "scheduler-builtin": "npm:scheduler@0.24.0-canary-14898b6a9-20240318", - "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-14898b6a9-20240318", + "scheduler-builtin": "npm:scheduler@0.24.0-canary-e373190fa-20240325", + "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-e373190fa-20240325", "seedrandom": "3.0.5", "selenium-webdriver": "4.0.0-beta.4", "semver": "7.3.7", 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 bd07a7b8066b7..2821a3107c824 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 = '18.3.0-experimental-14898b6a9-20240318'; +var ReactVersion = '18.3.0-experimental-e373190fa-20240325'; var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; @@ -610,7 +610,13 @@ function checkHtmlStringCoercion(value) { } // ----------------------------------------------------------------------------- -var enableFloat = true; // Enables unstable_useMemoCache hook, intended as a compilation target for +// Ready for next major. +// +// Alias __NEXT_MAJOR__ to true for easier skimming. +// ----------------------------------------------------------------------------- + +var __NEXT_MAJOR__ = true; // Removes legacy style context +var enableBigIntSupport = __NEXT_MAJOR__; // $FlowFixMe[method-unbinding] var hasOwnProperty = Object.prototype.hasOwnProperty; @@ -822,9 +828,9 @@ function validateProperties$2(type, props) { }).join(', '); if (invalidProps.length === 1) { - error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); + error('Invalid aria prop %s on <%s> tag. ' + 'For details, see https://react.dev/link/invalid-aria-props', unknownPropString, type); } else if (invalidProps.length > 1) { - error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://reactjs.org/link/invalid-aria-props', unknownPropString, type); + error('Invalid aria props %s on <%s> tag. ' + 'For details, see https://react.dev/link/invalid-aria-props', unknownPropString, type); } } } @@ -857,7 +863,7 @@ function isCustomElement(tagName, props) { // These are reserved SVG and MathML elements. // We don't mind this list too much because we expect it to never grow. // The alternative is to track the namespace in a few places which is convoluted. - // https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts + // https://html.spec.whatwg.org/multipage/custom-elements.html#custom-elements-core-concepts case 'annotation-xml': case 'color-profile': case 'font-face': @@ -873,9 +879,9 @@ function isCustomElement(tagName, props) { } } -// When adding attributes to the HTML or SVG allowed attribute list, be sure to // also add them to this module to ensure casing and incorrect name // warnings. + var possibleStandardNames = { // HTML accept: 'accept', @@ -1369,6 +1375,10 @@ var possibleStandardNames = { zoomandpan: 'zoomAndPan' }; +{ + possibleStandardNames.inert = 'inert'; +} + var warnedProperties = {}; var EVENT_NAME_REGEX = /^on./; var INVALID_EVENT_NAME_REGEX = /^on[^A-Z]/; @@ -1566,6 +1576,16 @@ function validateProperty(tagName, name, value, eventRegistry) { // Boolean properties can accept boolean values return true; } + // fallthrough + + case 'inert': + { + { + // Boolean properties can accept boolean values + return true; + } + } + // fallthrough for new boolean props without the flag on default: { @@ -1629,6 +1649,14 @@ function validateProperty(tagName, name, value, eventRegistry) { break; } + case 'inert': + { + { + break; + } + } + // fallthrough for new boolean props without the flag on + default: { return true; @@ -1664,9 +1692,9 @@ function warnUnknownProperties(type, props, eventRegistry) { }).join(', '); if (unknownProps.length === 1) { - error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); + error('Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://react.dev/link/attribute-behavior ', unknownPropString, type); } else if (unknownProps.length > 1) { - error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://reactjs.org/link/attribute-behavior ', unknownPropString, type); + error('Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://react.dev/link/attribute-behavior ', unknownPropString, type); } } } @@ -1866,7 +1894,7 @@ function escapeHtml(string) { function escapeTextForBrowser(text) { - if (typeof text === 'boolean' || typeof text === 'number') { + if (typeof text === 'boolean' || typeof text === 'number' || typeof text === 'bigint') { // this shortcircuit helps perf for types that we know will never have // special characters, especially given that this function is used often // for numeric dom ids. @@ -1907,7 +1935,6 @@ function hyphenateStyleName(name) { /* eslint-disable max-len */ var isJavaScriptProtocol = /^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i; -var didWarn = false; function sanitizeURL(url) { // We should never have symbols here because they get filtered out elsewhere. @@ -1915,10 +1942,11 @@ function sanitizeURL(url) { var stringifiedURL = '' + url; { - if (!didWarn && isJavaScriptProtocol.test(stringifiedURL)) { - didWarn = true; - - error('A future version of React will block javascript: URLs as a security precaution. ' + 'Use event handlers instead if you can. If you need to generate unsafe HTML try ' + 'using dangerouslySetInnerHTML instead. React was passed %s.', JSON.stringify(stringifiedURL)); + if (isJavaScriptProtocol.test(stringifiedURL)) { + // Return a different javascript: url that doesn't cause any side-effects and just + // throws if ever visited. + // eslint-disable-next-line no-script-url + return "javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')"; } } @@ -1949,19 +1977,17 @@ var NotPending = Object.freeze(sharedNotPendingObject) ; var ReactDOMSharedInternals = ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED; -var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.Dispatcher; -var ReactDOMServerDispatcher = { +var ReactDOMCurrentDispatcher = ReactDOMSharedInternals.ReactDOMCurrentDispatcher; +var previousDispatcher = ReactDOMCurrentDispatcher.current; +ReactDOMCurrentDispatcher.current = { prefetchDNS: prefetchDNS, preconnect: preconnect, preload: preload, preloadModule: preloadModule, - preinitStyle: preinitStyle, preinitScript: preinitScript, + preinitStyle: preinitStyle, preinitModuleScript: preinitModuleScript -}; -function prepareHostDispatcher() { - ReactDOMCurrentDispatcher.current = ReactDOMServerDispatcher; -} // We make every property of the descriptor optional because it is not a contract that +}; // We make every property of the descriptor optional because it is not a contract that var ScriptStreamingFormat = 0; var DataStreamingFormat = 1; var NothingSent @@ -2048,10 +2074,16 @@ var importMapScriptEnd = stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; +var didWarnForNewBooleanPropsWithEmptyValue; + +{ + didWarnForNewBooleanPropsWithEmptyValue = {}; +} // Allows us to keep track of what we've already written so we can refer back to it. // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState$1(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we stor // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +var DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { var inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk(''); // Since we st // It should also be noted that this maximum is a soft maximum. we have not reached the limit we will // allow one more header to be captured which means in practice if the limit is approached it will be exceeded -const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // Allows us to keep track of what we've already written so we can refer back to it. +const DEFAULT_HEADERS_CAPACITY_IN_UTF16_CODE_UNITS = 2000; // if passed externalRuntimeConfig and the enableFizzExternalRuntime feature flag // is set, the server will send instructions via data attributes (instead of inline scripts) + function createRenderState(resumableState, nonce, externalRuntimeConfig, importMap, onHeaders, maxHeadersLength) { const inlineScriptWithNonce = nonce === undefined ? startInlineScript : stringToPrecomputedChunk('