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
837
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-533a02fe1-241009 to 3.0.0-nightly-56e575731-241121

6

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly-533a02fe1-241009",
"version": "3.0.0-nightly-56e575731-241121",
"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;

@@ -92,5 +92,5 @@ export type CollectionElement<T> = SectionElement<T> | ItemElement<T>;

/** The key of the column to sort by. */
column?: Key,
column: Key,
/** The direction to sort by. */
direction?: SortDirection
direction: SortDirection
}

@@ -120,9 +120,9 @@

/** 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
}

@@ -213,3 +213,3 @@

/** The index of this node within its parent. */
index?: number,
index: number,
/** A function that should be called to wrap the rendered node. */

@@ -226,5 +226,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
}

@@ -271,3 +271,3 @@ /*

export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement) => void) => void;
export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement | null) => void) => void;

@@ -274,0 +274,0 @@ export interface DraggableCollectionProps {

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