Releases
v10.1.2
10.1.2 (2024-12-12)
Bugfixes
allow paste when selected locked code doesn't change (8412173 )
fix locked code ranges and text split (cf76aee )
fix operation split and operation text split (8ba06e8 )
fix ranges computation (8c76d0f )
fix split operation text function when uneditable range text not in text to split (0c5ae90 )
increment uneditable range index correctly when computing new operations (c40f3c1 )
recompute editor operations for locking code using decorations (f538ee0 )
remove pollution logs in tests (b450e74 )
removed line bug when pasting code (b749674 )
select first editable range when pasting for locked code with decorations (f2e327c )
throw custom error when operation is invalid with locked code (bbf980c )
use minusRanges to get hidden areas and visible ranges in hideCodeWithoutDecoration (f8c1ed4 )
use string indexOf instead of split to split text at the first occurrence only (e47df09 )
Refactor
change code so it's easier to test (6308574 )
extract error handling to facilitate tests (cb5a8a4 )
move range and operations functions in separate files (8faaeb6 )
refactor minusRanges function to return all ranges (f8cea32 )
rename computeNewOperationsForLockedCode to tryIgnoreLockedCode (0759eb0 )
rename functions on locked code and their variables (4211c36 )
rename minusRange function and return values (896f2d2 )
split compute of new operations in multiple functions (b598071 )
split editable ranges and operation text separately (c291e16 )
use position in minUsRange instead of lines and columns (7ee4792 )
Cleanup
remove override of editor paste (04bfcfb )
remove unecessary configs in tsconfig (59ba25d )
remove unecessary constructor for LockedCodeError (5cfb9f1 )
remove unneeded console.info (7c5a675 )
Test
add jest config and tests on locked code (acd5928 )
simplify createTestRange function (8ec2433 )
update test by mocking code lock and edit operations (28be49e )
Libraries
You can’t perform that action at this time.