@react-types/shared
Advanced tools
Comparing version 3.0.0-nightly.2962 to 3.0.0-nightly.2969
{ | ||
"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[] | ||
} |
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
85929
1796
39