@mui/x-charts 9.14.0 → 9.16.0

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 (345) hide show
  1. package/BarChart/AnimatedBarElement.mjs +2 -2
  2. package/BarChart/BarChart.mjs +1 -1
  3. package/BarChart/BarElement.mjs +2 -2
  4. package/BarChart/BarLabel/BarLabel.mjs +2 -2
  5. package/BarChart/BarLabel/BarLabelItem.mjs +2 -2
  6. package/BarChart/BarLabel/BarLabelPlot.mjs +2 -2
  7. package/BarChart/BarPlot.mjs +2 -2
  8. package/BarChart/BatchBarPlot/BarGroup.mjs +2 -2
  9. package/BarChart/FocusedBar.mjs +1 -1
  10. package/BarChart/IndividualBarPlot.mjs +2 -2
  11. package/BarChart/checkBarChartScaleErrors.js +1 -1
  12. package/BarChart/checkBarChartScaleErrors.mjs +2 -2
  13. package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.mjs +1 -1
  14. package/BarChart/seriesConfig/bar/seriesProcessor.mjs +1 -1
  15. package/BarChart/seriesConfig/bar/tooltipPosition.js +1 -1
  16. package/BarChart/seriesConfig/bar/tooltipPosition.mjs +1 -1
  17. package/BarChart/useBarChartProps.mjs +2 -2
  18. package/BarChart/useBarPlotData.mjs +1 -1
  19. package/CHANGELOG.md +338 -0
  20. package/ChartsAxisHighlight/ChartsAxisHighlightPath.mjs +1 -1
  21. package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +1 -1
  22. package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +1 -1
  23. package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +1 -1
  24. package/ChartsClipPath/ChartsClipPath.mjs +1 -1
  25. package/ChartsContainer/ChartsContainer.js +1 -1
  26. package/ChartsContainer/ChartsContainer.mjs +2 -2
  27. package/ChartsContainer/useChartsContainerProps.mjs +2 -2
  28. package/ChartsDataProvider/ChartsDataProvider.mjs +1 -1
  29. package/ChartsDataProvider/useChartsDataProviderProps.mjs +2 -2
  30. package/ChartsGrid/ChartsGrid.mjs +2 -2
  31. package/ChartsLabel/ChartsLabel.mjs +2 -2
  32. package/ChartsLabel/ChartsLabelGradient.mjs +2 -2
  33. package/ChartsLabel/ChartsLabelMark.mjs +2 -2
  34. package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
  35. package/ChartsLayerContainer/ChartsLayerContainer.mjs +4 -4
  36. package/ChartsLegend/ChartsLegend.mjs +2 -2
  37. package/ChartsLegend/ContinuousColorLegend.mjs +2 -2
  38. package/ChartsLegend/PiecewiseColorLegend.js +1 -3
  39. package/ChartsLegend/PiecewiseColorLegend.mjs +3 -5
  40. package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +2 -2
  41. package/ChartsOverlay/ChartsLoadingOverlay.mjs +1 -1
  42. package/ChartsOverlay/ChartsNoDataOverlay.mjs +1 -1
  43. package/ChartsOverlay/ChartsOverlay.js +4 -2
  44. package/ChartsOverlay/ChartsOverlay.mjs +5 -3
  45. package/ChartsOverlay/common.mjs +1 -1
  46. package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +1 -1
  47. package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
  48. package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs +2 -2
  49. package/ChartsRadialGrid/ChartsRadialGrid.mjs +2 -2
  50. package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +1 -1
  51. package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
  52. package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
  53. package/ChartsReferenceLine/ChartsXReferenceLine.mjs +3 -3
  54. package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
  55. package/ChartsReferenceLine/ChartsYReferenceLine.mjs +3 -3
  56. package/ChartsReferenceLine/common.mjs +1 -1
  57. package/ChartsRotationAxis/ChartsRotationAxis.mjs +1 -1
  58. package/ChartsSurface/ChartsSurface.mjs +2 -2
  59. package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
  60. package/ChartsText/ChartsText.mjs +2 -2
  61. package/ChartsTooltip/ChartsTooltip.js +3 -3
  62. package/ChartsTooltip/ChartsTooltip.mjs +5 -5
  63. package/ChartsTooltip/ChartsTooltipContainer.js +5 -5
  64. package/ChartsTooltip/ChartsTooltipContainer.mjs +8 -8
  65. package/ChartsWrapper/ChartsWrapper.mjs +2 -2
  66. package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +1 -1
  67. package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
  68. package/ChartsXAxis/ChartsXAxis.mjs +1 -1
  69. package/ChartsXAxis/ChartsXAxisImpl.js +2 -1
  70. package/ChartsXAxis/ChartsXAxisImpl.mjs +4 -3
  71. package/ChartsXAxis/useAxisTicksProps.d.mts +17 -17
  72. package/ChartsXAxis/useAxisTicksProps.d.ts +17 -17
  73. package/ChartsXAxis/useAxisTicksProps.js +2 -1
  74. package/ChartsXAxis/useAxisTicksProps.mjs +4 -3
  75. package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +1 -1
  76. package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
  77. package/ChartsYAxis/ChartsYAxis.mjs +1 -1
  78. package/ChartsYAxis/ChartsYAxisImpl.js +2 -1
  79. package/ChartsYAxis/ChartsYAxisImpl.mjs +4 -3
  80. package/ChartsYAxis/useAxisTicksProps.d.mts +17 -17
  81. package/ChartsYAxis/useAxisTicksProps.d.ts +17 -17
  82. package/ChartsYAxis/useAxisTicksProps.js +2 -1
  83. package/ChartsYAxis/useAxisTicksProps.mjs +4 -3
  84. package/Gauge/Gauge.mjs +2 -2
  85. package/Gauge/GaugeContainer.mjs +2 -2
  86. package/Gauge/GaugeReferenceArc.mjs +2 -2
  87. package/Gauge/GaugeValueArc.mjs +2 -2
  88. package/Gauge/GaugeValueText.mjs +2 -2
  89. package/LineChart/AnimatedArea.mjs +2 -2
  90. package/LineChart/AnimatedLine.mjs +2 -2
  91. package/LineChart/AreaElement.mjs +2 -2
  92. package/LineChart/AreaPlot.mjs +2 -2
  93. package/LineChart/CircleMarkElement.mjs +2 -2
  94. package/LineChart/LineChart.mjs +1 -1
  95. package/LineChart/LineElement.mjs +2 -2
  96. package/LineChart/LineHighlightElement.d.mts +3 -3
  97. package/LineChart/LineHighlightElement.d.ts +3 -3
  98. package/LineChart/LineHighlightElement.js +2 -2
  99. package/LineChart/LineHighlightElement.mjs +4 -4
  100. package/LineChart/LineHighlightPlot.mjs +2 -2
  101. package/LineChart/LinePlot.mjs +2 -2
  102. package/LineChart/MarkElement.mjs +2 -2
  103. package/LineChart/MarkPlot.mjs +2 -2
  104. package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  105. package/LineChart/seriesConfig/tooltipPosition.js +1 -1
  106. package/LineChart/seriesConfig/tooltipPosition.mjs +1 -1
  107. package/LineChart/useLineChartProps.mjs +2 -2
  108. package/LineChart/useLinePlotData.js +1 -1
  109. package/LineChart/useLinePlotData.mjs +2 -2
  110. package/PieChart/FocusedPieArc.mjs +2 -2
  111. package/PieChart/PieArc.mjs +2 -2
  112. package/PieChart/PieArcLabel.mjs +2 -2
  113. package/PieChart/PieArcLabelPlot.mjs +2 -2
  114. package/PieChart/PieArcPlot.mjs +2 -2
  115. package/PieChart/PieChart.mjs +2 -2
  116. package/PieChart/dataTransform/getModifiedArcProperties.mjs +1 -1
  117. package/PieChart/dataTransform/useTransformData.mjs +1 -1
  118. package/PieChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  119. package/PieChart/seriesConfig/seriesProcessor.mjs +1 -1
  120. package/PieChart/seriesConfig/tooltip.mjs +1 -1
  121. package/PieChart/seriesConfig/tooltipPosition.js +1 -1
  122. package/PieChart/seriesConfig/tooltipPosition.mjs +1 -1
  123. package/RadarChart/FocusedRadarMark.mjs +1 -1
  124. package/RadarChart/RadarAxis/RadarAxis.mjs +1 -1
  125. package/RadarChart/RadarAxis/useRadarAxis.js +1 -1
  126. package/RadarChart/RadarAxis/useRadarAxis.mjs +1 -1
  127. package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +1 -1
  128. package/RadarChart/RadarChart.mjs +1 -1
  129. package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
  130. package/RadarChart/RadarMetricLabels/RadarMetricLabels.js +2 -1
  131. package/RadarChart/RadarMetricLabels/RadarMetricLabels.mjs +3 -2
  132. package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +2 -2
  133. package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +2 -2
  134. package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +1 -1
  135. package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +1 -1
  136. package/RadarChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  137. package/RadarChart/seriesConfig/seriesProcessor.mjs +1 -1
  138. package/RadarChart/seriesConfig/tooltipPosition.js +1 -1
  139. package/RadarChart/seriesConfig/tooltipPosition.mjs +1 -1
  140. package/RadarChart/useRadarChartProps.mjs +1 -1
  141. package/ScatterChart/FocusedScatterMark.mjs +2 -2
  142. package/ScatterChart/HighlightedScatterMark.mjs +2 -2
  143. package/ScatterChart/Scatter.mjs +2 -2
  144. package/ScatterChart/ScatterChart.mjs +1 -1
  145. package/ScatterChart/ScatterMarker.mjs +2 -2
  146. package/ScatterChart/ScatterPlot.mjs +1 -1
  147. package/ScatterChart/async/ScatterAsyncBatch.mjs +2 -2
  148. package/ScatterChart/async/scatterRenderData.selectors.js +1 -1
  149. package/ScatterChart/async/scatterRenderData.selectors.mjs +1 -1
  150. package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
  151. package/ScatterChart/seriesConfig/seriesProcessor.mjs +1 -1
  152. package/ScatterChart/seriesConfig/tooltipPosition.js +1 -1
  153. package/ScatterChart/seriesConfig/tooltipPosition.mjs +1 -1
  154. package/ScatterChart/useScatterChartProps.mjs +2 -2
  155. package/SparkLineChart/SparkLineChart.js +21 -21
  156. package/SparkLineChart/SparkLineChart.mjs +23 -23
  157. package/Toolbar/Toolbar.mjs +2 -2
  158. package/Toolbar/ToolbarButton.mjs +2 -2
  159. package/context/ChartsProvider/ChartsProvider.types.d.mts +1 -1
  160. package/context/ChartsProvider/ChartsProvider.types.d.ts +1 -1
  161. package/context/ChartsSlotsContext.mjs +1 -1
  162. package/hooks/animation/useAnimate.mjs +1 -1
  163. package/hooks/useAxisCoordinates.mjs +1 -1
  164. package/hooks/useAxisTicks.js +1 -1
  165. package/hooks/useAxisTicks.mjs +2 -2
  166. package/hooks/useIsItemFocusedGetter.js +1 -1
  167. package/hooks/useIsItemFocusedGetter.mjs +1 -1
  168. package/index.js +1 -1
  169. package/index.mjs +1 -1
  170. package/internals/Flatbush.js +10 -0
  171. package/internals/Flatbush.mjs +10 -0
  172. package/internals/commonNextFocusItem.d.mts +46 -0
  173. package/internals/commonNextFocusItem.d.ts +46 -0
  174. package/internals/commonNextFocusItem.js +241 -0
  175. package/internals/commonNextFocusItem.mjs +235 -0
  176. package/internals/components/AxisSharedComponents.mjs +1 -1
  177. package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.mjs +1 -1
  178. package/internals/consumeSlots.mjs +2 -2
  179. package/internals/consumeThemeProps.js +1 -2
  180. package/internals/consumeThemeProps.mjs +1 -1
  181. package/internals/createCommonKeyboardFocusHandler.js +16 -0
  182. package/internals/createCommonKeyboardFocusHandler.mjs +17 -1
  183. package/internals/defaultizeMargin.mjs +1 -1
  184. package/internals/geometry.js +1 -1
  185. package/internals/geometry.mjs +1 -1
  186. package/internals/getGroupingConfig.mjs +1 -1
  187. package/internals/getInlineTypographyStyle.d.mts +9 -0
  188. package/internals/getInlineTypographyStyle.d.ts +9 -0
  189. package/internals/getInlineTypographyStyle.js +22 -0
  190. package/internals/getInlineTypographyStyle.mjs +16 -0
  191. package/internals/getLineLikeTooltip.mjs +1 -1
  192. package/internals/getWordsByLines.mjs +1 -1
  193. package/internals/material/index.mjs +1 -1
  194. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.mjs +1 -1
  195. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
  196. package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.mjs +1 -1
  197. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +1 -1
  198. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
  199. package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.mjs +1 -1
  200. package/internals/plugins/corePlugins/useChartId/useChartId.mjs +1 -1
  201. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
  202. package/internals/plugins/corePlugins/useChartId/useChartId.selectors.mjs +1 -1
  203. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.mjs +1 -1
  204. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -1
  205. package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -1
  206. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +1 -1
  207. package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +1 -1
  208. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.mjs +1 -1
  209. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +1 -1
  210. package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs +1 -1
  211. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.mjs +1 -1
  212. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +1 -1
  213. package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.mjs +1 -1
  214. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +1 -1
  215. package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +1 -1
  216. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.js +2 -1
  217. package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.mjs +2 -1
  218. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +1 -1
  219. package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +1 -1
  220. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.js +5 -3
  221. package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.mjs +5 -3
  222. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +1 -1
  223. package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +1 -1
  224. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +1 -1
  225. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +1 -1
  226. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +1 -1
  227. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +1 -1
  228. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +1 -1
  229. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +1 -1
  230. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +1 -1
  231. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +1 -1
  232. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +3 -3
  233. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +4 -4
  234. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +1 -1
  235. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +1 -1
  236. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +1 -1
  237. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.mjs +1 -1
  238. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +10 -10
  239. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +10 -10
  240. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
  241. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +2 -2
  242. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +10 -10
  243. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +10 -10
  244. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +1 -1
  245. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs +2 -2
  246. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +1 -1
  247. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.mjs +1 -1
  248. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +1 -1
  249. package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +1 -1
  250. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +1 -1
  251. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.js +1 -1
  252. package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.mjs +1 -1
  253. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +1 -1
  254. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +2 -2
  255. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +1 -1
  256. package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +1 -1
  257. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +1 -1
  258. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.mjs +2 -2
  259. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +1 -1
  260. package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.mjs +1 -1
  261. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +2 -2
  262. package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.mjs +2 -2
  263. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -4
  264. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +9 -5
  265. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +2 -2
  266. package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +2 -2
  267. package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +1 -1
  268. package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.mjs +1 -1
  269. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
  270. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +3 -3
  271. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +1 -1
  272. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs +1 -1
  273. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +3 -3
  274. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
  275. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +3 -3
  276. package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +3 -3
  277. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +1 -1
  278. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.mjs +2 -2
  279. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +1 -1
  280. package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +1 -1
  281. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.mjs +1 -1
  282. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +1 -1
  283. package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.mjs +1 -1
  284. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +1 -1
  285. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +1 -1
  286. package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.mjs +1 -1
  287. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +1 -1
  288. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +1 -1
  289. package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +1 -1
  290. package/internals/plugins/models/plugin.d.mts +1 -1
  291. package/internals/plugins/models/plugin.d.ts +1 -1
  292. package/internals/plugins/utils/useLazySelectorEffect.d.mts +1 -1
  293. package/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
  294. package/internals/processLineLikeSeries.mjs +1 -1
  295. package/internals/seriesHasData.js +2 -1
  296. package/internals/seriesHasData.mjs +2 -1
  297. package/internals/seriesSelectorOfType.js +2 -2
  298. package/internals/seriesSelectorOfType.mjs +2 -2
  299. package/internals/shallowEqual.js +1 -3
  300. package/internals/shallowEqual.mjs +1 -3
  301. package/internals/store/extractPluginParamsFromProps.mjs +1 -1
  302. package/internals/store/useCharts.d.mts +1 -1
  303. package/internals/store/useCharts.d.ts +1 -1
  304. package/internals/store/useCharts.js +1 -1
  305. package/internals/store/useCharts.mjs +1 -1
  306. package/internals/store/useStore.d.mts +1 -1
  307. package/internals/store/useStore.d.ts +1 -1
  308. package/internals/ts-generic.d.mts +1 -1
  309. package/internals/ts-generic.d.ts +1 -1
  310. package/locales/elGR.d.mts +2 -1
  311. package/locales/elGR.d.ts +2 -1
  312. package/locales/elGR.js +2 -0
  313. package/locales/elGR.mjs +2 -0
  314. package/locales/enUS.d.mts +2 -1
  315. package/locales/enUS.d.ts +2 -1
  316. package/locales/enUS.js +1 -0
  317. package/locales/enUS.mjs +1 -0
  318. package/locales/frFR.d.mts +2 -1
  319. package/locales/frFR.d.ts +2 -1
  320. package/locales/frFR.js +1 -0
  321. package/locales/frFR.mjs +1 -0
  322. package/locales/nbNO.d.mts +2 -1
  323. package/locales/nbNO.d.ts +2 -1
  324. package/locales/nbNO.js +2 -0
  325. package/locales/nbNO.mjs +2 -0
  326. package/locales/ptBR.d.mts +2 -1
  327. package/locales/ptBR.d.ts +2 -1
  328. package/locales/ptBR.js +2 -0
  329. package/locales/ptBR.mjs +2 -0
  330. package/locales/ptPT.d.mts +2 -1
  331. package/locales/ptPT.d.ts +2 -1
  332. package/locales/ptPT.js +2 -0
  333. package/locales/ptPT.mjs +2 -0
  334. package/locales/svSE.d.mts +2 -1
  335. package/locales/svSE.d.ts +2 -1
  336. package/locales/svSE.js +1 -0
  337. package/locales/svSE.mjs +1 -0
  338. package/locales/utils/chartsLocaleTextApi.d.mts +5 -1
  339. package/locales/utils/chartsLocaleTextApi.d.ts +5 -1
  340. package/locales/utils/getChartsLocalization.d.mts +2 -1
  341. package/locales/utils/getChartsLocalization.d.ts +2 -1
  342. package/locales/utils/getChartsLocalization.mjs +1 -1
  343. package/package.json +9 -11
  344. package/tests/web-components.js +1 -0
  345. package/tests/web-components.mjs +1 -0
@@ -22,7 +22,7 @@ const useChartItemClick = ({
22
22
  }
23
23
  return instance.registerItemActivationHandler({}, (event, item) => {
24
24
  const seriesTypeConfig = store.state.seriesConfig.config[item.type];
25
- // @ts-ignore The type inference for store.state does not support generic yet
25
+ // @ts-expect-error The series-specific handler expects a narrowed store state and item type.
26
26
  const itemWithData = seriesTypeConfig?.getItemWithData?.(store.state, item);
27
27
 
28
28
  // The callback only describes the pointer event unless the user augments the types.
@@ -41,7 +41,7 @@ const useChartItemClick = ({
41
41
  }
42
42
  let item = undefined;
43
43
  for (const seriesType of Object.keys(store.state.seriesConfig.config)) {
44
- // @ts-ignore The type inference for store.state does not support generic yet
44
+ // @ts-expect-error The series handler requires its own plugin state, but the store type keeps the plugin union.
45
45
  item = store.state.seriesConfig.config[seriesType].getItemAtPosition?.(store.state, {
46
46
  x: svgPoint.x,
47
47
  y: svgPoint.y
@@ -16,7 +16,7 @@ export const useChartItemClick = ({
16
16
  }
17
17
  return instance.registerItemActivationHandler({}, (event, item) => {
18
18
  const seriesTypeConfig = store.state.seriesConfig.config[item.type];
19
- // @ts-ignore The type inference for store.state does not support generic yet
19
+ // @ts-expect-error The series-specific handler expects a narrowed store state and item type.
20
20
  const itemWithData = seriesTypeConfig?.getItemWithData?.(store.state, item);
21
21
 
22
22
  // The callback only describes the pointer event unless the user augments the types.
@@ -35,7 +35,7 @@ export const useChartItemClick = ({
35
35
  }
36
36
  let item = undefined;
37
37
  for (const seriesType of Object.keys(store.state.seriesConfig.config)) {
38
- // @ts-ignore The type inference for store.state does not support generic yet
38
+ // @ts-expect-error The series handler requires its own plugin state, but the store type keeps the plugin union.
39
39
  item = store.state.seriesConfig.config[seriesType].getItemAtPosition?.(store.state, {
40
40
  x: svgPoint.x,
41
41
  y: svgPoint.y
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
11
11
  var React = _interopRequireWildcard(require("react"));
12
12
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
13
13
  var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
14
- var _fastObjectShallowCompare = require("@mui/x-internals/fastObjectShallowCompare");
14
+ var _fastObjectShallowCompare = require("@base-ui/utils/fastObjectShallowCompare");
15
15
  var _useChartSeries = require("../../corePlugins/useChartSeries/useChartSeries.selectors");
16
16
  var _useChartSeriesConfig = require("../../corePlugins/useChartSeriesConfig");
17
17
  var _cleanIdentifier = require("../../corePlugins/useChartSeriesConfig/utils/cleanIdentifier");
@@ -276,9 +276,10 @@ const useChartKeyboardNavigation = ({
276
276
  handler(event, focusedItem);
277
277
  }
278
278
  function keyboardHandler(event) {
279
- // Item navigation only uses unmodified keys.
279
+ // Item navigation only uses unmodified keys, except `ControlOrMeta` + `Home`/`End`.
280
280
  // Modified ones are left to the browser, and to chart interactions such as keyboard zoom and pan.
281
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) {
281
+ const isCtrlHomeEnd = (event.ctrlKey || event.metaKey) && (event.key === 'Home' || event.key === 'End');
282
+ if (event.altKey || event.shiftKey || (event.ctrlKey || event.metaKey) && !isCtrlHomeEnd) {
282
283
  return;
283
284
  }
284
285
  let newFocusedItem = store.state.keyboardNavigation.item;
@@ -294,6 +295,10 @@ const useChartKeyboardNavigation = ({
294
295
  if (!calculateFocusedItem) {
295
296
  return;
296
297
  }
298
+
299
+ // The chart handles this key, so it should never also scroll the page, even when the focus
300
+ // does not move because it already is at a boundary.
301
+ event.preventDefault();
297
302
  newFocusedItem = calculateFocusedItem(newFocusedItem, store.state);
298
303
  const keyboardNavigation = store.state.keyboardNavigation;
299
304
  // The item does not move at the edges of a series that does not cycle, but the key was still
@@ -301,7 +306,6 @@ const useChartKeyboardNavigation = ({
301
306
  if (newFocusedItem === keyboardNavigation.item && keyboardNavigation.isFocusVisible) {
302
307
  return;
303
308
  }
304
- event.preventDefault();
305
309
  updateFocus(newFocusedItem, true);
306
310
  }
307
311
  element.addEventListener('keydown', activationHandler);
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
6
6
  import useEventCallback from '@mui/utils/useEventCallback';
7
- import { fastObjectShallowCompare } from '@mui/x-internals/fastObjectShallowCompare';
7
+ import { fastObjectShallowCompare } from '@base-ui/utils/fastObjectShallowCompare';
8
8
  import { selectorChartDefaultizedSeries } from "../../corePlugins/useChartSeries/useChartSeries.selectors.mjs";
9
9
  import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
10
10
  import { cleanIdentifier } from "../../corePlugins/useChartSeriesConfig/utils/cleanIdentifier.mjs";
@@ -270,9 +270,10 @@ export const useChartKeyboardNavigation = ({
270
270
  handler(event, focusedItem);
271
271
  }
272
272
  function keyboardHandler(event) {
273
- // Item navigation only uses unmodified keys.
273
+ // Item navigation only uses unmodified keys, except `ControlOrMeta` + `Home`/`End`.
274
274
  // Modified ones are left to the browser, and to chart interactions such as keyboard zoom and pan.
275
- if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) {
275
+ const isCtrlHomeEnd = (event.ctrlKey || event.metaKey) && (event.key === 'Home' || event.key === 'End');
276
+ if (event.altKey || event.shiftKey || (event.ctrlKey || event.metaKey) && !isCtrlHomeEnd) {
276
277
  return;
277
278
  }
278
279
  let newFocusedItem = store.state.keyboardNavigation.item;
@@ -288,6 +289,10 @@ export const useChartKeyboardNavigation = ({
288
289
  if (!calculateFocusedItem) {
289
290
  return;
290
291
  }
292
+
293
+ // The chart handles this key, so it should never also scroll the page, even when the focus
294
+ // does not move because it already is at a boundary.
295
+ event.preventDefault();
291
296
  newFocusedItem = calculateFocusedItem(newFocusedItem, store.state);
292
297
  const keyboardNavigation = store.state.keyboardNavigation;
293
298
  // The item does not move at the edges of a series that does not cycle, but the key was still
@@ -295,7 +300,6 @@ export const useChartKeyboardNavigation = ({
295
300
  if (newFocusedItem === keyboardNavigation.item && keyboardNavigation.isFocusVisible) {
296
301
  return;
297
302
  }
298
- event.preventDefault();
299
303
  updateFocus(newFocusedItem, true);
300
304
  }
301
305
  element.addEventListener('keydown', activationHandler);
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorChartsZoomAnnouncement = exports.selectorChartsKeyboardYAxisIndex = exports.selectorChartsKeyboardXAxisIndex = exports.selectorChartsKeyboardItem = exports.selectorChartsItemIsFocused = exports.selectorChartsIsKeyboardNavigationEnabled = exports.selectorChartsIsKeyboardActivationEnabled = exports.selectorChartsIsFocusVisible = exports.selectorChartsHasFocusedItem = exports.selectorChartsFocusedOrToFocusedItem = exports.selectorChartsFocusedItem = void 0;
7
- var _store = require("@mui/x-internals/store");
8
- var _fastObjectShallowCompare = require("@mui/x-internals/fastObjectShallowCompare");
7
+ var _store = require("@base-ui/utils/store");
8
+ var _fastObjectShallowCompare = require("@base-ui/utils/fastObjectShallowCompare");
9
9
  var _useChartSeries = require("../../corePlugins/useChartSeries");
10
10
  var _useChartCartesianAxisRendering = require("../useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
11
11
  const selectKeyboardNavigation = state => state.keyboardNavigation;
@@ -1,5 +1,5 @@
1
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
2
- import { fastObjectShallowCompare } from '@mui/x-internals/fastObjectShallowCompare';
1
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
2
+ import { fastObjectShallowCompare } from '@base-ui/utils/fastObjectShallowCompare';
3
3
  import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
4
4
  import { selectorChartXAxis, selectorChartYAxis } from "../useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
5
5
  const selectKeyboardNavigation = state => state.keyboardNavigation;
@@ -1,4 +1,4 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { isBandScaleConfig, isPointScaleConfig, isContinuousScaleConfig } from "../../../../models/axis.mjs";
3
3
  import { getColorScale, getOrdinalColorScale } from "../../../colorScale.mjs";
4
4
  import { getDefaultTickNumber, getTickNumber } from "../../../ticks.mjs";
@@ -1,5 +1,5 @@
1
1
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
3
  import { DEFAULT_RADIUS_AXIS_KEY, DEFAULT_ROTATION_AXIS_KEY } from "../../../../constants/index.mjs";
4
4
  export function defaultizeAxis(inAxis, dataset, axisName) {
5
5
  const DEFAULT_AXIS_KEY = axisName === 'rotation' ? DEFAULT_ROTATION_AXIS_KEY : DEFAULT_RADIUS_AXIS_KEY;
@@ -39,7 +39,7 @@ const useChartPolarAxis = ({
39
39
  const ids = [...(rotationAxis ?? []), ...(radiusAxis ?? [])].filter(axis => axis.id).map(axis => axis.id);
40
40
  const duplicates = new Set(ids.filter((id, index) => ids.indexOf(id) !== index));
41
41
  if (duplicates.size > 0) {
42
- (0, _warning.warnOnce)([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
42
+ (0, _warning.errorOnce)([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'));
43
43
  }
44
44
  }
45
45
  const drawingArea = store.use(_useChartDimensions.selectorChartDrawingArea);
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
- import { warnOnce } from '@mui/x-internals/warning';
5
+ import { errorOnce } from '@mui/x-internals/warning';
6
6
  import useEventCallback from '@mui/utils/useEventCallback';
7
7
  import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/useChartDimensions.selectors.mjs";
8
8
  import { defaultizeAxis } from "./defaultizeAxis.mjs";
@@ -32,7 +32,7 @@ export const useChartPolarAxis = ({
32
32
  const ids = [...(rotationAxis ?? []), ...(radiusAxis ?? [])].filter(axis => axis.id).map(axis => axis.id);
33
33
  const duplicates = new Set(ids.filter((id, index) => ids.indexOf(id) !== index));
34
34
  if (duplicates.size > 0) {
35
- warnOnce([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'), 'error');
35
+ errorOnce([`MUI X Charts: The following axis ids are duplicated: ${Array.from(duplicates).join(', ')}.`, `Please make sure that each axis has a unique id.`].join('\n'));
36
36
  }
37
37
  }
38
38
  const drawingArea = store.use(selectorChartDrawingArea);
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.getDrawingAreaCenter = getDrawingAreaCenter;
7
7
  exports.selectorChartRotationAxis = exports.selectorChartRawRotationAxis = exports.selectorChartRawRadiusAxis = exports.selectorChartRadiusAxis = exports.selectorChartPolarCenter = exports.selectorChartPolarAxisState = void 0;
8
- var _store = require("@mui/x-internals/store");
8
+ var _store = require("@base-ui/utils/store");
9
9
  var _useChartDimensions = require("../../corePlugins/useChartDimensions");
10
10
  var _useChartSeries = require("../../corePlugins/useChartSeries");
11
11
  var _computeAxisValue = require("./computeAxisValue");
@@ -1,4 +1,4 @@
1
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/index.mjs";
3
3
  import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
4
4
  import { computeAxisValue } from "./computeAxisValue.mjs";
@@ -1,10 +1,10 @@
1
- import type { AxisItemIdentifier } from "../../../../models/axis.mjs";
1
+ import type { AxisId, AxisItemIdentifier } from "../../../../models/axis.mjs";
2
2
  export declare const selectorChartsInteractionRotationAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
3
3
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
4
4
  }) => number | null;
5
5
  export declare const selectorChartsInteractionRotationAxisIndexes: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
6
6
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
7
- }) => number[] | null;
7
+ }, ids: AxisId[] | undefined) => number[] | null;
8
8
  export declare const selectorChartsInteractionRotationAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.mjs").UseChartPolarAxisState> & {
9
9
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
10
10
  }) => any;
@@ -28,7 +28,7 @@ export declare const selectorChartsInteractionRadiusAxisIndex: (args_0: import("
28
28
  }) => number | null;
29
29
  export declare const selectorChartsInteractionRadiusAxisIndexes: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.mjs").UseChartInteractionState> & {
30
30
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
31
- }) => number[] | null;
31
+ }, ids: AxisId[] | undefined) => number[] | null;
32
32
  export declare const selectorChartsInteractionRadiusAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.mjs").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.mjs").UseChartSeriesConfigState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.mjs").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.mjs").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.mjs").UseChartSeriesState<keyof import("../../../index.mjs").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.mjs").UseChartAnimationState & import("../../../index.mjs").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.mjs").UseChartPolarAxisState> & {
33
33
  cacheKey: import("../../models/index.mjs").ChartStateCacheKey;
34
34
  }) => any;
@@ -1,10 +1,10 @@
1
- import type { AxisItemIdentifier } from "../../../../models/axis.js";
1
+ import type { AxisId, AxisItemIdentifier } from "../../../../models/axis.js";
2
2
  export declare const selectorChartsInteractionRotationAxisIndex: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
3
3
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
4
4
  }) => number | null;
5
5
  export declare const selectorChartsInteractionRotationAxisIndexes: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
6
6
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
7
- }) => number[] | null;
7
+ }, ids: AxisId[] | undefined) => number[] | null;
8
8
  export declare const selectorChartsInteractionRotationAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
9
9
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
10
10
  }) => any;
@@ -28,7 +28,7 @@ export declare const selectorChartsInteractionRadiusAxisIndex: (args_0: import("
28
28
  }) => number | null;
29
29
  export declare const selectorChartsInteractionRadiusAxisIndexes: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("../useChartInteraction/useChartInteraction.types.js").UseChartInteractionState> & {
30
30
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
31
- }) => number[] | null;
31
+ }, ids: AxisId[] | undefined) => number[] | null;
32
32
  export declare const selectorChartsInteractionRadiusAxisValue: (args_0: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js").UseChartSeriesConfigState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../../../index.js").UseChartInteractionListenerState & Partial<import("./useChartPolarAxis.types.js").UseChartPolarAxisState> & {
33
33
  cacheKey: import("../../models/index.js").ChartStateCacheKey;
34
34
  }) => any;
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.selectorChartsInteractionTooltipRotationAxes = exports.selectorChartsInteractionTooltipRadiusAxes = exports.selectorChartsInteractionRotationAxisValues = exports.selectorChartsInteractionRotationAxisValue = exports.selectorChartsInteractionRotationAxisIndexes = exports.selectorChartsInteractionRotationAxisIndex = exports.selectorChartsInteractionRadiusAxisValues = exports.selectorChartsInteractionRadiusAxisValue = exports.selectorChartsInteractionRadiusAxisIndexes = exports.selectorChartsInteractionRadiusAxisIndex = exports.selectorChartsInteractionRadius = exports.selectorChartsInteractionPolarAxisTooltip = void 0;
7
7
  var _isDeepEqual = require("@mui/x-internals/isDeepEqual");
8
- var _store = require("@mui/x-internals/store");
8
+ var _store = require("@base-ui/utils/store");
9
9
  var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
10
10
  var _coordinateTransformation = require("./coordinateTransformation");
11
11
  var _getAxisIndex = require("./getAxisIndex");
@@ -38,7 +38,7 @@ const selectorChartsInteractionRotationAngle = (0, _store.createSelector)(_useCh
38
38
  return (0, _coordinateTransformation.generateSvg2rotation)(center)(x, y);
39
39
  });
40
40
  const selectorChartsInteractionRotationAxisIndex = exports.selectorChartsInteractionRotationAxisIndex = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id) => rotation === null ? null : indexGetter(rotation, rotationAxis, id ?? rotationAxis.axisIds[0], 'rotation'));
41
- const selectorChartsInteractionRotationAxisIndexes = exports.selectorChartsInteractionRotationAxisIndexes = (0, _store.createSelector)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds, 'rotation'));
41
+ const selectorChartsInteractionRotationAxisIndexes = exports.selectorChartsInteractionRotationAxisIndexes = (0, _store.createSelectorMemoized)(selectorChartsInteractionRotationAngle, _useChartPolarAxis.selectorChartRotationAxis, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds, 'rotation'));
42
42
  const selectorChartsInteractionRotationAxisValue = exports.selectorChartsInteractionRotationAxisValue = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id) => {
43
43
  id = id ?? rotationAxis.axisIds[0];
44
44
  if (rotationIndex === null || rotationIndex === -1 || rotationAxis.axisIds.length === 0) {
@@ -99,7 +99,7 @@ const selectorChartsInteractionRadius = exports.selectorChartsInteractionRadius
99
99
  return Math.sqrt((x - center.cx) ** 2 + (y - center.cy) ** 2);
100
100
  });
101
101
  const selectorChartsInteractionRadiusAxisIndex = exports.selectorChartsInteractionRadiusAxisIndex = (0, _store.createSelector)(selectorChartsInteractionRadius, _useChartPolarAxis.selectorChartRadiusAxis, optionalGetAxisId, (radius, radiusAxis, id) => radius === null ? null : indexGetter(radius, radiusAxis, id ?? radiusAxis.axisIds[0], 'radius'));
102
- const selectorChartsInteractionRadiusAxisIndexes = exports.selectorChartsInteractionRadiusAxisIndexes = (0, _store.createSelector)(selectorChartsInteractionRadius, _useChartPolarAxis.selectorChartRadiusAxis, optionalGetAxisIds, (radius, radiusAxis, ids) => radius === null ? null : indexGetter(radius, radiusAxis, ids ?? radiusAxis.axisIds, 'radius'));
102
+ const selectorChartsInteractionRadiusAxisIndexes = exports.selectorChartsInteractionRadiusAxisIndexes = (0, _store.createSelectorMemoized)(selectorChartsInteractionRadius, _useChartPolarAxis.selectorChartRadiusAxis, (radius, radiusAxis, ids) => radius === null ? null : indexGetter(radius, radiusAxis, ids ?? radiusAxis.axisIds, 'radius'));
103
103
  const selectorChartsInteractionRadiusAxisValue = exports.selectorChartsInteractionRadiusAxisValue = (0, _store.createSelector)(_useChartPolarAxis.selectorChartRadiusAxis, selectorChartsInteractionRadiusAxisIndex, optionalGetAxisId, (radiusAxis, radiusIndex, id) => {
104
104
  id = id ?? radiusAxis.axisIds[0];
105
105
  if (radiusIndex === null || radiusIndex === -1 || radiusAxis.axisIds.length === 0) {
@@ -1,5 +1,5 @@
1
1
  import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
2
- import { createSelector, createSelectorMemoizedWithOptions } from '@mui/x-internals/store';
2
+ import { createSelector, createSelectorMemoized, createSelectorMemoizedWithOptions } from '@base-ui/utils/store';
3
3
  import { selectorChartsInteractionPointerX, selectorChartsInteractionPointerY } from "../useChartInteraction/useChartInteraction.selectors.mjs";
4
4
  import { generateSvg2rotation } from "./coordinateTransformation.mjs";
5
5
  import { getRotationAxisIndex, getRadiusAxisIndex } from "./getAxisIndex.mjs";
@@ -32,7 +32,7 @@ const selectorChartsInteractionRotationAngle = createSelector(selectorChartsInte
32
32
  return generateSvg2rotation(center)(x, y);
33
33
  });
34
34
  export const selectorChartsInteractionRotationAxisIndex = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id) => rotation === null ? null : indexGetter(rotation, rotationAxis, id ?? rotationAxis.axisIds[0], 'rotation'));
35
- export const selectorChartsInteractionRotationAxisIndexes = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisIds, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds, 'rotation'));
35
+ export const selectorChartsInteractionRotationAxisIndexes = createSelectorMemoized(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds, 'rotation'));
36
36
  export const selectorChartsInteractionRotationAxisValue = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id) => {
37
37
  id = id ?? rotationAxis.axisIds[0];
38
38
  if (rotationIndex === null || rotationIndex === -1 || rotationAxis.axisIds.length === 0) {
@@ -93,7 +93,7 @@ export const selectorChartsInteractionRadius = createSelector(selectorChartsInte
93
93
  return Math.sqrt((x - center.cx) ** 2 + (y - center.cy) ** 2);
94
94
  });
95
95
  export const selectorChartsInteractionRadiusAxisIndex = createSelector(selectorChartsInteractionRadius, selectorChartRadiusAxis, optionalGetAxisId, (radius, radiusAxis, id) => radius === null ? null : indexGetter(radius, radiusAxis, id ?? radiusAxis.axisIds[0], 'radius'));
96
- export const selectorChartsInteractionRadiusAxisIndexes = createSelector(selectorChartsInteractionRadius, selectorChartRadiusAxis, optionalGetAxisIds, (radius, radiusAxis, ids) => radius === null ? null : indexGetter(radius, radiusAxis, ids ?? radiusAxis.axisIds, 'radius'));
96
+ export const selectorChartsInteractionRadiusAxisIndexes = createSelectorMemoized(selectorChartsInteractionRadius, selectorChartRadiusAxis, (radius, radiusAxis, ids) => radius === null ? null : indexGetter(radius, radiusAxis, ids ?? radiusAxis.axisIds, 'radius'));
97
97
  export const selectorChartsInteractionRadiusAxisValue = createSelector(selectorChartRadiusAxis, selectorChartsInteractionRadiusAxisIndex, optionalGetAxisId, (radiusAxis, radiusIndex, id) => {
98
98
  id = id ?? radiusAxis.axisIds[0];
99
99
  if (radiusIndex === null || radiusIndex === -1 || radiusAxis.axisIds.length === 0) {
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
9
9
  var _useAssertModelConsistency = require("@mui/x-internals/useAssertModelConsistency");
10
10
  var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
11
11
  var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
12
- var _fastObjectShallowCompare = require("@mui/x-internals/fastObjectShallowCompare");
12
+ var _fastObjectShallowCompare = require("@base-ui/utils/fastObjectShallowCompare");
13
13
  var _useChartSeries = require("../../corePlugins/useChartSeries/useChartSeries");
14
14
  const useChartTooltip = ({
15
15
  store,
@@ -1,8 +1,8 @@
1
- import _extends from "@babel/runtime/helpers/esm/extends";
1
+ import _extends from "@babel/runtime/helpers/extends";
2
2
  import { useAssertModelConsistency } from '@mui/x-internals/useAssertModelConsistency';
3
3
  import useEventCallback from '@mui/utils/useEventCallback';
4
4
  import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
5
- import { fastObjectShallowCompare } from '@mui/x-internals/fastObjectShallowCompare';
5
+ import { fastObjectShallowCompare } from '@base-ui/utils/fastObjectShallowCompare';
6
6
  import { createIdentifierWithType } from "../../corePlugins/useChartSeries/useChartSeries.mjs";
7
7
  export const useChartTooltip = ({
8
8
  store,
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorChartsTooltipPointerItemIsDefined = exports.selectorChartsTooltipPointerItem = exports.selectorChartsTooltipItemIsDefined = exports.selectorChartsTooltipItem = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  var _useChartKeyboardNavigation = require("../useChartKeyboardNavigation");
9
9
  var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
10
10
  const selectTooltip = state => state.tooltip;
@@ -1,4 +1,4 @@
1
- import { createSelector } from '@mui/x-internals/store';
1
+ import { createSelector } from '@base-ui/utils/store';
2
2
  import { selectorChartsKeyboardItem, selectorChartsHasFocusedItem } from "../useChartKeyboardNavigation/index.mjs";
3
3
  import { selectorChartsLastInteraction } from "../useChartInteraction/useChartInteraction.selectors.mjs";
4
4
  const selectTooltip = state => state.tooltip;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import useEventCallback from '@mui/utils/useEventCallback';
5
5
  import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
6
6
  import { EMPTY_VISIBILITY_MAP } from "./useChartVisibilityManager.selectors.mjs";
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorVisibilityMap = exports.selectorIsItemVisibleGetter = exports.EMPTY_VISIBILITY_MAP = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  var _useChartSeriesConfig = require("../../corePlugins/useChartSeriesConfig");
9
9
  var _serializeIdentifier = require("../../corePlugins/useChartSeriesConfig/utils/serializeIdentifier");
10
10
  /**
@@ -1,4 +1,4 @@
1
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
3
3
  import { serializeIdentifier } from "../../corePlugins/useChartSeriesConfig/utils/serializeIdentifier.mjs";
4
4
  /**
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
 
3
3
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
4
- import _extends from "@babel/runtime/helpers/esm/extends";
4
+ import _extends from "@babel/runtime/helpers/extends";
5
5
  import * as React from 'react';
6
6
  import { getColorScale, getOrdinalColorScale } from "../../../colorScale.mjs";
7
7
  import { getSizeScale, getOrdinalSizeScale } from "../../../sizeScale.mjs";
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.selectorChartZAxis = void 0;
7
- var _store = require("@mui/x-internals/store");
7
+ var _store = require("@base-ui/utils/store");
8
8
  const selectRootState = state => state;
9
9
  const selectorChartZAxis = exports.selectorChartZAxis = (0, _store.createSelector)(selectRootState, state => state.zAxis);
@@ -1,3 +1,3 @@
1
- import { createSelector } from '@mui/x-internals/store';
1
+ import { createSelector } from '@base-ui/utils/store';
2
2
  const selectRootState = state => state;
3
3
  export const selectorChartZAxis = createSelector(selectRootState, state => state.zAxis);
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import _extends from "@babel/runtime/helpers/esm/extends";
3
+ import _extends from "@babel/runtime/helpers/extends";
4
4
  import * as React from 'react';
5
5
  import useEventCallback from '@mui/utils/useEventCallback';
6
6
  import { sameSeriesIds, selectorProgressivePlans, selectorProgressiveRevealedRounds, selectorProgressiveTotalRounds, selectorShouldUseProgressiveRenderer } from "./useProgressiveRendering.selectors.mjs";
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getRevealedBatchCount = getRevealedBatchCount;
7
7
  exports.sameSeriesIds = sameSeriesIds;
8
8
  exports.selectorShouldUseProgressiveRenderer = exports.selectorProgressiveTotalRounds = exports.selectorProgressiveSeriesRevealedBatches = exports.selectorProgressiveRevealedRounds = exports.selectorProgressivePlans = exports.selectorProgressiveBatchSize = exports.selectorProgressiveAggregate = void 0;
9
- var _store = require("@mui/x-internals/store");
9
+ var _store = require("@base-ui/utils/store");
10
10
  var _useChartSeries = require("../../corePlugins/useChartSeries");
11
11
  var _useChartExperimentalFeature = require("../../corePlugins/useChartExperimentalFeature");
12
12
  var _useChartCartesianAxis = require("../useChartCartesianAxis");
@@ -1,4 +1,4 @@
1
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
1
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
2
2
  import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
3
3
  import { selectorChartExperimentalFeaturesState } from "../../corePlugins/useChartExperimentalFeature/index.mjs";
4
4
  import { selectorChartZoomIsInteracting } from "../useChartCartesianAxis/index.mjs";
@@ -1,4 +1,4 @@
1
- import type { Store } from '@mui/x-internals/store';
1
+ import type { Store } from '@base-ui/utils/store';
2
2
  import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.mjs";
3
3
  import type { ChartCorePluginSignatures } from "../corePlugins/index.mjs";
4
4
  import type { ChartState } from "./chart.mjs";
@@ -1,4 +1,4 @@
1
- import type { Store } from '@mui/x-internals/store';
1
+ import type { Store } from '@base-ui/utils/store';
2
2
  import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.js";
3
3
  import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
4
4
  import type { ChartState } from "./chart.js";
@@ -1,4 +1,4 @@
1
- import type { Store } from '@mui/x-internals/store';
1
+ import type { Store } from '@base-ui/utils/store';
2
2
  import type { ChartAnyPluginSignature, ChartState } from "../models/index.mjs";
3
3
  export declare function useLazySelectorEffect<TSignatures extends readonly ChartAnyPluginSignature[], Value>(store: Store<ChartState<TSignatures>>, selector: (state: ChartState<TSignatures>) => Value, effect: (previous: Value, next: Value) => void,
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type { Store } from '@mui/x-internals/store';
1
+ import type { Store } from '@base-ui/utils/store';
2
2
  import type { ChartAnyPluginSignature, ChartState } from "../models/index.js";
3
3
  export declare function useLazySelectorEffect<TSignatures extends readonly ChartAnyPluginSignature[], Value>(store: Store<ChartState<TSignatures>>, selector: (state: ChartState<TSignatures>) => Value, effect: (previous: Value, next: Value) => void,
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
2
- import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _extends from "@babel/runtime/helpers/extends";
3
3
  import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
4
4
  import { warnOnce } from '@mui/x-internals/warning';
5
5
  import { getStackingGroups } from "./stacking/index.mjs";
@@ -5,7 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.seriesHasData = seriesHasData;
7
7
  function seriesHasData(series, type, seriesId) {
8
- // @ts-ignore sankey is not in MIT version
8
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent in the community build.
9
+ // @ts-ignore Sankey is added by Premium augmentation, absent in the community build.
9
10
  if (type === 'sankey') {
10
11
  return false;
11
12
  }
@@ -1,5 +1,6 @@
1
1
  export function seriesHasData(series, type, seriesId) {
2
- // @ts-ignore sankey is not in MIT version
2
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent in the community build.
3
+ // @ts-ignore Sankey is added by Premium augmentation, absent in the community build.
3
4
  if (type === 'sankey') {
4
5
  return false;
5
6
  }
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.useSeriesOfType = exports.useAllSeriesOfType = exports.selectorSeriesOfType = exports.selectorAllSeriesOfType = void 0;
7
7
  var _warning = require("@mui/x-internals/warning");
8
- var _store = require("@mui/x-internals/store");
8
+ var _store = require("@base-ui/utils/store");
9
9
  var _useChartSeries = require("./plugins/corePlugins/useChartSeries/useChartSeries.selectors");
10
10
  var _useStore = require("./store/useStore");
11
11
  const selectorAllSeriesOfType = exports.selectorAllSeriesOfType = (0, _store.createSelector)(_useChartSeries.selectorChartSeriesProcessed, (processedSeries, seriesType) => processedSeries[seriesType]);
@@ -29,7 +29,7 @@ const selectorSeriesOfType = exports.selectorSeriesOfType = (0, _store.createSel
29
29
  if (process.env.NODE_ENV !== 'production' && failedIds.length > 0) {
30
30
  const formattedIds = failedIds.map(v => JSON.stringify(v)).join(', ');
31
31
  const fnName = `use${seriesType.charAt(0).toUpperCase()}${seriesType.slice(1)}Series`;
32
- (0, _warning.warnOnce)([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
32
+ (0, _warning.warnOnce)([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`].join('\n'));
33
33
  }
34
34
  return result;
35
35
  });
@@ -1,5 +1,5 @@
1
1
  import { warnOnce } from '@mui/x-internals/warning';
2
- import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
2
+ import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
3
3
  import { selectorChartSeriesProcessed } from "./plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs";
4
4
  import { useStore } from "./store/useStore.mjs";
5
5
  export const selectorAllSeriesOfType = createSelector(selectorChartSeriesProcessed, (processedSeries, seriesType) => processedSeries[seriesType]);
@@ -23,7 +23,7 @@ export const selectorSeriesOfType = createSelectorMemoized(selectorChartSeriesPr
23
23
  if (process.env.NODE_ENV !== 'production' && failedIds.length > 0) {
24
24
  const formattedIds = failedIds.map(v => JSON.stringify(v)).join(', ');
25
25
  const fnName = `use${seriesType.charAt(0).toUpperCase()}${seriesType.slice(1)}Series`;
26
- warnOnce([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
26
+ warnOnce([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`].join('\n'));
27
27
  }
28
28
  return result;
29
29
  });
@@ -27,9 +27,7 @@ function shallowEqual(objA, objB) {
27
27
  // Test for A's keys different from B.
28
28
  for (let i = 0; i < keysA.length; i += 1) {
29
29
  const currentKey = keysA[i];
30
- if (!Object.prototype.hasOwnProperty.call(objB, currentKey) ||
31
- // @ts-ignore
32
- !Object.is(objA[currentKey], objB[currentKey])) {
30
+ if (!Object.prototype.hasOwnProperty.call(objB, currentKey) || !Object.is(objA[currentKey], objB[currentKey])) {
33
31
  return false;
34
32
  }
35
33
  }
@@ -21,9 +21,7 @@ export function shallowEqual(objA, objB) {
21
21
  // Test for A's keys different from B.
22
22
  for (let i = 0; i < keysA.length; i += 1) {
23
23
  const currentKey = keysA[i];
24
- if (!Object.prototype.hasOwnProperty.call(objB, currentKey) ||
25
- // @ts-ignore
26
- !Object.is(objA[currentKey], objB[currentKey])) {
24
+ if (!Object.prototype.hasOwnProperty.call(objB, currentKey) || !Object.is(objA[currentKey], objB[currentKey])) {
27
25
  return false;
28
26
  }
29
27
  }
@@ -1,4 +1,4 @@
1
- import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
1
+ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
2
2
  const _excluded = ["apiRef"];
3
3
  export const extractPluginParamsFromProps = _ref => {
4
4
  let {