Export TooltipIndex and other types from public API, add ESLint rule to prevent internal imports#6676
Conversation
WalkthroughThis PR establishes a stable public API for Recharts by exporting previously internal types through the main entry point, adding ESLint enforcement rules to prevent direct imports from internal paths, and updating all documentation examples to use the public API instead of internal implementation paths. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Areas requiring extra attention:
Possibly related PRs
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (16)
🧰 Additional context used📓 Path-based instructions (4)**/*.{ts,tsx}📄 CodeRabbit inference engine (DEVELOPING.md)
Files:
**/*.{js,ts,tsx}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
src/**/*.{js,jsx,ts,tsx}📄 CodeRabbit inference engine (DEVELOPING.md)
Files:
src/**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (14)📓 Common learnings📚 Learning: 2025-11-23T13:30:10.395ZApplied to files:
📚 Learning: 2025-11-25T01:22:48.289ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-25T01:22:48.289ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-25T01:23:14.977ZApplied to files:
📚 Learning: 2025-11-25T01:22:59.729ZApplied to files:
📚 Learning: 2025-11-19T14:08:01.728ZApplied to files:
📚 Learning: 2025-11-25T01:23:08.250ZApplied to files:
📚 Learning: 2025-11-16T09:14:24.918ZApplied to files:
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6676 +/- ##
==========================================
+ Coverage 93.92% 93.93% +0.01%
==========================================
Files 502 502
Lines 41978 41978
Branches 4908 4909 +1
==========================================
+ Hits 39427 39432 +5
+ Misses 2546 2541 -5
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
We need to merge and deploy the exports first, otherwise we can't deploy the website. |
Bundle ReportBundle size has no change ✅ |
Rebased on latest main branch (commit 2ab4c23). Resolved merge conflict in CustomActiveShapePieChart.tsx and fixed 5 ScatterChart example files that were added in #6669. All imports now use the public API. Commit: 273d69c |
…imports, add ESLint rule Co-authored-by: PavelVanecek <1100170+PavelVanecek@users.noreply.github.com>
Co-authored-by: PavelVanecek <1100170+PavelVanecek@users.noreply.github.com>
20e7482 to
63b225d
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Rebase Complete and Ready for Merge
origin/main(commit 2ab4c23, 48 new commits)www/src/docs/exampleComponents/ScatterChart/BubbleChart.tsxwww/src/docs/exampleComponents/ScatterChart/JointLineScatterChart.tsxwww/src/docs/exampleComponents/ScatterChart/ScatterChartWithLabels.tsxwww/src/docs/exampleComponents/ScatterChart/SimpleScatterChart.tsxwww/src/docs/exampleComponents/ScatterChart/ThreeDimScatterChart.tsxTotal files updated with internal import fixes: 13 files
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Summary by CodeRabbit
New Features
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.