Add mergeTextWithHistory function

This commit is contained in:
Andras Schmelczer 2025-06-22 20:49:11 +01:00
parent c0333c1146
commit 779579d38f
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
18 changed files with 285 additions and 100 deletions

View file

@ -25,10 +25,10 @@ right: long with big and small
expected: long small
---
parent: long run of text where one barely has no changes but has cursors
left: long| run of tex|t where one barely has no |changes but has |cursors
right: long run one barely has no changes cursors
expected: long| ru|n one barely has no |changes |cursors
parent: long run of text where one barely has changes but has cursors
left: long| run of tex|t where one barely has |changes but has |cursors
right: long run one barely has changes cursors
expected: long| ru|n one barely has |changes |cursors
---
parent: long text where the cursor has to be clamped after delete

View file

@ -1,8 +1,8 @@
#![cfg(feature = "wasm")]
use reconcile::wasm::{
cursor::{JsCursorPosition, JsTextWithCursors},
lib::{is_binary, is_file_type_mergable, merge, merge_text, merge_text_with_cursors},
types::{JsCursorPosition, JsTextWithCursors},
};
use wasm_bindgen_test::*;