@mui/x-virtualizer 1.0.0-alpha.0 → 1.0.0-alpha.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 (46) hide show
  1. package/CHANGELOG.md +236 -0
  2. package/{esm/features/colspan.d.ts → features/colspan.d.mts} +4 -4
  3. package/{esm/features/dimensions.d.ts → features/dimensions.d.mts} +2 -2
  4. package/{esm/features/dimensions.js → features/dimensions.mjs} +1 -1
  5. package/features/index.d.mts +5 -0
  6. package/features/index.mjs +5 -0
  7. package/{esm/features/keyboard.d.ts → features/keyboard.d.mts} +1 -1
  8. package/{esm/features/keyboard.js → features/keyboard.mjs} +2 -2
  9. package/{esm/features/rowspan.d.ts → features/rowspan.d.mts} +3 -3
  10. package/features/virtualization/index.d.mts +2 -0
  11. package/features/virtualization/index.mjs +2 -0
  12. package/{esm/features/virtualization/layout.d.ts → features/virtualization/layout.d.mts} +9 -9
  13. package/{esm/features/virtualization/layout.js → features/virtualization/layout.mjs} +3 -3
  14. package/{esm/features/virtualization/virtualization.d.ts → features/virtualization/virtualization.d.mts} +5 -5
  15. package/features/virtualization/virtualization.js +5 -4
  16. package/{esm/features/virtualization/virtualization.js → features/virtualization/virtualization.mjs} +9 -8
  17. package/index.d.mts +3 -0
  18. package/index.js +1 -1
  19. package/{esm/index.js → index.mjs} +4 -4
  20. package/{esm/models/dimensions.d.ts → models/dimensions.d.mts} +1 -1
  21. package/models/index.d.mts +4 -0
  22. package/models/index.mjs +4 -0
  23. package/{esm/models/rowspan.d.ts → models/rowspan.d.mts} +1 -1
  24. package/package.json +40 -15
  25. package/{esm/useVirtualizer.d.ts → useVirtualizer.d.mts} +20 -20
  26. package/{esm/useVirtualizer.js → useVirtualizer.mjs} +6 -6
  27. package/esm/features/index.d.ts +0 -5
  28. package/esm/features/index.js +0 -5
  29. package/esm/features/virtualization/index.d.ts +0 -2
  30. package/esm/features/virtualization/index.js +0 -2
  31. package/esm/index.d.ts +0 -3
  32. package/esm/models/index.d.ts +0 -4
  33. package/esm/models/index.js +0 -4
  34. package/esm/package.json +0 -1
  35. /package/{esm/constants.d.ts → constants.d.mts} +0 -0
  36. /package/{esm/constants.js → constants.mjs} +0 -0
  37. /package/{esm/features/colspan.js → features/colspan.mjs} +0 -0
  38. /package/{esm/features/rowspan.js → features/rowspan.mjs} +0 -0
  39. /package/{esm/models/colspan.d.ts → models/colspan.d.mts} +0 -0
  40. /package/{esm/models/colspan.js → models/colspan.mjs} +0 -0
  41. /package/{esm/models/core.d.ts → models/core.d.mts} +0 -0
  42. /package/{esm/models/core.js → models/core.mjs} +0 -0
  43. /package/{esm/models/dimensions.js → models/dimensions.mjs} +0 -0
  44. /package/{esm/models/rowspan.js → models/rowspan.mjs} +0 -0
  45. /package/{esm/utils/useRefCallback.d.ts → utils/useRefCallback.d.mts} +0 -0
  46. /package/{esm/utils/useRefCallback.js → utils/useRefCallback.mjs} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,241 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.0.0-alpha.2
4
+
5
+ _Mar 5, 2026_
6
+
7
+ We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
8
+
9
+ - ✅ Stabilize Sankey chart
10
+ - 🐞 Bugfixes and internal improvements
11
+
12
+ The following team members contributed to this release:
13
+ @aemartos, @alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @Janpot, @JCQuintas, @mapache-salvaje, @michelengelen, @mj12albert, @sai6855, @siriwatknp
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@9.0.0-alpha.2`
18
+
19
+ - [dataGrid] Fix keyboard nav with single-row checkbox selection (#21149) @mj12albert
20
+ - [DataGrid] Add `checkboxColDef` prop to customize the selection column (#21331) @michelengelen
21
+ - [DataGrid] Format pagination numbers by default (#21117) @siriwatknp
22
+ - [DataGrid] Prevent unnecessary row selection checkbox rerendering (#21570) @arminmeh
23
+ - [DataGrid] Make GridScrollArea overrides resolver dynamic (#21532) @sai6855
24
+
25
+ #### `@mui/x-data-grid-pro@9.0.0-alpha.2` [![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.0.0-alpha.2`, plus:
28
+
29
+ - [DataGridPro] Use `getRowId` prop to calculate the tree data row update (#21540) @arminmeh
30
+
31
+ #### `@mui/x-data-grid-premium@9.0.0-alpha.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
32
+
33
+ Same changes as in `@mui/x-data-grid-pro@9.0.0-alpha.2`.
34
+
35
+ ### Date and Time Pickers
36
+
37
+ #### `@mui/x-date-pickers@9.0.0-alpha.2`
38
+
39
+ - [pickers] Add `keepOpenDuringFieldFocus` prop (#20782) @michelengelen
40
+
41
+ #### `@mui/x-date-pickers-pro@9.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
42
+
43
+ Same changes as in `@mui/x-date-pickers@9.0.0-alpha.2`.
44
+
45
+ ### Charts
46
+
47
+ #### `@mui/x-charts@9.0.0-alpha.2`
48
+
49
+ - [charts] Add `ChartsLayerContainer` component (#21264) @bernardobelchior
50
+ - [charts] Add codemod for `ChartsContainer` rename (#21504) @JCQuintas
51
+ - [charts] Add codemod for `ChartsDataProvider` rename (#21552) @JCQuintas
52
+ - [charts] Add codemod for `ChartsZoomSlider` rename (#21597) @JCQuintas
53
+ - [charts] Base the highlight items on the item identifiers (#21161) @alexfauquette
54
+ - [charts] Deprecate `ChartDataProvider` in favour of `ChartsDataProvider` (#21191) @JCQuintas
55
+ - [charts] Deprecate `highlighted` and `faded` classes (#21476) @alexfauquette
56
+ - [charts] Migrate to latest v8 warning (#21518) @JCQuintas
57
+ - [charts] Rename `ChartZoomSlider` to `ChartsZoomSlider` (#21553) @JCQuintas
58
+ - [charts] Rename `WebGl` to `WebGL` (#21524) @JCQuintas
59
+ - [charts] Rename `useSvgRef()` by `useChartsLayerContainerRef()` (#21494) @alexfauquette
60
+ - [charts] Restore focus on last focused item (#21522) @alexfauquette
61
+ - [charts] Warn users when controlled tooltip state does not match the trigger (#21520) @Copilot
62
+ - [charts] Fix controlled tooltip position (#21603) @bernardobelchior
63
+
64
+ #### `@mui/x-charts-pro@9.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-charts@9.0.0-alpha.2`, plus:
67
+
68
+ - [charts-pro] Center the watermark (#21550) @alexfauquette
69
+ - [charts-pro] Stabilize `SankeyChart` API (#21133) @Copilot
70
+
71
+ #### `@mui/x-charts-premium@9.0.0-alpha.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
72
+
73
+ Same changes as in `@mui/x-charts-pro@9.0.0-alpha.2`.
74
+
75
+ ### Tree View
76
+
77
+ #### `@mui/x-tree-view@9.0.0-alpha.2`
78
+
79
+ Internal changes.
80
+
81
+ #### `@mui/x-tree-view-pro@9.0.0-alpha.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
82
+
83
+ Same changes as in `@mui/x-tree-view@9.0.0-alpha.2`.
84
+
85
+ ### Codemod
86
+
87
+ #### `@mui/x-codemod@9.0.0-alpha.2`
88
+
89
+ Internal changes.
90
+
91
+ ### Docs
92
+
93
+ - [docs] Add backticks and parentheses to all functions and hooks (DX-173) (#21496) @mapache-salvaje
94
+ - [docs] Remove mentions of `mySvgRef` (#21559) @bernardobelchior
95
+ - [docs] Update Roadmap section in the docs (#20892) @alelthomas
96
+ - [docs] Add tutorial and example app for aggregation with row grouping (DX-162) (#21102) @mapache-salvaje
97
+ - [docs] Fix missing codemod docs (#21604) @JCQuintas
98
+
99
+ ### Core
100
+
101
+ - [code-infra] Add eslint rule to prevent `Math.random` in docs (#21505) @JCQuintas
102
+ - [code-infra] Avoid static props for pageContent (#21038) @Janpot
103
+ - [code-infra] Isolate `date-pickers-pro` in the browser tests (#21383) @Janpot
104
+ - [code-infra] Remove `--coverage` (#21410) @Janpot
105
+ - [code-infra] Remove unneeded `skipIf`s (#21569) @JCQuintas
106
+ - [code-infra] Remove vale as a workspace dependency (#21489) @brijeshb42
107
+ - [code-infra] Remove x-charts-vendor from nextjs processing (#21534) @brijeshb42
108
+ - [code-infra] Set BASE_BRANCH env var in CircleCI config (#21548) @brijeshb42
109
+ - [code-infra] Setup error code extraction (#21469) @brijeshb42
110
+ - [code-infra] Setup flat build for packages (#21029) @brijeshb42
111
+ - [code-infra] Upgrade test_unit to large resource class (#21558) @Janpot
112
+ - [code-infra] Removed getTeamMembers function and usage from release script (#21605) @michelengelen
113
+
114
+ ### Miscellaneous
115
+
116
+ - [x-license] Add Q1-2026 plan version with quantity and appType support (#21574) @aemartos
117
+ - [x-license] Add v3 key format support, centralize test keys, and trim public API (#21485) @aemartos
118
+ - [x-telemetry] telemetry opt-out by default, remove conf dependency (#21470) @aemartos
119
+ - [x-telemetry] test: mock context module directly in sender tests (#21546) @aemartos
120
+
121
+ ## 9.0.0-alpha.1
122
+
123
+ _Feb 26, 2026_
124
+
125
+ We'd like to extend a big thank you to the 18 contributors who made this release possible. Here are some highlights ✨:
126
+
127
+ - ⚡️ Improved dynamic data support and cache invalidation in lazy loading for Data Grid Pro
128
+ - ⌨️ Keyboard support for selecting day, month, and year in Date Pickers
129
+ - 📊 Axis tooltip sorting and control improvements in Charts
130
+ - 🐞 Bugfixes and internal improvements
131
+
132
+ Special thanks go out to these community members for their valuable contributions:
133
+ @EllGree, @lion1963
134
+
135
+ The following team members contributed to this release:
136
+ @alexfauquette, @arminmeh, @brijeshb42, @cherniavskii, @dav-is, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855, @siriwatknp, @ZeeshanTamboli
137
+
138
+ ### Data Grid
139
+
140
+ #### `@mui/x-data-grid@9.0.0-alpha.1`
141
+
142
+ - [DataGrid] Forward rest props in `GridFilterInputMultipleValue` (#21407) @siriwatknp
143
+ - [DataGrid] Preserve key input during row edit when using `rowModesModel` (#20759) @michelengelen
144
+ - [DataGrid] Remove double rtl inversion logic for columns pinning (#21371) @siriwatknp
145
+
146
+ #### `@mui/x-data-grid-pro@9.0.0-alpha.1` [![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-data-grid@9.0.0-alpha.1`, plus:
149
+
150
+ - [DataGridPro] Fix number input visibility in header filters (#21328) @michelengelen
151
+ - [DataGridPro] Improve dynamic data support and cache invalidation in lazy loading (#21282) @MBilalShafi
152
+
153
+ #### `@mui/x-data-grid-premium@9.0.0-alpha.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
154
+
155
+ Same changes as in `@mui/x-data-grid-pro@9.0.0-alpha.1`.
156
+
157
+ ### Date and Time Pickers
158
+
159
+ #### `@mui/x-date-pickers@9.0.0-alpha.1`
160
+
161
+ - [DatePicker] Add keyboard support for selecting day, month, and year (#20859) @michelengelen
162
+
163
+ #### `@mui/x-date-pickers-pro@9.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
164
+
165
+ Same changes as in `@mui/x-date-pickers@9.0.0-alpha.1`, plus:
166
+
167
+ - [DateRangePicker] Fix timezone update issue leading to `invalidRange` error (#20863) @michelengelen
168
+
169
+ ### Charts
170
+
171
+ #### `@mui/x-charts@9.0.0-alpha.1`
172
+
173
+ - [charts] Add `sort` props to the axis tooltip (#21293) @alexfauquette
174
+ - [charts] Controll axis tooltip (#21351) @alexfauquette
175
+ - [charts] De duplicate keyboard focus handler function (#21267) @sai6855
176
+ - [charts] Make `type` optional in identifiers (#21311) @alexfauquette
177
+ - [charts] Move ref to the root component (#21396) @alexfauquette
178
+ - [charts] Refactor loading and no data overlays to use a shared OverlayText component (#21414) @sai6855
179
+ - [charts] Require series ids to be unique (#21330) @alexfauquette
180
+ - [charts] Set `showMark` as `false` by default (#21373) @alexfauquette
181
+ - [charts] Use `createGetNextIndexFocusedItem()` util in Funnel and RangeBar charts (#21390) @sai6855
182
+ - [charts] Remove unnecessary string concatenation (#21418) @sai6855
183
+
184
+ #### `@mui/x-charts-pro@9.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
185
+
186
+ Same changes as in `@mui/x-charts@9.0.0-alpha.1`.
187
+
188
+ #### `@mui/x-charts-premium@9.0.0-alpha.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
189
+
190
+ Same changes as in `@mui/x-charts-pro@9.0.0-alpha.1`.
191
+
192
+ ### Tree View
193
+
194
+ #### `@mui/x-tree-view@9.0.0-alpha.1`
195
+
196
+ - [tree view] Focus item sibling on unmount instead of the 1st item (#21254) @flaviendelangle
197
+
198
+ #### `@mui/x-tree-view-pro@9.0.0-alpha.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
199
+
200
+ Same changes as in `@mui/x-tree-view@9.0.0-alpha.1`.
201
+
202
+ ### Codemod
203
+
204
+ #### `@mui/x-codemod@9.0.0-alpha.1`
205
+
206
+ Internal changes.
207
+
208
+ ### Docs
209
+
210
+ - [docs] Fix external 301s (#21377) @Janpot
211
+ - [docs] Show premium in the overview (#21343) @alexfauquette
212
+ - [docs][charts] Revise the useLegend hook doc (#21352) @mapache-salvaje
213
+ - [docs][charts] Revise the axis hooks doc (#21317) @mapache-salvaje
214
+ - [docs][charts] Revise the scale hooks doc (#21316) @mapache-salvaje
215
+ - [docs][charts] Revise the series hooks doc (#21353) @mapache-salvaje
216
+ - [docs][charts] Revise the useDataset doc (#21336) @mapache-salvaje
217
+ - [docs][charts] Revise the useDrawingArea doc (#21333) @mapache-salvaje
218
+
219
+ ### Core
220
+
221
+ - [core] Update docs deploy script to the `docs-next` branch (#21341) @siriwatknp
222
+ - [code-infra] Cleanup unused babel plugins (#21453) @brijeshb42
223
+ - [code-infra] Do not append `x` to the last version for the compare API (#21408) @arminmeh
224
+ - [code-infra] Upgrade react-docgen to v8 X (#21155) @JCQuintas
225
+ - [code-infra] Modernize codemod (#21096) @JCQuintas
226
+ - [docs-infra] Fix current version detection logic (#21417) @cherniavskii
227
+ - [docs-infra] Reapply Cookie Banner (#21281) @dav-is
228
+ - [internal] Headless filtering plugin (#21302) @arminmeh
229
+ - [internal] Headless pagination plugin (#21183) @arminmeh
230
+ - [internal] Headless virtualization followups (#21327) @cherniavskii
231
+ - [internal] Keep cached data for disabled pipe processors (#21348) @arminmeh
232
+ - [internal] Remove autoprefixer package (#21440) @ZeeshanTamboli
233
+
234
+ ### Miscellaneous
235
+
236
+ - [l10n] Fix Czech (csCZ) locale: sort/filter labels are swapped (#21400) @EllGree
237
+ - [l10n] Improve Ukrainian (uk-UA) locale (#21366) @lion1963
238
+
3
239
  ## 9.0.0-alpha.0
4
240
 
5
241
  _Feb 16, 2026_
@@ -1,9 +1,9 @@
1
1
  import { Store } from '@mui/x-internals/store';
2
2
  import type { integer } from '@mui/x-internals/types';
3
- import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.js";
4
- import type { ColumnWithWidth, RowId } from "../models/index.js";
5
- import type { CellColSpanInfo } from "../models/colspan.js";
6
- import { Virtualization } from "./virtualization/index.js";
3
+ import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.mjs";
4
+ import type { ColumnWithWidth, RowId } from "../models/index.mjs";
5
+ import type { CellColSpanInfo } from "../models/colspan.mjs";
6
+ import { Virtualization } from "./virtualization/index.mjs";
7
7
  type ColumnIndex = number;
8
8
  type ColspanMap = Map<RowId, Record<ColumnIndex, CellColSpanInfo>>;
9
9
  export type ColspanParams = {
@@ -1,6 +1,6 @@
1
1
  import { Store } from '@mui/x-internals/store';
2
- import { ColumnWithWidth, DimensionsState, RowId, RowsMetaState, Size } from "../models/index.js";
3
- import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.js";
2
+ import { ColumnWithWidth, DimensionsState, RowId, RowsMetaState, Size } from "../models/index.mjs";
3
+ import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.mjs";
4
4
  export type DimensionsParams = {
5
5
  rowHeight: number;
6
6
  columnsTotalWidth?: number;
@@ -10,7 +10,7 @@ import { throttle } from '@mui/x-internals/throttle';
10
10
  import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
11
11
  import { roundToDecimalPlaces } from '@mui/x-internals/math';
12
12
  import { useStore, createSelectorMemoized } from '@mui/x-internals/store';
13
- import { Size } from "../models/index.js";
13
+ import { Size } from "../models/index.mjs";
14
14
 
15
15
  /* eslint-disable import/export, @typescript-eslint/no-redeclare */
16
16
  /* eslint-disable no-underscore-dangle */
@@ -0,0 +1,5 @@
1
+ export * from "./colspan.mjs";
2
+ export * from "./dimensions.mjs";
3
+ export * from "./keyboard.mjs";
4
+ export * from "./rowspan.mjs";
5
+ export * from "./virtualization/index.mjs";
@@ -0,0 +1,5 @@
1
+ export * from "./colspan.mjs";
2
+ export * from "./dimensions.mjs";
3
+ export * from "./keyboard.mjs";
4
+ export * from "./rowspan.mjs";
5
+ export * from "./virtualization/index.mjs";
@@ -1,5 +1,5 @@
1
1
  import { Store } from '@mui/x-internals/store';
2
- import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.js";
2
+ import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.mjs";
3
3
  export declare const Keyboard: {
4
4
  initialize: typeof initializeState;
5
5
  use: typeof useKeyboard;
@@ -1,5 +1,5 @@
1
- import { Dimensions } from "./dimensions.js";
2
- import { Virtualization } from "./virtualization/index.js";
1
+ import { Dimensions } from "./dimensions.mjs";
2
+ import { Virtualization } from "./virtualization/index.mjs";
3
3
 
4
4
  /* eslint-disable import/export, @typescript-eslint/no-redeclare */
5
5
 
@@ -1,7 +1,7 @@
1
1
  import { Store } from '@mui/x-internals/store';
2
- import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.js";
3
- import type { RowSpanningState } from "../models/rowspan.js";
4
- import { Virtualization } from "./virtualization/index.js";
2
+ import type { BaseState, ParamsWithDefaults } from "../useVirtualizer.mjs";
3
+ import type { RowSpanningState } from "../models/rowspan.mjs";
4
+ import { Virtualization } from "./virtualization/index.mjs";
5
5
  export declare const Rowspan: {
6
6
  initialize: typeof initializeState;
7
7
  use: typeof useRowspan;
@@ -0,0 +1,2 @@
1
+ export * from "./layout.mjs";
2
+ export * from "./virtualization.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./layout.mjs";
2
+ export * from "./virtualization.mjs";
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { Store } from '@mui/x-internals/store';
3
- import { Dimensions } from "../dimensions.js";
4
- import { Virtualization, type VirtualizationLayoutParams } from "./virtualization.js";
5
- import type { BaseState, ParamsWithDefaults } from "../../useVirtualizer.js";
3
+ import { Dimensions } from "../dimensions.mjs";
4
+ import { Virtualization, type VirtualizationLayoutParams } from "./virtualization.mjs";
5
+ import type { BaseState, ParamsWithDefaults } from "../../useVirtualizer.mjs";
6
6
  type RequiredAPI = Dimensions.API;
7
7
  type BaseElements = {
8
8
  scroller: React.RefObject<HTMLElement | null>;
@@ -48,18 +48,18 @@ export declare class LayoutDataGrid extends Layout<DataGridElements> {
48
48
  scrollbarHorizontalProps: (args_0: Virtualization.State<Layout<AnyElements>> & Dimensions.State) => {
49
49
  ref: any;
50
50
  scrollPosition: {
51
- current: import("../../models/index.js").ScrollPosition;
51
+ current: import("../../models/index.mjs").ScrollPosition;
52
52
  };
53
53
  };
54
54
  scrollbarVerticalProps: (args_0: Virtualization.State<Layout<AnyElements>> & Dimensions.State) => {
55
55
  ref: any;
56
56
  scrollPosition: {
57
- current: import("../../models/index.js").ScrollPosition;
57
+ current: import("../../models/index.mjs").ScrollPosition;
58
58
  };
59
59
  };
60
60
  scrollAreaProps: (args_0: Virtualization.State<Layout<AnyElements>> & Dimensions.State) => {
61
61
  scrollPosition: {
62
- current: import("../../models/index.js").ScrollPosition;
62
+ current: import("../../models/index.mjs").ScrollPosition;
63
63
  };
64
64
  };
65
65
  };
@@ -90,18 +90,18 @@ export declare class LayoutDataGridLegacy extends LayoutDataGrid {
90
90
  getScrollbarVerticalProps: () => {
91
91
  ref: any;
92
92
  scrollPosition: {
93
- current: import("../../models/index.js").ScrollPosition;
93
+ current: import("../../models/index.mjs").ScrollPosition;
94
94
  };
95
95
  };
96
96
  getScrollbarHorizontalProps: () => {
97
97
  ref: any;
98
98
  scrollPosition: {
99
- current: import("../../models/index.js").ScrollPosition;
99
+ current: import("../../models/index.mjs").ScrollPosition;
100
100
  };
101
101
  };
102
102
  getScrollAreaProps: () => {
103
103
  scrollPosition: {
104
- current: import("../../models/index.js").ScrollPosition;
104
+ current: import("../../models/index.mjs").ScrollPosition;
105
105
  };
106
106
  };
107
107
  };
@@ -5,9 +5,9 @@ import useForkRef from '@mui/utils/useForkRef';
5
5
  import useEventCallback from '@mui/utils/useEventCallback';
6
6
  import * as platform from '@mui/x-internals/platform';
7
7
  import { createSelectorMemoized } from '@mui/x-internals/store';
8
- import { Dimensions } from "../dimensions.js";
9
- import { Virtualization } from "./virtualization.js";
10
- import useRefCallback from "../../utils/useRefCallback.js";
8
+ import { Dimensions } from "../dimensions.mjs";
9
+ import { Virtualization } from "./virtualization.mjs";
10
+ import useRefCallback from "../../utils/useRefCallback.mjs";
11
11
 
12
12
  /* eslint-disable react-hooks/rules-of-hooks */
13
13
 
@@ -1,11 +1,11 @@
1
1
  import * as React from 'react';
2
2
  import type { integer } from '@mui/x-internals/types';
3
3
  import { Store } from '@mui/x-internals/store';
4
- import type { CellColSpanInfo } from "../../models/colspan.js";
5
- import { Dimensions } from "../dimensions.js";
6
- import type { BaseState, ParamsWithDefaults } from "../../useVirtualizer.js";
7
- import type { Layout } from "./layout.js";
8
- import { RenderContext, ColumnsRenderContext, ColumnWithWidth, RowId, ScrollPosition } from "../../models/index.js";
4
+ import type { CellColSpanInfo } from "../../models/colspan.mjs";
5
+ import { Dimensions } from "../dimensions.mjs";
6
+ import type { BaseState, ParamsWithDefaults } from "../../useVirtualizer.mjs";
7
+ import type { Layout } from "./layout.mjs";
8
+ import { RenderContext, ColumnsRenderContext, ColumnWithWidth, RowId, ScrollPosition } from "../../models/index.mjs";
9
9
  export type VirtualizationParams = {
10
10
  /** @default false */
11
11
  isRtl?: boolean;
@@ -10,6 +10,7 @@ exports.Virtualization = exports.EMPTY_RENDER_CONTEXT = void 0;
10
10
  exports.areRenderContextsEqual = areRenderContextsEqual;
11
11
  exports.computeOffsetLeft = computeOffsetLeft;
12
12
  exports.roundToDecimalPlaces = roundToDecimalPlaces;
13
+ var _formatErrorMessage2 = _interopRequireDefault(require("@mui/x-internals/formatErrorMessage"));
13
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
14
15
  var React = _interopRequireWildcard(require("react"));
15
16
  var ReactDOM = _interopRequireWildcard(require("react-dom"));
@@ -788,7 +789,7 @@ function bufferForDirection(isRtl, direction, rowBufferPx, columnBufferPx, verti
788
789
  };
789
790
  default:
790
791
  // eslint unable to figure out enum exhaustiveness
791
- throw new Error('unreachable');
792
+ throw /* minify-error-disabled */new Error('unreachable');
792
793
  }
793
794
  }
794
795
  function createScrollCache(isRtl, rowBufferPx, columnBufferPx, verticalBuffer, horizontalBuffer) {
@@ -834,13 +835,13 @@ function getFirstNonSpannedColumnToRender({
834
835
  /** Placeholder API functions for colspan & rowspan to re-implement */
835
836
  function createSpanningAPI() {
836
837
  const getCellColSpanInfo = () => {
837
- throw new Error('Unimplemented: colspan feature is required');
838
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: colspan feature is required' : (0, _formatErrorMessage2.default)(200));
838
839
  };
839
840
  const calculateColSpan = () => {
840
- throw new Error('Unimplemented: colspan feature is required');
841
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: colspan feature is required' : (0, _formatErrorMessage2.default)(200));
841
842
  };
842
843
  const getHiddenCellsOrigin = () => {
843
- throw new Error('Unimplemented: rowspan feature is required');
844
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: rowspan feature is required' : (0, _formatErrorMessage2.default)(201));
844
845
  };
845
846
  return {
846
847
  getCellColSpanInfo,
@@ -1,5 +1,6 @@
1
1
  'use client';
2
2
 
3
+ import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
3
4
  import _extends from "@babel/runtime/helpers/esm/extends";
4
5
  import * as React from 'react';
5
6
  import * as ReactDOM from 'react-dom';
@@ -10,10 +11,10 @@ import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
10
11
  import * as platform from '@mui/x-internals/platform';
11
12
  import { useRunOnce } from '@mui/x-internals/useRunOnce';
12
13
  import { createSelector, useStore, useStoreEffect } from '@mui/x-internals/store';
13
- import useRefCallback from "../../utils/useRefCallback.js";
14
- import { PinnedRows, PinnedColumns } from "../../models/core.js";
15
- import { Dimensions, observeRootNode } from "../dimensions.js";
16
- import { ScrollPosition, ScrollDirection } from "../../models/index.js";
14
+ import useRefCallback from "../../utils/useRefCallback.mjs";
15
+ import { PinnedRows, PinnedColumns } from "../../models/core.mjs";
16
+ import { Dimensions, observeRootNode } from "../dimensions.mjs";
17
+ import { ScrollPosition, ScrollDirection } from "../../models/index.mjs";
17
18
 
18
19
  /* eslint-disable import/export, @typescript-eslint/no-redeclare */
19
20
 
@@ -779,7 +780,7 @@ function bufferForDirection(isRtl, direction, rowBufferPx, columnBufferPx, verti
779
780
  };
780
781
  default:
781
782
  // eslint unable to figure out enum exhaustiveness
782
- throw new Error('unreachable');
783
+ throw /* minify-error-disabled */new Error('unreachable');
783
784
  }
784
785
  }
785
786
  function createScrollCache(isRtl, rowBufferPx, columnBufferPx, verticalBuffer, horizontalBuffer) {
@@ -825,13 +826,13 @@ function getFirstNonSpannedColumnToRender({
825
826
  /** Placeholder API functions for colspan & rowspan to re-implement */
826
827
  function createSpanningAPI() {
827
828
  const getCellColSpanInfo = () => {
828
- throw new Error('Unimplemented: colspan feature is required');
829
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: colspan feature is required' : _formatErrorMessage(200));
829
830
  };
830
831
  const calculateColSpan = () => {
831
- throw new Error('Unimplemented: colspan feature is required');
832
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: colspan feature is required' : _formatErrorMessage(200));
832
833
  };
833
834
  const getHiddenCellsOrigin = () => {
834
- throw new Error('Unimplemented: rowspan feature is required');
835
+ throw new Error(process.env.NODE_ENV !== "production" ? 'MUI X: Unimplemented: rowspan feature is required' : _formatErrorMessage(201));
835
836
  };
836
837
  return {
837
838
  getCellColSpanInfo,
package/index.d.mts ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./useVirtualizer.mjs";
2
+ export * from "./features/index.mjs";
3
+ export * from "./constants.mjs";
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-virtualizer v1.0.0-alpha.0
2
+ * @mui/x-virtualizer v1.0.0-alpha.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @mui/x-virtualizer v1.0.0-alpha.0
2
+ * @mui/x-virtualizer v1.0.0-alpha.1
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- export * from "./useVirtualizer.js";
9
- export * from "./features/index.js";
10
- export * from "./constants.js";
8
+ export * from "./useVirtualizer.mjs";
9
+ export * from "./features/index.mjs";
10
+ export * from "./constants.mjs";
@@ -1,4 +1,4 @@
1
- import { Size } from "./core.js";
1
+ import { Size } from "./core.mjs";
2
2
  export interface DimensionsState {
3
3
  /**
4
4
  * Indicates that the dimensions have been initialized.
@@ -0,0 +1,4 @@
1
+ export * from "./core.mjs";
2
+ export * from "./colspan.mjs";
3
+ export * from "./dimensions.mjs";
4
+ export * from "./rowspan.mjs";
@@ -0,0 +1,4 @@
1
+ export * from "./core.mjs";
2
+ export * from "./colspan.mjs";
3
+ export * from "./dimensions.mjs";
4
+ export * from "./rowspan.mjs";
@@ -1,4 +1,4 @@
1
- import { RowId, RowRange } from "./core.js";
1
+ import { RowId, RowRange } from "./core.mjs";
2
2
  type ColumnIndex = number;
3
3
  export interface RowSpanningCaches {
4
4
  spannedCells: Record<RowId, Record<ColumnIndex, number>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-virtualizer",
3
- "version": "1.0.0-alpha.0",
3
+ "version": "1.0.0-alpha.1",
4
4
  "author": "MUI Team",
5
5
  "description": "MUI virtualization library",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@babel/runtime": "^7.28.6",
31
31
  "@mui/utils": "^7.3.7",
32
- "@mui/x-internals": "9.0.0-alpha.0"
32
+ "@mui/x-internals": "9.0.0-alpha.2"
33
33
  },
34
34
  "peerDependencies": {
35
35
  "react": "^17.0.0 || ^18.0.0 || ^19.0.0",
@@ -39,40 +39,65 @@
39
39
  "node": ">=14.0.0"
40
40
  },
41
41
  "type": "commonjs",
42
- "main": "./index.js",
43
- "types": "./index.d.ts",
44
42
  "exports": {
45
43
  "./package.json": "./package.json",
46
44
  ".": {
45
+ "import": {
46
+ "types": "./index.d.mts",
47
+ "default": "./index.mjs"
48
+ },
47
49
  "require": {
48
50
  "types": "./index.d.ts",
49
51
  "default": "./index.js"
50
52
  },
51
53
  "default": {
52
- "types": "./esm/index.d.ts",
53
- "default": "./esm/index.js"
54
+ "types": "./index.d.mts",
55
+ "default": "./index.mjs"
54
56
  }
55
57
  },
56
58
  "./useVirtualizer": {
59
+ "import": {
60
+ "types": "./useVirtualizer.d.mts",
61
+ "default": "./useVirtualizer.mjs"
62
+ },
57
63
  "require": {
58
64
  "types": "./useVirtualizer.d.ts",
59
65
  "default": "./useVirtualizer.js"
60
66
  },
61
67
  "default": {
62
- "types": "./esm/useVirtualizer.d.ts",
63
- "default": "./esm/useVirtualizer.js"
68
+ "types": "./useVirtualizer.d.mts",
69
+ "default": "./useVirtualizer.mjs"
64
70
  }
65
71
  },
66
- "./*": {
72
+ "./features": {
73
+ "import": {
74
+ "types": "./features/index.d.mts",
75
+ "default": "./features/index.mjs"
76
+ },
67
77
  "require": {
68
- "types": "./*/index.d.ts",
69
- "default": "./*/index.js"
78
+ "types": "./features/index.d.ts",
79
+ "default": "./features/index.js"
70
80
  },
71
81
  "default": {
72
- "types": "./esm/*/index.d.ts",
73
- "default": "./esm/*/index.js"
82
+ "types": "./features/index.d.mts",
83
+ "default": "./features/index.mjs"
74
84
  }
75
85
  },
76
- "./esm": null
77
- }
86
+ "./models": {
87
+ "import": {
88
+ "types": "./models/index.d.mts",
89
+ "default": "./models/index.mjs"
90
+ },
91
+ "require": {
92
+ "types": "./models/index.d.ts",
93
+ "default": "./models/index.js"
94
+ },
95
+ "default": {
96
+ "types": "./models/index.d.mts",
97
+ "default": "./models/index.mjs"
98
+ }
99
+ }
100
+ },
101
+ "main": "./index.js",
102
+ "types": "./index.d.ts"
78
103
  }
@@ -1,16 +1,16 @@
1
1
  import * as React from 'react';
2
2
  import { integer } from '@mui/x-internals/types';
3
3
  import { Store } from '@mui/x-internals/store';
4
- import { Colspan } from "./features/colspan.js";
5
- import { Dimensions } from "./features/dimensions.js";
6
- import { Rowspan } from "./features/rowspan.js";
7
- import { Virtualization } from "./features/virtualization/index.js";
8
- import type { Layout } from "./features/virtualization/layout.js";
9
- import type { HeightEntry, RowSpacing } from "./models/dimensions.js";
10
- import type { ColspanParams } from "./features/colspan.js";
11
- import type { DimensionsParams } from "./features/dimensions.js";
12
- import type { VirtualizationParams } from "./features/virtualization/index.js";
13
- import { ColumnWithWidth, FocusedCell, Size, PinnedRows, PinnedColumns, RenderContext, Row, RowEntry } from "./models/index.js";
4
+ import { Colspan } from "./features/colspan.mjs";
5
+ import { Dimensions } from "./features/dimensions.mjs";
6
+ import { Rowspan } from "./features/rowspan.mjs";
7
+ import { Virtualization } from "./features/virtualization/index.mjs";
8
+ import type { Layout } from "./features/virtualization/layout.mjs";
9
+ import type { HeightEntry, RowSpacing } from "./models/dimensions.mjs";
10
+ import type { ColspanParams } from "./features/colspan.mjs";
11
+ import type { DimensionsParams } from "./features/dimensions.mjs";
12
+ import type { VirtualizationParams } from "./features/virtualization/index.mjs";
13
+ import { ColumnWithWidth, FocusedCell, Size, PinnedRows, PinnedColumns, RenderContext, Row, RowEntry } from "./models/index.mjs";
14
14
  export type Virtualizer = ReturnType<typeof useVirtualizer>;
15
15
  export type VirtualScrollerCompat<L extends Layout = Layout> = Virtualization.State<L>['getters'];
16
16
  export type BaseState<L extends Layout = Layout> = Virtualization.State<L> & Dimensions.State;
@@ -101,28 +101,28 @@ export declare const useVirtualizer: <L extends Layout = Layout>(params: Virtual
101
101
  updateDimensions: (firstUpdate?: boolean) => void;
102
102
  debouncedUpdateDimensions: (((firstUpdate?: boolean) => void) & import("@mui/x-internals/throttle").Cancelable) | undefined;
103
103
  rowsMeta: {
104
- getRowHeight: (rowId: import("./models/index.js").RowId) => any;
104
+ getRowHeight: (rowId: import("./models/index.mjs").RowId) => any;
105
105
  setLastMeasuredRowIndex: (index: number) => void;
106
- storeRowHeightMeasurement: (id: import("./models/index.js").RowId, height: number) => void;
106
+ storeRowHeightMeasurement: (id: import("./models/index.mjs").RowId, height: number) => void;
107
107
  hydrateRowsMeta: () => void;
108
- observeRowHeight: (element: Element, rowId: import("./models/index.js").RowId) => () => void | undefined;
109
- rowHasAutoHeight: (id: import("./models/index.js").RowId) => any;
110
- getRowHeightEntry: (rowId: import("./models/index.js").RowId) => any;
108
+ observeRowHeight: (element: Element, rowId: import("./models/index.mjs").RowId) => () => void | undefined;
109
+ rowHasAutoHeight: (id: import("./models/index.mjs").RowId) => any;
110
+ getRowHeightEntry: (rowId: import("./models/index.mjs").RowId) => any;
111
111
  getLastMeasuredRowIndex: () => number;
112
112
  resetRowHeights: () => void;
113
113
  };
114
114
  } & {
115
- getCellColSpanInfo: (rowId: import("./models/index.js").RowId, columnIndex: integer) => import("./models/index.js").CellColSpanInfo;
116
- calculateColSpan: (rowId: import("./models/index.js").RowId, minFirstColumn: integer, maxLastColumn: integer, columns: ColumnWithWidth[]) => void;
117
- getHiddenCellsOrigin: () => Record<import("./models/index.js").RowId, Record<number, number>>;
115
+ getCellColSpanInfo: (rowId: import("./models/index.mjs").RowId, columnIndex: integer) => import("./models/index.mjs").CellColSpanInfo;
116
+ calculateColSpan: (rowId: import("./models/index.mjs").RowId, minFirstColumn: integer, maxLastColumn: integer, columns: ColumnWithWidth[]) => void;
117
+ getHiddenCellsOrigin: () => Record<import("./models/index.mjs").RowId, Record<number, number>>;
118
118
  getters: any;
119
119
  setPanels: React.Dispatch<React.SetStateAction<Readonly<Map<any, React.ReactNode>>>>;
120
120
  forceUpdateRenderContext: () => void;
121
121
  scheduleUpdateRenderContext: () => void;
122
122
  } & {
123
123
  resetColSpan: () => void;
124
- getCellColSpanInfo: (rowId: import("./models/index.js").RowId, columnIndex: integer) => import("./models/index.js").CellColSpanInfo | undefined;
125
- calculateColSpan: (rowId: import("./models/index.js").RowId, minFirstColumn: integer, maxLastColumn: integer, columns: ColumnWithWidth[]) => void;
124
+ getCellColSpanInfo: (rowId: import("./models/index.mjs").RowId, columnIndex: integer) => import("./models/index.mjs").CellColSpanInfo | undefined;
125
+ calculateColSpan: (rowId: import("./models/index.mjs").RowId, minFirstColumn: integer, maxLastColumn: integer, columns: ColumnWithWidth[]) => void;
126
126
  } & {
127
127
  getHiddenCellsOrigin: () => Record<number, Record<number, number>>;
128
128
  } & {
@@ -1,12 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import useLazyRef from '@mui/utils/useLazyRef';
3
3
  import { Store } from '@mui/x-internals/store';
4
- import { Colspan } from "./features/colspan.js";
5
- import { Dimensions } from "./features/dimensions.js";
6
- import { Keyboard } from "./features/keyboard.js";
7
- import { Rowspan } from "./features/rowspan.js";
8
- import { Virtualization } from "./features/virtualization/index.js";
9
- import { DEFAULT_PARAMS } from "./constants.js";
4
+ import { Colspan } from "./features/colspan.mjs";
5
+ import { Dimensions } from "./features/dimensions.mjs";
6
+ import { Keyboard } from "./features/keyboard.mjs";
7
+ import { Rowspan } from "./features/rowspan.mjs";
8
+ import { Virtualization } from "./features/virtualization/index.mjs";
9
+ import { DEFAULT_PARAMS } from "./constants.mjs";
10
10
 
11
11
  /* eslint-disable jsdoc/require-param-type */
12
12
  /* eslint-disable jsdoc/require-param-description */
@@ -1,5 +0,0 @@
1
- export * from "./colspan.js";
2
- export * from "./dimensions.js";
3
- export * from "./keyboard.js";
4
- export * from "./rowspan.js";
5
- export * from "./virtualization/index.js";
@@ -1,5 +0,0 @@
1
- export * from "./colspan.js";
2
- export * from "./dimensions.js";
3
- export * from "./keyboard.js";
4
- export * from "./rowspan.js";
5
- export * from "./virtualization/index.js";
@@ -1,2 +0,0 @@
1
- export * from "./layout.js";
2
- export * from "./virtualization.js";
@@ -1,2 +0,0 @@
1
- export * from "./layout.js";
2
- export * from "./virtualization.js";
package/esm/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from "./useVirtualizer.js";
2
- export * from "./features/index.js";
3
- export * from "./constants.js";
@@ -1,4 +0,0 @@
1
- export * from "./core.js";
2
- export * from "./colspan.js";
3
- export * from "./dimensions.js";
4
- export * from "./rowspan.js";
@@ -1,4 +0,0 @@
1
- export * from "./core.js";
2
- export * from "./colspan.js";
3
- export * from "./dimensions.js";
4
- export * from "./rowspan.js";
package/esm/package.json DELETED
@@ -1 +0,0 @@
1
- {"type":"module","sideEffects":false}
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes