Skip to content

test: migrate input-rule.smart-quotes.feature from terse-pt to textspec#2562

Open
christianhg wants to merge 1 commit into
mainfrom
textspec-smart-quotes
Open

test: migrate input-rule.smart-quotes.feature from terse-pt to textspec#2562
christianhg wants to merge 1 commit into
mainfrom
textspec-smart-quotes

Conversation

@christianhg

Copy link
Copy Markdown
Member

Migrates the smart-quotes plugin-typography feature from terse-pt to textspec, the last getTersePt-using .feature file in plugin-typography. Bumps @textspec/notation to 1.0.2 to pick up the " escape fix in the serializer.

Most rows convert mechanically. The cases where the editor's content contains literal " use the docstring variant of Then the editor state is because cucumber-expressions {string} regex chokes on consecutive bare "s.

One scenario is deferred: typing """ (three straight double quotes). Cucumber-expressions {string} rejects the input, and gherkin docstrings silently strip repeated \" sequences during delivery, so neither phrasing of the assertion survives the pipeline. The scenario stays as a comment in the feature file. A custom textspec parameter type with a greedy matcher can pick up the case later.

Bumps @textspec/notation devDep to 1.0.2 (Christian's fix for "
escape in serializer). Migrates the smart-quotes plugin-typography
feature from terse-pt to textspec.

The "Inserting double smart quotes - 3" scenario (typing """) is
deferred. Cucumber-expressions {string} regex chokes on consecutive
bare ", and gherkin docstring delivery silently strips repeated \"
sequences. This case can be covered once a custom textspec parameter
type with a greedy matcher exists.
@vercel

vercel Bot commented Apr 29, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
portable-text-editor-documentation Ready Ready Preview, Comment Apr 29, 2026 9:49am
portable-text-example-basic Ready Ready Preview, Comment Apr 29, 2026 9:49am
portable-text-playground Ready Ready Preview, Comment Apr 29, 2026 9:49am

Request Review

@changeset-bot

changeset-bot Bot commented Apr 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 4839c02

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@github-actions

github-actions Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Stats — @portabletext/editor

Compared against main (d647791f)

@portabletext/editor

Metric Value vs main (d647791)
Internal (raw) 733.6 KB -
Internal (gzip) 139.9 KB -
Bundled (raw) 1.33 MB -
Bundled (gzip) 300.1 KB -
Import time 98ms +1ms, +1.3%

@portabletext/editor/behaviors

Metric Value vs main (d647791)
Internal (raw) 467 B -
Internal (gzip) 207 B -
Bundled (raw) 424 B -
Bundled (gzip) 171 B -
Import time 2ms +0ms, +0.7%

@portabletext/editor/plugins

Metric Value vs main (d647791)
Internal (raw) 3.1 KB -
Internal (gzip) 967 B -
Bundled (raw) 2.9 KB -
Bundled (gzip) 899 B -
Import time 8ms +0ms, +1.3%

@portabletext/editor/selectors

Metric Value vs main (d647791)
Internal (raw) 76.5 KB -
Internal (gzip) 13.7 KB -
Bundled (raw) 71.9 KB -
Bundled (gzip) 12.6 KB -
Import time 7ms -0ms, -0.5%

@portabletext/editor/utils

Metric Value vs main (d647791)
Internal (raw) 27.8 KB -
Internal (gzip) 5.5 KB -
Bundled (raw) 25.4 KB -
Bundled (gzip) 5.1 KB -
Import time 6ms +0ms, +1.0%

🗺️ . · ./behaviors · ./plugins · ./selectors · ./utils · Artifacts

Details
  • Import time regressions over 10% are flagged with ⚠️
  • Sizes shown as raw / gzip 🗜️. Internal bytes = own code only. Total bytes = with all dependencies. Import time = Node.js cold-start median.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​textspec/​notation@​1.0.1 ⏵ 1.0.276 +110010089 +3100

View full report

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