@mjhls/mjh-framework 1.0.374 → 1.0.375

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.375
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,7 +8957,7 @@ 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
8963
  player.on('timeupdate', function (evt) {
@@ -8966,7 +8966,7 @@ var Video = function Video(_ref) {
8966
8966
  var queue = Math.floor(duration / 10);
8967
8967
  var segment = Math.floor(current / queue);
8968
8968
  if (!queueProgress.includes(segment)) {
8969
- Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8969
+ AdSlot.Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', chapter.playerID, chapter.accountID, chapter.mediaID);
8970
8970
  queueProgress.push(segment);
8971
8971
  }
8972
8972
  });
@@ -8977,7 +8977,7 @@ var Video = function Video(_ref) {
8977
8977
  var id = player.ads.ad.id;
8978
8978
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8979
8979
 
8980
- Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8980
+ AdSlot.Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id);
8981
8981
  });
8982
8982
 
8983
8983
  // ad ended
@@ -8985,7 +8985,7 @@ var Video = function Video(_ref) {
8985
8985
  var duration = player.ads.ad.duration;
8986
8986
  var id = player.ads.ad.id;
8987
8987
  var adType = 'Bright Cove: ' + player.ads.ad.type;
8988
- Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8988
+ AdSlot.Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id);
8989
8989
  });
8990
8990
  };
8991
8991
 
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 });
@@ -13605,7 +13605,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13605
13605
  var duration = player.duration;
13606
13606
  var queue = Math.floor(duration / 10);
13607
13607
  var segment = Math.floor(current / queue);
13608
- Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13608
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
13609
13609
  };
13610
13610
 
13611
13611
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -13614,7 +13614,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13614
13614
  var queue = Math.floor(duration / 10);
13615
13615
  var segment = Math.floor(current / queue);
13616
13616
  if (!queueProgress.includes(segment)) {
13617
- Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13617
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
13618
13618
  queueProgress.push(segment);
13619
13619
  }
13620
13620
  };
@@ -13626,7 +13626,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13626
13626
  var duration = player.duration;
13627
13627
  var queue = Math.floor(duration / 10);
13628
13628
  var segment = Math.floor(current / queue);
13629
- Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13629
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
13630
13630
 
13631
13631
  if (!playReported) {
13632
13632
  event.persist();
@@ -13646,7 +13646,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13646
13646
  var queue = Math.floor(duration / 10);
13647
13647
  var segment = Math.floor(current / queue);
13648
13648
 
13649
- Beam$1.report_beam_video('End', main_16, duration, current, segment);
13649
+ Beam.report_beam_video('End', main_16, duration, current, segment);
13650
13650
  setEndReported(true);
13651
13651
  clearInterval(intervalID);
13652
13652
  }
@@ -13658,7 +13658,7 @@ var VideoMp4 = function VideoMp4(_ref) {
13658
13658
  var duration = player.duration - current;
13659
13659
  var queue = Math.floor(duration / 10);
13660
13660
  var segment = Math.floor(current / queue);
13661
- Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13661
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
13662
13662
  };
13663
13663
 
13664
13664
  return React__default.createElement(
@@ -13825,7 +13825,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13825
13825
  var duration = player.getDuration();
13826
13826
  var queue = Math.floor(duration / 10);
13827
13827
  var segment = Math.floor(current / queue);
13828
- Beam$1.report_beam_video('Ready', main_16, duration, current, segment);
13828
+ Beam.report_beam_video('Ready', main_16, duration, current, segment);
13829
13829
 
13830
13830
  //autoplay
13831
13831
 
@@ -13846,7 +13846,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13846
13846
  var queue = Math.floor(duration / 10);
13847
13847
  var segment = Math.floor(current / queue);
13848
13848
 
13849
- Beam$1.report_beam_video('End', main_16, duration, current, segment);
13849
+ Beam.report_beam_video('End', main_16, duration, current, segment);
13850
13850
  setEndReported(true);
13851
13851
  clearInterval(intervalID);
13852
13852
  }
@@ -13875,7 +13875,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13875
13875
  var queue = Math.floor(duration / 10);
13876
13876
  var segment = Math.floor(current / queue);
13877
13877
  if (!queueProgress.includes(segment)) {
13878
- Beam$1.report_beam_video('Segment', main_16, duration, current, segment);
13878
+ Beam.report_beam_video('Segment', main_16, duration, current, segment);
13879
13879
  queueProgress.push(segment);
13880
13880
  }
13881
13881
  };
@@ -13888,7 +13888,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13888
13888
  var queue = Math.floor(duration / 10);
13889
13889
  var segment = Math.floor(current / queue);
13890
13890
 
13891
- Beam$1.report_beam_video('Play', main_16, duration, current, segment);
13891
+ Beam.report_beam_video('Play', main_16, duration, current, segment);
13892
13892
 
13893
13893
  if (!playReported) {
13894
13894
  setPlayReported(true);
@@ -13906,7 +13906,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
13906
13906
  var queue = Math.floor(duration / 10);
13907
13907
  var segment = Math.floor(current / queue);
13908
13908
 
13909
- Beam$1.report_beam_video('Pause', main_16, duration, current, segment);
13909
+ Beam.report_beam_video('Pause', main_16, duration, current, segment);
13910
13910
  };
13911
13911
 
13912
13912
  // 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.375",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",