mig-schema-table 3.0.82 → 3.0.83

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,7 +35,7 @@ export interface ISchemaTableProps<T> {
35
35
  onCheckedIndexesChange?: (dataIndex: number[]) => void;
36
36
  onRowClick?: (rowData: T, dataIndex: number, event: React.MouseEvent) => void;
37
37
  onRowDoubleClick?: (rowData: T, dataIndex: number, event: React.MouseEvent) => void;
38
- onSearchEnter?: () => void;
38
+ onSearchEnter?: (searchQuery: string) => void;
39
39
  rowHeight?: number;
40
40
  schema: oas31.SchemaObject;
41
41
  searchPlaceholder?: string;
@@ -471,7 +471,7 @@ function SchemaTable({ Heading = VariableSizeList, checkedIndexes, config, custo
471
471
  }
472
472
  if (onSearchEnter &&
473
473
  e.currentTarget.className === "schema-table__search") {
474
- onSearchEnter();
474
+ onSearchEnter(searchQuery);
475
475
  }
476
476
  }
477
477
  }, [isDirty, onSearchEnter, refreshData]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "3.0.82",
3
+ "version": "3.0.83",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/"