The BBC's Open Source Web Application. Contributions welcome! Used on some of our biggest websites, e.g.
Merge pull request #11574 from bbc/update-chromatic-github-action
Use latest version of chromatic UI Github action
Fix article ID regex matching (#11569)
* Fix article ID regex matching
* Update index.js
* Update index.ts
* Remove caf style overrides
* Revert "Remove caf style overrides"
This reverts commit 100f5e1ddafb2774f73024e308ef11502c88daeb.
Merge pull request #11541 from bbc/WSTEAMA-1178-add-billyb-to-homeyp
WSTEAMA-1178 Add Billboard Component to Homepage
Merge pull request #11557 from bbc/renovate/storybook-monorepo
Update storybook monorepo to v8.0.9
Merge pull request #11568 from bbc/brasil-whatsapp-articles-promotion
WhatsApp promotion for BBC Brasil
Merge pull request #11563 from bbc/update-fr-ps-sw-nav
Updates to the nav bars of Afrique, Indonesia, Pashto and Swahili
Lite page rendering (#11552)
* Testing no CSS + Cheerio
* Use base normalize stylesheet
* Style updates
* Move into separate function
* const name change
* Update component.jsx
* Enable Comscore
* a11y fix
* Use fragment mode in Cheerio
* nav removal fix
* nav stuff
* Test htmlparser2
* transform script tags
* variant header link
* Bail out of lite transform on error
* Update component.jsx
* Check for save-data
header
* Update component.jsx
* Set isLite
app wide
* Reduce normalise styling
* Update component.jsx
* Use sans-serif system font
* Update component.jsx
* clearer return properties
* simplify some classes
* Include meta tags in transform
* Testing Next.js Lite support
* Improve helmet prop handling
* Update _document.page.tsx
* Small refactor - don%27t index lite pages
* Fix issue with yarn build
removing visuallyHiddenText
class
* Simplify some element removal
* small refactor
* Update index.ts
* Update index.ts
* Simplify Express doc renderer
* Ensure single %27render mode%27
* Update component.jsx
* Removing compiler
prop from next config as it doesn%27t do anything for us
* Update index.ts
* Merge conflict resolve - move colors
out of deps
* Update component.jsx
* Update component.jsx
* Update index.ts
* Update _document.page.tsx
* Add isLite
prop to Next.js app
* Add ati pixel
* Snaps
* Retain skipLink
* Update index.ts
* Add basic opt-out link
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Prevent HTML entities output
* Update index.ts
* use classname for tracking pixel
* Update index.ts
* Revert "Update index.ts"
This reverts commit 220545e030f7b21c49039857dc405f6f477647ad.
* Revert "Revert "Update index.ts""
This reverts commit 6ccd0e4135b0124c8fb62e4b0796f832815b01e8.
* Update index.tsx
* Update index.jsx
* Skip link focus/active
* Remove checks for %27save-data%27 for now
* initial test
* Update index.test.ts
* Update index.test.ts
* more tests
* Update index.jsx
* Delete index.tsx
* Update index.jsx
* stylesheet formatting for easier reading
* Tag classes we want to keep with data-lite-class
attribute instead of using className
* Replace all custom classes with data-lite-class
attribute
* Allow css nesting
* Revert "Allow css nesting"
This reverts commit 80b8d3a55e4d566e6e18992f24bcc31fd92723ac.
* Parse CSS selectors properly
* Simplify bail out in Next.js app
* Update index.ts
* Update index.ts
* Update index.test.ts
* Update _document.page.tsx
* Try out desktop max-width
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Test out alt style of header
* Import colours from theme
* Update index.ts
* Update index.ts
* Don%27t use simorgh-envvars
on Lite as window
won%27t be available
* inline link underline colour
* Update index.ts
* Log lite transform errors
* desktop width
* Some test updates
* Update index.ts
* Update index.ts
* Create @next-swc-darwin-x64-npm-14.1.4-f6e1c10a69-8.zip
* Remove vj embeds
* yarn cache
* Merge branch %27latest%27 into lite-page-rendering-ssr-only
* cache
* cache
* css updates
* Delete @next-swc-linux-x64-gnu-npm-14.1.4-19585e8eca-f6e866ca14.zip
* Update index.ts
* Update index.ts
* Testing with more styling
* Update index.tsx
* cache
* Update index.ts
* Update index.ts
* Remove bunch of data
* cache
* cache
* Update index.ts
* Update index.tsx
* Separate out renderers
* Update component.jsx
* Update types
* Re-use LiteRenderer in Next.js app
* Remove lite-
prefix from actual class names
* Put style tags back to dsih
* Update index.ts
* rejig
* Update component.tsx
* Type fixes
* Add initial Storybook story for Lite renderer
* Update index.stories.tsx
* topic page
* Move to Document folder
* Add .lite
extension to anchor tags
* Add %27use emotion styles%27 flag
* Type tidy
* Update _document.page.tsx
* Separate out renderers in Next.js app
* Add lite snapshot to component.test.jsx
* fix pagination display
* Update index.ts
* cache
* Update index.ts
* Better CSS syntax
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Update index.ts
* Update LiteRenderer.tsx
* Update LiteRenderer.tsx
* Start using Emotion styles
* Expose Emotion styles in Next.js app
* Revert Emotion Next.js css exposure, seems to work out of the box?
* Fix types
* Update index.test.ts
* Add isLite
flags and global style overrides
* Remove litePageTransform
and cheerio
* Update liteStyles.ts
* Tidy up now unneeded bits
* Re-use LiteRenderer component across both apps
* Update liteStyles.ts
* Test/snapshot fixes
* Update index.tsx
* cache
* cache
* Homepage grid overrides for lite
* Update liteStyles.ts
* Update logger.const.js
* Update component.tsx
* Update liteStyles.ts
* Update index.styles.tsx
* Update component.tsx
* Pass body content as prop
* Add styles to homepage curationgrid
* Remove litestyles CSS override
* Update index.jsx
* Update index.jsx
* Expose Emotion styles in Next.js app to remove inlining of style tags
* Update _document.page.tsx
* Update _document.page.tsx
* Use NO_JS_CLASSNAME
in Next.js document
* Update index.jsx
* Test isLite Storybook toggle
* Couple more media player checks
* Remove empty string defaults
* Update component.tsx
* Update component.tsx
* Update component.test.jsx.snap
* Fix hydration warning for canonical
* Fix styles tag
* Test out litePageTransforms for anchor tags
* Disable ads on Lite for now
* Update litePageTransforms.ts
* Set isLite
on Next.js page types
* Hide social embeds
* Update canonical.test.ts.snap
* Expose isLite
in ThemeProvider to allow direct styling
* Update index.stories.tsx
---------
Co-authored-by: Toby Cox [email protected]
Merge pull request #11556 from bbc/cps-toggles-fix
Adds missing toggles to cpsAsset article fetch call
Remove leading slash in ARTICLE_PAGE
default path return (#11564)
* Remove leading slash in ARTICLE_PAGE
default path return
* Add test cases
* Update index.ts
Re-disable Test Thai asset (#11562)