@mjhls/mjh-framework 1.0.1081 → 1.0.1082-404-v4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AlgoliaSearch.js +468 -196
- package/dist/cjs/ArticleProgramLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +1 -1
- package/dist/cjs/ArticleSeriesListing.js +1 -1
- package/dist/cjs/AuthWrapper.js +233 -609
- package/dist/cjs/CEDeckSupabase.js +1 -5
- package/dist/cjs/CMEDeck.js +1 -5
- package/dist/cjs/ConferenceArticleCard.js +1 -1
- package/dist/cjs/ContentCardPaginated.js +1 -1
- package/dist/cjs/DeckContent.js +1 -1
- package/dist/cjs/DeckQueue.js +1 -1
- package/dist/cjs/DeckQueuePaginated.js +1 -1
- package/dist/cjs/EventsDeck.js +2 -2
- package/dist/cjs/ExternalResources.js +4 -4
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +2 -2
- package/dist/cjs/GridContentPaginated.js +2 -2
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +3 -3
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/{ImageSlider-984a697b.js → ImageSlider-7c995858.js} +6 -11
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/MasterDeck.js +1 -1
- package/dist/cjs/MediaSeriesCard.js +3 -3
- package/dist/cjs/MediaSeriesLanding.js +6 -6
- package/dist/cjs/MediaSeriesLandingPaginated.js +6 -6
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +5 -5
- package/dist/cjs/PartnerDetailListingPaginated.js +5 -5
- package/dist/cjs/PodcastsLanding.js +4 -4
- package/dist/cjs/PtceDeck.js +1 -1
- package/dist/cjs/PubSection.js +1 -1
- package/dist/cjs/{PublicationFeature-e945bd55.js → PublicationFeature-4b68e0db.js} +1 -1
- package/dist/cjs/QueueDeckExpanded.js +1 -1
- package/dist/cjs/QueueDeckExpandedPaginated.js +1 -1
- package/dist/cjs/RelatedContent.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +3 -3
- package/dist/cjs/{Tooltip-96fe6ef6.js → Tooltip-b8516cbf.js} +107 -61
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesCard.js +1 -1
- package/dist/cjs/VideoSeriesLandingPage.js +1 -1
- package/dist/cjs/VideoSeriesListing.js +1 -1
- package/dist/cjs/View.js +11 -7
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/{brightcove-react-player-loader.es-4c7825a1.js → brightcove-react-player-loader.es-35faab67.js} +3 -3
- package/dist/cjs/{defineProperty-e0fb52c5.js → defineProperty-19580e93.js} +2 -4
- package/dist/cjs/getQuery.js +0 -1
- package/dist/cjs/getRelatedArticle.js +33 -15
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/{index-4fdedd6a.js → index-171e9e82.js} +233 -14
- package/dist/cjs/index-3177f564.js +1573 -0
- package/dist/cjs/{index-50be6759.js → index-ff83a88b.js} +13 -14
- package/dist/cjs/index.js +8 -9
- package/dist/cjs/{moment-aca40de1.js → moment-f730814d.js} +95 -80
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/esm/AlgoliaSearch.js +468 -196
- package/dist/esm/ArticleProgramLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesLandingPage.js +1 -1
- package/dist/esm/ArticleSeriesListing.js +1 -1
- package/dist/esm/AuthWrapper.js +232 -608
- package/dist/esm/CEDeckSupabase.js +1 -5
- package/dist/esm/CMEDeck.js +1 -5
- package/dist/esm/ConferenceArticleCard.js +1 -1
- package/dist/esm/ContentCardPaginated.js +1 -1
- package/dist/esm/DeckContent.js +1 -1
- package/dist/esm/DeckQueue.js +1 -1
- package/dist/esm/DeckQueuePaginated.js +1 -1
- package/dist/esm/EventsDeck.js +2 -2
- package/dist/esm/ExternalResources.js +4 -4
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +2 -2
- package/dist/esm/GridContentPaginated.js +2 -2
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +3 -3
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/{ImageSlider-9250ddc9.js → ImageSlider-75f7b81a.js} +6 -11
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueLanding.js +3 -3
- package/dist/esm/MasterDeck.js +1 -1
- package/dist/esm/MediaSeriesCard.js +3 -3
- package/dist/esm/MediaSeriesLanding.js +6 -6
- package/dist/esm/MediaSeriesLandingPaginated.js +6 -6
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/Pagination-9fe9f61d.js +1 -1
- package/dist/esm/PartnerDetailListing.js +5 -5
- package/dist/esm/PartnerDetailListingPaginated.js +5 -5
- package/dist/esm/PodcastsLanding.js +4 -4
- package/dist/esm/PtceDeck.js +1 -1
- package/dist/esm/PubSection.js +1 -1
- package/dist/esm/{PublicationFeature-89b7afdb.js → PublicationFeature-6c334891.js} +1 -1
- package/dist/esm/QueueDeckExpanded.js +1 -1
- package/dist/esm/QueueDeckExpandedPaginated.js +1 -1
- package/dist/esm/RelatedContent.js +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -3
- package/dist/esm/{Tooltip-bc98d17e.js → Tooltip-fe0ed92d.js} +108 -62
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -3
- package/dist/esm/VideoSeriesCard.js +1 -1
- package/dist/esm/VideoSeriesLandingPage.js +1 -1
- package/dist/esm/VideoSeriesListing.js +1 -1
- package/dist/esm/View.js +11 -7
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-a2422c4b.js} +3 -3
- package/dist/esm/{defineProperty-23a8f8cd.js → defineProperty-e8022d1e.js} +2 -4
- package/dist/esm/getQuery.js +0 -1
- package/dist/esm/getRelatedArticle.js +34 -16
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{index-de2bb37c.js → index-1d1bbc8c.js} +233 -14
- package/dist/esm/index-4550ef23.js +1571 -0
- package/dist/esm/{index-98ca9cec.js → index-c8d5e72b.js} +13 -14
- package/dist/esm/index.js +8 -9
- package/dist/esm/{moment-bc12cb97.js → moment-48faeb9c.js} +95 -80
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/visibility-sensor-72fd8f8b.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/index-96c331fd.js +0 -1572
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/index-30a6257d.js +0 -1570
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var Router = require('next/router');
|
|
8
8
|
var Head = require('next/head');
|
|
9
9
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-171e9e82.js');
|
|
11
11
|
require('./_commonjsHelpers-06173234.js');
|
|
12
12
|
require('./core.get-iterator-method-5643aa10.js');
|
|
13
13
|
require('./web.dom.iterable-d98303e0.js');
|
|
@@ -29,7 +29,7 @@ require('./index-65621b6c.js');
|
|
|
29
29
|
require('react-dom');
|
|
30
30
|
require('./typeof-220bbf73.js');
|
|
31
31
|
require('./_is-array-54228b29.js');
|
|
32
|
-
require('./brightcove-react-player-loader.es-
|
|
32
|
+
require('./brightcove-react-player-loader.es-35faab67.js');
|
|
33
33
|
require('./_object-to-array-9337ba83.js');
|
|
34
34
|
require('./keys-e982b3fa.js');
|
|
35
35
|
require('./_object-sap-d1978572.js');
|
|
@@ -39,7 +39,7 @@ require('react-bootstrap/Form');
|
|
|
39
39
|
require('react-ga');
|
|
40
40
|
require('./GroupDeck.js');
|
|
41
41
|
require('./smoothscroll-99df7f93.js');
|
|
42
|
-
require('./moment-
|
|
42
|
+
require('./moment-f730814d.js');
|
|
43
43
|
require('./SocialShare.js');
|
|
44
44
|
require('react-share');
|
|
45
45
|
require('./toConsumableArray-d7797c2b.js');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-ff83a88b.js');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var PropTypes = require('prop-types');
|
|
6
6
|
var ReactDOM = require('react-dom');
|
|
@@ -420,6 +420,10 @@ process.env.NODE_ENV !== 'production' ? PropTypes__default["default"].oneOfType(
|
|
|
420
420
|
|
|
421
421
|
var TransitionGroupContext = React__default["default"].createContext(null);
|
|
422
422
|
|
|
423
|
+
var forceReflow = function forceReflow(node) {
|
|
424
|
+
return node.scrollTop;
|
|
425
|
+
};
|
|
426
|
+
|
|
423
427
|
var UNMOUNTED = 'unmounted';
|
|
424
428
|
var EXITED = 'exited';
|
|
425
429
|
var ENTERING = 'entering';
|
|
@@ -639,6 +643,14 @@ var Transition = /*#__PURE__*/function (_React$Component) {
|
|
|
639
643
|
this.cancelNextCallback();
|
|
640
644
|
|
|
641
645
|
if (nextStatus === ENTERING) {
|
|
646
|
+
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
647
|
+
var node = this.props.nodeRef ? this.props.nodeRef.current : ReactDOM__default["default"].findDOMNode(this); // https://github.com/reactjs/react-transition-group/pull/749
|
|
648
|
+
// With unmountOnExit or mountOnEnter, the enter animation should happen at the transition between `exited` and `entering`.
|
|
649
|
+
// To make the animation happen, we have to separate each rendering and avoid being processed as batched.
|
|
650
|
+
|
|
651
|
+
if (node) forceReflow(node);
|
|
652
|
+
}
|
|
653
|
+
|
|
642
654
|
this.performEnter(mounting);
|
|
643
655
|
} else {
|
|
644
656
|
this.performExit();
|
|
@@ -2664,38 +2676,57 @@ var max = Math.max;
|
|
|
2664
2676
|
var min = Math.min;
|
|
2665
2677
|
var round = Math.round;
|
|
2666
2678
|
|
|
2667
|
-
function
|
|
2679
|
+
function getUAString() {
|
|
2680
|
+
var uaData = navigator.userAgentData;
|
|
2681
|
+
|
|
2682
|
+
if (uaData != null && uaData.brands) {
|
|
2683
|
+
return uaData.brands.map(function (item) {
|
|
2684
|
+
return item.brand + "/" + item.version;
|
|
2685
|
+
}).join(' ');
|
|
2686
|
+
}
|
|
2687
|
+
|
|
2688
|
+
return navigator.userAgent;
|
|
2689
|
+
}
|
|
2690
|
+
|
|
2691
|
+
function isLayoutViewport() {
|
|
2692
|
+
return !/^((?!chrome|android).)*safari/i.test(getUAString());
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
function getBoundingClientRect(element, includeScale, isFixedStrategy) {
|
|
2668
2696
|
if (includeScale === void 0) {
|
|
2669
2697
|
includeScale = false;
|
|
2670
2698
|
}
|
|
2671
2699
|
|
|
2672
|
-
|
|
2700
|
+
if (isFixedStrategy === void 0) {
|
|
2701
|
+
isFixedStrategy = false;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
var clientRect = element.getBoundingClientRect();
|
|
2673
2705
|
var scaleX = 1;
|
|
2674
2706
|
var scaleY = 1;
|
|
2675
2707
|
|
|
2676
|
-
if (isHTMLElement(element)
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
// Fallback to 1 in case both values are `0`
|
|
2680
|
-
|
|
2681
|
-
if (offsetWidth > 0) {
|
|
2682
|
-
scaleX = round(rect.width) / offsetWidth || 1;
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
|
-
if (offsetHeight > 0) {
|
|
2686
|
-
scaleY = round(rect.height) / offsetHeight || 1;
|
|
2687
|
-
}
|
|
2708
|
+
if (includeScale && isHTMLElement(element)) {
|
|
2709
|
+
scaleX = element.offsetWidth > 0 ? round(clientRect.width) / element.offsetWidth || 1 : 1;
|
|
2710
|
+
scaleY = element.offsetHeight > 0 ? round(clientRect.height) / element.offsetHeight || 1 : 1;
|
|
2688
2711
|
}
|
|
2689
2712
|
|
|
2713
|
+
var _ref = isElement(element) ? getWindow(element) : window,
|
|
2714
|
+
visualViewport = _ref.visualViewport;
|
|
2715
|
+
|
|
2716
|
+
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
2717
|
+
var x = (clientRect.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
2718
|
+
var y = (clientRect.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
2719
|
+
var width = clientRect.width / scaleX;
|
|
2720
|
+
var height = clientRect.height / scaleY;
|
|
2690
2721
|
return {
|
|
2691
|
-
width:
|
|
2692
|
-
height:
|
|
2693
|
-
top:
|
|
2694
|
-
right:
|
|
2695
|
-
bottom:
|
|
2696
|
-
left:
|
|
2697
|
-
x:
|
|
2698
|
-
y:
|
|
2722
|
+
width: width,
|
|
2723
|
+
height: height,
|
|
2724
|
+
top: y,
|
|
2725
|
+
right: x + width,
|
|
2726
|
+
bottom: y + height,
|
|
2727
|
+
left: x,
|
|
2728
|
+
x: x,
|
|
2729
|
+
y: y
|
|
2699
2730
|
};
|
|
2700
2731
|
}
|
|
2701
2732
|
|
|
@@ -2794,8 +2825,8 @@ function getTrueOffsetParent(element) {
|
|
|
2794
2825
|
|
|
2795
2826
|
|
|
2796
2827
|
function getContainingBlock(element) {
|
|
2797
|
-
var isFirefox =
|
|
2798
|
-
var isIE =
|
|
2828
|
+
var isFirefox = /firefox/i.test(getUAString());
|
|
2829
|
+
var isIE = /Trident/i.test(getUAString());
|
|
2799
2830
|
|
|
2800
2831
|
if (isIE && isHTMLElement(element)) {
|
|
2801
2832
|
// In IE 9, 10 and 11 fixed elements containing block is always established by the viewport
|
|
@@ -2808,6 +2839,10 @@ function getContainingBlock(element) {
|
|
|
2808
2839
|
|
|
2809
2840
|
var currentNode = getParentNode(element);
|
|
2810
2841
|
|
|
2842
|
+
if (isShadowRoot(currentNode)) {
|
|
2843
|
+
currentNode = currentNode.host;
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2811
2846
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2812
2847
|
var css = getComputedStyle$1(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2813
2848
|
// create a containing block.
|
|
@@ -3000,13 +3035,21 @@ function mapToStyles(_ref2) {
|
|
|
3000
3035
|
adaptive = _ref2.adaptive,
|
|
3001
3036
|
roundOffsets = _ref2.roundOffsets,
|
|
3002
3037
|
isFixed = _ref2.isFixed;
|
|
3038
|
+
var _offsets$x = offsets.x,
|
|
3039
|
+
x = _offsets$x === void 0 ? 0 : _offsets$x,
|
|
3040
|
+
_offsets$y = offsets.y,
|
|
3041
|
+
y = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
3003
3042
|
|
|
3004
|
-
var _ref3 =
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3043
|
+
var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
|
|
3044
|
+
x: x,
|
|
3045
|
+
y: y
|
|
3046
|
+
}) : {
|
|
3047
|
+
x: x,
|
|
3048
|
+
y: y
|
|
3049
|
+
};
|
|
3009
3050
|
|
|
3051
|
+
x = _ref3.x;
|
|
3052
|
+
y = _ref3.y;
|
|
3010
3053
|
var hasX = offsets.hasOwnProperty('x');
|
|
3011
3054
|
var hasY = offsets.hasOwnProperty('y');
|
|
3012
3055
|
var sideX = left;
|
|
@@ -3032,7 +3075,7 @@ function mapToStyles(_ref2) {
|
|
|
3032
3075
|
|
|
3033
3076
|
if (placement === top || (placement === left || placement === right) && variation === end) {
|
|
3034
3077
|
sideY = bottom;
|
|
3035
|
-
var offsetY = isFixed && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
3078
|
+
var offsetY = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.height : // $FlowFixMe[prop-missing]
|
|
3036
3079
|
offsetParent[heightProp];
|
|
3037
3080
|
y -= offsetY - popperRect.height;
|
|
3038
3081
|
y *= gpuAcceleration ? 1 : -1;
|
|
@@ -3040,7 +3083,7 @@ function mapToStyles(_ref2) {
|
|
|
3040
3083
|
|
|
3041
3084
|
if (placement === left || (placement === top || placement === bottom) && variation === end) {
|
|
3042
3085
|
sideX = right;
|
|
3043
|
-
var offsetX = isFixed && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
3086
|
+
var offsetX = isFixed && offsetParent === win && win.visualViewport ? win.visualViewport.width : // $FlowFixMe[prop-missing]
|
|
3044
3087
|
offsetParent[widthProp];
|
|
3045
3088
|
x -= offsetX - popperRect.width;
|
|
3046
3089
|
x *= gpuAcceleration ? 1 : -1;
|
|
@@ -3051,6 +3094,17 @@ function mapToStyles(_ref2) {
|
|
|
3051
3094
|
position: position
|
|
3052
3095
|
}, adaptive && unsetSides);
|
|
3053
3096
|
|
|
3097
|
+
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
3098
|
+
x: x,
|
|
3099
|
+
y: y
|
|
3100
|
+
}) : {
|
|
3101
|
+
x: x,
|
|
3102
|
+
y: y
|
|
3103
|
+
};
|
|
3104
|
+
|
|
3105
|
+
x = _ref4.x;
|
|
3106
|
+
y = _ref4.y;
|
|
3107
|
+
|
|
3054
3108
|
if (gpuAcceleration) {
|
|
3055
3109
|
var _Object$assign;
|
|
3056
3110
|
|
|
@@ -3060,9 +3114,9 @@ function mapToStyles(_ref2) {
|
|
|
3060
3114
|
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3061
3115
|
}
|
|
3062
3116
|
|
|
3063
|
-
function computeStyles(
|
|
3064
|
-
var state =
|
|
3065
|
-
options =
|
|
3117
|
+
function computeStyles(_ref5) {
|
|
3118
|
+
var state = _ref5.state,
|
|
3119
|
+
options = _ref5.options;
|
|
3066
3120
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3067
3121
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3068
3122
|
_options$adaptive = options.adaptive,
|
|
@@ -3212,31 +3266,21 @@ function getWindowScrollBarX(element) {
|
|
|
3212
3266
|
return getBoundingClientRect(getDocumentElement(element)).left + getWindowScroll(element).scrollLeft;
|
|
3213
3267
|
}
|
|
3214
3268
|
|
|
3215
|
-
function getViewportRect(element) {
|
|
3269
|
+
function getViewportRect(element, strategy) {
|
|
3216
3270
|
var win = getWindow(element);
|
|
3217
3271
|
var html = getDocumentElement(element);
|
|
3218
3272
|
var visualViewport = win.visualViewport;
|
|
3219
3273
|
var width = html.clientWidth;
|
|
3220
3274
|
var height = html.clientHeight;
|
|
3221
3275
|
var x = 0;
|
|
3222
|
-
var y = 0;
|
|
3223
|
-
// can be obscured underneath it.
|
|
3224
|
-
// Also, `html.clientHeight` adds the bottom bar height in Safari iOS, even
|
|
3225
|
-
// if it isn't open, so if this isn't available, the popper will be detected
|
|
3226
|
-
// to overflow the bottom of the screen too early.
|
|
3276
|
+
var y = 0;
|
|
3227
3277
|
|
|
3228
3278
|
if (visualViewport) {
|
|
3229
3279
|
width = visualViewport.width;
|
|
3230
|
-
height = visualViewport.height;
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
// Feature detection fails in mobile emulation mode in Chrome.
|
|
3235
|
-
// Math.abs(win.innerWidth / visualViewport.scale - visualViewport.width) <
|
|
3236
|
-
// 0.001
|
|
3237
|
-
// Fallback here: "Not Safari" userAgent
|
|
3238
|
-
|
|
3239
|
-
if (!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)) {
|
|
3280
|
+
height = visualViewport.height;
|
|
3281
|
+
var layoutViewport = isLayoutViewport();
|
|
3282
|
+
|
|
3283
|
+
if (layoutViewport || !layoutViewport && strategy === 'fixed') {
|
|
3240
3284
|
x = visualViewport.offsetLeft;
|
|
3241
3285
|
y = visualViewport.offsetTop;
|
|
3242
3286
|
}
|
|
@@ -3330,8 +3374,8 @@ function rectToClientRect(rect) {
|
|
|
3330
3374
|
});
|
|
3331
3375
|
}
|
|
3332
3376
|
|
|
3333
|
-
function getInnerBoundingClientRect(element) {
|
|
3334
|
-
var rect = getBoundingClientRect(element);
|
|
3377
|
+
function getInnerBoundingClientRect(element, strategy) {
|
|
3378
|
+
var rect = getBoundingClientRect(element, false, strategy === 'fixed');
|
|
3335
3379
|
rect.top = rect.top + element.clientTop;
|
|
3336
3380
|
rect.left = rect.left + element.clientLeft;
|
|
3337
3381
|
rect.bottom = rect.top + element.clientHeight;
|
|
@@ -3343,8 +3387,8 @@ function getInnerBoundingClientRect(element) {
|
|
|
3343
3387
|
return rect;
|
|
3344
3388
|
}
|
|
3345
3389
|
|
|
3346
|
-
function getClientRectFromMixedType(element, clippingParent) {
|
|
3347
|
-
return clippingParent === viewport ? rectToClientRect(getViewportRect(element)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3390
|
+
function getClientRectFromMixedType(element, clippingParent, strategy) {
|
|
3391
|
+
return clippingParent === viewport ? rectToClientRect(getViewportRect(element, strategy)) : isElement(clippingParent) ? getInnerBoundingClientRect(clippingParent, strategy) : rectToClientRect(getDocumentRect(getDocumentElement(element)));
|
|
3348
3392
|
} // A "clipping parent" is an overflowable container with the characteristic of
|
|
3349
3393
|
// clipping (or hiding) overflowing elements with a position different from
|
|
3350
3394
|
// `initial`
|
|
@@ -3361,24 +3405,24 @@ function getClippingParents(element) {
|
|
|
3361
3405
|
|
|
3362
3406
|
|
|
3363
3407
|
return clippingParents.filter(function (clippingParent) {
|
|
3364
|
-
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body'
|
|
3408
|
+
return isElement(clippingParent) && contains$1(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
|
|
3365
3409
|
});
|
|
3366
3410
|
} // Gets the maximum area that the element is visible in due to any number of
|
|
3367
3411
|
// clipping parents
|
|
3368
3412
|
|
|
3369
3413
|
|
|
3370
|
-
function getClippingRect(element, boundary, rootBoundary) {
|
|
3414
|
+
function getClippingRect(element, boundary, rootBoundary, strategy) {
|
|
3371
3415
|
var mainClippingParents = boundary === 'clippingParents' ? getClippingParents(element) : [].concat(boundary);
|
|
3372
3416
|
var clippingParents = [].concat(mainClippingParents, [rootBoundary]);
|
|
3373
3417
|
var firstClippingParent = clippingParents[0];
|
|
3374
3418
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3375
|
-
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3419
|
+
var rect = getClientRectFromMixedType(element, clippingParent, strategy);
|
|
3376
3420
|
accRect.top = max(rect.top, accRect.top);
|
|
3377
3421
|
accRect.right = min(rect.right, accRect.right);
|
|
3378
3422
|
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3379
3423
|
accRect.left = max(rect.left, accRect.left);
|
|
3380
3424
|
return accRect;
|
|
3381
|
-
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3425
|
+
}, getClientRectFromMixedType(element, firstClippingParent, strategy));
|
|
3382
3426
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
3383
3427
|
clippingRect.height = clippingRect.bottom - clippingRect.top;
|
|
3384
3428
|
clippingRect.x = clippingRect.left;
|
|
@@ -3459,6 +3503,8 @@ function detectOverflow(state, options) {
|
|
|
3459
3503
|
var _options = options,
|
|
3460
3504
|
_options$placement = _options.placement,
|
|
3461
3505
|
placement = _options$placement === void 0 ? state.placement : _options$placement,
|
|
3506
|
+
_options$strategy = _options.strategy,
|
|
3507
|
+
strategy = _options$strategy === void 0 ? state.strategy : _options$strategy,
|
|
3462
3508
|
_options$boundary = _options.boundary,
|
|
3463
3509
|
boundary = _options$boundary === void 0 ? clippingParents : _options$boundary,
|
|
3464
3510
|
_options$rootBoundary = _options.rootBoundary,
|
|
@@ -3473,7 +3519,7 @@ function detectOverflow(state, options) {
|
|
|
3473
3519
|
var altContext = elementContext === popper ? reference : popper;
|
|
3474
3520
|
var popperRect = state.rects.popper;
|
|
3475
3521
|
var element = state.elements[altBoundary ? altContext : elementContext];
|
|
3476
|
-
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary);
|
|
3522
|
+
var clippingClientRect = getClippingRect(isElement(element) ? element : element.contextElement || getDocumentElement(state.elements.popper), boundary, rootBoundary, strategy);
|
|
3477
3523
|
var referenceClientRect = getBoundingClientRect(state.elements.reference);
|
|
3478
3524
|
var popperOffsets = computeOffsets({
|
|
3479
3525
|
reference: referenceClientRect,
|
|
@@ -3991,7 +4037,7 @@ function getCompositeRect(elementOrVirtualElement, offsetParent, isFixed) {
|
|
|
3991
4037
|
var isOffsetParentAnElement = isHTMLElement(offsetParent);
|
|
3992
4038
|
var offsetParentIsScaled = isHTMLElement(offsetParent) && isElementScaled(offsetParent);
|
|
3993
4039
|
var documentElement = getDocumentElement(offsetParent);
|
|
3994
|
-
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled);
|
|
4040
|
+
var rect = getBoundingClientRect(elementOrVirtualElement, offsetParentIsScaled, isFixed);
|
|
3995
4041
|
var scroll = {
|
|
3996
4042
|
scrollLeft: 0,
|
|
3997
4043
|
scrollTop: 0
|
package/dist/cjs/VerticalHero.js
CHANGED
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-96b44364.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-171e9e82.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./core.get-iterator-method-5643aa10.js');
|
|
@@ -32,7 +32,7 @@ require('./index-65621b6c.js');
|
|
|
32
32
|
require('react-dom');
|
|
33
33
|
require('./typeof-220bbf73.js');
|
|
34
34
|
require('./_is-array-54228b29.js');
|
|
35
|
-
require('./brightcove-react-player-loader.es-
|
|
35
|
+
require('./brightcove-react-player-loader.es-35faab67.js');
|
|
36
36
|
require('./_object-to-array-9337ba83.js');
|
|
37
37
|
require('./keys-e982b3fa.js');
|
|
38
38
|
require('./_object-sap-d1978572.js');
|
|
@@ -40,7 +40,7 @@ require('react-bootstrap/Modal');
|
|
|
40
40
|
require('react-ga');
|
|
41
41
|
require('./GroupDeck.js');
|
|
42
42
|
require('./smoothscroll-99df7f93.js');
|
|
43
|
-
require('./moment-
|
|
43
|
+
require('./moment-f730814d.js');
|
|
44
44
|
require('./SocialShare.js');
|
|
45
45
|
require('next/head');
|
|
46
46
|
require('react-share');
|
|
@@ -4,7 +4,7 @@ var _typeof = require('./typeof-220bbf73.js');
|
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var index = require('./index-65621b6c.js');
|
|
6
6
|
var urlFor = require('./urlFor.js');
|
|
7
|
-
var moment = require('./moment-
|
|
7
|
+
var moment = require('./moment-f730814d.js');
|
|
8
8
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
9
9
|
require('prop-types');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var asyncToGenerator = require('./asyncToGenerator-65df6bf8.js');
|
|
4
4
|
var _typeof = require('./typeof-220bbf73.js');
|
|
5
5
|
var React = require('react');
|
|
6
|
-
var moment = require('./moment-
|
|
6
|
+
var moment = require('./moment-f730814d.js');
|
|
7
7
|
var index = require('./index-187c967e.js');
|
|
8
8
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
9
9
|
var MasterDeck = require('./MasterDeck.js');
|
|
@@ -7,7 +7,7 @@ var index = require('./index-7435b964.js');
|
|
|
7
7
|
var Container = require('react-bootstrap/Container');
|
|
8
8
|
var visibilitySensor = require('./visibility-sensor-56020df6.js');
|
|
9
9
|
var index_esm = require('./index.esm-d81454e7.js');
|
|
10
|
-
var moment = require('./moment-
|
|
10
|
+
var moment = require('./moment-f730814d.js');
|
|
11
11
|
var Router = require('next/router');
|
|
12
12
|
var YoutubeGroup = require('./YoutubeGroup.js');
|
|
13
13
|
var debounce = require('./debounce-d4a2369b.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -8,7 +8,7 @@ var Head = require('next/head');
|
|
|
8
8
|
var Router = require('next/router');
|
|
9
9
|
var stringify = require('./stringify-f7a37a8d.js');
|
|
10
10
|
var toConsumableArray = require('./toConsumableArray-d7797c2b.js');
|
|
11
|
-
var moment = require('./moment-
|
|
11
|
+
var moment = require('./moment-f730814d.js');
|
|
12
12
|
var BlockContent = require('./BlockContent-96b44364.js');
|
|
13
13
|
var main = require('./main-ae8472f3.js');
|
|
14
14
|
require('react-bootstrap/Dropdown');
|
|
@@ -17,7 +17,7 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-56020df6.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-171e9e82.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-086a8319.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-5b954783.js');
|
|
@@ -51,7 +51,7 @@ require('react-bootstrap');
|
|
|
51
51
|
require('./index-187c967e.js');
|
|
52
52
|
require('./Beam.js');
|
|
53
53
|
require('./Segment.js');
|
|
54
|
-
require('./brightcove-react-player-loader.es-
|
|
54
|
+
require('./brightcove-react-player-loader.es-35faab67.js');
|
|
55
55
|
require('./_object-to-array-9337ba83.js');
|
|
56
56
|
require('react-bootstrap/Modal');
|
|
57
57
|
require('react-ga');
|
|
@@ -895,7 +895,7 @@ var RelevantTopics = function RelevantTopics(props) {
|
|
|
895
895
|
{ key: relatedLink.label, className: 'related-link' },
|
|
896
896
|
React__default["default"].createElement(
|
|
897
897
|
'a',
|
|
898
|
-
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
898
|
+
{ className: 'related-links recomm', style: { color: 'blue' }, href: relatedLink.href },
|
|
899
899
|
relatedLink.label
|
|
900
900
|
),
|
|
901
901
|
React__default["default"].createElement(
|
|
@@ -1286,8 +1286,10 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1286
1286
|
if (cp.excludeRelatedContents) {
|
|
1287
1287
|
return null;
|
|
1288
1288
|
}
|
|
1289
|
-
|
|
1290
|
-
var
|
|
1289
|
+
// const cp_url = cpModificationRequired ? getContentPlacementUrl(cp) : cp.path
|
|
1290
|
+
var cp_url = cpModificationRequired ? getTargeting.getContentPlacementUrl(cp) : cp.parent && !cp.path.includes('/') ? '/' + cp.parent + '/' + cp.path : '/' + cp.path;
|
|
1291
|
+
var href = '' + cp_url;
|
|
1292
|
+
console.log("hrwef", href);
|
|
1291
1293
|
relatedLinks = [].concat(toConsumableArray._toConsumableArray(relatedLinks), [{ label: cp.name, href: href }]);
|
|
1292
1294
|
});
|
|
1293
1295
|
}
|
|
@@ -1308,7 +1310,7 @@ var Article = React__default["default"].memo(React.forwardRef(function (props, r
|
|
|
1308
1310
|
{ key: index, className: 'related-link' },
|
|
1309
1311
|
React__default["default"].createElement(
|
|
1310
1312
|
'a',
|
|
1311
|
-
{ className: 'related-links', style: { color: 'blue' }, href: relatedLink.href },
|
|
1313
|
+
{ className: 'related-links article', style: { color: 'blue' }, href: relatedLink.href },
|
|
1312
1314
|
relatedLink.label
|
|
1313
1315
|
),
|
|
1314
1316
|
React__default["default"].createElement(
|
|
@@ -2383,6 +2385,8 @@ var View = function View(props) {
|
|
|
2383
2385
|
var title = _props$article2.title,
|
|
2384
2386
|
seriesShareOptions = _props$article2.seriesShareOptions;
|
|
2385
2387
|
|
|
2388
|
+
console.log(props);
|
|
2389
|
+
|
|
2386
2390
|
var _useState = React.useState(0),
|
|
2387
2391
|
_useState2 = slicedToArray._slicedToArray(_useState, 2),
|
|
2388
2392
|
currentPage = _useState2[0],
|
package/dist/cjs/YahooHero.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
|
-
var moment = require('./moment-
|
|
4
|
+
var moment = require('./moment-f730814d.js');
|
|
5
5
|
var urlFor = require('./urlFor.js');
|
|
6
6
|
var entities = require('./entities-df1aed86.js');
|
|
7
7
|
var AuthorComponent = require('./AuthorComponent-7d00f6d5.js');
|
|
@@ -570,7 +570,7 @@ proto.createDocumentFragment = function createDocumentFragment() {
|
|
|
570
570
|
};
|
|
571
571
|
|
|
572
572
|
proto.createEvent = function createEvent(family) {
|
|
573
|
-
return new event(
|
|
573
|
+
return new event()
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
proto.createComment = function createComment(data) {
|
|
@@ -631,7 +631,7 @@ if (typeof window !== "undefined") {
|
|
|
631
631
|
|
|
632
632
|
var window_1 = win;
|
|
633
633
|
|
|
634
|
-
/*! @name @brightcove/react-player-loader @version 1.4.
|
|
634
|
+
/*! @name @brightcove/react-player-loader @version 1.4.2 @license Apache-2.0 */
|
|
635
635
|
|
|
636
636
|
function _extends() {
|
|
637
637
|
_extends = Object.assign || function (target) {
|
|
@@ -2079,7 +2079,7 @@ function (_React$Component) {
|
|
|
2079
2079
|
|
|
2080
2080
|
_proto.updatePlayer = function updatePlayer(changes) {
|
|
2081
2081
|
// No player exists, player is disposed, or not using the catalog
|
|
2082
|
-
if (!this.player || !this.player.el()) {
|
|
2082
|
+
if (!this.player || !this.player.el || !this.player.el()) {
|
|
2083
2083
|
return;
|
|
2084
2084
|
} // If the player is using the catalog plugin, we _may_ populate this
|
|
2085
2085
|
// variable with an object.
|
|
@@ -39,8 +39,7 @@ function _asyncToGenerator(fn) {
|
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
module.exports = _asyncToGenerator;
|
|
43
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
42
|
+
module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
44
43
|
});
|
|
45
44
|
|
|
46
45
|
var _asyncToGenerator = _commonjsHelpers.unwrapExports(asyncToGenerator);
|
|
@@ -61,8 +60,7 @@ function _defineProperty(obj, key, value) {
|
|
|
61
60
|
return obj;
|
|
62
61
|
}
|
|
63
62
|
|
|
64
|
-
module.exports = _defineProperty;
|
|
65
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
63
|
+
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
66
64
|
});
|
|
67
65
|
|
|
68
66
|
var _defineProperty = _commonjsHelpers.unwrapExports(defineProperty);
|
package/dist/cjs/getQuery.js
CHANGED
|
@@ -7,7 +7,6 @@ var getQuery = function getQuery(type) {
|
|
|
7
7
|
|
|
8
8
|
//Added feature to include additional conditions and parameters for site level operations
|
|
9
9
|
//Site level conditions should start with && (logical AND), and site level params should end with , (comma) in order to execute query
|
|
10
|
-
|
|
11
10
|
switch (type) {
|
|
12
11
|
// quiz video series and slideshow
|
|
13
12
|
case 'related':
|
|
@@ -31,7 +31,6 @@ var serialize_1 = serialize;
|
|
|
31
31
|
|
|
32
32
|
var decode = decodeURIComponent;
|
|
33
33
|
var encode = encodeURIComponent;
|
|
34
|
-
var pairSplitRegExp = /; */;
|
|
35
34
|
|
|
36
35
|
/**
|
|
37
36
|
* RegExp to match field-content in RFC 7230 sec 3.2
|
|
@@ -62,28 +61,29 @@ function parse$1(str, options) {
|
|
|
62
61
|
|
|
63
62
|
var obj = {};
|
|
64
63
|
var opt = options || {};
|
|
65
|
-
var pairs = str.split(
|
|
64
|
+
var pairs = str.split(';');
|
|
66
65
|
var dec = opt.decode || decode;
|
|
67
66
|
|
|
68
67
|
for (var i = 0; i < pairs.length; i++) {
|
|
69
68
|
var pair = pairs[i];
|
|
70
|
-
var
|
|
69
|
+
var index = pair.indexOf('=');
|
|
71
70
|
|
|
72
71
|
// skip things that don't look like key=value
|
|
73
|
-
if (
|
|
72
|
+
if (index < 0) {
|
|
74
73
|
continue;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
|
-
var key = pair.
|
|
78
|
-
var val = pair.substr(++eq_idx, pair.length).trim();
|
|
79
|
-
|
|
80
|
-
// quoted values
|
|
81
|
-
if ('"' == val[0]) {
|
|
82
|
-
val = val.slice(1, -1);
|
|
83
|
-
}
|
|
76
|
+
var key = pair.substring(0, index).trim();
|
|
84
77
|
|
|
85
78
|
// only assign once
|
|
86
79
|
if (undefined == obj[key]) {
|
|
80
|
+
var val = pair.substring(index + 1, pair.length).trim();
|
|
81
|
+
|
|
82
|
+
// quoted values
|
|
83
|
+
if (val[0] === '"') {
|
|
84
|
+
val = val.slice(1, -1);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
87
|
obj[key] = tryDecode(val, dec);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -227,9 +227,11 @@ function isNonEmptyString(str) {
|
|
|
227
227
|
|
|
228
228
|
function parseString(setCookieValue, options) {
|
|
229
229
|
var parts = setCookieValue.split(";").filter(isNonEmptyString);
|
|
230
|
-
|
|
231
|
-
var
|
|
232
|
-
var
|
|
230
|
+
|
|
231
|
+
var nameValuePairStr = parts.shift();
|
|
232
|
+
var parsed = parseNameValuePair(nameValuePairStr);
|
|
233
|
+
var name = parsed.name;
|
|
234
|
+
var value = parsed.value;
|
|
233
235
|
|
|
234
236
|
options = options
|
|
235
237
|
? Object.assign({}, defaultParseOptions, options)
|
|
@@ -247,7 +249,7 @@ function parseString(setCookieValue, options) {
|
|
|
247
249
|
}
|
|
248
250
|
|
|
249
251
|
var cookie = {
|
|
250
|
-
name: name,
|
|
252
|
+
name: name,
|
|
251
253
|
value: value,
|
|
252
254
|
};
|
|
253
255
|
|
|
@@ -273,6 +275,22 @@ function parseString(setCookieValue, options) {
|
|
|
273
275
|
return cookie;
|
|
274
276
|
}
|
|
275
277
|
|
|
278
|
+
function parseNameValuePair(nameValuePairStr) {
|
|
279
|
+
// Parses name-value-pair according to rfc6265bis draft
|
|
280
|
+
|
|
281
|
+
var name = "";
|
|
282
|
+
var value = "";
|
|
283
|
+
var nameValueArr = nameValuePairStr.split("=");
|
|
284
|
+
if (nameValueArr.length > 1) {
|
|
285
|
+
name = nameValueArr.shift();
|
|
286
|
+
value = nameValueArr.join("="); // everything after the first =, joined by a "=" if there was more than one part
|
|
287
|
+
} else {
|
|
288
|
+
value = nameValuePairStr;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
return { name: name, value: value };
|
|
292
|
+
}
|
|
293
|
+
|
|
276
294
|
function parse(input, options) {
|
|
277
295
|
options = options
|
|
278
296
|
? Object.assign({}, defaultParseOptions, options)
|