From f5b5e9be9f4f5f01dcbc7cd794923677d1a827a4 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 6 May 2021 06:43:21 -0700 Subject: [PATCH] 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 --- desktop/flipper-plugin/src/utils/createTablePlugin.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop/flipper-plugin/src/utils/createTablePlugin.tsx b/desktop/flipper-plugin/src/utils/createTablePlugin.tsx index 35de09c93..ea3d57a7d 100644 --- a/desktop/flipper-plugin/src/utils/createTablePlugin.tsx +++ b/desktop/flipper-plugin/src/utils/createTablePlugin.tsx @@ -44,6 +44,7 @@ export function createTablePlugin(props: { columns: DataTableColumn[]; renderSidebar?: (record: Row) => any; key?: keyof Row; + onCopyRows?(records: Row[]): string; }): PluginResult; export function createTablePlugin< Raw extends object, @@ -55,6 +56,7 @@ export function createTablePlugin< columns: DataTableColumn[]; renderSidebar?: (record: Row) => any; key?: keyof Raw; + onCopyRows?(records: Row[]): string; }): PluginResult; 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, {}>, @@ -138,6 +141,7 @@ export function createTablePlugin< isPaused={instance.isPaused} enableMenuEntries enableClear + onCopyRows={props.onCopyRows} /> ); }