@mjhls/mjh-framework 1.0.861-dl-iframe-v1 → 1.0.862-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 +1 -1
- package/dist/cjs/AD.js +9 -10
- package/dist/cjs/AD300x250.js +9 -10
- package/dist/cjs/AD300x250x600.js +9 -10
- package/dist/cjs/AD728x90.js +10 -11
- package/dist/cjs/ADFloatingFooter.js +11 -12
- package/dist/cjs/ADFooter.js +8 -9
- package/dist/cjs/ADGutter.js +11 -12
- package/dist/cjs/{ADInfeed-25d48cc2.js → ADInfeed-98c71bcd.js} +9 -11
- package/dist/cjs/ADSkyscraper.js +11 -12
- package/dist/cjs/ADSponsoredResources.js +11 -12
- package/dist/cjs/ADWebcast.js +11 -12
- package/dist/cjs/ADWelcome.js +15 -16
- package/dist/cjs/{ADlgInfeed-a535a768.js → ADlgInfeed-9de32585.js} +6 -7
- package/dist/cjs/AccordionPanel.js +22 -24
- package/dist/cjs/AdSlot.js +13 -14
- package/dist/cjs/AdSlotsProvider.js +902 -11
- package/dist/cjs/AlgoliaSearch.js +842 -952
- package/dist/cjs/AlphabeticList.js +15 -16
- package/dist/cjs/ArticleCarousel.js +10 -11
- package/dist/cjs/ArticleProgramLandingPage.js +27 -28
- package/dist/cjs/ArticleSeriesLandingPage.js +22 -23
- package/dist/cjs/ArticleSeriesListing.js +39 -40
- package/dist/cjs/Auth.js +1197 -237
- package/dist/cjs/AuthWrapper.js +38 -119
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-bb831b74.js} +12 -13
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-091a991f.js} +24 -25
- package/dist/cjs/Breadcrumbs.js +21 -23
- package/dist/cjs/CMEDeck.js +64 -64
- package/dist/cjs/Column1.js +11 -14
- package/dist/cjs/Column2.js +19 -22
- package/dist/cjs/Column3.js +32 -35
- package/dist/cjs/ConferenceArticleCard.js +17 -18
- package/dist/cjs/ConferenceBanner-4a16fddc.js +23 -0
- package/dist/cjs/DeckContent.js +72 -76
- package/dist/cjs/DeckQueue.js +68 -72
- package/dist/cjs/{Dfp-391fd124.js → Dfp-26baccf1.js} +22 -23
- package/dist/cjs/EventsDeck.js +116 -123
- package/dist/cjs/ExternalResources.js +46 -47
- package/dist/cjs/Feature.js +23 -25
- package/dist/cjs/ForbesHero.js +34 -35
- package/dist/cjs/GridContent.js +203 -208
- package/dist/cjs/GridHero.js +35 -36
- package/dist/cjs/GroupDeck.js +48 -49
- package/dist/cjs/HamMagazine.js +116 -121
- package/dist/cjs/Header.js +12 -14
- package/dist/cjs/Hero.js +9 -10
- package/dist/cjs/HighlightenVideo.js +16 -17
- package/dist/cjs/HorizontalArticleListing.js +36 -37
- package/dist/cjs/HorizontalHero.js +23 -24
- package/dist/cjs/IssueContentDeck.js +65 -70
- package/dist/cjs/IssueDeck.js +60 -65
- package/dist/cjs/IssueLanding.js +28 -29
- package/dist/cjs/LeftNav.js +20 -22
- package/dist/cjs/MasterDeck.js +49 -50
- package/dist/cjs/MediaSeriesLanding.js +786 -733
- package/dist/cjs/NavDvm.js +63 -68
- package/dist/cjs/{NavFooter-3dcd99a8.js → NavFooter-76c913e3.js} +14 -15
- package/dist/cjs/NavMagazine.js +116 -121
- package/dist/cjs/NavNative.js +108 -116
- package/dist/cjs/OncliveHero.js +17 -17
- package/dist/cjs/OncliveLargeHero.js +63 -64
- package/dist/cjs/PageFilter.js +8 -9
- package/dist/cjs/PartnerDetailListing.js +3899 -80
- package/dist/cjs/PdfDownload.js +8 -9
- package/dist/cjs/PopUpModal.js +13 -15
- package/dist/cjs/PubSection.js +19 -20
- package/dist/cjs/PubToc.js +7 -8
- package/dist/cjs/PublicationDeck.js +59 -64
- package/dist/cjs/PublicationLanding.js +83 -87
- package/dist/cjs/QueueDeckExpanded.js +285 -285
- package/dist/cjs/RecentNews.js +19 -20
- package/dist/cjs/RelatedContent.js +22 -23
- package/dist/cjs/RelatedTopicsDropdown.js +19 -22
- package/dist/cjs/RolesDeck.js +27 -32
- package/dist/cjs/Search.js +12 -16
- package/dist/cjs/SeriesListingDeck.js +26 -26
- package/dist/cjs/{SeriesSlider-0d3bf265.js → SeriesSlider-8bbc989f.js} +33 -34
- package/dist/cjs/SideFooter.js +23 -24
- package/dist/cjs/SocialIcons.js +9 -10
- package/dist/cjs/{SocialSearchComponent-19548e2a.js → SocialSearchComponent-cea213aa.js} +34 -38
- package/dist/cjs/SocialShare.js +29 -31
- package/dist/cjs/TaxonomyCard.js +54 -59
- package/dist/cjs/TaxonomyDescription.js +21 -22
- package/dist/cjs/TemplateNormal.js +34 -35
- package/dist/cjs/ThumbnailCard.js +17 -19
- package/dist/cjs/Ustream.js +21 -22
- package/dist/cjs/VerticalHero.js +15 -16
- package/dist/cjs/VideoProgramLandingPage.js +43 -47
- package/dist/cjs/VideoSeriesCard.js +22 -23
- package/dist/cjs/VideoSeriesFilter.js +9 -9
- package/dist/cjs/VideoSeriesLandingPage.js +27 -28
- package/dist/cjs/VideoSeriesListing.js +56 -57
- package/dist/cjs/View.js +200 -204
- package/dist/cjs/YahooHero.js +30 -31
- package/dist/cjs/YoutubeGroup.js +50 -51
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-156bd4d6.js} +8 -10
- package/dist/cjs/faundadb.js +16 -16
- package/dist/cjs/getRelatedArticle.js +131 -67
- package/dist/cjs/getRootDocGroup.js +3 -3
- package/dist/cjs/getSerializers.js +11 -11
- package/dist/cjs/{getTargeting-a9a871f0.js → getTargeting-f1821260.js} +2 -2
- package/dist/cjs/getTargeting.js +1 -1
- package/dist/cjs/iconBase-68959171.js +3 -0
- package/dist/cjs/{index-6367b7bf.js → index-3294d3bc.js} +17 -16
- package/dist/cjs/{index-9d365128.js → index-96b3db50.js} +10 -12
- package/dist/cjs/{index-2cf30c83.js → index-98e01cb9.js} +8 -9
- package/dist/cjs/{index-f83a102a.js → index-a1e54356.js} +934 -965
- package/dist/cjs/{index-b5eb3ff8.js → index-be0c82be.js} +19 -20
- package/dist/cjs/{index.es-f3e47207.js → index.es-9110add6.js} +12 -31
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-4d410430.js} +20 -20
- package/dist/cjs/{index.esm-974f47d9.js → index.esm-90433435.js} +15 -6
- package/dist/cjs/{index.esm-44f3e2d0.js → index.esm-e32d3e8e.js} +6 -3
- package/dist/cjs/{index.esm-05850a2f.js → index.esm-ff47db6f.js} +12 -5
- package/dist/cjs/index.js +58 -63
- package/dist/cjs/{inherits-0c7830c5.js → inherits-1f5a1c72.js} +3 -3
- package/dist/cjs/inherits-8d29278d.js +110 -0
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-fc2922d0.js} +22 -71
- package/dist/cjs/{main-7b5e57b0.js → main-02daeefe.js} +54 -90
- package/dist/cjs/{md5-e1ca5797.js → md5-5039b1a6.js} +1 -1
- package/dist/cjs/{moment-ca3bd9fb.js → moment-575fe24c.js} +8 -10
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-f7f48f71.js} +11 -12
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{typeof-9d7f610f.js → typeof-725500bc.js} +1 -1
- package/dist/cjs/urlFor.js +3 -3
- package/dist/cjs/{visibility-sensor-eb2c5b69.js → visibility-sensor-ad5e3116.js} +5 -7
- package/dist/esm/AD.js +7 -7
- package/dist/esm/AD300x250.js +7 -7
- package/dist/esm/AD300x250x600.js +7 -7
- package/dist/esm/AD728x90.js +8 -8
- package/dist/esm/ADFloatingFooter.js +9 -9
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +9 -9
- package/dist/esm/{ADInfeed-56a3db8b.js → ADInfeed-1cc9d817.js} +7 -7
- package/dist/esm/ADSkyscraper.js +9 -9
- package/dist/esm/ADSponsoredResources.js +9 -9
- package/dist/esm/ADWebcast.js +9 -9
- package/dist/esm/ADWelcome.js +13 -13
- package/dist/esm/{ADlgInfeed-53edb995.js → ADlgInfeed-8c4f129e.js} +4 -4
- package/dist/esm/AccordionPanel.js +17 -17
- package/dist/esm/AdSlot.js +5 -5
- package/dist/esm/AdSlotsProvider.js +902 -10
- package/dist/esm/AlgoliaSearch.js +238 -347
- package/dist/esm/AlphabeticList.js +13 -13
- package/dist/esm/ArticleCarousel.js +8 -8
- package/dist/esm/ArticleProgramLandingPage.js +20 -20
- package/dist/esm/ArticleSeriesLandingPage.js +17 -17
- package/dist/esm/ArticleSeriesListing.js +36 -36
- package/dist/esm/Auth.js +1180 -216
- package/dist/esm/AuthWrapper.js +36 -116
- package/dist/esm/{AuthorComponent-8ffd4679.js → AuthorComponent-34b16174.js} +10 -10
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-e9b4ddcf.js} +4 -4
- package/dist/esm/Breadcrumbs.js +11 -11
- package/dist/esm/CMEDeck.js +61 -61
- package/dist/esm/Column1.js +9 -9
- package/dist/esm/Column2.js +17 -17
- package/dist/esm/Column3.js +30 -30
- package/dist/esm/ConferenceArticleCard.js +15 -15
- package/dist/esm/{ConferenceBanner-9162d0ca.js → ConferenceBanner-8792ebd2.js} +4 -4
- package/dist/esm/DeckContent.js +68 -68
- package/dist/esm/DeckQueue.js +64 -64
- package/dist/esm/{Dfp-2f9796e1.js → Dfp-b7236041.js} +10 -10
- package/dist/esm/EventsDeck.js +92 -92
- package/dist/esm/ExternalResources.js +41 -41
- package/dist/esm/Feature.js +17 -17
- package/dist/esm/ForbesHero.js +28 -28
- package/dist/esm/GridContent.js +172 -172
- package/dist/esm/GridHero.js +29 -29
- package/dist/esm/GroupDeck.js +36 -36
- package/dist/esm/HamMagazine.js +91 -91
- package/dist/esm/Header.js +8 -8
- package/dist/esm/Hero.js +7 -7
- package/dist/esm/HighlightenVideo.js +14 -14
- package/dist/esm/HorizontalArticleListing.js +34 -34
- package/dist/esm/HorizontalHero.js +21 -21
- package/dist/esm/IssueContentDeck.js +53 -53
- package/dist/esm/IssueDeck.js +54 -54
- package/dist/esm/IssueLanding.js +26 -26
- package/dist/esm/LeftNav.js +16 -16
- package/dist/esm/MasterDeck.js +46 -46
- package/dist/esm/MediaSeriesLanding.js +506 -450
- package/dist/esm/NavDvm.js +46 -46
- package/dist/esm/{NavFooter-c29526b7.js → NavFooter-e27bd93b.js} +12 -12
- package/dist/esm/NavMagazine.js +93 -93
- package/dist/esm/NavNative.js +83 -83
- package/dist/esm/OncliveHero.js +15 -14
- package/dist/esm/OncliveLargeHero.js +52 -52
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +3895 -76
- package/dist/esm/PdfDownload.js +6 -6
- package/dist/esm/PopUpModal.js +8 -8
- package/dist/esm/PubSection.js +17 -17
- package/dist/esm/PubToc.js +5 -5
- package/dist/esm/PublicationDeck.js +51 -51
- package/dist/esm/PublicationLanding.js +69 -69
- package/dist/esm/QueueDeckExpanded.js +251 -251
- package/dist/esm/RecentNews.js +17 -17
- package/dist/esm/RelatedContent.js +17 -17
- package/dist/esm/RelatedTopicsDropdown.js +11 -11
- package/dist/esm/RolesDeck.js +25 -25
- package/dist/esm/Search.js +7 -7
- package/dist/esm/SeriesListingDeck.js +20 -20
- package/dist/esm/{SeriesSlider-7d89f4d9.js → SeriesSlider-a866bb21.js} +24 -24
- package/dist/esm/SideFooter.js +19 -19
- package/dist/esm/SocialIcons.js +7 -7
- package/dist/esm/{SocialSearchComponent-47815365.js → SocialSearchComponent-03c3e869.js} +28 -28
- package/dist/esm/SocialShare.js +25 -25
- package/dist/esm/TaxonomyCard.js +50 -50
- package/dist/esm/TaxonomyDescription.js +16 -16
- package/dist/esm/TemplateNormal.js +31 -31
- package/dist/esm/ThumbnailCard.js +10 -10
- package/dist/esm/Ustream.js +18 -18
- package/dist/esm/VerticalHero.js +13 -13
- package/dist/esm/VideoProgramLandingPage.js +32 -32
- package/dist/esm/VideoSeriesCard.js +17 -17
- package/dist/esm/VideoSeriesFilter.js +6 -6
- package/dist/esm/VideoSeriesLandingPage.js +17 -17
- package/dist/esm/VideoSeriesListing.js +53 -53
- package/dist/esm/View.js +181 -181
- package/dist/esm/YahooHero.js +25 -25
- package/dist/esm/YoutubeGroup.js +35 -35
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-83f53e4e.js} +6 -7
- package/dist/esm/faundadb.js +1 -1
- package/dist/esm/getRelatedArticle.js +126 -62
- package/dist/esm/getSerializers.js +11 -11
- package/dist/esm/{index-f7fb1e25.js → index-41a678ea.js} +3 -3
- package/dist/esm/{index-6c12bdd5.js → index-5f7e79e7.js} +4 -4
- package/dist/esm/{index-51a80699.js → index-73819142.js} +19 -20
- package/dist/esm/{index-82fea143.js → index-a1c5f00a.js} +887 -908
- package/dist/esm/{index-c00b0bbb.js → index-ef6d5dcf.js} +17 -16
- package/dist/esm/{index.es-c6222053.js → index.es-29c1cef5.js} +10 -28
- package/dist/esm/{index.esm-3fdda599.js → index.esm-29e48d38.js} +15 -6
- package/dist/esm/{index.esm-a8ff922c.js → index.esm-cf08bf18.js} +12 -5
- package/dist/esm/{index.esm-c6715e80.js → index.esm-f8aaeeeb.js} +6 -3
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-fd746768.js} +18 -17
- package/dist/esm/index.js +49 -51
- package/dist/esm/inherits-77d5e4fc.js +101 -0
- package/dist/esm/{inherits-75d45541.js → inherits-cf8dde54.js} +1 -1
- package/dist/esm/{lodash-ec8c6b48.js → lodash-17fdfebb.js} +22 -71
- package/dist/esm/{main-747e7d25.js → main-e4a934b2.js} +52 -87
- package/dist/esm/{md5-4e42248e.js → md5-9be0e905.js} +1 -1
- package/dist/esm/{moment-b6f49411.js → moment-e2f9b20c.js} +8 -10
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-a7d5c5c7.js} +5 -5
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{typeof-af9c50d8.js → typeof-6435ba1c.js} +1 -1
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{visibility-sensor-f40c2564.js → visibility-sensor-72fd8f8b.js} +2 -2
- package/package.json +2 -1
- package/dist/cjs/ConferenceBanner-6c9e718a.js +0 -24
|
@@ -29,9 +29,20 @@ function parseString(setCookieValue, options) {
|
|
|
29
29
|
? Object.assign({}, defaultParseOptions, options)
|
|
30
30
|
: defaultParseOptions;
|
|
31
31
|
|
|
32
|
+
try {
|
|
33
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
34
|
+
} catch (e) {
|
|
35
|
+
console.error(
|
|
36
|
+
"set-cookie-parser encountered an error while decoding a cookie with value '" +
|
|
37
|
+
value +
|
|
38
|
+
"'. Set options.decodeValues to false to disable this feature.",
|
|
39
|
+
e
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
var cookie = {
|
|
33
44
|
name: name, // grab everything before the first =
|
|
34
|
-
value:
|
|
45
|
+
value: value,
|
|
35
46
|
};
|
|
36
47
|
|
|
37
48
|
parts.forEach(function (part) {
|
|
@@ -202,7 +213,7 @@ setCookie.parse = parse_1;
|
|
|
202
213
|
setCookie.parseString = parseString_1;
|
|
203
214
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
204
215
|
|
|
205
|
-
var
|
|
216
|
+
var utils = createCommonjsModule(function (module, exports) {
|
|
206
217
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
207
218
|
__assign = Object.assign || function(t) {
|
|
208
219
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -215,10 +226,33 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
215
226
|
return __assign.apply(this, arguments);
|
|
216
227
|
};
|
|
217
228
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
218
|
-
exports.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
230
|
+
/**
|
|
231
|
+
* Tells whether we are in a browser or server.
|
|
232
|
+
*/
|
|
233
|
+
function isBrowser() {
|
|
234
|
+
return typeof window !== 'undefined';
|
|
235
|
+
}
|
|
236
|
+
exports.isBrowser = isBrowser;
|
|
237
|
+
/**
|
|
238
|
+
* Create an instance of the Cookie interface
|
|
239
|
+
*/
|
|
240
|
+
function createCookie(name, value, options) {
|
|
241
|
+
var sameSite = options.sameSite;
|
|
242
|
+
if (sameSite === true) {
|
|
243
|
+
sameSite = 'strict';
|
|
244
|
+
}
|
|
245
|
+
if (sameSite === undefined || sameSite === false) {
|
|
246
|
+
sameSite = 'lax';
|
|
247
|
+
}
|
|
248
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
249
|
+
delete cookieToSet.encode;
|
|
250
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
251
|
+
}
|
|
252
|
+
exports.createCookie = createCookie;
|
|
253
|
+
/**
|
|
254
|
+
* Tells whether given objects have the same properties.
|
|
255
|
+
*/
|
|
222
256
|
function hasSameProperties(a, b) {
|
|
223
257
|
var aProps = Object.getOwnPropertyNames(a);
|
|
224
258
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -233,8 +267,9 @@ function hasSameProperties(a, b) {
|
|
|
233
267
|
}
|
|
234
268
|
return true;
|
|
235
269
|
}
|
|
270
|
+
exports.hasSameProperties = hasSameProperties;
|
|
236
271
|
/**
|
|
237
|
-
* Compare the cookie and return true if the cookies
|
|
272
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
238
273
|
* options and the cookies would be overwritten in the browser storage.
|
|
239
274
|
*
|
|
240
275
|
* @param a first Cookie for comparison
|
|
@@ -247,71 +282,109 @@ function areCookiesEqual(a, b) {
|
|
|
247
282
|
}
|
|
248
283
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
249
284
|
}
|
|
285
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
286
|
+
/* Functions */
|
|
287
|
+
|
|
288
|
+
});
|
|
289
|
+
|
|
290
|
+
unwrapExports(utils);
|
|
291
|
+
var utils_1 = utils.areCookiesEqual;
|
|
292
|
+
var utils_2 = utils.hasSameProperties;
|
|
293
|
+
var utils_3 = utils.createCookie;
|
|
294
|
+
var utils_4 = utils.isBrowser;
|
|
295
|
+
|
|
296
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
297
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
298
|
+
__assign = Object.assign || function(t) {
|
|
299
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
300
|
+
s = arguments[i];
|
|
301
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
302
|
+
t[p] = s[p];
|
|
303
|
+
}
|
|
304
|
+
return t;
|
|
305
|
+
};
|
|
306
|
+
return __assign.apply(this, arguments);
|
|
307
|
+
};
|
|
308
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
309
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
250
313
|
/**
|
|
251
|
-
* Create an instance of the Cookie interface
|
|
252
|
-
*
|
|
253
|
-
* @param name name of the Cookie
|
|
254
|
-
* @param value value of the Cookie
|
|
255
|
-
* @param options Cookie options
|
|
256
|
-
*/
|
|
257
|
-
function createCookie(name, value, options) {
|
|
258
|
-
var sameSite = options.sameSite;
|
|
259
|
-
if (sameSite === true) {
|
|
260
|
-
sameSite = 'strict';
|
|
261
|
-
}
|
|
262
|
-
if (sameSite === undefined || sameSite === false) {
|
|
263
|
-
sameSite = 'lax';
|
|
264
|
-
}
|
|
265
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
266
|
-
delete cookieToSet.encode;
|
|
267
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
314
|
* Parses cookies.
|
|
272
315
|
*
|
|
273
|
-
* @param ctx
|
|
274
|
-
* @param options
|
|
316
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
317
|
+
* @param options Options that we pass down to `cookie` library.
|
|
275
318
|
*/
|
|
276
319
|
function parseCookies(ctx, options) {
|
|
277
|
-
|
|
320
|
+
var _a, _b;
|
|
321
|
+
if ((_b = (_a = ctx === null || ctx === void 0 ? void 0 : ctx.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.cookie) {
|
|
278
322
|
return cookie.parse(ctx.req.headers.cookie, options);
|
|
279
323
|
}
|
|
280
|
-
if (isBrowser()) {
|
|
324
|
+
if (utils.isBrowser()) {
|
|
281
325
|
return cookie.parse(document.cookie, options);
|
|
282
326
|
}
|
|
283
327
|
return {};
|
|
284
328
|
}
|
|
285
329
|
exports.parseCookies = parseCookies;
|
|
286
330
|
/**
|
|
287
|
-
*
|
|
288
331
|
* Sets a cookie.
|
|
289
332
|
*
|
|
290
|
-
* @param ctx
|
|
291
|
-
* @param name
|
|
292
|
-
* @param value
|
|
293
|
-
* @param options
|
|
333
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
334
|
+
* @param name The name of your cookie.
|
|
335
|
+
* @param value The value of your cookie.
|
|
336
|
+
* @param options Options that we pass down to `cookie` library.
|
|
294
337
|
*/
|
|
295
338
|
function setCookie$1(ctx, name, value, options) {
|
|
296
|
-
|
|
339
|
+
var _a, _b;
|
|
340
|
+
if (options === void 0) { options = {}; }
|
|
341
|
+
// SSR
|
|
342
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
343
|
+
// Check if response has finished and warn about it.
|
|
344
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
345
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
346
|
+
console.warn("You should set cookie before res.send()");
|
|
347
|
+
return {};
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Load existing cookies from the header and parse them.
|
|
351
|
+
*/
|
|
297
352
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
298
353
|
if (typeof cookies === 'string')
|
|
299
354
|
cookies = [cookies];
|
|
300
355
|
if (typeof cookies === 'number')
|
|
301
356
|
cookies = [];
|
|
302
|
-
|
|
357
|
+
/**
|
|
358
|
+
* Parse cookies but ignore values - we've already encoded
|
|
359
|
+
* them in the previous call.
|
|
360
|
+
*/
|
|
361
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
362
|
+
decodeValues: false,
|
|
363
|
+
});
|
|
364
|
+
/**
|
|
365
|
+
* We create the new cookie and make sure that none of
|
|
366
|
+
* the existing cookies match it.
|
|
367
|
+
*/
|
|
368
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
303
369
|
var cookiesToSet_1 = [];
|
|
304
370
|
parsedCookies.forEach(function (parsedCookie) {
|
|
305
|
-
if (!areCookiesEqual(parsedCookie,
|
|
306
|
-
|
|
371
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
372
|
+
/**
|
|
373
|
+
* We serialize the cookie back to the original format
|
|
374
|
+
* if it isn't the same as the new one.
|
|
375
|
+
*/
|
|
376
|
+
var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
377
|
+
// we prevent reencoding by default, but you might override it
|
|
378
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
379
|
+
cookiesToSet_1.push(serializedCookie);
|
|
307
380
|
}
|
|
308
381
|
});
|
|
309
382
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
}
|
|
383
|
+
// Update the header.
|
|
384
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
313
385
|
}
|
|
314
|
-
|
|
386
|
+
// Browser
|
|
387
|
+
if (utils.isBrowser()) {
|
|
315
388
|
if (options && options.httpOnly) {
|
|
316
389
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
317
390
|
}
|
|
@@ -321,30 +394,21 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
321
394
|
}
|
|
322
395
|
exports.setCookie = setCookie$1;
|
|
323
396
|
/**
|
|
324
|
-
*
|
|
325
397
|
* Destroys a cookie with a particular name.
|
|
326
398
|
*
|
|
327
|
-
* @param ctx
|
|
328
|
-
* @param name
|
|
329
|
-
* @param options
|
|
399
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
400
|
+
* @param name Cookie name.
|
|
401
|
+
* @param options Options that we pass down to `cookie` library.
|
|
330
402
|
*/
|
|
331
403
|
function destroyCookie(ctx, name, options) {
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
if (typeof cookies === 'number')
|
|
338
|
-
cookies = [];
|
|
339
|
-
cookies.push(cookie.serialize(name, '', opts));
|
|
340
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
341
|
-
}
|
|
342
|
-
if (isBrowser()) {
|
|
343
|
-
document.cookie = cookie.serialize(name, '', opts);
|
|
344
|
-
}
|
|
345
|
-
return {};
|
|
404
|
+
/**
|
|
405
|
+
* We forward the request destroy to setCookie function
|
|
406
|
+
* as it is the same function with modified maxAge value.
|
|
407
|
+
*/
|
|
408
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
346
409
|
}
|
|
347
410
|
exports.destroyCookie = destroyCookie;
|
|
411
|
+
/* Utility Exports */
|
|
348
412
|
exports.default = {
|
|
349
413
|
set: setCookie$1,
|
|
350
414
|
get: parseCookies,
|
|
@@ -8,27 +8,27 @@ import './core.get-iterator-method-e1de7503.js';
|
|
|
8
8
|
import './_object-pie-33c40e79.js';
|
|
9
9
|
import './extends-6f2fcc99.js';
|
|
10
10
|
import './_object-sap-964b6feb.js';
|
|
11
|
-
import './inherits-
|
|
11
|
+
import './inherits-cf8dde54.js';
|
|
12
12
|
import './define-property-8af5f002.js';
|
|
13
13
|
import './web.dom.iterable-4439f05a.js';
|
|
14
|
-
import './typeof-
|
|
14
|
+
import './typeof-6435ba1c.js';
|
|
15
15
|
import './_is-array-58e95429.js';
|
|
16
16
|
import 'react';
|
|
17
17
|
import './events-6c3a7a63.js';
|
|
18
|
-
import './index-
|
|
18
|
+
import './index-41a678ea.js';
|
|
19
19
|
import 'prop-types';
|
|
20
20
|
import 'react-bootstrap/Row';
|
|
21
21
|
import 'react-bootstrap/Col';
|
|
22
|
-
import './moment-
|
|
22
|
+
import './moment-e2f9b20c.js';
|
|
23
23
|
import 'next/router';
|
|
24
24
|
import './isSymbol-1981418f.js';
|
|
25
25
|
import './debounce-9207d8ee.js';
|
|
26
26
|
import './toNumber-2f7a84cd.js';
|
|
27
27
|
import 'react-dom';
|
|
28
|
-
import './index-
|
|
28
|
+
import './index-73819142.js';
|
|
29
29
|
import './urlFor.js';
|
|
30
|
-
import './index-
|
|
31
|
-
import './main-
|
|
30
|
+
import './index-5f7e79e7.js';
|
|
31
|
+
import './main-e4a934b2.js';
|
|
32
32
|
import './entities-7cc3bf45.js';
|
|
33
33
|
import './slicedToArray-641f241f.js';
|
|
34
34
|
import './stringify-4330ccdc.js';
|
|
@@ -37,16 +37,16 @@ import './Segment.js';
|
|
|
37
37
|
import './Beam.js';
|
|
38
38
|
import './AdSlot.js';
|
|
39
39
|
import 'react-bootstrap/Button';
|
|
40
|
-
import './BlockContent-
|
|
40
|
+
import './BlockContent-e9b4ddcf.js';
|
|
41
41
|
import './index-c7e2ac95.js';
|
|
42
42
|
import './smoothscroll-0cd4c7a6.js';
|
|
43
43
|
import './GroupDeck.js';
|
|
44
44
|
import 'react-bootstrap';
|
|
45
45
|
import './iconBase-602d52fe.js';
|
|
46
|
-
import './index.esm-
|
|
47
|
-
export { g as default } from './index-
|
|
46
|
+
import './index.esm-29e48d38.js';
|
|
47
|
+
export { g as default } from './index-a1c5f00a.js';
|
|
48
48
|
import './util-7700fc59.js';
|
|
49
|
-
import './brightcove-react-player-loader.es-
|
|
49
|
+
import './brightcove-react-player-loader.es-83f53e4e.js';
|
|
50
50
|
import 'next/head';
|
|
51
51
|
import 'react-share';
|
|
52
52
|
import './SocialShare.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import { E as EventEmitter } from './events-6c3a7a63.js';
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
|
|
@@ -575,7 +575,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
575
575
|
});
|
|
576
576
|
exports.default = exports.Context = void 0;
|
|
577
577
|
|
|
578
|
-
var _react = _interopRequireDefault(
|
|
578
|
+
var _react = _interopRequireDefault(React__default);
|
|
579
579
|
|
|
580
580
|
var _propTypes = _interopRequireDefault(PropTypes);
|
|
581
581
|
|
|
@@ -889,7 +889,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
889
889
|
});
|
|
890
890
|
exports.default = exports.AdSlot = void 0;
|
|
891
891
|
|
|
892
|
-
var _react = _interopRequireDefault(
|
|
892
|
+
var _react = _interopRequireDefault(React__default);
|
|
893
893
|
|
|
894
894
|
var _propTypes = _interopRequireDefault(PropTypes);
|
|
895
895
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as createCommonjsModule, u as unwrapExports } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import
|
|
2
|
+
import React__default from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
|
|
@@ -179,7 +179,7 @@ var _createClass = function () { function defineProperties(target, props) { for
|
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
|
|
182
|
-
var _react2 = _interopRequireDefault(
|
|
182
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
|
|
@@ -530,7 +530,7 @@ var LazyLoad = function (_Component) {
|
|
|
530
530
|
}]);
|
|
531
531
|
|
|
532
532
|
return LazyLoad;
|
|
533
|
-
}(
|
|
533
|
+
}(React__default.Component);
|
|
534
534
|
|
|
535
535
|
LazyLoad.propTypes = {
|
|
536
536
|
once: _propTypes2.default.bool,
|
|
@@ -587,7 +587,7 @@ var decorator = function decorator() {
|
|
|
587
587
|
}]);
|
|
588
588
|
|
|
589
589
|
return LazyLoadDecorated;
|
|
590
|
-
}(
|
|
590
|
+
}(React__default.Component);
|
|
591
591
|
};
|
|
592
592
|
};
|
|
593
593
|
|
|
@@ -58,35 +58,35 @@ function parseSource(source) {
|
|
|
58
58
|
if (typeof source === 'string' && isUrl(source)) {
|
|
59
59
|
// Someone passed an existing image url?
|
|
60
60
|
image = {
|
|
61
|
-
asset: { _ref: urlToId(source) }
|
|
61
|
+
asset: { _ref: urlToId(source) }
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
else if (typeof source === 'string') {
|
|
65
65
|
// Just an asset id
|
|
66
66
|
image = {
|
|
67
|
-
asset: { _ref: source }
|
|
67
|
+
asset: { _ref: source }
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
70
|
else if (isRef(source)) {
|
|
71
71
|
// We just got passed an asset directly
|
|
72
72
|
image = {
|
|
73
|
-
asset: source
|
|
73
|
+
asset: source
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
else if (isAsset(source)) {
|
|
77
77
|
// If we were passed an image asset document
|
|
78
78
|
image = {
|
|
79
79
|
asset: {
|
|
80
|
-
_ref: source._id || ''
|
|
81
|
-
}
|
|
80
|
+
_ref: source._id || ''
|
|
81
|
+
}
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
else if (isAssetStub(source)) {
|
|
85
85
|
// If we were passed a partial asset (`url`, but no `_id`)
|
|
86
86
|
image = {
|
|
87
87
|
asset: {
|
|
88
|
-
_ref: urlToId(source.asset.url)
|
|
89
|
-
}
|
|
88
|
+
_ref: urlToId(source.asset.url)
|
|
89
|
+
}
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
else if (typeof source.asset === 'object') {
|
|
@@ -127,7 +127,7 @@ function applyDefaults(image) {
|
|
|
127
127
|
left: 0,
|
|
128
128
|
top: 0,
|
|
129
129
|
bottom: 0,
|
|
130
|
-
right: 0
|
|
130
|
+
right: 0
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
133
|
if (!result.hotspot) {
|
|
@@ -135,7 +135,7 @@ function applyDefaults(image) {
|
|
|
135
135
|
x: 0.5,
|
|
136
136
|
y: 0.5,
|
|
137
137
|
height: 1.0,
|
|
138
|
-
width: 1.0
|
|
138
|
+
width: 1.0
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return result;
|
|
@@ -182,7 +182,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
182
182
|
['crop', 'crop'],
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
|
-
['dpr', 'dpr']
|
|
185
|
+
['dpr', 'dpr']
|
|
186
186
|
];
|
|
187
187
|
function urlForImage(options) {
|
|
188
188
|
var spec = __assign({}, (options || {}));
|
|
@@ -201,7 +201,7 @@ function urlForImage(options) {
|
|
|
201
201
|
left: cropLeft,
|
|
202
202
|
top: cropTop,
|
|
203
203
|
width: Math.round(asset.width - image.crop.right * asset.width - cropLeft),
|
|
204
|
-
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
204
|
+
height: Math.round(asset.height - image.crop.bottom * asset.height - cropTop)
|
|
205
205
|
};
|
|
206
206
|
// Compute hot spot rect in terms of pixel coordinates
|
|
207
207
|
var hotSpotVerticalRadius = (image.hotspot.height * asset.height) / 2;
|
|
@@ -212,7 +212,7 @@ function urlForImage(options) {
|
|
|
212
212
|
left: hotSpotCenterX - hotSpotHorizontalRadius,
|
|
213
213
|
top: hotSpotCenterY - hotSpotVerticalRadius,
|
|
214
214
|
right: hotSpotCenterX + hotSpotHorizontalRadius,
|
|
215
|
-
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
215
|
+
bottom: hotSpotCenterY + hotSpotVerticalRadius
|
|
216
216
|
};
|
|
217
217
|
// If irrelevant, or if we are requested to: don't perform crop/fit based on
|
|
218
218
|
// the crop/hotspot.
|
|
@@ -294,7 +294,7 @@ function fit(source, spec) {
|
|
|
294
294
|
left: Math.round(left),
|
|
295
295
|
top: Math.round(top_2),
|
|
296
296
|
width: Math.round(width),
|
|
297
|
-
height: Math.round(height)
|
|
297
|
+
height: Math.round(height)
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
else {
|
|
@@ -316,13 +316,13 @@ function fit(source, spec) {
|
|
|
316
316
|
left: Math.max(0, Math.floor(left)),
|
|
317
317
|
top: Math.max(0, Math.floor(top_3)),
|
|
318
318
|
width: Math.round(width),
|
|
319
|
-
height: Math.round(height)
|
|
319
|
+
height: Math.round(height)
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
322
|
return {
|
|
323
323
|
width: imgWidth,
|
|
324
324
|
height: imgHeight,
|
|
325
|
-
rect: cropRect
|
|
325
|
+
rect: cropRect
|
|
326
326
|
};
|
|
327
327
|
}
|
|
328
328
|
|
|
@@ -375,12 +375,11 @@ function urlBuilder(options) {
|
|
|
375
375
|
var client = options;
|
|
376
376
|
if (isSanityClient(client)) {
|
|
377
377
|
// Inherit config from client
|
|
378
|
-
var _a = client.clientConfig,
|
|
379
|
-
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
378
|
+
var _a = client.clientConfig, apiHost = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
380
379
|
return new ImageUrlBuilder(null, {
|
|
381
380
|
baseUrl: apiHost.replace(/^https:\/\/api\./, 'https://cdn.'),
|
|
382
381
|
projectId: projectId,
|
|
383
|
-
dataset: dataset
|
|
382
|
+
dataset: dataset
|
|
384
383
|
});
|
|
385
384
|
}
|
|
386
385
|
// Or just accept the options as given
|
|
@@ -393,7 +392,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
393
392
|
? __assign(__assign({}, (parent.options || {})), (options || {})) : __assign({}, (options || {})); // Copy options
|
|
394
393
|
}
|
|
395
394
|
ImageUrlBuilder.prototype.withOptions = function (options) {
|
|
396
|
-
var baseUrl = options.baseUrl ||
|
|
395
|
+
var baseUrl = options.baseUrl || '';
|
|
397
396
|
var newOptions = { baseUrl: baseUrl };
|
|
398
397
|
for (var key in options) {
|
|
399
398
|
if (options.hasOwnProperty(key)) {
|
|
@@ -521,7 +520,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
521
520
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
521
|
return urlForImage_1$1.default(this.options);
|
|
523
522
|
};
|
|
524
|
-
//
|
|
523
|
+
// Synonym for url()
|
|
525
524
|
ImageUrlBuilder.prototype.toString = function () {
|
|
526
525
|
return this.url();
|
|
527
526
|
};
|