pb-sxp-ui 1.0.19 → 1.0.20

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/pb-ui.js CHANGED
@@ -12229,7 +12229,7 @@ Made in Italy` })));
12229
12229
  * @Author: binruan@chatlabs.com
12230
12230
  * @Date: 2024-03-20 10:27:31
12231
12231
  * @LastEditors: binruan@chatlabs.com
12232
- * @LastEditTime: 2024-04-17 15:37:47
12232
+ * @LastEditTime: 2024-04-17 16:46:54
12233
12233
  * @FilePath: \pb-sxp-ui\src\core\components\SxpPageRender\PictureGroup\Picture.tsx
12234
12234
  *
12235
12235
  */
@@ -12254,11 +12254,11 @@ Made in Italy` })));
12254
12254
  const getImg = React.useCallback((src, style) => {
12255
12255
  if (src === '' || !src)
12256
12256
  return;
12257
- return (React.createElement("picture", null,
12258
- React.createElement("source", { type: 'image/avif', srcSet: `${src}?imageMogr2/format/avif` }),
12257
+ return (src === null || src === void 0 ? void 0 : src.indexOf('.avif')) !== -1 ? (React.createElement("picture", null,
12258
+ React.createElement("source", { type: 'image/avif', srcSet: src }),
12259
12259
  React.createElement("source", { type: 'image/webp', srcSet: `${src}?imageMogr2/format/webp` }),
12260
12260
  React.createElement("source", { type: 'image/jpeg', srcSet: `${src}?imageMogr2/format/jpg` }),
12261
- React.createElement("img", { loading: 'lazy', src: src, style: style })));
12261
+ React.createElement("img", { loading: 'lazy', src: src, style: style }))) : (React.createElement("img", { loading: 'lazy', src: src, style: style }));
12262
12262
  }, []);
12263
12263
  return (React.createElement("div", { style: {
12264
12264
  overflow: 'hidden',
@@ -13058,4 +13058,3 @@ Made in Italy` })));
13058
13058
  Object.defineProperty(exports, '__esModule', { value: true });
13059
13059
 
13060
13060
  }));
13061
- //# sourceMappingURL=pb-ui.js.map