@ndla/video-search 1.5.48 → 2.0.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.
- package/es/PreviewVideo.js +1 -1
- package/es/VideoLoadMoreButton.js +1 -1
- package/es/VideoSearch.js +1 -1
- package/es/VideoSearchForm.js +1 -1
- package/es/VideoSearchList.js +1 -1
- package/es/VideoSearchResultBrightcove.js +1 -1
- package/es/VideoSearchResultYouTube.js +1 -1
- package/es/VideoTabs.js +1 -1
- package/lib/PreviewVideo.js +3 -3
- package/lib/VideoLoadMoreButton.js +3 -3
- package/lib/VideoSearch.js +6 -6
- package/lib/VideoSearchForm.js +3 -3
- package/lib/VideoSearchList.js +6 -6
- package/lib/VideoSearchResultBrightcove.js +8 -8
- package/lib/VideoSearchResultYouTube.js +7 -7
- package/lib/VideoTabs.js +2 -2
- package/package.json +7 -7
package/es/PreviewVideo.js
CHANGED
|
@@ -12,7 +12,7 @@ import PropTypes from 'prop-types';
|
|
|
12
12
|
import BEMHelper from 'react-bem-helper';
|
|
13
13
|
import Button from '@ndla/button';
|
|
14
14
|
import { Cross } from '@ndla/icons/action';
|
|
15
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
15
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
16
16
|
var classes = new BEMHelper({
|
|
17
17
|
name: 'video-preview',
|
|
18
18
|
prefix: 'c-'
|
|
@@ -10,7 +10,7 @@ import PropTypes from 'prop-types';
|
|
|
10
10
|
import BEMHelper from 'react-bem-helper';
|
|
11
11
|
import Button from '@ndla/button';
|
|
12
12
|
import { BrightcoveShape, YouTubeShape } from './shapes';
|
|
13
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
13
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
14
14
|
var classes = new BEMHelper({
|
|
15
15
|
name: 'video-search',
|
|
16
16
|
prefix: 'c-'
|
package/es/VideoSearch.js
CHANGED
|
@@ -42,7 +42,7 @@ import VideoSearchList from './VideoSearchList';
|
|
|
42
42
|
import VideoLoadMoreButton from './VideoLoadMoreButton';
|
|
43
43
|
import VideoTabs from './VideoTabs';
|
|
44
44
|
import { getLastPage } from './videoHelpers';
|
|
45
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
45
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
46
46
|
var classes = new BEMHelper({
|
|
47
47
|
name: 'video-search',
|
|
48
48
|
prefix: 'c-'
|
package/es/VideoSearchForm.js
CHANGED
|
@@ -33,7 +33,7 @@ import React, { Component } from 'react';
|
|
|
33
33
|
import PropTypes from 'prop-types';
|
|
34
34
|
import Button from '@ndla/button';
|
|
35
35
|
import BEMHelper from 'react-bem-helper';
|
|
36
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
36
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
37
37
|
var classes = new BEMHelper({
|
|
38
38
|
name: 'video-search',
|
|
39
39
|
prefix: 'c-'
|
package/es/VideoSearchList.js
CHANGED
|
@@ -11,7 +11,7 @@ import BEMHelper from 'react-bem-helper';
|
|
|
11
11
|
import { BrightcoveShape, YouTubeShape } from './shapes';
|
|
12
12
|
import VideoSearchResultBrightcove from './VideoSearchResultBrightcove';
|
|
13
13
|
import VideoSearchResultYouTube from './VideoSearchResultYouTube';
|
|
14
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
14
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
15
15
|
var classes = new BEMHelper({
|
|
16
16
|
name: 'video-search',
|
|
17
17
|
prefix: 'c-'
|
|
@@ -15,7 +15,7 @@ import { PanoramaPhotosphere } from '@ndla/icons/common';
|
|
|
15
15
|
import BEMHelper from 'react-bem-helper';
|
|
16
16
|
import PreviewVideo from './PreviewVideo';
|
|
17
17
|
import { LicenseShape, BrightcoveShape } from './shapes';
|
|
18
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
18
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
19
19
|
var classes = new BEMHelper({
|
|
20
20
|
name: 'video-search',
|
|
21
21
|
prefix: 'c-'
|
|
@@ -14,7 +14,7 @@ import BEMHelper from 'react-bem-helper';
|
|
|
14
14
|
import PreviewVideo from './PreviewVideo';
|
|
15
15
|
import { YouTubeShape } from './shapes';
|
|
16
16
|
import { setLocaleDate, setYouTubeDuration } from './videoHelpers';
|
|
17
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
17
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
18
18
|
var classes = new BEMHelper({
|
|
19
19
|
name: 'video-search',
|
|
20
20
|
prefix: 'c-'
|
package/es/VideoTabs.js
CHANGED
|
@@ -30,7 +30,7 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
30
30
|
import React, { Component } from 'react';
|
|
31
31
|
import PropTypes from 'prop-types';
|
|
32
32
|
import Tabs from '@ndla/tabs';
|
|
33
|
-
import { jsx as ___EmotionJSX } from "@emotion/
|
|
33
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
34
34
|
|
|
35
35
|
var VideoTabs = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(VideoTabs, _Component);
|
package/lib/PreviewVideo.js
CHANGED
|
@@ -15,7 +15,7 @@ var _button = _interopRequireDefault(require("@ndla/button"));
|
|
|
15
15
|
|
|
16
16
|
var _action = require("@ndla/icons/action");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
@@ -29,12 +29,12 @@ var classes = new _reactBemHelper["default"]({
|
|
|
29
29
|
function PreviewVideo(_ref) {
|
|
30
30
|
var onVideoPreview = _ref.onVideoPreview,
|
|
31
31
|
children = _ref.children;
|
|
32
|
-
return (0,
|
|
32
|
+
return (0, _react2.jsx)("div", classes(), (0, _react2.jsx)(_button["default"], _extends({}, classes('close'), {
|
|
33
33
|
stripped: true,
|
|
34
34
|
onClick: function onClick() {
|
|
35
35
|
return onVideoPreview(undefined);
|
|
36
36
|
}
|
|
37
|
-
}), (0,
|
|
37
|
+
}), (0, _react2.jsx)(_action.Cross, null)), children);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
PreviewVideo.propTypes = {
|
|
@@ -15,7 +15,7 @@ var _button = _interopRequireDefault(require("@ndla/button"));
|
|
|
15
15
|
|
|
16
16
|
var _shapes = require("./shapes");
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _react2 = require("@emotion/react");
|
|
19
19
|
|
|
20
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
21
21
|
|
|
@@ -42,10 +42,10 @@ var VideoLoadMoreButton = function VideoLoadMoreButton(props) {
|
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
return (0,
|
|
45
|
+
return (0, _react2.jsx)("div", classes('load-videos'), (0, _react2.jsx)(_button["default"], {
|
|
46
46
|
disabled: searching,
|
|
47
47
|
onClick: loadMoreVideos
|
|
48
|
-
}, searching ? (0,
|
|
48
|
+
}, searching ? (0, _react2.jsx)("div", classes('spinner')) : translations.loadMoreVideos));
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
VideoLoadMoreButton.propTypes = {
|
package/lib/VideoSearch.js
CHANGED
|
@@ -23,7 +23,7 @@ var _VideoTabs = _interopRequireDefault(require("./VideoTabs"));
|
|
|
23
23
|
|
|
24
24
|
var _videoHelpers = require("./videoHelpers");
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _react2 = require("@emotion/react");
|
|
27
27
|
|
|
28
28
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
|
|
@@ -264,7 +264,7 @@ var VideoSearch = /*#__PURE__*/function (_Component) {
|
|
|
264
264
|
|
|
265
265
|
var paginationItem = function paginationItem() {
|
|
266
266
|
if (selectedType === 'brightcove') {
|
|
267
|
-
return (0,
|
|
267
|
+
return (0, _react2.jsx)(_VideoLoadMoreButton["default"], {
|
|
268
268
|
searching: searching,
|
|
269
269
|
videos: videos,
|
|
270
270
|
loadMoreVideos: _this4.loadMoreVideos,
|
|
@@ -273,7 +273,7 @@ var VideoSearch = /*#__PURE__*/function (_Component) {
|
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
return (0,
|
|
276
|
+
return (0, _react2.jsx)(_pager["default"], {
|
|
277
277
|
page: page || 1,
|
|
278
278
|
lastPage: lastPage,
|
|
279
279
|
onClick: _this4.changeQueryPage
|
|
@@ -283,7 +283,7 @@ var VideoSearch = /*#__PURE__*/function (_Component) {
|
|
|
283
283
|
var searchListTabs = enabledSources.map(function (source) {
|
|
284
284
|
return {
|
|
285
285
|
title: source,
|
|
286
|
-
content: (0,
|
|
286
|
+
content: (0, _react2.jsx)("div", classes('list'), selectedType === source.toLowerCase() && (0, _react2.jsx)(_VideoSearchList["default"], {
|
|
287
287
|
translations: translations,
|
|
288
288
|
selectedType: source.toLowerCase(),
|
|
289
289
|
selectedVideo: selectedVideo,
|
|
@@ -295,12 +295,12 @@ var VideoSearch = /*#__PURE__*/function (_Component) {
|
|
|
295
295
|
}))
|
|
296
296
|
};
|
|
297
297
|
});
|
|
298
|
-
return (0,
|
|
298
|
+
return (0, _react2.jsx)("div", classes(), (0, _react2.jsx)(_VideoSearchForm["default"], {
|
|
299
299
|
onSearchQuerySubmit: this.submitVideoSearchQuery,
|
|
300
300
|
query: query,
|
|
301
301
|
searching: searching,
|
|
302
302
|
translations: translations
|
|
303
|
-
}), (0,
|
|
303
|
+
}), (0, _react2.jsx)(_VideoTabs["default"], {
|
|
304
304
|
searchTypes: selectedType,
|
|
305
305
|
tabs: searchListTabs,
|
|
306
306
|
onSearchTypeChange: this.onSearchTypeChange
|
package/lib/VideoSearchForm.js
CHANGED
|
@@ -13,7 +13,7 @@ var _button = _interopRequireDefault(require("@ndla/button"));
|
|
|
13
13
|
|
|
14
14
|
var _reactBemHelper = _interopRequireDefault(require("react-bem-helper"));
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _react2 = require("@emotion/react");
|
|
17
17
|
|
|
18
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
|
|
@@ -96,13 +96,13 @@ var SearchForm = /*#__PURE__*/function (_Component) {
|
|
|
96
96
|
var _this$props = this.props,
|
|
97
97
|
searching = _this$props.searching,
|
|
98
98
|
translations = _this$props.translations;
|
|
99
|
-
return (0,
|
|
99
|
+
return (0, _react2.jsx)("div", classes('form'), (0, _react2.jsx)("input", _extends({}, classes('form-query'), {
|
|
100
100
|
type: "text",
|
|
101
101
|
onChange: this.handleQueryChange,
|
|
102
102
|
onKeyPress: this.onKeyPress,
|
|
103
103
|
value: this.state.query,
|
|
104
104
|
placeholder: translations.searchPlaceholder
|
|
105
|
-
})), (0,
|
|
105
|
+
})), (0, _react2.jsx)(_button["default"], _extends({}, classes('form-button'), {
|
|
106
106
|
onClick: this.handleSubmit,
|
|
107
107
|
loading: searching
|
|
108
108
|
}), translations.searchButtonTitle));
|
package/lib/VideoSearchList.js
CHANGED
|
@@ -17,7 +17,7 @@ var _VideoSearchResultBrightcove = _interopRequireDefault(require("./VideoSearch
|
|
|
17
17
|
|
|
18
18
|
var _VideoSearchResultYouTube = _interopRequireDefault(require("./VideoSearchResultYouTube"));
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _react2 = require("@emotion/react");
|
|
21
21
|
|
|
22
22
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
|
|
@@ -44,17 +44,17 @@ var VideoSearchList = function VideoSearchList(props) {
|
|
|
44
44
|
searching = props.searching;
|
|
45
45
|
|
|
46
46
|
if ((!videos || videos.length === 0) && !searching) {
|
|
47
|
-
return (0,
|
|
47
|
+
return (0, _react2.jsx)("p", null, translations.noResults);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
if (searching && !(videos.length > 0)) {
|
|
51
|
-
return (0,
|
|
51
|
+
return (0, _react2.jsx)("div", classes('result-spinner'));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
var videoresults = function videoresults() {
|
|
55
55
|
if (selectedType === 'youtube') {
|
|
56
56
|
return videos.map(function (video) {
|
|
57
|
-
return (0,
|
|
57
|
+
return (0, _react2.jsx)(_VideoSearchResultYouTube["default"], {
|
|
58
58
|
key: video.cacheId,
|
|
59
59
|
video: video,
|
|
60
60
|
onVideoPreview: onVideoPreview,
|
|
@@ -67,7 +67,7 @@ var VideoSearchList = function VideoSearchList(props) {
|
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
return videos.map(function (video) {
|
|
70
|
-
return (0,
|
|
70
|
+
return (0, _react2.jsx)(_VideoSearchResultBrightcove["default"], {
|
|
71
71
|
key: video.id,
|
|
72
72
|
video: video,
|
|
73
73
|
onVideoPreview: onVideoPreview,
|
|
@@ -79,7 +79,7 @@ var VideoSearchList = function VideoSearchList(props) {
|
|
|
79
79
|
});
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
return (0,
|
|
82
|
+
return (0, _react2.jsx)("div", classes('list-inner'), videoresults());
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
VideoSearchList.propTypes = {
|
|
@@ -21,7 +21,7 @@ var _PreviewVideo = _interopRequireDefault(require("./PreviewVideo"));
|
|
|
21
21
|
|
|
22
22
|
var _shapes = require("./shapes");
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _react2 = require("@emotion/react");
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
|
|
@@ -43,30 +43,30 @@ function VideoSearchResultBrightcove(_ref) {
|
|
|
43
43
|
var license = video.custom_fields && video.custom_fields.license ? (0, _licenses.getLicenseByNBTitle)(video.custom_fields.license, locale) : '';
|
|
44
44
|
var thumbnailSource = video.images && video.images.thumbnail ? video.images.thumbnail.src : '';
|
|
45
45
|
var is360video = video.projection === 'equirectangular';
|
|
46
|
-
return (0,
|
|
46
|
+
return (0, _react2.jsx)("div", _extends({
|
|
47
47
|
key: video.id
|
|
48
|
-
}, classes('list-item', active)), (0,
|
|
48
|
+
}, classes('list-item', active)), (0, _react2.jsx)("div", classes('list-item-inner'), (0, _react2.jsx)("img", {
|
|
49
49
|
role: "presentation",
|
|
50
50
|
alt: "presentation",
|
|
51
51
|
src: thumbnailSource
|
|
52
|
-
}), (0,
|
|
52
|
+
}), (0, _react2.jsx)("div", classes('information'), (0, _react2.jsx)("h2", classes('header'), video.name || '', is360video && (0, _react2.jsx)(_common.PanoramaPhotosphere, null)), (0, _react2.jsx)("div", classes('copyright-author'), video.custom_fields && video.custom_fields.licenseinfo ? video.custom_fields.licenseinfo : ''), (0, _react2.jsx)("div", classes('license'), license.rights ? (0, _react2.jsx)(_licenses.LicenseByline, {
|
|
53
53
|
licenseRights: license.rights,
|
|
54
54
|
locale: locale
|
|
55
|
-
}) : license), (0,
|
|
55
|
+
}) : license), (0, _react2.jsx)(_button["default"], _extends({}, classes('button'), {
|
|
56
56
|
outline: true,
|
|
57
57
|
onClick: function onClick() {
|
|
58
58
|
return onVideoPreview(video);
|
|
59
59
|
}
|
|
60
|
-
}), translations.previewVideo), (0,
|
|
60
|
+
}), translations.previewVideo), (0, _react2.jsx)(_button["default"], _extends({
|
|
61
61
|
"data-cy": "use-video"
|
|
62
62
|
}, classes('button'), {
|
|
63
63
|
onClick: function onClick() {
|
|
64
64
|
return onSelectVideo(video);
|
|
65
65
|
}
|
|
66
|
-
}), translations.addVideo))), selectedVideo && selectedVideo.id === video.id ? (0,
|
|
66
|
+
}), translations.addVideo))), selectedVideo && selectedVideo.id === video.id ? (0, _react2.jsx)(_PreviewVideo["default"], {
|
|
67
67
|
onVideoPreview: onVideoPreview,
|
|
68
68
|
selectedType: "brightcove"
|
|
69
|
-
}, (0,
|
|
69
|
+
}, (0, _react2.jsx)("iframe", {
|
|
70
70
|
className: "c-video-preview__video",
|
|
71
71
|
title: selectedVideo.name,
|
|
72
72
|
src: "//players.brightcove.net/".concat(selectedVideo.account_id, "/BkLm8fT_default/index.html?videoId=").concat(selectedVideo.id),
|
|
@@ -19,7 +19,7 @@ var _shapes = require("./shapes");
|
|
|
19
19
|
|
|
20
20
|
var _videoHelpers = require("./videoHelpers");
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _react2 = require("@emotion/react");
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
25
|
|
|
@@ -43,32 +43,32 @@ function VideoSearchResultYouTube(_ref) {
|
|
|
43
43
|
var activeVideo = (selectedVideo === null || selectedVideo === void 0 ? void 0 : (_selectedVideo$pagema = selectedVideo.pagemap) === null || _selectedVideo$pagema === void 0 ? void 0 : (_selectedVideo$pagema2 = _selectedVideo$pagema.videoobject) === null || _selectedVideo$pagema2 === void 0 ? void 0 : (_selectedVideo$pagema3 = _selectedVideo$pagema2[0]) === null || _selectedVideo$pagema3 === void 0 ? void 0 : _selectedVideo$pagema3.videoid) === (videoData === null || videoData === void 0 ? void 0 : videoData.videoid);
|
|
44
44
|
|
|
45
45
|
if (videoData) {
|
|
46
|
-
return (0,
|
|
46
|
+
return (0, _react2.jsx)("div", classes('list-item', activeVideo ? 'active' : ''), (0, _react2.jsx)("div", classes('list-item-inner'), (0, _react2.jsx)("img", {
|
|
47
47
|
role: "presentation",
|
|
48
48
|
alt: "presentation",
|
|
49
49
|
src: videoData.thumbnailurl
|
|
50
|
-
}), (0,
|
|
50
|
+
}), (0, _react2.jsx)("div", classes('information'), (0, _react2.jsx)("h2", null, videoData.name), (0, _react2.jsx)("div", null, "".concat(translations.publishedDate, ": ").concat((0, _videoHelpers.setLocaleDate)(videoData.datepublished, locale))), (0, _react2.jsx)("div", null, "".concat(translations.duration, ": ").concat((0, _videoHelpers.setYouTubeDuration)(videoData.duration))), (0, _react2.jsx)("div", null, "".concat(translations.interactioncount, ": ").concat(videoData.interactioncount)), (0, _react2.jsx)("div", null, videoData.description), (0, _react2.jsx)(_button["default"], _extends({}, classes('button'), {
|
|
51
51
|
outline: true,
|
|
52
52
|
onClick: function onClick() {
|
|
53
53
|
return onVideoPreview(video);
|
|
54
54
|
}
|
|
55
|
-
}), translations.previewVideo), (0,
|
|
55
|
+
}), translations.previewVideo), (0, _react2.jsx)(_button["default"], _extends({
|
|
56
56
|
"data-cy": "use-video"
|
|
57
57
|
}, classes('button'), {
|
|
58
58
|
onClick: function onClick() {
|
|
59
59
|
return onSelectVideo(video);
|
|
60
60
|
}
|
|
61
|
-
}), translations.addVideo))), activeVideo ? (0,
|
|
61
|
+
}), translations.addVideo))), activeVideo ? (0, _react2.jsx)(_PreviewVideo["default"], {
|
|
62
62
|
onVideoPreview: onVideoPreview,
|
|
63
63
|
selectedType: "youtube"
|
|
64
|
-
}, (0,
|
|
64
|
+
}, (0, _react2.jsx)("iframe", {
|
|
65
65
|
className: "c-video-preview__video",
|
|
66
66
|
title: selectedVideo.title,
|
|
67
67
|
src: selectedVideo.pagemap.videoobject[0].embedurl,
|
|
68
68
|
allowFullScreen: true
|
|
69
69
|
})) : '');
|
|
70
70
|
} else {
|
|
71
|
-
return (0,
|
|
71
|
+
return (0, _react2.jsx)("div", null);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
|
package/lib/VideoTabs.js
CHANGED
|
@@ -11,7 +11,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
var _tabs = _interopRequireDefault(require("@ndla/tabs"));
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _react2 = require("@emotion/react");
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
17
17
|
|
|
@@ -71,7 +71,7 @@ var VideoTabs = /*#__PURE__*/function (_Component) {
|
|
|
71
71
|
key: "render",
|
|
72
72
|
value: function render() {
|
|
73
73
|
var tabs = this.props.tabs;
|
|
74
|
-
return (0,
|
|
74
|
+
return (0, _react2.jsx)(_tabs["default"], {
|
|
75
75
|
onSelect: this.handleOnSelect,
|
|
76
76
|
tabs: tabs
|
|
77
77
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ndla/video-search",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A simple library for searching NDLA videos",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -24,15 +24,15 @@
|
|
|
24
24
|
"react-bem-helper": "^1.4.1"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@ndla/button": "^
|
|
28
|
-
"@ndla/icons": "^
|
|
29
|
-
"@ndla/licenses": "^
|
|
30
|
-
"@ndla/pager": "^
|
|
31
|
-
"@ndla/tabs": "^
|
|
27
|
+
"@ndla/button": "^4.0.0",
|
|
28
|
+
"@ndla/icons": "^2.0.0",
|
|
29
|
+
"@ndla/licenses": "^6.0.0",
|
|
30
|
+
"@ndla/pager": "^2.0.0",
|
|
31
|
+
"@ndla/tabs": "^2.0.0",
|
|
32
32
|
"react-bem-helper": "^1.4.1"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "7f4578ae15653f2f6a1efde17d24991e77f026bc"
|
|
38
38
|
}
|