@mjhls/mjh-framework 1.0.974-identify → 1.0.974-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesLandingPage.js +2 -2
- package/dist/cjs/ContentCardPaginated.js +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/GridContentPaginated.js +2 -2
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/MasterDeck.js +2 -2
- package/dist/cjs/MasterDeckPaginated.js +2 -2
- package/dist/cjs/{MediaSeriesCard-91982ed5.js → MediaSeriesCard-94ff4d11.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +4 -4
- package/dist/cjs/MediaSeriesLandingPaginated.js +4 -4
- package/dist/cjs/PartnerDetailListing.js +3 -3
- package/dist/cjs/PartnerDetailListingPaginated.js +3 -3
- package/dist/cjs/PubSection.js +2 -2
- package/dist/cjs/QueueDeckExpanded.js +2 -2
- package/dist/cjs/QueueDeckExpandedPaginated.js +2 -2
- package/dist/cjs/Segment.js +0 -49
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +2 -2
- package/dist/cjs/View.js +48 -92
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesLandingPage.js +2 -2
- package/dist/esm/ContentCardPaginated.js +1 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/GridContentPaginated.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +3 -3
- package/dist/esm/MasterDeck.js +2 -2
- package/dist/esm/MasterDeckPaginated.js +2 -2
- package/dist/esm/{MediaSeriesCard-da5c7499.js → MediaSeriesCard-4f07fac6.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +4 -4
- package/dist/esm/MediaSeriesLandingPaginated.js +4 -4
- package/dist/esm/PartnerDetailListing.js +3 -3
- package/dist/esm/PartnerDetailListingPaginated.js +3 -3
- package/dist/esm/PubSection.js +2 -2
- package/dist/esm/QueueDeckExpanded.js +2 -2
- package/dist/esm/QueueDeckExpandedPaginated.js +2 -2
- package/dist/esm/Segment.js +1 -50
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +2 -2
- package/dist/esm/View.js +48 -92
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/index.js +3 -3
- package/package.json +1 -1
- /package/dist/cjs/{ADInfeed-e87afe8a.js → ADInfeed-81006615.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-b5a3d436.js → ADlgInfeed-0db07099.js} +0 -0
- /package/dist/cjs/{index-f064c482.js → index-eb1c583d.js} +0 -0
- /package/dist/esm/{ADInfeed-5765a73a.js → ADInfeed-6d1fc6bf.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5e36f317.js → ADlgInfeed-dc36c928.js} +0 -0
- /package/dist/esm/{index-8f118089.js → index-264bbd3c.js} +0 -0
package/dist/esm/Segment.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as _asyncToGenerator, r as regenerator } from './asyncToGenerator-958ef5fc.js';
|
|
2
2
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
3
3
|
import './core.get-iterator-method-ea258bb1.js';
|
|
4
4
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -38,55 +38,6 @@ var Segment = {
|
|
|
38
38
|
email: email
|
|
39
39
|
});
|
|
40
40
|
},
|
|
41
|
-
identifyWithGroupAndEmail: function identifyWithGroupAndEmail(groupId, email, anonId) {
|
|
42
|
-
if (typeof analytics === 'undefined') {
|
|
43
|
-
console.error('Segment not initialized', analytics);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// let buff = Buffer.from(email, 'ascii')
|
|
48
|
-
// const eKey = buff.toString('base64')
|
|
49
|
-
|
|
50
|
-
analytics.identify(anonId, {
|
|
51
|
-
groupId: groupId,
|
|
52
|
-
email: email
|
|
53
|
-
});
|
|
54
|
-
},
|
|
55
|
-
createGroup: function createGroup(groupId, anonId, groupName) {
|
|
56
|
-
if (typeof analytics === 'undefined') {
|
|
57
|
-
console.error('Segment not initialized', analytics);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
var buff = Buffer.from(groupId, 'ascii');
|
|
62
|
-
console.log('buff', buff);
|
|
63
|
-
|
|
64
|
-
var eKey = buff.toString('base64');
|
|
65
|
-
console.log('eKey', eKey);
|
|
66
|
-
_Promise.resolve(analytics.group(groupId, {
|
|
67
|
-
anonymousId: anonId,
|
|
68
|
-
name: groupName
|
|
69
|
-
})).then(function (data) {
|
|
70
|
-
return console.log('data', data);
|
|
71
|
-
}).catch(function (e) {
|
|
72
|
-
return console.log('Error: ' + e);
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
identifyWithGroup: function identifyWithGroup(groupId, anonId) {
|
|
76
|
-
if (!groupId) {
|
|
77
|
-
throw new Error('Argument is not present');
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
if (typeof analytics === 'undefined') {
|
|
81
|
-
console.error('Segment not initialized', analytics);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
_Promise.resolve(analytics.identify(anonId, {
|
|
85
|
-
groupId: groupId
|
|
86
|
-
})).then(function (res) {
|
|
87
|
-
return console.log('response', res);
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
41
|
getURL: function getURL(url) {
|
|
91
42
|
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
|
|
92
43
|
|
|
@@ -5,7 +5,7 @@ import React__default, { useState, useEffect } from 'react';
|
|
|
5
5
|
import { useRouter } from 'next/router';
|
|
6
6
|
import Head from 'next/head';
|
|
7
7
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-264bbd3c.js';
|
|
9
9
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
10
10
|
import './core.get-iterator-method-ea258bb1.js';
|
|
11
11
|
import './_object-pie-133f504a.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-264bbd3c.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -36,13 +36,13 @@ import './index.es-a6137319.js';
|
|
|
36
36
|
import './visibility-sensor-72fd8f8b.js';
|
|
37
37
|
import 'react-dom';
|
|
38
38
|
import './index-3f5c03b2.js';
|
|
39
|
-
import './ADlgInfeed-
|
|
39
|
+
import './ADlgInfeed-dc36c928.js';
|
|
40
40
|
import './AdSlot.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './stringify-2b084bee.js';
|
|
43
43
|
import './Segment.js';
|
|
44
44
|
import './main-1894c974.js';
|
|
45
|
-
import './ADInfeed-
|
|
45
|
+
import './ADInfeed-6d1fc6bf.js';
|
|
46
46
|
import './index-755f2cc2.js';
|
|
47
47
|
import './urlFor.js';
|
|
48
48
|
import './style-inject.es-1f59c1d0.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-264bbd3c.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-f771e20d.js';
|
|
21
21
|
import { a as getContentPlacementUrl, g as getTargeting } from './getTargeting-42f9b439.js';
|
|
@@ -30,7 +30,6 @@ import { DiscussionEmbed } from 'disqus-react';
|
|
|
30
30
|
import Schema from './Schema.js';
|
|
31
31
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
32
32
|
import { PixelTrackingArticle } from './PixelTracking.js';
|
|
33
|
-
import Segment from './Segment.js';
|
|
34
33
|
import { _ as _Object$keys } from './keys-31dcdb31.js';
|
|
35
34
|
import { I as InfiniteScroll } from './index.es-a6137319.js';
|
|
36
35
|
import { l as lib_3 } from './index-f0fc23eb.js';
|
|
@@ -50,6 +49,7 @@ import 'react-bootstrap';
|
|
|
50
49
|
import './index-c7e2ac95.js';
|
|
51
50
|
import './util-8ed16d48.js';
|
|
52
51
|
import './Beam.js';
|
|
52
|
+
import './Segment.js';
|
|
53
53
|
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
54
54
|
import 'react-bootstrap/Modal';
|
|
55
55
|
import 'react-ga';
|
|
@@ -491,6 +491,7 @@ var Recommended = function Recommended(props) {
|
|
|
491
491
|
articles: 'article',
|
|
492
492
|
podcasts: 'podcast'
|
|
493
493
|
};
|
|
494
|
+
|
|
494
495
|
var mainCategories = article.content_placement.filter(function (cp) {
|
|
495
496
|
return cp.usedForRecommendations === true;
|
|
496
497
|
}).map(function (cp) {
|
|
@@ -503,6 +504,7 @@ var Recommended = function Recommended(props) {
|
|
|
503
504
|
return;
|
|
504
505
|
}
|
|
505
506
|
if (mainCategories.length > 0) {
|
|
507
|
+
// console.log(mainCategories)
|
|
506
508
|
analytics.track('Article Category Viewed', {
|
|
507
509
|
categories: _JSON$stringify(mainCategories)
|
|
508
510
|
});
|
|
@@ -532,10 +534,7 @@ var Recommended = function Recommended(props) {
|
|
|
532
534
|
|
|
533
535
|
case 8:
|
|
534
536
|
externalIds = _context.sent;
|
|
535
|
-
|
|
536
|
-
// console.log('externalIds', externalIds)
|
|
537
537
|
slicedEmails = emails.emails;
|
|
538
|
-
// console.log('emailData', emailData)
|
|
539
538
|
|
|
540
539
|
if (externalIds && externalIds.data) {
|
|
541
540
|
slicedEmails.forEach(function (obj) {
|
|
@@ -557,92 +556,48 @@ var Recommended = function Recommended(props) {
|
|
|
557
556
|
return _ref.apply(this, arguments);
|
|
558
557
|
};
|
|
559
558
|
}();
|
|
560
|
-
var docGroupRecs = function () {
|
|
561
|
-
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2(docGroupRef) {
|
|
562
|
-
var articleRecs;
|
|
563
|
-
return regenerator.wrap(function _callee2$(_context2) {
|
|
564
|
-
while (1) {
|
|
565
|
-
switch (_context2.prev = _context2.next) {
|
|
566
|
-
case 0:
|
|
567
|
-
_context2.next = 2;
|
|
568
|
-
return client.fetch('*[_type == \'article\' && documentGroup._ref == \'' + docGroupRef + '\']');
|
|
569
|
-
|
|
570
|
-
case 2:
|
|
571
|
-
articleRecs = _context2.sent;
|
|
572
|
-
|
|
573
|
-
// console.log('articleRecs', articleRecs)
|
|
574
|
-
if (articleRecs) setArticles(articleRecs.slice(0, 5));
|
|
575
|
-
|
|
576
|
-
case 4:
|
|
577
|
-
case 'end':
|
|
578
|
-
return _context2.stop();
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
}, _callee2, _this$2);
|
|
582
|
-
}));
|
|
583
|
-
|
|
584
|
-
return function docGroupRecs(_x3) {
|
|
585
|
-
return _ref2.apply(this, arguments);
|
|
586
|
-
};
|
|
587
|
-
}();
|
|
588
559
|
// get users traits
|
|
589
560
|
var getSegmentProfile = function () {
|
|
590
|
-
var
|
|
591
|
-
var storedUsers, anonymousId, response, data, addTaxonomyName, favoriteCategories, articlesCategory, videosCategory, podcastCategory, taxonomyCategories, taxonomies, articlesQuery, videosQuery, podcastQuery, params,
|
|
561
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/regenerator.mark(function _callee2() {
|
|
562
|
+
var storedUsers, anonymousId, response, data, addTaxonomyName, favoriteCategories, articlesCategory, videosCategory, podcastCategory, taxonomyCategories, taxonomies, articlesQuery, videosQuery, podcastQuery, params, _ref3, _ref4, _articles, videos, podcasts;
|
|
592
563
|
|
|
593
|
-
return regenerator.wrap(function
|
|
564
|
+
return regenerator.wrap(function _callee2$(_context2) {
|
|
594
565
|
while (1) {
|
|
595
|
-
switch (
|
|
566
|
+
switch (_context2.prev = _context2.next) {
|
|
596
567
|
case 0:
|
|
597
568
|
storedUsers = false;
|
|
569
|
+
// const emailData = await import('../../../emails')
|
|
598
570
|
|
|
599
|
-
Segment.identifyWithEmail('arthur@sato.org');
|
|
600
571
|
anonymousId = analytics.user().anonymousId();
|
|
601
572
|
|
|
602
573
|
console.log('anonymousId', anonymousId);
|
|
603
574
|
|
|
604
|
-
|
|
605
|
-
// Segment.identifyWithGroup('9e4fb278-daa9-448a-bf46-d168085d9126', anonId)
|
|
606
|
-
// const traits = await fetch('/api/getTraits', {
|
|
607
|
-
// method: 'POST',
|
|
608
|
-
// body: JSON.stringify({ anonymousId: anonymousId })
|
|
609
|
-
// })
|
|
610
|
-
// const traitData = await traits.json()
|
|
611
|
-
// console.log('persona result:', traitData)
|
|
612
|
-
// if (traitData.traits && traitData.traits.groupId) {
|
|
613
|
-
// try {
|
|
614
|
-
// docGroupRecs(traitData.traits.groupId)
|
|
615
|
-
// // trackedEmailRecs(anonymousId, '')
|
|
616
|
-
// } catch (e) {
|
|
617
|
-
// if (e) console.log(`Error: ${e}`)
|
|
618
|
-
// }
|
|
619
|
-
// }
|
|
620
|
-
try {
|
|
621
|
-
trackedEmailRecs(anonymousId, '9e4fb278-daa9-448a-bf46-d168085d9126');
|
|
622
|
-
} catch (e) {
|
|
623
|
-
if (e) console.log('Error: ' + e);
|
|
624
|
-
}
|
|
625
|
-
// else {
|
|
626
|
-
_context3.next = 7;
|
|
575
|
+
_context2.next = 5;
|
|
627
576
|
return fetch('/api/getSegmentProfile', {
|
|
628
577
|
method: 'POST',
|
|
629
578
|
body: _JSON$stringify({ anonymousId: anonymousId })
|
|
630
579
|
});
|
|
631
580
|
|
|
632
|
-
case
|
|
633
|
-
response =
|
|
634
|
-
|
|
581
|
+
case 5:
|
|
582
|
+
response = _context2.sent;
|
|
583
|
+
_context2.next = 8;
|
|
635
584
|
return response.json();
|
|
636
585
|
|
|
637
|
-
case
|
|
638
|
-
data =
|
|
586
|
+
case 8:
|
|
587
|
+
data = _context2.sent;
|
|
639
588
|
|
|
640
|
-
|
|
641
|
-
|
|
589
|
+
// console.log('persona result:', data)
|
|
590
|
+
try {
|
|
591
|
+
trackedEmailRecs(anonymousId, '9e4fb278-daa9-448a-bf46-d168085d9126');
|
|
592
|
+
} catch (e) {
|
|
593
|
+
if (e) console.log('Error: ' + e);
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
if (!(data && data.traits && data.traits.favorite_article_category)) {
|
|
597
|
+
_context2.next = 44;
|
|
642
598
|
break;
|
|
643
599
|
}
|
|
644
600
|
|
|
645
|
-
// console.log('%csegment user profile', 'font-size:1.5rem;color:#000000;padding:1rem;background-color:yellow;', data.traits)
|
|
646
601
|
addTaxonomyName = function addTaxonomyName(taxArr) {
|
|
647
602
|
if (!taxArr) return '';
|
|
648
603
|
var query = ' && ( ';
|
|
@@ -659,30 +614,32 @@ var Recommended = function Recommended(props) {
|
|
|
659
614
|
return query;
|
|
660
615
|
};
|
|
661
616
|
|
|
662
|
-
|
|
617
|
+
// console.log('%csegment user profile', 'font-size:1.5rem;color:#000000;padding:1rem;background-color:yellow;', data.traits)
|
|
618
|
+
console.log('in data conditional');
|
|
619
|
+
favoriteCategories = JSON.parse(data.traits.favorite_article_category);
|
|
663
620
|
|
|
664
621
|
// grab contentCategory ID
|
|
665
622
|
|
|
666
|
-
|
|
623
|
+
_context2.next = 16;
|
|
667
624
|
return client.fetch("*[_type == 'contentCategory' && name == 'Articles'][0]{_id}");
|
|
668
625
|
|
|
669
626
|
case 16:
|
|
670
|
-
articlesCategory =
|
|
671
|
-
|
|
627
|
+
articlesCategory = _context2.sent;
|
|
628
|
+
_context2.next = 19;
|
|
672
629
|
return client.fetch("*[_type == 'contentCategory' && name == 'Videos'][0]{_id}");
|
|
673
630
|
|
|
674
631
|
case 19:
|
|
675
|
-
videosCategory =
|
|
676
|
-
|
|
632
|
+
videosCategory = _context2.sent;
|
|
633
|
+
_context2.next = 22;
|
|
677
634
|
return client.fetch("*[_type == 'contentCategory' && name == 'Podcasts'][0]{_id}");
|
|
678
635
|
|
|
679
636
|
case 22:
|
|
680
|
-
podcastCategory =
|
|
681
|
-
|
|
637
|
+
podcastCategory = _context2.sent;
|
|
638
|
+
_context2.next = 25;
|
|
682
639
|
return client.fetch('*[_type == \'taxonomy\' ' + addTaxonomyName(favoriteCategories) + ']');
|
|
683
640
|
|
|
684
641
|
case 25:
|
|
685
|
-
taxonomyCategories =
|
|
642
|
+
taxonomyCategories = _context2.sent;
|
|
686
643
|
taxonomies = '';
|
|
687
644
|
|
|
688
645
|
taxonomyCategories.forEach(function (taxonomy, index) {
|
|
@@ -695,21 +652,21 @@ var Recommended = function Recommended(props) {
|
|
|
695
652
|
taxonomies = taxonomies + ' )';
|
|
696
653
|
|
|
697
654
|
// grab 3 articles from sanity different from the one currently being read
|
|
698
|
-
articlesQuery = '*[_type == \'article\'\n
|
|
699
|
-
videosQuery = '*[_type == \'article\'\n
|
|
700
|
-
podcastQuery = '*[_type == \'article\'\n
|
|
655
|
+
articlesQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + articlesCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 5) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
656
|
+
videosQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + videosCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 1) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
657
|
+
podcastQuery = '*[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible == true \n && passwordLock != true\n && references(\'' + podcastCategory._id + '\')\n ' + taxonomies + '\n && defined(published)\n && _id != $id\n && dateTime(published) <= dateTime(now())] | order(published desc) [' + starting + '...' + (starting + 2) + '] {\n ...,\n title,\n thumbnail,\n url,\n contentCategory->,\n published,\n }';
|
|
701
658
|
params = {
|
|
702
659
|
id: article._id
|
|
703
660
|
};
|
|
704
|
-
|
|
661
|
+
_context2.next = 35;
|
|
705
662
|
return _Promise.all([client.fetch(articlesQuery, params), client.fetch(videosQuery, params), client.fetch(podcastQuery, params)]);
|
|
706
663
|
|
|
707
664
|
case 35:
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
_articles =
|
|
711
|
-
videos =
|
|
712
|
-
podcasts =
|
|
665
|
+
_ref3 = _context2.sent;
|
|
666
|
+
_ref4 = _slicedToArray(_ref3, 3);
|
|
667
|
+
_articles = _ref4[0];
|
|
668
|
+
videos = _ref4[1];
|
|
669
|
+
podcasts = _ref4[2];
|
|
713
670
|
|
|
714
671
|
if (_articles.length === 0) {
|
|
715
672
|
setLoaded('failed');
|
|
@@ -726,7 +683,7 @@ var Recommended = function Recommended(props) {
|
|
|
726
683
|
}
|
|
727
684
|
setArticles(_articles);
|
|
728
685
|
}
|
|
729
|
-
|
|
686
|
+
_context2.next = 45;
|
|
730
687
|
break;
|
|
731
688
|
|
|
732
689
|
case 44:
|
|
@@ -734,17 +691,16 @@ var Recommended = function Recommended(props) {
|
|
|
734
691
|
|
|
735
692
|
case 45:
|
|
736
693
|
case 'end':
|
|
737
|
-
return
|
|
694
|
+
return _context2.stop();
|
|
738
695
|
}
|
|
739
696
|
}
|
|
740
|
-
},
|
|
697
|
+
}, _callee2, _this$2);
|
|
741
698
|
}));
|
|
742
699
|
|
|
743
700
|
return function getSegmentProfile() {
|
|
744
|
-
return
|
|
701
|
+
return _ref2.apply(this, arguments);
|
|
745
702
|
};
|
|
746
703
|
}();
|
|
747
|
-
|
|
748
704
|
getSegmentProfile();
|
|
749
705
|
} catch (err) {
|
|
750
706
|
console.log(err);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './extends-6d8e3924.js';
|
|
2
2
|
import 'react';
|
|
3
|
-
export { g as default } from './index-
|
|
3
|
+
export { g as default } from './index-264bbd3c.js';
|
|
4
4
|
import './BlockContent-1e73bd2c.js';
|
|
5
5
|
import './entities-6d9154b4.js';
|
|
6
6
|
import './_commonjsHelpers-0c4b6f40.js';
|
package/dist/esm/index.js
CHANGED
|
@@ -87,7 +87,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
87
87
|
export { default as YahooHero } from './YahooHero.js';
|
|
88
88
|
export { default as GridHero } from './GridHero.js';
|
|
89
89
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
90
|
-
export { g as getSerializers } from './index-
|
|
90
|
+
export { g as getSerializers } from './index-264bbd3c.js';
|
|
91
91
|
export { default as Beam } from './Beam.js';
|
|
92
92
|
export { default as Segment } from './Segment.js';
|
|
93
93
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -131,9 +131,9 @@ import './visibility-sensor-72fd8f8b.js';
|
|
|
131
131
|
import 'react-dom';
|
|
132
132
|
import './main-1894c974.js';
|
|
133
133
|
import './entities-6d9154b4.js';
|
|
134
|
-
import './ADInfeed-
|
|
134
|
+
import './ADInfeed-6d1fc6bf.js';
|
|
135
135
|
import './lodash-f97fd99a.js';
|
|
136
|
-
import './ADlgInfeed-
|
|
136
|
+
import './ADlgInfeed-dc36c928.js';
|
|
137
137
|
import './getContentCategory-15dcc413.js';
|
|
138
138
|
import './get-3c308da4.js';
|
|
139
139
|
import './eq-bdcbf886.js';
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|