docs(deps): update nuxt-component-meta

This commit is contained in:
Benjamin Canac
2024-09-09 16:03:03 +02:00
parent 7aec42ca15
commit 686bede78b
4 changed files with 59 additions and 87 deletions

View File

@@ -5,15 +5,16 @@
{{ prop.description }}
</p>
<Collapsible v-if="prop.schema?.kind === 'array' && prop.schema?.schema?.filter(schema => schema.kind === 'object').length">
<FieldGroup v-for="schema in prop.schema.schema" :key="schema.name">
<Collapsible v-if="prop.schema?.kind === 'array' && Object.values(prop.schema?.schema)?.filter((schema: any) => schema.kind === 'object').length">
<FieldGroup v-for="schema in (Object.values(prop.schema.schema) as any[])" :key="schema.name">
<ComponentPropsField v-for="subProp in Object.values(schema.schema)" :key="(subProp as any).name" :prop="subProp" />
</FieldGroup>
</Collapsible>
<Collapsible v-else-if="prop.schema?.kind === 'array' && prop.schema?.schema?.filter(schema => schema.kind === 'array').length">
<FieldGroup v-for="schema in prop.schema.schema" :key="schema.name">
<Collapsible v-else-if="(prop.schema?.kind === 'enum' || prop.schema?.kind === 'array') && Object.values(prop.schema?.schema)?.filter((schema: any) => schema.kind === 'array' && typeof schema.schema === 'object')?.length > 1">
{{ prop.schema }}
<FieldGroup v-for="schema in (Object.values(prop.schema.schema) as any[])" :key="schema.name">
<template v-for="subSchema in schema.schema" :key="subSchema.name">
<ComponentPropsField v-for="subProp in Object.values(subSchema.schema)" :key="(subProp as any).name" :prop="subProp" />
<ComponentPropsField v-for="subProp in subSchema.schema" :key="(subProp as any).name" :prop="subProp" />
</template>
</FieldGroup>
</Collapsible>
@@ -23,7 +24,7 @@
</FieldGroup>
</Collapsible>
<div v-else-if="prop.schema?.kind === 'enum' && prop.schema.type !== 'boolean' && startsWithCapital(prop.schema.type) && !prop.schema.type.startsWith(prop.schema.schema[0])" class="flex items-center flex-wrap gap-1 -my-1">
<code v-for="value in prop.schema.schema.filter(value => typeof value === 'string')" :key="value" class="whitespace-pre-wrap break-words leading-6">{{ value }}</code>
<code v-for="value in Object.values(prop.schema.schema).filter(value => typeof value === 'string')" :key="value" class="whitespace-pre-wrap break-words leading-6">{{ value }}</code>
</div>
</Field>
</template>

View File

@@ -20,7 +20,7 @@
"joi": "^17.13.3",
"nuxt": "^3.13.0",
"nuxt-cloudflare-analytics": "^1.0.8",
"nuxt-component-meta": "^0.6.4",
"nuxt-component-meta": "^0.8.0",
"nuxt-og-image": "^3.0.0-rc.66",
"prettier": "^3.3.3",
"ufo": "^1.5.4",

View File

@@ -77,6 +77,7 @@
},
"resolutions": {
"@nuxt/ui": "workspace:*",
"nuxt-component-meta": "0.6.4"
"@nuxt/kit": "3.13.0",
"@nuxt/schema": "3.13.0"
}
}

128
pnpm-lock.yaml generated
View File

@@ -6,7 +6,8 @@ settings:
overrides:
'@nuxt/ui': workspace:*
nuxt-component-meta: 0.6.4
'@nuxt/kit': 3.13.0
'@nuxt/schema': 3.13.0
importers:
@@ -25,7 +26,7 @@ importers:
specifier: ^1.5.1
version: 1.5.1(magicast@0.3.5)(rollup@3.29.4)(vite@5.4.2(@types/node@22.5.2)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4))
'@nuxt/kit':
specifier: ^3.13.0
specifier: 3.13.0
version: 3.13.0(magicast@0.3.5)(rollup@3.29.4)
'@nuxtjs/color-mode':
specifier: ^3.4.4
@@ -191,8 +192,8 @@ importers:
specifier: ^1.0.8
version: 1.0.8(magicast@0.3.5)(rollup@4.21.2)
nuxt-component-meta:
specifier: 0.6.4
version: 0.6.4(magicast@0.3.5)(rollup@4.21.2)
specifier: ^0.8.0
version: 0.8.0(magicast@0.3.5)(rollup@4.21.2)
nuxt-og-image:
specifier: ^3.0.0-rc.66
version: 3.0.0-rc.66(magicast@0.3.5)(rollup@4.21.2)(vite@5.4.2(@types/node@22.5.2)(terser@5.31.6))(vue@3.4.38(typescript@5.5.4))
@@ -1193,7 +1194,7 @@ packages:
resolution: {integrity: sha512-m9W3P6f6TFnHmVFKRo/2gELWDi3r0k8i93Z1fY5z410GZmttGVPv8KgRgOgC79agRi/OtpbyG3BPRaWdbDZa5w==}
hasBin: true
peerDependencies:
'@nuxt/kit': ^3.12.4
'@nuxt/kit': 3.13.0
nuxi: ^3.12.0
'@nuxt/schema@3.13.0':
@@ -2022,21 +2023,12 @@ packages:
'@vitest/utils@2.0.5':
resolution: {integrity: sha512-d8HKbqIcya+GR67mkZbrzhS5kKhtp8dQLcmRZLGTscGVg7yImT82cIrhtn2L8+VujWcy6KZweApgNmPsTAO/UQ==}
'@volar/language-core@1.11.1':
resolution: {integrity: sha512-dOcNn3i9GgZAcJt43wuaEykSluAuOkQgzni1cuxLxTV0nJKanQztp7FxyswdRILaKH+P2XZMPRp2S4MV/pElCw==}
'@volar/language-core@2.4.1':
resolution: {integrity: sha512-9AKhC7Qn2mQYxj7Dz3bVxeOk7gGJladhWixUYKef/o0o7Bm4an+A3XvmcTHVqZ8stE6lBVH++g050tBtJ4TZPQ==}
'@volar/source-map@1.11.1':
resolution: {integrity: sha512-hJnOnwZ4+WT5iupLRnuzbULZ42L7BWWPMmruzwtLhJfpDVoZLjNBxHDi2sY2bgZXCKlpU5XcsMFoYrsQmPhfZg==}
'@volar/source-map@2.4.1':
resolution: {integrity: sha512-Xq6ep3OZg9xUqN90jEgB9ztX5SsTz1yiV8wiQbcYNjWkek+Ie3dc8l7AVt3EhDm9mSIR58oWczHkzM2H6HIsmQ==}
'@volar/typescript@1.11.1':
resolution: {integrity: sha512-iU+t2mas/4lYierSnoFOeRFQUhAEMgsFuQxoxvwn5EdQopw43j+J27a4lt9LMInx1gLJBC6qL14WYGlgymaSMQ==}
'@volar/typescript@2.4.1':
resolution: {integrity: sha512-UoRzC0PXcwajFQTu8XxKSYNsWNBtVja6Y9gC8eLv7kYm+UEKJCcZ8g7dialsOYA0HKs3Vpg57MeCsawFLC6m9Q==}
@@ -2092,14 +2084,6 @@ packages:
'@vue/devtools-shared@7.3.9':
resolution: {integrity: sha512-CdfMRZKXyI8vw+hqOcQIiLihB6Hbbi7WNZGp7LsuH1Qe4aYAFmTaKjSciRZ301oTnwmU/knC/s5OGuV6UNiNoA==}
'@vue/language-core@1.8.27':
resolution: {integrity: sha512-L8Kc27VdQserNaCUNiSFdDl9LWT24ly8Hpwf1ECy3aFb9m6bDhBGQYOujDm21N7EW3moKIOKEanQwe1q5BK+mA==}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
'@vue/language-core@2.1.6':
resolution: {integrity: sha512-MW569cSky9R/ooKMh6xa2g1D0AtRKbL56k83dzus/bx//RDJk24RHWkMzbAlXjMdDNyxAaagKPRquBIxkxlCkg==}
peerDependencies:
@@ -2474,6 +2458,14 @@ packages:
magicast:
optional: true
c12@1.11.2:
resolution: {integrity: sha512-oBs8a4uvSDO9dm8b7OCFW7+dgtVrwmwnrVXYzLm43ta7ep2jCn/0MhoUFygIWtxhyy6+/MG7/agvpY0U1Iemew==}
peerDependencies:
magicast: ^0.3.4
peerDependenciesMeta:
magicast:
optional: true
cac@6.7.14:
resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==}
engines: {node: '>=8'}
@@ -4649,9 +4641,6 @@ packages:
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
muggle-string@0.3.1:
resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==}
muggle-string@0.4.1:
resolution: {integrity: sha512-VNTrAak/KhO2i8dqqnqnAHOa3cYBwXEZe9h+D5h/1ZqFSTEFHdM65lR7RoIqq3tBBYavsOXV84NoHXZ0AkPyqQ==}
@@ -4801,8 +4790,8 @@ packages:
resolution: {integrity: sha512-gUBcxHfvR06tBNDszTj/cMx8EGwtNFqICk7IBM66JIebe/VG0HgDF6AFJfqqOFG5ACk6ApdAxREHhvnmgUSudA==}
engines: {npm: '>= 4.0.0'}
nuxt-component-meta@0.6.4:
resolution: {integrity: sha512-5KRxI2y4fzCG9HaDdaiiTZDBjBATje+iVXJc7oG4A9NUrlQxgTSzovjqWF2rjg/hJlv63h5AAy/bUgAHK3pypw==}
nuxt-component-meta@0.8.0:
resolution: {integrity: sha512-NZByaVK/KL3oD7myU93GTUfxw74TyV7mLmxgAVep6qMXPVN9sDyFyj2Y84Qd7O+o00MlR3Dgf+g9v2ONffloew==}
hasBin: true
nuxt-og-image@3.0.0-rc.66:
@@ -6534,20 +6523,20 @@ packages:
vue-bundle-renderer@2.1.0:
resolution: {integrity: sha512-uZ+5ZJdZ/b43gMblWtcpikY6spJd0nERaM/1RtgioXNfWFbjKlUwrS8HlrddN6T2xtptmOouWclxLUkpgcVX3Q==}
vue-component-meta@1.8.27:
resolution: {integrity: sha512-j3WJsyQHP4TDlvnjHc/eseo0/eVkf0FaCpkqGwez5zD+Tj31onBzWZEXTnWKs8xRj0n3dMNYdy3SpiS6NubSvg==}
vue-component-meta@2.1.6:
resolution: {integrity: sha512-N5zReatWQTNqULhatFib69K82g5UhDERVobeqrT5S6Uk2QoCeYbsSY8nHRUwJFywE2iXRFN4B+XPhI+piZfC6w==}
peerDependencies:
typescript: '*'
peerDependenciesMeta:
typescript:
optional: true
vue-component-type-helpers@1.8.27:
resolution: {integrity: sha512-0vOfAtI67UjeO1G6UiX5Kd76CqaQ67wrRZiOe7UAb9Jm6GzlUr/fC7CV90XfwapJRjpCMaZFhv1V0ajWRmE9Dg==}
vue-component-type-helpers@2.1.4:
resolution: {integrity: sha512-aVqB3KxwpM76cYRkpnezl1J62E/1omzHQfx1yuz7zcbxmzmP/PeSgI20NEmkdeGnjZPVzm0V9fB4ZyRu5BBj4A==}
vue-component-type-helpers@2.1.6:
resolution: {integrity: sha512-ng11B8B/ZADUMMOsRbqv0arc442q7lifSubD0v8oDXIFoMg/mXwAPUunrroIDkY+mcD0dHKccdaznSVp8EoX3w==}
vue-demi@0.14.10:
resolution: {integrity: sha512-nMZBOwuzabUO0nLgIcc6rycZEebF6eeUfaiQx9+WSk8e29IbLvPU9feI6tqW4kTo3hvoYAJkMh8n8D0fuISphg==}
engines: {node: '>=12'}
@@ -6578,9 +6567,6 @@ packages:
peerDependencies:
vue: ^3.2.0
vue-template-compiler@2.7.16:
resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==}
vue-tsc@2.1.6:
resolution: {integrity: sha512-f98dyZp5FOukcYmbFpuSCJ4Z0vHSOSmxGttZJCsFeX0M4w/Rsq0s4uKXjcSRsZqsRgQa6z7SfuO+y0HVICE57Q==}
hasBin: true
@@ -7828,7 +7814,7 @@ snapshots:
'@nuxt/kit@3.13.0(magicast@0.3.5)(rollup@3.29.4)':
dependencies:
'@nuxt/schema': 3.13.0(rollup@3.29.4)
c12: 1.11.1(magicast@0.3.5)
c12: 1.11.2(magicast@0.3.5)
consola: 3.2.3
defu: 6.1.4
destr: 2.0.3
@@ -7855,7 +7841,7 @@ snapshots:
'@nuxt/kit@3.13.0(magicast@0.3.5)(rollup@4.21.2)':
dependencies:
'@nuxt/schema': 3.13.0(rollup@4.21.2)
c12: 1.11.1(magicast@0.3.5)
c12: 1.11.2(magicast@0.3.5)
consola: 3.2.3
defu: 6.1.4
destr: 2.0.3
@@ -9045,25 +9031,12 @@ snapshots:
loupe: 3.1.1
tinyrainbow: 1.2.0
'@volar/language-core@1.11.1':
dependencies:
'@volar/source-map': 1.11.1
'@volar/language-core@2.4.1':
dependencies:
'@volar/source-map': 2.4.1
'@volar/source-map@1.11.1':
dependencies:
muggle-string: 0.3.1
'@volar/source-map@2.4.1': {}
'@volar/typescript@1.11.1':
dependencies:
'@volar/language-core': 1.11.1
path-browserify: 1.0.1
'@volar/typescript@2.4.1':
dependencies:
'@volar/language-core': 2.4.1
@@ -9187,20 +9160,6 @@ snapshots:
dependencies:
rfdc: 1.4.1
'@vue/language-core@1.8.27(typescript@5.5.4)':
dependencies:
'@volar/language-core': 1.11.1
'@volar/source-map': 1.11.1
'@vue/compiler-dom': 3.4.38
'@vue/shared': 3.4.38
computeds: 0.0.1
minimatch: 9.0.5
muggle-string: 0.3.1
path-browserify: 1.0.1
vue-template-compiler: 2.7.16
optionalDependencies:
typescript: 5.5.4
'@vue/language-core@2.1.6(typescript@5.5.4)':
dependencies:
'@volar/language-core': 2.4.1
@@ -9624,6 +9583,23 @@ snapshots:
optionalDependencies:
magicast: 0.3.5
c12@1.11.2(magicast@0.3.5):
dependencies:
chokidar: 3.6.0
confbox: 0.1.7
defu: 6.1.4
dotenv: 16.4.5
giget: 1.2.3
jiti: 1.21.6
mlly: 1.7.1
ohash: 1.1.3
pathe: 1.1.2
perfect-debounce: 1.0.0
pkg-types: 1.2.0
rc9: 2.1.2
optionalDependencies:
magicast: 0.3.5
cac@6.7.14: {}
cache-content-type@1.0.1:
@@ -12185,8 +12161,6 @@ snapshots:
ms@2.1.3: {}
muggle-string@0.3.1: {}
muggle-string@0.4.1: {}
mute-stream@1.0.0: {}
@@ -12400,13 +12374,14 @@ snapshots:
- rollup
- supports-color
nuxt-component-meta@0.6.4(magicast@0.3.5)(rollup@4.21.2):
nuxt-component-meta@0.8.0(magicast@0.3.5)(rollup@4.21.2):
dependencies:
'@nuxt/kit': 3.13.0(magicast@0.3.5)(rollup@4.21.2)
citty: 0.1.6
mlly: 1.7.1
scule: 1.3.0
typescript: 5.5.4
vue-component-meta: 1.8.27(typescript@5.5.4)
vue-component-meta: 2.1.6(typescript@5.5.4)
transitivePeerDependencies:
- magicast
- rollup
@@ -14735,19 +14710,19 @@ snapshots:
dependencies:
ufo: 1.5.4
vue-component-meta@1.8.27(typescript@5.5.4):
vue-component-meta@2.1.6(typescript@5.5.4):
dependencies:
'@volar/typescript': 1.11.1
'@vue/language-core': 1.8.27(typescript@5.5.4)
'@volar/typescript': 2.4.1
'@vue/language-core': 2.1.6(typescript@5.5.4)
path-browserify: 1.0.1
vue-component-type-helpers: 1.8.27
vue-component-type-helpers: 2.1.6
optionalDependencies:
typescript: 5.5.4
vue-component-type-helpers@1.8.27: {}
vue-component-type-helpers@2.1.4: {}
vue-component-type-helpers@2.1.6: {}
vue-demi@0.14.10(vue@3.4.38(typescript@5.5.4)):
dependencies:
vue: 3.4.38(typescript@5.5.4)
@@ -14776,11 +14751,6 @@ snapshots:
dependencies:
vue: 3.4.38(typescript@5.5.4)
vue-template-compiler@2.7.16:
dependencies:
de-indent: 1.0.2
he: 1.2.0
vue-tsc@2.1.6(typescript@5.5.4):
dependencies:
'@volar/typescript': 2.4.1