@mjhls/mjh-framework 1.0.833-d4d-52-1 → 1.0.834-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 +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-912f52c2.js → ADInfeed-8d621d3c.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-98acbab8.js → ADlgInfeed-0e26bccb.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +626 -655
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +23 -24
- package/dist/cjs/ArticleSeriesLandingPage.js +19 -20
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +139 -192
- package/dist/cjs/AuthWrapper.js +259 -301
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +32 -33
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +80 -84
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +133 -140
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +155 -159
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +125 -130
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +57 -58
- package/dist/cjs/KMTracker.js +15 -15
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +57 -58
- package/dist/cjs/MediaSeriesLanding.js +848 -839
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +126 -131
- package/dist/cjs/NavNative.js +117 -125
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +69 -70
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +109 -113
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +50 -51
- package/dist/cjs/RelatedTopicsDropdown.js +29 -32
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-10bc3826.js → SeriesSlider-d16a5ae5.js} +37 -38
- package/dist/cjs/SideFooter.js +25 -26
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-560a666e.js → SocialSearchComponent-97dd19a5.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +40 -44
- package/dist/cjs/VideoSeriesCard.js +24 -25
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +25 -26
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +279 -203
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +54 -55
- package/dist/cjs/{brightcove-react-player-loader.es-4ba0d3d5.js → brightcove-react-player-loader.es-156bd4d6.js} +5 -6
- package/dist/cjs/faundadb.js +1 -1
- package/dist/cjs/getRelatedArticle.js +6 -6
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-ea2ea5e7.js → getTargeting-021d644c.js} +11 -11
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-5be2866f.js → index-3294d3bc.js} +1 -1
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-b10010e9.js → index-a0bdcb69.js} +829 -852
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index-f0677b9d.js → index-e2e62963.js} +0 -10
- package/dist/cjs/{index.es-13533f24.js → index.es-9110add6.js} +8 -11
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -62
- package/dist/cjs/{inherits-0c7830c5.js → inherits-9953db94.js} +4 -4
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-11ec04d2.js → main-02daeefe.js} +53 -85
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-66a6a284.js → moment-575fe24c.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-813279c7.js → ADInfeed-b566ce41.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-8ba1523a.js → ADlgInfeed-5eb7281d.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +256 -284
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +120 -169
- package/dist/esm/AuthWrapper.js +257 -298
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +30 -30
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +76 -76
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +109 -109
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +142 -142
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +100 -100
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +55 -55
- package/dist/esm/KMTracker.js +15 -15
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +54 -54
- package/dist/esm/MediaSeriesLanding.js +571 -559
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +103 -103
- package/dist/esm/NavNative.js +92 -92
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +66 -66
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +95 -95
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +45 -45
- package/dist/esm/RelatedTopicsDropdown.js +21 -21
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-31dcb72b.js → SeriesSlider-8dc17b11.js} +28 -28
- package/dist/esm/SideFooter.js +21 -21
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-82ac7d6d.js → SocialSearchComponent-db5ba548.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +18 -18
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +260 -180
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +39 -39
- package/dist/esm/{brightcove-react-player-loader.es-e1c6b0f2.js → brightcove-react-player-loader.es-83f53e4e.js} +3 -3
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{getTargeting-831bc794.js → getTargeting-82e86707.js} +9 -9
- package/dist/esm/getTargeting.js +1 -1
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-b68072f5.js → index-aaa2dae0.js} +1 -10
- package/dist/esm/{index-b3bd543b.js → index-d9cf292f.js} +788 -804
- package/dist/esm/{index-d2f90501.js → index-ef6d5dcf.js} +1 -1
- package/dist/esm/{index.es-7dda2f0a.js → index.es-29c1cef5.js} +6 -8
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +50 -51
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-aef58dbc.js → main-e4a934b2.js} +50 -81
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-12415288.js → moment-e2f9b20c.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +110 -110
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -60,35 +60,35 @@ function parseSource(source) {
|
|
|
60
60
|
if (typeof source === 'string' && isUrl(source)) {
|
|
61
61
|
// Someone passed an existing image url?
|
|
62
62
|
image = {
|
|
63
|
-
asset: { _ref: urlToId(source) }
|
|
63
|
+
asset: { _ref: urlToId(source) }
|
|
64
64
|
};
|
|
65
65
|
}
|
|
66
66
|
else if (typeof source === 'string') {
|
|
67
67
|
// Just an asset id
|
|
68
68
|
image = {
|
|
69
|
-
asset: { _ref: source }
|
|
69
|
+
asset: { _ref: source }
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
else if (isRef(source)) {
|
|
73
73
|
// We just got passed an asset directly
|
|
74
74
|
image = {
|
|
75
|
-
asset: source
|
|
75
|
+
asset: source
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
else if (isAsset(source)) {
|
|
79
79
|
// If we were passed an image asset document
|
|
80
80
|
image = {
|
|
81
81
|
asset: {
|
|
82
|
-
_ref: source._id || ''
|
|
83
|
-
}
|
|
82
|
+
_ref: source._id || ''
|
|
83
|
+
}
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
else if (isAssetStub(source)) {
|
|
87
87
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
88
88
|
image = {
|
|
89
89
|
asset: {
|
|
90
|
-
_ref: urlToId(source.asset.url)
|
|
91
|
-
}
|
|
90
|
+
_ref: urlToId(source.asset.url)
|
|
91
|
+
}
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
else if (typeof source.asset === 'object') {
|
|
@@ -129,7 +129,7 @@ function applyDefaults(image) {
|
|
|
129
129
|
left: 0,
|
|
130
130
|
top: 0,
|
|
131
131
|
bottom: 0,
|
|
132
|
-
right: 0
|
|
132
|
+
right: 0
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
135
|
if (!result.hotspot) {
|
|
@@ -137,7 +137,7 @@ function applyDefaults(image) {
|
|
|
137
137
|
x: 0.5,
|
|
138
138
|
y: 0.5,
|
|
139
139
|
height: 1.0,
|
|
140
|
-
width: 1.0
|
|
140
|
+
width: 1.0
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
return result;
|
|
@@ -184,7 +184,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
184
184
|
['crop', 'crop'],
|
|
185
185
|
['saturation', 'sat'],
|
|
186
186
|
['auto', 'auto'],
|
|
187
|
-
['dpr', 'dpr']
|
|
187
|
+
['dpr', 'dpr']
|
|
188
188
|
];
|
|
189
189
|
function urlForImage(options) {
|
|
190
190
|
var spec = __assign({}, (options || {}));
|
|
@@ -203,7 +203,7 @@ function urlForImage(options) {
|
|
|
203
203
|
left: cropLeft,
|
|
204
204
|
top: cropTop,
|
|
205
205
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
206
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
206
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
207
207
|
};
|
|
208
208
|
// Compute hot spot rect in terms of pixel coordinates
|
|
209
209
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -214,7 +214,7 @@ function urlForImage(options) {
|
|
|
214
214
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
215
215
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
216
216
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
217
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
217
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
218
218
|
};
|
|
219
219
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
220
220
|
// the crop/hotspot.
|
|
@@ -296,7 +296,7 @@ function fit(source, spec) {
|
|
|
296
296
|
left: Math.round(left),
|
|
297
297
|
top: Math.round(top_2),
|
|
298
298
|
width: Math.round(width),
|
|
299
|
-
height: Math.round(height)
|
|
299
|
+
height: Math.round(height)
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
else {
|
|
@@ -318,13 +318,13 @@ function fit(source, spec) {
|
|
|
318
318
|
left: Math.max(0, Math.floor(left)),
|
|
319
319
|
top: Math.max(0, Math.floor(top_3)),
|
|
320
320
|
width: Math.round(width),
|
|
321
|
-
height: Math.round(height)
|
|
321
|
+
height: Math.round(height)
|
|
322
322
|
};
|
|
323
323
|
}
|
|
324
324
|
return {
|
|
325
325
|
width: imgWidth,
|
|
326
326
|
height: imgHeight,
|
|
327
|
-
rect: cropRect
|
|
327
|
+
rect: cropRect
|
|
328
328
|
};
|
|
329
329
|
}
|
|
330
330
|
|
|
@@ -377,12 +377,11 @@ function urlBuilder(options) {
|
|
|
377
377
|
var client = options;
|
|
378
378
|
if (isSanityClient(client)) {
|
|
379
379
|
// Inherit config from client
|
|
380
|
-
var _a = client.clientConfig,
|
|
381
|
-
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
380
|
+
var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
382
381
|
return new ImageUrlBuilder(null, {
|
|
383
382
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
384
383
|
projectId: projectId,
|
|
385
|
-
dataset: dataset
|
|
384
|
+
dataset: dataset
|
|
386
385
|
});
|
|
387
386
|
}
|
|
388
387
|
// Or just accept the options as given
|
|
@@ -395,7 +394,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
395
394
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
396
395
|
}
|
|
397
396
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
398
|
-
var baseUrl = options.baseUrl ||
|
|
397
|
+
var baseUrl = options.baseUrl || '';
|
|
399
398
|
var newOptions = { baseUrl: baseUrl };
|
|
400
399
|
for (var key in options) {
|
|
401
400
|
if (options.hasOwnProperty(key)) {
|
|
@@ -523,7 +522,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
523
522
|
ImageUrlBuilder.prototype.url = function () {
|
|
524
523
|
return urlForImage_1$1.default(this.options);
|
|
525
524
|
};
|
|
526
|
-
//
|
|
525
|
+
// Synonym for url()
|
|
527
526
|
ImageUrlBuilder.prototype.toString = function () {
|
|
528
527
|
return this.url();
|
|
529
528
|
};
|
|
@@ -35,15 +35,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
35
35
|
return target;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
function _setPrototypeOf(o, p) {
|
|
39
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
40
|
-
o.__proto__ = p;
|
|
41
|
-
return o;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
return _setPrototypeOf(o, p);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
38
|
var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
48
39
|
/*!
|
|
49
40
|
Copyright (c) 2017 Jed Watson.
|
|
@@ -95,5 +86,4 @@ var classnames = _commonjsHelpers.createCommonjsModule(function (module) {
|
|
|
95
86
|
|
|
96
87
|
exports._extends = _extends;
|
|
97
88
|
exports._objectWithoutPropertiesLoose = _objectWithoutPropertiesLoose;
|
|
98
|
-
exports._setPrototypeOf = _setPrototypeOf;
|
|
99
89
|
exports.classnames = classnames;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
4
|
|
|
7
|
-
var
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var React__default = _interopDefault(React);
|
|
8
7
|
|
|
9
8
|
/*! *****************************************************************************
|
|
10
9
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
@@ -269,9 +268,6 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
269
268
|
_this.dragging = false;
|
|
270
269
|
if (_this.state.pullToRefreshThresholdBreached) {
|
|
271
270
|
_this.props.refreshFunction && _this.props.refreshFunction();
|
|
272
|
-
_this.setState({
|
|
273
|
-
pullToRefreshThresholdBreached: false,
|
|
274
|
-
});
|
|
275
271
|
}
|
|
276
272
|
requestAnimationFrame(function () {
|
|
277
273
|
// this._infScroll
|
|
@@ -378,6 +374,7 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
378
374
|
// update state when new data was sent in
|
|
379
375
|
this.setState({
|
|
380
376
|
showLoader: false,
|
|
377
|
+
pullToRefreshThresholdBreached: false,
|
|
381
378
|
});
|
|
382
379
|
};
|
|
383
380
|
InfiniteScroll.prototype.isElementAtBottom = function (target, scrollThreshold) {
|
|
@@ -404,10 +401,10 @@ var InfiniteScroll = /** @class */ (function (_super) {
|
|
|
404
401
|
var outerDivStyle = this.props.pullDownToRefresh && this.props.height
|
|
405
402
|
? { overflow: 'auto' }
|
|
406
403
|
: {};
|
|
407
|
-
return (React__default
|
|
408
|
-
React__default
|
|
409
|
-
this.props.pullDownToRefresh && (React__default
|
|
410
|
-
React__default
|
|
404
|
+
return (React__default.createElement("div", { style: outerDivStyle, className: "infinite-scroll-component__outerdiv" },
|
|
405
|
+
React__default.createElement("div", { className: "infinite-scroll-component " + (this.props.className || ''), ref: function (infScroll) { return (_this._infScroll = infScroll); }, style: style },
|
|
406
|
+
this.props.pullDownToRefresh && (React__default.createElement("div", { style: { position: 'relative' }, ref: function (pullDown) { return (_this._pullDown = pullDown); } },
|
|
407
|
+
React__default.createElement("div", { style: {
|
|
411
408
|
position: 'absolute',
|
|
412
409
|
left: 0,
|
|
413
410
|
right: 0,
|
|
@@ -1,39 +1,38 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
4
|
+
|
|
3
5
|
var React = require('react');
|
|
4
|
-
var
|
|
6
|
+
var React__default = _interopDefault(React);
|
|
7
|
+
var reactSocialIcons = require('./react-social-icons-f7f48f71.js');
|
|
5
8
|
var iconBase = require('./iconBase-68959171.js');
|
|
6
9
|
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
10
|
-
|
|
11
10
|
var year = new Date().getFullYear();
|
|
12
11
|
|
|
13
12
|
var SocialNavFooter = function SocialNavFooter(props) {
|
|
14
13
|
var website = props.website,
|
|
15
14
|
showLogo = props.showLogo;
|
|
16
15
|
|
|
17
|
-
return React__default
|
|
16
|
+
return React__default.createElement(
|
|
18
17
|
'div',
|
|
19
18
|
{ className: 'nav-footer' },
|
|
20
|
-
website && website.footerLinks && website.footerLinks.length && React__default
|
|
19
|
+
website && website.footerLinks && website.footerLinks.length && React__default.createElement(
|
|
21
20
|
'ul',
|
|
22
21
|
null,
|
|
23
22
|
website && website.footerLinks.map(function (content, index) {
|
|
24
23
|
if (content.url && content.title) {
|
|
25
|
-
return content.blank ? React__default
|
|
24
|
+
return content.blank ? React__default.createElement(
|
|
26
25
|
'li',
|
|
27
26
|
{ key: index },
|
|
28
|
-
React__default
|
|
27
|
+
React__default.createElement(
|
|
29
28
|
'a',
|
|
30
29
|
{ target: '_blank', rel: 'noopener noreferrer', href: content.url, className: 'nav-link' },
|
|
31
30
|
content.title
|
|
32
31
|
)
|
|
33
|
-
) : React__default
|
|
32
|
+
) : React__default.createElement(
|
|
34
33
|
'li',
|
|
35
34
|
{ key: index },
|
|
36
|
-
React__default
|
|
35
|
+
React__default.createElement(
|
|
37
36
|
'a',
|
|
38
37
|
{ href: content.url, className: 'nav-link' },
|
|
39
38
|
content.title
|
|
@@ -42,14 +41,14 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
42
41
|
} else return null;
|
|
43
42
|
})
|
|
44
43
|
),
|
|
45
|
-
React__default
|
|
44
|
+
React__default.createElement(
|
|
46
45
|
'ul',
|
|
47
46
|
null,
|
|
48
|
-
React__default
|
|
47
|
+
React__default.createElement(
|
|
49
48
|
'li',
|
|
50
49
|
{ style: { marginTop: '10px' }, key: website.footerLinks ? website.footerLinks.length + 1 : 1 },
|
|
51
50
|
website.socialLinks && website.socialLinks.map(function (row, index) {
|
|
52
|
-
return React__default
|
|
51
|
+
return React__default.createElement(reactSocialIcons.reactSocialIcons_1, {
|
|
53
52
|
target: row.blank ? '_blank' : '_self',
|
|
54
53
|
rel: 'noopener noreferrer',
|
|
55
54
|
key: index,
|
|
@@ -61,13 +60,13 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
61
60
|
});
|
|
62
61
|
})
|
|
63
62
|
),
|
|
64
|
-
showLogo && React__default
|
|
63
|
+
showLogo && React__default.createElement(
|
|
65
64
|
'li',
|
|
66
65
|
null,
|
|
67
|
-
React__default
|
|
66
|
+
React__default.createElement(
|
|
68
67
|
'a',
|
|
69
68
|
{ href: 'https://www.mjhlifesciences.com' },
|
|
70
|
-
React__default
|
|
69
|
+
React__default.createElement('img', {
|
|
71
70
|
style: { maxWidth: '100%', height: '50px', margin: ' 10px 0', objectFit: 'contain' },
|
|
72
71
|
alt: 'MJHLS Brand Logo',
|
|
73
72
|
src: 'https://mjh-web.s3.amazonaws.com/_media/an_mjhls_brand_logo.png'
|
|
@@ -75,7 +74,7 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
75
74
|
)
|
|
76
75
|
)
|
|
77
76
|
),
|
|
78
|
-
website && website.name && React__default
|
|
77
|
+
website && website.name && React__default.createElement(
|
|
79
78
|
'p',
|
|
80
79
|
{ className: 'nav-link' },
|
|
81
80
|
'\xA9 ',
|
|
@@ -88,9 +87,10 @@ var SocialNavFooter = function SocialNavFooter(props) {
|
|
|
88
87
|
};
|
|
89
88
|
|
|
90
89
|
// THIS FILE IS AUTO GENERATED
|
|
91
|
-
|
|
90
|
+
var GoSearch = function (props) {
|
|
92
91
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 16 16"},"child":[{"tag":"path","attr":{"fillRule":"evenodd","d":"M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z"}}]})(props);
|
|
93
|
-
}
|
|
92
|
+
};
|
|
93
|
+
GoSearch.displayName = "GoSearch";
|
|
94
94
|
|
|
95
95
|
exports.GoSearch = GoSearch;
|
|
96
96
|
exports.SocialNavFooter = SocialNavFooter;
|
|
@@ -3,17 +3,26 @@
|
|
|
3
3
|
var iconBase = require('./iconBase-68959171.js');
|
|
4
4
|
|
|
5
5
|
// THIS FILE IS AUTO GENERATED
|
|
6
|
-
|
|
6
|
+
var IoIosArrowDropupCircle = function (props) {
|
|
7
7
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 464c114.9 0 208-93.1 208-208S370.9 48 256 48 48 141.1 48 256s93.1 208 208 208zm0-244.5l-81.1 81.9c-7.5 7.5-19.8 7.5-27.3 0s-7.5-19.8 0-27.3l95.7-95.4c7.3-7.3 19.1-7.5 26.6-.6l94.3 94c3.8 3.8 5.7 8.7 5.7 13.7 0 4.9-1.9 9.9-5.6 13.6-7.5 7.5-19.7 7.6-27.3 0l-81-79.9z"}}]})(props);
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
IoIosArrowDropupCircle.displayName = "IoIosArrowDropupCircle";
|
|
10
|
+
var IoIosArrowForward = function (props) {
|
|
9
11
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"}}]})(props);
|
|
10
|
-
}
|
|
12
|
+
};
|
|
13
|
+
IoIosArrowForward.displayName = "IoIosArrowForward";
|
|
14
|
+
var IoIosOpen = function (props) {
|
|
11
15
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M227.8 300.2c-5.1-5.1-5.1-13.3 0-18.4l133.7-133.7c-5.3-2.6-11.2-4.1-17.5-4.1H88c-22 0-40 18-40 40v224c0 22 18 40 40 40h256c22 0 40-18 40-40V184c0-6.3-1.5-12.2-4.1-17.5L246.2 300.2c-5.1 5.1-13.3 5.1-18.4 0z"}},{"tag":"path","attr":{"d":"M459.5 68.5C457 66 453 64 449 64h-97c-7.2-.1-13.1 5.7-13.1 12.9-.1 7.2 5.7 13.1 12.9 13.1l67.3.5-57.6 57.6c8 3.9 14.5 10.4 18.4 18.4l57.6-57.6.5 67.3c.1 7.2 5.9 13 13.1 12.9 7.2-.1 13-5.9 12.9-13.1V78c0-3.5-2-7-4.5-9.5z"}}]})(props);
|
|
12
|
-
}
|
|
16
|
+
};
|
|
17
|
+
IoIosOpen.displayName = "IoIosOpen";
|
|
18
|
+
var IoMdArrowDropdown = function (props) {
|
|
13
19
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M128 192l128 128 128-128z"}}]})(props);
|
|
14
|
-
}
|
|
20
|
+
};
|
|
21
|
+
IoMdArrowDropdown.displayName = "IoMdArrowDropdown";
|
|
22
|
+
var IoMdLogIn = function (props) {
|
|
15
23
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M256 48c-42.9 0-84.2 13-119.2 37.5-34.2 24-60.2 57.2-75.1 96.1L58 192h45.7l1.9-5c8.2-17.8 19.4-33.9 33.5-48 31.2-31.2 72.7-48.4 116.9-48.4s85.7 17.2 116.9 48.4c31.2 31.2 48.4 72.7 48.4 116.9 0 44.1-17.2 85.7-48.4 116.9-31.2 31.2-72.7 48.4-116.9 48.4-44.1 0-85.6-17.2-116.9-48.4-14-14-25.3-30.1-33.5-47.9l-1.9-5H58l3.6 10.4c14.9 38.9 40.9 72.1 75.1 96.1C171.8 451.1 213 464 256 464c114.7 0 208-93.3 208-208S370.7 48 256 48z"}},{"tag":"path","attr":{"d":"M48 277.4h189.7l-43.6 44.7L224 352l96-96-96-96-31 29.9 44.7 44.7H48v42.8z"}}]})(props);
|
|
16
|
-
}
|
|
24
|
+
};
|
|
25
|
+
IoMdLogIn.displayName = "IoMdLogIn";
|
|
17
26
|
|
|
18
27
|
exports.IoIosArrowDropupCircle = IoIosArrowDropupCircle;
|
|
19
28
|
exports.IoIosArrowForward = IoIosArrowForward;
|
|
@@ -3,11 +3,14 @@
|
|
|
3
3
|
var iconBase = require('./iconBase-68959171.js');
|
|
4
4
|
|
|
5
5
|
// THIS FILE IS AUTO GENERATED
|
|
6
|
-
|
|
6
|
+
var MdEmail = function (props) {
|
|
7
7
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"}}]})(props);
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
MdEmail.displayName = "MdEmail";
|
|
10
|
+
var MdPictureAsPdf = function (props) {
|
|
9
11
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 24 24"},"child":[{"tag":"path","attr":{"d":"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-8.5 7.5c0 .83-.67 1.5-1.5 1.5H9v2H7.5V7H10c.83 0 1.5.67 1.5 1.5v1zm5 2c0 .83-.67 1.5-1.5 1.5h-2.5V7H15c.83 0 1.5.67 1.5 1.5v3zm4-3H19v1h1.5V11H19v2h-1.5V7h3v1.5zM9 9.5h1v-1H9v1zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm10 5.5h1v-3h-1v3z"}}]})(props);
|
|
10
|
-
}
|
|
12
|
+
};
|
|
13
|
+
MdPictureAsPdf.displayName = "MdPictureAsPdf";
|
|
11
14
|
|
|
12
15
|
exports.MdEmail = MdEmail;
|
|
13
16
|
exports.MdPictureAsPdf = MdPictureAsPdf;
|
|
@@ -3,15 +3,22 @@
|
|
|
3
3
|
var iconBase = require('./iconBase-68959171.js');
|
|
4
4
|
|
|
5
5
|
// THIS FILE IS AUTO GENERATED
|
|
6
|
-
|
|
6
|
+
var FaLongArrowAltRight = function (props) {
|
|
7
7
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M313.941 216H12c-6.627 0-12 5.373-12 12v56c0 6.627 5.373 12 12 12h301.941v46.059c0 21.382 25.851 32.09 40.971 16.971l86.059-86.059c9.373-9.373 9.373-24.569 0-33.941l-86.059-86.059c-15.119-15.119-40.971-4.411-40.971 16.971V216z"}}]})(props);
|
|
8
|
-
}
|
|
8
|
+
};
|
|
9
|
+
FaLongArrowAltRight.displayName = "FaLongArrowAltRight";
|
|
10
|
+
var FaMinus = function (props) {
|
|
9
11
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h384c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
10
|
-
}
|
|
12
|
+
};
|
|
13
|
+
FaMinus.displayName = "FaMinus";
|
|
14
|
+
var FaPlus = function (props) {
|
|
11
15
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 448 512"},"child":[{"tag":"path","attr":{"d":"M416 208H272V64c0-17.67-14.33-32-32-32h-32c-17.67 0-32 14.33-32 32v144H32c-17.67 0-32 14.33-32 32v32c0 17.67 14.33 32 32 32h144v144c0 17.67 14.33 32 32 32h32c17.67 0 32-14.33 32-32V304h144c17.67 0 32-14.33 32-32v-32c0-17.67-14.33-32-32-32z"}}]})(props);
|
|
12
|
-
}
|
|
16
|
+
};
|
|
17
|
+
FaPlus.displayName = "FaPlus";
|
|
18
|
+
var FaRegWindowClose = function (props) {
|
|
13
19
|
return iconBase.GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M464 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h416c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zm0 394c0 3.3-2.7 6-6 6H54c-3.3 0-6-2.7-6-6V86c0-3.3 2.7-6 6-6h404c3.3 0 6 2.7 6 6v340zM356.5 194.6L295.1 256l61.4 61.4c4.6 4.6 4.6 12.1 0 16.8l-22.3 22.3c-4.6 4.6-12.1 4.6-16.8 0L256 295.1l-61.4 61.4c-4.6 4.6-12.1 4.6-16.8 0l-22.3-22.3c-4.6-4.6-4.6-12.1 0-16.8l61.4-61.4-61.4-61.4c-4.6-4.6-4.6-12.1 0-16.8l22.3-22.3c4.6-4.6 12.1-4.6 16.8 0l61.4 61.4 61.4-61.4c4.6-4.6 12.1-4.6 16.8 0l22.3 22.3c4.7 4.6 4.7 12.1 0 16.8z"}}]})(props);
|
|
14
|
-
}
|
|
20
|
+
};
|
|
21
|
+
FaRegWindowClose.displayName = "FaRegWindowClose";
|
|
15
22
|
|
|
16
23
|
exports.FaLongArrowAltRight = FaLongArrowAltRight;
|
|
17
24
|
exports.FaMinus = FaMinus;
|