Commit c69fc33
Block Restructuring (TypeCellOS#64)
* Restructured text & heading blocks (excluding drag handle add implementation)
* Small cleanup
* Cleaned up drag handle code
* Added basic list item implementation
* Updated block commands and keyboard handling
* Added ordered list item indexing
* Finished block manipulation logic
* Fixed bug causing suggestion menu to not work properly in list item blocks
* Refactoring changes
* Minor fix
* fix animations for headings and indents (TypeCellOS#67)
* fix animations for headings and indents
* remove submodule
* fix css
* Fixed bug where splitting a block created an additional empty block
* Cleaned up drag handle code
* Fixed bug where the suggestion plugin tried to process transactions created by the ordered list indexing plugin
* Improvements to block content naming and file structure
* Code style changes and small fix to block keyboard shortcuts
* Fixed bugs regarding selection when deleting blocks and using the suggestion menu with the keyboard
* Block content attribute naming fixes
* Fixed list item copy/pasting within the editor
* Updated element selectors for tests
* Updated snapshots for copy/paste and drag/drop tests
* Adjusted enter key handler behavior
* Changed ordered list item indices to start at 1 instead of 0
* Fixed list styling (no animations)
* Updated remaining test snapshots
* try clean playwright cache
* Fixed bug where splitting a block duplicates its ID
* Fixed bug where ordered list item indices were being updated unnecessarily
* clean up OrderedListItemIndexPlugin
* Fixed animation issue caused by change in naming convention
* Added animations for unordered lists
* Added animations for ordered lists
* Added dispatch to block commands
* Made backspace revert all block typing instead of just list items
* Removed redundant conditions in block keyboard handlers
* Changed ordered list index type from number to string in plugin
* Optimized `getPosFromBlock` function
* Fixed multiple block dragging
* Improved transaction filtering for `PreviousBlockTypePlugin`
* Improved paste behaviour for content outside the editor
* Removed dispatch calls from block commands
* Added edge cases for block commands (not currently being triggered)
* Added test for Enter keyboard handler with selection spanning multiple blocks
* Added functions to allow testing block IDs
* Tests in which blocks are deleted/moved now verify block IDs
* Added updated snapshots
* Added updated screenshots for drag handle menu
* Removed `joinBackward` as it is no longer used
* Improved paste reliability from other sites, broke inline styles.
* Improved paste reliability from other sites, broke inline styles.
* Revert "Improved paste reliability from other sites, broke inline styles."
This reverts commit 5c5c448.
* Small fixes
* Improved block ID mocking implementation.
* Updated snapshot
Co-authored-by: Yousef <[email protected]>
Co-authored-by: Matthew Lipski <[email protected]>1 parent d0a4c27 commit c69fc33
84 files changed
Lines changed: 2849 additions & 1885 deletions
File tree
- .github/workflows
- packages/core/src
- extensions
- Blocks
- commands
- helpers
- nodes
- BlockTypes
- HeadingBlock
- ListItemBlock
- TextBlock
- BubbleMenu/component
- DraggableBlocks
- components
- SlashMenu
- TrailingNode
- UniqueID
- tests
- end-to-end
- basics
- copypaste
- copypaste.test.ts-snapshots
- dragdrop
- dragdrop.test.ts-snapshots
- draghandle
- draghandle.test.ts-snapshots
- keyboardhandlers
- keyboardhandlers.test.ts-snapshots
- placeholder
- setup
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | | - | |
7 | 5 | | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
This file was deleted.
Lines changed: 71 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | | - | |
13 | | - | |
14 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
19 | | - | |
| 23 | + | |
20 | 24 | | |
21 | 25 | | |
22 | 26 | | |
| |||
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
78 | | - | |
79 | 82 | | |
80 | 83 | | |
81 | 84 | | |
| |||
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
87 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
88 | 93 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
93 | 98 | | |
94 | 99 | | |
95 | 100 | | |
96 | 101 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 | | |
102 | 107 | | |
103 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
104 | 134 | | |
105 | | - | |
| 135 | + | |
| 136 | + | |
106 | 137 | | |
107 | | - | |
| 138 | + | |
| 139 | + | |
108 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
109 | 152 | | |
110 | 153 | | |
111 | 154 | | |
| |||
119 | 162 | | |
120 | 163 | | |
121 | 164 | | |
| 165 | + | |
122 | 166 | | |
123 | 167 | | |
124 | 168 | | |
125 | 169 | | |
126 | 170 | | |
127 | 171 | | |
128 | 172 | | |
| 173 | + | |
129 | 174 | | |
130 | 175 | | |
131 | 176 | | |
132 | 177 | | |
| 178 | + | |
133 | 179 | | |
134 | 180 | | |
135 | 181 | | |
136 | 182 | | |
137 | 183 | | |
138 | | - | |
| 184 | + | |
139 | 185 | | |
140 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
141 | 194 | | |
142 | 195 | | |
143 | 196 | | |
| |||
0 commit comments