@cdc/waffle-chart 4.24.12-2 → 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/index.html CHANGED
@@ -21,8 +21,7 @@
21
21
  margin-top: 3rem;
22
22
  }
23
23
  </style>
24
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/contrib/libs/bootstrap/latest/css/bootstrap.min.css?_=39423" />
25
- <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/4.0/assets/css/app.min.css?_=39423" />
24
+ <link rel="stylesheet prefetch" href="https://www.cdc.gov/TemplatePackage/5.0/css/app.min.css?_=71669" />
26
25
  </head>
27
26
  <body>
28
27
  <!-- Original -->
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/waffle-chart",
3
- "version": "4.24.12-2",
3
+ "version": "4.25.1",
4
4
  "description": "React component for displaying a single piece of data in a card module",
5
5
  "moduleName": "CdcWaffleChart",
6
6
  "main": "dist/cdcwafflechart",
@@ -27,7 +27,7 @@
27
27
  "license": "Apache-2.0",
28
28
  "homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
29
29
  "dependencies": {
30
- "@cdc/core": "^4.24.12-2",
30
+ "@cdc/core": "^4.25.1",
31
31
  "@visx/group": "^3.0.0",
32
32
  "@visx/scale": "^3.0.0",
33
33
  "@visx/shape": "^3.0.0",
@@ -42,5 +42,5 @@
42
42
  "react": "^18.2.0",
43
43
  "react-dom": "^18.2.0"
44
44
  },
45
- "gitHead": "a60edf1148396309eb473ac9f65426ee40797ddf"
45
+ "gitHead": "c32d727f516fe3525178e3a6480abbe70b2a20d6"
46
46
  }
@@ -507,7 +507,7 @@ const CdcWaffleChart = ({
507
507
 
508
508
  // eslint-disable-next-line react-hooks/rules-of-hooks
509
509
  useEffect(() => {
510
- if (!configObj.dataUrl) {
510
+ if (!configObj?.dataUrl) {
511
511
  updateConfig({ ...defaults, ...configObj })
512
512
  }
513
513
  }, [configObj?.data])
package/src/index.jsx CHANGED
@@ -2,6 +2,8 @@ import React from 'react'
2
2
  import ReactDOM from 'react-dom/client'
3
3
 
4
4
  import CdcWaffleChart from './CdcWaffleChart'
5
+
6
+ import '@cdc/core/styles/cove-main.scss'
5
7
  import './coreStyles_wafflechart.scss'
6
8
 
7
9
  let isEditor = window.location.href.includes('editor=true')
@@ -1,5 +1,6 @@
1
1
  import { ComponentStyles } from '@cdc/core/types/ComponentStyles'
2
2
  import { ComponentThemes } from '@cdc/core/types/ComponentThemes'
3
+ import { Version } from '@cdc/core/types/Version'
3
4
 
4
5
  export type Config = {
5
6
  // supporting text in the box
@@ -37,4 +38,5 @@ export type Config = {
37
38
  visual: ComponentStyles
38
39
  visualizationSubType: 'linear' | ''
39
40
  visualizationType: 'Gauge' | 'Waffle'
41
+ version: Version
40
42
  }