@mui/x-charts-premium 9.2.0 → 9.4.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 (214) hide show
  1. package/BarChartPremium/BarChartPremium.js +65 -35
  2. package/BarChartPremium/BarChartPremium.mjs +65 -35
  3. package/BarChartPremium/RangeBar/RangeBarPlot.d.mts +10 -0
  4. package/BarChartPremium/RangeBar/RangeBarPlot.d.ts +10 -0
  5. package/BarChartPremium/RangeBar/RangeBarPlot.js +59 -2
  6. package/BarChartPremium/RangeBar/RangeBarPlot.mjs +59 -2
  7. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.mts +10 -0
  8. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.d.ts +10 -0
  9. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.js +82 -0
  10. package/BarChartPremium/RangeBar/RangeBarWebGLPlot.mjs +76 -0
  11. package/BarChartPremium/RangeBar/seriesConfig/extrema.js +3 -0
  12. package/BarChartPremium/RangeBar/seriesConfig/extrema.mjs +3 -0
  13. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.js +2 -2
  14. package/BarChartPremium/RangeBar/seriesConfig/seriesProcessor.mjs +2 -2
  15. package/BarChartPremium/useBarChartPremiumProps.js +2 -1
  16. package/BarChartPremium/useBarChartPremiumProps.mjs +2 -1
  17. package/BarChartPremium/webgl/useBarWebGLPlotData.d.mts +2 -7
  18. package/BarChartPremium/webgl/useBarWebGLPlotData.d.ts +2 -7
  19. package/BarChartPremium/webgl/useBarWebGLPlotData.js +4 -151
  20. package/BarChartPremium/webgl/useBarWebGLPlotData.mjs +4 -150
  21. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.mts +39 -0
  22. package/BarChartPremium/webgl/useWebGLBarLikePlotData.d.ts +39 -0
  23. package/BarChartPremium/webgl/useWebGLBarLikePlotData.js +169 -0
  24. package/BarChartPremium/webgl/useWebGLBarLikePlotData.mjs +163 -0
  25. package/CHANGELOG.md +314 -0
  26. package/CandlestickChart/CandlestickChart.js +36 -27
  27. package/CandlestickChart/CandlestickChart.mjs +36 -27
  28. package/CandlestickChart/seriesConfig/extrema.js +3 -0
  29. package/CandlestickChart/seriesConfig/extrema.mjs +3 -0
  30. package/CandlestickChart/seriesConfig/seriesProcessor.js +2 -2
  31. package/CandlestickChart/seriesConfig/seriesProcessor.mjs +2 -2
  32. package/ChartsDataProviderPremium/ChartsDataProviderPremium.js +2 -2
  33. package/ChartsDataProviderPremium/ChartsDataProviderPremium.mjs +2 -2
  34. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.mts +35 -0
  35. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.d.ts +35 -0
  36. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.js +125 -0
  37. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.mjs +119 -0
  38. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.mts +5 -0
  39. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.d.ts +5 -0
  40. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.js +10 -0
  41. package/ChartsGeoDataProviderPremium/ChartsGeoDataProviderPremium.plugins.mjs +4 -0
  42. package/ChartsGeoDataProviderPremium/index.d.mts +3 -0
  43. package/ChartsGeoDataProviderPremium/index.d.ts +3 -0
  44. package/ChartsGeoDataProviderPremium/index.js +20 -0
  45. package/ChartsGeoDataProviderPremium/index.mjs +3 -0
  46. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.mts +10 -0
  47. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.d.ts +10 -0
  48. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.js +49 -0
  49. package/ChartsGeoDataProviderPremium/useChartsGeoDataProviderPremiumProps.mjs +42 -0
  50. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.js +2 -2
  51. package/ChartsRadialDataProviderPremium/ChartsRadialDataProviderPremium.mjs +2 -2
  52. package/HeatmapPremium/HeatmapPremium.js +52 -22
  53. package/HeatmapPremium/HeatmapPremium.mjs +52 -22
  54. package/Map/FocusedMapShape.d.mts +4 -0
  55. package/Map/FocusedMapShape.d.ts +4 -0
  56. package/Map/FocusedMapShape.js +66 -0
  57. package/Map/FocusedMapShape.mjs +60 -0
  58. package/Map/GeoDataPlot.d.mts +26 -0
  59. package/Map/GeoDataPlot.d.ts +26 -0
  60. package/Map/GeoDataPlot.js +65 -0
  61. package/Map/GeoDataPlot.mjs +60 -0
  62. package/Map/Graticule.d.mts +1 -0
  63. package/Map/Graticule.d.ts +1 -0
  64. package/Map/Graticule.js +30 -0
  65. package/Map/Graticule.mjs +24 -0
  66. package/Map/MapShape.d.mts +10 -0
  67. package/Map/MapShape.d.ts +10 -0
  68. package/Map/MapShape.js +55 -0
  69. package/Map/MapShape.mjs +49 -0
  70. package/Map/MapShapePlot.d.mts +21 -0
  71. package/Map/MapShapePlot.d.ts +21 -0
  72. package/Map/MapShapePlot.js +86 -0
  73. package/Map/MapShapePlot.mjs +80 -0
  74. package/Map/index.d.mts +7 -0
  75. package/Map/index.d.ts +7 -0
  76. package/Map/index.js +60 -0
  77. package/Map/index.mjs +8 -0
  78. package/Map/seriesConfig/descriptionGetter.d.mts +3 -0
  79. package/Map/seriesConfig/descriptionGetter.d.ts +3 -0
  80. package/Map/seriesConfig/descriptionGetter.js +19 -0
  81. package/Map/seriesConfig/descriptionGetter.mjs +13 -0
  82. package/Map/seriesConfig/getColor.d.mts +3 -0
  83. package/Map/seriesConfig/getColor.d.ts +3 -0
  84. package/Map/seriesConfig/getColor.js +35 -0
  85. package/Map/seriesConfig/getColor.mjs +29 -0
  86. package/Map/seriesConfig/getSeriesWithDefaultValues.d.mts +3 -0
  87. package/Map/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
  88. package/Map/seriesConfig/getSeriesWithDefaultValues.js +15 -0
  89. package/Map/seriesConfig/getSeriesWithDefaultValues.mjs +8 -0
  90. package/Map/seriesConfig/index.d.mts +2 -0
  91. package/Map/seriesConfig/index.d.ts +2 -0
  92. package/Map/seriesConfig/index.js +28 -0
  93. package/Map/seriesConfig/index.mjs +21 -0
  94. package/Map/seriesConfig/keyboardFocusHandler.d.mts +9 -0
  95. package/Map/seriesConfig/keyboardFocusHandler.d.ts +9 -0
  96. package/Map/seriesConfig/keyboardFocusHandler.js +19 -0
  97. package/Map/seriesConfig/keyboardFocusHandler.mjs +13 -0
  98. package/Map/seriesConfig/legend.d.mts +3 -0
  99. package/Map/seriesConfig/legend.d.ts +3 -0
  100. package/Map/seriesConfig/legend.js +28 -0
  101. package/Map/seriesConfig/legend.mjs +22 -0
  102. package/Map/seriesConfig/seriesProcessor.d.mts +3 -0
  103. package/Map/seriesConfig/seriesProcessor.d.ts +3 -0
  104. package/Map/seriesConfig/seriesProcessor.js +66 -0
  105. package/Map/seriesConfig/seriesProcessor.mjs +59 -0
  106. package/Map/seriesConfig/tooltip.d.mts +3 -0
  107. package/Map/seriesConfig/tooltip.d.ts +3 -0
  108. package/Map/seriesConfig/tooltip.js +33 -0
  109. package/Map/seriesConfig/tooltip.mjs +27 -0
  110. package/RadialBarChart/RadialBarChart.js +10 -10
  111. package/RadialBarChart/RadialBarChart.mjs +10 -10
  112. package/RadialBarChart/seriesConfig/getColor.js +7 -51
  113. package/RadialBarChart/seriesConfig/getColor.mjs +8 -52
  114. package/RadialBarChart/seriesConfig/tooltip.js +3 -26
  115. package/RadialBarChart/seriesConfig/tooltip.mjs +4 -27
  116. package/RadialLineChart/RadialArea.d.mts +2 -11
  117. package/RadialLineChart/RadialArea.d.ts +2 -11
  118. package/RadialLineChart/RadialArea.js +4 -3
  119. package/RadialLineChart/RadialArea.mjs +4 -3
  120. package/RadialLineChart/RadialAreaPlot.js +3 -1
  121. package/RadialLineChart/RadialAreaPlot.mjs +3 -1
  122. package/RadialLineChart/RadialLine.d.mts +4 -3
  123. package/RadialLineChart/RadialLine.d.ts +4 -3
  124. package/RadialLineChart/RadialLine.js +4 -3
  125. package/RadialLineChart/RadialLine.mjs +4 -3
  126. package/RadialLineChart/RadialLineChart.d.mts +7 -5
  127. package/RadialLineChart/RadialLineChart.d.ts +7 -5
  128. package/RadialLineChart/RadialLineChart.js +11 -11
  129. package/RadialLineChart/RadialLineChart.mjs +11 -11
  130. package/RadialLineChart/RadialLineHighlightPlot.d.mts +3 -2
  131. package/RadialLineChart/RadialLineHighlightPlot.d.ts +3 -2
  132. package/RadialLineChart/RadialLinePlot.js +3 -1
  133. package/RadialLineChart/RadialLinePlot.mjs +3 -1
  134. package/RadialLineChart/seriesConfig/getColor.js +6 -53
  135. package/RadialLineChart/seriesConfig/getColor.mjs +7 -54
  136. package/RadialLineChart/seriesConfig/seriesProcessor.d.mts +2 -2
  137. package/RadialLineChart/seriesConfig/seriesProcessor.d.ts +2 -2
  138. package/RadialLineChart/seriesConfig/seriesProcessor.js +1 -138
  139. package/RadialLineChart/seriesConfig/seriesProcessor.mjs +2 -138
  140. package/RadialLineChart/seriesConfig/tooltip.js +3 -24
  141. package/RadialLineChart/seriesConfig/tooltip.mjs +4 -25
  142. package/RadialLineChart/useRadialLinePlotData.d.mts +1 -0
  143. package/RadialLineChart/useRadialLinePlotData.d.ts +1 -0
  144. package/RadialLineChart/useRadialLinePlotData.js +3 -1
  145. package/RadialLineChart/useRadialLinePlotData.mjs +3 -1
  146. package/ScatterChartPremium/ScatterChartPremium.d.mts +2 -1
  147. package/ScatterChartPremium/ScatterChartPremium.d.ts +2 -1
  148. package/ScatterChartPremium/ScatterChartPremium.js +62 -32
  149. package/ScatterChartPremium/ScatterChartPremium.mjs +62 -32
  150. package/hooks/index.d.mts +4 -1
  151. package/hooks/index.d.ts +4 -1
  152. package/hooks/index.js +33 -0
  153. package/hooks/index.mjs +4 -1
  154. package/hooks/useGeoData.d.mts +6 -0
  155. package/hooks/useGeoData.d.ts +6 -0
  156. package/hooks/useGeoData.js +17 -0
  157. package/hooks/useGeoData.mjs +13 -0
  158. package/hooks/useGeoFeatureIndexesByName.d.mts +7 -0
  159. package/hooks/useGeoFeatureIndexesByName.d.ts +7 -0
  160. package/hooks/useGeoFeatureIndexesByName.js +19 -0
  161. package/hooks/useGeoFeatureIndexesByName.mjs +15 -0
  162. package/hooks/useGeoPath.d.mts +6 -0
  163. package/hooks/useGeoPath.d.ts +6 -0
  164. package/hooks/useGeoPath.js +17 -0
  165. package/hooks/useGeoPath.mjs +13 -0
  166. package/hooks/useMapShapeSeries.d.mts +34 -0
  167. package/hooks/useMapShapeSeries.d.ts +34 -0
  168. package/hooks/useMapShapeSeries.js +45 -0
  169. package/hooks/useMapShapeSeries.mjs +40 -0
  170. package/index.d.mts +2 -0
  171. package/index.d.ts +2 -0
  172. package/index.js +25 -1
  173. package/index.mjs +3 -1
  174. package/internals/plugins/useGeoProjection/index.d.mts +3 -0
  175. package/internals/plugins/useGeoProjection/index.d.ts +3 -0
  176. package/internals/plugins/useGeoProjection/index.js +38 -0
  177. package/internals/plugins/useGeoProjection/index.mjs +3 -0
  178. package/internals/plugins/useGeoProjection/useGeoProjection.d.mts +3 -0
  179. package/internals/plugins/useGeoProjection/useGeoProjection.d.ts +3 -0
  180. package/internals/plugins/useGeoProjection/useGeoProjection.js +58 -0
  181. package/internals/plugins/useGeoProjection/useGeoProjection.mjs +50 -0
  182. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.mts +39 -0
  183. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.d.ts +39 -0
  184. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.js +135 -0
  185. package/internals/plugins/useGeoProjection/useGeoProjection.selectors.mjs +128 -0
  186. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.mts +55 -0
  187. package/internals/plugins/useGeoProjection/useGeoProjection.types.d.ts +55 -0
  188. package/internals/plugins/useGeoProjection/useGeoProjection.types.js +5 -0
  189. package/internals/plugins/useGeoProjection/useGeoProjection.types.mjs +1 -0
  190. package/models/chartsSlotsComponentsPropsPremium.d.mts +1 -0
  191. package/models/chartsSlotsComponentsPropsPremium.d.ts +1 -0
  192. package/models/chartsSlotsComponentsPropsPremium.js +5 -0
  193. package/models/chartsSlotsComponentsPropsPremium.mjs +1 -0
  194. package/models/index.d.mts +2 -1
  195. package/models/index.d.ts +2 -1
  196. package/models/index.js +11 -0
  197. package/models/index.mjs +2 -1
  198. package/models/seriesType/index.d.mts +2 -1
  199. package/models/seriesType/index.d.ts +2 -1
  200. package/models/seriesType/index.js +11 -0
  201. package/models/seriesType/index.mjs +2 -1
  202. package/models/seriesType/mapShape.d.mts +105 -0
  203. package/models/seriesType/mapShape.d.ts +105 -0
  204. package/models/seriesType/mapShape.js +5 -0
  205. package/models/seriesType/mapShape.mjs +1 -0
  206. package/models/seriesType/radialBar.d.mts +1 -1
  207. package/models/seriesType/radialBar.d.ts +1 -1
  208. package/models/seriesType/radialLine.d.mts +4 -0
  209. package/models/seriesType/radialLine.d.ts +4 -0
  210. package/package.json +34 -6
  211. package/typeOverloads/modules.d.mts +16 -1
  212. package/typeOverloads/modules.d.ts +16 -1
  213. package/utils/webgl/useWebGLResizeObserver.js +3 -3
  214. package/utils/webgl/useWebGLResizeObserver.mjs +2 -2
@@ -0,0 +1,105 @@
1
+ import type { CommonSeriesType, CommonDefaultizedProps, SeriesId, DatasetElementType } from '@mui/x-charts/internals';
2
+ import type { DefaultizedProps } from '@mui/x-internals/types';
3
+ /**
4
+ * A single entry of a `mapShape` series.
5
+ *
6
+ * The `name` is used to join the entry to a feature in the chart's `geoData`
7
+ * (matching `feature.properties.name`).
8
+ */
9
+ export interface MapShapeValueType {
10
+ /**
11
+ * Identifies the GeoJSON feature this entry maps to, via `feature.properties.name`.
12
+ */
13
+ name: string;
14
+ /**
15
+ * Numeric value associated with the feature.
16
+ */
17
+ value?: number;
18
+ /**
19
+ * The value used to compute the color of the item through a color axis.
20
+ * Falls back to `value` when no `colorValue` is provided.
21
+ */
22
+ colorValue?: any;
23
+ /**
24
+ * Label used in legends and tooltips.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Color used for the item. Fallback on the series color if not defined.
29
+ */
30
+ color?: string;
31
+ }
32
+ export interface MapShapeSeriesType extends Omit<CommonSeriesType<MapShapeValueType, 'mapShape'>, 'valueFormatter'> {
33
+ type: 'mapShape';
34
+ /**
35
+ * The data points to render. Each entry is joined to a feature in `geoData`
36
+ * through its `name` property.
37
+ */
38
+ data?: ReadonlyArray<MapShapeValueType>;
39
+ /**
40
+ * The label to display on the tooltip or the legend. It can be a string or a function.
41
+ */
42
+ label?: string | ((location: 'tooltip' | 'legend') => string);
43
+ /**
44
+ * The id of the color axis used to compute the color of the shapes.
45
+ * It points to the id of an axis defined with the `zAxis` prop.
46
+ */
47
+ colorAxisId?: string;
48
+ /**
49
+ * A function to extract and transform the value from the `dataset` item.
50
+ * It receives the full dataset item and should return a map shape value.
51
+ * Can be used as an alternative to `datasetKeys`.
52
+ * @param {DatasetElementType<unknown>} item The full dataset item.
53
+ * @returns {MapShapeValueType} The transformed value.
54
+ */
55
+ valueGetter?: (item: DatasetElementType<unknown>) => MapShapeValueType;
56
+ /**
57
+ * The keys used to retrieve data from the dataset.
58
+ *
59
+ * When this prop is provided, `name` is required to match each entry with a
60
+ * GeoJSON feature. `label`, `value`, and `colorValue` are optional.
61
+ */
62
+ datasetKeys?: {
63
+ /**
64
+ * The key used to retrieve the feature name from the dataset.
65
+ */
66
+ name: string;
67
+ /**
68
+ * The key used to retrieve the item label from the dataset.
69
+ */
70
+ label?: string;
71
+ /**
72
+ * The key used to retrieve the item numeric value from the dataset.
73
+ */
74
+ value?: string;
75
+ /**
76
+ * The key used to retrieve the color value from the dataset.
77
+ */
78
+ colorValue?: string;
79
+ };
80
+ /**
81
+ * Formatter used to render values in tooltips or other data displays.
82
+ * @param {MapShapeValueType} value The data entry to format.
83
+ * @param {object} context The rendering context.
84
+ * @param {number} context.dataIndex The index of the data point in the series.
85
+ * @returns {string | null} The string to display, or `null` if the value should not be shown.
86
+ */
87
+ valueFormatter?: (value: MapShapeValueType, context: {
88
+ dataIndex: number;
89
+ }) => string | null;
90
+ }
91
+ /**
92
+ * Identifies a single item in a `mapShape` series.
93
+ */
94
+ export type MapShapeItemIdentifier = {
95
+ type: 'mapShape';
96
+ seriesId: SeriesId;
97
+ dataIndex: number;
98
+ };
99
+ export type DefaultizedMapShapeValueType = MapShapeValueType & {
100
+ hidden: boolean;
101
+ };
102
+ export interface DefaultizedMapShapeSeriesType extends Omit<DefaultizedProps<MapShapeSeriesType, CommonDefaultizedProps | 'color'>, 'data'> {
103
+ hidden: boolean;
104
+ data: ReadonlyArray<DefaultizedMapShapeValueType>;
105
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { CommonSeriesType, CommonBarSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
2
2
  import type { StackOffsetType } from '@mui/x-charts/models';
3
3
  import type { DefaultizedProps } from '@mui/x-internals/types';
4
- export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'bar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
4
+ export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'radialBar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
5
5
  type: 'radialBar';
6
6
  /**
7
7
  * Defines how stacked series handle negative values.
@@ -1,7 +1,7 @@
1
1
  import type { CommonSeriesType, CommonBarSeriesType, RadialSeriesType, StackableSeriesType, SeriesId, CommonDefaultizedProps } from '@mui/x-charts/internals';
2
2
  import type { StackOffsetType } from '@mui/x-charts/models';
3
3
  import type { DefaultizedProps } from '@mui/x-internals/types';
4
- export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'bar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
4
+ export interface RadialBarSeriesType extends CommonSeriesType<number | null, 'radialBar'>, RadialSeriesType, StackableSeriesType, CommonBarSeriesType {
5
5
  type: 'radialBar';
6
6
  /**
7
7
  * Defines how stacked series handle negative values.
@@ -14,6 +14,10 @@ export interface RadialLineSeriesType extends CommonSeriesType<number | null, 'l
14
14
  * @default 'linear'
15
15
  */
16
16
  curve?: CurveType;
17
+ /**
18
+ * If `true`, the line will be closed by connecting the last point to the first one.
19
+ */
20
+ closePath?: boolean;
17
21
  }
18
22
  /**
19
23
  * An object that allows to identify a single line.
@@ -14,6 +14,10 @@ export interface RadialLineSeriesType extends CommonSeriesType<number | null, 'l
14
14
  * @default 'linear'
15
15
  */
16
16
  curve?: CurveType;
17
+ /**
18
+ * If `true`, the line will be closed by connecting the last point to the first one.
19
+ */
20
+ closePath?: boolean;
17
21
  }
18
22
  /**
19
23
  * An object that allows to identify a single line.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-premium",
3
- "version": "9.2.0",
3
+ "version": "9.4.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The Premium plan edition of the MUI X Charts components.",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -27,14 +27,14 @@
27
27
  "directory": "packages/x-charts-premium"
28
28
  },
29
29
  "dependencies": {
30
- "@babel/runtime": "^7.29.2",
30
+ "@babel/runtime": "^7.29.7",
31
31
  "@mui/utils": "9.0.1",
32
32
  "clsx": "^2.1.1",
33
33
  "prop-types": "^15.8.1",
34
- "@mui/x-charts": "^9.2.0",
35
- "@mui/x-charts-pro": "^9.2.0",
36
- "@mui/x-charts-vendor": "^9.0.0",
37
- "@mui/x-license": "^9.2.0",
34
+ "@mui/x-charts": "^9.4.0",
35
+ "@mui/x-charts-pro": "^9.4.0",
36
+ "@mui/x-license": "^9.4.0",
37
+ "@mui/x-charts-vendor": "^9.4.0",
38
38
  "@mui/x-internals": "^9.1.0"
39
39
  },
40
40
  "peerDependencies": {
@@ -300,6 +300,20 @@
300
300
  "default": "./ChartsDataProviderPro/index.mjs"
301
301
  }
302
302
  },
303
+ "./ChartsGeoDataProviderPremium": {
304
+ "import": {
305
+ "types": "./ChartsGeoDataProviderPremium/index.d.mts",
306
+ "default": "./ChartsGeoDataProviderPremium/index.mjs"
307
+ },
308
+ "require": {
309
+ "types": "./ChartsGeoDataProviderPremium/index.d.ts",
310
+ "default": "./ChartsGeoDataProviderPremium/index.js"
311
+ },
312
+ "default": {
313
+ "types": "./ChartsGeoDataProviderPremium/index.d.mts",
314
+ "default": "./ChartsGeoDataProviderPremium/index.mjs"
315
+ }
316
+ },
303
317
  "./ChartsGrid": {
304
318
  "import": {
305
319
  "types": "./ChartsGrid/index.d.mts",
@@ -720,6 +734,20 @@
720
734
  "default": "./LineChartPro/index.mjs"
721
735
  }
722
736
  },
737
+ "./Map": {
738
+ "import": {
739
+ "types": "./Map/index.d.mts",
740
+ "default": "./Map/index.mjs"
741
+ },
742
+ "require": {
743
+ "types": "./Map/index.d.ts",
744
+ "default": "./Map/index.js"
745
+ },
746
+ "default": {
747
+ "types": "./Map/index.d.mts",
748
+ "default": "./Map/index.mjs"
749
+ }
750
+ },
723
751
  "./PieChart": {
724
752
  "import": {
725
753
  "types": "./PieChart/index.d.mts",
@@ -1,6 +1,6 @@
1
1
  import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
2
  import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized, ChartsRadiusAxisProps, ChartsRotationAxisProps } from '@mui/x-charts/internals';
3
- import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier } from "../models/index.mjs";
3
+ import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier, MapShapeSeriesType, DefaultizedMapShapeSeriesType, MapShapeItemIdentifier, MapShapeValueType } from "../models/index.mjs";
4
4
  import type { DefaultizedRangeBarSeriesType, RangeBarItemIdentifier } from "../models/seriesType/rangeBar.mjs";
5
5
  import type { BarSeries } from "../BarChart/index.mjs";
6
6
  declare module '@mui/x-charts/internals' {
@@ -75,6 +75,21 @@ declare module '@mui/x-charts/internals' {
75
75
  dataIndex?: number;
76
76
  };
77
77
  };
78
+ mapShape: {
79
+ seriesInput: DefaultizedProps<MapShapeSeriesType, 'id'> & MakeRequired<SeriesColor<MapShapeValueType>, 'color'>;
80
+ series: DefaultizedMapShapeSeriesType;
81
+ seriesLayout: {};
82
+ seriesProp: MapShapeSeriesType;
83
+ itemIdentifier: MapShapeItemIdentifier;
84
+ itemIdentifierWithData: MapShapeItemIdentifier;
85
+ valueType: MapShapeValueType;
86
+ highlightScope: CommonHighlightScope;
87
+ descriptionGetterParams: {
88
+ identifier: MapShapeItemIdentifier;
89
+ series: DefaultizedMapShapeSeriesType;
90
+ };
91
+ highlightIdentifier: MapShapeItemIdentifier;
92
+ };
78
93
  radialBar: {
79
94
  seriesInput: DefaultizedProps<RadialBarSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
80
95
  series: DefaultizedRadialBarSeriesType;
@@ -1,6 +1,6 @@
1
1
  import type { DefaultizedProps, MakeRequired } from '@mui/x-internals/types';
2
2
  import type { CommonHighlightScope, SeriesColor, SeriesId, ComputedXAxis, ComputedYAxis, PolarAxisDefaultized, ChartsRadiusAxisProps, ChartsRotationAxisProps } from '@mui/x-charts/internals';
3
- import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier } from "../models/index.js";
3
+ import type { RangeBarValueType, RangeBarSeriesType, DefaultizedOHLCSeriesType, OHLCItemIdentifier, OHLCSeriesType, OHLCValueType, RadialLineSeriesType, DefaultizedRadialLineSeriesType, RadialLineItemIdentifier, RadialBarSeriesType, DefaultizedRadialBarSeriesType, RadialBarItemIdentifier, MapShapeSeriesType, DefaultizedMapShapeSeriesType, MapShapeItemIdentifier, MapShapeValueType } from "../models/index.js";
4
4
  import type { DefaultizedRangeBarSeriesType, RangeBarItemIdentifier } from "../models/seriesType/rangeBar.js";
5
5
  import type { BarSeries } from "../BarChart/index.js";
6
6
  declare module '@mui/x-charts/internals' {
@@ -75,6 +75,21 @@ declare module '@mui/x-charts/internals' {
75
75
  dataIndex?: number;
76
76
  };
77
77
  };
78
+ mapShape: {
79
+ seriesInput: DefaultizedProps<MapShapeSeriesType, 'id'> & MakeRequired<SeriesColor<MapShapeValueType>, 'color'>;
80
+ series: DefaultizedMapShapeSeriesType;
81
+ seriesLayout: {};
82
+ seriesProp: MapShapeSeriesType;
83
+ itemIdentifier: MapShapeItemIdentifier;
84
+ itemIdentifierWithData: MapShapeItemIdentifier;
85
+ valueType: MapShapeValueType;
86
+ highlightScope: CommonHighlightScope;
87
+ descriptionGetterParams: {
88
+ identifier: MapShapeItemIdentifier;
89
+ series: DefaultizedMapShapeSeriesType;
90
+ };
91
+ highlightIdentifier: MapShapeItemIdentifier;
92
+ };
78
93
  radialBar: {
79
94
  seriesInput: DefaultizedProps<RadialBarSeriesType, 'id'> & MakeRequired<SeriesColor<number | null>, 'color'>;
80
95
  series: DefaultizedRadialBarSeriesType;
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  'use client';
3
3
 
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.useWebGLResizeObserver = useWebGLResizeObserver;
9
- var React = _interopRequireWildcard(require("react"));
9
+ var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
10
10
  function getDevicePixelContentBoxSize(entry) {
11
11
  // Safari does not support devicePixelContentBoxSize
12
12
  if (entry.devicePixelContentBoxSize) {
@@ -30,7 +30,7 @@ function getDevicePixelContentBoxSize(entry) {
30
30
  * @param onResize Callback invoked after the canvas and viewport are updated.
31
31
  */
32
32
  function useWebGLResizeObserver(gl, onResize) {
33
- React.useEffect(() => {
33
+ (0, _useEnhancedEffect.default)(() => {
34
34
  const canvas = gl?.canvas;
35
35
  if (!(canvas instanceof HTMLCanvasElement)) {
36
36
  return undefined;
@@ -1,6 +1,6 @@
1
1
  'use client';
2
2
 
3
- import * as React from 'react';
3
+ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
4
4
  function getDevicePixelContentBoxSize(entry) {
5
5
  // Safari does not support devicePixelContentBoxSize
6
6
  if (entry.devicePixelContentBoxSize) {
@@ -24,7 +24,7 @@ function getDevicePixelContentBoxSize(entry) {
24
24
  * @param onResize Callback invoked after the canvas and viewport are updated.
25
25
  */
26
26
  export function useWebGLResizeObserver(gl, onResize) {
27
- React.useEffect(() => {
27
+ useEnhancedEffect(() => {
28
28
  const canvas = gl?.canvas;
29
29
  if (!(canvas instanceof HTMLCanvasElement)) {
30
30
  return undefined;