Skip to content

Commit 390db64

Browse files
committed
bump[third_party/react-devtools]: 5.2.0
1 parent f657b1f commit 390db64

File tree

5 files changed

+7643
-7216
lines changed

5 files changed

+7643
-7216
lines changed

front_end/third_party/react-devtools/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ https://github.com/facebook/react/tree/main/packages/react-devtools-fusebox
66
## How to update this package?
77
1. Clone [`react`](https://github.com/facebook/react) repo and run `yarn build` in [`packages/react-devtools-fusebox`](https://github.com/facebook/react/tree/main/packages/react-devtools-fusebox)
88
2. Copy all artifacts from `build` folder to `package` folder here.
9-
3. Update `frontend.d.ts` if needed, type definitions are not included in the build yet.

front_end/third_party/react-devtools/package/frontend.css

Lines changed: 60 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
padding: 0.125rem 0.25rem;
107107
line-height: normal;
108108
border-radius: 0.125rem;
109-
margin-right: 0.25rem;
110109
font-family: var(--font-family-monospace);
111110
font-size: var(--font-size-monospace-small);
112111
}
@@ -145,6 +144,7 @@
145144
--color-component-badge-background: var(
146145
--color-component-badge-background-inverted
147146
);
147+
--color-forget-badge-background: var(--color-forget-badge-background-inverted);
148148
--color-component-badge-count: var(--color-component-badge-count-inverted);
149149
--color-attribute-name: var(--color-attribute-name-inverted);
150150
--color-attribute-value: var(--color-attribute-value-inverted);
@@ -208,25 +208,6 @@
208208
color: var(--color-text);
209209
}
210210

211-
.sP6uS8ZOU4PkDlNU0AYK {
212-
background-color: var(--color-forget-badge);
213-
}
214-
215-
.SjNrJ30jUO5kUSCsWh4c {
216-
display: inline-flex;
217-
align-items: center;
218-
}
219-
220-
.SjNrJ30jUO5kUSCsWh4c *:not(:first-child) {
221-
margin-left: 0.25rem;
222-
}
223-
224-
.j9rH1DJ2jYY7I1tswNOx {
225-
font-family: var(--font-family-monospace);
226-
font-size: var(--font-size-monospace-small);
227-
color: var(--color-component-badge-count);
228-
}
229-
230211
.dPHAvUl3PSp59chvDv66,
231212
.rcOJ8fC0AbSrvixHIvdw,
232213
.V5OmBsGHEXanXzw77sNS {
@@ -290,6 +271,43 @@
290271
z-index: 10000002;
291272
}
292273

274+
.sP6uS8ZOU4PkDlNU0AYK {
275+
background-color: var(--color-forget-badge-background);
276+
color: var(--color-forget-text);
277+
padding-right: 1.75em;
278+
position: relative;
279+
}
280+
281+
.sP6uS8ZOU4PkDlNU0AYK::after {
282+
bottom: 0;
283+
content: '✨';
284+
position: absolute;
285+
right: 0.25em;
286+
}
287+
288+
.j3Lt3YqBHSwuvIVtnIxU {
289+
display: flex;
290+
}
291+
292+
.j3Lt3YqBHSwuvIVtnIxU > span { /* targets .ToggleContent */
293+
padding: 0;
294+
}
295+
296+
.SjNrJ30jUO5kUSCsWh4c {
297+
display: inline-flex;
298+
align-items: center;
299+
}
300+
301+
.SjNrJ30jUO5kUSCsWh4c *:not(:first-child) {
302+
margin-left: 0.25rem;
303+
}
304+
305+
.j9rH1DJ2jYY7I1tswNOx {
306+
font-family: var(--font-family-monospace);
307+
font-size: var(--font-size-monospace-small);
308+
color: var(--color-component-badge-count);
309+
}
310+
293311
.MOeHyomWH2dTqysCu6Ii {
294312
border: none;
295313
background: var(--color-button-background);
@@ -822,7 +840,6 @@
822840
color: var(--color-context-text-selected);
823841
}
824842
.eKXhn2sbXs1thQ1xt1b6 {
825-
padding: 0.25rem;
826843
user-select: none;
827844
display: inline-flex;
828845
}
@@ -985,7 +1002,6 @@
9851002
}
9861003
.ltOoJtAx5EC08rarvM4p {
9871004
padding: 0.25rem;
988-
border-top: 1px solid var(--color-border);
9891005
}
9901006
.ltOoJtAx5EC08rarvM4p:first-of-type {
9911007
border-top: none;
@@ -1371,6 +1387,11 @@
13711387
line-height: var(--line-height-data);
13721388
}
13731389

1390+
.s7UqGwXK0u5IO8pB45HE:not(:empty) {
1391+
padding: 0.25rem;
1392+
border-bottom: 1px solid var(--color-border);
1393+
}
1394+
13741395
.G1iPSTGC6eNcmT5RjA6C {
13751396
border-radius: 0.25rem;
13761397
padding: 0.125rem 0.25rem;
@@ -1940,10 +1961,6 @@
19401961
transition: all ease-in-out 250ms;
19411962
}
19421963

1943-
.hMgAJyZBpTlsirz54AIg {
1944-
margin-bottom: 0.5rem;
1945-
}
1946-
19471964
.IkCgTd3uBjVma0pkjIWQ {
19481965
margin-top: 0.25rem;
19491966
}
@@ -1972,10 +1989,20 @@
19721989

19731990
.ANH3uQmqdejNNBMFVElK {
19741991
padding: 0.25rem 0;
1975-
margin-bottom: 0.25rem;
19761992
flex: 0 0 auto;
19771993
display: flex;
1978-
align-items: center;
1994+
flex-direction: column;
1995+
gap: 0.25rem;
1996+
}
1997+
1998+
.ktt_CXlygBWE6kn8NPge {
1999+
display: flex;
2000+
flex-direction: column;
2001+
gap: 0.25rem;
2002+
}
2003+
2004+
.ktt_CXlygBWE6kn8NPge:not(:empty) {
2005+
padding-bottom: 0.25rem;
19792006
border-bottom: 1px solid var(--color-border);
19802007
}
19812008

@@ -1992,10 +2019,11 @@
19922019
white-space: nowrap;
19932020
overflow-x: hidden;
19942021
text-overflow: ellipsis;
2022+
padding-bottom: 0.25rem;
2023+
border-bottom: 1px solid var(--color-border);
19952024
}
19962025

19972026
.WfcYLToZgb8sJXT8vsc0 {
1998-
margin: 0.25rem 0;
19992027
display: block;
20002028
width: 100%;
20012029
text-align: left;
@@ -2718,6 +2746,9 @@
27182746
padding: 0.5rem;
27192747
user-select: none;
27202748
overflow-y: auto;
2749+
display: flex;
2750+
flex-direction: column;
2751+
gap: 0.5rem;
27212752
}
27222753

27232754
.ISf33Slct6dgSxu6Jgnp {

front_end/third_party/react-devtools/package/frontend.d.ts

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
1-
export type MessagePayload = null | string | number | boolean | {[key: string]: MessagePayload} | MessagePayload[];
2-
export type Message = {event: string, payload?: MessagePayload};
1+
/**
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
export type MessagePayload = null | string | number | boolean | { [key: string]: MessagePayload } | MessagePayload[];
9+
export type Message = { event: string, payload?: MessagePayload };
310

411
export type WallListener = (message: Message) => void;
512
export type Wall = {
@@ -16,10 +23,31 @@ export type BrowserTheme = 'dark' | 'light';
1623
export function createBridge(wall: Wall): Bridge;
1724
export function createStore(bridge: Bridge): Store;
1825

26+
export type Source = {
27+
sourceURL: string,
28+
line: number,
29+
column: number,
30+
};
31+
export type ViewElementSource = (
32+
source: Source,
33+
symbolicatedSource: Source | null,
34+
) => void;
35+
export type ViewAttributeSource = (
36+
id: number,
37+
path: Array<string | number>,
38+
) => void;
39+
export type CanViewElementSource = (
40+
source: Source,
41+
symbolicatedSource: Source | null,
42+
) => boolean;
43+
1944
export type InitializationOptions = {
2045
bridge: Bridge,
2146
store: Store,
2247
theme?: BrowserTheme,
48+
viewAttributeSourceFunction?: ViewAttributeSource,
49+
viewElementSourceFunction?: ViewElementSource,
50+
canViewElementSourceFunction?: CanViewElementSource,
2351
};
24-
export function initialize(node: Element | Document, options: InitializationOptions): void;
2552

53+
export function initialize(node: Element | Document, options: InitializationOptions): void;

0 commit comments

Comments
 (0)