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

Separate InlineToolbar UI and business logic #91

Merged
merged 7 commits into from
Aug 31, 2024
Merged

Conversation

gohabereg
Copy link
Member

No description provided.

Copy link

github-actions bot commented Aug 30, 2024

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

Copy link

github-actions bot commented Aug 30, 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 fe1b213

Copy link

github-actions bot commented Aug 30, 2024

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements 96.74% 800/827
🟢 Branches 98.17% 214/218
🟢 Functions 88.07% 192/218
🟢 Lines 96.62% 772/799

Test suite run success

404 tests passing in 24 suites.

Report generated by 🧪jest coverage report action from fe1b213

Copy link

github-actions bot commented Aug 30, 2024

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

Copy link

github-actions bot commented Aug 30, 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 fe1b213

Comment on lines +10 to +12
* - provides methods to work with selection
*/
@Service()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think, that comment, about who would call selection api will be helpfull

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anybody who needs it

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anybody who needs it, that's public API

Comment on lines 10 to 16
export class EditorAPI {
@Inject()
public blocks!: BlocksAPI;

@Inject()
public selection!: SelectionAPI;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leave comments about injected parameters please

import type { Index, InlineToolName } from '@editorjs/model';

/**
* Payload of BlockAddedCoreEvent custom event
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems irrelevant

*/
#eventBus: EventBus;

#inlineTools: Map<InlineToolName, InlineTool> = new Map();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment required

Comment on lines -90 to -94
/**
* Remove link input, when data formed and trigger callback
*/
linkInput.remove();

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?why this change is needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to keep link input there, doesn't matter atm as UX will be updated anyway

@gohabereg gohabereg added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit e3d47f4 Aug 31, 2024
15 checks passed
@gohabereg gohabereg deleted the feat/inline-toolbar branch August 31, 2024 00:13
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.

3 participants