react-focus-on 3.5.0 → 3.5.4

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.
@@ -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;
@@ -67,7 +69,7 @@ export interface ReactFocusOnProps extends CommonProps {
67
69
  * [focus-lock] control returnFocus
68
70
  * @default true
69
71
  */
70
- returnFocus?: boolean | FocusOptions;
72
+ returnFocus?: ComponentProps<typeof ReactFocusLock>['returnFocus'];
71
73
  /**
72
74
  * [focus-lock] allows "ignoring" focus on some elements
73
75
  * @see {@link https://github.com/theKashey/react-focus-lock#api}
@@ -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;
@@ -67,7 +69,7 @@ export interface ReactFocusOnProps extends CommonProps {
67
69
  * [focus-lock] control returnFocus
68
70
  * @default true
69
71
  */
70
- returnFocus?: boolean | FocusOptions;
72
+ returnFocus?: ComponentProps<typeof ReactFocusLock>['returnFocus'];
71
73
  /**
72
74
  * [focus-lock] allows "ignoring" focus on some elements
73
75
  * @see {@link https://github.com/theKashey/react-focus-lock#api}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-focus-on",
3
- "version": "3.5.0",
3
+ "version": "3.5.4",
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": {
@@ -24,6 +24,10 @@
24
24
  "link:ss": "rsync -av ../react-remove-scroll-bar/node_modules/react-style-singleton node_modules/ --exclude node_modules --exclude .git",
25
25
  "link:all": "yarn link:fl & yarn link:rfl & yarn link:ss & yarn link:rf & yarn link:sb"
26
26
  },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "https://github.com/theKashey/react-focus-on.git"
30
+ },
27
31
  "sideEffects": [
28
32
  "**/sidecar.js"
29
33
  ],
@@ -40,19 +44,20 @@
40
44
  "ts-react-toolbox": "^0.2.10"
41
45
  },
42
46
  "dependencies": {
43
- "aria-hidden": "^1.1.1",
44
- "react-focus-lock": "^2.3.1",
45
- "react-remove-scroll": "^2.4.0",
46
- "react-style-singleton": "^2.1.0",
47
- "use-callback-ref": "^1.2.3",
48
- "use-sidecar": "^1.0.1"
47
+ "aria-hidden": "^1.1.3",
48
+ "react-focus-lock": "^2.6.0",
49
+ "react-remove-scroll": "^2.4.1",
50
+ "react-style-singleton": "^2.1.1",
51
+ "tslib": "^2.3.1",
52
+ "use-callback-ref": "^1.2.5",
53
+ "use-sidecar": "^1.0.5"
49
54
  },
50
55
  "engines": {
51
56
  "node": ">=8.5.0"
52
57
  },
53
58
  "peerDependencies": {
54
- "@types/react": "^16.8.0",
55
- "react": "^16.8.0"
59
+ "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
60
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
56
61
  },
57
62
  "peerDependenciesMeta": {
58
63
  "@types/react": {
package/CHANGELOG.md DELETED
@@ -1,210 +0,0 @@
1
- # [3.5.0](https://github.com/theKashey/react-focus-on/compare/v3.4.1...v3.5.0) (2020-08-13)
2
-
3
-
4
- ### Features
5
-
6
- * add 'as' and 'style' props ([d1a79e4](https://github.com/theKashey/react-focus-on/commit/d1a79e4))
7
- * expose whitelist prop ([fa5fe87](https://github.com/theKashey/react-focus-on/commit/fa5fe87))
8
-
9
-
10
-
11
- ## [3.4.1](https://github.com/theKashey/react-focus-on/compare/v3.4.0...v3.4.1) (2020-04-17)
12
-
13
-
14
- ### Bug Fixes
15
-
16
- * update focus-lock, fixes [#35](https://github.com/theKashey/react-focus-on/issues/35) ([280d4a5](https://github.com/theKashey/react-focus-on/commit/280d4a5))
17
-
18
-
19
-
20
- # [3.4.0](https://github.com/theKashey/react-focus-on/compare/v3.3.0...v3.4.0) (2020-04-16)
21
-
22
-
23
- ### Features
24
-
25
- * support CSP ([67739a4](https://github.com/theKashey/react-focus-on/commit/67739a4))
26
-
27
-
28
-
29
- # [3.3.0](https://github.com/theKashey/react-focus-on/compare/v3.2.0...v3.3.0) (2019-10-17)
30
-
31
-
32
- ### Features
33
-
34
- * add allowPinchZoom ([ad396d7](https://github.com/theKashey/react-focus-on/commit/ad396d7))
35
-
36
-
37
-
38
- # [3.2.0](https://github.com/theKashey/react-focus-on/compare/v3.1.5...v3.2.0) (2019-10-13)
39
-
40
-
41
- ### Features
42
-
43
- * allow ref forwarding ([d379b3c](https://github.com/theKashey/react-focus-on/commit/d379b3c))
44
-
45
-
46
-
47
- ## [3.1.5](https://github.com/theKashey/react-focus-on/compare/v3.1.4...v3.1.5) (2019-10-06)
48
-
49
-
50
-
51
- ## [3.1.4](https://github.com/theKashey/react-focus-on/compare/v3.1.3...v3.1.4) (2019-10-05)
52
-
53
-
54
-
55
- ## [3.1.3](https://github.com/theKashey/react-focus-on/compare/v3.1.2...v3.1.3) (2019-10-01)
56
-
57
-
58
- ### Bug Fixes
59
-
60
- * deactivation sequence, fixes [#24](https://github.com/theKashey/react-focus-on/issues/24) ([32ed7d7](https://github.com/theKashey/react-focus-on/commit/32ed7d7))
61
-
62
-
63
-
64
- ## [3.1.2](https://github.com/theKashey/react-focus-on/compare/v3.1.1...v3.1.2) (2019-09-28)
65
-
66
-
67
-
68
- ## [3.1.1](https://github.com/theKashey/react-focus-on/compare/v3.1.0...v3.1.1) (2019-09-21)
69
-
70
-
71
- ### Bug Fixes
72
-
73
- * 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))
74
-
75
-
76
-
77
- # [3.1.0](https://github.com/theKashey/react-focus-on/compare/v3.0.7...v3.1.0) (2019-09-13)
78
-
79
-
80
- ### Features
81
-
82
- * support returnOption=preventScroll FocusLock option ([ff2dad3](https://github.com/theKashey/react-focus-on/commit/ff2dad3))
83
-
84
-
85
-
86
- ## [3.0.7](https://github.com/theKashey/react-focus-on/compare/v3.0.6...v3.0.7) (2019-09-11)
87
-
88
-
89
-
90
- ## [3.0.6](https://github.com/theKashey/react-focus-on/compare/v3.0.5...v3.0.6) (2019-08-15)
91
-
92
-
93
- ### Bug Fixes
94
-
95
- * 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))
96
-
97
-
98
-
99
- ## [3.0.5](https://github.com/theKashey/react-focus-on/compare/v3.0.4...v3.0.5) (2019-07-16)
100
-
101
-
102
- ### Bug Fixes
103
-
104
- * 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))
105
-
106
-
107
-
108
- ## [3.0.4](https://github.com/theKashey/react-focus-on/compare/v3.0.3...v3.0.4) (2019-07-16)
109
-
110
-
111
- ### Bug Fixes
112
-
113
- * expose returnFocus prop, fixes [#11](https://github.com/theKashey/react-focus-on/issues/11) ([b25b5b5](https://github.com/theKashey/react-focus-on/commit/b25b5b5))
114
-
115
-
116
-
117
- ## [3.0.3](https://github.com/theKashey/react-focus-on/compare/v3.0.1...v3.0.3) (2019-07-03)
118
-
119
-
120
-
121
- ## [3.0.1](https://github.com/theKashey/react-focus-on/compare/v3.0.0...v3.0.1) (2019-07-02)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * 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))
127
-
128
-
129
-
130
- # [3.0.0](https://github.com/theKashey/react-focus-on/compare/v2.0.2...v3.0.0) (2019-06-29)
131
-
132
-
133
- ### Features
134
-
135
- * introduce sidecar ([0588039](https://github.com/theKashey/react-focus-on/commit/0588039))
136
-
137
-
138
-
139
- ## [2.0.2](https://github.com/theKashey/react-focus-on/compare/v2.0.1...v2.0.2) (2019-05-05)
140
-
141
-
142
-
143
- ## [2.0.1](https://github.com/theKashey/react-focus-on/compare/v2.0.0...v2.0.1) (2019-04-10)
144
-
145
-
146
- ### Bug Fixes
147
-
148
- * 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))
149
-
150
-
151
-
152
- # [2.0.0](https://github.com/theKashey/react-focus-on/compare/v1.3.2...v2.0.0) (2019-03-11)
153
-
154
-
155
- ### Features
156
-
157
- * shards and remove-scroll ([dbd4d5f](https://github.com/theKashey/react-focus-on/commit/dbd4d5f))
158
- * shards and remove-scroll ([0f5d421](https://github.com/theKashey/react-focus-on/commit/0f5d421))
159
-
160
-
161
-
162
- ## [1.3.2](https://github.com/theKashey/react-focus-on/compare/v1.3.1...v1.3.2) (2019-01-21)
163
-
164
-
165
- ### Bug Fixes
166
-
167
- * return focus by default ([a525b4c](https://github.com/theKashey/react-focus-on/commit/a525b4c))
168
-
169
-
170
-
171
- ## [1.3.1](https://github.com/theKashey/react-focus-on/compare/v1.3.0...v1.3.1) (2018-12-31)
172
-
173
-
174
- ### Bug Fixes
175
-
176
- * Escape on body ([e551925](https://github.com/theKashey/react-focus-on/commit/e551925))
177
-
178
-
179
-
180
- # [1.3.0](https://github.com/theKashey/react-focus-on/compare/v1.2.1...v1.3.0) (2018-11-13)
181
-
182
-
183
- ### Features
184
-
185
- * expose gapMode ([0298cc8](https://github.com/theKashey/react-focus-on/commit/0298cc8))
186
-
187
-
188
-
189
- ## [1.2.1](https://github.com/theKashey/react-focus-on/compare/v1.2.0...v1.2.1) (2018-11-13)
190
-
191
-
192
-
193
- # [1.2.0](https://github.com/theKashey/react-focus-on/compare/v1.1.0...v1.2.0) (2018-11-12)
194
-
195
-
196
- ### Features
197
-
198
- * onEscapeKey ([7fb17d7](https://github.com/theKashey/react-focus-on/commit/7fb17d7))
199
-
200
-
201
-
202
- # [1.1.0](https://github.com/theKashey/react-focus-on/compare/ed4d62b...v1.1.0) (2018-11-07)
203
-
204
-
205
- ### Features
206
-
207
- * onClickOutside event ([ed4d62b](https://github.com/theKashey/react-focus-on/commit/ed4d62b))
208
-
209
-
210
-