@mappedin/viewer 0.52.0 → 0.52.1-49ee7fb.0
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
|
@@ -10436,7 +10436,7 @@ const pr = new qFe("[Mappedin Viewer]"), VN = {}, wE = (t) => t == null || t ===
|
|
|
10436
10436
|
secondary: "#6A6A6A",
|
|
10437
10437
|
neutral: "#3E3E3E",
|
|
10438
10438
|
neutral2: "#505050",
|
|
10439
|
-
success: "#
|
|
10439
|
+
success: "#79B99D",
|
|
10440
10440
|
error: "#A46B53"
|
|
10441
10441
|
},
|
|
10442
10442
|
background: {
|
|
@@ -17702,7 +17702,7 @@ const R6e = function() {
|
|
|
17702
17702
|
const e = ZA(), [r, i] = t;
|
|
17703
17703
|
e.capture(r, i);
|
|
17704
17704
|
}, N6e = (t = {}) => {
|
|
17705
|
-
const e = "
|
|
17705
|
+
const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", r = "https://ph-api.mappedin.com";
|
|
17706
17706
|
JOe(t.captureEnabled ?? !0);
|
|
17707
17707
|
const i = ZA();
|
|
17708
17708
|
if (!i.__loaded && e != null && r != null) {
|
|
@@ -93263,7 +93263,7 @@ const k1e = (t) => t.map(
|
|
|
93263
93263
|
return;
|
|
93264
93264
|
const o = e != null && e.length > 0 ? `${t}-${e}` : t, a = Array.isArray(i) ? i : [i], l = Array.isArray(n) ? n : [n], u = new URL(
|
|
93265
93265
|
"/directions",
|
|
93266
|
-
"https://mappedin-public-mvf-
|
|
93266
|
+
"https://mappedin-public-mvf-staging.azurewebsites.net"
|
|
93267
93267
|
);
|
|
93268
93268
|
u.search = new URLSearchParams({
|
|
93269
93269
|
mapId: o,
|
|
@@ -96644,7 +96644,10 @@ class kMt {
|
|
|
96644
96644
|
theme: s9.struct
|
|
96645
96645
|
},
|
|
96646
96646
|
{ autoBind: !0, deep: !1 }
|
|
96647
|
-
), this.locationCardStore = new TMt({
|
|
96647
|
+
), this.locationCardStore = new TMt({
|
|
96648
|
+
rootStore: this.rootStore,
|
|
96649
|
+
uiStore: this
|
|
96650
|
+
}), this.reactiveToasts = [
|
|
96648
96651
|
new IMt(this.rootStore),
|
|
96649
96652
|
new BMt(this.rootStore),
|
|
96650
96653
|
new FMt(this.rootStore),
|
|
@@ -96716,7 +96719,9 @@ class kMt {
|
|
|
96716
96719
|
});
|
|
96717
96720
|
else
|
|
96718
96721
|
try {
|
|
96719
|
-
navigator.clipboard.writeText(e), i.toast && T1(ki.t("share.copied-to-clipboard"), {
|
|
96722
|
+
navigator.clipboard.writeText(e), i.toast && T1(ki.t("share.copied-to-clipboard"), {
|
|
96723
|
+
icon: "checkmark-16x16"
|
|
96724
|
+
});
|
|
96720
96725
|
} catch (n) {
|
|
96721
96726
|
pr.error("Failed to copy to clipboard!", n), i.toast && T1(ki.t("share.clipboard-error"));
|
|
96722
96727
|
}
|
|
@@ -96759,7 +96764,8 @@ class kMt {
|
|
|
96759
96764
|
const e = {
|
|
96760
96765
|
map: {
|
|
96761
96766
|
initialBearing: this.rootStore.initialBearing,
|
|
96762
|
-
initialPitch: this.rootStore.initialPitch
|
|
96767
|
+
initialPitch: this.rootStore.initialPitch,
|
|
96768
|
+
watermarkVisible: this.rootStore.startupOptions.hideWatermark !== !0
|
|
96763
96769
|
}
|
|
96764
96770
|
};
|
|
96765
96771
|
return _E({}, this.themeBase, e);
|
|
@@ -97751,7 +97757,7 @@ const oSt = (t, e) => (S7 != null || (XC == null && globalThis.OffscreenCanvas !
|
|
|
97751
97757
|
const i = {
|
|
97752
97758
|
fit: "fit",
|
|
97753
97759
|
...r
|
|
97754
|
-
}, n = "https://image-proxy.mappedin.
|
|
97760
|
+
}, n = "https://image-proxy-staging.mappedin.net", s = lSt(e, i.fit), o = encodeURIComponent(t);
|
|
97755
97761
|
return `${n}/resize:${i.fit}:${s}:${s}:0/format:webp/max_bytes:5000000/plain/${o}`.replaceAll(/\/+/g, "/").replace("https:/", "https://").replace("http:/", "http://");
|
|
97756
97762
|
}, uSt = (t, e) => {
|
|
97757
97763
|
if (e == null || e === "")
|
|
@@ -105283,6 +105289,7 @@ class qDt {
|
|
|
105283
105289
|
color: this.rootStore.uiStore.theme.isDark ? "light" : "dark"
|
|
105284
105290
|
};
|
|
105285
105291
|
}
|
|
105292
|
+
return { visible: !1, interactive: !1 };
|
|
105286
105293
|
}
|
|
105287
105294
|
setOutdoorViewLoaded() {
|
|
105288
105295
|
if (pr.log("Outdoor view loaded!"), this.outdoorViewLoaded = !0, document.head.querySelector('[itemprop="outdoor-tiles-loaded"]') != null)
|
|
@@ -105305,7 +105312,7 @@ class qDt {
|
|
|
105305
105312
|
}
|
|
105306
105313
|
async init(e) {
|
|
105307
105314
|
this.container = e;
|
|
105308
|
-
const r = this.rootStore.startupOptions.outdoorMapsKey ?? "
|
|
105315
|
+
const r = this.rootStore.startupOptions.outdoorMapsKey ?? "f8fd42d9e1c2751f", i = {
|
|
105309
105316
|
auto: !1,
|
|
105310
105317
|
// In campus mode, we need to load the outdoors first
|
|
105311
105318
|
initialFloor: this.rootStore.isCampus ? this.rootStore.defaultFloor : this.rootStore.currentFloor,
|
|
@@ -82,6 +82,10 @@ export type TStartViewerCommonOptions = {
|
|
|
82
82
|
* Show the debug panel.
|
|
83
83
|
*/
|
|
84
84
|
debugPanel?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Specifies if the Mappedin watermark in the SDK should be hidden.
|
|
87
|
+
*/
|
|
88
|
+
hideWatermark?: boolean;
|
|
85
89
|
};
|
|
86
90
|
export type TStartViewerOptions = {
|
|
87
91
|
/**
|