nuxt-strapi-blocks-renderer 1.0.6 → 1.0.7

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 CHANGED
@@ -9,6 +9,9 @@ A fully customizable Nuxt 3 module for rendering text with the new Blocks rich t
9
9
 
10
10
  The implementation is based on Strapi's [Blocks React Renderer](https://github.com/strapi/blocks-react-renderer/).
11
11
 
12
+ - ✨ [Release notes](/CHANGELOG.md)
13
+ - 🏀 [Online stackblitz playground](https://stackblitz.com/github/freb97/nuxt-strapi-blocks-renderer?file=playground%2Fbasic%2Fpages%2Findex.vue)
14
+
12
15
  ## Installation
13
16
 
14
17
  1. Install the Blocks renderer:
package/dist/module.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
3
  "configKey": "strapiBlocksRenderer",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "builder": {
6
- "@nuxt/module-builder": "0.7.0",
6
+ "@nuxt/module-builder": "0.8.0",
7
7
  "unbuild": "2.0.0"
8
8
  }
9
9
  }
@@ -1,5 +1,5 @@
1
1
  import type { VNode } from 'vue';
2
- import type { BlockNode } from '#strapi-blocks-renderer/types';
2
+ import type { BlockNode, CodeBlockNode, DefaultInlineNode, HeadingBlockNode, ImageBlockNode, LinkInlineNode, ListBlockNode, ListItemInlineNode, ParagraphBlockNode, QuoteBlockNode, TextInlineNode } from '#strapi-blocks-renderer/types';
3
3
  export declare const textInlineNode: (node: TextInlineNode) => (VNode | string)[] | VNode;
4
4
  export declare const linkInlineNode: (node: LinkInlineNode) => VNode;
5
5
  export declare const defaultInlineNode: (node: DefaultInlineNode) => (VNode | string)[] | VNode | undefined;
package/dist/types.d.mts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module.js'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['strapiBlocksRenderer']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['strapiBlocksRenderer']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['strapiBlocksRenderer']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['strapiBlocksRenderer']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module.js'
1
+ export { type ModuleOptions, default } from './module.js'
package/dist/types.d.ts CHANGED
@@ -1,16 +1 @@
1
-
2
- import type { ModuleOptions } from './module'
3
-
4
-
5
- declare module '@nuxt/schema' {
6
- interface NuxtConfig { ['strapiBlocksRenderer']?: Partial<ModuleOptions> }
7
- interface NuxtOptions { ['strapiBlocksRenderer']?: ModuleOptions }
8
- }
9
-
10
- declare module 'nuxt/schema' {
11
- interface NuxtConfig { ['strapiBlocksRenderer']?: Partial<ModuleOptions> }
12
- interface NuxtOptions { ['strapiBlocksRenderer']?: ModuleOptions }
13
- }
14
-
15
-
16
- export type { ModuleOptions, default } from './module'
1
+ export { type ModuleOptions, default } from './module'
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "nuxt-strapi-blocks-renderer",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Renderer for the strapi CMS blocks text content element.",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/freb97/nuxt-strapi-blocks-renderer.git"
9
9
  },
10
+ "author": {
11
+ "name": "Frederik Bußmann",
12
+ "email": "frederik@bussmann.io"
13
+ },
10
14
  "type": "module",
11
15
  "exports": {
12
16
  ".": {
@@ -34,28 +38,32 @@
34
38
  "test:watch": "vitest watch"
35
39
  },
36
40
  "dependencies": {
37
- "@nuxt/kit": "^3.11.2",
41
+ "@nuxt/kit": "^3.12.2",
38
42
  "defu": "^6.1.4"
39
43
  },
40
44
  "devDependencies": {
41
- "@nuxt/devtools": "^1.3.2",
45
+ "@nuxt/devtools": "^1.3.7",
42
46
  "@nuxt/eslint-config": "^0.3.13",
43
- "@nuxt/module-builder": "^0.7.0",
44
- "@nuxt/schema": "^3.11.2",
47
+ "@nuxt/module-builder": "^0.8.0",
48
+ "@nuxt/schema": "^3.12.2",
45
49
  "@nuxt/test-utils": "^3.13.1",
46
- "@stylistic/eslint-plugin": "^2.1.0",
47
- "@types/node": "^20.12.11",
48
- "@typescript-eslint/eslint-plugin": "^7.11.0",
50
+ "@stylistic/eslint-plugin": "^2.3.0",
51
+ "@types/node": "^20.14.9",
52
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
49
53
  "eslint": "^8.57.0",
50
- "nuxt": "^3.11.2",
51
- "typescript": "^5.4.5",
54
+ "nuxt": "^3.12.2",
55
+ "typescript": "^5.5.2",
52
56
  "vitest": "^1.6.0",
53
- "vue": "^3.4.27",
54
- "vue-eslint-parser": "^9.4.2",
55
- "vue-tsc": "^2.0.19"
57
+ "vue": "^3.4.31",
58
+ "vue-eslint-parser": "^9.4.3",
59
+ "vue-tsc": "^2.0.22"
56
60
  },
57
61
  "packageManager": "npm@10.2.4",
58
62
  "engines": {
59
63
  "node": "^18.x || ^20.x"
64
+ },
65
+ "stackblitz": {
66
+ "startCommand": "npm run dev:prepare && npm run dev",
67
+ "file": "playground/basic/pages/index.vue"
60
68
  }
61
69
  }