react-native-maplibre-gl-js 1.0.2 → 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 +31 -2
- 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 +20 -8
- package/lib/module/react-native/components/MapProvider/MapProvider.js.map +1 -1
- package/lib/module/react-native/components/Marker/Marker.js +52 -2
- package/lib/module/react-native/components/Marker/Marker.js.map +1 -1
- package/lib/module/react-native/components/Popup/Popup.js +28 -3
- package/lib/module/react-native/components/Popup/Popup.js.map +1 -1
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.js +2 -2
- package/lib/module/react-native/components-factory/createWebObjectAsComponent.js.map +1 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMethodsProxy.js +2 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMethodsProxy.js.map +1 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js +2 -1
- package/lib/module/react-native/components-factory/hooks/useWebObjectMountOnLaunch.js.map +1 -1
- package/lib/module/react-native/hooks/atoms/useMapAtoms.js +3 -2
- package/lib/module/react-native/hooks/atoms/useMapAtoms.js.map +1 -1
- package/lib/module/typedoc.js +0 -2
- package/lib/module/web/bridge/ReactNativeBridge.js +1 -2
- package/lib/module/web/bridge/ReactNativeBridge.js.map +1 -1
- package/lib/module/web/generated/index.js +2 -2
- package/lib/module/web/generated/index.js.map +1 -1
- package/lib/module/web/generated/webview_static_html.js +32 -32
- package/lib/module/web/logger/web-logger.js +1 -0
- package/lib/module/web/logger/web-logger.js.map +1 -1
- package/lib/module/web/maplibre-gl-js/MapController.js +3 -3
- package/lib/module/web/maplibre-gl-js/MapController.js.map +1 -1
- package/lib/typescript/src/communication/messages.types.d.ts +1 -1
- package/lib/typescript/src/communication/messages.types.d.ts.map +1 -1
- package/lib/typescript/src/communication/messages.utils.d.ts +1 -1
- package/lib/typescript/src/communication/messages.utils.d.ts.map +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 +31 -2
- 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 +71 -59
- 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 +13 -3
- 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 +52 -2
- 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 +27 -14
- 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 +28 -2
- 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 +25 -12
- package/lib/typescript/src/react-native/components/Popup/Popup.types.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.d.ts +2 -2
- package/lib/typescript/src/react-native/components-factory/createWebObjectAsComponent.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/react-native/components-factory/hooks/useWebObjectMethodsProxy.d.ts +1 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMethodsProxy.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts +2 -2
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectMountOnLaunch.d.ts.map +1 -1
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.d.ts +2 -2
- package/lib/typescript/src/react-native/components-factory/hooks/useWebObjectOptionsUpdater.d.ts.map +1 -1
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.d.ts +2 -2
- package/lib/typescript/src/react-native/hooks/atoms/useMapAtoms.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/bridge/ReactNativeBridge.d.ts +2 -2
- package/lib/typescript/src/web/bridge/ReactNativeBridge.d.ts.map +1 -1
- package/lib/typescript/src/web/generated/webview_static_html.d.ts +1 -1
- package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts +3 -3
- package/lib/typescript/src/web/maplibre-gl-js/MapController.d.ts.map +1 -1
- package/package.json +47 -89
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import maplibregl from 'maplibre-gl';
|
|
2
|
-
import type ReactNativeBridge from '
|
|
3
|
-
import {
|
|
2
|
+
import type ReactNativeBridge from '../bridge/ReactNativeBridge';
|
|
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 {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapController.d.ts","sourceRoot":"","sources":["../../../../../src/web/maplibre-gl-js/MapController.ts"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,aAAa,CAAA;AAChE,OAAO,KAAK,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"MapController.d.ts","sourceRoot":"","sources":["../../../../../src/web/maplibre-gl-js/MapController.ts"],"names":[],"mappings":"AAAA,OAAO,UAAsC,MAAM,aAAa,CAAA;AAChE,OAAO,KAAK,iBAAiB,MAAM,6BAA6B,CAAA;AAChE,OAAO,KAAK,EAEV,kBAAkB,EAEnB,MAAM,oCAAoC,CAAA;AAY3C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,aAAa;;IAKhC,IAAI,iBAAiB,IAAI,iBAAiB,CAKzC;IAED,IAAI,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,EAE9C;IAED,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAMxB;IAED,aAAa,GAAI,SAAS,kBAAkB,UAiB3C;CAkQF"}
|
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,61 +30,43 @@
|
|
|
12
30
|
"types": "./lib/typescript/src/index.d.ts",
|
|
13
31
|
"exports": {
|
|
14
32
|
".": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
},
|
|
18
|
-
"./react-native/*": {
|
|
19
|
-
"types": "./lib/typescript/src/react-native/*",
|
|
20
|
-
"default": "./lib/module/react-native/*"
|
|
21
|
-
},
|
|
22
|
-
"./web/*": {
|
|
23
|
-
"types": "./lib/typescript/src/web/*",
|
|
24
|
-
"default": "./lib/module/web/*"
|
|
25
|
-
},
|
|
26
|
-
"./communication/*": {
|
|
27
|
-
"types": "./lib/typescript/src/communication/*",
|
|
28
|
-
"default": "./lib/module/communication/*"
|
|
33
|
+
"default": "./lib/module/index.js",
|
|
34
|
+
"types": "./lib/typescript/src/index.d.ts"
|
|
29
35
|
},
|
|
30
36
|
"./package.json": "./package.json"
|
|
31
37
|
},
|
|
38
|
+
"packageManager": "yarn@4.11.0",
|
|
39
|
+
"workspaces": [
|
|
40
|
+
"example"
|
|
41
|
+
],
|
|
42
|
+
"sideEffects": false,
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"react": "*",
|
|
45
|
+
"react-native": "*"
|
|
46
|
+
},
|
|
32
47
|
"scripts": {
|
|
33
|
-
"build:webview": "node scripts/build.js",
|
|
34
|
-
"example": "yarn workspace react-native-maplibre-gl-js-example",
|
|
35
|
-
"clean": "del-cli lib",
|
|
48
|
+
"build:webview-code": "node scripts/build-webview-code.js",
|
|
36
49
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
37
50
|
"typecheck": "tsc",
|
|
38
|
-
"release": "release-it --only-version",
|
|
39
51
|
"test": "jest --passWithNoTests",
|
|
40
|
-
"docs": "typedoc",
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"react-native",
|
|
46
|
-
"ios",
|
|
47
|
-
"android"
|
|
48
|
-
],
|
|
49
|
-
"repository": {
|
|
50
|
-
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/emilienaufauvre/react-native-maplibre-gl-js.git"
|
|
52
|
-
},
|
|
53
|
-
"author": "Emilien Aufauvre <emilien.aufauvre@live.fr> (https://github.com/emilienaufauvre)",
|
|
54
|
-
"license": "MIT",
|
|
55
|
-
"bugs": {
|
|
56
|
-
"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"
|
|
57
57
|
},
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
"
|
|
58
|
+
"jest": {
|
|
59
|
+
"preset": "react-native",
|
|
60
|
+
"modulePathIgnorePatterns": [
|
|
61
|
+
"<rootDir>/example/node_modules",
|
|
62
|
+
"<rootDir>/lib/"
|
|
63
|
+
]
|
|
61
64
|
},
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
+
"commitlint": {
|
|
66
|
+
"extends": [
|
|
67
|
+
"@commitlint/config-conventional"
|
|
68
|
+
]
|
|
65
69
|
},
|
|
66
|
-
"workspaces": [
|
|
67
|
-
"example"
|
|
68
|
-
],
|
|
69
|
-
"packageManager": "yarn@4.11.0",
|
|
70
70
|
"react-native-builder-bob": {
|
|
71
71
|
"source": "src",
|
|
72
72
|
"output": "lib",
|
|
@@ -85,11 +85,6 @@
|
|
|
85
85
|
]
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
-
"commitlint": {
|
|
89
|
-
"extends": [
|
|
90
|
-
"@commitlint/config-conventional"
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
88
|
"release": {
|
|
94
89
|
"branches": [
|
|
95
90
|
"main"
|
|
@@ -117,43 +112,6 @@
|
|
|
117
112
|
]
|
|
118
113
|
]
|
|
119
114
|
},
|
|
120
|
-
"release-it": {
|
|
121
|
-
"git": {
|
|
122
|
-
"commitMessage": "chore: release ${version}",
|
|
123
|
-
"tagName": "v${version}"
|
|
124
|
-
},
|
|
125
|
-
"npm": {
|
|
126
|
-
"publish": true
|
|
127
|
-
},
|
|
128
|
-
"github": {
|
|
129
|
-
"release": true
|
|
130
|
-
},
|
|
131
|
-
"plugins": {
|
|
132
|
-
"@release-it/conventional-changelog": {
|
|
133
|
-
"preset": {
|
|
134
|
-
"name": "angular"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"jest": {
|
|
140
|
-
"preset": "react-native",
|
|
141
|
-
"modulePathIgnorePatterns": [
|
|
142
|
-
"<rootDir>/example/node_modules",
|
|
143
|
-
"<rootDir>/lib/"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"create-react-native-library": {
|
|
147
|
-
"languages": "js",
|
|
148
|
-
"type": "library",
|
|
149
|
-
"tools": [
|
|
150
|
-
"eslint",
|
|
151
|
-
"lefthook",
|
|
152
|
-
"release-it",
|
|
153
|
-
"jest"
|
|
154
|
-
],
|
|
155
|
-
"version": "0.55.1"
|
|
156
|
-
},
|
|
157
115
|
"dependencies": {
|
|
158
116
|
"jotai": "^2.15.2",
|
|
159
117
|
"maplibre-gl": "^5.14.0",
|
|
@@ -170,7 +128,6 @@
|
|
|
170
128
|
"@release-it/conventional-changelog": "^10.0.1",
|
|
171
129
|
"@semantic-release/changelog": "^6.0.3",
|
|
172
130
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
173
|
-
"@semantic-release/git": "^10.0.1",
|
|
174
131
|
"@semantic-release/github": "^12.0.2",
|
|
175
132
|
"@semantic-release/npm": "^13.1.3",
|
|
176
133
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
@@ -180,6 +137,7 @@
|
|
|
180
137
|
"commitlint": "^19.8.1",
|
|
181
138
|
"conventional-changelog-conventionalcommits": "^9.1.0",
|
|
182
139
|
"del-cli": "^6.0.0",
|
|
140
|
+
"doctoc": "^2.2.1",
|
|
183
141
|
"esbuild": "^0.27.0",
|
|
184
142
|
"eslint": "^9.35.0",
|
|
185
143
|
"eslint-config-prettier": "^10.1.8",
|