@maptiler/geocoding-control 3.0.0 → 3.1.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.
@@ -2,6 +2,7 @@ import { LitElement } from 'lit';
2
2
  import { BBox, EnableReverse, Feature, ProximityRule, ShowPlaceType, TypeRule, Worldview } from '../types';
3
3
  import { MaptilerGeocoderEventName, MaptilerGeocoderEventNameMap } from './geocoder-events';
4
4
  import { MaptilerGeocoderOptions } from './geocoder-options';
5
+ type InputElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
5
6
  export declare class MaptilerGeocoderElement extends LitElement implements MaptilerGeocoderOptions {
6
7
  #private;
7
8
  /** @internal */
@@ -43,8 +44,16 @@ export declare class MaptilerGeocoderElement extends LitElement implements Mapti
43
44
  showResultsWhileTyping?: boolean | undefined;
44
45
  types?: TypeRule[];
45
46
  worldview?: Worldview;
46
- /** Reference to the input element the user can type a query into */
47
- private input;
47
+ private contentSlotElements;
48
+ private inputSlotElements;
49
+ private searchButtonElements;
50
+ private clearButtonElements;
51
+ private reverseButtonElements;
52
+ private clearErrorButtonElements;
53
+ private searchIconElements;
54
+ private clearIconElements;
55
+ private reverseIconElements;
56
+ private clearErrorIconElements;
48
57
  /** Value to search via geocoding */
49
58
  private searchValue;
50
59
  /** Features found via geocoding */
@@ -67,6 +76,8 @@ export declare class MaptilerGeocoderElement extends LitElement implements Mapti
67
76
  private isFeatureListVisible;
68
77
  /** Feature list is currently interacted with using pointer device so it should not be closed even though input lost focus */
69
78
  private isFeatureListInteractedWith;
79
+ get isLoading(): boolean;
80
+ get input(): InputElement | undefined;
70
81
  protected firstUpdated(): void;
71
82
  /**
72
83
  * Set the options of this instance.
@@ -114,3 +125,4 @@ declare global {
114
125
  "maptiler-geocoder": MaptilerGeocoderElement;
115
126
  }
116
127
  }
128
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maptiler/geocoding-control",
3
- "version": "3.0.0",
3
+ "version": "3.1.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": {
@@ -106,7 +106,7 @@
106
106
  "@types/node": "ts5.8",
107
107
  "@types/react": "^19.2.6",
108
108
  "@types/react-dom": "^19.2.3",
109
- "@vitest/web-worker": "^4.0.9",
109
+ "@vitest/browser-playwright": "^4.1.5",
110
110
  "dotenv": "^16.4.7",
111
111
  "eslint": "^9.38.0",
112
112
  "eslint-config-prettier": "^10.1.8",
@@ -138,7 +138,7 @@
138
138
  "vite-plugin-dts": "^4.5.4",
139
139
  "vite-plugin-externalize-deps": "^0.10.0",
140
140
  "vite-plugin-static-copy": "^3.1.4",
141
- "vitest": "^4.0.8"
141
+ "vitest": "^4.1.5"
142
142
  },
143
143
  "peerDependencies": {
144
144
  "@maptiler/sdk": "3 - 4",