Convert rsys plugin to Sandy
Summary: The `flipper` dependency is being deprecated for plugins, so upgraded the plugin to new APIs. This should be pretty safe, however, I'm not sure how to test it :) Also removed react-diff-viewer dependency, as that seemed unused. Reviewed By: passy Differential Revision: D28091469 fbshipit-source-id: b9be007e3fc7b0689b1e1f711849ed82a6e01716
This commit is contained in:
committed by
Facebook GitHub Bot
parent
92bed19131
commit
f5b5e9be9f
@@ -44,6 +44,7 @@ export function createTablePlugin<Row extends object>(props: {
|
||||
columns: DataTableColumn<Row>[];
|
||||
renderSidebar?: (record: Row) => any;
|
||||
key?: keyof Row;
|
||||
onCopyRows?(records: Row[]): string;
|
||||
}): PluginResult<Row, Row>;
|
||||
export function createTablePlugin<
|
||||
Raw extends object,
|
||||
@@ -55,6 +56,7 @@ export function createTablePlugin<
|
||||
columns: DataTableColumn<Row>[];
|
||||
renderSidebar?: (record: Row) => any;
|
||||
key?: keyof Raw;
|
||||
onCopyRows?(records: Row[]): string;
|
||||
}): PluginResult<Raw, Row>;
|
||||
export function createTablePlugin<
|
||||
Raw extends object,
|
||||
@@ -68,6 +70,7 @@ export function createTablePlugin<
|
||||
renderSidebar?: (record: Row) => any;
|
||||
buildRow?: (record: Raw) => Row;
|
||||
key?: keyof Raw;
|
||||
onCopyRows?(records: Row[]): string;
|
||||
}) {
|
||||
function plugin(
|
||||
client: PluginClient<Record<Method, Raw> & Record<ResetMethod, {}>, {}>,
|
||||
@@ -138,6 +141,7 @@ export function createTablePlugin<
|
||||
isPaused={instance.isPaused}
|
||||
enableMenuEntries
|
||||
enableClear
|
||||
onCopyRows={props.onCopyRows}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user