Storybook: Fix emotion/is-prop-valid warning#68202
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: 0 B Total Size: 1.84 MB ℹ️ View Unchanged
|
|
Flaky tests detected in e44b61a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12434441860
|
* Move @emotion deps out of root package.json Move @emotion/is-prop-valid, @emotion/native, @emotion/react, and @emotion/styled out of the root `package.json` and into the workspaces that actually consume them, making dependency relationships explicit instead of relying on root hoisting. - `packages/components`: add `@emotion/native` (consumed by `src/text/index.native.js` and `src/text/styles/emotion-css.native.js`, previously a phantom dependency on the root). - `storybook`: add `@emotion/react`, `@emotion/styled` (consumed by `main.ts`, decorators, and stories), and `@emotion/is-prop-valid` (declared to silence the framer-motion warning per #68202). - Root `package.json`: remove the four entries above. * Components: Changelog entry for @emotion/native direct dependency Co-authored-by: manzoorwanijk <manzoorwanijk@git.wordpress.org> Co-authored-by: ciampo <mciampini@git.wordpress.org>
What?
This PR resolves the last warning we see on load in Storybook (after #68198 and #68199 tackled the other five).
Why?
Just fixing a warning.
How?
Adding
emotion/is-prop-validas a specific dev dependency because currently it's declared as an optional peer dependency:https://github.com/motiondivision/motion/blob/6ddb3e79685653f18a863f64f76c3fb5fade1903/packages/framer-motion/package.json#L94-L102
Testing Instructions
package-lock.json, just shifting existing ones around.Testing Instructions for Keyboard
Same
Screenshots or screencast