@trackunit/react-map 0.2.151-alpha-12adfed37e0.0 → 0.2.152
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/README.md +9 -0
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -113,6 +113,15 @@ const MyMap = () => {
|
|
|
113
113
|
};
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
+
### IrisX apps
|
|
117
|
+
|
|
118
|
+
The same CSP setup applies to both adapters: import the adapter's CSP factory and spread its result into `cspHeader` in `iris-app-manifest.ts`.
|
|
119
|
+
|
|
120
|
+
- Google Maps: call `googleMapCspDirectives()` from `@trackunit/react-map-adapter-google`.
|
|
121
|
+
- Mapbox: call `mapboxMapCspDirectives()` from `@trackunit/react-map-adapter-mapbox`.
|
|
122
|
+
|
|
123
|
+
Mapbox apps must supply their own public access token. See the [`Google Maps adapter`](https://www.npmjs.com/package/@trackunit/react-map-adapter-google) and [`Mapbox adapter`](https://www.npmjs.com/package/@trackunit/react-map-adapter-mapbox) READMEs.
|
|
124
|
+
|
|
116
125
|
## API
|
|
117
126
|
|
|
118
127
|
### `useMap(adapter)`
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-map",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.152",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/react-components": "2.13.23
|
|
11
|
-
"@trackunit/css-class-variance-utilities": "2.0.14
|
|
12
|
-
"@trackunit/react-form-components": "2.6.71
|
|
13
|
-
"@trackunit/react-core-hooks": "1.21.62
|
|
14
|
-
"@trackunit/geo-json-utils": "1.15.47
|
|
15
|
-
"@trackunit/i18n-library-translation": "2.4.62
|
|
10
|
+
"@trackunit/react-components": "2.13.23",
|
|
11
|
+
"@trackunit/css-class-variance-utilities": "2.0.14",
|
|
12
|
+
"@trackunit/react-form-components": "2.6.71",
|
|
13
|
+
"@trackunit/react-core-hooks": "1.21.62",
|
|
14
|
+
"@trackunit/geo-json-utils": "1.15.47",
|
|
15
|
+
"@trackunit/i18n-library-translation": "2.4.62",
|
|
16
16
|
"react-minimal-pie-chart": "^8.4.0",
|
|
17
|
-
"@trackunit/react-map-adapter-shared": "0.0.129
|
|
18
|
-
"@trackunit/react-map-color-utils": "0.0.107
|
|
19
|
-
"@trackunit/ui-design-tokens": "1.15.33
|
|
17
|
+
"@trackunit/react-map-adapter-shared": "0.0.129",
|
|
18
|
+
"@trackunit/react-map-color-utils": "0.0.107",
|
|
19
|
+
"@trackunit/ui-design-tokens": "1.15.33",
|
|
20
20
|
"@floating-ui/react": "^0.26.25",
|
|
21
21
|
"es-toolkit": "^1.39.10",
|
|
22
22
|
"tailwind-merge": "^2.0.0",
|