-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[charts-pro] Export ChartsWrapper
from './ChartsWrapper'
rather than './internals'
#18966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Deploy preview: https://deploy-preview-18966--material-ui-x.netlify.app/ Updated pages: Bundle size report
|
CodSpeed Performance ReportMerging #18966 will not alter performanceComparing Summary
Footnotes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 💯
import { | ||
ChartsWrapper as OriginalChartsWrapper, | ||
ChartsWrapperProps as OriginalChartsWrapperProps, | ||
} from '../ChartsWrapper'; | ||
/** | ||
* @deprecated Use `ChartsWrapper` from `@mui/x-charts/ChartsWrapper` instead. | ||
* This will be removed in the next major version. | ||
*/ | ||
export const ChartsWrapper = OriginalChartsWrapper; | ||
/** | ||
* @deprecated Use `ChartsWrapperProps` from `@mui/x-charts/ChartsWrapper` instead. | ||
* This will be removed in the next major version. | ||
*/ | ||
export type ChartsWrapperProps = OriginalChartsWrapperProps; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the internals
directory. Do we need to re-export the file? I was under the impression that content under internals
isn't guaranteed not to change within majors.
Still, if we want to keep it, it's probably better to add a task here.
ChartsWrapper
from packageChartsWrapper
from './ChartsWrapper'
rather than './internals'
I've noticed we use
ChartsWrapper
in some demos, though that was meant as an internal component. Eg: https://mui.com/x/react-charts/pie/#compositionDue to recent changes to it, it might be better if we properly export it so users can have the same functionality in their composition as our default charts, if they want it ofc