Tatiana Fomina
e1c70b4fb8
feat(popover): separator ( #2690 )
...
* Support delimiter
* Rename types, move types to popover-item folder
* Fix ts errors
* Add tests
* Review fixes
* Review fixes 2
* Fix delimiter while search
* Fix flipper issue
* Fix block tunes types
* Fix types
* Fixes
* Make search input emit event
* Fix types
* Rename delimiter to separator
* Update chengelog
2024-04-22 22:38:20 +03:00
Tatiana Fomina
5125f015dc
feat: nested popover ( #2649 )
...
* Move popover types to separate file
* tmp
* open top
* Fix bug with keyboard navigation
* Fix bug with scroll
* Fix mobile
* Add popover header class
* Display nested items on mobile
* Refactor history
* Fix positioning on desktop
* Fix tests
* Fix child popover indent left
* Fix ts errors in popover files
* Move files
* Rename cn to bem
* Clarify comments and rename method
* Refactor popover css classes
* Rename cls to css
* Split popover desktop and mobile classes
* Add ability to open popover to the left if not enough space to open to the right
* Add nested popover test
* Add popover test for mobile screens
* Fix tests
* Add union type for both popovers
* Add global window resize event
* Multiple fixes
* Move nodes initialization to constructor
* Rename handleShowingNestedItems to showNestedItems
* Replace WindowResize with EditorMobileLayoutToggled
* New doze of fixes
* Review fixes
* Fixes
* Fixes
* Make each nested popover decide itself if it should open top
* Update changelog
* Update changelog
* Update changelog
2024-04-13 17:34:26 +00:00
Peter Savchenko
ee6433201d
fix(block-tunes): enter keydown problems ( #2650 )
...
* debug enter press
* fix sync set caret
* fix enter keydown problems + tests addedd
* Update search-input.ts
* add changelog
* add useful log to cypress custom comand
* Update commands.ts
2024-03-13 17:30:16 +03:00
Peter Savchenko
cd29c52e51
feat(ui): native-like tab behaviour, slash for toolbox ( #2569 )
...
* slash to open toolbox, tab for navigation
* tab, focus improvements
- remove "focused" block state
- tab navigation respects inputs
- allow to focus contentless blocks
* fix tests
* tests for Slash
* tab tests
* test for tabbing out of editor
* tests fixed
* review fixes
2023-12-22 23:15:35 +03:00
Peter Savchenko
b7b00fd060
chore(onChange): bugfix, batching, improvements of ModificationsObserver ( #2349 )
...
* block onchange stash
* improve block filtration
* update tool root
* chore(block): remove willSelect und willUnselect
* onchange events batching
* get rid of CustomEvent extension, create custom event map instead
* improve types of EventsDispatcher
* fix tests
* custom sinon + chai matchers
* improve tests, add mutex for fake cursor
* add test for fake-cursor mutex
* test for batch filtering
* fix caret setting by enter press at the end of the block
* test for detectToolRootChange
* remove resolved todos
* changelog added
* fix tests
* Update CHANGELOG.md
* rename FakeCursorAboutToBeSet -> FakeCursorAboutToBeToggled
* update didMutated statements
* move inputs cache clearing to a separate method
* rm Record inheritance from Event maps
* add type alisases
* rename isElementContainsFakeCursor -> isFakeCursorInsideContainer
* improve code style
2023-05-12 20:50:48 +03:00
Tatiana Fomina
07b1ce2aca
Chore/popover refactoring ( #2249 )
...
* Add new popover class
* Add flipper
* confirmation
* confirmation
* Add confirmation support
* Add search
* Add toggle group support and update popover tests
* Add custom content support
* Fix scroll issue
* Add mobile version
* Integration
* Fix animation
* Cleanup
* Fix popover position for narrow mode
* Fix tests
* Update version and changelog
* Rename css classes
* Move files
* Stop using PopoverItem from outside of popover context
* Fix jsdoc
* Move error animation to popover item
* Update css variables
* Update docs/CHANGELOG.md
Co-authored-by: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com>
* Update src/components/block-tunes/block-tune-move-down.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/block-tunes/block-tune-move-up.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fixes
* Fix imports
* Fix toolbox close event
* Move search-input file
* Fix comment
* Rename method
* Cleanup
* Remove onFlip callback from popover item
* Rename
* Fix removing event listener
* Move popover animations to popover.css file
* Cleanup styles
* Fix jsdoc
* Fix confirmation chains
* Close toolbox oly when it's open
* Change activation error animation
* Update version and changelog
* Fix overlay
* Update icon border-radius on mobile
* Disable item text select
* Update changelog
* Update yarn.lock
* Add rc postfix to version
---------
Co-authored-by: Ilya Maroz <37909603+ilyamore88@users.noreply.github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2023-02-10 21:29:58 +03:00