@trackunit/react-table 0.0.206 → 0.0.207-alpha-11d90c6ca6.0

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.
package/index.cjs.js CHANGED
@@ -355,7 +355,7 @@ const Table = (_a) => {
355
355
  width: header.getSize(),
356
356
  minWidth: header.column.columnDef.minSize,
357
357
  maxWidth: header.column.columnDef.maxSize,
358
- textAlign: ((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left"
358
+ textAlign: ((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left",
359
359
  }, className: "relative", children: [header.isPlaceholder ? null : (jsxRuntime.jsxs("div", { className: `${header.column.getCanSort() ? "cursor-pointer select-none flex" : ""} items-center gap-2 py-2 overflow-hidden pr-3`,
360
360
  onClick: header.column.getToggleSortingHandler(), children: [jsxRuntime.jsxs("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: [reactTable.flexRender(header.column.columnDef.header, header.getContext()), ((_c = (_b = header.column.columnDef) === null || _b === void 0 ? void 0 : _b.meta) === null || _c === void 0 ? void 0 : _c.subHeader) ? (jsxRuntime.jsx(reactComponents.Text, { size: "small", subtle: true, children: (_e = (_d = header.column.columnDef) === null || _d === void 0 ? void 0 : _d.meta) === null || _e === void 0 ? void 0 : _e.subHeader })) : null] }), header.column.getCanSort() ? (jsxRuntime.jsx(reactTableBaseComponents.SortIndicator, { sortingState: header.column.getIsSorted() })) : null] })), header.column.getCanResize() ? (jsxRuntime.jsx(reactTableBaseComponents.ResizeHandle, { isResizing: header.column.getIsResizing(), onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler() })) : null] }, header.id));
361
361
  }) }, headerGroup.id))) }), hasResults ? (jsxRuntime.jsx(reactTableBaseComponents.Tbody, { className: "text-sm font-normal", children: getVirtualItems().map((virtualRow, index) => {
@@ -381,7 +381,7 @@ const Table = (_a) => {
381
381
  width: cell.column.getSize(),
382
382
  minWidth: cell.column.columnDef.minSize,
383
383
  maxWidth: cell.column.columnDef.maxSize,
384
- textAlign: ((_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left"
384
+ textAlign: ((_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left",
385
385
  }, children: jsxRuntime.jsx("div", { className: "grid h-full items-center", children: reactTable.flexRender(cell.column.columnDef.cell, cell.getContext()) }) }));
386
386
  }) }, row.id));
387
387
  }
@@ -403,9 +403,9 @@ const cvaColumnFilterGrabbable = cssClassVarianceUtilities.cvaMerge(["flex", "it
403
403
  /**
404
404
  * ColumnFilter component for managing visibility and order of table columns.
405
405
  *
406
- * @template T - The type representing the data model associated with the columns.
407
- * @template V - The type representing the value of columns.
408
- * @param {IColumnFilterProps<T, V>} props - The props object containing necessary properties.
406
+ * @template TColumnFilter - The type representing the data model associated with the columns.
407
+ * @template TColumnFilterValue - The type representing the value of columns.
408
+ * @param {ColumnFilterProps<TColumnFilter, TColumnFilterValue>} props - The props object containing necessary properties.
409
409
  * @returns {JSX.Element | null} A React JSX element representing the ColumnFilter component or null if columns are not provided.
410
410
  */
411
411
  const ColumnFilter = ({ columns, setColumnOrder, defaultColumnOrder, columnOrder, onUserEvent, }) => {
@@ -556,12 +556,12 @@ const CompactIcon = () => {
556
556
  /**
557
557
  * Sorting component for managing table column sorting.
558
558
  *
559
- * @template T - The type representing the data model associated with the columns.
560
- * @template V - The type representing the value of columns.
561
- * @param {SortingProps<T, V>} props - The props object containing sorting properties.
559
+ * @template TSorting - The type representing the data model associated with the columns.
560
+ * @template TSortingValue - The type representing the value of columns.
561
+ * @param {SortingProps<TSorting, TSortingValue>} props - The props object containing sorting properties.
562
562
  * @returns {JSX.Element | null} A React JSX element representing the Sorting component or null if there are no sortable columns.
563
563
  */
564
- const Sorting = ({ columns }) => {
564
+ const Sorting = ({ columns, }) => {
565
565
  var _a, _b;
566
566
  const [t] = useTranslation();
567
567
  const sortableColumns = columns.filter(column => column.getCanSort());
@@ -586,60 +586,6 @@ const Sorting = ({ columns }) => {
586
586
  }) }), jsxRuntime.jsxs(reactFormComponents.RadioGroup, { id: "sortOrder", onChange: onSelectOrder, value: currentSortDirection, children: [jsxRuntime.jsx(reactFormComponents.RadioItem, { className: "w-full", label: t("table.sorting.ascending"), value: "asc" }), jsxRuntime.jsx(reactFormComponents.RadioItem, { className: "w-full", label: t("table.sorting.descending"), value: "desc" })] })] }) })] }) }));
587
587
  };
588
588
 
589
- /**
590
- * Custom hook for handling Relay pagination in tables.
591
- *
592
- * @param {RelayPaginationProps} props - The props object containing pagination configuration.
593
- * @returns {RelayPaginationSupport} An object containing functions and state for managing Relay pagination.
594
- */
595
- const useRelayPagination = (props = { pageSize: 50 }) => {
596
- const [variables, setVariables] = React.useState({ first: props.pageSize });
597
- const [pageInfo, setPageInfo] = React.useState();
598
- const [isLoading, setIsLoading] = React.useState(false);
599
- const nextPage = React.useCallback(() => {
600
- if (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasNextPage) {
601
- setVariables({
602
- after: (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor) === null ? undefined : pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor,
603
- first: props.pageSize,
604
- });
605
- }
606
- }, [pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor, pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasNextPage, props.pageSize]);
607
- const previousPage = React.useCallback(() => {
608
- if (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasPreviousPage) {
609
- setVariables({
610
- before: (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor) === null ? undefined : pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor,
611
- last: props.pageSize,
612
- });
613
- }
614
- }, [pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasPreviousPage, pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor, props.pageSize]);
615
- const reset = React.useCallback(() => {
616
- setVariables({
617
- last: undefined,
618
- before: undefined,
619
- after: undefined,
620
- first: props.pageSize,
621
- });
622
- if (props.onReset) {
623
- props.onReset();
624
- }
625
- }, [props.onReset, props.pageSize]);
626
- const pagination = React.useMemo(() => {
627
- return {
628
- variables,
629
- table: {
630
- nextPage,
631
- previousPage,
632
- isLoading,
633
- setIsLoading,
634
- reset,
635
- pageInfo: pageInfo === null ? undefined : pageInfo,
636
- setPageInfo,
637
- },
638
- };
639
- }, [variables, nextPage, previousPage, isLoading, reset, pageInfo]);
640
- return pagination;
641
- };
642
-
643
589
  /**
644
590
  * Hook for managing and controlling a table's state and behavior.
645
591
  *
@@ -860,6 +806,5 @@ exports.fromTUSortToTanStack = fromTUSortToTanStack;
860
806
  exports.fromTUSortToTanStackSite = fromTUSortToTanStackSite;
861
807
  exports.fromTanStackToTUSort = fromTanStackToTUSort;
862
808
  exports.fromTanStackToTUSortSite = fromTanStackToTUSortSite;
863
- exports.useRelayPagination = useRelayPagination;
864
809
  exports.useTable = useTable;
865
810
  exports.useTableSelection = useTableSelection;
package/index.esm.js CHANGED
@@ -330,7 +330,7 @@ const Table = (_a) => {
330
330
  width: header.getSize(),
331
331
  minWidth: header.column.columnDef.minSize,
332
332
  maxWidth: header.column.columnDef.maxSize,
333
- textAlign: ((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left"
333
+ textAlign: ((_a = header.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left",
334
334
  }, className: "relative", children: [header.isPlaceholder ? null : (jsxs("div", { className: `${header.column.getCanSort() ? "cursor-pointer select-none flex" : ""} items-center gap-2 py-2 overflow-hidden pr-3`,
335
335
  onClick: header.column.getToggleSortingHandler(), children: [jsxs("span", { className: "overflow-hidden text-ellipsis whitespace-nowrap", children: [flexRender(header.column.columnDef.header, header.getContext()), ((_c = (_b = header.column.columnDef) === null || _b === void 0 ? void 0 : _b.meta) === null || _c === void 0 ? void 0 : _c.subHeader) ? (jsx(Text, { size: "small", subtle: true, children: (_e = (_d = header.column.columnDef) === null || _d === void 0 ? void 0 : _d.meta) === null || _e === void 0 ? void 0 : _e.subHeader })) : null] }), header.column.getCanSort() ? (jsx(SortIndicator, { sortingState: header.column.getIsSorted() })) : null] })), header.column.getCanResize() ? (jsx(ResizeHandle, { isResizing: header.column.getIsResizing(), onMouseDown: header.getResizeHandler(), onTouchStart: header.getResizeHandler() })) : null] }, header.id));
336
336
  }) }, headerGroup.id))) }), hasResults ? (jsx(Tbody, { className: "text-sm font-normal", children: getVirtualItems().map((virtualRow, index) => {
@@ -356,7 +356,7 @@ const Table = (_a) => {
356
356
  width: cell.column.getSize(),
357
357
  minWidth: cell.column.columnDef.minSize,
358
358
  maxWidth: cell.column.columnDef.maxSize,
359
- textAlign: ((_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left"
359
+ textAlign: ((_a = cell.column.columnDef.meta) === null || _a === void 0 ? void 0 : _a.alignment) || "left",
360
360
  }, children: jsx("div", { className: "grid h-full items-center", children: flexRender(cell.column.columnDef.cell, cell.getContext()) }) }));
361
361
  }) }, row.id));
362
362
  }
@@ -378,9 +378,9 @@ const cvaColumnFilterGrabbable = cvaMerge(["flex", "items-center", "justify-cent
378
378
  /**
379
379
  * ColumnFilter component for managing visibility and order of table columns.
380
380
  *
381
- * @template T - The type representing the data model associated with the columns.
382
- * @template V - The type representing the value of columns.
383
- * @param {IColumnFilterProps<T, V>} props - The props object containing necessary properties.
381
+ * @template TColumnFilter - The type representing the data model associated with the columns.
382
+ * @template TColumnFilterValue - The type representing the value of columns.
383
+ * @param {ColumnFilterProps<TColumnFilter, TColumnFilterValue>} props - The props object containing necessary properties.
384
384
  * @returns {JSX.Element | null} A React JSX element representing the ColumnFilter component or null if columns are not provided.
385
385
  */
386
386
  const ColumnFilter = ({ columns, setColumnOrder, defaultColumnOrder, columnOrder, onUserEvent, }) => {
@@ -531,12 +531,12 @@ const CompactIcon = () => {
531
531
  /**
532
532
  * Sorting component for managing table column sorting.
533
533
  *
534
- * @template T - The type representing the data model associated with the columns.
535
- * @template V - The type representing the value of columns.
536
- * @param {SortingProps<T, V>} props - The props object containing sorting properties.
534
+ * @template TSorting - The type representing the data model associated with the columns.
535
+ * @template TSortingValue - The type representing the value of columns.
536
+ * @param {SortingProps<TSorting, TSortingValue>} props - The props object containing sorting properties.
537
537
  * @returns {JSX.Element | null} A React JSX element representing the Sorting component or null if there are no sortable columns.
538
538
  */
539
- const Sorting = ({ columns }) => {
539
+ const Sorting = ({ columns, }) => {
540
540
  var _a, _b;
541
541
  const [t] = useTranslation();
542
542
  const sortableColumns = columns.filter(column => column.getCanSort());
@@ -561,60 +561,6 @@ const Sorting = ({ columns }) => {
561
561
  }) }), jsxs(RadioGroup, { id: "sortOrder", onChange: onSelectOrder, value: currentSortDirection, children: [jsx(RadioItem, { className: "w-full", label: t("table.sorting.ascending"), value: "asc" }), jsx(RadioItem, { className: "w-full", label: t("table.sorting.descending"), value: "desc" })] })] }) })] }) }));
562
562
  };
563
563
 
564
- /**
565
- * Custom hook for handling Relay pagination in tables.
566
- *
567
- * @param {RelayPaginationProps} props - The props object containing pagination configuration.
568
- * @returns {RelayPaginationSupport} An object containing functions and state for managing Relay pagination.
569
- */
570
- const useRelayPagination = (props = { pageSize: 50 }) => {
571
- const [variables, setVariables] = useState({ first: props.pageSize });
572
- const [pageInfo, setPageInfo] = useState();
573
- const [isLoading, setIsLoading] = useState(false);
574
- const nextPage = useCallback(() => {
575
- if (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasNextPage) {
576
- setVariables({
577
- after: (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor) === null ? undefined : pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor,
578
- first: props.pageSize,
579
- });
580
- }
581
- }, [pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.endCursor, pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasNextPage, props.pageSize]);
582
- const previousPage = useCallback(() => {
583
- if (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasPreviousPage) {
584
- setVariables({
585
- before: (pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor) === null ? undefined : pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor,
586
- last: props.pageSize,
587
- });
588
- }
589
- }, [pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.hasPreviousPage, pageInfo === null || pageInfo === void 0 ? void 0 : pageInfo.startCursor, props.pageSize]);
590
- const reset = useCallback(() => {
591
- setVariables({
592
- last: undefined,
593
- before: undefined,
594
- after: undefined,
595
- first: props.pageSize,
596
- });
597
- if (props.onReset) {
598
- props.onReset();
599
- }
600
- }, [props.onReset, props.pageSize]);
601
- const pagination = useMemo(() => {
602
- return {
603
- variables,
604
- table: {
605
- nextPage,
606
- previousPage,
607
- isLoading,
608
- setIsLoading,
609
- reset,
610
- pageInfo: pageInfo === null ? undefined : pageInfo,
611
- setPageInfo,
612
- },
613
- };
614
- }, [variables, nextPage, previousPage, isLoading, reset, pageInfo]);
615
- return pagination;
616
- };
617
-
618
564
  /**
619
565
  * Hook for managing and controlling a table's state and behavior.
620
566
  *
@@ -822,4 +768,4 @@ const fromTanStackToTUSortSite = (input) => {
822
768
  */
823
769
  setupLibraryTranslations();
824
770
 
825
- export { ActionSheet, ColumnFilter, RowSpacing, Sorting, Table, fromTUSortToTanStack, fromTUSortToTanStackSite, fromTanStackToTUSort, fromTanStackToTUSortSite, useRelayPagination, useTable, useTableSelection };
771
+ export { ActionSheet, ColumnFilter, RowSpacing, Sorting, Table, fromTUSortToTanStack, fromTUSortToTanStackSite, fromTanStackToTUSort, fromTanStackToTUSortSite, useTable, useTableSelection };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-table",
3
- "version": "0.0.206",
3
+ "version": "0.0.207-alpha-11d90c6ca6.0",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -21,7 +21,8 @@
21
21
  "@trackunit/react-core-contexts-api": "*",
22
22
  "@trackunit/css-class-variance-utilities": "*",
23
23
  "@trackunit/ui-icons": "*",
24
- "@trackunit/i18n-library-translation": "*"
24
+ "@trackunit/i18n-library-translation": "*",
25
+ "@trackunit/react-graphql-hooks": "*"
25
26
  },
26
27
  "module": "./index.esm.js",
27
28
  "main": "./index.cjs.js"
package/src/Table.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Table as ReactTable, Row } from "@tanstack/react-table";
3
3
  import { CommonProps } from "@trackunit/react-components";
4
- import { RelayPagination } from "./types";
4
+ import { RelayPagination } from "@trackunit/react-graphql-hooks";
5
5
  export interface TableProps<TData extends object> extends ReactTable<TData>, CommonProps {
6
6
  pagination: RelayPagination;
7
7
  headerLeftActions?: React.ReactNode;
package/src/index.d.ts CHANGED
@@ -5,7 +5,6 @@ export * from "./menus/ColumnFilter";
5
5
  export * from "./menus/RowSpacing";
6
6
  export * from "./menus/Sorting";
7
7
  export * from "./types";
8
- export * from "./useRelayPagination";
9
8
  export * from "./useTable";
10
9
  export * from "./useTableSelection";
11
10
  export * from "./utils";
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { Column, ColumnOrderState, Updater } from "@tanstack/react-table";
3
- export interface IColumnFilterProps<T extends object, V> {
4
- columns: Column<T, V>[];
3
+ export interface ColumnFilterProps<TColumnFilter extends object, TColumnFilterValue> {
4
+ columns: Column<TColumnFilter, TColumnFilterValue>[];
5
5
  defaultColumnOrder: ColumnOrderState;
6
6
  columnOrder?: ColumnOrderState;
7
7
  className?: string;
@@ -11,14 +11,14 @@ export interface IColumnFilterProps<T extends object, V> {
11
11
  /**
12
12
  * ColumnFilter component for managing visibility and order of table columns.
13
13
  *
14
- * @template T - The type representing the data model associated with the columns.
15
- * @template V - The type representing the value of columns.
16
- * @param {IColumnFilterProps<T, V>} props - The props object containing necessary properties.
14
+ * @template TColumnFilter - The type representing the data model associated with the columns.
15
+ * @template TColumnFilterValue - The type representing the value of columns.
16
+ * @param {ColumnFilterProps<TColumnFilter, TColumnFilterValue>} props - The props object containing necessary properties.
17
17
  * @returns {JSX.Element | null} A React JSX element representing the ColumnFilter component or null if columns are not provided.
18
18
  */
19
- export declare const ColumnFilter: <T extends Object, V>({ columns, setColumnOrder, defaultColumnOrder, columnOrder, onUserEvent, }: IColumnFilterProps<T, V>) => JSX.Element | null;
20
- export interface ColumnFiltersDragAndDropProps<T extends object, V> {
21
- columns: Column<T, V>[];
19
+ export declare const ColumnFilter: <TColumnFilter extends Object, TColumnFilterValue>({ columns, setColumnOrder, defaultColumnOrder, columnOrder, onUserEvent, }: ColumnFilterProps<TColumnFilter, TColumnFilterValue>) => JSX.Element | null;
20
+ export interface ColumnFiltersDragAndDropProps<TColumnFiltersDragAndDrop extends object, TColumnFiltersDragAndDropValue> {
21
+ columns: Column<TColumnFiltersDragAndDrop, TColumnFiltersDragAndDropValue>[];
22
22
  setColumnOrder: (updater: Updater<ColumnOrderState>) => void;
23
23
  onUserEvent?: (event: "Column Reordering" | "Column Filter", payload: Record<string, unknown>) => void;
24
24
  }
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
2
  import { Column } from "@tanstack/react-table";
3
- interface SortingProps<T extends object, V> {
4
- columns: Column<T, V>[];
3
+ interface SortingProps<TSorting extends object, TSortingValue> {
4
+ columns: Column<TSorting, TSortingValue>[];
5
5
  }
6
6
  /**
7
7
  * Sorting component for managing table column sorting.
8
8
  *
9
- * @template T - The type representing the data model associated with the columns.
10
- * @template V - The type representing the value of columns.
11
- * @param {SortingProps<T, V>} props - The props object containing sorting properties.
9
+ * @template TSorting - The type representing the data model associated with the columns.
10
+ * @template TSortingValue - The type representing the value of columns.
11
+ * @param {SortingProps<TSorting, TSortingValue>} props - The props object containing sorting properties.
12
12
  * @returns {JSX.Element | null} A React JSX element representing the Sorting component or null if there are no sortable columns.
13
13
  */
14
- export declare const Sorting: <T extends Object, V>({ columns }: SortingProps<T, V>) => JSX.Element | null;
14
+ export declare const Sorting: <TSorting extends Object, TSortingValue>({ columns, }: SortingProps<TSorting, TSortingValue>) => JSX.Element | null;
15
15
  export {};
package/src/types.d.ts CHANGED
@@ -9,17 +9,4 @@ declare module "@tanstack/react-table" {
9
9
  isCustomField?: boolean;
10
10
  }
11
11
  }
12
- export interface RelayPageInfo {
13
- count?: number | null;
14
- endCursor?: string | null;
15
- hasNextPage?: boolean;
16
- hasPreviousPage?: boolean;
17
- startCursor?: string | null;
18
- }
19
- export interface RelayPagination {
20
- nextPage: () => void;
21
- previousPage: () => void;
22
- pageInfo?: RelayPageInfo;
23
- isLoading: boolean;
24
- }
25
12
  export type Alignment = "left" | "center" | "right";
@@ -1,6 +1,6 @@
1
1
  import { VirtualItem } from "@tanstack/react-virtual";
2
+ import { RelayPagination } from "@trackunit/react-graphql-hooks";
2
3
  import { RefObject } from "react";
3
- import { RelayPagination } from "./types";
4
4
  interface InfiniteScrollProps {
5
5
  pagination: RelayPagination;
6
6
  containerRef: RefObject<HTMLDivElement>;
@@ -1,29 +0,0 @@
1
- import { Dispatch, SetStateAction } from "react";
2
- import { RelayPageInfo, RelayPagination } from "./types";
3
- export interface RelayPaginationProps {
4
- pageSize?: number;
5
- onReset?: () => void;
6
- }
7
- export interface RelayPaginationQueryVariables {
8
- first?: number | null;
9
- last?: number | null;
10
- before?: string | null;
11
- after?: string | null;
12
- }
13
- export interface RelayTableSupport extends RelayPagination {
14
- isLoading: boolean;
15
- setIsLoading: Dispatch<SetStateAction<boolean>>;
16
- reset: () => void;
17
- setPageInfo: Dispatch<SetStateAction<RelayPageInfo | null | undefined>>;
18
- }
19
- export interface RelayPaginationSupport {
20
- variables: RelayPaginationQueryVariables;
21
- table: RelayTableSupport;
22
- }
23
- /**
24
- * Custom hook for handling Relay pagination in tables.
25
- *
26
- * @param {RelayPaginationProps} props - The props object containing pagination configuration.
27
- * @returns {RelayPaginationSupport} An object containing functions and state for managing Relay pagination.
28
- */
29
- export declare const useRelayPagination: (props?: RelayPaginationProps) => RelayPaginationSupport;