Skip to content

Conversation

@christianhg
Copy link
Member

@christianhg christianhg commented Jan 26, 2026

It is time. Neither Studio nor Canvas depend on this component anymore. We also want to remove the @sanity/* dependencies from @portabletext/editor (#2136), and removing the <PortableTextEditor> React component beforehand feels like the right call so we don't have to make a breaking change to that legacy component.

It is time. Neither Studio nor Canvas depends on this component anymore.
@changeset-bot
Copy link

changeset-bot bot commented Jan 26, 2026

🦋 Changeset detected

Latest commit: 648ad4c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 10 packages
Name Type
@portabletext/editor Major
@portabletext/plugin-character-pair-decorator Major
@portabletext/plugin-emoji-picker Major
@portabletext/plugin-input-rule Major
@portabletext/plugin-markdown-shortcuts Major
@portabletext/plugin-one-line Major
@portabletext/plugin-sdk-value Major
@portabletext/plugin-typeahead-picker Major
@portabletext/plugin-typography Major
@portabletext/toolbar Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Jan 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
portable-text-editor-documentation Ready Ready Preview, Comment Jan 26, 2026 11:53am
portable-text-example-basic Ready Ready Preview, Comment Jan 26, 2026 11:53am
portable-text-example-legacy Error Error Jan 26, 2026 11:53am
portable-text-playground Ready Ready Preview, Comment Jan 26, 2026 11:53am

Request Review

Copy link
Member

@stipsan stipsan left a comment

Choose a reason for hiding this comment

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

chefs kiss gif

PortableTextEditorProps<InternalEditor | undefined>
> {
public static displayName = 'PortableTextEditor'
export class PortableTextEditor {
Copy link
Member

Choose a reason for hiding this comment

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

This is such a nice refactor and cleanup, I've been waiting for the day where our PortableTextEditor singleton no longer extended React.Component and no longer be so overloaded 😌 Well done!!

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.

3 participants