@mui/x-charts-pro 9.9.0 → 9.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/ChartsDataProviderPro/ChartsDataProviderPro.js +2 -2
  3. package/ChartsDataProviderPro/ChartsDataProviderPro.mjs +2 -2
  4. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.mts +1 -1
  5. package/ChartsDataProviderPro/useChartsDataProviderProProps.d.ts +1 -1
  6. package/ChartsToolbarPro/Toolbar.types.d.mts +2 -1
  7. package/ChartsToolbarPro/Toolbar.types.d.ts +2 -1
  8. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.mts +1 -1
  9. package/ChartsZoomSlider/internals/chartsAxisZoomSliderTrackClasses.d.ts +1 -1
  10. package/FunnelChart/FocusedFunnelSection.js +6 -1
  11. package/FunnelChart/FocusedFunnelSection.mjs +6 -1
  12. package/FunnelChart/curves/getFunnelCurve.d.mts +1 -1
  13. package/FunnelChart/curves/getFunnelCurve.d.ts +1 -1
  14. package/FunnelChart/funnelClasses.d.mts +1 -1
  15. package/FunnelChart/funnelClasses.d.ts +1 -1
  16. package/FunnelChart/funnelPlotSlots.types.d.mts +3 -2
  17. package/FunnelChart/funnelPlotSlots.types.d.ts +3 -2
  18. package/FunnelChart/labelUtils.d.mts +2 -2
  19. package/FunnelChart/labelUtils.d.ts +2 -2
  20. package/FunnelChart/seriesConfig/tooltip.js +3 -0
  21. package/FunnelChart/seriesConfig/tooltip.mjs +3 -0
  22. package/FunnelChart/seriesConfig/tooltipPosition.js +6 -2
  23. package/FunnelChart/seriesConfig/tooltipPosition.mjs +6 -2
  24. package/Heatmap/Heatmap.d.mts +2 -1
  25. package/Heatmap/Heatmap.d.ts +2 -1
  26. package/Heatmap/HeatmapItem.d.mts +2 -1
  27. package/Heatmap/HeatmapItem.d.ts +2 -1
  28. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.mts +1 -1
  29. package/Heatmap/HeatmapTooltip/HeatmapTooltip.classes.d.ts +1 -1
  30. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.mts +2 -1
  31. package/Heatmap/HeatmapTooltip/HeatmapTooltip.types.d.ts +2 -1
  32. package/Heatmap/seriesConfig/highlight.d.mts +2 -2
  33. package/Heatmap/seriesConfig/highlight.d.ts +2 -2
  34. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.mts +1 -1
  35. package/SankeyChart/SankeyTooltip/SankeyTooltip.classes.d.ts +1 -1
  36. package/SankeyChart/sankeyClasses.d.mts +1 -1
  37. package/SankeyChart/sankeyClasses.d.ts +1 -1
  38. package/SankeyChart/seriesConfig/createIsFaded.d.mts +1 -1
  39. package/SankeyChart/seriesConfig/createIsFaded.d.ts +1 -1
  40. package/SankeyChart/utils.d.mts +2 -2
  41. package/SankeyChart/utils.d.ts +2 -2
  42. package/ScatterChartPro/ScatterChartPro.d.mts +2 -1
  43. package/ScatterChartPro/ScatterChartPro.d.ts +2 -1
  44. package/index.js +1 -1
  45. package/index.mjs +1 -1
  46. package/internals/plugins/allPlugins.d.mts +2 -2
  47. package/internals/plugins/allPlugins.d.ts +2 -2
  48. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.mts +26 -26
  49. package/internals/plugins/useChartProZoom/ZoomInteractionConfig.selectors.d.ts +26 -26
  50. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.mts +1 -1
  51. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnDrag.d.ts +1 -1
  52. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.mts +1 -1
  53. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnPressAndDrag.d.ts +1 -1
  54. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.mts +1 -1
  55. package/internals/plugins/useChartProZoom/gestureHooks/usePanOnWheel.d.ts +1 -1
  56. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.mts +1 -1
  57. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnBrush.d.ts +1 -1
  58. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.mts +1 -1
  59. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnDoubleTapReset.d.ts +1 -1
  60. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.mts +1 -1
  61. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnPinch.d.ts +1 -1
  62. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.mts +1 -1
  63. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnTapAndDrag.d.ts +1 -1
  64. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.mts +1 -1
  65. package/internals/plugins/useChartProZoom/gestureHooks/useZoomOnWheel.d.ts +1 -1
  66. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,222 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.10.1
4
+
5
+ _Jul 23, 2026_
6
+
7
+ We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - 🦮 Improve accessibility of the Charts and Pickers components.
10
+ - 🐞 Bugfixes
11
+ - 📚 Documentation improvements
12
+
13
+ Special thanks go out to these community members for their valuable contributions:
14
+ @kevincorizi-sbt, @mustafajw07, @SamanPandey-in
15
+
16
+ The following team members contributed to this release:
17
+ @brijeshb42, @hasdfa, @JCQuintas, @LukasTy, @michelengelen, @noraleonte, @rita-codes, @silviuaavram
18
+
19
+ ### Data Grid
20
+
21
+ #### `@mui/x-data-grid@9.10.1`
22
+
23
+ - [data grid] Fix `getColumn` return type not reflecting that it can return undefined (#23165) @JCQuintas
24
+
25
+ #### `@mui/x-data-grid-pro@9.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
26
+
27
+ Same changes as in `@mui/x-data-grid@9.10.1`.
28
+
29
+ #### `@mui/x-data-grid-premium@9.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
30
+
31
+ Same changes as in `@mui/x-data-grid-pro@9.10.1`.
32
+
33
+ ### Date and Time Pickers
34
+
35
+ #### `@mui/x-date-pickers@9.10.1`
36
+
37
+ - [pickers] Fix format placeholder brightness with a start adornment (#23189) @LukasTy
38
+
39
+ #### `@mui/x-date-pickers-pro@9.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
40
+
41
+ Same changes as in `@mui/x-date-pickers@9.10.1`, plus:
42
+
43
+ - [DateRangePicker] Fix broken active range position underline in single input range fields (#23166) @LukasTy
44
+
45
+ ### Charts
46
+
47
+ #### `@mui/x-charts@9.10.1`
48
+
49
+ - [charts] Fix pie chart disappearing when an arc spans almost the full circle (#23145) @JCQuintas
50
+ - [charts] Set `aria-hidden` on accessibility proxy divs at initialization (#23186) @kevincorizi-sbt
51
+ - [charts] Fix keyboard navigation on series with different lengths (#23182) @JCQuintas
52
+ - [charts] Fix out of bounds keyboard navigation (#23180) @silviuaavram
53
+
54
+ #### `@mui/x-charts-pro@9.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
55
+
56
+ Same changes as in `@mui/x-charts@9.10.1`, plus:
57
+
58
+ - [charts-pro] Fix highlight shifting on sampled bar charts (#23190) @noraleonte
59
+ - [charts-pro] Sampled band highlight falls back to single-band width for Date/object values (#23024) @SamanPandey-in
60
+
61
+ #### `@mui/x-charts-premium@9.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
62
+
63
+ Same changes as in `@mui/x-charts-pro@9.10.1`.
64
+
65
+ ### Tree View
66
+
67
+ #### `@mui/x-tree-view@9.10.1`
68
+
69
+ - [TreeView] Fix selection propagation to exclude disabled items (#23012) @michelengelen
70
+
71
+ #### `@mui/x-tree-view-pro@9.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
72
+
73
+ Same changes as in `@mui/x-tree-view@9.10.1`.
74
+
75
+ ### Scheduler
76
+
77
+ #### `@mui/x-scheduler@9.0.0-beta.7`
78
+
79
+ - [scheduler] Polish `EventCalendar` rendering for multi-resource events (#23161) @mustafajw07
80
+ - [scheduler] Responsive header (#22954) @noraleonte
81
+
82
+ #### `@mui/x-scheduler-premium@9.0.0-beta.7` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
83
+
84
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.7`, plus:
85
+
86
+ - [scheduler-premium] Add the dependencies data model (#23117) @rita-codes
87
+ - [scheduler-premium] Dependencies - Render the FS arrow (#23162) @rita-codes
88
+
89
+ ### Codemod
90
+
91
+ #### `@mui/x-codemod@9.10.1`
92
+
93
+ Internal changes.
94
+
95
+ ### Docs
96
+
97
+ - [docs] Fix clearing, layout shift, and prop leak in Pickers demos (#23191) @LukasTy
98
+
99
+ ### Core
100
+
101
+ - [code-infra] Validate working of specific code-infra canary (#23207) @brijeshb42
102
+
103
+ ### Miscellaneous
104
+
105
+ - [chat] Normalize message part link URLs (#23187) @hasdfa
106
+ - [x-chat] Fix object URL leaks for submitted attachments (#23198) @hasdfa
107
+ - [internals] Make disposable types self-contained without `esnext.disposable` lib (#23164) @JCQuintas
108
+
109
+ ## 9.10.0
110
+
111
+ _Jul 17, 2026_
112
+
113
+ We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
114
+
115
+ - 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
116
+ - ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
117
+ - 🐞 Bugfixes
118
+ - 📚 Documentation improvements
119
+
120
+ Special thanks go out to these community members for their valuable contributions:
121
+ @Anexus5919, @mustafajw07
122
+
123
+ The following team members contributed to this release:
124
+ @brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
125
+
126
+ ### Data Grid
127
+
128
+ #### `@mui/x-data-grid@9.10.0`
129
+
130
+ Internal changes.
131
+
132
+ #### `@mui/x-data-grid-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
133
+
134
+ Same changes as in `@mui/x-data-grid@9.10.0`.
135
+
136
+ #### `@mui/x-data-grid-premium@9.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
137
+
138
+ Same changes as in `@mui/x-data-grid-pro@9.10.0`.
139
+
140
+ ### Date and Time Pickers
141
+
142
+ #### `@mui/x-date-pickers@9.10.0`
143
+
144
+ Internal changes.
145
+
146
+ #### `@mui/x-date-pickers-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
147
+
148
+ Same changes as in `@mui/x-date-pickers@9.10.0`.
149
+
150
+ ### Charts
151
+
152
+ #### `@mui/x-charts@9.10.0`
153
+
154
+ - [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
155
+
156
+ #### `@mui/x-charts-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
157
+
158
+ Same changes as in `@mui/x-charts@9.10.0`.
159
+
160
+ #### `@mui/x-charts-premium@9.10.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
161
+
162
+ Same changes as in `@mui/x-charts-pro@9.10.0`.
163
+
164
+ ### Tree View
165
+
166
+ #### `@mui/x-tree-view@9.10.0`
167
+
168
+ Internal changes.
169
+
170
+ #### `@mui/x-tree-view-pro@9.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
171
+
172
+ Same changes as in `@mui/x-tree-view@9.10.0`, plus:
173
+
174
+ - [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
175
+
176
+ ### Scheduler
177
+
178
+ #### `@mui/x-scheduler@9.0.0-beta.6`
179
+
180
+ - [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
181
+ - [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
182
+
183
+ #### `@mui/x-scheduler-premium@9.0.0-beta.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
184
+
185
+ Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
186
+
187
+ ### Chat
188
+
189
+ #### `@mui/x-chat@9.0.0-alpha.14`
190
+
191
+ - [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
192
+
193
+ #### `@mui/x-chat-headless@9.0.0-alpha.14`
194
+
195
+ Internal changes.
196
+
197
+ ### Codemod
198
+
199
+ #### `@mui/x-codemod@9.10.0`
200
+
201
+ Internal changes.
202
+
203
+ ### Docs
204
+
205
+ - [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
206
+
207
+ ### Core
208
+
209
+ - [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
210
+ - [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
211
+ - [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
212
+ - [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
213
+
214
+ ### Miscellaneous
215
+
216
+ - [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
217
+ - [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
218
+ - [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
219
+
3
220
  ## 9.9.0
4
221
 
5
222
  _Jul 9, 2026_
@@ -20,8 +20,8 @@ var _barSampler = require("../internals/plugins/useChartProSampling/barSampler")
20
20
  var _lineSampler = require("../internals/plugins/useChartProSampling/lineSampler");
21
21
  var _jsxRuntime = require("react/jsx-runtime");
22
22
  const packageInfo = {
23
- releaseDate: "MTc4MzU1NTIwMDAwMA==",
24
- version: "9.9.0",
23
+ releaseDate: "MTc4NDc2NDgwMDAwMA==",
24
+ version: "9.10.1",
25
25
  name: 'x-charts-pro'
26
26
  };
27
27
  // Attach the pro sampling strategies (kept at module scope for a stable identity, so the
@@ -13,8 +13,8 @@ import { barSampler } from "../internals/plugins/useChartProSampling/barSampler.
13
13
  import { lineSampler } from "../internals/plugins/useChartProSampling/lineSampler.mjs";
14
14
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  const packageInfo = {
16
- releaseDate: "MTc4MzU1NTIwMDAwMA==",
17
- version: "9.9.0",
16
+ releaseDate: "MTc4NDc2NDgwMDAwMA==",
17
+ version: "9.10.1",
18
18
  name: 'x-charts-pro'
19
19
  };
20
20
  // Attach the pro sampling strategies (kept at module scope for a stable identity, so the
@@ -1,7 +1,7 @@
1
1
  import type { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
2
2
  import type { ChartsDataProviderProProps } from "./ChartsDataProviderPro.mjs";
3
3
  import type { AllPluginSignatures } from "../internals/plugins/allPlugins.mjs";
4
- export declare const useChartsDataProviderProProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProProps<SeriesType, TSignatures>) => {
4
+ export declare const useChartsDataProviderProProps: <SeriesType extends ChartSeriesType = keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProProps<SeriesType, TSignatures>) => {
5
5
  children: import("react").ReactNode;
6
6
  localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
7
7
  chartProviderProps: import("@mui/x-charts/internals").ChartsProviderProps<keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures>;
@@ -1,7 +1,7 @@
1
1
  import type { ChartAnyPluginSignature, ChartSeriesType } from '@mui/x-charts/internals';
2
2
  import type { ChartsDataProviderProProps } from "./ChartsDataProviderPro.js";
3
3
  import type { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
4
- export declare const useChartsDataProviderProProps: <SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProProps<SeriesType, TSignatures>) => {
4
+ export declare const useChartsDataProviderProProps: <SeriesType extends ChartSeriesType = keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>>(props: ChartsDataProviderProProps<SeriesType, TSignatures>) => {
5
5
  children: import("react").ReactNode;
6
6
  localeText: Partial<import("@mui/x-charts/locales").ChartsLocaleText> | undefined;
7
7
  chartProviderProps: import("@mui/x-charts/internals").ChartsProviderProps<keyof import("@mui/x-charts/internals").ChartsSeriesConfig, TSignatures>;
@@ -1,4 +1,5 @@
1
1
  import type * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { ToolbarPropsOverrides } from '@mui/x-charts/models';
3
4
  import type { ChartsToolbarProProps } from "./ChartsToolbarPro.mjs";
4
5
  export interface ChartsToolbarProSlots {
@@ -12,5 +13,5 @@ export interface ChartsToolbarProSlotProps {
12
13
  /**
13
14
  * Props for the toolbar component.
14
15
  */
15
- toolbar?: Partial<ChartsToolbarProProps> & ToolbarPropsOverrides;
16
+ toolbar?: WithDataAttributes<Partial<ChartsToolbarProProps> & ToolbarPropsOverrides>;
16
17
  }
@@ -1,4 +1,5 @@
1
1
  import type * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { ToolbarPropsOverrides } from '@mui/x-charts/models';
3
4
  import type { ChartsToolbarProProps } from "./ChartsToolbarPro.js";
4
5
  export interface ChartsToolbarProSlots {
@@ -12,5 +13,5 @@ export interface ChartsToolbarProSlotProps {
12
13
  /**
13
14
  * Props for the toolbar component.
14
15
  */
15
- toolbar?: Partial<ChartsToolbarProProps> & ToolbarPropsOverrides;
16
+ toolbar?: WithDataAttributes<Partial<ChartsToolbarProProps> & ToolbarPropsOverrides>;
16
17
  }
@@ -12,4 +12,4 @@ export interface ChartsAxisZoomSliderTrackClasses {
12
12
  export type ChartsAxisZoomSliderTrackClassKey = keyof ChartsAxisZoomSliderTrackClasses;
13
13
  export declare const chartsAxisZoomSliderTrackClasses: ChartsAxisZoomSliderTrackClasses;
14
14
  export declare function getAxisZoomSliderTrackUtilityClass(slot: string): string;
15
- export declare const useUtilityClasses: (props: Partial<ChartsAxisZoomSliderActiveTrackProps>) => Record<"background" | "active", string>;
15
+ export declare const useUtilityClasses: (props: Partial<ChartsAxisZoomSliderActiveTrackProps>) => Record<"active" | "background", string>;
@@ -12,4 +12,4 @@ export interface ChartsAxisZoomSliderTrackClasses {
12
12
  export type ChartsAxisZoomSliderTrackClassKey = keyof ChartsAxisZoomSliderTrackClasses;
13
13
  export declare const chartsAxisZoomSliderTrackClasses: ChartsAxisZoomSliderTrackClasses;
14
14
  export declare function getAxisZoomSliderTrackUtilityClass(slot: string): string;
15
- export declare const useUtilityClasses: (props: Partial<ChartsAxisZoomSliderActiveTrackProps>) => Record<"background" | "active", string>;
15
+ export declare const useUtilityClasses: (props: Partial<ChartsAxisZoomSliderActiveTrackProps>) => Record<"active" | "background", string>;
@@ -37,6 +37,11 @@ function FocusedFunnelSection(props) {
37
37
  return null;
38
38
  }
39
39
  const funnelSeries = allFunnelSeries[focusedItem.seriesId];
40
+ // Focus may reference a removed series or section.
41
+ const sectionPoints = funnelSeries?.dataPoints[focusedItem.dataIndex];
42
+ if (!sectionPoints) {
43
+ return null;
44
+ }
40
45
  const xAxisId = funnelSeries.xAxisId ?? xAxisIds[0];
41
46
  const yAxisId = funnelSeries.yAxisId ?? yAxisIds[0];
42
47
  const xScale = xAxis[xAxisId].scale;
@@ -57,7 +62,7 @@ function FocusedFunnelSection(props) {
57
62
  min: minPoint,
58
63
  max: maxPoint
59
64
  });
60
- const bandPoints = curve({}).processPoints(funnelSeries.dataPoints[focusedItem.dataIndex].map(v => ({
65
+ const bandPoints = curve({}).processPoints(sectionPoints.map(v => ({
61
66
  x: xPosition(v.x, focusedItem.dataIndex, v.stackOffset, v.useBandWidth),
62
67
  y: yPosition(v.y, focusedItem.dataIndex, v.stackOffset, v.useBandWidth)
63
68
  })));
@@ -30,6 +30,11 @@ export function FocusedFunnelSection(props) {
30
30
  return null;
31
31
  }
32
32
  const funnelSeries = allFunnelSeries[focusedItem.seriesId];
33
+ // Focus may reference a removed series or section.
34
+ const sectionPoints = funnelSeries?.dataPoints[focusedItem.dataIndex];
35
+ if (!sectionPoints) {
36
+ return null;
37
+ }
33
38
  const xAxisId = funnelSeries.xAxisId ?? xAxisIds[0];
34
39
  const yAxisId = funnelSeries.yAxisId ?? yAxisIds[0];
35
40
  const xScale = xAxis[xAxisId].scale;
@@ -50,7 +55,7 @@ export function FocusedFunnelSection(props) {
50
55
  min: minPoint,
51
56
  max: maxPoint
52
57
  });
53
- const bandPoints = curve({}).processPoints(funnelSeries.dataPoints[focusedItem.dataIndex].map(v => ({
58
+ const bandPoints = curve({}).processPoints(sectionPoints.map(v => ({
54
59
  x: xPosition(v.x, focusedItem.dataIndex, v.stackOffset, v.useBandWidth),
55
60
  y: yPosition(v.y, focusedItem.dataIndex, v.stackOffset, v.useBandWidth)
56
61
  })));
@@ -5,4 +5,4 @@ import { Linear } from "./linear.mjs";
5
5
  import { Bump } from "./bump.mjs";
6
6
  import { Pyramid } from "./pyramid.mjs";
7
7
  import { StepPyramid } from "./step-pyramid.mjs";
8
- export declare const getFunnelCurve: (curve: FunnelCurveType | undefined, options: CurveOptions) => (context: CanvasRenderingContext2D | Path) => Step | Linear | Bump | Pyramid | StepPyramid;
8
+ export declare const getFunnelCurve: (curve: FunnelCurveType | undefined, options: CurveOptions) => (context: CanvasRenderingContext2D | Path) => Bump | Linear | Pyramid | Step | StepPyramid;
@@ -5,4 +5,4 @@ import { Linear } from "./linear.js";
5
5
  import { Bump } from "./bump.js";
6
6
  import { Pyramid } from "./pyramid.js";
7
7
  import { StepPyramid } from "./step-pyramid.js";
8
- export declare const getFunnelCurve: (curve: FunnelCurveType | undefined, options: CurveOptions) => (context: CanvasRenderingContext2D | Path) => Step | Linear | Bump | Pyramid | StepPyramid;
8
+ export declare const getFunnelCurve: (curve: FunnelCurveType | undefined, options: CurveOptions) => (context: CanvasRenderingContext2D | Path) => Bump | Linear | Pyramid | Step | StepPyramid;
@@ -26,4 +26,4 @@ export interface UseUtilityClassesOptions {
26
26
  variant?: 'filled' | 'outlined';
27
27
  classes?: Partial<FunnelClasses>;
28
28
  }
29
- export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
29
+ export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"root" | "section" | "sectionLabel", string>;
@@ -26,4 +26,4 @@ export interface UseUtilityClassesOptions {
26
26
  variant?: 'filled' | 'outlined';
27
27
  classes?: Partial<FunnelClasses>;
28
28
  }
29
- export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"section" | "sectionLabel" | "root", string>;
29
+ export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"root" | "section" | "sectionLabel", string>;
@@ -1,4 +1,5 @@
1
1
  import type * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { FunnelSectionProps } from "./FunnelSection.mjs";
3
4
  import type { FunnelSectionLabelProps } from "./FunnelSectionLabel.mjs";
4
5
  import type { FunnelSectionPropsOverrides, FunnelSectionLabelPropsOverrides } from "../models/chartsSlotsComponentsPropsPro.mjs";
@@ -15,8 +16,8 @@ export interface FunnelPlotSlots {
15
16
  funnelSectionLabel?: React.ElementType<FunnelSectionLabelProps & FunnelSectionLabelPropsOverrides>;
16
17
  }
17
18
  export interface FunnelPlotSlotProps {
18
- funnelSection?: Partial<FunnelSectionProps> & FunnelSectionPropsOverrides;
19
- funnelSectionLabel?: Partial<FunnelSectionLabelProps> & FunnelSectionLabelPropsOverrides;
19
+ funnelSection?: WithDataAttributes<Partial<FunnelSectionProps> & FunnelSectionPropsOverrides>;
20
+ funnelSectionLabel?: WithDataAttributes<Partial<FunnelSectionLabelProps> & FunnelSectionLabelPropsOverrides>;
20
21
  }
21
22
  export interface FunnelPlotSlotExtension {
22
23
  /**
@@ -1,4 +1,5 @@
1
1
  import type * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { FunnelSectionProps } from "./FunnelSection.js";
3
4
  import type { FunnelSectionLabelProps } from "./FunnelSectionLabel.js";
4
5
  import type { FunnelSectionPropsOverrides, FunnelSectionLabelPropsOverrides } from "../models/chartsSlotsComponentsPropsPro.js";
@@ -15,8 +16,8 @@ export interface FunnelPlotSlots {
15
16
  funnelSectionLabel?: React.ElementType<FunnelSectionLabelProps & FunnelSectionLabelPropsOverrides>;
16
17
  }
17
18
  export interface FunnelPlotSlotProps {
18
- funnelSection?: Partial<FunnelSectionProps> & FunnelSectionPropsOverrides;
19
- funnelSectionLabel?: Partial<FunnelSectionLabelProps> & FunnelSectionLabelPropsOverrides;
19
+ funnelSection?: WithDataAttributes<Partial<FunnelSectionProps> & FunnelSectionPropsOverrides>;
20
+ funnelSectionLabel?: WithDataAttributes<Partial<FunnelSectionLabelProps> & FunnelSectionLabelPropsOverrides>;
20
21
  }
21
22
  export interface FunnelPlotSlotExtension {
22
23
  /**
@@ -13,7 +13,7 @@ export declare const alignLabel: ({
13
13
  position,
14
14
  textAnchor,
15
15
  dominantBaseline
16
- }: Omit<FunnelLabelOptions, "margin">) => AlignReturnType;
16
+ }: Omit<FunnelLabelOptions, 'margin'>) => AlignReturnType;
17
17
  /**
18
18
  * This function calculates the position of the label based on the position and margin.
19
19
  *
@@ -27,7 +27,7 @@ export declare const positionLabel: ({
27
27
  offset,
28
28
  isHorizontal,
29
29
  values
30
- }: Omit<FunnelLabelOptions, "textAnchor" | "dominantBaseline"> & {
30
+ }: Omit<FunnelLabelOptions, 'textAnchor' | 'dominantBaseline'> & {
31
31
  isHorizontal: boolean;
32
32
  values: readonly Point[];
33
33
  }) => {
@@ -13,7 +13,7 @@ export declare const alignLabel: ({
13
13
  position,
14
14
  textAnchor,
15
15
  dominantBaseline
16
- }: Omit<FunnelLabelOptions, "margin">) => AlignReturnType;
16
+ }: Omit<FunnelLabelOptions, 'margin'>) => AlignReturnType;
17
17
  /**
18
18
  * This function calculates the position of the label based on the position and margin.
19
19
  *
@@ -27,7 +27,7 @@ export declare const positionLabel: ({
27
27
  offset,
28
28
  isHorizontal,
29
29
  values
30
- }: Omit<FunnelLabelOptions, "textAnchor" | "dominantBaseline"> & {
30
+ }: Omit<FunnelLabelOptions, 'textAnchor' | 'dominantBaseline'> & {
31
31
  isHorizontal: boolean;
32
32
  values: readonly Point[];
33
33
  }) => {
@@ -17,6 +17,9 @@ const tooltipGetter = params => {
17
17
  return null;
18
18
  }
19
19
  const point = series.data[identifier.dataIndex];
20
+ if (point == null) {
21
+ return null;
22
+ }
20
23
  const label = (0, _internals.getLabel)(point.label, 'tooltip');
21
24
  const value = (0, _extends2.default)({}, point, {
22
25
  label
@@ -10,6 +10,9 @@ const tooltipGetter = params => {
10
10
  return null;
11
11
  }
12
12
  const point = series.data[identifier.dataIndex];
13
+ if (point == null) {
14
+ return null;
15
+ }
13
16
  const label = getLabel(point.label, 'tooltip');
14
17
  const value = _extends({}, point, {
15
18
  label
@@ -28,8 +28,12 @@ const selectorTooltipItemPosition = exports.selectorTooltipItemPosition = (0, _s
28
28
  const gap = 0;
29
29
  const xPosition = (0, _coordinateMapper.createPositionGetter)(xAxis.scale, isHorizontal, gap, baseScaleConfig.data);
30
30
  const yPosition = (0, _coordinateMapper.createPositionGetter)(yAxis.scale, !isHorizontal, gap, baseScaleConfig.data);
31
- const allY = itemSeries.dataPoints[identifier.dataIndex].map(v => yPosition(v.y, identifier.dataIndex, v.stackOffset, v.useBandWidth));
32
- const allX = itemSeries.dataPoints[identifier.dataIndex].map(v => xPosition(v.x, identifier.dataIndex, v.stackOffset, v.useBandWidth));
31
+ const sectionPoints = itemSeries.dataPoints[identifier.dataIndex];
32
+ if (sectionPoints === undefined) {
33
+ return null;
34
+ }
35
+ const allY = sectionPoints.map(v => yPosition(v.y, identifier.dataIndex, v.stackOffset, v.useBandWidth));
36
+ const allX = sectionPoints.map(v => xPosition(v.x, identifier.dataIndex, v.stackOffset, v.useBandWidth));
33
37
  const [x0, x1] = (0, _internals.findMinMax)(allX);
34
38
  const [y0, y1] = (0, _internals.findMinMax)(allY);
35
39
  switch (placement) {
@@ -22,8 +22,12 @@ export const selectorTooltipItemPosition = createSelectorMemoized(selectorCharts
22
22
  const gap = 0;
23
23
  const xPosition = createPositionGetter(xAxis.scale, isHorizontal, gap, baseScaleConfig.data);
24
24
  const yPosition = createPositionGetter(yAxis.scale, !isHorizontal, gap, baseScaleConfig.data);
25
- const allY = itemSeries.dataPoints[identifier.dataIndex].map(v => yPosition(v.y, identifier.dataIndex, v.stackOffset, v.useBandWidth));
26
- const allX = itemSeries.dataPoints[identifier.dataIndex].map(v => xPosition(v.x, identifier.dataIndex, v.stackOffset, v.useBandWidth));
25
+ const sectionPoints = itemSeries.dataPoints[identifier.dataIndex];
26
+ if (sectionPoints === undefined) {
27
+ return null;
28
+ }
29
+ const allY = sectionPoints.map(v => yPosition(v.y, identifier.dataIndex, v.stackOffset, v.useBandWidth));
30
+ const allX = sectionPoints.map(v => xPosition(v.x, identifier.dataIndex, v.stackOffset, v.useBandWidth));
27
31
  const [x0, x1] = findMinMax(allX);
28
32
  const [y0, y1] = findMinMax(allY);
29
33
  switch (placement) {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { MakeOptional } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
5
  import type { ChartsAxisSlots, ChartsAxisSlotProps, XAxis, YAxis } from '@mui/x-charts/internals';
5
6
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
@@ -25,7 +26,7 @@ export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, Heatm
25
26
  legend?: ChartsLegendSlots['legend'];
26
27
  }
27
28
  export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps, ChartsLegendSlotProps, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
28
- tooltip?: Partial<HeatmapTooltipProps> & TooltipPropsOverrides;
29
+ tooltip?: WithDataAttributes<Partial<HeatmapTooltipProps> & TooltipPropsOverrides>;
29
30
  }
30
31
  export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
31
32
  export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import type { MakeOptional } from '@mui/x-internals/types';
3
+ import type { WithDataAttributes } from '@mui/utils/types';
3
4
  import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
5
  import type { ChartsAxisSlots, ChartsAxisSlotProps, XAxis, YAxis } from '@mui/x-charts/internals';
5
6
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
@@ -25,7 +26,7 @@ export interface HeatmapSlots extends ChartsAxisSlots, ChartsOverlaySlots, Heatm
25
26
  legend?: ChartsLegendSlots['legend'];
26
27
  }
27
28
  export interface HeatmapSlotProps extends ChartsAxisSlotProps, ChartsOverlaySlotProps, HeatmapItemSlotProps, ChartsLegendSlotProps, ChartsToolbarProSlotProps, Partial<ChartsSlotPropsPro> {
28
- tooltip?: Partial<HeatmapTooltipProps> & TooltipPropsOverrides;
29
+ tooltip?: WithDataAttributes<Partial<HeatmapTooltipProps> & TooltipPropsOverrides>;
29
30
  }
30
31
  export type HeatmapSeries = MakeOptional<HeatmapSeriesType, 'type'>;
31
32
  export interface HeatmapProps extends Omit<ChartsContainerProProps<'heatmap', HeatmapPluginSignatures>, 'series' | 'plugins' | 'xAxis' | 'yAxis' | 'axesGap' | 'skipAnimation' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange' | 'seriesConfig' | 'onAxisClick'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'> {
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { SeriesId } from '@mui/x-charts/internals';
3
4
  import type { HeatmapCellProps } from "./HeatmapCell.mjs";
4
5
  import type { CellPropsOverrides } from "../models/chartsSlotsComponentsPropsPro.mjs";
@@ -10,7 +11,7 @@ export interface HeatmapItemSlots {
10
11
  cell?: React.ElementType<HeatmapCellProps & CellPropsOverrides>;
11
12
  }
12
13
  export interface HeatmapItemSlotProps {
13
- cell?: Partial<HeatmapCellProps> & CellPropsOverrides;
14
+ cell?: WithDataAttributes<Partial<HeatmapCellProps> & CellPropsOverrides>;
14
15
  }
15
16
  export interface HeatmapItemProps {
16
17
  seriesId: SeriesId;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { SeriesId } from '@mui/x-charts/internals';
3
4
  import type { HeatmapCellProps } from "./HeatmapCell.js";
4
5
  import type { CellPropsOverrides } from "../models/chartsSlotsComponentsPropsPro.js";
@@ -10,7 +11,7 @@ export interface HeatmapItemSlots {
10
11
  cell?: React.ElementType<HeatmapCellProps & CellPropsOverrides>;
11
12
  }
12
13
  export interface HeatmapItemSlotProps {
13
- cell?: Partial<HeatmapCellProps> & CellPropsOverrides;
14
+ cell?: WithDataAttributes<Partial<HeatmapCellProps> & CellPropsOverrides>;
14
15
  }
15
16
  export interface HeatmapItemProps {
16
17
  seriesId: SeriesId;
@@ -1,2 +1,2 @@
1
1
  import type { HeatmapTooltipProps } from "./HeatmapTooltip.types.mjs";
2
- export declare const useUtilityClasses: (props: Pick<HeatmapTooltipProps, "classes">) => Record<"mark" | "table" | "cell" | "row" | "root" | "paper" | "markContainer" | "labelCell" | "valueCell", string>;
2
+ export declare const useUtilityClasses: (props: Pick<HeatmapTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
@@ -1,2 +1,2 @@
1
1
  import type { HeatmapTooltipProps } from "./HeatmapTooltip.types.js";
2
- export declare const useUtilityClasses: (props: Pick<HeatmapTooltipProps, "classes">) => Record<"mark" | "table" | "cell" | "row" | "root" | "paper" | "markContainer" | "labelCell" | "valueCell", string>;
2
+ export declare const useUtilityClasses: (props: Pick<HeatmapTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
@@ -1,3 +1,4 @@
1
+ import type { WithDataAttributes } from '@mui/utils/types';
1
2
  import type { ChartsTooltipContainerProps, ChartsTooltipClasses } from '@mui/x-charts/ChartsTooltip';
2
3
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
3
4
  export interface HeatmapTooltipSlots {
@@ -12,7 +13,7 @@ export interface HeatmapTooltipSlotProps {
12
13
  * Custom component for the tooltip popper.
13
14
  * @default ChartsTooltipRoot
14
15
  */
15
- tooltip?: Partial<HeatmapTooltipProps> & TooltipPropsOverrides;
16
+ tooltip?: WithDataAttributes<Partial<HeatmapTooltipProps> & TooltipPropsOverrides>;
16
17
  }
17
18
  export interface HeatmapTooltipClasses extends ChartsTooltipClasses {}
18
19
  export interface HeatmapTooltipContentClasses extends ChartsTooltipClasses {}
@@ -1,3 +1,4 @@
1
+ import type { WithDataAttributes } from '@mui/utils/types';
1
2
  import type { ChartsTooltipContainerProps, ChartsTooltipClasses } from '@mui/x-charts/ChartsTooltip';
2
3
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
3
4
  export interface HeatmapTooltipSlots {
@@ -12,7 +13,7 @@ export interface HeatmapTooltipSlotProps {
12
13
  * Custom component for the tooltip popper.
13
14
  * @default ChartsTooltipRoot
14
15
  */
15
- tooltip?: Partial<HeatmapTooltipProps> & TooltipPropsOverrides;
16
+ tooltip?: WithDataAttributes<Partial<HeatmapTooltipProps> & TooltipPropsOverrides>;
16
17
  }
17
18
  export interface HeatmapTooltipClasses extends ChartsTooltipClasses {}
18
19
  export interface HeatmapTooltipContentClasses extends ChartsTooltipClasses {}
@@ -3,8 +3,8 @@ import type { HighlightItemIdentifier } from '@mui/x-charts/models';
3
3
  /**
4
4
  * The isHighlighted logic for main charts (those that are identified by an id and a dataIndex)
5
5
  */
6
- export declare function createIsHighlighted(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<"heatmap"> | null) => boolean;
6
+ export declare function createIsHighlighted(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<'heatmap'> | null) => boolean;
7
7
  /**
8
8
  * The isFade logic for main charts (those that are identified by an id and a dataIndex)
9
9
  */
10
- export declare function createIsFaded(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<"heatmap"> | null) => boolean;
10
+ export declare function createIsFaded(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<'heatmap'> | null) => boolean;
@@ -3,8 +3,8 @@ import type { HighlightItemIdentifier } from '@mui/x-charts/models';
3
3
  /**
4
4
  * The isHighlighted logic for main charts (those that are identified by an id and a dataIndex)
5
5
  */
6
- export declare function createIsHighlighted(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<"heatmap"> | null) => boolean;
6
+ export declare function createIsHighlighted(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<'heatmap'> | null) => boolean;
7
7
  /**
8
8
  * The isFade logic for main charts (those that are identified by an id and a dataIndex)
9
9
  */
10
- export declare function createIsFaded(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<"heatmap"> | null) => boolean;
10
+ export declare function createIsFaded(highlightScope: HighlightScope<'heatmap'> | null | undefined, highlightedItem: HighlightItemIdentifier<'heatmap'> | null): (item: HighlightItemIdentifier<'heatmap'> | null) => boolean;
@@ -1,2 +1,2 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.mjs";
2
- export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, "classes">) => Record<"mark" | "table" | "cell" | "row" | "root" | "paper" | "markContainer" | "labelCell" | "valueCell", string>;
2
+ export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
@@ -1,2 +1,2 @@
1
1
  import type { SankeyTooltipProps } from "./SankeyTooltip.types.js";
2
- export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, "classes">) => Record<"mark" | "table" | "cell" | "row" | "root" | "paper" | "markContainer" | "labelCell" | "valueCell", string>;
2
+ export declare const useUtilityClasses: (props: Pick<SankeyTooltipProps, 'classes'>) => Record<"cell" | "labelCell" | "mark" | "markContainer" | "paper" | "root" | "row" | "table" | "valueCell", string>;
@@ -23,4 +23,4 @@ export declare function getSankeyUtilityClass(slot: string): string;
23
23
  export declare const sankeyClasses: SankeyClasses;
24
24
  export declare const useUtilityClasses: (options?: {
25
25
  classes?: Partial<SankeyClasses>;
26
- }) => Record<"nodes" | "links" | "node" | "link" | "root" | "nodeLabels" | "linkLabels" | "nodeLabel" | "linkLabel", string>;
26
+ }) => Record<"link" | "linkLabel" | "linkLabels" | "links" | "node" | "nodeLabel" | "nodeLabels" | "nodes" | "root", string>;
@@ -23,4 +23,4 @@ export declare function getSankeyUtilityClass(slot: string): string;
23
23
  export declare const sankeyClasses: SankeyClasses;
24
24
  export declare const useUtilityClasses: (options?: {
25
25
  classes?: Partial<SankeyClasses>;
26
- }) => Record<"nodes" | "links" | "node" | "link" | "root" | "nodeLabels" | "linkLabels" | "nodeLabel" | "linkLabel", string>;
26
+ }) => Record<"link" | "linkLabel" | "linkLabels" | "links" | "node" | "nodeLabel" | "nodeLabels" | "nodes" | "root", string>;
@@ -1,3 +1,3 @@
1
1
  import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
2
2
  import type { SankeyHighlightScope } from "../sankey.highlight.types.mjs";
3
- export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<"sankey"> | null) => boolean;
3
+ export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<'sankey'> | null) => boolean;
@@ -1,3 +1,3 @@
1
1
  import type { HighlightItemIdentifierWithType } from '@mui/x-charts/models';
2
2
  import type { SankeyHighlightScope } from "../sankey.highlight.types.js";
3
- export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<"sankey"> | null) => boolean;
3
+ export declare function createSankeyIsFaded(highlightScope: SankeyHighlightScope | null | undefined, highlightedItem: HighlightItemIdentifierWithType<'sankey'> | null): (item: HighlightItemIdentifierWithType<'sankey'> | null) => boolean;
@@ -1,3 +1,3 @@
1
- import { sankeyJustify } from "./d3Sankey/index.mjs";
1
+ import { sankeyRight } from "./d3Sankey/index.mjs";
2
2
  import type { SankeyNodeOptions } from "./sankey.types.mjs";
3
- export declare const getNodeAlignFunction: (align?: SankeyNodeOptions["align"]) => typeof sankeyJustify;
3
+ export declare const getNodeAlignFunction: (align?: SankeyNodeOptions['align']) => typeof sankeyRight;
@@ -1,3 +1,3 @@
1
- import { sankeyJustify } from "./d3Sankey/index.js";
1
+ import { sankeyRight } from "./d3Sankey/index.js";
2
2
  import type { SankeyNodeOptions } from "./sankey.types.js";
3
- export declare const getNodeAlignFunction: (align?: SankeyNodeOptions["align"]) => typeof sankeyJustify;
3
+ export declare const getNodeAlignFunction: (align?: SankeyNodeOptions['align']) => typeof sankeyRight;
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
4
  import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
5
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
@@ -12,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
12
13
  * Slot props for the tooltip component.
13
14
  * @default {}
14
15
  */
15
- tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides;
16
+ tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
16
17
  }
17
18
  export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
18
19
  /**
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import type { WithDataAttributes } from '@mui/utils/types';
2
3
  import type { ScatterChartProps, ScatterChartSlotProps, ScatterChartSlots } from '@mui/x-charts/ScatterChart';
3
4
  import type { ChartsTooltipProps } from '@mui/x-charts/ChartsTooltip';
4
5
  import type { TooltipPropsOverrides } from '@mui/x-charts/models';
@@ -12,7 +13,7 @@ export interface ScatterChartProSlotProps extends Omit<ScatterChartSlotProps, 't
12
13
  * Slot props for the tooltip component.
13
14
  * @default {}
14
15
  */
15
- tooltip?: Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides;
16
+ tooltip?: WithDataAttributes<Partial<ChartsTooltipProps<'item' | 'none'>> & TooltipPropsOverrides>;
16
17
  }
17
18
  export interface ScatterChartProProps extends Omit<ScatterChartProps, 'apiRef' | 'slots' | 'slotProps' | 'plugins' | 'seriesConfig'>, Omit<ChartsContainerProProps<'scatter', ScatterChartProPluginSignatures>, 'series' | 'onItemClick' | 'slots' | 'slotProps' | 'highlightedAxis' | 'onHighlightedAxisChange'> {
18
19
  /**
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v9.9.0
2
+ * @mui/x-charts-pro v9.10.1
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-charts-pro v9.9.0
2
+ * @mui/x-charts-pro v9.10.1
3
3
  *
4
4
  * @license SEE LICENSE IN LICENSE
5
5
  * This source code is licensed under the SEE LICENSE IN LICENSE license found in the
@@ -3,7 +3,7 @@ import type { UseChartProExportSignature } from "./useChartProExport/index.mjs";
3
3
  import type { UseChartProZoomSignature } from "./useChartProZoom/index.mjs";
4
4
  export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
5
5
  export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
6
- export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
6
+ export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
7
7
  export type DefaultPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
8
8
  export type DefaultPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<SeriesType>>;
9
- export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
9
+ export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
@@ -3,7 +3,7 @@ import type { UseChartProExportSignature } from "./useChartProExport/index.js";
3
3
  import type { UseChartProZoomSignature } from "./useChartProZoom/index.js";
4
4
  export type AllPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
5
5
  export type AllPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<AllPluginSignatures<SeriesType>>;
6
- export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
6
+ export declare const ALL_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartPolarAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
7
7
  export type DefaultPluginSignatures<SeriesType extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature<SeriesType>, UseChartInteractionSignature, UseChartCartesianAxisSignature<SeriesType>, UseChartPolarAxisSignature<SeriesType>, UseChartHighlightSignature<SeriesType>, UseChartVisibilityManagerSignature<SeriesType>, UseChartProZoomSignature, UseChartProExportSignature, UseChartVisibilityManagerSignature<SeriesType>, UseProgressiveRenderingSignature];
8
8
  export type DefaultPluginsType<SeriesType extends ChartSeriesType = ChartSeriesType> = ConvertSignaturesIntoPlugins<DefaultPluginSignatures<SeriesType>>;
9
- export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>>)[];
9
+ export declare const DEFAULT_PLUGINS: (import("@mui/x-charts/internals").ChartPlugin<UseChartBrushSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartCartesianAxisSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartHighlightSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartInteractionSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProExportSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartProZoomSignature> | import("@mui/x-charts/internals").ChartPlugin<UseChartTooltipSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartVisibilityManagerSignature<any>> | import("@mui/x-charts/internals").ChartPlugin<UseChartZAxisSignature> | import("@mui/x-charts/internals").ChartPlugin<UseProgressiveRenderingSignature>)[];
@@ -1,25 +1,25 @@
1
1
  export declare const selectorZoomInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
2
2
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
3
- }, interactionName: "wheel" | "pinch" | "tapAndDrag" | "doubleTapReset" | "brush") => (Omit<{
4
- type: "wheel";
3
+ }, interactionName: "brush" | "doubleTapReset" | "pinch" | "tapAndDrag" | "wheel") => (Omit<{
4
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
5
5
  pointerMode?: any;
6
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
6
+ type: 'wheel';
7
7
  } | {
8
- type: "pinch";
8
+ requiredKeys?: any[];
9
9
  pointerMode?: any;
10
- requiredKeys?: any[] | undefined;
10
+ type: 'pinch';
11
11
  } | {
12
- type: "tapAndDrag";
13
- pointerMode?: ("mouse" | "touch") | undefined;
14
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
12
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
13
+ pointerMode?: "mouse" | "touch";
14
+ type: 'tapAndDrag';
15
15
  } | {
16
- type: "doubleTapReset";
17
- pointerMode?: ("mouse" | "touch") | undefined;
18
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
16
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
17
+ pointerMode?: "mouse" | "touch";
18
+ type: 'doubleTapReset';
19
19
  } | {
20
- type: "brush";
21
- pointerMode?: ("mouse" | "touch") | undefined;
22
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
20
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
21
+ pointerMode?: "mouse" | "touch";
22
+ type: 'brush';
23
23
  }, "pointerMode"> & {
24
24
  mouse: {
25
25
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
@@ -28,23 +28,23 @@ export declare const selectorZoomInteractionConfig: (args_0: import("@mui/x-char
28
28
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
29
29
  };
30
30
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
31
- allowedDirection?: "x" | "y" | "xy";
31
+ allowedDirection?: 'x' | 'y' | 'xy';
32
32
  }) | null;
33
33
  export declare const selectorPanInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.mjs").UseChartProZoomState & Partial<{}> & {
34
34
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
35
- }, interactionName: "wheel" | "drag" | "pressAndDrag") => (Omit<{
36
- type: "drag";
37
- pointerMode?: ("mouse" | "touch") | undefined;
38
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
35
+ }, interactionName: "drag" | "pressAndDrag" | "wheel") => (Omit<{
36
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
37
+ pointerMode?: "mouse" | "touch";
38
+ type: 'drag';
39
39
  } | {
40
- type: "pressAndDrag";
41
- pointerMode?: ("mouse" | "touch") | undefined;
42
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
40
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
41
+ pointerMode?: "mouse" | "touch";
42
+ type: 'pressAndDrag';
43
43
  } | {
44
- type: "wheel";
45
- allowedDirection?: "x" | "y" | "xy" | undefined;
44
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
46
45
  pointerMode?: any;
47
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
46
+ type: 'wheel';
47
+ allowedDirection?: 'x' | 'y' | 'xy';
48
48
  }, "pointerMode"> & {
49
49
  mouse: {
50
50
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
@@ -53,5 +53,5 @@ export declare const selectorPanInteractionConfig: (args_0: import("@mui/x-chart
53
53
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
54
54
  };
55
55
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
56
- allowedDirection?: "x" | "y" | "xy";
56
+ allowedDirection?: 'x' | 'y' | 'xy';
57
57
  }) | null;
@@ -1,25 +1,25 @@
1
1
  export declare const selectorZoomInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
2
2
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
3
- }, interactionName: "wheel" | "pinch" | "tapAndDrag" | "doubleTapReset" | "brush") => (Omit<{
4
- type: "wheel";
3
+ }, interactionName: "brush" | "doubleTapReset" | "pinch" | "tapAndDrag" | "wheel") => (Omit<{
4
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
5
5
  pointerMode?: any;
6
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
6
+ type: 'wheel';
7
7
  } | {
8
- type: "pinch";
8
+ requiredKeys?: any[];
9
9
  pointerMode?: any;
10
- requiredKeys?: any[] | undefined;
10
+ type: 'pinch';
11
11
  } | {
12
- type: "tapAndDrag";
13
- pointerMode?: ("mouse" | "touch") | undefined;
14
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
12
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
13
+ pointerMode?: "mouse" | "touch";
14
+ type: 'tapAndDrag';
15
15
  } | {
16
- type: "doubleTapReset";
17
- pointerMode?: ("mouse" | "touch") | undefined;
18
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
16
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
17
+ pointerMode?: "mouse" | "touch";
18
+ type: 'doubleTapReset';
19
19
  } | {
20
- type: "brush";
21
- pointerMode?: ("mouse" | "touch") | undefined;
22
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
20
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
21
+ pointerMode?: "mouse" | "touch";
22
+ type: 'brush';
23
23
  }, "pointerMode"> & {
24
24
  mouse: {
25
25
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
@@ -28,23 +28,23 @@ export declare const selectorZoomInteractionConfig: (args_0: import("@mui/x-char
28
28
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
29
29
  };
30
30
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
31
- allowedDirection?: "x" | "y" | "xy";
31
+ allowedDirection?: 'x' | 'y' | 'xy';
32
32
  }) | null;
33
33
  export declare const selectorPanInteractionConfig: (args_0: import("@mui/x-charts/internals/plugins/corePlugins/useChartId/useChartId.types").UseChartIdState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types").UseChartSeriesConfigState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types").UseChartExperimentalFeaturesState & import("@mui/x-charts/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("@mui/x-charts/internals/plugins/corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("@mui/x-charts/internals").ChartsSeriesConfig> & import("@mui/x-charts/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types").UseChartAnimationState & import("@mui/x-charts/internals").UseChartInteractionListenerState & import("./useChartProZoom.types.js").UseChartProZoomState & Partial<{}> & {
34
34
  cacheKey: import("@mui/x-charts/internals").ChartStateCacheKey;
35
- }, interactionName: "wheel" | "drag" | "pressAndDrag") => (Omit<{
36
- type: "drag";
37
- pointerMode?: ("mouse" | "touch") | undefined;
38
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
35
+ }, interactionName: "drag" | "pressAndDrag" | "wheel") => (Omit<{
36
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
37
+ pointerMode?: "mouse" | "touch";
38
+ type: 'drag';
39
39
  } | {
40
- type: "pressAndDrag";
41
- pointerMode?: ("mouse" | "touch") | undefined;
42
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
40
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
41
+ pointerMode?: "mouse" | "touch";
42
+ type: 'pressAndDrag';
43
43
  } | {
44
- type: "wheel";
45
- allowedDirection?: "x" | "y" | "xy" | undefined;
44
+ requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
46
45
  pointerMode?: any;
47
- requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[] | undefined;
46
+ type: 'wheel';
47
+ allowedDirection?: 'x' | 'y' | 'xy';
48
48
  }, "pointerMode"> & {
49
49
  mouse: {
50
50
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
@@ -53,5 +53,5 @@ export declare const selectorPanInteractionConfig: (args_0: import("@mui/x-chart
53
53
  requiredKeys?: import("@mui/x-internal-gestures/core").KeyboardKey[];
54
54
  };
55
55
  pointerMode?: import("@mui/x-internal-gestures/core").PointerMode[];
56
- allowedDirection?: "x" | "y" | "xy";
56
+ allowedDirection?: 'x' | 'y' | 'xy';
57
57
  }) | null;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const usePanOnDrag: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const usePanOnDrag: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const usePanOnPressAndDrag: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const usePanOnPressAndDrag: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const usePanOnWheel: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const usePanOnWheel: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnBrush: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<(prev: ZoomData[]) => ZoomData[]>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<(prev: ZoomData[]) => ZoomData[]>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnBrush: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<(prev: ZoomData[]) => ZoomData[]>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<(prev: ZoomData[]) => ZoomData[]>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnDoubleTapReset: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnDoubleTapReset: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const useZoomOnPinch: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const useZoomOnPinch: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
4
4
  export declare const useZoomOnTapAndDrag: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -4,4 +4,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
4
4
  export declare const useZoomOnTapAndDrag: ({
5
5
  store,
6
6
  instance
7
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
7
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.mjs";
3
3
  export declare const useZoomOnWheel: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
@@ -3,4 +3,4 @@ import type { UseChartProZoomSignature } from "../useChartProZoom.types.js";
3
3
  export declare const useZoomOnWheel: ({
4
4
  store,
5
5
  instance
6
- }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], "store" | "instance">, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
6
+ }: Pick<Parameters<ChartPlugin<UseChartProZoomSignature>>[0], 'store' | 'instance'>, setZoomDataCallback: React.Dispatch<ZoomData[] | ((prev: ZoomData[]) => ZoomData[])>) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "9.9.0",
3
+ "version": "9.10.1",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Charts components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -32,10 +32,10 @@
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
34
  "@mui/x-charts-vendor": "^9.4.0",
35
- "@mui/x-charts": "^9.9.0",
36
- "@mui/x-internal-gestures": "^9.9.0",
37
- "@mui/x-license": "^9.9.0",
38
- "@mui/x-internals": "^9.9.0"
35
+ "@mui/x-license": "^9.10.1",
36
+ "@mui/x-internal-gestures": "^9.10.0",
37
+ "@mui/x-internals": "^9.10.1",
38
+ "@mui/x-charts": "^9.10.1"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@emotion/react": "^11.9.0",