@workday/canvas-kit-react 9.0.0-alpha.416-next.18 → 9.0.0-alpha.418-next.20
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/collection/index.ts +1 -0
- package/collection/lib/useCursorListModel.tsx +17 -3
- package/collection/lib/useListItemAllowChildStrings.ts +3 -3
- package/collection/lib/useListItemRovingFocus.tsx +19 -7
- package/collection/lib/useListLoader.ts +313 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts +303 -0
- package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +9 -0
- package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +9 -0
- package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +12 -0
- package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +153 -0
- package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +312 -0
- package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +12 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +9 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +6 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts +144 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +12 -0
- package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +153 -0
- package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/commonjs/collection/index.d.ts +1 -0
- package/dist/commonjs/collection/index.d.ts.map +1 -1
- package/dist/commonjs/collection/index.js +1 -0
- package/dist/commonjs/collection/lib/ListBox.d.ts +114 -0
- package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useCursorListModel.d.ts +310 -0
- package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useCursorListModel.js +10 -0
- package/dist/commonjs/collection/lib/useGridModel.d.ts +111 -0
- package/dist/commonjs/collection/lib/useGridModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts +6 -3
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemAllowChildStrings.js +3 -3
- package/dist/commonjs/collection/lib/useListItemRegister.d.ts +3 -0
- package/dist/commonjs/collection/lib/useListItemRegister.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts +3 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListItemRovingFocus.js +15 -8
- package/dist/commonjs/collection/lib/useListItemSelect.d.ts +3 -0
- package/dist/commonjs/collection/lib/useListItemSelect.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListLoader.d.ts +67 -0
- package/dist/commonjs/collection/lib/useListLoader.d.ts.map +1 -0
- package/dist/commonjs/collection/lib/useListLoader.js +213 -0
- package/dist/commonjs/collection/lib/useListModel.d.ts +111 -0
- package/dist/commonjs/collection/lib/useListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts +3 -0
- package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +3 -0
- package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +3 -0
- package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +147 -0
- package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +3 -0
- package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/commonjs/collection/lib/useSelectionListModel.d.ts +111 -0
- package/dist/commonjs/collection/lib/useSelectionListModel.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/Menu.d.ts +141 -0
- package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuCard.d.ts +6 -0
- package/dist/commonjs/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuContextTarget.d.ts +9 -0
- package/dist/commonjs/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuItem.d.ts +6 -1
- package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuList.d.ts +6 -0
- package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuPopper.d.ts +3 -0
- package/dist/commonjs/menu/lib/MenuPopper.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/MenuTarget.d.ts +15 -0
- package/dist/commonjs/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/commonjs/menu/lib/useMenuModel.d.ts +129 -0
- package/dist/commonjs/menu/lib/useMenuModel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/Tabs.d.ts +450 -0
- package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts +12 -1
- package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsList.d.ts +12 -0
- package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts +3 -0
- package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +12 -0
- package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts +12 -0
- package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts +6 -0
- package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts +405 -0
- package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBar.d.ts +303 -0
- package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts +9 -0
- package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarList.d.ts +9 -0
- package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +12 -0
- package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts +153 -0
- package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +312 -0
- package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +12 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +9 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +6 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts +144 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +12 -0
- package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +153 -0
- package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
- package/dist/es6/collection/index.d.ts +1 -0
- package/dist/es6/collection/index.d.ts.map +1 -1
- package/dist/es6/collection/index.js +1 -0
- package/dist/es6/collection/lib/ListBox.d.ts +114 -0
- package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
- package/dist/es6/collection/lib/useCursorListModel.d.ts +310 -0
- package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useCursorListModel.js +10 -0
- package/dist/es6/collection/lib/useGridModel.d.ts +111 -0
- package/dist/es6/collection/lib/useGridModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts +6 -3
- package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemAllowChildStrings.js +3 -3
- package/dist/es6/collection/lib/useListItemRegister.d.ts +3 -0
- package/dist/es6/collection/lib/useListItemRegister.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts +3 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListItemRovingFocus.js +15 -8
- package/dist/es6/collection/lib/useListItemSelect.d.ts +3 -0
- package/dist/es6/collection/lib/useListItemSelect.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListLoader.d.ts +67 -0
- package/dist/es6/collection/lib/useListLoader.d.ts.map +1 -0
- package/dist/es6/collection/lib/useListLoader.js +204 -0
- package/dist/es6/collection/lib/useListModel.d.ts +111 -0
- package/dist/es6/collection/lib/useListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts +3 -0
- package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +3 -0
- package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +3 -0
- package/dist/es6/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListModel.d.ts +147 -0
- package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts +3 -0
- package/dist/es6/collection/lib/useOverflowListTarget.d.ts.map +1 -1
- package/dist/es6/collection/lib/useSelectionListModel.d.ts +111 -0
- package/dist/es6/collection/lib/useSelectionListModel.d.ts.map +1 -1
- package/dist/es6/menu/lib/Menu.d.ts +141 -0
- package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuCard.d.ts +6 -0
- package/dist/es6/menu/lib/MenuCard.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuContextTarget.d.ts +9 -0
- package/dist/es6/menu/lib/MenuContextTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuItem.d.ts +6 -1
- package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuList.d.ts +6 -0
- package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuPopper.d.ts +3 -0
- package/dist/es6/menu/lib/MenuPopper.d.ts.map +1 -1
- package/dist/es6/menu/lib/MenuTarget.d.ts +15 -0
- package/dist/es6/menu/lib/MenuTarget.d.ts.map +1 -1
- package/dist/es6/menu/lib/useMenuModel.d.ts +129 -0
- package/dist/es6/menu/lib/useMenuModel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/Tabs.d.ts +450 -0
- package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts +12 -1
- package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsList.d.ts +12 -0
- package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsMenuPopper.d.ts +3 -0
- package/dist/es6/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +12 -0
- package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanel.d.ts +12 -0
- package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
- package/dist/es6/tabs/lib/TabsPanels.d.ts +6 -0
- package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
- package/dist/es6/tabs/lib/useTabsModel.d.ts +405 -0
- package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -179,6 +179,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
179
179
|
* based on the size of the list container and the number of items fitting within the container.
|
|
180
180
|
*/
|
|
181
181
|
pageSizeRef: React.MutableRefObject<number>;
|
|
182
|
+
/**
|
|
183
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
184
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
185
|
+
* or the `items` change.
|
|
186
|
+
*
|
|
187
|
+
* @readonly
|
|
188
|
+
*/
|
|
189
|
+
cursorIndexRef: {
|
|
190
|
+
readonly current: number;
|
|
191
|
+
};
|
|
182
192
|
UNSTABLE_virtual: {
|
|
183
193
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
184
194
|
totalSize: number;
|
|
@@ -209,6 +219,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
209
219
|
* based on the size of the list container and the number of items fitting within the container.
|
|
210
220
|
*/
|
|
211
221
|
pageSizeRef: React.MutableRefObject<number>;
|
|
222
|
+
/**
|
|
223
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
224
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
225
|
+
* or the `items` change.
|
|
226
|
+
*
|
|
227
|
+
* @readonly
|
|
228
|
+
*/
|
|
229
|
+
cursorIndexRef: {
|
|
230
|
+
readonly current: number;
|
|
231
|
+
};
|
|
212
232
|
UNSTABLE_virtual: {
|
|
213
233
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
214
234
|
totalSize: number;
|
|
@@ -239,6 +259,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
239
259
|
* based on the size of the list container and the number of items fitting within the container.
|
|
240
260
|
*/
|
|
241
261
|
pageSizeRef: React.MutableRefObject<number>;
|
|
262
|
+
/**
|
|
263
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
264
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
265
|
+
* or the `items` change.
|
|
266
|
+
*
|
|
267
|
+
* @readonly
|
|
268
|
+
*/
|
|
269
|
+
cursorIndexRef: {
|
|
270
|
+
readonly current: number;
|
|
271
|
+
};
|
|
242
272
|
UNSTABLE_virtual: {
|
|
243
273
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
244
274
|
totalSize: number;
|
|
@@ -269,6 +299,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
269
299
|
* based on the size of the list container and the number of items fitting within the container.
|
|
270
300
|
*/
|
|
271
301
|
pageSizeRef: React.MutableRefObject<number>;
|
|
302
|
+
/**
|
|
303
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
304
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
305
|
+
* or the `items` change.
|
|
306
|
+
*
|
|
307
|
+
* @readonly
|
|
308
|
+
*/
|
|
309
|
+
cursorIndexRef: {
|
|
310
|
+
readonly current: number;
|
|
311
|
+
};
|
|
272
312
|
UNSTABLE_virtual: {
|
|
273
313
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
274
314
|
totalSize: number;
|
|
@@ -299,6 +339,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
299
339
|
* based on the size of the list container and the number of items fitting within the container.
|
|
300
340
|
*/
|
|
301
341
|
pageSizeRef: React.MutableRefObject<number>;
|
|
342
|
+
/**
|
|
343
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
344
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
345
|
+
* or the `items` change.
|
|
346
|
+
*
|
|
347
|
+
* @readonly
|
|
348
|
+
*/
|
|
349
|
+
cursorIndexRef: {
|
|
350
|
+
readonly current: number;
|
|
351
|
+
};
|
|
302
352
|
UNSTABLE_virtual: {
|
|
303
353
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
304
354
|
totalSize: number;
|
|
@@ -329,6 +379,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
329
379
|
* based on the size of the list container and the number of items fitting within the container.
|
|
330
380
|
*/
|
|
331
381
|
pageSizeRef: React.MutableRefObject<number>;
|
|
382
|
+
/**
|
|
383
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
384
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
385
|
+
* or the `items` change.
|
|
386
|
+
*
|
|
387
|
+
* @readonly
|
|
388
|
+
*/
|
|
389
|
+
cursorIndexRef: {
|
|
390
|
+
readonly current: number;
|
|
391
|
+
};
|
|
332
392
|
UNSTABLE_virtual: {
|
|
333
393
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
334
394
|
totalSize: number;
|
|
@@ -359,6 +419,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
359
419
|
* based on the size of the list container and the number of items fitting within the container.
|
|
360
420
|
*/
|
|
361
421
|
pageSizeRef: React.MutableRefObject<number>;
|
|
422
|
+
/**
|
|
423
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
424
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
425
|
+
* or the `items` change.
|
|
426
|
+
*
|
|
427
|
+
* @readonly
|
|
428
|
+
*/
|
|
429
|
+
cursorIndexRef: {
|
|
430
|
+
readonly current: number;
|
|
431
|
+
};
|
|
362
432
|
UNSTABLE_virtual: {
|
|
363
433
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
364
434
|
totalSize: number;
|
|
@@ -389,6 +459,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
389
459
|
* based on the size of the list container and the number of items fitting within the container.
|
|
390
460
|
*/
|
|
391
461
|
pageSizeRef: React.MutableRefObject<number>;
|
|
462
|
+
/**
|
|
463
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
464
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
465
|
+
* or the `items` change.
|
|
466
|
+
*
|
|
467
|
+
* @readonly
|
|
468
|
+
*/
|
|
469
|
+
cursorIndexRef: {
|
|
470
|
+
readonly current: number;
|
|
471
|
+
};
|
|
392
472
|
UNSTABLE_virtual: {
|
|
393
473
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
394
474
|
totalSize: number;
|
|
@@ -419,6 +499,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
419
499
|
* based on the size of the list container and the number of items fitting within the container.
|
|
420
500
|
*/
|
|
421
501
|
pageSizeRef: React.MutableRefObject<number>;
|
|
502
|
+
/**
|
|
503
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
504
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
505
|
+
* or the `items` change.
|
|
506
|
+
*
|
|
507
|
+
* @readonly
|
|
508
|
+
*/
|
|
509
|
+
cursorIndexRef: {
|
|
510
|
+
readonly current: number;
|
|
511
|
+
};
|
|
422
512
|
UNSTABLE_virtual: {
|
|
423
513
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
424
514
|
totalSize: number;
|
|
@@ -449,6 +539,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
449
539
|
* based on the size of the list container and the number of items fitting within the container.
|
|
450
540
|
*/
|
|
451
541
|
pageSizeRef: React.MutableRefObject<number>;
|
|
542
|
+
/**
|
|
543
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
544
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
545
|
+
* or the `items` change.
|
|
546
|
+
*
|
|
547
|
+
* @readonly
|
|
548
|
+
*/
|
|
549
|
+
cursorIndexRef: {
|
|
550
|
+
readonly current: number;
|
|
551
|
+
};
|
|
452
552
|
UNSTABLE_virtual: {
|
|
453
553
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
454
554
|
totalSize: number;
|
|
@@ -479,6 +579,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
479
579
|
* based on the size of the list container and the number of items fitting within the container.
|
|
480
580
|
*/
|
|
481
581
|
pageSizeRef: React.MutableRefObject<number>;
|
|
582
|
+
/**
|
|
583
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
584
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
585
|
+
* or the `items` change.
|
|
586
|
+
*
|
|
587
|
+
* @readonly
|
|
588
|
+
*/
|
|
589
|
+
cursorIndexRef: {
|
|
590
|
+
readonly current: number;
|
|
591
|
+
};
|
|
482
592
|
UNSTABLE_virtual: {
|
|
483
593
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
484
594
|
totalSize: number;
|
|
@@ -512,6 +622,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
512
622
|
* based on the size of the list container and the number of items fitting within the container.
|
|
513
623
|
*/
|
|
514
624
|
pageSizeRef: React.MutableRefObject<number>;
|
|
625
|
+
/**
|
|
626
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
627
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
628
|
+
* or the `items` change.
|
|
629
|
+
*
|
|
630
|
+
* @readonly
|
|
631
|
+
*/
|
|
632
|
+
cursorIndexRef: {
|
|
633
|
+
readonly current: number;
|
|
634
|
+
};
|
|
515
635
|
UNSTABLE_virtual: {
|
|
516
636
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
517
637
|
totalSize: number;
|
|
@@ -544,6 +664,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
544
664
|
* based on the size of the list container and the number of items fitting within the container.
|
|
545
665
|
*/
|
|
546
666
|
pageSizeRef: React.MutableRefObject<number>;
|
|
667
|
+
/**
|
|
668
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
669
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
670
|
+
* or the `items` change.
|
|
671
|
+
*
|
|
672
|
+
* @readonly
|
|
673
|
+
*/
|
|
674
|
+
cursorIndexRef: {
|
|
675
|
+
readonly current: number;
|
|
676
|
+
};
|
|
547
677
|
UNSTABLE_virtual: {
|
|
548
678
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
549
679
|
totalSize: number;
|
|
@@ -576,6 +706,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
576
706
|
* based on the size of the list container and the number of items fitting within the container.
|
|
577
707
|
*/
|
|
578
708
|
pageSizeRef: React.MutableRefObject<number>;
|
|
709
|
+
/**
|
|
710
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
711
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
712
|
+
* or the `items` change.
|
|
713
|
+
*
|
|
714
|
+
* @readonly
|
|
715
|
+
*/
|
|
716
|
+
cursorIndexRef: {
|
|
717
|
+
readonly current: number;
|
|
718
|
+
};
|
|
579
719
|
UNSTABLE_virtual: {
|
|
580
720
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
581
721
|
totalSize: number;
|
|
@@ -609,6 +749,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
609
749
|
* based on the size of the list container and the number of items fitting within the container.
|
|
610
750
|
*/
|
|
611
751
|
pageSizeRef: React.MutableRefObject<number>;
|
|
752
|
+
/**
|
|
753
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
754
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
755
|
+
* or the `items` change.
|
|
756
|
+
*
|
|
757
|
+
* @readonly
|
|
758
|
+
*/
|
|
759
|
+
cursorIndexRef: {
|
|
760
|
+
readonly current: number;
|
|
761
|
+
};
|
|
612
762
|
UNSTABLE_virtual: {
|
|
613
763
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
614
764
|
totalSize: number;
|
|
@@ -639,6 +789,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
639
789
|
* based on the size of the list container and the number of items fitting within the container.
|
|
640
790
|
*/
|
|
641
791
|
pageSizeRef: React.MutableRefObject<number>;
|
|
792
|
+
/**
|
|
793
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
794
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
795
|
+
* or the `items` change.
|
|
796
|
+
*
|
|
797
|
+
* @readonly
|
|
798
|
+
*/
|
|
799
|
+
cursorIndexRef: {
|
|
800
|
+
readonly current: number;
|
|
801
|
+
};
|
|
642
802
|
UNSTABLE_virtual: {
|
|
643
803
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
644
804
|
totalSize: number;
|
|
@@ -669,6 +829,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
669
829
|
* based on the size of the list container and the number of items fitting within the container.
|
|
670
830
|
*/
|
|
671
831
|
pageSizeRef: React.MutableRefObject<number>;
|
|
832
|
+
/**
|
|
833
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
834
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
835
|
+
* or the `items` change.
|
|
836
|
+
*
|
|
837
|
+
* @readonly
|
|
838
|
+
*/
|
|
839
|
+
cursorIndexRef: {
|
|
840
|
+
readonly current: number;
|
|
841
|
+
};
|
|
672
842
|
UNSTABLE_virtual: {
|
|
673
843
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
674
844
|
totalSize: number;
|
|
@@ -699,6 +869,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
699
869
|
* based on the size of the list container and the number of items fitting within the container.
|
|
700
870
|
*/
|
|
701
871
|
pageSizeRef: React.MutableRefObject<number>;
|
|
872
|
+
/**
|
|
873
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
874
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
875
|
+
* or the `items` change.
|
|
876
|
+
*
|
|
877
|
+
* @readonly
|
|
878
|
+
*/
|
|
879
|
+
cursorIndexRef: {
|
|
880
|
+
readonly current: number;
|
|
881
|
+
};
|
|
702
882
|
UNSTABLE_virtual: {
|
|
703
883
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
704
884
|
totalSize: number;
|
|
@@ -729,6 +909,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
729
909
|
* based on the size of the list container and the number of items fitting within the container.
|
|
730
910
|
*/
|
|
731
911
|
pageSizeRef: React.MutableRefObject<number>;
|
|
912
|
+
/**
|
|
913
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
914
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
915
|
+
* or the `items` change.
|
|
916
|
+
*
|
|
917
|
+
* @readonly
|
|
918
|
+
*/
|
|
919
|
+
cursorIndexRef: {
|
|
920
|
+
readonly current: number;
|
|
921
|
+
};
|
|
732
922
|
UNSTABLE_virtual: {
|
|
733
923
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
734
924
|
totalSize: number;
|
|
@@ -759,6 +949,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
759
949
|
* based on the size of the list container and the number of items fitting within the container.
|
|
760
950
|
*/
|
|
761
951
|
pageSizeRef: React.MutableRefObject<number>;
|
|
952
|
+
/**
|
|
953
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
954
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
955
|
+
* or the `items` change.
|
|
956
|
+
*
|
|
957
|
+
* @readonly
|
|
958
|
+
*/
|
|
959
|
+
cursorIndexRef: {
|
|
960
|
+
readonly current: number;
|
|
961
|
+
};
|
|
762
962
|
UNSTABLE_virtual: {
|
|
763
963
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
764
964
|
totalSize: number;
|
|
@@ -789,6 +989,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
789
989
|
* based on the size of the list container and the number of items fitting within the container.
|
|
790
990
|
*/
|
|
791
991
|
pageSizeRef: React.MutableRefObject<number>;
|
|
992
|
+
/**
|
|
993
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
994
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
995
|
+
* or the `items` change.
|
|
996
|
+
*
|
|
997
|
+
* @readonly
|
|
998
|
+
*/
|
|
999
|
+
cursorIndexRef: {
|
|
1000
|
+
readonly current: number;
|
|
1001
|
+
};
|
|
792
1002
|
UNSTABLE_virtual: {
|
|
793
1003
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
794
1004
|
totalSize: number;
|
|
@@ -819,6 +1029,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
819
1029
|
* based on the size of the list container and the number of items fitting within the container.
|
|
820
1030
|
*/
|
|
821
1031
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1032
|
+
/**
|
|
1033
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1034
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1035
|
+
* or the `items` change.
|
|
1036
|
+
*
|
|
1037
|
+
* @readonly
|
|
1038
|
+
*/
|
|
1039
|
+
cursorIndexRef: {
|
|
1040
|
+
readonly current: number;
|
|
1041
|
+
};
|
|
822
1042
|
UNSTABLE_virtual: {
|
|
823
1043
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
824
1044
|
totalSize: number;
|
|
@@ -849,6 +1069,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
849
1069
|
* based on the size of the list container and the number of items fitting within the container.
|
|
850
1070
|
*/
|
|
851
1071
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1072
|
+
/**
|
|
1073
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1074
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1075
|
+
* or the `items` change.
|
|
1076
|
+
*
|
|
1077
|
+
* @readonly
|
|
1078
|
+
*/
|
|
1079
|
+
cursorIndexRef: {
|
|
1080
|
+
readonly current: number;
|
|
1081
|
+
};
|
|
852
1082
|
UNSTABLE_virtual: {
|
|
853
1083
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
854
1084
|
totalSize: number;
|
|
@@ -879,6 +1109,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
879
1109
|
* based on the size of the list container and the number of items fitting within the container.
|
|
880
1110
|
*/
|
|
881
1111
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1112
|
+
/**
|
|
1113
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1114
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1115
|
+
* or the `items` change.
|
|
1116
|
+
*
|
|
1117
|
+
* @readonly
|
|
1118
|
+
*/
|
|
1119
|
+
cursorIndexRef: {
|
|
1120
|
+
readonly current: number;
|
|
1121
|
+
};
|
|
882
1122
|
UNSTABLE_virtual: {
|
|
883
1123
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
884
1124
|
totalSize: number;
|
|
@@ -909,6 +1149,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
909
1149
|
* based on the size of the list container and the number of items fitting within the container.
|
|
910
1150
|
*/
|
|
911
1151
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1152
|
+
/**
|
|
1153
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1154
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1155
|
+
* or the `items` change.
|
|
1156
|
+
*
|
|
1157
|
+
* @readonly
|
|
1158
|
+
*/
|
|
1159
|
+
cursorIndexRef: {
|
|
1160
|
+
readonly current: number;
|
|
1161
|
+
};
|
|
912
1162
|
UNSTABLE_virtual: {
|
|
913
1163
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
914
1164
|
totalSize: number;
|
|
@@ -942,6 +1192,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
942
1192
|
* based on the size of the list container and the number of items fitting within the container.
|
|
943
1193
|
*/
|
|
944
1194
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1195
|
+
/**
|
|
1196
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1197
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1198
|
+
* or the `items` change.
|
|
1199
|
+
*
|
|
1200
|
+
* @readonly
|
|
1201
|
+
*/
|
|
1202
|
+
cursorIndexRef: {
|
|
1203
|
+
readonly current: number;
|
|
1204
|
+
};
|
|
945
1205
|
UNSTABLE_virtual: {
|
|
946
1206
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
947
1207
|
totalSize: number;
|
|
@@ -974,6 +1234,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
974
1234
|
* based on the size of the list container and the number of items fitting within the container.
|
|
975
1235
|
*/
|
|
976
1236
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1237
|
+
/**
|
|
1238
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1239
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1240
|
+
* or the `items` change.
|
|
1241
|
+
*
|
|
1242
|
+
* @readonly
|
|
1243
|
+
*/
|
|
1244
|
+
cursorIndexRef: {
|
|
1245
|
+
readonly current: number;
|
|
1246
|
+
};
|
|
977
1247
|
UNSTABLE_virtual: {
|
|
978
1248
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
979
1249
|
totalSize: number;
|
|
@@ -1006,6 +1276,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
1006
1276
|
* based on the size of the list container and the number of items fitting within the container.
|
|
1007
1277
|
*/
|
|
1008
1278
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1279
|
+
/**
|
|
1280
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1281
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1282
|
+
* or the `items` change.
|
|
1283
|
+
*
|
|
1284
|
+
* @readonly
|
|
1285
|
+
*/
|
|
1286
|
+
cursorIndexRef: {
|
|
1287
|
+
readonly current: number;
|
|
1288
|
+
};
|
|
1009
1289
|
UNSTABLE_virtual: {
|
|
1010
1290
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
1011
1291
|
totalSize: number;
|
|
@@ -1037,6 +1317,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
1037
1317
|
* based on the size of the list container and the number of items fitting within the container.
|
|
1038
1318
|
*/
|
|
1039
1319
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1320
|
+
/**
|
|
1321
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1322
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1323
|
+
* or the `items` change.
|
|
1324
|
+
*
|
|
1325
|
+
* @readonly
|
|
1326
|
+
*/
|
|
1327
|
+
cursorIndexRef: {
|
|
1328
|
+
readonly current: number;
|
|
1329
|
+
};
|
|
1040
1330
|
UNSTABLE_virtual: {
|
|
1041
1331
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
1042
1332
|
totalSize: number;
|
|
@@ -1172,6 +1462,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
1172
1462
|
* based on the size of the list container and the number of items fitting within the container.
|
|
1173
1463
|
*/
|
|
1174
1464
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1465
|
+
/**
|
|
1466
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1467
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1468
|
+
* or the `items` change.
|
|
1469
|
+
*
|
|
1470
|
+
* @readonly
|
|
1471
|
+
*/
|
|
1472
|
+
cursorIndexRef: {
|
|
1473
|
+
readonly current: number;
|
|
1474
|
+
};
|
|
1175
1475
|
UNSTABLE_virtual: {
|
|
1176
1476
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
1177
1477
|
totalSize: number;
|
|
@@ -1251,6 +1551,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
|
|
|
1251
1551
|
* based on the size of the list container and the number of items fitting within the container.
|
|
1252
1552
|
*/
|
|
1253
1553
|
pageSizeRef: React.MutableRefObject<number>;
|
|
1554
|
+
/**
|
|
1555
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
1556
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
1557
|
+
* or the `items` change.
|
|
1558
|
+
*
|
|
1559
|
+
* @readonly
|
|
1560
|
+
*/
|
|
1561
|
+
cursorIndexRef: {
|
|
1562
|
+
readonly current: number;
|
|
1563
|
+
};
|
|
1254
1564
|
UNSTABLE_virtual: {
|
|
1255
1565
|
virtualItems: import("./react-virtual").VirtualItem[];
|
|
1256
1566
|
totalSize: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCursorListModel.d.ts","sourceRoot":"","sources":["../../../../collection/lib/useCursorListModel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAA0B,OAAO,EAAC,MAAM,kC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E,EAAE,MAAM,CAAA;SAAC;QAIvB;;;;;WAKG;;QAKH;;;WAGG;;QAKH;;;;;WAKG;;QAOH;;;;;WAKG;;QAKH,mDAAmD;;QAKnD,kDAAkD;;;;;;;;;;;;;;;;;;;EA0BpD,CAAC"}
|
|
@@ -262,6 +262,7 @@ exports.useCursorListModel = common_1.createModelHook({
|
|
|
262
262
|
const columnCount = config.columnCount || 0;
|
|
263
263
|
const list = useBaseListModel_1.useBaseListModel(config);
|
|
264
264
|
const navigation = config.navigation;
|
|
265
|
+
// Cast as a readonly to signify this value should never be set
|
|
265
266
|
const cursorIndexRef = react_1.default.useRef(-1);
|
|
266
267
|
const setCursor = (index) => {
|
|
267
268
|
var _a;
|
|
@@ -270,6 +271,7 @@ exports.useCursorListModel = common_1.createModelHook({
|
|
|
270
271
|
};
|
|
271
272
|
// Keep the cursorIndex up to date with the cursor ID
|
|
272
273
|
if (cursorId && ((_a = list.state.items[cursorIndexRef.current]) === null || _a === void 0 ? void 0 : _a.id) !== cursorId) {
|
|
274
|
+
// We cast back as a writeable because this is the only place the value should be changed.
|
|
273
275
|
cursorIndexRef.current = list.state.items.findIndex(item => item.id === cursorId);
|
|
274
276
|
}
|
|
275
277
|
else if (!cursorId) {
|
|
@@ -290,6 +292,14 @@ exports.useCursorListModel = common_1.createModelHook({
|
|
|
290
292
|
* based on the size of the list container and the number of items fitting within the container.
|
|
291
293
|
*/
|
|
292
294
|
pageSizeRef,
|
|
295
|
+
/**
|
|
296
|
+
* A readonly [React.Ref](https://react.dev/learn/referencing-values-with-refs) that tracks the
|
|
297
|
+
* index of the `state.cursorId`. This value is automatically updated when the `state.cursorId`
|
|
298
|
+
* or the `items` change.
|
|
299
|
+
*
|
|
300
|
+
* @readonly
|
|
301
|
+
*/
|
|
302
|
+
cursorIndexRef,
|
|
293
303
|
};
|
|
294
304
|
const events = {
|
|
295
305
|
...list.events,
|