@expofp/floorplan 3.4.1 → 3.4.3
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/browser/{CookieConsent-DfcrHJE4.js → CookieConsent-D4krY97z.js} +7 -7
- package/dist/browser/{Debug-CmqdoArn.js → Debug-BZb5O_UY.js} +6 -6
- package/dist/browser/{Demo-Hoy_N0Z_.js → Demo-BvBhhvRr.js} +8 -8
- package/dist/browser/{Free-CT6O_Rnj.js → Free-6PcpVVI9.js} +8 -8
- package/dist/browser/{Gallery-BljmDte7.js → Gallery-fAkkYp7I.js} +9 -9
- package/dist/browser/{GpsLoader-gAQ2jImu.js → GpsLoader-DjFiBgN7.js} +8 -8
- package/dist/browser/{KioskStore-pVMWw1SV.js → KioskStore-DG0XOVmu.js} +4 -4
- package/dist/browser/{MaplibreAdapter-BSNFyqqO.js → MaplibreAdapter-BLQZOFFY.js} +8 -8
- package/dist/browser/{Modal-vx2GyFQU.js → Modal-DwqOcIWW.js} +9 -9
- package/dist/browser/{PermissionNotice-dzFosoL5.js → PermissionNotice-BdgiHNsq.js} +6 -6
- package/dist/browser/{SetKioskMode-DpKxhNjj.js → SetKioskMode-DhhD2MdP.js} +7 -7
- package/dist/browser/{ShowKiosk-DK4cf8sZ.js → ShowKiosk-tXqxrnFh.js} +9 -9
- package/dist/browser/{TouchHand-DJqTFALN.js → TouchHand-jLn_nYKs.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-BLMOVmrA.js → ViewerMenuPanel-CTaFznMx.js} +7 -7
- package/dist/browser/add-debug-secret-listener-BFloTovx.js +45 -0
- package/dist/browser/{boolean-editor-BIo7t1o3.js → boolean-editor-DxEUePNr.js} +10 -10
- package/dist/browser/{bootIntercom-_8PT4FQ5.js → bootIntercom-l5E1gNqT.js} +2 -2
- package/dist/browser/{box-ClFQfPBk.js → box-Cb6ydnvG.js} +5 -5
- package/dist/browser/{browser-CNl61l-H.js → browser-BfQE2Gfh.js} +2 -2
- package/dist/browser/bundle.json +58 -58
- package/dist/browser/{classnames-CzOdLC35.js → classnames-MOohRlRn.js} +2 -2
- package/dist/browser/{client-uxC45MrM.js → client-DlMl5MrE.js} +4 -4
- package/dist/browser/{components-rG8z7y3m.js → components-ClIAXxQs.js} +36 -36
- package/dist/browser/{createWayfinding-BnWXhjaY.js → createWayfinding-BIU8ftjE.js} +6 -6
- package/dist/browser/{debug-overlay-hexy4zxM.js → debug-overlay-BLsFqg7-.js} +11 -11
- package/dist/browser/{debug-ui-DTEjq_eB.js → debug-ui-Ciuh_QWT.js} +6 -6
- package/dist/browser/{dist-DZk5xw-4.js → dist-B7PMfRJb.js} +5 -5
- package/dist/browser/{dist-EPpxz8po.js → dist-CSLg2l5M.js} +3 -3
- package/dist/browser/{dist-Cv_TFco-.js → dist-DdWSv3-H.js} +6 -6
- package/dist/browser/{efp-debug-init-Bs3FZwZP.js → efp-debug-init-BbXd0o7c.js} +2 -2
- package/dist/browser/{enum-editor-C-CMuvRj.js → enum-editor-CJZ14LnW.js} +11 -11
- package/dist/browser/{event-not-found-BoO2R7hM.js → event-not-found-949QgLNx.js} +1 -1
- package/dist/browser/{exports-CaawsP5N.js → exports-DUJAVAK2.js} +1 -1
- package/dist/browser/{favicon-Cfw5edT7.js → favicon-CuHvgxzd.js} +1 -1
- package/dist/browser/{fetch-retry.umd-BNuFWdhd.js → fetch-retry.umd-YHr1qokX.js} +2 -2
- package/dist/browser/{flex-C_CBGYoG.js → flex-tOo05HRG.js} +6 -6
- package/dist/browser/{flex.props-BrTX-e6I.js → flex.props-D3IPFVuT.js} +2 -2
- package/dist/browser/{floorplan.loader-BC6HaV0P.js → floorplan.loader-BcF_TSIq.js} +11 -11
- package/dist/browser/{floorplan.ready-DyEjsSpU.js → floorplan.ready-D71LiT7w.js} +11 -11
- package/dist/browser/{fuse-5Y1S2aYX.js → fuse-C0TR9Cdr.js} +2 -2
- package/dist/browser/{i18n-CDf6bxFZ.js → i18n-DxAuKFB8.js} +3 -3
- package/dist/browser/index.js +12 -12
- package/dist/browser/{jsx-runtime-CQQX82Qz.js → jsx-runtime-DiSuEjjt.js} +2 -2
- package/dist/browser/{lib-D8YEKiMm.js → lib-C4TWfMx1.js} +4 -4
- package/dist/browser/{main-DLV6-NmW.js → main-lWcTjNPX.js} +1 -1
- package/dist/browser/{mobx-BJrcB0Vj.js → mobx-DPhPxHRk.js} +4 -4
- package/dist/browser/{particles.min-MhzX8Iok.js → particles.min-CceGvAyx.js} +2 -2
- package/dist/browser/{prop-types-BQqJiJ_U.js → prop-types-D9I7zTwO.js} +2 -2
- package/dist/browser/{react-CsfnOko-.js → react-C1Do9xmU.js} +2 -2
- package/dist/browser/{react-dom-l6xfbLNt.js → react-dom-BfZbazSf.js} +3 -3
- package/dist/browser/{reset-all-settings-Dmpe88yX.js → reset-all-settings-dkIogkEL.js} +7 -7
- package/dist/browser/{rolldown-runtime-BrK3KJzc.js → rolldown-runtime-D8OSys49.js} +1 -1
- package/dist/browser/{settings-BDwO4gl1.js → settings-DGQnzLUF.js} +2 -2
- package/dist/browser/{settings-item-CbJ6ldaB.js → settings-item-BxCK9lyk.js} +6 -6
- package/dist/browser/{storage-c5Z4yjiL.js → storage-BalS0HRJ.js} +4 -4
- package/dist/browser/{store-D_Y9lFsn.js → store-TwzdPLkX.js} +14 -14
- package/dist/browser/{string-editor-BOID14bU.js → string-editor-DBsxPSPF.js} +8 -8
- package/dist/browser/{theme-Ca3r5e2H.js → theme-DB7Vukfl.js} +8 -8
- package/dist/browser/{ui-BTe-W0zP.js → ui-aTTAo_5Z.js} +8 -8
- package/dist/browser/{useRenderTarget-CbXuqspA.js → useRenderTarget-DJKyt2_Y.js} +4 -4
- package/dist/esm/load.js +7 -7
- package/dist/esm/store/MaplibreStore.js +1 -1
- package/package.json +4 -3
- package/dist/browser/add-debug-secret-listener-lzYkiNT3.js +0 -26
|
@@ -2,19 +2,19 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.4.3" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c4f82cb9-65fd-48d3-89e0-6a3ed26007d5", e._sentryDebugIdIdentifier = "sentry-dbid-c4f82cb9-65fd-48d3-89e0-6a3ed26007d5");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { t as n } from "./react-
|
|
12
|
-
import { i as r } from "./reset-all-settings-
|
|
13
|
-
import { t as i } from "./jsx-runtime-
|
|
14
|
-
import { C as a, S as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, o as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./storage-
|
|
15
|
-
import { t as T } from "./browser-
|
|
16
|
-
import { B as E, E as D, F as O, H as k, I as ee, J as te, K as ne, L as re, O as ie, P as ae, V as oe, W as se, Y as ce, Z as le, _ as ue, a as de, b as fe, c as A, d as pe, et as me, f as j, g as he, h as M, k as N, l as ge, m as _e, n as ve, nt as P, o as ye, ot as F, p as be, q as xe, r as Se, rt as Ce, s as I, t as we, tt as Te, u as L, v as Ee, z as De } from "./i18n-
|
|
17
|
-
import { t as Oe } from "./classnames-
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-D8OSys49.js";
|
|
11
|
+
import { t as n } from "./react-C1Do9xmU.js";
|
|
12
|
+
import { i as r } from "./reset-all-settings-dkIogkEL.js";
|
|
13
|
+
import { t as i } from "./jsx-runtime-DiSuEjjt.js";
|
|
14
|
+
import { C as a, S as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, l as g, o as _, s as v, t as y, u as b, v as x, w as S, x as C, y as w } from "./storage-BalS0HRJ.js";
|
|
15
|
+
import { t as T } from "./browser-BfQE2Gfh.js";
|
|
16
|
+
import { B as E, E as D, F as O, H as k, I as ee, J as te, K as ne, L as re, O as ie, P as ae, V as oe, W as se, Y as ce, Z as le, _ as ue, a as de, b as fe, c as A, d as pe, et as me, f as j, g as he, h as M, k as N, l as ge, m as _e, n as ve, nt as P, o as ye, ot as F, p as be, q as xe, r as Se, rt as Ce, s as I, t as we, tt as Te, u as L, v as Ee, z as De } from "./i18n-DxAuKFB8.js";
|
|
17
|
+
import { t as Oe } from "./classnames-MOohRlRn.js";
|
|
18
18
|
//#region ../../node_modules/.pnpm/mobx-react-lite@1.5.2_mobx@5.15.7_react@19.2.7/node_modules/mobx-react-lite/dist/index.module.js
|
|
19
19
|
var ke = /* @__PURE__ */ e(n());
|
|
20
20
|
if (!ke.useState) throw Error("mobx-react-lite requires React with Hooks support");
|
|
@@ -31722,13 +31722,13 @@ var XP = (IP = j({ keepAlive: !0 }), LP = j({ keepAlive: !0 }), RP = j({ keepAli
|
|
|
31722
31722
|
return YP();
|
|
31723
31723
|
}
|
|
31724
31724
|
}), KP(VP.prototype, "setOnline", [L], Object.getOwnPropertyDescriptor(VP.prototype, "setOnline"), VP.prototype), KP(VP.prototype, "activateMaplibre", [L], Object.getOwnPropertyDescriptor(VP.prototype, "activateMaplibre"), VP.prototype), KP(VP.prototype, "deactivateMaplibre", [L], Object.getOwnPropertyDescriptor(VP.prototype, "deactivateMaplibre"), VP.prototype), KP(VP.prototype, "hideModeSwitchButton", [IP], Object.getOwnPropertyDescriptor(VP.prototype, "hideModeSwitchButton"), VP.prototype), KP(VP.prototype, "maplibreEnabled", [LP], Object.getOwnPropertyDescriptor(VP.prototype, "maplibreEnabled"), VP.prototype), KP(VP.prototype, "useMaplibreMap", [RP], Object.getOwnPropertyDescriptor(VP.prototype, "useMaplibreMap"), VP.prototype), KP(VP.prototype, "showMaplibre", [zP], Object.getOwnPropertyDescriptor(VP.prototype, "showMaplibre"), VP.prototype), KP(VP.prototype, "isMap3d", [BP], Object.getOwnPropertyDescriptor(VP.prototype, "isMap3d"), VP.prototype), VP), ZP = r({
|
|
31725
|
-
key: "efp:maplibre",
|
|
31725
|
+
key: "efp:maplibre:override",
|
|
31726
31726
|
values: [
|
|
31727
|
-
"
|
|
31727
|
+
"",
|
|
31728
31728
|
"on",
|
|
31729
31729
|
"off"
|
|
31730
31730
|
],
|
|
31731
|
-
default: "
|
|
31731
|
+
default: ""
|
|
31732
31732
|
}), QP, $P, eF, tF, nF;
|
|
31733
31733
|
function rF(e, t, n, r) {
|
|
31734
31734
|
n && Object.defineProperty(e, t, {
|
|
@@ -33931,7 +33931,7 @@ var bL = (gL = class {
|
|
|
33931
33931
|
}
|
|
33932
33932
|
async buildEngine() {
|
|
33933
33933
|
try {
|
|
33934
|
-
let { default: e } = await import("./fuse-
|
|
33934
|
+
let { default: e } = await import("./fuse-C0TR9Cdr.js").then((e) => e.n);
|
|
33935
33935
|
ue(() => {
|
|
33936
33936
|
this.engine = new e([], {
|
|
33937
33937
|
keys: this.keys,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.3" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "90fb92e4-0c35-4d73-af3d-09f610967014", e._sentryDebugIdIdentifier = "sentry-dbid-90fb92e4-0c35-4d73-af3d-09f610967014");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { E as r, c as i, l as a, o, r as s, v as c } from "./box-
|
|
13
|
-
import { t as l } from "./classnames-
|
|
14
|
-
import { t as u } from "./flex.props-
|
|
15
|
-
import { t as d } from "./settings-item-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-D8OSys49.js";
|
|
10
|
+
import { t } from "./react-C1Do9xmU.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-DiSuEjjt.js";
|
|
12
|
+
import { E as r, c as i, l as a, o, r as s, v as c } from "./box-Cb6ydnvG.js";
|
|
13
|
+
import { t as l } from "./classnames-MOohRlRn.js";
|
|
14
|
+
import { t as u } from "./flex.props-D3IPFVuT.js";
|
|
15
|
+
import { t as d } from "./settings-item-BxCK9lyk.js";
|
|
16
16
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.16__@types+react@19.2._237ab8922e2725fc6ff51784b4ebc77f/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
|
|
17
17
|
var f = {
|
|
18
18
|
size: {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.3" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cff38276-aa8d-41db-a31e-c60b68cf072c", e._sentryDebugIdIdentifier = "sentry-dbid-cff38276-aa8d-41db-a31e-c60b68cf072c");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-
|
|
14
|
-
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-
|
|
15
|
-
import { t as y } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-D8OSys49.js";
|
|
10
|
+
import { t } from "./react-C1Do9xmU.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-DiSuEjjt.js";
|
|
12
|
+
import { t as r } from "./react-dom-BfZbazSf.js";
|
|
13
|
+
import { C as i, D as a, S as o, T as s, _ as c, a as l, g as u, w as d } from "./box-Cb6ydnvG.js";
|
|
14
|
+
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-DdWSv3-H.js";
|
|
15
|
+
import { t as y } from "./classnames-MOohRlRn.js";
|
|
16
16
|
//#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.16__@ty_0100624f14fe05e2fce87091cda222ea/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
17
17
|
var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
|
|
18
18
|
position: "absolute",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.3" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "751711f5-8181-4be7-86b5-4dc6d2594afb", e._sentryDebugIdIdentifier = "sentry-dbid-751711f5-8181-4be7-86b5-4dc6d2594afb");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, r as n } from "./reset-all-settings-
|
|
11
|
-
import { t as r } from "./jsx-runtime-
|
|
12
|
-
import "./settings-
|
|
13
|
-
import { t as i } from "./browser-
|
|
14
|
-
import { t as a } from "./add-debug-secret-listener-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-D8OSys49.js";
|
|
10
|
+
import { a as t, r as n } from "./reset-all-settings-dkIogkEL.js";
|
|
11
|
+
import { t as r } from "./jsx-runtime-DiSuEjjt.js";
|
|
12
|
+
import "./settings-DGQnzLUF.js";
|
|
13
|
+
import { t as i } from "./browser-BfQE2Gfh.js";
|
|
14
|
+
import { t as a } from "./add-debug-secret-listener-BFloTovx.js";
|
|
15
15
|
//#region ../debug/src/lib/ui/render-debug-ui.tsx
|
|
16
16
|
var o = /* @__PURE__ */ e(i(), 1), s = r(), c = !1;
|
|
17
17
|
function l() {
|
|
@@ -26,7 +26,7 @@ function l() {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
let i = async (t) => {
|
|
29
|
-
let { DebugUi: n } = await import("./debug-ui-
|
|
29
|
+
let { DebugUi: n } = await import("./debug-ui-Ciuh_QWT.js"), { createRoot: i } = await import("./client-DlMl5MrE.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
|
|
30
30
|
document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, s.jsx)(n, {
|
|
31
31
|
useDebugButtonState: r.useState,
|
|
32
32
|
open: t
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.4.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.4.3" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "efd08859-ff4a-4f73-977e-4ad657829cfc", e._sentryDebugIdIdentifier = "sentry-dbid-efd08859-ff4a-4f73-977e-4ad657829cfc");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { s as n } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-D8OSys49.js";
|
|
10
|
+
import { t } from "./react-C1Do9xmU.js";
|
|
11
|
+
import { s as n } from "./store-TwzdPLkX.js";
|
|
12
12
|
//#region src/utils/getRenderTargetFromRoot.ts
|
|
13
13
|
var r = /* @__PURE__ */ e(t(), 1);
|
|
14
14
|
function i(e) {
|
package/dist/esm/load.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import"./utils/silence-mobx-react-lite-warning";import{resolve as d}from"@expofp/resolve";import m from"debug";import{initHtmlHead as p}from"./_misc_to_move/initHtmlHead";import{logBuildInfo as u}from"./_misc_to_move/logBuildInfo";import y from"./floorplan.loader";const c=m("efp:load");export async function load(n,e){p(),u();const o={...await d(n),...e},r=o.element;let t;if(typeof r=="string"){const s=document.querySelector(r);if(!s)throw new Error(`Element not found for selector: ${r}`);t=s}else r?t=r:(t=document.getElementById("floorplan"),t||(t=document.createElement("div"),v(t),document.body.appendChild(t)));h(),t.setAttribute("data-efp-floorplan-defaults",""),document.documentElement.style.overscrollBehavior||="none",document.body.style.overscrollBehavior||="none",requestAnimationFrame(()=>{t.style.backgroundColor="#ebebeb"});const f=o.legacyDataUrlBase;if(c("legacyDataUrlBase",f),o.legacyDataVersion)try{const{version:s}=await d(o.legacyDataVersion);globalThis.__fpDataVersion=s}catch{c("Could not resolve version")}const a=new y({...o,element:t}),
|
|
1
|
+
import"./utils/silence-mobx-react-lite-warning";import{resolve as d}from"@expofp/resolve";import m from"debug";import{initHtmlHead as p}from"./_misc_to_move/initHtmlHead";import{logBuildInfo as u}from"./_misc_to_move/logBuildInfo";import y from"./floorplan.loader";const c=m("efp:load");export async function load(n,e){p(),u();const o={...await d(n),...e},r=o.element;let t;if(typeof r=="string"){const s=document.querySelector(r);if(!s)throw new Error(`Element not found for selector: ${r}`);t=s}else r?t=r:(t=document.getElementById("floorplan"),t||(t=document.createElement("div"),v(t),document.body.appendChild(t)));h(),t.setAttribute("data-efp-floorplan-defaults",""),document.documentElement.style.overscrollBehavior||="none",document.body.style.overscrollBehavior||="none",requestAnimationFrame(()=>{t.style.backgroundColor="#ebebeb"});const f=o.legacyDataUrlBase;if(c("legacyDataUrlBase",f),o.legacyDataVersion)try{const{version:s}=await d(o.legacyDataVersion);globalThis.__fpDataVersion=s}catch{c("Could not resolve version")}const a=new y({...o,element:t}),i=window.___fpResolve;return window.___fp=a,i&&(a.ready.then(()=>i(a)),delete window.___fpResolve),a.ready.then(()=>window.dispatchEvent(new CustomEvent("expofp:ready",{detail:{floorplan:a}}))),a}function h(){const n="efp-floorplan-defaults";if(document.getElementById(n))return;const e=document.createElement("style");e.id=n,e.textContent=`
|
|
2
2
|
[data-efp-floorplan-defaults] {
|
|
3
|
-
width: 100vw;
|
|
4
|
-
height: 100vh;
|
|
5
|
-
height: 100dvh;
|
|
6
3
|
position: fixed;
|
|
7
|
-
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 100%;
|
|
8
8
|
overflow: hidden;
|
|
9
9
|
touch-action: none;
|
|
10
10
|
overscroll-behavior: none;
|
|
11
11
|
background: #fff;
|
|
12
12
|
transition: background-color 2s ease;
|
|
13
|
-
}`,document.head.prepend(e)}function v(n){if(!document.adoptedStyleSheets)return;const e="efp-runtime-loader-spinner",
|
|
13
|
+
}`,document.head.prepend(e)}function v(n){if(!document.adoptedStyleSheets)return;const e="efp-runtime-loader-spinner",l=`
|
|
14
14
|
.${e} {
|
|
15
15
|
position: fixed;
|
|
16
16
|
top: 50%;
|
|
@@ -61,7 +61,7 @@ import"./utils/silence-mobx-react-lite-warning";import{resolve as d}from"@expofp
|
|
|
61
61
|
100% {
|
|
62
62
|
stroke-dashoffset: -125px;
|
|
63
63
|
}
|
|
64
|
-
}`,o=new CSSStyleSheet;o.replaceSync(
|
|
64
|
+
}`,o=new CSSStyleSheet;o.replaceSync(l),document.adoptedStyleSheets=[...document.adoptedStyleSheets,o],n.innerHTML=`<div class="${e}">
|
|
65
65
|
<svg viewBox="25 25 50 50">
|
|
66
66
|
<circle r="20" cy="50" cx="50"></circle>
|
|
67
67
|
</svg>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as o,computed as r,observable as d}from"mobx";import{fpGeo as I}from"../data/fpGeo";import n from"../data";import{registerEnumSetting as z}from"@expofp/debug";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,g,
|
|
1
|
+
import{__esDecorate as i,__runInitializers as l}from"tslib";import{action as o,computed as r,observable as d}from"mobx";import{fpGeo as I}from"../data/fpGeo";import n from"../data";import{registerEnumSetting as z}from"@expofp/debug";const A=import.meta.env?.VITE_EXPOFP_USE_MAPLIBRE_MAP==="true",B=import.meta.env?.VITE_EXPOFP_DISABLE_3D_TOGGLE!=="false";function L(){return typeof window>"u"||window.navigator.onLine}let x=(()=>{let a=[],p,m=[],c=[],f,h=[],u=[],b,M=[],_=[],w,v,g,O,S,E,V,k;return class{static{const t=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;p=[d],f=[d],b=[d],w=[o],v=[o],g=[o],O=[r({keepAlive:!0})],S=[r({keepAlive:!0})],E=[r({keepAlive:!0})],V=[r({keepAlive:!0})],k=[r({keepAlive:!0})],i(this,null,w,{kind:"method",name:"setOnline",static:!1,private:!1,access:{has:e=>"setOnline"in e,get:e=>e.setOnline},metadata:t},null,a),i(this,null,v,{kind:"method",name:"activateMaplibre",static:!1,private:!1,access:{has:e=>"activateMaplibre"in e,get:e=>e.activateMaplibre},metadata:t},null,a),i(this,null,g,{kind:"method",name:"deactivateMaplibre",static:!1,private:!1,access:{has:e=>"deactivateMaplibre"in e,get:e=>e.deactivateMaplibre},metadata:t},null,a),i(this,null,O,{kind:"getter",name:"hideModeSwitchButton",static:!1,private:!1,access:{has:e=>"hideModeSwitchButton"in e,get:e=>e.hideModeSwitchButton},metadata:t},null,a),i(this,null,S,{kind:"getter",name:"maplibreEnabled",static:!1,private:!1,access:{has:e=>"maplibreEnabled"in e,get:e=>e.maplibreEnabled},metadata:t},null,a),i(this,null,E,{kind:"getter",name:"useMaplibreMap",static:!1,private:!1,access:{has:e=>"useMaplibreMap"in e,get:e=>e.useMaplibreMap},metadata:t},null,a),i(this,null,V,{kind:"getter",name:"showMaplibre",static:!1,private:!1,access:{has:e=>"showMaplibre"in e,get:e=>e.showMaplibre},metadata:t},null,a),i(this,null,k,{kind:"getter",name:"isMap3d",static:!1,private:!1,access:{has:e=>"isMap3d"in e,get:e=>e.isMap3d},metadata:t},null,a),i(null,null,p,{kind:"field",name:"mapViewMode",static:!1,private:!1,access:{has:e=>"mapViewMode"in e,get:e=>e.mapViewMode,set:(e,s)=>{e.mapViewMode=s}},metadata:t},m,c),i(null,null,f,{kind:"field",name:"maplibreSelected",static:!1,private:!1,access:{has:e=>"maplibreSelected"in e,get:e=>e.maplibreSelected,set:(e,s)=>{e.maplibreSelected=s}},metadata:t},h,u),i(null,null,b,{kind:"field",name:"isOnline",static:!1,private:!1,access:{has:e=>"isOnline"in e,get:e=>e.isOnline,set:(e,s)=>{e.isOnline=s}},metadata:t},M,_),t&&Object.defineProperty(this,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:t})}rootStore=l(this,a);mapViewMode=l(this,m,"floorplan");maplibreSelected=(l(this,c),l(this,h,!1));isOnline=(l(this,u),l(this,M,L()));handleOnline=(l(this,_),()=>this.setOnline(!0));handleOffline=()=>this.setOnline(!1);constructor(t){this.rootStore=t,this.mapViewMode=this.getInitialViewMode(),this.maplibreSelected=this.mapViewMode!=="floorplan",typeof window<"u"&&(window.addEventListener("online",this.handleOnline),window.addEventListener("offline",this.handleOffline))}dispose(){typeof window>"u"||(window.removeEventListener("online",this.handleOnline),window.removeEventListener("offline",this.handleOffline))}setOnline(t){this.isOnline=t}activateMaplibre(){this.maplibreEnabled&&(this.mapViewMode=n.allow3dView&&this.mapViewMode!=="map3d"?"map3d":"map2d",this.maplibreSelected=!0)}deactivateMaplibre(){this.mapViewMode="floorplan",this.maplibreSelected=!1}get hideModeSwitchButton(){return!this.maplibreEnabled||!n.allow3dView||B||n.hideModeSwitchButton}get maplibreEnabled(){const t=this.rootStore.fp?.maplibre??window.__efpMaplibre,e=!!t?.offline&&(!!t.style||!!t.styleUrl);return this.useMaplibreMap&&!!I?.properties?.config&&!this.rootStore.uiState.kiosk&&(this.isOnline||e)}get useMaplibreMap(){if(y.get()==="on")return!0;if(y.get()==="off")return!1;const t=n.flags?.enableExperimentalMaplibre;return typeof t=="boolean"?t:A}get showMaplibre(){return this.maplibreEnabled&&(this.mapViewMode==="map2d"||this.mapViewMode==="map3d")}get isMap3d(){return this.maplibreEnabled&&this.mapViewMode==="map3d"}getInitialViewMode(){return this.maplibreEnabled?n.allow3dView&&!n.hide3dMapDefault?"map3d":"map2d":"floorplan"}}})();export default x;const y=z({key:"efp:maplibre:override",values:["","on","off"],default:""});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
"tslib": "^2.3.0",
|
|
74
74
|
"uuid": "^9.0.1",
|
|
75
75
|
"zod": "4.3.5",
|
|
76
|
-
"@expofp/
|
|
77
|
-
"@expofp/
|
|
76
|
+
"@expofp/debug": "3.4.3",
|
|
77
|
+
"@expofp/resolve": "3.4.3"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
80
|
"@babel/plugin-proposal-decorators": "^7.29.7",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"@storybook/addon-vitest": "10.4.2",
|
|
84
84
|
"@storybook/react": "10.4.2",
|
|
85
85
|
"@storybook/react-vite": "10.4.2",
|
|
86
|
+
"@types/color": "^3.0.7",
|
|
86
87
|
"@types/d3": "^7.1.0",
|
|
87
88
|
"@types/lz-string": "1.3.32",
|
|
88
89
|
"@vitejs/plugin-react": "^6.0.2",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region ../debug/src/lib/utils/add-debug-secret-listener.ts
|
|
2
|
-
(function() {
|
|
3
|
-
try {
|
|
4
|
-
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.4.1" };
|
|
6
|
-
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8a9a2949-e794-4c7d-933b-6fb4fd55145b", e._sentryDebugIdIdentifier = "sentry-dbid-8a9a2949-e794-4c7d-933b-6fb4fd55145b");
|
|
8
|
-
} catch {}
|
|
9
|
-
})();
|
|
10
|
-
var e = "dbg123", t = [], n = !1, r = null;
|
|
11
|
-
function i(i) {
|
|
12
|
-
if (t.push(i), !n) {
|
|
13
|
-
n = !0;
|
|
14
|
-
let i = "";
|
|
15
|
-
function a(n) {
|
|
16
|
-
n.ctrlKey || n.metaKey || n.altKey || n.key.length === 1 && (i += n.key.toLowerCase(), i = i.slice(-6), i === e && (i = "", t.forEach((e) => e())));
|
|
17
|
-
}
|
|
18
|
-
r = a, document.addEventListener("keydown", a);
|
|
19
|
-
}
|
|
20
|
-
return () => {
|
|
21
|
-
let e = t.indexOf(i);
|
|
22
|
-
e !== -1 && t.splice(e, 1), t.length === 0 && r && (document.removeEventListener("keydown", r), r = null, n = !1);
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { i as t };
|