@mjhls/mjh-framework 1.0.476 → 1.0.478

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.
Files changed (74) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AD300x250.js +1 -2
  3. package/dist/cjs/AD300x250x600.js +1 -2
  4. package/dist/cjs/AD728x90.js +1 -2
  5. package/dist/cjs/ADFloatingFooter.js +1 -2
  6. package/dist/cjs/ADFooter.js +1 -1
  7. package/dist/cjs/ADGutter.js +1 -2
  8. package/dist/cjs/ADSponsoredResources.js +1 -2
  9. package/dist/cjs/ADWebcast.js +1 -2
  10. package/dist/cjs/ADWelcome.js +1 -2
  11. package/dist/cjs/AdSlot.js +5 -6
  12. package/dist/cjs/ArticleQueue.js +1 -2
  13. package/dist/cjs/Beam.js +4 -334
  14. package/dist/cjs/Column2.js +9 -0
  15. package/dist/cjs/Column3.js +1 -2
  16. package/dist/cjs/DeckContent.js +2 -3
  17. package/dist/cjs/GridContent.js +3 -4
  18. package/dist/cjs/HamMagazine.js +12 -6
  19. package/dist/cjs/IssueLanding.js +3 -4
  20. package/dist/cjs/LeftNav.js +20 -6
  21. package/dist/cjs/MasterDeck.js +3 -4
  22. package/dist/cjs/NavDvm.js +15 -6
  23. package/dist/cjs/NavMagazine.js +12 -6
  24. package/dist/cjs/NavNative.js +12 -9
  25. package/dist/cjs/NavNormal.js +22 -3
  26. package/dist/cjs/PartnerDetailListing.js +3 -4
  27. package/dist/cjs/QueueDeckExpanded.js +3 -4
  28. package/dist/cjs/Segment.js +4 -212
  29. package/dist/cjs/SideFooter.js +27 -3
  30. package/dist/cjs/TemplateNormal.js +1 -2
  31. package/dist/cjs/Ustream.js +1 -1
  32. package/dist/cjs/View.js +1 -2
  33. package/dist/cjs/beam-b2ff7326.js +732 -0
  34. package/dist/cjs/getSerializers.js +45 -25
  35. package/dist/cjs/index.js +5 -6
  36. package/dist/esm/AD300x250.js +1 -2
  37. package/dist/esm/AD300x250x600.js +1 -2
  38. package/dist/esm/AD728x90.js +1 -2
  39. package/dist/esm/ADFloatingFooter.js +1 -2
  40. package/dist/esm/ADFooter.js +1 -1
  41. package/dist/esm/ADGutter.js +1 -2
  42. package/dist/esm/ADSponsoredResources.js +1 -2
  43. package/dist/esm/ADWebcast.js +1 -2
  44. package/dist/esm/ADWelcome.js +1 -2
  45. package/dist/esm/AdSlot.js +3 -4
  46. package/dist/esm/ArticleQueue.js +1 -2
  47. package/dist/esm/Beam.js +3 -337
  48. package/dist/esm/Column2.js +9 -0
  49. package/dist/esm/Column3.js +1 -2
  50. package/dist/esm/DeckContent.js +2 -3
  51. package/dist/esm/GridContent.js +3 -4
  52. package/dist/esm/HamMagazine.js +12 -6
  53. package/dist/esm/IssueLanding.js +3 -4
  54. package/dist/esm/LeftNav.js +21 -7
  55. package/dist/esm/MasterDeck.js +3 -4
  56. package/dist/esm/NavDvm.js +15 -6
  57. package/dist/esm/NavMagazine.js +12 -6
  58. package/dist/esm/NavNative.js +12 -9
  59. package/dist/esm/NavNormal.js +23 -4
  60. package/dist/esm/PartnerDetailListing.js +3 -4
  61. package/dist/esm/QueueDeckExpanded.js +3 -4
  62. package/dist/esm/Segment.js +3 -215
  63. package/dist/esm/SideFooter.js +28 -4
  64. package/dist/esm/TemplateNormal.js +1 -2
  65. package/dist/esm/Ustream.js +1 -1
  66. package/dist/esm/View.js +1 -2
  67. package/dist/esm/beam-1ffc08d4.js +729 -0
  68. package/dist/esm/getSerializers.js +28 -8
  69. package/dist/esm/index.js +3 -4
  70. package/package.json +1 -1
  71. /package/dist/cjs/{ADInfeed-8a7f1d50.js → ADInfeed-53eca520.js} +0 -0
  72. /package/dist/cjs/{ADlgInfeed-659b82b6.js → ADlgInfeed-461fa625.js} +0 -0
  73. /package/dist/esm/{ADInfeed-dbd65900.js → ADInfeed-84a98951.js} +0 -0
  74. /package/dist/esm/{ADlgInfeed-a385f968.js → ADlgInfeed-25962fea.js} +0 -0
@@ -24,8 +24,7 @@ import { _ as _slicedToArray } from './slicedToArray-f1e40361.js';
24
24
  import './stringify-e30bc114.js';
25
25
  import './asyncToGenerator-0379e924.js';
26
26
  import './_set-species-6f64f1c1.js';
27
- import Beam from './Beam.js';
28
- import './Segment.js';
27
+ import { B as Beam, S as SegmentAPI } from './beam-1ffc08d4.js';
29
28
  import DFPAdSlot from './AdSlot.js';
30
29
  import { B as BlockContent } from './BlockContent-a614acdf.js';
31
30
  import { g as getYoutubeId } from './smoothscroll-4b699764.js';
@@ -1921,6 +1920,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1921
1920
  var queue = Math.floor(duration / 10);
1922
1921
  var segment = Math.floor(current / queue);
1923
1922
  Beam.report_beam_video('Ready', main_16, duration, current, segment);
1923
+ SegmentAPI.report_video_event('Video Ready', main_16, duration, current, segment);
1924
1924
  };
1925
1925
 
1926
1926
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -1931,6 +1931,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1931
1931
 
1932
1932
  if (!queueProgress.includes(segment)) {
1933
1933
  Beam.report_beam_video('Segment', main_16, duration, current, segment);
1934
+ SegmentAPI.report_video_event('Video Segment', main_16, duration, current, segment);
1934
1935
  queueProgress.push(segment);
1935
1936
  }
1936
1937
  };
@@ -1944,6 +1945,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1944
1945
  var segment = Math.floor(current / queue);
1945
1946
 
1946
1947
  Beam.report_beam_video('Play', main_16, duration, current, segment);
1948
+ SegmentAPI.report_video_event('Video Play', main_16, duration, current, segment);
1947
1949
 
1948
1950
  if (!playReported) {
1949
1951
  setPlayReported(true);
@@ -1963,6 +1965,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1963
1965
  var segment = Math.floor(current / queue);
1964
1966
 
1965
1967
  Beam.report_beam_video('End', main_16, duration, current, segment);
1968
+ SegmentAPI.report_video_event('Video End', main_16, duration, current, segment);
1966
1969
  setEndReported(true);
1967
1970
  clearInterval(intervalID);
1968
1971
  }
@@ -1976,6 +1979,7 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
1976
1979
  var segment = Math.floor(current / queue);
1977
1980
 
1978
1981
  Beam.report_beam_video('Pause', main_16, duration, current, segment);
1982
+ SegmentAPI.report_video_event('Video Pause', main_16, duration, current, segment);
1979
1983
  };
1980
1984
 
1981
1985
  return React__default.createElement(
@@ -2212,6 +2216,7 @@ var Video = function Video(_ref) {
2212
2216
  }
2213
2217
 
2214
2218
  Beam.report_beam_video('Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2219
+ SegmentAPI.report_video_event('Video Ready', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2215
2220
  });
2216
2221
 
2217
2222
  // play
@@ -2221,6 +2226,7 @@ var Video = function Video(_ref) {
2221
2226
  var queue = Math.floor(duration / 10);
2222
2227
  var segment = Math.floor(current / queue);
2223
2228
  Beam.report_beam_video('Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2229
+ SegmentAPI.report_video_event('Video Play', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2224
2230
  });
2225
2231
 
2226
2232
  // pause
@@ -2230,6 +2236,7 @@ var Video = function Video(_ref) {
2230
2236
  var queue = Math.floor(duration / 10);
2231
2237
  var segment = Math.floor(current / queue);
2232
2238
  Beam.report_beam_video('Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2239
+ SegmentAPI.report_video_event('Video Pause', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2233
2240
  });
2234
2241
 
2235
2242
  // end
@@ -2239,6 +2246,7 @@ var Video = function Video(_ref) {
2239
2246
  var queue = Math.floor(duration / 10);
2240
2247
  var segment = Math.floor(current / queue);
2241
2248
  Beam.report_beam_video('End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2249
+ SegmentAPI.report_video_event('Video End', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2242
2250
  autoplayNextVideo(evt);
2243
2251
  });
2244
2252
 
@@ -2250,6 +2258,7 @@ var Video = function Video(_ref) {
2250
2258
  var segment = Math.floor(current / queue);
2251
2259
  if (!queueProgress.includes(segment)) {
2252
2260
  Beam.report_beam_video('Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2261
+ SegmentAPI.report_video_event('Video Segment', main_16, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2253
2262
  queueProgress.push(segment);
2254
2263
  }
2255
2264
  });
@@ -2261,6 +2270,7 @@ var Video = function Video(_ref) {
2261
2270
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2262
2271
 
2263
2272
  Beam.report_beam_ad('AD Started', main_16, '', '', '', '', '', adType, duration, id);
2273
+ SegmentAPI.report_ad_event('Video Ad Started', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2264
2274
  });
2265
2275
 
2266
2276
  // ad ended
@@ -2269,6 +2279,7 @@ var Video = function Video(_ref) {
2269
2279
  var id = player.ads.ad.id;
2270
2280
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2271
2281
  Beam.report_beam_ad('AD Ended', main_16, '', '', '', '', '', adType, duration, id);
2282
+ SegmentAPI.report_ad_event('Video Ad Ended', main_16, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2272
2283
  });
2273
2284
  };
2274
2285
 
@@ -6915,7 +6926,8 @@ var VideoMp4 = function VideoMp4(_ref) {
6915
6926
  var duration = player.duration;
6916
6927
  var queue = Math.floor(duration / 10);
6917
6928
  var segment = Math.floor(current / queue);
6918
- Beam.report_beam_video('Ready', main_16, duration, current, segment);
6929
+ Beam.report_beam_video('Ready', main_16, duration, current, segment, 'MP4');
6930
+ SegmentAPI.report_video_event('Video Ready', main_16, duration, current, segment, 'MP4');
6919
6931
  };
6920
6932
 
6921
6933
  var handlePlayPercent = function handlePlayPercent(player) {
@@ -6924,7 +6936,8 @@ var VideoMp4 = function VideoMp4(_ref) {
6924
6936
  var queue = Math.floor(duration / 10);
6925
6937
  var segment = Math.floor(current / queue);
6926
6938
  if (!queueProgress.includes(segment)) {
6927
- Beam.report_beam_video('Segment', main_16, duration, current, segment);
6939
+ Beam.report_beam_video('Segment', main_16, duration, current, segment, 'MP4');
6940
+ SegmentAPI.report_video_event('Video Segment', main_16, duration, current, segment, 'MP4');
6928
6941
  queueProgress.push(segment);
6929
6942
  }
6930
6943
  };
@@ -6936,7 +6949,8 @@ var VideoMp4 = function VideoMp4(_ref) {
6936
6949
  var duration = player.duration;
6937
6950
  var queue = Math.floor(duration / 10);
6938
6951
  var segment = Math.floor(current / queue);
6939
- Beam.report_beam_video('Play', main_16, duration, current, segment);
6952
+ Beam.report_beam_video('Play', main_16, duration, current, segment, 'MP4');
6953
+ SegmentAPI.report_video_event('Video Play', main_16, duration, current, segment, 'MP4');
6940
6954
 
6941
6955
  if (!playReported) {
6942
6956
  event.persist();
@@ -6956,7 +6970,8 @@ var VideoMp4 = function VideoMp4(_ref) {
6956
6970
  var queue = Math.floor(duration / 10);
6957
6971
  var segment = Math.floor(current / queue);
6958
6972
 
6959
- Beam.report_beam_video('End', main_16, duration, current, segment);
6973
+ Beam.report_beam_video('End', main_16, duration, current, segment, 'MP4');
6974
+ SegmentAPI.report_video_event('Video End', main_16, duration, current, segment, 'MP4');
6960
6975
  setEndReported(true);
6961
6976
  clearInterval(intervalID);
6962
6977
  }
@@ -6968,7 +6983,8 @@ var VideoMp4 = function VideoMp4(_ref) {
6968
6983
  var duration = player.duration - current;
6969
6984
  var queue = Math.floor(duration / 10);
6970
6985
  var segment = Math.floor(current / queue);
6971
- Beam.report_beam_video('Pause', main_16, duration, current, segment);
6986
+ Beam.report_beam_video('Pause', main_16, duration, current, segment, 'MP4');
6987
+ SegmentAPI.report_video_event('Video Pause', main_16, duration, current, segment, 'MP4');
6972
6988
  };
6973
6989
 
6974
6990
  return React__default.createElement(
@@ -7133,7 +7149,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7133
7149
  var queue = Math.floor(duration / 10);
7134
7150
  var segment = Math.floor(current / queue);
7135
7151
  Beam.report_beam_video('Ready', main_16, duration, current, segment);
7136
-
7152
+ SegmentAPI.report_video_event('Video Ready', main_16, duration, current, segment);
7137
7153
  //autoplay
7138
7154
 
7139
7155
  //Small pause before starting next video
@@ -7154,6 +7170,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7154
7170
  var segment = Math.floor(current / queue);
7155
7171
 
7156
7172
  Beam.report_beam_video('End', main_16, duration, current, segment);
7173
+ SegmentAPI.report_video_event('Video End', main_16, duration, current, segment);
7157
7174
  setEndReported(true);
7158
7175
  clearInterval(intervalID);
7159
7176
  }
@@ -7204,6 +7221,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7204
7221
  var segment = Math.floor(current / queue);
7205
7222
  if (!queueProgress.includes(segment)) {
7206
7223
  Beam.report_beam_video('Segment', main_16, duration, current, segment);
7224
+ SegmentAPI.report_video_event('Video Segment', main_16, duration, current, segment);
7207
7225
  queueProgress.push(segment);
7208
7226
  }
7209
7227
  };
@@ -7217,6 +7235,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7217
7235
  var segment = Math.floor(current / queue);
7218
7236
 
7219
7237
  Beam.report_beam_video('Play', main_16, duration, current, segment);
7238
+ SegmentAPI.report_video_event('Video Play', main_16, duration, current, segment);
7220
7239
 
7221
7240
  if (!playReported) {
7222
7241
  setPlayReported(true);
@@ -7235,6 +7254,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7235
7254
  var segment = Math.floor(current / queue);
7236
7255
 
7237
7256
  Beam.report_beam_video('Pause', main_16, duration, current, segment);
7257
+ SegmentAPI.report_video_event('Video Pause', main_16, duration, current, segment);
7238
7258
  };
7239
7259
 
7240
7260
  // Youtube Options
package/dist/esm/index.js CHANGED
@@ -34,13 +34,12 @@ import './slicedToArray-f1e40361.js';
34
34
  import './stringify-e30bc114.js';
35
35
  import './asyncToGenerator-0379e924.js';
36
36
  import './_set-species-6f64f1c1.js';
37
- export { default as Beam } from './Beam.js';
38
- export { default as Segment } from './Segment.js';
37
+ export { B as Beam, S as Segment } from './beam-1ffc08d4.js';
39
38
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-dbd65900.js';
39
+ import './ADInfeed-84a98951.js';
41
40
  export { default as DeckContent } from './DeckContent.js';
42
41
  import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-a385f968.js';
42
+ import './ADlgInfeed-25962fea.js';
44
43
  import './_arrayMap-a8dd2b2c.js';
45
44
  import './get-ae817b75.js';
46
45
  export { default as AD } from './AD.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.476",
3
+ "version": "1.0.478",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",