Upgrading @szhsin/react-accordion 0.3 to 0.4
Unknown0.3.0 → 0.4.0
Fetching 1 release from GitHub…0 / 1
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
API changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- added:
interface AccordionProps extends AccordionProviderOptions, Omit<ControlledAccordionProps, 'providerValue'>
- changed:
property AccordionItemProps.children?: ReactNode → property AccordionItemProps.children?: NodeOrFunc - changed:
property AccordionItemProps.header?: ReactNode → property AccordionItemProps.header?: NodeOrFunc
- added:
const useAccordion: () => { accordionProps: HTMLAttributes<Element> }
- added:
const useAccordionItem: <E extends Element>({ itemKey, initialEntered: itemInitialEntered }?: { itemKey?: string | number | undefined; initialEntered?: boolean | undefined }) => { ite…
- added:
const useAccordionProvider: (options?: AccordionProviderOptions) => Required<AccordionProviderValue>
- added:
const useHeightTransition: <E extends Element>({ state, isResolved }: State) => readonly [CSSProperties, (element: E | null) => void, RefObject<E>]
- added:
const useId: typeof useId
- added:
function useMergeRef<T>(refA?: Ref<T> | null, refB?: Ref<T> | null): Ref<T> | null | undefined
- added:
export { AccordionProps } from './components/Accordion' - added:
export { ControlledAccordionProps } from './components/ControlledAccordion'