@mjhls/mjh-framework 1.0.919-TEST → 1.0.919

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 (31) hide show
  1. package/dist/cjs/ArticleProgramLandingPage.js +2 -4
  2. package/dist/cjs/ExternalResources.js +1 -3
  3. package/dist/cjs/HorizontalArticleListing.js +2 -4
  4. package/dist/cjs/IssueLanding.js +2 -4
  5. package/dist/cjs/{MediaSeriesCard-31e82b76.js → MediaSeriesCard-34235827.js} +1 -1
  6. package/dist/cjs/MediaSeriesLanding.js +3 -5
  7. package/dist/cjs/MediaSeriesLandingPaginated.js +2 -4
  8. package/dist/cjs/PartnerDetailListing.js +2 -4
  9. package/dist/cjs/PartnerDetailListingPaginated.js +1 -3
  10. package/dist/cjs/TaxonomyDescription.js +2 -4
  11. package/dist/cjs/VideoProgramLandingPage.js +1 -2
  12. package/dist/cjs/View.js +1 -2
  13. package/dist/cjs/getSerializers.js +2 -4
  14. package/dist/cjs/{index-da44b1e7.js → index-f9f5f7c0.js} +22 -345
  15. package/dist/cjs/index.js +1 -1
  16. package/dist/esm/ArticleProgramLandingPage.js +2 -4
  17. package/dist/esm/ExternalResources.js +1 -3
  18. package/dist/esm/HorizontalArticleListing.js +2 -4
  19. package/dist/esm/IssueLanding.js +2 -4
  20. package/dist/esm/{MediaSeriesCard-3d6acf32.js → MediaSeriesCard-8a9b91e6.js} +1 -1
  21. package/dist/esm/MediaSeriesLanding.js +3 -5
  22. package/dist/esm/MediaSeriesLandingPaginated.js +2 -4
  23. package/dist/esm/PartnerDetailListing.js +2 -4
  24. package/dist/esm/PartnerDetailListingPaginated.js +1 -3
  25. package/dist/esm/TaxonomyDescription.js +2 -4
  26. package/dist/esm/VideoProgramLandingPage.js +1 -2
  27. package/dist/esm/View.js +1 -2
  28. package/dist/esm/getSerializers.js +2 -4
  29. package/dist/esm/{index-803278c4.js → index-4d8a8743.js} +25 -346
  30. package/dist/esm/index.js +1 -1
  31. package/package.json +1 -2
@@ -1,7 +1,7 @@
1
1
  import { _ as _extends, b as _extends$1 } from './extends-6d8e3924.js';
2
2
  import React__default, { useState, useEffect, useRef, useLayoutEffect, useCallback } from 'react';
3
3
  import { _ as _slicedToArray, a as _getIterator } from './slicedToArray-6ebcbfea.js';
4
- import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button as Button$1, ProgressBar } from 'react-bootstrap';
4
+ import { Carousel, Table, Figure as Figure$1, Card, Row, Col, Button, ProgressBar } from 'react-bootstrap';
5
5
  import urlFor from './urlFor.js';
6
6
  import { l as lib_3 } from './index-f0fc23eb.js';
7
7
  import Router, { useRouter } from 'next/router';
@@ -18,10 +18,6 @@ import { L as LazyLoad } from './index-755f2cc2.js';
18
18
  import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-5ef104a7.js';
19
19
  import { _ as _typeof$1 } from './typeof-e9fc0c5d.js';
20
20
  import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
21
- import { _ as _JSON$stringify } from './stringify-2b084bee.js';
22
- import Modal from 'react-bootstrap/Modal';
23
- import Button from 'react-bootstrap/Button';
24
- import Form from 'react-bootstrap/Form';
25
21
  import GroupDeck from './GroupDeck.js';
26
22
  import { m as moment } from './moment-bc12cb97.js';
27
23
  import SocialShare from './SocialShare.js';
@@ -29,6 +25,7 @@ import { _ as _export, a as _core } from './core.get-iterator-method-ea258bb1.js
29
25
  import { _ as _objectToArray } from './_object-to-array-2300e51b.js';
30
26
  import { a as _Array$from, _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
31
27
  import Pagination from 'react-bootstrap/Pagination';
28
+ import Button$1 from 'react-bootstrap/Button';
32
29
  import { h as html_decode_1 } from './entities-6d9154b4.js';
33
30
  import DFPAdSlot from './AdSlot.js';
34
31
  import Row$1 from 'react-bootstrap/Row';
@@ -2227,7 +2224,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2227
2224
  var duration = player.duration;
2228
2225
  var queue = Math.floor(duration / 10);
2229
2226
  var segment = Math.floor(current / queue);
2230
- // Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
2227
+ //Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'MP4')
2231
2228
  Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'MP4');
2232
2229
  };
2233
2230
 
@@ -2237,7 +2234,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2237
2234
  var queue = Math.floor(duration / 10);
2238
2235
  var segment = Math.floor(current / queue);
2239
2236
  if (!queueProgress.includes(segment)) {
2240
- // Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
2237
+ //Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'MP4')
2241
2238
  Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'MP4');
2242
2239
  queueProgress.push(segment);
2243
2240
  }
@@ -2250,7 +2247,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2250
2247
  var duration = player.duration;
2251
2248
  var queue = Math.floor(duration / 10);
2252
2249
  var segment = Math.floor(current / queue);
2253
- // Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
2250
+ //Beam.report_beam_video('Play', deviceType, duration, current, segment, 'MP4')
2254
2251
  Segment.report_video_event('Video Play', main_18, duration, current, segment, 'MP4');
2255
2252
 
2256
2253
  if (!playReported) {
@@ -2271,7 +2268,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2271
2268
  var queue = Math.floor(duration / 10);
2272
2269
  var segment = Math.floor(current / queue);
2273
2270
 
2274
- // Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
2271
+ //Beam.report_beam_video('End', deviceType, duration, current, segment, 'MP4')
2275
2272
  Segment.report_video_event('Video End', main_18, duration, current, segment, 'MP4');
2276
2273
  setEndReported(true);
2277
2274
  clearInterval(intervalID);
@@ -2284,7 +2281,7 @@ var VideoMp4 = function VideoMp4(_ref) {
2284
2281
  var duration = player.duration - current;
2285
2282
  var queue = Math.floor(duration / 10);
2286
2283
  var segment = Math.floor(current / queue);
2287
- // Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
2284
+ //Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'MP4')
2288
2285
  Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'MP4');
2289
2286
  };
2290
2287
 
@@ -2315,229 +2312,6 @@ var VideoMp4 = function VideoMp4(_ref) {
2315
2312
  );
2316
2313
  };
2317
2314
 
2318
- var PopupMultiChoice = function PopupMultiChoice(_ref) {
2319
- var question = _ref.question,
2320
- choices = _ref.choices,
2321
- handlePollAnswer = _ref.handlePollAnswer;
2322
-
2323
- var choiceArray = choices.map(function (choice) {
2324
- return React__default.createElement(Form.Check, {
2325
- inline: true,
2326
- label: choice.choiceText,
2327
- value: choice.choiceText,
2328
- name: 'radioButton',
2329
- type: 'radio',
2330
- className: 'radioButton',
2331
- onClick: handlePollAnswer
2332
- });
2333
- });
2334
- return React__default.createElement(
2335
- 'div',
2336
- {
2337
- key: 'inline-radio',
2338
- className: 'mb-3' },
2339
- React__default.createElement(
2340
- 'h2',
2341
- {
2342
- className: 'radioLabelText'
2343
- },
2344
- question
2345
- ),
2346
- React__default.createElement(
2347
- 'div',
2348
- {
2349
- className: 'multiChoiceDiv'
2350
- },
2351
- choiceArray
2352
- )
2353
- );
2354
- };
2355
-
2356
- var PopupPollTextInput = function PopupPollTextInput(_ref) {
2357
- var textInputQuestion = _ref.textInputQuestion,
2358
- textAnswer = _ref.textAnswer,
2359
- handleTextAnswer = _ref.handleTextAnswer;
2360
-
2361
- return React__default.createElement(
2362
- 'div',
2363
- {
2364
- className: 'textInputDiv'
2365
- },
2366
- React__default.createElement(
2367
- 'h2',
2368
- {
2369
- className: 'textInputQuestion'
2370
- },
2371
- textInputQuestion
2372
- ),
2373
- React__default.createElement(Form.Control, {
2374
- type: 'text',
2375
- className: 'textInput',
2376
- value: textAnswer,
2377
- placeholder: 'Your response',
2378
- onChange: handleTextAnswer
2379
- })
2380
- );
2381
- };
2382
-
2383
- var _this = undefined;
2384
- var fetch = require('node-fetch');
2385
-
2386
- var PopupPollModal = function PopupPollModal(props) {
2387
- var pollItems = props.pollItems,
2388
- pollUrl = props.pollUrl,
2389
- restartPlayer = props.restartPlayer,
2390
- multiChoiceRender = props.multiChoiceRender,
2391
- textInputRender = props.textInputRender;
2392
-
2393
- var _useState = useState(''),
2394
- _useState2 = _slicedToArray(_useState, 2),
2395
- pollAnswer = _useState2[0],
2396
- setPollAnswer = _useState2[1];
2397
-
2398
- var _useState3 = useState(''),
2399
- _useState4 = _slicedToArray(_useState3, 2),
2400
- textAnswer = _useState4[0],
2401
- setTextAnswer = _useState4[1];
2402
-
2403
- useEffect(function () {
2404
- var modal = document.getElementById('modalDiv');
2405
- modal.style.visibility = 'visible';
2406
- }, []);
2407
-
2408
- var handleTextAnswer = function handleTextAnswer(e) {
2409
- setTextAnswer(e.target.value);
2410
- };
2411
-
2412
- var handlePollAnswer = function handlePollAnswer(e) {
2413
- setPollAnswer(e.target.value);
2414
- };
2415
-
2416
- var handleSubmit = function handleSubmit(e) {
2417
- var currentDate = new Date(Date.now()).toUTCString();
2418
- // eslint-disable-next-line no-undef
2419
- var anonymousID = typeof analytics !== 'undefined' && typeof analytics.user === 'function' && analytics.user() && analytics.user().anonymousId();
2420
- pollItems.forEach(function (item) {
2421
- var submitAnswer = void 0;
2422
- if (item.format === 'multiChoice') submitAnswer = pollAnswer;
2423
- if (item.format === 'textInput') submitAnswer = textAnswer;
2424
- var formData = {
2425
- uuid: anonymousID,
2426
- url: pollUrl,
2427
- date: currentDate,
2428
- question: item.question,
2429
- answer: submitAnswer
2430
- };
2431
- var requestOptions = {
2432
- method: 'POST',
2433
- headers: { 'content-type': 'application/json' },
2434
- body: _JSON$stringify({ data: formData })
2435
- };
2436
- var insertData = function () {
2437
- var _ref = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee() {
2438
- return regenerator.wrap(function _callee$(_context) {
2439
- while (1) {
2440
- switch (_context.prev = _context.next) {
2441
- case 0:
2442
- _context.next = 2;
2443
- return fetch('/api/popup_polls', requestOptions).then(function (res) {
2444
- return res.json();
2445
- }).then(function (res) {
2446
- return console.log(res);
2447
- });
2448
-
2449
- case 2:
2450
- case 'end':
2451
- return _context.stop();
2452
- }
2453
- }
2454
- }, _callee, _this);
2455
- }));
2456
-
2457
- return function insertData() {
2458
- return _ref.apply(this, arguments);
2459
- };
2460
- }();
2461
- console.log('formData', formData);
2462
- insertData();
2463
- });
2464
- restartPlayer();
2465
- e.preventDefault();
2466
- };
2467
-
2468
- var pollArray = [];
2469
- pollItems.forEach(function (item, ind) {
2470
- if (item.format === 'multiChoice') {
2471
- pollArray.push(React__default.createElement(PopupMultiChoice, {
2472
- question: item.question,
2473
- choices: item.choices,
2474
- handlePollAnswer: handlePollAnswer,
2475
- key: ind
2476
- }));
2477
- }
2478
- if (item.format === 'textInput') {
2479
- pollArray.push(React__default.createElement(PopupPollTextInput, {
2480
- textInputQuestion: item.question,
2481
- textanswer: textAnswer,
2482
- handleTextAnswer: handleTextAnswer,
2483
- key: ind
2484
- }));
2485
- }
2486
- });
2487
-
2488
- return React__default.createElement(
2489
- 'div',
2490
- {
2491
- className: 'modalDiv',
2492
- id: 'modalDiv'
2493
- },
2494
- React__default.createElement(
2495
- Modal.Dialog,
2496
- null,
2497
- React__default.createElement(
2498
- Modal.Body,
2499
- null,
2500
- React__default.createElement(
2501
- Form,
2502
- {
2503
- onSubmit: handleSubmit,
2504
- className: 'modalForm'
2505
- },
2506
- pollArray,
2507
- multiChoiceRender && !textInputRender ? React__default.createElement(
2508
- Button,
2509
- {
2510
- className: 'submitButton',
2511
- type: 'submit',
2512
- variant: 'success',
2513
- disabled: !pollAnswer
2514
- },
2515
- 'Submit'
2516
- ) : textInputRender && !multiChoiceRender ? React__default.createElement(
2517
- Button,
2518
- {
2519
- className: 'submitButton',
2520
- type: 'submit',
2521
- variant: 'success',
2522
- disabled: !textAnswer
2523
- },
2524
- 'Submit'
2525
- ) : React__default.createElement(
2526
- Button,
2527
- {
2528
- className: 'submitButton',
2529
- type: 'submit',
2530
- variant: 'success',
2531
- disabled: !textAnswer || !pollAnswer
2532
- },
2533
- 'Submit'
2534
- )
2535
- )
2536
- )
2537
- )
2538
- );
2539
- };
2540
-
2541
2315
  var Video = function Video(_ref) {
2542
2316
  var node = _ref.node,
2543
2317
  accountIDs = _ref.accountIDs,
@@ -2554,57 +2328,14 @@ var Video = function Video(_ref) {
2554
2328
  playlistID = node.playlistID,
2555
2329
  experienceID = node.experienceID;
2556
2330
 
2557
- var polls = void 0;
2558
- if (node.polls) polls = node.polls;
2559
-
2560
2331
  var _useState = useState(false),
2561
2332
  _useState2 = _slicedToArray(_useState, 2),
2562
2333
  videoLoaded = _useState2[0],
2563
2334
  setVideoLoaded = _useState2[1];
2564
2335
 
2565
- var _useState3 = useState(false),
2566
- _useState4 = _slicedToArray(_useState3, 2),
2567
- isPollingTime = _useState4[0],
2568
- setIsPollingTime = _useState4[1];
2569
-
2570
- var _useState5 = useState([]),
2571
- _useState6 = _slicedToArray(_useState5, 2),
2572
- pollItems = _useState6[0],
2573
- setPollItems = _useState6[1];
2574
-
2575
- var _useState7 = useState(''),
2576
- _useState8 = _slicedToArray(_useState7, 2),
2577
- pollUrl = _useState8[0],
2578
- setPollUrl = _useState8[1];
2579
-
2580
- var _useState9 = useState(),
2581
- _useState10 = _slicedToArray(_useState9, 2),
2582
- videoPlayer = _useState10[0],
2583
- setVideoPlayer = _useState10[1];
2584
-
2585
- var _useState11 = useState(0),
2586
- _useState12 = _slicedToArray(_useState11, 2),
2587
- currentPlayTime = _useState12[0],
2588
- setCurrentPlayTime = _useState12[1];
2589
-
2590
- var _useState13 = useState(false),
2591
- _useState14 = _slicedToArray(_useState13, 2),
2592
- multiChoiceRender = _useState14[0],
2593
- setMultiChoiceRender = _useState14[1];
2594
-
2595
- var _useState15 = useState(false),
2596
- _useState16 = _slicedToArray(_useState15, 2),
2597
- textInputRender = _useState16[0],
2598
- setTextInputRender = _useState16[1];
2599
-
2600
- var restartPlayer = function restartPlayer() {
2601
- setIsPollingTime(false);
2602
- videoPlayer.play();
2603
- };
2604
-
2605
2336
  useEffect(function () {
2606
2337
  if (!videoLoaded && experienceID) {
2607
- // To load Experience Player JS
2338
+ //To load Experience Player JS
2608
2339
  var experiencePlayerScript = document.createElement('script');
2609
2340
  experiencePlayerScript.src = 'https://players.brightcove.net/' + accountIDs.brightcove.accountId + '/experience_' + experienceID + '/live.js';
2610
2341
  document.body.appendChild(experiencePlayerScript);
@@ -2617,9 +2348,8 @@ var Video = function Video(_ref) {
2617
2348
  };
2618
2349
 
2619
2350
  var onVideoSuccess = function onVideoSuccess(success) {
2620
- // console.log('success:', success)
2351
+ //console.log('success:', success.ref)
2621
2352
  var player = success.ref;
2622
- setVideoPlayer(player);
2623
2353
  if (_typeof$1(player.ima3) === 'object' && player.ima3.settings && player.ima3.settings.serverUrl && targeting !== null) {
2624
2354
  player.ima3.settings.debug = true;
2625
2355
  if (targeting.content_placement && targeting.document_url) {
@@ -2630,7 +2360,7 @@ var Video = function Video(_ref) {
2630
2360
  player.on('loadedmetadata', function (evt) {
2631
2361
  var _this = this;
2632
2362
 
2633
- // console.log('loadedmetadata:', evt)
2363
+ //console.log('loadedmetadata:', evt)
2634
2364
  console.log('mediainfo:', player.mediainfo); // get the duration from here
2635
2365
  var duration = player.mediainfo.duration;
2636
2366
  var current = player.currentTime();
@@ -2674,50 +2404,17 @@ var Video = function Video(_ref) {
2674
2404
  autoPlayVideo();
2675
2405
  }
2676
2406
 
2677
- // Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2407
+ //Beam.report_beam_video('Ready', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2678
2408
  Segment.report_video_event('Video Ready', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2679
2409
  });
2680
- var intId = void 0;
2681
- var convertTime = function convertTime(timeStr) {
2682
- var minutes = parseInt(timeStr.slice(0, 2));
2683
- var seconds = parseInt(timeStr.slice(3));
2684
- return minutes * 60 + seconds;
2685
- };
2686
- var modalTimes = [];
2687
- polls.forEach(function (pollObj) {
2688
- return modalTimes.push(convertTime(pollObj.timestamp));
2689
- });
2690
- console.log('last poll time', modalTimes[modalTimes.length - 1]);
2410
+
2411
+ // play
2691
2412
  player.on('play', function (evt) {
2692
2413
  var duration = player.mediainfo.duration;
2693
2414
  var current = player.currentTime();
2694
2415
  var queue = Math.floor(duration / 10);
2695
2416
  var segment = Math.floor(current / queue);
2696
- if (polls) {
2697
- var vidPlayer = this;
2698
- intId = setInterval(function () {
2699
- var ct = player.currentTime();
2700
- console.log('ct', ct);
2701
- setCurrentPlayTime(ct);
2702
- console.log('currentPlayTime', currentPlayTime);
2703
- console.log('intervaling');
2704
- if (intId) console.log('interval ID is ' + intId);
2705
- console.log('isPollingTime', isPollingTime);
2706
- modalTimes.forEach(function (modalTime, ind) {
2707
- if (Math.floor(ct) === modalTime) {
2708
- setPollItems(polls[ind].pollItems);
2709
- setPollUrl(targeting.document_url[0]);
2710
- setIsPollingTime(true);
2711
- polls[ind].pollItems.forEach(function (item) {
2712
- if (item.format === 'multiChoice') setMultiChoiceRender(true);
2713
- if (item.format === 'textInput') setTextInputRender(true);
2714
- });
2715
- vidPlayer.pause();
2716
- }
2717
- });
2718
- }, 1000);
2719
- }
2720
- // Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2417
+ //Beam.report_beam_video('Play', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2721
2418
  Segment.report_video_event('Video Play', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2722
2419
  });
2723
2420
 
@@ -2727,9 +2424,7 @@ var Video = function Video(_ref) {
2727
2424
  var current = player.currentTime();
2728
2425
  var queue = Math.floor(duration / 10);
2729
2426
  var segment = Math.floor(current / queue);
2730
- clearInterval(intId);
2731
- console.log('clearing interval ' + intId + ' in pause');
2732
- // Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2427
+ //Beam.report_beam_video('Pause', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2733
2428
  Segment.report_video_event('Video Pause', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2734
2429
  });
2735
2430
 
@@ -2739,10 +2434,9 @@ var Video = function Video(_ref) {
2739
2434
  var current = player.currentTime();
2740
2435
  var queue = Math.floor(duration / 10);
2741
2436
  var segment = Math.floor(current / queue);
2742
- clearInterval(intId);
2743
- // Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2437
+ //Beam.report_beam_video('End', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2744
2438
  Segment.report_video_event('Video End', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2745
- // This is for old series format
2439
+ //This is for old series format
2746
2440
  autoplayNextVideo(evt);
2747
2441
  if (nextVideo) {
2748
2442
  window.location.href = '/view/' + nextVideo;
@@ -2756,7 +2450,7 @@ var Video = function Video(_ref) {
2756
2450
  var queue = Math.floor(duration / 10);
2757
2451
  var segment = Math.floor(current / queue);
2758
2452
  if (!queueProgress.includes(segment)) {
2759
- // Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2453
+ //Beam.report_beam_video('Segment', deviceType, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID)
2760
2454
  Segment.report_video_event('Video Segment', main_18, duration, current, segment, 'BrightCove', accountIDs.brightcove.playerId, accountIDs.brightcove.accountId, videoID);
2761
2455
  queueProgress.push(segment);
2762
2456
  }
@@ -2765,19 +2459,19 @@ var Video = function Video(_ref) {
2765
2459
  // ad impression
2766
2460
  player.on('ads-ad-started', function (evt) {
2767
2461
  var duration = player.ads.ad.duration;
2768
- // const id = player.ads.ad.id
2462
+ player.ads.ad.id;
2769
2463
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2770
2464
 
2771
- // Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
2465
+ //Beam.report_beam_ad('AD Started', deviceType, '', '', '', '', '', adType, duration, id)
2772
2466
  Segment.report_ad_event('Video Ad Started', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2773
2467
  });
2774
2468
 
2775
2469
  // ad ended
2776
2470
  player.on('ads-ad-ended', function (evt) {
2777
2471
  var duration = player.ads.ad.duration;
2778
- // const id = player.ads.ad.id
2472
+ player.ads.ad.id;
2779
2473
  var adType = 'Bright Cove: ' + player.ads.ad.type;
2780
- // Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
2474
+ //Beam.report_beam_ad('AD Ended', deviceType, '', '', '', '', '', adType, duration, id)
2781
2475
  Segment.report_ad_event('Video Ad Ended', main_18, duration, adType, accountIDs.brightcove.playerId, accountIDs.brightcove.accountId);
2782
2476
  });
2783
2477
  };
@@ -2787,20 +2481,6 @@ var Video = function Video(_ref) {
2787
2481
  return React__default.createElement(
2788
2482
  'div',
2789
2483
  null,
2790
- isPollingTime ? React__default.createElement(PopupPollModal
2791
- // eslint-disable-next-line react/jsx-indent-props
2792
- , { pollItems: pollItems
2793
- // eslint-disable-next-line react/jsx-indent-props
2794
- , pollUrl: pollUrl
2795
- // eslint-disable-next-line react/jsx-indent-props
2796
- , isPollingTime: isPollingTime
2797
- // eslint-disable-next-line react/jsx-indent-props
2798
- , restartPlayer: restartPlayer
2799
- // eslint-disable-next-line react/jsx-indent-props
2800
- , textInputRender: textInputRender
2801
- // eslint-disable-next-line react/jsx-indent-props
2802
- , multiChoiceRender: multiChoiceRender
2803
- }) : null,
2804
2484
  React__default.createElement(ReactPlayerLoader, {
2805
2485
  onSuccess: onVideoSuccess,
2806
2486
  onFailure: onVideoFailure,
@@ -2842,7 +2522,6 @@ var Video = function Video(_ref) {
2842
2522
  }
2843
2523
  return null;
2844
2524
  }
2845
-
2846
2525
  if (source === 'mp4') {
2847
2526
  return React__default.createElement(
2848
2527
  'div',
@@ -7950,7 +7629,7 @@ var Poll$1 = function Poll(_ref) {
7950
7629
  );
7951
7630
  }),
7952
7631
  React__default.createElement(
7953
- Button$1,
7632
+ Button,
7954
7633
  { disabled: !selectedChoice, type: 'submit' },
7955
7634
  'Vote'
7956
7635
  )
@@ -8127,7 +7806,7 @@ var Poll = function Poll(_ref) {
8127
7806
  );
8128
7807
  }),
8129
7808
  React__default.createElement(
8130
- Button$1,
7809
+ Button,
8131
7810
  { disabled: !selectedChoice, type: 'submit' },
8132
7811
  'Vote'
8133
7812
  )
@@ -8440,7 +8119,7 @@ var Quiz = function Quiz(_ref) {
8440
8119
  )
8441
8120
  ),
8442
8121
  !showAnswer && React__default.createElement(
8443
- Button,
8122
+ Button$1,
8444
8123
  { onClick: function onClick() {
8445
8124
  return checkAnswers();
8446
8125
  }, variant: 'info', block: true },
package/dist/esm/index.js CHANGED
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
79
79
  export { default as YahooHero } from './YahooHero.js';
80
80
  export { default as GridHero } from './GridHero.js';
81
81
  export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
82
- export { g as getSerializers } from './index-803278c4.js';
82
+ export { g as getSerializers } from './index-4d8a8743.js';
83
83
  export { default as Beam } from './Beam.js';
84
84
  export { default as Segment } from './Segment.js';
85
85
  export { default as KMTracker } from './KMTracker.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.919-TEST",
3
+ "version": "1.0.919",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",
@@ -99,7 +99,6 @@
99
99
  "js-cookie": "^2.2.1",
100
100
  "next-auth": "^3.2.0",
101
101
  "next-cookies": "^2.0.3",
102
- "node-fetch": "^2.6.1",
103
102
  "nookies": "^2.4.0",
104
103
  "react-cookies": "^0.1.1",
105
104
  "react-facebook": "^8.1.4",