@mjhls/mjh-framework 1.0.888 → 1.0.889-publication-filename-v1
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 +168 -168
- package/dist/cjs/AlgoliaSearch.js +16 -3
- package/dist/cjs/AuthWrapper.js +1 -1
- package/dist/cjs/ConferenceArticleCard.js +15 -15
- package/dist/cjs/ContentCardPaginated.js +1 -2
- package/dist/cjs/DeckContent.js +8 -8
- package/dist/cjs/DeckQueuePaginated.js +1 -2
- package/dist/cjs/EventsDeck.js +17 -17
- package/dist/cjs/GridContentPaginated.js +1 -2
- package/dist/cjs/HamMagazine.js +14 -12
- package/dist/cjs/IssueLanding.js +29 -29
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/MasterDeck.js +8 -8
- package/dist/cjs/MasterDeckPaginated.js +9 -10
- package/dist/cjs/{MediaSeriesCard-8b4efd28.js → MediaSeriesCard-3d5c69ba.js} +1 -1
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +7 -8
- package/dist/cjs/NavMagazine.js +11 -11
- package/dist/cjs/NavNative.js +9 -9
- package/dist/cjs/Pagination-3effd8c6.js +60 -0
- package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -2
- package/dist/cjs/RelatedContent.js +28 -28
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-de93a303.js} +4 -4
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-b7faaedc.js} +15 -3
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/View.js +3 -3
- package/dist/cjs/YoutubeGroup.js +4 -4
- package/dist/cjs/getQuery.js +2 -2
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/AlgoliaSearch.js +16 -3
- package/dist/esm/AuthWrapper.js +1 -1
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/ContentCardPaginated.js +1 -2
- package/dist/esm/DeckContent.js +8 -8
- package/dist/esm/DeckQueuePaginated.js +1 -2
- package/dist/esm/EventsDeck.js +17 -17
- package/dist/esm/GridContentPaginated.js +1 -2
- package/dist/esm/HamMagazine.js +14 -12
- package/dist/esm/IssueLanding.js +29 -29
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/MasterDeck.js +8 -8
- package/dist/esm/MasterDeckPaginated.js +9 -10
- package/dist/esm/{MediaSeriesCard-51ebf1c0.js → MediaSeriesCard-5b1d13dd.js} +1 -1
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +7 -8
- package/dist/esm/NavMagazine.js +11 -11
- package/dist/esm/NavNative.js +9 -9
- package/dist/esm/Pagination-0173504c.js +54 -0
- package/dist/esm/PartnerDetailListingPaginated.js +1 -2
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -2
- package/dist/esm/RelatedContent.js +28 -28
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-98ad6d97.js} +4 -4
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-4b56cd8c.js} +15 -3
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/View.js +3 -3
- package/dist/esm/YoutubeGroup.js +4 -4
- package/dist/esm/getQuery.js +2 -2
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-36031a00.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/index.js +3 -3
- package/package.json +112 -112
- package/dist/cjs/Pagination-be11c32e.js +0 -53
- package/dist/esm/Pagination-4ece8cb4.js +0 -46
|
@@ -21,7 +21,9 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
21
21
|
var type = _ref.type,
|
|
22
22
|
socialIconVariant = _ref.socialIconVariant,
|
|
23
23
|
website = _ref.website,
|
|
24
|
-
navID = _ref.navID
|
|
24
|
+
navID = _ref.navID,
|
|
25
|
+
_ref$searchIconUrl = _ref.searchIconUrl,
|
|
26
|
+
searchIconUrl = _ref$searchIconUrl === undefined ? null : _ref$searchIconUrl;
|
|
25
27
|
|
|
26
28
|
// Search Term
|
|
27
29
|
var _useState = React.useState(''),
|
|
@@ -105,7 +107,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
105
107
|
{ style: { padding: '6px' }, inline: true, onSubmit: function onSubmit(e) {
|
|
106
108
|
return submitSearch(e);
|
|
107
109
|
} },
|
|
108
|
-
React__default['default'].createElement(
|
|
110
|
+
searchIconUrl && React__default['default'].createElement(
|
|
111
|
+
'div',
|
|
112
|
+
{ style: { maxWidth: '90px', marginRight: '.5rem' } },
|
|
113
|
+
React__default['default'].createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
|
|
114
|
+
),
|
|
115
|
+
React__default['default'].createElement(FormControl__default['default'], { style: { width: '50%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
|
|
109
116
|
return setSearchKey(e.target.value);
|
|
110
117
|
} }),
|
|
111
118
|
React__default['default'].createElement(
|
|
@@ -152,7 +159,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
|
|
|
152
159
|
{ inline: true, style: { padding: '6px', width: '100%' }, onSubmit: function onSubmit(e) {
|
|
153
160
|
return submitSearch(e);
|
|
154
161
|
} },
|
|
155
|
-
React__default['default'].createElement(
|
|
162
|
+
searchIconUrl && React__default['default'].createElement(
|
|
163
|
+
'div',
|
|
164
|
+
{ style: { maxWidth: '90px', marginRight: '.5rem' } },
|
|
165
|
+
React__default['default'].createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
|
|
166
|
+
),
|
|
167
|
+
React__default['default'].createElement(FormControl__default['default'], { style: { width: '20%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
|
|
156
168
|
return setSearchKey(e.target.value);
|
|
157
169
|
} }),
|
|
158
170
|
React__default['default'].createElement(
|
|
@@ -57,7 +57,7 @@ require('./iconBase-be4097c0.js');
|
|
|
57
57
|
require('./index.esm-00a6aade.js');
|
|
58
58
|
require('./NavFooter-3dcd99a8.js');
|
|
59
59
|
require('./index.esm-2bb721c8.js');
|
|
60
|
-
require('./SocialSearchComponent-
|
|
60
|
+
require('./SocialSearchComponent-b7faaedc.js');
|
|
61
61
|
require('./SocialIcons.js');
|
|
62
62
|
require('react-bootstrap/Form');
|
|
63
63
|
require('react-bootstrap/FormControl');
|
|
@@ -21,7 +21,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
21
21
|
|
|
22
22
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
23
|
|
|
24
|
-
var css = ".VideoSeriesCard-module_article__Hlc3e {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.VideoSeriesCard-module_article__Hlc3e a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.VideoSeriesCard-module_thumb__3hGyJ {\n width: 25%;\n}\n.VideoSeriesCard-module_thumb__3hGyJ img {\n width: 100%;\n height: auto;\n}\n.VideoSeriesCard-module_info__2_i1N {\n width: 75%;\n font-size: 1rem;\n}\n.VideoSeriesCard-module_info__2_i1N h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.VideoSeriesCard-module_published__1fI0q {\n color: #6d6d6d;\n margin: 0;\n}\n.VideoSeriesCard-module_summary__3hWJT {\n margin: 0.5rem 0 0 0;\n}\n.VideoSeriesCard-module_author__aU35o {\n margin: 0;\n}\n.VideoSeriesCard-module_author__aU35o span {\n color: #6d6d6d;\n}\n@media only screen and (max-width: 568px) {\n .VideoSeriesCard-module_article__Hlc3e {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .VideoSeriesCard-module_article__Hlc3e a {\n flex-direction: column;\n align-items: center;\n }\n .VideoSeriesCard-module_thumb__3hGyJ {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .VideoSeriesCard-module_thumb__3hGyJ img{\n border-radius: 10px 10px 0 0; \n }\n .VideoSeriesCard-module_thumb__3hGyJ figure {\n margin: 0;\n }\n .VideoSeriesCard-module_info__2_i1N {\n width: 90%;\n padding: 1rem !important;\n }\n .VideoSeriesCard-module_info__2_i1N h2 {\n font-size: 1rem;\n }\n}\n";
|
|
24
|
+
var css = ".VideoSeriesCard-module_article__Hlc3e {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.VideoSeriesCard-module_article__Hlc3e a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ {\r\n width: 25%;\r\n}\r\n.VideoSeriesCard-module_thumb__3hGyJ img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.VideoSeriesCard-module_info__2_i1N h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_published__1fI0q {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_summary__3hWJT {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o {\r\n margin: 0;\r\n}\r\n.VideoSeriesCard-module_author__aU35o span {\r\n color: #6d6d6d;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .VideoSeriesCard-module_article__Hlc3e {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .VideoSeriesCard-module_article__Hlc3e a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .VideoSeriesCard-module_thumb__3hGyJ figure {\r\n margin: 0;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N {\r\n width: 90%;\r\n padding: 1rem !important;\r\n }\r\n .VideoSeriesCard-module_info__2_i1N h2 {\r\n font-size: 1rem;\r\n }\r\n}\r\n";
|
|
25
25
|
var styles = { "article": "VideoSeriesCard-module_article__Hlc3e", "thumb": "VideoSeriesCard-module_thumb__3hGyJ", "info": "VideoSeriesCard-module_info__2_i1N", "published": "VideoSeriesCard-module_published__1fI0q", "summary": "VideoSeriesCard-module_summary__3hWJT", "author": "VideoSeriesCard-module_author__aU35o" };
|
|
26
26
|
styleInject_es.styleInject(css);
|
|
27
27
|
|
package/dist/cjs/View.js
CHANGED
|
@@ -19,8 +19,8 @@ var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
20
|
var getSerializers = require('./index-6f89aea7.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
|
-
var SeriesSlider = require('./SeriesSlider-
|
|
23
|
-
var getTargeting = require('./getTargeting-
|
|
22
|
+
var SeriesSlider = require('./SeriesSlider-de93a303.js');
|
|
23
|
+
var getTargeting = require('./getTargeting-6d59cc5b.js');
|
|
24
24
|
var getKeywords = require('./getKeywords.js');
|
|
25
25
|
var urlFor = require('./urlFor.js');
|
|
26
26
|
var _typeof = require('./typeof-567e31ff.js');
|
|
@@ -347,7 +347,7 @@ var ISI = function ISI(props) {
|
|
|
347
347
|
);
|
|
348
348
|
};
|
|
349
349
|
|
|
350
|
-
var css = ".RelatedArticles-module_mediaContainer__10h9k {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n margin: 0 -1rem;\n}\n.RelatedArticles-module_mediaCard__3wQbn {\n margin: 0 1rem 1rem;\n width: calc(33% - 1rem);\n display: column;\n flex-direction: row;\n margin-bottom: 0.75rem;\n padding-bottom: 0.75rem;\n border-bottom: none;\n}\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\n border-bottom: none;\n}\n.RelatedArticles-module_cardTitle__3P-Ib {\n font-weight: bold;\n color: #252525;\n margin-bottom: 0.25rem;\n font-size: 15px;\n}\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\n color: #000;\n font-weight: bold;\n}\n.RelatedArticles-module_cardDate__1wOR5 {\n color: var(--dark);\n display: block;\n background: #fff !important;\n margin-bottom: 0;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 {\n display: block;\n text-align: center;\n margin-bottom: 0.5rem;\n}\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\n height: 135px;\n width: 100%;\n object-fit: cover;\n object-position: center;\n}\n@media screen and (max-width: 1064px) {\n}\n@media screen and (max-width: 968px) {\n .RelatedArticles-module_mediaContainer__10h9k {\n flex-wrap: wrap;\n }\n .RelatedArticles-module_imgWrapper__5Jx_4 {\n display: none;\n }\n .RelatedArticles-module_mediaCard__3wQbn {\n width: 100%;\n margin-bottom: 0.5rem;\n padding: 0;\n }\n .RelatedArticles-module_cardTitle__3P-Ib {\n font-size: 0.75rem;\n margin-bottom: 0;\n }\n}\n";
|
|
350
|
+
var css = ".RelatedArticles-module_mediaContainer__10h9k {\r\n display: flex;\r\n flex-direction: row;\r\n flex-wrap: nowrap;\r\n margin: 0 -1rem;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn {\r\n margin: 0 1rem 1rem;\r\n width: calc(33% - 1rem);\r\n display: column;\r\n flex-direction: row;\r\n margin-bottom: 0.75rem;\r\n padding-bottom: 0.75rem;\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_mediaCard__3wQbn:last-child {\r\n border-bottom: none;\r\n}\r\n.RelatedArticles-module_cardTitle__3P-Ib {\r\n font-weight: bold;\r\n color: #252525;\r\n margin-bottom: 0.25rem;\r\n font-size: 15px;\r\n}\r\n.RelatedArticles-module_authorListing__1EFg4 span.RelatedArticles-module_text-muted__3b0zX {\r\n color: #000;\r\n font-weight: bold;\r\n}\r\n.RelatedArticles-module_cardDate__1wOR5 {\r\n color: var(--dark);\r\n display: block;\r\n background: #fff !important;\r\n margin-bottom: 0;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: block;\r\n text-align: center;\r\n margin-bottom: 0.5rem;\r\n}\r\n.RelatedArticles-module_imgWrapper__5Jx_4 img {\r\n height: 135px;\r\n width: 100%;\r\n object-fit: cover;\r\n object-position: center;\r\n}\r\n@media screen and (max-width: 1064px) {\r\n}\r\n@media screen and (max-width: 968px) {\r\n .RelatedArticles-module_mediaContainer__10h9k {\r\n flex-wrap: wrap;\r\n }\r\n .RelatedArticles-module_imgWrapper__5Jx_4 {\r\n display: none;\r\n }\r\n .RelatedArticles-module_mediaCard__3wQbn {\r\n width: 100%;\r\n margin-bottom: 0.5rem;\r\n padding: 0;\r\n }\r\n .RelatedArticles-module_cardTitle__3P-Ib {\r\n font-size: 0.75rem;\r\n margin-bottom: 0;\r\n }\r\n}\r\n";
|
|
351
351
|
var styles = { "mediaContainer": "RelatedArticles-module_mediaContainer__10h9k", "mediaCard": "RelatedArticles-module_mediaCard__3wQbn", "cardTitle": "RelatedArticles-module_cardTitle__3P-Ib", "authorListing": "RelatedArticles-module_authorListing__1EFg4", "text-muted": "RelatedArticles-module_text-muted__3b0zX", "cardDate": "RelatedArticles-module_cardDate__1wOR5", "imgWrapper": "RelatedArticles-module_imgWrapper__5Jx_4" };
|
|
352
352
|
styleInject_es.styleInject(css);
|
|
353
353
|
|
package/dist/cjs/YoutubeGroup.js
CHANGED
|
@@ -18,10 +18,10 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
18
18
|
|
|
19
19
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
20
|
|
|
21
|
-
/*
|
|
22
|
-
GROQ query -
|
|
23
|
-
accepts an array of title, URL
|
|
24
|
-
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
21
|
+
/*
|
|
22
|
+
GROQ query -
|
|
23
|
+
accepts an array of title, URL
|
|
24
|
+
`https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var YoutubeGroup = function YoutubeGroup(props) {
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -14,9 +14,9 @@ var getQuery = function getQuery(type) {
|
|
|
14
14
|
case 'article':
|
|
15
15
|
return '*[\n _type == "article"\n && !(_id in path("drafts.**"))\n && defined(title)\n && defined(url)\n && is_visible != false\n && url.current == $url\n ' + conditions + '\n ][0]{\n ' + params + '\n title,\n published,\n summary,\n thumbnail,\n ...,\n passwordLock,\n password,\n issueGroup-> { _id, name, identifier, parent-> },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n body[] {\n ...,\n asset->,\n images[]{\n ...,\n asset->\n },\n content[]{\n ...,\n asset->\n },\n videos[]{\n ...,\n thumbnail{\n _type,\n asset->\n }\n },\n response[]{\n ...,\n asset->\n },\n quizzes[]{\n ...,\n answer[]{\n ...,\n asset->\n },\n question[]{\n ...,\n asset->\n }\n },\n poster {\n _type,\n asset->\n },\n slides[]{\n ...,\n slideshowImage{\n ...,\n asset->\n }\n },\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n medias[]{\n ...,\n upload_doc {\n _type,\n asset-> \n },\n poster {\n _type,\n asset-> \n }\n },\n articles[]{\n ...,\n thumbnail{\n ...,\n asset-> \n },\n "authorDetails": authorMapping[]->{ displayName, url, profileImage, biography, showSocialShare },\n text[]{\n ...,\n upload_doc {\n _type,\n asset->\n },\n uploadAudio {\n _type,\n asset->\n },\n }\n }\n },\n \'content_placement\': taxonomyMapping[]-> {\n ...,\n \'ancestor\': parent->parent->identifier,\n \'parent\': parent->identifier,\n \'name\': name,\n \'path\': identifier,\n showSocialShare\n },\n documentGroup-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n isSeries,\n showSocialShare,\n \'path\': identifier.current,\n adTargetingURL\n },\n documentGroupMapping[]-> {\n _id,\n name,\n thumbnail,\n parent->{...,parent->},\n isShow,\n showSocialShare,\n \'path\': identifier.current\n },\n \'category\':contentCategory->{\n name,\n disableAds\n },\n \'issue\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.issueGroup._ref][0] {\n name,\n volume,\n \'issueNumber\': number,\n \'articleSource\': source,\n \'path\': identifier.current,\n \'publication\' : *[_type == \'publication\' && !(_id in path("drafts.**")) && is_visible == true && _id == ^.parent._ref][0] {\n name,\n \'path\': identifier.current\n },\n \'url\' : pdf.asset-> url\n }\n\n }';
|
|
16
16
|
case 'publication':
|
|
17
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
17
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n thumbnail{\n ...,\n asset->\n },\n \'issues\': *[_type == \'publication\'\n && is_visible\n && references(^._id)\n && defined(identifier)] {\n ...,\n thumbnail{ ..., asset-> },\n taxonomyMapping[]->,\n pdf{asset->},\n } | order(year desc, month desc)\n }';
|
|
18
18
|
case 'issue':
|
|
19
|
-
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1\n }\n }\n }';
|
|
19
|
+
return '*[_type == \'publication\'\n && identifier.current == $publication\n ' + conditions + '][0] {\n ' + params + '\n ...,\n thumbnail{\n ...,\n asset->\n },\n \'issue\': *[_type == \'publication\'\n && references(^._id)\n && identifier.current == $issue][0] {\n ...,\n thumbnail{\n ...,\n asset->\n },\n \'articles\': *[_type == \'article\'\n && !(_id in path("drafts.**"))\n && defined(title)\n && is_visible\n && defined(url)\n && defined(published) \n && dateTime(published) <= dateTime(now())\n && passwordLock != true\n && references(^._id)] | order(published desc) {\n ...,\n authorMapping[0]->,\n contentCategory->,\n issueSection-> {\n name\n },\n \'pageNumber\': 1,\n thumbnail{\n ...,\n asset->\n }\n }\n }\n }';
|
|
20
20
|
case 'externalResources':
|
|
21
21
|
return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
|
|
22
22
|
case 'mediaseries':
|
|
@@ -4,18 +4,18 @@ var _extends = require('./extends-7c86182f.js');
|
|
|
4
4
|
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
5
5
|
|
|
6
6
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
var cp_url = '';
|
|
8
|
+
if (cp.ancestor && typeof cp.ancestor == 'string') {
|
|
9
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
|
|
10
|
+
}
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
|
|
13
|
+
cp_url += (cp_url === '' ? '' : '/') + cp.parent;
|
|
14
|
+
}
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
return cp_url;
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
var getTargeting = function getTargeting(props) {
|
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-6d59cc5b.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
|
@@ -97,7 +97,7 @@ var VideoSeriesLandingPage = require('./VideoSeriesLandingPage.js');
|
|
|
97
97
|
var ArticleProgramLandingPage = require('./ArticleProgramLandingPage.js');
|
|
98
98
|
var ArticleSeriesLandingPage = require('./ArticleSeriesLandingPage.js');
|
|
99
99
|
var Schema = require('./Schema.js');
|
|
100
|
-
var getTargeting = require('./getTargeting-
|
|
100
|
+
var getTargeting = require('./getTargeting-6d59cc5b.js');
|
|
101
101
|
var getKeywords = require('./getKeywords.js');
|
|
102
102
|
var getQuery = require('./getQuery.js');
|
|
103
103
|
require('./toConsumableArray-d7797c2b.js');
|
|
@@ -170,7 +170,7 @@ require('react-bootstrap/NavDropdown');
|
|
|
170
170
|
require('./index.esm-c1e16606.js');
|
|
171
171
|
require('./NavFooter-3dcd99a8.js');
|
|
172
172
|
require('./index.esm-2bb721c8.js');
|
|
173
|
-
require('./SocialSearchComponent-
|
|
173
|
+
require('./SocialSearchComponent-b7faaedc.js');
|
|
174
174
|
require('react-bootstrap/FormControl');
|
|
175
175
|
require('react-ga');
|
|
176
176
|
require('react-bootstrap/Carousel');
|
|
@@ -192,7 +192,7 @@ require('swr');
|
|
|
192
192
|
require('passport-local');
|
|
193
193
|
require('mysql');
|
|
194
194
|
require('./md5-e1ca5797.js');
|
|
195
|
-
require('./SeriesSlider-
|
|
195
|
+
require('./SeriesSlider-de93a303.js');
|
|
196
196
|
require('./style-inject.es-dcee06b6.js');
|
|
197
197
|
require('disqus-react');
|
|
198
198
|
require('react-twitter-embed');
|
|
@@ -822,7 +822,7 @@ function parseAlgoliaHit(_ref2) {
|
|
|
822
822
|
});
|
|
823
823
|
}
|
|
824
824
|
|
|
825
|
-
var version$1 = '6.11.
|
|
825
|
+
var version$1 = '6.11.1';
|
|
826
826
|
|
|
827
827
|
var withKeysPropType = function withKeysPropType(keys) {
|
|
828
828
|
return function (props, propName, componentName) {
|
|
@@ -14264,7 +14264,20 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14264
14264
|
onSearchParameters: this.props.onSearchParameters
|
|
14265
14265
|
}, this.props),
|
|
14266
14266
|
React__default.createElement(Configure, { hitsPerPage: this.props.hitsPerPage || 20 }),
|
|
14267
|
-
React__default.createElement(
|
|
14267
|
+
React__default.createElement(
|
|
14268
|
+
'div',
|
|
14269
|
+
{ className: 'd-flex align-items-center' },
|
|
14270
|
+
this.props.searchIconUrl && React__default.createElement(
|
|
14271
|
+
'div',
|
|
14272
|
+
{ className: 'custom-search-img mr-2' },
|
|
14273
|
+
React__default.createElement('img', { className: 'img-fluid', src: this.props.searchIconUrl, alt: 'search icon' })
|
|
14274
|
+
),
|
|
14275
|
+
React__default.createElement(
|
|
14276
|
+
'div',
|
|
14277
|
+
{ style: { flex: '1 1 auto' } },
|
|
14278
|
+
React__default.createElement(SearchBox, null)
|
|
14279
|
+
)
|
|
14280
|
+
),
|
|
14268
14281
|
this.props.refinementAttributes && React__default.createElement(
|
|
14269
14282
|
'div',
|
|
14270
14283
|
{ className: 'search_refinement' },
|
|
@@ -14288,7 +14301,7 @@ var AlgoliaSearch = function (_React$Component) {
|
|
|
14288
14301
|
React__default.createElement(
|
|
14289
14302
|
'style',
|
|
14290
14303
|
{ jsx: 'true' },
|
|
14291
|
-
'\n .hitResult {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 1rem;\n border-bottom: 1px solid #00000024;\n padding: 1rem 0;\n }\n .hitResult > a:first-child {\n width: 30%;\n }\n .hitResult > a:first-child > div{\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .hitResult > div:last-child > a {\n margin-bottom: .5rem;\n width: 100%;\n }\n @media only screen and (max-width: 568px) {\n .hitResult {\n flex-direction: column;\n align-items: center;\n border: none;\n padding: 0;\n }\n .hitResult > a:first-child {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n }\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - 150px);\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: 78px;\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
14304
|
+
'\n .hitResult {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-bottom: 1rem;\n border-bottom: 1px solid #00000024;\n padding: 1rem 0;\n }\n .hitResult > a:first-child {\n width: 30%;\n }\n .hitResult > a:first-child > div {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n .hitResult > div:last-child > a {\n margin-bottom: 0.5rem;\n width: 100%;\n }\n .custom-search-img{\n max-width: 130px;\n }\n @media only screen and (max-width: 568px) {\n .custom-search-img {\n max-width: 80px;\n }\n .hitResult {\n flex-direction: column;\n align-items: center;\n border: none;\n padding: 0;\n }\n .hitResult > a:first-child {\n width: 100%;\n }\n .hitResult > div:last-child {\n width: 100%;\n }\n }\n .AlgoliaResults {\n padding-left: 15px;\n margin-top: 3rem;\n }\n\n .search_refinement {\n display: flex;\n margin: 2rem 0;\n }\n\n .search_refinement > div {\n padding-right: 1rem;\n max-height: 500px;\n }\n\n .ais-Hits-list {\n margin: 0;\n list-style: none;\n padding-inline-start: 0;\n }\n .ais-Pagination-list {\n list-style: none;\n }\n .ais-Pagination-list {\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n .ais-Pagination-item + .ais-Pagination-item {\n margin-left: 0.3rem;\n }\n .ais-Pagination-link {\n padding: 0.3rem 0.6rem;\n display: block;\n border: 1px solid var(--search-primary);\n border-radius: 5px;\n transition: background-color 0.2s ease-out;\n }\n .ais-Pagination-link:focus,\n .ais-Pagination-link:hover {\n background-color: var(--search-secondary);\n color: #fff;\n }\n .ais-Pagination-item--disabled .ais-Pagination-link {\n opacity: 0.6;\n cursor: not-allowed;\n color: var(--search-secondary);\n }\n .ais-Pagination-item--disabled .ais-Pagination-link:focus,\n .ais-Pagination-item--disabled .ais-Pagination-link:hover {\n color: #fff;\n background-color: var(--search-secondary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link {\n color: #fff;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n .ais-Pagination-item--selected .ais-Pagination-link:focus,\n .ais-Pagination-item--selected .ais-Pagination-link:hover {\n color: #fff;\n }\n .ais-Pagination-list,\n .ais-Results-list {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n .ais-Pagination-list,\n .ais-PoweredBy,\n .ais-RangeInput-form,\n .ais-RatingMenu-link {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n }\n\n .ais-RefinementList-item {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n .ais-RefinementList-list {\n margin: 0;\n padding: 0 1rem;\n width: max-content;\n }\n .ais-SearchBox-form {\n width: 100%;\n border-radius: 5px;\n height: 48px;\n text-align: center\'\n }\n .ais-SearchBox-input {\n padding: 0.5rem;\n border-radius: 5px;\n width: calc(100% - ' + (this.props.searchIconUrl ? '110px' : '150px') + ');\n height: 48px;\n border: 0;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit {\n width: ' + (this.props.searchIconUrl ? '48px' : '78px') + ';\n border-radius: 5px;\n padding: 7px;\n margin-left: 5px;\n height: 48px;\n background-color: var(--search-primary);\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-submit > svg {\n fill: #fff;\n }\n .search_refinement > .dropdown > button {\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n }\n\n .ais-SearchBox-reset {\n height: 48px;\n width: 48px;\n color: #fff;\n background-color: var(--search-primary);\n border: 0;\n margin-left: 5px;\n border-radius: 5px;\n border: 0.5px solid var(--search-secondary);\n }\n\n .ais-SearchBox-reset > svg {\n fill: #fff;\n }\n .ais-RefinementList-checkbox {\n margin-right: 5px;\n }\n\n .ais-RefinementList-showMore {\n padding: 0.5rem;\n border: 0;\n background-color: var(--search-primary);\n border-color: var(--search-primary);\n color: #fff;\n border: 1px solid;\n border-radius: 5px;\n margin-left: 1rem;\n }\n '
|
|
14292
14305
|
)
|
|
14293
14306
|
);
|
|
14294
14307
|
}
|
package/dist/esm/AuthWrapper.js
CHANGED
|
@@ -1761,7 +1761,7 @@ client$1.Provider;
|
|
|
1761
1761
|
|
|
1762
1762
|
var client = client$1.default;
|
|
1763
1763
|
|
|
1764
|
-
var css = ".AuthWrapper-module_loginBox__3l-BE {\n margin-bottom: 2rem;\n width: 350px;\n max-width: 90vw;\n margin-left: auto;\n margin-right: auto;\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\n background: #fff;\n z-index: 1;\n}\n.AuthWrapper-module_loginBox_title__12rGD {\n margin-bottom: 2rem;\n text-align: center;\n}\n.AuthWrapper-module_bar__1dafn {\n background: #eee;\n margin-left: unset;\n margin-right: unset;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\n float: left;\n border-right: 1rem solid #fff;\n background: rgb(245, 245, 245);\n height: 10rem;\n width: 25%;\n margin-left: auto;\n margin-right: auto;\n margin-bottom: 2rem;\n}\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\n width: 97%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\n width: 96%;\n height: 1.5rem;\n margin-bottom: 1.5rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\n width: 72%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\n width: 88%;\n height: 1.5rem;\n margin-bottom: 0.25rem;\n}\n\n.AuthWrapper-module_iframe__2wDJW {\n margin-top: -3rem;\n border: none;\n width: 100%;\n height: 1900px;\n}";
|
|
1764
|
+
var css = ".AuthWrapper-module_loginBox__3l-BE {\r\n margin-bottom: 2rem;\r\n width: 350px;\r\n max-width: 90vw;\r\n margin-left: auto;\r\n margin-right: auto;\r\n /* box-shadow: 2px 5px 12px rgba(0, 0, 0, 0.15); */\r\n background: #fff;\r\n z-index: 1;\r\n}\r\n.AuthWrapper-module_loginBox_title__12rGD {\r\n margin-bottom: 2rem;\r\n text-align: center;\r\n}\r\n.AuthWrapper-module_bar__1dafn {\r\n background: #eee;\r\n margin-left: unset;\r\n margin-right: unset;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(1) {\r\n float: left;\r\n border-right: 1rem solid #fff;\r\n background: rgb(245, 245, 245);\r\n height: 10rem;\r\n width: 25%;\r\n margin-left: auto;\r\n margin-right: auto;\r\n margin-bottom: 2rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn:nth-child(2n) {\r\n width: 97%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(3n) {\r\n width: 96%;\r\n height: 1.5rem;\r\n margin-bottom: 1.5rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(4n) {\r\n width: 72%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n.AuthWrapper-module_bar__1dafn.AuthWrapper-module_bar__1dafn:nth-child(5n) {\r\n width: 88%;\r\n height: 1.5rem;\r\n margin-bottom: 0.25rem;\r\n}\r\n\r\n.AuthWrapper-module_iframe__2wDJW {\r\n margin-top: -3rem;\r\n border: none;\r\n width: 100%;\r\n height: 1900px;\r\n}";
|
|
1765
1765
|
var styles = { "loginBox": "AuthWrapper-module_loginBox__3l-BE", "loginBox_title": "AuthWrapper-module_loginBox_title__12rGD", "bar": "AuthWrapper-module_bar__1dafn", "iframe": "AuthWrapper-module_iframe__2wDJW" };
|
|
1766
1766
|
styleInject(css);
|
|
1767
1767
|
|
|
@@ -7,21 +7,21 @@ import './web.dom.iterable-ab4dea5c.js';
|
|
|
7
7
|
import './core.get-iterator-method-ea258bb1.js';
|
|
8
8
|
import './index-3f5c03b2.js';
|
|
9
9
|
|
|
10
|
-
/*
|
|
11
|
-
Example usage - targetedonc.com/latest-conference
|
|
12
|
-
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
-
...,
|
|
14
|
-
title,
|
|
15
|
-
summary,
|
|
16
|
-
thumbnail,
|
|
17
|
-
url,
|
|
18
|
-
published,
|
|
19
|
-
documentGroup->,
|
|
20
|
-
contentCategory->,
|
|
21
|
-
'pageNumber': ${currentPage}
|
|
22
|
-
}`
|
|
23
|
-
|
|
24
|
-
const posts = await client.fetch(query, params)
|
|
10
|
+
/*
|
|
11
|
+
Example usage - targetedonc.com/latest-conference
|
|
12
|
+
const query = `*[!(_id in path("drafts.**")) && _type == "article" && defined(title) && is_visible == true && published <= '${today}' && references('b49d36b8-aa56-4183-a2bc-1568c229fb72') ] | order(published desc) [$from...$to] {
|
|
13
|
+
...,
|
|
14
|
+
title,
|
|
15
|
+
summary,
|
|
16
|
+
thumbnail,
|
|
17
|
+
url,
|
|
18
|
+
published,
|
|
19
|
+
documentGroup->,
|
|
20
|
+
contentCategory->,
|
|
21
|
+
'pageNumber': ${currentPage}
|
|
22
|
+
}`
|
|
23
|
+
|
|
24
|
+
const posts = await client.fetch(query, params)
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
var ConferenceArticleCard = function ConferenceArticleCard(props) {
|
|
@@ -15,7 +15,7 @@ import { L as LazyLoad } from './index-755f2cc2.js';
|
|
|
15
15
|
import { m as main_43 } from './main-1894c974.js';
|
|
16
16
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
17
17
|
import { A as ADInfeed } from './ADInfeed-0a55cd2d.js';
|
|
18
|
-
import { P as Pagination } from './Pagination-
|
|
18
|
+
import { P as Pagination } from './Pagination-0173504c.js';
|
|
19
19
|
import Spinner from 'react-bootstrap/Spinner';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -39,7 +39,6 @@ import './toNumber-5aeba6e7.js';
|
|
|
39
39
|
import './Beam.js';
|
|
40
40
|
import './stringify-2b084bee.js';
|
|
41
41
|
import './Segment.js';
|
|
42
|
-
import 'react-paginate';
|
|
43
42
|
|
|
44
43
|
var DeckContent = function (_React$Component) {
|
|
45
44
|
_inherits(DeckContent, _React$Component);
|
package/dist/esm/DeckContent.js
CHANGED
|
@@ -172,14 +172,14 @@ var DeckContent = function (_React$Component) {
|
|
|
172
172
|
var newPath = pageNumber === 1 ? '' + path : path + '?page=' + pageNumber;
|
|
173
173
|
|
|
174
174
|
// please leave this for later debug purpose : Yong Jun.
|
|
175
|
-
/* console.log('page change reported', {
|
|
176
|
-
currentPage: currentPage,
|
|
177
|
-
pageNumber: pageNumber,
|
|
178
|
-
pathname: pathname,
|
|
179
|
-
path: path,
|
|
180
|
-
newPath: newPath,
|
|
181
|
-
firstPage: pageNumber === 1,
|
|
182
|
-
queryString: queryString
|
|
175
|
+
/* console.log('page change reported', {
|
|
176
|
+
currentPage: currentPage,
|
|
177
|
+
pageNumber: pageNumber,
|
|
178
|
+
pathname: pathname,
|
|
179
|
+
path: path,
|
|
180
|
+
newPath: newPath,
|
|
181
|
+
firstPage: pageNumber === 1,
|
|
182
|
+
queryString: queryString
|
|
183
183
|
}) */
|
|
184
184
|
|
|
185
185
|
if (pageview) {
|
|
@@ -16,7 +16,7 @@ import { g as get_1 } from './get-3c308da4.js';
|
|
|
16
16
|
import { m as main_43 } from './main-1894c974.js';
|
|
17
17
|
import urlFor from './urlFor.js';
|
|
18
18
|
import { c as clean_html_1 } from './entities-6d9154b4.js';
|
|
19
|
-
import { P as Pagination } from './Pagination-
|
|
19
|
+
import { P as Pagination } from './Pagination-0173504c.js';
|
|
20
20
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
21
21
|
import './core.get-iterator-method-ea258bb1.js';
|
|
22
22
|
import './web.dom.iterable-ab4dea5c.js';
|
|
@@ -34,7 +34,6 @@ import './isSymbol-a7e9aafe.js';
|
|
|
34
34
|
import './eq-bdcbf886.js';
|
|
35
35
|
import './slicedToArray-6ebcbfea.js';
|
|
36
36
|
import './index-3f5c03b2.js';
|
|
37
|
-
import 'react-paginate';
|
|
38
37
|
|
|
39
38
|
var DeckQueue = function (_React$Component) {
|
|
40
39
|
_inherits(DeckQueue, _React$Component);
|
package/dist/esm/EventsDeck.js
CHANGED
|
@@ -243,23 +243,23 @@ var EventsDeck = function EventsDeck(_ref) {
|
|
|
243
243
|
if (cventAccessToken && cventAccessToken !== 'undefined') {
|
|
244
244
|
setAccessToken(cventAccessToken);
|
|
245
245
|
} else {
|
|
246
|
-
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
-
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
-
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
-
fetch(url, {
|
|
250
|
-
headers: {
|
|
251
|
-
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
-
Authorization: `Basic ${encodedData}`
|
|
253
|
-
},
|
|
254
|
-
method: 'POST',
|
|
255
|
-
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
-
})
|
|
257
|
-
.then((response) => response.json())
|
|
258
|
-
.then((json) => {
|
|
259
|
-
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
-
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
-
setAccessToken(json.access_token)
|
|
262
|
-
})
|
|
246
|
+
/*const encodedData = window.btoa(clientId + ':' + clientSecret)
|
|
247
|
+
//const url = `${corsProxy}https://api-platform.cvent.com/ea/oauth2/token`
|
|
248
|
+
const url = `https://api-platform.cvent.com/ea/oauth2/token`
|
|
249
|
+
fetch(url, {
|
|
250
|
+
headers: {
|
|
251
|
+
'Content-Type': 'application/x-www-form-urlencoded',
|
|
252
|
+
Authorization: `Basic ${encodedData}`
|
|
253
|
+
},
|
|
254
|
+
method: 'POST',
|
|
255
|
+
body: `grant_type=client_credentials&client_id=${clientId}`
|
|
256
|
+
})
|
|
257
|
+
.then((response) => response.json())
|
|
258
|
+
.then((json) => {
|
|
259
|
+
const inOneHour = new Date(new Date().getTime() + 60 * 60 * 1000)
|
|
260
|
+
Cookies.set('cvent_access_token', json.access_token, { expires: inOneHour })
|
|
261
|
+
setAccessToken(json.access_token)
|
|
262
|
+
})
|
|
263
263
|
.catch((e) => console.log(e))*/
|
|
264
264
|
// hello
|
|
265
265
|
var url = 'https://beam.mjhlifesciences.com/api/cvent/token';
|
|
@@ -22,7 +22,7 @@ import urlFor from './urlFor.js';
|
|
|
22
22
|
import { m as main_43 } from './main-1894c974.js';
|
|
23
23
|
import { A as AuthorComponent } from './AuthorComponent-11adff02.js';
|
|
24
24
|
import { P as PublicationFeature } from './PublicationFeature-d88e76b9.js';
|
|
25
|
-
import { P as Pagination } from './Pagination-
|
|
25
|
+
import { P as Pagination } from './Pagination-0173504c.js';
|
|
26
26
|
import Spinner from 'react-bootstrap/Spinner';
|
|
27
27
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
28
28
|
import './core.get-iterator-method-ea258bb1.js';
|
|
@@ -47,7 +47,6 @@ import './Segment.js';
|
|
|
47
47
|
import './eq-bdcbf886.js';
|
|
48
48
|
import './index-3f5c03b2.js';
|
|
49
49
|
import 'react-bootstrap/Button';
|
|
50
|
-
import 'react-paginate';
|
|
51
50
|
|
|
52
51
|
var GridContent = function (_React$Component) {
|
|
53
52
|
_inherits(GridContent, _React$Component);
|
package/dist/esm/HamMagazine.js
CHANGED
|
@@ -2,7 +2,7 @@ import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
|
2
2
|
import React__default, { useRef, useState, useEffect } from 'react';
|
|
3
3
|
import { N as NavFooter } from './NavFooter-e27bd93b.js';
|
|
4
4
|
import { S as SocialNavFooter } from './index.esm-37268dca.js';
|
|
5
|
-
import { S as SocialSearchComponent } from './SocialSearchComponent-
|
|
5
|
+
import { S as SocialSearchComponent } from './SocialSearchComponent-4b56cd8c.js';
|
|
6
6
|
import 'react-bootstrap/Form';
|
|
7
7
|
import 'react-bootstrap/FormControl';
|
|
8
8
|
import 'react-bootstrap/Button';
|
|
@@ -26,15 +26,15 @@ import './_library-528f1934.js';
|
|
|
26
26
|
import './_iter-detect-98db3b07.js';
|
|
27
27
|
|
|
28
28
|
var HamMagazine = function HamMagazine(props) {
|
|
29
|
-
/*
|
|
30
|
-
Example Nav with acceptable props
|
|
31
|
-
<MagazineNav
|
|
32
|
-
showLogin
|
|
33
|
-
logo={props.settings.logo}
|
|
34
|
-
dataObject={props.cache.mainNavCache}
|
|
35
|
-
website={website}
|
|
36
|
-
subNav={props.cache.subNavCache}
|
|
37
|
-
/>
|
|
29
|
+
/*
|
|
30
|
+
Example Nav with acceptable props
|
|
31
|
+
<MagazineNav
|
|
32
|
+
showLogin
|
|
33
|
+
logo={props.settings.logo}
|
|
34
|
+
dataObject={props.cache.mainNavCache}
|
|
35
|
+
website={website}
|
|
36
|
+
subNav={props.cache.subNavCache}
|
|
37
|
+
/>
|
|
38
38
|
*/
|
|
39
39
|
|
|
40
40
|
// Setting 'socialIconVariant' as 'light' as default to make the social icons and search icon black
|
|
@@ -52,6 +52,8 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
52
52
|
socialIconVariant = _props$socialIconVari === undefined ? 'light' : _props$socialIconVari,
|
|
53
53
|
invertedLogo = props.invertedLogo;
|
|
54
54
|
props.settings;
|
|
55
|
+
var _props$searchIconUrl = props.searchIconUrl,
|
|
56
|
+
searchIconUrl = _props$searchIconUrl === undefined ? null : _props$searchIconUrl;
|
|
55
57
|
|
|
56
58
|
var navRef = useRef(null);
|
|
57
59
|
var topNavRef = useRef(null);
|
|
@@ -369,7 +371,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
369
371
|
React__default.createElement(
|
|
370
372
|
'div',
|
|
371
373
|
{ className: 'is-mobile' },
|
|
372
|
-
React__default.createElement(SocialSearchComponent, { type: 'mobile', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham' })
|
|
374
|
+
React__default.createElement(SocialSearchComponent, { type: 'mobile', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham', searchIconUrl: searchIconUrl })
|
|
373
375
|
)
|
|
374
376
|
),
|
|
375
377
|
React__default.createElement(
|
|
@@ -547,7 +549,7 @@ var HamMagazine = function HamMagazine(props) {
|
|
|
547
549
|
React__default.createElement(
|
|
548
550
|
'div',
|
|
549
551
|
{ className: 'is-desktop' },
|
|
550
|
-
React__default.createElement(SocialSearchComponent, { type: 'desktop', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham' })
|
|
552
|
+
React__default.createElement(SocialSearchComponent, { type: 'desktop', socialIconVariant: socialIconVariant, website: website, navID: 'navbar-ham', searchIconUrl: searchIconUrl })
|
|
551
553
|
)
|
|
552
554
|
),
|
|
553
555
|
website && React__default.createElement(
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -67,35 +67,35 @@ import 'react-bootstrap/OverlayTrigger';
|
|
|
67
67
|
import 'react-bootstrap/Tooltip';
|
|
68
68
|
import 'react-bootstrap/Popover';
|
|
69
69
|
|
|
70
|
-
/* usage
|
|
71
|
-
import Settings, { Ads } from '../../../../settings'
|
|
72
|
-
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
73
|
-
import client from '../../../../client'
|
|
74
|
-
import moment from 'moment'
|
|
75
|
-
import Shell from '../../../../components/2.0/Shell'
|
|
76
|
-
import { pageview } from '../../../../utilities/gtag'
|
|
77
|
-
|
|
78
|
-
const Issue = (props) => {
|
|
79
|
-
const { pubIssue, cache } = props
|
|
80
|
-
const targeting = {
|
|
81
|
-
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
-
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
83
|
-
}
|
|
84
|
-
return (
|
|
85
|
-
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
86
|
-
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
87
|
-
</Shell>
|
|
88
|
-
)
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
Issue.getInitialProps = async (ctx) => {
|
|
92
|
-
const { query } = ctx
|
|
93
|
-
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
94
|
-
)
|
|
95
|
-
return { pubIssue }
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export default Issue
|
|
70
|
+
/* usage
|
|
71
|
+
import Settings, { Ads } from '../../../../settings'
|
|
72
|
+
import { IssueLanding, getQuery } from '@mjhls/mjh-framework'
|
|
73
|
+
import client from '../../../../client'
|
|
74
|
+
import moment from 'moment'
|
|
75
|
+
import Shell from '../../../../components/2.0/Shell'
|
|
76
|
+
import { pageview } from '../../../../utilities/gtag'
|
|
77
|
+
|
|
78
|
+
const Issue = (props) => {
|
|
79
|
+
const { pubIssue, cache } = props
|
|
80
|
+
const targeting = {
|
|
81
|
+
content_placement: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
82
|
+
document_url: [`/publications/${pubIssue.identifier.current}/${pubIssue.issue.identifier.current}`],
|
|
83
|
+
}
|
|
84
|
+
return (
|
|
85
|
+
<Shell cache={cache} settings={Settings} targeting={targeting} ads={Ads} layout='3' title={pubIssue.issue.name}>
|
|
86
|
+
<IssueLanding pubIssue={pubIssue} client={client} settings={Settings} pageview={pageview} rightItems={Ads.getMobileAds(targeting)} />
|
|
87
|
+
</Shell>
|
|
88
|
+
)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
Issue.getInitialProps = async (ctx) => {
|
|
92
|
+
const { query } = ctx
|
|
93
|
+
const pubIssue = await client.fetch(getQuery('issue'), { ...query, currentDate: moment().utc().format() }
|
|
94
|
+
)
|
|
95
|
+
return { pubIssue }
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export default Issue
|
|
99
99
|
*/
|
|
100
100
|
|
|
101
101
|
var IssueLanding = function IssueLanding(props) {
|
package/dist/esm/KMTracker.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
var KMTracker = function KMTracker(props) {
|
|
2
|
-
|
|
2
|
+
var id = props.id;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
if (document && id) {
|
|
5
5
|
(function () {
|
|
6
|
-
|
|
6
|
+
var ecnJquery = document.createElement('script');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
ecnJquery.type = 'text/javascript';
|
|
9
|
+
ecnJquery.async = true;
|
|
10
|
+
ecnJquery.src = 'https://apidt.ecn5.com/ECN_jQuery.min.js';
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
var ecnScript = document.createElement('script');
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
ecnScript.type = 'text/javascript';
|
|
15
|
+
ecnScript.async = true;
|
|
16
|
+
ecnScript.id = 'km-tracker';
|
|
17
|
+
ecnScript.src = 'https://apidt.ecn5.com/ECN_tracker_Secure.js?TrackerKey=' + id;
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
document.head.appendChild(ecnJquery);
|
|
20
|
+
document.head.appendChild(ecnScript);
|
|
21
|
+
})();
|
|
22
|
+
}
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
export default KMTracker;
|