@@ -169,12 +169,30 @@ const PolarisAutoTableComponent = <
169169 const selectedRows = ( rows ?? [ ] ) . filter ( ( row ) => selection . recordIds . includes ( row . id as string ) ) ;
170170
171171 const promotedBulkActions = useMemo (
172- ( ) => bulkActionOptions . filter ( ( option ) => option . promoted ) . map ( bulkActionOptionMapper ( selectedRows , selection . clearAll ) ) ,
172+ ( ) =>
173+ bulkActionOptions
174+ . filter ( ( option ) => option . promoted )
175+ . map (
176+ bulkActionOptionMapper ( {
177+ rawRecords,
178+ selectedRows,
179+ clearSelection : selection . clearAll ,
180+ } )
181+ ) ,
173182 [ bulkActionOptions , selectedRows ]
174183 ) ;
175184
176185 const bulkActions = useMemo (
177- ( ) => bulkActionOptions . filter ( ( option ) => ! option . promoted ) . map ( bulkActionOptionMapper ( selectedRows , selection . clearAll ) ) ,
186+ ( ) =>
187+ bulkActionOptions
188+ . filter ( ( option ) => ! option . promoted )
189+ . map (
190+ bulkActionOptionMapper ( {
191+ rawRecords,
192+ selectedRows,
193+ clearSelection : selection . clearAll ,
194+ } )
195+ ) ,
178196 [ bulkActionOptions , selectedRows ]
179197 ) ;
180198
@@ -303,7 +321,27 @@ const disablePaginatedSelectAllButton = {
303321 paginatedSelectAllActionText : "" , // Empty string to hide the select all button. We only allow selections on the current page.
304322} ;
305323
306- const bulkActionOptionMapper = ( selectedRows : TableRow [ ] , clearSelection : ( ) => void ) => {
324+ const bulkActionOptionMapper = ( props : {
325+ rawRecords : GadgetRecord < any > [ ] | null ;
326+ selectedRows : TableRow [ ] ;
327+ clearSelection : ( ) => void ;
328+ } ) => {
329+ const { rawRecords, selectedRows, clearSelection } = props ;
330+
331+ // TODO - Get the rawRecords into the selected rows
332+ // TODO - Get the rawRecords into the selected rows
333+ // TODO - Get the rawRecords into the selected rows
334+ // TODO - Get the rawRecords into the selected rows
335+ // TODO - Get the rawRecords into the selected rows
336+ // TODO - Get the rawRecords into the selected rows
337+ // TODO - Get the rawRecords into the selected rows
338+ // TODO - Get the rawRecords into the selected rows
339+ // TODO - Get the rawRecords into the selected rows
340+ // TODO - Get the rawRecords into the selected rows
341+ // TODO - Get the rawRecords into the selected rows
342+ // TODO - Get the rawRecords into the selected rows
343+ // TODO - Get the rawRecords into the selected rows
344+
307345 return ( option : BulkActionOption ) => ( {
308346 id : option . humanizedName ,
309347 destructive : "isDeleter" in option ? option . isDeleter : false ,
0 commit comments