overleaf/libraries/overleaf-editor-core/lib
Domagoj Kriskovic 2440f89be5 [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871)
* [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation

* added add comment op test

* delete comment op test

* import core to escape circle deps

* desctructure in tests

* require directly in builder

* invert of add comment is always delete comment

* no merging on compose

* NoOp if comment is not found

* use comment.clone()

* update test

* change CommentRawData type

* jsdoc assert type

* fix formating

* EditNoOperation

* return other in compose

* use ReturnType

* Revert "use ReturnType"

This reverts commit 2c7e04f1541310e9fc08963170a783a437ed1992.

* transorm add comment operation

* transform delete comment operation

* moved comment.js

* format fix

* fix transform addComment and textoperation

* fix merge

* test more complex test operations

* change to else if

* move range.js

* fix types

* fix AddComment and TextOperation transform

* fixed AddComment-TextOperation trasform, added test

* deletecommentoperation should win

* should not delete comment

* remove unused function, fix type

* fix format

* add resolved for existing comment

* transform EditNoOperation

* fix test description

* change the order of EditNoOperation

* fix DeleteCommentOperation-DeleteCommentOperation transform

* fix types after merging main

* refactor operation types

GitOrigin-RevId: 6f127763a6dc50d4fe3524d9b25dc7526b6b0028
2024-02-19 09:04:15 +00:00
..
file_data [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
operation [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
origin Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
author.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
author_list.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
blob.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
change.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
change_note.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
change_request.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
chunk.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
chunk_response.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
comment.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
errors.js [overleaf-editor-core] Introduce ScanOp and subclasses (#16695) 2024-02-02 09:03:32 +00:00
file.js Add CommentList to StringFileData (#16568) 2024-01-24 09:04:15 +00:00
file_map.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
history.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
label.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00
ot_client.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
range.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
safe_pathname.js Merge pull request #16859 from overleaf/jpa-sharelatex-cleanup 2024-02-09 09:04:11 +00:00
snapshot.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
types.ts [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
util.js [overleaf-editor-core] Introduce ScanOp and subclasses (#16695) 2024-02-02 09:03:32 +00:00
v2_doc_versions.js Merge pull request #14418 from overleaf/em-history-lib-es6-classes 2023-08-23 08:05:34 +00:00