@pinegrow/nuxt-module 3.0.72-beta.0 → 3.0.72
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 +4 -11
- package/dist/module.d.ts +4 -11
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -4
- package/dist/runtime/live-designer.mjs +2 -0
- package/package.json +2 -2
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?:
|
|
9
|
+
liveDesigner?: {
|
|
10
|
+
[key in string]?: any;
|
|
11
|
+
} & LiveDesignerOptions;
|
|
19
12
|
}
|
|
20
|
-
declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions
|
|
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?:
|
|
9
|
+
liveDesigner?: {
|
|
10
|
+
[key in string]?: any;
|
|
11
|
+
} & LiveDesignerOptions;
|
|
19
12
|
}
|
|
20
|
-
declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions
|
|
13
|
+
declare const _default: _nuxt_schema.NuxtModule<PinegrowNuxtModuleOptions>;
|
|
21
14
|
|
|
22
15
|
export { type PinegrowNuxtModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addServerPlugin, useNitro, addVitePlugin } from '@nuxt/kit';
|
|
2
|
+
import { pathToFileURL } from 'node:url';
|
|
2
3
|
|
|
3
4
|
const module = defineNuxtModule({
|
|
4
5
|
async setup(moduleOptions, nuxt) {
|
|
@@ -11,9 +12,7 @@ const module = defineNuxtModule({
|
|
|
11
12
|
addServerPlugin(resolve("./runtime/nitro-plugin.mjs"));
|
|
12
13
|
nuxt.hook("listen", async (listenerServer, listener) => {
|
|
13
14
|
try {
|
|
14
|
-
const
|
|
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
|
+
const { liveDesigner } = await import(pathToFileURL(resolve("./runtime/live-designer.mjs")).href);
|
|
17
16
|
const nitroApp = useNitro();
|
|
18
17
|
const filterConfig = (config) => {
|
|
19
18
|
const {
|
|
@@ -112,7 +111,7 @@ const module = defineNuxtModule({
|
|
|
112
111
|
// Compatibility constraints
|
|
113
112
|
compatibility: {
|
|
114
113
|
// Semver version of supported nuxt versions
|
|
115
|
-
nuxt: "
|
|
114
|
+
nuxt: "^3.1.0"
|
|
116
115
|
}
|
|
117
116
|
},
|
|
118
117
|
// Default configuration options for your module
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pinegrow/nuxt-module",
|
|
3
|
-
"version": "3.0.72
|
|
3
|
+
"version": "3.0.72",
|
|
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.72
|
|
47
|
+
"@pinegrow/vite-plugin": "3.0.72"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@nuxt/module-builder": "latest",
|