@mjhls/mjh-framework 1.0.695 → 1.0.696-1034-2

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.
@@ -28,6 +28,7 @@ import { u as util } from './util-7700fc59.js';
28
28
  import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-83f53e4e.js';
29
29
  import Pagination from 'react-bootstrap/Pagination';
30
30
  import Head from 'next/head';
31
+ import Figure$1$1 from 'react-bootstrap/Figure';
31
32
 
32
33
  var urlFor = function urlFor(source, builder) {
33
34
  return builder.image(source).auto('format');
@@ -7061,6 +7062,7 @@ var YouTubeGallery = function YouTubeGallery(_ref) {
7061
7062
  var today = moment().utc().format();
7062
7063
 
7063
7064
  var Videos = nodes.videos.filter(function (video) {
7065
+ console.dir(video);
7064
7066
  if ((video.is_visible === true || !video.hasOwnProperty('is_visible')) && (today >= video.published || !video.hasOwnProperty('published'))) {
7065
7067
  return video;
7066
7068
  }
@@ -8044,12 +8046,65 @@ var ArticleSeries = function ArticleSeries(_ref) {
8044
8046
  var articleContainerRef = useRef(null);
8045
8047
  var arrowRef = useRef(null);
8046
8048
 
8047
- var _useState = useState(0),
8049
+ var _ref2 = router && router.asPath && router.asPath.split('?')[1] ? useState(router.asPath.split('=')[1]) : useState(null),
8050
+ _ref3 = _slicedToArray(_ref2, 2),
8051
+ selectedArticle = _ref3[0],
8052
+ setSelectedArticle = _ref3[1];
8053
+
8054
+ var _useState = useState(false),
8048
8055
  _useState2 = _slicedToArray(_useState, 2),
8049
- contentWidth = _useState2[0],
8050
- setContentWidth = _useState2[1];
8056
+ firstLoad = _useState2[0],
8057
+ setFirstLoad = _useState2[1];
8058
+
8059
+ var _useState3 = useState(null),
8060
+ _useState4 = _slicedToArray(_useState3, 2),
8061
+ currentURL = _useState4[0],
8062
+ setCurrentURL = _useState4[1];
8063
+
8064
+ var _useState5 = useState(null),
8065
+ _useState6 = _slicedToArray(_useState5, 2),
8066
+ currentTitle = _useState6[0],
8067
+ setCurrentTitle = _useState6[1];
8068
+
8069
+ var _useState7 = useState(null),
8070
+ _useState8 = _slicedToArray(_useState7, 2),
8071
+ currentSummary = _useState8[0],
8072
+ setCurrentSummary = _useState8[1];
8073
+
8074
+ var _useState9 = useState(null),
8075
+ _useState10 = _slicedToArray(_useState9, 2),
8076
+ currentThumbnail = _useState10[0],
8077
+ setCurrentThumbnail = _useState10[1];
8078
+
8079
+ var _useState11 = useState(null),
8080
+ _useState12 = _slicedToArray(_useState11, 2),
8081
+ sensorVisible = _useState12[0],
8082
+ setSensorVisible = _useState12[1];
8083
+
8084
+ var _useState13 = useState(0),
8085
+ _useState14 = _slicedToArray(_useState13, 2),
8086
+ contentWidth = _useState14[0],
8087
+ setContentWidth = _useState14[1];
8051
8088
 
8052
- var upArrowClicked = false;
8089
+ var _useState15 = useState(false),
8090
+ _useState16 = _slicedToArray(_useState15, 2),
8091
+ upArrowClicked = _useState16[0],
8092
+ setUpArrowClicked = _useState16[1];
8093
+
8094
+ var _useState17 = useState(null),
8095
+ _useState18 = _slicedToArray(_useState17, 2),
8096
+ articleScrollHeight = _useState18[0],
8097
+ setArticleScrollHeight = _useState18[1];
8098
+
8099
+ var _useState19 = useState(false),
8100
+ _useState20 = _slicedToArray(_useState19, 2),
8101
+ articleClicked = _useState20[0],
8102
+ setArticleClicked = _useState20[1];
8103
+
8104
+ var _useState21 = useState(null),
8105
+ _useState22 = _slicedToArray(_useState21, 2),
8106
+ articleIndex = _useState22[0],
8107
+ setArticleIndex = _useState22[1];
8053
8108
 
8054
8109
  var Articles = nodes.articles.filter(function (article) {
8055
8110
  if ((article.is_visible === true || !article.hasOwnProperty('is_visible')) && today >= article.published) {
@@ -8082,7 +8137,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8082
8137
  'a',
8083
8138
  { onClick: function onClick(e) {
8084
8139
  return articleCardClickHandler(e);
8085
- }, 'data-articleid': '' + article.param.current },
8140
+ }, 'data-cardlabel': '' + articleLabel, 'data-articleIndex': '' + index, 'data-articleid': '' + article.param.current },
8086
8141
  React__default.createElement(
8087
8142
  'div',
8088
8143
  { className: 'prevNext-thumbnail' },
@@ -8112,43 +8167,17 @@ var ArticleSeries = function ArticleSeries(_ref) {
8112
8167
  });
8113
8168
  };
8114
8169
 
8115
- var _ref2 = router && router.asPath && router.asPath.split('?')[1] ? useState(router.asPath.split('=')[1]) : useState(null),
8116
- _ref3 = _slicedToArray(_ref2, 2),
8117
- selectedArticle = _ref3[0],
8118
- setSelectedArticle = _ref3[1];
8119
-
8120
- var _useState3 = useState(false),
8121
- _useState4 = _slicedToArray(_useState3, 2),
8122
- firstLoad = _useState4[0],
8123
- setFirstLoad = _useState4[1];
8124
-
8125
- var _useState5 = useState(null),
8126
- _useState6 = _slicedToArray(_useState5, 2),
8127
- currentURL = _useState6[0],
8128
- setCurrentURL = _useState6[1];
8129
-
8130
- var _useState7 = useState(null),
8131
- _useState8 = _slicedToArray(_useState7, 2),
8132
- currentTitle = _useState8[0],
8133
- setCurrentTitle = _useState8[1];
8134
-
8135
- var _useState9 = useState(null),
8136
- _useState10 = _slicedToArray(_useState9, 2),
8137
- currentSummary = _useState10[0],
8138
- setCurrentSummary = _useState10[1];
8139
-
8140
- var _useState11 = useState(null),
8141
- _useState12 = _slicedToArray(_useState11, 2),
8142
- currentThumbnail = _useState12[0],
8143
- setCurrentThumbnail = _useState12[1];
8144
-
8145
8170
  var articleCardClickHandler = function articleCardClickHandler(e) {
8146
8171
  e.preventDefault();
8147
8172
  var articleClicked = e.currentTarget.dataset.articleid;
8173
+ setArticleClicked(true);
8174
+ setArticleIndex(e.currentTarget.dataset.articleindex);
8175
+ setSensorVisible(false);
8148
8176
  setSelectedArticle(articleClicked);
8149
- scrollToArticle(articleClicked);
8177
+ scrollToArticle(articleClicked, e.currentTarget.dataset.cardlabel);
8178
+ arrowRef.current.style.visibility = 'hidden';
8150
8179
  };
8151
- var scrollToArticle = function scrollToArticle(id) {
8180
+ var scrollToArticle = function scrollToArticle(id, cardLabel) {
8152
8181
  var localArticleID = id ? id : selectedArticle;
8153
8182
  var findArticle = function findArticle(ref) {
8154
8183
  if (ref) {
@@ -8156,13 +8185,18 @@ var ArticleSeries = function ArticleSeries(_ref) {
8156
8185
  }
8157
8186
  return false;
8158
8187
  };
8188
+ console.log('cardLabel', cardLabel);
8189
+ var isNextPrev = cardLabel === 'Next' || 'Previous' ? true : false;
8190
+ console.log(isNextPrev);
8159
8191
  var indexOfRef = refArray.current.findIndex(findArticle);
8160
-
8161
8192
  if (indexOfRef >= 0) {
8162
8193
  var newOffsetTop = !firstLoad ? refArray.current[indexOfRef].wraperRef.current.offsetTop : refArray.current[indexOfRef].wraperRef.current.offsetTop + document.getElementsByTagName('header')[0].clientHeight;
8163
8194
  // console.dir(refArray.current[indexOfRef].wraperRef.current)
8164
8195
  // console.log(document.getElementsByTagName('header')[0].clientHeight)
8165
8196
  // console.log(refArray.current[indexOfRef].wraperRef.current.offsetTop)
8197
+
8198
+ setArticleScrollHeight(newOffsetTop);
8199
+
8166
8200
  window.scrollTo({ top: newOffsetTop, behavior: 'smooth' });
8167
8201
  //refArray.current[indexOfRef].wraperRef.current.scrollIntoView({ behavior: 'smooth', block: 'start' })
8168
8202
  }
@@ -8175,6 +8209,12 @@ var ArticleSeries = function ArticleSeries(_ref) {
8175
8209
  }
8176
8210
  };
8177
8211
 
8212
+ useEffect(function () {
8213
+ if (articleClicked === true) {
8214
+ onChangeArticle(Articles[articleIndex].param.current, 'top', Articles[articleIndex].title, Articles[articleIndex].summary, urlFor(Articles[articleIndex].thumbnail.asset).url());
8215
+ }
8216
+ }, [articleClicked]);
8217
+
8178
8218
  var onChangeArticle = function onChangeArticle(path, visibility, title, summary, shareImage) {
8179
8219
  var currentPath = window && window.location && window.location.pathname ? window.location.pathname.replace('?seriesArticle=', '') : '';
8180
8220
  var newPath = (router && router.asPath && router.asPath.split('?')[0]) + '?seriesArticle=' + path;
@@ -8214,7 +8254,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8214
8254
  var window = e.currentTarget;
8215
8255
  if (preVscroll > window.scrollY) {
8216
8256
  isScrollDown = false;
8217
- if (window.scrollY > articleContainerRef.current.offsetTop && preVscroll !== 0 && !upArrowClicked) {
8257
+ if (window.scrollY > articleContainerRef.current.offsetTop && preVscroll !== 0 && upArrowClicked === false && articleClicked === false) {
8218
8258
  arrowRef.current.style.visibility = 'visible';
8219
8259
  }
8220
8260
  } else if (preVscroll < window.scrollY) {
@@ -8228,8 +8268,15 @@ var ArticleSeries = function ArticleSeries(_ref) {
8228
8268
  if (preVscroll <= articleContainerRef.current.offsetTop) {
8229
8269
  arrowRef.current.style.visibility = 'hidden';
8230
8270
  }
8271
+ if (window.scrollY >= articleScrollHeight && articleClicked === true) {
8272
+ setArticleClicked(false);
8273
+ setSensorVisible(true);
8274
+ setUpArrowClicked(false);
8275
+ }
8231
8276
  if (window.scrollY === 0 && upArrowClicked === true) {
8232
- upArrowClicked = false;
8277
+ setUpArrowClicked(false);
8278
+ setSensorVisible(true);
8279
+ setArticleClicked(false);
8233
8280
  }
8234
8281
  };
8235
8282
 
@@ -8243,6 +8290,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8243
8290
  useLayoutEffect(function () {
8244
8291
  //console.log('useLayoutEffect')
8245
8292
  if (!firstLoad) {
8293
+ setUpArrowClicked(false);
8246
8294
  if (main_39) {
8247
8295
  grabLoadedAds();
8248
8296
  } else {
@@ -8285,26 +8333,34 @@ var ArticleSeries = function ArticleSeries(_ref) {
8285
8333
  }
8286
8334
  };
8287
8335
 
8288
- var handleArrowClick = function handleArrowClick() {
8289
- var newPath = router.asPath.split('?')[0];
8290
- var title = nodes.seriesTitle;
8291
- isScrollDown = true;
8292
- upArrowClicked = true;
8293
- arrowRef.current.style.visibility = 'hidden';
8294
- window.scrollTo({ top: 0, behavior: 'smooth' });
8295
- window.history.pushState({}, '', newPath);
8296
- document.title = title;
8336
+ useEffect(function () {
8337
+ console.log('sensorVisible Effect');
8338
+ if (sensorVisible === false && articleClicked === false) {
8339
+ var newPath = router.asPath.split('?')[0];
8340
+ var title = nodes.seriesTitle;
8341
+ isScrollDown = true;
8342
+ setUpArrowClicked(true);
8343
+ arrowRef.current.style.visibility = 'hidden';
8344
+ window.scrollTo({ top: 0, behavior: 'smooth' });
8345
+ window.history.pushState({}, '', newPath);
8346
+ document.title = title;
8297
8347
 
8298
- setCurrentURL(newPath);
8299
- setCurrentTitle(title);
8300
- if (rootArticle) {
8301
- setCurrentSummary(rootArticle.summary ? rootArticle.summary : '');
8302
- setCurrentThumbnail(urlFor(rootArticle.thumbnail.asset).url());
8303
- } else {
8304
- setCurrentSummary('');
8305
- setCurrentThumbnail('');
8348
+ setCurrentURL(newPath);
8349
+ setCurrentTitle(title);
8350
+ if (rootArticle) {
8351
+ setCurrentSummary(rootArticle.summary ? rootArticle.summary : '');
8352
+ setCurrentThumbnail(urlFor(rootArticle.thumbnail.asset).url());
8353
+ } else {
8354
+ setCurrentSummary('');
8355
+ setCurrentThumbnail('');
8356
+ }
8357
+ refreshAD(newPath);
8306
8358
  }
8307
- refreshAD(newPath);
8359
+ }, [sensorVisible]);
8360
+
8361
+ var handleArrowClick = function handleArrowClick() {
8362
+ console.log('handleArrowClick');
8363
+ setSensorVisible(false);
8308
8364
  };
8309
8365
 
8310
8366
  return React__default.createElement(
@@ -8368,6 +8424,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8368
8424
  React__default.createElement(
8369
8425
  InscreenSensor,
8370
8426
  {
8427
+ visible: sensorVisible,
8371
8428
  offSetTop: 120,
8372
8429
  className: 'inscreen-wrapper',
8373
8430
  key: '' + article.param.current,
@@ -8376,7 +8433,7 @@ var ArticleSeries = function ArticleSeries(_ref) {
8376
8433
  return refArray.current[index] = ele;
8377
8434
  },
8378
8435
  onChange: function onChange(visible) {
8379
- if (!upArrowClicked) {
8436
+ if (upArrowClicked === false && articleClicked === false) {
8380
8437
  if (visible === 'top' || visible === 'bottom' || visible === 'small-top') {
8381
8438
  onChangeArticle(article.param.current, visible, article.title, article.summary, urlFor(article.thumbnail.asset).url());
8382
8439
  }
@@ -8549,12 +8606,14 @@ var FigureComponent = function FigureComponent(props) {
8549
8606
  if (typeof window === 'undefined') return null;
8550
8607
 
8551
8608
  var node = props.node,
8552
- client = props.client;
8609
+ client = props.client,
8610
+ getSerializers = props.getSerializers;
8553
8611
 
8554
8612
 
8555
8613
  if (!node.asset) return null;
8556
8614
 
8557
8615
  var caption = node.caption,
8616
+ imgcaption = node.imgcaption,
8558
8617
  alt = node.alt,
8559
8618
  blank = node.blank,
8560
8619
  link = node.link,
@@ -8606,6 +8665,18 @@ var FigureComponent = function FigureComponent(props) {
8606
8665
  imageWidth = '100%';
8607
8666
  }
8608
8667
 
8668
+ var FigureCaption = useCallback(function () {
8669
+ if (imgcaption && imgcaption.length > 0) {
8670
+ return React__default.createElement(
8671
+ 'div',
8672
+ { className: 'figure-caption' },
8673
+ React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
8674
+ );
8675
+ } else if (caption) {
8676
+ return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } });
8677
+ } else return null;
8678
+ }, [caption, imgcaption]);
8679
+
8609
8680
  var figureStyle = disableTextWrap ? { maxWidth: '100%', width: imageWidth, margin: imageFloat !== 'none' ? imageFloat === 'left' ? '' : '0 0 0 auto' : '' } : {
8610
8681
  width: imageWidth,
8611
8682
  maxWidth: '100%',
@@ -8618,17 +8689,17 @@ var FigureComponent = function FigureComponent(props) {
8618
8689
  React__default.Fragment,
8619
8690
  null,
8620
8691
  React__default.createElement(
8621
- Figure$1,
8692
+ Figure$1$1,
8622
8693
  { className: '' + class_name, style: figureStyle },
8623
8694
  link ? React__default.createElement(
8624
8695
  'a',
8625
8696
  { target: blank ? '_blank' : '_self', href: link },
8626
- React__default.createElement(Figure$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
8627
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
8697
+ React__default.createElement(Figure$1$1.Image, { style: { maxWidth: '100%' }, className: 'figure-image', src: urlFor$3(node, client).url(), alt: alt && alt }),
8698
+ React__default.createElement(FigureCaption, null)
8628
8699
  ) : React__default.createElement(
8629
8700
  React__default.Fragment,
8630
8701
  null,
8631
- React__default.createElement(Figure$1.Image, {
8702
+ React__default.createElement(Figure$1$1.Image, {
8632
8703
  style: { maxWidth: '100%', cursor: 'pointer', width: 'auto' },
8633
8704
  className: 'figure-image',
8634
8705
  src: urlFor$3(node, client).url(),
@@ -8638,7 +8709,7 @@ var FigureComponent = function FigureComponent(props) {
8638
8709
  setShowLightbox(true);
8639
8710
  }
8640
8711
  }),
8641
- caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
8712
+ React__default.createElement(FigureCaption, null)
8642
8713
  ),
8643
8714
  React__default.createElement(LightBox, {
8644
8715
  showLightbox: showLightbox,
@@ -8652,7 +8723,7 @@ var FigureComponent = function FigureComponent(props) {
8652
8723
  React__default.createElement(
8653
8724
  'style',
8654
8725
  { jsx: 'true' },
8655
- '\n .figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
8726
+ '\n .figure-caption,\n .figure-caption h1,\n .figure-caption h2,\n .figure-caption h3,\n .figure-caption h4,\n .figure-caption h5,\n .figure-caption h6,\n .figure-caption p,\n .figure-caption ul {\n color: #6c757d;\n font-size: 0.875rem;\n }\n '
8656
8727
  )
8657
8728
  );
8658
8729
  };
@@ -8681,7 +8752,8 @@ function useOutsideAlerter(ref, container, setOpenImg, setOpenImgSrc) {
8681
8752
 
8682
8753
  var MultiFigure = function MultiFigure(props) {
8683
8754
  var images = props.node.images,
8684
- client = props.client;
8755
+ client = props.client,
8756
+ getSerializers = props.getSerializers;
8685
8757
 
8686
8758
  var _useState = useState(false),
8687
8759
  _useState2 = _slicedToArray(_useState, 2),
@@ -8696,16 +8768,32 @@ var MultiFigure = function MultiFigure(props) {
8696
8768
  var lightboxImage = useRef(null);
8697
8769
  var lightboxContainer = useRef(null);
8698
8770
  useOutsideAlerter(lightboxImage, lightboxContainer, setOpenImg, setOpenImgSrc);
8771
+
8772
+ var FigureCaption = function FigureCaption(_ref) {
8773
+ var caption = _ref.caption,
8774
+ imgcaption = _ref.imgcaption;
8775
+
8776
+ if (imgcaption && imgcaption.length > 0) {
8777
+ return React__default.createElement(
8778
+ 'div',
8779
+ { className: 'multi-figure-caption' },
8780
+ React__default.createElement(BlockContent, { blocks: imgcaption, serializers: getSerializers })
8781
+ );
8782
+ } else if (caption) {
8783
+ return React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'multi-figure-caption\'>' + caption + '</span>' } });
8784
+ } else return null;
8785
+ };
8786
+
8699
8787
  if (images && images.length > 0) {
8700
8788
  return React__default.createElement(
8701
8789
  'div',
8702
8790
  { className: 'multi-figure-container' },
8703
8791
  React__default.createElement(
8704
- Row$1,
8792
+ Row,
8705
8793
  { noGutters: true },
8706
8794
  images.map(function (image, index) {
8707
8795
  return React__default.createElement(
8708
- Col$1,
8796
+ Col,
8709
8797
  { xs: 12, md: 12 / images.length, key: index },
8710
8798
  image.link ? React__default.createElement(
8711
8799
  'a',
@@ -8718,11 +8806,7 @@ var MultiFigure = function MultiFigure(props) {
8718
8806
  { once: true },
8719
8807
  React__default.createElement('img', { 'images-count': images.length, className: 'multi-figure-image', src: urlFor$4(image.asset, client).url(), alt: image.alt })
8720
8808
  ),
8721
- image.caption && React__default.createElement(
8722
- 'span',
8723
- { className: 'multi-figure-caption' },
8724
- image.caption
8725
- )
8809
+ React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
8726
8810
  )
8727
8811
  ) : React__default.createElement(
8728
8812
  'div',
@@ -8741,11 +8825,7 @@ var MultiFigure = function MultiFigure(props) {
8741
8825
  }
8742
8826
  })
8743
8827
  ),
8744
- image.caption && React__default.createElement(
8745
- 'span',
8746
- { className: 'multi-figure-caption' },
8747
- image.caption
8748
- )
8828
+ React__default.createElement(FigureCaption, { caption: image.caption, imgcaption: image.imgcaption })
8749
8829
  )
8750
8830
  );
8751
8831
  })
@@ -8758,7 +8838,7 @@ var MultiFigure = function MultiFigure(props) {
8758
8838
  React__default.createElement(
8759
8839
  'style',
8760
8840
  { jsx: 'true' },
8761
- '\n .multi-figure-container {\n margin-bottom: 1rem;\n }\n .multi-figure-image {\n width: 100%;\n height: auto;\n object-fit: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n height: 300px;\n }\n }\n\n .multi-figure-caption {\n font-size: 90%;\n color: #6c757d;\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 '
8841
+ '\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: cover;\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 height: 100px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 130px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 height: 150px;\n }\n .multi-figure-image[images-count=\'3\'] {\n height: 200px;\n }\n .multi-figure-image[images-count=\'2\'] {\n 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 '
8762
8842
  )
8763
8843
  );
8764
8844
  }
@@ -8867,12 +8947,12 @@ var getSerializers = function getSerializers() {
8867
8947
  figure: function figure(_ref4) {
8868
8948
  var node = _ref4.node;
8869
8949
 
8870
- return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag });
8950
+ return React__default.createElement(Figure, { node: node, client: client, contextualADFlag: contextualADFlag, getSerializers: getSerializers.apply(undefined, props) });
8871
8951
  },
8872
8952
  multifigure: function multifigure(_ref5) {
8873
8953
  var node = _ref5.node;
8874
8954
 
8875
- return React__default.createElement(MultiFigure, { node: node, client: client });
8955
+ return React__default.createElement(MultiFigure, { node: node, client: client, getSerializers: getSerializers.apply(undefined, props) });
8876
8956
  },
8877
8957
  slideshow: function slideshow(_ref6) {
8878
8958
  var node = _ref6.node;
@@ -9052,4 +9132,4 @@ var getSerializers = function getSerializers() {
9052
9132
  };
9053
9133
  };
9054
9134
 
9055
- export { InscreenSensor as I, getSerializers as g, renderAuthor as r };
9135
+ export { getSerializers as g, renderAuthor as r };
package/dist/esm/index.js CHANGED
@@ -79,11 +79,12 @@ import 'react-bootstrap/Form';
79
79
  import './index-d2f90501.js';
80
80
  import './js.cookie-6874175c.js';
81
81
  export { default as CMEDeck } from './CMEDeck.js';
82
- export { g as getSerializers } from './index-754010eb.js';
82
+ export { g as getSerializers } from './index-d3fdad5e.js';
83
83
  import './util-7700fc59.js';
84
84
  import './brightcove-react-player-loader.es-83f53e4e.js';
85
85
  import 'react-bootstrap/Pagination';
86
86
  import 'next/head';
87
+ import 'react-bootstrap/Figure';
87
88
  export { default as ExternalResources } from './ExternalResources.js';
88
89
  export { Column1 } from './Column1.js';
89
90
  export { default as SideFooter } from './SideFooter.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mjhls/mjh-framework",
3
- "version": "1.0.695",
3
+ "version": "1.0.696-1034-2",
4
4
  "description": "Foundation Framework",
5
5
  "author": "mjh-framework",
6
6
  "license": "MIT",