@automattic/charts 1.3.1 → 1.4.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 +15 -0
- package/dist/index.cjs +158 -209
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +0 -9
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +11 -10
- package/dist/index.d.ts +11 -10
- package/dist/index.js +125 -176
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/charts/area-chart/area-chart.tsx +124 -54
- package/src/charts/area-chart/test/area-chart.test.tsx +203 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/test/use-chart-margin.test.tsx +21 -0
- package/src/hooks/use-chart-margin.tsx +4 -0
- package/src/providers/chart-context/global-charts-provider.tsx +1 -18
- package/src/style.css +10 -0
- package/src/types.ts +10 -0
- package/tsup.config.ts +3 -2
- package/AGENTS.md +0 -78
- package/src/hooks/test/use-tooltip-portal-relocator.test.ts +0 -216
- package/src/hooks/use-tooltip-portal-relocator.module.scss +0 -7
- package/src/hooks/use-tooltip-portal-relocator.ts +0 -188
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,19 @@ 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.4.1] - 2026-05-19
|
|
9
|
+
### Changed
|
|
10
|
+
- Keep stacked area chart paths mounted on legend toggle so only the hidden series animates down and the y-axis stays fixed. [#48804]
|
|
11
|
+
|
|
12
|
+
## [1.4.0] - 2026-05-14
|
|
13
|
+
### Changed
|
|
14
|
+
- Charts: Expose a source-side `./style.css` alias so monorepo consumers can resolve the import without a prior build. [#48682]
|
|
15
|
+
- Charts: Expose tickValues on AxisOptions and nice on ScaleOptions so callers can force exact axis ticks. [#48722]
|
|
16
|
+
- Update package dependencies. [#48695] [#48696]
|
|
17
|
+
|
|
18
|
+
### Removed
|
|
19
|
+
- Charts: Remove the `useTooltipPortalRelocator` hook and the `portalContainer` prop on `GlobalChartsProvider`. The relocator (added in #47118 / 0.56.4) caused tooltip glyphs and the tooltip box to drift away from the chart line by exactly the page scroll offset on scrolled pages. [#48617]
|
|
20
|
+
|
|
8
21
|
## [1.3.1] - 2026-05-11
|
|
9
22
|
### Changed
|
|
10
23
|
- Update dependencies. [#43811]
|
|
@@ -820,6 +833,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
820
833
|
- Fixed lints following ESLint rule changes for TS [#40584]
|
|
821
834
|
- Fixing a bug in Chart storybook data. [#40640]
|
|
822
835
|
|
|
836
|
+
[1.4.1]: https://github.com/Automattic/charts/compare/v1.4.0...v1.4.1
|
|
837
|
+
[1.4.0]: https://github.com/Automattic/charts/compare/v1.3.1...v1.4.0
|
|
823
838
|
[1.3.1]: https://github.com/Automattic/charts/compare/v1.3.0...v1.3.1
|
|
824
839
|
[1.3.0]: https://github.com/Automattic/charts/compare/v1.2.1...v1.3.0
|
|
825
840
|
[1.2.1]: https://github.com/Automattic/charts/compare/v1.2.0...v1.2.1
|