@financial-times/n-conversion-forms 20.3.2 → 20.4.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.
Files changed (119) hide show
  1. package/.circleci/config.yml +7 -5
  2. package/.circleci/shared-helpers/helper-npm-install-peer-deps +6 -6
  3. package/.eslintignore +3 -0
  4. package/.github/workflows/gh-pages-deploy.yml +2 -1
  5. package/build-state/npm-shrinkwrap.json +47022 -9009
  6. package/components/__snapshots__/accept-terms.spec.js.snap +94 -6
  7. package/components/__snapshots__/delivery-address.spec.js.snap +2 -2
  8. package/components/__snapshots__/graduation-date.spec.js.snap +3 -3
  9. package/components/accept-terms.jsx +67 -9
  10. package/components/accept-terms.spec.js +12 -0
  11. package/components/app-banner.jsx +1 -1
  12. package/components/b2c-partnership-confirmation.jsx +2 -2
  13. package/components/b2c-partnership-payment-term.jsx +1 -1
  14. package/components/billing-city.jsx +1 -1
  15. package/components/billing-country.jsx +1 -1
  16. package/components/billing-postcode.jsx +1 -1
  17. package/components/company-name.jsx +1 -1
  18. package/components/confirmation.jsx +1 -1
  19. package/components/continue-reading.jsx +1 -1
  20. package/components/continue-reading.stories.js +1 -1
  21. package/components/country.jsx +1 -1
  22. package/components/customer-care.jsx +1 -1
  23. package/components/debug.jsx +1 -1
  24. package/components/decision-maker.jsx +1 -1
  25. package/components/decision-maker.spec.js +1 -1
  26. package/components/delivery-address-type.jsx +1 -1
  27. package/components/delivery-address.jsx +5 -5
  28. package/components/delivery-city.jsx +1 -1
  29. package/components/delivery-county.jsx +1 -1
  30. package/components/delivery-instructions.jsx +1 -1
  31. package/components/delivery-option.jsx +1 -1
  32. package/components/delivery-po-box.jsx +1 -1
  33. package/components/delivery-postcode.jsx +1 -1
  34. package/components/delivery-security-instructions.jsx +1 -1
  35. package/components/delivery-start-date.jsx +1 -1
  36. package/components/education-job-title.jsx +1 -1
  37. package/components/email.jsx +1 -1
  38. package/components/error-page.jsx +1 -1
  39. package/components/fieldset.jsx +1 -1
  40. package/components/first-name.jsx +1 -1
  41. package/components/form.jsx +1 -1
  42. package/components/google-sign-in.jsx +1 -1
  43. package/components/graduation-date.jsx +1 -1
  44. package/components/industry.jsx +1 -1
  45. package/components/job-title.jsx +1 -1
  46. package/components/last-name.jsx +1 -1
  47. package/components/licence-confirmation.jsx +1 -1
  48. package/components/licence-header.jsx +2 -2
  49. package/components/licence-sign-in.jsx +2 -2
  50. package/components/licence-title.jsx +2 -2
  51. package/components/lite-sub-confirmation.jsx +1 -1
  52. package/components/loader.jsx +1 -1
  53. package/components/message.jsx +1 -1
  54. package/components/organisation.jsx +1 -1
  55. package/components/package-change.jsx +1 -1
  56. package/components/password.jsx +1 -1
  57. package/components/payment-term.jsx +1 -1
  58. package/components/payment-type.jsx +2 -2
  59. package/components/personal-title.jsx +1 -1
  60. package/components/phone.jsx +1 -1
  61. package/components/position.jsx +1 -1
  62. package/components/progress-indicator.jsx +3 -3
  63. package/components/province.jsx +1 -1
  64. package/components/registration-confirmation.jsx +1 -1
  65. package/components/responsibility.jsx +1 -1
  66. package/components/section.jsx +1 -1
  67. package/components/state.jsx +1 -1
  68. package/components/submit.jsx +1 -1
  69. package/components/trial-banner.jsx +1 -1
  70. package/dist/accept-terms.js +42 -7
  71. package/dist/b2c-partnership-confirmation.js +1 -1
  72. package/dist/confirmation.js +2 -2
  73. package/dist/continue-reading.js +2 -2
  74. package/dist/decision-maker.js +2 -2
  75. package/dist/delivery-address.js +4 -4
  76. package/dist/delivery-instructions.js +2 -2
  77. package/dist/delivery-security-instructions.js +2 -2
  78. package/dist/delivery-start-date.js +2 -2
  79. package/dist/fieldset.js +2 -2
  80. package/dist/licence-confirmation.js +2 -2
  81. package/dist/loader.js +2 -2
  82. package/dist/message.spec.js +2 -2
  83. package/dist/payment-term.js +2 -2
  84. package/dist/payment-type.js +3 -3
  85. package/package.json +10 -6
  86. package/test-jest/helpers/expect-to-render-correctly.js +1 -1
  87. package/utils/app-banner.js +1 -1
  88. package/utils/apple-pay.js +15 -15
  89. package/utils/billing-city.js +1 -1
  90. package/utils/billing-country.js +3 -3
  91. package/utils/billing-postcode.js +1 -1
  92. package/utils/company-name.js +1 -1
  93. package/utils/countries.js +2 -2
  94. package/utils/country.js +3 -3
  95. package/utils/delivery-address-type.js +3 -3
  96. package/utils/delivery-address.js +1 -1
  97. package/utils/delivery-instructions.js +1 -1
  98. package/utils/delivery-option-messages.js +11 -11
  99. package/utils/delivery-option-messages.spec.js +2 -2
  100. package/utils/delivery-option.js +5 -5
  101. package/utils/delivery-po-box.js +1 -1
  102. package/utils/delivery-postcode.js +1 -1
  103. package/utils/delivery-start-date.js +4 -4
  104. package/utils/email.js +4 -4
  105. package/utils/event-notifier.js +1 -1
  106. package/utils/form-element.js +8 -8
  107. package/utils/loader.js +10 -10
  108. package/utils/password.js +2 -2
  109. package/utils/payment-term.js +5 -5
  110. package/utils/payment-type.js +12 -12
  111. package/utils/postcode.js +3 -3
  112. package/utils/province.js +1 -1
  113. package/utils/salesforce.js +2 -2
  114. package/utils/state.js +1 -1
  115. package/utils/submit.js +5 -5
  116. package/utils/tracking.js +7 -7
  117. package/utils/validation.js +10 -10
  118. package/utils/zuora-error-map.js +5 -5
  119. package/utils/zuora.js +22 -12
@@ -6,7 +6,7 @@ references:
6
6
  container_config_node12: &container_config_node12
7
7
  working_directory: ~/project/build
8
8
  docker:
9
- - image: circleci/node:12-browsers
9
+ - image: cimg/node:14.18-browsers
10
10
 
11
11
  container_config_lambda_node12: &container_config_lambda_node12
12
12
  working_directory: ~/project/build
@@ -57,7 +57,10 @@ references:
57
57
  branches:
58
58
  ignore: /.*/
59
59
 
60
- version: 2
60
+ version: 2.1
61
+
62
+ orbs:
63
+ node: circleci/node@4.7.0
61
64
 
62
65
  jobs:
63
66
 
@@ -69,12 +72,11 @@ jobs:
69
72
  name: Checkout next-ci-shared-helpers
70
73
  command: git clone --depth 1 git@github.com:Financial-Times/next-ci-shared-helpers.git .circleci/shared-helpers
71
74
  - *restore_npm_cache
75
+ - node/install-npm:
76
+ version: "7"
72
77
  - run:
73
78
  name: Install project dependencies
74
79
  command: make install
75
- - run:
76
- name: shared-helper / npm-install-peer-deps
77
- command: .circleci/shared-helpers/helper-npm-install-peer-deps
78
80
  - run:
79
81
  name: shared-helper / npm-update
80
82
  command: .circleci/shared-helpers/helper-npm-update
@@ -11,10 +11,10 @@
11
11
  #
12
12
  # Why we pass the flags we do to `npm install`:
13
13
  #
14
- # --no-package-lock - While we now use package-lock.json
15
- # in our repos, skip package-lock.json in this instance
16
- # as we don't want to accidentally modify the file
17
- # for subsequent steps in the workflow, e.g cache keys
14
+ # --no-package-lock - While we now use package-lock.json
15
+ # in our repos, skip package-lock.json in this instance
16
+ # as we don't want to accidentally modify the file
17
+ # for subsequent steps in the workflow, e.g cache keys
18
18
  # and artefact generation.
19
19
  #
20
20
  # --no-save - We don't want to modify package.json as we
@@ -34,7 +34,7 @@ if [ -e package.json ]; then
34
34
 
35
35
  npm ls --production --parseable 2>&1 >/dev/null | \
36
36
  sed -n -e 's/^npm ERR! peer dep missing: \(.*\),.*/\1/p' | \
37
- xargs -I{} echo -n '"{}" ' | \
38
- xargs -I{} npm install --no-package-lock --no-save "{}"
37
+ xargs -I{} echo -n '"{}" ' | \
38
+ xargs npm install --no-package-lock --no-save
39
39
 
40
40
  fi
package/.eslintignore ADDED
@@ -0,0 +1,3 @@
1
+ /bower_components
2
+ /dist
3
+ /.eslintrc.js
@@ -13,11 +13,12 @@ jobs:
13
13
  steps:
14
14
  - uses: actions/setup-node@v2
15
15
  with:
16
- node-version: 12.x
16
+ node-version: 14.x
17
17
  - uses: actions/checkout@v2
18
18
  with:
19
19
  persist-credentials: false
20
20
  - run: git config --global url."https://${{ secrets.NEXT_USER_PAT }}@github.com/".insteadOf ssh://git@github.com/
21
+ - run: npm install -g npm@7.24.2
21
22
  - run: make install
22
23
  - run: npm run build-storybook
23
24
  - name: Deploy