@storyblok/nuxt 5.6.12 → 5.7.0

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/dist/module.d.mts CHANGED
@@ -7,6 +7,7 @@ interface ModuleOptions {
7
7
  bridge: boolean;
8
8
  devtools: boolean;
9
9
  apiOptions: any;
10
+ globalDir: string;
10
11
  }
11
12
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
12
13
 
package/dist/module.d.ts CHANGED
@@ -7,6 +7,7 @@ interface ModuleOptions {
7
7
  bridge: boolean;
8
8
  devtools: boolean;
9
9
  apiOptions: any;
10
+ globalDir: string;
10
11
  }
11
12
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
12
13
 
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@storyblok/nuxt",
3
3
  "configKey": "storyblok",
4
- "version": "5.6.12"
4
+ "version": "5.7.0"
5
5
  }
package/dist/module.mjs CHANGED
@@ -12,6 +12,7 @@ const module = defineNuxtModule({
12
12
  // legacy opt. for enableSudoMode
13
13
  bridge: true,
14
14
  devtools: false,
15
+ globalDir: "~/storyblok",
15
16
  apiOptions: {}
16
17
  },
17
18
  setup(options, nuxt) {
@@ -23,7 +24,9 @@ const module = defineNuxtModule({
23
24
  nuxt.options.vite.optimizeDeps.exclude = nuxt.options.vite.optimizeDeps.exclude || [];
24
25
  nuxt.options.vite.optimizeDeps.exclude.push("fsevents");
25
26
  }
26
- addComponentsDir({ path: "~/storyblok", global: true, pathPrefix: false });
27
+ if (options.globalDir) {
28
+ addComponentsDir({ path: options.globalDir, global: true, pathPrefix: false });
29
+ }
27
30
  nuxt.options.build.transpile.push(resolver.resolve("./runtime"));
28
31
  nuxt.options.build.transpile.push("@storyblok/nuxt");
29
32
  nuxt.options.build.transpile.push("@storyblok/vue");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storyblok/nuxt",
3
- "version": "5.6.12",
3
+ "version": "5.7.0",
4
4
  "description": "Storyblok Nuxt module",
5
5
  "type": "module",
6
6
  "main": "./dist/module.cjs",