@financial-times/n-conversion-forms 30.0.1 → 31.0.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 +97 -150
- package/.toolkitrc.yml +19 -0
- package/.toolkitstate/ci.json +6 -0
- package/README.md +2 -2
- package/components/__snapshots__/package-change.spec.js.snap +15 -0
- package/components/accept-terms-subscription.jsx +50 -0
- package/components/index.jsx +1 -0
- package/components/package-change.jsx +13 -9
- package/components/package-change.spec.js +17 -0
- package/components/package-change.stories.js +8 -0
- package/components/payment-term.jsx +51 -14
- package/components/payment-term.spec.js +47 -0
- package/components/payment-term.stories.js +20 -0
- package/components/seven-day-pass-experiment-confirmation.jsx +110 -0
- package/components/seven-day-pass-experiment-confirmation.stories.js +33 -0
- package/jest.config.js +2 -0
- package/package.json +30 -16
- package/.circleci/shared-helpers/.github/settings.yml +0 -1
- package/.circleci/shared-helpers/CODEOWNERS +0 -3
- package/.circleci/shared-helpers/README.md +0 -72
- package/.circleci/shared-helpers/helper-check-service-ready +0 -37
- package/.circleci/shared-helpers/helper-configure-awscli +0 -20
- package/.circleci/shared-helpers/helper-generate-build-state-artifacts +0 -29
- package/.circleci/shared-helpers/helper-install-awscli +0 -14
- package/.circleci/shared-helpers/helper-install-puppeteer-deps +0 -25
- package/.circleci/shared-helpers/helper-npm-install-peer-deps +0 -40
- package/.circleci/shared-helpers/helper-npm-store-auth-token +0 -14
- package/.circleci/shared-helpers/helper-npm-update +0 -26
- package/.circleci/shared-helpers/helper-npm-version-and-publish-public +0 -19
- package/.circleci/shared-helpers/helper-publish-github-pages +0 -43
- package/.circleci/shared-helpers/helper-setup-heroku-cli +0 -46
- package/.circleci/shared-helpers/helper-setup-s3-upload +0 -17
- package/.circleci/shared-helpers/helper-upload-assets-to-s3 +0 -69
- package/.circleci/shared-helpers/helper.example +0 -13
- package/build-state/npm-shrinkwrap.json +0 -58461
- package/dist/accept-terms-business.js +0 -74
- package/dist/accept-terms-business.spec.js +0 -40
- package/dist/accept-terms-privacy-policy.js +0 -71
- package/dist/accept-terms-subscription.js +0 -124
- package/dist/accept-terms.js +0 -217
- package/dist/app-banner.js +0 -51
- package/dist/b2c-partnership-confirmation.js +0 -64
- package/dist/billing-city.js +0 -58
- package/dist/billing-country.js +0 -43
- package/dist/billing-postcode.js +0 -76
- package/dist/company-name.js +0 -78
- package/dist/confirmation.js +0 -117
- package/dist/continue-reading.js +0 -45
- package/dist/country.js +0 -106
- package/dist/customer-care.js +0 -52
- package/dist/debug.js +0 -50
- package/dist/decision-maker.js +0 -72
- package/dist/deferred-billing-terms.js +0 -112
- package/dist/delivery-address-map.js +0 -184
- package/dist/delivery-address-type.js +0 -74
- package/dist/delivery-address.js +0 -123
- package/dist/delivery-city.js +0 -70
- package/dist/delivery-county.js +0 -48
- package/dist/delivery-instructions.js +0 -123
- package/dist/delivery-option.js +0 -77
- package/dist/delivery-po-box.js +0 -75
- package/dist/delivery-postcode.js +0 -116
- package/dist/delivery-security-instructions.js +0 -72
- package/dist/delivery-start-date.js +0 -77
- package/dist/education-job-title.js +0 -67
- package/dist/email.js +0 -90
- package/dist/error-page.js +0 -45
- package/dist/fieldset.js +0 -58
- package/dist/first-name.js +0 -73
- package/dist/form.js +0 -29
- package/dist/google-sign-in.js +0 -24
- package/dist/graduation-date.js +0 -112
- package/dist/index.js +0 -425
- package/dist/industry.js +0 -81
- package/dist/job-title.js +0 -65
- package/dist/last-name.js +0 -73
- package/dist/licence-confirmation.js +0 -67
- package/dist/licence-header.js +0 -52
- package/dist/licence-sign-in.js +0 -36
- package/dist/licence-title.js +0 -46
- package/dist/lite-sub-confirmation.js +0 -118
- package/dist/loader.js +0 -54
- package/dist/message.js +0 -101
- package/dist/message.spec.js +0 -96
- package/dist/organisation.js +0 -73
- package/dist/package-change.js +0 -36
- package/dist/password.js +0 -95
- package/dist/payment-term.js +0 -300
- package/dist/payment-type.js +0 -213
- package/dist/personal-title.js +0 -94
- package/dist/phone.js +0 -85
- package/dist/position.js +0 -86
- package/dist/progress-indicator.js +0 -66
- package/dist/province.js +0 -80
- package/dist/registration-confirmation.js +0 -108
- package/dist/responsibility.js +0 -84
- package/dist/section.js +0 -20
- package/dist/state.js +0 -80
- package/dist/submit.js +0 -52
- package/dist/text-input.js +0 -78
- package/dist/trial-banner.js +0 -29
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
#
|
|
3
|
-
# HELPER PURPOSE
|
|
4
|
-
#
|
|
5
|
-
# Uploads the compressed assets generated by apps using Page kit to S3
|
|
6
|
-
#
|
|
7
|
-
# This helper will be executed in place of the current deploy-hashed-assets
|
|
8
|
-
# command in n-heroku-tools for all apps that are using Page Kit.
|
|
9
|
-
#
|
|
10
|
-
# It uploads JavaScipt, CSS, sourcemaps and compressed files to the EU and US
|
|
11
|
-
# regions, making the assets available to our CDN layer.
|
|
12
|
-
#
|
|
13
|
-
|
|
14
|
-
# Set error handling
|
|
15
|
-
set -eu -o pipefail
|
|
16
|
-
|
|
17
|
-
# HELPER COMMANDS
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
SOURCE_FOLDER=${1:-"public"}
|
|
21
|
-
DESTINATION_FOLDER=${2:-"hashed-assets/uploads"}
|
|
22
|
-
DESTINATION_BUCKET_EU="ft-next-hashed-assets-prod"
|
|
23
|
-
DESTINATION_BUCKET_US="ft-next-hashed-assets-prod-us"
|
|
24
|
-
|
|
25
|
-
upload_file() {
|
|
26
|
-
local FILE="$1"
|
|
27
|
-
local BASENAME=$(basename $FILE)
|
|
28
|
-
local DESTINATION_BUCKET="$2"
|
|
29
|
-
local ENCODING="identity"
|
|
30
|
-
local TYPE
|
|
31
|
-
|
|
32
|
-
if [[ "$FILE" == *".gz" ]]; then
|
|
33
|
-
ENCODING="gzip"
|
|
34
|
-
elif [[ "$FILE" == *".br" ]]; then
|
|
35
|
-
ENCODING="br"
|
|
36
|
-
fi
|
|
37
|
-
|
|
38
|
-
# the AWS CLI can guess content types but not the original type of compressed files
|
|
39
|
-
# <https://github.com/aws/aws-cli/issues/3817>
|
|
40
|
-
case "$FILE" in
|
|
41
|
-
*".js"|*".js.gz"|*".js.br")
|
|
42
|
-
TYPE="application/javascript"
|
|
43
|
-
;;
|
|
44
|
-
*".css"|*".css.gz"|*".css.br")
|
|
45
|
-
TYPE="text/css"
|
|
46
|
-
;;
|
|
47
|
-
*".map")
|
|
48
|
-
TYPE="application/octet-stream"
|
|
49
|
-
;;
|
|
50
|
-
esac
|
|
51
|
-
|
|
52
|
-
aws s3 cp $FILE "s3://$DESTINATION_BUCKET/$DESTINATION_FOLDER/$BASENAME" \
|
|
53
|
-
--cache-control=31536000 \
|
|
54
|
-
--content-type="$TYPE; charset=utf-8" \
|
|
55
|
-
--content-encoding="$ENCODING" \
|
|
56
|
-
--acl="public-read"
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
upload_files() {
|
|
60
|
-
local SOURCE_FILES=($(find $SOURCE_FOLDER/*.{js,css,gz,br,map} 2>/dev/null))
|
|
61
|
-
|
|
62
|
-
for FILE in ${SOURCE_FILES[@]}; do
|
|
63
|
-
# Uploading to both regions to remove the dependency on our AWS poller
|
|
64
|
-
upload_file "$FILE" $DESTINATION_BUCKET_EU
|
|
65
|
-
upload_file "$FILE" $DESTINATION_BUCKET_US
|
|
66
|
-
done
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
upload_files
|