@mjhls/mjh-framework 1.0.374 → 1.0.376

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.374
2
+ # mjh-framework v. 1.0.376
3
3
 
4
4
 
5
5
  > Foundation Framework
package/dist/cjs/index.js CHANGED
@@ -8930,7 +8930,7 @@ var Video = function Video(_ref) {
8930
8930
  var queue = Math.floor(duration / 10);
8931
8931
  var segment = Math.floor(current / queue);
8932
8932
 
8933
- Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8933
+ AdSlot.Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8934
8934
  });
8935
8935
 
8936
8936
  // play
@@ -8939,7 +8939,7 @@ var Video = function Video(_ref) {
8939
8939
  var current = player.currentTime();
8940
8940
  var queue = Math.floor(duration / 10);
8941
8941
  var segment = Math.floor(current / queue);
8942
- Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8942
+ AdSlot.Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8943
8943
  });
8944
8944
 
8945
8945
  // pause
@@ -8948,7 +8948,7 @@ var Video = function Video(_ref) {
8948
8948
  var current = player.currentTime();
8949
8949
  var queue = Math.floor(duration / 10);
8950
8950
  var segment = Math.floor(current / queue);
8951
- Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8951
+ AdSlot.Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8952
8952
  });
8953
8953
 
8954
8954
  // end
@@ -8957,16 +8957,17 @@ var Video = function Video(_ref) {
8957
8957
  var current = player.currentTime();
8958
8958
  var queue = Math.floor(duration / 10);
8959
8959
  var segment = Math.floor(current / queue);
8960
- Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8960
+ AdSlot.Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8961
8961
  });
8962
8962
 
8963
+ var queueProgress = [];
8963
8964
  player.on('timeupdate', function (evt) {
8964
8965
  var duration = player.mediainfo.duration;
8965
8966
  var current = player.currentTime();
8966
8967
  var queue = Math.floor(duration / 10);
8967
8968
  var segment = Math.floor(current / queue);
8968
8969
  if (!queueProgress.includes(segment)) {
8969
- Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8970
+ AdSlot.Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8970
8971
  queueProgress.push(segment);
8971
8972
  }
8972
8973
  });
@@ -8977,7 +8978,7 @@ var Video = function Video(_ref) {
8977
8978
  var id = player.ads.ad.id;
8978
8979
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8979
8980
 
8980
- Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8981
+ AdSlot.Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8981
8982
  });
8982
8983
 
8983
8984
  // ad ended
@@ -8985,7 +8986,7 @@ var Video = function Video(_ref) {
8985
8986
  var duration = player.ads.ad.duration;
8986
8987
  var id = player.ads.ad.id;
8987
8988
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8988
- Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8989
+ AdSlot.Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8989
8990
  });
8990
8991
  };
8991
8992
 
package/dist/esm/index.js CHANGED
@@ -20,7 +20,7 @@ import { i as imageUrlBuilder } from './index-51a80699.js';
20
20
  import { L as LazyLoad } from './index-5f9f807a.js';
21
21
  import { c as clean_html_1, h as html_decode_1 } from './entities-7cc3bf45.js';
22
22
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-a47a84a4.js';
23
- import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam$1 } from './AdSlot-1cc6bdb0.js';
23
+ import { _ as _JSON$stringify, a as _asyncToGenerator, r as regenerator, D as DFPAdSlot, B as Beam } from './AdSlot-1cc6bdb0.js';
24
24
  export { D as AdSlot, B as Beam } from './AdSlot-1cc6bdb0.js';
25
25
  import './promise-86cb8313.js';
26
26
  import { A as ADInfeed } from './ADInfeed-c65835b9.js';
@@ -6296,7 +6296,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6296
6296
  var duration = player.getDuration();
6297
6297
  var queue = Math.floor(duration / 10);
6298
6298
  var segment = Math.floor(current / queue);
6299
- Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
6299
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
6300
6300
  };
6301
6301
 
6302
6302
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -6306,7 +6306,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6306
6306
  var segment = Math.floor(current / queue);
6307
6307
 
6308
6308
  if (!queueProgress.includes(segment)) {
6309
- Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
6309
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
6310
6310
  queueProgress.push(segment);
6311
6311
  }
6312
6312
  };
@@ -6319,7 +6319,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6319
6319
  var queue = Math.floor(duration / 10);
6320
6320
  var segment = Math.floor(current / queue);
6321
6321
 
6322
- Beam$1.report_beam_video('Play', main_16, duration, current, segment);
6322
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
6323
6323
 
6324
6324
  if (!playReported) {
6325
6325
  setPlayReported(true);
@@ -6338,7 +6338,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6338
6338
  var queue = Math.floor(duration / 10);
6339
6339
  var segment = Math.floor(current / queue);
6340
6340
 
6341
- Beam$1.report_beam_video('End', main_16, duration, current, segment);
6341
+ Beam.report_beam_video('End', main_16, duration, current, segment);
6342
6342
  setEndReported(true);
6343
6343
  clearInterval(intervalID);
6344
6344
  }
@@ -6351,7 +6351,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
6351
6351
  var queue = Math.floor(duration / 10);
6352
6352
  var segment = Math.floor(current / queue);
6353
6353
 
6354
- Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
6354
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
6355
6355
  };
6356
6356
 
6357
6357
  return React__default.createElement(YouTube, { videoId: id, opts: opts, onReady: handleOnReady, onPlay: handleOnPlay, onPause: handleOnPause, onEnd: handleOnEnd });
@@ -8957,6 +8957,7 @@ var Video = function Video(_ref) {
8957
8957
  Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8958
8958
  });
8959
8959
 
8960
+ var queueProgress = [];
8960
8961
  player.on('timeupdate', function (evt) {
8961
8962
  var duration = player.mediainfo.duration;
8962
8963
  var current = player.currentTime();
@@ -13605,7 +13606,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13605
13606
  var duration = player.duration;
13606
13607
  var queue = Math.floor(duration / 10);
13607
13608
  var segment = Math.floor(current / queue);
13608
- Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13609
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
13609
13610
  };
13610
13611
 
13611
13612
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -13614,7 +13615,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13614
13615
  var queue = Math.floor(duration / 10);
13615
13616
  var segment = Math.floor(current / queue);
13616
13617
  if (!queueProgress.includes(segment)) {
13617
- Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13618
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
13618
13619
  queueProgress.push(segment);
13619
13620
  }
13620
13621
  };
@@ -13626,7 +13627,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13626
13627
  var duration = player.duration;
13627
13628
  var queue = Math.floor(duration / 10);
13628
13629
  var segment = Math.floor(current / queue);
13629
- Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13630
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
13630
13631
 
13631
13632
  if (!playReported) {
13632
13633
  event.persist();
@@ -13646,7 +13647,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13646
13647
  var queue = Math.floor(duration / 10);
13647
13648
  var segment = Math.floor(current / queue);
13648
13649
 
13649
- Beam$1.report_beam_video('End', main_16, duration, current, segment);
13650
+ Beam.report_beam_video('End', main_16, duration, current, segment);
13650
13651
  setEndReported(true);
13651
13652
  clearInterval(intervalID);
13652
13653
  }
@@ -13658,7 +13659,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13658
13659
  var duration = player.duration - current;
13659
13660
  var queue = Math.floor(duration / 10);
13660
13661
  var segment = Math.floor(current / queue);
13661
- Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13662
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
13662
13663
  };
13663
13664
 
13664
13665
  return React__default.createElement(
@@ -13825,7 +13826,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13825
13826
  var duration = player.getDuration();
13826
13827
  var queue = Math.floor(duration / 10);
13827
13828
  var segment = Math.floor(current / queue);
13828
- Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13829
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
13829
13830
 
13830
13831
  //autoplay
13831
13832
 
@@ -13846,7 +13847,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13846
13847
  var queue = Math.floor(duration / 10);
13847
13848
  var segment = Math.floor(current / queue);
13848
13849
 
13849
- Beam$1.report_beam_video('End', main_16, duration, current, segment);
13850
+ Beam.report_beam_video('End', main_16, duration, current, segment);
13850
13851
  setEndReported(true);
13851
13852
  clearInterval(intervalID);
13852
13853
  }
@@ -13875,7 +13876,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13875
13876
  var queue = Math.floor(duration / 10);
13876
13877
  var segment = Math.floor(current / queue);
13877
13878
  if (!queueProgress.includes(segment)) {
13878
- Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13879
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
13879
13880
  queueProgress.push(segment);
13880
13881
  }
13881
13882
  };
@@ -13888,7 +13889,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13888
13889
  var queue = Math.floor(duration / 10);
13889
13890
  var segment = Math.floor(current / queue);
13890
13891
 
13891
- Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13892
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
13892
13893
 
13893
13894
  if (!playReported) {
13894
13895
  setPlayReported(true);
@@ -13906,7 +13907,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13906
13907
  var queue = Math.floor(duration / 10);
13907
13908
  var segment = Math.floor(current / queue);
13908
13909
 
13909
- Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13910
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
13910
13911
  };
13911
13912
 
13912
13913
  // Youtube Options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.374",
3
+ "version": "1.0.376",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",