@sanity/ui 2.16.4 → 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/dist/_chunks-cjs/_visual-editing.js.map +1 -1
- package/dist/_chunks-cjs/refractor.js.map +1 -1
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/_visual-editing.d.mts +2 -2
- package/dist/_visual-editing.d.ts +2 -2
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/theme.js.map +1 -1
- package/dist/theme.mjs.map +1 -1
- package/package.json +16 -16
- package/src/core/components/toast/toast.tsx +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.6",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -117,22 +117,22 @@
|
|
|
117
117
|
"@floating-ui/react-dom": "^2.1.3",
|
|
118
118
|
"@juggle/resize-observer": "^3.4.0",
|
|
119
119
|
"@sanity/color": "^3.0.6",
|
|
120
|
-
"@sanity/icons": "^3.7.
|
|
120
|
+
"@sanity/icons": "^3.7.4",
|
|
121
121
|
"csstype": "^3.1.3",
|
|
122
|
-
"framer-motion": "^12.
|
|
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.
|
|
129
|
-
"@babel/preset-env": "^7.
|
|
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
|
-
"@eslint/js": "^9.
|
|
135
|
-
"@sanity/pkg-utils": "^7.
|
|
134
|
+
"@eslint/js": "^9.30.1",
|
|
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",
|
|
@@ -161,46 +161,46 @@
|
|
|
161
161
|
"@types/react-dom": "^19.1.6",
|
|
162
162
|
"@types/react-is": "^19.0.0",
|
|
163
163
|
"@types/refractor": "^3.4.1",
|
|
164
|
-
"@vitejs/plugin-react": "^4.
|
|
164
|
+
"@vitejs/plugin-react": "^4.6.0",
|
|
165
165
|
"babel-plugin-react-compiler": "19.1.0-rc.2",
|
|
166
166
|
"babel-plugin-styled-components": "^2.1.4",
|
|
167
167
|
"commitizen": "^4.3.1",
|
|
168
168
|
"cypress": "^13.17.0",
|
|
169
169
|
"cypress-real-events": "^1.14.0",
|
|
170
170
|
"cz-conventional-changelog": "^3.3.0",
|
|
171
|
-
"eslint": "^9.
|
|
171
|
+
"eslint": "^9.30.1",
|
|
172
172
|
"eslint-config-prettier": "^10.1.5",
|
|
173
173
|
"eslint-formatter-compact": "^8.40.0",
|
|
174
174
|
"eslint-plugin-boundaries": "^5.0.1",
|
|
175
|
-
"eslint-plugin-import": "^2.
|
|
175
|
+
"eslint-plugin-import": "^2.32.0",
|
|
176
176
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
177
177
|
"eslint-plugin-react": "^7.37.5",
|
|
178
|
-
"eslint-plugin-react-hooks": "0.0.0-experimental-
|
|
178
|
+
"eslint-plugin-react-hooks": "0.0.0-experimental-96c61b7f-20250709",
|
|
179
179
|
"eslint-plugin-react-refresh": "^0.4.20",
|
|
180
180
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
181
181
|
"eslint-plugin-storybook": "^0.12.0",
|
|
182
182
|
"globals": "^16.3.0",
|
|
183
183
|
"http-server": "^14.1.1",
|
|
184
184
|
"husky": "^8.0.3",
|
|
185
|
-
"jest": "^30.0.
|
|
185
|
+
"jest": "^30.0.4",
|
|
186
186
|
"jest-axe": "^10.0.0",
|
|
187
|
-
"jest-environment-jsdom": "^30.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",
|
|
191
|
-
"prettier": "^3.
|
|
191
|
+
"prettier": "^3.6.2",
|
|
192
192
|
"react": "^19.1.0",
|
|
193
193
|
"react-dom": "^19.1.0",
|
|
194
194
|
"react-is": "^19.1.0",
|
|
195
195
|
"refractor": "^4.9.0",
|
|
196
196
|
"rimraf": "^5.0.5",
|
|
197
|
-
"semantic-release": "^24.2.
|
|
197
|
+
"semantic-release": "^24.2.6",
|
|
198
198
|
"start-server-and-test": "^2.0.12",
|
|
199
199
|
"storybook": "^8.6.14",
|
|
200
200
|
"styled-components": "^6.1.19",
|
|
201
201
|
"tsconfig-paths": "^4.2.0",
|
|
202
202
|
"typescript": "5.8.3",
|
|
203
|
-
"typescript-eslint": "^8.
|
|
203
|
+
"typescript-eslint": "^8.36.0",
|
|
204
204
|
"vite": "^5.4.19",
|
|
205
205
|
"vite-tsconfig-paths": "^5.1.4"
|
|
206
206
|
},
|
|
@@ -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
|
|
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']
|