@mjhls/mjh-framework 1.0.965 → 1.0.966-reference-serializer-v2

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 (88) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +131 -15
  3. package/dist/cjs/ArticleProgramLandingPage.js +1 -1
  4. package/dist/cjs/AuthWrapper.js +1 -1
  5. package/dist/cjs/ConferenceArticleCard.js +15 -15
  6. package/dist/cjs/ContentCardPaginated.js +1 -2
  7. package/dist/cjs/DeckContent.js +8 -8
  8. package/dist/cjs/DeckQueuePaginated.js +1 -2
  9. package/dist/cjs/EventsDeck.js +17 -17
  10. package/dist/cjs/ExternalResources.js +1 -1
  11. package/dist/cjs/GridContentPaginated.js +1 -2
  12. package/dist/cjs/HamMagazine.js +9 -9
  13. package/dist/cjs/HealthCareProfessionalModal.js +1 -1
  14. package/dist/cjs/HorizontalArticleListing.js +1 -1
  15. package/dist/cjs/IssueLanding.js +30 -30
  16. package/dist/cjs/KMTracker.js +15 -15
  17. package/dist/cjs/MasterDeck.js +8 -8
  18. package/dist/cjs/MasterDeckPaginated.js +9 -10
  19. package/dist/cjs/{MediaSeriesCard-d7a5f3c7.js → MediaSeriesCard-988b53d3.js} +2 -2
  20. package/dist/cjs/MediaSeriesLanding.js +7 -7
  21. package/dist/cjs/MediaSeriesLandingPaginated.js +8 -9
  22. package/dist/cjs/NavMagazine.js +10 -10
  23. package/dist/cjs/NavNative.js +9 -9
  24. package/dist/cjs/Pagination-30bb1ca1.js +97 -0
  25. package/dist/cjs/PartnerDetailListing.js +1 -1
  26. package/dist/cjs/PartnerDetailListingPaginated.js +2 -3
  27. package/dist/cjs/PublicationLanding.js +26 -26
  28. package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
  29. package/dist/cjs/RelatedContent.js +28 -28
  30. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  31. package/dist/cjs/SeriesListingDeck.js +1 -1
  32. package/dist/cjs/{SeriesSlider-594b19eb.js → SeriesSlider-74546d19.js} +4 -4
  33. package/dist/cjs/SideFooter.js +2 -2
  34. package/dist/cjs/TaxonomyDescription.js +1 -1
  35. package/dist/cjs/VideoProgramLandingPage.js +1 -1
  36. package/dist/cjs/VideoSeriesCard.js +1 -1
  37. package/dist/cjs/View.js +32 -25
  38. package/dist/cjs/YoutubeGroup.js +4 -4
  39. package/dist/cjs/getSerializers.js +1 -1
  40. package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-dab97fe1.js} +9 -9
  41. package/dist/cjs/getTargeting.js +1 -1
  42. package/dist/cjs/{index-0c7e47cd.js → index-3972d55f.js} +480 -46
  43. package/dist/cjs/index.js +3 -4
  44. package/dist/esm/AlgoliaSearch.js +132 -16
  45. package/dist/esm/ArticleProgramLandingPage.js +1 -1
  46. package/dist/esm/AuthWrapper.js +1 -1
  47. package/dist/esm/ConferenceArticleCard.js +15 -15
  48. package/dist/esm/ContentCardPaginated.js +1 -2
  49. package/dist/esm/DeckContent.js +8 -8
  50. package/dist/esm/DeckQueuePaginated.js +1 -2
  51. package/dist/esm/EventsDeck.js +17 -17
  52. package/dist/esm/ExternalResources.js +1 -1
  53. package/dist/esm/GridContentPaginated.js +1 -2
  54. package/dist/esm/HamMagazine.js +9 -9
  55. package/dist/esm/HealthCareProfessionalModal.js +1 -1
  56. package/dist/esm/HorizontalArticleListing.js +1 -1
  57. package/dist/esm/IssueLanding.js +30 -30
  58. package/dist/esm/KMTracker.js +15 -15
  59. package/dist/esm/MasterDeck.js +8 -8
  60. package/dist/esm/MasterDeckPaginated.js +9 -10
  61. package/dist/esm/{MediaSeriesCard-748d85aa.js → MediaSeriesCard-0c8104cb.js} +2 -2
  62. package/dist/esm/MediaSeriesLanding.js +7 -7
  63. package/dist/esm/MediaSeriesLandingPaginated.js +8 -9
  64. package/dist/esm/NavMagazine.js +10 -10
  65. package/dist/esm/NavNative.js +9 -9
  66. package/dist/esm/Pagination-194dd03f.js +90 -0
  67. package/dist/esm/PartnerDetailListing.js +1 -1
  68. package/dist/esm/PartnerDetailListingPaginated.js +2 -3
  69. package/dist/esm/PublicationLanding.js +26 -26
  70. package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
  71. package/dist/esm/RelatedContent.js +28 -28
  72. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  73. package/dist/esm/SeriesListingDeck.js +1 -1
  74. package/dist/esm/{SeriesSlider-f771e20d.js → SeriesSlider-e495571f.js} +4 -4
  75. package/dist/esm/SideFooter.js +2 -2
  76. package/dist/esm/TaxonomyDescription.js +1 -1
  77. package/dist/esm/VideoProgramLandingPage.js +1 -1
  78. package/dist/esm/VideoSeriesCard.js +1 -1
  79. package/dist/esm/View.js +32 -24
  80. package/dist/esm/YoutubeGroup.js +4 -4
  81. package/dist/esm/getSerializers.js +1 -1
  82. package/dist/esm/{getTargeting-42f9b439.js → getTargeting-04d979c9.js} +9 -9
  83. package/dist/esm/getTargeting.js +1 -1
  84. package/dist/esm/{index-b5289749.js → index-4cef488a.js} +480 -46
  85. package/dist/esm/index.js +3 -4
  86. package/package.json +117 -115
  87. package/dist/cjs/Pagination-c63770a3.js +0 -90
  88. package/dist/esm/Pagination-6f8d5327.js +0 -82
@@ -7502,7 +7502,9 @@ _defineProperty(ReactPlayer, "canEnablePIP", function (url) {
7502
7502
  var ReactPlayer = _commonjsHelpers.unwrapExports(ReactPlayer_1);
7503
7503
 
7504
7504
  var Audio = function Audio(_ref) {
7505
- var node = _ref.node;
7505
+ var node = _ref.node,
7506
+ _ref$audioAutoplay = _ref.audioAutoplay,
7507
+ audioAutoplay = _ref$audioAutoplay === undefined ? false : _ref$audioAutoplay;
7506
7508
 
7507
7509
  if (node.uploadAudio) {
7508
7510
  return React__default['default'].createElement(
@@ -7510,7 +7512,7 @@ var Audio = function Audio(_ref) {
7510
7512
  { className: 'audio d-block text-center mb-3' },
7511
7513
  React__default['default'].createElement(
7512
7514
  'audio',
7513
- { controls: true, controlsList: 'nodownload', className: 'audio' },
7515
+ { controls: true, controlsList: 'nodownload', className: 'audio', autoPlay: audioAutoplay },
7514
7516
  React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/ogg' }),
7515
7517
  React__default['default'].createElement('source', { src: node.uploadAudio.asset.url, type: 'audio/mpeg' }),
7516
7518
  'Your browser does not support the audio element.'
@@ -10336,6 +10338,433 @@ var BlockTable = function BlockTable(props) {
10336
10338
  );
10337
10339
  };
10338
10340
 
10341
+ var bibtexParse = _commonjsHelpers.createCommonjsModule(function (module, exports) {
10342
+ /* start bibtexParse 0.0.24 */
10343
+
10344
+ //Original work by Henrik Muehe (c) 2010
10345
+ //
10346
+ //CommonJS port by Mikola Lysenko 2013
10347
+ //
10348
+ //Port to Browser lib by ORCID / RCPETERS
10349
+ //
10350
+ //Issues:
10351
+ //no comment handling within strings
10352
+ //no string concatenation
10353
+ //no variable values yet
10354
+ //Grammar implemented here:
10355
+ //bibtex -> (string | preamble | comment | entry)*;
10356
+ //string -> '@STRING' '{' key_equals_value '}';
10357
+ //preamble -> '@PREAMBLE' '{' value '}';
10358
+ //comment -> '@COMMENT' '{' value '}';
10359
+ //entry -> '@' key '{' key ',' key_value_list '}';
10360
+ //key_value_list -> key_equals_value (',' key_equals_value)*;
10361
+ //key_equals_value -> key '=' value;
10362
+ //value -> value_quotes | value_braces | key;
10363
+ //value_quotes -> '"' .*? '"'; // not quite
10364
+ //value_braces -> '{' .*? '"'; // not quite
10365
+ (function(exports) {
10366
+
10367
+ function BibtexParser() {
10368
+
10369
+ this.months = ["jan", "feb", "mar", "apr", "may", "jun", "jul", "aug", "sep", "oct", "nov", "dec"];
10370
+ this.notKey = [',','{','}',' ','='];
10371
+ this.pos = 0;
10372
+ this.input = "";
10373
+ this.entries = new Array();
10374
+
10375
+ this.currentEntry = "";
10376
+
10377
+ this.setInput = function(t) {
10378
+ this.input = t;
10379
+ };
10380
+
10381
+ this.getEntries = function() {
10382
+ return this.entries;
10383
+ };
10384
+
10385
+ this.isWhitespace = function(s) {
10386
+ return (s == ' ' || s == '\r' || s == '\t' || s == '\n');
10387
+ };
10388
+
10389
+ this.match = function(s, canCommentOut) {
10390
+ if (canCommentOut == undefined || canCommentOut == null)
10391
+ canCommentOut = true;
10392
+ this.skipWhitespace(canCommentOut);
10393
+ if (this.input.substring(this.pos, this.pos + s.length) == s) {
10394
+ this.pos += s.length;
10395
+ } else {
10396
+ throw "Token mismatch, expected " + s + ", found "
10397
+ + this.input.substring(this.pos);
10398
+ } this.skipWhitespace(canCommentOut);
10399
+ };
10400
+
10401
+ this.tryMatch = function(s, canCommentOut) {
10402
+ if (canCommentOut == undefined || canCommentOut == null)
10403
+ canCommentOut = true;
10404
+ this.skipWhitespace(canCommentOut);
10405
+ if (this.input.substring(this.pos, this.pos + s.length) == s) {
10406
+ return true;
10407
+ } else {
10408
+ return false;
10409
+ } };
10410
+
10411
+ /* when search for a match all text can be ignored, not just white space */
10412
+ this.matchAt = function() {
10413
+ while (this.input.length > this.pos && this.input[this.pos] != '@') {
10414
+ this.pos++;
10415
+ }
10416
+ if (this.input[this.pos] == '@') {
10417
+ return true;
10418
+ } return false;
10419
+ };
10420
+
10421
+ this.skipWhitespace = function(canCommentOut) {
10422
+ while (this.isWhitespace(this.input[this.pos])) {
10423
+ this.pos++;
10424
+ } if (this.input[this.pos] == "%" && canCommentOut == true) {
10425
+ while (this.input[this.pos] != "\n") {
10426
+ this.pos++;
10427
+ } this.skipWhitespace(canCommentOut);
10428
+ } };
10429
+
10430
+ this.value_braces = function() {
10431
+ var bracecount = 0;
10432
+ this.match("{", false);
10433
+ var start = this.pos;
10434
+ var escaped = false;
10435
+ while (true) {
10436
+ if (!escaped) {
10437
+ if (this.input[this.pos] == '}') {
10438
+ if (bracecount > 0) {
10439
+ bracecount--;
10440
+ } else {
10441
+ var end = this.pos;
10442
+ this.match("}", false);
10443
+ return this.input.substring(start, end);
10444
+ } } else if (this.input[this.pos] == '{') {
10445
+ bracecount++;
10446
+ } else if (this.pos >= this.input.length - 1) {
10447
+ throw "Unterminated value";
10448
+ } } if (this.input[this.pos] == '\\' && escaped == false)
10449
+ escaped = true;
10450
+ else
10451
+ escaped = false;
10452
+ this.pos++;
10453
+ } };
10454
+
10455
+ this.value_comment = function() {
10456
+ var str = '';
10457
+ var brcktCnt = 0;
10458
+ while (!(this.tryMatch("}", false) && brcktCnt == 0)) {
10459
+ str = str + this.input[this.pos];
10460
+ if (this.input[this.pos] == '{')
10461
+ brcktCnt++;
10462
+ if (this.input[this.pos] == '}')
10463
+ brcktCnt--;
10464
+ if (this.pos >= this.input.length - 1) {
10465
+ throw "Unterminated value:" + this.input.substring(start);
10466
+ } this.pos++;
10467
+ } return str;
10468
+ };
10469
+
10470
+ this.value_quotes = function() {
10471
+ this.match('"', false);
10472
+ var start = this.pos;
10473
+ var escaped = false;
10474
+ while (true) {
10475
+ if (!escaped) {
10476
+ if (this.input[this.pos] == '"') {
10477
+ var end = this.pos;
10478
+ this.match('"', false);
10479
+ return this.input.substring(start, end);
10480
+ } else if (this.pos >= this.input.length - 1) {
10481
+ throw "Unterminated value:" + this.input.substring(start);
10482
+ } }
10483
+ if (this.input[this.pos] == '\\' && escaped == false)
10484
+ escaped = true;
10485
+ else
10486
+ escaped = false;
10487
+ this.pos++;
10488
+ } };
10489
+
10490
+ this.single_value = function() {
10491
+ var start = this.pos;
10492
+ if (this.tryMatch("{")) {
10493
+ return this.value_braces();
10494
+ } else if (this.tryMatch('"')) {
10495
+ return this.value_quotes();
10496
+ } else {
10497
+ var k = this.key();
10498
+ if (k.match("^[0-9]+$"))
10499
+ return k;
10500
+ else if (this.months.indexOf(k.toLowerCase()) >= 0)
10501
+ return k.toLowerCase();
10502
+ else
10503
+ throw "Value expected:" + this.input.substring(start) + ' for key: ' + k;
10504
+
10505
+ } };
10506
+
10507
+ this.value = function() {
10508
+ var values = [];
10509
+ values.push(this.single_value());
10510
+ while (this.tryMatch("#")) {
10511
+ this.match("#");
10512
+ values.push(this.single_value());
10513
+ } return values.join("");
10514
+ };
10515
+
10516
+ this.key = function(optional) {
10517
+ var start = this.pos;
10518
+ while (true) {
10519
+ if (this.pos >= this.input.length) {
10520
+ throw "Runaway key";
10521
+ } // а-яА-Я is Cyrillic
10522
+ //console.log(this.input[this.pos]);
10523
+ if (this.notKey.indexOf(this.input[this.pos]) >= 0) {
10524
+ if (optional && this.input[this.pos] != ',') {
10525
+ this.pos = start;
10526
+ return null;
10527
+ } return this.input.substring(start, this.pos);
10528
+ } else {
10529
+ this.pos++;
10530
+
10531
+ } } };
10532
+
10533
+ this.key_equals_value = function() {
10534
+ var key = this.key();
10535
+ if (this.tryMatch("=")) {
10536
+ this.match("=");
10537
+ var val = this.value();
10538
+ key = key.trim();
10539
+ return [ key, val ];
10540
+ } else {
10541
+ throw "... = value expected, equals sign missing:"
10542
+ + this.input.substring(this.pos);
10543
+ } };
10544
+
10545
+ this.key_value_list = function() {
10546
+ var kv = this.key_equals_value();
10547
+ this.currentEntry['entryTags'] = {};
10548
+ this.currentEntry['entryTags'][kv[0]] = kv[1];
10549
+ while (this.tryMatch(",")) {
10550
+ this.match(",");
10551
+ // fixes problems with commas at the end of a list
10552
+ if (this.tryMatch("}")) {
10553
+ break;
10554
+ }
10555
+ kv = this.key_equals_value();
10556
+ this.currentEntry['entryTags'][kv[0]] = kv[1];
10557
+ } };
10558
+
10559
+ this.entry_body = function(d) {
10560
+ this.currentEntry = {};
10561
+ this.currentEntry['citationKey'] = this.key(true);
10562
+ this.currentEntry['entryType'] = d.substring(1);
10563
+ if (this.currentEntry['citationKey'] != null) {
10564
+ this.match(",");
10565
+ }
10566
+ this.key_value_list();
10567
+ this.entries.push(this.currentEntry);
10568
+ };
10569
+
10570
+ this.directive = function() {
10571
+ this.match("@");
10572
+ return "@" + this.key();
10573
+ };
10574
+
10575
+ this.preamble = function() {
10576
+ this.currentEntry = {};
10577
+ this.currentEntry['entryType'] = 'PREAMBLE';
10578
+ this.currentEntry['entry'] = this.value_comment();
10579
+ this.entries.push(this.currentEntry);
10580
+ };
10581
+
10582
+ this.comment = function() {
10583
+ this.currentEntry = {};
10584
+ this.currentEntry['entryType'] = 'COMMENT';
10585
+ this.currentEntry['entry'] = this.value_comment();
10586
+ this.entries.push(this.currentEntry);
10587
+ };
10588
+
10589
+ this.entry = function(d) {
10590
+ this.entry_body(d);
10591
+ };
10592
+
10593
+ this.alernativeCitationKey = function () {
10594
+ this.entries.forEach(function (entry) {
10595
+ if (!entry.citationKey && entry.entryTags) {
10596
+ entry.citationKey = '';
10597
+ if (entry.entryTags.author) {
10598
+ entry.citationKey += entry.entryTags.author.split(',')[0] += ', ';
10599
+ }
10600
+ entry.citationKey += entry.entryTags.year;
10601
+ }
10602
+ });
10603
+ };
10604
+
10605
+ this.bibtex = function() {
10606
+ while (this.matchAt()) {
10607
+ var d = this.directive();
10608
+ this.match("{");
10609
+ if (d.toUpperCase() == "@STRING") {
10610
+ this.string();
10611
+ } else if (d.toUpperCase() == "@PREAMBLE") {
10612
+ this.preamble();
10613
+ } else if (d.toUpperCase() == "@COMMENT") {
10614
+ this.comment();
10615
+ } else {
10616
+ this.entry(d);
10617
+ }
10618
+ this.match("}");
10619
+ }
10620
+ this.alernativeCitationKey();
10621
+ };
10622
+ }
10623
+ exports.toJSON = function(bibtex) {
10624
+ var b = new BibtexParser();
10625
+ b.setInput(bibtex);
10626
+ b.bibtex();
10627
+ return b.entries;
10628
+ };
10629
+
10630
+ /* added during hackathon don't hate on me */
10631
+ exports.toBibtex = function(json) {
10632
+ var out = '';
10633
+ for ( var i in json) {
10634
+ out += "@" + json[i].entryType;
10635
+ out += '{';
10636
+ if (json[i].citationKey)
10637
+ out += json[i].citationKey + ', ';
10638
+ if (json[i].entry)
10639
+ out += json[i].entry ;
10640
+ if (json[i].entryTags) {
10641
+ var tags = '';
10642
+ for (var jdx in json[i].entryTags) {
10643
+ if (tags.length != 0)
10644
+ tags += ', ';
10645
+ tags += jdx + '= {' + json[i].entryTags[jdx] + '}';
10646
+ }
10647
+ out += tags;
10648
+ }
10649
+ out += '}\n\n';
10650
+ }
10651
+ return out;
10652
+
10653
+ };
10654
+
10655
+ })(exports);
10656
+
10657
+ /* end bibtexParse */
10658
+ });
10659
+
10660
+ var References = function References(_ref) {
10661
+ var node = _ref.node,
10662
+ getSerializers = _ref.getSerializers;
10663
+ var referenceslist = node.referenceslist;
10664
+
10665
+ var getGoogleScholarUrl = function getGoogleScholarUrl(citationText, citationReferenceFormat) {
10666
+ if (citationReferenceFormat == 'Bibtex' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10667
+ var url = 'https://scholar.google.com/scholar_lookup?';
10668
+ var bibtexJson = bibtexParse.toJSON(citationText[0].children[0].text)[0];
10669
+ if (bibtexJson.entryTags) {
10670
+ if (bibtexJson.entryTags.title) url += 'title=' + bibtexJson.entryTags.title;
10671
+ if (bibtexJson.entryTags.author) {
10672
+ bibtexJson.entryTags.author.split(',').map(function (authorName) {
10673
+ return url += '&author=' + authorName;
10674
+ });
10675
+ }
10676
+ if (bibtexJson.entryTags.year) {
10677
+ url += '&publication_year=' + bibtexJson.entryTags.year;
10678
+ }
10679
+ if (bibtexJson.entryTags.journal) {
10680
+ url += '&journal=' + bibtexJson.entryTags.journal;
10681
+ }
10682
+ if (bibtexJson.entryTags.volume) {
10683
+ url += '&volume=' + bibtexJson.entryTags.volume;
10684
+ }
10685
+ if (bibtexJson.entryTags.pages) {
10686
+ url += '&pages=' + bibtexJson.entryTags.pages.replace('--', '-');
10687
+ }
10688
+ }
10689
+ return url;
10690
+ }
10691
+ };
10692
+ var getPubmedUrl = function getPubmedUrl(citationText, citationReferenceFormat) {
10693
+ if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10694
+ return citationText[0].children[0].text;
10695
+ }
10696
+ };
10697
+ var getCrossrefUrl = function getCrossrefUrl(citationText, citationReferenceFormat) {
10698
+ if (citationReferenceFormat == 'URL' && citationText.length > 0 && citationText[0].children && citationText[0].children.length > 0 && citationText[0].children[0].text) {
10699
+ if (citationText[0].children[0].text.includes('dx.doi.org')) {
10700
+ return citationText[0].children[0].text;
10701
+ } else {
10702
+ return 'http://dx.doi.org/' + citationText[0].children[0].text;
10703
+ }
10704
+ }
10705
+ };
10706
+ return React__default['default'].createElement(
10707
+ 'div',
10708
+ { className: 'references-list' },
10709
+ React__default['default'].createElement(
10710
+ 'p',
10711
+ { className: 'reference-title' },
10712
+ React__default['default'].createElement(
10713
+ 'strong',
10714
+ null,
10715
+ 'REFERENCES'
10716
+ )
10717
+ ),
10718
+ referenceslist && referenceslist.map(function (reference, ref_index) {
10719
+ return React__default['default'].createElement(
10720
+ 'div',
10721
+ { key: reference._key, id: reference.referenceID, className: 'reference-container' },
10722
+ React__default['default'].createElement(
10723
+ 'div',
10724
+ { className: 'reference-details', style: { display: 'flex', flexDirection: 'row' } },
10725
+ React__default['default'].createElement(
10726
+ 'span',
10727
+ null,
10728
+ ref_index + 1,
10729
+ '.\xA0'
10730
+ ),
10731
+ React__default['default'].createElement(BlockContent.BlockContent, { blocks: reference.referenceTitle, serializers: getSerializers })
10732
+ ),
10733
+ reference.citations && reference.citations.length > 0 && React__default['default'].createElement(
10734
+ 'div',
10735
+ { className: 'row citations-container ml-3 mr-3 mb-2' },
10736
+ reference.citations.map(function (citation, cit_index) {
10737
+ return React__default['default'].createElement(
10738
+ 'div',
10739
+ { key: 'citation_' + cit_index, className: 'mr-3 citation-link' },
10740
+ citation.citationName === 'googleScholar' ? React__default['default'].createElement(
10741
+ 'a',
10742
+ { target: '_blank', href: getGoogleScholarUrl(citation.citationText, citation.citationReferenceFormat) },
10743
+ 'Google Scholar'
10744
+ ) : citation.citationName === 'pubMed' ? React__default['default'].createElement(
10745
+ 'a',
10746
+ { target: '_blank', href: getPubmedUrl(citation.citationText, citation.citationReferenceFormat) },
10747
+ 'PubMed'
10748
+ ) : React__default['default'].createElement(
10749
+ 'a',
10750
+ { target: '_blank', href: getCrossrefUrl(citation.citationText, citation.citationReferenceFormat) },
10751
+ 'Crossref'
10752
+ )
10753
+ );
10754
+ })
10755
+ )
10756
+ );
10757
+ }),
10758
+ React__default['default'].createElement(
10759
+ 'style',
10760
+ { jsx: 'true' },
10761
+ '\n .reference-details p {\n margin-bottom: 0.5rem;\n }\n .citation-link a {\n text-decoration: none;\n color: var(--primary);\n padding: 0.25rem 0.5rem;\n }\n .citation-link a:hover {\n color: #ffffff;\n background-color: var(--primary);\n border-radius: 15px;\n }\n '
10762
+ )
10763
+ );
10764
+ };
10765
+
10766
+ var References$1 = React__default['default'].memo(References);
10767
+
10339
10768
  var ScrollToElement = function ScrollToElement(elementId) {
10340
10769
  var element = document.getElementById(elementId);
10341
10770
  if (element) {
@@ -10394,11 +10823,11 @@ var getSerializers = function getSerializers() {
10394
10823
  article = props[12],
10395
10824
  meta = props[13],
10396
10825
  authorPrefix = props[14],
10397
- authorImgHeight = props[15];
10826
+ authorImgHeight = props[15],
10827
+ audioAutoplay = props[16];
10398
10828
 
10399
10829
 
10400
10830
  var nextVideo = article && article.nextVideo ? article.nextVideo : null;
10401
-
10402
10831
  return {
10403
10832
  types: {
10404
10833
  undefined: function undefined$1() {
@@ -10454,52 +10883,57 @@ var getSerializers = function getSerializers() {
10454
10883
 
10455
10884
  return React__default['default'].createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10456
10885
  },
10457
- slideshow: function slideshow(_ref6) {
10886
+ referencesList: function referencesList(_ref6) {
10458
10887
  var node = _ref6.node;
10888
+
10889
+ return React__default['default'].createElement(References$1, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10890
+ },
10891
+ slideshow: function slideshow(_ref7) {
10892
+ var node = _ref7.node;
10459
10893
  var slides = node.slides;
10460
10894
 
10461
10895
  return React__default['default'].createElement(Slideshow$1, { slides: slides, client: client, pageview: pageview });
10462
10896
  },
10463
- sidebar: function sidebar(_ref7) {
10464
- var node = _ref7.node;
10897
+ sidebar: function sidebar(_ref8) {
10898
+ var node = _ref8.node;
10465
10899
  var caption = node.caption,
10466
10900
  content = node.content;
10467
10901
 
10468
10902
  return React__default['default'].createElement(Sidebar, { caption: caption, content: content, getSerializers: getSerializers.apply(undefined, props) });
10469
10903
  },
10470
- datatable: function datatable(_ref8) {
10471
- var node = _ref8.node;
10904
+ datatable: function datatable(_ref9) {
10905
+ var node = _ref9.node;
10472
10906
  var table = node.table;
10473
10907
 
10474
10908
  return React__default['default'].createElement(TableShow, { rows: table.rows });
10475
10909
  },
10476
- media: function media(_ref9) {
10477
- var node = _ref9.node;
10910
+ media: function media(_ref10) {
10911
+ var node = _ref10.node;
10478
10912
 
10479
10913
  return React__default['default'].createElement(Media, { node: node, client: client });
10480
10914
  },
10481
- iframe: function iframe(_ref10) {
10482
- var node = _ref10.node;
10915
+ iframe: function iframe(_ref11) {
10916
+ var node = _ref11.node;
10483
10917
 
10484
10918
  return React__default['default'].createElement(IFrame, { url: node.url, needSegmentSupport: node.needSegmentSupport });
10485
10919
  },
10486
- video: function video(_ref11) {
10487
- var node = _ref11.node;
10920
+ video: function video(_ref12) {
10921
+ var node = _ref12.node;
10488
10922
 
10489
10923
  return React__default['default'].createElement(Video, { node: node, autoplay: autoplay, accountIDs: videoAccountIDs || {}, targeting: targeting, nextVideo: nextVideo });
10490
10924
  },
10491
- audio: function audio(_ref12) {
10492
- var node = _ref12.node;
10925
+ audio: function audio(_ref13) {
10926
+ var node = _ref13.node;
10493
10927
 
10494
- return React__default['default'].createElement(Audio, { node: node });
10928
+ return React__default['default'].createElement(Audio, { node: node, audioAutoplay: audioAutoplay });
10495
10929
  },
10496
- poll: function poll(_ref13) {
10497
- var node = _ref13.node;
10930
+ poll: function poll(_ref14) {
10931
+ var node = _ref14.node;
10498
10932
 
10499
10933
  return React__default['default'].createElement(Poll$1, { node: node, client: client, pageview: pageview, videoAccountIDs: videoAccountIDs, showVotes: showVotes, onVote: onVote, getSerializers: getSerializers.apply(undefined, props) });
10500
10934
  },
10501
- pollMultiChoice: function pollMultiChoice(_ref14) {
10502
- var node = _ref14.node;
10935
+ pollMultiChoice: function pollMultiChoice(_ref15) {
10936
+ var node = _ref15.node;
10503
10937
 
10504
10938
  return React__default['default'].createElement(Poll, {
10505
10939
  node: node,
@@ -10511,31 +10945,31 @@ var getSerializers = function getSerializers() {
10511
10945
  getSerializers: getSerializers.apply(undefined, props)
10512
10946
  });
10513
10947
  },
10514
- quiz: function quiz(_ref15) {
10515
- var node = _ref15.node;
10948
+ quiz: function quiz(_ref16) {
10949
+ var node = _ref16.node;
10516
10950
  var quizzes = node.quizzes;
10517
10951
 
10518
10952
  return React__default['default'].createElement(Quiz, { quizzes: quizzes, getSerializers: getSerializers.apply(undefined, props), pageview: pageview, currentPage: currentPage });
10519
10953
  },
10520
- leads: function leads(_ref16) {
10521
- var node = _ref16.node;
10954
+ leads: function leads(_ref17) {
10955
+ var node = _ref17.node;
10522
10956
  var leadID = node.leadID;
10523
10957
 
10524
10958
  var url = '' + drupalLeadSettings.baseUrl + leadID;
10525
10959
  return React__default['default'].createElement(Leads, { url: url });
10526
10960
  },
10527
- slideshows: function slideshows(_ref17) {
10528
- var node = _ref17.node;
10961
+ slideshows: function slideshows(_ref18) {
10962
+ var node = _ref18.node;
10529
10963
 
10530
10964
  return React__default['default'].createElement(Slideshow, { node: node, client: client, pageview: pageview, getSerializers: getSerializers.apply(undefined, props) });
10531
10965
  },
10532
- nativeAd: function nativeAd(_ref18) {
10533
- var node = _ref18.node;
10966
+ nativeAd: function nativeAd(_ref19) {
10967
+ var node = _ref19.node;
10534
10968
 
10535
10969
  return React__default['default'].createElement(NativeAd, { node: node });
10536
10970
  },
10537
- html_anchor_links: function html_anchor_links(_ref19) {
10538
- var node = _ref19.node;
10971
+ html_anchor_links: function html_anchor_links(_ref20) {
10972
+ var node = _ref20.node;
10539
10973
 
10540
10974
  return React__default['default'].createElement(AnchorLinkElement, { node: node, getSerializers: getSerializers.apply(undefined, props), articleId: articleId });
10541
10975
  },
@@ -10545,8 +10979,8 @@ var getSerializers = function getSerializers() {
10545
10979
  brtag: function brtag() {
10546
10980
  return React__default['default'].createElement('br', { className: 'line-break' });
10547
10981
  },
10548
- formstack: function formstack(_ref20) {
10549
- var node = _ref20.node;
10982
+ formstack: function formstack(_ref21) {
10983
+ var node = _ref21.node;
10550
10984
  var FormID = node.FormID,
10551
10985
  Caption = node.Caption,
10552
10986
  needSegmentSupport = node.needSegmentSupport;
@@ -10554,13 +10988,13 @@ var getSerializers = function getSerializers() {
10554
10988
  return React__default['default'].createElement(Formstack, { FormID: FormID, Caption: Caption, needSegmentSupport: needSegmentSupport });
10555
10989
  },
10556
10990
  formassembly: FormAssembly,
10557
- multimedia: function multimedia(_ref21) {
10558
- var node = _ref21.node;
10991
+ multimedia: function multimedia(_ref22) {
10992
+ var node = _ref22.node;
10559
10993
 
10560
10994
  return React__default['default'].createElement(MultiMedia, { node: node, client: client });
10561
10995
  },
10562
- blockTable: function blockTable(_ref22) {
10563
- var node = _ref22.node;
10996
+ blockTable: function blockTable(_ref23) {
10997
+ var node = _ref23.node;
10564
10998
  return React__default['default'].createElement(BlockTable, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
10565
10999
  }
10566
11000
  },
@@ -10606,32 +11040,32 @@ var getSerializers = function getSerializers() {
10606
11040
  children
10607
11041
  ) : children;
10608
11042
  },
10609
- alignleft: function alignleft(_ref23) {
10610
- var children = _ref23.children;
11043
+ alignleft: function alignleft(_ref24) {
11044
+ var children = _ref24.children;
10611
11045
  return React__default['default'].createElement(
10612
11046
  'div',
10613
11047
  { style: { textAlign: 'left' } },
10614
11048
  children
10615
11049
  );
10616
11050
  },
10617
- alignright: function alignright(_ref24) {
10618
- var children = _ref24.children;
11051
+ alignright: function alignright(_ref25) {
11052
+ var children = _ref25.children;
10619
11053
  return React__default['default'].createElement(
10620
11054
  'div',
10621
11055
  { style: { textAlign: 'right' } },
10622
11056
  children
10623
11057
  );
10624
11058
  },
10625
- aligncenter: function aligncenter(_ref25) {
10626
- var children = _ref25.children;
11059
+ aligncenter: function aligncenter(_ref26) {
11060
+ var children = _ref26.children;
10627
11061
  return React__default['default'].createElement(
10628
11062
  'div',
10629
11063
  { style: { textAlign: 'center' } },
10630
11064
  children
10631
11065
  );
10632
11066
  },
10633
- alignjustify: function alignjustify(_ref26) {
10634
- var children = _ref26.children;
11067
+ alignjustify: function alignjustify(_ref27) {
11068
+ var children = _ref27.children;
10635
11069
  return React__default['default'].createElement(
10636
11070
  'div',
10637
11071
  { style: { textAlign: 'justify' } },
package/dist/cjs/index.js CHANGED
@@ -89,7 +89,7 @@ var VerticalHero = require('./VerticalHero.js');
89
89
  var YahooHero = require('./YahooHero.js');
90
90
  var GridHero = require('./GridHero.js');
91
91
  var ConferenceArticleCard = require('./ConferenceArticleCard.js');
92
- var getSerializers = require('./index-0c7e47cd.js');
92
+ var getSerializers = require('./index-3972d55f.js');
93
93
  var Beam = require('./Beam.js');
94
94
  var Segment = require('./Segment.js');
95
95
  var KMTracker = require('./KMTracker.js');
@@ -104,7 +104,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
104
104
  var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
105
105
  var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
106
106
  var Schema = require('./Schema.js');
107
- var getTargeting = require('./getTargeting-3c5754ac.js');
107
+ var getTargeting = require('./getTargeting-dab97fe1.js');
108
108
  var getKeywords = require('./getKeywords.js');
109
109
  var getQuery = require('./getQuery.js');
110
110
  require('./toConsumableArray-d7797c2b.js');
@@ -194,10 +194,9 @@ require('swr');
194
194
  require('passport-local');
195
195
  require('mysql');
196
196
  require('./md5-e1ca5797.js');
197
- require('./SeriesSlider-594b19eb.js');
197
+ require('./SeriesSlider-74546d19.js');
198
198
  require('./style-inject.es-dcee06b6.js');
199
199
  require('disqus-react');
200
- require('file-saver');
201
200
  require('react-twitter-embed');
202
201
  require('./ImageSlider-6c00b878.js');
203
202
  require('./defineProperty-e0fb52c5.js');