react-native-maplibre-gl-js 1.0.3 → 1.1.0
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 +74 -23
- package/lib/module/index.js +9 -6
- package/lib/module/index.js.map +1 -1
- package/lib/module/react-native/components/Map/Map.js +30 -1
- package/lib/module/react-native/components/Map/Map.js.map +1 -1
- package/lib/module/react-native/components/MapProvider/MapProvider.hooks.js +1 -1
- package/lib/module/react-native/components/MapProvider/MapProvider.hooks.js.map +1 -1
- package/lib/module/react-native/components/MapProvider/MapProvider.js +15 -3
- package/lib/module/react-native/components/MapProvider/MapProvider.js.map +1 -1
- package/lib/module/react-native/components/Marker/Marker.js +51 -1
- package/lib/module/react-native/components/Marker/Marker.js.map +1 -1
- package/lib/module/react-native/components/Popup/Popup.js +27 -1
- package/lib/module/react-native/components/Popup/Popup.js.map +1 -1
- package/lib/module/react-native/hooks/atoms/useMapAtoms.js +1 -1
- package/lib/module/typedoc.js +0 -2
- package/lib/module/web/maplibre-gl-js/MapController.js +1 -1
- package/lib/typescript/src/index.d.ts +10 -14
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Map/Map.d.ts +30 -1
- package/lib/typescript/src/react-native/components/Map/Map.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Map/Map.types.d.ts +70 -58
- package/lib/typescript/src/react-native/components/Map/Map.types.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.d.ts +12 -2
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.hooks.d.ts +1 -1
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.types.d.ts +11 -1
- package/lib/typescript/src/react-native/components/MapProvider/MapProvider.types.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Marker/Marker.d.ts +51 -1
- package/lib/typescript/src/react-native/components/Marker/Marker.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Marker/Marker.types.d.ts +25 -12
- package/lib/typescript/src/react-native/components/Marker/Marker.types.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Popup/Popup.d.ts +27 -1
- package/lib/typescript/src/react-native/components/Popup/Popup.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components/Popup/Popup.types.d.ts +24 -11
- package/lib/typescript/src/react-native/components/Popup/Popup.types.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.types.d.ts +18 -16
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.types.d.ts.map +1 -1
- package/lib/typescript/src/typedoc.d.ts +5 -2
- package/lib/typescript/src/typedoc.d.ts.map +1 -1
- package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts +1 -1
- package/package.json +47 -57
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typedoc.d.ts","sourceRoot":"","sources":["../../../src/typedoc.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"typedoc.d.ts","sourceRoot":"","sources":["../../../src/typedoc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,UAAU,EACV,UAAU,EACV,YAAY,GACb,MAAM,yCAAyC,CAAA;AAGhD,YAAY,EACV,aAAa,EACb,aAAa,EACb,eAAe,GAChB,MAAM,+CAA+C,CAAA;AAGtD,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,MAAM,6CAA6C,CAAA;AAGpD,YAAY,EACV,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,yBAAyB,EACzB,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,2BAA2B,EAC3B,8BAA8B,EAC9B,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,oEAAoE,CAAA"}
|
|
@@ -2,7 +2,7 @@ import maplibregl from 'maplibre-gl';
|
|
|
2
2
|
import type ReactNativeBridge from '../bridge/ReactNativeBridge';
|
|
3
3
|
import type { MessageFromRNToWeb } from '../../communication/messages.types';
|
|
4
4
|
/**
|
|
5
|
-
* Manage the MapLibre GL JS map and its objects. Receive messages from the
|
|
5
|
+
* Manage the `MapLibre GL JS` map and its objects. Receive messages from the
|
|
6
6
|
* React Native world and act accordingly.
|
|
7
7
|
*/
|
|
8
8
|
export default class MapController {
|
package/package.json
CHANGED
|
@@ -1,7 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-maplibre-gl-js",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "MapLibre GL JS for React Native",
|
|
5
|
+
"author": "Emilien Aufauvre <emilien.aufauvre@live.fr> (https://github.com/emilienaufauvre)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"react-native",
|
|
9
|
+
"ios",
|
|
10
|
+
"android"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/emilienaufauvre/react-native-maplibre-gl-js.git"
|
|
15
|
+
},
|
|
16
|
+
"homepage": "https://github.com/emilienaufauvre/react-native-maplibre-gl-js#readme",
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/emilienaufauvre/react-native-maplibre-gl-js/issues"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
22
|
+
},
|
|
5
23
|
"files": [
|
|
6
24
|
"lib",
|
|
7
25
|
"package.json",
|
|
@@ -12,49 +30,43 @@
|
|
|
12
30
|
"types": "./lib/typescript/src/index.d.ts",
|
|
13
31
|
"exports": {
|
|
14
32
|
".": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
33
|
+
"default": "./lib/module/index.js",
|
|
34
|
+
"types": "./lib/typescript/src/index.d.ts"
|
|
17
35
|
},
|
|
18
36
|
"./package.json": "./package.json"
|
|
19
37
|
},
|
|
38
|
+
"packageManager": "yarn@4.11.0",
|
|
39
|
+
"workspaces": [
|
|
40
|
+
"example"
|
|
41
|
+
],
|
|
42
|
+
"sideEffects": false,
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "*",
|
|
45
|
+
"react-native": "*"
|
|
46
|
+
},
|
|
20
47
|
"scripts": {
|
|
21
|
-
"build:webview": "node scripts/build.js",
|
|
22
|
-
"example": "yarn workspace react-native-maplibre-gl-js-example",
|
|
23
|
-
"clean": "del-cli lib",
|
|
48
|
+
"build:webview-code": "node scripts/build-webview-code.js",
|
|
24
49
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
25
50
|
"typecheck": "tsc",
|
|
26
|
-
"release": "release-it --only-version",
|
|
27
51
|
"test": "jest --passWithNoTests",
|
|
28
|
-
"docs": "typedoc",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"react-native",
|
|
34
|
-
"ios",
|
|
35
|
-
"android"
|
|
36
|
-
],
|
|
37
|
-
"repository": {
|
|
38
|
-
"type": "git",
|
|
39
|
-
"url": "git+https://github.com/emilienaufauvre/react-native-maplibre-gl-js.git"
|
|
40
|
-
},
|
|
41
|
-
"author": "Emilien Aufauvre <emilien.aufauvre@live.fr> (https://github.com/emilienaufauvre)",
|
|
42
|
-
"license": "MIT",
|
|
43
|
-
"bugs": {
|
|
44
|
-
"url": "https://github.com/emilienaufauvre/react-native-maplibre-gl-js/issues"
|
|
52
|
+
"docs:typedoc": "typedoc",
|
|
53
|
+
"docs:readme-toc": "doctoc README.md",
|
|
54
|
+
"docs:readme-examples": "node scripts/docs-readme-examples.js",
|
|
55
|
+
"release:build": "bob build",
|
|
56
|
+
"release:semantic-release": "semantic-release"
|
|
45
57
|
},
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
"
|
|
58
|
+
"jest": {
|
|
59
|
+
"preset": "react-native",
|
|
60
|
+
"modulePathIgnorePatterns": [
|
|
61
|
+
"<rootDir>/example/node_modules",
|
|
62
|
+
"<rootDir>/lib/"
|
|
63
|
+
]
|
|
49
64
|
},
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
65
|
+
"commitlint": {
|
|
66
|
+
"extends": [
|
|
67
|
+
"@commitlint/config-conventional"
|
|
68
|
+
]
|
|
53
69
|
},
|
|
54
|
-
"workspaces": [
|
|
55
|
-
"example"
|
|
56
|
-
],
|
|
57
|
-
"packageManager": "yarn@4.11.0",
|
|
58
70
|
"react-native-builder-bob": {
|
|
59
71
|
"source": "src",
|
|
60
72
|
"output": "lib",
|
|
@@ -73,11 +85,6 @@
|
|
|
73
85
|
]
|
|
74
86
|
]
|
|
75
87
|
},
|
|
76
|
-
"commitlint": {
|
|
77
|
-
"extends": [
|
|
78
|
-
"@commitlint/config-conventional"
|
|
79
|
-
]
|
|
80
|
-
},
|
|
81
88
|
"release": {
|
|
82
89
|
"branches": [
|
|
83
90
|
"main"
|
|
@@ -105,23 +112,6 @@
|
|
|
105
112
|
]
|
|
106
113
|
]
|
|
107
114
|
},
|
|
108
|
-
"jest": {
|
|
109
|
-
"preset": "react-native",
|
|
110
|
-
"modulePathIgnorePatterns": [
|
|
111
|
-
"<rootDir>/example/node_modules",
|
|
112
|
-
"<rootDir>/lib/"
|
|
113
|
-
]
|
|
114
|
-
},
|
|
115
|
-
"create-react-native-library": {
|
|
116
|
-
"languages": "js",
|
|
117
|
-
"type": "library",
|
|
118
|
-
"tools": [
|
|
119
|
-
"eslint",
|
|
120
|
-
"lefthook",
|
|
121
|
-
"jest"
|
|
122
|
-
],
|
|
123
|
-
"version": "0.55.1"
|
|
124
|
-
},
|
|
125
115
|
"dependencies": {
|
|
126
116
|
"jotai": "^2.15.2",
|
|
127
117
|
"maplibre-gl": "^5.14.0",
|
|
@@ -138,7 +128,6 @@
|
|
|
138
128
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
139
129
|
"@semantic-release/changelog": "^6.0.3",
|
|
140
130
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
141
|
-
"@semantic-release/git": "^10.0.1",
|
|
142
131
|
"@semantic-release/github": "^12.0.2",
|
|
143
132
|
"@semantic-release/npm": "^13.1.3",
|
|
144
133
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
@@ -148,6 +137,7 @@
|
|
|
148
137
|
"commitlint": "^19.8.1",
|
|
149
138
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
150
139
|
"del-cli": "^6.0.0",
|
|
140
|
+
"doctoc": "^2.2.1",
|
|
151
141
|
"esbuild": "^0.27.0",
|
|
152
142
|
"eslint": "^9.35.0",
|
|
153
143
|
"eslint-config-prettier": "^10.1.8",
|