@mapsindoors/map-template 1.99.26 → 1.99.28
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/{ChatWindow-BF-Mz7bA.mjs → ChatWindow-BnZPpSFd.mjs} +1 -1
- package/dist/{GoogleMapsMap-BYkqs8V4.mjs → GoogleMapsMap-D7lc5eAf.mjs} +1 -1
- package/dist/{MapboxMap-BTJt8dqP.mjs → MapboxMap-Dx5VFcmv.mjs} +17620 -17311
- package/dist/mapsindoors-react.es.js +2 -2
- package/dist/mapsindoors-react.umd.js +464 -872
- package/dist/mapsindoors-webcomponent.es.js +38957 -38648
- package/dist/{reactcomponent-C_5Q2Hc3.mjs → reactcomponent-BMrLByme.mjs} +7 -7
- package/package.json +2 -2
|
@@ -12135,7 +12135,7 @@ const n8 = it(class extends nt {
|
|
|
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.
|
|
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();
|
|
12139
12139
|
}));
|
|
12140
12140
|
}
|
|
12141
12141
|
initializeMapsIndoorsSDK() {
|
|
@@ -12178,7 +12178,7 @@ const n8 = it(class extends nt {
|
|
|
12178
12178
|
}
|
|
12179
12179
|
applyBasemapConfig() {
|
|
12180
12180
|
var e, t, n, i;
|
|
12181
|
-
if (!((e = this.mapboxInstance) === null || e === void 0) && e.setConfigProperty && (!((i = (n = (t = this.mapboxInstance).getStyle) === null || n === void 0 ? void 0 : n.call(t)) === null || i === void 0) && i.imports)) try {
|
|
12181
|
+
if (!((e = this.mapboxInstance) === null || e === void 0) && e.setConfigProperty && (typeof this.mapboxInstance.isStyleLoaded != "function" || this.mapboxInstance.isStyleLoaded()) && (!((i = (n = (t = this.mapboxInstance).getStyle) === null || n === void 0 ? void 0 : n.call(t)) === null || i === void 0) && i.imports)) try {
|
|
12182
12182
|
this.mapboxInstance.setConfigProperty("basemap", "showPointOfInterestLabels", this.showMapMarkers), this.mapboxInstance.setConfigProperty("basemap", "showTransitLabels", this.showMapMarkers), this.mapboxInstance.setConfigProperty("basemap", "showPlaceLabels", this.showMapMarkers), this.setBuildingsOpacityConfigProperty(Number(this.buildingsOpacity), this.mapboxInstance), this.syncExtrudedBuildingsVisibility();
|
|
12183
12183
|
} catch {
|
|
12184
12184
|
}
|
|
@@ -12206,7 +12206,7 @@ const n8 = it(class extends nt {
|
|
|
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 t8(this.mapboxInstance, this.mapsIndoorsInstance), this.mapboxInstance.addControl(this.myPositionControl, this.myPositionControlPosition));
|
|
12207
12207
|
}
|
|
12208
12208
|
render() {
|
|
12209
|
-
return Z(_t, { key: "
|
|
12209
|
+
return Z(_t, { key: "9fe58b3a15bf98eaf11aafa5d974f299b70b8376" }, Z("link", { key: "517d7a8651ed1c9265938e201dc6b2ee8490ed41", href: "https://api.mapbox.com/mapbox-gl-js/v3.31.0/mapbox-gl.css", rel: "stylesheet" }), Z("div", { key: "1b16375ca8276929a2c71fad254815edc9e69b9e", 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 }] };
|
|
@@ -18054,7 +18054,7 @@ function fr({ titleKey: e, variant: t, onClose: n }) {
|
|
|
18054
18054
|
] })
|
|
18055
18055
|
] }) });
|
|
18056
18056
|
}
|
|
18057
|
-
const eC = Ra(() => import("./MapboxMap-
|
|
18057
|
+
const eC = Ra(() => import("./MapboxMap-Dx5VFcmv.mjs")), tC = Ra(() => import("./GoogleMapsMap-D7lc5eAf.mjs"));
|
|
18058
18058
|
Y3.propTypes = {
|
|
18059
18059
|
apiKey: K.string.isRequired,
|
|
18060
18060
|
mapType: K.string.isRequired,
|
|
@@ -29763,7 +29763,7 @@ function Jy() {
|
|
|
29763
29763
|
/* @__PURE__ */ P.jsx("span", { className: "chat-loading-fallback__sr-only", children: e("Loading chat") })
|
|
29764
29764
|
] });
|
|
29765
29765
|
}
|
|
29766
|
-
const ME = Ra(() => import("./ChatWindow-
|
|
29766
|
+
const ME = Ra(() => import("./ChatWindow-BnZPpSFd.mjs"));
|
|
29767
29767
|
Xy.propTypes = {
|
|
29768
29768
|
directionsFromLocation: K.string,
|
|
29769
29769
|
directionsToLocation: K.string,
|
|
@@ -29967,7 +29967,7 @@ function Di({ children: e, isOpen: t }) {
|
|
|
29967
29967
|
}
|
|
29968
29968
|
);
|
|
29969
29969
|
}
|
|
29970
|
-
const NE = Ra(() => import("./ChatWindow-
|
|
29970
|
+
const NE = Ra(() => import("./ChatWindow-BnZPpSFd.mjs"));
|
|
29971
29971
|
e5.propTypes = {
|
|
29972
29972
|
directionsFromLocation: K.string,
|
|
29973
29973
|
directionsToLocation: K.string,
|
|
@@ -31876,7 +31876,7 @@ function s5({ apiKey: e, gmApiKey: t, mapboxAccessToken: n, venue: i, locationId
|
|
|
31876
31876
|
if (window.mapsindoors !== void 0)
|
|
31877
31877
|
return ke();
|
|
31878
31878
|
const mt = document.createElement("script");
|
|
31879
|
-
mt.setAttribute("type", "text/javascript"), mt.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.61.
|
|
31879
|
+
mt.setAttribute("type", "text/javascript"), mt.setAttribute("src", "https://app.mapsindoors.com/mapsindoors/js/sdk/4.61.2/mapsindoors-4.61.2.js.gz"), mt.setAttribute("integrity", "sha384-WXRj1E5nMG0Y0Azz5I56IOjCMqaywEI2EM6Q9uEZs4W1iPoo0xEZCayFt2y9dLcK"), mt.setAttribute("crossorigin", "anonymous"), document.body.appendChild(mt), mt.onload = () => {
|
|
31880
31880
|
ke();
|
|
31881
31881
|
};
|
|
31882
31882
|
});
|
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.
|
|
4
|
+
"version": "1.99.28",
|
|
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.
|
|
29
|
+
"mapbox-gl": "^3.31.0",
|
|
30
30
|
"prop-types": "^15.8.1",
|
|
31
31
|
"qrcode": "^1.5.3",
|
|
32
32
|
"react": "^18.2.0",
|