@react-types/shared
Advanced tools
Comparing version 3.0.0-nightly.956 to 3.0.0-nightly.960
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
68855
1311