TypeCellOS / BlockNote

A React Rich Text Editor that's block-based (Notion style) and extensible. Built on top of Prosemirror and Tiptap.
https://www.blocknotejs.org/
Mozilla Public License 2.0
5.91k stars 386 forks source link

refactor: Removed `use-prefers-color-scheme` dependency #903

Closed matthewlipski closed 4 days ago

matthewlipski commented 4 days ago

The use-prefers-color-scheme dependency is still causing issues in some NextJS projects. Since the import is really only one source file for the usePrefersColorScheme hook, this PR copies the code to a local file in react, omitting the dependency altogether.

vercel[bot] commented 4 days ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Jul 3, 2024 2:02pm
blocknote-website ✅ Ready (Inspect) Visit Preview Jul 3, 2024 2:02pm