@financial-times/n-conversion-forms 28.0.1 → 28.1.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.
@@ -15,7 +15,7 @@
15
15
  "classnames": "2.3.1",
16
16
  "fetchres": "1.7.2",
17
17
  "lodash.get": "4.4.2",
18
- "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.8.1"
18
+ "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.8.2"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@babel/cli": "^7.10.5",
@@ -51372,7 +51372,7 @@
51372
51372
  },
51373
51373
  "n-common-static-data": {
51374
51374
  "version": "git+ssh://git@github.com/Financial-Times/n-common-static-data.git#bc4ac35d786ed747f026a5e131dd1ce80d746d6a",
51375
- "from": "n-common-static-data@github:Financial-Times/n-common-static-data#v1.8.1"
51375
+ "from": "n-common-static-data@github:Financial-Times/n-common-static-data#v1.8.2"
51376
51376
  },
51377
51377
  "nan": {
51378
51378
  "version": "2.15.0",
@@ -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="2018">
75
- 2018
76
- </option>
77
74
  <option value="2019">
78
75
  2019
79
76
  </option>
@@ -98,6 +95,9 @@ exports[`GraduationDate renders with default props 1`] = `
98
95
  <option value="2026">
99
96
  2026
100
97
  </option>
98
+ <option value="2027">
99
+ 2027
100
+ </option>
101
101
  </select>
102
102
  </span>
103
103
  </div>
@@ -0,0 +1,3 @@
1
+ import { billingCountries } from 'n-common-static-data';
2
+
3
+ export { billingCountries };
@@ -0,0 +1,3 @@
1
+ import { demographics } from 'n-common-static-data';
2
+
3
+ export { demographics };
package/helpers/index.js CHANGED
@@ -12,4 +12,6 @@ module.exports = {
12
12
  .supportedPostcodeValidators,
13
13
  allSupportedPostcodeExamples: require('./supportedPostcodeExamples')
14
14
  .allSupportedPostcodeExamples,
15
+ demographics: require('./demographics').demographics,
16
+ billingCountries: require('./billing-countries').billingCountries,
15
17
  };
@@ -8,4 +8,46 @@ describe('helpers', () => {
8
8
  it('exports a "ncf-countries" helper', () => {
9
9
  expect(helpers).toHaveProperty('ncf-countries');
10
10
  });
11
+
12
+ it('export billingCountries', () => {
13
+ expect(helpers).toHaveProperty('billingCountries');
14
+ expect(helpers['billingCountries']).toHaveProperty('countries');
15
+ });
16
+
17
+ it('export demographics', () => {
18
+ expect(helpers).toHaveProperty('demographics');
19
+ expect(helpers['demographics']).toHaveProperty('industries');
20
+ });
21
+
22
+ it('export cemeaV1ISO', () => {
23
+ expect(helpers).toHaveProperty('cemeaV1ISO');
24
+ });
25
+
26
+ it('export cemeaV2ISO', () => {
27
+ expect(helpers).toHaveProperty('cemeaV2ISO');
28
+ });
29
+
30
+ it('export apacISO', () => {
31
+ expect(helpers).toHaveProperty('apacISO');
32
+ });
33
+
34
+ it('export identifyFTShippingZone', () => {
35
+ expect(helpers).toHaveProperty('identifyFTShippingZone');
36
+ });
37
+
38
+ it('export countriesSupported', () => {
39
+ expect(helpers).toHaveProperty('countriesSupported');
40
+ });
41
+
42
+ it('export countriesSupportedISO', () => {
43
+ expect(helpers).toHaveProperty('countriesSupportedISO');
44
+ });
45
+
46
+ it('export supportedPostcodeValidators', () => {
47
+ expect(helpers).toHaveProperty('supportedPostcodeValidators');
48
+ });
49
+
50
+ it('export allSupportedPostcodeExamples', () => {
51
+ expect(helpers).toHaveProperty('allSupportedPostcodeExamples');
52
+ });
11
53
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "28.0.1",
3
+ "version": "28.1.0",
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": {
@@ -30,7 +30,7 @@
30
30
  "classnames": "2.3.1",
31
31
  "fetchres": "1.7.2",
32
32
  "lodash.get": "4.4.2",
33
- "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.8.1"
33
+ "n-common-static-data": "github:Financial-Times/n-common-static-data#v1.8.2"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@babel/cli": "^7.10.5",