Skip to content

feat: container support#2283

Draft
christianhg wants to merge 1 commit intomainfrom
feat/containers
Draft

feat: container support#2283
christianhg wants to merge 1 commit intomainfrom
feat/containers

Conversation

@christianhg
Copy link
Member

Long-lived feature branch for container support in PTE.

What's here so far

Adds containers to the schema for block types the user can navigate into (tables, callouts, asides).

The schema now has three categories of block-level types:

  • blockObjects - void blocks the cursor skips over (image, video, code block)
  • containers - navigable blocks the cursor can enter (table, callout)
  • block - text blocks with children spans

@portabletext/schema

  • ContainerSchemaType and ContainerDefinition types
  • containers on Schema, SchemaDefinition, and compileSchema

@portabletext/sanity-bridge

Bridge outputs containers: [] for now. The Sanity-side config surface for declaring containers will come later.

@vercel
Copy link

vercel bot commented Mar 2, 2026

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

Project Deployment Actions Updated (UTC)
portable-text-example-basic Ready Ready Preview, Comment Mar 2, 2026 2:15pm
portable-text-playground Building Building Preview, Comment Mar 2, 2026 2:15pm

Request Review

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