nuxt-strapi-blocks-renderer 1.0.1 → 1.0.2
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 +13 -0
- package/dist/module.json +1 -1
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -95,6 +95,19 @@ To override the default paragraph tag, we create a file called `StrapiBlocksText
|
|
|
95
95
|
|
|
96
96
|
This component assigns a custom class `my-custom-class-for-p` to the paragraph tag, which can be styled as needed.
|
|
97
97
|
|
|
98
|
+
The prefix for the custom components can be adjusted in your `nuxt.config.{js|ts}`:
|
|
99
|
+
|
|
100
|
+
```typescript
|
|
101
|
+
modules: ['nuxt-strapi-blocks-renderer'],
|
|
102
|
+
strapiBlocksRenderer: {
|
|
103
|
+
prefix: 'MyCustomPrefix'
|
|
104
|
+
blocksPrefix: 'MyCustomBlocksPrefix',
|
|
105
|
+
},
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
With this configuration, the `StrapiBlocksText` component becomes `MyCustomPrefixStrapiBlocksText` and the custom
|
|
109
|
+
paragraph node component would be named `MyCustomBlocksPrefixParagraphNode`.
|
|
110
|
+
|
|
98
111
|
#### Other Custom Tags
|
|
99
112
|
|
|
100
113
|
You can apply similar customizations to all other HTML tags used by the renderer.
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-strapi-blocks-renderer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Renderer for the strapi blocks text element.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "https://github.com/freb97/nuxt-strapi-blocks-renderer.git"
|
|
9
|
+
},
|
|
6
10
|
"type": "module",
|
|
7
11
|
"exports": {
|
|
8
12
|
".": {
|