@mui/x-internals 7.16.0 → 7.17.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,93 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 7.17.0
7
+
8
+ _Sep 13, 2024_
9
+
10
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📊 Charts performance improvement
13
+ - 🧑‍💻 New Data Grid [custom columns demo](https://mui.com/x/react-data-grid/custom-columns/#full-example)
14
+ - 🐞 Bugfixes
15
+ - 📚 Documentation improvements
16
+ - 🌍 Improve Hungarian (hu-HU) locale on the Data Grid
17
+
18
+ <!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
19
+
20
+ ### Data Grid
21
+
22
+ #### `@mui/x-data-grid@7.17.0`
23
+
24
+ - [DataGrid] Add "does not equal" and "does not contain" filter operators (#14489) @KenanYusuf
25
+ - [DataGrid] Add demo to the "Custom columns" page that does not use generator (#13695) @arminmeh
26
+ - [DataGrid] Fix Voice Over reading the column name twice (#14482) @arminmeh
27
+ - [DataGrid] Fix bug in CRUD example (#14513) @michelengelen
28
+ - [DataGrid] Fix failing jsdom tests caused by `:has()` selectors (#14559) @KenanYusuf
29
+ - [DataGrid] Refactor string operator filter functions (#14564) @KenanYusuf
30
+ - [l10n] Improve Hungarian (hu-HU) locale (#14506) @ntamas
31
+
32
+ #### `@mui/x-data-grid-pro@7.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@7.17.0`.
35
+
36
+ #### `@mui/x-data-grid-premium@7.17.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
+
38
+ Same changes as in `@mui/x-data-grid-pro@7.17.0`.
39
+
40
+ ### Date and Time Pickers
41
+
42
+ #### `@mui/x-date-pickers@7.17.0`
43
+
44
+ - [fields] Improve `useSplitFieldProps` and make it public (#14514) @flaviendelangle
45
+ - [pickers] Improve clear action label (#14243) @oliviertassinari
46
+ - [pickers] Add `"use client"` directive to every public component and hook (#14562) @flaviendelangle
47
+ - [pickers] Allow custom fields to validate the value (#14486) @flaviendelangle
48
+ - [pickers] Stop using utils in locales (#14505) @flaviendelangle
49
+
50
+ #### `@mui/x-date-pickers-pro@7.17.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
51
+
52
+ Same changes as in `@mui/x-date-pickers@7.17.0`, plus:
53
+
54
+ - [DateRangePicker] Fix `currentMonthCalendarPosition` not scrolling to future sibling (#14442) @GMchris
55
+
56
+ ### Charts
57
+
58
+ #### `@mui/x-charts@7.17.0`
59
+
60
+ - [charts] Add `"use client"` directive to every public component and hook (#14578) @flaviendelangle
61
+ - [charts] Allow `onItemClick` on the `Legend` component (#14231) @JCQuintas
62
+ - [charts] Fix `onAxisClick` with `layout='horizontal'` (#14547) @alexfauquette
63
+ - [charts] Replace `path` with `circle` for performance improvement (#14518) @alexfauquette
64
+
65
+ #### `@mui/x-charts-pro@7.0.0-beta.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
66
+
67
+ Same changes as in `@mui/x-charts@7.17.0`.
68
+
69
+ ### Tree View
70
+
71
+ #### `@mui/x-tree-view@7.17.0`
72
+
73
+ - [TreeView] Make `useTreeItem2` stable (#14498) @flaviendelangle
74
+
75
+ ### Docs
76
+
77
+ - [docs] Add missing callout on "Imperative API" tree view sections (#14503) @flaviendelangle
78
+ - [docs] Fix broken redirection to MUI X v5 @oliviertassinari
79
+ - [docs] Fix multiple `console.error` messages on `charts` docs (#14554) @JCQuintas
80
+ - [docs] Fixed typo in Row Grouping recipes (#14549) @Miodini
81
+ - [docs] Match title with blog posts @oliviertassinari
82
+
83
+ ### Core
84
+
85
+ - [core] Move warning methods to `@mui/x-internals` (#14528) @k-rajat19
86
+ - [core] Sync with core release flow @oliviertassinari
87
+ - [code-infra] Fix charts benchmark workflow (#14573) @JCQuintas
88
+ - [docs-infra] Type interface API pages (#14138) @alexfauquette
89
+ - [infra] Create `ESLint plugins` renovate group (#14574) @LukasTy
90
+ - [license] Clean-up terminology to match codebase (#14531) @oliviertassinari
91
+ - [test] Remove dead `act()` logic (#14529) @oliviertassinari
92
+
6
93
  ## 7.16.0
7
94
 
8
95
  _Sep 5, 2024_
@@ -0,0 +1 @@
1
+ export { warnOnce, clearWarningsCache } from "./warning.js";
@@ -0,0 +1,20 @@
1
+ const warnedOnceCache = new Set();
2
+
3
+ // TODO move to @base_ui/internals. Base UI, etc. need this helper.
4
+ export function warnOnce(message, gravity = 'warning') {
5
+ if (process.env.NODE_ENV === 'production') {
6
+ return;
7
+ }
8
+ const cleanMessage = Array.isArray(message) ? message.join('\n') : message;
9
+ if (!warnedOnceCache.has(cleanMessage)) {
10
+ warnedOnceCache.add(cleanMessage);
11
+ if (gravity === 'error') {
12
+ console.error(cleanMessage);
13
+ } else {
14
+ console.warn(cleanMessage);
15
+ }
16
+ }
17
+ }
18
+ export function clearWarningsCache() {
19
+ warnedOnceCache.clear();
20
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "clearWarningsCache", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _warning.clearWarningsCache;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "warnOnce", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _warning.warnOnce;
16
+ }
17
+ });
18
+ var _warning = require("./warning");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.clearWarningsCache = clearWarningsCache;
7
+ exports.warnOnce = warnOnce;
8
+ const warnedOnceCache = new Set();
9
+
10
+ // TODO move to @base_ui/internals. Base UI, etc. need this helper.
11
+ function warnOnce(message, gravity = 'warning') {
12
+ if (process.env.NODE_ENV === 'production') {
13
+ return;
14
+ }
15
+ const cleanMessage = Array.isArray(message) ? message.join('\n') : message;
16
+ if (!warnedOnceCache.has(cleanMessage)) {
17
+ warnedOnceCache.add(cleanMessage);
18
+ if (gravity === 'error') {
19
+ console.error(cleanMessage);
20
+ } else {
21
+ console.warn(cleanMessage);
22
+ }
23
+ }
24
+ }
25
+ function clearWarningsCache() {
26
+ warnedOnceCache.clear();
27
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-internals",
3
- "version": "7.16.0",
3
+ "version": "7.17.0",
4
4
  "description": "Utility functions for the MUI X packages (internal use only).",
5
5
  "author": "MUI Team",
6
6
  "license": "MIT",
@@ -0,0 +1 @@
1
+ export { warnOnce, clearWarningsCache } from './warning';
@@ -0,0 +1 @@
1
+ export { warnOnce, clearWarningsCache } from "./warning.js";
@@ -0,0 +1,6 @@
1
+ {
2
+ "sideEffects": false,
3
+ "module": "./index.js",
4
+ "main": "../node/warning/index.js",
5
+ "types": "./index.d.ts"
6
+ }
@@ -0,0 +1,2 @@
1
+ export declare function warnOnce(message: string | string[], gravity?: 'warning' | 'error'): void;
2
+ export declare function clearWarningsCache(): void;
@@ -0,0 +1,20 @@
1
+ const warnedOnceCache = new Set();
2
+
3
+ // TODO move to @base_ui/internals. Base UI, etc. need this helper.
4
+ export function warnOnce(message, gravity = 'warning') {
5
+ if (process.env.NODE_ENV === 'production') {
6
+ return;
7
+ }
8
+ const cleanMessage = Array.isArray(message) ? message.join('\n') : message;
9
+ if (!warnedOnceCache.has(cleanMessage)) {
10
+ warnedOnceCache.add(cleanMessage);
11
+ if (gravity === 'error') {
12
+ console.error(cleanMessage);
13
+ } else {
14
+ console.warn(cleanMessage);
15
+ }
16
+ }
17
+ }
18
+ export function clearWarningsCache() {
19
+ warnedOnceCache.clear();
20
+ }