focus-trap-react 8.0.0 → 8.1.0
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/CHANGELOG.md +10 -0
- package/README.md +39 -14
- package/package.json +21 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 8.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 5994a8c: Bump focus-trap from 6.0.1 to 6.1.0. This new version of focus-trap provides a new `delayInitialFocus` flag that can be used to further customize trap behavior.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 0562ef0: Change `prepublishOnly` script to `prepare` script so that it also runs if someone installs the package directly from the git repo (e.g. from your work in which you fixed a bug or added a feature you're waiting to get merged to master and published to NPM).
|
|
12
|
+
|
|
3
13
|
## 8.0.0
|
|
4
14
|
|
|
5
15
|
### Major Changes
|
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
# focus-trap-react [](https://github.com/focus-trap/focus-trap-react/actions?query=workflow:CI+branch:master)
|
|
1
|
+
# focus-trap-react [](https://github.com/focus-trap/focus-trap-react/actions?query=workflow:CI+branch:master) [](./LICENSE)
|
|
2
|
+
|
|
3
|
+
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
4
|
+
[](#contributors)
|
|
5
|
+
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
2
6
|
|
|
3
7
|
A React component that traps focus.
|
|
4
8
|
|
|
@@ -157,16 +161,37 @@ Type: `Boolean`, optional
|
|
|
157
161
|
|
|
158
162
|
If you would like to pause or unpause the focus trap (see [`focus-trap`'s documentation](https://github.com/focus-trap/focus-trap#focustrappause)), toggle this prop.
|
|
159
163
|
|
|
160
|
-
## Contributing
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
164
|
+
## Contributing
|
|
165
|
+
|
|
166
|
+
See [CONTRIBUTING](CONTRIBUTING.md).
|
|
167
|
+
|
|
168
|
+
## Contributors
|
|
169
|
+
|
|
170
|
+
In alphabetical order:
|
|
171
|
+
|
|
172
|
+
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
173
|
+
<!-- prettier-ignore-start -->
|
|
174
|
+
<!-- markdownlint-disable -->
|
|
175
|
+
<table>
|
|
176
|
+
<tr>
|
|
177
|
+
<td align="center"><a href="https://github.com/Ayc0"><img src="https://avatars3.githubusercontent.com/u/22725671?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Benjamin Koltes</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/issues?q=author%3AAyc0" title="Bug reports">🐛</a></td>
|
|
178
|
+
<td align="center"><a href="https://ofcr.se/"><img src="https://avatars1.githubusercontent.com/u/813865?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Benjamin Tan</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=bnjmnt4n" title="Documentation">📖</a></td>
|
|
179
|
+
<td align="center"><a href="https://github.com/DSil"><img src="https://avatars1.githubusercontent.com/u/6265045?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel</b></sub></a><br /><a href="#maintenance-DSil" title="Maintenance">🚧</a> <a href="https://github.com/stefcameron/focus-trap-react/commits?author=DSil" title="Tests">⚠️</a></td>
|
|
180
|
+
<td align="center"><a href="http://davidtheclark.com/"><img src="https://avatars2.githubusercontent.com/u/628431?v=4?s=100" width="100px;" alt=""/><br /><sub><b>David Clark</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=davidtheclark" title="Code">💻</a> <a href="https://github.com/stefcameron/focus-trap-react/issues?q=author%3Adavidtheclark" title="Bug reports">🐛</a> <a href="#infra-davidtheclark" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/stefcameron/focus-trap-react/commits?author=davidtheclark" title="Tests">⚠️</a> <a href="https://github.com/stefcameron/focus-trap-react/commits?author=davidtheclark" title="Documentation">📖</a> <a href="#maintenance-davidtheclark" title="Maintenance">🚧</a></td>
|
|
181
|
+
<td align="center"><a href="https://github.com/features/security"><img src="https://avatars1.githubusercontent.com/u/27347476?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Dependabot</b></sub></a><br /><a href="#maintenance-dependabot" title="Maintenance">🚧</a></td>
|
|
182
|
+
<td align="center"><a href="http://kathleenmcmahon.dev/"><img src="https://avatars1.githubusercontent.com/u/11621935?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Kathleen McMahon</b></sub></a><br /><a href="#maintenance-resource11" title="Maintenance">🚧</a></td>
|
|
183
|
+
<td align="center"><a href="https://marais.io/"><img src="https://avatars2.githubusercontent.com/u/599459?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Marais Rossouw</b></sub></a><br /><a href="#infra-maraisr" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
|
184
|
+
</tr>
|
|
185
|
+
<tr>
|
|
186
|
+
<td align="center"><a href="https://github.com/liunate"><img src="https://avatars2.githubusercontent.com/u/38996291?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Nate Liu</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=liunate" title="Tests">⚠️</a></td>
|
|
187
|
+
<td align="center"><a href="https://www.linkedin.com/in/rivajunior/"><img src="https://avatars1.githubusercontent.com/u/11370172?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rivaldo Junior</b></sub></a><br /><a href="#maintenance-rivajunior" title="Maintenance">🚧</a></td>
|
|
188
|
+
<td align="center"><a href="https://scottrippey.github.io/"><img src="https://avatars3.githubusercontent.com/u/430608?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Scott Rippey</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=scottrippey" title="Code">💻</a> <a href="https://github.com/stefcameron/focus-trap-react/issues?q=author%3Ascottrippey" title="Bug reports">🐛</a></td>
|
|
189
|
+
<td align="center"><a href="https://seanmcp.com/"><img src="https://avatars1.githubusercontent.com/u/6360367?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Sean McPherson</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=SeanMcP" title="Code">💻</a></td>
|
|
190
|
+
<td align="center"><a href="https://stefancameron.com/"><img src="https://avatars3.githubusercontent.com/u/2855350?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Stefan Cameron</b></sub></a><br /><a href="https://github.com/stefcameron/focus-trap-react/commits?author=stefcameron" title="Code">💻</a> <a href="https://github.com/stefcameron/focus-trap-react/issues?q=author%3Astefcameron" title="Bug reports">🐛</a> <a href="#infra-stefcameron" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/stefcameron/focus-trap-react/commits?author=stefcameron" title="Tests">⚠️</a> <a href="https://github.com/stefcameron/focus-trap-react/commits?author=stefcameron" title="Documentation">📖</a> <a href="#maintenance-stefcameron" title="Maintenance">🚧</a></td>
|
|
191
|
+
</tr>
|
|
192
|
+
</table>
|
|
193
|
+
|
|
194
|
+
<!-- markdownlint-restore -->
|
|
195
|
+
<!-- prettier-ignore-end -->
|
|
196
|
+
|
|
197
|
+
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "focus-trap-react",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "A React component that traps focus.",
|
|
5
5
|
"main": "dist/focus-trap-react.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"demo-bundle": "browserify demo/js -t babelify --extension=.jsx -o demo/demo-bundle.js",
|
|
17
17
|
"start": "yarn build && budo demo/js/index.js:demo-bundle.js --dir demo --live -- -t babelify --extension=.jsx",
|
|
18
18
|
"lint": "eslint \"*.js\" \"src/**/*.js\" \"test/**/*.js\" \"demo/**/*.js\"",
|
|
19
|
-
"format": "prettier --write \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows
|
|
20
|
-
"format-check": "prettier --check \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows
|
|
19
|
+
"format": "prettier --write \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
|
|
20
|
+
"format-check": "prettier --check \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
|
|
21
21
|
"build": "babel src -d dist",
|
|
22
22
|
"test-types": "tsc index.d.ts",
|
|
23
23
|
"test-unit": "jest",
|
|
24
24
|
"test-cypress": "start-server-and-test start 9966 'cypress open'",
|
|
25
25
|
"test-cypress-ci": "start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'",
|
|
26
|
-
"test": "yarn format-check && yarn lint && yarn test-unit && yarn test-types",
|
|
27
|
-
"
|
|
26
|
+
"test": "yarn format-check && yarn lint && yarn test-unit && yarn test-types && CYPRESS_BROWSER=chrome yarn test-cypress-ci",
|
|
27
|
+
"prepare": "yarn build",
|
|
28
28
|
"release": "yarn build && changeset publish"
|
|
29
29
|
},
|
|
30
30
|
"repository": {
|
|
@@ -42,55 +42,45 @@
|
|
|
42
42
|
"focus",
|
|
43
43
|
"keyboard"
|
|
44
44
|
],
|
|
45
|
-
"author":
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"url": "http://davidtheclark.com/"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "Stefan Cameron",
|
|
53
|
-
"url": "https://stefancameron.com/"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"name": "Marais Rossouw",
|
|
57
|
-
"url": "https://marais.io/"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
45
|
+
"author": {
|
|
46
|
+
"name": "David Clark",
|
|
47
|
+
"url": "http://davidtheclark.com/"
|
|
48
|
+
},
|
|
60
49
|
"license": "MIT",
|
|
61
50
|
"bugs": {
|
|
62
51
|
"url": "https://github.com/focus-trap/focus-trap-react/issues"
|
|
63
52
|
},
|
|
64
53
|
"homepage": "https://github.com/focus-trap/focus-trap-react#readme",
|
|
65
54
|
"devDependencies": {
|
|
66
|
-
"@babel/cli": "^7.11.
|
|
67
|
-
"@babel/core": "^7.11.
|
|
55
|
+
"@babel/cli": "^7.11.6",
|
|
56
|
+
"@babel/core": "^7.11.6",
|
|
68
57
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
69
58
|
"@babel/preset-env": "^7.11.5",
|
|
70
59
|
"@babel/preset-react": "^7.10.4",
|
|
71
|
-
"@changesets/cli": "^2.10.
|
|
72
|
-
"@testing-library/cypress": "^
|
|
60
|
+
"@changesets/cli": "^2.10.3",
|
|
61
|
+
"@testing-library/cypress": "^7.0.1",
|
|
73
62
|
"@types/jquery": "^3.5.1",
|
|
63
|
+
"all-contributors-cli": "^6.17.4",
|
|
74
64
|
"babel-eslint": "^10.1.0",
|
|
75
65
|
"babel-jest": "^26.3.0",
|
|
76
66
|
"babelify": "^10.0.0",
|
|
77
67
|
"browserify": "^16.5.2",
|
|
78
68
|
"budo": "^11.6.4",
|
|
79
|
-
"cypress": "^5.
|
|
69
|
+
"cypress": "^5.2.0",
|
|
80
70
|
"cypress-plugin-tab": "^1.0.5",
|
|
81
|
-
"eslint": "^7.
|
|
71
|
+
"eslint": "^7.9.0",
|
|
82
72
|
"eslint-config-prettier": "^6.11.0",
|
|
83
|
-
"eslint-plugin-react": "^7.
|
|
73
|
+
"eslint-plugin-react": "^7.21.0",
|
|
84
74
|
"jest": "^26.4.2",
|
|
85
|
-
"prettier": "^2.1.
|
|
75
|
+
"prettier": "^2.1.2",
|
|
86
76
|
"prop-types": "^15.7.2",
|
|
87
77
|
"react": "^16.13.1",
|
|
88
78
|
"react-dom": "^16.13.1",
|
|
89
|
-
"start-server-and-test": "^1.11.
|
|
90
|
-
"typescript": "^4.0.
|
|
79
|
+
"start-server-and-test": "^1.11.4",
|
|
80
|
+
"typescript": "^4.0.3"
|
|
91
81
|
},
|
|
92
82
|
"dependencies": {
|
|
93
|
-
"focus-trap": "^6.0
|
|
83
|
+
"focus-trap": "^6.1.0"
|
|
94
84
|
},
|
|
95
85
|
"peerDependencies": {
|
|
96
86
|
"prop-types": "^15.7.2",
|