@mjhls/mjh-framework 1.0.192 → 1.0.193

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 CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # mjh-framework v. 1.0.192
2
+ # mjh-framework v. 1.0.193
3
3
 
4
4
 
5
5
 
package/dist/index.es.js CHANGED
@@ -17234,22 +17234,27 @@ var FigureComponent = function FigureComponent(_ref) {
17234
17234
  null,
17235
17235
  React__default.createElement(
17236
17236
  Figure,
17237
- {
17238
- className: 'd-block',
17239
- style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin },
17240
- onClick: function onClick() {
17241
- setOpenImgSrc(urlFor$1(node$$1, client).url());
17242
- setOpenImg(true);
17243
- } },
17237
+ { className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
17244
17238
  link ? React__default.createElement(
17245
17239
  'a',
17246
- { target: blank ? '_blank' : '_self' },
17240
+ { target: blank ? '_blank' : '_self', href: link },
17247
17241
  React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
17248
17242
  caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
17249
17243
  ) : React__default.createElement(
17250
17244
  React__default.Fragment,
17251
17245
  null,
17252
- React__default.createElement(Figure.Image, { style: { width: '100%' }, className: 'figure-image', ref: imgElement, onLoad: loadImg, src: urlFor$1(node$$1, client).url(), alt: alt && alt }),
17246
+ React__default.createElement(Figure.Image, {
17247
+ style: { width: '100%' },
17248
+ className: 'figure-image',
17249
+ ref: imgElement,
17250
+ onLoad: loadImg,
17251
+ src: urlFor$1(node$$1, client).url(),
17252
+ alt: alt && alt,
17253
+ onClick: function onClick() {
17254
+ setOpenImgSrc(urlFor$1(node$$1, client).url());
17255
+ setOpenImg(true);
17256
+ }
17257
+ }),
17253
17258
  caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
17254
17259
  )
17255
17260
  ),