@react-magma/dropzone 14.0.0-rc.3 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-magma/dropzone",
3
- "version": "14.0.0-rc.3",
3
+ "version": "14.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -35,7 +35,7 @@
35
35
  "@emotion/styled": "11.14.0",
36
36
  "react": "18.3.1",
37
37
  "react-dom": "18.3.1",
38
- "react-magma-dom": "^5.1.0-rc.87",
38
+ "react-magma-dom": "^5.0.0",
39
39
  "react-magma-icons": "^3.2.5"
40
40
  },
41
41
  "peerDependencies": {
@@ -43,7 +43,7 @@
43
43
  "@emotion/styled": "11.14.0",
44
44
  "react": "18.3.1",
45
45
  "react-dom": "18.3.1",
46
- "react-magma-dom": "^5.1.0-rc.3",
46
+ "react-magma-dom": "^5.0.0",
47
47
  "react-magma-icons": "^3.2.5"
48
48
  },
49
49
  "engines": {
@@ -388,7 +388,7 @@ describe('File Uploader', () => {
388
388
 
389
389
  const ui = <Dropzone maxFiles={1} testId={testId} />;
390
390
 
391
- const { getByTestId, getByText, rerender } = render(ui);
391
+ const { getByTestId, getAllByText, rerender } = render(ui);
392
392
 
393
393
  const dropzone = getByTestId(testId);
394
394
 
@@ -398,7 +398,7 @@ describe('File Uploader', () => {
398
398
 
399
399
  await waitFor(() => {
400
400
  expect(
401
- getByText('You must upload a maximum of 1 files.')
401
+ getAllByText('You must upload a maximum of 1 files.')[0]
402
402
  ).toBeInTheDocument();
403
403
  });
404
404
  });
@@ -409,7 +409,7 @@ describe('File Uploader', () => {
409
409
 
410
410
  const ui = <Dropzone minFiles={6} testId={testId} />;
411
411
 
412
- const { getByTestId, getByText, rerender } = render(ui);
412
+ const { getByTestId, getAllByText, rerender } = render(ui);
413
413
 
414
414
  const dropzone = getByTestId(testId);
415
415
  fireDrop(dropzone, data);
@@ -418,7 +418,7 @@ describe('File Uploader', () => {
418
418
 
419
419
  await waitFor(() => {
420
420
  expect(
421
- getByText('You must upload a minimum of 6 files.')
421
+ getAllByText('You must upload a minimum of 6 files.')[0]
422
422
  ).toBeInTheDocument();
423
423
  });
424
424
  });