Commit bb32c03
Refactor: clean blockcontainer (#1137)
* extract updateBlockCommand
* Extracted remaining commands
* extract keyboard shortcuts
* move directory
* remove createblockcommand
* Added merge/split tests
* Updated snapshots
* Added update block tests and unified test setup
* Added test cases for reverting props
* Added additional test cases for changing content type
* remove "nested" insert option
* Split remaining commands & cleaned up
* Added `getNearestBlockContainerPos`
* Refactored `getBlockInfoFromPos`
* Rewrote `splitBlockCommand`
* Added text cursor position tests
* Fixed lint issue
* fix lint
* Fixed `splitBlock` selection
* Small fix
* Added unit tests to check selection setting
* simplify splitblocks
* Fixed selection in `splitBlock` tests
* wip: deprecate getBlockInfoFromPos
* finish cleanup
* Fixed `mergeBlocks` edge cases
* fix build
* clean nodeconversions
* Implemented PR feedback
* Finished review and remaining changes
* Fixed bug in `insertOrUpdateBlock`
* Removed log
* Tiny changes
* Fixed merge/delete behaviour on Backspace
---------
Co-authored-by: matthewlipski <matthewlipski@gmail.com>
Co-authored-by: Matthew Lipski <50169049+matthewlipski@users.noreply.github.com>1 parent 6aec6e2 commit bb32c03
File tree
62 files changed
+28974
-3731
lines changed- docs/pages/docs/editor-api
- packages
- core/src
- api
- blockManipulation
- __snapshots__
- commands
- insertBlocks
- __snapshots__
- mergeBlocks
- __snapshots__
- moveBlock
- __snapshots__
- removeBlocks
- __snapshots__
- replaceBlocks
- __snapshots__
- splitBlock
- __snapshots__
- updateBlock
- __snapshots__
- selections/textCursorPosition
- __snapshots__
- clipboard
- fromClipboard
- toClipboard
- exporters/html/util
- nodeConversions
- parsers/html
- blocks
- HeadingBlockContent
- ListItemBlockContent
- BulletListItemBlockContent
- CheckListItemBlockContent
- NumberedListItemBlockContent
- ParagraphBlockContent
- editor
- extensions
- KeyboardShortcuts
- NodeSelectionKeyboard
- SuggestionMenu
- TableHandles
- pm-nodes
- schema/inlineContent
- react/src/components/TableHandles/TableHandleMenu/DefaultButtons
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+28974
-3731
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
| 129 | + | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| |||
0 commit comments