@comapeo/core-react 9.0.1 → 9.0.2
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.
|
@@ -233,7 +233,15 @@ export declare function useRemoveCustomMapFile(): Pick<import("@tanstack/react-q
|
|
|
233
233
|
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Response, Error, void, unknown>;
|
|
234
234
|
}, "error" | "status" | "mutate" | "reset" | "mutateAsync">;
|
|
235
235
|
export declare function useGetCustomMapInfo(): {
|
|
236
|
-
data:
|
|
236
|
+
data: {
|
|
237
|
+
mapId: string;
|
|
238
|
+
mapName: string;
|
|
239
|
+
estimatedSizeBytes: number;
|
|
240
|
+
bounds: readonly [number, number, number, number];
|
|
241
|
+
minzoom: number;
|
|
242
|
+
maxzoom: number;
|
|
243
|
+
mapCreatedAt: number;
|
|
244
|
+
} | undefined;
|
|
237
245
|
error: Error | null;
|
|
238
246
|
isRefetching: boolean;
|
|
239
247
|
};
|
|
@@ -32,11 +32,43 @@ export declare function mapStyleJsonUrlQueryOptions({ mapServerApi, mapId, }: {
|
|
|
32
32
|
export declare function mapInfoQueryOptions({ mapServerApi, mapId, }: {
|
|
33
33
|
mapServerApi: MapServerApi;
|
|
34
34
|
mapId?: string;
|
|
35
|
-
}): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<
|
|
36
|
-
|
|
35
|
+
}): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
36
|
+
mapId: string;
|
|
37
|
+
mapName: string;
|
|
38
|
+
estimatedSizeBytes: number;
|
|
39
|
+
bounds: readonly [number, number, number, number];
|
|
40
|
+
minzoom: number;
|
|
41
|
+
maxzoom: number;
|
|
42
|
+
mapCreatedAt: number;
|
|
43
|
+
}, Error, {
|
|
44
|
+
mapId: string;
|
|
45
|
+
mapName: string;
|
|
46
|
+
estimatedSizeBytes: number;
|
|
47
|
+
bounds: readonly [number, number, number, number];
|
|
48
|
+
minzoom: number;
|
|
49
|
+
maxzoom: number;
|
|
50
|
+
mapCreatedAt: number;
|
|
51
|
+
}, readonly ["@comapeo/core-react", "maps", string, "info"]>, "queryFn"> & {
|
|
52
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
53
|
+
mapId: string;
|
|
54
|
+
mapName: string;
|
|
55
|
+
estimatedSizeBytes: number;
|
|
56
|
+
bounds: readonly [number, number, number, number];
|
|
57
|
+
minzoom: number;
|
|
58
|
+
maxzoom: number;
|
|
59
|
+
mapCreatedAt: number;
|
|
60
|
+
}, readonly ["@comapeo/core-react", "maps", string, "info"], never> | undefined;
|
|
37
61
|
} & {
|
|
38
62
|
queryKey: readonly ["@comapeo/core-react", "maps", string, "info"] & {
|
|
39
|
-
[dataTagSymbol]:
|
|
63
|
+
[dataTagSymbol]: {
|
|
64
|
+
mapId: string;
|
|
65
|
+
mapName: string;
|
|
66
|
+
estimatedSizeBytes: number;
|
|
67
|
+
bounds: readonly [number, number, number, number];
|
|
68
|
+
minzoom: number;
|
|
69
|
+
maxzoom: number;
|
|
70
|
+
mapCreatedAt: number;
|
|
71
|
+
};
|
|
40
72
|
[dataTagErrorSymbol]: Error;
|
|
41
73
|
};
|
|
42
74
|
};
|
package/dist/esm/hooks/maps.d.ts
CHANGED
|
@@ -233,7 +233,15 @@ export declare function useRemoveCustomMapFile(): Pick<import("@tanstack/react-q
|
|
|
233
233
|
mutateAsync: import("@tanstack/react-query").UseMutateAsyncFunction<Response, Error, void, unknown>;
|
|
234
234
|
}, "error" | "status" | "mutate" | "reset" | "mutateAsync">;
|
|
235
235
|
export declare function useGetCustomMapInfo(): {
|
|
236
|
-
data:
|
|
236
|
+
data: {
|
|
237
|
+
mapId: string;
|
|
238
|
+
mapName: string;
|
|
239
|
+
estimatedSizeBytes: number;
|
|
240
|
+
bounds: readonly [number, number, number, number];
|
|
241
|
+
minzoom: number;
|
|
242
|
+
maxzoom: number;
|
|
243
|
+
mapCreatedAt: number;
|
|
244
|
+
} | undefined;
|
|
237
245
|
error: Error | null;
|
|
238
246
|
isRefetching: boolean;
|
|
239
247
|
};
|
|
@@ -32,11 +32,43 @@ export declare function mapStyleJsonUrlQueryOptions({ mapServerApi, mapId, }: {
|
|
|
32
32
|
export declare function mapInfoQueryOptions({ mapServerApi, mapId, }: {
|
|
33
33
|
mapServerApi: MapServerApi;
|
|
34
34
|
mapId?: string;
|
|
35
|
-
}): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<
|
|
36
|
-
|
|
35
|
+
}): import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
36
|
+
mapId: string;
|
|
37
|
+
mapName: string;
|
|
38
|
+
estimatedSizeBytes: number;
|
|
39
|
+
bounds: readonly [number, number, number, number];
|
|
40
|
+
minzoom: number;
|
|
41
|
+
maxzoom: number;
|
|
42
|
+
mapCreatedAt: number;
|
|
43
|
+
}, Error, {
|
|
44
|
+
mapId: string;
|
|
45
|
+
mapName: string;
|
|
46
|
+
estimatedSizeBytes: number;
|
|
47
|
+
bounds: readonly [number, number, number, number];
|
|
48
|
+
minzoom: number;
|
|
49
|
+
maxzoom: number;
|
|
50
|
+
mapCreatedAt: number;
|
|
51
|
+
}, readonly ["@comapeo/core-react", "maps", string, "info"]>, "queryFn"> & {
|
|
52
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
53
|
+
mapId: string;
|
|
54
|
+
mapName: string;
|
|
55
|
+
estimatedSizeBytes: number;
|
|
56
|
+
bounds: readonly [number, number, number, number];
|
|
57
|
+
minzoom: number;
|
|
58
|
+
maxzoom: number;
|
|
59
|
+
mapCreatedAt: number;
|
|
60
|
+
}, readonly ["@comapeo/core-react", "maps", string, "info"], never> | undefined;
|
|
37
61
|
} & {
|
|
38
62
|
queryKey: readonly ["@comapeo/core-react", "maps", string, "info"] & {
|
|
39
|
-
[dataTagSymbol]:
|
|
63
|
+
[dataTagSymbol]: {
|
|
64
|
+
mapId: string;
|
|
65
|
+
mapName: string;
|
|
66
|
+
estimatedSizeBytes: number;
|
|
67
|
+
bounds: readonly [number, number, number, number];
|
|
68
|
+
minzoom: number;
|
|
69
|
+
maxzoom: number;
|
|
70
|
+
mapCreatedAt: number;
|
|
71
|
+
};
|
|
40
72
|
[dataTagErrorSymbol]: Error;
|
|
41
73
|
};
|
|
42
74
|
};
|