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