-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(collaboration) Handle imports and exports correctly in collab…
…oration. (#4565) - Added `UPDATE_EXPORTS_DETAIL_FROM_COLLABORATION_UPDATE` and `UPDATE_IMPORTS_FROM_COLLABORATION_UPDATE` editor actions. - `addHookForProjectChanges` now collates potentially many actions to dispatch at once. - Reworked `ArrayChanges` as it didn't work very well in its original form. - Refactored `updateEntireProjectContents` to produce a multitude of editor actions and dispatch all at once. - Created `updateEditorWithArrayChanges` and `updateEditorWithMapChanges` utility functions. - Implemented `updateTopLevelElementsOfFile`, `updateExportsDetailOfFile` and `updateImportsOfFile` to carry changes from the yjs types into the editor. - `calculateArrayChanges` now produces step by step changes. - Implemented `syncArrayChanges` and `syncMapChanges` utility functions. - `synchroniseParseSuccesToCollabFile` now much more simplified than the original implementations. - Reworked `updateEntireProjectContents` to handle key changes instead of using the `currentTarget` value so that file deletions are handled correctly. - Strip source maps from the outgoing top level elements. (#4566)
- Loading branch information
1 parent
23efa1c
commit 2e733e3
Showing
8 changed files
with
452 additions
and
96 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.