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
Gusev Yaroslav
ea2be754e7
Make a request to github api instead of using composite action ( #2558 )
2023-12-11 11:24:26 +03:00
Gusev Yaroslav
5515c3b534
feat: Skip workflow and do not bump version if it was changed already ( #2555 )
...
* Skip workflow and do not bump version if it was changed already
* Change comment
* Change action name
2023-12-09 19:57:03 +07:00
github-actions[bot]
6385ab2a39
Bump version ( #2554 )
...
Co-authored-by: github-actions <action@github.com>
2023-12-09 02:18:53 +03:00
Peter Savchenko
c5854eea14
fix(inline-toolbar): appearance logic improved ( #2550 )
...
* fix(inline-toolbar): appearing logic improved
* tests added
* fix tests
* debounce added
* fix test build in github action
* increase closeTo delta for ff
2023-12-09 02:05:27 +03:00
Gusev Yaroslav
348c1c7752
Give a bump-version action a pull-request:write permission ( #2553 )
2023-12-09 01:34:11 +03:00
Gusev Yaroslav
8726f8bdfa
Give contents:write permission to jobs ( #2549 )
2023-12-06 12:54:54 +03:00
ferntheplant
494d6e4b9b
fix: use type imports for block events ( #2491 )
...
* fix: use type imports for block events
* add changelog entry
---------
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2023-12-05 19:26:10 +03:00
Gusev Yaroslav
531ab06f63
Set workflow status to skipped if same version published ( #2539 )
...
* Made a step that cancels a workflow, settings it's status to 'skipped'
* Fixed accidentally removed files
* Fix: returned deleted submodules
2023-11-16 20:34:02 +03:00
Peter Savchenko
5e8fe06dd6
fix: errors caused by events fired while editor is not initialized yet ( #2532 )
...
* fix(init): errors cause by events fired while editor is not initialized yet
* Update package.json
2023-11-08 22:35:52 +03:00
Gusev Yaroslav
af6b64a3e6
Added a github link to codex bot release notification ( #2527 )
...
* Added a github link to codex bot release notification
* Url now depends on type of release
* Removed unnecessary condition
* fixed indentation
2023-11-06 19:00:19 +03:00
Al-Amin Firdows
92ccfc5317
docs: replace holderId config by holder ( #2525 )
...
* docs: replace holderId by holder
* docs: replace holderId by holder
2023-11-02 19:46:09 +03:00
Peter Savchenko
ee188bfe5d
feat(config): new style.nonce option for CSP ( #2519 )
2023-10-23 01:08:26 +03:00
Peter Savchenko
35337747c5
fix(inline-toolbar): editor element grow on inline toolbar close ( #2516 )
2023-10-19 00:44:06 +03:00
github-actions[bot]
d936bf08b7
Bump version ( #2515 )
...
Co-authored-by: github-actions <action@github.com>
2023-10-17 19:15:43 +03:00
Peter Savchenko
e8acc59487
fix(onchange): blocks.render would not call onChange in safari ( #2514 )
2023-10-17 18:26:23 +03:00
Peter Savchenko
bdb6eed9d1
Merge branch '2.28' into next
2023-10-17 15:43:50 +03:00
Peter Savchenko
b8cfcaec26
fix(build): 2.28.1 package rebuilt
2023-10-17 15:19:57 +03:00
Peter Savchenko
7d0db9b622
chore(patch): pull 2.28.1 patch to the next ( #2507 )
...
* fix(paste): delay onPaste call to be sure that block is ready (#2506 )
* chore(package.json): increment patch version
* Update CHANGELOG.md
2023-10-11 20:28:16 +03:00
Peter Savchenko
ca2bc803a1
fix(paste): delay onPaste call to be sure that block is ready ( #2506 )
2023-10-11 19:43:18 +03:00
github-actions[bot]
c9014e670d
Bump version ( #2485 )
...
Co-authored-by: github-actions <action@github.com>
2023-09-20 11:19:42 +03:00
Peter Savchenko
ec569f9981
fix(toolbar): layout shrink after blocks removing ( #2484 )
2023-09-20 11:07:25 +03:00
github-actions[bot]
77eb320203
Bump version up to 2.28.1-rc.0 ( #2468 )
...
* Bump version
* use 2.29.0-rc.0
---------
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2023-09-05 11:33:27 +03:00
Peter Savchenko
0369ff5827
fix(renderer): handle empty array as data.blocks ( #2454 )
2023-09-05 11:24:47 +03:00
Peter Savchenko
59c8d28da5
chore(release): bump version to 2.28.0 ( #2455 )
2023-08-25 00:23:57 +03:00
github-actions[bot]
f8e9414217
Bump version ( #2450 )
...
Co-authored-by: github-actions <action@github.com>
2023-08-21 12:29:45 +03:00
Peter Savchenko
42612a0fd9
chore(blocks.render): mutex for onchange added to the blocks.render() ( #2449 )
2023-08-21 12:28:31 +03:00
github-actions[bot]
be0d33ce0f
Bump version ( #2447 )
...
Co-authored-by: github-actions <action@github.com>
2023-08-20 17:29:21 +03:00
Peter Savchenko
922dfd8741
chore(api): blocks.update(id, data) method improved ( #2443 )
...
* add custom Chai assertion "be.calledWithBatchedEvents" for testing onchange
* chore(api): blocks.update(id, data) method improved
- `blocks.update(id, data)` now can accept partial data object — it will update only passed properties, others will remain the same.
- `blocks.update(id, data)` now will trigger onChange with only `block-change` event.
- `blocks.update(id, data)` will return a promise with BlockAPI object of changed block.
* fix tests
* Update blocks.cy.ts
2023-08-19 07:53:42 +03:00
Peter Savchenko
b39996616c
chore(perf): initialisation and rendering performance optimisations ( #2430 )
...
* renderer batching
* initialization and rendering performance optimized
* insertMany api method added
* Update index.html
* rm old method
* upd changelog
* upd paragraph
* paste tests fixed
* api blocks tests fixed
* backspace event tests fixed
* async issues in tests fixed
* eslint
* stub block added, tests added
* eslint
* eslint
* add test for insertMany()
* Update package.json
2023-08-08 22:17:09 +03:00
github-actions[bot]
0e64665b0f
Bump version ( #2424 )
...
Co-authored-by: github-actions <action@github.com>
2023-07-20 23:34:45 +03:00
Peter Savchenko
022320940e
feat(shortcuts): convert block by tools shortcut ( #2419 )
...
* feat(conversion): allow to convert block using shortcut
* display shortcuts in conversion toolbar
* tests for the blocks.convert
* tests for the toolbox shortcuts
* Update CHANGELOG.md
* Update toolbox.cy.ts
* rm unused imports
* firefox test fixed
* test errors via to.throw
2023-07-20 23:27:18 +03:00
github-actions[bot]
41dc65274d
chore(package.json): bump version up to 2.28.0-rc.0 ( #2355 )
...
* Bump version
* 2.28.0-rc.0
---------
Co-authored-by: github-actions <action@github.com>
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2023-07-07 00:16:55 +03:00
Peter Savchenko
b24bebbc40
feat(blocks-dom): block ids exported as data-id attribute ( #2404 )
2023-07-06 23:59:28 +03:00
Peter Savchenko
2ab9eb13bc
feat(block-events): delete keydown handling added ( #2402 )
...
* feat(block-events): delete keydown logic added
* chore(ui-events): delete keydown will remove selected blocks
* backspace tests added
* delete keydown tests
* tests for ui added
* fix ci
* separate block events tests for several files
* Delete BlockEvents.cy.ts
* rm unused change
* add code-review fixes + corner cases handling
* Update blockEvents.ts
* allow merging only same type blocks
2023-07-06 23:45:12 +03:00
Peter Savchenko
9e64003c0a
fix(onchange): support data-mutation-free on attributes chane ( #2393 )
2023-06-22 20:42:14 +03:00
Peter Savchenko
c8993332e3
fix(onchange): callback will be fired on removing of a whole text ( #2392 )
...
* fix(onchange): callback will be fired when the whole text is removed in a block
* whops
2023-06-21 20:32:25 +03:00
Taly
39018e07e4
Update create-a-release-draft.yml ( #2358 )
...
* Update create-a-release-draft.yml
* Update create-a-release-draft.yml
2023-05-15 23:05:58 +03:00
Peter Savchenko
1f74c5bec9
chore(release): change log updated, version updated ( #2356 )
...
* changelog updated, version updated
2023-05-15 22:43:45 +03:00
Taly
0d6c8bd4af
Use node 16 for actions ( #2357 )
...
* use node 16
* use node 16
2023-05-15 22:27:35 +03:00
Peter Savchenko
26dce94e67
fix ci ( #2354 )
2023-05-12 21:12:17 +03:00
github-actions[bot]
e6c265d0fa
Bump version ( #2313 )
...
Co-authored-by: github-actions <action@github.com>
2023-05-12 21:02:47 +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
Taly
aafab1d395
Use Vite builder ( #2300 )
...
* vite builder initial
* save
* add displayName
* add paragraph from npm
* fix postcss apply
* remove some packages, fix tests
* Update cypress.yml
* remove logs
* remove unused packages
* update path to image
* update
* Update index.html
* Update cypress.yml
* Update cypress.yml
* Update cypress.yml
* remove displayName field
* update names
* Update index.ts
* Update index.ts
* update packages
* remove packages
* postcss preserve: true
* Update index.html
* Update editor-modules.d.ts
* use public dir for static
* Update vite.config.js
* update modules type
* Update CHANGELOG.md
2023-04-13 22:25:29 +03:00
Guillaume Leon
0491155e33
feat(toolbar-api): method for toggling toolbox ( #2332 )
...
* Expose toolbox control method
* Add test for toolbox
* rename method to toggleToolbox
* add missing test case
* Add changelog
* remove eslint rule
* Update changelog
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
* fix linter problems
---------
Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
2023-04-13 20:02:46 +03:00
Taly
707ff72a94
Update FUNDING.yml ( #2330 )
2023-04-04 17:21:22 +03:00
Ilya Maroz
f5313fda40
ci(tests): improve workflow for running tests ( #2328 )
...
* ci: use ubuntu container for edge runner
* chore: upgrade CHANGELOG.md
* chore: fix linter in cypress config
2023-04-02 22:16:45 +01:00
Ilya Maroz
d7f1853ca1
deps(Cypress): upgrade library and related packages to latest versions, migrate config, fix type error ( #2327 )
...
* deps: upgrade cypress and related libraries
* chore: automate migrate cypress config, rename spec files
* fix: custom commands types
* chore: upgrade CHANGELOG.md
* ci: upgrade cypress action to support new config file format
* ci: remove container from firefox job, upgrade checkout action
2023-04-02 19:20:59 +01:00
Ilya Maroz
75379c66a9
deps(TypeScript) - upgrade to v5, upgrade ts-loader, fix types error, fix pasteConfig getter wrapper ( #2322 )
...
* deps: upgrade typescript to v5, upgrade ts-loader to support newest TS
* Fix (??) type of `pasteConfig`
TypeScript 4.9 found something is wrong with this code, but it's unclear (to me) which line is wrong. This PR is a guess, do with it what you will.
In paste.ts there's a check to see if `pasteConfig === false`:
https://github.com/codex-team/editor.js/blob/next/src/components/modules/paste.ts#L287
However, this getter never returns false because if the LHS of the `||` is `false`, `{ }` is returned instead.
It seems like this meant to be `??` instead so that if `this.constructable[InternalBlockToolSettings.PasteConfig]` was `undefined` (missing), then `{}` would be returned instead. But maybe you meant `false` here - I don't know.
* feat: create alias for PasteConfig, fix lint
* fix: problems with types
* test: add case for disabling preventing default behavior of paste event handler, add cases for pasteConfig getter in BlockTool wrapper
* chore: upgrade CHANGELOG.md
* fix: interface naming convention
* chore: apply CHANGELOG.md suggestion
* refactor: create custom Editor instance inside test case
* fix: remove editor instance destroy after PR feedback
---------
Co-authored-by: Ryan Cavanaugh <RyanCavanaugh@users.noreply.github.com>
2023-04-02 16:52:42 +01:00
Peter Savchenko
c18011595a
Update table ( #2315 )
2023-03-23 20:35:06 +03:00