@mappedin/viewer 0.7.0 → 0.7.1-86751c8.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
@@ -63172,7 +63172,7 @@ class U$e {
63172
63172
  return this.rootStore.isAppMobile ? "top-left" : "bottom-left";
63173
63173
  }
63174
63174
  get appPadding() {
63175
- return this.rootStore.isAppEmbedded ? 12 : this.rootStore.isAppMobile ? 0 : 20;
63175
+ return this.rootStore.isAppMobile ? 0 : this.rootStore.isAppEmbedded ? 12 : 20;
63176
63176
  }
63177
63177
  setTheme(e) {
63178
63178
  this.theme = e;
@@ -64302,6 +64302,9 @@ class yHe {
64302
64302
  aoResolution: n
64303
64303
  };
64304
64304
  }
64305
+ getAttributiuonPosition() {
64306
+ return this.rootStore.isAppMobile && this.rootStore.isAppEmbedded ? "top-left" : this.rootStore.isAppMobile ? "top-right" : "bottom-right";
64307
+ }
64305
64308
  showWatermark() {
64306
64309
  let e = 20, n = 1;
64307
64310
  this.rootStore.isAppEmbedded && this.rootStore.isAppMobile ? (e = 12, n = 1) : this.rootStore.isAppEmbedded && (e = 16, n = 1.5), l9e({
@@ -64329,7 +64332,7 @@ class yHe {
64329
64332
  },
64330
64333
  // TODO: Wait for this type to be fixed in the SDK
64331
64334
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
64332
- attributionPosition: this.rootStore.isAppMobile ? "top-right" : "bottom-right"
64335
+ attributionPosition: this.getAttributiuonPosition()
64333
64336
  },
64334
64337
  firstMap: (h = this.rootStore.currentMap) == null ? void 0 : h.id
64335
64338
  };
@@ -67280,7 +67283,7 @@ class XWe {
67280
67283
  this.rootStore = e;
67281
67284
  }
67282
67285
  init() {
67283
- const e = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", n = "https://ph-api.mappedin.com";
67286
+ const e = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", n = "https://ph-api.mappedin.com";
67284
67287
  WWe.init(e, {
67285
67288
  api_host: n,
67286
67289
  persistence: "memory"
@@ -67954,13 +67957,20 @@ const bXe = ({
67954
67957
  style: { height: "100%", width: "100%", position: "absolute", userSelect: "none" }
67955
67958
  }
67956
67959
  ),
67957
- /* @__PURE__ */ He.jsx("div", { style: { height: "100%", width: "100%", position: "absolute", pointerEvents: "none" }, children: /* @__PURE__ */ He.jsx(
67958
- qXe,
67960
+ /* @__PURE__ */ He.jsx(
67961
+ "div",
67959
67962
  {
67960
- visible: e.hover.droppedPinHoverVisible,
67961
- getIsValid: e.hover.canDropPinNow
67963
+ id: "hover-canvas",
67964
+ style: { height: "100%", width: "100%", position: "absolute", top: 0, pointerEvents: "none" },
67965
+ children: /* @__PURE__ */ He.jsx(
67966
+ qXe,
67967
+ {
67968
+ visible: e.hover.droppedPinHoverVisible,
67969
+ getIsValid: e.hover.canDropPinNow
67970
+ }
67971
+ )
67962
67972
  }
67963
- ) })
67973
+ )
67964
67974
  ] });
67965
67975
  });
67966
67976
  var Gu, SXe = Object.create, rm = Object.defineProperty, EXe = Object.getOwnPropertyDescriptor, MXe = Object.getOwnPropertyNames, TXe = Object.getPrototypeOf, CXe = Object.prototype.hasOwnProperty, IXe = (t, e, n) => e in t ? rm(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, Ype = (t) => rm(t, "__esModule", { value: !0 }), N = (t, e) => rm(t, "name", { value: e, configurable: !0 }), Zpe = (t, e) => () => (t && (e = t(t = 0)), e), Ft = (t, e) => () => (e || t((e = { exports: {} }).exports, e), e.exports), AXe = (t, e) => {
@@ -25,6 +25,7 @@ declare class MapStore {
25
25
  });
26
26
  private handlePolygonsClicked;
27
27
  private getAOSettings;
28
+ private getAttributiuonPosition;
28
29
  private showWatermark;
29
30
  get interactionMode(): E_MAP_INTERACTION_MODE;
30
31
  init(container: HTMLElement): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.7.0",
3
+ "version": "0.7.1-86751c8.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",