@cdc/waffle-chart 4.24.5 → 4.24.9-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/cdcwafflechart.js +4538 -4435
- package/package.json +6 -5
- package/src/CdcWaffleChart.tsx +6 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/waffle-chart",
|
|
3
|
-
"version": "4.24.
|
|
3
|
+
"version": "4.24.9-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",
|
|
@@ -11,8 +11,9 @@
|
|
|
11
11
|
"preview": "vite preview",
|
|
12
12
|
"graph": "nx graph",
|
|
13
13
|
"prepublishOnly": "lerna run --scope @cdc/waffle-chart build",
|
|
14
|
-
"test": "vitest
|
|
15
|
-
"test
|
|
14
|
+
"test": "vitest run --reporter verbose",
|
|
15
|
+
"test-watch": "vitest watch --reporter verbose",
|
|
16
|
+
"test-watch:ui": "vitest --ui"
|
|
16
17
|
},
|
|
17
18
|
"repository": {
|
|
18
19
|
"type": "git",
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
"license": "Apache-2.0",
|
|
27
28
|
"homepage": "https://github.com/CDCgov/cdc-open-viz#readme",
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@cdc/core": "^4.24.
|
|
30
|
+
"@cdc/core": "^4.24.9-1",
|
|
30
31
|
"@visx/group": "^3.0.0",
|
|
31
32
|
"@visx/scale": "^3.0.0",
|
|
32
33
|
"@visx/shape": "^3.0.0",
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"react": "^18.2.0",
|
|
42
43
|
"react-dom": "^18.2.0"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "4a77c2fa79c8fa6074da3b6dfee3d8e32f0b2586"
|
|
45
46
|
}
|
package/src/CdcWaffleChart.tsx
CHANGED
|
@@ -382,7 +382,7 @@ const CdcWaffleChart = ({ configUrl, config: configObj, isDashboard = false, isE
|
|
|
382
382
|
|
|
383
383
|
response.data = responseData
|
|
384
384
|
|
|
385
|
-
const processedConfig = { ...
|
|
385
|
+
const processedConfig = { ...coveUpdateWorker(response) }
|
|
386
386
|
updateConfig({ ...defaults, ...processedConfig })
|
|
387
387
|
dispatch({ type: 'SET_LOADING', payload: false })
|
|
388
388
|
}, [])
|
|
@@ -417,21 +417,12 @@ const CdcWaffleChart = ({ configUrl, config: configObj, isDashboard = false, isE
|
|
|
417
417
|
}
|
|
418
418
|
}, [config, container])
|
|
419
419
|
|
|
420
|
-
//
|
|
420
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
421
421
|
useEffect(() => {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
//Reload config if parent passes different config
|
|
427
|
-
if (configObj) {
|
|
428
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
429
|
-
useEffect(() => {
|
|
430
|
-
if (!configObj.dataUrl) {
|
|
431
|
-
updateConfig({ ...defaults, ...configObj })
|
|
432
|
-
}
|
|
433
|
-
}, [configObj.data])
|
|
434
|
-
}
|
|
422
|
+
if (!configObj.dataUrl) {
|
|
423
|
+
updateConfig({ ...defaults, ...configObj })
|
|
424
|
+
}
|
|
425
|
+
}, [configObj?.data])
|
|
435
426
|
|
|
436
427
|
let content = <Loading />
|
|
437
428
|
|