@mjhls/mjh-framework 1.0.711-cors-proxy-v2 → 1.0.712
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 +1 -1
- package/dist/cjs/AD300x250.js +17 -17
- package/dist/cjs/AD300x250x600.js +17 -17
- package/dist/cjs/AD728x90.js +19 -19
- package/dist/cjs/ADFloatingFooter.js +17 -17
- package/dist/cjs/ADFooter.js +6 -6
- package/dist/cjs/ADGutter.js +17 -17
- package/dist/cjs/{ADInfeed-71e2533d.js → ADInfeed-2c7a6dd8.js} +2 -2
- package/dist/cjs/ADSkyscraper.js +17 -17
- package/dist/cjs/ADSponsoredResources.js +17 -17
- package/dist/cjs/ADWebcast.js +17 -17
- package/dist/cjs/ADWelcome.js +17 -17
- package/dist/cjs/{ADlgInfeed-2c6a814f.js → ADlgInfeed-fb101797.js} +2 -2
- package/dist/cjs/AccordionPanel.js +8 -8
- package/dist/cjs/AdSlot.js +20 -20
- package/dist/cjs/AdSlotsProvider.js +3 -3
- package/dist/cjs/AlphabeticList.js +9 -9
- package/dist/cjs/ArticleCarousel.js +16 -16
- package/dist/cjs/ArticleSeriesListing.js +28 -28
- package/dist/cjs/Auth.js +611 -213
- package/dist/cjs/{AuthorComponent-ac8972ce.js → AuthorComponent-5fa89df5.js} +1 -1
- package/dist/cjs/Beam.js +9 -9
- package/dist/cjs/{BlockContent-8b494587.js → BlockContent-eca358e4.js} +1 -1
- package/dist/cjs/Breadcrumbs.js +8 -8
- package/dist/cjs/BrowseVideosListing.js +18 -18
- package/dist/cjs/CMEDeck.js +24 -27
- package/dist/cjs/Column2.js +16 -16
- package/dist/cjs/Column3.js +29 -29
- package/dist/cjs/ConferenceArticleCard.js +7 -7
- package/dist/cjs/DeckContent.js +31 -31
- package/dist/cjs/DeckQueue.js +25 -25
- package/dist/cjs/{Dfp-234d2d8e.js → Dfp-a863cf48.js} +12 -12
- package/dist/cjs/EventsDeck.js +22 -22
- package/dist/cjs/ExternalResources.js +42 -42
- package/dist/cjs/Feature.js +3 -3
- package/dist/cjs/ForbesHero.js +11 -11
- package/dist/cjs/GridContent.js +40 -40
- package/dist/cjs/GridHero.js +12 -12
- package/dist/cjs/GroupDeck.js +12 -12
- package/dist/cjs/HamMagazine.js +24 -24
- package/dist/cjs/Hero.js +3 -3
- package/dist/cjs/HighlightenVideo.js +2 -2
- package/dist/cjs/HorizontalHero.js +4 -4
- package/dist/cjs/IssueContentDeck.js +12 -12
- package/dist/cjs/IssueDeck.js +15 -15
- package/dist/cjs/IssueLanding.js +33 -33
- package/dist/cjs/LeftNav.js +19 -19
- package/dist/cjs/MasterDeck.js +31 -31
- package/dist/cjs/NavDvm.js +14 -14
- package/dist/cjs/NavMagazine.js +29 -29
- package/dist/cjs/NavNative.js +24 -24
- package/dist/cjs/NavNormal.js +15 -15
- package/dist/cjs/OncliveHero.js +4 -4
- package/dist/cjs/OncliveLargeHero.js +12 -12
- package/dist/cjs/PageFilter.js +6 -6
- package/dist/cjs/PartnerDetailListing.js +53 -53
- package/dist/cjs/PdfDownload.js +1 -1
- package/dist/cjs/PopUpModal.js +6 -6
- package/dist/cjs/PublicationDeck.js +7 -7
- package/dist/cjs/PublicationLanding.js +17 -17
- package/dist/cjs/QueueDeckExpanded.js +33 -33
- package/dist/cjs/RecentNews.js +5 -5
- package/dist/cjs/RelatedContent.js +6 -6
- package/dist/cjs/Search.js +8 -8
- package/dist/cjs/Segment.js +7 -7
- package/dist/cjs/SetCookie.js +1 -1
- package/dist/cjs/SideFooter.js +14 -14
- package/dist/cjs/{SocialSearchComponent-87578cd1.js → SocialSearchComponent-45c54bed.js} +6 -6
- package/dist/cjs/TaxonomyCard.js +9 -9
- package/dist/cjs/TaxonomyDescription.js +41 -41
- package/dist/cjs/TemplateNormal.js +44 -44
- package/dist/cjs/ThumbnailCard.js +6 -6
- package/dist/cjs/Ustream.js +8 -8
- package/dist/cjs/VerticalHero.js +3 -3
- package/dist/cjs/VideoSeriesCard.js +12 -12
- package/dist/cjs/VideoSeriesFilter.js +10 -10
- package/dist/cjs/VideoSeriesListing.js +28 -28
- package/dist/cjs/View.js +69 -70
- package/dist/cjs/YahooHero.js +14 -14
- package/dist/cjs/YoutubeGroup.js +15 -15
- package/dist/cjs/{_is-array-754e012d.js → _is-array-63ae4740.js} +6 -6
- package/dist/cjs/{_iter-detect-60b2f026.js → _iter-detect-2613ffa1.js} +2 -2
- package/dist/cjs/{_object-sap-5e74ba08.js → _object-sap-c5bd707d.js} +1 -1
- package/dist/cjs/{_set-species-f92c67c5.js → _set-species-a8cfdb84.js} +4 -4
- package/dist/cjs/{_to-object-329a650b.js → _to-object-821a2927.js} +4 -4
- package/dist/cjs/{asyncToGenerator-533d476a.js → asyncToGenerator-2edcb6ad.js} +8 -8
- package/dist/cjs/{core.get-iterator-method-f62321d4.js → core.get-iterator-method-b4615fd3.js} +2 -2
- package/dist/cjs/{define-property-f4d12f4e.js → define-property-aff11f8a.js} +1 -1
- package/dist/cjs/{defineProperty-55548b25.js → defineProperty-d6fbb280.js} +1 -1
- package/dist/cjs/{entities-310b46ee.js → entities-3f9d0f2f.js} +1 -1
- package/dist/cjs/{es6.string.iterator-cc0bbaa4.js → es6.string.iterator-20d42c53.js} +2 -2
- package/dist/cjs/{extends-60837c34.js → extends-1e24fc8d.js} +1 -1
- package/dist/cjs/getRelatedArticle.js +133 -71
- package/dist/cjs/getSerializers.js +41 -41
- package/dist/cjs/{getTargeting-fee8c429.js → getTargeting-497b581d.js} +2 -2
- package/dist/cjs/getTargeting.js +7 -7
- package/dist/cjs/{index-6367b7bf.js → index-4d74ffd6.js} +31 -31
- package/dist/cjs/{index-e08f00ce.js → index-5ad2b070.js} +21 -40
- package/dist/cjs/{index-8a3fb0bc.js → index-80f57cff.js} +7 -7
- package/dist/cjs/{index-ad961307.js → index-bb09dc7c.js} +83 -83
- package/dist/cjs/{index-b5eb3ff8.js → index-d48b231c.js} +11 -6
- package/dist/cjs/{index.esm-3ffa049c.js → index.esm-8123cf40.js} +1 -1
- package/dist/cjs/index.js +124 -124
- package/dist/cjs/{inherits-87492b40.js → inherits-2eb23889.js} +5 -5
- package/dist/cjs/{keys-a586b7a0.js → keys-95c064c9.js} +2 -2
- package/dist/cjs/{lodash-7fd85bcf.js → lodash-4ef21f0f.js} +1 -1
- package/dist/cjs/{main-7b5e57b0.js → main-dc082238.js} +51 -51
- package/dist/cjs/{moment-ca3bd9fb.js → moment-aca40de1.js} +1 -1
- package/dist/cjs/{react-social-icons-07939b41.js → react-social-icons-af932527.js} +17 -17
- package/dist/cjs/{slicedToArray-8f385299.js → slicedToArray-db24842a.js} +4 -4
- package/dist/cjs/{smoothscroll-95231a70.js → smoothscroll-1abb448e.js} +1 -1
- package/dist/cjs/{stringify-7c5aff47.js → stringify-01cf47f7.js} +1 -1
- package/dist/cjs/timeDifferenceCalc.js +1 -1
- package/dist/cjs/{toConsumableArray-9a3476fe.js → toConsumableArray-cf0865fc.js} +4 -4
- package/dist/cjs/{typeof-9d7f610f.js → typeof-97065d40.js} +6 -6
- package/dist/cjs/urlFor.js +1 -1
- package/dist/cjs/{util-f2c1b65b.js → util-6f784d85.js} +1 -1
- package/dist/cjs/{web.dom.iterable-a0e279c1.js → web.dom.iterable-4480325a.js} +3 -3
- package/dist/esm/AD.js +1 -1
- package/dist/esm/AD300x250.js +17 -17
- package/dist/esm/AD300x250x600.js +17 -17
- package/dist/esm/AD728x90.js +19 -19
- package/dist/esm/ADFloatingFooter.js +17 -17
- package/dist/esm/ADFooter.js +6 -6
- package/dist/esm/ADGutter.js +17 -17
- package/dist/esm/{ADInfeed-73a22dad.js → ADInfeed-a9a35a5c.js} +2 -2
- package/dist/esm/ADSkyscraper.js +17 -17
- package/dist/esm/ADSponsoredResources.js +17 -17
- package/dist/esm/ADWebcast.js +17 -17
- package/dist/esm/ADWelcome.js +17 -17
- package/dist/esm/{ADlgInfeed-e5c107b7.js → ADlgInfeed-ce2e0e3a.js} +2 -2
- package/dist/esm/AccordionPanel.js +8 -8
- package/dist/esm/AdSlot.js +20 -20
- package/dist/esm/AdSlotsProvider.js +3 -3
- package/dist/esm/AlphabeticList.js +9 -9
- package/dist/esm/ArticleCarousel.js +16 -16
- package/dist/esm/ArticleSeriesListing.js +28 -28
- package/dist/esm/Auth.js +611 -213
- package/dist/esm/{AuthorComponent-23afa074.js → AuthorComponent-c29a0075.js} +1 -1
- package/dist/esm/Beam.js +9 -9
- package/dist/esm/{BlockContent-d05b5b23.js → BlockContent-d8cd739c.js} +1 -1
- package/dist/esm/Breadcrumbs.js +7 -7
- package/dist/esm/BrowseVideosListing.js +18 -18
- package/dist/esm/CMEDeck.js +24 -27
- package/dist/esm/Column2.js +16 -16
- package/dist/esm/Column3.js +29 -29
- package/dist/esm/ConferenceArticleCard.js +7 -7
- package/dist/esm/DeckContent.js +31 -31
- package/dist/esm/DeckQueue.js +25 -25
- package/dist/esm/{Dfp-f9463b48.js → Dfp-db06d7dc.js} +12 -12
- package/dist/esm/EventsDeck.js +20 -20
- package/dist/esm/ExternalResources.js +42 -42
- package/dist/esm/Feature.js +3 -3
- package/dist/esm/ForbesHero.js +11 -11
- package/dist/esm/GridContent.js +40 -40
- package/dist/esm/GridHero.js +12 -12
- package/dist/esm/GroupDeck.js +12 -12
- package/dist/esm/HamMagazine.js +24 -24
- package/dist/esm/Hero.js +3 -3
- package/dist/esm/HighlightenVideo.js +2 -2
- package/dist/esm/HorizontalHero.js +4 -4
- package/dist/esm/IssueContentDeck.js +12 -12
- package/dist/esm/IssueDeck.js +14 -14
- package/dist/esm/IssueLanding.js +33 -33
- package/dist/esm/LeftNav.js +19 -19
- package/dist/esm/MasterDeck.js +31 -31
- package/dist/esm/NavDvm.js +14 -14
- package/dist/esm/NavMagazine.js +29 -29
- package/dist/esm/NavNative.js +22 -22
- package/dist/esm/NavNormal.js +15 -15
- package/dist/esm/OncliveHero.js +4 -4
- package/dist/esm/OncliveLargeHero.js +12 -12
- package/dist/esm/PageFilter.js +6 -6
- package/dist/esm/PartnerDetailListing.js +53 -53
- package/dist/esm/PdfDownload.js +1 -1
- package/dist/esm/PopUpModal.js +6 -6
- package/dist/esm/PublicationDeck.js +6 -6
- package/dist/esm/PublicationLanding.js +16 -16
- package/dist/esm/QueueDeckExpanded.js +33 -33
- package/dist/esm/RecentNews.js +5 -5
- package/dist/esm/RelatedContent.js +6 -6
- package/dist/esm/Search.js +7 -7
- package/dist/esm/Segment.js +7 -7
- package/dist/esm/SetCookie.js +1 -1
- package/dist/esm/SideFooter.js +14 -14
- package/dist/esm/{SocialSearchComponent-91c19daa.js → SocialSearchComponent-fab3e851.js} +5 -5
- package/dist/esm/TaxonomyCard.js +9 -9
- package/dist/esm/TaxonomyDescription.js +41 -41
- package/dist/esm/TemplateNormal.js +44 -44
- package/dist/esm/ThumbnailCard.js +6 -6
- package/dist/esm/Ustream.js +8 -8
- package/dist/esm/VerticalHero.js +3 -3
- package/dist/esm/VideoSeriesCard.js +12 -12
- package/dist/esm/VideoSeriesFilter.js +10 -10
- package/dist/esm/VideoSeriesListing.js +28 -28
- package/dist/esm/View.js +67 -68
- package/dist/esm/YahooHero.js +14 -14
- package/dist/esm/YoutubeGroup.js +15 -15
- package/dist/esm/{_is-array-49698029.js → _is-array-9383b394.js} +6 -6
- package/dist/esm/{_iter-detect-59409a32.js → _iter-detect-d4d262ee.js} +2 -2
- package/dist/esm/{_object-sap-4d59d5bd.js → _object-sap-6a003379.js} +1 -1
- package/dist/esm/{_set-species-cede29f8.js → _set-species-0b056cff.js} +4 -4
- package/dist/esm/{_to-object-ded78eb9.js → _to-object-9bef3b62.js} +5 -5
- package/dist/esm/{asyncToGenerator-7c654f36.js → asyncToGenerator-acd1cc47.js} +8 -8
- package/dist/esm/{core.get-iterator-method-54d2e411.js → core.get-iterator-method-1b116089.js} +2 -2
- package/dist/esm/{define-property-de3fc946.js → define-property-9a008401.js} +1 -1
- package/dist/esm/{defineProperty-b798470d.js → defineProperty-ddd52c29.js} +1 -1
- package/dist/esm/{entities-7cc3bf45.js → entities-932b50cf.js} +1 -1
- package/dist/esm/{es6.string.iterator-9b2af4a5.js → es6.string.iterator-b24a54f2.js} +3 -3
- package/dist/esm/{extends-cc5da797.js → extends-c2b1c9d7.js} +1 -1
- package/dist/esm/getRelatedArticle.js +133 -71
- package/dist/esm/getSerializers.js +41 -41
- package/dist/esm/{getTargeting-2acdec91.js → getTargeting-b1a7be54.js} +2 -2
- package/dist/esm/getTargeting.js +7 -7
- package/dist/esm/{index-51a80699.js → index-3f5c03b2.js} +11 -6
- package/dist/esm/{index-1a7c57c9.js → index-48a08226.js} +80 -80
- package/dist/esm/{index-acfb8079.js → index-669ff425.js} +21 -40
- package/dist/esm/{index-c5fd0af5.js → index-752d1dae.js} +6 -6
- package/dist/esm/{index-c00b0bbb.js → index-ccb770c7.js} +31 -31
- package/dist/esm/{index.esm-8ee5ff72.js → index.esm-8016b507.js} +1 -1
- package/dist/esm/index.js +105 -105
- package/dist/esm/{inherits-596840e8.js → inherits-18d4a779.js} +5 -5
- package/dist/esm/{keys-fc2d4c34.js → keys-9bb7939c.js} +2 -2
- package/dist/esm/{lodash-ec8c6b48.js → lodash-ad27652f.js} +1 -1
- package/dist/esm/{main-747e7d25.js → main-1450d277.js} +51 -51
- package/dist/esm/{moment-b6f49411.js → moment-bc12cb97.js} +1 -1
- package/dist/esm/{react-social-icons-3822f1ce.js → react-social-icons-91f9716f.js} +16 -16
- package/dist/esm/{slicedToArray-7021e5df.js → slicedToArray-34468155.js} +4 -4
- package/dist/esm/{smoothscroll-4b699764.js → smoothscroll-ab6e0238.js} +1 -1
- package/dist/esm/{stringify-008c8802.js → stringify-8a4f19f7.js} +1 -1
- package/dist/esm/timeDifferenceCalc.js +1 -1
- package/dist/esm/{toConsumableArray-725434a0.js → toConsumableArray-5212fee7.js} +4 -4
- package/dist/esm/{typeof-ee095d0c.js → typeof-64422756.js} +6 -6
- package/dist/esm/urlFor.js +1 -1
- package/dist/esm/{util-7700fc59.js → util-3ab476bf.js} +1 -1
- package/dist/esm/{web.dom.iterable-8956f9a5.js → web.dom.iterable-ca37144a.js} +3 -3
- package/package.json +1 -1
- package/dist/cjs/{brightcove-react-player-loader.es-5c98aec7.js → brightcove-react-player-loader.es-a195642e.js} +1 -1
- package/dist/esm/{brightcove-react-player-loader.es-4abff0b1.js → brightcove-react-player-loader.es-b43c695a.js} +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-acd1cc47.js';
|
|
1
2
|
import { c as createCommonjsModule, u as unwrapExports, a as commonjsGlobal } from './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-ded78eb9.js';
|
|
3
|
-
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-59409a32.js';
|
|
6
|
-
import './core.get-iterator-method-54d2e411.js';
|
|
7
|
-
import './web.dom.iterable-8956f9a5.js';
|
|
8
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7c654f36.js';
|
|
9
|
-
import './_set-species-cede29f8.js';
|
|
10
3
|
import { c as cookie } from './index-db3bb315.js';
|
|
11
4
|
import getQuery from './getQuery.js';
|
|
5
|
+
import './es6.string.iterator-b24a54f2.js';
|
|
6
|
+
import './_to-object-9bef3b62.js';
|
|
7
|
+
import './web.dom.iterable-ca37144a.js';
|
|
8
|
+
import './_library-528f1934.js';
|
|
9
|
+
import './core.get-iterator-method-1b116089.js';
|
|
10
|
+
import './_set-species-0b056cff.js';
|
|
11
|
+
import './_iter-detect-d4d262ee.js';
|
|
12
12
|
|
|
13
13
|
var defaultParseOptions = {
|
|
14
14
|
decodeValues: true,
|
|
@@ -30,9 +30,18 @@ function parseString(setCookieValue, options) {
|
|
|
30
30
|
? Object.assign({}, defaultParseOptions, options)
|
|
31
31
|
: defaultParseOptions;
|
|
32
32
|
|
|
33
|
+
try {
|
|
34
|
+
value = options.decodeValues ? decodeURIComponent(value) : value; // decode cookie value
|
|
35
|
+
} catch (e) {
|
|
36
|
+
console.error(
|
|
37
|
+
`set-cookie-parser encountered an error while decoding a cookie with value '${value}'. Set options.decodeValues to false to disable this feature.`,
|
|
38
|
+
e
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
33
42
|
var cookie = {
|
|
34
43
|
name: name, // grab everything before the first =
|
|
35
|
-
value:
|
|
44
|
+
value: value,
|
|
36
45
|
};
|
|
37
46
|
|
|
38
47
|
parts.forEach(function (part) {
|
|
@@ -203,7 +212,7 @@ setCookie.parse = parse_1;
|
|
|
203
212
|
setCookie.parseString = parseString_1;
|
|
204
213
|
setCookie.splitCookiesString = splitCookiesString_1;
|
|
205
214
|
|
|
206
|
-
var
|
|
215
|
+
var utils = createCommonjsModule(function (module, exports) {
|
|
207
216
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
208
217
|
__assign = Object.assign || function(t) {
|
|
209
218
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -216,10 +225,33 @@ var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
216
225
|
return __assign.apply(this, arguments);
|
|
217
226
|
};
|
|
218
227
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
219
|
-
exports.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
228
|
+
exports.areCookiesEqual = exports.hasSameProperties = exports.createCookie = exports.isBrowser = void 0;
|
|
229
|
+
/**
|
|
230
|
+
* Tells whether we are in a browser or server.
|
|
231
|
+
*/
|
|
232
|
+
function isBrowser() {
|
|
233
|
+
return typeof window !== 'undefined';
|
|
234
|
+
}
|
|
235
|
+
exports.isBrowser = isBrowser;
|
|
236
|
+
/**
|
|
237
|
+
* Create an instance of the Cookie interface
|
|
238
|
+
*/
|
|
239
|
+
function createCookie(name, value, options) {
|
|
240
|
+
var sameSite = options.sameSite;
|
|
241
|
+
if (sameSite === true) {
|
|
242
|
+
sameSite = 'strict';
|
|
243
|
+
}
|
|
244
|
+
if (sameSite === undefined || sameSite === false) {
|
|
245
|
+
sameSite = 'lax';
|
|
246
|
+
}
|
|
247
|
+
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
248
|
+
delete cookieToSet.encode;
|
|
249
|
+
return __assign({ name: name, value: value }, cookieToSet);
|
|
250
|
+
}
|
|
251
|
+
exports.createCookie = createCookie;
|
|
252
|
+
/**
|
|
253
|
+
* Tells whether given objects have the same properties.
|
|
254
|
+
*/
|
|
223
255
|
function hasSameProperties(a, b) {
|
|
224
256
|
var aProps = Object.getOwnPropertyNames(a);
|
|
225
257
|
var bProps = Object.getOwnPropertyNames(b);
|
|
@@ -234,8 +266,9 @@ function hasSameProperties(a, b) {
|
|
|
234
266
|
}
|
|
235
267
|
return true;
|
|
236
268
|
}
|
|
269
|
+
exports.hasSameProperties = hasSameProperties;
|
|
237
270
|
/**
|
|
238
|
-
* Compare the cookie and return true if the cookies
|
|
271
|
+
* Compare the cookie and return true if the cookies have equivalent
|
|
239
272
|
* options and the cookies would be overwritten in the browser storage.
|
|
240
273
|
*
|
|
241
274
|
* @param a first Cookie for comparison
|
|
@@ -248,71 +281,109 @@ function areCookiesEqual(a, b) {
|
|
|
248
281
|
}
|
|
249
282
|
return (hasSameProperties(__assign(__assign({}, a), { sameSite: undefined }), __assign(__assign({}, b), { sameSite: undefined })) && sameSiteSame);
|
|
250
283
|
}
|
|
284
|
+
exports.areCookiesEqual = areCookiesEqual;
|
|
285
|
+
/* Functions */
|
|
286
|
+
|
|
287
|
+
});
|
|
288
|
+
|
|
289
|
+
unwrapExports(utils);
|
|
290
|
+
utils.areCookiesEqual;
|
|
291
|
+
utils.hasSameProperties;
|
|
292
|
+
utils.createCookie;
|
|
293
|
+
utils.isBrowser;
|
|
294
|
+
|
|
295
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
296
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
297
|
+
__assign = Object.assign || function(t) {
|
|
298
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
299
|
+
s = arguments[i];
|
|
300
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
301
|
+
t[p] = s[p];
|
|
302
|
+
}
|
|
303
|
+
return t;
|
|
304
|
+
};
|
|
305
|
+
return __assign.apply(this, arguments);
|
|
306
|
+
};
|
|
307
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
308
|
+
exports.destroyCookie = exports.setCookie = exports.parseCookies = void 0;
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
251
312
|
/**
|
|
252
|
-
* Create an instance of the Cookie interface
|
|
253
|
-
*
|
|
254
|
-
* @param name name of the Cookie
|
|
255
|
-
* @param value value of the Cookie
|
|
256
|
-
* @param options Cookie options
|
|
257
|
-
*/
|
|
258
|
-
function createCookie(name, value, options) {
|
|
259
|
-
var sameSite = options.sameSite;
|
|
260
|
-
if (sameSite === true) {
|
|
261
|
-
sameSite = 'strict';
|
|
262
|
-
}
|
|
263
|
-
if (sameSite === undefined || sameSite === false) {
|
|
264
|
-
sameSite = 'lax';
|
|
265
|
-
}
|
|
266
|
-
var cookieToSet = __assign(__assign({}, options), { sameSite: sameSite });
|
|
267
|
-
delete cookieToSet.encode;
|
|
268
|
-
return __assign({ name: name, value: value }, cookieToSet);
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
*
|
|
272
313
|
* Parses cookies.
|
|
273
314
|
*
|
|
274
|
-
* @param ctx
|
|
275
|
-
* @param options
|
|
315
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
316
|
+
* @param options Options that we pass down to `cookie` library.
|
|
276
317
|
*/
|
|
277
318
|
function parseCookies(ctx, options) {
|
|
278
|
-
|
|
319
|
+
var _a, _b;
|
|
320
|
+
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) {
|
|
279
321
|
return cookie.parse(ctx.req.headers.cookie, options);
|
|
280
322
|
}
|
|
281
|
-
if (isBrowser()) {
|
|
323
|
+
if (utils.isBrowser()) {
|
|
282
324
|
return cookie.parse(document.cookie, options);
|
|
283
325
|
}
|
|
284
326
|
return {};
|
|
285
327
|
}
|
|
286
328
|
exports.parseCookies = parseCookies;
|
|
287
329
|
/**
|
|
288
|
-
*
|
|
289
330
|
* Sets a cookie.
|
|
290
331
|
*
|
|
291
|
-
* @param ctx
|
|
292
|
-
* @param name
|
|
293
|
-
* @param value
|
|
294
|
-
* @param options
|
|
332
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
333
|
+
* @param name The name of your cookie.
|
|
334
|
+
* @param value The value of your cookie.
|
|
335
|
+
* @param options Options that we pass down to `cookie` library.
|
|
295
336
|
*/
|
|
296
337
|
function setCookie$1(ctx, name, value, options) {
|
|
297
|
-
|
|
338
|
+
var _a, _b;
|
|
339
|
+
if (options === void 0) { options = {}; }
|
|
340
|
+
// SSR
|
|
341
|
+
if (((_a = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _a === void 0 ? void 0 : _a.getHeader) && ctx.res.setHeader) {
|
|
342
|
+
// Check if response has finished and warn about it.
|
|
343
|
+
if ((_b = ctx === null || ctx === void 0 ? void 0 : ctx.res) === null || _b === void 0 ? void 0 : _b.finished) {
|
|
344
|
+
console.warn("Not setting \"" + name + "\" cookie. Response has finished.");
|
|
345
|
+
console.warn("You should set cookie before res.send()");
|
|
346
|
+
return {};
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* Load existing cookies from the header and parse them.
|
|
350
|
+
*/
|
|
298
351
|
var cookies = ctx.res.getHeader('Set-Cookie') || [];
|
|
299
352
|
if (typeof cookies === 'string')
|
|
300
353
|
cookies = [cookies];
|
|
301
354
|
if (typeof cookies === 'number')
|
|
302
355
|
cookies = [];
|
|
303
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Parse cookies but ignore values - we've already encoded
|
|
358
|
+
* them in the previous call.
|
|
359
|
+
*/
|
|
360
|
+
var parsedCookies = setCookie.parse(cookies, {
|
|
361
|
+
decodeValues: false,
|
|
362
|
+
});
|
|
363
|
+
/**
|
|
364
|
+
* We create the new cookie and make sure that none of
|
|
365
|
+
* the existing cookies match it.
|
|
366
|
+
*/
|
|
367
|
+
var newCookie_1 = utils.createCookie(name, value, options);
|
|
304
368
|
var cookiesToSet_1 = [];
|
|
305
369
|
parsedCookies.forEach(function (parsedCookie) {
|
|
306
|
-
if (!areCookiesEqual(parsedCookie,
|
|
307
|
-
|
|
370
|
+
if (!utils.areCookiesEqual(parsedCookie, newCookie_1)) {
|
|
371
|
+
/**
|
|
372
|
+
* We serialize the cookie back to the original format
|
|
373
|
+
* if it isn't the same as the new one.
|
|
374
|
+
*/
|
|
375
|
+
var serializedCookie = cookie.serialize(parsedCookie.name, parsedCookie.value, __assign({
|
|
376
|
+
// we prevent reencoding by default, but you might override it
|
|
377
|
+
encode: function (val) { return val; } }, parsedCookie));
|
|
378
|
+
cookiesToSet_1.push(serializedCookie);
|
|
308
379
|
}
|
|
309
380
|
});
|
|
310
381
|
cookiesToSet_1.push(cookie.serialize(name, value, options));
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
}
|
|
382
|
+
// Update the header.
|
|
383
|
+
ctx.res.setHeader('Set-Cookie', cookiesToSet_1);
|
|
314
384
|
}
|
|
315
|
-
|
|
385
|
+
// Browser
|
|
386
|
+
if (utils.isBrowser()) {
|
|
316
387
|
if (options && options.httpOnly) {
|
|
317
388
|
throw new Error('Can not set a httpOnly cookie in the browser.');
|
|
318
389
|
}
|
|
@@ -322,30 +393,21 @@ function setCookie$1(ctx, name, value, options) {
|
|
|
322
393
|
}
|
|
323
394
|
exports.setCookie = setCookie$1;
|
|
324
395
|
/**
|
|
325
|
-
*
|
|
326
396
|
* Destroys a cookie with a particular name.
|
|
327
397
|
*
|
|
328
|
-
* @param ctx
|
|
329
|
-
* @param name
|
|
330
|
-
* @param options
|
|
398
|
+
* @param ctx NextJS page or API context, express context, null or undefined.
|
|
399
|
+
* @param name Cookie name.
|
|
400
|
+
* @param options Options that we pass down to `cookie` library.
|
|
331
401
|
*/
|
|
332
402
|
function destroyCookie(ctx, name, options) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
if (typeof cookies === 'number')
|
|
339
|
-
cookies = [];
|
|
340
|
-
cookies.push(cookie.serialize(name, '', opts));
|
|
341
|
-
ctx.res.setHeader('Set-Cookie', cookies);
|
|
342
|
-
}
|
|
343
|
-
if (isBrowser()) {
|
|
344
|
-
document.cookie = cookie.serialize(name, '', opts);
|
|
345
|
-
}
|
|
346
|
-
return {};
|
|
403
|
+
/**
|
|
404
|
+
* We forward the request destroy to setCookie function
|
|
405
|
+
* as it is the same function with modified maxAge value.
|
|
406
|
+
*/
|
|
407
|
+
return setCookie$1(ctx, name, '', __assign(__assign({}, (options || {})), { maxAge: -1 }));
|
|
347
408
|
}
|
|
348
409
|
exports.destroyCookie = destroyCookie;
|
|
410
|
+
/* Utility Exports */
|
|
349
411
|
exports.default = {
|
|
350
412
|
set: setCookie$1,
|
|
351
413
|
get: parseCookies,
|
|
@@ -355,7 +417,7 @@ exports.default = {
|
|
|
355
417
|
});
|
|
356
418
|
|
|
357
419
|
unwrapExports(dist);
|
|
358
|
-
|
|
420
|
+
dist.destroyCookie;
|
|
359
421
|
var dist_2 = dist.setCookie;
|
|
360
422
|
var dist_3 = dist.parseCookies;
|
|
361
423
|
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-ded78eb9.js';
|
|
3
|
-
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
-
import './_library-528f1934.js';
|
|
5
|
-
import './_iter-detect-59409a32.js';
|
|
6
|
-
import './toConsumableArray-725434a0.js';
|
|
7
|
-
import './core.get-iterator-method-54d2e411.js';
|
|
8
|
-
import './_object-pie-71ac75a4.js';
|
|
9
|
-
import './extends-cc5da797.js';
|
|
10
|
-
import './_object-sap-4d59d5bd.js';
|
|
11
|
-
import './inherits-596840e8.js';
|
|
12
|
-
import './define-property-de3fc946.js';
|
|
13
|
-
import './web.dom.iterable-8956f9a5.js';
|
|
14
|
-
import './typeof-ee095d0c.js';
|
|
15
|
-
import './_is-array-49698029.js';
|
|
16
1
|
import 'react';
|
|
17
|
-
|
|
2
|
+
export { g as default } from './index-48a08226.js';
|
|
3
|
+
import './BlockContent-d8cd739c.js';
|
|
4
|
+
import './entities-932b50cf.js';
|
|
5
|
+
import './slicedToArray-34468155.js';
|
|
6
|
+
import './_commonjsHelpers-0c4b6f40.js';
|
|
7
|
+
import './web.dom.iterable-ca37144a.js';
|
|
8
|
+
import './es6.string.iterator-b24a54f2.js';
|
|
9
|
+
import './_to-object-9bef3b62.js';
|
|
10
|
+
import './core.get-iterator-method-1b116089.js';
|
|
11
|
+
import 'react-bootstrap';
|
|
12
|
+
import './index-3f5c03b2.js';
|
|
13
|
+
import './index-669ff425.js';
|
|
18
14
|
import 'prop-types';
|
|
19
|
-
import 'react-bootstrap/Row';
|
|
20
|
-
import 'react-bootstrap/Col';
|
|
21
|
-
import './moment-b6f49411.js';
|
|
22
15
|
import 'next/router';
|
|
23
|
-
import './
|
|
24
|
-
import './
|
|
25
|
-
import 'react-dom';
|
|
26
|
-
import './index-51a80699.js';
|
|
27
|
-
import './index-c5fd0af5.js';
|
|
28
|
-
import './main-747e7d25.js';
|
|
29
|
-
import './entities-7cc3bf45.js';
|
|
30
|
-
import './stringify-008c8802.js';
|
|
31
|
-
import './slicedToArray-7021e5df.js';
|
|
32
|
-
import './asyncToGenerator-7c654f36.js';
|
|
33
|
-
import './_set-species-cede29f8.js';
|
|
34
|
-
import './Segment.js';
|
|
16
|
+
import './smoothscroll-ab6e0238.js';
|
|
17
|
+
import './util-3ab476bf.js';
|
|
35
18
|
import './Beam.js';
|
|
36
|
-
import './
|
|
37
|
-
import './
|
|
38
|
-
import './
|
|
19
|
+
import './stringify-8a4f19f7.js';
|
|
20
|
+
import './asyncToGenerator-acd1cc47.js';
|
|
21
|
+
import './_library-528f1934.js';
|
|
22
|
+
import './_set-species-0b056cff.js';
|
|
23
|
+
import './_iter-detect-d4d262ee.js';
|
|
24
|
+
import './Segment.js';
|
|
25
|
+
import './main-1450d277.js';
|
|
26
|
+
import './extends-c2b1c9d7.js';
|
|
27
|
+
import './_object-pie-71ac75a4.js';
|
|
28
|
+
import './index-752d1dae.js';
|
|
29
|
+
import 'react-dom';
|
|
30
|
+
import './typeof-64422756.js';
|
|
31
|
+
import './_is-array-9383b394.js';
|
|
32
|
+
import './brightcove-react-player-loader.es-b43c695a.js';
|
|
39
33
|
import './GroupDeck.js';
|
|
40
|
-
import '
|
|
41
|
-
import './
|
|
42
|
-
import './index.esm-3fdda599.js';
|
|
43
|
-
import 'react-bootstrap/Button';
|
|
44
|
-
export { g as default } from './index-1a7c57c9.js';
|
|
45
|
-
import './util-7700fc59.js';
|
|
46
|
-
import './brightcove-react-player-loader.es-4abff0b1.js';
|
|
34
|
+
import './moment-bc12cb97.js';
|
|
35
|
+
import './toConsumableArray-5212fee7.js';
|
|
47
36
|
import 'react-bootstrap/Pagination';
|
|
37
|
+
import 'react-bootstrap/Button';
|
|
38
|
+
import './AdSlot.js';
|
|
39
|
+
import './debounce-1a993acf.js';
|
|
40
|
+
import './isSymbol-807e927e.js';
|
|
41
|
+
import 'react-bootstrap/Row';
|
|
42
|
+
import 'react-bootstrap/Col';
|
|
48
43
|
import 'next/head';
|
|
44
|
+
import './inherits-18d4a779.js';
|
|
45
|
+
import './_object-sap-6a003379.js';
|
|
46
|
+
import './define-property-9a008401.js';
|
|
47
|
+
import './index.esm-3fdda599.js';
|
|
48
|
+
import './iconBase-602d52fe.js';
|
|
49
49
|
import 'react-bootstrap/Figure';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { _ as
|
|
1
|
+
import { _ as _extends } from './extends-c2b1c9d7.js';
|
|
2
|
+
import { _ as _toConsumableArray } from './toConsumableArray-5212fee7.js';
|
|
3
3
|
|
|
4
4
|
var getContentPlacementUrl = function getContentPlacementUrl(cp) {
|
|
5
5
|
var cp_url = '';
|
package/dist/esm/getTargeting.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import './extends-c2b1c9d7.js';
|
|
2
|
+
import './toConsumableArray-5212fee7.js';
|
|
3
|
+
export { g as default } from './getTargeting-b1a7be54.js';
|
|
1
4
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
2
|
-
import './_to-object-
|
|
3
|
-
import './es6.string.iterator-9b2af4a5.js';
|
|
4
|
-
import './_iter-detect-59409a32.js';
|
|
5
|
-
import './toConsumableArray-725434a0.js';
|
|
6
|
-
import './core.get-iterator-method-54d2e411.js';
|
|
5
|
+
import './_to-object-9bef3b62.js';
|
|
7
6
|
import './_object-pie-71ac75a4.js';
|
|
8
|
-
import './
|
|
9
|
-
|
|
7
|
+
import './es6.string.iterator-b24a54f2.js';
|
|
8
|
+
import './_iter-detect-d4d262ee.js';
|
|
9
|
+
import './core.get-iterator-method-1b116089.js';
|
|
@@ -183,6 +183,7 @@ exports.SPEC_NAME_TO_URL_NAME_MAPPINGS = [
|
|
|
183
183
|
['saturation', 'sat'],
|
|
184
184
|
['auto', 'auto'],
|
|
185
185
|
['dpr', 'dpr'],
|
|
186
|
+
['pad', 'pad'],
|
|
186
187
|
];
|
|
187
188
|
function urlForImage(options) {
|
|
188
189
|
var spec = __assign({}, (options || {}));
|
|
@@ -329,8 +330,8 @@ function fit(source, spec) {
|
|
|
329
330
|
});
|
|
330
331
|
|
|
331
332
|
unwrapExports(urlForImage_1);
|
|
332
|
-
|
|
333
|
-
|
|
333
|
+
urlForImage_1.parseSource;
|
|
334
|
+
urlForImage_1.SPEC_NAME_TO_URL_NAME_MAPPINGS;
|
|
334
335
|
|
|
335
336
|
var builder = createCommonjsModule(function (module, exports) {
|
|
336
337
|
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
@@ -356,7 +357,7 @@ var urlForImage_1$1 = __importStar(urlForImage_1);
|
|
|
356
357
|
var validFits = ['clip', 'crop', 'fill', 'fillmax', 'max', 'scale', 'min'];
|
|
357
358
|
var validCrops = ['top', 'bottom', 'left', 'right', 'center', 'focalpoint', 'entropy'];
|
|
358
359
|
var validAutoModes = ['format'];
|
|
359
|
-
function
|
|
360
|
+
function isSanityClientLike(client) {
|
|
360
361
|
return client ? typeof client.clientConfig === 'object' : false;
|
|
361
362
|
}
|
|
362
363
|
function rewriteSpecName(key) {
|
|
@@ -373,7 +374,7 @@ function rewriteSpecName(key) {
|
|
|
373
374
|
function urlBuilder(options) {
|
|
374
375
|
// Did we get a SanityClient?
|
|
375
376
|
var client = options;
|
|
376
|
-
if (
|
|
377
|
+
if (isSanityClientLike(client)) {
|
|
377
378
|
// Inherit config from client
|
|
378
379
|
var _a = client.clientConfig, apiUrl = _a.apiHost, projectId = _a.projectId, dataset = _a.dataset;
|
|
379
380
|
var apiHost = apiUrl || 'https://api.sanity.io';
|
|
@@ -487,7 +488,7 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
487
488
|
ImageUrlBuilder.prototype.flipHorizontal = function () {
|
|
488
489
|
return this.withOptions({ flipHorizontal: true });
|
|
489
490
|
};
|
|
490
|
-
// Flip image
|
|
491
|
+
// Flip image vertically
|
|
491
492
|
ImageUrlBuilder.prototype.flipVertical = function () {
|
|
492
493
|
return this.withOptions({ flipVertical: true });
|
|
493
494
|
};
|
|
@@ -517,6 +518,10 @@ var ImageUrlBuilder = /** @class */ (function () {
|
|
|
517
518
|
}
|
|
518
519
|
return this.withOptions({ auto: value });
|
|
519
520
|
};
|
|
521
|
+
// Specify the number of pixels to pad the image
|
|
522
|
+
ImageUrlBuilder.prototype.pad = function (pad) {
|
|
523
|
+
return this.withOptions({ pad: pad });
|
|
524
|
+
};
|
|
520
525
|
// Gets the url based on the submitted parameters
|
|
521
526
|
ImageUrlBuilder.prototype.url = function () {
|
|
522
527
|
return urlForImage_1$1.default(this.options);
|
|
@@ -532,7 +537,7 @@ exports.ImageUrlBuilder = ImageUrlBuilder;
|
|
|
532
537
|
});
|
|
533
538
|
|
|
534
539
|
unwrapExports(builder);
|
|
535
|
-
|
|
540
|
+
builder.ImageUrlBuilder;
|
|
536
541
|
|
|
537
542
|
var node = createCommonjsModule(function (module) {
|
|
538
543
|
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|