Skip to content

Commit 8bc2b9c

Browse files
committed
refactor[react-devtools]: remove browserTheme from ConsolePatchSettings (#30566)
Stacked on #30564. We are no longer using browser theme in our console patching, this was removed in unification of console patching for strict mode, we started using ansi escape symbols and forking based on browser theme is no longer required - #29869 The real browser theme initialization for frontend is happening at the other place and is not affected: https://github.com/facebook/react/blob/40be968257a7a10a267210670103f20dd0429ef3/packages/react-devtools-shared/src/devtools/views/Settings/SettingsContext.js#L117-L120 DiffTrain build for [b521ef8](b521ef8)
1 parent 6f75707 commit 8bc2b9c

34 files changed

+184
-186
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5e83d9ab3b3f88853591dff43cd70ee4e5c90c5d
1+
b521ef8a2aaff61154e59f6d0d3791ee4dbe6395
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
5e83d9ab3b3f88853591dff43cd70ee4e5c90c5d
1+
b521ef8a2aaff61154e59f6d0d3791ee4dbe6395

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ __DEV__ &&
20002000
exports.useTransition = function () {
20012001
return resolveDispatcher().useTransition();
20022002
};
2003-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
2003+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";
20042004
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
20052005
"function" ===
20062006
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1980,7 +1980,7 @@ __DEV__ &&
19801980
exports.useTransition = function () {
19811981
return resolveDispatcher().useTransition();
19821982
};
1983-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
1983+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";
19841984
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19851985
"function" ===
19861986
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
668+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,4 +665,4 @@ exports.useSyncExternalStore = function (
665665
exports.useTransition = function () {
666666
return ReactSharedInternals.H.useTransition();
667667
};
668-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
668+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
672+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ exports.useSyncExternalStore = function (
669669
exports.useTransition = function () {
670670
return ReactSharedInternals.H.useTransition();
671671
};
672-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
672+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";
673673
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
674674
"function" ===
675675
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17026,11 +17026,11 @@ __DEV__ &&
1702617026
(function () {
1702717027
var internals = {
1702817028
bundleType: 1,
17029-
version: "19.0.0-www-classic-5e83d9ab-20240918",
17029+
version: "19.0.0-www-classic-b521ef8a-20240918",
1703017030
rendererPackageName: "react-art",
1703117031
currentDispatcherRef: ReactSharedInternals,
1703217032
findFiberByHostInstance: getInstanceFromNode,
17033-
reconcilerVersion: "19.0.0-www-classic-5e83d9ab-20240918"
17033+
reconcilerVersion: "19.0.0-www-classic-b521ef8a-20240918"
1703417034
};
1703517035
internals.overrideHookState = overrideHookState;
1703617036
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17064,7 +17064,7 @@ __DEV__ &&
1706417064
exports.Shape = Shape;
1706517065
exports.Surface = Surface;
1706617066
exports.Text = Text;
17067-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
17067+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";
1706817068
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1706917069
"function" ===
1707017070
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16472,11 +16472,11 @@ __DEV__ &&
1647216472
(function () {
1647316473
var internals = {
1647416474
bundleType: 1,
16475-
version: "19.0.0-www-modern-5e83d9ab-20240918",
16475+
version: "19.0.0-www-modern-b521ef8a-20240918",
1647616476
rendererPackageName: "react-art",
1647716477
currentDispatcherRef: ReactSharedInternals,
1647816478
findFiberByHostInstance: getInstanceFromNode,
16479-
reconcilerVersion: "19.0.0-www-modern-5e83d9ab-20240918"
16479+
reconcilerVersion: "19.0.0-www-modern-b521ef8a-20240918"
1648016480
};
1648116481
internals.overrideHookState = overrideHookState;
1648216482
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16510,7 +16510,7 @@ __DEV__ &&
1651016510
exports.Shape = Shape;
1651116511
exports.Surface = Surface;
1651216512
exports.Text = Text;
16513-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
16513+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";
1651416514
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1651516515
"function" ===
1651616516
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-prod.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10853,13 +10853,13 @@ var slice = Array.prototype.slice,
1085310853
})(React.Component);
1085410854
var internals$jscomp$inline_1439 = {
1085510855
bundleType: 0,
10856-
version: "19.0.0-www-classic-5e83d9ab-20240918",
10856+
version: "19.0.0-www-classic-b521ef8a-20240918",
1085710857
rendererPackageName: "react-art",
1085810858
currentDispatcherRef: ReactSharedInternals,
1085910859
findFiberByHostInstance: function () {
1086010860
return null;
1086110861
},
10862-
reconcilerVersion: "19.0.0-www-classic-5e83d9ab-20240918"
10862+
reconcilerVersion: "19.0.0-www-classic-b521ef8a-20240918"
1086310863
};
1086410864
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1086510865
var hook$jscomp$inline_1440 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10885,4 +10885,4 @@ exports.RadialGradient = RadialGradient;
1088510885
exports.Shape = TYPES.SHAPE;
1088610886
exports.Surface = Surface;
1088710887
exports.Text = Text;
10888-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
10888+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";

compiled/facebook-www/ReactART-prod.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10367,13 +10367,13 @@ var slice = Array.prototype.slice,
1036710367
})(React.Component);
1036810368
var internals$jscomp$inline_1431 = {
1036910369
bundleType: 0,
10370-
version: "19.0.0-www-modern-5e83d9ab-20240918",
10370+
version: "19.0.0-www-modern-b521ef8a-20240918",
1037110371
rendererPackageName: "react-art",
1037210372
currentDispatcherRef: ReactSharedInternals,
1037310373
findFiberByHostInstance: function () {
1037410374
return null;
1037510375
},
10376-
reconcilerVersion: "19.0.0-www-modern-5e83d9ab-20240918"
10376+
reconcilerVersion: "19.0.0-www-modern-b521ef8a-20240918"
1037710377
};
1037810378
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
1037910379
var hook$jscomp$inline_1432 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10399,4 +10399,4 @@ exports.RadialGradient = RadialGradient;
1039910399
exports.Shape = TYPES.SHAPE;
1040010400
exports.Surface = Surface;
1040110401
exports.Text = Text;
10402-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
10402+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";

compiled/facebook-www/ReactDOM-dev.classic.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18576,41 +18576,41 @@ __DEV__ &&
1857618576
: !1;
1857718577
}
1857818578
function getActiveElementDeep(containerInfo) {
18579-
var $jscomp$optchain$tmp1765074778$1, $jscomp$nullish$tmp0;
18579+
var $jscomp$optchain$tmp88918400$1, $jscomp$nullish$tmp0;
1858018580
containerInfo =
1858118581
null !=
1858218582
($jscomp$nullish$tmp0 =
1858318583
null == containerInfo
1858418584
? void 0
1858518585
: null ==
18586-
($jscomp$optchain$tmp1765074778$1 = containerInfo.ownerDocument)
18586+
($jscomp$optchain$tmp88918400$1 = containerInfo.ownerDocument)
1858718587
? void 0
18588-
: $jscomp$optchain$tmp1765074778$1.defaultView)
18588+
: $jscomp$optchain$tmp88918400$1.defaultView)
1858918589
? $jscomp$nullish$tmp0
1859018590
: window;
1859118591
for (
18592-
$jscomp$optchain$tmp1765074778$1 = getActiveElement(
18592+
$jscomp$optchain$tmp88918400$1 = getActiveElement(
1859318593
containerInfo.document
1859418594
);
18595-
$jscomp$optchain$tmp1765074778$1 instanceof
18595+
$jscomp$optchain$tmp88918400$1 instanceof
1859618596
containerInfo.HTMLIFrameElement;
1859718597

1859818598
) {
1859918599
try {
1860018600
var JSCompiler_inline_result =
1860118601
"string" ===
18602-
typeof $jscomp$optchain$tmp1765074778$1.contentWindow.location.href;
18602+
typeof $jscomp$optchain$tmp88918400$1.contentWindow.location.href;
1860318603
} catch (err) {
1860418604
JSCompiler_inline_result = !1;
1860518605
}
1860618606
if (JSCompiler_inline_result)
18607-
containerInfo = $jscomp$optchain$tmp1765074778$1.contentWindow;
18607+
containerInfo = $jscomp$optchain$tmp88918400$1.contentWindow;
1860818608
else break;
18609-
$jscomp$optchain$tmp1765074778$1 = getActiveElement(
18609+
$jscomp$optchain$tmp88918400$1 = getActiveElement(
1861018610
containerInfo.document
1861118611
);
1861218612
}
18613-
return $jscomp$optchain$tmp1765074778$1;
18613+
return $jscomp$optchain$tmp88918400$1;
1861418614
}
1861518615
function hasSelectionCapabilities(elem) {
1861618616
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
@@ -27774,11 +27774,11 @@ __DEV__ &&
2777427774
: flushSyncErrorInBuildsThatSupportLegacyMode;
2777527775
(function () {
2777627776
var isomorphicReactPackageVersion = React.version;
27777-
if ("19.0.0-www-classic-5e83d9ab-20240918" !== isomorphicReactPackageVersion)
27777+
if ("19.0.0-www-classic-b521ef8a-20240918" !== isomorphicReactPackageVersion)
2777827778
throw Error(
2777927779
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2778027780
(isomorphicReactPackageVersion +
27781-
"\n - react-dom: 19.0.0-www-classic-5e83d9ab-20240918\nLearn more: https://react.dev/warnings/version-mismatch")
27781+
"\n - react-dom: 19.0.0-www-classic-b521ef8a-20240918\nLearn more: https://react.dev/warnings/version-mismatch")
2778227782
);
2778327783
})();
2778427784
("function" === typeof Map &&
@@ -27822,11 +27822,11 @@ __DEV__ &&
2782227822
!(function () {
2782327823
var internals = {
2782427824
bundleType: 1,
27825-
version: "19.0.0-www-classic-5e83d9ab-20240918",
27825+
version: "19.0.0-www-classic-b521ef8a-20240918",
2782627826
rendererPackageName: "react-dom",
2782727827
currentDispatcherRef: ReactSharedInternals,
2782827828
findFiberByHostInstance: getClosestInstanceFromNode,
27829-
reconcilerVersion: "19.0.0-www-classic-5e83d9ab-20240918"
27829+
reconcilerVersion: "19.0.0-www-classic-b521ef8a-20240918"
2783027830
};
2783127831
internals.overrideHookState = overrideHookState;
2783227832
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -28479,7 +28479,7 @@ __DEV__ &&
2847928479
exports.useFormStatus = function () {
2848028480
return resolveDispatcher().useHostTransitionStatus();
2848128481
};
28482-
exports.version = "19.0.0-www-classic-5e83d9ab-20240918";
28482+
exports.version = "19.0.0-www-classic-b521ef8a-20240918";
2848328483
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2848428484
"function" ===
2848528485
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactDOM-dev.modern.js

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17910,41 +17910,43 @@ __DEV__ &&
1791017910
: !1;
1791117911
}
1791217912
function getActiveElementDeep(containerInfo) {
17913-
var $jscomp$optchain$tmp1980021184$1, $jscomp$nullish$tmp0;
17913+
var $jscomp$optchain$tmpm1778796256$1, $jscomp$nullish$tmp0;
1791417914
containerInfo =
1791517915
null !=
1791617916
($jscomp$nullish$tmp0 =
1791717917
null == containerInfo
1791817918
? void 0
1791917919
: null ==
17920-
($jscomp$optchain$tmp1980021184$1 = containerInfo.ownerDocument)
17920+
($jscomp$optchain$tmpm1778796256$1 =
17921+
containerInfo.ownerDocument)
1792117922
? void 0
17922-
: $jscomp$optchain$tmp1980021184$1.defaultView)
17923+
: $jscomp$optchain$tmpm1778796256$1.defaultView)
1792317924
? $jscomp$nullish$tmp0
1792417925
: window;
1792517926
for (
17926-
$jscomp$optchain$tmp1980021184$1 = getActiveElement(
17927+
$jscomp$optchain$tmpm1778796256$1 = getActiveElement(
1792717928
containerInfo.document
1792817929
);
17929-
$jscomp$optchain$tmp1980021184$1 instanceof
17930+
$jscomp$optchain$tmpm1778796256$1 instanceof
1793017931
containerInfo.HTMLIFrameElement;
1793117932

1793217933
) {
1793317934
try {
1793417935
var JSCompiler_inline_result =
1793517936
"string" ===
17936-
typeof $jscomp$optchain$tmp1980021184$1.contentWindow.location.href;
17937+
typeof $jscomp$optchain$tmpm1778796256$1.contentWindow.location
17938+
.href;
1793717939
} catch (err) {
1793817940
JSCompiler_inline_result = !1;
1793917941
}
1794017942
if (JSCompiler_inline_result)
17941-
containerInfo = $jscomp$optchain$tmp1980021184$1.contentWindow;
17943+
containerInfo = $jscomp$optchain$tmpm1778796256$1.contentWindow;
1794217944
else break;
17943-
$jscomp$optchain$tmp1980021184$1 = getActiveElement(
17945+
$jscomp$optchain$tmpm1778796256$1 = getActiveElement(
1794417946
containerInfo.document
1794517947
);
1794617948
}
17947-
return $jscomp$optchain$tmp1980021184$1;
17949+
return $jscomp$optchain$tmpm1778796256$1;
1794817950
}
1794917951
function hasSelectionCapabilities(elem) {
1795017952
var nodeName = elem && elem.nodeName && elem.nodeName.toLowerCase();
@@ -26891,11 +26893,11 @@ __DEV__ &&
2689126893
return_targetInst = null;
2689226894
(function () {
2689326895
var isomorphicReactPackageVersion = React.version;
26894-
if ("19.0.0-www-modern-5e83d9ab-20240918" !== isomorphicReactPackageVersion)
26896+
if ("19.0.0-www-modern-b521ef8a-20240918" !== isomorphicReactPackageVersion)
2689526897
throw Error(
2689626898
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
2689726899
(isomorphicReactPackageVersion +
26898-
"\n - react-dom: 19.0.0-www-modern-5e83d9ab-20240918\nLearn more: https://react.dev/warnings/version-mismatch")
26900+
"\n - react-dom: 19.0.0-www-modern-b521ef8a-20240918\nLearn more: https://react.dev/warnings/version-mismatch")
2689926901
);
2690026902
})();
2690126903
("function" === typeof Map &&
@@ -26938,11 +26940,11 @@ __DEV__ &&
2693826940
!(function () {
2693926941
var internals = {
2694026942
bundleType: 1,
26941-
version: "19.0.0-www-modern-5e83d9ab-20240918",
26943+
version: "19.0.0-www-modern-b521ef8a-20240918",
2694226944
rendererPackageName: "react-dom",
2694326945
currentDispatcherRef: ReactSharedInternals,
2694426946
findFiberByHostInstance: getClosestInstanceFromNode,
26945-
reconcilerVersion: "19.0.0-www-modern-5e83d9ab-20240918"
26947+
reconcilerVersion: "19.0.0-www-modern-b521ef8a-20240918"
2694626948
};
2694726949
internals.overrideHookState = overrideHookState;
2694826950
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27547,7 +27549,7 @@ __DEV__ &&
2754727549
exports.useFormStatus = function () {
2754827550
return resolveDispatcher().useHostTransitionStatus();
2754927551
};
27550-
exports.version = "19.0.0-www-modern-5e83d9ab-20240918";
27552+
exports.version = "19.0.0-www-modern-b521ef8a-20240918";
2755127553
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2755227554
"function" ===
2755327555
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)