nuxt-strapi-blocks-renderer 1.0.0 → 1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Frederik Bußmann
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,10 +1,15 @@
1
1
  # Nuxt Strapi Blocks Renderer
2
2
 
3
- A fully customizable Nuxt module for rendering the 'blocks' text element from Strapi CMS.
3
+ [![Github Actions][github-actions-src]][github-actions-href]
4
+ [![NPM version][npm-version-src]][npm-version-href]
5
+ [![NPM downloads][npm-downloads-src]][npm-downloads-href]
6
+ [![License][license-src]][license-href]
7
+
8
+ A fully customizable Nuxt 3 module for rendering text with the new Blocks rich text editor element from Strapi CMS.
4
9
 
5
10
  ## Installation
6
11
 
7
- 1. Install the npm package:
12
+ 1. Install the Blocks renderer:
8
13
 
9
14
  ```bash
10
15
  npm install nuxt-strapi-blocks-renderer
@@ -24,8 +29,8 @@ To render text, use the `StrapiBlocksText` component:
24
29
  <StrapiBlocksText :nodes="blockNodes" />
25
30
  ```
26
31
 
27
- In this example, the `blockNodes` are taken from the JSON response which Strapi provides when using the `blocks` text
28
- element:
32
+ In this example, the `blockNodes` are taken from the JSON response which Strapi provides when using the Blocks rich
33
+ text editor element:
29
34
 
30
35
  ```vue
31
36
  <script setup lang="ts">
@@ -47,6 +52,8 @@ element:
47
52
  </template>
48
53
  ```
49
54
 
55
+ To use the `useStrapi` composable, install the [Strapi Nuxt module](https://strapi.nuxtjs.org/).
56
+
50
57
  ### Advanced Usage
51
58
 
52
59
  In situations where your project requires specific styling or behavior for certain HTML tags such as `<a>`, `<p>`,
@@ -273,3 +280,15 @@ npm run test
273
280
  # Release new version
274
281
  npm run release
275
282
  ```
283
+
284
+ [github-actions-src]: https://github.com/freb97/nuxt-strapi-blocks-renderer/actions/workflows/ci.yml/badge.svg
285
+ [github-actions-href]: https://github.com/freb97/nuxt-strapi-blocks-renderer/actions
286
+
287
+ [npm-version-src]: https://img.shields.io/npm/v/nuxt-strapi-blocks-renderer/latest.svg?style=flat&colorA=18181B&colorB=31C553
288
+ [npm-version-href]: https://npmjs.com/package/nuxt-strapi-blocks-renderer
289
+
290
+ [npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-strapi-blocks-renderer.svg?style=flat&colorA=18181B&colorB=31C553
291
+ [npm-downloads-href]: https://npmjs.com/package/nuxt-strapi-blocks-renderer
292
+
293
+ [license-src]: https://img.shields.io/github/license/freb97/nuxt-strapi-blocks-renderer.svg?style=flat&colorA=18181B&colorB=31C553
294
+ [license-href]: https://github.com/freb97/nuxt-strapi-blocks-renderer/blob/main/LICENSE
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
3
  "configKey": "strapiBlocksRenderer",
4
- "version": "1.0.0"
4
+ "version": "1.0.1"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Renderer for the strapi blocks text element.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -19,9 +19,11 @@
19
19
  "scripts": {
20
20
  "prepack": "nuxt-module-build build",
21
21
  "dev": "npm run dev:basic",
22
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare",
22
23
  "dev:basic": "nuxi dev playground/basic",
23
24
  "dev:custom": "nuxi dev playground/custom",
24
25
  "release": "npm run lint && npm run test && npm run prepack && npm publish",
26
+ "release:ci": "npm run prepack && npm publish",
25
27
  "lint": "eslint './**/*.{js,ts,vue}' --max-warnings=0",
26
28
  "test": "vitest run",
27
29
  "test:watch": "vitest watch"