focus-trap 6.2.0 → 6.3.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 +33 -0
- package/README.md +47 -29
- package/SECURITY.md +37 -0
- package/dist/focus-trap.esm.js +316 -215
- package/dist/focus-trap.esm.js.map +1 -1
- package/dist/focus-trap.esm.min.js +2 -2
- package/dist/focus-trap.esm.min.js.map +1 -1
- package/dist/focus-trap.js +315 -214
- package/dist/focus-trap.js.map +1 -1
- package/dist/focus-trap.min.js +2 -2
- package/dist/focus-trap.min.js.map +1 -1
- package/dist/focus-trap.umd.js +315 -214
- package/dist/focus-trap.umd.js.map +1 -1
- package/dist/focus-trap.umd.min.js +2 -2
- package/dist/focus-trap.umd.min.js.map +1 -1
- package/index.d.ts +7 -6
- package/index.js +381 -271
- package/package.json +35 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "focus-trap",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"description": "Trap focus within a DOM node.",
|
|
5
5
|
"main": "dist/focus-trap.js",
|
|
6
6
|
"module": "dist/focus-trap.esm.js",
|
|
@@ -10,27 +10,30 @@
|
|
|
10
10
|
"package.json",
|
|
11
11
|
"README.md",
|
|
12
12
|
"CHANGELOG.md",
|
|
13
|
+
"SECURITY.md",
|
|
13
14
|
"LICENSE",
|
|
14
15
|
"index.js",
|
|
15
16
|
"index.d.ts",
|
|
16
17
|
"dist"
|
|
17
18
|
],
|
|
18
19
|
"scripts": {
|
|
20
|
+
"demo-bundle": "browserify demo/js/index.js -o demo/demo-bundle.js",
|
|
19
21
|
"format": "prettier --write \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
|
|
20
|
-
"format
|
|
22
|
+
"format:check": "prettier --check \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\"",
|
|
23
|
+
"format:watch": "onchange \"{*,src/**/*,test/**/*,demo/js/**/*,.github/workflows/*,cypress/**/*}.+(js|yml)\" -- prettier --write {{changed}}",
|
|
21
24
|
"lint": "eslint \"*.js\" \"demo/**/*.js\" \"cypress/**/*.js\"",
|
|
22
25
|
"clean": "rm -rf ./dist",
|
|
23
|
-
"compile
|
|
24
|
-
"compile
|
|
25
|
-
"compile
|
|
26
|
-
"compile": "yarn compile
|
|
26
|
+
"compile:esm": "BUILD_ENV=esm BABEL_ENV=esm rollup -c",
|
|
27
|
+
"compile:cjs": "BUILD_ENV=cjs BABEL_ENV=es5 rollup -c",
|
|
28
|
+
"compile:umd": "BUILD_ENV=umd BABEL_ENV=es5 rollup -c",
|
|
29
|
+
"compile": "yarn compile:esm && yarn compile:cjs && yarn compile:umd",
|
|
27
30
|
"build": "yarn clean && yarn compile",
|
|
28
|
-
"start": "yarn compile
|
|
29
|
-
"test
|
|
30
|
-
"test
|
|
31
|
-
"test
|
|
32
|
-
"test
|
|
33
|
-
"test": "yarn format
|
|
31
|
+
"start": "yarn compile:cjs && budo demo/js/index.js:demo-bundle.js --dir demo --live -- -t babelify",
|
|
32
|
+
"test:types": "tsc index.d.ts",
|
|
33
|
+
"test:unit": "echo \"No unit tests to run!\"",
|
|
34
|
+
"test:cypress": "start-server-and-test start 9966 'cypress open'",
|
|
35
|
+
"test:cypress-ci": "start-server-and-test start 9966 'cypress run --browser $CYPRESS_BROWSER --headless'",
|
|
36
|
+
"test": "yarn format:check && yarn lint && yarn test:unit && yarn test:types && CYPRESS_BROWSER=chrome yarn test:cypress-ci",
|
|
34
37
|
"prepare": "yarn build",
|
|
35
38
|
"release": "yarn build && changeset publish"
|
|
36
39
|
},
|
|
@@ -56,33 +59,35 @@
|
|
|
56
59
|
},
|
|
57
60
|
"homepage": "https://github.com/focus-trap/focus-trap#readme",
|
|
58
61
|
"dependencies": {
|
|
59
|
-
"tabbable": "^5.1.
|
|
62
|
+
"tabbable": "^5.1.5"
|
|
60
63
|
},
|
|
61
64
|
"devDependencies": {
|
|
62
|
-
"@babel/cli": "^7.12.
|
|
63
|
-
"@babel/core": "^7.12.
|
|
64
|
-
"@babel/preset-env": "^7.12.
|
|
65
|
-
"@changesets/cli": "^2.
|
|
66
|
-
"@rollup/plugin-babel": "^5.2.
|
|
67
|
-
"@rollup/plugin-commonjs": "^
|
|
68
|
-
"@rollup/plugin-node-resolve": "^
|
|
69
|
-
"@testing-library/cypress": "^7.0.
|
|
70
|
-
"@types/jquery": "^3.5.
|
|
65
|
+
"@babel/cli": "^7.12.10",
|
|
66
|
+
"@babel/core": "^7.12.10",
|
|
67
|
+
"@babel/preset-env": "^7.12.11",
|
|
68
|
+
"@changesets/cli": "^2.12.0",
|
|
69
|
+
"@rollup/plugin-babel": "^5.2.2",
|
|
70
|
+
"@rollup/plugin-commonjs": "^17.0.0",
|
|
71
|
+
"@rollup/plugin-node-resolve": "^11.0.1",
|
|
72
|
+
"@testing-library/cypress": "^7.0.3",
|
|
73
|
+
"@types/jquery": "^3.5.5",
|
|
71
74
|
"all-contributors-cli": "^6.19.0",
|
|
72
75
|
"babel-eslint": "^10.1.0",
|
|
73
|
-
"babel-loader": "^8.2.
|
|
76
|
+
"babel-loader": "^8.2.2",
|
|
74
77
|
"babelify": "^10.0.0",
|
|
78
|
+
"browserify": "^17.0.0",
|
|
75
79
|
"budo": "^11.6.4",
|
|
76
|
-
"cypress": "^
|
|
80
|
+
"cypress": "^6.2.1",
|
|
77
81
|
"cypress-plugin-tab": "^1.0.5",
|
|
78
|
-
"eslint": "^7.
|
|
79
|
-
"eslint-config-prettier": "^
|
|
82
|
+
"eslint": "^7.17.0",
|
|
83
|
+
"eslint-config-prettier": "^7.1.0",
|
|
80
84
|
"eslint-plugin-cypress": "^2.11.2",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
85
|
+
"onchange": "^7.1.0",
|
|
86
|
+
"prettier": "^2.2.1",
|
|
87
|
+
"rollup": "^2.36.1",
|
|
83
88
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
84
89
|
"rollup-plugin-terser": "^7.0.1",
|
|
85
|
-
"start-server-and-test": "^1.11.
|
|
86
|
-
"typescript": "^4.
|
|
90
|
+
"start-server-and-test": "^1.11.7",
|
|
91
|
+
"typescript": "^4.1.3"
|
|
87
92
|
}
|
|
88
93
|
}
|