-
Notifications
You must be signed in to change notification settings - Fork 687
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Create a new Target for RichContentTypes (data-content-type=) #2968 #3260
Conversation
LogERROR ON TASK: prettierCheck
|
@@ -3,6 +3,8 @@ import { useStyle } from '../../classify'; | |||
import defaultClasses from './richContent.css'; | |||
import { shape, string } from 'prop-types'; | |||
import richContentRenderers from './richContentRenderers'; | |||
import { setContentTypeConfig } from '@magento/pagebuilder/lib/config'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can not couple our theme with a standalone extension. From my point of view pagebuilder
should have an extension point to inject local components into the page builder. There we need to mutch better API also maybe a Partner/Agency would overwrite the slider via this extension point. Currently, it is not possible to register a target on page builder it self so we need to create a story in our backlog.
❌ Needs SPIKE ticket for an API de# the coreThank you for your contribution @0m3r unfortunately I cannot approve it because cycle dependency page builder is not a must-have for If you want, you can create a new PR with no cycle. From my point of view, the core team need to handle it with a Spike or Poc. Kind regards, Lars |
Ok I will try to create a new PR |
Description
It gets the possibility for an extension to add custom content type renderers.
https://github.com/magento/pwa-studio/blob/develop/packages/pagebuilder/lib/config.js#L29
Related Issue
#2130
#2131
#2968
Closes #2968
Acceptance
@sirugh
@zetlen
Verification Steps
intercept.js
lib/components/XSlider/ContentTypes/XSlider/index.js