@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.
- package/.circleci/config.yml +7 -5
- package/.circleci/shared-helpers/helper-npm-install-peer-deps +6 -6
- package/.eslintignore +3 -0
- package/.github/workflows/gh-pages-deploy.yml +2 -1
- package/build-state/npm-shrinkwrap.json +47022 -9009
- package/components/__snapshots__/accept-terms.spec.js.snap +94 -6
- package/components/__snapshots__/delivery-address.spec.js.snap +2 -2
- package/components/__snapshots__/graduation-date.spec.js.snap +3 -3
- package/components/accept-terms.jsx +67 -9
- package/components/accept-terms.spec.js +12 -0
- package/components/app-banner.jsx +1 -1
- package/components/b2c-partnership-confirmation.jsx +2 -2
- package/components/b2c-partnership-payment-term.jsx +1 -1
- package/components/billing-city.jsx +1 -1
- package/components/billing-country.jsx +1 -1
- package/components/billing-postcode.jsx +1 -1
- package/components/company-name.jsx +1 -1
- package/components/confirmation.jsx +1 -1
- package/components/continue-reading.jsx +1 -1
- package/components/continue-reading.stories.js +1 -1
- package/components/country.jsx +1 -1
- package/components/customer-care.jsx +1 -1
- package/components/debug.jsx +1 -1
- package/components/decision-maker.jsx +1 -1
- package/components/decision-maker.spec.js +1 -1
- package/components/delivery-address-type.jsx +1 -1
- package/components/delivery-address.jsx +5 -5
- package/components/delivery-city.jsx +1 -1
- package/components/delivery-county.jsx +1 -1
- package/components/delivery-instructions.jsx +1 -1
- package/components/delivery-option.jsx +1 -1
- package/components/delivery-po-box.jsx +1 -1
- package/components/delivery-postcode.jsx +1 -1
- package/components/delivery-security-instructions.jsx +1 -1
- package/components/delivery-start-date.jsx +1 -1
- package/components/education-job-title.jsx +1 -1
- package/components/email.jsx +1 -1
- package/components/error-page.jsx +1 -1
- package/components/fieldset.jsx +1 -1
- package/components/first-name.jsx +1 -1
- package/components/form.jsx +1 -1
- package/components/google-sign-in.jsx +1 -1
- package/components/graduation-date.jsx +1 -1
- package/components/industry.jsx +1 -1
- package/components/job-title.jsx +1 -1
- package/components/last-name.jsx +1 -1
- package/components/licence-confirmation.jsx +1 -1
- package/components/licence-header.jsx +2 -2
- package/components/licence-sign-in.jsx +2 -2
- package/components/licence-title.jsx +2 -2
- package/components/lite-sub-confirmation.jsx +1 -1
- package/components/loader.jsx +1 -1
- package/components/message.jsx +1 -1
- package/components/organisation.jsx +1 -1
- package/components/package-change.jsx +1 -1
- package/components/password.jsx +1 -1
- package/components/payment-term.jsx +1 -1
- package/components/payment-type.jsx +2 -2
- package/components/personal-title.jsx +1 -1
- package/components/phone.jsx +1 -1
- package/components/position.jsx +1 -1
- package/components/progress-indicator.jsx +3 -3
- package/components/province.jsx +1 -1
- package/components/registration-confirmation.jsx +1 -1
- package/components/responsibility.jsx +1 -1
- package/components/section.jsx +1 -1
- package/components/state.jsx +1 -1
- package/components/submit.jsx +1 -1
- package/components/trial-banner.jsx +1 -1
- package/dist/accept-terms.js +42 -7
- package/dist/b2c-partnership-confirmation.js +1 -1
- package/dist/confirmation.js +2 -2
- package/dist/continue-reading.js +2 -2
- package/dist/decision-maker.js +2 -2
- package/dist/delivery-address.js +4 -4
- package/dist/delivery-instructions.js +2 -2
- package/dist/delivery-security-instructions.js +2 -2
- package/dist/delivery-start-date.js +2 -2
- package/dist/fieldset.js +2 -2
- package/dist/licence-confirmation.js +2 -2
- package/dist/loader.js +2 -2
- package/dist/message.spec.js +2 -2
- package/dist/payment-term.js +2 -2
- package/dist/payment-type.js +3 -3
- package/package.json +10 -6
- package/test-jest/helpers/expect-to-render-correctly.js +1 -1
- package/utils/app-banner.js +1 -1
- package/utils/apple-pay.js +15 -15
- package/utils/billing-city.js +1 -1
- package/utils/billing-country.js +3 -3
- package/utils/billing-postcode.js +1 -1
- package/utils/company-name.js +1 -1
- package/utils/countries.js +2 -2
- package/utils/country.js +3 -3
- package/utils/delivery-address-type.js +3 -3
- package/utils/delivery-address.js +1 -1
- package/utils/delivery-instructions.js +1 -1
- package/utils/delivery-option-messages.js +11 -11
- package/utils/delivery-option-messages.spec.js +2 -2
- package/utils/delivery-option.js +5 -5
- package/utils/delivery-po-box.js +1 -1
- package/utils/delivery-postcode.js +1 -1
- package/utils/delivery-start-date.js +4 -4
- package/utils/email.js +4 -4
- package/utils/event-notifier.js +1 -1
- package/utils/form-element.js +8 -8
- package/utils/loader.js +10 -10
- package/utils/password.js +2 -2
- package/utils/payment-term.js +5 -5
- package/utils/payment-type.js +12 -12
- package/utils/postcode.js +3 -3
- package/utils/province.js +1 -1
- package/utils/salesforce.js +2 -2
- package/utils/state.js +1 -1
- package/utils/submit.js +5 -5
- package/utils/tracking.js +7 -7
- package/utils/validation.js +10 -10
- package/utils/zuora-error-map.js +5 -5
- package/utils/zuora.js +22 -12
package/.circleci/config.yml
CHANGED
|
@@ -6,7 +6,7 @@ references:
|
|
|
6
6
|
container_config_node12: &container_config_node12
|
|
7
7
|
working_directory: ~/project/build
|
|
8
8
|
docker:
|
|
9
|
-
- image:
|
|
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
|
-
|
|
38
|
-
|
|
37
|
+
xargs -I{} echo -n '"{}" ' | \
|
|
38
|
+
xargs npm install --no-package-lock --no-save
|
|
39
39
|
|
|
40
40
|
fi
|
package/.eslintignore
ADDED
|
@@ -13,11 +13,12 @@ jobs:
|
|
|
13
13
|
steps:
|
|
14
14
|
- uses: actions/setup-node@v2
|
|
15
15
|
with:
|
|
16
|
-
node-version:
|
|
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
|