6.8.0 • Published 2 years ago

@financial-times/x-podcast-launchers v6.8.0

Weekly downloads
86
License
ISC
Repository
github
Last release
2 years ago

x-podcast-launchers

This module allows users to open a podcast series in various podcast apps. The subscribe urls for each podcast app are generated from rss url with config (/src/app-links.js).

No elements are returned when the conceptId does not map to a known podcast series, as defined in src/map-concept-to-acast-series.js.

This component also renders a myFT follow button (x-follow-button) for the conceptId provided. This is acts as an onsite way to follow the series should the user's podcast app not be listed.

screenshot of x-podcast-launchers

Installation

This module is supported on Node 12 and is distributed on npm.

npm install --save @financial-times/x-podcast-launchers

The x-engine module is used to inject your chosen runtime into the component. Please read the x-engine documentation first if you are consuming x- components for the first time in your application.

Styling

The styles required for this components are bundled with it.

Usage

The components provided by this module are all functions that expect a map of properties. They can be used with vanilla JavaScript or JSX (If you are not familiar check out WTF is JSX first). For example if you were writing your application using React you could use the component like this:

import React from 'react';
import { PodcastLaunchers } from '@financial-times/x-podcast-launchers';

// A == B == C
const a = PodcastLaunchers(props);
const b = <PodcastLaunchers {...props} />;
const c = React.createElement(PodcastLaunchers, props);
// within your app's sass file
@import "@financial-times/x-podcast-launchers/dist/PodcastLaunchers";

All x- components are designed to be compatible with a variety of runtimes, not just React. Check out the x-engine documentation for a list of recommended libraries and frameworks.

Properties

FeatureTypeRequiredNotes
acastRSSHostStringYese.g. 'https://acast.access.com'
conceptIdStringYes
renderFollowButtonFunctionNoOptional render prop for the follow button

Additional props such as the conceptName may be required by x-follow-button. Documentation for these is available over in the component's readme.

6.3.1

2 years ago

6.6.0

2 years ago

6.8.0

2 years ago

6.4.1

2 years ago

6.7.1

2 years ago

6.3.0

2 years ago

6.2.12

2 years ago

6.2.10

2 years ago

6.2.11

2 years ago

6.2.7

3 years ago

6.2.9

3 years ago

6.2.8

3 years ago

6.2.5

3 years ago

6.2.6

3 years ago

6.2.4

3 years ago

6.2.3

3 years ago

6.2.2

3 years ago

4.1.5

3 years ago

6.2.1

3 years ago

6.2.0

3 years ago

6.1.0

3 years ago

6.0.0

3 years ago

5.2.0

3 years ago

5.1.0

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.4

3 years ago

4.1.3

3 years ago

4.1.2

3 years ago

4.1.1

3 years ago

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.3.1

3 years ago

3.3.0

3 years ago

3.2.0

3 years ago

3.1.0

3 years ago

3.0.0

3 years ago

2.1.0

3 years ago

2.0.6

3 years ago

2.0.5

4 years ago

2.0.2

4 years ago

1.7.0

4 years ago

1.6.9

4 years ago

1.6.8

4 years ago

1.6.7

4 years ago

1.6.4

4 years ago

1.6.3

4 years ago

1.6.2

4 years ago

1.4.2

4 years ago

1.4.1

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0-beta.24

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

1.0.0-beta.23

4 years ago

1.0.0-beta.22

4 years ago

1.0.0-beta.21

5 years ago

1.0.0-beta.20

5 years ago

1.0.0-beta.19

5 years ago

1.0.0-beta.18

5 years ago

1.0.0-beta.17

5 years ago

1.0.0-beta.16

5 years ago

1.0.0-beta.15

5 years ago

0.0.2

5 years ago

0.0.1-alpha.4

5 years ago

0.0.1-alpha.3

5 years ago

0.0.1-alpha.2

5 years ago

0.0.1-alpha.1

5 years ago