@react-types/shared 3.0.0-nightly-4f85a359f-241022 → 3.0.0-nightly-fb28ab3b4-241024

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/shared",
3
- "version": "3.0.0-nightly-4f85a359f-241022",
3
+ "version": "3.0.0-nightly-fb28ab3b4-241024",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -87,9 +87,9 @@ export interface Sortable {
87
87
 
88
88
  export interface SortDescriptor {
89
89
  /** The key of the column to sort by. */
90
- column?: Key,
90
+ column: Key,
91
91
  /** The direction to sort by. */
92
- direction?: SortDirection
92
+ direction: SortDirection
93
93
  }
94
94
 
95
95
  export type SortDirection = 'ascending' | 'descending';
package/src/dnd.d.ts CHANGED
@@ -268,7 +268,7 @@ export interface DraggableCollectionEndEvent extends DragEndEvent {
268
268
  isInternal: boolean
269
269
  }
270
270
 
271
- export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement) => void) => void;
271
+ export type DragPreviewRenderer = (items: DragItem[], callback: (node: HTMLElement | null) => void) => void;
272
272
 
273
273
  export interface DraggableCollectionProps {
274
274
  /** Handler that is called when a drag operation is started. */