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
859
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-fb28ab3b4-241024 to 3.0.0-nightly-fee532d6a-241217

7

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly-fb28ab3b4-241024",
"version": "3.0.0-nightly-fee532d6a-241217",
"description": "Spectrum UI components in React",

@@ -12,8 +12,7 @@ "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"
},
"publishConfig": {
"access": "public"
},
"stableVersion": "3.25.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 @@

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