@codesweetly/react-youtube-playlist
Advanced tools
Comparing version 1.0.10 to 1.0.11
@@ -75,3 +75,3 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
youtubeVideoFiguresArray = playlistDataArray.map(function (item, index) { | ||
if (item.title !== "Deleted video") { | ||
if (item.title !== "Deleted video" && item.title !== "Private video") { | ||
return (React.createElement("figure", { className: styles.youtubeVideoFigure, key: item.id }, | ||
@@ -78,0 +78,0 @@ React.createElement("img", { alt: "Video ".concat(index + 1, " of ").concat(playlistDataArray.length), src: item.thumbnails.high.url, className: styles.youtubeVideoImage, onClick: function () { return openLightboxOnSlide(index + 1); } }), |
{ | ||
"name": "@codesweetly/react-youtube-playlist", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "An easy-to-use and responsive React component for displaying YouTube playlists on a web app.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://codesweetly.com/react-youtube-playlist", |
@@ -98,1 +98,16 @@ # React YouTube Playlist | ||
</table> | ||
## Note for Remix Users | ||
[Remix](https://remix.run/docs/en/1.19.0) users should add `"@codesweetly/react-youtube-playlist"` to their `remix.config.js` file: | ||
```diff | ||
/** @type {import('@remix-run/dev').AppConfig} */ | ||
module.exports = { | ||
ignoredRouteFiles: ["**/.*"], | ||
+ serverDependenciesToBundle: ["@codesweetly/react-youtube-playlist"], | ||
serverModuleFormat: "cjs", | ||
}; | ||
``` | ||
The [`serverDependenciesToBundle`](https://remix.run/docs/en/1.19.0/file-conventions/remix-config#serverdependenciestobundle) field tells Remix to transpile and include the `"@codesweetly/react-youtube-playlist"` package in the server bundle. |
17922
113