Skip to content

Commit

Permalink
Fork ReactDOMSharedInternals for www (#25791)
Browse files Browse the repository at this point in the history
This isn't the right way to do this, but internally we have some
restrictions so we need to add an indirection. Let's land this now so we
can catch up our sync and then fix forward from there.

Co-authored-by: Jan Kassens <[email protected]>

DiffTrain build for `2ccfa657d9529cab25eaa25144efc64df12b13c7`
  • Loading branch information
kassens committed Dec 5, 2022
1 parent cf2ede1 commit 98926ac
Show file tree
Hide file tree
Showing 38 changed files with 38,828 additions and 38,807 deletions.
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-classic-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-classic-2ccfa657d-20221205";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if (
}
"use strict";

var ReactVersion = "18.3.0-www-modern-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-modern-2ccfa657d-20221205";

// ATTENTION
// When adding new symbols to this file,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,4 +643,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-cd23e40c7-20221205";
exports.version = "18.3.0-www-classic-2ccfa657d-20221205";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,4 +635,4 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-cd23e40c7-20221205";
exports.version = "18.3.0-www-modern-2ccfa657d-20221205";
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-classic-cd23e40c7-20221205";
exports.version = "18.3.0-www-classic-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/React-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ exports.useSyncExternalStore = function(
);
};
exports.useTransition = useTransition;
exports.version = "18.3.0-www-modern-cd23e40c7-20221205";
exports.version = "18.3.0-www-modern-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactART-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-classic-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-classic-2ccfa657d-20221205";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactART-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function _assertThisInitialized(self) {
return self;
}

var ReactVersion = "18.3.0-www-modern-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-modern-2ccfa657d-20221205";

var LegacyRoot = 0;
var ConcurrentRoot = 1;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -9798,7 +9798,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-classic-cd23e40c7-20221205",
version: "18.3.0-www-classic-2ccfa657d-20221205",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1336 = {
Expand Down Expand Up @@ -9829,7 +9829,7 @@ var internals$jscomp$inline_1336 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1337 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
4 changes: 2 additions & 2 deletions compiled/facebook-www/ReactART-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -9465,7 +9465,7 @@ var slice = Array.prototype.slice,
return null;
},
bundleType: 0,
version: "18.3.0-www-modern-cd23e40c7-20221205",
version: "18.3.0-www-modern-2ccfa657d-20221205",
rendererPackageName: "react-art"
};
var internals$jscomp$inline_1327 = {
Expand Down Expand Up @@ -9496,7 +9496,7 @@ var internals$jscomp$inline_1327 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1328 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOM-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -42580,7 +42580,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-classic-2ccfa657d-20221205";

function createPortal(
children,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOM-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -42304,7 +42304,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-modern-2ccfa657d-20221205";

function createPortal(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15548,7 +15548,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1773 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-cd23e40c7-20221205",
version: "18.3.0-www-classic-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2154 = {
Expand Down Expand Up @@ -15578,7 +15578,7 @@ var internals$jscomp$inline_2154 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2155 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15820,4 +15820,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15109,7 +15109,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1741 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-cd23e40c7-20221205",
version: "18.3.0-www-modern-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2129 = {
Expand Down Expand Up @@ -15140,7 +15140,7 @@ var internals$jscomp$inline_2129 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2130 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15328,4 +15328,4 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16321,7 +16321,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1847 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-cd23e40c7-20221205",
version: "18.3.0-www-classic-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -16365,7 +16365,7 @@ var devToolsConfig$jscomp$inline_1847 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -16594,7 +16594,7 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOM-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15872,7 +15872,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1815 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-cd23e40c7-20221205",
version: "18.3.0-www-modern-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -15917,7 +15917,7 @@ var devToolsConfig$jscomp$inline_1815 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function(children, container) {
Expand Down Expand Up @@ -16092,7 +16092,7 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMForked-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -42580,7 +42580,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-classic-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-classic-2ccfa657d-20221205";

function createPortal(
children,
Expand Down
2 changes: 1 addition & 1 deletion compiled/facebook-www/ReactDOMForked-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -42304,7 +42304,7 @@ function createFiberRoot(
return root;
}

var ReactVersion = "18.3.0-www-modern-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-modern-2ccfa657d-20221205";

function createPortal(
children,
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMForked-prod.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -15548,7 +15548,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1773 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-cd23e40c7-20221205",
version: "18.3.0-www-classic-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2154 = {
Expand Down Expand Up @@ -15578,7 +15578,7 @@ var internals$jscomp$inline_2154 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2155 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15820,4 +15820,4 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMForked-prod.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15109,7 +15109,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1741 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-cd23e40c7-20221205",
version: "18.3.0-www-modern-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
var internals$jscomp$inline_2129 = {
Expand Down Expand Up @@ -15140,7 +15140,7 @@ var internals$jscomp$inline_2129 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2130 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
Expand Down Expand Up @@ -15328,4 +15328,4 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMForked-profiling.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -16321,7 +16321,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1847 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-classic-cd23e40c7-20221205",
version: "18.3.0-www-classic-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -16365,7 +16365,7 @@ var devToolsConfig$jscomp$inline_1847 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
});
assign(Internals, {
ReactBrowserEventEmitter: {
Expand Down Expand Up @@ -16594,7 +16594,7 @@ exports.unstable_renderSubtreeIntoContainer = function(
);
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
6 changes: 3 additions & 3 deletions compiled/facebook-www/ReactDOMForked-profiling.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -15872,7 +15872,7 @@ Internals.Events = [
var devToolsConfig$jscomp$inline_1815 = {
findFiberByHostInstance: getClosestInstanceFromNode,
bundleType: 0,
version: "18.3.0-www-modern-cd23e40c7-20221205",
version: "18.3.0-www-modern-2ccfa657d-20221205",
rendererPackageName: "react-dom"
};
(function(internals) {
Expand Down Expand Up @@ -15917,7 +15917,7 @@ var devToolsConfig$jscomp$inline_1815 = {
scheduleRoot: null,
setRefreshHandler: null,
getCurrentFiber: null,
reconcilerVersion: "18.3.0-next-cd23e40c7-20221205"
reconcilerVersion: "18.3.0-next-2ccfa657d-20221205"
});
exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
exports.createPortal = function(children, container) {
Expand Down Expand Up @@ -16092,7 +16092,7 @@ exports.unstable_flushControlled = function(fn) {
}
};
exports.unstable_runWithPriority = runWithPriority;
exports.version = "18.3.0-next-cd23e40c7-20221205";
exports.version = "18.3.0-next-2ccfa657d-20221205";

/* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
if (
Expand Down
6 changes: 4 additions & 2 deletions compiled/facebook-www/ReactDOMServer-dev.classic.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ if (__DEV__) {
"use strict";

var React = require("react");
var ReactDOM = require("react-dom");

var ReactVersion = "18.3.0-www-classic-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-classic-2ccfa657d-20221205";

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down Expand Up @@ -3600,6 +3599,9 @@ var completeBoundaryWithStyles =
var completeSegment =
"$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};";

// $FlowIgnore[cannot-resolve-module] provided by www
var ReactDOM = require("ReactDOMComet");

var ReactDOMSharedInternals =
ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

Expand Down
6 changes: 4 additions & 2 deletions compiled/facebook-www/ReactDOMServer-dev.modern.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@ if (__DEV__) {
"use strict";

var React = require("react");
var ReactDOM = require("react-dom");

var ReactVersion = "18.3.0-www-modern-cd23e40c7-20221205";
var ReactVersion = "18.3.0-www-modern-2ccfa657d-20221205";

// This refers to a WWW module.
var warningWWW = require("warning");
Expand Down Expand Up @@ -3604,6 +3603,9 @@ var completeBoundaryWithStyles =
var completeSegment =
"$RS=function(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};";

// $FlowIgnore[cannot-resolve-module] provided by www
var ReactDOM = require("ReactDOMComet");

var ReactDOMSharedInternals =
ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;

Expand Down
Loading

0 comments on commit 98926ac

Please sign in to comment.