@react-types/shared
Advanced tools
Comparing version 3.0.0-nightly-dcc0752f8-241031 to 3.0.0-nightly-e14088a7e-241204
{ | ||
"name": "@react-types/shared", | ||
"version": "3.0.0-nightly-dcc0752f8-241031", | ||
"version": "3.0.0-nightly-e14088a7e-241204", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.25.0" | ||
"stableVersion": "3.26.0" | ||
} |
@@ -32,3 +32,3 @@ /* | ||
export type ItemElement<T> = ReactElement<ItemProps<T>>; | ||
export type ItemElement<T> = ReactElement<ItemProps<T>> | null; | ||
export type ItemRenderer<T> = (item: T) => ItemElement<T>; | ||
@@ -55,3 +55,3 @@ export type LoadingState = 'loading' | 'sorting' | 'loadingMore' | 'error' | 'idle' | 'filtering'; | ||
export type SectionElement<T> = ReactElement<SectionProps<T>>; | ||
export type SectionElement<T> = ReactElement<SectionProps<T>> | null; | ||
@@ -119,9 +119,9 @@ export type CollectionElement<T> = SectionElement<T> | ItemElement<T>; | ||
/** Returns the first key, or `null` for none. */ | ||
getFirstKey?(key?: Key, global?: boolean): Key | null, | ||
getFirstKey?(key?: Key | null, global?: boolean): Key | null, | ||
/** Returns the last key, or `null` for none. */ | ||
getLastKey?(key?: Key, global?: boolean): Key | null, | ||
getLastKey?(key?: Key | null, global?: boolean): Key | null, | ||
/** Returns the next key after `fromKey` that matches the given search string, or `null` for none. */ | ||
getKeyForSearch?(search: string, fromKey?: Key): Key | null | ||
getKeyForSearch?(search: string, fromKey?: Key | null): Key | null | ||
} | ||
@@ -212,3 +212,3 @@ | ||
/** The index of this node within its parent. */ | ||
index?: number, | ||
index: number, | ||
/** A function that should be called to wrap the rendered node. */ | ||
@@ -225,5 +225,5 @@ wrapper?: (element: ReactElement) => ReactElement, | ||
/** @private */ | ||
shouldInvalidate?: (context: unknown) => boolean, | ||
shouldInvalidate?: (context: any) => boolean, | ||
/** A function that renders this node to a React Element in the DOM. */ | ||
render?: (node: Node<any>) => ReactElement | ||
} |
@@ -16,3 +16,3 @@ /* | ||
export interface DOMRefValue<T extends HTMLElement = HTMLElement> { | ||
UNSAFE_getDOMNode(): T | ||
UNSAFE_getDOMNode(): T | null | ||
} | ||
@@ -19,0 +19,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75020