@mjhls/mjh-framework 1.0.986-article-rec → 1.0.986-article-rec-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.
- package/README.md +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/{MediaSeriesCard-1b1bd850.js → MediaSeriesCard-a9755b4a.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +2 -2
- package/dist/cjs/MediaSeriesLandingPaginated.js +2 -2
- package/dist/cjs/PartnerDetailListing.js +4 -4
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +118 -150
- package/dist/cjs/getPtceActivities.js +23 -10
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{getTargeting-3c5754ac.js → getTargeting-ba942d9a.js} +4 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-c5778fcd.js → index-5e63adb9.js} +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/{MediaSeriesCard-029542ab.js → MediaSeriesCard-f68f8e63.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +2 -2
- package/dist/esm/MediaSeriesLandingPaginated.js +2 -2
- package/dist/esm/PartnerDetailListing.js +4 -4
- package/dist/esm/PartnerDetailListingPaginated.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +118 -150
- package/dist/esm/getPtceActivities.js +23 -10
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{getTargeting-42f9b439.js → getTargeting-9bd28724.js} +4 -2
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-98646d5c.js → index-e0aeabc5.js} +1 -1
- package/dist/esm/index.js +2 -2
- package/package.json +1 -1
|
@@ -9,7 +9,9 @@ require('./_iter-detect-b1df62f0.js');
|
|
|
9
9
|
|
|
10
10
|
var getPtceActivities = function () {
|
|
11
11
|
var _ref = asyncToGenerator._asyncToGenerator( /*#__PURE__*/asyncToGenerator.regenerator.mark(function _callee(params) {
|
|
12
|
-
var
|
|
12
|
+
var filterByProfession = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
13
|
+
var filterQuery = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
14
|
+
var hasMore, filter, response, data;
|
|
13
15
|
return asyncToGenerator.regenerator.wrap(function _callee$(_context) {
|
|
14
16
|
while (1) {
|
|
15
17
|
switch (_context.prev = _context.next) {
|
|
@@ -21,19 +23,26 @@ var getPtceActivities = function () {
|
|
|
21
23
|
if (params.paginatedPoint && params.paginatedPoint !== '') {
|
|
22
24
|
hasMore = '&cursor=' + params.paginatedPoint;
|
|
23
25
|
}
|
|
26
|
+
filter = '';
|
|
24
27
|
|
|
25
|
-
|
|
26
|
-
|
|
28
|
+
if (filterByProfession && filterQuery.length) {
|
|
29
|
+
filter = '&query=status:published%20AND%20customFields.profession:"' + filterQuery + '"';
|
|
30
|
+
} else {
|
|
31
|
+
filter = '&query=status:published';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
_context.next = 7;
|
|
35
|
+
return fetch('https://www.pharmacytimes.org/incoming/v2/content?types[]=courses&sort=publishDate:desc' + filter + '&limit=25' + hasMore, {
|
|
27
36
|
method: 'GET',
|
|
28
37
|
headers: { Authorization: 'Bearer drnc4y57arj3f190cpvqiwxt3cxpbken' }
|
|
29
38
|
});
|
|
30
39
|
|
|
31
|
-
case
|
|
40
|
+
case 7:
|
|
32
41
|
response = _context.sent;
|
|
33
|
-
_context.next =
|
|
42
|
+
_context.next = 10;
|
|
34
43
|
return response.json();
|
|
35
44
|
|
|
36
|
-
case
|
|
45
|
+
case 10:
|
|
37
46
|
data = _context.sent;
|
|
38
47
|
|
|
39
48
|
|
|
@@ -41,6 +50,10 @@ var getPtceActivities = function () {
|
|
|
41
50
|
if (course.tags && course.tags[0] && course.tags[0].label == 'Hidden') {
|
|
42
51
|
return false;
|
|
43
52
|
}
|
|
53
|
+
var customField = data.contentItems.map(function (each) {
|
|
54
|
+
return each.customFields;
|
|
55
|
+
});
|
|
56
|
+
console.log(customField);
|
|
44
57
|
|
|
45
58
|
var current_date = new Date();
|
|
46
59
|
var courseEndDate = new Date(course.courseEndDate);
|
|
@@ -50,19 +63,19 @@ var getPtceActivities = function () {
|
|
|
50
63
|
|
|
51
64
|
return _context.abrupt('return', data);
|
|
52
65
|
|
|
53
|
-
case
|
|
54
|
-
_context.prev =
|
|
66
|
+
case 15:
|
|
67
|
+
_context.prev = 15;
|
|
55
68
|
_context.t0 = _context['catch'](0);
|
|
56
69
|
|
|
57
70
|
console.log(_context.t0);
|
|
58
71
|
return _context.abrupt('return', []);
|
|
59
72
|
|
|
60
|
-
case
|
|
73
|
+
case 19:
|
|
61
74
|
case 'end':
|
|
62
75
|
return _context.stop();
|
|
63
76
|
}
|
|
64
77
|
}
|
|
65
|
-
}, _callee, this, [[0,
|
|
78
|
+
}, _callee, this, [[0, 15]]);
|
|
66
79
|
}));
|
|
67
80
|
|
|
68
81
|
return function getPtceActivities(_x) {
|
|
@@ -24,7 +24,9 @@ var getTargeting = function getTargeting(props) {
|
|
|
24
24
|
position = props.position,
|
|
25
25
|
prevUrl = props.prevUrl,
|
|
26
26
|
_props$cpModification = props.cpModificationRequired,
|
|
27
|
-
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification
|
|
27
|
+
cpModificationRequired = _props$cpModification === undefined ? true : _props$cpModification,
|
|
28
|
+
_props$disablePrevUrl = props.disablePrevUrlCheckContentPlacement,
|
|
29
|
+
disablePrevUrlCheckContentPlacement = _props$disablePrevUrl === undefined ? false : _props$disablePrevUrl;
|
|
28
30
|
|
|
29
31
|
|
|
30
32
|
if (positionOverride) {
|
|
@@ -60,7 +62,7 @@ var getTargeting = function getTargeting(props) {
|
|
|
60
62
|
context = context && context.split('?')[0];
|
|
61
63
|
context = context && context.split('&')[0];
|
|
62
64
|
var content_placement_urls = [];
|
|
63
|
-
if (content_placement && prevUrl && prevUrl.length) {
|
|
65
|
+
if (content_placement && prevUrl && prevUrl.length && !disablePrevUrlCheckContentPlacement) {
|
|
64
66
|
content_placement.forEach(function (item) {
|
|
65
67
|
var path = item.path;
|
|
66
68
|
if (cpModificationRequired) {
|
package/dist/cjs/getTargeting.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./extends-7c86182f.js');
|
|
4
4
|
require('./toConsumableArray-d7797c2b.js');
|
|
5
|
-
var getTargeting = require('./getTargeting-
|
|
5
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
6
6
|
require('./_commonjsHelpers-06173234.js');
|
|
7
7
|
require('./core.get-iterator-method-5643aa10.js');
|
|
8
8
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/index.js
CHANGED
|
@@ -90,7 +90,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
90
90
|
var YahooHero = require('./YahooHero.js');
|
|
91
91
|
var GridHero = require('./GridHero.js');
|
|
92
92
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
93
|
-
var getSerializers = require('./index-
|
|
93
|
+
var getSerializers = require('./index-5e63adb9.js');
|
|
94
94
|
var Beam = require('./Beam.js');
|
|
95
95
|
var Segment = require('./Segment.js');
|
|
96
96
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -105,7 +105,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
|
105
105
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
106
106
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
107
107
|
var Schema = require('./Schema.js');
|
|
108
|
-
var getTargeting = require('./getTargeting-
|
|
108
|
+
var getTargeting = require('./getTargeting-ba942d9a.js');
|
|
109
109
|
var getKeywords = require('./getKeywords.js');
|
|
110
110
|
var getQuery = require('./getQuery.js');
|
|
111
111
|
require('./toConsumableArray-d7797c2b.js');
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import React__default from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-6d8e3924.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
3
|
import React__default, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-eb1e8e80.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React__default from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './core.get-iterator-method-ea258bb1.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -9,7 +9,7 @@ import urlFor from './urlFor.js';
|
|
|
9
9
|
import { m as moment } from './moment-bc12cb97.js';
|
|
10
10
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-f68f8e63.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import MasterDeck from './MasterDeck.js';
|
|
11
11
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -3,13 +3,13 @@ import { _ as _typeof } from './typeof-e9fc0c5d.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-6d8e3924.js';
|
|
4
4
|
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
5
5
|
import React__default, { useState, useEffect } from 'react';
|
|
6
|
-
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-
|
|
6
|
+
import { M as MediaSeriesCard, D as DropdownButton, a as Dropdown } from './MediaSeriesCard-f68f8e63.js';
|
|
7
7
|
import './index-98ca9cec.js';
|
|
8
8
|
import 'react-dom';
|
|
9
9
|
import Link from 'next/link';
|
|
10
10
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
11
11
|
import MasterDeck from './MasterDeckPaginated.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
13
13
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
14
14
|
import './core.get-iterator-method-ea258bb1.js';
|
|
15
15
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -109,13 +109,13 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
109
109
|
{ className: 'partners-page' },
|
|
110
110
|
React__default.createElement(
|
|
111
111
|
'div',
|
|
112
|
-
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between'
|
|
112
|
+
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between' } },
|
|
113
113
|
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
114
114
|
'a',
|
|
115
115
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
116
116
|
React__default.createElement(
|
|
117
117
|
'figure',
|
|
118
|
-
{ style: { width: '100%', textAlign: 'center' } },
|
|
118
|
+
{ style: { width: '100%', textAlign: 'center', marginTop: '2rem' } },
|
|
119
119
|
React__default.createElement('img', {
|
|
120
120
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
121
121
|
style: { maxWidth: '100%' },
|
|
@@ -169,7 +169,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
169
169
|
url: '' + partnerDetails.instagram + (partnerDetails.instagram.slice(-1) === '/' ? '' : '/'),
|
|
170
170
|
target: '_blank',
|
|
171
171
|
rel: 'noopener noreferrer',
|
|
172
|
-
style: { height: 30, width: 30 }
|
|
172
|
+
style: { height: 30, width: 30, marginLeft: '0.25rem' }
|
|
173
173
|
}),
|
|
174
174
|
partnerDetails.youtube && partnerDetails.youtubeIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.youtube, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
|
|
175
175
|
partnerDetails.twitter && partnerDetails.twitterIcon && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.twitter, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } }),
|
|
@@ -11,7 +11,7 @@ import QueueDeckExpanded from './QueueDeckExpandedPaginated.js';
|
|
|
11
11
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
12
12
|
import Feature from './Feature.js';
|
|
13
13
|
import urlFor from './urlFor.js';
|
|
14
|
-
import { g as getSerializers } from './index-
|
|
14
|
+
import { g as getSerializers } from './index-e0aeabc5.js';
|
|
15
15
|
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
16
16
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
17
17
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -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-e0aeabc5.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-e0aeabc5.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './core.get-iterator-method-ea258bb1.js';
|