Repository navigation
Customizable DecoratorBlockNode via theme - #2387
Merged
Merged
Conversation
zurfyx
requested review from
acywatson,
fantactuka,
thegreatercurve,
trueadm and
tylerjbainbridge
as code owners
June 10, 2022 10:56
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Contributor
|
Should it go as a breaking change? |
Member
Author
Potentially, it's unfortunate we just released 0.3 |
Contributor
|
Collaborator
|
It's a breaking change if it's changing the 1st argument, but not a breaking change if adding as 2nd argument. So let's swap the arguments around, problem solved! |
Member
Author
|
It was nice to have editor as the second param to keep it consistent with |
thegreatercurve
approved these changes
Jun 15, 2022
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decorator now has an additional config parameter like createDOM. Do we strictly need DOM like in createDOM? The answer is we don't, we can't potentially build a good abstraction on top that extract the styles. However, it's reality, it's annoying, usually these nodes are tied with the component itself, so for the user having to create an additional abstract to pass their own styles in a different way it's not convenient.
This way we can pass
theme.embedBlockand the component will automatically be rendered correctly without any further modifications.