@cdc/editor 4.24.12 → 4.25.1
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/cdceditor.js +68804 -67393
- package/index.html +1 -2
- package/package.json +9 -9
- package/src/components/ChooseTab.tsx +1 -2
- package/src/components/ConfigureTab.tsx +2 -2
- package/src/components/PreviewDataTable.tsx +1 -1
- package/src/index.jsx +1 -0
- package/src/samples/valid-data-map.csv +2 -2
- package/src/samples/valid-geo-point.csv +1 -1
- package/src/scss/main.scss +3 -3
package/index.html
CHANGED
|
@@ -11,8 +11,7 @@
|
|
|
11
11
|
min-height: 100vh;
|
|
12
12
|
}
|
|
13
13
|
</style>
|
|
14
|
-
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/
|
|
15
|
-
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/4.0/assets/css/app.min.css?_=39423">
|
|
14
|
+
<link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
|
|
16
15
|
</head>
|
|
17
16
|
<body>
|
|
18
17
|
<div class="react-container react--editor"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/editor",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.25.1",
|
|
4
4
|
"description": "React component for generating a new component entry",
|
|
5
5
|
"moduleName": "CdcEditor",
|
|
6
6
|
"main": "dist/cdceditor",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
},
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@cdc/chart": "^4.
|
|
29
|
-
"@cdc/core": "^4.
|
|
30
|
-
"@cdc/dashboard": "^4.
|
|
31
|
-
"@cdc/data-bite": "^4.
|
|
32
|
-
"@cdc/map": "^4.
|
|
33
|
-
"@cdc/markup-include": "^4.
|
|
34
|
-
"@cdc/waffle-chart": "^4.
|
|
28
|
+
"@cdc/chart": "^4.25.1",
|
|
29
|
+
"@cdc/core": "^4.25.1",
|
|
30
|
+
"@cdc/dashboard": "^4.25.1",
|
|
31
|
+
"@cdc/data-bite": "^4.25.1",
|
|
32
|
+
"@cdc/map": "^4.25.1",
|
|
33
|
+
"@cdc/markup-include": "^4.25.1",
|
|
34
|
+
"@cdc/waffle-chart": "^4.25.1",
|
|
35
35
|
"axios": "^1.6.0",
|
|
36
36
|
"d3": "^7.0.0",
|
|
37
37
|
"html-react-parser": "^3.0.8",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"react": "^18.2.0",
|
|
45
45
|
"react-dom": "^18.2.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "c32d727f516fe3525178e3a6480abbe70b2a20d6"
|
|
48
48
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react'
|
|
2
2
|
|
|
3
3
|
import CdcMap from '@cdc/map/src/CdcMap' // TODO: Lazy load this
|
|
4
|
-
import CdcChart from '
|
|
4
|
+
import CdcChart from '@cdc/chart/src/CdcChart'
|
|
5
5
|
import CdcDataBite from '@cdc/data-bite/src/CdcDataBite'
|
|
6
6
|
import CdcWaffleChart from '@cdc/waffle-chart/src/CdcWaffleChart'
|
|
7
7
|
import CdcMarkupInclude from '@cdc/markup-include/src/CdcMarkupInclude'
|
|
@@ -41,7 +41,7 @@ export default function ConfigureTab({ containerEl }) {
|
|
|
41
41
|
case 'chart':
|
|
42
42
|
return (
|
|
43
43
|
<ErrorBoundary component='CdcChart'>
|
|
44
|
-
<CdcChart isEditor={true} isDebug={isDebug} config={config}
|
|
44
|
+
<CdcChart isEditor={true} isDebug={isDebug} config={config} />
|
|
45
45
|
</ErrorBoundary>
|
|
46
46
|
)
|
|
47
47
|
case 'dashboard':
|
|
@@ -68,7 +68,7 @@ const Footer = memo(({ previousPage, nextPage, canPreviousPage, canNextPage, pag
|
|
|
68
68
|
<GrFormPrevious />
|
|
69
69
|
</button>
|
|
70
70
|
</li>
|
|
71
|
-
<li className='
|
|
71
|
+
<li className='me-2'>
|
|
72
72
|
<button
|
|
73
73
|
onClick={() => nextPage()}
|
|
74
74
|
className='btn btn-next display-flex align-items-center justify-content-center'
|
package/src/index.jsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
STATE,Rate,Location,URL
|
|
1
|
+
STATE,Rate,Location,URL
|
|
2
2
|
Overall,55,Vehicle,https://www.cdc.gov
|
|
3
3
|
Alabama,130,Vehicle,https://www.cdc.gov/
|
|
4
4
|
Alaska,40,Work,https://www.cdc.gov/
|
|
@@ -8,7 +8,7 @@ Arkansas,60,School,https://www.cdc.gov/
|
|
|
8
8
|
California,30,Home,https://www.cdc.gov/
|
|
9
9
|
Colorado,40,Vehicle,https://www.cdc.gov/
|
|
10
10
|
Connecticut,55,Home,https://www.cdc.gov/
|
|
11
|
-
|
|
11
|
+
Delaware,57,Home,https://www.cdc.gov/
|
|
12
12
|
DC,60,Home,https://www.cdc.gov/
|
|
13
13
|
Florida,30,Work,https://www.cdc.gov/
|
|
14
14
|
Georgia,40,Work,https://www.cdc.gov/
|
|
@@ -81,7 +81,7 @@ Plano,-96.698883,33.019844,79
|
|
|
81
81
|
Portland,-122.658722,45.51223,80
|
|
82
82
|
Raleigh,-78.638176,35.779591,81
|
|
83
83
|
Reno,-119.813805,39.529633,82
|
|
84
|
-
Richmond,-77.43605,37.540726,83
|
|
84
|
+
"Richmond, Virginia",-77.43605,37.540726,83
|
|
85
85
|
Riverside,-117.375496,33.980602,84
|
|
86
86
|
Sacramento,-121.4944,38.581573,85
|
|
87
87
|
Saint Paul,-93.089958,44.953705,86
|
package/src/scss/main.scss
CHANGED
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
border: none;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
.link.link-replace {
|
|
107
107
|
display: block;
|
|
108
108
|
color: #005eaa;
|
|
109
109
|
background: unset;
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
display: flex;
|
|
126
126
|
align-items: center;
|
|
127
127
|
justify-content: space-between;
|
|
128
|
-
font-size: .9em;
|
|
128
|
+
font-size: 0.9em;
|
|
129
129
|
|
|
130
130
|
button {
|
|
131
131
|
padding: 0 4px;
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
li+li {
|
|
138
|
+
li + li {
|
|
139
139
|
border-top: #c7c7c7 1px solid;
|
|
140
140
|
}
|
|
141
141
|
}
|