@@ -18,8 +18,6 @@ import type {
1818import { evaluate } from '../../functions/evaluate/evaluate.js' ;
1919import { serializeIncludingFunctions } from '../../functions/register-component.js' ;
2020import { logger } from '../../helpers/logger.js' ;
21- import type { ComponentInfo } from '../../types/components.js' ;
22- import type { Dictionary } from '../../types/typescript.js' ;
2321import Blocks from '../blocks/blocks.lite.jsx' ;
2422import { getUpdateVariantVisibilityScript } from '../content-variants/helpers.js' ;
2523import DynamicDiv from '../dynamic-div.lite.jsx' ;
@@ -103,16 +101,6 @@ export default function ContentComponent(props: ContentProps) {
103101 canTrack : props . canTrack ,
104102 apiKey : props . apiKey ,
105103 apiVersion : props . apiVersion ,
106- componentInfos : [
107- ...getDefaultRegisteredComponents ( ) ,
108- ...( props . customComponents || [ ] ) ,
109- ] . reduce < Dictionary < ComponentInfo > > (
110- ( acc , { component : _ , ...info } ) => ( {
111- ...acc ,
112- [ info . name ] : serializeIncludingFunctions ( info ) ,
113- } ) ,
114- { }
115- ) ,
116104 inheritedStyles : { } ,
117105 BlocksWrapper : useTarget ( {
118106 // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -189,6 +177,7 @@ export default function ContentComponent(props: ContentProps) {
189177 enrich = { props . enrich }
190178 showContent = { props . showContent }
191179 builderContextSignal = { builderContextSignal }
180+ registeredComponents = { state . registeredComponents }
192181 contentWrapper = { props . contentWrapper }
193182 contentWrapperProps = { props . contentWrapperProps }
194183 trustedHosts = { props . trustedHosts }
0 commit comments