@nuxtjs/prismic 3.0.0-rc.9 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/module.json +1 -1
- package/dist/runtime/plugin.mjs +2 -0
- package/package.json +4 -4
- package/src/runtime/plugin.ts +3 -0
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@ Easily connect your Nuxt.js application to your content hosted on [Prismic][pris
|
|
|
26
26
|
## Install
|
|
27
27
|
|
|
28
28
|
```bash
|
|
29
|
-
npm install --save-dev @nuxtjs/prismic
|
|
29
|
+
npm install --save-dev @nuxtjs/prismic # or yarn add --dev @nuxtjs/prismic
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Then, add `@nuxtjs/prismic` to the `modules` section of your Nuxt config and configure your Prismic API endpoint:
|
|
@@ -68,8 +68,8 @@ Whether you're helping us fix bugs, improve the docs, or spread the word, we'd l
|
|
|
68
68
|
|
|
69
69
|
<!-- TODO: Replace link with a more useful one if available -->
|
|
70
70
|
|
|
71
|
-
[nuxt-docs]: https://
|
|
72
|
-
[prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-vue?version=
|
|
71
|
+
[nuxt-docs]: https://prismic.nuxtjs.org
|
|
72
|
+
[prismic-docs]: https://prismic.io/docs/technical-reference/prismicio-vue?version=v4
|
|
73
73
|
[changelog]: ./CHANGELOG.md
|
|
74
74
|
[contributing]: ./CONTRIBUTING.md
|
|
75
75
|
|
package/dist/module.json
CHANGED
package/dist/runtime/plugin.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxtjs/prismic",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Easily connect your Nuxt 3 application to your content hosted on Prismic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"unit:watch": "vitest watch"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@nuxt/kit": "^3.5.
|
|
53
|
+
"@nuxt/kit": "^3.5.3",
|
|
54
54
|
"@prismicio/client": "^7.0.1",
|
|
55
55
|
"@prismicio/vue": "^4.0.0",
|
|
56
56
|
"consola": "^3.1.0",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@nuxt/module-builder": "^0.4.0",
|
|
61
61
|
"@nuxtjs/eslint-config-typescript": "^12.0.0",
|
|
62
62
|
"@vitest/coverage-c8": "^0.31.4",
|
|
63
|
-
"eslint": "^8.
|
|
63
|
+
"eslint": "^8.42.0",
|
|
64
64
|
"mock-fs": "^5.2.0",
|
|
65
|
-
"nuxt": "^3.5.
|
|
65
|
+
"nuxt": "^3.5.3",
|
|
66
66
|
"standard-version": "^9.5.0",
|
|
67
67
|
"typescript": "^5.1.3",
|
|
68
68
|
"vitest": "^0.31.4"
|
package/src/runtime/plugin.ts
CHANGED
|
@@ -73,6 +73,9 @@ export default defineNuxtPlugin((nuxtApp) => {
|
|
|
73
73
|
defer: true
|
|
74
74
|
}]
|
|
75
75
|
})
|
|
76
|
+
} else {
|
|
77
|
+
// TODO: We might want to let user disable this behavior because it might have unexpected side effects
|
|
78
|
+
useCookie('io.prismic.preview').value = null
|
|
76
79
|
}
|
|
77
80
|
|
|
78
81
|
return {
|