@react-types/shared 3.11.1 → 3.11.2

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.11.1",
3
+ "version": "3.11.2",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -14,5 +14,5 @@
14
14
  "publishConfig": {
15
15
  "access": "public"
16
16
  },
17
- "gitHead": "404d41859b7d6f56201d7fc01bd9f22ae3512937"
17
+ "gitHead": "ed8d8d984c2f7f2c31e8b18795b97858a95e4729"
18
18
  }
package/src/dnd.d.ts CHANGED
@@ -145,5 +145,6 @@ export interface DraggableCollectionProps {
145
145
  onDragEnd?: (e: DraggableCollectionEndEvent) => void,
146
146
  getItems: (keys: Set<Key>) => DragItem[],
147
147
  renderPreview?: (selectedKeys: Set<Key>, draggedKey: Key) => JSX.Element,
148
- getAllowedDropOperations?: () => DropOperation[]
148
+ getAllowedDropOperations?: () => DropOperation[],
149
+ allowsDraggingItem?: (key: Key) => boolean
149
150
  }
package/src/events.d.ts CHANGED
@@ -133,6 +133,7 @@ export interface MoveMoveEvent extends BaseMoveEvent {
133
133
  deltaX: number,
134
134
  /** The amount moved in the Y direction since the last event. */
135
135
  deltaY: number
136
+
136
137
  }
137
138
 
138
139
  export interface MoveEndEvent extends BaseMoveEvent {