@mjhls/mjh-framework 1.0.823-double-verify → 1.0.824-deckqueue-fix-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 +170 -170
- 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 -74
- package/dist/cjs/AdSlotsProvider.js +5 -14
- 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 +12 -6
- 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 +7 -7
- package/dist/cjs/PubSection.js +5 -5
- package/dist/cjs/PublicationLanding.js +26 -26
- package/dist/cjs/QueueDeckExpanded.js +7 -7
- 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-66092a33.js → SeriesSlider-b94509d5.js} +10 -10
- package/dist/cjs/SideFooter.js +2 -2
- package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-42b9d251.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 +22 -14
- package/dist/cjs/YahooHero.js +1 -1
- package/dist/cjs/YoutubeGroup.js +10 -10
- 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-ea2ea5e7.js → getTargeting-15ad167c.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-be7af3a5.js → index-f30a10d6.js} +12 -12
- 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 +2 -75
- package/dist/esm/AdSlotsProvider.js +5 -14
- 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 +12 -6
- 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 +7 -7
- package/dist/esm/PubSection.js +5 -5
- package/dist/esm/PublicationLanding.js +26 -26
- package/dist/esm/QueueDeckExpanded.js +7 -7
- 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-802c4daf.js → SeriesSlider-935e2b4e.js} +10 -10
- package/dist/esm/SideFooter.js +2 -2
- package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-94f6554c.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 +22 -14
- package/dist/esm/YahooHero.js +1 -1
- package/dist/esm/YoutubeGroup.js +10 -10
- 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-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-a5e7c80c.js → index-a69960c8.js} +12 -12
- 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 +110 -110
- /package/dist/cjs/{ADInfeed-abcd28ad.js → ADInfeed-0158bee3.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-ed0bff5b.js → ADlgInfeed-3583144f.js} +0 -0
- /package/dist/esm/{ADInfeed-fc937563.js → ADInfeed-427022e9.js} +0 -0
- /package/dist/esm/{ADlgInfeed-d5032b24.js → ADlgInfeed-28d3f944.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-427022e9.js';
|
|
44
44
|
import './lodash-ec8c6b48.js';
|
|
45
|
-
import './ADlgInfeed-
|
|
45
|
+
import './ADlgInfeed-28d3f944.js';
|
|
46
46
|
import { B as BlockContent } from './BlockContent-d05b5b23.js';
|
|
47
47
|
import './index-c7e2ac95.js';
|
|
48
48
|
import './smoothscroll-0cd4c7a6.js';
|
|
@@ -50,9 +50,9 @@ import './GroupDeck.js';
|
|
|
50
50
|
import 'react-bootstrap';
|
|
51
51
|
import './iconBase-602d52fe.js';
|
|
52
52
|
import './index.esm-3fdda599.js';
|
|
53
|
-
import { g as getSerializers } from './index-
|
|
53
|
+
import { g as getSerializers } from './index-a69960c8.js';
|
|
54
54
|
import './util-7700fc59.js';
|
|
55
|
-
import './brightcove-react-player-loader.es-
|
|
55
|
+
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
56
56
|
import 'next/head';
|
|
57
57
|
import 'react-share';
|
|
58
58
|
import './SocialShare.js';
|
|
@@ -62,7 +62,7 @@ import 'react-bootstrap/Button';
|
|
|
62
62
|
import 'react-bootstrap/Figure';
|
|
63
63
|
import MasterDeck from './MasterDeck.js';
|
|
64
64
|
import { _ as _defineProperty } from './defineProperty-94fd8bfc.js';
|
|
65
|
-
import { _ as _objectWithoutPropertiesLoose,
|
|
65
|
+
import { _ as _objectWithoutPropertiesLoose, a as _extends, c as classnames } from './index-aaa2dae0.js';
|
|
66
66
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
67
67
|
import Link from 'next/link';
|
|
68
68
|
|
|
@@ -174,7 +174,7 @@ function useUncontrolled(props, config) {
|
|
|
174
174
|
function _inheritsLoose(subClass, superClass) {
|
|
175
175
|
subClass.prototype = Object.create(superClass.prototype);
|
|
176
176
|
subClass.prototype.constructor = subClass;
|
|
177
|
-
|
|
177
|
+
subClass.__proto__ = superClass;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
var ThemeContext = React.createContext({});
|
|
@@ -1843,20 +1843,6 @@ function setChainedTimeout(handleRef, fn, timeoutAtMs) {
|
|
|
1843
1843
|
/**
|
|
1844
1844
|
* Returns a controller object for setting a timeout that is properly cleaned up
|
|
1845
1845
|
* once the component unmounts. New timeouts cancel and replace existing ones.
|
|
1846
|
-
*
|
|
1847
|
-
*
|
|
1848
|
-
*
|
|
1849
|
-
* ```tsx
|
|
1850
|
-
* const { set, clear } = useTimeout();
|
|
1851
|
-
* const [hello, showHello] = useState(false);
|
|
1852
|
-
* //Display hello after 5 seconds
|
|
1853
|
-
* set(() => showHello(true), 5000);
|
|
1854
|
-
* return (
|
|
1855
|
-
* <div className="App">
|
|
1856
|
-
* {hello ? <h3>Hello</h3> : null}
|
|
1857
|
-
* </div>
|
|
1858
|
-
* );
|
|
1859
|
-
* ```
|
|
1860
1846
|
*/
|
|
1861
1847
|
|
|
1862
1848
|
|
|
@@ -2615,50 +2601,21 @@ function getBasePlacement(placement) {
|
|
|
2615
2601
|
return placement.split('-')[0];
|
|
2616
2602
|
}
|
|
2617
2603
|
|
|
2618
|
-
|
|
2619
|
-
var rect = element.getBoundingClientRect();
|
|
2620
|
-
return {
|
|
2621
|
-
width: rect.width,
|
|
2622
|
-
height: rect.height,
|
|
2623
|
-
top: rect.top,
|
|
2624
|
-
right: rect.right,
|
|
2625
|
-
bottom: rect.bottom,
|
|
2626
|
-
left: rect.left,
|
|
2627
|
-
x: rect.left,
|
|
2628
|
-
y: rect.top
|
|
2629
|
-
};
|
|
2630
|
-
}
|
|
2631
|
-
|
|
2604
|
+
// Returns the layout rect of an element relative to its offsetParent. Layout
|
|
2632
2605
|
// means it doesn't take into account transforms.
|
|
2633
|
-
|
|
2634
2606
|
function getLayoutRect(element) {
|
|
2635
|
-
var clientRect = getBoundingClientRect(element); // Use the clientRect sizes if it's not been transformed.
|
|
2636
|
-
// Fixes https://github.com/popperjs/popper-core/issues/1223
|
|
2637
|
-
|
|
2638
|
-
var width = element.offsetWidth;
|
|
2639
|
-
var height = element.offsetHeight;
|
|
2640
|
-
|
|
2641
|
-
if (Math.abs(clientRect.width - width) <= 1) {
|
|
2642
|
-
width = clientRect.width;
|
|
2643
|
-
}
|
|
2644
|
-
|
|
2645
|
-
if (Math.abs(clientRect.height - height) <= 1) {
|
|
2646
|
-
height = clientRect.height;
|
|
2647
|
-
}
|
|
2648
|
-
|
|
2649
2607
|
return {
|
|
2650
2608
|
x: element.offsetLeft,
|
|
2651
2609
|
y: element.offsetTop,
|
|
2652
|
-
width:
|
|
2653
|
-
height:
|
|
2610
|
+
width: element.offsetWidth,
|
|
2611
|
+
height: element.offsetHeight
|
|
2654
2612
|
};
|
|
2655
2613
|
}
|
|
2656
2614
|
|
|
2657
|
-
|
|
2658
|
-
if (node == null) {
|
|
2659
|
-
return window;
|
|
2660
|
-
}
|
|
2615
|
+
/*:: import type { Window } from '../types'; */
|
|
2661
2616
|
|
|
2617
|
+
/*:: declare function getWindow(node: Node | Window): Window; */
|
|
2618
|
+
function getWindow(node) {
|
|
2662
2619
|
if (node.toString() !== '[object Window]') {
|
|
2663
2620
|
var ownerDocument = node.ownerDocument;
|
|
2664
2621
|
return ownerDocument ? ownerDocument.defaultView || window : window;
|
|
@@ -2667,22 +2624,26 @@ function getWindow(node) {
|
|
|
2667
2624
|
return node;
|
|
2668
2625
|
}
|
|
2669
2626
|
|
|
2627
|
+
/*:: declare function isElement(node: mixed): boolean %checks(node instanceof
|
|
2628
|
+
Element); */
|
|
2629
|
+
|
|
2670
2630
|
function isElement(node) {
|
|
2671
2631
|
var OwnElement = getWindow(node).Element;
|
|
2672
2632
|
return node instanceof OwnElement || node instanceof Element;
|
|
2673
2633
|
}
|
|
2634
|
+
/*:: declare function isHTMLElement(node: mixed): boolean %checks(node instanceof
|
|
2635
|
+
HTMLElement); */
|
|
2636
|
+
|
|
2674
2637
|
|
|
2675
2638
|
function isHTMLElement(node) {
|
|
2676
2639
|
var OwnElement = getWindow(node).HTMLElement;
|
|
2677
2640
|
return node instanceof OwnElement || node instanceof HTMLElement;
|
|
2678
2641
|
}
|
|
2642
|
+
/*:: declare function isShadowRoot(node: mixed): boolean %checks(node instanceof
|
|
2643
|
+
ShadowRoot); */
|
|
2679
2644
|
|
|
2680
|
-
function isShadowRoot(node) {
|
|
2681
|
-
// IE 11 has no ShadowRoot
|
|
2682
|
-
if (typeof ShadowRoot === 'undefined') {
|
|
2683
|
-
return false;
|
|
2684
|
-
}
|
|
2685
2645
|
|
|
2646
|
+
function isShadowRoot(node) {
|
|
2686
2647
|
var OwnElement = getWindow(node).ShadowRoot;
|
|
2687
2648
|
return node instanceof OwnElement || node instanceof ShadowRoot;
|
|
2688
2649
|
}
|
|
@@ -2699,7 +2660,7 @@ function contains(parent, child) {
|
|
|
2699
2660
|
do {
|
|
2700
2661
|
if (next && parent.isSameNode(next)) {
|
|
2701
2662
|
return true;
|
|
2702
|
-
} // $FlowFixMe
|
|
2663
|
+
} // $FlowFixMe: need a better way to handle this...
|
|
2703
2664
|
|
|
2704
2665
|
|
|
2705
2666
|
next = next.parentNode || next.host;
|
|
@@ -2723,9 +2684,8 @@ function isTableElement(element) {
|
|
|
2723
2684
|
}
|
|
2724
2685
|
|
|
2725
2686
|
function getDocumentElement(element) {
|
|
2726
|
-
// $FlowFixMe
|
|
2727
|
-
return ((isElement(element) ? element.ownerDocument :
|
|
2728
|
-
element.document) || window.document).documentElement;
|
|
2687
|
+
// $FlowFixMe: assume body is always available
|
|
2688
|
+
return ((isElement(element) ? element.ownerDocument : element.document) || window.document).documentElement;
|
|
2729
2689
|
}
|
|
2730
2690
|
|
|
2731
2691
|
function getParentNode(element) {
|
|
@@ -2733,13 +2693,12 @@ function getParentNode(element) {
|
|
|
2733
2693
|
return element;
|
|
2734
2694
|
}
|
|
2735
2695
|
|
|
2736
|
-
return (// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2737
|
-
// $FlowFixMe[incompatible-return]
|
|
2738
|
-
// $FlowFixMe[prop-missing]
|
|
2696
|
+
return (// $FlowFixMe: this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
2739
2697
|
element.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
2740
|
-
element.parentNode ||
|
|
2741
|
-
|
|
2742
|
-
|
|
2698
|
+
element.parentNode || // DOM Element detected
|
|
2699
|
+
// $FlowFixMe: need a better way to handle this...
|
|
2700
|
+
element.host || // ShadowRoot detected
|
|
2701
|
+
// $FlowFixMe: HTMLElement is a Node
|
|
2743
2702
|
getDocumentElement(element) // fallback
|
|
2744
2703
|
|
|
2745
2704
|
);
|
|
@@ -2751,21 +2710,29 @@ function getTrueOffsetParent(element) {
|
|
|
2751
2710
|
return null;
|
|
2752
2711
|
}
|
|
2753
2712
|
|
|
2754
|
-
|
|
2713
|
+
var offsetParent = element.offsetParent;
|
|
2714
|
+
|
|
2715
|
+
if (offsetParent) {
|
|
2716
|
+
var html = getDocumentElement(offsetParent);
|
|
2717
|
+
|
|
2718
|
+
if (getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static' && getComputedStyle$2(html).position !== 'static') {
|
|
2719
|
+
return html;
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
return offsetParent;
|
|
2755
2724
|
} // `.offsetParent` reports `null` for fixed elements, while absolute elements
|
|
2756
2725
|
// return the containing block
|
|
2757
2726
|
|
|
2758
2727
|
|
|
2759
2728
|
function getContainingBlock(element) {
|
|
2760
|
-
var isFirefox = navigator.userAgent.toLowerCase().indexOf('firefox') !== -1;
|
|
2761
2729
|
var currentNode = getParentNode(element);
|
|
2762
2730
|
|
|
2763
2731
|
while (isHTMLElement(currentNode) && ['html', 'body'].indexOf(getNodeName(currentNode)) < 0) {
|
|
2764
2732
|
var css = getComputedStyle$2(currentNode); // This is non-exhaustive but covers the most common CSS properties that
|
|
2765
2733
|
// create a containing block.
|
|
2766
|
-
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2767
2734
|
|
|
2768
|
-
if (css.transform !== 'none' || css.perspective !== 'none' || css.
|
|
2735
|
+
if (css.transform !== 'none' || css.perspective !== 'none' || css.willChange && css.willChange !== 'auto') {
|
|
2769
2736
|
return currentNode;
|
|
2770
2737
|
} else {
|
|
2771
2738
|
currentNode = currentNode.parentNode;
|
|
@@ -2785,7 +2752,7 @@ function getOffsetParent(element) {
|
|
|
2785
2752
|
offsetParent = getTrueOffsetParent(offsetParent);
|
|
2786
2753
|
}
|
|
2787
2754
|
|
|
2788
|
-
if (offsetParent &&
|
|
2755
|
+
if (offsetParent && getNodeName(offsetParent) === 'body' && getComputedStyle$2(offsetParent).position === 'static') {
|
|
2789
2756
|
return window;
|
|
2790
2757
|
}
|
|
2791
2758
|
|
|
@@ -2796,12 +2763,8 @@ function getMainAxisFromPlacement(placement) {
|
|
|
2796
2763
|
return ['top', 'bottom'].indexOf(placement) >= 0 ? 'x' : 'y';
|
|
2797
2764
|
}
|
|
2798
2765
|
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
var round = Math.round;
|
|
2802
|
-
|
|
2803
|
-
function within(min$1, value, max$1) {
|
|
2804
|
-
return max(min$1, min(value, max$1));
|
|
2766
|
+
function within(min, value, max) {
|
|
2767
|
+
return Math.max(min, Math.min(value, max));
|
|
2805
2768
|
}
|
|
2806
2769
|
|
|
2807
2770
|
function getFreshSideObject() {
|
|
@@ -2814,7 +2777,7 @@ function getFreshSideObject() {
|
|
|
2814
2777
|
}
|
|
2815
2778
|
|
|
2816
2779
|
function mergePaddingObject(paddingObject) {
|
|
2817
|
-
return Object.assign({}, getFreshSideObject(), paddingObject);
|
|
2780
|
+
return Object.assign(Object.assign({}, getFreshSideObject()), paddingObject);
|
|
2818
2781
|
}
|
|
2819
2782
|
|
|
2820
2783
|
function expandToHashMap(value, keys) {
|
|
@@ -2824,19 +2787,11 @@ function expandToHashMap(value, keys) {
|
|
|
2824
2787
|
}, {});
|
|
2825
2788
|
}
|
|
2826
2789
|
|
|
2827
|
-
var toPaddingObject = function toPaddingObject(padding, state) {
|
|
2828
|
-
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
|
2829
|
-
placement: state.placement
|
|
2830
|
-
})) : padding;
|
|
2831
|
-
return mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements));
|
|
2832
|
-
};
|
|
2833
|
-
|
|
2834
2790
|
function arrow(_ref) {
|
|
2835
2791
|
var _state$modifiersData$;
|
|
2836
2792
|
|
|
2837
2793
|
var state = _ref.state,
|
|
2838
|
-
name = _ref.name
|
|
2839
|
-
options = _ref.options;
|
|
2794
|
+
name = _ref.name;
|
|
2840
2795
|
var arrowElement = state.elements.arrow;
|
|
2841
2796
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
2842
2797
|
var basePlacement = getBasePlacement(state.placement);
|
|
@@ -2848,7 +2803,7 @@ function arrow(_ref) {
|
|
|
2848
2803
|
return;
|
|
2849
2804
|
}
|
|
2850
2805
|
|
|
2851
|
-
var paddingObject =
|
|
2806
|
+
var paddingObject = state.modifiersData[name + "#persistent"].padding;
|
|
2852
2807
|
var arrowRect = getLayoutRect(arrowElement);
|
|
2853
2808
|
var minProp = axis === 'y' ? top : left;
|
|
2854
2809
|
var maxProp = axis === 'y' ? bottom : right;
|
|
@@ -2870,9 +2825,12 @@ function arrow(_ref) {
|
|
|
2870
2825
|
|
|
2871
2826
|
function effect(_ref2) {
|
|
2872
2827
|
var state = _ref2.state,
|
|
2873
|
-
options = _ref2.options
|
|
2828
|
+
options = _ref2.options,
|
|
2829
|
+
name = _ref2.name;
|
|
2874
2830
|
var _options$element = options.element,
|
|
2875
|
-
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element
|
|
2831
|
+
arrowElement = _options$element === void 0 ? '[data-popper-arrow]' : _options$element,
|
|
2832
|
+
_options$padding = options.padding,
|
|
2833
|
+
padding = _options$padding === void 0 ? 0 : _options$padding;
|
|
2876
2834
|
|
|
2877
2835
|
if (arrowElement == null) {
|
|
2878
2836
|
return;
|
|
@@ -2902,6 +2860,9 @@ function effect(_ref2) {
|
|
|
2902
2860
|
}
|
|
2903
2861
|
|
|
2904
2862
|
state.elements.arrow = arrowElement;
|
|
2863
|
+
state.modifiersData[name + "#persistent"] = {
|
|
2864
|
+
padding: mergePaddingObject(typeof padding !== 'number' ? padding : expandToHashMap(padding, basePlacements))
|
|
2865
|
+
};
|
|
2905
2866
|
} // eslint-disable-next-line import/no-unused-modules
|
|
2906
2867
|
|
|
2907
2868
|
|
|
@@ -2924,14 +2885,14 @@ var unsetSides = {
|
|
|
2924
2885
|
// Zooming can change the DPR, but it seems to report a value that will
|
|
2925
2886
|
// cleanly divide the values into the appropriate subpixels.
|
|
2926
2887
|
|
|
2927
|
-
function
|
|
2888
|
+
function roundOffsets(_ref) {
|
|
2928
2889
|
var x = _ref.x,
|
|
2929
2890
|
y = _ref.y;
|
|
2930
2891
|
var win = window;
|
|
2931
2892
|
var dpr = win.devicePixelRatio || 1;
|
|
2932
2893
|
return {
|
|
2933
|
-
x: round(
|
|
2934
|
-
y: round(
|
|
2894
|
+
x: Math.round(x * dpr) / dpr || 0,
|
|
2895
|
+
y: Math.round(y * dpr) / dpr || 0
|
|
2935
2896
|
};
|
|
2936
2897
|
}
|
|
2937
2898
|
|
|
@@ -2944,14 +2905,11 @@ function mapToStyles(_ref2) {
|
|
|
2944
2905
|
offsets = _ref2.offsets,
|
|
2945
2906
|
position = _ref2.position,
|
|
2946
2907
|
gpuAcceleration = _ref2.gpuAcceleration,
|
|
2947
|
-
adaptive = _ref2.adaptive
|
|
2948
|
-
roundOffsets = _ref2.roundOffsets;
|
|
2908
|
+
adaptive = _ref2.adaptive;
|
|
2949
2909
|
|
|
2950
|
-
var
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
_ref3$y = _ref3.y,
|
|
2954
|
-
y = _ref3$y === void 0 ? 0 : _ref3$y;
|
|
2910
|
+
var _roundOffsets = roundOffsets(offsets),
|
|
2911
|
+
x = _roundOffsets.x,
|
|
2912
|
+
y = _roundOffsets.y;
|
|
2955
2913
|
|
|
2956
2914
|
var hasX = offsets.hasOwnProperty('x');
|
|
2957
2915
|
var hasY = offsets.hasOwnProperty('y');
|
|
@@ -2961,32 +2919,23 @@ function mapToStyles(_ref2) {
|
|
|
2961
2919
|
|
|
2962
2920
|
if (adaptive) {
|
|
2963
2921
|
var offsetParent = getOffsetParent(popper);
|
|
2964
|
-
var heightProp = 'clientHeight';
|
|
2965
|
-
var widthProp = 'clientWidth';
|
|
2966
2922
|
|
|
2967
2923
|
if (offsetParent === getWindow(popper)) {
|
|
2968
2924
|
offsetParent = getDocumentElement(popper);
|
|
2925
|
+
} // $FlowFixMe: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2969
2926
|
|
|
2970
|
-
|
|
2971
|
-
heightProp = 'scrollHeight';
|
|
2972
|
-
widthProp = 'scrollWidth';
|
|
2973
|
-
}
|
|
2974
|
-
} // $FlowFixMe[incompatible-cast]: force type refinement, we compare offsetParent with window above, but Flow doesn't detect it
|
|
2975
|
-
|
|
2927
|
+
/*:: offsetParent = (offsetParent: Element); */
|
|
2976
2928
|
|
|
2977
|
-
offsetParent = offsetParent;
|
|
2978
2929
|
|
|
2979
2930
|
if (placement === top) {
|
|
2980
|
-
sideY = bottom;
|
|
2981
|
-
|
|
2982
|
-
y -= offsetParent[heightProp] - popperRect.height;
|
|
2931
|
+
sideY = bottom;
|
|
2932
|
+
y -= offsetParent.clientHeight - popperRect.height;
|
|
2983
2933
|
y *= gpuAcceleration ? 1 : -1;
|
|
2984
2934
|
}
|
|
2985
2935
|
|
|
2986
2936
|
if (placement === left) {
|
|
2987
|
-
sideX = right;
|
|
2988
|
-
|
|
2989
|
-
x -= offsetParent[widthProp] - popperRect.width;
|
|
2937
|
+
sideX = right;
|
|
2938
|
+
x -= offsetParent.clientWidth - popperRect.width;
|
|
2990
2939
|
x *= gpuAcceleration ? 1 : -1;
|
|
2991
2940
|
}
|
|
2992
2941
|
}
|
|
@@ -2998,21 +2947,19 @@ function mapToStyles(_ref2) {
|
|
|
2998
2947
|
if (gpuAcceleration) {
|
|
2999
2948
|
var _Object$assign;
|
|
3000
2949
|
|
|
3001
|
-
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));
|
|
2950
|
+
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));
|
|
3002
2951
|
}
|
|
3003
2952
|
|
|
3004
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
|
|
2953
|
+
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));
|
|
3005
2954
|
}
|
|
3006
2955
|
|
|
3007
|
-
function computeStyles(
|
|
3008
|
-
var state =
|
|
3009
|
-
options =
|
|
2956
|
+
function computeStyles(_ref3) {
|
|
2957
|
+
var state = _ref3.state,
|
|
2958
|
+
options = _ref3.options;
|
|
3010
2959
|
var _options$gpuAccelerat = options.gpuAcceleration,
|
|
3011
2960
|
gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
|
|
3012
2961
|
_options$adaptive = options.adaptive,
|
|
3013
|
-
adaptive = _options$adaptive === void 0 ? true : _options$adaptive
|
|
3014
|
-
_options$roundOffsets = options.roundOffsets,
|
|
3015
|
-
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
|
2962
|
+
adaptive = _options$adaptive === void 0 ? true : _options$adaptive;
|
|
3016
2963
|
|
|
3017
2964
|
if (process.env.NODE_ENV !== "production") {
|
|
3018
2965
|
var transitionProperty = getComputedStyle$2(state.elements.popper).transitionProperty || '';
|
|
@@ -3032,24 +2979,22 @@ function computeStyles(_ref4) {
|
|
|
3032
2979
|
};
|
|
3033
2980
|
|
|
3034
2981
|
if (state.modifiersData.popperOffsets != null) {
|
|
3035
|
-
state.styles.popper = Object.assign({}, state.styles.popper, mapToStyles(Object.assign({}, commonStyles, {
|
|
2982
|
+
state.styles.popper = Object.assign(Object.assign({}, state.styles.popper), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3036
2983
|
offsets: state.modifiersData.popperOffsets,
|
|
3037
2984
|
position: state.options.strategy,
|
|
3038
|
-
adaptive: adaptive
|
|
3039
|
-
roundOffsets: roundOffsets
|
|
2985
|
+
adaptive: adaptive
|
|
3040
2986
|
})));
|
|
3041
2987
|
}
|
|
3042
2988
|
|
|
3043
2989
|
if (state.modifiersData.arrow != null) {
|
|
3044
|
-
state.styles.arrow = Object.assign({}, state.styles.arrow, mapToStyles(Object.assign({}, commonStyles, {
|
|
2990
|
+
state.styles.arrow = Object.assign(Object.assign({}, state.styles.arrow), mapToStyles(Object.assign(Object.assign({}, commonStyles), {}, {
|
|
3045
2991
|
offsets: state.modifiersData.arrow,
|
|
3046
2992
|
position: 'absolute',
|
|
3047
|
-
adaptive: false
|
|
3048
|
-
roundOffsets: roundOffsets
|
|
2993
|
+
adaptive: false
|
|
3049
2994
|
})));
|
|
3050
2995
|
}
|
|
3051
2996
|
|
|
3052
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
2997
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3053
2998
|
'data-popper-placement': state.placement
|
|
3054
2999
|
});
|
|
3055
3000
|
} // eslint-disable-next-line import/no-unused-modules
|
|
@@ -3133,6 +3078,20 @@ function getOppositeVariationPlacement(placement) {
|
|
|
3133
3078
|
});
|
|
3134
3079
|
}
|
|
3135
3080
|
|
|
3081
|
+
function getBoundingClientRect(element) {
|
|
3082
|
+
var rect = element.getBoundingClientRect();
|
|
3083
|
+
return {
|
|
3084
|
+
width: rect.width,
|
|
3085
|
+
height: rect.height,
|
|
3086
|
+
top: rect.top,
|
|
3087
|
+
right: rect.right,
|
|
3088
|
+
bottom: rect.bottom,
|
|
3089
|
+
left: rect.left,
|
|
3090
|
+
x: rect.left,
|
|
3091
|
+
y: rect.top
|
|
3092
|
+
};
|
|
3093
|
+
}
|
|
3094
|
+
|
|
3136
3095
|
function getWindowScroll(node) {
|
|
3137
3096
|
var win = getWindow(node);
|
|
3138
3097
|
var scrollLeft = win.pageXOffset;
|
|
@@ -3195,18 +3154,16 @@ function getViewportRect(element) {
|
|
|
3195
3154
|
// of the `<html>` and `<body>` rect bounds if horizontally scrollable
|
|
3196
3155
|
|
|
3197
3156
|
function getDocumentRect(element) {
|
|
3198
|
-
var _element$ownerDocumen;
|
|
3199
|
-
|
|
3200
3157
|
var html = getDocumentElement(element);
|
|
3201
3158
|
var winScroll = getWindowScroll(element);
|
|
3202
|
-
var body =
|
|
3203
|
-
var width = max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3204
|
-
var height = max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3159
|
+
var body = element.ownerDocument.body;
|
|
3160
|
+
var width = Math.max(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
3161
|
+
var height = Math.max(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
3205
3162
|
var x = -winScroll.scrollLeft + getWindowScrollBarX(element);
|
|
3206
3163
|
var y = -winScroll.scrollTop;
|
|
3207
3164
|
|
|
3208
3165
|
if (getComputedStyle$2(body || html).direction === 'rtl') {
|
|
3209
|
-
x += max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3166
|
+
x += Math.max(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
3210
3167
|
}
|
|
3211
3168
|
|
|
3212
3169
|
return {
|
|
@@ -3229,7 +3186,7 @@ function isScrollParent(element) {
|
|
|
3229
3186
|
|
|
3230
3187
|
function getScrollParent(node) {
|
|
3231
3188
|
if (['html', 'body', '#document'].indexOf(getNodeName(node)) >= 0) {
|
|
3232
|
-
// $FlowFixMe
|
|
3189
|
+
// $FlowFixMe: assume body is always available
|
|
3233
3190
|
return node.ownerDocument.body;
|
|
3234
3191
|
}
|
|
3235
3192
|
|
|
@@ -3243,28 +3200,26 @@ function getScrollParent(node) {
|
|
|
3243
3200
|
/*
|
|
3244
3201
|
given a DOM element, return the list of all scroll parents, up the list of ancesors
|
|
3245
3202
|
until we get to the top window object. This list is what we attach scroll listeners
|
|
3246
|
-
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3203
|
+
to, because if any of these parent elements scroll, we'll need to re-calculate the
|
|
3247
3204
|
reference element's position.
|
|
3248
3205
|
*/
|
|
3249
3206
|
|
|
3250
3207
|
function listScrollParents(element, list) {
|
|
3251
|
-
var _element$ownerDocumen;
|
|
3252
|
-
|
|
3253
3208
|
if (list === void 0) {
|
|
3254
3209
|
list = [];
|
|
3255
3210
|
}
|
|
3256
3211
|
|
|
3257
3212
|
var scrollParent = getScrollParent(element);
|
|
3258
|
-
var isBody = scrollParent ===
|
|
3213
|
+
var isBody = getNodeName(scrollParent) === 'body';
|
|
3259
3214
|
var win = getWindow(scrollParent);
|
|
3260
3215
|
var target = isBody ? [win].concat(win.visualViewport || [], isScrollParent(scrollParent) ? scrollParent : []) : scrollParent;
|
|
3261
3216
|
var updatedList = list.concat(target);
|
|
3262
|
-
return isBody ? updatedList : // $FlowFixMe
|
|
3217
|
+
return isBody ? updatedList : // $FlowFixMe: isBody tells us target will be an HTMLElement here
|
|
3263
3218
|
updatedList.concat(listScrollParents(getParentNode(target)));
|
|
3264
3219
|
}
|
|
3265
3220
|
|
|
3266
3221
|
function rectToClientRect(rect) {
|
|
3267
|
-
return Object.assign({}, rect, {
|
|
3222
|
+
return Object.assign(Object.assign({}, rect), {}, {
|
|
3268
3223
|
left: rect.x,
|
|
3269
3224
|
top: rect.y,
|
|
3270
3225
|
right: rect.x + rect.width,
|
|
@@ -3299,7 +3254,7 @@ function getClippingParents(element) {
|
|
|
3299
3254
|
|
|
3300
3255
|
if (!isElement(clipperElement)) {
|
|
3301
3256
|
return [];
|
|
3302
|
-
} // $FlowFixMe
|
|
3257
|
+
} // $FlowFixMe: https://github.com/facebook/flow/issues/1414
|
|
3303
3258
|
|
|
3304
3259
|
|
|
3305
3260
|
return clippingParents.filter(function (clippingParent) {
|
|
@@ -3315,10 +3270,10 @@ function getClippingRect(element, boundary, rootBoundary) {
|
|
|
3315
3270
|
var firstClippingParent = clippingParents[0];
|
|
3316
3271
|
var clippingRect = clippingParents.reduce(function (accRect, clippingParent) {
|
|
3317
3272
|
var rect = getClientRectFromMixedType(element, clippingParent);
|
|
3318
|
-
accRect.top = max(rect.top, accRect.top);
|
|
3319
|
-
accRect.right = min(rect.right, accRect.right);
|
|
3320
|
-
accRect.bottom = min(rect.bottom, accRect.bottom);
|
|
3321
|
-
accRect.left = max(rect.left, accRect.left);
|
|
3273
|
+
accRect.top = Math.max(rect.top, accRect.top);
|
|
3274
|
+
accRect.right = Math.min(rect.right, accRect.right);
|
|
3275
|
+
accRect.bottom = Math.min(rect.bottom, accRect.bottom);
|
|
3276
|
+
accRect.left = Math.max(rect.left, accRect.left);
|
|
3322
3277
|
return accRect;
|
|
3323
3278
|
}, getClientRectFromMixedType(element, firstClippingParent));
|
|
3324
3279
|
clippingRect.width = clippingRect.right - clippingRect.left;
|
|
@@ -3385,11 +3340,11 @@ function computeOffsets(_ref) {
|
|
|
3385
3340
|
|
|
3386
3341
|
switch (variation) {
|
|
3387
3342
|
case start:
|
|
3388
|
-
offsets[mainAxis] = offsets[mainAxis] - (reference[len] / 2 - element[len] / 2);
|
|
3343
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) - Math.floor(reference[len] / 2 - element[len] / 2);
|
|
3389
3344
|
break;
|
|
3390
3345
|
|
|
3391
3346
|
case end:
|
|
3392
|
-
offsets[mainAxis] = offsets[mainAxis] + (reference[len] / 2 - element[len] / 2);
|
|
3347
|
+
offsets[mainAxis] = Math.floor(offsets[mainAxis]) + Math.ceil(reference[len] / 2 - element[len] / 2);
|
|
3393
3348
|
break;
|
|
3394
3349
|
}
|
|
3395
3350
|
}
|
|
@@ -3428,7 +3383,7 @@ function detectOverflow(state, options) {
|
|
|
3428
3383
|
strategy: 'absolute',
|
|
3429
3384
|
placement: placement
|
|
3430
3385
|
});
|
|
3431
|
-
var popperClientRect = rectToClientRect(Object.assign({}, popperRect, popperOffsets));
|
|
3386
|
+
var popperClientRect = rectToClientRect(Object.assign(Object.assign({}, popperRect), popperOffsets));
|
|
3432
3387
|
var elementClientRect = elementContext === popper ? popperClientRect : referenceClientRect; // positive = overflowing the clipping rect
|
|
3433
3388
|
// 0 or negative = within the clipping rect
|
|
3434
3389
|
|
|
@@ -3452,6 +3407,9 @@ function detectOverflow(state, options) {
|
|
|
3452
3407
|
return overflowOffsets;
|
|
3453
3408
|
}
|
|
3454
3409
|
|
|
3410
|
+
/*:: type OverflowsMap = { [ComputedPlacement]: number }; */
|
|
3411
|
+
|
|
3412
|
+
/*;; type OverflowsMap = { [key in ComputedPlacement]: number }; */
|
|
3455
3413
|
function computeAutoPlacement(state, options) {
|
|
3456
3414
|
if (options === void 0) {
|
|
3457
3415
|
options = {};
|
|
@@ -3468,7 +3426,8 @@ function computeAutoPlacement(state, options) {
|
|
|
3468
3426
|
var variation = getVariation(placement);
|
|
3469
3427
|
var placements$1 = variation ? flipVariations ? variationPlacements : variationPlacements.filter(function (placement) {
|
|
3470
3428
|
return getVariation(placement) === variation;
|
|
3471
|
-
}) : basePlacements;
|
|
3429
|
+
}) : basePlacements; // $FlowFixMe
|
|
3430
|
+
|
|
3472
3431
|
var allowedPlacements = placements$1.filter(function (placement) {
|
|
3473
3432
|
return allowedAutoPlacements.indexOf(placement) >= 0;
|
|
3474
3433
|
});
|
|
@@ -3479,7 +3438,7 @@ function computeAutoPlacement(state, options) {
|
|
|
3479
3438
|
if (process.env.NODE_ENV !== "production") {
|
|
3480
3439
|
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(' '));
|
|
3481
3440
|
}
|
|
3482
|
-
} // $FlowFixMe
|
|
3441
|
+
} // $FlowFixMe: Flow seems to have problems with two array unions...
|
|
3483
3442
|
|
|
3484
3443
|
|
|
3485
3444
|
var overflows = allowedPlacements.reduce(function (acc, placement) {
|
|
@@ -3680,7 +3639,7 @@ function hide(_ref) {
|
|
|
3680
3639
|
isReferenceHidden: isReferenceHidden,
|
|
3681
3640
|
hasPopperEscaped: hasPopperEscaped
|
|
3682
3641
|
};
|
|
3683
|
-
state.attributes.popper = Object.assign({}, state.attributes.popper, {
|
|
3642
|
+
state.attributes.popper = Object.assign(Object.assign({}, state.attributes.popper), {}, {
|
|
3684
3643
|
'data-popper-reference-hidden': isReferenceHidden,
|
|
3685
3644
|
'data-popper-escaped': hasPopperEscaped
|
|
3686
3645
|
});
|
|
@@ -3699,7 +3658,7 @@ function distanceAndSkiddingToXY(placement, rects, offset) {
|
|
|
3699
3658
|
var basePlacement = getBasePlacement(placement);
|
|
3700
3659
|
var invertDistance = [left, top].indexOf(basePlacement) >= 0 ? -1 : 1;
|
|
3701
3660
|
|
|
3702
|
-
var _ref = typeof offset === 'function' ? offset(Object.assign({}, rects, {
|
|
3661
|
+
var _ref = typeof offset === 'function' ? offset(Object.assign(Object.assign({}, rects), {}, {
|
|
3703
3662
|
placement: placement
|
|
3704
3663
|
})) : offset,
|
|
3705
3664
|
skidding = _ref[0],
|
|
@@ -3805,7 +3764,7 @@ function preventOverflow(_ref) {
|
|
|
3805
3764
|
var popperOffsets = state.modifiersData.popperOffsets;
|
|
3806
3765
|
var referenceRect = state.rects.reference;
|
|
3807
3766
|
var popperRect = state.rects.popper;
|
|
3808
|
-
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign({}, state.rects, {
|
|
3767
|
+
var tetherOffsetValue = typeof tetherOffset === 'function' ? tetherOffset(Object.assign(Object.assign({}, state.rects), {}, {
|
|
3809
3768
|
placement: state.placement
|
|
3810
3769
|
})) : tetherOffset;
|
|
3811
3770
|
var data = {
|
|
@@ -3817,13 +3776,13 @@ function preventOverflow(_ref) {
|
|
|
3817
3776
|
return;
|
|
3818
3777
|
}
|
|
3819
3778
|
|
|
3820
|
-
if (checkMainAxis
|
|
3779
|
+
if (checkMainAxis) {
|
|
3821
3780
|
var mainSide = mainAxis === 'y' ? top : left;
|
|
3822
3781
|
var altSide = mainAxis === 'y' ? bottom : right;
|
|
3823
3782
|
var len = mainAxis === 'y' ? 'height' : 'width';
|
|
3824
3783
|
var offset = popperOffsets[mainAxis];
|
|
3825
|
-
var min
|
|
3826
|
-
var max
|
|
3784
|
+
var min = popperOffsets[mainAxis] + overflow[mainSide];
|
|
3785
|
+
var max = popperOffsets[mainAxis] - overflow[altSide];
|
|
3827
3786
|
var additive = tether ? -popperRect[len] / 2 : 0;
|
|
3828
3787
|
var minLen = variation === start ? referenceRect[len] : popperRect[len];
|
|
3829
3788
|
var maxLen = variation === start ? -popperRect[len] : -referenceRect[len]; // We need to include the arrow in the calculation so the arrow doesn't go
|
|
@@ -3850,29 +3809,26 @@ function preventOverflow(_ref) {
|
|
|
3850
3809
|
var offsetModifierValue = state.modifiersData.offset ? state.modifiersData.offset[state.placement][mainAxis] : 0;
|
|
3851
3810
|
var tetherMin = popperOffsets[mainAxis] + minOffset - offsetModifierValue - clientOffset;
|
|
3852
3811
|
var tetherMax = popperOffsets[mainAxis] + maxOffset - offsetModifierValue;
|
|
3812
|
+
var preventedOffset = within(tether ? Math.min(min, tetherMin) : min, offset, tether ? Math.max(max, tetherMax) : max);
|
|
3813
|
+
popperOffsets[mainAxis] = preventedOffset;
|
|
3814
|
+
data[mainAxis] = preventedOffset - offset;
|
|
3815
|
+
}
|
|
3853
3816
|
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
popperOffsets[mainAxis] = preventedOffset;
|
|
3857
|
-
data[mainAxis] = preventedOffset - offset;
|
|
3858
|
-
}
|
|
3859
|
-
|
|
3860
|
-
if (checkAltAxis) {
|
|
3861
|
-
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3817
|
+
if (checkAltAxis) {
|
|
3818
|
+
var _mainSide = mainAxis === 'x' ? top : left;
|
|
3862
3819
|
|
|
3863
|
-
|
|
3820
|
+
var _altSide = mainAxis === 'x' ? bottom : right;
|
|
3864
3821
|
|
|
3865
|
-
|
|
3822
|
+
var _offset = popperOffsets[altAxis];
|
|
3866
3823
|
|
|
3867
|
-
|
|
3824
|
+
var _min = _offset + overflow[_mainSide];
|
|
3868
3825
|
|
|
3869
|
-
|
|
3826
|
+
var _max = _offset - overflow[_altSide];
|
|
3870
3827
|
|
|
3871
|
-
|
|
3828
|
+
var _preventedOffset = within(_min, _offset, _max);
|
|
3872
3829
|
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
}
|
|
3830
|
+
popperOffsets[altAxis] = _preventedOffset;
|
|
3831
|
+
data[altAxis] = _preventedOffset - _offset;
|
|
3876
3832
|
}
|
|
3877
3833
|
|
|
3878
3834
|
state.modifiersData[name] = data;
|
|
@@ -4103,9 +4059,9 @@ function uniqueBy(arr, fn) {
|
|
|
4103
4059
|
function mergeByName(modifiers) {
|
|
4104
4060
|
var merged = modifiers.reduce(function (merged, current) {
|
|
4105
4061
|
var existing = merged[current.name];
|
|
4106
|
-
merged[current.name] = existing ? Object.assign({}, existing, current, {
|
|
4107
|
-
options: Object.assign({}, existing.options, current.options),
|
|
4108
|
-
data: Object.assign({}, existing.data, current.data)
|
|
4062
|
+
merged[current.name] = existing ? Object.assign(Object.assign(Object.assign({}, existing), current), {}, {
|
|
4063
|
+
options: Object.assign(Object.assign({}, existing.options), current.options),
|
|
4064
|
+
data: Object.assign(Object.assign({}, existing.data), current.data)
|
|
4109
4065
|
}) : current;
|
|
4110
4066
|
return merged;
|
|
4111
4067
|
}, {}); // IE11 does not support Object.values
|
|
@@ -4151,7 +4107,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4151
4107
|
var state = {
|
|
4152
4108
|
placement: 'bottom',
|
|
4153
4109
|
orderedModifiers: [],
|
|
4154
|
-
options: Object.assign({}, DEFAULT_OPTIONS, defaultOptions),
|
|
4110
|
+
options: Object.assign(Object.assign({}, DEFAULT_OPTIONS), defaultOptions),
|
|
4155
4111
|
modifiersData: {},
|
|
4156
4112
|
elements: {
|
|
4157
4113
|
reference: reference,
|
|
@@ -4166,7 +4122,7 @@ function popperGenerator(generatorOptions) {
|
|
|
4166
4122
|
state: state,
|
|
4167
4123
|
setOptions: function setOptions(options) {
|
|
4168
4124
|
cleanupModifierEffects();
|
|
4169
|
-
state.options = Object.assign({}, defaultOptions, state.options, options);
|
|
4125
|
+
state.options = Object.assign(Object.assign(Object.assign({}, defaultOptions), state.options), options);
|
|
4170
4126
|
state.scrollParents = {
|
|
4171
4127
|
reference: isElement(reference) ? listScrollParents(reference) : reference.contextElement ? listScrollParents(reference.contextElement) : [],
|
|
4172
4128
|
popper: listScrollParents(popper)
|
|
@@ -9378,7 +9334,7 @@ var Tooltip = React.forwardRef(function (_ref, ref) {
|
|
|
9378
9334
|
Tooltip.defaultProps = defaultProps$E;
|
|
9379
9335
|
Tooltip.displayName = 'Tooltip';
|
|
9380
9336
|
|
|
9381
|
-
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";
|
|
9337
|
+
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";
|
|
9382
9338
|
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" };
|
|
9383
9339
|
styleInject(css);
|
|
9384
9340
|
|
|
@@ -9465,11 +9421,11 @@ var Filter = function Filter(_ref) {
|
|
|
9465
9421
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
9466
9422
|
grandChildData = _useState6[0],
|
|
9467
9423
|
setGrandChildData = _useState6[1];
|
|
9468
|
-
/*
|
|
9469
|
-
{parent: showAll,
|
|
9470
|
-
chidlren: show selected from parent,
|
|
9471
|
-
grandchildren: show selected from children
|
|
9472
|
-
}
|
|
9424
|
+
/*
|
|
9425
|
+
{parent: showAll,
|
|
9426
|
+
chidlren: show selected from parent,
|
|
9427
|
+
grandchildren: show selected from children
|
|
9428
|
+
}
|
|
9473
9429
|
*/
|
|
9474
9430
|
|
|
9475
9431
|
|