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/index.cjs +4 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -5
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -2
- package/dist/index.min.cjs.map +1 -1
- package/dist/index.min.js +3 -4
- package/dist/index.min.js.map +1 -1
- package/dist/pb-ui.js +4 -5
- package/dist/pb-ui.js.map +1 -1
- package/dist/pb-ui.min.js +1 -2
- package/dist/pb-ui.min.js.map +1 -1
- package/es/core/components/SxpPageRender/PictureGroup/Picture.js +3 -3
- package/es/core/components/SxpPageRender/VideoWidget/index.js +1 -2
- package/lib/core/components/SxpPageRender/PictureGroup/Picture.js +3 -3
- package/lib/core/components/SxpPageRender/VideoWidget/index.js +1 -2
- package/package.json +1 -1
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
|
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:
|
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
|