overleaf/libraries/overleaf-editor-core/test
Domagoj Kriskovic c9b9ae4180 [overleaf-core-editor] Make comment properties immutable (#17022)
* make range class immutable

* rename variable

* use newRanges

* range readonly props

* skrinkBy test

* Fix range shrinking bug

* [overleaf-core-editor] Make comment properties immutable

* remove added line

* format fix

* make readonly array

* [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

* fix errors after merging

* fix bad merge

* format fix

* removed comment.clone()

* return old comment

* remove unused var

GitOrigin-RevId: e31d723075cb04b0b7177e7cae0014c295f92a68
2024-02-21 09:03:21 +00:00
..
support Merge pull request #16885 from overleaf/mj-scanops-tracking-info 2024-02-15 09:04:01 +00:00
add_comment_operation.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
change.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
comment.test.js [overleaf-core-editor] Make comment properties immutable (#17022) 2024-02-21 09:03:21 +00:00
comments_list.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
delete_comment_operation.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
edit_file_operation.test.js [overleaf-editor-core] Restructure TextOperation hierachy (#16582) 2024-01-24 09:04:18 +00:00
edit_operation.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
file.test.js Add CommentList to StringFileData (#16568) 2024-01-24 09:04:15 +00:00
file_map.test.js Merge pull request #14419 from overleaf/em-history-lib-async-await 2023-08-23 08:05:38 +00:00
history.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
hollow_string_file_data.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
label.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
lazy_string_file_data.test.js [overleaf-editor-core] Restructure TextOperation hierachy (#16582) 2024-01-24 09:04:18 +00:00
move_file_operation.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
operation.test.js Merge pull request #17099 from overleaf/mj-no-op-transform 2024-02-21 09:03:14 +00:00
range.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
safe_pathname.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
scan_op.test.js Merge pull request #16885 from overleaf/mj-scanops-tracking-info 2024-02-15 09:04:01 +00:00
snapshot.test.js Avoid duplicating a math-closing dollar sign (#11227) 2023-01-16 08:41:42 +00:00
string_file_data.test.js Added applyInsert/applyDelete methods to comments (#16572) 2024-02-02 09:03:28 +00:00
text_operation.test.js Merge pull request #16885 from overleaf/mj-scanops-tracking-info 2024-02-15 09:04:01 +00:00
tracked_change.test.js [overleaf-editor-core] AddCommentOperation and DeleteCommentOperation (#16871) 2024-02-19 09:04:15 +00:00
tracked_change_list.test.js Merge pull request #16885 from overleaf/mj-scanops-tracking-info 2024-02-15 09:04:01 +00:00