@vinctus/react-maplibre 0.1.0 → 0.1.1

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 CHANGED
@@ -1,10 +1,10 @@
1
- ## react-mapbox
1
+ ## react-maplibre
2
2
 
3
- **react-mapbox** is a very minimalist React.js wrapper library for the
3
+ **react-maplibre** is a very minimalist React.js wrapper library for the
4
4
  [Mapbox GL JS](https://docs.mapbox.com/mapbox-gl-js/guides/)
5
5
  Typescript library.
6
6
 
7
- Documentation can be found [here](https://vinctustech.github.io/react-mapbox/).
7
+ Documentation can be found [here](https://vinctustech.github.io/react-maplibre/).
8
8
 
9
9
  Testing
10
10
  -------
@@ -13,7 +13,7 @@ There is a test program in the `test` directory. It gets the Mapbox access token
13
13
 
14
14
  To start the test program type:
15
15
  1. ```bash
16
- npm i
16
+ npm ci
17
17
  ```
18
18
  2. ```bash
19
19
  tsc
@@ -22,9 +22,8 @@ To start the test program type:
22
22
  cd test
23
23
  ```
24
24
  4. ```bash
25
- npm i
25
+ npm ci
26
26
  ```
27
27
  5. ```bash
28
28
  npm start
29
29
  ```
30
-
package/dist/Map.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import React, { FC, RefAttributes, ReactNode, CSSProperties } from 'react';
2
- import maplibre, { MapLibreEvent } from 'maplibre-gl';
2
+ import maplibre, { MapLibreEvent, StyleSpecification } from 'maplibre-gl';
3
3
  export type ViewState = {
4
4
  longitude: number;
5
5
  latitude: number;
@@ -36,7 +36,7 @@ export type MapProps = {
36
36
  latitude: number;
37
37
  logoPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
38
38
  maxPitch?: number;
39
- mapStyle?: string;
39
+ mapStyle?: StyleSpecification | string;
40
40
  onLoad?: (e: import('maplibre-gl').MapLibreEvent) => void;
41
41
  onDragEnd?: (e: ViewStateChangeEvent) => void;
42
42
  onMoveEnd?: (e: ViewStateChangeEvent) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vinctus/react-maplibre",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Minimalist MapLibre GL JS React wrapper library",
5
5
  "types": "dist/index.d.ts",
6
6
  "publishConfig": {