[Snyk] Upgrade @nuxt/ui from 2.22.1 to 3.2.0 #187
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade @nuxt/ui from 2.22.1 to 3.2.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 26 versions ahead of your current version.
The recommended version was released 24 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-INFLIGHT-6095116
Release notes
Package name: @nuxt/ui
✨ Highlights
🚨 Breaking Changes
unmountfunction (#4051)🚀 Features
chipprop (#4224) (03ac395)childrenin items (#4226) (59c26ec)actionsslot (#4358) (8156971)closemethod in slots (#4219) (5835eb5)autofocus(1a4de49), closes #4324body-top/body-bottomslots (#4354) (595fc64)🐛 Bug Fixes
mdsize on buttons (#4357) (be41aed)meta_-shortcut (#4321) (4e7c1c9)transformprop (#4188) (37abcc6)emptysize (ba3c6e8), closes #4377close:preventoncloseAutoFocus(150b334)max-heightinhorizontalorientation (62bc7b2), closes #4208size(#4350) (4dd56c8)tras separator (#4083) (edca3bc)unmountfunction (#4051) (546df57)defaultOpenis set (#4308) (66355ba)open(#4269) (bf56e15)🌐 Locales
👋 New Contributors
Full Changelog: v3.1.3...v3.2.0
🚨 Breaking Changes
collapsiblefieldIn previous patch, we introduced a new
collapsiblefield initemsto display children incollapsedstate as well as making the parent element respect its link attributes. However, it didn't feel right so we removed it in favor of 1e2a10b, 9cf9f25 and f2682fd.type: 'trigger'.collapsed, you can use thepopover/tooltipprops or item fields:🚀 Features
after:enterevent (#4187) (d9e9fea)tooltipandpopoverprops (f2682fd), closes #4186triggertype in items (9cf9f25)verticalorientation with Accordion instead of Collapsible (1e2a10b), closes #4072 #3911anchorslot (#4119) (473513c)🐛 Bug Fixes
tableborders in RTL mode (#4192) (43d281f)presentationrole to viewport (2ba94db)loadingicon (#4163) (fe4e1f8)tooltipwhen collapsed (44f536f)collapsiblefield (3c78e2f)old-neutralcolor as static (#4193) (dae9f0b)🌐 Locales
👋 New Contributors
Full Changelog: v3.1.2...v3.1.3
🚀 Features
squareprop (#4008) (894e8a6)tablevariant (#3997) (1b6ab27)uifield in items (#4060) (b9adc83)increment-disabled/decrement-disabledprops (#4141) (c7fba2e)collapsiblefield in items (2be60cd), closes #3353 #3911tooltipin items (46c2987), closes #4050tooltiparound thumbs (d140acc), closes #1469progressprop to hide progress bar (#4125) (92632e9)🐛 Bug Fixes
z-indexon focused element (204953b)neutralcolor (7d51a9e), closes #4084 #3629variant(f2fd778), closes #3998UCheckboximport (7551a85), closes #4090classshould have priority overuiprop (e6e510b)divforerrorandhelpslots (459a041)useAppConfigreactive (12303a8)@ nuxt/fontswith default weights (276268d)valuefield (#4105) (09b4699)divtag fortitle&description(a57844e), closes #4096focus:outline-nonewithlinkvariant (999a0f8)baseslot override (c63d2f3)useAppConfigreactive (869c070), closes #3952🌐 Locales
👋 New Contributors
Full Changelog: v3.1.1...v3.1.2
🚀 Features
closeAllmethod (#3984) (ac4c194)isOpenmethod to check overlay state (#4041) (a4f3f6d)🐛 Bug Fixes
place-items-centerto grid row (#4034) (8dfdd63)metatoctrlconvert on non macos platforms (f3b8b17), closes #3869 #3318nuxt-nightly(#3996) (bc0a296)sm:w-autofrom content slot (aebf0b3), closes #3987valuefield type (#3995) (195773e)border-bg/divide-bgutilities (82b5f32)ring-offset-*utilities (#3992) (e5df026)uiobject (591d59f), closes #3579@ theme inlineto properly reference css variables (6131871), closes #4018👋 New Contributors
Full Changelog: v3.1.0...v3.1.1
✨ Highlights
🎨 Improved Utility Classes
We've enhanced the utility class system to make it more intuitive and easier to use. While CSS variables provided flexibility, writing classes like
text-(--ui-text-muted)proved cumbersome. We've introduced three major improvements:+ <div class="text-primary">
- <div class="bg-(--ui-error)">
+ <div class="bg-error">
+ <div class="text-muted">
- <div class="border-(--ui-border)">
+ <div class="border-default">
- <div class="bg-(--ui-bg-elevated)/50">
+ <div class="bg-elevated/50">
rounded-*utilities to use our--ui-radiusCSS variable, making it easier to maintain consistent border radius across your application: https://ui.nuxt.com/getting-started/theme#radius+ <div class="rounded-sm">
- <div class="rounded-[calc(var(--ui-radius)*1.5)]">
+ <div class="rounded-md">
- <div class="rounded-[calc(var(--ui-radius)*2)]">
+ <div class="rounded-lg">
🧩 New Components and Features
import type { CheckboxGroupItem, CheckboxGroupValue } from '@ nuxt/ui'
const items = ref<CheckboxGroupItem[]>(['System', 'Light', 'Dark'])
const value = ref<CheckboxGroupValue[]>(['System'])
</script>
<template>
<UCheckboxGroup v-model="value" :items="items" />
</template>
cardandtablevariants for more flexible layouts: https://ui.nuxt.com/components/radio-group#variantimport type { RadioGroupItem, RadioGroupValue } from '@ nuxt/ui'
const items = ref<RadioGroupItem[]>(['System', 'Light', 'Dark'])
const value = ref<RadioGroupValue>('System')
</script>
<template>
<URadioGroup v-model="value" variant="table" :items="items" />
</template>
🌉 Inertia.js Integration
The Vue version now includes built-in support for Inertia.js. Enable it with the
inertia: trueoption in yourvite.config.ts:import vue from '@ vitejs/plugin-vue'
import ui from '@ nuxt/ui/vite'
export default defineConfig(<span class="pl-ko...
Summary by Sourcery
Build: