@movk/nuxt-docs 1.2.0 → 1.2.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.
@@ -195,7 +195,7 @@ const urlSearchParams = computed(() => {
195
195
  class="rounded-sm rounded-l-none min-w-12"
196
196
  :multiple="option.multiple"
197
197
  :class="{ 'pl-6': option.name.toLowerCase().endsWith('color') }"
198
- :ui="{ itemLeadingChip: 'size-2' }"
198
+ :ui="{ itemLeadingChip: 'w-2' }"
199
199
  @update:model-value="set(optionsValues, option.name, $event)"
200
200
  >
201
201
  <template v-if="option.name.toLowerCase().endsWith('color')" #leading="{ modelValue, ui }">
@@ -16,6 +16,11 @@ export default defineNuxtModule({
16
16
  delete (slot as any).schema
17
17
  }
18
18
  }
19
+ if (component?.meta?.events) {
20
+ for (const event of component.meta.events) {
21
+ delete (event as any).schema
22
+ }
23
+ }
19
24
  }
20
25
  })
21
26
  }
package/nuxt.config.ts CHANGED
@@ -58,13 +58,14 @@ export default defineNuxtConfig({
58
58
  },
59
59
  vite: {
60
60
  optimizeDeps: {
61
- // 预打包 CommonJS 依赖以兼容 Nuxt 4.2+
62
61
  // See: https://cn.vite.dev/config/dep-optimization-options.html
63
62
  include: [
64
- '@nuxt/content',
63
+ '@nuxt/content > slugify',
64
+ '@movk/nuxt-docs > @nuxt/content > ',
65
65
  'extend', // unified 所需(用于 @nuxt/content 的 markdown 处理)
66
66
  'debug', // Babel 和开发工具所需
67
- 'tailwind-variants'
67
+ 'tailwind-variants',
68
+ 'tailwindcss/colors'
68
69
  ]
69
70
  },
70
71
  resolve: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@movk/nuxt-docs",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.2.1",
5
5
  "private": false,
6
6
  "description": "An elegant documentation theme for Nuxt, powered by Nuxt UI and Nuxt Content.",
7
7
  "author": "YiXuan <mhaibaraai@gmail.com>",
@@ -31,7 +31,7 @@
31
31
  "@iconify-json/simple-icons": "^1.2.56",
32
32
  "@iconify-json/vscode-icons": "^1.2.33",
33
33
  "@movk/core": "^0.0.5",
34
- "@nuxt/content": "^3.7.1",
34
+ "@nuxt/content": "^3.8.0",
35
35
  "@nuxt/image": "^1.11.0",
36
36
  "@nuxt/kit": "^4.2.0",
37
37
  "@nuxt/ui": "^4.1.0",