@arenarium/maps 1.0.133 → 1.0.135

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.
@@ -1 +1 @@
1
- "use strict";var p=Object.defineProperty;var m=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var s=(a,e,t)=>m(a,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e,t,l,n){s(this,"parameters",i.Parameters);s(this,"MapClass");s(this,"MapMarkerClass");s(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(l,{...n})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getWidth(){return this.map.getDiv().clientWidth}getHeight(){return this.map.getDiv().clientHeight}createMarker(e,t,l,n){const r=new this.MapMarkerClass({position:{lat:t,lng:l},content:e,zIndex:n});return{instance:r,inserted:()=>r.map!=null&&r.map==this.map,insert:()=>r.map=this.map,remove:()=>r.map=void 0}}};s(i,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let o=i;const y=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],g=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100}]},{elementType:"geometry",stylers:[{lightness:-45}]},{elementType:"labels.text.fill",stylers:[{lightness:-100}]},{elementType:"labels.text.stroke",stylers:[{lightness:-15}]},{featureType:"water",elementType:"geometry",stylers:[{lightness:-50}]}];exports.GoogleMapDarkStyle=g;exports.GoogleMapLightStyle=y;exports.GoogleMapsProvider=o;
1
+ "use strict";var m=Object.defineProperty;var y=(r,e,t)=>e in r?m(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var a=(r,e,t)=>y(r,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=class i{constructor(e,t,l,n){a(this,"parameters",i.Parameters);a(this,"MapClass");a(this,"MapMarkerClass");a(this,"map");this.MapClass=e,this.MapMarkerClass=t,this.map=new this.MapClass(l,{...n})}getMap(){return this.map}getContainer(){return this.map.getDiv()}getZoom(){return this.map.getZoom()??NaN}getWidth(){return this.map.getDiv().clientWidth}getHeight(){return this.map.getDiv().clientHeight}createMarker(e,t,l,n){const s=new this.MapMarkerClass({position:{lat:t,lng:l},content:e,zIndex:n});return{instance:s,inserted:()=>s.map!=null&&s.map==this.map,insert:()=>s.map=this.map,remove:()=>s.map=void 0,update:p=>s.zIndex=p}}};a(i,"Parameters",{mapSize:256,zoomMin:0,zoomMax:22,zoomScale:10});let o=i;const g=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100},{lightness:-10}]},{featureType:"landscape",stylers:[{lightness:30}]},{featureType:"road",elementType:"geometry",stylers:[{saturation:-100}]}],h=[{elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{saturation:-100}]},{elementType:"geometry",stylers:[{lightness:-45}]},{elementType:"labels.text.fill",stylers:[{lightness:-100}]},{elementType:"labels.text.stroke",stylers:[{lightness:-15}]},{featureType:"water",elementType:"geometry",stylers:[{lightness:-50}]}];exports.GoogleMapDarkStyle=h;exports.GoogleMapLightStyle=g;exports.GoogleMapsProvider=o;
package/dist/google.d.ts CHANGED
@@ -88,15 +88,18 @@ declare const mapProviderMarkerSchema: z.ZodObject<{
88
88
  inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
89
89
  insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
90
90
  remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
91
+ update: z.ZodFunction<z.ZodTuple<[z.ZodNumber], z.ZodUnknown>, z.ZodVoid>;
91
92
  }, "strip", z.ZodTypeAny, {
92
93
  inserted: (...args: unknown[]) => boolean;
93
94
  insert: (...args: unknown[]) => void;
94
95
  remove: (...args: unknown[]) => void;
96
+ update: (args_0: number, ...args: unknown[]) => void;
95
97
  instance?: any;
96
98
  }, {
97
99
  inserted: (...args: unknown[]) => boolean;
98
100
  insert: (...args: unknown[]) => void;
99
101
  remove: (...args: unknown[]) => void;
102
+ update: (args_0: number, ...args: unknown[]) => void;
100
103
  instance?: any;
101
104
  }>;
102
105
 
@@ -145,15 +148,18 @@ declare const mapProviderSchema: z.ZodObject<{
145
148
  inserted: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodBoolean>;
146
149
  insert: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
147
150
  remove: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodVoid>;
151
+ update: z.ZodFunction<z.ZodTuple<[z.ZodNumber], z.ZodUnknown>, z.ZodVoid>;
148
152
  }, "strip", z.ZodTypeAny, {
149
153
  inserted: (...args: unknown[]) => boolean;
150
154
  insert: (...args: unknown[]) => void;
151
155
  remove: (...args: unknown[]) => void;
156
+ update: (args_0: number, ...args: unknown[]) => void;
152
157
  instance?: any;
153
158
  }, {
154
159
  inserted: (...args: unknown[]) => boolean;
155
160
  insert: (...args: unknown[]) => void;
156
161
  remove: (...args: unknown[]) => void;
162
+ update: (args_0: number, ...args: unknown[]) => void;
157
163
  instance?: any;
158
164
  }>>;
159
165
  }, "strip", z.ZodTypeAny, {
@@ -171,6 +177,7 @@ declare const mapProviderSchema: z.ZodObject<{
171
177
  inserted: (...args: unknown[]) => boolean;
172
178
  insert: (...args: unknown[]) => void;
173
179
  remove: (...args: unknown[]) => void;
180
+ update: (args_0: number, ...args: unknown[]) => void;
174
181
  instance?: any;
175
182
  };
176
183
  }, {
@@ -188,6 +195,7 @@ declare const mapProviderSchema: z.ZodObject<{
188
195
  inserted: (...args: unknown[]) => boolean;
189
196
  insert: (...args: unknown[]) => void;
190
197
  remove: (...args: unknown[]) => void;
198
+ update: (args_0: number, ...args: unknown[]) => void;
191
199
  instance?: any;
192
200
  };
193
201
  }>;
package/dist/google.es.js CHANGED
@@ -1,12 +1,12 @@
1
- var m = Object.defineProperty;
2
- var o = (a, e, t) => e in a ? m(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var s = (a, e, t) => o(a, typeof e != "symbol" ? e + "" : e, t);
1
+ var o = Object.defineProperty;
2
+ var y = (r, e, t) => e in r ? o(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var a = (r, e, t) => y(r, typeof e != "symbol" ? e + "" : e, t);
4
4
  const i = class i {
5
5
  constructor(e, t, l, n) {
6
- s(this, "parameters", i.Parameters);
7
- s(this, "MapClass");
8
- s(this, "MapMarkerClass");
9
- s(this, "map");
6
+ a(this, "parameters", i.Parameters);
7
+ a(this, "MapClass");
8
+ a(this, "MapMarkerClass");
9
+ a(this, "map");
10
10
  this.MapClass = e, this.MapMarkerClass = t, this.map = new this.MapClass(l, {
11
11
  ...n
12
12
  });
@@ -27,23 +27,24 @@ const i = class i {
27
27
  return this.map.getDiv().clientHeight;
28
28
  }
29
29
  createMarker(e, t, l, n) {
30
- const r = new this.MapMarkerClass({ position: { lat: t, lng: l }, content: e, zIndex: n });
30
+ const s = new this.MapMarkerClass({ position: { lat: t, lng: l }, content: e, zIndex: n });
31
31
  return {
32
- instance: r,
33
- inserted: () => r.map != null && r.map == this.map,
34
- insert: () => r.map = this.map,
35
- remove: () => r.map = void 0
32
+ instance: s,
33
+ inserted: () => s.map != null && s.map == this.map,
34
+ insert: () => s.map = this.map,
35
+ remove: () => s.map = void 0,
36
+ update: (m) => s.zIndex = m
36
37
  };
37
38
  }
38
39
  };
39
- s(i, "Parameters", {
40
+ a(i, "Parameters", {
40
41
  mapSize: 256,
41
42
  zoomMin: 0,
42
43
  zoomMax: 22,
43
44
  zoomScale: 10
44
45
  });
45
46
  let p = i;
46
- const h = [
47
+ const g = [
47
48
  {
48
49
  elementType: "labels.icon",
49
50
  stylers: [
@@ -79,7 +80,7 @@ const h = [
79
80
  }
80
81
  ]
81
82
  }
82
- ], g = [
83
+ ], c = [
83
84
  {
84
85
  elementType: "labels.icon",
85
86
  stylers: [
@@ -130,7 +131,7 @@ const h = [
130
131
  }
131
132
  ];
132
133
  export {
133
- g as GoogleMapDarkStyle,
134
- h as GoogleMapLightStyle,
134
+ c as GoogleMapDarkStyle,
135
+ g as GoogleMapLightStyle,
135
136
  p as GoogleMapsProvider
136
137
  };
package/dist/index.d.ts CHANGED
@@ -33,7 +33,13 @@ declare const mapConfigurationSchema: z.ZodObject<{
33
33
  limit?: number | undefined;
34
34
  } | undefined;
35
35
  }>>;
36
- api: z.ZodOptional<z.ZodString>;
36
+ states: z.ZodOptional<z.ZodObject<{
37
+ api: z.ZodOptional<z.ZodString>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ api?: string | undefined;
40
+ }, {
41
+ api?: string | undefined;
42
+ }>>;
37
43
  }, "strip", z.ZodTypeAny, {
38
44
  pin?: {
39
45
  fade?: boolean | undefined;
@@ -45,7 +51,9 @@ declare const mapConfigurationSchema: z.ZodObject<{
45
51
  limit?: number | undefined;
46
52
  } | undefined;
47
53
  } | undefined;
48
- api?: string | undefined;
54
+ states?: {
55
+ api?: string | undefined;
56
+ } | undefined;
49
57
  }, {
50
58
  pin?: {
51
59
  fade?: boolean | undefined;
@@ -57,7 +65,9 @@ declare const mapConfigurationSchema: z.ZodObject<{
57
65
  limit?: number | undefined;
58
66
  } | undefined;
59
67
  } | undefined;
60
- api?: string | undefined;
68
+ states?: {
69
+ api?: string | undefined;
70
+ } | undefined;
61
71
  }>;
62
72
  export type MapConfiguration = z.infer<typeof mapConfigurationSchema>;
63
73
  declare const mapProviderParametersSchema: z.ZodObject<{
@@ -84,15 +94,20 @@ declare const mapProviderMarkerSchema: z.ZodObject<{
84
94
  ], z.ZodUnknown>, z.ZodVoid>;
85
95
  remove: z.ZodFunction<z.ZodTuple<[
86
96
  ], z.ZodUnknown>, z.ZodVoid>;
97
+ update: z.ZodFunction<z.ZodTuple<[
98
+ z.ZodNumber
99
+ ], z.ZodUnknown>, z.ZodVoid>;
87
100
  }, "strip", z.ZodTypeAny, {
88
101
  inserted: (...args: unknown[]) => boolean;
89
102
  insert: (...args: unknown[]) => void;
90
103
  remove: (...args: unknown[]) => void;
104
+ update: (args_0: number, ...args: unknown[]) => void;
91
105
  instance?: any;
92
106
  }, {
93
107
  inserted: (...args: unknown[]) => boolean;
94
108
  insert: (...args: unknown[]) => void;
95
109
  remove: (...args: unknown[]) => void;
110
+ update: (args_0: number, ...args: unknown[]) => void;
96
111
  instance?: any;
97
112
  }>;
98
113
  declare const mapProviderSchema: z.ZodObject<{
@@ -133,15 +148,20 @@ declare const mapProviderSchema: z.ZodObject<{
133
148
  ], z.ZodUnknown>, z.ZodVoid>;
134
149
  remove: z.ZodFunction<z.ZodTuple<[
135
150
  ], z.ZodUnknown>, z.ZodVoid>;
151
+ update: z.ZodFunction<z.ZodTuple<[
152
+ z.ZodNumber
153
+ ], z.ZodUnknown>, z.ZodVoid>;
136
154
  }, "strip", z.ZodTypeAny, {
137
155
  inserted: (...args: unknown[]) => boolean;
138
156
  insert: (...args: unknown[]) => void;
139
157
  remove: (...args: unknown[]) => void;
158
+ update: (args_0: number, ...args: unknown[]) => void;
140
159
  instance?: any;
141
160
  }, {
142
161
  inserted: (...args: unknown[]) => boolean;
143
162
  insert: (...args: unknown[]) => void;
144
163
  remove: (...args: unknown[]) => void;
164
+ update: (args_0: number, ...args: unknown[]) => void;
145
165
  instance?: any;
146
166
  }>>;
147
167
  }, "strip", z.ZodTypeAny, {
@@ -159,6 +179,7 @@ declare const mapProviderSchema: z.ZodObject<{
159
179
  inserted: (...args: unknown[]) => boolean;
160
180
  insert: (...args: unknown[]) => void;
161
181
  remove: (...args: unknown[]) => void;
182
+ update: (args_0: number, ...args: unknown[]) => void;
162
183
  instance?: any;
163
184
  };
164
185
  }, {
@@ -176,6 +197,7 @@ declare const mapProviderSchema: z.ZodObject<{
176
197
  inserted: (...args: unknown[]) => boolean;
177
198
  insert: (...args: unknown[]) => void;
178
199
  remove: (...args: unknown[]) => void;
200
+ update: (args_0: number, ...args: unknown[]) => void;
179
201
  instance?: any;
180
202
  };
181
203
  }>;