@financial-times/n-conversion-forms 27.1.0 → 27.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.
@@ -10419,6 +10419,18 @@
10419
10419
  "url": "https://github.com/sponsors/sindresorhus"
10420
10420
  }
10421
10421
  },
10422
+ "node_modules/ansi-escapes/node_modules/type-fest": {
10423
+ "version": "0.21.3",
10424
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
10425
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
10426
+ "dev": true,
10427
+ "engines": {
10428
+ "node": ">=10"
10429
+ },
10430
+ "funding": {
10431
+ "url": "https://github.com/sponsors/sindresorhus"
10432
+ }
10433
+ },
10422
10434
  "node_modules/ansi-html": {
10423
10435
  "version": "0.0.7",
10424
10436
  "integrity": "sha1-gTWEAhliqenm/QOflA0S9WynhZ4=",
@@ -32005,9 +32017,12 @@
32005
32017
  }
32006
32018
  },
32007
32019
  "node_modules/type-fest": {
32008
- "version": "0.21.3",
32009
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
32020
+ "version": "0.13.1",
32021
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
32022
+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
32010
32023
  "dev": true,
32024
+ "optional": true,
32025
+ "peer": true,
32011
32026
  "engines": {
32012
32027
  "node": ">=10"
32013
32028
  },
@@ -41537,6 +41552,14 @@
41537
41552
  "dev": true,
41538
41553
  "requires": {
41539
41554
  "type-fest": "^0.21.3"
41555
+ },
41556
+ "dependencies": {
41557
+ "type-fest": {
41558
+ "version": "0.21.3",
41559
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",
41560
+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
41561
+ "dev": true
41562
+ }
41540
41563
  }
41541
41564
  },
41542
41565
  "ansi-html": {
@@ -58293,9 +58316,12 @@
58293
58316
  "dev": true
58294
58317
  },
58295
58318
  "type-fest": {
58296
- "version": "0.21.3",
58297
- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",
58298
- "dev": true
58319
+ "version": "0.13.1",
58320
+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz",
58321
+ "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==",
58322
+ "dev": true,
58323
+ "optional": true,
58324
+ "peer": true
58299
58325
  },
58300
58326
  "type-is": {
58301
58327
  "version": "1.6.18",
@@ -8,6 +8,7 @@ export function LicenceConfirmation ({
8
8
  isEducationalLicence = false,
9
9
  contentId = '',
10
10
  ctaElement = null,
11
+ bodyContent = null,
11
12
  }) {
12
13
  const readingLinkProps = {
13
14
  href: contentId === '' ? '/' : `/content/${contentId}`,
@@ -32,17 +33,19 @@ export function LicenceConfirmation ({
32
33
  )}
33
34
  </div>
34
35
  </div>
36
+ {
37
+ bodyContent ? bodyContent : <>
38
+ <p className="ncf__paragraph">
39
+ Go to myFT to personalise your feed &amp; follow topics &amp; articles
40
+ of interest to you. Set this up now or later.
41
+ </p>
35
42
 
36
- <p className="ncf__paragraph">
37
- Go to myFT to personalise your feed &amp; follow topics &amp; articles
38
- of interest to you. Set this up now or later.
39
- </p>
40
-
41
- <p className="ncf__paragraph">
42
- Explore the homepage &amp; enjoy your unlimited access &amp; exclusive
43
- content.
44
- </p>
45
-
43
+ <p className="ncf__paragraph">
44
+ Explore the homepage &amp; enjoy your unlimited access &amp; exclusive
45
+ content.
46
+ </p>
47
+ </>
48
+ }
46
49
  {ctaElement || (
47
50
  <p className="ncf__paragraph ncf__center">
48
51
  <a className="ncf__button ncf__button--submit" href="/myft">
@@ -65,4 +68,5 @@ LicenceConfirmation.propTypes = {
65
68
  isEducationalLicence: PropTypes.bool,
66
69
  contentId: PropTypes.string,
67
70
  ctaElement: PropTypes.node,
71
+ bodyContent: PropTypes.element,
68
72
  };
@@ -29,7 +29,9 @@ function LicenceConfirmation(_ref) {
29
29
  _ref$contentId = _ref.contentId,
30
30
  contentId = _ref$contentId === void 0 ? '' : _ref$contentId,
31
31
  _ref$ctaElement = _ref.ctaElement,
32
- ctaElement = _ref$ctaElement === void 0 ? null : _ref$ctaElement;
32
+ ctaElement = _ref$ctaElement === void 0 ? null : _ref$ctaElement,
33
+ _ref$bodyContent = _ref.bodyContent,
34
+ bodyContent = _ref$bodyContent === void 0 ? null : _ref$bodyContent;
33
35
 
34
36
  var readingLinkProps = _objectSpread({
35
37
  href: contentId === '' ? '/' : "/content/".concat(contentId),
@@ -50,11 +52,11 @@ function LicenceConfirmation(_ref) {
50
52
  className: "ncf__header ncf__header--confirmation"
51
53
  }, "Your", duration ? " ".concat(duration) : '', " trial has started") : /*#__PURE__*/_react["default"].createElement("h1", {
52
54
  className: "ncf__header ncf__header--confirmation"
53
- }, "Great news, you have joined your", ' ', isEducationalLicence ? 'school' : 'company', " licence"))), /*#__PURE__*/_react["default"].createElement("p", {
55
+ }, "Great news, you have joined your", ' ', isEducationalLicence ? 'school' : 'company', " licence"))), bodyContent ? bodyContent : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", {
54
56
  className: "ncf__paragraph"
55
57
  }, "Go to myFT to personalise your feed & follow topics & articles of interest to you. Set this up now or later."), /*#__PURE__*/_react["default"].createElement("p", {
56
58
  className: "ncf__paragraph"
57
- }, "Explore the homepage & enjoy your unlimited access & exclusive content."), ctaElement || /*#__PURE__*/_react["default"].createElement("p", {
59
+ }, "Explore the homepage & enjoy your unlimited access & exclusive content.")), ctaElement || /*#__PURE__*/_react["default"].createElement("p", {
58
60
  className: "ncf__paragraph ncf__center"
59
61
  }, /*#__PURE__*/_react["default"].createElement("a", {
60
62
  className: "ncf__button ncf__button--submit",
@@ -70,5 +72,6 @@ LicenceConfirmation.propTypes = {
70
72
  duration: _propTypes["default"].string,
71
73
  isEducationalLicence: _propTypes["default"].bool,
72
74
  contentId: _propTypes["default"].string,
73
- ctaElement: _propTypes["default"].node
75
+ ctaElement: _propTypes["default"].node,
76
+ bodyContent: _propTypes["default"].element
74
77
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "27.1.0",
3
+ "version": "27.2.1",
4
4
  "description": "Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {