@financial-times/n-conversion-forms 20.3.0 → 20.3.4

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 (112) hide show
  1. package/.circleci/config.yml +8 -6
  2. package/.circleci/shared-helpers/helper-npm-install-peer-deps +6 -5
  3. package/.eslintignore +3 -0
  4. package/.github/workflows/gh-pages-deploy.yml +2 -1
  5. package/build-state/npm-shrinkwrap.json +47805 -8576
  6. package/components/__snapshots__/accept-terms.spec.js.snap +94 -6
  7. package/components/__snapshots__/app-banner.spec.js.snap +2 -0
  8. package/components/__snapshots__/confirmation.spec.js.snap +11 -11
  9. package/components/__snapshots__/delivery-address.spec.js.snap +18 -1
  10. package/components/__snapshots__/delivery-postcode.spec.js.snap +24 -4
  11. package/components/__snapshots__/registration-confirmation.spec.js.snap +2 -2
  12. package/components/accept-terms.jsx +67 -9
  13. package/components/accept-terms.spec.js +12 -0
  14. package/components/app-banner.jsx +3 -1
  15. package/components/b2c-partnership-confirmation.jsx +7 -8
  16. package/components/b2c-partnership-confirmation.spec.js +1 -1
  17. package/components/b2c-partnership-payment-term.jsx +5 -2
  18. package/components/billing-country.jsx +1 -1
  19. package/components/billing-postcode.jsx +1 -1
  20. package/components/company-name.spec.js +9 -3
  21. package/components/confirmation.jsx +1 -1
  22. package/components/continue-reading.jsx +1 -1
  23. package/components/country.jsx +3 -2
  24. package/components/customer-care.jsx +1 -1
  25. package/components/debug.jsx +1 -1
  26. package/components/decision-maker.jsx +1 -1
  27. package/components/delivery-address-type.jsx +9 -9
  28. package/components/delivery-address-type.stories.js +10 -2
  29. package/components/delivery-address.jsx +115 -73
  30. package/components/delivery-address.spec.js +3 -1
  31. package/components/delivery-address.stories.js +1 -1
  32. package/components/delivery-city.jsx +2 -2
  33. package/components/delivery-county.jsx +1 -1
  34. package/components/delivery-instructions.jsx +48 -18
  35. package/components/delivery-instructions.spec.js +6 -2
  36. package/components/delivery-option.jsx +6 -2
  37. package/components/delivery-option.spec.js +4 -4
  38. package/components/delivery-option.stories.js +17 -5
  39. package/components/delivery-po-box.jsx +3 -5
  40. package/components/delivery-po-box.spec.js +3 -1
  41. package/components/delivery-po-box.stories.js +1 -1
  42. package/components/delivery-postcode.jsx +19 -3
  43. package/components/delivery-security-instructions.jsx +1 -2
  44. package/components/delivery-start-date.jsx +3 -1
  45. package/components/education-job-title.jsx +1 -1
  46. package/components/email.jsx +1 -1
  47. package/components/error-page.jsx +1 -1
  48. package/components/fieldset.jsx +1 -1
  49. package/components/first-name.jsx +1 -1
  50. package/components/form.jsx +1 -1
  51. package/components/google-sign-in.jsx +8 -4
  52. package/components/google-sign-in.stories.js +2 -1
  53. package/components/graduation-date.jsx +1 -1
  54. package/components/graduation-date.spec.js +1 -9
  55. package/components/industry.jsx +2 -2
  56. package/components/industry.spec.js +3 -1
  57. package/components/job-title.jsx +2 -2
  58. package/components/job-title.spec.js +3 -1
  59. package/components/last-name.jsx +1 -1
  60. package/components/licence-confirmation.jsx +7 -5
  61. package/components/licence-confirmation.stories.js +3 -1
  62. package/components/licence-header.jsx +2 -2
  63. package/components/licence-sign-in.jsx +2 -2
  64. package/components/licence-title.jsx +2 -2
  65. package/components/lite-sub-confirmation.jsx +92 -40
  66. package/components/lite-sub-confirmation.stories.js +3 -3
  67. package/components/loader.jsx +1 -1
  68. package/components/message.jsx +1 -1
  69. package/components/message.spec.jsx +1 -1
  70. package/components/organisation.jsx +1 -1
  71. package/components/package-change.jsx +13 -4
  72. package/components/password.jsx +1 -1
  73. package/components/payment-term.jsx +1 -1
  74. package/components/payment-type.jsx +7 -4
  75. package/components/personal-title.jsx +0 -1
  76. package/components/personal-title.spec.js +8 -6
  77. package/components/phone.jsx +2 -2
  78. package/components/phone.spec.js +3 -1
  79. package/components/position.jsx +2 -2
  80. package/components/position.spec.js +3 -1
  81. package/components/progress-indicator.jsx +4 -4
  82. package/components/registration-confirmation.jsx +1 -1
  83. package/components/responsibility.jsx +3 -5
  84. package/components/responsibility.spec.js +3 -1
  85. package/components/section.jsx +1 -1
  86. package/components/state.jsx +1 -1
  87. package/components/submit.jsx +1 -1
  88. package/components/trial-banner.jsx +1 -1
  89. package/dist/accept-terms.js +40 -5
  90. package/dist/app-banner.js +4 -2
  91. package/dist/confirmation.js +1 -1
  92. package/dist/delivery-address.js +15 -5
  93. package/dist/delivery-postcode.js +14 -2
  94. package/dist/delivery-security-instructions.js +0 -1
  95. package/dist/graduation-date.js +1 -1
  96. package/dist/index.js +42 -42
  97. package/dist/lite-sub-confirmation.js +7 -7
  98. package/dist/package-change.js +1 -1
  99. package/dist/payment-type.js +1 -1
  100. package/dist/registration-confirmation.js +1 -1
  101. package/jest.config.js +6 -1
  102. package/package.json +24 -13
  103. package/utils/billing-country.js +2 -3
  104. package/utils/company-name.spec.js +11 -3
  105. package/utils/delivery-address-type.js +4 -1
  106. package/utils/delivery-address-type.spec.js +11 -3
  107. package/utils/delivery-option-messages.js +61 -32
  108. package/utils/delivery-option-messages.spec.js +42 -12
  109. package/utils/delivery-option.js +14 -7
  110. package/utils/delivery-option.spec.js +7 -3
  111. package/utils/delivery-start-date.js +5 -3
  112. package/utils/zuora.js +6 -1
@@ -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
@@ -100,7 +102,7 @@ jobs:
100
102
  - *attach_workspace
101
103
  - run:
102
104
  name: Run tests
103
- command: make test
105
+ command: npm run lint && make test
104
106
  environment:
105
107
  JEST_JUNIT_OUTPUT: test-results/jest/results.xml
106
108
  MOCHA_FILE: test-results/mocha/results.xml
@@ -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,6 +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{} npm install --no-package-lock --no-save "{}"
37
+ xargs -I{} echo -n '"{}" ' | \
38
+ xargs npm install --no-package-lock --no-save
38
39
 
39
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