@movk/nuxt 1.7.0 → 1.7.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/.nuxt/movk-ui.css +1 -1
- package/dist/module.d.mts +3 -3
- package/dist/module.json +1 -1
- package/dist/module.mjs +16 -10
- package/dist/unplugin.d.mts +1 -1
- package/dist/vite.d.mts +1 -1
- package/package.json +1 -1
package/.nuxt/movk-ui.css
CHANGED
package/dist/module.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
1
|
import { MovkApiFullConfig } from '../dist/runtime/types/api/module.js';
|
|
3
2
|
import { MovkFontFamily, ThemeFontOption } from '../dist/runtime/domains/theme/theme-font.js';
|
|
4
3
|
import { ModuleOptions as ModuleOptions$1 } from '@nuxt/ui';
|
|
4
|
+
import { NuxtModule } from 'nuxt/schema';
|
|
5
5
|
export * from '../dist/runtime/types/index.js';
|
|
6
6
|
|
|
7
7
|
type StrictUiTheme = {
|
|
@@ -71,7 +71,7 @@ interface ModuleOptions {
|
|
|
71
71
|
neutralColors?: string[];
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
declare const
|
|
74
|
+
declare const movkModule: NuxtModule<ModuleOptions>;
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { movkModule as default };
|
|
77
77
|
export type { ModuleOptions };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -15,10 +15,11 @@ import 'pathe';
|
|
|
15
15
|
import 'tinyglobby';
|
|
16
16
|
|
|
17
17
|
const name = "@movk/nuxt";
|
|
18
|
-
const version = "1.7.
|
|
18
|
+
const version = "1.7.1";
|
|
19
19
|
|
|
20
20
|
const MOVK_CSS_IMPORT = /@import\s+["']@movk\/nuxt["']/;
|
|
21
21
|
async function checkMovkCss(nuxt) {
|
|
22
|
+
if (nuxt.options._prepare) return;
|
|
22
23
|
for (const entry of nuxt.options.css || []) {
|
|
23
24
|
if (entry === "@movk/nuxt") return;
|
|
24
25
|
try {
|
|
@@ -147,7 +148,18 @@ function addFontLinks(nuxt, font) {
|
|
|
147
148
|
nuxt.options.app.head.link.push(...links);
|
|
148
149
|
}
|
|
149
150
|
|
|
150
|
-
|
|
151
|
+
function resolveModuleDependencies(nuxt) {
|
|
152
|
+
const ui = nuxt.options.ui ??= {};
|
|
153
|
+
ui.fonts ??= false;
|
|
154
|
+
return {
|
|
155
|
+
"@nuxt/image": { version: ">=2.0.0" },
|
|
156
|
+
"@nuxt/ui": { version: ">=4.6.0" },
|
|
157
|
+
"@vueuse/nuxt": { version: ">=14.2.1" },
|
|
158
|
+
"nuxt-auth-utils": { version: ">=0.5.29" },
|
|
159
|
+
"nuxt-site-config": { version: ">=4.0.8" }
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
const movkModule = defineNuxtModule({
|
|
151
163
|
meta: {
|
|
152
164
|
name,
|
|
153
165
|
version,
|
|
@@ -155,13 +167,7 @@ const module$1 = defineNuxtModule({
|
|
|
155
167
|
compatibility: { nuxt: ">=4.4.2" }
|
|
156
168
|
},
|
|
157
169
|
defaults: defaultOptions,
|
|
158
|
-
moduleDependencies:
|
|
159
|
-
"@nuxt/image": { version: ">=2.0.0" },
|
|
160
|
-
"@nuxt/ui": { version: ">=4.6.0", defaults: { fonts: false } },
|
|
161
|
-
"@vueuse/nuxt": { version: ">=14.2.1" },
|
|
162
|
-
"nuxt-auth-utils": { version: ">=0.5.29" },
|
|
163
|
-
"nuxt-site-config": { version: ">=4.0.8" }
|
|
164
|
-
},
|
|
170
|
+
moduleDependencies: resolveModuleDependencies,
|
|
165
171
|
async setup(options, nuxt) {
|
|
166
172
|
const { resolve } = createResolver(import.meta.url);
|
|
167
173
|
nuxt.options.movk = options;
|
|
@@ -234,4 +240,4 @@ const module$1 = defineNuxtModule({
|
|
|
234
240
|
}
|
|
235
241
|
});
|
|
236
242
|
|
|
237
|
-
export {
|
|
243
|
+
export { movkModule as default };
|
package/dist/unplugin.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as unplugin from 'unplugin';
|
|
2
2
|
import { NuxtUIOptions } from '@nuxt/ui/unplugin';
|
|
3
3
|
import { ModuleOptions } from './module.mjs';
|
|
4
|
-
import '@nuxt/schema';
|
|
5
4
|
import '../dist/runtime/types/api/module.js';
|
|
6
5
|
import '../dist/runtime/domains/theme/theme-font.js';
|
|
7
6
|
import '@nuxt/ui';
|
|
7
|
+
import 'nuxt/schema';
|
|
8
8
|
import '../dist/runtime/types/index.js';
|
|
9
9
|
|
|
10
10
|
/** movk 组件层从 `#components` 具名导入的 @nuxt/ui 组件(去 U 前缀映射到 @nuxt/ui/components/<Name>.vue) */
|
package/dist/vite.d.mts
CHANGED
|
@@ -2,10 +2,10 @@ import * as unplugin from 'unplugin';
|
|
|
2
2
|
import { MovkUIOptions } from './unplugin.mjs';
|
|
3
3
|
import '@nuxt/ui/unplugin';
|
|
4
4
|
import './module.mjs';
|
|
5
|
-
import '@nuxt/schema';
|
|
6
5
|
import '../dist/runtime/types/api/module.js';
|
|
7
6
|
import '../dist/runtime/domains/theme/theme-font.js';
|
|
8
7
|
import '@nuxt/ui';
|
|
8
|
+
import 'nuxt/schema';
|
|
9
9
|
import '../dist/runtime/types/index.js';
|
|
10
10
|
|
|
11
11
|
declare const _default: (options?: MovkUIOptions | undefined) => unplugin.VitePlugin<any> | unplugin.VitePlugin<any>[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@movk/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.1",
|
|
5
5
|
"packageManager": "pnpm@11.20.0",
|
|
6
6
|
"description": "An engineering suite built on Nuxt UI: schema-driven AutoForm (Zod v4), a full-featured DataTable, standalone UI components and composables. Get the full capabilities — including API integration with auth & progress — in Nuxt 4, and use its UI, forms, tables and theming in plain Vue + Vite via the Vite plugin.",
|
|
7
7
|
"author": "YiXuan <mhaibaraai@gmail.com>",
|