@cdc/editor 4.24.12 → 4.25.2-25

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/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/contrib/libs/bootstrap/latest/css/bootstrap.min.css?_=39423">
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.24.12",
3
+ "version": "4.25.2-25",
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.24.12",
29
- "@cdc/core": "^4.24.12",
30
- "@cdc/dashboard": "^4.24.12",
31
- "@cdc/data-bite": "^4.24.12",
32
- "@cdc/map": "^4.24.12",
33
- "@cdc/markup-include": "^4.24.12",
34
- "@cdc/waffle-chart": "^4.24.12",
28
+ "@cdc/chart": "^4.25.2-25",
29
+ "@cdc/core": "^4.25.2-25",
30
+ "@cdc/dashboard": "^4.25.2-25",
31
+ "@cdc/data-bite": "^4.25.2-25",
32
+ "@cdc/map": "^4.25.2-25",
33
+ "@cdc/markup-include": "^4.25.2-25",
34
+ "@cdc/waffle-chart": "^4.25.2-25",
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": "347414f1da4b0e9bf2f22a7b59335deccf0b2d9c"
47
+ "gitHead": "f00bd8a0fc746def7cc23b91ef49a03a3ceac65e"
48
48
  }
@@ -90,8 +90,7 @@ const ChooseTab: React.FC = (): JSX.Element => {
90
90
  type: 'map'
91
91
  }
92
92
  newConfig['general'] = {
93
- geoType: visualizationType,
94
- type: 'map'
93
+ geoType: visualizationType
95
94
  }
96
95
  break
97
96
  }
@@ -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 '../../../chart/src/CdcChart' // TODO: Lazy load this
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,13 +41,13 @@ 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} setConfig={setTempConfig} />
44
+ <CdcChart isEditor={true} isDebug={isDebug} config={config} />
45
45
  </ErrorBoundary>
46
46
  )
47
47
  case 'dashboard':
48
48
  return (
49
49
  <ErrorBoundary component='CdcDashboard'>
50
- <MultiDashboardWrapper isEditor={true} isDebug={isDebug} config={config} />
50
+ <MultiDashboardWrapper isEditor={true} isDebug={isDebug} />
51
51
  </ErrorBoundary>
52
52
  )
53
53
  case 'data-bite':
@@ -68,7 +68,7 @@ const Footer = memo(({ previousPage, nextPage, canPreviousPage, canNextPage, pag
68
68
  <GrFormPrevious />
69
69
  </button>
70
70
  </li>
71
- <li className='mr-2'>
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
@@ -2,6 +2,7 @@ import React from 'react'
2
2
  import ReactDOM from 'react-dom/client'
3
3
 
4
4
  import CdcEditor from './CdcEditor'
5
+ import '@cdc/core/styles/cove-main.scss'
5
6
  import './coreStyles_editor.scss'
6
7
 
7
8
  // Allow URL query to preselect a tab in standalone mode
@@ -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
- Deleware,57,Home,https://www.cdc.gov/
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
@@ -103,7 +103,7 @@
103
103
  border: none;
104
104
  }
105
105
 
106
- .link.link-replace {
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
  }
@@ -213,7 +213,7 @@
213
213
  }
214
214
 
215
215
  section.introText {
216
- padding: 15px;
216
+ padding: 15px 0;
217
217
  }
218
218
 
219
219
  section.footnotes {