692fb30e90
Fix pacakge dependencies for collab ( #812 )
2022-04-09 00:43:03 -07:00
e3fd8e1bde
Fix build
2022-04-09 00:43:03 -07:00
eaa6a6cdfe
Rename View to State ( #786 )
2022-04-09 00:43:01 -07:00
b9e74f3250
Add update queue to ensure consistent update sequences ( #783 )
...
Add update queue to ensure consistent update sequences
2022-04-09 00:43:01 -07:00
3b128e8e27
Fix indented list behavior when pressing Return ( #779 )
...
* Fix indented list behavior when pressing Return.
* Fix test.
Co-authored-by: Acy Watson <acy@fb.com>
2022-04-09 00:43:01 -07:00
9b32337045
Rename ViewModel -> EditorState ( #768 )
...
* Rename ViewModel -> EditorState
* Prettier
2022-04-09 00:43:01 -07:00
4d31f5ac08
insertNodes: fix invariant cases + add more test coverage ( #760 )
...
* Add unit tests are insertNodes logic
* Revise tests
2022-04-09 00:43:01 -07:00
fcb9142a78
Clean up old experiments + update codes ( #743 )
...
Random clean up stuff
2022-04-09 00:43:00 -07:00
3ebcd7c461
More insertNode fixes ( #715 )
...
* More insertNode fixes
2022-04-09 00:42:58 -07:00
d6ce7469b2
Extensive ListNode insertNode fixes ( #714 )
2022-04-09 00:42:58 -07:00
9183371879
Fix list insertion issue ( #703 )
...
* Fix list insertion issue
* Add more comments
* Fix codes
2022-04-09 00:42:58 -07:00
62d9a63071
Clean up codes.json
2022-04-09 00:42:58 -07:00
f12c62409c
Remove scroll logic ( #706 )
2022-04-09 00:42:58 -07:00
db4fd08796
Revert "Fix focus regression ( #704 )" ( #705 )
...
This reverts commit a0831dad50fd435a7fe4d6b13ad6258121ac8992.
2022-04-09 00:42:58 -07:00
ed4168c0a4
Fix focus regression ( #704 )
2022-04-09 00:42:58 -07:00
17eab656c8
Add get{Current/Latest}EditorContent() ( #682 )
2022-04-09 00:42:57 -07:00
ead9835994
Check for ParagraphNode on clearEditor ( #671 )
2022-04-09 00:42:57 -07:00
fa4533a37c
Add further invariants ( #669 )
...
* Add further invariants
* Fix codes
2022-04-09 00:42:56 -07:00
85b38d60b9
initEditor invariant when no ParagraphNode ( #667 )
2022-04-09 00:42:56 -07:00
5b748c6020
Add root.append invariant on non-block insertion ( #668 )
...
* Add root.append invariant on non-block insertion
* Fix unit test
2022-04-09 00:42:56 -07:00
3a5cc00ff0
Adds OutlineOffsetHelpers ( #664 )
...
* Adds OutlineOffsetHelpers
2022-04-09 00:42:56 -07:00
87ff13ed47
Common ancestor for nodesInRange ( #657 )
2022-04-09 00:42:56 -07:00
c68399c3ef
Refresh codes
2022-04-09 00:42:55 -07:00
19d0e3a5ed
Improve root methods ( #627 )
...
* Improve RootNode methods
* Fix more issues
2022-04-09 00:42:54 -07:00
215a43c6b8
Guard against root destructive methods ( #616 )
...
* Prevent root nodes from being selected
* Null out selection
* Different approach
* Fix flow type
2022-04-09 00:42:53 -07:00
0a55cd61a8
Remove many empty node use-cases ( #607 )
...
* Remove many empty node use-cases
2022-04-09 00:42:53 -07:00
f41bc6fcb1
Support block types in more SelectionHelpers ( #580 )
2022-04-09 00:42:52 -07:00
012ad88118
Add TextNode style property ( #578 )
...
* Add TextNode style property
* Update unit tests
2022-04-09 00:42:51 -07:00
84cc531282
Fix text formatting bug ( #547 )
2022-04-09 00:42:50 -07:00
631ffe000d
Fix codes
2022-04-09 00:42:50 -07:00
019ab6c434
Refactor text formatting ( #545 )
...
* Refactor text formatting
* Fix unit tests
* Fix tree view
2022-04-09 00:42:50 -07:00
e7b98f0850
Revise more architecture around selection ( #541 )
...
* Revise more architecture around selection
* Fix tests
* Fix bug
* Fix bug
* Fix codes
2022-04-09 00:42:50 -07:00
7dd75ea0fa
Prepare for selection block nodes ( #539 )
...
* Prepare Outline for Selection Block Nodes
* Fix codes
2022-04-09 00:42:50 -07:00
e6e10962f2
Improve selection Flow types ( #528 )
...
* Improve Flow types of selection API
* Further tweaks
* Further tweaks
2022-04-09 00:42:50 -07:00
9976deb763
Refactor Selection API into anchor and focus points ( #526 )
...
* Refactor Selection API into anchor and focus points
WIP
More fixes
More fixes
More fixes
* Fix tests
2022-04-09 00:42:50 -07:00
0cf9ac6b49
Fix undo selection bug ( #517 )
2022-04-09 00:42:49 -07:00
82a03d0bf1
add deserialize to playground custom nodes
2022-04-09 00:42:48 -07:00
4722c79425
Add serialize and deserialize methods ( #459 )
2022-04-09 00:42:46 -07:00
37093220e8
Add decorator node ( #464 )
...
* Add decorator
* Update test
* Fix test
* Update test
2022-04-09 00:42:24 -07:00
fb3ce90eb0
Fix plain text ( #463 )
2022-04-09 00:42:24 -07:00
ecbdb1d3e4
Switch viewModel nodeMap to be a Map rather than object literal ( #449 )
...
* Switch viewModel nodeMap to be a Map rather than object literal
* Revert accidental changes
* Fix tests
* Update codes
2022-04-09 00:42:23 -07:00
9a10f8eda6
Add invariant when a selection is invalid after an update ( #404 )
...
* Add invariant when a selection is invalid after an update
* Revise
2022-04-09 00:42:22 -07:00
286d21a6bc
Update codes.json again
2022-04-09 00:42:20 -07:00
a7ccb8ea9c
Fix some issues with Safari and onNativeInput ( #370 )
2022-04-09 00:42:20 -07:00
ccf822bf70
Fix package-lock and codes.json
2022-04-09 00:42:20 -07:00
a1671d44ef
codes.json again
2022-04-09 00:42:20 -07:00
9424c510a4
Guard against no range count ( #364 )
2022-04-09 00:42:19 -07:00
8efba1cbf8
Fix codes
2022-04-09 00:42:19 -07:00
39247e4787
Fix codes
2022-04-09 00:42:19 -07:00
0b31af709c
Refactor large parts of the selection system ( #359 )
...
* More fixes
* more fixes
* More fixes
* Fix more issues
* More fixes
* More fixes
* fix unit
* Fix a bunch of bugs
* More fixes
* More fixes
* More fixes
* More fixes
* More fixes
* More nav fixes
2022-04-09 00:42:19 -07:00