Releases: Financial-Times/x-dash
Handle multiple customSlot components
Non-breaking change to the customSlots
parameter of x-teaser-timeline
.
Now you can inject more than one custom element to the timeline, used initially for ads in the mobile app.
Make GDPR consent legislation-dependent
This patch release ensures that users under California jurisdiction do not automatically give consent under GDPR.
The change is encapsulated such that consuming apps are not required to make any changes.
Release v5.0.0 - Remove unused live blogs abstraction
Technical breaking change to live blogs to remove functionality that we moved into next-article.
- Remove unused listener logic #590
Add a `setConsentCookie` prop to Consent Proxy requests
Adding this property causes the server to correctly set the FTConsent_GDPR cookie for logged-in anonymous users.
v4.1.3
Release version v4.1.2 - Live Blog Post improvements
Patch to x-gift-article
Previous release lacked an explicit return and was breaking things. This is a patch so that whoever needs to release next doesn't end up with a broken x-gift-article.
x-gift-article now has parts wrapped in an AB test flag
We are working on improving the gifting experience. We have come up with minor copy changes that we think are going to encourage article sharing. We wrapped some parts of x-gift-article in the test flag to run an AB test to validate our theory.
Let The Right [Component] In
ensure that components registered for x-interaction
hydration are the actual wrapped components with actions, not the base component that renders the markup without actions that look like they've rendered properly but don't work at all lol
Explicit registering of components for x-interaction
This is a major release because it includes breaking changes to x-interaction
.
x-interaction allows you to serialise component data for server-rendered components, and hydrate those components on the client-side to enable actions with the client-side version of the component. Until now, it was registering components automatically for you relying on heuristics to determine the component name. This was unreliable since it had to work the same on the client and server-side for the component to hydrate properly.
The changes on x-interaction
for this version export a registerComponent
function, that needs to be called to explicitly register your component. It also throws errors if this has not been done correctly.
The LiveBlogWrapper
was modified so that its usage of x-interaction
is in accordance with these changes.