@mjhls/mjh-framework 1.0.344 → 1.0.346
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/README.md +1 -1
- package/dist/cjs/index.js +19 -7
- package/dist/esm/index.js +19 -7
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -1853,7 +1853,8 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1853
1853
|
headers: {
|
|
1854
1854
|
Accept: 'application/json',
|
|
1855
1855
|
'x-api-key': clientId,
|
|
1856
|
-
Authorization: 'Bearer ' + accessToken
|
|
1856
|
+
Authorization: 'Bearer ' + accessToken,
|
|
1857
|
+
'Content-type': 'application/json'
|
|
1857
1858
|
},
|
|
1858
1859
|
body: AdSlot._JSON$stringify({ filter: filter }),
|
|
1859
1860
|
method: 'POST'
|
|
@@ -2022,7 +2023,6 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2022
2023
|
Row,
|
|
2023
2024
|
null,
|
|
2024
2025
|
data && data.map(function (row, index) {
|
|
2025
|
-
|
|
2026
2026
|
var speakerInfo = [];
|
|
2027
2027
|
if (row.customFields) {
|
|
2028
2028
|
speakerInfo = row.customFields.filter(function (x) {
|
|
@@ -12998,7 +12998,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
12998
12998
|
var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
12999
12999
|
var nodes = _ref.nodes,
|
|
13000
13000
|
client = _ref.client,
|
|
13001
|
-
getSerializers = _ref.getSerializers
|
|
13001
|
+
getSerializers = _ref.getSerializers,
|
|
13002
|
+
accountIDs = _ref.accountIDs;
|
|
13002
13003
|
|
|
13003
13004
|
var builder = index.imageUrlBuilder(client);
|
|
13004
13005
|
function urlFor(source) {
|
|
@@ -13132,6 +13133,15 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13132
13133
|
var queue = Math.floor(duration / 10);
|
|
13133
13134
|
var segment = Math.floor(current / queue);
|
|
13134
13135
|
AdSlot.Beam.report_beam_video('Ready', main.main_16, duration, current, segment);
|
|
13136
|
+
|
|
13137
|
+
//autoplay
|
|
13138
|
+
|
|
13139
|
+
//Small pause before starting next video
|
|
13140
|
+
setTimeout(function () {
|
|
13141
|
+
//Youtube API to start video playing automatically
|
|
13142
|
+
var id = smoothscroll.getYoutubeId(vidUrl);
|
|
13143
|
+
event.target.loadVideoById(id);
|
|
13144
|
+
}, 1500);
|
|
13135
13145
|
};
|
|
13136
13146
|
|
|
13137
13147
|
// Handle video end
|
|
@@ -13220,9 +13230,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13220
13230
|
React__default.createElement(
|
|
13221
13231
|
'div',
|
|
13222
13232
|
{ className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
13223
|
-
vidUrl && vidType == 'youtube'
|
|
13233
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, { videoId: smoothscroll.getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
|
|
13224
13234
|
return handleOnEnd(e);
|
|
13225
|
-
} })
|
|
13235
|
+
} }),
|
|
13236
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
13237
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs }),
|
|
13226
13238
|
React__default.createElement(
|
|
13227
13239
|
'div',
|
|
13228
13240
|
{
|
|
@@ -13273,7 +13285,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13273
13285
|
React__default.createElement(
|
|
13274
13286
|
'style',
|
|
13275
13287
|
{ jsx: 'true' },
|
|
13276
|
-
'\n .vid-series .video-detail iframe {\n height: 415px !important;\n }\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
13288
|
+
'\n .vid-series .video-detail iframe {\n height: 415px !important;\n }\n span.btn {\n margin: 0 1rem;\n }\n .brightcove .video-js {\n float: none;\n width: 100%;\n height: 385px;\n }\n @media screen and (max-width: 1399px) {\n .brightcove .video-js {\n height: 360px;\n }\n }\n @media screen and (max-width: 495px) {\n .brightcove .video-js {\n height: 255px;\n }\n }\n '
|
|
13277
13289
|
)
|
|
13278
13290
|
);
|
|
13279
13291
|
};
|
|
@@ -13702,7 +13714,7 @@ var getSerializers = function getSerializers() {
|
|
|
13702
13714
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
13703
13715
|
var node = _ref2.node;
|
|
13704
13716
|
|
|
13705
|
-
return React__default.createElement(YouTubeGallery, { nodes: node, client: client, getSerializers: getSerializers(client) });
|
|
13717
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
13706
13718
|
},
|
|
13707
13719
|
figure: function figure(_ref3) {
|
|
13708
13720
|
var node = _ref3.node;
|
package/dist/esm/index.js
CHANGED
|
@@ -1850,7 +1850,8 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
1850
1850
|
headers: {
|
|
1851
1851
|
Accept: 'application/json',
|
|
1852
1852
|
'x-api-key': clientId,
|
|
1853
|
-
Authorization: 'Bearer ' + accessToken
|
|
1853
|
+
Authorization: 'Bearer ' + accessToken,
|
|
1854
|
+
'Content-type': 'application/json'
|
|
1854
1855
|
},
|
|
1855
1856
|
body: _JSON$stringify({ filter: filter }),
|
|
1856
1857
|
method: 'POST'
|
|
@@ -2019,7 +2020,6 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
2019
2020
|
Row,
|
|
2020
2021
|
null,
|
|
2021
2022
|
data && data.map(function (row, index) {
|
|
2022
|
-
|
|
2023
2023
|
var speakerInfo = [];
|
|
2024
2024
|
if (row.customFields) {
|
|
2025
2025
|
speakerInfo = row.customFields.filter(function (x) {
|
|
@@ -12995,7 +12995,8 @@ var VideoMp4 = function VideoMp4(_ref) {
|
|
|
12995
12995
|
var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
12996
12996
|
var nodes = _ref.nodes,
|
|
12997
12997
|
client = _ref.client,
|
|
12998
|
-
getSerializers = _ref.getSerializers
|
|
12998
|
+
getSerializers = _ref.getSerializers,
|
|
12999
|
+
accountIDs = _ref.accountIDs;
|
|
12999
13000
|
|
|
13000
13001
|
var builder = imageUrlBuilder(client);
|
|
13001
13002
|
function urlFor(source) {
|
|
@@ -13129,6 +13130,15 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13129
13130
|
var queue = Math.floor(duration / 10);
|
|
13130
13131
|
var segment = Math.floor(current / queue);
|
|
13131
13132
|
Beam.report_beam_video('Ready', main_16, duration, current, segment);
|
|
13133
|
+
|
|
13134
|
+
//autoplay
|
|
13135
|
+
|
|
13136
|
+
//Small pause before starting next video
|
|
13137
|
+
setTimeout(function () {
|
|
13138
|
+
//Youtube API to start video playing automatically
|
|
13139
|
+
var id = getYoutubeId(vidUrl);
|
|
13140
|
+
event.target.loadVideoById(id);
|
|
13141
|
+
}, 1500);
|
|
13132
13142
|
};
|
|
13133
13143
|
|
|
13134
13144
|
// Handle video end
|
|
@@ -13217,9 +13227,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13217
13227
|
React__default.createElement(
|
|
13218
13228
|
'div',
|
|
13219
13229
|
{ className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
|
|
13220
|
-
vidUrl && vidType == 'youtube'
|
|
13230
|
+
vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, { videoId: getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
|
|
13221
13231
|
return handleOnEnd(e);
|
|
13222
|
-
} })
|
|
13232
|
+
} }),
|
|
13233
|
+
vidUrl && vidType == 'mp4' && React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
|
|
13234
|
+
vidUrl && vidType == 'brightcove' && React__default.createElement(Video, { node: { videoID: vidUrl, source: 'brightcove' }, accountIDs: accountIDs }),
|
|
13223
13235
|
React__default.createElement(
|
|
13224
13236
|
'div',
|
|
13225
13237
|
{
|
|
@@ -13270,7 +13282,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
|
|
|
13270
13282
|
React__default.createElement(
|
|
13271
13283
|
'style',
|
|
13272
13284
|
{ jsx: 'true' },
|
|
13273
|
-
'\n .vid-series .video-detail iframe {\n height: 415px !important;\n }\n span.btn {\n margin: 0 1rem;\n }\n '
|
|
13285
|
+
'\n .vid-series .video-detail iframe {\n height: 415px !important;\n }\n span.btn {\n margin: 0 1rem;\n }\n .brightcove .video-js {\n float: none;\n width: 100%;\n height: 385px;\n }\n @media screen and (max-width: 1399px) {\n .brightcove .video-js {\n height: 360px;\n }\n }\n @media screen and (max-width: 495px) {\n .brightcove .video-js {\n height: 255px;\n }\n }\n '
|
|
13274
13286
|
)
|
|
13275
13287
|
);
|
|
13276
13288
|
};
|
|
@@ -13699,7 +13711,7 @@ var getSerializers = function getSerializers() {
|
|
|
13699
13711
|
youtubeGallery: function youtubeGallery(_ref2) {
|
|
13700
13712
|
var node = _ref2.node;
|
|
13701
13713
|
|
|
13702
|
-
return React__default.createElement(YouTubeGallery, { nodes: node, client: client, getSerializers: getSerializers(client) });
|
|
13714
|
+
return React__default.createElement(YouTubeGallery, { nodes: node, accountIDs: videoAccountIDs || {}, client: client, getSerializers: getSerializers(client) });
|
|
13703
13715
|
},
|
|
13704
13716
|
figure: function figure(_ref3) {
|
|
13705
13717
|
var node = _ref3.node;
|