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