Skip to content

fix(react-motion): improve element validation to work with React 19 - #34164

Merged
Oleksandr Fediashov (layershifter) merged 3 commits into
microsoft:masterfrom
layershifter:chore/motion-validation-r19
Apr 15, 2025
Merged

Oleksandr Fediashov (layershifter) merged 3 commits into
microsoft:masterfrom
layershifter:chore/motion-validation-r19

Conversation

@layershifter

@layershifter Oleksandr Fediashov (layershifter) commented Apr 3, 2025 •

Copy link
Copy Markdown
Contributor

New Behavior

Related Issue(s)

Fixes #33404.

@github-actions github-actions Bot added this to the April Project Cycle Q2 2025 milestone Apr 3, 2025
@github-actions

github-actions Bot commented Apr 3, 2025 •

Copy link
Copy Markdown

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-accordion
Accordion (including children components)
107.726 kB
33.062 kB
107.764 kB
33.081 kB
38 B
19 B
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
225.646 kB
65.439 kB
225.68 kB
65.463 kB
34 B
24 B
react-components
react-components: entire library
1.228 MB
309.203 kB
1.228 MB
309.244 kB
-6 B
41 B
react-dialog
Dialog (including children components)
102.03 kB
30.627 kB
102.069 kB
30.655 kB
39 B
28 B
react-motion
@fluentui/react-motion - createMotionComponent()
4.986 kB
2.144 kB
4.005 kB
1.758 kB
-981 B
-386 B
react-motion
@fluentui/react-motion - createPresenceComponent()
5.837 kB
2.524 kB
4.857 kB
2.128 kB
-980 B
-396 B
react-toast
Toast (including Toaster)
102.172 kB
30.735 kB
102.206 kB
30.75 kB
34 B
15 B
react-tree
FlatTree
148.851 kB
42.662 kB
148.887 kB
42.688 kB
36 B
26 B
react-tree
PersonaFlatTree
149.603 kB
42.797 kB
149.639 kB
42.826 kB
36 B
29 B
react-tree
PersonaTree
145.806 kB
41.65 kB
145.84 kB
41.681 kB
34 B
31 B
react-tree
Tree
145.06 kB
41.528 kB
145.094 kB
41.551 kB
34 B
23 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
69.66 kB
20.247 kB
react-components
react-components: FluentProvider & webLightTheme
44.495 kB
14.606 kB
react-motion
@fluentui/react-motion - PresenceGroup
1.714 kB
819 B
react-portal-compat
PortalCompatProvider
8.39 kB
2.64 kB
react-timepicker-compat
TimePicker
109.035 kB
36.227 kB
🤖 This report was generated against cb14ccff78b8ee801d3f5c234bf5ed2e3ef327ae

@github-actions

github-actions Bot commented Apr 3, 2025

Copy link
Copy Markdown

Pull request demo site: URL

@layershifter
Oleksandr Fediashov (layershifter) marked this pull request as ready for review April 3, 2025 17:18
@layershifter
Oleksandr Fediashov (layershifter) merged commit dc43bc8 into microsoft:master Apr 15, 2025
@layershifter
Oleksandr Fediashov (layershifter) deleted the chore/motion-validation-r19 branch April 15, 2025 16:02
Robert Penner (robertpenner) added a commit to robertpenner/fluentui that referenced this pull request Sep 9, 2025
- Replace react-transition-group with @fluentui/react-motion components
- Use PresenceGroup and custom MessageBarMotion component
- Create custom fadeAtom and slideAtom motion definitions
- Remove MessageBarTransition.tsx and related CSS animations
- Add deprecation markers for unused properties
- Update to latest motion package versions (react-motion ^9.10.4, react-motion-components-preview ^0.10.0)
- Remove react-transition-group dependency

This restores the motion component refactoring from PR microsoft#33465,
which was reverted due to issue microsoft#33914. The underlying motion
framework bug has been fixed in PR microsoft#34164.
Robert Penner (robertpenner) added a commit to robertpenner/fluentui that referenced this pull request Sep 15, 2025
- Replace react-transition-group with @fluentui/react-motion components
- Use PresenceGroup and custom MessageBarMotion component
- Create custom fadeAtom and slideAtom motion definitions
- Remove MessageBarTransition.tsx and related CSS animations
- Add deprecation markers for unused properties
- Update to latest motion package versions (react-motion ^9.10.4, react-motion-components-preview ^0.10.0)
- Remove react-transition-group dependency

This restores the motion component refactoring from PR microsoft#33465,
which was reverted due to issue microsoft#33914. The underlying motion
framework bug has been fixed in PR microsoft#34164.
Robert Penner (robertpenner) added a commit to robertpenner/fluentui that referenced this pull request Sep 23, 2025
- Replace react-transition-group with @fluentui/react-motion components
- Use PresenceGroup and custom MessageBarMotion component
- Create custom fadeAtom and slideAtom motion definitions
- Remove MessageBarTransition.tsx and related CSS animations
- Add deprecation markers for unused properties
- Update to latest motion package versions (react-motion ^9.10.4, react-motion-components-preview ^0.10.0)
- Remove react-transition-group dependency

This restores the motion component refactoring from PR microsoft#33465,
which was reverted due to issue microsoft#33914. The underlying motion
framework bug has been fixed in PR microsoft#34164.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: @fluentui/react-motion: Invalid child element.

3 participants