Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new model methods for inserting/removing data by index #84

Merged
merged 18 commits into from
Aug 30, 2024

Conversation

nikmel2803
Copy link
Contributor

add insertData/removeData methods for more convenient use inside collab manager

Copy link

github-actions bot commented Aug 29, 2024

⏭️ No files to mutate for ./packages/dom-adapters

Copy link

github-actions bot commented Aug 29, 2024

⏭️ No files to mutate for ./packages/model

Copy link

github-actions bot commented Aug 29, 2024

Coverage report for ./packages/dom-adapters

St.
Category Percentage Covered / Total
🟢 Statements 100% 0/0
🟢 Branches 100% 0/0
🟢 Functions 100% 0/0
🟢 Lines 100% 0/0

Test suite run success

1 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 21e7467

Copy link

github-actions bot commented Aug 29, 2024

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements
96.95% (-3.05% 🔻)
795/820
🟢 Branches
98.17% (-1.34% 🔻)
214/218
🟢 Functions
88.79% (-9.6% 🔻)
190/214
🟢 Lines
96.84% (-3.16% 🔻)
767/792
Show new covered files 🐣
St.
File Statements Branches Functions Lines
🔴 EditorJSModel.ts 37.84% 0% 12.5% 37.84%
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / index.ts
97.56% (-2.44% 🔻)
87.5% (-12.5% 🔻)
100%
97.56% (-2.44% 🔻)

Test suite run success

400 tests passing in 24 suites.

Report generated by 🧪jest coverage report action from 21e7467

Copy link

github-actions bot commented Aug 29, 2024

Coverage report for ./packages/collaboration-manager

St.
Category Percentage Covered / Total
🟢 Statements 86.11% 62/72
🟡 Branches 62.5% 15/24
🟢 Functions 100% 10/10
🟢 Lines 86.11% 62/72

Test suite run success

6 tests passing in 1 suite.

Report generated by 🧪jest coverage report action from 21e7467

nikmel2803 and others added 12 commits August 30, 2024 01:46
* Introduce DI & migrate tools builders

* Fixes after review

* 'Fix' lint

* Add unsaved files

* Fix comments

* Remove log & add docs

* Update packages/core/src/entities/UnifiedToolConfig.ts

Co-authored-by: Peter <[email protected]>

* Fixes after review

---------

Co-authored-by: Peter <[email protected]>
* Add BlockManager and EditorUI classes

* Add JSDocs

* Add try catch for block.render() call
* passing formattingadapter to blocktooladapter

* lint

* Update BlockManager.ts

* Update BlockManager.ts

* Update App.vue
* Add Toolbox & ToolboxUI

* Add comments

* Update tests for the model package

* Fix lint
…87)

* Implmenet global CaretAdapter

* Handle native inputs

* Pass input type to Input component props

* Use class to represent index

* Fix lint in dom-adapters

* fix linter

* added inline tool adapter

* implement model updates

* lint fix

* fix index

* adapter renders inline tools

* lint fix and clean up

* jsdoc

* clean up

* jsdoc

* jsdoc

* surround content replaced

* suggestions

* lint fix

* jsdoc

* added bold and italic inline tools into core package

* naming

* naming

* added inline toolbar and inlineToolAdapter init into core

* update packages and lock

* build fix

* implement inline tool adapter to core

- fully implement current realization of inline tool adapter to core
- remove from the playground

* clean up

* jsdoc and naming improvements

* naming

* naming

* renaming

* fix hardcoded

* tools are initialized inside of the inline toolbar initialization

* fixed inline tool attaching

* jsdoc

* naming fix

* fixed imports

* lint fix

* try build fix

* install dependencies

* add sdk package

* fix build for core

* change package name in actions

* add references

* typo

* fix build

* added inline tool data former

* fix lint

* rm unwanted changes

* lint fix

* fixed build

* docs improved

* fix build

* naming improved

* Update packages/core/src/ui/InlineToolbar/index.ts

Co-authored-by: Peter <[email protected]>

* Update packages/dom-adapters/src/FormattingAdapter/index.ts

Co-authored-by: Peter <[email protected]>

* rm unwanted change

* naming

* separated renderToolActions and apply method in formatting adapter

* naming

* moved surround to utils

* lint fix

* last naming fix 🤞

* made renderToolActions method private

---------

Co-authored-by: George Berezhnoy <[email protected]>
Co-authored-by: George Berezhnoy <[email protected]>
Co-authored-by: Peter <[email protected]>
@nikmel2803 nikmel2803 added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit efcfe22 Aug 30, 2024
15 checks passed
@nikmel2803 nikmel2803 deleted the add-new-model-methods branch August 30, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants