@fluentui/react-tabster
Advanced tools
Comparing version 9.0.0-alpha.26 to 9.0.0-alpha.27
@@ -5,3 +5,26 @@ { | ||
{ | ||
"date": "Thu, 20 May 2021 07:34:56 GMT", | ||
"date": "Fri, 21 May 2021 07:31:18 GMT", | ||
"tag": "@fluentui/react-tabster_v9.0.0-alpha.27", | ||
"version": "9.0.0-alpha.27", | ||
"comments": { | ||
"prerelease": [ | ||
{ | ||
"comment": "Return memoized find* callbacks from `useFocusFinders`", | ||
"author": "lingfan.gao@microsoft.com", | ||
"commit": "d9c1db58643303794eaaff097987a78010378a53", | ||
"package": "@fluentui/react-tabster" | ||
} | ||
], | ||
"none": [ | ||
{ | ||
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-alpha.12", | ||
"author": "miroslav.stastny@microsoft.com", | ||
"commit": "3f78f90075ae78bfd28f7d498ae8f012f0221279", | ||
"package": "@fluentui/react-tabster" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"date": "Thu, 20 May 2021 07:41:54 GMT", | ||
"tag": "@fluentui/react-tabster_v9.0.0-alpha.26", | ||
@@ -8,0 +31,0 @@ "version": "9.0.0-alpha.26", |
# Change Log - @fluentui/react-tabster | ||
This log was last generated on Thu, 20 May 2021 07:34:56 GMT and should not be manually modified. | ||
This log was last generated on Fri, 21 May 2021 07:31:18 GMT and should not be manually modified. | ||
<!-- Start content --> | ||
## [9.0.0-alpha.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-alpha.27) | ||
Fri, 21 May 2021 07:31:18 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-alpha.26..@fluentui/react-tabster_v9.0.0-alpha.27) | ||
### Changes | ||
- Return memoized find* callbacks from `useFocusFinders` ([PR #18262](https://github.com/microsoft/fluentui/pull/18262) by lingfan.gao@microsoft.com) | ||
## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-tabster_v9.0.0-alpha.26) | ||
Thu, 20 May 2021 07:34:56 GMT | ||
Thu, 20 May 2021 07:41:54 GMT | ||
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-tabster_v9.0.0-alpha.25..@fluentui/react-tabster_v9.0.0-alpha.26) | ||
@@ -11,0 +20,0 @@ |
@@ -1,2 +0,2 @@ | ||
define(["require", "exports", "./useTabster"], function (require, exports, useTabster_1) { | ||
define(["require", "exports", "react", "./useTabster"], function (require, exports, React, useTabster_1) { | ||
"use strict"; | ||
@@ -11,7 +11,5 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Narrow props for now and let need dictate additional props in the future | ||
var findAllFocusable = function (root, matcher) { | ||
return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; | ||
}; | ||
var findFirstFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }; | ||
var findLastFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }; | ||
var findAllFocusable = React.useCallback(function (root, matcher) { return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; }, [tabster]); | ||
var findFirstFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }, [tabster]); | ||
var findLastFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }, [tabster]); | ||
return { | ||
@@ -18,0 +16,0 @@ findAllFocusable: findAllFocusable, |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useFocusFinders = void 0; | ||
var React = require("react"); | ||
var useTabster_1 = require("./useTabster"); | ||
@@ -11,7 +12,5 @@ /** | ||
// Narrow props for now and let need dictate additional props in the future | ||
var findAllFocusable = function (root, matcher) { | ||
return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; | ||
}; | ||
var findFirstFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }; | ||
var findLastFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }; | ||
var findAllFocusable = React.useCallback(function (root, matcher) { return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; }, [tabster]); | ||
var findFirstFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }, [tabster]); | ||
var findLastFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }, [tabster]); | ||
return { | ||
@@ -18,0 +17,0 @@ findAllFocusable: findAllFocusable, |
@@ -0,1 +1,2 @@ | ||
import * as React from 'react'; | ||
import { useTabster } from './useTabster'; | ||
@@ -8,7 +9,5 @@ /** | ||
// Narrow props for now and let need dictate additional props in the future | ||
var findAllFocusable = function (root, matcher) { | ||
return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; | ||
}; | ||
var findFirstFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }; | ||
var findLastFocusable = function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }; | ||
var findAllFocusable = React.useCallback(function (root, matcher) { return (tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findAll(root, matcher)) || []; }, [tabster]); | ||
var findFirstFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findFirst(root); }, [tabster]); | ||
var findLastFocusable = React.useCallback(function (root) { return tabster === null || tabster === void 0 ? void 0 : tabster.focusable.findLast(root); }, [tabster]); | ||
return { | ||
@@ -15,0 +14,0 @@ findAllFocusable: findAllFocusable, |
{ | ||
"name": "@fluentui/react-tabster", | ||
"version": "9.0.0-alpha.26", | ||
"version": "9.0.0-alpha.27", | ||
"description": "Utilities for focus management and facade for tabster", | ||
@@ -36,3 +36,3 @@ "main": "lib-commonjs/index.js", | ||
"@fluentui/react-shared-contexts": "^9.0.0-alpha.12", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.23", | ||
"@fluentui/react-utilities": "^9.0.0-alpha.24", | ||
"tabster": "^0.6.2", | ||
@@ -39,0 +39,0 @@ "tslib": "^2.1.0" |
Sorry, the diff of this file is not supported yet
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
78223
1026
304