downshift 8.3.3 → 8.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -341,6 +341,7 @@ export interface UseSelectProps<Item> {
341
341
  items: Item[]
342
342
  isItemDisabled?(item: Item, index: number): boolean
343
343
  itemToString?: (item: Item | null) => string
344
+ itemToKey?: (item: Item | null) => any
344
345
  getA11yStatusMessage?: (options: A11yStatusMessageOptions<Item>) => string
345
346
  getA11ySelectionMessage?: (options: A11yStatusMessageOptions<Item>) => string
346
347
  highlightedIndex?: number
@@ -537,6 +538,7 @@ export interface UseComboboxProps<Item> {
537
538
  items: Item[]
538
539
  isItemDisabled?(item: Item, index: number): boolean
539
540
  itemToString?: (item: Item | null) => string
541
+ itemToKey?: (item: Item | null) => any
540
542
  selectedItemChanged?: (prevItem: Item, item: Item) => boolean
541
543
  getA11yStatusMessage?: (options: A11yStatusMessageOptions<Item>) => string
542
544
  getA11ySelectionMessage?: (options: A11yStatusMessageOptions<Item>) => string
@@ -735,6 +737,7 @@ export interface UseMultipleSelectionProps<Item> {
735
737
  initialSelectedItems?: Item[]
736
738
  defaultSelectedItems?: Item[]
737
739
  itemToString?: (item: Item) => string
740
+ itemToKey?: (item: Item | null) => any
738
741
  getA11yRemovalMessage?: (options: A11yRemovalMessage<Item>) => string
739
742
  stateReducer?: (
740
743
  state: UseMultipleSelectionState<Item>,