Socket
Socket
Sign inDemoInstall

@react-types/shared

Package Overview
Dependencies
Maintainers
2
Versions
775
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.2962 to 3.0.0-nightly.2969

6

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly.2962+59136f78e",
"version": "3.0.0-nightly.2969+2fd87d9f1",
"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"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0"
},

@@ -18,3 +18,3 @@ "publishConfig": {

},
"gitHead": "59136f78e853e97bb4067a1268750c9f85900bf6"
"gitHead": "2fd87d9f1d894e6b00a595cce73c6e8828029132"
}

@@ -126,2 +126,24 @@ /*

export interface Rect {
x: number,
y: number,
width: number,
height: number
}
export interface Size {
width: number,
height: number
}
/** A LayoutDelegate provides layout information for collection items. */
export interface LayoutDelegate {
/** Returns a rectangle for the item with the given key. */
getItemRect(key: Key): Rect | null,
/** Returns the visible rectangle of the collection. */
getVisibleRect(): Rect,
/** Returns the size of the scrollable content in the collection. */
getContentSize(): Size
}
/**

@@ -128,0 +150,0 @@ * A generic interface to access a readonly sequential

@@ -284,5 +284,5 @@ /*

/** The ref of the element that will be rendered as the drag preview while dragging. */
preview?: RefObject<DragPreviewRenderer>,
preview?: RefObject<DragPreviewRenderer | null>,
/** Function that returns the drop operations that are allowed for the dragged items. If not provided, all drop operations are allowed. */
getAllowedDropOperations?: () => DropOperation[]
}
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