Peter Savchenko
a4ffb1a7fc
feature(api): blocks update method added ( #1687 )
2021-05-26 20:39:25 +03:00
George Berezhnoy
4e7b33c2b8
onChange improvements ( #1678 )
...
* onChange improvements
* Return modifications observer module
* Fix lint
* Fix tests
2021-05-26 18:59:32 +03:00
Junghyun Park
51d94e1a11
Add Slid logo as a sponsor in README.md ( #1677 )
...
As a Sir Supporter of Editor.js, our Slid team like to be added in Editor.js' README.md. :)
2021-05-09 16:00:44 +03:00
Taly
92b023d566
yarn tag add ( #1673 )
...
Add LATEST tag for the published package if this is not a prerelease version
2021-04-28 13:26:42 +03:00
Taly
9d8998e9e7
Fix workflow code ( #1672 )
...
`The workflow is not valid. .github/workflows/publish-package-to-npm.yml: Unexpected tag '!github.event.release.prerelease'`
2021-04-28 12:43:16 +03:00
github-actions[bot]
231d122949
Bump version up to 2.21.0 ( #1670 )
...
* Bump version
* Update CHANGELOG.md
* Update package.json
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-04-27 22:04:26 +03:00
Jean-Gab
de364175eb
Unique ids in blocks with nanoid ( #1667 )
...
* feat: Add unique ids for each block
* fix: Improve code based on code review
* feat(block ids): Use nanoid library for block id generation
* Remove unused files
* Add tests
* Fix lint & test
* fix: Remove unnecessary id generation, use nanoid(10) to shorten the id, add changelog and some documentation
Also improved some documentation along the lines and fixed linting
* Update copy-paste.spec.ts
* fix id generation, add api method
* Update blocks.spec.ts
* update tests
Co-authored-by: cobb <kebincheng@yeah.net>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-04-27 16:33:00 +03:00
Taly
ef0c7d76a7
Publish the latest version with a next tag too ( #1668 )
...
resolves #1659
2021-04-21 19:21:26 +03:00
github-actions[bot]
6ac58c3935
Bump version up to 2.20.2 ( #1655 )
...
* Bump version
* Update version
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
2021-04-15 21:32:55 +03:00
Taly
472d950b0b
refactoring: notifier is util now ( #1628 )
...
* Notifier is util now
* Update CHANGELOG.md
* Update notifier.ts
* Update cypress.yml
* Revert "Update cypress.yml"
This reverts commit a2c8331314
.
* Update CHANGELOG.md
2021-04-15 20:20:21 +03:00
George Berezhnoy
2996affb0a
Fix #1640 ( #1649 )
...
* Fix #1640
* Update changelog
* Fix typo
2021-04-14 19:07:16 +00:00
Tomoyuki Hata
04749ed098
Prevent the leak of codex-tooltip when Editor.js is destroyed ( #1590 )
...
* Prevent the leak of codex-tooltip when Editor.js is destroyed
* Cover destroy() function
Thanks, @hata6502
2021-04-14 17:49:22 +03:00
github-actions[bot]
32ac52a62f
Bump version up to 2.20.1-rc.0 ( #1608 )
...
* Bump version
* Bump version
* Bump to 2.20.1
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Georgy Berezhnoy <gohabereg@gmail.com>
2021-04-09 13:30:51 +03:00
George Berezhnoy
2c77edb457
Add cypress workflow ( #1638 )
...
* Add cypress workflow
* Setup different browsers
* Pull tools
* Update ff image
* Fix test
* Adopt tests
* Fix eslint
2021-04-08 23:15:42 +03:00
dependabot[bot]
3b20c4a139
Bump y18n from 4.0.0 to 4.0.3 ( #1639 )
...
Bumps [y18n](https://github.com/yargs/y18n ) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases )
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md )
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-04-08 22:58:15 +03:00
Tomoyuki Hata
d5217067a6
Refactoring based on ESLint ( #1637 )
...
* Refactoring based on ESLint
* Update .eslintrc
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-04-08 22:53:11 +03:00
George Berezhnoy
14acef136c
Fix copy in FireFox ( #1632 )
...
* Fix copy in FireFox
* Add test cases
* Eslint fix
* Improve readability
* fix eslint
2021-04-08 22:19:49 +03:00
Liam Martens
d5aaa56ca0
[Bug] n.closest() not a function #1317 ( #1600 )
...
* Release 2.19.2 (#1597 )
Save 2.19.2 changes
* 1317
The selection node sometimes ends up being the ShadowRoot which does not have the closest method.
In case it is the shadowroot - I believe we can assume the selection is not at the editor zone
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-04-08 22:13:00 +03:00
Tomoyuki Hata
aa5a3d05f3
Create a new block when clicked at the bottom ( #1605 )
...
* Create a new block when clicked at the bottom
* Fix for 2.20.0
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-04-08 21:38:08 +03:00
Tomoyuki Hata
9cdda110da
Refactoring based on LGTM ( #1635 )
...
* Refactoring based on LGTM
* Fixed jsdoc/no-undefined-types
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-04-08 21:32:49 +03:00
George Berezhnoy
a88dc8e30b
refactoring(modules): sanitizer module is util now ( #1574 )
...
* refactoring(modules): sanitizer module is util now
* Remove Sanitizer from Editor modules signature
* Bind context to config composition method
* Make sanitizer singletone
* Make sanitizer a module instead of class
* Fix
* Add test cases for default values
* Fix inline tools default value
* Move inline tools and block tunes to BlockTool instance
* Fixes after review & some test cases for sanitisation
* Upgrade test case
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-04-08 21:17:23 +03:00
Umang G. Patel
d02c3e3679
minor test case for onReady onChange data readOnly and i18n added ( #1566 )
2021-04-08 22:19:11 +05:30
Umang G. Patel
63e438a72d
refactoring(modules): Tooltip module is util now ( #1601 )
...
* remove tooltip module and create tooltip class
* change log added
* constructor added with tooltip
* linting added
* js-docs improved
* linting added
2021-04-08 22:17:46 +05:30
George Berezhnoy
2d89105670
[Feature] Block Tunes API ( #1596 )
...
* Add internal wrappers for tools classes
* FIx lint
* Change tools collections to map
* Apply some more refactoring
* Make tool instance private field
* Add some docs
* Fix eslint
* Basic implementation for Block Tunes
* Small fix for demo
* Review changes
* Fix
* Add common tunes and ToolsCollection class
* Fixes after review
* Rename tools collections
* Readonly fix
* Some fixes after review
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fixes after review
* Add docs and changelog
* Update docs/block-tunes.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Apply suggestions from code review
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update src/components/block/index.ts
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
* [Dev] Tools utils tests (#1602 )
* Add tests for tools utils and coverage report
* Fix eslint
* Adjust test
* Add more tests
* Update after code review
* Fix test & bump version
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com>
2021-04-04 15:10:26 +03:00
George Berezhnoy
4cfcb656a8
[Refactoring] Tools ( #1595 )
...
* Add internal wrappers for tools classes
* FIx lint
* Change tools collections to map
* Apply some more refactoring
* Make tool instance private field
* Add some docs
* Fix eslint
* Review changes
* Fix
* Fixes after review
* Readonly fix
2021-03-31 23:29:41 +03:00
dependabot[bot]
51a1b48abb
Bump elliptic from 6.5.3 to 6.5.4 ( #1586 )
...
Bumps [elliptic](https://github.com/indutny/elliptic ) from 6.5.3 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases )
- [Commits](https://github.com/indutny/elliptic/compare/v6.5.3...v6.5.4 )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-24 18:18:47 +03:00
Peter Savchenko
d27427e2da
chore(example): add nested list to the example page ( #1593 )
...
* chore(example): add nested list to the example page
* Update nested-list
* Update example-dev.html
* Update example-dev.html
* Update example-dev.html
2021-03-22 13:04:47 +03:00
George Berezhnoy
79793906a4
Ignore shortcuts error ( #1598 )
2021-03-15 22:41:11 +03:00
Peter Savchenko
166ded6afe
Merge branch 'master' into next
2021-03-15 21:41:19 +03:00
github-actions[bot]
1e1b06d537
chore(release): 2.19.2 ( #1583 )
...
* Bump version
* Bump version
* Update package.json
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-15 21:26:07 +03:00
Murod Khaydarov
d945d4c518
refactoring(modules): Events module is util now ( #1582 )
...
* refactoring(modules): events module is util now
* Update changelog
* remove redundant line
* refactor
* Update editor-modules.d.ts
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-15 21:01:10 +03:00
Murod Khaydarov
c4ebdee396
Do not use bubbling on blockManagers' listener ( #1563 )
...
* prevent bubbling
* update CHANGELOG
2021-03-12 20:02:09 +03:00
George Berezhnoy
2f5da52d1a
refactoring(modules): shortcuts module is util now ( #1578 )
...
* (refactoring)shortcuts module is util now
* Fix eslint
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-05 00:32:55 +03:00
github-actions[bot]
2a2a6f11ad
Bump version ( #1580 )
...
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-03-04 13:11:46 +03:00
Seonu Jang
0d559a5571
Fix typo ( #1581 )
2021-03-03 09:33:59 +03:00
Tomoyuki Hata
a67e699991
Fix SanitizerConfig type definition ( #1456 )
...
* Fix SanitizerConfig type definition
* Update docs/CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Fix CHANGELOG
* Add JSDoc to TagConfig
* yarn lint:fix
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-03-02 16:34:23 +03:00
Peter Savchenko
2759b25d35
refactoring(modules): the listeners module now a util ( #1572 )
...
* listeners module goes util
* fix listeners 'off' bug
* improve garbage collecting
2021-03-02 16:25:52 +03:00
Tomoyuki Hata
3bf30f0c1e
Add generics to OutputBlockData ( #1326 )
...
* Add generics to OutputBlockData
* Fix typo
* Update CHANGELOG.md
* Add @template description
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: George Berezhnoy <gohabereg@users.noreply.github.com>
2021-02-28 00:33:06 +03:00
Tomoyuki Hata
e5fe93eeb5
Make passed config immutable ( #1553 )
...
* Make passed config immutable
* Update docs/CHANGELOG.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Separate this.config initialization
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
2021-02-28 00:31:11 +03:00
Taly
1772edf912
Update releases.md docs for update version workflow ( #1571 )
...
* Update releases.md
If the next update is planned to raise the minor version (`2.19.1` -> `2.20.0`), then change it before version update merge.
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-27 22:35:26 +03:00
github-actions[bot]
970d64efda
Bump version ( #1570 )
...
Co-authored-by: github-actions <action@github.com>
2021-02-26 14:00:05 +03:00
Taly
ae52d6116c
Update bump-version-on-merge-next.yml ( #1569 )
...
* Update bump-version-on-merge-next.yml
Error: `The process '/usr/bin/git' failed with exit code 128`
Report and fix: https://github.com/peter-evans/create-pull-request/issues/690
* Rename job
2021-02-26 13:51:18 +03:00
Tomoyuki Hata
8104585854
Don't except the first selected block ( #1550 )
...
* Don't except the first selected block
* yarn fix
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
Co-authored-by: Taly <vitalik7tv@yandex.ru>
2021-02-26 12:51:53 +03:00
Taly
a229cc5b82
Update releases.md ( #1567 )
2021-02-25 22:11:55 +03:00
github-actions[bot]
254a94e812
Bump version ( #1562 )
...
Co-authored-by: GitHub <noreply@github.com>
2021-02-24 21:13:22 +03:00
Taly
cd6378c160
Feature: add bump version action ( #1561 )
...
* Update create-a-release-draft.yml
* Create bump-version-on-merge-next.yml
* Update releases.md
2021-02-24 21:04:29 +03:00
Taly
c4a57c16a9
Feature: create a release draft workflow ( #1555 )
...
* Rename workflow file
* Create create-a-release-draft.yml
* Update releases.md
2021-02-22 23:27:24 +03:00
Taly
8e4b34a6e1
Feature: action for publishing package update ( #1546 )
...
* Update .npmignore
* Create a Publish package to NPM action
* Branches, versions and releases — complete guideline
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update docs/releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* Update releases.md
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-19 18:33:04 +03:00
Taly
5cbeabd1cb
Update build commands ( #1545 )
...
* Update build commands
* Update package.json
2021-02-18 20:56:43 +03:00
Tomoyuki Hata
3f39cb735d
Set caret when block data pasted ( #1470 )
...
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2021-02-18 20:31:37 +03:00