@mjhls/mjh-framework 1.0.234 → 1.0.236

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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/AdSlot-983cfe5f.js +515 -0
  3. package/dist/cjs/DeckContent.js +4 -4
  4. package/dist/cjs/DeckQueue.js +3 -3
  5. package/dist/cjs/{Dfp-c4f1f12a.js → Dfp-f16a4421.js} +2 -2
  6. package/dist/cjs/{GridContent-757aef92.js → GridContent-3f7dc5ac.js} +5 -5
  7. package/dist/cjs/GridContent.js +5 -5
  8. package/dist/cjs/MasterDeck.js +3 -3
  9. package/dist/cjs/{Normal-821546cd.js → Normal-815c5ad0.js} +3 -3
  10. package/dist/cjs/QueueDeckExpanded.js +3 -3
  11. package/dist/cjs/{TaxonomyCard-d97685e2.js → TaxonomyCard-0d4ec68b.js} +1 -1
  12. package/dist/cjs/TaxonomyCard.js +2 -2
  13. package/dist/cjs/TemplateNormal.js +4 -4
  14. package/dist/cjs/{Ustream-0d3dd953.js → Ustream-5f595d09.js} +1 -1
  15. package/dist/cjs/Ustream.js +2 -2
  16. package/dist/cjs/VideoSeriesListing.js +2 -2
  17. package/dist/cjs/{_babelHelpers-f321c258.js → _babelHelpers-4a69caad.js} +30 -0
  18. package/dist/cjs/index.js +81 -10
  19. package/dist/cjs/{main-58839f4e.js → main-becc38ae.js} +1 -0
  20. package/dist/cjs/{visibility-sensor-bea3105d.js → visibility-sensor-8936e703.js} +2501 -1439
  21. package/dist/esm/AdSlot-c40f4438.js +509 -0
  22. package/dist/esm/DeckContent.js +4 -4
  23. package/dist/esm/DeckQueue.js +3 -3
  24. package/dist/esm/{Dfp-a8aa00b7.js → Dfp-0567f8a3.js} +2 -2
  25. package/dist/esm/{GridContent-d8bd7953.js → GridContent-e61fff04.js} +5 -5
  26. package/dist/esm/GridContent.js +5 -5
  27. package/dist/esm/MasterDeck.js +3 -3
  28. package/dist/esm/{Normal-20ff5bf5.js → Normal-ebb02255.js} +3 -3
  29. package/dist/esm/QueueDeckExpanded.js +3 -3
  30. package/dist/esm/{TaxonomyCard-f9c93953.js → TaxonomyCard-92f9e327.js} +1 -1
  31. package/dist/esm/TaxonomyCard.js +2 -2
  32. package/dist/esm/TemplateNormal.js +4 -4
  33. package/dist/esm/{Ustream-6bb45fe7.js → Ustream-2bfb1813.js} +1 -1
  34. package/dist/esm/Ustream.js +2 -2
  35. package/dist/esm/VideoSeriesListing.js +2 -2
  36. package/dist/esm/{_babelHelpers-67c05996.js → _babelHelpers-c212c59c.js} +30 -1
  37. package/dist/esm/index.js +84 -14
  38. package/dist/esm/{main-cd81c243.js → main-e84e7749.js} +1 -1
  39. package/dist/esm/{visibility-sensor-675d3fa1.js → visibility-sensor-71e50a91.js} +2501 -1439
  40. package/package.json +7 -2
  41. package/dist/cjs/AdSlot-d87cef08.js +0 -69
  42. package/dist/esm/AdSlot-0ea49f7e.js +0 -64
@@ -8,5 +8,5 @@ import 'react-bootstrap/Card';
8
8
  import 'react-dom';
9
9
  import './index-ca4ff5cb.js';
10
10
  import './index-3c1ee9ab.js';
11
- import './_babelHelpers-67c05996.js';
12
- export { T as default } from './TaxonomyCard-f9c93953.js';
11
+ import './_babelHelpers-c212c59c.js';
12
+ export { T as default } from './TaxonomyCard-92f9e327.js';
@@ -7,14 +7,14 @@ import 'react-bootstrap/Row';
7
7
  import 'react-bootstrap/Col';
8
8
  import 'next/link';
9
9
  import './debounce-dc0c02e5.js';
10
- import './main-cd81c243.js';
11
- import './_babelHelpers-67c05996.js';
12
- import './AdSlot-0ea49f7e.js';
10
+ import './main-e84e7749.js';
11
+ import './_babelHelpers-c212c59c.js';
12
+ import './AdSlot-c40f4438.js';
13
13
  import './get-b074314b.js';
14
14
  import 'react-bootstrap';
15
15
  import './index.esm-536609db.js';
16
16
  import 'react-bootstrap/Button';
17
- export { T as default } from './Normal-20ff5bf5.js';
17
+ export { T as default } from './Normal-ebb02255.js';
18
18
  import 'react-bootstrap/ListGroup';
19
19
  import 'next/head';
20
20
  import 'react-bootstrap/Nav';
@@ -1,5 +1,5 @@
1
1
  import React__default, { useState, useRef, useEffect } from 'react';
2
- import { s as slicedToArray } from './_babelHelpers-67c05996.js';
2
+ import { s as slicedToArray } from './_babelHelpers-c212c59c.js';
3
3
  import { G as GenIcon, d as IoIosOpen } from './index.esm-536609db.js';
4
4
 
5
5
  // THIS FILE IS AUTO GENERATED
@@ -1,4 +1,4 @@
1
1
  import 'react';
2
- import './_babelHelpers-67c05996.js';
2
+ import './_babelHelpers-c212c59c.js';
3
3
  import './index.esm-536609db.js';
4
- export { U as default } from './Ustream-6bb45fe7.js';
4
+ export { U as default } from './Ustream-2bfb1813.js';
@@ -3,13 +3,13 @@ import './_commonjsHelpers-ae1b5db5.js';
3
3
  import { l as lib_3 } from './index-70f7c966.js';
4
4
  import 'prop-types';
5
5
  import Container from 'react-bootstrap/Container';
6
- import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-675d3fa1.js';
6
+ import { I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-71e50a91.js';
7
7
  import 'next/link';
8
8
  import { withRouter } from 'next/router';
9
9
  import { d as debounce_1 } from './debounce-dc0c02e5.js';
10
10
  import 'react-dom';
11
11
  import './index-3c1ee9ab.js';
12
- import { i as inherits, c as createClass, a as classCallCheck, p as possibleConstructorReturn, _ as _extends } from './_babelHelpers-67c05996.js';
12
+ import { i as inherits, c as createClass, a as classCallCheck, p as possibleConstructorReturn, _ as _extends } from './_babelHelpers-c212c59c.js';
13
13
  import { Y as YoutubeGroup } from './YoutubeGroup-1368335c.js';
14
14
  import { a as IoIosArrowForward } from './index.esm-536609db.js';
15
15
 
@@ -1,3 +1,32 @@
1
+ var asyncToGenerator = function (fn) {
2
+ return function () {
3
+ var gen = fn.apply(this, arguments);
4
+ return new Promise(function (resolve, reject) {
5
+ function step(key, arg) {
6
+ try {
7
+ var info = gen[key](arg);
8
+ var value = info.value;
9
+ } catch (error) {
10
+ reject(error);
11
+ return;
12
+ }
13
+
14
+ if (info.done) {
15
+ resolve(value);
16
+ } else {
17
+ return Promise.resolve(value).then(function (value) {
18
+ step("next", value);
19
+ }, function (err) {
20
+ step("throw", err);
21
+ });
22
+ }
23
+ }
24
+
25
+ return step("next");
26
+ });
27
+ };
28
+ };
29
+
1
30
  var classCallCheck = function (instance, Constructor) {
2
31
  if (!(instance instanceof Constructor)) {
3
32
  throw new TypeError("Cannot call a class as a function");
@@ -108,4 +137,4 @@ var toConsumableArray = function (arr) {
108
137
  }
109
138
  };
110
139
 
111
- export { _extends as _, classCallCheck as a, createClass as c, inherits as i, possibleConstructorReturn as p, slicedToArray as s, toConsumableArray as t };
140
+ export { _extends as _, classCallCheck as a, asyncToGenerator as b, createClass as c, inherits as i, possibleConstructorReturn as p, slicedToArray as s, toConsumableArray as t };
package/dist/esm/index.js CHANGED
@@ -6,26 +6,26 @@ import Container from 'react-bootstrap/Container';
6
6
  import Row from 'react-bootstrap/Row';
7
7
  import Col from 'react-bootstrap/Col';
8
8
  import 'react-bootstrap/Card';
9
- import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-675d3fa1.js';
9
+ import { m as moment, I as InfiniteScroll, V as VisibilitySensor } from './visibility-sensor-71e50a91.js';
10
10
  import Link from 'next/link';
11
11
  import Router, { useRouter } from 'next/router';
12
12
  import { d as debounce_1 } from './debounce-dc0c02e5.js';
13
13
  import 'react-dom';
14
14
  import { i as imageUrlBuilder } from './index-ca4ff5cb.js';
15
15
  import './index-3c1ee9ab.js';
16
- import { m as main_36, a as main_35 } from './main-cd81c243.js';
16
+ import { m as main_36, a as main_16, b as main_35 } from './main-e84e7749.js';
17
17
  import { h as html_decode_1, c as clean_html_1 } from './entities-e85d3a4a.js';
18
- import { s as slicedToArray, _ as _extends$2, t as toConsumableArray, i as inherits$2, c as createClass, a as classCallCheck, p as possibleConstructorReturn } from './_babelHelpers-67c05996.js';
19
- import { D as DFPAdSlot } from './AdSlot-0ea49f7e.js';
20
- export { D as AdSlot } from './AdSlot-0ea49f7e.js';
18
+ import { s as slicedToArray, _ as _extends$2, t as toConsumableArray, i as inherits$2, c as createClass, a as classCallCheck, p as possibleConstructorReturn } from './_babelHelpers-c212c59c.js';
19
+ import { D as DFPAdSlot, B as Beam } from './AdSlot-c40f4438.js';
20
+ export { D as AdSlot, B as Beam } from './AdSlot-c40f4438.js';
21
21
  export { default as DeckContent } from './DeckContent.js';
22
22
  import './get-b074314b.js';
23
- export { A as AD, G as GridContent } from './GridContent-d8bd7953.js';
23
+ export { A as AD, G as GridContent } from './GridContent-e61fff04.js';
24
24
  export { default as DeckQueue } from './DeckQueue.js';
25
25
  import 'react-bootstrap/Media';
26
26
  export { default as ThumbnailCard } from './ThumbnailCard.js';
27
- import { B as BlockContent } from './TaxonomyCard-f9c93953.js';
28
- export { T as TaxonomyCard } from './TaxonomyCard-f9c93953.js';
27
+ import { B as BlockContent } from './TaxonomyCard-92f9e327.js';
28
+ export { T as TaxonomyCard } from './TaxonomyCard-92f9e327.js';
29
29
  import GroupDeck from './GroupDeck.js';
30
30
  export { default as GroupDeck } from './GroupDeck.js';
31
31
  import { g as getYoutubeId } from './YoutubeGroup-1368335c.js';
@@ -41,8 +41,8 @@ export { default as IssueDeck } from './IssueDeck.js';
41
41
  import 'react-bootstrap/Badge';
42
42
  export { default as IssueContentDeck } from './IssueContentDeck.js';
43
43
  import Spinner from 'react-bootstrap/Spinner';
44
- import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-20ff5bf5.js';
45
- export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-20ff5bf5.js';
44
+ import { M as MdPictureAsPdf, T as TemplateNormal } from './Normal-ebb02255.js';
45
+ export { A as AD728x90, C as Column1, a as Column2, b as Column3, f as HamMagazine, H as Header, L as LeftNav, e as NavDvm, c as NavMagazine, N as NavNative, d as NavNormal, P as PageFilter, S as Search, g as SideFooter, T as TemplateNormal } from './Normal-ebb02255.js';
46
46
  import 'react-bootstrap/ListGroup';
47
47
  import Head from 'next/head';
48
48
  import Accordion from 'react-bootstrap/Accordion';
@@ -58,8 +58,8 @@ import Carousel$1 from 'react-bootstrap/Carousel';
58
58
  import Breadcrumb from 'react-bootstrap/Breadcrumb';
59
59
  import DropdownButton from 'react-bootstrap/DropdownButton';
60
60
  import Dropdown from 'react-bootstrap/Dropdown';
61
- import { F as FaLongArrowAltRight } from './Ustream-6bb45fe7.js';
62
- export { U as Ustream } from './Ustream-6bb45fe7.js';
61
+ import { F as FaLongArrowAltRight } from './Ustream-2bfb1813.js';
62
+ export { U as Ustream } from './Ustream-2bfb1813.js';
63
63
 
64
64
  var clientId = process.env.CVENT_CLIENT_ID;
65
65
  var clientSecret = process.env.CVENT_CLIENT_SECRET;
@@ -3277,6 +3277,26 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
3277
3277
 
3278
3278
  var id = getYoutubeId(url);
3279
3279
 
3280
+ var _useState = useState(false),
3281
+ _useState2 = slicedToArray(_useState, 2),
3282
+ playReported = _useState2[0],
3283
+ setPlayReported = _useState2[1];
3284
+
3285
+ var _useState3 = useState(false),
3286
+ _useState4 = slicedToArray(_useState3, 2),
3287
+ endReported = _useState4[0],
3288
+ setEndReported = _useState4[1];
3289
+
3290
+ var _useState5 = useState(null),
3291
+ _useState6 = slicedToArray(_useState5, 2),
3292
+ intervalID = _useState6[0],
3293
+ setIntervalID = _useState6[1];
3294
+
3295
+ var _useState7 = useState(0),
3296
+ _useState8 = slicedToArray(_useState7, 2),
3297
+ prevPercent = _useState8[0],
3298
+ setPrevPercent = _useState8[1];
3299
+
3280
3300
  var opts = {
3281
3301
  width: '100%',
3282
3302
  playerVars: {
@@ -3284,7 +3304,57 @@ var YouTubePlayer = function YouTubePlayer(_ref) {
3284
3304
  }
3285
3305
  };
3286
3306
 
3287
- return React__default.createElement(YouTube, { videoId: id, opts: opts });
3307
+ useEffect(function () {
3308
+ console.log('Video ' + prevPercent);
3309
+ Beam.report_beam_event('Video ' + prevPercent, main_16);
3310
+ }, [prevPercent]);
3311
+
3312
+ var handlePlayPercent = function handlePlayPercent(player) {
3313
+ var time = player.getCurrentTime() * 100;
3314
+ var duration = player.getDuration();
3315
+ var ratio = Math.round(time / duration);
3316
+ var percent = 0;
3317
+
3318
+ if (ratio > 10) percent = 10;
3319
+ if (ratio > 20) percent = 20;
3320
+ if (ratio > 30) percent = 30;
3321
+ if (ratio > 40) percent = 40;
3322
+ if (ratio > 50) percent = 50;
3323
+ if (ratio > 60) percent = 60;
3324
+ if (ratio > 70) percent = 70;
3325
+ if (ratio > 80) percent = 80;
3326
+ if (ratio > 90) percent = 90;
3327
+ if (ratio > 95) percent = 95;
3328
+
3329
+ if (parseInt(prevPercent) != parseInt(percent)) {
3330
+ setPrevPercent(percent);
3331
+ }
3332
+ };
3333
+
3334
+ var handleOnPlay = function handleOnPlay(event) {
3335
+ // report play
3336
+ if (!playReported) {
3337
+ console.log('Video Played');
3338
+
3339
+ Beam.report_beam_event('Video Played', main_16);
3340
+ setPlayReported(true);
3341
+ var _intervalID = setInterval(function () {
3342
+ handlePlayPercent(event.target);
3343
+ }, 1000);
3344
+ setIntervalID(_intervalID);
3345
+ }
3346
+ };
3347
+
3348
+ var handleOnEnd = function handleOnEnd(event) {
3349
+ if (!endReported) {
3350
+ console.log('Video 100');
3351
+ Beam.report_beam_event('Video 100', main_16);
3352
+ setEndReported(true);
3353
+ clearInterval(intervalID);
3354
+ }
3355
+ };
3356
+
3357
+ return React__default.createElement(YouTube, { videoId: id, opts: opts, onPlay: handleOnPlay, onEnd: handleOnEnd });
3288
3358
  };
3289
3359
 
3290
3360
  var Sidebar = function Sidebar(_ref) {
@@ -12194,7 +12264,7 @@ var OncliveLargeHero = function OncliveLargeHero(props) {
12194
12264
  React__default.createElement(
12195
12265
  'style',
12196
12266
  { jsx: 'true' },
12197
- '\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n .top-article-summary {\n display: none;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
12267
+ '\n .article-hero-container {\n margin: 0 -0.8rem;\n }\n @media screen and (min-width: 1400px) {\n .article-hero-container {\n display: flex;\n flex-direction: row;\n margin-bottom: 30px;\n }\n .top-outer {\n width: 50%;\n }\n .sub-outer-container {\n width: 50%;\n }\n }\n .top-article {\n // width: 50%;\n margin: 0 1rem;\n height: 100%;\n display: block;\n }\n .top-article figure {\n width: 100%;\n height: 60%;\n }\n .top-article figure img {\n width: 100%;\n height: 100%;\n object-fit: cover;\n }\n .top-article--body h1 {\n font-size: 1.4rem;\n color: black !important;\n font-weight: bold;\n }\n // .sub-articles-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n .sub-article {\n margin: 0 1rem 1rem;\n display: flex;\n flex-direction: row;\n }\n .sub-article figure {\n width: 125px;\n }\n .sub-article figure img {\n width: 125px;\n height: auto;\n object-fit: cover;\n }\n .sub-article--body {\n padding-left: 1rem;\n font-size: 0.9rem;\n }\n .sub-article--body h2 {\n font-size: 1rem;\n font-weight: bold;\n }\n @media screen and (max-width: 1368px) {\n .article-hero-container {\n flex-direction: column;\n }\n .top-article {\n // width: unset;\n flex: 1 1 auto;\n }\n .sub-articles-container {\n width: 100%;\n margin-top: 1rem;\n min-width: 280px;\n }\n }\n @media screen and (max-width: 1399px) and (min-width: 992px) {\n .top-article {\n // width: 50%;\n flex: 1 1 auto;\n margin-bottom: 1rem;\n }\n .middle-group {\n display: none;\n }\n .middle-single {\n display: block !important;\n margin-top: 0 !important;\n }\n .top-article figure img {\n max-height: 180px !important;\n }\n .top-article-summary {\n display: none;\n }\n }\n // @media only screen and (min-width) {\n // .sub-outer-container {\n // width: 50%;\n // flex: 1 1 auto;\n // min-width: 350px;\n // }\n // }\n .middle-single {\n display: none;\n }\n .top-outer {\n display: flex;\n }\n '
12198
12268
  )
12199
12269
  );
12200
12270
  };
@@ -848,4 +848,4 @@ var main_47 = main.osName;
848
848
  var main_48 = main.osVersion;
849
849
  var main_49 = main.withOrientationChange;
850
850
 
851
- export { main_35 as a, main_37 as b, main_36 as m };
851
+ export { main_16 as a, main_35 as b, main_37 as c, main_36 as m };