@automattic/charts 1.10.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.
- package/CHANGELOG.md +9 -0
- package/dist/index.cjs +5700 -5584
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +15 -3
- package/dist/index.d.cts +26 -12
- package/dist/index.d.ts +27 -13
- package/dist/index.js +1026 -912
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/charts/heatmap-chart/heatmap-chart.module.scss +4 -4
- package/src/charts/heatmap-chart/heatmap-chart.tsx +37 -36
- package/src/charts/heatmap-chart/private/build-calendar-data.ts +17 -1
- package/src/charts/heatmap-chart/private/heatmap-context.ts +10 -0
- package/src/charts/heatmap-chart/private/heatmap-legend.tsx +3 -2
- package/src/charts/heatmap-chart/private/index.ts +2 -0
- package/src/charts/heatmap-chart/test/build-calendar-data.test.ts +23 -1
- package/src/charts/heatmap-chart/test/heatmap-chart.test.tsx +10 -3
- package/src/charts/leaderboard-chart/leaderboard-chart.module.scss +12 -0
- package/src/charts/leaderboard-chart/leaderboard-chart.tsx +65 -37
- package/src/charts/leaderboard-chart/test/leaderboard-chart.test.tsx +46 -0
- package/src/hooks/test/use-chart-margin.test.tsx +8 -5
- package/src/hooks/use-chart-margin.tsx +11 -1
- package/src/providers/chart-context/global-charts-provider.tsx +7 -0
- package/src/providers/chart-context/test/chart-context.test.tsx +40 -0
- package/src/providers/chart-context/types.ts +3 -0
- package/src/types.ts +9 -6
- package/src/utils/color-utils.ts +28 -0
- package/src/utils/test/color-utils.test.ts +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ 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
|
+
|
|
8
16
|
## [1.10.0] - 2026-07-09
|
|
9
17
|
### Added
|
|
10
18
|
- Add GeoChart error reporting. [#50251]
|
|
@@ -912,6 +920,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
912
920
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
913
921
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
914
922
|
|
|
923
|
+
[1.10.1]: https://github.com/Automattic/charts/compare/v1.10.0...v1.10.1
|
|
915
924
|
[1.10.0]: https://github.com/Automattic/charts/compare/v1.9.0...v1.10.0
|
|
916
925
|
[1.9.0]: https://github.com/Automattic/charts/compare/v1.8.1...v1.9.0
|
|
917
926
|
[1.8.1]: https://github.com/Automattic/charts/compare/v1.8.0...v1.8.1
|