@react-aria/table
Advanced tools
Comparing version 3.0.0-alpha.5 to 3.0.0-alpha.6
var { | ||
focusSafely, | ||
getFocusableTreeWalker | ||
@@ -31,4 +32,3 @@ } = require("@react-aria/focus"); | ||
mergeProps, | ||
useId, | ||
focusWithoutScrolling | ||
useId | ||
} = require("@react-aria/utils"); | ||
@@ -583,5 +583,5 @@ | ||
if (focusable) { | ||
focusWithoutScrolling(focusable); | ||
focusSafely(focusable); | ||
} else { | ||
focusWithoutScrolling(ref.current); | ||
focusSafely(ref.current); | ||
} | ||
@@ -707,4 +707,3 @@ }; | ||
isVirtualized | ||
}); // TODO: move into useSelectableItem? | ||
}); | ||
let { | ||
@@ -711,0 +710,0 @@ pressProps |
@@ -1,2 +0,2 @@ | ||
import { getFocusableTreeWalker } from "@react-aria/focus"; | ||
import { focusSafely, getFocusableTreeWalker } from "@react-aria/focus"; | ||
import { usePress, isFocusVisible } from "@react-aria/interactions"; | ||
@@ -7,3 +7,3 @@ import { useSelectableCollection, useSelectableItem } from "@react-aria/selection"; | ||
import { useMemo } from "react"; | ||
import { filterDOMProps, mergeProps, useId, focusWithoutScrolling } from "@react-aria/utils"; | ||
import { filterDOMProps, mergeProps, useId } from "@react-aria/utils"; | ||
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
@@ -549,5 +549,5 @@ | ||
if (focusable) { | ||
focusWithoutScrolling(focusable); | ||
focusSafely(focusable); | ||
} else { | ||
focusWithoutScrolling(ref.current); | ||
focusSafely(ref.current); | ||
} | ||
@@ -664,4 +664,3 @@ }; | ||
isVirtualized | ||
}); // TODO: move into useSelectableItem? | ||
}); | ||
let { | ||
@@ -668,0 +667,0 @@ pressProps |
{ | ||
"name": "@react-aria/table", | ||
"version": "3.0.0-alpha.5", | ||
"version": "3.0.0-alpha.6", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,12 +21,12 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/focus": "^3.1.0", | ||
"@react-aria/focus": "^3.2.0", | ||
"@react-aria/i18n": "^3.1.0", | ||
"@react-aria/interactions": "^3.1.0", | ||
"@react-aria/selection": "^3.1.0", | ||
"@react-aria/utils": "^3.1.0", | ||
"@react-stately/collections": "^3.1.0", | ||
"@react-aria/interactions": "^3.2.0", | ||
"@react-aria/selection": "^3.2.0", | ||
"@react-aria/utils": "^3.2.0", | ||
"@react-stately/collections": "^3.2.0", | ||
"@react-stately/table": "3.0.0-alpha.5", | ||
"@react-stately/virtualizer": "^3.1.0", | ||
"@react-types/checkbox": "^3.1.0", | ||
"@react-types/shared": "^3.1.0", | ||
"@react-types/shared": "^3.2.0", | ||
"@react-types/table": "3.0.0-rc.4" | ||
@@ -40,3 +40,3 @@ }, | ||
}, | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
"gitHead": "661f0f2e3b8648a75aae83043267954700059fe0" | ||
} |
@@ -13,6 +13,6 @@ /* | ||
import {focusWithoutScrolling, mergeProps} from '@react-aria/utils'; | ||
import {getFocusableTreeWalker} from '@react-aria/focus'; | ||
import {focusSafely, getFocusableTreeWalker} from '@react-aria/focus'; | ||
import {HTMLAttributes, RefObject} from 'react'; | ||
import {isFocusVisible, usePress} from '@react-aria/interactions'; | ||
import {mergeProps} from '@react-aria/utils'; | ||
import {Node} from '@react-types/shared'; | ||
@@ -45,5 +45,5 @@ import {TableState} from '@react-stately/table'; | ||
if (focusable) { | ||
focusWithoutScrolling(focusable); | ||
focusSafely(focusable); | ||
} else { | ||
focusWithoutScrolling(ref.current); | ||
focusSafely(ref.current); | ||
} | ||
@@ -50,0 +50,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
190388
Updated@react-aria/focus@^3.2.0
Updated@react-aria/selection@^3.2.0
Updated@react-aria/utils@^3.2.0
Updated@react-types/shared@^3.2.0