@financial-times/cp-content-pipeline-ui 9.12.1 → 9.14.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 +40 -0
- package/lib/components/ContentLayout/index.d.ts +25 -0
- package/lib/components/ContentLayout/index.js +34 -0
- package/lib/components/ContentLayout/index.js.map +1 -0
- package/lib/components/ContentLayout/test/index.spec.d.ts +1 -0
- package/lib/components/ContentLayout/test/index.spec.js +57 -0
- package/lib/components/ContentLayout/test/index.spec.js.map +1 -0
- package/lib/components/ContentLayout/test/snapshot.spec.d.ts +1 -0
- package/lib/components/ContentLayout/test/snapshot.spec.js +33 -0
- package/lib/components/ContentLayout/test/snapshot.spec.js.map +1 -0
- package/lib/components/RichText/index.js +4 -0
- package/lib/components/RichText/index.js.map +1 -1
- package/lib/components/content-tree/Clip/components/index.d.ts +0 -2
- package/lib/components/content-tree/Clip/components/index.js +1 -5
- package/lib/components/content-tree/Clip/components/index.js.map +1 -1
- package/lib/components/content-tree/Clip/template/component.d.ts +1 -1
- package/lib/components/content-tree/Clip/template/component.js +3 -3
- package/lib/components/content-tree/Clip/template/component.js.map +1 -1
- package/lib/components/content-tree/Clip/test/snapshot.spec.js +26 -0
- package/lib/components/content-tree/Clip/test/snapshot.spec.js.map +1 -1
- package/lib/components/content-tree/Timeline/TimelineEvent.d.ts +7 -0
- package/lib/components/content-tree/Timeline/TimelineEvent.js +17 -0
- package/lib/components/content-tree/Timeline/TimelineEvent.js.map +1 -0
- package/lib/components/content-tree/Timeline/index.d.ts +6 -0
- package/lib/components/content-tree/Timeline/index.js +17 -0
- package/lib/components/content-tree/Timeline/index.js.map +1 -0
- package/lib/components/content-tree/Timeline/test/TimelineEvent.spec.d.ts +1 -0
- package/lib/components/content-tree/Timeline/test/TimelineEvent.spec.js +48 -0
- package/lib/components/content-tree/Timeline/test/TimelineEvent.spec.js.map +1 -0
- package/lib/components/content-tree/Timeline/test/snapshot.spec.d.ts +1 -0
- package/lib/components/content-tree/Timeline/test/snapshot.spec.js +17 -0
- package/lib/components/content-tree/Timeline/test/snapshot.spec.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/main.scss +1 -0
- package/package.json +6 -6
- package/src/components/ContentLayout/index.tsx +87 -0
- package/src/components/ContentLayout/test/__snapshots__/index.spec.tsx.snap +96 -0
- package/src/components/ContentLayout/test/__snapshots__/snapshot.spec.tsx.snap +80 -0
- package/src/components/ContentLayout/test/index.spec.tsx +81 -0
- package/src/components/ContentLayout/test/snapshot.spec.tsx +47 -0
- package/src/components/RichText/index.tsx +4 -0
- package/src/components/content-tree/Clip/components/index.tsx +0 -2
- package/src/components/content-tree/Clip/template/component.tsx +23 -24
- package/src/components/content-tree/Clip/test/__snapshots__/snapshot.spec.tsx.snap +277 -0
- package/src/components/content-tree/Clip/test/snapshot.spec.tsx +40 -0
- package/src/components/content-tree/Timeline/TimelineEvent.tsx +25 -0
- package/src/components/content-tree/Timeline/client/main.scss +55 -0
- package/src/components/content-tree/Timeline/index.tsx +19 -0
- package/src/components/content-tree/Timeline/test/TimelineEvent.spec.tsx +66 -0
- package/src/components/content-tree/Timeline/test/__snapshots__/TimelineEvent.spec.tsx.snap +94 -0
- package/src/components/content-tree/Timeline/test/__snapshots__/snapshot.spec.tsx.snap +20 -0
- package/src/components/content-tree/Timeline/test/snapshot.spec.tsx +15 -0
- package/src/index.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/lib/components/content-tree/Clip/components/Container.d.ts +0 -6
- package/lib/components/content-tree/Clip/components/Container.js +0 -13
- package/lib/components/content-tree/Clip/components/Container.js.map +0 -1
- package/lib/components/content-tree/Clip/components/ContentLayout.d.ts +0 -6
- package/lib/components/content-tree/Clip/components/ContentLayout.js +0 -13
- package/lib/components/content-tree/Clip/components/ContentLayout.js.map +0 -1
- package/src/components/content-tree/Clip/components/Container.tsx +0 -32
- package/src/components/content-tree/Clip/components/ContentLayout.tsx +0 -18
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Container = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const Container = ({ dataLayout, children, }) => {
|
|
9
|
-
return dataLayout === 'full-grid' ? (react_1.default.createElement("div", { className: "n-content-layout__container", "data-component": "clip-set" }, children)) : dataLayout === 'mid-grid' ? (react_1.default.createElement("div", { className: "n-content-layout__container", "data-component": "clip-set" },
|
|
10
|
-
react_1.default.createElement("div", { "data-o-grid-colspan": "12 S12 M12 L10 XL10", className: "n-content-layout__container--mid-grid" }, children))) : (react_1.default.createElement("div", { className: "n-content-layout__container--in-line", "data-component": "clip-set" }, children));
|
|
11
|
-
};
|
|
12
|
-
exports.Container = Container;
|
|
13
|
-
//# sourceMappingURL=Container.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../../src/components/content-tree/Clip/components/Container.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAMlB,MAAM,SAAS,GAAsD,CAAC,EAC3E,UAAU,EACV,QAAQ,GACT,EAAE,EAAE;IACH,OAAO,UAAU,KAAK,WAAW,CAAC,CAAC,CAAC,CAClC,uCAAK,SAAS,EAAC,6BAA6B,oBAAgB,UAAU,IACnE,QAAQ,CACL,CACP,CAAC,CAAC,CAAC,UAAU,KAAK,UAAU,CAAC,CAAC,CAAC,CAC9B,uCAAK,SAAS,EAAC,6BAA6B,oBAAgB,UAAU;QACpE,8DACsB,qBAAqB,EACzC,SAAS,EAAC,uCAAuC,IAEhD,QAAQ,CACL,CACF,CACP,CAAC,CAAC,CAAC,CACF,uCACE,SAAS,EAAC,sCAAsC,oBACjC,UAAU,IAExB,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAA;AAzBY,QAAA,SAAS,aAyBrB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ContentLayout = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
// data-layout-width='full-grid' prevent clashes with ads and share bar
|
|
9
|
-
const ContentLayout = ({ dataLayout, children }) => {
|
|
10
|
-
return dataLayout !== 'in-line' ? (react_1.default.createElement("div", { className: "n-content-layout", "data-layout-width": "full-grid" }, children)) : (react_1.default.createElement(react_1.default.Fragment, null, children));
|
|
11
|
-
};
|
|
12
|
-
exports.ContentLayout = ContentLayout;
|
|
13
|
-
//# sourceMappingURL=ContentLayout.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentLayout.js","sourceRoot":"","sources":["../../../../../src/components/content-tree/Clip/components/ContentLayout.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAMzB,uEAAuE;AAChE,MAAM,aAAa,GAEtB,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC/B,OAAO,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,CAChC,uCAAK,SAAS,EAAC,kBAAkB,uBAAmB,WAAW,IAC5D,QAAQ,CACL,CACP,CAAC,CAAC,CAAC,CACF,8DAAG,QAAQ,CAAI,CAChB,CAAA;AACH,CAAC,CAAA;AAVY,QAAA,aAAa,iBAUzB"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
interface ContainerProps {
|
|
4
|
-
dataLayout: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const Container: React.FC<React.PropsWithChildren<ContainerProps>> = ({
|
|
8
|
-
dataLayout,
|
|
9
|
-
children,
|
|
10
|
-
}) => {
|
|
11
|
-
return dataLayout === 'full-grid' ? (
|
|
12
|
-
<div className="n-content-layout__container" data-component="clip-set">
|
|
13
|
-
{children}
|
|
14
|
-
</div>
|
|
15
|
-
) : dataLayout === 'mid-grid' ? (
|
|
16
|
-
<div className="n-content-layout__container" data-component="clip-set">
|
|
17
|
-
<div
|
|
18
|
-
data-o-grid-colspan="12 S12 M12 L10 XL10"
|
|
19
|
-
className="n-content-layout__container--mid-grid"
|
|
20
|
-
>
|
|
21
|
-
{children}
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
) : (
|
|
25
|
-
<div
|
|
26
|
-
className="n-content-layout__container--in-line"
|
|
27
|
-
data-component="clip-set"
|
|
28
|
-
>
|
|
29
|
-
{children}
|
|
30
|
-
</div>
|
|
31
|
-
)
|
|
32
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
interface ContentLayoutProps {
|
|
4
|
-
dataLayout: string
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// data-layout-width='full-grid' prevent clashes with ads and share bar
|
|
8
|
-
export const ContentLayout: React.FC<
|
|
9
|
-
React.PropsWithChildren<ContentLayoutProps>
|
|
10
|
-
> = ({ dataLayout, children }) => {
|
|
11
|
-
return dataLayout !== 'in-line' ? (
|
|
12
|
-
<div className="n-content-layout" data-layout-width="full-grid">
|
|
13
|
-
{children}
|
|
14
|
-
</div>
|
|
15
|
-
) : (
|
|
16
|
-
<>{children}</>
|
|
17
|
-
)
|
|
18
|
-
}
|