react-focus-on 3.4.1 → 3.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/es2015/Combination.js +1 -2
- package/dist/es2015/UI.js +5 -3
- package/dist/es2015/types.d.ts +61 -1
- package/dist/es5/Combination.js +2 -3
- package/dist/es5/UI.js +5 -3
- package/dist/es5/types.d.ts +61 -1
- package/package.json +10 -9
- package/CHANGELOG.md +0 -200
package/README.md
CHANGED
|
@@ -55,6 +55,7 @@ import {FocusOn} from 'react-focus-on';
|
|
|
55
55
|
---
|
|
56
56
|
- `[autoFocus=true]` - enables or disables `auto focus` management (see [react-focus-lock documentation](https://github.com/theKashey/react-focus-lock))
|
|
57
57
|
- `[returnFocus=true]` - enables or disables `return focus` on lock deactivation (see [react-focus-lock documentation](https://github.com/theKashey/react-focus-lock))
|
|
58
|
+
- `[whiteList=fn]` - you could whitelist locations FocusLock should carry about. Everything outside it will ignore. For example - any modals (see [react-focus-lock documentation](https://github.com/theKashey/react-focus-lock))
|
|
58
59
|
---
|
|
59
60
|
- `[gapMode]` - the way removed ScrollBar would be _compensated_ - margin(default), or padding. See [scroll-locky documentation](https://github.com/theKashey/react-scroll-locky#gap-modes) to find the one you need.
|
|
60
61
|
- `[noIsolation]` - disables aria-hidden isolation
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as tslib_1 from "tslib";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { FocusOn as ReactFocusOn } from './UI';
|
|
4
|
+
import SideCar from './sidecar';
|
|
4
5
|
var RequireSideCar = function (props) {
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
var SideCar = require('./sidecar').default;
|
|
7
6
|
return React.createElement(SideCar, tslib_1.__assign({}, props));
|
|
8
7
|
};
|
|
9
8
|
export var FocusOn = React.forwardRef(function (props, ref) { return React.createElement(ReactFocusOn, tslib_1.__assign({}, props, { ref: ref, sideCar: RequireSideCar })); });
|
package/dist/es2015/UI.js
CHANGED
|
@@ -5,14 +5,16 @@ import ReactFocusLock from 'react-focus-lock/UI';
|
|
|
5
5
|
import { effectCar } from './medium';
|
|
6
6
|
export var FocusOn = React.forwardRef(function (props, parentRef) {
|
|
7
7
|
var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];
|
|
8
|
-
var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, rest = tslib_1.__rest(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className"]);
|
|
8
|
+
var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, style = props.style, as = props.as, rest = tslib_1.__rest(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "style", "as"]);
|
|
9
9
|
var SideCar = sideCar;
|
|
10
10
|
var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = tslib_1.__rest(lockProps, ["onActivation", "onDeactivation"]);
|
|
11
11
|
return (React.createElement(React.Fragment, null,
|
|
12
|
-
React.createElement(ReactFocusLock, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, as: RemoveScroll, lockProps: tslib_1.__assign({}, restProps, { sideCar: sideCar,
|
|
12
|
+
React.createElement(ReactFocusLock, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, as: RemoveScroll, whiteList: shouldIgnore, lockProps: tslib_1.__assign({}, restProps, { sideCar: sideCar,
|
|
13
13
|
shards: shards,
|
|
14
14
|
allowPinchZoom: allowPinchZoom,
|
|
15
|
-
|
|
15
|
+
as: as,
|
|
16
|
+
inert: inert,
|
|
17
|
+
style: style, enabled: enabled && scrollLock }) }, children),
|
|
16
18
|
enabled && (React.createElement(SideCar, tslib_1.__assign({}, rest, { sideCar: effectCar, setLockProps: setLockProps, shards: shards })))));
|
|
17
19
|
});
|
|
18
20
|
export * from './reExports';
|
package/dist/es2015/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import ReactFocusLock from 'react-focus-lock/UI';
|
|
3
|
+
import { ComponentProps } from "react";
|
|
2
4
|
export interface LockProps {
|
|
3
5
|
onMouseDown?(e: React.MouseEvent): void;
|
|
4
6
|
onTouchStart?(e: React.TouchEvent): void;
|
|
@@ -6,21 +8,79 @@ export interface LockProps {
|
|
|
6
8
|
onDeactivation?(): void;
|
|
7
9
|
}
|
|
8
10
|
export interface CommonProps {
|
|
11
|
+
/**
|
|
12
|
+
* action to perform on Esc key press
|
|
13
|
+
*/
|
|
9
14
|
onEscapeKey?: (event: Event) => void;
|
|
15
|
+
/**
|
|
16
|
+
* action to perform on click outside
|
|
17
|
+
*/
|
|
10
18
|
onClickOutside?: (event: MouseEvent | TouchEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* callback on lock activation
|
|
21
|
+
* @param node the main node
|
|
22
|
+
*/
|
|
11
23
|
onActivation?: (node: HTMLElement) => void;
|
|
24
|
+
/**
|
|
25
|
+
* callback on lock deactivation
|
|
26
|
+
*/
|
|
12
27
|
onDeactivation?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* [scroll-lock] control isolation
|
|
30
|
+
* @see {@link https://github.com/theKashey/react-remove-scroll#usage}
|
|
31
|
+
*/
|
|
13
32
|
noIsolation?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* [scroll-lock] full page inert (event suppression)
|
|
35
|
+
* @default false
|
|
36
|
+
* @see {@link https://github.com/theKashey/react-remove-scroll#usage}
|
|
37
|
+
*/
|
|
14
38
|
inert?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* [scroll-lock] allows scroll based zoom
|
|
41
|
+
* @default false
|
|
42
|
+
* @see https://github.com/theKashey/react-remove-scroll#usage
|
|
43
|
+
*/
|
|
15
44
|
allowPinchZoom?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* a list of elements which should be considered as a part of the lock
|
|
47
|
+
*/
|
|
16
48
|
shards?: Array<React.RefObject<any> | HTMLElement>;
|
|
17
49
|
}
|
|
18
50
|
export interface ReactFocusOnProps extends CommonProps {
|
|
51
|
+
/**
|
|
52
|
+
* The main switch
|
|
53
|
+
*/
|
|
19
54
|
enabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Controls scroll lock behavior
|
|
57
|
+
*/
|
|
20
58
|
scrollLock?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Controls focus lock behavior
|
|
61
|
+
*/
|
|
21
62
|
focusLock?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* [focus-lock] control autofocus
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
22
67
|
autoFocus?: boolean;
|
|
23
|
-
|
|
68
|
+
/**
|
|
69
|
+
* [focus-lock] control returnFocus
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
returnFocus?: ComponentProps<typeof ReactFocusLock>['returnFocus'];
|
|
73
|
+
/**
|
|
74
|
+
* [focus-lock] allows "ignoring" focus on some elements
|
|
75
|
+
* @see {@link https://github.com/theKashey/react-focus-lock#api}
|
|
76
|
+
*/
|
|
77
|
+
shouldIgnore?: (candidate: HTMLElement) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* allows replacement of the host node
|
|
80
|
+
* @default div
|
|
81
|
+
*/
|
|
82
|
+
as?: string | React.ElementType;
|
|
83
|
+
style?: React.CSSProperties;
|
|
24
84
|
className?: string;
|
|
25
85
|
children: React.ReactNode;
|
|
26
86
|
}
|
package/dist/es5/Combination.js
CHANGED
|
@@ -3,9 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var React = require("react");
|
|
5
5
|
var UI_1 = require("./UI");
|
|
6
|
+
var sidecar_1 = require("./sidecar");
|
|
6
7
|
var RequireSideCar = function (props) {
|
|
7
|
-
|
|
8
|
-
var SideCar = require('./sidecar').default;
|
|
9
|
-
return React.createElement(SideCar, tslib_1.__assign({}, props));
|
|
8
|
+
return React.createElement(sidecar_1.default, tslib_1.__assign({}, props));
|
|
10
9
|
};
|
|
11
10
|
exports.FocusOn = React.forwardRef(function (props, ref) { return React.createElement(UI_1.FocusOn, tslib_1.__assign({}, props, { ref: ref, sideCar: RequireSideCar })); });
|
package/dist/es5/UI.js
CHANGED
|
@@ -7,14 +7,16 @@ var UI_2 = require("react-focus-lock/UI");
|
|
|
7
7
|
var medium_1 = require("./medium");
|
|
8
8
|
exports.FocusOn = React.forwardRef(function (props, parentRef) {
|
|
9
9
|
var _a = React.useState(false), lockProps = _a[0], setLockProps = _a[1];
|
|
10
|
-
var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, rest = tslib_1.__rest(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className"]);
|
|
10
|
+
var children = props.children, autoFocus = props.autoFocus, shards = props.shards, _b = props.enabled, enabled = _b === void 0 ? true : _b, _c = props.scrollLock, scrollLock = _c === void 0 ? true : _c, _d = props.focusLock, focusLock = _d === void 0 ? true : _d, _e = props.returnFocus, returnFocus = _e === void 0 ? true : _e, inert = props.inert, allowPinchZoom = props.allowPinchZoom, sideCar = props.sideCar, className = props.className, shouldIgnore = props.shouldIgnore, style = props.style, as = props.as, rest = tslib_1.__rest(props, ["children", "autoFocus", "shards", "enabled", "scrollLock", "focusLock", "returnFocus", "inert", "allowPinchZoom", "sideCar", "className", "shouldIgnore", "style", "as"]);
|
|
11
11
|
var SideCar = sideCar;
|
|
12
12
|
var onActivation = lockProps.onActivation, onDeactivation = lockProps.onDeactivation, restProps = tslib_1.__rest(lockProps, ["onActivation", "onDeactivation"]);
|
|
13
13
|
return (React.createElement(React.Fragment, null,
|
|
14
|
-
React.createElement(UI_2.default, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, as: UI_1.RemoveScroll, lockProps: tslib_1.__assign({}, restProps, { sideCar: sideCar,
|
|
14
|
+
React.createElement(UI_2.default, { ref: parentRef, sideCar: sideCar, disabled: !(lockProps && enabled && focusLock), returnFocus: returnFocus, autoFocus: autoFocus, shards: shards, onActivation: onActivation, onDeactivation: onDeactivation, className: className, as: UI_1.RemoveScroll, whiteList: shouldIgnore, lockProps: tslib_1.__assign({}, restProps, { sideCar: sideCar,
|
|
15
15
|
shards: shards,
|
|
16
16
|
allowPinchZoom: allowPinchZoom,
|
|
17
|
-
|
|
17
|
+
as: as,
|
|
18
|
+
inert: inert,
|
|
19
|
+
style: style, enabled: enabled && scrollLock }) }, children),
|
|
18
20
|
enabled && (React.createElement(SideCar, tslib_1.__assign({}, rest, { sideCar: medium_1.effectCar, setLockProps: setLockProps, shards: shards })))));
|
|
19
21
|
});
|
|
20
22
|
tslib_1.__exportStar(require("./reExports"), exports);
|
package/dist/es5/types.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import ReactFocusLock from 'react-focus-lock/UI';
|
|
3
|
+
import { ComponentProps } from "react";
|
|
2
4
|
export interface LockProps {
|
|
3
5
|
onMouseDown?(e: React.MouseEvent): void;
|
|
4
6
|
onTouchStart?(e: React.TouchEvent): void;
|
|
@@ -6,21 +8,79 @@ export interface LockProps {
|
|
|
6
8
|
onDeactivation?(): void;
|
|
7
9
|
}
|
|
8
10
|
export interface CommonProps {
|
|
11
|
+
/**
|
|
12
|
+
* action to perform on Esc key press
|
|
13
|
+
*/
|
|
9
14
|
onEscapeKey?: (event: Event) => void;
|
|
15
|
+
/**
|
|
16
|
+
* action to perform on click outside
|
|
17
|
+
*/
|
|
10
18
|
onClickOutside?: (event: MouseEvent | TouchEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* callback on lock activation
|
|
21
|
+
* @param node the main node
|
|
22
|
+
*/
|
|
11
23
|
onActivation?: (node: HTMLElement) => void;
|
|
24
|
+
/**
|
|
25
|
+
* callback on lock deactivation
|
|
26
|
+
*/
|
|
12
27
|
onDeactivation?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* [scroll-lock] control isolation
|
|
30
|
+
* @see {@link https://github.com/theKashey/react-remove-scroll#usage}
|
|
31
|
+
*/
|
|
13
32
|
noIsolation?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* [scroll-lock] full page inert (event suppression)
|
|
35
|
+
* @default false
|
|
36
|
+
* @see {@link https://github.com/theKashey/react-remove-scroll#usage}
|
|
37
|
+
*/
|
|
14
38
|
inert?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* [scroll-lock] allows scroll based zoom
|
|
41
|
+
* @default false
|
|
42
|
+
* @see https://github.com/theKashey/react-remove-scroll#usage
|
|
43
|
+
*/
|
|
15
44
|
allowPinchZoom?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* a list of elements which should be considered as a part of the lock
|
|
47
|
+
*/
|
|
16
48
|
shards?: Array<React.RefObject<any> | HTMLElement>;
|
|
17
49
|
}
|
|
18
50
|
export interface ReactFocusOnProps extends CommonProps {
|
|
51
|
+
/**
|
|
52
|
+
* The main switch
|
|
53
|
+
*/
|
|
19
54
|
enabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Controls scroll lock behavior
|
|
57
|
+
*/
|
|
20
58
|
scrollLock?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Controls focus lock behavior
|
|
61
|
+
*/
|
|
21
62
|
focusLock?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* [focus-lock] control autofocus
|
|
65
|
+
* @default true
|
|
66
|
+
*/
|
|
22
67
|
autoFocus?: boolean;
|
|
23
|
-
|
|
68
|
+
/**
|
|
69
|
+
* [focus-lock] control returnFocus
|
|
70
|
+
* @default true
|
|
71
|
+
*/
|
|
72
|
+
returnFocus?: ComponentProps<typeof ReactFocusLock>['returnFocus'];
|
|
73
|
+
/**
|
|
74
|
+
* [focus-lock] allows "ignoring" focus on some elements
|
|
75
|
+
* @see {@link https://github.com/theKashey/react-focus-lock#api}
|
|
76
|
+
*/
|
|
77
|
+
shouldIgnore?: (candidate: HTMLElement) => boolean;
|
|
78
|
+
/**
|
|
79
|
+
* allows replacement of the host node
|
|
80
|
+
* @default div
|
|
81
|
+
*/
|
|
82
|
+
as?: string | React.ElementType;
|
|
83
|
+
style?: React.CSSProperties;
|
|
24
84
|
className?: string;
|
|
25
85
|
children: React.ReactNode;
|
|
26
86
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-focus-on",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.3",
|
|
4
4
|
"description": "The final solution for WAI ARIA compatible modal dialogs or full-screen tasks.",
|
|
5
5
|
"main": "dist/es5/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -40,19 +40,20 @@
|
|
|
40
40
|
"ts-react-toolbox": "^0.2.10"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"aria-hidden": "^1.1.
|
|
44
|
-
"react-focus-lock": "^2.
|
|
45
|
-
"react-remove-scroll": "^2.
|
|
46
|
-
"react-style-singleton": "^2.1.
|
|
47
|
-
"
|
|
48
|
-
"use-
|
|
43
|
+
"aria-hidden": "^1.1.2",
|
|
44
|
+
"react-focus-lock": "^2.6.0",
|
|
45
|
+
"react-remove-scroll": "^2.4.1",
|
|
46
|
+
"react-style-singleton": "^2.1.1",
|
|
47
|
+
"tslib": "^2.3.1",
|
|
48
|
+
"use-callback-ref": "^1.2.5",
|
|
49
|
+
"use-sidecar": "^1.0.5"
|
|
49
50
|
},
|
|
50
51
|
"engines": {
|
|
51
52
|
"node": ">=8.5.0"
|
|
52
53
|
},
|
|
53
54
|
"peerDependencies": {
|
|
54
|
-
"@types/react": "^16.8.0",
|
|
55
|
-
"react": "^16.8.0"
|
|
55
|
+
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
56
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependenciesMeta": {
|
|
58
59
|
"@types/react": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
## [3.4.1](https://github.com/theKashey/react-focus-on/compare/v3.4.0...v3.4.1) (2020-04-17)
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
### Bug Fixes
|
|
5
|
-
|
|
6
|
-
* update focus-lock, fixes [#35](https://github.com/theKashey/react-focus-on/issues/35) ([280d4a5](https://github.com/theKashey/react-focus-on/commit/280d4a5))
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
# [3.4.0](https://github.com/theKashey/react-focus-on/compare/v3.3.0...v3.4.0) (2020-04-16)
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
### Features
|
|
14
|
-
|
|
15
|
-
* support CSP ([67739a4](https://github.com/theKashey/react-focus-on/commit/67739a4))
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# [3.3.0](https://github.com/theKashey/react-focus-on/compare/v3.2.0...v3.3.0) (2019-10-17)
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
* add allowPinchZoom ([ad396d7](https://github.com/theKashey/react-focus-on/commit/ad396d7))
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
# [3.2.0](https://github.com/theKashey/react-focus-on/compare/v3.1.5...v3.2.0) (2019-10-13)
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
### Features
|
|
32
|
-
|
|
33
|
-
* allow ref forwarding ([d379b3c](https://github.com/theKashey/react-focus-on/commit/d379b3c))
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
## [3.1.5](https://github.com/theKashey/react-focus-on/compare/v3.1.4...v3.1.5) (2019-10-06)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
## [3.1.4](https://github.com/theKashey/react-focus-on/compare/v3.1.3...v3.1.4) (2019-10-05)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
## [3.1.3](https://github.com/theKashey/react-focus-on/compare/v3.1.2...v3.1.3) (2019-10-01)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
### Bug Fixes
|
|
49
|
-
|
|
50
|
-
* deactivation sequence, fixes [#24](https://github.com/theKashey/react-focus-on/issues/24) ([32ed7d7](https://github.com/theKashey/react-focus-on/commit/32ed7d7))
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
## [3.1.2](https://github.com/theKashey/react-focus-on/compare/v3.1.1...v3.1.2) (2019-09-28)
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## [3.1.1](https://github.com/theKashey/react-focus-on/compare/v3.1.0...v3.1.1) (2019-09-21)
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### Bug Fixes
|
|
62
|
-
|
|
63
|
-
* update hooks when users changes callbacks, fixes [#17](https://github.com/theKashey/react-focus-on/issues/17) ([127a303](https://github.com/theKashey/react-focus-on/commit/127a303))
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
# [3.1.0](https://github.com/theKashey/react-focus-on/compare/v3.0.7...v3.1.0) (2019-09-13)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
### Features
|
|
71
|
-
|
|
72
|
-
* support returnOption=preventScroll FocusLock option ([ff2dad3](https://github.com/theKashey/react-focus-on/commit/ff2dad3))
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
## [3.0.7](https://github.com/theKashey/react-focus-on/compare/v3.0.6...v3.0.7) (2019-09-11)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
## [3.0.6](https://github.com/theKashey/react-focus-on/compare/v3.0.5...v3.0.6) (2019-08-15)
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
### Bug Fixes
|
|
84
|
-
|
|
85
|
-
* fixes onClickOutside on iOS devices. fixes [#13](https://github.com/theKashey/react-focus-on/issues/13) ([96d0756](https://github.com/theKashey/react-focus-on/commit/96d0756))
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
## [3.0.5](https://github.com/theKashey/react-focus-on/compare/v3.0.4...v3.0.5) (2019-07-16)
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
### Bug Fixes
|
|
93
|
-
|
|
94
|
-
* handle Esc in IE compatible way, fixes [#10](https://github.com/theKashey/react-focus-on/issues/10) ([f897bea](https://github.com/theKashey/react-focus-on/commit/f897bea))
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
## [3.0.4](https://github.com/theKashey/react-focus-on/compare/v3.0.3...v3.0.4) (2019-07-16)
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
### Bug Fixes
|
|
102
|
-
|
|
103
|
-
* expose returnFocus prop, fixes [#11](https://github.com/theKashey/react-focus-on/issues/11) ([b25b5b5](https://github.com/theKashey/react-focus-on/commit/b25b5b5))
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
## [3.0.3](https://github.com/theKashey/react-focus-on/compare/v3.0.1...v3.0.3) (2019-07-03)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
## [3.0.1](https://github.com/theKashey/react-focus-on/compare/v3.0.0...v3.0.1) (2019-07-02)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### Bug Fixes
|
|
115
|
-
|
|
116
|
-
* aria-hidden broken in v3, fixes [#8](https://github.com/theKashey/react-focus-on/issues/8) ([f7570e5](https://github.com/theKashey/react-focus-on/commit/f7570e5))
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
# [3.0.0](https://github.com/theKashey/react-focus-on/compare/v2.0.2...v3.0.0) (2019-06-29)
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
### Features
|
|
124
|
-
|
|
125
|
-
* introduce sidecar ([0588039](https://github.com/theKashey/react-focus-on/commit/0588039))
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
## [2.0.2](https://github.com/theKashey/react-focus-on/compare/v2.0.1...v2.0.2) (2019-05-05)
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
## [2.0.1](https://github.com/theKashey/react-focus-on/compare/v2.0.0...v2.0.1) (2019-04-10)
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
### Bug Fixes
|
|
137
|
-
|
|
138
|
-
* dont prevent internal clicks, fixes [#3](https://github.com/theKashey/react-focus-on/issues/3) ([229eaad](https://github.com/theKashey/react-focus-on/commit/229eaad))
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
# [2.0.0](https://github.com/theKashey/react-focus-on/compare/v1.3.2...v2.0.0) (2019-03-11)
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
### Features
|
|
146
|
-
|
|
147
|
-
* shards and remove-scroll ([dbd4d5f](https://github.com/theKashey/react-focus-on/commit/dbd4d5f))
|
|
148
|
-
* shards and remove-scroll ([0f5d421](https://github.com/theKashey/react-focus-on/commit/0f5d421))
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
## [1.3.2](https://github.com/theKashey/react-focus-on/compare/v1.3.1...v1.3.2) (2019-01-21)
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
### Bug Fixes
|
|
156
|
-
|
|
157
|
-
* return focus by default ([a525b4c](https://github.com/theKashey/react-focus-on/commit/a525b4c))
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
## [1.3.1](https://github.com/theKashey/react-focus-on/compare/v1.3.0...v1.3.1) (2018-12-31)
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
### Bug Fixes
|
|
165
|
-
|
|
166
|
-
* Escape on body ([e551925](https://github.com/theKashey/react-focus-on/commit/e551925))
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
# [1.3.0](https://github.com/theKashey/react-focus-on/compare/v1.2.1...v1.3.0) (2018-11-13)
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
### Features
|
|
174
|
-
|
|
175
|
-
* expose gapMode ([0298cc8](https://github.com/theKashey/react-focus-on/commit/0298cc8))
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
## [1.2.1](https://github.com/theKashey/react-focus-on/compare/v1.2.0...v1.2.1) (2018-11-13)
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
# [1.2.0](https://github.com/theKashey/react-focus-on/compare/v1.1.0...v1.2.0) (2018-11-12)
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
### Features
|
|
187
|
-
|
|
188
|
-
* onEscapeKey ([7fb17d7](https://github.com/theKashey/react-focus-on/commit/7fb17d7))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
# [1.1.0](https://github.com/theKashey/react-focus-on/compare/ed4d62b...v1.1.0) (2018-11-07)
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
### Features
|
|
196
|
-
|
|
197
|
-
* onClickOutside event ([ed4d62b](https://github.com/theKashey/react-focus-on/commit/ed4d62b))
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|