@arenarium/maps 1.0.30 → 1.0.32

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 (2) hide show
  1. package/dist/index.d.ts +28 -2
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -130,8 +130,31 @@ declare const mapOptionsSchema: z.ZodObject<{
130
130
  };
131
131
  };
132
132
  }>;
133
+ declare const mapPopupSchema: z.ZodObject<{
134
+ id: z.ZodString;
135
+ index: z.ZodNumber;
136
+ lat: z.ZodNumber;
137
+ lng: z.ZodNumber;
138
+ width: z.ZodNumber;
139
+ height: z.ZodNumber;
140
+ }, "strip", z.ZodTypeAny, {
141
+ lat: number;
142
+ lng: number;
143
+ id: string;
144
+ index: number;
145
+ width: number;
146
+ height: number;
147
+ }, {
148
+ lat: number;
149
+ lng: number;
150
+ id: string;
151
+ index: number;
152
+ width: number;
153
+ height: number;
154
+ }>;
133
155
  export type MapOptions = z.infer<typeof mapOptionsSchema>;
134
156
  export type MapTheme = z.infer<typeof mapThemeSchema>;
157
+ export type MapPopup = z.infer<typeof mapPopupSchema>;
135
158
  declare namespace Types {
136
159
  export interface Popup {
137
160
  id: string;
@@ -168,7 +191,7 @@ declare namespace Types {
168
191
  markers: Marker[];
169
192
  }
170
193
  }
171
- declare namespace MapComponent {
194
+ export declare namespace MapComponent {
172
195
  interface Position {
173
196
  lat: number;
174
197
  lng: number;
@@ -202,7 +225,10 @@ export interface MapComponent {
202
225
  setPopupsContentCallback: (callback: MapComponent.PopupContentCallback) => void;
203
226
  setPopups: (popups: Types.Popup[]) => void;
204
227
  }
205
- export declare function mountMap(options: MapOptions): MapComponent;
228
+ export declare function mountMap(options: MapOptions): {
229
+ $on?(type: string, callback: (e: any) => void): () => void;
230
+ $set?(props: Partial<Record<string, any>>): void;
231
+ } & Record<string, any>;
206
232
  export declare function unmountMap(map: ReturnType<typeof mountMap>): void;
207
233
 
208
234
  export as namespace arenarium;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arenarium/maps",
3
- "version": "1.0.30",
3
+ "version": "1.0.32",
4
4
  "keywords": [
5
5
  "arenarium",
6
6
  "maps",