@kronor/dtv 8.1.1 → 8.1.3

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.
@@ -20,7 +20,7 @@ export declare const buildGraphQLQueryVariables: (view: View, filterState: Filte
20
20
  rowLimit: number;
21
21
  orderBy: HasuraOrderBy[];
22
22
  };
23
- export declare const fetchData: ({ client, view, query, filterState, rowLimit, cursor, ordering }: {
23
+ export declare const fetchData: ({ client, view, query, filterState, rowLimit, cursor, ordering, signal }: {
24
24
  client: GraphQLClient;
25
25
  view: View;
26
26
  query: string;
@@ -28,7 +28,13 @@ export declare const fetchData: ({ client, view, query, filterState, rowLimit, c
28
28
  rowLimit: number;
29
29
  cursor: PaginationCursor;
30
30
  ordering?: DataOrdering | null;
31
+ /**
32
+ * Cancels the request. Once it is aborted, fetchData rejects with an AbortError
33
+ * instead of returning rows, even when the response has already arrived.
34
+ */
35
+ signal?: AbortSignal;
31
36
  }) => Promise<FetchDataResult>;
37
+ export declare const isAbortError: (error: unknown) => boolean;
32
38
  export declare const flattenFields: (rows: Record<string, unknown>[], columns: ColumnDefinition[]) => FlattenedDataRow[];
33
39
  export declare const flattenFieldQueries: (row: Record<string, unknown>, fieldQueries: readonly FieldQuery[]) => Record<string, unknown>;
34
40
  export declare const flattenColumnFields: (row: Record<string, unknown>, column: ColumnDefinition) => Record<string, unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kronor/dtv",
3
- "version": "8.1.1",
3
+ "version": "8.1.3",
4
4
  "description": "Schema-driven, declarative table views with advanced filtering, data fetching and AI-assisted filter generation.",
5
5
  "repository": {
6
6
  "type": "git",