@storyblok/nuxt 4.1.0 → 4.1.3

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.
Files changed (2) hide show
  1. package/README.md +14 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -147,6 +147,20 @@ Which is the short-hand equivalent to using `useStoryblokApi` and `useStoryblokB
147
147
  </template>
148
148
  ```
149
149
 
150
+ #### Rendering Rich Text
151
+
152
+ You can easily render rich text by using the `renderRichText` function that comes with `@storyblok/nuxt` and a Vue computed property:
153
+
154
+ ```html
155
+ <template>
156
+ <div v-html="articleContent"></div>
157
+ </template>
158
+
159
+ <script setup>
160
+ const articleContent = computed(() => renderRichText(blok.articleContent));
161
+ </script>
162
+ ```
163
+
150
164
  ### API
151
165
 
152
166
  #### useStoryblok(slug, apiOptions, bridgeOptions)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/nuxt",
3
- "version": "4.1.0",
3
+ "version": "4.1.3",
4
4
  "description": "Storyblok Nuxt.js module",
5
5
  "main": "./src/module.js",
6
6
  "module": "./src/module.js",
@@ -27,10 +27,10 @@
27
27
  "test:e2e-watch": "start-server-and-test playground:run http://localhost:3000 cy:open"
28
28
  },
29
29
  "dependencies": {
30
- "@nuxt/kit": "^3.0.0-rc.2",
31
- "@storyblok/vue": "^6.2.0"
30
+ "@storyblok/vue": "^6.2.1"
32
31
  },
33
32
  "devDependencies": {
33
+ "@nuxt/kit": "^3.0.0-rc.7",
34
34
  "@babel/core": "^7.15.0",
35
35
  "@nuxt/module-builder": "latest",
36
36
  "babel-jest": "^28.1.3",
@@ -38,7 +38,7 @@
38
38
  "eslint-plugin-cypress": "^2.12.1",
39
39
  "jest": "^26.6.3",
40
40
  "start-server-and-test": "^1.14.0",
41
- "vite": "^2.7.6"
41
+ "vite": "^2.9.14"
42
42
  },
43
43
  "release": {
44
44
  "branches": [