@mjhls/mjh-framework 1.0.229 → 1.0.230
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/index.js +8 -1
- package/dist/esm/index.js +8 -1
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/cjs/index.js
CHANGED
|
@@ -282,7 +282,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
282
282
|
|
|
283
283
|
var urlFor = function urlFor(source, client) {
|
|
284
284
|
var builder = index$1.imageUrlBuilder(client);
|
|
285
|
-
return builder.image(source);
|
|
285
|
+
return builder.image(source).auto('format');
|
|
286
286
|
};
|
|
287
287
|
|
|
288
288
|
var FigureComponent = function FigureComponent(_ref) {
|
|
@@ -344,6 +344,8 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
344
344
|
} else {
|
|
345
345
|
setimageWidth(widthP + '%');
|
|
346
346
|
}
|
|
347
|
+
} else {
|
|
348
|
+
setimageWidth('100%');
|
|
347
349
|
}
|
|
348
350
|
};
|
|
349
351
|
|
|
@@ -355,6 +357,8 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
355
357
|
} else {
|
|
356
358
|
setimageWidth(widthP + '%');
|
|
357
359
|
}
|
|
360
|
+
} else {
|
|
361
|
+
setimageWidth('100%');
|
|
358
362
|
}
|
|
359
363
|
}, [widthP, imgFloat]);
|
|
360
364
|
|
|
@@ -363,6 +367,9 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
363
367
|
if (screenWidth > 1000) {
|
|
364
368
|
var align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
365
369
|
setimgFloat(align);
|
|
370
|
+
} else {
|
|
371
|
+
var _align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
372
|
+
setimgFloat(_align);
|
|
366
373
|
}
|
|
367
374
|
|
|
368
375
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
package/dist/esm/index.js
CHANGED
|
@@ -280,7 +280,7 @@ var AdSlotsProvider = function AdSlotsProvider(_ref) {
|
|
|
280
280
|
|
|
281
281
|
var urlFor = function urlFor(source, client) {
|
|
282
282
|
var builder = imageUrlBuilder(client);
|
|
283
|
-
return builder.image(source);
|
|
283
|
+
return builder.image(source).auto('format');
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
var FigureComponent = function FigureComponent(_ref) {
|
|
@@ -342,6 +342,8 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
342
342
|
} else {
|
|
343
343
|
setimageWidth(widthP + '%');
|
|
344
344
|
}
|
|
345
|
+
} else {
|
|
346
|
+
setimageWidth('100%');
|
|
345
347
|
}
|
|
346
348
|
};
|
|
347
349
|
|
|
@@ -353,6 +355,8 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
353
355
|
} else {
|
|
354
356
|
setimageWidth(widthP + '%');
|
|
355
357
|
}
|
|
358
|
+
} else {
|
|
359
|
+
setimageWidth('100%');
|
|
356
360
|
}
|
|
357
361
|
}, [widthP, imgFloat]);
|
|
358
362
|
|
|
@@ -361,6 +365,9 @@ var FigureComponent = function FigureComponent(_ref) {
|
|
|
361
365
|
if (screenWidth > 1000) {
|
|
362
366
|
var align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
363
367
|
setimgFloat(align);
|
|
368
|
+
} else {
|
|
369
|
+
var _align = ['center', 'top'].includes(alignment.toLowerCase()) ? 'none' : alignment.toLowerCase();
|
|
370
|
+
setimgFloat(_align);
|
|
364
371
|
}
|
|
365
372
|
|
|
366
373
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|