{"_id":"@azinasili/wingman","_rev":"2-b5c1e570eb57c01df3b47faa8d28e2c9","name":"@azinasili/wingman","dist-tags":{"latest":"1.1.2"},"versions":{"1.1.0":{"name":"@azinasili/wingman","version":"1.1.0","description":"Wingman, the popup window manager.","homepage":"https://github.com/azinasili/wingman","author":{"name":"Azin Asili","email":"hello@azinasili.com","url":"azinasili.com"},"license":"MIT","main":"dist/wingman.js","module":"dist/wingman.esm.js","unpkg":"dist/wingman.js","keywords":["wingman","popup","window","new window","manager"],"repository":{"type":"git","url":"git+https://github.com/azinasili/wingman.git"},"bugs":{"url":"https://github.com/azinasili/wingman/issues"},"scripts":{"build":"rollup --config rollup.config.js","test":"jest tests/**/*.test.js --coverage","lint":"eslint \"{src,tests}/**/*.js\"","watch":"npm-watch","prepublishOnly":"npm run build"},"watch":{"test":"{src,test}/**/*.js","build":"src/**/*.js"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","eslint":"^4.19.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.10.0","jest":"^22.4.3","npm-watch":"^0.3.0","rollup":"^0.57.1","rollup-plugin-babel":"^3.0.3","rollup-plugin-eslint":"^4.0.0","rollup-plugin-uglify":"^3.0.0"},"directories":{"test":"tests"},"gitHead":"4da9610b3bb1850e9880056e1d6a7f5f451b0782","_id":"@azinasili/wingman@1.1.0","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"azinasili","email":"hello@azinasili.com"},"dist":{"integrity":"sha512-AdnrRoOdK510MozVUQGJCnQ4SAecdd7BAW9LQlH9NXHW0lCQrmO3ikpooyFTHb+ddSgU96+WeGwmq7lm/lk7DA==","shasum":"4a095079cab315440a62aac440471ac7f6145b1f","tarball":"https://registry.npmjs.org/@azinasili/wingman/-/wingman-1.1.0.tgz","fileCount":10,"unpackedSize":22035,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbUMnOCRA9TVsSAnZWagAArhsP/1pcSgDP91CU2hvJB8fb\nLBNrXz/OAlfKCBbyhP3y0W0JFYpvrLI7zMlIgJTBUrh1U9W/oFdSC6vhD2Fg\ndAL3tZWElfEH2TAY12gprB97YovEwyJ6k8Q8bR8kePAQQenk+TscVOJoOPtj\nZfaeJG5KKJRG7sYgEEetnCWkEqbBQ32TtLvOf7KXB5uirxAj90d+Wqx1F2nk\nHgJmzFVLD9iV8IU8TGUtcF8AHD9ABBtia7+3BZsq3bX867NilxVYRfDtgW3b\nZ7Z4UP5HWbsJQIwuBu058vrMRFIxUhOnJhrwtT/kA+MqyO3fQBPOG5dBVTW9\nh0Da7edxl3aycGMPDqVBaE8Didu/l5rm2isYbrDvfQ/46USDFqRvsv21vP0Z\nY7vL3cXm/7vH5QGHyelb36CM3eFUAwrEIQY03htjJQ0yFIYutvJ7MI2kxk0o\nR1ral9NEjBvq6JCdz9CdZiS+tSoXGJwPCpFqhA+sPj5vInwn3XkV/bqDTBlo\nJh6f1Yy6yKCjqj+NvbYPgifJ3ULfRxzG4Gj/2/i1Voaoe2nqdaS56SJMpzdi\n1uBljIkgdOcxlu+Rfbd8jYVJ/9lnWV8HRGrL7WXCedEMNKAXN5Yqd3GCX1xE\nm9xpfFLtKbJQzIRCvv02C8wOGmrx1VH7lcbjGdO1Rh276+FUaq8tgi5VKYsa\n/SrX\r\n=xtM5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7UU3fQpQpYUiEt0ELZ8LC3Q81IF3K1eiN5PMETssBEwIhAMNaEqFe0R3DY+mVlOdPr0CS6qezx1hn1oLq1D0drs9R"}]},"maintainers":[{"name":"azinasili","email":"hello@azinasili.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wingman_1.1.0_1532021198038_0.26447128359776406"},"_hasShrinkwrap":false},"1.1.2":{"name":"@azinasili/wingman","version":"1.1.2","description":"Wingman, the popup window manager.","homepage":"https://github.com/azinasili/wingman","author":{"name":"Azin Asili","email":"hello@azinasili.com","url":"azinasili.com"},"license":"MIT","main":"dist/wingman.js","module":"dist/wingman.esm.js","unpkg":"dist/wingman.js","keywords":["wingman","popup","window","new window","manager"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/azinasili/wingman.git"},"bugs":{"url":"https://github.com/azinasili/wingman/issues"},"scripts":{"build":"rollup --config rollup.config.js","test":"jest tests/**/*.test.js --coverage","lint":"eslint \"{src,tests}/**/*.js\"","watch":"npm-watch","prepublishOnly":"npm run build"},"watch":{"test":"{src,test}/**/*.js","build":"src/**/*.js"},"devDependencies":{"babel-core":"^6.26.0","babel-jest":"^22.4.3","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-assign":"^6.22.0","babel-preset-env":"^1.6.1","eslint":"^4.19.1","eslint-config-airbnb-base":"^12.1.0","eslint-plugin-import":"^2.10.0","jest":"^22.4.3","npm-watch":"^0.3.0","rollup":"^0.57.1","rollup-plugin-babel":"^3.0.3","rollup-plugin-eslint":"^4.0.0","rollup-plugin-uglify":"^3.0.0"},"directories":{"test":"tests"},"gitHead":"8840ded4ca7c44d46632ef91a11617e69c1372da","_id":"@azinasili/wingman@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"azinasili","email":"hello@azinasili.com"},"dist":{"integrity":"sha512-oG4sUKiGR/q/pjHYsPHtADATZA4ZmaMIYe9D3m2Z4/ZBiUeUuw6SoTXCfJBEPYjR8nWG9aqKBBba2vbT5uoEnQ==","shasum":"e372471ebd4b2a7c389ca79a8075af60537d68d9","tarball":"https://registry.npmjs.org/@azinasili/wingman/-/wingman-1.1.2.tgz","fileCount":10,"unpackedSize":24916,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbbTCZCRA9TVsSAnZWagAAVq0QAKO5YB+rJBtwRRePxVsd\nfSo4uyV6N/HloeHgRNO/cUHuL42lb4kp9KlFJGHPCofP+SptZJOszvPu7xWH\nUIiUUyuZzMwk4Xjn7xECvNeb9rrVz1US/lbsux70I/DwlDyQNZWmepnxUbnh\n9r8g+nWvHYYLKg4+2Mlamz5tDsRoJpzXzpl9gUkt7Hi2VqlSupqhFfmFZpCB\nrtBwL72oOW9f+KUtuQzFWR0953RyoHKuRldq9+NJSEbREooPu+kn/RQGsR02\nGTW3aTjXpuYN8apCy4+lWW1pAJOzcepn4Jeb59CceoUKNmHzMWJcoBEH/8A4\nZwyyFyf1oXfNHHT1Ge3iG1UOddKN7OZrxTblg1jG9phWH5o1cngHhzEljbS8\n+PIZRHoHvXgGk/vpHbGUgEEXGF0ddtScq+g0hT2NgBFond1XtPK/97WU5RKD\nbn/uHdGcV+NX9xCcfe6Yu8w97srRfcAex1lQJfBQdqnnvm2pc3hMjRM6CoZE\nqgsXWCzl/8mN7sYwH7gaW0Q8/5wnOUd+ovKyQUOI5vWBslRkESp/cCU00GJo\n+HXPXAOUc/MTajnnluOf0nU0zmUkEbC3z/s6MlMRD2J5y3qwnzzLdQYBamWU\n6RJUcBOuhmcYhk0RWN1BVLB7TWGT2kH3TGruA0R9r99G9Z1DpcsRufIOBWw4\nq0Ju\r\n=zOBI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCVmJE1n92E7vTxXErG9534jzS0lFuIGOoVh11KvJv3wQIhAJIA0eHXm16Uf7p/r5H4RRqHmvCLGUQK2VWbpCamUFvl"}]},"maintainers":[{"name":"azinasili","email":"hello@azinasili.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/wingman_1.1.2_1533882520960_0.24263784568222335"},"_hasShrinkwrap":false}},"time":{"created":"2018-07-19T17:26:37.774Z","1.1.0":"2018-07-19T17:26:38.093Z","modified":"2022-04-04T17:16:28.525Z","1.1.2":"2018-08-10T06:28:41.070Z"},"maintainers":[{"name":"azinasili","email":"hello@azinasili.com"}],"description":"Wingman, the popup window manager.","homepage":"https://github.com/azinasili/wingman","keywords":["wingman","popup","window","new window","manager"],"repository":{"type":"git","url":"git+https://github.com/azinasili/wingman.git"},"author":{"name":"Azin Asili","email":"hello@azinasili.com","url":"azinasili.com"},"bugs":{"url":"https://github.com/azinasili/wingman/issues"},"license":"MIT","readme":"# Wingman\nWingman, the popup window manager.\n\n## Installation\nWith [NPM](https://www.npmjs.com/package/@azinasili/wingman):\n\n```bash\nnpm install @azinasili/wingman --save\n```\n\nOr include Wingman directly:\n\n```html\n<script src=\"/path/to/wingman.js\"></script>\n```\n\n## Usage\nImport Wingman and configure your component (required options shown).\n\n```javascript\n// Import Wingman when using a bundler\nimport Wingman from 'wingman';\n\n// Create a new instance of Wingman\nconst Popup = new Wingman({\n  url: 'https://google.com',\n  name: 'Google',\n});\n\n// Open instance of Wingman\nPopup.open();\n```\n\n### Options object\n| Property                       | Type     | Default             | Description |\n|:------------------------------ |:-------- |:------------------- |:----------- |\n| url                            | String   | null                | Url for popup window |\n| name                           | String   | null                | Give popup window a name |\n| height                         | Number   | 535                 | Height of popup window |\n| width                          | Number   | 450                 | Width of popup window |\n| eventBeforeOpen                | String   | wingman:beforeOpen  | Name of event to fire before popup window opens |\n| eventBeforeClose               | String   | wingman:beforeClose | Name of event to fire before popup window closes |\n| eventAfterOpen                 | String   | wingman:afterOpen   | Name of event to fire after popup window opens |\n| eventAfterClose                | String   | wingman:afterClose  | Name of event to fire after popup window closes |\n| beforeOpen                     | Function | null                | Function to run before popup window opens |\n| beforeClose                    | Function | null                | Function to run before popup window closes |\n| afterOpen                      | Function | null                | Function to run after popup window opens |\n| afterClose                     | Function | null                | Function to run after popup window closes |\n| windowToolbars.menubar         | Boolean  | false               | The new secondary window renders the menubar |\n| windowToolbars.toolbar         | Boolean  | false               | The new secondary window renders the Navigation Toolbar |\n| windowToolbars.location        | Boolean  | true                | The new secondary window renders the Location bar |\n| windowToolbars.personalbar     | Boolean  | false               | The new secondary window renders the Personal Toolbar |\n| windowToolbars.status          | Boolean  | true                | The new secondary window has a status bar |\n| windowFeatures.attention       | Boolean  | false               | The window is able to open even if another application is already in the foreground |\n| windowFeatures.dependent       | Boolean  | false               | The new window is said to be dependent of its parent window |\n| windowFeatures.minimizable     | Boolean  | false               | This setting can only apply to dialog windows |\n| windowFeatures.fullscreen      | Boolean  | false               | Fullscreens the new window |\n| windowFeatures.noopener        | Boolean  | false               | The newly-opened window will not have access back to the originating window |\n| windowFeatures.resizable       | Boolean  | true                | The new secondary window will be resizable |\n| windowFeatures.scrollbars      | Boolean  | true                | The new secondary window will show horizontal and/or vertical scrollbar(s) if the document doesn't fit into the window's viewport |\n| windowPrivileges.chrome        | Boolean  | false               | The page is loaded as window's only content, without any of the browser's interface elements |\n| windowPrivileges.dialog        | Boolean  | false               | The dialog feature removes all icons from the window's titlebar |\n| windowPrivileges.modal         | Boolean  | false               | The new window is said to be modal |\n| windowPrivileges.titlebar      | Boolean  | false               | Thew new secondary window will have a titlebar |\n| windowPrivileges.alwaysRaised  | Boolean  | false               | The new window will always be displayed on top of other browser windows, regardless of whether it is active or not |\n| windowPrivileges.alwaysLowered | Boolean  | true                | The new created window floats below, under its own parent when the parent window is not minimized |\n| windowPrivileges.close         | Boolean  | false               | This feature removes the system close command icon and system close menu item |\n\n\n\n### Methods\n| Name    | Description                     |\n|:------- |:------------------------------- |\n| open    | Creates new instance of Wingman |\n| destroy | Kills the instance of Wingman   |\n\n## Todo\n- [ ] Add tests\n\n## License\nMIT License\n","readmeFilename":"README.md"}