{"versions":{"1.2.0":{"name":"fscreen","version":"1.2.0","description":"Vendor agnostic access to the fullscreen spec api","main":"dist/fscreen.cjs.js","module":"dist/fscreen.esm.js","sideEffects":false,"scripts":{"dev":"npm link && npm run watch","build":"rollpkg build","watch":"rollpkg watch","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/rafgraph/fscreen.git"},"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"rafael@rafgraph.dev"},"license":"MIT","bugs":{"url":"https://github.com/rafgraph/fscreen/issues"},"homepage":"https://github.com/rafgraph/fscreen#readme","devDependencies":{"rollpkg":"^0.4.2"},"gitHead":"dfc86a1844160d68eeacda75f576b19792dccca6","_id":"fscreen@1.2.0","_nodeVersion":"14.15.4","_npmVersion":"7.5.3","dist":{"shasum":"1a8c88e06bc16a07b473ad96196fb06d6657f59e","size":5022,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fscreen/-/fscreen-1.2.0.tgz"},"_npmUser":{"name":"anonymous","email":"rafael@rafgraph.dev"},"directories":{},"maintainers":[{"name":"anonymous","email":"rafael@rafgraph.dev"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen_1.2.0_1613078304227_0.03566852133096643"},"_hasShrinkwrap":false,"publish_time":1613078304368,"_cnpm_publish_time":1613078304368,"contributors":[]},"1.1.0":{"name":"fscreen","version":"1.1.0","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafgraph/fscreen.git"},"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"rafael@rafgraph.dev"},"license":"MIT","bugs":{"url":"https://github.com/rafgraph/fscreen/issues"},"homepage":"https://github.com/rafgraph/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"d1a5ff3b49729b9ba5495ee2592e56f3cbdb24ff","_id":"fscreen@1.1.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"shasum":"80f432f24dc915ba0be0f5f6a7d60ca12ecbab5c","size":3098,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fscreen/-/fscreen-1.1.0.tgz"},"maintainers":[{"name":"anonymous","email":"rafael@rafgraph.dev"}],"_npmUser":{"name":"anonymous","email":"rafael@rafgraph.dev"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen_1.1.0_1599861617127_0.9921425958374845"},"_hasShrinkwrap":false,"publish_time":1599861617254,"_cnpm_publish_time":1599861617254,"contributors":[]},"1.0.2":{"name":"fscreen","version":"1.0.2","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"3254a19afa5e6d63ef5204c4b0dfe489bb92999b","_id":"fscreen@1.0.2","_shasum":"c4c51d96d819d75a19d728e0df445f9be9bb984f","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.1","_npmUser":{"name":"anonymous","email":"code@rafrex.com"},"dist":{"shasum":"c4c51d96d819d75a19d728e0df445f9be9bb984f","size":2848,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fscreen/-/fscreen-1.0.2.tgz"},"maintainers":[{"name":"anonymous","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen-1.0.2.tgz_1502754283986_0.32351866993121803"},"directories":{},"publish_time":1502754284891,"_cnpm_publish_time":1502754284891,"_hasShrinkwrap":false,"contributors":[]},"1.0.1":{"name":"fscreen","version":"1.0.1","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build","dev":"npm link && babel src -d lib --watch --presets=env"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"06853cd4f29a8b6c310e416a3e074153bc5c88c3","_id":"fscreen@1.0.1","_npmVersion":"5.0.2","_nodeVersion":"6.9.5","_npmUser":{"name":"anonymous","email":"code@rafrex.com"},"dist":{"shasum":"7d5c1c02017d9473ccaa86381d4a096502c36429","size":2867,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fscreen/-/fscreen-1.0.1.tgz"},"maintainers":[{"name":"anonymous","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fscreen-1.0.1.tgz_1496609162166_0.2444781893864274"},"directories":{},"publish_time":1496609163000,"_hasShrinkwrap":false,"_cnpm_publish_time":1496609163000,"contributors":[]},"1.0.0":{"name":"fscreen","version":"1.0.0","description":"fullscreen spec api in a vendor agnostic wrapper","main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src -d lib --presets=env","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/rafrex/fscreen.git"},"files":["lib","src"],"keywords":["fullscreen","browser"],"author":{"name":"Rafael Pedicini","email":"code@rafrex.com"},"license":"MIT","bugs":{"url":"https://github.com/rafrex/fscreen/issues"},"homepage":"https://github.com/rafrex/fscreen#readme","devDependencies":{"babel-cli":"^6.24.1","babel-preset-env":"^1.4.0"},"gitHead":"6a2f788c66709d4f3396efa4d0b27faf46582956","_id":"fscreen@1.0.0","_shasum":"212322ee2067c018e9f57b5e16800bf05bba1ccc","_from":".","_npmVersion":"4.2.0","_nodeVersion":"6.9.5","_npmUser":{"name":"anonymous","email":"code@rafrex.com"},"dist":{"shasum":"212322ee2067c018e9f57b5e16800bf05bba1ccc","size":2249,"noattachment":false,"tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/fscreen/-/fscreen-1.0.0.tgz"},"maintainers":[{"name":"anonymous","email":"code@rafrex.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/fscreen-1.0.0.tgz_1493489927295_0.4876581886783242"},"directories":{},"publish_time":1493489929076,"_cnpm_publish_time":1493489929076,"_hasShrinkwrap":false,"contributors":[]}},"dist-tags":{"latest":"1.2.0"},"name":"fscreen","time":{"modified":"2023-07-28T08:26:01.675Z","created":"2022-01-27T02:30:47.685Z","1.2.0":"2021-02-11T21:18:24.368Z","1.1.0":"2020-09-11T22:00:17.254Z","1.0.2":"2017-08-14T23:44:44.891Z","1.0.1":"2017-06-04T20:46:03.000Z","1.0.0":"2017-04-29T18:18:49.076Z"},"readme":"# Fscreen - Fullscreen API\n\n[![npm](https://img.shields.io/npm/dm/fscreen?label=npm)](https://www.npmjs.com/package/fscreen)\n\n[Demo website](https://fscreen.rafgraph.dev) (demo code on the [`gh-pages` branch](https://github.com/rafgraph/fscreen/tree/gh-pages))\n\n---\n\nVendor agnostic access to the [Fullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API). Build with the Fullscreen API as intended without worrying about vendor prefixes.\n\n```shell\n$ npm install --save fscreen\n```\n\n```javascript\nimport fscreen from 'fscreen';\n\nfscreen.fullscreenEnabled === true / false;\n// boolean to tell if fullscreen mode is supported\n// replacement for: document.fullscreenEnabled\n// mapped to: document.vendorMappedFullscreenEnabled\n\nfscreen.fullscreenElement === null / undefined / DOM Element;\n// null if not in fullscreen mode, or the DOM element that's in fullscreen mode\n// (if fullscreen is not supported by the device it will be undefined)\n// replacement for: document.fullscreenElement\n// mapped to: document.vendorMappedFullsceenElement\n// note that fscreen.fullscreenElement uses a getter to retrieve the element\n// each time the property is accessed.\n\n\nfscreen.requestFullscreen(element);\n// replacement for: element.requestFullscreen()\n// mapped to: element.vendorMappedRequestFullscreen()\n\nfscreen.requestFullscreenFunction(element);\n// replacement for: element.requestFullscreen - without calling the function\n// mapped to: element.vendorMappedRequestFullscreen\n\nfscreen.exitFullscreen();\n// replacement for: document.exitFullscreen()\n// mapped to: document.vendorMappedExitFullscreen()\n// note that fscreen.exitFullscreen is mapped to\n// document.vendorMappedExitFullscreen - without calling the function\n\n\nfscreen.onfullscreenchange = handler;\n// replacement for: document.onfullscreenchange = handler\n// mapped to: document.vendorMappedOnfullscreenchange = handler\n\nfscreen.addEventListener('fullscreenchange', handler, options);\n// replacement for: document.addEventListener('fullscreenchange', handler, options)\n// mapped to: document.addEventListener('vendorMappedFullscreenchange', handler, options)\n\nfscreen.removeEventListener('fullscreenchange', handler, options);\n// replacement for: document.removeEventListener('fullscreenchange', handler, options)\n// mapped to: document.removeEventListener('vendorMappedFullscreenchange', handler, options)\n\n\nfscreen.onfullscreenerror = handler;\n// replacement for: document.onfullscreenerror = handler\n// mapped to: document.vendorMappedOnfullscreenerror = handler\n\nfscreen.addEventListener('fullscreenerror', handler, options);\n// replacement for: document.addEventListener('fullscreenerror', handler, options)\n// mapped to: document.addEventListener('vendorMappedFullscreenerror', handler, options)\n\nfscreen.removeEventListener('fullscreenerror', handler, options);\n// replacement for: document.removeEventListener('fullscreenerror', handler, options)\n// mapped to: document.removeEventListener('vendorMappedFullscreenerror', handler, options)\n\n\nfscreen.fullscreenPseudoClass;\n// returns: the vendorMapped fullscreen Pseudo Class\n// i.e. :fullscreen, :-webkit-full-screen, :-moz-full-screen, :-ms-fullscreen\n// Can be used to find any elements that are fullscreen using the vendorMapped Pseudo Class \n// e.g. document.querySelectorAll(fscreen.fullscreenPseudoClass).forEach(...);\n```\n\n## Usage\n\nUse it just like the spec API.\n\n```javascript\nif (fscreen.fullscreenEnabled) {\n fscreen.addEventListener('fullscreenchange', handler, false);\n fscreen.requestFullscreen(element);\n}\n\nfunction handler() {\n if (fscreen.fullscreenElement !== null) {\n   console.log('Entered fullscreen mode');\n } else {\n   console.log('Exited fullscreen mode');\n }\n}\n```","users":{}}