Commit f3a5cb7
Fix/nextjs hydration errors 12250 (#12251)
* refactor: #12250: replace GenerateId with useSSRSafeId in multiple components
- Updated AboutModal, CalendarMonth, CardHeader, Checkbox, DataListCheck, DrawerPanelContent, DualListSelector, DualListSelectorListItem, DualListSelectorListWrapper, DualListSelectorPane, ExpandableSection, FormGroup, InternalFormFieldGroup, JumpLinks, and MenuItem components to use useSSRSafeId for generating unique IDs instead of GenerateId.
- This change improves consistency and simplifies ID generation across components.
* refactor: replace default ID generation with SSRSafeIds in multiple components
- Updated Checkbox, ExpandableSection, FormSelect, Menu, MenuToggle, MenuToggleCheckbox, Modal, Nav, NavExpandable, and Progress components to utilize SSRSafeIds for generating unique IDs.
- This change enhances ID management and ensures consistency across components.
* fix: restore getDefaultOUIAId for deprecated class components
The deprecated Table class component in react-table still requires
getDefaultOUIAId which cannot be replaced with hooks. Re-added as
a simplified legacy function marked @deprecated.
Co-authored-by: Cursor <cursoragent@cursor.com>
* refactor: streamline interface definitions across multiple components
- improve interface definitions by removing unnecessary line breaks and enhancing readability.
- This change maintains consistency in code style across the codebase.
* fix: correct prettier formatting and update snapshots
Reformatted with Prettier 3.8.1 to match CI and updated snapshot
* fix: rebuild dist and update all remaining snapshots
* fix: update snapshots for various components
- Updated snapshots for CodeEditor, AboutModalBoxCloseButton, AlertActionCloseButton, AlertIcon, ClipboardCopyButton, and others to reflect recent changes in SVG icons and structure.
- Ensured consistency in icon rendering across components by replacing placeholder paths with actual SVG elements.
* refactor: update useSSRSafeId to utilize useId from React
- Replaced the import of React's useId with a direct import from 'react' in the useSSRSafeId helper.
- This change simplifies the code and ensures compatibility with the latest React features.
* fix(ToolbarLabelGroup): handle window resize events for responsive design
- Added a resize event listener to update the viewport width in the ToolbarLabelGroup component.
- Ensured proper cleanup of the event listener in componentWillUnmount.
- Updated Cypress tests for the Switch component to reflect changes in element visibility and interaction.
* fix(FormSelect): update ouiaComponentType to use displayName for improved accessibility
- Changed the ouiaComponentType prop in FormSelect to utilize the component's displayName instead of a concatenated string with validation status.
* fix(Tooltip): improve aria attribute handling for better accessibility
- Updated the logic for modifying the existing aria attribute to use split and filter methods, ensuring that the specified ID is removed correctly.
* fix(FormSelect): update snapshot ouiaComponentId format for consistency
- Modified the ouiaComponentId in FormSelect snapshots to remove the "default" and validation status, ensuring a uniform format across all instances.
* fix(DrawerPanelContent): update class name for no glass modifier to use new format
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 641c888 commit f3a5cb7
File tree
129 files changed
+2639
-2587
lines changed- packages
- react-code-editor/src/components/CodeEditor/__test__/__snapshots__
- react-core/src
- components
- AboutModal
- __tests__/__snapshots__
- Alert/__tests__/Generated/__snapshots__
- Breadcrumb/__tests__/__snapshots__
- Button/__tests__/__snapshots__
- CalendarMonth
- Card
- __tests__/__snapshots__
- Checkbox
- ClipboardCopy/__tests__/__snapshots__
- Compass/__tests__/__snapshots__
- DataList
- __tests__
- Generated/__snapshots__
- __snapshots__
- DatePicker/__tests__/__snapshots__
- Drawer
- __tests__
- Generated/__snapshots__
- __snapshots__
- DualListSelector
- EmptyState/__tests__/__snapshots__
- ExpandableSection
- __tests__/__snapshots__
- FileUpload/__tests__/__snapshots__
- FormSelect
- __tests__/__snapshots__
- Form
- __tests__/__snapshots__
- JumpLinks
- __tests__
- __snapshots__
- Label/__tests__/__snapshots__
- LoginPage/__tests__/__snapshots__
- MenuToggle
- __tests__/__snapshots__
- Menu
- __tests__/__snapshots__
- Modal
- __tests__/__snapshots__
- MultipleFileUpload
- __tests__/__snapshots__
- NotificationBadge/__tests__/__snapshots__
- NumberInput/__tests__/__snapshots__
- OverflowMenu/__tests__/Generated/__snapshots__
- Page/__tests__/__snapshots__
- Pagination/__tests__
- Generated/__snapshots__
- __snapshots__
- Popover
- __tests__/Generated/__snapshots__
- Progress
- Radio
- __tests__/__snapshots__
- SearchInput
- __tests__/__snapshots__
- Select
- SkipToContent/__tests__/__snapshots__
- Slider/__tests__/__snapshots__
- Switch
- __tests__/__snapshots__
- Tabs
- __tests__/__snapshots__
- TextInput
- __tests__/__snapshots__
- TimePicker
- Toolbar
- __tests__/__snapshots__
- Tooltip
- TreeView
- __tests__
- deprecated/components
- Chip
- __tests__/__snapshots__
- DualListSelector
- __tests__/__snapshots__
- Modal
- __tests__/__snapshots__
- Wizard/__tests__
- Generated/__snapshots__
- __snapshots__
- helpers
- GenerateId
- __tests__/__snapshots__
- OUIA
- SSRSafeIds
- react-drag-drop/src/components/DragDrop/__tests__/__snapshots__
- react-integration/cypress/integration
- react-table/src
- components/Table/__tests__/__snapshots__
- deprecated/components/Table/__tests__/__snapshots__
- react-templates/src/components
- Dropdown/__tests__/__snapshots__
- Select/__tests__/__snapshots__
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
129 files changed
+2639
-2587
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 26 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
105 | 101 | | |
106 | 102 | | |
107 | 103 | | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
| 93 | + | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
0 commit comments