@pinegrow/nuxt-module 3.0.70 → 3.0.71-alpha.1
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 +10 -3
- package/dist/module.d.ts +10 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -1
- package/dist/runtime/live-designer.mjs +0 -2
- package/package.json +6 -4
- package/dist/chunks/live-designer.mjs +0 -7
package/dist/module.d.mts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
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
|
+
}
|
|
4
13
|
interface PinegrowNuxtModuleOptions {
|
|
5
14
|
/**
|
|
6
15
|
* Pinegrow Live Designer options
|
|
7
16
|
* For details, check https://vuedesigner.com
|
|
8
17
|
*/
|
|
9
|
-
liveDesigner?:
|
|
10
|
-
[key in string]?: any;
|
|
11
|
-
} & LiveDesignerOptions;
|
|
18
|
+
liveDesigner?: PinegrowLiveDesignerOptions;
|
|
12
19
|
}
|
|
13
20
|
declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions, PinegrowNuxtModuleOptions, false>;
|
|
14
21
|
|
package/dist/module.d.ts
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
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
|
+
}
|
|
4
13
|
interface PinegrowNuxtModuleOptions {
|
|
5
14
|
/**
|
|
6
15
|
* Pinegrow Live Designer options
|
|
7
16
|
* For details, check https://vuedesigner.com
|
|
8
17
|
*/
|
|
9
|
-
liveDesigner?:
|
|
10
|
-
[key in string]?: any;
|
|
11
|
-
} & LiveDesignerOptions;
|
|
18
|
+
liveDesigner?: PinegrowLiveDesignerOptions;
|
|
12
19
|
}
|
|
13
20
|
declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions, PinegrowNuxtModuleOptions, false>;
|
|
14
21
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -11,7 +11,9 @@ const module = defineNuxtModule({
|
|
|
11
11
|
addServerPlugin(resolve("./runtime/nitro-plugin.mjs"));
|
|
12
12
|
nuxt.hook("listen", async (listenerServer, listener) => {
|
|
13
13
|
try {
|
|
14
|
-
const
|
|
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));
|
|
15
17
|
const nitroApp = useNitro();
|
|
16
18
|
const filterConfig = (config) => {
|
|
17
19
|
const {
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/nuxt-module",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.71-alpha.1",
|
|
4
4
|
"description": "Pinegrow Nuxt Module",
|
|
5
5
|
"author": "Pinegrow (http://pinegrow.com/)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
9
|
-
"dist"
|
|
9
|
+
"dist",
|
|
10
|
+
"!dist/runtime/live-designer.dev.mjs",
|
|
11
|
+
"!dist/runtime/live-designer.dev.d.mts"
|
|
10
12
|
],
|
|
11
13
|
"main": "./dist/module.cjs",
|
|
12
14
|
"module": "./dist/module.cjs",
|
|
@@ -42,7 +44,7 @@
|
|
|
42
44
|
},
|
|
43
45
|
"dependencies": {
|
|
44
46
|
"@nuxt/kit": "latest",
|
|
45
|
-
"@pinegrow/vite-plugin": "3.0.
|
|
47
|
+
"@pinegrow/vite-plugin": "3.0.71-alpha.1"
|
|
46
48
|
},
|
|
47
49
|
"devDependencies": {
|
|
48
50
|
"@nuxt/module-builder": "latest",
|
|
@@ -63,4 +65,4 @@
|
|
|
63
65
|
"overrides": {
|
|
64
66
|
"nuxi": "3.8.4"
|
|
65
67
|
}
|
|
66
|
-
}
|
|
68
|
+
}
|