@react-spectrum/table 3.9.1-nightly.3943 → 3.9.1-nightly.3964
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/dist/import.mjs +0 -1
- package/dist/main.js +0 -1
- package/dist/main.js.map +1 -1
- package/dist/module.js +0 -1
- package/dist/module.js.map +1 -1
- package/package.json +31 -31
- package/src/Resizer.tsx +1 -2
- package/src/TableView.tsx +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/table",
|
|
3
|
-
"version": "3.9.1-nightly.
|
|
3
|
+
"version": "3.9.1-nightly.3964+7f63e933e",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -36,38 +36,38 @@
|
|
|
36
36
|
"url": "https://github.com/adobe/react-spectrum"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@react-aria/button": "3.0.0-nightly.
|
|
40
|
-
"@react-aria/focus": "3.0.0-nightly.
|
|
41
|
-
"@react-aria/grid": "3.7.2-nightly.
|
|
42
|
-
"@react-aria/i18n": "3.0.0-nightly.
|
|
43
|
-
"@react-aria/interactions": "3.0.0-nightly.
|
|
44
|
-
"@react-aria/table": "3.9.2-nightly.
|
|
45
|
-
"@react-aria/utils": "3.0.0-nightly.
|
|
46
|
-
"@react-aria/virtualizer": "3.8.2-nightly.
|
|
47
|
-
"@react-aria/visually-hidden": "3.0.0-nightly.
|
|
48
|
-
"@react-spectrum/button": "3.0.0-nightly.
|
|
49
|
-
"@react-spectrum/checkbox": "3.0.0-nightly.
|
|
50
|
-
"@react-spectrum/dnd": "3.2.1-nightly.
|
|
51
|
-
"@react-spectrum/layout": "3.5.3-nightly.
|
|
52
|
-
"@react-spectrum/menu": "3.11.2-nightly.
|
|
53
|
-
"@react-spectrum/progress": "3.0.0-nightly.
|
|
54
|
-
"@react-spectrum/tooltip": "3.0.0-nightly.
|
|
55
|
-
"@react-spectrum/utils": "3.0.0-nightly.
|
|
56
|
-
"@react-stately/collections": "3.0.0-nightly.
|
|
57
|
-
"@react-stately/grid": "3.6.2-nightly.
|
|
58
|
-
"@react-stately/layout": "3.12.2-nightly.
|
|
59
|
-
"@react-stately/table": "3.9.2-nightly.
|
|
60
|
-
"@react-stately/virtualizer": "3.5.3-nightly.
|
|
61
|
-
"@react-types/grid": "3.1.9-nightly.
|
|
62
|
-
"@react-types/shared": "3.0.0-nightly.
|
|
63
|
-
"@react-types/table": "3.6.2-nightly.
|
|
64
|
-
"@spectrum-icons/ui": "3.0.0-nightly.
|
|
39
|
+
"@react-aria/button": "3.0.0-nightly.2262+7f63e933e",
|
|
40
|
+
"@react-aria/focus": "3.0.0-nightly.2262+7f63e933e",
|
|
41
|
+
"@react-aria/grid": "3.7.2-nightly.3964+7f63e933e",
|
|
42
|
+
"@react-aria/i18n": "3.0.0-nightly.2262+7f63e933e",
|
|
43
|
+
"@react-aria/interactions": "3.0.0-nightly.2262+7f63e933e",
|
|
44
|
+
"@react-aria/table": "3.9.2-nightly.3964+7f63e933e",
|
|
45
|
+
"@react-aria/utils": "3.0.0-nightly.2262+7f63e933e",
|
|
46
|
+
"@react-aria/virtualizer": "3.8.2-nightly.3964+7f63e933e",
|
|
47
|
+
"@react-aria/visually-hidden": "3.0.0-nightly.2262+7f63e933e",
|
|
48
|
+
"@react-spectrum/button": "3.0.0-nightly.2262+7f63e933e",
|
|
49
|
+
"@react-spectrum/checkbox": "3.0.0-nightly.2262+7f63e933e",
|
|
50
|
+
"@react-spectrum/dnd": "3.2.1-nightly.3964+7f63e933e",
|
|
51
|
+
"@react-spectrum/layout": "3.5.3-nightly.3964+7f63e933e",
|
|
52
|
+
"@react-spectrum/menu": "3.11.2-nightly.3964+7f63e933e",
|
|
53
|
+
"@react-spectrum/progress": "3.0.0-nightly.2262+7f63e933e",
|
|
54
|
+
"@react-spectrum/tooltip": "3.0.0-nightly.2262+7f63e933e",
|
|
55
|
+
"@react-spectrum/utils": "3.0.0-nightly.2262+7f63e933e",
|
|
56
|
+
"@react-stately/collections": "3.0.0-nightly.2262+7f63e933e",
|
|
57
|
+
"@react-stately/grid": "3.6.2-nightly.3964+7f63e933e",
|
|
58
|
+
"@react-stately/layout": "3.12.2-nightly.3964+7f63e933e",
|
|
59
|
+
"@react-stately/table": "3.9.2-nightly.3964+7f63e933e",
|
|
60
|
+
"@react-stately/virtualizer": "3.5.3-nightly.3964+7f63e933e",
|
|
61
|
+
"@react-types/grid": "3.1.9-nightly.3964+7f63e933e",
|
|
62
|
+
"@react-types/shared": "3.0.0-nightly.2262+7f63e933e",
|
|
63
|
+
"@react-types/table": "3.6.2-nightly.3964+7f63e933e",
|
|
64
|
+
"@spectrum-icons/ui": "3.0.0-nightly.2262+7f63e933e",
|
|
65
65
|
"@swc/helpers": "^0.4.14"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
|
-
"@adobe/spectrum-css-temp": "3.0.0-nightly.
|
|
69
|
-
"@react-aria/dnd": "3.2.2-nightly.
|
|
70
|
-
"@react-stately/dnd": "3.2.2-nightly.
|
|
68
|
+
"@adobe/spectrum-css-temp": "3.0.0-nightly.2262+7f63e933e",
|
|
69
|
+
"@react-aria/dnd": "3.2.2-nightly.3964+7f63e933e",
|
|
70
|
+
"@react-stately/dnd": "3.2.2-nightly.3964+7f63e933e"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@react-spectrum/provider": "^3.0.0",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "7f63e933e61f20891b4cf3f447ab817f918cb263"
|
|
81
81
|
}
|
package/src/Resizer.tsx
CHANGED
|
@@ -9,8 +9,7 @@ import {FocusRing} from '@react-aria/focus';
|
|
|
9
9
|
import {GridNode} from '@react-types/grid';
|
|
10
10
|
// @ts-ignore
|
|
11
11
|
import intlMessages from '../intl/*.json';
|
|
12
|
-
import {isWebKit} from '@react-aria/utils';
|
|
13
|
-
import {mergeProps} from '@react-aria/utils';
|
|
12
|
+
import {isWebKit, mergeProps} from '@react-aria/utils';
|
|
14
13
|
import React, {Key, RefObject, useEffect, useState} from 'react';
|
|
15
14
|
import ReactDOM from 'react-dom';
|
|
16
15
|
import styles from '@adobe/spectrum-css-temp/components/table/vars.css';
|
package/src/TableView.tsx
CHANGED
|
@@ -38,7 +38,7 @@ import {layoutInfoToStyle, ScrollView, setScrollLeft, useVirtualizer, Virtualize
|
|
|
38
38
|
import ListGripper from '@spectrum-icons/ui/ListGripper';
|
|
39
39
|
import {Nubbin} from './Nubbin';
|
|
40
40
|
import {ProgressCircle} from '@react-spectrum/progress';
|
|
41
|
-
import React, {DOMAttributes, HTMLAttributes, Key, ReactElement, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
|
|
41
|
+
import React, {DOMAttributes, HTMLAttributes, Key, ReactElement, ReactNode, useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';
|
|
42
42
|
import {Resizer} from './Resizer';
|
|
43
43
|
import {ReusableView, useVirtualizerState} from '@react-stately/virtualizer';
|
|
44
44
|
import {RootDropIndicator} from './RootDropIndicator';
|
|
@@ -322,7 +322,7 @@ function TableView<T extends object>(props: SpectrumTableProps<T>, ref: DOMRef<H
|
|
|
322
322
|
let [headerRowHovered, setHeaderRowHovered] = useState(false);
|
|
323
323
|
|
|
324
324
|
// This overrides collection view's renderWrapper to support DOM hierarchy.
|
|
325
|
-
type View = ReusableView<GridNode<T>,
|
|
325
|
+
type View = ReusableView<GridNode<T>, ReactNode>;
|
|
326
326
|
let renderWrapper = (parent: View, reusableView: View, children: View[], renderChildren: (views: View[]) => ReactElement[]) => {
|
|
327
327
|
let style = layoutInfoToStyle(reusableView.layoutInfo, direction, parent && parent.layoutInfo);
|
|
328
328
|
if (style.overflow === 'hidden') {
|
|
@@ -595,7 +595,7 @@ function TableVirtualizer(props) {
|
|
|
595
595
|
// while resizing, prop changes should not cause animations
|
|
596
596
|
transitionDuration = 0;
|
|
597
597
|
}
|
|
598
|
-
let state = useVirtualizerState({
|
|
598
|
+
let state = useVirtualizerState<object, ReactNode, ReactNode>({
|
|
599
599
|
layout,
|
|
600
600
|
collection,
|
|
601
601
|
renderView,
|