@mappedin/viewer 0.59.4 → 0.59.5-bae3546.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 +59612 -55245
- package/dist/third-party-licenses.json +93 -29
- package/dist/types/src/components/annotation-marker/build-annotation-marker-html.d.ts +20 -0
- package/dist/types/src/components/annotation-marker/build-annotation-marker-html.test.d.ts +1 -0
- package/dist/types/src/components/annotation-marker/index.d.ts +12 -7
- package/dist/types/src/components/carousel/nav-chevrons.d.ts +14 -16
- package/dist/types/src/components/common/fullscreen-overlay.d.ts +14 -16
- package/dist/types/src/components/common/global-styles.d.ts +5 -0
- package/dist/types/src/components/directions/warning-text.d.ts +14 -16
- package/dist/types/src/components/positioner/index.d.ts +1 -3
- package/dist/types/src/components/search-results/search-result.d.ts +14 -16
- package/dist/types/src/components/with-content/index.d.ts +14 -16
- package/dist/types/src/lib/sdk/index.d.ts +0 -1
- package/dist/types/src/lib/utils/icon-utils.d.ts +11 -11
- package/dist/types/src/stores/map-store/controllers/markers.d.ts +14 -1
- package/dist/types/src/stores/ui-store/index.d.ts +1 -1
- package/package.json +6 -4
- package/dist/types/src/lib/sdk/load-annotations.d.ts +0 -2
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
export declare const WARNING_TEXT_HEIGHT_MOBILE_PX = 31;
|
|
2
2
|
export declare const WARNING_TEXT_HEIGHT_DESKTOP_PX = 26;
|
|
3
3
|
declare const WarningText: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<{
|
|
4
|
-
hidden?: boolean | undefined | undefined;
|
|
5
4
|
color?: string | undefined | undefined;
|
|
5
|
+
hidden?: boolean | undefined | undefined;
|
|
6
6
|
key?: import("react").Key | null | undefined;
|
|
7
|
+
id?: string | undefined | undefined;
|
|
8
|
+
security?: string | undefined | undefined;
|
|
9
|
+
title?: string | undefined | undefined;
|
|
7
10
|
slot?: string | undefined | undefined;
|
|
8
11
|
style?: import("react").CSSProperties | undefined;
|
|
9
|
-
title?: string | undefined | undefined;
|
|
10
|
-
content?: string | undefined | undefined;
|
|
11
|
-
dir?: string | undefined | undefined;
|
|
12
|
-
security?: string | undefined | undefined;
|
|
13
|
-
className?: string | undefined | undefined;
|
|
14
|
-
id?: string | undefined | undefined;
|
|
15
|
-
part?: string | undefined | undefined;
|
|
16
|
-
prefix?: string | undefined | undefined;
|
|
17
|
-
role?: import("react").AriaRole | undefined;
|
|
18
|
-
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
19
|
-
nonce?: string | undefined | undefined;
|
|
20
|
-
tabIndex?: number | undefined | undefined;
|
|
21
12
|
defaultChecked?: boolean | undefined | undefined;
|
|
22
13
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
23
14
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -25,17 +16,24 @@ declare const WarningText: import("styled-components").IStyledComponent<"web", i
|
|
|
25
16
|
accessKey?: string | undefined | undefined;
|
|
26
17
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
27
18
|
autoFocus?: boolean | undefined | undefined;
|
|
19
|
+
className?: string | undefined | undefined;
|
|
28
20
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
29
21
|
contextMenu?: string | undefined | undefined;
|
|
22
|
+
dir?: string | undefined | undefined;
|
|
30
23
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
31
24
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
32
25
|
lang?: string | undefined | undefined;
|
|
26
|
+
nonce?: string | undefined | undefined;
|
|
33
27
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
28
|
+
tabIndex?: number | undefined | undefined;
|
|
34
29
|
translate?: "yes" | "no" | undefined | undefined;
|
|
35
30
|
radioGroup?: string | undefined | undefined;
|
|
31
|
+
role?: import("react").AriaRole | undefined;
|
|
36
32
|
about?: string | undefined | undefined;
|
|
33
|
+
content?: string | undefined | undefined;
|
|
37
34
|
datatype?: string | undefined | undefined;
|
|
38
35
|
inlist?: any;
|
|
36
|
+
prefix?: string | undefined | undefined;
|
|
39
37
|
property?: string | undefined | undefined;
|
|
40
38
|
rel?: string | undefined | undefined;
|
|
41
39
|
resource?: string | undefined | undefined;
|
|
@@ -54,6 +52,8 @@ declare const WarningText: import("styled-components").IStyledComponent<"web", i
|
|
|
54
52
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
55
53
|
is?: string | undefined | undefined;
|
|
56
54
|
exportparts?: string | undefined | undefined;
|
|
55
|
+
part?: string | undefined | undefined;
|
|
56
|
+
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
57
57
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
58
58
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
59
59
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -128,7 +128,7 @@ declare const WarningText: import("styled-components").IStyledComponent<"web", i
|
|
|
128
128
|
onBlurCapture?: import("react").FocusEventHandler<HTMLParagraphElement> | undefined;
|
|
129
129
|
onChange?: import("react").FormEventHandler<HTMLParagraphElement> | undefined;
|
|
130
130
|
onChangeCapture?: import("react").FormEventHandler<HTMLParagraphElement> | undefined;
|
|
131
|
-
onBeforeInput?: import("react").
|
|
131
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLParagraphElement> | undefined;
|
|
132
132
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLParagraphElement> | undefined;
|
|
133
133
|
onInput?: import("react").FormEventHandler<HTMLParagraphElement> | undefined;
|
|
134
134
|
onInputCapture?: import("react").FormEventHandler<HTMLParagraphElement> | undefined;
|
|
@@ -178,8 +178,6 @@ declare const WarningText: import("styled-components").IStyledComponent<"web", i
|
|
|
178
178
|
onProgressCapture?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
179
179
|
onRateChange?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
180
180
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
181
|
-
onResize?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
182
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
183
181
|
onSeeked?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
184
182
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
185
183
|
onSeeking?: import("react").ReactEventHandler<HTMLParagraphElement> | undefined;
|
|
@@ -127,7 +127,7 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
127
127
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
128
128
|
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
129
129
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
130
|
-
onBeforeInput?: import("react").
|
|
130
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
131
131
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
132
132
|
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
133
|
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -177,8 +177,6 @@ declare const Positioner: import("styled-components").IStyledComponent<"web", {
|
|
|
177
177
|
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
178
|
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
179
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
180
|
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
181
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
182
|
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -4,23 +4,14 @@ export declare const SEARCH_RESULT_MAX_WIDTH_DESKTOP = 320;
|
|
|
4
4
|
export declare const SEARCH_RESULT_HEIGHT: 38;
|
|
5
5
|
export declare const SEARCH_RESULT_HEIGHT_WITH_MATCH_DETAILS: 48;
|
|
6
6
|
export declare const ResultWrapper: import("styled-components").IStyledComponent<"web", {
|
|
7
|
-
hidden?: boolean | undefined | undefined;
|
|
8
7
|
color?: string | undefined | undefined;
|
|
8
|
+
hidden?: boolean | undefined | undefined;
|
|
9
9
|
key?: import("react").Key | null | undefined;
|
|
10
|
+
id?: string | undefined | undefined;
|
|
11
|
+
security?: string | undefined | undefined;
|
|
12
|
+
title?: string | undefined | undefined;
|
|
10
13
|
slot?: string | undefined | undefined;
|
|
11
14
|
style?: import("react").CSSProperties | undefined;
|
|
12
|
-
title?: string | undefined | undefined;
|
|
13
|
-
content?: string | undefined | undefined;
|
|
14
|
-
dir?: string | undefined | undefined;
|
|
15
|
-
security?: string | undefined | undefined;
|
|
16
|
-
className?: string | undefined | undefined;
|
|
17
|
-
id?: string | undefined | undefined;
|
|
18
|
-
part?: string | undefined | undefined;
|
|
19
|
-
prefix?: string | undefined | undefined;
|
|
20
|
-
role?: import("react").AriaRole | undefined;
|
|
21
|
-
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
22
|
-
nonce?: string | undefined | undefined;
|
|
23
|
-
tabIndex?: number | undefined | undefined;
|
|
24
15
|
defaultChecked?: boolean | undefined | undefined;
|
|
25
16
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
26
17
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -28,17 +19,24 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
28
19
|
accessKey?: string | undefined | undefined;
|
|
29
20
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
30
21
|
autoFocus?: boolean | undefined | undefined;
|
|
22
|
+
className?: string | undefined | undefined;
|
|
31
23
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
32
24
|
contextMenu?: string | undefined | undefined;
|
|
25
|
+
dir?: string | undefined | undefined;
|
|
33
26
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
34
27
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
35
28
|
lang?: string | undefined | undefined;
|
|
29
|
+
nonce?: string | undefined | undefined;
|
|
36
30
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
31
|
+
tabIndex?: number | undefined | undefined;
|
|
37
32
|
translate?: "yes" | "no" | undefined | undefined;
|
|
38
33
|
radioGroup?: string | undefined | undefined;
|
|
34
|
+
role?: import("react").AriaRole | undefined;
|
|
39
35
|
about?: string | undefined | undefined;
|
|
36
|
+
content?: string | undefined | undefined;
|
|
40
37
|
datatype?: string | undefined | undefined;
|
|
41
38
|
inlist?: any;
|
|
39
|
+
prefix?: string | undefined | undefined;
|
|
42
40
|
property?: string | undefined | undefined;
|
|
43
41
|
rel?: string | undefined | undefined;
|
|
44
42
|
resource?: string | undefined | undefined;
|
|
@@ -57,6 +55,8 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
57
55
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
58
56
|
is?: string | undefined | undefined;
|
|
59
57
|
exportparts?: string | undefined | undefined;
|
|
58
|
+
part?: string | undefined | undefined;
|
|
59
|
+
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
60
60
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
61
61
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
62
62
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -131,7 +131,7 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
131
131
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
132
132
|
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
133
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
134
|
-
onBeforeInput?: import("react").
|
|
134
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
135
135
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
136
136
|
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
137
137
|
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -181,8 +181,6 @@ export declare const ResultWrapper: import("styled-components").IStyledComponent
|
|
|
181
181
|
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
182
|
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
183
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
185
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
186
184
|
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
187
185
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
188
186
|
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import { ComponentProps } from 'react';
|
|
2
2
|
declare const Wrapper: import("styled-components").IStyledComponent<"web", {
|
|
3
|
-
hidden?: boolean | undefined | undefined;
|
|
4
3
|
color?: string | undefined | undefined;
|
|
4
|
+
hidden?: boolean | undefined | undefined;
|
|
5
5
|
key?: import("react").Key | null | undefined;
|
|
6
|
+
id?: string | undefined | undefined;
|
|
7
|
+
security?: string | undefined | undefined;
|
|
8
|
+
title?: string | undefined | undefined;
|
|
6
9
|
slot?: string | undefined | undefined;
|
|
7
10
|
style?: import("react").CSSProperties | undefined;
|
|
8
|
-
title?: string | undefined | undefined;
|
|
9
|
-
content?: string | undefined | undefined;
|
|
10
|
-
dir?: string | undefined | undefined;
|
|
11
|
-
security?: string | undefined | undefined;
|
|
12
|
-
className?: string | undefined | undefined;
|
|
13
|
-
id?: string | undefined | undefined;
|
|
14
|
-
part?: string | undefined | undefined;
|
|
15
|
-
prefix?: string | undefined | undefined;
|
|
16
|
-
role?: import("react").AriaRole | undefined;
|
|
17
|
-
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
18
|
-
nonce?: string | undefined | undefined;
|
|
19
|
-
tabIndex?: number | undefined | undefined;
|
|
20
11
|
defaultChecked?: boolean | undefined | undefined;
|
|
21
12
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
22
13
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -24,17 +15,24 @@ declare const Wrapper: import("styled-components").IStyledComponent<"web", {
|
|
|
24
15
|
accessKey?: string | undefined | undefined;
|
|
25
16
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
26
17
|
autoFocus?: boolean | undefined | undefined;
|
|
18
|
+
className?: string | undefined | undefined;
|
|
27
19
|
contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
|
|
28
20
|
contextMenu?: string | undefined | undefined;
|
|
21
|
+
dir?: string | undefined | undefined;
|
|
29
22
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
30
23
|
enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
31
24
|
lang?: string | undefined | undefined;
|
|
25
|
+
nonce?: string | undefined | undefined;
|
|
32
26
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
27
|
+
tabIndex?: number | undefined | undefined;
|
|
33
28
|
translate?: "yes" | "no" | undefined | undefined;
|
|
34
29
|
radioGroup?: string | undefined | undefined;
|
|
30
|
+
role?: import("react").AriaRole | undefined;
|
|
35
31
|
about?: string | undefined | undefined;
|
|
32
|
+
content?: string | undefined | undefined;
|
|
36
33
|
datatype?: string | undefined | undefined;
|
|
37
34
|
inlist?: any;
|
|
35
|
+
prefix?: string | undefined | undefined;
|
|
38
36
|
property?: string | undefined | undefined;
|
|
39
37
|
rel?: string | undefined | undefined;
|
|
40
38
|
resource?: string | undefined | undefined;
|
|
@@ -53,6 +51,8 @@ declare const Wrapper: import("styled-components").IStyledComponent<"web", {
|
|
|
53
51
|
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
|
|
54
52
|
is?: string | undefined | undefined;
|
|
55
53
|
exportparts?: string | undefined | undefined;
|
|
54
|
+
part?: string | undefined | undefined;
|
|
55
|
+
children?: import("react").ReactNode | Iterable<import("react").ReactNode>;
|
|
56
56
|
"aria-activedescendant"?: string | undefined | undefined;
|
|
57
57
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
58
58
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
|
|
@@ -127,7 +127,7 @@ declare const Wrapper: import("styled-components").IStyledComponent<"web", {
|
|
|
127
127
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
128
128
|
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
129
129
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
130
|
-
onBeforeInput?: import("react").
|
|
130
|
+
onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
|
|
131
131
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
132
132
|
onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
133
133
|
onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -177,8 +177,6 @@ declare const Wrapper: import("styled-components").IStyledComponent<"web", {
|
|
|
177
177
|
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
178
178
|
onRateChange?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
179
179
|
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
180
|
-
onResize?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
181
|
-
onResizeCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
182
180
|
onSeeked?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
183
181
|
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
184
182
|
onSeeking?: import("react").ReactEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { Place } from '../sdk';
|
|
2
|
-
type TIconSymbol = {
|
|
3
|
-
id: string;
|
|
4
|
-
src: string;
|
|
5
|
-
};
|
|
6
|
-
export declare const SelfServeIcons: {
|
|
7
|
-
readonly Annotation: Record<string, TIconSymbol>;
|
|
8
|
-
};
|
|
1
|
+
import { Annotation, Place } from '../sdk';
|
|
9
2
|
/**
|
|
10
|
-
*
|
|
3
|
+
* Return the CDN URL for an annotation's icon symbol.
|
|
4
|
+
* @param annotation - The annotation whose icon to resolve
|
|
5
|
+
* @returns A `https://cdn.mappedin.com/annotator-symbols/...` URL, or undefined if no icon exists
|
|
11
6
|
*/
|
|
12
|
-
export declare const
|
|
7
|
+
export declare const getAnnotationIconUrl: (annotation: Annotation) => string | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* Return the arrow background colour for an annotation's icon (from the SVG's first rect fill).
|
|
10
|
+
* @param annotation - The annotation whose icon colour to resolve
|
|
11
|
+
* @returns A CSS colour string, or undefined if no icon exists
|
|
12
|
+
*/
|
|
13
|
+
export declare const getAnnotationIconBackground: (annotation: Annotation) => string | undefined;
|
|
13
14
|
/**
|
|
14
15
|
* Get an icon from the `ICONS` object as an HTML string.
|
|
15
16
|
*/
|
|
@@ -27,4 +28,3 @@ export declare const attemptIconUrlForPlace: (place: Place) => string | undefine
|
|
|
27
28
|
*/
|
|
28
29
|
export declare const attemptIconNameForPlace: (place: Place) => string | undefined;
|
|
29
30
|
export declare const getFilledCategoryIconString: (categoryIcon: string) => string | undefined;
|
|
30
|
-
export {};
|
|
@@ -6,7 +6,12 @@ type TMarker = {
|
|
|
6
6
|
key: string;
|
|
7
7
|
type: string;
|
|
8
8
|
text?: string;
|
|
9
|
-
elementFn
|
|
9
|
+
elementFn?: () => ReactNode | Promise<ReactNode>;
|
|
10
|
+
/**
|
|
11
|
+
* Prebuilt HTML string, or async factory. When set, skips React renderToString.
|
|
12
|
+
* Prefer this for hot paths (e.g. annotations) — SDK Markers.add only accepts a string.
|
|
13
|
+
*/
|
|
14
|
+
html?: string | (() => string | Promise<string>);
|
|
10
15
|
onPointerDown?: () => void;
|
|
11
16
|
onClick?: () => void;
|
|
12
17
|
onWheel?: (e: WheelEvent) => void;
|
|
@@ -21,6 +26,7 @@ declare class MarkersController {
|
|
|
21
26
|
private reactionDisposers;
|
|
22
27
|
private markersVisible;
|
|
23
28
|
private sdkMarkersByKey;
|
|
29
|
+
private annotationRootByContentEl;
|
|
24
30
|
placeByMarkerId: Record<string, Place>;
|
|
25
31
|
constructor({ rootStore, mapStore }: {
|
|
26
32
|
rootStore: RootStore;
|
|
@@ -39,6 +45,13 @@ declare class MarkersController {
|
|
|
39
45
|
private getMarkerColor;
|
|
40
46
|
private getAnnotationRank;
|
|
41
47
|
private getAreaRank;
|
|
48
|
+
/**
|
|
49
|
+
* Resolve (and memoize) the annotation marker root inside an SDK marker's content element.
|
|
50
|
+
* Cached because it is hit for every annotation marker on every selection change.
|
|
51
|
+
* @param marker - The SDK marker to look inside
|
|
52
|
+
* @returns The annotation root element, or undefined if this marker has none
|
|
53
|
+
*/
|
|
54
|
+
private getAnnotationRoot;
|
|
42
55
|
private forEachMarker;
|
|
43
56
|
private handleZoomChange;
|
|
44
57
|
private zoomOnWheel;
|
|
@@ -153,7 +153,7 @@ declare class UIStore {
|
|
|
153
153
|
get shareButtonVisible(): boolean;
|
|
154
154
|
get mainUIVisible(): boolean;
|
|
155
155
|
get mainUIMaxHeight(): number;
|
|
156
|
-
get appPadding(): 0 |
|
|
156
|
+
get appPadding(): 0 | 20 | 10 | 15;
|
|
157
157
|
get makerPopUpVisible(): boolean;
|
|
158
158
|
get metadataCardVisible(): boolean;
|
|
159
159
|
get availableDepartureModes(): E_DEPARTURE_MODE[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mappedin/viewer",
|
|
3
|
-
"version": "0.59.
|
|
3
|
+
"version": "0.59.5-bae3546.0",
|
|
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.
|
|
22
|
-
"@mappedin/dynamic-focus": "6.
|
|
23
|
-
"@mappedin/mappedin-js": "6.
|
|
21
|
+
"@mappedin/blue-dot": "6.23.0-beta.0",
|
|
22
|
+
"@mappedin/dynamic-focus": "6.23.0-beta.0",
|
|
23
|
+
"@mappedin/mappedin-js": "6.23.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",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"@turf/difference": "^7.2.0",
|
|
32
32
|
"@turf/geojson-rbush": "^7.2.0",
|
|
33
33
|
"@turf/helpers": "^7.2.0",
|
|
34
|
+
"@types/escape-html": "1.0.4",
|
|
34
35
|
"@types/geojson": "^7946.0.16",
|
|
35
36
|
"@types/lodash.isequal": "^4.5.8",
|
|
36
37
|
"@types/lodash.merge": "^4.6.9",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"@vitest/coverage-istanbul": "^3.2.6",
|
|
47
48
|
"dompurify": "^3.4.11",
|
|
48
49
|
"dotenv": "^16.4.5",
|
|
50
|
+
"escape-html": "1.0.3",
|
|
49
51
|
"escape-string-regexp": "^5.0.0",
|
|
50
52
|
"eslint": "^8.45.0",
|
|
51
53
|
"eslint-plugin-react-hooks": "^4.6.0",
|