{"_id":"@charliewilco/gluejar","_rev":"1-62e12ff162bfb933ebe6fcab6dd6fb3e","name":"@charliewilco/gluejar","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@charliewilco/gluejar","version":"1.0.0","description":"Paste images from your clipboard","main":"dist/index.js","types":"dist/index.d.ts","repository":{"type":"git","url":"https://github.com/charliewilco/react-gluejar.git"},"author":{"name":"Charles ⚡","email":"charlespeters42@gmail.com"},"license":"MIT","devDependencies":{"@types/react":"^16.4.7","husky":"^0.14.3","lint-staged":"^7.1.0","parcel":"^1.9.7","prettier":"^1.14.0","react":"^16.4.1","react-dom":"^16.4.1","serve":"^9.4.0","typescript":"^3.0.1"},"peerDependencies":{"react":"^16.4.1","react-dom":"^16.4.1"},"scripts":{"precommit":"lint-staged","prepublish":"yarn build","example":"parcel example/index.html","build":"rm -rf dist && tsc","now-start":"serve -s dist","now-build":"parcel build ./example/index.html"},"lint-staged":{"*.{tsx,ts,json,md}":["prettier --write","git add"]},"prettier":{"printWidth":95,"singleQuote":true,"semi":false,"bracketSpacing":true,"jsxBracketSameLine":true},"now":{"alias":"react-gluejar.now.sh","files":["src","example"]},"licenseText":"The MIT License\n\nCopyright (c) 2018\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@charliewilco/gluejar@1.0.0","dist":{"shasum":"f228e8130d4e23401c119f32e27e5353c544c58e","integrity":"sha512-tVvd/7VPK/3bzqYRxyrbZpG25Nf5jnJs5fUTEp00FKDa4Tk3nucju4pbmdX+h4TsZ9bJZc00iPCdoOiv6pOPOg==","tarball":"https://registry.npmjs.org/@charliewilco/gluejar/-/gluejar-1.0.0.tgz","fileCount":13,"unpackedSize":9063868,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdot0TCRA9TVsSAnZWagAA+B4P/ijBHpQnHew1ZPYk0EcR\nQ7jYZEg/vlYUHNGWtWYfm5YaRaSGc1Ta6EGlrdr79trZkDby7BmfcLjsprwu\njkK8yKoycpGJIxCE8/3xXXA6/VZ0ld2tRjJvcovuPhF/ji3F3Kyj7cB2UbHL\n3hWawK1ldXNwEdBf5/LtiPmFu/89K/kBUilsX85sH2JEHmjYCTGAs54eAFcX\nAF+N6xrCCTeU9JRth8WraBIQryPzYC3Nbwv8+w0HnyQb2MXdQQBuFjgnqlj2\nQClyu62nVwoZ1wa2WIi8orM+gjUhVnQ/20YZ6JcdvcdDY0Jv+DV79icOY+AW\nFayC8M0eY1hwu/MGKCAuV6w++scvR1Wq+PscD2KgK1G5HVy5d11DSIcTbtvB\nSYd+9Rf87whAyDHbcBCR+l8OA8OUu/V/8JQGjty94N7mF5CWEDYmoUIMn489\nwcAHGI4bXD2cyBHfpvf5qIdCuoEiod0FtaG06VsGxWjTZK+Kyz/Qtz8i7rE2\nYe0a1QdeMuUqCs95zzYJkc2KmGwB4fLOk0qyD4+ixObZOePs+9hR09O26r9D\nnpv54jRQrji+KeMoFfhlMVJ/kPaTxuHj0AFMeTX2WI2XdPMEVLmvkVgHKJmg\nsaQUpwPDFCdosB42Nk8hpsakI9S7PsxHMwsgrYnVnOorZpWcZzdpcJ5RmErV\nE/VL\r\n=oFL/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBXMw24ob3bS9gxrTIMm9LPp8orZ1dh6itn2MhBePyYFAiEAxGLD5Cjdvq0dJWpcXv5xX8IuEr0V9hpzb36VZ72tCWE="}]},"maintainers":[{"name":"charlespeters","email":"charlespeters42@gmail.com"}],"_npmUser":{"name":"charlespeters","email":"charlespeters42@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gluejar_1.0.0_1570954514869_0.4977790870784655"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-13T08:15:14.808Z","1.0.0":"2019-10-13T08:15:15.145Z","modified":"2022-04-04T22:32:34.661Z"},"maintainers":[{"name":"charlespeters","email":"charlespeters42@gmail.com"}],"description":"Paste images from your clipboard","repository":{"type":"git","url":"https://github.com/charliewilco/react-gluejar.git"},"author":{"name":"Charles ⚡","email":"charlespeters42@gmail.com"},"license":"MIT","readme":"# React Gluejar\n\n> Collects the images you paste from your clipboard.\n\n![Demo using `react-gluejar`](/.github/gluejar.gif)\n\n## Installation\n\n```sh\nyarn add @charliewilco/gluejar\n```\n\n## Example\n\n```js\nimport React, { Component } from 'react'\nimport { Gluejar } from '@charliewilco/gluejar'\n\nclass App extends Component {\n  render() {\n    return (\n      <Gluejar onPaste={files => console.log(files)} onError={err => console.error(err)}>\n        {({ images }) =>\n          images.length > 0 &&\n          images.map(image => <img src={image} key={image} alt={`Pasted: ${image}`} />)\n        }\n      </Gluejar>\n    )\n  }\n}\n```\n\nRun this example locally by [cloning the repo](https://help.github.com/articles/cloning-a-repository/) and running `yarn example` in the root directory. You can visit the example [here](https://react-gluejar.now.sh/).\n\n## Usage\n\n### Available Props\n\n| Prop            | Type            | Description                                      | Default                                                 |\n| --------------- | --------------- | ------------------------------------------------ | ------------------------------------------------------- |\n| `onPaste`       | `Function`      | returns Array of image Blobs, responds to events | `() => null`                                            |\n| `onError`       | `Function`      | returns error messages                           | `() => null`                                            |\n| `children`      | `Function`      | returns Array of history of pasted images        | N/A                                                     |\n| `acceptedFiles` | `Array<String>` | Array of accepted files to check for             | `['image/gif', 'image/png', 'image/jpeg', 'image/bmp']` |\n| `container`     | `Element`       | Element object to listen on                      | `window`                                                |\n\n### Browser Support\n\n| Browser | Support |\n| ------- | ------- |\n| Chrome  | 👍      |\n| IE      | 👎      |\n| Firefox | 🙄      |\n| Edge    | 👍      |\n| Safari  | 👍      |\n| Opera   | 👍      |\n\n🙄 = Look there's something going on in Firefox for a while. You can read the tracking issue [here](https://bugzilla.mozilla.org/show_bug.cgi?id=906420), but I don't insight into their timeline or priority.\n","readmeFilename":"Readme.md"}