@cdc/map 4.25.3 → 4.25.6
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/.idea/map.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/dist/cdcmap.js +31254 -32242
- package/examples/hex-colors.json +3 -3
- package/examples/m2.json +32904 -0
- package/examples/private/test.json +470 -1457
- package/examples/private/{mmr.json → wastewatermap.json} +86 -115
- package/index.html +36 -63
- package/package.json +7 -19
- package/src/CdcMap.tsx +56 -1552
- package/src/CdcMapComponent.tsx +608 -0
- package/src/_stories/CdcMap.Legend.Gradient.stories.tsx +10 -0
- package/src/_stories/CdcMap.Legend.stories.tsx +67 -0
- package/src/_stories/CdcMap.Table.stories.tsx +19 -0
- package/src/_stories/CdcMap.stories.tsx +12 -1
- package/src/_stories/UsaMap.NoData.stories.tsx +4 -4
- package/src/_stories/_mock/default-patterns.json +8 -5
- package/src/_stories/_mock/legend-bins.json +428 -0
- package/{examples/private/default-patterns.json → src/_stories/_mock/legends/legend-tests.json} +36 -131
- package/src/cdcMapComponent.styles.css +9 -0
- package/src/components/Annotation/Annotation.Draggable.tsx +27 -26
- package/src/components/Annotation/AnnotationDropdown.tsx +5 -6
- package/src/components/BubbleList.tsx +135 -49
- package/src/components/CityList.tsx +89 -87
- package/src/components/DataTable.tsx +8 -8
- package/src/components/EditorPanel/components/EditorPanel.tsx +823 -885
- package/src/components/EditorPanel/components/Error.tsx +9 -2
- package/src/components/EditorPanel/components/HexShapeSettings.tsx +127 -141
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +55 -86
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +89 -75
- package/src/components/EditorPanel/components/editorPanel.styles.css +95 -0
- package/src/components/Geo.tsx +9 -1
- package/src/components/GoogleMap/components/GoogleMap.tsx +1 -1
- package/src/components/Legend/components/Legend.tsx +92 -87
- package/src/components/Legend/components/LegendGroup/Legend.Group.tsx +128 -0
- package/src/components/Legend/components/LegendGroup/legend.group.css +27 -0
- package/src/components/Legend/components/LegendItem.Hex.tsx +4 -1
- package/src/components/Legend/components/index.scss +74 -17
- package/src/components/Modal.tsx +17 -7
- package/src/components/NavigationMenu.tsx +11 -9
- package/src/components/UsaMap/components/SingleState/SingleState.CountyOutput.tsx +12 -8
- package/src/components/UsaMap/components/SingleState/SingleState.StateOutput.tsx +4 -4
- package/src/components/UsaMap/components/TerritoriesSection.tsx +33 -10
- package/src/components/UsaMap/components/Territory/Territory.Hexagon.tsx +12 -10
- package/src/components/UsaMap/components/Territory/Territory.Rectangle.tsx +12 -14
- package/src/components/UsaMap/components/Territory/TerritoryShape.ts +2 -1
- package/src/components/UsaMap/components/UsaMap.County.tsx +138 -96
- package/src/components/UsaMap/components/UsaMap.Region.styles.css +72 -0
- package/src/components/UsaMap/components/UsaMap.Region.tsx +56 -103
- package/src/components/UsaMap/components/UsaMap.SingleState.styles.css +10 -0
- package/src/components/UsaMap/components/UsaMap.SingleState.tsx +65 -74
- package/src/components/UsaMap/components/UsaMap.State.tsx +112 -91
- package/src/components/UsaMap/helpers/map.ts +1 -1
- package/src/components/UsaMap/helpers/shapes.ts +20 -7
- package/src/components/WorldMap/WorldMap.tsx +64 -118
- package/src/components/WorldMap/worldMap.styles.css +28 -0
- package/src/components/ZoomControls.tsx +15 -13
- package/src/components/zoomControls.styles.css +53 -0
- package/src/context.ts +17 -9
- package/src/data/initial-state.js +5 -2
- package/src/helpers/addUIDs.ts +150 -0
- package/src/helpers/applyColorToLegend.ts +39 -64
- package/src/helpers/applyLegendToRow.ts +51 -0
- package/src/helpers/colorDistributions.ts +12 -0
- package/src/helpers/constants.ts +44 -0
- package/src/helpers/displayGeoName.ts +9 -2
- package/src/helpers/formatLegendLocation.ts +3 -2
- package/src/helpers/generateColorsArray.ts +2 -1
- package/src/helpers/generateRuntimeData.ts +78 -0
- package/src/helpers/generateRuntimeFilters.ts +63 -0
- package/src/helpers/generateRuntimeLegend.ts +566 -0
- package/src/helpers/generateRuntimeLegendHash.ts +16 -15
- package/src/helpers/getColumnNames.ts +19 -0
- package/src/helpers/getMapContainerClasses.ts +23 -0
- package/src/helpers/getStatePicked.ts +8 -0
- package/src/helpers/handleMapTabbing.ts +31 -0
- package/src/helpers/hashObj.ts +1 -1
- package/src/helpers/index.ts +22 -0
- package/src/helpers/navigationHandler.ts +3 -3
- package/src/helpers/resetLegendToggles.ts +13 -0
- package/src/helpers/setBinNumbers.ts +5 -0
- package/src/helpers/sortSpecialClassesLast.ts +7 -0
- package/src/helpers/tests/getColumnNames.test.ts +52 -0
- package/src/helpers/titleCase.ts +1 -1
- package/src/helpers/toggleLegendActive.ts +25 -0
- package/src/hooks/useApplyTooltipsToGeo.tsx +51 -0
- package/src/hooks/useColumnsRequiredChecker.ts +51 -0
- package/src/hooks/useGeoClickHandler.ts +45 -0
- package/src/hooks/useLegendSeparators.ts +26 -0
- package/src/hooks/useMapLayers.tsx +34 -60
- package/src/hooks/useModal.ts +22 -0
- package/src/hooks/useResizeObserver.ts +4 -5
- package/src/hooks/useStateZoom.tsx +52 -75
- package/src/hooks/useTooltip.ts +2 -3
- package/src/index.jsx +3 -9
- package/src/scss/editor-panel.scss +3 -99
- package/src/scss/main.scss +1 -19
- package/src/scss/map.scss +15 -220
- package/src/store/map.actions.ts +46 -0
- package/src/store/map.reducer.ts +96 -0
- package/src/types/Annotations.ts +24 -0
- package/src/types/MapConfig.ts +23 -3
- package/src/types/MapContext.ts +36 -35
- package/src/types/Modal.ts +1 -0
- package/src/types/RuntimeData.ts +3 -0
- package/examples/private/DEV-9644.json +0 -184
- package/examples/private/DEV-9989.json +0 -229
- package/examples/private/ardi.json +0 -180
- package/examples/private/colors 2.json +0 -416
- package/examples/private/colors.json +0 -416
- package/examples/private/colors.json.zip +0 -0
- package/examples/private/customColors.json +0 -45348
- package/examples/test.json +0 -183
- package/src/helpers/closeModal.ts +0 -9
- package/src/scss/btn.scss +0 -69
- package/src/scss/filters.scss +0 -27
- package/src/scss/variables.scss +0 -1
- /package/src/hooks/{useActiveElement.js → useActiveElement.ts} +0 -0
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"annotations": [],
|
|
3
3
|
"general": {
|
|
4
|
-
"noStateFoundMessage": "Map Unavailable",
|
|
5
|
-
"annotationDropdownText": "Annotations",
|
|
6
4
|
"geoBorderColor": "darkGray",
|
|
7
5
|
"headerColor": "theme-blue",
|
|
8
6
|
"title": "",
|
|
9
7
|
"showTitle": true,
|
|
10
8
|
"showSidebar": true,
|
|
11
|
-
"showDownloadButton":
|
|
9
|
+
"showDownloadButton": false,
|
|
12
10
|
"showDownloadMediaButton": false,
|
|
13
11
|
"displayAsHex": false,
|
|
14
|
-
"displayStateLabels":
|
|
15
|
-
"
|
|
16
|
-
"territoriesAlwaysShow": false,
|
|
12
|
+
"displayStateLabels": true,
|
|
13
|
+
"territoriesAlwaysShow": true,
|
|
17
14
|
"language": "en",
|
|
18
15
|
"geoType": "us",
|
|
19
|
-
"geoLabelOverride": "",
|
|
16
|
+
"geoLabelOverride": "State/Territory",
|
|
20
17
|
"hasRegions": false,
|
|
21
18
|
"fullBorder": false,
|
|
22
19
|
"type": "map",
|
|
23
20
|
"convertFipsCodes": true,
|
|
24
21
|
"palette": {
|
|
25
|
-
"isReversed":
|
|
22
|
+
"isReversed": true
|
|
26
23
|
},
|
|
27
|
-
"allowMapZoom":
|
|
28
|
-
"hideGeoColumnInTooltip":
|
|
24
|
+
"allowMapZoom": true,
|
|
25
|
+
"hideGeoColumnInTooltip": false,
|
|
29
26
|
"hidePrimaryColumnInTooltip": false,
|
|
30
27
|
"statePicked": {
|
|
31
28
|
"fipsCode": "01",
|
|
32
29
|
"stateName": "Alabama"
|
|
33
30
|
},
|
|
34
31
|
"expandDataTable": false,
|
|
35
|
-
"
|
|
32
|
+
"annotationDropdownText": "Annotations",
|
|
33
|
+
"noStateFoundMessage": "Map Unavailable",
|
|
34
|
+
"subtext": "<div class=\"text-left\">Data last updated on <span data-timestamp=\"nwss_rsv_sc2_flua_combined_state_map:Data_as_of\"></span> and presented through <span data-timestamp=\"nwss_rsv_sc2_flua_combined_state_map:Data_Presented_Through\"></span>. ",
|
|
35
|
+
"navigationTarget": "_self"
|
|
36
36
|
},
|
|
37
37
|
"type": "map",
|
|
38
|
-
"color": "
|
|
38
|
+
"color": "greenbluereverse",
|
|
39
39
|
"columns": {
|
|
40
40
|
"geo": {
|
|
41
|
-
"name": "
|
|
41
|
+
"name": "State",
|
|
42
42
|
"label": "Location",
|
|
43
43
|
"tooltip": false,
|
|
44
44
|
"dataTable": true
|
|
45
45
|
},
|
|
46
46
|
"primary": {
|
|
47
47
|
"dataTable": true,
|
|
48
|
-
"tooltip":
|
|
48
|
+
"tooltip": true,
|
|
49
49
|
"prefix": "",
|
|
50
50
|
"suffix": "",
|
|
51
|
-
"name": "
|
|
52
|
-
"label": "
|
|
51
|
+
"name": "activity_level_label",
|
|
52
|
+
"label": "Viral Activity Level",
|
|
53
53
|
"roundToPlace": 0
|
|
54
54
|
},
|
|
55
55
|
"navigate": {
|
|
@@ -62,127 +62,81 @@
|
|
|
62
62
|
"name": ""
|
|
63
63
|
},
|
|
64
64
|
"additionalColumn1": {
|
|
65
|
-
"label": "
|
|
65
|
+
"label": "Sites Currently Reporting",
|
|
66
66
|
"dataTable": true,
|
|
67
67
|
"tooltips": false,
|
|
68
68
|
"prefix": "",
|
|
69
69
|
"suffix": "",
|
|
70
|
-
"name": "
|
|
70
|
+
"name": "num_sites",
|
|
71
71
|
"tooltip": true
|
|
72
72
|
},
|
|
73
73
|
"additionalColumn2": {
|
|
74
|
-
"label": "
|
|
74
|
+
"label": "Limited Coverage",
|
|
75
75
|
"dataTable": true,
|
|
76
76
|
"tooltips": false,
|
|
77
77
|
"prefix": "",
|
|
78
78
|
"suffix": "",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"tooltip": false,
|
|
80
|
+
"name": "hatch"
|
|
81
81
|
},
|
|
82
82
|
"additionalColumn3": {
|
|
83
|
-
"label": "
|
|
84
|
-
"dataTable":
|
|
83
|
+
"label": "",
|
|
84
|
+
"dataTable": false,
|
|
85
85
|
"tooltips": false,
|
|
86
86
|
"prefix": "",
|
|
87
87
|
"suffix": "",
|
|
88
|
-
"
|
|
88
|
+
"tooltip": true,
|
|
89
89
|
"useCommas": true,
|
|
90
|
-
"
|
|
91
|
-
},
|
|
92
|
-
"additionalColumn4": {
|
|
93
|
-
"label": "Percent Surveyed",
|
|
94
|
-
"dataTable": true,
|
|
95
|
-
"tooltips": false,
|
|
96
|
-
"prefix": "",
|
|
97
|
-
"suffix": "%",
|
|
98
|
-
"name": "percent_surveyed",
|
|
99
|
-
"tooltip": false
|
|
100
|
-
},
|
|
101
|
-
"additionalColumn5": {
|
|
102
|
-
"label": "Survey Type",
|
|
103
|
-
"dataTable": true,
|
|
104
|
-
"tooltips": false,
|
|
105
|
-
"prefix": "",
|
|
106
|
-
"suffix": "",
|
|
107
|
-
"name": "survey_type",
|
|
108
|
-
"tooltip": false
|
|
90
|
+
"name": "hatch"
|
|
109
91
|
}
|
|
110
92
|
},
|
|
111
93
|
"legend": {
|
|
112
94
|
"descriptions": {},
|
|
113
|
-
"specialClasses": [
|
|
114
|
-
|
|
115
|
-
"key": "categories",
|
|
116
|
-
"value": "NA",
|
|
117
|
-
"label": "Not available"
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
"key": "estimate_pct",
|
|
121
|
-
"value": "NA",
|
|
122
|
-
"label": "Not available"
|
|
123
|
-
},
|
|
124
|
-
{}
|
|
125
|
-
],
|
|
126
|
-
"unified": true,
|
|
95
|
+
"specialClasses": [],
|
|
96
|
+
"unified": false,
|
|
127
97
|
"singleColumn": false,
|
|
128
|
-
"singleRow":
|
|
98
|
+
"singleRow": true,
|
|
129
99
|
"verticalSorted": false,
|
|
130
100
|
"showSpecialClassesLast": true,
|
|
131
101
|
"dynamicDescription": false,
|
|
132
102
|
"type": "category",
|
|
133
|
-
"numberOfItems":
|
|
134
|
-
"position": "
|
|
135
|
-
"title": "
|
|
136
|
-
"
|
|
103
|
+
"numberOfItems": 8,
|
|
104
|
+
"position": "top",
|
|
105
|
+
"title": "Wastewater Viral Activity Level",
|
|
106
|
+
"categoryValuesOrder": ["Very Low", "Low", "Moderate", "High", "Very High", "No Data", "Minimal"],
|
|
107
|
+
"additionalCategories": ["No Data", "Very Low", "Low", "Moderate", "High", "Very High"],
|
|
108
|
+
"description": "",
|
|
109
|
+
"style": "gradient",
|
|
137
110
|
"subStyle": "linear blocks",
|
|
138
111
|
"tickRotation": "",
|
|
139
112
|
"singleColumnLegend": false,
|
|
140
|
-
"hideBorder":
|
|
141
|
-
"categoryValuesOrder": [
|
|
142
|
-
"Less than 90%",
|
|
143
|
-
"90-94.9%",
|
|
144
|
-
"95%+",
|
|
145
|
-
"NA"
|
|
146
|
-
]
|
|
113
|
+
"hideBorder": true
|
|
147
114
|
},
|
|
148
115
|
"filters": [
|
|
149
116
|
{
|
|
150
|
-
"order": "
|
|
151
|
-
"label": "",
|
|
152
|
-
"columnName": "
|
|
153
|
-
"values": [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"2012-13",
|
|
158
|
-
"2013-14",
|
|
159
|
-
"2014-15",
|
|
160
|
-
"2015-16",
|
|
161
|
-
"2016-17",
|
|
162
|
-
"2017-18",
|
|
163
|
-
"2018-19",
|
|
164
|
-
"2019-20",
|
|
165
|
-
"2020-21",
|
|
166
|
-
"2021-22",
|
|
167
|
-
"2022-23",
|
|
168
|
-
"2023-24"
|
|
169
|
-
],
|
|
170
|
-
"filterStyle": "dropdown"
|
|
117
|
+
"order": "asc",
|
|
118
|
+
"label": "Select a virus:",
|
|
119
|
+
"columnName": "pathogen",
|
|
120
|
+
"values": ["COVID-19", "Influenza A", "RSV"],
|
|
121
|
+
"active": "COVID-19",
|
|
122
|
+
"filterStyle": "dropdown",
|
|
123
|
+
"orderedValues": ["COVID-19", "Influenza A", "RSV"]
|
|
171
124
|
}
|
|
172
125
|
],
|
|
173
126
|
"table": {
|
|
174
|
-
"wrapColumns": true,
|
|
175
127
|
"label": "Data Table",
|
|
176
128
|
"expanded": false,
|
|
177
|
-
"limitHeight":
|
|
178
|
-
"height": "",
|
|
129
|
+
"limitHeight": true,
|
|
130
|
+
"height": "500",
|
|
179
131
|
"caption": "",
|
|
180
132
|
"showDownloadUrl": false,
|
|
181
133
|
"showDataTableLink": true,
|
|
182
134
|
"showFullGeoNameInCSV": false,
|
|
183
135
|
"forceDisplay": true,
|
|
184
136
|
"download": true,
|
|
185
|
-
"indexLabel": ""
|
|
137
|
+
"indexLabel": "State/Territory",
|
|
138
|
+
"wrapColumns": false,
|
|
139
|
+
"showDownloadLinkBelow": true
|
|
186
140
|
},
|
|
187
141
|
"tooltips": {
|
|
188
142
|
"appearanceType": "hover",
|
|
@@ -195,21 +149,26 @@
|
|
|
195
149
|
"maxBubbleSize": 20,
|
|
196
150
|
"extraBubbleBorder": false,
|
|
197
151
|
"cityStyle": "circle",
|
|
198
|
-
"
|
|
152
|
+
"geoCodeCircleSize": 2,
|
|
199
153
|
"showBubbleZeros": false,
|
|
200
|
-
"
|
|
201
|
-
"
|
|
154
|
+
"cityStyleLabel": "",
|
|
155
|
+
"additionalCityStyles": []
|
|
202
156
|
},
|
|
203
157
|
"mapPosition": {
|
|
204
|
-
"coordinates": [
|
|
205
|
-
0,
|
|
206
|
-
30
|
|
207
|
-
],
|
|
158
|
+
"coordinates": [0, 30],
|
|
208
159
|
"zoom": 1
|
|
209
160
|
},
|
|
210
161
|
"map": {
|
|
211
162
|
"layers": [],
|
|
212
|
-
"patterns": [
|
|
163
|
+
"patterns": [
|
|
164
|
+
{
|
|
165
|
+
"dataKey": "hatch",
|
|
166
|
+
"pattern": "lines",
|
|
167
|
+
"dataValue": "Limited Coverage",
|
|
168
|
+
"label": "Limited Coverage*",
|
|
169
|
+
"size": "medium"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
213
172
|
},
|
|
214
173
|
"hexMap": {
|
|
215
174
|
"type": "",
|
|
@@ -230,17 +189,29 @@
|
|
|
230
189
|
]
|
|
231
190
|
},
|
|
232
191
|
"filterBehavior": "Filter Change",
|
|
233
|
-
"
|
|
234
|
-
"dataFileName": "/wcms/vizdata/measles/MeaslesKindergartenVaxcovExemptions.json",
|
|
235
|
-
"dataFileSourceType": "url",
|
|
236
|
-
"version": "4.24.9",
|
|
192
|
+
"filterIntro": "",
|
|
237
193
|
"customColors": [
|
|
238
|
-
"#
|
|
239
|
-
"#
|
|
240
|
-
"#
|
|
241
|
-
"#
|
|
242
|
-
"#
|
|
243
|
-
"#
|
|
244
|
-
"#
|
|
245
|
-
|
|
246
|
-
|
|
194
|
+
"#C8EFDA",
|
|
195
|
+
"#9FDAD0",
|
|
196
|
+
"#9FDAD0",
|
|
197
|
+
"#6BB0BD",
|
|
198
|
+
"#4B7F9B",
|
|
199
|
+
"#34547B",
|
|
200
|
+
"#B4B4B4",
|
|
201
|
+
"#B4B4B4",
|
|
202
|
+
"#B4B4B4",
|
|
203
|
+
"#B4B4B4"
|
|
204
|
+
],
|
|
205
|
+
"datasets": {},
|
|
206
|
+
"dataFileName": "https://www.cdc.gov/wcms/vizdata/ncezid_didri/NWSSStateMapCombined.json",
|
|
207
|
+
"dataFileSourceType": "url",
|
|
208
|
+
"dataDescription": {
|
|
209
|
+
"horizontal": false,
|
|
210
|
+
"series": false
|
|
211
|
+
},
|
|
212
|
+
"version": "4.25.1",
|
|
213
|
+
"dataUrl": "https://www.cdc.gov/wcms/vizdata/ncezid_didri/NWSSStateMapCombined.json",
|
|
214
|
+
"migrations": {
|
|
215
|
+
"addColorMigration": true
|
|
216
|
+
}
|
|
217
|
+
}
|
package/index.html
CHANGED
|
@@ -1,66 +1,39 @@
|
|
|
1
1
|
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
6
|
-
<style type="text/css">
|
|
7
|
-
body {
|
|
8
|
-
margin: 0;
|
|
9
|
-
border-top: none !important;
|
|
10
|
-
}
|
|
11
3
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<!-- <div class="react-container react-container--maps" data-config="/examples/default-hex.json"></div> -->
|
|
49
|
-
<!-- <div class="react-container react-container--maps" data-config="/examples/default-hex.json"></div> -->
|
|
50
|
-
<!-- <div class="react-container react-container--maps" data-config="/examples/hex-with-arrows.json"></div> -->
|
|
51
|
-
|
|
52
|
-
<!-- TP4 EXAMPLES -->
|
|
53
|
-
<div class="react-container react-container--maps" data-config="/examples/example-city-state.json"></div>
|
|
54
|
-
<!-- <div
|
|
55
|
-
class="react-container react-container--maps"
|
|
56
|
-
data-config="/examples/example-city-state-no-territories.json"
|
|
57
|
-
></div> -->
|
|
58
|
-
<!-- <div class="react-container react-container--maps" data-config="/examples/example-world-map.json"></div> -->
|
|
59
|
-
<!-- <div class="react-container react-container--maps" data-config="/examples/default-hex.json"></div> -->
|
|
60
|
-
|
|
61
|
-
<!-- <div class="react-container" data-config="/examples/example-hex-map-with-filter.json"></div> -->
|
|
62
|
-
|
|
63
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
64
|
-
<script type="module" src="./src/index.jsx"></script>
|
|
65
|
-
</body>
|
|
66
|
-
</html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
body {
|
|
9
|
+
margin: 0;
|
|
10
|
+
border-top: none !important;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.cdc-map-outer-container {
|
|
14
|
+
min-height: 100vh;
|
|
15
|
+
}
|
|
16
|
+
</style>
|
|
17
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
|
|
18
|
+
|
|
19
|
+
<!-- This is temporary and for testing until Nunito/900 is added to TP -->
|
|
20
|
+
<link href="https://fonts.googleapis.com/css2?family=Nunito:wght@900&display=swap" rel="stylesheet" />
|
|
21
|
+
<style type="text/css">
|
|
22
|
+
@font-face {
|
|
23
|
+
font-family: 'Nunito';
|
|
24
|
+
font-weight: 900;
|
|
25
|
+
font-display: swap;
|
|
26
|
+
src: url('https://app.unpkg.com/@fontsource/nunito@5.0.18/files/files/nunito-latin-900-normal.woff2') format('woff2');
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
|
|
31
|
+
<body>
|
|
32
|
+
<!-- DEFAULT EXAMPLES -->
|
|
33
|
+
<div class="react-container" data-config="/examples/default-hex.json"></div>
|
|
34
|
+
|
|
35
|
+
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
36
|
+
<script type="module" src="./src/index.jsx"></script>
|
|
37
|
+
</body>
|
|
38
|
+
|
|
39
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/map",
|
|
3
|
-
"version": "4.25.
|
|
3
|
+
"version": "4.25.6",
|
|
4
4
|
"description": "React component for visualizing tabular data on a map of the United States or the world.",
|
|
5
5
|
"moduleName": "CdcMap",
|
|
6
6
|
"main": "dist/cdcmap",
|
|
@@ -25,37 +25,25 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@cdc/core": "^4.25.
|
|
29
|
-
"@emotion/core": "^10.0.28",
|
|
30
|
-
"@emotion/react": "^11.1.5",
|
|
28
|
+
"@cdc/core": "^4.25.6",
|
|
31
29
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
32
30
|
"@hello-pangea/dnd": "^16.2.0",
|
|
33
|
-
"@react-google-maps/api": "^2.20.
|
|
34
|
-
"@visx/geo": "^
|
|
31
|
+
"@react-google-maps/api": "^2.20.6",
|
|
32
|
+
"@visx/geo": "^3.12.0",
|
|
35
33
|
"chroma": "0.0.1",
|
|
36
|
-
"
|
|
37
|
-
"d3": "^7.8.2",
|
|
34
|
+
"d3": "^7.9.0",
|
|
38
35
|
"d3-composite-projections": "^1.4.0",
|
|
39
36
|
"d3-selection": "^3.0.0",
|
|
40
37
|
"d3-zoom": "^3.0.0",
|
|
41
|
-
"html-react-parser": "^3.0.8",
|
|
42
|
-
"html2canvas": "^1.0.0-rc.7",
|
|
43
38
|
"leaflet": "^1.9.4",
|
|
44
39
|
"lodash.debounce": "^4.0.8",
|
|
45
|
-
"papaparse": "^5.3.0",
|
|
46
40
|
"react-accessible-accordion": "^3.0.1",
|
|
47
|
-
"react-leaflet": "^4.2.1",
|
|
48
|
-
"react-leaflet-markercluster": "^4.1.1",
|
|
49
|
-
"react-table": "^7.5.0",
|
|
50
|
-
"react-tag-autocomplete": "^6.0.0",
|
|
51
|
-
"react-tooltip": "5.8.2-beta.3",
|
|
52
41
|
"topojson-client": "^3.1.0",
|
|
53
|
-
"use-debounce": "^
|
|
54
|
-
"whatwg-fetch": "^3.6.2"
|
|
42
|
+
"use-debounce": "^10.0.5"
|
|
55
43
|
},
|
|
56
44
|
"peerDependencies": {
|
|
57
45
|
"react": "^18.2.0",
|
|
58
46
|
"react-dom": "^18.2.0"
|
|
59
47
|
},
|
|
60
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "6097de1ff814001880d9ac64bd66becdc092d63c"
|
|
61
49
|
}
|