@mjhls/mjh-framework 1.0.345 → 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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.345
2
+ # mjh-framework v. 1.0.346
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -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) {
@@ -13229,9 +13230,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13229
13230
  React__default.createElement(
13230
13231
  'div',
13231
13232
  { className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
13232
- vidUrl && vidType == 'youtube' ? React__default.createElement(YouTube, { videoId: smoothscroll.getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
13233
+ vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, { videoId: smoothscroll.getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
13233
13234
  return handleOnEnd(e);
13234
- } }) : React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
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 }),
13235
13238
  React__default.createElement(
13236
13239
  'div',
13237
13240
  {
@@ -13282,7 +13285,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13282
13285
  React__default.createElement(
13283
13286
  'style',
13284
13287
  { jsx: 'true' },
13285
- '\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 '
13286
13289
  )
13287
13290
  );
13288
13291
  };
@@ -13711,7 +13714,7 @@ var getSerializers = function getSerializers() {
13711
13714
  youtubeGallery: function youtubeGallery(_ref2) {
13712
13715
  var node = _ref2.node;
13713
13716
 
13714
- 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) });
13715
13718
  },
13716
13719
  figure: function figure(_ref3) {
13717
13720
  var node = _ref3.node;
package/dist/esm/index.js CHANGED
@@ -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) {
@@ -13226,9 +13227,11 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13226
13227
  React__default.createElement(
13227
13228
  'div',
13228
13229
  { className: 'video-block', style: { position: 'relative', overflow: 'hidden' } },
13229
- vidUrl && vidType == 'youtube' ? React__default.createElement(YouTube, { videoId: getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
13230
+ vidUrl && vidType == 'youtube' && React__default.createElement(YouTube, { videoId: getYoutubeId(vidUrl), opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: function onEnd(e) {
13230
13231
  return handleOnEnd(e);
13231
- } }) : React__default.createElement(VideoMp4, { url: vidUrl, thumbnail: vidThumbnail, vidLoaded: vidLoaded }),
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 }),
13232
13235
  React__default.createElement(
13233
13236
  'div',
13234
13237
  {
@@ -13279,7 +13282,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13279
13282
  React__default.createElement(
13280
13283
  'style',
13281
13284
  { jsx: 'true' },
13282
- '\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 '
13283
13286
  )
13284
13287
  );
13285
13288
  };
@@ -13708,7 +13711,7 @@ var getSerializers = function getSerializers() {
13708
13711
  youtubeGallery: function youtubeGallery(_ref2) {
13709
13712
  var node = _ref2.node;
13710
13713
 
13711
- 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) });
13712
13715
  },
13713
13716
  figure: function figure(_ref3) {
13714
13717
  var node = _ref3.node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.345",
3
+ "version": "1.0.346",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",