@mjhls/mjh-framework 1.0.863-author-details-v2 → 1.0.863-beta.1
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/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1198 -238
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +1242 -139
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +203 -209
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +5 -354
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-04a5a4a2.js → index-a1e54356.js} +934 -961
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +62 -66
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1186 -222
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +1240 -136
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +184 -186
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +5 -354
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-cf54da7f.js → index-a1c5f00a.js} +887 -904
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +52 -53
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +2 -2
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/index-bd6c9f56.js +0 -211
- package/dist/esm/index-db3bb315.js +0 -207
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as createCommonjsModule,
|
|
1
|
+
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
2
|
import './_to-object-a4107da3.js';
|
|
3
3
|
import './es6.string.iterator-c990c18c.js';
|
|
4
4
|
import './_library-528f1934.js';
|
|
@@ -8,30 +8,30 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import { _ as _extends } from './extends-6f2fcc99.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-
|
|
14
|
+
import './typeof-6435ba1c.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
|
-
import
|
|
16
|
+
import React__default, { Component, createContext, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
17
17
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-41a678ea.js';
|
|
19
19
|
import PropTypes from 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
21
21
|
import 'react-bootstrap/Col';
|
|
22
22
|
import 'react-bootstrap/Card';
|
|
23
|
-
import { m as moment } from './moment-
|
|
23
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
24
24
|
import 'next/router';
|
|
25
25
|
import './isSymbol-1981418f.js';
|
|
26
26
|
import './debounce-9207d8ee.js';
|
|
27
27
|
import './toNumber-2f7a84cd.js';
|
|
28
|
-
import './index.es-
|
|
28
|
+
import './index.es-29c1cef5.js';
|
|
29
29
|
import 'react-dom';
|
|
30
|
-
import './visibility-sensor-
|
|
31
|
-
import './index-
|
|
30
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
31
|
+
import './index-73819142.js';
|
|
32
32
|
import urlFor from './urlFor.js';
|
|
33
|
-
import './index-
|
|
34
|
-
import './main-
|
|
33
|
+
import './index-5f7e79e7.js';
|
|
34
|
+
import './main-e4a934b2.js';
|
|
35
35
|
import './entities-7cc3bf45.js';
|
|
36
36
|
import { _ as _slicedToArray } from './slicedToArray-641f241f.js';
|
|
37
37
|
import './stringify-4330ccdc.js';
|
|
@@ -39,14 +39,14 @@ import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asy
|
|
|
39
39
|
import './Segment.js';
|
|
40
40
|
import './Beam.js';
|
|
41
41
|
import './AdSlot.js';
|
|
42
|
-
import './ADInfeed-
|
|
43
|
-
import './lodash-
|
|
44
|
-
import './ADlgInfeed-
|
|
42
|
+
import './ADInfeed-1cc9d817.js';
|
|
43
|
+
import './lodash-17fdfebb.js';
|
|
44
|
+
import './ADlgInfeed-8c4f129e.js';
|
|
45
45
|
import './getContentCategory-15dcc413.js';
|
|
46
|
-
import './AuthorComponent-
|
|
46
|
+
import './AuthorComponent-34b16174.js';
|
|
47
47
|
import 'react-bootstrap/Button';
|
|
48
|
-
import { B as BlockContent } from './BlockContent-
|
|
49
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-
|
|
48
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
49
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
50
50
|
import './index-c7e2ac95.js';
|
|
51
51
|
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
52
52
|
import './GroupDeck.js';
|
|
@@ -54,10 +54,10 @@ import 'react-bootstrap';
|
|
|
54
54
|
import './timeDifferenceCalc.js';
|
|
55
55
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
56
56
|
import './iconBase-602d52fe.js';
|
|
57
|
-
import './index.esm-
|
|
58
|
-
import { g as getSerializers } from './index-
|
|
57
|
+
import './index.esm-29e48d38.js';
|
|
58
|
+
import { g as getSerializers } from './index-a1c5f00a.js';
|
|
59
59
|
import './util-7700fc59.js';
|
|
60
|
-
import './brightcove-react-player-loader.es-
|
|
60
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
61
61
|
import 'next/head';
|
|
62
62
|
import 'react-share';
|
|
63
63
|
import './SocialShare.js';
|
|
@@ -67,11 +67,1108 @@ import 'react-bootstrap/Figure';
|
|
|
67
67
|
import 'react-bootstrap/OverlayTrigger';
|
|
68
68
|
import 'react-bootstrap/Tooltip';
|
|
69
69
|
import 'react-bootstrap/Popover';
|
|
70
|
+
import { _ as _defineProperty$1, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
70
71
|
import 'react-bootstrap/Carousel';
|
|
71
72
|
import Feature from './Feature.js';
|
|
72
73
|
import 'react-bootstrap/Breadcrumb';
|
|
73
74
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
74
|
-
|
|
75
|
+
|
|
76
|
+
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
77
|
+
Object.defineProperty(exports,'__esModule',{value:!0});var VALIDATOR_ARG_ERROR_MESSAGE='The typeValidator argument must be a function with the signature function(props, propName, componentName).',MESSAGE_ARG_ERROR_MESSAGE='The error message is optional, but must be a string if provided.',propIsRequired=function propIsRequired(a,b,c,d){if('boolean'==typeof a)return a;return 'function'==typeof a?a(b,c,d):!(!0!==!!a)&&!!a},propExists=function propExists(a,b){return Object.hasOwnProperty.call(a,b)},missingPropError=function missingPropError(a,b,c,d){return d?new Error(d):new Error('Required '+a[b]+' `'+b+'`'+(' was not specified in `'+c+'`.'))},guardAgainstInvalidArgTypes=function guardAgainstInvalidArgTypes(a,b){if('function'!=typeof a)throw new TypeError(VALIDATOR_ARG_ERROR_MESSAGE);if(!!b&&'string'!=typeof b)throw new TypeError(MESSAGE_ARG_ERROR_MESSAGE)},isRequiredIf=function isRequiredIf(a,b,c){return guardAgainstInvalidArgTypes(a,c),function(d,e,f){for(var _len=arguments.length,g=Array(3<_len?_len-3:0),_key=3;_key<_len;_key++)g[_key-3]=arguments[_key];return propIsRequired(b,d,e,f)?propExists(d,e)?a.apply(void 0,[d,e,f].concat(g)):missingPropError(d,e,f,c):a.apply(void 0,[d,e,f].concat(g));// Is not required, so just run typeValidator.
|
|
78
|
+
}};exports.default=isRequiredIf;
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
84
|
+
|
|
85
|
+
var exenv = createCommonjsModule(function (module) {
|
|
86
|
+
/*!
|
|
87
|
+
Copyright (c) 2015 Jed Watson.
|
|
88
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
89
|
+
All rights reserved.
|
|
90
|
+
*/
|
|
91
|
+
/* global define */
|
|
92
|
+
|
|
93
|
+
(function () {
|
|
94
|
+
|
|
95
|
+
var canUseDOM = !!(
|
|
96
|
+
typeof window !== 'undefined' &&
|
|
97
|
+
window.document &&
|
|
98
|
+
window.document.createElement
|
|
99
|
+
);
|
|
100
|
+
|
|
101
|
+
var ExecutionEnvironment = {
|
|
102
|
+
|
|
103
|
+
canUseDOM: canUseDOM,
|
|
104
|
+
|
|
105
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
106
|
+
|
|
107
|
+
canUseEventListeners:
|
|
108
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
109
|
+
|
|
110
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
111
|
+
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
if ( module.exports) {
|
|
115
|
+
module.exports = ExecutionEnvironment;
|
|
116
|
+
} else {
|
|
117
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}());
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
124
|
+
|
|
125
|
+
var TwitterTimelineEmbed =
|
|
126
|
+
/*#__PURE__*/
|
|
127
|
+
function (_Component) {
|
|
128
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
129
|
+
|
|
130
|
+
function TwitterTimelineEmbed(props) {
|
|
131
|
+
var _this;
|
|
132
|
+
|
|
133
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
134
|
+
|
|
135
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
136
|
+
_this.state = {
|
|
137
|
+
isLoading: true
|
|
138
|
+
};
|
|
139
|
+
return _this;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
143
|
+
key: "buildChromeOptions",
|
|
144
|
+
value: function buildChromeOptions(options) {
|
|
145
|
+
options.chrome = '';
|
|
146
|
+
|
|
147
|
+
if (this.props.noHeader) {
|
|
148
|
+
options.chrome = options.chrome + ' noheader';
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (this.props.noFooter) {
|
|
152
|
+
options.chrome = options.chrome + ' nofooter';
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
if (this.props.noBorders) {
|
|
156
|
+
options.chrome = options.chrome + ' noborders';
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (this.props.noScrollbar) {
|
|
160
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (this.props.transparent) {
|
|
164
|
+
options.chrome = options.chrome + ' transparent';
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return options;
|
|
168
|
+
}
|
|
169
|
+
}, {
|
|
170
|
+
key: "buildOptions",
|
|
171
|
+
value: function buildOptions() {
|
|
172
|
+
var options = Object.assign({}, this.props.options);
|
|
173
|
+
|
|
174
|
+
if (this.props.autoHeight) {
|
|
175
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
options = Object.assign({}, options, {
|
|
179
|
+
theme: this.props.theme,
|
|
180
|
+
linkColor: this.props.linkColor,
|
|
181
|
+
borderColor: this.props.borderColor,
|
|
182
|
+
lang: this.props.lang
|
|
183
|
+
});
|
|
184
|
+
return options;
|
|
185
|
+
}
|
|
186
|
+
}, {
|
|
187
|
+
key: "renderWidget",
|
|
188
|
+
value: function renderWidget(options) {
|
|
189
|
+
var _this2 = this;
|
|
190
|
+
|
|
191
|
+
var onLoad = this.props.onLoad;
|
|
192
|
+
|
|
193
|
+
if (!this.isMountCanceled) {
|
|
194
|
+
window.twttr.widgets.createTimeline({
|
|
195
|
+
sourceType: this.props.sourceType,
|
|
196
|
+
screenName: this.props.screenName,
|
|
197
|
+
userId: this.props.userId,
|
|
198
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
199
|
+
slug: this.props.slug,
|
|
200
|
+
id: this.props.id || this.props.widgetId,
|
|
201
|
+
url: this.props.url
|
|
202
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
203
|
+
_this2.setState({
|
|
204
|
+
isLoading: false
|
|
205
|
+
});
|
|
206
|
+
|
|
207
|
+
if (onLoad) {
|
|
208
|
+
onLoad(element);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}, {
|
|
214
|
+
key: "componentDidMount",
|
|
215
|
+
value: function componentDidMount() {
|
|
216
|
+
var _this3 = this;
|
|
217
|
+
|
|
218
|
+
if (exenv.canUseDOM) {
|
|
219
|
+
var script = require('scriptjs');
|
|
220
|
+
|
|
221
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
222
|
+
if (!window.twttr) {
|
|
223
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
var options = _this3.buildOptions();
|
|
228
|
+
/** Append chrome options */
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
options = _this3.buildChromeOptions(options);
|
|
232
|
+
|
|
233
|
+
_this3.renderWidget(options);
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}, {
|
|
238
|
+
key: "componentWillUnmount",
|
|
239
|
+
value: function componentWillUnmount() {
|
|
240
|
+
this.isMountCanceled = true;
|
|
241
|
+
}
|
|
242
|
+
}, {
|
|
243
|
+
key: "render",
|
|
244
|
+
value: function render() {
|
|
245
|
+
var isLoading = this.state.isLoading;
|
|
246
|
+
var placeholder = this.props.placeholder;
|
|
247
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
248
|
+
ref: "embedContainer"
|
|
249
|
+
}));
|
|
250
|
+
}
|
|
251
|
+
}]);
|
|
252
|
+
|
|
253
|
+
return TwitterTimelineEmbed;
|
|
254
|
+
}(Component);
|
|
255
|
+
|
|
256
|
+
_defineProperty$1(TwitterTimelineEmbed, "propTypes", {
|
|
257
|
+
/**
|
|
258
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
259
|
+
*/
|
|
260
|
+
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* username of twitter handle as String
|
|
264
|
+
*/
|
|
265
|
+
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
266
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
267
|
+
}),
|
|
268
|
+
|
|
269
|
+
/**
|
|
270
|
+
* UserId of twitter handle as number
|
|
271
|
+
*/
|
|
272
|
+
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
273
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
274
|
+
}),
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* To show list, used along with slug
|
|
278
|
+
*/
|
|
279
|
+
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
280
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
281
|
+
}),
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* To show list, used along with ownerScreenName
|
|
285
|
+
*/
|
|
286
|
+
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
287
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
288
|
+
}),
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* To show list, unique list id
|
|
292
|
+
* Also used with collections, in that case its valid collection id
|
|
293
|
+
*/
|
|
294
|
+
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
295
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
296
|
+
}),
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* To show twitter content with url.
|
|
300
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
301
|
+
*/
|
|
302
|
+
url: isRequiredIf(PropTypes.string, function (props) {
|
|
303
|
+
return props.sourceType === 'url';
|
|
304
|
+
}),
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* To show custom widget
|
|
308
|
+
*/
|
|
309
|
+
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
310
|
+
return props.sourceType === 'widget';
|
|
311
|
+
}),
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* Additional options to pass to twitter widget plugin
|
|
315
|
+
*/
|
|
316
|
+
options: PropTypes.object,
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Automatically fit into parent container height
|
|
320
|
+
*/
|
|
321
|
+
autoHeight: PropTypes.bool,
|
|
322
|
+
|
|
323
|
+
/**
|
|
324
|
+
* With dark or light theme
|
|
325
|
+
*/
|
|
326
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
330
|
+
*/
|
|
331
|
+
linkColor: PropTypes.string,
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
335
|
+
*/
|
|
336
|
+
borderColor: PropTypes.string,
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Hide the header from timeline
|
|
340
|
+
*/
|
|
341
|
+
noHeader: PropTypes.bool,
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Hide the footer from timeline
|
|
345
|
+
*/
|
|
346
|
+
noFooter: PropTypes.bool,
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* Hide the border from timeline
|
|
350
|
+
*/
|
|
351
|
+
noBorders: PropTypes.bool,
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* Hide the scrollbars
|
|
355
|
+
*/
|
|
356
|
+
noScrollbar: PropTypes.bool,
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* Enable Transparancy
|
|
360
|
+
*/
|
|
361
|
+
transparent: PropTypes.bool,
|
|
362
|
+
|
|
363
|
+
/**
|
|
364
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
365
|
+
*/
|
|
366
|
+
lang: PropTypes.string,
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Placeholder while tweet is loading
|
|
370
|
+
*/
|
|
371
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Function to execute after load, return html element
|
|
375
|
+
*/
|
|
376
|
+
onLoad: PropTypes.func
|
|
377
|
+
});
|
|
378
|
+
|
|
379
|
+
var TwitterShareButton =
|
|
380
|
+
/*#__PURE__*/
|
|
381
|
+
function (_Component) {
|
|
382
|
+
_inherits(TwitterShareButton, _Component);
|
|
383
|
+
|
|
384
|
+
function TwitterShareButton(props) {
|
|
385
|
+
var _this;
|
|
386
|
+
|
|
387
|
+
_classCallCheck(this, TwitterShareButton);
|
|
388
|
+
|
|
389
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
390
|
+
_this.state = {
|
|
391
|
+
isLoading: true
|
|
392
|
+
};
|
|
393
|
+
return _this;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
_createClass(TwitterShareButton, [{
|
|
397
|
+
key: "componentDidMount",
|
|
398
|
+
value: function componentDidMount() {
|
|
399
|
+
var _this2 = this;
|
|
400
|
+
|
|
401
|
+
var onLoad = this.props.onLoad;
|
|
402
|
+
|
|
403
|
+
if (exenv.canUseDOM) {
|
|
404
|
+
var script = require('scriptjs');
|
|
405
|
+
|
|
406
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
407
|
+
if (!window.twttr) {
|
|
408
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
if (!_this2.isMountCanceled) {
|
|
413
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
414
|
+
_this2.setState({
|
|
415
|
+
isLoading: false
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
if (onLoad) {
|
|
419
|
+
onLoad(element);
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}, {
|
|
427
|
+
key: "componentWillUnmount",
|
|
428
|
+
value: function componentWillUnmount() {
|
|
429
|
+
this.isMountCanceled = true;
|
|
430
|
+
}
|
|
431
|
+
}, {
|
|
432
|
+
key: "render",
|
|
433
|
+
value: function render() {
|
|
434
|
+
var isLoading = this.state.isLoading;
|
|
435
|
+
var placeholder = this.props.placeholder;
|
|
436
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
437
|
+
ref: "embedContainer"
|
|
438
|
+
}));
|
|
439
|
+
}
|
|
440
|
+
}]);
|
|
441
|
+
|
|
442
|
+
return TwitterShareButton;
|
|
443
|
+
}(Component);
|
|
444
|
+
|
|
445
|
+
_defineProperty$1(TwitterShareButton, "propTypes", {
|
|
446
|
+
/**
|
|
447
|
+
* Url for sharing
|
|
448
|
+
*/
|
|
449
|
+
url: PropTypes.string.isRequired,
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
453
|
+
*/
|
|
454
|
+
options: PropTypes.object,
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Placeholder while tweet is loading
|
|
458
|
+
*/
|
|
459
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Function to execute after load, return html element
|
|
463
|
+
*/
|
|
464
|
+
onLoad: PropTypes.func
|
|
465
|
+
});
|
|
466
|
+
|
|
467
|
+
var TwitterFollowButton =
|
|
468
|
+
/*#__PURE__*/
|
|
469
|
+
function (_Component) {
|
|
470
|
+
_inherits(TwitterFollowButton, _Component);
|
|
471
|
+
|
|
472
|
+
function TwitterFollowButton(props) {
|
|
473
|
+
var _this;
|
|
474
|
+
|
|
475
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
476
|
+
|
|
477
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
478
|
+
_this.state = {
|
|
479
|
+
isLoading: true
|
|
480
|
+
};
|
|
481
|
+
return _this;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
_createClass(TwitterFollowButton, [{
|
|
485
|
+
key: "componentDidMount",
|
|
486
|
+
value: function componentDidMount() {
|
|
487
|
+
var _this2 = this;
|
|
488
|
+
|
|
489
|
+
var onLoad = this.props.onLoad;
|
|
490
|
+
|
|
491
|
+
if (exenv.canUseDOM) {
|
|
492
|
+
var script = require('scriptjs');
|
|
493
|
+
|
|
494
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
495
|
+
if (!window.twttr) {
|
|
496
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
497
|
+
return;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
if (!_this2.isMountCanceled) {
|
|
501
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
502
|
+
_this2.setState({
|
|
503
|
+
isLoading: false
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
if (onLoad) {
|
|
507
|
+
onLoad(element);
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}, {
|
|
515
|
+
key: "componentWillUnmount",
|
|
516
|
+
value: function componentWillUnmount() {
|
|
517
|
+
this.isMountCanceled = true;
|
|
518
|
+
}
|
|
519
|
+
}, {
|
|
520
|
+
key: "render",
|
|
521
|
+
value: function render() {
|
|
522
|
+
var isLoading = this.state.isLoading;
|
|
523
|
+
var placeholder = this.props.placeholder;
|
|
524
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
525
|
+
ref: "embedContainer"
|
|
526
|
+
}));
|
|
527
|
+
}
|
|
528
|
+
}]);
|
|
529
|
+
|
|
530
|
+
return TwitterFollowButton;
|
|
531
|
+
}(Component);
|
|
532
|
+
|
|
533
|
+
_defineProperty$1(TwitterFollowButton, "propTypes", {
|
|
534
|
+
/**
|
|
535
|
+
* Username of twitter user which will be followed on click
|
|
536
|
+
*/
|
|
537
|
+
screenName: PropTypes.string.isRequired,
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Additional options to be added to the button
|
|
541
|
+
*/
|
|
542
|
+
options: PropTypes.object,
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Placeholder while tweet is loading
|
|
546
|
+
*/
|
|
547
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Function to execute after load, return html element
|
|
551
|
+
*/
|
|
552
|
+
onLoad: PropTypes.func
|
|
553
|
+
});
|
|
554
|
+
|
|
555
|
+
var TwitterHashtagButton =
|
|
556
|
+
/*#__PURE__*/
|
|
557
|
+
function (_Component) {
|
|
558
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
559
|
+
|
|
560
|
+
function TwitterHashtagButton(props) {
|
|
561
|
+
var _this;
|
|
562
|
+
|
|
563
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
564
|
+
|
|
565
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
566
|
+
_this.state = {
|
|
567
|
+
isLoading: true
|
|
568
|
+
};
|
|
569
|
+
return _this;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
_createClass(TwitterHashtagButton, [{
|
|
573
|
+
key: "componentDidMount",
|
|
574
|
+
value: function componentDidMount() {
|
|
575
|
+
var _this2 = this;
|
|
576
|
+
|
|
577
|
+
var onLoad = this.props.onLoad;
|
|
578
|
+
|
|
579
|
+
if (exenv.canUseDOM) {
|
|
580
|
+
var script = require('scriptjs');
|
|
581
|
+
|
|
582
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
583
|
+
if (!window.twttr) {
|
|
584
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
585
|
+
return;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
if (!_this2.isMountCanceled) {
|
|
589
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
590
|
+
_this2.setState({
|
|
591
|
+
isLoading: false
|
|
592
|
+
});
|
|
593
|
+
|
|
594
|
+
if (onLoad) {
|
|
595
|
+
onLoad(element);
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}, {
|
|
603
|
+
key: "componentWillUnmount",
|
|
604
|
+
value: function componentWillUnmount() {
|
|
605
|
+
this.isMountCanceled = true;
|
|
606
|
+
}
|
|
607
|
+
}, {
|
|
608
|
+
key: "render",
|
|
609
|
+
value: function render() {
|
|
610
|
+
var isLoading = this.state.isLoading;
|
|
611
|
+
var placeholder = this.props.placeholder;
|
|
612
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
613
|
+
ref: "embedContainer"
|
|
614
|
+
}));
|
|
615
|
+
}
|
|
616
|
+
}]);
|
|
617
|
+
|
|
618
|
+
return TwitterHashtagButton;
|
|
619
|
+
}(Component);
|
|
620
|
+
|
|
621
|
+
_defineProperty$1(TwitterHashtagButton, "propTypes", {
|
|
622
|
+
/**
|
|
623
|
+
* Tag name for hashtag button
|
|
624
|
+
*/
|
|
625
|
+
tag: PropTypes.string.isRequired,
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* Additional options to be added to the button
|
|
629
|
+
*/
|
|
630
|
+
options: PropTypes.object,
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* Placeholder while tweet is loading
|
|
634
|
+
*/
|
|
635
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Function to execute after load, return html element
|
|
639
|
+
*/
|
|
640
|
+
onLoad: PropTypes.func
|
|
641
|
+
});
|
|
642
|
+
|
|
643
|
+
var TwitterMentionButton =
|
|
644
|
+
/*#__PURE__*/
|
|
645
|
+
function (_Component) {
|
|
646
|
+
_inherits(TwitterMentionButton, _Component);
|
|
647
|
+
|
|
648
|
+
function TwitterMentionButton(props) {
|
|
649
|
+
var _this;
|
|
650
|
+
|
|
651
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
652
|
+
|
|
653
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
654
|
+
_this.state = {
|
|
655
|
+
isLoading: true
|
|
656
|
+
};
|
|
657
|
+
return _this;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
_createClass(TwitterMentionButton, [{
|
|
661
|
+
key: "componentDidMount",
|
|
662
|
+
value: function componentDidMount() {
|
|
663
|
+
var _this2 = this;
|
|
664
|
+
|
|
665
|
+
var onLoad = this.props.onLoad;
|
|
666
|
+
|
|
667
|
+
if (exenv.canUseDOM) {
|
|
668
|
+
var script = require('scriptjs');
|
|
669
|
+
|
|
670
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
671
|
+
if (!window.twttr) {
|
|
672
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
if (!_this2.isMountCanceled) {
|
|
677
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
678
|
+
_this2.setState({
|
|
679
|
+
isLoading: false
|
|
680
|
+
});
|
|
681
|
+
|
|
682
|
+
if (onLoad) {
|
|
683
|
+
onLoad(element);
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
}, {
|
|
691
|
+
key: "componentWillUnmount",
|
|
692
|
+
value: function componentWillUnmount() {
|
|
693
|
+
this.isMountCanceled = true;
|
|
694
|
+
}
|
|
695
|
+
}, {
|
|
696
|
+
key: "render",
|
|
697
|
+
value: function render() {
|
|
698
|
+
var isLoading = this.state.isLoading;
|
|
699
|
+
var placeholder = this.props.placeholder;
|
|
700
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
701
|
+
ref: "embedContainer"
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
704
|
+
}]);
|
|
705
|
+
|
|
706
|
+
return TwitterMentionButton;
|
|
707
|
+
}(Component);
|
|
708
|
+
|
|
709
|
+
_defineProperty$1(TwitterMentionButton, "propTypes", {
|
|
710
|
+
/**
|
|
711
|
+
* Username to which you will need to tweet
|
|
712
|
+
*/
|
|
713
|
+
screenName: PropTypes.string.isRequired,
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Additional options for overriding config.
|
|
717
|
+
*/
|
|
718
|
+
options: PropTypes.object,
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* Placeholder while tweet is loading
|
|
722
|
+
*/
|
|
723
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* Function to execute after load, return html element
|
|
727
|
+
*/
|
|
728
|
+
onLoad: PropTypes.func
|
|
729
|
+
});
|
|
730
|
+
|
|
731
|
+
var TwitterTweetEmbed =
|
|
732
|
+
/*#__PURE__*/
|
|
733
|
+
function (_Component) {
|
|
734
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
735
|
+
|
|
736
|
+
function TwitterTweetEmbed(props) {
|
|
737
|
+
var _this;
|
|
738
|
+
|
|
739
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
740
|
+
|
|
741
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
742
|
+
_this.state = {
|
|
743
|
+
isLoading: true
|
|
744
|
+
};
|
|
745
|
+
return _this;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
_createClass(TwitterTweetEmbed, [{
|
|
749
|
+
key: "renderWidget",
|
|
750
|
+
value: function renderWidget() {
|
|
751
|
+
var _this2 = this;
|
|
752
|
+
|
|
753
|
+
var onLoad = this.props.onLoad;
|
|
754
|
+
|
|
755
|
+
if (!window.twttr) {
|
|
756
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
757
|
+
return;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
if (!this.isMountCanceled) {
|
|
761
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
762
|
+
_this2.setState({
|
|
763
|
+
isLoading: false
|
|
764
|
+
});
|
|
765
|
+
|
|
766
|
+
if (onLoad) {
|
|
767
|
+
onLoad(element);
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
}, {
|
|
773
|
+
key: "componentDidMount",
|
|
774
|
+
value: function componentDidMount() {
|
|
775
|
+
var _this3 = this;
|
|
776
|
+
|
|
777
|
+
if (exenv.canUseDOM) {
|
|
778
|
+
var script = require('scriptjs');
|
|
779
|
+
|
|
780
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
781
|
+
_this3.renderWidget();
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
}, {
|
|
786
|
+
key: "componentWillUnmount",
|
|
787
|
+
value: function componentWillUnmount() {
|
|
788
|
+
this.isMountCanceled = true;
|
|
789
|
+
}
|
|
790
|
+
}, {
|
|
791
|
+
key: "render",
|
|
792
|
+
value: function render() {
|
|
793
|
+
var isLoading = this.state.isLoading;
|
|
794
|
+
var placeholder = this.props.placeholder;
|
|
795
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
796
|
+
ref: "embedContainer"
|
|
797
|
+
}));
|
|
798
|
+
}
|
|
799
|
+
}]);
|
|
800
|
+
|
|
801
|
+
return TwitterTweetEmbed;
|
|
802
|
+
}(Component);
|
|
803
|
+
|
|
804
|
+
_defineProperty$1(TwitterTweetEmbed, "propTypes", {
|
|
805
|
+
/**
|
|
806
|
+
* Tweet id that needs to be shown
|
|
807
|
+
*/
|
|
808
|
+
tweetId: PropTypes.string.isRequired,
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* Additional options to pass to twitter widget plugin
|
|
812
|
+
*/
|
|
813
|
+
options: PropTypes.object,
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Placeholder while tweet is loading
|
|
817
|
+
*/
|
|
818
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Function to execute after load, return html element
|
|
822
|
+
*/
|
|
823
|
+
onLoad: PropTypes.func
|
|
824
|
+
});
|
|
825
|
+
|
|
826
|
+
var TwitterMomentShare =
|
|
827
|
+
/*#__PURE__*/
|
|
828
|
+
function (_Component) {
|
|
829
|
+
_inherits(TwitterMomentShare, _Component);
|
|
830
|
+
|
|
831
|
+
function TwitterMomentShare(props) {
|
|
832
|
+
var _this;
|
|
833
|
+
|
|
834
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
835
|
+
|
|
836
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
837
|
+
_this.state = {
|
|
838
|
+
isLoading: true
|
|
839
|
+
};
|
|
840
|
+
return _this;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
_createClass(TwitterMomentShare, [{
|
|
844
|
+
key: "componentDidMount",
|
|
845
|
+
value: function componentDidMount() {
|
|
846
|
+
var _this2 = this;
|
|
847
|
+
|
|
848
|
+
var onLoad = this.props.onLoad;
|
|
849
|
+
|
|
850
|
+
if (exenv.canUseDOM) {
|
|
851
|
+
var script = require('scriptjs');
|
|
852
|
+
|
|
853
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
854
|
+
if (!window.twttr) {
|
|
855
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
856
|
+
return;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
if (!_this2.isMountCanceled) {
|
|
860
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
861
|
+
_this2.setState({
|
|
862
|
+
isLoading: false
|
|
863
|
+
});
|
|
864
|
+
|
|
865
|
+
if (onLoad) {
|
|
866
|
+
onLoad(element);
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}, {
|
|
874
|
+
key: "componentWillUnmount",
|
|
875
|
+
value: function componentWillUnmount() {
|
|
876
|
+
this.isMountCanceled = true;
|
|
877
|
+
}
|
|
878
|
+
}, {
|
|
879
|
+
key: "render",
|
|
880
|
+
value: function render() {
|
|
881
|
+
var isLoading = this.state.isLoading;
|
|
882
|
+
var placeholder = this.props.placeholder;
|
|
883
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
884
|
+
ref: "shareMoment"
|
|
885
|
+
}));
|
|
886
|
+
}
|
|
887
|
+
}]);
|
|
888
|
+
|
|
889
|
+
return TwitterMomentShare;
|
|
890
|
+
}(Component);
|
|
891
|
+
|
|
892
|
+
_defineProperty$1(TwitterMomentShare, "propTypes", {
|
|
893
|
+
/**
|
|
894
|
+
* id of Twitter moment to show
|
|
895
|
+
*/
|
|
896
|
+
momentId: PropTypes.string.isRequired,
|
|
897
|
+
|
|
898
|
+
/**
|
|
899
|
+
* Additional options for overriding config.
|
|
900
|
+
*/
|
|
901
|
+
options: PropTypes.object,
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Placeholder while tweet is loading
|
|
905
|
+
*/
|
|
906
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Function to execute after load, return html element
|
|
910
|
+
*/
|
|
911
|
+
onLoad: PropTypes.func
|
|
912
|
+
});
|
|
913
|
+
|
|
914
|
+
var TwitterDMButton =
|
|
915
|
+
/*#__PURE__*/
|
|
916
|
+
function (_Component) {
|
|
917
|
+
_inherits(TwitterDMButton, _Component);
|
|
918
|
+
|
|
919
|
+
function TwitterDMButton(props) {
|
|
920
|
+
var _this;
|
|
921
|
+
|
|
922
|
+
_classCallCheck(this, TwitterDMButton);
|
|
923
|
+
|
|
924
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
925
|
+
_this.state = {
|
|
926
|
+
isLoading: true
|
|
927
|
+
};
|
|
928
|
+
return _this;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
_createClass(TwitterDMButton, [{
|
|
932
|
+
key: "componentDidMount",
|
|
933
|
+
value: function componentDidMount() {
|
|
934
|
+
var _this2 = this;
|
|
935
|
+
|
|
936
|
+
var onLoad = this.props.onLoad;
|
|
937
|
+
|
|
938
|
+
if (exenv.canUseDOM) {
|
|
939
|
+
var script = require('scriptjs');
|
|
940
|
+
|
|
941
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
942
|
+
if (!window.twttr) {
|
|
943
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
944
|
+
return;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
if (!_this2.isMountCanceled) {
|
|
948
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
949
|
+
_this2.setState({
|
|
950
|
+
isLoading: false
|
|
951
|
+
});
|
|
952
|
+
|
|
953
|
+
if (onLoad) {
|
|
954
|
+
onLoad(element);
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
});
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
}, {
|
|
962
|
+
key: "componentWillUnmount",
|
|
963
|
+
value: function componentWillUnmount() {
|
|
964
|
+
this.isMountCanceled = true;
|
|
965
|
+
}
|
|
966
|
+
}, {
|
|
967
|
+
key: "render",
|
|
968
|
+
value: function render() {
|
|
969
|
+
var isLoading = this.state.isLoading;
|
|
970
|
+
var placeholder = this.props.placeholder;
|
|
971
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
972
|
+
ref: "embedContainer"
|
|
973
|
+
}));
|
|
974
|
+
}
|
|
975
|
+
}]);
|
|
976
|
+
|
|
977
|
+
return TwitterDMButton;
|
|
978
|
+
}(Component);
|
|
979
|
+
|
|
980
|
+
_defineProperty$1(TwitterDMButton, "propTypes", {
|
|
981
|
+
/**
|
|
982
|
+
* Twitter user id for DM button
|
|
983
|
+
*/
|
|
984
|
+
id: PropTypes.number.isRequired,
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Additional options to be added to the button
|
|
988
|
+
*/
|
|
989
|
+
options: PropTypes.object,
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Placeholder while tweet is loading
|
|
993
|
+
*/
|
|
994
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Function to execute after load, return html element
|
|
998
|
+
*/
|
|
999
|
+
onLoad: PropTypes.func
|
|
1000
|
+
});
|
|
1001
|
+
|
|
1002
|
+
var TwitterVideoEmbed =
|
|
1003
|
+
/*#__PURE__*/
|
|
1004
|
+
function (_Component) {
|
|
1005
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1006
|
+
|
|
1007
|
+
function TwitterVideoEmbed(props) {
|
|
1008
|
+
var _this;
|
|
1009
|
+
|
|
1010
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1011
|
+
|
|
1012
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1013
|
+
_this.state = {
|
|
1014
|
+
isLoading: true
|
|
1015
|
+
};
|
|
1016
|
+
return _this;
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
_createClass(TwitterVideoEmbed, [{
|
|
1020
|
+
key: "componentDidMount",
|
|
1021
|
+
value: function componentDidMount() {
|
|
1022
|
+
var _this2 = this;
|
|
1023
|
+
|
|
1024
|
+
var onLoad = this.props.onLoad;
|
|
1025
|
+
|
|
1026
|
+
if (exenv.canUseDOM) {
|
|
1027
|
+
var script = require('scriptjs');
|
|
1028
|
+
|
|
1029
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1030
|
+
if (!window.twttr) {
|
|
1031
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1032
|
+
return;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
if (!_this2.isMountCanceled) {
|
|
1036
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1037
|
+
_this2.setState({
|
|
1038
|
+
isLoading: false
|
|
1039
|
+
});
|
|
1040
|
+
|
|
1041
|
+
if (onLoad) {
|
|
1042
|
+
onLoad(element);
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
}, {
|
|
1050
|
+
key: "componentWillUnmount",
|
|
1051
|
+
value: function componentWillUnmount() {
|
|
1052
|
+
this.isMountCanceled = true;
|
|
1053
|
+
}
|
|
1054
|
+
}, {
|
|
1055
|
+
key: "render",
|
|
1056
|
+
value: function render() {
|
|
1057
|
+
var isLoading = this.state.isLoading;
|
|
1058
|
+
var placeholder = this.props.placeholder;
|
|
1059
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1060
|
+
ref: "embedContainer"
|
|
1061
|
+
}));
|
|
1062
|
+
}
|
|
1063
|
+
}]);
|
|
1064
|
+
|
|
1065
|
+
return TwitterVideoEmbed;
|
|
1066
|
+
}(Component);
|
|
1067
|
+
|
|
1068
|
+
_defineProperty$1(TwitterVideoEmbed, "propTypes", {
|
|
1069
|
+
/**
|
|
1070
|
+
* Id of video tweet.
|
|
1071
|
+
*/
|
|
1072
|
+
id: PropTypes.string.isRequired,
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Placeholder while tweet is loading
|
|
1076
|
+
*/
|
|
1077
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Function to execute after load, return html element
|
|
1081
|
+
*/
|
|
1082
|
+
onLoad: PropTypes.func
|
|
1083
|
+
});
|
|
1084
|
+
|
|
1085
|
+
var TwitterOnAirButton =
|
|
1086
|
+
/*#__PURE__*/
|
|
1087
|
+
function (_Component) {
|
|
1088
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1089
|
+
|
|
1090
|
+
function TwitterOnAirButton(props) {
|
|
1091
|
+
var _this;
|
|
1092
|
+
|
|
1093
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1094
|
+
|
|
1095
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1096
|
+
_this.state = {
|
|
1097
|
+
isLoading: true
|
|
1098
|
+
};
|
|
1099
|
+
return _this;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
_createClass(TwitterOnAirButton, [{
|
|
1103
|
+
key: "componentDidMount",
|
|
1104
|
+
value: function componentDidMount() {
|
|
1105
|
+
var _this2 = this;
|
|
1106
|
+
|
|
1107
|
+
var onLoad = this.props.onLoad;
|
|
1108
|
+
|
|
1109
|
+
if (exenv.canUseDOM) {
|
|
1110
|
+
var script = require('scriptjs');
|
|
1111
|
+
|
|
1112
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1113
|
+
if (!window.twttr) {
|
|
1114
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1115
|
+
return;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
if (!_this2.isMountCanceled) {
|
|
1119
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1120
|
+
_this2.setState({
|
|
1121
|
+
isLoading: false
|
|
1122
|
+
});
|
|
1123
|
+
|
|
1124
|
+
if (onLoad) {
|
|
1125
|
+
onLoad(element);
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}, {
|
|
1133
|
+
key: "componentWillUnmount",
|
|
1134
|
+
value: function componentWillUnmount() {
|
|
1135
|
+
this.isMountCanceled = true;
|
|
1136
|
+
}
|
|
1137
|
+
}, {
|
|
1138
|
+
key: "render",
|
|
1139
|
+
value: function render() {
|
|
1140
|
+
var isLoading = this.state.isLoading;
|
|
1141
|
+
var placeholder = this.props.placeholder;
|
|
1142
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1143
|
+
ref: "embedContainer"
|
|
1144
|
+
}));
|
|
1145
|
+
}
|
|
1146
|
+
}]);
|
|
1147
|
+
|
|
1148
|
+
return TwitterOnAirButton;
|
|
1149
|
+
}(Component);
|
|
1150
|
+
|
|
1151
|
+
_defineProperty$1(TwitterOnAirButton, "propTypes", {
|
|
1152
|
+
/**
|
|
1153
|
+
* Username for which you require periscope on air button
|
|
1154
|
+
*/
|
|
1155
|
+
username: PropTypes.string.isRequired,
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* Additional options for overriding config.
|
|
1159
|
+
*/
|
|
1160
|
+
options: PropTypes.object,
|
|
1161
|
+
|
|
1162
|
+
/**
|
|
1163
|
+
* Placeholder while tweet is loading
|
|
1164
|
+
*/
|
|
1165
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* Function to execute after load, return html element
|
|
1169
|
+
*/
|
|
1170
|
+
onLoad: PropTypes.func
|
|
1171
|
+
});
|
|
75
1172
|
|
|
76
1173
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
77
1174
|
try {
|
|
@@ -899,7 +1996,7 @@ class Facebook$1 extends Component {
|
|
|
899
1996
|
handleInit,
|
|
900
1997
|
api
|
|
901
1998
|
};
|
|
902
|
-
return
|
|
1999
|
+
return React__default.createElement(FacebookContext.Provider, {
|
|
903
2000
|
value: value
|
|
904
2001
|
}, children);
|
|
905
2002
|
}
|
|
@@ -993,11 +2090,11 @@ defineProperty(Initialize, "defaultProps", {
|
|
|
993
2090
|
api: undefined
|
|
994
2091
|
});
|
|
995
2092
|
|
|
996
|
-
var Initialize$1 = forwardRef((props, ref) =>
|
|
2093
|
+
var Initialize$1 = forwardRef((props, ref) => React__default.createElement(FacebookContext.Consumer, null, ({
|
|
997
2094
|
handleInit,
|
|
998
2095
|
isReady,
|
|
999
2096
|
api
|
|
1000
|
-
}) =>
|
|
2097
|
+
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
1001
2098
|
handleInit: handleInit,
|
|
1002
2099
|
isReady: isReady,
|
|
1003
2100
|
api: api,
|
|
@@ -1041,10 +2138,10 @@ class Parser extends Component {
|
|
|
1041
2138
|
className,
|
|
1042
2139
|
children
|
|
1043
2140
|
} = this.props;
|
|
1044
|
-
return
|
|
2141
|
+
return React__default.createElement("div", {
|
|
1045
2142
|
className: className,
|
|
1046
2143
|
ref: this.handleContainer
|
|
1047
|
-
},
|
|
2144
|
+
}, React__default.createElement(Initialize$1, {
|
|
1048
2145
|
onReady: this.handleReady
|
|
1049
2146
|
}, children({
|
|
1050
2147
|
handleParse: this.handleParse
|
|
@@ -1087,7 +2184,7 @@ class Like extends PureComponent {
|
|
|
1087
2184
|
kidDirectedSite,
|
|
1088
2185
|
referral
|
|
1089
2186
|
} = this.props;
|
|
1090
|
-
return
|
|
2187
|
+
return React__default.createElement("div", {
|
|
1091
2188
|
className: "fb-like",
|
|
1092
2189
|
"data-ref": referral,
|
|
1093
2190
|
"data-href": href,
|
|
@@ -1118,9 +2215,9 @@ defineProperty(Like, "defaultProps", {
|
|
|
1118
2215
|
width: undefined
|
|
1119
2216
|
});
|
|
1120
2217
|
|
|
1121
|
-
forwardRef((props, ref) =>
|
|
2218
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1122
2219
|
handleParse
|
|
1123
|
-
}) =>
|
|
2220
|
+
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1124
2221
|
handleParse: handleParse,
|
|
1125
2222
|
ref: ref
|
|
1126
2223
|
}))));
|
|
@@ -1211,7 +2308,7 @@ class Process extends Component {
|
|
|
1211
2308
|
data,
|
|
1212
2309
|
error
|
|
1213
2310
|
} = this.state;
|
|
1214
|
-
return
|
|
2311
|
+
return React__default.createElement(Initialize$1, {
|
|
1215
2312
|
onReady: this.handleReady
|
|
1216
2313
|
}, children({
|
|
1217
2314
|
loading: !api || loading,
|
|
@@ -1291,10 +2388,10 @@ defineProperty(Send, "defaultProps", {
|
|
|
1291
2388
|
redirectURI: undefined
|
|
1292
2389
|
});
|
|
1293
2390
|
|
|
1294
|
-
forwardRef((props, ref) =>
|
|
2391
|
+
forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1295
2392
|
loading,
|
|
1296
2393
|
handleProcess
|
|
1297
|
-
}) =>
|
|
2394
|
+
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1298
2395
|
loading: loading,
|
|
1299
2396
|
handleProcess: handleProcess,
|
|
1300
2397
|
ref: ref
|
|
@@ -1379,12 +2476,12 @@ defineProperty(Share, "defaultProps", {
|
|
|
1379
2476
|
redirectURI: undefined
|
|
1380
2477
|
});
|
|
1381
2478
|
|
|
1382
|
-
var Share$1 = forwardRef((props, ref) =>
|
|
2479
|
+
var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1383
2480
|
loading,
|
|
1384
2481
|
handleProcess,
|
|
1385
2482
|
data,
|
|
1386
2483
|
error
|
|
1387
|
-
}) =>
|
|
2484
|
+
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1388
2485
|
loading: loading,
|
|
1389
2486
|
handleProcess: handleProcess,
|
|
1390
2487
|
data: data,
|
|
@@ -1402,10 +2499,10 @@ function ShareButton(props) {
|
|
|
1402
2499
|
} = props,
|
|
1403
2500
|
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
1404
2501
|
|
|
1405
|
-
return
|
|
2502
|
+
return React__default.createElement(Share$1, rest, ({
|
|
1406
2503
|
loading,
|
|
1407
2504
|
handleClick
|
|
1408
|
-
}) =>
|
|
2505
|
+
}) => React__default.createElement("button", {
|
|
1409
2506
|
type: "button",
|
|
1410
2507
|
disabled: loading,
|
|
1411
2508
|
className: className,
|
|
@@ -1438,7 +2535,7 @@ class Page extends PureComponent {
|
|
|
1438
2535
|
adaptContainerWidth,
|
|
1439
2536
|
children
|
|
1440
2537
|
} = this.props;
|
|
1441
|
-
return
|
|
2538
|
+
return React__default.createElement("div", {
|
|
1442
2539
|
className: "fb-page",
|
|
1443
2540
|
style: style,
|
|
1444
2541
|
"data-tabs": tabs,
|
|
@@ -1469,9 +2566,9 @@ defineProperty(Page, "defaultProps", {
|
|
|
1469
2566
|
href: undefined
|
|
1470
2567
|
});
|
|
1471
2568
|
|
|
1472
|
-
var Page$1 = forwardRef((props, ref) =>
|
|
2569
|
+
var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1473
2570
|
handleParse
|
|
1474
|
-
}) =>
|
|
2571
|
+
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1475
2572
|
handleParse: handleParse,
|
|
1476
2573
|
ref: ref
|
|
1477
2574
|
}))));
|
|
@@ -1600,12 +2697,12 @@ defineProperty(Login, "defaultProps", {
|
|
|
1600
2697
|
eventKey: undefined
|
|
1601
2698
|
});
|
|
1602
2699
|
|
|
1603
|
-
var Login$1 = forwardRef((props, ref) =>
|
|
2700
|
+
var Login$1 = forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1604
2701
|
loading,
|
|
1605
2702
|
handleProcess,
|
|
1606
2703
|
data,
|
|
1607
2704
|
error
|
|
1608
|
-
}) =>
|
|
2705
|
+
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1609
2706
|
loading: loading,
|
|
1610
2707
|
handleProcess: handleProcess,
|
|
1611
2708
|
data: data,
|
|
@@ -1968,7 +3065,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
1968
3065
|
|
|
1969
3066
|
|
|
1970
3067
|
|
|
1971
|
-
var _react2 = _interopRequireDefault(
|
|
3068
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
1972
3069
|
|
|
1973
3070
|
|
|
1974
3071
|
|
|
@@ -2035,7 +3132,7 @@ var Spinner = function (_Component) {
|
|
|
2035
3132
|
|
|
2036
3133
|
|
|
2037
3134
|
if (loaded) {
|
|
2038
|
-
return this.props.children ?
|
|
3135
|
+
return this.props.children ? React__default.Children.only(this.props.children) : null;
|
|
2039
3136
|
}
|
|
2040
3137
|
|
|
2041
3138
|
return _react2.default.createElement('div', { className: className, ref: 'loader' });
|
|
@@ -2043,7 +3140,7 @@ var Spinner = function (_Component) {
|
|
|
2043
3140
|
}]);
|
|
2044
3141
|
|
|
2045
3142
|
return Spinner;
|
|
2046
|
-
}(
|
|
3143
|
+
}(React__default.Component);
|
|
2047
3144
|
|
|
2048
3145
|
Spinner.propTypes = {
|
|
2049
3146
|
className: _propTypes2.default.string,
|
|
@@ -2073,15 +3170,15 @@ function LoginButton(props) {
|
|
|
2073
3170
|
} = props,
|
|
2074
3171
|
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
2075
3172
|
|
|
2076
|
-
return
|
|
3173
|
+
return React__default.createElement(Login$1, rest, ({
|
|
2077
3174
|
loading,
|
|
2078
3175
|
handleClick
|
|
2079
|
-
}) =>
|
|
3176
|
+
}) => React__default.createElement("button", {
|
|
2080
3177
|
type: "button",
|
|
2081
3178
|
className: className,
|
|
2082
3179
|
onClick: handleClick,
|
|
2083
3180
|
disabled: loading
|
|
2084
|
-
}, children, spinner && loading &&
|
|
3181
|
+
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
2085
3182
|
config: spinnerConfig
|
|
2086
3183
|
})));
|
|
2087
3184
|
}
|
|
@@ -2106,7 +3203,7 @@ class EmbeddedPost extends PureComponent {
|
|
|
2106
3203
|
showText,
|
|
2107
3204
|
children
|
|
2108
3205
|
} = this.props;
|
|
2109
|
-
return
|
|
3206
|
+
return React__default.createElement("div", {
|
|
2110
3207
|
className: "fb-post",
|
|
2111
3208
|
"data-href": href,
|
|
2112
3209
|
"data-width": width,
|
|
@@ -2122,9 +3219,9 @@ defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
2122
3219
|
children: undefined
|
|
2123
3220
|
});
|
|
2124
3221
|
|
|
2125
|
-
forwardRef((props, ref) =>
|
|
3222
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2126
3223
|
handleParse
|
|
2127
|
-
}) =>
|
|
3224
|
+
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2128
3225
|
handleParse: handleParse,
|
|
2129
3226
|
ref: ref
|
|
2130
3227
|
}))));
|
|
@@ -2147,7 +3244,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
2147
3244
|
showCaptions,
|
|
2148
3245
|
children
|
|
2149
3246
|
} = this.props;
|
|
2150
|
-
return
|
|
3247
|
+
return React__default.createElement("div", {
|
|
2151
3248
|
className: "fb-video",
|
|
2152
3249
|
"data-href": href,
|
|
2153
3250
|
"data-width": width,
|
|
@@ -2169,9 +3266,9 @@ defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2169
3266
|
children: undefined
|
|
2170
3267
|
});
|
|
2171
3268
|
|
|
2172
|
-
forwardRef((props, ref) =>
|
|
3269
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2173
3270
|
handleParse
|
|
2174
|
-
}) =>
|
|
3271
|
+
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2175
3272
|
handleParse: handleParse,
|
|
2176
3273
|
ref: ref
|
|
2177
3274
|
}))));
|
|
@@ -2194,7 +3291,7 @@ class Comments extends PureComponent {
|
|
|
2194
3291
|
children,
|
|
2195
3292
|
mobile
|
|
2196
3293
|
} = this.props;
|
|
2197
|
-
return
|
|
3294
|
+
return React__default.createElement("div", {
|
|
2198
3295
|
className: "fb-comments",
|
|
2199
3296
|
"data-colorscheme": colorScheme,
|
|
2200
3297
|
"data-numposts": numPosts,
|
|
@@ -2218,9 +3315,9 @@ defineProperty(Comments, "defaultProps", {
|
|
|
2218
3315
|
mobile: undefined
|
|
2219
3316
|
});
|
|
2220
3317
|
|
|
2221
|
-
forwardRef((props, ref) =>
|
|
3318
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2222
3319
|
handleParse
|
|
2223
|
-
}) =>
|
|
3320
|
+
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2224
3321
|
handleParse: handleParse,
|
|
2225
3322
|
ref: ref
|
|
2226
3323
|
}))));
|
|
@@ -2238,7 +3335,7 @@ class CommentsCount extends PureComponent {
|
|
|
2238
3335
|
href = getCurrentHref(),
|
|
2239
3336
|
children
|
|
2240
3337
|
} = this.props;
|
|
2241
|
-
return
|
|
3338
|
+
return React__default.createElement("span", {
|
|
2242
3339
|
className: "fb-comments-count",
|
|
2243
3340
|
"data-href": href
|
|
2244
3341
|
}, children);
|
|
@@ -2251,9 +3348,9 @@ defineProperty(CommentsCount, "defaultProps", {
|
|
|
2251
3348
|
children: undefined
|
|
2252
3349
|
});
|
|
2253
3350
|
|
|
2254
|
-
forwardRef((props, ref) =>
|
|
3351
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2255
3352
|
handleParse
|
|
2256
|
-
}) =>
|
|
3353
|
+
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2257
3354
|
handleParse: handleParse,
|
|
2258
3355
|
ref: ref
|
|
2259
3356
|
}))));
|
|
@@ -2352,12 +3449,12 @@ defineProperty(Feed, "defaultProps", {
|
|
|
2352
3449
|
dataRef: undefined
|
|
2353
3450
|
});
|
|
2354
3451
|
|
|
2355
|
-
forwardRef((props, ref) =>
|
|
3452
|
+
forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
2356
3453
|
loading,
|
|
2357
3454
|
handleProcess,
|
|
2358
3455
|
error,
|
|
2359
3456
|
data
|
|
2360
|
-
}) =>
|
|
3457
|
+
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2361
3458
|
loading: loading,
|
|
2362
3459
|
handleProcess: handleProcess,
|
|
2363
3460
|
data: data,
|
|
@@ -2383,7 +3480,7 @@ class Group extends PureComponent {
|
|
|
2383
3480
|
children,
|
|
2384
3481
|
skin
|
|
2385
3482
|
} = this.props;
|
|
2386
|
-
return
|
|
3483
|
+
return React__default.createElement("div", {
|
|
2387
3484
|
className: "fb-group",
|
|
2388
3485
|
style: style,
|
|
2389
3486
|
"data-href": href,
|
|
@@ -2406,9 +3503,9 @@ defineProperty(Group, "defaultProps", {
|
|
|
2406
3503
|
skin: undefined
|
|
2407
3504
|
});
|
|
2408
3505
|
|
|
2409
|
-
forwardRef((props, ref) =>
|
|
3506
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2410
3507
|
handleParse
|
|
2411
|
-
}) =>
|
|
3508
|
+
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2412
3509
|
handleParse: handleParse,
|
|
2413
3510
|
ref: ref
|
|
2414
3511
|
}))));
|
|
@@ -2472,7 +3569,7 @@ class LoginStatus$1 extends Component {
|
|
|
2472
3569
|
const {
|
|
2473
3570
|
children
|
|
2474
3571
|
} = this.props;
|
|
2475
|
-
return
|
|
3572
|
+
return React__default.createElement(Initialize$1, {
|
|
2476
3573
|
onReady: this.handleReady
|
|
2477
3574
|
}, children);
|
|
2478
3575
|
}
|
|
@@ -2569,9 +3666,9 @@ class Profile extends Component {
|
|
|
2569
3666
|
loading,
|
|
2570
3667
|
error
|
|
2571
3668
|
} = this.state;
|
|
2572
|
-
return
|
|
3669
|
+
return React__default.createElement(Initialize$1, {
|
|
2573
3670
|
onReady: this.handleReady
|
|
2574
|
-
},
|
|
3671
|
+
}, React__default.createElement(LoginStatus$1, {
|
|
2575
3672
|
event: "auth.statusChange",
|
|
2576
3673
|
onChange: this.handleStatusChange
|
|
2577
3674
|
}, children({
|
|
@@ -2606,7 +3703,7 @@ class CustomChat extends PureComponent {
|
|
|
2606
3703
|
greetingDialogDisplay,
|
|
2607
3704
|
greetingDialogDelay
|
|
2608
3705
|
} = this.props;
|
|
2609
|
-
return
|
|
3706
|
+
return React__default.createElement("div", {
|
|
2610
3707
|
className: "fb-customerchat",
|
|
2611
3708
|
page_id: pageId,
|
|
2612
3709
|
theme_color: themeColor,
|
|
@@ -2630,9 +3727,9 @@ defineProperty(CustomChat, "defaultProps", {
|
|
|
2630
3727
|
greetingDialogDelay: undefined
|
|
2631
3728
|
});
|
|
2632
3729
|
|
|
2633
|
-
forwardRef((props, ref) =>
|
|
3730
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2634
3731
|
handleParse
|
|
2635
|
-
}) =>
|
|
3732
|
+
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2636
3733
|
handleParse: handleParse,
|
|
2637
3734
|
ref: ref
|
|
2638
3735
|
}))));
|
|
@@ -2653,7 +3750,7 @@ class MessageUs extends PureComponent {
|
|
|
2653
3750
|
children,
|
|
2654
3751
|
size
|
|
2655
3752
|
} = this.props;
|
|
2656
|
-
return
|
|
3753
|
+
return React__default.createElement("div", {
|
|
2657
3754
|
className: "fb-messengermessageus",
|
|
2658
3755
|
messenger_app_id: messengerAppId,
|
|
2659
3756
|
page_id: pageId,
|
|
@@ -2670,9 +3767,9 @@ defineProperty(MessageUs, "defaultProps", {
|
|
|
2670
3767
|
children: undefined
|
|
2671
3768
|
});
|
|
2672
3769
|
|
|
2673
|
-
forwardRef((props, ref) =>
|
|
3770
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2674
3771
|
handleParse
|
|
2675
|
-
}) =>
|
|
3772
|
+
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2676
3773
|
handleParse: handleParse,
|
|
2677
3774
|
ref: ref
|
|
2678
3775
|
}))));
|
|
@@ -2698,7 +3795,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
2698
3795
|
centerAlign,
|
|
2699
3796
|
skin
|
|
2700
3797
|
} = this.props;
|
|
2701
|
-
return
|
|
3798
|
+
return React__default.createElement("div", {
|
|
2702
3799
|
className: "fb-messenger-checkbox",
|
|
2703
3800
|
messenger_app_id: messengerAppId,
|
|
2704
3801
|
page_id: pageId,
|
|
@@ -2725,9 +3822,9 @@ defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2725
3822
|
centerAlign: undefined
|
|
2726
3823
|
});
|
|
2727
3824
|
|
|
2728
|
-
forwardRef((props, ref) =>
|
|
3825
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2729
3826
|
handleParse
|
|
2730
|
-
}) =>
|
|
3827
|
+
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2731
3828
|
handleParse: handleParse,
|
|
2732
3829
|
ref: ref
|
|
2733
3830
|
}))));
|
|
@@ -2751,7 +3848,7 @@ class SendToMessenger extends PureComponent {
|
|
|
2751
3848
|
dataRef,
|
|
2752
3849
|
size
|
|
2753
3850
|
} = this.props;
|
|
2754
|
-
return
|
|
3851
|
+
return React__default.createElement("div", {
|
|
2755
3852
|
className: "fb-send-to-messenger",
|
|
2756
3853
|
messenger_app_id: messengerAppId,
|
|
2757
3854
|
page_id: pageId,
|
|
@@ -2770,9 +3867,9 @@ defineProperty(SendToMessenger, "defaultProps", {
|
|
|
2770
3867
|
children: undefined
|
|
2771
3868
|
});
|
|
2772
3869
|
|
|
2773
|
-
forwardRef((props, ref) =>
|
|
3870
|
+
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2774
3871
|
handleParse
|
|
2775
|
-
}) =>
|
|
3872
|
+
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2776
3873
|
handleParse: handleParse,
|
|
2777
3874
|
ref: ref
|
|
2778
3875
|
}))));
|
|
@@ -2884,61 +3981,61 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2884
3981
|
}, []);
|
|
2885
3982
|
|
|
2886
3983
|
var variant = 'black';
|
|
2887
|
-
return
|
|
2888
|
-
|
|
3984
|
+
return React__default.createElement(
|
|
3985
|
+
React__default.Fragment,
|
|
2889
3986
|
null,
|
|
2890
|
-
|
|
3987
|
+
React__default.createElement(
|
|
2891
3988
|
'div',
|
|
2892
3989
|
{ ref: viewableWindow, id: 'vid-slider', className: 'col' },
|
|
2893
|
-
|
|
3990
|
+
React__default.createElement(
|
|
2894
3991
|
'div',
|
|
2895
3992
|
{ className: 'row' },
|
|
2896
|
-
showScroller &&
|
|
3993
|
+
showScroller && React__default.createElement(
|
|
2897
3994
|
'div',
|
|
2898
3995
|
{ onClick: function onClick(e) {
|
|
2899
3996
|
return scrollSlider(e, 'prev');
|
|
2900
3997
|
}, className: 'tile__slider-prev', style: { color: variant } },
|
|
2901
|
-
|
|
3998
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow left' })
|
|
2902
3999
|
),
|
|
2903
|
-
showScroller &&
|
|
4000
|
+
showScroller && React__default.createElement(
|
|
2904
4001
|
'div',
|
|
2905
4002
|
{ onClick: function onClick(e) {
|
|
2906
4003
|
return scrollSlider(e, 'next');
|
|
2907
4004
|
}, className: 'tile__slider-next', style: { color: variant } },
|
|
2908
|
-
|
|
4005
|
+
React__default.createElement('i', { style: { border: 'solid ' + variant, borderWidth: '0 4px 4px 0' }, className: 'arrow right' })
|
|
2909
4006
|
),
|
|
2910
|
-
|
|
4007
|
+
React__default.createElement(
|
|
2911
4008
|
'div',
|
|
2912
4009
|
{ ref: innerSlider, className: 'row__inner' },
|
|
2913
4010
|
props.data.slides.map(function (img, index) {
|
|
2914
4011
|
var thumbnail = urlFor({ client: client, source: img.slideshowImage, imageWidth: 250 });
|
|
2915
4012
|
if (!img.slideshowImage.link) {
|
|
2916
|
-
return
|
|
4013
|
+
return React__default.createElement(
|
|
2917
4014
|
'div',
|
|
2918
4015
|
{ ref: tile, key: index, className: 'tile', style: { width: tileSize + 'px' } },
|
|
2919
|
-
|
|
4016
|
+
React__default.createElement(
|
|
2920
4017
|
'div',
|
|
2921
4018
|
{ className: 'tile__media' },
|
|
2922
|
-
|
|
4019
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2923
4020
|
),
|
|
2924
|
-
|
|
4021
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2925
4022
|
);
|
|
2926
4023
|
} else {
|
|
2927
|
-
return
|
|
4024
|
+
return React__default.createElement(
|
|
2928
4025
|
'a',
|
|
2929
4026
|
{ ref: tile, key: index, href: img.slideshowImage.link, target: img.slideshowImage.blank ? '_target' : '_self', className: 'tile', style: { width: tileSize + 'px' } },
|
|
2930
|
-
|
|
4027
|
+
React__default.createElement(
|
|
2931
4028
|
'div',
|
|
2932
4029
|
{ className: 'tile__media' },
|
|
2933
|
-
|
|
4030
|
+
React__default.createElement('img', { className: 'tile__img', src: thumbnail, alt: img.slideshowImage.alt ? img.slideshowImage.alt : '', style: { width: tileSize + 'px' } })
|
|
2934
4031
|
),
|
|
2935
|
-
|
|
4032
|
+
React__default.createElement('div', { style: { color: variant }, className: 'tile__info' })
|
|
2936
4033
|
);
|
|
2937
4034
|
}
|
|
2938
4035
|
})
|
|
2939
4036
|
)
|
|
2940
4037
|
),
|
|
2941
|
-
|
|
4038
|
+
React__default.createElement(
|
|
2942
4039
|
'style',
|
|
2943
4040
|
{ jsx: 'true' },
|
|
2944
4041
|
'\n #vid-slider * {\n box-sizing: border-box;\n -ms-overflow-style: none;\n }\n #vid-slider::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar {\n display: none;\n }\n #vid-slider .row::-webkit-scrollbar-thumb {\n display: none;\n }\n #vid-slider {\n position: relative;\n -ms-overflow-style: none;\n padding: 0 1.5rem;\n margin-bottom: 0 !important;\n }\n #vid-slider .now-playing {\n position: absolute;\n top: 0.5rem;\n left: 1rem;\n color: white;\n background: rgba(0, 0, 0, 0.75);\n }\n #vid-slider h1,\n #vid-slider p {\n text-align: center;\n width: 100%;\n max-width: 500px;\n margin: auto;\n }\n #vid-slider,\n #vidHolder {\n max-width: 805px;\n }\n #vid-slider a:link,\n #vid-slider a:hover,\n #vid-slider a:active,\n #vid-slider a:visited {\n transition: color 150ms;\n color: #95a5a6;\n text-decoration: none;\n }\n #vid-slider a:hover {\n color: #7f8c8d;\n text-decoration: underline;\n }\n #vid-slider .contain {\n width: 100%;\n }\n #vid-slider .row {\n overflow-x: scroll;\n width: 100%;\n -ms-overflow-style: none;\n overflow-y: hidden !important;\n }\n #vid-slider .tile__info {\n white-space: normal !important;\n position: absolute;\n text-align: center;\n color: ' + (props.dark ? 'white' : '#383838') + ';\n opacity: 1;\n font-size: 0.9rem;\n font-weight: bold;\n transition: opacity 0.25s;\n }\n #vid-slider .row__inner {\n transition: 450ms -webkit-transform;\n transition: 450ms transform;\n transition: 450ms transform, 450ms -webkit-transform;\n font-size: 0;\n white-space: nowrap;\n margin: 25px 0 70px !important;\n padding-bottom: 10px;\n padding-left: 0;\n }\n #vid-slider .tile {\n position: relative;\n display: inline-block;\n margin: 0 12px;\n font-size: 20px;\n transition: 450ms all;\n -webkit-transform-origin: center left;\n transform-origin: center left;\n }\n \n #vid-slider .tile:first-child {\n margin-left: 15px;\n }\n #vid-slider .tile__img {\n height: auto;\n -o-object-fit: contain;\n object-fit: contain;\n object-position: center;\n }\n #vid-slider .tile__details {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0;\n top: 0;\n font-size: 10px;\n opacity: 0;\n background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 100%);\n transition: 450ms opacity;\n }\n #vid-slider .tile__details:after,\n #vid-slider .tile__details:before {\n content: \'\';\n \n position: absolute;\n top: 50%;\n left: 50%;\n display: #000;\n }\n #vid-slider .tile__details:after {\n margin-top: -25px;\n margin-left: -25px;\n width: 50px;\n height: 50px;\n border: 3px solid #ecf0f1;\n line-height: 50px;\n text-align: center;\n border-radius: 100%;\n background: rgba(0, 0, 0, 0.5);\n z-index: 1;\n }\n #vid-slider .tile__details:before {\n content: \'\';\n background: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\' viewBox=\'0 0 64 64\' width=\'64\' height=\'64\' fill=\'white\'><path d=\'M26 46 L46 32 L26 18 Z\'/></svg>")\n no-repeat center center;\n left: 0;\n width: 100%;\n height: 3rem;\n font-size: 30px;\n margin-right: 12px;\n margin-top: -24px;\n text-align: center;\n z-index: 2;\n color: white;\n }\n \n #vid-slider .tile__title {\n position: absolute;\n bottom: 0;\n padding: 10px;\n max-width: 250px;\n }\n #vid-slider .tile__title_text {\n position: relative;\n left: 0;\n white-space: normal;\n }\n \n #vid-slider .tile__slider-prev,\n #vid-slider .tile__slider-next {\n width: 30px;\n background: transparent;\n border: none;\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n z-index: 99;\n cursor: pointer;\n color: ' + (props.dark ? 'white' : 'black') + ';\n display: flex;\n justify-content: center;\n align-items: center;\n font-size: 2rem;\n }\n #vid-slider .tile__slider-prev {\n left: -0.5rem;\n padding: 1rem;\n }\n #vid-slider .tile__slider-next {\n right: -0.5rem;\n padding: 1rem;\n }\n #vid-slider,\n #vid-slider .row {\n margin: 0;\n }\n \n #vid-slider .row::-webkit-scrollbar-thumb {\n background-color: transparent !important;\n }\n #vid-slider i {\n border: solid ' + (props.dark ? 'white' : 'black') + ';\n border-width: 0 4px 4px 0;\n display: inline-block;\n padding: 4px;\n pointer-events: none;\n }\n #vid-slider .right {\n transform: rotate(-45deg);\n -webkit-transform: rotate(-45deg);\n }\n #vid-slider .left {\n transform: rotate(135deg);\n -webkit-transform: rotate(135deg);\n }\n @media screen and (min-width: 1399px) {\n .block-content #vid-slider .tile__img {\n height: auto;\n }\n .block-content #vid-slider .tile {\n height: auto;\n }\n }\n \n @media screen and (max-width: 1399px) {\n #vid-slider,\n #vidHolder {\n max-width: 620px;\n }\n }\n @media screen and (max-width: 1200px) {\n #vid-slider,\n #vidHolder {\n max-width: 580px;\n }\n }\n @media screen and (max-width: 967px) {\n #vid-slider {\n max-width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 60px 0 50px !important;\n }\n }\n \n @media screen and (max-width: 768px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n }\n @media screen and (max-width: 568px) {\n #vidHolder {\n position: unset;\n width: 100%;\n }\n \n #vid-slider .row__inner {\n margin: 30px 0 70px;\n }\n }\n '
|
|
@@ -2949,6 +4046,11 @@ var ImageSlider = function ImageSlider(props) {
|
|
|
2949
4046
|
|
|
2950
4047
|
var _this = undefined;
|
|
2951
4048
|
|
|
4049
|
+
var checkIsFacebookGroup = function checkIsFacebookGroup(url) {
|
|
4050
|
+
return (/www\.facebook\.com\/groups/.test(url)
|
|
4051
|
+
);
|
|
4052
|
+
};
|
|
4053
|
+
|
|
2952
4054
|
var PartnerDetails = function PartnerDetails(_ref) {
|
|
2953
4055
|
var posts = _ref.posts,
|
|
2954
4056
|
query = _ref.query,
|
|
@@ -2961,112 +4063,114 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
2961
4063
|
pageview = _ref.pageview,
|
|
2962
4064
|
page = _ref.page;
|
|
2963
4065
|
|
|
2964
|
-
return
|
|
2965
|
-
|
|
4066
|
+
return React__default.createElement(
|
|
4067
|
+
React__default.Fragment,
|
|
2966
4068
|
null,
|
|
2967
|
-
|
|
2968
|
-
|
|
4069
|
+
React__default.createElement(Breadcrumbs, null),
|
|
4070
|
+
React__default.createElement(
|
|
2969
4071
|
'div',
|
|
2970
4072
|
{ className: 'partners-page' },
|
|
2971
|
-
|
|
4073
|
+
React__default.createElement(
|
|
2972
4074
|
'div',
|
|
2973
4075
|
{ className: 'my-5 partner-logo-wrap', style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center' } },
|
|
2974
|
-
partnerDetails.thumbnail && partnerDetails.thumbnail.link ?
|
|
4076
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.link ? React__default.createElement(
|
|
2975
4077
|
'a',
|
|
2976
4078
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%' }, href: partnerDetails.thumbnail.link, target: partnerDetails.thumbnail.blank ? '_blank' : '' },
|
|
2977
|
-
|
|
4079
|
+
React__default.createElement(
|
|
2978
4080
|
'figure',
|
|
2979
4081
|
{ style: { width: '100%', textAlign: 'center' } },
|
|
2980
|
-
|
|
4082
|
+
React__default.createElement('img', {
|
|
2981
4083
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
2982
4084
|
style: { maxWidth: '100%' },
|
|
2983
|
-
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
2984
|
-
|
|
4085
|
+
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
4086
|
+
}),
|
|
4087
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2985
4088
|
'figcaption',
|
|
2986
4089
|
null,
|
|
2987
4090
|
partnerDetails.thumbnail.caption
|
|
2988
4091
|
)
|
|
2989
4092
|
)
|
|
2990
|
-
) :
|
|
4093
|
+
) : React__default.createElement(
|
|
2991
4094
|
'figure',
|
|
2992
4095
|
{ className: 'partners-logo', style: { width: '25%', minWidth: '25%', textAlign: 'center' } },
|
|
2993
|
-
|
|
4096
|
+
React__default.createElement('img', {
|
|
2994
4097
|
alt: partnerDetails.thumbnail && partnerDetails.thumbnail.alt ? partnerDetails.thumbnail.alt : partnerDetails.name,
|
|
2995
4098
|
style: { maxWidth: '100%' },
|
|
2996
|
-
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
2997
|
-
|
|
4099
|
+
src: partnerDetails.thumbnail ? urlFor({ client: client, source: partnerDetails.thumbnail.asset }) : ''
|
|
4100
|
+
}),
|
|
4101
|
+
partnerDetails.thumbnail && partnerDetails.thumbnail.caption && React__default.createElement(
|
|
2998
4102
|
'figcaption',
|
|
2999
4103
|
null,
|
|
3000
4104
|
partnerDetails.thumbnail.caption
|
|
3001
4105
|
)
|
|
3002
4106
|
),
|
|
3003
|
-
|
|
4107
|
+
React__default.createElement(
|
|
3004
4108
|
'style',
|
|
3005
4109
|
{ jsx: 'true' },
|
|
3006
4110
|
'\n @media screen and (max-width: 768px) {\n .partners-logo {\n width: 100%;\n min-width: 100%;\n }\n .partner-logo-wrap {\n flex-wrap: wrap;\n }\n .block-content-partners {\n padding-left: 0 !important;\n }\n }\n '
|
|
3007
4111
|
),
|
|
3008
|
-
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) &&
|
|
4112
|
+
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
3009
4113
|
'div',
|
|
3010
4114
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
3011
|
-
partnerDetails.description &&
|
|
3012
|
-
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook) &&
|
|
4115
|
+
partnerDetails.description && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
4116
|
+
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
3013
4117
|
'div',
|
|
3014
4118
|
null,
|
|
3015
|
-
|
|
4119
|
+
React__default.createElement(
|
|
3016
4120
|
'p',
|
|
3017
|
-
{
|
|
4121
|
+
{ className: 'd-inline-block font-weight-bold' },
|
|
3018
4122
|
'Connect with us:'
|
|
3019
4123
|
),
|
|
3020
4124
|
' ',
|
|
3021
|
-
partnerDetails.linkedin &&
|
|
4125
|
+
partnerDetails.linkedin && React__default.createElement(reactSocialIcons_1, {
|
|
3022
4126
|
url: '' + partnerDetails.linkedin + (partnerDetails.linkedin.slice(-1) === '/' ? '' : '/') + 'posts/?feedView=all',
|
|
3023
4127
|
target: '_blank',
|
|
3024
4128
|
rel: 'noopener noreferrer',
|
|
3025
4129
|
style: { height: 30, width: 30 }
|
|
3026
4130
|
}),
|
|
3027
|
-
partnerDetails.twitter && partnerDetails.facebook &&
|
|
4131
|
+
(partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(reactSocialIcons_1, { url: partnerDetails.facebook, target: '_blank', rel: 'noopener noreferrer', style: { height: 30, width: 30, marginLeft: '0.25rem' } })
|
|
3028
4132
|
)
|
|
3029
4133
|
)
|
|
3030
4134
|
),
|
|
3031
|
-
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides &&
|
|
4135
|
+
partnerDetails.affiliates && partnerDetails.affiliates[0] && partnerDetails.affiliates[0].slides && React__default.createElement(
|
|
3032
4136
|
'div',
|
|
3033
4137
|
{ className: 'mb-4', style: { padding: '0 15px' } },
|
|
3034
|
-
partnerDetails.affiliates[0].title &&
|
|
4138
|
+
partnerDetails.affiliates[0].title && React__default.createElement(
|
|
3035
4139
|
'h2',
|
|
3036
4140
|
{ className: 'bb-gold' },
|
|
3037
4141
|
partnerDetails.affiliates[0].title
|
|
3038
4142
|
),
|
|
3039
|
-
|
|
4143
|
+
React__default.createElement(ImageSlider, { client: client, data: partnerDetails.affiliates[0] })
|
|
3040
4144
|
),
|
|
3041
|
-
features.length > 0 &&
|
|
4145
|
+
features.length > 0 && React__default.createElement(
|
|
3042
4146
|
'div',
|
|
3043
4147
|
{ className: ' mb-5' },
|
|
3044
|
-
|
|
4148
|
+
React__default.createElement(Feature, { dataset: features, client: client })
|
|
3045
4149
|
),
|
|
3046
|
-
(partnerDetails.twitter || partnerDetails.facebook) &&
|
|
4150
|
+
(partnerDetails.twitter || partnerDetails.facebook && !checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
3047
4151
|
'div',
|
|
3048
4152
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
3049
|
-
partnerDetails.twitter ?
|
|
4153
|
+
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
3050
4154
|
Facebook$1,
|
|
3051
4155
|
{ appId: ' ' },
|
|
3052
|
-
|
|
4156
|
+
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
3053
4157
|
)
|
|
3054
4158
|
),
|
|
3055
|
-
|
|
4159
|
+
React__default.createElement(
|
|
3056
4160
|
'div',
|
|
3057
4161
|
null,
|
|
3058
|
-
posts && posts.length > 0 &&
|
|
3059
|
-
|
|
4162
|
+
posts && posts.length > 0 && React__default.createElement(
|
|
4163
|
+
React__default.Fragment,
|
|
3060
4164
|
null,
|
|
3061
|
-
|
|
4165
|
+
React__default.createElement(
|
|
3062
4166
|
'h2',
|
|
3063
4167
|
{ className: 'bb-gold mb-2' },
|
|
3064
4168
|
'Latest from ',
|
|
3065
4169
|
partnerDetails.name
|
|
3066
4170
|
),
|
|
3067
|
-
|
|
4171
|
+
React__default.createElement('hr', null)
|
|
3068
4172
|
),
|
|
3069
|
-
|
|
4173
|
+
React__default.createElement(QueueDeckExpanded, {
|
|
3070
4174
|
client: client,
|
|
3071
4175
|
mapping: Settings.mapping,
|
|
3072
4176
|
dataRecord: posts,
|
|
@@ -3104,8 +4208,8 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
3104
4208
|
|
|
3105
4209
|
|
|
3106
4210
|
if (category) {
|
|
3107
|
-
//if partners page has a sub category such as onclive
|
|
3108
|
-
//e.g. /sap-partner/[category]/[partner]
|
|
4211
|
+
// if partners page has a sub category such as onclive
|
|
4212
|
+
// e.g. /sap-partner/[category]/[partner]
|
|
3109
4213
|
|
|
3110
4214
|
partnerQuery = '*[_type == \'documentGroup\' && !(_id in path("drafts.**")) && identifier.current == \'' + category + '\' && references(\'' + partnerDocumentGroupID + '\')] [0] {\n ...,\n \'partner\': *[_type == \'documentGroup\' && identifier.current == \'' + identifier + '\' && references(^._id)] [0] {\n description,\n name,\n identifier,\n thumbnail,\n twitter,\n facebook,\n linkedin,\n "affiliates": description[_type==\'slideshows\']{\n ...,\n slides->{...}\n }\n \n }\n }';
|
|
3111
4215
|
}
|
|
@@ -3132,7 +4236,7 @@ PartnerDetails.returnGetInitialProps = function () {
|
|
|
3132
4236
|
articles = _context.sent;
|
|
3133
4237
|
|
|
3134
4238
|
|
|
3135
|
-
//need to exclude slideshows from body due to the affiliate slider
|
|
4239
|
+
// need to exclude slideshows from body due to the affiliate slider
|
|
3136
4240
|
if (partnerDetails && partnerDetails.description) {
|
|
3137
4241
|
partnerDetails.description = partnerDetails.description.filter(function (block) {
|
|
3138
4242
|
return block._type !== 'slideshows';
|