@mappedin/viewer 0.21.1 → 0.21.2-615b008.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
@@ -61972,6 +61972,9 @@ class _nt {
61972
61972
  get eclipseModeButtonVisible() {
61973
61973
  return this.rootStore.featureFlagStore.flags[Eg.ECLIPSE_MODE].variant === !0;
61974
61974
  }
61975
+ get accessibilityToggleVisible() {
61976
+ return !(!(this.rootStore.floorsSortedByElevation.length > 1) || new Set(this.rootStore.data.getByType("connection").map((r) => r.type)).size < 2);
61977
+ }
61975
61978
  enableDarkMode(e) {
61976
61979
  const t = document.createElement("style");
61977
61980
  t.innerText = `
@@ -80079,13 +80082,13 @@ const Rpe = h1.div`
80079
80082
  gap: 8
80080
80083
  },
80081
80084
  children: [
80082
- /* @__PURE__ */ ie.jsx(
80085
+ e.accessibilityToggleVisible ? /* @__PURE__ */ ie.jsx(
80083
80086
  Zpe,
80084
80087
  {
80085
80088
  enabled: i.mapStore.directions.accessible,
80086
80089
  onClick: i.mapStore.directions.toggleAccessible
80087
80090
  }
80088
- ),
80091
+ ) : null,
80089
80092
  /* @__PURE__ */ ie.jsx(
80090
80093
  p9t,
80091
80094
  {
@@ -80301,13 +80304,13 @@ const Rpe = h1.div`
80301
80304
  ))
80302
80305
  }
80303
80306
  ) : null,
80304
- /* @__PURE__ */ ie.jsx("div", { style: { alignSelf: "end", margin: 12 }, children: /* @__PURE__ */ ie.jsx(
80307
+ /* @__PURE__ */ ie.jsx("div", { style: { alignSelf: "end", margin: 12 }, children: e.accessibilityToggleVisible ? /* @__PURE__ */ ie.jsx(
80305
80308
  Zpe,
80306
80309
  {
80307
80310
  enabled: i.mapStore.directions.accessible,
80308
80311
  onClick: i.mapStore.directions.toggleAccessible
80309
80312
  }
80310
- ) }),
80313
+ ) : null }),
80311
80314
  /* @__PURE__ */ ie.jsxs(
80312
80315
  "div",
80313
80316
  {
@@ -80815,7 +80818,7 @@ const Ype = kM((i) => {
80815
80818
  /* @__PURE__ */ ie.jsx(Z2e, { children: /* @__PURE__ */ ie.jsx(XH, { ...e }) })
80816
80819
  ), t;
80817
80820
  }, Kpe = (i, e = {}) => {
80818
- const t = "phc_sRrjUwz9zicl4GeXtSnwcuKMr50SB76ma6NVi6zlPou", r = "https://ph-api.mappedin.com";
80821
+ const t = "phc_vZrwt3z6JmdPnErvTgZoazTAGlCRMiz6c2NqWtBt8qz", r = "https://ph-api.mappedin.com";
80819
80822
  gFe(e.captureEnabled ?? !0);
80820
80823
  const n = $w();
80821
80824
  if (!n.__loaded && t != null && r != null) {
@@ -44,6 +44,7 @@ declare class UIStore {
44
44
  get metadataCardVisible(): boolean;
45
45
  get availableDepartureModes(): E_DEPARTURE_MODE[];
46
46
  get eclipseModeButtonVisible(): boolean;
47
+ get accessibilityToggleVisible(): boolean;
47
48
  enableDarkMode(enabled: boolean): void;
48
49
  dismissMakerPopUp(): void;
49
50
  setLightTheme(theme: TTheme): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.21.1",
3
+ "version": "0.21.2-615b008.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",