Releases: newscorp-ghfb/NewsKit
v7.7.3
What's Changed
New Features 🎉
- feat/930-extend-toNewsKitIcon-types by @KayKostadinov in #931
- feat/930-extend-toNewsKitIcon-types-2 by @KayKostadinov in #932
- Feat/930 extend to news kit icon types 3 by @KayKostadinov in #933
New Contributors
- @KayKostadinov made their first contribution in #931
Full Changelog: v7.7.0...v7.7.3
v7.7.0
What's Changed
New Features 🎉
Bug Fixes 🐛
Documentation 📝
- ci(919): update node version in circleci by @mutebg in #920
- docs(862): new design overview page by @lhaggar in #918
New Contributors
Full Changelog: https://github.com/newscorp-ghfb/NewsKit/compare/[email protected]
v7.6.0
What's Changed
New Features 🎉
- feat(TMR-1285): nonce prop to Tealium component by @tbradbury in #916
Other Changes 🧱
Full Changelog: v7.5.0...v7.6.0
v7.5.0
What's Changed
New Features 🎉
Full Changelog: https://github.com/newscorp-ghfb/NewsKit/compare/[email protected]
v7.4.0
v7.3.1
What's Changed
New Features 🎉
- feat(731) migrate newskit demo to docs site by @mutebg in #870
- feat(TMR-1134): refactor form input logic by @tbradbury in #895
Bug Fixes 🐛
- fix(795): automated a11y tests fails on website homepage by @JohnTParsons in #864
- Fix/821 pagination spacing using columnGap by @mstuartf in #872
- fix(896): fix package.json test when bump version by @mutebg in #897
Documentation 📝
- Docs(722) - Slider component storybook scenarios by @jannuk59 in #848
- docs(792): update Codemod readme by @Vanals in #873
- docs(720): add progress indicator story by @mstuartf in #882
- docs(812): add accessibility statement to docs site by @JohnTParsons in #879
- docs(723): Standfirst Storybook Enhancement by @jannuk59 in #881
- docs(811): add font metrics calculator to theme docs by @mstuartf in #849
- docs(723): Title Bar Storybook Enhancement by @jannuk59 in #889
- Docs(822) Card Composable doc site by @jannuk59 in #876
- docs(852): add composed section and slices by @mutebg in #878
Other Changes 🧱
- chore(deps): bump yaml from 2.1.1 to 2.2.2 in /lib/omlet by @dependabot in #855
- ci(866): pin create-next-app version by @mstuartf in #867
- ci(798): move build icons into install deps by @mstuartf in #863
- chore(744): remove deprecated aws/eks by @JohnTParsons in #869
- chore(846): Add sun composable example by @Xin00163 in #833
- chore(871): snapshot test package.json by @JohnTParsons in #885
- chore(824): run percy in parallel by @mutebg in #888
- chore(843): percy flaky tests by @mutebg in #890
- chore(843): remove empty include option in skip-percy-tests by @mutebg in #893
Full Changelog: v7.3.0...v7.3.1
v7.3.0
What's Changed
New Features 🎉
- feat(751): add optimisation to with-own-theme by @JohnTParsons in #838
- feat(PPDSC-2859): use newskit-website theme from publisher by @LukeFinch in #718
Bug Fixes 🐛
Documentation 📝
- docs(729): update tooltip component scenarios storybook by @JohnTParsons in #823
- docs(730): update video player component scenarios storybook by @JohnTParsons in #830
- docs(728) - Toast component update scenarios - storybook by @jannuk59 in #820
Other Changes 🧱
- [Snyk] Upgrade glob from 8.0.3 to 8.1.0 by @snyk-bot in #701
- ci(834): use circle CI test splitting for cypress by @jps in #841
- chore(deps-dev): bump webpack from 5.75.0 to 5.76.0 by @dependabot in #837
- chore(803): improve contribution guidance for developers by @JohnTParsons in #844
- ci(727): upgrade axe-core by @mstuartf in #850
- chore(805): nx and rspack on existing project structure by @JohnTParsons in #847
- chore(834): cypress upgrade by @JohnTParsons in #835
Full Changelog: v7.2.0...v7.3.0
v7.2.0
What's Changed
New Features 🎉
Bug Fixes 🐛
- fix(745): date time structure by @mutebg in #761
- fix(809): Button alignment mismatching on Custom restore focus - Modal scenario by @jannuk59 in #813
Documentation 📝
- docs(PPDSC-2477): remove sourcepoint component by @mutebg in #461
- docs(740): add font-smoothing: antialiased by @mutebg in #778
- docs:(PPDSC-2709) update icons scenarios in storybook by @LukeFinch in #697
- docs(PPDSC-2702): updated fieldset stories by @mstuartf in #738
- docs(PPDSC-2703): update form stories by @mstuartf in #768
- docs(719): text cropping storybook by @mutebg in #781
- docs(741): update radio-group stories by @mutebg in #785
- docs(742): link stories by @mstuartf in #797
- docs(743): update tag component scenarios - storybook by @JohnTParsons in #789
- Docs/ppdsc 2804 update modal component storybook scenarios by @jannuk59 in #788
- docs(752): svg chrome issue by @mutebg in #796
- docs(734): move header above sidebar in html by @mstuartf in #801
- docs(739): switch story updates by @mstuartf in #790
- docs(721): update select component scenarios - storybook by @JohnTParsons in #807
- docs(746): hide e2e tests from storybook by @mutebg in #819
Other Changes 🧱
- chore(775): move to GitHub issues by @jps in #776
- Docs/ppdsc 2514 checkbox component scenario by @RashikaNewsUK in #711
- fix(747): hide version on home page by @mstuartf in #793
- Build/782 parallel cypress webpack 5 by @jps in #800
- build(782): update webpack type definitions by @jps in #804
- ci(702): allow snyk updates to run on CI by @mutebg in #817
- Ci/702 allow snyk prs by @mutebg in #818
- [Snyk] Upgrade jscodeshift from 0.13.1 to 0.14.0 by @snyk-bot in #702
- [Snyk] Upgrade yargs from 17.5.1 to 17.7.0 by @snyk-bot in #700
- chore(deps): bump minimist from 0.2.1 to 0.2.4 by @dependabot in #677
- chore(deps): bump minimatch from 3.0.4 to 3.0.8 by @dependabot in #774
- chore(deps): bump @sideway/formula from 3.0.0 to 3.0.1 by @dependabot in #773
- [Snyk] Upgrade @babel/runtime-corejs3 from 7.16.3 to 7.20.13 by @snyk-bot in #704
- [Snyk] Upgrade react-hook-form from 7.20.2 to 7.43.1 by @snyk-bot in #703
New Contributors
Full Changelog: v7.1.0...v7.2.0
v7.1.0
What's Changed
New Features 🎉
- feat(PPDSC-2786): pagination component by @JohnTParsons in #672
- Feat/ppdsc 2806 update outline utility scenario by @Vanals in #696
- feat(PPDSC-2839): pagination support for custom components by @JohnTParsons in #707
Bug Fixes 🐛
- feat(ISSUE-4): add fullWidthSingleCell prop to structuredListCell by @Xin00163 in #693
- fix(PPDSC-2847): focus outlines by @mstuartf in #691
- fix(SCS-70): structured-list with divider a11y issue by @evgenitsn in #710
Other Changes 🧱
- docs(PPDSC-2670): update title bar page by @mstuartf in #657
- chore(PPDSC-2848): remove ecr and python in circleci config by @Xin00163 in #676
- ci(PPDSC-0000): updating channel for ci notifycations by @Vanals in #685
- docs(PPDSC-2850): add next links to homepage by @Xin00163 in #679
- docs(PPDSC-2649): add patterns solutions section by @mstuartf in #678
- docs(PPDSC-0000): storybook & docs updates by @mutebg in #698
- docs(PPDSC-2803): new menu scenarios by @mstuartf in #688
- docs(PPDSC-2855) pagination documentation by @RashikaNewsUK in #694
- Docs/ppdsc 2808 popover stories by @mstuartf in #695
- docs(PPDSC-2872): pagination documentation for defaults & customisations by @JohnTParsons in #715
- Docs/ppdsc 2707 update headline component storybook scenarios by @jannuk59 in #692
- docs(PPDSC-2692): update date-time stories by @mutebg in #713
- docs(PPDSC-2704): update stories by @mstuartf in #714
- docs(PPDSC-2690): update drawer storybook by @mutebg in #716
- docs(PPDSC-2874): sync up pagination docs wiki <-> site by @JohnTParsons in #763
Full Changelog: v7.0.0...v7.1.0
v7.0.0
What's Changed
New Features 🎉
- chore(PPDSC-2837): update TNL font by @evgenitsn in #649
- feat(PPDSC-2838): use new s3 for pr links by @Xin00163 in #663
- feat(PPDSC-2798): expose css variables by @mutebg in #653
Bug Fixes 🐛
- fix(PPDSC-1866): handle string line height by @mstuartf in #643
- Fix/ppdsc 2611 revert by @mstuartf in #656
- fix(PPDSC-2829): add inverse focus outline styles by @mstuartf in #639
- Fix/ppdsc 2854 flaky tests by @mstuartf in #680
Other Changes 🧱
- chore(PPDSC-2732): migrate staging docs from k8s to S3 by @JohnTParsons in #638
- ci(PPDSC-2746): migrate prod docs from k8s to s3 by @JohnTParsons in #644
- docs(PPDSC-2801): update Label storybook scenarios by @evgenitsn in #652
- docs(PPDSC-2668): standfirst page by @mstuartf in #651
- docs(PPDSC-2805): update Ordered list component storybook scenarios by @evgenitsn in #654
- chore(PPDSC-2832): simplify percy regeneration script by @JohnTParsons in #658
- docs(PPDSC-2807): update Paragraph component storybook scenarios by @evgenitsn in #659
- docs(PPDSC-2821): update TextBlock component storybook scenarios by @evgenitsn in #661
- docs(PPDSC-2667) image documentation by @RashikaNewsUK in #647
- Chore/ppdsc 0000 v7 release by @mstuartf in #675
- docs(PPDSC-2811): update screen-reader-only scenarios by @mutebg in #662
- docs(PPDSC-2819): update StructuredList component storybook scenarios by @evgenitsn in #673
- docs(PPDSC-2796): video player documentation by @RashikaNewsUK in #670
- docs(PPDSC-2812): update scroll stories by @mutebg in #667
- Docs/ppdsc 2562 content updates miscellaneous by @jannuk59 in #633
Full Changelog: v6.9.0...v7.0.0
Changes:
Card
The card’s default style preset have changed. headlineHeadingInteractive
style preset has changed color in the base state.
Before
base: {
color: '{{colors.inkBase}}',
},
After
base: {
color: '{
{colors.inkContrast}}',
},
If you want to keep the previous color we suggest you change the headlineHeadingInteractive
style preset from your theme, with the previous color
Divider
The DividerInverse style preset has changed.
Specifically, the border color from borderColor: inkInverse
to borderColor: interface010
If you want to keep the old styling, please add a style preset for the Divider in your theme containing the old tokens
Before
{
dividerInverse: {
base: {
borderStyle: 'solid',
borderColor: '{{colors.inkInverse}}',
borderWidth: '{{borders.borderWidthDefault}}',
},
},
}
After
{
dividerInverse: {
base: {
borderStyle: 'solid',
borderColor: '{{colors.interface010}}',
borderWidth: '{{borders.borderWidthDefault}}',
},
},
}
Accordion
The accordion
defaults transition preset has been changed in V7.
Before
accordion: {
header: {
transitionPreset: 'backgroundColorChange',
...
},
}
After
accordion: {
header: {
transitionPreset: ['fontColorChange', 'backgroundColorChange'],
...
}
}
accordionHeader
style preset has also been changed:
Before
accordionHeader: {
base: {
backgroundColor: '{{colors.interface010}}',
...
},
hover: {
...
},
disabled: {
...
},
},
After
accordionHeader: {
base: {
backgroundColor: '{{colors.interfaceBackground}}',
...
iconColor: '{{colors.inkBase}}',
},
hover: {
...
iconColor: '{{colors.interactiveInput040}}',
},
disabled: {
...
iconColor: '{{colors.inkNonEssential}}',
},
}
AudioPlayer
A few changes have been made to the AudioPlayer component styling in v7:
- Default
AudioPlayerTimeDisplay
typographyPreset changed fromutilityButton030
toutilityLabel020
- Default
AudioPlayerVolumeControl
spaceBetween changed fromspace030
tospace010
- Default
AudioPlayerPlayPauseButton
size changed fromlarge
tomedium
audioPlayerVolumeControlThumb
style preset updatedaudioPlayerVolumeControlPopover
style preset updated
Follow these steps to restore the old styling to the AudioPlayer component:
1. Pass a size prop to the AudioPlayerPlayPauseButton:
- <AudioPlayerPlayPauseButton />
+ <AudioPlayerPlayPauseButton size="large" />
2. Add a spaceBetween
override to the AudioPlayerVolumeControl:
- <AudioPlayerVolumeControl />
+ <AudioPlayerVolumeControl overrides={{spaceBetween: ‘space020’}} />
3. Add a typographyPreset
override to the AudioPlayerTimeDisplay:
- <AudioPlayerTimeDisplay />
+ <AudioPlayerTimeDisplay overrides={{typographyPreset: ‘utilityLabel010’}} />
4. Restore the old audioPlayerVolumeControlThumb
style preset:
audioPlayerVolumeControlThumb: {
base: {
boxShadow: '{{shadows.shadow010}}',
backgroundColor: '{{colors.interactivePrimary030}}',
borderStyle: 'solid',
- borderColor: '{{colors.interactivePrimary010}}',
+ borderColor: '{{colors.interfaceBackground}}',
borderWidth: '{{borders.borderWidth010}}',
borderRadius: '{{borders.borderRadiusCircle}}',
iconColor: '{{colors.inkNonEssential}}',
},
},
5. Restore the old audioPlayerVolumeControlPopover
style preset:
audioPlayerVolumeControlPopover: {
base: {
- boxShadow: '{{shadows.shadow050}}',
+ boxShadow: '{{shadows.shadow060}}',
borderRadius: '{{borders.borderRadiusDefault}}',
- backgroundColor: '{{colors.interfaceBackground}}',
+ backgroundColor: '{{colors.interface010}}',
},
},
Banner
Padding and grid overrides have been changed in the Banner component in v7.
To restore the old styling add padding and grid overrides as follows:
- <Banner />
+ <Banner
+ overrides={{
+ paddingInline: "spaceInset045",
+ paddingBlock: "spaceInset045",
+ grid: {
+ props: {
+ xsMargin: "space040",
+ smMargin: "space040",
+ mdMargin: "space040",
+ lgMargin: "space050",
+ xlMargin: "space050",
+ xsRowGutter: "space040",
+ smRowGutter: "space040",
+ mdRowGutter: "space040",
+ lgRowGutter: "space050",
+ xlRowGutter: "space050",
+ xsColumnGutter: "space040",
+ smColumnGutter: "space040",
+ mdColumnGutter: "space040",
+ lgColumnGutter: "space050",
+ xlColumnGutter: "space050"
+ }
+ }
+ }} />
OrderedList
If a paragraph of text is supplied to OrderedList, the second line onwards will left align with the first line, not with the number, for consistency with UnorderedList behaviour.
Slider
The Slider component defaults and sliderLabels
style preset have been changed in V7.
component defaults
Before
slider: {
track: {
size: 'sizing030',
...
},
...
}
After
slider: {
track: {
size: 'sizing020',
...
},
...
}
StylePreset:
color
and iconColor
for base state has been changed sliderLabels
stylePreset:
Before
sliderLabels: {
base: {
color: '{{colors.inkSubtle}}',
iconColor: '{{colors.inkSubtle}}',
...
},
...
}
After
sliderLabels: {
base: {
color: '{{colors.inkBase}}',
iconColor: '{{colors.inkBase}}',
...
},
...
}
Popover
The Popover style presets have been changed in V7.
Before
popover: {
base: {
boxShadow: '{{shadows.shadow050}}',
...
},
...
},
popoverPanel: {
base: {
color: '{{colors.neutral090}}',
...
},
...
},
popoverHeader: {
base: {
borderColor: '{{colors.neutral040}}',
...
},
...
},
popoverCloseButtonContainer: {
base: {
borderColor: '{{colors.neutral040}}',
...
},
...
}
After
popover: {
base: {
boxShadow: '{{shadows.shadow060}}',
...
},
...
},
popoverPanel: {
base: {
color: '{{colors.inkBase}}',
...
},
...
},
popoverHeader: {
base: {
borderColor: '{{colors.interface050}}',
...
},
...
},
popoverCloseButtonContainer: {
base: {
borderColor: '{{colors.interface050}}',
...
},
...
}
Select
The Select component defaults have been changed in V7.
Before
select: {
small: {
button: {
minHeight: 'sizing060',
...
},
...
},
medium: {
button: {
spaceInset: 'spaceInset020',
...