{"_id":"a11y-focus-scope","_rev":"15-b355a45fa871f98f11ad4512864af81a","name":"a11y-focus-scope","description":"Accessibility util for scoping focus to an element.","dist-tags":{"latest":"1.1.3"},"versions":{"1.0.0":{"name":"a11y-focus-scope","version":"1.0.0","description":"Accessibility util for scoping focus to an element.","main":"index.js","scripts":{"test":"karma start"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","dependencies":{"focusin":"^1.0.0"},"devDependencies":{"chai":"^3.4.0","karma":"^0.13.15","karma-browserify":"^4.4.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","mocha":"^2.3.3"},"gitHead":"5fcb989a35f19654dd7dc780a21e629aea774b9c","_id":"a11y-focus-scope@1.0.0","_shasum":"926156c880ab8a5ba7052d9d515872b7143e4906","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"926156c880ab8a5ba7052d9d515872b7143e4906","tarball":"https://registry.npmjs.org/a11y-focus-scope/-/a11y-focus-scope-1.0.0.tgz","integrity":"sha512-wVlb1kXcEmTwPeX8FuUvPgJXBY8mEDUGsgRlnpo2HKT3TfvUnWY77KnOK8qqtFD80qRdLTZOjezmXllZXS6+TA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFSoxQQ+tmx7WTq7CvHROZ8LH5E52GHIWm6w1RhkLI1xAiBVmDlZyW1PDgloODor5H/LKk9x6D9v4gafPjnYvm1Adg=="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}]},"1.1.0":{"name":"a11y-focus-scope","version":"1.1.0","description":"Accessibility util for scoping focus to an element.","main":"index.js","scripts":{"test":"karma start"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","dependencies":{"focusin":"^1.0.0","tabbable":"^1.0.0"},"devDependencies":{"chai":"^3.4.0","karma":"^0.13.15","karma-browserify":"^4.4.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","mocha":"^2.3.3"},"gitHead":"45d36c99c8105118320bd227939313b67db712f5","_id":"a11y-focus-scope@1.1.0","_shasum":"9b5e6212db94a9802da0e2785e7c1d3703339a1f","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"9b5e6212db94a9802da0e2785e7c1d3703339a1f","tarball":"https://registry.npmjs.org/a11y-focus-scope/-/a11y-focus-scope-1.1.0.tgz","integrity":"sha512-sCLVK6dV3FB6N0javbjMT7lOoWd0iXl3YlbvUgWyq/zXuk9ooCtuu5I38HgUNvgVyRLxcZlKaudP3nu/sM/mvg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0PCPv59VhJJXHNOXATHCEsqlDNQ0CyIoip4uQ0MphUAIhAN/yHnA0wa03lJq7LKp3WK0yNcgm23SqdQBUtL4+uCGL"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}]},"1.1.1":{"name":"a11y-focus-scope","version":"1.1.1","description":"Accessibility util for scoping focus to an element.","main":"index.js","scripts":{"test":"karma start"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","dependencies":{"focusin":"^1.0.0","tabbable":"^1.0.0"},"devDependencies":{"chai":"^3.4.0","karma":"^0.13.15","karma-browserify":"^4.4.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","mocha":"^2.3.3"},"gitHead":"ad268d6e6317b864641d6132a7c424d87feda1b0","_id":"a11y-focus-scope@1.1.1","_shasum":"2e1b6acce0d8e19c505974d7de7be7057a71ccab","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"2e1b6acce0d8e19c505974d7de7be7057a71ccab","tarball":"https://registry.npmjs.org/a11y-focus-scope/-/a11y-focus-scope-1.1.1.tgz","integrity":"sha512-WNYWTzli/Q8rTeJXjvlnUNiUbrfuJIc/50fSZvddSOrbjKT4HdiJjQyI+V44zSlVSlb7UxhG5Vpgu5k9Yl88EQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHw5v8Kq/JZEyZTnPEvpcMwG99q+GFCxzt8wziIhlAI2AiAY3XbYyWztE913+EdlLcQn8IlFEte9Z0UWl06u6X1kQg=="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}]},"1.1.2":{"name":"a11y-focus-scope","version":"1.1.2","description":"Accessibility util for scoping focus to an element.","main":"index.js","scripts":{"test":"karma start"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","dependencies":{"focusin":"^2.0.0","tabbable":"^1.0.0"},"devDependencies":{"chai":"^3.4.0","karma":"^0.13.15","karma-browserify":"^4.4.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","mocha":"^2.3.3"},"gitHead":"355f211d30863d779f921d70f5abbe2e20d912ae","_id":"a11y-focus-scope@1.1.2","_shasum":"0d7f2a8718c3c7d75e484d6916a50399a2c16ca5","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"0d7f2a8718c3c7d75e484d6916a50399a2c16ca5","tarball":"https://registry.npmjs.org/a11y-focus-scope/-/a11y-focus-scope-1.1.2.tgz","integrity":"sha512-yimQFQB4quMkGD2xWOVGwb2BmQmRZQaKxKqajd84EzCF5hL0da+em8+0bbf4B96/pXgSwVPCEsADzHNHBLml+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDvcmPillkVR0uLCzoqX3Cjrw2l1JzJMw7DraF7Zn+hBQIhAIlNxGwf+5h60qJumOAy+PpS0BUjJmN4yeTH1F9f8+G6"}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}]},"1.1.3":{"name":"a11y-focus-scope","version":"1.1.3","description":"Accessibility util for scoping focus to an element.","main":"index.js","scripts":{"test":"karma start"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","dependencies":{"focusin":"^2.0.0","tabbable":"^1.0.0"},"devDependencies":{"chai":"^3.4.0","karma":"^0.13.15","karma-browserify":"^4.4.0","karma-mocha":"^0.2.0","karma-mocha-reporter":"^1.1.1","mocha":"^2.3.3"},"gitHead":"2b0031154fb2e4897cfe998f0a11065ab1a16103","_id":"a11y-focus-scope@1.1.3","_shasum":"f795384d4dd40ccec1c4a160ef4d13371d015ae8","_from":".","_npmVersion":"3.3.10","_nodeVersion":"5.0.0","_npmUser":{"name":"thejameskyle","email":"me@thejameskyle.com"},"dist":{"shasum":"f795384d4dd40ccec1c4a160ef4d13371d015ae8","tarball":"https://registry.npmjs.org/a11y-focus-scope/-/a11y-focus-scope-1.1.3.tgz","integrity":"sha512-eamxTyss68gc75yg40RUe25Wr4R8J3h55fizjgG5fbTlFIWve3mcUMBask3CnxFTvnd7w+3x0UrgAq35BCWb8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAr0Aq6MMT/uIllaXsFUoH7FfelQAW6jaepUypWkT1SfAiEAwnsKzBFEM8e1PhM50x9kHZUahRG/VgNYSXieXoaJcUs="}]},"maintainers":[{"name":"thejameskyle","email":"me@thejameskyle.com"}]}},"readme":"# a11y-focus-scope\n\n> Accessibility util for scoping focus to an element.\n\n## Installation\n\n```sh\n$ npm install --save a11y-focus-scope\n```\n\n## Usage\n\n```js\nimport {scopeFocus, unscopeFocus} from 'a11y-focus-scope';\n\ndocument.body.innerHTML = `\n  <button id=\"outer-button\">Outer Button</button>\n\n  <div id=\"container\">\n    <button id=\"inner-button\">Inner Button</button>\n  </div>\n`;\n\nvar container = document.getElementById('container');\nvar innerButton = document.getElementById('inner-button');\nvar outerButton = document.getElementById('outer-button');\n\nscopeFocus(container);\n// document.activeElement === container;\n\ninnerButton.focus();\n// document.activeElement === innerButton;\n\nouterButton.focus();\n// document.activeElement === container;\n\nunscopeFocus();\nouterButton.focus();\n// document.activeElement === outerButton;\n```\n","maintainers":[{"email":"wyuenho@gmail.com","name":"wyuenho"},{"email":"mark@cloudflare.com","name":"marksteyn"},{"email":"truongmt@gmail.com","name":"triggity"},{"email":"terinjokes@gmail.com","name":"terinjokes"},{"email":"john.wineman@gmail.com","name":"jwineman"},{"email":"andrew@akenn.org","name":"akenn"},{"email":"toekneestuck@gmail.com","name":"toekneestuck"},{"email":"me@thejameskyle.com","name":"thejameskyle"}],"time":{"modified":"2022-06-13T02:17:20.423Z","created":"2015-11-04T06:51:37.949Z","1.0.0":"2015-11-04T06:51:37.949Z","1.1.0":"2015-11-04T07:43:31.340Z","1.1.1":"2015-11-09T18:26:13.453Z","1.1.2":"2015-11-09T20:53:00.149Z","1.1.3":"2015-11-09T20:55:22.025Z"},"keywords":["a11y","accessibility","focus","focusin","store","restore","aria"],"author":{"name":"James Kyle","email":"me@thejameskyle.com"},"license":"ISC","readmeFilename":"README.md"}