Skip to content

Commit edc0a3a

Browse files
committed
[DevTools] feat[Tree]: set initial scroll offset when inspected element index is set (facebook#31968)
Stacked on facebook#31956. See [commit on top](facebook@ecb8df4). Use `initialScrollOffset` prop for `FixedSizeList` from `react-window`. This happens when user selects an element in built-in Elements panel in DevTools, and then opens Components panel from React DevTools - elements will be synced and corresponding React Element will be pre-selected, we just have to scroll to its position now. DiffTrain build for [f2813ee](facebook@f2813ee)
1 parent 4a0e9d6 commit edc0a3a

34 files changed

Lines changed: 94 additions & 86 deletions

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fd9cfa416f7c01ecdf76b10ab776a43f2430786d
1+
f2813ee33d37e20029c6698f34946d7f08eb7a95
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
fd9cfa416f7c01ecdf76b10ab776a43f2430786d
1+
f2813ee33d37e20029c6698f34946d7f08eb7a95

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1944,7 +1944,7 @@ __DEV__ &&
19441944
exports.useTransition = function () {
19451945
return resolveDispatcher().useTransition();
19461946
};
1947-
exports.version = "19.1.0-www-classic-fd9cfa41-20250108";
1947+
exports.version = "19.1.0-www-classic-f2813ee3-20250109";
19481948
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19491949
"function" ===
19501950
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
@@ -1944,7 +1944,7 @@ __DEV__ &&
19441944
exports.useTransition = function () {
19451945
return resolveDispatcher().useTransition();
19461946
};
1947-
exports.version = "19.1.0-www-modern-fd9cfa41-20250108";
1947+
exports.version = "19.1.0-www-modern-f2813ee3-20250109";
19481948
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
19491949
"function" ===
19501950
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
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-classic-fd9cfa41-20250108";
633+
exports.version = "19.1.0-www-classic-f2813ee3-20250109";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,4 +630,4 @@ exports.useSyncExternalStore = function (
630630
exports.useTransition = function () {
631631
return ReactSharedInternals.H.useTransition();
632632
};
633-
exports.version = "19.1.0-www-modern-fd9cfa41-20250108";
633+
exports.version = "19.1.0-www-modern-f2813ee3-20250109";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-classic-fd9cfa41-20250108";
637+
exports.version = "19.1.0-www-classic-f2813ee3-20250109";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
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
@@ -634,7 +634,7 @@ exports.useSyncExternalStore = function (
634634
exports.useTransition = function () {
635635
return ReactSharedInternals.H.useTransition();
636636
};
637-
exports.version = "19.1.0-www-modern-fd9cfa41-20250108";
637+
exports.version = "19.1.0-www-modern-f2813ee3-20250109";
638638
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
639639
"function" ===
640640
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,6 +1372,7 @@ __DEV__ &&
13721372
case 19:
13731373
info += describeBuiltInComponentFrame("SuspenseList");
13741374
break;
1375+
case 30:
13751376
case 0:
13761377
case 15:
13771378
case 1:
@@ -16946,10 +16947,10 @@ __DEV__ &&
1694616947
(function () {
1694716948
var internals = {
1694816949
bundleType: 1,
16949-
version: "19.1.0-www-classic-fd9cfa41-20250108",
16950+
version: "19.1.0-www-classic-f2813ee3-20250109",
1695016951
rendererPackageName: "react-art",
1695116952
currentDispatcherRef: ReactSharedInternals,
16952-
reconcilerVersion: "19.1.0-www-classic-fd9cfa41-20250108"
16953+
reconcilerVersion: "19.1.0-www-classic-f2813ee3-20250109"
1695316954
};
1695416955
internals.overrideHookState = overrideHookState;
1695516956
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16983,7 +16984,7 @@ __DEV__ &&
1698316984
exports.Shape = Shape;
1698416985
exports.Surface = Surface;
1698516986
exports.Text = Text;
16986-
exports.version = "19.1.0-www-classic-fd9cfa41-20250108";
16987+
exports.version = "19.1.0-www-classic-f2813ee3-20250109";
1698716988
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1698816989
"function" ===
1698916990
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,6 +1278,7 @@ __DEV__ &&
12781278
case 19:
12791279
info += describeBuiltInComponentFrame("SuspenseList");
12801280
break;
1281+
case 30:
12811282
case 0:
12821283
case 15:
12831284
case 1:
@@ -16718,10 +16719,10 @@ __DEV__ &&
1671816719
(function () {
1671916720
var internals = {
1672016721
bundleType: 1,
16721-
version: "19.1.0-www-modern-fd9cfa41-20250108",
16722+
version: "19.1.0-www-modern-f2813ee3-20250109",
1672216723
rendererPackageName: "react-art",
1672316724
currentDispatcherRef: ReactSharedInternals,
16724-
reconcilerVersion: "19.1.0-www-modern-fd9cfa41-20250108"
16725+
reconcilerVersion: "19.1.0-www-modern-f2813ee3-20250109"
1672516726
};
1672616727
internals.overrideHookState = overrideHookState;
1672716728
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -16755,7 +16756,7 @@ __DEV__ &&
1675516756
exports.Shape = Shape;
1675616757
exports.Surface = Surface;
1675716758
exports.Text = Text;
16758-
exports.version = "19.1.0-www-modern-fd9cfa41-20250108";
16759+
exports.version = "19.1.0-www-modern-f2813ee3-20250109";
1675916760
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1676016761
"function" ===
1676116762
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)