Releases: freeCodeCamp/ui
Releases · freeCodeCamp/ui
v3.1.1
What's Changed
- fix: quiz answer content overflow by @LaurenRenaeCampbell in #440
New Contributors
- @LaurenRenaeCampbell made their first contribution in #440
Full Changelog: v3.1.0...v3.1.1
v3.1.0
What's Changed
- feat: add data-value attribute to QuizQuestion answer by @huyenltnguyen in #390
- chore: add prepublishOnly script by @huyenltnguyen in #344
- fix: display quiz correct count on demo by @a2937 in #377
- fix: adjust space between quiz questions by @huyenltnguyen in #405
- test: add proper classes to container story by @shootermv in #410
New Contributors
- @shootermv made their first contribution in #410
Full Changelog: v3.0.0...v3.1.0
v3.0.0
What's Changed
- fix: update background color by @a2937 in #375
- fix: add radio option color class by @a2937 in #376
- feat: allow customizing passing grade by @huyenltnguyen in #382
- feat: support displaying quiz answer feedback by @huyenltnguyen in #356
Breaking Changes
useQuiz
now requires apassingGrade
prop- The value of
correctAnswerCount
returned fromuseQuiz
can beundefined
instead of always being a number. Theundefined
value indicates that the quiz has not been validated (thevalidateAnswer
function hasn't been called) QuizQuestion
no longer accepts avalidation
prop. The prop is now folded into theQuizQuestion
'sanswers
prop.- Old:
<QuizQuestion question="Lorem ipsum" answers={[ { label: "Option 1", value: 1 }, { label: "Option 2", value: 2 }, ]} selectedAnswer={1} validation={{ state: "correct", message: "Correct!" }} />
- New:
<QuizQuestion question="Lorem ipsum" answers={[ { label: "Option 1", value: 1, validation: { state: "correct", message: "Correct!" } }, { label: "Option 2", value: 2 }, ]} selectedAnswer={1} />
- Old:
Full Changelog: v2.3.1...v3.0.0
v2.3.1
What's Changed
- fix: remove default text color in
p
by @huyenltnguyen in #370
Full Changelog: v2.3.0...v2.3.1
v2.3.0
What's Changed
- fix: move validation status to the selected answer by @huyenltnguyen in #358
- refactor: initialize questions directly by @ojeytonwilliams in #364
- feat: allow quiz answer value to have string type by @huyenltnguyen in #365
Full Changelog: v2.2.0...v2.3.0
v2.2.0
What's Changed
- feat: allow PrismFormatted to be collapsible by @huyenltnguyen in #359
Full Changelog: v2.1.0...v2.2.0
v2.1.0
What's Changed
- feat: handle onSuccess and onFailure in useQuiz by @huyenltnguyen in #341
Full Changelog: v2.0.0...v2.1.0
v2.0.0
What's Changed
- fix: allow QuizQuestion to render PrismFormatted in answer label by @huyenltnguyen in #322
- fix: rendering of quiz question with code by @huyenltnguyen in #328
- fix: move react and react-dom under peerDependencies by @huyenltnguyen in #78
- fix: Quiz validation by @huyenltnguyen in #323
- feat: add TS to PrismFormatted languages by @huyenltnguyen in #334
- fix: quiz question display by @huyenltnguyen in #333
- chore(ci): add package build test to CI by @huyenltnguyen in #338
Breaking Changes
The return type of useQuiz
has changed.
- Old: an array of questions
- New: an object containing
questions
,validateAnswers
, andcorrectAnswerCount
properties
Full Changelog: v1.2.0...v2.0.0
v1.2.0
What's Changed
- feat: add PrismFormatted by @huyenltnguyen in #303
- feat: add getThemingClass util by @huyenltnguyen in #241
- feat: add QuizQuestion and Quiz components by @huyenltnguyen in #298
- feat: add Callout component by @huyenltnguyen in #240
- docs: add stories for how PrismFormatted handles long lines by @huyenltnguyen in #319
Full Changelog: 1.1.0...v1.2.0
1.1.0
What's Changed
- fix: add a top margin to DropDownButton by @huyenltnguyen in #208
- fix: dropdown icon alignment by @huyenltnguyen in #237
- ci: test against multiple react versions by @ojeytonwilliams in #238
- feat: add Spacer component by @huyenltnguyen in #248
- fix: text-left to text-start by @gagan-bhullar-tech in #270
- fix: add noopener to Button by @gagan-bhullar-tech in #271
- fix(a11y): increase the opacity of input placeholder by @huyenltnguyen in #268
New Contributors
- @gagan-bhullar-tech made their first contribution in #270
Full Changelog: v1.0.3...1.1.0