{"_id":"@nacelle/nacelle-yotpo-nuxt-module","_rev":"34-6194cba588f22dec9ac1aae910ab5e99","name":"@nacelle/nacelle-yotpo-nuxt-module","dist-tags":{"beta.1":"0.0.4","beta":"1.0.5-beta.0","latest":"1.0.10"},"versions":{"0.0.1":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"0.0.1","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@0.0.1","maintainers":[{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"leviwhalen","email":"levi@leviwhalen.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/ShopElf/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/ShopElf/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"1701c1c1eec523068d76049cf4b634a96b3e782c","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-0.0.1.tgz","fileCount":8,"integrity":"sha512-QGMdF0nfZOxQwR5cHBXxcw+1wxuHNxkWel4Wyv6akEFYW2iStzeyiN+ry0Z07y0Ik/1fDNyMgDTpF9BWLekntw==","signatures":[{"sig":"MEUCIQDzRsW7vRmFg5m0HCDVRd15SSMXmwHS4RqrfjQxbPVo2QIgAs23DQyuqC6fus4MbI/ryD5AXXP0oXYk7cqE9Op9wh8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedTO5CRA9TVsSAnZWagAAigQP/RnOyAsTADKkq8YMYKJJ\nnxz9dN5C/6AfHKEjmqFDqPft5vFEnDB8CqS8IKaLI4paRQx6SEc0qh+Rkb4g\nzRrYL5lVoypawUB6Hci0ZFEXkC/I6wcAy5iaisFwl/luBWsYODGivC3wDPdx\nOKvW73cdbD0zfe1jbHLBAtg1+Dgvxx/D0QvWeC8cQ163q0GT57sPVh3lPq7h\naUiwJIGcGIjPI3PzgPYb6Ar1gqQaZd0xE+HbVlOYvrQql8AmyG+SkLdvZkN8\nGgKGKpdZFuW0hmhHW8vWievJEL71Fz4a2oOljv1RYuI6vY9vq9an1kbjfjkG\nv447uiDjX5ot/y4/86gMtFrcsng9tR2tZP+eHh0uOF9Bb6IR7IqD4HY6zbbx\n9r3U448c5Jka8JJiikpN/cWGPHm+PYq+lTf2JdC4YSBBToWqb8H0T2aVq4OV\n/q7UxVFyYOwRhov0BMUF41iT3AR0S427xC0Ra+X+c5kmKKvrcXy37YF0V1lF\nEQhpx6yOtSOe6Fff1/XA3WvE8mYx79MxPfQtZ2fHD5yxlT7snoLE+3O2sxW1\nOaL+ZKW9g85ZUZJzxzaV7qG6HCRNynIBchGfX0oApvsbkA1hv5O6aRX6Kf4z\nYhLh0zkJTREtowmYLwKKJQdcYapk8xa9nC1aMK1n/GHR4N9bTrZ1bB4VXH+G\nLLCQ\r\n=+N85\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","gitHead":"273fbfc412553af61d56e280fff3682b01fa7b6c","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"cbodtorf","email":"cbodtorf@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/ShopElf/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.13.6","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"10.15.3","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_0.0.1_1584739257065_0.5499282283431721","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"0.0.3","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@0.0.3","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"c570c5f58b4405e3127d3ab0e02f99456a326543","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-0.0.3.tgz","fileCount":9,"integrity":"sha512-1E+oh8MAIl8Tew80t/XJHx6Algv5P+ctH1s5x1Jc6sOgy9god/bk7itdgFwFm6qGio+OzAx93Kt4ax0jI45nIg==","signatures":[{"sig":"MEQCIC7WEeYRqnX0cofZNf+kSnScjFH5VPRGhlWo8FrXRhnnAiBOjkmhQ2A6SlyoCA6DoXkpwx3us4bHGi1YhbKLObeyUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJedTWACRA9TVsSAnZWagAATkUP/iNyYJwk5PIc9QyVHH8Q\nSRFRAUf9QyQPC9vcaqoUN4VCrbSAG0ECbcWLVagMnykGkGgGtCZAg75gThEW\nbZk0ND+lbKuBkv2L2qusQDQhASGv3FwDjLFeTDYqTj1513Fg9ed3gqySFkyh\n6sOZZ8zSB/javyx7IkQZRvsmmS40ZubGNT55reWHHJYCYjfsCL8M9GxLHvT8\nJuSjoydg+4G5Ilg75FIxH7w3tC7Y6HxlMWhdaXzGuS/TKl16/IjUFAamdvER\nPjjNpqILiFGWxb5/75tAaAuHypCdc1MhOnlTg5OOrGAVrlk+iXK2IqchSq6t\nCyq5EaPnYJZpjwihL86mfLDWgOcu1gaA+ToFtATUz4kcHnuqdoIqEHZfGXY2\nvTPTDJlOIzv/nENaY5eRtAS3wxLHi1ZVVllByjc31s5O5n0P/TcfCnAi60bu\nY/h3rwShqCQn1Q81fLdRXm9kJq4x5XVXKbqIQST3ujiUjo7oCeclNsu4vtYM\nGS7TKagiBpnnsWBDC7st5hp2Mpxefnkz/HrshPhjKoqCq/YCFKpLR5kOfwbs\n8octCOYLR+l0MQT8L0Bk0W0jeEDvKc6seawcDNPCDEHe5cMWf99IOvwHiLfz\nwhXUbZoCMXm3YiaGbD531PIhytYq2WaTK9MQQcIeogApIDD9QSE6FWCnfUzN\nIYjg\r\n=HEjc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","gitHead":"9e83fa45e664f1db0d2e27f3289f739b49358bcb","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"cbodtorf","email":"cbodtorf@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.13.6","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"10.15.3","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_0.0.3_1584739712043_0.8985576232442269","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"0.0.4","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@0.0.4","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"03f8c26ff544042f5812e9deee0b4048f1bdcbb2","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-0.0.4.tgz","fileCount":9,"integrity":"sha512-D0kJDcCTiaZ1fHZAH+p5peLL2UN6CJnz1YAHxUMBtakRWytFme5e8RE5MocZsamKK8j3wE08byaOj4Ct2/5wEQ==","signatures":[{"sig":"MEUCIQD0x+IGbywAORwy4u8kdsXDRmsLQvPkybtetOIomBJQpQIgSbrWRtqTjJoDd/U2ixeYbE6I1FZwL93eug6/u6P2LwA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8188,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfBygLCRA9TVsSAnZWagAA1lIQAJhAGi3G7cgHeIjrZI3g\ny03OS6WWejUahnhEKcFVTbHYZUTcSu7afbJIEjLK3ntwl0AWgKWqBSftppbQ\n1y48Vp5jKBBJ4qjwEWXO2SbR4IJaibEctJ78QhL47Mnri4qrALG4sq9fzlAu\nNoXTIcGvKORQ/Ulj02qekROKK2uWKSrx7VfXcTFEjJxm//yebwNrN/nBCwL4\nqt+DgYHMO6pBl9+nNoroqRxUCZPaf/ZDdgSfPsyRW9rjRXttKniyxox/TpF5\nlKmbSL1t1PGwIl/4ZUvoXHSP4PcRQ+X3lvAHXdi8QiTHkc2IHlQGy2ZPeaMu\nhhZDVi49q61HZegVNAXy7AHMGIFx2Q9s3oGJhOo3FnQMHkHzwVyY9ph9v4XK\nfO/QIUq7CXZ1E9nic0UwfJvq06GFvwssPHsUICTqy6g8u7WDlFZ7cvhhXWZ1\nZ/2j6AqVfIG5yw5wyFLLzTkyH/EJrumuV+icVxvnA+CXQ6RJxLBGnjtNVX8G\neMEwayr2YIVn1a1NxP9svvCe4pyrbMPxeeEPHWYE8WX1ZFOgol1a2tZnsHhp\nBHoxuPmirKt8yC+H7DIu57njoPzRiv41lsyfbNVsLKas6lZMFWExO+bh5M7K\nzRwOgRafKDsAenTaiaVvMD/0ZHc8Zq82wh7LUN8bZiZsUZO5HId07siubOoW\nBw+T\r\n=C2kO\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","readme":"# nacelle-yotpo-nuxt-module\n\nAdds Vue.js components for integrating [Yotpo](https://www.yotpo.com/) product reviews in your [Nacelle](https://getnacelle.com/) Nuxt project.\n\n## Requirements\n\n* A Nacelle project set up locally. See https://docs.getnacelle.com for getting started.\n* A Yotpo app installed and setup.\n\n## Setup\n\n### Add Module to Nacelle\n\nOnce you hace Nacelle and Yotpo set up you can install this module in your project from `npm`:\n\n```\nnpm install @nacelle/nacelle-yotpo-nuxt-module --save\n```\n\nAfter the package has installed, open `nuxt.config.js`. Under `modules` add `@nacelle/nacelle-yotpo-nuxt-module` to the array. It should look something like this:\n\n```\nmodules: [\n  '@nuxtjs/pwa',\n  '@nuxtjs/dotenv',\n  '@nacelle/nacelle-nuxt-module',\n  '@nuxtjs/sitemap',\n  '@nacelle/nacelle-yotpo-nuxt-module'\n],\n```\n\nThen add your Yotpo API Key to your environment variables `.env` file.\n[![Yotpo](yotpo_settings_guide.png)](./yotpo_settings_guide.png)\n```\nYOTPO_API_KEY=xxxxxxxxxxxxx\n```\n\n### Add the components to your Nacelle Storefront\n\nThere are two components you can add to your Nacelle site: `<reviews-widget />` and `<star-rating />`.\n\n**Review Widget** will display a list of product reviews as well as a form for customers to submit reviews. Add this component to `pages/products/_handle.vue` or anywhere you use products and pass the product object as a prop along with the route pathname so the submitted review can link to the proper page.\n\n```\n<reviews-widget\n  v-if=\"product\"\n  :product=\"product\"\n  :pathname=\"$route.fullPath\"\n/>\n```\n\n**Star Rating** will display an average star rating for a product along w/ the number of reviews. Add this component to either `components/ProductDetails.vue` or `components/ProductCard.vue`.\n\n```\n<star-rating :id=\"product.id\" />\n```","gitHead":"dc491416244a514dd25629ce682d44498e925bb6","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.5","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"12.18.1","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_0.0.4_1594304523032_0.8886074872709475","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.1","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.1","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"c76bb702e0160cd199d725a600b9467f8dfdd3a9","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.1.tgz","fileCount":8,"integrity":"sha512-0x4E6JWgTif+sJm1EDi+f9DeS9vUjRmFcG+HGdLyoOuMqlMR4c70jDTBLSdyd8z/egD7ZjjIYVqGIB3porHD9w==","signatures":[{"sig":"MEYCIQD3OWsx/8NVIZ6T/DL+4tEfwa9rN3BYruCuE4p9uxh77gIhAKMG/5JjHMWRsu+T0x++JuBmFFryQPeFIBPW1ajc/x5n","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":8667,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfEcwSCRA9TVsSAnZWagAAEq4P/iU3dMB0flO1RD1/fQX6\naPoXtxJYLN3jIy596QyoBXLE7hOgFQx6iHh9x36yA3dqY6gxD3lgNguQnKT2\nW64tfDzi4weENupDbomHUakVYl0DrS5zJdXN+Cw3cnktPLihBpjpk9xuefiS\nO1BLrkThxY8zLD3Vh9i5Fzer6ao5UjIyLUIUyfD5Eqwr1NmqciKSK3TFhPlk\nmAyK9O+jtqj32SP/QrNmncYRm1himJdBJ5VyEs7HbCYd7p7j2zCr0RaKcj5Y\nSBLooCT1H77k6TPTPMVQ+ce25ZpM2N/hgZM/+kcL8AgjCq0nfvMLt81e9MCe\nOhWWovaDOG38yxK1ZXR6cs3B2CcPiWruHwcqqFTJs4Au8uSJaktxRPIVSk4q\nfiJSDtcMALsZnxNjhtAodr4YxN6ijrjVzYUL6rV8tu2Kq2pSB+IS0w4rW+MJ\nRuEEw8fZjMnFiDo8Ie4xzPL1mleb8jEsk45gMjqEhutxsULLQb6vRkG2CWfH\npIz3AepcDmYEIuG2RJLZNVXqHxoSSUrkzr6/aF+z5w+Z0b/84in+DQwaSChj\npoc8YSDNSTnoqCZxI0PYdQjAB3DY5olDaK/BljnPDSrNhfGvUftuQGcfLnl6\nvfgS7aXpf2w4heb8eoGGEClMgF4Ix5HfiHYz1xqBeGlUQW+M1FDyaUpJRaJ2\nzj7s\r\n=/vB6\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","gitHead":"4a6b5b62277d57c1e42a1cd71481291564a6bb7e","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"cbodtorf","email":"cbodtorf@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.4","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"14.2.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.1_1595001873509_0.7190635906096321","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.2","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.2","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"76263c13d4adf1382b7036062940fda0e360bede","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.2.tgz","fileCount":8,"integrity":"sha512-mf8ZhAvweZT41+Dcd5Jp2Gs3QU70xe655JuPlDcVgOFecIkiyCrnEPhqjOo6s1tZZv/rij8ERdxsvBEQ72yohw==","signatures":[{"sig":"MEQCIA/ywLZLFSxJhumlsHXvg5rGAkcbLIBLuE2xH9AsVhl/AiBP9apgh+bhQhiTVWJynyo22dCtRcaYmEg1A8orUj6PEg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG32FCRA9TVsSAnZWagAAoQMP/RzVh3xYWo/lJmoAA1M0\n2zOPKDAyyb7hu6yp+MjWCXLuc914wRdFvigQphTQ72e6274xq+AXTUwtOiex\nTXEniHNN+VHFL0kZZp5R6Ol+PGpedGaI4wNOIUQUXMKafA9XQefV7f5y28g3\naQrmy2eLK6fLiANoYfVD2rwlTTcwr/ru0694qohUsqSy/8yEWIT80taXDdVo\nBzO1NKLhbTFiwS4DvOciBEFjtlcc8t2zWZw0rj2cioq/MS8bolWsTd0JYjct\nZH9VW9wzBxYovn9eaFJ1SJ1A4ebtVmELx2H2BvkwUByZU7xhXFAsC4xyKFIs\n15ksJmrnIBnJ86EUN5K48r+p8DzmTbu+IdHvKtnDpEJHPLsZm1xIazlSYF0b\nm/4XrGKj1fsShdI4IQx4TdXT9jswnFjJau9ZaBSqq5+G17S1W4ht4He7cA5N\nCRzlcQu9uOyRrRYkwNdXfJPX12IKZiQTqOMkYw1IpqCGzWD9BZiyUX/rza31\nW2chZQ84xtxnW/+LFeY4ZhGxhlM/f+RJ4XJR9JIXlnzPGwGudLK16i6sF41T\na4WYyutqaJIpK+HASRW24uAtEMcgtIpzBvuKZxFngLoICc9zpZfd5FQB5kug\nyhiawf4rr8euL/GxdOq1YD4J6WBOAtp0dl/GP7/sH8QvtS3J+wtVb2gIcQcd\n7RvX\r\n=gPlt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","readme":"# nacelle-yotpo-nuxt-module\n\nAdds Vue.js components for integrating [Yotpo](https://www.yotpo.com/) product reviews in your [Nacelle](https://getnacelle.com/) Nuxt project.\n\n## Requirements\n\n* A Nacelle project set up locally. See https://docs.getnacelle.com for getting started.\n* A Yotpo app installed and setup.\n\n## Setup\n\n### Add Module to Nacelle\n\nOnce you hace Nacelle and Yotpo set up you can install this module in your project from `npm`:\n\n```sh\nnpm install @nacelle/nacelle-yotpo-nuxt-module --save\n```\n\nAfter the package has installed, open `nuxt.config.js`. Under `modules` add `@nacelle/nacelle-yotpo-nuxt-module` to the array. It should look something like this:\n\n```js\nmodules: [\n  '@nuxtjs/pwa',\n  '@nuxtjs/dotenv',\n  '@nacelle/nacelle-nuxt-module',\n  '@nuxtjs/sitemap',\n  '@nacelle/nacelle-yotpo-nuxt-module'\n],\n```\n\nThen add your Yotpo API Key to your environment variables `.env` file.\n[![Yotpo](yotpo_settings_guide.png)](./yotpo_settings_guide.png)\n```sh\nYOTPO_API_KEY=xxxxxxxxxxxxx\n```\n\n### Add the components to your Nacelle Storefront\n\nThere are two components you can add to your Nacelle site: `<reviews-widget />` and `<star-rating />`.\n\n**Review Widget** will display a list of product reviews as well as a form for customers to submit reviews. Add this component to `pages/products/_handle.vue` or anywhere you use products and pass the product object as a prop along with the route pathname so the submitted review can link to the proper page.\n\n```html\n<reviews-widget\n  v-if=\"product\"\n  :product=\"product\"\n  :pathname=\"$route.fullPath\"\n/>\n```\n\n**Star Rating** will display an average star rating for a product along w/ the number of reviews. Add this component to either `components/ProductDetails.vue` or `components/ProductCard.vue`.\n\n```html\n<star-rating :id=\"product.pimSyncSourceProductId\" />\n```\n\n### What is this module doing?\n\nThe challenge is to properly load a DOM dependent sdk into a PWA. The sdk assumes each route change will be a page reload, but in Nuxt we dynamically render pages and content without a hard page load.\n\nThe plugin registers an event bus for us to emit global events, in this case, listening for the `mounted:yotpo` and `activated:yotpo` events. When the `reviews-widget` or `star-rating` components are mounted or activated, when make sure to emit the respective events.\n\nexample:\n```js\nmounted() {\n  this.$yotpo.$bus.$emit('mounted:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\nor (if you are using [keep-alive](https://nuxtjs.org/api/components-nuxt-child/#the-activated-and-deactivated-hooks) )\n```js\nactivated() {\n  this.$yotpo.$bus.$emit('activated:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\n\nLets say we have a collection page and each product card contains a `star-rating`, this would fire off events for each component that mounts on the page. In order to reduce redundant network requests, we debounce these events so that only the last one triggers the refresh. \n\nIf you have custom requirements, the injected object `$yotpo.sdk` on the nuxt instance references `window.yotpo`. You can refresh the visible widgets using this method: `this.$yotpo.sdk.refreshWidgets()`.\n\n### Module Options\n\nYou may want control over the debounce wait time. The module accepts a `debounceWait` option, which takes an `number` representing milliseconds.\n\n```js\nmodules: [\n  ...\n  ['@nacelle/nacelle-yotpo-nuxt-module', {\n    debounceWait: 600 // default is 200 ms\n  }]\n],\n```","gitHead":"c9f7eea8cf2662447cf6d6534892a0f79fb168c8","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"cbodtorf","email":"cbodtorf@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.4","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"14.2.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.2_1595637124671_0.3235536643760686","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.3","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.3","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"4827b877211485e593069bbe836dfbdc14ae6e2a","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.3.tgz","fileCount":8,"integrity":"sha512-hy0wE5tqSiRWHdasNOwSrqEyB5/PeqBejNHo3tep+e9jUOppcUMGJZYAY+9oN03hRuFAIkOnsMQqXqAs+zPGkg==","signatures":[{"sig":"MEUCIQDqiE3JfQRgUr5DldaaP+OJ2hvTOcDoqdldhrY6v0c84wIgJrTJY/lGt1BeD+EiKQCgIfHUgI8ezfly2ANZsKq0bjc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11457,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfIEUYCRA9TVsSAnZWagAAlG4P/RywpOxSYGGEJ7rBIH5O\nvZdGT8MCiSuHqQBPZeemuxP4YkC9/qYPR9tQOkVxhUqd8xb34GJ/igFFva3b\nK/PCh3+CwZ0zVGn3BSnMqrs8uPekLBGuu2Bxbft92rNv5cEgj75E/jWchFu9\ntyNAjv7uSzz2QNMaimvYiMtw6KnWkZ8dRgsOD7O6PM/hyv2eQnLsKC+dLFjV\nZjWETnif3tttj+S1oK1xGweyHAKgmj6igv1/6R4sh+xLfP+bzRu17a3i7yyk\nNPYVj51cn+wzmgmc8zbdUVa4jc3clM7/4zq8kQXK2LmXZJ/FI1m4wHFoB34m\nx0FhJ/uwg0CYonqpyY1Bf+YNWMRp8eg+qDl/W74v6MQS98JXplSs/q6lwUBn\nH57pHj+74YLOA6pc8xCnGyV0/6jUi8VlikjDDeYluowuCSE+kiIhzZ0UrRs8\nk0ieyY0NcJeb9ic7vk3O3BqFOUbm1LcXzJIDOih1TuClxtHldaOIaCKh78wu\nvNwCYzSkxG4hRazPVIopnjIrP4ACVNdiNyfZUprq2rYGk8KXfTVyWE1rloLk\n4XQ6pbWGYLU24TaEnt8r6DXKrHg7LE18n86PMSUCyLX32udAHvTi5CFussnz\nhBPJ/CtubK8TjFjead9nMaCZCFJZccYfUHWFcxL852yPjrA20jsfa4JR8Tuf\nyVpE\r\n=XyRF\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","gitHead":"81f79e6a459610320b53eb8aa4649ea32ac007e7","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue example lib test","test":"jest","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"cbodtorf","email":"cbodtorf@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.4","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"_nodeVersion":"14.2.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^6.7.2","@babel/core":"^7.5.5","babel-eslint":"^10.0.2","@babel/preset-env":"^7.5.5","eslint-plugin-vue":"^6.0.1","eslint-plugin-jest":"^23.1.1","eslint-plugin-node":"^10.0.0","eslint-plugin-import":"^2.19.1","@nuxtjs/eslint-config":"^1.0.1","eslint-plugin-promise":"^4.2.1","eslint-config-standard":"^14.1.0","eslint-plugin-standard":"^4.0.1","@nacelle/eslint-config-nacelle":"^1.0.9"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.3_1595950359734_0.13594665721013954","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.4","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.4","maintainers":[{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"7d0dc7575af32a4cdd1e965b7f66d2b969589840","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.4.tgz","fileCount":10,"integrity":"sha512-DY/gMkSevYW0tw8q4kBTn1ms5pV5rvhP1QpHupoiDPSPovmVpEGYls5u0QvdHVBYLTwyr8CPMmZX31kcv995mA==","signatures":[{"sig":"MEUCIQD+yRMXbfNk4vqIwdrx1VLNsKIDs4tis+pdq2Uui2FcbQIgeHJLtu05I8JGg6x3etGD05tjYtEcUD0kw3TuCEV143s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMrfGCRA9TVsSAnZWagAASwMP/38XQud54B7SKwU04ULi\nxQg0D5va+i/CtAf5Mo3rXkZuB/3qlUKnF/lvS7oBM9Pq6N4X2276zb1lCc7X\n8DhMJtM/GSQ1vpjTTVOFtM2T+bNqraZSpY2rggUQChaN16S8hRyA5NGRTWp2\nMtCwr9cW3HB7R340H4HwgT+BZh/n5ieDl+bmh78VdfMajXLCzxBxuAEAFrux\ncYOMgxKD+llesuGtqfXKsQ+YOYd7FtsQ6X6PDO5qTloDeuWPZw1Pb7ylEqPb\nVU/KmAjBRhDKPcXt50u1ZmsBZ0AYuV528dQdtrap3UQN6Pf/NzEeGeBAowTb\nmegXb/oJMaQ5IFAEexy1wLTq5cDfXYUWhd5YsAsclPQYjGICCVbZ8jU8F6h8\nYv4uePBVuekAcUjEbVIpiE5erMoR6YSujZ1J4fkEWdtNCLeMPz2gc4fKv5s4\nk7o86jnb1REP00YKqicp7++lkO6+i++e0GcuJo/hrWyNuAu3xpZ7K+MJ3mkR\nOsv3ryKwgZYo/DidBIsHIPkgCyW+1TT6VTp9jhUf+VK9z3qx5NHoPBJcvMRp\nZl7yMd94v8dEN98PJNxQl3ilJwChMTUqNYgJ7fJNYdjy7EsP5XD0wWWM6hQo\n437W5whz3aOFgFBdzJ5E2OMQqdUIZcdoYtVvLdB38bwFW+MDvmc9mWNMBdc6\nj0an\r\n=0QJ3\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"gitHead":"71d360d768c3ea0c5b158a294a68ee2a31d96a60","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./lib","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.5","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.4.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.4_1597159366137_0.08977686418420205","host":"s3://npm-registry-packages"}},"1.0.5-beta.0":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.5-beta.0","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.5-beta.0","maintainers":[{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"leviwhalen","email":"levi@leviwhalen.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"f6b964c7728b61027f5f494e40cde6bdcb0a6747","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.5-beta.0.tgz","fileCount":9,"integrity":"sha512-7KKwRsF4+M1F18esEL1TnAGSYJ5I4c77/whlPTnH7VKEM7lnBZBXNUVW4n8J/XmFakL0GQ4BnE9EGD4vBeVMHQ==","signatures":[{"sig":"MEQCIA4B5b3BipFLFtAJ3+M3Ol7eN1ZRVw0paS78FjsLs/OjAiApBJLPFcMzK8rVYCwyh4QbdAxeRgL9Y1furm/JvUWV9w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13025,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfYOH+CRA9TVsSAnZWagAAUnoP/29m4qmMkQzF06f4eMsJ\nNYVtSBwmeiCWdGBd5hBSffsHWgMpGBKLY2Cn9sNgsF124fUJW5jAMSQNEAAK\nhedlrphLvjJ+3vstvsYBZQLRy+FPfIDFUxsU2e6tTWQbVI1yI/90iCsqMUdw\nigLs6sgcx8IQmSRHzjCYSmyJmegm1g2noSybI6EWSoPR5pTzMrwfBwaBT/GU\nXVZ4o2iKcwsnfgKhx7eO9BidKm0BPZYnHUKAxH2kGSlHqp+B/J9sXNjWiXqB\nypKNK8r4O9/w2B7WaTjzJ0J4BrAjYeoYhThV0QMAV2+YLta+l8c9e3u1XmKv\nTqXzhzdX5GAkkg5TaNtTImxIInm+3UosQoDy1AR8kTzZjHtC4qHT4oimspHl\nadBizov2QbmrMNLpgd1UV2PKZD/DZsKYIJG9sPJKRQy8TllwzaJN5wRS1yqh\njhlPuhAbDHLdCN6AJkB8x2ZIW2xGt3bkpfY8Zuk5mS5jvDgkD6ApQ3208+K/\nSSdCYZ6kg/BOAj4p8uXV+SLm4H6zL9o4Y4U4pwniarME0JyXeCmRLKbYGOib\nNmJ6h4I+iPFsFNeTRAJHOOKogtLKmDaNHTDjFtPvkGdQb+J+W2qKpHs14f9D\n4RAXmzo62aruYrfsnpPU07TqdvmgCsld5KMDOJxpnnGaZfEA80064p5ps5mh\naQA6\r\n=oc3M\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"readme":"# nacelle-yotpo-nuxt-module\n\nAdds Vue.js components for integrating [Yotpo](https://www.yotpo.com/) product reviews in your [Nacelle](https://getnacelle.com/) Nuxt project.\n\n## Requirements\n\n- A Nacelle project set up locally. See https://docs.getnacelle.com for getting started.\n- A Yotpo app installed and setup.\n\n## Setup\n\n### Add Module to Nacelle\n\nOnce you hace Nacelle and Yotpo set up you can install this module in your project from `npm`:\n\n```sh\nnpm install @nacelle/nacelle-yotpo-nuxt-module --save\n```\n\nAfter the package has installed, open `nuxt.config.js`. Under `modules` add `@nacelle/nacelle-yotpo-nuxt-module` to the array. It should look something like this:\n\n```js\nmodules: [\n  '@nuxtjs/pwa',\n  '@nuxtjs/dotenv',\n  '@nacelle/nacelle-nuxt-module',\n  '@nuxtjs/sitemap',\n  '@nacelle/nacelle-yotpo-nuxt-module'\n],\n```\n\nThen add your Yotpo API Key to your environment variables `.env` file.\n[![Yotpo](yotpo_settings_guide.png)](./yotpo_settings_guide.png)\n\n```sh\nYOTPO_API_KEY=xxxxxxxxxxxxx\n```\n\n### Add the components to your Nacelle Storefront\n\nThere are two components you can add to your Nacelle site: `<reviews-widget />` and `<star-rating />`.\n\n**Review Widget** will display a list of product reviews as well as a form for customers to submit reviews. Add this component to `pages/products/_handle.vue` or anywhere you use products and pass the product object as a prop along with the route pathname so the submitted review can link to the proper page.\n\n```html\n<reviews-widget v-if=\"product\" :product=\"product\" :pathname=\"$route.fullPath\" />\n```\n\n**Star Rating** will display an average star rating for a product along w/ the number of reviews. Add this component to either `components/ProductDetails.vue` or `components/ProductCard.vue`. It accepts the `product` object as a prop. Alternatively, a product ID can be used via the `id` prop.\n\n```html\n<star-rating :product=\"product\" />\n```\n\n**Instagram Widget** will display a shoppable instagram feed.\n\n```html\n<instagram-widget />\n```\n\n### What is this module doing?\n\nThe challenge is to properly load a DOM dependent sdk into a PWA. The sdk assumes each route change will be a page reload, but in Nuxt we dynamically render pages and content without a hard page load.\n\nThe plugin registers an event bus for us to emit global events, in this case, listening for the `mounted:yotpo` and `activated:yotpo` events. When the `reviews-widget` or `star-rating` components are mounted or activated, when make sure to emit the respective events.\n\nexample:\n\n```js\nmounted() {\n  this.$yotpo.$bus.$emit('mounted:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\n\nor (if you are using [keep-alive](https://nuxtjs.org/api/components-nuxt-child/#the-activated-and-deactivated-hooks) )\n\n```js\nactivated() {\n  this.$yotpo.$bus.$emit('activated:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\n\nLets say we have a collection page and each product card contains a `star-rating`, this would fire off events for each component that mounts on the page. In order to reduce redundant network requests, we debounce these events so that only the last one triggers the refresh.\n\nIf you have custom requirements, the injected object `$yotpo.sdk` on the nuxt instance references `window.yotpo`. You can refresh the visible widgets using this method: `this.$yotpo.sdk.refreshWidgets()`.\n\n### Module Options\n\nYou may want control over the debounce wait time. The module accepts a `debounceWait` option, which takes an `number` representing milliseconds.\n\n```js\nmodules: [\n  ...\n  ['@nacelle/nacelle-yotpo-nuxt-module', {\n    debounceWait: 600 // default is 200 ms\n  }]\n],\n```\n","gitHead":"0be0c8033578e2a1820c0ba7ff3aed6e9cb7b8da","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"yarn test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.5","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"12.18.1","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.5-beta.0_1600184829519_0.30092626907462017","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.5","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.5","maintainers":[{"name":"irnoble","email":"irnoble59@gmail.com"},{"name":"curbol","email":"curtis@getnacelle.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"leviwhalen","email":"levi@leviwhalen.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"800c1044a4176ee02bc8c043a7f82294ff55efa6","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.5.tgz","fileCount":9,"integrity":"sha512-mi+6SER+XQ9zwk3I8tLjb0wcRW6DdHqPpdw111l3Igsi3gMzrdMJOQGXxjQbncx5mvzzZKkzk2is0jry2cPPyQ==","signatures":[{"sig":"MEUCIQC7Ab/Gns4VT2F/qc0/SAwNokk/TTKBN/scHOx51/gUswIgT1ggRUwTwPoIq09rjQdkjrn/15C8+au58H65Ax7nK/c=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfkd/jCRA9TVsSAnZWagAAndwP/1K+VAluL7Ls5dOlxQYD\nlgXprjXIZ6jBXNW6N/MM+GEhtzXo2aMYujzIHTeSDRkeEGi8H5acq8D8eWRe\nyPFwIrHsjwkTmCCfCDvb7U4RZ5HYEN23YtTW0abJBT58mqw8xnTYvdkJkg1E\nGofVxCFp18ZpwkgaSKyH3skIpykT4otKsfsh6XkKySGDuReMQT/8/OzaTBoK\nuqsy4cBfplYjdFIfF9208Cvb8zzz4cuL1SsYjuiHXmv/FhAYtfB6WfpWhmBM\nYQn26nu64UMe9l8JNBuu9o4+lmEE66NZeVYgjahZfDtX1rg+mGwmZVOW+PXN\nURwlXvWkA+ToFDaZc++1XzxvVGslBWE8LbobkOs+OVy1/AYZGfNOdYOdMQ7m\n8a2NiCdz5vVzBC0wZp1R/muynhwjydIaL29tavSsTTDULnd9z7P6UAdacbx3\ntB5Vk0hqPaL+h/NGifPCIpq+Ks58fYIWierYOIkZqhRRtbrOXoTxi5VcnKHz\nIyRxw+wZS58xSCR8tv5INurgnXNa/zbbtXpM5AK7eH6vu6GQBLyyhwRg9yTV\nVU1WtHPHrad9yoSX3eZEm9/usUp684V8KsIPGRSWqaWqHjhv/4Mizh0i1b5A\njTUFlWXTwCJPaS3h3VzQ6zFLSU2rv81n03doktZnHf7w0Z7AxvlGBk756RTl\n0Xjr\r\n=T1Dn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"gitHead":"3f170f7f5b4a38352b7e0c68a900986bcd3b0e0a","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"npm run test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.8","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"12.19.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","standard-version":"^9.0.0","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.5_1603395554958_0.9045527592503089","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.6","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.6","maintainers":[{"name":"irnoble","email":"irnoble59@gmail.com"},{"name":"curbol","email":"curtis@getnacelle.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"leviwhalen","email":"levi@leviwhalen.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"91b35e062b3a761d5d49e00f53030b466ecbae1c","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.6.tgz","fileCount":9,"integrity":"sha512-yRi2mFOcS5I2hMzyddS/MaRDmOhiVTyv0REi3+/8eS2ZfWbc/t46L+sBoz+8nzV33HZeWXL8noptobF/lhx/1w==","signatures":[{"sig":"MEUCIQDp9W9I78dPMWkOfaudAITw78v3obiK/PMTuBOgDFHmlQIgUANuiU3RLC4Rnh3bc9okpdjp+eQVjxSKS5rFnGOALnE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13400,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrGFeCRA9TVsSAnZWagAA3VgP/2GzmaI5apmVmYEyiLeF\nZyHdO3ha1WltV3Gs2/ww9wQ+km7/Aq1DnzFmlV9Ro7ZjQ0jsfy6Q0/LJG578\n7MrEV17UbAQnELTAC/POjI/F2yxfzXO9SbdpudD75cp0me9/awPVOnq2fsu5\ne52gFbzzvjqzGK0/h4ef/1P/bSL3muBfznqieT65bDTsOyiRLMTaHhgmDiFP\n/erO+Qw0ru1AMMjXH5Jl5ERgn5Td3CZWo4wASBk9VkI5sUEPxrRd1oFYATuB\nsvUsiRWgBJtBUEufv9JtguXoEJ+pq0S6BFMs606CJCRM/6LOJ0CvF8oUZYU+\n8Opz5Wudyjtb2ONdli+b3I4Q4DsjbOAqcEvDDaSnAQl2XpHeRtVhzHqpkmcv\nwwTHN6vDh6oDIdkG/J9UANv6HsndJhULF5RcEti+Yeq2aMCFarXYg+ysNk56\nT/JyPps75WI4kf4W3eLCotOwX0bmcX6dtXD3d6gUGkCtXzYc+rCquPMSRzQF\nlFP74ndOl+5t9EacwgGHskcX5QbB4SjijptmwtfAM7lVBHv7hCbcca/dvrcQ\njiu1fd7JPLY2hDryTIEE+/m+Gs30V9etaG4f8NYvUVER6OTolly89DSbRTmr\nf60vMZYiTDqdUz+4zUuQjjqEEwxWpx4qvgzsgyIe9VJfsaq4MhcEP98ifch6\nDska\r\n=wqdv\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"gitHead":"f4f311a15e2a1d732a5ffe7e8984348435225527","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"npm run test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.8","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","standard-version":"^9.0.0","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.6_1605132637545_0.09259816339446081","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.7","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.7","maintainers":[{"name":"irnoble","email":"irnoble59@gmail.com"},{"name":"curbol","email":"curtis@getnacelle.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"leviwhalen","email":"levi@leviwhalen.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"95c3f68e083827c8055726b40666af6df04228b1","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.7.tgz","fileCount":10,"integrity":"sha512-F8+b3zgyiMjxaNDpy0u2eJ5taJzhBjhckZ8B8JZ787QJNQrGEyUAWWAmbxi475v9Zx5VK6Ozo/5g48nLyVo4sA==","signatures":[{"sig":"MEUCIQDtbZqHqYPy52qOfDqwi8n6JDRjhPfW2Nmm6UgE6fCWzwIgS8eb4qdZ/7lUBgKGxJiNJqSy6SkNX2T+IXAt4KJkDPw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14072,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfvVnmCRA9TVsSAnZWagAAaigQAJjZXpjTofcZhl5AnURC\nyJzZcNKfGWensw4e8zbWkUxJJU1ljIN2bBUZ7+QWvSAhnCbNlcavfuM00buy\nBksACXjhm2/ncK6t68d/aUejc+8SDsQFONGhqdzDu/iV9TdlWXCznK8852z2\nS+CchDTqQnwjyo9TPmmHS5ZRVIz6oevgdNbC9LXP7FUJ00USYAS9H8iOgE8t\nVb7ixeRKIpEV303f99/YycViUa3h9BeMjbX89imLjFGZXnM0RMHxDiOMMjJT\nciVJOym+jeewBIUqU7bsW7ehfMxkQ4UIH2nKtuRQwwmTO5OAIM7UzepeWXrE\n6ovx+tyuJ2eTOBr+qzmqgWbDNeW349n8FflOz92DGtOMskY4zCB++kKv1kT+\n6zs+6DP6ftljAv3lt5WiIlTzoY5EOs6INoKcNUT3bKLU4mSXThS4V1m9SMnb\nbZFAN249YF6/IaOgg2LXpOLRm5skshyATnzqbRQPbRVS/pk4iJ/ZOBST3w1S\nE6gOdgJ/EwexTS29AO742Oq6V4HJRiJ78l1B0JDl+viaH5yacAtglKSCwLMb\nHcFSY327Ak66kp2/NxV29UYTem98gQ905sIJJTKBRzqKRRRraYBi2QKxIMya\nnEEZZSK5nR+KC8syUOQjMdHBPuRlSP6nVsWZGcU6+wHcRiTCyAmAvCOBLHV+\nHzvW\r\n=LUKS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"gitHead":"18c44448fe4ec07b9489272873b8b1db90293a1b","scripts":{"dev":"nuxt example","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"npm run test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"krisq","email":"kquemener1@gmail.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"6.14.8","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"12.16.3","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","standard-version":"^9.0.0","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.7_1606244838325_0.6627491113552952","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.8","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.8","maintainers":[{"name":"badiolaignacio","email":"ignacio@getnacelle.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"curbol","email":"curtis@getnacelle.com"},{"name":"irnoble","email":"irnoble59@gmail.com"},{"name":"jongeyer","email":"jon@supraset.com"},{"name":"alexnacelle","email":"alex@getnacelle.com"},{"name":"nacelle-bot","email":"jeff@getnacelle.com"},{"name":"austin1237","email":"austindavis4@gmail.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"fa8311995e497c43e6c762c339a88b6b75426b06","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.8.tgz","fileCount":9,"integrity":"sha512-Vj4IEB47NPZENduBdg2y2jaL1Y7c2QZrArbQdxm5vSBp+qw2ODyKWclqIz/SWHyd4lRU5eD6WiGMUrxtD5+thg==","signatures":[{"sig":"MEYCIQCc+4pyfvk2dGMq1obGyD7BnsgN5LYxbtOFjugleNmcPwIhAMVtr0ftLx1X1R2NNkwUOpxeXf5MZ8OmKdPOVivLwSRh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13546,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDUWnCRA9TVsSAnZWagAAS1oP+wTBK2opuWykL5vC3QQT\nAkSunGicYt/vT8DgprD3Z3vlYPECGcBv+TFwXO28DfQEfefFJ+C1bS6Ky7Hi\nF5Ti0hlhvpCzIjQixpB2FuNqDcRZ3APjUTAXPVbJ5Hf4OFwZfzlvU+Nn+ipo\nTwgUrkHLHe2+gt31rVBANsVdIVPFNr0RWtfr6tp1hVkh9f6vDc0GJz7ZbjNB\n2TxyccvjMYoTzCH0/md+uktzT2XWyAuhc9ArjjJaD9YsT5vPSaAaMrgNVpHK\ngTr1TqOu+tOnBxmZPDGB8GLg++4NVfE7reFTwJ2uJ+UUbp2vlwvvPItX8wab\nBY2hSu0buklRZt4L7I8v+6rNsqob6R7C9xtUcbBGobXAve5k5e2HyDDMnwYR\nznDXbLRcXHT9etZCf87heoQdsD4YbPCMBZRjksy/yK+G753iDfku9k9y6Iac\nPwaK1M4EBsmZ1tq+lBRtYigAPl6jQMn7MmMHoGhDsDXSXgCLpEaNgv5IFZtS\nJwbGqWuOW9cTq6OCfCvqGaZC4svCrTA0kguQ0ugI7ns0y+HIVGm+gFGTm74w\nLn3NaF+Lj3R1rhkTOv+phs7+cJvJGCp7r2ixji8XiWgwYRNKuLqcdwsHCw9W\nBlH/cJ+XvDfM1O8YGrpkZg28BL7m3gICvPq35XVK0b8M40xAzi7zUUFtjKPP\n2vnH\r\n=0H0K\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"gitHead":"fcef9390b0344cededdbf5e0396b47a9c81578e0","scripts":{"dev":"nuxt example-nacelle-nuxt-starter-v2","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"npm run test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"7.14.0","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","standard-version":"^9.0.0","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.8_1628259751716_0.5065981906621715","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"@nacelle/nacelle-yotpo-nuxt-module","version":"1.0.10","license":"MIT","_id":"@nacelle/nacelle-yotpo-nuxt-module@1.0.10","maintainers":[{"name":"badiolaignacio","email":"ignacio@getnacelle.com"},{"name":"dzouras","email":"darlene.zouras@getnacelle.com"},{"name":"leviwhalen","email":"levi@leviwhalen.com"},{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},{"name":"nwrichmond","email":"get@nickrichmond.dev"},{"name":"brianvanderson","email":"brianvanderson@gmail.com"},{"name":"cbodtorf","email":"cbodtorf@gmail.com"},{"name":"johnstonbl01","email":"johnstonbl01@gmail.com"},{"name":"krisq","email":"kquemener1@gmail.com"},{"name":"curbol","email":"curtis@getnacelle.com"},{"name":"irnoble","email":"irnoble59@gmail.com"},{"name":"jongeyer","email":"jon@supraset.com"},{"name":"alexnacelle","email":"alex@getnacelle.com"},{"name":"nacelle-bot","email":"jeff@getnacelle.com"},{"name":"austin1237","email":"austindavis4@gmail.com"}],"contributors":[{"name":"Nacelle"}],"homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"dist":{"shasum":"c78c7086bad90b71e3d83c9f44c3d04783ac7cf8","tarball":"https://registry.npmjs.org/@nacelle/nacelle-yotpo-nuxt-module/-/nacelle-yotpo-nuxt-module-1.0.10.tgz","fileCount":9,"integrity":"sha512-Bpx/4e7FsqdLO1TvTboDrwXHbAxv8HLOR8/xA0d+yDF/POq5gRrmBV77+51PvIxNKsj+O8zdL0x955sC03ewcw==","signatures":[{"sig":"MEYCIQDHb8D7dPM9sCBAqhajBE+d+JpbineMzzR5FIB/2uJ/SQIhAP645sO/McplghkRH3x/PXfQ9wSBY5ZtWfUNmPo1Uv4+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp5O/CRA9TVsSAnZWagAAakcP+wVfO3U+W12ZPsAEUSiM\nDqBKPA7GVEPtURFwiYgnQxF/OCVLk+t7+5f1TnGw5/SSTzLytQ62w3kV2pn6\nyurCEHZXef+f4VpZ8CjA38g8Zn+E10yAXEqFcBJOsnHGigsUhj5PJxkTWon6\nEr9M+TSCkFBXjoEfNAxBzcectrEh8/mkKfR/GfYlMwNJzObFb1dgMcjJKzmD\nazC0FEJe/CpI6DKkRZUb/bGFnN4d+8nTGSmKQGwAMr2wullLpxzrRqxqRYvy\nlxp1xGm4eXfyp/xO7756Il8J5t5TYZFQiwderRBkMnJvey1ff2vVp3AiogB4\nuBKyNCEVS1ktYSRKr+kGGsuSsGxAuLbba5OioY0EKMniABl+6+Jk8SPPcr2G\nyTb//zpn2sco8Pk2Fuw1ZX9C+92NPAcT1lObtnOJecUusSD+yOGWf+L5dZg3\nbDLmnVpzyZf0mGX4CT7xY601CJI6dzcWuM4ahXctlBCe0OAe59m9xPlaJRHn\n3ugfiMlG9XaK7dlP04vvyWztlvVzombWVTycDjjGdK7ZBoPHx0EhdUzuaJfm\nGXfcwoi1PCEd1bcVcokqYH/v48PbN50iUPMEzpjVh7c38IuMZFDyvUi55Sw8\nE5omzk8B8wntfX9ulUfaHNTdlDcooAv8jJCxBmOl9KUkY0tgex2o8bvqBxQi\nFwpq\r\n=ccFP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/module.js","husky":{"hooks":{"pre-push":"npm run test"}},"gitHead":"c482cb9333b36557bb65fba2e7944a786300095e","scripts":{"dev":"nuxt example-nacelle-nuxt-starter-v2","lint":"eslint --ext .js,.vue --ignore-path .gitignore ./lib","test":"jest ./test","release":"npm run test && standard-version && git push --follow-tags && npm publish"},"_npmUser":{"name":"alexnacelle","email":"alex@getnacelle.com"},"deprecated":"This package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"_npmVersion":"7.24.0","description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.17.6","dependencies":{"fs":"0.0.1-security","path":"^0.12.7"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^2.6.11","jest":"^26.2.1","husky":"^4.2.5","eslint":"^7.5.0","prettier":"^2.0.5","vue-jest":"^3.0.6","babel-core":"^7.0.0-bridge.0","babel-jest":"^26.2.1","@babel/core":"^7.5.5","@types/jest":"^26.0.7","lint-staged":"^10.2.11","@vue/test-utils":"^1.0.3","standard-version":"^9.0.0","@babel/preset-env":"^7.10.4","eslint-plugin-ejs":"0.0.2","eslint-plugin-vue":"^6.2.2","vue-template-compiler":"^2.6.11"},"_npmOperationalInternal":{"tmp":"tmp/nacelle-yotpo-nuxt-module_1.0.10_1638372287256_0.5409005098041249","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-03-20T21:20:57.064Z","modified":"2025-10-29T15:33:47.793Z","0.0.1":"2020-03-20T21:20:57.254Z","0.0.3":"2020-03-20T21:28:32.199Z","0.0.4":"2020-07-09T14:22:03.173Z","1.0.1":"2020-07-17T16:04:33.629Z","1.0.2":"2020-07-25T00:32:04.776Z","1.0.3":"2020-07-28T15:32:39.933Z","1.0.4":"2020-08-11T15:22:46.267Z","1.0.5-beta.0":"2020-09-15T15:47:09.628Z","1.0.5":"2020-10-22T19:39:15.095Z","1.0.6":"2020-11-11T22:10:37.667Z","1.0.7":"2020-11-24T19:07:18.495Z","1.0.8":"2021-08-06T14:22:31.871Z","1.0.10":"2021-12-01T15:24:47.408Z"},"bugs":{"url":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module/issues"},"license":"MIT","homepage":"https://github.com/getnacelle/nacelle-yotpo-nuxt-module#readme","repository":{"url":"git+https://github.com/getnacelle/nacelle-yotpo-nuxt-module.git","type":"git"},"description":"Integrates Yotpo Reviews into your Nacelle Nuxt project","contributors":[{"name":"Nacelle"}],"maintainers":[{"email":"ignacio@getnacelle.com","name":"badiolaignacio"},{"email":"jeffrichie@gmail.com","name":"jeffrichie"},{"email":"support@getnacelle.com","name":"nacelle-support"},{"email":"brianvanderson@gmail.com","name":"brianvanderson"},{"email":"jeff@getnacelle.com","name":"nacelle-bot"}],"readme":"# [DEPRECATED]\n\nThis package is deprecated. To integrate a third party script with your Nuxt project, follow our docs here: https://docs.getnacelle.com/nuxt/external-scripts.html\n# Nacelle Yotpo Reviews\n\nAdds Vue.js components for integrating [Yotpo](https://www.yotpo.com/) product reviews in your [Nacelle](https://getnacelle.com/) Nuxt project.\n\n## Requirements\n\n- A Nacelle project set up locally. See https://docs.getnacelle.com for getting started.\n- A Yotpo app installed and setup.\n\n## Setup\n\n### Add Module to Nacelle\n\nOnce you hace Nacelle and Yotpo set up you can install this module in your project from `npm`:\n\n```sh\nnpm install @nacelle/nacelle-yotpo-nuxt-module --save\n```\n\nAfter the package has installed, open `nuxt.config.js`. Under `modules` add `@nacelle/nacelle-yotpo-nuxt-module` to the array. It should look something like this:\n\n```js\nmodules: [\n  // other modules,\n  '@nacelle/nacelle-yotpo-nuxt-module'\n],\n```\n\nThen add your Yotpo API Key to your environment variables `.env` file.\n[![Yotpo](yotpo_settings_guide.png)](./yotpo_settings_guide.png)\n\n```sh\nYOTPO_API_KEY=xxxxxxxxxxxxx\n```\n\nLastly, add the environment variable to the `nacelle` block of `nuxt.config.js`:\n\n```javascript\n// nuxt.config.js\nnacelle: {\n  // ...other Nacelle config,\n  yotpoAPIKey: process.env.YOTPO_API_KEY\n}\n```\n\n### Add the components to your Nacelle Storefront\n\nThere are two components you can add to your Nacelle site: `<reviews-widget />` and `<star-rating />`.\n\n**Review Widget** will display a list of product reviews as well as a form for customers to submit reviews. Add this component to `pages/products/_handle.vue` or anywhere you use products and pass the product object as a prop along with the route pathname so the submitted review can link to the proper page.\n\n```html\n<reviews-widget v-if=\"product\" :product=\"product\" :pathname=\"$route.fullPath\" />\n```\n\n**Star Rating** will display an average star rating for a product along w/ the number of reviews. Add this component to either `components/ProductDetails.vue` or `components/ProductCard.vue`. It accepts the `product` object as a prop. Alternatively, a product ID can be used via the `id` prop.\n\n```html\n<star-rating :product=\"product\" />\n```\n\n**Testimonials Widget** will display site reviews and products reviews. Add this component to a dedicated `review` page.\n\n```html\n<testimonials-widget />\n```\n\n**Instagram Widget** will display a shoppable instagram feed.\n\n```html\n<instagram-widget />\n```\n\n### What is this module doing?\n\nThe challenge is to properly load a DOM dependent sdk into a PWA. The sdk assumes each route change will be a page reload, but in Nuxt we dynamically render pages and content without a hard page load.\n\nThe plugin registers an event bus for us to emit global events, in this case, listening for the `mounted:yotpo` and `activated:yotpo` events. When the `reviews-widget` or `star-rating` components are mounted or activated, when make sure to emit the respective events.\n\nexample:\n\n```js\nmounted() {\n  this.$yotpo.$bus.$emit('mounted:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\n\nor (if you are using [keep-alive](https://nuxtjs.org/api/components-nuxt-child/#the-activated-and-deactivated-hooks) )\n\n```js\nactivated() {\n  this.$yotpo.$bus.$emit('activated:yotpo', {\n    id: '123456789',\n    type: 'star-rating'\n  })\n}\n```\n\nLets say we have a collection page and each product card contains a `star-rating`, this would fire off events for each component that mounts on the page. In order to reduce redundant network requests, we debounce these events so that only the last one triggers the refresh.\n\nIf you have custom requirements, the injected object `$yotpo.sdk` on the nuxt instance references `window.yotpo`. You can refresh the visible widgets using this method: `this.$yotpo.sdk.refreshWidgets()`.\n\n### Module Options\n\nYou may want control over the debounce wait time. The module accepts a `debounceWait` option, which takes an `number` representing milliseconds.\n\n```js\nmodules: [\n  ...\n  ['@nacelle/nacelle-yotpo-nuxt-module', {\n    debounceWait: 600 // default is 200 ms\n  }]\n],\n```\n","readmeFilename":"README.md"}