@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.
Files changed (101) hide show
  1. package/.circleci/config.yml +97 -150
  2. package/.toolkitrc.yml +19 -0
  3. package/.toolkitstate/ci.json +6 -0
  4. package/README.md +2 -2
  5. package/components/__snapshots__/package-change.spec.js.snap +15 -0
  6. package/components/accept-terms-subscription.jsx +50 -0
  7. package/components/index.jsx +1 -0
  8. package/components/package-change.jsx +13 -9
  9. package/components/package-change.spec.js +17 -0
  10. package/components/package-change.stories.js +8 -0
  11. package/components/payment-term.jsx +51 -14
  12. package/components/payment-term.spec.js +47 -0
  13. package/components/payment-term.stories.js +20 -0
  14. package/components/seven-day-pass-experiment-confirmation.jsx +110 -0
  15. package/components/seven-day-pass-experiment-confirmation.stories.js +33 -0
  16. package/jest.config.js +2 -0
  17. package/package.json +30 -16
  18. package/.circleci/shared-helpers/.github/settings.yml +0 -1
  19. package/.circleci/shared-helpers/CODEOWNERS +0 -3
  20. package/.circleci/shared-helpers/README.md +0 -72
  21. package/.circleci/shared-helpers/helper-check-service-ready +0 -37
  22. package/.circleci/shared-helpers/helper-configure-awscli +0 -20
  23. package/.circleci/shared-helpers/helper-generate-build-state-artifacts +0 -29
  24. package/.circleci/shared-helpers/helper-install-awscli +0 -14
  25. package/.circleci/shared-helpers/helper-install-puppeteer-deps +0 -25
  26. package/.circleci/shared-helpers/helper-npm-install-peer-deps +0 -40
  27. package/.circleci/shared-helpers/helper-npm-store-auth-token +0 -14
  28. package/.circleci/shared-helpers/helper-npm-update +0 -26
  29. package/.circleci/shared-helpers/helper-npm-version-and-publish-public +0 -19
  30. package/.circleci/shared-helpers/helper-publish-github-pages +0 -43
  31. package/.circleci/shared-helpers/helper-setup-heroku-cli +0 -46
  32. package/.circleci/shared-helpers/helper-setup-s3-upload +0 -17
  33. package/.circleci/shared-helpers/helper-upload-assets-to-s3 +0 -69
  34. package/.circleci/shared-helpers/helper.example +0 -13
  35. package/build-state/npm-shrinkwrap.json +0 -58461
  36. package/dist/accept-terms-business.js +0 -74
  37. package/dist/accept-terms-business.spec.js +0 -40
  38. package/dist/accept-terms-privacy-policy.js +0 -71
  39. package/dist/accept-terms-subscription.js +0 -124
  40. package/dist/accept-terms.js +0 -217
  41. package/dist/app-banner.js +0 -51
  42. package/dist/b2c-partnership-confirmation.js +0 -64
  43. package/dist/billing-city.js +0 -58
  44. package/dist/billing-country.js +0 -43
  45. package/dist/billing-postcode.js +0 -76
  46. package/dist/company-name.js +0 -78
  47. package/dist/confirmation.js +0 -117
  48. package/dist/continue-reading.js +0 -45
  49. package/dist/country.js +0 -106
  50. package/dist/customer-care.js +0 -52
  51. package/dist/debug.js +0 -50
  52. package/dist/decision-maker.js +0 -72
  53. package/dist/deferred-billing-terms.js +0 -112
  54. package/dist/delivery-address-map.js +0 -184
  55. package/dist/delivery-address-type.js +0 -74
  56. package/dist/delivery-address.js +0 -123
  57. package/dist/delivery-city.js +0 -70
  58. package/dist/delivery-county.js +0 -48
  59. package/dist/delivery-instructions.js +0 -123
  60. package/dist/delivery-option.js +0 -77
  61. package/dist/delivery-po-box.js +0 -75
  62. package/dist/delivery-postcode.js +0 -116
  63. package/dist/delivery-security-instructions.js +0 -72
  64. package/dist/delivery-start-date.js +0 -77
  65. package/dist/education-job-title.js +0 -67
  66. package/dist/email.js +0 -90
  67. package/dist/error-page.js +0 -45
  68. package/dist/fieldset.js +0 -58
  69. package/dist/first-name.js +0 -73
  70. package/dist/form.js +0 -29
  71. package/dist/google-sign-in.js +0 -24
  72. package/dist/graduation-date.js +0 -112
  73. package/dist/index.js +0 -425
  74. package/dist/industry.js +0 -81
  75. package/dist/job-title.js +0 -65
  76. package/dist/last-name.js +0 -73
  77. package/dist/licence-confirmation.js +0 -67
  78. package/dist/licence-header.js +0 -52
  79. package/dist/licence-sign-in.js +0 -36
  80. package/dist/licence-title.js +0 -46
  81. package/dist/lite-sub-confirmation.js +0 -118
  82. package/dist/loader.js +0 -54
  83. package/dist/message.js +0 -101
  84. package/dist/message.spec.js +0 -96
  85. package/dist/organisation.js +0 -73
  86. package/dist/package-change.js +0 -36
  87. package/dist/password.js +0 -95
  88. package/dist/payment-term.js +0 -300
  89. package/dist/payment-type.js +0 -213
  90. package/dist/personal-title.js +0 -94
  91. package/dist/phone.js +0 -85
  92. package/dist/position.js +0 -86
  93. package/dist/progress-indicator.js +0 -66
  94. package/dist/province.js +0 -80
  95. package/dist/registration-confirmation.js +0 -108
  96. package/dist/responsibility.js +0 -84
  97. package/dist/section.js +0 -20
  98. package/dist/state.js +0 -80
  99. package/dist/submit.js +0 -52
  100. package/dist/text-input.js +0 -78
  101. 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
@@ -1,13 +0,0 @@
1
- #!/usr/bin/env bash
2
- #
3
- # HELPER PURPOSE
4
- #
5
- # TODO: Make this example a bit more useful
6
- #
7
-
8
- # Set error handling
9
- set -eu -o pipefail
10
-
11
- # HELPER COMMANDS
12
-
13
- # ...