@pinegrow/nuxt-module 3.0.71-alpha.8 → 3.0.72-alpha.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.
@@ -0,0 +1,7 @@
1
+ import pkg from '@pinegrow/vite-plugin';
2
+
3
+ // import { liveDesigner } from '@pinegrow/vite-plugin/dev'
4
+
5
+ const liveDesigner = pkg.liveDesigner;
6
+
7
+ export { liveDesigner };
package/dist/module.d.mts CHANGED
@@ -1,22 +1,15 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { LiveDesignerOptions } from '@pinegrow/vite-plugin';
3
3
 
4
- interface PinegrowLiveDesignerOptions extends LiveDesignerOptions {
5
- [key: string]: any;
6
- /**
7
- * Use @pinegrow/vite-plugin/dev so local development can import the
8
- * Vite plugin source and dev-connector source without bundling them.
9
- * Keep this false for packaged builds.
10
- */
11
- devSource?: boolean;
12
- }
13
4
  interface PinegrowNuxtModuleOptions {
14
5
  /**
15
6
  * Pinegrow Live Designer options
16
7
  * For details, check https://vuedesigner.com
17
8
  */
18
- liveDesigner?: PinegrowLiveDesignerOptions;
9
+ liveDesigner?: {
10
+ [key in string]?: any;
11
+ } & LiveDesignerOptions;
19
12
  }
20
- declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions, PinegrowNuxtModuleOptions, false>;
13
+ declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions>;
21
14
 
22
15
  export { type PinegrowNuxtModuleOptions, _default as default };
package/dist/module.d.ts CHANGED
@@ -1,22 +1,15 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
2
  import { LiveDesignerOptions } from '@pinegrow/vite-plugin';
3
3
 
4
- interface PinegrowLiveDesignerOptions extends LiveDesignerOptions {
5
- [key: string]: any;
6
- /**
7
- * Use @pinegrow/vite-plugin/dev so local development can import the
8
- * Vite plugin source and dev-connector source without bundling them.
9
- * Keep this false for packaged builds.
10
- */
11
- devSource?: boolean;
12
- }
13
4
  interface PinegrowNuxtModuleOptions {
14
5
  /**
15
6
  * Pinegrow Live Designer options
16
7
  * For details, check https://vuedesigner.com
17
8
  */
18
- liveDesigner?: PinegrowLiveDesignerOptions;
9
+ liveDesigner?: {
10
+ [key in string]?: any;
11
+ } & LiveDesignerOptions;
19
12
  }
20
- declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions, PinegrowNuxtModuleOptions, false>;
13
+ declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions>;
21
14
 
22
15
  export { type PinegrowNuxtModuleOptions, _default as default };
package/dist/module.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "pinegrow",
3
3
  "configKey": "pinegrow",
4
4
  "compatibility": {
5
- "nuxt": "*"
5
+ "nuxt": "^3.1.0"
6
6
  },
7
- "version": "3.0.71-alpha.1"
7
+ "version": "3.0.72-alpha.0"
8
8
  }
package/dist/module.mjs CHANGED
@@ -11,9 +11,7 @@ const module = defineNuxtModule({
11
11
  addServerPlugin(resolve("./runtime/nitro-plugin.mjs"));
12
12
  nuxt.hook("listen", async (listenerServer, listener) => {
13
13
  try {
14
- const isDevelopmentBuild = typeof __DEVMODE__ !== "undefined" && __DEVMODE__;
15
- const liveDesignerRuntime = moduleOptions.liveDesigner?.devSource === true || isDevelopmentBuild ? "./runtime/live-designer.dev.mjs" : "./runtime/live-designer.mjs";
16
- const { liveDesigner } = await import(resolve(liveDesignerRuntime));
14
+ const { liveDesigner } = await import('./chunks/live-designer.mjs');
17
15
  const nitroApp = useNitro();
18
16
  const filterConfig = (config) => {
19
17
  const {
@@ -112,7 +110,7 @@ const module = defineNuxtModule({
112
110
  // Compatibility constraints
113
111
  compatibility: {
114
112
  // Semver version of supported nuxt versions
115
- nuxt: "*"
113
+ nuxt: "^3.1.0"
116
114
  }
117
115
  },
118
116
  // Default configuration options for your module
@@ -1,3 +1,5 @@
1
+ // import { liveDesigner } from '@pinegrow/vite-plugin/dev'
2
+
1
3
  import pkg from '@pinegrow/vite-plugin'
2
4
  const liveDesigner = pkg.liveDesigner
3
5
  export { liveDesigner }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pinegrow/nuxt-module",
3
- "version": "3.0.71-alpha.8",
3
+ "version": "3.0.72-alpha.0",
4
4
  "description": "Pinegrow Nuxt Module",
5
5
  "author": "Pinegrow (http://pinegrow.com/)",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@nuxt/kit": "latest",
47
- "@pinegrow/vite-plugin": "3.0.71-alpha.8"
47
+ "@pinegrow/vite-plugin": "3.0.72-alpha.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@nuxt/module-builder": "latest",