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 Core event bus #89

Merged
merged 5 commits into from
Aug 30, 2024
Merged

Add Core event bus #89

merged 5 commits into from
Aug 30, 2024

Conversation

gohabereg
Copy link
Member

EventBas for communication between modules

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

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

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 dc21fb3

Copy link

github-actions bot commented Aug 30, 2024

Coverage report for ./packages/model

St.
Category Percentage Covered / Total
🟢 Statements 100% 769/769
🟢 Branches 99.51% 203/204
🟢 Functions 98.39% 183/186
🟢 Lines 100% 741/741

Test suite run success

389 tests passing in 24 suites.

Report generated by 🧪jest coverage report action from dc21fb3

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 dc21fb3

this.#eventBus.dispatchEvent(new BlockAddedCoreEvent({
tool: tool.name,
data: data.data,
uiContent: blockElement,
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe element?

Copy link
Member Author

Choose a reason for hiding this comment

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

It could be not only HTMLElement, basically anything the tool returns

@gohabereg gohabereg enabled auto-merge August 30, 2024 16:02
@gohabereg gohabereg added this pull request to the merge queue Aug 30, 2024
Merged via the queue into main with commit 20f2ef7 Aug 30, 2024
15 checks passed
@gohabereg gohabereg deleted the feat/editor-event-bus branch August 30, 2024 16:22
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