@plasmicpkgs/plasmic-rich-components 1.0.151 → 1.0.152

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.
@@ -1,7 +1,7 @@
1
1
  import { NormalizedData, QueryResult } from "@plasmicapp/data-sources";
2
- import { BaseColumnConfig } from "./field-mappings";
3
- import React, { Key } from "react";
4
2
  import type { GetRowKey, SorterResult } from "antd/es/table/interface";
3
+ import React, { Key } from "react";
4
+ import { BaseColumnConfig } from "./field-mappings";
5
5
  export declare function useSortedFilteredData(data: NormalizedData | undefined, columns: BaseColumnConfig[]): {
6
6
  finalData: Record<string, unknown>[] | undefined;
7
7
  search: string;
package/dist/index.js CHANGED
@@ -1400,14 +1400,9 @@ function useSortedFilteredData(data, columns) {
1400
1400
  };
1401
1401
  }
1402
1402
  function deriveRowKey(data, rowKey) {
1403
- var _a;
1404
1403
  if (rowKey) {
1405
1404
  return rowKey;
1406
1405
  }
1407
- const schema = data == null ? void 0 : data.schema;
1408
- if (schema) {
1409
- return (_a = schema.fields[0]) == null ? void 0 : _a.id;
1410
- }
1411
1406
  return void 0;
1412
1407
  }
1413
1408
  function deriveKeyOfRow(row, rowKey) {