{"_id":"@nacelle/contentful-preview-connector","_rev":"39-4893d04f4f225ade1e930f8aa8cf552d","name":"@nacelle/contentful-preview-connector","dist-tags":{"beta":"0.2.0-beta.4","next":"0.2.0-beta.5","latest":"2.0.1"},"versions":{"0.1.0":{"name":"@nacelle/contentful-preview-connector","version":"0.1.0","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.0","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"}],"dist":{"shasum":"de08af9947723e6dc4da22ce7910011eb84da45c","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.0.tgz","fileCount":22,"integrity":"sha512-mZAXKyZ3yr2q8LJRx8o3LHGRc9U+GVQueHnsLWEg4KMdPak79P6tUds757M35TSXV2uo2sXgq9QJCv6HCPPcjA==","signatures":[{"sig":"MEUCIQCbyqt+FjNge+0nxCXPZemHVSHc5Wdtueepsw5Kl6Zd6QIgQMeT+DMHVSiVSsjGDIYu4i0H/iYo5tCctiWobZEY+U0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":80736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelNDuCRA9TVsSAnZWagAAyrwP/A4ZaNIQHzfnl4H6dteY\nvHJAHBYq0t97dB3x+3SWrtkujyKpTVdHSwjNgpTe0PU4hfr3a6afFLYUv1up\nf1SLeTV3tRCDr8yUEMlTX/WlnGMoN+7ue1SmBhJUeUSy8lkbkwsyXwrc8s1a\ngcO77EyY7McVCWg3tdDV67r2OTssZqWg88hK+f5+3joej6/SIk7opbfdd47T\niI4KKdDtblLV/TkXJUZ1YUPiOPMIkEsJR4fUnvwaW0/rtEJzZrOkFNdKMWiX\nJ/O4iGq73kwf3geC0AGmILR++ohdhIxeq0fADAM8F9iati3bAk8HQy/Ob9St\noSLYusbUU+er64hat5Ij5magDAQbj5Crqf4MO4xcam78ZuSU92Z17qnxhM4C\nBrkxVPSyGvaQ4KRRJfC5EidYDG3kMjRHDpwM1sioK7KaPQjS8qDrY4BeG9ef\n26/x1bp/I0sjcjl9vOWuj3LuqIvfVtpWjS6HOXlVe9e4tjSe+IUJKzUEd8qJ\nLaXpr5tLaO7GpwDOppG3ksSQIxd5DQGvit0j6kfpaOF3SRuZatNi83mXv4gT\nKdZXJLhRf8l50Fjn62kgDSMAC6AulVXmLiEHMNP2uqJ6b8UpVupo+amKrHDP\nBsC5yyQIwrIlCWkb1vezCmHhpjzYrmXTWYRorYZblGPT7hAKIcvL3nN5Ie3N\nXqy1\r\n=zeKm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"59db13dd4fc398b3e3c00a1f01fd842fb327a3d1","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"prettier":{"semi":false,"tabWidth":2,"singleQuote":true},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.9.0","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"_nodeVersion":"12.6.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^0.2.5"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","typescript":"^3.8.3","@types/jest":"^25.1.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.0_1586811118353_0.5501866527102055","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@nacelle/contentful-preview-connector","version":"0.1.1","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.1","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"}],"dist":{"shasum":"5a32dba28284e01b1949329b81566d2ffe831bf7","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.1.tgz","fileCount":22,"integrity":"sha512-4pitARDQHQEOdZhrDDAgBgb8iIvUJnQmtb1aTU9k5VPcXEOv+UKgizTzu7pkSLwUmrM6iZ0t4W/90okIbk7rDg==","signatures":[{"sig":"MEUCIQDdHfix5DhAaiI2GX2kCB5fu3hrp4YnxdbHY/esoOgT4gIgP1YUuRFozsLi0dFpr5A8yUU4yS8QOnNSVCkokQ1d8YA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":82748,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJelNtNCRA9TVsSAnZWagAAM48P/iWfHh/aStdSZXD0JpLK\nYKRcCKczB+LRJwn3kIbRAG2xcL9FCgMBY67pORQ98pCouS/IIgh08v4xbgn9\ngCFCew5c9KgkvX7kXfwWy4nsFEXs/YpYx+gx8kJxanL9c2iOowG12ktW2lHB\nFNFLnlUPmDE7G5cj/mXnyHmmW7JckGl0Ti3yXWYRKZ4DQFJY6w3gL2VIsq5E\ngVMzV32N1fH7u13/3RuqmjndToj5D3o9u3r294mmBzviwHl6E9QyER/YTYbY\npI+okeOvBpHpWjIqn0/vOW4qck+UDqotqGOIhZXM0CLJdf6zTTBfBQfuldTF\n/ABjf9aw5nuw6cGrz+DX+CFewJ3nB9vjLEKEJ9nUeKyJAAQhsRzBKQW41Vdk\n5M8Vo5zPFwZxCp8PV1gjq97JvUOSl0GXPqmVMMKVa3iKHlj+hRIhLBONQL+g\nhXcF+UqeJHze8gzrwzm+5i+6R9w1I9usMJ6IIEbgJVT9Kr+Qeg1o6hwgYeb5\nLm80AjBUsY7R+0rUj+z+flYvRQXzosYg8Lu2YDhDWTcaJDjdOiD4STJv0Exj\nAK7F0j+RJ9CN/ZkT4NiZtbbm7b9MQfxui40OHGVz4JLurmc0JHy8RUUxYjj7\ndYBNZyA/EXog3Rj6AbG3BEFuf1hWDeeLkxYbGzLLrRtt5g0sPJm2ASuAcyWi\n53Ct\r\n=EWwM\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"c145841b75d12caac8485d7d5da3cd26c01c8b22","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"prettier":{"semi":false,"tabWidth":2,"singleQuote":true},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.9.0","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"_nodeVersion":"12.6.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^0.2.5"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","typescript":"^3.8.3","@types/jest":"^25.1.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.1_1586813772984_0.9261403927234464","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"@nacelle/contentful-preview-connector","version":"0.1.2","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.2","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"}],"dist":{"shasum":"64d6c4cd2ad940e5b7d310bd73c0b59cfbaa2dd5","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.2.tgz","fileCount":24,"integrity":"sha512-OuMAQt1WTIv0z6pT8LtV35lPn4PimqTmYxK3TmShwaXVDQM9Uyh8Wj7+NsTW0aYc1eDA9rfQfb5VMSpu0Pt+Qw==","signatures":[{"sig":"MEUCIGR7UkTWBmVYbY+/nKbZBU3unihSupQ+3q+0rfqU/mvnAiEAx2nfpmnexDFdD7SbpOfIkLyyY+zVjBJd1FfeaRm6MP4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105755,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeqJHLCRA9TVsSAnZWagAA9nkP/08QxVMdXjeWEpde3oZ7\nSNbvbaL/dmPYa/HtaESdSVvzjR8UwEmVKJuoN0p512vN18SYAF+/gImuA2fM\nWOfZ7+AFZMH5F8mNIWxqGOjAO/NGLbEup+TQFxMg22OIE74maPSvm9f55OyP\nhESAl7KfG4PjFOvIz0MnL0x0zUQxLAkzyBCHkczUN8cJZT6xOtr3aGfBCgyZ\nMa9q9kswMKX8XnOP1lf3Z9oa/HlFHKZQ7kncuMjU+EJBxOI0CsUYLEh0wlU6\nGtGp7N0+qOjJ9mQFFEBeIhJRSlbap+wt45P8PZdE7LvKY3oYqrzSV5xmGiVK\nezGHqevYI1pvLnALBrY9j4b3Tetjl+pE+SwFhKVJDOzxe5GNOH07JEvwy+0c\nDVizYmBWqK2Pj63NyJpk+ZK+T9itUNvZnEYcJ591CHw1B6I4e0eXu8+xcNmy\nROvANwA2km1WwpLSt4+HPVZ3S/8Aausr4Xjs65TyBE2uymBtBR9mvXpl3nIZ\naEmQ7jOSVkn1uKbFoEpMpaei/3JS0CnVCJzAyRU/gkqOG20XqZ5qDnB/yYoX\n/F1nk6OHxOtJvZsb4A+YD5vjCR3qYKC4EjKINsE3xMv1WTcu7WClvdmvLoD7\nOQSCkNRqBWATg9MITkU8uNEO7mnhRY9+lE79kMBUsixv8np2a9qF++S19DBQ\ngZl/\r\n=p5hI\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"27ca696ed6e4f53becccee29b89a9dca725ecbf2","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"prettier":{"semi":false,"tabWidth":2,"singleQuote":true},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.9.0","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"_nodeVersion":"12.6.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","typescript":"^3.8.3","@types/jest":"^25.1.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.2_1588105675241_0.7392245968921736","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"@nacelle/contentful-preview-connector","version":"0.1.3","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.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"}],"dist":{"shasum":"b4a81f7d91ee952dfffdf36701ef64075f53002f","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.3.tgz","fileCount":24,"integrity":"sha512-sziqKejoFKq2VRdT1Vvv/TjQ2gORBxKCWzqsrI5Qp76SMfzPG/RsoDJ9sKTtcgFU0UUjEA/t0AfE/haGyG5zkA==","signatures":[{"sig":"MEYCIQCPmM+ZryHjpZmm04brIDTyxAd8ih0PsVTT3cxYXQOtTQIhAO1MMrSq0lavUF50ntuONDJ2S5Y7oOVSYmqR0NKQJ8zZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":106155,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJevIqtCRA9TVsSAnZWagAAQdcP/1VWntmjjWgeuyKhAedG\n3ggu3bDnKvGIg3IjH1PvAGKvF+USkYDuQ3H7BpCukzM1zzhYB+i0fDxG6Ya3\nYB2aMlitSKaSnILOPe4m+UkZvXo4FVTUg4BGCWLcQHJFxTgm0IPpd6RJL4zI\nqX4lLKEMcovIjeH4gvolzhquDqK5XKRLpIGQND1KuEkKqyTmbwr7kb/puhz+\ne3CjnAhk7T2B3i/Yuap848MKA/3ED1adAe3w+FQMPmV1txYi6MwWb0JshRFd\nr5Ry15LihOGja7uID6ou2GinIQoTqozbFPj/UC/BnEXXfxZJ6dzOzscYnO7W\nRlD4SJImnJl/ocxqiU9pcj2eAIJy1teQJiIfWSx+Y19UzHfFzCoGDk/pwEQG\ntnNNOGjw9GzfC7JsV+MRsY9RK4+KCcq93aXcg07Z9qRK5sW/ZgknLOZYI96E\ncTRxAtcQ0NjJF5MqN+uoZGNBru46yzKImU2Q2nkpveLtUmKdll3ULuGD7051\nsPRgNRA5BlhTX183K71EfHgRXrkvKbcHXtr23VpqZXHrXoVaUIOPY+5yU9p/\nu8dtdWJ7FyYRmY/kvljy53XtXHR4++nHHeIfSaYXPyOZqgfS70GT+ZJBB8I7\n1nYBLfsC1tpkZOMhaJgoxo6G1/4ab5ejWXrG0nIPC90CpTnhbW1E1DjvfHzW\ni7PV\r\n=u1k/\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"4a9a80434bad86b9e172e4e2fa19ed5f4e6b421d","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"prettier":{"semi":false,"tabWidth":2,"singleQuote":true},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.9.0","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"_nodeVersion":"12.6.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","typescript":"^3.8.3","@types/jest":"^25.1.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.3_1589414572472_0.6724868425014019","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"@nacelle/contentful-preview-connector","version":"0.1.4","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.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"}],"dist":{"shasum":"2704e83679c4615e299a9805d30d765d840a68b8","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.4.tgz","fileCount":26,"integrity":"sha512-DOhKvKkeZzg6khx9HbYOe4zqX+UsWdW8GtkwQyMhfrd425bml0ZXDOqF9jBLpX/fNNejexuqb5CJbjF6ldn7Yg==","signatures":[{"sig":"MEUCIQD8EGq3bb/AT5mF+7Q9+HAhBNeuYZpyxliJH9XYeEq7OwIgF+zJ8AFVKOYIu4nP7fPD1MB5LOMYH1s+JCBzr2KqFBg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110533,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe/RSACRA9TVsSAnZWagAAjl0P/RQR80nmTzO2ylYjnrqS\nJlySHMCN2ETowW0zfKv7MiHAIEif25gSMr5aN1Uo2kaWCHjxEePupcRuRgtg\nt7vXC5ZJs2FaGIAftv1j/tFWM0xBJScWtGIoaxgYVK4PWe7Wipt6KnsfH9aq\n15yAYpHlpjBT+mSUG6CB3Abpsbf3xDJ0sqpv8maOiMOiWV/tm0d15asDldRQ\n05K3g8fUbvkzWZzy7/FeYx2Ewnson7/kdHtcndLDCZCTCOxIrrq85lGcTeHr\n4vAh/ZjIsBoDNA5u6NPSkTSiz30efFCZNx2apM6EHTXw2V0mC3YuyHzaSzf3\n082QyIVMzwGu2JpsGqfSyAy6jFNFj4tKMqK1f7ZWsM0zlQrj18njBIIdPhqn\n1UTIP1fDWF7CgRRoSMAFqZNoCA6gGSLgKtGL3V8GeK8K5J8SJwdTxFe7Iutd\n1JaJXajhqlcVzaAfH8BBNtkfigvJhnJSAAYZYnbRL85vtyxGZ6PR55sZ6Rme\njYkWLSVJRgk6JTvNflutBCUb+vmGDg8v23Ftitb98VYDAr1D1KO8cpWo46kC\nCeBf02Js0FGmjpvAmiT5uAvNO7YFwMChOkMnaHOZoArC0h/R8hn2qzx47XGD\ndD5TBuDe2wgX5kmNlZNQJqVeQuNYl4w/WiRF4jVpmKPdcON9FqPNX1OP4RQd\nWdcF\r\n=k3YB\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"9876d69825f84bbd90b55cc8346831b739100ab7","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"prettier":{"semi":false,"tabWidth":2,"singleQuote":true},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.5","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"_nodeVersion":"14.4.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","typescript":"^3.8.3","@types/jest":"^25.1.4"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.4_1593644160216_0.5425201555858405","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"@nacelle/contentful-preview-connector","version":"0.1.5","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.1.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"}],"dist":{"shasum":"f126535aa28bce9b12bbf798989f7f9d65e4fe48","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.1.5.tgz","fileCount":27,"integrity":"sha512-cOJMnsBzuHOg8v0Bd9LpMa70hVlYfkP9I4aw93O7DEWijWNk45P1ewVVWFADkbKhKQpEAtFDCfp4sdCtWyUyxg==","signatures":[{"sig":"MEUCIQDOMesk69CkNsrTmOxb5/3focV6mfvvcCTk9Sdy23smAQIgf9OoEtyG7P54X4kJPcCbqsAJ9PQ7DDBWjO0dsmaBUSE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":110967,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmwRGCRA9TVsSAnZWagAAqUMP/iDQ9L1yUxvyLmunC3PO\nr/6y5qPEynNcbLHRJbQag7WbeC+wa0qMknQDEnnZcWdkc7C4vt7KEVjdm6Uy\nk4i46fyk9HEvJoIK/CDw1YikApRIQY2y/7AjE7Cm225ZXtGsJANLth2zXuL3\nfLSX7YP+6IX0Rr5uCce5FDAdQaQ+DY3z5mmWcXnsK+8MuWwuVjZOiCxVSYUX\nP5uJJUYEb3CZme/A6H0D7gXzRUN8ijt+gc1HbyHmalZVP/+h4U5hPaU0I7Xj\nZwKELi5K9pP5RBcK+2YjcYzYdq1z1nVRVZLIIAlccBmfwZ52xzFn4AiW5uww\nFa8bu2vdHksT8uay/9e/Rtpt1NL3HooVzCAg6/jRJ1v+x+N2L0qmHCsIpcSf\n1Jzaoo4ga3qfyNY3u7wkxoUDGlZfGK4rEEmryOa5+IcerCRVnorwbN8rbpe4\nrLXhC8rXKXGT7Nv8rasSJeFxpXoIqohSEtuBP8z9aR1sKQarp3oGIF42k0N1\n3Th7MoLcRL4eGou5BUd54d0F6y1dB9yKMZciQTZoFA+k2XqYz1o3Lx7hZUX9\n8hrQ/oPm6rVZ94uQ3D8EKdUVp/Ty3x6SMvSncXsLknmd3YBu8o/WY/dApD5O\n6QobVJoe9wxfTW/zzKVNwMZkJX6umUqQZxyYYOLQLxOv++3R9rT3GdvpyvfI\nVq13\r\n=yJAQ\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"12.19.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.13.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.1.5_1603994694547_0.25200387874004493","host":"s3://npm-registry-packages"}},"0.2.0-beta.0":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.0","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.0","maintainers":[{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"660556c470888ee964e3ce53b07776f8acfbb5cc","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.0.tgz","fileCount":27,"integrity":"sha512-Onu9HLKTg7d1tnmJ3TYzKXyBHiIpIvdlv8nCRExCkBMHFQKABgN6/RxRH929SFiASn1uMIy1/ou8VxeoZhkPJQ==","signatures":[{"sig":"MEQCIFbGgcd/PJP7Dpg3w0sIDo319nriVFth6Nk5H4Cq72QyAiAhSnWdA8g+MK3Fa25yI3q/gj6FtL/kwW6fmQwy5qi8Jg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":296643,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJudaCRA9TVsSAnZWagAAKvkQAIR5uJmIkKMdJQSDBqWc\nJjBnFpGpOPhJwLFOViJssLI/2R1RSuHZSbdvMGW5V1ljkHQfQdyTTgbXPLGo\nQTLk0dVvy0oQbyT2vN7ZuXgXrQ5D/JDulF/S90+oFAcbu7kMY6GfbRncVTxz\nNMy521qWSmz/YxgOZhmMMDVy9GMU5+GEzEh7AOroczRzOFnkREyH5F201Z2i\nqrJs4yljJN51pYRDgSbwE3xUwV7rVL2AjN6T8oWnV4gxk4Gde+Ou4lK4KLnb\nHqoQ9jetUzywRIFMNr1B6nTGtg3OhOt6bXmQu6OUgaJuRaY755IOjIEqqSQ+\nIdh6+nIvctSfdGLPc14G81y8GzmeTFjaRU//it3TBANCy+SFTwf0MPyaJonX\nvuCB6pNgMTwEUf7gG4xoPpdz8UrtKdNPGhihvvU38s4HRKK1Q8OSxCIP771F\nZYCyZWOIbmHF7XIWbDbxRtnJpThNH6kz0ZjO20B1iwF0ZMDUWJ4/hMylUENP\npQK3LJy3gs9Ugavbj4LUK4o921hvxU6X/bBQ8xlaV5fFrCl7ataEkmGksH4P\n8k6tvC/F12LxcyzD0FFsx62FDvPVyVWuVh6oOM1hmJjdOpvUeRu9SqjgHq6v\nGhINMJD72q2BqqwUTJImjPfxz5NYhK7I+UOVJqo5fH90Hj05xabPHt0IIJaz\nJPuq\r\n=DRfC\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"# Nacelle Contentful Preview Connector\n\nThis package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.\n\nThe Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\n// Note: the Contentful Preview API token is not the same as your Content Delivery API token\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  contentfulConfig: {\n    space: 'CONTENTFUL_SPACE_ID',\n    accessToken: 'CONTENTFUL_PREVIEW_API_TOKEN'\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulSpaceID: process.env.CONTENTFUL_SPACE_ID,\n      contentfulToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"tsdx":"^0.14.1","contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.0_1613162329609_0.8085737669594317","host":"s3://npm-registry-packages"}},"0.2.0-beta.1":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.1","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.1","maintainers":[{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"42778419a8ead9ff31d5f1fdd381e66bcbbe483d","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.1.tgz","fileCount":27,"integrity":"sha512-vQnxSxxjuEhnKhnkq+gym6HnThmSXBMALJmKvB52WOyb11TXhNMkuJXuFewDVMc3AMW+U/lfITb2tEhpJVmxdA==","signatures":[{"sig":"MEUCIAlVaYn9c15IYDdu2IqF8jpi2nEg8iJ6nuGImIKs95QbAiEA4rpcnz6GGuRqkWZji6F6hwRHPz7IMi3gg5FjlcxWLxM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":296679,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgJu3MCRA9TVsSAnZWagAAdeoP/0YlM64ndc0bWIKCUmus\nmxc3tNb9L1aa+GA0EgyKMs95aGZk1wosouBRRPJ7gjPtGk0KwMQz7sB9fkr0\nHgAhZ41Nk2RAPCxYR7kFBgJwBXk11X9bf5TVimIX3zsQGQNLYAunsuFwXQGP\n1Qo7l48vyKjPTaG5fmglU/Go/kP5XalxO7cd0EEkdX6HLOTgUSQaCOGuTBJW\nDdd5LSmel0RTVhL6V+CiNRe/SAWFUdkpSFiMV4/vWZ5HILD1AFW9hvqZZO05\nz/S3xvPmf6JLx+6KCwt9sCFvRzJUVRNpU72N22ZOm9kROJB39NUqI76LoB6R\nV5eFFIzGohLF6GHEq58+dnGUQSRhzLqrlhfDRsL7hsVGU9i4he5doGR8Puxi\nSdvFNiCJDwi/L5/V3eRqPK0JGnY7t9VIOz46tBFzelN3Oc0GztgFj/1bqIxu\nU8B2/ZLJ53GpErlF954MNALjSwmLzhN1lIIuhkQdDTij60deYuO6ZRrPG4yJ\nMA6OeUwOcdZWXeOEgW34iG46B+YvDvHhjh3MiWWxqKmKKl+YSIMAedH3kgU3\nXPmRbWxwGkCm1hoojlPHYydar74qKEGZWQoAB7eavc9AZENsz7Hjy+KRmTw6\n0pJzUsNnnSwi+QSfqUx687onU6TQHClW/AEM9dC2lVfp8cVGqN6dJHVU9UcE\n01qC\r\n=2tvG\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"# Nacelle Contentful Preview Connector\n\nThis package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.\n\nThe Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\n// Note: the Contentful Preview API token is not the same as your Content Delivery API token\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulConfig: {\n        space: process.env.CONTENTFUL_SPACE_ID,\n        accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n      }\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"tsdx":"^0.14.1","contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.1_1613163980119_0.2071725227394987","host":"s3://npm-registry-packages"}},"0.2.0-beta.2":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.2","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.2","maintainers":[{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"fde34f9c0ec1db63f2072cd34ca88bb218f7c72d","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.2.tgz","fileCount":27,"integrity":"sha512-0UpzJ0PvYxe90YWnCURCiN8hnm+nd0oxl2iNIR7jdaM+w4lEhflVvdGKHweqKGLpgMkDN6EuuMXiEElkfAz8og==","signatures":[{"sig":"MEUCIB2xWT23eFgSChz1MpzWBtuOeiICqdgyikfoIT7ADwq4AiEA/GFXrIdXI6uHKPxuNeGhaEv0cZpni1rCSmArjF94bRI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":297237,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLniJCRA9TVsSAnZWagAAekgQAIxjEO7xgYk0WeE3m0dS\nf484GjmVqxwAO+B3nw9daxANVv9vftRgdpXJILgwyTtZmqfXwY/7q38Sm9Wm\nTBT2ayHtodLFlpvElzCCvItQsyh1JbgDPJLG+Gle8TjfQbR4rkEPxw6IDUJ0\nYEWcDEnJFU0VDLiTjk8gX4z21IcptpIfSNMmXqLCovpKGWGNE/QCnxPfdGvS\n1JCYbkrLxdTXu+CavYFmKEVs68+TTTuiuWxWpsW7mubaZAUQJTt+0vsiD4IU\n+etY/C2Y01cybsPlfn6VI3l9ivhZ1F4NKNj+lXO/t5jJmN8ijQh4/5IF748Y\n2qINkWs/w6UL4dtVmJI//U8Hj4QDV3Sxd2mBXc8Mu1U+lcDWNEDT8IOvWEmj\nVgBdfgplpbjYlAQKl48nIIj/npNBU62k/FgCMvzRKfiH+b+rhANMqLWUB6wY\nOMrQ6TqWbM24a8i1xVSO4S10+GJTkpUw4KAoxUdnnzZT72luSQPBYKzgwZQd\nCVBOkSBzxgFPHTJ4JIynt+i/dKGw4u3v/6tR6RxKsRQxsQfPqTtRz5021tjF\nYDQIWRiqvzo6SnqOhhLzb5mFmxhyU+2jp+V5BgicWs58u5XWoQ1ZwJHgyGiU\n6ABQSO4owgMlCBQcOj6qv7yTQFUV9yqpJsqokxOtyam/IgiOyYYok/YFpVr1\n4Sba\r\n=MV8E\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"# Nacelle Contentful Preview Connector\n\nThis package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.\n\nThe Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\n// Note: the Contentful Preview API token is not the same as your Content Delivery API token\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulConfig: {\n        space: process.env.CONTENTFUL_SPACE_ID,\n        accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n      }\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"This package is a connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"tsdx":"^0.14.1","contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.2_1613658248301_0.7907995959735221","host":"s3://npm-registry-packages"}},"0.2.0-beta.3":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.3","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.3","maintainers":[{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"be1bd993cd0fb024ead8ac816e3053e503626627","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.3.tgz","fileCount":27,"integrity":"sha512-TntHZSmHaPJ86dQbR1cLnjkfrcbzs3VRBeRkWl2dnCP84MdqIOTLjxfBB4uahTMrOl1noRMfTnz5mtbm5QjOoQ==","signatures":[{"sig":"MEYCIQDdIsTS6RpGU7L/Rm97jqzBABJJusW2KohLQDnAvQOoBwIhAPISU9qkg6U7pka8yR2j+3zCmPa42BUpF+SZlBepG5vZ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":297487,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLpi/CRA9TVsSAnZWagAAcTAP/AlgbB0RwcIj3V2xh9u7\nY5G8K1qxu3BRcbwz6XJ/EA579k+2WPqKYHQkJtB56xNMoLd6dQwSV4C96J2Y\nkagAPPqwmnvkO5NbUH9dN3cSS+wuKgF1jfBh13PowsKUE9MRPCM8c/0L7bnC\n4+hp1NGJURVG7gbjtjv5XYJ/jRmlbWK9zKNqtuhL5DIMf4eP9h3Z7HBTQlM4\ngAvx8XWl0k4tB1fC48Q2ZcM6/OFKjFOnD8/6O6j6hQo2hUG0oxuYr0NHzNEL\nn216fXpJzg3MN4whYNpux9kQ5mPx+Iyl4Dvh94sLaQOGbunxxoQ81X3FMlWG\nNeCsfex3ac5MGbKjrmOAH5ayVmjeaVPHi7j382gbM8V/GGVK51Pdu/z4f25m\nEKtRe3Zv1ACZE0GGrg1LTpTQPCSqf48Ce6bYgc24caQCCWsknJyl6PRgJywb\nVIAUb60sg32jnZdczYqzzmIrpS4Pm3hbK+gYfZicFtHP9HFMM7o6s66ZBq9P\nk8tpz0VfjqlnPhnwgUwz/3NE44pCt7VSWLCkETOmJ3/LHD2zDI/OjBiMsBaX\njgc3UgRcbFIyLLML2d4hfwEPn5B0A6+OINKlooR/pxpUt1XBa/KOJlkG1WjV\n3WZoPgdFhT67RFr1JAFRZFWBI/2fndKQ/8H14g/a7oFchmFN1FtaebVKJIhm\nYj5Y\r\n=gwmm\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"Connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.\n\n# Nacelle Contentful Preview Connector\n\nThe Nacelle Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  // the parameters in `contentfulConfig` match the constructor for\n  // the Contentful client (https://github.com/contentful/contentful.js#your-first-request),\n  // with the exception of `host`, which is optional, and defaults to 'preview.contentful.com'\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n    // Note: the Contentful Preview API token is not the same as your Content Delivery API token\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulConfig: {\n        space: process.env.CONTENTFUL_SPACE_ID,\n        accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n      }\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"Connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"tsdx":"^0.14.1","contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.3_1613666494575_0.927248149161944","host":"s3://npm-registry-packages"}},"0.2.0-beta.4":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.4","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.4","maintainers":[{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"a8e8cb6fa7b340f9bd72c5ff9c8b34ef34bedc66","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.4.tgz","fileCount":27,"integrity":"sha512-Qkeym54mAXwqSJi5ZW/e0GIPLi3pW/m6epH5koCkw6vk5NSlygo7ceH0M4pCjM9widtMoL4MW+vJ9mJGLKb+Bw==","signatures":[{"sig":"MEYCIQC8F8BZ+AK6X6fhoWaGNimSCNMuOz6TAEyfwaP/+cP45wIhAKcKAgWBui2Md3HFWvgVQCjn4CcSS2SkBSx4QtYKXBsB","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":297487,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgLpmgCRA9TVsSAnZWagAApq4P/2tRNYFJp4cFCsji0UnQ\n+BShKztHX4D6pa1W0uD/T/QP5DPkkDp0DHYU5jH3UYxbyRiXMO1UzvHhPsI6\n8WLK3gTRB59oYImZcHD1FvuYVti02RkKOlTyn1yGJps12MKrmd0Tsm2OccYs\nQf4wOzKTAWbKSdLv5zMdHK6gtao9n5X9sLmIVOHJseVWsonVCgIAPmg1wu9o\nLSaDRE6O6slXgoH/YufQD47zS8PbBvTb5T6kVSBaIz25Oo9XF4qwICCtzqfB\nXQBzqimGoLi5PRVQP1Tgl0ajw0XebsLwofXmWXk9YqlK8iqstUoBB+Qe0nDd\n0ihZBv68/9p6qpCoEvgA76rMB+u13DVSCWJ8tUL8zNja6k3M9y8mQ6pcqPfa\nb6wXO7L7orDe52fgG0rpQkfck1AthmUVu2mI1bTvNQuSHkaB4sE4wmLtHvdS\neQJ2UZoNT89y7B00qD2+Efr+LU+ccWsjy34iSqt+mZFWSbJ6fYglakd5e4Vc\n0Q9vpwnsfs4t3KTKIdxUzjGNSZFMvSqwyG6VZPu7EeHuthsL8sWyR0FtVV8Z\nuLdIxMy8e9z8Vj6MDfXSNg4uVn+0DxttRawJq09wNhm0wV7WY7s0UjBihisG\nVa2ETbChDoKpcAJ2yGlLdNjSUrhFWRIZD+sqYDyeg5am41kzAc1rszLb3IHD\n6BiW\r\n=AY65\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"Connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.\n\n# Nacelle Contentful Preview Connector\n\nThe Nacelle Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  // the parameters in `contentfulConfig` match the constructor for\n  // the Contentful client (https://github.com/contentful/contentful.js#your-first-request),\n  // with the exception of `host`, which is optional, and defaults to 'preview.contentful.com'\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n    // Note: the Contentful Preview API token is not the same as your Content Delivery API token\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulConfig: {\n        space: process.env.CONTENTFUL_SPACE_ID,\n        accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n      }\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n","engines":{"node":">=10"},"gitHead":"32d9cdd5eee2272f35cae75d07372d8550082b5c","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"6.14.8","description":"Connector for extending the [`@nacelle/client-js-sdk`]() in order to allow live previewing content updates from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"contentful":"^7.14.2","@nacelle/client-js-sdk":"^1.0.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdx":"^0.14.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.4_1613666720164_0.8705243248998029","host":"s3://npm-registry-packages"}},"0.2.0-beta.5":{"name":"@nacelle/contentful-preview-connector","version":"0.2.0-beta.5","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@0.2.0-beta.5","maintainers":[{"name":"nacelle-bot","email":"jeff@getnacelle.com"},{"name":"alexnacelle","email":"alex@getnacelle.com"},{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"a0b8712eb9c6fdd486848ba84ded930898351c96","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-0.2.0-beta.5.tgz","fileCount":26,"integrity":"sha512-Zj0cy1Z2XzFhQqwvQ+opjjYtJe4V7Ny1eb28GZDEkdxStXHJyxJze7QxZYdyYJDjMOQSDCKn+gUCzER1q6HzSQ==","signatures":[{"sig":"MEUCIDTH4ICgmD4/N5zdnocYRsTubNDfatkE5UtF2qlM2YvvAiEA44Y5E5tGLw+AhrEN+aDUvx+VODCkOhQSzUXYQtQR6L0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":299894,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgx/uECRA9TVsSAnZWagAAbwAP/0ZC1ZQK3duJsqs52a9A\nA8vhG8/hY3We3/70zLQvCd5a4w8kpTC7nnuT1CQ/sdgRhyjrn9qkj9OLs4qS\nrVXLs31UGGM91B3IHZHkJ3cMeCYEdp0uu+Py9m9FPK8kjB1TyOzzXjRg4YJv\nmGwziDlv81BmW5mlRl/3da8qz9VwUcnkVoQ0WXHPsNfyhSjhIVG6ns89ftww\nhOkBBTuI9u8ZKZtKEDac6XZ+sSNLV/W+abR9jnL3grPpyfCULudFK63p5L11\no5To2taRXx86zEsd2+lMJzRTxIwYe713pnzcIK5DiEEusF7ivMyvhIeF8fec\noAfkLI2wnmOV1KMevxhIoKzP/2ayoa2PvGPJyo+Hwfi9UyHj217fPhDcni+I\nCYyGVXFYtjk1HkAcVoQBj+dvsuJpYMNG8m/9AWx0rLwX0odGaBaGqx8B61B6\nC9Kw9hulCpSTFXKevs7ZnYaqEnjV5zfB1NeUPhlqmN/RzcY0QRVaExFlxlE+\n6QhR4hvOkdYnLN8oQWyW1NFOTxAMjHeuEgfQFxbVb8bfOuw5rdc1uGwtAMmV\n2DNC+WTfelkz/1B+1yPKYcNS6U/pUuDNjURBZl7wu2eWQUJPjS2ttO7eUUFT\nkMidAfwUSasjV8WrAHMcSOugdjqrmNHF5arsbhq8mIib7qwkqKhxUiGXsAv4\n4E9S\r\n=915w\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","readme":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.\n\n# Nacelle Contentful Preview Connector\n\nThe Nacelle Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  // the parameters in `contentfulConfig` match the constructor for\n  // the Contentful client (https://github.com/contentful/contentful.js#configuration),\n  // with the exception of `host`, which is optional, and defaults to 'preview.contentful.com'\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n    // Note: the Contentful Preview API token is not the same as your Content Delivery API token\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  contentfulIncludeDepth: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: previewConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Differences from Nacelle Client JS SDK Methods\n\nThe Nacelle Client JS SDK's `data.article(params)` method assumes that if a `blogHandle` parameter isn't provided, that the an article's `blogHandle` should default to `'blog'`.\n\nIn order to accomodate content models for `article`s that don't contain a `blogHandle` field, the `@nacelle/contentful-preview-connector` does not assign a default value for `blogHandle`. If your `article` content model does contain a `blogHandle` field, please supply this `blogHandle` as a parameter to the preview connector's `.article` method.\n\nFor example:\n\n```js\n// EXAMPLE A: Articles contain a 'blogHandle' field:\n\n// @nacelle/client-js-sdk\nnacelle.data.article({ handle: 'chapter-one' })\nnacelle.data.article({ handle: 'chocolate-cake', blogHandle: 'recipes' })\n\n// @nacelle/contentful-preview-connector\ncontentfulConnector.article({ handle: 'chapter-one', blogHandle: 'blog' })\ncontentfulConnector.article({ handle: 'chocolate-cake', blogHandle: 'recipes' })\n\n// EXAMPLE B: Articles don't contain a 'blogHandle' field:\n\n// @nacelle/client-js-sdk\nnacelle.data.article({ handle: 'chapter-one' })\nnacelle.data.article({ handle: 'chocolate-cake' })\n\n// @nacelle/contentful-preview-connector\ncontentfulConnector.article({ handle: 'chapter-one' })\ncontentfulConnector.article({ handle: 'chocolate-cake' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.CONTENTFUL_PREVIEW_API_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_PREVIEW_API_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.CONTENTFUL_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include CONTENTFUL_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = new NacelleContentfulPreviewConnector({\n      contentfulConfig: {\n        space: process.env.CONTENTFUL_SPACE_ID,\n        accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n      }\n    })\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to include the new plugin file you created.\n\n```js\nplugins: [\n  '~/plugins/contentful-preview'\n],\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  CONTENTFUL_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  CONTENTFUL_PREVIEW_API_TOKEN: process.env CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\n# .env\nNACELLE_PREVIEW_MODE=true\nCONTENTFUL_SPACE_ID=your-contentful-space-id\nCONTENTFUL_PREVIEW_API_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n\n## Upgrading from 0.1.x\n\nIf upgrading from `@nacelle/contentful-preview-connector@0.1.x`, please update your preview connector client constructor as follows:\n\n```js\n// 0.1.x\nconst previewConnector = new NacelleContentfulPreviewConnector({\n  contentfulSpaceID: 'CONTENTFUL_PREVIEW_SPACE_ID',\n  contentfulToken: 'CONTENTFUL_PREVIEW_API_TOKEN'\n  // ...other config,\n})\n\n// 0.2.x\nconst contentfulConnector = new NacelleContentfulPreviewConnector({\n  contentfulConfig: {\n    space: process.env.CONTENTFUL_SPACE_ID,\n    accessToken: process.env.CONTENTFUL_PREVIEW_API_TOKEN\n    // other Contentful config (https://github.com/contentful/contentful.js#configuration)\n  }\n  // ...other config,\n})\n```\n\nAlso, please [see the docs on the use of `blogHandle` with the `.article` method](#differences-from-nacelle-client-js-sdk-methods).\n","engines":{"node":">=10"},"gitHead":"5601f498cb7dbe92cbbfced856480d4f2ac69249","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"7.14.0","description":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"contentful":"^8.4.0","@nacelle/client-js-sdk":"^3.2.2"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdx":"^0.14.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_0.2.0-beta.5_1623718788510_0.6546716703571787","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@nacelle/contentful-preview-connector","version":"1.0.0","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@1.0.0","maintainers":[{"name":"nacelle-bot","email":"jeff@getnacelle.com"},{"name":"alexnacelle","email":"alex@getnacelle.com"},{"name":"jongeyer","email":"jon@supraset.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"}],"dist":{"shasum":"0e27d51adaafd88ee47a74ad178899026509cfc9","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-1.0.0.tgz","fileCount":26,"integrity":"sha512-lRmuSGD0vaLIJgp5D4I57WnRpcwXzbPULZ2erM3NoAVubb7JfGdrIf0x6IHSzm5xbloheD1kon7BbadmeGS8lQ==","signatures":[{"sig":"MEUCIQDNJA00R/kCNxSLNgFUJqy3PNp687cMMLQdPQ21zx8S5QIgMyF0F86/Vc1Q4YDUYh3XQcgvMr8A2rhHIZQurEa5bxU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":299887,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyQBgCRA9TVsSAnZWagAALwgQAJuk2aVNgKYFxMS/ORQ8\nC7Wgpkfr/SrfsuJEWeMc549x42poNvl+xmQD4YgssC7vnAatMCKR8cx8TuDl\nY63LBSyb2cLtN1AVs/jckI1WFVSMKk9jLqZ14U0KsteC0O6JT2O/2WhnCECV\nn+4FfQUIfrzTW/WgV2Am5PxjbRfSYKuTshLDutMeksvo+t4XAnJBJpluF1OH\nw5ASjEKYHMOTFGDm6yH6JYs5Xb8zDlxYjPG5Jh6OAXvUtosLBER/vje8IYUd\npiDjN3oQhAHdgc7ijb6OdtulcNnFV6m9s6kvvdwLl1vxNbvijf0bmJh88Dys\nCLP6ctOIjhg+4W8m/SgNJxTPQ3GNU0rNICWSZUF5xiQL2GFN6Juy8tl4Eulh\nEyiMkND5yRgAAoNG8qFV/gEWrrQ5mBFjBZ4fVpAdYZHj/g2ih6lQZdc4WMp+\nDI/mLssBUCJM2/OaBQQQkFQJwTeLXw1qLKmIqW7iyJr+VxHdjgO2l1KCaoWm\nNGom78qJ96VIVMiRVHWBcz7pnHZLf5uqC8HU8eX6U6NR4X2ApJU6Nrk5p6AP\nWHPnbc2xY16MV9BgsknjkZuvyxiUWE1Nk29UXzmuuJ/ZGQC4sJhawBt73zH9\nQqoyecqs+QACTFFrT6k1JwHWtTWrrUAUo4Q9ShUN65vIzsUkyevkYKZ7sA1G\nA1ke\r\n=0wTE\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"fc4adedecc166ba406a9795cb13f619ea6f44ff0","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"7.14.0","description":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"14.15.0","dependencies":{"contentful":"^8.4.0","@nacelle/client-js-sdk":"^3.2.2"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_1.0.0_1623785568132_0.13915441946705065","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@nacelle/contentful-preview-connector","version":"2.0.0","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@2.0.0","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"}],"dist":{"shasum":"0f2d3384c3ef929dac04cb46c22b78021ef24986","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-2.0.0.tgz","fileCount":27,"integrity":"sha512-bC5Qe/yxOW94Xb4JxyagwyD+a5P46pGzCIJComMmLXYAD7aiaRp9iGEQrEeVtIs710+sLXP5loaghks6tvXvbQ==","signatures":[{"sig":"MEYCIQDrpUb6fgCm57Bmk8hTds7yAj2T5r+aMir1Tv5KVB9PhwIhALLreJELfo9I6pc4Owbr9hqpvmPIKdIaJxiOEfa0n+Y+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":305964,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhDHdVCRA9TVsSAnZWagAAhjQQAJmGbwA7ZITs7IXzehP9\n1yVFVibTX4J/LM1jU9F3K/Srl+exx/50mBepdVnycGBbrIbj1BtCtZLA7CNb\nwCMv1Jdp8ZMh9vm+rUphk5JbHrHisoEz+q4qNSRVwLqrZEf1o0nOJc5i1JyL\nv1V+j1MjhNvK1x8v0AALJ0wT34YQDy6OOrkljf07oWlVbf2glIh7MUKQzTGm\nMI14eaXjtKyJnB1P3Tw62LJd1qFB6uQmm2bw2mGNpkfswJq9+6EHwqs84zro\nFMO1OOUYnnfkmT2ZOX5dXwgXpMw1WZRIZr9vPZ6pzP6dP73jCuzAZgp6bGd1\nc/CfJigKa8l1wRfrg91KCgRa5PvGo2k67V+nk5lOTQZKndWViz9ZQXOwf3ln\nxzAik24QAQKF855psGpW0NIbb6EgXrqDHdgV6lc46F2P7AihLviRoLHee5ZA\nZIlODWK5TwJQN7ayGsaUfNACHYjodzMQ8eiKn34jhaCUKjXvr2iS+ZV8q2Pb\n9tkXJfBCcEaynC1EltnPFHkf0olFx4v1oRZQ6n513vTcklPPZwcKmblpTYaH\nxkG+oC1PJ5As2MkhAL3geEKGc5TfsPmLpqZlTr2IeyAJkLIL1bdK2f/frl/d\nQ+UriEvYYMJnjNwz6skiSYXveU7GYoTaUjMcXt99I2tvdzeWIuiShi4/vwiR\n3OrT\r\n=Sswa\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"f3c2cfa9769d8e7ec806b5b00752da6461f72fcd","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"andrew-nacelle","email":"andrew@shopelf.agency"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"7.4.0","description":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"15.6.0","dependencies":{"contentful":"^8.4.0","@nacelle/client-js-sdk":"^3.4.1"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_2.0.0_1628206933621_0.255902157013725","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@nacelle/contentful-preview-connector","version":"2.0.1","author":{"name":"Andrew Laskey"},"license":"MIT","_id":"@nacelle/contentful-preview-connector@2.0.1","maintainers":[{"name":"nacelle-support","email":"support@getnacelle.com"},{"name":"jeffrichie","email":"jeffrichie@gmail.com"},{"name":"nacellemarek","email":"marek.dolgos@getnacelle.com"},{"name":"darrik-moberg","email":"darrik.moberg@getnacelle.com"},{"name":"stuckya","email":"andrew.stucky@getnacelle.com"},{"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":"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"}],"dist":{"shasum":"bca4fa7edcaac79b79c3f8b43a3acd770a7798cb","tarball":"https://registry.npmjs.org/@nacelle/contentful-preview-connector/-/contentful-preview-connector-2.0.1.tgz","fileCount":26,"integrity":"sha512-xHm9ipTX2e0bPXX+jOid9uljsp4StpSRh+yRNrkOyFgOUwBSAZer30z4ZRD8TAwxcQcXSEekflKLvoQxEcHpXg==","signatures":[{"sig":"MEQCIEQvHUSVZEU8x14fYOMoPQwH/vJgceazTctGUVryBpinAiBmj5k7TPxpTbB5bdD4oe1qLXkAnnxEKBzZqwH8Zf6Snw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":305987,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuyXfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoILxAAmF6ti8VHQxRZbyteAC6H72X2wYPOawOLA01rc9nQzAorFra/\r\nnwp29yx6k4gKfffGvYp6rwrQXAZVOgDBwjMLbC2MC5gvlfGjC5TOaL1lVNj/\r\ndAZEwBt29lH6MrnqsJoZB13sKuhh2YHIM/kp03NYDr30Ud6EThySyE5CuAyo\r\nUn4CP0S+MftT4fyX8t7rvcCWytoYqsvaazUKM4ms+WAv429NSD9DVrGtx++6\r\nGUJf7wYRkA8RuvRNUuP3WbKtNj3Y/v4Dy82FOiENOvaWBVA2J7SqpyGPIZau\r\nykA0MbaqvH0Q+EpXa/EEAOO717cRr5t5aYvk9WBG2jc9qaFdZCyQrz6hgAAk\r\nFUkXElT2isWNuRMSFEXN8LMrc+hunwiSGZv2BEyYUINSIv9pK7Tzz6frn6Cy\r\nvTHXaUdggMz+FFsstXS8PxRCMX39jvsw82kF09EQX6hevzNTUqqSYmpqxkcL\r\ny6EIqDv6Em8JASFB/Bi8zPqvMSwIyNT/1FcdU+o5nWbqp7u8vyuLG3w/cR2J\r\nQJlshweB0zeXlOH8l6R2YSVqTnHO39cqPWJXzLttVZpGlsawwfEbQ1NITRP4\r\n3fTG3L4hqyyoKg6nJ/q6ZDwT3VOaTPd9m9u8nbnFHY9XRCVCgnMFNLqOjt34\r\nTJgpXxYFyJ5EVVWjCwcNh09y4WhLiOyhq9Y=\r\n=0ypc\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"verbose":true},"main":"dist/index.js","husky":{"hooks":{"pre-push":"npm run test","pre-commit":"npm run lint"}},"module":"dist/contentful-preview-connector.esm.js","engines":{"node":">=10"},"gitHead":"4d5f1ffa2645bc2c72d2c1da9507e587de7af1e9","scripts":{"lint":"tsdx lint","test":"tsdx test","build":"tsdx build","start":"tsdx watch","prepare":"tsdx build"},"typings":"dist/index.d.ts","_npmUser":{"name":"nwrichmond","email":"get@nickrichmond.dev"},"deprecated":"Please see docs.nacelle.com for up-to-date guidance on building frontend projects powered by Nacelle","_npmVersion":"8.1.2","description":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.","directories":{},"lint-staged":{"*{json, md}":["prettier --write"],"src/**/*.(js|ts)":["prettier --write","npm run lint"]},"_nodeVersion":"16.13.1","dependencies":{"contentful":"^8.4.0","@nacelle/client-js-sdk":"^3.4.1"},"_hasShrinkwrap":false,"devDependencies":{"tsdx":"^0.14.1","husky":"^4.2.3","tslib":"^1.11.1","prettier":"^2.0.5","typescript":"^3.8.3","@types/jest":"^25.1.4","lint-staged":"^10.2.11"},"_npmOperationalInternal":{"tmp":"tmp/contentful-preview-connector_2.0.1_1656432095735_0.2727447678773891","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-04-13T20:51:58.147Z","modified":"2025-10-29T15:32:13.016Z","0.1.0":"2020-04-13T20:51:58.558Z","0.1.1":"2020-04-13T21:36:13.116Z","0.1.2":"2020-04-28T20:27:55.359Z","0.1.3":"2020-05-14T00:02:52.620Z","0.1.4":"2020-07-01T22:56:00.370Z","0.1.5":"2020-10-29T18:04:54.699Z","0.2.0-beta.0":"2021-02-12T20:38:49.766Z","0.2.0-beta.1":"2021-02-12T21:06:20.284Z","0.2.0-beta.2":"2021-02-18T14:24:08.566Z","0.2.0-beta.3":"2021-02-18T16:41:34.759Z","0.2.0-beta.4":"2021-02-18T16:45:20.352Z","0.2.0-beta.5":"2021-06-15T00:59:48.679Z","1.0.0":"2021-06-15T19:32:48.381Z","2.0.0":"2021-08-05T23:42:13.785Z","2.0.1":"2022-06-28T16:01:35.962Z"},"author":{"name":"Andrew Laskey"},"license":"MIT","description":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.","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":"Extends the [`@nacelle/client-js-sdk`](https://www.npmjs.com/package/@nacelle/client-js-sdk) to enable previewing of unpublished content from Contentful.\n\n# Nacelle Contentful Preview Connector\n\nThe Nacelle Client JS SDK uses connectors in the [`data` module](https://docs.getnacelle.com/api-reference/client-js-sdk.html#data-module) for fetching Nacelle data. By default the SDK is either fetching data from Nacelle's GraphQL or from static JSON files generated during the Nuxt build process.\n\nWith this package we can update the `data` module so that by default it will fetch data directly from [Contentful's Preview API](https://www.contentful.com/developers/docs/references/content-preview-api/). That way you can view edits and changes on Contentful without needing to reindex those updates with Nacelle.\n\n## Usage\n\n```js\nimport NacelleClient from '@nacelle/client-js-sdk'\nimport { createContentfulPreviewConnector } from '@nacelle/contentful-preview-connector'\n\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\nconst contentfulConnector = createContentfulPreviewConnector(client, {\n  // the parameters in `contentfulConfig` match the constructor for\n  // the Contentful client (https://github.com/contentful/contentful.js#configuration),\n  // with the exception of `host`, which is optional, and defaults to 'preview.contentful.com'\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n    // Note: the Contentful Preview API token is not the same as your Content Delivery API token\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  include: 3\n})\n\n// Update the data module with the new connector\nclient.data.update({\n  connector: contentfulConnector\n})\n\n// Homepage data will be fetched directly from preview API\nconst pageData = await client.data.page({ handle: 'homepage' })\n```\n\n## Differences from Nacelle Client JS SDK Methods\n\nThe Nacelle Client JS SDK's `data.article(params)` method assumes that if a `blogHandle` parameter isn't provided, that the an article's `blogHandle` should default to `'blog'`.\n\nIn order to accomodate content models for `article`s that don't contain a `blogHandle` field, the `@nacelle/contentful-preview-connector` does not assign a default value for `blogHandle`. If your `article` content model does contain a `blogHandle` field, please supply this `blogHandle` as a parameter to the preview connector's `.article` method.\n\nFor example:\n\n```js\n// EXAMPLE A: Articles contain a 'blogHandle' field:\n\n// @nacelle/client-js-sdk\nnacelle.data.article({ handle: 'chapter-one' })\nnacelle.data.article({ handle: 'chocolate-cake', blogHandle: 'recipes' })\n\n// @nacelle/contentful-preview-connector\ncontentfulConnector.article({ handle: 'chapter-one', blogHandle: 'blog' })\ncontentfulConnector.article({ handle: 'chocolate-cake', blogHandle: 'recipes' })\n\n// EXAMPLE B: Articles don't contain a 'blogHandle' field:\n\n// @nacelle/client-js-sdk\nnacelle.data.article({ handle: 'chapter-one' })\nnacelle.data.article({ handle: 'chocolate-cake' })\n\n// @nacelle/contentful-preview-connector\ncontentfulConnector.article({ handle: 'chapter-one' })\ncontentfulConnector.article({ handle: 'chocolate-cake' })\n```\n\n## Examples\n\nSee our examples for setting up this package with our different frontend app frameworks:\n\n### Nuxt\n\nSetting up your [Nacelle Starter Project](https://docs.getnacelle.com/nuxt/intro-nuxt.html) to enable Contenful previews is a straightforward process using [Nuxt plugins](https://nuxtjs.org/guide/plugins).\n\n#### 1. Add `contentful-previews.js` into your Nuxt project\n\nCreate a file `contentful-previews.js` in your Nuxt's `/plugins` directory and paste the following code.\n\n```js\nimport { createContentfulPreviewConnector } from '@nacelle/contentful-preview-connector'\n\nexport default ({ app }) => {\n  if (process.env.NACELLE_PREVIEW_MODE === 'true') {\n    // Checks .env file for proper config variables\n    if (!process.env.NACELLE_CMS_PREVIEW_TOKEN) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include NACELLE_CMS_PREVIEW_TOKEN in your .env file\"\n      )\n    }\n    if (!process.env.NACELLE_CMS_PREVIEW_SPACE_ID) {\n      throw new Error(\n        \"Couldn't get data from your CMS. Make sure to include NACELLE_CMS_PREVIEW_SPACE_ID in your .env file\"\n      )\n    }\n\n    // Initialize the Contentful Preview Connector\n    const contentfulConnector = createContentfulPreviewConnector(\n      app.$nacelle.client,\n      {\n        contentfulConfig: {\n          space: process.env.NACELLE_CMS_PREVIEW_SPACE_ID,\n          accessToken: process.env.NACELLE_CMS_PREVIEW_TOKEN\n        }\n      }\n    )\n\n    // Update the Nacelle JS SDK Data module to use preview connector\n    app.$nacelle.data.update({\n      connector: contentfulConnector\n    })\n  }\n}\n```\n\n#### 2. Update `nuxt.config.js`\n\nUpdate your `nuxt.config.js` file to set the ssr key and include the new plugin file you created.\n\n```js\nlet previewMode = process.env.NACELLE_PREVIEW_MODE\nif (previewMode === 'false') previewMode = false\n\nexport default {\n  ssr: !previewMode,\n  plugins: ['~/plugins/contentful-preview']\n}\n```\n\nAnd update the `env` object in the config.\n\n```js\nenv: {\n  nacelleSpaceID: process.env.NACELLE_SPACE_ID,\n  nacelleToken: process.env.NACELLE_GRAPHQL_TOKEN,\n  buildMode: process.env.BUILD_MODE,\n  NACELLE_PREVIEW_MODE: process.env.NACELLE_PREVIEW_MODE,\n  NACELLE_CMS_PREVIEW_SPACE_ID: process.env.CONTENTFUL_SPACE_ID,\n  NACELLE_CMS_PREVIEW_TOKEN: process.env CONTENTFUL_PREVIEW_API_TOKEN\n},\n```\n\n#### 3. Update `.env`\n\nUpdate your Nuxt app's `.env` file to include variables for initializing the Contentful preview connector.\n\n```bash\n# .env\nNACELLE_PREVIEW_MODE=true\nNACELLE_CMS_PREVIEW_SPACE_ID=your-contentful-space-id\nNACELLE_CMS_PREVIEW_TOKEN=your-contentful-preview-api-token\n```\n\nYou're all set! Running `npm run dev` your Nacelle Nuxt app will now fetch data directly from Contentful. Try updating a piece of content and refreshing the page without publishing.\n\n## Upgrading from 0.1.x\n\nIf upgrading from `@nacelle/contentful-preview-connector@0.1.x`, please update your preview connector client constructor as follows:\n\n```js\n// 0.1.x\nconst contentfulConnector = new NacelleContentfulPreviewConnector({\n  contentfulSpaceID: '<your-contentful-space-id>',\n  contentfulToken: '<your-contentful-preview-api-token>'\n  // ...other config,\n})\n\n// 2.x.x\n// Initialize the Nacelle Client\nconst client = new NacelleClient(clientOptions)\n\n// Initialize the Preview Connector\nconst contentfulConnector = createContentfulPreviewConnector(client, {\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n  },\n\n  // Optional Parameter defaults\n  contentfulPreviewLocales: ['en-US'],\n  include: 3\n})\n```\n\nAlso, please [see the docs on the use of `blogHandle` with the `.article` method](#differences-from-nacelle-client-js-sdk-methods).\n\n## Upgrading from 1.x.x to 2.x.x\n\n```js\n// 1.x.x\nimport NacelleContentfulPreviewConnector from '@nacelle/contentful-preview-connector'\n\nconst contentfulConnector = new NacelleContentfulPreviewConnector({\n  contentfulConfig: {\n    space: '<your-contentful-space-id>',\n    accessToken: '<your-contentful-preview-api-token>'\n    // other Contentful config (https://github.com/contentful/contentful.js#configuration)\n  }\n  // ...other config,\n})\n\n// 2.x.x\nimport { createContentfulPreviewConnector } from '@getnacelle/contentful-preview-connector'\n\nconst contentfulConnector = createContentfulPreviewConnector(\n  // Add NacelleClient object as first argument\n  client,\n  // Include existing NacelleContentfulPreviewConnector options\n  {\n    contentfulConfig: {\n      space: '<your-contentful-space-id>',\n      accessToken: '<your-contentful-preview-api-token>'\n      // other Contentful config (https://github.com/contentful/contentful.js#configuration)\n    }\n    // ...other config,\n  }\n)\n```\n","readmeFilename":"README.md"}