@mjhls/mjh-framework 1.0.159 → 1.0.161

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/dist/index.js CHANGED
@@ -9488,6 +9488,11 @@ var SocialShare = function SocialShare(props) {
9488
9488
  { url: shareUrl, title: shareTitle, via: shareVia },
9489
9489
  React__default.createElement(reactShare.TwitterIcon, { size: size, round: true })
9490
9490
  ),
9491
+ React__default.createElement(
9492
+ reactShare.LinkedinShareButton,
9493
+ { url: shareUrl, title: shareTitle, via: shareVia },
9494
+ React__default.createElement(reactShare.LinkedinIcon, { size: size, round: true })
9495
+ ),
9491
9496
  React__default.createElement(
9492
9497
  reactShare.PinterestShareButton,
9493
9498
  { url: shareUrl, media: shareImage, description: shareSummary },
@@ -10750,7 +10755,7 @@ var FigureComponent = function FigureComponent(_ref) {
10750
10755
  var screenWidth = window.innerWidth;
10751
10756
  if (screenWidth > 1000) {
10752
10757
  if (widthP === 'auto') {
10753
- setimageWidth('30%');
10758
+ if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
10754
10759
  } else {
10755
10760
  setimageWidth(widthP + '%');
10756
10761
  }
@@ -10761,12 +10766,12 @@ var FigureComponent = function FigureComponent(_ref) {
10761
10766
  var screenWidth = window.innerWidth;
10762
10767
  if (screenWidth > 1000) {
10763
10768
  if (widthP === 'auto') {
10764
- setimageWidth('30%');
10769
+ if (imgFloat === 'none') setimageWidth('auto');else setimageWidth('30%');
10765
10770
  } else {
10766
10771
  setimageWidth(widthP + '%');
10767
10772
  }
10768
10773
  }
10769
- }, [widthP]);
10774
+ }, [widthP, imgFloat]);
10770
10775
 
10771
10776
  React.useEffect(function () {
10772
10777
  var screenWidth = window.innerWidth;
@@ -10785,20 +10790,17 @@ var FigureComponent = function FigureComponent(_ref) {
10785
10790
  'a',
10786
10791
  { href: link, target: blank ? '_blank' : '_self' },
10787
10792
  React__default.createElement(reactBootstrap.Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
10788
- caption && React__default.createElement(
10789
- reactBootstrap.Figure.Caption,
10790
- { style: { width: '100%', maxWidth: '100%' } },
10791
- caption
10792
- )
10793
+ caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
10793
10794
  ) : React__default.createElement(
10794
10795
  React__default.Fragment,
10795
10796
  null,
10796
10797
  React__default.createElement(reactBootstrap.Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
10797
- caption && React__default.createElement(
10798
- reactBootstrap.Figure.Caption,
10799
- { style: { width: '100%', maxWidth: '100%' } },
10800
- caption
10801
- )
10798
+ caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
10799
+ ),
10800
+ React__default.createElement(
10801
+ 'style',
10802
+ { jsx: 'true' },
10803
+ '\n figure-caption {\n font-size: 90%;\n color: #6c757d;\n }\n '
10802
10804
  )
10803
10805
  );
10804
10806
  };
@@ -10849,7 +10851,7 @@ var Slideshow = function Slideshow(_ref) {
10849
10851
  reactBootstrap.Carousel,
10850
10852
  { activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
10851
10853
  return onChangeSlide(selectedIndex, router);
10852
- }, indicators: false },
10854
+ } },
10853
10855
  slides && slides.map(function (slide) {
10854
10856
  return React__default.createElement(
10855
10857
  reactBootstrap.Carousel.Item,
@@ -14408,7 +14410,7 @@ var Sidebar = function Sidebar(_ref) {
14408
14410
 
14409
14411
  return React__default.createElement(
14410
14412
  'article',
14411
- { className: 'sidebar', style: { background: '#eee' } },
14413
+ { className: 'sidebar' },
14412
14414
  React__default.createElement(
14413
14415
  'div',
14414
14416
  null,
@@ -14422,7 +14424,7 @@ var Sidebar = function Sidebar(_ref) {
14422
14424
  React__default.createElement(
14423
14425
  'style',
14424
14426
  { jsx: 'true' },
14425
- '\n .sidebar {\n width: 40%;\n padding: 1rem 0 0;\n margin-left: 1rem;\n margin-right: 10%;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n width: unset;\n padding: 1.25rem;\n margin-left: 1rem;\n margin-right: 1rem;\n }\n }\n '
14427
+ '\n .sidebar {\n clear: both;\n float: right;\n background-color: #eee;\n width: 40%;\n padding: 1rem;\n margin: 0 0 1rem 1rem;\n }\n @media screen and (max-width: 991px) {\n .sidebar {\n float: none;\n width: auto;\n margin: 1rem 0;\n }\n }\n '
14426
14428
  )
14427
14429
  );
14428
14430
  };
@@ -15281,7 +15283,7 @@ var Slideshow$1 = function Slideshow(_ref) {
15281
15283
  reactBootstrap.Carousel,
15282
15284
  { activeIndex: carouselIndex, onSelect: function onSelect(selectedIndex, e) {
15283
15285
  return onChangeSlide$1(selectedIndex, router);
15284
- }, indicators: false },
15286
+ } },
15285
15287
  slides && slides.map(function (slide) {
15286
15288
  if (slide.slideshowImage && slide.slideshowImage.asset) {
15287
15289
  return React__default.createElement(