@mjhls/mjh-framework 1.0.664-beta.0 → 1.0.664

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 (149) hide show
  1. package/dist/cjs/AD.js +1 -1
  2. package/dist/cjs/AD300x250.js +3 -3
  3. package/dist/cjs/AD300x250x600.js +3 -3
  4. package/dist/cjs/AD728x90.js +4 -4
  5. package/dist/cjs/ADFloatingFooter.js +2 -2
  6. package/dist/cjs/ADGutter.js +2 -2
  7. package/dist/cjs/ADSkyscraper.js +2 -2
  8. package/dist/cjs/ADSponsoredResources.js +2 -2
  9. package/dist/cjs/ADWebcast.js +2 -2
  10. package/dist/cjs/ADWelcome.js +2 -2
  11. package/dist/cjs/AdSlot.js +2 -2
  12. package/dist/cjs/AdSlotsProvider.js +1 -1
  13. package/dist/cjs/ArticleCarousel.js +3 -3
  14. package/dist/cjs/ArticleSeriesListing.js +4 -4
  15. package/dist/cjs/Auth.js +507 -256
  16. package/dist/cjs/{BlockContent-091a991f.js → BlockContent-88f69acd.js} +1 -1
  17. package/dist/cjs/CMEDeck.js +5 -5
  18. package/dist/cjs/Column3.js +4 -4
  19. package/dist/cjs/ConferenceArticleCard.js +2 -2
  20. package/dist/cjs/DeckContent.js +7 -7
  21. package/dist/cjs/DeckQueue.js +6 -6
  22. package/dist/cjs/{Dfp-f6a18ed2.js → Dfp-b2bc3b97.js} +1 -1
  23. package/dist/cjs/EventsDeck.js +5 -5
  24. package/dist/cjs/ExternalResources.js +7 -7
  25. package/dist/cjs/Feature.js +3 -3
  26. package/dist/cjs/ForbesHero.js +2 -2
  27. package/dist/cjs/GridContent.js +10 -10
  28. package/dist/cjs/GridHero.js +2 -2
  29. package/dist/cjs/GroupDeck.js +1 -1
  30. package/dist/cjs/HamMagazine.js +4 -4
  31. package/dist/cjs/Hero.js +1 -1
  32. package/dist/cjs/HorizontalHero.js +2 -2
  33. package/dist/cjs/IssueContentDeck.js +2 -2
  34. package/dist/cjs/IssueDeck.js +2 -2
  35. package/dist/cjs/IssueLanding.js +7 -7
  36. package/dist/cjs/LeftNav.js +2 -2
  37. package/dist/cjs/MasterDeck.js +8 -8
  38. package/dist/cjs/NavMagazine.js +4 -4
  39. package/dist/cjs/NavNative.js +3 -3
  40. package/dist/cjs/OncliveHero.js +2 -2
  41. package/dist/cjs/OncliveLargeHero.js +2 -2
  42. package/dist/cjs/PartnerDetailListing.js +15 -1212
  43. package/dist/cjs/PublicationDeck.js +1 -1
  44. package/dist/cjs/QueueDeckExpanded.js +9 -9
  45. package/dist/cjs/RecentNews.js +2 -2
  46. package/dist/cjs/RelatedContent.js +2 -2
  47. package/dist/cjs/{SocialSearchComponent-81a50f81.js → SocialSearchComponent-962b1344.js} +5 -5
  48. package/dist/cjs/TaxonomyCard.js +2 -2
  49. package/dist/cjs/TemplateNormal.js +3 -3
  50. package/dist/cjs/ThumbnailCard.js +1 -1
  51. package/dist/cjs/Ustream.js +2 -2
  52. package/dist/cjs/VerticalHero.js +2 -2
  53. package/dist/cjs/VideoSeriesCard.js +2 -2
  54. package/dist/cjs/VideoSeriesListing.js +3 -3
  55. package/dist/cjs/View.js +70 -227
  56. package/dist/cjs/YahooHero.js +2 -2
  57. package/dist/cjs/YoutubeGroup.js +1 -1
  58. package/dist/cjs/getQuery.js +2 -2
  59. package/dist/cjs/getRelatedArticle.js +90 -5
  60. package/dist/cjs/getSerializers.js +6 -6
  61. package/dist/cjs/{getTargeting-9af0ef69.js → getTargeting-fee8c429.js} +2 -2
  62. package/dist/cjs/getTargeting.js +1 -1
  63. package/dist/cjs/{index-fa8ed292.js → index-2d0a4911.js} +34 -27
  64. package/dist/cjs/{index-3294d3bc.js → index-5be2866f.js} +1 -1
  65. package/dist/cjs/{index-bc3e2d5c.js → index-6f1ee5f0.js} +462 -450
  66. package/dist/cjs/{index-be0c82be.js → index-b5eb3ff8.js} +20 -19
  67. package/dist/cjs/{index.es-9110add6.js → index.es-ab3f2690.js} +3 -1
  68. package/dist/cjs/index.js +16 -15
  69. package/dist/cjs/{main-a4cb15bb.js → main-b6c96c8d.js} +67 -36
  70. package/dist/cjs/{moment-575fe24c.js → moment-66a6a284.js} +1 -1
  71. package/dist/cjs/urlFor.js +1 -1
  72. package/dist/esm/AD.js +1 -1
  73. package/dist/esm/AD300x250.js +3 -3
  74. package/dist/esm/AD300x250x600.js +3 -3
  75. package/dist/esm/AD728x90.js +4 -4
  76. package/dist/esm/ADFloatingFooter.js +2 -2
  77. package/dist/esm/ADGutter.js +2 -2
  78. package/dist/esm/ADSkyscraper.js +2 -2
  79. package/dist/esm/ADSponsoredResources.js +2 -2
  80. package/dist/esm/ADWebcast.js +2 -2
  81. package/dist/esm/ADWelcome.js +2 -2
  82. package/dist/esm/AdSlot.js +2 -2
  83. package/dist/esm/AdSlotsProvider.js +1 -1
  84. package/dist/esm/ArticleCarousel.js +1 -1
  85. package/dist/esm/ArticleSeriesListing.js +4 -4
  86. package/dist/esm/Auth.js +499 -248
  87. package/dist/esm/{BlockContent-e9b4ddcf.js → BlockContent-a614acdf.js} +1 -1
  88. package/dist/esm/CMEDeck.js +5 -5
  89. package/dist/esm/Column3.js +4 -4
  90. package/dist/esm/ConferenceArticleCard.js +2 -2
  91. package/dist/esm/DeckContent.js +7 -7
  92. package/dist/esm/DeckQueue.js +6 -6
  93. package/dist/esm/{Dfp-96b49def.js → Dfp-8a8fca18.js} +1 -1
  94. package/dist/esm/EventsDeck.js +5 -5
  95. package/dist/esm/ExternalResources.js +7 -7
  96. package/dist/esm/Feature.js +3 -3
  97. package/dist/esm/ForbesHero.js +2 -2
  98. package/dist/esm/GridContent.js +10 -10
  99. package/dist/esm/GridHero.js +2 -2
  100. package/dist/esm/GroupDeck.js +1 -1
  101. package/dist/esm/HamMagazine.js +4 -4
  102. package/dist/esm/Hero.js +1 -1
  103. package/dist/esm/HorizontalHero.js +2 -2
  104. package/dist/esm/IssueContentDeck.js +2 -2
  105. package/dist/esm/IssueDeck.js +2 -2
  106. package/dist/esm/IssueLanding.js +7 -7
  107. package/dist/esm/LeftNav.js +2 -2
  108. package/dist/esm/MasterDeck.js +8 -8
  109. package/dist/esm/NavMagazine.js +4 -4
  110. package/dist/esm/NavNative.js +3 -3
  111. package/dist/esm/OncliveHero.js +2 -2
  112. package/dist/esm/OncliveLargeHero.js +2 -2
  113. package/dist/esm/PartnerDetailListing.js +13 -1209
  114. package/dist/esm/PublicationDeck.js +1 -1
  115. package/dist/esm/QueueDeckExpanded.js +9 -9
  116. package/dist/esm/RecentNews.js +2 -2
  117. package/dist/esm/RelatedContent.js +2 -2
  118. package/dist/esm/{SocialSearchComponent-55960ec4.js → SocialSearchComponent-75527dfe.js} +5 -5
  119. package/dist/esm/TaxonomyCard.js +2 -2
  120. package/dist/esm/TemplateNormal.js +3 -3
  121. package/dist/esm/ThumbnailCard.js +1 -1
  122. package/dist/esm/Ustream.js +2 -2
  123. package/dist/esm/VerticalHero.js +2 -2
  124. package/dist/esm/VideoSeriesCard.js +2 -2
  125. package/dist/esm/VideoSeriesListing.js +3 -3
  126. package/dist/esm/View.js +41 -198
  127. package/dist/esm/YahooHero.js +2 -2
  128. package/dist/esm/YoutubeGroup.js +1 -1
  129. package/dist/esm/getQuery.js +2 -2
  130. package/dist/esm/getRelatedArticle.js +93 -4
  131. package/dist/esm/getSerializers.js +6 -6
  132. package/dist/esm/{index-6d49c905.js → index-3a33f7d6.js} +462 -450
  133. package/dist/esm/{index-73819142.js → index-51a80699.js} +20 -19
  134. package/dist/esm/{index-0e45a0b2.js → index-93ec3c59.js} +34 -27
  135. package/dist/esm/{index-ef6d5dcf.js → index-d2f90501.js} +1 -1
  136. package/dist/esm/{index.es-29c1cef5.js → index.es-938a3a58.js} +3 -1
  137. package/dist/esm/index.js +14 -13
  138. package/dist/esm/{main-5d1e4bd3.js → main-0465b2a0.js} +65 -34
  139. package/dist/esm/{moment-e2f9b20c.js → moment-12415288.js} +1 -1
  140. package/dist/esm/urlFor.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/cjs/getRelatedArticle-606b1d0b.js +0 -447
  143. package/dist/cjs/index-bd6c9f56.js +0 -211
  144. package/dist/esm/getRelatedArticle-80e67416.js +0 -443
  145. package/dist/esm/index-db3bb315.js +0 -207
  146. /package/dist/cjs/{ADInfeed-388ec28a.js → ADInfeed-9735aff2.js} +0 -0
  147. /package/dist/cjs/{ADlgInfeed-5548ff47.js → ADlgInfeed-6bd11848.js} +0 -0
  148. /package/dist/esm/{ADInfeed-eae0af19.js → ADInfeed-9140aa7d.js} +0 -0
  149. /package/dist/esm/{ADlgInfeed-2f4c7a7c.js → ADlgInfeed-7656ecd1.js} +0 -0
@@ -58,35 +58,35 @@ function parseSource(source) {
58
58
  if (typeof source === 'string' && isUrl(source)) {
59
59
  // Someone passed an existing image url?
60
60
  image = {
61
- asset: { _ref: urlToId(source) }
61
+ asset: { _ref: urlToId(source) },
62
62
  };
63
63
  }
64
64
  else if (typeof source === 'string') {
65
65
  // Just an asset id
66
66
  image = {
67
- asset: { _ref: source }
67
+ asset: { _ref: source },
68
68
  };
69
69
  }
70
70
  else if (isRef(source)) {
71
71
  // We just got passed an asset directly
72
72
  image = {
73
- asset: source
73
+ asset: source,
74
74
  };
75
75
  }
76
76
  else if (isAsset(source)) {
77
77
  // If we were passed an image asset document
78
78
  image = {
79
79
  asset: {
80
- _ref: source._id || ''
81
- }
80
+ _ref: source._id || '',
81
+ },
82
82
  };
83
83
  }
84
84
  else if (isAssetStub(source)) {
85
85
  // If we were passed a partial asset (`url`, but no `_id`)
86
86
  image = {
87
87
  asset: {
88
- _ref: urlToId(source.asset.url)
89
- }
88
+ _ref: urlToId(source.asset.url),
89
+ },
90
90
  };
91
91
  }
92
92
  else if (typeof source.asset === 'object') {
@@ -127,7 +127,7 @@ function applyDefaults(image) {
127
127
  left: 0,
128
128
  top: 0,
129
129
  bottom: 0,
130
- right: 0
130
+ right: 0,
131
131
  };
132
132
  }
133
133
  if (!result.hotspot) {
@@ -135,7 +135,7 @@ function applyDefaults(image) {
135
135
  x: 0.5,
136
136
  y: 0.5,
137
137
  height: 1.0,
138
- width: 1.0
138
+ width: 1.0,
139
139
  };
140
140
  }
141
141
  return result;
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
182
182
  ['crop', 'crop'],
183
183
  ['saturation', 'sat'],
184
184
  ['auto', 'auto'],
185
- ['dpr', 'dpr']
185
+ ['dpr', 'dpr'],
186
186
  ];
187
187
  function urlForImage(options) {
188
188
  var spec = __assign({}, (options || {}));
@@ -201,7 +201,7 @@ function urlForImage(options) {
201
201
  left: cropLeft,
202
202
  top: cropTop,
203
203
  width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
204
- height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
204
+ height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop),
205
205
  };
206
206
  // Compute hot spot rect in terms of pixel coordinates
207
207
  var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
@@ -212,7 +212,7 @@ function urlForImage(options) {
212
212
  left: hotSpotCenterX - hotSpotHorizontalRadius,
213
213
  top: hotSpotCenterY - hotSpotVerticalRadius,
214
214
  right: hotSpotCenterX + hotSpotHorizontalRadius,
215
- bottom: hotSpotCenterY + hotSpotVerticalRadius
215
+ bottom: hotSpotCenterY + hotSpotVerticalRadius,
216
216
  };
217
217
  // If irrelevant, or if we are requested to: don't perform crop/fit based on
218
218
  // the crop/hotspot.
@@ -294,7 +294,7 @@ function fit(source, spec) {
294
294
  left: Math.round(left),
295
295
  top: Math.round(top_2),
296
296
  width: Math.round(width),
297
- height: Math.round(height)
297
+ height: Math.round(height),
298
298
  };
299
299
  }
300
300
  else {
@@ -316,13 +316,13 @@ function fit(source, spec) {
316
316
  left: Math.max(0, Math.floor(left)),
317
317
  top: Math.max(0, Math.floor(top_3)),
318
318
  width: Math.round(width),
319
- height: Math.round(height)
319
+ height: Math.round(height),
320
320
  };
321
321
  }
322
322
  return {
323
323
  width: imgWidth,
324
324
  height: imgHeight,
325
- rect: cropRect
325
+ rect: cropRect,
326
326
  };
327
327
  }
328
328
 
@@ -375,11 +375,12 @@ function urlBuilder(options) {
375
375
  var client = options;
376
376
  if (isSanityClient(client)) {
377
377
  // Inherit config from client
378
- var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
378
+ var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
379
+ var apiHost = apiUrl || 'https://api.sanity.io';
379
380
  return new ImageUrlBuilder(null, {
380
381
  baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
381
382
  projectId: projectId,
382
- dataset: dataset
383
+ dataset: dataset,
383
384
  });
384
385
  }
385
386
  // Or just accept the options as given
@@ -392,7 +393,7 @@ var ImageUrlBuilder = /** @class */ (function () {
392
393
  ? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
393
394
  }
394
395
  ImageUrlBuilder.prototype.withOptions = function (options) {
395
- var baseUrl = options.baseUrl || '';
396
+ var baseUrl = options.baseUrl || this.options.baseUrl;
396
397
  var newOptions = { baseUrl: baseUrl };
397
398
  for (var key in options) {
398
399
  if (options.hasOwnProperty(key)) {
@@ -520,7 +521,7 @@ var ImageUrlBuilder = /** @class */ (function () {
520
521
  ImageUrlBuilder.prototype.url = function () {
521
522
  return urlForImage_1$1.default(this.options);
522
523
  };
523
- // Synonym for url()
524
+ // Alias for url()
524
525
  ImageUrlBuilder.prototype.toString = function () {
525
526
  return this.url();
526
527
  };
@@ -722,6 +722,8 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
722
722
 
723
723
  return new Promise(function (resolve) {
724
724
  _this3.getGoogletag().then(function (googletag) {
725
+ _this3.configureInitialOptions(googletag);
726
+
725
727
  slotsToInitialize.forEach(function (currentSlotId) {
726
728
  registeredSlots[currentSlotId].loading = false;
727
729
  googletag.cmd.push(function () {
@@ -785,14 +787,25 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
785
787
  });
786
788
  });
787
789
  },
788
- configureOptions: function configureOptions(googletag) {
790
+ // configure those gpt parameters that need to be set before pubsads service
791
+ // initialization.
792
+ configureInitialOptions: function configureInitialOptions(googletag) {
789
793
  var _this4 = this;
790
794
 
795
+ googletag.cmd.push(function () {
796
+ if (_this4.disableInitialLoadIsEnabled()) {
797
+ googletag.pubads().disableInitialLoad();
798
+ }
799
+ });
800
+ },
801
+ configureOptions: function configureOptions(googletag) {
802
+ var _this5 = this;
803
+
791
804
  googletag.cmd.push(function () {
792
805
  var pubadsService = googletag.pubads();
793
- pubadsService.setRequestNonPersonalizedAds(_this4.personalizedAdsEnabled() ? 0 : 1);
806
+ pubadsService.setRequestNonPersonalizedAds(_this5.personalizedAdsEnabled() ? 0 : 1);
794
807
 
795
- var targetingArguments = _this4.getTargetingArguments(); // set global targetting arguments
808
+ var targetingArguments = _this5.getTargetingArguments(); // set global targetting arguments
796
809
 
797
810
 
798
811
  Object.keys(targetingArguments).forEach(function (varName) {
@@ -801,34 +814,28 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
801
814
  }
802
815
  }); // set global adSense attributes
803
816
 
804
- var adSenseAttributes = _this4.getAdSenseAttributes();
817
+ var adSenseAttributes = _this5.getAdSenseAttributes();
805
818
 
806
819
  Object.keys(adSenseAttributes).forEach(function (key) {
807
820
  pubadsService.set(key, adSenseAttributes[key]);
808
821
  });
809
822
 
810
- if (_this4.lazyLoadIsEnabled()) {
811
- var args = [];
812
-
813
- var config = _this4.getLazyLoadConfig();
823
+ if (_this5.lazyLoadIsEnabled()) {
824
+ var config = _this5.getLazyLoadConfig();
814
825
 
815
- if (config !== null) {
816
- args.push(config);
826
+ if (config) {
827
+ pubadsService.enableLazyLoad(config);
828
+ } else {
829
+ pubadsService.enableLazyLoad();
817
830
  }
818
-
819
- pubadsService.enableLazyLoad.call(args);
820
831
  }
821
832
 
822
- if (_this4.singleRequestIsEnabled()) {
833
+ if (_this5.singleRequestIsEnabled()) {
823
834
  pubadsService.enableSingleRequest();
824
835
  }
825
836
 
826
- if (_this4.disableInitialLoadIsEnabled()) {
827
- pubadsService.disableInitialLoad();
828
- }
829
-
830
- if (_this4.collapseEmptyDivs === true || _this4.collapseEmptyDivs === false) {
831
- pubadsService.collapseEmptyDivs(_this4.collapseEmptyDivs);
837
+ if (_this5.collapseEmptyDivs === true || _this5.collapseEmptyDivs === false) {
838
+ pubadsService.collapseEmptyDivs(_this5.collapseEmptyDivs);
832
839
  }
833
840
  });
834
841
  },
@@ -870,10 +877,10 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
870
877
  }
871
878
  },
872
879
  gptRefreshAds: function gptRefreshAds(slots) {
873
- var _this5 = this;
880
+ var _this6 = this;
874
881
 
875
882
  return this.getGoogletag().then(function (googletag) {
876
- _this5.configureOptions(googletag);
883
+ _this6.configureOptions(googletag);
877
884
 
878
885
  googletag.cmd.push(function () {
879
886
  var pubadsService = googletag.pubads();
@@ -884,14 +891,14 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
884
891
  });
885
892
  },
886
893
  reload: function reload() {
887
- var _this6 = this;
894
+ var _this7 = this;
888
895
 
889
896
  return this.destroyGPTSlots.apply(this, arguments).then(function () {
890
- return _this6.load();
897
+ return _this7.load();
891
898
  });
892
899
  },
893
900
  destroyGPTSlots: function destroyGPTSlots() {
894
- var _this7 = this;
901
+ var _this8 = this;
895
902
 
896
903
  for (var _len4 = arguments.length, slotsToDestroy = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
897
904
  slotsToDestroy[_key4] = arguments[_key4];
@@ -911,7 +918,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
911
918
  slots.push(slot);
912
919
  }
913
920
 
914
- _this7.getGoogletag().then(function (googletag) {
921
+ _this8.getGoogletag().then(function (googletag) {
915
922
  googletag.cmd.push(function () {
916
923
  if (managerAlreadyInitialized === true) {
917
924
  if (slotsToDestroy.length > 0) {
@@ -934,7 +941,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
934
941
  });
935
942
  },
936
943
  registerSlot: function registerSlot(_ref) {
937
- var _this8 = this;
944
+ var _this9 = this;
938
945
 
939
946
  var slotId = _ref.slotId,
940
947
  dfpNetworkId = _ref.dfpNetworkId,
@@ -973,7 +980,7 @@ var DFPManager = Object.assign(new EventEmitter.EventEmitter().setMaxListeners(0
973
980
  gptSlot = slot.gptSlot;
974
981
 
975
982
  if (loading === false && !gptSlot) {
976
- _this8.load(slotId);
983
+ _this9.load(slotId);
977
984
  }
978
985
  }
979
986
  });
@@ -1,5 +1,5 @@
1
1
  import { c as createCommonjsModule, a as commonjsGlobal, g as getCjsExportFromNamespace } from './_commonjsHelpers-0c4b6f40.js';
2
- import { m as moment } from './moment-e2f9b20c.js';
2
+ import { m as moment } from './moment-12415288.js';
3
3
 
4
4
  var momentTimezone = createCommonjsModule(function (module) {
5
5
  //! moment-timezone.js
@@ -263,6 +263,9 @@ var InfiniteScroll = /** @class */ (function (_super) {
263
263
  _this.dragging = false;
264
264
  if (_this.state.pullToRefreshThresholdBreached) {
265
265
  _this.props.refreshFunction && _this.props.refreshFunction();
266
+ _this.setState({
267
+ pullToRefreshThresholdBreached: false,
268
+ });
266
269
  }
267
270
  requestAnimationFrame(function () {
268
271
  // this._infScroll
@@ -369,7 +372,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
369
372
  // update state when new data was sent in
370
373
  this.setState({
371
374
  showLoader: false,
372
- pullToRefreshThresholdBreached: false,
373
375
  });
374
376
  };
375
377
  InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
package/dist/esm/index.js CHANGED
@@ -14,22 +14,22 @@ import './web.dom.iterable-8956f9a5.js';
14
14
  import './typeof-08f2c380.js';
15
15
  import './_is-array-49698029.js';
16
16
  import 'react';
17
- import './index-0e45a0b2.js';
17
+ import './index-93ec3c59.js';
18
18
  import 'prop-types';
19
19
  import 'react-bootstrap/Container';
20
20
  import 'react-bootstrap/Row';
21
21
  import 'react-bootstrap/Col';
22
22
  import 'react-bootstrap/Card';
23
- import './moment-e2f9b20c.js';
23
+ import './moment-12415288.js';
24
24
  import 'next/router';
25
25
  import './isSymbol-807e927e.js';
26
26
  import './debounce-1a993acf.js';
27
- import './index.es-29c1cef5.js';
27
+ import './index.es-938a3a58.js';
28
28
  import 'react-dom';
29
29
  import './visibility-sensor-0baa4eea.js';
30
- import './index-73819142.js';
30
+ import './index-51a80699.js';
31
31
  import './index-5f9f807a.js';
32
- import './main-5d1e4bd3.js';
32
+ import './main-0465b2a0.js';
33
33
  import './entities-7cc3bf45.js';
34
34
  import './stringify-008c8802.js';
35
35
  import './slicedToArray-7021e5df.js';
@@ -37,10 +37,10 @@ import './asyncToGenerator-7c654f36.js';
37
37
  import './_set-species-cede29f8.js';
38
38
  export { B as Beam, S as Segment } from './beam-681a9749.js';
39
39
  export { default as AdSlot } from './AdSlot.js';
40
- import './ADInfeed-eae0af19.js';
40
+ import './ADInfeed-9140aa7d.js';
41
41
  export { default as DeckContent } from './DeckContent.js';
42
42
  import './lodash-17fdfebb.js';
43
- import './ADlgInfeed-2f4c7a7c.js';
43
+ import './ADlgInfeed-7656ecd1.js';
44
44
  import './getContentCategory-15dcc413.js';
45
45
  import './get-5ee14cda.js';
46
46
  export { default as AD } from './AD.js';
@@ -49,7 +49,7 @@ export { default as GridContent } from './GridContent.js';
49
49
  export { default as DeckQueue } from './DeckQueue.js';
50
50
  import 'react-bootstrap/Media';
51
51
  export { default as ThumbnailCard } from './ThumbnailCard.js';
52
- import './BlockContent-e9b4ddcf.js';
52
+ import './BlockContent-a614acdf.js';
53
53
  import './react-social-icons-a7d5c5c7.js';
54
54
  export { default as TaxonomyCard } from './TaxonomyCard.js';
55
55
  export { default as RolesDeck } from './RolesDeck.js';
@@ -72,10 +72,10 @@ import './defineProperty-b798470d.js';
72
72
  export { default as EventsDeck } from './EventsDeck.js';
73
73
  import 'react-bootstrap/Spinner';
74
74
  import 'react-bootstrap/Form';
75
- import './index-ef6d5dcf.js';
75
+ import './index-d2f90501.js';
76
76
  import './js.cookie-6874175c.js';
77
77
  export { default as CMEDeck } from './CMEDeck.js';
78
- export { g as getSerializers } from './index-6d49c905.js';
78
+ export { g as getSerializers } from './index-3a33f7d6.js';
79
79
  import './util-7700fc59.js';
80
80
  import './brightcove-react-player-loader.es-83f53e4e.js';
81
81
  import 'react-bootstrap/Pagination';
@@ -106,7 +106,7 @@ import './NavFooter-e27bd93b.js';
106
106
  import './index.esm-73e847d2.js';
107
107
  export { default as SocialIcons } from './SocialIcons.js';
108
108
  import 'react-bootstrap/FormControl';
109
- import './SocialSearchComponent-55960ec4.js';
109
+ import './SocialSearchComponent-75527dfe.js';
110
110
  export { default as NavMagazine } from './NavMagazine.js';
111
111
  export { NavNative } from './NavNative.js';
112
112
  export { default as Search } from './Search.js';
@@ -153,9 +153,9 @@ export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
153
153
  export { default as KMTracker } from './KMTracker.js';
154
154
  export { default as getSeriesDetail } from './getSeriesDetail.js';
155
155
  export { default as SetCookie } from './SetCookie.js';
156
- import './index-db3bb315.js';
157
- export { g as getRelatedArticle } from './getRelatedArticle-80e67416.js';
156
+ import 'nookies';
158
157
  export { default as getQuery } from './getQuery.js';
158
+ export { default as getRelatedArticle } from './getRelatedArticle.js';
159
159
  export { default as Auth } from './Auth.js';
160
160
  import 'swr';
161
161
  import 'passport-local';
@@ -165,4 +165,5 @@ export { default as View } from './View.js';
165
165
  export { default as getKeywords } from './getKeywords.js';
166
166
  export { default as urlFor } from './urlFor.js';
167
167
  import './style-inject.es-1f59c1d0.js';
168
+ import 'react-twitter-embed';
168
169
  export { default as PartnerDetailListing } from './PartnerDetailListing.js';
@@ -48,7 +48,7 @@ var getNavigatorInstance = function getNavigatorInstance() {
48
48
  };
49
49
  var isIOS13Check = function isIOS13Check(type) {
50
50
  var nav = getNavigatorInstance();
51
- return nav && (nav.platform.includes(type) || nav.platform === 'MacIntel' && nav.maxTouchPoints > 1 && !window.MSStream);
51
+ return nav && nav.platform && (nav.platform.indexOf(type) !== -1 || nav.platform === 'MacIntel' && nav.maxTouchPoints > 1 && !window.MSStream);
52
52
  };
53
53
 
54
54
  function _typeof(obj) {
@@ -219,12 +219,15 @@ var BROWSER_TYPES = {
219
219
  EDGE: "Edge",
220
220
  CHROMIUM: "Chromium",
221
221
  IE: 'IE',
222
- MOBILE_SAFARI: "Mobile Safari"
222
+ MOBILE_SAFARI: "Mobile Safari",
223
+ EDGE_CHROMIUM: "Edge Chromium"
223
224
  };
224
225
  var OS_TYPES = {
225
226
  IOS: 'iOS',
226
227
  ANDROID: "Android",
227
- WINDOWS_PHONE: "Windows Phone"
228
+ WINDOWS_PHONE: "Windows Phone",
229
+ WINDOWS: 'Windows',
230
+ MAC_OS: 'Mac OS'
228
231
  };
229
232
  var initialData = {
230
233
  isMobile: false,
@@ -377,6 +380,14 @@ var isMobileAndTabletType = function isMobileAndTabletType() {
377
380
  }
378
381
  };
379
382
 
383
+ var isEdgeChromiumType = function isEdgeChromiumType() {
384
+ if (os.name === OS_TYPES.WINDOWS && os.version === '10') {
385
+ return typeof ua === 'string' && ua.indexOf('Edg/') !== -1;
386
+ }
387
+
388
+ return false;
389
+ };
390
+
380
391
  var isSmartTVType = function isSmartTVType() {
381
392
  return device.type === DEVICE_TYPES.SMART_TV;
382
393
  };
@@ -397,6 +408,14 @@ var isAndroidType = function isAndroidType() {
397
408
  return os.name === OS_TYPES.ANDROID;
398
409
  };
399
410
 
411
+ var isWindowsType = function isWindowsType() {
412
+ return os.name === OS_TYPES.WINDOWS;
413
+ };
414
+
415
+ var isMacOsType = function isMacOsType() {
416
+ return os.name === OS_TYPES.MAC_OS;
417
+ };
418
+
400
419
  var isWinPhoneType = function isWinPhoneType() {
401
420
  return os.name === OS_TYPES.WINDOWS_PHONE;
402
421
  };
@@ -444,7 +463,7 @@ var isIEType = function isIEType() {
444
463
  var isElectronType = function isElectronType() {
445
464
  var nav = getNavigatorInstance();
446
465
  var ua = nav && nav.userAgent.toLowerCase();
447
- return typeof ua === 'string' ? ua.includes('electron') : false;
466
+ return typeof ua === 'string' ? /electron/.test(ua) : false;
448
467
  };
449
468
 
450
469
  var getIOS13 = function getIOS13() {
@@ -511,15 +530,15 @@ var getDeviceType = function getDeviceType() {
511
530
  var isSmartTV = isSmartTVType();
512
531
  var isConsole = isConsoleType();
513
532
  var isWearable = isWearableType();
514
- var isMobileSafari = isMobileSafariType();
533
+ var isMobileSafari = isMobileSafariType() || getIPad13();
515
534
  var isChromium = isChromiumType();
516
- var isMobile = isMobileAndTabletType();
535
+ var isMobile = isMobileAndTabletType() || getIPad13();
517
536
  var isMobileOnly = isMobileType();
518
- var isTablet = isTabletType();
537
+ var isTablet = isTabletType() || getIPad13();
519
538
  var isBrowser = isBrowserType();
520
539
  var isAndroid = isAndroidType();
521
540
  var isWinPhone = isWinPhoneType();
522
- var isIOS = isIOSType();
541
+ var isIOS = isIOSType() || getIPad13();
523
542
  var isChrome = isChromeType();
524
543
  var isFirefox = isFirefoxType();
525
544
  var isSafari = isSafariType();
@@ -535,7 +554,7 @@ var mobileModel = getMobileModel();
535
554
  var engineName = getEngineName();
536
555
  var engineVersion = getEngineVersion();
537
556
  var getUA = getUseragent();
538
- var isEdge = isEdgeType();
557
+ var isEdge = isEdgeType() || isEdgeChromiumType();
539
558
  var isYandex = isYandexType();
540
559
  var deviceType = getDeviceType();
541
560
  var isIOS13 = getIOS13();
@@ -543,6 +562,10 @@ var isIPad13 = getIPad13();
543
562
  var isIPhone13 = getIphone13();
544
563
  var isIPod13 = getIPod13();
545
564
  var isElectron = isElectronType();
565
+ var isEdgeChromium = isEdgeChromiumType();
566
+ var isLegacyEdge = isEdgeType();
567
+ var isWindows = isWindowsType();
568
+ var isMacOs = isMacOsType();
546
569
 
547
570
  var AndroidView = function AndroidView(_ref) {
548
571
  var renderWithFragment = _ref.renderWithFragment,
@@ -772,6 +795,7 @@ exports.isChrome = isChrome;
772
795
  exports.isChromium = isChromium;
773
796
  exports.isConsole = isConsole;
774
797
  exports.isEdge = isEdge;
798
+ exports.isEdgeChromium = isEdgeChromium;
775
799
  exports.isElectron = isElectron;
776
800
  exports.isFirefox = isFirefox;
777
801
  exports.isIE = isIE;
@@ -780,6 +804,8 @@ exports.isIOS13 = isIOS13;
780
804
  exports.isIPad13 = isIPad13;
781
805
  exports.isIPhone13 = isIPhone13;
782
806
  exports.isIPod13 = isIPod13;
807
+ exports.isLegacyEdge = isLegacyEdge;
808
+ exports.isMacOs = isMacOs;
783
809
  exports.isMobile = isMobile;
784
810
  exports.isMobileOnly = isMobileOnly;
785
811
  exports.isMobileSafari = isMobileSafari;
@@ -789,6 +815,7 @@ exports.isSmartTV = isSmartTV;
789
815
  exports.isTablet = isTablet;
790
816
  exports.isWearable = isWearable;
791
817
  exports.isWinPhone = isWinPhone;
818
+ exports.isWindows = isWindows;
792
819
  exports.isYandex = isYandex;
793
820
  exports.mobileModel = mobileModel;
794
821
  exports.mobileVendor = mobileVendor;
@@ -824,28 +851,32 @@ var main_23 = main.isChrome;
824
851
  var main_24 = main.isChromium;
825
852
  var main_25 = main.isConsole;
826
853
  var main_26 = main.isEdge;
827
- var main_27 = main.isElectron;
828
- var main_28 = main.isFirefox;
829
- var main_29 = main.isIE;
830
- var main_30 = main.isIOS;
831
- var main_31 = main.isIOS13;
832
- var main_32 = main.isIPad13;
833
- var main_33 = main.isIPhone13;
834
- var main_34 = main.isIPod13;
835
- var main_35 = main.isMobile;
836
- var main_36 = main.isMobileOnly;
837
- var main_37 = main.isMobileSafari;
838
- var main_38 = main.isOpera;
839
- var main_39 = main.isSafari;
840
- var main_40 = main.isSmartTV;
841
- var main_41 = main.isTablet;
842
- var main_42 = main.isWearable;
843
- var main_43 = main.isWinPhone;
844
- var main_44 = main.isYandex;
845
- var main_45 = main.mobileModel;
846
- var main_46 = main.mobileVendor;
847
- var main_47 = main.osName;
848
- var main_48 = main.osVersion;
849
- var main_49 = main.withOrientationChange;
850
-
851
- export { main_37 as a, main_16 as b, main_35 as c, main_30 as d, main_36 as m };
854
+ var main_27 = main.isEdgeChromium;
855
+ var main_28 = main.isElectron;
856
+ var main_29 = main.isFirefox;
857
+ var main_30 = main.isIE;
858
+ var main_31 = main.isIOS;
859
+ var main_32 = main.isIOS13;
860
+ var main_33 = main.isIPad13;
861
+ var main_34 = main.isIPhone13;
862
+ var main_35 = main.isIPod13;
863
+ var main_36 = main.isLegacyEdge;
864
+ var main_37 = main.isMacOs;
865
+ var main_38 = main.isMobile;
866
+ var main_39 = main.isMobileOnly;
867
+ var main_40 = main.isMobileSafari;
868
+ var main_41 = main.isOpera;
869
+ var main_42 = main.isSafari;
870
+ var main_43 = main.isSmartTV;
871
+ var main_44 = main.isTablet;
872
+ var main_45 = main.isWearable;
873
+ var main_46 = main.isWinPhone;
874
+ var main_47 = main.isWindows;
875
+ var main_48 = main.isYandex;
876
+ var main_49 = main.mobileModel;
877
+ var main_50 = main.mobileVendor;
878
+ var main_51 = main.osName;
879
+ var main_52 = main.osVersion;
880
+ var main_53 = main.withOrientationChange;
881
+
882
+ export { main_40 as a, main_16 as b, main_38 as c, main_31 as d, main_39 as m };
@@ -5612,7 +5612,7 @@ var moment = createCommonjsModule(function (module, exports) {
5612
5612
 
5613
5613
  //! moment.js
5614
5614
 
5615
- hooks.version = '2.26.0';
5615
+ hooks.version = '2.27.0';
5616
5616
 
5617
5617
  setHookCallback(createLocal);
5618
5618
 
@@ -1,5 +1,5 @@
1
1
  import './_commonjsHelpers-0c4b6f40.js';
2
- import { i as imageUrlBuilder } from './index-73819142.js';
2
+ import { i as imageUrlBuilder } from './index-51a80699.js';
3
3
 
4
4
  // Sanity image auto formating
5
5
  function urlFor(client, source) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.664-beta.0",
3
+ "version": "1.0.664",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",