prefix stringlengths 512 512 | suffix stringlengths 256 256 | middle stringlengths 14 229 | meta dict |
|---|---|---|---|
Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import Badge from './Badge';
import ForgetBadge from './ForgetBadge';
import NativeTagBad... | ) &&
nativeTag === null
) {
return null;
}
return (
<div className={styles.Root}>
{compiledWithForget && <ForgetBadge indexable={false} />}
{nativeTag !== null && <NativeTagBadge nativeTag={nativeTag} />}
{hocDisplayNa | ll,
};
export default function InspectedElementBadges({
hocDisplayNames,
compiledWithForget,
nativeTag,
}: Props): React.Node {
if (
!compiledWithForget &&
(hocDisplayNames == null || hocDisplayNames.length === 0 | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementBadges.js",
"language": "javascript",
"file_size": 1160,
"cut_index": 518,
"middle_length": 229
} |
import type {ReactContext} from 'shared/ReactTypes';
import * as React from 'react';
import {
createContext,
startTransition,
unstable_useCacheRefresh as useCacheRefresh,
useCallback,
useContext,
useEffect,
useMemo,
useRef,
useState,
} from 'react';
import {TreeStateContext} from './TreeContext';
imp... | ools-shared/src/devtools/views/Components/FetchFileWithCachingContext';
import HookNamesModuleLoaderContext from 'react-devtools-shared/src/devtools/views/Components/HookNamesModuleLoaderContext';
import {SettingsContext} from '../Settings/SettingsContext' | sCache,
hasAlreadyLoadedHookNames,
loadHookNames,
} from 'react-devtools-shared/src/hookNamesCache';
import {loadModule} from 'react-devtools-shared/src/dynamicImportCache';
import FetchFileWithCachingContext from 'react-devt | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementContext.js",
"language": "javascript",
"file_size": 8241,
"cut_index": 716,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {copy} from 'clipboard-js';
import * as React from 'react';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import KeyValue from './KeyValue';
import {alphaSortEntries, serializeDataForCo... | e} from 'react-devtools-shared/src/bridge';
import type {Element} from 'react-devtools-shared/src/frontend/types';
type Props = {
bridge: FrontendBridge,
element: Element,
inspectedElement: InspectedElement,
store: Store,
};
export default functi | /src/frontend/types';
import {withPermissionsCheck} from 'react-devtools-shared/src/frontend/utils/withPermissionsCheck';
import type {InspectedElement} from 'react-devtools-shared/src/frontend/types';
import type {FrontendBridg | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementContextTree.js",
"language": "javascript",
"file_size": 3137,
"cut_index": 614,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {
useCallback,
useContext,
unstable_useCacheRefresh as useCacheRefresh,
} from 'rea... | D so that changing the selected element automatically hides the boundary.
// This seems best since an error inspecting one element isn't likely to be relevant to another element.
const {inspectedElementID} = useContext(TreeStateContext);
const refre | ./InspectedElementErrorBoundary.css';
type WrapperProps = {
children: React$Node,
};
export default function InspectedElementErrorBoundaryWrapper({
children,
}: WrapperProps): React.Node {
// Key on the selected element I | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorBoundary.js",
"language": "javascript",
"file_size": 1369,
"cut_index": 524,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {
unstable_useCacheRefresh as useCacheRefresh,
useTransition,
} from 'react';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import Store from '../../... | act-devtools-shared/src/bridge';
type Props = {
bridge: FrontendBridge,
inspectedElement: InspectedElement,
store: Store,
};
export default function InspectedElementErrorsAndWarningsTree({
bridge,
inspectedElement,
store,
}: Props): React.Nod | ntAPI,
clearWarningsForElement as clearWarningsForElementAPI,
} from 'react-devtools-shared/src/backendAPI';
import type {InspectedElement} from 'react-devtools-shared/src/frontend/types';
import type {FrontendBridge} from 're | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementErrorsAndWarningsTree.js",
"language": "javascript",
"file_size": 4642,
"cut_index": 614,
"middle_length": 229
} |
tton';
import ButtonIcon from '../ButtonIcon';
import Toggle from '../Toggle';
import ExpandCollapseToggle from './ExpandCollapseToggle';
import KeyValue from './KeyValue';
import {getMetaValueLabel, serializeHooksForCopy} from '../utils';
import Store from '../../store';
import styles from './InspectedElementHooksTree... | HooksTree} from 'react-debug-tools/src/ReactDebugHooks';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type {HookNames} from 'react-devtools-shared/src/frontend/types';
import type {Element} from 'react-devtools-shared/src/f | shared/src/devtools/views/Components/HookNamesModuleLoaderContext';
import isArray from 'react-devtools-shared/src/isArray';
import type {InspectedElement} from 'react-devtools-shared/src/frontend/types';
import type {HooksNode, | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementHooksTree.js",
"language": "javascript",
"file_size": 11659,
"cut_index": 921,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {copy} from 'clipboard-js';
import * as React from 'react';
import {OptionsContext} from '../context';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import KeyValue from './KeyValue';
i... |
import type {InspectedElement} from 'react-devtools-shared/src/frontend/types';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type {Element} from 'react-devtools-shared/src/frontend/types';
type Props = {
bridge: Frontend | ';
import {
ElementTypeClass,
ElementTypeSuspense,
ElementTypeActivity,
} from 'react-devtools-shared/src/frontend/types';
import {withPermissionsCheck} from 'react-devtools-shared/src/frontend/utils/withPermissionsCheck';
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementPropsTree.js",
"language": "javascript",
"file_size": 3489,
"cut_index": 614,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {Fragment, useContext, useEffect} from 'react';
import {BridgeContext} from './context';
import {ModalDialogContext} from './Mod... | tructions.
useEffect(() => {
// Wall.listen returns a cleanup function
let unlisten: $FlowFixMe = bridge.wall.listen(message => {
switch (message.type) {
case 'call':
case 'event':
case 'many-events':
// An | patch} = useContext(ModalDialogContext);
// Detect pairing with legacy v3 backend.
// We do this by listening to a message that it broadcasts but the v4 backend doesn't.
// In this case the frontend should show upgrade ins | {
"filepath": "packages/react-devtools-shared/src/devtools/views/WarnIfLegacyBackendDetected.js",
"language": "javascript",
"file_size": 2534,
"cut_index": 563,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext} from 'react';
import {createPortal} from 'react-dom';
import ErrorBoundary from './ErrorB... | ore={store}>
<Component {...rest} />
</ErrorBoundary>
);
if (portalContainer != null) {
// The ThemeProvider works by writing DOM style variables to an HTMLDivElement.
// Because Portals render in a different DOM subtree, | Component: component(...props: any),
): component(...props: any) {
return function PortaledContent({portalContainer, ...rest}: Props) {
const store = useContext(StoreContext);
let children = (
<ErrorBoundary st | {
"filepath": "packages/react-devtools-shared/src/devtools/views/portaledContent.js",
"language": "javascript",
"file_size": 1626,
"cut_index": 537,
"middle_length": 229
} |
ctTypes';
import type {SourceMappedLocation} from 'react-devtools-shared/src/symbolicateSource';
import type {SerializedAsyncInfo} from 'react-devtools-shared/src/frontend/types';
import FetchFileWithCachingContext from './Components/FetchFileWithCachingContext';
import {symbolicateSourceWithCache} from 'react-devt... | We only do this if the stack has more than one frame since
// otherwise it's likely to just be the name of the component which isn't better.
const bestStack = asyncInfo.awaited.stack || asyncInfo.stack;
if (bestStack !== null && bestStack.leng | t);
const name = asyncInfo.awaited.name;
let inferNameFromStack = null;
if (!name || name === 'Promise' || name === 'lazy') {
// If all we have is a generic name, we can try to infer a better name from
// the stack. | {
"filepath": "packages/react-devtools-shared/src/devtools/views/useInferredName.js",
"language": "javascript",
"file_size": 3071,
"cut_index": 614,
"middle_length": 229
} |
import escapeStringRegExp from 'escape-string-regexp';
import {meta} from '../../hydration';
import {formatDataForPreview} from '../../utils';
import isArray from 'react-devtools-shared/src/isArray';
import type {HooksTree} from 'react-debug-tools/src/ReactDebugHooks';
// $FlowFixMe[method-unbinding]
const hasOwnProp... | ast /
if (string[0] === '/') {
// Cut off first slash
string = string.slice(1);
// Cut off last slash, but only if it's there
if (string[string.length - 1] === '/') {
string = string.slice(0, string.length - 1);
}
try {
| (String(+a) === a) {
if (String(+b) !== b) {
return -1;
}
return +a < +b ? -1 : 1;
}
return a < b ? -1 : 1;
}
export function createRegExp(string: string): RegExp {
// Allow /regex/ syntax with optional l | {
"filepath": "packages/react-devtools-shared/src/devtools/views/utils.js",
"language": "javascript",
"file_size": 6343,
"cut_index": 716,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext} from 'react';
import portaledContent from 'react-devtools-shared/src/devtoo... | import {SettingsModalContextController} from 'react-devtools-shared/src/devtools/views/Settings/SettingsModalContext';
import styles from './InspectedElementPane.css';
function InspectedElementPane() {
const {hideSettings} = useContext(OptionsContext);
| spectedElement';
import SettingsModal from 'react-devtools-shared/src/devtools/views/Settings/SettingsModal';
import SettingsModalContextToggle from 'react-devtools-shared/src/devtools/views/Settings/SettingsModalContextToggle';
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/InspectedElement/InspectedElementPane.js",
"language": "javascript",
"file_size": 1446,
"cut_index": 524,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useState, useContext, useCallback} from 'react';
import SearchInput from 'react-devtools-shared/src/... | nst search = useCallback(
(text: string) => {
setLocalSearchQuery(text);
transitionDispatch({type: 'SET_SEARCH_TEXT', payload: text});
},
[setLocalSearchQuery, transitionDispatch],
);
const goToNextResult = useCallback(
() = | earchInput(): React.Node {
const [localSearchQuery, setLocalSearchQuery] = useState('');
const {searchIndex, searchResults} = useContext(TreeStateContext);
const transitionDispatch = useContext(TreeDispatcherContext);
co | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/ComponentSearchInput.js",
"language": "javascript",
"file_size": 1602,
"cut_index": 537,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useState} from 'react';
import AutoSizeInput from './NativeStyleEditor/AutoSizeInput';
import styles from './Edita... | function EditableName({
allowEmpty = false,
allowWhiteSpace = false,
autoFocus = false,
className = '',
initialValue = '',
overrideName,
path,
type,
}: EditableNameProps): React.Node {
const [editableName, setEditableName] = useState(init | rops = {
allowEmpty?: boolean,
allowWhiteSpace?: boolean,
autoFocus?: boolean,
className?: string,
initialValue?: string,
overrideName: OverrideNameFn,
path: Array<string | number>,
type: Type,
};
export default | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/EditableName.js",
"language": "javascript",
"file_size": 2448,
"cut_index": 563,
"middle_length": 229
} |
tools/views/Settings/SettingsContext';
export const THEME_STYLES: {[style: Theme | DisplayDensity]: any, ...} = {
light: {
'--color-attribute-name': '#ef6632',
'--color-attribute-name-not-editable': '#23272f',
'--color-attribute-name-inverted': 'rgba(255, 255, 255, 0.7)',
'--color-attribute-value': '... | cus': '#ededed',
'--color-button-background-hover': 'rgba(0, 0, 0, 0.2)',
'--color-button': '#5f6673',
'--color-button-disabled': '#cfd1d5',
'--color-button-active': '#0088fa',
'--color-button-focus': '#23272f',
'--color-button-hove | 6, 250, 0.1)',
'--color-background-inactive': '#e5e5e5',
'--color-background-invalid': '#fff0f0',
'--color-background-selected': '#0088fa',
'--color-button-background': '#ffffff',
'--color-button-background-fo | {
"filepath": "packages/react-devtools-shared/src/devtools/constants.js",
"language": "javascript",
"file_size": 17077,
"cut_index": 921,
"middle_length": 229
} |
eact';
import {useCallback, useEffect, useLayoutEffect, useMemo, useRef} from 'react';
import Store from '../store';
import {
BridgeContext,
ContextMenuContext,
StoreContext,
OptionsContext,
} from './context';
import Components from './Components/Components';
import Profiler from './Profiler/Profiler';
import ... | chFileWithCachingContext from './Components/FetchFileWithCachingContext';
import {InspectedElementContextController} from './Components/InspectedElementContext';
import HookNamesModuleLoaderContext from 'react-devtools-shared/src/devtools/views/Components/ | Pane';
import {SettingsContextController} from './Settings/SettingsContext';
import {TreeContextController} from './Components/TreeContext';
import ViewElementSourceContext from './Components/ViewElementSourceContext';
import Fet | {
"filepath": "packages/react-devtools-shared/src/devtools/views/DevTools.js",
"language": "javascript",
"file_size": 15236,
"cut_index": 921,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {HooksNode, HooksTree} from 'react-debug-tools/src/ReactDebugHooks';
import type {WorkTagMap} from '../../types';
import {getFiberFlags} ... | pport this key (e.v. 18+)
// For older versions, there's no good way to read the current context value after render has completed.
// This is because React maintains a stack of context values during render,
// but by the time DevTools is called | cies && prevFiber.dependencies.firstContext;
let nextContext =
nextFiber.dependencies && nextFiber.dependencies.firstContext;
while (prevContext && nextContext) {
// Note this only works for versions of React that su | {
"filepath": "packages/react-devtools-shared/src/backend/fiber/shared/DevToolsFiberChangeDetection.js",
"language": "javascript",
"file_size": 5042,
"cut_index": 614,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Fiber} from 'react-reconciler/src/ReactInternalTypes';
import type {
ReactComponentInfo,
ReactAsyncInfo,
ReactIOInfo,
ReactFunctionLocation,
} from 'shared/ReactTypes';
import type {Rect} from '../... | lsInstance,
nextSibling: null | DevToolsInstance,
source: null | string | Error | ReactFunctionLocation, // source location of this component function, or owned child stack
logCount: number, // total number of errors/warnings last seen
treeBaseDura | onent i.e. a Fiber pair.
// These instances also let us track stateful DevTools meta data like id and warnings.
export type FiberInstance = {
kind: 0,
id: number,
parent: null | DevToolsInstance,
firstChild: null | DevToo | {
"filepath": "packages/react-devtools-shared/src/backend/fiber/shared/DevToolsFiberTypes.js",
"language": "javascript",
"file_size": 4533,
"cut_index": 614,
"middle_length": 229
} |
*/
import {compareVersions} from 'compare-versions';
import {dehydrate} from 'react-devtools-shared/src/hydration';
import isArray from 'shared/isArray';
import type {DehydratedData} from 'react-devtools-shared/src/frontend/types';
export {default as formatWithStyles} from './formatWithStyles';
export {default as fo... | ge(
data: Object | null,
isPathAllowed: (path: Array<string | number>) => boolean,
path: Array<string | number> = [],
): DehydratedData | null {
if (data !== null) {
const cleanedPaths: Array<Array<string | number>> = [];
const unserializab | 99.9.9';
export function hasAssignedBackend(version?: string): boolean {
if (version == null || version === '') {
return false;
}
return gte(version, FIRST_DEVTOOLS_BACKEND_LOCKSTEP_VER);
}
export function cleanForBrid | {
"filepath": "packages/react-devtools-shared/src/backend/utils/index.js",
"language": "javascript",
"file_size": 7679,
"cut_index": 716,
"middle_length": 229
} |
import type {ReactComponentInfo} from 'shared/ReactTypes';
import type {DevToolsHook, ReactRenderer, RendererInterface} from '../types';
import {getOwnerStackByComponentInfoInDev} from './DevToolsComponentInfoStack';
import {formatOwnerStack} from '../shared/DevToolsOwnerStack';
import {componentInfoToComponentLogs... | detect if this task was created while the DevTools was open or not.
return !!componentInfo.debugTask;
}
export function attach(
hook: DevToolsHook,
rendererID: number,
renderer: ReactRenderer,
global: Object,
): RendererInterface {
const {get | ReactComponentInfo): boolean {
// If this ReactComponentInfo supports native console.createTask then we are already running
// inside a native async stack trace if it's active - meaning the DevTools is open.
// Ideally we'd | {
"filepath": "packages/react-devtools-shared/src/backend/flight/renderer.js",
"language": "javascript",
"file_size": 6996,
"cut_index": 716,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback} from 'react';
import styles from './Toggle.css';
import Tooltip from './Co... | ed) {
defaultClassName = styles.ToggleDisabled;
} else if (isChecked) {
defaultClassName = styles.ToggleOn;
} else {
defaultClassName = styles.ToggleOff;
}
const handleClick = useCallback(
() => onChange(!isChecked),
[isChecked | string,
title?: string,
...
};
export default function Toggle({
children,
className = '',
isDisabled = false,
isChecked,
onChange,
testName,
title,
}: Props): React.Node {
let defaultClassName;
if (isDisabl | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Toggle.js",
"language": "javascript",
"file_size": 1406,
"cut_index": 524,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {Fragment, useContext, useEffect} from 'react';
import {ModalDialogContext} from './ModalDialog';
import {StoreContext} from './context';
import {currentBridgeProtocol} from 'reac... | ;
const INSTRUCTIONS_FB_URL =
'https://fb.me/devtools-unsupported-bridge-protocol';
const MODAL_DIALOG_ID = 'UnsupportedBridgeProtocolDialog';
export default function UnsupportedBridgeProtocolDialog(_: {}): null {
const {dialogs, dispatch} = useContex | s';
import {withPermissionsCheck} from 'react-devtools-shared/src/frontend/utils/withPermissionsCheck';
import type {BridgeProtocol} from 'react-devtools-shared/src/bridge';
const DEVTOOLS_VERSION = process.env.DEVTOOLS_VERSION | {
"filepath": "packages/react-devtools-shared/src/devtools/views/UnsupportedBridgeProtocolDialog.js",
"language": "javascript",
"file_size": 4536,
"cut_index": 614,
"middle_length": 229
} |
devtools-shared/src/storage';
import {StoreContext, BridgeContext} from './context';
import {sanitizeForParse, smartParse, smartStringify} from '../utils';
type ACTION_RESET = {
type: 'RESET',
externalValue: any,
};
type ACTION_UPDATE = {
type: 'UPDATE',
editableValue: any,
externalValue: any,
};
type UseEd... | return {
...state,
editableValue: smartStringify(action.externalValue),
externalValue: action.externalValue,
hasPendingChanges: false,
isValid: true,
parsedValue: action.externalValue,
};
case | : any,
hasPendingChanges: boolean,
isValid: boolean,
parsedValue: any,
};
function useEditableValueReducer(
state: UseEditableValueState,
action: UseEditableValueAction,
) {
switch (action.type) {
case 'RESET':
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/hooks.js",
"language": "javascript",
"file_size": 12340,
"cut_index": 921,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactFunctionLocation, ReactCallSite} from 'shared/ReactTypes';
import {useCallback, useContext, useSyncExternalStore} from 'react';
import ViewElementS... | ,
): [
boolean, // isEnabled
() => void, // Open Resource
] => {
const {canViewElementSourceFunction, viewElementSourceFunction} = useContext(
ViewElementSourceContext,
);
const editorURL = useEditorURL();
const alwaysOpenInEditor = useSy | DITOR} from '../../constants';
import {checkConditions} from './Editor/utils';
const useOpenResource = (
source: null | ReactFunctionLocation | ReactCallSite,
symbolicatedSource: null | ReactFunctionLocation | ReactCallSite | {
"filepath": "packages/react-devtools-shared/src/devtools/views/useOpenResource.js",
"language": "javascript",
"file_size": 2679,
"cut_index": 563,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {startTransition, useContext} from 'react';
import Button from '../Button';
import ButtonIcon from '../... | eContext(StoreContext);
const activity =
activityID === null ? null : store.getElementByID(activityID);
const name = activity ? activity.nameProp : null;
const changeActivitySliceAction = useChangeActivitySliceAction();
return (
<div cla | text';
import styles from './ActivitySlice.css';
export default function ActivitySlice(): React.Node {
const dispatch = useContext(TreeDispatcherContext);
const {activityID} = useContext(TreeStateContext);
const store = us | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/ActivitySlice.js",
"language": "javascript",
"file_size": 1625,
"cut_index": 537,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
/************************************************************************
* This file is forked between different DevTools impl... | *********************************************************
* Do not edit the code below.
* It ensures this fork exports the same types as the default flags file.
************************************************************************/
import typeof * a | ****/
export const enableActivitySlices: boolean = __DEV__;
export const enableLogger: boolean = false;
export const enableStyleXFeatures: boolean = false;
export const isInternalFacebookBuild: boolean = false;
/*************** | {
"filepath": "packages/react-devtools-shared/src/config/DevToolsFeatureFlags.core-oss.js",
"language": "javascript",
"file_size": 1279,
"cut_index": 524,
"middle_length": 229
} |
iority,
IdlePriority,
NoPriority,
} = ReactPriorityLevels;
const {
getLaneLabelMap,
injectProfilingHooks,
overrideHookState,
overrideHookStateDeletePath,
overrideHookStateRenamePath,
overrideProps,
overridePropsDeletePath,
overridePropsRenamePath,
scheduleRefresh,
se... | if (typeof scheduleRefresh === 'function') {
// When Fast Refresh updates a component, the frontend may need to purge cached information.
// For example, ASTs cached for the component (for named hooks) may no longer be valid.
// Send a signal | typeof scheduleUpdate === 'function';
const supportsTogglingSuspense =
typeof setSuspenseHandler === 'function' &&
typeof scheduleUpdate === 'function';
const supportsPerformanceTracks = gte(version, '19.2.0');
| {
"filepath": "packages/react-devtools-shared/src/backend/fiber/renderer.js",
"language": "javascript",
"file_size": 292508,
"cut_index": 13624,
"middle_length": 229
} |
import * as React from 'react';
import styles from './Icon.css';
export type IconType =
| 'arrow'
| 'bug'
| 'code'
| 'components'
| 'copy'
| 'error'
| 'facebook'
| 'flame-chart'
| 'profiler'
| 'ranked-chart'
| 'timeline'
| 'search'
| 'settings'
| 'store-as-global-variable'
| 'strict-mode-... | case 'code':
pathData = PATH_CODE;
break;
case 'components':
pathData = PATH_COMPONENTS;
break;
case 'copy':
pathData = PATH_COPY;
break;
case 'error':
pathData = PATH_ERROR;
break;
case ' | type,
...props
}: Props): React.Node {
let pathData = null;
let viewBox = '0 0 24 24';
switch (type) {
case 'arrow':
pathData = PATH_ARROW;
break;
case 'bug':
pathData = PATH_BUG;
break;
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Icon.js",
"language": "javascript",
"file_size": 7183,
"cut_index": 716,
"middle_length": 229
} |
(c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './ReactLogo.css';
type Props = {
className?: string,
};
export default funct... | 2.05" fill="currentColor" />
<g stroke="currentColor" strokeWidth="1" fill="none">
<ellipse rx="11" ry="4.2" />
<ellipse rx="11" ry="4.2" transform="rotate(60)" />
<ellipse rx="11" ry="4.2" transform="rotate(120)" />
</g | .23174 23 20.46348">
<circle cx="0" cy="0" r=" | {
"filepath": "packages/react-devtools-shared/src/devtools/views/ReactLogo.js",
"language": "javascript",
"file_size": 857,
"cut_index": 529,
"middle_length": 52
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactContext} from 'shared/ReactTypes';
import {createContext} from 'react';
import Store from '../store';
import type {ViewAtt... | t.displayName = 'StoreContext';
export type ContextMenuContextType = {
isEnabledForInspectedElement: boolean,
viewAttributeSourceFunction: ViewAttributeSource | null,
};
export const ContextMenuContext: ReactContext<ContextMenuContextType> =
create | Bridge> =
createContext<FrontendBridge>(((null: any): FrontendBridge));
BridgeContext.displayName = 'BridgeContext';
export const StoreContext: ReactContext<Store> = createContext<Store>(
((null: any): Store),
);
StoreContex | {
"filepath": "packages/react-devtools-shared/src/devtools/views/context.js",
"language": "javascript",
"file_size": 1697,
"cut_index": 537,
"middle_length": 229
} |
import * as React from 'react';
import {Fragment, useEffect, useLayoutEffect, useReducer, useRef} from 'react';
import Tree from './Tree';
import {OwnersListContextController} from './OwnersListContext';
import portaledContent from '../portaledContent';
import {SettingsModalContextController} from 'react-devtools-share... | rt {NativeStyleContextController} from './NativeStyleEditor/context';
import styles from './Components.css';
import typeof {SyntheticPointerEvent} from 'react-dom-bindings/src/events/SyntheticEvent';
type Orientation = 'horizontal' | 'vertical';
type Re | m './InspectedElementErrorBoundary';
import InspectedElement from './InspectedElement';
import {ModalDialog} from '../ModalDialog';
import SettingsModal from 'react-devtools-shared/src/devtools/views/Settings/SettingsModal';
impo | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/Components.js",
"language": "javascript",
"file_size": 7095,
"cut_index": 716,
"middle_length": 229
} |
ct-devtools-shared/src/utils';
import {gt, gte} from 'react-devtools-shared/src/backend/utils';
import {
CONCURRENT_MODE_NUMBER,
CONCURRENT_MODE_SYMBOL_STRING,
DEPRECATED_ASYNC_MODE_SYMBOL_STRING,
PROVIDER_NUMBER,
PROVIDER_SYMBOL_STRING,
CONTEXT_NUMBER,
CONTEXT_SYMBOL_STRING,
CONSUMER_SYMBOL_STRING,
S... | xport type getTypeSymbolType = (type: any) => symbol | string | number;
export type ReactPriorityLevelsType = {
ImmediatePriority: number,
UserBlockingPriority: number,
NormalPriority: number,
LowPriority: number,
IdlePriority: number,
NoPrior | _REF_SYMBOL_STRING,
MEMO_NUMBER,
MEMO_SYMBOL_STRING,
SERVER_CONTEXT_SYMBOL_STRING,
} from 'react-devtools-shared/src/backend/shared/ReactSymbols';
export type getDisplayNameForFiberType = (fiber: Fiber) => string | null;
e | {
"filepath": "packages/react-devtools-shared/src/backend/fiber/shared/DevToolsFiberInternalReactConstants.js",
"language": "javascript",
"file_size": 17083,
"cut_index": 921,
"middle_length": 229
} |
import Agent from 'react-devtools-shared/src/backend/agent';
import resolveBoxStyle from './resolveBoxStyle';
import isArray from 'react-devtools-shared/src/isArray';
import type {BackendBridge} from 'react-devtools-shared/src/bridge';
import type {RendererID} from '../types';
import type {StyleAndLayout} from './type... | rerID: RendererID}) => {
measureStyle(agent, bridge, resolveNativeStyle, id, rendererID);
},
);
bridge.addListener(
'NativeStyleEditor_renameAttribute',
({
id,
rendererID,
oldName,
newName,
value,
}: | dge: BackendBridge,
agent: Agent,
resolveNativeStyle: ResolveNativeStyle,
validAttributes?: $ReadOnlyArray<string> | null,
) {
bridge.addListener(
'NativeStyleEditor_measure',
({id, rendererID}: {id: number, rende | {
"filepath": "packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js",
"language": "javascript",
"file_size": 8313,
"cut_index": 716,
"middle_length": 229
} |
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {useCallback, useSyncExternalStore} from 'react';
import {getOpenInEditorURL} from '../../utils';
import {
LO... | n function unsubscribe() {
window.removeEventListener(LOCAL_STORAGE_OPEN_IN_EDITOR_URL, callback);
window.removeEventListener(
LOCAL_STORAGE_OPEN_IN_EDITOR_URL_PRESET,
callback,
);
};
}, []),
getOpe | back(function subscribe(callback) {
window.addEventListener(LOCAL_STORAGE_OPEN_IN_EDITOR_URL, callback);
window.addEventListener(
LOCAL_STORAGE_OPEN_IN_EDITOR_URL_PRESET,
callback,
);
retur | {
"filepath": "packages/react-devtools-shared/src/devtools/views/useEditorURL.js",
"language": "javascript",
"file_size": 1072,
"cut_index": 515,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {Fragment, useContext, useEffect, useState} from 'react';
import {ModalDialogContext} from './ModalDialog';
import {StoreContext... | not-shown');
useEffect(() => {
if (state === 'dialog-not-shown') {
const showDialog = () => {
setState('show-dialog');
dispatch({
canBeDismissed: true,
id: 'UnsupportedVersionDialog',
type: 'SHOW', | g-shown';
export default function UnsupportedVersionDialog(_: {}): null {
const {dispatch} = useContext(ModalDialogContext);
const store = useContext(StoreContext);
const [state, setState] = useState<DAILOG_STATE>('dialog- | {
"filepath": "packages/react-devtools-shared/src/devtools/views/UnsupportedVersionDialog.js",
"language": "javascript",
"file_size": 2253,
"cut_index": 563,
"middle_length": 229
} |
ource code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './Button.css';
import Tooltip from './Components/reach-ui/tooltip';
type Props = {
children: React$Node,
className?: string,
t... | <button
className={`${styles.Button} ${className}`}
data-testname={testName}
{...rest}>
<span className={`${styles.ButtonContent} ${className}`} tabIndex={-1}>
{children}
</span>
</button>
);
if (title) {
| $FlowFixMe[cannot-spread-inexact] unsafe spread
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Button.js",
"language": "javascript",
"file_size": 966,
"cut_index": 582,
"middle_length": 52
} |
import OwnersStack from './OwnersStack';
import ComponentSearchInput from './ComponentSearchInput';
import SettingsModalContextToggle from 'react-devtools-shared/src/devtools/views/Settings/SettingsModalContextToggle';
import TreeFocusedContext from './TreeFocusedContext';
import {useHighlightHostInstance, useSubscript... | ty';
import {ElementTypeActivity} from 'react-devtools-shared/src/frontend/types';
import {useChangeOwnerAction} from './OwnersListContext';
import {useChangeActivitySliceAction} from '../SuspenseTab/ActivityList';
import ActivitySlice from './ActivitySlic | onIcon';
import Button from '../Button';
import {logEvent} from 'react-devtools-shared/src/Logger';
import {useExtensionComponentsPanelVisibility} from 'react-devtools-shared/src/frontend/hooks/useExtensionComponentsPanelVisibili | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/Tree.js",
"language": "javascript",
"file_size": 20937,
"cut_index": 1331,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {copy} from 'clipboard-js';
import * as React from 'react';
import {ElementTypeHostComponent} from 'react-devtools-shared/src/frontend/types';
import Button fro... | es';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type {Element} from 'react-devtools-shared/src/frontend/types';
type Props = {
bridge: FrontendBridge,
element: Element,
inspectedElement: InspectedElement,
store: S | rt styles from './InspectedElementSharedStyles.css';
import {withPermissionsCheck} from 'react-devtools-shared/src/frontend/utils/withPermissionsCheck';
import type {InspectedElement} from 'react-devtools-shared/src/frontend/typ | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementStateTree.js",
"language": "javascript",
"file_size": 2642,
"cut_index": 563,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import KeyValue from './KeyValue';
import Store from '../../store';
import sharedStyles from './InspectedElem... | Element,
inspectedElement: InspectedElement,
store: Store,
};
export default function InspectedElementStyleXPlugin({
bridge,
element,
inspectedElement,
store,
}: Props): React.Node {
if (!enableStyleXFeatures) {
return null;
}
const | vtools-shared/src/frontend/types';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type {Element} from 'react-devtools-shared/src/frontend/types';
type Props = {
bridge: FrontendBridge,
element: | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementStyleXPlugin.js",
"language": "javascript",
"file_size": 1974,
"cut_index": 537,
"middle_length": 229
} |
import * as React from 'react';
import {Fragment, useContext} from 'react';
import {BridgeContext, StoreContext} from '../context';
import InspectedElementBadges from './InspectedElementBadges';
import InspectedElementContextTree from './InspectedElementContextTree';
import InspectedElementErrorsAndWarningsTree from '.... | from './NativeStyleEditor';
import {enableStyleXFeatures} from 'react-devtools-feature-flags';
import InspectedElementSourcePanel from './InspectedElementSourcePanel';
import StackTraceView from './StackTraceView';
import OwnerView from './OwnerView';
impo | tedElementStateTree from './InspectedElementStateTree';
import InspectedElementStyleXPlugin from './InspectedElementStyleXPlugin';
import InspectedElementSuspendedBy from './InspectedElementSuspendedBy';
import NativeStyleEditor | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementView.js",
"language": "javascript",
"file_size": 7658,
"cut_index": 716,
"middle_length": 229
} |
ableValue from './EditableValue';
import NewArrayValue from './NewArrayValue';
import NewKeyValue from './NewKeyValue';
import LoadingAnimation from './LoadingAnimation';
import ExpandCollapseToggle from './ExpandCollapseToggle';
import {alphaSortEntries, getMetaValueLabel} from '../utils';
import {meta} from '../../..... | PPORTED_AS_LINKS_IN_KEY_VALUE} from './constants';
import KeyValueContextMenuContainer from './KeyValueContextMenuContainer';
import {ContextMenuContext} from '../context';
import type {ContextMenuContextType} from '../context';
import type {InspectedElem | tton';
import ButtonIcon from 'react-devtools-shared/src/devtools/views/ButtonIcon';
import isArray from 'react-devtools-shared/src/isArray';
import {InspectedElementContext} from './InspectedElementContext';
import {PROTOCOLS_SU | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/KeyValue.js",
"language": "javascript",
"file_size": 17229,
"cut_index": 921,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './LoadingAnimation.css';
type Props = {
className?: string,
};
export de... | dur="1s"
values="0;1;0"
repeatCount="indefinite"
begin="0.1"
/>
</circle>
<circle fill="currentColor" stroke="none" cx="50" cy="50" r="10">
<animate
attributeName="opacity"
du | "24"
height="24"
viewBox="0 0 100 100">
<path d="M0 0h100v100H0z" fill="none" />
<circle fill="currentColor" stroke="none" cx="20" cy="50" r="10">
<animate
attributeName="opacity"
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/LoadingAnimation.js",
"language": "javascript",
"file_size": 1394,
"cut_index": 524,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useState} from 'react';
import Store from '../../store';
import EditableName from './EditableName';
import EditableValue from '... | ,
store: Store,
type: 'props' | 'state' | 'hooks' | 'context',
};
export default function NewKeyValue({
bridge,
depth,
hidden,
hookID,
inspectedElement,
path,
store,
type,
}: Props): React.Node {
const [newPropKey, setNewPropKey] = u | type {FrontendBridge} from 'react-devtools-shared/src/bridge';
type Props = {
bridge: FrontendBridge,
depth: number,
hidden: boolean,
hookID?: ?number,
inspectedElement: InspectedElement,
path: Array<string | number> | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NewKeyValue.js",
"language": "javascript",
"file_size": 2543,
"cut_index": 563,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useContext} from 'react';
import {TreeDispatcherContext} from './TreeContext';
import Bu... | ault function OwnerView({
displayName,
environmentName,
hocDisplayNames,
compiledWithForget,
id,
isInStore,
}: OwnerViewProps): React.Node {
const dispatch = useContext(TreeDispatcherContext);
const {highlightHostInstance, clearHighlightHos | from './OwnerView.css';
type OwnerViewProps = {
displayName: string,
hocDisplayNames: Array<string> | null,
environmentName: string | null,
compiledWithForget: boolean,
id: number,
isInStore: boolean,
};
export def | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/OwnerView.js",
"language": "javascript",
"file_size": 2007,
"cut_index": 537,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactContext} from 'shared/ReactTypes';
import * as React from 'react';
import {createContext, useCallback, useContext, useEffect} from 'react';
import {createResource} from '../../cache';
import {BridgeC... | he';
type Context = (id: number) => Array<SerializedElement> | null;
const OwnersListContext: ReactContext<Context> = createContext<Context>(
((null: any): Context),
);
OwnersListContext.displayName = 'OwnersListContext';
type ResolveFn = (ownersList: | c/utils';
import type {OwnersList} from 'react-devtools-shared/src/backend/types';
import type {
Element,
SerializedElement,
} from 'react-devtools-shared/src/frontend/types';
import type {Resource, Thenable} from '../../cac | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/OwnersListContext.js",
"language": "javascript",
"file_size": 4915,
"cut_index": 614,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useState} from 'react';
import Store from '../../store';
import EditableName from './EditableName';
import {smartParse} from '.... | ring | number>,
store: Store,
type: 'props' | 'context' | 'hooks' | 'state',
};
export default function NewArrayValue({
bridge,
depth,
hidden,
hookID,
index,
inspectedElement,
path,
store,
type,
}: Props): React.Node {
const [key, | e {FrontendBridge} from 'react-devtools-shared/src/bridge';
type Props = {
bridge: FrontendBridge,
depth: number,
hidden: boolean,
hookID?: ?number,
index: number,
inspectedElement: InspectedElement,
path: Array<st | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NewArrayValue.js",
"language": "javascript",
"file_size": 2651,
"cut_index": 563,
"middle_length": 229
} |
import * as React from 'react';
import {useContext, useMemo} from 'react';
import {SettingsContext} from './SettingsContext';
import {StoreContext} from '../context';
import {CHANGE_LOG_URL} from 'react-devtools-shared/src/devtools/constants';
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
impor... | >.<patch>-<sha>
// e.g. "4.23.0-f0dd459e0"
// GitHub CHANGELOG headers are in the format of: <major>.<minor>.<patch>
// but the "." are stripped from anchor tags, becomming: <major><minor><patch>
const versionAnchor = version.replace(/^(\d+)\.(\d+) | } from '../../../constants';
import {useLocalStorage} from '../hooks';
function getChangeLogUrl(version: ?string): string | null {
if (!version) {
return null;
}
// Version numbers are in the format of: <major>.<minor | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/GeneralSettings.js",
"language": "javascript",
"file_size": 5138,
"cut_index": 716,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useContext, useMemo, useRef} from 'react';
import {useSubscription} from '../hooks';
import {StoreContext} from '../context';
import {ProfilerContext} from 'react-de... | Context(StoreContext);
const recordChangeDescriptionsSubscription = useMemo(
() => ({
getCurrentValue: () => store.recordChangeDescriptions,
subscribe: (callback: Function) => {
store.addListener('recordChangeDescriptions', callb | ort default function ProfilerSettings(_: {}): React.Node {
const {
isCommitFilterEnabled,
minCommitDuration,
setIsCommitFilterEnabled,
setMinCommitDuration,
} = useContext(ProfilerContext);
const store = use | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/ProfilerSettings.js",
"language": "javascript",
"file_size": 3300,
"cut_index": 614,
"middle_length": 229
} |
import type {ReactContext} from 'shared/ReactTypes';
import * as React from 'react';
import {
createContext,
useContext,
useEffect,
useLayoutEffect,
useMemo,
} from 'react';
import {
LOCAL_STORAGE_BROWSER_THEME,
LOCAL_STORAGE_PARSE_HOOK_NAMES_KEY,
LOCAL_STORAGE_TRACE_UPDATES_ENABLED_KEY,
} from 'react-... | ;
export type Theme = 'auto' | 'light' | 'dark';
type Context = {
displayDensity: DisplayDensity,
setDisplayDensity(value: DisplayDensity): void,
// Derived from display density.
// Specified as a separate prop so it can trigger a re-render of Fi | rt {BridgeContext} from '../context';
import {logEvent} from 'react-devtools-shared/src/Logger';
import type {BrowserTheme} from 'react-devtools-shared/src/frontend/types';
export type DisplayDensity = 'comfortable' | 'compact' | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/SettingsContext.js",
"language": "javascript",
"file_size": 6645,
"cut_index": 716,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useContext, useEffect, useMemo, useRef} from 'react';
import {SettingsModalContext} from './SettingsModalContext';
import Button from '../Button';
import ButtonIcon ... | ingsModal.css';
import type Store from 'react-devtools-shared/src/devtools/store';
type TabID = 'general' | 'debugging' | 'components' | 'profiler';
export default function SettingsModal(): React.Node {
const {isModalShowing, setIsModalShowing} = useC | ComponentsSettings from './ComponentsSettings';
import DebuggingSettings from './DebuggingSettings';
import GeneralSettings from './GeneralSettings';
import ProfilerSettings from './ProfilerSettings';
import styles from './Sett | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.js",
"language": "javascript",
"file_size": 3911,
"cut_index": 614,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactContext} from 'shared/ReactTypes';
import * as React from 'react';
import {
createContext,
useContext,
useCallback,
useState,
startTransit... | ng>>,
hookSettings: null | Promise<$ReadOnly<DevToolsHookSettings>>,
};
const SettingsModalContext: ReactContext<Context> = createContext<Context>(
((null: any): Context),
);
SettingsModalContext.displayName = 'SettingsModalContext';
function fetchEn | pes';
import type Store from '../../store';
export type Theme = 'auto' | 'light' | 'dark';
type Context = {
isModalShowing: boolean,
setIsModalShowing: (value: boolean) => void,
environmentNames: null | Promise<Array<stri | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/SettingsModalContext.js",
"language": "javascript",
"file_size": 2737,
"cut_index": 563,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useContext, useMemo} from 'react';
import {SettingsModalContext} from './SettingsModalCo... | etIsModalShowing(true),
[setIsModalShowing],
);
// Updating preferences while profiling is in progress could break things (e.g. filtering)
// Explicitly disallow it for now.
const isProfilingSubscription = useMemo(
() => ({
getCurren | ingsModalContextToggle(): React.Node {
const {setIsModalShowing} = useContext(SettingsModalContext);
const store = useContext(StoreContext);
const {profilerStore} = store;
const showFilterModal = useCallback(
() => s | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/SettingsModalContextToggle.js",
"language": "javascript",
"file_size": 1546,
"cut_index": 537,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './ChartNode.css';
import typeof {SyntheticMouseEvent} from 'react-dom-bindings/src/event... | r,
};
const minWidthToDisplay = 35;
export default function ChartNode({
color,
height,
isDimmed = false,
label,
onClick,
onMouseEnter,
onMouseLeave,
onDoubleClick,
textStyle,
width,
x,
y,
}: Props): React.Node {
return (
<g | icMouseEvent) => mixed,
onMouseEnter: (event: SyntheticMouseEvent) => mixed,
onMouseLeave: (event: SyntheticMouseEvent) => mixed,
placeLabelAboveNode?: boolean,
textStyle?: Object,
width: number,
x: number,
y: numbe | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ChartNode.js",
"language": "javascript",
"file_size": 1904,
"cut_index": 537,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext} from 'react';
import {ProfilerContext} from './ProfilerContext';
import Butt... | {profilerStore} = store;
const doesHaveInMemoryData = didRecordCommits;
const doesHaveUserTimingData = file !== null;
const clear = () => {
if (doesHaveInMemoryData) {
profilerStore.clear();
}
if (doesHaveUserTimingData) {
s | lt function ClearProfilingDataButton(): React.Node {
const store = useContext(StoreContext);
const {didRecordCommits, isProfiling} = useContext(ProfilerContext);
const {file, setFile} = useContext(TimelineContext);
const | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js",
"language": "javascript",
"file_size": 1269,
"cut_index": 524,
"middle_length": 229
} |
import * as React from 'react';
import {forwardRef, useCallback, useContext, useMemo, useState} from 'react';
import AutoSizer from 'react-virtualized-auto-sizer';
import {FixedSizeList} from 'react-window';
import {ProfilerContext} from './ProfilerContext';
import NoCommitData from './NoCommitData';
import CommitFlame... |
import type {ChartData, ChartNode} from './FlamegraphChartBuilder';
import type {CommitTree} from './types';
export type ItemData = {
chartData: ChartData,
onElementMouseEnter: (fiberData: TooltipFiberData) => void,
onElementMouseLeave: () => void, | oreContext} from '../context';
import {SettingsContext} from '../Settings/SettingsContext';
import Tooltip from './Tooltip';
import styles from './CommitFlamegraph.css';
import type {TooltipFiberData} from './HoveredFiberInfo'; | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraph.js",
"language": "javascript",
"file_size": 6330,
"cut_index": 716,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {Fragment, memo, useCallback, useContext} from 'react';
import {areEqual} from 'react-window';
import {barWidthThreshold} from './constants';
import {getGradientColor} from './uti... | istItem({data, index, style}: Props): React.Node {
const {
chartData,
onElementMouseEnter,
onElementMouseLeave,
scaleX,
selectedChartNode,
selectedChartNodeIndex,
selectFiber,
width,
} = data;
const {renderPathNodes, m | temData} from './CommitFlamegraph';
import typeof {SyntheticMouseEvent} from 'react-dom-bindings/src/events/SyntheticEvent';
type Props = {
data: ItemData,
index: number,
style: Object,
...
};
function CommitFlamegraphL | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraphListItem.js",
"language": "javascript",
"file_size": 3885,
"cut_index": 614,
"middle_length": 229
} |
import * as React from 'react';
import {useCallback, useContext, useMemo, useState} from 'react';
import AutoSizer from 'react-virtualized-auto-sizer';
import {FixedSizeList} from 'react-window';
import {ProfilerContext} from './ProfilerContext';
import NoCommitData from './NoCommitData';
import CommitRankedListItem fr... | from './RankedChartBuilder';
import type {CommitTree} from './types';
export type ItemData = {
chartData: ChartData,
onElementMouseEnter: (fiberData: TooltipFiberData) => void,
onElementMouseLeave: () => void,
scaleX: (value: number, fallbackValu | gs/SettingsContext';
import {useHighlightHostInstance} from '../hooks';
import Tooltip from './Tooltip';
import styles from './CommitRanked.css';
import type {TooltipFiberData} from './HoveredFiberInfo';
import type {ChartData} | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.js",
"language": "javascript",
"file_size": 5229,
"cut_index": 716,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {memo, useCallback, useContext} from 'react';
import {areEqual} from 'react-window';
import {minBarWidth} from './constants';
im... | rIndex,
selectFiber,
width,
} = data;
const node = chartData.nodes[index];
const {lineHeight} = useContext(SettingsContext);
const handleClick = useCallback(
(event: $FlowFixMe) => {
event.stopPropagation();
const {id, na | rops = {
data: ItemData,
index: number,
style: Object,
};
function CommitRankedListItem({data, index, style}: Props) {
const {
chartData,
onElementMouseEnter,
onElementMouseLeave,
scaleX,
selectedFibe | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/CommitRankedListItem.js",
"language": "javascript",
"file_size": 2067,
"cut_index": 563,
"middle_length": 229
} |
E_ERRORS_OR_WARNINGS,
TREE_OPERATION_APPLIED_ACTIVITY_SLICE_CHANGE,
SUSPENSE_TREE_OPERATION_ADD,
SUSPENSE_TREE_OPERATION_REMOVE,
SUSPENSE_TREE_OPERATION_REORDER_CHILDREN,
SUSPENSE_TREE_OPERATION_RESIZE,
SUSPENSE_TREE_OPERATION_SUSPENDERS,
} from 'react-devtools-shared/src/constants';
import {
parseElement... | ls-shared/src/devtools/views/Profiler/types';
const debug = (methodName: string, ...args: Array<string>) => {
if (__DEBUG__) {
console.log(
`%cCommitTreeBuilder %c${methodName}`,
'color: pink; font-weight: bold;',
'font-weight: bol | om 'react-devtools-shared/src/devtools/ProfilerStore';
import type {ElementType} from 'react-devtools-shared/src/frontend/types';
import type {
CommitTree,
CommitTreeNode,
ProfilingDataForRootFrontend,
} from 'react-devtoo | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/CommitTreeBuilder.js",
"language": "javascript",
"file_size": 15161,
"cut_index": 921,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {formatDuration} from './utils';
import ProfilerStore from 'react-devtools-shared/src/devtools/ProfilerStore';
import type {CommitTree} from './types';
export type ChartNode = {
actualDuration: number,
did... | tData({
commitIndex,
commitTree,
profilerStore,
rootID,
}: {
commitIndex: number,
commitTree: CommitTree,
profilerStore: ProfilerStore,
rootID: number,
}): ChartData {
const commitDatum = profilerStore.getCommitData(rootID, commitIndex);
| pth: number,
idToDepthMap: Map<number, number>,
maxSelfDuration: number,
renderPathNodes: Set<number>,
rows: Array<Array<ChartNode>>,
};
const cachedChartData: Map<string, ChartData> = new Map();
export function getChar | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/FlamegraphChartBuilder.js",
"language": "javascript",
"file_size": 5082,
"cut_index": 614,
"middle_length": 229
} |
import * as React from 'react';
import {
useContext,
useMemo,
useCallback,
memo,
useState,
useEffect,
} from 'react';
import styles from './HookChangeSummary.css';
import ButtonIcon from '../ButtonIcon';
import {InspectedElementContext} from '../Components/InspectedElementContext';
import {StoreContext} fro... | ew Intl.ListFormat('en', {
style: 'long',
type: 'conjunction',
});
type HookProps = {
hook: HooksNode,
hookNames: Map<string, string> | null,
};
const Hook: component(...props: HookProps) = memo(
({hook, hookNames}: HookProps) => {
const ho | rt Toggle from '../Toggle';
import type {HooksNode} from 'react-debug-tools/src/ReactDebugHooks';
import type {ChangeDescription} from './types';
// $FlowFixMe: Flow doesn't know about Intl.ListFormat
const hookListFormatter = n | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/HookChangeSummary.js",
"language": "javascript",
"file_size": 5891,
"cut_index": 716,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {Fragment, useContext} from 'react';
import InspectedElementBadges from '../Components/InspectedElementBadges';
import {Profile... | {fiberData}: Props): React.Node {
const {profilerStore} = useContext(StoreContext);
const {rootID, selectedCommitIndex} = useContext(ProfilerContext);
const {id, name} = fiberData;
const {profilingCache} = profilerStore;
if (rootID === null || | rInfo.css';
import type {ChartNode} from './FlamegraphChartBuilder';
export type TooltipFiberData = {
id: number,
name: string,
};
export type Props = {
fiberData: ChartNode,
};
export default function HoveredFiberInfo( | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/HoveredFiberInfo.js",
"language": "javascript",
"file_size": 2829,
"cut_index": 563,
"middle_length": 229
} |
ource code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import RecordToggle from './RecordToggle';
import styles from './Profiler.css';
export default function NoProfilingData(): React.Node {
return (
<... | Name={`${styles.Row} ${styles.LearnMoreRow}`}>
Click{' '}
<a
className={styles.LearnMoreLink}
href="https://fb.me/react-devtools-profiling"
rel="noopener noreferrer"
target="_blank">
here
| /> to start recording.
</div>
<div class | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/NoProfilingData.js",
"language": "javascript",
"file_size": 976,
"cut_index": 582,
"middle_length": 52
} |
import * as React from 'react';
import {Fragment, useContext, useEffect, useRef, useEffectEvent} from 'react';
import {ModalDialog} from '../ModalDialog';
import {ProfilerContext} from './ProfilerContext';
import TabBar from '../TabBar';
import ClearProfilingDataButton from './ClearProfilingDataButton';
import CommitFl... | rt SnapshotSelector from './SnapshotSelector';
import SidebarCommitInfo from './SidebarCommitInfo';
import NoProfilingData from './NoProfilingData';
import RecordingInProgress from './RecordingInProgress';
import ProcessingData from './ProcessingData';
imp | SidebarEventInfo from './SidebarEventInfo';
import RecordToggle from './RecordToggle';
import ReloadAndProfileButton from './ReloadAndProfileButton';
import ProfilingImportExportButtons from './ProfilingImportExportButtons';
impo | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js",
"language": "javascript",
"file_size": 7621,
"cut_index": 716,
"middle_length": 229
} |
ocalStorage, useSubscription} from '../hooks';
import {
TreeDispatcherContext,
TreeStateContext,
} from '../Components/TreeContext';
import {StoreContext} from '../context';
import {logEvent} from 'react-devtools-shared/src/Logger';
import {useCommitFilteringAndNavigation} from './useCommitFilteringAndNavigation';
... | elf (after a reload-and-profile action).
// It is synced between the backend and frontend via a Store subscription.
didRecordCommits: boolean,
isProcessingData: boolean,
isProfiling: boolean,
profilingData: ProfilingDataFrontend | null,
startPr | n the Profiler UI?
selectedTabID: TabID,
selectTab(id: TabID): void,
// Store subscription based values.
// The isProfiling value may be modified by the record button in the Profiler toolbar,
// or from the backend its | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ProfilerContext.js",
"language": "javascript",
"file_size": 10674,
"cut_index": 921,
"middle_length": 229
} |
import * as React from 'react';
import {Fragment, useContext, useCallback, useRef} from 'react';
import {ProfilerContext} from './ProfilerContext';
import {ModalDialogContext} from '../ModalDialog';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import {StoreContext} from '../context';
import {... | function ProfilingImportExportButtons(): React.Node {
const {isProfiling, profilingData, rootID} = useContext(ProfilerContext);
const {setFile} = useContext(TimelineContext);
const store = useContext(StoreContext);
const {profilerStore} = store;
| elineContext';
import isArray from 'shared/isArray';
import hasOwnProperty from 'shared/hasOwnProperty';
import styles from './ProfilingImportExportButtons.css';
import type {ProfilingDataExport} from './types';
export default | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js",
"language": "javascript",
"file_size": 5105,
"cut_index": 716,
"middle_length": 229
} |
nder the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './Profiler.css';
export default function ProfilingNotSupported(): React.Node {
return (
<div className={styles.Column}>
<div className={styles.H... | e at{' '}
<a
className={styles.Link}
href="https://fb.me/react-devtools-profiling"
rel="noopener noreferrer"
target="_blank">
reactjs.org/link/profiling
</a>
.
</p>
</div>
| <p className={styles.Paragraph}>
Learn mor | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingNotSupported.js",
"language": "javascript",
"file_size": 921,
"cut_index": 606,
"middle_length": 52
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {
ElementTypeForwardRef,
ElementTypeMemo,
} from 'react-devtools-shared/src/frontend/types';
import {formatDuration} from './utils';
import ProfilerStore fr... | commitIndex: number,
commitTree: CommitTree,
profilerStore: ProfilerStore,
rootID: number,
}): ChartData {
const commitDatum = profilerStore.getCommitData(rootID, commitIndex);
const {fiberActualDurations, fiberSelfDurations} = commitDatum;
| export type ChartData = {
maxValue: number,
nodes: Array<ChartNode>,
};
const cachedChartData: Map<string, ChartData> = new Map();
export function getChartData({
commitIndex,
commitTree,
profilerStore,
rootID,
}: {
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/RankedChartBuilder.js",
"language": "javascript",
"file_size": 2629,
"cut_index": 563,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext} from 'react';
import Button from '../Button';
import ButtonIcon from '../But... | } else if (isProfiling) {
className = styles.ActiveRecordToggle;
}
const isMac =
typeof navigator !== 'undefined' &&
navigator.platform.toUpperCase().indexOf('MAC') >= 0;
const shortcut = isMac ? '⌘E' : 'Ctrl+E';
const title = `${isP | sabled}: Props): React.Node {
const {isProfiling, startProfiling, stopProfiling} =
useContext(ProfilerContext);
let className = styles.InactiveRecordToggle;
if (disabled) {
className = styles.DisabledRecordToggle;
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/RecordToggle.js",
"language": "javascript",
"file_size": 1320,
"cut_index": 524,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useCallback, useContext, useMemo} from 'react';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import ... | () => ({
getCurrentValue: () => ({
recordChangeDescriptions: store.recordChangeDescriptions,
supportsReloadAndProfile: store.supportsReloadAndProfile,
}),
subscribe: (callback: Function) => {
store.addListener('r | };
export default function ReloadAndProfileButton({
disabled,
}: {
disabled: boolean,
}): React.Node {
const bridge = useContext(BridgeContext);
const store = useContext(StoreContext);
const subscription = useMemo(
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/ReloadAndProfileButton.js",
"language": "javascript",
"file_size": 2384,
"cut_index": 563,
"middle_length": 229
} |
m '../portaledContent';
import styles from './SuspenseTab.css';
import SuspenseBreadcrumbs from './SuspenseBreadcrumbs';
import SuspenseRects from './SuspenseRects';
import SuspenseTimeline from './SuspenseTimeline';
import ActivityList from './ActivityList';
import {
SuspenseTreeDispatcherContext,
SuspenseTreeStat... | ed/src/devtools/views/Settings/SettingsModalContextToggle';
import {SettingsModalContextController} from 'react-devtools-shared/src/devtools/views/Settings/SettingsModalContext';
import {TreeStateContext} from '../Components/TreeContext';
type Orientation | {SyntheticPointerEvent} from 'react-dom-bindings/src/events/SyntheticEvent';
import SettingsModal from 'react-devtools-shared/src/devtools/views/Settings/SettingsModal';
import SettingsModalContextToggle from 'react-devtools-shar | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js",
"language": "javascript",
"file_size": 19384,
"cut_index": 1331,
"middle_length": 229
} |
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {LOCAL_STORAGE_ALWAYS_OPEN_IN_EDITOR} from '../../../constants';
import {useLoca... | cked={alwaysOpenInEditor}
onChange={({currentTarget}) => {
setAlwaysOpenInEditor(currentTarget.checked);
if (onChange) {
onChange(currentTarget.checked);
}
}}
className={styles.SettingRowChe | lwaysOpenInEditor, setAlwaysOpenInEditor] = useLocalStorage<boolean>(
LOCAL_STORAGE_ALWAYS_OPEN_IN_EDITOR,
false,
);
return (
<label className={styles.SettingRow}>
<input
type="checkbox"
che | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/CodeEditorByDefault.js",
"language": "javascript",
"file_size": 1088,
"cut_index": 515,
"middle_length": 229
} |
ElementTypeFunction,
ElementTypeForwardRef,
ElementTypeHostComponent,
ElementTypeMemo,
ElementTypeOtherOrUnknown,
ElementTypeProfiler,
ElementTypeSuspense,
ElementTypeActivity,
ElementTypeViewTransition,
} from 'react-devtools-shared/src/frontend/types';
import styles from './SettingsShared.css';
impo... | React.Node {
const store = useContext(StoreContext);
const {parseHookNames, setParseHookNames} = useContext(SettingsContext);
const collapseNodesByDefaultSubscription = useMemo(
() => ({
getCurrentValue: () => store.collapseNodesByDefault | act-devtools-shared/src/frontend/types';
import {isInternalFacebookBuild} from 'react-devtools-feature-flags';
export default function ComponentsSettings({
environmentNames,
}: {
environmentNames: Promise<Array<string>>,
}): | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js",
"language": "javascript",
"file_size": 19186,
"cut_index": 1331,
"middle_length": 229
} |
import * as React from 'react';
import {use, useState, useEffect} from 'react';
import type {DevToolsHookSettings} from 'react-devtools-shared/src/backend/types';
import type Store from 'react-devtools-shared/src/devtools/store';
import styles from './SettingsShared.css';
type Props = {
hookSettings: Promise<$Read... | const [hideConsoleLogsInStrictMode, setHideConsoleLogsInStrictMode] =
useState(usedHookSettings.hideConsoleLogsInStrictMode);
const [showInlineWarningsAndErrors, setShowInlineWarningsAndErrors] =
useState(usedHookSettings.showInlineWarningsAndE | onst [appendComponentStack, setAppendComponentStack] = useState(
usedHookSettings.appendComponentStack,
);
const [breakOnConsoleErrors, setBreakOnConsoleErrors] = useState(
usedHookSettings.breakOnConsoleErrors,
);
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/DebuggingSettings.js",
"language": "javascript",
"file_size": 5270,
"cut_index": 716,
"middle_length": 229
} |
mport * as React from 'react';
import {
Fragment,
useCallback,
useContext,
useLayoutEffect,
useReducer,
useRef,
useState,
} from 'react';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import Toggle from '../Toggle';
import ElementBadges from './ElementBadges';
import {OwnersListC... | shared/src/frontend/types';
import styles from './OwnersStack.css';
type SelectOwner = (owner: SerializedElement | null) => void;
type ACTION_UPDATE_OWNER_ID = {
type: 'UPDATE_OWNER_ID',
ownerID: number | null,
owners: Array<SerializedElement>,
}; | } from '../context';
import Tooltip from '../Components/reach-ui/tooltip';
import {
Menu,
MenuList,
MenuButton,
MenuItem,
} from '../Components/reach-ui/menu-button';
import type {SerializedElement} from 'react-devtools- | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/OwnersStack.js",
"language": "javascript",
"file_size": 9118,
"cut_index": 716,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {use, useContext} from 'react';
import useOpenResource from '../useOpenResource';
import ElementBadges from './ElementBadges';
import styles from './StackTraceView.css';
impor... | te: ReactCallSite,
environmentName: null | string,
};
export function CallSiteView({
callSite,
environmentName,
}: CallSiteViewProps): React.Node {
const fetchFileWithCaching = useContext(FetchFileWithCachingContext);
const [virtualFunctionName | om './FetchFileWithCachingContext';
import {symbolicateSourceWithCache} from 'react-devtools-shared/src/symbolicateSource';
import formatLocationForDisplay from './formatLocationForDisplay';
type CallSiteViewProps = {
callSi | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/StackTraceView.js",
"language": "javascript",
"file_size": 3447,
"cut_index": 614,
"middle_length": 229
} |
e from '../useInferredName';
import {getClassNameForEnvironment} from '../SuspenseTab/SuspenseEnvironmentColors.js';
import type {
InspectedElement,
SerializedAsyncInfo,
} from 'react-devtools-shared/src/frontend/types';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import {
UNKNOWN_SUS... | : number,
maxTime: number,
skipName?: boolean,
};
function getShortDescription(name: string, description: string): string {
const descMaxLength = 30 - name.length;
if (descMaxLength > 1) {
const l = description.length;
if (l > 0 && l <= de | from 'react-devtools-shared/src/frontend/types';
type RowProps = {
bridge: FrontendBridge,
element: Element,
inspectedElement: InspectedElement,
store: Store,
asyncInfo: SerializedAsyncInfo,
index: number,
minTime | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSuspendedBy.js",
"language": "javascript",
"file_size": 19801,
"cut_index": 1331,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext} from 'react';
import {ContextMenuContext} from '../context';
import {
copyInspectedElementPath as copyInspectedElementPathAPI,
storeAsGlobal as storeAsGlobalAPI,... | ode,
anchorElementRef: {
current: React.ElementRef<any> | null,
},
store: Store,
attributeSourceCanBeInspected: boolean,
bridge: FrontendBridge,
id: number,
path: Array<any>,
canBeCopiedToClipboard: boolean,
};
export default function | s/store';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type {ContextMenuContextType} from '../context';
import styles from './KeyValueContextMenuContainer.css';
type Props = {
children: React.N | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/KeyValueContextMenuContainer.js",
"language": "javascript",
"file_size": 3360,
"cut_index": 614,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './AutoSizeInput.css';
type Props = {
className?: string,
onFocus?: (eve... | ue.length;
}
if (typeof onFocus === 'function') {
onFocus(event);
}
};
const isEmpty = value === '' || value === '""';
return (
// $FlowFixMe[cannot-spread-inexact] unsafe rest spread
<input
className={[styles.Input | ,
...rest
}: Props): React.Node {
// $FlowFixMe[missing-local-annot]
const onFocusWrapper = event => {
const input = event.target;
if (input !== null) {
input.selectionStart = 0;
input.selectionEnd = val | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/AutoSizeInput.js",
"language": "javascript",
"file_size": 1295,
"cut_index": 524,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import styles from './LayoutViewer.css';
import type {Layout} from './types';
type Props = {
id: number,
... | top || '-'}</label>
</div>
<div className={styles.BoxRow}>
<label>{margin.left || '-'}</label>
<div className={styles.SolidBox}>
<div className={styles.LabelRow}>
<label className={styles.Labe | youtViewer}>
<div className={styles.Header}>layout</div>
<div className={styles.DashedBox}>
<div className={styles.LabelRow}>
<label className={styles.Label}>margin</label>
<label>{margin. | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/LayoutViewer.js",
"language": "javascript",
"file_size": 1868,
"cut_index": 537,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactContext} from 'shared/ReactTypes';
import * as React from 'react';
import {createContext, useContext, useEffect, useState} from 'react';
import {
BridgeContext,
StoreContext,
} from 'react-devtoo... | ckend} from 'react-devtools-shared/src/backend/NativeStyleEditor/types';
import type {StyleAndLayout as StyleAndLayoutFrontend} from './types';
type Context = StyleAndLayoutFrontend | null;
const NativeStyleContext: ReactContext<Context> = createContext< | /src/devtools/views/Components/TreeContext';
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
import type Store from 'react-devtools-shared/src/devtools/store';
import type {StyleAndLayout as StyleAndLayoutBa | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/context.js",
"language": "javascript",
"file_size": 3361,
"cut_index": 614,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useState, startTransition} from 'react';
import portaledContent from '../portaledContent';
import styles from './EditorPane.css';
import Button from 'react-devtools-shared/src... | render every keystroke.
selectionRef: {
line: number,
column: number,
},
};
export type Props = {selectedSource: ?SourceSelection};
function EditorPane({selectedSource}: Props) {
const [showSettings, setShowSettings] = useState(false);
co | ditorURL';
import EditorSettings from './EditorSettings';
import CodeEditorByDefault from '../Settings/CodeEditorByDefault';
export type SourceSelection = {
url: string,
// The selection is a ref so that we don't have to re | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Editor/EditorPane.js",
"language": "javascript",
"file_size": 3408,
"cut_index": 614,
"middle_length": 229
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {ReactFunctionLocation, ReactCallSite} from 'shared/ReactTypes';
export function checkConditions(
editorURL: string,
source: ReactFunctionLocation | R... | e-name]
if (!__IS_INTERNAL_VERSION__) {
// In this case, we can't really determine the path to a file, disable a button
return {url: null, shouldDisableButton: true};
} else {
const endOfSourceMapURLPattern = '.js/';
| if sourceURL is a correct URL, which has a protocol specified
if (sourceURL.startsWith('file:///')) {
filePath = new URL(sourceURL).pathname;
} else if (sourceURL.includes('://')) {
// $FlowFixMe[cannot-resolv | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Editor/utils.js",
"language": "javascript",
"file_size": 2047,
"cut_index": 563,
"middle_length": 229
} |
mport type {
Element,
ActivitySliceFilter,
ComponentFilter,
} from 'react-devtools-shared/src/frontend/types';
import typeof {
SyntheticMouseEvent,
SyntheticKeyboardEvent,
} from 'react-dom-bindings/src/events/SyntheticEvent';
import type Store from 'react-devtools-shared/src/devtools/store';
import * as Rea... | function useChangeActivitySliceAction(): (
id: Element['id'] | null,
) => void {
const store = useContext(StoreContext);
function changeActivitySliceAction(activityID: Element['id'] | null) {
const nextFilters: ComponentFilter[] = [];
// Rem | port styles from './ActivityList.css';
import {
TreeStateContext,
TreeDispatcherContext,
} from '../Components/TreeContext';
import {useHighlightHostInstance} from '../hooks';
import {StoreContext} from '../context';
export | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/ActivityList.js",
"language": "javascript",
"file_size": 8107,
"cut_index": 716,
"middle_length": 229
} |
';
import {
SuspenseTreeStateContext,
SuspenseTreeDispatcherContext,
} from './SuspenseTreeContext';
import {getClassNameForEnvironment} from './SuspenseEnvironmentColors.js';
import type RBush from 'rbush';
function ScaledRect({
className,
rect,
visible,
suspended,
selected,
hovered,
adjust,
...pr... | Box.y) / viewBox.height) * 100 + '%';
return (
<div
{...props}
className={styles.SuspenseRectsScaledRect + ' ' + className}
data-visible={visible}
data-suspended={suspended}
data-selected={selected}
data-hovered={ | eContext(ViewBox);
const width = (rect.width / viewBox.width) * 100 + '%';
const height = (rect.height / viewBox.height) * 100 + '%';
const x = ((rect.x - viewBox.x) / viewBox.width) * 100 + '%';
const y = ((rect.y - view | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseRects.js",
"language": "javascript",
"file_size": 17933,
"cut_index": 1331,
"middle_length": 229
} |
timelineIndex: number | -1,
hoveredTimelineIndex: number | -1,
uniqueSuspendersOnly: boolean,
playing: boolean,
autoSelect: boolean,
autoScroll: {id: number}, // Ref that's set to 0 after scrolling once.
};
type ACTION_SUSPENSE_TREE_MUTATION = {
type: 'HANDLE_SUSPENSE_TREE_MUTATION',
payload: [Map<Susp... | imeline
SuspenseNode['id'] | null,
// Whether this timeline includes only unique suspenders
boolean,
],
};
type ACTION_SUSPENSE_SET_TIMELINE_INDEX = {
type: 'SUSPENSE_SET_TIMELINE_INDEX',
payload: number,
};
type ACTION_SUSPENSE_SKIP_TIME | ELECT_SUSPENSE_BY_ID',
payload: SuspenseNode['id'],
};
type ACTION_SET_SUSPENSE_TIMELINE = {
type: 'SET_SUSPENSE_TIMELINE',
payload: [
$ReadOnlyArray<SuspenseTimelineStep>,
// The next Suspense ID to select in the t | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTreeContext.js",
"language": "javascript",
"file_size": 17770,
"cut_index": 1331,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {
LOCAL_STORAGE_OPEN_IN_EDITOR_URL,
LOCAL_STORAGE_OPEN_IN_EDITOR_URL_PRESET,
} from '../../../cons... | tom',
>(LOCAL_STORAGE_OPEN_IN_EDITOR_URL_PRESET, getDefaultPreset());
const [openInEditorURL, setOpenInEditorURL] = useLocalStorage<string>(
LOCAL_STORAGE_OPEN_IN_EDITOR_URL,
getDefaultOpenInEditorURL(),
);
return (
<>
<select
| ;
export default function CodeEditorOptions({
environmentNames,
}: {
environmentNames: Promise<Array<string>>,
}): React.Node {
const [openInEditorURLPreset, setOpenInEditorURLPreset] = useLocalStorage<
'vscode' | 'cus | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Settings/CodeEditorOptions.js",
"language": "javascript",
"file_size": 1663,
"cut_index": 537,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {copy} from 'clipboard-js';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import Skeleton from './Skeleton';
import {withPermissionsCheck} from 'react-d... | Location,
symbolicatedSourcePromise: Promise<SourceMappedLocation | null>,
};
function InspectedElementSourcePanel({
source,
symbolicatedSourcePromise,
}: Props): React.Node {
return (
<div>
<div className={styles.SourceHeaderRow}>
| e';
import type {ReactFunctionLocation} from 'shared/ReactTypes';
import styles from './InspectedElementSourcePanel.css';
import formatLocationForDisplay from './formatLocationForDisplay';
type Props = {
source: ReactFunction | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementSourcePanel.js",
"language": "javascript",
"file_size": 3494,
"cut_index": 614,
"middle_length": 229
} |
btreeLeafElementID: number | null,
// Search
searchIndex: number | null,
searchResults: Array<number>,
searchText: string,
// Owners
ownerID: number | null,
ownerFlatTree: Array<Element> | null,
// Activity slice
activityID: Element['id'] | null,
activities: $ReadOnlyArray<{id: Element['id'], dep... | lement['id']],
};
type ACTION_RESET_OWNER_STACK = {
type: 'RESET_OWNER_STACK',
};
type ACTION_SELECT_CHILD_ELEMENT_IN_TREE = {
type: 'SELECT_CHILD_ELEMENT_IN_TREE',
};
type ACTION_SELECT_ELEMENT_AT_INDEX = {
type: 'SELECT_ELEMENT_AT_INDEX',
payload | H_RESULT',
};
type ACTION_GO_TO_PREVIOUS_SEARCH_RESULT = {
type: 'GO_TO_PREVIOUS_SEARCH_RESULT',
};
type ACTION_HANDLE_STORE_MUTATION = {
type: 'HANDLE_STORE_MUTATION',
payload: [Array<number>, Map<number, number>, null | E | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/TreeContext.js",
"language": "javascript",
"file_size": 35347,
"cut_index": 2151,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {toNormalUrl} from 'jsc-safe-url';
// This function is based on describeComponentFrame() in packages/shared/ReactCompone... | h provides bundle URL with query parameters prefixed with /&
const BEFORE_SLASH_RE = /^(.*)[\\\/]/;
let nameOnly = sanitizedSourceURL.replace(BEFORE_SLASH_RE, '');
// In DEV, include code for a common special case:
// prefer "folder/index.js" ins | imiter
// https://www.npmjs.com/package/jsc-safe-url
const sanitizedSourceURL = sourceURL.includes('//&')
? toNormalUrl(sourceURL)
: sourceURL;
// Note: this RegExp doesn't work well with URLs from Metro,
// whic | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/formatLocationForDisplay.js",
"language": "javascript",
"file_size": 1436,
"cut_index": 524,
"middle_length": 229
} |
ight (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import ReachTooltip from '@reach/tooltip';
import tooltipStyles from './Tooltip.css';
import use... | es();
return (
// $FlowFixMe[cannot-spread-inexact] unsafe spread
<ReachTooltip
className={`${tooltipStyles.Tooltip} ${className}`}
style={style}
{...props}>
{children}
</ReachTooltip>
);
};
export default Tooltip;
| = useThemeStyl | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/reach-ui/tooltip.js",
"language": "javascript",
"file_size": 794,
"cut_index": 524,
"middle_length": 14
} |
iates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import Button from 'react-devtools-shared/src/devtools/views/Button';
import ButtonIcon from 'react-devtools-shared/src/devtools/views... | ): React.Node {
let disable;
if (source == null) {
disable = true;
} else {
const staleLocation: ReactFunctionLocation = [
'',
source.url,
// This is not live but we just use any line/column to validate whether this can be o | ed/ReactTypes';
import {checkConditions} from './utils';
type Props = {
editorURL: string,
source: ?SourceSelection,
className?: string,
};
function ActualOpenInEditorButton({
editorURL,
source,
className,
}: Props | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Editor/OpenInEditorButton.js",
"language": "javascript",
"file_size": 2501,
"cut_index": 563,
"middle_length": 229
} |
import * as React from 'react';
import {useContext, useEffect} from 'react';
import {BridgeContext, StoreContext} from '../context';
import {TreeDispatcherContext} from '../Components/TreeContext';
import {useScrollToHostInstance} from '../hooks';
import {
SuspenseTreeDispatcherContext,
SuspenseTreeStateContext,
} ... | atcherContext);
const suspenseTreeDispatch = useContext(SuspenseTreeDispatcherContext);
const scrollToHostInstance = useScrollToHostInstance();
const {timeline, timelineIndex, hoveredTimelineIndex, playing, autoScroll} =
useContext(SuspenseTreeS | con';
import type {SuspenseNode} from '../../../frontend/types';
function SuspenseTimelineInput() {
const bridge = useContext(BridgeContext);
const store = useContext(StoreContext);
const treeDispatch = useContext(TreeDisp | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js",
"language": "javascript",
"file_size": 6736,
"cut_index": 716,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import Button from 'react-devtools-shared/src/devtools/views/Button';
import ButtonIcon from 'react-devtools... | utton({
editorURL,
source,
symbolicatedSourcePromise,
}: Props): React.Node {
const symbolicatedSource = React.use(symbolicatedSourcePromise);
const {url, shouldDisableButton} = checkConditions(
editorURL,
symbolicatedSource ? symbolicat | mport {checkConditions} from '../Editor/utils';
type Props = {
editorURL: string,
source: ReactFunctionLocation,
symbolicatedSourcePromise: Promise<SourceMappedLocation | null>,
};
function OpenSymbolicatedSourceInEditorB | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/OpenInEditorButton.js",
"language": "javascript",
"file_size": 1606,
"cut_index": 537,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import {useContext, useMemo} from 'react';
import {StoreContext} from 'react-devtools-shared/src/devtools/vi... | {
const store = useContext(StoreContext);
const subscription = useMemo(
() => ({
getCurrentValue: () => store.supportsNativeStyleEditor,
subscribe: (callback: Function) => {
store.addListener('supportsNativeStyleEditor', callbac |
import {NativeStyleContext} from './context';
import LayoutViewer from './LayoutViewer';
import StyleEditor from './StyleEditor';
import styles from './index.css';
export default function NativeStyleEditorWrapper(): React.Node | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/index.js",
"language": "javascript",
"file_size": 1999,
"cut_index": 537,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {SuspenseTimelineStep} from 'react-devtools-shared/src/frontend/types';
import typeof {SyntheticEvent} from 'react-dom-bindings/src/events/SyntheticEvent';
import * as React from 'react';
import {useConte... | onChange,
onFocus,
onHoverSegment,
onHoverLeave,
}: {
min: number,
max: number,
timeline: $ReadOnlyArray<SuspenseTimelineStep>,
value: number,
highlight: number,
onBlur?: () => void,
onChange: (index: number) => void,
onFocus?: () => | uspenseEnvironmentColors.js';
import Tooltip from '../Components/reach-ui/tooltip';
import {StoreContext} from '../context';
export default function SuspenseScrubber({
min,
max,
timeline,
value,
highlight,
onBlur,
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseScrubber.js",
"language": "javascript",
"file_size": 3627,
"cut_index": 614,
"middle_length": 229
} |
Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import * as React from 'react';
import ButtonIcon from '../ButtonIcon';
import Button from '../Button';
import type {ReactFunctionLocation}... | <React.Suspense
fallback={
<Button disabled={true} title="Loading source maps...">
<ButtonIcon type="view-source" />
</Button>
}>
<ActualSourceButton
source={source}
symbolicatedSourcePromise={sym | ull | ReactFunctionLocation,
symbolicatedSourcePromise: Promise<SourceMappedLocation | null> | null,
};
function InspectedElementViewSourceButton({
source,
symbolicatedSourcePromise,
}: Props): React.Node {
return (
| {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/InspectedElementViewSourceButton.js",
"language": "javascript",
"file_size": 1855,
"cut_index": 537,
"middle_length": 229
} |
import * as React from 'react';
import {useContext, useMemo, useRef, useState} from 'react';
import {copy} from 'clipboard-js';
import {
BridgeContext,
StoreContext,
} from 'react-devtools-shared/src/devtools/views/context';
import Button from '../../Button';
import ButtonIcon from '../../ButtonIcon';
import {seria... | ue: any) => void;
type ChangeValueFn = (name: string, value: any) => void;
export default function StyleEditor({id, style}: Props): React.Node {
const bridge = useContext(BridgeContext);
const store = useContext(StoreContext);
const changeAttribute | nsCheck} from 'react-devtools-shared/src/frontend/utils/withPermissionsCheck';
import type {Style} from './types';
type Props = {
id: number,
style: Style,
};
type ChangeAttributeFn = (oldName: string, newName: string, val | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/StyleEditor.js",
"language": "javascript",
"file_size": 7892,
"cut_index": 716,
"middle_length": 229
} |
{Fragment, useContext, useLayoutEffect, useRef, useState} from 'react';
import Button from '../Button';
import ButtonIcon from '../ButtonIcon';
import Tooltip from '../Components/reach-ui/tooltip';
import {
Menu,
MenuList,
MenuButton,
MenuItem,
} from '../Components/reach-ui/menu-button';
import {
TreeDispatc... | theticMouseEvent) => void,
onItemPointerEnter: (
id: SuspenseNode['id'],
scrollIntoView?: boolean,
) => void,
onItemPointerLeave: (event: SyntheticMouseEvent) => void,
setElementsTotalWidth: (width: number) => void,
};
function SuspenseBre | from './SuspenseBreadcrumbs.css';
import {
SuspenseTreeStateContext,
SuspenseTreeDispatcherContext,
} from './SuspenseTreeContext';
type SuspenseBreadcrumbsFlatListProps = {
onItemClick: (id: SuspenseNode['id'], event: Syn | {
"filepath": "packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseBreadcrumbs.js",
"language": "javascript",
"file_size": 10425,
"cut_index": 921,
"middle_length": 229
} |
MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {SchedulingEvent} from 'react-devtools-timeline/src/types';
import type {ReactFunctionLocation} from 'shared/ReactTypes';
import * as React from 'react';
import Button from '../Button';
import ButtonIcon f... | c/frontend/utils/withPermissionsCheck';
import useOpenResource from '../useOpenResource';
import styles from './SidebarEventInfo.css';
export type Props = {};
type FunctionLocationProps = {
location: ReactFunctionLocation,
displayName: string,
};
fu | m 'react-devtools-timeline/src/utils/formatting';
import {stackToComponentLocations} from 'react-devtools-shared/src/devtools/utils';
import {copy} from 'clipboard-js';
import {withPermissionsCheck} from 'react-devtools-shared/sr | {
"filepath": "packages/react-devtools-shared/src/devtools/views/Profiler/SidebarEventInfo.js",
"language": "javascript",
"file_size": 4128,
"cut_index": 614,
"middle_length": 229
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.