Files
agentic-dev/docs/library-decisions/2026-05-14-@payloadcms/richtext-lexical.md
Danijel Martinek 1108e24ea0 chore(deps): backfill library traces for un-cited cluster
Add approved trace files for payload, @trpc/server, @trpc/client, zod,
superjson, @payloadcms/db-postgres, @payloadcms/richtext-lexical, globals,
react, react-dom, vitest, @tanstack/react-query, and all @testing-library/*
packages. All traces dated 2026-05-14, decision: approved, adr: null.

Establishes the baseline so the pre-commit library-decisions gate is
additive (new deps require traces) rather than disruptive (old deps fail
immediately). All 34 trace files pass validateTrace() from schema.mjs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-14 10:10:23 +00:00

3.0 KiB

package, version, tier, decision, date, deciders, adr, filter-results, verification-commands, accepted-cves
package version tier decision date deciders adr filter-results verification-commands accepted-cves
@payloadcms/richtext-lexical ^3.14.0 core approved 2026-05-14
Danijel Martinek
null
license types maintenance boundary-fit shadow-check eu-residency cve-scan named-consumer
MIT native active pass pass n/a clean pass
npm view @payloadcms/richtext-lexical license
npm view @payloadcms/richtext-lexical version
pnpm audit --audit-level=moderate

Filter: license

npm view @payloadcms/richtext-lexical license returns MIT. MIT is on the allowlist.

Filter: types

@payloadcms/richtext-lexical is part of the Payload CMS monorepo, authored in TypeScript, and ships its own .d.ts declaration files.

Filter: maintenance

Maintained as part of the Payload CMS project. Versioned and released together with the payload core package; receives the same release cadence.

Filter: boundary-fit

@payloadcms/richtext-lexical is the rich-text field plugin for Payload CMS, used exclusively in @repo/core-cms to configure rich-text fields in Payload collections. Feature packages access rich-text content as plain data through repository interfaces. This is the correct placement for a CMS-layer content plugin.

Filter: shadow-check

@payloadcms/richtext-lexical is the sole rich-text editor plugin in the workspace. The alternative Payload rich-text plugin (@payloadcms/richtext-slate) is not present.

Filter: eu-residency

@payloadcms/richtext-lexical is a server-side content plugin with no network communication to vendor-controlled endpoints. EU residency does not apply.

Filter: cve-scan

pnpm audit --audit-level=moderate reports no advisories against @payloadcms/richtext-lexical at the time of this trace.

Filter: named-consumer

@repo/core-cms uses @payloadcms/richtext-lexical to define the rich-text editor for content fields in the blog and other content collections. Named, non-hypothetical consumer exists today.

Prompt: replaces

@payloadcms/richtext-lexical replaces @payloadcms/richtext-slate, which was deprecated in Payload 3.x. Lexical is the recommended and actively maintained rich-text engine in the Payload 3.x ecosystem.

Prompt: migration-cost-out

Moderate. Rich-text data stored via Lexical is serialized in Lexical's internal JSON format. Migrating to a different rich-text engine would require a data migration for all existing rich-text content. The plugin is confined to core-cms, limiting the surface area.

Prompt: alternatives-considered

  1. @payloadcms/richtext-slate — Deprecated in Payload 3.x; Lexical is the recommended successor.
  2. Plain textarea fields — Rejected: insufficient for content that requires formatting, links, and embedded media (blog articles, marketing pages).