6a5bdb5d80
* Updates the `cms-kontent` example `Image` component to implement the suggested improvements from @styfle in #37188. * Simplifies the Kontent loader host checking. * Reduces the default image quality to from `100` to `75`. * Add `tslib` dependency to fix `Module not found: Can't resolve 'tslib'` error when importing `transformImageUrl` in the `Image` component. It looks like this might be a bug in v11 of the Kontent Delivery SDK, as it appears `tslib` needs to be included as dependency, rather than dev dependency. I missed this originally as the example runs fine in the Next repo as the root `yarn.lock` has `tslib`. It's only when the example is used via `yarn create next-app` that the issue occurs. We can likely remove this in future alongside an upgrade to the SDK package once this issue has been fixed and released there. https://github.com/vercel/next.js/pull/37188 |
||
---|---|---|
.. | ||
alert.js | ||
avatar.js | ||
container.js | ||
cover-image.js | ||
date-formatter.js | ||
footer.js | ||
header.js | ||
hero-post.js | ||
image.js | ||
intro.js | ||
layout.js | ||
markdown-styles.module.css | ||
meta.js | ||
more-stories.js | ||
post-body.js | ||
post-header.js | ||
post-preview.js | ||
post-title.js | ||
section-separator.js |