Socket
Socket
Sign inDemoInstall

@react-types/shared

Package Overview
Dependencies
Maintainers
2
Versions
764
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.956 to 3.0.0-nightly.960

4

package.json
{
"name": "@react-types/shared",
"version": "3.0.0-nightly.956+fc8fda0c",
"version": "3.0.0-nightly.960+a8e35dbb",
"description": "Spectrum UI components in React",

@@ -17,3 +17,3 @@ "license": "Apache-2.0",

},
"gitHead": "fc8fda0c6902e2790cc92ab2d3f7fbb6ffc6f365"
"gitHead": "a8e35dbb73e987b157578f11ccbd5933ef295808"
}

@@ -24,4 +24,3 @@ /*

export interface DragItem {
types: Iterable<string>,
getData(type: string): string
[type: string]: string
}

@@ -58,7 +57,24 @@

export interface DropItem {
export interface TextItem {
kind: 'text',
types: Set<string>,
getData(type: string): Promise<string>
getText(type: string): Promise<string>
}
export interface FileItem {
kind: 'file',
type: string,
name: string,
getFile(): Promise<File>,
getText(): Promise<string>
}
export interface DirectoryItem {
kind: 'directory',
name: string,
getEntries(): AsyncIterable<FileItem | DirectoryItem>
}
export type DropItem = TextItem | FileItem | DirectoryItem;
export interface DropEvent extends DragDropEvent {

@@ -103,4 +119,8 @@ type: 'drop',

export interface DragTypes {
has(type: string): boolean
}
export interface DroppableCollectionProps {
getDropOperation?: (target: DropTarget, types: Set<string>, allowedOperations: DropOperation[]) => DropOperation,
getDropOperation?: (target: DropTarget, types: DragTypes, allowedOperations: DropOperation[]) => DropOperation,
onDropEnter?: (e: DroppableCollectionEnterEvent) => void,

@@ -107,0 +127,0 @@ onDropMove?: (e: DroppableCollectionMoveEvent) => void,

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