{"_id":"@buooy/strapi-plugin-preview-content","_rev":"2-d265d46626063e4a4fecd331c8e89326","name":"@buooy/strapi-plugin-preview-content","dist-tags":{"latest":"0.2.76"},"versions":{"0.2.75":{"name":"@buooy/strapi-plugin-preview-content","version":"0.2.75","description":"Preview your content with custom URL.","main":"admin/main/index.js","strapi":{"name":"Preview Content","icon":"link","description":"Preview your content with custom URL."},"repository":{"type":"git","url":"git+https://github.com/danestves/strapi-plugin-preview-content.git"},"scripts":{"build":"tsc","prepublishOnly":"yarn build"},"dependencies":{},"author":{"name":"Daniel Esteves","email":"estevesd8@gmail.com","url":"https://danestves.com"},"maintainers":[{"name":"buooy","email":"aaron.lee@buooy.com"}],"engines":{"node":">=10.16.0 <=14.x.x","npm":">=6.0.0"},"license":"MIT","devDependencies":{"@types/koa":"^2.11.6","@types/lodash":"^4.14.165","@types/node":"^14.14.14","typescript":"^4.1.3"},"gitHead":"a7c2335ddc4c14e4eec0584950006f491ef65512","bugs":{"url":"https://github.com/danestves/strapi-plugin-preview-content/issues"},"homepage":"https://github.com/danestves/strapi-plugin-preview-content#readme","_id":"@buooy/strapi-plugin-preview-content@0.2.75","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-FFkzdnW6Qi1GD3Zt/1V/uiMBg6S/0eHQffQNreC9WvmJiOoZfpZzPf7ZndTMLmL5sbA/8+WUa+HIcwrTPungQg==","shasum":"5ab42b1f6f8faceb9f43d6189ec8b3b23b44f9bd","tarball":"https://registry.npmjs.org/@buooy/strapi-plugin-preview-content/-/strapi-plugin-preview-content-0.2.75.tgz","fileCount":127,"unpackedSize":152963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHWmYCRA9TVsSAnZWagAA32UP/A+IeZOpNWL6AyLNDqQW\nVfzyPxJyfIb1kE3EsDZ6GRoCVTDq9WR1yq2hgXgHiiEn6j41WUMDAY++vcKd\nJi+OY81LKZkJyhEN2aLH2s6na6ztDdmC6m1PR/kL43jutDWOYoxfW2d03boA\nIg07XqebYauI9A3kVbAW27MW66j5k+8xS0fjWHIDpCcsnGzuoH3dscVMp18U\nLucvJsNQL/Ccc2aZw19HMppyCC9vguw0UW4UxGAWodMxEBay9Ve4aiMXhf2C\nMVXOhSyrTRZ2yep2cgcmdO2azMCAnOOTcPasjxBgu0m5CZb0/U6fMBek0Ob7\nFd4m+hNqCJHuSuMYt2TU98M3JpZkw2YReY0Ty17rap03XaRMaGBrH34T/djO\ngaEksevTzzNppE/nE/iXnWNxgLdKfAh0bgkRGihlYa2kzEkEcFbpnYJQE7Cb\nkXTvjms8PSbly3jbnLB0Dxvl+2TqKT1iMIlS0RhTC9SAtjhTX76X3NyJbDvi\n3R3+gHWMVyFsdeqEvtCDAgmhfWLhlWcGuS/SZ4G1kx+qkDhU9+my0nS8/VA8\nLl0Y44ygtXuNtCsqIgHkpYmsXIuikfK8MSWaG97Dgp6n3UrpZGF/0pS/NcKQ\nWF7SRYL+WhveYRv2mcwp3UWbJLciTAUETxwTc51sfGWdrp5BGvS+7iV4ImWu\nIPc1\r\n=+ZBL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyPUy2axachD3JLmyoLNa0peBHnCyf9gIsJBP8ZCDZHQIhAOoWMOkxEs8vZRrNKGJp4mEXTUM1F9tthnMx+gPhDrhQ"}]},"_npmUser":{"name":"buooy","email":"aaron.lee@buooy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-preview-content_0.2.75_1612540311631_0.5994072929319618"},"_hasShrinkwrap":false},"0.2.76":{"name":"@buooy/strapi-plugin-preview-content","version":"0.2.76","description":"Preview your content with custom URL.","main":"admin/main/index.js","strapi":{"name":"Preview Content","icon":"link","description":"Preview your content with custom URL."},"repository":{"type":"git","url":"git+https://github.com/buooy/strapi-plugin-preview-content.git"},"scripts":{"build":"tsc","prepublishOnly":"yarn build"},"dependencies":{},"author":{"name":"Daniel Esteves","email":"estevesd8@gmail.com","url":"https://danestves.com"},"maintainers":[{"name":"buooy","email":"aaron.lee@buooy.com"}],"engines":{"node":">=10.16.0 <=14.x.x","npm":">=6.0.0"},"license":"MIT","devDependencies":{"@types/koa":"^2.11.6","@types/lodash":"^4.14.165","@types/node":"^14.14.14","typescript":"^4.1.3"},"gitHead":"a7c2335ddc4c14e4eec0584950006f491ef65512","bugs":{"url":"https://github.com/buooy/strapi-plugin-preview-content/issues"},"homepage":"https://github.com/buooy/strapi-plugin-preview-content#readme","_id":"@buooy/strapi-plugin-preview-content@0.2.76","_nodeVersion":"14.15.4","_npmVersion":"6.14.10","dist":{"integrity":"sha512-1hAdRgpWYFKH121cHhLL7AwJFXB5O+CilhErjNfY++5v/qsUXU306DcNldLYN5ecB5C25KzjIom7El5TeO7SGA==","shasum":"861e360acd187345c2e7aed0b94d0c96c58658ad","tarball":"https://registry.npmjs.org/@buooy/strapi-plugin-preview-content/-/strapi-plugin-preview-content-0.2.76.tgz","fileCount":127,"unpackedSize":152959,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgHWxgCRA9TVsSAnZWagAABUIP/2kXEiFufebrS21AABG/\nILX/1NNq36v3+wnp3Ig0IniMfXdsOA76+Y5ZPX3b1GcX4upcSGMykaSERHJY\nesaYDVc9FVx+f049CdvaV/A/RPXzECDYbYDDO8OUYOc0vs2Ab6Jklo9cgXGi\necUp224saX+l65LAxgPLGJh0qOfP7oLYHiqCyWSuHK9iiaWTFUnJ8DGP3rdE\n29uwH8zkaaoZsUJBXDxs1wGVOIzUN92yqSvrU9PngsY9Z6dxU/Fywace6cpd\nzy20FC9zaWtuxdL6uN3YnnlEJ5tYhkapLXQ7bQmKiNgJTbtlQB/vfcFiG71Q\n0gyCJQTT20WW2v+LoAzkbU6zZb4IxEYThK25Uy3kQy67pXugVHPOkEtcnE5r\nF6a+ei2VHFe50gKbqeNuvXOeyNAqKvIiP9PGQpbCYim+j9oVahUz+mNos1yz\nGc60AbG0graE94XaqI1ESdDT1f1MFB3+ocgC2rrKoazDTmqQnoHze/XSTFPo\n7CNNzMI4Pin9jZXS4FeOIHXOGvDQlVCO6iB5eyJ8ximRsaOdTJs1UBlIKVWz\nFofpXODjZZH4Tj87jF97QPBTvsY+3z+qtuC+/9wMXYOeY9PQNeJi0+cYPRXK\nH+PHiRS0pDKLfGodZFhFRwJmdGIuErMxuKycyvitMF4EiiW5BlyfjzIMqs4S\nbyPe\r\n=U3Sz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHncKQ2gMoSxC0cxfcT3MBLu5H1AeTIUs2dgGda3zp9AIgC3H88NXq/eVl9J9eFrJCG7yXHEPl5z3fAs/tLEIKJPQ="}]},"_npmUser":{"name":"buooy","email":"aaron.lee@buooy.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/strapi-plugin-preview-content_0.2.76_1612541024463_0.12760304384396126"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-05T15:51:51.568Z","0.2.75":"2021-02-05T15:51:51.830Z","modified":"2022-04-04T21:06:31.541Z","0.2.76":"2021-02-05T16:03:44.617Z"},"maintainers":[{"name":"buooy","email":"aaron.lee@buooy.com"}],"description":"Preview your content with custom URL.","homepage":"https://github.com/buooy/strapi-plugin-preview-content#readme","repository":{"type":"git","url":"git+https://github.com/buooy/strapi-plugin-preview-content.git"},"author":{"name":"Daniel Esteves","email":"estevesd8@gmail.com","url":"https://danestves.com"},"bugs":{"url":"https://github.com/buooy/strapi-plugin-preview-content/issues"},"license":"MIT","readme":"## Strapi - Preview Content Plugin\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.org/package/strapi-plugin-preview-content\">\n    <img src=\"https://img.shields.io/npm/v/strapi-plugin-preview-content/latest.svg\" alt=\"NPM Version\" />\n  </a>\n  <a href=\"https://www.npmjs.org/package/strapi-plugin-preview-content\">\n    <img src=\"https://img.shields.io/npm/dm/strapi-plugin-preview-content.svg\" alt=\"Monthly download on NPM\" />\n  </a>\n</p>\n\nA plugin for [Strapi Headless CMS](https://github.com/strapi/strapi) that provides content preview to integrate with any frontend:\n\nThis is what the plugin looks like when editing content:\n\n<img src=\"https://github.com/danestves/strapi-plugin-preview-content/blob/main/public/assets/example1.png?raw=true\" alt=\"Example of buttons in edit Content Type\" />\n\nThis is what the plugin looks like when we are in list view:\n\n<img src=\"https://github.com/danestves/strapi-plugin-preview-content/blob/main/public/assets/example2.png?raw=true\" alt=\"Example of buttons in list view\" />\n\n### 🖐 Requirements\n\nComplete installation requirements are exact same as for Strapi itself and can be found in the documentation under <a href=\"https://strapi.io/documentation/v3.x/installation/cli.html#step-1-make-sure-requirements-are-met\">Installation Requirements</a>.\n\n**Supported Strapi versions**:\n\n- Strapi v3.4.x\n\n**We recommend always using the latest version of Strapi to start your new projects**.\n\n### ⏳ Installation\n\n```bash\n# npm\nnpm install strapi-plugin-preview-content\n\n# yarn\nyarn add strapi-plugin-preview-content\n```\n\n### 📁 Copy required files\n\nInside `strapi-files` we have a list of folders with the Strapi version, enter to the version that correspond with your installation, and you will see this files\n\n<img src=\"https://github.com/danestves/strapi-plugin-preview-content/blob/main/public/assets/folder.png?raw=true\" alt=\"Example of buttons in list view\" />\n\nCopy the folder named `content-manager` inside your `<project-root>/extensions` folder\n\n### 👍 Active content type as previewable\n\nTo enable content type to be previewable and see preview, or clone entry, you've to add option previewable to true in a configuration json file (`*.settings.json`):\n\n```diff\n{\n  \"options\": {\n+    \"previewable\": true\n  }\n}\n```\n\n### 🚀 Run your project\n\nAfter successful installation you've to build a fresh package that includes plugin UI. To archive that simply use:\n\n```bash\n# npm\nnpm run build && npm run develop\n\n# yarn\nyarn build && yarn develop\n```\n\n### ✏️ Usage\n\nGo to Settings > Preview Content\n\n<img src=\"https://github.com/danestves/strapi-plugin-preview-content/blob/main/public/assets/settings.png?raw=true\" alt=\"Preview Content Settings\" />\n\nHere you can configure how your url for frontend preview, at the moment there are only two parameters\n\n`:contentType` The content type to query\n`:id` The id of content to query\n\nFor example in NextJS you can make use of [serverless functions](https://nextjs.org/docs/api-routes/introduction) to make an URL like this:\n\n`http://localhost:3000/api/preview/:contentType/:id`\n\nAnd put the logic there to render content\n\n### ✨ Features\n\n### 🛠 API\n\nThere are some functions that make all of this posible\n\n| function         | route                           | method | description                                                   | notes                                                                          |\n| ---------------- | ------------------------------- | ------ | ------------------------------------------------------------- | ------------------------------------------------------------------------------ |\n| `isprevieweable` | `/is-previewable/:contentType`  | `GET`  | Get if preview services is active in the current current type |                                                                                |\n| `findOne`        | `/:contentType/:id`             | `GET`  | Find a content type by id                                     | You may want to active this route as public to make request from your frontend |\n| `getPreviewUrl`  | `/preview-url/:contentType/:id` | `GET`  | Get preview url of content type                               |                                                                                |\n\n## Contributing\n\nFeel free to fork and make a Pull Request to this plugin project. All the input is warmly welcome!\n\n## Community support\n\nFor general help using Strapi, please refer to [the official Strapi documentation](https://strapi.io/documentation/). For additional help, you can use one of these channels to ask a question:\n\n- [Slack](http://slack.strapi.io) We're present on official Strapi slack workspace. Look for @danestves and DM.\n- [GitHub](https://github.com/danestves/strapi-plugin-preview-content/issues) (Bug reports, Contributions, Questions and Discussions)\n\n## License\n\n[MIT License](LICENSE.md) Copyright (c) 2020 [Daniel Esteves](https://danestves.com/) &amp; [Strapi Solutions](https://strapi.io/).\n","readmeFilename":"README.md"}