-
-
Notifications
You must be signed in to change notification settings - Fork 733
Block Restructuring #64
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
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
e5a9b7e
Restructured text & heading blocks (excluding drag handle add impleme…
matthewlipski 72bb83b
Small cleanup
matthewlipski 99a3a09
Cleaned up drag handle code
matthewlipski 034c6f6
Added basic list item implementation
matthewlipski 73ae9ef
Updated block commands and keyboard handling
matthewlipski ef94e88
Added ordered list item indexing
matthewlipski 0a57bb5
Finished block manipulation logic
matthewlipski d079e53
Fixed bug causing suggestion menu to not work properly in list item b…
matthewlipski a1ae764
Refactoring changes
matthewlipski a10632d
Minor fix
matthewlipski e7ba0ec
fix animations for headings and indents (#67)
YousefED 5b0bfa7
Fixed bug where splitting a block created an additional empty block
matthewlipski ad77216
Cleaned up drag handle code
matthewlipski 28c2de9
Fixed bug where the suggestion plugin tried to process transactions c…
matthewlipski eb3650c
Improvements to block content naming and file structure
matthewlipski 7ef8a3b
Code style changes and small fix to block keyboard shortcuts
matthewlipski fdc9fb6
Fixed bugs regarding selection when deleting blocks and using the sug…
matthewlipski f072459
Block content attribute naming fixes
matthewlipski 0287cb2
Fixed list item copy/pasting within the editor
matthewlipski c077ed9
Updated element selectors for tests
matthewlipski ff27520
Updated snapshots for copy/paste and drag/drop tests
matthewlipski 00bbd64
Adjusted enter key handler behavior
matthewlipski c33ff76
Changed ordered list item indices to start at 1 instead of 0
matthewlipski 9e6e07f
Fixed list styling (no animations)
matthewlipski b9db5d1
Updated remaining test snapshots
matthewlipski f052b4a
try clean playwright cache
YousefED 8be0efc
Fixed bug where splitting a block duplicates its ID
matthewlipski 88592c3
Merge remote-tracking branch 'origin/block-restructuring' into block-…
matthewlipski 4a1f5bd
Fixed bug where ordered list item indices were being updated unnecess…
matthewlipski 16c483f
clean up OrderedListItemIndexPlugin
YousefED be05939
Fixed animation issue caused by change in naming convention
e8f7918
Merge remote-tracking branch 'origin/block-restructuring' into block-…
7c6835a
Added animations for unordered lists
matthewlipski 2ba14b1
Added animations for ordered lists
matthewlipski 3c8d3eb
Added dispatch to block commands
matthewlipski cea2919
Made backspace revert all block typing instead of just list items
matthewlipski 641ac1d
Removed redundant conditions in block keyboard handlers
matthewlipski 218e6fe
Changed ordered list index type from number to string in plugin
matthewlipski a1a2760
Optimized `getPosFromBlock` function
matthewlipski 4ce84a6
Fixed multiple block dragging
matthewlipski ab69670
Improved transaction filtering for `PreviousBlockTypePlugin`
matthewlipski d763e03
Improved paste behaviour for content outside the editor
matthewlipski 16bdfb8
Removed dispatch calls from block commands
matthewlipski d1750a2
Added edge cases for block commands (not currently being triggered)
matthewlipski bcf39f6
Added test for Enter keyboard handler with selection spanning multipl…
matthewlipski a01ad22
Added functions to allow testing block IDs
matthewlipski 5954897
Tests in which blocks are deleted/moved now verify block IDs
matthewlipski c773302
Added updated snapshots
matthewlipski f5252ca
Added updated screenshots for drag handle menu
matthewlipski 35c4b4a
Removed `joinBackward` as it is no longer used
matthewlipski 91774ca
Improved paste reliability from other sites, broke inline styles.
matthewlipski 5c5c448
Improved paste reliability from other sites, broke inline styles.
matthewlipski ba69c31
Merge remote-tracking branch 'origin/block-restructuring' into block-…
matthewlipski 4fc50f5
Revert "Improved paste reliability from other sites, broke inline sty…
matthewlipski c522016
Small fixes
matthewlipski b17f060
Improved block ID mocking implementation.
matthewlipski 623089b
Updated snapshot
matthewlipski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,10 @@ | ||
| // Object containing all possible block attributes. | ||
| const BlockAttributes: Record<string, string> = { | ||
| listType: "data-list-type", | ||
| blockColor: "data-block-color", | ||
| blockStyle: "data-block-style", | ||
| headingType: "data-heading-type", | ||
| id: "data-id", | ||
| depth: "data-depth", | ||
| depthChange: "data-depth-change", | ||
| }; | ||
|
|
||
| export default BlockAttributes; | ||
| export default BlockAttributes; |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.