Skip to content

Commit 3e1c518

Browse files
authored
chore: update dependencies (#7648)
1 parent 7b7b461 commit 3e1c518

File tree

15 files changed

+59
-53
lines changed

15 files changed

+59
-53
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@
125125
"@testing-library/dom": "^10.1.0",
126126
"@testing-library/jest-dom": "^5.16.5",
127127
"@testing-library/react": "^15.0.7",
128-
"@testing-library/user-event": "^14.5.2",
128+
"@testing-library/user-event": "^14.6.1",
129129
"@types/react": "npm:[email protected]",
130130
"@types/react-dom": "npm:[email protected]",
131131
"@types/storybook__react": "^4.0.2",

packages/@react-aria/collections/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@react-aria/utils": "^3.27.0",
2727
"@react-types/shared": "^3.27.0",
2828
"@swc/helpers": "^0.5.0",
29-
"use-sync-external-store": "^1.2.0"
29+
"use-sync-external-store": "^1.4.0"
3030
},
3131
"peerDependencies": {
3232
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",

packages/@react-aria/dnd/test/dnd.test.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2306,7 +2306,7 @@ describe('useDrag and useDrop', function () {
23062306
expect(document.getElementById(draggable.getAttribute('aria-describedby'))).toHaveTextContent('Click to start dragging');
23072307
expect(draggable).toHaveAttribute('data-dragging', 'false');
23082308

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

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

24312431
buttons = tree.getAllByRole('button');
@@ -2469,7 +2469,7 @@ describe('useDrag and useDrop', function () {
24692469
act(() => draggable.focus());
24702470
fireEvent(draggable, pointerEvent('pointerdown', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
24712471
fireEvent(draggable, pointerEvent('pointerup', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
2472-
await user.click(draggable);
2472+
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
24732473
act(() => jest.runAllTimers());
24742474
expect(draggable).toHaveAttribute('data-dragging', 'true');
24752475
expect(draggable).toHaveAttribute('aria-describedby');
@@ -2499,7 +2499,7 @@ describe('useDrag and useDrop', function () {
24992499
act(() => draggable.focus());
25002500
fireEvent(draggable, pointerEvent('pointerdown', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
25012501
fireEvent(draggable, pointerEvent('pointerup', {pointerId: 1, width: 1, height: 1, pressure: 0, detail: 0}));
2502-
await user.click(draggable);
2502+
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
25032503
act(() => jest.runAllTimers());
25042504
expect(draggable).toHaveAttribute('data-dragging', 'true');
25052505

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

2760-
await user.click(draggable);
2760+
await user.pointer({target: draggable, keys: '[MouseLeft]', coords: {width: 0, height: 0}});
27612761
act(() => jest.runAllTimers());
27622762
expect(document.activeElement).toBe(draggable);
27632763
expect(draggable).toHaveAttribute('aria-describedby');

packages/@react-aria/landmark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"@react-aria/utils": "^3.27.0",
2626
"@react-types/shared": "^3.27.0",
2727
"@swc/helpers": "^0.5.0",
28-
"use-sync-external-store": "^1.2.0"
28+
"use-sync-external-store": "^1.4.0"
2929
},
3030
"peerDependencies": {
3131
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",

packages/@react-aria/meter/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"@swc/helpers": "^0.5.0"
2929
},
3030
"peerDependencies": {
31-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
31+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
32+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
3233
},
3334
"publishConfig": {
3435
"access": "public"

packages/@react-aria/switch/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"@swc/helpers": "^0.5.0"
3030
},
3131
"peerDependencies": {
32-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
32+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
33+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
3334
},
3435
"publishConfig": {
3536
"access": "public"

packages/@react-aria/test-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"peerDependencies": {
2828
"@testing-library/react": "^15.0.7",
29-
"@testing-library/user-event": "^13.0.0 || ^14.0.0",
29+
"@testing-library/user-event": "^14.0.0",
3030
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
3131
},
3232
"publishConfig": {

packages/@react-spectrum/list/test/ListView.test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,29 +1100,29 @@ describe('ListView', function () {
11001100
let rows = tree.getAllByRole('row');
11011101
expect(rows[1]).toHaveAttribute('aria-selected', 'false');
11021102
expect(rows[2]).toHaveAttribute('aria-selected', 'false');
1103-
await user.keyboard('[CtrlLeft>]');
1103+
await user.keyboard('{Control>}');
11041104
await user.click(getRow(tree, 'Bar'));
1105-
await user.keyboard('[/CtrlLeft]');
1105+
await user.keyboard('{/Control}');
11061106

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

11121112
onSelectionChange.mockClear();
1113-
await user.keyboard('[CtrlLeft>]');
1113+
await user.keyboard('{Control>}');
11141114
await user.click(getRow(tree, 'Baz'));
1115-
await user.keyboard('[/CtrlLeft]');
1115+
await user.keyboard('{/Control}');
11161116
checkSelection(onSelectionChange, ['bar', 'baz']);
11171117
expect(rows[1]).toHaveAttribute('aria-selected', 'true');
11181118
expect(rows[2]).toHaveAttribute('aria-selected', 'true');
11191119
expect(announce).toHaveBeenLastCalledWith('Baz selected. 2 items selected.');
11201120
expect(announce).toHaveBeenCalledTimes(2);
11211121

11221122
onSelectionChange.mockClear();
1123-
await user.keyboard('[CtrlLeft>]');
1123+
await user.keyboard('{Control>}');
11241124
await user.click(getRow(tree, 'Bar'));
1125-
await user.keyboard('[/CtrlLeft]');
1125+
await user.keyboard('{/Control}');
11261126
checkSelection(onSelectionChange, ['baz']);
11271127
expect(rows[1]).toHaveAttribute('aria-selected', 'false');
11281128
expect(rows[2]).toHaveAttribute('aria-selected', 'true');
@@ -1197,7 +1197,7 @@ describe('ListView', function () {
11971197
let row = tree.getAllByRole('row')[1];
11981198
expect(row).toHaveAttribute('aria-selected', 'false');
11991199
await user.keyboard('[ControlLeft>]');
1200-
await user.pointer({target: getRow(tree, 'Bar'), keys: '[MouseLeft]', coords: {width: 1}});
1200+
await user.pointer({target: getRow(tree, 'Bar'), keys: '[MouseLeft]', coords: {pressure: 0.5}});
12011201
await user.keyboard('[/ControlLeft]');
12021202

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

13161316
let rows = tree.getAllByRole('row');
1317-
await user.pointer({target: rows[0], keys: '[MouseLeft]', coords: {width: 1}});
1317+
await user.pointer({target: rows[0], keys: '[MouseLeft]', coords: {pressure: 0.5}});
13181318
checkSelection(onSelectionChange, ['foo']);
13191319
onSelectionChange.mockClear();
13201320
expect(announce).toHaveBeenLastCalledWith('Foo selected.');

packages/@react-spectrum/table/test/TreeGridTable.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ describe('TableView with expandable rows', function () {
13501350
let cell = getCell(treegrid, 'Row 1, Lvl 3, Foo');
13511351

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

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

14421442
checkRowSelection(rows, false);
1443-
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {width: 1}});
1443+
await user.pointer({target: cell, keys: '[MouseLeft]', coords: {pressure: 0.5}});
14441444
act(() => jest.runAllTimers());
14451445
expect(announce).toHaveBeenLastCalledWith('Row 1, Lvl 3, Foo selected.');
14461446
expect(announce).toHaveBeenCalledTimes(1);
14471447
checkSelection(onSelectionChange, ['Row 1 Lvl 3']);
14481448
expect(onAction).not.toHaveBeenCalled();
14491449
onSelectionChange.mockReset();
1450-
await user.pointer({target: cell, keys: '[MouseLeft][MouseLeft]', coords: {width: 1}});
1450+
await user.pointer({target: cell, keys: '[MouseLeft][MouseLeft]', coords: {pressure: 0.5}});
14511451
act(() => jest.runAllTimers());
14521452
expect(announce).toHaveBeenCalledTimes(1);
14531453
expect(onSelectionChange).not.toHaveBeenCalled();

packages/@react-spectrum/test-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
},
3030
"peerDependencies": {
3131
"@testing-library/react": "^15.0.7",
32-
"@testing-library/user-event": "^13.0.0 || ^14.0.0",
32+
"@testing-library/user-event": "^14.0.0",
3333
"jest": "^29.5.0",
3434
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
3535
},

packages/@react-spectrum/toast/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@react-types/shared": "^3.27.0",
4848
"@spectrum-icons/ui": "^3.6.12",
4949
"@swc/helpers": "^0.5.0",
50-
"use-sync-external-store": "^1.2.0"
50+
"use-sync-external-store": "^1.4.0"
5151
},
5252
"devDependencies": {
5353
"@adobe/spectrum-css-temp": "3.0.0-alpha.1",

packages/@react-stately/layout/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"@swc/helpers": "^0.5.0"
3232
},
3333
"peerDependencies": {
34-
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
34+
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
35+
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
3536
},
3637
"publishConfig": {
3738
"access": "public"

packages/@react-stately/toast/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@swc/helpers": "^0.5.0",
26-
"use-sync-external-store": "^1.2.0"
26+
"use-sync-external-store": "^1.4.0"
2727
},
2828
"devDependencies": {
2929
"@types/use-sync-external-store": "^0.0.3"

packages/react-aria-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"client-only": "^0.0.1",
7171
"react-aria": "^3.37.0",
7272
"react-stately": "^3.35.0",
73-
"use-sync-external-store": "^1.2.0"
73+
"use-sync-external-store": "^1.4.0"
7474
},
7575
"peerDependencies": {
7676
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",

0 commit comments

Comments
 (0)