@financial-times/n-conversion-forms 32.7.1 → 32.9.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/.eslintignore CHANGED
@@ -2,5 +2,9 @@
2
2
  /dist
3
3
  /.eslintrc.js
4
4
  /public
5
- secret-squirrel.js
6
- secret-squirrel.cjs
5
+ package-lock.json
6
+ *.json
7
+ *.sh
8
+ .*
9
+ *.feature
10
+ /docs
package/.prettierignore CHANGED
@@ -11,6 +11,7 @@ node_modules
11
11
 
12
12
  /coverage
13
13
  /pa11y-screen-capture
14
+ /docs
14
15
 
15
16
  *.json
16
17
  *.sh
package/.toolkitrc.yml CHANGED
@@ -4,9 +4,9 @@ plugins:
4
4
  - "@dotcom-tool-kit/jest"
5
5
  - "@dotcom-tool-kit/eslint"
6
6
  - "@dotcom-tool-kit/prettier"
7
- - "@dotcom-tool-kit/lint-staged"
7
+ - "@dotcom-tool-kit/lint-staged-npm"
8
8
  - "@dotcom-tool-kit/husky-npm"
9
- - './toolkit/run-storybook'
9
+ - "./toolkit/run-storybook"
10
10
  hooks:
11
11
  test:local:
12
12
  - Eslint
@@ -15,10 +15,16 @@ hooks:
15
15
  - Eslint
16
16
  - JestCI
17
17
  run:local:
18
- - RunStorybook
18
+ - RunStorybook
19
19
  options:
20
20
  "@dotcom-tool-kit/circleci":
21
21
  nodeVersion: 18.17-browsers
22
22
  "@dotcom-tool-kit/babel":
23
23
  files: "components/{*.jsx,index.js}"
24
24
  outputPath: dist
25
+ "@dotcom-tool-kit/lint-staged-npm":
26
+ testGlob: "**/*.{js,jsx,json,scss}"
27
+ formatGlob: "**/*.{js,jsx,json,scss}"
28
+ "@dotcom-tool-kit/prettier":
29
+ files: ["**/*.{js,jsx,json,scss}"]
30
+ configFile: ".prettierrc.js"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-conversion-forms",
4
- "version": "64c8238a85ab0f09e65f80fecba05df4495eee1f",
5
- "tag": "v32.7.1"
4
+ "version": "69b63baab3896624c51a78b1171792e6e67adaaf",
5
+ "tag": "v32.9.0"
6
6
  }
@@ -1,5 +1,59 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`Confirmation renders appropriately if is 'Termed' subscription term type 1`] = `
4
+ <div class="ncf ncf__wrapper">
5
+ <div class="ncf__center">
6
+ <div class="ncf__icon ncf__icon--tick ncf__icon--large">
7
+ </div>
8
+ <p class="ncf__paragraph--reduced-padding ncf__paragraph--subscription-confirmation">
9
+ You are now subscribed to:
10
+ </p>
11
+ <h1 class="ncf__header ncf__header--confirmation">
12
+ </h1>
13
+ </div>
14
+ <p class="ncf__paragraph">
15
+ We’ve sent confirmation to your email. Make sure you check your spam folder if you don’t receive it.
16
+ </p>
17
+ <p class="ncf__paragraph">
18
+ Here’s a summary of your subscription:
19
+ </p>
20
+ <div class="ncf__headed-paragraph">
21
+ <h3 class="ncf__header">
22
+ Something not right?
23
+ </h3>
24
+ <p class="ncf__paragraph">
25
+ Go to your
26
+ <a class="ncf__link ncf__link--external"
27
+ href="https://www.ft.com/myaccount/personal-details"
28
+ target="_blank"
29
+ rel="noopener noreferrer"
30
+ data-trackable="yourAccount"
31
+ >
32
+ account settings
33
+ </a>
34
+ to view or edit your account. If you need to get in touch call us on
35
+ <a href="tel:+442077556248"
36
+ class="ncf__link ncf__link--external"
37
+ >
38
+ +44 (0) 207 755 6248
39
+ </a>
40
+ . Or contact us for additional support.
41
+ </p>
42
+ </div>
43
+ <p class="ncf__paragraph">
44
+ See our
45
+ <a class="ncf__link ncf__link--external"
46
+ href="http://help.ft.com/help/legal-privacy/terms-conditions/"
47
+ target="_top"
48
+ rel="noopener"
49
+ >
50
+ Terms &amp; Conditions
51
+ </a>
52
+ for details on how to cancel.
53
+ </p>
54
+ </div>
55
+ `;
56
+
3
57
  exports[`Confirmation renders appropriately if is B2C Partnership 1`] = `
4
58
  <div class="ncf ncf__wrapper">
5
59
  <div class="ncf__center">
@@ -71,9 +71,6 @@ exports[`GraduationDate renders with default props 1`] = `
71
71
  name="graduationDateYear"
72
72
  aria-required="false"
73
73
  >
74
- <option value="2019">
75
- 2019
76
- </option>
77
74
  <option value="2020">
78
75
  2020
79
76
  </option>
@@ -98,6 +95,9 @@ exports[`GraduationDate renders with default props 1`] = `
98
95
  <option value="2027">
99
96
  2027
100
97
  </option>
98
+ <option value="2028">
99
+ 2028
100
+ </option>
101
101
  </select>
102
102
  </span>
103
103
  </div>