Financial-Times / x-dash

:x::heavy_minus_sign::newspaper: shared front-end components for FT.com and the FT Apps
https://financial-times.github.io/x-dash
38 stars 6 forks source link

CPP-1212 support passing additional properties in for hydration #691

Closed apaleslimghost closed 1 year ago

apaleslimghost commented 1 year ago

in #688 i moved x-live-blog-post's RichText import to a property to prevent a circular dependency with cp-content-pipeline-ui. however, that can't be serialised by x-interaction, so when next-article hydrates the component it won't render the RichText component.

this PR adds support for passing additional properties to every instance of a particular x-interaction component to be passed in when hydrating it, allowing consumers of x-live-blog-wrapper to pass in RichText.