@mjhls/mjh-framework 1.0.836 → 1.0.837
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/ArticleProgramLandingPage.js +1 -1
- package/dist/cjs/ExternalResources.js +1 -1
- package/dist/cjs/HorizontalArticleListing.js +1 -1
- package/dist/cjs/IssueLanding.js +1 -1
- package/dist/cjs/MediaSeriesLanding.js +1 -1
- package/dist/cjs/PartnerDetailListing.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +1 -1
- package/dist/cjs/View.js +1 -1
- package/dist/cjs/getSerializers.js +1 -1
- package/dist/cjs/{index-393c5040.js → index-0a582ba9.js} +73 -22
- package/dist/cjs/index.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +1 -1
- package/dist/esm/ExternalResources.js +1 -1
- package/dist/esm/HorizontalArticleListing.js +1 -1
- package/dist/esm/IssueLanding.js +1 -1
- package/dist/esm/MediaSeriesLanding.js +1 -1
- package/dist/esm/PartnerDetailListing.js +1 -1
- package/dist/esm/TaxonomyDescription.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +1 -1
- package/dist/esm/View.js +1 -1
- package/dist/esm/getSerializers.js +1 -1
- package/dist/esm/{index-f21b15a5.js → index-66ffc224.js} +73 -22
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# mjh-framework v. 1.0.
|
|
1
|
+
# mjh-framework v. 1.0.837
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/mjh-framework) [](https://standardjs.com)
|
|
4
4
|
|
|
@@ -5,7 +5,7 @@ var slicedToArray = require('./slicedToArray-5d1bc3b3.js');
|
|
|
5
5
|
var _extends = require('./extends-29bdbc6d.js');
|
|
6
6
|
var React = require('react');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
9
9
|
var ArticleSeriesListing = require('./ArticleSeriesListing.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./es6.string.iterator-c2573ffd.js');
|
|
@@ -4,7 +4,7 @@ var _extends = require('./extends-29bdbc6d.js');
|
|
|
4
4
|
var slicedToArray = require('./slicedToArray-5d1bc3b3.js');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
7
|
-
var getSerializers = require('./index-
|
|
7
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
8
8
|
var index = require('./index-f86bb269.js');
|
|
9
9
|
var Router = require('next/router');
|
|
10
10
|
var Button = require('react-bootstrap/Button');
|
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var ArticleCarousel = require('./ArticleCarousel.js');
|
|
6
6
|
var index_esm = require('./index.esm-974f47d9.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./_to-object-6de10e57.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
package/dist/cjs/IssueLanding.js
CHANGED
|
@@ -5,7 +5,7 @@ var React = require('react');
|
|
|
5
5
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
6
6
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
7
7
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
8
|
-
var getSerializers = require('./index-
|
|
8
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
9
9
|
require('./_commonjsHelpers-06173234.js');
|
|
10
10
|
require('./_to-object-6de10e57.js');
|
|
11
11
|
require('./_object-pie-083f2dd6.js');
|
|
@@ -17,7 +17,7 @@ var urlFor = require('./urlFor.js');
|
|
|
17
17
|
var moment = require('./moment-aca40de1.js');
|
|
18
18
|
var styleInject_es = require('./style-inject.es-dcee06b6.js');
|
|
19
19
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
21
21
|
require('./define-property-c88be878.js');
|
|
22
22
|
require('./_to-object-6de10e57.js');
|
|
23
23
|
require('./es6.string.iterator-c2573ffd.js');
|
|
@@ -11,7 +11,7 @@ var moment = require('./moment-aca40de1.js');
|
|
|
11
11
|
var QueueDeckExpanded = require('./QueueDeckExpanded.js');
|
|
12
12
|
var Breadcrumbs = require('./Breadcrumbs.js');
|
|
13
13
|
var Feature = require('./Feature.js');
|
|
14
|
-
var getSerializers = require('./index-
|
|
14
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
15
15
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
16
16
|
require('./_commonjsHelpers-06173234.js');
|
|
17
17
|
require('./es6.string.iterator-c2573ffd.js');
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var Router = require('next/router');
|
|
7
7
|
var Head = require('next/head');
|
|
8
8
|
var BlockContent = require('./BlockContent-36e54d77.js');
|
|
9
|
-
var getSerializers = require('./index-
|
|
9
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
10
10
|
require('./_commonjsHelpers-06173234.js');
|
|
11
11
|
require('./es6.string.iterator-c2573ffd.js');
|
|
12
12
|
require('./_to-object-6de10e57.js');
|
|
@@ -7,7 +7,7 @@ var BlockContent = require('./BlockContent-36e54d77.js');
|
|
|
7
7
|
var Col = require('react-bootstrap/Col');
|
|
8
8
|
var Form = require('react-bootstrap/Form');
|
|
9
9
|
var Button = require('react-bootstrap/Button');
|
|
10
|
-
var getSerializers = require('./index-
|
|
10
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
11
11
|
var VideoSeriesListing = require('./VideoSeriesListing.js');
|
|
12
12
|
require('./_commonjsHelpers-06173234.js');
|
|
13
13
|
require('./es6.string.iterator-c2573ffd.js');
|
package/dist/cjs/View.js
CHANGED
|
@@ -17,7 +17,7 @@ var FormControl = require('react-bootstrap/FormControl');
|
|
|
17
17
|
var Button = require('react-bootstrap/Button');
|
|
18
18
|
var visibilitySensor = require('./visibility-sensor-eb2c5b69.js');
|
|
19
19
|
var SocialShare = require('./SocialShare.js');
|
|
20
|
-
var getSerializers = require('./index-
|
|
20
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
21
21
|
var AdSlot = require('./AdSlot.js');
|
|
22
22
|
var SeriesSlider = require('./SeriesSlider-cbab9f0f.js');
|
|
23
23
|
var getTargeting = require('./getTargeting-be6168ad.js');
|
|
@@ -92,7 +92,14 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
92
92
|
return React__default['default'].createElement(
|
|
93
93
|
reactBootstrap.Carousel.Item,
|
|
94
94
|
{ key: slide._key },
|
|
95
|
-
React__default['default'].createElement(
|
|
95
|
+
React__default['default'].createElement(
|
|
96
|
+
'picture',
|
|
97
|
+
null,
|
|
98
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
99
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
100
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
101
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
102
|
+
),
|
|
96
103
|
slide.caption && React__default['default'].createElement(
|
|
97
104
|
'p',
|
|
98
105
|
{ className: 'p-2' },
|
|
@@ -2152,7 +2159,14 @@ var Media = function Media(_ref) {
|
|
|
2152
2159
|
React__default['default'].createElement(
|
|
2153
2160
|
index$2.LazyLoad,
|
|
2154
2161
|
{ once: true },
|
|
2155
|
-
React__default['default'].createElement(
|
|
2162
|
+
React__default['default'].createElement(
|
|
2163
|
+
'picture',
|
|
2164
|
+
null,
|
|
2165
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2166
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2167
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2168
|
+
React__default['default'].createElement('img', _extends._extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2169
|
+
)
|
|
2156
2170
|
),
|
|
2157
2171
|
caption && React__default['default'].createElement(
|
|
2158
2172
|
reactBootstrap.Figure.Caption,
|
|
@@ -8165,7 +8179,14 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8165
8179
|
React__default['default'].createElement(
|
|
8166
8180
|
index$2.LazyLoad,
|
|
8167
8181
|
null,
|
|
8168
|
-
React__default['default'].createElement(
|
|
8182
|
+
React__default['default'].createElement(
|
|
8183
|
+
'picture',
|
|
8184
|
+
null,
|
|
8185
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8186
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8187
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8188
|
+
React__default['default'].createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8189
|
+
)
|
|
8169
8190
|
)
|
|
8170
8191
|
),
|
|
8171
8192
|
React__default['default'].createElement(
|
|
@@ -8260,7 +8281,14 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8260
8281
|
imageBox && React__default['default'].createElement(
|
|
8261
8282
|
index$2.LazyLoad,
|
|
8262
8283
|
{ once: true },
|
|
8263
|
-
React__default['default'].createElement(
|
|
8284
|
+
React__default['default'].createElement(
|
|
8285
|
+
'picture',
|
|
8286
|
+
null,
|
|
8287
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8288
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8289
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8290
|
+
React__default['default'].createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8291
|
+
)
|
|
8264
8292
|
),
|
|
8265
8293
|
media.caption && React__default['default'].createElement(
|
|
8266
8294
|
'span',
|
|
@@ -8922,7 +8950,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8922
8950
|
}
|
|
8923
8951
|
};
|
|
8924
8952
|
|
|
8925
|
-
var FigureImage = React__default['default'].memo(function (_ref2) {
|
|
8953
|
+
var FigureImage$1 = React__default['default'].memo(function (_ref2) {
|
|
8926
8954
|
var node = _ref2.node,
|
|
8927
8955
|
client = _ref2.client,
|
|
8928
8956
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9056,12 +9084,12 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9056
9084
|
link ? React__default['default'].createElement(
|
|
9057
9085
|
'a',
|
|
9058
9086
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9059
|
-
React__default['default'].createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9087
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9060
9088
|
React__default['default'].createElement(FigureCaption, null)
|
|
9061
9089
|
) : React__default['default'].createElement(
|
|
9062
9090
|
React__default['default'].Fragment,
|
|
9063
9091
|
null,
|
|
9064
|
-
React__default['default'].createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9092
|
+
React__default['default'].createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9065
9093
|
React__default['default'].createElement(FigureCaption, null)
|
|
9066
9094
|
),
|
|
9067
9095
|
React__default['default'].createElement(LightBox, {
|
|
@@ -9098,6 +9126,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9098
9126
|
}, [ref]);
|
|
9099
9127
|
}
|
|
9100
9128
|
|
|
9129
|
+
var FigureImage = React__default['default'].memo(function (_ref) {
|
|
9130
|
+
var imagesCount = _ref.imagesCount,
|
|
9131
|
+
image = _ref.image,
|
|
9132
|
+
client = _ref.client,
|
|
9133
|
+
imgAlt = _ref.imgAlt,
|
|
9134
|
+
link = _ref.link,
|
|
9135
|
+
handleClickFigure = _ref.handleClickFigure;
|
|
9136
|
+
|
|
9137
|
+
return React__default['default'].createElement(
|
|
9138
|
+
'picture',
|
|
9139
|
+
null,
|
|
9140
|
+
React__default['default'].createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9141
|
+
React__default['default'].createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9142
|
+
React__default['default'].createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9143
|
+
React__default['default'].createElement('img', _extends._extends({
|
|
9144
|
+
'images-count': imagesCount,
|
|
9145
|
+
className: 'multi-figure-image',
|
|
9146
|
+
src: urlFor({ source: image, client: client }),
|
|
9147
|
+
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9148
|
+
}, !link && {
|
|
9149
|
+
onClick: function onClick() {
|
|
9150
|
+
return handleClickFigure(image, client);
|
|
9151
|
+
}
|
|
9152
|
+
}))
|
|
9153
|
+
);
|
|
9154
|
+
});
|
|
9155
|
+
|
|
9101
9156
|
var MultiFigure = function MultiFigure(props) {
|
|
9102
9157
|
var images = props.node.images,
|
|
9103
9158
|
client = props.client,
|
|
@@ -9117,9 +9172,9 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9117
9172
|
var lightboxContainer = React.useRef(null);
|
|
9118
9173
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9119
9174
|
|
|
9120
|
-
var FigureCaption = function FigureCaption(
|
|
9121
|
-
var caption =
|
|
9122
|
-
imgcaption =
|
|
9175
|
+
var FigureCaption = function FigureCaption(_ref2) {
|
|
9176
|
+
var caption = _ref2.caption,
|
|
9177
|
+
imgcaption = _ref2.imgcaption;
|
|
9123
9178
|
|
|
9124
9179
|
if (imgcaption && imgcaption.length > 0) {
|
|
9125
9180
|
return React__default['default'].createElement(
|
|
@@ -9132,6 +9187,11 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9132
9187
|
} else return null;
|
|
9133
9188
|
};
|
|
9134
9189
|
|
|
9190
|
+
var handleClickFigure = React.useCallback(function (image, client) {
|
|
9191
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9192
|
+
setOpenImg(true);
|
|
9193
|
+
}, [client]);
|
|
9194
|
+
|
|
9135
9195
|
if (images && images.length > 0) {
|
|
9136
9196
|
return React__default['default'].createElement(
|
|
9137
9197
|
'div',
|
|
@@ -9152,7 +9212,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9152
9212
|
React__default['default'].createElement(
|
|
9153
9213
|
index$2.LazyLoad,
|
|
9154
9214
|
{ once: true },
|
|
9155
|
-
React__default['default'].createElement(
|
|
9215
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9156
9216
|
),
|
|
9157
9217
|
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9158
9218
|
)
|
|
@@ -9162,16 +9222,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9162
9222
|
React__default['default'].createElement(
|
|
9163
9223
|
index$2.LazyLoad,
|
|
9164
9224
|
{ once: true },
|
|
9165
|
-
React__default['default'].createElement(
|
|
9166
|
-
'images-count': images.length,
|
|
9167
|
-
className: 'multi-figure-image',
|
|
9168
|
-
src: urlFor({ source: image.asset, client: client }),
|
|
9169
|
-
alt: image.alt,
|
|
9170
|
-
onClick: function onClick() {
|
|
9171
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9172
|
-
setOpenImg(true);
|
|
9173
|
-
}
|
|
9174
|
-
})
|
|
9225
|
+
React__default['default'].createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9175
9226
|
),
|
|
9176
9227
|
React__default['default'].createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9177
9228
|
)
|
|
@@ -9186,7 +9237,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9186
9237
|
React__default['default'].createElement(
|
|
9187
9238
|
'style',
|
|
9188
9239
|
{ jsx: 'true' },
|
|
9189
|
-
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9240
|
+
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9190
9241
|
)
|
|
9191
9242
|
);
|
|
9192
9243
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -82,7 +82,7 @@ var VerticalHero = require('./VerticalHero.js');
|
|
|
82
82
|
var YahooHero = require('./YahooHero.js');
|
|
83
83
|
var GridHero = require('./GridHero.js');
|
|
84
84
|
var ConferenceArticleCard = require('./ConferenceArticleCard.js');
|
|
85
|
-
var getSerializers = require('./index-
|
|
85
|
+
var getSerializers = require('./index-0a582ba9.js');
|
|
86
86
|
var Beam = require('./Beam.js');
|
|
87
87
|
var Segment = require('./Segment.js');
|
|
88
88
|
var KMTracker = require('./KMTracker.js');
|
|
@@ -3,7 +3,7 @@ import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
|
3
3
|
import { _ as _extends } from './extends-60e0e1c6.js';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
7
7
|
import ArticleSeriesListing from './ArticleSeriesListing.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-bc33758b.js';
|
|
@@ -2,7 +2,7 @@ import { _ as _extends } from './extends-60e0e1c6.js';
|
|
|
2
2
|
import { _ as _slicedToArray } from './slicedToArray-be2f7a22.js';
|
|
3
3
|
import React, { useState, useEffect } from 'react';
|
|
4
4
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
5
|
-
import { g as getSerializers } from './index-
|
|
5
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
6
6
|
import { m as momentTimezone } from './index-79cfd25c.js';
|
|
7
7
|
import { useRouter } from 'next/router';
|
|
8
8
|
import Button from 'react-bootstrap/Button';
|
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import ArticleCarousel from './ArticleCarousel.js';
|
|
4
4
|
import { I as IoIosArrowForward } from './index.esm-3fdda599.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
package/dist/esm/IssueLanding.js
CHANGED
|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
4
4
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
5
5
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
6
|
-
import { g as getSerializers } from './index-
|
|
6
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
7
7
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
8
8
|
import './_to-object-b50e61c3.js';
|
|
9
9
|
import './_object-pie-133f504a.js';
|
|
@@ -15,7 +15,7 @@ import urlFor from './urlFor.js';
|
|
|
15
15
|
import { m as moment } from './moment-bc12cb97.js';
|
|
16
16
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
17
17
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
18
|
-
import { g as getSerializers } from './index-
|
|
18
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
19
19
|
import './define-property-fe54dc9f.js';
|
|
20
20
|
import './_to-object-b50e61c3.js';
|
|
21
21
|
import './es6.string.iterator-bc33758b.js';
|
|
@@ -9,7 +9,7 @@ import { m as moment } from './moment-bc12cb97.js';
|
|
|
9
9
|
import QueueDeckExpanded from './QueueDeckExpanded.js';
|
|
10
10
|
import Breadcrumbs from './Breadcrumbs.js';
|
|
11
11
|
import Feature from './Feature.js';
|
|
12
|
-
import { g as getSerializers } from './index-
|
|
12
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
13
13
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
14
14
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
15
15
|
import './es6.string.iterator-bc33758b.js';
|
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { useRouter } from 'next/router';
|
|
5
5
|
import Head from 'next/head';
|
|
6
6
|
import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
7
|
-
import { g as getSerializers } from './index-
|
|
7
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
8
8
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
9
9
|
import './es6.string.iterator-bc33758b.js';
|
|
10
10
|
import './_to-object-b50e61c3.js';
|
|
@@ -5,7 +5,7 @@ import { B as BlockContent } from './BlockContent-52cf21c5.js';
|
|
|
5
5
|
import Col from 'react-bootstrap/Col';
|
|
6
6
|
import Form from 'react-bootstrap/Form';
|
|
7
7
|
import Button from 'react-bootstrap/Button';
|
|
8
|
-
import { g as getSerializers } from './index-
|
|
8
|
+
import { g as getSerializers } from './index-66ffc224.js';
|
|
9
9
|
import VideoSeriesListing from './VideoSeriesListing.js';
|
|
10
10
|
import './_commonjsHelpers-0c4b6f40.js';
|
|
11
11
|
import './es6.string.iterator-bc33758b.js';
|
package/dist/esm/View.js
CHANGED
|
@@ -15,7 +15,7 @@ import FormControl from 'react-bootstrap/FormControl';
|
|
|
15
15
|
import Button from 'react-bootstrap/Button';
|
|
16
16
|
import { V as VisibilitySensor } from './visibility-sensor-f40c2564.js';
|
|
17
17
|
import SocialShare from './SocialShare.js';
|
|
18
|
-
import { r as renderAuthor, g as getSerializers } from './index-
|
|
18
|
+
import { r as renderAuthor, g as getSerializers } from './index-66ffc224.js';
|
|
19
19
|
import DFPAdSlot from './AdSlot.js';
|
|
20
20
|
import { S as SeriesSlider } from './SeriesSlider-5c62a578.js';
|
|
21
21
|
import { g as getTargeting, a as getContentPlacementUrl } from './getTargeting-68291ce9.js';
|
|
@@ -78,7 +78,14 @@ var Slideshow$1 = function Slideshow(_ref) {
|
|
|
78
78
|
return React.createElement(
|
|
79
79
|
Carousel.Item,
|
|
80
80
|
{ key: slide._key },
|
|
81
|
-
React.createElement(
|
|
81
|
+
React.createElement(
|
|
82
|
+
'picture',
|
|
83
|
+
null,
|
|
84
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
85
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
86
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.asset, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
87
|
+
React.createElement('img', { src: urlFor({ source: slide.asset, client: client }), alt: slide.alt || '', style: { width: '100%' } })
|
|
88
|
+
),
|
|
82
89
|
slide.caption && React.createElement(
|
|
83
90
|
'p',
|
|
84
91
|
{ className: 'p-2' },
|
|
@@ -2138,7 +2145,14 @@ var Media = function Media(_ref) {
|
|
|
2138
2145
|
React.createElement(
|
|
2139
2146
|
LazyLoad,
|
|
2140
2147
|
{ once: true },
|
|
2141
|
-
React.createElement(
|
|
2148
|
+
React.createElement(
|
|
2149
|
+
'picture',
|
|
2150
|
+
null,
|
|
2151
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
2152
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
2153
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
2154
|
+
React.createElement('img', _extends({ className: 'media-image', style: { maxWidth: '100%' }, src: urlFor({ source: poster, client: client }) }, alt && { alt: alt }))
|
|
2155
|
+
)
|
|
2142
2156
|
),
|
|
2143
2157
|
caption && React.createElement(
|
|
2144
2158
|
Figure$1.Caption,
|
|
@@ -8151,7 +8165,14 @@ var Slideshow = function Slideshow(_ref) {
|
|
|
8151
8165
|
React.createElement(
|
|
8152
8166
|
LazyLoad,
|
|
8153
8167
|
null,
|
|
8154
|
-
React.createElement(
|
|
8168
|
+
React.createElement(
|
|
8169
|
+
'picture',
|
|
8170
|
+
null,
|
|
8171
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8172
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8173
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: slide.slideshowImage, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8174
|
+
React.createElement('img', { src: urlFor({ source: slide.slideshowImage, client: client }), alt: slide.slideshowImage.alt || 'slideshow image', style: { width: '100%' } })
|
|
8175
|
+
)
|
|
8155
8176
|
)
|
|
8156
8177
|
),
|
|
8157
8178
|
React.createElement(
|
|
@@ -8246,7 +8267,14 @@ var MultiMedia = function MultiMedia(props) {
|
|
|
8246
8267
|
imageBox && React.createElement(
|
|
8247
8268
|
LazyLoad,
|
|
8248
8269
|
{ once: true },
|
|
8249
|
-
React.createElement(
|
|
8270
|
+
React.createElement(
|
|
8271
|
+
'picture',
|
|
8272
|
+
null,
|
|
8273
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
8274
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
8275
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: media.poster, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
8276
|
+
React.createElement('img', { 'images-count': medias.length, className: 'multi-media-image', src: urlFor({ source: media.poster, client: client }), alt: media.alt || '' })
|
|
8277
|
+
)
|
|
8250
8278
|
),
|
|
8251
8279
|
media.caption && React.createElement(
|
|
8252
8280
|
'span',
|
|
@@ -8908,7 +8936,7 @@ var compareProps = function compareProps(prevProps, nextProps) {
|
|
|
8908
8936
|
}
|
|
8909
8937
|
};
|
|
8910
8938
|
|
|
8911
|
-
var FigureImage = React.memo(function (_ref2) {
|
|
8939
|
+
var FigureImage$1 = React.memo(function (_ref2) {
|
|
8912
8940
|
var node = _ref2.node,
|
|
8913
8941
|
client = _ref2.client,
|
|
8914
8942
|
imgAlt = _ref2.imgAlt,
|
|
@@ -9042,12 +9070,12 @@ var FigureComponent = function FigureComponent(props) {
|
|
|
9042
9070
|
link ? React.createElement(
|
|
9043
9071
|
'a',
|
|
9044
9072
|
{ target: blank ? '_blank' : '_self', href: link },
|
|
9045
|
-
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9073
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, link: link }),
|
|
9046
9074
|
React.createElement(FigureCaption, null)
|
|
9047
9075
|
) : React.createElement(
|
|
9048
9076
|
React.Fragment,
|
|
9049
9077
|
null,
|
|
9050
|
-
React.createElement(FigureImage, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9078
|
+
React.createElement(FigureImage$1, { node: node, client: client, imgAlt: alt, handleClickFigure: handleClickFigure }),
|
|
9051
9079
|
React.createElement(FigureCaption, null)
|
|
9052
9080
|
),
|
|
9053
9081
|
React.createElement(LightBox, {
|
|
@@ -9084,6 +9112,33 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
|
|
|
9084
9112
|
}, [ref]);
|
|
9085
9113
|
}
|
|
9086
9114
|
|
|
9115
|
+
var FigureImage = React.memo(function (_ref) {
|
|
9116
|
+
var imagesCount = _ref.imagesCount,
|
|
9117
|
+
image = _ref.image,
|
|
9118
|
+
client = _ref.client,
|
|
9119
|
+
imgAlt = _ref.imgAlt,
|
|
9120
|
+
link = _ref.link,
|
|
9121
|
+
handleClickFigure = _ref.handleClickFigure;
|
|
9122
|
+
|
|
9123
|
+
return React.createElement(
|
|
9124
|
+
'picture',
|
|
9125
|
+
null,
|
|
9126
|
+
React.createElement('source', { media: '(min-width: 1200px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1500, imageFit: 'max' }) }),
|
|
9127
|
+
React.createElement('source', { media: '(min-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 1000, imageFit: 'max' }) }),
|
|
9128
|
+
React.createElement('source', { media: '(max-width: 600px)', srcSet: urlFor({ source: image, client: client, imageWidth: 500, imageFit: 'max' }) }),
|
|
9129
|
+
React.createElement('img', _extends({
|
|
9130
|
+
'images-count': imagesCount,
|
|
9131
|
+
className: 'multi-figure-image',
|
|
9132
|
+
src: urlFor({ source: image, client: client }),
|
|
9133
|
+
alt: imgAlt ? imgAlt : 'multi figure'
|
|
9134
|
+
}, !link && {
|
|
9135
|
+
onClick: function onClick() {
|
|
9136
|
+
return handleClickFigure(image, client);
|
|
9137
|
+
}
|
|
9138
|
+
}))
|
|
9139
|
+
);
|
|
9140
|
+
});
|
|
9141
|
+
|
|
9087
9142
|
var MultiFigure = function MultiFigure(props) {
|
|
9088
9143
|
var images = props.node.images,
|
|
9089
9144
|
client = props.client,
|
|
@@ -9103,9 +9158,9 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9103
9158
|
var lightboxContainer = useRef(null);
|
|
9104
9159
|
useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
|
|
9105
9160
|
|
|
9106
|
-
var FigureCaption = function FigureCaption(
|
|
9107
|
-
var caption =
|
|
9108
|
-
imgcaption =
|
|
9161
|
+
var FigureCaption = function FigureCaption(_ref2) {
|
|
9162
|
+
var caption = _ref2.caption,
|
|
9163
|
+
imgcaption = _ref2.imgcaption;
|
|
9109
9164
|
|
|
9110
9165
|
if (imgcaption && imgcaption.length > 0) {
|
|
9111
9166
|
return React.createElement(
|
|
@@ -9118,6 +9173,11 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9118
9173
|
} else return null;
|
|
9119
9174
|
};
|
|
9120
9175
|
|
|
9176
|
+
var handleClickFigure = useCallback(function (image, client) {
|
|
9177
|
+
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9178
|
+
setOpenImg(true);
|
|
9179
|
+
}, [client]);
|
|
9180
|
+
|
|
9121
9181
|
if (images && images.length > 0) {
|
|
9122
9182
|
return React.createElement(
|
|
9123
9183
|
'div',
|
|
@@ -9138,7 +9198,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9138
9198
|
React.createElement(
|
|
9139
9199
|
LazyLoad,
|
|
9140
9200
|
{ once: true },
|
|
9141
|
-
React.createElement(
|
|
9201
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, link: image.link })
|
|
9142
9202
|
),
|
|
9143
9203
|
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9144
9204
|
)
|
|
@@ -9148,16 +9208,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9148
9208
|
React.createElement(
|
|
9149
9209
|
LazyLoad,
|
|
9150
9210
|
{ once: true },
|
|
9151
|
-
React.createElement(
|
|
9152
|
-
'images-count': images.length,
|
|
9153
|
-
className: 'multi-figure-image',
|
|
9154
|
-
src: urlFor({ source: image.asset, client: client }),
|
|
9155
|
-
alt: image.alt,
|
|
9156
|
-
onClick: function onClick() {
|
|
9157
|
-
setOpenImgSrc(urlFor({ source: image, client: client }));
|
|
9158
|
-
setOpenImg(true);
|
|
9159
|
-
}
|
|
9160
|
-
})
|
|
9211
|
+
React.createElement(FigureImage, { imagesCount: images.length, image: image, client: client, imgAlt: image.alt, handleClickFigure: handleClickFigure })
|
|
9161
9212
|
),
|
|
9162
9213
|
React.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
|
|
9163
9214
|
)
|
|
@@ -9172,7 +9223,7 @@ var MultiFigure = function MultiFigure(props) {
|
|
|
9172
9223
|
React.createElement(
|
|
9173
9224
|
'style',
|
|
9174
9225
|
{ jsx: 'true' },
|
|
9175
|
-
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9226
|
+
'\n .multi-figure-caption,\n .multi-figure-caption h1,\n .multi-figure-caption h2,\n .multi-figure-caption h3,\n .multi-figure-caption h4,\n .multi-figure-caption h5,\n .multi-figure-caption h6,\n .multi-figure-caption p,\n .multi-figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: contain;\n cursor: pointer;\n }\n .multi-figure-image-container {\n padding-right: 0.5rem;\n }\n /* Small devices (portrait tablets and phones, 767px and down) */\n @media (max-width: 767px) {\n .multi-figure-image-container {\n margin-bottom: 1rem;\n }\n }\n\n /* Medium devices (landscape tablets, 768px and up) */\n @media (min-width: 768px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 200px;\n }\n .multi-figure-container [class*=\'col-\'] + [class*=\'col-\'] {\n padding-left: 0.75rem;\n }\n }\n\n /* Large devices (laptops/desktops, 992px and up) */\n @media (min-width: 992px) {\n .multi-figure-image[images-count=\'4\'] {\n max-height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n max-height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n max-height: 300px;\n }\n }\n\n /* Styles the lightbox, removes it from sight and adds the fade-in transition */\n\n .lightbox-target {\n position: fixed;\n top: -100%;\n width: 100%;\n background: rgba(0, 0, 0, 0.7);\n width: 100%;\n opacity: 0;\n -webkit-transition: opacity 0.5s ease-in-out;\n -moz-transition: opacity 0.5s ease-in-out;\n -o-transition: opacity 0.5s ease-in-out;\n transition: opacity 0.5s ease-in-out;\n overflow: hidden;\n }\n\n .lightbox-target.close {\n opacity: 0;\n }\n\n /* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */\n\n .lightbox-target img {\n margin: auto;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n max-height: 0%;\n max-width: 0%;\n border: 3px solid white;\n box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.3);\n box-sizing: border-box;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Styles the close link, adds the slide down transition */\n\n a.lightbox-close {\n display: block;\n width: 50px;\n height: 50px;\n box-sizing: border-box;\n background: white;\n color: black;\n text-decoration: none;\n position: absolute;\n top: -80px;\n right: 0;\n -webkit-transition: 0.5s ease-in-out;\n -moz-transition: 0.5s ease-in-out;\n -o-transition: 0.5s ease-in-out;\n transition: 0.5s ease-in-out;\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:before {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(45deg);\n -moz-transform: rotate(45deg);\n -o-transform: rotate(45deg);\n transform: rotate(45deg);\n }\n\n /* Provides part of the "X" to eliminate an image from the close link */\n\n a.lightbox-close:after {\n content: \'\';\n display: block;\n height: 30px;\n width: 1px;\n background: black;\n position: absolute;\n left: 26px;\n top: 10px;\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n }\n\n /* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */\n\n .lightbox-target.open {\n opacity: 1;\n top: 0;\n bottom: 0;\n right: 0;\n z-index: 3000000;\n }\n\n .lightbox-target.open img {\n max-height: 100%;\n max-width: 100%;\n }\n\n .lightbox-target.open a.lightbox-close {\n top: 0px;\n }\n '
|
|
9176
9227
|
)
|
|
9177
9228
|
);
|
|
9178
9229
|
}
|
package/dist/esm/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
79
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
80
|
export { default as GridHero } from './GridHero.js';
|
|
81
81
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-66ffc224.js';
|
|
83
83
|
export { default as Beam } from './Beam.js';
|
|
84
84
|
export { default as Segment } from './Segment.js';
|
|
85
85
|
export { default as KMTracker } from './KMTracker.js';
|