@ndla/video-search 8.0.61-alpha.0 → 8.0.63-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,7 @@ export const VideoListItem = _ref2 => {
137
137
  })]
138
138
  })]
139
139
  })]
140
- }), isPreviewing && /*#__PURE__*/_jsxs(PreviewWrapper, {
140
+ }), !!isPreviewing && /*#__PURE__*/_jsxs(PreviewWrapper, {
141
141
  id: `video-preview-${video.id}`,
142
142
  children: [/*#__PURE__*/_jsx("div", {}), /*#__PURE__*/_jsx(PreviewIframe, {
143
143
  title: video.name,
@@ -44,7 +44,7 @@ export const VideoResultList = _ref => {
44
44
  locale: locale,
45
45
  onVideoSelect: onVideoSelect
46
46
  }, `${video.id}-${index}`))
47
- }), isLoading && /*#__PURE__*/_jsx(Spinner, {}), existsMoreVideos && /*#__PURE__*/_jsx(Button, {
47
+ }), !!isLoading && /*#__PURE__*/_jsx(Spinner, {}), !!existsMoreVideos && /*#__PURE__*/_jsx(Button, {
48
48
  onClick: onShowMore,
49
49
  children: translations.loadMoreVideos
50
50
  })]
@@ -143,7 +143,7 @@ const VideoListItem = _ref2 => {
143
143
  })]
144
144
  })]
145
145
  })]
146
- }), isPreviewing && /*#__PURE__*/(0, _jsxRuntime.jsxs)(PreviewWrapper, {
146
+ }), !!isPreviewing && /*#__PURE__*/(0, _jsxRuntime.jsxs)(PreviewWrapper, {
147
147
  id: `video-preview-${video.id}`,
148
148
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(PreviewIframe, {
149
149
  title: video.name,
@@ -50,7 +50,7 @@ const VideoResultList = _ref => {
50
50
  locale: locale,
51
51
  onVideoSelect: onVideoSelect
52
52
  }, `${video.id}-${index}`))
53
- }), isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Spinner, {}), existsMoreVideos && /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Button, {
53
+ }), !!isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Spinner, {}), !!existsMoreVideos && /*#__PURE__*/(0, _jsxRuntime.jsx)(_primitives.Button, {
54
54
  onClick: onShowMore,
55
55
  children: translations.loadMoreVideos
56
56
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ndla/video-search",
3
- "version": "8.0.61-alpha.0",
3
+ "version": "8.0.63-alpha.0",
4
4
  "description": "A simple library for searching NDLA videos",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -26,13 +26,13 @@
26
26
  "es"
27
27
  ],
28
28
  "dependencies": {
29
- "@ndla/icons": "^8.0.43-alpha.0",
30
- "@ndla/licenses": "^8.0.3-alpha.0",
31
- "@ndla/primitives": "^1.0.56-alpha.0",
32
- "@ndla/styled-system": "^0.0.27"
29
+ "@ndla/icons": "^8.0.45-alpha.0",
30
+ "@ndla/licenses": "^8.0.4-alpha.0",
31
+ "@ndla/primitives": "^1.0.58-alpha.0",
32
+ "@ndla/styled-system": "^0.0.28"
33
33
  },
34
34
  "devDependencies": {
35
- "@ndla/preset-panda": "^0.0.44",
35
+ "@ndla/preset-panda": "^0.0.46",
36
36
  "@ndla/types-embed": "^5.0.4-alpha.0",
37
37
  "@pandacss/dev": "^0.46.0"
38
38
  },
@@ -43,5 +43,5 @@
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "9977b1ca38cb32c54458378b13fea3f7ca19a187"
46
+ "gitHead": "34f26de8c12341b710a32b6839bacc0caebfcc2e"
47
47
  }