@mappedin/viewer 0.41.4-eee2bf5.0 → 0.42.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.
@@ -1,6 +1,6 @@
1
1
  import { Space, MapObject, PointOfInterest, Connection, Annotation, Coordinate, Door, CameraTransform as _CameraTransform, TEventPayload as _TEventPayload, TEvents, Area, LocationProfile } from './mappedin-js';
2
2
  export declare const PLACE_TYPES: (typeof Space | typeof PointOfInterest | typeof Connection | typeof MapObject | typeof Door | typeof Coordinate | typeof Annotation | typeof Area | typeof LocationProfile)[];
3
- export declare const PLACE_TYPE_STRINGS: ("location-profile" | "space" | "point-of-interest" | "connection" | "object" | "door" | "coordinate" | "annotation" | "area")[];
3
+ export declare const PLACE_TYPE_STRINGS: ("space" | "door" | "object" | "location-profile" | "connection" | "point-of-interest" | "annotation" | "area" | "coordinate")[];
4
4
  export type PlaceTypeString = (typeof PLACE_TYPE_STRINGS)[number];
5
5
  export type PlaceType = (typeof PLACE_TYPES)[number];
6
6
  export type Place = InstanceType<PlaceType>;
@@ -1,5 +1,5 @@
1
+ export declare const ensureProtocol: (url: string) => string;
1
2
  export declare const openLink: (link: string) => Window | null | undefined;
2
3
  export declare const isValidLink: (link: string) => boolean;
3
4
  export declare const isValidSocialLink: (social: string, link: string) => boolean;
4
5
  export declare const isMappedinCdnUrl: (url: string) => boolean;
5
- export declare const ensureProtocol: (url: string) => string;
@@ -54,7 +54,9 @@ export type TAnalyticsEvent = keyof TAnalyticsEventPayload;
54
54
  export type TCaptureParams<E extends TAnalyticsEvent> = TAnalyticsEventPayload[E] extends never ? [E] : [E, TAnalyticsEventPayload[E]];
55
55
  declare class AnalyticsStore {
56
56
  private rootStore;
57
+ private reactionDisposers;
57
58
  constructor(rootStore: RootStore);
58
59
  capture<E extends TAnalyticsEvent>(...args: TCaptureParams<E>): void;
60
+ cleanup(): void;
59
61
  }
60
62
  export default AnalyticsStore;
@@ -65,7 +65,7 @@ declare class CameraController {
65
65
  isCameraMoving(): boolean;
66
66
  getCameraMovementDuration(): number;
67
67
  setExternalPadding(padding: Partial<TPadding> | undefined): void;
68
- focusOn: (targets: Place | Floor | Place[] | IFocusable | IFocusable[], options?: TFocusOnOptions | undefined) => Promise<void>;
68
+ focusOn: (targets: Floor | Place | Place[] | IFocusable | IFocusable[], options?: TFocusOnOptions | undefined) => Promise<void>;
69
69
  zoomIn(): Promise<void>;
70
70
  zoomOut(): Promise<void>;
71
71
  panLeft(): Promise<void>;
@@ -158,7 +158,7 @@ declare class DirectionsController {
158
158
  };
159
159
  };
160
160
  destroy(): void;
161
- "__#57@#private": any;
161
+ "__#58@#private": any;
162
162
  readonly externalId: string;
163
163
  readonly name: string;
164
164
  readonly description: string;
@@ -259,7 +259,7 @@ declare class DirectionsController {
259
259
  };
260
260
  };
261
261
  destroy(): void;
262
- "__#57@#private": any;
262
+ "__#58@#private": any;
263
263
  readonly externalId: string;
264
264
  readonly name: string;
265
265
  readonly description: string;
@@ -289,7 +289,7 @@ declare class DirectionsController {
289
289
  readonly id: string;
290
290
  }[];
291
291
  readonly locationProfiles: /*elided*/ any[];
292
- "__#58@#private": any;
292
+ "__#59@#private": any;
293
293
  readonly id: string;
294
294
  readonly geoJSONBoundingBox: {};
295
295
  }[];
@@ -414,7 +414,7 @@ declare class DirectionsController {
414
414
  extra: Record<string, unknown> | undefined;
415
415
  };
416
416
  destroy(): void;
417
- "__#57@#private": any;
417
+ "__#58@#private": any;
418
418
  readonly externalId: string;
419
419
  readonly name: string;
420
420
  readonly description: string;
@@ -443,7 +443,7 @@ declare class DirectionsController {
443
443
  destroy(): void;
444
444
  readonly id: string;
445
445
  }[];
446
- "__#58@#private": any;
446
+ "__#59@#private": any;
447
447
  readonly id: string;
448
448
  readonly geoJSONBoundingBox: {};
449
449
  readonly geoJSON: {
@@ -478,7 +478,7 @@ declare class DirectionsController {
478
478
  };
479
479
  };
480
480
  destroy(): void;
481
- "__#57@#private": any;
481
+ "__#58@#private": any;
482
482
  readonly externalId: string;
483
483
  readonly name: string;
484
484
  readonly description: string;
@@ -508,7 +508,7 @@ declare class DirectionsController {
508
508
  readonly id: string;
509
509
  }[];
510
510
  readonly locationProfiles: /*elided*/ any[];
511
- "__#58@#private": any;
511
+ "__#59@#private": any;
512
512
  readonly id: string;
513
513
  readonly geoJSONBoundingBox: {};
514
514
  }[];
@@ -545,7 +545,7 @@ declare class DirectionsController {
545
545
  floor: string;
546
546
  };
547
547
  destroy(): void;
548
- "__#57@#private": any;
548
+ "__#58@#private": any;
549
549
  readonly externalId: string;
550
550
  readonly name: string;
551
551
  readonly description: string;
@@ -575,7 +575,7 @@ declare class DirectionsController {
575
575
  readonly id: string;
576
576
  }[];
577
577
  readonly locationProfiles: /*elided*/ any[];
578
- "__#58@#private": any;
578
+ "__#59@#private": any;
579
579
  readonly id: string;
580
580
  readonly geoJSONBoundingBox: {};
581
581
  }[];
@@ -587,7 +587,7 @@ declare class DirectionsController {
587
587
  name: string;
588
588
  };
589
589
  }[];
590
- "__#58@#private": any;
590
+ "__#59@#private": any;
591
591
  readonly id: string;
592
592
  readonly geoJSONBoundingBox: {};
593
593
  }[];
@@ -612,7 +612,7 @@ declare class DirectionsController {
612
612
  };
613
613
  };
614
614
  destroy(): void;
615
- "__#57@#private": any;
615
+ "__#58@#private": any;
616
616
  readonly externalId: string;
617
617
  readonly name: string;
618
618
  readonly description: string;
@@ -713,7 +713,7 @@ declare class DirectionsController {
713
713
  };
714
714
  };
715
715
  destroy(): void;
716
- "__#57@#private": any;
716
+ "__#58@#private": any;
717
717
  readonly externalId: string;
718
718
  readonly name: string;
719
719
  readonly description: string;
@@ -743,7 +743,7 @@ declare class DirectionsController {
743
743
  readonly id: string;
744
744
  }[];
745
745
  readonly locationProfiles: /*elided*/ any[];
746
- "__#58@#private": any;
746
+ "__#59@#private": any;
747
747
  readonly id: string;
748
748
  readonly geoJSONBoundingBox: {};
749
749
  }[];
@@ -772,7 +772,7 @@ declare class DirectionsController {
772
772
  };
773
773
  };
774
774
  destroy(): void;
775
- "__#57@#private": any;
775
+ "__#58@#private": any;
776
776
  readonly externalId: string;
777
777
  readonly name: string;
778
778
  readonly description: string;
@@ -802,7 +802,7 @@ declare class DirectionsController {
802
802
  readonly id: string;
803
803
  }[];
804
804
  readonly locationProfiles: /*elided*/ any[];
805
- "__#58@#private": any;
805
+ "__#59@#private": any;
806
806
  readonly id: string;
807
807
  readonly geoJSONBoundingBox: {};
808
808
  }[];
@@ -926,7 +926,7 @@ declare class DirectionsController {
926
926
  extra: Record<string, unknown> | undefined;
927
927
  };
928
928
  destroy(): void;
929
- "__#57@#private": any;
929
+ "__#58@#private": any;
930
930
  readonly externalId: string;
931
931
  readonly name: string;
932
932
  readonly description: string;
@@ -955,7 +955,7 @@ declare class DirectionsController {
955
955
  destroy(): void;
956
956
  readonly id: string;
957
957
  }[];
958
- "__#58@#private": any;
958
+ "__#59@#private": any;
959
959
  readonly id: string;
960
960
  readonly geoJSONBoundingBox: {};
961
961
  readonly geoJSON: {
@@ -990,7 +990,7 @@ declare class DirectionsController {
990
990
  };
991
991
  };
992
992
  destroy(): void;
993
- "__#57@#private": any;
993
+ "__#58@#private": any;
994
994
  readonly externalId: string;
995
995
  readonly name: string;
996
996
  readonly description: string;
@@ -1020,7 +1020,7 @@ declare class DirectionsController {
1020
1020
  readonly id: string;
1021
1021
  }[];
1022
1022
  readonly locationProfiles: /*elided*/ any[];
1023
- "__#58@#private": any;
1023
+ "__#59@#private": any;
1024
1024
  readonly id: string;
1025
1025
  readonly geoJSONBoundingBox: {};
1026
1026
  }[];
@@ -1057,7 +1057,7 @@ declare class DirectionsController {
1057
1057
  floor: string;
1058
1058
  };
1059
1059
  destroy(): void;
1060
- "__#57@#private": any;
1060
+ "__#58@#private": any;
1061
1061
  readonly externalId: string;
1062
1062
  readonly name: string;
1063
1063
  readonly description: string;
@@ -1087,7 +1087,7 @@ declare class DirectionsController {
1087
1087
  readonly id: string;
1088
1088
  }[];
1089
1089
  readonly locationProfiles: /*elided*/ any[];
1090
- "__#58@#private": any;
1090
+ "__#59@#private": any;
1091
1091
  readonly id: string;
1092
1092
  readonly geoJSONBoundingBox: {};
1093
1093
  }[];
@@ -1099,7 +1099,7 @@ declare class DirectionsController {
1099
1099
  name: string;
1100
1100
  };
1101
1101
  }[];
1102
- "__#58@#private": any;
1102
+ "__#59@#private": any;
1103
1103
  readonly id: string;
1104
1104
  readonly geoJSONBoundingBox: {};
1105
1105
  }[];
@@ -1230,7 +1230,7 @@ declare class DirectionsController {
1230
1230
  };
1231
1231
  };
1232
1232
  destroy(): void;
1233
- "__#57@#private": any;
1233
+ "__#58@#private": any;
1234
1234
  readonly externalId: string;
1235
1235
  readonly name: string;
1236
1236
  readonly description: string;
@@ -1331,7 +1331,7 @@ declare class DirectionsController {
1331
1331
  };
1332
1332
  };
1333
1333
  destroy(): void;
1334
- "__#57@#private": any;
1334
+ "__#58@#private": any;
1335
1335
  readonly externalId: string;
1336
1336
  readonly name: string;
1337
1337
  readonly description: string;
@@ -1361,7 +1361,7 @@ declare class DirectionsController {
1361
1361
  readonly id: string;
1362
1362
  }[];
1363
1363
  readonly locationProfiles: /*elided*/ any[];
1364
- "__#58@#private": any;
1364
+ "__#59@#private": any;
1365
1365
  readonly id: string;
1366
1366
  readonly geoJSONBoundingBox: {};
1367
1367
  }[];
@@ -1486,7 +1486,7 @@ declare class DirectionsController {
1486
1486
  extra: Record<string, unknown> | undefined;
1487
1487
  };
1488
1488
  destroy(): void;
1489
- "__#57@#private": any;
1489
+ "__#58@#private": any;
1490
1490
  readonly externalId: string;
1491
1491
  readonly name: string;
1492
1492
  readonly description: string;
@@ -1515,7 +1515,7 @@ declare class DirectionsController {
1515
1515
  destroy(): void;
1516
1516
  readonly id: string;
1517
1517
  }[];
1518
- "__#58@#private": any;
1518
+ "__#59@#private": any;
1519
1519
  readonly id: string;
1520
1520
  readonly geoJSONBoundingBox: {};
1521
1521
  readonly geoJSON: {
@@ -1550,7 +1550,7 @@ declare class DirectionsController {
1550
1550
  };
1551
1551
  };
1552
1552
  destroy(): void;
1553
- "__#57@#private": any;
1553
+ "__#58@#private": any;
1554
1554
  readonly externalId: string;
1555
1555
  readonly name: string;
1556
1556
  readonly description: string;
@@ -1580,7 +1580,7 @@ declare class DirectionsController {
1580
1580
  readonly id: string;
1581
1581
  }[];
1582
1582
  readonly locationProfiles: /*elided*/ any[];
1583
- "__#58@#private": any;
1583
+ "__#59@#private": any;
1584
1584
  readonly id: string;
1585
1585
  readonly geoJSONBoundingBox: {};
1586
1586
  }[];
@@ -1617,7 +1617,7 @@ declare class DirectionsController {
1617
1617
  floor: string;
1618
1618
  };
1619
1619
  destroy(): void;
1620
- "__#57@#private": any;
1620
+ "__#58@#private": any;
1621
1621
  readonly externalId: string;
1622
1622
  readonly name: string;
1623
1623
  readonly description: string;
@@ -1647,7 +1647,7 @@ declare class DirectionsController {
1647
1647
  readonly id: string;
1648
1648
  }[];
1649
1649
  readonly locationProfiles: /*elided*/ any[];
1650
- "__#58@#private": any;
1650
+ "__#59@#private": any;
1651
1651
  readonly id: string;
1652
1652
  readonly geoJSONBoundingBox: {};
1653
1653
  }[];
@@ -1659,7 +1659,7 @@ declare class DirectionsController {
1659
1659
  name: string;
1660
1660
  };
1661
1661
  }[];
1662
- "__#58@#private": any;
1662
+ "__#59@#private": any;
1663
1663
  readonly id: string;
1664
1664
  readonly geoJSONBoundingBox: {};
1665
1665
  }[];
@@ -1684,7 +1684,7 @@ declare class DirectionsController {
1684
1684
  };
1685
1685
  };
1686
1686
  destroy(): void;
1687
- "__#57@#private": any;
1687
+ "__#58@#private": any;
1688
1688
  readonly externalId: string;
1689
1689
  readonly name: string;
1690
1690
  readonly description: string;
@@ -1785,7 +1785,7 @@ declare class DirectionsController {
1785
1785
  };
1786
1786
  };
1787
1787
  destroy(): void;
1788
- "__#57@#private": any;
1788
+ "__#58@#private": any;
1789
1789
  readonly externalId: string;
1790
1790
  readonly name: string;
1791
1791
  readonly description: string;
@@ -1815,7 +1815,7 @@ declare class DirectionsController {
1815
1815
  readonly id: string;
1816
1816
  }[];
1817
1817
  readonly locationProfiles: /*elided*/ any[];
1818
- "__#58@#private": any;
1818
+ "__#59@#private": any;
1819
1819
  readonly id: string;
1820
1820
  readonly geoJSONBoundingBox: {};
1821
1821
  }[];
@@ -1844,7 +1844,7 @@ declare class DirectionsController {
1844
1844
  };
1845
1845
  };
1846
1846
  destroy(): void;
1847
- "__#57@#private": any;
1847
+ "__#58@#private": any;
1848
1848
  readonly externalId: string;
1849
1849
  readonly name: string;
1850
1850
  readonly description: string;
@@ -1874,7 +1874,7 @@ declare class DirectionsController {
1874
1874
  readonly id: string;
1875
1875
  }[];
1876
1876
  readonly locationProfiles: /*elided*/ any[];
1877
- "__#58@#private": any;
1877
+ "__#59@#private": any;
1878
1878
  readonly id: string;
1879
1879
  readonly geoJSONBoundingBox: {};
1880
1880
  }[];
@@ -1998,7 +1998,7 @@ declare class DirectionsController {
1998
1998
  extra: Record<string, unknown> | undefined;
1999
1999
  };
2000
2000
  destroy(): void;
2001
- "__#57@#private": any;
2001
+ "__#58@#private": any;
2002
2002
  readonly externalId: string;
2003
2003
  readonly name: string;
2004
2004
  readonly description: string;
@@ -2027,7 +2027,7 @@ declare class DirectionsController {
2027
2027
  destroy(): void;
2028
2028
  readonly id: string;
2029
2029
  }[];
2030
- "__#58@#private": any;
2030
+ "__#59@#private": any;
2031
2031
  readonly id: string;
2032
2032
  readonly geoJSONBoundingBox: {};
2033
2033
  readonly geoJSON: {
@@ -2062,7 +2062,7 @@ declare class DirectionsController {
2062
2062
  };
2063
2063
  };
2064
2064
  destroy(): void;
2065
- "__#57@#private": any;
2065
+ "__#58@#private": any;
2066
2066
  readonly externalId: string;
2067
2067
  readonly name: string;
2068
2068
  readonly description: string;
@@ -2092,7 +2092,7 @@ declare class DirectionsController {
2092
2092
  readonly id: string;
2093
2093
  }[];
2094
2094
  readonly locationProfiles: /*elided*/ any[];
2095
- "__#58@#private": any;
2095
+ "__#59@#private": any;
2096
2096
  readonly id: string;
2097
2097
  readonly geoJSONBoundingBox: {};
2098
2098
  }[];
@@ -2129,7 +2129,7 @@ declare class DirectionsController {
2129
2129
  floor: string;
2130
2130
  };
2131
2131
  destroy(): void;
2132
- "__#57@#private": any;
2132
+ "__#58@#private": any;
2133
2133
  readonly externalId: string;
2134
2134
  readonly name: string;
2135
2135
  readonly description: string;
@@ -2159,7 +2159,7 @@ declare class DirectionsController {
2159
2159
  readonly id: string;
2160
2160
  }[];
2161
2161
  readonly locationProfiles: /*elided*/ any[];
2162
- "__#58@#private": any;
2162
+ "__#59@#private": any;
2163
2163
  readonly id: string;
2164
2164
  readonly geoJSONBoundingBox: {};
2165
2165
  }[];
@@ -2171,12 +2171,12 @@ declare class DirectionsController {
2171
2171
  name: string;
2172
2172
  };
2173
2173
  }[];
2174
- "__#58@#private": any;
2174
+ "__#59@#private": any;
2175
2175
  readonly id: string;
2176
2176
  readonly geoJSONBoundingBox: {};
2177
2177
  }[];
2178
2178
  readonly anchorTarget: Coordinate;
2179
- "__#58@#private": any;
2179
+ "__#59@#private": any;
2180
2180
  readonly id: string;
2181
2181
  readonly geoJSONBoundingBox: {};
2182
2182
  readonly geoJSON: {
@@ -2193,7 +2193,7 @@ declare class DirectionsController {
2193
2193
  floors: string[];
2194
2194
  };
2195
2195
  destroy(): void;
2196
- "__#58@#private": any;
2196
+ "__#59@#private": any;
2197
2197
  readonly id: string;
2198
2198
  readonly geoJSONBoundingBox: {};
2199
2199
  readonly geoJSON: {
@@ -157,7 +157,7 @@ declare class RootStore {
157
157
  };
158
158
  };
159
159
  destroy(): void;
160
- "__#57@#private": any;
160
+ "__#58@#private": any;
161
161
  readonly externalId: string;
162
162
  readonly name: string;
163
163
  readonly description: string;
@@ -187,7 +187,7 @@ declare class RootStore {
187
187
  readonly id: string;
188
188
  }[];
189
189
  readonly locationProfiles: LocationProfile[];
190
- "__#58@#private": any;
190
+ "__#59@#private": any;
191
191
  readonly id: string;
192
192
  readonly geoJSONBoundingBox: {};
193
193
  }[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mappedin/viewer",
3
- "version": "0.41.4-eee2bf5.0",
3
+ "version": "0.42.0",
4
4
  "type": "module",
5
5
  "browser": "./dist/index.js",
6
6
  "license": "UNLICENSED",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@ladle/react": "^2.17.2",
21
- "@mappedin/mappedin-js": "6.0.1-canary-v6-0bedd068.538",
21
+ "@mappedin/mappedin-js": "6.0.1-canary-v6-f86bd6e2.544",
22
22
  "@mappedin/mvf": "2.0.1-a6680b4.0",
23
23
  "@mappedin/self-serve-icons": "1.70.1-alpha.bl-SRV-2032.1739993160",
24
24
  "@testing-library/jest-dom": "^6.6.2",