@mapsindoors/map-template 1.99.32 → 1.99.34

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.
@@ -12135,7 +12135,7 @@ const o8 = ot(class extends it {
12135
12135
  insertMapBoxScript() {
12136
12136
  if (typeof mapboxgl > "u") return new Promise(((e) => {
12137
12137
  const t = document.createElement("script");
12138
- t.setAttribute("type", "text/javascript"), t.setAttribute("src", "https://api.mapbox.com/mapbox-gl-js/v3.31.0/mapbox-gl.js"), document.body.appendChild(t), t.onload = () => e();
12138
+ t.setAttribute("type", "text/javascript"), t.setAttribute("src", "https://api.mapbox.com/mapbox-gl-js/v3.32.0/mapbox-gl.js"), document.body.appendChild(t), t.onload = () => e();
12139
12139
  }));
12140
12140
  }
12141
12141
  initializeMapsIndoorsSDK() {
@@ -12149,7 +12149,7 @@ const o8 = ot(class extends it {
12149
12149
  return new Promise(((e) => {
12150
12150
  this.mapViewInstance = new mapsindoors.mapView.MapboxV3View({ accessToken: this.accessToken, element: this.mapElement, zoom: this.zoom, maxZoom: this.maxZoom, maxPitch: this.maxPitch, minZoom: this.minZoom, bearing: this.bearing, pitch: this.pitch, showMapMarkers: this.showMapMarkers }), this.mapboxInstance = this.mapViewInstance.getMap(), this.mapboxInstance.on("style.load", (() => {
12151
12151
  this.applyBasemapConfig();
12152
- })), typeof this.mapboxInstance.isStyleLoaded == "function" && this.mapboxInstance.isStyleLoaded() && this.applyBasemapConfig(), this.mapsIndoorsInstance = new mapsindoors.MapsIndoors({ mapView: this.mapViewInstance, labelOptions: { pixelOffset: { width: 0, height: 14 }, style: { fontSize: "11px" } } });
12152
+ })), typeof this.mapboxInstance.isStyleLoaded == "function" && this.mapboxInstance.isStyleLoaded() && this.applyBasemapConfig(), this.mapsIndoorsInstance = new mapsindoors.MapsIndoors({ mapView: this.mapViewInstance });
12153
12153
  const t = new mapboxgl.NavigationControl();
12154
12154
  this.mapboxInstance.addControl(t, "top-left"), this.mapsIndoorsInstance.on("ready", (async () => {
12155
12155
  this.floorIndex !== void 0 ? this.mapsIndoorsInstance.setFloor(this.floorIndex) : this.floorIndex = this.mapsIndoorsInstance.getFloor(), this.initializeDirectionsService(), this.initializeDirectionsRenderer(), this.applyBasemapConfig(), this.mapsIndoorsReady.emit(), e();
@@ -12206,7 +12206,7 @@ const o8 = ot(class extends it {
12206
12206
  e === null ? (this.mapboxInstance.removeControl(this.myPositionControl), this.myPositionControl = null) : this.myPositionControl ? (this.mapboxInstance.removeControl(this.myPositionControl), this.mapboxInstance.addControl(this.myPositionControl, this.myPositionControlPosition)) : (this.myPositionControl = new i8(this.mapboxInstance, this.mapsIndoorsInstance), this.mapboxInstance.addControl(this.myPositionControl, this.myPositionControlPosition));
12207
12207
  }
12208
12208
  render() {
12209
- return G(_t, { key: "9fe58b3a15bf98eaf11aafa5d974f299b70b8376" }, G("link", { key: "517d7a8651ed1c9265938e201dc6b2ee8490ed41", href: "https://api.mapbox.com/mapbox-gl-js/v3.31.0/mapbox-gl.css", rel: "stylesheet" }), G("div", { key: "1b16375ca8276929a2c71fad254815edc9e69b9e", ref: (e) => this.mapElement = e }));
12209
+ return G(_t, { key: "ef8468717fb15c241cb60ae55eafab9b85fa907d" }, G("link", { key: "b0da9578951d1bef648651b61cd708ef3aa1f8f6", href: "https://api.mapbox.com/mapbox-gl-js/v3.32.0/mapbox-gl.css", rel: "stylesheet" }), G("div", { key: "374afed725c4e18d583aab0f2b1c585245ec33f6", ref: (e) => this.mapElement = e }));
12210
12210
  }
12211
12211
  static get watchers() {
12212
12212
  return { miApiKey: [{ apiKeyChange: 0 }], disableExternalLinks: [{ setExternalLinkBehavior: 0 }], showMapMarkers: [{ showMapMarkersChange: 0 }], buildingsOpacity: [{ buildingsOpacityChange: 0 }], floorSelectorControlPosition: [{ floorSelectorControlPositionChange: 0 }], floorIndex: [{ floorIndexChange: 0 }], myPositionControlPosition: [{ myPositionControlPositionChange: 0 }], polylineOptions: [{ polylineOptionsChange: 0 }], zoom: [{ zoomChange: 0 }], maxPitch: [{ maxPitchChange: 0 }], maxZoom: [{ maxZoomChange: 0 }], bearing: [{ bearingChange: 0 }], pitch: [{ pitchChange: 0 }] };
@@ -18070,7 +18070,7 @@ function fr({ titleKey: e, variant: t, onClose: n }) {
18070
18070
  ] })
18071
18071
  ] }) });
18072
18072
  }
18073
- const nC = Ua(() => import("./MapboxMap-BKmhDGL-.mjs")), iC = Ua(() => import("./GoogleMapsMap-DGQR9ef-.mjs"));
18073
+ const nC = Ua(() => import("./MapboxMap-D9Nmlgig.mjs")), iC = Ua(() => import("./GoogleMapsMap-CvntF-RB.mjs"));
18074
18074
  H3.propTypes = {
18075
18075
  apiKey: q.string.isRequired,
18076
18076
  mapType: q.string.isRequired,
@@ -29807,7 +29807,7 @@ function e5() {
29807
29807
  /* @__PURE__ */ O.jsx("span", { className: "chat-loading-fallback__sr-only", children: e("Loading chat") })
29808
29808
  ] });
29809
29809
  }
29810
- const vE = Ua(() => import("./ChatWindow-DmWVS0R4.mjs"));
29810
+ const vE = Ua(() => import("./ChatWindow-FF9xcbmY.mjs"));
29811
29811
  t5.propTypes = {
29812
29812
  directionsFromLocation: q.string,
29813
29813
  directionsToLocation: q.string,
@@ -30011,7 +30011,7 @@ function Di({ children: e, isOpen: t }) {
30011
30011
  }
30012
30012
  );
30013
30013
  }
30014
- const xE = Ua(() => import("./ChatWindow-DmWVS0R4.mjs"));
30014
+ const xE = Ua(() => import("./ChatWindow-FF9xcbmY.mjs"));
30015
30015
  n5.propTypes = {
30016
30016
  directionsFromLocation: q.string,
30017
30017
  directionsToLocation: q.string,
@@ -31920,7 +31920,7 @@ function l5({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: i, locationId
31920
31920
  if (window.mapsindoors !== void 0)
31921
31921
  return ke();
31922
31922
  const Mt = document.createElement("script");
31923
- Mt.setAttribute("type", "text/javascript"), Mt.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.61.3/mapsindoors-4.61.3.js.gz"), Mt.setAttribute("integrity", "sha384-IOC2r/sTlBM5K5IEcXDtmvdbbTVEWhp8f6s7kj6Wx3onbQVR1gobYjqYszEs6Q4+"), Mt.setAttribute("crossorigin", "anonymous"), document.body.appendChild(Mt), Mt.onload = () => {
31923
+ Mt.setAttribute("type", "text/javascript"), Mt.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.62.0/mapsindoors-4.62.0.js.gz"), Mt.setAttribute("integrity", "sha384-VlYZ4tZb5vE0YL9sDnMExqD1eM/DT9r6FK5kB8IyU5Bi5EeHw+KMuEmbjMEWyr3c"), Mt.setAttribute("crossorigin", "anonymous"), document.body.appendChild(Mt), Mt.onload = () => {
31924
31924
  ke();
31925
31925
  };
31926
31926
  });
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.32",
4
+ "version": "1.99.34",
5
5
  "private": false,
6
6
  "files": [
7
7
  "dist/**"
@@ -26,7 +26,7 @@
26
26
  "identity-obj-proxy": "^3.0.0",
27
27
  "jest": "^29.7.0",
28
28
  "jest-environment-jsdom": "^29.7.0",
29
- "mapbox-gl": "^3.31.0",
29
+ "mapbox-gl": "^3.32.0",
30
30
  "prop-types": "^15.8.1",
31
31
  "qrcode": "^1.5.3",
32
32
  "react": "^18.2.0",