@automattic/charts 1.9.0 → 1.10.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.
Files changed (39) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/index.cjs +5661 -5466
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.css +40 -28
  5. package/dist/index.d.cts +31 -7
  6. package/dist/index.d.ts +32 -8
  7. package/dist/index.js +1239 -1046
  8. package/dist/index.js.map +1 -1
  9. package/package.json +5 -5
  10. package/src/charts/conversion-funnel-chart/conversion-funnel-chart.module.scss +7 -7
  11. package/src/charts/geo-chart/geo-chart.tsx +148 -3
  12. package/src/charts/geo-chart/index.ts +1 -1
  13. package/src/charts/geo-chart/test/geo-chart.test.tsx +122 -2
  14. package/src/charts/geo-chart/types.ts +11 -0
  15. package/src/charts/heatmap-chart/heatmap-chart.module.scss +11 -11
  16. package/src/charts/heatmap-chart/heatmap-chart.tsx +37 -36
  17. package/src/charts/heatmap-chart/private/build-calendar-data.ts +17 -1
  18. package/src/charts/heatmap-chart/private/heatmap-context.ts +10 -0
  19. package/src/charts/heatmap-chart/private/heatmap-legend.tsx +3 -2
  20. package/src/charts/heatmap-chart/private/index.ts +2 -0
  21. package/src/charts/heatmap-chart/test/build-calendar-data.test.ts +23 -1
  22. package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +10 -3
  23. package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +15 -3
  24. package/src/charts/leaderboard-chart/leaderboard-chart.tsx +65 -37
  25. package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +46 -0
  26. package/src/charts/line-chart/line-chart.module.scss +2 -2
  27. package/src/charts/private/svg-empty-state/svg-empty-state.module.scss +1 -1
  28. package/src/charts/private/x-zoom.module.scss +2 -2
  29. package/src/components/trend-indicator/trend-indicator.module.scss +3 -3
  30. package/src/hooks/test/use-chart-margin.test.tsx +8 -5
  31. package/src/hooks/use-chart-margin.tsx +11 -1
  32. package/src/index.ts +1 -1
  33. package/src/providers/chart-context/global-charts-provider.tsx +7 -0
  34. package/src/providers/chart-context/test/chart-context.test.tsx +40 -0
  35. package/src/providers/chart-context/themes.ts +17 -14
  36. package/src/providers/chart-context/types.ts +3 -0
  37. package/src/types.ts +9 -6
  38. package/src/utils/color-utils.ts +28 -0
  39. package/src/utils/test/color-utils.test.ts +29 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,22 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.10.1] - 2026-07-13
9
+ ### Changed
10
+ - HeatmapChart: Fix the grid's ARIA structure, shrink to fit short containers instead of scrolling, hide the colliding partial first-month calendar label, and keep in-cell text legible on themed and dark backgrounds. [#50136]
11
+ - Reserve the y-axis tick label dx offset in the auto margin so the widest label no longer clips at the chart edge. [#50366]
12
+
13
+ ### Fixed
14
+ - Leaderboard Chart: Avoid fabricated deltas for rows without matching comparison data. [#50196]
15
+
16
+ ## [1.10.0] - 2026-07-09
17
+ ### Added
18
+ - Add GeoChart error reporting. [#50251]
19
+
20
+ ### Changed
21
+ - Update package dependencies. [#49272]
22
+ - Update WPDS design tokens to the @wordpress/theme 0.16/0.17 names and migrate the Storybook decorator to the public ThemeProvider export (see https://github.com/WordPress/gutenberg/blob/trunk/packages/theme/CHANGELOG.md#0160-2026-06-24 ). [#49272]
23
+
8
24
  ## [1.9.0] - 2026-07-06
9
25
  ### Added
10
26
  - Add HeatmapChart for matrix and calendar/contribution-style data, with a compact mode and a composition color-scale legend. [#50065]
@@ -904,6 +920,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
904
920
  - Fixed lints following ESLint rule changes for TS [#40584]
905
921
  - Fixing a bug in Chart storybook data. [#40640]
906
922
 
923
+ [1.10.1]: https://github.com/Automattic/charts/compare/v1.10.0...v1.10.1
924
+ [1.10.0]: https://github.com/Automattic/charts/compare/v1.9.0...v1.10.0
907
925
  [1.9.0]: https://github.com/Automattic/charts/compare/v1.8.1...v1.9.0
908
926
  [1.8.1]: https://github.com/Automattic/charts/compare/v1.8.0...v1.8.1
909
927
  [1.8.0]: https://github.com/Automattic/charts/compare/v1.7.0...v1.8.0