@arenarium/maps 1.0.61 → 1.0.63

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
@@ -434,9 +434,37 @@ declare const mapPopupSchema: z.ZodObject<{
434
434
  z.ZodNumber
435
435
  ], null>, "many">
436
436
  ], null>;
437
- contentCallback: z.ZodFunction<z.ZodTuple<[
438
- z.ZodString
439
- ], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
437
+ callbacks: z.ZodObject<{
438
+ body: z.ZodObject<{
439
+ content: z.ZodFunction<z.ZodTuple<[
440
+ z.ZodString
441
+ ], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>;
442
+ placeholder: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
443
+ z.ZodString
444
+ ], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>>;
445
+ }, "strip", z.ZodTypeAny, {
446
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
447
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
448
+ }, {
449
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
450
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
451
+ }>;
452
+ pin: z.ZodOptional<z.ZodFunction<z.ZodTuple<[
453
+ z.ZodString
454
+ ], z.ZodUnknown>, z.ZodPromise<z.ZodAny>>>;
455
+ }, "strip", z.ZodTypeAny, {
456
+ body: {
457
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
458
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
459
+ };
460
+ pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
461
+ }, {
462
+ body: {
463
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
464
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
465
+ };
466
+ pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
467
+ }>;
440
468
  }, "strip", z.ZodTypeAny, {
441
469
  data: {
442
470
  lat: number;
@@ -453,7 +481,13 @@ declare const mapPopupSchema: z.ZodObject<{
453
481
  number
454
482
  ][]
455
483
  ];
456
- contentCallback: (args_0: string, ...args: unknown[]) => Promise<any>;
484
+ callbacks: {
485
+ body: {
486
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
487
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
488
+ };
489
+ pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
490
+ };
457
491
  }, {
458
492
  data: {
459
493
  lat: number;
@@ -470,7 +504,13 @@ declare const mapPopupSchema: z.ZodObject<{
470
504
  number
471
505
  ][]
472
506
  ];
473
- contentCallback: (args_0: string, ...args: unknown[]) => Promise<any>;
507
+ callbacks: {
508
+ body: {
509
+ content: (args_0: string, ...args: unknown[]) => Promise<any>;
510
+ placeholder?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
511
+ };
512
+ pin?: ((args_0: string, ...args: unknown[]) => Promise<any>) | undefined;
513
+ };
474
514
  }>;
475
515
  declare const mapPopupStatesRequestSchema: z.ZodObject<{
476
516
  apiKey: z.ZodString;
@@ -546,6 +586,7 @@ export interface MapComponent {
546
586
  setStyle: (style: MapStyle) => void;
547
587
  updatePopups: (popups: MapPopup[]) => Promise<void>;
548
588
  removePopups: () => void;
589
+ revealPopup: (id: string) => MapPopup | undefined;
549
590
  on: <E extends EventId>(eventId: E, handler: EventHandler<E>) => void;
550
591
  off: <E extends EventId>(eventId: E, handler: EventHandler<E>) => void;
551
592
  emit: <E extends EventId>(eventId: E, payload: EventPayloadMap[E]) => void;