@comapeo/core-react 6.0.0-prerelease.2 → 6.0.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlobApi, IconApi } from '@comapeo/core' with { 'resolution-mode': 'import' };
|
|
2
2
|
import type { MapeoClientApi, MapeoProjectApi } from '@comapeo/ipc' with { 'resolution-mode': 'import' };
|
|
3
3
|
import type { ProjectSettings } from '@comapeo/schema' with { 'resolution-mode': 'import' };
|
|
4
|
-
import { type QueryClient, type
|
|
4
|
+
import { type QueryClient, type UnusedSkipTokenOptions } from '@tanstack/react-query';
|
|
5
5
|
export declare function getProjectsQueryKey(): readonly ["@comapeo/core-react", "projects"];
|
|
6
6
|
export declare function getProjectByIdQueryKey({ projectId }: {
|
|
7
7
|
projectId: string;
|
|
@@ -53,7 +53,7 @@ export declare function projectsQueryOptions({ clientApi, }: {
|
|
|
53
53
|
export declare function projectByIdQueryOptions({ clientApi, projectId, }: {
|
|
54
54
|
clientApi: MapeoClientApi;
|
|
55
55
|
projectId: string;
|
|
56
|
-
}):
|
|
56
|
+
}): UnusedSkipTokenOptions<MapeoProjectApi, Error, MapeoProjectApi, ReturnType<typeof getProjectByIdQueryKey>>;
|
|
57
57
|
export declare function projectSettingsQueryOptions({ projectApi, projectId, }: {
|
|
58
58
|
projectApi: MapeoProjectApi;
|
|
59
59
|
projectId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BlobApi, IconApi } from '@comapeo/core' with { 'resolution-mode': 'import' };
|
|
2
2
|
import type { MapeoClientApi, MapeoProjectApi } from '@comapeo/ipc' with { 'resolution-mode': 'import' };
|
|
3
3
|
import type { ProjectSettings } from '@comapeo/schema' with { 'resolution-mode': 'import' };
|
|
4
|
-
import { type QueryClient, type
|
|
4
|
+
import { type QueryClient, type UnusedSkipTokenOptions } from '@tanstack/react-query';
|
|
5
5
|
export declare function getProjectsQueryKey(): readonly ["@comapeo/core-react", "projects"];
|
|
6
6
|
export declare function getProjectByIdQueryKey({ projectId }: {
|
|
7
7
|
projectId: string;
|
|
@@ -53,7 +53,7 @@ export declare function projectsQueryOptions({ clientApi, }: {
|
|
|
53
53
|
export declare function projectByIdQueryOptions({ clientApi, projectId, }: {
|
|
54
54
|
clientApi: MapeoClientApi;
|
|
55
55
|
projectId: string;
|
|
56
|
-
}):
|
|
56
|
+
}): UnusedSkipTokenOptions<MapeoProjectApi, Error, MapeoProjectApi, ReturnType<typeof getProjectByIdQueryKey>>;
|
|
57
57
|
export declare function projectSettingsQueryOptions({ projectApi, projectId, }: {
|
|
58
58
|
projectApi: MapeoProjectApi;
|
|
59
59
|
projectId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/core-react",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "React wrapper for working with @comapeo/core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"types": "tsc"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@comapeo/core": "4.1.3
|
|
61
|
-
"@comapeo/ipc": "5.0.0
|
|
60
|
+
"@comapeo/core": "^4.1.3",
|
|
61
|
+
"@comapeo/ipc": "^5.0.0",
|
|
62
62
|
"@comapeo/schema": "*",
|
|
63
63
|
"@tanstack/react-query": "^5",
|
|
64
64
|
"react": "^18 || ^19"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@comapeo/core": "4.1.3
|
|
68
|
-
"@comapeo/ipc": "5.0.0
|
|
67
|
+
"@comapeo/core": "4.1.3",
|
|
68
|
+
"@comapeo/ipc": "5.0.0",
|
|
69
69
|
"@comapeo/schema": "2.0.0",
|
|
70
70
|
"@eslint/compat": "1.3.0",
|
|
71
71
|
"@eslint/js": "9.29.0",
|