Skip to content

Commit

Permalink
chore: update dependencies (#7648)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowystinger authored Jan 22, 2025
1 parent 7b7b461 commit 3e1c518
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 53 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"@testing-library/user-event": "^14.6.1",
"@types/react": "npm:[email protected]",
"@types/react-dom": "npm:[email protected]",
"@types/storybook__react": "^4.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/collections/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@react-aria/utils": "^3.27.0",
"@react-types/shared": "^3.27.0",
"@swc/helpers": "^0.5.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.4.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
Expand Down
26 changes: 13 additions & 13 deletions packages/@react-aria/dnd/test/dnd.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2306,7 +2306,7 @@ describe('useDrag and useDrop', function () {
expect(document.getElementById(draggable.getAttribute('aria-describedby'))).toHaveTextContent('Click to start dragging');
expect(draggable).toHaveAttribute('data-dragging', 'false');

await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());
expect(document.activeElement).toBe(draggable);
expect(draggable).toHaveAttribute('aria-describedby');
Expand Down Expand Up @@ -2425,7 +2425,7 @@ describe('useDrag and useDrop', function () {
let buttons = tree.getAllByRole('button');
expect(buttons).toHaveLength(4);

await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

buttons = tree.getAllByRole('button');
Expand Down Expand Up @@ -2469,7 +2469,7 @@ describe('useDrag and useDrop', function () {
act(() => draggable.focus());
fireEvent(draggable, pointerEvent('pointerdown', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
fireEvent(draggable, pointerEvent('pointerup', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());
expect(draggable).toHaveAttribute('data-dragging', 'true');
expect(draggable).toHaveAttribute('aria-describedby');
Expand Down Expand Up @@ -2499,7 +2499,7 @@ describe('useDrag and useDrop', function () {
act(() => draggable.focus());
fireEvent(draggable, pointerEvent('pointerdown', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
fireEvent(draggable, pointerEvent('pointerup', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());
expect(draggable).toHaveAttribute('data-dragging', 'true');

Expand Down Expand Up @@ -2536,7 +2536,7 @@ describe('useDrag and useDrop', function () {
let draggable = tree.getByText('Drag me');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

expect(tree.getAllByRole('button')).toHaveLength(2);
Expand Down Expand Up @@ -2597,7 +2597,7 @@ describe('useDrag and useDrop', function () {
let draggable = tree.getByText('Drag me');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

expect(tree.getAllByRole('button')).toHaveLength(3);
Expand All @@ -2622,7 +2622,7 @@ describe('useDrag and useDrop', function () {
let draggable = tree.getByText('Drag me');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

expect(tree.getAllByRole('button')).toHaveLength(3);
Expand All @@ -2645,7 +2645,7 @@ describe('useDrag and useDrop', function () {
let input = tree.getByRole('textbox');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

act(() => droppable.focus());
Expand All @@ -2665,7 +2665,7 @@ describe('useDrag and useDrop', function () {
let input = tree.getByRole('textbox');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

act(() => input.focus());
Expand All @@ -2682,7 +2682,7 @@ describe('useDrag and useDrop', function () {
let droppable = tree.getByText('Drop here');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

act(() => droppable.focus());
Expand All @@ -2700,7 +2700,7 @@ describe('useDrag and useDrop', function () {
let draggable = tree.getByText('Drag me');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());

act(() => draggable.blur());
Expand Down Expand Up @@ -2732,7 +2732,7 @@ describe('useDrag and useDrop', function () {
let droppable = tree.getByText('Drop here');

act(() => draggable.focus());
await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());
expect(draggable).toHaveAttribute('data-dragging', 'true');

Expand All @@ -2757,7 +2757,7 @@ describe('useDrag and useDrop', function () {
expect(draggable).toHaveAttribute('aria-describedby');
expect(document.getElementById(draggable.getAttribute('aria-describedby'))).toHaveTextContent('Double tap to start dragging');

await user.click(draggable);
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
act(() => jest.runAllTimers());
expect(document.activeElement).toBe(draggable);
expect(draggable).toHaveAttribute('aria-describedby');
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/landmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@react-aria/utils": "^3.27.0",
"@react-types/shared": "^3.27.0",
"@swc/helpers": "^0.5.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.4.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/@react-aria/meter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
Expand Down
3 changes: 2 additions & 1 deletion packages/@react-aria/switch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-aria/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"peerDependencies": {
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^13.0.0 || ^14.0.0",
"@testing-library/user-event": "^14.0.0",
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
Expand Down
16 changes: 8 additions & 8 deletions packages/@react-spectrum/list/test/ListView.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1100,29 +1100,29 @@ describe('ListView', function () {
let rows = tree.getAllByRole('row');
expect(rows[1]).toHaveAttribute('aria-selected', 'false');
expect(rows[2]).toHaveAttribute('aria-selected', 'false');
await user.keyboard('[CtrlLeft>]');
await user.keyboard('{Control>}');
await user.click(getRow(tree, 'Bar'));
await user.keyboard('[/CtrlLeft]');
await user.keyboard('{/Control}');

checkSelection(onSelectionChange, ['bar']);
expect(rows[1]).toHaveAttribute('aria-selected', 'true');
expect(announce).toHaveBeenLastCalledWith('Bar selected.');
expect(announce).toHaveBeenCalledTimes(1);

onSelectionChange.mockClear();
await user.keyboard('[CtrlLeft>]');
await user.keyboard('{Control>}');
await user.click(getRow(tree, 'Baz'));
await user.keyboard('[/CtrlLeft]');
await user.keyboard('{/Control}');
checkSelection(onSelectionChange, ['bar', 'baz']);
expect(rows[1]).toHaveAttribute('aria-selected', 'true');
expect(rows[2]).toHaveAttribute('aria-selected', 'true');
expect(announce).toHaveBeenLastCalledWith('Baz selected. 2 items selected.');
expect(announce).toHaveBeenCalledTimes(2);

onSelectionChange.mockClear();
await user.keyboard('[CtrlLeft>]');
await user.keyboard('{Control>}');
await user.click(getRow(tree, 'Bar'));
await user.keyboard('[/CtrlLeft]');
await user.keyboard('{/Control}');
checkSelection(onSelectionChange, ['baz']);
expect(rows[1]).toHaveAttribute('aria-selected', 'false');
expect(rows[2]).toHaveAttribute('aria-selected', 'true');
Expand Down Expand Up @@ -1197,7 +1197,7 @@ describe('ListView', function () {
let row = tree.getAllByRole('row')[1];
expect(row).toHaveAttribute('aria-selected', 'false');
await user.keyboard('[ControlLeft>]');
await user.pointer({target: getRow(tree, 'Bar'), keys: '[MouseLeft]', coords: {width: 1}});
await user.pointer({target: getRow(tree, 'Bar'), keys: '[MouseLeft]', coords: {pressure: 0.5}});
await user.keyboard('[/ControlLeft]');

checkSelection(onSelectionChange, ['bar']);
Expand Down Expand Up @@ -1314,7 +1314,7 @@ describe('ListView', function () {
let tree = renderSelectionList({onSelectionChange, selectionStyle: 'highlight', onAction, selectionMode: 'multiple'});

let rows = tree.getAllByRole('row');
await user.pointer({target: rows[0], keys: '[MouseLeft]', coords: {width: 1}});
await user.pointer({target: rows[0], keys: '[MouseLeft]', coords: {pressure: 0.5}});
checkSelection(onSelectionChange, ['foo']);
onSelectionChange.mockClear();
expect(announce).toHaveBeenLastCalledWith('Foo selected.');
Expand Down
8 changes: 4 additions & 4 deletions packages/@react-spectrum/table/test/TreeGridTable.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ describe('TableView with expandable rows', function () {
let cell = getCell(treegrid, 'Row 1, Lvl 3, Foo');

checkRowSelection(rows, false);
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {width: 1}});
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {pressure: 0.5}});
act(() => jest.runAllTimers());
expect(announce).toHaveBeenLastCalledWith('Row 1, Lvl 3, Foo selected.');
expect(announce).toHaveBeenCalledTimes(1);
Expand All @@ -1359,7 +1359,7 @@ describe('TableView with expandable rows', function () {
onSelectionChange.mockReset();

cell = getCell(treegrid, 'Row 1, Lvl 1, Foo');
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {width: 1}});
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {pressure: 0.5}});
act(() => jest.runAllTimers());
expect(announce).toHaveBeenLastCalledWith('Row 1, Lvl 1, Foo selected.');
expect(announce).toHaveBeenCalledTimes(2);
Expand Down Expand Up @@ -1440,14 +1440,14 @@ describe('TableView with expandable rows', function () {
let cell = getCell(treegrid, 'Row 1, Lvl 3, Foo');

checkRowSelection(rows, false);
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {width: 1}});
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {pressure: 0.5}});
act(() => jest.runAllTimers());
expect(announce).toHaveBeenLastCalledWith('Row 1, Lvl 3, Foo selected.');
expect(announce).toHaveBeenCalledTimes(1);
checkSelection(onSelectionChange, ['Row 1 Lvl 3']);
expect(onAction).not.toHaveBeenCalled();
onSelectionChange.mockReset();
await user.pointer({target: cell, keys: '[MouseLeft][MouseLeft]', coords: {width: 1}});
await user.pointer({target: cell, keys: '[MouseLeft][MouseLeft]', coords: {pressure: 0.5}});
act(() => jest.runAllTimers());
expect(announce).toHaveBeenCalledTimes(1);
expect(onSelectionChange).not.toHaveBeenCalled();
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-spectrum/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"peerDependencies": {
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^13.0.0 || ^14.0.0",
"@testing-library/user-event": "^14.0.0",
"jest": "^29.5.0",
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-spectrum/toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@react-types/shared": "^3.27.0",
"@spectrum-icons/ui": "^3.6.12",
"@swc/helpers": "^0.5.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.4.0"
},
"devDependencies": {
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/@react-stately/layout/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"@swc/helpers": "^0.5.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/@react-stately/toast/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@swc/helpers": "^0.5.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.4.0"
},
"devDependencies": {
"@types/use-sync-external-store": "^0.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/react-aria-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"client-only": "^0.0.1",
"react-aria": "^3.37.0",
"react-stately": "^3.35.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.4.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
Expand Down
Loading

1 comment on commit 3e1c518

@rspbot
Copy link

@rspbot rspbot commented on 3e1c518 Jan 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.