@trackunit/react-graphql-hooks 2.4.8-alpha-d0f54ff2967.0 → 2.4.10

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entry.js","sourceRoot":"","sources":["../../../../../libs/react/graphql-hooks/migrations/entry.ts"],"names":[],"mappings":"","sourcesContent":["export {};\n"]}
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@trackunit/react-graphql-hooks",
3
- "version": "2.4.8-alpha-d0f54ff2967.0",
3
+ "version": "2.4.10",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/i18n-library-translation": "2.3.5-alpha-d0f54ff2967.0",
11
- "@trackunit/shared-utils": "1.16.4-alpha-d0f54ff2967.0",
10
+ "@trackunit/i18n-library-translation": "2.3.6",
11
+ "@trackunit/shared-utils": "1.16.4",
12
12
  "es-toolkit": "^1.39.10",
13
- "@trackunit/react-components": "2.6.3-alpha-d0f54ff2967.0"
13
+ "@trackunit/react-components": "2.6.5"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@apollo/client": "^3.13.8",
@@ -14,18 +14,14 @@ export type PaginationQuery<TData> = {
14
14
  reset: () => void;
15
15
  };
16
16
  /**
17
- * Constraint for TVariables — `first`/`after` stay required (though their values may be null or
18
- * undefined) so TypeScript still rejects documents that declare no pagination variables at all.
19
- * Only the backward keys `before`/`last` are optional, so forward-only documents (declaring just
20
- * `$first`/`$after`) are accepted alongside bidirectional ones. Any relay key the document does
21
- * not declare is stripped from the request at runtime by `useQueryVariableNames`, so a
22
- * forward-only document never sends `before`/`last`.
17
+ * Constraint for TVariables — properties are required (but nullable) so that
18
+ * TypeScript rejects documents whose generated variables type omits them.
23
19
  */
24
20
  export interface RelayPaginationVariablesConstraint extends ApolloOperationVariables {
25
21
  readonly after: string | null | undefined;
26
- readonly before?: string | null;
22
+ readonly before: string | null | undefined;
27
23
  readonly first: number | null | undefined;
28
- readonly last?: number | null;
24
+ readonly last: number | null | undefined;
29
25
  }
30
26
  type TypedDocumentNode<TData, TVariables> = ApolloTypedDocumentNode<TData, TVariables>;
31
27
  export interface PaginationQueryProps<TData, TVariables extends ApolloOperationVariables & RelayPaginationVariablesConstraint = ApolloOperationVariables & RelayPaginationVariablesConstraint> extends ApolloLazyQueryHookOptions<TData, TVariables> {