@carto/ps-react-maps 3.0.0-canary.2 → 3.0.0-canary.4
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 +1768 -1876
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/editable/lasso-tools/const.d.ts +1 -0
- package/dist/types/editable/lasso-tools/lasso-tools.d.ts +1 -1
- package/dist/types/editable/lasso-tools/util.d.ts +4 -0
- package/dist/types/editable/measurement-tools/measurement-tools.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/models/categories.d.ts +1 -1
- package/dist/types/models/features.d.ts +1 -1
- package/dist/types/models/formula.d.ts +1 -1
- package/dist/types/models/histogram..d.ts +1 -1
- package/dist/types/models/range.d.ts +1 -1
- package/dist/types/models/scatter.d.ts +1 -1
- package/dist/types/models/table.d.ts +1 -1
- package/dist/types/models/time-series.d.ts +1 -1
- package/dist/types/models/use-widget-model.d.ts +1 -1
- package/dist/types/provider.d.ts +11 -0
- package/dist/types/providers/sources/types.d.ts +45 -6
- package/dist/types/types.d.ts +5 -5
- package/dist/types/use-layers.d.ts +2 -2
- package/dist/types/use-spatial-filter.d.ts +15 -0
- package/dist/types/zoom-controls.d.ts +1 -1
- package/package.json +28 -27
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MapComponentProps } from './types';
|
|
2
|
+
import { SpatialFilter } from '@carto/api-client';
|
|
3
|
+
export declare function useSpatialFilter({ mapId, }: {
|
|
4
|
+
mapId: MapComponentProps['id'];
|
|
5
|
+
}): {
|
|
6
|
+
spatialFilter: SpatialFilter | undefined;
|
|
7
|
+
lassoToolsSpatialFilter: SpatialFilter | undefined;
|
|
8
|
+
viewportSpatialFilter: SpatialFilter | undefined;
|
|
9
|
+
};
|
|
10
|
+
export declare function useViewportSpatialFilter({ mapId, }: {
|
|
11
|
+
mapId: MapComponentProps['id'];
|
|
12
|
+
}): SpatialFilter | undefined;
|
|
13
|
+
export declare function useLassoToolsSpatialFilter({ mapId, }: {
|
|
14
|
+
mapId: MapComponentProps['id'];
|
|
15
|
+
}): import('geojson').MultiPolygon | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ZoomControl } from './types';
|
|
2
|
-
export declare function ZoomControls({ children,
|
|
2
|
+
export declare function ZoomControls({ children, mapId }: ZoomControl): import('react').ReactNode;
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-maps",
|
|
3
|
-
"version": "3.0.0-canary.
|
|
3
|
+
"version": "3.0.0-canary.4",
|
|
4
4
|
"description": "CARTO's Professional Service React DeckGL library",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"dependencies": {
|
|
7
|
-
"@turf/turf": "7.1.0"
|
|
8
|
-
},
|
|
6
|
+
"dependencies": {},
|
|
9
7
|
"devDependencies": {
|
|
10
|
-
"@tanstack/react-query": "5.
|
|
11
|
-
"@carto/api-client": "0.5.0-alpha.
|
|
8
|
+
"@tanstack/react-query": "5.66.5",
|
|
9
|
+
"@carto/api-client": "0.5.0-alpha.3",
|
|
12
10
|
"@deck.gl-community/editable-layers": "9.0.3",
|
|
13
|
-
"@deck.gl/aggregation-layers": "9.0.
|
|
14
|
-
"@deck.gl/carto": "9.0.
|
|
15
|
-
"@deck.gl/core": "9.0.
|
|
16
|
-
"@deck.gl/extensions": "9.0.
|
|
17
|
-
"@deck.gl/geo-layers": "9.0.
|
|
18
|
-
"@deck.gl/google-maps": "9.0.
|
|
19
|
-
"@deck.gl/layers": "9.0.
|
|
20
|
-
"@deck.gl/mesh-layers": "9.0.
|
|
21
|
-
"@deck.gl/react": "9.0.
|
|
22
|
-
"@
|
|
23
|
-
"@
|
|
11
|
+
"@deck.gl/aggregation-layers": "9.0.41",
|
|
12
|
+
"@deck.gl/carto": "9.0.41",
|
|
13
|
+
"@deck.gl/core": "9.0.41",
|
|
14
|
+
"@deck.gl/extensions": "9.0.41",
|
|
15
|
+
"@deck.gl/geo-layers": "9.0.41",
|
|
16
|
+
"@deck.gl/google-maps": "9.0.41",
|
|
17
|
+
"@deck.gl/layers": "9.0.41",
|
|
18
|
+
"@deck.gl/mesh-layers": "9.0.41",
|
|
19
|
+
"@deck.gl/react": "9.0.41",
|
|
20
|
+
"@turf/helpers": "7.2.0",
|
|
21
|
+
"@turf/turf": "7.2.0",
|
|
22
|
+
"@types/geojson": "7946.0.16",
|
|
23
|
+
"@vis.gl/react-google-maps": "1.5.1",
|
|
24
24
|
"convert-units": "3.0.0-beta.7",
|
|
25
25
|
"html2canvas": "1.4.1",
|
|
26
|
-
"maplibre-gl": "
|
|
27
|
-
"react-map-gl": "
|
|
26
|
+
"maplibre-gl": "5.1.0",
|
|
27
|
+
"react-map-gl": "8.0.1",
|
|
28
28
|
"zustand": "5.0.3",
|
|
29
|
-
"@carto/ps-utils": "2.0.0-canary.
|
|
29
|
+
"@carto/ps-utils": "2.0.0-canary.4"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@tanstack/react-query": "^5.
|
|
33
|
-
"@carto/api-client": "^0.5.0-alpha.
|
|
34
|
-
"@deck.gl-community/editable-layers": "^9.0.
|
|
32
|
+
"@tanstack/react-query": "^5.0.0",
|
|
33
|
+
"@carto/api-client": "^0.5.0-alpha.3",
|
|
34
|
+
"@deck.gl-community/editable-layers": "^9.0.3",
|
|
35
35
|
"@deck.gl/aggregation-layers": "^9.0.0",
|
|
36
36
|
"@deck.gl/carto": "^9.0.0",
|
|
37
37
|
"@deck.gl/core": "^9.0.0",
|
|
@@ -41,19 +41,20 @@
|
|
|
41
41
|
"@deck.gl/layers": "^9.0.0",
|
|
42
42
|
"@deck.gl/mesh-layers": "^9.0.0",
|
|
43
43
|
"@deck.gl/react": "^9.0.0",
|
|
44
|
+
"@turf/helpers": "^7.2.0",
|
|
45
|
+
"@turf/turf": "^7.2.0",
|
|
44
46
|
"@vis.gl/react-google-maps": "^1.0.0",
|
|
45
47
|
"convert-units": "3.0.0-beta.7",
|
|
46
48
|
"html2canvas": "^1.4.1",
|
|
47
|
-
"maplibre-gl": "^
|
|
49
|
+
"maplibre-gl": "^5.0.0",
|
|
48
50
|
"react": "^18.0.0 || ^19.0.0",
|
|
49
|
-
"react-map-gl": "^
|
|
51
|
+
"react-map-gl": "^8.0.0",
|
|
50
52
|
"zustand": "^5.0.0",
|
|
51
|
-
"@carto/ps-utils": "2.0.0-canary.
|
|
53
|
+
"@carto/ps-utils": "2.0.0-canary.4"
|
|
52
54
|
},
|
|
53
55
|
"exports": {
|
|
54
56
|
".": {
|
|
55
57
|
"import": "./dist/index.js",
|
|
56
|
-
"require": "./dist/index.cjs",
|
|
57
58
|
"types": "./dist/types/index.d.ts"
|
|
58
59
|
},
|
|
59
60
|
"./styles.css": "./dist/styles.css"
|