{"_id":"dom-focus-lock","_rev":"8-621ba0b9c46d70a526d617b5d7bc8a43","name":"dom-focus-lock","description":"It is a trap! (for a focus)","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"dom-focus-lock","version":"1.0.0","description":"It is a trap! (for a focus)","main":"dist/index.js","unpkg":"umd/index.js","scripts":{"build":"babel src -d dist","umd":"browserify dist/index.js --standalone focusLock -o umd/index.js","prepublish":"npm run build && npm run umd","lint":"eslint src tests","lint:fix":"eslint src tests --fix"},"repository":{"type":"git","url":"git+https://github.com/theKashey/vue-focus-lock.git"},"files":["src","dist","umd"],"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","devDependencies":{"babel-core":"^6.24.0","babel-eslint":"7.2.3","babel-loader":"^6.4.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"1.6.0","babel-preset-es2015":"^6.24.0","babel-preset-stage-2":"^6.22.0","babel-runtime":"^6.23.0","browserify":"14.4.0","eslint":"^4.6.0","eslint-plugin-vue":"^3.12.0","style-loader":"^0.15.0"},"dependencies":{"focus-lock":"0.0.2-2"},"gitHead":"b1ffb44fe4ede75732f29bf7607f97fc771c5a7c","_id":"dom-focus-lock@1.0.0","_shasum":"94c37374e9d22c46475851857b59cf76f4ec449e","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"shasum":"94c37374e9d22c46475851857b59cf76f4ec449e","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.0.0.tgz","integrity":"sha512-VH/PfyGXz67SyJJLzHbpRbuB3Zj3dvotUlK0K+QnxbYv+mFkB0xdCFo7Vt4RXS0v3b8IbME486gThSlvdOCqpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDay7GPe/zUIdXTnZ91WNGhpPhH1TIVdUO8G/iHXzxoWQIhAN3hk+l15R+SzI3cZZq5F+QxkdBCJCqWgPBDIVaiWpva"}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock-1.0.0.tgz_1504575509553_0.5748236870858818"},"directories":{}},"1.0.1":{"name":"dom-focus-lock","version":"1.0.1","description":"It is a trap! (for a focus)","main":"dist/index.js","unpkg":"umd/index.js","scripts":{"build":"babel src -d dist","umd":"browserify dist/index.js --standalone focusLock -o umd/index.js","prepublish":"npm run build && npm run umd","lint":"eslint src tests","lint:fix":"eslint src tests --fix"},"repository":{"type":"git","url":"git+https://github.com/theKashey/vue-focus-lock.git"},"files":["src","dist","umd"],"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","devDependencies":{"babel-core":"^6.24.0","babel-eslint":"7.2.3","babel-loader":"^6.4.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"1.6.0","babel-preset-es2015":"^6.24.0","babel-preset-stage-2":"^6.22.0","babel-runtime":"^6.23.0","browserify":"14.4.0","eslint":"^4.6.0","eslint-plugin-vue":"^3.12.0","style-loader":"^0.15.0"},"dependencies":{"focus-lock":"^0.0.3"},"gitHead":"2d2b375ff02fe0138b566d7fb65ce814f4d50a49","_id":"dom-focus-lock@1.0.1","_shasum":"a9977376b2f380a9978cfadeacb8837308b12238","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.7.2","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"shasum":"a9977376b2f380a9978cfadeacb8837308b12238","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.0.1.tgz","integrity":"sha512-vM+rcuCTaQ3sNN+AdzUQNMFDNWt35XLVytWTeFdxm7WoD8NtP+EwXt5fpFjxCNmhnKP9atK7dC0+I1vWgffyFg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDa6SDiF1fvPQB+w9if+OhZ00rZMBVy+676dwyzfr8mcAiEAlgVjSpV5FLPxI43zm2T3qhW5RjVTDFofsYmd+L42PlI="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock-1.0.1.tgz_1504669811440_0.29302024422213435"},"directories":{}},"1.0.2":{"name":"dom-focus-lock","version":"1.0.2","description":"It is a trap! (for a focus)","main":"dist/index.js","unpkg":"umd/index.js","scripts":{"build":"babel src -d dist","umd":"browserify dist/index.js --standalone focusLock -o umd/index.js","prepublish":"npm run build && npm run umd","lint":"eslint src tests","lint:fix":"eslint src tests --fix"},"repository":{"type":"git","url":"git+https://github.com/theKashey/vue-focus-lock.git"},"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","devDependencies":{"babel-core":"^6.24.0","babel-eslint":"7.2.3","babel-loader":"^6.4.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"1.6.0","babel-preset-es2015":"^6.24.0","babel-preset-stage-2":"^6.22.0","babel-runtime":"^6.23.0","browserify":"14.4.0","eslint":"^4.6.0","eslint-plugin-vue":"^3.12.0","style-loader":"^0.15.0"},"dependencies":{"babel-cli":"6","focus-lock":"^0.5.3"},"gitHead":"13662e8a7846d512e21bf174fc9b99480e6c9ad2","_id":"dom-focus-lock@1.0.2","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-yIbk8UbBpdV+ue5j8PZsOrzYbqy7sZz7ouH3Mp9vLIMK41xwjLbfDvCMIxkIVFliV3c6XuwjQ/Xi0z4AffEZTQ==","shasum":"b56b30d358ac599b7cf6ae2cd69578b8b96458b8","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.0.2.tgz","fileCount":6,"unpackedSize":33912,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6e5JCRA9TVsSAnZWagAAaXcQAI+ZX5YhSJNdm/mhSI3e\nonwG3qXoWcHv4tS+4qwgz58WUORjJJXQYrmfR7pHnvqm6AmGO2O66o4boEsQ\n5JsyOhHNoLVii9AX/LdVoZNwygXgKSVRI79L/rcffEEYHx7/I3UXcK51Jx04\nmvw1JahEEXUaPMRMhjSLXxRP3T/zwkvnVJXpS7+M5VaOiUM+p2ibWYKfN0+G\nQWPkUzojFUaUGr+WJRdoJcKuA3TSDkwvZPG/XSmbhsrymPheu+tIhRJT6fCe\n7zeqMLRD9kUU7JmPyVNy+D8Q1BalL9obRZ4kezOnh+hyuIc3BGvow0xKQUcA\nR/USv1VIu6y+JGb9Hwv5QQFXJIjN8EfKPe9vQaMaSedHPTC3XHa8Qb58Pq9W\nl1mJDzEFxMAkZK40YVHTUdol+yeV7VvcDSMPwWSIuYrZzFxs71UV5brq/XFQ\nKKxhueOi51CD7qV+mpg1ZVKmeQBwtYANzNj6xSW48pEJ3657w0p0YGmCRbIA\nNMwRFTPTF6+IYz3Q1Huxytl6odbLNXwrsRfjIjAsX1Mir692bbO5B7z9jARh\nxe43FSjXYNTRZW1efivJBQKZiy2auS208G++2m8wr1GYvK88vsS0M9AGwAdg\nke7eQwAEb6gMeVvHpBdaaprNlwG1TgltDJB25OkORaH+PwDAphPv2//KYyDJ\nNgw2\r\n=SlO6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICtP0tTk0faQkNW9C3lwwrkTJbugk3ATAKP49UPRzch2AiANSX9RXGzn917Br9P1y7mqmVckdh3UwK/eUZVZJdr3ng=="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock_1.0.2_1542057544472_0.5677177269304514"},"_hasShrinkwrap":false},"1.0.3":{"name":"dom-focus-lock","version":"1.0.3","description":"It is a trap! (for a focus)","main":"dist/index.js","unpkg":"umd/index.js","scripts":{"build":"npm run babel && npm run umd","babel":"babel src -d dist","umd":"browserify dist/index.js --standalone focusLock -o umd/index.js","prepublish":"npm run build","lint":"eslint src tests","lint:fix":"eslint src tests --fix"},"repository":{"type":"git","url":"git+https://github.com/theKashey/dom-focus-lock.git"},"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","devDependencies":{"babel-cli":"6","babel-core":"^6.24.0","babel-eslint":"7.2.3","babel-loader":"^6.4.1","babel-plugin-transform-runtime":"^6.23.0","babel-preset-env":"1.6.0","babel-preset-es2015":"^6.24.0","babel-preset-stage-2":"^6.22.0","babel-runtime":"^6.23.0","browserify":"14.4.0","eslint":"^4.6.0","eslint-plugin-vue":"^3.12.0","style-loader":"^0.15.0"},"dependencies":{"focus-lock":"^0.5.3"},"gitHead":"24c7f28b840932efe4577f064e993d8965f4a0ba","_id":"dom-focus-lock@1.0.3","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-Gc470NaJ/qqL+KxSfX0zeE7THxJzGqM7gDHKpQjJk5vN1sGR/gufwxO9wqw3Hy7klOdkARQ69MeLmr2RzcmDKg==","shasum":"51df9139e1173d058b8f907eb49bfcea41e8d298","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.0.3.tgz","fileCount":6,"unpackedSize":33205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcEtjdCRA9TVsSAnZWagAASCwP+wSb4O0DeRx2KRMT0dsB\nWlyWCw+lhFr1LHlvtgU61ahlT5CCdx++FBaAjQ3FXN5aEGYaUCxIkMiy4xu7\nNYnNNk5YBFnfPXUczxiaqe8ZcJeFZ9eh2tyiy1O4oNfNObdQedyOmfW4pNhm\nTuYOYNzsfhO0gwjvaX2L5BjJu8Rk2/+Ifjx47QrpCGyC3KAYlhA5Ys5YJEnL\nUhoptsv0tnXMrj4ZfckeUz9pq6pffW2q6MQSqw5B01gf6ye+XkLZIXSGciBX\nj9FF9TbBLhT03VblfL/JGyRafe7LcREIEptcKYbc5xGkxyW41QiSNVXvqEs/\nemD3Q+giRCOLSjnPkVsKOK14y8SoqrxL5aLDUC7QwevmrAoIET4gEHUlmsX3\nNPkg7J2Ubu5rUSYAjQJDff2mdfxR592WKRSy3F8KjzOGA4ikjN37k/gTsXfS\n3r5PdD5z7Elh5S5yTWfpTWLl5jBBV4+zzU83dXuYNN9fxvSoPHWxcjN+j2RB\nhyFBScLyEMUAiTpORqoo0G5u1RId6B5bbWsQm8Pl1fA6VvuJ1mp6UqRIL35h\nmc44NL4IQGEJ7xszIdFvFZY9F8f8J2CQybo0XeRXMLAZemHWrNythsVpwF20\nZg71164tuWcHxAxqCFwvUL7LMekz3xD7p2tllKX5R554QlUK1iA9D5lzX5qv\nTcia\r\n=DucE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC/9yk3KqOtJHhcOKiceaSeWt30svjYSVWL8cU+oZtSbAIgLF6csoIippVzWN1kKtKcLeLUqnCI3BAwdmebqfemWP8="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock_1.0.3_1544739036835_0.6215569021389815"},"_hasShrinkwrap":false},"1.0.4":{"name":"dom-focus-lock","version":"1.0.4","description":"It is a trap! (for a focus)","author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"MIT","main":"dist/index.js","module":"dist/index.esm.js","unpkg":"umd/index.js","scripts":{"build":"rollup --config rollup.config.js","prepublishOnly":"npm run build","lint":"eslint src tests","lint:fix":"eslint src tests --fix","test":"ws --static.index example/testForm.html --open"},"dependencies":{"focus-lock":"^0.6.2"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","eslint":"^4.6.0","local-web-server":"^2.6.1","rollup":"^1.5.0","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.2.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^4.0.1"},"browserslist":["last 2 versions"],"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"repository":{"type":"git","url":"git+https://github.com/theKashey/dom-focus-lock.git"},"bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","gitHead":"8f5869f647711a84b1af52e25d986c70a6cd894e","_id":"dom-focus-lock@1.0.4","_npmVersion":"6.2.0","_nodeVersion":"10.9.0","_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"dist":{"integrity":"sha512-Tiz2EYedB14UW0/lY5PEzFAie66e9itoEVKhz0M9xz1cHqP4Jd0XUg/AT2m6DtbhCFa9DHo6nQyePuLH7Mx9+A==","shasum":"1a6f900399efa4e8cc9d7078ba40acf080fc10d8","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.0.4.tgz","fileCount":7,"unpackedSize":24668,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJch49TCRA9TVsSAnZWagAAk6sQAItj5XV+mcO5Tq4Aon7K\nrxZUMDBMkx+n24iwJz88NXNFZfxVGxcyeTLq/GTXa7OoJeDUD8/sTM1tVw41\nCScNHx3KZFJLnxrjWIb9eOziaBFi+pcjHOSqqEI1wLEPgVZlhBz050fDUZAi\npSC82QRLylbyLWoPUkKlMJRsxisXLNWvpAofXaWA9fFPQvc4dqzC+ms8gigw\nJW62s4eknEMgQtcBWv5NPmeU8UpvgTZcoI317h87QDihrEJHTzrmahQhFvv6\nJhGAEzWw1mIwEd2d8D43fgztb0uWc7WssHprd1ETad8bVLUM2OZ6e/k58HuT\noDjxTRLntDPXj28EEnla7IAjhJXegsoSyYocsHs5xNNuBWMj21TLJ3jxOdYM\nqV1SOOXwmQbuVl9E8x2cnL+S/74GYglJXD9B6QssQ6PGjkJ4wlvO76RhS2Na\nXV603ftqLe+JV9M5J21usQWWg2lusDz8I15Zb1U7PJ7uk+MB93BmRaiNACHW\nAc+m25WWNvpuu2uMBSNLu/S3th6N31amP6a67LdM3c9mB2dB1ONBNSXvaMF5\noft5WePdn4BruMOloFkG5v0BLfeqFKmgIfWQwF+9NsYfR37JASatsAAa3z3Q\nYDh7S64IYT3gfiFBquibY8QJKRpIhRkDOaaxq0Ev2vl7oZFpVGnbaHHRFIb5\nolZJ\r\n=jUPv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCq505lUjaYnCyB/XcMEzINQRsr3R6qO7Yb1nzOkof3lgIgDW6ngI6iE08MPnfGijYL/X9jgiNpuhIbKEvhQU/ZGbg="}]},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock_1.0.4_1552387922948_0.06060742588958168"},"_hasShrinkwrap":false},"1.1.0":{"name":"dom-focus-lock","version":"1.1.0","description":"It is a trap! (for a focus)","author":{"name":"theKashey","email":"thekashey@gmail.com"},"license":"MIT","main":"dist/index.js","module":"dist/index.esm.js","unpkg":"umd/index.js","scripts":{"build":"rollup --config rollup.config.js","prepublishOnly":"npm run build","lint":"eslint src tests","lint:fix":"eslint src tests --fix","test":"ws --static.index example/testForm.html --open"},"dependencies":{"focus-lock":"^0.11.3"},"devDependencies":{"@babel/core":"^7.3.4","@babel/preset-env":"^7.3.4","eslint":"^4.6.0","local-web-server":"^2.6.1","rollup":"^1.5.0","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^9.2.1","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-node-resolve":"^4.0.1"},"browserslist":["last 2 versions"],"keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"repository":{"type":"git","url":"git+https://github.com/theKashey/dom-focus-lock.git"},"bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","gitHead":"1d564eee4d13c37baad4bba894b4e4f9aca2e1df","_id":"dom-focus-lock@1.1.0","_nodeVersion":"16.15.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-KDJb48vxT2XmyETTFUobMizW4uRA6Riyr8nwdcAApnhl8UsY5QkpCq8f+3EDQX8REyddLtUaj0Tsx9rMJiW+CQ==","shasum":"5044c0cd138d99c3ce160a04667232200da1938c","tarball":"https://registry.npmjs.org/dom-focus-lock/-/dom-focus-lock-1.1.0.tgz","fileCount":7,"unpackedSize":35828,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICzPVy0771yVztD8qOmxGVFVgk56Ixssn0JTTHc85ghoAiAlHwHMhYKzJQoNS+5DcrK9GK1jQFSNflB5iCXHIjO4mw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcHSpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpK4g//Tw+DLiEWeDx/nVuIr8jAiobXyGCkkjLtQULTsrnChVLD4QQW\r\nhXUtHcUoB0TFhw97dT3lUxBdzCnUCTiZdvP96VAiGHxS6NmfPD0uGKIOWjTS\r\nt2VvjC5mTEqyCGZE3eB7niOmyxSyCZEcXk51COEuEHc+o6y0fPGnh5Lztam8\r\nbl1FOvNF4BFuWVz7p0nEYMrfPX5ONnjvVF0EVjSWOktrGUyFt+2GD37Yrioe\r\n7aqwPKLvLLyTX1B8cXy9ABJBRZEDdyUtaEHWpRLmo4TyYUcjDX+YAy0CWmJU\r\nYv6ynAgnOuePR5wmiz5lY01ahbJ+XnO5HO0FOcVp+GEAFPPWTu3YQCgGDRh1\r\nkRKiF+WhBNZHEvI5obFraBOqC9hkdNCrh3xaUiNVribc/uxBcfbFuVi46zfp\r\niLULd7mV5pRe79yJixlRdz9nDahaCenRu6e0pPZj7+eYSgIeyHlyWcm51Pl/\r\nCAB9RBeqW+m3E/b1wujpLqrHxp8yzVBF/2pOAck/xPmB1o2/POUvFIxJgm3Y\r\niVGQV/LgP6PvFhLk1JD1YwinSCjp2kwJ5vnhwGAefLVzTU05OVDgqmDIOJGr\r\nTJBGiBDlWVWwXHjaAcB2pQ+n5ZGsoLAUMI1iH3nqFxt6g+KmYK4dojmi1AMq\r\nmRUBwzkt69rlPbvKDodGqp/cSMCOj5V96A0=\r\n=ZzBm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"kashey","email":"thekashey@gmail.com"},"directories":{},"maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dom-focus-lock_1.1.0_1668314280964_0.9772249933274477"},"_hasShrinkwrap":false}},"readme":"# dom-focus-lock\n\nIt is a trap! We got your focus and will not let him out!\n\n[![NPM](https://nodei.co/npm/dom-focus-lock.png?downloads=true&stars=true)](https://nodei.co/npm/dom-focus-lock/)\n\nThis is a small, but very useful for:\n\n - Modal dialogs. You can not leave it with \"Tab\", ie tab-out.\n - Focused tasks. It will aways brings you back.\n \nYou have to use it in _every_ modal dialog, or you accessibility will be shitty.\n \n# How to use\n\nJust include script\n\n```html\n<script src=\"http://unpkg.com/dom-focus-lock\"></script>\n```\nOr require it from JS\n\n```js\nimport focusLock from 'dom-focus-lock'\n```\nThen, activate the lock on desired node\n\n```js\nfocusLock.on(domNode);\n//.....\nfocusLock.off(domNode);\n```\n\n# Why?\n\nFrom [MDN Article about accessible dialogs](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_dialog_role):\n\n - The dialog must be properly labeled\n - Keyboard __focus must be managed__ correctly\n \nThis one is about managing the focus.\n\nI'v got a good [article about focus management, dialogs and  WAI-ARIA](https://medium.com/@antonkorzunov/its-a-focus-trap-699a04d66fb5).    \n\n# Behavior\n\n0. It will always keep focus inside Lock.\n1. It will cycle forward then you press Tab.\n2. It will cycle in reverse direction on Shift+Tab.\n3. It will do it using _browser_ tools, not emulation.\n4. It will handle positive tabIndex inside form.\n5. It will prevent any jump outside, returning focus to the last element.\n\nYou can use nested Locks or have more than one Lock on the page.\nOnly `last`, or `deepest` one will work. No fighting.\n\n# API\n\nFocusLock has only 3 props, 2 of them you will never use (I hope):\n\n - `disabled`, to disable(enable) behavior without altering the tree.\n     \n# How it works\n\nEverything is simple - dom-focus-lock just dont left focus left boundaries of component, and\ndo something only if escape attempt was succeeded.\n \nIt is not altering tabbing behavior at all. We are good citizens.\n\n# Not using a vanilla JS?\n\nTry [react-focus-lock](https://github.com/theKashey/react-focus-lock) or [vue-focus-lock](https://github.com/theKashey/vue-focus-lock)\n\n# Licence\n\nMIT\n","maintainers":[{"name":"kashey","email":"thekashey@gmail.com"}],"time":{"modified":"2022-11-13T04:38:01.235Z","created":"2017-09-05T01:38:29.670Z","1.0.0":"2017-09-05T01:38:29.670Z","1.0.1":"2017-09-06T03:50:11.515Z","1.0.2":"2018-11-12T21:19:04.615Z","1.0.3":"2018-12-13T22:10:36.987Z","1.0.4":"2019-03-12T10:52:03.043Z","1.1.0":"2022-11-13T04:38:01.165Z"},"homepage":"https://github.com/theKashey/dom-focus-lock#readme","keywords":["vanilla","dom","modals","focus","lock","trap","tabbable"],"repository":{"type":"git","url":"git+https://github.com/theKashey/dom-focus-lock.git"},"author":{"name":"theKashey","email":"thekashey@gmail.com"},"bugs":{"url":"https://github.com/theKashey/dom-focus-lock/issues"},"license":"MIT","readmeFilename":"README.md"}