@financial-times/n-conversion-forms 27.4.2 → 27.4.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/n-conversion-forms",
|
|
3
|
-
"version": "27.4.
|
|
3
|
+
"version": "27.4.3",
|
|
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": {
|
|
@@ -131,6 +131,19 @@ const deliveryOptionMessages = [
|
|
|
131
131
|
description:
|
|
132
132
|
'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.',
|
|
133
133
|
},
|
|
134
|
+
{
|
|
135
|
+
deliveryFrequency: [
|
|
136
|
+
FIVE_DAYS_WEEK_DELIVERY_FREQ,
|
|
137
|
+
SIX_DAYS_WEEK_DELIVERY_FREQ,
|
|
138
|
+
],
|
|
139
|
+
distributorType: HAND_DELIVERY,
|
|
140
|
+
deliveryOnPublicationDate: true,
|
|
141
|
+
flightMarket: false,
|
|
142
|
+
country: [printRegions.cemeaV1, printRegions.cemeaV2, printRegions.apac],
|
|
143
|
+
title: 'Hand Delivery',
|
|
144
|
+
description:
|
|
145
|
+
'Enjoy delivery of the newspaper daily to your home or office address on the day of publication.',
|
|
146
|
+
},
|
|
134
147
|
{
|
|
135
148
|
deliveryFrequency: [
|
|
136
149
|
FIVE_DAYS_WEEK_DELIVERY_FREQ,
|
package/utils/form-element.js
CHANGED
|
@@ -69,7 +69,7 @@ class FormElement {
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
* Make
|
|
72
|
+
* Make first input element required
|
|
73
73
|
*/
|
|
74
74
|
makeRequired () {
|
|
75
75
|
if (this.inputs && this.inputs.length) {
|
|
@@ -79,7 +79,7 @@ class FormElement {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
|
-
* Make
|
|
82
|
+
* Make first input element not required (optional)
|
|
83
83
|
*/
|
|
84
84
|
makeOptional () {
|
|
85
85
|
if (this.inputs && this.inputs.length) {
|