@mappedin/viewer 0.59.7 → 0.59.9

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.
@@ -121,7 +121,7 @@
121
121
  },
122
122
  {
123
123
  "name": "dompurify",
124
- "version": "3.4.11",
124
+ "version": "3.4.15",
125
125
  "license": "(MPL-2.0 OR Apache-2.0)",
126
126
  "homepage": "https://github.com/cure53/DOMPurify",
127
127
  "author": "Dr.-Ing. Mario Heiderich, Cure53",
@@ -241,7 +241,7 @@
241
241
  },
242
242
  {
243
243
  "name": "mobx-react-lite",
244
- "version": "4.1.0",
244
+ "version": "5.0.3",
245
245
  "license": "MIT",
246
246
  "homepage": "https://mobx.js.org",
247
247
  "author": "Daniel K.",
@@ -249,7 +249,7 @@
249
249
  },
250
250
  {
251
251
  "name": "mobx",
252
- "version": "6.13.7",
252
+ "version": "7.0.3",
253
253
  "license": "MIT",
254
254
  "homepage": "https://mobx.js.org/",
255
255
  "author": "Michel Weststrate",
@@ -447,14 +447,6 @@
447
447
  "author": "Microsoft Corp.",
448
448
  "licenseText": "/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */"
449
449
  },
450
- {
451
- "name": "use-sync-external-store",
452
- "version": "1.5.0",
453
- "license": "MIT",
454
- "homepage": null,
455
- "author": null,
456
- "licenseText": "MIT License\n\nCopyright (c) Meta Platforms, Inc. and affiliates.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
457
- },
458
450
  {
459
451
  "name": "void-elements",
460
452
  "version": "3.1.0",
@@ -4,7 +4,11 @@ import { TStartViewerOptions, TStartViewerWithLocalDataOptions } from './lib/typ
4
4
  import '@mappedin/mappedin-js/lib/index.css';
5
5
  declare const App: (({ options }: {
6
6
  options: TStartViewerOptions | TStartViewerWithLocalDataOptions;
7
- }) => import("react").JSX.Element) & {
8
- displayName: string;
7
+ }) => import("react").JSX.Element) & import("react").NamedExoticComponent<{
8
+ options: TStartViewerOptions | TStartViewerWithLocalDataOptions;
9
+ }> & {
10
+ readonly type: ({ options }: {
11
+ options: TStartViewerOptions | TStartViewerWithLocalDataOptions;
12
+ }) => import("react").JSX.Element;
9
13
  };
10
14
  export default App;
@@ -8,7 +8,9 @@ type TThemeButtonProps = {
8
8
  icon: React.ReactNode | ((active: boolean) => React.ReactNode);
9
9
  buttonStyle?: React.CSSProperties | ((active: boolean) => React.CSSProperties);
10
10
  };
11
- declare const ThemeButton: (({ force, theme, icon, children, featureFlag, buttonStyle }: PropsWithChildren<TThemeButtonProps>) => import("react").JSX.Element | null) & {
12
- displayName: string;
11
+ declare const ThemeButton: (({ force, theme, icon, children, featureFlag, buttonStyle }: PropsWithChildren<TThemeButtonProps>) => import("react").JSX.Element | null) & import("react").NamedExoticComponent<TThemeButtonProps & {
12
+ children?: import("react").ReactNode | undefined;
13
+ }> & {
14
+ readonly type: ({ force, theme, icon, children, featureFlag, buttonStyle }: PropsWithChildren<TThemeButtonProps>) => import("react").JSX.Element | null;
13
15
  };
14
16
  export default ThemeButton;
@@ -1,3 +1,4 @@
1
+ import './lib/utils/mobx-config';
1
2
  import type { TStartViewerOptions, TStartViewerWithLocalDataOptions } from './lib/types/options';
2
3
  /**
3
4
  * Start the viewer and try to load a map based on the current URL.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- declare const LocationCard: (() => import("react").JSX.Element) & {
2
- displayName: string;
1
+ declare const LocationCard: (() => import("react").JSX.Element) & import("react").NamedExoticComponent<unknown> & {
2
+ readonly type: () => import("react").JSX.Element;
3
3
  };
4
4
  export default LocationCard;
@@ -1,4 +1,4 @@
1
- declare const MainUI: (() => import("react").JSX.Element | null) & {
2
- displayName: string;
1
+ declare const MainUI: (() => import("react").JSX.Element | null) & import("react").NamedExoticComponent<unknown> & {
2
+ readonly type: () => import("react").JSX.Element | null;
3
3
  };
4
4
  export default MainUI;
@@ -15,6 +15,7 @@ export declare enum E_FEATURE_FLAGS {
15
15
  WINTER_MODE = "winter-mode",
16
16
  AUTH_URL = "auth-url",
17
17
  MULTI_FLOOR_VIEW = "multi-floor-view",
18
+ SHOW_ALL_FLOORS_INCLUDED_IN_NAVIGATION = "multifloor-show-all-floors-included-in-navigation",
18
19
  SAFETY_MODE = "safety-mode",
19
20
  SIMILAR_PLACES_TOAST = "similar-places-toast",
20
21
  NOTHING_ON_FLOOR_TOAST = "nothing-on-floor-toast",
@@ -31,6 +32,7 @@ type TFeatureFlagPayloads = {
31
32
  [E_FEATURE_FLAGS.WINTER_MODE]: boolean;
32
33
  [E_FEATURE_FLAGS.AUTH_URL]: string[];
33
34
  [E_FEATURE_FLAGS.MULTI_FLOOR_VIEW]: boolean;
35
+ [E_FEATURE_FLAGS.SHOW_ALL_FLOORS_INCLUDED_IN_NAVIGATION]: boolean;
34
36
  [E_FEATURE_FLAGS.SAFETY_MODE]: boolean;
35
37
  [E_FEATURE_FLAGS.SIMILAR_PLACES_TOAST]: boolean;
36
38
  [E_FEATURE_FLAGS.NOTHING_ON_FLOOR_TOAST]: boolean;
@@ -103,6 +103,12 @@ declare class RootStore {
103
103
  private syncCurrentFloor;
104
104
  private syncDeparture;
105
105
  private isFloorEmpty;
106
+ /**
107
+ * Resolves a boolean feature from an explicit URL param (`'true'` / `'false'`)
108
+ * falling back to the PostHog flag variant. The param always wins, so an
109
+ * explicit `'false'` disables the feature even when the flag is on.
110
+ */
111
+ private isFeatureEnabled;
106
112
  get title(): string;
107
113
  get timeZone(): string;
108
114
  get isMakerPreview(): boolean;
@@ -120,6 +126,7 @@ declare class RootStore {
120
126
  get isOutdoorsVisible(): boolean;
121
127
  get isBlueDotEnabled(): string | boolean;
122
128
  get isMultiFloorViewEnabled(): boolean;
129
+ get isShowAllFloorsIncludedInNavigationEnabled(): boolean;
123
130
  get hasNestedAreas(): boolean;
124
131
  get areaDepths(): string[][];
125
132
  get dynamicFocusBuildingChangeMode(): DynamicFocusMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.59.7",
3
+ "version": "0.59.9",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@ladle/react": "^5.0.3",
21
- "@mappedin/blue-dot": "6.25.0-v6-a60b2a5d6.0",
22
- "@mappedin/dynamic-focus": "6.25.0-v6-a60b2a5d6.0",
23
- "@mappedin/mappedin-js": "6.25.1-v6-a60b2a5d6.0",
21
+ "@mappedin/blue-dot": "6.27.0-v6-e5c7465eb.0",
22
+ "@mappedin/dynamic-focus": "6.27.0-v6-e5c7465eb.0",
23
+ "@mappedin/mappedin-js": "6.27.1-v6-e5c7465eb.0",
24
24
  "@mappedin/mvf": "3.0.0-69b7308.0",
25
25
  "@mappedin/self-serve-icons": "1.105.0-alpha.SRV-2719-add-bleed-kit-annotation.1754600609",
26
26
  "@napi-rs/canvas": "^0.1.89",
@@ -45,7 +45,7 @@
45
45
  "@typescript-eslint/parser": "^7.18.0",
46
46
  "@vitejs/plugin-react": "^4.2.1",
47
47
  "@vitest/coverage-istanbul": "^3.2.6",
48
- "dompurify": "^3.4.11",
48
+ "dompurify": "^3.4.15",
49
49
  "dotenv": "^16.4.5",
50
50
  "escape-html": "1.0.3",
51
51
  "escape-string-regexp": "^5.0.0",
@@ -63,8 +63,8 @@
63
63
  "lodash.isequal": "^4.5.0",
64
64
  "lodash.merge": "^4.6.2",
65
65
  "minisearch": "^6.3.0",
66
- "mobx": "^6.10.0",
67
- "mobx-react-lite": "^4.0.3",
66
+ "mobx": "^7.0.0",
67
+ "mobx-react-lite": "^5.0.0",
68
68
  "mockdate": "^3.0.5",
69
69
  "node-fetch": "^3.3.2",
70
70
  "object-hash": "^3.0.0",