@tramvai/tokens-react-query 2.29.0 → 2.32.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/lib/index.d.ts +5 -6
- package/lib/index.es.js +3 -3
- package/lib/index.js +3 -3
- package/package.json +3 -3
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ActionConditionsParameters } from '@tramvai/core';
|
|
2
|
-
import type { QueryClient, DefaultOptions } from 'react-query';
|
|
3
|
-
|
|
4
|
-
declare module 'react-query' {
|
|
2
|
+
import type { QueryClient, DefaultOptions, DehydratedState } from '@tanstack/react-query';
|
|
3
|
+
declare module '@tanstack/react-query' {
|
|
5
4
|
interface QueryOptions {
|
|
6
5
|
tramvaiOptions?: {
|
|
7
6
|
conditions?: ActionConditionsParameters;
|
|
@@ -10,17 +9,17 @@ declare module 'react-query' {
|
|
|
10
9
|
}
|
|
11
10
|
/**
|
|
12
11
|
* @description
|
|
13
|
-
* [react-query client](https://
|
|
12
|
+
* [react-query client](https://tanstack.com/query/v4/docs/reference/QueryClient)
|
|
14
13
|
*/
|
|
15
14
|
export declare const QUERY_CLIENT_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<QueryClient>;
|
|
16
15
|
/**
|
|
17
16
|
* @description
|
|
18
|
-
* [default options for the react-query](https://
|
|
17
|
+
* [default options for the react-query](https://tanstack.com/query/v4/docs/guides/important-defaults)
|
|
19
18
|
*/
|
|
20
19
|
export declare const QUERY_CLIENT_DEFAULT_OPTIONS_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<DefaultOptions<unknown>>;
|
|
21
20
|
/**
|
|
22
21
|
* @description
|
|
23
|
-
* [react-query state](https://
|
|
22
|
+
* [react-query state](https://tanstack.com/query/v4/docs/reference/hydration#dehydrate) that was initialized on the server
|
|
24
23
|
*/
|
|
25
24
|
export declare const QUERY_CLIENT_DEHYDRATED_STATE_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<DehydratedState>;
|
|
26
25
|
export declare const QUERY_DEHYDRATE_STATE_NAME_TOKEN: import("@tinkoff/dippy").BaseTokenInterface<string>;
|
package/lib/index.es.js
CHANGED
|
@@ -2,17 +2,17 @@ import { createToken } from '@tinkoff/dippy';
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @description
|
|
5
|
-
* [react-query client](https://
|
|
5
|
+
* [react-query client](https://tanstack.com/query/v4/docs/reference/QueryClient)
|
|
6
6
|
*/
|
|
7
7
|
const QUERY_CLIENT_TOKEN = createToken('reactQuery queryClient');
|
|
8
8
|
/**
|
|
9
9
|
* @description
|
|
10
|
-
* [default options for the react-query](https://
|
|
10
|
+
* [default options for the react-query](https://tanstack.com/query/v4/docs/guides/important-defaults)
|
|
11
11
|
*/
|
|
12
12
|
const QUERY_CLIENT_DEFAULT_OPTIONS_TOKEN = createToken('reactQuery queryClientDefaultOptions');
|
|
13
13
|
/**
|
|
14
14
|
* @description
|
|
15
|
-
* [react-query state](https://
|
|
15
|
+
* [react-query state](https://tanstack.com/query/v4/docs/reference/hydration#dehydrate) that was initialized on the server
|
|
16
16
|
*/
|
|
17
17
|
const QUERY_CLIENT_DEHYDRATED_STATE_TOKEN = createToken('reactQuery queryClientDehydratedState');
|
|
18
18
|
const QUERY_DEHYDRATE_STATE_NAME_TOKEN = createToken('reactQuery dehydrate state name');
|
package/lib/index.js
CHANGED
|
@@ -6,17 +6,17 @@ var dippy = require('@tinkoff/dippy');
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @description
|
|
9
|
-
* [react-query client](https://
|
|
9
|
+
* [react-query client](https://tanstack.com/query/v4/docs/reference/QueryClient)
|
|
10
10
|
*/
|
|
11
11
|
const QUERY_CLIENT_TOKEN = dippy.createToken('reactQuery queryClient');
|
|
12
12
|
/**
|
|
13
13
|
* @description
|
|
14
|
-
* [default options for the react-query](https://
|
|
14
|
+
* [default options for the react-query](https://tanstack.com/query/v4/docs/guides/important-defaults)
|
|
15
15
|
*/
|
|
16
16
|
const QUERY_CLIENT_DEFAULT_OPTIONS_TOKEN = dippy.createToken('reactQuery queryClientDefaultOptions');
|
|
17
17
|
/**
|
|
18
18
|
* @description
|
|
19
|
-
* [react-query state](https://
|
|
19
|
+
* [react-query state](https://tanstack.com/query/v4/docs/reference/hydration#dehydrate) that was initialized on the server
|
|
20
20
|
*/
|
|
21
21
|
const QUERY_CLIENT_DEHYDRATED_STATE_TOKEN = dippy.createToken('reactQuery queryClientDehydratedState');
|
|
22
22
|
const QUERY_DEHYDRATE_STATE_NAME_TOKEN = dippy.createToken('reactQuery dehydrate state name');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tramvai/tokens-react-query",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
4
4
|
"description": "Tramvai tokens for @tramvai/module-react-query",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib/index.es.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"build-for-publish": "true"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"react-query": "^
|
|
22
|
+
"@tanstack/react-query": "^4.7.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@tinkoff/dippy": "0.8.6",
|
|
26
|
-
"@tramvai/core": "2.
|
|
26
|
+
"@tramvai/core": "2.32.0",
|
|
27
27
|
"tslib": "^2.4.0"
|
|
28
28
|
},
|
|
29
29
|
"license": "Apache-2.0"
|