Skip to content

Commit cd9e55a

Browse files
authored
fix: tsdiff audit finds for release (#8348)
1 parent f80c621 commit cd9e55a

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

packages/react-aria-components/src/DragAndDrop.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export interface DropIndicatorRenderProps {
3232
isDropTarget: boolean
3333
}
3434

35-
export interface DropIndicatorProps extends AriaDropIndicatorProps, RenderProps<DropIndicatorRenderProps> { }
35+
export interface DropIndicatorProps extends Omit<AriaDropIndicatorProps, 'activateButtonRef'>, RenderProps<DropIndicatorRenderProps> { }
3636
interface DropIndicatorContextValue {
3737
render: (props: DropIndicatorProps, ref: ForwardedRef<HTMLElement>) => ReactNode
3838
}

packages/react-aria-components/src/Tree.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {CheckboxContext} from './RSPContexts';
1616
import {Collection, CollectionBuilder, CollectionNode, createBranchComponent, createLeafComponent, useCachedChildren} from '@react-aria/collections';
1717
import {CollectionProps, CollectionRendererContext, DefaultCollectionRenderer, ItemRenderProps} from './Collection';
1818
import {ContextValue, DEFAULT_SLOT, Provider, RenderProps, ScrollableProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps} from './utils';
19-
import {DisabledBehavior, DragPreviewRenderer, Expandable, forwardRefType, HoverEvents, Key, KeyboardDelegate, LinkDOMProps, MultipleSelection, RefObject, SelectionMode} from '@react-types/shared';
19+
import {DisabledBehavior, DragPreviewRenderer, Expandable, forwardRefType, HoverEvents, Key, LinkDOMProps, MultipleSelection, RefObject, SelectionMode} from '@react-types/shared';
2020
import {DragAndDropContext, DropIndicatorContext, useDndPersistedKeys, useRenderDropIndicator} from './DragAndDrop';
2121
import {DragAndDropHooks} from './useDragAndDrop';
2222
import {DraggableCollectionState, DroppableCollectionState, Collection as ICollection, Node, SelectionBehavior, TreeState, useTreeState} from 'react-stately';
@@ -143,13 +143,7 @@ export interface TreeProps<T> extends Omit<AriaTreeProps<T>, 'children'>, Multip
143143
*/
144144
disabledBehavior?: DisabledBehavior,
145145
/** The drag and drop hooks returned by `useDragAndDrop` used to enable drag and drop behavior for the Tree. */
146-
dragAndDropHooks?: DragAndDropHooks,
147-
148-
/**
149-
* An optional keyboard delegate implementation for type to select,
150-
* to override the default.
151-
*/
152-
keyboardDelegate?: KeyboardDelegate
146+
dragAndDropHooks?: DragAndDropHooks
153147
}
154148

155149

@@ -272,7 +266,7 @@ function TreeInner<T extends object>({props, collection, treeRef: ref}: TreeInne
272266
let dropTargetDelegate = dragAndDropHooks.dropTargetDelegate || ctxDropTargetDelegate || new dragAndDropHooks.ListDropTargetDelegate(state.collection, ref, {direction});
273267
treeDropTargetDelegate.setup(dropTargetDelegate, state, direction);
274268

275-
let keyboardDelegate = props.keyboardDelegate ||
269+
let keyboardDelegate =
276270
new ListKeyboardDelegate({
277271
collection: state.collection,
278272
collator,

packages/react-aria-components/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,7 @@ export type {VirtualizerProps} from './Virtualizer';
146146

147147
export type {DateValue, DateRange, TimeValue} from 'react-aria';
148148
export type {DirectoryDropItem, DraggableCollectionEndEvent, DraggableCollectionMoveEvent, DraggableCollectionStartEvent, DragPreviewRenderer, DragTypes, DropItem, DropOperation, DroppableCollectionDropEvent, DroppableCollectionEnterEvent, DroppableCollectionExitEvent, DroppableCollectionInsertDropEvent, DroppableCollectionMoveEvent, DroppableCollectionOnItemDropEvent, DroppableCollectionReorderEvent, DroppableCollectionRootDropEvent, DropPosition, DropTarget, FileDropItem, ItemDropTarget, RootDropTarget, TextDropItem, PressEvent} from 'react-aria';
149-
export type {CalendarState, CheckboxGroupState, Color, ColorAreaState, ColorFieldState, ColorFormat, ColorPickerState, ColorSliderState, ColorSpace, ColorWheelState, ComboBoxState, DateFieldState, DatePickerState, DateRangePickerState, DisclosureState, DisclosureGroupState, DraggableCollectionState, DroppableCollectionState, Key, ListState, MultipleSelectionState, NumberFieldState, OverlayTriggerState, QueuedToast, RadioGroupState, RangeCalendarState, RootMenuTriggerState, SearchFieldState, Selection, SelectState, SliderState, SortDescriptor, SortDirection, SelectionMode, TableState, TabListState, TimeFieldState, ToastOptions, ToastState, ToggleGroupState, ToggleState, TooltipTriggerState, TreeState} from 'react-stately';
149+
export type {CalendarState, CheckboxGroupState, Color, ColorAreaState, ColorFieldState, ColorFormat, ColorPickerState, ColorSliderState, ColorSpace, ColorWheelState, ComboBoxState, DateFieldState, DatePickerState, DateRangePickerState, DisclosureState, DisclosureGroupState, Key, ListState, NumberFieldState, OverlayTriggerState, QueuedToast, RadioGroupState, RangeCalendarState, RootMenuTriggerState, SearchFieldState, Selection, SelectState, SliderState, SortDescriptor, SortDirection, SelectionMode, TableState, TabListState, TimeFieldState, ToastOptions, ToastState, ToggleGroupState, ToggleState, TooltipTriggerState, TreeState} from 'react-stately';
150150
export type {AutocompleteState} from '@react-stately/autocomplete';
151151
export type {ListLayoutOptions, GridLayoutOptions, WaterfallLayoutOptions} from '@react-stately/layout';
152-
export type {VirtualizerState} from '@react-stately/virtualizer';
153152
export type {ValidationResult, RouterConfig} from '@react-types/shared';

0 commit comments

Comments
 (0)