@mjhls/mjh-framework 1.0.883-mwn-test-v4 → 1.0.884-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +168 -168
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +28 -29
- package/dist/cjs/AD300x250x600.js +28 -29
- package/dist/cjs/AD728x90.js +31 -32
- package/dist/cjs/ADFloatingFooter.js +30 -31
- package/dist/cjs/ADFooter.js +12 -13
- package/dist/cjs/ADGutter.js +30 -31
- package/dist/cjs/{ADInfeed-bce0ba07.js → ADInfeed-2e48af77.js} +13 -15
- package/dist/cjs/ADSkyscraper.js +30 -31
- package/dist/cjs/ADSponsoredResources.js +30 -31
- package/dist/cjs/ADWebcast.js +30 -31
- package/dist/cjs/ADWelcome.js +31 -32
- package/dist/cjs/{ADlgInfeed-950b414b.js → ADlgInfeed-c39c7131.js} +10 -11
- package/dist/cjs/AccordionPanel.js +27 -29
- package/dist/cjs/AdSlot.js +31 -32
- package/dist/cjs/AdSlotsProvider.js +909 -18
- package/dist/cjs/AlgoliaSearch.js +1306 -1490
- package/dist/cjs/AlphabeticList.js +23 -24
- package/dist/cjs/ArticleCarousel.js +19 -20
- package/dist/cjs/ArticleProgramLandingPage.js +60 -61
- package/dist/cjs/ArticleSeriesLandingPage.js +40 -41
- package/dist/cjs/ArticleSeriesListing.js +59 -60
- package/dist/cjs/Auth.js +1504 -680
- package/dist/cjs/AuthWrapper.js +419 -1637
- package/dist/cjs/{AuthorComponent-39b37d84.js → AuthorComponent-02e827ae.js} +13 -14
- package/dist/cjs/Beam.js +6 -6
- package/dist/cjs/{BlockContent-9ebd251f.js → BlockContent-091a991f.js} +55 -56
- package/dist/cjs/Breadcrumbs.js +25 -27
- package/dist/cjs/CMEDeck.js +81 -81
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +31 -34
- package/dist/cjs/Column3.js +57 -60
- package/dist/cjs/ConferenceArticleCard.js +40 -41
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +101 -105
- package/dist/cjs/DeckQueue.js +87 -91
- package/dist/cjs/{Dfp-9be904d5.js → Dfp-14d2455c.js} +32 -33
- package/dist/cjs/EventsDeck.js +150 -157
- package/dist/cjs/ExternalResources.js +78 -79
- package/dist/cjs/Feature.js +27 -29
- package/dist/cjs/ForbesHero.js +40 -41
- package/dist/cjs/GridContent.js +231 -236
- package/dist/cjs/GridHero.js +42 -43
- package/dist/cjs/GroupDeck.js +57 -58
- package/dist/cjs/HamMagazine.js +139 -144
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +15 -16
- package/dist/cjs/HighlightenVideo.js +17 -18
- package/dist/cjs/HorizontalArticleListing.js +71 -72
- package/dist/cjs/HorizontalHero.js +28 -29
- package/dist/cjs/IssueContentDeck.js +71 -76
- package/dist/cjs/IssueDeck.js +70 -75
- package/dist/cjs/IssueLanding.js +93 -94
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +37 -39
- package/dist/cjs/MasterDeck.js +78 -79
- package/dist/cjs/MediaSeriesLanding.js +1138 -1233
- package/dist/cjs/NavDvm.js +72 -77
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +146 -151
- package/dist/cjs/NavNative.js +137 -145
- package/dist/cjs/OncliveHero.js +22 -22
- package/dist/cjs/OncliveLargeHero.js +70 -71
- package/dist/cjs/PageFilter.js +12 -13
- package/dist/cjs/PartnerDetailListing.js +1463 -289
- package/dist/cjs/PdfDownload.js +9 -10
- package/dist/cjs/PopUpModal.js +17 -19
- package/dist/cjs/PubSection.js +40 -41
- package/dist/cjs/PubToc.js +13 -14
- package/dist/cjs/PublicationDeck.js +65 -70
- package/dist/cjs/PublicationLanding.js +133 -141
- package/dist/cjs/QueueDeckExpanded.js +308 -308
- package/dist/cjs/RecentNews.js +22 -23
- package/dist/cjs/RelatedContent.js +57 -58
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Schema.js +100 -0
- package/dist/cjs/Search.js +16 -20
- package/dist/cjs/Segment.js +4 -4
- package/dist/cjs/SeriesListingDeck.js +36 -36
- package/dist/cjs/{SeriesSlider-ba0c5d1a.js → SeriesSlider-49b81b0b.js} +39 -40
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +36 -37
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-4942ddfc.js → SocialSearchComponent-e8477ca3.js} +36 -40
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +61 -66
- package/dist/cjs/TaxonomyDescription.js +53 -54
- package/dist/cjs/TemplateNormal.js +72 -73
- package/dist/cjs/ThumbnailCard.js +24 -26
- package/dist/cjs/Ustream.js +79 -71
- package/dist/cjs/VerticalHero.js +19 -20
- package/dist/cjs/VideoProgramLandingPage.js +74 -78
- package/dist/cjs/VideoSeriesCard.js +32 -33
- package/dist/cjs/VideoSeriesFilter.js +16 -16
- package/dist/cjs/VideoSeriesLandingPage.js +49 -50
- package/dist/cjs/VideoSeriesListing.js +76 -77
- package/dist/cjs/View.js +264 -347
- package/dist/cjs/YahooHero.js +39 -40
- package/dist/cjs/YoutubeGroup.js +67 -68
- package/dist/cjs/{_is-array-54228b29.js → _is-array-aa52fa1e.js} +6 -6
- package/dist/cjs/{_iter-detect-b1df62f0.js → _iter-detect-05795553.js} +7 -7
- package/dist/cjs/{_object-pie-083f2dd6.js → _object-pie-68c5bcbc.js} +4 -4
- package/dist/cjs/{_object-sap-d1978572.js → _object-sap-171b9ea5.js} +1 -1
- package/dist/cjs/{_object-to-array-ce86cae7.js → _object-to-array-9bac8737.js} +2 -2
- package/dist/cjs/{asyncToGenerator-77821af0.js → asyncToGenerator-df19209d.js} +30 -30
- package/dist/cjs/{brightcove-react-player-loader.es-a195642e.js → brightcove-react-player-loader.es-156bd4d6.js} +9 -11
- package/dist/cjs/{core.get-iterator-method-5643aa10.js → core.get-iterator-method-f3c44602.js} +35 -35
- package/dist/cjs/{debounce-d4a2369b.js → debounce-529c8d06.js} +2 -2
- package/dist/cjs/{define-property-e8404b64.js → define-property-21887c62.js} +6 -6
- package/dist/cjs/{defineProperty-9673846a.js → defineProperty-77a37684.js} +1 -1
- package/dist/cjs/{entities-df1aed86.js → entities-310b46ee.js} +1 -5
- package/dist/cjs/{eq-5fc26c07.js → eq-bb2843ed.js} +1 -1
- package/dist/cjs/{extends-7c86182f.js → extends-eed4f016.js} +7 -7
- package/dist/cjs/faundadb.js +19 -19
- package/dist/cjs/{get-5839e5b5.js → get-adbb11e3.js} +21 -21
- package/dist/cjs/getRelatedArticle.js +16 -16
- package/dist/cjs/getRootDocGroup.js +6 -6
- package/dist/cjs/getSerializers.js +43 -43
- package/dist/cjs/getSeriesDetail.js +3 -0
- package/dist/cjs/{getTargeting-9d509319.js → getTargeting-8874437b.js} +12 -12
- package/dist/cjs/getTargeting.js +6 -6
- package/dist/{esm/iconBase-ccc56b97.js → cjs/iconBase-68959171.js} +8 -2
- package/dist/cjs/{index-f86bb269.js → index-3294d3bc.js} +45 -44
- package/dist/cjs/{index-af49d679.js → index-396089c0.js} +1044 -1070
- package/dist/cjs/{index-eadd5035.js → index-96b3db50.js} +15 -17
- package/dist/cjs/{index-fc2f1ca2.js → index-98e01cb9.js} +12 -13
- package/dist/cjs/{index-d48b231c.js → index-be0c82be.js} +25 -31
- package/dist/cjs/{index-50be6759.js → index-e2e62963.js} +10 -26
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-2bb721c8.js → index.esm-4d410430.js} +21 -21
- package/dist/cjs/{index.esm-d81454e7.js → index.esm-90433435.js} +18 -6
- package/dist/cjs/{index.esm-c1e16606.js → index.esm-e32d3e8e.js} +7 -4
- package/dist/cjs/{index.esm-88593816.js → index.esm-ff47db6f.js} +15 -8
- package/dist/cjs/index.js +166 -171
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{inherits-de66ea16.js → inherits-cba9c846.js} +19 -19
- package/dist/cjs/{isSymbol-03abbdf0.js → isSymbol-04666465.js} +15 -15
- package/dist/cjs/{keys-e982b3fa.js → keys-d207942e.js} +6 -6
- package/dist/cjs/{lodash-f0783643.js → lodash-fc2922d0.js} +31 -128
- package/dist/cjs/main-02daeefe.js +862 -0
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-aca40de1.js → moment-575fe24c.js} +9 -11
- package/dist/cjs/{react-social-icons-af932527.js → react-social-icons-f7f48f71.js} +27 -28
- package/dist/cjs/{slicedToArray-067dd3bc.js → slicedToArray-f6d4eaa8.js} +12 -12
- package/dist/cjs/{smoothscroll-99df7f93.js → smoothscroll-5054361f.js} +1 -1
- package/dist/cjs/{stringify-f7a37a8d.js → stringify-bbc68047.js} +5 -5
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-d7797c2b.js → toConsumableArray-c9b8a0d0.js} +7 -7
- package/dist/cjs/{toNumber-5e1fac58.js → toNumber-36d1e7e5.js} +5 -40
- package/dist/cjs/{typeof-567e31ff.js → typeof-5f52cf64.js} +35 -35
- package/dist/cjs/urlFor.js +6 -6
- package/dist/cjs/{ustream-api-3819e4aa.js → ustream-api-9ebe112f.js} +4 -4
- package/dist/cjs/{util-93a37fd0.js → util-f2c1b65b.js} +1 -12
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/cjs/{web.dom.iterable-d98303e0.js → web.dom.iterable-e34bf324.js} +2 -2
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +22 -22
- package/dist/esm/AD300x250x600.js +22 -22
- package/dist/esm/AD728x90.js +25 -25
- package/dist/esm/ADFloatingFooter.js +21 -21
- package/dist/esm/ADFooter.js +4 -4
- package/dist/esm/ADGutter.js +21 -21
- package/dist/esm/{ADInfeed-0a55cd2d.js → ADInfeed-8a038df9.js} +6 -6
- package/dist/esm/ADSkyscraper.js +21 -21
- package/dist/esm/ADSponsoredResources.js +21 -21
- package/dist/esm/ADWebcast.js +21 -21
- package/dist/esm/ADWelcome.js +18 -18
- package/dist/esm/{ADlgInfeed-013e1f4a.js → ADlgInfeed-cee95aa2.js} +4 -4
- package/dist/esm/AccordionPanel.js +6 -6
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +906 -14
- package/dist/esm/AlgoliaSearch.js +534 -717
- package/dist/esm/AlphabeticList.js +8 -8
- package/dist/esm/ArticleCarousel.js +13 -13
- package/dist/esm/ArticleProgramLandingPage.js +48 -48
- package/dist/esm/ArticleSeriesLandingPage.js +30 -30
- package/dist/esm/ArticleSeriesListing.js +32 -32
- package/dist/esm/Auth.js +1419 -591
- package/dist/esm/AuthWrapper.js +392 -1609
- package/dist/esm/{AuthorComponent-11adff02.js → AuthorComponent-e6f95c2f.js} +1 -1
- package/dist/esm/Beam.js +6 -6
- package/dist/esm/{BlockContent-1e73bd2c.js → BlockContent-e9b4ddcf.js} +34 -34
- package/dist/esm/Breadcrumbs.js +5 -5
- package/dist/esm/CMEDeck.js +22 -22
- package/dist/esm/Column1.js +4 -4
- package/dist/esm/Column2.js +19 -19
- package/dist/esm/Column3.js +37 -37
- package/dist/esm/ConferenceArticleCard.js +25 -25
- package/dist/esm/DeckContent.js +55 -55
- package/dist/esm/DeckQueue.js +47 -47
- package/dist/esm/{Dfp-102f0beb.js → Dfp-f867d061.js} +13 -13
- package/dist/esm/EventsDeck.js +65 -65
- package/dist/esm/ExternalResources.js +46 -46
- package/dist/esm/Feature.js +7 -7
- package/dist/esm/ForbesHero.js +10 -10
- package/dist/esm/GridContent.js +88 -88
- package/dist/esm/GridHero.js +11 -11
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +37 -37
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalArticleListing.js +46 -46
- package/dist/esm/HorizontalHero.js +8 -8
- package/dist/esm/IssueContentDeck.js +25 -25
- package/dist/esm/IssueDeck.js +35 -35
- package/dist/esm/IssueLanding.js +82 -82
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +20 -20
- package/dist/esm/MasterDeck.js +43 -43
- package/dist/esm/MediaSeriesLanding.js +660 -752
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +42 -42
- package/dist/esm/NavNative.js +41 -41
- package/dist/esm/OncliveHero.js +8 -7
- package/dist/esm/OncliveLargeHero.js +11 -11
- package/dist/esm/PageFilter.js +4 -4
- package/dist/esm/PartnerDetailListing.js +1371 -196
- package/dist/esm/PdfDownload.js +2 -2
- package/dist/esm/PopUpModal.js +4 -4
- package/dist/esm/PubSection.js +32 -32
- package/dist/esm/PubToc.js +6 -6
- package/dist/esm/PublicationDeck.js +27 -27
- package/dist/esm/PublicationLanding.js +74 -78
- package/dist/esm/QueueDeckExpanded.js +36 -36
- package/dist/esm/RecentNews.js +4 -4
- package/dist/esm/RelatedContent.js +38 -38
- package/dist/esm/RelatedTopicsDropdown.js +10 -10
- package/dist/esm/RolesDeck.js +12 -12
- package/dist/esm/Schema.js +95 -0
- package/dist/esm/Search.js +6 -6
- package/dist/esm/Segment.js +4 -4
- package/dist/esm/SeriesListingDeck.js +18 -18
- package/dist/esm/{SeriesSlider-45adb8dc.js → SeriesSlider-ce19fa25.js} +14 -14
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +15 -15
- package/dist/esm/{SocialSearchComponent-8e0fcf66.js → SocialSearchComponent-b5be0e6c.js} +12 -12
- package/dist/esm/TaxonomyCard.js +27 -27
- package/dist/esm/TaxonomyDescription.js +44 -44
- package/dist/esm/TemplateNormal.js +48 -48
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +72 -63
- package/dist/esm/VerticalHero.js +6 -6
- package/dist/esm/VideoProgramLandingPage.js +52 -52
- package/dist/esm/VideoSeriesCard.js +14 -14
- package/dist/esm/VideoSeriesFilter.js +7 -7
- package/dist/esm/VideoSeriesLandingPage.js +36 -36
- package/dist/esm/VideoSeriesListing.js +33 -33
- package/dist/esm/View.js +91 -170
- package/dist/esm/YahooHero.js +13 -13
- package/dist/esm/YoutubeGroup.js +21 -21
- package/dist/esm/{_is-array-8d21b9e3.js → _is-array-4df618a6.js} +6 -6
- package/dist/esm/{_iter-detect-98db3b07.js → _iter-detect-130ee549.js} +7 -7
- package/dist/esm/{_object-pie-133f504a.js → _object-pie-33c40e79.js} +4 -4
- package/dist/esm/{_object-sap-7cee6f84.js → _object-sap-8b8ea5a9.js} +1 -1
- package/dist/esm/{_object-to-array-2300e51b.js → _object-to-array-c54dd835.js} +2 -2
- package/dist/esm/{asyncToGenerator-5ef104a7.js → asyncToGenerator-7bf8bc4d.js} +30 -30
- package/dist/esm/{brightcove-react-player-loader.es-57a70a56.js → brightcove-react-player-loader.es-83f53e4e.js} +4 -5
- package/dist/esm/{core.get-iterator-method-ea258bb1.js → core.get-iterator-method-86d4db69.js} +36 -36
- package/dist/esm/{debounce-533d9748.js → debounce-9207d8ee.js} +2 -2
- package/dist/esm/define-property-6d26cb48.js +18 -0
- package/dist/esm/{defineProperty-8c30428f.js → defineProperty-d7d9b577.js} +1 -1
- package/dist/esm/{entities-6d9154b4.js → entities-7cc3bf45.js} +1 -5
- package/dist/esm/{eq-bdcbf886.js → eq-b470f743.js} +1 -1
- package/dist/esm/{extends-6d8e3924.js → extends-5b1796d4.js} +7 -7
- package/dist/esm/faundadb.js +5 -5
- package/dist/esm/{get-3c308da4.js → get-1e515072.js} +21 -21
- package/dist/esm/getRelatedArticle.js +11 -11
- package/dist/esm/getRootDocGroup.js +4 -4
- package/dist/esm/getSerializers.js +43 -43
- package/dist/esm/getSeriesDetail.js +3 -0
- package/dist/esm/{getTargeting-4061f839.js → getTargeting-277c801e.js} +11 -11
- package/dist/esm/getTargeting.js +6 -6
- package/dist/{cjs/iconBase-be4097c0.js → esm/iconBase-602d52fe.js} +8 -33
- package/dist/esm/{index-d7489d39.js → index-0e04b7d7.js} +618 -634
- package/dist/esm/{index-f0fc23eb.js → index-41a678ea.js} +4 -4
- package/dist/esm/{index-755f2cc2.js → index-5f7e79e7.js} +6 -6
- package/dist/esm/{index-3f5c03b2.js → index-73819142.js} +25 -31
- package/dist/esm/{index-98ca9cec.js → index-aaa2dae0.js} +11 -26
- package/dist/esm/{index-79cfd25c.js → index-ef6d5dcf.js} +45 -44
- package/dist/esm/{index.es-a6137319.js → index.es-29c1cef5.js} +5 -23
- package/dist/esm/{index.esm-eb1e8e80.js → index.esm-29e48d38.js} +18 -7
- package/dist/esm/{index.esm-28aafed6.js → index.esm-cf08bf18.js} +15 -8
- package/dist/esm/{index.esm-9b042655.js → index.esm-f8aaeeeb.js} +7 -4
- package/dist/esm/{index.esm-37268dca.js → index.esm-fd746768.js} +5 -4
- package/dist/esm/index.js +123 -126
- package/dist/esm/{inherits-a6ba2ec4.js → inherits-2409637d.js} +18 -18
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{isSymbol-a7e9aafe.js → isSymbol-1981418f.js} +15 -15
- package/dist/esm/{keys-31dcdb31.js → keys-69989821.js} +6 -6
- package/dist/esm/{lodash-f97fd99a.js → lodash-17fdfebb.js} +31 -128
- package/dist/esm/main-c0612122.js +851 -0
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-bc12cb97.js → moment-e2f9b20c.js} +9 -11
- package/dist/esm/{react-social-icons-9be47857.js → react-social-icons-a7d5c5c7.js} +16 -16
- package/dist/esm/{slicedToArray-6ebcbfea.js → slicedToArray-67a08c9c.js} +12 -12
- package/dist/esm/{smoothscroll-fa4e3f8c.js → smoothscroll-0cd4c7a6.js} +1 -1
- package/dist/esm/stringify-70b72959.js +15 -0
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-f7074d7c.js → toConsumableArray-32282905.js} +7 -7
- package/dist/esm/{toNumber-5aeba6e7.js → toNumber-2f7a84cd.js} +5 -40
- package/dist/esm/{typeof-e9fc0c5d.js → typeof-c05a82ba.js} +35 -35
- package/dist/esm/urlFor.js +4 -4
- package/dist/esm/{ustream-api-d3714624.js → ustream-api-4c4fe0ba.js} +4 -4
- package/dist/esm/{util-8ed16d48.js → util-7700fc59.js} +1 -12
- package/dist/esm/{web.dom.iterable-ab4dea5c.js → web.dom.iterable-f8f967cd.js} +2 -2
- package/package.json +111 -111
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
- package/dist/cjs/defineProperty-e0fb52c5.js +0 -73
- package/dist/cjs/main-f1c77adb.js +0 -973
- package/dist/cjs/typeof-1358762e.js +0 -33
- package/dist/esm/define-property-5f1bda73.js +0 -18
- package/dist/esm/defineProperty-23a8f8cd.js +0 -68
- package/dist/esm/main-1894c974.js +0 -961
- package/dist/esm/stringify-2b084bee.js +0 -15
- package/dist/esm/typeof-2f07d0e8.js +0 -30
|
@@ -1,76 +1,1227 @@
|
|
|
1
|
-
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-5ef104a7.js';
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-6ebcbfea.js';
|
|
3
|
-
import { _ as _extends$1 } from './extends-6d8e3924.js';
|
|
4
|
-
import React__default, { createContext, Component, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
5
|
-
import { TwitterTimelineEmbed } from 'react-twitter-embed';
|
|
6
|
-
import { _ as _asyncToGenerator, a as _defineProperty } from './defineProperty-23a8f8cd.js';
|
|
7
1
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
8
|
-
import
|
|
9
|
-
import { r as reactSocialIcons_1 } from './react-social-icons-9be47857.js';
|
|
10
|
-
import { s as smoothscroll } from './smoothscroll-fa4e3f8c.js';
|
|
11
|
-
import urlFor from './urlFor.js';
|
|
12
|
-
import { m as moment } from './moment-bc12cb97.js';
|
|
13
|
-
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
14
|
-
import Breadcrumbs from './Breadcrumbs.js';
|
|
15
|
-
import Feature from './Feature.js';
|
|
16
|
-
import { g as getSerializers } from './index-d7489d39.js';
|
|
17
|
-
import { B as BlockContent } from './BlockContent-1e73bd2c.js';
|
|
18
|
-
import './core.get-iterator-method-ea258bb1.js';
|
|
19
|
-
import './web.dom.iterable-ab4dea5c.js';
|
|
2
|
+
import './core.get-iterator-method-86d4db69.js';
|
|
20
3
|
import './_library-528f1934.js';
|
|
21
|
-
import './_iter-detect-
|
|
22
|
-
import './
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import '
|
|
26
|
-
import './
|
|
27
|
-
import './
|
|
28
|
-
import '
|
|
29
|
-
import './
|
|
4
|
+
import './_iter-detect-130ee549.js';
|
|
5
|
+
import './toConsumableArray-32282905.js';
|
|
6
|
+
import './_object-pie-33c40e79.js';
|
|
7
|
+
import { _ as _extends } from './extends-5b1796d4.js';
|
|
8
|
+
import './_object-sap-8b8ea5a9.js';
|
|
9
|
+
import './inherits-2409637d.js';
|
|
10
|
+
import './define-property-6d26cb48.js';
|
|
11
|
+
import './web.dom.iterable-f8f967cd.js';
|
|
12
|
+
import './typeof-c05a82ba.js';
|
|
13
|
+
import './_is-array-4df618a6.js';
|
|
14
|
+
import React__default, { Component, createContext, forwardRef, PureComponent, useRef, useState, useEffect } from 'react';
|
|
30
15
|
import './events-6c3a7a63.js';
|
|
31
|
-
import '
|
|
32
|
-
import '
|
|
33
|
-
import '
|
|
34
|
-
import '
|
|
35
|
-
import './ADInfeed-0a55cd2d.js';
|
|
16
|
+
import './index-41a678ea.js';
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
18
|
+
import 'react-bootstrap/Row';
|
|
19
|
+
import 'react-bootstrap/Col';
|
|
36
20
|
import 'react-bootstrap/Card';
|
|
37
|
-
import './
|
|
38
|
-
import '
|
|
39
|
-
import './isSymbol-
|
|
40
|
-
import './
|
|
41
|
-
import './
|
|
42
|
-
import './
|
|
21
|
+
import { m as moment } from './moment-e2f9b20c.js';
|
|
22
|
+
import 'next/router';
|
|
23
|
+
import './isSymbol-1981418f.js';
|
|
24
|
+
import './debounce-9207d8ee.js';
|
|
25
|
+
import './toNumber-2f7a84cd.js';
|
|
26
|
+
import './index.es-29c1cef5.js';
|
|
27
|
+
import 'react-dom';
|
|
28
|
+
import './visibility-sensor-72fd8f8b.js';
|
|
29
|
+
import { _ as _slicedToArray } from './slicedToArray-67a08c9c.js';
|
|
30
|
+
import './index-73819142.js';
|
|
31
|
+
import urlFor from './urlFor.js';
|
|
32
|
+
import './index-5f7e79e7.js';
|
|
33
|
+
import './main-c0612122.js';
|
|
34
|
+
import './entities-7cc3bf45.js';
|
|
35
|
+
import './stringify-70b72959.js';
|
|
36
|
+
import { a as _asyncToGenerator$1, r as regenerator, _ as _Promise } from './asyncToGenerator-7bf8bc4d.js';
|
|
43
37
|
import './Segment.js';
|
|
44
|
-
import './
|
|
45
|
-
import './
|
|
46
|
-
import './
|
|
38
|
+
import './Beam.js';
|
|
39
|
+
import './AdSlot.js';
|
|
40
|
+
import './ADInfeed-8a038df9.js';
|
|
41
|
+
import './lodash-17fdfebb.js';
|
|
42
|
+
import './ADlgInfeed-cee95aa2.js';
|
|
47
43
|
import './getContentCategory-15dcc413.js';
|
|
48
|
-
import './
|
|
49
|
-
import 'react-bootstrap/
|
|
50
|
-
import '
|
|
44
|
+
import './AuthorComponent-e6f95c2f.js';
|
|
45
|
+
import 'react-bootstrap/Button';
|
|
46
|
+
import { B as BlockContent } from './BlockContent-e9b4ddcf.js';
|
|
47
|
+
import { r as reactSocialIcons_1 } from './react-social-icons-a7d5c5c7.js';
|
|
51
48
|
import './index-c7e2ac95.js';
|
|
52
|
-
import './
|
|
53
|
-
import './typeof-e9fc0c5d.js';
|
|
54
|
-
import './_is-array-8d21b9e3.js';
|
|
55
|
-
import './brightcove-react-player-loader.es-57a70a56.js';
|
|
49
|
+
import { s as smoothscroll } from './smoothscroll-0cd4c7a6.js';
|
|
56
50
|
import './GroupDeck.js';
|
|
57
|
-
import '
|
|
51
|
+
import 'react-bootstrap';
|
|
52
|
+
import './timeDifferenceCalc.js';
|
|
53
|
+
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
54
|
+
import './iconBase-602d52fe.js';
|
|
55
|
+
import './index.esm-29e48d38.js';
|
|
56
|
+
import { g as getSerializers } from './index-0e04b7d7.js';
|
|
57
|
+
import './util-7700fc59.js';
|
|
58
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
58
59
|
import 'next/head';
|
|
59
60
|
import 'react-share';
|
|
60
|
-
import './
|
|
61
|
+
import './SocialShare.js';
|
|
62
|
+
import './_object-to-array-c54dd835.js';
|
|
61
63
|
import 'react-bootstrap/Pagination';
|
|
62
|
-
import 'react-bootstrap/Button';
|
|
63
|
-
import 'react-bootstrap/Row';
|
|
64
|
-
import 'react-bootstrap/Col';
|
|
65
|
-
import './inherits-a6ba2ec4.js';
|
|
66
|
-
import './_object-sap-7cee6f84.js';
|
|
67
|
-
import './define-property-5f1bda73.js';
|
|
68
|
-
import './index.esm-eb1e8e80.js';
|
|
69
|
-
import './iconBase-ccc56b97.js';
|
|
70
64
|
import 'react-bootstrap/Figure';
|
|
71
65
|
import 'react-bootstrap/OverlayTrigger';
|
|
72
66
|
import 'react-bootstrap/Tooltip';
|
|
73
67
|
import 'react-bootstrap/Popover';
|
|
68
|
+
import { _ as _defineProperty$1, b as _inherits, c as _classCallCheck, d as _possibleConstructorReturn, e as _getPrototypeOf, g as _createClass } from './inherits-77d5e4fc.js';
|
|
69
|
+
import 'react-bootstrap/Carousel';
|
|
70
|
+
import Feature from './Feature.js';
|
|
71
|
+
import 'react-bootstrap/Breadcrumb';
|
|
72
|
+
import Breadcrumbs from './Breadcrumbs.js';
|
|
73
|
+
|
|
74
|
+
var isRequiredIf_1 = createCommonjsModule(function (module, exports) {
|
|
75
|
+
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.
|
|
76
|
+
}};exports.default=isRequiredIf;
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
var isRequiredIf = unwrapExports(isRequiredIf_1);
|
|
82
|
+
|
|
83
|
+
var exenv = createCommonjsModule(function (module) {
|
|
84
|
+
/*!
|
|
85
|
+
Copyright (c) 2015 Jed Watson.
|
|
86
|
+
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
87
|
+
All rights reserved.
|
|
88
|
+
*/
|
|
89
|
+
/* global define */
|
|
90
|
+
|
|
91
|
+
(function () {
|
|
92
|
+
|
|
93
|
+
var canUseDOM = !!(
|
|
94
|
+
typeof window !== 'undefined' &&
|
|
95
|
+
window.document &&
|
|
96
|
+
window.document.createElement
|
|
97
|
+
);
|
|
98
|
+
|
|
99
|
+
var ExecutionEnvironment = {
|
|
100
|
+
|
|
101
|
+
canUseDOM: canUseDOM,
|
|
102
|
+
|
|
103
|
+
canUseWorkers: typeof Worker !== 'undefined',
|
|
104
|
+
|
|
105
|
+
canUseEventListeners:
|
|
106
|
+
canUseDOM && !!(window.addEventListener || window.attachEvent),
|
|
107
|
+
|
|
108
|
+
canUseViewport: canUseDOM && !!window.screen
|
|
109
|
+
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
if ( module.exports) {
|
|
113
|
+
module.exports = ExecutionEnvironment;
|
|
114
|
+
} else {
|
|
115
|
+
window.ExecutionEnvironment = ExecutionEnvironment;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
}());
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
var twitterWidgetJs = 'https://platform.twitter.com/widgets.js';
|
|
122
|
+
|
|
123
|
+
var TwitterTimelineEmbed =
|
|
124
|
+
/*#__PURE__*/
|
|
125
|
+
function (_Component) {
|
|
126
|
+
_inherits(TwitterTimelineEmbed, _Component);
|
|
127
|
+
|
|
128
|
+
function TwitterTimelineEmbed(props) {
|
|
129
|
+
var _this;
|
|
130
|
+
|
|
131
|
+
_classCallCheck(this, TwitterTimelineEmbed);
|
|
132
|
+
|
|
133
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTimelineEmbed).call(this, props));
|
|
134
|
+
_this.state = {
|
|
135
|
+
isLoading: true
|
|
136
|
+
};
|
|
137
|
+
return _this;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
_createClass(TwitterTimelineEmbed, [{
|
|
141
|
+
key: "buildChromeOptions",
|
|
142
|
+
value: function buildChromeOptions(options) {
|
|
143
|
+
options.chrome = '';
|
|
144
|
+
|
|
145
|
+
if (this.props.noHeader) {
|
|
146
|
+
options.chrome = options.chrome + ' noheader';
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
if (this.props.noFooter) {
|
|
150
|
+
options.chrome = options.chrome + ' nofooter';
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (this.props.noBorders) {
|
|
154
|
+
options.chrome = options.chrome + ' noborders';
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (this.props.noScrollbar) {
|
|
158
|
+
options.chrome = options.chrome + ' noscrollbar';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (this.props.transparent) {
|
|
162
|
+
options.chrome = options.chrome + ' transparent';
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
return options;
|
|
166
|
+
}
|
|
167
|
+
}, {
|
|
168
|
+
key: "buildOptions",
|
|
169
|
+
value: function buildOptions() {
|
|
170
|
+
var options = Object.assign({}, this.props.options);
|
|
171
|
+
|
|
172
|
+
if (this.props.autoHeight) {
|
|
173
|
+
options.height = this.refs.embedContainer.parentNode.offsetHeight;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
options = Object.assign({}, options, {
|
|
177
|
+
theme: this.props.theme,
|
|
178
|
+
linkColor: this.props.linkColor,
|
|
179
|
+
borderColor: this.props.borderColor,
|
|
180
|
+
lang: this.props.lang
|
|
181
|
+
});
|
|
182
|
+
return options;
|
|
183
|
+
}
|
|
184
|
+
}, {
|
|
185
|
+
key: "renderWidget",
|
|
186
|
+
value: function renderWidget(options) {
|
|
187
|
+
var _this2 = this;
|
|
188
|
+
|
|
189
|
+
var onLoad = this.props.onLoad;
|
|
190
|
+
|
|
191
|
+
if (!this.isMountCanceled) {
|
|
192
|
+
window.twttr.widgets.createTimeline({
|
|
193
|
+
sourceType: this.props.sourceType,
|
|
194
|
+
screenName: this.props.screenName,
|
|
195
|
+
userId: this.props.userId,
|
|
196
|
+
ownerScreenName: this.props.ownerScreenName,
|
|
197
|
+
slug: this.props.slug,
|
|
198
|
+
id: this.props.id || this.props.widgetId,
|
|
199
|
+
url: this.props.url
|
|
200
|
+
}, this.refs.embedContainer, options).then(function (element) {
|
|
201
|
+
_this2.setState({
|
|
202
|
+
isLoading: false
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
if (onLoad) {
|
|
206
|
+
onLoad(element);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}, {
|
|
212
|
+
key: "componentDidMount",
|
|
213
|
+
value: function componentDidMount() {
|
|
214
|
+
var _this3 = this;
|
|
215
|
+
|
|
216
|
+
if (exenv.canUseDOM) {
|
|
217
|
+
var script = require('scriptjs');
|
|
218
|
+
|
|
219
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
220
|
+
if (!window.twttr) {
|
|
221
|
+
console.error('Failure to load window.twttr in TwitterTimelineEmbed, aborting load.');
|
|
222
|
+
return;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
var options = _this3.buildOptions();
|
|
226
|
+
/** Append chrome options */
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
options = _this3.buildChromeOptions(options);
|
|
230
|
+
|
|
231
|
+
_this3.renderWidget(options);
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}, {
|
|
236
|
+
key: "componentWillUnmount",
|
|
237
|
+
value: function componentWillUnmount() {
|
|
238
|
+
this.isMountCanceled = true;
|
|
239
|
+
}
|
|
240
|
+
}, {
|
|
241
|
+
key: "render",
|
|
242
|
+
value: function render() {
|
|
243
|
+
var isLoading = this.state.isLoading;
|
|
244
|
+
var placeholder = this.props.placeholder;
|
|
245
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
246
|
+
ref: "embedContainer"
|
|
247
|
+
}));
|
|
248
|
+
}
|
|
249
|
+
}]);
|
|
250
|
+
|
|
251
|
+
return TwitterTimelineEmbed;
|
|
252
|
+
}(Component);
|
|
253
|
+
|
|
254
|
+
_defineProperty$1(TwitterTimelineEmbed, "propTypes", {
|
|
255
|
+
/**
|
|
256
|
+
* This can be either of profile, likes, list, collection, URL, widget
|
|
257
|
+
*/
|
|
258
|
+
sourceType: PropTypes.oneOf(['profile', 'likes', 'list', 'collection', 'url', 'widget']).isRequired,
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* username of twitter handle as String
|
|
262
|
+
*/
|
|
263
|
+
screenName: isRequiredIf(PropTypes.string, function (props) {
|
|
264
|
+
return !props.hasOwnProperty('userId') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
265
|
+
}),
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* UserId of twitter handle as number
|
|
269
|
+
*/
|
|
270
|
+
userId: isRequiredIf(PropTypes.number, function (props) {
|
|
271
|
+
return !props.hasOwnProperty('screenName') && (props.sourceType === 'profile' || props.sourceType === 'likes');
|
|
272
|
+
}),
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* To show list, used along with slug
|
|
276
|
+
*/
|
|
277
|
+
ownerScreenName: isRequiredIf(PropTypes.string, function (props) {
|
|
278
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
279
|
+
}),
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* To show list, used along with ownerScreenName
|
|
283
|
+
*/
|
|
284
|
+
slug: isRequiredIf(PropTypes.string, function (props) {
|
|
285
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('id');
|
|
286
|
+
}),
|
|
287
|
+
|
|
288
|
+
/**
|
|
289
|
+
* To show list, unique list id
|
|
290
|
+
* Also used with collections, in that case its valid collection id
|
|
291
|
+
*/
|
|
292
|
+
id: isRequiredIf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]), function (props) {
|
|
293
|
+
return props.sourceType === 'list' && !props.hasOwnProperty('ownerScreenName') && !props.hasOwnProperty('slug') || props.sourceType === 'collection';
|
|
294
|
+
}),
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* To show twitter content with url.
|
|
298
|
+
* Supported content includes profiles, likes, lists, and collections.
|
|
299
|
+
*/
|
|
300
|
+
url: isRequiredIf(PropTypes.string, function (props) {
|
|
301
|
+
return props.sourceType === 'url';
|
|
302
|
+
}),
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* To show custom widget
|
|
306
|
+
*/
|
|
307
|
+
widgetId: isRequiredIf(PropTypes.string, function (props) {
|
|
308
|
+
return props.sourceType === 'widget';
|
|
309
|
+
}),
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Additional options to pass to twitter widget plugin
|
|
313
|
+
*/
|
|
314
|
+
options: PropTypes.object,
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Automatically fit into parent container height
|
|
318
|
+
*/
|
|
319
|
+
autoHeight: PropTypes.bool,
|
|
320
|
+
|
|
321
|
+
/**
|
|
322
|
+
* With dark or light theme
|
|
323
|
+
*/
|
|
324
|
+
theme: PropTypes.oneOf(['dark', 'light']),
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* With custom link colors. Note: Only Hex colors are supported.
|
|
328
|
+
*/
|
|
329
|
+
linkColor: PropTypes.string,
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* With custom border colors. Note: Only Hex colors are supported.
|
|
333
|
+
*/
|
|
334
|
+
borderColor: PropTypes.string,
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* Hide the header from timeline
|
|
338
|
+
*/
|
|
339
|
+
noHeader: PropTypes.bool,
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* Hide the footer from timeline
|
|
343
|
+
*/
|
|
344
|
+
noFooter: PropTypes.bool,
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Hide the border from timeline
|
|
348
|
+
*/
|
|
349
|
+
noBorders: PropTypes.bool,
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Hide the scrollbars
|
|
353
|
+
*/
|
|
354
|
+
noScrollbar: PropTypes.bool,
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Enable Transparancy
|
|
358
|
+
*/
|
|
359
|
+
transparent: PropTypes.bool,
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Custom language code. Supported codes here: https://developer.twitter.com/en/docs/twitter-for-websites/twitter-for-websites-supported-languages/overview.html
|
|
363
|
+
*/
|
|
364
|
+
lang: PropTypes.string,
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Placeholder while tweet is loading
|
|
368
|
+
*/
|
|
369
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Function to execute after load, return html element
|
|
373
|
+
*/
|
|
374
|
+
onLoad: PropTypes.func
|
|
375
|
+
});
|
|
376
|
+
|
|
377
|
+
var TwitterShareButton =
|
|
378
|
+
/*#__PURE__*/
|
|
379
|
+
function (_Component) {
|
|
380
|
+
_inherits(TwitterShareButton, _Component);
|
|
381
|
+
|
|
382
|
+
function TwitterShareButton(props) {
|
|
383
|
+
var _this;
|
|
384
|
+
|
|
385
|
+
_classCallCheck(this, TwitterShareButton);
|
|
386
|
+
|
|
387
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterShareButton).call(this, props));
|
|
388
|
+
_this.state = {
|
|
389
|
+
isLoading: true
|
|
390
|
+
};
|
|
391
|
+
return _this;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
_createClass(TwitterShareButton, [{
|
|
395
|
+
key: "componentDidMount",
|
|
396
|
+
value: function componentDidMount() {
|
|
397
|
+
var _this2 = this;
|
|
398
|
+
|
|
399
|
+
var onLoad = this.props.onLoad;
|
|
400
|
+
|
|
401
|
+
if (exenv.canUseDOM) {
|
|
402
|
+
var script = require('scriptjs');
|
|
403
|
+
|
|
404
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
405
|
+
if (!window.twttr) {
|
|
406
|
+
console.error('Failure to load window.twttr in TwitterShareButton, aborting load.');
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
if (!_this2.isMountCanceled) {
|
|
411
|
+
window.twttr.widgets.createShareButton(_this2.props.url, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
412
|
+
_this2.setState({
|
|
413
|
+
isLoading: false
|
|
414
|
+
});
|
|
415
|
+
|
|
416
|
+
if (onLoad) {
|
|
417
|
+
onLoad(element);
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}, {
|
|
425
|
+
key: "componentWillUnmount",
|
|
426
|
+
value: function componentWillUnmount() {
|
|
427
|
+
this.isMountCanceled = true;
|
|
428
|
+
}
|
|
429
|
+
}, {
|
|
430
|
+
key: "render",
|
|
431
|
+
value: function render() {
|
|
432
|
+
var isLoading = this.state.isLoading;
|
|
433
|
+
var placeholder = this.props.placeholder;
|
|
434
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
435
|
+
ref: "embedContainer"
|
|
436
|
+
}));
|
|
437
|
+
}
|
|
438
|
+
}]);
|
|
439
|
+
|
|
440
|
+
return TwitterShareButton;
|
|
441
|
+
}(Component);
|
|
442
|
+
|
|
443
|
+
_defineProperty$1(TwitterShareButton, "propTypes", {
|
|
444
|
+
/**
|
|
445
|
+
* Url for sharing
|
|
446
|
+
*/
|
|
447
|
+
url: PropTypes.string.isRequired,
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Additional options for overriding config. Details at : https://dev.twitter.com/web/tweet-button/parameters
|
|
451
|
+
*/
|
|
452
|
+
options: PropTypes.object,
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Placeholder while tweet is loading
|
|
456
|
+
*/
|
|
457
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Function to execute after load, return html element
|
|
461
|
+
*/
|
|
462
|
+
onLoad: PropTypes.func
|
|
463
|
+
});
|
|
464
|
+
|
|
465
|
+
var TwitterFollowButton =
|
|
466
|
+
/*#__PURE__*/
|
|
467
|
+
function (_Component) {
|
|
468
|
+
_inherits(TwitterFollowButton, _Component);
|
|
469
|
+
|
|
470
|
+
function TwitterFollowButton(props) {
|
|
471
|
+
var _this;
|
|
472
|
+
|
|
473
|
+
_classCallCheck(this, TwitterFollowButton);
|
|
474
|
+
|
|
475
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterFollowButton).call(this, props));
|
|
476
|
+
_this.state = {
|
|
477
|
+
isLoading: true
|
|
478
|
+
};
|
|
479
|
+
return _this;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
_createClass(TwitterFollowButton, [{
|
|
483
|
+
key: "componentDidMount",
|
|
484
|
+
value: function componentDidMount() {
|
|
485
|
+
var _this2 = this;
|
|
486
|
+
|
|
487
|
+
var onLoad = this.props.onLoad;
|
|
488
|
+
|
|
489
|
+
if (exenv.canUseDOM) {
|
|
490
|
+
var script = require('scriptjs');
|
|
491
|
+
|
|
492
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
493
|
+
if (!window.twttr) {
|
|
494
|
+
console.error('Failure to load window.twttr in TwitterFollowButton, aborting load.');
|
|
495
|
+
return;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
if (!_this2.isMountCanceled) {
|
|
499
|
+
window.twttr.widgets.createFollowButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
500
|
+
_this2.setState({
|
|
501
|
+
isLoading: false
|
|
502
|
+
});
|
|
503
|
+
|
|
504
|
+
if (onLoad) {
|
|
505
|
+
onLoad(element);
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}, {
|
|
513
|
+
key: "componentWillUnmount",
|
|
514
|
+
value: function componentWillUnmount() {
|
|
515
|
+
this.isMountCanceled = true;
|
|
516
|
+
}
|
|
517
|
+
}, {
|
|
518
|
+
key: "render",
|
|
519
|
+
value: function render() {
|
|
520
|
+
var isLoading = this.state.isLoading;
|
|
521
|
+
var placeholder = this.props.placeholder;
|
|
522
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
523
|
+
ref: "embedContainer"
|
|
524
|
+
}));
|
|
525
|
+
}
|
|
526
|
+
}]);
|
|
527
|
+
|
|
528
|
+
return TwitterFollowButton;
|
|
529
|
+
}(Component);
|
|
530
|
+
|
|
531
|
+
_defineProperty$1(TwitterFollowButton, "propTypes", {
|
|
532
|
+
/**
|
|
533
|
+
* Username of twitter user which will be followed on click
|
|
534
|
+
*/
|
|
535
|
+
screenName: PropTypes.string.isRequired,
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Additional options to be added to the button
|
|
539
|
+
*/
|
|
540
|
+
options: PropTypes.object,
|
|
541
|
+
|
|
542
|
+
/**
|
|
543
|
+
* Placeholder while tweet is loading
|
|
544
|
+
*/
|
|
545
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Function to execute after load, return html element
|
|
549
|
+
*/
|
|
550
|
+
onLoad: PropTypes.func
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
var TwitterHashtagButton =
|
|
554
|
+
/*#__PURE__*/
|
|
555
|
+
function (_Component) {
|
|
556
|
+
_inherits(TwitterHashtagButton, _Component);
|
|
557
|
+
|
|
558
|
+
function TwitterHashtagButton(props) {
|
|
559
|
+
var _this;
|
|
560
|
+
|
|
561
|
+
_classCallCheck(this, TwitterHashtagButton);
|
|
562
|
+
|
|
563
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterHashtagButton).call(this, props));
|
|
564
|
+
_this.state = {
|
|
565
|
+
isLoading: true
|
|
566
|
+
};
|
|
567
|
+
return _this;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
_createClass(TwitterHashtagButton, [{
|
|
571
|
+
key: "componentDidMount",
|
|
572
|
+
value: function componentDidMount() {
|
|
573
|
+
var _this2 = this;
|
|
574
|
+
|
|
575
|
+
var onLoad = this.props.onLoad;
|
|
576
|
+
|
|
577
|
+
if (exenv.canUseDOM) {
|
|
578
|
+
var script = require('scriptjs');
|
|
579
|
+
|
|
580
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
581
|
+
if (!window.twttr) {
|
|
582
|
+
console.error('Failure to load window.twttr in TwitterHashtagButton, aborting load.');
|
|
583
|
+
return;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (!_this2.isMountCanceled) {
|
|
587
|
+
window.twttr.widgets.createHashtagButton(_this2.props.tag, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
588
|
+
_this2.setState({
|
|
589
|
+
isLoading: false
|
|
590
|
+
});
|
|
591
|
+
|
|
592
|
+
if (onLoad) {
|
|
593
|
+
onLoad(element);
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}, {
|
|
601
|
+
key: "componentWillUnmount",
|
|
602
|
+
value: function componentWillUnmount() {
|
|
603
|
+
this.isMountCanceled = true;
|
|
604
|
+
}
|
|
605
|
+
}, {
|
|
606
|
+
key: "render",
|
|
607
|
+
value: function render() {
|
|
608
|
+
var isLoading = this.state.isLoading;
|
|
609
|
+
var placeholder = this.props.placeholder;
|
|
610
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
611
|
+
ref: "embedContainer"
|
|
612
|
+
}));
|
|
613
|
+
}
|
|
614
|
+
}]);
|
|
615
|
+
|
|
616
|
+
return TwitterHashtagButton;
|
|
617
|
+
}(Component);
|
|
618
|
+
|
|
619
|
+
_defineProperty$1(TwitterHashtagButton, "propTypes", {
|
|
620
|
+
/**
|
|
621
|
+
* Tag name for hashtag button
|
|
622
|
+
*/
|
|
623
|
+
tag: PropTypes.string.isRequired,
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* Additional options to be added to the button
|
|
627
|
+
*/
|
|
628
|
+
options: PropTypes.object,
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Placeholder while tweet is loading
|
|
632
|
+
*/
|
|
633
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
634
|
+
|
|
635
|
+
/**
|
|
636
|
+
* Function to execute after load, return html element
|
|
637
|
+
*/
|
|
638
|
+
onLoad: PropTypes.func
|
|
639
|
+
});
|
|
640
|
+
|
|
641
|
+
var TwitterMentionButton =
|
|
642
|
+
/*#__PURE__*/
|
|
643
|
+
function (_Component) {
|
|
644
|
+
_inherits(TwitterMentionButton, _Component);
|
|
645
|
+
|
|
646
|
+
function TwitterMentionButton(props) {
|
|
647
|
+
var _this;
|
|
648
|
+
|
|
649
|
+
_classCallCheck(this, TwitterMentionButton);
|
|
650
|
+
|
|
651
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMentionButton).call(this, props));
|
|
652
|
+
_this.state = {
|
|
653
|
+
isLoading: true
|
|
654
|
+
};
|
|
655
|
+
return _this;
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
_createClass(TwitterMentionButton, [{
|
|
659
|
+
key: "componentDidMount",
|
|
660
|
+
value: function componentDidMount() {
|
|
661
|
+
var _this2 = this;
|
|
662
|
+
|
|
663
|
+
var onLoad = this.props.onLoad;
|
|
664
|
+
|
|
665
|
+
if (exenv.canUseDOM) {
|
|
666
|
+
var script = require('scriptjs');
|
|
667
|
+
|
|
668
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
669
|
+
if (!window.twttr) {
|
|
670
|
+
console.error('Failure to load window.twttr in TwitterMentionButton, aborting load.');
|
|
671
|
+
return;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
if (!_this2.isMountCanceled) {
|
|
675
|
+
window.twttr.widgets.createMentionButton(_this2.props.screenName, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
676
|
+
_this2.setState({
|
|
677
|
+
isLoading: false
|
|
678
|
+
});
|
|
679
|
+
|
|
680
|
+
if (onLoad) {
|
|
681
|
+
onLoad(element);
|
|
682
|
+
}
|
|
683
|
+
});
|
|
684
|
+
}
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
}, {
|
|
689
|
+
key: "componentWillUnmount",
|
|
690
|
+
value: function componentWillUnmount() {
|
|
691
|
+
this.isMountCanceled = true;
|
|
692
|
+
}
|
|
693
|
+
}, {
|
|
694
|
+
key: "render",
|
|
695
|
+
value: function render() {
|
|
696
|
+
var isLoading = this.state.isLoading;
|
|
697
|
+
var placeholder = this.props.placeholder;
|
|
698
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
699
|
+
ref: "embedContainer"
|
|
700
|
+
}));
|
|
701
|
+
}
|
|
702
|
+
}]);
|
|
703
|
+
|
|
704
|
+
return TwitterMentionButton;
|
|
705
|
+
}(Component);
|
|
706
|
+
|
|
707
|
+
_defineProperty$1(TwitterMentionButton, "propTypes", {
|
|
708
|
+
/**
|
|
709
|
+
* Username to which you will need to tweet
|
|
710
|
+
*/
|
|
711
|
+
screenName: PropTypes.string.isRequired,
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* Additional options for overriding config.
|
|
715
|
+
*/
|
|
716
|
+
options: PropTypes.object,
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Placeholder while tweet is loading
|
|
720
|
+
*/
|
|
721
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* Function to execute after load, return html element
|
|
725
|
+
*/
|
|
726
|
+
onLoad: PropTypes.func
|
|
727
|
+
});
|
|
728
|
+
|
|
729
|
+
var TwitterTweetEmbed =
|
|
730
|
+
/*#__PURE__*/
|
|
731
|
+
function (_Component) {
|
|
732
|
+
_inherits(TwitterTweetEmbed, _Component);
|
|
733
|
+
|
|
734
|
+
function TwitterTweetEmbed(props) {
|
|
735
|
+
var _this;
|
|
736
|
+
|
|
737
|
+
_classCallCheck(this, TwitterTweetEmbed);
|
|
738
|
+
|
|
739
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterTweetEmbed).call(this, props));
|
|
740
|
+
_this.state = {
|
|
741
|
+
isLoading: true
|
|
742
|
+
};
|
|
743
|
+
return _this;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
_createClass(TwitterTweetEmbed, [{
|
|
747
|
+
key: "renderWidget",
|
|
748
|
+
value: function renderWidget() {
|
|
749
|
+
var _this2 = this;
|
|
750
|
+
|
|
751
|
+
var onLoad = this.props.onLoad;
|
|
752
|
+
|
|
753
|
+
if (!window.twttr) {
|
|
754
|
+
console.error('Failure to load window.twttr in TwitterTweetEmbed, aborting load.');
|
|
755
|
+
return;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
if (!this.isMountCanceled) {
|
|
759
|
+
window.twttr.widgets.createTweet(this.props.tweetId, this.refs.embedContainer, this.props.options).then(function (element) {
|
|
760
|
+
_this2.setState({
|
|
761
|
+
isLoading: false
|
|
762
|
+
});
|
|
763
|
+
|
|
764
|
+
if (onLoad) {
|
|
765
|
+
onLoad(element);
|
|
766
|
+
}
|
|
767
|
+
});
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
}, {
|
|
771
|
+
key: "componentDidMount",
|
|
772
|
+
value: function componentDidMount() {
|
|
773
|
+
var _this3 = this;
|
|
774
|
+
|
|
775
|
+
if (exenv.canUseDOM) {
|
|
776
|
+
var script = require('scriptjs');
|
|
777
|
+
|
|
778
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
779
|
+
_this3.renderWidget();
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
}, {
|
|
784
|
+
key: "componentWillUnmount",
|
|
785
|
+
value: function componentWillUnmount() {
|
|
786
|
+
this.isMountCanceled = true;
|
|
787
|
+
}
|
|
788
|
+
}, {
|
|
789
|
+
key: "render",
|
|
790
|
+
value: function render() {
|
|
791
|
+
var isLoading = this.state.isLoading;
|
|
792
|
+
var placeholder = this.props.placeholder;
|
|
793
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
794
|
+
ref: "embedContainer"
|
|
795
|
+
}));
|
|
796
|
+
}
|
|
797
|
+
}]);
|
|
798
|
+
|
|
799
|
+
return TwitterTweetEmbed;
|
|
800
|
+
}(Component);
|
|
801
|
+
|
|
802
|
+
_defineProperty$1(TwitterTweetEmbed, "propTypes", {
|
|
803
|
+
/**
|
|
804
|
+
* Tweet id that needs to be shown
|
|
805
|
+
*/
|
|
806
|
+
tweetId: PropTypes.string.isRequired,
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* Additional options to pass to twitter widget plugin
|
|
810
|
+
*/
|
|
811
|
+
options: PropTypes.object,
|
|
812
|
+
|
|
813
|
+
/**
|
|
814
|
+
* Placeholder while tweet is loading
|
|
815
|
+
*/
|
|
816
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
817
|
+
|
|
818
|
+
/**
|
|
819
|
+
* Function to execute after load, return html element
|
|
820
|
+
*/
|
|
821
|
+
onLoad: PropTypes.func
|
|
822
|
+
});
|
|
823
|
+
|
|
824
|
+
var TwitterMomentShare =
|
|
825
|
+
/*#__PURE__*/
|
|
826
|
+
function (_Component) {
|
|
827
|
+
_inherits(TwitterMomentShare, _Component);
|
|
828
|
+
|
|
829
|
+
function TwitterMomentShare(props) {
|
|
830
|
+
var _this;
|
|
831
|
+
|
|
832
|
+
_classCallCheck(this, TwitterMomentShare);
|
|
833
|
+
|
|
834
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterMomentShare).call(this, props));
|
|
835
|
+
_this.state = {
|
|
836
|
+
isLoading: true
|
|
837
|
+
};
|
|
838
|
+
return _this;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
_createClass(TwitterMomentShare, [{
|
|
842
|
+
key: "componentDidMount",
|
|
843
|
+
value: function componentDidMount() {
|
|
844
|
+
var _this2 = this;
|
|
845
|
+
|
|
846
|
+
var onLoad = this.props.onLoad;
|
|
847
|
+
|
|
848
|
+
if (exenv.canUseDOM) {
|
|
849
|
+
var script = require('scriptjs');
|
|
850
|
+
|
|
851
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
852
|
+
if (!window.twttr) {
|
|
853
|
+
console.error('Failure to load window.twttr in TwitterMomentShare, aborting load.');
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
if (!_this2.isMountCanceled) {
|
|
858
|
+
window.twttr.widgets.createMoment(_this2.props.momentId, _this2.refs.shareMoment, _this2.props.options).then(function (element) {
|
|
859
|
+
_this2.setState({
|
|
860
|
+
isLoading: false
|
|
861
|
+
});
|
|
862
|
+
|
|
863
|
+
if (onLoad) {
|
|
864
|
+
onLoad(element);
|
|
865
|
+
}
|
|
866
|
+
});
|
|
867
|
+
}
|
|
868
|
+
});
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
}, {
|
|
872
|
+
key: "componentWillUnmount",
|
|
873
|
+
value: function componentWillUnmount() {
|
|
874
|
+
this.isMountCanceled = true;
|
|
875
|
+
}
|
|
876
|
+
}, {
|
|
877
|
+
key: "render",
|
|
878
|
+
value: function render() {
|
|
879
|
+
var isLoading = this.state.isLoading;
|
|
880
|
+
var placeholder = this.props.placeholder;
|
|
881
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
882
|
+
ref: "shareMoment"
|
|
883
|
+
}));
|
|
884
|
+
}
|
|
885
|
+
}]);
|
|
886
|
+
|
|
887
|
+
return TwitterMomentShare;
|
|
888
|
+
}(Component);
|
|
889
|
+
|
|
890
|
+
_defineProperty$1(TwitterMomentShare, "propTypes", {
|
|
891
|
+
/**
|
|
892
|
+
* id of Twitter moment to show
|
|
893
|
+
*/
|
|
894
|
+
momentId: PropTypes.string.isRequired,
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* Additional options for overriding config.
|
|
898
|
+
*/
|
|
899
|
+
options: PropTypes.object,
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* Placeholder while tweet is loading
|
|
903
|
+
*/
|
|
904
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
905
|
+
|
|
906
|
+
/**
|
|
907
|
+
* Function to execute after load, return html element
|
|
908
|
+
*/
|
|
909
|
+
onLoad: PropTypes.func
|
|
910
|
+
});
|
|
911
|
+
|
|
912
|
+
var TwitterDMButton =
|
|
913
|
+
/*#__PURE__*/
|
|
914
|
+
function (_Component) {
|
|
915
|
+
_inherits(TwitterDMButton, _Component);
|
|
916
|
+
|
|
917
|
+
function TwitterDMButton(props) {
|
|
918
|
+
var _this;
|
|
919
|
+
|
|
920
|
+
_classCallCheck(this, TwitterDMButton);
|
|
921
|
+
|
|
922
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterDMButton).call(this, props));
|
|
923
|
+
_this.state = {
|
|
924
|
+
isLoading: true
|
|
925
|
+
};
|
|
926
|
+
return _this;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
_createClass(TwitterDMButton, [{
|
|
930
|
+
key: "componentDidMount",
|
|
931
|
+
value: function componentDidMount() {
|
|
932
|
+
var _this2 = this;
|
|
933
|
+
|
|
934
|
+
var onLoad = this.props.onLoad;
|
|
935
|
+
|
|
936
|
+
if (exenv.canUseDOM) {
|
|
937
|
+
var script = require('scriptjs');
|
|
938
|
+
|
|
939
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
940
|
+
if (!window.twttr) {
|
|
941
|
+
console.error('Failure to load window.twttr in TwitterDMButton, aborting load.');
|
|
942
|
+
return;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
if (!_this2.isMountCanceled) {
|
|
946
|
+
window.twttr.widgets.createDMButton(_this2.props.id, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
947
|
+
_this2.setState({
|
|
948
|
+
isLoading: false
|
|
949
|
+
});
|
|
950
|
+
|
|
951
|
+
if (onLoad) {
|
|
952
|
+
onLoad(element);
|
|
953
|
+
}
|
|
954
|
+
});
|
|
955
|
+
}
|
|
956
|
+
});
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
}, {
|
|
960
|
+
key: "componentWillUnmount",
|
|
961
|
+
value: function componentWillUnmount() {
|
|
962
|
+
this.isMountCanceled = true;
|
|
963
|
+
}
|
|
964
|
+
}, {
|
|
965
|
+
key: "render",
|
|
966
|
+
value: function render() {
|
|
967
|
+
var isLoading = this.state.isLoading;
|
|
968
|
+
var placeholder = this.props.placeholder;
|
|
969
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
970
|
+
ref: "embedContainer"
|
|
971
|
+
}));
|
|
972
|
+
}
|
|
973
|
+
}]);
|
|
974
|
+
|
|
975
|
+
return TwitterDMButton;
|
|
976
|
+
}(Component);
|
|
977
|
+
|
|
978
|
+
_defineProperty$1(TwitterDMButton, "propTypes", {
|
|
979
|
+
/**
|
|
980
|
+
* Twitter user id for DM button
|
|
981
|
+
*/
|
|
982
|
+
id: PropTypes.number.isRequired,
|
|
983
|
+
|
|
984
|
+
/**
|
|
985
|
+
* Additional options to be added to the button
|
|
986
|
+
*/
|
|
987
|
+
options: PropTypes.object,
|
|
988
|
+
|
|
989
|
+
/**
|
|
990
|
+
* Placeholder while tweet is loading
|
|
991
|
+
*/
|
|
992
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Function to execute after load, return html element
|
|
996
|
+
*/
|
|
997
|
+
onLoad: PropTypes.func
|
|
998
|
+
});
|
|
999
|
+
|
|
1000
|
+
var TwitterVideoEmbed =
|
|
1001
|
+
/*#__PURE__*/
|
|
1002
|
+
function (_Component) {
|
|
1003
|
+
_inherits(TwitterVideoEmbed, _Component);
|
|
1004
|
+
|
|
1005
|
+
function TwitterVideoEmbed(props) {
|
|
1006
|
+
var _this;
|
|
1007
|
+
|
|
1008
|
+
_classCallCheck(this, TwitterVideoEmbed);
|
|
1009
|
+
|
|
1010
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterVideoEmbed).call(this, props));
|
|
1011
|
+
_this.state = {
|
|
1012
|
+
isLoading: true
|
|
1013
|
+
};
|
|
1014
|
+
return _this;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
_createClass(TwitterVideoEmbed, [{
|
|
1018
|
+
key: "componentDidMount",
|
|
1019
|
+
value: function componentDidMount() {
|
|
1020
|
+
var _this2 = this;
|
|
1021
|
+
|
|
1022
|
+
var onLoad = this.props.onLoad;
|
|
1023
|
+
|
|
1024
|
+
if (exenv.canUseDOM) {
|
|
1025
|
+
var script = require('scriptjs');
|
|
1026
|
+
|
|
1027
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1028
|
+
if (!window.twttr) {
|
|
1029
|
+
console.error('Failure to load window.twttr in TwitterVideoEmbed, aborting load.');
|
|
1030
|
+
return;
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
if (!_this2.isMountCanceled) {
|
|
1034
|
+
window.twttr.widgets.createVideo(_this2.props.id, _this2.refs.embedContainer).then(function (element) {
|
|
1035
|
+
_this2.setState({
|
|
1036
|
+
isLoading: false
|
|
1037
|
+
});
|
|
1038
|
+
|
|
1039
|
+
if (onLoad) {
|
|
1040
|
+
onLoad(element);
|
|
1041
|
+
}
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
});
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
}, {
|
|
1048
|
+
key: "componentWillUnmount",
|
|
1049
|
+
value: function componentWillUnmount() {
|
|
1050
|
+
this.isMountCanceled = true;
|
|
1051
|
+
}
|
|
1052
|
+
}, {
|
|
1053
|
+
key: "render",
|
|
1054
|
+
value: function render() {
|
|
1055
|
+
var isLoading = this.state.isLoading;
|
|
1056
|
+
var placeholder = this.props.placeholder;
|
|
1057
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1058
|
+
ref: "embedContainer"
|
|
1059
|
+
}));
|
|
1060
|
+
}
|
|
1061
|
+
}]);
|
|
1062
|
+
|
|
1063
|
+
return TwitterVideoEmbed;
|
|
1064
|
+
}(Component);
|
|
1065
|
+
|
|
1066
|
+
_defineProperty$1(TwitterVideoEmbed, "propTypes", {
|
|
1067
|
+
/**
|
|
1068
|
+
* Id of video tweet.
|
|
1069
|
+
*/
|
|
1070
|
+
id: PropTypes.string.isRequired,
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* Placeholder while tweet is loading
|
|
1074
|
+
*/
|
|
1075
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Function to execute after load, return html element
|
|
1079
|
+
*/
|
|
1080
|
+
onLoad: PropTypes.func
|
|
1081
|
+
});
|
|
1082
|
+
|
|
1083
|
+
var TwitterOnAirButton =
|
|
1084
|
+
/*#__PURE__*/
|
|
1085
|
+
function (_Component) {
|
|
1086
|
+
_inherits(TwitterOnAirButton, _Component);
|
|
1087
|
+
|
|
1088
|
+
function TwitterOnAirButton(props) {
|
|
1089
|
+
var _this;
|
|
1090
|
+
|
|
1091
|
+
_classCallCheck(this, TwitterOnAirButton);
|
|
1092
|
+
|
|
1093
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(TwitterOnAirButton).call(this, props));
|
|
1094
|
+
_this.state = {
|
|
1095
|
+
isLoading: true
|
|
1096
|
+
};
|
|
1097
|
+
return _this;
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
_createClass(TwitterOnAirButton, [{
|
|
1101
|
+
key: "componentDidMount",
|
|
1102
|
+
value: function componentDidMount() {
|
|
1103
|
+
var _this2 = this;
|
|
1104
|
+
|
|
1105
|
+
var onLoad = this.props.onLoad;
|
|
1106
|
+
|
|
1107
|
+
if (exenv.canUseDOM) {
|
|
1108
|
+
var script = require('scriptjs');
|
|
1109
|
+
|
|
1110
|
+
script(twitterWidgetJs, 'twitter-embed', function () {
|
|
1111
|
+
if (!window.twttr) {
|
|
1112
|
+
console.error('Failure to load window.twttr in TwitterOnAirButton, aborting load.');
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (!_this2.isMountCanceled) {
|
|
1117
|
+
window.twttr.widgets.createPeriscopeOnAirButton(_this2.props.username, _this2.refs.embedContainer, _this2.props.options).then(function (element) {
|
|
1118
|
+
_this2.setState({
|
|
1119
|
+
isLoading: false
|
|
1120
|
+
});
|
|
1121
|
+
|
|
1122
|
+
if (onLoad) {
|
|
1123
|
+
onLoad(element);
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
});
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
}, {
|
|
1131
|
+
key: "componentWillUnmount",
|
|
1132
|
+
value: function componentWillUnmount() {
|
|
1133
|
+
this.isMountCanceled = true;
|
|
1134
|
+
}
|
|
1135
|
+
}, {
|
|
1136
|
+
key: "render",
|
|
1137
|
+
value: function render() {
|
|
1138
|
+
var isLoading = this.state.isLoading;
|
|
1139
|
+
var placeholder = this.props.placeholder;
|
|
1140
|
+
return React__default.createElement(React__default.Fragment, null, isLoading && placeholder, React__default.createElement("div", {
|
|
1141
|
+
ref: "embedContainer"
|
|
1142
|
+
}));
|
|
1143
|
+
}
|
|
1144
|
+
}]);
|
|
1145
|
+
|
|
1146
|
+
return TwitterOnAirButton;
|
|
1147
|
+
}(Component);
|
|
1148
|
+
|
|
1149
|
+
_defineProperty$1(TwitterOnAirButton, "propTypes", {
|
|
1150
|
+
/**
|
|
1151
|
+
* Username for which you require periscope on air button
|
|
1152
|
+
*/
|
|
1153
|
+
username: PropTypes.string.isRequired,
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Additional options for overriding config.
|
|
1157
|
+
*/
|
|
1158
|
+
options: PropTypes.object,
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Placeholder while tweet is loading
|
|
1162
|
+
*/
|
|
1163
|
+
placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* Function to execute after load, return html element
|
|
1167
|
+
*/
|
|
1168
|
+
onLoad: PropTypes.func
|
|
1169
|
+
});
|
|
1170
|
+
|
|
1171
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
1172
|
+
try {
|
|
1173
|
+
var info = gen[key](arg);
|
|
1174
|
+
var value = info.value;
|
|
1175
|
+
} catch (error) {
|
|
1176
|
+
reject(error);
|
|
1177
|
+
return;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
if (info.done) {
|
|
1181
|
+
resolve(value);
|
|
1182
|
+
} else {
|
|
1183
|
+
Promise.resolve(value).then(_next, _throw);
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
function _asyncToGenerator(fn) {
|
|
1188
|
+
return function () {
|
|
1189
|
+
var self = this,
|
|
1190
|
+
args = arguments;
|
|
1191
|
+
return new Promise(function (resolve, reject) {
|
|
1192
|
+
var gen = fn.apply(self, args);
|
|
1193
|
+
|
|
1194
|
+
function _next(value) {
|
|
1195
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
function _throw(err) {
|
|
1199
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
_next(undefined);
|
|
1203
|
+
});
|
|
1204
|
+
};
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
var asyncToGenerator = _asyncToGenerator;
|
|
1208
|
+
|
|
1209
|
+
function _defineProperty(obj, key, value) {
|
|
1210
|
+
if (key in obj) {
|
|
1211
|
+
Object.defineProperty(obj, key, {
|
|
1212
|
+
value: value,
|
|
1213
|
+
enumerable: true,
|
|
1214
|
+
configurable: true,
|
|
1215
|
+
writable: true
|
|
1216
|
+
});
|
|
1217
|
+
} else {
|
|
1218
|
+
obj[key] = value;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
return obj;
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
var defineProperty = _defineProperty;
|
|
74
1225
|
|
|
75
1226
|
var canUseDOM = !!(
|
|
76
1227
|
typeof window !== 'undefined' &&
|
|
@@ -80,7 +1231,6 @@ var canUseDOM = !!(
|
|
|
80
1231
|
|
|
81
1232
|
var canUseDom = canUseDOM;
|
|
82
1233
|
|
|
83
|
-
var objectWithoutPropertiesLoose = createCommonjsModule(function (module) {
|
|
84
1234
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
85
1235
|
if (source == null) return {};
|
|
86
1236
|
var target = {};
|
|
@@ -96,13 +1246,8 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
96
1246
|
return target;
|
|
97
1247
|
}
|
|
98
1248
|
|
|
99
|
-
|
|
100
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
unwrapExports(objectWithoutPropertiesLoose);
|
|
1249
|
+
var objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
104
1250
|
|
|
105
|
-
var objectWithoutProperties = createCommonjsModule(function (module) {
|
|
106
1251
|
function _objectWithoutProperties(source, excluded) {
|
|
107
1252
|
if (source == null) return {};
|
|
108
1253
|
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
@@ -122,30 +1267,26 @@ function _objectWithoutProperties(source, excluded) {
|
|
|
122
1267
|
return target;
|
|
123
1268
|
}
|
|
124
1269
|
|
|
125
|
-
|
|
126
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
var _objectWithoutProperties = unwrapExports(objectWithoutProperties);
|
|
1270
|
+
var objectWithoutProperties = _objectWithoutProperties;
|
|
130
1271
|
|
|
131
|
-
var LoginStatus
|
|
1272
|
+
var LoginStatus = {
|
|
132
1273
|
CONNECTED: 'connected',
|
|
133
1274
|
AUTHORIZATION_EXPIRED: 'authorization_expired',
|
|
134
1275
|
NOT_AUTHORIZED: 'not_authorized',
|
|
135
1276
|
UNKNOWN: 'unknown'
|
|
136
1277
|
};
|
|
137
1278
|
|
|
138
|
-
function ownKeys
|
|
1279
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
139
1280
|
|
|
140
|
-
function _objectSpread
|
|
1281
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
141
1282
|
const Method = {
|
|
142
1283
|
GET: 'get',
|
|
143
1284
|
POST: 'post',
|
|
144
1285
|
DELETE: 'delete'
|
|
145
1286
|
};
|
|
146
|
-
class Facebook
|
|
1287
|
+
class Facebook {
|
|
147
1288
|
constructor(options = {}) {
|
|
148
|
-
this.options = _objectSpread
|
|
1289
|
+
this.options = _objectSpread({
|
|
149
1290
|
domain: 'connect.facebook.net',
|
|
150
1291
|
version: 'v3.2',
|
|
151
1292
|
cookie: false,
|
|
@@ -173,7 +1314,7 @@ class Facebook$1 {
|
|
|
173
1314
|
init() {
|
|
174
1315
|
var _this = this;
|
|
175
1316
|
|
|
176
|
-
return
|
|
1317
|
+
return asyncToGenerator(function* () {
|
|
177
1318
|
if (_this.loadingPromise) {
|
|
178
1319
|
return _this.loadingPromise;
|
|
179
1320
|
}
|
|
@@ -186,7 +1327,7 @@ class Facebook$1 {
|
|
|
186
1327
|
debug,
|
|
187
1328
|
chatSupport
|
|
188
1329
|
} = _this$options,
|
|
189
|
-
restOptions =
|
|
1330
|
+
restOptions = objectWithoutProperties(_this$options, ["domain", "language", "debug", "chatSupport"]);
|
|
190
1331
|
|
|
191
1332
|
window.fbAsyncInit = () => {
|
|
192
1333
|
window.FB.init({
|
|
@@ -218,7 +1359,7 @@ class Facebook$1 {
|
|
|
218
1359
|
process(method, before = [], after = []) {
|
|
219
1360
|
var _this2 = this;
|
|
220
1361
|
|
|
221
|
-
return
|
|
1362
|
+
return asyncToGenerator(function* () {
|
|
222
1363
|
const fb = yield _this2.init();
|
|
223
1364
|
return new Promise((resolve, reject) => {
|
|
224
1365
|
fb[method](...before, response => {
|
|
@@ -246,7 +1387,7 @@ class Facebook$1 {
|
|
|
246
1387
|
ui(options) {
|
|
247
1388
|
var _this3 = this;
|
|
248
1389
|
|
|
249
|
-
return
|
|
1390
|
+
return asyncToGenerator(function* () {
|
|
250
1391
|
return _this3.process('ui', [options]);
|
|
251
1392
|
})();
|
|
252
1393
|
}
|
|
@@ -254,7 +1395,7 @@ class Facebook$1 {
|
|
|
254
1395
|
api(path, method = Method.GET, params = {}) {
|
|
255
1396
|
var _this4 = this;
|
|
256
1397
|
|
|
257
|
-
return
|
|
1398
|
+
return asyncToGenerator(function* () {
|
|
258
1399
|
return _this4.process('api', [path, method, params]);
|
|
259
1400
|
})();
|
|
260
1401
|
}
|
|
@@ -262,7 +1403,7 @@ class Facebook$1 {
|
|
|
262
1403
|
login(opts = null) {
|
|
263
1404
|
var _this5 = this;
|
|
264
1405
|
|
|
265
|
-
return
|
|
1406
|
+
return asyncToGenerator(function* () {
|
|
266
1407
|
return _this5.process('login', [], [opts]);
|
|
267
1408
|
})();
|
|
268
1409
|
}
|
|
@@ -270,7 +1411,7 @@ class Facebook$1 {
|
|
|
270
1411
|
logout() {
|
|
271
1412
|
var _this6 = this;
|
|
272
1413
|
|
|
273
|
-
return
|
|
1414
|
+
return asyncToGenerator(function* () {
|
|
274
1415
|
return _this6.process('logout');
|
|
275
1416
|
})();
|
|
276
1417
|
}
|
|
@@ -278,7 +1419,7 @@ class Facebook$1 {
|
|
|
278
1419
|
getLoginStatus() {
|
|
279
1420
|
var _this7 = this;
|
|
280
1421
|
|
|
281
|
-
return
|
|
1422
|
+
return asyncToGenerator(function* () {
|
|
282
1423
|
return _this7.process('getLoginStatus');
|
|
283
1424
|
})();
|
|
284
1425
|
}
|
|
@@ -286,7 +1427,7 @@ class Facebook$1 {
|
|
|
286
1427
|
getAuthResponse() {
|
|
287
1428
|
var _this8 = this;
|
|
288
1429
|
|
|
289
|
-
return
|
|
1430
|
+
return asyncToGenerator(function* () {
|
|
290
1431
|
return _this8.process('getAuthResponse');
|
|
291
1432
|
})();
|
|
292
1433
|
}
|
|
@@ -294,14 +1435,14 @@ class Facebook$1 {
|
|
|
294
1435
|
getTokenDetail(loginResponse) {
|
|
295
1436
|
var _this9 = this;
|
|
296
1437
|
|
|
297
|
-
return
|
|
298
|
-
if (loginResponse.status === LoginStatus
|
|
1438
|
+
return asyncToGenerator(function* () {
|
|
1439
|
+
if (loginResponse.status === LoginStatus.CONNECTED && loginResponse.authResponse) {
|
|
299
1440
|
return loginResponse.authResponse;
|
|
300
1441
|
}
|
|
301
1442
|
|
|
302
1443
|
const response = yield _this9.getLoginStatus();
|
|
303
1444
|
|
|
304
|
-
if (response.status === LoginStatus
|
|
1445
|
+
if (response.status === LoginStatus.CONNECTED && response.authResponse) {
|
|
305
1446
|
return response.authResponse;
|
|
306
1447
|
}
|
|
307
1448
|
|
|
@@ -312,7 +1453,7 @@ class Facebook$1 {
|
|
|
312
1453
|
getProfile(params) {
|
|
313
1454
|
var _this10 = this;
|
|
314
1455
|
|
|
315
|
-
return
|
|
1456
|
+
return asyncToGenerator(function* () {
|
|
316
1457
|
return _this10.api('/me', Method.GET, params);
|
|
317
1458
|
})();
|
|
318
1459
|
}
|
|
@@ -320,7 +1461,7 @@ class Facebook$1 {
|
|
|
320
1461
|
getTokenDetailWithProfile(params, response) {
|
|
321
1462
|
var _this11 = this;
|
|
322
1463
|
|
|
323
|
-
return
|
|
1464
|
+
return asyncToGenerator(function* () {
|
|
324
1465
|
const tokenDetail = yield _this11.getTokenDetail(response);
|
|
325
1466
|
const profile = yield _this11.getProfile(params);
|
|
326
1467
|
return {
|
|
@@ -333,7 +1474,7 @@ class Facebook$1 {
|
|
|
333
1474
|
getToken() {
|
|
334
1475
|
var _this12 = this;
|
|
335
1476
|
|
|
336
|
-
return
|
|
1477
|
+
return asyncToGenerator(function* () {
|
|
337
1478
|
const authResponse = yield _this12.getTokenDetail();
|
|
338
1479
|
return authResponse.accessToken;
|
|
339
1480
|
})();
|
|
@@ -342,7 +1483,7 @@ class Facebook$1 {
|
|
|
342
1483
|
getUserId() {
|
|
343
1484
|
var _this13 = this;
|
|
344
1485
|
|
|
345
|
-
return
|
|
1486
|
+
return asyncToGenerator(function* () {
|
|
346
1487
|
const authResponse = yield _this13.getTokenDetail();
|
|
347
1488
|
return authResponse.userID;
|
|
348
1489
|
})();
|
|
@@ -351,8 +1492,8 @@ class Facebook$1 {
|
|
|
351
1492
|
sendInvite(to, options) {
|
|
352
1493
|
var _this14 = this;
|
|
353
1494
|
|
|
354
|
-
return
|
|
355
|
-
return _this14.ui(_objectSpread
|
|
1495
|
+
return asyncToGenerator(function* () {
|
|
1496
|
+
return _this14.ui(_objectSpread({
|
|
356
1497
|
to,
|
|
357
1498
|
method: 'apprequests'
|
|
358
1499
|
}, options));
|
|
@@ -362,7 +1503,7 @@ class Facebook$1 {
|
|
|
362
1503
|
postAction(ogNamespace, ogAction, ogObject, ogObjectUrl, noFeedStory) {
|
|
363
1504
|
var _this15 = this;
|
|
364
1505
|
|
|
365
|
-
return
|
|
1506
|
+
return asyncToGenerator(function* () {
|
|
366
1507
|
let url = `/me/${ogNamespace}:${ogAction}?${ogObject}=${encodeURIComponent(ogObjectUrl)}`;
|
|
367
1508
|
|
|
368
1509
|
if (noFeedStory === true) {
|
|
@@ -376,7 +1517,7 @@ class Facebook$1 {
|
|
|
376
1517
|
getPermissions() {
|
|
377
1518
|
var _this16 = this;
|
|
378
1519
|
|
|
379
|
-
return
|
|
1520
|
+
return asyncToGenerator(function* () {
|
|
380
1521
|
const response = yield _this16.api('/me/permissions');
|
|
381
1522
|
return response.data;
|
|
382
1523
|
})();
|
|
@@ -385,7 +1526,7 @@ class Facebook$1 {
|
|
|
385
1526
|
hasPermissions(permissions) {
|
|
386
1527
|
var _this17 = this;
|
|
387
1528
|
|
|
388
|
-
return
|
|
1529
|
+
return asyncToGenerator(function* () {
|
|
389
1530
|
const usersPermissions = yield _this17.getPermissions();
|
|
390
1531
|
const findedPermissions = permissions.filter(p => {
|
|
391
1532
|
const currentPermission = usersPermissions.find(row => {
|
|
@@ -404,7 +1545,7 @@ class Facebook$1 {
|
|
|
404
1545
|
subscribe(eventName, callback) {
|
|
405
1546
|
var _this18 = this;
|
|
406
1547
|
|
|
407
|
-
return
|
|
1548
|
+
return asyncToGenerator(function* () {
|
|
408
1549
|
const fb = yield _this18.init();
|
|
409
1550
|
fb.Event.subscribe(eventName, callback);
|
|
410
1551
|
})();
|
|
@@ -413,7 +1554,7 @@ class Facebook$1 {
|
|
|
413
1554
|
unsubscribe(eventName, callback) {
|
|
414
1555
|
var _this19 = this;
|
|
415
1556
|
|
|
416
|
-
return
|
|
1557
|
+
return asyncToGenerator(function* () {
|
|
417
1558
|
const fb = yield _this19.init();
|
|
418
1559
|
fb.Event.unsubscribe(eventName, callback);
|
|
419
1560
|
})();
|
|
@@ -422,7 +1563,7 @@ class Facebook$1 {
|
|
|
422
1563
|
parse(parentNode) {
|
|
423
1564
|
var _this20 = this;
|
|
424
1565
|
|
|
425
|
-
return
|
|
1566
|
+
return asyncToGenerator(function* () {
|
|
426
1567
|
const fb = yield _this20.init();
|
|
427
1568
|
|
|
428
1569
|
if (typeof parentNode === 'undefined') {
|
|
@@ -436,7 +1577,7 @@ class Facebook$1 {
|
|
|
436
1577
|
getRequests() {
|
|
437
1578
|
var _this21 = this;
|
|
438
1579
|
|
|
439
|
-
return
|
|
1580
|
+
return asyncToGenerator(function* () {
|
|
440
1581
|
return _this21.api('/me/apprequests');
|
|
441
1582
|
})();
|
|
442
1583
|
}
|
|
@@ -444,7 +1585,7 @@ class Facebook$1 {
|
|
|
444
1585
|
removeRequest(requestID) {
|
|
445
1586
|
var _this22 = this;
|
|
446
1587
|
|
|
447
|
-
return
|
|
1588
|
+
return asyncToGenerator(function* () {
|
|
448
1589
|
return _this22.api(requestID, Method.DELETE);
|
|
449
1590
|
})();
|
|
450
1591
|
}
|
|
@@ -452,7 +1593,7 @@ class Facebook$1 {
|
|
|
452
1593
|
setAutoGrow() {
|
|
453
1594
|
var _this23 = this;
|
|
454
1595
|
|
|
455
|
-
return
|
|
1596
|
+
return asyncToGenerator(function* () {
|
|
456
1597
|
const fb = yield _this23.init();
|
|
457
1598
|
fb.Canvas.setAutoGrow();
|
|
458
1599
|
})();
|
|
@@ -461,7 +1602,7 @@ class Facebook$1 {
|
|
|
461
1602
|
paySimple(product, quantity = 1) {
|
|
462
1603
|
var _this24 = this;
|
|
463
1604
|
|
|
464
|
-
return
|
|
1605
|
+
return asyncToGenerator(function* () {
|
|
465
1606
|
return _this24.ui({
|
|
466
1607
|
method: 'pay',
|
|
467
1608
|
action: 'purchaseitem',
|
|
@@ -474,8 +1615,8 @@ class Facebook$1 {
|
|
|
474
1615
|
pay(product, options) {
|
|
475
1616
|
var _this25 = this;
|
|
476
1617
|
|
|
477
|
-
return
|
|
478
|
-
return _this25.ui(_objectSpread
|
|
1618
|
+
return asyncToGenerator(function* () {
|
|
1619
|
+
return _this25.ui(_objectSpread({
|
|
479
1620
|
method: 'pay',
|
|
480
1621
|
action: 'purchaseitem',
|
|
481
1622
|
product
|
|
@@ -758,20 +1899,20 @@ class Facebook$1 {
|
|
|
758
1899
|
var FacebookContext = createContext();
|
|
759
1900
|
|
|
760
1901
|
let api = null;
|
|
761
|
-
class Facebook extends Component {
|
|
1902
|
+
class Facebook$1 extends Component {
|
|
762
1903
|
constructor(...args) {
|
|
763
1904
|
var _this;
|
|
764
1905
|
|
|
765
1906
|
super(...args);
|
|
766
1907
|
_this = this;
|
|
767
1908
|
|
|
768
|
-
|
|
1909
|
+
defineProperty(this, "state", {
|
|
769
1910
|
isReady: false
|
|
770
1911
|
});
|
|
771
1912
|
|
|
772
|
-
|
|
1913
|
+
defineProperty(this, "handleInit",
|
|
773
1914
|
/*#__PURE__*/
|
|
774
|
-
|
|
1915
|
+
asyncToGenerator(function* () {
|
|
775
1916
|
// do not run if SSR
|
|
776
1917
|
if (!canUseDom) {
|
|
777
1918
|
throw new Error('You can not use Facebook without DOM');
|
|
@@ -799,7 +1940,7 @@ class Facebook extends Component {
|
|
|
799
1940
|
debug,
|
|
800
1941
|
chatSupport
|
|
801
1942
|
} = _this.props;
|
|
802
|
-
api = new Facebook
|
|
1943
|
+
api = new Facebook({
|
|
803
1944
|
domain,
|
|
804
1945
|
appId,
|
|
805
1946
|
version,
|
|
@@ -860,7 +2001,7 @@ class Facebook extends Component {
|
|
|
860
2001
|
|
|
861
2002
|
}
|
|
862
2003
|
|
|
863
|
-
|
|
2004
|
+
defineProperty(Facebook$1, "defaultProps", {
|
|
864
2005
|
version: 'v3.1',
|
|
865
2006
|
cookie: false,
|
|
866
2007
|
status: false,
|
|
@@ -890,16 +2031,12 @@ function _extends() {
|
|
|
890
2031
|
return target;
|
|
891
2032
|
};
|
|
892
2033
|
|
|
893
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
894
2034
|
return _extends.apply(this, arguments);
|
|
895
2035
|
}
|
|
896
2036
|
|
|
897
2037
|
module.exports = _extends;
|
|
898
|
-
module.exports["default"] = module.exports, module.exports.__esModule = true;
|
|
899
2038
|
});
|
|
900
2039
|
|
|
901
|
-
var _extends = unwrapExports(_extends_1);
|
|
902
|
-
|
|
903
2040
|
class Initialize extends Component {
|
|
904
2041
|
componentDidMount() {
|
|
905
2042
|
this.$isMounted = true;
|
|
@@ -913,7 +2050,7 @@ class Initialize extends Component {
|
|
|
913
2050
|
prepare() {
|
|
914
2051
|
var _this = this;
|
|
915
2052
|
|
|
916
|
-
return
|
|
2053
|
+
return asyncToGenerator(function* () {
|
|
917
2054
|
const {
|
|
918
2055
|
onReady,
|
|
919
2056
|
handleInit
|
|
@@ -946,7 +2083,7 @@ class Initialize extends Component {
|
|
|
946
2083
|
|
|
947
2084
|
}
|
|
948
2085
|
|
|
949
|
-
|
|
2086
|
+
defineProperty(Initialize, "defaultProps", {
|
|
950
2087
|
onReady: undefined,
|
|
951
2088
|
api: undefined
|
|
952
2089
|
});
|
|
@@ -955,7 +2092,7 @@ var Initialize$1 = forwardRef((props, ref) => React__default.createElement(Faceb
|
|
|
955
2092
|
handleInit,
|
|
956
2093
|
isReady,
|
|
957
2094
|
api
|
|
958
|
-
}) => React__default.createElement(Initialize,
|
|
2095
|
+
}) => React__default.createElement(Initialize, _extends_1({}, props, {
|
|
959
2096
|
handleInit: handleInit,
|
|
960
2097
|
isReady: isReady,
|
|
961
2098
|
api: api,
|
|
@@ -966,21 +2103,21 @@ class Parser extends Component {
|
|
|
966
2103
|
constructor(...args) {
|
|
967
2104
|
super(...args);
|
|
968
2105
|
|
|
969
|
-
|
|
2106
|
+
defineProperty(this, "state", {});
|
|
970
2107
|
|
|
971
|
-
|
|
2108
|
+
defineProperty(this, "handleReady", api => {
|
|
972
2109
|
this.setState({
|
|
973
2110
|
api
|
|
974
2111
|
}, this.handleParse);
|
|
975
2112
|
});
|
|
976
2113
|
|
|
977
|
-
|
|
2114
|
+
defineProperty(this, "handleContainer", container => {
|
|
978
2115
|
this.setState({
|
|
979
2116
|
container
|
|
980
2117
|
}, this.handleParse);
|
|
981
2118
|
});
|
|
982
2119
|
|
|
983
|
-
|
|
2120
|
+
defineProperty(this, "handleParse", () => {
|
|
984
2121
|
const {
|
|
985
2122
|
api,
|
|
986
2123
|
container
|
|
@@ -1011,7 +2148,7 @@ class Parser extends Component {
|
|
|
1011
2148
|
|
|
1012
2149
|
}
|
|
1013
2150
|
|
|
1014
|
-
|
|
2151
|
+
defineProperty(Parser, "defaultProps", {
|
|
1015
2152
|
className: undefined
|
|
1016
2153
|
});
|
|
1017
2154
|
|
|
@@ -1062,7 +2199,7 @@ class Like extends PureComponent {
|
|
|
1062
2199
|
|
|
1063
2200
|
}
|
|
1064
2201
|
|
|
1065
|
-
|
|
2202
|
+
defineProperty(Like, "defaultProps", {
|
|
1066
2203
|
layout: undefined,
|
|
1067
2204
|
showFaces: undefined,
|
|
1068
2205
|
colorScheme: undefined,
|
|
@@ -1078,7 +2215,7 @@ _defineProperty(Like, "defaultProps", {
|
|
|
1078
2215
|
|
|
1079
2216
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1080
2217
|
handleParse
|
|
1081
|
-
}) => React__default.createElement(Like,
|
|
2218
|
+
}) => React__default.createElement(Like, _extends_1({}, props, {
|
|
1082
2219
|
handleParse: handleParse,
|
|
1083
2220
|
ref: ref
|
|
1084
2221
|
}))));
|
|
@@ -1106,14 +2243,14 @@ class Process extends Component {
|
|
|
1106
2243
|
super(...args);
|
|
1107
2244
|
_this = this;
|
|
1108
2245
|
|
|
1109
|
-
|
|
2246
|
+
defineProperty(this, "state", {
|
|
1110
2247
|
api: undefined
|
|
1111
2248
|
});
|
|
1112
2249
|
|
|
1113
|
-
|
|
2250
|
+
defineProperty(this, "handleProcess",
|
|
1114
2251
|
/*#__PURE__*/
|
|
1115
2252
|
function () {
|
|
1116
|
-
var _ref =
|
|
2253
|
+
var _ref = asyncToGenerator(function* (fn, handleSuccess = () => {}) {
|
|
1117
2254
|
_this.setState({
|
|
1118
2255
|
data: undefined,
|
|
1119
2256
|
error: undefined,
|
|
@@ -1152,7 +2289,7 @@ class Process extends Component {
|
|
|
1152
2289
|
};
|
|
1153
2290
|
}());
|
|
1154
2291
|
|
|
1155
|
-
|
|
2292
|
+
defineProperty(this, "handleReady", api => {
|
|
1156
2293
|
this.setState({
|
|
1157
2294
|
api
|
|
1158
2295
|
});
|
|
@@ -1188,10 +2325,10 @@ class Send extends Component {
|
|
|
1188
2325
|
super(...args);
|
|
1189
2326
|
_this = this;
|
|
1190
2327
|
|
|
1191
|
-
|
|
2328
|
+
defineProperty(this, "handleClick",
|
|
1192
2329
|
/*#__PURE__*/
|
|
1193
2330
|
function () {
|
|
1194
|
-
var _ref =
|
|
2331
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1195
2332
|
evn.preventDefault();
|
|
1196
2333
|
const {
|
|
1197
2334
|
handleProcess
|
|
@@ -1199,7 +2336,7 @@ class Send extends Component {
|
|
|
1199
2336
|
return handleProcess(
|
|
1200
2337
|
/*#__PURE__*/
|
|
1201
2338
|
function () {
|
|
1202
|
-
var _ref2 =
|
|
2339
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1203
2340
|
const {
|
|
1204
2341
|
link = getCurrentHref(),
|
|
1205
2342
|
display,
|
|
@@ -1242,7 +2379,7 @@ class Send extends Component {
|
|
|
1242
2379
|
|
|
1243
2380
|
}
|
|
1244
2381
|
|
|
1245
|
-
|
|
2382
|
+
defineProperty(Send, "defaultProps", {
|
|
1246
2383
|
to: undefined,
|
|
1247
2384
|
display: undefined,
|
|
1248
2385
|
appId: undefined,
|
|
@@ -1252,7 +2389,7 @@ _defineProperty(Send, "defaultProps", {
|
|
|
1252
2389
|
forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
1253
2390
|
loading,
|
|
1254
2391
|
handleProcess
|
|
1255
|
-
}) => React__default.createElement(Send,
|
|
2392
|
+
}) => React__default.createElement(Send, _extends_1({}, props, {
|
|
1256
2393
|
loading: loading,
|
|
1257
2394
|
handleProcess: handleProcess,
|
|
1258
2395
|
ref: ref
|
|
@@ -1265,10 +2402,10 @@ class Share extends Component {
|
|
|
1265
2402
|
super(...args);
|
|
1266
2403
|
_this = this;
|
|
1267
2404
|
|
|
1268
|
-
|
|
2405
|
+
defineProperty(this, "handleClick",
|
|
1269
2406
|
/*#__PURE__*/
|
|
1270
2407
|
function () {
|
|
1271
|
-
var _ref =
|
|
2408
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1272
2409
|
evn.preventDefault();
|
|
1273
2410
|
const {
|
|
1274
2411
|
handleProcess
|
|
@@ -1276,7 +2413,7 @@ class Share extends Component {
|
|
|
1276
2413
|
return handleProcess(
|
|
1277
2414
|
/*#__PURE__*/
|
|
1278
2415
|
function () {
|
|
1279
|
-
var _ref2 =
|
|
2416
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1280
2417
|
const {
|
|
1281
2418
|
href = getCurrentHref(),
|
|
1282
2419
|
display,
|
|
@@ -1327,7 +2464,7 @@ class Share extends Component {
|
|
|
1327
2464
|
|
|
1328
2465
|
}
|
|
1329
2466
|
|
|
1330
|
-
|
|
2467
|
+
defineProperty(Share, "defaultProps", {
|
|
1331
2468
|
href: undefined,
|
|
1332
2469
|
hashtag: undefined,
|
|
1333
2470
|
quote: undefined,
|
|
@@ -1342,7 +2479,7 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1342
2479
|
handleProcess,
|
|
1343
2480
|
data,
|
|
1344
2481
|
error
|
|
1345
|
-
}) => React__default.createElement(Share,
|
|
2482
|
+
}) => React__default.createElement(Share, _extends_1({}, props, {
|
|
1346
2483
|
loading: loading,
|
|
1347
2484
|
handleProcess: handleProcess,
|
|
1348
2485
|
data: data,
|
|
@@ -1350,10 +2487,27 @@ var Share$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1350
2487
|
ref: ref
|
|
1351
2488
|
}))));
|
|
1352
2489
|
|
|
1353
|
-
function ownKeys$
|
|
2490
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1354
2491
|
|
|
1355
|
-
function _objectSpread$
|
|
1356
|
-
|
|
2492
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
2493
|
+
function ShareButton(props) {
|
|
2494
|
+
const {
|
|
2495
|
+
className,
|
|
2496
|
+
children
|
|
2497
|
+
} = props,
|
|
2498
|
+
rest = objectWithoutProperties(props, ["className", "children"]);
|
|
2499
|
+
|
|
2500
|
+
return React__default.createElement(Share$1, rest, ({
|
|
2501
|
+
loading,
|
|
2502
|
+
handleClick
|
|
2503
|
+
}) => React__default.createElement("button", {
|
|
2504
|
+
type: "button",
|
|
2505
|
+
disabled: loading,
|
|
2506
|
+
className: className,
|
|
2507
|
+
onClick: handleClick
|
|
2508
|
+
}, children));
|
|
2509
|
+
}
|
|
2510
|
+
ShareButton.defaultProps = _objectSpread$1({}, Share$1.defaultProps, {
|
|
1357
2511
|
className: undefined
|
|
1358
2512
|
});
|
|
1359
2513
|
|
|
@@ -1396,7 +2550,7 @@ class Page extends PureComponent {
|
|
|
1396
2550
|
|
|
1397
2551
|
}
|
|
1398
2552
|
|
|
1399
|
-
|
|
2553
|
+
defineProperty(Page, "defaultProps", {
|
|
1400
2554
|
width: undefined,
|
|
1401
2555
|
height: undefined,
|
|
1402
2556
|
tabs: undefined,
|
|
@@ -1412,7 +2566,7 @@ _defineProperty(Page, "defaultProps", {
|
|
|
1412
2566
|
|
|
1413
2567
|
var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
1414
2568
|
handleParse
|
|
1415
|
-
}) => React__default.createElement(Page,
|
|
2569
|
+
}) => React__default.createElement(Page, _extends_1({}, props, {
|
|
1416
2570
|
handleParse: handleParse,
|
|
1417
2571
|
ref: ref
|
|
1418
2572
|
}))));
|
|
@@ -1420,9 +2574,9 @@ var Page$1 = forwardRef((props, ref) => React__default.createElement(Parser, nul
|
|
|
1420
2574
|
// 3.0 fields without app review https://developers.facebook.com/docs/facebook-login/permissions/?locale=en_US#reference-default
|
|
1421
2575
|
var Fields = ['id', 'first_name', 'last_name', 'middle_name', 'name', 'name_format', 'picture', 'short_name', 'email'];
|
|
1422
2576
|
|
|
1423
|
-
function ownKeys$
|
|
2577
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1424
2578
|
|
|
1425
|
-
function _objectSpread$
|
|
2579
|
+
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1426
2580
|
|
|
1427
2581
|
class Login extends Component {
|
|
1428
2582
|
constructor(...args) {
|
|
@@ -1431,10 +2585,10 @@ class Login extends Component {
|
|
|
1431
2585
|
super(...args);
|
|
1432
2586
|
_this = this;
|
|
1433
2587
|
|
|
1434
|
-
|
|
2588
|
+
defineProperty(this, "handleClick",
|
|
1435
2589
|
/*#__PURE__*/
|
|
1436
2590
|
function () {
|
|
1437
|
-
var _ref =
|
|
2591
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
1438
2592
|
evn.preventDefault();
|
|
1439
2593
|
const {
|
|
1440
2594
|
handleProcess,
|
|
@@ -1447,7 +2601,7 @@ class Login extends Component {
|
|
|
1447
2601
|
yield handleProcess(
|
|
1448
2602
|
/*#__PURE__*/
|
|
1449
2603
|
function () {
|
|
1450
|
-
var _ref2 =
|
|
2604
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
1451
2605
|
const {
|
|
1452
2606
|
scope,
|
|
1453
2607
|
fields,
|
|
@@ -1488,7 +2642,7 @@ class Login extends Component {
|
|
|
1488
2642
|
}, loginResponse);
|
|
1489
2643
|
|
|
1490
2644
|
if (onCompleted) {
|
|
1491
|
-
yield onCompleted(_objectSpread$
|
|
2645
|
+
yield onCompleted(_objectSpread$2({}, data, {
|
|
1492
2646
|
eventKey
|
|
1493
2647
|
}));
|
|
1494
2648
|
}
|
|
@@ -1530,7 +2684,7 @@ class Login extends Component {
|
|
|
1530
2684
|
|
|
1531
2685
|
}
|
|
1532
2686
|
|
|
1533
|
-
|
|
2687
|
+
defineProperty(Login, "defaultProps", {
|
|
1534
2688
|
scope: '',
|
|
1535
2689
|
fields: Fields,
|
|
1536
2690
|
returnScopes: false,
|
|
@@ -1546,7 +2700,7 @@ var Login$1 = forwardRef((props, ref) => React__default.createElement(Process, n
|
|
|
1546
2700
|
handleProcess,
|
|
1547
2701
|
data,
|
|
1548
2702
|
error
|
|
1549
|
-
}) => React__default.createElement(Login,
|
|
2703
|
+
}) => React__default.createElement(Login, _extends_1({}, props, {
|
|
1550
2704
|
loading: loading,
|
|
1551
2705
|
handleProcess: handleProcess,
|
|
1552
2706
|
data: data,
|
|
@@ -1558,7 +2712,7 @@ var spin = createCommonjsModule(function (module) {
|
|
|
1558
2712
|
(function (root, factory) {
|
|
1559
2713
|
|
|
1560
2714
|
/* CommonJS */
|
|
1561
|
-
if (module.exports) module.exports = factory();
|
|
2715
|
+
if ( module.exports) module.exports = factory();
|
|
1562
2716
|
|
|
1563
2717
|
/* AMD module */
|
|
1564
2718
|
else root.Spinner = factory();
|
|
@@ -2000,12 +3154,33 @@ Spinner.defaultProps = {
|
|
|
2000
3154
|
exports.default = Spinner;
|
|
2001
3155
|
});
|
|
2002
3156
|
|
|
2003
|
-
unwrapExports(dist);
|
|
3157
|
+
var Spinner = unwrapExports(dist);
|
|
2004
3158
|
|
|
2005
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3159
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
2006
3160
|
|
|
2007
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) {
|
|
2008
|
-
|
|
3161
|
+
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(source, true).forEach(function (key) { defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3162
|
+
function LoginButton(props) {
|
|
3163
|
+
const {
|
|
3164
|
+
children,
|
|
3165
|
+
className,
|
|
3166
|
+
spinner,
|
|
3167
|
+
spinnerConfig
|
|
3168
|
+
} = props,
|
|
3169
|
+
rest = objectWithoutProperties(props, ["children", "className", "spinner", "spinnerConfig"]);
|
|
3170
|
+
|
|
3171
|
+
return React__default.createElement(Login$1, rest, ({
|
|
3172
|
+
loading,
|
|
3173
|
+
handleClick
|
|
3174
|
+
}) => React__default.createElement("button", {
|
|
3175
|
+
type: "button",
|
|
3176
|
+
className: className,
|
|
3177
|
+
onClick: handleClick,
|
|
3178
|
+
disabled: loading
|
|
3179
|
+
}, children, spinner && loading && React__default.createElement(Spinner, {
|
|
3180
|
+
config: spinnerConfig
|
|
3181
|
+
})));
|
|
3182
|
+
}
|
|
3183
|
+
LoginButton.defaultProps = _objectSpread$3({}, Login$1.defaultProps, {
|
|
2009
3184
|
className: undefined,
|
|
2010
3185
|
spinnerConfig: {},
|
|
2011
3186
|
spinner: true
|
|
@@ -2036,7 +3211,7 @@ class EmbeddedPost extends PureComponent {
|
|
|
2036
3211
|
|
|
2037
3212
|
}
|
|
2038
3213
|
|
|
2039
|
-
|
|
3214
|
+
defineProperty(EmbeddedPost, "defaultProps", {
|
|
2040
3215
|
width: undefined,
|
|
2041
3216
|
showText: undefined,
|
|
2042
3217
|
children: undefined
|
|
@@ -2044,7 +3219,7 @@ _defineProperty(EmbeddedPost, "defaultProps", {
|
|
|
2044
3219
|
|
|
2045
3220
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2046
3221
|
handleParse
|
|
2047
|
-
}) => React__default.createElement(EmbeddedPost,
|
|
3222
|
+
}) => React__default.createElement(EmbeddedPost, _extends_1({}, props, {
|
|
2048
3223
|
handleParse: handleParse,
|
|
2049
3224
|
ref: ref
|
|
2050
3225
|
}))));
|
|
@@ -2080,7 +3255,7 @@ class EmbeddedVideo extends PureComponent {
|
|
|
2080
3255
|
|
|
2081
3256
|
}
|
|
2082
3257
|
|
|
2083
|
-
|
|
3258
|
+
defineProperty(EmbeddedVideo, "defaultProps", {
|
|
2084
3259
|
width: undefined,
|
|
2085
3260
|
showText: undefined,
|
|
2086
3261
|
allowFullScreen: undefined,
|
|
@@ -2091,7 +3266,7 @@ _defineProperty(EmbeddedVideo, "defaultProps", {
|
|
|
2091
3266
|
|
|
2092
3267
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2093
3268
|
handleParse
|
|
2094
|
-
}) => React__default.createElement(EmbeddedVideo,
|
|
3269
|
+
}) => React__default.createElement(EmbeddedVideo, _extends_1({}, props, {
|
|
2095
3270
|
handleParse: handleParse,
|
|
2096
3271
|
ref: ref
|
|
2097
3272
|
}))));
|
|
@@ -2128,7 +3303,7 @@ class Comments extends PureComponent {
|
|
|
2128
3303
|
|
|
2129
3304
|
}
|
|
2130
3305
|
|
|
2131
|
-
|
|
3306
|
+
defineProperty(Comments, "defaultProps", {
|
|
2132
3307
|
href: undefined,
|
|
2133
3308
|
numPosts: undefined,
|
|
2134
3309
|
orderBy: undefined,
|
|
@@ -2140,7 +3315,7 @@ _defineProperty(Comments, "defaultProps", {
|
|
|
2140
3315
|
|
|
2141
3316
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2142
3317
|
handleParse
|
|
2143
|
-
}) => React__default.createElement(Comments,
|
|
3318
|
+
}) => React__default.createElement(Comments, _extends_1({}, props, {
|
|
2144
3319
|
handleParse: handleParse,
|
|
2145
3320
|
ref: ref
|
|
2146
3321
|
}))));
|
|
@@ -2166,14 +3341,14 @@ class CommentsCount extends PureComponent {
|
|
|
2166
3341
|
|
|
2167
3342
|
}
|
|
2168
3343
|
|
|
2169
|
-
|
|
3344
|
+
defineProperty(CommentsCount, "defaultProps", {
|
|
2170
3345
|
href: undefined,
|
|
2171
3346
|
children: undefined
|
|
2172
3347
|
});
|
|
2173
3348
|
|
|
2174
3349
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2175
3350
|
handleParse
|
|
2176
|
-
}) => React__default.createElement(CommentsCount,
|
|
3351
|
+
}) => React__default.createElement(CommentsCount, _extends_1({}, props, {
|
|
2177
3352
|
handleParse: handleParse,
|
|
2178
3353
|
ref: ref
|
|
2179
3354
|
}))));
|
|
@@ -2185,10 +3360,10 @@ class Feed extends Component {
|
|
|
2185
3360
|
super(...args);
|
|
2186
3361
|
_this = this;
|
|
2187
3362
|
|
|
2188
|
-
|
|
3363
|
+
defineProperty(this, "handleClick",
|
|
2189
3364
|
/*#__PURE__*/
|
|
2190
3365
|
function () {
|
|
2191
|
-
var _ref =
|
|
3366
|
+
var _ref = asyncToGenerator(function* (evn) {
|
|
2192
3367
|
evn.preventDefault();
|
|
2193
3368
|
const {
|
|
2194
3369
|
handleProcess
|
|
@@ -2196,7 +3371,7 @@ class Feed extends Component {
|
|
|
2196
3371
|
return handleProcess(
|
|
2197
3372
|
/*#__PURE__*/
|
|
2198
3373
|
function () {
|
|
2199
|
-
var _ref2 =
|
|
3374
|
+
var _ref2 = asyncToGenerator(function* (api) {
|
|
2200
3375
|
const {
|
|
2201
3376
|
link = getCurrentHref(),
|
|
2202
3377
|
display,
|
|
@@ -2257,7 +3432,7 @@ class Feed extends Component {
|
|
|
2257
3432
|
|
|
2258
3433
|
}
|
|
2259
3434
|
|
|
2260
|
-
|
|
3435
|
+
defineProperty(Feed, "defaultProps", {
|
|
2261
3436
|
link: undefined,
|
|
2262
3437
|
display: undefined,
|
|
2263
3438
|
appId: undefined,
|
|
@@ -2277,7 +3452,7 @@ forwardRef((props, ref) => React__default.createElement(Process, null, ({
|
|
|
2277
3452
|
handleProcess,
|
|
2278
3453
|
error,
|
|
2279
3454
|
data
|
|
2280
|
-
}) => React__default.createElement(Feed,
|
|
3455
|
+
}) => React__default.createElement(Feed, _extends_1({}, props, {
|
|
2281
3456
|
loading: loading,
|
|
2282
3457
|
handleProcess: handleProcess,
|
|
2283
3458
|
data: data,
|
|
@@ -2316,7 +3491,7 @@ class Group extends PureComponent {
|
|
|
2316
3491
|
|
|
2317
3492
|
}
|
|
2318
3493
|
|
|
2319
|
-
|
|
3494
|
+
defineProperty(Group, "defaultProps", {
|
|
2320
3495
|
showSocialContext: undefined,
|
|
2321
3496
|
showMetaData: undefined,
|
|
2322
3497
|
width: undefined,
|
|
@@ -2328,24 +3503,24 @@ _defineProperty(Group, "defaultProps", {
|
|
|
2328
3503
|
|
|
2329
3504
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2330
3505
|
handleParse
|
|
2331
|
-
}) => React__default.createElement(Group,
|
|
3506
|
+
}) => React__default.createElement(Group, _extends_1({}, props, {
|
|
2332
3507
|
handleParse: handleParse,
|
|
2333
3508
|
ref: ref
|
|
2334
3509
|
}))));
|
|
2335
3510
|
|
|
2336
|
-
class LoginStatus extends Component {
|
|
3511
|
+
class LoginStatus$1 extends Component {
|
|
2337
3512
|
constructor(..._args) {
|
|
2338
3513
|
var _this;
|
|
2339
3514
|
|
|
2340
3515
|
super(..._args);
|
|
2341
3516
|
_this = this;
|
|
2342
3517
|
|
|
2343
|
-
|
|
3518
|
+
defineProperty(this, "state", {});
|
|
2344
3519
|
|
|
2345
|
-
|
|
3520
|
+
defineProperty(this, "handleReady",
|
|
2346
3521
|
/*#__PURE__*/
|
|
2347
3522
|
function () {
|
|
2348
|
-
var _ref =
|
|
3523
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2349
3524
|
const {
|
|
2350
3525
|
event
|
|
2351
3526
|
} = _this.props;
|
|
@@ -2362,7 +3537,7 @@ class LoginStatus extends Component {
|
|
|
2362
3537
|
};
|
|
2363
3538
|
}());
|
|
2364
3539
|
|
|
2365
|
-
|
|
3540
|
+
defineProperty(this, "handleChange", (...args) => {
|
|
2366
3541
|
const {
|
|
2367
3542
|
onChange
|
|
2368
3543
|
} = this.props;
|
|
@@ -2399,7 +3574,7 @@ class LoginStatus extends Component {
|
|
|
2399
3574
|
|
|
2400
3575
|
}
|
|
2401
3576
|
|
|
2402
|
-
|
|
3577
|
+
defineProperty(LoginStatus$1, "defaultProps", {
|
|
2403
3578
|
onChange: undefined
|
|
2404
3579
|
});
|
|
2405
3580
|
|
|
@@ -2410,14 +3585,14 @@ class Profile extends Component {
|
|
|
2410
3585
|
super(...args);
|
|
2411
3586
|
_this = this;
|
|
2412
3587
|
|
|
2413
|
-
|
|
3588
|
+
defineProperty(this, "state", {
|
|
2414
3589
|
loading: true
|
|
2415
3590
|
});
|
|
2416
3591
|
|
|
2417
|
-
|
|
3592
|
+
defineProperty(this, "handleReady",
|
|
2418
3593
|
/*#__PURE__*/
|
|
2419
3594
|
function () {
|
|
2420
|
-
var _ref =
|
|
3595
|
+
var _ref = asyncToGenerator(function* (api) {
|
|
2421
3596
|
_this.api = api;
|
|
2422
3597
|
|
|
2423
3598
|
_this.updateProfile();
|
|
@@ -2428,7 +3603,7 @@ class Profile extends Component {
|
|
|
2428
3603
|
};
|
|
2429
3604
|
}());
|
|
2430
3605
|
|
|
2431
|
-
|
|
3606
|
+
defineProperty(this, "handleStatusChange", () => {
|
|
2432
3607
|
this.updateProfile();
|
|
2433
3608
|
});
|
|
2434
3609
|
}
|
|
@@ -2436,7 +3611,7 @@ class Profile extends Component {
|
|
|
2436
3611
|
updateProfile() {
|
|
2437
3612
|
var _this2 = this;
|
|
2438
3613
|
|
|
2439
|
-
return
|
|
3614
|
+
return asyncToGenerator(function* () {
|
|
2440
3615
|
const {
|
|
2441
3616
|
api,
|
|
2442
3617
|
props: {
|
|
@@ -2451,7 +3626,7 @@ class Profile extends Component {
|
|
|
2451
3626
|
try {
|
|
2452
3627
|
const response = yield api.getLoginStatus();
|
|
2453
3628
|
|
|
2454
|
-
if (response.status !== LoginStatus
|
|
3629
|
+
if (response.status !== LoginStatus.CONNECTED) {
|
|
2455
3630
|
_this2.setState({
|
|
2456
3631
|
profile: undefined,
|
|
2457
3632
|
loading: false,
|
|
@@ -2491,7 +3666,7 @@ class Profile extends Component {
|
|
|
2491
3666
|
} = this.state;
|
|
2492
3667
|
return React__default.createElement(Initialize$1, {
|
|
2493
3668
|
onReady: this.handleReady
|
|
2494
|
-
}, React__default.createElement(LoginStatus, {
|
|
3669
|
+
}, React__default.createElement(LoginStatus$1, {
|
|
2495
3670
|
event: "auth.statusChange",
|
|
2496
3671
|
onChange: this.handleStatusChange
|
|
2497
3672
|
}, children({
|
|
@@ -2503,7 +3678,7 @@ class Profile extends Component {
|
|
|
2503
3678
|
|
|
2504
3679
|
}
|
|
2505
3680
|
|
|
2506
|
-
|
|
3681
|
+
defineProperty(Profile, "defaultProps", {
|
|
2507
3682
|
fields: Fields
|
|
2508
3683
|
});
|
|
2509
3684
|
|
|
@@ -2540,7 +3715,7 @@ class CustomChat extends PureComponent {
|
|
|
2540
3715
|
|
|
2541
3716
|
}
|
|
2542
3717
|
|
|
2543
|
-
|
|
3718
|
+
defineProperty(CustomChat, "defaultProps", {
|
|
2544
3719
|
children: undefined,
|
|
2545
3720
|
themeColor: undefined,
|
|
2546
3721
|
loggedInGreeting: undefined,
|
|
@@ -2552,7 +3727,7 @@ _defineProperty(CustomChat, "defaultProps", {
|
|
|
2552
3727
|
|
|
2553
3728
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2554
3729
|
handleParse
|
|
2555
|
-
}) => React__default.createElement(CustomChat,
|
|
3730
|
+
}) => React__default.createElement(CustomChat, _extends_1({}, props, {
|
|
2556
3731
|
handleParse: handleParse,
|
|
2557
3732
|
ref: ref
|
|
2558
3733
|
}))));
|
|
@@ -2584,7 +3759,7 @@ class MessageUs extends PureComponent {
|
|
|
2584
3759
|
|
|
2585
3760
|
}
|
|
2586
3761
|
|
|
2587
|
-
|
|
3762
|
+
defineProperty(MessageUs, "defaultProps", {
|
|
2588
3763
|
color: undefined,
|
|
2589
3764
|
size: undefined,
|
|
2590
3765
|
children: undefined
|
|
@@ -2592,7 +3767,7 @@ _defineProperty(MessageUs, "defaultProps", {
|
|
|
2592
3767
|
|
|
2593
3768
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2594
3769
|
handleParse
|
|
2595
|
-
}) => React__default.createElement(MessageUs,
|
|
3770
|
+
}) => React__default.createElement(MessageUs, _extends_1({}, props, {
|
|
2596
3771
|
handleParse: handleParse,
|
|
2597
3772
|
ref: ref
|
|
2598
3773
|
}))));
|
|
@@ -2634,7 +3809,7 @@ class MessengerCheckbox extends PureComponent {
|
|
|
2634
3809
|
|
|
2635
3810
|
}
|
|
2636
3811
|
|
|
2637
|
-
|
|
3812
|
+
defineProperty(MessengerCheckbox, "defaultProps", {
|
|
2638
3813
|
size: undefined,
|
|
2639
3814
|
allowLogin: undefined,
|
|
2640
3815
|
prechecked: undefined,
|
|
@@ -2647,7 +3822,7 @@ _defineProperty(MessengerCheckbox, "defaultProps", {
|
|
|
2647
3822
|
|
|
2648
3823
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2649
3824
|
handleParse
|
|
2650
|
-
}) => React__default.createElement(MessengerCheckbox,
|
|
3825
|
+
}) => React__default.createElement(MessengerCheckbox, _extends_1({}, props, {
|
|
2651
3826
|
handleParse: handleParse,
|
|
2652
3827
|
ref: ref
|
|
2653
3828
|
}))));
|
|
@@ -2683,7 +3858,7 @@ class SendToMessenger extends PureComponent {
|
|
|
2683
3858
|
|
|
2684
3859
|
}
|
|
2685
3860
|
|
|
2686
|
-
|
|
3861
|
+
defineProperty(SendToMessenger, "defaultProps", {
|
|
2687
3862
|
color: undefined,
|
|
2688
3863
|
size: undefined,
|
|
2689
3864
|
dataRef: undefined,
|
|
@@ -2692,7 +3867,7 @@ _defineProperty(SendToMessenger, "defaultProps", {
|
|
|
2692
3867
|
|
|
2693
3868
|
forwardRef((props, ref) => React__default.createElement(Parser, null, ({
|
|
2694
3869
|
handleParse
|
|
2695
|
-
}) => React__default.createElement(SendToMessenger,
|
|
3870
|
+
}) => React__default.createElement(SendToMessenger, _extends_1({}, props, {
|
|
2696
3871
|
handleParse: handleParse,
|
|
2697
3872
|
ref: ref
|
|
2698
3873
|
}))));
|
|
@@ -2935,7 +4110,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
2935
4110
|
(partnerDetails.description || partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
2936
4111
|
'div',
|
|
2937
4112
|
{ className: 'block-content-partners my-4', style: { maxWidth: '100%', paddingLeft: '2rem', flex: '1 1 auto' } },
|
|
2938
|
-
partnerDetails.description && React__default.createElement(BlockContent, _extends
|
|
4113
|
+
partnerDetails.description && React__default.createElement(BlockContent, _extends({ serializers: getSerializers(client), blocks: partnerDetails.description, imageOptions: { w: 320, h: 240, fit: 'max' } }, client.config())),
|
|
2939
4114
|
(partnerDetails.linkedin || partnerDetails.twitter && partnerDetails.facebook || !partnerDetails.twitter && partnerDetails.facebook && checkIsFacebookGroup(partnerDetails.facebook)) && React__default.createElement(
|
|
2940
4115
|
'div',
|
|
2941
4116
|
null,
|
|
@@ -2974,7 +4149,7 @@ var PartnerDetails = function PartnerDetails(_ref) {
|
|
|
2974
4149
|
'div',
|
|
2975
4150
|
{ className: 'mb-5', style: { width: '100%', maxWidth: '100%', textAlign: 'center', padding: '15px', border: '2px solid #aaa', borderRadius: '15px' } },
|
|
2976
4151
|
partnerDetails.twitter ? React__default.createElement(TwitterTimelineEmbed, { sourceType: 'url', url: partnerDetails.twitter, options: { height: 400 } }) : partnerDetails.facebook && React__default.createElement(
|
|
2977
|
-
Facebook,
|
|
4152
|
+
Facebook$1,
|
|
2978
4153
|
{ appId: ' ' },
|
|
2979
4154
|
React__default.createElement(Page$1, { href: partnerDetails.facebook, tabs: 'timeline', width: '500', height: '500' })
|
|
2980
4155
|
)
|