Commit graph

718 commits

Author SHA1 Message Date
Tanya Fomina dff1df2304 Fix for unconfigured toolbox 2022-06-02 22:56:58 +08:00
Tanya Fomina 59c6a5f471 Make BlockTool's toolbox getter always return an array 2022-06-02 22:33:04 +08:00
Tanya Fomina 86aedf5f12 Remove unused dependency 2022-05-29 20:47:01 +08:00
Tanya Fomina 8eb4f6bfea Update jsdoc 2022-05-28 00:56:34 +08:00
Tanya Fomina 223d12ff8b Update changelog 2022-05-28 00:50:50 +08:00
Tanya Fomina 0826354c27 Merge branch 'feat/vertical-toolbox-multiple-items' of https://github.com/codex-team/editor.js into feat/vertical-toolbox-multiple-items 2022-05-27 10:12:57 +08:00
Tanya Fomina b11d216efd Update changelog and package.json 2022-05-27 10:12:46 +08:00
Peter Savchenko 37f93c89b5
Update header 2022-05-26 17:41:27 +03:00
Peter Savchenko f8b004c8f8
upd doc 2022-05-26 17:39:00 +03:00
Tanya Fomina 920bccfaab Update tests 2022-05-26 13:39:58 +08:00
Tanya Fomina 13795c1404 Add toolbox ui tests 2022-05-24 14:01:20 +08:00
Tanya Fomina 505a8a67ab Add a test case 2022-05-23 11:13:41 +08:00
Tanya Fomina 5ad2871b26 Merge branch 'next' into feat/vertical-toolbox-multiple-items 2022-05-23 11:02:16 +08:00
Tanya Fomina b5261e6bd8 Update toolbox configs merge logic 2022-05-23 10:56:57 +08:00
Peter Savchenko d6a617210d
add multiple toobox note to the doc 2022-05-19 21:34:34 +03:00
Peter Savchenko 3b44fecd13
wrong line 2022-05-19 18:54:49 +03:00
Peter Savchenko 5a495de843
add empty line 2022-05-19 18:53:26 +03:00
Peter Savchenko 359aead3e9
rename toolbox types, simplify hasTools method 2022-05-19 18:51:57 +03:00
Peter Savchenko 6b60cb110e
[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
2022-05-18 19:28:43 +03:00
Tanya Fomina 0ddc09de0c Further cleanup 2022-05-15 21:40:40 +08:00
Tanya Fomina ebe55e6ff2 Cleanup 2022-05-15 20:42:41 +08:00
Tanya Fomina 22259eb4d8 Change function for generating hash 2022-05-15 20:21:45 +08: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 c6417b00cc Rename hash to id 2022-05-13 09:57:02 +08:00
Tanya Fomina d01bfec706 Filter out duplicates in conversion menu 2022-05-12 16:06:33 +08:00
Tanya Fomina 47a0d5880d Get rid of key 2022-05-12 13:49:23 +08:00
Tanya Fomina 16c4462f8e Get rid of isToolboxItemActive 2022-05-10 22:56:19 +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
Tanya Fomina 64e12c6081 Update tool-settings.d.ts 2022-05-04 16:53:28 +08:00
Tanya Fomina bc0093924c Proceed cleanup 2022-05-04 16:51:32 +08:00
Tanya Fomina 497c5a9a4c Cleanup 2022-05-04 12:38:14 +08:00
Tanya Fomina 41b7afa9c8 Merge branch 'next' into feat/vertical-toolbox-multiple-items 2022-05-04 11:18:00 +08:00
Tanya Fomina 2f7312c5bd Some progress
Use overriden config

tmp
2022-05-04 11:16:13 +08:00
Umang G. Patel f2b19cc766
update the script to support windows (#2033) 2022-05-01 18:57:40 +05:30
Peter Savchenko 07ea1ef035
chore: update the roadmap at the readme (#2043)
* Update text-variant-tune

* Update README.md

* Update README.md
2022-05-01 15:52:29 +03:00
github-actions[bot] 3cbe128af9
Bump version up to 2.24.2 (#2041)
* Bump version

* Change version to the 2.24.2

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-05-01 15:32:08 +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
Tanya Fomina b165f8c77c Merge branch 'next' into feat/vertical-toolbox-multiple-items 2022-04-27 12:52:23 +08:00
github-actions[bot] 8bf4dcde9f
Bump version up to 2.24.0 (#1955)
* Bump version

* Update package.json

Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-04-26 22:51:33 +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
dependabot[bot] 13b8e11a21
Bump cached-path-relative from 1.0.2 to 1.1.0 (#1948)
Bumps [cached-path-relative](https://github.com/ashaffer/cached-path-relative) from 1.0.2 to 1.1.0.
- [Release notes](https://github.com/ashaffer/cached-path-relative/releases)
- [Commits](https://github.com/ashaffer/cached-path-relative/commits)

---
updated-dependencies:
- dependency-name: cached-path-relative
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 20:43:02 +03:00
dependabot[bot] 0e30d8781e
Bump moment from 2.29.1 to 2.29.2 (#2016)
Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](https://github.com/moment/moment/compare/2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2022-04-26 20:41:34 +03:00
dependabot[bot] 06900968ac
Bump color-string from 1.5.3 to 1.9.1 (#2027)
Bumps [color-string](https://github.com/Qix-/color-string) from 1.5.3 to 1.9.1.
- [Release notes](https://github.com/Qix-/color-string/releases)
- [Changelog](https://github.com/Qix-/color-string/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Qix-/color-string/commits/1.9.1)

---
updated-dependencies:
- dependency-name: color-string
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 20:38:49 +03:00
dependabot[bot] ee28354cb4
Bump browserslist from 4.12.0 to 4.20.3 (#2028)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.12.0 to 4.20.3.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.12.0...4.20.3)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 20:37:56 +03:00
dependabot[bot] 1b84f66219
Bump minimist from 1.2.5 to 1.2.6 (#2011)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-26 20:14:01 +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
Tanya Fomina 52ca7cd170 Merge branch 'feat/vertical-toolbox' into feat/vertical-toolbox-multiple-items 2022-04-24 21:15:00 +08:00