Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix!: fix various 8.0.0 issues #2820

Merged
merged 29 commits into from Mar 21, 2024
Merged

Conversation

jpandersen87
Copy link
Contributor

@jpandersen87 jpandersen87 commented Mar 15, 2024

Summary

This PR fixes some issues with the 8.0.0 release. It also addresses the issue of focus-trap-react and jsdom by requiring users to add focus-trap-react as a dependency to their projects with documentation on the issue so that they can ensure unit tests rendering Modal do not fail.

  • add css files to package.json exports (credit to mdmower-csnw)
  • add jest-dom to tsconfig types
  • add focus-trap-react as peer dependency and exclude from library bundle
  • update documentation to explain the focus-trap-react issue and to install focus-trap-react with react-uswds
  • update dependencies
  • updates and fixes presented yarn version (fixes errors when adding library via git)
  • adds some protection against undefined properties in dangerfile

Related Issues or PRs

How To Test

  • Use this branch for the version of react-uswds in your project
  • Verify that you can successfully import the index.css and uswds.css files in code
  • Verify that you can mock the focus-trap-react library to prevent errors when rendering Modal in unit tests

Let projects import lib/index.css and lib/uswds.css by adding them to
conditional exports in package.json.
@jpandersen87 jpandersen87 requested review from a team as code owners March 15, 2024 22:12
@jpandersen87 jpandersen87 changed the title fix: fix various 8.0.0 issues fix!: fix various 8.0.0 issues Mar 15, 2024
@jpandersen87 jpandersen87 marked this pull request as draft March 18, 2024 17:42
@jpandersen87
Copy link
Contributor Author

Temporarily moving to draft to fix git history

werdnanoslen and others added 22 commits March 18, 2024 12:46
Co-authored-by: Shauna Keating <59394696+shkeating@users.noreply.github.com>
…russworks#2813)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…0.5.21 (trussworks#2814)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
…russworks#2816)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
…ssworks#2818)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
- add css files to package.json exports
- add jest-dom to tsconfig types
- add focus-trap-react as peer dependency
- update dependencies
- migrated to sb 8.0
- explanation of issue
- update install instructions to include react-focus-trap
…s#2821)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ssworks#2823)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
…rks#2824)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
…7.2.0 (trussworks#2826)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
… 11.1.0 (trussworks#2831)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
@jpandersen87 jpandersen87 marked this pull request as ready for review March 18, 2024 17:55
@jpandersen87
Copy link
Contributor Author

Rebased off of @mdmower-csnw 's css branch to ensure he is credited.

rswerve
rswerve previously approved these changes Mar 21, 2024
Copy link
Contributor

@rswerve rswerve left a comment

Choose a reason for hiding this comment

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

this was tested by someone on our project who reported it didn't break anything. @werdnanoslen I'm approving 👍

README.md Outdated Show resolved Hide resolved
Copy link
Member

@werdnanoslen werdnanoslen left a comment

Choose a reason for hiding this comment

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

Fantastic, thanks again for the fixes

@werdnanoslen werdnanoslen merged commit e05061e into trussworks:main Mar 21, 2024
6 checks passed
@jpandersen87 jpandersen87 deleted the 8.0.0-bugs branch March 21, 2024 19:20
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.

None yet

4 participants