Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-types/shared

Package Overview
Dependencies
Maintainers
2
Versions
828
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-types/shared - npm Package Compare versions

Comparing version 3.0.0-nightly-a98da553e-241116 to 3.0.0-nightly-b3a4d6c11-241119

4

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly-a98da553e-241116",
"version": "3.0.0-nightly-b3a4d6c11-241119",
"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"
},

@@ -15,0 +15,0 @@ "publishConfig": {

@@ -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
}

@@ -62,3 +62,3 @@ /*

*/
id?: string
id?: string | undefined
}

@@ -65,0 +65,0 @@

@@ -16,3 +16,3 @@ /*

export interface DOMRefValue<T extends HTMLElement = HTMLElement> {
UNSAFE_getDOMNode(): T
UNSAFE_getDOMNode(): T | null
}

@@ -19,0 +19,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc