Added FB copyright header
Brian Vaughn committed
Aug 27, 2019 at 10:54 UTC
8e1434e80e203ebd2cd066772d68f121808c83aa
153 files changed
+1224
-153
packages/react-devtools-core/src/backend.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Agent from 'react-devtools-shared/src/backend/agent';
11
import Bridge from 'react-devtools-shared/src/bridge';
packages/react-devtools-core/src/editor.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {existsSync} from 'fs';
11
import {basename, join, isAbsolute} from 'path';
packages/react-devtools-core/src/standalone.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {createElement} from 'react';
11
import {
packages/react-devtools-extensions/flow-typed/chrome.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
'use strict';
11
packages/react-devtools-shared/src/__tests__/bridge-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('Bridge', () => {
11
let Bridge;
packages/react-devtools-shared/src/__tests__/console-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('console', () => {
11
let React;
packages/react-devtools-shared/src/__tests__/inspectedElementContext-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
import type {GetInspectedElementPath} from 'react-devtools-shared/src/devtools/views/Components/InspectedElementContext';
packages/react-devtools-shared/src/__tests__/legacy/inspectElement-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {InspectedElementPayload} from 'react-devtools-shared/src/backend/types';
11
import type {DehydratedData} from 'react-devtools-shared/src/devtools/views/Components/types';
packages/react-devtools-shared/src/__tests__/legacy/storeLegacy-v15-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('Store (legacy)', () => {
11
let React;
packages/react-devtools-shared/src/__tests__/ownersListContext-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
import type {Element} from 'react-devtools-shared/src/devtools/views/Components/types';
packages/react-devtools-shared/src/__tests__/profilerContext-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
packages/react-devtools-shared/src/__tests__/profilerStore-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type Store from 'react-devtools-shared/src/devtools/store';
11
packages/react-devtools-shared/src/__tests__/profilingCache-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
packages/react-devtools-shared/src/__tests__/profilingCharts-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof TestRendererType from 'react-test-renderer';
11
import type Store from 'react-devtools-shared/src/devtools/store';
packages/react-devtools-shared/src/__tests__/profilingCommitTreeBuilder-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof TestRendererType from 'react-test-renderer';
11
import type Store from 'react-devtools-shared/src/devtools/store';
packages/react-devtools-shared/src/__tests__/profilingUtils-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('profiling utils', () => {
11
let utils;
packages/react-devtools-shared/src/__tests__/setupTests.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {
11
BackendBridge,
packages/react-devtools-shared/src/__tests__/store-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('Store', () => {
11
let React;
packages/react-devtools-shared/src/__tests__/storeComponentFilters-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
11
import type Store from 'react-devtools-shared/src/devtools/store';
packages/react-devtools-shared/src/__tests__/storeOwners-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
const {printOwnersList} = require('../devtools/utils');
11
packages/react-devtools-shared/src/__tests__/storeStressSync-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('StoreStress (Sync Mode)', () => {
11
let React;
packages/react-devtools-shared/src/__tests__/storeStressTestConcurrent-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
describe('StoreStressConcurrent', () => {
11
let React;
packages/react-devtools-shared/src/__tests__/treeContext-test.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
packages/react-devtools-shared/src/__tests__/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import typeof ReactTestRenderer from 'react-test-renderer';
11
packages/react-devtools-shared/src/backend/NativeStyleEditor/resolveBoxStyle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {BoxStyle} from './types';
11
packages/react-devtools-shared/src/backend/NativeStyleEditor/setupNativeStyleEditor.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Agent from 'react-devtools-shared/src/backend/agent';
11
import resolveBoxStyle from './resolveBoxStyle';
packages/react-devtools-shared/src/backend/NativeStyleEditor/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
export type BoxStyle = $ReadOnly<{|
11
bottom: number,
packages/react-devtools-shared/src/backend/agent.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import EventEmitter from 'events';
11
import throttle from 'lodash.throttle';
packages/react-devtools-shared/src/backend/console.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {getInternalReactConstants} from './renderer';
11
import describeComponentFrame from './describeComponentFrame';
packages/react-devtools-shared/src/backend/describeComponentFrame.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
// This file was forked from the React GitHub repo:
11
// https://raw.githubusercontent.com/facebook/react/master/packages/shared/describeComponentFrame.js
packages/react-devtools-shared/src/backend/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Agent from './agent';
11
packages/react-devtools-shared/src/backend/legacy/renderer.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {
11
ElementTypeClass,
packages/react-devtools-shared/src/backend/legacy/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {InternalInstance} from './renderer';
11
packages/react-devtools-shared/src/backend/renderer.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {gte} from 'semver';
11
import {
packages/react-devtools-shared/src/backend/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {ReactContext} from 'shared/ReactTypes';
11
import type {Source} from 'shared/ReactElementType';
packages/react-devtools-shared/src/backend/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {dehydrate} from '../hydration';
11
packages/react-devtools-shared/src/backend/views/Highlighter/Highlighter.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Overlay from './Overlay';
11
packages/react-devtools-shared/src/backend/views/Highlighter/Overlay.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import assign from 'object-assign';
11
packages/react-devtools-shared/src/backend/views/Highlighter/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import memoize from 'memoize-one';
11
import throttle from 'lodash.throttle';
packages/react-devtools-shared/src/bridge.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import EventEmitter from 'events';
11
packages/react-devtools-shared/src/constants.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
// Flip this flag to true to enable verbose console debug logging.
11
export const __DEBUG__ = false;
packages/react-devtools-shared/src/devtools/ProfilerStore.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import EventEmitter from 'events';
11
import {prepareProfilingDataFrontendFromBackendAndStore} from './views/Profiler/utils';
packages/react-devtools-shared/src/devtools/ProfilingCache.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import ProfilerStore from './ProfilerStore';
11
import {
packages/react-devtools-shared/src/devtools/cache.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {createContext} from 'react';
11
packages/react-devtools-shared/src/devtools/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {FrontendBridge} from 'react-devtools-shared/src/bridge';
11
packages/react-devtools-shared/src/devtools/store.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import EventEmitter from 'events';
11
import {inspect} from 'util';
packages/react-devtools-shared/src/devtools/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {Element} from './views/Components/types';
11
import type Store from './store';
packages/react-devtools-shared/src/devtools/views/Button.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import Tooltip from '@reach/tooltip';
packages/react-devtools-shared/src/devtools/views/ButtonIcon.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import styles from './ButtonIcon.css';
packages/react-devtools-shared/src/devtools/views/Components/Badge.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment} from 'react';
11
import {
packages/react-devtools-shared/src/devtools/views/Components/Components.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Suspense} from 'react';
11
import Tree from './Tree';
packages/react-devtools-shared/src/devtools/views/Components/EditableValue.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useRef, useState} from 'react';
11
import Button from '../Button';
packages/react-devtools-shared/src/devtools/views/Components/Element.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext, useMemo, useState} from 'react';
11
import Store from 'react-devtools-shared/src/devtools/store';
packages/react-devtools-shared/src/devtools/views/Components/ExpandCollapseToggle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import Button from '../Button';
packages/react-devtools-shared/src/devtools/views/Components/HocBadges.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import {
packages/react-devtools-shared/src/devtools/views/Components/HooksTree.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {copy} from 'clipboard-js';
11
import React, {useCallback, useContext, useState} from 'react';
packages/react-devtools-shared/src/devtools/views/Components/InspectHostNodesToggle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useEffect, useState} from 'react';
11
import {BridgeContext} from '../context';
packages/react-devtools-shared/src/devtools/views/Components/InspectedElementContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shared/src/devtools/views/Components/InspectedElementTree.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {copy} from 'clipboard-js';
11
import React, {useCallback} from 'react';
packages/react-devtools-shared/src/devtools/views/Components/KeyValue.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useEffect, useRef, useState} from 'react';
11
import type {Element} from 'react';
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/AutoSizeInput.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useLayoutEffect, useRef} from 'react';
11
import styles from './AutoSizeInput.css';
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/LayoutViewer.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import styles from './LayoutViewer.css';
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/StyleEditor.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useContext, useMemo, useRef, useState} from 'react';
11
import {unstable_batchedUpdates as batchedUpdates} from 'react-dom';
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/context.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext, useMemo} from 'react';
11
import {StoreContext} from 'react-devtools-shared/src/devtools/views/context';
packages/react-devtools-shared/src/devtools/views/Components/NativeStyleEditor/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {
11
Layout as LayoutBackend,
packages/react-devtools-shared/src/devtools/views/Components/OwnersListContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {createContext, useCallback, useContext, useEffect} from 'react';
11
import {createResource} from '../../cache';
packages/react-devtools-shared/src/devtools/views/Components/OwnersStack.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
import React, {
10
Fragment,
11
useCallback,
packages/react-devtools-shared/src/devtools/views/Components/SearchInput.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useEffect, useRef} from 'react';
11
import {TreeDispatcherContext, TreeStateContext} from './TreeContext';
packages/react-devtools-shared/src/devtools/views/Components/SelectedElement.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext} from 'react';
11
import {TreeDispatcherContext, TreeStateContext} from './TreeContext';
packages/react-devtools-shared/src/devtools/views/Components/SelectedTreeHighlight.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useContext, useMemo} from 'react';
11
import {TreeStateContext} from './TreeContext';
packages/react-devtools-shared/src/devtools/views/Components/Tree.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
Fragment,
packages/react-devtools-shared/src/devtools/views/Components/TreeContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
// This context combines tree/selection state, search, and the owners stack.
11
// These values are managed together because changes in one often impact the others.
packages/react-devtools-shared/src/devtools/views/Components/TreeFocusedContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {createContext} from 'react';
11
packages/react-devtools-shared/src/devtools/views/Components/ViewElementSourceContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {createContext} from 'react';
11
packages/react-devtools-shared/src/devtools/views/Components/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {Source} from 'shared/ReactElementType';
11
import type {
packages/react-devtools-shared/src/devtools/views/DevTools.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
// Reach styles need to come before any component styles.
11
// This makes overridding the styles simpler.
packages/react-devtools-shared/src/devtools/views/ErrorBoundary.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Component} from 'react';
11
import styles from './ErrorBoundary.css';
packages/react-devtools-shared/src/devtools/views/Icon.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import styles from './Icon.css';
packages/react-devtools-shared/src/devtools/views/ModalDialog.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shared/src/devtools/views/Profiler/ChartNode.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shared/src/devtools/views/Profiler/ClearProfilingDataButton.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext} from 'react';
11
import {ProfilerContext} from './ProfilerContext';
packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraph.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {forwardRef, useCallback, useContext, useMemo} from 'react';
11
import AutoSizer from 'react-virtualized-auto-sizer';
packages/react-devtools-shared/src/devtools/views/Profiler/CommitFlamegraphListItem.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, memo, useCallback, useContext} from 'react';
11
import {areEqual} from 'react-window';
packages/react-devtools-shared/src/devtools/views/Profiler/CommitRanked.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useMemo} from 'react';
11
import AutoSizer from 'react-virtualized-auto-sizer';
packages/react-devtools-shared/src/devtools/views/Profiler/CommitRankedListItem.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {memo, useCallback, useContext} from 'react';
11
import {areEqual} from 'react-window';
packages/react-devtools-shared/src/devtools/views/Profiler/CommitTreeBuilder.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {
11
__DEBUG__,
packages/react-devtools-shared/src/devtools/views/Profiler/FlamegraphChartBuilder.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {
11
ElementTypeForwardRef,
packages/react-devtools-shared/src/devtools/views/Profiler/InteractionListItem.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {memo, useCallback} from 'react';
11
import {areEqual} from 'react-window';
packages/react-devtools-shared/src/devtools/views/Profiler/Interactions.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useMemo} from 'react';
11
import AutoSizer from 'react-virtualized-auto-sizer';
packages/react-devtools-shared/src/devtools/views/Profiler/InteractionsChartBuilder.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import ProfilerStore from 'react-devtools-shared/src/devtools/ProfilerStore';
11
packages/react-devtools-shared/src/devtools/views/Profiler/NoCommitData.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shared/src/devtools/views/Profiler/NoInteractions.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shared/src/devtools/views/Profiler/Profiler.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext} from 'react';
11
import {ModalDialog} from '../ModalDialog';
packages/react-devtools-shared/src/devtools/views/Profiler/ProfilerContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shared/src/devtools/views/Profiler/ProfilingImportExportButtons.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext, useCallback, useRef} from 'react';
11
import {ProfilerContext} from './ProfilerContext';
packages/react-devtools-shared/src/devtools/views/Profiler/RankedChartBuilder.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {
11
ElementTypeForwardRef,
packages/react-devtools-shared/src/devtools/views/Profiler/RecordToggle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useContext} from 'react';
11
import Button from '../Button';
packages/react-devtools-shared/src/devtools/views/Profiler/ReloadAndProfileButton.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useMemo} from 'react';
11
import Button from '../Button';
packages/react-devtools-shared/src/devtools/views/Profiler/RootSelector.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useContext} from 'react';
11
import {ProfilerContext} from './ProfilerContext';
packages/react-devtools-shared/src/devtools/views/Profiler/SidebarCommitInfo.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext} from 'react';
11
import {ProfilerContext} from './ProfilerContext';
packages/react-devtools-shared/src/devtools/views/Profiler/SidebarInteractions.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext} from 'react';
11
import {ProfilerContext} from './ProfilerContext';
packages/react-devtools-shared/src/devtools/views/Profiler/SidebarSelectedFiberInfo.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext} from 'react';
11
import ProfilerStore from 'react-devtools-shared/src/devtools/ProfilerStore';
packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitList.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';
11
import AutoSizer from 'react-virtualized-auto-sizer';
packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotCommitListItem.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {memo, useCallback} from 'react';
11
import {areEqual} from 'react-window';
packages/react-devtools-shared/src/devtools/views/Profiler/SnapshotSelector.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useContext, useMemo} from 'react';
11
import Button from '../Button';
packages/react-devtools-shared/src/devtools/views/Profiler/constants.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
export const barWidthThreshold = 2;
11
export const interactionCommitSize = 10;
packages/react-devtools-shared/src/devtools/views/Profiler/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import type {ElementType} from 'react-devtools-shared/src/types';
11
packages/react-devtools-shared/src/devtools/views/Profiler/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {PROFILER_EXPORT_VERSION} from 'react-devtools-shared/src/constants';
11
packages/react-devtools-shared/src/devtools/views/ReactLogo.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shared/src/devtools/views/Settings/ComponentsSettings.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
useCallback,
packages/react-devtools-shared/src/devtools/views/Settings/GeneralSettings.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useContext} from 'react';
11
import {SettingsContext} from './SettingsContext';
packages/react-devtools-shared/src/devtools/views/Settings/ProfilerSettings.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useMemo, useRef} from 'react';
11
import {useSubscription} from '../hooks';
packages/react-devtools-shared/src/devtools/views/Settings/SettingsContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shared/src/devtools/views/Settings/SettingsModal.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
useCallback,
packages/react-devtools-shared/src/devtools/views/Settings/SettingsModalContext.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {createContext, useMemo, useState} from 'react';
11
packages/react-devtools-shared/src/devtools/views/Settings/SettingsModalContextToggle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback, useContext, useMemo} from 'react';
11
import {SettingsModalContext} from './SettingsModalContext';
packages/react-devtools-shared/src/devtools/views/ShowWelcomeToTheNewDevToolsDialog.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext, useEffect} from 'react';
11
import {unstable_batchedUpdates as batchedUpdates} from 'react-dom';
packages/react-devtools-shared/src/devtools/views/TabBar.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback} from 'react';
11
import Tooltip from '@reach/tooltip';
packages/react-devtools-shared/src/devtools/views/Toggle.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {useCallback} from 'react';
11
import Tooltip from '@reach/tooltip';
packages/react-devtools-shared/src/devtools/views/WarnIfLegacyBackendDetected.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useContext, useEffect} from 'react';
11
import {BridgeContext} from './context';
packages/react-devtools-shared/src/devtools/views/context.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import {createContext} from 'react';
11
import Store from '../store';
packages/react-devtools-shared/src/devtools/views/hooks.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import throttle from 'lodash.throttle';
11
import {useCallback, useEffect, useLayoutEffect, useState} from 'react';
packages/react-devtools-shared/src/devtools/views/portaledContent.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import {createPortal} from 'react-dom';
packages/react-devtools-shared/src/devtools/views/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import escapeStringRegExp from 'escape-string-regexp';
11
import {meta} from '../../hydration';
packages/react-devtools-shared/src/hydration.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Symbol from 'es6-symbol';
11
import {
packages/react-devtools-shared/src/storage.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
export function localStorageGetItem(key: string): any {
11
try {
packages/react-devtools-shared/src/types.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
export type Wall = {|
11
// `listen` returns the "unlisten" function.
packages/react-devtools-shared/src/utils.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import Symbol from 'es6-symbol';
11
import LRU from 'lru-cache';
packages/react-devtools-shell/src/app/DeeplyNestedComponents/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment} from 'react';
11
packages/react-devtools-shell/src/app/EditableProps/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shell/src/app/ElementTypes/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
createContext,
packages/react-devtools-shell/src/app/Hydration/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useDebugValue, useState} from 'react';
11
packages/react-devtools-shell/src/app/InspectableElements/Contexts.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {createContext, Component, Fragment, useContext} from 'react';
11
import PropTypes from 'prop-types';
packages/react-devtools-shell/src/app/InspectableElements/CustomHooks.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {
11
forwardRef,
packages/react-devtools-shell/src/app/InspectableElements/CustomObject.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shell/src/app/InspectableElements/InspectableElements.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment} from 'react';
11
import UnserializableProps from './UnserializableProps';
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shell/src/app/InspectableElements/SimpleValues.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
packages/react-devtools-shell/src/app/InspectableElements/UnserializableProps.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React from 'react';
11
import Immutable from 'immutable';
packages/react-devtools-shell/src/app/InspectableElements/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import InspectableElements from './InspectableElements';
11
packages/react-devtools-shell/src/app/InteractionTracing/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useEffect, useState} from 'react';
11
import {unstable_batchedUpdates as batchedUpdates} from 'react-dom';
packages/react-devtools-shell/src/app/PriorityLevels/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useState} from 'react';
11
import {
packages/react-devtools-shell/src/app/ReactNativeWeb/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useState} from 'react';
11
import {Button, Text, View} from 'react-native-web';
packages/react-devtools-shell/src/app/SuspenseTree/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, Suspense, useState} from 'react';
11
packages/react-devtools-shell/src/app/ToDoList/List.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {Fragment, useCallback, useState} from 'react';
11
import ListItem from './ListItem';
packages/react-devtools-shell/src/app/ToDoList/ListItem.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import React, {memo, useCallback} from 'react';
11
import styles from './ListItem.css';
packages/react-devtools-shell/src/app/ToDoList/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
import List from './List';
11
packages/react-devtools-shell/src/app/console.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
function ignoreStrings(
11
methodName: string,
packages/react-devtools/app.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
const {app, BrowserWindow} = require('electron'); // Module to create native browser window.
11
const {join} = require('path');
packages/react-devtools/bin.js
+8
-1
@@ -1,6 +1,13 @@
1
#!/usr/bin/env node
2
3
-// @flow
3
+/**
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ *
9
+ * @flow
10
+ */
11
12
const electron = require('electron');
13
const spawn = require('cross-spawn');
packages/react-devtools/index.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
const {connectToDevTools} = require('react-devtools-core/backend');
11
scripts/flow/react-devtools.js
+8
-1
@@ -1,4 +1,11 @@
1
-// @flow
1
+/**
2
+ * Copyright (c) Facebook, Inc. and its affiliates.
3
+ *
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @flow
8
+ */
9
10
declare module 'events' {
11
declare class EventEmitter<Events: Object> {