@arenarium/maps 1.0.58 → 1.0.59
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 +87 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -378,6 +378,38 @@ export type MapEventClickHandler = z.infer<typeof mapEventClickHandlerSchema>;
|
|
|
378
378
|
export type MapEventPopupClickHandler = z.infer<typeof mapEventPopupClickHandlerSchema>;
|
|
379
379
|
export type MapEventLoadingStartHandler = z.infer<typeof mapEventLoadingStartHandlerSchema>;
|
|
380
380
|
export type MapEventLoadingEndHandler = z.infer<typeof mapEventLoadingEndHandlerSchema>;
|
|
381
|
+
declare const mapPopupDataSchema: z.ZodObject<{
|
|
382
|
+
id: z.ZodString;
|
|
383
|
+
rank: z.ZodNumber;
|
|
384
|
+
lat: z.ZodNumber;
|
|
385
|
+
lng: z.ZodNumber;
|
|
386
|
+
width: z.ZodNumber;
|
|
387
|
+
height: z.ZodNumber;
|
|
388
|
+
}, "strip", z.ZodTypeAny, {
|
|
389
|
+
lat: number;
|
|
390
|
+
lng: number;
|
|
391
|
+
id: string;
|
|
392
|
+
rank: number;
|
|
393
|
+
width: number;
|
|
394
|
+
height: number;
|
|
395
|
+
}, {
|
|
396
|
+
lat: number;
|
|
397
|
+
lng: number;
|
|
398
|
+
id: string;
|
|
399
|
+
rank: number;
|
|
400
|
+
width: number;
|
|
401
|
+
height: number;
|
|
402
|
+
}>;
|
|
403
|
+
declare const mapPopupStateSchema: z.ZodTuple<[
|
|
404
|
+
z.ZodNumber,
|
|
405
|
+
z.ZodArray<z.ZodTuple<[
|
|
406
|
+
z.ZodNumber,
|
|
407
|
+
z.ZodNumber
|
|
408
|
+
], null>, "many">
|
|
409
|
+
], null>;
|
|
410
|
+
declare const mapPopupContentCallbackSchema: z.ZodFunction<z.ZodTuple<[
|
|
411
|
+
z.ZodString
|
|
412
|
+
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
381
413
|
declare const mapPopupSchema: z.ZodObject<{
|
|
382
414
|
data: z.ZodObject<{
|
|
383
415
|
id: z.ZodString;
|
|
@@ -446,7 +478,62 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
446
478
|
];
|
|
447
479
|
contentCallback: (args_0: string, ...args: unknown[]) => Promise<any>;
|
|
448
480
|
}>;
|
|
481
|
+
declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
482
|
+
apiKey: z.ZodString;
|
|
483
|
+
data: z.ZodArray<z.ZodObject<{
|
|
484
|
+
id: z.ZodString;
|
|
485
|
+
rank: z.ZodNumber;
|
|
486
|
+
lat: z.ZodNumber;
|
|
487
|
+
lng: z.ZodNumber;
|
|
488
|
+
width: z.ZodNumber;
|
|
489
|
+
height: z.ZodNumber;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
lat: number;
|
|
492
|
+
lng: number;
|
|
493
|
+
id: string;
|
|
494
|
+
rank: number;
|
|
495
|
+
width: number;
|
|
496
|
+
height: number;
|
|
497
|
+
}, {
|
|
498
|
+
lat: number;
|
|
499
|
+
lng: number;
|
|
500
|
+
id: string;
|
|
501
|
+
rank: number;
|
|
502
|
+
width: number;
|
|
503
|
+
height: number;
|
|
504
|
+
}>, "many">;
|
|
505
|
+
minZoom: z.ZodNumber;
|
|
506
|
+
maxZoom: z.ZodNumber;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
minZoom: number;
|
|
509
|
+
maxZoom: number;
|
|
510
|
+
data: {
|
|
511
|
+
lat: number;
|
|
512
|
+
lng: number;
|
|
513
|
+
id: string;
|
|
514
|
+
rank: number;
|
|
515
|
+
width: number;
|
|
516
|
+
height: number;
|
|
517
|
+
}[];
|
|
518
|
+
apiKey: string;
|
|
519
|
+
}, {
|
|
520
|
+
minZoom: number;
|
|
521
|
+
maxZoom: number;
|
|
522
|
+
data: {
|
|
523
|
+
lat: number;
|
|
524
|
+
lng: number;
|
|
525
|
+
id: string;
|
|
526
|
+
rank: number;
|
|
527
|
+
width: number;
|
|
528
|
+
height: number;
|
|
529
|
+
}[];
|
|
530
|
+
apiKey: string;
|
|
531
|
+
}>;
|
|
532
|
+
export type MapPopupData = z.infer<typeof mapPopupDataSchema>;
|
|
533
|
+
export type MapPopupState = z.infer<typeof mapPopupStateSchema>;
|
|
534
|
+
export type MapPopupContentCallback = z.infer<typeof mapPopupContentCallbackSchema>;
|
|
449
535
|
export type MapPopup = z.infer<typeof mapPopupSchema>;
|
|
536
|
+
export type MapPopupStatesRequest = z.infer<typeof mapPopupStatesRequestSchema>;
|
|
450
537
|
export declare namespace MapComponent {
|
|
451
538
|
type MapPopupContentCallback = (id: string) => Promise<HTMLElement>;
|
|
452
539
|
}
|