Skip to content

Commit 917ef62

Browse files
Merge branch 'main' into dependabot/npm_and_yarn/next-15.3.3
2 parents 6b079be + 54e1f82 commit 917ef62

File tree

84 files changed

+356
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+356
-138
lines changed

.github/workflows/update-snapshots.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
rm snapshots.zip
111111
rm $filepath
112112
done
113-
- uses: stefanzweifel/git-auto-commit-action@b863ae1933cb653a53c021fe36dbb774e1fb9403
113+
- uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0
114114
with:
115115
commit_message: 'test(vrt): update snapshots'
116116

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import githubPlugin from 'eslint-plugin-github'
99
import jest from 'eslint-plugin-jest'
1010
import storybook from 'eslint-plugin-storybook'
1111
import react from 'eslint-plugin-react'
12+
import reactCompiler from 'eslint-plugin-react-compiler'
1213
import reactHooks from 'eslint-plugin-react-hooks'
1314
import playwright from 'eslint-plugin-playwright'
1415
import prettierRecommended from 'eslint-plugin-prettier/recommended'
@@ -59,6 +60,7 @@ const config = defineConfig([
5960

6061
react.configs.flat.recommended,
6162
react.configs.flat['jsx-runtime'],
63+
reactCompiler.configs.recommended,
6264
reactHooks.configs['recommended-latest'],
6365

6466
github.browser,

package-lock.json

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
"eslint-plugin-prettier": "^5.2.6",
7474
"eslint-plugin-primer-react": "^6.1.6",
7575
"eslint-plugin-react": "^7.35.5",
76+
"eslint-plugin-react-compiler": "^19.1.0-rc.2",
7677
"eslint-plugin-react-hooks": "^5.2.0",
7778
"eslint-plugin-ssr-friendly": "1.3.0",
7879
"eslint-plugin-storybook": "^0.12.0",

packages/react/src/ActionList/ActionList.docs.json

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
},
4040
{
4141
"name": "sx",
42-
"type": "SystemStyleObject"
42+
"type": "SystemStyleObject",
43+
"deprecated": true
4344
}
4445
],
4546
"subcomponents": [
@@ -109,7 +110,8 @@
109110
},
110111
{
111112
"name": "sx",
112-
"type": "SystemStyleObject"
113+
"type": "SystemStyleObject",
114+
"deprecated": true
113115
}
114116
]
115117
},
@@ -139,7 +141,8 @@
139141
},
140142
{
141143
"name": "sx",
142-
"type": "SystemStyleObject"
144+
"type": "SystemStyleObject",
145+
"deprecated": true
143146
}
144147
]
145148
},
@@ -177,7 +180,8 @@
177180
},
178181
{
179182
"name": "sx",
180-
"type": "SystemStyleObject"
183+
"type": "SystemStyleObject",
184+
"deprecated": true
181185
}
182186
],
183187
"passthrough": {
@@ -197,7 +201,8 @@
197201
},
198202
{
199203
"name": "sx",
200-
"type": "SystemStyleObject"
204+
"type": "SystemStyleObject",
205+
"deprecated": true
201206
}
202207
]
203208
},
@@ -213,7 +218,8 @@
213218
},
214219
{
215220
"name": "sx",
216-
"type": "SystemStyleObject"
221+
"type": "SystemStyleObject",
222+
"deprecated": true
217223
}
218224
]
219225
},
@@ -266,7 +272,8 @@
266272
},
267273
{
268274
"name": "sx",
269-
"type": "SystemStyleObject"
275+
"type": "SystemStyleObject",
276+
"deprecated": true
270277
},
271278
{
272279
"name": "className",
@@ -275,10 +282,10 @@
275282
"description": "CSS string"
276283
},
277284
{
278-
"name": "truncate",
279-
"type": "boolean",
280-
"defaultValue": "false",
281-
"description": "Whether the inline description should truncate the text on overflow."
285+
"name": "truncate",
286+
"type": "boolean",
287+
"defaultValue": "false",
288+
"description": "Whether the inline description should truncate the text on overflow."
282289
}
283290
]
284291
},
@@ -321,7 +328,8 @@
321328
},
322329
{
323330
"name": "sx",
324-
"type": "SystemStyleObject"
331+
"type": "SystemStyleObject",
332+
"deprecated": true
325333
}
326334
]
327335
},
@@ -368,7 +376,8 @@
368376
},
369377
{
370378
"name": "sx",
371-
"type": "SystemStyleObject"
379+
"type": "SystemStyleObject",
380+
"deprecated": true
372381
}
373382
]
374383
},
@@ -378,7 +387,8 @@
378387
"props": [
379388
{
380389
"name": "sx",
381-
"type": "SystemStyleObject"
390+
"type": "SystemStyleObject",
391+
"deprecated": true
382392
}
383393
]
384394
}

packages/react/src/ActionList/ActionList.features.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,8 +662,10 @@ export const ChildWithSideEffects = () => {
662662
const [selected, setSelected] = React.useState(true)
663663

664664
const SideEffectDescription = () => {
665+
// eslint-disable-next-line react-compiler/react-compiler
665666
const [seconds, setSeconds] = React.useState(0)
666667

668+
// eslint-disable-next-line react-compiler/react-compiler
667669
React.useEffect(() => {
668670
const fn = () => setSeconds(s => s + 1)
669671
const interval = window.setInterval(fn, 1000)

packages/react/src/ActionMenu/ActionMenu.examples.stories.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ export const ContextMenu = () => {
241241
setOpen(true)
242242
}
243243

244+
// eslint-disable-next-line react-compiler/react-compiler
244245
const [open, setOpen] = React.useState(false)
246+
// eslint-disable-next-line react-compiler/react-compiler
245247
const triggerRef = React.useRef<HTMLButtonElement>(null)
246248

247249
return (

packages/react/src/ActionMenu/ActionMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ const Menu: React.FC<React.PropsWithChildren<ActionMenuProps>> = ({
111111
// tooltip trigger
112112
const anchorChildren = child.props.children
113113
if (anchorChildren.type === MenuButton) {
114+
// eslint-disable-next-line react-compiler/react-compiler
114115
renderAnchor = anchorProps => {
115116
// We need to attach the anchor props to the tooltip trigger (ActionMenu.Button's grandchild) not the tooltip itself.
116117
const triggerButton = React.cloneElement(

packages/react/src/Autocomplete/AutocompleteInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ const AutocompleteInput = React.forwardRef(
153153
}
154154

155155
// calling this useEffect when `highlightRemainingText` changes breaks backspace functionality
156+
// eslint-disable-next-line react-compiler/react-compiler
156157
// eslint-disable-next-line react-hooks/exhaustive-deps
157158
}, [autocompleteSuggestion, inputValue, inputRef, isMenuDirectlyActivated])
158159

packages/react/src/Autocomplete/AutocompleteMenu.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ function AutocompleteMenu<T extends AutocompleteItemProps>(props: AutocompleteMe
288288
},
289289
activeDescendantFocus: inputRef,
290290
onActiveDescendantChanged: (current, _previous, directlyActivated) => {
291+
// eslint-disable-next-line react-compiler/react-compiler
291292
activeDescendantRef.current = current || null
292293
if (current) {
293294
const selectedItem = allItemsToRenderRef.current.find(item => {

0 commit comments

Comments
 (0)