Commit graph

288 commits

Author SHA1 Message Date
JackUait
0379064dbb test: move part of the tests from Cypress to Playwright 2025-11-14 18:51:31 +03:00
JackUait
d4c73564f8 fix: lint issues and add tests for the left modules 2025-11-14 02:52:17 +03:00
JackUait
3b97e0fbd8 fix: lint issues fixed and tests added for modules 2025-11-13 23:06:17 +03:00
JackUait
41484abd5f fix: add tests and fix lint issues for some files 2025-11-12 06:31:39 +03:00
JackUait
334b85981d fix: add tests and fix lint issues for blocks.ts/block.ts 2025-11-11 12:53:13 +03:00
JackUait
cae0b37779 fix: add tests and fix lint issues in caret.ts 2025-11-11 11:15:58 +03:00
JackUait
cce5037113 fix: add tests and fix lint issues in toolbox.ts 2025-11-11 07:18:33 +03:00
JackUait
8372ee46b8 fix: add tests and fix lint issues in popover-desktop.ts 2025-11-11 05:42:56 +03:00
JackUait
1548a56d2d fix: add unit tests and fix lint issues for sanitizer.ts 2025-11-11 04:36:18 +03:00
JackUait
f02e838dc7 fix: write tests for tooltip.ts and fix lint issues 2025-11-11 04:17:03 +03:00
JackUait
3ec36a5d7c test: add tests for i18n 2025-11-10 22:13:35 +03:00
JackUait
bd40b0ff69 test: add tests for sanitisation 2025-11-10 20:50:34 +03:00
JackUait
d14b971774 test: add tests for popover search 2025-11-10 20:22:00 +03:00
JackUait
ff118c4ce8 fix: remove left deprecated APIs from inline-tool-bold.ts 2025-11-10 17:15:04 +03:00
JackUait
f26202e8d7 fix: get rid of deprecated API in inline-tool-bold.ts 2025-11-10 16:54:40 +03:00
JackUait
ec2865091a fix: make ALL tests in inline-tool-bold pass 2025-11-10 14:52:07 +03:00
JackUait
1a8ec5571c feat: make all test cases of inline-tool-bold work 2025-11-10 14:15:34 +03:00
JackUait
07799175e7 fix: lint issues in inline-tool-bold.ts 2025-11-10 05:17:30 +03:00
JackUait
fdcfef6f5a test: add tests for inline-link-tool 2025-11-10 05:04:38 +03:00
JackUait
7107717246 test: add data selectors for states of inline-tool-link 2025-11-09 01:34:08 +03:00
JackUait
02c8bd4f8c fix: lint issues in inline-tool-link.ts 2025-11-09 01:15:24 +03:00
JackUait
0a23e92111 fix: replace execCommand in selection.ts 2025-11-09 01:07:51 +03:00
JackUait
6a6c8731f5 chore: restore execCommand in selection.ts 2025-11-09 00:21:54 +03:00
JackUait
e3a67dcbd3 fix: lint issues in __module.ts 2025-11-08 01:52:34 +03:00
JackUait
1a6049c97d fix: lint issues in inline-tool-bold.ts 2025-11-07 15:15:37 +03:00
JackUait
c489d020c6 fix: lint issues in namespace-internal.ts 2025-11-07 15:10:26 +03:00
JackUait
ca50d7895e fix: lint issues in index.ts 2025-11-07 15:08:25 +03:00
JackUait
5d25817e22 fix: lint issues in api.ts 2025-11-07 04:13:26 +03:00
JackUait
4762b105c4 fix: lint issues in utils.ts 2025-11-07 04:11:32 +03:00
JackUait
75dde42b51 fix: lint issues in selection.ts 2025-11-07 03:17:25 +03:00
JackUait
81dc13e296 fix: lint issues in polyfills.ts 2025-11-07 03:07:16 +03:00
JackUait
4dd1cdb5be fix: lint issues in flipper.ts 2025-11-07 03:00:22 +03:00
JackUait
4e7e384375 fix: lint issues in dom.ts 2025-11-07 01:57:29 +03:00
JackUait
7ad1eed3bb fix: lint issues in core.ts 2025-11-07 01:28:41 +03:00
JackUait
23f3e9094a fix: lint issues in blocks.ts 2025-11-07 01:15:51 +03:00
JackUait
e32ea4ca9e fix: lint issues in domIterator.ts 2025-11-07 00:53:20 +03:00
JackUait
29c087bf08 fix: lint/typescript errors 2025-11-06 18:47:00 +03:00
narpat-ps
df7d3a7883
resolve "Can't find a Block to remove" error in renderFromHTML (#2941)
* fix(blocks):Error occurred when calling renderFromHTML: Can't find a Block to remove.

* fix: resolve "Can't find a Block to remove" error in renderFromHTML

- Make renderFromHTML async and await BlockManager.clear() to prevent race condition
- Change removeBlock order: remove from array before destroy to prevent index invalidation
- Fix clear() method to copy blocks array before iteration to avoid modification during loop

Fixes issue where renderFromHTML would fail with "Can't find a Block to remove" error
due to concurrent block removal operations and array modification during iteration.

Resolves #2518
2025-09-06 16:20:08 +03:00
Peter
7da61e98ff
improvement(caret): caret.setToBlock() offset argument improved (#2922)
* chore(caret): caret.setToBlock offset improved

* handle empty block

* Update caret.cy.ts

* fix eslint
2025-04-30 19:48:20 +03:00
Peter
cd65d8cd29
imrovement(flipper): allow to select next/prev line by shift arrows (#2918)
* fix: prevent flipper navigation when shift key is pressed

* rm logs

* feat: improve line selection with Shift + Up/Down

* fix lint action

* fix action

* upd
2025-03-11 10:01:46 +03:00
Omotayo Obafemi
d15a8c2b2f
Added fix for memory leak issue (#2893)
* Added fix for memory leak issue

* Documented the fix in docs/CHANGELOG.md

* v2.31.0

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

* Documented the fix in docs/CHANGELOG.md

---------

Co-authored-by: Omotayo Obafemi <omotayo@testlio.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2025-01-08 20:52:40 +03:00
Omotayo Obafemi
d950a11b8e
Bug Fix For When "/" Overides external text (#2894)
* Bug Fix For When / Overides external text

* Moved fix to blockEvents

* Moved fix to blockEvents

* Moved fix to blockEvents

* Refactored test to simulate behaviour

* Added fix to change log

* Refactored test to mimick exact behaviour of the bug

---------

Co-authored-by: Omotayo Obafemi <omotayo@testlio.com>
Co-authored-by: Peter <specc.dev@gmail.com>
2025-01-08 18:23:38 +03:00
Vineeth
444caa9870
fix: properly handle visible whitespaces in empty blocks (#2865)
* fix: handle whitespace input in empty placeholders correctly

* fix: isNodeEmpty() to handle visible whitespaces

* chore: bump version from 2.31.0-rc.5 to 2.31.0-rc.6

* chore: bump version from 2.31.0-rc.5 to 2.31.0-rc.6

* fix: submodules updated

* fix: eslint errors

* test: backspace removes trailing spaces, hides placeholder in empty blocks

* fix: update incorrect tests

* fix: resolving submodules issue

* Create list

---------

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2024-12-21 19:40:15 +05:30
Peter
6893462d4b
fix(inline-tools): inline tools shortcuts now works in read-only mode (#2891)
* fix(inline-tools): inline tools shortcuts now works in read-only mode

* use ubuntu-20.04 instead of latest
2024-12-21 11:28:55 +03:00
Peter Savchenko
d9f301ffb9 Merge branch 'v-2-30-6' into next 2024-11-11 23:30:09 +03:00
Peter
597bde3bca
fix(inline-link): link insertion in safari (#2864)
* fix(inline-link): link insertion in safari

* Update CHANGELOG.md
2024-11-11 22:44:19 +03:00
Peter
7ee06228e7
chore(ui): update current block in readonly by clicks on block (#2859)
* chore(ui): update current block in readonly by clicks on block

* fix eslint
2024-11-06 20:54:51 +03:00
e11sy
da4257a67f
Feat (Conversion-config): pass target tool config to the conversionConfig.import method (#2848)
* pass config to the conversionConfig.import method

- Now `convertStringToBlockData` method passes target tool config the import method
- Fixed types in convesion config file (somehow imprort could return function that returns string, but import should return method that would return ToolData) this caused just type error that never been reached because types were actually ignored
- Added test that checks, that import method actualy gets passed config

* update changelog

* eslint fix

* updated test description

* jsdoc improved

* typos in changelog
2024-10-17 19:38:02 +03:00
e11sy
3cd24c4da1
Chore (toolbox): improved shortcuts visibility when tool exports array of toolbox items (#2846)
* toolbox items logic improved

* typo

* lint fix

* logic improved

* make displaySecondaryLabel true by default

* eslint fix

* added testcase

* updated changelog

* typo

* lint fix
2024-10-16 21:57:43 +03:00
Peter
eb7ffcba3c
fix(merge): after merge caret will be set in a place of glue (#2841)
* fix merge caret loosing

* changelog and patch

* Update nested-list

* Update Backspace.cy.ts

* Update Backspace.cy.ts

* fix tests

* fix tests
2024-10-09 21:28:04 +03:00