@arenarium/maps 1.0.97 → 1.0.100

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
@@ -146,6 +146,50 @@ declare const mapStyleSchema: z.ZodUnion<[
146
146
  url: string;
147
147
  }>
148
148
  ]>;
149
+ declare const mapConfigurationSchema: z.ZodObject<{
150
+ pin: z.ZodOptional<z.ZodObject<{
151
+ fade: z.ZodOptional<z.ZodBoolean>;
152
+ }, "strip", z.ZodTypeAny, {
153
+ fade?: boolean | undefined;
154
+ }, {
155
+ fade?: boolean | undefined;
156
+ }>>;
157
+ animation: z.ZodOptional<z.ZodObject<{
158
+ queue: z.ZodOptional<z.ZodObject<{
159
+ limit: z.ZodOptional<z.ZodNumber>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ limit?: number | undefined;
162
+ }, {
163
+ limit?: number | undefined;
164
+ }>>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ queue?: {
167
+ limit?: number | undefined;
168
+ } | undefined;
169
+ }, {
170
+ queue?: {
171
+ limit?: number | undefined;
172
+ } | undefined;
173
+ }>>;
174
+ }, "strip", z.ZodTypeAny, {
175
+ pin?: {
176
+ fade?: boolean | undefined;
177
+ } | undefined;
178
+ animation?: {
179
+ queue?: {
180
+ limit?: number | undefined;
181
+ } | undefined;
182
+ } | undefined;
183
+ }, {
184
+ pin?: {
185
+ fade?: boolean | undefined;
186
+ } | undefined;
187
+ animation?: {
188
+ queue?: {
189
+ limit?: number | undefined;
190
+ } | undefined;
191
+ } | undefined;
192
+ }>;
149
193
  declare const mapOptionsSchema: z.ZodObject<{
150
194
  container: z.ZodString;
151
195
  position: z.ZodObject<{
@@ -173,6 +217,74 @@ declare const mapOptionsSchema: z.ZodObject<{
173
217
  };
174
218
  zoom: number;
175
219
  }>;
220
+ style: z.ZodUnion<[
221
+ z.ZodObject<{
222
+ name: z.ZodUnion<[
223
+ z.ZodLiteral<"dark">,
224
+ z.ZodLiteral<"light">
225
+ ]>;
226
+ colors: z.ZodObject<{
227
+ primary: z.ZodString;
228
+ background: z.ZodString;
229
+ text: z.ZodString;
230
+ }, "strip", z.ZodTypeAny, {
231
+ primary: string;
232
+ background: string;
233
+ text: string;
234
+ }, {
235
+ primary: string;
236
+ background: string;
237
+ text: string;
238
+ }>;
239
+ }, "strip", z.ZodTypeAny, {
240
+ name: "dark" | "light";
241
+ colors: {
242
+ primary: string;
243
+ background: string;
244
+ text: string;
245
+ };
246
+ }, {
247
+ name: "dark" | "light";
248
+ colors: {
249
+ primary: string;
250
+ background: string;
251
+ text: string;
252
+ };
253
+ }>,
254
+ z.ZodObject<{
255
+ name: z.ZodLiteral<"custom">;
256
+ url: z.ZodString;
257
+ colors: z.ZodObject<{
258
+ primary: z.ZodString;
259
+ background: z.ZodString;
260
+ text: z.ZodString;
261
+ }, "strip", z.ZodTypeAny, {
262
+ primary: string;
263
+ background: string;
264
+ text: string;
265
+ }, {
266
+ primary: string;
267
+ background: string;
268
+ text: string;
269
+ }>;
270
+ }, "strip", z.ZodTypeAny, {
271
+ name: "custom";
272
+ colors: {
273
+ primary: string;
274
+ background: string;
275
+ text: string;
276
+ };
277
+ url: string;
278
+ }, {
279
+ name: "custom";
280
+ colors: {
281
+ primary: string;
282
+ background: string;
283
+ text: string;
284
+ };
285
+ url: string;
286
+ }>
287
+ ]>;
176
288
  restriction: z.ZodOptional<z.ZodObject<{
177
289
  minZoom: z.ZodOptional<z.ZodNumber>;
178
290
  maxZoom: z.ZodOptional<z.ZodNumber>;
@@ -243,74 +355,50 @@ declare const mapOptionsSchema: z.ZodObject<{
243
355
  };
244
356
  } | undefined;
245
357
  }>>;
246
- style: z.ZodUnion<[
247
- z.ZodObject<{
248
- name: z.ZodUnion<[
249
- z.ZodLiteral<"dark">,
250
- z.ZodLiteral<"light">
251
- ]>;
252
- colors: z.ZodObject<{
253
- primary: z.ZodString;
254
- background: z.ZodString;
255
- text: z.ZodString;
256
- }, "strip", z.ZodTypeAny, {
257
- primary: string;
258
- background: string;
259
- text: string;
260
- }, {
261
- primary: string;
262
- background: string;
263
- text: string;
264
- }>;
358
+ configuration: z.ZodOptional<z.ZodObject<{
359
+ pin: z.ZodOptional<z.ZodObject<{
360
+ fade: z.ZodOptional<z.ZodBoolean>;
265
361
  }, "strip", z.ZodTypeAny, {
266
- name: "dark" | "light";
267
- colors: {
268
- primary: string;
269
- background: string;
270
- text: string;
271
- };
362
+ fade?: boolean | undefined;
272
363
  }, {
273
- name: "dark" | "light";
274
- colors: {
275
- primary: string;
276
- background: string;
277
- text: string;
278
- };
279
- }>,
280
- z.ZodObject<{
281
- name: z.ZodLiteral<"custom">;
282
- url: z.ZodString;
283
- colors: z.ZodObject<{
284
- primary: z.ZodString;
285
- background: z.ZodString;
286
- text: z.ZodString;
364
+ fade?: boolean | undefined;
365
+ }>>;
366
+ animation: z.ZodOptional<z.ZodObject<{
367
+ queue: z.ZodOptional<z.ZodObject<{
368
+ limit: z.ZodOptional<z.ZodNumber>;
287
369
  }, "strip", z.ZodTypeAny, {
288
- primary: string;
289
- background: string;
290
- text: string;
370
+ limit?: number | undefined;
291
371
  }, {
292
- primary: string;
293
- background: string;
294
- text: string;
295
- }>;
372
+ limit?: number | undefined;
373
+ }>>;
296
374
  }, "strip", z.ZodTypeAny, {
297
- name: "custom";
298
- colors: {
299
- primary: string;
300
- background: string;
301
- text: string;
302
- };
303
- url: string;
375
+ queue?: {
376
+ limit?: number | undefined;
377
+ } | undefined;
304
378
  }, {
305
- name: "custom";
306
- colors: {
307
- primary: string;
308
- background: string;
309
- text: string;
310
- };
311
- url: string;
312
- }>
313
- ]>;
379
+ queue?: {
380
+ limit?: number | undefined;
381
+ } | undefined;
382
+ }>>;
383
+ }, "strip", z.ZodTypeAny, {
384
+ pin?: {
385
+ fade?: boolean | undefined;
386
+ } | undefined;
387
+ animation?: {
388
+ queue?: {
389
+ limit?: number | undefined;
390
+ } | undefined;
391
+ } | undefined;
392
+ }, {
393
+ pin?: {
394
+ fade?: boolean | undefined;
395
+ } | undefined;
396
+ animation?: {
397
+ queue?: {
398
+ limit?: number | undefined;
399
+ } | undefined;
400
+ } | undefined;
401
+ }>>;
314
402
  }, "strip", z.ZodTypeAny, {
315
403
  container: string;
316
404
  position: {
@@ -350,6 +438,16 @@ declare const mapOptionsSchema: z.ZodObject<{
350
438
  };
351
439
  } | undefined;
352
440
  } | undefined;
441
+ configuration?: {
442
+ pin?: {
443
+ fade?: boolean | undefined;
444
+ } | undefined;
445
+ animation?: {
446
+ queue?: {
447
+ limit?: number | undefined;
448
+ } | undefined;
449
+ } | undefined;
450
+ } | undefined;
353
451
  }, {
354
452
  container: string;
355
453
  position: {
@@ -389,12 +487,23 @@ declare const mapOptionsSchema: z.ZodObject<{
389
487
  };
390
488
  } | undefined;
391
489
  } | undefined;
490
+ configuration?: {
491
+ pin?: {
492
+ fade?: boolean | undefined;
493
+ } | undefined;
494
+ animation?: {
495
+ queue?: {
496
+ limit?: number | undefined;
497
+ } | undefined;
498
+ } | undefined;
499
+ } | undefined;
392
500
  }>;
393
501
  export type MapCoordinate = z.infer<typeof mapCoordinateSchema>;
394
502
  export type MapPosition = z.infer<typeof mapPositionSchema>;
395
503
  export type MapBounds = z.infer<typeof mapBoundsSchema>;
396
504
  export type MapOptions = z.infer<typeof mapOptionsSchema>;
397
505
  export type MapStyle = z.infer<typeof mapStyleSchema>;
506
+ export type MapConfiguration = z.infer<typeof mapConfigurationSchema>;
398
507
  declare const mapEventLoadHandlerSchema: z.ZodFunction<z.ZodTuple<[
399
508
  ], z.ZodUnknown>, z.ZodVoid>;
400
509
  declare const mapEventIdleHandlerSchema: z.ZodFunction<z.ZodTuple<[
@@ -640,6 +749,8 @@ export interface MapComponent {
640
749
  zoomOut: () => void;
641
750
  getStyle: () => MapStyle;
642
751
  setStyle: (style: MapStyle) => void;
752
+ getConfiguration: () => MapConfiguration;
753
+ setConfiguration: (configuration: MapConfiguration) => void;
643
754
  updatePopups: (popups: MapPopup[]) => Promise<void>;
644
755
  removePopups: () => void;
645
756
  revealPopup: (id: string) => MapPopup | undefined;