@arenarium/maps 1.0.60 → 1.0.62
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 +14 -3
- package/dist/index.js +48 -48
- package/dist/style.css +1 -1
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -434,9 +434,15 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
434
434
|
z.ZodNumber
|
|
435
435
|
], null>, "many">
|
|
436
436
|
], null>;
|
|
437
|
-
|
|
437
|
+
bodyContentCallback: z.ZodFunction<z.ZodTuple<[
|
|
438
438
|
z.ZodString
|
|
439
439
|
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
|
|
440
|
+
bodyPlaceholderCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
441
|
+
z.ZodString
|
|
442
|
+
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>>;
|
|
443
|
+
pinContentCallback: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
|
|
444
|
+
z.ZodString
|
|
445
|
+
], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>>;
|
|
440
446
|
}, "strip", z.ZodTypeAny, {
|
|
441
447
|
data: {
|
|
442
448
|
lat: number;
|
|
@@ -453,7 +459,9 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
453
459
|
number
|
|
454
460
|
][]
|
|
455
461
|
];
|
|
456
|
-
|
|
462
|
+
bodyContentCallback: (args_0: string, ...args: unknown[]) => Promise<any>;
|
|
463
|
+
bodyPlaceholderCallback?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
464
|
+
pinContentCallback?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
457
465
|
}, {
|
|
458
466
|
data: {
|
|
459
467
|
lat: number;
|
|
@@ -470,7 +478,9 @@ declare const mapPopupSchema: z.ZodObject<{
|
|
|
470
478
|
number
|
|
471
479
|
][]
|
|
472
480
|
];
|
|
473
|
-
|
|
481
|
+
bodyContentCallback: (args_0: string, ...args: unknown[]) => Promise<any>;
|
|
482
|
+
bodyPlaceholderCallback?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
483
|
+
pinContentCallback?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
|
|
474
484
|
}>;
|
|
475
485
|
declare const mapPopupStatesRequestSchema: z.ZodObject<{
|
|
476
486
|
apiKey: z.ZodString;
|
|
@@ -546,6 +556,7 @@ export interface MapComponent {
|
|
|
546
556
|
setStyle: (style: MapStyle) => void;
|
|
547
557
|
updatePopups: (popups: MapPopup[]) => Promise<void>;
|
|
548
558
|
removePopups: () => void;
|
|
559
|
+
revealPopup: (id: string) => MapPopup | undefined;
|
|
549
560
|
on: <E extends EventId>(eventId: E, handler: EventHandler<E>) => void;
|
|
550
561
|
off: <E extends EventId>(eventId: E, handler: EventHandler<E>) => void;
|
|
551
562
|
emit: <E extends EventId>(eventId: E, payload: EventPayloadMap[E]) => void;
|