@financial-times/n-conversion-forms 44.5.0 → 44.5.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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-conversion-forms",
4
- "version": "b5701ec726caa486c364874cd38b94dc91b23a04",
5
- "tag": "v44.5.0",
6
- "buildNumber": "17440"
4
+ "version": "55198eda97bab62183ef6417dc7f392fee563f2f",
5
+ "tag": "v44.5.1",
6
+ "buildNumber": "17481"
7
7
  }
@@ -9,7 +9,6 @@ exports[`PaymentTerm When using custom options renders when not using an option
9
9
  <div class="ncf__payment-term__item o-forms-input--radio-round ncf__payment-term__item--discount">
10
10
  <input type="radio"
11
11
  id="270"
12
- data-base-amount="270"
13
12
  name="paymentTerm"
14
13
  value="270"
15
14
  class="o-forms-input__radio o-forms-input__radio--right ncf__payment-term__input"
@@ -39,7 +38,6 @@ exports[`PaymentTerm When using custom options renders when not using an option
39
38
  <div class="ncf__payment-term__item o-forms-input--radio-round ncf__payment-term__item--discount">
40
39
  <input type="radio"
41
40
  id="300"
42
- data-base-amount="300"
43
41
  name="paymentTerm"
44
42
  value="300"
45
43
  class="o-forms-input__radio o-forms-input__radio--right ncf__payment-term__input"
@@ -254,7 +254,7 @@ export function PaymentTerm({
254
254
  className={largePrice ? 'ncf__payment-term__large-price' : ''}
255
255
  >
256
256
  {new Price({
257
- value: option.amount,
257
+ value: option.price,
258
258
  symbol: option.symbol,
259
259
  }).getAmountFormatted()}
260
260
  </span>
@@ -266,7 +266,6 @@ describe('PaymentTerm', () => {
266
266
  subTitle: '(Renews annually unless cancelled)',
267
267
  price: '€ 270.00',
268
268
  symbol: '€',
269
- amount: 270.0,
270
269
  value: 270.0,
271
270
  isTrial: false,
272
271
  discount: '33%',
@@ -278,7 +277,6 @@ describe('PaymentTerm', () => {
278
277
  title: '12 Month Subscription',
279
278
  price: '€ 300.00',
280
279
  symbol: '€',
281
- amount: 300.0,
282
280
  value: 300.0,
283
281
  isTrial: false,
284
282
  discount: '10%',
@@ -205,7 +205,7 @@ function PaymentTerm(_ref) {
205
205
  }, nameMap['custom'].price(option.price), nameMap['custom'].monthlyPrice(option.monthlyPrice && option.monthlyPrice !== '0' ? Number(option.monthlyPrice) : getMonthlyPriceFromPeriod(option.amount, option.currency, option.value)), nameMap['custom'].renewsText(getTimeFromPeriod(option.value))) : /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
206
206
  className: largePrice ? 'ncf__payment-term__large-price' : ''
207
207
  }, new _nPricing.Price({
208
- value: option.amount,
208
+ value: option.price,
209
209
  symbol: option.symbol
210
210
  }).getAmountFormatted()), option.chargeOnText && /*#__PURE__*/_react["default"].createElement("p", {
211
211
  className: "ncf__payment-term__charge-on-text"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "44.5.0",
3
+ "version": "44.5.1",
4
4
  "description": "Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {