Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: clean blockcontainer #1137

Merged
merged 38 commits into from
Oct 17, 2024
Merged

Conversation

YousefED
Copy link
Collaborator

@YousefED YousefED commented Oct 10, 2024

This PR refactors the internal BlockNote Prosemirror / Tiptap commands:

  • all functions extracted to separate files
  • testcases added
  • cleaned the "blockinfo" concept to be more readable and typesafe

removed: insertBlocks nested option. Use updateBlock instead.

Copy link

vercel bot commented Oct 10, 2024

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

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview Oct 17, 2024 10:31am
blocknote-website ✅ Ready (Inspect) Visit Preview Oct 17, 2024 10:31am

numChildBlocks,
};
}

/**
* Retrieves the position just before the nearest blockContainer node in a
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO Y: before merging review all function docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants