@sanity/ui 2.16.19 → 2.16.21
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 +104 -53
- 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 +105 -54
- package/dist/_chunks-es/_visual-editing.mjs.map +1 -1
- package/dist/_chunks-es/refractor.mjs.map +1 -1
- package/dist/index.js +49 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +49 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -20
- package/src/core/components/tree/tree.tsx +0 -1
- package/src/core/hooks/useClickOutside.test.tsx +1 -1
- package/src/core/utils/virtualList/virtualList.tsx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/ui",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.21",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"sanity",
|
|
6
6
|
"ui",
|
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"@sanity/color": "^3.0.6",
|
|
120
120
|
"@sanity/icons": "^3.7.4",
|
|
121
121
|
"csstype": "^3.1.3",
|
|
122
|
-
"framer-motion": "^12.23.
|
|
123
|
-
"react-compiler-runtime": "
|
|
122
|
+
"framer-motion": "^12.23.24",
|
|
123
|
+
"react-compiler-runtime": "1.0.0",
|
|
124
124
|
"react-refractor": "^2.2.0",
|
|
125
125
|
"use-effect-event": "^2.0.3"
|
|
126
126
|
},
|
|
@@ -131,8 +131,8 @@
|
|
|
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": "^8.1.
|
|
134
|
+
"@eslint/js": "^9.37.0",
|
|
135
|
+
"@sanity/pkg-utils": "^8.1.19",
|
|
136
136
|
"@sanity/prettier-config": "^2.0.1",
|
|
137
137
|
"@sanity/semantic-release-preset": "^5.0.0",
|
|
138
138
|
"@sanity/ui-workshop": "^2.1.6",
|
|
@@ -157,26 +157,25 @@
|
|
|
157
157
|
"@types/jest": "^30.0.0",
|
|
158
158
|
"@types/jest-axe": "^3.5.9",
|
|
159
159
|
"@types/node": "^22.18.1",
|
|
160
|
-
"@types/react": "^19.
|
|
161
|
-
"@types/react-dom": "^19.1
|
|
162
|
-
"@types/react-is": "^19.
|
|
163
|
-
"@vitejs/plugin-react": "^5.0.
|
|
164
|
-
"babel-plugin-react-compiler": "
|
|
160
|
+
"@types/react": "^19.2.2",
|
|
161
|
+
"@types/react-dom": "^19.2.1",
|
|
162
|
+
"@types/react-is": "^19.2.0",
|
|
163
|
+
"@vitejs/plugin-react": "^5.0.4",
|
|
164
|
+
"babel-plugin-react-compiler": "1.0.0",
|
|
165
165
|
"babel-plugin-styled-components": "^2.1.4",
|
|
166
166
|
"commitizen": "^4.3.1",
|
|
167
167
|
"cypress": "^13.17.0",
|
|
168
168
|
"cypress-real-events": "^1.14.0",
|
|
169
169
|
"cz-conventional-changelog": "^3.3.0",
|
|
170
|
-
"eslint": "^9.
|
|
170
|
+
"eslint": "^9.37.0",
|
|
171
171
|
"eslint-config-prettier": "^10.1.8",
|
|
172
172
|
"eslint-formatter-gha": "^1.6.0",
|
|
173
|
-
"eslint-plugin-boundaries": "^5.0.
|
|
173
|
+
"eslint-plugin-boundaries": "^5.0.2",
|
|
174
174
|
"eslint-plugin-import": "^2.32.0",
|
|
175
175
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
176
176
|
"eslint-plugin-react": "^7.37.5",
|
|
177
|
-
"eslint-plugin-react-hooks": "
|
|
178
|
-
"eslint-plugin-react-
|
|
179
|
-
"eslint-plugin-react-refresh": "^0.4.22",
|
|
177
|
+
"eslint-plugin-react-hooks": "7.0.0",
|
|
178
|
+
"eslint-plugin-react-refresh": "^0.4.23",
|
|
180
179
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
181
180
|
"eslint-plugin-storybook": "^0.12.0",
|
|
182
181
|
"globals": "^16.3.0",
|
|
@@ -189,9 +188,9 @@
|
|
|
189
188
|
"module-alias": "^2.2.3",
|
|
190
189
|
"npm-run-all2": "^5.0.2",
|
|
191
190
|
"prettier": "^3.6.2",
|
|
192
|
-
"react": "^19.
|
|
193
|
-
"react-dom": "^19.
|
|
194
|
-
"react-is": "^19.
|
|
191
|
+
"react": "^19.2.0",
|
|
192
|
+
"react-dom": "^19.2.0",
|
|
193
|
+
"react-is": "^19.2.0",
|
|
195
194
|
"refractor": "^4.9.0",
|
|
196
195
|
"rimraf": "^5.0.5",
|
|
197
196
|
"semantic-release": "^24.2.7",
|
|
@@ -199,8 +198,8 @@
|
|
|
199
198
|
"storybook": "^8.6.14",
|
|
200
199
|
"styled-components": "^6.1.19",
|
|
201
200
|
"tsconfig-paths": "^4.2.0",
|
|
202
|
-
"typescript": "5.9.
|
|
203
|
-
"typescript-eslint": "^8.
|
|
201
|
+
"typescript": "5.9.3",
|
|
202
|
+
"typescript-eslint": "^8.46.0",
|
|
204
203
|
"vite": "^5.4.20",
|
|
205
204
|
"vite-tsconfig-paths": "^5.1.4"
|
|
206
205
|
},
|
|
@@ -441,7 +441,7 @@ describe('useClickOutside', () => {
|
|
|
441
441
|
const useBoundaryElementFromRef = (ref: React.MutableRefObject<HTMLElement | null>) => {
|
|
442
442
|
const [element, setElement] = useState(() => ref.current)
|
|
443
443
|
|
|
444
|
-
// eslint-disable-next-line react-hooks
|
|
444
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
445
445
|
useEffect(() => {
|
|
446
446
|
// If the ref has mutated since the last render, update the state and schedule a re-render
|
|
447
447
|
if (ref.current !== element) {
|
|
@@ -66,7 +66,6 @@ export const VirtualList = forwardRef(function VirtualList(
|
|
|
66
66
|
const firstElement = wrapperRef.current.firstChild
|
|
67
67
|
|
|
68
68
|
if (firstElement instanceof HTMLElement) {
|
|
69
|
-
// eslint-disable-next-line react-hooks/set-state-in-effect
|
|
70
69
|
setItemHeight(firstElement.offsetHeight)
|
|
71
70
|
}
|
|
72
71
|
}, [renderItem])
|