@mapsindoors/map-template 1.99.19 → 1.99.20

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.
@@ -35237,8 +35237,9 @@ mm.propTypes = {
35237
35237
  function mm({ children: t, isOpen: n }) {
35238
35238
  const [r, c] = we.useState(!1), f = Cn(_h), y = we.useRef(), x = we.useRef();
35239
35239
  return we.useEffect(() => {
35240
- if (!x) return;
35240
+ if (!x.current) return;
35241
35241
  const a = new MutationObserver(() => {
35242
+ if (!x.current) return;
35242
35243
  const v = x.current.clientHeight, E = y.current?.clientHeight;
35243
35244
  c(v > E);
35244
35245
  });
@@ -37163,7 +37164,7 @@ function uF({ apiKey: t, gmApiKey: n, mapboxAccessToken: r, venue: c, locationId
37163
37164
  if (window.mapsindoors !== void 0)
37164
37165
  return Qn();
37165
37166
  const Mr = document.createElement("script");
37166
- Mr.setAttribute("type", "text/javascript"), Mr.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.59.1/mapsindoors-4.59.1.js.gz"), Mr.setAttribute("integrity", "sha384-mW4B/nPOrd3xdgWKQL2JDcH5OiqAfTlcao/in1DzFWKB0+5hwMq3+VHmq60gJnDs"), Mr.setAttribute("crossorigin", "anonymous"), document.body.appendChild(Mr), Mr.onload = () => {
37167
+ Mr.setAttribute("type", "text/javascript"), Mr.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.59.3/mapsindoors-4.59.3.js.gz"), Mr.setAttribute("integrity", "sha384-86wq0HRXmYDpFynzv4xQwuFvBvrLhdkQnLaUgffO7ZbBk6RFX3S6pskbdKQTCTFG"), Mr.setAttribute("crossorigin", "anonymous"), document.body.appendChild(Mr), Mr.onload = () => {
37167
37168
  Qn();
37168
37169
  };
37169
37170
  });
@@ -37663,7 +37664,7 @@ function zce(t, n = {}) {
37663
37664
  return Ace(t, n, { mount: Nce, update: Lce, unmount: kce });
37664
37665
  }
37665
37666
  function Oce() {
37666
- return "1.99.18";
37667
+ return "1.99.19";
37667
37668
  }
37668
37669
  const Rce = zce(hF, {
37669
37670
  props: {
@@ -17903,7 +17903,7 @@ function pr({ titleKey: e, variant: t, onClose: n }) {
17903
17903
  ] })
17904
17904
  ] }) });
17905
17905
  }
17906
- const q7 = Ra(() => import("./MapboxMap-CHzDZHLQ.mjs")), J7 = Ra(() => import("./GoogleMapsMap-DIEumUeI.mjs"));
17906
+ const q7 = Ra(() => import("./MapboxMap-BXlFGQQ_.mjs")), J7 = Ra(() => import("./GoogleMapsMap-RGpIWF-0.mjs"));
17907
17907
  V3.propTypes = {
17908
17908
  apiKey: q.string.isRequired,
17909
17909
  mapType: q.string.isRequired,
@@ -29486,7 +29486,7 @@ function Wy() {
29486
29486
  /* @__PURE__ */ U.jsx("span", { className: "chat-loading-fallback__sr-only", children: e("Loading chat") })
29487
29487
  ] });
29488
29488
  }
29489
- const dE = Ra(() => import("./ChatWindow-DcD0v_hg.mjs"));
29489
+ const dE = Ra(() => import("./ChatWindow-BWLEmiYi.mjs"));
29490
29490
  Ky.propTypes = {
29491
29491
  directionsFromLocation: q.string,
29492
29492
  directionsToLocation: q.string,
@@ -29672,8 +29672,9 @@ Di.propTypes = {
29672
29672
  function Di({ children: e, isOpen: t }) {
29673
29673
  const [n, i] = Ne(!1), o = de(mn), r = Le(), s = Le();
29674
29674
  return ae(() => {
29675
- if (!s) return;
29675
+ if (!s.current) return;
29676
29676
  const a = new MutationObserver(() => {
29677
+ if (!s.current) return;
29677
29678
  const c = s.current.clientHeight, u = r.current?.clientHeight;
29678
29679
  i(c > u);
29679
29680
  });
@@ -29689,7 +29690,7 @@ function Di({ children: e, isOpen: t }) {
29689
29690
  }
29690
29691
  );
29691
29692
  }
29692
- const mE = Ra(() => import("./ChatWindow-DcD0v_hg.mjs"));
29693
+ const mE = Ra(() => import("./ChatWindow-BWLEmiYi.mjs"));
29693
29694
  qy.propTypes = {
29694
29695
  directionsFromLocation: q.string,
29695
29696
  directionsToLocation: q.string,
@@ -31598,7 +31599,7 @@ function i5({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: i, locationId
31598
31599
  if (window.mapsindoors !== void 0)
31599
31600
  return ke();
31600
31601
  const ft = document.createElement("script");
31601
- ft.setAttribute("type", "text/javascript"), ft.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.59.1/mapsindoors-4.59.1.js.gz"), ft.setAttribute("integrity", "sha384-mW4B/nPOrd3xdgWKQL2JDcH5OiqAfTlcao/in1DzFWKB0+5hwMq3+VHmq60gJnDs"), ft.setAttribute("crossorigin", "anonymous"), document.body.appendChild(ft), ft.onload = () => {
31602
+ ft.setAttribute("type", "text/javascript"), ft.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.59.3/mapsindoors-4.59.3.js.gz"), ft.setAttribute("integrity", "sha384-86wq0HRXmYDpFynzv4xQwuFvBvrLhdkQnLaUgffO7ZbBk6RFX3S6pskbdKQTCTFG"), ft.setAttribute("crossorigin", "anonymous"), document.body.appendChild(ft), ft.onload = () => {
31602
31603
  ke();
31603
31604
  };
31604
31605
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mapsindoors/map-template",
3
3
  "description": "Get a MapsIndoors map up and running in less than 10 mins.",
4
- "version": "1.99.19",
4
+ "version": "1.99.20",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"