@mappedin/viewer 0.30.1 → 0.30.2-9aaa2af.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
@@ -15874,7 +15874,7 @@ const g8 = { current: Ke2, captureEnabled: !0 }, cF2 = (i) => {
15874
15874
  const e = mf(), [t, r] = i;
15875
15875
  e.capture(t, r);
15876
15876
  }, Qe2 = (i = {}) => {
15877
- const e = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", t = "https://ph-api.mappedin.com";
15877
+ const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", t = "https://ph-api.mappedin.com";
15878
15878
  hF2(i.captureEnabled ?? !0);
15879
15879
  const r = mf();
15880
15880
  if (!r.__loaded && e != null && t != null) {
@@ -72119,7 +72119,7 @@ const Kne = (i, e) => (i7 != null || (Th == null && globalThis.OffscreenCanvas !
72119
72119
  const r = {
72120
72120
  fit: "fit",
72121
72121
  ...t
72122
- }, n = "https://image-proxy.mappedin.com", a = Qne[e], o = encodeURIComponent(i);
72122
+ }, n = "https://image-proxy-staging.mappedin.net", a = Qne[e], o = encodeURIComponent(i);
72123
72123
  return `${n}/resize:${r.fit}:${a}:${a}:0/plain/${o}`.replaceAll(/\/+/g, "/").replace("/", "//");
72124
72124
  }, KX = pe.div`
72125
72125
  display: flex;
@@ -73505,7 +73505,10 @@ class wae {
73505
73505
  iconOnly: this.rootStore.isAppMobile,
73506
73506
  padding: e,
73507
73507
  scale: t,
73508
- color: this.rootStore.uiStore.theme.isDark ? "light" : "dark"
73508
+ color: this.rootStore.uiStore.theme.isDark ? "light" : "dark",
73509
+ onClick: () => {
73510
+ this.rootStore.analyticsStore.capture("click-watermark"), window.open("https://mappedin.com", "_blank");
73511
+ }
73509
73512
  };
73510
73513
  }
73511
73514
  }
@@ -73523,7 +73526,7 @@ class wae {
73523
73526
  }
73524
73527
  async init(e) {
73525
73528
  this.container = e;
73526
- const t = this.rootStore.startupOptions.outdoorMapsKey ?? "zixaliyV5cGjHU", r = {
73529
+ const t = this.rootStore.startupOptions.outdoorMapsKey ?? "f8fd42d9e1c2751f", r = {
73527
73530
  auto: !1,
73528
73531
  initialFloor: this.rootStore.currentFloor,
73529
73532
  watermark: this.getWatermarkOptions(),
@@ -39,6 +39,7 @@ type TAnalyticsEventPayload = {
39
39
  url: string;
40
40
  placeId: string;
41
41
  };
42
+ 'click-watermark': never;
42
43
  };
43
44
  export type TAnalyticsEvent = keyof TAnalyticsEventPayload;
44
45
  export type TCaptureParams<E extends TAnalyticsEvent> = TAnalyticsEventPayload[E] extends never ? [E] : [E, TAnalyticsEventPayload[E]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.30.1",
3
+ "version": "0.30.2-9aaa2af.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",