@mjhls/mjh-framework 1.0.866-d4d665.2 → 1.0.866-youtube-group-v1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD300x250.js +2 -2
- package/dist/cjs/AD300x250x600.js +2 -2
- package/dist/cjs/AD728x90.js +3 -3
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AdSlotsProvider.js +2 -2
- package/dist/cjs/AlgoliaSearch.js +18 -36
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +5 -5
- package/dist/cjs/ArticleSeriesLandingPage.js +5 -5
- package/dist/cjs/ArticleSeriesListing.js +3 -3
- package/dist/cjs/Auth.js +41 -6
- package/dist/cjs/AuthWrapper.js +228 -189
- package/dist/cjs/CMEDeck.js +3 -3
- package/dist/cjs/Column3.js +3 -3
- package/dist/cjs/ConferenceArticleCard.js +16 -16
- package/dist/cjs/DeckContent.js +13 -13
- package/dist/cjs/DeckQueue.js +4 -4
- package/dist/cjs/EventsDeck.js +21 -21
- package/dist/cjs/ExternalResources.js +5 -5
- package/dist/cjs/Feature.js +2 -2
- package/dist/cjs/ForbesHero.js +1 -1
- package/dist/cjs/GridContent.js +8 -8
- package/dist/cjs/GridHero.js +1 -1
- package/dist/cjs/HamMagazine.js +15 -15
- package/dist/cjs/HighlightenVideo.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +4 -4
- package/dist/cjs/HorizontalHero.js +1 -1
- package/dist/cjs/IssueContentDeck.js +1 -1
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +36 -36
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +13 -13
- package/dist/cjs/MediaSeriesLanding.js +149 -193
- package/dist/cjs/NavMagazine.js +14 -14
- package/dist/cjs/NavNative.js +12 -12
- package/dist/cjs/OncliveHero.js +1 -1
- package/dist/cjs/OncliveLargeHero.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +114 -138
- package/dist/cjs/PubSection.js +5 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +9 -9
- package/dist/cjs/RelatedContent.js +29 -29
- package/dist/cjs/RelatedTopicsDropdown.js +10 -10
- package/dist/cjs/SeriesListingDeck.js +3 -3
- package/dist/cjs/{SeriesSlider-d38767ae.js → SeriesSlider-0d3bf265.js} +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-9a9d6f8c.js → SocialSearchComponent-19548e2a.js} +3 -3
- package/dist/cjs/TaxonomyDescription.js +4 -4
- package/dist/cjs/TemplateNormal.js +2 -2
- package/dist/cjs/Ustream.js +2 -2
- package/dist/cjs/VerticalHero.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesCard.js +2 -2
- package/dist/cjs/VideoSeriesLandingPage.js +5 -5
- package/dist/cjs/VideoSeriesListing.js +3 -3
- package/dist/cjs/View.js +14 -14
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +33 -14
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-5c98aec7.js} +4 -3
- package/dist/cjs/getRelatedArticle.js +62 -126
- package/dist/cjs/getSerializers.js +4 -4
- package/dist/cjs/{getTargeting-21103688.js → getTargeting-a9a871f0.js} +9 -9
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/{index-5be2866f.js → index-6367b7bf.js} +16 -17
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index-4990e6c9.js → index-f83a102a.js} +22 -22
- package/dist/cjs/{index.es-13533f24.js → index.es-f3e47207.js} +20 -4
- package/dist/cjs/index.js +12 -12
- package/dist/cjs/{main-11ec04d2.js → main-7b5e57b0.js} +32 -28
- package/dist/cjs/{moment-66a6a284.js → moment-ca3bd9fb.js} +10 -8
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/esm/AD300x250.js +2 -2
- package/dist/esm/AD300x250x600.js +2 -2
- package/dist/esm/AD728x90.js +3 -3
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AdSlotsProvider.js +2 -2
- package/dist/esm/AlgoliaSearch.js +17 -35
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +5 -5
- package/dist/esm/ArticleSeriesLandingPage.js +5 -5
- package/dist/esm/ArticleSeriesListing.js +3 -3
- package/dist/esm/Auth.js +42 -7
- package/dist/esm/AuthWrapper.js +228 -189
- package/dist/esm/CMEDeck.js +3 -3
- package/dist/esm/Column3.js +3 -3
- package/dist/esm/ConferenceArticleCard.js +16 -16
- package/dist/esm/DeckContent.js +13 -13
- package/dist/esm/DeckQueue.js +4 -4
- package/dist/esm/EventsDeck.js +21 -21
- package/dist/esm/ExternalResources.js +5 -5
- package/dist/esm/Feature.js +2 -2
- package/dist/esm/ForbesHero.js +1 -1
- package/dist/esm/GridContent.js +8 -8
- package/dist/esm/GridHero.js +1 -1
- package/dist/esm/HamMagazine.js +15 -15
- package/dist/esm/HighlightenVideo.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +4 -4
- package/dist/esm/HorizontalHero.js +1 -1
- package/dist/esm/IssueContentDeck.js +1 -1
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +36 -36
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +13 -13
- package/dist/esm/MediaSeriesLanding.js +149 -193
- package/dist/esm/NavMagazine.js +14 -14
- package/dist/esm/NavNative.js +12 -12
- package/dist/esm/OncliveHero.js +1 -1
- package/dist/esm/OncliveLargeHero.js +1 -1
- package/dist/esm/PartnerDetailListing.js +115 -139
- package/dist/esm/PubSection.js +5 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +9 -9
- package/dist/esm/RelatedContent.js +29 -29
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/SeriesListingDeck.js +3 -3
- package/dist/esm/{SeriesSlider-b8cc1baa.js → SeriesSlider-7d89f4d9.js} +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-c54d43cb.js → SocialSearchComponent-47815365.js} +3 -3
- package/dist/esm/TaxonomyDescription.js +4 -4
- package/dist/esm/TemplateNormal.js +2 -2
- package/dist/esm/Ustream.js +2 -2
- package/dist/esm/VerticalHero.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +5 -5
- package/dist/esm/VideoSeriesCard.js +2 -2
- package/dist/esm/VideoSeriesLandingPage.js +5 -5
- package/dist/esm/VideoSeriesListing.js +3 -3
- package/dist/esm/View.js +14 -14
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +33 -14
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-4abff0b1.js} +4 -3
- package/dist/esm/getRelatedArticle.js +62 -126
- package/dist/esm/getSerializers.js +4 -4
- package/dist/esm/{getTargeting-88d69971.js → getTargeting-bd800589.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-bec35c6c.js → index-82fea143.js} +22 -22
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-d2f90501.js → index-c00b0bbb.js} +16 -17
- package/dist/esm/{index.es-7dda2f0a.js → index.es-c6222053.js} +20 -4
- package/dist/esm/index.js +12 -12
- package/dist/esm/{main-aef58dbc.js → main-747e7d25.js} +32 -28
- package/dist/esm/{moment-12415288.js → moment-b6f49411.js} +10 -8
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/package.json +111 -111
- /package/dist/cjs/{ADInfeed-799275aa.js → ADInfeed-25d48cc2.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-591d014e.js → ADlgInfeed-a535a768.js} +0 -0
- /package/dist/esm/{ADInfeed-4b8902ae.js → ADInfeed-56a3db8b.js} +0 -0
- /package/dist/esm/{ADlgInfeed-5193b48f.js → ADlgInfeed-53edb995.js} +0 -0
|
@@ -21,18 +21,18 @@ import 'react-bootstrap/Container';
|
|
|
21
21
|
import 'react-bootstrap/Row';
|
|
22
22
|
import 'react-bootstrap/Col';
|
|
23
23
|
import 'react-bootstrap/Card';
|
|
24
|
-
import { m as moment } from './moment-
|
|
24
|
+
import { m as moment } from './moment-b6f49411.js';
|
|
25
25
|
import 'next/router';
|
|
26
26
|
import './isSymbol-1981418f.js';
|
|
27
27
|
import './debounce-9207d8ee.js';
|
|
28
28
|
import './toNumber-2f7a84cd.js';
|
|
29
|
-
import './index.es-
|
|
29
|
+
import './index.es-c6222053.js';
|
|
30
30
|
import ReactDOM from 'react-dom';
|
|
31
31
|
import './visibility-sensor-f40c2564.js';
|
|
32
32
|
import './index-51a80699.js';
|
|
33
33
|
import urlFor from './urlFor.js';
|
|
34
34
|
import { L as LazyLoad } from './index-6c12bdd5.js';
|
|
35
|
-
import './main-
|
|
35
|
+
import './main-747e7d25.js';
|
|
36
36
|
import './entities-7cc3bf45.js';
|
|
37
37
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
38
38
|
import './stringify-4330ccdc.js';
|
|
@@ -40,9 +40,9 @@ import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-fc1
|
|
|
40
40
|
import './Segment.js';
|
|
41
41
|
import './Beam.js';
|
|
42
42
|
import './AdSlot.js';
|
|
43
|
-
import './ADInfeed-
|
|
43
|
+
import './ADInfeed-56a3db8b.js';
|
|
44
44
|
import './lodash-ec8c6b48.js';
|
|
45
|
-
import './ADlgInfeed-
|
|
45
|
+
import './ADlgInfeed-53edb995.js';
|
|
46
46
|
import 'react-bootstrap/Button';
|
|
47
47
|
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
48
48
|
import './index-c7e2ac95.js';
|
|
@@ -51,9 +51,9 @@ import './GroupDeck.js';
|
|
|
51
51
|
import 'react-bootstrap';
|
|
52
52
|
import './iconBase-602d52fe.js';
|
|
53
53
|
import './index.esm-3fdda599.js';
|
|
54
|
-
import { g as getSerializers } from './index-
|
|
54
|
+
import { g as getSerializers } from './index-82fea143.js';
|
|
55
55
|
import './util-7700fc59.js';
|
|
56
|
-
import './brightcove-react-player-loader.es-
|
|
56
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
57
57
|
import 'next/head';
|
|
58
58
|
import 'react-share';
|
|
59
59
|
import './SocialShare.js';
|
|
@@ -65,7 +65,7 @@ import 'react-bootstrap/Tooltip';
|
|
|
65
65
|
import 'react-bootstrap/Popover';
|
|
66
66
|
import MasterDeck from './MasterDeck.js';
|
|
67
67
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
68
|
-
import { _ as _objectWithoutPropertiesLoose,
|
|
68
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
69
69
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
70
70
|
import Link from 'next/link';
|
|
71
71
|
|
|
@@ -177,7 +177,7 @@ function useUncontrolled(props, config) {
|
|
|
177
177
|
function _inheritsLoose(subClass, superClass) {
|
|
178
178
|
subClass.prototype = Object.create(superClass.prototype);
|
|
179
179
|
subClass.prototype.constructor = subClass;
|
|
180
|
-
|
|
180
|
+
subClass.__proto__ = superClass;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
var ThemeContext = React.createContext({});
|
|
@@ -1846,20 +1846,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1846
1846
|
/**
|
|
1847
1847
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1848
1848
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1849
|
-
*
|
|
1850
|
-
*
|
|
1851
|
-
*
|
|
1852
|
-
* ```tsx
|
|
1853
|
-
* const { set, clear } = useTimeout();
|
|
1854
|
-
* const [hello, showHello] = useState(false);
|
|
1855
|
-
* //Display hello after 5 seconds
|
|
1856
|
-
* set(() => showHello(true), 5000);
|
|
1857
|
-
* return (
|
|
1858
|
-
* <div className="App">
|
|
1859
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1860
|
-
* </div>
|
|
1861
|
-
* );
|
|
1862
|
-
* ```
|
|
1863
1849
|
*/
|
|
1864
1850
|
|
|
1865
1851
|
|
|
@@ -2618,50 +2604,21 @@ function getBasePlacement(placement) {
|
|
|
2618
2604
|
return placement.split('-')[0];
|
|
2619
2605
|
}
|
|
2620
2606
|
|
|
2621
|
-
|
|
2622
|
-
var rect = element.getBoundingClientRect();
|
|
2623
|
-
return {
|
|
2624
|
-
width: rect.width,
|
|
2625
|
-
height: rect.height,
|
|
2626
|
-
top: rect.top,
|
|
2627
|
-
right: rect.right,
|
|
2628
|
-
bottom: rect.bottom,
|
|
2629
|
-
left: rect.left,
|
|
2630
|
-
x: rect.left,
|
|
2631
|
-
y: rect.top
|
|
2632
|
-
};
|
|
2633
|
-
}
|
|
2634
|
-
|
|
2607
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2635
2608
|
// means it doesn't take into account transforms.
|
|
2636
|
-
|
|
2637
2609
|
function getLayoutRect(element) {
|
|
2638
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2639
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2640
|
-
|
|
2641
|
-
var width = element.offsetWidth;
|
|
2642
|
-
var height = element.offsetHeight;
|
|
2643
|
-
|
|
2644
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2645
|
-
width = clientRect.width;
|
|
2646
|
-
}
|
|
2647
|
-
|
|
2648
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2649
|
-
height = clientRect.height;
|
|
2650
|
-
}
|
|
2651
|
-
|
|
2652
2610
|
return {
|
|
2653
2611
|
x: element.offsetLeft,
|
|
2654
2612
|
y: element.offsetTop,
|
|
2655
|
-
width:
|
|
2656
|
-
height:
|
|
2613
|
+
width: element.offsetWidth,
|
|
2614
|
+
height: element.offsetHeight
|
|
2657
2615
|
};
|
|
2658
2616
|
}
|
|
2659
2617
|
|
|
2660
|
-
|
|
2661
|
-
if (node == null) {
|
|
2662
|
-
return window;
|
|
2663
|
-
}
|
|
2618
|
+
/*:: import type { Window } from '../types'; */
|
|
2664
2619
|
|
|
2620
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2621
|
+
function getWindow(node) {
|
|
2665
2622
|
if (node.toString() !== '[object Window]') {
|
|
2666
2623
|
var ownerDocument = node.ownerDocument;
|
|
2667
2624
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2670,22 +2627,26 @@ function getWindow(node) {
|
|
|
2670
2627
|
return node;
|
|
2671
2628
|
}
|
|
2672
2629
|
|
|
2630
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2631
|
+
Element); */
|
|
2632
|
+
|
|
2673
2633
|
function isElement(node) {
|
|
2674
2634
|
var OwnElement = getWindow(node).Element;
|
|
2675
2635
|
return node instanceof OwnElement || node instanceof Element;
|
|
2676
2636
|
}
|
|
2637
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2638
|
+
HTMLElement); */
|
|
2639
|
+
|
|
2677
2640
|
|
|
2678
2641
|
function isHTMLElement(node) {
|
|
2679
2642
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2680
2643
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2681
2644
|
}
|
|
2645
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2646
|
+
ShadowRoot); */
|
|
2682
2647
|
|
|
2683
|
-
function isShadowRoot(node) {
|
|
2684
|
-
// IE 11 has no ShadowRoot
|
|
2685
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2686
|
-
return false;
|
|
2687
|
-
}
|
|
2688
2648
|
|
|
2649
|
+
function isShadowRoot(node) {
|
|
2689
2650
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2690
2651
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2691
2652
|
}
|
|
@@ -2702,7 +2663,7 @@ function contains(parent, child) {
|
|
|
2702
2663
|
do {
|
|
2703
2664
|
if (next && parent.isSameNode(next)) {
|
|
2704
2665
|
return true;
|
|
2705
|
-
} // $FlowFixMe
|
|
2666
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2706
2667
|
|
|
2707
2668
|
|
|
2708
2669
|
next = next.parentNode || next.host;
|
|
@@ -2726,9 +2687,8 @@ function isTableElement(element) {
|
|
|
2726
2687
|
}
|
|
2727
2688
|
|
|
2728
2689
|
function getDocumentElement(element) {
|
|
2729
|
-
// $FlowFixMe
|
|
2730
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2731
|
-
element.document) || window.document).documentElement;
|
|
2690
|
+
// $FlowFixMe: assume body is always available
|
|
2691
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2732
2692
|
}
|
|
2733
2693
|
|
|
2734
2694
|
function getParentNode(element) {
|
|
@@ -2736,13 +2696,12 @@ function getParentNode(element) {
|
|
|
2736
2696
|
return element;
|
|
2737
2697
|
}
|
|
2738
2698
|
|
|
2739
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2740
|
-
// $FlowFixMe[incompatible-return]
|
|
2741
|
-
// $FlowFixMe[prop-missing]
|
|
2699
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2742
2700
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2743
|
-
element.parentNode ||
|
|
2744
|
-
|
|
2745
|
-
|
|
2701
|
+
element.parentNode || // DOM Element detected
|
|
2702
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2703
|
+
element.host || // ShadowRoot detected
|
|
2704
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2746
2705
|
getDocumentElement(element) // fallback
|
|
2747
2706
|
|
|
2748
2707
|
);
|
|
@@ -2754,21 +2713,29 @@ function getTrueOffsetParent(element) {
|
|
|
2754
2713
|
return null;
|
|
2755
2714
|
}
|
|
2756
2715
|
|
|
2757
|
-
|
|
2716
|
+
var offsetParent = element.offsetParent;
|
|
2717
|
+
|
|
2718
|
+
if (offsetParent) {
|
|
2719
|
+
var html = getDocumentElement(offsetParent);
|
|
2720
|
+
|
|
2721
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2722
|
+
return html;
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
|
|
2726
|
+
return offsetParent;
|
|
2758
2727
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2759
2728
|
// return the containing block
|
|
2760
2729
|
|
|
2761
2730
|
|
|
2762
2731
|
function getContainingBlock(element) {
|
|
2763
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2764
2732
|
var currentNode = getParentNode(element);
|
|
2765
2733
|
|
|
2766
2734
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2767
2735
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2768
2736
|
// create a containing block.
|
|
2769
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2770
2737
|
|
|
2771
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2738
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2772
2739
|
return currentNode;
|
|
2773
2740
|
} else {
|
|
2774
2741
|
currentNode = currentNode.parentNode;
|
|
@@ -2788,7 +2755,7 @@ function getOffsetParent(element) {
|
|
|
2788
2755
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2789
2756
|
}
|
|
2790
2757
|
|
|
2791
|
-
if (offsetParent &&
|
|
2758
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2792
2759
|
return window;
|
|
2793
2760
|
}
|
|
2794
2761
|
|
|
@@ -2799,12 +2766,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2799
2766
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2800
2767
|
}
|
|
2801
2768
|
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
var round = Math.round;
|
|
2805
|
-
|
|
2806
|
-
function within(min$1, value, max$1) {
|
|
2807
|
-
return max(min$1, min(value, max$1));
|
|
2769
|
+
function within(min, value, max) {
|
|
2770
|
+
return Math.max(min, Math.min(value, max));
|
|
2808
2771
|
}
|
|
2809
2772
|
|
|
2810
2773
|
function getFreshSideObject() {
|
|
@@ -2817,7 +2780,7 @@ function getFreshSideObject() {
|
|
|
2817
2780
|
}
|
|
2818
2781
|
|
|
2819
2782
|
function mergePaddingObject(paddingObject) {
|
|
2820
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2783
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2821
2784
|
}
|
|
2822
2785
|
|
|
2823
2786
|
function expandToHashMap(value, keys) {
|
|
@@ -2827,19 +2790,11 @@ function expandToHashMap(value, keys) {
|
|
|
2827
2790
|
}, {});
|
|
2828
2791
|
}
|
|
2829
2792
|
|
|
2830
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2831
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2832
|
-
placement: state.placement
|
|
2833
|
-
})) : padding;
|
|
2834
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2835
|
-
};
|
|
2836
|
-
|
|
2837
2793
|
function arrow(_ref) {
|
|
2838
2794
|
var _state$modifiersData$;
|
|
2839
2795
|
|
|
2840
2796
|
var state = _ref.state,
|
|
2841
|
-
name = _ref.name
|
|
2842
|
-
options = _ref.options;
|
|
2797
|
+
name = _ref.name;
|
|
2843
2798
|
var arrowElement = state.elements.arrow;
|
|
2844
2799
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2845
2800
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2851,7 +2806,7 @@ function arrow(_ref) {
|
|
|
2851
2806
|
return;
|
|
2852
2807
|
}
|
|
2853
2808
|
|
|
2854
|
-
var paddingObject =
|
|
2809
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2855
2810
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2856
2811
|
var minProp = axis === 'y' ? top : left;
|
|
2857
2812
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2873,9 +2828,12 @@ function arrow(_ref) {
|
|
|
2873
2828
|
|
|
2874
2829
|
function effect(_ref2) {
|
|
2875
2830
|
var state = _ref2.state,
|
|
2876
|
-
options = _ref2.options
|
|
2831
|
+
options = _ref2.options,
|
|
2832
|
+
name = _ref2.name;
|
|
2877
2833
|
var _options$element = options.element,
|
|
2878
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2834
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2835
|
+
_options$padding = options.padding,
|
|
2836
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2879
2837
|
|
|
2880
2838
|
if (arrowElement == null) {
|
|
2881
2839
|
return;
|
|
@@ -2905,6 +2863,9 @@ function effect(_ref2) {
|
|
|
2905
2863
|
}
|
|
2906
2864
|
|
|
2907
2865
|
state.elements.arrow = arrowElement;
|
|
2866
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2867
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2868
|
+
};
|
|
2908
2869
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2909
2870
|
|
|
2910
2871
|
|
|
@@ -2927,14 +2888,14 @@ var unsetSides = {
|
|
|
2927
2888
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2928
2889
|
// cleanly divide the values into the appropriate subpixels.
|
|
2929
2890
|
|
|
2930
|
-
function
|
|
2891
|
+
function roundOffsets(_ref) {
|
|
2931
2892
|
var x = _ref.x,
|
|
2932
2893
|
y = _ref.y;
|
|
2933
2894
|
var win = window;
|
|
2934
2895
|
var dpr = win.devicePixelRatio || 1;
|
|
2935
2896
|
return {
|
|
2936
|
-
x: round(
|
|
2937
|
-
y: round(
|
|
2897
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2898
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2938
2899
|
};
|
|
2939
2900
|
}
|
|
2940
2901
|
|
|
@@ -2947,14 +2908,11 @@ function mapToStyles(_ref2) {
|
|
|
2947
2908
|
offsets = _ref2.offsets,
|
|
2948
2909
|
position = _ref2.position,
|
|
2949
2910
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2950
|
-
adaptive = _ref2.adaptive
|
|
2951
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2911
|
+
adaptive = _ref2.adaptive;
|
|
2952
2912
|
|
|
2953
|
-
var
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
_ref3$y = _ref3.y,
|
|
2957
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2913
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2914
|
+
x = _roundOffsets.x,
|
|
2915
|
+
y = _roundOffsets.y;
|
|
2958
2916
|
|
|
2959
2917
|
var hasX = offsets.hasOwnProperty('x');
|
|
2960
2918
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2964,32 +2922,23 @@ function mapToStyles(_ref2) {
|
|
|
2964
2922
|
|
|
2965
2923
|
if (adaptive) {
|
|
2966
2924
|
var offsetParent = getOffsetParent(popper);
|
|
2967
|
-
var heightProp = 'clientHeight';
|
|
2968
|
-
var widthProp = 'clientWidth';
|
|
2969
2925
|
|
|
2970
2926
|
if (offsetParent === getWindow(popper)) {
|
|
2971
2927
|
offsetParent = getDocumentElement(popper);
|
|
2928
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2972
2929
|
|
|
2973
|
-
|
|
2974
|
-
heightProp = 'scrollHeight';
|
|
2975
|
-
widthProp = 'scrollWidth';
|
|
2976
|
-
}
|
|
2977
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2978
|
-
|
|
2930
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2979
2931
|
|
|
2980
|
-
offsetParent = offsetParent;
|
|
2981
2932
|
|
|
2982
2933
|
if (placement === top) {
|
|
2983
|
-
sideY = bottom;
|
|
2984
|
-
|
|
2985
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2934
|
+
sideY = bottom;
|
|
2935
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2986
2936
|
y *= gpuAcceleration ? 1 : -1;
|
|
2987
2937
|
}
|
|
2988
2938
|
|
|
2989
2939
|
if (placement === left) {
|
|
2990
|
-
sideX = right;
|
|
2991
|
-
|
|
2992
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2940
|
+
sideX = right;
|
|
2941
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2993
2942
|
x *= gpuAcceleration ? 1 : -1;
|
|
2994
2943
|
}
|
|
2995
2944
|
}
|
|
@@ -3001,21 +2950,19 @@ function mapToStyles(_ref2) {
|
|
|
3001
2950
|
if (gpuAcceleration) {
|
|
3002
2951
|
var _Object$assign;
|
|
3003
2952
|
|
|
3004
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
2953
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign = {}, _Object$assign[sideY] = hasY ? '0' : '', _Object$assign[sideX] = hasX ? '0' : '', _Object$assign.transform = (win.devicePixelRatio || 1) < 2 ? "translate(" + x + "px, " + y + "px)" : "translate3d(" + x + "px, " + y + "px, 0)", _Object$assign));
|
|
3005
2954
|
}
|
|
3006
2955
|
|
|
3007
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2956
|
+
return Object.assign(Object.assign({}, commonStyles), {}, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
3008
2957
|
}
|
|
3009
2958
|
|
|
3010
|
-
function computeStyles(
|
|
3011
|
-
var state =
|
|
3012
|
-
options =
|
|
2959
|
+
function computeStyles(_ref3) {
|
|
2960
|
+
var state = _ref3.state,
|
|
2961
|
+
options = _ref3.options;
|
|
3013
2962
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3014
2963
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3015
2964
|
_options$adaptive = options.adaptive,
|
|
3016
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3017
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3018
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2965
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3019
2966
|
|
|
3020
2967
|
if (process.env.NODE_ENV !== "production") {
|
|
3021
2968
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3035,24 +2982,22 @@ function computeStyles(_ref4) {
|
|
|
3035
2982
|
};
|
|
3036
2983
|
|
|
3037
2984
|
if (state.modifiersData.popperOffsets != null) {
|
|
3038
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2985
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3039
2986
|
offsets: state.modifiersData.popperOffsets,
|
|
3040
2987
|
position: state.options.strategy,
|
|
3041
|
-
adaptive: adaptive
|
|
3042
|
-
roundOffsets: roundOffsets
|
|
2988
|
+
adaptive: adaptive
|
|
3043
2989
|
})));
|
|
3044
2990
|
}
|
|
3045
2991
|
|
|
3046
2992
|
if (state.modifiersData.arrow != null) {
|
|
3047
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2993
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3048
2994
|
offsets: state.modifiersData.arrow,
|
|
3049
2995
|
position: 'absolute',
|
|
3050
|
-
adaptive: false
|
|
3051
|
-
roundOffsets: roundOffsets
|
|
2996
|
+
adaptive: false
|
|
3052
2997
|
})));
|
|
3053
2998
|
}
|
|
3054
2999
|
|
|
3055
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3000
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3056
3001
|
'data-popper-placement': state.placement
|
|
3057
3002
|
});
|
|
3058
3003
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3136,6 +3081,20 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3136
3081
|
});
|
|
3137
3082
|
}
|
|
3138
3083
|
|
|
3084
|
+
function getBoundingClientRect(element) {
|
|
3085
|
+
var rect = element.getBoundingClientRect();
|
|
3086
|
+
return {
|
|
3087
|
+
width: rect.width,
|
|
3088
|
+
height: rect.height,
|
|
3089
|
+
top: rect.top,
|
|
3090
|
+
right: rect.right,
|
|
3091
|
+
bottom: rect.bottom,
|
|
3092
|
+
left: rect.left,
|
|
3093
|
+
x: rect.left,
|
|
3094
|
+
y: rect.top
|
|
3095
|
+
};
|
|
3096
|
+
}
|
|
3097
|
+
|
|
3139
3098
|
function getWindowScroll(node) {
|
|
3140
3099
|
var win = getWindow(node);
|
|
3141
3100
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3198,18 +3157,16 @@ function getViewportRect(element) {
|
|
|
3198
3157
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3199
3158
|
|
|
3200
3159
|
function getDocumentRect(element) {
|
|
3201
|
-
var _element$ownerDocumen;
|
|
3202
|
-
|
|
3203
3160
|
var html = getDocumentElement(element);
|
|
3204
3161
|
var winScroll = getWindowScroll(element);
|
|
3205
|
-
var body =
|
|
3206
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3207
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3162
|
+
var body = element.ownerDocument.body;
|
|
3163
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3164
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3208
3165
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3209
3166
|
var y = -winScroll.scrollTop;
|
|
3210
3167
|
|
|
3211
3168
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3212
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3169
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3213
3170
|
}
|
|
3214
3171
|
|
|
3215
3172
|
return {
|
|
@@ -3232,7 +3189,7 @@ function isScrollParent(element) {
|
|
|
3232
3189
|
|
|
3233
3190
|
function getScrollParent(node) {
|
|
3234
3191
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3235
|
-
// $FlowFixMe
|
|
3192
|
+
// $FlowFixMe: assume body is always available
|
|
3236
3193
|
return node.ownerDocument.body;
|
|
3237
3194
|
}
|
|
3238
3195
|
|
|
@@ -3246,28 +3203,26 @@ function getScrollParent(node) {
|
|
|
3246
3203
|
/*
|
|
3247
3204
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3248
3205
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3249
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3206
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3250
3207
|
reference element's position.
|
|
3251
3208
|
*/
|
|
3252
3209
|
|
|
3253
3210
|
function listScrollParents(element, list) {
|
|
3254
|
-
var _element$ownerDocumen;
|
|
3255
|
-
|
|
3256
3211
|
if (list === void 0) {
|
|
3257
3212
|
list = [];
|
|
3258
3213
|
}
|
|
3259
3214
|
|
|
3260
3215
|
var scrollParent = getScrollParent(element);
|
|
3261
|
-
var isBody = scrollParent ===
|
|
3216
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3262
3217
|
var win = getWindow(scrollParent);
|
|
3263
3218
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3264
3219
|
var updatedList = list.concat(target);
|
|
3265
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3220
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3266
3221
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3267
3222
|
}
|
|
3268
3223
|
|
|
3269
3224
|
function rectToClientRect(rect) {
|
|
3270
|
-
return Object.assign({}, rect, {
|
|
3225
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3271
3226
|
left: rect.x,
|
|
3272
3227
|
top: rect.y,
|
|
3273
3228
|
right: rect.x + rect.width,
|
|
@@ -3302,7 +3257,7 @@ function getClippingParents(element) {
|
|
|
3302
3257
|
|
|
3303
3258
|
if (!isElement(clipperElement)) {
|
|
3304
3259
|
return [];
|
|
3305
|
-
} // $FlowFixMe
|
|
3260
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3306
3261
|
|
|
3307
3262
|
|
|
3308
3263
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3318,10 +3273,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3318
3273
|
var firstClippingParent = clippingParents[0];
|
|
3319
3274
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3320
3275
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3321
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3322
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3323
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3324
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3276
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3277
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3278
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3279
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3325
3280
|
return accRect;
|
|
3326
3281
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3327
3282
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3388,11 +3343,11 @@ function computeOffsets(_ref) {
|
|
|
3388
3343
|
|
|
3389
3344
|
switch (variation) {
|
|
3390
3345
|
case start:
|
|
3391
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3346
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3392
3347
|
break;
|
|
3393
3348
|
|
|
3394
3349
|
case end:
|
|
3395
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3350
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3396
3351
|
break;
|
|
3397
3352
|
}
|
|
3398
3353
|
}
|
|
@@ -3431,7 +3386,7 @@ function detectOverflow(state, options) {
|
|
|
3431
3386
|
strategy: 'absolute',
|
|
3432
3387
|
placement: placement
|
|
3433
3388
|
});
|
|
3434
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3389
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3435
3390
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3436
3391
|
// 0 or negative = within the clipping rect
|
|
3437
3392
|
|
|
@@ -3455,6 +3410,9 @@ function detectOverflow(state, options) {
|
|
|
3455
3410
|
return overflowOffsets;
|
|
3456
3411
|
}
|
|
3457
3412
|
|
|
3413
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3414
|
+
|
|
3415
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3458
3416
|
function computeAutoPlacement(state, options) {
|
|
3459
3417
|
if (options === void 0) {
|
|
3460
3418
|
options = {};
|
|
@@ -3471,7 +3429,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3471
3429
|
var variation = getVariation(placement);
|
|
3472
3430
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3473
3431
|
return getVariation(placement) === variation;
|
|
3474
|
-
}) : basePlacements;
|
|
3432
|
+
}) : basePlacements; // $FlowFixMe
|
|
3433
|
+
|
|
3475
3434
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3476
3435
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3477
3436
|
});
|
|
@@ -3482,7 +3441,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3482
3441
|
if (process.env.NODE_ENV !== "production") {
|
|
3483
3442
|
console.error(['Popper: The `allowedAutoPlacements` option did not allow any', 'placements. Ensure the `placement` option matches the variation', 'of the allowed placements.', 'For example, "auto" cannot be used to allow "bottom-start".', 'Use "auto-start" instead.'].join(' '));
|
|
3484
3443
|
}
|
|
3485
|
-
} // $FlowFixMe
|
|
3444
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3486
3445
|
|
|
3487
3446
|
|
|
3488
3447
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3683,7 +3642,7 @@ function hide(_ref) {
|
|
|
3683
3642
|
isReferenceHidden: isReferenceHidden,
|
|
3684
3643
|
hasPopperEscaped: hasPopperEscaped
|
|
3685
3644
|
};
|
|
3686
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3645
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3687
3646
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3688
3647
|
'data-popper-escaped': hasPopperEscaped
|
|
3689
3648
|
});
|
|
@@ -3702,7 +3661,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3702
3661
|
var basePlacement = getBasePlacement(placement);
|
|
3703
3662
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3704
3663
|
|
|
3705
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3664
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3706
3665
|
placement: placement
|
|
3707
3666
|
})) : offset,
|
|
3708
3667
|
skidding = _ref[0],
|
|
@@ -3808,7 +3767,7 @@ function preventOverflow(_ref) {
|
|
|
3808
3767
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3809
3768
|
var referenceRect = state.rects.reference;
|
|
3810
3769
|
var popperRect = state.rects.popper;
|
|
3811
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3770
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3812
3771
|
placement: state.placement
|
|
3813
3772
|
})) : tetherOffset;
|
|
3814
3773
|
var data = {
|
|
@@ -3820,13 +3779,13 @@ function preventOverflow(_ref) {
|
|
|
3820
3779
|
return;
|
|
3821
3780
|
}
|
|
3822
3781
|
|
|
3823
|
-
if (checkMainAxis
|
|
3782
|
+
if (checkMainAxis) {
|
|
3824
3783
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3825
3784
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3826
3785
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3827
3786
|
var offset = popperOffsets[mainAxis];
|
|
3828
|
-
var min
|
|
3829
|
-
var max
|
|
3787
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3788
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3830
3789
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3831
3790
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3832
3791
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3853,29 +3812,26 @@ function preventOverflow(_ref) {
|
|
|
3853
3812
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3854
3813
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3855
3814
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3815
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3816
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3817
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3818
|
+
}
|
|
3856
3819
|
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3860
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3861
|
-
}
|
|
3862
|
-
|
|
3863
|
-
if (checkAltAxis) {
|
|
3864
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3820
|
+
if (checkAltAxis) {
|
|
3821
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3865
3822
|
|
|
3866
|
-
|
|
3823
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3867
3824
|
|
|
3868
|
-
|
|
3825
|
+
var _offset = popperOffsets[altAxis];
|
|
3869
3826
|
|
|
3870
|
-
|
|
3827
|
+
var _min = _offset + overflow[_mainSide];
|
|
3871
3828
|
|
|
3872
|
-
|
|
3829
|
+
var _max = _offset - overflow[_altSide];
|
|
3873
3830
|
|
|
3874
|
-
|
|
3831
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3875
3832
|
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
}
|
|
3833
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3834
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3879
3835
|
}
|
|
3880
3836
|
|
|
3881
3837
|
state.modifiersData[name] = data;
|
|
@@ -4106,9 +4062,9 @@ function uniqueBy(arr, fn) {
|
|
|
4106
4062
|
function mergeByName(modifiers) {
|
|
4107
4063
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4108
4064
|
var existing = merged[current.name];
|
|
4109
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4110
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4111
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4065
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4066
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4067
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4112
4068
|
}) : current;
|
|
4113
4069
|
return merged;
|
|
4114
4070
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4154,7 +4110,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4154
4110
|
var state = {
|
|
4155
4111
|
placement: 'bottom',
|
|
4156
4112
|
orderedModifiers: [],
|
|
4157
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4113
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4158
4114
|
modifiersData: {},
|
|
4159
4115
|
elements: {
|
|
4160
4116
|
reference: reference,
|
|
@@ -4169,7 +4125,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4169
4125
|
state: state,
|
|
4170
4126
|
setOptions: function setOptions(options) {
|
|
4171
4127
|
cleanupModifierEffects();
|
|
4172
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4128
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4173
4129
|
state.scrollParents = {
|
|
4174
4130
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4175
4131
|
popper: listScrollParents(popper)
|
|
@@ -9381,7 +9337,7 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9381
9337
|
Tooltip.defaultProps = defaultProps$E;
|
|
9382
9338
|
Tooltip.displayName = 'Tooltip';
|
|
9383
9339
|
|
|
9384
|
-
var css = ".MediaSeriesCard-module_article__SAFYK {\n width: 100%;\n margin: 0 0 1rem 0;\n}\n.MediaSeriesCard-module_article__SAFYK a {\n display: flex;\n width: 100%;\n color: #000000;\n}\n.MediaSeriesCard-module_thumb__3jRAU {\n width: 25%;\n}\n.MediaSeriesCard-module_thumb__3jRAU img {\n width: 100%;\n height: auto;\n}\n.MediaSeriesCard-module_info__3L7_o {\n width: 75%;\n font-size: 1rem;\n}\n.MediaSeriesCard-module_info__3L7_o h2 {\n font-weight: bold;\n font-size: 1.25rem;\n margin: 0;\n}\n.MediaSeriesCard-module_published__E4oiz {\n color: #6d6d6d;\n margin: 0;\n}\n.MediaSeriesCard-module_summary__1xanh {\n margin: 0.5rem 0 0 0;\n}\n.MediaSeriesCard-module_author__e5fuR {\n margin: 0;\n}\n.MediaSeriesCard-module_author__e5fuR span {\n color: #6d6d6d;\n}\n.MediaSeriesCard-module_name__2m5KY {\n font-size: 1.3rem;\n font-weight: bold;\n}\n@media only screen and (max-width: 568px) {\n .MediaSeriesCard-module_article__SAFYK {\n margin: 1rem 0;\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\n }\n .MediaSeriesCard-module_article__SAFYK a {\n flex-direction: column;\n align-items: center;\n }\n .MediaSeriesCard-module_thumb__3jRAU {\n overflow: hidden;\n width: 100%;\n margin-bottom: 1rem;\n }\n .MediaSeriesCard-module_thumb__3jRAU img{\n border-radius: 10px 10px 0 0; \n }\n .MediaSeriesCard-module_thumb__3jRAU figure {\n margin: 0;\n }\n .MediaSeriesCard-module_info__3L7_o {\n width: 90%;\n padding: 0rem !important;\n }\n .MediaSeriesCard-module_info__3L7_o h2 {\n font-size: 1rem;\n }\n .MediaSeriesCard-module_name__2m5KY {\n font-size: 1rem;\n \n }\n}\n";
|
|
9340
|
+
var css = ".MediaSeriesCard-module_article__SAFYK {\r\n width: 100%;\r\n margin: 0 0 1rem 0;\r\n}\r\n.MediaSeriesCard-module_article__SAFYK a {\r\n display: flex;\r\n width: 100%;\r\n color: #000000;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU {\r\n width: 25%;\r\n}\r\n.MediaSeriesCard-module_thumb__3jRAU img {\r\n width: 100%;\r\n height: auto;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o {\r\n width: 75%;\r\n font-size: 1rem;\r\n}\r\n.MediaSeriesCard-module_info__3L7_o h2 {\r\n font-weight: bold;\r\n font-size: 1.25rem;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_published__E4oiz {\r\n color: #6d6d6d;\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_summary__1xanh {\r\n margin: 0.5rem 0 0 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR {\r\n margin: 0;\r\n}\r\n.MediaSeriesCard-module_author__e5fuR span {\r\n color: #6d6d6d;\r\n}\r\n.MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1.3rem;\r\n font-weight: bold;\r\n}\r\n@media only screen and (max-width: 568px) {\r\n .MediaSeriesCard-module_article__SAFYK {\r\n margin: 1rem 0;\r\n box-shadow: 2px 4px 8px rgba(0,0,0,.2);\r\n }\r\n .MediaSeriesCard-module_article__SAFYK a {\r\n flex-direction: column;\r\n align-items: center;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU {\r\n overflow: hidden;\r\n width: 100%;\r\n margin-bottom: 1rem;\r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU img{\r\n border-radius: 10px 10px 0 0; \r\n }\r\n .MediaSeriesCard-module_thumb__3jRAU figure {\r\n margin: 0;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o {\r\n width: 90%;\r\n padding: 0rem !important;\r\n }\r\n .MediaSeriesCard-module_info__3L7_o h2 {\r\n font-size: 1rem;\r\n }\r\n .MediaSeriesCard-module_name__2m5KY {\r\n font-size: 1rem;\r\n \r\n }\r\n}\r\n";
|
|
9385
9341
|
var styles = { "article": "MediaSeriesCard-module_article__SAFYK", "thumb": "MediaSeriesCard-module_thumb__3jRAU", "info": "MediaSeriesCard-module_info__3L7_o", "published": "MediaSeriesCard-module_published__E4oiz", "summary": "MediaSeriesCard-module_summary__1xanh", "author": "MediaSeriesCard-module_author__e5fuR", "name": "MediaSeriesCard-module_name__2m5KY" };
|
|
9386
9342
|
styleInject(css);
|
|
9387
9343
|
|
|
@@ -9468,11 +9424,11 @@ var Filter = function Filter(_ref) {
|
|
|
9468
9424
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9469
9425
|
grandChildData = _useState6[0],
|
|
9470
9426
|
setGrandChildData = _useState6[1];
|
|
9471
|
-
/*
|
|
9472
|
-
{parent: showAll,
|
|
9473
|
-
chidlren: show selected from parent,
|
|
9474
|
-
grandchildren: show selected from children
|
|
9475
|
-
}
|
|
9427
|
+
/*
|
|
9428
|
+
{parent: showAll,
|
|
9429
|
+
chidlren: show selected from parent,
|
|
9430
|
+
grandchildren: show selected from children
|
|
9431
|
+
}
|
|
9476
9432
|
*/
|
|
9477
9433
|
|
|
9478
9434
|
|