@studio-fes/layer-strapi 0.2.2 → 0.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @studio-fes/layer-strapi
2
2
 
3
+ ## 0.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Solved anchor prefetch props conflict
8
+
9
+ ## 0.2.3
10
+
11
+ ### Patch Changes
12
+
13
+ - moved component and composable registration from plugin to modules for vue-strapi-blocks-renderer
14
+
3
15
  ## 0.2.2
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,22 @@
1
+ import { addComponent, addImports, defineNuxtModule } from '@nuxt/kit'
2
+
3
+ export default defineNuxtModule({
4
+ meta: {
5
+ name: 'vue-strapi-blocks-renderer',
6
+ },
7
+ setup() {
8
+ // Register the component
9
+ addComponent({
10
+ name: 'StrapiBlocks',
11
+ export: 'StrapiBlocks',
12
+ filePath: 'vue-strapi-blocks-renderer',
13
+ })
14
+
15
+ // Register composable
16
+ addImports({
17
+ name: 'useStrapiBlocksContext',
18
+ as: 'useStrapiBlocksContext',
19
+ from: 'vue-strapi-blocks-renderer',
20
+ })
21
+ },
22
+ })
package/nuxt.config.ts CHANGED
@@ -7,13 +7,6 @@ export default defineNuxtConfig({
7
7
  'nuxt-multi-cache',
8
8
  ],
9
9
 
10
- imports: {
11
- imports: [
12
- { name: 'useStrapiBlocksContext', from: 'vue-strapi-blocks-renderer' },
13
- { name: 'StrapiBlocks', from: 'vue-strapi-blocks-renderer', type: true },
14
- ],
15
- },
16
-
17
10
  runtimeConfig: {
18
11
  multiCacheEnabled: import.meta.env.NUXT_CACHE_ENABLED === 'true',
19
12
  },
package/package.json CHANGED
@@ -1,18 +1,8 @@
1
1
  {
2
2
  "name": "@studio-fes/layer-strapi",
3
3
  "type": "module",
4
- "version": "0.2.2",
4
+ "version": "0.2.4",
5
5
  "main": "./nuxt.config.ts",
6
- "scripts": {
7
- "dev": "nuxi dev",
8
- "build": "nuxi build",
9
- "start": "nuxi preview",
10
- "prepare": "nuxi prepare",
11
- "generate": "nuxt generate",
12
- "preview": "nuxt preview",
13
- "lint": "eslint .",
14
- "lint:fix": "eslint . --fix"
15
- },
16
6
  "dependencies": {
17
7
  "@nuxt/eslint": "latest",
18
8
  "nuxt-graphql-middleware": "^5.3.2",
@@ -20,12 +10,12 @@
20
10
  "vue-strapi-blocks-renderer": "1.1.1"
21
11
  },
22
12
  "devDependencies": {
23
- "@studio-fes/layer-base": "workspace:*",
24
13
  "@types/node": "^25.2.3",
25
14
  "eslint": "^10.0.0",
26
15
  "nuxt": "^4.3.1",
27
16
  "typescript": "^5.9.3",
28
- "vue": "latest"
17
+ "vue": "latest",
18
+ "@studio-fes/layer-base": "0.2.4"
29
19
  },
30
20
  "description": "Create Nuxt extendable layer with this GitHub template.",
31
21
  "repository": {
@@ -37,5 +27,14 @@
37
27
  "bugs": {
38
28
  "url": "https://github.com/rondodevs/nuxt-layers/issues"
39
29
  },
40
- "homepage": "https://github.com/rondodevs/nuxt-layers#readme"
41
- }
30
+ "homepage": "https://github.com/rondodevs/nuxt-layers#readme",
31
+ "scripts": {
32
+ "dev": "nuxi dev",
33
+ "build": "nuxi build",
34
+ "start": "nuxi preview",
35
+ "generate": "nuxt generate",
36
+ "preview": "nuxt preview",
37
+ "lint": "eslint .",
38
+ "lint:fix": "eslint . --fix"
39
+ }
40
+ }
@@ -1,5 +0,0 @@
1
- import { StrapiBlocks } from 'vue-strapi-blocks-renderer'
2
-
3
- export default defineNuxtPlugin((nuxtApp) => {
4
- nuxtApp.vueApp.component('StrapiBlocks', StrapiBlocks)
5
- })