Bump styled-components from 6.1.1 to 6.4.2 in /graylog2-web-interface/packages/graylog-web-plugin#26132
Open
dependabot[bot] wants to merge 6 commits into
Conversation
Bumps [styled-components](https://github.com/styled-components/styled-components) from 6.1.1 to 6.4.2. - [Release notes](https://github.com/styled-components/styled-components/releases) - [Commits](https://github.com/styled-components/styled-components/compare/v6.1.1...styled-components@6.4.2) --- updated-dependencies: - dependency-name: styled-components dependency-version: 6.4.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
styled-components 6.4.2 no longer accepts transient ($-prefixed) props
on a styled component unless they are declared via the `<{ ... }>`
generic. Move the prop declarations out of the surrounding
`React.ComponentType` annotation, and replace the `style` derivation
through StyledButton — which now resolves to the empty Mantine prop
set — with a plain `React.CSSProperties`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
In 6.4.2 the styled component's `as` prop is typed as `WebTarget` (which includes class components), incompatible with the `Validator<string>` that `React.ComponentType<Props>.propTypes.as` expects. Drop the redundant cast; inference produces the right type. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
styled-components 6.4.2 puts `AsTarget` in the first generic slot of the call signature, which swallows Mantine SegmentedControl's value type generic. JSX usage like `<StyledSegmentedControl<DetailsSegment>>` then matches the with-`as` overload and demands an `as` prop, while the `onChange` parameter widens to `string`. Annotate the styled component as `typeof SegmentedControl` so the generic-value pass-through keeps working at the call sites. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The styled component's `color` prop carries the value returned by `mapStyle`, which is a CSS color string from the theme (e.g. `theme.colors.variant[style]`), not a `ColorVariant` name. Older styled-components let the inner Mantine `color: MantineColor` (≈ any string) pass through; 6.4.2 substitutes the explicit generic and now flags the mismatch. Type the slot as `string` to match reality. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
react-ace's prop union is wide enough that styled-components 6.4.2's extra `OverrideStyle<NoInfer<Substitute<...>>>` layers push TypeScript past its recursion budget, producing "type too deep" / "union too complex" errors at every JSX use site of StyledAceEditor. Cast AceEditor to a plain `React.ComponentType<ComponentProps<typeof AceEditor>>` first so styled-components only has to wrap one component type instead of resolving the polymorphic class with its own generics. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Member
|
Blocked by styled-components/styled-components#5756 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps styled-components from 6.1.1 to 6.4.2.
Release notes
Sourced from styled-components's releases.
... (truncated)
Commits
f9f6546Version Packages1794522fix: include changesets re-touched since the last prerelease [skip ci]0097cdbci: branch-scoped Version Packages PR titled20b88efix(types): accept wrapped component's ownastype when spreading props (#5...786cd8bfix: don't double-count changesets already posted in a prior prerelease0dd1325chore: adjust release script4f2923achore: get 6.x prereleases working properly99459046.x bugfixes (#5746)f7cddb5chore: run workflows for 6.x499664echore: prep to allow 6.x point releasesMaintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for styled-components since your current version.
You can trigger a rebase of this PR by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)