@react-stately/virtualizer 3.1.6-nightly.2977 → 3.1.6
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/dist/main.js +10 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +10 -1
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +5 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/LayoutInfo.ts +8 -0
- package/src/Virtualizer.ts +2 -1
package/dist/main.js
CHANGED
|
@@ -170,6 +170,11 @@ class LayoutInfo {
|
|
|
170
170
|
* The z-index of the view. 0 by default.
|
|
171
171
|
*/
|
|
172
172
|
|
|
173
|
+
/**
|
|
174
|
+
* Whether the layout info allows its contents to overflow its container.
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
|
|
173
178
|
/**
|
|
174
179
|
* @param type A string representing the view type. Should be `'item'` for item views.
|
|
175
180
|
Other types are used by supplementary views.
|
|
@@ -186,6 +191,7 @@ class LayoutInfo {
|
|
|
186
191
|
this.opacity = void 0;
|
|
187
192
|
this.transform = void 0;
|
|
188
193
|
this.zIndex = void 0;
|
|
194
|
+
this.allowOverflow = void 0;
|
|
189
195
|
this.type = type;
|
|
190
196
|
this.key = key;
|
|
191
197
|
this.parentKey = null;
|
|
@@ -195,6 +201,7 @@ class LayoutInfo {
|
|
|
195
201
|
this.opacity = 1;
|
|
196
202
|
this.transform = null;
|
|
197
203
|
this.zIndex = 0;
|
|
204
|
+
this.allowOverflow = false;
|
|
198
205
|
}
|
|
199
206
|
/**
|
|
200
207
|
* Returns a copy of the LayoutInfo.
|
|
@@ -209,6 +216,7 @@ class LayoutInfo {
|
|
|
209
216
|
res.parentKey = this.parentKey;
|
|
210
217
|
res.isSticky = this.isSticky;
|
|
211
218
|
res.zIndex = this.zIndex;
|
|
219
|
+
res.allowOverflow = this.allowOverflow;
|
|
212
220
|
return res;
|
|
213
221
|
}
|
|
214
222
|
|
|
@@ -1713,7 +1721,8 @@ class $c28d52c9ae86344e9273f2344f3d5a45$export$Virtualizer {
|
|
|
1713
1721
|
|
|
1714
1722
|
|
|
1715
1723
|
scrollToItem(key, options) {
|
|
1716
|
-
|
|
1724
|
+
// key can be 0, so check if null or undefined
|
|
1725
|
+
if (key == null) {
|
|
1717
1726
|
return;
|
|
1718
1727
|
}
|
|
1719
1728
|
|