Expose styled and produce
Summary: To control bundle size and the amount of different versions used, we want plugins to use emotion's styled and immer's produce from flipper-plugin, rather than bringing their own Reviewed By: passy Differential Revision: D25087286 fbshipit-source-id: d2cc8b2cb1a17c520d05d99048cd94338984a913
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cc480b702e
commit
d71297a1ea
@@ -31,7 +31,9 @@ test('Correct top level API exposed', () => {
|
|||||||
"TestUtils",
|
"TestUtils",
|
||||||
"batch",
|
"batch",
|
||||||
"createState",
|
"createState",
|
||||||
|
"produce",
|
||||||
"renderReactRoot",
|
"renderReactRoot",
|
||||||
|
"styled",
|
||||||
"theme",
|
"theme",
|
||||||
"usePlugin",
|
"usePlugin",
|
||||||
"useValue",
|
"useValue",
|
||||||
@@ -47,6 +49,7 @@ test('Correct top level API exposed', () => {
|
|||||||
"DeviceLogListener",
|
"DeviceLogListener",
|
||||||
"DevicePluginClient",
|
"DevicePluginClient",
|
||||||
"DeviceType",
|
"DeviceType",
|
||||||
|
"Draft",
|
||||||
"FlipperLib",
|
"FlipperLib",
|
||||||
"LogLevel",
|
"LogLevel",
|
||||||
"MenuEntry",
|
"MenuEntry",
|
||||||
|
|||||||
@@ -7,6 +7,10 @@
|
|||||||
* @format
|
* @format
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
export {produce, Draft} from 'immer';
|
||||||
|
import styledImport from '@emotion/styled';
|
||||||
|
export const styled = styledImport;
|
||||||
|
|
||||||
import './plugin/PluginBase';
|
import './plugin/PluginBase';
|
||||||
import * as TestUtilites from './test-utils/test-utils';
|
import * as TestUtilites from './test-utils/test-utils';
|
||||||
|
|
||||||
|
|||||||
@@ -16,8 +16,9 @@ import {
|
|||||||
createState,
|
createState,
|
||||||
useValue,
|
useValue,
|
||||||
theme,
|
theme,
|
||||||
|
styled,
|
||||||
} from 'flipper-plugin';
|
} from 'flipper-plugin';
|
||||||
import {ManagedDataInspector, DetailSidebar, styled} from 'flipper';
|
import {ManagedDataInspector, DetailSidebar} from 'flipper';
|
||||||
|
|
||||||
type Row = {
|
type Row = {
|
||||||
id: number;
|
id: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user