@maptiler/geocoding-control 2.0.1 → 2.1.0-with-autocomplete-timeout

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.
Files changed (110) hide show
  1. package/MapLibreBasedGeocodingControl.d.ts +1037 -626
  2. package/icons/10pin.svg +4 -1
  3. package/icons/9pin.svg +4 -1
  4. package/icons/alcohol.svg +1 -1
  5. package/icons/alpine_hut.svg +1 -1
  6. package/icons/apartment.svg +4 -1
  7. package/icons/area.svg +1 -5
  8. package/icons/artwork.svg +4 -1
  9. package/icons/beauty.svg +14 -1
  10. package/icons/bicycle_repair_station.svg +18 -1
  11. package/icons/biergarten.svg +4 -1
  12. package/icons/books.svg +14 -1
  13. package/icons/bowl.svg +4 -1
  14. package/icons/bowling_alley.svg +4 -1
  15. package/icons/bus_station.svg +1 -1
  16. package/icons/camping.svg +1 -1
  17. package/icons/car_repair.svg +14 -1
  18. package/icons/car_wash.svg +19 -1
  19. package/icons/cave_entrance.svg +15 -1
  20. package/icons/chalet.svg +1 -1
  21. package/icons/chemist.svg +14 -1
  22. package/icons/church.svg +4 -1
  23. package/icons/community_centre.svg +20 -1
  24. package/icons/firestation.svg +4 -1
  25. package/icons/guest_house.svg +29 -8
  26. package/icons/hotel.svg +1 -1
  27. package/icons/housenumber.svg +19 -14
  28. package/icons/hut.svg +1 -4
  29. package/icons/medical_supply.svg +20 -1
  30. package/icons/memorial.svg +14 -1
  31. package/icons/motel.svg +19 -1
  32. package/icons/post.svg +1 -1
  33. package/icons/post_office.svg +1 -1
  34. package/icons/postal_code.svg +1 -23
  35. package/icons/public_bookcase.svg +14 -1
  36. package/icons/public_building.svg +4 -1
  37. package/icons/shintoist.svg +1 -1
  38. package/icons/street.svg +11 -14
  39. package/icons/vehicle_inspection.svg +18 -1
  40. package/icons/wilderness_hut.svg +1 -1
  41. package/leaflet-controller.js +32 -31
  42. package/leaflet-controller.js.map +1 -1
  43. package/leaflet-controller.umd.js +1 -1
  44. package/leaflet-controller.umd.js.map +1 -1
  45. package/leaflet.d.ts +32 -1
  46. package/leaflet.js +1611 -1416
  47. package/leaflet.js.map +1 -1
  48. package/leaflet.umd.js +3 -3
  49. package/leaflet.umd.js.map +1 -1
  50. package/maplibregl-controller.js +5 -5
  51. package/maplibregl-controller.js.map +1 -1
  52. package/maplibregl-controller.umd.js +1 -1
  53. package/maplibregl-controller.umd.js.map +1 -1
  54. package/maplibregl.d.ts +527 -626
  55. package/maplibregl.js +1968 -1778
  56. package/maplibregl.js.map +1 -1
  57. package/maplibregl.umd.js +3 -3
  58. package/maplibregl.umd.js.map +1 -1
  59. package/maptilersdk.d.ts +527 -626
  60. package/maptilersdk.js +1966 -1776
  61. package/maptilersdk.js.map +1 -1
  62. package/maptilersdk.umd.js +3 -3
  63. package/maptilersdk.umd.js.map +1 -1
  64. package/openlayers-controller.js +5 -4
  65. package/openlayers-controller.js.map +1 -1
  66. package/openlayers-controller.umd.js +1 -1
  67. package/openlayers-controller.umd.js.map +1 -1
  68. package/openlayers.d.ts +32 -1
  69. package/openlayers.js +2082 -1887
  70. package/openlayers.js.map +1 -1
  71. package/openlayers.umd.js +3 -3
  72. package/openlayers.umd.js.map +1 -1
  73. package/package.json +23 -23
  74. package/react.d.ts +27 -1
  75. package/react.js +1320 -1145
  76. package/react.js.map +1 -1
  77. package/react.umd.js +1 -1
  78. package/react.umd.js.map +1 -1
  79. package/style.css +1 -1
  80. package/svelte/FeatureItem.svelte +59 -12
  81. package/svelte/FeatureItem.svelte.d.ts +2 -2
  82. package/svelte/GeocodingControl.svelte +182 -85
  83. package/svelte/GeocodingControl.svelte.d.ts +11 -3
  84. package/svelte/MapLibreBasedGeocodingControl.d.ts +1037 -626
  85. package/svelte/MapLibreBasedGeocodingControl.js +36 -6
  86. package/svelte/leaflet-controller.js +3 -3
  87. package/svelte/leaflet.d.ts +32 -1
  88. package/svelte/leaflet.js +35 -2
  89. package/svelte/maplibregl-controller.js +3 -3
  90. package/svelte/maplibregl.d.ts +527 -626
  91. package/svelte/maptilersdk.d.ts +527 -626
  92. package/svelte/openlayers-controller.js +4 -4
  93. package/svelte/openlayers.d.ts +32 -1
  94. package/svelte/openlayers.js +36 -3
  95. package/svelte/react.d.ts +27 -1
  96. package/svelte/react.js +16 -4
  97. package/svelte/types.d.ts +24 -1
  98. package/svelte/vanilla.d.ts +32 -1
  99. package/svelte/vanilla.js +35 -2
  100. package/types.d.ts +24 -1
  101. package/vanilla.d.ts +32 -1
  102. package/vanilla.js +1184 -990
  103. package/vanilla.js.map +1 -1
  104. package/vanilla.umd.js +1 -1
  105. package/vanilla.umd.js.map +1 -1
  106. package/icons/aerodrome.12.svg +0 -1
  107. package/icons/bus_stop.12.svg +0 -1
  108. package/icons/elevator.12.svg +0 -1
  109. /package/icons/{helipad.16.svg → helipad.svg} +0 -0
  110. /package/icons/{traffic_light.13.svg → traffic_light.svg} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/geocoding-control",
3
- "version": "2.0.1",
3
+ "version": "2.1.0-with-autocomplete-timeout",
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,39 +102,39 @@
102
102
  "./types": "./types.d.ts"
103
103
  },
104
104
  "devDependencies": {
105
- "@maptiler/sdk": "^2.4.2",
105
+ "@maptiler/sdk": "^2.5.0",
106
106
  "@sveltejs/package": "^2.3.7",
107
107
  "@sveltejs/vite-plugin-svelte": "^3.1.2",
108
108
  "@tsconfig/svelte": "^5.0.4",
109
- "@types/geojson": "^7946.0.14",
110
- "@types/leaflet": "^1.9.14",
111
- "@types/node": "^22.9.1",
112
- "@types/react": "^18.3.12",
113
- "@types/react-dom": "^18.3.1",
109
+ "@types/geojson": "^7946.0.15",
110
+ "@types/leaflet": "^1.9.15",
111
+ "@types/node": "^22.10.1",
112
+ "@types/react": "^19.0.1",
113
+ "@types/react-dom": "^19.0.2",
114
114
  "concurrently": "^9.1.0",
115
- "dotenv": "^16.4.5",
116
- "eslint": "^9.15.0",
117
- "eslint-plugin-svelte": "^2.46.0",
118
- "esm-env": "^1.1.4",
119
- "globals": "^15.12.0",
115
+ "dotenv": "^16.4.7",
116
+ "eslint": "^9.16.0",
117
+ "eslint-plugin-svelte": "^2.46.1",
118
+ "esm-env": "^1.2.1",
119
+ "globals": "^15.13.0",
120
120
  "husky": "^9.1.7",
121
121
  "leaflet": "^1.9.4",
122
- "lint-staged": "^15.2.10",
122
+ "lint-staged": "^15.2.11",
123
123
  "maplibre-gl": "^4.7.1",
124
- "ol": "10.2",
125
- "prettier": "^3.3.3",
124
+ "ol": "10.3",
125
+ "prettier": "^3.4.2",
126
126
  "prettier-plugin-organize-imports": "^4.1.0",
127
- "prettier-plugin-svelte": "^3.2.8",
128
- "react": "^18.3.1",
129
- "react-dom": "^18.3.1",
127
+ "prettier-plugin-svelte": "^3.3.2",
128
+ "react": "^19.0.0",
129
+ "react-dom": "^19.0.0",
130
130
  "replace-in-file": "^8.2.0",
131
- "sass": "^1.81.0",
131
+ "sass": "^1.82.0",
132
132
  "svelte": "^4.2.19",
133
- "svelte-check": "^4.0.9",
133
+ "svelte-check": "^4.1.1",
134
134
  "svelte-preprocess": "^6.0.3",
135
135
  "tslib": "^2.8.1",
136
- "typescript": "^5.6.3",
137
- "typescript-eslint": "^8.15.0",
136
+ "typescript": "^5.7.2",
137
+ "typescript-eslint": "^8.18.0",
138
138
  "vite": "^5.4.11"
139
139
  },
140
140
  "peerDependencies": {
@@ -142,7 +142,7 @@
142
142
  "leaflet": "^1.7 || ^1.8 || ^1.9",
143
143
  "maplibre-gl": "^2 || ^3 || ^4 || ^5",
144
144
  "ol": "^6 || ^7 || ^8 || ^9 || ^10",
145
- "react": "^17 || ^18",
145
+ "react": "^17 || ^18 || ^19",
146
146
  "svelte": "^4.2"
147
147
  },
148
148
  "peerDependenciesMeta": {
package/react.d.ts CHANGED
@@ -9,11 +9,37 @@ type MapControllerProp = {
9
9
  };
10
10
  export type Props = ControlOptions & CallbackProperties<DispatcherTypeCC> & MapControllerProp;
11
11
  export type Methods = {
12
+ /**
13
+ * Blur the search input box.
14
+ */
12
15
  blur(): void;
13
- focus(): void;
16
+ /**
17
+ * Focus the search input box.
18
+ *
19
+ * @param options [FocusOptions](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/focus#options)
20
+ */
21
+ focus(options?: FocusOptions): void;
22
+ /**
23
+ * Set the content of search input box.
24
+ *
25
+ * @param value text to set
26
+ * @param submit perform the search
27
+ */
14
28
  setQuery(value: string, submit?: boolean): void;
29
+ /**
30
+ * Clear geocoding search results from the map.
31
+ */
15
32
  clearMap(): void;
33
+ /**
34
+ * Clear search result list.
35
+ */
16
36
  clearList(): void;
37
+ /**
38
+ * Set reverse geocoding mode.
39
+ *
40
+ * @param reverseActive reverse geocoding active
41
+ */
42
+ setReverseMode(reverseActive: boolean): void;
17
43
  };
18
44
  declare const ReactGeocodingControl: import("react").ForwardRefExoticComponent<ControlOptions & CallbackProperties<DispatcherTypeCC> & MapControllerProp & import("react").RefAttributes<Methods>>;
19
45
  export { ReactGeocodingControl as GeocodingControl };