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:
Anton Nikolaev
2021-04-09 05:15:14 -07:00
committed by Facebook GitHub Bot
parent e5261967cb
commit b45b5f854a
6 changed files with 12 additions and 9 deletions

View File

@@ -14,7 +14,6 @@ import {
styled,
colors,
PluginClient,
SidebarExtensions,
Element,
Client,
Logger,
@@ -24,6 +23,7 @@ import deepEqual from 'deep-equal';
import React from 'react';
import {useMemo, useEffect} from 'react';
import {kebabCase} from 'lodash';
import {default as SidebarExtensions} from './extensions/fb-stubs/index';
const NoData = styled(FlexCenter)({
fontSize: 18,

View File

@@ -0,0 +1,19 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
*/
import type {Client, Logger, PluginClient, Element} from 'flipper';
export default [] as Array<
(
client: PluginClient,
realClient: Client,
selectedNode: Element,
logger: Logger,
) => React.ReactNode
>;

View File

@@ -11,11 +11,15 @@
],
"dependencies": {
"deep-equal": "^2.0.5",
"lodash": "^4.17.21"
"lodash": "^4.17.21",
"prism-react-renderer": "^0.1.7"
},
"devDependencies": {
"@testing-library/react": "^11.2.5"
},
"peerDependencies": {
"nt-shared": "*"
},
"title": "Layout",
"icon": "target",
"bugs": {

View File

@@ -1445,6 +1445,11 @@ pretty-format@^26.6.2:
ansi-styles "^4.0.0"
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:
version "4.1.1"
resolved "https://registry.yarnpkg.com/promisify-child-process/-/promisify-child-process-4.1.1.tgz#290659e079f9c7bd46708404d4488a1a6b802686"