@sanity/ui 2.16.5 → 2.16.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/ui",
3
- "version": "2.16.5",
3
+ "version": "2.16.6",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -119,20 +119,20 @@
119
119
  "@sanity/color": "^3.0.6",
120
120
  "@sanity/icons": "^3.7.4",
121
121
  "csstype": "^3.1.3",
122
- "framer-motion": "^12.9.7",
122
+ "framer-motion": "^12.23.3",
123
123
  "react-compiler-runtime": "19.1.0-rc.2",
124
124
  "react-refractor": "^2.2.0",
125
125
  "use-effect-event": "^2.0.2"
126
126
  },
127
127
  "devDependencies": {
128
- "@babel/core": "^7.27.4",
129
- "@babel/preset-env": "^7.27.2",
128
+ "@babel/core": "^7.28.0",
129
+ "@babel/preset-env": "^7.28.0",
130
130
  "@babel/preset-react": "^7.27.1",
131
131
  "@babel/preset-typescript": "^7.27.1",
132
132
  "@commitlint/cli": "^19.8.1",
133
133
  "@commitlint/config-conventional": "^19.8.1",
134
134
  "@eslint/js": "^9.30.1",
135
- "@sanity/pkg-utils": "^7.2.7",
135
+ "@sanity/pkg-utils": "^7.9.3",
136
136
  "@sanity/prettier-config": "^2.0.0",
137
137
  "@sanity/semantic-release-preset": "^5.0.0",
138
138
  "@sanity/ui-workshop": "^2.1.5",
@@ -182,9 +182,9 @@
182
182
  "globals": "^16.3.0",
183
183
  "http-server": "^14.1.1",
184
184
  "husky": "^8.0.3",
185
- "jest": "^30.0.0",
185
+ "jest": "^30.0.4",
186
186
  "jest-axe": "^10.0.0",
187
- "jest-environment-jsdom": "^30.0.0",
187
+ "jest-environment-jsdom": "^30.0.4",
188
188
  "lint-staged": "^14.0.1",
189
189
  "module-alias": "^2.2.3",
190
190
  "npm-run-all2": "^5.0.2",
@@ -77,7 +77,9 @@ export function Toast(
77
77
  const prefersReducedMotion = usePrefersReducedMotion()
78
78
 
79
79
  const visualDuration: number = prefersReducedMotion ? 0 : 0.26
80
- const transition = visualDuration ? {type: 'spring', visualDuration, bounce: 0.25} : {duration: 0}
80
+ const transition = visualDuration
81
+ ? {type: 'spring' as const, visualDuration, bounce: 0.25}
82
+ : {duration: 0}
81
83
 
82
84
  const hasDuration = duration && isFinite(duration) && duration < LONG_ENOUGH_BUT_NOT_TOO_LONG
83
85
  const initial: ContainerVariants[] = ['hidden', 'initial']