@carto/ps-react-maps 3.11.4 → 3.11.5
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/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/types/models/use-common-model.d.ts +4 -2
- package/dist/types/models/use-widget-model.d.ts +3 -1
- package/dist/types/providers/sources/store.d.ts +3 -1
- package/dist/types/providers/sources/types.d.ts +4 -2
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ModelProps } from './types';
|
|
2
2
|
export declare function useCommonModel<TRequestOptions, TResponse>({ accessToken, sourceId, widgetProps, additionalFilter, }: Pick<ModelProps<TRequestOptions, TResponse>, 'accessToken' | 'sourceId' | 'additionalFilter' | 'widgetProps'>): {
|
|
3
3
|
mergedFilters: import('@carto/api-client').Filters | undefined;
|
|
4
|
-
widgetModel: import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps
|
|
5
|
-
|
|
4
|
+
widgetModel: import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps & {
|
|
5
|
+
queryParameters: import('@carto/api-client').QueryParameters;
|
|
6
|
+
}> | null;
|
|
7
|
+
queryKey: (string | import('@carto/api-client').QueryParameters | Omit<TRequestOptions, "filters"> | undefined)[];
|
|
6
8
|
};
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare function useWidgetModel(accessToken: string, sourceId: string): import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps
|
|
1
|
+
export declare function useWidgetModel(accessToken: string, sourceId: string): import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps & {
|
|
2
|
+
queryParameters: import('@carto/api-client').QueryParameters;
|
|
3
|
+
}> | null;
|
|
@@ -36,7 +36,9 @@ export declare function useFilters(id: string): Filters | undefined;
|
|
|
36
36
|
*/
|
|
37
37
|
export declare function useSourceWithFilters(id: string): {
|
|
38
38
|
filters: Filters;
|
|
39
|
-
widgets?: (import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps
|
|
39
|
+
widgets?: (import('@carto/api-client').WidgetSource<import('@carto/api-client').WidgetSourceProps & {
|
|
40
|
+
queryParameters: import('@carto/api-client').QueryParameters;
|
|
41
|
+
}> | null) | undefined;
|
|
40
42
|
type: "table" | "query" | "query+h3" | "query+quadbin" | "query+boundary" | "tileset" | "tileset+h3" | "tileset+quadbin" | "table+h3" | "table+quadbin" | "table+boundary" | "raster";
|
|
41
43
|
data: string;
|
|
42
44
|
apiBaseUrl?: string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, TileFormat, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, H3QuerySourceOptions, QuadbinQuerySourceOptions, H3TilesetSourceOptions, QuadbinTilesetSourceOptions, H3TableSourceOptions, QuadbinTableSourceOptions, RasterSourceOptions, RasterMetadata, WidgetSource, WidgetSourceProps, Filters, AddFilterOptions, RemoveFilterOptions, ApiVersion } from '@carto/api-client';
|
|
1
|
+
import { VectorQuerySourceOptions, VectorTableSourceOptions, VectorTilesetSourceOptions, TileFormat, BoundaryQuerySourceOptions, BoundaryTableSourceOptions, H3QuerySourceOptions, QuadbinQuerySourceOptions, H3TilesetSourceOptions, QuadbinTilesetSourceOptions, H3TableSourceOptions, QuadbinTableSourceOptions, RasterSourceOptions, RasterMetadata, WidgetSource, WidgetSourceProps, Filters, AddFilterOptions, RemoveFilterOptions, ApiVersion, QueryParameters } from '@carto/api-client';
|
|
2
2
|
type _Omit<T, P extends string = ''> = Omit<T, 'accessToken' | P>;
|
|
3
3
|
type OmitQuery<T, P extends string = ''> = _Omit<T, 'sqlQuery' | P>;
|
|
4
4
|
type OmitTable<T, P extends string = ''> = _Omit<T, 'tableName' | P>;
|
|
@@ -49,7 +49,9 @@ export type RasterQuadbinTilesetSource = {
|
|
|
49
49
|
export type AllRasterSource = RasterQuadbinTilesetSource;
|
|
50
50
|
export type Source = Omit<(AllQuerySource | AllTilesetSource | AllTableSource | AllRasterSource) & {
|
|
51
51
|
data: string;
|
|
52
|
-
widgets?: WidgetSource<WidgetSourceProps
|
|
52
|
+
widgets?: WidgetSource<WidgetSourceProps & {
|
|
53
|
+
queryParameters: QueryParameters;
|
|
54
|
+
}> | null;
|
|
53
55
|
apiVersion?: ApiVersion;
|
|
54
56
|
}, 'filters'>;
|
|
55
57
|
export interface SourceStore {
|