Repository navigation
[lexical-link] Bug Fix: open new-tab links without window.opener - #9303
Conversation
## Description `registerClickableLink` opens a link in a new tab with `window.open(url, '_blank')`, which gives the opened page a `window.opener`. Through it, that page can navigate the editor's tab to a page of its choosing, such as a copy of the app's sign-in page (reverse tabnabbing). Browsers drop the opener implicitly only for an `<a target="_blank">` they follow themselves. The click handler opens the URL through `window.open` instead, so the `rel="noreferrer"` that `$toggleLink` gives links (meta#3386) never applies on this path. Affected clicks: - every left click under `ClickableLinkPlugin`, whose `newTab` defaults to `true` - every middle, Ctrl or Cmd click, and every click on a link whose target is `_blank` New-tab opens now pass `noopener`. Same-tab opens are unchanged. `noreferrer` is left out, so the `Referer` a new tab receives does not change. ## Test plan ### Before `ClickableLinkExtension.test.ts` gains a `newTab: true` case, and the middle-click case now expects `noopener`. Against the current source: ``` $ pnpm exec vitest --project unit --no-watch packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts ❯ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts (7 tests | 2 failed) 69ms ❯ ClickableLinkExtension (7) × a middle click opens the link in a new tab 6ms × with newTab, a left click opens the link in a new tab without an opener 3ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯ FAIL |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a middle click opens the link in a new tab AssertionError: expected "bound " to be called with arguments: [ 'https://lexical.dev/', …(2) ] Received: 1st bound call: [ "https://lexical.dev/", "_blank", - "noopener", ] Number of calls: 1 Test Files 1 failed (1) Tests 2 failed | 5 passed (7) ``` The second failure shows the same diff. ### After ``` $ pnpm exec vitest --project unit --no-watch --reporter=verbose packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a left click opens the link in the same tab 49ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a middle click opens the link in a new tab 3ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > with newTab, a left click opens the link in a new tab without an opener 3ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a middle click cancels the browser opening the link itself 2ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a right click does not open the link 2ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a back click does not open the link 2ms ✓ |unit| packages/lexical-link/src/__tests__/unit/ClickableLinkExtension.test.ts > ClickableLinkExtension > a forward click does not open the link 2ms Test Files 1 passed (1) Tests 7 passed (7) ``` - `pnpm exec vitest --project unit --no-watch packages/lexical-link`: 11 files, 191 tests pass. - `pnpm run test-e2e-chromium`, `test-e2e-firefox` and `test-e2e-webkit` on `packages/lexical-playground/__tests__/e2e/ClickableLinks.spec.mjs`, against `pnpm run dev`: 7 passed in each browser. - `pnpm run tsc` and `pnpm run tsc-test` pass, and `eslint` and `prettier --check` are clean on the changed files. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Hi @mbret! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
## Description The changes merged since v0.52.0 predate changesets, so without entries the v0.53.0 section would leave them out, including the breaking removal of the deprecated import extensions (#9316). This adds a changeset for every user-facing pull request in v0.52.0..main, written from each pull request, with a `PR: #N` line (they land in this pull request rather than the original ones) and the original author's handle: - breaking: #9316, with the full replacement table as `Migration:` - feature: #9312 - fix: #9335, #9332, #9331, #9328, #9325, #9317, #9321, #9320, #9319, #9283, #9303, #9295, #9291, #9260, #9300, #9301, #9272, #9267, #9302, #9261, #9262, #9263, #9258 - perf: #9264 Skipped as not user-facing: dependency bumps (all devDependencies), website and docs updates, test and CI changes, the private devtools extension and eslint-plugin-internal, and #9353 (a behavior-preserving Flow `Object` to `any` change). It also adds a `[chore]` changeset for this pull request itself, which adds CHANGELOG.md to the `lexical` package's `files`. ## Test plan ### Before ``` $ node scripts/changesets/check.mjs --base origin/main --head HEAD --coverage warn # at the previous commit warning: This pull request changes published code without a changeset for: lexical: packages/lexical/package.json (files) ... Changeset check passed: 0 pending changeset(s) valid; coverage: 1 warning(s), reported only. ``` ### After ``` $ node scripts/changesets/check.mjs --base origin/main Changeset check passed: 27 pending changeset(s) valid; coverage: lexical changed, each named by a changeset. ``` The `latest` release step in a throwaway clone of this branch, with the real tags: ``` $ LATEST_RELEASE=v0.52.0 npm_package_version=0.53.0 node scripts/changesets/release.mjs --date 2026-10-30 Added v0.53.0 to CHANGELOG.md from 27 changeset(s). $ ls .changeset changelog.cjs config.json README.md $ sed -n 1,9p CHANGELOG.md ## v0.53.0 (2026-10-30) ### Breaking changes - **@lexical/code-core, @lexical/code-shiki, @lexical/html, @lexical/link, @lexical/list, @lexical/mdast, @lexical/rich-text, @lexical/table**: Remove the extensions deprecated in v0.52.0 and earlier ([#9316](#9316)) The deprecated import and alias extensions are removed. The `*ImportRules` arrays, including `HorizontalRuleImportRules`, stay. $ grep -n '^### ' CHANGELOG.md | head -7 3:### Breaking changes 28:### Features 36:### Fixes 98:### Performance 102:### Other 106:### Contributors 110:### All changes $ sed -n '/^### Contributors/,+2p' CHANGELOG.md ### Contributors @Tabisharaza, @etrepum, @mbret, @maximilliangrand, @Vedthakar, @rinarakaki, @potatowagon, @followdarko, Gerard Rovira $ sed -n '/^### All changes/,/^## v0.52.0/p' CHANGELOG.md | sed -n '5,6p;$p' | head -2 - [lexical-yjs][Chore] Change last `Object` to `any` in lexical ([#9353](#9353)) Sam Zhou - [lexical-eslint-plugin-internal] Chore: lint window messaging channel scoping ([#9339](#9339)) Sherry ``` (`### All changes` has 50 lines: the 48 commits after v0.52.0, without the `v0.52.0 (#9252)` bump commit, plus this branch's two commits.) Running again before that release PR is merged: ``` $ git tag v0.53.0 # tagged, but CHANGELOG.md on main has no v0.53.0 section $ npm_package_version=0.54.0 node scripts/changesets/release.mjs CHANGELOG.md has no v0.53.0 section, so the v0.53.0 release pull request is not merged yet. Merge it (it consumes the changesets for v0.53.0) before cutting v0.54.0; running again now would put the same changesets in both releases. (exit 1) $ npm_package_version=0.53.1 node scripts/changesets/release.mjs Refusing to release 0.53.1 as a patch: 1 pending [breaking] changeset(s) need a minor release: - .changeset/remove-deprecated-import-extensions.md: Remove the extensions deprecated in v0.52.0 and earlier Run the release with the "minor" increment instead. (exit 1) ``` A prerelease publish (lexical at 0.52.1-nightly.20261016.0, nothing built, so the export check that follows fails as expected): ``` $ node scripts/npm/prepare-release.mjs [lexical] CHANGELOG.md lists pending changes as Unreleased [lexical] package.json references files that are not present in packages/lexical: ./dist/Lexical.dev.js $ sed -n 1,5p packages/lexical/CHANGELOG.md ## Unreleased Merged after the latest stable release and included in 0.52.1-nightly.20261016.0. These entries move into a version section when the next stable release is cut. ### Breaking changes $ git status --short CHANGELOG.md (clean: only the gitignored package copy changed) ```
## Description The changes merged since v0.52.0 predate changesets, so without entries the v0.53.0 section would leave them out, including the breaking removal of the deprecated import extensions (#9316). This adds a changeset for every user-facing pull request in v0.52.0..main, written from each pull request, with a `PR: #N` line (they land in this pull request rather than the original ones) and the original author's handle: - breaking: #9316, with the full replacement table as `Migration:` - feature: #9312 - fix: #9335, #9332, #9331, #9328, #9325, #9317, #9321, #9320, #9319, #9283, #9303, #9295, #9291, #9260, #9300, #9301, #9272, #9267, #9302, #9261, #9262, #9263, #9258 - perf: #9264 Skipped as not user-facing: dependency bumps (all devDependencies), website and docs updates, test and CI changes, the private devtools extension and eslint-plugin-internal, and #9353 (a behavior-preserving Flow `Object` to `any` change). Four fixes change observable output or behavior, so their changesets have a `Verify:` paragraph and are listed under Behavior changes: #9303 (new tabs get no `window.opener`), #9272 (imported code content is normalized), #9261 (`$patchStyleText` styles the selection it is given), #9319 (editor keys and namespaces are a counter without a DOM). It also adds a `[chore]` changeset for this pull request itself, which adds CHANGELOG.md to the `lexical` package's `files`. ## Test plan ### Before ``` $ node scripts/changesets/check.mjs --base origin/main --head HEAD --coverage warn # at the previous commit warning: This pull request changes published code without a changeset for: lexical: packages/lexical/package.json (files) ... Changeset check passed: 0 pending changeset(s) valid; coverage: 1 warning(s), reported only. ``` ### After ``` $ node scripts/changesets/check.mjs --base origin/main Changeset check passed: 27 pending changeset(s) valid; coverage: lexical changed, each named by a changeset. ``` The `latest` release step in a throwaway clone of this branch, with the real tags: ``` $ LATEST_RELEASE=v0.52.0 npm_package_version=0.53.0 node scripts/changesets/release.mjs --date 2026-10-30 Added v0.53.0 to CHANGELOG.md from 27 changeset(s). $ ls .changeset changelog.cjs config.json README.md $ sed -n 1,9p CHANGELOG.md ## v0.53.0 (2026-10-30) ### Breaking changes - **@lexical/code-core, @lexical/code-shiki, @lexical/html, @lexical/link, @lexical/list, @lexical/mdast, @lexical/rich-text, @lexical/table**: Remove the extensions deprecated in v0.52.0 and earlier ([#9316](#9316)) The deprecated import and alias extensions are removed. The `*ImportRules` arrays, including `HorizontalRuleImportRules`, stay. $ grep -n '^### ' CHANGELOG.md | head -8 3:### Breaking changes 28:### Behavior changes 54:### Features 62:### Fixes 108:### Performance 112:### Other 116:### Contributors 120:### All changes $ sed -n '/^### Behavior changes/,+7p' CHANGELOG.md ### Behavior changes - **@lexical/link**: Open new-tab links from `ClickableLinkPlugin` / `registerClickableLink` without `window.opener` ([#9303](#9303)) This prevents the opened page from navigating the editor's tab (reverse tabnabbing). Same-tab opens are unchanged. Verify: pages opened from editor links that relied on `window.opener`. $ node scripts/changesets/range.mjs --from 0.52.0 --breaking --json # (kind, [(pr, behavior)]) [('breaking', [(9316, False)]), ('behavior', [(9303, True), (9272, True), (9261, True), (9319, True)])] $ sed -n '/^### Contributors/,+2p' CHANGELOG.md ### Contributors @Tabisharaza, @etrepum, @mbret, @maximilliangrand, @Vedthakar, @rinarakaki, @potatowagon, @followdarko, Gerard Rovira $ sed -n '/^### All changes/,/^## v0.52.0/p' CHANGELOG.md | sed -n '5,6p;$p' | head -2 - [lexical-yjs][Chore] Change last `Object` to `any` in lexical ([#9353](#9353)) Sam Zhou - [lexical-eslint-plugin-internal] Chore: lint window messaging channel scoping ([#9339](#9339)) Sherry ``` (`### All changes` has 50 lines: the 48 commits after v0.52.0, without the `v0.52.0 (#9252)` bump commit, plus this branch's two commits.) Running again before that release PR is merged: ``` $ git tag v0.53.0 # tagged, but CHANGELOG.md on main has no v0.53.0 section $ npm_package_version=0.54.0 node scripts/changesets/release.mjs CHANGELOG.md has no v0.53.0 section, so the v0.53.0 release pull request is not merged yet. Merge it (it consumes the changesets for v0.53.0) before cutting v0.54.0; running again now would put the same changesets in both releases. (exit 1) $ npm_package_version=0.53.1 node scripts/changesets/release.mjs Refusing to release 0.53.1 as a patch: 1 pending [breaking] changeset(s) need a minor release: - .changeset/remove-deprecated-import-extensions.md: Remove the extensions deprecated in v0.52.0 and earlier Run the release with the "minor" increment instead. (exit 1) ``` A prerelease publish (lexical at 0.52.1-nightly.20261016.0, nothing built, so the export check that follows fails as expected): ``` $ node scripts/npm/prepare-release.mjs [lexical] CHANGELOG.md lists pending changes as Unreleased [lexical] package.json references files that are not present in packages/lexical: ./dist/Lexical.dev.js $ sed -n 1,5p packages/lexical/CHANGELOG.md ## Unreleased Merged after the latest stable release and included in 0.52.1-nightly.20261016.0. These entries move into a version section when the next stable release is cut. ### Breaking changes $ git status --short CHANGELOG.md (clean: only the gitignored package copy changed) ```
## Description The changes merged since v0.52.0 predate changesets, so without entries the v0.53.0 section would leave them out, including the breaking removal of the deprecated import extensions (#9316). This adds a changeset for every user-facing pull request in v0.52.0..main, written from each pull request, with a `PR: #N` line (they land in this pull request rather than the original ones) and the original author's handle: - breaking: #9316, with the full replacement table as `Migration:` - feature: #9312 - fix: #9335, #9332, #9331, #9328, #9325, #9317, #9321, #9320, #9319, #9283, #9303, #9295, #9291, #9260, #9300, #9301, #9272, #9267, #9302, #9261, #9262, #9263, #9258 - perf: #9264 Skipped as not user-facing: dependency bumps (all devDependencies), website and docs updates, test and CI changes, the private devtools extension and eslint-plugin-internal, and #9353 (a behavior-preserving Flow `Object` to `any` change). Four fixes change observable output or behavior, so their changesets have a `Verify:` paragraph and are listed under Behavior changes: #9303 (new tabs get no `window.opener`), #9272 (imported code content is normalized), #9261 (`$patchStyleText` styles the selection it is given), #9319 (editor keys and namespaces are a counter without a DOM). It also adds a `[chore]` changeset for this pull request itself, which adds CHANGELOG.md to the `lexical` package's `files`. ## Test plan ### Before ``` $ node scripts/changesets/check.mjs --base origin/main --head HEAD --coverage warn # at the previous commit warning: This pull request changes published code without a changeset for: lexical: packages/lexical/package.json (files) ... Changeset check passed: 0 pending changeset(s) valid; coverage: 1 warning(s), reported only. ``` ### After ``` $ node scripts/changesets/check.mjs --base origin/main Changeset check passed: 27 pending changeset(s) valid; coverage: lexical changed, each named by a changeset. ``` The `latest` release step in a throwaway clone of this branch, with the real tags: ``` $ LATEST_RELEASE=v0.52.0 npm_package_version=0.53.0 node scripts/changesets/release.mjs --date 2026-10-30 Added v0.53.0 to CHANGELOG.md from 27 changeset(s). $ ls .changeset changelog.cjs config.json README.md $ sed -n 1,9p CHANGELOG.md ## v0.53.0 (2026-10-30) ### Breaking changes - **@lexical/code-core, @lexical/code-shiki, @lexical/html, @lexical/link, @lexical/list, @lexical/mdast, @lexical/rich-text, @lexical/table**: Remove the extensions deprecated in v0.52.0 and earlier ([#9316](#9316)) The deprecated import and alias extensions are removed. The `*ImportRules` arrays, including `HorizontalRuleImportRules`, stay. $ grep -n '^### ' CHANGELOG.md | head -8 3:### Breaking changes 28:### Behavior changes 54:### Features 62:### Fixes 108:### Performance 112:### Other 116:### Contributors 120:### All changes $ sed -n '/^### Behavior changes/,+7p' CHANGELOG.md ### Behavior changes - **@lexical/link**: Open new-tab links from `ClickableLinkPlugin` / `registerClickableLink` without `window.opener` ([#9303](#9303)) This prevents the opened page from navigating the editor's tab (reverse tabnabbing). Same-tab opens are unchanged. Verify: pages opened from editor links that relied on `window.opener`. $ node scripts/changesets/range.mjs --from 0.52.0 --breaking --json # (kind, [(pr, behavior)]) [('breaking', [(9316, False)]), ('behavior', [(9303, True), (9272, True), (9261, True), (9319, True)])] $ sed -n '/^### Contributors/,+2p' CHANGELOG.md ### Contributors @Tabisharaza, @etrepum, @mbret, @maximilliangrand, @Vedthakar, @rinarakaki, @potatowagon, @followdarko, Gerard Rovira $ sed -n '/^### All changes/,/^## v0.52.0/p' CHANGELOG.md | sed -n '5,6p;$p' | head -2 - [lexical-yjs][Chore] Change last `Object` to `any` in lexical ([#9353](#9353)) Sam Zhou - [lexical-eslint-plugin-internal] Chore: lint window messaging channel scoping ([#9339](#9339)) Sherry ``` (`### All changes` has 50 lines: the 48 commits after v0.52.0, without the `v0.52.0 (#9252)` bump commit, plus this branch's two commits.) Running again before that release PR is merged: ``` $ git tag v0.53.0 # tagged, but CHANGELOG.md on main has no v0.53.0 section $ npm_package_version=0.54.0 node scripts/changesets/release.mjs CHANGELOG.md has no v0.53.0 section, so the v0.53.0 release pull request is not merged yet. Merge it (it consumes the changesets for v0.53.0) before cutting v0.54.0; running again now would put the same changesets in both releases. (exit 1) $ npm_package_version=0.53.1 node scripts/changesets/release.mjs Refusing to release 0.53.1 as a patch: 1 pending [breaking] changeset(s) need a minor release: - .changeset/remove-deprecated-import-extensions.md: Remove the extensions deprecated in v0.52.0 and earlier Run the release with the "minor" increment instead. (exit 1) ``` A prerelease publish (lexical at 0.52.1-nightly.20261016.0, nothing built, so the export check that follows fails as expected): ``` $ node scripts/npm/prepare-release.mjs [lexical] CHANGELOG.md lists pending changes as Unreleased [lexical] package.json references files that are not present in packages/lexical: ./dist/Lexical.dev.js $ sed -n 1,5p packages/lexical/CHANGELOG.md ## Unreleased Merged after the latest stable release and included in 0.52.1-nightly.20261016.0. These entries move into a version section when the next stable release is cut. ### Breaking changes $ git status --short CHANGELOG.md (clean: only the gitignored package copy changed) ```
_Written with AI_ Upgrades lexical from `0.52.0` to `0.53.0`. ## Breaking changes Rich-text data keeps its existing format. No database migration is needed. Payload's built-in features have been updated, but your own TypeScript code or custom features may need changes: - **Node type arguments:** `getParent<T>()`, `getParentOrThrow<T>()`, `getChildren<T>()`, `getFirstChild<T>()`, `getNextSibling<T>()`, `$getNodeByKey<T>()` and the rest of that family no longer accept a type argument. Remove `<T>` and narrow the result with a node guard such as `$isListItemNode`. Runtime behavior is unchanged. - **Removed extensions:** `LinkImportExtension`, `ListImportExtension`, `RichTextImportExtension` and `HorizontalRuleImportExtension` (deprecated in 0.52) are no longer exported from `@payloadcms/richtext-lexical/lexical/link`, `/list`, `/rich-text` and `/html`. Use `LinkExtension`, `ListExtension` and `RichTextExtension`; for horizontal rules, use `HorizontalRuleExtension` from `@lexical/extension`. - **Markdown export:** `convertLexicalToMarkdown` escapes literal brackets and HTML-like text, for example `[note]` becomes `[note]`, so it is not parsed back as a link or HTML. `convertMarkdownToLexical` restores the original text. ## Breaking changes and Payload migrations Reviewed [0.53.0](https://github.com/meta/lexical/releases/tag/v0.53.0) and the `CHANGELOG.md` now shipped in the `lexical` package, including its behavior changes. **Yes** means Payload code needed adaptation; **No** means no Payload migration was required. | Breaking change | Required migration in Payload | Changes made | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | [Unchecked node type arguments are removed](meta/lexical#9479) from traversal and key lookup methods. | Yes | `TableCellResizerPlugin` called `tableRow.getChildren<TableCellNode>()`. It now uses `.filter($isTableCellNode)`, matching the upstream playground. | | [Extensions deprecated in 0.52 are removed](meta/lexical#9316). | No | Payload does not use them. They disappear from the `export *` proxies listed above. | | [`ElementNode.reconcileObservedMutation` restores the committed children's DOM](meta/lexical#9329) (`@internal`). | No | No Payload call sites. | | [`@lexical/mdast` stores table column alignment as cell paragraph format](meta/lexical#9478). | No | Payload does not use `@lexical/mdast`. | | Behavior: [Markdown export escapes literal text](meta/lexical#9481). | No | Documented in the migration guide. MDX round-trip int tests pass unchanged. | | Behavior: [a read-only `ContentEditable` without an accessible name no longer renders `role="textbox"`](meta/lexical#9270). | No | Payload passes the field label as `aria-label`, so labeled read-only editors keep the role. | | Behavior: [`ClickableLinkPlugin` opens new tabs without `window.opener`](meta/lexical#9303), and [nested editors handle their own link clicks](meta/lexical#9360). | No | The link feature uses `ClickableLinkPlugin` and gets the reverse-tabnabbing fix automatically. | Package entry points of every proxied package were compared against 0.52.0. The only addition is the experimental `@lexical/html/BlockIdHTMLExtension` subpath. Payload only re-exports the `@lexical/html` root, so no proxy exports need adding or removing. ## Previous Lexical upgrades - [#18397](#18397) — 0.50.0 → 0.52.0 - [#18149](#18149) — 0.48.0 → 0.50.0 - [#17554](#17554) — 0.45.0 → 0.48.0
Description
registerClickableLinkopens a link in a new tab withwindow.open(url, '_blank'), which gives the opened page awindow.opener. Through it, that page can navigate the editor's tab to apage of its choosing, such as a copy of the app's sign-in page (reverse
tabnabbing).
Browsers drop the opener implicitly only for an
<a target="_blank">they follow themselves. The click handler opens the URL through
window.openinstead, so therel="noreferrer"that$toggleLinkgiveslinks (#3386) never applies on this path.
Affected clicks:
ClickableLinkPlugin, whosenewTabdefaults totrueis
_blankNew-tab opens now pass
noopener. Same-tab opens are unchanged.noreferreris left out, so theReferera new tab receives does notchange.
Test plan
Before
ClickableLinkExtension.test.tsgains anewTab: truecase, and themiddle-click case now expects
noopener. Against the current source:The second failure shows the same diff.
After
pnpm exec vitest --project unit --no-watch packages/lexical-link: 11 files, 191 tests pass.pnpm run test-e2e-chromium,test-e2e-firefoxandtest-e2e-webkitonpackages/lexical-playground/__tests__/e2e/ClickableLinks.spec.mjs, againstpnpm run dev: 7 passed in each browser.pnpm run tscandpnpm run tsc-testpass, andeslintandprettier --checkare clean on the changed files.🤖 Generated with Claude Code