@hypothesis/frontend-shared
Advanced tools
Comparing version 7.10.0 to 7.10.1
@@ -141,3 +141,5 @@ var _jsxFileName = "/home/runner/work/frontend-shared/frontend-shared/src/components/data/DataTable.tsx"; | ||
const handleKeyDown = useCallback((event, row) => { | ||
if (event.key === 'Enter') { | ||
// Avoid preventing Enter key interactions in children elements by | ||
// ignoring events not triggered by the row element itself | ||
if (event.key === 'Enter' && event.target === event.currentTarget) { | ||
confirmRow(row); | ||
@@ -198,3 +200,3 @@ event.preventDefault(); | ||
fileName: _jsxFileName, | ||
lineNumber: 311, | ||
lineNumber: 313, | ||
columnNumber: 11 | ||
@@ -204,3 +206,3 @@ }, this)) | ||
fileName: _jsxFileName, | ||
lineNumber: 303, | ||
lineNumber: 305, | ||
columnNumber: 7 | ||
@@ -237,3 +239,3 @@ }, this)); | ||
fileName: _jsxFileName, | ||
lineNumber: 360, | ||
lineNumber: 362, | ||
columnNumber: 19 | ||
@@ -245,7 +247,7 @@ }, this), isActiveOrder && _jsxDEV("div", { | ||
fileName: _jsxFileName, | ||
lineNumber: 364, | ||
lineNumber: 366, | ||
columnNumber: 25 | ||
}, this) : _jsxDEV(ArrowDownIcon, {}, void 0, false, { | ||
fileName: _jsxFileName, | ||
lineNumber: 366, | ||
lineNumber: 368, | ||
columnNumber: 25 | ||
@@ -255,3 +257,3 @@ }, this) | ||
fileName: _jsxFileName, | ||
lineNumber: 362, | ||
lineNumber: 364, | ||
columnNumber: 21 | ||
@@ -261,3 +263,3 @@ }, this)] | ||
fileName: _jsxFileName, | ||
lineNumber: 354, | ||
lineNumber: 356, | ||
columnNumber: 17 | ||
@@ -267,3 +269,3 @@ }, this) | ||
fileName: _jsxFileName, | ||
lineNumber: 348, | ||
lineNumber: 350, | ||
columnNumber: 15 | ||
@@ -274,3 +276,3 @@ }, this); | ||
fileName: _jsxFileName, | ||
lineNumber: 341, | ||
lineNumber: 343, | ||
columnNumber: 9 | ||
@@ -280,3 +282,3 @@ }, this) | ||
fileName: _jsxFileName, | ||
lineNumber: 340, | ||
lineNumber: 342, | ||
columnNumber: 7 | ||
@@ -292,3 +294,3 @@ }, this), _jsxDEV(TableBody, { | ||
fileName: _jsxFileName, | ||
lineNumber: 382, | ||
lineNumber: 384, | ||
columnNumber: 17 | ||
@@ -300,3 +302,3 @@ }, this) : _jsxDEV(_Fragment, { | ||
fileName: _jsxFileName, | ||
lineNumber: 380, | ||
lineNumber: 382, | ||
columnNumber: 13 | ||
@@ -306,3 +308,3 @@ }, this) | ||
fileName: _jsxFileName, | ||
lineNumber: 379, | ||
lineNumber: 381, | ||
columnNumber: 11 | ||
@@ -312,7 +314,7 @@ }, this)] | ||
fileName: _jsxFileName, | ||
lineNumber: 376, | ||
lineNumber: 378, | ||
columnNumber: 7 | ||
}, this), children, withFoot && _jsxDEV(TableFoot, {}, void 0, false, { | ||
fileName: _jsxFileName, | ||
lineNumber: 391, | ||
lineNumber: 393, | ||
columnNumber: 20 | ||
@@ -322,3 +324,3 @@ }, this)] | ||
fileName: _jsxFileName, | ||
lineNumber: 328, | ||
lineNumber: 330, | ||
columnNumber: 5 | ||
@@ -325,0 +327,0 @@ }, this); |
@@ -19,3 +19,3 @@ export { useArrowKeyNavigation } from './hooks/use-arrow-key-navigation'; | ||
export { Slider } from './components/transition'; | ||
export type { BaseProps, CompositeProps, IconComponent, Order, PresentationalProps, TransitionComponent, } from './types'; | ||
export type { BaseProps, CompositeProps, IconComponent, Order, OrderDirection, PresentationalProps, TransitionComponent, } from './types'; | ||
export type { AspectRatioProps, DataTableProps, ScrollProps, ScrollContentProps, ScrollContainerProps, ScrollBoxProps, TableProps, TableBodyProps, TableCellProps, TableFootProps, TableHeadProps, TableRowProps, ThumbnailProps, } from './components/data'; | ||
@@ -22,0 +22,0 @@ export type { CalloutProps, DialogProps, ModalDialogProps, SpinnerProps, SpinnerOverlayProps, ToastMessage, ToastMessageTransitionClasses, ToastMessagesProps, } from './components/feedback'; |
{ | ||
"name": "@hypothesis/frontend-shared", | ||
"version": "7.10.0", | ||
"version": "7.10.1", | ||
"description": "Shared components, styles and utilities for Hypothesis projects", | ||
@@ -5,0 +5,0 @@ "license": "BSD-2-Clause", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3216046
41546