@trackunit/react-graphql-hooks 1.6.7 → 1.6.12

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
@@ -129,7 +129,7 @@ const unionEdgesByNodeKey = (key, previousEdges, newEdges) => {
129
129
  * });
130
130
  * @template TData
131
131
  * @template TVariables
132
- * @param {ApolloClient.TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
132
+ * @param {TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
133
133
  * @param {PaginationQueryProps<TData, TVariables>} props - The properties for configuring the query. This includes the `updateQuery` function for merging new and existing data, and options for pagination such as `pageSize`. Also includes other lazy query hook options from Apollo Client.
134
134
  * @returns {*} {PaginationQuery}
135
135
  */
package/index.esm.js CHANGED
@@ -108,7 +108,7 @@ const unionEdgesByNodeKey = (key, previousEdges, newEdges) => {
108
108
  * });
109
109
  * @template TData
110
110
  * @template TVariables
111
- * @param {ApolloClient.TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
111
+ * @param {TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
112
112
  * @param {PaginationQueryProps<TData, TVariables>} props - The properties for configuring the query. This includes the `updateQuery` function for merging new and existing data, and options for pagination such as `pageSize`. Also includes other lazy query hook options from Apollo Client.
113
113
  * @returns {*} {PaginationQuery}
114
114
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "1.6.7",
3
+ "version": "1.6.12",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -10,10 +10,10 @@
10
10
  "@apollo/client": "3.13.8",
11
11
  "react": "19.0.0",
12
12
  "lodash": "4.17.21",
13
- "@trackunit/i18n-library-translation": "1.6.6",
14
- "@trackunit/shared-utils": "1.8.6",
15
- "@trackunit/react-table-pagination": "1.6.6",
16
- "@trackunit/react-test-setup": "1.3.6"
13
+ "@trackunit/i18n-library-translation": "1.6.10",
14
+ "@trackunit/shared-utils": "1.8.10",
15
+ "@trackunit/react-table-pagination": "1.6.9",
16
+ "@trackunit/react-test-setup": "1.3.10"
17
17
  },
18
18
  "module": "./index.esm.js",
19
19
  "main": "./index.cjs.js",
@@ -10,6 +10,7 @@ export type PaginationQuery<TData> = {
10
10
  pagination: RelayTableSupport;
11
11
  reset: () => void;
12
12
  };
13
+ type TypedDocumentNode<TData, TVariables> = ApolloClient.TypedDocumentNode<TData, TVariables>;
13
14
  export interface PaginationQueryProps<TData, TVariables extends ApolloClient.OperationVariables = ApolloClient.OperationVariables> extends ApolloClient.LazyQueryHookOptions<TData, TVariables> {
14
15
  /**
15
16
  * A function that is used to update the query results with new data.
@@ -70,8 +71,9 @@ export interface PaginationQueryProps<TData, TVariables extends ApolloClient.Ope
70
71
  * });
71
72
  * @template TData
72
73
  * @template TVariables
73
- * @param {ApolloClient.TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
74
+ * @param {TypedDocumentNode<TData, TVariables>} document - The GraphQL document (query or mutation).
74
75
  * @param {PaginationQueryProps<TData, TVariables>} props - The properties for configuring the query. This includes the `updateQuery` function for merging new and existing data, and options for pagination such as `pageSize`. Also includes other lazy query hook options from Apollo Client.
75
76
  * @returns {*} {PaginationQuery}
76
77
  */
77
- export declare const usePaginationQuery: <TData, TVariables extends ApolloClient.OperationVariables>(document: ApolloClient.TypedDocumentNode<TData, TVariables>, { ...props }: PaginationQueryProps<TData, TVariables>) => PaginationQuery<TData>;
78
+ export declare const usePaginationQuery: <TData, TVariables extends ApolloClient.OperationVariables>(document: TypedDocumentNode<TData, TVariables>, { ...props }: PaginationQueryProps<TData, TVariables>) => PaginationQuery<TData>;
79
+ export {};