@carto/ps-react-maps 0.0.1-alpha.1 → 0.0.1-alpha.3
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/types/{src/map.types.d.ts → map.types.d.ts} +4 -4
- package/package.json +6 -6
- package/dist/types/src/map.hook.test.d.ts +0 -1
- package/dist/types/tests/utils/test-utils.d.ts +0 -10
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/map.const.d.ts → map.const.d.ts} +0 -0
- /package/dist/types/{src/map.context.d.ts → map.context.d.ts} +0 -0
- /package/dist/types/{src/map.hook.d.ts → map.hook.d.ts} +0 -0
- /package/dist/types/{src/map.provider.d.ts → map.provider.d.ts} +0 -0
- /package/dist/types/{src/map.reducer.d.ts → map.reducer.d.ts} +0 -0
- /package/dist/types/{src/tmp.utils.d.ts → tmp.utils.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="google.maps" />
|
|
2
|
-
import { MapViewState } from '@deck.gl/core/typed';
|
|
3
|
-
import { GoogleMapsOverlay, GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
|
|
4
|
-
import { DeckGLProps, DeckGLRef } from '@deck.gl/react/typed';
|
|
2
|
+
import { type MapViewState } from '@deck.gl/core/typed';
|
|
3
|
+
import { type GoogleMapsOverlay, type GoogleMapsOverlayProps } from '@deck.gl/google-maps/typed';
|
|
4
|
+
import { type DeckGLProps, type DeckGLRef } from '@deck.gl/react/typed';
|
|
5
5
|
import type { StyleSpecification } from 'maplibre-gl';
|
|
6
6
|
import type { Properties } from 'csstype';
|
|
7
7
|
import type { MutableRefObject, ReactNode, RefObject } from 'react';
|
|
8
|
-
import { MapRef } from 'react-map-gl';
|
|
8
|
+
import { type MapRef } from 'react-map-gl';
|
|
9
9
|
import { CartoBasemapsNames, GMapsBasemap } from './map.const';
|
|
10
10
|
export type MapProviderProps = {
|
|
11
11
|
children: ReactNode;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carto/ps-react-maps",
|
|
3
|
-
"version": "0.0.1-alpha.
|
|
3
|
+
"version": "0.0.1-alpha.3",
|
|
4
4
|
"description": "CARTO's Professional Service React Maps library",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "./dist/types/index.d.ts",
|
|
10
|
-
"main": "./dist/
|
|
11
|
-
"module": "./dist/
|
|
10
|
+
"main": "./dist/index.cjs",
|
|
11
|
+
"module": "./dist/index.js",
|
|
12
12
|
"exports": {
|
|
13
13
|
".": {
|
|
14
14
|
"types": "./dist/types/index.d.ts",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
|
+
"prebuild": "npm exec rimraf dist",
|
|
20
21
|
"build": "tsc && vite build",
|
|
21
22
|
"lint": "eslint './**/*.{ts,tsx}' --ignore-path ../../.gitignore",
|
|
22
23
|
"format": "prettier --write . --ignore-path ../../.gitignore",
|
|
@@ -25,7 +26,6 @@
|
|
|
25
26
|
"test:coverage": "vitest run --coverage"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
|
-
"react-map-gl": "7.1.6",
|
|
29
29
|
"react-redux": "8.1.3"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@testing-library/user-event": "14.5.1",
|
|
39
39
|
"@types/google.maps": "3.54.4",
|
|
40
40
|
"@vitejs/plugin-react-swc": "3.4.0",
|
|
41
|
-
"maplibre-gl": "3.5.1"
|
|
41
|
+
"maplibre-gl": "3.5.1",
|
|
42
|
+
"react-map-gl": "7.1.6"
|
|
42
43
|
},
|
|
43
44
|
"peerDependencies": {
|
|
44
45
|
"@carto/react-redux": "1.x || 2.x",
|
|
45
46
|
"react": "17.x || 18.x",
|
|
46
47
|
"react-dom": "17.x || 18.x",
|
|
47
|
-
"react-map-gl": "7.x",
|
|
48
48
|
"react-redux": "8.x"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { MapsProps } from '@/map.types';
|
|
2
|
-
import { type ReactElement } from 'react';
|
|
3
|
-
export type Wrapper = ({ children }: {
|
|
4
|
-
children: ReactElement;
|
|
5
|
-
}) => JSX.Element;
|
|
6
|
-
export declare const wrapper: ({ maps }: {
|
|
7
|
-
maps: MapsProps[];
|
|
8
|
-
}) => Wrapper;
|
|
9
|
-
export * from '@testing-library/react';
|
|
10
|
-
export { default as userEvent } from '@testing-library/user-event';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|