@financial-times/cp-content-pipeline-ui 7.1.4 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/lib/client.d.ts +3 -3
- package/lib/client.js +3 -3
- package/lib/client.js.map +1 -1
- package/lib/components/Body/index.js +4 -4
- package/lib/components/Body/index.js.map +1 -1
- package/lib/components/LiveBlogWrapper/index.js +5 -3
- package/lib/components/LiveBlogWrapper/index.js.map +1 -1
- package/lib/components/MainImage/index.js +1 -1
- package/lib/components/MainImage/index.js.map +1 -1
- package/lib/components/RichText/index.d.ts +3 -3
- package/lib/components/RichText/index.js +18 -18
- package/lib/components/RichText/index.js.map +1 -1
- package/lib/components/Topper/Picture.js +1 -1
- package/lib/components/Topper/Picture.js.map +1 -1
- package/lib/components/Topper/index.js +3 -2
- package/lib/components/Topper/index.js.map +1 -1
- package/lib/components/{ArticleBody → body-components/ArticleBody}/index.d.ts +1 -1
- package/lib/components/{ArticleBody → body-components/ArticleBody}/index.js +1 -1
- package/lib/components/body-components/ArticleBody/index.js.map +1 -0
- package/lib/components/{ContentPackageBody → body-components/ContentPackageBody}/index.d.ts +1 -1
- package/lib/components/{ContentPackageBody → body-components/ContentPackageBody}/index.js +1 -1
- package/lib/components/body-components/ContentPackageBody/index.js.map +1 -0
- package/lib/components/{LiveBlogBody → body-components/LiveBlogBody}/index.d.ts +1 -1
- package/lib/components/{LiveBlogBody → body-components/LiveBlogBody}/index.js +2 -2
- package/lib/components/body-components/LiveBlogBody/index.js.map +1 -0
- package/lib/components/{PodcastBody → body-components/PodcastBody}/index.d.ts +1 -1
- package/lib/components/{PodcastBody → body-components/PodcastBody}/index.js +1 -1
- package/lib/components/body-components/PodcastBody/index.js.map +1 -0
- package/lib/components/{BigNumber → content-tree/BigNumber}/index.d.ts +1 -1
- package/lib/components/content-tree/BigNumber/index.js.map +1 -0
- package/lib/components/content-tree/Clip/client/index.js.map +1 -0
- package/lib/components/content-tree/Clip/client/progressBar.js.map +1 -0
- package/lib/components/content-tree/Clip/client/utils.js.map +1 -0
- package/lib/components/content-tree/Clip/components/Caption.js.map +1 -0
- package/lib/components/{Clip → content-tree/Clip}/components/ClipTag.js +1 -1
- package/lib/components/content-tree/Clip/components/ClipTag.js.map +1 -0
- package/lib/components/content-tree/Clip/components/ClosedCaptions.js.map +1 -0
- package/lib/components/content-tree/Clip/components/Container.js.map +1 -0
- package/lib/components/content-tree/Clip/components/ContentLayout.js.map +1 -0
- package/lib/components/content-tree/Clip/components/Credit.js.map +1 -0
- package/lib/components/{Clip → content-tree/Clip}/components/VideoDescription.js +1 -1
- package/lib/components/content-tree/Clip/components/VideoDescription.js.map +1 -0
- package/lib/components/content-tree/Clip/components/VideoInfoBox.js.map +1 -0
- package/lib/components/content-tree/Clip/components/index.js.map +1 -0
- package/lib/components/content-tree/Clip/index.js.map +1 -0
- package/lib/components/{Clip → content-tree/Clip}/template/component.d.ts +1 -1
- package/lib/components/content-tree/Clip/template/component.js.map +1 -0
- package/lib/components/content-tree/Clip/template/index.js.map +1 -0
- package/lib/components/content-tree/Clip/test/fixtures.js.map +1 -0
- package/lib/components/content-tree/Clip/test/index.spec.js.map +1 -0
- package/lib/components/content-tree/Clip/test/progressBar.spec.js.map +1 -0
- package/lib/components/content-tree/Clip/test/snapshot.spec.js.map +1 -0
- package/lib/components/content-tree/CustomCodeComponent/client/index.js.map +1 -0
- package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/tracking.js +12 -6
- package/lib/components/content-tree/CustomCodeComponent/client/tracking.js.map +1 -0
- package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/index.d.ts +1 -1
- package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/index.js +2 -2
- package/lib/components/content-tree/CustomCodeComponent/index.js.map +1 -0
- package/lib/components/content-tree/Flourish/client/index.js.map +1 -0
- package/lib/components/{Flourish → content-tree/Flourish}/index.d.ts +1 -1
- package/lib/components/{Flourish → content-tree/Flourish}/index.js +1 -1
- package/lib/components/content-tree/Flourish/index.js.map +1 -0
- package/lib/components/content-tree/Flourish/test/snapshot.spec.js.map +1 -0
- package/lib/components/{Heading → content-tree/Heading}/index.d.ts +1 -1
- package/lib/components/content-tree/Heading/index.js.map +1 -0
- package/lib/components/{ImageSet → content-tree/ImageSet}/index.d.ts +1 -1
- package/lib/components/{ImageSet → content-tree/ImageSet}/index.js +2 -2
- package/lib/components/content-tree/ImageSet/index.js.map +1 -0
- package/lib/components/{Layout → content-tree/Layout}/index.d.ts +1 -1
- package/lib/components/content-tree/Layout/index.js.map +1 -0
- package/lib/components/{Paragraph → content-tree/Paragraph}/index.d.ts +1 -1
- package/lib/components/content-tree/Paragraph/index.js.map +1 -0
- package/lib/components/{Pullquote → content-tree/Pullquote}/index.d.ts +1 -1
- package/lib/components/content-tree/Pullquote/index.js.map +1 -0
- package/lib/components/{Recommended → content-tree/Recommended}/index.d.ts +1 -1
- package/lib/components/content-tree/Recommended/index.js.map +1 -0
- package/lib/components/{Scrollytelling → content-tree/Scrollytelling}/ScrollyImage.d.ts +1 -1
- package/lib/components/content-tree/Scrollytelling/ScrollyImage.js.map +1 -0
- package/lib/components/{Scrollytelling → content-tree/Scrollytelling}/index.d.ts +1 -1
- package/lib/components/content-tree/Scrollytelling/index.js.map +1 -0
- package/lib/components/{Table → content-tree/Table}/TableBody.d.ts +1 -1
- package/lib/components/content-tree/Table/TableBody.js.map +1 -0
- package/lib/components/{Table → content-tree/Table}/TableCell.d.ts +1 -1
- package/lib/components/content-tree/Table/TableCell.js.map +1 -0
- package/lib/components/{Table → content-tree/Table}/index.d.ts +1 -1
- package/lib/components/content-tree/Table/index.js.map +1 -0
- package/lib/components/{Tweet → content-tree/Tweet}/index.d.ts +1 -1
- package/lib/components/content-tree/Tweet/index.js.map +1 -0
- package/lib/components/{Video → content-tree/Video}/index.d.ts +1 -1
- package/lib/components/content-tree/Video/index.js.map +1 -0
- package/lib/components/content-tree/Workarounds.js.map +1 -0
- package/lib/components/{YoutubeVideo → content-tree/YoutubeVideo}/index.d.ts +1 -1
- package/lib/components/content-tree/YoutubeVideo/index.js.map +1 -0
- package/lib/context.d.ts +1 -1
- package/lib/context.js.map +1 -1
- package/lib/index.d.ts +20 -20
- package/lib/index.js +34 -34
- package/lib/index.js.map +1 -1
- package/lib/stories/Clip.stories.d.ts +2 -2
- package/lib/stories/Clip.stories.js +2 -2
- package/lib/stories/Clip.stories.js.map +1 -1
- package/lib/stories/Expander.stories.js +1 -1
- package/lib/stories/Expander.stories.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +3 -3
- package/src/components/Body/index.tsx +6 -4
- package/src/components/Byline/index.tsx +1 -1
- package/src/components/LiveBlogWrapper/index.tsx +6 -3
- package/src/components/MainImage/index.tsx +2 -2
- package/src/components/RichText/index.tsx +28 -27
- package/src/components/Topper/Picture.tsx +5 -1
- package/src/components/Topper/index.tsx +5 -2
- package/src/components/{ArticleBody → body-components/ArticleBody}/index.tsx +2 -2
- package/src/components/{ContentPackageBody → body-components/ContentPackageBody}/index.tsx +2 -2
- package/src/components/{LiveBlogBody → body-components/LiveBlogBody}/index.tsx +3 -3
- package/src/components/{PodcastBody → body-components/PodcastBody}/index.tsx +2 -2
- package/src/components/{BigNumber → content-tree/BigNumber}/index.tsx +1 -1
- package/src/components/{Clip → content-tree/Clip}/components/ClipTag.tsx +1 -1
- package/src/components/{Clip → content-tree/Clip}/components/VideoDescription.tsx +1 -1
- package/src/components/{Clip → content-tree/Clip}/template/component.tsx +1 -1
- package/src/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/tracking.ts +13 -7
- package/src/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/index.tsx +3 -3
- package/src/components/{Flourish → content-tree/Flourish}/index.tsx +5 -5
- package/src/components/{Heading → content-tree/Heading}/index.tsx +1 -1
- package/src/components/{ImageSet → content-tree/ImageSet}/index.tsx +5 -4
- package/src/components/{Layout → content-tree/Layout}/index.tsx +1 -1
- package/src/components/{Paragraph → content-tree/Paragraph}/index.tsx +1 -1
- package/src/components/{Pullquote → content-tree/Pullquote}/index.tsx +1 -1
- package/src/components/{Recommended → content-tree/Recommended}/index.tsx +1 -1
- package/src/components/{Scrollytelling → content-tree/Scrollytelling}/ScrollyImage.tsx +1 -1
- package/src/components/{Scrollytelling → content-tree/Scrollytelling}/index.tsx +1 -1
- package/src/components/{Table → content-tree/Table}/TableBody.tsx +1 -1
- package/src/components/{Table → content-tree/Table}/TableCell.tsx +1 -1
- package/src/components/{Table → content-tree/Table}/index.tsx +1 -1
- package/src/components/{Tweet → content-tree/Tweet}/index.tsx +1 -1
- package/src/components/{Video → content-tree/Video}/index.tsx +1 -1
- package/src/components/{YoutubeVideo → content-tree/YoutubeVideo}/index.tsx +1 -1
- package/src/context.ts +4 -1
- package/src/index.ts +27 -20
- package/src/stories/Clip.stories.scss +1 -1
- package/src/stories/Clip.stories.tsx +3 -3
- package/src/stories/Expander.stories.tsx +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/components/ArticleBody/index.js.map +0 -1
- package/lib/components/BigNumber/index.js.map +0 -1
- package/lib/components/Clip/client/index.js.map +0 -1
- package/lib/components/Clip/client/progressBar.js.map +0 -1
- package/lib/components/Clip/client/utils.js.map +0 -1
- package/lib/components/Clip/components/Caption.js.map +0 -1
- package/lib/components/Clip/components/ClipTag.js.map +0 -1
- package/lib/components/Clip/components/ClosedCaptions.js.map +0 -1
- package/lib/components/Clip/components/Container.js.map +0 -1
- package/lib/components/Clip/components/ContentLayout.js.map +0 -1
- package/lib/components/Clip/components/Credit.js.map +0 -1
- package/lib/components/Clip/components/VideoDescription.js.map +0 -1
- package/lib/components/Clip/components/VideoInfoBox.js.map +0 -1
- package/lib/components/Clip/components/index.js.map +0 -1
- package/lib/components/Clip/index.js.map +0 -1
- package/lib/components/Clip/template/component.js.map +0 -1
- package/lib/components/Clip/template/index.js.map +0 -1
- package/lib/components/Clip/test/fixtures.js.map +0 -1
- package/lib/components/Clip/test/index.spec.js.map +0 -1
- package/lib/components/Clip/test/progressBar.spec.js.map +0 -1
- package/lib/components/Clip/test/snapshot.spec.js.map +0 -1
- package/lib/components/ContentPackageBody/index.js.map +0 -1
- package/lib/components/CustomCodeComponent/client/index.js.map +0 -1
- package/lib/components/CustomCodeComponent/client/tracking.js.map +0 -1
- package/lib/components/CustomCodeComponent/index.js.map +0 -1
- package/lib/components/Flourish/client/index.js.map +0 -1
- package/lib/components/Flourish/index.js.map +0 -1
- package/lib/components/Flourish/test/snapshot.spec.js.map +0 -1
- package/lib/components/Heading/index.js.map +0 -1
- package/lib/components/ImageSet/index.js.map +0 -1
- package/lib/components/Layout/index.js.map +0 -1
- package/lib/components/LiveBlogBody/index.js.map +0 -1
- package/lib/components/Paragraph/index.js.map +0 -1
- package/lib/components/PodcastBody/index.js.map +0 -1
- package/lib/components/Pullquote/index.js.map +0 -1
- package/lib/components/Recommended/index.js.map +0 -1
- package/lib/components/Scrollytelling/ScrollyImage.js.map +0 -1
- package/lib/components/Scrollytelling/index.js.map +0 -1
- package/lib/components/Table/TableBody.js.map +0 -1
- package/lib/components/Table/TableCell.js.map +0 -1
- package/lib/components/Table/index.js.map +0 -1
- package/lib/components/Tweet/index.js.map +0 -1
- package/lib/components/Video/index.js.map +0 -1
- package/lib/components/Workarounds.js.map +0 -1
- package/lib/components/YoutubeVideo/index.js.map +0 -1
- /package/lib/components/{BigNumber → content-tree/BigNumber}/index.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/index.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/index.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/progressBar.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/progressBar.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/utils.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/client/utils.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Caption.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Caption.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/ClipTag.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/ClosedCaptions.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/ClosedCaptions.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Container.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Container.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/ContentLayout.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/ContentLayout.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Credit.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/Credit.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/VideoDescription.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/VideoInfoBox.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/VideoInfoBox.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/index.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/components/index.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/index.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/index.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/template/component.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/template/index.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/template/index.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/fixtures.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/fixtures.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/index.spec.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/index.spec.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/progressBar.spec.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/progressBar.spec.js +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/snapshot.spec.d.ts +0 -0
- /package/lib/components/{Clip → content-tree/Clip}/test/snapshot.spec.js +0 -0
- /package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/index.d.ts +0 -0
- /package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/index.js +0 -0
- /package/lib/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/tracking.d.ts +0 -0
- /package/lib/components/{Flourish → content-tree/Flourish}/client/index.d.ts +0 -0
- /package/lib/components/{Flourish → content-tree/Flourish}/client/index.js +0 -0
- /package/lib/components/{Flourish → content-tree/Flourish}/test/snapshot.spec.d.ts +0 -0
- /package/lib/components/{Flourish → content-tree/Flourish}/test/snapshot.spec.js +0 -0
- /package/lib/components/{Heading → content-tree/Heading}/index.js +0 -0
- /package/lib/components/{Layout → content-tree/Layout}/index.js +0 -0
- /package/lib/components/{Paragraph → content-tree/Paragraph}/index.js +0 -0
- /package/lib/components/{Pullquote → content-tree/Pullquote}/index.js +0 -0
- /package/lib/components/{Recommended → content-tree/Recommended}/index.js +0 -0
- /package/lib/components/{Scrollytelling → content-tree/Scrollytelling}/ScrollyImage.js +0 -0
- /package/lib/components/{Scrollytelling → content-tree/Scrollytelling}/index.js +0 -0
- /package/lib/components/{Table → content-tree/Table}/TableBody.js +0 -0
- /package/lib/components/{Table → content-tree/Table}/TableCell.js +0 -0
- /package/lib/components/{Table → content-tree/Table}/index.js +0 -0
- /package/lib/components/{Tweet → content-tree/Tweet}/index.js +0 -0
- /package/lib/components/{Video → content-tree/Video}/index.js +0 -0
- /package/lib/components/{Workarounds.d.ts → content-tree/Workarounds.d.ts} +0 -0
- /package/lib/components/{Workarounds.js → content-tree/Workarounds.js} +0 -0
- /package/lib/components/{YoutubeVideo → content-tree/YoutubeVideo}/index.js +0 -0
- /package/src/components/{Clip → content-tree/Clip}/client/index.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/client/main.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/client/progressBar.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/client/progressBar.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/client/utils.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/Caption.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/ClosedCaptions.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/Container.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/ContentLayout.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/Credit.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/VideoInfoBox.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/_caption.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/_clip-tag.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/_credit.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/_video-description.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/_video-info-box.scss +0 -0
- /package/src/components/{Clip → content-tree/Clip}/components/index.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/index.tsx +0 -0
- /package/src/components/{Clip → content-tree/Clip}/template/index.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/test/__snapshots__/snapshot.spec.tsx.snap +0 -0
- /package/src/components/{Clip → content-tree/Clip}/test/fixtures.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/test/index.spec.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/test/progressBar.spec.ts +0 -0
- /package/src/components/{Clip → content-tree/Clip}/test/snapshot.spec.tsx +0 -0
- /package/src/components/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/index.ts +0 -0
- /package/src/components/{Flourish → content-tree/Flourish}/client/index.ts +0 -0
- /package/src/components/{Flourish → content-tree/Flourish}/client/main.scss +0 -0
- /package/src/components/{Flourish → content-tree/Flourish}/test/__snapshots__/snapshot.spec.tsx.snap +0 -0
- /package/src/components/{Flourish → content-tree/Flourish}/test/snapshot.spec.tsx +0 -0
- /package/src/components/{Workarounds.ts → content-tree/Workarounds.ts} +0 -0
|
@@ -2,12 +2,12 @@ import React, { PropsWithChildren, useContext } from 'react'
|
|
|
2
2
|
import {
|
|
3
3
|
FallbackImageOverrideWrapper,
|
|
4
4
|
ImageSetOverrideWrapper,
|
|
5
|
-
} from '
|
|
5
|
+
} from '../../ImageOverrideWrappers'
|
|
6
6
|
|
|
7
7
|
import type { ContentTree } from '@financial-times/content-tree'
|
|
8
8
|
|
|
9
|
-
import { PresentationFlagsContext } from '
|
|
10
|
-
import { ContentProps } from '
|
|
9
|
+
import { PresentationFlagsContext } from '../../../context'
|
|
10
|
+
import { ContentProps } from '../../types'
|
|
11
11
|
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
12
12
|
import { SetRequired } from 'type-fest'
|
|
13
13
|
import type * as ComponentWorkarounds from '../Workarounds'
|
|
@@ -215,7 +215,8 @@ export const FallbackImage: React.FC<FallbackImageProps> = (props) => {
|
|
|
215
215
|
)
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
export interface ImageSetProps
|
|
218
|
+
export interface ImageSetProps
|
|
219
|
+
extends ContentProps<ComponentWorkarounds.ImageSet> {
|
|
219
220
|
isMainImage?: boolean
|
|
220
221
|
}
|
|
221
222
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentTree } from '@financial-times/content-tree'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../types'
|
|
4
4
|
|
|
5
5
|
interface LayoutProps extends ContentProps<Omit<ContentTree.transit.Layout, 'children'>> {}
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentTree } from '@financial-times/content-tree'
|
|
2
2
|
import React, { createContext, useContext } from 'react'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../types'
|
|
4
4
|
|
|
5
5
|
export const ParagraphContext = createContext<{ className: string } | null>(
|
|
6
6
|
null
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
3
3
|
import classnames from 'classnames'
|
|
4
|
-
import { ContentProps } from '
|
|
4
|
+
import { ContentProps } from '../../types'
|
|
5
5
|
|
|
6
6
|
interface PullquoteProps
|
|
7
7
|
extends ContentProps<ContentTreeWorkarounds.Pullquote> {}
|
|
@@ -3,7 +3,7 @@ import React from 'react'
|
|
|
3
3
|
//HACK: worked around missing Teaser type by declaring a module x-teaser.d.ts
|
|
4
4
|
import { presets, Teaser } from '@financial-times/x-teaser/dist/Teaser.cjs'
|
|
5
5
|
import classnames from 'classnames'
|
|
6
|
-
import { ContentProps } from '
|
|
6
|
+
import { ContentProps } from '../../types'
|
|
7
7
|
import type * as ComponentWorkarounds from '../Workarounds'
|
|
8
8
|
|
|
9
9
|
// Renders a Recommended teaser component
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useContext } from 'react'
|
|
2
2
|
import { BreakpointGetter, FallbackImage, Sources } from '../ImageSet'
|
|
3
3
|
import { ScrollyIDContext } from '.'
|
|
4
|
-
import { ContentProps } from '
|
|
4
|
+
import { ContentProps } from '../../types'
|
|
5
5
|
import type * as ComponentWorkarounds from '../Workarounds'
|
|
6
6
|
|
|
7
7
|
const scrollyGetBreakpoints: BreakpointGetter = (image) => {
|
|
@@ -3,7 +3,7 @@ import type { ContentTree } from '@financial-times/content-tree'
|
|
|
3
3
|
import classnames from 'classnames'
|
|
4
4
|
import type scrollytelling from '@financial-times/n-scrollytelling-image/server'
|
|
5
5
|
import { ParagraphContext } from '../Paragraph'
|
|
6
|
-
import { ContentProps } from '
|
|
6
|
+
import { ContentProps } from '../../types'
|
|
7
7
|
|
|
8
8
|
export const ScrollyIDContext = createContext<string | null>(null)
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
2
2
|
import React from 'react'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../types'
|
|
4
4
|
|
|
5
5
|
interface TableBodyProps
|
|
6
6
|
extends ContentProps<ContentTreeWorkarounds.TableBody> {}
|
|
@@ -2,7 +2,7 @@ import React, { useContext } from 'react'
|
|
|
2
2
|
import type { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
3
3
|
import { ColumnSettingsContext } from '.'
|
|
4
4
|
import classNames from 'classnames'
|
|
5
|
-
import { ContentProps } from '
|
|
5
|
+
import { ContentProps } from '../../types'
|
|
6
6
|
|
|
7
7
|
interface TableCellProps
|
|
8
8
|
extends ContentProps<ContentTreeWorkarounds.TableCell> {}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
2
2
|
import React, { createContext } from 'react'
|
|
3
3
|
import classNames from 'classnames'
|
|
4
|
-
import { ContentProps } from '
|
|
4
|
+
import { ContentProps } from '../../types'
|
|
5
5
|
|
|
6
6
|
export const ColumnSettingsContext = createContext<
|
|
7
7
|
ContentTreeWorkarounds.TableColumnSettings[]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { ContentProps } from '
|
|
2
|
+
import { ContentProps } from '../../types'
|
|
3
3
|
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
4
4
|
|
|
5
5
|
interface VideoProps extends ContentProps<ContentTreeWorkarounds.Video> {}
|
package/src/context.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { createContext, PropsWithChildren } from 'react'
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type {
|
|
4
|
+
FallbackImageProps,
|
|
5
|
+
ImageSetProps,
|
|
6
|
+
} from './components/content-tree/ImageSet'
|
|
4
7
|
import type { PictureProps } from './components/Topper/Picture'
|
|
5
8
|
|
|
6
9
|
export type PresentationOverrideTypes = {
|
package/src/index.ts
CHANGED
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
export { default as ArticleBody } from './components/ArticleBody'
|
|
2
1
|
export { default as ArticleInfo } from './components/ArticleInfo'
|
|
3
|
-
export { default as BigNumber } from './components/BigNumber'
|
|
4
|
-
export { default as Body } from './components/Body'
|
|
5
2
|
export { default as Byline } from './components/Byline'
|
|
6
|
-
export { default as Flourish } from './components/Flourish'
|
|
7
|
-
export { default as Heading } from './components/Heading'
|
|
8
|
-
export { default as ImageSet } from './components/ImageSet'
|
|
9
|
-
export { default as CustomCodeComponent } from './components/CustomCodeComponent'
|
|
10
|
-
export { default as Clip } from './components/Clip/template/component'
|
|
11
|
-
export { Layout, LayoutContainer, LayoutSlot } from './components/Layout'
|
|
12
|
-
export { default as LiveBlogBody } from './components/LiveBlogBody'
|
|
13
3
|
export { LiveBlogWrapper } from './components/LiveBlogWrapper'
|
|
14
4
|
export { default as MainImage } from './components/MainImage'
|
|
15
|
-
export { default as Paragraph } from './components/Paragraph'
|
|
16
|
-
export { default as PodcastBody } from './components/PodcastBody'
|
|
17
|
-
export { default as Pullquote } from './components/Pullquote/index'
|
|
18
|
-
export { default as Recommended } from './components/Recommended'
|
|
19
|
-
export { default as RichText } from './components/RichText'
|
|
20
|
-
export { ScrollyBlock } from './components/Scrollytelling'
|
|
21
|
-
export { default as Table } from './components/Table'
|
|
22
5
|
export { default as Topper } from './components/Topper'
|
|
23
|
-
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
6
|
+
|
|
7
|
+
export { default as Body } from './components/Body'
|
|
8
|
+
export { default as ArticleBody } from './components/body-components/ArticleBody'
|
|
9
|
+
export { default as LiveBlogBody } from './components/body-components/LiveBlogBody'
|
|
10
|
+
export { default as PodcastBody } from './components/body-components/PodcastBody'
|
|
11
|
+
|
|
12
|
+
export { default as RichText } from './components/RichText'
|
|
13
|
+
export { default as BigNumber } from './components/content-tree/BigNumber'
|
|
14
|
+
export { default as CustomCodeComponent } from './components/content-tree/CustomCodeComponent'
|
|
15
|
+
export { default as Flourish } from './components/content-tree/Flourish'
|
|
16
|
+
export { default as Heading } from './components/content-tree/Heading'
|
|
17
|
+
export { default as ImageSet } from './components/content-tree/ImageSet'
|
|
18
|
+
export { default as Clip } from './components/content-tree/Clip/template/component'
|
|
19
|
+
export {
|
|
20
|
+
Layout,
|
|
21
|
+
LayoutContainer,
|
|
22
|
+
LayoutSlot,
|
|
23
|
+
} from './components/content-tree/Layout'
|
|
24
|
+
export { default as Paragraph } from './components/content-tree/Paragraph'
|
|
25
|
+
export { default as Pullquote } from './components/content-tree/Pullquote/index'
|
|
26
|
+
export { default as Recommended } from './components/content-tree/Recommended'
|
|
27
|
+
export { ScrollyBlock } from './components/content-tree/Scrollytelling'
|
|
28
|
+
export { default as Table } from './components/content-tree/Table'
|
|
29
|
+
export { default as Tweet } from './components/content-tree/Tweet'
|
|
30
|
+
export { default as Video } from './components/content-tree/Video'
|
|
31
|
+
export { default as YoutubeVideo } from './components/content-tree/YoutubeVideo'
|
|
26
32
|
export {
|
|
27
33
|
List,
|
|
28
34
|
ListItem,
|
|
@@ -36,6 +42,7 @@ export {
|
|
|
36
42
|
Cite,
|
|
37
43
|
CccFallbackText,
|
|
38
44
|
} from './components/RichText/BasicComponents'
|
|
45
|
+
|
|
39
46
|
export {
|
|
40
47
|
PresentationFlagsContext,
|
|
41
48
|
PresentationOverridesContext,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React, { useEffect } from 'react'
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react'
|
|
3
3
|
|
|
4
|
-
import ClipServer from '../components/Clip'
|
|
5
|
-
import ClipClient from '../components/Clip/client'
|
|
4
|
+
import ClipServer from '../components/content-tree/Clip'
|
|
5
|
+
import ClipClient from '../components/content-tree/Clip/client'
|
|
6
6
|
import oTracking from '@financial-times/o-tracking/main'
|
|
7
7
|
import './Clip.stories.scss'
|
|
8
|
-
import { ClipProps } from '../components/Clip/template/component'
|
|
8
|
+
import { ClipProps } from '../components/content-tree/Clip/template/component'
|
|
9
9
|
|
|
10
10
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
11
11
|
export default {
|
|
@@ -4,7 +4,7 @@ import { ExpanderClient } from '../components/Expander/client'
|
|
|
4
4
|
import React, { useEffect } from 'react'
|
|
5
5
|
import oTracking from '@financial-times/o-tracking/main'
|
|
6
6
|
import './Expander.stories.scss'
|
|
7
|
-
import ClipClient from '../components/Clip/client'
|
|
7
|
+
import ClipClient from '../components/content-tree/Clip/client'
|
|
8
8
|
import RichText from '../components/RichText'
|
|
9
9
|
import { ContentTree } from '@financial-times/content-tree'
|
|
10
10
|
|