@carto/ps-react-maps 3.11.3 → 3.11.5

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.js CHANGED
@@ -459,10 +459,14 @@ const oe = /* @__PURE__ */ vt(Cs), Os = (r) => {
459
459
  const a = s();
460
460
  if (!a.maps?.[n]?.isLoaded) return;
461
461
  const c = a.getViewState(n);
462
- return c ? {
463
- ...new pt(c).fitBounds(o, i?.boundsOptions),
462
+ if (!c) return;
463
+ const y = new pt(c).fitBounds(o, i?.boundsOptions);
464
+ return {
465
+ latitude: y.latitude,
466
+ longitude: y.longitude,
467
+ zoom: y.zoom,
464
468
  ...i?.viewStateOptions
465
- } : void 0;
469
+ };
466
470
  },
467
471
  addLayers: (n, o) => t((i) => {
468
472
  const a = {
@@ -3001,23 +3005,23 @@ function sr(r) {
3001
3005
  return JSON.stringify(e);
3002
3006
  }
3003
3007
  function ie(r) {
3004
- const e = O(12), {
3008
+ const e = O(13), {
3005
3009
  accessToken: t,
3006
3010
  sourceId: s,
3007
3011
  widgetProps: n,
3008
3012
  additionalFilter: o
3009
- } = r, i = Jn(s, o), a = er(t, s), c = a?.props.headers;
3010
- let l;
3011
- e[0] !== c ? (l = sr(c), e[0] = c, e[1] = l) : l = e[1];
3013
+ } = r, i = Jn(s, o), a = er(t, s), c = a?.props.queryParameters, l = a?.props.headers;
3012
3014
  let y;
3013
- e[2] !== t || e[3] !== i || e[4] !== s || e[5] !== l || e[6] !== n ? (y = [s, t, n, i, l], e[2] = t, e[3] = i, e[4] = s, e[5] = l, e[6] = n, e[7] = y) : y = e[7];
3014
- const h = y;
3015
- let g;
3016
- return e[8] !== i || e[9] !== h || e[10] !== a ? (g = {
3015
+ e[0] !== l ? (y = sr(l), e[0] = l, e[1] = y) : y = e[1];
3016
+ let h;
3017
+ e[2] !== t || e[3] !== i || e[4] !== s || e[5] !== c || e[6] !== y || e[7] !== n ? (h = [s, t, n, c, i, y], e[2] = t, e[3] = i, e[4] = s, e[5] = c, e[6] = y, e[7] = n, e[8] = h) : h = e[8];
3018
+ const g = h;
3019
+ let p;
3020
+ return e[9] !== i || e[10] !== g || e[11] !== a ? (p = {
3017
3021
  mergedFilters: i,
3018
3022
  widgetModel: a,
3019
- queryKey: h
3020
- }, e[8] = i, e[9] = h, e[10] = a, e[11] = g) : g = e[11], g;
3023
+ queryKey: g
3024
+ }, e[9] = i, e[10] = g, e[11] = a, e[12] = p) : p = e[12], p;
3021
3025
  }
3022
3026
  function nr(r) {
3023
3027
  const e = O(21), {