Tanya Fomina
9b30fac6ab
Align hint left
2024-05-04 21:20:55 +03:00
Tanya Fomina
26053add7b
Rename hint content to hint
2024-05-04 21:11:41 +03:00
Tanya Fomina
b713e63d43
Merge branch 'next' into feat/popover-hint
2024-05-04 20:20:01 +03:00
Tatiana Fomina
f78972ee09
feat(popover): custom content becomes a popover item ( #2707 )
...
* Add custom item
* Remove customcontent parameter from popover
* Tests
* Cleanup
* Cleanup
* Lint
* Cleanup
* Rename custom to html, add enum with item types
* Fix tests
* Add order test
* Update jsdoc
* Update changelog
* Fix issue with html item not hiding on search
* Fix flipper issue
* Update changelog
2024-05-04 15:35:36 +00:00
Tanya Fomina
3ed7f7e85a
Support hint
2024-05-04 17:43:27 +03:00
Tanya Fomina
af24b9c1a1
Rename custom to html, add enum with item types
2024-05-04 17:15:19 +03:00
Tanya Fomina
f398168610
Cleanup
2024-05-04 17:06:56 +03:00
Tanya Fomina
d93cdea7d3
Cleanup
2024-05-04 16:28:46 +03:00
Tanya Fomina
0d506c2941
Remove customcontent parameter from popover
2024-05-04 15:51:28 +03:00
Tanya Fomina
392ff54843
Add custom item
2024-05-04 15:45:51 +03:00
Peter Savchenko
1028577521
fix(scroll): acidental scroll to top on iOS devices ( #2695 )
...
* fix scroll on ios typing
* Update tsconfig.json
* Update CHANGELOG.md
* Update CHANGELOG.md
* Update package.json
* Fix popover hide method to use isHidden flag
2024-04-27 21:04:26 +03:00
Tatiana Fomina
7821e35302
feat(block tunes): Conversion Menu in Block Tunes ( #2692 )
...
* 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
* tmp
* Fixes
* Make search input emit event
* Fix types
* Rename delimiter to separator
* Update chengelog
* Add convert to to block tunes
* i18n
* Lint
* Fix tests
* Fix tests 2
* Tests
* Add caching
* Rename
* Fix for miltiple toolbox entries
* Update changelog
* Update changelog
* Fix popover test
* Fix flipper tests
* Fix popover tests
* Remove type: 'default'
* Create isSameBlockData util
* Add testcase
2024-04-27 16:57:52 +03:00
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