Skip to content

Commit 3f836ef

Browse files
committed
fix: update dependnecies
1 parent 7a2900f commit 3f836ef

File tree

6 files changed

+57
-38
lines changed

6 files changed

+57
-38
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ import {FocusOn} from 'react-focus-on';
6161
- `[noIsolation]` - disables aria-hidden isolation
6262
- `[inert]` - enables pointer-events isolation (☠️ dangerous, use to disable "parent scrollbars", refer to [react-remove-scroll](https://github.com/theKashey/react-remove-scroll) documentation)
6363
- `[allowPinchZoom]` - enables "pinch-n-zoom" behavior. By default it might be prevented, refer to [react-remove-scroll](https://github.com/theKashey/react-remove-scroll) documentation
64+
- `[preventScrollOnFocus]` - prevents a [side effect of a programatic page scroll](https://github.com/theKashey/react-focus-on/issues/62) caused by focusing elements. Especially useful to address modal animations.
6465
---
6566
- `[onActivation]` - on activation callback
6667
- `[onDeactivation]` - on deactivation callback

__tests__/UI.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import {configure, mount} from 'enzyme';
33
import {FocusOn} from '../src/UI';
44
import {sidecar} from "use-sidecar";
55
import * as Adapter from 'enzyme-adapter-react-16';
6-
import {RemoveScroll} from "../../react-remove-scroll/src/UI";
76

87
configure({ adapter: new Adapter() });
98

__tests__/combination.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ configure({adapter: new Adapter()});
88
const tick = () => new Promise(resolve => setTimeout(resolve, 10));
99

1010
describe('Endpoint Combination', () => {
11+
afterAll(() => {
12+
document.body='';
13+
})
1114
it('smoke', async () => {
1215
const onActivation = jest.fn();
1316
const onDeactivation = jest.fn();
@@ -22,16 +25,19 @@ describe('Endpoint Combination', () => {
2225
</div>
2326
);
2427

25-
const wrapper = mount(<TestTarget enabled={false}/>);
28+
const wrapper = mount(<TestTarget enabled={false}/>, {attachTo:document.body});
2629
expect(wrapper.html()).toContain('content');
30+
2731
expect(document.activeElement.innerHTML).toBe('button1');
32+
2833
wrapper.setProps({enabled:true});
2934
expect(document.body.className).toBe('block-interactivity-0');
3035
await tick();
3136
expect(onActivation).toHaveBeenCalled();
3237
expect(document.activeElement.innerHTML).toBe('button2');
3338

3439
wrapper.unmount();
40+
3541
expect(onDeactivation).toHaveBeenCalled();
3642
expect(document.body.className).toBe('');
3743
await tick();

__tests__/smoke.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
describe('smoke', function () {
22
it('requires UI', () => {
3-
debugger;
43
require('../src/UI');
54
})
65
});

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
"ts-react-toolbox": "^0.2.10"
4545
},
4646
"dependencies": {
47-
"aria-hidden": "^1.1.3",
48-
"react-focus-lock": "^2.9.0",
49-
"react-remove-scroll": "^2.5.2",
47+
"aria-hidden": "^1.2.2",
48+
"react-focus-lock": "^2.9.2",
49+
"react-remove-scroll": "^2.5.5",
5050
"react-style-singleton": "^2.2.0",
5151
"tslib": "^2.3.1",
5252
"use-callback-ref": "^1.3.0",

yarn.lock

Lines changed: 46 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,12 +1028,12 @@ argparse@^1.0.7:
10281028
dependencies:
10291029
sprintf-js "~1.0.2"
10301030

1031-
aria-hidden@^1.1.3:
1032-
version "1.1.3"
1033-
resolved "https://registry.yarnpkg.com/aria-hidden/-/aria-hidden-1.1.3.tgz#bb48de18dc84787a3c6eee113709c473c64ec254"
1034-
integrity sha512-RhVWFtKH5BiGMycI72q2RAFMLQi8JP9bLuQXgR5a8Znp7P5KOIADSJeyfI8PCVxLEp067B2HbP5JIiI/PXIZeA==
1031+
aria-hidden@^1.2.2:
1032+
version "1.2.2"
1033+
resolved "https://packages.atlassian.com/api/npm/npm-remote/aria-hidden/-/aria-hidden-1.2.2.tgz#8c4f7cc88d73ca42114106fdf6f47e68d31475b8"
1034+
integrity sha512-6y/ogyDTk/7YAe91T3E2PR1ALVKyM2QbTio5HwM+N1Q6CMlCKhvClyIjkckBswa0f2xJhjsfzIGa1yVSe1UMVA==
10351035
dependencies:
1036-
tslib "^1.0.0"
1036+
tslib "^2.0.0"
10371037

10381038
aria-query@^3.0.0:
10391039
version "3.0.0"
@@ -4547,10 +4547,10 @@ flush-write-stream@^1.0.0:
45474547
inherits "^2.0.1"
45484548
readable-stream "^2.0.4"
45494549

4550-
focus-lock@^0.11.0:
4551-
version "0.11.0"
4552-
resolved "https://registry.yarnpkg.com/focus-lock/-/focus-lock-0.11.0.tgz#72f9055d34fff59d54aec8e602adbb5438108709"
4553-
integrity sha512-7tCIkCdnMEnqwEWr3PktH8wA/SAcIPlhrDuLg+o20DjZ/fZW/rIy7Tc9BC2kJBOttH4vbzTXqte5PL8babatBw==
4550+
focus-lock@^0.11.2:
4551+
version "0.11.3"
4552+
resolved "https://packages.atlassian.com/api/npm/npm-remote/focus-lock/-/focus-lock-0.11.3.tgz#c094e8f109d780f56038abdeec79328fd56b627f"
4553+
integrity sha512-4n0pYcPTa/uI7Q66BZna61nRT7lDhnuJ9PJr6wiDjx4uStg491ks41y7uOG+s0umaaa+hulNKSldU9aTg9/yVg==
45544554
dependencies:
45554555
tslib "^2.0.3"
45564556

@@ -8454,10 +8454,10 @@ raw-body@2.3.3:
84548454
iconv-lite "0.4.23"
84558455
unpipe "1.0.0"
84568456

8457-
react-clientside-effect@^1.2.5:
8458-
version "1.2.5"
8459-
resolved "https://registry.yarnpkg.com/react-clientside-effect/-/react-clientside-effect-1.2.5.tgz#e2c4dc3c9ee109f642fac4f5b6e9bf5bcd2219a3"
8460-
integrity sha512-2bL8qFW1TGBHozGGbVeyvnggRpMjibeZM2536AKNENLECutp2yfs44IL8Hmpn8qjFQ2K7A9PnYf3vc7aQq/cPA==
8457+
react-clientside-effect@^1.2.6:
8458+
version "1.2.6"
8459+
resolved "https://packages.atlassian.com/api/npm/npm-remote/react-clientside-effect/-/react-clientside-effect-1.2.6.tgz#29f9b14e944a376b03fb650eed2a754dd128ea3a"
8460+
integrity sha512-XGGGRQAKY+q25Lz9a/4EPqom7WRjz3z9R2k4jhVKA/puQFH/5Nt27vFZYql4m4NVNdUvX8PS3O7r/Zzm7cjUlg==
84618461
dependencies:
84628462
"@babel/runtime" "^7.12.13"
84638463

@@ -8481,15 +8481,15 @@ react-dom@^16.8.6:
84818481
prop-types "^15.6.2"
84828482
scheduler "^0.13.6"
84838483

8484-
react-focus-lock@^2.9.0:
8485-
version "2.9.0"
8486-
resolved "https://registry.yarnpkg.com/react-focus-lock/-/react-focus-lock-2.9.0.tgz#c148fcadb78cc86968c722b0ed7369aa45585f1c"
8487-
integrity sha512-MF4uqKm77jkz1gn5t2BAnHeWWsDevZofrCxp2utDls0FX7pW/F1cn7Xi7pSpnqxCP1JL2okS8tcFEFIfzjJcIw==
8484+
react-focus-lock@^2.9.2:
8485+
version "2.9.2"
8486+
resolved "https://packages.atlassian.com/api/npm/npm-remote/react-focus-lock/-/react-focus-lock-2.9.2.tgz#a57dfd7c493e5a030d87f161c96ffd082bd920f2"
8487+
integrity sha512-5JfrsOKyA5Zn3h958mk7bAcfphr24jPoMoznJ8vaJF6fUrPQ8zrtEd3ILLOK8P5jvGxdMd96OxWNjDzATfR2qw==
84888488
dependencies:
84898489
"@babel/runtime" "^7.0.0"
8490-
focus-lock "^0.11.0"
8490+
focus-lock "^0.11.2"
84918491
prop-types "^15.6.2"
8492-
react-clientside-effect "^1.2.5"
8492+
react-clientside-effect "^1.2.6"
84938493
use-callback-ref "^1.3.0"
84948494
use-sidecar "^1.1.2"
84958495

@@ -8525,22 +8525,22 @@ react-powerplug@^1.0.0:
85258525
dependencies:
85268526
"@babel/runtime" "^7.0.0"
85278527

8528-
react-remove-scroll-bar@^2.3.0:
8529-
version "2.3.1"
8530-
resolved "https://registry.yarnpkg.com/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.1.tgz#9f13b05b249eaa57c8d646c1ebb83006b3581f5f"
8531-
integrity sha512-IvGX3mJclEF7+hga8APZczve1UyGMkMG+tjS0o/U1iLgvZRpjFAQEUBJ4JETfvbNlfNnZnoDyWJCICkA15Mghg==
8528+
react-remove-scroll-bar@^2.3.3:
8529+
version "2.3.4"
8530+
resolved "https://packages.atlassian.com/api/npm/npm-remote/react-remove-scroll-bar/-/react-remove-scroll-bar-2.3.4.tgz#53e272d7a5cb8242990c7f144c44d8bd8ab5afd9"
8531+
integrity sha512-63C4YQBUt0m6ALadE9XV56hV8BgJWDmmTPY758iIJjfQKt2nYwoUrPk0LXRXcB/yIj82T1/Ixfdpdk68LwIB0A==
85328532
dependencies:
8533-
react-style-singleton "^2.2.0"
8533+
react-style-singleton "^2.2.1"
85348534
tslib "^2.0.0"
85358535

8536-
react-remove-scroll@^2.5.2:
8537-
version "2.5.2"
8538-
resolved "https://registry.yarnpkg.com/react-remove-scroll/-/react-remove-scroll-2.5.2.tgz#9c402641ae3fadb35dbe560b5fd37aaef9bc676c"
8539-
integrity sha512-f8nbXX1QG9SzXilFUAopSLvbE9yyywkmgyxOUXDPv18XsOCPCYvBsLqB6hdFR47cD7A9a3xInNagvNziubfzRQ==
8536+
react-remove-scroll@^2.5.5:
8537+
version "2.5.5"
8538+
resolved "https://packages.atlassian.com/api/npm/npm-remote/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz#1e31a1260df08887a8a0e46d09271b52b3a37e77"
8539+
integrity sha512-ImKhrzJJsyXJfBZ4bzu8Bwpka14c/fQt0k+cyFp/PBhTfyDnU5hjOtM4AG/0AMyy8oKzOTR0lDgJIM7pYXI0kw==
85408540
dependencies:
8541-
react-remove-scroll-bar "^2.3.0"
8542-
react-style-singleton "^2.2.0"
8543-
tslib "^2.0.0"
8541+
react-remove-scroll-bar "^2.3.3"
8542+
react-style-singleton "^2.2.1"
8543+
tslib "^2.1.0"
85448544
use-callback-ref "^1.3.0"
85458545
use-sidecar "^1.1.2"
85468546

@@ -8553,6 +8553,15 @@ react-style-singleton@^2.2.0:
85538553
invariant "^2.2.4"
85548554
tslib "^2.0.0"
85558555

8556+
react-style-singleton@^2.2.1:
8557+
version "2.2.1"
8558+
resolved "https://packages.atlassian.com/api/npm/npm-remote/react-style-singleton/-/react-style-singleton-2.2.1.tgz#f99e420492b2d8f34d38308ff660b60d0b1205b4"
8559+
integrity sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==
8560+
dependencies:
8561+
get-nonce "^1.0.0"
8562+
invariant "^2.2.4"
8563+
tslib "^2.0.0"
8564+
85568565
react-test-renderer@^16.0.0-0:
85578566
version "16.5.2"
85588567
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.5.2.tgz#92e9d2c6f763b9821b2e0b22f994ee675068b5ae"
@@ -10144,7 +10153,7 @@ ts-react-toolbox@^0.2.10:
1014410153
webpack-cli "^2.1.3"
1014510154
webpack-dev-server "^3.1.1"
1014610155

10147-
tslib@^1.0.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
10156+
tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0:
1014810157
version "1.9.3"
1014910158
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.9.3.tgz#d7e4dd79245d85428c4d7e4822a79917954ca286"
1015010159
integrity sha512-4krF8scpejhaOgqzBEcGM7yDIEfi0/8+8zDRZhNZZ2kjmHJ4hv3zCbQWxoJGz1iw5U0Jl0nma13xzHXcncMavQ==
@@ -10164,6 +10173,11 @@ tslib@^2.0.3, tslib@^2.3.1:
1016410173
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.1.tgz#e8a335add5ceae51aa261d32a490158ef042ef01"
1016510174
integrity sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
1016610175

10176+
tslib@^2.1.0:
10177+
version "2.4.1"
10178+
resolved "https://packages.atlassian.com/api/npm/npm-remote/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
10179+
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
10180+
1016710181
tslint-config-prettier@^1.10.0:
1016810182
version "1.15.0"
1016910183
resolved "https://registry.yarnpkg.com/tslint-config-prettier/-/tslint-config-prettier-1.15.0.tgz#76b9714399004ab6831fdcf76d89b73691c812cf"

0 commit comments

Comments
 (0)