rsnext/packages/next/client
Alex Castle 76bad07bdf
Add new 'raw' image layout (#34339)
This PR adds a new layout mode for images called `raw`, as discussed with the core team a while back. This mode has the following characteristics:
 - No wrapper `span` around the `img` element
 - No sizer svg
 - Almost no styles automatically added to the `img` element
 - `style` parameter is allowed and is passed through to the underlying `img` element

This also adds documentation changes to describe the new component.

There are a few tradeoffs and DX decisions that may warrant discussion/revision before merging. I'll add a few comments to highlight those issues.

- Related to #18637
2022-03-14 10:25:23 -04:00
..
dev Ensure we don't poll page in development when notFound: true is returned (#34352) 2022-02-16 18:53:48 +00:00
portal Use SWC to compile Next.js core server files (#27167) 2021-07-14 18:12:04 +00:00
streaming Add unstable_useFlushEffects hook (#34117) 2022-02-18 00:18:28 +00:00
head-manager.ts correctly assess node equality when nonce attribute is present (#27573) 2021-11-10 19:31:32 -06:00
image.tsx Add new 'raw' image layout (#34339) 2022-03-14 10:25:23 -04:00
index.tsx Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
link.tsx Allow scroll prevention on hash change (#31921) 2022-02-06 18:38:55 -06:00
next-dev.js Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
next.js Split up & tweak next/client initialization (#33838) 2022-03-07 17:09:55 +00:00
normalize-trailing-slash.ts fix basepath trailing slash (#15200) 2020-07-15 23:53:31 +00:00
page-loader.ts Fix reuse of inline flight response and 404 for RSC in node runtime (#34202) 2022-02-10 21:13:52 +00:00
performance-relayer.ts Experimental: hook version of reportWebVitals (#28769) 2021-09-24 18:35:33 +00:00
request-idle-callback.ts upgrade to typescript 4.4.3 (#29112) 2021-09-16 18:06:57 +02:00
route-announcer.tsx Fix <RouteAnnouncer/> shouldn't announce initial path under strict mode and React 18 (#34338) 2022-02-14 19:18:39 +00:00
route-loader.ts Improve and refactor some types (#31704) 2021-11-25 10:46:00 +01:00
router.ts Custom app for server components (#33149) 2022-01-14 13:01:00 +00:00
script.tsx Adds web worker support to <Script /> using Partytown (#34244) 2022-03-11 22:26:46 +00:00
use-intersection.tsx Fix lazyRoot functionality for next/image (#33933) 2022-02-07 10:46:16 -05:00
with-router.tsx Update to latest babel versions (#28174) 2021-08-17 09:18:08 +02:00