@maptiler/geocoding-control 1.4.2-dev.3 → 2.0.0-rc.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 +2971 -35
- package/leaflet-controller.d.ts +1 -1
- package/leaflet-controller.js +580 -569
- package/leaflet-controller.js.map +1 -1
- package/leaflet-controller.umd.js +3 -3
- package/leaflet-controller.umd.js.map +1 -1
- package/leaflet.d.ts +74 -16
- package/leaflet.js +1375 -1344
- package/leaflet.js.map +1 -1
- package/leaflet.umd.js +3 -3
- package/leaflet.umd.js.map +1 -1
- package/maplibregl-controller.d.ts +7 -7
- package/maplibregl-controller.js +683 -661
- package/maplibregl-controller.js.map +1 -1
- package/maplibregl-controller.umd.js +3 -3
- package/maplibregl-controller.umd.js.map +1 -1
- package/maplibregl.js +1596 -1447
- package/maplibregl.js.map +1 -1
- package/maplibregl.umd.js +3 -3
- package/maplibregl.umd.js.map +1 -1
- package/maptilersdk.js +1604 -1452
- 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 +308 -306
- package/openlayers-controller.js.map +1 -1
- package/openlayers-controller.umd.js +3 -3
- package/openlayers-controller.umd.js.map +1 -1
- package/openlayers.d.ts +21 -0
- package/openlayers.js +1352 -1366
- 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 +805 -788
- 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.d.ts +1 -1
- package/svelte/GeocodingControl.svelte +61 -32
- package/svelte/GeocodingControl.svelte.d.ts +24 -9
- package/svelte/MapLibreBasedGeocodingControl.d.ts +2971 -35
- package/svelte/MapLibreBasedGeocodingControl.js +166 -58
- package/svelte/leaflet-controller.d.ts +1 -1
- package/svelte/leaflet-controller.js +50 -24
- package/svelte/leaflet.d.ts +74 -16
- package/svelte/leaflet.js +25 -15
- package/svelte/maplibregl-controller.d.ts +7 -7
- package/svelte/maplibregl-controller.js +96 -66
- package/svelte/maplibregl.js +10 -7
- package/svelte/maptilersdk.js +23 -18
- 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/types.d.ts +32 -12
- package/svelte/vanilla.d.ts +14 -1
- package/svelte/vanilla.js +31 -8
- package/types.d.ts +32 -12
- package/vanilla.d.ts +14 -1
- package/vanilla.js +849 -804
- package/vanilla.js.map +1 -1
- package/vanilla.umd.js +1 -1
- package/vanilla.umd.js.map +1 -1
- package/maplibregl.d.ts +0 -16
- package/maptilersdk.d.ts +0 -11
- package/svelte/maplibregl.d.ts +0 -16
- package/svelte/maptilersdk.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maptiler/geocoding-control",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.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": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"build-openlayers-controller": "FLAVOUR=openlayers-controller vite build",
|
|
44
44
|
"build-react": "FLAVOUR=react vite build",
|
|
45
45
|
"build-vanilla": "FLAVOUR=vanilla vite build",
|
|
46
|
-
"build-types": "tsc --outDir dist --declaration --emitDeclarationOnly -p tsconfig.dist.json",
|
|
46
|
+
"build-types": "tsc --outDir dist --declaration --emitDeclarationOnly -p tsconfig.dist.json; true",
|
|
47
47
|
"clean": "rm -rf dist dist.svelte",
|
|
48
48
|
"pack": "npm run clean && npm run build && cd dist && npm pack",
|
|
49
49
|
"pub": "npm run clean && npm run build && cd dist && npm publish",
|
|
@@ -102,21 +102,21 @@
|
|
|
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.1",
|
|
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.0",
|
|
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.
|
|
116
|
+
"eslint": "^9.15.0",
|
|
117
|
+
"eslint-plugin-svelte": "^2.46.0",
|
|
118
|
+
"esm-env": "^1.1.4",
|
|
119
|
+
"globals": "^15.12.0",
|
|
120
120
|
"husky": "^9.1.6",
|
|
121
121
|
"leaflet": "^1.9.4",
|
|
122
122
|
"lint-staged": "^15.2.10",
|
|
@@ -124,18 +124,18 @@
|
|
|
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.14.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 };
|