Commit graph

210 commits

Author SHA1 Message Date
Tanya Fomina
60d8ba5d88 Update event type 2022-08-12 11:52:48 +03:00
Tanya Fomina
f0ee7b6b5d Docs 2022-08-12 11:37:29 +03:00
Tanya Fomina
3b4d18b339 Fix text block tunes 2022-08-08 12:24:54 +03:00
Tanya Fomina
5d1584cb3b Renamings 2022-08-08 11:54:23 +03:00
Tanya Fomina
4ca9dc0be3 Simplify processing tunes 2022-08-08 11:30:30 +03:00
Tanya Fomina
54f07f7a4f Make confirmation props optional 2022-08-05 17:13:28 +03:00
Tanya Fomina
da1dd6f30e Fix tests and build 2022-08-05 16:14:21 +03:00
Tanya Fomina
9513665e50 Rename onClick to onActivate 2022-08-03 16:40:05 +03:00
Tanya Fomina
0f55a45f6e Update confirmation config structure 2022-08-03 16:38:00 +03:00
Tanya Fomina
292f7fafcb Fix flipper for confirmation element 2022-08-03 14:04:43 +03:00
Tanya Fomina
e62c56e7c6 Fix readability 2022-08-01 21:58:25 +03:00
Tanya Fomina
a62d3054c4 Pass editor element as a param of popover constructor 2022-08-01 21:51:18 +03:00
Tanya Fomina
12012c1029 Comments 2022-08-01 21:46:36 +03:00
Tanya Fomina
820a2b546e Clarify flippable logic in popover 2022-08-01 11:58:00 +03:00
Tanya Fomina
7907272c87 Handle boolean value in confirmation param 2022-08-01 11:30:26 +03:00
Tanya Fomina
58a2f97112 Add confirmation support to popover 2022-07-29 18:51:56 +03:00
Tanya Fomina
fbff33704d Display active item, move closeOnActivate to popover 2022-07-29 15:16:45 +03:00
Tanya Fomina
41b108dd1c Add comments 2022-07-29 14:59:41 +03:00
Tanya Fomina
18283c9b5e Fix for iframe 2022-07-22 16:17:02 +03:00
Tanya Fomina
ac69d085d5 Cleanup 2022-07-20 12:38:40 +08:00
Tanya Fomina
c9defd949f i18n 2022-07-20 12:17:26 +08:00
Tanya Fomina
8807d5eb7e Cleanup 2022-07-20 12:14:37 +08:00
Tanya Fomina
e3bad742a7 Add flag to close tunes popover 2022-07-20 12:01:54 +08:00
Tanya Fomina
62f0ae82fc Rename 2022-07-20 10:41:10 +08:00
Tanya Fomina
aece45df28 cleanup 2022-07-13 16:19:37 +08:00
Tanya Fomina
28ca17d8d8 Add ability to display rendered custom tunes 2022-07-12 20:55:08 +08:00
Tanya Fomina
3e2f6244f7 Rename and cleanup 2022-07-05 00:02:14 +08:00
Tanya Fomina
9ad9e414d9 Cleanup default tunes 2022-07-04 23:43:35 +08:00
Tanya Fomina
6392cc1fff Fix tests 2022-07-04 23:34:17 +08:00
Tanya Fomina
ac05f80a1a Add ability to open block settings upwards 2022-07-04 23:14:56 +08:00
Tanya Fomina
a0c87fbf0a Cleanup 2022-07-04 21:31:12 +08:00
Tanya Fomina
e04c401df7 Rename custom content 2022-07-04 21:13:45 +08:00
Tanya Fomina
6a7db2e46a Cleanup 2022-07-04 21:08:31 +08:00
Tanya Fomina
9b698efa1a Add popover 2022-07-04 17:29:35 +08:00
Tanya Fomina
5b9c6c7b3b Add the rest of default tunes 2022-07-04 14:23:34 +08:00
Tanya Fomina
1aa1017e47 Default tunes to popover 2022-07-03 16:03:32 +08:00
Tanya
6c0555a322
[Feature] Multiple toolbox items for single tool (#2050)
* the popover component, vertical toolbox

* toolbox position improved

* popover width improved

* always show the plus button

* search field added

* search input in popover

* trying to create mobile toolbox

* FIx mobile popover fixed positioning

* Add mobile popover overlay

* Hide mobile popover on scroll

* Tmp

* feat(toolbox): popover adapted for mobile devices (#2004)

* FIx mobile popover fixed positioning

* Add mobile popover overlay

* Hide mobile popover on scroll

* Alter toolbox buttons hover

* Fix closing popover on overlay click

* Tests fix

* Fix onchange test

* restore focus after toolbox closing by ESC

* don't move toolbar by block-hover on mobile

Resolves #1972

* popover mobile styles improved

* Cleanup

* Remove scroll event listener

* Lock scroll on mobile

* don't show shortcuts in mobile popover

* Change data attr name

* Remove unused styles

* Remove unused listeners

* disable hover on mobile popover

* Scroll fix

* Lint

* Revert "Scroll fix"

This reverts commit 82deae543e.

* Return back background color for active state of toolbox buttons

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

* Vertical toolbox fixes (#2017)

* Replace visibility property with display for hiding popover

* Disable arrow right and left keys for popover

* Revert "Replace visibility property with display for hiding popover"

This reverts commit af521cf6f2.

* Hide popover via setting max-height to 0 to fix animation in safari

* Remove redundant condition

* Extend element interface to avoid ts errors

* Do not subscribe to block hovered if mobile

* Add unsubscribing from overlay click event

* Rename isMobile to isMobileScreen

* Cleanup

* fix: popover opening direction (#2022)

* Change popover opening direction based on available space below it

* Update check

* Use cacheable decorator

* Update src/components/flipper.ts

Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>

* Fixes

* Fix test

* Clear search on popover hide

* Fix popover width

* Fix for tests

* Update todos

* Linter fixes

* rm todo about beforeInsert

because I have no idea what does it mean

* i18n for search labels done

* rm methods for hiding/showing of +

* some code style update

* Update CHANGELOG.md

* make the list items a little bit compact

* fix z-index issue caused by block-appearing animation

also, improve popover padding for two reasons:

- make the popover more consistent with the Table tool popover (in future, it can be done with the same api method)
- make popover looks better

* Some progress

Use overriden config

tmp

* Cleanup

* Proceed cleanup

* Update tool-settings.d.ts

* Get rid of isToolboxItemActive

* Get rid of key

* Filter out duplicates in conversion menu

* Rename hash to id

* Change function for generating hash

* Cleanup

* Further cleanup

* [Feature] Multiple toolbox items: using of data overrides instead of config overrides (#2064)

* Use data instead of config

* check if active toolbox entry exists

* comparison improved

* eslint fix

* rename toolbox types, simplify hasTools method

* add empty line

* wrong line

* add multiple toobox note to the doc

* Update toolbox configs merge logic

* Add a test case

* Add toolbox ui tests

* Update tests

* upd doc

* Update header

* Update changelog and package.json

* Update changelog

* Update jsdoc

* Remove unused dependency

* Make BlockTool's toolbox getter always return an array

* Fix for unconfigured toolbox

* Revert "Fix for unconfigured toolbox"

This reverts commit dff1df2304.

* Change return type

* Merge data overrides with actual block data when inserting a block

* Revert "Merge data overrides with actual block data when inserting a block"

This reverts commit eb0a59cc64.

* Merge tool's data with data overrides

* Move merging block data with data overrides to insertNewBlock

* Update changelog

* Rename getDefaultBlockData to composeBlockData

* Create block data on condition

* Update types/api/blocks.d.ts

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

* Update src/components/modules/api/blocks.ts

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2022-06-17 18:31:55 +03:00
Tanya
c1d7744b8d
[Fix] Stop jumping to block start on toolbox close (#2055)
* Stop jumping to block start when on toolbox close

* Update changelog and version

* Set caret on esc press

* Update package.json

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-05-14 00:20:42 +08:00
Tanya Fomina
8fec2e71c3
[Fix] Toolbox prevents text selection (#2051)
* Add padding only to opened popover

* Update version and changelog

* Update docs/CHANGELOG.md

Co-authored-by: Ilya Moroz <37909603+ilyamore88@users.noreply.github.com>

* Use pointer event approach

Co-authored-by: Ilya Moroz <37909603+ilyamore88@users.noreply.github.com>
2022-05-06 13:26:52 +03:00
Peter Savchenko
6a15cc55c0
fix(#2036): scrolling issue with block hovering (#2042)
* fix scrolling issue caused by the popover.hide()

* Update popover.ts

* Update CHANGELOG.md

* upd codeowners

* naming of isShown improved
2022-05-01 15:09:16 +03:00
Tanya Fomina
8ae8823dcd
fix(ui): Prevent scrolling top when opening toolbox on mobile (#2034)
* Fix scrolling issue on mobile when locking scroll on body

* Simplify

* Fix typo

* Add popup example

* Update changelog

* update popup example page

* Use hard scroll lock only for ios

* Update version in changelog

* Remove unused css class name

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-05-01 14:43:56 +03:00
Tanya Fomina
96c0bcb573
fix(ui): toolbox items labels i18n (#2031)
* Fix toolbox item label translation

* Update version

* Update changelog

* Update docs/CHANGELOG.md

Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>

* Add fallback for missing toolbox title

* Update docs/CHANGELOG.md

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

* Add test

* Add testcase for missing toolbox title

Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-04-28 19:26:47 +03:00
Oleh
25f7ec2456
Fixed sanitizer on pasting HTML (#1686)
* Fixed pasting sanitizer

* Actualized code

* Update CHANGELOG.md

Co-authored-by: Oleh Kotyay <o.kotyay@ideil.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-04-26 22:42:23 +03:00
George Berezhnoy
6cd6bd5de3
Fix readOnly.isEnabled getter (#1831)
* Fix readOnly.isEnabled getter

* Add tests

* Update CHANGELOG.md

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-04-25 20:40:29 +01:00
Peter Savchenko
8f156a87ea
feat(ui): the toolbox became vertical (#2014)
* the popover component, vertical toolbox

* toolbox position improved

* popover width improved

* always show the plus button

* search field added

* search input in popover

* trying to create mobile toolbox

* feat(toolbox): popover adapted for mobile devices (#2004)

* FIx mobile popover fixed positioning

* Add mobile popover overlay

* Hide mobile popover on scroll

* Alter toolbox buttons hover

* Fix closing popover on overlay click

* Tests fix

* Fix onchange test

* restore focus after toolbox closing by ESC

* don't move toolbar by block-hover on mobile

Resolves #1972

* popover mobile styles improved

* Cleanup

* Remove scroll event listener

* Lock scroll on mobile

* don't show shortcuts in mobile popover

* Change data attr name

* Remove unused styles

* Remove unused listeners

* disable hover on mobile popover

* Scroll fix

* Lint

* Revert "Scroll fix"

This reverts commit 82deae543e.

* Return back background color for active state of toolbox buttons

Co-authored-by: Peter Savchenko <specc.dev@gmail.com>

* Vertical toolbox fixes (#2017)

* Replace visibility property with display for hiding popover

* Disable arrow right and left keys for popover

* Revert "Replace visibility property with display for hiding popover"

This reverts commit af521cf6f2.

* Hide popover via setting max-height to 0 to fix animation in safari

* Remove redundant condition

* Extend element interface to avoid ts errors

* Do not subscribe to block hovered if mobile

* Add unsubscribing from overlay click event

* Rename isMobile to isMobileScreen

* Cleanup

* fix: popover opening direction (#2022)

* Change popover opening direction based on available space below it

* Update check

* Use cacheable decorator

* Update src/components/flipper.ts

Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>

* Fixes

* Fix test

* Clear search on popover hide

* Fix popover width

* Fix for tests

* Update todos

* Linter fixes

* rm todo about beforeInsert

because I have no idea what does it mean

* i18n for search labels done

* rm methods for hiding/showing of +

* some code style update

* Update CHANGELOG.md

* make the list items a little bit compact

* fix z-index issue caused by block-appearing animation

also, improve popover padding for two reasons:

- make the popover more consistent with the Table tool popover (in future, it can be done with the same api method)
- make popover looks better

Co-authored-by: Tanya Fomina <fomina.tatianaaa@yandex.ru>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2022-04-25 18:28:58 +03:00
Umang G. Patel
18feb06a88
Fix OnChange Event Invocation (#2007)
* fix: call onchange event after block insert

* changelog updated

* patch version updated

* removed the modification observer from saver

* only changelog version added

* delimiter added

* feat: test case added for save inside the onchange
2022-04-07 14:33:09 +05:30
Peter Savchenko
640b1a2d7e
fix(readonly): crash with readonly property (#1969)
* fix(readonly): fix readonly property

Resolves #1968

* changelog added

* Update CHANGELOG.md
2022-02-09 20:46:26 +03:00
George Berezhnoy
e3db19df84
Fire onChange event for native inputs (#1832)
* Fire onChange event for native inputs

* Add changelog
2022-01-13 16:12:08 +00:00
Ilya Moroz
95141f0a2d
commit new submodules versions (#1858) 2022-01-13 18:15:40 +03:00
Ilya Moroz
40c05173a9
[Fix] isFunction function for async functions (#1857)
* fix test of async function, fix TS type because Function is banned type

* add tests for isFunction function

* fix eslint

* add changelog for 2.23.1

* fix changelog

* fix changelog
2022-01-13 00:46:07 +03:00