Move layout plugin sidebar extensions to the plugin package
Summary: Moved layout plugin sidebar extensions to the plugin package. Reviewed By: passy Differential Revision: D27036489 fbshipit-source-id: 5b3406e5c50ba61709d925a3c0cb07a6fd7552db
This commit is contained in:
committed by
Facebook GitHub Bot
parent
e5261967cb
commit
b45b5f854a
@@ -198,8 +198,6 @@ export {getInstance as getLogger} from './fb-stubs/Logger';
|
|||||||
export {callVSCode, getVSCodeUrl} from './utils/vscodeUtils';
|
export {callVSCode, getVSCodeUrl} from './utils/vscodeUtils';
|
||||||
export {useLocalStorage} from './utils/useLocalStorage';
|
export {useLocalStorage} from './utils/useLocalStorage';
|
||||||
export {checkIdbIsInstalled} from './utils/iOSContainerUtility';
|
export {checkIdbIsInstalled} from './utils/iOSContainerUtility';
|
||||||
// Sidebar extensions should be last so they can import anything from here.
|
|
||||||
export {default as SidebarExtensions} from './fb-stubs/LayoutInspectorSidebarExtensions';
|
|
||||||
export {IDEFileResolver, IDEType} from './fb-stubs/IDEFileResolver';
|
export {IDEFileResolver, IDEType} from './fb-stubs/IDEFileResolver';
|
||||||
export {renderMockFlipperWithPlugin} from './test-utils/createMockFlipperWithPlugin';
|
export {renderMockFlipperWithPlugin} from './test-utils/createMockFlipperWithPlugin';
|
||||||
export {Tracked} from 'flipper-plugin'; // To be able to use it in legacy plugins
|
export {Tracked} from 'flipper-plugin'; // To be able to use it in legacy plugins
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ import {
|
|||||||
styled,
|
styled,
|
||||||
colors,
|
colors,
|
||||||
PluginClient,
|
PluginClient,
|
||||||
SidebarExtensions,
|
|
||||||
Element,
|
Element,
|
||||||
Client,
|
Client,
|
||||||
Logger,
|
Logger,
|
||||||
@@ -24,6 +23,7 @@ import deepEqual from 'deep-equal';
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {useMemo, useEffect} from 'react';
|
import {useMemo, useEffect} from 'react';
|
||||||
import {kebabCase} from 'lodash';
|
import {kebabCase} from 'lodash';
|
||||||
|
import {default as SidebarExtensions} from './extensions/fb-stubs/index';
|
||||||
|
|
||||||
const NoData = styled(FlexCenter)({
|
const NoData = styled(FlexCenter)({
|
||||||
fontSize: 18,
|
fontSize: 18,
|
||||||
|
|||||||
@@ -7,10 +7,7 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Client from '../Client';
|
import type {Client, Logger, PluginClient, Element} from 'flipper';
|
||||||
import {Logger} from '../fb-interfaces/Logger';
|
|
||||||
import {PluginClient} from '../plugin';
|
|
||||||
import {Element} from '../ui';
|
|
||||||
|
|
||||||
export default [] as Array<
|
export default [] as Array<
|
||||||
(
|
(
|
||||||
@@ -11,11 +11,15 @@
|
|||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"deep-equal": "^2.0.5",
|
"deep-equal": "^2.0.5",
|
||||||
"lodash": "^4.17.21"
|
"lodash": "^4.17.21",
|
||||||
|
"prism-react-renderer": "^0.1.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/react": "^11.2.5"
|
"@testing-library/react": "^11.2.5"
|
||||||
},
|
},
|
||||||
|
"peerDependencies": {
|
||||||
|
"nt-shared": "*"
|
||||||
|
},
|
||||||
"title": "Layout",
|
"title": "Layout",
|
||||||
"icon": "target",
|
"icon": "target",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
|||||||
@@ -1445,6 +1445,11 @@ pretty-format@^26.6.2:
|
|||||||
ansi-styles "^4.0.0"
|
ansi-styles "^4.0.0"
|
||||||
react-is "^17.0.1"
|
react-is "^17.0.1"
|
||||||
|
|
||||||
|
prism-react-renderer@^0.1.7:
|
||||||
|
version "0.1.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/prism-react-renderer/-/prism-react-renderer-0.1.7.tgz#dc273d0cb6e4a498ba0775094e9a8b01a3ad2eaa"
|
||||||
|
integrity sha512-EhnM0sYfLK103ASK0ViSv0rta//ZGB0dBA9TiFyOvA+zOj5peLmGEG01sLEDwl9sMe+gSqncInafBe1VFTCMvA==
|
||||||
|
|
||||||
promisify-child-process@^4.1.0:
|
promisify-child-process@^4.1.0:
|
||||||
version "4.1.1"
|
version "4.1.1"
|
||||||
resolved "https://registry.yarnpkg.com/promisify-child-process/-/promisify-child-process-4.1.1.tgz#290659e079f9c7bd46708404d4488a1a6b802686"
|
resolved "https://registry.yarnpkg.com/promisify-child-process/-/promisify-child-process-4.1.1.tgz#290659e079f9c7bd46708404d4488a1a6b802686"
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ import isFB from './isFB';
|
|||||||
*/
|
*/
|
||||||
const pluginsReferencedDirectlyFromFlipper = [
|
const pluginsReferencedDirectlyFromFlipper = [
|
||||||
path.join(publicPluginsDir, 'navigation'),
|
path.join(publicPluginsDir, 'navigation'),
|
||||||
path.join(fbPluginsDir, 'layout', 'sidebar_extensions'),
|
|
||||||
path.join(fbPluginsDir, 'mobileconfig'),
|
path.join(fbPluginsDir, 'mobileconfig'),
|
||||||
path.join(fbPluginsDir, 'watch'),
|
path.join(fbPluginsDir, 'watch'),
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user