@maptiler/geocoding-control 2.0.0 → 2.0.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/MapLibreBasedGeocodingControl.d.ts +2616 -27
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +97 -95
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +2 -2
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +26 -4
- package/leaflet.js +906 -909
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +1 -1
- package/maplibregl-controller.js +480 -466
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.d.ts +2594 -9
- package/maplibregl.js +2094 -1969
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.d.ts +2594 -9
- package/maptilersdk.js +2086 -1964
- package/maptilersdk.js.map +1 -1
- package/maptilersdk.umd.js +3 -3
- package/maptilersdk.umd.js.map +1 -1
- package/openlayers-controller.d.ts +1 -1
- package/openlayers-controller.js +62 -60
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +2 -2
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.d.ts +21 -0
- package/openlayers.js +754 -786
- package/openlayers.js.map +1 -1
- package/openlayers.umd.js +3 -3
- package/openlayers.umd.js.map +1 -1
- package/package.json +18 -18
- package/react.d.ts +4 -4
- package/react.js +619 -619
- package/react.js.map +1 -1
- package/react.umd.js +1 -1
- package/react.umd.js.map +1 -1
- package/style.css +1 -1
- package/svelte/FeatureItem.svelte +1 -1
- package/svelte/FeatureItem.svelte.d.ts +2 -2
- package/svelte/GeocodingControl.svelte +31 -32
- package/svelte/GeocodingControl.svelte.d.ts +26 -13
- package/svelte/MapLibreBasedGeocodingControl.d.ts +2616 -27
- package/svelte/MapLibreBasedGeocodingControl.js +120 -17
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +4 -1
- package/svelte/leaflet.d.ts +26 -4
- package/svelte/leaflet.js +17 -19
- package/svelte/maplibregl-controller.d.ts +1 -1
- package/svelte/maplibregl-controller.js +45 -36
- package/svelte/maplibregl.d.ts +2594 -9
- package/svelte/maplibregl.js +11 -3
- package/svelte/maptilersdk.d.ts +2594 -9
- package/svelte/maptilersdk.js +11 -3
- package/svelte/openlayers-controller.d.ts +1 -1
- package/svelte/openlayers-controller.js +4 -1
- package/svelte/openlayers.d.ts +21 -0
- package/svelte/openlayers.js +30 -45
- package/svelte/react.d.ts +4 -4
- package/svelte/react.js +5 -5
- package/svelte/types.d.ts +84 -35
- package/svelte/vanilla.d.ts +14 -1
- package/svelte/vanilla.js +31 -8
- package/types.d.ts +84 -35
- package/vanilla.d.ts +14 -1
- package/vanilla.js +929 -901
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/geocoding-control",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "The Javascript & TypeScript Map Control component for MapTiler Geocoding service. Easy to be integrated into any JavaScript mapping application.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -102,40 +102,40 @@
|
|
|
102
102
|
"./types": "./types.d.ts"
|
|
103
103
|
},
|
|
104
104
|
"devDependencies": {
|
|
105
|
-
"@maptiler/sdk": "^2.4.
|
|
106
|
-
"@sveltejs/package": "^2.3.
|
|
105
|
+
"@maptiler/sdk": "^2.4.2",
|
|
106
|
+
"@sveltejs/package": "^2.3.7",
|
|
107
107
|
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
108
108
|
"@tsconfig/svelte": "^5.0.4",
|
|
109
109
|
"@types/geojson": "^7946.0.14",
|
|
110
|
-
"@types/leaflet": "^1.9.
|
|
111
|
-
"@types/node": "^22.
|
|
112
|
-
"@types/react": "^18.3.
|
|
110
|
+
"@types/leaflet": "^1.9.14",
|
|
111
|
+
"@types/node": "^22.9.1",
|
|
112
|
+
"@types/react": "^18.3.12",
|
|
113
113
|
"@types/react-dom": "^18.3.1",
|
|
114
|
-
"concurrently": "^9.0
|
|
114
|
+
"concurrently": "^9.1.0",
|
|
115
115
|
"dotenv": "^16.4.5",
|
|
116
|
-
"eslint": "^9.
|
|
117
|
-
"eslint-plugin-svelte": "^2.
|
|
118
|
-
"esm-env": "^1.
|
|
119
|
-
"globals": "^15.
|
|
120
|
-
"husky": "^9.1.
|
|
116
|
+
"eslint": "^9.15.0",
|
|
117
|
+
"eslint-plugin-svelte": "^2.46.0",
|
|
118
|
+
"esm-env": "^1.1.4",
|
|
119
|
+
"globals": "^15.12.0",
|
|
120
|
+
"husky": "^9.1.7",
|
|
121
121
|
"leaflet": "^1.9.4",
|
|
122
122
|
"lint-staged": "^15.2.10",
|
|
123
123
|
"maplibre-gl": "^4.7.1",
|
|
124
124
|
"ol": "10.2",
|
|
125
125
|
"prettier": "^3.3.3",
|
|
126
126
|
"prettier-plugin-organize-imports": "^4.1.0",
|
|
127
|
-
"prettier-plugin-svelte": "^3.2.
|
|
127
|
+
"prettier-plugin-svelte": "^3.2.8",
|
|
128
128
|
"react": "^18.3.1",
|
|
129
129
|
"react-dom": "^18.3.1",
|
|
130
130
|
"replace-in-file": "^8.2.0",
|
|
131
|
-
"sass": "^1.
|
|
131
|
+
"sass": "^1.81.0",
|
|
132
132
|
"svelte": "^4.2.19",
|
|
133
|
-
"svelte-check": "^4.0.
|
|
133
|
+
"svelte-check": "^4.0.9",
|
|
134
134
|
"svelte-preprocess": "^6.0.3",
|
|
135
|
-
"tslib": "^2.8.
|
|
135
|
+
"tslib": "^2.8.1",
|
|
136
136
|
"typescript": "^5.6.3",
|
|
137
|
-
"typescript-eslint": "^8.
|
|
138
|
-
"vite": "^5.4.
|
|
137
|
+
"typescript-eslint": "^8.15.0",
|
|
138
|
+
"vite": "^5.4.11"
|
|
139
139
|
},
|
|
140
140
|
"peerDependencies": {
|
|
141
141
|
"@maptiler/sdk": "^1 || ^2",
|
package/react.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ControlOptions,
|
|
2
|
-
type EventNames = keyof
|
|
1
|
+
import type { ControlOptions, DispatcherTypeCC, MapController } from "./types";
|
|
2
|
+
type EventNames = keyof DispatcherTypeCC;
|
|
3
3
|
type EventHandlerFnName<T extends EventNames> = `on${Capitalize<T>}`;
|
|
4
4
|
type CallbackProperties<T> = {
|
|
5
5
|
[K in keyof T as EventHandlerFnName<Extract<K, EventNames>>]?: (event: T[K]) => void;
|
|
@@ -7,7 +7,7 @@ type CallbackProperties<T> = {
|
|
|
7
7
|
type MapControllerProp = {
|
|
8
8
|
mapController?: MapController;
|
|
9
9
|
};
|
|
10
|
-
export type Props = ControlOptions & CallbackProperties<
|
|
10
|
+
export type Props = ControlOptions & CallbackProperties<DispatcherTypeCC> & MapControllerProp;
|
|
11
11
|
export type Methods = {
|
|
12
12
|
blur(): void;
|
|
13
13
|
focus(): void;
|
|
@@ -15,5 +15,5 @@ export type Methods = {
|
|
|
15
15
|
clearMap(): void;
|
|
16
16
|
clearList(): void;
|
|
17
17
|
};
|
|
18
|
-
declare const ReactGeocodingControl: import("react").ForwardRefExoticComponent<ControlOptions & CallbackProperties<
|
|
18
|
+
declare const ReactGeocodingControl: import("react").ForwardRefExoticComponent<ControlOptions & CallbackProperties<DispatcherTypeCC> & MapControllerProp & import("react").RefAttributes<Methods>>;
|
|
19
19
|
export { ReactGeocodingControl as GeocodingControl };
|