@sanity/ui 3.1.9 → 3.1.10

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": "3.1.9",
3
+ "version": "3.1.10",
4
4
  "keywords": [
5
5
  "sanity",
6
6
  "ui",
@@ -120,7 +120,7 @@
120
120
  "@sanity/icons": "^3.7.4",
121
121
  "csstype": "^3.1.3",
122
122
  "framer-motion": "^12.23.24",
123
- "react-compiler-runtime": "19.1.0-rc.3",
123
+ "react-compiler-runtime": "1.0.0",
124
124
  "react-refractor": "^4.0.0",
125
125
  "use-effect-event": "^2.0.3"
126
126
  },
@@ -161,7 +161,7 @@
161
161
  "@types/react-dom": "^19.2.1",
162
162
  "@types/react-is": "^19.2.0",
163
163
  "@vitejs/plugin-react": "^5.0.4",
164
- "babel-plugin-react-compiler": "19.1.0-rc.3",
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",
@@ -174,8 +174,7 @@
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": "6.0.0-rc.2",
178
- "eslint-plugin-react-hooks-with-use-effect-event": "npm:eslint-plugin-react-hooks@0.0.0-experimental-d415fd3e-20250919",
177
+ "eslint-plugin-react-hooks": "7.0.0",
179
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",
@@ -208,7 +208,6 @@ export const Tree = forwardRef(function Tree(
208
208
  ref.current.querySelectorAll('[data-ui="TreeItem"]'),
209
209
  ) as HTMLElement[]
210
210
 
211
- // eslint-disable-next-line react-hooks/set-state-in-effect
212
211
  setItemElements(_itemElements)
213
212
  }, [children])
214
213
 
@@ -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-with-use-effect-event/exhaustive-deps
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])