payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
27.66k stars 1.72k forks source link

fix(richtext-lexical): ensure hooks from sub-fields receive document data and doc props, and not node data and doc props #9406

Open AlessioGr opened 19 hours ago

AlessioGr commented 19 hours ago

This also adds a new previousNode prop to afterChange node hooks, and makes sure that sub-fields receive the correct previousSiblingDoc.