@arenarium/maps 1.0.119 → 1.0.121

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/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Generated by dts-bundle-generator v9.5.1
2
2
 
3
- import { Map as Map$1, MapOptions } from 'maplibre-gl';
3
+ import { MapOptions } from 'maplibre-gl';
4
4
  import { z } from 'zod';
5
5
 
6
6
  declare const mapConfigurationSchema: z.ZodObject<{
@@ -226,14 +226,14 @@ export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSche
226
226
  export type MapPopup = z.infer<typeof mapPopupSchema>;
227
227
  export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
228
228
  export type LibreMarkerCallback = (markerOptions: maplibregl.MarkerOptions) => maplibregl.Marker;
229
- export declare class MapPopupManager {
229
+ export declare class MapManager {
230
230
  private mapMarkerCallback;
231
231
  private map;
232
232
  private mapConfiguration;
233
233
  private mapPopupDataArray;
234
234
  private mapPopupDataMap;
235
235
  private mapPopupDataUpdating;
236
- constructor(map: Map$1, mapMarkerCallback: LibreMarkerCallback);
236
+ constructor(map: maplibregl.Map, mapMarkerCallback: LibreMarkerCallback);
237
237
  setConfiguration(configuration: MapConfiguration | null): void;
238
238
  setColors(primary: string, background: string, text: string): void;
239
239
  updatePopups(popups: MapPopup[]): Promise<void>;
@@ -251,12 +251,11 @@ export declare class MapPopupManager {
251
251
  }
252
252
  export declare const MapDarkStyle: maplibregl.StyleSpecification;
253
253
  export declare const MapStyleLight: maplibregl.StyleSpecification;
254
- export interface MapComponent {
255
- maplibre: () => Map$1;
256
- manager: () => MapPopupManager;
257
- }
258
- export declare function mountMap(options: MapOptions): MapComponent;
259
- export declare function unmountMap(map: ReturnType<typeof mountMap>): void;
254
+ export declare function mountMap(options: MapOptions): {
255
+ maplibregl: maplibregl.Map;
256
+ manager: MapManager;
257
+ unmount: () => Promise<void>;
258
+ };
260
259
 
261
260
  export as namespace arenarium;
262
261