@mappedin/viewer 0.59.4 → 0.59.5-69a91bc.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 +54971 -52808
- package/dist/third-party-licenses.json +8 -0
- 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 +13 -13
- package/dist/types/src/components/common/fullscreen-overlay.d.ts +13 -13
- package/dist/types/src/components/common/global-styles.d.ts +5 -0
- package/dist/types/src/components/directions/warning-text.d.ts +13 -13
- package/dist/types/src/components/search-results/search-result.d.ts +13 -13
- package/dist/types/src/components/with-content/index.d.ts +13 -13
- package/dist/types/src/lib/sdk/index.d.ts +0 -1
- package/dist/types/src/lib/sdk/load-data.d.ts +4 -0
- 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
|
@@ -127,6 +127,14 @@
|
|
|
127
127
|
"author": "Dr.-Ing. Mario Heiderich, Cure53",
|
|
128
128
|
"licenseText": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n\n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n 1. Definitions.\n\n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n\n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n\n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n\n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n\n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n\n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n\n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n\n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n\n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n\n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n\n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n\n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n\n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n\n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n\n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n\n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n\n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n\n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n\n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n\n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n\n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n\n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n\n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n\n END OF TERMS AND CONDITIONS\n\n APPENDIX: How to apply the Apache License to your work.\n\n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n\n Copyright [yyyy] [name of copyright owner]\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License."
|
|
129
129
|
},
|
|
130
|
+
{
|
|
131
|
+
"name": "escape-html",
|
|
132
|
+
"version": "1.0.3",
|
|
133
|
+
"license": "MIT",
|
|
134
|
+
"homepage": null,
|
|
135
|
+
"author": null,
|
|
136
|
+
"licenseText": "(The MIT License)\n\nCopyright (c) 2012-2013 TJ Holowaychuk\nCopyright (c) 2015 Andreas Lubbe\nCopyright (c) 2015 Tiancheng \"Timothy\" Gu\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
|
|
137
|
+
},
|
|
130
138
|
{
|
|
131
139
|
"name": "escape-string-regexp",
|
|
132
140
|
"version": "5.0.0",
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import './annotation-marker.css';
|
|
2
|
+
import { Annotation } from '../../lib/sdk';
|
|
3
|
+
/** Root class of the marker markup. Used to find the element again after the SDK inserts it. */
|
|
4
|
+
export declare const ANNOTATION_MARKER_CLASS = "mi-annotation";
|
|
5
|
+
export type TBuildAnnotationMarkerHtmlOptions = {
|
|
6
|
+
annotation: Annotation;
|
|
7
|
+
iconUrl: string;
|
|
8
|
+
backgroundColor: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
isMobile?: boolean;
|
|
11
|
+
size?: number;
|
|
12
|
+
isSelected?: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Build annotation marker markup as an HTML string for SDK Markers.add.
|
|
16
|
+
* Per-marker variance is only icon URL, escaped name, arrow color, size, and role.
|
|
17
|
+
* @param options - Marker content and presentation options
|
|
18
|
+
* @returns HTML string suitable for Markers.add
|
|
19
|
+
*/
|
|
20
|
+
export declare const buildAnnotationMarkerHtml: ({ annotation, iconUrl, backgroundColor, name: nameOverride, isMobile, size, isSelected, }: TBuildAnnotationMarkerHtmlOptions) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ANNOTATION_MARKER_CLASS, buildAnnotationMarkerHtml, TBuildAnnotationMarkerHtmlOptions } from './build-annotation-marker-html';
|
|
2
|
+
export { ANNOTATION_MARKER_CLASS, buildAnnotationMarkerHtml };
|
|
3
|
+
export type { TBuildAnnotationMarkerHtmlOptions };
|
|
4
|
+
/**
|
|
5
|
+
* Annotation markers are plain HTML + static CSS (see buildAnnotationMarkerHtml).
|
|
6
|
+
* Kept as a module so stories and the markers controller share one entry point.
|
|
7
|
+
*
|
|
8
|
+
* NOTE: SDK Markers.add only accepts an HTML string — content cannot be a DOM node
|
|
9
|
+
* or React portal. Interpolated text must be escaped with `escape-html`.
|
|
10
|
+
*/
|
|
11
|
+
declare const AnnotationMarker: {
|
|
12
|
+
buildHtml: ({ annotation, iconUrl, backgroundColor, name: nameOverride, isMobile, size, isSelected, }: TBuildAnnotationMarkerHtmlOptions) => string;
|
|
7
13
|
};
|
|
8
|
-
declare const AnnotationMarker: React.FC<TAnnotationMarkerProps>;
|
|
9
14
|
export default AnnotationMarker;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import { TTheme } from '../../lib/types/theme';
|
|
2
2
|
export declare const SideNavButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<{
|
|
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 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
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 @@ export declare const SideNavButton: import("styled-components").IStyledComponent
|
|
|
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;
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
export declare const FULLSCREEN_OVERLAY_ID = "mappedin-viewer-fullscreen-overlay";
|
|
2
2
|
export declare const FullscreenOverlay: 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 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
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 @@ export declare const FullscreenOverlay: import("styled-components").IStyledCompo
|
|
|
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;
|
|
@@ -4,4 +4,9 @@ declare const GlobalStyles: import("react").NamedExoticComponent<import("styled-
|
|
|
4
4
|
embedded?: boolean;
|
|
5
5
|
stories?: boolean;
|
|
6
6
|
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Theme-derived CSS custom properties for static marker stylesheets.
|
|
9
|
+
* Must render inside ThemeProvider so theme switching stays free of per-marker cost.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ThemeCssVariables: import("react").NamedExoticComponent<import("styled-components").ExecutionProps & object>;
|
|
7
12
|
export default GlobalStyles;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -9,6 +9,10 @@ export type TLoadDataOptions = Partial<{
|
|
|
9
9
|
}> & THydrateDataOptions;
|
|
10
10
|
/**
|
|
11
11
|
* Load a public MVF while bypassing the need for API keys.
|
|
12
|
+
*
|
|
13
|
+
* Resolves a signed bundle URL from the public Azure function, then hands it to
|
|
14
|
+
* the SDK via `bundleUri` so the download/parse/hydrate pipeline (including
|
|
15
|
+
* Range reads and the worker node graph) runs inside `getMapData`.
|
|
12
16
|
*/
|
|
13
17
|
export declare const loadData: (mapId: string, url?: string, options?: TLoadDataOptions) => Promise<MapData>;
|
|
14
18
|
/**
|
|
@@ -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-69a91bc.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-pr-1673-feat-bundle-uri-579c1828.0",
|
|
22
|
+
"@mappedin/dynamic-focus": "6.23.0-pr-1673-feat-bundle-uri-579c1828.0",
|
|
23
|
+
"@mappedin/mappedin-js": "6.23.1-pr-1673-feat-bundle-uri-579c1828.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",
|