# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.0.0] - 2022-05-25
### Remove
- EventSummary
- NewEventSummary
- EventSummaries
- NewEventSummaries
- EventDate
- Picture
- MicrocourseExploreCard
- ApoliticalGlobalStyles
- ModalGlobalCSS
- Reset
- References to Lato fonts

## [4.17.8] - 2022-05-13
### Updated
- Make microcourse cards clickable

## [4.17.7] - 2022-05-10
### Updated
- addresses in footer

## [4.17.6] - 2022-05-03
### Updated
- MicrocourseExploreCard: removed plus logo

## [4.17.5] - 2022-04-14
### Updated
- LiteSignupFormUI and InputField: improved email validation and regex

## [4.17.4] - 2022-03-22
### Updated
- NewEventSummary: remove Online text and render full event date(including year) instead

## [4.17.3] - 2022-03-11
### Fixed
- Added `rel` attribute with `noopener` and `noreferrer` properties to external links opening in new tabs to fix a security vulnerability in older browsers

## [4.17.2] - 2022-03-09
### Changed
- LiteSignupFormUI for new account creation

## [4.17.1] - 2022-02-21
### Changed
- EU dpo email in footer

## [4.17.0] - 2022-02-03
### Release
- Search
### Updated 
- Footer: add EU DPO email and remove subscribe to plus link

## [4.16.7] - 2022-02-03
### Updated
- NewEventSummary component to not include button

## [4.16.6] - 2022-01-20
### Added
- feature flag for search url

## [4.16.5] - 2021-12-02
### Added
- New Event Summaries (search using old ones)

## [4.16.4] - 2021-12-02
### Added
- darkPink

## [4.16.3] - 2021-11-15
### Fixed
- Microcourse explore card: Continous enrolment courses should show join now text instead of start date

## [4.16.2] - 2021-11-11
### Fixed
- LiteSignupFormUI styling: revert back to original styling

## [4.16.1] - 2021-11-09
### Fixed
- InputField when used in other components not within LightSignupFormUI: introduced a diff way to add styling to it

## [4.16.0] - 2021-11-08
### Removed
- OptionalAsLink component
- AnswerReportMenu component
- TurquoiseBlueGradientBox component
- DropDownMenu component
- GradientSubtitle component
- @apolitical/common-helpers package
### Added
- @apolitical/common-helpers-authors
- @apolitical/common-helpers-dates

## [4.15.0] - 2021-11-02

### Added

- theming to LiteSignupFormUI

## [4.14.7] - 2021-11-02

### Added

- missing closing bracket in LoadingPlaceholder CSS

## [4.14.6] - 2021-10-27

### Updated

- Add domain for `performance-cookie-consent` in CookieBanner

## [4.14.5] - 2021-10-21

### Updated

- PostLanguageSwitcher to support Portuguese

## [4.14.4] - 2021-10-19

### Updated

- LignSignupFormUI: make recaptcha call when user starts inputting name or email

## [4.14.3] - 2021-10-11

### Changed

- Lato font load from Google Fonts instead of assets repository

## [4.14.2] - 2021-10-06

### Added

- Disclaimer for machine translations to PostLanguageSwitcher

## [4.14.1] - 2021-10-05

### Changed

- Removed isFeatureLocked for header
- Hardcoded Q&A into header

## [4.14.0] - 2021-10-04

### Removed

- Atom: AnchorTarget, Arrow, BlurOverlay, CardText, CtaButton, Flag, HeroImage, IFrame, Interest, MapPin, Members, MembersIcon, MoreLink, RegistrationCompleted, SearchTextButton, SingleSelect
- Molecule: AudioVersion, Biography, CardBanner, CardExpertise, CardHeader, CardLocation, Contribution, Contributions, DirectoryNavBar, Expertise, FeaturedSectionHeading, HeaderNav, Hero, Initiative, Initiatives, Interests, MapCluster, MapInfoWindow, MapPin, PaginationLink, PaginationMenu, ProfileNav, ProfileScrap, ProgressCard, RestrictedProfileJoinCard, SectionHeading, SignupFormUI
- Organism: ExpertMap, ExpertiseInterests, FeaturedCarousel, FeaturedMembers, MembersSearchForm, MicroProfile, MiniAbout, MinimalProfile, ProfileBanner, ProfileCard, SupraNavBar
- Dependencies: @apolitical/definitions, @apolitical/geography, @material-ui/core, axios, core-decorators, dot-prop, google-map-react, node-forge, query-string, react-select, react-slick, sanitize-html, styled-theming

### Fixed

- `Settings & Privacy` copy in Header menu

## [4.13.9] - 2021-09-29

### Changed

- Added some props to `MicrocourseExploreCard` for GTM purposes, to allow it to be used in different places

## [4.13.8] - 2021-09-27

### Fixed

- kebab menu styling

## [4.13.7] - 2021-09-24

### Fixed

- Author component to handle the-apolitical-community as apolitical

## [4.13.6] - 2021-09-23

### Fixed

- Author component to handle the-apolitical-community as apolitical

### Updated

- Common helpers package: computeJobDescription to render properly when missing information

## [4.13.5] - 2021-09-21

### Added

- header link to Q&A

## [4.13.4] - 2021-09-16

### Fixed

- `Author` component does not render broken authors when the name is not present
- `Author` component does not render Apolitical Community user

## [4.13.3] - 2021-09-16

### Updated

- CookieBanner to remove close button and use `cookie-banner` cookie

### Removed

- Feature flag in CookieBanner and Footer

## [4.13.2] - 2021-09-14

### Added

- reusable `KebabMenu` component
- `AnswerReportMenu` component

## [4.13.1] - 2021-09-13

### Added

- Export author component

## [4.13.0] - 2021-09-10

### Added

- Author component

## [4.12.1] - 2021-08-26

### Fixed

- New cookie popup not showing when user has old `cookie-consent` cookie

## [4.12.0] - 2021-08-10

### Added

- new version of cookie popup

## [4.11.1] - 2021-08-09

### Changed

- Manage account page url change

## [4.11.0] - 2021-08-06

### Added

- Grey loading placeholder component

## [4.10.2] - 2021-08-05

### Fixed

- Version bump due to accidental publish during testing

## Changed

### [4.10.1] - 2021-08-05

- Removed padding from login button on LiteSignUpForm (caused line break on solution-articles-ui)

## Added

### [4.10.0] - 2021-07-22

- feature flag logic for new cookie policy

## Added

### [4.9.9] - 2021-07-08

- link to /profile-ui/me

## Added

### [4.9.8] - 2021-06-21

- profileGreen color

## Changed

### [4.9.7] - 2021-06-21

- Links to apolitical pages

## Changed

### [4.9.6] - 2021-06-21

- Links to apolitical pages in footer

## Fixed

### [4.9.5] - 2021-06-17

- Header search bar

## Added

- Berlin address to footer

## Fixed

### [4.9.4] - 2021-06-15

- Hide language switcher if there are no translations

## Fixed

### [4.9.3] - 2021-06-11

### [4.9.2] - 2021-06-11

- Generate href prefix without second prefix

## Changed

## [4.9.1] - 2021-06-07

- Export iPad breakpoint

## Added

## [4.9.0] - 2021-05-20

- MicrocourseExploreCard

## Added

## [4.8.0] - 2021-05-18

- Homepage teal icons

## Added

## [4.7.8] - 2021-05-18

- boxShadow color

## Added

## [4.7.7] - 2021-05-18

- forestGreen

## Added

## [4.7.6] - 2021-04-29

- Added key to footer maps

## Removed

## [4.7.5] - 2021-04-26

- message button from profile

## Fixed

## [4.7.4] - 2021-04-26

- overriding wrong release

## Fixed

## [4.7.3] - 2021-04-26

- wrong release

## Added

## [4.7.2] - 2021-04-22

- External links in footer should open in new tab
- Change login links

## Added

## [4.7.1] - 2021-04-21

- Changed routing in header for login and logout to point at new user onboarding
- Removed HeaderLoggedOutNav and HeaderLoggedInNav components as they don't seem to be in use in any other repo
- Removed AB test from header
- Removed unnecessary profile menu links
- Changed wording in profile menu from "Account settings" to "manage my account" and re-routed it
- Changed wording and links in footer
- Changing links to homepage to be "/home" instead of "/"

## [4.7.0] - 2021-04-19

- PasswordValidatorText component

## Added

## [4.6.1] - 2021-04-16

- skipping version

## Fixed

## [4.5.6] - 2021-04-15

- Check if there is an image before rendering in header

## Added

## [4.5.5] - 2021-04-08

- Added newer design for signup desktop and mobile language switcher

## Fixed

## [4.5.4] - 2021-04-06

- changed for to htmlFor in Checkbox

## Added

## [4.5.3] - 2021-03-24

- LiteSignupFormUI

## Fixed

## [4.5.2] - 2021-03-16

- Input validation accepts apostrophes in emails

## Changed

## [4.5.1] - 2021-03-15

- Checkbox takes ref prop

## Added

## [4.5.0] - 2021-03-12

- ApoliticalWhiteLogo

## Added

## [4.4.0] - 2021-03-11

- Dropdown filter component.

## [4.3.12] - 2021-02-16

## Fixed

- EventSummary component's GTM

## [4.3.11] - 2021-02-15

## Changed

- Footer and header links
- Ab testing on header for courses/microcourses header text

## [4.3.10] - 2021-02-15

## Removed

- events feature lock

## [4.3.9] - 2021-02-10

## Changed

- Removed pattern from default switch statement used in InputField due to weird browser behaviour

## [4.3.8] - 2021-02-10

## Changed

- reusing isFeatureLocked() from common-helpers

## [4.3.7] - 2021-02-09

## Changed

- Refactored SignupFormUI to use pre-exisiting InputField
- Made ErrorMessage its own component so it could be used elsewhere rather than just as part of InputField's validation

## [4.3.6] - 2021-02-11

## Changed

- events release date

## [4.3.5] - 2021-02-11

## Changed

- linking to new events pages

## [4.3.4] - 2021-02-08

## Changed

- Added numbersAllowed prop to InputField for some text type

## [4.3.3] - 2021-01-20

## Changed

- Event feeds design

## [4.3.2] - 2021-01-20

## Added

- MarkdownTheme component, for use with contentful markdown

## [4.3.1] - 2021-01-20

## Fixed

- profile image on IE

## [4.3.0] - 2021-01-19

## Added

- Dropdown component
- Green checkmark for dropdown menu

## [4.2.2] - 2021-01-19

- Make ShareLinks component wrap on small mobile

## [4.2.1] - 2021-01-14

### Changed

- common-helpers version

## [4.2.0] - 2021-01-13

### Added

- Events summary feed from collections

## [4.1.4] - 2021-01-12

- Added error handling to img tag in ProfilePicture component

## [4.1.3] - 2021-01-12

- Added a conditional to ProfilePicture component

## [4.1.2] - 2021-01-11

- added className prop to ShareLinks so that the element can be styled externally

## [4.1.1] - 2021-01-04

- Fix spacing issue SignupFormUI component

## [4.1.0] - 2021-01-04

- SignupFormUI component

## [4.0.1] - 2020-12-04

### Changed

- Load fonts from assets repo instead of googleapis

## [4.0.0] - 2020-11-23

### Changed

- Clear out unused components

## [3.18.0] - 2020-11-18

### Added

- Share links

## [3.17.2] - 2020-11-02

### Changed

- Remove partner with us from

## [3.17.1] - 2020-11-02

### Changed

- New footer styling changes

## [3.17.0] - 2020-10-28

### Added

- New footer

## [3.16.2] - 2020-10-26

### Changed

- Using high res images in CheckmarkList

## [3.16.1] - 2020-10-21

### Added

- Colours added for the About Plus page

## [3.16.0] - 2020-10-20

### Added

- Checkmark Icon

## [3.15.0] - 2020-10-20

### Added

- Pink icons for BuyPlus page

## [3.14.8] - 2020-10-20

### Changed

- Exposed PinkOrangeGradientLine and passed down className prop

## [3.14.7] - 2020-10-19

### Added

- Classname prop to pink gradient slanted icon

## [3.14.6] - 2020-10-19

### Added

- Pink gradient slanted icon

## [3.14.5] - 2020-10-19

### Added

- GTM event context and event type to buttons in the header banner

## [3.14.4] - 2020-10-07

### Changed

- Removed `appearance` styling from Buttons - was making it look ugly on safari and was not really having any styling impact

## [3.14.3] - 2020-10-07

### Changed

- Update cerise variable to be an accessible colour.

## [3.14.2] - 2020-10-06

### Changed

- Added some handling to the FinishLessonButton component for rendering properly on IE11

## [3.14.1] - 2020-10-06

### Added

- CookieBanner to MinimalProfile component

## [3.14.0] - 2020-10-05

### Added

- CookieBanner component

## [3.13.18] - 2020-09-24

### Changed

- Version bump due to accidental publish during QA

## [3.13.17] - 2020-09-24

### Added

- Microcourse link to header

## [3.13.16] - 2020-09-21

### Added

- Created "ScreenReaderText" element for hidden text only viewable to screenreaders

## [3.13.19] - 2020-09-28

### Added

- gtm to the SVG inside of FinishLessonButton

## [3.13.15] - 2020-09-21

### Added

- Exposed laptopM breakpoint

## [3.13.14] - 2020-09-15

### Changed

- Small amendment to GreyDivider, following design review

## [3.13.13] - 2020-09-11

### Changed

- Changed the checkmark icon on checkmarklist

## [3.13.12] - 2020-09-11

### Added

- apolitical and plus logos combined in a single SVG

## [3.13.11] - 2020-09-10

### Added

- comment about deprecated breakpoints

## [3.13.10] - 2020-09-08

### Changed

- Added a variant to checkmark list to use a different type of checkmark
- Added className to a button that didn't have it, some styling tweaks

## [3.13.9] - 2020-09-08

### Fixed

- PostLanguageSwitcher url structure to accommodate microcourse pieces

## [3.13.8] - 2020-09-07

### Changed

- Added border box sizing to button

## [3.13.7] - 2020-09-07

### Changed

- Changed line height on button as a link to use em instead of rem

## [3.13.6] - 2020-09-07

### Changed

- Changed the link variant of the button to be an anchor tag styled to look like a button,
  this helps with tabbing issues

## [3.13.5] - 2020-09-01

### Added

- Variable for checking whether a browser is IE

## [3.13.4] - 2020-08-19

### Changed

- Only show logged out header components when the user is logged out and not while the user object is being loaded

## [3.13.3] - 2020-08-18

### Changed

- LessonIntroduction component to match newer designs

## [3.13.2] - 2020-08-18

### Changed

- test release, same as 3.13.4

## [3.13.1] - 2020-08-12

### Fixed

- Added GreyDivider component to atom file

## [3.13.0] - 2020-08-12

### Added

- GreyDivider component

## [3.12.1] - 2020-08-12

### Changed

- Upgraded dependency vulnerabilities

## [3.12.0] - 2020-08-11

### Added

- New ProgressCircle component

## [3.11.7] - 2020-08-11

### Changed

- FinishLessonButton: passing completed as prop and changed text that shows when completed is false.

## [3.11.6] - 2020-07-29

### Changed

- Amendments to header, passing 'name' to ProfilePicture component and adding handling when there is no 'name' prop to prevent rendering errors.

## [3.11.5] - 2020-07-29

### Added

- Erroneous release when testing profile picture amendments on RC

## [3.11.4] - 2020-07-29

### Added

- Changed the props for ProfilePicture component to make it more reuseable
- Updated components that uses ProfilePicture to pass in newly updated props

## [3.11.3] - 2020-07-29

### Fixed

- exporting ContentTypeIndicator

## [3.11.1] - 2020-07-24

### Added

- ClassName to TurquoiseBlueGradientBox for style overriding
- Colours for microcourse 'about' section into ApoliticalBrand

## [3.11.0] - 2020-07-24s

### Added

- ContentTypeIndicator component

## [3.10.1] - 2020-07-17

### Added

- Adding export for GradientSubtitle to the index.js file in the Atom folder, to make it importable by other repos
- Adding a new colour, #d2f0f2

## [3.10.0] - 2020-07-15

### Added

- New audio component with both mobile and desktop version

## [3.9.4] - 2020-07-01

### Changed

- active colour for PostLanguageSwitcher

## [3.9.3] - 2020-06-29

### Changed

- Regex for emails to allow capital letters

## [3.9.2] - 2020-06-29

### Added

- PlusLogo

## [3.9.1] - 2020-06-25

### Added

- gradients

## [3.9.0] - 2020-06-25

### Added

- RegistrationCompleted component
- TealCheckmark component

## [3.8.9] - 2020-06-24

### Fixed

- PostLanguageSwitcher bug

## [3.8.8] - 2020-06-24

### Added

- TurquoiseBlueGradientBox component

## [3.8.7] - 2020-06-23

### Added

- PostLanguageSwitcher and RotatingChevron components

## [3.8.6] - 2020-06-22

### Added

- Progress bar component
- Progress Card component
- Slight alteration to active state style on finish lesson button

## [3.8.5] - 2020-06-22

### Added

- GradientSubtitle component

## [3.8.4] - 2020-06-19

### Added

- Ported `RestrictedProfileJoinCard` from deprecated repository `styleguide-material`

## [3.8.3] - 2020-06-18

### Changed

- getting remify() from inside styleguide, rather than from the externally provided theme object

## [3.8.2] - 2020-06-18

### Changed

- Tidy up of colours and breakpoints

## [3.8.1] - 2020-06-16

### Added

- New 'LessonIntroduction' component
- New CheckmarkList component

## [3.8.0] - 2020-06-10

### Added

- New 'Finish this lesson' component button
- SVG checkmark for finish this lesson button
- Correctly importing Lato font so we can preview components correctly in styleguide

## [3.7.6] - 2020-06-09

### Added

- Prop spread for checkbox to allow gtm tags to be passed in
- Prop spread for input field to allow gtm tags to be passed in
- Optional onChange prop for input field
- Adding colours to exported colours

## [3.7.5] - 2020-06-04

### Added

- Prop spread for buttons to allow gtm tags to be passed in

## [3.7.4] - 2020-06-02

### Added

- Added className prop to Spinner
- Added className prop to LanguageSwitcher
- Added colors used in signup
- Added margin below input field error message

## [3.7.3] - 2020-05-15

### Added

- Adding prop to checkboxes to allow 'value' attribute.
- Spacing between header mobile buttons
- Adding clearer comments to input field prop types.

## [3.7.2] - 2020-05-15

### Added

- Added colors used in signup

## [3.7.1] - 2020-05-13

### Added

- Adding onBlur optional prop to input field

## [3.7.0] - 2020-05-04

### Added

- Adding ref to input fields
- Adding regexes for native html validation to input fields
- Amending error handling
- Adding required prop to checkboxes

## [3.6.4] - 2020-05-05

### Added

- Optional target prop for the Button component

## [3.6.3] - 2020-04-28

### Added

- Adjusting checkbox container height to `fit-content` following testing in external repo

## [3.6.2] - 2020-04-28

### Added

- Adding classname to input field to allow extending styles

## [3.6.1] - 2020-04-28

### Added

- Checkbox label can now take any child, allows for styling etc

## [3.6.0] - 2020-04-27

### Added

- Checkbox component
- Input field component

## [3.5.1] - 2020-04-22

### Added

- Added hover state to language switcher component

## [3.5.0] - 2020-04-21

### Added

- Language switcher component

## [3.4.13] - 2020-04-20

- Updating footer postcode

## [3.4.12] - 2020-04-20

- Allowing buttons to take className as a prop and updating README with why this is sometimes necessary.

## [3.4.11] - 2020-04-16

### Changed

- Changing Link component to an <a> in button as it was not correctly linking outside repo

## [3.4.10] - 2020-04-16

### Changed

- Linting error fix

## [3.4.9] - 2020-04-15

### Changed

- Amending button after beta review - fixing hover issue

## [3.4.8] - 2020-04-15

### Changed

- Styling tweaks to buttons

## [3.4.7] - 2020-04-15

### Changed

- Allowing buttons to take `any` as child
- Amending buttons to take a `href` and act as link if present

## [3.4.6] - 2020-04-14

### Changed

- Dependency update

## [3.4.4] - 2020-04-10

### Changed

- Darkening hover state on button to allow for greater gradient contrast
- Minor styling tweaks on buttons

## [3.4.1] - 2020-04-02

### Changed

- Minor styling tweaks to buttons following design/product review:
  - Padding on buttons
  - Hover state change speed
  - Button active state

## [3.4.0] - 2020-04-01

### Changed

- Added new accessibility-friendly buttons with multiple variants. Component `Button`.
- Added to documentation for old, deprecated buttons.

## [3.3.8] - 2020-02-12

### Changed

- Changed hex code for colour on header links to keep in line with accessibility
- Changed header search bar to direct users to new search page with input as a query param

## [3.3.7] - 2020-02-12

- Fixed a small bug to do with spacing between buttons on the desktop header.

## [3.3.6] - 2020-01-21

### Changed

- Amended spacing between buttons on mobile header
- Removed margin-right for last/rightmost button on mobile header
- Amended onClick event for mobile header menu to allow menu to close/open depending on its current state
- Added conditional rendering for mobile nav menu. Will only render if it is active. This prevents the odd whitespace that was showing between header and content.

## [3.3.5] - 2019-10-28

### Changed

- Added a ref as header-banner when signup in header takes you to /signup

## [3.3.4] - 2019-09-16

### Changed

- Switch package management from `npm` to `yarn`.
- Update header to point to new collections UI.

# Reconstructed history

## [3.3.3] - 2019-08-15

- Version bump, no changes.

## [3.3.2] - 2019-08-09

### Changed

- CSS tweaks.

## [3.3.1] - 2019-08-09

### Changed

- Updated new office address.

### Fixed

- Copyright year in footer.
- Bugfixes.

## [3.3.0] - 2019-08-09

### Changed

- CSS tweaks.

### Fixed

- Bugfixes.

## [3.2.0] - 2019-08-07

### Added

- Various components
- Descriptive README.

### Changed

- Updated header.
- Considerable internal dependencies.

## [3.1.0] - 2019-12-12

### Changed

-

## [3.0.0] - 2018-12-06

Third MAJOR version.

### Changed

-

## [2.0.0] - 2018-09-25

Second MAJOR version.

### Changed

-

## [1.0.0] - 2018-07-28

First MAJOR version.

### Changed

-
