@expofp/floorplan 3.34.0 → 3.34.2
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/{Button-2mFDmipA.js → Button-CNMjOvi_.js} +5 -5
- package/dist/browser/{CookieConsent-BEpHu6hm.js → CookieConsent-D41GkvnH.js} +7 -7
- package/dist/browser/{Debug-CINp17tI.js → Debug-CmW7YX8I.js} +7 -7
- package/dist/browser/{DebugTools-DZyXcKkH.js → DebugTools-BiVg-I_r.js} +6 -6
- package/dist/browser/{Demo-pwOMoUNX.js → Demo-B4Cvydeo.js} +9 -9
- package/dist/browser/{Free-n2LdN4sH.js → Free-CjQjLOqF.js} +9 -9
- package/dist/browser/{GalleryContainer-BQHUOUWj.js → GalleryContainer-mw16bKBB.js} +10 -10
- package/dist/browser/{GpsLoader-DVDwBcWh.js → GpsLoader-pVmQS4Cm.js} +10 -10
- package/dist/browser/{KioskStore-CkcHydzS.js → KioskStore-sSfegCgB.js} +5 -5
- package/dist/browser/{MaplibreAdapter-C_Gi0jYR.js → MaplibreAdapter-CdpX44KB.js} +11 -11
- package/dist/browser/{ModalContainer-DIjDnCvs.js → ModalContainer--UWO5EJt.js} +10 -10
- package/dist/browser/{PermissionNotice-BB0e6bx0.js → PermissionNotice-Dw32M81v.js} +6 -6
- package/dist/browser/{SetKioskMode-BxDmUZZy.js → SetKioskMode-EltbU-EF.js} +9 -9
- package/dist/browser/{ShowKiosk-B1KQkr08.js → ShowKiosk-BvGaVpGa.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-2yCc1Yoh.js → ViewerMenuPanel-BEcomGU5.js} +9 -9
- package/dist/browser/{add-debug-secret-listener--vlZj85c.js → add-debug-secret-listener-DzuQqBnc.js} +1 -1
- package/dist/browser/{adopt-global-settings-D9S_-8Pi.js → adopt-global-settings-BZ0kVMK5.js} +9 -9
- package/dist/browser/{boolean-editor-Dep3teaO.js → boolean-editor-CEIoLj51.js} +9 -9
- package/dist/browser/{bootIntercom-BaNVkH7u.js → bootIntercom-Db9lsRTD.js} +2 -2
- package/dist/browser/bundle.json +69 -69
- package/dist/browser/{camera-events-BZNqyOf_.js → camera-events-02zSeTQ-.js} +1 -1
- package/dist/browser/{classnames-DtJmtEtm.js → classnames-CpaGYtKG.js} +2 -2
- package/dist/browser/{client-BknjHNie.js → client-hdZ-mqt7.js} +5 -5
- package/dist/browser/{components-hf0Uzpv0.js → components-DwpPpajK.js} +37 -37
- package/dist/browser/{debug-context-CQD4uBBU.js → debug-context-DB0NIlH9.js} +5 -5
- package/dist/browser/{debug-overlay-DBD59hq_.js → debug-overlay-B4MTiAeZ.js} +10 -10
- package/dist/browser/{debug-ui-CjgQTndI.js → debug-ui-D4mq0ugA.js} +6 -6
- package/dist/browser/{dimming-BN_Zyj4Z.js → dimming-BvAGMHKX.js} +8 -8
- package/dist/browser/{dist-D545K0si.js → dist-BjN1ZtXO.js} +5 -5
- package/dist/browser/{dist-CatoUOv9.js → dist-DA_O1Tq9.js} +3 -3
- package/dist/browser/{dist-BzL5JjBj.js → dist-GGfaJ3R1.js} +6 -6
- package/dist/browser/{efp-debug-init-D9TAzqkD.js → efp-debug-init-DCZ0v67W.js} +3 -3
- package/dist/browser/{enum-editor-DpDP_sEJ.js → enum-editor-D1zVwP8a.js} +4 -4
- package/dist/browser/{es5-h2t3KrEk.js → es5-483Ipz8U.js} +2 -2
- package/dist/browser/{event-not-found-CuIrTlZ3.js → event-not-found-DIS2DLhg.js} +1 -1
- package/dist/browser/{exports-suDW8HiN.js → exports-CNZZj_Q8.js} +1 -1
- package/dist/browser/{favicon-DS50UBgo.js → favicon-Bg6LMWEn.js} +1 -1
- package/dist/browser/{fetch-retry.umd-C7dpV2rH.js → fetch-retry.umd-DEbZQzJ3.js} +2 -2
- package/dist/browser/{flex-_7mTmqcr.js → flex-B9PF9U8h.js} +5 -5
- package/dist/browser/{floorplan.loader-DC0rXJkB.js → floorplan.loader-G3m0klqz.js} +10 -10
- package/dist/browser/{floorplan.ready-CizYnUUO.js → floorplan.ready-CcBm3z9I.js} +14 -14
- package/dist/browser/{fuse-CD4wdS_W.js → fuse-Be1ke9wH.js} +2 -2
- package/dist/browser/{i18n-IxPdCQIU.js → i18n-892OGllH.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-DMZZSHxM.js → index.module-DBPl3snb.js} +4 -4
- package/dist/browser/{integrateKiosk-BcKz779g.js → integrateKiosk-Dau_WEaC.js} +4 -4
- package/dist/browser/{is-webview-CnN0Z-gy.js → is-webview-ElzsMr4s.js} +1 -1
- package/dist/browser/{jsx-runtime-ZPwB2s-q.js → jsx-runtime-BsOtCifA.js} +2 -2
- package/dist/browser/{kiosk-record-D-4E98Xs.js → kiosk-record-BTQRhXdb.js} +1 -1
- package/dist/browser/{lib-BB6BeKVI.js → lib-CurNQ8fT.js} +3 -3
- package/dist/browser/{loadImage-IGMHv2TQ.js → loadImage-wPuY8HVi.js} +4 -4
- package/dist/browser/{logDeviceInfo-Ch6YvMof.js → logDeviceInfo-bDJ_gaMR.js} +9 -9
- package/dist/browser/{mobx-D9kyiv2v.js → mobx-CoCB6VaY.js} +4 -4
- package/dist/browser/{optional-boolean-editor-CoFt3dip.js → optional-boolean-editor-WRwLbFlO.js} +3 -3
- package/dist/browser/{optional-enum-editor-KkcsNc-Y.js → optional-enum-editor-C1ENUhhf.js} +4 -4
- package/dist/browser/{optional-string-editor-DuSnXlWZ.js → optional-string-editor-CNEl6U5Q.js} +4 -4
- package/dist/browser/{particles.min-BHClLy8M.js → particles.min-BRguaqtu.js} +2 -2
- package/dist/browser/{react-BNbBPFWS.js → react-BQN6EStf.js} +2 -2
- package/dist/browser/{react-dom-CK03mqLi.js → react-dom-C7Pf2opy.js} +3 -3
- package/dist/browser/{rolldown-runtime-DK-Zb9cz.js → rolldown-runtime-DBeIQt3E.js} +1 -1
- package/dist/browser/{scheduler-ChCsbqV0.js → scheduler-cQidETRd.js} +2 -2
- package/dist/browser/{select-B46__qKm.js → select-CIJMgtRk.js} +10 -10
- package/dist/browser/{settings-item-BtOFrwu5.js → settings-item-Dhd_mZVD.js} +6 -6
- package/dist/browser/{settings-CFTjNpgl.js → settings-tf2xCh7a.js} +2 -2
- package/dist/browser/{store-DfaVAvUl.js → store-DX_d1X7a.js} +1040 -991
- package/dist/browser/{string-editor-D2_UtPhf.js → string-editor-CwZhPArg.js} +4 -4
- package/dist/browser/{text-field-za8zc5c8.js → text-field-DbPC6Ytx.js} +5 -5
- package/dist/browser/{theme-8RxL0k7R.js → theme-EiHUjgfX.js} +8 -8
- package/dist/browser/{ui-IjOMff18.js → ui-BCJ-P-pD.js} +8 -8
- package/dist/browser/{useRenderTarget-DrrZKd6v.js → useRenderTarget-DkMzI2QA.js} +4 -4
- package/dist/browser/{viewport-CpIkkukX.js → viewport-BldgkO7x.js} +2 -2
- package/dist/esm/components/Map/drawing/config/config-booth-bg.d.ts +17 -3
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/tools/telemetry.js +1 -1
- package/package.json +10 -10
|
@@ -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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "edf52ee9-f3a6-424f-a5ff-f0c8342333ab", e._sentryDebugIdIdentifier = "sentry-dbid-edf52ee9-f3a6-424f-a5ff-f0c8342333ab");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { t as e } from "./jsx-runtime-
|
|
10
|
-
import { t } from "./settings-item-
|
|
11
|
-
import { t as n } from "./text-field-
|
|
9
|
+
import { t as e } from "./jsx-runtime-BsOtCifA.js";
|
|
10
|
+
import { t } from "./settings-item-Dhd_mZVD.js";
|
|
11
|
+
import { t as n } from "./text-field-DbPC6Ytx.js";
|
|
12
12
|
//#region ../debug/src/lib/ui/string-editor.tsx
|
|
13
13
|
var r = e(), i = (e) => {
|
|
14
14
|
var i;
|
|
@@ -1,15 +1,15 @@
|
|
|
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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b57a1337-f6ba-488a-8e6f-60f9358b45a2", e._sentryDebugIdIdentifier = "sentry-dbid-b57a1337-f6ba-488a-8e6f-60f9358b45a2");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-
|
|
12
|
-
import { t as l } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DBeIQt3E.js";
|
|
10
|
+
import { t } from "./react-BQN6EStf.js";
|
|
11
|
+
import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-B9PF9U8h.js";
|
|
12
|
+
import { t as l } from "./classnames-CpaGYtKG.js";
|
|
13
13
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react@19.2._5ea800d4e947acedb1fa1275f1697b17/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
|
|
14
14
|
var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(l()), f = {
|
|
15
15
|
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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f5429b84-6f5b-4b20-898f-e5345902ef44", e._sentryDebugIdIdentifier = "sentry-dbid-f5429b84-6f5b-4b20-898f-e5345902ef44");
|
|
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, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-
|
|
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-DBeIQt3E.js";
|
|
10
|
+
import { t } from "./react-BQN6EStf.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-BsOtCifA.js";
|
|
12
|
+
import { t as r } from "./react-dom-C7Pf2opy.js";
|
|
13
|
+
import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-B9PF9U8h.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-GGfaJ3R1.js";
|
|
15
|
+
import { t as y } from "./classnames-CpaGYtKG.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.17__@ty_cffccd7838985066e8e1d993b5cb6017/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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cbb5c555-77ff-4375-8420-80c8ae476dcf", e._sentryDebugIdIdentifier = "sentry-dbid-cbb5c555-77ff-4375-8420-80c8ae476dcf");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, s as r } from "./efp-debug-init-
|
|
11
|
-
import { a as i, i as a } from "./adopt-global-settings-
|
|
12
|
-
import { t as o } from "./jsx-runtime-
|
|
13
|
-
import "./settings-
|
|
14
|
-
import { t as s } from "./add-debug-secret-listener
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DBeIQt3E.js";
|
|
10
|
+
import { a as t, i as n, s as r } from "./efp-debug-init-DCZ0v67W.js";
|
|
11
|
+
import { a as i, i as a } from "./adopt-global-settings-BZ0kVMK5.js";
|
|
12
|
+
import { t as o } from "./jsx-runtime-BsOtCifA.js";
|
|
13
|
+
import "./settings-tf2xCh7a.js";
|
|
14
|
+
import { t as s } from "./add-debug-secret-listener-DzuQqBnc.js";
|
|
15
15
|
//#region ../debug/src/lib/ui/render-debug-ui.tsx
|
|
16
16
|
var c = /* @__PURE__ */ e(r(), 1), l = o(), u = !1;
|
|
17
17
|
function d() {
|
|
@@ -26,7 +26,7 @@ function d() {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
let o = async (t) => {
|
|
29
|
-
let { DebugUi: n } = await import("./debug-ui-
|
|
29
|
+
let { DebugUi: n } = await import("./debug-ui-D4mq0ugA.js"), { createRoot: i } = await import("./client-hdZ-mqt7.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
|
|
30
30
|
document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7407e64e-4c4e-4bfb-b2ef-80063ad22998", e._sentryDebugIdIdentifier = "sentry-dbid-7407e64e-4c4e-4bfb-b2ef-80063ad22998");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { l as n } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DBeIQt3E.js";
|
|
10
|
+
import { t } from "./react-BQN6EStf.js";
|
|
11
|
+
import { l as n } from "./store-DX_d1X7a.js";
|
|
12
12
|
//#region ../ui/src/shared/activeElement.ts
|
|
13
13
|
var r = (e) => !!e && "activeElement" in e;
|
|
14
14
|
function i(e) {
|
|
@@ -1,12 +1,12 @@
|
|
|
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.34.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.34.2" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a86b34fc-4db5-43a7-965f-2af06c6fef45", e._sentryDebugIdIdentifier = "sentry-dbid-a86b34fc-4db5-43a7-965f-2af06c6fef45");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { c as e, mt as t } from "./store-
|
|
9
|
+
import { c as e, mt as t } from "./store-DX_d1X7a.js";
|
|
10
10
|
//#region src/components/Map/viewport.ts
|
|
11
11
|
function n(e) {
|
|
12
12
|
return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColorInput, ShapeDef } from '@expofp/renderer';
|
|
1
|
+
import { type ColorInput, type ShapeDef } from '@expofp/renderer';
|
|
2
2
|
import Color from 'color';
|
|
3
|
-
import { Booth } from '../../../../store/BoothStore';
|
|
4
|
-
import { PathInfo, ShapeBgDef } from '../../../../types/drawing.types';
|
|
3
|
+
import { type Booth } from '../../../../store/BoothStore';
|
|
4
|
+
import type { PathInfo, ShapeBgDef } from '../../../../types/drawing.types';
|
|
5
5
|
import { BoothDrawerBaseWithoutPainter } from './BoothDrawerBase';
|
|
6
6
|
export default function configBoothBg(booth: Booth): BoothBgDrawer;
|
|
7
7
|
export declare function pathToShapeDef(paths: PathInfo[], layer: string): ShapeDef[];
|
|
@@ -9,6 +9,20 @@ declare class BoothBgDrawer extends BoothDrawerBaseWithoutPainter {
|
|
|
9
9
|
constructor(booth: Booth);
|
|
10
10
|
getShape(): ShapeBgDef[];
|
|
11
11
|
update(): void;
|
|
12
|
+
/**
|
|
13
|
+
* Whether this booth is a PoI icon that a highlight has singled out — a category filter, a search
|
|
14
|
+
* hit, the public `highlightBooths` API — and that is not the selected booth.
|
|
15
|
+
*
|
|
16
|
+
* PoI icons are authored gray, and dimming converges on gray too: it desaturates and halves in
|
|
17
|
+
* linear space, so white lands on the same mid-gray the icons are drawn in. Un-dimming a
|
|
18
|
+
* highlighted icon therefore leaves it indistinguishable from its dimmed neighbors — issue #1632 —
|
|
19
|
+
* and the only thing that reads as a highlight is a color of its own.
|
|
20
|
+
*
|
|
21
|
+
* `poiTypeId` is a cheap stand-in for "authored gray". The general condition is any color that
|
|
22
|
+
* dimming converges on, which is the shape to generalize to if this ever bites a booth that is not
|
|
23
|
+
* a PoI.
|
|
24
|
+
*/
|
|
25
|
+
private get poiHighlighted();
|
|
12
26
|
getBoothPathColor(defaultColor: ColorInput): Color<string>;
|
|
13
27
|
private getHeatmapColor;
|
|
14
28
|
get defaultColor(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__decorate as d}from"tslib";import{Rect as
|
|
1
|
+
import{__decorate as d}from"tslib";import{Rect as y}from"@expofp/geometry";import{update as B}from"@expofp/renderer";import l from"color";import S from"color-interpolate";import{computed as u,reaction as m}from"mobx";import a from"../../../../data";import{getFpSvgJs as k}from"../../../../data/fp-payloads";import{createShapeDef as D}from"../../../../engine/defs";import v,{boothStore as x,heatmapStore as H,layersStore as g,uiState as n}from"../../../../store";import{RegularBooth as I,SpecialBooth as L}from"../../../../store/BoothStore";import{RebookingState as P}from"../../../../store/ExhibitorStore";import{LayersMode as w}from"../../../../store/LayerStore";import{rebookingStateConfig as b}from"../../../../tools/rebooking-config";import s from"../../../../tools/settings";import{BoothDrawerBaseWithoutPainter as A}from"./BoothDrawerBase";import{buildPathDef as F}from"./config-bg";export default function R(i){return new c(i)}function W(i){if(i.length===0)return null;const o=i[0];return i.every(t=>t===o)?o:null}export function pathToShapeDef(i,o){const e=[];for(const t of i){const r=F({index:t.index,color:t.color,unblinking:t.unblinking},o);r&&e.push(r)}return e}class c extends A{constructor(o){if(super(o),o.paths){const e=pathToShapeDef(o.paths,v.layerStore.mode!==w.Default?o.layer.name:"");o.shapes=e.map(t=>{const r=n.monochrome?l(t.color).grayscale().rgb().string():this.getBoothColor().string();return t.color==="transparent"?t.color=r:t.defaultColor=t.color,t})}else{const e=o.borderColor==="none"?0:isNaN(o.borderWidth)?x.borderWidth:o.borderWidth,t=this.booth.rect.expand(-e/2),r=this.getBoothColor().string();o.shapes=[D(new y(t.center,t.size,this.booth.rotate,this.booth.elevation),r)]}m(()=>this.booth.hover,()=>!this.booth.selected&&this.update()),m(()=>[g.layersLoaded,this.booth.skipDim,this.booth.selected,this.boothShape.selectBgAnimationPart],()=>this.update())}getShape(){return this.booth.shapes}update(){if(g.layersLoaded)for(const o of this.booth.shapes){if(o.dim=this.booth.skipDim?0:void 0,o.color&&!o.unblinking){const e=o.defaultColor?this.getBoothPathColor(o.defaultColor):this.getBoothColor();o.color=e.string()}B(o)}}get poiHighlighted(){const o=this.booth;return!o.selected&&o.poiTypeId!=null&&o.skipDim}getBoothPathColor(o){if(n.heatmap)return this.getHeatmapColor();const e=this.booth,t=s.colors.booths.selected;let r=l(this.poiHighlighted?t:o).hsl();if(e.selected){if(k().__fpSettings?.fpVer){const p=this.selectedColorInterpolateFunc(this.boothShape.selectBgAnimationPart),f=l(p==="none"?t:p);return n.monochrome?f.grayscale():f}const h=l(t).hsl(),C=h.lightness()*this.boothShape.selectBgAnimationPart;r=r.hue(h.hue()).lightness(C)}else e.hover&&(r=r.darken(.1));return n.monochrome&&(r=r.grayscale()),r}getHeatmapColor(){const o=this.booth,e=H.getHeatmapColorForBooth(o);if(o.selected){const t=this.selectedColorInterpolateFunc(this.boothShape.selectBgAnimationPart);return l(t==="none"?"#f33":t)}return o.hover?e.darken(.2).alpha(e.alpha()*1.5):e}get defaultColor(){const o=this.booth;let e=s.colors.booths.default;if(o instanceof L)e=o.color||s.colors.booths.empty;else if(o instanceof I){if(a.isRebooking){if(!o.exhibitors?.length)return b[P.Unasked].color.primary;const r=W((o.exhibitors??[]).map(h=>h.rebookingState));return r!==null?b[r].color.primary:"#000000"}const t=s.colors.booths;o.onHold?e=o.holdColor||t.defaultHold:o.exhibitors.length||o.reserved?e=o.soldColor||t.defaultSold:e=o.availColor||t.empty}try{e==="none"&&(e=s.colors.booths.default),l(e)}catch(t){e=s.colors.booths.default,console.error("Booth: defaultColor",t)}return e}get selectedColorInterpolateFunc(){const o=s.colors.booths.seectedLight||(l(this.booth.labelColor||s.boothLabelColor).isLight()?"#000":"#fff"),e=n.selectedRoute?s?.colors?.booths?.wayfinding?.selected:s?.colors?.booths?.selected;return S([o,e])}getBoothColor(){const o=this.booth;if(n.heatmap)return this.getHeatmapColor();let e;o.error?e="#f33":a.isRebooking?e=this.defaultColor:o.selected?e=this.selectedColorInterpolateFunc(this.boothShape.selectBgAnimationPart):this.poiHighlighted?e=s.colors.booths.selected:e=this.defaultColor;let t;try{t=l(e==="none"?"#f33":e)}catch{t=l(this.defaultColor)}return(o.hover&&!o.selected||o.selected&&a.isRebooking)&&(t=t.darken(.2).alpha(t.alpha()*1.5)),(n.monochrome||n.heatmapYah)&&(t=t.grayscale()),t}}d([u({keepAlive:!0})],c.prototype,"defaultColor",null),d([u({keepAlive:!0})],c.prototype,"selectedColorInterpolateFunc",null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const p="efp-telemetry",X=3e5,Y=1e3,x=63e3;function b(e){return e?`${p}:${e}`:p}function k(e=p){return{get(){try{const r=localStorage.getItem(e);return r?JSON.parse(r):null}catch{return null}},set(r){try{localStorage.setItem(e,JSON.stringify(r))}catch(t){console.error("Failed to persist telemetry data",t)}},clear(){try{localStorage.removeItem(e)}catch(r){console.error("Failed to clear telemetry data",r)}}}}function $(e,r){if(!r)return e;const t=e.indexOf("#"),o=t===-1?e:e.slice(0,t),i=t===-1?"":e.slice(t);let l="?";return o.includes("?")&&(l=o.endsWith("?")||o.endsWith("&")?"":"&"),`${o}${l}expo=${encodeURIComponent(r)}${i}`}function w(e){const r=new TextEncoder,t=[];let o=r.encode(JSON.stringify({...e,items:[]})).byteLength;for(const l of e.items){const u=r.encode(JSON.stringify(l)).byteLength,a=t.length>0?u+1:u;if(t.length>0&&o+a>63e3)break;o+=a,t.push(l)}const i=t.length===e.items.length?e:{...e,items:t};return{payload:i,body:JSON.stringify(i),bytes:o}}function D(e){return e>=400&&e<500&&e!==408&&e!==429}function A(e){return e.length<=1e3?e:(console.warn(`Telemetry queue full: dropping ${e.length-1e3} oldest events`),e.slice(-1e3))}function F(e){const r=e.headers.get("Retry-After");if(!r)return 0;let t=0;const o=Number(r);if(Number.isFinite(o))t=o*1e3;else{const i=Date.parse(r);isNaN(i)||(t=Math.max(0,i-Date.now()))}return Math.min(t,3e5)}export function createTelemetry(e){const{url:r,expo:t,expoId:o,storage:i=k(b(t))}=e,l=$(r,t);let u=e.kioskId??"";function a(){const n=i.get();return n?(n.expo=t,n.expoId=o,n.kioskId=u,n):{expo:t,expoId:o,kioskId:u,items:[]}}function M(n){u=n}let h=!1,m=!1,T=0;async function E(){if(h){m=!0;return}h=!0;try{do{if(m=!1,performance.now()<T)break;let n=null;try{let s=a().items.length;for(;s>0;){const f=a();if(f.items.length===0)break;const{payload:g,body:I,bytes:N}=w(f),d=g.items.length;y(f,f.items.slice(d)),n=g.items,s-=d;const c=await fetch(l,{method:"POST",body:I,headers:{"Content-Type":"application/json"},credentials:"omit",keepalive:N<=63e3});if(await c.text().catch(()=>{}),n=null,!c.ok){if(D(c.status)){console.error(`Telemetry batch refused by the endpoint: HTTP ${c.status} (dropped: ${d})`);continue}if(c.status===429||c.status===503){const R=F(c);R>0&&(T=performance.now()+R)}S(g.items),console.error(`Failed to send telemetry: HTTP ${c.status} (requeued: ${d})`);break}}}catch(s){n&&S(n),console.error("Failed to send telemetry",s)}}while(m)}finally{h=!1}}function y(n,s){s.length===0?i.clear():i.set({...n,items:s})}function S(n){if(n.length===0)return;const s=a();y(s,A([...n,...s.items]))}function _(n){const s=a();s.items.push(n),y(s,A(s.items))}async function O(n){_(n),await E()}return{enqueue:_,send:O,flush:E,setKioskId:M}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.34.
|
|
3
|
+
"version": "3.34.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/expofp/efp-app.git",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"tslib": "^2.3.0",
|
|
70
70
|
"uuid": "^9.0.1",
|
|
71
71
|
"zod": "4.4.3",
|
|
72
|
-
"@expofp/config": "3.34.
|
|
73
|
-
"@expofp/debug": "3.34.
|
|
74
|
-
"@expofp/geometry": "3.34.
|
|
75
|
-
"@expofp/renderer": "3.34.
|
|
76
|
-
"@expofp/resolve": "3.34.
|
|
77
|
-
"@expofp/schema": "3.34.
|
|
78
|
-
"@expofp/ui": "3.34.
|
|
79
|
-
"@expofp/utils": "3.34.
|
|
80
|
-
"@expofp/wayfinding": "3.34.
|
|
72
|
+
"@expofp/config": "3.34.2",
|
|
73
|
+
"@expofp/debug": "3.34.2",
|
|
74
|
+
"@expofp/geometry": "3.34.2",
|
|
75
|
+
"@expofp/renderer": "3.34.2",
|
|
76
|
+
"@expofp/resolve": "3.34.2",
|
|
77
|
+
"@expofp/schema": "3.34.2",
|
|
78
|
+
"@expofp/ui": "3.34.2",
|
|
79
|
+
"@expofp/utils": "3.34.2",
|
|
80
|
+
"@expofp/wayfinding": "3.34.2"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@babel/plugin-proposal-decorators": "^8.0.2",
|