@workday/canvas-kit-react 9.0.0-alpha.415-next.17 → 9.0.0-alpha.417-next.19

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 (192) hide show
  1. package/collection/index.ts +1 -0
  2. package/collection/lib/useCursorListModel.tsx +17 -18
  3. package/collection/lib/useListItemAllowChildStrings.ts +3 -3
  4. package/collection/lib/useListItemRovingFocus.tsx +26 -7
  5. package/collection/lib/useListLoader.ts +313 -0
  6. package/dist/commonjs/action-bar/lib/ActionBar.d.ts +427 -124
  7. package/dist/commonjs/action-bar/lib/ActionBar.d.ts.map +1 -1
  8. package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts +21 -12
  9. package/dist/commonjs/action-bar/lib/ActionBarItem.d.ts.map +1 -1
  10. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts +21 -12
  11. package/dist/commonjs/action-bar/lib/ActionBarList.d.ts.map +1 -1
  12. package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts +28 -16
  13. package/dist/commonjs/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
  14. package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts +205 -52
  15. package/dist/commonjs/action-bar/lib/useActionBarModel.d.ts.map +1 -1
  16. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts +448 -136
  17. package/dist/commonjs/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
  18. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +28 -16
  19. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
  20. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts +21 -12
  21. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
  22. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts +14 -8
  23. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
  24. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts +208 -64
  25. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
  26. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +28 -16
  27. package/dist/commonjs/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
  28. package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +205 -52
  29. package/dist/commonjs/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
  30. package/dist/commonjs/collection/index.d.ts +1 -0
  31. package/dist/commonjs/collection/index.d.ts.map +1 -1
  32. package/dist/commonjs/collection/index.js +1 -0
  33. package/dist/commonjs/collection/lib/ListBox.d.ts +162 -48
  34. package/dist/commonjs/collection/lib/ListBox.d.ts.map +1 -1
  35. package/dist/commonjs/collection/lib/useCursorListModel.d.ts +354 -56
  36. package/dist/commonjs/collection/lib/useCursorListModel.d.ts.map +1 -1
  37. package/dist/commonjs/collection/lib/useCursorListModel.js +12 -15
  38. package/dist/commonjs/collection/lib/useGridModel.d.ts +155 -44
  39. package/dist/commonjs/collection/lib/useGridModel.d.ts.map +1 -1
  40. package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts +10 -7
  41. package/dist/commonjs/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
  42. package/dist/commonjs/collection/lib/useListItemAllowChildStrings.js +3 -3
  43. package/dist/commonjs/collection/lib/useListItemRegister.d.ts +7 -4
  44. package/dist/commonjs/collection/lib/useListItemRegister.d.ts.map +1 -1
  45. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts +7 -5
  46. package/dist/commonjs/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  47. package/dist/commonjs/collection/lib/useListItemRovingFocus.js +21 -8
  48. package/dist/commonjs/collection/lib/useListItemSelect.d.ts +7 -4
  49. package/dist/commonjs/collection/lib/useListItemSelect.d.ts.map +1 -1
  50. package/dist/commonjs/collection/lib/useListLoader.d.ts +67 -0
  51. package/dist/commonjs/collection/lib/useListLoader.d.ts.map +1 -0
  52. package/dist/commonjs/collection/lib/useListLoader.js +213 -0
  53. package/dist/commonjs/collection/lib/useListModel.d.ts +155 -44
  54. package/dist/commonjs/collection/lib/useListModel.d.ts.map +1 -1
  55. package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts +7 -4
  56. package/dist/commonjs/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
  57. package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts +7 -4
  58. package/dist/commonjs/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
  59. package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts +7 -4
  60. package/dist/commonjs/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
  61. package/dist/commonjs/collection/lib/useOverflowListModel.d.ts +191 -44
  62. package/dist/commonjs/collection/lib/useOverflowListModel.d.ts.map +1 -1
  63. package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts +7 -4
  64. package/dist/commonjs/collection/lib/useOverflowListTarget.d.ts.map +1 -1
  65. package/dist/commonjs/collection/lib/useSelectionListModel.d.ts +155 -44
  66. package/dist/commonjs/collection/lib/useSelectionListModel.d.ts.map +1 -1
  67. package/dist/commonjs/menu/lib/Menu.d.ts +201 -60
  68. package/dist/commonjs/menu/lib/Menu.d.ts.map +1 -1
  69. package/dist/commonjs/menu/lib/MenuCard.d.ts +14 -8
  70. package/dist/commonjs/menu/lib/MenuCard.d.ts.map +1 -1
  71. package/dist/commonjs/menu/lib/MenuContextTarget.d.ts +21 -12
  72. package/dist/commonjs/menu/lib/MenuContextTarget.d.ts.map +1 -1
  73. package/dist/commonjs/menu/lib/MenuItem.d.ts +14 -9
  74. package/dist/commonjs/menu/lib/MenuItem.d.ts.map +1 -1
  75. package/dist/commonjs/menu/lib/MenuList.d.ts +14 -8
  76. package/dist/commonjs/menu/lib/MenuList.d.ts.map +1 -1
  77. package/dist/commonjs/menu/lib/MenuPopper.d.ts +7 -4
  78. package/dist/commonjs/menu/lib/MenuPopper.d.ts.map +1 -1
  79. package/dist/commonjs/menu/lib/MenuTarget.d.ts +35 -20
  80. package/dist/commonjs/menu/lib/MenuTarget.d.ts.map +1 -1
  81. package/dist/commonjs/menu/lib/useMenuModel.d.ts +173 -44
  82. package/dist/commonjs/menu/lib/useMenuModel.d.ts.map +1 -1
  83. package/dist/commonjs/tabs/lib/Tabs.d.ts +626 -176
  84. package/dist/commonjs/tabs/lib/Tabs.d.ts.map +1 -1
  85. package/dist/commonjs/tabs/lib/TabsItem.d.ts +28 -17
  86. package/dist/commonjs/tabs/lib/TabsItem.d.ts.map +1 -1
  87. package/dist/commonjs/tabs/lib/TabsList.d.ts +28 -16
  88. package/dist/commonjs/tabs/lib/TabsList.d.ts.map +1 -1
  89. package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts +7 -4
  90. package/dist/commonjs/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
  91. package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts +28 -16
  92. package/dist/commonjs/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
  93. package/dist/commonjs/tabs/lib/TabsPanel.d.ts +28 -16
  94. package/dist/commonjs/tabs/lib/TabsPanel.d.ts.map +1 -1
  95. package/dist/commonjs/tabs/lib/TabsPanels.d.ts +14 -8
  96. package/dist/commonjs/tabs/lib/TabsPanels.d.ts.map +1 -1
  97. package/dist/commonjs/tabs/lib/useTabsModel.d.ts +521 -116
  98. package/dist/commonjs/tabs/lib/useTabsModel.d.ts.map +1 -1
  99. package/dist/es6/action-bar/lib/ActionBar.d.ts +427 -124
  100. package/dist/es6/action-bar/lib/ActionBar.d.ts.map +1 -1
  101. package/dist/es6/action-bar/lib/ActionBarItem.d.ts +21 -12
  102. package/dist/es6/action-bar/lib/ActionBarItem.d.ts.map +1 -1
  103. package/dist/es6/action-bar/lib/ActionBarList.d.ts +21 -12
  104. package/dist/es6/action-bar/lib/ActionBarList.d.ts.map +1 -1
  105. package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts +28 -16
  106. package/dist/es6/action-bar/lib/ActionBarOverflowButton.d.ts.map +1 -1
  107. package/dist/es6/action-bar/lib/useActionBarModel.d.ts +205 -52
  108. package/dist/es6/action-bar/lib/useActionBarModel.d.ts.map +1 -1
  109. package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts +448 -136
  110. package/dist/es6/breadcrumbs/lib/Breadcrumbs.d.ts.map +1 -1
  111. package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts +28 -16
  112. package/dist/es6/breadcrumbs/lib/BreadcrumbsCurrentItem.d.ts.map +1 -1
  113. package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts +21 -12
  114. package/dist/es6/breadcrumbs/lib/BreadcrumbsItem.d.ts.map +1 -1
  115. package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts +14 -8
  116. package/dist/es6/breadcrumbs/lib/BreadcrumbsList.d.ts.map +1 -1
  117. package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts +208 -64
  118. package/dist/es6/breadcrumbs/lib/BreadcrumbsMenu.d.ts.map +1 -1
  119. package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts +28 -16
  120. package/dist/es6/breadcrumbs/lib/BreadcrumbsOverflowButton.d.ts.map +1 -1
  121. package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts +205 -52
  122. package/dist/es6/breadcrumbs/lib/hooks/useBreadcrumbsModel.d.ts.map +1 -1
  123. package/dist/es6/collection/index.d.ts +1 -0
  124. package/dist/es6/collection/index.d.ts.map +1 -1
  125. package/dist/es6/collection/index.js +1 -0
  126. package/dist/es6/collection/lib/ListBox.d.ts +162 -48
  127. package/dist/es6/collection/lib/ListBox.d.ts.map +1 -1
  128. package/dist/es6/collection/lib/useCursorListModel.d.ts +354 -56
  129. package/dist/es6/collection/lib/useCursorListModel.d.ts.map +1 -1
  130. package/dist/es6/collection/lib/useCursorListModel.js +12 -15
  131. package/dist/es6/collection/lib/useGridModel.d.ts +155 -44
  132. package/dist/es6/collection/lib/useGridModel.d.ts.map +1 -1
  133. package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts +10 -7
  134. package/dist/es6/collection/lib/useListItemAllowChildStrings.d.ts.map +1 -1
  135. package/dist/es6/collection/lib/useListItemAllowChildStrings.js +3 -3
  136. package/dist/es6/collection/lib/useListItemRegister.d.ts +7 -4
  137. package/dist/es6/collection/lib/useListItemRegister.d.ts.map +1 -1
  138. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts +7 -5
  139. package/dist/es6/collection/lib/useListItemRovingFocus.d.ts.map +1 -1
  140. package/dist/es6/collection/lib/useListItemRovingFocus.js +21 -8
  141. package/dist/es6/collection/lib/useListItemSelect.d.ts +7 -4
  142. package/dist/es6/collection/lib/useListItemSelect.d.ts.map +1 -1
  143. package/dist/es6/collection/lib/useListLoader.d.ts +67 -0
  144. package/dist/es6/collection/lib/useListLoader.d.ts.map +1 -0
  145. package/dist/es6/collection/lib/useListLoader.js +204 -0
  146. package/dist/es6/collection/lib/useListModel.d.ts +155 -44
  147. package/dist/es6/collection/lib/useListModel.d.ts.map +1 -1
  148. package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts +7 -4
  149. package/dist/es6/collection/lib/useListResetCursorOnBlur.d.ts.map +1 -1
  150. package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts +7 -4
  151. package/dist/es6/collection/lib/useOverflowListItemMeasure.d.ts.map +1 -1
  152. package/dist/es6/collection/lib/useOverflowListMeasure.d.ts +7 -4
  153. package/dist/es6/collection/lib/useOverflowListMeasure.d.ts.map +1 -1
  154. package/dist/es6/collection/lib/useOverflowListModel.d.ts +191 -44
  155. package/dist/es6/collection/lib/useOverflowListModel.d.ts.map +1 -1
  156. package/dist/es6/collection/lib/useOverflowListTarget.d.ts +7 -4
  157. package/dist/es6/collection/lib/useOverflowListTarget.d.ts.map +1 -1
  158. package/dist/es6/collection/lib/useSelectionListModel.d.ts +155 -44
  159. package/dist/es6/collection/lib/useSelectionListModel.d.ts.map +1 -1
  160. package/dist/es6/menu/lib/Menu.d.ts +201 -60
  161. package/dist/es6/menu/lib/Menu.d.ts.map +1 -1
  162. package/dist/es6/menu/lib/MenuCard.d.ts +14 -8
  163. package/dist/es6/menu/lib/MenuCard.d.ts.map +1 -1
  164. package/dist/es6/menu/lib/MenuContextTarget.d.ts +21 -12
  165. package/dist/es6/menu/lib/MenuContextTarget.d.ts.map +1 -1
  166. package/dist/es6/menu/lib/MenuItem.d.ts +14 -9
  167. package/dist/es6/menu/lib/MenuItem.d.ts.map +1 -1
  168. package/dist/es6/menu/lib/MenuList.d.ts +14 -8
  169. package/dist/es6/menu/lib/MenuList.d.ts.map +1 -1
  170. package/dist/es6/menu/lib/MenuPopper.d.ts +7 -4
  171. package/dist/es6/menu/lib/MenuPopper.d.ts.map +1 -1
  172. package/dist/es6/menu/lib/MenuTarget.d.ts +35 -20
  173. package/dist/es6/menu/lib/MenuTarget.d.ts.map +1 -1
  174. package/dist/es6/menu/lib/useMenuModel.d.ts +173 -44
  175. package/dist/es6/menu/lib/useMenuModel.d.ts.map +1 -1
  176. package/dist/es6/tabs/lib/Tabs.d.ts +626 -176
  177. package/dist/es6/tabs/lib/Tabs.d.ts.map +1 -1
  178. package/dist/es6/tabs/lib/TabsItem.d.ts +28 -17
  179. package/dist/es6/tabs/lib/TabsItem.d.ts.map +1 -1
  180. package/dist/es6/tabs/lib/TabsList.d.ts +28 -16
  181. package/dist/es6/tabs/lib/TabsList.d.ts.map +1 -1
  182. package/dist/es6/tabs/lib/TabsMenuPopper.d.ts +7 -4
  183. package/dist/es6/tabs/lib/TabsMenuPopper.d.ts.map +1 -1
  184. package/dist/es6/tabs/lib/TabsOverflowButton.d.ts +28 -16
  185. package/dist/es6/tabs/lib/TabsOverflowButton.d.ts.map +1 -1
  186. package/dist/es6/tabs/lib/TabsPanel.d.ts +28 -16
  187. package/dist/es6/tabs/lib/TabsPanel.d.ts.map +1 -1
  188. package/dist/es6/tabs/lib/TabsPanels.d.ts +14 -8
  189. package/dist/es6/tabs/lib/TabsPanels.d.ts.map +1 -1
  190. package/dist/es6/tabs/lib/useTabsModel.d.ts +521 -116
  191. package/dist/es6/tabs/lib/useTabsModel.d.ts.map +1 -1
  192. package/package.json +3 -3
@@ -163,9 +163,8 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
163
163
  shouldVirtualize: boolean;
164
164
  items: any[];
165
165
  }> & {
166
- onRegisterItem?: ((data: {
167
- item: any;
168
- textValue: string;
166
+ onGoTo?: ((data: {
167
+ id: string;
169
168
  }, prevState: {
170
169
  /** The id of the list item the cursor is pointing to */
171
170
  cursorId: string;
@@ -180,6 +179,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
180
179
  * based on the size of the list container and the number of items fitting within the container.
181
180
  */
182
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
+ };
183
192
  UNSTABLE_virtual: {
184
193
  virtualItems: import("./react-virtual").VirtualItem[];
185
194
  totalSize: number;
@@ -196,9 +205,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
196
205
  isVirtualized: boolean;
197
206
  items: Item<any>[];
198
207
  }) => void) | undefined;
199
- onGoTo?: ((data: {
200
- id: string;
201
- }, prevState: {
208
+ onGoToNext?: ((data: undefined, prevState: {
202
209
  /** The id of the list item the cursor is pointing to */
203
210
  cursorId: string;
204
211
  /**
@@ -212,6 +219,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
212
219
  * based on the size of the list container and the number of items fitting within the container.
213
220
  */
214
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
+ };
215
232
  UNSTABLE_virtual: {
216
233
  virtualItems: import("./react-virtual").VirtualItem[];
217
234
  totalSize: number;
@@ -228,7 +245,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
228
245
  isVirtualized: boolean;
229
246
  items: Item<any>[];
230
247
  }) => void) | undefined;
231
- onGoToNext?: ((data: undefined, prevState: {
248
+ onGoToPrevious?: ((data: undefined, prevState: {
232
249
  /** The id of the list item the cursor is pointing to */
233
250
  cursorId: string;
234
251
  /**
@@ -242,6 +259,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
242
259
  * based on the size of the list container and the number of items fitting within the container.
243
260
  */
244
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
+ };
245
272
  UNSTABLE_virtual: {
246
273
  virtualItems: import("./react-virtual").VirtualItem[];
247
274
  totalSize: number;
@@ -258,7 +285,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
258
285
  isVirtualized: boolean;
259
286
  items: Item<any>[];
260
287
  }) => void) | undefined;
261
- onGoToPrevious?: ((data: undefined, prevState: {
288
+ onGoToPreviousRow?: ((data: undefined, prevState: {
262
289
  /** The id of the list item the cursor is pointing to */
263
290
  cursorId: string;
264
291
  /**
@@ -272,6 +299,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
272
299
  * based on the size of the list container and the number of items fitting within the container.
273
300
  */
274
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
+ };
275
312
  UNSTABLE_virtual: {
276
313
  virtualItems: import("./react-virtual").VirtualItem[];
277
314
  totalSize: number;
@@ -288,7 +325,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
288
325
  isVirtualized: boolean;
289
326
  items: Item<any>[];
290
327
  }) => void) | undefined;
291
- onGoToPreviousRow?: ((data: undefined, prevState: {
328
+ onGoToNextRow?: ((data: undefined, prevState: {
292
329
  /** The id of the list item the cursor is pointing to */
293
330
  cursorId: string;
294
331
  /**
@@ -302,6 +339,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
302
339
  * based on the size of the list container and the number of items fitting within the container.
303
340
  */
304
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
+ };
305
352
  UNSTABLE_virtual: {
306
353
  virtualItems: import("./react-virtual").VirtualItem[];
307
354
  totalSize: number;
@@ -318,7 +365,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
318
365
  isVirtualized: boolean;
319
366
  items: Item<any>[];
320
367
  }) => void) | undefined;
321
- onGoToNextRow?: ((data: undefined, prevState: {
368
+ onGoToFirst?: ((data: undefined, prevState: {
322
369
  /** The id of the list item the cursor is pointing to */
323
370
  cursorId: string;
324
371
  /**
@@ -332,6 +379,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
332
379
  * based on the size of the list container and the number of items fitting within the container.
333
380
  */
334
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
+ };
335
392
  UNSTABLE_virtual: {
336
393
  virtualItems: import("./react-virtual").VirtualItem[];
337
394
  totalSize: number;
@@ -348,7 +405,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
348
405
  isVirtualized: boolean;
349
406
  items: Item<any>[];
350
407
  }) => void) | undefined;
351
- onGoToFirst?: ((data: undefined, prevState: {
408
+ onGoToLast?: ((data: undefined, prevState: {
352
409
  /** The id of the list item the cursor is pointing to */
353
410
  cursorId: string;
354
411
  /**
@@ -362,6 +419,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
362
419
  * based on the size of the list container and the number of items fitting within the container.
363
420
  */
364
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
+ };
365
432
  UNSTABLE_virtual: {
366
433
  virtualItems: import("./react-virtual").VirtualItem[];
367
434
  totalSize: number;
@@ -378,7 +445,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
378
445
  isVirtualized: boolean;
379
446
  items: Item<any>[];
380
447
  }) => void) | undefined;
381
- onGoToLast?: ((data: undefined, prevState: {
448
+ onGoToFirstOfRow?: ((data: undefined, prevState: {
382
449
  /** The id of the list item the cursor is pointing to */
383
450
  cursorId: string;
384
451
  /**
@@ -392,6 +459,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
392
459
  * based on the size of the list container and the number of items fitting within the container.
393
460
  */
394
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
+ };
395
472
  UNSTABLE_virtual: {
396
473
  virtualItems: import("./react-virtual").VirtualItem[];
397
474
  totalSize: number;
@@ -408,7 +485,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
408
485
  isVirtualized: boolean;
409
486
  items: Item<any>[];
410
487
  }) => void) | undefined;
411
- onGoToFirstOfRow?: ((data: undefined, prevState: {
488
+ onGoToLastOfRow?: ((data: undefined, prevState: {
412
489
  /** The id of the list item the cursor is pointing to */
413
490
  cursorId: string;
414
491
  /**
@@ -422,6 +499,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
422
499
  * based on the size of the list container and the number of items fitting within the container.
423
500
  */
424
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
+ };
425
512
  UNSTABLE_virtual: {
426
513
  virtualItems: import("./react-virtual").VirtualItem[];
427
514
  totalSize: number;
@@ -438,7 +525,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
438
525
  isVirtualized: boolean;
439
526
  items: Item<any>[];
440
527
  }) => void) | undefined;
441
- onGoToLastOfRow?: ((data: undefined, prevState: {
528
+ onGoToNextPage?: ((data: undefined, prevState: {
442
529
  /** The id of the list item the cursor is pointing to */
443
530
  cursorId: string;
444
531
  /**
@@ -452,6 +539,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
452
539
  * based on the size of the list container and the number of items fitting within the container.
453
540
  */
454
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
+ };
455
552
  UNSTABLE_virtual: {
456
553
  virtualItems: import("./react-virtual").VirtualItem[];
457
554
  totalSize: number;
@@ -468,7 +565,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
468
565
  isVirtualized: boolean;
469
566
  items: Item<any>[];
470
567
  }) => void) | undefined;
471
- onGoToNextPage?: ((data: undefined, prevState: {
568
+ onGoToPreviousPage?: ((data: undefined, prevState: {
472
569
  /** The id of the list item the cursor is pointing to */
473
570
  cursorId: string;
474
571
  /**
@@ -482,6 +579,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
482
579
  * based on the size of the list container and the number of items fitting within the container.
483
580
  */
484
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
+ };
485
592
  UNSTABLE_virtual: {
486
593
  virtualItems: import("./react-virtual").VirtualItem[];
487
594
  totalSize: number;
@@ -498,7 +605,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
498
605
  isVirtualized: boolean;
499
606
  items: Item<any>[];
500
607
  }) => void) | undefined;
501
- onGoToPreviousPage?: ((data: undefined, prevState: {
608
+ onRegisterItem?: ((data: {
609
+ item: any;
610
+ textValue: string;
611
+ }, prevState: {
502
612
  /** The id of the list item the cursor is pointing to */
503
613
  cursorId: string;
504
614
  /**
@@ -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;
@@ -593,9 +733,8 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
593
733
  items: Item<any>[];
594
734
  }) => void) | undefined;
595
735
  } & {
596
- shouldRegisterItem?: ((data: {
597
- item: any;
598
- textValue: string;
736
+ shouldGoTo?: ((data: {
737
+ id: string;
599
738
  }, state: {
600
739
  /** The id of the list item the cursor is pointing to */
601
740
  cursorId: string;
@@ -610,6 +749,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
610
749
  * based on the size of the list container and the number of items fitting within the container.
611
750
  */
612
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
+ };
613
762
  UNSTABLE_virtual: {
614
763
  virtualItems: import("./react-virtual").VirtualItem[];
615
764
  totalSize: number;
@@ -626,9 +775,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
626
775
  isVirtualized: boolean;
627
776
  items: Item<any>[];
628
777
  }) => boolean) | undefined;
629
- shouldGoTo?: ((data: {
630
- id: string;
631
- }, state: {
778
+ shouldGoToNext?: ((data: undefined, state: {
632
779
  /** The id of the list item the cursor is pointing to */
633
780
  cursorId: string;
634
781
  /**
@@ -642,6 +789,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
642
789
  * based on the size of the list container and the number of items fitting within the container.
643
790
  */
644
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
+ };
645
802
  UNSTABLE_virtual: {
646
803
  virtualItems: import("./react-virtual").VirtualItem[];
647
804
  totalSize: number;
@@ -658,7 +815,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
658
815
  isVirtualized: boolean;
659
816
  items: Item<any>[];
660
817
  }) => boolean) | undefined;
661
- shouldGoToNext?: ((data: undefined, state: {
818
+ shouldGoToPrevious?: ((data: undefined, state: {
662
819
  /** The id of the list item the cursor is pointing to */
663
820
  cursorId: string;
664
821
  /**
@@ -672,6 +829,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
672
829
  * based on the size of the list container and the number of items fitting within the container.
673
830
  */
674
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
+ };
675
842
  UNSTABLE_virtual: {
676
843
  virtualItems: import("./react-virtual").VirtualItem[];
677
844
  totalSize: number;
@@ -688,7 +855,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
688
855
  isVirtualized: boolean;
689
856
  items: Item<any>[];
690
857
  }) => boolean) | undefined;
691
- shouldGoToPrevious?: ((data: undefined, state: {
858
+ shouldGoToPreviousRow?: ((data: undefined, state: {
692
859
  /** The id of the list item the cursor is pointing to */
693
860
  cursorId: string;
694
861
  /**
@@ -702,6 +869,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
702
869
  * based on the size of the list container and the number of items fitting within the container.
703
870
  */
704
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
+ };
705
882
  UNSTABLE_virtual: {
706
883
  virtualItems: import("./react-virtual").VirtualItem[];
707
884
  totalSize: number;
@@ -718,7 +895,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
718
895
  isVirtualized: boolean;
719
896
  items: Item<any>[];
720
897
  }) => boolean) | undefined;
721
- shouldGoToPreviousRow?: ((data: undefined, state: {
898
+ shouldGoToNextRow?: ((data: undefined, state: {
722
899
  /** The id of the list item the cursor is pointing to */
723
900
  cursorId: string;
724
901
  /**
@@ -732,6 +909,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
732
909
  * based on the size of the list container and the number of items fitting within the container.
733
910
  */
734
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
+ };
735
922
  UNSTABLE_virtual: {
736
923
  virtualItems: import("./react-virtual").VirtualItem[];
737
924
  totalSize: number;
@@ -748,7 +935,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
748
935
  isVirtualized: boolean;
749
936
  items: Item<any>[];
750
937
  }) => boolean) | undefined;
751
- shouldGoToNextRow?: ((data: undefined, state: {
938
+ shouldGoToFirst?: ((data: undefined, state: {
752
939
  /** The id of the list item the cursor is pointing to */
753
940
  cursorId: string;
754
941
  /**
@@ -762,6 +949,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
762
949
  * based on the size of the list container and the number of items fitting within the container.
763
950
  */
764
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
+ };
765
962
  UNSTABLE_virtual: {
766
963
  virtualItems: import("./react-virtual").VirtualItem[];
767
964
  totalSize: number;
@@ -778,7 +975,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
778
975
  isVirtualized: boolean;
779
976
  items: Item<any>[];
780
977
  }) => boolean) | undefined;
781
- shouldGoToFirst?: ((data: undefined, state: {
978
+ shouldGoToLast?: ((data: undefined, state: {
782
979
  /** The id of the list item the cursor is pointing to */
783
980
  cursorId: string;
784
981
  /**
@@ -792,6 +989,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
792
989
  * based on the size of the list container and the number of items fitting within the container.
793
990
  */
794
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
+ };
795
1002
  UNSTABLE_virtual: {
796
1003
  virtualItems: import("./react-virtual").VirtualItem[];
797
1004
  totalSize: number;
@@ -808,7 +1015,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
808
1015
  isVirtualized: boolean;
809
1016
  items: Item<any>[];
810
1017
  }) => boolean) | undefined;
811
- shouldGoToLast?: ((data: undefined, state: {
1018
+ shouldGoToFirstOfRow?: ((data: undefined, state: {
812
1019
  /** The id of the list item the cursor is pointing to */
813
1020
  cursorId: string;
814
1021
  /**
@@ -822,6 +1029,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
822
1029
  * based on the size of the list container and the number of items fitting within the container.
823
1030
  */
824
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
+ };
825
1042
  UNSTABLE_virtual: {
826
1043
  virtualItems: import("./react-virtual").VirtualItem[];
827
1044
  totalSize: number;
@@ -838,7 +1055,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
838
1055
  isVirtualized: boolean;
839
1056
  items: Item<any>[];
840
1057
  }) => boolean) | undefined;
841
- shouldGoToFirstOfRow?: ((data: undefined, state: {
1058
+ shouldGoToLastOfRow?: ((data: undefined, state: {
842
1059
  /** The id of the list item the cursor is pointing to */
843
1060
  cursorId: string;
844
1061
  /**
@@ -852,6 +1069,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
852
1069
  * based on the size of the list container and the number of items fitting within the container.
853
1070
  */
854
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
+ };
855
1082
  UNSTABLE_virtual: {
856
1083
  virtualItems: import("./react-virtual").VirtualItem[];
857
1084
  totalSize: number;
@@ -868,7 +1095,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
868
1095
  isVirtualized: boolean;
869
1096
  items: Item<any>[];
870
1097
  }) => boolean) | undefined;
871
- shouldGoToLastOfRow?: ((data: undefined, state: {
1098
+ shouldGoToNextPage?: ((data: undefined, state: {
872
1099
  /** The id of the list item the cursor is pointing to */
873
1100
  cursorId: string;
874
1101
  /**
@@ -882,6 +1109,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
882
1109
  * based on the size of the list container and the number of items fitting within the container.
883
1110
  */
884
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
+ };
885
1122
  UNSTABLE_virtual: {
886
1123
  virtualItems: import("./react-virtual").VirtualItem[];
887
1124
  totalSize: number;
@@ -898,7 +1135,7 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
898
1135
  isVirtualized: boolean;
899
1136
  items: Item<any>[];
900
1137
  }) => boolean) | undefined;
901
- shouldGoToNextPage?: ((data: undefined, state: {
1138
+ shouldGoToPreviousPage?: ((data: undefined, state: {
902
1139
  /** The id of the list item the cursor is pointing to */
903
1140
  cursorId: string;
904
1141
  /**
@@ -912,6 +1149,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
912
1149
  * based on the size of the list container and the number of items fitting within the container.
913
1150
  */
914
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
+ };
915
1162
  UNSTABLE_virtual: {
916
1163
  virtualItems: import("./react-virtual").VirtualItem[];
917
1164
  totalSize: number;
@@ -928,7 +1175,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
928
1175
  isVirtualized: boolean;
929
1176
  items: Item<any>[];
930
1177
  }) => boolean) | undefined;
931
- shouldGoToPreviousPage?: ((data: undefined, state: {
1178
+ shouldRegisterItem?: ((data: {
1179
+ item: any;
1180
+ textValue: string;
1181
+ }, state: {
932
1182
  /** The id of the list item the cursor is pointing to */
933
1183
  cursorId: string;
934
1184
  /**
@@ -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;
@@ -1054,14 +1344,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1054
1344
  items: Item<any>[];
1055
1345
  };
1056
1346
  events: {
1057
- /**
1058
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1059
- * should be called on component mount
1060
- */
1061
- registerItem(data: {
1062
- item: any;
1063
- textValue: string;
1064
- }): void;
1065
1347
  /** Directly sets the cursor to the list item by its identifier. */
1066
1348
  goTo(data: {
1067
1349
  id: string;
@@ -1100,6 +1382,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1100
1382
  goToLastOfRow(): void;
1101
1383
  goToNextPage(): void;
1102
1384
  goToPreviousPage(): void;
1385
+ registerItem(data: {
1386
+ item: any;
1387
+ textValue: string;
1388
+ }): void;
1103
1389
  unregisterItem(data: {
1104
1390
  id: string;
1105
1391
  }): void;
@@ -1176,6 +1462,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1176
1462
  * based on the size of the list container and the number of items fitting within the container.
1177
1463
  */
1178
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
+ };
1179
1475
  UNSTABLE_virtual: {
1180
1476
  virtualItems: import("./react-virtual").VirtualItem[];
1181
1477
  totalSize: number;
@@ -1192,14 +1488,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1192
1488
  isVirtualized: boolean;
1193
1489
  items: Item<any>[];
1194
1490
  }, {
1195
- /**
1196
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1197
- * should be called on component mount
1198
- */
1199
- registerItem(data: {
1200
- item: any;
1201
- textValue: string;
1202
- }): void;
1203
1491
  /** Directly sets the cursor to the list item by its identifier. */
1204
1492
  goTo(data: {
1205
1493
  id: string;
@@ -1238,6 +1526,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1238
1526
  goToLastOfRow(): void;
1239
1527
  goToNextPage(): void;
1240
1528
  goToPreviousPage(): void;
1529
+ registerItem(data: {
1530
+ item: any;
1531
+ textValue: string;
1532
+ }): void;
1241
1533
  unregisterItem(data: {
1242
1534
  id: string;
1243
1535
  }): void;
@@ -1259,6 +1551,16 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1259
1551
  * based on the size of the list container and the number of items fitting within the container.
1260
1552
  */
1261
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
+ };
1262
1564
  UNSTABLE_virtual: {
1263
1565
  virtualItems: import("./react-virtual").VirtualItem[];
1264
1566
  totalSize: number;
@@ -1276,14 +1578,6 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1276
1578
  items: Item<any>[];
1277
1579
  };
1278
1580
  events: {
1279
- /**
1280
- * Register an item to the list. Takes in an identifier, a React.Ref and an optional index. This
1281
- * should be called on component mount
1282
- */
1283
- registerItem(data: {
1284
- item: any;
1285
- textValue: string;
1286
- }): void;
1287
1581
  /** Directly sets the cursor to the list item by its identifier. */
1288
1582
  goTo(data: {
1289
1583
  id: string;
@@ -1322,6 +1616,10 @@ export declare const useCursorListModel: (<TT_Special_Generic>(config?: (Partial
1322
1616
  goToLastOfRow(): void;
1323
1617
  goToNextPage(): void;
1324
1618
  goToPreviousPage(): void;
1619
+ registerItem(data: {
1620
+ item: any;
1621
+ textValue: string;
1622
+ }): void;
1325
1623
  unregisterItem(data: {
1326
1624
  id: string;
1327
1625
  }): void;