@financial-times/n-conversion-forms 32.0.0 → 32.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/.eslintignore CHANGED
@@ -2,3 +2,5 @@
2
2
  /dist
3
3
  /.eslintrc.js
4
4
  /public
5
+ secret-squirrel.js
6
+ secret-squirrel.cjs
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-conversion-forms",
4
- "version": "a19d57d84173cfb0a14e4247f2cd3b902f6a338c",
5
- "tag": "v32.0.0"
4
+ "version": "2d783c38faacc8840e733178788dea18b4c1eac4",
5
+ "tag": "v32.2.0"
6
6
  }
@@ -70,7 +70,7 @@ exports[`DeliveryOption renders with a context of being single 1`] = `
70
70
  Paper vouchers
71
71
  </span>
72
72
  <div class="ncf__delivery-option__description">
73
- 13-week voucher pack delivered quarterly and redeemable at retailers nationwide. COVID-19 - make sure your preferred newsagent or retailer is open and/or delivering before you select this option.
73
+ 13-week voucher pack delivered quarterly and redeemable at retailers nationwide.
74
74
  </div>
75
75
  </span>
76
76
  </label>
@@ -85,7 +85,7 @@ exports[`DeliveryOption renders with a context of being single 1`] = `
85
85
  >
86
86
  <span class="o-forms-input__label ncf__delivery-option__label">
87
87
  <span class="ncf__delivery-option__title o-forms-title__main">
88
- Home delivery
88
+ Hand delivery
89
89
  </span>
90
90
  <div class="ncf__delivery-option__description">
91
91
  Free delivery to your home or office before 7am.
@@ -166,7 +166,7 @@ exports[`DeliveryOption renders with minimum mandatory props 1`] = `
166
166
  Paper vouchers
167
167
  </span>
168
168
  <div class="ncf__delivery-option__description">
169
- 13-week voucher pack delivered quarterly and redeemable at retailers nationwide. COVID-19 - make sure your preferred newsagent or retailer is open and/or delivering before you select this option.
169
+ 13-week voucher pack delivered quarterly and redeemable at retailers nationwide.
170
170
  </div>
171
171
  </span>
172
172
  </label>
@@ -181,7 +181,7 @@ exports[`DeliveryOption renders with minimum mandatory props 1`] = `
181
181
  >
182
182
  <span class="o-forms-input__label ncf__delivery-option__label">
183
183
  <span class="ncf__delivery-option__title o-forms-title__main">
184
- Home delivery
184
+ Hand delivery
185
185
  </span>
186
186
  <div class="ncf__delivery-option__description">
187
187
  Free delivery to your home or office before 7am.
@@ -232,7 +232,7 @@ exports[`DeliveryOption renders without unrecognised delivery options 1`] = `
232
232
  Paper vouchers
233
233
  </span>
234
234
  <div class="ncf__delivery-option__description">
235
- 13-week voucher pack delivered quarterly and redeemable at retailers nationwide. COVID-19 - make sure your preferred newsagent or retailer is open and/or delivering before you select this option.
235
+ 13-week voucher pack delivered quarterly and redeemable at retailers nationwide.
236
236
  </div>
237
237
  </span>
238
238
  </label>
@@ -247,7 +247,7 @@ exports[`DeliveryOption renders without unrecognised delivery options 1`] = `
247
247
  >
248
248
  <span class="o-forms-input__label ncf__delivery-option__label">
249
249
  <span class="ncf__delivery-option__title o-forms-title__main">
250
- Home delivery
250
+ Hand delivery
251
251
  </span>
252
252
  <div class="ncf__delivery-option__description">
253
253
  Free delivery to your home or office before 7am.
@@ -24,28 +24,28 @@ PrintProductTrial.args = {
24
24
  isTrial: true,
25
25
  };
26
26
 
27
- export const isSingleTerm = (args) => <AcceptTermsSubscription {...args} />;
27
+ export const IsSingleTerm = (args) => <AcceptTermsSubscription {...args} />;
28
28
 
29
- isSingleTerm.args = {
29
+ IsSingleTerm.args = {
30
30
  isSingleTerm: true,
31
31
  };
32
32
 
33
- export const isTransition = (args) => <AcceptTermsSubscription {...args} />;
33
+ export const IsTransition = (args) => <AcceptTermsSubscription {...args} />;
34
34
 
35
- isTransition.args = {
35
+ IsTransition.args = {
36
36
  isTransition: true,
37
37
  };
38
38
 
39
- export const transitionType = (args) => <AcceptTermsSubscription {...args} />;
39
+ export const TransitionType = (args) => <AcceptTermsSubscription {...args} />;
40
40
 
41
- transitionType.args = {
41
+ TransitionType.args = {
42
42
  transitionType: true,
43
43
  };
44
44
 
45
- export const isDeferredBilling = (args) => (
45
+ export const IsDeferredBilling = (args) => (
46
46
  <AcceptTermsSubscription {...args} />
47
47
  );
48
48
 
49
- isDeferredBilling.args = {
49
+ IsDeferredBilling.args = {
50
50
  isDeferredBilling: true,
51
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "0.0.0",
3
+ "version": "32.2.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": {
@@ -28,10 +28,10 @@ const UKDeliveryOptions = {
28
28
  PV: {
29
29
  title: 'Paper vouchers',
30
30
  description:
31
- '13-week voucher pack delivered quarterly and redeemable at retailers nationwide. COVID-19 - make sure your preferred newsagent or retailer is open and/or delivering before you select this option.',
31
+ '13-week voucher pack delivered quarterly and redeemable at retailers nationwide.',
32
32
  },
33
33
  HD: {
34
- title: 'Home delivery',
34
+ title: 'Hand delivery',
35
35
  description: 'Free delivery to your home or office before 7am.',
36
36
  },
37
37
  EV: {
@@ -114,7 +114,7 @@ const deliveryOptionMessages = [
114
114
  deliveryOnPublicationDate: false,
115
115
  flightMarket: true,
116
116
  country: [printRegions.cemeaV1, printRegions.cemeaV2, printRegions.apac],
117
- title: 'Hand Delivery',
117
+ title: 'Hand delivery',
118
118
  description:
119
119
  'Enjoy the delivery of the newspaper to your home or office address. Please note we fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside of the FT’s control. In those circumstances, your newspaper will be delivered the next delivery day. Please also be aware that your FT weekend will be delivered on Sunday.',
120
120
  },
@@ -127,7 +127,7 @@ const deliveryOptionMessages = [
127
127
  distributorType: HAND_DELIVERY,
128
128
  deliveryOnPublicationDate: true,
129
129
  flightMarket: true,
130
- title: 'Hand Delivery',
130
+ title: 'Hand delivery',
131
131
  country: [printRegions.cemeaV1, printRegions.cemeaV2, printRegions.apac],
132
132
  description:
133
133
  'Enjoy delivery of the newspaper to your home or office address. FT Weekend will be delivered on Sunday or Monday.',
@@ -142,7 +142,7 @@ const deliveryOptionMessages = [
142
142
  deliveryOnPublicationDate: true,
143
143
  flightMarket: false,
144
144
  country: [printRegions.cemeaV1, printRegions.cemeaV2, printRegions.apac],
145
- title: 'Hand Delivery',
145
+ title: 'Hand delivery',
146
146
  description:
147
147
  'Enjoy delivery of the newspaper daily to your home or office address on the day of publication.',
148
148
  },
@@ -140,7 +140,7 @@ describe('Find Custom Delivery Option', () => {
140
140
  stubOption.deliveryOnPublicationDate = false;
141
141
  stubOption.mailDelivery = false;
142
142
  const expected = {
143
- title: 'Hand Delivery',
143
+ title: 'Hand delivery',
144
144
  description:
145
145
  'Enjoy the delivery of the newspaper to your home or office address. Please note we fly the newspaper to your location which means delivery is subject to flight delays/cancellations outside of the FT’s control. In those circumstances, your newspaper will be delivered the next delivery day. Please also be aware that your FT weekend will be delivered on Sunday.',
146
146
  };