@mappedin/viewer 0.58.1 → 0.58.2-ae0b70a.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/CLAUDE.md +12 -0
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/CLAUDE.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Viewer Package
|
|
2
|
+
|
|
3
|
+
## Folder Structure
|
|
4
|
+
|
|
5
|
+
New code should almost always live in one the following `src/` folders.
|
|
6
|
+
|
|
7
|
+
- `components/` Re-usable react components.
|
|
8
|
+
- `lib/` Hooks, small re-usable functions, self-contained custom packages.
|
|
9
|
+
- `locales/` Translation files for i18n.
|
|
10
|
+
- `states/` Window level entry-points to the entire UI.
|
|
11
|
+
- `stores/` MobX stores managing application state.
|
|
12
|
+
- `test-utils/` Unit testing utilities.
|
package/dist/index.js
CHANGED
|
@@ -17746,7 +17746,7 @@ const xge = function() {
|
|
|
17746
17746
|
const e = Uy(), [r, n] = t;
|
|
17747
17747
|
e.capture(r, n);
|
|
17748
17748
|
}, Ege = (t = {}) => {
|
|
17749
|
-
const e = "
|
|
17749
|
+
const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", r = "https://ph-api.mappedin.com";
|
|
17750
17750
|
lJe(t.captureEnabled ?? !0);
|
|
17751
17751
|
const n = Uy();
|
|
17752
17752
|
if (!n.__loaded && e != null && r != null) {
|
|
@@ -94911,7 +94911,7 @@ const pGt = (t, e, r, n) => {
|
|
|
94911
94911
|
return;
|
|
94912
94912
|
const a = e != null && e.length > 0 ? `${t}-${e}` : t, s = Array.isArray(n) ? n : [n], l = Array.isArray(i) ? i : [i], u = new URL(
|
|
94913
94913
|
"/directions",
|
|
94914
|
-
"https://mappedin-public-mvf-
|
|
94914
|
+
"https://mappedin-public-mvf-staging.azurewebsites.net"
|
|
94915
94915
|
);
|
|
94916
94916
|
u.search = new URLSearchParams({
|
|
94917
94917
|
mapId: a,
|
|
@@ -101955,7 +101955,7 @@ const FXt = (t, e) => (wm != null || (Ww == null && globalThis.OffscreenCanvas !
|
|
|
101955
101955
|
const n = {
|
|
101956
101956
|
fit: "fit",
|
|
101957
101957
|
...r
|
|
101958
|
-
}, i = "https://image-proxy.mappedin.
|
|
101958
|
+
}, i = "https://image-proxy-staging.mappedin.net", o = OXt(e, n.fit), a = encodeURIComponent(t);
|
|
101959
101959
|
return `${i}/resize:${n.fit}:${o}:${o}:0/format:webp/max_bytes:5000000/plain/${a}`.replaceAll(/\/+/g, "/").replace("https:/", "https://").replace("http:/", "http://");
|
|
101960
101960
|
}, zXt = (t, e) => {
|
|
101961
101961
|
if (e == null || e === "")
|
|
@@ -105834,7 +105834,7 @@ class _Kt {
|
|
|
105834
105834
|
};
|
|
105835
105835
|
}
|
|
105836
105836
|
getLabelOptionsForPlace(e, r) {
|
|
105837
|
-
let n, i =
|
|
105837
|
+
let n, i = 18, o = "fill", a = this.getLabelColor(e), s = this.getLabelColor(e);
|
|
105838
105838
|
if (this.rootStore.placeIdsWithLocationIcon.has(e.id) && (n = (r == null ? void 0 : r.overrideImage) === void 0 ? dQ(e) : r.overrideImage, n != null && (Ate(n) ? n = YO(n, this.rootStore.uiStore.theme.colors.map.labels.background) : (n = Vv(n, "xsmall", {
|
|
105839
105839
|
fit: "fill"
|
|
105840
105840
|
}), i = 30, o = "cover", a = this.isImageLabelDark.get(e.id) === !1 ? sOe : aOe, s = this.rootStore.uiStore.theme.colors.map.labels.background))), n == null) {
|
|
@@ -105852,7 +105852,7 @@ class _Kt {
|
|
|
105852
105852
|
icon: void 0,
|
|
105853
105853
|
iconFit: o,
|
|
105854
105854
|
iconSize: i,
|
|
105855
|
-
iconPadding:
|
|
105855
|
+
iconPadding: 8,
|
|
105856
105856
|
iconVisible: 1
|
|
105857
105857
|
},
|
|
105858
105858
|
rank: this.getDefaultLabelRank(e)
|
|
@@ -108279,7 +108279,7 @@ class Lqt {
|
|
|
108279
108279
|
async init(e) {
|
|
108280
108280
|
var i;
|
|
108281
108281
|
this.container = e;
|
|
108282
|
-
const r = this.rootStore.startupOptions.outdoorMapsKey ?? "
|
|
108282
|
+
const r = this.rootStore.startupOptions.outdoorMapsKey ?? "f8fd42d9e1c2751f", n = {
|
|
108283
108283
|
// In campus mode, we need to load the outdoors first
|
|
108284
108284
|
initialFloor: this.rootStore.isCampus ? this.rootStore.defaultFloor : this.rootStore.currentFloor,
|
|
108285
108285
|
watermark: this.getWatermarkOptions(),
|