Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluentui/react-aria

Package Overview
Dependencies
Maintainers
13
Versions
859
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-aria - npm Package Compare versions

Comparing version 0.0.0-nightly0e0cf06c3420211029.1 to 0.0.0-nightly554221a5aa20211202.1

118

CHANGELOG.json

@@ -5,5 +5,5 @@ {

{
"date": "Fri, 29 Oct 2021 06:39:55 GMT",
"tag": "@fluentui/react-aria_v0.0.0-nightly0e0cf06c3420211029.1",
"version": "0.0.0-nightly0e0cf06c3420211029.1",
"date": "Thu, 02 Dec 2021 04:16:12 GMT",
"tag": "@fluentui/react-aria_v0.0.0-nightly554221a5aa20211202.1",
"version": "0.0.0-nightly554221a5aa20211202.1",
"comments": {

@@ -14,3 +14,3 @@ "prerelease": [

"package": "@fluentui/react-aria",
"commit": "3535f78f7af73f13f2c1e7470293fb5e592866de",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b",
"comment": "Release nightly v9"

@@ -21,4 +21,4 @@ },

"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly0e0cf06c3420211029.1",
"commit": "3535f78f7af73f13f2c1e7470293fb5e592866de"
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly554221a5aa20211202.1",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
},

@@ -28,4 +28,4 @@ {

"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly0e0cf06c3420211029.1",
"commit": "3535f78f7af73f13f2c1e7470293fb5e592866de"
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
},

@@ -35,4 +35,4 @@ {

"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0e0cf06c3420211029.1",
"commit": "3535f78f7af73f13f2c1e7470293fb5e592866de"
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
},

@@ -42,4 +42,10 @@ {

"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly0e0cf06c3420211029.1",
"commit": "3535f78f7af73f13f2c1e7470293fb5e592866de"
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1",
"commit": "09da80c5c669ccd56bbfd16c53fd632f4579aa3b"
}

@@ -50,2 +56,90 @@ ]

{
"date": "Thu, 25 Nov 2021 08:34:10 GMT",
"tag": "@fluentui/react-aria_v9.0.0-beta.4",
"version": "9.0.0-beta.4",
"comments": {
"none": [
{
"author": "olfedias@microsoft.com",
"package": "@fluentui/react-aria",
"commit": "8a820339f7f4084d8c46e97f06eebbeb18111397",
"comment": "update tooling config"
}
],
"prerelease": [
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
}
]
}
},
{
"date": "Fri, 12 Nov 2021 13:25:13 GMT",
"tag": "@fluentui/react-aria_v9.0.0-beta.3",
"version": "9.0.0-beta.3",
"comments": {
"prerelease": [
{
"author": "Humberto.Morimoto@microsoft.com",
"package": "@fluentui/react-aria",
"commit": "a4ea9b6227d2f634f85b40fe4cec10e4c391244b",
"comment": "Fixing events being fired when button is disabledFocusable"
},
{
"author": "gcox@microsoft.com",
"package": "@fluentui/react-aria",
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
"comment": "Updated beta and RC components to ES2019"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
},
{
"author": "beachball",
"package": "@fluentui/react-aria",
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
}
],
"none": [
{
"author": "lingfangao@hotmail.com",
"package": "@fluentui/react-aria",
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
"comment": "Remove beta release tag"
}
]
}
},
{
"date": "Wed, 27 Oct 2021 12:14:13 GMT",

@@ -52,0 +146,0 @@ "tag": "@fluentui/react-aria_v9.0.0-beta.2",

44

CHANGELOG.md
# Change Log - @fluentui/react-aria
This log was last generated on Fri, 29 Oct 2021 06:39:55 GMT and should not be manually modified.
This log was last generated on Thu, 02 Dec 2021 04:16:12 GMT and should not be manually modified.
<!-- Start content -->
## [0.0.0-nightly0e0cf06c3420211029.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v0.0.0-nightly0e0cf06c3420211029.1)
## [0.0.0-nightly554221a5aa20211202.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v0.0.0-nightly554221a5aa20211202.1)
Fri, 29 Oct 2021 06:39:55 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.2..@fluentui/react-aria_v0.0.0-nightly0e0cf06c3420211029.1)
Thu, 02 Dec 2021 04:16:12 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.4..@fluentui/react-aria_v0.0.0-nightly554221a5aa20211202.1)
### Changes
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by email not defined)
- Bump @fluentui/keyboard-keys to v0.0.0-nightly0e0cf06c3420211029.1 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by beachball)
- Bump @fluentui/react-make-styles to v0.0.0-nightly0e0cf06c3420211029.1 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by beachball)
- Bump @fluentui/react-utilities to v0.0.0-nightly0e0cf06c3420211029.1 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by beachball)
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly0e0cf06c3420211029.1 ([commit](https://github.com/microsoft/fluentui/commit/3535f78f7af73f13f2c1e7470293fb5e592866de) by beachball)
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by email not defined)
- Bump @fluentui/keyboard-keys to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
- Bump @fluentui/react-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
- Bump @fluentui/react-utilities to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
- Bump @fluentui/babel-make-styles to v0.0.0-nightly554221a5aa20211202.1 ([commit](https://github.com/microsoft/fluentui/commit/09da80c5c669ccd56bbfd16c53fd632f4579aa3b) by beachball)
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.4)
Thu, 25 Nov 2021 08:34:10 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.3..@fluentui/react-aria_v9.0.0-beta.4)
### Changes
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.3)
Fri, 12 Nov 2021 13:25:13 GMT
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.2..@fluentui/react-aria_v9.0.0-beta.3)
### Changes
- Fixing events being fired when button is disabledFocusable ([PR #20342](https://github.com/microsoft/fluentui/pull/20342) by Humberto.Morimoto@microsoft.com)
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.2)

@@ -21,0 +47,0 @@

@@ -7,5 +7,5 @@ "use strict";

var tslib_1 = /*#__PURE__*/require("tslib");
const tslib_1 = /*#__PURE__*/require("tslib");
tslib_1.__exportStar(require("./useARIAButton"), exports);
//# sourceMappingURL=index.js.map

@@ -8,5 +8,5 @@ "use strict";

var keyboard_keys_1 = /*#__PURE__*/require("@fluentui/keyboard-keys");
const keyboard_keys_1 = /*#__PURE__*/require("@fluentui/keyboard-keys");
var react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
/**

@@ -22,13 +22,12 @@ * Button keyboard handling, role, disabled and tabIndex implementation that ensures ARIA spec

var shorthandProps = react_utilities_1.resolveShorthand(shorthand, options);
var _b = shorthandProps || {},
disabled = _b.disabled,
disabledFocusable = _b.disabledFocusable,
onClick = _b.onClick,
onKeyDown = _b.onKeyDown,
onKeyUp = _b.onKeyUp,
tabIndex = _b.tabIndex;
var onClickHandler = react_utilities_1.useEventCallback(function (ev) {
const shorthandProps = react_utilities_1.resolveShorthand(shorthand, options);
const {
disabled,
disabledFocusable,
onClick,
onKeyDown,
onKeyUp,
tabIndex
} = shorthandProps || {};
const onClickHandler = react_utilities_1.useEventCallback(ev => {
if (disabled || disabledFocusable) {

@@ -41,3 +40,3 @@ ev.preventDefault();

});
var onKeyDownHandler = react_utilities_1.useEventCallback(function (ev) {
const onKeyDownHandler = react_utilities_1.useEventCallback(ev => {
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(ev);

@@ -49,3 +48,3 @@

var key = ev.key;
const key = ev.key;

@@ -67,3 +66,3 @@ if ((disabled || disabledFocusable) && (key === keyboard_keys_1.Enter || key === keyboard_keys_1.Space)) {

});
var onKeyupHandler = react_utilities_1.useEventCallback(function (ev) {
const onKeyupHandler = react_utilities_1.useEventCallback(ev => {
onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(ev);

@@ -75,3 +74,3 @@

var key = ev.key;
const key = ev.key;

@@ -94,8 +93,14 @@ if ((disabled || disabledFocusable) && (key === keyboard_keys_1.Enter || key === keyboard_keys_1.Space)) {

shorthandProps.disabled = disabled && !disabledFocusable;
shorthandProps['aria-disabled'] = disabledFocusable;
} // If an <a> tag is to be rendered we have to remove disabled and set aria-disabled, role and tabIndex as well as
// some event handlers.
shorthandProps['aria-disabled'] = disabledFocusable; // Undefine events if disabledFocusable is passed in
if (disabledFocusable) {
shorthandProps.onClick = undefined;
shorthandProps.onKeyDown = undefined;
shorthandProps.onKeyUp = undefined;
}
} // If an <a> tag is to be rendered we have to remove disabled and type, and set aria-disabled, role and tabIndex.
else {
delete shorthandProps.disabled;
shorthandProps['aria-disabled'] = disabled || disabledFocusable;
shorthandProps.href = disabled ? undefined : shorthandProps.href;
shorthandProps.onClick = onClickHandler;

@@ -102,0 +107,0 @@ shorthandProps.onKeyDown = onKeyDownHandler;

@@ -7,3 +7,3 @@ "use strict";

var tslib_1 = /*#__PURE__*/require("tslib");
const tslib_1 = /*#__PURE__*/require("tslib");

@@ -10,0 +10,0 @@ tslib_1.__exportStar(require("./hooks/index"), exports);

@@ -7,5 +7,5 @@ "use strict";

var tslib_1 = /*#__PURE__*/require("tslib");
const tslib_1 = /*#__PURE__*/require("tslib");
tslib_1.__exportStar(require("./mergeARIADisabled"), exports);
//# sourceMappingURL=index.js.map

@@ -14,3 +14,3 @@ "use strict";

var disabled = (_a = shorthand.disabled) !== null && _a !== void 0 ? _a : shorthand['aria-disabled'];
const disabled = (_a = shorthand.disabled) !== null && _a !== void 0 ? _a : shorthand['aria-disabled'];

@@ -17,0 +17,0 @@ if (typeof disabled === 'string') {

@@ -12,13 +12,12 @@ import { Enter, Space } from '@fluentui/keyboard-keys';

var shorthandProps = resolveShorthand(shorthand, options);
var _b = shorthandProps || {},
disabled = _b.disabled,
disabledFocusable = _b.disabledFocusable,
onClick = _b.onClick,
onKeyDown = _b.onKeyDown,
onKeyUp = _b.onKeyUp,
tabIndex = _b.tabIndex;
var onClickHandler = useEventCallback(function (ev) {
const shorthandProps = resolveShorthand(shorthand, options);
const {
disabled,
disabledFocusable,
onClick,
onKeyDown,
onKeyUp,
tabIndex
} = shorthandProps || {};
const onClickHandler = useEventCallback(ev => {
if (disabled || disabledFocusable) {

@@ -31,3 +30,3 @@ ev.preventDefault();

});
var onKeyDownHandler = useEventCallback(function (ev) {
const onKeyDownHandler = useEventCallback(ev => {
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(ev);

@@ -39,3 +38,3 @@

var key = ev.key;
const key = ev.key;

@@ -57,3 +56,3 @@ if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {

});
var onKeyupHandler = useEventCallback(function (ev) {
const onKeyupHandler = useEventCallback(ev => {
onKeyUp === null || onKeyUp === void 0 ? void 0 : onKeyUp(ev);

@@ -65,3 +64,3 @@

var key = ev.key;
const key = ev.key;

@@ -84,8 +83,14 @@ if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {

shorthandProps.disabled = disabled && !disabledFocusable;
shorthandProps['aria-disabled'] = disabledFocusable;
} // If an <a> tag is to be rendered we have to remove disabled and set aria-disabled, role and tabIndex as well as
// some event handlers.
shorthandProps['aria-disabled'] = disabledFocusable; // Undefine events if disabledFocusable is passed in
if (disabledFocusable) {
shorthandProps.onClick = undefined;
shorthandProps.onKeyDown = undefined;
shorthandProps.onKeyUp = undefined;
}
} // If an <a> tag is to be rendered we have to remove disabled and type, and set aria-disabled, role and tabIndex.
else {
delete shorthandProps.disabled;
shorthandProps['aria-disabled'] = disabled || disabledFocusable;
shorthandProps.href = disabled ? undefined : shorthandProps.href;
shorthandProps.onClick = onClickHandler;

@@ -92,0 +97,0 @@ shorthandProps.onKeyDown = onKeyDownHandler;

@@ -7,3 +7,3 @@ /**

var disabled = (_a = shorthand.disabled) !== null && _a !== void 0 ? _a : shorthand['aria-disabled'];
const disabled = (_a = shorthand.disabled) !== null && _a !== void 0 ? _a : shorthand['aria-disabled'];

@@ -10,0 +10,0 @@ if (typeof disabled === 'string') {

{
"name": "@fluentui/react-aria",
"version": "0.0.0-nightly0e0cf06c3420211029.1",
"version": "0.0.0-nightly554221a5aa20211202.1",
"description": "React helper to ensure ARIA",

@@ -23,8 +23,9 @@ "main": "lib-commonjs/index.js",

"docs": "api-extractor run --config=config/api-extractor.local.json --local",
"build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-aria/src && yarn docs",
"storybook": "start-storybook"
"build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-aria/src && yarn docs",
"storybook": "start-storybook",
"type-check": "tsc -b tsconfig.json"
},
"devDependencies": {
"@fluentui/eslint-plugin": "*",
"@fluentui/jest-serializer-make-styles": "0.0.0-nightly0e0cf06c3420211029.1",
"@fluentui/jest-serializer-make-styles": "0.0.0-nightly554221a5aa20211202.1",
"@fluentui/react-conformance": "*",

@@ -41,8 +42,9 @@ "@fluentui/scripts": "^1.0.0",

"react-dom": "16.8.6",
"react-test-renderer": "^16.3.0"
"react-test-renderer": "^16.3.0",
"@fluentui/babel-make-styles": "0.0.0-nightly554221a5aa20211202.1"
},
"dependencies": {
"@fluentui/keyboard-keys": "0.0.0-nightly0e0cf06c3420211029.1",
"@fluentui/react-make-styles": "0.0.0-nightly0e0cf06c3420211029.1",
"@fluentui/react-utilities": "0.0.0-nightly0e0cf06c3420211029.1",
"@fluentui/keyboard-keys": "0.0.0-nightly554221a5aa20211202.1",
"@fluentui/react-make-styles": "0.0.0-nightly554221a5aa20211202.1",
"@fluentui/react-utilities": "0.0.0-nightly554221a5aa20211202.1",
"tslib": "^2.1.0"

@@ -57,3 +59,2 @@ },

"beachball": {
"tag": "beta",
"disallowedChangeTypes": [

@@ -60,0 +61,0 @@ "major",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc