Darginec05 / Yoopta-Editor

Build Notion-like, Craft-like, Coda-like, Medium-like editors with Yoopta
https://yoopta.dev/
MIT License
1.44k stars 111 forks source link

Lilseyi/separate context #351

Open lilseyi opened 1 month ago

lilseyi commented 1 month ago

Description

Add support for separating the context from the YooptaEditor, this allows users to lift the context up from the editor, and access editor state from other sibling components.

// Still Supported
import { YooptaEditor } from '@yoopta/editor'

// New Alternative
import { YooptaEditorProvider, Editor } from '@yoopta/editor'

Fixes # (issue)

Type of change

Please tick the relevant option.

Checklist:

vercel[bot] commented 1 month ago

@lilseyi is attempting to deploy a commit to the dargo's projects Team on Vercel.

A member of the Team first needs to authorize it.

Darginec05 commented 1 month ago

Hey @lilseyi, sorry for delay. I need to merge this PR before, because PR includes many changes for Core operations and root <YooptaEditor /> component. So, after the merging, I'll take a look and see the best solution that can be with the new architecture

lilseyi commented 4 weeks ago

No worries @Darginec05 , Excited for the new changes, any idea on when your PR will be merged?

Darginec05 commented 4 weeks ago

No worries @Darginec05 , Excited for the new changes, any idea on when your PR will be merged?

I hope it will be released tomorrow 👀

lilseyi commented 1 week ago

@Darginec05 I've merged this PR with all the new changes