@react-spectrum/table 3.17.3 → 3.17.5
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/Resizer.main.js +3 -3
- package/dist/Resizer.mjs +3 -3
- package/dist/Resizer.module.js +3 -3
- package/dist/TableViewBase.main.js.map +1 -1
- package/dist/TableViewBase.module.js.map +1 -1
- package/dist/TableViewLayout.main.js +1 -0
- package/dist/TableViewLayout.main.js.map +1 -1
- package/dist/TableViewLayout.mjs +1 -0
- package/dist/TableViewLayout.module.js +1 -0
- package/dist/TableViewLayout.module.js.map +1 -1
- package/dist/TableViewWrapper.main.js.map +1 -1
- package/dist/TableViewWrapper.module.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +26 -26
- package/src/TableViewBase.tsx +1 -1
- package/src/TableViewLayout.ts +1 -0
- package/src/TableViewWrapper.tsx +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
43
43
|
* The drag and drop hooks returned by `useDragAndDrop` used to enable drag and drop behavior for the TableView.
|
|
44
44
|
* @version beta
|
|
45
45
|
*/
|
|
46
|
-
dragAndDropHooks?: DragAndDropHooks['dragAndDropHooks'];
|
|
46
|
+
dragAndDropHooks?: DragAndDropHooks<NoInfer<T>>['dragAndDropHooks'];
|
|
47
47
|
/**
|
|
48
48
|
* Whether the TableView should support expandable rows. Requires the feature flag to be enabled first, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
49
49
|
* @version alpha
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;ASoBA,oCAAoC,CAAC,CAAE,SAAQ,WAAW,CAAC,CAAC,EAAE,sBAAsB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,UAAU;IAC3H;;;OAGG;IACH,OAAO,CAAC,EAAE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AAoB,CAAC","sources":["packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/InsertionIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Nubbin.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/Resizer.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/RootDropIndicator.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/DragPreview.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewLayout.ts","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewBase.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TreeGridTableView.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/TableViewWrapper.tsx","packages/@react-spectrum/table/src/packages/@react-spectrum/table/src/index.ts","packages/@react-spectrum/table/src/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,"/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n/// <reference types=\"css-module-types\" />\n\nexport {TableView} from './TableViewWrapper';\nimport {Column} from '@react-stately/table';\nimport {JSX} from 'react';\nimport {SpectrumColumnProps} from '@react-types/table';\n\n// Override TS for Column to support spectrum specific props.\nconst SpectrumColumn = Column as <T>(props: SpectrumColumnProps<T>) => JSX.Element;\nexport {SpectrumColumn as Column};\n\nexport {\n TableHeader,\n TableBody,\n Section,\n Row,\n Cell\n} from '@react-stately/table';\n\nexport type {SpectrumColumnProps, TableHeaderProps, TableBodyProps, RowProps, CellProps} from '@react-types/table';\nexport type {SpectrumTableProps} from './TableViewWrapper';\n"],"names":[],"version":3,"file":"types.d.ts.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-spectrum/table",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.5",
|
|
4
4
|
"description": "Spectrum UI components in React",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -40,31 +40,31 @@
|
|
|
40
40
|
"url": "https://github.com/adobe/react-spectrum"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@react-aria/button": "^3.
|
|
44
|
-
"@react-aria/focus": "^3.
|
|
45
|
-
"@react-aria/i18n": "^3.12.
|
|
46
|
-
"@react-aria/interactions": "^3.25.
|
|
47
|
-
"@react-aria/overlays": "^3.
|
|
48
|
-
"@react-aria/selection": "^3.
|
|
49
|
-
"@react-aria/table": "^3.17.
|
|
50
|
-
"@react-aria/utils": "^3.
|
|
51
|
-
"@react-aria/virtualizer": "^4.1.
|
|
52
|
-
"@react-aria/visually-hidden": "^3.8.
|
|
53
|
-
"@react-spectrum/checkbox": "^3.
|
|
54
|
-
"@react-spectrum/dnd": "^3.
|
|
55
|
-
"@react-spectrum/layout": "^3.6.
|
|
56
|
-
"@react-spectrum/menu": "^3.22.
|
|
57
|
-
"@react-spectrum/progress": "^3.7.
|
|
58
|
-
"@react-spectrum/tooltip": "^3.7.
|
|
59
|
-
"@react-spectrum/utils": "^3.12.
|
|
43
|
+
"@react-aria/button": "^3.14.1",
|
|
44
|
+
"@react-aria/focus": "^3.21.1",
|
|
45
|
+
"@react-aria/i18n": "^3.12.12",
|
|
46
|
+
"@react-aria/interactions": "^3.25.5",
|
|
47
|
+
"@react-aria/overlays": "^3.29.0",
|
|
48
|
+
"@react-aria/selection": "^3.25.1",
|
|
49
|
+
"@react-aria/table": "^3.17.7",
|
|
50
|
+
"@react-aria/utils": "^3.30.1",
|
|
51
|
+
"@react-aria/virtualizer": "^4.1.9",
|
|
52
|
+
"@react-aria/visually-hidden": "^3.8.27",
|
|
53
|
+
"@react-spectrum/checkbox": "^3.10.1",
|
|
54
|
+
"@react-spectrum/dnd": "^3.6.0",
|
|
55
|
+
"@react-spectrum/layout": "^3.6.18",
|
|
56
|
+
"@react-spectrum/menu": "^3.22.5",
|
|
57
|
+
"@react-spectrum/progress": "^3.7.19",
|
|
58
|
+
"@react-spectrum/tooltip": "^3.7.9",
|
|
59
|
+
"@react-spectrum/utils": "^3.12.8",
|
|
60
60
|
"@react-stately/flags": "^3.1.2",
|
|
61
|
-
"@react-stately/layout": "^4.
|
|
62
|
-
"@react-stately/table": "^3.
|
|
63
|
-
"@react-stately/virtualizer": "^4.4.
|
|
64
|
-
"@react-types/grid": "^3.3.
|
|
65
|
-
"@react-types/shared": "^3.
|
|
66
|
-
"@react-types/table": "^3.13.
|
|
67
|
-
"@spectrum-icons/ui": "^3.6.
|
|
61
|
+
"@react-stately/layout": "^4.5.0",
|
|
62
|
+
"@react-stately/table": "^3.15.0",
|
|
63
|
+
"@react-stately/virtualizer": "^4.4.3",
|
|
64
|
+
"@react-types/grid": "^3.3.5",
|
|
65
|
+
"@react-types/shared": "^3.32.0",
|
|
66
|
+
"@react-types/table": "^3.13.3",
|
|
67
|
+
"@spectrum-icons/ui": "^3.6.19",
|
|
68
68
|
"@swc/helpers": "^0.5.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"publishConfig": {
|
|
81
81
|
"access": "public"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "2c58ed3ddd9be9100af9b1d0cfd137fcdc95ba2d"
|
|
84
84
|
}
|
package/src/TableViewBase.tsx
CHANGED
|
@@ -110,7 +110,7 @@ export interface TableContextValue<T> {
|
|
|
110
110
|
state: TableState<T> | TreeGridState<T>,
|
|
111
111
|
dragState: DraggableCollectionState | null,
|
|
112
112
|
dropState: DroppableCollectionState | null,
|
|
113
|
-
dragAndDropHooks?: DragAndDropHooks['dragAndDropHooks'],
|
|
113
|
+
dragAndDropHooks?: DragAndDropHooks<T>['dragAndDropHooks'],
|
|
114
114
|
isTableDraggable: boolean,
|
|
115
115
|
isTableDroppable: boolean,
|
|
116
116
|
layout: TableViewLayout<T>,
|
package/src/TableViewLayout.ts
CHANGED
|
@@ -59,6 +59,7 @@ export class TableViewLayout<T> extends TableLayout<T> {
|
|
|
59
59
|
let empty = new LayoutInfo('empty', 'empty', rect);
|
|
60
60
|
empty.parentKey = layoutInfo.key;
|
|
61
61
|
empty.isSticky = true;
|
|
62
|
+
empty.allowOverflow = true;
|
|
62
63
|
let node = {
|
|
63
64
|
layoutInfo: empty,
|
|
64
65
|
validRect: empty.rect
|
package/src/TableViewWrapper.tsx
CHANGED
|
@@ -59,7 +59,7 @@ export interface SpectrumTableProps<T> extends TableProps<T>, SpectrumSelectionP
|
|
|
59
59
|
* The drag and drop hooks returned by `useDragAndDrop` used to enable drag and drop behavior for the TableView.
|
|
60
60
|
* @version beta
|
|
61
61
|
*/
|
|
62
|
-
dragAndDropHooks?: DragAndDropHooks['dragAndDropHooks'],
|
|
62
|
+
dragAndDropHooks?: DragAndDropHooks<NoInfer<T>>['dragAndDropHooks'],
|
|
63
63
|
/**
|
|
64
64
|
* Whether the TableView should support expandable rows. Requires the feature flag to be enabled first, see https://react-spectrum.adobe.com/react-spectrum/TableView.html#expandable-rows.
|
|
65
65
|
* @version alpha
|