@mui/x-charts-pro 8.9.0 → 8.9.2

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 (155) hide show
  1. package/BarChart/index.d.ts +1 -0
  2. package/BarChart/index.js +16 -0
  3. package/BarChartPro/BarChartPro.js +125 -1
  4. package/CHANGELOG.md +124 -0
  5. package/ChartContainer/index.d.ts +1 -0
  6. package/ChartContainer/index.js +16 -0
  7. package/ChartDataProvider/index.d.ts +1 -0
  8. package/ChartDataProvider/index.js +16 -0
  9. package/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  10. package/ChartsAxis/index.d.ts +1 -0
  11. package/ChartsAxis/index.js +16 -0
  12. package/ChartsAxisHighlight/index.d.ts +1 -0
  13. package/ChartsAxisHighlight/index.js +16 -0
  14. package/ChartsClipPath/index.d.ts +1 -0
  15. package/ChartsClipPath/index.js +16 -0
  16. package/ChartsGrid/index.d.ts +1 -0
  17. package/ChartsGrid/index.js +16 -0
  18. package/ChartsLabel/index.d.ts +1 -0
  19. package/ChartsLabel/index.js +16 -0
  20. package/ChartsLegend/index.d.ts +1 -0
  21. package/ChartsLegend/index.js +16 -0
  22. package/ChartsLocalizationProvider/index.d.ts +1 -0
  23. package/ChartsLocalizationProvider/index.js +16 -0
  24. package/ChartsOverlay/index.d.ts +1 -0
  25. package/ChartsOverlay/index.js +16 -0
  26. package/ChartsReferenceLine/index.d.ts +1 -0
  27. package/ChartsReferenceLine/index.js +16 -0
  28. package/ChartsSurface/index.d.ts +1 -0
  29. package/ChartsSurface/index.js +16 -0
  30. package/ChartsText/index.d.ts +1 -0
  31. package/ChartsText/index.js +16 -0
  32. package/ChartsTooltip/index.d.ts +1 -0
  33. package/ChartsTooltip/index.js +16 -0
  34. package/ChartsWrapper/index.d.ts +1 -0
  35. package/ChartsWrapper/index.js +16 -0
  36. package/ChartsXAxis/index.d.ts +1 -0
  37. package/ChartsXAxis/index.js +16 -0
  38. package/ChartsYAxis/index.d.ts +1 -0
  39. package/ChartsYAxis/index.js +16 -0
  40. package/FunnelChart/FunnelChart.js +12 -2
  41. package/FunnelChart/useFunnelChartProps.d.ts +1 -1
  42. package/Gauge/index.d.ts +1 -0
  43. package/Gauge/index.js +16 -0
  44. package/Heatmap/Heatmap.js +2 -2
  45. package/LineChart/index.d.ts +1 -0
  46. package/LineChart/index.js +16 -0
  47. package/LineChartPro/LineChartPro.js +125 -1
  48. package/PieChart/index.d.ts +1 -0
  49. package/PieChart/index.js +16 -0
  50. package/PieChartPro/PieChartPro.js +2 -1
  51. package/RadarChart/index.d.ts +1 -0
  52. package/RadarChart/index.js +16 -0
  53. package/RadarChartPro/RadarChartPro.js +2 -1
  54. package/ScatterChart/index.d.ts +1 -0
  55. package/ScatterChart/index.js +16 -0
  56. package/ScatterChartPro/ScatterChartPro.js +125 -1
  57. package/SparkLineChart/index.d.ts +1 -0
  58. package/SparkLineChart/index.js +16 -0
  59. package/Toolbar/index.d.ts +1 -0
  60. package/Toolbar/index.js +16 -0
  61. package/colorPalettes/index.d.ts +1 -0
  62. package/colorPalettes/index.js +16 -0
  63. package/constants/index.d.ts +1 -0
  64. package/constants/index.js +16 -0
  65. package/context/index.d.ts +1 -0
  66. package/context/index.js +11 -0
  67. package/esm/BarChart/index.d.ts +1 -0
  68. package/esm/BarChart/index.js +2 -0
  69. package/esm/BarChartPro/BarChartPro.js +125 -1
  70. package/esm/ChartContainer/index.d.ts +1 -0
  71. package/esm/ChartContainer/index.js +2 -0
  72. package/esm/ChartDataProvider/index.d.ts +1 -0
  73. package/esm/ChartDataProvider/index.js +2 -0
  74. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +1 -1
  75. package/esm/ChartsAxis/index.d.ts +1 -0
  76. package/esm/ChartsAxis/index.js +2 -0
  77. package/esm/ChartsAxisHighlight/index.d.ts +1 -0
  78. package/esm/ChartsAxisHighlight/index.js +2 -0
  79. package/esm/ChartsClipPath/index.d.ts +1 -0
  80. package/esm/ChartsClipPath/index.js +2 -0
  81. package/esm/ChartsGrid/index.d.ts +1 -0
  82. package/esm/ChartsGrid/index.js +2 -0
  83. package/esm/ChartsLabel/index.d.ts +1 -0
  84. package/esm/ChartsLabel/index.js +2 -0
  85. package/esm/ChartsLegend/index.d.ts +1 -0
  86. package/esm/ChartsLegend/index.js +2 -0
  87. package/esm/ChartsLocalizationProvider/index.d.ts +1 -0
  88. package/esm/ChartsLocalizationProvider/index.js +2 -0
  89. package/esm/ChartsOverlay/index.d.ts +1 -0
  90. package/esm/ChartsOverlay/index.js +2 -0
  91. package/esm/ChartsReferenceLine/index.d.ts +1 -0
  92. package/esm/ChartsReferenceLine/index.js +2 -0
  93. package/esm/ChartsSurface/index.d.ts +1 -0
  94. package/esm/ChartsSurface/index.js +2 -0
  95. package/esm/ChartsText/index.d.ts +1 -0
  96. package/esm/ChartsText/index.js +2 -0
  97. package/esm/ChartsTooltip/index.d.ts +1 -0
  98. package/esm/ChartsTooltip/index.js +2 -0
  99. package/esm/ChartsWrapper/index.d.ts +1 -0
  100. package/esm/ChartsWrapper/index.js +2 -0
  101. package/esm/ChartsXAxis/index.d.ts +1 -0
  102. package/esm/ChartsXAxis/index.js +2 -0
  103. package/esm/ChartsYAxis/index.d.ts +1 -0
  104. package/esm/ChartsYAxis/index.js +2 -0
  105. package/esm/FunnelChart/FunnelChart.js +11 -1
  106. package/esm/FunnelChart/useFunnelChartProps.d.ts +1 -1
  107. package/esm/Gauge/index.d.ts +1 -0
  108. package/esm/Gauge/index.js +2 -0
  109. package/esm/Heatmap/Heatmap.js +1 -1
  110. package/esm/LineChart/index.d.ts +1 -0
  111. package/esm/LineChart/index.js +2 -0
  112. package/esm/LineChartPro/LineChartPro.js +125 -1
  113. package/esm/PieChart/index.d.ts +1 -0
  114. package/esm/PieChart/index.js +2 -0
  115. package/esm/PieChartPro/PieChartPro.js +2 -1
  116. package/esm/RadarChart/index.d.ts +1 -0
  117. package/esm/RadarChart/index.js +2 -0
  118. package/esm/RadarChartPro/RadarChartPro.js +2 -1
  119. package/esm/ScatterChart/index.d.ts +1 -0
  120. package/esm/ScatterChart/index.js +2 -0
  121. package/esm/ScatterChartPro/ScatterChartPro.js +125 -1
  122. package/esm/SparkLineChart/index.d.ts +1 -0
  123. package/esm/SparkLineChart/index.js +2 -0
  124. package/esm/Toolbar/index.d.ts +1 -0
  125. package/esm/Toolbar/index.js +2 -0
  126. package/esm/colorPalettes/index.d.ts +1 -0
  127. package/esm/colorPalettes/index.js +3 -0
  128. package/esm/constants/index.d.ts +1 -0
  129. package/esm/constants/index.js +3 -0
  130. package/esm/context/index.d.ts +1 -0
  131. package/esm/context/index.js +3 -0
  132. package/esm/hooks/index.d.ts +1 -0
  133. package/esm/hooks/index.js +3 -0
  134. package/esm/index.d.ts +6 -7
  135. package/esm/index.js +13 -7
  136. package/esm/internals/plugins/allPlugins.d.ts +2 -2
  137. package/esm/internals/plugins/useChartProExport/defaults.d.ts +1 -0
  138. package/esm/internals/plugins/useChartProExport/defaults.js +6 -0
  139. package/esm/internals/plugins/useChartProExport/exportImage.js +3 -2
  140. package/esm/internals/plugins/useChartProExport/print.js +3 -2
  141. package/esm/locales/index.js +3 -1
  142. package/esm/models/index.d.ts +3 -1
  143. package/esm/models/index.js +5 -1
  144. package/hooks/index.d.ts +1 -0
  145. package/hooks/index.js +11 -0
  146. package/index.d.ts +6 -7
  147. package/index.js +65 -53
  148. package/internals/plugins/allPlugins.d.ts +2 -2
  149. package/internals/plugins/useChartProExport/defaults.d.ts +1 -0
  150. package/internals/plugins/useChartProExport/defaults.js +12 -0
  151. package/internals/plugins/useChartProExport/exportImage.js +3 -2
  152. package/internals/plugins/useChartProExport/print.js +3 -2
  153. package/models/index.d.ts +3 -1
  154. package/models/index.js +24 -1
  155. package/package.json +7 -8
@@ -8,9 +8,10 @@ exports.printChart = printChart;
8
8
  var _ownerDocument = _interopRequireDefault(require("@mui/utils/ownerDocument"));
9
9
  var _export = require("@mui/x-internals/export");
10
10
  var _common = require("./common");
11
+ var _defaults = require("./defaults");
11
12
  function printChart(element, {
12
13
  fileName,
13
- onBeforeExport,
14
+ onBeforeExport = _defaults.defaultOnBeforeExport,
14
15
  copyStyles = true
15
16
  } = {}) {
16
17
  const printWindow = (0, _common.createExportIframe)(fileName);
@@ -33,7 +34,7 @@ function printChart(element, {
33
34
  doc.body.removeChild(printWindow);
34
35
  }
35
36
  });
36
- await onBeforeExport?.(printWindow);
37
+ await onBeforeExport(printWindow);
37
38
  printWindow.contentWindow.print();
38
39
  };
39
40
  doc.body.appendChild(printWindow);
package/models/index.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ export * from '@mui/x-charts/models';
1
2
  export type { ZoomData, ZoomFilterMode, ZoomOptions, ZoomSliderOptions, ZoomSliderShowTooltip } from '@mui/x-charts/internals';
2
- export * from "./seriesType/index.js";
3
+ export * from "./seriesType/index.js";
4
+ export { defaultOnBeforeExport } from "../internals/plugins/useChartProExport/defaults.js";
package/models/index.js CHANGED
@@ -3,9 +3,31 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ var _exportNames = {
7
+ defaultOnBeforeExport: true
8
+ };
9
+ Object.defineProperty(exports, "defaultOnBeforeExport", {
10
+ enumerable: true,
11
+ get: function () {
12
+ return _defaults.defaultOnBeforeExport;
13
+ }
14
+ });
15
+ var _models = require("@mui/x-charts/models");
16
+ Object.keys(_models).forEach(function (key) {
17
+ if (key === "default" || key === "__esModule") return;
18
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
+ if (key in exports && exports[key] === _models[key]) return;
20
+ Object.defineProperty(exports, key, {
21
+ enumerable: true,
22
+ get: function () {
23
+ return _models[key];
24
+ }
25
+ });
26
+ });
6
27
  var _seriesType = require("./seriesType");
7
28
  Object.keys(_seriesType).forEach(function (key) {
8
29
  if (key === "default" || key === "__esModule") return;
30
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
9
31
  if (key in exports && exports[key] === _seriesType[key]) return;
10
32
  Object.defineProperty(exports, key, {
11
33
  enumerable: true,
@@ -13,4 +35,5 @@ Object.keys(_seriesType).forEach(function (key) {
13
35
  return _seriesType[key];
14
36
  }
15
37
  });
16
- });
38
+ });
39
+ var _defaults = require("../internals/plugins/useChartProExport/defaults");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-charts-pro",
3
- "version": "8.9.0",
3
+ "version": "8.9.2",
4
4
  "author": "MUI Team",
5
5
  "description": "The Pro plan edition of the MUI X Charts components.",
6
6
  "main": "./index.js",
@@ -11,8 +11,7 @@
11
11
  "homepage": "https://mui.com/x/react-charts/",
12
12
  "sideEffects": false,
13
13
  "publishConfig": {
14
- "access": "public",
15
- "directory": "build"
14
+ "access": "public"
16
15
  },
17
16
  "keywords": [
18
17
  "react",
@@ -29,15 +28,15 @@
29
28
  "directory": "packages/x-charts-pro"
30
29
  },
31
30
  "dependencies": {
32
- "@babel/runtime": "^7.27.6",
31
+ "@babel/runtime": "^7.28.2",
33
32
  "@mui/utils": "^7.2.0",
34
33
  "clsx": "^2.1.1",
35
34
  "prop-types": "^15.8.1",
36
- "@mui/x-charts": "8.9.0",
35
+ "@mui/x-charts": "8.9.2",
36
+ "@mui/x-internals": "8.9.2",
37
+ "@mui/x-license": "8.9.2",
37
38
  "@mui/x-charts-vendor": "8.6.0",
38
- "@mui/x-internals": "8.8.0",
39
- "@mui/x-internal-gestures": "0.2.1",
40
- "@mui/x-license": "8.9.0"
39
+ "@mui/x-internal-gestures": "0.2.2"
41
40
  },
42
41
  "peerDependencies": {
43
42
  "@emotion/react": "^11.9.0",