@mjhls/mjh-framework 1.0.887 → 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.
Files changed (76) hide show
  1. package/README.md +168 -168
  2. package/dist/cjs/AlgoliaSearch.js +16 -3
  3. package/dist/cjs/AuthWrapper.js +1 -1
  4. package/dist/cjs/ConferenceArticleCard.js +15 -15
  5. package/dist/cjs/ContentCardPaginated.js +2 -3
  6. package/dist/cjs/DeckContent.js +8 -8
  7. package/dist/cjs/DeckQueuePaginated.js +2 -3
  8. package/dist/cjs/EventsDeck.js +17 -17
  9. package/dist/cjs/GridContentPaginated.js +4 -9
  10. package/dist/cjs/HamMagazine.js +14 -12
  11. package/dist/cjs/IssueLanding.js +29 -29
  12. package/dist/cjs/KMTracker.js +15 -15
  13. package/dist/cjs/MasterDeck.js +8 -8
  14. package/dist/cjs/MasterDeckPaginated.js +10 -11
  15. package/dist/cjs/{MediaSeriesCard-8b4efd28.js → MediaSeriesCard-3d5c69ba.js} +1 -1
  16. package/dist/cjs/MediaSeriesLanding.js +6 -6
  17. package/dist/cjs/MediaSeriesLandingPaginated.js +7 -8
  18. package/dist/cjs/NavMagazine.js +11 -11
  19. package/dist/cjs/NavNative.js +9 -9
  20. package/dist/cjs/Pagination-3effd8c6.js +60 -0
  21. package/dist/cjs/PartnerDetailListingPaginated.js +1 -2
  22. package/dist/cjs/PublicationLanding.js +26 -26
  23. package/dist/cjs/QueueDeckExpandedPaginated.js +2 -3
  24. package/dist/cjs/RelatedContent.js +28 -28
  25. package/dist/cjs/RelatedTopicsDropdown.js +10 -10
  26. package/dist/cjs/SeriesListingDeck.js +1 -1
  27. package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-de93a303.js} +4 -4
  28. package/dist/cjs/SideFooter.js +2 -2
  29. package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-b7faaedc.js} +15 -3
  30. package/dist/cjs/TemplateNormal.js +1 -1
  31. package/dist/cjs/VideoSeriesCard.js +1 -1
  32. package/dist/cjs/View.js +3 -3
  33. package/dist/cjs/YoutubeGroup.js +4 -4
  34. package/dist/cjs/getQuery.js +2 -2
  35. package/dist/cjs/{getTargeting-9d509319.js → getTargeting-6d59cc5b.js} +9 -9
  36. package/dist/cjs/getTargeting.js +1 -1
  37. package/dist/cjs/index.js +3 -3
  38. package/dist/esm/AlgoliaSearch.js +16 -3
  39. package/dist/esm/AuthWrapper.js +1 -1
  40. package/dist/esm/ConferenceArticleCard.js +15 -15
  41. package/dist/esm/ContentCardPaginated.js +2 -3
  42. package/dist/esm/DeckContent.js +8 -8
  43. package/dist/esm/DeckQueuePaginated.js +2 -3
  44. package/dist/esm/EventsDeck.js +17 -17
  45. package/dist/esm/GridContentPaginated.js +4 -9
  46. package/dist/esm/HamMagazine.js +14 -12
  47. package/dist/esm/IssueLanding.js +29 -29
  48. package/dist/esm/KMTracker.js +15 -15
  49. package/dist/esm/MasterDeck.js +8 -8
  50. package/dist/esm/MasterDeckPaginated.js +10 -11
  51. package/dist/esm/{MediaSeriesCard-51ebf1c0.js → MediaSeriesCard-5b1d13dd.js} +1 -1
  52. package/dist/esm/MediaSeriesLanding.js +6 -6
  53. package/dist/esm/MediaSeriesLandingPaginated.js +7 -8
  54. package/dist/esm/NavMagazine.js +11 -11
  55. package/dist/esm/NavNative.js +9 -9
  56. package/dist/esm/Pagination-0173504c.js +54 -0
  57. package/dist/esm/PartnerDetailListingPaginated.js +1 -2
  58. package/dist/esm/PublicationLanding.js +26 -26
  59. package/dist/esm/QueueDeckExpandedPaginated.js +2 -3
  60. package/dist/esm/RelatedContent.js +28 -28
  61. package/dist/esm/RelatedTopicsDropdown.js +10 -10
  62. package/dist/esm/SeriesListingDeck.js +1 -1
  63. package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-98ad6d97.js} +4 -4
  64. package/dist/esm/SideFooter.js +2 -2
  65. package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-4b56cd8c.js} +15 -3
  66. package/dist/esm/TemplateNormal.js +1 -1
  67. package/dist/esm/VideoSeriesCard.js +1 -1
  68. package/dist/esm/View.js +3 -3
  69. package/dist/esm/YoutubeGroup.js +4 -4
  70. package/dist/esm/getQuery.js +2 -2
  71. package/dist/esm/{getTargeting-4061f839.js → getTargeting-36031a00.js} +9 -9
  72. package/dist/esm/getTargeting.js +1 -1
  73. package/dist/esm/index.js +3 -3
  74. package/package.json +112 -112
  75. package/dist/cjs/Pagination-8f2038bf.js +0 -53
  76. package/dist/esm/Pagination-c0db7ca1.js +0 -46
@@ -12,7 +12,9 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
12
12
  var type = _ref.type,
13
13
  socialIconVariant = _ref.socialIconVariant,
14
14
  website = _ref.website,
15
- navID = _ref.navID;
15
+ navID = _ref.navID,
16
+ _ref$searchIconUrl = _ref.searchIconUrl,
17
+ searchIconUrl = _ref$searchIconUrl === undefined ? null : _ref$searchIconUrl;
16
18
 
17
19
  // Search Term
18
20
  var _useState = useState(''),
@@ -96,7 +98,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
96
98
  { style: { padding: '6px' }, inline: true, onSubmit: function onSubmit(e) {
97
99
  return submitSearch(e);
98
100
  } },
99
- React__default.createElement(FormControl, { style: { width: '78%' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
101
+ searchIconUrl && React__default.createElement(
102
+ 'div',
103
+ { style: { maxWidth: '90px', marginRight: '.5rem' } },
104
+ React__default.createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
105
+ ),
106
+ React__default.createElement(FormControl, { style: { width: '50%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
100
107
  return setSearchKey(e.target.value);
101
108
  } }),
102
109
  React__default.createElement(
@@ -143,7 +150,12 @@ var SocialSearchComponent = function SocialSearchComponent(_ref) {
143
150
  { inline: true, style: { padding: '6px', width: '100%' }, onSubmit: function onSubmit(e) {
144
151
  return submitSearch(e);
145
152
  } },
146
- React__default.createElement(FormControl, { style: { width: '78%' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
153
+ searchIconUrl && React__default.createElement(
154
+ 'div',
155
+ { style: { maxWidth: '90px', marginRight: '.5rem' } },
156
+ React__default.createElement('img', { className: 'img-fluid', src: searchIconUrl, alt: 'search icon' })
157
+ ),
158
+ React__default.createElement(FormControl, { style: { width: '20%', flexGrow: '1' }, placeholder: 'Search', type: 'text', value: searchKey, onChange: function onChange(e) {
147
159
  return setSearchKey(e.target.value);
148
160
  } }),
149
161
  React__default.createElement(
@@ -55,7 +55,7 @@ import './iconBase-ccc56b97.js';
55
55
  import './index.esm-f6156a57.js';
56
56
  import './NavFooter-e27bd93b.js';
57
57
  import './index.esm-37268dca.js';
58
- import './SocialSearchComponent-8e0fcf66.js';
58
+ import './SocialSearchComponent-4b56cd8c.js';
59
59
  import './SocialIcons.js';
60
60
  import 'react-bootstrap/Form';
61
61
  import 'react-bootstrap/FormControl';
@@ -15,7 +15,7 @@ import 'react-dom';
15
15
  import './slicedToArray-6ebcbfea.js';
16
16
  import './index-3f5c03b2.js';
17
17
 
18
- 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";
18
+ 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";
19
19
  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" };
20
20
  styleInject(css);
21
21
 
package/dist/esm/View.js CHANGED
@@ -17,8 +17,8 @@ import { V as VisibilitySensor } from './visibility-sensor-72fd8f8b.js';
17
17
  import SocialShare from './SocialShare.js';
18
18
  import { r as renderAuthor, g as getSerializers } from './index-ca0c9ff5.js';
19
19
  import DFPAdSlot from './AdSlot.js';
20
- import { S as SeriesSlider } from './SeriesSlider-45adb8dc.js';
21
- import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-4061f839.js';
20
+ import { S as SeriesSlider } from './SeriesSlider-98ad6d97.js';
21
+ import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-36031a00.js';
22
22
  import getKeywords from './getKeywords.js';
23
23
  import urlFor from './urlFor.js';
24
24
  import { _ as _typeof } from './typeof-e9fc0c5d.js';
@@ -337,7 +337,7 @@ var ISI = function ISI(props) {
337
337
  );
338
338
  };
339
339
 
340
- 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";
340
+ 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";
341
341
  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" };
342
342
  styleInject(css);
343
343
 
@@ -12,10 +12,10 @@ import 'react-dom';
12
12
  import 'prop-types';
13
13
  import './index-3f5c03b2.js';
14
14
 
15
- /*
16
- GROQ query -
17
- accepts an array of title, URL
18
- `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
15
+ /*
16
+ GROQ query -
17
+ accepts an array of title, URL
18
+ `https://img.youtube.com/vi/${getYouTubeId(vid.url)}/hqdefault.jpg`
19
19
  */
20
20
 
21
21
  var YoutubeGroup = function YoutubeGroup(props) {
@@ -12,9 +12,9 @@ var getQuery = function getQuery(type) {
12
12
  case 'article':
13
13
  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 }';
14
14
  case 'publication':
15
- 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 }';
15
+ 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 }';
16
16
  case 'issue':
17
- 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 }\n }\n }';
17
+ 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 }';
18
18
  case 'externalResources':
19
19
  return '{\n \'archived\': *[_type == "external" && archived && isVisible ' + conditions + '] | order(displayDate desc),\n \'recent\': *[_type == "external" && archived != true && isVisible ' + conditions + '] | order(displayDate asc)\n }';
20
20
  case 'mediaseries':
@@ -2,18 +2,18 @@ import { _ as _extends } from './extends-6d8e3924.js';
2
2
  import { _ as _toConsumableArray } from './toConsumableArray-f7074d7c.js';
3
3
 
4
4
  var getContentPlacementUrl = function getContentPlacementUrl(cp) {
5
- var cp_url = '';
6
- if (cp.ancestor && typeof cp.ancestor == 'string') {
7
- cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
- }
5
+ var cp_url = '';
6
+ if (cp.ancestor && typeof cp.ancestor == 'string') {
7
+ cp_url += (cp_url === '' ? '' : '/') + cp.ancestor;
8
+ }
9
9
 
10
- if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
- cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
- }
10
+ if (!cp.ancestor && cp.parent && typeof cp.parent == 'string') {
11
+ cp_url += (cp_url === '' ? '' : '/') + cp.parent;
12
+ }
13
13
 
14
- cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
14
+ cp_url += (cp_url === '' ? '' : '/') + (cp.adTargetingURL ? adTargetingURL : cp.path);
15
15
 
16
- return cp_url;
16
+ return cp_url;
17
17
  };
18
18
 
19
19
  var getTargeting = function getTargeting(props) {
@@ -1,6 +1,6 @@
1
1
  import './extends-6d8e3924.js';
2
2
  import './toConsumableArray-f7074d7c.js';
3
- export { g as default } from './getTargeting-4061f839.js';
3
+ export { g as default } from './getTargeting-36031a00.js';
4
4
  import './_commonjsHelpers-0c4b6f40.js';
5
5
  import './core.get-iterator-method-ea258bb1.js';
6
6
  import './_object-pie-133f504a.js';
package/dist/esm/index.js CHANGED
@@ -94,7 +94,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
94
94
  export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
95
95
  export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
96
96
  export { default as Schema } from './Schema.js';
97
- export { g as getTargeting } from './getTargeting-4061f839.js';
97
+ export { g as getTargeting } from './getTargeting-36031a00.js';
98
98
  export { default as getKeywords } from './getKeywords.js';
99
99
  export { default as getQuery } from './getQuery.js';
100
100
  import './toConsumableArray-f7074d7c.js';
@@ -167,7 +167,7 @@ import 'react-bootstrap/NavDropdown';
167
167
  import './index.esm-9b042655.js';
168
168
  import './NavFooter-e27bd93b.js';
169
169
  import './index.esm-37268dca.js';
170
- import './SocialSearchComponent-8e0fcf66.js';
170
+ import './SocialSearchComponent-4b56cd8c.js';
171
171
  import 'react-bootstrap/FormControl';
172
172
  import 'react-ga';
173
173
  import 'react-bootstrap/Carousel';
@@ -189,7 +189,7 @@ import 'swr';
189
189
  import 'passport-local';
190
190
  import 'mysql';
191
191
  import './md5-4e42248e.js';
192
- import './SeriesSlider-45adb8dc.js';
192
+ import './SeriesSlider-98ad6d97.js';
193
193
  import './style-inject.es-1f59c1d0.js';
194
194
  import 'disqus-react';
195
195
  import 'react-twitter-embed';
package/package.json CHANGED
@@ -1,112 +1,112 @@
1
- {
2
- "name": "@mjhls/mjh-framework",
3
- "version": "1.0.887",
4
- "description": "Foundation Framework",
5
- "author": "mjh-framework",
6
- "license": "MIT",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/MJHLS/mjh-framework.git"
10
- },
11
- "main": "dist/cjs/index.js",
12
- "module": "dist/esm/index.js",
13
- "engines": {
14
- "node": ">=8",
15
- "npm": ">=5"
16
- },
17
- "scripts": {
18
- "clean": "rimraf dist",
19
- "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
- "test:watch": "react-scripts test --env=jsdom",
21
- "build": "npm run clean && rollup -c",
22
- "start": "npm run clean && rollup -c -w",
23
- "prepare": "yarn run build",
24
- "predeploy": "cd example && yarn install && yarn run build",
25
- "deploy": "gh-pages -d example/build"
26
- },
27
- "peerDependencies": {
28
- "disqus-react": "^1.0.11",
29
- "next": "^9.0.0",
30
- "prop-types": "^15.5.4",
31
- "react": "^15.0.0 || ^16.0.0",
32
- "react-bootstrap": "^1.0.0-beta.14",
33
- "react-dom": "^15.0.0 || ^16.0.0",
34
- "react-share": "^4.0.1"
35
- },
36
- "devDependencies": {
37
- "@brightcove/react-player-loader": "^1.4.0",
38
- "@rollup/plugin-json": "^4.0.3",
39
- "@sanity/block-content-to-react": "^2.0.7",
40
- "@sanity/image-url": "^0.140.15",
41
- "@svgr/rollup": "2.4.1",
42
- "babel-core": "^6.26.3",
43
- "babel-eslint": "^8.2.5",
44
- "babel-plugin-external-helpers": "^6.22.0",
45
- "babel-plugin-transform-runtime": "^6.23.0",
46
- "babel-preset-env": "^1.7.0",
47
- "babel-preset-react": "^6.24.1",
48
- "babel-preset-stage-0": "^6.24.1",
49
- "cross-env": "^5.1.4",
50
- "eslint": "^5.0.1",
51
- "eslint-config-standard": "^11.0.0",
52
- "eslint-config-standard-react": "^6.0.0",
53
- "eslint-plugin-import": "^2.13.0",
54
- "eslint-plugin-node": "^7.0.1",
55
- "eslint-plugin-promise": "^4.0.0",
56
- "eslint-plugin-react": "^7.10.0",
57
- "eslint-plugin-react-hooks": "^2.3.0",
58
- "eslint-plugin-standard": "^3.1.0",
59
- "get-youtube-id": "^1.0.1",
60
- "gh-pages": "^1.2.0",
61
- "lodash": "^4.17.15",
62
- "md5": "^2.2.1",
63
- "moment": "^2.26.0",
64
- "moment-timezone": "^0.5.31",
65
- "next": "^9.2.0",
66
- "react": "^16.12.0",
67
- "react-bootstrap": "1.4.0",
68
- "react-device-detect": "^1.11.14",
69
- "react-dfp": "^0.19.0",
70
- "react-dom": "^16.12.0",
71
- "react-icons": "^3.8.0",
72
- "react-infinite-scroll-component": "^5.0.4",
73
- "react-lazyload": "^2.6.5",
74
- "react-paginate": "^7.1.3",
75
- "react-player": "^1.15.2",
76
- "react-scripts": "^1.1.4",
77
- "react-share": "^4.0.1",
78
- "react-social-icons": "^4.1.0",
79
- "react-visibility-sensor": "^5.1.1",
80
- "react-youtube": "^7.9.0",
81
- "rimraf": "^3.0.2",
82
- "rollup": "^2.7.3",
83
- "rollup-plugin-babel": "3.0.7",
84
- "rollup-plugin-commonjs": "9.3.4",
85
- "rollup-plugin-node-builtins": "2.1.2",
86
- "rollup-plugin-node-resolve": "3.4.0",
87
- "rollup-plugin-postcss": "1.6.3",
88
- "rollup-plugin-url": "1.4.0"
89
- },
90
- "files": [
91
- "dist"
92
- ],
93
- "dependencies": {
94
- "babel-polyfill": "^6.26.0",
95
- "cookie": "^0.4.1",
96
- "disqus-react": "^1.0.11",
97
- "faunadb": "^4.2.0",
98
- "js-cookie": "^2.2.1",
99
- "next-auth": "^3.2.0",
100
- "next-cookies": "^2.0.3",
101
- "nookies": "^2.4.0",
102
- "react-cookies": "^0.1.1",
103
- "react-facebook": "^8.1.4",
104
- "react-instantsearch-dom": "^6.10.3",
105
- "react-script-tag": "^1.1.2",
106
- "rollup-plugin-peer-deps-external": "^2.2.4",
107
- "shortid": "^2.2.15",
108
- "smoothscroll-polyfill": "^0.4.4",
109
- "striptags": "^3.1.1",
110
- "superagent": "^5.2.2"
111
- }
112
- }
1
+ {
2
+ "name": "@mjhls/mjh-framework",
3
+ "version": "1.0.889-publication-filename-v1",
4
+ "description": "Foundation Framework",
5
+ "author": "mjh-framework",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/MJHLS/mjh-framework.git"
10
+ },
11
+ "main": "dist/cjs/index.js",
12
+ "module": "dist/esm/index.js",
13
+ "engines": {
14
+ "node": ">=8",
15
+ "npm": ">=5"
16
+ },
17
+ "scripts": {
18
+ "clean": "rimraf dist",
19
+ "test": "cross-env CI=1 react-scripts test --env=jsdom",
20
+ "test:watch": "react-scripts test --env=jsdom",
21
+ "build": "npm run clean && rollup -c",
22
+ "start": "npm run clean && rollup -c -w",
23
+ "prepare": "yarn run build",
24
+ "predeploy": "cd example && yarn install && yarn run build",
25
+ "deploy": "gh-pages -d example/build"
26
+ },
27
+ "peerDependencies": {
28
+ "disqus-react": "^1.0.11",
29
+ "next": "^9.0.0",
30
+ "prop-types": "^15.5.4",
31
+ "react": "^15.0.0 || ^16.0.0",
32
+ "react-bootstrap": "^1.0.0-beta.14",
33
+ "react-dom": "^15.0.0 || ^16.0.0",
34
+ "react-share": "^4.0.1"
35
+ },
36
+ "devDependencies": {
37
+ "@brightcove/react-player-loader": "^1.4.0",
38
+ "@rollup/plugin-json": "^4.0.3",
39
+ "@sanity/block-content-to-react": "^2.0.7",
40
+ "@sanity/image-url": "^0.140.15",
41
+ "@svgr/rollup": "2.4.1",
42
+ "babel-core": "^6.26.3",
43
+ "babel-eslint": "^8.2.5",
44
+ "babel-plugin-external-helpers": "^6.22.0",
45
+ "babel-plugin-transform-runtime": "^6.23.0",
46
+ "babel-preset-env": "^1.7.0",
47
+ "babel-preset-react": "^6.24.1",
48
+ "babel-preset-stage-0": "^6.24.1",
49
+ "cross-env": "^5.1.4",
50
+ "eslint": "^5.0.1",
51
+ "eslint-config-standard": "^11.0.0",
52
+ "eslint-config-standard-react": "^6.0.0",
53
+ "eslint-plugin-import": "^2.13.0",
54
+ "eslint-plugin-node": "^7.0.1",
55
+ "eslint-plugin-promise": "^4.0.0",
56
+ "eslint-plugin-react": "^7.10.0",
57
+ "eslint-plugin-react-hooks": "^2.3.0",
58
+ "eslint-plugin-standard": "^3.1.0",
59
+ "get-youtube-id": "^1.0.1",
60
+ "gh-pages": "^1.2.0",
61
+ "lodash": "^4.17.15",
62
+ "md5": "^2.2.1",
63
+ "moment": "^2.26.0",
64
+ "moment-timezone": "^0.5.31",
65
+ "next": "^9.2.0",
66
+ "react": "^16.12.0",
67
+ "react-bootstrap": "1.4.0",
68
+ "react-device-detect": "^1.11.14",
69
+ "react-dfp": "^0.19.0",
70
+ "react-dom": "^16.12.0",
71
+ "react-icons": "^3.8.0",
72
+ "react-infinite-scroll-component": "^5.0.4",
73
+ "react-lazyload": "^2.6.5",
74
+ "react-paginate": "^7.1.3",
75
+ "react-player": "^1.15.2",
76
+ "react-scripts": "^1.1.4",
77
+ "react-share": "^4.0.1",
78
+ "react-social-icons": "^4.1.0",
79
+ "react-visibility-sensor": "^5.1.1",
80
+ "react-youtube": "^7.9.0",
81
+ "rimraf": "^3.0.2",
82
+ "rollup": "^2.7.3",
83
+ "rollup-plugin-babel": "3.0.7",
84
+ "rollup-plugin-commonjs": "9.3.4",
85
+ "rollup-plugin-node-builtins": "2.1.2",
86
+ "rollup-plugin-node-resolve": "3.4.0",
87
+ "rollup-plugin-postcss": "1.6.3",
88
+ "rollup-plugin-url": "1.4.0"
89
+ },
90
+ "files": [
91
+ "dist"
92
+ ],
93
+ "dependencies": {
94
+ "babel-polyfill": "^6.26.0",
95
+ "cookie": "^0.4.1",
96
+ "disqus-react": "^1.0.11",
97
+ "faunadb": "^4.2.0",
98
+ "js-cookie": "^2.2.1",
99
+ "next-auth": "^3.2.0",
100
+ "next-cookies": "^2.0.3",
101
+ "nookies": "^2.4.0",
102
+ "react-cookies": "^0.1.1",
103
+ "react-facebook": "^8.1.4",
104
+ "react-instantsearch-dom": "^6.10.3",
105
+ "react-script-tag": "^1.1.2",
106
+ "rollup-plugin-peer-deps-external": "^2.2.4",
107
+ "shortid": "^2.2.15",
108
+ "smoothscroll-polyfill": "^0.4.4",
109
+ "striptags": "^3.1.1",
110
+ "superagent": "^5.2.2"
111
+ }
112
+ }
@@ -1,53 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var ReactPaginate = require('react-paginate');
5
-
6
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
-
8
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
9
- var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
10
-
11
- var Pagination = function Pagination(props) {
12
- var pageCount = props.pageCount,
13
- _props$marginPagesDis = props.marginPagesDisplayed,
14
- marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
15
- _props$pageRangeDispl = props.pageRangeDisplayed,
16
- pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
17
- _props$currentPage = props.currentPage,
18
- currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
19
- _onPageChange = props.onPageChange;
20
-
21
- if (!pageCount || pageCount <= 1) return null;
22
- return React__default['default'].createElement(
23
- React__default['default'].Fragment,
24
- null,
25
- React__default['default'].createElement(ReactPaginate__default['default'], {
26
- pageCount: pageCount,
27
- marginPagesDisplayed: marginPagesDisplayed,
28
- pageRangeDisplayed: pageRangeDisplayed,
29
- forcePage: currentPage - 1,
30
- onPageChange: function onPageChange(_ref) {
31
- var selected = _ref.selected;
32
- return _onPageChange(selected + 1);
33
- },
34
- hrefBuilder: function hrefBuilder(page) {
35
- return '?page=' + page;
36
- },
37
- previousLabel: '<',
38
- nextLabel: '>',
39
- containerClassName: 'pagination-container',
40
- previousLinkClassName: 'previous',
41
- nextLinkClassName: 'next',
42
- disabledClassName: 'disbaled',
43
- activeClassName: 'active'
44
- }),
45
- React__default['default'].createElement(
46
- 'style',
47
- { jsx: 'true' },
48
- '\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container::-webkit-scrollbar {\n height: 6px;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n border-color: #007bff;\n }\n .pagination-container .previous a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container .next a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n '
49
- )
50
- );
51
- };
52
-
53
- exports.Pagination = Pagination;
@@ -1,46 +0,0 @@
1
- import React__default from 'react';
2
- import ReactPaginate from 'react-paginate';
3
-
4
- var Pagination = function Pagination(props) {
5
- var pageCount = props.pageCount,
6
- _props$marginPagesDis = props.marginPagesDisplayed,
7
- marginPagesDisplayed = _props$marginPagesDis === undefined ? 1 : _props$marginPagesDis,
8
- _props$pageRangeDispl = props.pageRangeDisplayed,
9
- pageRangeDisplayed = _props$pageRangeDispl === undefined ? 5 : _props$pageRangeDispl,
10
- _props$currentPage = props.currentPage,
11
- currentPage = _props$currentPage === undefined ? 1 : _props$currentPage,
12
- _onPageChange = props.onPageChange;
13
-
14
- if (!pageCount || pageCount <= 1) return null;
15
- return React__default.createElement(
16
- React__default.Fragment,
17
- null,
18
- React__default.createElement(ReactPaginate, {
19
- pageCount: pageCount,
20
- marginPagesDisplayed: marginPagesDisplayed,
21
- pageRangeDisplayed: pageRangeDisplayed,
22
- forcePage: currentPage - 1,
23
- onPageChange: function onPageChange(_ref) {
24
- var selected = _ref.selected;
25
- return _onPageChange(selected + 1);
26
- },
27
- hrefBuilder: function hrefBuilder(page) {
28
- return '?page=' + page;
29
- },
30
- previousLabel: '<',
31
- nextLabel: '>',
32
- containerClassName: 'pagination-container',
33
- previousLinkClassName: 'previous',
34
- nextLinkClassName: 'next',
35
- disabledClassName: 'disbaled',
36
- activeClassName: 'active'
37
- }),
38
- React__default.createElement(
39
- 'style',
40
- { jsx: 'true' },
41
- '\n .pagination-container {\n list-style: none;\n padding: 10px 0;\n margin: 0;\n display: flex;\n overflow: auto;\n }\n .pagination-container::before,\n .pagination-container::after {\n content: \'\';\n margin: 0 auto;\n }\n .pagination-container::-webkit-scrollbar {\n height: 6px;\n }\n .pagination-container a {\n padding: 10px;\n border: 1px solid #dee2e6;\n }\n .pagination-container a:hover {\n text-decoration: none;\n background-color: #e9ecef;\n border-color: #dee2e6;\n }\n .pagination-container .active a {\n color: #fff;\n background-color: #666;\n background-color: var(--primary);\n border-color: #007bff;\n }\n .pagination-container .previous a {\n border-radius: 5px 0 0 5px;\n }\n .pagination-container .next a {\n border-radius: 0 5px 5px 0;\n }\n .pagination-container .disbaled a {\n cursor: default;\n }\n '
42
- )
43
- );
44
- };
45
-
46
- export { Pagination as P };