rsnext/examples/cms-kontent/components
Tom Marshall 6a5bdb5d80
Update cms-kontent example to action PR feedback (#37206)
* 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
2022-05-26 10:29:16 -05:00
..
alert.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
avatar.js Fix cms-kontent example Next/Image domain error (#37188) 2022-05-25 10:40:18 -05:00
container.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
cover-image.js Fix cms-kontent example Next/Image domain error (#37188) 2022-05-25 10:40:18 -05:00
date-formatter.js Fix an error in Kontent CMS example caused by a file name typo (#20863) 2021-01-07 16:18:01 +00:00
footer.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
header.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
hero-post.js docs: update CMS examples to use the new tw grid gaps (#34917) 2022-03-01 07:47:28 -06:00
image.js Update cms-kontent example to action PR feedback (#37206) 2022-05-26 10:29:16 -05:00
intro.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
layout.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
markdown-styles.module.css Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
meta.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
more-stories.js docs: update CMS examples to use the new tw grid gaps (#34917) 2022-03-01 07:47:28 -06:00
post-body.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
post-header.js Examples blogs: fix spelling (#17049) 2020-09-13 13:06:29 +00:00
post-preview.js Update dependencies of all CMS examples. (#27001) 2021-07-09 14:43:56 +02:00
post-title.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00
section-separator.js Add Kontent example (#16034) 2020-08-24 22:58:53 +00:00