Skip to content

Update React Aria Components to 1.22 - #273

Open
sneridagh wants to merge 2 commits into
feat/controlpanels-scaffoldfrom
feat/react-aria-1.22
Open

sneridagh wants to merge 2 commits into
feat/controlpanels-scaffoldfrom
feat/react-aria-1.22

Conversation

@sneridagh

Copy link
Copy Markdown
Member

Updates React Aria Components from 1.17 to 1.22, stacked on #271 (part of #269). The new Quanta controls in the next PR build on the 1.22 APIs.

What

  • react-aria-components 1.17.0 → 1.22.1
  • react-aria 3.48 → 3.53.1
  • react-stately 3.46 → 3.51
  • @react-aria/utils 3.34.1, @react-spectrum/utils 3.13.1, @internationalized/date 3.12.4
  • All React Aria packages now come from the pnpm catalog. @react-types/shared (three different ranges in contents, icons and quanta) and tailwindcss-react-aria-components (^2.0.0 in five packages, now 2.2.0) are added to catalog.json and referenced as catalog:.
  • @adobe/react-spectrum, pulled in by @react-spectrum/utils through @plone/icons, is updated to 3.47.7. Before this, it kept a second copy of react-aria-components 1.17 in the lockfile; now there is one.

Release notes checked (1.18 to 1.22)

  • No breaking changes affect our code. The Menu changes (MenuSection no longer takes disabledKeys; onAction now also gets the item's value) don't touch anything we use.
  • Deprecated in 1.18: Checkbox, Radio and Switch, in favor of CheckboxField/RadioField/SwitchField with CheckboxButton/RadioButton/SwitchButton inside. They still work.
    • Uses: Quanta Checkbox and RadioGroup, @plone/components Checkbox, RadioGroup and Switch, cmsui SharingForm, contents PropertiesModal.
    • Migrating them belongs in its own PR. The new Quanta Switch in the next PR uses the new API from the start.
  • 1.22 adds Sheet, a swipeable overlay from the edge of the screen. It fits mobile. Desktop control panels keep a regular side drawer, so it isn't adopted here.

Checks

  • pnpm build:deps passes.
  • check:ts passes in every package except @plone/contents, whose 13 errors are the same on main.
  • pnpm test:ci: all packages pass.
  • Playwright acceptance suite: 217 passed.

Also move every React Aria package and tailwindcss-react-aria-components into
the pnpm catalog, and update @adobe/react-spectrum so the lockfile has a single
react-aria-components.
* feat/controlpanels-scaffold:
  Drop the unused React imports in @plone/controlpanels
  Ship @plone/controlpanels as source, like the other add-ons

This branch has not been deployed

No deployments
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.

1 participant