@financial-times/cp-content-pipeline-ui 7.1.3 → 7.2.0
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/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 -2
- 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}/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.tsx +3 -3
- package/src/stories/Expander.stories.tsx +1 -1
- package/src/stories/Message.stories.scss +1 -3
- 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/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/tracking.js +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/{CustomCodeComponent → content-tree/CustomCodeComponent}/client/tracking.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
package/lib/index.js
CHANGED
|
@@ -3,58 +3,58 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PresentationOverridesContext = exports.PresentationFlagsContext = exports.CccFallbackText = exports.Cite = exports.Strikethrough = exports.Strong = exports.Emphasis = exports.HorizontalRule = exports.LineBreak = exports.Blockquote = exports.Link = exports.ListItem = exports.List = exports.YoutubeVideo = exports.Video = exports.Tweet = exports.
|
|
7
|
-
var ArticleBody_1 = require("./components/ArticleBody");
|
|
8
|
-
Object.defineProperty(exports, "ArticleBody", { enumerable: true, get: function () { return __importDefault(ArticleBody_1).default; } });
|
|
6
|
+
exports.PresentationOverridesContext = exports.PresentationFlagsContext = exports.CccFallbackText = exports.Cite = exports.Strikethrough = exports.Strong = exports.Emphasis = exports.HorizontalRule = exports.LineBreak = exports.Blockquote = exports.Link = exports.ListItem = exports.List = exports.YoutubeVideo = exports.Video = exports.Tweet = exports.Table = exports.ScrollyBlock = exports.Recommended = exports.Pullquote = exports.Paragraph = exports.LayoutSlot = exports.LayoutContainer = exports.Layout = exports.Clip = exports.ImageSet = exports.Heading = exports.Flourish = exports.CustomCodeComponent = exports.BigNumber = exports.RichText = exports.PodcastBody = exports.LiveBlogBody = exports.ArticleBody = exports.Body = exports.Topper = exports.MainImage = exports.LiveBlogWrapper = exports.Byline = exports.ArticleInfo = void 0;
|
|
9
7
|
var ArticleInfo_1 = require("./components/ArticleInfo");
|
|
10
8
|
Object.defineProperty(exports, "ArticleInfo", { enumerable: true, get: function () { return __importDefault(ArticleInfo_1).default; } });
|
|
11
|
-
var BigNumber_1 = require("./components/BigNumber");
|
|
12
|
-
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return __importDefault(BigNumber_1).default; } });
|
|
13
|
-
var Body_1 = require("./components/Body");
|
|
14
|
-
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return __importDefault(Body_1).default; } });
|
|
15
9
|
var Byline_1 = require("./components/Byline");
|
|
16
10
|
Object.defineProperty(exports, "Byline", { enumerable: true, get: function () { return __importDefault(Byline_1).default; } });
|
|
17
|
-
var
|
|
11
|
+
var LiveBlogWrapper_1 = require("./components/LiveBlogWrapper");
|
|
12
|
+
Object.defineProperty(exports, "LiveBlogWrapper", { enumerable: true, get: function () { return LiveBlogWrapper_1.LiveBlogWrapper; } });
|
|
13
|
+
var MainImage_1 = require("./components/MainImage");
|
|
14
|
+
Object.defineProperty(exports, "MainImage", { enumerable: true, get: function () { return __importDefault(MainImage_1).default; } });
|
|
15
|
+
var Topper_1 = require("./components/Topper");
|
|
16
|
+
Object.defineProperty(exports, "Topper", { enumerable: true, get: function () { return __importDefault(Topper_1).default; } });
|
|
17
|
+
var Body_1 = require("./components/Body");
|
|
18
|
+
Object.defineProperty(exports, "Body", { enumerable: true, get: function () { return __importDefault(Body_1).default; } });
|
|
19
|
+
var ArticleBody_1 = require("./components/body-components/ArticleBody");
|
|
20
|
+
Object.defineProperty(exports, "ArticleBody", { enumerable: true, get: function () { return __importDefault(ArticleBody_1).default; } });
|
|
21
|
+
var LiveBlogBody_1 = require("./components/body-components/LiveBlogBody");
|
|
22
|
+
Object.defineProperty(exports, "LiveBlogBody", { enumerable: true, get: function () { return __importDefault(LiveBlogBody_1).default; } });
|
|
23
|
+
var PodcastBody_1 = require("./components/body-components/PodcastBody");
|
|
24
|
+
Object.defineProperty(exports, "PodcastBody", { enumerable: true, get: function () { return __importDefault(PodcastBody_1).default; } });
|
|
25
|
+
var RichText_1 = require("./components/RichText");
|
|
26
|
+
Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return __importDefault(RichText_1).default; } });
|
|
27
|
+
var BigNumber_1 = require("./components/content-tree/BigNumber");
|
|
28
|
+
Object.defineProperty(exports, "BigNumber", { enumerable: true, get: function () { return __importDefault(BigNumber_1).default; } });
|
|
29
|
+
var CustomCodeComponent_1 = require("./components/content-tree/CustomCodeComponent");
|
|
30
|
+
Object.defineProperty(exports, "CustomCodeComponent", { enumerable: true, get: function () { return __importDefault(CustomCodeComponent_1).default; } });
|
|
31
|
+
var Flourish_1 = require("./components/content-tree/Flourish");
|
|
18
32
|
Object.defineProperty(exports, "Flourish", { enumerable: true, get: function () { return __importDefault(Flourish_1).default; } });
|
|
19
|
-
var Heading_1 = require("./components/Heading");
|
|
33
|
+
var Heading_1 = require("./components/content-tree/Heading");
|
|
20
34
|
Object.defineProperty(exports, "Heading", { enumerable: true, get: function () { return __importDefault(Heading_1).default; } });
|
|
21
|
-
var ImageSet_1 = require("./components/ImageSet");
|
|
35
|
+
var ImageSet_1 = require("./components/content-tree/ImageSet");
|
|
22
36
|
Object.defineProperty(exports, "ImageSet", { enumerable: true, get: function () { return __importDefault(ImageSet_1).default; } });
|
|
23
|
-
var
|
|
24
|
-
Object.defineProperty(exports, "CustomCodeComponent", { enumerable: true, get: function () { return __importDefault(CustomCodeComponent_1).default; } });
|
|
25
|
-
var component_1 = require("./components/Clip/template/component");
|
|
37
|
+
var component_1 = require("./components/content-tree/Clip/template/component");
|
|
26
38
|
Object.defineProperty(exports, "Clip", { enumerable: true, get: function () { return __importDefault(component_1).default; } });
|
|
27
|
-
var Layout_1 = require("./components/Layout");
|
|
39
|
+
var Layout_1 = require("./components/content-tree/Layout");
|
|
28
40
|
Object.defineProperty(exports, "Layout", { enumerable: true, get: function () { return Layout_1.Layout; } });
|
|
29
41
|
Object.defineProperty(exports, "LayoutContainer", { enumerable: true, get: function () { return Layout_1.LayoutContainer; } });
|
|
30
42
|
Object.defineProperty(exports, "LayoutSlot", { enumerable: true, get: function () { return Layout_1.LayoutSlot; } });
|
|
31
|
-
var
|
|
32
|
-
Object.defineProperty(exports, "LiveBlogBody", { enumerable: true, get: function () { return __importDefault(LiveBlogBody_1).default; } });
|
|
33
|
-
var LiveBlogWrapper_1 = require("./components/LiveBlogWrapper");
|
|
34
|
-
Object.defineProperty(exports, "LiveBlogWrapper", { enumerable: true, get: function () { return LiveBlogWrapper_1.LiveBlogWrapper; } });
|
|
35
|
-
var MainImage_1 = require("./components/MainImage");
|
|
36
|
-
Object.defineProperty(exports, "MainImage", { enumerable: true, get: function () { return __importDefault(MainImage_1).default; } });
|
|
37
|
-
var Paragraph_1 = require("./components/Paragraph");
|
|
43
|
+
var Paragraph_1 = require("./components/content-tree/Paragraph");
|
|
38
44
|
Object.defineProperty(exports, "Paragraph", { enumerable: true, get: function () { return __importDefault(Paragraph_1).default; } });
|
|
39
|
-
var
|
|
40
|
-
Object.defineProperty(exports, "PodcastBody", { enumerable: true, get: function () { return __importDefault(PodcastBody_1).default; } });
|
|
41
|
-
var index_1 = require("./components/Pullquote/index");
|
|
45
|
+
var index_1 = require("./components/content-tree/Pullquote/index");
|
|
42
46
|
Object.defineProperty(exports, "Pullquote", { enumerable: true, get: function () { return __importDefault(index_1).default; } });
|
|
43
|
-
var Recommended_1 = require("./components/Recommended");
|
|
47
|
+
var Recommended_1 = require("./components/content-tree/Recommended");
|
|
44
48
|
Object.defineProperty(exports, "Recommended", { enumerable: true, get: function () { return __importDefault(Recommended_1).default; } });
|
|
45
|
-
var
|
|
46
|
-
Object.defineProperty(exports, "RichText", { enumerable: true, get: function () { return __importDefault(RichText_1).default; } });
|
|
47
|
-
var Scrollytelling_1 = require("./components/Scrollytelling");
|
|
49
|
+
var Scrollytelling_1 = require("./components/content-tree/Scrollytelling");
|
|
48
50
|
Object.defineProperty(exports, "ScrollyBlock", { enumerable: true, get: function () { return Scrollytelling_1.ScrollyBlock; } });
|
|
49
|
-
var Table_1 = require("./components/Table");
|
|
51
|
+
var Table_1 = require("./components/content-tree/Table");
|
|
50
52
|
Object.defineProperty(exports, "Table", { enumerable: true, get: function () { return __importDefault(Table_1).default; } });
|
|
51
|
-
var
|
|
52
|
-
Object.defineProperty(exports, "Topper", { enumerable: true, get: function () { return __importDefault(Topper_1).default; } });
|
|
53
|
-
var Tweet_1 = require("./components/Tweet");
|
|
53
|
+
var Tweet_1 = require("./components/content-tree/Tweet");
|
|
54
54
|
Object.defineProperty(exports, "Tweet", { enumerable: true, get: function () { return __importDefault(Tweet_1).default; } });
|
|
55
|
-
var Video_1 = require("./components/Video");
|
|
55
|
+
var Video_1 = require("./components/content-tree/Video");
|
|
56
56
|
Object.defineProperty(exports, "Video", { enumerable: true, get: function () { return __importDefault(Video_1).default; } });
|
|
57
|
-
var YoutubeVideo_1 = require("./components/YoutubeVideo");
|
|
57
|
+
var YoutubeVideo_1 = require("./components/content-tree/YoutubeVideo");
|
|
58
58
|
Object.defineProperty(exports, "YoutubeVideo", { enumerable: true, get: function () { return __importDefault(YoutubeVideo_1).default; } });
|
|
59
59
|
var BasicComponents_1 = require("./components/RichText/BasicComponents");
|
|
60
60
|
Object.defineProperty(exports, "List", { enumerable: true, get: function () { return BasicComponents_1.List; } });
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAiE;AAAxD,2HAAA,OAAO,OAAe;AAC/B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAiE;AAAxD,2HAAA,OAAO,OAAe;AAC/B,8CAAuD;AAA9C,iHAAA,OAAO,OAAU;AAC1B,gEAA8D;AAArD,kHAAA,eAAe,OAAA;AACxB,oDAA6D;AAApD,uHAAA,OAAO,OAAa;AAC7B,8CAAuD;AAA9C,iHAAA,OAAO,OAAU;AAE1B,0CAAmD;AAA1C,6GAAA,OAAO,OAAQ;AACxB,wEAAiF;AAAxE,2HAAA,OAAO,OAAe;AAC/B,0EAAmF;AAA1E,6HAAA,OAAO,OAAg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ip';
|
|
3
|
+
import ClipServer from '../components/content-tree/Clip';
|
|
4
4
|
import './Clip.stories.scss';
|
|
5
|
-
import { ClipProps } from '../components/Clip/template/component';
|
|
5
|
+
import { ClipProps } from '../components/content-tree/Clip/template/component';
|
|
6
6
|
declare const _default: {
|
|
7
7
|
title: string;
|
|
8
8
|
component: React.FC<ClipProps>;
|
|
@@ -28,8 +28,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.ThumbnailClip = exports.NoDataSource = exports.InlineAutoplay = exports.InlineLandscape = exports.InlineSquare = exports.Inline = void 0;
|
|
30
30
|
const react_1 = __importStar(require("react"));
|
|
31
|
-
const Clip_1 = __importDefault(require("../components/Clip"));
|
|
32
|
-
const client_1 = __importDefault(require("../components/Clip/client"));
|
|
31
|
+
const Clip_1 = __importDefault(require("../components/content-tree/Clip"));
|
|
32
|
+
const client_1 = __importDefault(require("../components/content-tree/Clip/client"));
|
|
33
33
|
const main_1 = __importDefault(require("@financial-times/o-tracking/main"));
|
|
34
34
|
require("./Clip.stories.scss");
|
|
35
35
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Clip.stories.js","sourceRoot":"","sources":["../../src/stories/Clip.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,
|
|
1
|
+
{"version":3,"file":"Clip.stories.js","sourceRoot":"","sources":["../../src/stories/Clip.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAwC;AAGxC,2EAAwD;AACxD,oFAA+D;AAC/D,4EAAwD;AACxD,+BAA4B;AAG5B,qGAAqG;AACrG,kBAAe;IACb,KAAK,EAAE,MAAM;IACb,SAAS,EAAE,cAAU;IACrB,IAAI,EAAE,CAAC,UAAU,CAAC;IACl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,MAAM,EACJ,wGAAwG;aAC3G;SACF;QACD,UAAU,EAAE,EAAE;QACd,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,IAAI;QACV,KAAK,EAAE,IAAI;QACX,OAAO,EAAE,IAAI;QACb,MAAM,EACJ,wGAAwG;QAC1G,aAAa,EAAE,0BAA0B;QACzC,IAAI,EAAE,UAAU;KACjB;CACF,CAAA"}
|
|
@@ -33,7 +33,7 @@ const client_1 = require("../components/Expander/client");
|
|
|
33
33
|
const react_1 = __importStar(require("react"));
|
|
34
34
|
const main_1 = __importDefault(require("@financial-times/o-tracking/main"));
|
|
35
35
|
require("./Expander.stories.scss");
|
|
36
|
-
const client_2 = __importDefault(require("../components/Clip/client"));
|
|
36
|
+
const client_2 = __importDefault(require("../components/content-tree/Clip/client"));
|
|
37
37
|
const RichText_1 = __importDefault(require("../components/RichText"));
|
|
38
38
|
const structuredContent = {
|
|
39
39
|
tree: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expander.stories.js","sourceRoot":"","sources":["../../src/stories/Expander.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,qDAAsE;AACtE,0DAA8D;AAC9D,+CAAwC;AACxC,4EAAwD;AACxD,mCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"Expander.stories.js","sourceRoot":"","sources":["../../src/stories/Expander.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,qDAAsE;AACtE,0DAA8D;AAC9D,+CAAwC;AACxC,4EAAwD;AACxD,mCAAgC;AAChC,oFAA+D;AAC/D,sEAA6C;AAK7C,MAAM,iBAAiB,GAAG;IACxB,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,WAAW;gBACjB,EAAE,EAAE,gEAAgE;gBACpE,I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AUtB;AAED,kBAAU,CAAC,IAAI,GAAG,EAAE,GAAG,SAAS,EAAE,CAAA;AAErB,QAAA,oBAAoB,GAAG,kBAAU,CAAA;AAC9C,4BAAoB,CAAC,IAAI,GAAG,EAAE,GAAG,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA;AAEjD,QAAA,gBAAgB,GAAG,kBAAU,CAAA;AAC1C,wBAAgB,CAAC,IAAI,GAAG,EAAE,GAAG,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,CAAA;AAEnD,MAAM,cAAc,GAAG,CAAC,IAAS,EAAE,EAAE;IAC1C,OAAO,IAAA,kBAAU,EAAC;QAChB,GAAG,IAAI;QACP,iBAAiB,EAAE,+BAA+B;KACnD,CAAC,CAAA;AACJ,CAAC,CAAA;AALY,QAAA,cAAc,kBAK1B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/cp-content-pipeline-ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"@financial-times/o-colors": "^6.6.2",
|
|
22
22
|
"@financial-times/o-grid": "^6.1.5",
|
|
23
23
|
"@financial-times/o-icons": "^7.7.0",
|
|
24
|
-
"@financial-times/o-message": "^5.4.4",
|
|
25
24
|
"@financial-times/o-share": "^10.0.1",
|
|
26
25
|
"@financial-times/o-spacing": "^3.2.3",
|
|
27
26
|
"@financial-times/o-tracking": "^4.5.0",
|
package/src/client.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as Clip } from './components/Clip/client/index'
|
|
1
|
+
export { default as Clip } from './components/content-tree/Clip/client/index'
|
|
2
2
|
export { default as BackToTopButton } from './components/BackToTopButton/client'
|
|
3
|
-
export { default as FlourishSSREmbed } from './components/Flourish/client/index'
|
|
3
|
+
export { default as FlourishSSREmbed } from './components/content-tree/Flourish/client/index'
|
|
4
4
|
export { TopperTracker } from './components/Topper/client/index'
|
|
5
|
-
export { default as CustomCodeComponentClient } from './components/CustomCodeComponent/client/index'
|
|
5
|
+
export { default as CustomCodeComponentClient } from './components/content-tree/CustomCodeComponent/client/index'
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React, { JSXElementConstructor } from 'react'
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
|
|
3
|
+
import ArticleBody from '../body-components/ArticleBody'
|
|
4
|
+
import LiveBlogBody from '../body-components/LiveBlogBody'
|
|
5
|
+
import PodcastBody from '../body-components/PodcastBody'
|
|
6
|
+
import ContentPackageBody from '../body-components/ContentPackageBody'
|
|
7
|
+
|
|
6
8
|
import type { ArticleQuery } from '@financial-times/cp-content-pipeline-client'
|
|
7
9
|
import type { RichTextComponentMapRecord } from '../RichText'
|
|
8
10
|
|
|
@@ -3,7 +3,7 @@ import { StructuredTreeFragment } from '@financial-times/cp-content-pipeline-cli
|
|
|
3
3
|
|
|
4
4
|
import RichText from '../RichText'
|
|
5
5
|
import { ContentProps } from '../types'
|
|
6
|
-
import * as ComponentWorkarounds from '../Workarounds'
|
|
6
|
+
import * as ComponentWorkarounds from '../content-tree/Workarounds'
|
|
7
7
|
|
|
8
8
|
type BylineProps = {
|
|
9
9
|
showEditedBy: boolean
|
|
@@ -49,9 +49,6 @@ class BaseLiveBlogWrapper extends Component<
|
|
|
49
49
|
state: LiveBlogWrapperState = {}
|
|
50
50
|
|
|
51
51
|
componentDidUpdate() {
|
|
52
|
-
if (this.props.posts && this.props.posts.length && !this.state.tracker) {
|
|
53
|
-
this.setUp()
|
|
54
|
-
}
|
|
55
52
|
if (
|
|
56
53
|
this.state.tracker &&
|
|
57
54
|
this.props.posts.length !== this.state.postCount
|
|
@@ -67,6 +64,12 @@ class BaseLiveBlogWrapper extends Component<
|
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
66
|
|
|
67
|
+
componentDidMount() {
|
|
68
|
+
if (this.props.posts && this.props.posts.length && !this.state.tracker) {
|
|
69
|
+
this.setUp()
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
70
73
|
setUp() {
|
|
71
74
|
const { onEntersViewport, onRead, onError, usePostTracker } =
|
|
72
75
|
this.props.postTrackerConfig || {}
|
|
@@ -3,9 +3,9 @@ import type {
|
|
|
3
3
|
ArticleQuery,
|
|
4
4
|
MainImageFragment,
|
|
5
5
|
} from '@financial-times/cp-content-pipeline-client'
|
|
6
|
-
import ImageSet, { FallbackImage } from '../ImageSet/index'
|
|
6
|
+
import ImageSet, { FallbackImage } from '../content-tree/ImageSet/index'
|
|
7
7
|
import { ContentTree } from '@financial-times/content-tree'
|
|
8
|
-
import type * as ComponentWorkarounds from '../Workarounds'
|
|
8
|
+
import type * as ComponentWorkarounds from '../content-tree/Workarounds'
|
|
9
9
|
|
|
10
10
|
type MainImageProps = {
|
|
11
11
|
content: ArticleQuery['content']
|
|
@@ -1,23 +1,34 @@
|
|
|
1
|
-
import type { ContentTree } from '@financial-times/content-tree'
|
|
2
1
|
import React, {
|
|
3
2
|
useContext,
|
|
4
3
|
JSXElementConstructor,
|
|
5
4
|
ReactNode,
|
|
6
5
|
createContext,
|
|
7
6
|
} from 'react'
|
|
8
|
-
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
7
|
+
|
|
8
|
+
import type { ContentTree } from '@financial-times/content-tree'
|
|
9
|
+
import Recommended from '../content-tree/Recommended'
|
|
10
|
+
import ImageSet, { FallbackImage } from '../content-tree/ImageSet'
|
|
11
|
+
import { Layout, LayoutSlot } from '../content-tree/Layout'
|
|
12
|
+
import Pullquote from '../content-tree/Pullquote'
|
|
13
|
+
import Tweet from '../content-tree/Tweet'
|
|
14
|
+
import Flourish from '../content-tree/Flourish'
|
|
15
|
+
import Heading from '../content-tree/Heading'
|
|
16
|
+
import BigNumber from '../content-tree/BigNumber'
|
|
17
|
+
import Video from '../content-tree/Video'
|
|
18
|
+
import Table from '../content-tree/Table'
|
|
19
|
+
import Clip from '../content-tree/Clip'
|
|
20
|
+
import Paragraph from '../content-tree/Paragraph'
|
|
21
|
+
import TableBody from '../content-tree/Table/TableBody'
|
|
22
|
+
import { TableCell } from '../content-tree/Table/TableCell'
|
|
23
|
+
import {
|
|
24
|
+
ScrollyBlock,
|
|
25
|
+
ScrollyCopy,
|
|
26
|
+
ScrollyHeading,
|
|
27
|
+
ScrollySection,
|
|
28
|
+
} from '../content-tree/Scrollytelling'
|
|
29
|
+
import { ScrollyImage } from '../content-tree/Scrollytelling/ScrollyImage'
|
|
30
|
+
import YoutubeVideo from '../content-tree/YoutubeVideo'
|
|
31
|
+
import CustomCodeComponent from '../content-tree/CustomCodeComponent'
|
|
21
32
|
|
|
22
33
|
import {
|
|
23
34
|
List,
|
|
@@ -40,19 +51,9 @@ import type {
|
|
|
40
51
|
StructuredContentFragment,
|
|
41
52
|
ReferenceMapping,
|
|
42
53
|
} from '@financial-times/cp-content-pipeline-client'
|
|
43
|
-
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
44
|
-
import { mapNodeToReference } from '@financial-times/cp-content-pipeline-schema/lib/resolvers/content-tree/references'
|
|
45
|
-
import
|
|
46
|
-
import { TableCell } from '../Table/TableCell'
|
|
47
|
-
import {
|
|
48
|
-
ScrollyBlock,
|
|
49
|
-
ScrollyCopy,
|
|
50
|
-
ScrollyHeading,
|
|
51
|
-
ScrollySection,
|
|
52
|
-
} from '../Scrollytelling'
|
|
53
|
-
import { ScrollyImage } from '../Scrollytelling/ScrollyImage'
|
|
54
|
-
import YoutubeVideo from '../YoutubeVideo'
|
|
55
|
-
import { ContentProps } from '../types'
|
|
54
|
+
import type { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
55
|
+
import type { mapNodeToReference } from '@financial-times/cp-content-pipeline-schema/lib/resolvers/content-tree/references'
|
|
56
|
+
import type { ContentProps } from '../types'
|
|
56
57
|
|
|
57
58
|
import RichTextContext from './context'
|
|
58
59
|
|
|
@@ -2,7 +2,11 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import type { TopperFragment } from '@financial-times/cp-content-pipeline-client'
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
AliasedBreakpoints,
|
|
7
|
+
BreakpointGetter,
|
|
8
|
+
Sources,
|
|
9
|
+
} from '../content-tree/ImageSet'
|
|
6
10
|
import { PictureOverrideWrapper } from '../ImageOverrideWrappers'
|
|
7
11
|
import { ContentTree } from '@financial-times/content-tree'
|
|
8
12
|
|
|
@@ -8,7 +8,7 @@ import Headshot from '../Headshot'
|
|
|
8
8
|
import Columnist from './Columnist'
|
|
9
9
|
import LiveBlogIndicator from './LiveBlogIndicator'
|
|
10
10
|
import { FollowButtonSlot } from './FollowButtonSlot'
|
|
11
|
-
import Flourish from '../Flourish'
|
|
11
|
+
import Flourish from '../content-tree/Flourish'
|
|
12
12
|
import classnames from 'classnames'
|
|
13
13
|
import type { ArticleQuery } from '@financial-times/cp-content-pipeline-client'
|
|
14
14
|
import PartnerContentHeader from '../PartnerContentHeader'
|
|
@@ -48,6 +48,7 @@ const Topper: React.FC<TopperProps> = ({
|
|
|
48
48
|
const hasDesign = 'design' in topper && topper.design
|
|
49
49
|
const hasHeadshot = 'headshot' in topper && topper.headshot
|
|
50
50
|
const hasColumnist = 'columnist' in topper && !!topper.columnist
|
|
51
|
+
const sponsorName = 'clientName' in content && content.clientName
|
|
51
52
|
|
|
52
53
|
const modifiers: string[] = []
|
|
53
54
|
|
|
@@ -92,7 +93,9 @@ const Topper: React.FC<TopperProps> = ({
|
|
|
92
93
|
return (
|
|
93
94
|
<Fragment>
|
|
94
95
|
{/** TODO: make the name dynamic when upstream is ready */}
|
|
95
|
-
{isPartnerContent &&
|
|
96
|
+
{isPartnerContent && (
|
|
97
|
+
<PartnerContentHeader name={sponsorName || 'Sponsor'} />
|
|
98
|
+
)}
|
|
96
99
|
<div
|
|
97
100
|
className={classnames({
|
|
98
101
|
'article-topper': true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import RichText, { ComponentsContext } from '
|
|
3
|
-
import type { BodyProps } from '
|
|
2
|
+
import RichText, { ComponentsContext } from '../../RichText'
|
|
3
|
+
import type { BodyProps } from '../../Body'
|
|
4
4
|
|
|
5
5
|
const ArticleBody: React.FC<BodyProps> = ({ content, richTextComponents }) => {
|
|
6
6
|
if (!content?.body?.structured) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import { ComponentsContext } from '
|
|
3
|
-
import type { BodyProps } from '
|
|
2
|
+
import { ComponentsContext } from '../../RichText'
|
|
3
|
+
import type { BodyProps } from '../../Body'
|
|
4
4
|
import {
|
|
5
5
|
presets,
|
|
6
6
|
Teaser as TeaserComponent,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import type { BodyProps } from '
|
|
3
|
-
import { ComponentsContext } from '
|
|
4
|
-
import { LiveBlogWrapper } from '
|
|
2
|
+
import type { BodyProps } from '../../Body'
|
|
3
|
+
import { ComponentsContext } from '../../RichText'
|
|
4
|
+
import { LiveBlogWrapper } from '../../LiveBlogWrapper'
|
|
5
5
|
|
|
6
6
|
//TODO: CI-1975 remove "any" types
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
VideoDescription,
|
|
6
6
|
Caption,
|
|
7
7
|
} from './index'
|
|
8
|
-
import { FixedAspectRatio } from '
|
|
8
|
+
import { FixedAspectRatio } from '../../../FixedAspectRatio/FixedAspectRatio'
|
|
9
9
|
import type * as ComponentWorkarounds from '../../Workarounds'
|
|
10
10
|
|
|
11
11
|
interface ClipTagProps {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { ClipTag, ContentLayout, Container } from '../components'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../../types'
|
|
4
4
|
import type * as ComponentWorkarounds from '../../Workarounds'
|
|
5
5
|
|
|
6
6
|
type Preset = 'full-player' | 'thumbnail'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
|
-
import Message from '
|
|
2
|
+
import Message from '../../Message'
|
|
3
3
|
import { Layout } from '../Layout'
|
|
4
|
-
import RichText from '
|
|
5
|
-
import { ContentProps } from '
|
|
4
|
+
import RichText from '../../RichText'
|
|
5
|
+
import { ContentProps } from '../../types'
|
|
6
6
|
import * as ComponentWorkarounds from '../Workarounds'
|
|
7
7
|
|
|
8
8
|
interface CustomCodeComponentProps
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import classnames from 'classnames'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../types'
|
|
4
4
|
import { ContentTreeWorkarounds } from '@financial-times/cp-content-pipeline-schema'
|
|
5
|
-
import Message from '
|
|
5
|
+
import Message from '../../Message'
|
|
6
6
|
|
|
7
7
|
interface FlourishProps extends ContentProps<ContentTreeWorkarounds.Flourish> {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
iFrame?: boolean
|
|
9
|
+
inArticleBody?: boolean
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
const Flourish: React.FC<FlourishProps> = ({
|
|
13
|
-
|
|
13
|
+
content: { id, flourishType, description, layoutWidth, fallbackImage },
|
|
14
14
|
iFrame = false,
|
|
15
15
|
inArticleBody = true,
|
|
16
16
|
}) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import type { ContentTree } from '@financial-times/content-tree'
|
|
3
|
-
import { ContentProps } from '
|
|
3
|
+
import { ContentProps } from '../../types'
|
|
4
4
|
|
|
5
5
|
const Heading: React.FC<
|
|
6
6
|
React.PropsWithChildren<ContentProps<ContentTree.Heading>>
|
|
@@ -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> {}
|