@react-types/list 3.0.1-nightly.3472 → 3.0.1-nightly.3478

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.
Files changed (2) hide show
  1. package/package.json +7 -4
  2. package/src/index.d.ts +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/list",
3
- "version": "3.0.1-nightly.3472+e514827f4",
3
+ "version": "3.0.1-nightly.3478+c24dc2e01",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,14 +9,17 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-spectrum/dnd": "3.0.0-nightly.3472+e514827f4",
13
- "@react-types/shared": "3.0.0-nightly.1772+e514827f4"
12
+ "@react-spectrum/dnd": "3.0.0-nightly.3478+c24dc2e01",
13
+ "@react-types/shared": "3.0.0-nightly.1778+c24dc2e01"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
17
17
  },
18
+ "devDependencies": {
19
+ "@react-spectrum/dnd": "3.0.0-alpha.6"
20
+ },
18
21
  "publishConfig": {
19
22
  "access": "public"
20
23
  },
21
- "gitHead": "e514827f49696a9c20fb819bd9610651f7017039"
24
+ "gitHead": "c24dc2e0124fac3467b3adc48b1067f2447cd2b3"
22
25
  }
package/src/index.d.ts CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  SpectrumSelectionProps,
22
22
  StyleProps
23
23
  } from '@react-types/shared';
24
- import {DragHooks, DropHooks} from '@react-spectrum/dnd';
24
+ import type {DnDHooks} from '@react-spectrum/dnd';
25
25
  import {Key} from 'react';
26
26
 
27
27
  export interface GridListProps<T> extends CollectionBase<T>, MultipleSelection {
@@ -59,13 +59,8 @@ export interface SpectrumListViewProps<T> extends AriaGridListProps<T>, StylePro
59
59
  */
60
60
  onAction?: (key: Key) => void,
61
61
  /**
62
- * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView.
62
+ * The drag and drop hooks returned by `useDnDHooks` used to enable drag and drop behavior for the ListView.
63
63
  * @private
64
64
  */
65
- dragHooks?: DragHooks,
66
- /**
67
- * The drag hooks returned by `useDragHooks` used to enable drag and drop behavior for the ListView.
68
- * @private
69
- */
70
- dropHooks?: DropHooks
65
+ dndHooks?: DnDHooks['dndHooks']
71
66
  }