Skip to content

Commit 631eb85

Browse files
authored
chore: audit 3.41 (#8064)
* chore: audit 3.41 * remove deprecation
1 parent 12180a0 commit 631eb85

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

packages/@react-aria/overlays/src/Overlay.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export interface OverlayProps {
2222
/**
2323
* The container element in which the overlay portal will be placed.
2424
* @default document.body
25-
* @deprecated - Use a parent UNSAFE_PortalProvider to set your portal container instead.
2625
*/
2726
portalContainer?: Element,
2827
/** The overlay to render in the portal. */

packages/@react-spectrum/s2/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export {TreeView, TreeViewItem, TreeViewItemContent} from './TreeView';
8181

8282
export {pressScale} from './pressScale';
8383

84-
export {Autocomplete, AutocompleteContext, AutocompleteStateContext} from 'react-aria-components';
84+
export {Autocomplete} from 'react-aria-components';
8585
export {Collection} from 'react-aria-components';
8686
export {FileTrigger} from 'react-aria-components';
8787

packages/@react-stately/layout/src/GridLayout.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,8 @@ export class GridLayout<T, O extends GridLayoutOptions = GridLayoutOptions> exte
181181
this.contentSize = new Size(this.virtualizer!.visibleRect.width, y);
182182
}
183183

184-
getLayoutInfo(key: Key): LayoutInfo {
185-
return this.layoutInfos.get(key)!;
184+
getLayoutInfo(key: Key): LayoutInfo | null {
185+
return this.layoutInfos.get(key) || null;
186186
}
187187

188188
getContentSize(): Size {

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {AriaColorWheelOptions, useColorWheel} from 'react-aria';
22
import {ColorWheelContext} from './RSPContexts';
33
import {ColorWheelState, useColorWheelState} from 'react-stately';
44
import {ContextValue, Provider, RenderProps, SlotProps, StyleRenderProps, useContextProps, useRenderProps} from './utils';
5-
import {DOMProps} from '@react-types/shared';
65
import {filterDOMProps} from '@react-aria/utils';
76
import {InternalColorThumbContext} from './ColorThumb';
87
import React, {createContext, ForwardedRef, forwardRef, HTMLAttributes, useContext, useRef} from 'react';
@@ -67,7 +66,7 @@ export const ColorWheel = forwardRef(function ColorWheel(props: ColorWheelProps,
6766
});
6867

6968
export interface ColorWheelTrackRenderProps extends ColorWheelRenderProps {}
70-
export interface ColorWheelTrackProps extends StyleRenderProps<ColorWheelTrackRenderProps>, DOMProps {}
69+
export interface ColorWheelTrackProps extends StyleRenderProps<ColorWheelTrackRenderProps> {}
7170
interface ColorWheelTrackContextValue extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'className' | 'style'>, ColorWheelTrackProps {}
7271

7372
export const ColorWheelTrackContext = createContext<ContextValue<ColorWheelTrackContextValue, HTMLDivElement>>(null);

0 commit comments

Comments
 (0)