@dynamo-caffeina-dev/locator-frontend 0.0.3 → 0.0.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.
@@ -1,4 +1,4 @@
1
- import { j as a, A as i } from "./index-Dv5vjAmU.js";
1
+ import { j as a, A as i } from "./index-DSC2k7o_.js";
2
2
  function p({
3
3
  children: r,
4
4
  apiKey: o,
@@ -20,4 +20,4 @@ function p({
20
20
  export {
21
21
  p as default
22
22
  };
23
- //# sourceMappingURL=GoogleMapsProvider-D2hBqbFb.js.map
23
+ //# sourceMappingURL=GoogleMapsProvider-BOj1ea91.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GoogleMapsProvider-D2hBqbFb.js","sources":["../src/components/organisms/Locator/providers/GoogleMapsProvider.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { APIProvider, APIProviderProps } from \"@vis.gl/react-google-maps\";\n\nexport default function GoogleMapsProvider({\n children,\n apiKey,\n language,\n region,\n libraries,\n}: PropsWithChildren<APIProviderProps>) {\n return (\n <APIProvider\n apiKey={apiKey}\n region={region}\n language={language}\n libraries={libraries}\n >\n {children}\n </APIProvider>\n );\n}\n"],"names":["GoogleMapsProvider","children","apiKey","language","region","libraries","jsx","APIProvider"],"mappings":";AAGA,SAAwBA,EAAmB;AAAA,EACzC,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,GAAwC;AAEpC,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAAL;AAAA,MACA,QAAAE;AAAA,MACA,UAAAD;AAAA,MACA,WAAAE;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EACH;AAEJ;"}
1
+ {"version":3,"file":"GoogleMapsProvider-BOj1ea91.js","sources":["../src/components/organisms/Locator/providers/GoogleMapsProvider.tsx"],"sourcesContent":["import { PropsWithChildren } from \"react\";\nimport { APIProvider, APIProviderProps } from \"@vis.gl/react-google-maps\";\n\nexport default function GoogleMapsProvider({\n children,\n apiKey,\n language,\n region,\n libraries,\n}: PropsWithChildren<APIProviderProps>) {\n return (\n <APIProvider\n apiKey={apiKey}\n region={region}\n language={language}\n libraries={libraries}\n >\n {children}\n </APIProvider>\n );\n}\n"],"names":["GoogleMapsProvider","children","apiKey","language","region","libraries","jsx","APIProvider"],"mappings":";AAGA,SAAwBA,EAAmB;AAAA,EACzC,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,WAAAC;AACF,GAAwC;AAEpC,SAAAC,gBAAAA,EAAA;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,QAAAL;AAAA,MACA,QAAAE;AAAA,MACA,UAAAD;AAAA,MACA,WAAAE;AAAA,MAEC,UAAAJ;AAAA,IAAA;AAAA,EACH;AAEJ;"}
@@ -931,7 +931,7 @@ function Ue({
931
931
  }
932
932
  );
933
933
  }
934
- const _c = jr(() => import("./GoogleMapsProvider-D2hBqbFb.js")), Ac = jr(() => import("./MapboxProvider-CC8pMGki.js")), Mc = jr(() => import("./HEREMapsProvider-BO6aAVqj.js"));
934
+ const _c = jr(() => import("./GoogleMapsProvider-BOj1ea91.js")), Ac = jr(() => import("./MapboxProvider-CC8pMGki.js")), Mc = jr(() => import("./HEREMapsProvider-BO6aAVqj.js"));
935
935
  function Lc({
936
936
  children: t,
937
937
  mapProvider: e
@@ -6673,29 +6673,29 @@ function Pm() {
6673
6673
  var Mn = /* @__PURE__ */ ((t) => (t.CLUSTERS = "clusters", t.MARKERS = "markers", t.FIND = "find", t))(Mn || {});
6674
6674
  const vl = jt({
6675
6675
  endpointMap: {},
6676
- baseUrl: ""
6676
+ apiUrl: ""
6677
6677
  });
6678
6678
  function Em({
6679
6679
  children: t,
6680
6680
  endpoints: e,
6681
- baseUrl: n
6681
+ apiUrl: n
6682
6682
  }) {
6683
6683
  var r;
6684
6684
  if (!n || !((r = Object.keys(e ?? {})) != null && r.length))
6685
- throw new Error("EndpointProvider requires a baseUrl and endpointMap.");
6685
+ throw new Error("EndpointProvider requires an apiUrl and endpointMap.");
6686
6686
  return /* @__PURE__ */ x.jsx(
6687
6687
  vl.Provider,
6688
6688
  {
6689
6689
  value: {
6690
6690
  endpointMap: e,
6691
- baseUrl: n
6691
+ apiUrl: n
6692
6692
  },
6693
6693
  children: t
6694
6694
  }
6695
6695
  );
6696
6696
  }
6697
6697
  function _m(t) {
6698
- const { endpointMap: e, baseUrl: n } = K(vl);
6698
+ const { endpointMap: e, apiUrl: n } = K(vl);
6699
6699
  return {
6700
6700
  getEndpoint: (r = {}) => {
6701
6701
  const s = e[t];
@@ -7274,11 +7274,11 @@ function xg({
7274
7274
  function bg({
7275
7275
  mapProvider: t,
7276
7276
  endpoints: e,
7277
- baseUrl: n,
7277
+ apiUrl: n,
7278
7278
  children: r,
7279
7279
  ...s
7280
7280
  }) {
7281
- return /* @__PURE__ */ x.jsx(Hp, { children: /* @__PURE__ */ x.jsx(bc, { children: /* @__PURE__ */ x.jsx(Lc, { mapProvider: t, children: /* @__PURE__ */ x.jsx(Em, { endpoints: e, baseUrl: n, children: /* @__PURE__ */ x.jsx(xg, { children: r, ...s }) }) }) }) });
7281
+ return /* @__PURE__ */ x.jsx(Hp, { children: /* @__PURE__ */ x.jsx(bc, { children: /* @__PURE__ */ x.jsx(Lc, { mapProvider: t, children: /* @__PURE__ */ x.jsx(Em, { endpoints: e, apiUrl: n, children: /* @__PURE__ */ x.jsx(xg, { children: r, ...s }) }) }) }) });
7282
7282
  }
7283
7283
  bg.displayName = "Locator";
7284
7284
  var ar, co;
@@ -8375,7 +8375,7 @@ function Ky({
8375
8375
  // TODO should reference accent color dynamically
8376
8376
  fillOpacity: 0.6,
8377
8377
  strokeWeight: 0,
8378
- scale: g.range,
8378
+ scale: (g.range ?? 0) / 5e3,
8379
8379
  labelOrigin: new google.maps.Point(0, 0)
8380
8380
  },
8381
8381
  onClick: async () => {
@@ -8724,4 +8724,4 @@ export {
8724
8724
  Gy as S,
8725
8725
  x as j
8726
8726
  };
8727
- //# sourceMappingURL=index-Dv5vjAmU.js.map
8727
+ //# sourceMappingURL=index-DSC2k7o_.js.map