@mjhls/mjh-framework 1.0.191 → 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 +1 -1
- package/dist/index.es.js +17 -11
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17242,22 +17242,27 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
17242
17242
|
null,
|
|
17243
17243
|
React__default.createElement(
|
|
17244
17244
|
reactBootstrap.Figure,
|
|
17245
|
-
{
|
|
17246
|
-
className: 'd-block',
|
|
17247
|
-
style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin },
|
|
17248
|
-
onClick: function onClick() {
|
|
17249
|
-
setOpenImgSrc(urlFor$1(node$$1, client).url());
|
|
17250
|
-
setOpenImg(true);
|
|
17251
|
-
} },
|
|
17245
|
+
{ className: 'd-block', style: { width: imageWidth, maxWidth: '100%', clear: 'both', float: imgFloat, margin: figureMargin } },
|
|
17252
17246
|
link$$1 ? React__default.createElement(
|
|
17253
17247
|
'a',
|
|
17254
|
-
{ target: blank ? '_blank' : '_self' },
|
|
17248
|
+
{ target: blank ? '_blank' : '_self', href: link$$1 },
|
|
17255
17249
|
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 }),
|
|
17256
17250
|
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
17257
17251
|
) : React__default.createElement(
|
|
17258
17252
|
React__default.Fragment,
|
|
17259
17253
|
null,
|
|
17260
|
-
React__default.createElement(reactBootstrap.Figure.Image, {
|
|
17254
|
+
React__default.createElement(reactBootstrap.Figure.Image, {
|
|
17255
|
+
style: { width: '100%' },
|
|
17256
|
+
className: 'figure-image',
|
|
17257
|
+
ref: imgElement,
|
|
17258
|
+
onLoad: loadImg,
|
|
17259
|
+
src: urlFor$1(node$$1, client).url(),
|
|
17260
|
+
alt: alt && alt,
|
|
17261
|
+
onClick: function onClick() {
|
|
17262
|
+
setOpenImgSrc(urlFor$1(node$$1, client).url());
|
|
17263
|
+
setOpenImg(true);
|
|
17264
|
+
}
|
|
17265
|
+
}),
|
|
17261
17266
|
caption && React__default.createElement('div', { dangerouslySetInnerHTML: { __html: '<span class=\'figure-caption\'>' + caption + '</span>' } })
|
|
17262
17267
|
)
|
|
17263
17268
|
),
|
|
@@ -29296,6 +29301,8 @@ var Ustream = function Ustream(_ref) {
|
|
|
29296
29301
|
React.useEffect(function () {
|
|
29297
29302
|
try {
|
|
29298
29303
|
var container = document.getElementById('ustream-container');
|
|
29304
|
+
var ustream = document.getElementById('ustream-iframe');
|
|
29305
|
+
ustream.setAttribute('src', src);
|
|
29299
29306
|
|
|
29300
29307
|
if (close) {
|
|
29301
29308
|
var closeBtn = document.querySelector('.ustream-close');
|
|
@@ -29350,7 +29357,6 @@ var Ustream = function Ustream(_ref) {
|
|
|
29350
29357
|
),
|
|
29351
29358
|
React__default.createElement('iframe', {
|
|
29352
29359
|
id: 'ustream-iframe',
|
|
29353
|
-
src: src,
|
|
29354
29360
|
webkitallowfullscreen: 'true',
|
|
29355
29361
|
allowFullScreen: true,
|
|
29356
29362
|
frameBorder: 'no',
|