Security News
Introducing the Socket Python SDK
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
@financial-times/community-event-teaser
Advanced tools
community event teasers etc
Storybook: https://jubilant-umbrella-dd461ca9.pages.github.io
EventTeaser
, EventTopicCardItem
, and EventPromo
liveEventToEventTeaserProps
, and initTeaserTracking
initTeaserTracking
is using a reference of oTracking passed in the function. The package is tested and compatible with versions from 4.0.0
to 4.4.0
.npm install @financial-times/community-event-teaser
Example of how to use the <EventTeaser/>
import { h, render } from '@financial-times/x-engine';
import { EventTeaser } from "@financial-times/community-event-teaser";
const container = document.querySelector('.some-container-element');
render((
<EventTeaser
imgUrl={"https://ftweekend.live.ft.com/some-cool-image-png"}
title={"FTWeekend Festival"}
standfirst={"Some short description of the event"}
eventUrl={"https://ftweekend.live.ft.com"}
lazyLoadImage={"some__lazy-loading-classname"}
location={"Kenwood House Gardens & Online"}
scheduledStartTime={new Date("2021-09-04T12:00:00.000Z")}
showImage={true}
showBrand={true}
showStandfirst={true}
/>), container)
Example of how to use the EventTopicCardItem
import { h, render } from '@financial-times/x-engine';
import { EventTopicCardItem } from "@financial-times/community-event-teaser";
const container = document.querySelector('.some-container-element');
render((
<EventTopicCardItem
title={"FTWeekend Festival"}
eventUrl={"https://ftweekend.live.ft.com"}
location={"Kenwood House Gardens & Online"}
scheduledStartTime={new Date("2021-09-04T12:00:00.000Z")}
/>), container)
npm install
FAQs
community event teasers etc
The npm package @financial-times/community-event-teaser receives a total of 818 weekly downloads. As such, @financial-times/community-event-teaser popularity was classified as not popular.
We found that @financial-times/community-event-teaser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.
Security News
A new Rust RFC proposes "Trusted Publishing" for Crates.io, introducing short-lived access tokens via OIDC to improve security and reduce risks associated with long-lived API tokens.