@harpercollins/harpercollins-design-system 1.27.0 → 1.27.1

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.
@@ -8,10 +8,8 @@ export interface InfiniteScrollOptions {
8
8
  enabled: boolean;
9
9
  hasNextPage?: boolean;
10
10
  isFetchingNextPage?: boolean;
11
- fetchNextPage?: () => Promise<void>;
11
+ fetchNextPage?: (options?: any) => Promise<unknown> | void;
12
12
  loadingText?: string;
13
- /** Estimated row height in px used by the row virtualizer. Defaults to 40. */
14
- estimateRowHeight?: number;
15
13
  }
16
14
  export interface TableProps<TData = unknown> {
17
15
  id: string;
@@ -32,5 +30,5 @@ export interface TableProps<TData = unknown> {
32
30
  toolbar?: TableToolbarOptions;
33
31
  footer?: boolean;
34
32
  isError?: boolean;
35
- errorMessage?: string;
33
+ errorMessage?: string | JSX.Element;
36
34
  }
package/dist/index.d.ts CHANGED
@@ -118,10 +118,8 @@ interface InfiniteScrollOptions {
118
118
  enabled: boolean;
119
119
  hasNextPage?: boolean;
120
120
  isFetchingNextPage?: boolean;
121
- fetchNextPage?: () => Promise<void>;
121
+ fetchNextPage?: (options?: any) => Promise<unknown> | void;
122
122
  loadingText?: string;
123
- /** Estimated row height in px used by the row virtualizer. Defaults to 40. */
124
- estimateRowHeight?: number;
125
123
  }
126
124
  interface TableProps<TData = unknown> {
127
125
  id: string;
@@ -142,7 +140,7 @@ interface TableProps<TData = unknown> {
142
140
  toolbar?: TableToolbarOptions;
143
141
  footer?: boolean;
144
142
  isError?: boolean;
145
- errorMessage?: string;
143
+ errorMessage?: string | JSX.Element;
146
144
  }
147
145
 
148
146
  declare module "@tanstack/react-table" {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harpercollins/harpercollins-design-system",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@ssh.dev.azure.com:v3/HarperCollinsUK/HCDesignSystem/HCDesignSystem"