mirror of
https://github.com/facebook/react.git
synced 2026-02-26 02:44:59 +00:00
Add an explicit Bridge protocol version to the frontend and backend components as well as a check during initialization to ensure that both are compatible. If not, the frontend will display either upgrade or downgrade instructions. Note that only the `react-devtools-core` (React Native) and `react-devtools-inline` (Code Sandbox) packages implement this check. Browser extensions inject their own backend and so the check is unnecessary. (Arguably the `react-devtools-inline` check is also unlikely to be necessary _but_ has been added as an extra guard for use cases such as Replay.io.)
37 lines
689 B
CSS
37 lines
689 B
CSS
.Column {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.Title {
|
|
font-size: var(--font-size-sans-large);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.ReleaseNotesLink {
|
|
color: var(--color-button-active);
|
|
}
|
|
|
|
.Version {
|
|
color: var(--color-bridge-version-number);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.NpmCommand {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 0.25rem 0.25rem 0.25rem 0.5rem;
|
|
background-color: var(--color-bridge-version-npm-background);
|
|
color: var(--color-bridge-version-npm-text);
|
|
margin: 0;
|
|
font-family: var(--font-family-monospace);
|
|
font-size: var(--font-size-monospace-large);
|
|
}
|
|
|
|
.Paragraph {
|
|
margin: 0.5rem 0;
|
|
}
|
|
|
|
.Link {
|
|
color: var(--color-link);
|
|
} |